diff --git a/assets.zip b/assets.zip deleted file mode 100644 index 657cdb0..0000000 Binary files a/assets.zip and /dev/null differ diff --git a/assets/Scene/GameScene.fire b/assets/Scene/GameScene.fire index d41cded..7ae5117 100644 --- a/assets/Scene/GameScene.fire +++ b/assets/Scene/GameScene.fire @@ -70,15 +70,21 @@ "_children": [ { "__id__": 3 + }, + { + "__id__": 148 + }, + { + "__id__": 156 } ], "_active": true, "_components": [ { - "__id__": 148 + "__id__": 164 }, { - "__id__": 149 + "__id__": 165 } ], "_prefab": null, @@ -2240,8 +2246,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 57, - "height": 59 + "width": 49, + "height": 50 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -2257,8 +2263,8 @@ 0, 0, 0, - 0.3826834323650898, - 0.9238795325112867, + 0, + 1, 1, 1, 1 @@ -2268,7 +2274,7 @@ "__type__": "cc.Vec3", "x": 0, "y": 0, - "z": 45 + "z": 0 }, "_skewX": 0, "_skewY": 0, @@ -2293,7 +2299,7 @@ "_srcBlendFactor": 770, "_dstBlendFactor": 771, "_spriteFrame": { - "__uuid__": "f975d3f5-1bb0-4c8a-b00f-4d04a36e31c2" + "__uuid__": "84609ff2-e7e7-464d-90b2-5eb5e6215e2c" }, "_type": 0, "_sizeMode": 1, @@ -3698,8 +3704,8 @@ ], "_srcBlendFactor": 770, "_dstBlendFactor": 771, - "_string": "02:00", - "_N$string": "02:00", + "_string": "03:00", + "_N$string": "03:00", "_fontSize": 40, "_lineHeight": 40, "_enableWrapText": true, @@ -6614,8 +6620,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 126, - "height": 140 + "width": 102, + "height": 102 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -6781,9 +6787,9 @@ "_target": null, "_alignFlags": 36, "_left": 0, - "_right": 8.269999999999982, + "_right": 20.269999999999982, "_top": 0, - "_bottom": 10.918999999999926, + "_bottom": 29.918999999999926, "_verticalCenter": 0, "_horizontalCenter": 0, "_isAbsLeft": true, @@ -6998,6 +7004,776 @@ ], "_id": "d8PNYjk3lOgqdP5y/+PEdM" }, + { + "__type__": "cc.Node", + "_name": "New Button", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 149 + } + ], + "_active": false, + "_components": [ + { + "__id__": 154 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -2.753, + 245.049, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "50p5sApvJDNbi+MzdATDzt" + }, + { + "__type__": "cc.Node", + "_name": "Background", + "_objFlags": 512, + "_parent": { + "__id__": 148 + }, + "_children": [ + { + "__id__": 150 + } + ], + "_active": true, + "_components": [ + { + "__id__": 152 + }, + { + "__id__": 153 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "a9WyE4GOlMN79dBcBzEpI4" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 512, + "_parent": { + "__id__": 149 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 151 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 200, + "height": 60 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "b4AUrAThROhKDdQyROOztt" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 150 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_string": "生成", + "_N$string": "生成", + "_fontSize": 60, + "_lineHeight": 60, + "_enableWrapText": false, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_styleFlags": 0, + "_underlineHeight": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 1, + "_N$cacheMode": 1, + "_id": "11hcpVAPdBgLMp3RZZ+F8y" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 149 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "0dAev3hsxC7ryvx+M1gX9D" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 149 + }, + "_enabled": true, + "alignMode": 0, + "_target": null, + "_alignFlags": 45, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_verticalCenter": 0, + "_horizontalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 40, + "_id": "44hU3c0MVNmr7QVWjBHVlh" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 148 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 155 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 2, + "transition": 2, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 230, + "g": 230, + "b": 230, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 120, + "g": 120, + "b": 120, + "a": 200 + }, + "_N$normalSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_N$pressedSprite": { + "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" + }, + "pressedSprite": { + "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" + }, + "_N$hoverSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "hoverSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_N$disabledSprite": { + "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" + }, + "_N$target": { + "__id__": 149 + }, + "_id": "ffsbKxmvlPA7jFyh2EaklH" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 3 + }, + "component": "", + "_componentId": "b26a49RCSFPT4C+F7xAd62t", + "handler": "createAir", + "customEventData": "" + }, + { + "__type__": "cc.Node", + "_name": "New Button", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 157 + } + ], + "_active": false, + "_components": [ + { + "__id__": 162 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + -2.753, + 41.301, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "a6BOc3EGhFPbiNSiiLcBW1" + }, + { + "__type__": "cc.Node", + "_name": "Background", + "_objFlags": 512, + "_parent": { + "__id__": 156 + }, + "_children": [ + { + "__id__": 158 + } + ], + "_active": true, + "_components": [ + { + "__id__": 160 + }, + { + "__id__": 161 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "db64znSk9GAIBlnsMwq2Km" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 512, + "_parent": { + "__id__": 157 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 159 + } + ], + "_prefab": null, + "_opacity": 255, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 200, + "height": 60 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "a2tbyEvN5NS4mP//r0hMlW" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 158 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_string": "重新", + "_N$string": "重新", + "_fontSize": 60, + "_lineHeight": 60, + "_enableWrapText": false, + "_N$file": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_batchAsBitmap": false, + "_styleFlags": 0, + "_underlineHeight": 0, + "_N$horizontalAlign": 1, + "_N$verticalAlign": 1, + "_N$fontFamily": "Arial", + "_N$overflow": 1, + "_N$cacheMode": 1, + "_id": "69XN0v37VP46Ytot3zNZRh" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 157 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_type": 1, + "_sizeMode": 0, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": null, + "_id": "3eMiFB1E9Kd6x3ScWfaRDg" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 157 + }, + "_enabled": true, + "alignMode": 0, + "_target": null, + "_alignFlags": 45, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_verticalCenter": 0, + "_horizontalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 40, + "_id": "6dC96C3KFLx7CwCP0QELrg" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 156 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.2, + "clickEvents": [ + { + "__id__": 163 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 2, + "transition": 2, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 230, + "g": 230, + "b": 230, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 120, + "g": 120, + "b": 120, + "a": 200 + }, + "_N$normalSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_N$pressedSprite": { + "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" + }, + "pressedSprite": { + "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a" + }, + "_N$hoverSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "hoverSprite": { + "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952" + }, + "_N$disabledSprite": { + "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e" + }, + "_N$target": { + "__id__": 157 + }, + "_id": "cfteVYdYxCm6c6x5UdSGG8" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 3 + }, + "component": "", + "_componentId": "b26a49RCSFPT4C+F7xAd62t", + "handler": "clearAir", + "customEventData": "" + }, { "__type__": "cc.Canvas", "_name": "", diff --git a/assets/Scene/GuideScene.fire b/assets/Scene/GuideScene.fire index baa7fe5..be1c511 100644 --- a/assets/Scene/GuideScene.fire +++ b/assets/Scene/GuideScene.fire @@ -57,7 +57,7 @@ "_is3DNode": true, "_groupIndex": 0, "groupIndex": 0, - "autoReleaseAssets": false, + "autoReleaseAssets": true, "_id": "7dae2401-bac3-47f8-8bcd-b8f23cf7c8cf" }, { @@ -75,10 +75,10 @@ "_active": true, "_components": [ { - "__id__": 169 + "__id__": 179 }, { - "__id__": 170 + "__id__": 180 } ], "_prefab": null, @@ -177,10 +177,10 @@ "_active": true, "_components": [ { - "__id__": 167 + "__id__": 177 }, { - "__id__": 168 + "__id__": 178 } ], "_prefab": null, @@ -2257,8 +2257,8 @@ 0, 0, 0, - 0.3826834323650898, - 0.9238795325112867, + 0, + 1, 1, 1, 1 @@ -2268,7 +2268,7 @@ "__type__": "cc.Vec3", "x": 0, "y": 0, - "z": 45 + "z": 0 }, "_skewX": 0, "_skewY": 0, @@ -6828,14 +6828,26 @@ { "__id__": 155 }, + { + "__id__": 157 + }, { "__id__": 159 }, { - "__id__": 163 + "__id__": 161 }, { "__id__": 165 + }, + { + "__id__": 169 + }, + { + "__id__": 173 + }, + { + "__id__": 175 } ], "_active": true, @@ -7105,8 +7117,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 565, - "height": 110 + "width": 509, + "height": 126 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -7297,8 +7309,8 @@ }, "_contentSize": { "__type__": "cc.Size", - "width": 619, - "height": 260 + "width": 423, + "height": 102 }, "_anchorPoint": { "__type__": "cc.Vec2", @@ -7370,7 +7382,7 @@ }, { "__type__": "cc.Node", - "_name": "btn_next", + "_name": "tip4", "_objFlags": 0, "_parent": { "__id__": 144 @@ -7380,9 +7392,297 @@ "_components": [ { "__id__": 156 + } + ], + "_prefab": null, + "_opacity": 0, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 619, + "height": 260 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 197.197, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "61aWBqMQxJt46UXAFpQ1+Z" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 155 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "527bc086-4dc9-4868-9688-05ff47bf9974" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": { + "__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd" + }, + "_id": "6bkknv46pGXrZdBC3ImgAb" + }, + { + "__type__": "cc.Node", + "_name": "tip5", + "_objFlags": 0, + "_parent": { + "__id__": 144 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 158 + } + ], + "_prefab": null, + "_opacity": 0, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 323, + "height": 30 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 197.197, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "6fC9wirghHvrMgoGWe7pnz" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 157 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "ae22dcc5-e662-4626-a0d0-9a5a82bc838c" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": { + "__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd" + }, + "_id": "1902gbCBRKfJovbnte4Is8" + }, + { + "__type__": "cc.Node", + "_name": "tip6", + "_objFlags": 0, + "_parent": { + "__id__": 144 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 160 + } + ], + "_prefab": null, + "_opacity": 0, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 541, + "height": 110 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + 197.197, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 1 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "a3kQvH8LdI/oANRigR3XGz" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 159 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "f41f5fbe-bc6d-40a5-b6a4-fd37cc979ab4" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": { + "__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd" + }, + "_id": "5etWwMNSFKgLyopdUP765V" + }, + { + "__type__": "cc.Node", + "_name": "btn_next", + "_objFlags": 0, + "_parent": { + "__id__": 144 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 162 }, { - "__id__": 157 + "__id__": 163 } ], "_prefab": null, @@ -7438,7 +7738,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 155 + "__id__": 161 }, "_enabled": true, "_materials": [ @@ -7472,7 +7772,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 155 + "__id__": 161 }, "_enabled": true, "_normalMaterial": null, @@ -7481,7 +7781,7 @@ "zoomScale": 1.1, "clickEvents": [ { - "__id__": 158 + "__id__": 164 } ], "_N$interactable": true, @@ -7537,7 +7837,7 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": { - "__id__": 155 + "__id__": 161 }, "_id": "beg1drg29Bsp5tcKVdZuHp" }, @@ -7559,13 +7859,13 @@ "__id__": 144 }, "_children": [], - "_active": true, + "_active": false, "_components": [ { - "__id__": 160 + "__id__": 166 }, { - "__id__": 161 + "__id__": 167 } ], "_prefab": null, @@ -7621,7 +7921,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 159 + "__id__": 165 }, "_enabled": true, "_materials": [ @@ -7655,7 +7955,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 159 + "__id__": 165 }, "_enabled": true, "_normalMaterial": null, @@ -7664,7 +7964,7 @@ "zoomScale": 1.1, "clickEvents": [ { - "__id__": 162 + "__id__": 168 } ], "_N$interactable": true, @@ -7720,7 +8020,7 @@ "hoverSprite": null, "_N$disabledSprite": null, "_N$target": { - "__id__": 159 + "__id__": 165 }, "_id": "4c6zlKLX5PhaY0Z8VOA+Zz" }, @@ -7734,6 +8034,189 @@ "handler": "guideJump", "customEventData": "" }, + { + "__type__": "cc.Node", + "_name": "btn_start", + "_objFlags": 0, + "_parent": { + "__id__": 144 + }, + "_children": [], + "_active": false, + "_components": [ + { + "__id__": 170 + }, + { + "__id__": 171 + } + ], + "_prefab": null, + "_opacity": 0, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 270, + "height": 72 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_trs": { + "__type__": "TypedArray", + "ctor": "Float64Array", + "array": [ + 0, + -13.024, + 0, + 0, + 0, + 0, + 1, + 1, + 1, + 0 + ] + }, + "_eulerAngles": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_skewX": 0, + "_skewY": 0, + "_is3DNode": false, + "_groupIndex": 0, + "groupIndex": 0, + "_id": "ddBleZrRdMMZW9mWT6rlPP" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 169 + }, + "_enabled": true, + "_materials": [ + { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + } + ], + "_srcBlendFactor": 770, + "_dstBlendFactor": 771, + "_spriteFrame": { + "__uuid__": "314c609e-c2f8-4079-85ad-a386908b92b5" + }, + "_type": 0, + "_sizeMode": 1, + "_fillType": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_atlas": { + "__uuid__": "54dc0649-2512-4d7b-be1a-452380ff78dd" + }, + "_id": "81pysayPtCu50i2vnV5xry" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 169 + }, + "_enabled": true, + "_normalMaterial": null, + "_grayMaterial": null, + "duration": 0.1, + "zoomScale": 1.1, + "clickEvents": [ + { + "__id__": 172 + } + ], + "_N$interactable": true, + "_N$enableAutoGrayEffect": false, + "_N$transition": 3, + "transition": 3, + "_N$normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "pressedColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_N$hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "hoverColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_N$disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_N$normalSprite": null, + "_N$pressedSprite": null, + "pressedSprite": null, + "_N$hoverSprite": null, + "hoverSprite": null, + "_N$disabledSprite": null, + "_N$target": { + "__id__": 169 + }, + "_id": "c5MiFO92tMt7uHFjHt2pmq" + }, + { + "__type__": "cc.ClickEvent", + "target": { + "__id__": 3 + }, + "component": "", + "_componentId": "b26a49RCSFPT4C+F7xAd62t", + "handler": "guideStart", + "customEventData": "" + }, { "__type__": "cc.Node", "_name": "good", @@ -7745,7 +8228,7 @@ "_active": true, "_components": [ { - "__id__": 164 + "__id__": 174 } ], "_prefab": null, @@ -7801,7 +8284,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 163 + "__id__": 173 }, "_enabled": true, "_materials": [ @@ -7841,7 +8324,7 @@ "_active": true, "_components": [ { - "__id__": 166 + "__id__": 176 } ], "_prefab": null, @@ -7897,7 +8380,7 @@ "_name": "", "_objFlags": 0, "node": { - "__id__": 165 + "__id__": 175 }, "_enabled": true, "_materials": [ diff --git a/assets/Scene/GuideScene.fire.meta b/assets/Scene/GuideScene.fire.meta index b8c74f4..42a114c 100644 --- a/assets/Scene/GuideScene.fire.meta +++ b/assets/Scene/GuideScene.fire.meta @@ -3,6 +3,6 @@ "uuid": "7dae2401-bac3-47f8-8bcd-b8f23cf7c8cf", "importer": "scene", "asyncLoadAssets": false, - "autoReleaseAssets": false, + "autoReleaseAssets": true, "subMetas": {} } \ No newline at end of file diff --git a/assets/Scene/LoadScene.fire b/assets/Scene/LoadScene.fire index bf0bc86..bdb4107 100644 --- a/assets/Scene/LoadScene.fire +++ b/assets/Scene/LoadScene.fire @@ -60,7 +60,7 @@ "_is3DNode": true, "_groupIndex": 0, "groupIndex": 0, - "autoReleaseAssets": false, + "autoReleaseAssets": true, "_id": "de4a2193-73c2-43cd-8359-363f654e759f" }, { @@ -136,8 +136,6 @@ "__id__": 2 }, "_enabled": true, - "label": null, - "text": "hello", "_id": "00sxmSNoROVLJJnMZniNLa" }, { diff --git a/assets/Scene/LoadScene.fire.meta b/assets/Scene/LoadScene.fire.meta index d59b810..a79752a 100644 --- a/assets/Scene/LoadScene.fire.meta +++ b/assets/Scene/LoadScene.fire.meta @@ -3,6 +3,6 @@ "uuid": "de4a2193-73c2-43cd-8359-363f654e759f", "importer": "scene", "asyncLoadAssets": false, - "autoReleaseAssets": false, + "autoReleaseAssets": true, "subMetas": {} } \ No newline at end of file diff --git a/assets/Scene/RankScene.fire.meta b/assets/Scene/RankScene.fire.meta index 7409a22..797a331 100644 --- a/assets/Scene/RankScene.fire.meta +++ b/assets/Scene/RankScene.fire.meta @@ -3,6 +3,6 @@ "uuid": "92833b7e-ff21-4bab-84ea-c39509a4d2b1", "importer": "scene", "asyncLoadAssets": false, - "autoReleaseAssets": false, + "autoReleaseAssets": true, "subMetas": {} } \ No newline at end of file diff --git a/assets/Script/Block.ts b/assets/Script/Block.ts index 599d9e5..292394a 100644 --- a/assets/Script/Block.ts +++ b/assets/Script/Block.ts @@ -35,6 +35,7 @@ export default class NewClass extends cc.Component { } init(){ + let speedTemp = this.speed; this.getSpeed(); if(this.num > GameData._instance.GM_INFO.blockScale){ if(this.speed < GameData._instance.LEVEL_INFO.slowSpeed)this.speed = GameData._instance.LEVEL_INFO.slowSpeed; @@ -42,12 +43,22 @@ export default class NewClass extends cc.Component { else { if(this.speed < GameData._instance.LEVEL_INFO.fastSpeed)this.speed = GameData._instance.LEVEL_INFO.fastSpeed; } + if(this.speed > speedTemp) this.speed = speedTemp; + if(this.num != 13 && !GameData._instance.GM_INFO.probation){ GameData._instance.CLICK_DATA.block = this.num; GameData._instance.CLICK_DATA.speed = this.speed; this.getDifficulty(); + GameManager._instance.Air2.push(this.speed); + if(GameManager._instance.Air2.length > 99){ + console.log("被限制后",GameManager._instance.Air2); + } } else{ + if(GameManager._instance.block){ + let random = parseInt(Math.random()*3+"") + 1 + this.speed = GameManager._instance.block.getComponent("Block").speed + random; + } this.node.getComponent(cc.PolygonCollider).enabled = false; this.node.getComponent(cc.BoxCollider).enabled = false; GameData._instance.CLICK_DATA.fakeSpeed = this.speed; @@ -65,13 +76,27 @@ export default class NewClass extends cc.Component { getSpeed(){ //先加范围 厚的 let reduceSpeed = GameData._instance.LEVEL_INFO.reduceSpeed; + if(reduceSpeed > 35) reduceSpeed = 35 reduceSpeed = parseInt(Math.random()*reduceSpeed + ""); - - this.speed = this.speed - reduceSpeed/10; - //最后乘以系数 + let random = Math.random()*10; + let max = 1; + if(GameData._instance.LEVEL_INFO.speed < 1.3) max = 9; + else if(GameData._instance.LEVEL_INFO.speed < 1.5) max = 7; + else if(GameData._instance.LEVEL_INFO.speed < 1.8) max = 5; + else if(GameData._instance.LEVEL_INFO.speed < 2) max = 3; + if(random > max) reduceSpeed = -reduceSpeed; + //先乘以系数 this.speed = this.speed/GameData._instance.LEVEL_INFO.speed; - this.speed = parseInt(this.speed*10 + "")/10; - + this.speed = parseInt(this.speed*10/10 + ""); + //后减去随机值 + reduceSpeed = parseInt(reduceSpeed*10/10 + ""); + this.speed = this.speed - reduceSpeed/10; + if(this.num != 13 ){ + GameManager._instance.Air.push(this.speed); + if(GameManager._instance.Air.length == 99){ + console.log("初始数据",GameManager._instance.Air); + } + } } getDifficulty(){ @@ -97,6 +122,7 @@ export default class NewClass extends cc.Component { this.difficulty = difficulty1 + difficulty2 + difficulty3 + difficulty4; this.difficulty = parseInt(this.difficulty *10 + ""); GameData._instance.CLICK_DATA.difficulty = this.difficulty/10; + GameManager._instance.difficultyArray += GameData._instance.CLICK_DATA.difficulty; if(GameData._instance.CLICK_DATA.difficulty > GameData._instance.GM_INFO.difficultyMax) GameData._instance.GM_INFO.difficultyMax = GameData._instance.CLICK_DATA.difficulty; } diff --git a/assets/Script/GameData.ts b/assets/Script/GameData.ts index 26444dd..ca34339 100644 --- a/assets/Script/GameData.ts +++ b/assets/Script/GameData.ts @@ -2,10 +2,6 @@ const {ccclass, property} = cc._decorator; @ccclass export default class GameData extends cc.Component { - @property(cc.Label) - label: cc.Label = null; - @property - text: string = 'hello'; static _instance: any; GM_INFO: {}; GAME_DATA: any[];//备用 @@ -144,7 +140,7 @@ export default class GameData extends cc.Component { this.LEVEL_INFO = { //难度控制 speed:1, //速度加成基础 - addSpeed:0.02, //速度加成系数 + addSpeed:0.015, //速度加成系数 reduceSpeed:0, //速度增加范围 jiansu:3, //速度增加的范围加值 round1:10, //加速范围控制回合档数 2 小于这回合为3double hit @@ -196,7 +192,7 @@ export default class GameData extends cc.Component { }, { //难度控制 name:"block6", //块名字 - speed:7, //每个块的基础速度 + speed:8, //每个块的基础速度 thickness:false, //当前块的厚度 }, { //难度控制 diff --git a/assets/Script/GameManager.ts b/assets/Script/GameManager.ts index 7959a9c..bd90b31 100644 --- a/assets/Script/GameManager.ts +++ b/assets/Script/GameManager.ts @@ -6,7 +6,6 @@ // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html import GameData from './GameData'; -import HttpUtil from './crypto/HttpUtil'; import { GameTool } from './tool/GameTool'; import { Notification } from './tool/Notification'; @@ -57,12 +56,15 @@ export default class GameManager extends cc.Component { oldSpeed: number; //上一回合速度 score: number; //总得分 difficultyMax:number; //最高难度系数 + difficultyArray:number; drop: number; //摄像机落差 guide: number; //记录引导步骤 + Air: any; + Air2: any; + block: cc.Node; // LIFE-CYCLE CALLBACKS: - onLoad () { // cc.game.setFrameRate(59.9); // 示例使用 @@ -71,6 +73,8 @@ export default class GameManager extends cc.Component { // manager.enabledDebugDraw = true; GameManager._instance = this; // GameData._instance.GM_INFO.probation = false; + this.Air = []; + this.Air2 = []; } protected onEnable(): void { @@ -88,7 +92,7 @@ export default class GameManager extends cc.Component { protected onDestroy(): void { Notification.off("createBlock",this.createBlock); Notification.off("addScore",this.addScore); - Notification.off("createBlock",this.createCrackBlock); + Notification.off("createCrackBlock",this.createCrackBlock); Notification.off("death",this.getDeath); Notification.off("jump",this.jump); Notification.off("showGround",this.showGround); @@ -136,8 +140,9 @@ export default class GameManager extends cc.Component { GameData._instance.GM_INFO.difficultyMax = 1; GameData._instance.GM_INFO.life = 3; this.blockArray = []; + this.difficultyArray = 0; this.cameraMove = false; - this.countTime = 120; + this.countTime = 180; this.topUI.getChildByName("xin1").active = true; this.topUI.getChildByName("xin2").active = true; this.topUI.getChildByName("xin3").active = true; @@ -155,60 +160,62 @@ export default class GameManager extends cc.Component { // GameData._instance.GM_INFO.probation = false; if(GameData._instance.GM_INFO.probation){ this.Player.getComponent("Player").jumpPause = true; - cc.tween(this.Tip.getChildByName("left")) - .to(0.25,{width:348}) - .start(); - cc.tween(this.Tip.getChildByName("right")) - .to(0.25,{width:348}) - .start(); - cc.tween(this.Tip.getChildByName("tip")) - .delay(0.15) - .to(0.15,{opacity:255}) - .start(); - cc.tween(this.Tip.getChildByName("btn_next")) - .delay(0.5) - .to(0.2,{opacity:255}) - .start(); - cc.tween(this.Tip.getChildByName("btn_jump")) - .delay(0.5) - .to(0.2,{opacity:255}) - .start(); + let tip = this.Tip.getChildByName("tip"); + this.tipShow(tip,-1,true); + } else{ this.node.getChildByName("Begin").opacity = 0; this.node.getChildByName("Begin").scale = 2; - cc.tween(this.node.getChildByName("Begin")) - .to(0.5,{opacity:255,scale:1}) - .delay(0.5) - .to(0.5,{opacity:0,scale:0}) - .call(() =>{ - this.startGame(); - }) - .start(); + if(this.node.getChildByName("Begin")){ + cc.tween(this.node.getChildByName("Begin")) + .to(0.5,{opacity:255,scale:1}) + .delay(0.5) + .to(0.5,{opacity:0,scale:0}) + .call(() =>{ + this.startGame(); + }) + .start(); + } + else{ + setTimeout(() => { + this.startGame(); + }, 1000); + } } } - //开启引导 - startGuide(type){ //type为第几步 + startGuide(type,revive){ //type为第几步 this.guide = type; console.log("startGuide",type); if(type == 0){ this.careteGuideBlock(1); } else if(type == 2){ - this.Player.getComponent("Player").jumpPause = true; let block = this.node.getChildByName("Block").children[this.node.getChildByName("Block").children.length-1]; cc.tween(block) .to(0.7,{x:0}) .start(); - - this.tipHide("tip2",3); + this.tipHide("tip2",3,false); } else if(type == 3){ - this.round += 1; - this.careteGuideBlock(3); + if(revive == true){ + this.round += 1; + this.careteGuideBlock(3); + } + else{ + let tip = this.Tip.getChildByName("tip3"); + this.tipShow(tip,type,false); + setTimeout(() => { + this.tipHide("tip3",null,false); + this.round += 1; + this.careteGuideBlock(3); + }, 3000); + } + + } else if(type == 4){ this.round += 1; @@ -223,12 +230,23 @@ export default class GameManager extends cc.Component { cc.tween(block) .to(0.7,{x:0}) .start(); - - this.tipHide("tip3",7); + this.tipHide("tip4",7,revive); } else if(type == 7){ - this.round += 1; - this.careteGuideBlock(7); + if(revive == true){ + this.round += 1; + this.careteGuideBlock(7); + } + else{ + let tip = this.Tip.getChildByName("tip5"); + this.tipShow(tip,type,false); + setTimeout(() => { + this.tipHide("tip5",null,revive); + this.round += 1; + this.careteGuideBlock(7); + }, 2000); + } + } else if(type == 8){ this.round += 1; @@ -236,16 +254,55 @@ export default class GameManager extends cc.Component { } else if(type == 9){ this.Player.getComponent("Player").jumpPause = true; + let tip = this.Tip.getChildByName("tip6"); setTimeout(() => { - GameData._instance.GM_INFO.probation = false; - this.destroyBlock(false); - cc.director.loadScene("GameScene"); + this.tipShow(tip,type,false); }, 1000); + } - } - - tipHide(tipName,num){ + tipShow(tipName,type,showNext){ + let tip = tipName; + let left = this.Tip.getChildByName("left"); + let right = this.Tip.getChildByName("right"); + left.width = 0; right.width = 0;tip.opacity = 0; + cc.tween(left) + .to(0.25,{width:348}) + .start(); + cc.tween(right) + .to(0.25,{width:348}) + .start(); + cc.tween(tip) + .delay(0.15) + .to(0.15,{opacity:255}) + .call(() =>{ + this.guide = type; + if(type == 5) this.guide = 6; + if(type == 5 || type == 1 ) this.Player.getComponent("Player").jumpPause = false; + }) + .start(); + if(showNext == true){ + this.Tip.getChildByName("btn_next").active = true; + this.Tip.getChildByName("btn_jump").active = true; + cc.tween(this.Tip.getChildByName("btn_next")) + .delay(0.5) + .to(0.2,{opacity:255}) + .start(); + cc.tween(this.Tip.getChildByName("btn_jump")) + .delay(0.5) + .to(0.2,{opacity:255}) + .start(); + } + if(tip.name == "tip6"){ + this.Tip.getChildByName("btn_start").active = true; + cc.tween(this.Tip.getChildByName("btn_start")) + .delay(1) + .to(0.2,{opacity:255}) + .start(); + } + } + //隐藏 + tipHide(tipName,num,revive){ let tip = this.Tip.getChildByName(tipName); let left = this.Tip.getChildByName("left"); let right = this.Tip.getChildByName("right"); @@ -261,20 +318,22 @@ export default class GameManager extends cc.Component { .to(0.12,{opacity:0}) .delay(1.5) .call(() =>{ - this.Player.getComponent("Player").jumpPause = true; - if(num != null) - this.startGuide(num); + if(tip.name != "tip3" && tipName != "tip5"){ + this.Player.getComponent("Player").jumpPause = true; + } + if(num != null){ + this.startGuide(num,revive); + } + }) .start(); } careteGuideBlock(type){ this.Ground.active = false; - let left = this.Tip.getChildByName("left"); - let right = this.Tip.getChildByName("right"); let tip = this.Tip.getChildByName("tip2"); if(type == 5){ - tip = this.Tip.getChildByName("tip3"); + tip = this.Tip.getChildByName("tip4"); } this.Player.getComponent("Player").jumpPause = true; var block = cc.instantiate(this.blockPrefab[13]); @@ -299,22 +358,8 @@ export default class GameManager extends cc.Component { .to(time,{x:num}) .call(() =>{ if(type == 1 || type == 5){ - left.width = 0; right.width = 0;tip.opacity = 0; - cc.tween(left) - .to(0.25,{width:348}) - .start(); - cc.tween(right) - .to(0.25,{width:348}) - .start(); - cc.tween(tip) - .delay(0.15) - .to(0.15,{opacity:255}) - .call(() =>{ - this.guide = type; - if(type == 5) this.guide = 6; - this.Player.getComponent("Player").jumpPause = false; - }) - .start(); + this.Player.getComponent("Player").jumpPause = true; + this.tipShow(tip,type,false); } }) @@ -327,23 +372,34 @@ export default class GameManager extends cc.Component { this.Ground.y = tempY; }, 500); } - + guideStart(){ + this.tipHide("tip6",null,false); + this.Tip.getChildByName("btn_next").active = false; + this.Tip.getChildByName("btn_jump").active = false; + this.Tip.getChildByName("btn_start").active = false; + GameData._instance.GM_INFO.probation = false; + this.destroyBlock(false); + this.onDestroy(); + + cc.director.loadScene("GameScene"); + } //下一步 guideNext(){ if(this.guide == -1){ - this.tipHide("tip",0); - cc.tween(this.Tip.getChildByName("btn_next")) - .to(0.1,{opacity:0}) - .start(); - cc.tween(this.Tip.getChildByName("btn_jump")) - .to(0.1,{opacity:0}) - .start(); + this.tipHide("tip",0,false); + this.Tip.getChildByName("btn_next").active = false; + this.Tip.getChildByName("btn_jump").active = false; + this.Tip.getChildByName("btn_start").active = false; } } //跳过 guideJump(){ + this.Tip.getChildByName("btn_next").active = false; + this.Tip.getChildByName("btn_jump").active = false; + this.Tip.getChildByName("btn_start").active = false; GameData._instance.GM_INFO.probation = false; this.destroyBlock(false); + this.onDestroy(); cc.director.loadScene("GameScene"); } @@ -353,6 +409,7 @@ export default class GameManager extends cc.Component { startGame(){ this.createBlock(); + // this.createAir(); } addScore(score){ @@ -401,13 +458,15 @@ export default class GameManager extends cc.Component { block.setPosition(cc.v2(this.round%2==0?480:-480,height)); block.parent = this.node.getChildByName("Block"); block.zIndex = 10; + this.block = null; + this.block = block; this.round += 1; this.level += 1; if(this.round > GameData._instance.GM_INFO.levelMax) GameData._instance.GM_INFO.levelMax = this.round; GameData._instance.CLICK_DATA.level = this.round; GameData._instance.CLICK_DATA.round = this.level; GameData._instance.LEVEL_INFO.layer += GameData._instance.LEVEL_INFO.layerAdd; - GameData._instance.LEVEL_INFO.speed += GameData._instance.LEVEL_INFO.addSpeed; + if(GameData._instance.LEVEL_INFO.speed<2)GameData._instance.LEVEL_INFO.speed += GameData._instance.LEVEL_INFO.addSpeed; if(GameData._instance.LEVEL_INFO.reduceSpeed <= 100) GameData._instance.LEVEL_INFO.reduceSpeed += GameData._instance.LEVEL_INFO.jiansu; @@ -417,6 +476,47 @@ export default class GameManager extends cc.Component { } } + //产生空气 + createAir(){ + for(let i=0; i<100;i++){ + this.Ground.active = false; + var num = Math.floor(Math.random()*12); + if(this.round <= 10 && num == 5){ + num = Math.floor(Math.random()*6 + 6); + } + var block = cc.instantiate(this.blockPrefab[num]); + let height = this.Player.getComponent("Player").basicHeight + GameData._instance.GM_INFO.blockMin; + if(num > GameData._instance.GM_INFO.blockScale){ + height += block.height + GameData._instance.GM_INFO.blockMax; + GameData._instance.CLICK_DATA.height = true; + } + + + block.setPosition(cc.v2(this.round%2==0?480:-480,height)); + block.parent = this.node.getChildByName("Block"); + block.zIndex = 10; + + this.round += 1; + this.level += 1; + if(this.round > GameData._instance.GM_INFO.levelMax) GameData._instance.GM_INFO.levelMax = this.round; + GameData._instance.CLICK_DATA.level = this.round; + GameData._instance.CLICK_DATA.round = this.level; + GameData._instance.LEVEL_INFO.layer += GameData._instance.LEVEL_INFO.layerAdd; + GameData._instance.LEVEL_INFO.speed += GameData._instance.LEVEL_INFO.addSpeed; + + if(GameData._instance.LEVEL_INFO.reduceSpeed <= 80) + GameData._instance.LEVEL_INFO.reduceSpeed += GameData._instance.LEVEL_INFO.jiansu; + if(this.round == GameData._instance.LEVEL_INFO.round1) GameData._instance.LEVEL_INFO.jiansu = 2; + else if(this.round == GameData._instance.LEVEL_INFO.round2) GameData._instance.LEVEL_INFO.jiansu = 1; + else if(this.round == GameData._instance.LEVEL_INFO.round3) GameData._instance.LEVEL_INFO.jiansu = 0.5; + } + + } + + clearAir(){ + cc.director.loadScene("GameScene"); + } + //虚假碎裂块 createCrackBlock(){ this.interfere = true; @@ -431,6 +531,7 @@ export default class GameManager extends cc.Component { block.setPosition(cc.v2(this.round%2==0?480:-480,height)); block.parent = this.node.getChildByName("CrackBlock"); block.zIndex = 1; + } } @@ -483,18 +584,18 @@ export default class GameManager extends cc.Component { if(this.guide == 6){ this.guide = 5; this.round = 2; - this.startGuide(5); + this.startGuide(5,true); } else{ this.round = 1; - this.startGuide(6); + this.startGuide(6,true); } } else{ this.round = 0; - this.startGuide(3); + this.startGuide(3,true); } }) .delay(0.5) @@ -678,18 +779,27 @@ export default class GameManager extends cc.Component { this.GameOver.getChildByName("score").getComponent(cc.Label).string = this.score + ""; this.GameOver.getChildByName("level").getComponent(cc.Label).string = GameData._instance.GM_INFO.levelMax + ""; - this.GameOver.getChildByName("difficulty").getComponent(cc.Label).string = - GameData._instance.GM_INFO.difficultyMax + ""; + // this.GameOver.getChildByName("difficulty").getComponent(cc.Label).string = + // GameData._instance.GM_INFO.difficultyMax + ""; + let difficulty = parseInt(this.difficultyArray/this.level*10+""); + // console.log("难度总数",this.difficultyArray,"次数",this.level,"最终",difficulty); + this.GameOver.getChildByName("difficulty").getComponent(cc.Label).string = + difficulty/10 + ""; + } backLoad(){ + this.destroyBlock(false); + this.destroyBlock(true); + this.onDestroy(); cc.director.loadScene("LoadScene"); } again(){ this.destroyBlock(false); this.destroyBlock(true); + this.onDestroy(); cc.director.loadScene("GameScene"); } diff --git a/assets/Script/Load.ts b/assets/Script/Load.ts index 28b6dfa..bc57de6 100644 --- a/assets/Script/Load.ts +++ b/assets/Script/Load.ts @@ -29,7 +29,12 @@ export default class NewClass extends cc.Component { click(){ AudioManager._instance.playMusicGame(); - cc.director.loadScene("GuideScene"); + if(GameData._instance.GM_INFO.probation){ + cc.director.loadScene("GuideScene"); + } + else{ + cc.director.loadScene("GameScene"); + } } openRank(){ diff --git a/assets/Script/Player.ts b/assets/Script/Player.ts index e92c4e2..9977ffa 100644 --- a/assets/Script/Player.ts +++ b/assets/Script/Player.ts @@ -52,7 +52,7 @@ export default class NewClass extends cc.Component { //跳动 jump(){ - + if(this.jumpState < 2){ if(this.jumpState == 0){ if(this.death == false){ @@ -85,7 +85,7 @@ export default class NewClass extends cc.Component { } if(GameManager._instance.guide == 1){ GameManager._instance.guide = 2; - GameManager._instance.startGuide(2); + GameManager._instance.startGuide(2,false); } GameData._instance.CLICK_DATA.jumps = 1; @@ -115,7 +115,7 @@ export default class NewClass extends cc.Component { } if(GameManager._instance.guide == 6){ this.jumpPause = true; - GameManager._instance.startGuide(6); + GameManager._instance.startGuide(6,false); } if(this.jumpAction)this.jumpAction.stop(); AudioManager._instance.playJump(); @@ -198,7 +198,7 @@ export default class NewClass extends cc.Component { else{ if(distance*100 < GameData._instance.GM_INFO.distanceMin && this.jumpState != 0){ // console.log("成功1"); - console.log("百分比:",distance*100+"%"); + // console.log("百分比:",distance*100+"%"); this.success(other,distance*100); } else{ @@ -223,7 +223,7 @@ export default class NewClass extends cc.Component { this.basicHeight = this.node.y; other.node.stopAllActions(); if(GameManager._instance.guide == 3 || GameManager._instance.guide==4){ - GameManager._instance.startGuide(4); + GameManager._instance.startGuide(4,false); if(GameManager._instance.guide == 4){ GameManager._instance.guide = 5; } @@ -236,13 +236,13 @@ export default class NewClass extends cc.Component { .delay(0.5) .to(0.2,{opacity:0}) .call(() =>{ - GameManager._instance.startGuide(5); + GameManager._instance.startGuide(5,false); }) .start(); } else if(GameManager._instance.guide == 7){ - GameManager._instance.startGuide(8); + GameManager._instance.startGuide(8,false); } else if(GameManager._instance.guide == 8){ this.jumpPause = true; @@ -252,20 +252,20 @@ export default class NewClass extends cc.Component { .delay(0.5) .to(0.2,{opacity:0}) .call(() =>{ - GameManager._instance.startGuide(9); + GameManager._instance.startGuide(9,false); }) .start(); } } - - GameData._instance.CLICK_DATA.percent = Math.floor(distance); + let percent = parseInt(distance*10+"")/10; + GameData._instance.CLICK_DATA.percent = percent; if(GameManager._instance)GameManager._instance.destroyBlock(true); this.add.active = true; this.add.opacity = 0; let number = 1; - if(distance <= 7.5) number = 3; - else if(distance <= 15) number = 2; + if(distance <= 10) number = 3; + else if(distance <= 20) number = 2; GameData._instance.CLICK_DATA.accuracy = number; this.add.getChildByName("icon").getComponent(cc.Sprite).spriteFrame = this.plist.getSpriteFrames()[number]; @@ -278,10 +278,6 @@ export default class NewClass extends cc.Component { this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",false); } - this.block = other.node; - if(this.block.name != "block13"){ - this.block.getComponent("Block").setScore(number); - } this.basicHeight = this.node.y; if(number > 1){ AudioManager._instance.playPz(); @@ -300,11 +296,22 @@ export default class NewClass extends cc.Component { this.double = false; GameData._instance.CLICK_DATA.combo = 0; } + this.block = other.node; + if(this.block.name != "block13"){ + this.block.getComponent("Block").setScore(number); + Notification.emit("setData",null); + } - Notification.emit("setData",null); setTimeout(() => { - if(GameManager._instance.guide == -1) + if(GameManager._instance.guide == -1){ Notification.emit("createBlock",null); + if(GameData._instance.LEVEL_INFO.doubleSuccess == 0){ + setTimeout(() => { + Notification.emit("createCrackBlock",null); + }, 100); + } + } + }, 10); if(number > 1 && GameData._instance.LEVEL_INFO.doubleSuccess != 0 ){ @@ -316,10 +323,7 @@ export default class NewClass extends cc.Component { } } if(GameData._instance.LEVEL_INFO.doubleSuccess == 0){ - setTimeout(() => { - if(GameManager._instance.guide == -1) - Notification.emit("createCrackBlock",null); - }, 20); + } else{ GameManager._instance.interfere = false; @@ -344,12 +348,12 @@ export default class NewClass extends cc.Component { this.death = true; if(this.jumpAction)this.jumpAction.stop(); this.jumpState = -1; - Notification.emit("death",null); + Notification.emit("death",false); } else{ this.death = true; if(GameManager._instance.guide == 6){ - GameManager._instance.tipHide("tip3",null); + GameManager._instance.tipHide("tip4",null); } if(this.jumpAction)this.jumpAction.stop(); this.jumpState = -1; diff --git a/assets/Script/RankManager.ts b/assets/Script/RankManager.ts index f346218..fb55ef0 100644 --- a/assets/Script/RankManager.ts +++ b/assets/Script/RankManager.ts @@ -48,7 +48,6 @@ export default class RankManager extends cc.Component { } //实际设置排行数据 getRankData(data){ - if(data){ // console.log(data); this.listData = data.data.list; @@ -80,7 +79,6 @@ export default class RankManager extends cc.Component { if(this.selfData.score){ this.selfNode.getChildByName("totalLab").getComponent(cc.Label).string = this.selfData.score; } - this.setPic(this.selfData.pic); if(this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string == "1"){ this.selfNode.getChildByName("rank").getChildByName("one").active = true; @@ -115,22 +113,24 @@ export default class RankManager extends cc.Component { .getComponent(cc.Label).string = parseInt(time*100 + "") + "%"; }) .start(); + if(this.listData.length > 0){ - time = (this.listData.length - this.rankNumber)/this.listData.length; if(this.listData.length >= 99){ if(this.rankNumber >= 99){ - time = (Math.random()*49+1)/100 - var matchId = cc.sys.localStorage.getItem("matchNumber"); - if(matchId == null || matchId == undefined){ - time = 0; - } + time = this.getRankRandom(); } + else time = (this.listData.length - this.rankNumber)/this.listData.length; + } + else{ + if(this.rankNumber > 99){ + time = 0 + } + else time = (this.listData.length - this.rankNumber)/this.listData.length; } } else{ time = 0; } - setTimeout(() => { if(this.tween)this.tween.stop(); if(this.Player){ @@ -138,10 +138,18 @@ export default class RankManager extends cc.Component { this.Player.getChildByName("rank").getChildByName("number") .getComponent(cc.Label).string = parseInt(time*100 + "") + "%"; } - }, time*2000); - } + + getRankRandom(){ + let time = (Math.random()*49+1)/100 + var matchId = cc.sys.localStorage.getItem("matchNumber"); + if(matchId == null || matchId == undefined){ + time = 0; + } + return time; + } + //设置头像 public setPic(pic){ this.phone.node.parent.getChildByName("icon").active = false; @@ -183,8 +191,6 @@ export default class RankManager extends cc.Component { self.playerAction(); }, 500); } - }) } - } diff --git a/assets/Script/crypto/HttpUtil.ts b/assets/Script/crypto/HttpUtil.ts index 7095ecb..eb5b633 100644 --- a/assets/Script/crypto/HttpUtil.ts +++ b/assets/Script/crypto/HttpUtil.ts @@ -11,20 +11,9 @@ const {ccclass, property} = cc._decorator; export default class HttpUtil extends cc.Component { //排行榜type2为获取,type1为上传 static async rankData(type,callback,data): Promise { - // let data2 = { - // gameId:null, - // userId:null, - // data:null - // } + data.gameId = GameData._instance.GM_INFO.gameId; data.userId = GameData._instance.GM_INFO.userId; - // data2.data = data; - // let shuju = { - // data:data, - // gameId : GameData._instance.GM_INFO.gameId, - // userId : GameData._instance.GM_INFO.userId - // }; - const time = Math.floor((new Date().getTime()) / 1000) const url = apiSign(`/api/get/rank/data?gameId=${config.gameId}&dataType=${type}&time=${time}`, data) diff --git a/assets/Script/tool/GameTool.ts b/assets/Script/tool/GameTool.ts index 5514384..b592ddc 100644 --- a/assets/Script/tool/GameTool.ts +++ b/assets/Script/tool/GameTool.ts @@ -36,7 +36,7 @@ var GameTool = { //GAME_DATA 赋值后 CLICK_DATA清零 GameData._instance.CLICK_init(); - let matchId = this.getMatchId(); + let matchId = this.getMatchId(GameData._instance.GAME_DATA[0].round); let postData = { "matchId":matchId, "data": GameData._instance.GAME_DATA @@ -52,14 +52,12 @@ var GameTool = { "round":"1", "score": GameData._instance.GM_INFO.score, "success": GameData._instance.GM_INFO.success - }; - HttpUtil.rankData(1,function(){},postData); }, //获取matchId 用于上传每次点击数据里面记录id方便查询 - getMatchId (){ + getMatchId (level){ let matchId = cc.sys.localStorage.getItem("matchId"); if(matchId == "undifend" || matchId==null){ matchId = this.setMatchId(); @@ -69,9 +67,10 @@ var GameTool = { matchId = this.setMatchId(); } else{ - let char = parseInt(matchId[10]); - if(this.level == 1){ + let char = parseInt(cc.sys.localStorage.getItem("matchNumber")); + if(level == 1){ char += 1; + cc.sys.localStorage.setItem("matchNumber",char); } matchId = matchId.slice(0, 10) + char + ""; GameData._instance.GM_INFO.matchId = matchId; diff --git a/assets/prefab/block0.prefab b/assets/prefab/block0.prefab index 5aa09a1..3aa3dbc 100644 --- a/assets/prefab/block0.prefab +++ b/assets/prefab/block0.prefab @@ -111,7 +111,7 @@ "_contentSize": { "__type__": "cc.Size", "width": 160, - "height": 68 + "height": 62 }, "_anchorPoint": { "__type__": "cc.Vec2", diff --git a/assets/resources/Json.meta b/assets/resources/Json.meta new file mode 100644 index 0000000..122ded1 --- /dev/null +++ b/assets/resources/Json.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.3", + "uuid": "4e39d655-b0ab-429e-9511-e89b75b72ab8", + "importer": "folder", + "isBundle": false, + "bundleName": "", + "priority": 1, + "compressionType": {}, + "optimizeHotUpdate": {}, + "inlineSpriteFrames": {}, + "isRemoteBundle": {}, + "subMetas": {} +} \ No newline at end of file diff --git a/assets/resources/publicUI.plist b/assets/resources/publicUI.plist index c6967e3..006e26a 100644 --- a/assets/resources/publicUI.plist +++ b/assets/resources/publicUI.plist @@ -15,7 +15,7 @@ spriteSourceSize {57,81} textureRect - {{1523,944},{57,81}} + {{1854,1205},{57,81}} textureRotated @@ -30,7 +30,7 @@ spriteSourceSize {50,79} textureRect - {{1582,945},{50,79}} + {{1939,1048},{50,79}} textureRotated @@ -45,9 +45,9 @@ spriteSourceSize {53,79} textureRect - {{257,1044},{53,79}} + {{1973,795},{53,79}} textureRotated - + 3.png @@ -60,7 +60,7 @@ spriteSourceSize {59,83} textureRect - {{1535,859},{59,83}} + {{1854,1120},{59,83}} textureRotated @@ -75,7 +75,7 @@ spriteSourceSize {49,50} textureRect - {{679,968},{49,50}} + {{1726,1243},{49,50}} textureRotated @@ -90,7 +90,7 @@ spriteSourceSize {49,49} textureRect - {{367,1490},{49,49}} + {{1913,1234},{49,49}} textureRotated @@ -105,7 +105,7 @@ spriteSourceSize {49,49} textureRect - {{1457,1490},{49,49}} + {{1976,1175},{49,49}} textureRotated @@ -120,7 +120,7 @@ spriteSourceSize {174,140} textureRect - {{1213,1397},{174,140}} + {{995,1025},{174,140}} textureRotated @@ -135,7 +135,7 @@ spriteSourceSize {204,168} textureRect - {{1428,1},{204,168}} + {{469,968},{204,168}} textureRotated @@ -150,9 +150,9 @@ spriteSourceSize {202,74} textureRect - {{1459,724},{202,74}} + {{1578,1167},{202,74}} textureRotated - + Frisbee10.png @@ -165,9 +165,9 @@ spriteSourceSize {196,74} textureRect - {{1455,171},{196,74}} + {{1789,918},{196,74}} textureRotated - + Frisbee11.png @@ -180,9 +180,9 @@ spriteSourceSize {204,74} textureRect - {{1459,518},{204,74}} + {{430,1214},{204,74}} textureRotated - + Frisbee12.png @@ -195,9 +195,9 @@ spriteSourceSize {200,60} textureRect - {{1492,1032},{200,60}} + {{1314,1237},{200,60}} textureRotated - + Frisbee2.png @@ -210,9 +210,9 @@ spriteSourceSize {204,74} textureRect - {{1533,247},{204,74}} + {{430,1138},{204,74}} textureRotated - + Frisbee3.png @@ -225,7 +225,7 @@ spriteSourceSize {156,70} textureRect - {{1492,1298},{156,70}} + {{1171,1081},{156,70}} textureRotated @@ -240,7 +240,7 @@ spriteSourceSize {200,72} textureRect - {{1535,453},{200,72}} + {{1865,918},{200,72}} textureRotated @@ -255,7 +255,7 @@ spriteSourceSize {164,70} textureRect - {{1347,892},{164,70}} + {{1782,1116},{164,70}} textureRotated @@ -270,9 +270,9 @@ spriteSourceSize {202,64} textureRect - {{1535,655},{202,64}} + {{948,1241},{202,64}} textureRotated - + Frisbee7.png @@ -285,9 +285,9 @@ spriteSourceSize {170,56} textureRect - {{1457,1432},{170,56}} + {{1939,876},{170,56}} textureRotated - + Frisbee8.png @@ -300,9 +300,9 @@ spriteSourceSize {188,60} textureRect - {{1457,1370},{188,60}} + {{1973,605},{188,60}} textureRotated - + Frisbee9.png @@ -315,7 +315,7 @@ spriteSourceSize {160,62} textureRect - {{1492,1234},{160,62}} + {{1152,1243},{160,62}} textureRotated @@ -330,9 +330,9 @@ spriteSourceSize {57,59} textureRect - {{1554,1027},{57,59}} + {{1915,1175},{57,59}} textureRotated - + again.png @@ -345,7 +345,7 @@ spriteSourceSize {269,72} textureRect - {{1418,1058},{269,72}} + {{1825,647},{269,72}} textureRotated @@ -360,7 +360,7 @@ spriteSourceSize {40,40} textureRect - {{1609,345},{28,40}} + {{1971,1},{28,40}} textureRotated @@ -375,9 +375,9 @@ spriteSourceSize {269,72} textureRect - {{1459,247},{269,72}} + {{995,1167},{269,72}} textureRotated - + begin.png @@ -390,9 +390,9 @@ spriteSourceSize {444,82} textureRect - {{367,1044},{444,82}} + {{1428,113},{444,82}} textureRotated - + beginLabel.png @@ -405,9 +405,9 @@ spriteSourceSize {318,203} textureRect - {{1213,1077},{318,203}} + {{675,1025},{318,203}} textureRotated - + biaoDi.png @@ -420,7 +420,7 @@ spriteSourceSize {448,60} textureRect - {{451,1044},{448,60}} + {{1825,197},{448,60}} textureRotated @@ -450,9 +450,9 @@ spriteSourceSize {54,78} textureRect - {{1596,865},{54,78}} + {{1171,1025},{54,78}} textureRotated - + jump.png @@ -465,7 +465,7 @@ spriteSourceSize {208,46} textureRect - {{469,968},{208,46}} + {{257,1044},{208,46}} textureRotated @@ -495,9 +495,9 @@ spriteSourceSize {208,46} textureRect - {{1601,655},{208,46}} + {{1516,1243},{208,46}} textureRotated - + num_di.png @@ -510,7 +510,7 @@ spriteSourceSize {180,10} textureRect - {{159,1528},{180,10}} + {{430,1290},{180,10}} textureRotated @@ -555,9 +555,9 @@ spriteSourceSize {66,124} textureRect - {{1389,1397},{66,124}} + {{1347,836},{66,124}} textureRotated - + progress0.png @@ -570,9 +570,9 @@ spriteSourceSize {386,114} textureRect - {{513,1379},{386,114}} + {{1887,113},{386,114}} textureRotated - + progress1.png @@ -585,7 +585,7 @@ spriteSourceSize {310,68} textureRect - {{901,1379},{310,68}} + {{636,1230},{310,68}} textureRotated @@ -600,7 +600,7 @@ spriteSourceSize {310,68} textureRect - {{901,1449},{310,68}} + {{1266,1167},{310,68}} textureRotated @@ -615,7 +615,7 @@ spriteSourceSize {102,102} textureRect - {{1419,928},{102,102}} + {{1887,501},{102,102}} textureRotated @@ -630,7 +630,7 @@ spriteSourceSize {98,44} textureRect - {{418,1495},{98,44}} + {{1915,1129},{98,44}} textureRotated @@ -675,7 +675,7 @@ spriteSourceSize {36,36} textureRect - {{1418,1329},{36,36}} + {{1997,922},{36,36}} textureRotated @@ -690,7 +690,7 @@ spriteSourceSize {54,54} textureRect - {{1554,1088},{54,54}} + {{675,968},{54,54}} textureRotated @@ -705,7 +705,7 @@ spriteSourceSize {44,44} textureRect - {{518,1495},{44,44}} + {{1964,1234},{44,44}} textureRotated @@ -735,22 +735,22 @@ spriteSourceSize {440,156} textureRect - {{1,1099},{440,156}} + {{1347,905},{440,156}} textureRotated - + tip1.png aliases spriteOffset - {-1,0} + {-1,1} spriteSize - {565,110} + {509,126} spriteSourceSize {695,360} textureRect - {{1347,325},{565,110}} + {{1347,325},{509,126}} textureRotated @@ -765,11 +765,26 @@ spriteSourceSize {695,360} textureRect - {{159,1099},{427,206}} + {{1,1099},{427,206}} textureRotated - + tip3.png + + aliases + + spriteOffset + {-1,1} + spriteSize + {423,102} + spriteSourceSize + {695,360} + textureRect + {{1347,1063},{423,102}} + textureRotated + + + tip4.png aliases @@ -784,6 +799,36 @@ textureRotated + tip5.png + + aliases + + spriteOffset + {-1,1} + spriteSize + {323,30} + spriteSourceSize + {695,360} + textureRect + {{2003,1},{323,30}} + textureRotated + + + tip6.png + + aliases + + spriteOffset + {4,-4} + spriteSize + {541,110} + spriteSourceSize + {695,360} + textureRect + {{1428,1},{541,110}} + textureRotated + + tip_left.png aliases @@ -795,7 +840,7 @@ spriteSourceSize {348,360} textureRect - {{513,1025},{348,352}} + {{1475,197},{348,352}} textureRotated @@ -810,10 +855,25 @@ spriteSourceSize {348,360} textureRect - {{863,1025},{348,352}} + {{1475,551},{348,352}} textureRotated + tip_start.png + + aliases + + spriteOffset + {0,0} + spriteSize + {269,72} + spriteSourceSize + {269,72} + textureRect + {{1899,605},{269,72}} + textureRotated + + toutu.png aliases @@ -840,7 +900,7 @@ spriteSourceSize {44,36} textureRect - {{1213,1025},{44,36}} + {{1997,876},{44,36}} textureRotated @@ -855,9 +915,9 @@ spriteSourceSize {40,32} textureRect - {{564,1495},{40,32}} + {{1899,876},{40,32}} textureRotated - + xin_1.png @@ -870,7 +930,7 @@ spriteSourceSize {96,37} textureRect - {{1609,247},{96,37}} + {{1991,501},{96,37}} textureRotated @@ -886,9 +946,9 @@ realTextureFileName publicUI.png size - {1653,1540} + {2034,1306} smartupdate - $TexturePacker:SmartUpdate:f3e9bce5c25f8cf689fbdeeafdcff127:5a6f2c79a634a154dd62f73c582bbedc:1c7d81f68058ada321959f2296017bb5$ + $TexturePacker:SmartUpdate:a857c9db7eda2931f20119b6608a9f03:afcc494f405a62af3d3c2093a5a47536:1c7d81f68058ada321959f2296017bb5$ textureFileName publicUI.png diff --git a/assets/resources/publicUI.plist.meta b/assets/resources/publicUI.plist.meta index b2369ac..42d0496 100644 --- a/assets/resources/publicUI.plist.meta +++ b/assets/resources/publicUI.plist.meta @@ -4,8 +4,8 @@ "importer": "asset", "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "size": { - "width": 1653, - "height": 1540 + "width": 2034, + "height": 1306 }, "type": "Texture Packer", "subMetas": { @@ -19,8 +19,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1523, - "trimY": 944, + "trimX": 1854, + "trimY": 1205, "width": 57, "height": 81, "rawWidth": 57, @@ -42,8 +42,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1582, - "trimY": 945, + "trimX": 1939, + "trimY": 1048, "width": 50, "height": 79, "rawWidth": 50, @@ -62,11 +62,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 257, - "trimY": 1044, + "trimX": 1973, + "trimY": 795, "width": 53, "height": 79, "rawWidth": 53, @@ -88,8 +88,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1535, - "trimY": 859, + "trimX": 1854, + "trimY": 1120, "width": 59, "height": 83, "rawWidth": 59, @@ -111,8 +111,8 @@ "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 679, - "trimY": 968, + "trimX": 1726, + "trimY": 1243, "width": 49, "height": 50, "rawWidth": 49, @@ -134,8 +134,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 367, - "trimY": 1490, + "trimX": 1913, + "trimY": 1234, "width": 49, "height": 49, "rawWidth": 49, @@ -157,8 +157,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1457, - "trimY": 1490, + "trimX": 1976, + "trimY": 1175, "width": 49, "height": 49, "rawWidth": 49, @@ -180,8 +180,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1213, - "trimY": 1397, + "trimX": 995, + "trimY": 1025, "width": 174, "height": 140, "rawWidth": 174, @@ -203,8 +203,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1428, - "trimY": 1, + "trimX": 469, + "trimY": 968, "width": 204, "height": 168, "rawWidth": 204, @@ -223,11 +223,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1459, - "trimY": 724, + "trimX": 1578, + "trimY": 1167, "width": 202, "height": 74, "rawWidth": 202, @@ -246,11 +246,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": false, + "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1455, - "trimY": 171, + "trimX": 1789, + "trimY": 918, "width": 196, "height": 74, "rawWidth": 196, @@ -269,11 +269,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1459, - "trimY": 518, + "trimX": 430, + "trimY": 1214, "width": 204, "height": 74, "rawWidth": 204, @@ -292,11 +292,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1492, - "trimY": 1032, + "trimX": 1314, + "trimY": 1237, "width": 200, "height": 60, "rawWidth": 200, @@ -315,11 +315,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1533, - "trimY": 247, + "trimX": 430, + "trimY": 1138, "width": 204, "height": 74, "rawWidth": 204, @@ -341,8 +341,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1492, - "trimY": 1298, + "trimX": 1171, + "trimY": 1081, "width": 156, "height": 70, "rawWidth": 156, @@ -364,8 +364,8 @@ "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1535, - "trimY": 453, + "trimX": 1865, + "trimY": 918, "width": 200, "height": 72, "rawWidth": 200, @@ -387,8 +387,8 @@ "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1347, - "trimY": 892, + "trimX": 1782, + "trimY": 1116, "width": 164, "height": 70, "rawWidth": 164, @@ -407,11 +407,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1535, - "trimY": 655, + "trimX": 948, + "trimY": 1241, "width": 202, "height": 64, "rawWidth": 202, @@ -430,11 +430,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": false, + "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1457, - "trimY": 1432, + "trimX": 1939, + "trimY": 876, "width": 170, "height": 56, "rawWidth": 170, @@ -453,11 +453,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": false, + "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1457, - "trimY": 1370, + "trimX": 1973, + "trimY": 605, "width": 188, "height": 60, "rawWidth": 188, @@ -479,8 +479,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1492, - "trimY": 1234, + "trimX": 1152, + "trimY": 1243, "width": 160, "height": 62, "rawWidth": 160, @@ -499,11 +499,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": false, + "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1554, - "trimY": 1027, + "trimX": 1915, + "trimY": 1175, "width": 57, "height": 59, "rawWidth": 57, @@ -525,8 +525,8 @@ "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1418, - "trimY": 1058, + "trimX": 1825, + "trimY": 647, "width": 269, "height": 72, "rawWidth": 269, @@ -548,8 +548,8 @@ "rotated": false, "offsetX": -1, "offsetY": 0, - "trimX": 1609, - "trimY": 345, + "trimX": 1971, + "trimY": 1, "width": 28, "height": 40, "rawWidth": 40, @@ -568,11 +568,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1459, - "trimY": 247, + "trimX": 995, + "trimY": 1167, "width": 269, "height": 72, "rawWidth": 269, @@ -591,11 +591,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 367, - "trimY": 1044, + "trimX": 1428, + "trimY": 113, "width": 444, "height": 82, "rawWidth": 444, @@ -614,11 +614,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1213, - "trimY": 1077, + "trimX": 675, + "trimY": 1025, "width": 318, "height": 203, "rawWidth": 318, @@ -640,8 +640,8 @@ "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 451, - "trimY": 1044, + "trimX": 1825, + "trimY": 197, "width": 448, "height": 60, "rawWidth": 448, @@ -683,11 +683,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": false, + "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1596, - "trimY": 865, + "trimX": 1171, + "trimY": 1025, "width": 54, "height": 78, "rawWidth": 54, @@ -709,8 +709,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 469, - "trimY": 968, + "trimX": 257, + "trimY": 1044, "width": 208, "height": 46, "rawWidth": 208, @@ -752,11 +752,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1601, - "trimY": 655, + "trimX": 1516, + "trimY": 1243, "width": 208, "height": 46, "rawWidth": 208, @@ -778,8 +778,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 159, - "trimY": 1528, + "trimX": 430, + "trimY": 1290, "width": 180, "height": 10, "rawWidth": 180, @@ -844,11 +844,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": false, + "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1389, - "trimY": 1397, + "trimX": 1347, + "trimY": 836, "width": 66, "height": 124, "rawWidth": 66, @@ -867,11 +867,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": false, + "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 513, - "trimY": 1379, + "trimX": 1887, + "trimY": 113, "width": 386, "height": 114, "rawWidth": 386, @@ -893,8 +893,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 901, - "trimY": 1379, + "trimX": 636, + "trimY": 1230, "width": 310, "height": 68, "rawWidth": 310, @@ -916,8 +916,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 901, - "trimY": 1449, + "trimX": 1266, + "trimY": 1167, "width": 310, "height": 68, "rawWidth": 310, @@ -939,8 +939,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1419, - "trimY": 928, + "trimX": 1887, + "trimY": 501, "width": 102, "height": 102, "rawWidth": 102, @@ -962,8 +962,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 418, - "trimY": 1495, + "trimX": 1915, + "trimY": 1129, "width": 98, "height": 44, "rawWidth": 98, @@ -1031,8 +1031,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1418, - "trimY": 1329, + "trimX": 1997, + "trimY": 922, "width": 36, "height": 36, "rawWidth": 36, @@ -1054,8 +1054,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1554, - "trimY": 1088, + "trimX": 675, + "trimY": 968, "width": 54, "height": 54, "rawWidth": 54, @@ -1077,8 +1077,8 @@ "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 518, - "trimY": 1495, + "trimX": 1964, + "trimY": 1234, "width": 44, "height": 44, "rawWidth": 44, @@ -1120,11 +1120,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": 0, "offsetY": 0, - "trimX": 1, - "trimY": 1099, + "trimX": 1347, + "trimY": 905, "width": 440, "height": 156, "rawWidth": 440, @@ -1145,11 +1145,11 @@ "trimThreshold": 1, "rotated": true, "offsetX": -1, - "offsetY": 0, + "offsetY": 1, "trimX": 1347, "trimY": 325, - "width": 565, - "height": 110, + "width": 509, + "height": 126, "rawWidth": 695, "rawHeight": 360, "borderTop": 0, @@ -1166,10 +1166,10 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": true, + "rotated": false, "offsetX": -1, "offsetY": 1, - "trimX": 159, + "trimX": 1, "trimY": 1099, "width": 427, "height": 206, @@ -1189,6 +1189,29 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, + "rotated": false, + "offsetX": -1, + "offsetY": 1, + "trimX": 1347, + "trimY": 1063, + "width": 423, + "height": 102, + "rawWidth": 695, + "rawHeight": 360, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + }, + "tip4.png": { + "ver": "1.0.6", + "uuid": "527bc086-4dc9-4868-9688-05ff47bf9974", + "importer": "sprite-frame", + "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", + "trimType": "auto", + "trimThreshold": 1, "rotated": true, "offsetX": 0, "offsetY": 0, @@ -1205,6 +1228,52 @@ "spriteType": "normal", "subMetas": {} }, + "tip5.png": { + "ver": "1.0.6", + "uuid": "ae22dcc5-e662-4626-a0d0-9a5a82bc838c", + "importer": "sprite-frame", + "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": -1, + "offsetY": 1, + "trimX": 2003, + "trimY": 1, + "width": 323, + "height": 30, + "rawWidth": 695, + "rawHeight": 360, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + }, + "tip6.png": { + "ver": "1.0.6", + "uuid": "f41f5fbe-bc6d-40a5-b6a4-fd37cc979ab4", + "importer": "sprite-frame", + "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 4, + "offsetY": -4, + "trimX": 1428, + "trimY": 1, + "width": 541, + "height": 110, + "rawWidth": 695, + "rawHeight": 360, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + }, "tip_left.png": { "ver": "1.0.6", "uuid": "0b201ef8-7372-4d5d-a8f5-4b5a3e2fc441", @@ -1215,8 +1284,8 @@ "rotated": false, "offsetX": 0, "offsetY": 4, - "trimX": 513, - "trimY": 1025, + "trimX": 1475, + "trimY": 197, "width": 348, "height": 352, "rawWidth": 348, @@ -1238,8 +1307,8 @@ "rotated": false, "offsetX": 0, "offsetY": -4, - "trimX": 863, - "trimY": 1025, + "trimX": 1475, + "trimY": 551, "width": 348, "height": 352, "rawWidth": 348, @@ -1251,6 +1320,29 @@ "spriteType": "normal", "subMetas": {} }, + "tip_start.png": { + "ver": "1.0.6", + "uuid": "314c609e-c2f8-4079-85ad-a386908b92b5", + "importer": "sprite-frame", + "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", + "trimType": "auto", + "trimThreshold": 1, + "rotated": true, + "offsetX": 0, + "offsetY": 0, + "trimX": 1899, + "trimY": 605, + "width": 269, + "height": 72, + "rawWidth": 269, + "rawHeight": 72, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "spriteType": "normal", + "subMetas": {} + }, "toutu.png": { "ver": "1.0.6", "uuid": "45cc633a-9333-4dca-a0b3-1c149e1fe8d9", @@ -1284,8 +1376,8 @@ "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1213, - "trimY": 1025, + "trimX": 1997, + "trimY": 876, "width": 44, "height": 36, "rawWidth": 44, @@ -1304,11 +1396,11 @@ "rawTextureUuid": "f0cb9adb-fe45-4876-a6bd-719a0dc3e830", "trimType": "auto", "trimThreshold": 1, - "rotated": false, + "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 564, - "trimY": 1495, + "trimX": 1899, + "trimY": 876, "width": 40, "height": 32, "rawWidth": 40, @@ -1330,8 +1422,8 @@ "rotated": true, "offsetX": 0, "offsetY": 0, - "trimX": 1609, - "trimY": 247, + "trimX": 1991, + "trimY": 501, "width": 96, "height": 37, "rawWidth": 96, diff --git a/assets/resources/publicUI.png b/assets/resources/publicUI.png index 805b54d..4026317 100644 Binary files a/assets/resources/publicUI.png and b/assets/resources/publicUI.png differ diff --git a/assets/resources/publicUI.png.meta b/assets/resources/publicUI.png.meta index 00d2f93..b58bf4d 100644 --- a/assets/resources/publicUI.png.meta +++ b/assets/resources/publicUI.png.meta @@ -8,8 +8,8 @@ "premultiplyAlpha": false, "genMipmaps": false, "packable": true, - "width": 1653, - "height": 1540, + "width": 2034, + "height": 1306, "platformSettings": {}, "subMetas": {} } \ No newline at end of file diff --git a/assets/resources/sounds/dui.mp3 b/assets/resources/sounds/dui.mp3 index f68ef65..4ded430 100644 Binary files a/assets/resources/sounds/dui.mp3 and b/assets/resources/sounds/dui.mp3 differ diff --git a/assets/resources/sounds/dui.mp3.meta b/assets/resources/sounds/dui.mp3.meta index 0e15f7a..5b224c8 100644 --- a/assets/resources/sounds/dui.mp3.meta +++ b/assets/resources/sounds/dui.mp3.meta @@ -3,6 +3,6 @@ "uuid": "ae860740-a9fe-4af7-b351-95e46e9ec909", "importer": "audio-clip", "downloadMode": 0, - "duration": 0.10449, + "duration": 0.624, "subMetas": {} } \ No newline at end of file diff --git a/build-templates/web-mobile/index.html b/build-templates/web-mobile/index.html index d0882d7..748da0e 100644 --- a/build-templates/web-mobile/index.html +++ b/build-templates/web-mobile/index.html @@ -126,7 +126,7 @@
- 注意力 + 协调性
diff --git a/build/FlyUp.zip b/build/FlyUp.zip index 1a09848..fb03279 100644 Binary files a/build/FlyUp.zip and b/build/FlyUp.zip differ diff --git a/build/FlyUp/assets/internal/config.d0832.json b/build/FlyUp/assets/internal/config.d0832.json new file mode 100644 index 0000000..c11ac1e --- /dev/null +++ b/build/FlyUp/assets/internal/config.d0832.json @@ -0,0 +1 @@ +{"paths":{"1":["effects/builtin-2d-spine",0],"2":["effects/builtin-2d-gray-sprite",0],"3":["effects/builtin-2d-sprite",0],"4":["materials/builtin-unlit",1],"5":["effects/builtin-3d-trail",0],"6":["effects/builtin-2d-graphics",0],"7":["materials/builtin-2d-gray-sprite",1],"8":["materials/builtin-3d-trail",1],"9":["effects/builtin-unlit",0],"10":["materials/builtin-2d-base",1],"11":["materials/builtin-2d-spine",1],"12":["materials/builtin-2d-graphics",1],"13":["effects/builtin-clear-stencil",0],"14":["materials/builtin-clear-stencil",1],"15":["materials/builtin-2d-label",1],"16":["materials/builtin-2d-sprite",1],"17":["effects/builtin-2d-label",0]},"types":["cc.EffectAsset","cc.Material"],"uuids":["02delMVqdBD70a/HSD99FK","0ek66qC1NOQLjgYmi04HvX","14TDKXr2NJ6LjvHPops74o","28dPjdQWxEQIG3VVl1Qm6T","2aKWBXJHxKHLvrBUi2yYZQ","2afAA24LNP4YmYiaVLiivs","30aC+Hnw1PF4pEcoY3kUYb","3ae7efMv1CLq2ilvUY/tQi","46bU+b5fROqIXVPG6aZWWK","6dkeWRTOBGXICfYQ7JUBnG","6fgBCSDDdPMInvyNlggls2","7a/QZLET9IDreTiBfRn2PD","a1U5RdJRFMFL57BdJC9H1X","c0BAyVxX9JzZy8EjFrc9DU","cffgu4qBxEqa150o1DmRAy","e0LYfU5ZlNFoAB4UiRrGUG","ecpdLyjvZBwrvm+cedCcQy","f1h0LXVtJOta5JLZ1xCzfI"],"scenes":{},"redirect":[],"deps":[],"packs":{"0967b326a":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},"name":"internal","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["0967b326a","1f618"],"native":[0,"cea68"]}} \ No newline at end of file diff --git a/build/FlyUp/assets/internal/config.json b/build/FlyUp/assets/internal/config.json deleted file mode 100644 index 4eca5dc..0000000 --- a/build/FlyUp/assets/internal/config.json +++ /dev/null @@ -1 +0,0 @@ -{"paths":{"0":["effects/builtin-2d-spine",0],"1":["effects/builtin-2d-gray-sprite",0],"2":["effects/builtin-2d-sprite",0],"3":["materials/builtin-unlit",1],"4":["effects/builtin-3d-trail",0],"5":["effects/builtin-2d-graphics",0],"6":["materials/builtin-2d-gray-sprite",1],"7":["materials/builtin-3d-trail",1],"8":["effects/builtin-unlit",0],"9":["materials/builtin-2d-base",1],"10":["materials/builtin-2d-spine",1],"11":["materials/builtin-2d-graphics",1],"12":["effects/builtin-clear-stencil",0],"13":["materials/builtin-clear-stencil",1],"14":["materials/builtin-2d-label",1],"15":["materials/builtin-2d-sprite",1],"16":["effects/builtin-2d-label",0]},"types":["cc.EffectAsset","cc.Material"],"uuids":["0ek66qC1NOQLjgYmi04HvX","14TDKXr2NJ6LjvHPops74o","28dPjdQWxEQIG3VVl1Qm6T","2aKWBXJHxKHLvrBUi2yYZQ","2afAA24LNP4YmYiaVLiivs","30aC+Hnw1PF4pEcoY3kUYb","3ae7efMv1CLq2ilvUY/tQi","46bU+b5fROqIXVPG6aZWWK","6dkeWRTOBGXICfYQ7JUBnG","6fgBCSDDdPMInvyNlggls2","7a/QZLET9IDreTiBfRn2PD","a1U5RdJRFMFL57BdJC9H1X","c0BAyVxX9JzZy8EjFrc9DU","cffgu4qBxEqa150o1DmRAy","e0LYfU5ZlNFoAB4UiRrGUG","ecpdLyjvZBwrvm+cedCcQy","f1h0LXVtJOta5JLZ1xCzfI","02delMVqdBD70a/HSD99FK"],"scenes":{},"redirect":[],"deps":[],"packs":{"0967b326a":[17,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},"name":"internal","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false} \ No newline at end of file diff --git a/build/FlyUp/assets/internal/import/09/0967b326a.json b/build/FlyUp/assets/internal/import/09/0967b326a.1f618.json similarity index 100% rename from build/FlyUp/assets/internal/import/09/0967b326a.json rename to build/FlyUp/assets/internal/import/09/0967b326a.1f618.json diff --git a/build/FlyUp/assets/internal/index.js b/build/FlyUp/assets/internal/index.d0832.js similarity index 100% rename from build/FlyUp/assets/internal/index.js rename to build/FlyUp/assets/internal/index.d0832.js diff --git a/build/FlyUp/assets/internal/native/02/0275e94c-56a7-410f-bd1a-fc7483f7d14a.png b/build/FlyUp/assets/internal/native/02/0275e94c-56a7-410f-bd1a-fc7483f7d14a.cea68.png similarity index 100% rename from build/FlyUp/assets/internal/native/02/0275e94c-56a7-410f-bd1a-fc7483f7d14a.png rename to build/FlyUp/assets/internal/native/02/0275e94c-56a7-410f-bd1a-fc7483f7d14a.cea68.png diff --git a/build/FlyUp/assets/main/config.bb7bf.json b/build/FlyUp/assets/main/config.bb7bf.json new file mode 100644 index 0000000..c91b13e --- /dev/null +++ b/build/FlyUp/assets/main/config.bb7bf.json @@ -0,0 +1 @@ +{"paths":{},"types":[],"uuids":["61cyPdEfRN047sDK9rO0W5","71VhFCTINJM6/Ky3oX9nBT","7driQBusNH+IvNuPI898jP","905NFM3gBJkLy5S16w+cYK","92gzt+/yFLq4Tqw5UJpNKx","a2MjXRFdtLlYQ5ouAFv/+R","b4P/PCArtIdIH38t6mlw8Y","d608qFRoFHwbXd0Dap056i","d8HsitJHxOYqo801xBk8ev","deSiGTc8JDzYNZNj9lTnWf","e8Ueib+qJEhL6mXAHdnwbi","012y8iMjlH9LPzYA29IZFH","02delMVqdBD70a/HSD99FK","05howSluxD46CBLX/ZnslG","07KlE5zmdA45F5MXX4tn9v","0dqhqBaopO2Lry9uZ22P/n","0eMoA/FR5HI6YzPvZVxQgP","0fs5U/1H1Kz6hVPTJDIcD6","0fywWxsY9JMrsJlDAwW41z","13l0c3fepPzrdo8UkZ6s2s","18NhvHdGFKxKwrougZlKY/","1cbBR+9BZDmakR2ztuM3kE","29FYIk+N1GYaeWH/q1NxQO","2dZEG9VWtNwrCLXrYMS5hw","2d/rEocc1JwatG4288s85D","31TGCewvhAeYWto4aQi5K1","39xzZtFr5M/acEKWIrq6cD","3bAXuMqSFLuqZf4MEH4bKb","42wTrzp9VL/KgP+q5Snsfz","45zGM6kzNNyqCzHBSeH+jZ","476NNhXXBJioJtzBpXYise","4cjU79RPBBrasMHLDBNsa+","4d2p1BwfdARKIOEeJDBlrN","52e8CGTclIaJaIBf9Hv5l0","543AZJJRJNe74aRSOA/3jd","59gVJrAjVOg5VE8K3Ujzlm","5abBNMMpZBR7vxJDcBQvfE","5acAP5kBJNIq86XuKHIhnw","5cO7kybDxGj4ipyMYdRYZB","5f5dyqtRNNxaFmVzYns6FZ","61RXdTYpxOF4WRDyrNwZFy","68vQp8xUlNf59MVET05m+d","6dbB2vS8xAbZr+Ea0SE2pp","6dfggYQOpNj77kZgggqBuN","79EEpVmG5Ofrf4dzYSv0mf","7a/QZLET9IDreTiBfRn2PD","7bPZFIpvxDz790SV/uquvE","7dew4A8lxPAb6UXs8/8hDU","7d50AODeVNILIcpV/wWtNs","80p0i1It1Jnqkx1Eq6/tjY","81kTyAtYxBG5KiXvC09e2F","84YJ/y5+dGTZCyXrXmIV4s","84wjQCxHFO0KkAKZ9lX2la","85fsVivv9OWICMxb5V/nAe","8av2UppB1GLrFE7foRFNht","8bu7JSDHhB4Ylq2OW1dnPA","8cTTjwpoVNppnt9C5+bTLH","92ACsV8KlNCaPLzdwGvm8c","92fGwMmkBCY5k5VoquaR1+","93DPpMxKVBEZM995IYAktf","93GxQ0tzVDRLJzory0GyLs","95GA3w6h5IAbwc9mRay+cB","9bvaMerUlDyary99mJa6xp","9dN/HK+xVFAK8rOdF0ycf2","9ek+N5QBJJ7bZRvDbIuhMh","a3PqQUiTxHcoYRWepGiyDW","a3x2KFXlRBDL1yV31B5T0l","a32pHCIe9MoqDGzJ5ELQ66","a35WcKLdNBzpEGLBw0FGrq","a5x0ZIVsdNoq+eDLofss7P","a5+VXEpKdC8YAlvdO00kp3","a7GUBGKxNNn5n3Bd1G1/7H","adVjW5ul5J459XvvWIwB3K","aeItzF5mJGJqDQmlqCvIOM","aehgdAqf5K97NRleRunskJ","b3Qw97PiRLTKWa+VuH25ai","b9ISRpubBHKoSDaDOwhq0q","b9XZYB0kFMaYGIVwIzKDW6","bbODDEAMlJAYAhPtN+WjwK","bdFeIR8hBOCanOEDKhjNfF","c3/KjBwH1OfbdG1xkmP5ZU","c43Hs4oAZKeJ//MqMDDarb","c7lG371dZGYLVDWJFIeH2Y","cbvcD+cP5HE6KccuPsfiUR","d6ck6JPlFDParbM+Bd9ci9","d72tmW9ydN4JWZvmf7dWoa","d8BSo7tlZAzKAF6oZCy8E5","d8RPO7qIhCAb5HQbIZgaIU","d9HN6kEbVDCIKVAeTIU14c","dccw1zl/NId7x7keVQwrRQ","e97GVMl6JHh5Ml5qEDdSGa","ecpdLyjvZBwrvm+cedCcQy","f0BIwQ8D5Ml7nTNQbh1YlS","f2I7Pm7elK3Y3OuzUcxpgp","f4H1++vG1Apbak/TfMl5q0","f4QySXWtBKCbSlCEmr2Squ","f48kauGftDgJTF1A+WuyXj","f6Vggt1ZlA+J5lp/yPdtQr","f6j3VD4tBGBJ43J9e8txaS","f9ddP1G7BMirAPTQSjbjHC","faruncavtPIop38CByX5uN"],"scenes":{"db://assets/Scene/GameScene.fire":3,"db://assets/Scene/GuideScene.fire":2,"db://assets/Scene/LoadScene.fire":9,"db://assets/Scene/RankScene.fire":4},"redirect":[12,0,13,1,14,1,15,1,16,1,17,1,18,1,19,1,21,1,23,1,25,1,26,1,27,1,28,1,29,1,30,1,31,1,32,1,33,1,34,1,35,1,36,1,37,1,40,1,42,1,43,1,44,1,45,0,47,1,48,1,49,1,50,1,51,1,53,1,54,1,55,1,56,1,57,1,58,1,59,1,60,1,61,1,63,1,65,1,66,1,68,1,70,1,71,1,72,1,73,1,74,1,75,1,77,1,78,1,82,1,83,1,84,1,85,1,86,1,88,1,89,1,91,0,93,1,94,1,95,1,96,1,97,1,98,1,99,1,100,1],"deps":["internal","resources"],"packs":{"049667bf5":[22,3,5,90,92],"08e56b8fe":[11,20,24,41,46,52,64,67,69,76,79,80,81],"0a50a0981":[2,5,87],"0b3ae8af1":[0,1,6,7,8,10],"0f197f47b":[38,39,4,62]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["049667bf5","6f853","08e56b8fe","98081","0a50a0981","053c6","0b3ae8af1","7c178","0f197f47b","d393c",9,"f4b63"],"native":[0,"6d707",1,"c06a9",6,"83fcc",7,"d55c2",8,"cdbc9",10,"90cf4"]}} \ No newline at end of file diff --git a/build/FlyUp/assets/main/config.json b/build/FlyUp/assets/main/config.json deleted file mode 100644 index f5dd70e..0000000 --- a/build/FlyUp/assets/main/config.json +++ /dev/null @@ -1 +0,0 @@ -{"paths":{},"types":[],"uuids":["7driQBusNH+IvNuPI898jP","905NFM3gBJkLy5S16w+cYK","92gzt+/yFLq4Tqw5UJpNKx","a2MjXRFdtLlYQ5ouAFv/+R","012y8iMjlH9LPzYA29IZFH","02delMVqdBD70a/HSD99FK","05howSluxD46CBLX/ZnslG","07KlE5zmdA45F5MXX4tn9v","0dqhqBaopO2Lry9uZ22P/n","0eMoA/FR5HI6YzPvZVxQgP","0fs5U/1H1Kz6hVPTJDIcD6","0fywWxsY9JMrsJlDAwW41z","13l0c3fepPzrdo8UkZ6s2s","18NhvHdGFKxKwrougZlKY/","1cbBR+9BZDmakR2ztuM3kE","2dZEG9VWtNwrCLXrYMS5hw","2d/rEocc1JwatG4288s85D","39xzZtFr5M/acEKWIrq6cD","3bAXuMqSFLuqZf4MEH4bKb","42wTrzp9VL/KgP+q5Snsfz","45zGM6kzNNyqCzHBSeH+jZ","476NNhXXBJioJtzBpXYise","4cjU79RPBBrasMHLDBNsa+","4d2p1BwfdARKIOEeJDBlrN","543AZJJRJNe74aRSOA/3jd","59gVJrAjVOg5VE8K3Ujzlm","5abBNMMpZBR7vxJDcBQvfE","5acAP5kBJNIq86XuKHIhnw","5cO7kybDxGj4ipyMYdRYZB","5f5dyqtRNNxaFmVzYns6FZ","61RXdTYpxOF4WRDyrNwZFy","61cyPdEfRN047sDK9rO0W5","68vQp8xUlNf59MVET05m+d","6dbB2vS8xAbZr+Ea0SE2pp","6dfggYQOpNj77kZgggqBuN","79EEpVmG5Ofrf4dzYSv0mf","7a/QZLET9IDreTiBfRn2PD","7bPZFIpvxDz790SV/uquvE","7dew4A8lxPAb6UXs8/8hDU","7d50AODeVNILIcpV/wWtNs","80p0i1It1Jnqkx1Eq6/tjY","81kTyAtYxBG5KiXvC09e2F","84wjQCxHFO0KkAKZ9lX2la","85fsVivv9OWICMxb5V/nAe","8av2UppB1GLrFE7foRFNht","8bu7JSDHhB4Ylq2OW1dnPA","8cTTjwpoVNppnt9C5+bTLH","92ACsV8KlNCaPLzdwGvm8c","92fGwMmkBCY5k5VoquaR1+","93DPpMxKVBEZM995IYAktf","93GxQ0tzVDRLJzory0GyLs","95GA3w6h5IAbwc9mRay+cB","9bvaMerUlDyary99mJa6xp","9dN/HK+xVFAK8rOdF0ycf2","9ek+N5QBJJ7bZRvDbIuhMh","a3PqQUiTxHcoYRWepGiyDW","a3x2KFXlRBDL1yV31B5T0l","a32pHCIe9MoqDGzJ5ELQ66","a35WcKLdNBzpEGLBw0FGrq","a5x0ZIVsdNoq+eDLofss7P","a5+VXEpKdC8YAlvdO00kp3","a7GUBGKxNNn5n3Bd1G1/7H","adVjW5ul5J459XvvWIwB3K","aehgdAqf5K97NRleRunskJ","b3Qw97PiRLTKWa+VuH25ai","b9ISRpubBHKoSDaDOwhq0q","b9XZYB0kFMaYGIVwIzKDW6","bbODDEAMlJAYAhPtN+WjwK","bdFeIR8hBOCanOEDKhjNfF","c3/KjBwH1OfbdG1xkmP5ZU","c43Hs4oAZKeJ//MqMDDarb","c7lG371dZGYLVDWJFIeH2Y","cbvcD+cP5HE6KccuPsfiUR","d6ck6JPlFDParbM+Bd9ci9","d608qFRoFHwbXd0Dap056i","d72tmW9ydN4JWZvmf7dWoa","d8BSo7tlZAzKAF6oZCy8E5","d8HsitJHxOYqo801xBk8ev","d8RPO7qIhCAb5HQbIZgaIU","d9HN6kEbVDCIKVAeTIU14c","dccw1zl/NId7x7keVQwrRQ","deSiGTc8JDzYNZNj9lTnWf","ecpdLyjvZBwrvm+cedCcQy","f2I7Pm7elK3Y3OuzUcxpgp","f4QySXWtBKCbSlCEmr2Squ","f48kauGftDgJTF1A+WuyXj","f6Vggt1ZlA+J5lp/yPdtQr","f6j3VD4tBGBJ43J9e8txaS","f9ddP1G7BMirAPTQSjbjHC","faruncavtPIop38CByX5uN"],"scenes":{"db://assets/Scene/GameScene.fire":1,"db://assets/Scene/GuideScene.fire":0,"db://assets/Scene/LoadScene.fire":81,"db://assets/Scene/RankScene.fire":2},"redirect":[5,0,6,1,7,1,8,1,9,1,10,1,11,1,12,1,14,1,15,1,17,1,18,1,19,1,20,1,21,1,22,1,23,1,24,1,25,1,26,1,27,1,30,1,33,1,34,1,35,1,36,0,38,1,39,1,40,1,41,1,43,1,44,1,45,1,46,1,47,1,48,1,49,1,50,1,51,1,53,1,55,1,56,1,58,1,60,1,61,1,62,1,63,1,64,1,66,1,67,1,71,1,72,1,73,1,75,1,76,1,79,1,80,1,82,0,83,1,84,1,85,1,86,1,87,1,88,1,89,1],"deps":["internal","resources"],"packs":{"01b5f38a3":[1,3],"076f3381e":[31,74,77],"08e56b8fe":[4,13,16,32,37,42,54,57,59,65,68,69,70],"0a50a0981":[0,3,78],"0f197f47b":[28,29,2,52]},"name":"main","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false} \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/01/01b5f38a3.json b/build/FlyUp/assets/main/import/01/01b5f38a3.json deleted file mode 100644 index 54d511f..0000000 --- a/build/FlyUp/assets/main/import/01/01b5f38a3.json +++ /dev/null @@ -1 +0,0 @@ -[1,["ecpdLyjvZBwrvm+cedCcQy","a2MjXRFdtLlYQ5ouAFv/+R","39xzZtFr5M/acEKWIrq6cD","b9XZYB0kFMaYGIVwIzKDW6","07KlE5zmdA45F5MXX4tn9v","d72tmW9ydN4JWZvmf7dWoa","7dew4A8lxPAb6UXs8/8hDU","93GxQ0tzVDRLJzory0GyLs","6dfggYQOpNj77kZgggqBuN","7a/QZLET9IDreTiBfRn2PD","f2I7Pm7elK3Y3OuzUcxpgp","5abBNMMpZBR7vxJDcBQvfE","f4QySXWtBKCbSlCEmr2Squ","bbODDEAMlJAYAhPtN+WjwK","d6ck6JPlFDParbM+Bd9ci9","92ACsV8KlNCaPLzdwGvm8c","c7lG371dZGYLVDWJFIeH2Y","f6Vggt1ZlA+J5lp/yPdtQr","f9ddP1G7BMirAPTQSjbjHC","543AZJJRJNe74aRSOA/3jd","4cjU79RPBBrasMHLDBNsa+","0eMoA/FR5HI6YzPvZVxQgP","a3PqQUiTxHcoYRWepGiyDW","8av2UppB1GLrFE7foRFNht","6dbB2vS8xAbZr+Ea0SE2pp","45zGM6kzNNyqCzHBSeH+jZ","faruncavtPIop38CByX5uN","0dqhqBaopO2Lry9uZ22P/n","81kTyAtYxBG5KiXvC09e2F","7bPZFIpvxDz790SV/uquvE","68vQp8xUlNf59MVET05m+d","b9ISRpubBHKoSDaDOwhq0q","2d/rEocc1JwatG4288s85D","18NhvHdGFKxKwrougZlKY/","a32pHCIe9MoqDGzJ5ELQ66","bdFeIR8hBOCanOEDKhjNfF","012y8iMjlH9LPzYA29IZFH","84wjQCxHFO0KkAKZ9lX2la","c3/KjBwH1OfbdG1xkmP5ZU","a5x0ZIVsdNoq+eDLofss7P","9ek+N5QBJJ7bZRvDbIuhMh","c43Hs4oAZKeJ//MqMDDarb","02delMVqdBD70a/HSD99FK"],["node","_spriteFrame","_parent","_N$target","_N$skeletonData","GameOver","time","Xin","Ground","Player","topUI","Camera","add","scene","plist","_textureSetter"],[["cc.Node",["_name","_active","_opacity","_components","_contentSize","_parent","_trs","_anchorPoint","_color","_eulerAngles","_children"],0,9,5,1,7,5,5,5,12],["cc.Node",["_name","_active","_id","_children","_parent","_trs","_contentSize","_components","_anchorPoint","_color"],0,2,1,7,5,9,5,5],["cc.Sprite",["_type","_fillRange","_sizeMode","_fillType","node","_materials","_spriteFrame"],-1,1,3,6],["cc.Widget",["_alignFlags","_bottom","_originalWidth","_originalHeight","_right","_top","node"],-3,1],["sp.Skeleton",["defaultSkin","_preCacheMode","loop","premultipliedAlpha","_animationName","_playTimes","node","_materials","_N$skeletonData"],-3,1,3,6],["cc.Label",["_string","_N$horizontalAlign","_N$verticalAlign","_styleFlags","_fontSize","_lineHeight","node","_materials"],-3,1,3],"cc.SpriteFrame",["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Node",["_name","_parent","_children","_components","_contentSize"],2,1,2,12,5],["cc.Node",["_name","_parent","_components","_contentSize","_trs"],2,1,2,5,7],["b26a49RCSFPT4C+F7xAd62t",["node","Camera","topUI","Player","Ground","Xin","time","GameOver","blockPrefab"],3,1,1,1,1,1,1,1,1,3],["7fd74nqW4BCN6aFalN5nmyL",["node","add","plist"],3,1,1,6],["cc.BoxCollider",["node","_offset","_size"],3,1,5,5],["ba5152SuShBF7Gc5uHiGsp0",["node"],3,1],["cc.Button",["zoomScale","_N$transition","node","clickEvents","_N$target"],1,1,9,1],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["cc.BlockInputEvents",["node"],3,1],["cc.PolygonCollider",["node","points"],3,1,12],["cc.Scene",["_name","_active","autoReleaseAssets","_children","_anchorPoint","_trs"],0,2,5,7],["cc.Camera",["_clearFlags","_depth","node"],1,1]],[[2,4,5,6,1],[0,0,5,3,4,6,2],[0,0,5,3,4,7,6,2],[5,0,4,5,1,2,6,7,6],[0,0,5,3,8,4,6,2],[2,0,1,4,5,6,3],[3,0,1,6,3],[0,0,5,3,4,2],[0,0,5,3,4,6,9,2],[3,0,6,2],[0,0,1,5,3,4,6,3],[0,0,1,5,3,4,6,9,3],[3,0,2,3,6,4],[2,2,4,5,6,2],[14,0,1,2,3,4,3],[15,0,1,2,3],[0,0,5,2],[0,0,2,5,3,8,4,3],[0,0,2,5,3,4,6,3],[17,0,1],[7,0,1,3],[0,0,10,3,4,2],[0,0,5,3,4,7,2],[0,0,1,5,3,4,7,6,3],[1,0,4,3,6,5,2],[1,0,1,3,7,6,3],[1,0,4,3,7,9,6,8,5,2],[1,0,4,3,7,6,8,5,2],[1,0,4,3,7,6,5,2],[1,0,1,4,3,3],[1,0,2,3,7,6,5,3],[1,0,1,4,3,5,3],[1,0,4,3,5,2],[8,0,1,2,3,4,2],[9,0,1,2,3,4,2],[3,0,4,1,6,4],[3,5,1,6,3],[10,0,1,2,3,4,5,6,7,8,1],[11,0,1,2,1],[12,0,1,2,1],[2,0,1,4,5,3],[2,0,3,4,5,6,3],[2,0,4,5,6,2],[13,0,1],[16,0,1,2,3,3],[18,0,1,1],[19,0,1,2,3,4,5,4],[4,0,1,2,3,4,5,6,7,8,7],[4,0,1,2,6,7,8,4],[5,0,3,1,2,6,7,5],[20,0,1,2,3]],[[[[20,"GameScene",null],[21,"GameNode",[[-10,-11,-12,-13,[16,"CrackBlock",-14],[16,"Block",-15],-16,-17,-18,-19,-20,-21],1,1,1,1,4,4,1,1,1,1,1,1],[[9,45,-1],[37,-9,-8,-7,-6,-5,-4,-3,-2,[98,99,100,101,102,103,104,105,106,107,108,109,110]]],[5,750,1334]],[24,"topUI",1,[-22,-23,-24,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37],[5,750,100],[0,600,0,0,0,0,1,1,1,1]],[25,"GameOver",false,[-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52],[[9,45,-38]],[5,750,1334]],[26,"bg1",1,[-54,-55,-56,-57,-58,-59],[[12,45,750,1660,-53]],[4,4287466895],[5,750,1334],[0,0.5,0],[0,-667,0,0,0,0,1,1,1,1]],[27,"Player",1,[-63,-64,-65,-66],[[38,-61,-60,29],[39,-62,[0,0,61.9],[5,50,120]]],[5,67,123.8],[0,0.5,0],[0,-500,0,0,0,0,1,1,1,1]],[28,"New Sprite",2,[-68,-69,-70],[[0,-67,[36],37]],[5,180,10],[-262.336,1.669,0,0,0,0,1,-1,1,1]],[29,"Revive",false,1,[-71,-72,-73,-74]],[33,"Main Camera",1,[3],[[-75,[43,-76],[12,45,750,1660,-77]],1,4,4],[5,750,1334]],[1,"rank",3,[[0,-78,[96],97],[14,1.1,3,-80,[[15,"b26a49RCSFPT4C+F7xAd62t","openRank",1]],-79],[35,36,8.269999999999982,10.918999999999926,-81]],[5,126,140],[303.73,-586.0810000000001,0,0,0,0,1,1,1,0]],[30,"Canvas","a5esZu+45LA5mBpvttspPD",[1],[[44,true,false,-82,[5,750,1334]],[9,45,-83]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[31,"add",false,5,[-84,-85],[0,161,0,0,0,0,1,1,1,1]],[17,"bg",125,3,[[13,0,-86,[76],77],[12,45,750,1334,-87],[19,-88]],[4,4278190080],[5,750,1334]],[1,"no",3,[[0,-89,[86],87],[14,1.1,3,-91,[[15,"b26a49RCSFPT4C+F7xAd62t","backLoad",1]],-90]],[5,269,72],[-180,-387.302,0,0,0,0,1,1,1,0]],[1,"yes",3,[[0,-92,[88],89],[14,1.1,3,-94,[[15,"b26a49RCSFPT4C+F7xAd62t","again",1]],-93]],[5,269,72],[180,-387.302,0,0,0,0,1,1,1,0]],[22,"New Sprite(Splash)",4,[[5,2,1,-95,[2],3],[9,4,-96]],[5,750,1660],[0,0.5,0]],[2,"New Sprite(Splash)",4,[[5,2,1,-97,[4],5],[6,4,3320,-98]],[5,750,1660],[0,0.5,0],[0,3320,0,0,0,0,1,1,1,1]],[2,"New Sprite(Splash)",4,[[5,2,1,-99,[6],7],[6,4,6629.899,-100]],[5,750,1660],[0,0.5,0],[0,6629.899,0,0,0,0,1,1,1,1]],[2,"New Sprite(Splash)",4,[[5,2,1,-101,[8],9],[6,4,1660,-102]],[5,750,1660],[0,0.5,0],[0,1660,0,0,0,0,1,1,1,1]],[2,"New Sprite(Splash)",4,[[5,2,1,-103,[10],11],[6,4,4980,-104]],[5,750,1660],[0,0.5,0],[0,4980,0,0,0,0,1,1,1,1]],[23,"New Sprite(Splash)",false,4,[[5,2,1,-105,[12],13],[6,4,8289.899,-106]],[5,750,1660],[0,0.5,0],[0,8289.899,0,0,0,0,1,1,1,1]],[2,"bg2",1,[[40,2,1,-107,[14]],[36,1061.788,-1387,-108]],[5,750,1660],[0,0.5,0],[0,-657.498,0,0,0,0,1,1,-1,1]],[32,"Tai",1,[-109,-110],[0,-508.741,0,0,0,0,1,1,1,1]],[10,"Ground",false,1,[[45,-111,[[[0,-100,2.5],[0,-100,-2.5],[0,100,-2.5],[0,100,2.5]],8,8,8,8]]],[5,200,10],[0,-500,0,0,0,0,1,1,1,1]],[17,"New Sprite(Splash)",81,7,[[13,0,-112,[66],67],[19,-113]],[4,4278190080],[5,750,2000]],[2,"xin",7,[[41,3,1,-114,[72],73]],[5,174,140],[0,0.5,0],[0,-70,0,0,0,0,1,1,1,1]],[46,"New Node",false,true,[10],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[10,"New Sprite(Splash)",false,1,[[13,0,-115,[0],1]],[5,750,500],[0,-863.356,0,0,0,0,1,1,1,1]],[7,"New Sprite",22,[[0,-116,[15],16]],[5,750,254]],[7,"New Sprite",22,[[0,-117,[17],18]],[5,440,156]],[18,"xin",0,5,[[0,-118,[19],20]],[5,96,37],[0,140,0,0,0,0,1,1,1,1]],[10,"guang",false,5,[[47,"default",0,false,false,"double_1",1,-119,[21],22]],[5,251.8,346.15],[37,55,0,0,0,0,1,0.8,0.8,1]],[7,"sp",5,[[48,"default",0,false,-120,[23],24]],[5,67,123.8]],[1,"icon",11,[[0,-121,[25],26]],[5,50,79],[24.768,5.736,0,0,0,0,1,1,1,1]],[8,"jia",11,[[0,-122,[27],28]],[5,57,59],[-23.138,0,0,0,0,0.3826834323650898,0.9238795325112867,1,1,1],[1,0,0,45]],[1,"New Sprite",6,[[0,-123,[30],31]],[5,180,10],[-524.672,0,0,0,0,0,1,-1,1,-1]],[1,"New Sprite",6,[[0,-124,[32],33]],[5,386,114],[-262.336,12.809,0,0,0,0,1,-1,1,-1]],[1,"New Sprite",6,[[0,-125,[34],35]],[5,310,68],[-262.336,-3.981,0,0,0,0,1,-1,1,-1]],[1,"progress",2,[[42,3,-126,[38],39]],[5,310,68],[0,-2.642,0,0,0,0,1,1,1,1]],[8,"New Sprite",2,[[0,-127,[40],41]],[5,44,44],[-97.013,-0.438,0,0,0,-0.1908089953765448,0.981627183447664,1,1,1],[1,0,0,-22]],[8,"New Sprite",2,[[0,-128,[42],43]],[5,44,44],[-29.238,-24.818,0,0,0,-0.008726535498373935,0.9999619230641713,1,1,1],[1,0,0,-1]],[8,"New Sprite",2,[[0,-129,[44],45]],[5,44,44],[100.706,-2.842,0,0,0,-0.3090169943749474,0.9510565162951535,1,1,1],[1,0,0,-36]],[11,"star1",false,2,[[0,-130,[46],47]],[5,54,54],[-97.013,-0.438,0,0,0,-0.1908089953765448,0.981627183447664,1,1,1],[1,0,0,-22]],[11,"star2",false,2,[[0,-131,[48],49]],[5,54,54],[-29.238,-24.818,0,0,0,-0.008726535498373935,0.9999619230641713,1,1,1],[1,0,0,-1]],[11,"star3",false,2,[[0,-132,[50],51]],[5,54,54],[100.706,-2.842,0,0,0,-0.3090169943749474,0.9510565162951535,1,1,1],[1,0,0,-36]],[34,"time",2,[-133],[5,102.3,50.4],[265.857,17.789,0,0,0,0,1,1,1,1]],[49,"02:00",1,1,1,45,[52]],[1,"New Sprite",2,[[0,-134,[53],54]],[5,40,32],[-311.731,12.644,0,0,0,0,1,1,1,1]],[1,"New Sprite",2,[[0,-135,[55],56]],[5,40,32],[-264.923,12.644,0,0,0,0,1,1,1,1]],[1,"New Sprite",2,[[0,-136,[57],58]],[5,40,32],[-217.008,12.644,0,0,0,0,1,1,1,1]],[1,"xin1",2,[[0,-137,[59],60]],[5,44,36],[-311.731,12.644,0,0,0,0,1,1,1,1]],[1,"xin2",2,[[0,-138,[61],62]],[5,44,36],[-264.923,12.644,0,0,0,0,1,1,1,1]],[1,"xin3",2,[[0,-139,[63],64]],[5,44,36],[-217.008,12.644,0,0,0,0,1,1,1,1]],[1,"nandu",2,[[3,"0",50,50,1,1,-140,[65]]],[5,27.81,63],[0,22.397,0,0,0,0,1,1,1,1]],[2,"New Sprite",7,[[0,-141,[68],69]],[5,174,140],[0,0.5,0],[0,-70,0,0,0,0,1,1,1,1]],[7,"New Sprite",7,[[0,-142,[70],71]],[5,204,168]],[18,"Begin",0,1,[[0,-143,[74],75]],[5,318,203],[0,0,0,0,0,0,1,2,2,1]],[1,"New Sprite",3,[[0,-144,[78],79]],[5,700,344],[0,347.926,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-145,[80],81]],[5,448,60],[0,140,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-146,[82],83]],[5,448,60],[0,-11.299,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-147,[84],85]],[5,448,60],[0,-137.873,0,0,0,0,1,1,1,1]],[4,"New Label",3,[[3,"最高难度系数",32,32,1,1,-148,[90]]],[4,4294042522],[5,192,40.32],[0,-137.873,0,0,0,0,1,1,1,1]],[4,"New Label",3,[[3,"总得分",32,32,1,1,-149,[91]]],[4,4294042522],[5,96,40.32],[0,140,0,0,0,0,1,1,1,1]],[4,"New Label",3,[[3,"本次最高层数",32,32,1,1,-150,[92]]],[4,4294042522],[5,192,40.32],[0,-11.299,0,0,0,0,1,1,1,1]],[4,"score",3,[[3,"100000",65,65,1,1,-151,[93]]],[4,4294573823],[5,216.9,81.9],[0,69.258,0,0,0,0,1,1,1,1]],[4,"level",3,[[3,"56",52,52,1,1,-152,[94]]],[4,4294573823],[5,57.84,65.52],[0,-71.579,0,0,0,0,1,1,1,1]],[4,"difficulty",3,[[3,"9.8",50,50,1,1,-153,[95]]],[4,4294573823],[5,69.51,63],[0,-203.614,0,0,0,0,1,1,1,1]],[50,7,-1,8]],0,[0,0,1,0,5,3,0,6,46,0,7,25,0,8,23,0,9,5,0,10,2,0,11,67,0,0,1,0,-1,27,0,-2,4,0,-3,21,0,-4,22,0,2,1,0,2,1,0,-7,5,0,-8,23,0,-9,2,0,-10,7,0,-11,56,0,-12,8,0,-1,6,0,-2,38,0,-3,39,0,-4,40,0,-5,41,0,-6,42,0,-7,43,0,-8,44,0,-9,45,0,-10,47,0,-11,48,0,-12,49,0,-13,50,0,-14,51,0,-15,52,0,-16,53,0,0,3,0,-1,12,0,-2,57,0,-3,58,0,-4,59,0,-5,60,0,-6,13,0,-7,14,0,-8,61,0,-9,62,0,-10,63,0,-11,64,0,-12,65,0,-13,66,0,-14,9,0,0,4,0,-1,15,0,-2,16,0,-3,17,0,-4,18,0,-5,19,0,-6,20,0,12,11,0,0,5,0,0,5,0,-1,30,0,-2,31,0,-3,32,0,-4,11,0,0,6,0,-1,35,0,-2,36,0,-3,37,0,-1,24,0,-2,54,0,-3,55,0,-4,25,0,-1,67,0,0,8,0,0,8,0,0,9,0,3,9,0,0,9,0,0,9,0,0,10,0,0,10,0,-1,33,0,-2,34,0,0,12,0,0,12,0,0,12,0,0,13,0,3,13,0,0,13,0,0,14,0,3,14,0,0,14,0,0,15,0,0,15,0,0,16,0,0,16,0,0,17,0,0,17,0,0,18,0,0,18,0,0,19,0,0,19,0,0,20,0,0,20,0,0,21,0,0,21,0,-1,28,0,-2,29,0,0,23,0,0,24,0,0,24,0,0,25,0,0,27,0,0,28,0,0,29,0,0,30,0,0,31,0,0,32,0,0,33,0,0,34,0,0,35,0,0,36,0,0,37,0,0,38,0,0,39,0,0,40,0,0,41,0,0,42,0,0,43,0,0,44,0,-1,46,0,0,47,0,0,48,0,0,49,0,0,50,0,0,51,0,0,52,0,0,53,0,0,54,0,0,55,0,0,56,0,0,57,0,0,58,0,0,59,0,0,60,0,0,61,0,0,62,0,0,63,0,0,64,0,0,65,0,0,66,0,13,26,1,2,10,3,2,8,10,2,26,153],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,4,-1,4,-1,1,-1,1,14,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,-1,-1,-1,-1,-1,1,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13],[0,1,0,2,0,2,0,2,0,3,0,3,0,3,0,0,12,0,13,0,14,9,15,9,16,0,17,0,18,19,0,10,0,20,0,21,0,10,0,22,0,4,0,4,0,4,0,5,0,5,0,5,0,0,6,0,6,0,6,0,7,0,7,0,7,0,0,1,0,11,0,23,0,11,0,24,0,1,0,25,0,8,0,8,0,8,0,26,0,27,0,0,0,0,0,0,0,28,29,30,31,32,33,34,35,36,37,38,39,40,41]],[[{"name":"default_sprite_splash","rect":[0,0,2,2],"offset":[0,0],"originalSize":[2,2],"capInsets":[0,0,0,0]}],[6],0,[0],[15],[42]]]] \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/04/049667bf5.6f853.json b/build/FlyUp/assets/main/import/04/049667bf5.6f853.json new file mode 100644 index 0000000..4dcd26e --- /dev/null +++ b/build/FlyUp/assets/main/import/04/049667bf5.6f853.json @@ -0,0 +1 @@ +[1,["ecpdLyjvZBwrvm+cedCcQy","f0BIwQ8D5Ml7nTNQbh1YlS","a2MjXRFdtLlYQ5ouAFv/+R","39xzZtFr5M/acEKWIrq6cD","b9XZYB0kFMaYGIVwIzKDW6","07KlE5zmdA45F5MXX4tn9v","d72tmW9ydN4JWZvmf7dWoa","7dew4A8lxPAb6UXs8/8hDU","93GxQ0tzVDRLJzory0GyLs","6dfggYQOpNj77kZgggqBuN","7a/QZLET9IDreTiBfRn2PD","f2I7Pm7elK3Y3OuzUcxpgp","5abBNMMpZBR7vxJDcBQvfE","e97GVMl6JHh5Ml5qEDdSGa","29FYIk+N1GYaeWH/q1NxQO","71VhFCTINJM6/Ky3oX9nBT","f4QySXWtBKCbSlCEmr2Squ","bbODDEAMlJAYAhPtN+WjwK","d6ck6JPlFDParbM+Bd9ci9","92ACsV8KlNCaPLzdwGvm8c","c7lG371dZGYLVDWJFIeH2Y","f6Vggt1ZlA+J5lp/yPdtQr","84YJ/y5+dGTZCyXrXmIV4s","543AZJJRJNe74aRSOA/3jd","4cjU79RPBBrasMHLDBNsa+","0eMoA/FR5HI6YzPvZVxQgP","a3PqQUiTxHcoYRWepGiyDW","8av2UppB1GLrFE7foRFNht","6dbB2vS8xAbZr+Ea0SE2pp","45zGM6kzNNyqCzHBSeH+jZ","faruncavtPIop38CByX5uN","0dqhqBaopO2Lry9uZ22P/n","81kTyAtYxBG5KiXvC09e2F","7bPZFIpvxDz790SV/uquvE","68vQp8xUlNf59MVET05m+d","b9ISRpubBHKoSDaDOwhq0q","2d/rEocc1JwatG4288s85D","18NhvHdGFKxKwrougZlKY/","a32pHCIe9MoqDGzJ5ELQ66","bdFeIR8hBOCanOEDKhjNfF","012y8iMjlH9LPzYA29IZFH","84wjQCxHFO0KkAKZ9lX2la","c3/KjBwH1OfbdG1xkmP5ZU","a5x0ZIVsdNoq+eDLofss7P","9ek+N5QBJJ7bZRvDbIuhMh","c43Hs4oAZKeJ//MqMDDarb","02delMVqdBD70a/HSD99FK","b4P/PCArtIdIH38t6mlw8Y","e8Ueib+qJEhL6mXAHdnwbi"],["node","_spriteFrame","_parent","_textureSetter","_N$target","_N$skeletonData","_N$normalSprite","_N$pressedSprite","_N$hoverSprite","_N$disabledSprite","GameOver","time","Xin","Ground","Player","topUI","Camera","add","scene","plist"],[["cc.Node",["_name","_active","_opacity","_objFlags","_components","_contentSize","_parent","_trs","_color","_anchorPoint","_eulerAngles","_children"],-1,9,5,1,7,5,5,5,12],["cc.Node",["_name","_active","_id","_objFlags","_children","_parent","_contentSize","_trs","_components","_anchorPoint","_color"],-1,2,1,5,7,9,5,5],["cc.Sprite",["_type","_sizeMode","_fillRange","_fillType","node","_materials","_spriteFrame"],-1,1,3,6],["cc.Widget",["_alignFlags","_bottom","_originalWidth","_originalHeight","_right","alignMode","_top","node"],-4,1],"cc.SpriteFrame",["cc.Label",["_string","_N$horizontalAlign","_N$verticalAlign","_fontSize","_lineHeight","_styleFlags","_enableWrapText","_N$overflow","_N$cacheMode","node","_materials"],-6,1,3],["cc.Button",["_N$transition","zoomScale","node","clickEvents","_N$target","_N$normalColor","_N$pressedColor","_N$disabledColor","_N$normalSprite","_N$pressedSprite","_N$hoverSprite","_N$disabledSprite"],1,1,9,1,5,5,5,6,6,6,6],["sp.Skeleton",["defaultSkin","_preCacheMode","loop","premultipliedAlpha","_animationName","_playTimes","node","_materials","_N$skeletonData"],-3,1,3,6],["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Node",["_name","_parent","_children","_components","_contentSize"],2,1,2,12,5],["cc.Node",["_name","_parent","_components","_contentSize","_trs"],2,1,2,5,7],["b26a49RCSFPT4C+F7xAd62t",["node","Camera","topUI","Player","Ground","Xin","time","GameOver","blockPrefab"],3,1,1,1,1,1,1,1,1,3],["7fd74nqW4BCN6aFalN5nmyL",["node","add","plist"],3,1,1,6],["cc.BoxCollider",["node","_offset","_size"],3,1,5,5],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["ba5152SuShBF7Gc5uHiGsp0",["node"],3,1],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.BlockInputEvents",["node"],3,1],["cc.PolygonCollider",["node","points"],3,1,12],["cc.Scene",["_name","_active","autoReleaseAssets","_children","_anchorPoint","_trs"],0,2,5,7],["cc.Camera",["_clearFlags","_depth","node"],1,1]],[[2,4,5,6,1],[0,0,6,4,5,7,2],[0,0,6,4,5,9,7,2],[5,0,3,4,1,2,9,10,6],[0,0,6,4,8,5,7,2],[2,0,2,4,5,6,3],[3,0,1,7,3],[16,0,1,2,3],[0,0,6,4,5,2],[3,0,7,2],[0,0,1,6,4,5,7,3],[0,0,6,4,5,7,10,2],[0,0,1,6,4,5,7,10,3],[3,0,2,3,7,4],[2,1,4,5,6,2],[6,1,0,2,3,4,3],[0,0,6,2],[0,0,2,6,4,8,5,3],[0,0,2,6,4,5,7,3],[0,0,3,6,4,8,5,3],[1,0,3,4,8,6,3],[1,0,1,5,4,8,6,7,3],[3,5,0,2,3,7,5],[2,0,1,4,5,6,3],[6,0,2,3,5,6,7,4,8,9,10,11,2],[17,0,1],[5,0,3,4,6,1,2,7,8,9,10,9],[8,0,1,3],[0,0,11,4,5,2],[0,0,6,4,5,9,2],[0,0,1,6,4,5,9,7,3],[1,0,5,4,6,7,2],[1,0,1,4,8,6,3],[1,0,5,4,8,10,6,9,7,2],[1,0,5,4,8,6,9,7,2],[1,0,2,4,8,6,7,3],[1,0,5,4,8,6,7,2],[1,0,1,5,4,3],[1,0,1,5,4,7,3],[1,0,5,4,7,2],[9,0,1,2,3,4,2],[10,0,1,2,3,4,2],[3,0,4,1,7,4],[3,6,1,7,3],[11,0,1,2,3,4,5,6,7,8,1],[12,0,1,2,1],[13,0,1,2,1],[14,0,1,2,3,3],[2,0,2,4,5,3],[2,0,3,4,5,6,3],[2,0,4,5,6,2],[15,0,1],[18,0,1,1],[19,0,1,2,3,4,5,4],[7,0,1,2,3,4,5,6,7,8,7],[7,0,1,2,6,7,8,4],[5,0,5,1,2,9,10,5],[20,0,1,2,3]],[[[{"name":"default_btn_disabled","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}],[4],0,[0],[3],[15]],[[[27,"GameScene",null],[28,"GameNode",[[-10,-11,-12,-13,[16,"CrackBlock",-14],[16,"Block",-15],-16,-17,-18,-19,-20,-21],1,1,1,1,4,4,1,1,1,1,1,1],[[9,45,-1],[44,-9,-8,-7,-6,-5,-4,-3,-2,[98,99,100,101,102,103,104,105,106,107,108,109,110]]],[5,750,1334]],[31,"topUI",1,[-22,-23,-24,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37],[5,750,100],[0,600,0,0,0,0,1,1,1,1]],[32,"GameOver",false,[-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52],[[9,45,-38]],[5,750,1334]],[33,"bg1",1,[-54,-55,-56,-57,-58,-59],[[13,45,750,1660,-53]],[4,4287466895],[5,750,1334],[0,0.5,0],[0,-667,0,0,0,0,1,1,1,1]],[34,"Player",1,[-63,-64,-65,-66],[[45,-61,-60,29],[46,-62,[0,0,61.9],[5,50,120]]],[5,67,123.8],[0,0.5,0],[0,-500,0,0,0,0,1,1,1,1]],[35,"Canvas","a5esZu+45LA5mBpvttspPD",[1,-69,-70],[[47,true,false,-67,[5,750,1334]],[9,45,-68]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[36,"New Sprite",2,[-72,-73,-74],[[0,-71,[36],37]],[5,180,10],[-262.336,1.669,0,0,0,0,1,-1,1,1]],[37,"Revive",false,1,[-75,-76,-77,-78]],[40,"Main Camera",1,[3],[[-79,[51,-80],[13,45,750,1660,-81]],1,4,4],[5,750,1334]],[1,"rank",3,[[0,-82,[96],97],[15,1.1,3,-84,[[7,"b26a49RCSFPT4C+F7xAd62t","openRank",1]],-83],[42,36,20.269999999999982,29.918999999999926,-85]],[5,102,102],[303.73,-586.0810000000001,0,0,0,0,1,1,1,0]],[20,"Background",512,[-88],[[23,1,0,-86,[112],113],[22,0,45,100,40,-87]],[5,300,120]],[20,"Background",512,[-91],[[23,1,0,-89,[119],120],[22,0,45,100,40,-90]],[5,300,120]],[38,"add",false,5,[-92,-93],[0,161,0,0,0,0,1,1,1,1]],[17,"bg",125,3,[[14,0,-94,[76],77],[13,45,750,1334,-95],[25,-96]],[4,4278190080],[5,750,1334]],[1,"no",3,[[0,-97,[86],87],[15,1.1,3,-99,[[7,"b26a49RCSFPT4C+F7xAd62t","backLoad",1]],-98]],[5,269,72],[-180,-387.302,0,0,0,0,1,1,1,0]],[1,"yes",3,[[0,-100,[88],89],[15,1.1,3,-102,[[7,"b26a49RCSFPT4C+F7xAd62t","again",1]],-101]],[5,269,72],[180,-387.302,0,0,0,0,1,1,1,0]],[29,"New Sprite(Splash)",4,[[5,2,1,-103,[2],3],[9,4,-104]],[5,750,1660],[0,0.5,0]],[2,"New Sprite(Splash)",4,[[5,2,1,-105,[4],5],[6,4,3320,-106]],[5,750,1660],[0,0.5,0],[0,3320,0,0,0,0,1,1,1,1]],[2,"New Sprite(Splash)",4,[[5,2,1,-107,[6],7],[6,4,6629.899,-108]],[5,750,1660],[0,0.5,0],[0,6629.899,0,0,0,0,1,1,1,1]],[2,"New Sprite(Splash)",4,[[5,2,1,-109,[8],9],[6,4,1660,-110]],[5,750,1660],[0,0.5,0],[0,1660,0,0,0,0,1,1,1,1]],[2,"New Sprite(Splash)",4,[[5,2,1,-111,[10],11],[6,4,4980,-112]],[5,750,1660],[0,0.5,0],[0,4980,0,0,0,0,1,1,1,1]],[30,"New Sprite(Splash)",false,4,[[5,2,1,-113,[12],13],[6,4,8289.899,-114]],[5,750,1660],[0,0.5,0],[0,8289.899,0,0,0,0,1,1,1,1]],[2,"bg2",1,[[48,2,1,-115,[14]],[43,1061.788,-1387,-116]],[5,750,1660],[0,0.5,0],[0,-657.498,0,0,0,0,1,1,-1,1]],[39,"Tai",1,[-117,-118],[0,-508.741,0,0,0,0,1,1,1,1]],[10,"Ground",false,1,[[52,-119,[[[0,-100,2.5],[0,-100,-2.5],[0,100,-2.5],[0,100,2.5]],8,8,8,8]]],[5,200,10],[0,-500,0,0,0,0,1,1,1,1]],[17,"New Sprite(Splash)",81,8,[[14,0,-120,[66],67],[25,-121]],[4,4278190080],[5,750,2000]],[2,"xin",8,[[49,3,1,-122,[72],73]],[5,174,140],[0,0.5,0],[0,-70,0,0,0,0,1,1,1,1]],[21,"New Button",false,6,[11],[[24,2,-123,[[7,"b26a49RCSFPT4C+F7xAd62t","createAir",1]],[4,4293322470],[4,4291348680],[4,3363338360],11,114,115,116,117]],[5,300,120],[-2.753,245.049,0,0,0,0,1,1,1,1]],[21,"New Button",false,6,[12],[[24,2,-124,[[7,"b26a49RCSFPT4C+F7xAd62t","clearAir",1]],[4,4293322470],[4,4291348680],[4,3363338360],12,121,122,123,124]],[5,300,120],[-2.753,41.301,0,0,0,0,1,1,1,1]],[53,"New Node",false,true,[6],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[10,"New Sprite(Splash)",false,1,[[14,0,-125,[0],1]],[5,750,500],[0,-863.356,0,0,0,0,1,1,1,1]],[8,"New Sprite",24,[[0,-126,[15],16]],[5,750,254]],[8,"New Sprite",24,[[0,-127,[17],18]],[5,440,156]],[18,"xin",0,5,[[0,-128,[19],20]],[5,96,37],[0,140,0,0,0,0,1,1,1,1]],[10,"guang",false,5,[[54,"default",0,false,false,"double_1",1,-129,[21],22]],[5,251.8,346.15],[37,55,0,0,0,0,1,0.8,0.8,1]],[8,"sp",5,[[55,"default",0,false,-130,[23],24]],[5,67,123.8]],[1,"icon",13,[[0,-131,[25],26]],[5,50,79],[24.768,5.736,0,0,0,0,1,1,1,1]],[1,"jia",13,[[0,-132,[27],28]],[5,49,50],[-23.138,0,0,0,0,0,1,1,1,1]],[1,"New Sprite",7,[[0,-133,[30],31]],[5,180,10],[-524.672,0,0,0,0,0,1,-1,1,-1]],[1,"New Sprite",7,[[0,-134,[32],33]],[5,386,114],[-262.336,12.809,0,0,0,0,1,-1,1,-1]],[1,"New Sprite",7,[[0,-135,[34],35]],[5,310,68],[-262.336,-3.981,0,0,0,0,1,-1,1,-1]],[1,"progress",2,[[50,3,-136,[38],39]],[5,310,68],[0,-2.642,0,0,0,0,1,1,1,1]],[11,"New Sprite",2,[[0,-137,[40],41]],[5,44,44],[-97.013,-0.438,0,0,0,-0.1908089953765448,0.981627183447664,1,1,1],[1,0,0,-22]],[11,"New Sprite",2,[[0,-138,[42],43]],[5,44,44],[-29.238,-24.818,0,0,0,-0.008726535498373935,0.9999619230641713,1,1,1],[1,0,0,-1]],[11,"New Sprite",2,[[0,-139,[44],45]],[5,44,44],[100.706,-2.842,0,0,0,-0.3090169943749474,0.9510565162951535,1,1,1],[1,0,0,-36]],[12,"star1",false,2,[[0,-140,[46],47]],[5,54,54],[-97.013,-0.438,0,0,0,-0.1908089953765448,0.981627183447664,1,1,1],[1,0,0,-22]],[12,"star2",false,2,[[0,-141,[48],49]],[5,54,54],[-29.238,-24.818,0,0,0,-0.008726535498373935,0.9999619230641713,1,1,1],[1,0,0,-1]],[12,"star3",false,2,[[0,-142,[50],51]],[5,54,54],[100.706,-2.842,0,0,0,-0.3090169943749474,0.9510565162951535,1,1,1],[1,0,0,-36]],[41,"time",2,[-143],[5,102.3,50.4],[265.857,17.789,0,0,0,0,1,1,1,1]],[56,"03:00",1,1,1,49,[52]],[1,"New Sprite",2,[[0,-144,[53],54]],[5,40,32],[-311.731,12.644,0,0,0,0,1,1,1,1]],[1,"New Sprite",2,[[0,-145,[55],56]],[5,40,32],[-264.923,12.644,0,0,0,0,1,1,1,1]],[1,"New Sprite",2,[[0,-146,[57],58]],[5,40,32],[-217.008,12.644,0,0,0,0,1,1,1,1]],[1,"xin1",2,[[0,-147,[59],60]],[5,44,36],[-311.731,12.644,0,0,0,0,1,1,1,1]],[1,"xin2",2,[[0,-148,[61],62]],[5,44,36],[-264.923,12.644,0,0,0,0,1,1,1,1]],[1,"xin3",2,[[0,-149,[63],64]],[5,44,36],[-217.008,12.644,0,0,0,0,1,1,1,1]],[1,"nandu",2,[[3,"0",50,50,1,1,-150,[65]]],[5,27.81,63],[0,22.397,0,0,0,0,1,1,1,1]],[2,"New Sprite",8,[[0,-151,[68],69]],[5,174,140],[0,0.5,0],[0,-70,0,0,0,0,1,1,1,1]],[8,"New Sprite",8,[[0,-152,[70],71]],[5,204,168]],[18,"Begin",0,1,[[0,-153,[74],75]],[5,318,203],[0,0,0,0,0,0,1,2,2,1]],[1,"New Sprite",3,[[0,-154,[78],79]],[5,700,344],[0,347.926,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-155,[80],81]],[5,448,60],[0,140,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-156,[82],83]],[5,448,60],[0,-11.299,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-157,[84],85]],[5,448,60],[0,-137.873,0,0,0,0,1,1,1,1]],[4,"New Label",3,[[3,"最高难度系数",32,32,1,1,-158,[90]]],[4,4294042522],[5,192,40.32],[0,-137.873,0,0,0,0,1,1,1,1]],[4,"New Label",3,[[3,"总得分",32,32,1,1,-159,[91]]],[4,4294042522],[5,96,40.32],[0,140,0,0,0,0,1,1,1,1]],[4,"New Label",3,[[3,"本次最高层数",32,32,1,1,-160,[92]]],[4,4294042522],[5,192,40.32],[0,-11.299,0,0,0,0,1,1,1,1]],[4,"score",3,[[3,"100000",65,65,1,1,-161,[93]]],[4,4294573823],[5,216.9,81.9],[0,69.258,0,0,0,0,1,1,1,1]],[4,"level",3,[[3,"56",52,52,1,1,-162,[94]]],[4,4294573823],[5,57.84,65.52],[0,-71.579,0,0,0,0,1,1,1,1]],[4,"difficulty",3,[[3,"9.8",50,50,1,1,-163,[95]]],[4,4294573823],[5,69.51,63],[0,-203.614,0,0,0,0,1,1,1,1]],[57,7,-1,9],[19,"Label",512,11,[[26,"生成",60,60,false,1,1,1,1,-164,[111]]],[4,4278190080],[5,200,60]],[19,"Label",512,12,[[26,"重新",60,60,false,1,1,1,1,-165,[118]]],[4,4278190080],[5,200,60]]],0,[0,0,1,0,10,3,0,11,50,0,12,27,0,13,25,0,14,5,0,15,2,0,16,71,0,0,1,0,-1,31,0,-2,4,0,-3,23,0,-4,24,0,2,1,0,2,1,0,-7,5,0,-8,25,0,-9,2,0,-10,8,0,-11,60,0,-12,9,0,-1,7,0,-2,42,0,-3,43,0,-4,44,0,-5,45,0,-6,46,0,-7,47,0,-8,48,0,-9,49,0,-10,51,0,-11,52,0,-12,53,0,-13,54,0,-14,55,0,-15,56,0,-16,57,0,0,3,0,-1,14,0,-2,61,0,-3,62,0,-4,63,0,-5,64,0,-6,15,0,-7,16,0,-8,65,0,-9,66,0,-10,67,0,-11,68,0,-12,69,0,-13,70,0,-14,10,0,0,4,0,-1,17,0,-2,18,0,-3,19,0,-4,20,0,-5,21,0,-6,22,0,17,13,0,0,5,0,0,5,0,-1,34,0,-2,35,0,-3,36,0,-4,13,0,0,6,0,0,6,0,-2,28,0,-3,29,0,0,7,0,-1,39,0,-2,40,0,-3,41,0,-1,26,0,-2,58,0,-3,59,0,-4,27,0,-1,71,0,0,9,0,0,9,0,0,10,0,4,10,0,0,10,0,0,10,0,0,11,0,0,11,0,-1,72,0,0,12,0,0,12,0,-1,73,0,-1,37,0,-2,38,0,0,14,0,0,14,0,0,14,0,0,15,0,4,15,0,0,15,0,0,16,0,4,16,0,0,16,0,0,17,0,0,17,0,0,18,0,0,18,0,0,19,0,0,19,0,0,20,0,0,20,0,0,21,0,0,21,0,0,22,0,0,22,0,0,23,0,0,23,0,-1,32,0,-2,33,0,0,25,0,0,26,0,0,26,0,0,27,0,0,28,0,0,29,0,0,31,0,0,32,0,0,33,0,0,34,0,0,35,0,0,36,0,0,37,0,0,38,0,0,39,0,0,40,0,0,41,0,0,42,0,0,43,0,0,44,0,0,45,0,0,46,0,0,47,0,0,48,0,-1,50,0,0,51,0,0,52,0,0,53,0,0,54,0,0,55,0,0,56,0,0,57,0,0,58,0,0,59,0,0,60,0,0,61,0,0,62,0,0,63,0,0,64,0,0,65,0,0,66,0,0,67,0,0,68,0,0,69,0,0,70,0,0,72,0,0,73,0,18,30,1,2,6,3,2,9,6,2,30,11,2,28,12,2,29,165],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,5,-1,5,-1,1,-1,1,19,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,-1,-1,-1,-1,-1,1,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-1,-1,1,6,7,8,9,-1,-1,1,6,7,8,9],[0,2,0,3,0,3,0,3,0,4,0,4,0,4,0,0,16,0,17,0,18,10,19,10,20,0,21,0,22,23,0,11,0,24,0,25,0,11,0,26,0,5,0,5,0,5,0,6,0,6,0,6,0,0,7,0,7,0,7,0,8,0,8,0,8,0,0,2,0,12,0,27,0,12,0,28,0,2,0,29,0,9,0,9,0,9,0,30,0,31,0,0,0,0,0,0,0,32,33,34,35,36,37,38,39,40,41,42,43,44,45,0,0,1,1,13,1,14,0,0,1,1,13,1,14]],[[{"name":"default_sprite_splash","rect":[0,0,2,2],"offset":[0,0],"originalSize":[2,2],"capInsets":[0,0,0,0]}],[4],0,[0],[3],[46]],[[{"name":"default_btn_pressed","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}],[4],0,[0],[3],[47]],[[{"name":"default_btn_normal","rect":[0,0,40,40],"offset":[0,0],"originalSize":[40,40],"capInsets":[12,12,12,12]}],[4],0,[0],[3],[48]]]] \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/07/076f3381e.json b/build/FlyUp/assets/main/import/07/076f3381e.json deleted file mode 100644 index 5bf2f3e..0000000 --- a/build/FlyUp/assets/main/import/07/076f3381e.json +++ /dev/null @@ -1 +0,0 @@ -{"type":"cc.Texture2D","data":"0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1"} \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/08/08e56b8fe.json b/build/FlyUp/assets/main/import/08/08e56b8fe.98081.json similarity index 99% rename from build/FlyUp/assets/main/import/08/08e56b8fe.json rename to build/FlyUp/assets/main/import/08/08e56b8fe.98081.json index 8ee2539..c887539 100644 --- a/build/FlyUp/assets/main/import/08/08e56b8fe.json +++ b/build/FlyUp/assets/main/import/08/08e56b8fe.98081.json @@ -1 +1 @@ -[1,["ecpdLyjvZBwrvm+cedCcQy","3bAXuMqSFLuqZf4MEH4bKb","61RXdTYpxOF4WRDyrNwZFy","dccw1zl/NId7x7keVQwrRQ","2dZEG9VWtNwrCLXrYMS5hw","476NNhXXBJioJtzBpXYise","05howSluxD46CBLX/ZnslG","f48kauGftDgJTF1A+WuyXj","8cTTjwpoVNppnt9C5+bTLH","f6j3VD4tBGBJ43J9e8txaS","a35WcKLdNBzpEGLBw0FGrq","4d2p1BwfdARKIOEeJDBlrN","a7GUBGKxNNn5n3Bd1G1/7H"],["node","root","data","_spriteFrame"],[["cc.Node",["_name","_components","_prefab","_contentSize","_anchorPoint","_trs","_children","_parent"],2,9,4,5,5,7,2,1],["cc.PolygonCollider",["node","points","_offset"],3,1,12,5],["cc.PrefabInfo",["fileId","root","asset"],2,1,1],["cc.Sprite",["node","_materials","_spriteFrame"],3,1,3,6],["cc.Prefab",["_name"],2],["2bf4dXY+rJG37abLKiCEh7s",["node"],3,1],["cc.BoxCollider",["node","_offset","_size"],3,1,5,5]],[[1,0,2,1,1],[4,0,2],[0,0,6,1,2,3,4,5,2],[0,0,7,1,2,3,4,5,2],[5,0,1],[6,0,1,2,1],[2,1,2,1],[2,0,1,2,2],[3,0,1,2,1],[1,0,1,1],[3,0,1,1]],[[[[1,"block8"],[2,"block8",[-5],[[4,-2],[0,-3,[0,0,24],[[[0,-52,30],[0,-53,28],[0,-65,23],[0,-66,21],[0,-94,7],[0,-94,3],[0,-91,-1],[0,-91,-4],[0,-88,-7],[0,-86,-7],[0,-81,-13],[0,-79,-13],[0,-74,-19],[0,-72,-19],[0,-72,-22],[0,-69,-22],[0,-61,-30],[0,61,-30],[0,79,-13],[0,81,-13],[0,86,-7],[0,88,-7],[0,91,-4],[0,91,-1],[0,94,3],[0,94,7],[0,92,7],[0,91,9],[0,79,14],[0,78,16],[0,53,28],[0,52,30]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,28.5],[5,186,3]]],[6,-1,0],[5,188,60],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,188,60],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,2]],[[[1,"block5"],[2,"block5",[-5],[[4,-2],[0,-3,[0,0,31],[[[0,-6,37],[0,-48,22],[0,-52,22],[0,-97,7],[0,-98,4],[0,-92,-1],[0,-92,-3],[0,-89,-6],[0,-77,-9],[0,-75,-11],[0,-63,-14],[0,-61,-16],[0,-46,-20],[0,-44,-22],[0,-29,-26],[0,-27,-28],[0,-12,-32],[0,-1,-37],[0,57,-37],[0,73,-22],[0,75,-22],[0,80,-16],[0,82,-16],[0,88,-9],[0,90,-9],[0,94,-5],[0,98,3],[0,97,7],[0,80,11],[0,4,36]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,35.5],[5,193,3]]],[6,-1,0],[5,196,74],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,196,74],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,3]],[[[1,"block4"],[2,"block4",[-5],[[4,-2],[0,-3,[0,0,31],[[[0,-26,37],[0,-33,34],[0,-33,32],[0,-44,22],[0,-45,19],[0,-79,15],[0,-97,10],[0,-102,6],[0,-102,2],[0,-100,1],[0,-99,-5],[0,-90,-10],[0,-57,-15],[0,-54,-30],[0,-50,-34],[0,-45,-36],[0,-19,-37],[0,20,-31],[0,59,-37],[0,77,-37],[0,85,-33],[0,87,-26],[0,89,-24],[0,88,-20],[0,84,-18],[0,80,-13],[0,96,-7],[0,100,1],[0,102,2],[0,102,6],[0,100,8],[0,86,13],[0,56,18],[0,34,19],[0,1,36]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,35.5],[5,201,3]]],[6,-1,0],[5,204,74],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,204,74],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,4]],[[[1,"block2"],[2,"block2",[-5],[[4,-2],[0,-3,[0,0,31],[[[0,-2,37],[0,-102,7],[0,-100,5],[0,-96,-7],[0,-48,-23],[0,-44,-23],[0,-5,-37],[0,2,-37],[0,42,-24],[0,46,-24],[0,52,-21],[0,56,-21],[0,62,-18],[0,66,-18],[0,72,-15],[0,76,-15],[0,82,-12],[0,86,-12],[0,92,-9],[0,96,-9],[0,102,3],[0,102,5],[0,48,23],[0,44,23],[0,5,37]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,35.5],[5,201,3]]],[6,-1,0],[5,204,64],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,204,74],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,5]],[[[1,"block1"],[2,"block1",[-6],[[4,-2],[0,-3,[0,0,32],[[[0,-1,37],[0,-11,32],[0,-38,26],[0,-43,23],[0,-44,19],[0,-62,18],[0,-78,13],[0,-84,9],[0,-101,5],[0,-97,-3],[0,-92,-8],[0,-68,-18],[0,-58,-20],[0,-44,-20],[0,-44,-23],[0,-39,-27],[0,-24,-31],[0,-13,-32],[0,-2,-37],[0,3,-37],[0,14,-32],[0,25,-31],[0,40,-27],[0,45,-23],[0,45,-20],[0,59,-20],[0,75,-16],[0,85,-10],[0,92,-8],[0,97,-3],[0,101,4],[0,99,6],[0,87,8],[0,79,13],[0,76,13],[0,68,17],[0,45,19],[0,44,22],[0,39,26],[0,12,32],[0,10,34]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,35.5],[5,200,3]],[10,-5,[2]]],[6,-1,0],[5,202,74],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-7,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,202,74],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,7],[0,0,0],[-1,3,-1],[0,6,0]],[[[1,"block9"],[2,"block9",[-6],[[4,-2],[0,-3,[0,0,36],[[[0,-5,31],[0,-20,27],[0,-50,24],[0,-61,21],[0,-62,19],[0,-68,19],[0,-81,13],[0,-87,7],[0,-99,2],[0,-99,-1],[0,-87,-6],[0,-79,-14],[0,-68,-19],[0,-62,-19],[0,-59,-22],[0,-45,-25],[0,-21,-27],[0,-5,-31],[0,5,-31],[0,20,-27],[0,50,-24],[0,61,-21],[0,62,-19],[0,68,-19],[0,76,-16],[0,77,-14],[0,82,-12],[0,86,-7],[0,100,0],[0,99,2],[0,87,7],[0,85,10],[0,83,10],[0,76,16],[0,73,16],[0,68,19],[0,62,19],[0,59,22],[0,45,25],[0,21,27],[0,5,31]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[0,-4,[0,0,16],[[[0,-100,21.5],[0,-100,18.5],[0,-95,12.5],[0,-93,6.5],[0,-88,4.5],[0,-80,-3.5],[0,-73,-7.5],[0,-61,-9.5],[0,-60,-11.5],[0,-54,-13.5],[0,-19,-17.5],[0,-4,-21.5],[0,4,-21.5],[0,19,-17.5],[0,50,-14.5],[0,61,-11.5],[0,62,-9.5],[0,71,-8.5],[0,82,-2.5],[0,89,4.5],[0,95,6.5],[0,97,14.5],[0,100,18.5],[0,99,21.5],[0,96,21.5],[0,98,19.5],[0,88,15.5],[0,77,5.5],[0,71,2.5],[0,61,1.5],[0,58,-1.5],[0,37,-5.5],[0,20,-6.5],[0,4,-10.5],[0,-5,-10.5],[0,-20,-6.5],[0,-29,-6.5],[0,-55,-2.5],[0,-60,-0.5],[0,-61,1.5],[0,-73,3.5],[0,-79,8.5],[0,-81,8.5],[0,-88,15.5],[0,-98,19.5],[0,-96,21.5]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-5,[0,0,34.5],[5,198,3]]],[6,-1,0],[5,200,62],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-7,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,200,72],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,7],[0,0],[-1,3],[0,1]],[[[1,"block12"],[2,"block12",[-5],[[4,-2],[0,-3,[0,0,24],[[[0,-22,30],[0,-44,27],[0,-65,22],[0,-82,16],[0,-100,7],[0,-98,-5],[0,-96,-7],[0,-85,-12],[0,-84,-14],[0,-80,-15],[0,-79,-17],[0,-73,-19],[0,-72,-21],[0,-66,-23],[0,-65,-25],[0,-61,-26],[0,-56,-30],[0,-52,-30],[0,-50,-28],[0,-47,-28],[0,-43,-25],[0,-40,-25],[0,-32,-21],[0,-12,-17],[0,17,-18],[0,42,-25],[0,52,-30],[0,56,-30],[0,62,-27],[0,63,-25],[0,71,-22],[0,72,-20],[0,80,-17],[0,81,-15],[0,98,-7],[0,100,1],[0,100,7],[0,89,13],[0,86,13],[0,82,16],[0,65,22],[0,49,26],[0,22,30]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,28.5],[5,198,3]]],[6,-1,0],[5,200,60],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,200,60],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,7]],[[[1,"block6"],[2,"block6",[-5],[[4,-2],[0,-3,[0,0,27],[[[0,-4,32],[0,-7,30],[0,-15,29],[0,-18,27],[0,-26,26],[0,-29,24],[0,-37,23],[0,-40,21],[0,-52,19],[0,-55,17],[0,-63,16],[0,-66,14],[0,-74,13],[0,-77,11],[0,-101,5],[0,-99,-5],[0,-94,-10],[0,-92,-10],[0,-88,-15],[0,-86,-15],[0,-83,-19],[0,-81,-19],[0,-77,-24],[0,-75,-24],[0,-72,-28],[0,-70,-28],[0,-67,-32],[0,65,-32],[0,77,-21],[0,79,-21],[0,82,-17],[0,84,-17],[0,87,-13],[0,89,-13],[0,93,-8],[0,95,-8],[0,98,-5],[0,98,-2],[0,101,3],[0,101,5],[0,96,7],[0,88,8],[0,85,10],[0,22,26],[0,19,28],[0,7,30],[0,4,32]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,29.5],[5,200,3]]],[6,-1,0],[5,202,64],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,202,64],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,8]],[[[1,"block11"],[2,"block11",[-6],[[4,-2],[0,-3,[0,0,35],[[[0,-5,31],[0,-20,27],[0,-50,24],[0,-61,21],[0,-62,19],[0,-68,19],[0,-81,13],[0,-87,7],[0,-99,2],[0,-99,-1],[0,-87,-6],[0,-79,-14],[0,-68,-19],[0,-62,-19],[0,-59,-22],[0,-45,-25],[0,-21,-27],[0,-5,-31],[0,5,-31],[0,20,-27],[0,50,-24],[0,61,-21],[0,62,-19],[0,68,-19],[0,76,-16],[0,77,-14],[0,82,-12],[0,86,-7],[0,100,0],[0,99,2],[0,87,7],[0,85,10],[0,83,10],[0,76,16],[0,73,16],[0,68,19],[0,62,19],[0,59,22],[0,45,25],[0,21,27],[0,5,31]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[0,-4,[0,0,17],[[[0,-100,21.5],[0,-100,18.5],[0,-95,12.5],[0,-93,6.5],[0,-88,4.5],[0,-80,-3.5],[0,-73,-7.5],[0,-61,-9.5],[0,-60,-11.5],[0,-54,-13.5],[0,-19,-17.5],[0,-4,-21.5],[0,4,-21.5],[0,19,-17.5],[0,50,-14.5],[0,61,-11.5],[0,62,-9.5],[0,71,-8.5],[0,82,-2.5],[0,89,4.5],[0,95,6.5],[0,97,14.5],[0,100,18.5],[0,99,21.5],[0,96,21.5],[0,98,19.5],[0,88,15.5],[0,77,5.5],[0,71,2.5],[0,61,1.5],[0,58,-1.5],[0,37,-5.5],[0,20,-6.5],[0,4,-10.5],[0,-5,-10.5],[0,-20,-6.5],[0,-29,-6.5],[0,-55,-2.5],[0,-60,-0.5],[0,-61,1.5],[0,-73,3.5],[0,-79,8.5],[0,-81,8.5],[0,-88,15.5],[0,-98,19.5],[0,-96,21.5]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-5,[0,0,34.5],[5,200,3]]],[6,-1,0],[5,200,62],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-7,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,200,72],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,7],[0,0],[-1,3],[0,1]],[[[1,"block3"],[2,"block3",[-5],[[4,-2],[0,-3,[0,0,29],[[[0,-30,35],[0,-31,33],[0,-42,31],[0,-46,27],[0,-48,19],[0,-69,16],[0,-78,9],[0,-78,-11],[0,-76,-15],[0,-73,-17],[0,-73,-19],[0,-69,-21],[0,-67,-24],[0,-63,-25],[0,-62,-27],[0,-48,-32],[0,-32,-35],[0,62,-34],[0,74,-33],[0,78,-27],[0,78,7],[0,74,12],[0,66,16],[0,64,19],[0,46,28],[0,36,31],[0,19,33],[0,17,35]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,33.5],[5,156,3]]],[6,-1,0],[5,156,60],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,156,70],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,9]],[[[1,"block7"],[2,"block7",[-5],[[4,-2],[0,-3,[0,0,22],[[[0,-59,28],[0,-67,22],[0,-70,15],[0,-72,14],[0,-72,12],[0,-74,11],[0,-74,9],[0,-76,8],[0,-76,6],[0,-78,5],[0,-79,1],[0,-85,-7],[0,-85,-16],[0,-79,-28],[0,79,-28],[0,85,-16],[0,85,-6],[0,83,-5],[0,82,-1],[0,80,0],[0,79,4],[0,73,11],[0,72,15],[0,70,16],[0,66,24],[0,60,28]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,26.5],[5,155,3]]],[6,-1,0],[5,170,56],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,170,56],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,10]],[[[1,"block10"],[2,"block10",[-5],[[4,-2],[0,-3,[0,0,29],[[[0,-21,35],[0,-46,31],[0,-49,29],[0,-59,27],[0,-76,18],[0,-81,12],[0,-82,-1],[0,-78,-16],[0,-70,-22],[0,-59,-27],[0,-49,-29],[0,-46,-31],[0,-21,-35],[0,21,-35],[0,36,-33],[0,59,-27],[0,76,-18],[0,80,-13],[0,80,-7],[0,82,-2],[0,82,10],[0,79,13],[0,79,15],[0,70,22],[0,59,27],[0,49,29],[0,46,31],[0,21,35]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,33.5],[5,164,3]]],[6,-1,0],[5,164,60],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,164,70],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,11]],[[[1,"block0"],[2,"block13",[-5],[[4,-2],[9,-3,[[[0,-3,62],[0,-21,61],[0,-45,57],[0,-60,52],[0,-74,44],[0,-80,35],[0,-79,24],[0,-71,16],[0,-60,10],[0,-40,4],[0,-21,1],[0,21,1],[0,45,5],[0,60,10],[0,74,18],[0,80,26],[0,80,36],[0,78,40],[0,70,47],[0,58,53],[0,29,60]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,28.5],[5,156,3]]],[6,-1,0],[5,160,62],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,160,68],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,12]]]] \ No newline at end of file +[1,["ecpdLyjvZBwrvm+cedCcQy","3bAXuMqSFLuqZf4MEH4bKb","61RXdTYpxOF4WRDyrNwZFy","dccw1zl/NId7x7keVQwrRQ","2dZEG9VWtNwrCLXrYMS5hw","476NNhXXBJioJtzBpXYise","05howSluxD46CBLX/ZnslG","f48kauGftDgJTF1A+WuyXj","8cTTjwpoVNppnt9C5+bTLH","f6j3VD4tBGBJ43J9e8txaS","a35WcKLdNBzpEGLBw0FGrq","4d2p1BwfdARKIOEeJDBlrN","a7GUBGKxNNn5n3Bd1G1/7H"],["node","root","data","_spriteFrame"],[["cc.Node",["_name","_components","_prefab","_contentSize","_anchorPoint","_trs","_children","_parent"],2,9,4,5,5,7,2,1],["cc.PolygonCollider",["node","points","_offset"],3,1,12,5],["cc.PrefabInfo",["fileId","root","asset"],2,1,1],["cc.Sprite",["node","_materials","_spriteFrame"],3,1,3,6],["cc.Prefab",["_name"],2],["2bf4dXY+rJG37abLKiCEh7s",["node"],3,1],["cc.BoxCollider",["node","_offset","_size"],3,1,5,5]],[[1,0,2,1,1],[4,0,2],[0,0,6,1,2,3,4,5,2],[0,0,7,1,2,3,4,5,2],[5,0,1],[6,0,1,2,1],[2,1,2,1],[2,0,1,2,2],[3,0,1,2,1],[1,0,1,1],[3,0,1,1]],[[[[1,"block8"],[2,"block8",[-5],[[4,-2],[0,-3,[0,0,24],[[[0,-52,30],[0,-53,28],[0,-65,23],[0,-66,21],[0,-94,7],[0,-94,3],[0,-91,-1],[0,-91,-4],[0,-88,-7],[0,-86,-7],[0,-81,-13],[0,-79,-13],[0,-74,-19],[0,-72,-19],[0,-72,-22],[0,-69,-22],[0,-61,-30],[0,61,-30],[0,79,-13],[0,81,-13],[0,86,-7],[0,88,-7],[0,91,-4],[0,91,-1],[0,94,3],[0,94,7],[0,92,7],[0,91,9],[0,79,14],[0,78,16],[0,53,28],[0,52,30]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,28.5],[5,186,3]]],[6,-1,0],[5,188,60],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,188,60],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,2]],[[[1,"block5"],[2,"block5",[-5],[[4,-2],[0,-3,[0,0,31],[[[0,-6,37],[0,-48,22],[0,-52,22],[0,-97,7],[0,-98,4],[0,-92,-1],[0,-92,-3],[0,-89,-6],[0,-77,-9],[0,-75,-11],[0,-63,-14],[0,-61,-16],[0,-46,-20],[0,-44,-22],[0,-29,-26],[0,-27,-28],[0,-12,-32],[0,-1,-37],[0,57,-37],[0,73,-22],[0,75,-22],[0,80,-16],[0,82,-16],[0,88,-9],[0,90,-9],[0,94,-5],[0,98,3],[0,97,7],[0,80,11],[0,4,36]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,35.5],[5,193,3]]],[6,-1,0],[5,196,74],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,196,74],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,3]],[[[1,"block4"],[2,"block4",[-5],[[4,-2],[0,-3,[0,0,31],[[[0,-26,37],[0,-33,34],[0,-33,32],[0,-44,22],[0,-45,19],[0,-79,15],[0,-97,10],[0,-102,6],[0,-102,2],[0,-100,1],[0,-99,-5],[0,-90,-10],[0,-57,-15],[0,-54,-30],[0,-50,-34],[0,-45,-36],[0,-19,-37],[0,20,-31],[0,59,-37],[0,77,-37],[0,85,-33],[0,87,-26],[0,89,-24],[0,88,-20],[0,84,-18],[0,80,-13],[0,96,-7],[0,100,1],[0,102,2],[0,102,6],[0,100,8],[0,86,13],[0,56,18],[0,34,19],[0,1,36]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,35.5],[5,201,3]]],[6,-1,0],[5,204,74],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,204,74],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,4]],[[[1,"block2"],[2,"block2",[-5],[[4,-2],[0,-3,[0,0,31],[[[0,-2,37],[0,-102,7],[0,-100,5],[0,-96,-7],[0,-48,-23],[0,-44,-23],[0,-5,-37],[0,2,-37],[0,42,-24],[0,46,-24],[0,52,-21],[0,56,-21],[0,62,-18],[0,66,-18],[0,72,-15],[0,76,-15],[0,82,-12],[0,86,-12],[0,92,-9],[0,96,-9],[0,102,3],[0,102,5],[0,48,23],[0,44,23],[0,5,37]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,35.5],[5,201,3]]],[6,-1,0],[5,204,64],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,204,74],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,5]],[[[1,"block1"],[2,"block1",[-6],[[4,-2],[0,-3,[0,0,32],[[[0,-1,37],[0,-11,32],[0,-38,26],[0,-43,23],[0,-44,19],[0,-62,18],[0,-78,13],[0,-84,9],[0,-101,5],[0,-97,-3],[0,-92,-8],[0,-68,-18],[0,-58,-20],[0,-44,-20],[0,-44,-23],[0,-39,-27],[0,-24,-31],[0,-13,-32],[0,-2,-37],[0,3,-37],[0,14,-32],[0,25,-31],[0,40,-27],[0,45,-23],[0,45,-20],[0,59,-20],[0,75,-16],[0,85,-10],[0,92,-8],[0,97,-3],[0,101,4],[0,99,6],[0,87,8],[0,79,13],[0,76,13],[0,68,17],[0,45,19],[0,44,22],[0,39,26],[0,12,32],[0,10,34]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,35.5],[5,200,3]],[10,-5,[2]]],[6,-1,0],[5,202,74],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-7,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,202,74],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,7],[0,0,0],[-1,3,-1],[0,6,0]],[[[1,"block9"],[2,"block9",[-6],[[4,-2],[0,-3,[0,0,36],[[[0,-5,31],[0,-20,27],[0,-50,24],[0,-61,21],[0,-62,19],[0,-68,19],[0,-81,13],[0,-87,7],[0,-99,2],[0,-99,-1],[0,-87,-6],[0,-79,-14],[0,-68,-19],[0,-62,-19],[0,-59,-22],[0,-45,-25],[0,-21,-27],[0,-5,-31],[0,5,-31],[0,20,-27],[0,50,-24],[0,61,-21],[0,62,-19],[0,68,-19],[0,76,-16],[0,77,-14],[0,82,-12],[0,86,-7],[0,100,0],[0,99,2],[0,87,7],[0,85,10],[0,83,10],[0,76,16],[0,73,16],[0,68,19],[0,62,19],[0,59,22],[0,45,25],[0,21,27],[0,5,31]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[0,-4,[0,0,16],[[[0,-100,21.5],[0,-100,18.5],[0,-95,12.5],[0,-93,6.5],[0,-88,4.5],[0,-80,-3.5],[0,-73,-7.5],[0,-61,-9.5],[0,-60,-11.5],[0,-54,-13.5],[0,-19,-17.5],[0,-4,-21.5],[0,4,-21.5],[0,19,-17.5],[0,50,-14.5],[0,61,-11.5],[0,62,-9.5],[0,71,-8.5],[0,82,-2.5],[0,89,4.5],[0,95,6.5],[0,97,14.5],[0,100,18.5],[0,99,21.5],[0,96,21.5],[0,98,19.5],[0,88,15.5],[0,77,5.5],[0,71,2.5],[0,61,1.5],[0,58,-1.5],[0,37,-5.5],[0,20,-6.5],[0,4,-10.5],[0,-5,-10.5],[0,-20,-6.5],[0,-29,-6.5],[0,-55,-2.5],[0,-60,-0.5],[0,-61,1.5],[0,-73,3.5],[0,-79,8.5],[0,-81,8.5],[0,-88,15.5],[0,-98,19.5],[0,-96,21.5]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-5,[0,0,34.5],[5,198,3]]],[6,-1,0],[5,200,62],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-7,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,200,72],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,7],[0,0],[-1,3],[0,1]],[[[1,"block12"],[2,"block12",[-5],[[4,-2],[0,-3,[0,0,24],[[[0,-22,30],[0,-44,27],[0,-65,22],[0,-82,16],[0,-100,7],[0,-98,-5],[0,-96,-7],[0,-85,-12],[0,-84,-14],[0,-80,-15],[0,-79,-17],[0,-73,-19],[0,-72,-21],[0,-66,-23],[0,-65,-25],[0,-61,-26],[0,-56,-30],[0,-52,-30],[0,-50,-28],[0,-47,-28],[0,-43,-25],[0,-40,-25],[0,-32,-21],[0,-12,-17],[0,17,-18],[0,42,-25],[0,52,-30],[0,56,-30],[0,62,-27],[0,63,-25],[0,71,-22],[0,72,-20],[0,80,-17],[0,81,-15],[0,98,-7],[0,100,1],[0,100,7],[0,89,13],[0,86,13],[0,82,16],[0,65,22],[0,49,26],[0,22,30]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,28.5],[5,198,3]]],[6,-1,0],[5,200,60],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,200,60],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,7]],[[[1,"block6"],[2,"block6",[-5],[[4,-2],[0,-3,[0,0,27],[[[0,-4,32],[0,-7,30],[0,-15,29],[0,-18,27],[0,-26,26],[0,-29,24],[0,-37,23],[0,-40,21],[0,-52,19],[0,-55,17],[0,-63,16],[0,-66,14],[0,-74,13],[0,-77,11],[0,-101,5],[0,-99,-5],[0,-94,-10],[0,-92,-10],[0,-88,-15],[0,-86,-15],[0,-83,-19],[0,-81,-19],[0,-77,-24],[0,-75,-24],[0,-72,-28],[0,-70,-28],[0,-67,-32],[0,65,-32],[0,77,-21],[0,79,-21],[0,82,-17],[0,84,-17],[0,87,-13],[0,89,-13],[0,93,-8],[0,95,-8],[0,98,-5],[0,98,-2],[0,101,3],[0,101,5],[0,96,7],[0,88,8],[0,85,10],[0,22,26],[0,19,28],[0,7,30],[0,4,32]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,29.5],[5,200,3]]],[6,-1,0],[5,202,64],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,202,64],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,8]],[[[1,"block11"],[2,"block11",[-6],[[4,-2],[0,-3,[0,0,35],[[[0,-5,31],[0,-20,27],[0,-50,24],[0,-61,21],[0,-62,19],[0,-68,19],[0,-81,13],[0,-87,7],[0,-99,2],[0,-99,-1],[0,-87,-6],[0,-79,-14],[0,-68,-19],[0,-62,-19],[0,-59,-22],[0,-45,-25],[0,-21,-27],[0,-5,-31],[0,5,-31],[0,20,-27],[0,50,-24],[0,61,-21],[0,62,-19],[0,68,-19],[0,76,-16],[0,77,-14],[0,82,-12],[0,86,-7],[0,100,0],[0,99,2],[0,87,7],[0,85,10],[0,83,10],[0,76,16],[0,73,16],[0,68,19],[0,62,19],[0,59,22],[0,45,25],[0,21,27],[0,5,31]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[0,-4,[0,0,17],[[[0,-100,21.5],[0,-100,18.5],[0,-95,12.5],[0,-93,6.5],[0,-88,4.5],[0,-80,-3.5],[0,-73,-7.5],[0,-61,-9.5],[0,-60,-11.5],[0,-54,-13.5],[0,-19,-17.5],[0,-4,-21.5],[0,4,-21.5],[0,19,-17.5],[0,50,-14.5],[0,61,-11.5],[0,62,-9.5],[0,71,-8.5],[0,82,-2.5],[0,89,4.5],[0,95,6.5],[0,97,14.5],[0,100,18.5],[0,99,21.5],[0,96,21.5],[0,98,19.5],[0,88,15.5],[0,77,5.5],[0,71,2.5],[0,61,1.5],[0,58,-1.5],[0,37,-5.5],[0,20,-6.5],[0,4,-10.5],[0,-5,-10.5],[0,-20,-6.5],[0,-29,-6.5],[0,-55,-2.5],[0,-60,-0.5],[0,-61,1.5],[0,-73,3.5],[0,-79,8.5],[0,-81,8.5],[0,-88,15.5],[0,-98,19.5],[0,-96,21.5]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-5,[0,0,34.5],[5,200,3]]],[6,-1,0],[5,200,62],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-7,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,200,72],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,7],[0,0],[-1,3],[0,1]],[[[1,"block3"],[2,"block3",[-5],[[4,-2],[0,-3,[0,0,29],[[[0,-30,35],[0,-31,33],[0,-42,31],[0,-46,27],[0,-48,19],[0,-69,16],[0,-78,9],[0,-78,-11],[0,-76,-15],[0,-73,-17],[0,-73,-19],[0,-69,-21],[0,-67,-24],[0,-63,-25],[0,-62,-27],[0,-48,-32],[0,-32,-35],[0,62,-34],[0,74,-33],[0,78,-27],[0,78,7],[0,74,12],[0,66,16],[0,64,19],[0,46,28],[0,36,31],[0,19,33],[0,17,35]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,33.5],[5,156,3]]],[6,-1,0],[5,156,60],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,156,70],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,9]],[[[1,"block7"],[2,"block7",[-5],[[4,-2],[0,-3,[0,0,22],[[[0,-59,28],[0,-67,22],[0,-70,15],[0,-72,14],[0,-72,12],[0,-74,11],[0,-74,9],[0,-76,8],[0,-76,6],[0,-78,5],[0,-79,1],[0,-85,-7],[0,-85,-16],[0,-79,-28],[0,79,-28],[0,85,-16],[0,85,-6],[0,83,-5],[0,82,-1],[0,80,0],[0,79,4],[0,73,11],[0,72,15],[0,70,16],[0,66,24],[0,60,28]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,26.5],[5,155,3]]],[6,-1,0],[5,170,56],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,170,56],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,10]],[[[1,"block10"],[2,"block10",[-5],[[4,-2],[0,-3,[0,0,29],[[[0,-21,35],[0,-46,31],[0,-49,29],[0,-59,27],[0,-76,18],[0,-81,12],[0,-82,-1],[0,-78,-16],[0,-70,-22],[0,-59,-27],[0,-49,-29],[0,-46,-31],[0,-21,-35],[0,21,-35],[0,36,-33],[0,59,-27],[0,76,-18],[0,80,-13],[0,80,-7],[0,82,-2],[0,82,10],[0,79,13],[0,79,15],[0,70,22],[0,59,27],[0,49,29],[0,46,31],[0,21,35]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,33.5],[5,164,3]]],[6,-1,0],[5,164,60],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,164,70],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,11]],[[[1,"block0"],[2,"block13",[-5],[[4,-2],[9,-3,[[[0,-3,62],[0,-21,61],[0,-45,57],[0,-60,52],[0,-74,44],[0,-80,35],[0,-79,24],[0,-71,16],[0,-60,10],[0,-40,4],[0,-21,1],[0,21,1],[0,45,5],[0,60,10],[0,74,18],[0,80,26],[0,80,36],[0,78,40],[0,70,47],[0,58,53],[0,29,60]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[5,-4,[0,0,28.5],[5,156,3]]],[6,-1,0],[5,160,62],[0,0.5,0],[500,0,0,0,0,0,1,1,1,1]],[3,"icon",1,[[8,-6,[0],1]],[7,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,160,62],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,1,1,0,0,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,2,1,6],[0,0],[-1,3],[0,12]]]] \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/0a/0a50a0981.053c6.json b/build/FlyUp/assets/main/import/0a/0a50a0981.053c6.json new file mode 100644 index 0000000..697a1c6 --- /dev/null +++ b/build/FlyUp/assets/main/import/0a/0a50a0981.053c6.json @@ -0,0 +1 @@ +[1,["ecpdLyjvZBwrvm+cedCcQy","a2MjXRFdtLlYQ5ouAFv/+R","39xzZtFr5M/acEKWIrq6cD","b9XZYB0kFMaYGIVwIzKDW6","07KlE5zmdA45F5MXX4tn9v","d72tmW9ydN4JWZvmf7dWoa","7dew4A8lxPAb6UXs8/8hDU","93GxQ0tzVDRLJzory0GyLs","6dfggYQOpNj77kZgggqBuN","7a/QZLET9IDreTiBfRn2PD","f2I7Pm7elK3Y3OuzUcxpgp","5abBNMMpZBR7vxJDcBQvfE","9dN/HK+xVFAK8rOdF0ycf2","f4QySXWtBKCbSlCEmr2Squ","bbODDEAMlJAYAhPtN+WjwK","d6ck6JPlFDParbM+Bd9ci9","92ACsV8KlNCaPLzdwGvm8c","c7lG371dZGYLVDWJFIeH2Y","f6Vggt1ZlA+J5lp/yPdtQr","f9ddP1G7BMirAPTQSjbjHC","543AZJJRJNe74aRSOA/3jd","4cjU79RPBBrasMHLDBNsa+","0eMoA/FR5HI6YzPvZVxQgP","a3PqQUiTxHcoYRWepGiyDW","8av2UppB1GLrFE7foRFNht","45zGM6kzNNyqCzHBSeH+jZ","faruncavtPIop38CByX5uN","0dqhqBaopO2Lry9uZ22P/n","81kTyAtYxBG5KiXvC09e2F","7d50AODeVNILIcpV/wWtNs","85fsVivv9OWICMxb5V/nAe","79EEpVmG5Ofrf4dzYSv0mf","52e8CGTclIaJaIBf9Hv5l0","aeItzF5mJGJqDQmlqCvIOM","f4H1++vG1Apbak/TfMl5q0","b3Qw97PiRLTKWa+VuH25ai","d8BSo7tlZAzKAF6oZCy8E5","31TGCewvhAeYWto4aQi5K1","42wTrzp9VL/KgP+q5Snsfz","13l0c3fepPzrdo8UkZ6s2s","7bPZFIpvxDz790SV/uquvE","68vQp8xUlNf59MVET05m+d","b9ISRpubBHKoSDaDOwhq0q","2d/rEocc1JwatG4288s85D","18NhvHdGFKxKwrougZlKY/","a32pHCIe9MoqDGzJ5ELQ66","bdFeIR8hBOCanOEDKhjNfF","012y8iMjlH9LPzYA29IZFH","84wjQCxHFO0KkAKZ9lX2la","c3/KjBwH1OfbdG1xkmP5ZU","a5x0ZIVsdNoq+eDLofss7P","9ek+N5QBJJ7bZRvDbIuhMh","c43Hs4oAZKeJ//MqMDDarb","d8RPO7qIhCAb5HQbIZgaIU","02delMVqdBD70a/HSD99FK","61RXdTYpxOF4WRDyrNwZFy"],["node","_spriteFrame","_N$target","_parent","_N$skeletonData","Tip","GameOver","time","Xin","Ground","Player","topUI","Camera","add","scene","plist","_textureSetter","root","data"],[["cc.Node",["_name","_active","_opacity","_components","_contentSize","_parent","_trs","_anchorPoint","_color","_eulerAngles","_children","_prefab"],0,9,5,1,7,5,5,5,12,4],["cc.Node",["_name","_active","_id","_children","_parent","_trs","_contentSize","_components","_anchorPoint","_color","_prefab"],0,2,1,7,5,9,5,5,4],["cc.Sprite",["_type","_fillRange","_sizeMode","_fillType","node","_materials","_spriteFrame"],-1,1,3,6],["cc.Widget",["_alignFlags","_bottom","_originalWidth","_originalHeight","_right","_top","node"],-3,1],["cc.PolygonCollider",["node","points","_offset"],3,1,12,5],["sp.Skeleton",["defaultSkin","_preCacheMode","loop","premultipliedAlpha","_animationName","_playTimes","node","_materials","_N$skeletonData"],-3,1,3,6],["cc.Label",["_string","_N$horizontalAlign","_N$verticalAlign","_styleFlags","_fontSize","_lineHeight","node","_materials"],-3,1,3],["cc.PrefabInfo",["fileId","root","asset"],2,1,1],"cc.SpriteFrame",["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Node",["_name","_parent","_children","_components","_contentSize"],2,1,2,12,5],["cc.Node",["_name","_parent","_components","_contentSize","_trs"],2,1,2,5,7],["b26a49RCSFPT4C+F7xAd62t",["node","Camera","topUI","Player","Ground","Xin","time","GameOver","Tip","blockPrefab"],3,1,1,1,1,1,1,1,1,1,3],["7fd74nqW4BCN6aFalN5nmyL",["node","add","plist"],3,1,1,6],["cc.BoxCollider",["node","_offset","_size"],3,1,5,5],["ba5152SuShBF7Gc5uHiGsp0",["node"],3,1],["cc.Button",["zoomScale","_N$transition","node","clickEvents","_N$target"],1,1,9,1],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["cc.BlockInputEvents",["node"],3,1],["cc.Scene",["_name","_active","autoReleaseAssets","_children","_anchorPoint","_trs"],0,2,5,7],["cc.Camera",["_clearFlags","_depth","node"],1,1],["cc.Prefab",["_name"],2]],[[2,4,5,6,1],[0,0,5,3,4,6,2],[0,0,2,5,3,4,6,3],[0,0,5,3,4,7,6,2],[6,0,4,5,1,2,6,7,6],[0,0,5,3,8,4,6,2],[2,0,1,4,5,6,3],[16,0,1,2,3,4,3],[17,0,1,2,3],[3,0,1,6,3],[0,0,5,3,4,2],[3,0,6,2],[0,0,1,2,5,3,4,6,4],[0,0,1,5,3,4,7,6,3],[0,0,1,5,3,4,6,3],[0,0,5,3,4,6,9,2],[0,0,1,5,3,4,6,9,3],[3,0,2,3,6,4],[2,2,4,5,6,2],[0,0,5,2],[0,0,2,5,3,8,4,3],[14,0,1,2,1],[2,0,2,1,4,5,6,4],[19,0,1],[9,0,1,3],[0,0,10,3,4,2],[0,0,5,3,4,7,2],[0,0,5,3,11,4,7,6,2],[1,0,4,3,6,5,2],[1,0,1,3,7,6,3],[1,0,4,3,2],[1,0,4,3,7,9,6,8,5,2],[1,0,4,3,7,6,8,5,2],[1,0,4,3,7,6,5,2],[1,0,1,4,3,3],[1,0,2,3,7,6,5,3],[1,0,1,4,3,5,3],[1,0,4,3,5,2],[1,0,3,7,10,6,8,5,2],[10,0,1,2,3,4,2],[11,0,1,2,3,4,2],[3,0,4,1,6,4],[3,5,1,6,3],[12,0,1,2,3,4,5,6,7,8,9,1],[13,0,1,2,1],[2,0,1,4,5,3],[2,0,3,4,5,6,3],[2,0,4,5,6,2],[15,0,1],[18,0,1,2,3,3],[4,0,1,1],[4,0,2,1,1],[20,0,1,2,3,4,5,4],[5,0,1,2,3,4,5,6,7,8,7],[5,0,1,2,6,7,8,4],[6,0,3,1,2,6,7,5],[21,0,1,2,3],[22,0,2],[7,1,2,1],[7,0,1,2,2]],[[[[24,"GuideScene",null],[25,"GameNode",[[-11,-12,-13,-14,[19,"CrackBlock",-15],[19,"Block",-16],-17,-18,-19,-20,-21,-22],1,1,1,1,4,4,1,1,1,1,1,1],[[11,45,-1],[43,-10,-9,-8,-7,-6,-5,-4,-3,-2,[122,123,124,125,126,127,128,129,130,131,132,133,134,135]]],[5,750,1334]],[28,"topUI",1,[-23,-24,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38],[5,750,100],[0,600,0,0,0,0,1,1,1,1]],[29,"GameOver",false,[-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53],[[11,45,-39]],[5,750,1334]],[30,"Tip",1,[-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66]],[31,"bg1",1,[-68,-69,-70,-71,-72,-73],[[17,45,750,1660,-67]],[4,4287466895],[5,750,1334],[0,0.5,0],[0,-667,0,0,0,0,1,1,1,1]],[32,"Player",1,[-77,-78,-79,-80],[[44,-75,-74,29],[21,-76,[0,0,61.9],[5,50,120]]],[5,67,123.8],[0,0.5,0],[0,-500,0,0,0,0,1,1,1,1]],[33,"New Sprite",2,[-82,-83,-84],[[0,-81,[36],37]],[5,180,10],[-262.336,1.669,0,0,0,0,1,-1,1,1]],[34,"Revive",false,1,[-85,-86,-87,-88]],[39,"Main Camera",1,[3],[[-89,[48,-90],[17,45,750,1660,-91]],1,4,4],[5,750,1334]],[1,"rank",3,[[0,-92,[94],95],[7,1.1,3,-94,[[8,"b26a49RCSFPT4C+F7xAd62t","openRank",1]],-93],[41,36,8.269999999999982,10.918999999999926,-95]],[5,126,140],[303.73,-586.0810000000001,0,0,0,0,1,1,1,0]],[35,"Canvas","a5esZu+45LA5mBpvttspPD",[1],[[49,true,false,-96,[5,750,1334]],[11,45,-97]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[36,"add",false,6,[-98,-99],[0,161,0,0,0,0,1,1,1,1]],[20,"bg",125,3,[[18,0,-100,[74],75],[17,45,750,1334,-101],[23,-102]],[4,4278190080],[5,750,1334]],[1,"no",3,[[0,-103,[84],85],[7,1.1,3,-105,[[8,"b26a49RCSFPT4C+F7xAd62t","backLoad",1]],-104]],[5,269,72],[-180,-387.302,0,0,0,0,1,1,1,0]],[1,"yes",3,[[0,-106,[86],87],[7,1.1,3,-108,[[8,"b26a49RCSFPT4C+F7xAd62t","again",1]],-107]],[5,269,72],[180,-387.302,0,0,0,0,1,1,1,0]],[12,"btn_next",false,0,4,[[0,-109,[112],113],[7,1.1,3,-111,[[8,"b26a49RCSFPT4C+F7xAd62t","guideNext",1]],-110]],[5,208,46],[150,-13.024,0,0,0,0,1,1,1,0]],[12,"btn_jump",false,0,4,[[0,-112,[114],115],[7,1.1,3,-114,[[8,"b26a49RCSFPT4C+F7xAd62t","guideJump",1]],-113]],[5,208,46],[-150,-13.024,0,0,0,0,1,1,1,0]],[12,"btn_start",false,0,4,[[0,-115,[116],117],[7,1.1,3,-117,[[8,"b26a49RCSFPT4C+F7xAd62t","guideStart",1]],-116]],[5,270,72],[0,-13.024,0,0,0,0,1,1,1,0]],[26,"New Sprite(Splash)",5,[[6,2,1,-118,[2],3],[11,4,-119]],[5,750,1660],[0,0.5,0]],[3,"New Sprite(Splash)",5,[[6,2,1,-120,[4],5],[9,4,3320,-121]],[5,750,1660],[0,0.5,0],[0,3320,0,0,0,0,1,1,1,1]],[13,"New Sprite(Splash)",false,5,[[6,2,1,-122,[6],7],[9,4,6629.899,-123]],[5,750,1660],[0,0.5,0],[0,6629.899,0,0,0,0,1,1,1,1]],[3,"New Sprite(Splash)",5,[[6,2,1,-124,[8],9],[9,4,1660,-125]],[5,750,1660],[0,0.5,0],[0,1660,0,0,0,0,1,1,1,1]],[13,"New Sprite(Splash)",false,5,[[6,2,1,-126,[10],11],[9,4,4980,-127]],[5,750,1660],[0,0.5,0],[0,4980,0,0,0,0,1,1,1,1]],[13,"New Sprite(Splash)",false,5,[[6,2,1,-128,[12],13],[9,4,8289.899,-129]],[5,750,1660],[0,0.5,0],[0,8289.899,0,0,0,0,1,1,1,1]],[3,"bg2",1,[[45,2,1,-130,[14]],[42,1061.788,-1387,-131]],[5,750,1660],[0,0.5,0],[0,-657.498,0,0,0,0,1,1,-1,1]],[37,"Tai",1,[-132,-133],[0,-508.741,0,0,0,0,1,1,1,1]],[14,"Ground",false,1,[[50,-134,[[[0,-100,2.5],[0,-100,-2.5],[0,100,-2.5],[0,100,2.5]],8,8,8,8]]],[5,200,10],[0,-500,0,0,0,0,1,1,1,1]],[20,"New Sprite(Splash)",81,8,[[18,0,-135,[66],67],[23,-136]],[4,4278190080],[5,750,2000]],[3,"xin",8,[[46,3,1,-137,[72],73]],[5,174,140],[0,0.5,0],[0,-70,0,0,0,0,1,1,1,1]],[52,"New Node",false,true,[11],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[14,"New Sprite(Splash)",false,1,[[18,0,-138,[0],1]],[5,750,500],[0,-863.356,0,0,0,0,1,1,1,1]],[10,"New Sprite",26,[[0,-139,[15],16]],[5,750,254]],[10,"New Sprite",26,[[0,-140,[17],18]],[5,440,156]],[2,"xin",0,6,[[0,-141,[19],20]],[5,96,37],[0,140,0,0,0,0,1,1,1,1]],[14,"guang",false,6,[[53,"default",0,false,false,"double_1",1,-142,[21],22]],[5,251.8,346.15],[37,55,0,0,0,0,1,0.8,0.8,1]],[10,"sp",6,[[54,"default",0,false,-143,[23],24]],[5,67,123.8]],[1,"icon",12,[[0,-144,[25],26]],[5,50,79],[24.768,5.736,0,0,0,0,1,1,1,1]],[1,"jia",12,[[0,-145,[27],28]],[5,57,59],[-23.138,0,0,0,0,0,1,1,1,1]],[1,"New Sprite",7,[[0,-146,[30],31]],[5,180,10],[-524.672,0,0,0,0,0,1,-1,1,-1]],[1,"New Sprite",7,[[0,-147,[32],33]],[5,386,114],[-262.336,12.809,0,0,0,0,1,-1,1,-1]],[1,"New Sprite",7,[[0,-148,[34],35]],[5,310,68],[-262.336,-3.981,0,0,0,0,1,-1,1,-1]],[1,"progress",2,[[47,3,-149,[38],39]],[5,310,68],[0,-2.642,0,0,0,0,1,1,1,1]],[15,"New Sprite",2,[[0,-150,[40],41]],[5,44,44],[-97.013,-0.438,0,0,0,-0.1908089953765448,0.981627183447664,1,1,1],[1,0,0,-22]],[15,"New Sprite",2,[[0,-151,[42],43]],[5,44,44],[-29.238,-24.818,0,0,0,-0.008726535498373935,0.9999619230641713,1,1,1],[1,0,0,-1]],[15,"New Sprite",2,[[0,-152,[44],45]],[5,44,44],[100.706,-2.842,0,0,0,-0.3090169943749474,0.9510565162951535,1,1,1],[1,0,0,-36]],[16,"star1",false,2,[[0,-153,[46],47]],[5,54,54],[-97.013,-0.438,0,0,0,-0.1908089953765448,0.981627183447664,1,1,1],[1,0,0,-22]],[16,"star2",false,2,[[0,-154,[48],49]],[5,54,54],[-29.238,-24.818,0,0,0,-0.008726535498373935,0.9999619230641713,1,1,1],[1,0,0,-1]],[16,"star3",false,2,[[0,-155,[50],51]],[5,54,54],[100.706,-2.842,0,0,0,-0.3090169943749474,0.9510565162951535,1,1,1],[1,0,0,-36]],[40,"time",2,[-156],[5,102.3,50.4],[265.857,17.789,0,0,0,0,1,1,1,1]],[55,"02:00",1,1,1,49,[52]],[1,"New Sprite",2,[[0,-157,[53],54]],[5,40,32],[-311.731,12.644,0,0,0,0,1,1,1,1]],[1,"New Sprite",2,[[0,-158,[55],56]],[5,40,32],[-264.923,12.644,0,0,0,0,1,1,1,1]],[1,"New Sprite",2,[[0,-159,[57],58]],[5,40,32],[-217.008,12.644,0,0,0,0,1,1,1,1]],[1,"xin1",2,[[0,-160,[59],60]],[5,44,36],[-311.731,12.644,0,0,0,0,1,1,1,1]],[1,"xin2",2,[[0,-161,[61],62]],[5,44,36],[-264.923,12.644,0,0,0,0,1,1,1,1]],[1,"xin3",2,[[0,-162,[63],64]],[5,44,36],[-217.008,12.644,0,0,0,0,1,1,1,1]],[1,"nandu",2,[[4,"0",50,50,1,1,-163,[65]]],[5,27.81,63],[0,22.397,0,0,0,0,1,1,1,1]],[3,"New Sprite",8,[[0,-164,[68],69]],[5,174,140],[0,0.5,0],[0,-70,0,0,0,0,1,1,1,1]],[10,"New Sprite",8,[[0,-165,[70],71]],[5,204,168]],[1,"New Sprite",3,[[0,-166,[76],77]],[5,700,344],[0,347.926,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-167,[78],79]],[5,448,60],[0,140,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-168,[80],81]],[5,448,60],[0,-11.299,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-169,[82],83]],[5,448,60],[0,-137.873,0,0,0,0,1,1,1,1]],[5,"New Label",3,[[4,"最高难度系数",32,32,1,1,-170,[88]]],[4,4294042522],[5,192,40.32],[0,-137.873,0,0,0,0,1,1,1,1]],[5,"New Label",3,[[4,"总得分",32,32,1,1,-171,[89]]],[4,4294042522],[5,96,40.32],[0,140,0,0,0,0,1,1,1,1]],[5,"New Label",3,[[4,"本次最高层数",32,32,1,1,-172,[90]]],[4,4294042522],[5,192,40.32],[0,-11.299,0,0,0,0,1,1,1,1]],[5,"score",3,[[4,"100000",65,65,1,1,-173,[91]]],[4,4294573823],[5,216.9,81.9],[0,69.258,0,0,0,0,1,1,1,1]],[5,"level",3,[[4,"56",52,52,1,1,-174,[92]]],[4,4294573823],[5,57.84,65.52],[0,-71.579,0,0,0,0,1,1,1,1]],[5,"difficulty",3,[[4,"9.8",50,50,1,1,-175,[93]]],[4,4294573823],[5,69.51,63],[0,-203.614,0,0,0,0,1,1,1,1]],[56,7,-1,9],[3,"left",4,[[22,1,0,1,-176,[96],97]],[5,0,352],[0,0,0.5],[0,197.197,0,0,0,0,1,-1,1,1]],[3,"right",4,[[22,1,0,1,-177,[98],99]],[5,0,352],[0,0,0.5],[0,197.197,0,0,0,0,1,1,1,1]],[2,"tip",0,4,[[0,-178,[100],101]],[5,509,126],[0,197.197,0,0,0,0,1,1,1,1]],[2,"tip2",0,4,[[0,-179,[102],103]],[5,427,206],[0,197.197,0,0,0,0,1,1,1,1]],[2,"tip3",0,4,[[0,-180,[104],105]],[5,423,102],[0,197.197,0,0,0,0,1,1,1,1]],[2,"tip4",0,4,[[0,-181,[106],107]],[5,619,260],[0,197.197,0,0,0,0,1,1,1,1]],[2,"tip5",0,4,[[0,-182,[108],109]],[5,323,30],[0,197.197,0,0,0,0,1,1,1,1]],[2,"tip6",0,4,[[0,-183,[110],111]],[5,541,110],[0,197.197,0,0,0,0,1,1,1,1]],[2,"good",0,4,[[0,-184,[118],119]],[5,518,348],[0,0,0,0,0,0,1,2,2,1]],[2,"perfet",0,4,[[0,-185,[120],121]],[5,518,348],[0,322.142,0,0,0,0,1,2,2,1]]],0,[0,0,1,0,5,4,0,6,3,0,7,50,0,8,29,0,9,27,0,10,6,0,11,2,0,12,70,0,0,1,0,-1,31,0,-2,5,0,-3,25,0,-4,26,0,3,1,0,3,1,0,-7,6,0,-8,27,0,-9,2,0,-10,8,0,-11,9,0,-12,4,0,-1,7,0,-2,42,0,-3,43,0,-4,44,0,-5,45,0,-6,46,0,-7,47,0,-8,48,0,-9,49,0,-10,51,0,-11,52,0,-12,53,0,-13,54,0,-14,55,0,-15,56,0,-16,57,0,0,3,0,-1,13,0,-2,60,0,-3,61,0,-4,62,0,-5,63,0,-6,14,0,-7,15,0,-8,64,0,-9,65,0,-10,66,0,-11,67,0,-12,68,0,-13,69,0,-14,10,0,-1,71,0,-2,72,0,-3,73,0,-4,74,0,-5,75,0,-6,76,0,-7,77,0,-8,78,0,-9,16,0,-10,17,0,-11,18,0,-12,79,0,-13,80,0,0,5,0,-1,19,0,-2,20,0,-3,21,0,-4,22,0,-5,23,0,-6,24,0,13,12,0,0,6,0,0,6,0,-1,34,0,-2,35,0,-3,36,0,-4,12,0,0,7,0,-1,39,0,-2,40,0,-3,41,0,-1,28,0,-2,58,0,-3,59,0,-4,29,0,-1,70,0,0,9,0,0,9,0,0,10,0,2,10,0,0,10,0,0,10,0,0,11,0,0,11,0,-1,37,0,-2,38,0,0,13,0,0,13,0,0,13,0,0,14,0,2,14,0,0,14,0,0,15,0,2,15,0,0,15,0,0,16,0,2,16,0,0,16,0,0,17,0,2,17,0,0,17,0,0,18,0,2,18,0,0,18,0,0,19,0,0,19,0,0,20,0,0,20,0,0,21,0,0,21,0,0,22,0,0,22,0,0,23,0,0,23,0,0,24,0,0,24,0,0,25,0,0,25,0,-1,32,0,-2,33,0,0,27,0,0,28,0,0,28,0,0,29,0,0,31,0,0,32,0,0,33,0,0,34,0,0,35,0,0,36,0,0,37,0,0,38,0,0,39,0,0,40,0,0,41,0,0,42,0,0,43,0,0,44,0,0,45,0,0,46,0,0,47,0,0,48,0,-1,50,0,0,51,0,0,52,0,0,53,0,0,54,0,0,55,0,0,56,0,0,57,0,0,58,0,0,59,0,0,60,0,0,61,0,0,62,0,0,63,0,0,64,0,0,65,0,0,66,0,0,67,0,0,68,0,0,69,0,0,71,0,0,72,0,0,73,0,0,74,0,0,75,0,0,76,0,0,77,0,0,78,0,0,79,0,0,80,0,14,30,1,3,11,3,3,9,11,3,30,185],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,4,-1,4,-1,1,-1,1,15,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,-1,-1,-1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14],[0,1,0,2,0,2,0,2,0,3,0,3,0,3,0,0,13,0,14,0,15,9,16,9,17,0,18,0,19,20,0,10,0,21,0,22,0,10,0,23,0,4,0,4,0,4,0,5,0,5,0,5,0,0,6,0,6,0,6,0,7,0,7,0,7,0,0,1,0,11,0,24,0,11,0,1,0,25,0,8,0,8,0,8,0,26,0,27,0,0,0,0,0,0,0,28,0,12,0,12,0,29,0,30,0,31,0,32,0,33,0,34,0,35,0,36,0,37,0,38,0,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53]],[[{"name":"default_sprite_splash","rect":[0,0,2,2],"offset":[0,0],"originalSize":[2,2],"capInsets":[0,0,0,0]}],[8],0,[0],[16],[54]],[[[57,"block13"],[38,"block13",[-4],[[51,-2,[0,0,24],[[[0,-52,30],[0,-53,28],[0,-65,23],[0,-66,21],[0,-94,7],[0,-94,3],[0,-91,-1],[0,-91,-4],[0,-88,-7],[0,-86,-7],[0,-81,-13],[0,-79,-13],[0,-74,-19],[0,-72,-19],[0,-72,-22],[0,-69,-22],[0,-61,-30],[0,61,-30],[0,79,-13],[0,81,-13],[0,86,-7],[0,88,-7],[0,91,-4],[0,91,-1],[0,94,3],[0,94,7],[0,92,7],[0,91,9],[0,79,14],[0,78,16],[0,53,28],[0,52,30]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[21,-3,[0,0,28.5],[5,186,3]]],[58,-1,0],[5,188,60],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[27,"icon",1,[[0,-5,[0],1]],[59,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,188,60],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,17,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,18,1,5],[0,0],[-1,1],[0,55]]]] \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/0a/0a50a0981.json b/build/FlyUp/assets/main/import/0a/0a50a0981.json deleted file mode 100644 index 06aebdb..0000000 --- a/build/FlyUp/assets/main/import/0a/0a50a0981.json +++ /dev/null @@ -1 +0,0 @@ -[1,["ecpdLyjvZBwrvm+cedCcQy","a2MjXRFdtLlYQ5ouAFv/+R","39xzZtFr5M/acEKWIrq6cD","b9XZYB0kFMaYGIVwIzKDW6","07KlE5zmdA45F5MXX4tn9v","d72tmW9ydN4JWZvmf7dWoa","7dew4A8lxPAb6UXs8/8hDU","93GxQ0tzVDRLJzory0GyLs","6dfggYQOpNj77kZgggqBuN","7a/QZLET9IDreTiBfRn2PD","f2I7Pm7elK3Y3OuzUcxpgp","5abBNMMpZBR7vxJDcBQvfE","9dN/HK+xVFAK8rOdF0ycf2","f4QySXWtBKCbSlCEmr2Squ","bbODDEAMlJAYAhPtN+WjwK","d6ck6JPlFDParbM+Bd9ci9","92ACsV8KlNCaPLzdwGvm8c","c7lG371dZGYLVDWJFIeH2Y","f6Vggt1ZlA+J5lp/yPdtQr","f9ddP1G7BMirAPTQSjbjHC","543AZJJRJNe74aRSOA/3jd","4cjU79RPBBrasMHLDBNsa+","0eMoA/FR5HI6YzPvZVxQgP","a3PqQUiTxHcoYRWepGiyDW","8av2UppB1GLrFE7foRFNht","45zGM6kzNNyqCzHBSeH+jZ","faruncavtPIop38CByX5uN","0dqhqBaopO2Lry9uZ22P/n","81kTyAtYxBG5KiXvC09e2F","7d50AODeVNILIcpV/wWtNs","85fsVivv9OWICMxb5V/nAe","79EEpVmG5Ofrf4dzYSv0mf","b3Qw97PiRLTKWa+VuH25ai","d8BSo7tlZAzKAF6oZCy8E5","42wTrzp9VL/KgP+q5Snsfz","13l0c3fepPzrdo8UkZ6s2s","7bPZFIpvxDz790SV/uquvE","68vQp8xUlNf59MVET05m+d","b9ISRpubBHKoSDaDOwhq0q","2d/rEocc1JwatG4288s85D","18NhvHdGFKxKwrougZlKY/","a32pHCIe9MoqDGzJ5ELQ66","bdFeIR8hBOCanOEDKhjNfF","012y8iMjlH9LPzYA29IZFH","84wjQCxHFO0KkAKZ9lX2la","c3/KjBwH1OfbdG1xkmP5ZU","a5x0ZIVsdNoq+eDLofss7P","9ek+N5QBJJ7bZRvDbIuhMh","c43Hs4oAZKeJ//MqMDDarb","d8RPO7qIhCAb5HQbIZgaIU","02delMVqdBD70a/HSD99FK","61RXdTYpxOF4WRDyrNwZFy"],["node","_spriteFrame","_parent","_N$target","_N$skeletonData","Tip","GameOver","time","Xin","Ground","Player","topUI","Camera","add","scene","plist","_textureSetter","root","data"],[["cc.Node",["_name","_active","_opacity","_components","_contentSize","_parent","_trs","_anchorPoint","_color","_eulerAngles","_children","_prefab"],0,9,5,1,7,5,5,5,12,4],["cc.Node",["_name","_active","_id","_children","_parent","_trs","_contentSize","_components","_anchorPoint","_color","_prefab"],0,2,1,7,5,9,5,5,4],["cc.Sprite",["_type","_fillRange","_sizeMode","_fillType","node","_materials","_spriteFrame"],-1,1,3,6],["cc.Widget",["_alignFlags","_bottom","_originalWidth","_originalHeight","_right","_top","node"],-3,1],["cc.PolygonCollider",["node","points","_offset"],3,1,12,5],["sp.Skeleton",["defaultSkin","_preCacheMode","loop","premultipliedAlpha","_animationName","_playTimes","node","_materials","_N$skeletonData"],-3,1,3,6],["cc.Label",["_string","_N$horizontalAlign","_N$verticalAlign","_styleFlags","_fontSize","_lineHeight","node","_materials"],-3,1,3],["cc.PrefabInfo",["fileId","root","asset"],2,1,1],"cc.SpriteFrame",["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Node",["_name","_parent","_children","_components","_contentSize"],2,1,2,12,5],["cc.Node",["_name","_parent","_components","_contentSize","_trs"],2,1,2,5,7],["b26a49RCSFPT4C+F7xAd62t",["node","Camera","topUI","Player","Ground","Xin","time","GameOver","Tip","blockPrefab"],3,1,1,1,1,1,1,1,1,1,3],["7fd74nqW4BCN6aFalN5nmyL",["node","add","plist"],3,1,1,6],["cc.BoxCollider",["node","_offset","_size"],3,1,5,5],["ba5152SuShBF7Gc5uHiGsp0",["node"],3,1],["cc.Button",["zoomScale","_N$transition","node","clickEvents","_N$target"],1,1,9,1],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["cc.BlockInputEvents",["node"],3,1],["cc.Scene",["_name","_active","_children","_anchorPoint","_trs"],1,2,5,7],["cc.Camera",["_clearFlags","_depth","node"],1,1],["cc.Prefab",["_name"],2]],[[2,4,5,6,1],[0,0,5,3,4,6,2],[0,0,2,5,3,4,6,3],[0,0,5,3,4,7,6,2],[6,0,4,5,1,2,6,7,6],[0,0,5,3,8,4,6,2],[2,0,1,4,5,6,3],[3,0,1,6,3],[16,0,1,2,3,4,3],[17,0,1,2,3],[0,0,5,3,4,2],[0,0,5,3,4,6,9,2],[3,0,6,2],[0,0,1,5,3,4,7,6,3],[0,0,1,5,3,4,6,3],[0,0,1,5,3,4,6,9,3],[3,0,2,3,6,4],[2,2,4,5,6,2],[0,0,5,2],[0,0,2,5,3,8,4,3],[14,0,1,2,1],[2,0,2,1,4,5,6,4],[19,0,1],[9,0,1,3],[0,0,10,3,4,2],[0,0,5,3,4,7,2],[0,0,5,3,11,4,7,6,2],[1,0,4,3,6,5,2],[1,0,1,3,7,6,3],[1,0,4,3,2],[1,0,4,3,7,9,6,8,5,2],[1,0,4,3,7,6,8,5,2],[1,0,4,3,7,6,5,2],[1,0,1,4,3,3],[1,0,2,3,7,6,5,3],[1,0,1,4,3,5,3],[1,0,4,3,5,2],[1,0,3,7,10,6,8,5,2],[10,0,1,2,3,4,2],[11,0,1,2,3,4,2],[3,0,4,1,6,4],[3,5,1,6,3],[12,0,1,2,3,4,5,6,7,8,9,1],[13,0,1,2,1],[2,0,1,4,5,3],[2,0,3,4,5,6,3],[2,0,4,5,6,2],[15,0,1],[18,0,1,2,3,3],[4,0,1,1],[4,0,2,1,1],[20,0,1,2,3,4,3],[5,0,1,2,3,4,5,6,7,8,7],[5,0,1,2,6,7,8,4],[6,0,3,1,2,6,7,5],[21,0,1,2,3],[22,0,2],[7,1,2,1],[7,0,1,2,2]],[[[[23,"GuideScene",null],[24,"GameNode",[[-11,-12,-13,-14,[18,"CrackBlock",-15],[18,"Block",-16],-17,-18,-19,-20,-21,-22],1,1,1,1,4,4,1,1,1,1,1,1],[[12,45,-1],[42,-10,-9,-8,-7,-6,-5,-4,-3,-2,[114,115,116,117,118,119,120,121,122,123,124,125,126,127]]],[5,750,1334]],[27,"topUI",1,[-23,-24,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38],[5,750,100],[0,600,0,0,0,0,1,1,1,1]],[28,"GameOver",false,[-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53],[[12,45,-39]],[5,750,1334]],[29,"Tip",1,[-54,-55,-56,-57,-58,-59,-60,-61,-62]],[30,"bg1",1,[-64,-65,-66,-67,-68,-69],[[16,45,750,1660,-63]],[4,4287466895],[5,750,1334],[0,0.5,0],[0,-667,0,0,0,0,1,1,1,1]],[31,"Player",1,[-73,-74,-75,-76],[[43,-71,-70,29],[20,-72,[0,0,61.9],[5,50,120]]],[5,67,123.8],[0,0.5,0],[0,-500,0,0,0,0,1,1,1,1]],[32,"New Sprite",2,[-78,-79,-80],[[0,-77,[36],37]],[5,180,10],[-262.336,1.669,0,0,0,0,1,-1,1,1]],[33,"Revive",false,1,[-81,-82,-83,-84]],[38,"Main Camera",1,[3],[[-85,[47,-86],[16,45,750,1660,-87]],1,4,4],[5,750,1334]],[1,"rank",3,[[0,-88,[94],95],[8,1.1,3,-90,[[9,"b26a49RCSFPT4C+F7xAd62t","openRank",1]],-89],[40,36,8.269999999999982,10.918999999999926,-91]],[5,126,140],[303.73,-586.0810000000001,0,0,0,0,1,1,1,0]],[34,"Canvas","a5esZu+45LA5mBpvttspPD",[1],[[48,true,false,-92,[5,750,1334]],[12,45,-93]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[35,"add",false,6,[-94,-95],[0,161,0,0,0,0,1,1,1,1]],[19,"bg",125,3,[[17,0,-96,[74],75],[16,45,750,1334,-97],[22,-98]],[4,4278190080],[5,750,1334]],[1,"no",3,[[0,-99,[84],85],[8,1.1,3,-101,[[9,"b26a49RCSFPT4C+F7xAd62t","backLoad",1]],-100]],[5,269,72],[-180,-387.302,0,0,0,0,1,1,1,0]],[1,"yes",3,[[0,-102,[86],87],[8,1.1,3,-104,[[9,"b26a49RCSFPT4C+F7xAd62t","again",1]],-103]],[5,269,72],[180,-387.302,0,0,0,0,1,1,1,0]],[2,"btn_next",0,4,[[0,-105,[106],107],[8,1.1,3,-107,[[9,"b26a49RCSFPT4C+F7xAd62t","guideNext",1]],-106]],[5,208,46],[150,-13.024,0,0,0,0,1,1,1,0]],[2,"btn_jump",0,4,[[0,-108,[108],109],[8,1.1,3,-110,[[9,"b26a49RCSFPT4C+F7xAd62t","guideJump",1]],-109]],[5,208,46],[-150,-13.024,0,0,0,0,1,1,1,0]],[25,"New Sprite(Splash)",5,[[6,2,1,-111,[2],3],[12,4,-112]],[5,750,1660],[0,0.5,0]],[3,"New Sprite(Splash)",5,[[6,2,1,-113,[4],5],[7,4,3320,-114]],[5,750,1660],[0,0.5,0],[0,3320,0,0,0,0,1,1,1,1]],[13,"New Sprite(Splash)",false,5,[[6,2,1,-115,[6],7],[7,4,6629.899,-116]],[5,750,1660],[0,0.5,0],[0,6629.899,0,0,0,0,1,1,1,1]],[3,"New Sprite(Splash)",5,[[6,2,1,-117,[8],9],[7,4,1660,-118]],[5,750,1660],[0,0.5,0],[0,1660,0,0,0,0,1,1,1,1]],[13,"New Sprite(Splash)",false,5,[[6,2,1,-119,[10],11],[7,4,4980,-120]],[5,750,1660],[0,0.5,0],[0,4980,0,0,0,0,1,1,1,1]],[13,"New Sprite(Splash)",false,5,[[6,2,1,-121,[12],13],[7,4,8289.899,-122]],[5,750,1660],[0,0.5,0],[0,8289.899,0,0,0,0,1,1,1,1]],[3,"bg2",1,[[44,2,1,-123,[14]],[41,1061.788,-1387,-124]],[5,750,1660],[0,0.5,0],[0,-657.498,0,0,0,0,1,1,-1,1]],[36,"Tai",1,[-125,-126],[0,-508.741,0,0,0,0,1,1,1,1]],[14,"Ground",false,1,[[49,-127,[[[0,-100,2.5],[0,-100,-2.5],[0,100,-2.5],[0,100,2.5]],8,8,8,8]]],[5,200,10],[0,-500,0,0,0,0,1,1,1,1]],[19,"New Sprite(Splash)",81,8,[[17,0,-128,[66],67],[22,-129]],[4,4278190080],[5,750,2000]],[3,"xin",8,[[45,3,1,-130,[72],73]],[5,174,140],[0,0.5,0],[0,-70,0,0,0,0,1,1,1,1]],[51,"New Node",false,[11],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[14,"New Sprite(Splash)",false,1,[[17,0,-131,[0],1]],[5,750,500],[0,-863.356,0,0,0,0,1,1,1,1]],[10,"New Sprite",25,[[0,-132,[15],16]],[5,750,254]],[10,"New Sprite",25,[[0,-133,[17],18]],[5,440,156]],[2,"xin",0,6,[[0,-134,[19],20]],[5,96,37],[0,140,0,0,0,0,1,1,1,1]],[14,"guang",false,6,[[52,"default",0,false,false,"double_1",1,-135,[21],22]],[5,251.8,346.15],[37,55,0,0,0,0,1,0.8,0.8,1]],[10,"sp",6,[[53,"default",0,false,-136,[23],24]],[5,67,123.8]],[1,"icon",12,[[0,-137,[25],26]],[5,50,79],[24.768,5.736,0,0,0,0,1,1,1,1]],[11,"jia",12,[[0,-138,[27],28]],[5,57,59],[-23.138,0,0,0,0,0.3826834323650898,0.9238795325112867,1,1,1],[1,0,0,45]],[1,"New Sprite",7,[[0,-139,[30],31]],[5,180,10],[-524.672,0,0,0,0,0,1,-1,1,-1]],[1,"New Sprite",7,[[0,-140,[32],33]],[5,386,114],[-262.336,12.809,0,0,0,0,1,-1,1,-1]],[1,"New Sprite",7,[[0,-141,[34],35]],[5,310,68],[-262.336,-3.981,0,0,0,0,1,-1,1,-1]],[1,"progress",2,[[46,3,-142,[38],39]],[5,310,68],[0,-2.642,0,0,0,0,1,1,1,1]],[11,"New Sprite",2,[[0,-143,[40],41]],[5,44,44],[-97.013,-0.438,0,0,0,-0.1908089953765448,0.981627183447664,1,1,1],[1,0,0,-22]],[11,"New Sprite",2,[[0,-144,[42],43]],[5,44,44],[-29.238,-24.818,0,0,0,-0.008726535498373935,0.9999619230641713,1,1,1],[1,0,0,-1]],[11,"New Sprite",2,[[0,-145,[44],45]],[5,44,44],[100.706,-2.842,0,0,0,-0.3090169943749474,0.9510565162951535,1,1,1],[1,0,0,-36]],[15,"star1",false,2,[[0,-146,[46],47]],[5,54,54],[-97.013,-0.438,0,0,0,-0.1908089953765448,0.981627183447664,1,1,1],[1,0,0,-22]],[15,"star2",false,2,[[0,-147,[48],49]],[5,54,54],[-29.238,-24.818,0,0,0,-0.008726535498373935,0.9999619230641713,1,1,1],[1,0,0,-1]],[15,"star3",false,2,[[0,-148,[50],51]],[5,54,54],[100.706,-2.842,0,0,0,-0.3090169943749474,0.9510565162951535,1,1,1],[1,0,0,-36]],[39,"time",2,[-149],[5,102.3,50.4],[265.857,17.789,0,0,0,0,1,1,1,1]],[54,"02:00",1,1,1,48,[52]],[1,"New Sprite",2,[[0,-150,[53],54]],[5,40,32],[-311.731,12.644,0,0,0,0,1,1,1,1]],[1,"New Sprite",2,[[0,-151,[55],56]],[5,40,32],[-264.923,12.644,0,0,0,0,1,1,1,1]],[1,"New Sprite",2,[[0,-152,[57],58]],[5,40,32],[-217.008,12.644,0,0,0,0,1,1,1,1]],[1,"xin1",2,[[0,-153,[59],60]],[5,44,36],[-311.731,12.644,0,0,0,0,1,1,1,1]],[1,"xin2",2,[[0,-154,[61],62]],[5,44,36],[-264.923,12.644,0,0,0,0,1,1,1,1]],[1,"xin3",2,[[0,-155,[63],64]],[5,44,36],[-217.008,12.644,0,0,0,0,1,1,1,1]],[1,"nandu",2,[[4,"0",50,50,1,1,-156,[65]]],[5,27.81,63],[0,22.397,0,0,0,0,1,1,1,1]],[3,"New Sprite",8,[[0,-157,[68],69]],[5,174,140],[0,0.5,0],[0,-70,0,0,0,0,1,1,1,1]],[10,"New Sprite",8,[[0,-158,[70],71]],[5,204,168]],[1,"New Sprite",3,[[0,-159,[76],77]],[5,700,344],[0,347.926,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-160,[78],79]],[5,448,60],[0,140,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-161,[80],81]],[5,448,60],[0,-11.299,0,0,0,0,1,1,1,1]],[1,"New Sprite",3,[[0,-162,[82],83]],[5,448,60],[0,-137.873,0,0,0,0,1,1,1,1]],[5,"New Label",3,[[4,"最高难度系数",32,32,1,1,-163,[88]]],[4,4294042522],[5,192,40.32],[0,-137.873,0,0,0,0,1,1,1,1]],[5,"New Label",3,[[4,"总得分",32,32,1,1,-164,[89]]],[4,4294042522],[5,96,40.32],[0,140,0,0,0,0,1,1,1,1]],[5,"New Label",3,[[4,"本次最高层数",32,32,1,1,-165,[90]]],[4,4294042522],[5,192,40.32],[0,-11.299,0,0,0,0,1,1,1,1]],[5,"score",3,[[4,"100000",65,65,1,1,-166,[91]]],[4,4294573823],[5,216.9,81.9],[0,69.258,0,0,0,0,1,1,1,1]],[5,"level",3,[[4,"56",52,52,1,1,-167,[92]]],[4,4294573823],[5,57.84,65.52],[0,-71.579,0,0,0,0,1,1,1,1]],[5,"difficulty",3,[[4,"9.8",50,50,1,1,-168,[93]]],[4,4294573823],[5,69.51,63],[0,-203.614,0,0,0,0,1,1,1,1]],[55,7,-1,9],[3,"left",4,[[21,1,0,1,-169,[96],97]],[5,0,352],[0,0,0.5],[0,197.197,0,0,0,0,1,-1,1,1]],[3,"right",4,[[21,1,0,1,-170,[98],99]],[5,0,352],[0,0,0.5],[0,197.197,0,0,0,0,1,1,1,1]],[2,"tip",0,4,[[0,-171,[100],101]],[5,565,110],[0,197.197,0,0,0,0,1,1,1,1]],[2,"tip2",0,4,[[0,-172,[102],103]],[5,427,206],[0,197.197,0,0,0,0,1,1,1,1]],[2,"tip3",0,4,[[0,-173,[104],105]],[5,619,260],[0,197.197,0,0,0,0,1,1,1,1]],[2,"good",0,4,[[0,-174,[110],111]],[5,518,348],[0,0,0,0,0,0,1,2,2,1]],[2,"perfet",0,4,[[0,-175,[112],113]],[5,518,348],[0,322.142,0,0,0,0,1,2,2,1]]],0,[0,0,1,0,5,4,0,6,3,0,7,49,0,8,28,0,9,26,0,10,6,0,11,2,0,12,69,0,0,1,0,-1,30,0,-2,5,0,-3,24,0,-4,25,0,2,1,0,2,1,0,-7,6,0,-8,26,0,-9,2,0,-10,8,0,-11,9,0,-12,4,0,-1,7,0,-2,41,0,-3,42,0,-4,43,0,-5,44,0,-6,45,0,-7,46,0,-8,47,0,-9,48,0,-10,50,0,-11,51,0,-12,52,0,-13,53,0,-14,54,0,-15,55,0,-16,56,0,0,3,0,-1,13,0,-2,59,0,-3,60,0,-4,61,0,-5,62,0,-6,14,0,-7,15,0,-8,63,0,-9,64,0,-10,65,0,-11,66,0,-12,67,0,-13,68,0,-14,10,0,-1,70,0,-2,71,0,-3,72,0,-4,73,0,-5,74,0,-6,16,0,-7,17,0,-8,75,0,-9,76,0,0,5,0,-1,18,0,-2,19,0,-3,20,0,-4,21,0,-5,22,0,-6,23,0,13,12,0,0,6,0,0,6,0,-1,33,0,-2,34,0,-3,35,0,-4,12,0,0,7,0,-1,38,0,-2,39,0,-3,40,0,-1,27,0,-2,57,0,-3,58,0,-4,28,0,-1,69,0,0,9,0,0,9,0,0,10,0,3,10,0,0,10,0,0,10,0,0,11,0,0,11,0,-1,36,0,-2,37,0,0,13,0,0,13,0,0,13,0,0,14,0,3,14,0,0,14,0,0,15,0,3,15,0,0,15,0,0,16,0,3,16,0,0,16,0,0,17,0,3,17,0,0,17,0,0,18,0,0,18,0,0,19,0,0,19,0,0,20,0,0,20,0,0,21,0,0,21,0,0,22,0,0,22,0,0,23,0,0,23,0,0,24,0,0,24,0,-1,31,0,-2,32,0,0,26,0,0,27,0,0,27,0,0,28,0,0,30,0,0,31,0,0,32,0,0,33,0,0,34,0,0,35,0,0,36,0,0,37,0,0,38,0,0,39,0,0,40,0,0,41,0,0,42,0,0,43,0,0,44,0,0,45,0,0,46,0,0,47,0,-1,49,0,0,50,0,0,51,0,0,52,0,0,53,0,0,54,0,0,55,0,0,56,0,0,57,0,0,58,0,0,59,0,0,60,0,0,61,0,0,62,0,0,63,0,0,64,0,0,65,0,0,66,0,0,67,0,0,68,0,0,70,0,0,71,0,0,72,0,0,73,0,0,74,0,0,75,0,0,76,0,14,29,1,2,11,3,2,9,11,2,29,175],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,4,-1,4,-1,1,-1,1,15,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-1,-1,-1,-1,-1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,1,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14],[0,1,0,2,0,2,0,2,0,3,0,3,0,3,0,0,13,0,14,0,15,9,16,9,17,0,18,0,19,20,0,10,0,21,0,22,0,10,0,23,0,4,0,4,0,4,0,5,0,5,0,5,0,0,6,0,6,0,6,0,7,0,7,0,7,0,0,1,0,11,0,24,0,11,0,1,0,25,0,8,0,8,0,8,0,26,0,27,0,0,0,0,0,0,0,28,0,12,0,12,0,29,0,30,0,31,0,32,0,33,0,34,0,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49]],[[{"name":"default_sprite_splash","rect":[0,0,2,2],"offset":[0,0],"originalSize":[2,2],"capInsets":[0,0,0,0]}],[8],0,[0],[16],[50]],[[[56,"block13"],[37,"block13",[-4],[[50,-2,[0,0,24],[[[0,-52,30],[0,-53,28],[0,-65,23],[0,-66,21],[0,-94,7],[0,-94,3],[0,-91,-1],[0,-91,-4],[0,-88,-7],[0,-86,-7],[0,-81,-13],[0,-79,-13],[0,-74,-19],[0,-72,-19],[0,-72,-22],[0,-69,-22],[0,-61,-30],[0,61,-30],[0,79,-13],[0,81,-13],[0,86,-7],[0,88,-7],[0,91,-4],[0,91,-1],[0,94,3],[0,94,7],[0,92,7],[0,91,9],[0,79,14],[0,78,16],[0,53,28],[0,52,30]],8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8]],[20,-3,[0,0,28.5],[5,186,3]]],[57,-1,0],[5,188,60],[0,0.5,0],[-500,0,0,0,0,0,1,1,1,1]],[26,"icon",1,[[0,-5,[0],1]],[58,"a6UqDYxsVLWoW5UEe23T9Z",1,0],[5,188,60],[0,0.5,0],[0,-5,0,0,0,0,1,1,1,1]]],0,[0,17,1,0,0,1,0,0,1,0,-1,2,0,0,2,0,18,1,5],[0,0],[-1,1],[0,51]]]] \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/0b/0b3ae8af1.7c178.json b/build/FlyUp/assets/main/import/0b/0b3ae8af1.7c178.json new file mode 100644 index 0000000..00fd21f --- /dev/null +++ b/build/FlyUp/assets/main/import/0b/0b3ae8af1.7c178.json @@ -0,0 +1 @@ +{"type":"cc.Texture2D","data":"0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1|0,9729,9729,33071,33071,0,0,1"} \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/0f/0f197f47b.d393c.json b/build/FlyUp/assets/main/import/0f/0f197f47b.d393c.json new file mode 100644 index 0000000..d6c9edc --- /dev/null +++ b/build/FlyUp/assets/main/import/0f/0f197f47b.d393c.json @@ -0,0 +1 @@ +[1,["ecpdLyjvZBwrvm+cedCcQy","a5+VXEpKdC8YAlvdO00kp3","d9HN6kEbVDCIKVAeTIU14c","a3x2KFXlRBDL1yV31B5T0l","1cbBR+9BZDmakR2ztuM3kE","d608qFRoFHwbXd0Dap056i","61cyPdEfRN047sDK9rO0W5","80p0i1It1Jnqkx1Eq6/tjY","95GA3w6h5IAbwc9mRay+cB","5f5dyqtRNNxaFmVzYns6FZ","9bvaMerUlDyary99mJa6xp","0fs5U/1H1Kz6hVPTJDIcD6","5acAP5kBJNIq86XuKHIhnw","0fywWxsY9JMrsJlDAwW41z","5cO7kybDxGj4ipyMYdRYZB","d8HsitJHxOYqo801xBk8ev"],["node","_spriteFrame","_textureSetter","_parent","phone","selfNode","Player","_N$handle","_scrollView","scene"],[["cc.Node",["_name","_objFlags","_active","_id","_contentSize","_components","_parent","_children","_trs","_anchorPoint","_color"],-1,5,9,1,2,7,5,5],["cc.Sprite",["_sizeMode","_type","_enabled","node","_materials","_spriteFrame"],0,1,3,6],["cc.Label",["_string","_fontSize","_lineHeight","_N$verticalAlign","_N$horizontalAlign","_N$cacheMode","_N$overflow","_styleFlags","node","_materials"],-5,1,3],["cc.Widget",["_alignFlags","_left","alignMode","_originalHeight","_top","_bottom","node"],-3,1],"cc.SpriteFrame",["cc.Mask",["_N$alphaThreshold","_type","_segments","node","_materials"],0,1,3],["cc.Node",["_name","_objFlags","_parent","_components","_contentSize","_anchorPoint","_trs"],1,1,2,5,5,7],["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Node",["_name","_parent","_children","_components","_color","_contentSize","_anchorPoint","_trs"],2,1,2,12,5,5,5,7],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["9c7ccNc8VlJ9Jy7qfTPoy0E",["node","Player","selfNode","phone"],3,1,1,1,1],["ca0f9k0oBVDbpQC+OMNTF3m",["node"],3,1],["d5421HgLShFKIjj5f18m1mi",["startAxis","spaceX","spaceY","padding_top","padding_buttom","padding_left","padding_right","node","itemRender"],-4,1,1],["cc.Scrollbar",["_N$direction","node","_scrollView","_N$handle"],2,1,1,1],["cc.Button",["zoomScale","_N$transition","node","clickEvents"],1,1,9],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.Scene",["_name","_active","autoReleaseAssets","_children","_anchorPoint","_trs"],0,2,5,7],["cc.Camera",["_clearFlags","_depth","node"],1,1],["cc.ScrollView",["horizontal","brake","bounceDuration","_N$horizontalScrollBar","_N$verticalScrollBar","node","_N$content"],-2,1,1]],[[0,0,6,5,10,4,8,2],[1,3,4,5,1],[0,0,2,6,5,4,3],[1,0,3,4,5,2],[0,0,6,7,5,4,8,2],[0,0,6,5,4,2],[2,0,1,2,4,3,5,8,9,7],[0,0,6,5,4,8,2],[2,0,1,2,4,3,8,9,6],[2,0,1,2,7,4,3,8,9,7],[0,0,6,7,4,8,2],[0,0,6,7,2],[0,0,6,5,10,4,9,8,2],[3,0,6,2],[5,1,2,0,3,4,4],[7,0,1,3],[0,0,3,7,5,4,8,3],[0,0,7,5,4,8,2],[0,0,6,7,5,8,2],[0,0,1,2,6,7,5,4,9,8,4],[0,0,1,7,4,9,3],[0,0,1,6,7,5,4,9,3],[8,0,1,2,3,4,5,6,7,2],[6,0,1,2,3,4,5,6,3],[6,0,2,3,4,2],[9,0,1,2,3,3],[3,2,0,1,3,6,5],[3,0,1,4,6,4],[3,0,5,6,3],[10,0,1,2,3,1],[11,0,1],[1,2,1,0,3,4,5,4],[1,1,0,3,4,5,3],[1,1,3,4,5,2],[1,1,0,3,4,3],[1,0,3,4,2],[12,0,1,2,3,4,5,6,7,8,8],[13,0,1,2,3,2],[5,1,0,3,4,3],[5,0,3,4,2],[14,0,1,2,3,3],[15,0,1,2,3],[16,0,1,2,3,4,5,4],[17,0,1,2,3],[18,0,1,2,3,4,5,6,6],[2,0,1,2,3,6,5,8,9,7],[2,0,1,2,3,5,8,9,6]],[[[{"name":"default_scrollbar_vertical","rect":[0,0,15,30],"offset":[0,0],"originalSize":[15,30],"capInsets":[4,10,4,10]}],[4],0,[0],[2],[5]],[[{"name":"default_scrollbar_vertical_bg","rect":[0,0,15,30],"offset":[0,0],"originalSize":[15,30],"capInsets":[4,10,4,10]}],[4],0,[0],[2],[6]],[[[15,"RankScene",null],[16,"Rank","2999C1S+1ETLTf4YnWJN7w",[-7,-8,-9,-10,-11,-12,-13,-14],[[25,true,false,-1,[5,750,1334]],[13,45,-2],[29,-6,-5,-4,-3]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[17,"RankListItem",[-16,-17,-18,-19,-20,-21],[[30,-15]],[5,650,94],[0,-80,0,0,0,0,1,1,1,1]],[18,"Self",1,[-23,-24,-25,-26,-27],[[13,4,-22]],[0,-667,0,0,0,0,1,1,1,1]],[22,"ScrollView",1,[-31,-32],[[[31,false,1,0,-28,[22],23],-29,[36,2,10,10,10,10,10,10,-30,2]],4,1,4],[4,4286151086],[5,680,1400],[0,0.5,1],[0,155,0,0,0,0,1,1,1,1]],[19,"scrollBar",512,false,4,[-38],[[37,1,-35,-34,-33],[26,0,37,350.07654921020657,237,-36],[32,1,0,-37,[20],21]],[5,12,820],[0,1,0.5],[340,-410,0,0,0,0,1,1,1,1]],[4,"player",1,[-40,-41],[[1,-39,[35],36]],[5,98,106],[-254,405,0,0,0,0,1,1,1,1]],[4,"pic",2,[-43,-44],[[14,1,60,0,-42,[10]]],[5,60,60],[-171.687,0,0,0,0,0,1,1,1,1]],[10,"rank",2,[-45,-46,-47],[5,40,36],[-261.233,0,0,0,0,0,1,1,1,1]],[11,"top_tip",1,[-48,-49,-50]],[11,"rank",6,[-51,-52,-53]],[4,"mask",6,[-55,-56],[[38,1,0,-54,[34]]],[5,65,65],[-0.079,4.153,0,0,0,0,1,1,1,1]],[4,"pic",3,[-58,-59],[[14,1,60,0,-57,[42]]],[5,60,60],[-171.687,62,0,0,0,0,1,1,1,1]],[10,"rank",3,[-60,-61,-62],[5,40,36],[-261.233,62,0,0,0,0,1,1,1,1]],[7,"backBtn",1,[[1,-63,[52],53],[27,9,40.90999999999997,29,-64],[40,1.1,3,-65,[[41,"9c7ccNc8VlJ9Jy7qfTPoy0E","backClick",1]]]],[5,28,40],[-320.09000000000003,618,0,0,0,0,1,1,1,0]],[20,"content",512,[2],[5,680,600],[0,0.5,1]],[21,"view",512,4,[15],[[39,0,-66,[3]]],[5,680,700],[0,0.5,1]],[7,"bg",1,[[1,-67,[37],38],[28,4,-2,-68]],[5,750,120],[0,-609,0,0,0,0,1,1,1,1]],[42,"New Node",false,true,[1],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[7,"Main Camera",1,[[43,7,-1,-69]],[5,750,1334],[0,0,252.87547,0,0,0,1,1,1,1]],[5,"background",1,[[33,1,-70,[0],1]],[5,750,1660]],[23,"bar",512,5,[-71],[5,10,30],[0,1,0],[-1,0,0,0,0,0,1,1,1,1]],[34,1,0,21,[2]],[44,false,0.75,0.23,null,null,4,15],[5,"bg",2,[[3,0,-72,[4],5]],[5,650,94]],[5,"pic",7,[[3,0,-73,[6],7]],[5,60,60]],[2,"icon",false,7,[[1,-74,[8],9]],[5,64,64]],[2,"one",false,8,[[1,-75,[11],12]],[5,66,66]],[2,"two",false,8,[[1,-76,[13],14]],[5,66,66]],[2,"three",false,8,[[1,-77,[15],16]],[5,66,66]],[0,"rankLab",2,[[6,"5",30,30,1,1,1,-78,[17]]],[4,4282467672],[5,16.68,37.8],[-259.131,-2.054,0,0,0,0,1,1,1,1]],[0,"totalLab",2,[[6,"0",30,30,1,1,1,-79,[18]]],[4,4282467672],[5,16.68,37.8],[222.326,-2.205,0,0,0,0,1,1,1,1]],[12,"nameLab",2,[[45,"测试",25,25,1,1,1,-80,[19]]],[4,4282467672],[5,240,27.72],[0,0,0.5],[-99.704,-2.205,0,0,0,0,1,1,1,1]],[0,"New Label",9,[[8,"排名",27,27,1,1,-81,[24]]],[4,4287920461],[5,54,34.02],[-258.909,177.468,0,0,0,0,1,1,1,1]],[0,"New Label",9,[[8,"用户昵称",27,27,1,1,-82,[25]]],[4,4287920461],[5,108,34.02],[-48.622,177.468,0,0,0,0,1,1,1,1]],[0,"New Label",9,[[8,"分数",27,27,1,1,-83,[26]]],[4,4287920461],[5,54,34.02],[223.658,177.468,0,0,0,0,1,1,1,1]],[0,"New Label",10,[[9,"超过了",21,21,1,1,1,-84,[27]]],[4,4286075970],[5,63,26.46],[-44.975,74.075,0,0,0,0,1,1,1,1]],[0,"New Label",10,[[9,"的人",21,21,1,1,1,-85,[28]]],[4,4286075970],[5,42,26.46],[79.212,74.075,0,0,0,0,1,1,1,1]],[0,"number",10,[[9,"30%",25,25,1,1,1,-86,[29]]],[4,4285230079],[5,50.04,31.5],[21.304,74.651,0,0,0,0,1,1,1,1]],[2,"phone",false,11,[[3,0,-87,[30],31]],[5,65,65]],[2,"icon",false,11,[[3,0,-88,[32],33]],[5,66,66]],[24,"pic",12,[-89],[5,60,60]],[35,0,41,[39]],[5,"icon",12,[[3,0,-90,[40],41]],[5,60,60]],[0,"rankLab",3,[[6,"5",25,25,1,1,1,-91,[43]]],[4,4293392383],[5,13.9,31.5],[-259.131,59.946,0,0,0,0,1,1,1,1]],[2,"one",false,13,[[1,-92,[44],45]],[5,66,66]],[2,"two",false,13,[[1,-93,[46],47]],[5,66,66]],[2,"three",false,13,[[1,-94,[48],49]],[5,66,66]],[0,"totalLab",3,[[6,"0",30,30,1,1,1,-95,[50]]],[4,4293392383],[5,16.68,37.8],[222.326,59.795,0,0,0,0,1,1,1,1]],[12,"nameLab",3,[[46,"我",25,25,1,1,-96,[51]]],[4,4293392383],[5,25,31.5],[0,0,0.5],[-99.704,59.795,0,0,0,0,1,1,1,1]]],0,[0,0,1,0,0,1,0,4,42,0,5,3,0,6,6,0,0,1,0,-1,19,0,-2,20,0,-3,4,0,-4,9,0,-5,6,0,-6,17,0,-7,3,0,-8,14,0,0,2,0,-1,24,0,-2,7,0,-3,8,0,-4,30,0,-5,31,0,-6,32,0,0,3,0,-1,12,0,-2,44,0,-3,13,0,-4,48,0,-5,49,0,0,4,0,-2,23,0,0,4,0,-1,5,0,-2,16,0,7,22,0,8,23,0,0,5,0,0,5,0,0,5,0,-1,21,0,0,6,0,-1,10,0,-2,11,0,0,7,0,-1,25,0,-2,26,0,-1,27,0,-2,28,0,-3,29,0,-1,33,0,-2,34,0,-3,35,0,-1,36,0,-2,37,0,-3,38,0,0,11,0,-1,39,0,-2,40,0,0,12,0,-1,41,0,-2,43,0,-1,45,0,-2,46,0,-3,47,0,0,14,0,0,14,0,0,14,0,0,16,0,0,17,0,0,17,0,0,19,0,0,20,0,-1,22,0,0,24,0,0,25,0,0,26,0,0,27,0,0,28,0,0,29,0,0,30,0,0,31,0,0,32,0,0,33,0,0,34,0,0,35,0,0,36,0,0,37,0,0,38,0,0,39,0,0,40,0,-1,42,0,0,43,0,0,44,0,0,45,0,0,46,0,0,47,0,0,48,0,0,49,0,9,18,1,3,18,2,3,15,15,3,16,96],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,42],[-1,1,-1,-1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,-1,-1,-1,1,-1,1,-1,-1,-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,1,-1,1,-1,1,-1,-1,-1,1,1,1],[0,7,0,0,0,8,0,1,0,1,0,0,2,0,3,0,4,0,0,0,0,9,0,10,0,0,0,0,0,0,0,1,0,1,0,0,11,0,12,0,0,1,0,0,0,2,0,3,0,4,0,0,0,13,14,1]],[[{"name":"default_panel","rect":[0,0,20,20],"offset":[0,0],"originalSize":[20,20],"capInsets":[6,6,6,6]}],[4],0,[0],[2],[15]]]] \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/0f/0f197f47b.json b/build/FlyUp/assets/main/import/0f/0f197f47b.json deleted file mode 100644 index d4dcd73..0000000 --- a/build/FlyUp/assets/main/import/0f/0f197f47b.json +++ /dev/null @@ -1 +0,0 @@ -[1,["ecpdLyjvZBwrvm+cedCcQy","a5+VXEpKdC8YAlvdO00kp3","d9HN6kEbVDCIKVAeTIU14c","a3x2KFXlRBDL1yV31B5T0l","1cbBR+9BZDmakR2ztuM3kE","d608qFRoFHwbXd0Dap056i","61cyPdEfRN047sDK9rO0W5","80p0i1It1Jnqkx1Eq6/tjY","95GA3w6h5IAbwc9mRay+cB","5f5dyqtRNNxaFmVzYns6FZ","9bvaMerUlDyary99mJa6xp","0fs5U/1H1Kz6hVPTJDIcD6","5acAP5kBJNIq86XuKHIhnw","0fywWxsY9JMrsJlDAwW41z","5cO7kybDxGj4ipyMYdRYZB","d8HsitJHxOYqo801xBk8ev"],["node","_spriteFrame","_textureSetter","_parent","phone","selfNode","Player","_N$handle","_scrollView","scene"],[["cc.Node",["_name","_objFlags","_active","_id","_contentSize","_components","_parent","_children","_trs","_anchorPoint","_color"],-1,5,9,1,2,7,5,5],["cc.Sprite",["_sizeMode","_type","_enabled","node","_materials","_spriteFrame"],0,1,3,6],["cc.Label",["_string","_fontSize","_lineHeight","_N$verticalAlign","_N$horizontalAlign","_N$cacheMode","_N$overflow","_styleFlags","node","_materials"],-5,1,3],["cc.Widget",["_alignFlags","_left","alignMode","_originalHeight","_top","_bottom","node"],-3,1],"cc.SpriteFrame",["cc.Mask",["_N$alphaThreshold","_type","_segments","node","_materials"],0,1,3],["cc.Node",["_name","_objFlags","_parent","_components","_contentSize","_anchorPoint","_trs"],1,1,2,5,5,7],["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Node",["_name","_parent","_children","_components","_color","_contentSize","_anchorPoint","_trs"],2,1,2,12,5,5,5,7],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["9c7ccNc8VlJ9Jy7qfTPoy0E",["node","Player","selfNode","phone"],3,1,1,1,1],["ca0f9k0oBVDbpQC+OMNTF3m",["node"],3,1],["d5421HgLShFKIjj5f18m1mi",["startAxis","spaceX","spaceY","padding_top","padding_buttom","padding_left","padding_right","node","itemRender"],-4,1,1],["cc.Scrollbar",["_N$direction","node","_scrollView","_N$handle"],2,1,1,1],["cc.Button",["zoomScale","_N$transition","node","clickEvents"],1,1,9],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.Scene",["_name","_active","_children","_anchorPoint","_trs"],1,2,5,7],["cc.Camera",["_clearFlags","_depth","node"],1,1],["cc.ScrollView",["horizontal","brake","bounceDuration","_N$horizontalScrollBar","_N$verticalScrollBar","node","_N$content"],-2,1,1]],[[0,0,6,5,10,4,8,2],[1,3,4,5,1],[0,0,2,6,5,4,3],[1,0,3,4,5,2],[0,0,6,7,5,4,8,2],[0,0,6,5,4,2],[2,0,1,2,4,3,5,8,9,7],[0,0,6,5,4,8,2],[2,0,1,2,4,3,8,9,6],[2,0,1,2,7,4,3,8,9,7],[0,0,6,7,4,8,2],[0,0,6,7,2],[0,0,6,5,10,4,9,8,2],[3,0,6,2],[5,1,2,0,3,4,4],[7,0,1,3],[0,0,3,7,5,4,8,3],[0,0,7,5,4,8,2],[0,0,6,7,5,8,2],[0,0,1,2,6,7,5,4,9,8,4],[0,0,1,7,4,9,3],[0,0,1,6,7,5,4,9,3],[8,0,1,2,3,4,5,6,7,2],[6,0,1,2,3,4,5,6,3],[6,0,2,3,4,2],[9,0,1,2,3,3],[3,2,0,1,3,6,5],[3,0,1,4,6,4],[3,0,5,6,3],[10,0,1,2,3,1],[11,0,1],[1,2,1,0,3,4,5,4],[1,1,0,3,4,5,3],[1,1,3,4,5,2],[1,1,0,3,4,3],[1,0,3,4,2],[12,0,1,2,3,4,5,6,7,8,8],[13,0,1,2,3,2],[5,1,0,3,4,3],[5,0,3,4,2],[14,0,1,2,3,3],[15,0,1,2,3],[16,0,1,2,3,4,3],[17,0,1,2,3],[18,0,1,2,3,4,5,6,6],[2,0,1,2,3,6,5,8,9,7],[2,0,1,2,3,5,8,9,6]],[[[{"name":"default_scrollbar_vertical","rect":[0,0,15,30],"offset":[0,0],"originalSize":[15,30],"capInsets":[4,10,4,10]}],[4],0,[0],[2],[5]],[[{"name":"default_scrollbar_vertical_bg","rect":[0,0,15,30],"offset":[0,0],"originalSize":[15,30],"capInsets":[4,10,4,10]}],[4],0,[0],[2],[6]],[[[15,"RankScene",null],[16,"Rank","2999C1S+1ETLTf4YnWJN7w",[-7,-8,-9,-10,-11,-12,-13,-14],[[25,true,false,-1,[5,750,1334]],[13,45,-2],[29,-6,-5,-4,-3]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[17,"RankListItem",[-16,-17,-18,-19,-20,-21],[[30,-15]],[5,650,94],[0,-80,0,0,0,0,1,1,1,1]],[18,"Self",1,[-23,-24,-25,-26,-27],[[13,4,-22]],[0,-667,0,0,0,0,1,1,1,1]],[22,"ScrollView",1,[-31,-32],[[[31,false,1,0,-28,[22],23],-29,[36,2,10,10,10,10,10,10,-30,2]],4,1,4],[4,4286151086],[5,680,1400],[0,0.5,1],[0,155,0,0,0,0,1,1,1,1]],[19,"scrollBar",512,false,4,[-38],[[37,1,-35,-34,-33],[26,0,37,350.07654921020657,237,-36],[32,1,0,-37,[20],21]],[5,12,820],[0,1,0.5],[340,-410,0,0,0,0,1,1,1,1]],[4,"player",1,[-40,-41],[[1,-39,[35],36]],[5,98,106],[-254,405,0,0,0,0,1,1,1,1]],[4,"pic",2,[-43,-44],[[14,1,60,0,-42,[10]]],[5,60,60],[-171.687,0,0,0,0,0,1,1,1,1]],[10,"rank",2,[-45,-46,-47],[5,40,36],[-261.233,0,0,0,0,0,1,1,1,1]],[11,"top_tip",1,[-48,-49,-50]],[11,"rank",6,[-51,-52,-53]],[4,"mask",6,[-55,-56],[[38,1,0,-54,[34]]],[5,65,65],[-0.079,4.153,0,0,0,0,1,1,1,1]],[4,"pic",3,[-58,-59],[[14,1,60,0,-57,[42]]],[5,60,60],[-171.687,62,0,0,0,0,1,1,1,1]],[10,"rank",3,[-60,-61,-62],[5,40,36],[-261.233,62,0,0,0,0,1,1,1,1]],[7,"backBtn",1,[[1,-63,[52],53],[27,9,40.90999999999997,29,-64],[40,1.1,3,-65,[[41,"9c7ccNc8VlJ9Jy7qfTPoy0E","backClick",1]]]],[5,28,40],[-320.09000000000003,618,0,0,0,0,1,1,1,0]],[20,"content",512,[2],[5,680,600],[0,0.5,1]],[21,"view",512,4,[15],[[39,0,-66,[3]]],[5,680,700],[0,0.5,1]],[7,"bg",1,[[1,-67,[37],38],[28,4,-2,-68]],[5,750,120],[0,-609,0,0,0,0,1,1,1,1]],[42,"New Node",false,[1],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[7,"Main Camera",1,[[43,7,-1,-69]],[5,750,1334],[0,0,252.87547,0,0,0,1,1,1,1]],[5,"background",1,[[33,1,-70,[0],1]],[5,750,1660]],[23,"bar",512,5,[-71],[5,10,30],[0,1,0],[-1,0,0,0,0,0,1,1,1,1]],[34,1,0,21,[2]],[44,false,0.75,0.23,null,null,4,15],[5,"bg",2,[[3,0,-72,[4],5]],[5,650,94]],[5,"pic",7,[[3,0,-73,[6],7]],[5,60,60]],[2,"icon",false,7,[[1,-74,[8],9]],[5,64,64]],[2,"one",false,8,[[1,-75,[11],12]],[5,66,66]],[2,"two",false,8,[[1,-76,[13],14]],[5,66,66]],[2,"three",false,8,[[1,-77,[15],16]],[5,66,66]],[0,"rankLab",2,[[6,"5",30,30,1,1,1,-78,[17]]],[4,4282467672],[5,16.68,37.8],[-259.131,-2.054,0,0,0,0,1,1,1,1]],[0,"totalLab",2,[[6,"0",30,30,1,1,1,-79,[18]]],[4,4282467672],[5,16.68,37.8],[222.326,-2.205,0,0,0,0,1,1,1,1]],[12,"nameLab",2,[[45,"测试",25,25,1,1,1,-80,[19]]],[4,4282467672],[5,240,27.72],[0,0,0.5],[-99.704,-2.205,0,0,0,0,1,1,1,1]],[0,"New Label",9,[[8,"排名",27,27,1,1,-81,[24]]],[4,4287920461],[5,54,34.02],[-258.909,177.468,0,0,0,0,1,1,1,1]],[0,"New Label",9,[[8,"用户昵称",27,27,1,1,-82,[25]]],[4,4287920461],[5,108,34.02],[-48.622,177.468,0,0,0,0,1,1,1,1]],[0,"New Label",9,[[8,"分数",27,27,1,1,-83,[26]]],[4,4287920461],[5,54,34.02],[223.658,177.468,0,0,0,0,1,1,1,1]],[0,"New Label",10,[[9,"超过了",21,21,1,1,1,-84,[27]]],[4,4286075970],[5,63,26.46],[-44.975,74.075,0,0,0,0,1,1,1,1]],[0,"New Label",10,[[9,"的人",21,21,1,1,1,-85,[28]]],[4,4286075970],[5,42,26.46],[79.212,74.075,0,0,0,0,1,1,1,1]],[0,"number",10,[[9,"30%",25,25,1,1,1,-86,[29]]],[4,4285230079],[5,50.04,31.5],[21.304,74.651,0,0,0,0,1,1,1,1]],[2,"phone",false,11,[[3,0,-87,[30],31]],[5,65,65]],[2,"icon",false,11,[[3,0,-88,[32],33]],[5,66,66]],[24,"pic",12,[-89],[5,60,60]],[35,0,41,[39]],[5,"icon",12,[[3,0,-90,[40],41]],[5,60,60]],[0,"rankLab",3,[[6,"5",25,25,1,1,1,-91,[43]]],[4,4293392383],[5,13.9,31.5],[-259.131,59.946,0,0,0,0,1,1,1,1]],[2,"one",false,13,[[1,-92,[44],45]],[5,66,66]],[2,"two",false,13,[[1,-93,[46],47]],[5,66,66]],[2,"three",false,13,[[1,-94,[48],49]],[5,66,66]],[0,"totalLab",3,[[6,"0",30,30,1,1,1,-95,[50]]],[4,4293392383],[5,16.68,37.8],[222.326,59.795,0,0,0,0,1,1,1,1]],[12,"nameLab",3,[[46,"我",25,25,1,1,-96,[51]]],[4,4293392383],[5,25,31.5],[0,0,0.5],[-99.704,59.795,0,0,0,0,1,1,1,1]]],0,[0,0,1,0,0,1,0,4,42,0,5,3,0,6,6,0,0,1,0,-1,19,0,-2,20,0,-3,4,0,-4,9,0,-5,6,0,-6,17,0,-7,3,0,-8,14,0,0,2,0,-1,24,0,-2,7,0,-3,8,0,-4,30,0,-5,31,0,-6,32,0,0,3,0,-1,12,0,-2,44,0,-3,13,0,-4,48,0,-5,49,0,0,4,0,-2,23,0,0,4,0,-1,5,0,-2,16,0,7,22,0,8,23,0,0,5,0,0,5,0,0,5,0,-1,21,0,0,6,0,-1,10,0,-2,11,0,0,7,0,-1,25,0,-2,26,0,-1,27,0,-2,28,0,-3,29,0,-1,33,0,-2,34,0,-3,35,0,-1,36,0,-2,37,0,-3,38,0,0,11,0,-1,39,0,-2,40,0,0,12,0,-1,41,0,-2,43,0,-1,45,0,-2,46,0,-3,47,0,0,14,0,0,14,0,0,14,0,0,16,0,0,17,0,0,17,0,0,19,0,0,20,0,-1,22,0,0,24,0,0,25,0,0,26,0,0,27,0,0,28,0,0,29,0,0,30,0,0,31,0,0,32,0,0,33,0,0,34,0,0,35,0,0,36,0,0,37,0,0,38,0,0,39,0,0,40,0,-1,42,0,0,43,0,0,44,0,0,45,0,0,46,0,0,47,0,0,48,0,0,49,0,9,18,1,3,18,2,3,15,15,3,16,96],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,22,42],[-1,1,-1,-1,-1,1,-1,1,-1,1,-1,-1,1,-1,1,-1,1,-1,-1,-1,-1,1,-1,1,-1,-1,-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,1,-1,1,-1,1,-1,-1,-1,1,1,1],[0,7,0,0,0,8,0,1,0,1,0,0,2,0,3,0,4,0,0,0,0,9,0,10,0,0,0,0,0,0,0,1,0,1,0,0,11,0,12,0,0,1,0,0,0,2,0,3,0,4,0,0,0,13,14,1]],[[{"name":"default_panel","rect":[0,0,20,20],"offset":[0,0],"originalSize":[20,20],"capInsets":[6,6,6,6]}],[4],0,[0],[2],[15]]]] \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/de/de4a2193-73c2-43cd-8359-363f654e759f.f4b63.json b/build/FlyUp/assets/main/import/de/de4a2193-73c2-43cd-8359-363f654e759f.f4b63.json new file mode 100644 index 0000000..fb3ddb9 --- /dev/null +++ b/build/FlyUp/assets/main/import/de/de4a2193-73c2-43cd-8359-363f654e759f.f4b63.json @@ -0,0 +1 @@ +[1,["ecpdLyjvZBwrvm+cedCcQy","92fGwMmkBCY5k5VoquaR1+","93DPpMxKVBEZM995IYAktf","adVjW5ul5J459XvvWIwB3K","aehgdAqf5K97NRleRunskJ","cbvcD+cP5HE6KccuPsfiUR","59gVJrAjVOg5VE8K3Ujzlm","8bu7JSDHhB4Ylq2OW1dnPA","81kTyAtYxBG5KiXvC09e2F"],["node","_spriteFrame","_N$target","audioGameBgm0","jump","luodi","pz","luodui","scene","_parent"],[["cc.Node",["_name","_id","_components","_parent","_contentSize","_trs","_children"],1,9,1,5,7,2],["cc.Widget",["_alignFlags","_right","_bottom","node"],0,1],["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Scene",["_name","autoReleaseAssets","_children","_anchorPoint","_trs"],1,2,5,7],["f2f0bI5PsVI+o18xF6G+KVa",["node"],3,1],["7574f5PdlZP4Kt9dxMgkIPZ",["node","audioGameBgm0","jump","luodi","pz","luodui"],3,1,6,6,6,6,6],["cc.Camera",["_clearFlags","_depth","node"],1,1],["cc.Sprite",["node","_materials","_spriteFrame"],3,1,3,6],["cc.Button",["zoomScale","_N$transition","node","clickEvents","_N$target"],1,1,9,1],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["08fd79IH4NDy6e43JUK4PUm",["node"],3,1]],[[7,0,1,2,1],[0,0,3,2,4,2],[0,0,3,2,4,5,2],[8,0,1,2,3,4,3],[9,0,1,2,3],[2,0,1,3],[3,0,1,2,3,4,3],[0,0,1,3,2,3],[0,0,1,6,2,4,5,3],[4,0,1],[5,0,1,2,3,4,5,1],[6,0,1,2,3],[1,0,1,2,3,4],[1,0,3,2],[10,0,1,2,3,3],[11,0,1]],[[5,"LoadScene",null],[8,"Canvas","a5esZu+45LA5mBpvttspPD",[-4,-5,-6,-7],[[14,true,false,-1,[5,750,1334]],[13,45,-2],[15,-3]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[2,"rank",1,[[0,-8,[9],10],[3,1.1,3,-10,[[4,"08fd79IH4NDy6e43JUK4PUm","openRank",1]],-9],[12,36,20.269999999999982,34.20999999999998,-11]],[5,102,102],[303.73,-581.79,0,0,0,0,1,1,1,0]],[2,"New Sprite",1,[[0,-12,[7],8],[3,1.1,3,-14,[[4,"08fd79IH4NDy6e43JUK4PUm","click",1]],-13]],[5,444,82],[0,-289.447,0,0,0,0,1,1,1,0]],[6,"New Node",true,[-15,1],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[7,"GameData","2cMYZKehlOnbVGV23kb483",4,[[9,-16],[10,-17,0,1,2,3,4]]],[1,"Main Camera",1,[[11,7,-1,-18]],[5,960,640]],[1,"New Sprite",1,[[0,-19,[5],6]],[5,750,1660]]],0,[0,0,1,0,0,1,0,0,1,0,-1,6,0,-2,7,0,-3,3,0,-4,2,0,0,2,0,2,2,0,0,2,0,0,2,0,0,3,0,2,3,0,0,3,0,-1,5,0,0,5,0,0,5,0,0,6,0,0,7,0,8,4,1,9,4,19],[0,0,0,0,0,0,0,0,0,0,0],[3,4,5,6,7,-1,1,-1,1,-1,1],[1,2,3,4,5,0,6,0,7,0,8]] \ No newline at end of file diff --git a/build/FlyUp/assets/main/import/de/de4a2193-73c2-43cd-8359-363f654e759f.json b/build/FlyUp/assets/main/import/de/de4a2193-73c2-43cd-8359-363f654e759f.json deleted file mode 100644 index 85d594e..0000000 --- a/build/FlyUp/assets/main/import/de/de4a2193-73c2-43cd-8359-363f654e759f.json +++ /dev/null @@ -1 +0,0 @@ -[1,["ecpdLyjvZBwrvm+cedCcQy","92fGwMmkBCY5k5VoquaR1+","93DPpMxKVBEZM995IYAktf","adVjW5ul5J459XvvWIwB3K","aehgdAqf5K97NRleRunskJ","cbvcD+cP5HE6KccuPsfiUR","59gVJrAjVOg5VE8K3Ujzlm","8bu7JSDHhB4Ylq2OW1dnPA","81kTyAtYxBG5KiXvC09e2F"],["node","_spriteFrame","_N$target","audioGameBgm0","jump","luodi","pz","luodui","scene","_parent"],[["cc.Node",["_name","_id","_components","_parent","_contentSize","_trs","_children"],1,9,1,5,7,2],["cc.Widget",["_alignFlags","_right","_bottom","node"],0,1],["cc.SceneAsset",["_name","asyncLoadAssets"],1],["cc.Scene",["_name","_children","_anchorPoint","_trs"],2,2,5,7],["f2f0bI5PsVI+o18xF6G+KVa",["node"],3,1],["7574f5PdlZP4Kt9dxMgkIPZ",["node","audioGameBgm0","jump","luodi","pz","luodui"],3,1,6,6,6,6,6],["cc.Camera",["_clearFlags","_depth","node"],1,1],["cc.Sprite",["node","_materials","_spriteFrame"],3,1,3,6],["cc.Button",["zoomScale","_N$transition","node","clickEvents","_N$target"],1,1,9,1],["cc.ClickEvent",["_componentId","handler","target"],1,1],["cc.Canvas",["_fitWidth","_fitHeight","node","_designResolution"],1,1,5],["08fd79IH4NDy6e43JUK4PUm",["node"],3,1]],[[7,0,1,2,1],[0,0,3,2,4,2],[0,0,3,2,4,5,2],[8,0,1,2,3,4,3],[9,0,1,2,3],[2,0,1,3],[3,0,1,2,3,2],[0,0,1,3,2,3],[0,0,1,6,2,4,5,3],[4,0,1],[5,0,1,2,3,4,5,1],[6,0,1,2,3],[1,0,1,2,3,4],[1,0,3,2],[10,0,1,2,3,3],[11,0,1]],[[5,"LoadScene",null],[8,"Canvas","a5esZu+45LA5mBpvttspPD",[-4,-5,-6,-7],[[14,true,false,-1,[5,750,1334]],[13,45,-2],[15,-3]],[5,750,1334],[375,667,0,0,0,0,1,1,1,1]],[2,"rank",1,[[0,-8,[9],10],[3,1.1,3,-10,[[4,"08fd79IH4NDy6e43JUK4PUm","openRank",1]],-9],[12,36,20.269999999999982,34.20999999999998,-11]],[5,102,102],[303.73,-581.79,0,0,0,0,1,1,1,0]],[2,"New Sprite",1,[[0,-12,[7],8],[3,1.1,3,-14,[[4,"08fd79IH4NDy6e43JUK4PUm","click",1]],-13]],[5,444,82],[0,-289.447,0,0,0,0,1,1,1,0]],[6,"New Node",[-15,1],[0,0,0],[0,0,0,0,0,0,1,1,1,1]],[7,"GameData","2cMYZKehlOnbVGV23kb483",4,[[9,-16],[10,-17,0,1,2,3,4]]],[1,"Main Camera",1,[[11,7,-1,-18]],[5,960,640]],[1,"New Sprite",1,[[0,-19,[5],6]],[5,750,1660]]],0,[0,0,1,0,0,1,0,0,1,0,-1,6,0,-2,7,0,-3,3,0,-4,2,0,0,2,0,2,2,0,0,2,0,0,2,0,0,3,0,2,3,0,0,3,0,-1,5,0,0,5,0,0,5,0,0,6,0,0,7,0,8,4,1,9,4,19],[0,0,0,0,0,0,0,0,0,0,0],[3,4,5,6,7,-1,1,-1,1,-1,1],[1,2,3,4,5,0,6,0,7,0,8]] \ No newline at end of file diff --git a/build/FlyUp/assets/main/index.bb7bf.js b/build/FlyUp/assets/main/index.bb7bf.js new file mode 100644 index 0000000..bb94db0 --- /dev/null +++ b/build/FlyUp/assets/main/index.bb7bf.js @@ -0,0 +1 @@ +window.__require=function t(e,i,n){function o(r,s){if(!i[r]){if(!e[r]){var c=r.split("/");if(c=c[c.length-1],!e[c]){var l="function"==typeof __require&&__require;if(!s&&l)return l(c,!0);if(a)return a(c,!0);throw new Error("Cannot find module '"+r+"'")}r=c}var h=i[r]={exports:{}};e[r][0].call(h.exports,function(t){return o(e[r][1][t]||t)},h,h.exports,t,e,i,n)}return i[r].exports}for(var a="function"==typeof __require&&__require,r=0;r=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=r.property,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.audioGameBgm0=null,e.jump=null,e.luodi=null,e.pz=null,e.luodui=null,e}var i;return o(e,t),i=e,e.prototype.ctor=function(){this.mAudioMap={},this.bgMusicVolume=.1,this.effectMusicVolume=1,this.mMusicSwitch=1,this.mEffectSwitch=1},e.prototype.play=function(t,e,i,n){if((!n||this.mMusicSwitch)&&(n||this.mEffectSwitch)){var o=n?this.bgMusicVolume:this.effectMusicVolume;if(cc.sys.isBrowser){t==this.brickSound&&(o=.1),o=1;var a=cc.audioEngine.play(t,e,o);return i&&cc.audioEngine.setFinishCallback(a,function(){i.call(this)}.bind(this)),this.mAudioMap[t]=a,t}return t}},e.prototype.save=function(){},e.prototype.onLoad=function(){null==i._instance?(i._instance=this,cc.game.addPersistRootNode(this.node),this.reward=!1,this.finish=!1,this.rewardCount=0,this.ctor(),this.preload()):this.node.destroy()},e.prototype.preload=function(){cc.sys.platform===cc.sys.WECHAT_GAME&&[this.audioGameBgm0].forEach(function(){})},e.prototype.getAudioMusicSwitch=function(){return this.mMusicSwitch},e.prototype.getAudioEffectSwitch=function(){return this.mEffectSwitch},e.prototype.trunAudioSound=function(t){this.switchMusic(t),this.switchEffect(t)},e.prototype.switchMusic=function(t){this.mMusicSwitch!=(t?1:0)&&(this.mMusicSwitch=1-this.mMusicSwitch),t?this.playMusicGame():this.stopMusic()},e.prototype.switchEffect=function(t){this.mEffectSwitch!=(t?1:0)&&(this.mEffectSwitch=1-this.mEffectSwitch)},e.prototype.onHide=function(){cc.audioEngine.pauseAll()},e.prototype.onShow=function(){cc.audioEngine.resumeAll()},e.prototype.playMusic=function(t,e,i){i=!(void 0!==i&&!i),this.stopMusic(),this.mMusicKey=this.play(t,i,e,!0)},e.prototype.playMusicGame=function(){this.playMusic(this.audioGameBgm0,{},!0)},e.prototype.stopMusic=function(){var t=this.mAudioMap[this.mMusicKey];void 0!==t&&(cc.sys.isBrowser?cc.audioEngine.stop(t):t.stop(),cc.audioEngine.stop(t))},e.prototype.playJump=function(){return this.play(this.jump,!1,null,this.mEffectSwitch)},e.prototype.playLuo=function(){return this.play(this.luodui,!1,null,this.mEffectSwitch)},e.prototype.playGround=function(){return this.play(this.luodi,!1,null,this.mEffectSwitch)},e.prototype.playPz=function(){return this.play(this.pz,!1,null,this.mEffectSwitch)},e.prototype.playGameStart=function(){},e.prototype.playGameOver=function(){},e.prototype.playGameResultFailed=function(){},e.prototype.playGameResultSuccess=function(){},e.prototype.playWarning=function(){},e.prototype.playBrick=function(){},e.prototype.brickBoom=function(){},e.prototype.playAudioButton=function(){},e.prototype.playRandomMatch=function(){this.playMusic(this.audioGameBgm0,{},!0)},e.prototype.playMatchFoundSound=function(){this.stopMusic()},a([c(cc.AudioClip)],e.prototype,"audioGameBgm0",void 0),a([c(cc.AudioClip)],e.prototype,"jump",void 0),a([c(cc.AudioClip)],e.prototype,"luodi",void 0),a([c(cc.AudioClip)],e.prototype,"pz",void 0),a([c(cc.AudioClip)],e.prototype,"luodui",void 0),i=a([s],e)}(cc.Component);i.default=l,cc._RF.pop()},{}],Block:[function(t,e,i){"use strict";cc._RF.push(e,"2bf4dXY+rJG37abLKiCEh7s","Block");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./GameManager"),c=t("./tool/Notification"),l=cc._decorator,h=l.ccclass,u=l.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.onLoad=function(){this.node.getComponent(cc.PolygonCollider).enabled=!0,this.speed=10,this.num=0,this.move=!1,this.node.name.length>6?this.num=parseInt(this.node.name.substring(5,7)):this.num=parseInt(this.node.name.substring(5,6)),this.speed=r.default._instance.BLOCK_INFO[this.num-1].speed,this.init()},e.prototype.start=function(){},e.prototype.init=function(){var t=this,e=this.speed;if(this.getSpeed(),this.num>r.default._instance.GM_INFO.blockScale?this.speede&&(this.speed=e),13==this.num||r.default._instance.GM_INFO.probation){if(s.default._instance.block){var i=parseInt(3*Math.random()+"")+1;this.speed=s.default._instance.block.getComponent("Block").speed+i}this.node.getComponent(cc.PolygonCollider).enabled=!1,this.node.getComponent(cc.BoxCollider).enabled=!1,r.default._instance.CLICK_DATA.fakeSpeed=this.speed}else r.default._instance.CLICK_DATA.block=this.num,r.default._instance.CLICK_DATA.speed=this.speed,this.getDifficulty(),s.default._instance.Air2.push(this.speed),s.default._instance.Air2.length>99&&console.log("\u88ab\u9650\u5236\u540e",s.default._instance.Air2);this.move=!0,this.tween=cc.tween(this.node).to(this.speed,{x:-this.node.x}).call(function(){t.move=!1}).start()},e.prototype.getSpeed=function(){var t=r.default._instance.LEVEL_INFO.reduceSpeed;t>35&&(t=35),t=parseInt(Math.random()*t+"");var e=10*Math.random(),i=1;r.default._instance.LEVEL_INFO.speed<1.3?i=9:r.default._instance.LEVEL_INFO.speed<1.5?i=7:r.default._instance.LEVEL_INFO.speed<1.8?i=5:r.default._instance.LEVEL_INFO.speed<2&&(i=3),e>i&&(t=-t),this.speed=this.speed/r.default._instance.LEVEL_INFO.speed,this.speed=parseInt(10*this.speed/10+""),t=parseInt(10*t/10+""),this.speed=this.speed-t/10,13!=this.num&&(s.default._instance.Air.push(this.speed),99==s.default._instance.Air.length&&console.log("\u521d\u59cb\u6570\u636e",s.default._instance.Air))},e.prototype.getDifficulty=function(){var t=0;(t=(Math.abs(this.speed-s.default._instance.oldSpeed)/10+1)*(11-this.speed))<=1?t=1:t>=7&&(t=7);var e;e=this.node.width<180?0:this.node.width<199?.5:1;var i=0;1==s.default._instance.interfere&&(i=1);var n=0;this.num>6&&(n=1),s.default._instance.oldSpeed=this.speed,this.difficulty=0,this.difficulty=t+e+i+n,this.difficulty=parseInt(10*this.difficulty+""),r.default._instance.CLICK_DATA.difficulty=this.difficulty/10,s.default._instance.difficultyArray+=r.default._instance.CLICK_DATA.difficulty,r.default._instance.CLICK_DATA.difficulty>r.default._instance.GM_INFO.difficultyMax&&(r.default._instance.GM_INFO.difficultyMax=r.default._instance.CLICK_DATA.difficulty)},e.prototype.setScore=function(t){var e,i=this.difficulty/10,n=r.default._instance.LEVEL_INFO.layer,o=r.default._instance.LEVEL_INFO.doubleHit;e=parseInt(t*i*n*o+""),c.Notification.emit("addScore",e)},e.prototype.hide=function(){var t=this;cc.tween(this.node).to(.2,{opacity:0}).call(function(){t.node.active=!1,t.node.removeFromParent(),t.node=null}).start()},e.prototype.onCollisionEnter=function(t,e){if((!s.default._instance||1!=s.default._instance.over)&&"Player"==t.node.name){var i=e.name.length;t.name.substring(6,i),1==this.move&&this.tween&&this.tween.stop()}},e.prototype.update=function(){},a([u(cc.Label)],e.prototype,"label",void 0),a([u],e.prototype,"text",void 0),a([h],e)}(cc.Component);i.default=d,cc._RF.pop()},{"./GameData":"GameData","./GameManager":"GameManager","./tool/Notification":"Notification"}],Camera:[function(t,e,i){"use strict";cc._RF.push(e,"ba5152SuShBF7Gc5uHiGsp0","Camera");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./GameManager"),c=t("./tool/Notification"),l=cc._decorator,h=l.ccclass,u=l.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.start=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.jump,this)},e.prototype.jump=function(){s.default._instance?0==s.default._instance.over&&1==s.default._instance.begin&&c.Notification.emit("jump",null):1==r.default._instance.GM_INFO.probation&&c.Notification.emit("jump",null)},a([u(cc.Label)],e.prototype,"label",void 0),a([u],e.prototype,"text",void 0),a([h],e)}(cc.Component);i.default=d,cc._RF.pop()},{"./GameData":"GameData","./GameManager":"GameManager","./tool/Notification":"Notification"}],GameData:[function(t,e,i){"use strict";cc._RF.push(e,"f2f0bI5PsVI+o18xF6G+KVa","GameData");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=(r.property,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var i;return o(e,t),i=e,e.prototype.onLoad=function(){null==i._instance?(i._instance=this,this.AudioManager=this.node.getComponent("BallAudioManager")):this.node.destroy()},e.prototype.start=function(){this.GAME_DATA=[],this.GM_INFO_init(),this.LEVEL_init(),this.BLOCK_INFO_init(),this.CLICK_init()},e.prototype.GM_INFO_init=function(){this.GM_INFO={mean_Time:0,total:0,currSeed:203213,gameId:"100001",userId:"",guide:!0,url:"http://dev.api.sparkus.cn",custom:0,jumpUpTime:.5,jumpDownTime:.4,jumpHeight:150,blockMin:30,blockMax:-10,blockScale:5,distanceMin:100,distanceMax:110,life:3,levelMax:1,difficultyMax:1,score:0,success:!0,probation:!0}},e.prototype.CLICK_init=function(){i._instance.CLICK_DATA={type:1,level:0,block:0,percent:0,getScore:0,totalScore:0,difficulty:0,height:!1,combo:0,accuracy:0,jumps:0,timer:0,fake:!1,fakeSpeed:0,speed:0,round:0}},e.prototype.LEVEL_init=function(){this.LEVEL_INFO={speed:1,addSpeed:.015,reduceSpeed:0,jiansu:3,round1:10,round2:20,round3:30,doubleSuccess:3,fastSpeed:3.5,slowSpeed:4.5,doubleHit:1,doubleAdd:.05,doubleMax:2,layer:100,layerAdd:2,star1:.2,star2:.4,star3:.8,scoreMax:12e4,levelMax:1,difficultyMax:1}},e.prototype.BLOCK_INFO_init=function(){this.BLOCK_INFO=[{name:"block1",speed:8,thickness:!1},{name:"block2",speed:9,thickness:!1},{name:"block3",speed:8,thickness:!1},{name:"block4",speed:9,thickness:!1},{name:"block5",speed:8,thickness:!1},{name:"block6",speed:8,thickness:!1},{name:"block7",speed:10,thickness:!0},{name:"block8",speed:10,thickness:!0},{name:"block9",speed:10,thickness:!0},{name:"block10",speed:10,thickness:!0},{name:"block11",speed:10,thickness:!0},{name:"block12",speed:10,thickness:!0},{name:"block0",speed:14,thickness:!1}]},i=a([s],e)}(cc.Component));i.default=c,cc._RF.pop()},{}],GameManager:[function(t,e,i){"use strict";cc._RF.push(e,"b26a49RCSFPT4C+F7xAd62t","GameManager");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./tool/GameTool"),c=t("./tool/Notification"),l=cc._decorator,h=l.ccclass,u=l.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.Camera=null,e.topUI=null,e.Player=null,e.Ground=null,e.Xin=null,e.time=null,e.GameOver=null,e.Tip=null,e.blockPrefab=[],e}var i;return o(e,t),i=e,e.prototype.onLoad=function(){cc.director.getCollisionManager().enabled=!0,i._instance=this,this.Air=[],this.Air2=[]},e.prototype.onEnable=function(){c.Notification.on("createBlock",this.createBlock,this),c.Notification.on("addScore",this.addScore,this),c.Notification.on("createCrackBlock",this.createCrackBlock,this),c.Notification.on("showGround",this.showGround,this),c.Notification.on("death",this.getDeath,this),c.Notification.on("jump",this.jump,this),c.Notification.on("setData",this.setData,this)},e.prototype.onDestroy=function(){c.Notification.off("createBlock",this.createBlock),c.Notification.off("addScore",this.addScore),c.Notification.off("createCrackBlock",this.createCrackBlock),c.Notification.off("death",this.getDeath),c.Notification.off("jump",this.jump),c.Notification.off("showGround",this.showGround),c.Notification.off("setData",this.setData)},e.prototype.fit=function(){this.node.getChildByName("bg2").y=-2167.675,this.setFit()||(this.node.getChildByName("bg2").y=-2100,this.topUI.y=660)},e.prototype.getSetScreenResolutionFlag=function(){var t=cc.winSize,e=t.width;return!(t.height/e>16.2/9)},e.prototype.setFit=function(){return this.getSetScreenResolutionFlag()},e.prototype.init=function(){this.drop=this.topUI.y-this.Camera.node.y,this.score=0,this.oldSpeed=10,this.guide=-1,this.begin=!0,this.over=!1,this.interfere=!1,this.round=0,this.level=0,r.default._instance.GM_INFO.levelMax=1,r.default._instance.GM_INFO.difficultyMax=1,r.default._instance.GM_INFO.life=3,this.blockArray=[],this.difficultyArray=0,this.cameraMove=!1,this.countTime=180,this.topUI.getChildByName("xin1").active=!0,this.topUI.getChildByName("xin2").active=!0,this.topUI.getChildByName("xin3").active=!0,this.topUI.getChildByName("star1").active=!1,this.topUI.getChildByName("star2").active=!1,this.topUI.getChildByName("star3").active=!1,r.default._instance.LEVEL_init(),this.schedule(this.updateCountDownTime,1)},e.prototype.start=function(){var t=this;if(this.fit(),this.init(),r.default._instance.GM_INFO.probation){this.Player.getComponent("Player").jumpPause=!0;var e=this.Tip.getChildByName("tip");this.tipShow(e,-1,!0)}else this.node.getChildByName("Begin").opacity=0,this.node.getChildByName("Begin").scale=2,this.node.getChildByName("Begin")?cc.tween(this.node.getChildByName("Begin")).to(.5,{opacity:255,scale:1}).delay(.5).to(.5,{opacity:0,scale:0}).call(function(){t.startGame()}).start():setTimeout(function(){t.startGame()},1e3)},e.prototype.startGuide=function(t,e){var i=this;if(this.guide=t,console.log("startGuide",t),0==t)this.careteGuideBlock(1);else if(2==t){var n=this.node.getChildByName("Block").children[this.node.getChildByName("Block").children.length-1];cc.tween(n).to(.7,{x:0}).start(),this.tipHide("tip2",3,!1)}else if(3==t)if(1==e)this.round+=1,this.careteGuideBlock(3);else{var o=this.Tip.getChildByName("tip3");this.tipShow(o,t,!1),setTimeout(function(){i.tipHide("tip3",null,!1),i.round+=1,i.careteGuideBlock(3)},3e3)}else if(4==t)this.round+=1,this.careteGuideBlock(4);else if(5==t)this.round+=1,this.careteGuideBlock(5);else if(6==t)n=this.node.getChildByName("Block").children[this.node.getChildByName("Block").children.length-1],cc.tween(n).to(.7,{x:0}).start(),this.tipHide("tip4",7,e);else if(7==t)1==e?(this.round+=1,this.careteGuideBlock(7)):(o=this.Tip.getChildByName("tip5"),this.tipShow(o,t,!1),setTimeout(function(){i.tipHide("tip5",null,e),i.round+=1,i.careteGuideBlock(7)},2e3));else if(8==t)this.round+=1,this.careteGuideBlock(8);else if(9==t){this.Player.getComponent("Player").jumpPause=!0;var a=this.Tip.getChildByName("tip6");setTimeout(function(){i.tipShow(a,t,!1)},1e3)}},e.prototype.tipShow=function(t,e,i){var n=this,o=t,a=this.Tip.getChildByName("left"),r=this.Tip.getChildByName("right");a.width=0,r.width=0,o.opacity=0,cc.tween(a).to(.25,{width:348}).start(),cc.tween(r).to(.25,{width:348}).start(),cc.tween(o).delay(.15).to(.15,{opacity:255}).call(function(){n.guide=e,5==e&&(n.guide=6),5!=e&&1!=e||(n.Player.getComponent("Player").jumpPause=!1)}).start(),1==i&&(this.Tip.getChildByName("btn_next").active=!0,this.Tip.getChildByName("btn_jump").active=!0,cc.tween(this.Tip.getChildByName("btn_next")).delay(.5).to(.2,{opacity:255}).start(),cc.tween(this.Tip.getChildByName("btn_jump")).delay(.5).to(.2,{opacity:255}).start()),"tip6"==o.name&&(this.Tip.getChildByName("btn_start").active=!0,cc.tween(this.Tip.getChildByName("btn_start")).delay(1).to(.2,{opacity:255}).start())},e.prototype.tipHide=function(t,e,i){var n=this,o=this.Tip.getChildByName(t),a=this.Tip.getChildByName("left"),r=this.Tip.getChildByName("right");cc.tween(a).delay(.1).to(.25,{width:0}).start(),cc.tween(r).delay(.1).to(.25,{width:0}).start(),cc.tween(o).to(.12,{opacity:0}).delay(1.5).call(function(){"tip3"!=o.name&&"tip5"!=t&&(n.Player.getComponent("Player").jumpPause=!0),null!=e&&n.startGuide(e,i)}).start()},e.prototype.careteGuideBlock=function(t){var e=this;this.Ground.active=!1;var i=this.Tip.getChildByName("tip2");5==t&&(i=this.Tip.getChildByName("tip4")),this.Player.getComponent("Player").jumpPause=!0;var n=cc.instantiate(this.blockPrefab[13]),o=this.Player.getComponent("Player").basicHeight+r.default._instance.GM_INFO.blockMin;t>4&&(o+=n.height+r.default._instance.GM_INFO.blockMax,r.default._instance.CLICK_DATA.height=!0),n.setPosition(cc.v2(this.round%2==0?480:-480,o)),n.parent=this.node.getChildByName("Block");var a=150,s=3;1==t||5==t?a=this.round%2==0?a:-a:3!=t&&4!=t&&7!=t&&8!=t&&9!=t||(this.Player.getComponent("Player").jumpPause=!1,a=-n.x,s=7),cc.tween(n).to(s,{x:a}).call(function(){1!=t&&5!=t||(e.Player.getComponent("Player").jumpPause=!0,e.tipShow(i,t,!1))}).start()},e.prototype.showGround=function(t){var e=this;setTimeout(function(){e.Ground.active=!0,e.Ground.y=t},500)},e.prototype.guideStart=function(){this.tipHide("tip6",null,!1),this.Tip.getChildByName("btn_next").active=!1,this.Tip.getChildByName("btn_jump").active=!1,this.Tip.getChildByName("btn_start").active=!1,r.default._instance.GM_INFO.probation=!1,this.destroyBlock(!1),this.onDestroy(),cc.director.loadScene("GameScene")},e.prototype.guideNext=function(){-1==this.guide&&(this.tipHide("tip",0,!1),this.Tip.getChildByName("btn_next").active=!1,this.Tip.getChildByName("btn_jump").active=!1,this.Tip.getChildByName("btn_start").active=!1)},e.prototype.guideJump=function(){this.Tip.getChildByName("btn_next").active=!1,this.Tip.getChildByName("btn_jump").active=!1,this.Tip.getChildByName("btn_start").active=!1,r.default._instance.GM_INFO.probation=!1,this.destroyBlock(!1),this.onDestroy(),cc.director.loadScene("GameScene")},e.prototype.jump=function(){this.Player.getComponent("Player").jump()},e.prototype.startGame=function(){this.createBlock()},e.prototype.addScore=function(t){var e=this;r.default._instance.CLICK_DATA.getScore=parseInt(t),i._instance.score+=parseInt(t),r.default._instance.CLICK_DATA.totalScore=i._instance.score,this.topUI.getChildByName("nandu").getComponent(cc.Label).string=i._instance.score+"";var n=i._instance.score/r.default._instance.LEVEL_INFO.scoreMax;cc.tween(this.topUI.getChildByName("progress").getComponent(cc.Sprite)).to(.5,{fillRange:n}).call(function(){n>=r.default._instance.LEVEL_INFO.star1&&!e.topUI.getChildByName("star1").active&&(e.topUI.getChildByName("star1").active=!0),n>=r.default._instance.LEVEL_INFO.star2&&!e.topUI.getChildByName("star2").active&&(e.topUI.getChildByName("star2").active=!0),n>=r.default._instance.LEVEL_INFO.star3&&!e.topUI.getChildByName("star3").active&&(e.topUI.getChildByName("star3").active=!0)}).start()},e.prototype.createBlock=function(){if(0==this.over&&1==this.begin){this.Ground.active=!1,this.Player.getComponent("Player").jumpPause=!1;var t=Math.floor(12*Math.random());this.round<=10&&5==t&&(t=Math.floor(6*Math.random()+6));var e=cc.instantiate(this.blockPrefab[t]),i=this.Player.getComponent("Player").basicHeight+r.default._instance.GM_INFO.blockMin;t>r.default._instance.GM_INFO.blockScale&&(i+=e.height+r.default._instance.GM_INFO.blockMax,r.default._instance.CLICK_DATA.height=!0),i>=0&&0==this.cameraMove&&(this.countHeight=this.Player.getComponent("Player").basicHeight-this.Camera.node.y,this.cameraMove=!0),e.setPosition(cc.v2(this.round%2==0?480:-480,i)),e.parent=this.node.getChildByName("Block"),e.zIndex=10,this.block=null,this.block=e,this.round+=1,this.level+=1,this.round>r.default._instance.GM_INFO.levelMax&&(r.default._instance.GM_INFO.levelMax=this.round),r.default._instance.CLICK_DATA.level=this.round,r.default._instance.CLICK_DATA.round=this.level,r.default._instance.LEVEL_INFO.layer+=r.default._instance.LEVEL_INFO.layerAdd,r.default._instance.LEVEL_INFO.speed<2&&(r.default._instance.LEVEL_INFO.speed+=r.default._instance.LEVEL_INFO.addSpeed),r.default._instance.LEVEL_INFO.reduceSpeed<=100&&(r.default._instance.LEVEL_INFO.reduceSpeed+=r.default._instance.LEVEL_INFO.jiansu),this.round==r.default._instance.LEVEL_INFO.round1?r.default._instance.LEVEL_INFO.jiansu=2:this.round==r.default._instance.LEVEL_INFO.round2?r.default._instance.LEVEL_INFO.jiansu=1:this.round==r.default._instance.LEVEL_INFO.round3&&(r.default._instance.LEVEL_INFO.jiansu=.5)}},e.prototype.createAir=function(){for(var t=0;t<100;t++){this.Ground.active=!1;var e=Math.floor(12*Math.random());this.round<=10&&5==e&&(e=Math.floor(6*Math.random()+6));var i=cc.instantiate(this.blockPrefab[e]),n=this.Player.getComponent("Player").basicHeight+r.default._instance.GM_INFO.blockMin;e>r.default._instance.GM_INFO.blockScale&&(n+=i.height+r.default._instance.GM_INFO.blockMax,r.default._instance.CLICK_DATA.height=!0),i.setPosition(cc.v2(this.round%2==0?480:-480,n)),i.parent=this.node.getChildByName("Block"),i.zIndex=10,this.round+=1,this.level+=1,this.round>r.default._instance.GM_INFO.levelMax&&(r.default._instance.GM_INFO.levelMax=this.round),r.default._instance.CLICK_DATA.level=this.round,r.default._instance.CLICK_DATA.round=this.level,r.default._instance.LEVEL_INFO.layer+=r.default._instance.LEVEL_INFO.layerAdd,r.default._instance.LEVEL_INFO.speed+=r.default._instance.LEVEL_INFO.addSpeed,r.default._instance.LEVEL_INFO.reduceSpeed<=80&&(r.default._instance.LEVEL_INFO.reduceSpeed+=r.default._instance.LEVEL_INFO.jiansu),this.round==r.default._instance.LEVEL_INFO.round1?r.default._instance.LEVEL_INFO.jiansu=2:this.round==r.default._instance.LEVEL_INFO.round2?r.default._instance.LEVEL_INFO.jiansu=1:this.round==r.default._instance.LEVEL_INFO.round3&&(r.default._instance.LEVEL_INFO.jiansu=.5)}},e.prototype.clearAir=function(){cc.director.loadScene("GameScene")},e.prototype.createCrackBlock=function(){if(this.interfere=!0,r.default._instance.CLICK_DATA.fake=this.interfere,this.round>1&&this.destroyBlock(!0),0==this.over&&1==this.begin){var t=cc.instantiate(this.blockPrefab[12]),e=this.Player.getComponent("Player").basicHeight;1==r.default._instance.CLICK_DATA.height&&(e+=t.height/2),t.setPosition(cc.v2(this.round%2==0?480:-480,e)),t.parent=this.node.getChildByName("CrackBlock"),t.zIndex=1}},e.prototype.destroyBlock=function(t){if(1==t){if(this.node&&this.node.getChildByName("CrackBlock")&&this.node.getChildByName("CrackBlock").children)for(var e=this.node.getChildByName("CrackBlock").children,i=0;i5?6==e.guide?(e.guide=5,e.round=2,e.startGuide(5,!0)):(e.round=1,e.startGuide(6,!0)):(e.round=0,e.startGuide(3,!0))}).delay(.5).call(function(){}).start()):r.default._instance.GM_INFO.life>0?(r.default._instance.GM_INFO.life-=1,this.getDevive(1)):(r.default._instance.GM_INFO.life=-1,this.getDevive(3))},e.prototype.getDevive=function(t){var e=this;this.round=0,r.default._instance.LEVEL_init(),this.topUI.getChildByName("star3").active,this.interfere=!1,r.default._instance.CLICK_DATA.fake=this.interfere,this.destroyBlock(!1);for(var i=this.node.getChildByName("CrackBlock").children,n=0;n500&&(o=(this.Player.y+500)/1e3*o),cc.tween(this.Player).to(o,{y:-500},{easing:"cubicIn"}).call(function(){e.Player.getComponent("Player").xinAction()}).delay(.5).call(function(){e.xinAction(),e.Player.getComponent("Player").init(),t>1?(e.Xin.parent.active=!0,e.Xin.getComponent(cc.Sprite).fillRange=0,cc.tween(e.Xin.getComponent(cc.Sprite)).to(t,{fillRange:1}).delay(.3).call(function(){e.Xin.parent.active=!1}).delay(0).call(function(){e.createBlock()}).start()):setTimeout(function(){e.createBlock()},1e3*(t+.5))}).start()},e.prototype.setData=function(){r.default._instance.CLICK_DATA.timer=this.countTime,r.default._instance.CLICK_DATA.level=this.round,r.default._instance.CLICK_DATA.round=this.level,s.GameTool.setGameData()},e.prototype.getMatchId=function(){var t=cc.sys.localStorage.getItem("matchId");if("undifend"==t||null==t)t=this.setMatchId();else if(1==this.containsNanana(t))t=this.setMatchId();else{var e=parseInt(t[10]);1==this.level&&(e+=1),t=t.slice(0,10)+e+"",r.default._instance.GM_INFO.matchId=t,cc.sys.localStorage.setItem("matchId",t)}return t},e.prototype.containsNanana=function(t){return/na/i.test(t)},e.prototype.setMatchId=function(){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e=[],i=0;i<10;i++){var n=Math.floor(Math.random()*t.length),o=t.charAt(n);e.push(o)}var a=e.join("")+1+"";return cc.sys.localStorage.setItem("matchNumber",1),cc.sys.localStorage.setItem("matchId",a),r.default._instance.GM_INFO.matchId=a,a},e.prototype.updateCountDownTime=function(){var t=this;this.countTime>0&&!r.default._instance.GM_INFO.probation&&(this.countTime-=1,this.time.string=this.getTimeMargin(this.countTime),this.countTime<5&&cc.tween(this.time.node).to(.25,{scale:1.5,color:cc.color(255,0,0)}).to(.25,{scale:1,color:cc.color(255,255,255)}).start(),this.countTime<=0&&(this.unschedule(this.updateCountDownTime),this.begin=!1,this.over=!0,this.overStop(),this.setRank(),setTimeout(function(){t.overOpen()},2e3)))},e.prototype.overStop=function(){this.Player.getComponent("Player").jumpAction&&this.Player.getComponent("Player").jumpAction.stop();for(var t=this.node.getChildByName("Block").children,e=0;e=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=r.property,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.start=function(){},e.prototype.reStart=function(){cc.director.loadScene("GameScene")},a([c(cc.Label)],e.prototype,"label",void 0),a([c],e.prototype,"text",void 0),a([s],e)}(cc.Component);i.default=l,cc._RF.pop()},{}],GameScene:[function(t,e,i){"use strict";cc._RF.push(e,"d14c5oIAFtGepa7XMccAMNQ","GameScene");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=r.property,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.start=function(){},a([c(cc.Label)],e.prototype,"label",void 0),a([c],e.prototype,"text",void 0),a([s],e)}(cc.Component);i.default=l,cc._RF.pop()},{}],GameTool:[function(t,e,i){"use strict";cc._RF.push(e,"35a73aTEIBAZoXKp/xutwzU","GameTool"),Object.defineProperty(i,"__esModule",{value:!0}),i.GameTool=void 0;var n=t("../GameData"),o=t("../crypto/HttpUtil"),a=t("./Storage"),r={_startTime:0,_endTime:0,_totalTime:0,getSeedRandom:function(t,e){e=e||1,t=t||0,n.default._instance.GM_INFO.currSeed=(9301*n.default._instance.GM_INFO.currSeed+49297)%233280;var i=t+n.default._instance.GM_INFO.currSeed/233280*(e-t);return Math.floor(i)},Authentication:function(){var t="user_"+n.default._instance.GM_INFO.gameId,e=JSON.parse(localStorage.getItem(t));if("undifend"==e||null==e||""==e){var i="http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+location.href;window.location.href=i}else a.StorageMessage.setStorage(t,e),n.default._instance.GM_INFO.userId=parseInt(e.userId)},setGameData:function(){n.default._instance.GAME_DATA=[],n.default._instance.GAME_DATA.push(n.default._instance.CLICK_DATA),n.default._instance.CLICK_init();var t={matchId:this.getMatchId(n.default._instance.GAME_DATA[0].round),data:n.default._instance.GAME_DATA};o.default.uploadUserLogData(t,function(){})},setRank:function(){var t={type:1,round:"1",score:n.default._instance.GM_INFO.score,success:n.default._instance.GM_INFO.success};o.default.rankData(1,function(){},t)},getMatchId:function(t){var e=cc.sys.localStorage.getItem("matchId");if("undifend"==e||null==e)e=this.setMatchId();else if(1==this.containsNanana(e))e=this.setMatchId();else{var i=parseInt(cc.sys.localStorage.getItem("matchNumber"));1==t&&(i+=1,cc.sys.localStorage.setItem("matchNumber",i)),e=e.slice(0,10)+i+"",n.default._instance.GM_INFO.matchId=e,cc.sys.localStorage.setItem("matchId",e)}return e},containsNanana:function(t){return/na/i.test(t)},setMatchId:function(){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e=[],i=0;i<10;i++){var o=Math.floor(Math.random()*t.length),a=t.charAt(o);e.push(a)}var r=e.join("")+1+"";return cc.sys.localStorage.setItem("matchNumber",1),cc.sys.localStorage.setItem("matchId",r),n.default._instance.GM_INFO.matchId=r,r},getSetScreenResolutionFlag:function(){var t=cc.winSize,e=t.width;return!(t.height/e>16.2/9)},setFit:function(){return r.getSetScreenResolutionFlag()},getTip:function(){switch(Math.floor(4*Math.random())+1){case 1:return"\u6839\u636e\u5c0f\u7403\u7684\u4f4d\u7f6e\uff0c\u5408\u7406\u6643\u52a8\u624b\u673a\uff0c\u786e\u4fdd\u5c0f\u7403\u4e0d\u6389\u51fa\u6728\u677f\u3002";case 2:return"\u6839\u636e\u5c0f\u7403\u4f4d\u7f6e\u63a7\u5236\u6643\u52a8\u5e45\u5ea6\uff0c\u8fc7\u5927\u6216\u8fc7\u5c0f\u90fd\u4e0d\u662f\u4e2a\u597d\u9009\u62e9\u3002";case 3:return"\u4e0d\u8981\u88ab\u5929\u4e0a\u6389\u843d\u7684\u969c\u788d\u5413\u5230\uff0c\u6709\u65f6\u5019\u5b83\u53cd\u800c\u4f1a\u5e2e\u4f60\u4fdd\u6301\u5e73\u8861\u3002";case 4:return"\u5c1d\u8bd5\u7740\u9876\u5f00\u6389\u843d\u7684\u969c\u788d\uff0c\u662f\u4e2a\u5f88\u9177\u7684\u73a9\u6cd5\u3002"}},beginTiming:function(){this._startTime=(new Date).getTime()},endTiming:function(){this._endTime=(new Date).getTime()},updateScoreTime:function(){var t=(new Date).getTime(),e=t-this._startTime;(e<0||e>500)&&(e=Math.round(1e3*cc.director.getAnimationInterval())),this._endTime+=e/1e3,this._totalTime=this._endTime.toFixed(2),n.default._instance.GM_INFO.currScore=this._totalTime,this._startTime=t},countDown:function(){this._endTime=(new Date).getTime(),this._totalTime=Math.floor((this._endTime-this._startTime)/1e3),n.default._instance.GM_INFO.remainingTime=n.default._instance.GM_INFO.totalTime-this._totalTime},getGameInfo:function(){return!1},reset:function(){cc.director.loadScene("LoadScene")},setGameInfo:function(){},getTimeMargin:function(t){var e=t,i=Math.floor(e/3600),n=e-3600*i,o=Math.floor(n/60);return"\u5269\u4f59:"+i+":"+o+":"+(e-3600*i-60*o)},getTimeMargin2:function(t){var e=t,i=null,n=null,o=Math.floor(e/3600),a=e-3600*o;return(i=Math.floor(a/60))<10&&(i="0"+i),(n=e-3600*o-60*i)<10&&(n="0"+n),"\u5269\u4f59:"+i+":"+n},getTime:function(t){var e=null,i=null;return i=t-60*(e=Math.floor(t/60)),e<10&&(e="0"+e),i<10&&(i="0"+i),e+":"+i},getNumber:function(t,e){var i=e-3;return t>Math.pow(1e3,8)*Math.pow(10,i)?t/Math.pow(1e3,8)<100?Math.floor(t/Math.pow(1e3,8)*10)/10+"S":Math.floor(t/Math.pow(1e3,8))+"S":t>Math.pow(1e3,7)*Math.pow(10,i)?t/Math.pow(1e3,7)<100?Math.floor(t/Math.pow(1e3,7)*10)/10+"s":Math.floor(t/Math.pow(1e3,7))+"s":t>Math.pow(1e3,6)*Math.pow(10,i)?t/Math.pow(1e3,6)<100?Math.floor(t/Math.pow(1e3,6)*10)/10+"Q":Math.floor(t/Math.pow(1e3,6))+"Q":t>Math.pow(1e3,5)*Math.pow(10,i)?t/Math.pow(1e3,5)<100?Math.floor(t/Math.pow(1e3,5)*10)/10+"q":Math.floor(t/Math.pow(1e3,5))+"q":t>Math.pow(1e3,4)*Math.pow(10,i)?t/Math.pow(1e3,4)<100?Math.floor(t/Math.pow(1e3,4)*10)/10+"t":Math.floor(t/Math.pow(1e3,4))+"t":t>Math.pow(1e3,3)*Math.pow(10,i)?t/Math.pow(1e3,3)<100?Math.floor(t/Math.pow(1e3,3)*10)/10+"b":Math.floor(t/Math.pow(1e3,3))+"b":t>Math.pow(1e3,2)*Math.pow(10,i)?t/Math.pow(1e3,2)<100?Math.floor(t/Math.pow(1e3,2)*10)/10+"m":Math.floor(t/Math.pow(1e3,2))+"m":t>Math.pow(1e3,1)*Math.pow(10,i)?t/Math.pow(1e3,1)<100?Math.floor(t/Math.pow(1e3,1)*10)/10+"k":Math.floor(t/Math.pow(1e3,1))+"k":Math.floor(t/Math.pow(1e3,0))+""},begainTiming:function(){this._startTime=(new Date).getTime()},endTiming2:function(){var t=(new Date).getTime();this._endTime=t,this._totalTime=t-this._startTime},getScoreTime:function(){var t=(new Date).getTime(),e=t-this._startTime;(e<0||e>500)&&(e=Math.round(1e3*cc.director.getAnimationInterval())),n.default._instance.GM_INFO.currScore+=e,this._startTime=t},getFormatTime:function(t){var e=new Date;e.setTime(t);var i=e.getMilliseconds(),n=null,o=null,a=null;return(n=Math.floor(i/10)%100)<10&&(n="0"+n),(o=e.getSeconds())<10&&(o="0"+o),(a=e.getMinutes())<10&&(a="0"+a),(a+=":")+(o+=":")+n},pushLister:function(){},removeAllLister:function(){}};i.GameTool=r,cc._RF.pop()},{"../GameData":"GameData","../crypto/HttpUtil":"HttpUtil","./Storage":"Storage"}],HttpUtil:[function(t,e,i){"use strict";cc._RF.push(e,"9ed319W0ElIkJ/97wj9KJh8","HttpUtil");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r},r=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,a){function r(t){try{c(n.next(t))}catch(e){a(e)}}function s(t){try{c(n.throw(t))}catch(e){a(e)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,s)}c((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var i,n,o,a,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,n=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){r=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=(r.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=null,e.itemIndex=0,e}return o(e,t),e.prototype.dataChanged=function(){this.data.name.length>7&&(this.data.name=this.data.name.substring(0,7)+"..."),this.node.getChildByName("rankLab").getComponent(cc.Label).string=this.data.rank+"",this.node.getChildByName("nameLab").getComponent(cc.Label).string=this.data.name+"",this.node.getChildByName("totalLab").getComponent(cc.Label).string=this.data.total+"",this.node.getChildByName("rank").getChildByName("one").active=!1,this.node.getChildByName("rank").getChildByName("two").active=!1,this.node.getChildByName("rank").getChildByName("three").active=!1,1==this.data.rank?(this.node.getChildByName("rank").getChildByName("one").active=!0,this.node.getChildByName("rankLab").active=!1):2==this.data.rank?(this.node.getChildByName("rank").getChildByName("two").active=!0,this.node.getChildByName("rankLab").active=!1):3==this.data.rank?(this.node.getChildByName("rank").getChildByName("three").active=!0,this.node.getChildByName("rankLab").active=!1):this.node.getChildByName("rankLab").active=!0,this.setPic()},e.prototype.setPic=function(){var t=this,e=this.data.pic;cc.assetManager.loadRemote(e,{ext:".jpg"},function(e,i){i&&(t.node.getChildByName("pic").getChildByName("pic").getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(i))})},a([s],e)}(cc.Component));i.default=c,cc._RF.pop()},{}],List:[function(t,e,i){"use strict";cc._RF.push(e,"d5421HgLShFKIjj5f18m1mi","List");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0}),i.StartAxisType=i.ListType=void 0;var r,s,c=t("./ItemRender"),l=cc._decorator,h=l.ccclass,u=l.property;(function(t){t[t.Horizontal=1]="Horizontal",t[t.Vertical=2]="Vertical",t[t.Grid=3]="Grid"})(r=i.ListType||(i.ListType={})),function(t){t[t.Horizontal=1]="Horizontal",t[t.Vertical=2]="Vertical"}(s=i.StartAxisType||(i.StartAxisType={}));var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.itemRender=null,e.type=r.Vertical,e.startAxis=s.Horizontal,e.spaceX=0,e.spaceY=0,e.padding_top=0,e.padding_buttom=0,e.padding_left=0,e._padding=0,e.padding_right=0,e.scrollView=null,e.content=null,e.itemDataList=[],e.spawnCount=0,e.itemList=[],e.itemHeight=0,e.itemWidth=0,e.itemPool=[],e.halfScrollView=0,e.lastContentPosX=0,e.lastContentPosY=0,e.gridRow=0,e.gridCol=0,e.updateTimer=0,e.updateInterval=.1,e.bScrolling=!1,e.updateFun=function(){},e}return o(e,t),e.prototype.onLoad=function(){this.itemHeight=this.itemRender.height,this.itemWidth=this.itemRender.width,this.scrollView=this.node.getComponent(cc.ScrollView),this.content=this.scrollView.content,this.content.anchorX=0,this.content.anchorY=1,this.content.removeAllChildren(),this.scrollView.node.on("scrolling",this.onScrolling,this)},e.prototype.setData=function(t){this.itemDataList=t.slice(),this.updateContent()},e.prototype.countListParam=function(){var t=this.itemDataList.length;this.type==r.Vertical?(this.scrollView.horizontal=!1,this.scrollView.vertical=!0,this.content.width=this.content.parent.width,this.content.height=t*this.itemHeight+(t-1)*this.spaceY+this.padding_top+this.padding_buttom,this.spawnCount=Math.round(this.scrollView.node.height/(this.itemHeight+this.spaceY))+5,this.halfScrollView=this.scrollView.node.height/2+this.itemHeight/2+this.spaceY,this.updateFun=this.updateV):this.type==r.Horizontal?(this.scrollView.horizontal=!0,this.scrollView.vertical=!1,this.content.width=t*this.itemWidth+(t-1)*this.spaceX+this.padding_left+this.padding_right,this.content.height=this.content.parent.height,this.spawnCount=Math.round(this.scrollView.node.width/(this.itemWidth+this.spaceX))+2,this.halfScrollView=this.scrollView.node.width/2+this.itemWidth/2+this.spaceX,this.updateFun=this.udpateH):this.type==r.Grid&&(this.startAxis==s.Vertical?(this.scrollView.horizontal=!1,this.scrollView.vertical=!0,this.content.width=this.content.parent.width,this.padding_left+this.padding_right+this.itemWidth+this.spaceX>this.content.width&&(this.padding_left=0,this.padding_right=0,console.error("padding_left\u6216padding_right\u8fc7\u5927")),this.gridCol=Math.floor((this.content.width-this.padding_left-this.padding_right)/(this.itemWidth+this.spaceX)),this.gridRow=Math.ceil(t/this.gridCol),this.content.height=this.gridRow*this.itemHeight+(this.gridRow-1)*this.spaceY+this.padding_top+this.padding_buttom,this.spawnCount=Math.round(this.scrollView.node.height/(this.itemHeight+this.spaceY))*this.gridCol+2*this.gridCol,this.halfScrollView=this.scrollView.node.height/2+this.itemHeight/2+this.spaceY,this.updateFun=this.updateGrid_V):this.startAxis==s.Horizontal&&(this.scrollView.horizontal=!0,this.scrollView.vertical=!1,this.content.height=this.content.parent.height,this.padding_top+this.padding_buttom+this.itemHeight+this.spaceY>this.content.height&&(this.padding_top=0,this.padding_buttom=0,console.error("padding_top\u6216padding_buttom\u8fc7\u5927")),this.gridRow=Math.floor((this.content.height-this.padding_top-this.padding_buttom)/(this.itemHeight+this.spaceY)),this.gridCol=Math.ceil(t/this.gridRow),this.content.width=this.gridCol*this.itemWidth+(this.gridCol-1)*this.spaceX+this.padding_left+this.padding_right,this.spawnCount=Math.round(this.scrollView.node.width/(this.itemWidth+this.spaceX))*this.gridRow+2*this.gridRow,this.halfScrollView=this.scrollView.node.width/2+this.itemWidth/2+this.spaceX,this.updateFun=this.updateGrid_H))},e.prototype.createList=function(t,e){this.itemDataList.length>this.spawnCount&&t+this.spawnCount-1>=this.itemDataList.length?(t=this.itemDataList.length-this.spawnCount,e=this.scrollView.getMaxScrollOffset()):this.itemDataList.length<=this.spawnCount&&(t=0);for(var i=0;ithis.itemDataList.length-t&&((n=this.itemList.pop()).removeFromParent(),this.itemPool.push(n))}this.scrollView.scrollToOffset(e)},e.prototype.getItem=function(){return 0==this.itemPool.length?cc.instantiate(this.itemRender):this.itemPool.pop()},e.prototype.update=function(t){0!=this.bScrolling&&(this.updateTimer+=t,this.updateTimerthis.lastContentPosY,o=(this.itemHeight+this.spaceY)*e.length,a=0;ai&&t.y-o-this.padding_buttom>-this.content.height){var s=(l=t.getComponent(c.default)).itemIndex+e.length;l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.y=t.y-o}}else if(r.y<-i&&t.y+o+this.padding_top<0){var l;s=(l=t.getComponent(c.default)).itemIndex-e.length,l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.y=t.y+o}}this.lastContentPosY=this.scrollView.content.y},e.prototype.udpateH=function(){for(var t,e=this.itemList,i=this.halfScrollView,n=this.scrollView.content.x>this.lastContentPosX,o=(this.itemWidth+this.spaceX)*e.length,a=0;ai&&t.x-o-this.padding_left>0){var s=(l=t.getComponent(c.default)).itemIndex-e.length;l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.x=t.x-o}}else if(r.x<-i&&t.x+o+this.padding_rightthis.lastContentPosY,o=(this.itemHeight+this.spaceY)*(this.spawnCount/this.gridCol),a=0;ai&&t.y-o-this.padding_buttom>-this.content.height){var s=(l=t.getComponent(c.default)).itemIndex+this.spawnCount/this.gridCol*this.gridCol;null!=this.itemDataList[s]?(t.y=t.y-o,l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.opacity=255):(t.y=t.y-o,l.itemIndex=s,t.opacity=0)}}else if(r.y<-i&&t.y+o+this.padding_top<0){var l;s=(l=t.getComponent(c.default)).itemIndex-this.spawnCount/this.gridCol*this.gridCol,null!=this.itemDataList[s]?(t.y=t.y+o,l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.opacity=255):(t.y=t.y+o,l.itemIndex=s,t.opacity=0)}}this.lastContentPosY=this.scrollView.content.y},e.prototype.updateGrid_H=function(){for(var t,e=this.itemList,i=this.halfScrollView,n=this.scrollView.content.x>this.lastContentPosX,o=(this.itemWidth+this.spaceX)*(this.spawnCount/this.gridRow),a=0;ai&&t.x-o-this.padding_left>0){var s=(l=t.getComponent(c.default)).itemIndex-this.spawnCount/this.gridRow*this.gridRow;null!=this.itemDataList[s]?(t.x=t.x-o,l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.opacity=255):(t.x=t.x-o,l.itemIndex=s,t.opacity=0)}}else if(r.x<-i&&t.x+o+this.padding_right=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./tool/AudioManager"),c=t("./tool/GameTool"),l=cc._decorator,h=l.ccclass,u=l.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.start=function(){c.GameTool.Authentication()},e.prototype.click=function(){s.default._instance.playMusicGame(),r.default._instance.GM_INFO.probation?cc.director.loadScene("GuideScene"):cc.director.loadScene("GameScene")},e.prototype.openRank=function(){s.default._instance.playMusicGame(),cc.director.loadScene("RankScene")},a([u(cc.Label)],e.prototype,"label",void 0),a([u],e.prototype,"text",void 0),a([h],e)}(cc.Component);i.default=d,cc._RF.pop()},{"./GameData":"GameData","./tool/AudioManager":"AudioManager","./tool/GameTool":"GameTool"}],Notification:[function(t,e,i){"use strict";cc._RF.push(e,"bc645/UI1FCCZN1kaSNle9o","Notification"),Object.defineProperty(i,"__esModule",{value:!0}),i.Notification=void 0;i.Notification={_eventMap:[],on:function(t,e,i){void 0===this._eventMap[t]&&(this._eventMap[t]=[]),this._eventMap[t].push({callback:e,target:i})},emit:function(t,e){var i=this._eventMap[t];if(void 0!==i)for(var n=0;n=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./GameManager"),c=t("./tool/AudioManager"),l=t("./tool/Notification"),h=cc._decorator,u=h.ccclass,d=h.property,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.add=null,e.plist=null,e}return o(e,t),e.prototype.start=function(){this.init()},e.prototype.init=function(){this.jumpState=0,this.jumpHeight=this.node.y,this.basicHeight=this.node.y,this.up=!0,this.double=!1,this.death=!1,this.jumpAction=null,this.block=null,this.interfere=!1,this.jumpPause=!0},e.prototype.jump=function(){var t=this;if(this.jumpState<2){if(0==this.jumpState)0==this.death&&this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",!1);else if((1==this.jumpState||this.node.y>this.jumpHeight+r.default._instance.GM_INFO.jumpHeight-5)&&0==this.death){if(s.default._instance.guide>0&&s.default._instance.guide<3)return;this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",!1)}setTimeout(function(){if(0==t.jumpState){if(1==t.jumpPause)return;t.block&&("block13"!=t.block.name?t.block.getComponent("Block").hide():(t.block.active=!1,t.jumpPause=!0),t.block=null),1==s.default._instance.guide&&(s.default._instance.guide=2,s.default._instance.startGuide(2,!1)),r.default._instance.CLICK_DATA.jumps=1,c.default._instance.playJump(),t.jumpState+=1,t.up=!0,l.Notification.emit("showGround",t.node.y),t.jumpAction=cc.tween(t.node).to(r.default._instance.GM_INFO.jumpUpTime,{position:cc.v3(0,t.jumpHeight+r.default._instance.GM_INFO.jumpHeight,0)},{easing:"quadOut"}).call(function(){t.up=!1,t.jumpState=-1,t.node.y,t.jumpHeight}).to(r.default._instance.GM_INFO.jumpDownTime,{position:cc.v3(0,t.jumpHeight,0)},{easing:"cubicIn"}).call(function(){t.jumpHeight=t.node.y,t.jumpState=-1,t.up=!0}).start()}else if(1==t.jumpState||t.node.y>t.jumpHeight+r.default._instance.GM_INFO.jumpHeight-15){if(s.default._instance.guide>0&&s.default._instance.guide<3)return;6==s.default._instance.guide&&(t.jumpPause=!0,s.default._instance.startGuide(6,!1)),t.jumpAction&&t.jumpAction.stop(),c.default._instance.playJump(),r.default._instance.CLICK_DATA.jumps=2,t.jumpState=2,t.up=!0,t.jumpAction=cc.tween(t.node).to(r.default._instance.GM_INFO.jumpUpTime,{position:cc.v3(0,t.node.y+r.default._instance.GM_INFO.jumpHeight,0)},{easing:"quadOut"}).call(function(){t.up=!1}).to(1.5*r.default._instance.GM_INFO.jumpDownTime,{position:cc.v3(0,t.jumpHeight,0)},{easing:"cubicIn"}).call(function(){t.jumpState=-1,t.jumpHeight=t.node.y,t.up=!0}).start()}},100)}},e.prototype.onCollisionEnter=function(t){if(!s.default._instance||1!=s.default._instance.over){var e=t.name.length,i=6;"Ground"!=t.node.name&&(-1==s.default._instance.guide?t.node.getComponent("Block").num>9&&(i=7):i=7);var n=t.name.substring(i,e);if(""==n&&(this.node.y<=t.node.y&&1==this.up&&0==this.death?(this.jumpAction&&this.jumpAction.stop(),this.jumpState=-1,c.default._instance.playGround(),console.log("\u6b7b\u4ea11"),this.gameDeath()):"Ground"==t.node.name&&0==this.death&&(this.jumpState=-1,console.log("\u6b7b\u4ea12"),this.gameDeath())),""==n){if(1==this.death)return void console.log("\u5df2\u7ecf\u6b7b\u4ea1");var o=Math.abs(this.node.y-t.node.y),a=t.node.width/2,l=Math.abs(this.node.x-t.node.x)/a;1==this.up?(console.log("\u6b7b\u4ea14"),c.default._instance.playGround(),this.gameDeath()):100*l=20||100*l>r.default._instance.GM_INFO.distanceMax?(console.log("\u6b7b\u4ea13","\u843d\u5dee:",o,"\u72b6\u6001:",this.up),c.default._instance.playGround(),this.gameDeath()):(console.log("\u767e\u5206\u6bd4:",100*l+"%"),this.success(t,100*l))}}},e.prototype.success=function(t,e){if(this.jumpPause=!0,-1!=s.default._instance.guide)if(this.basicHeight=this.node.y,t.node.stopAllActions(),3==s.default._instance.guide||4==s.default._instance.guide)s.default._instance.startGuide(4,!1),4==s.default._instance.guide&&(s.default._instance.guide=5);else if(5==s.default._instance.guide){this.jumpPause=!0;var i=s.default._instance.Tip.getChildByName("good");cc.tween(i).to(.3,{opacity:255,scale:1}).delay(.5).to(.2,{opacity:0}).call(function(){s.default._instance.startGuide(5,!1)}).start()}else 7==s.default._instance.guide?s.default._instance.startGuide(8,!1):8==s.default._instance.guide&&(this.jumpPause=!0,i=s.default._instance.Tip.getChildByName("perfet"),cc.tween(i).to(.3,{opacity:255,scale:1}).delay(.5).to(.2,{opacity:0}).call(function(){s.default._instance.startGuide(9,!1)}).start());var n=parseInt(10*e+"")/10;r.default._instance.CLICK_DATA.percent=n,s.default._instance&&s.default._instance.destroyBlock(!0),this.add.active=!0,this.add.opacity=0;var o=1;if(e<=10?o=3:e<=20&&(o=2),r.default._instance.CLICK_DATA.accuracy=o,this.add.getChildByName("icon").getComponent(cc.Sprite).spriteFrame=this.plist.getSpriteFrames()[o],this.add.getChildByName("jia").getComponent(cc.Sprite).spriteFrame=this.plist.getSpriteFrames()[o+3],this.addAction(),this.node.getChildByName("guang").active=!0,this.node.getChildByName("guang").getComponent(sp.Skeleton).setAnimation(0,"double_1",!1),this.jumpAction&&this.jumpAction.stop(),0==this.death&&this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",!1),this.basicHeight=this.node.y,o>1){c.default._instance.playPz(),0==this.double?(this.double=!0,r.default._instance.LEVEL_INFO.doubleHit=1.05):r.default._instance.LEVEL_INFO.doubleHit+=r.default._instance.LEVEL_INFO.doubleAdd;var a=20*(r.default._instance.LEVEL_INFO.doubleHit-1);r.default._instance.CLICK_DATA.combo=parseInt(a+"")}else c.default._instance.playLuo(),this.double=!1,r.default._instance.CLICK_DATA.combo=0;this.block=t.node,"block13"!=this.block.name&&(this.block.getComponent("Block").setScore(o),l.Notification.emit("setData",null)),setTimeout(function(){-1==s.default._instance.guide&&(l.Notification.emit("createBlock",null),0==r.default._instance.LEVEL_INFO.doubleSuccess&&setTimeout(function(){l.Notification.emit("createCrackBlock",null)},100))},10),o>1&&0!=r.default._instance.LEVEL_INFO.doubleSuccess?r.default._instance.LEVEL_INFO.doubleSuccess-=1:0!=r.default._instance.LEVEL_INFO.doubleSuccess&&r.default._instance.LEVEL_INFO.doubleSuccess<3&&(r.default._instance.LEVEL_INFO.doubleSuccess=3),0==r.default._instance.LEVEL_INFO.doubleSuccess||(s.default._instance.interfere=!1,r.default._instance.CLICK_DATA.fake=s.default._instance.interfere),this.jumpState=0,this.up=!0,this.node.y=t.node.y-3+t.node.height/2,this.jumpHeight=this.node.y},e.prototype.gameDeath=function(){this.jumpPause=!0,r.default._instance.GM_INFO.probation?(this.death=!0,6==s.default._instance.guide&&s.default._instance.tipHide("tip4",null),this.jumpAction&&this.jumpAction.stop(),this.jumpState=-1,l.Notification.emit("death",!0)):(r.default._instance.CLICK_DATA.combo=0,r.default._instance.CLICK_DATA.accuracy=0,r.default._instance.CLICK_DATA.percent=-1,l.Notification.emit("setData",null),this.double=!1,r.default._instance.LEVEL_INFO.doubleSuccess=3,this.death=!0,this.jumpAction&&this.jumpAction.stop(),this.jumpState=-1,l.Notification.emit("death",!1))},e.prototype.xinAction=function(){if(r.default._instance.GM_INFO.life>=0){var t=this.node.getChildByName("xin");t.y=120,cc.tween(t).to(.2,{opacity:255,y:t.y+50}).delay(.5).to(.3,{opacity:0,y:t.y+100}).call(function(){}).start()}},e.prototype.addAction=function(){var t=this;this.add.y=120,cc.tween(this.add).to(.2,{opacity:255,y:this.add.y+50}).delay(.5).to(.3,{opacity:0,y:this.add.y+100}).call(function(){t.add.active=!1}).start()},e.prototype.update=function(){},a([d(cc.Node)],e.prototype,"add",void 0),a([d(cc.SpriteAtlas)],e.prototype,"plist",void 0),a([u],e)}(cc.Component);i.default=p,cc._RF.pop()},{"./GameData":"GameData","./GameManager":"GameManager","./tool/AudioManager":"AudioManager","./tool/Notification":"Notification"}],RankManager:[function(t,e,i){"use strict";cc._RF.push(e,"9c7ccNc8VlJ9Jy7qfTPoy0E","RankManager");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./ListView/List"),c=t("./crypto/HttpUtil"),l=cc._decorator,h=l.ccclass,u=l.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.Player=null,e.selfNode=null,e.phone=null,e}return o(e,t),e.prototype.onLoad=function(){this.init()},e.prototype.init=function(){this.rankList=cc.find("ScrollView",this.node).getComponent(s.default),this.Player.getChildByName("rank").active=!1,this.listData=[],this.selfData=null,this.rankNumber=100,this.rankTotal=100,this.selfNode.opacity=0},e.prototype.start=function(){this.Player.active=!1,this.getRank()},e.prototype.getRank=function(){c.default.rankData(2,this.getRankData.bind(this),{page:1,pageSize:100})},e.prototype.getRankData=function(t){if(t){this.listData=t.data.list,this.selfData=t.data.info;for(var e=[],i=!1,n=0;n<=this.listData.length-1;n++)e.push({rank:n+1,name:this.listData[n].nickName,total:this.listData[n].score,pic:this.listData[n].pic}),r.default._instance.GM_INFO.userId==this.listData[n].userId&&(i=!0,this.rankNumber=n,this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string=n+1+""),n==this.listData.length-1&&0==i&&(this.rankNumber=101,this.listData.length>=99?this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string="99+":this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string="\u672a\u6392\u540d");0==this.listData.length&&(this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string="\u672a\u6392\u540d"),this.rankList.setData(e),this.selfData.nickName.length>6&&(this.selfData.nickName=this.selfData.nickName.substring(0,6)+"..."),this.selfNode.getChildByName("nameLab").getComponent(cc.Label).string=this.selfData.nickName,this.selfData.score&&(this.selfNode.getChildByName("totalLab").getComponent(cc.Label).string=this.selfData.score),this.setPic(this.selfData.pic),"1"==this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string?this.selfNode.getChildByName("rank").getChildByName("one").active=!0:"2"==this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string?this.selfNode.getChildByName("rank").getChildByName("two").active=!0:"3"==this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string&&(this.selfNode.getChildByName("rank").getChildByName("three").active=!0),this.selfNode.opacity=255,0==this.selfData.score&&(this.selfNode.opacity=0)}},e.prototype.backClick=function(){cc.director.loadScene("LoadScene")},e.prototype.playerAction=function(){var t=this;this.Player.getChildByName("rank").active=!1;var e=1;this.tween=cc.tween(this.Player).to(2,{position:cc.v3(210,485,0)}).call(function(){t.Player.getChildByName("rank").active=!0,t.Player.getChildByName("rank").getChildByName("number").getComponent(cc.Label).string=parseInt(100*e+"")+"%"}).start(),e=this.listData.length>0?this.listData.length>=99?this.rankNumber>=99?this.getRankRandom():(this.listData.length-this.rankNumber)/this.listData.length:this.rankNumber>99?0:(this.listData.length-this.rankNumber)/this.listData.length:0,setTimeout(function(){t.tween&&t.tween.stop(),t.Player&&(t.Player.getChildByName("rank").active=!0,t.Player.getChildByName("rank").getChildByName("number").getComponent(cc.Label).string=parseInt(100*e+"")+"%")},2e3*e)},e.prototype.getRankRandom=function(){var t=(49*Math.random()+1)/100,e=cc.sys.localStorage.getItem("matchNumber");return null!=e&&null!=e||(t=0),t},e.prototype.setPic=function(t){var e=this;this.phone.node.parent.getChildByName("icon").active=!1,this.phone.node.active=!1,this.Player.active=!0,this.Player.opacity=0,this.Player.getChildByName("mask").getChildByName("icon").active=!1,this.Player.getChildByName("mask").getChildByName("phone").active=!1,fetch(t).then(function(t){return t.headers.get("Content-Length")}).then(function(t){"5093"==t&&(e.phone.node.parent.getChildByName("icon").active=!0,e.Player.getChildByName("mask").getChildByName("icon").active=!0)}).catch(function(t){console.error("Error fetching X-Info:",t)});var i=this;cc.assetManager.loadRemote(t,{ext:".png"},function(t,e){i.Player.opacity=255,e?(i.phone.node.active=!0,i.phone.spriteFrame=new cc.SpriteFrame(e),i.Player.getChildByName("mask").getChildByName("icon").active=!1,i.Player.getChildByName("mask").getChildByName("phone").active=!0,i.Player.getChildByName("mask").getChildByName("phone").getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(e),setTimeout(function(){i.playerAction()},500)):(i.Player.getChildByName("mask").getChildByName("icon").active=!0,setTimeout(function(){i.playerAction()},500))})},a([u(cc.Node)],e.prototype,"Player",void 0),a([u(cc.Node)],e.prototype,"selfNode",void 0),a([u(cc.Sprite)],e.prototype,"phone",void 0),a([h],e)}(cc.Component);i.default=d,cc._RF.pop()},{"./GameData":"GameData","./ListView/List":"List","./crypto/HttpUtil":"HttpUtil"}],Storage:[function(t,e,i){"use strict";cc._RF.push(e,"e4f51plCa5CE6sxRV+Bx5GJ","Storage"),Object.defineProperty(i,"__esModule",{value:!0}),i.StorageMessage=void 0;var n={getStorage:function(t){var e=null;return cc.sys.localStorage.getItem(t)&&(e=cc.sys.localStorage.getItem(t)),e&&(e=JSON.parse(e)),e},setStorage:function(t,e){var i=JSON.stringify(e);cc.sys.localStorage.setItem(t,i)},removeStorage:function(t){cc.sys.localStorage.getItem(t)&&cc.sys.localStorage.removeItem(t)}};i.StorageMessage=n,cc._RF.pop()},{}],"crypto-js.min":[function(t,e,i){"use strict";cc._RF.push(e,"e64e1qXyT9CV6s0gDQdj/ed","crypto-js.min"),function(t,n){"object"==typeof i?e.exports=i=n():"function"==typeof define&&define.amd?define([],n):(void 0).CryptoJS=n()}(0,function(){var t,e,i,n,o,a,r,s=s||function(t){var e=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),i={},n=i.lib={},o=n.Base={extend:function(t){var i=e(this);return t&&i.mixIn(t),i.hasOwnProperty("init")&&this.init!==i.init||(i.init=function(){i.$super.init.apply(this,arguments)}),i.init.prototype=i,i.$super=this,i},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=n.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||s).stringify(this)},concat:function(t){var e=this.words,i=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var a=0;a>>2]>>>24-a%4*8&255;e[n+a>>>2]|=r<<24-(n+a)%4*8}else for(a=0;a>>2]=i[a>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var i,n=[],o=function(e){e=e;var i=987654321,n=4294967295;return function(){var o=((i=36969*(65535&i)+(i>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return o/=4294967296,(o+=.5)*(t.random()>.5?1:-1)}},r=0;r>>2]>>>24-o%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new a.init(i,e/2)}},c=r.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new a.init(i,e)}},l=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},h=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i=this._data,n=i.words,o=i.sigBytes,r=this.blockSize,s=o/(4*r),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*r,l=t.min(4*c,o);if(c){for(var h=0;h>>6-r%4*2;o[a>>>2]|=(s|c)<<24-a%4*8,a++}return i.create(o,a)}var e=s,i=e.lib.WordArray;e.enc.Base64={stringify:function(t){var e=t.words,i=t.sigBytes,n=this._map;t.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(e[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|e[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var i=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>32-a)+e}function i(t,e,i,n,o,a,r){var s=t+(e&n|i&~n)+o+r;return(s<>>32-a)+e}function n(t,e,i,n,o,a,r){var s=t+(e^i^n)+o+r;return(s<>>32-a)+e}function o(t,e,i,n,o,a,r){var s=t+(i^(e|~n))+o+r;return(s<>>32-a)+e}var a=s,r=a.lib,c=r.WordArray,l=r.Hasher,h=a.algo,u=[];!function(){for(var e=0;e<64;e++)u[e]=4294967296*t.abs(t.sin(e+1))|0}();var d=h.MD5=l.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,a){for(var r=0;r<16;r++){var s=a+r,c=t[s];t[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var l=this._hash.words,h=t[a+0],d=t[a+1],p=t[a+2],f=t[a+3],y=t[a+4],_=t[a+5],g=t[a+6],m=t[a+7],v=t[a+8],C=t[a+9],w=t[a+10],b=t[a+11],B=t[a+12],k=t[a+13],N=t[a+14],I=t[a+15],M=l[0],S=l[1],L=l[2],O=l[3];M=e(M,S,L,O,h,7,u[0]),O=e(O,M,S,L,d,12,u[1]),L=e(L,O,M,S,p,17,u[2]),S=e(S,L,O,M,f,22,u[3]),M=e(M,S,L,O,y,7,u[4]),O=e(O,M,S,L,_,12,u[5]),L=e(L,O,M,S,g,17,u[6]),S=e(S,L,O,M,m,22,u[7]),M=e(M,S,L,O,v,7,u[8]),O=e(O,M,S,L,C,12,u[9]),L=e(L,O,M,S,w,17,u[10]),S=e(S,L,O,M,b,22,u[11]),M=e(M,S,L,O,B,7,u[12]),O=e(O,M,S,L,k,12,u[13]),L=e(L,O,M,S,N,17,u[14]),M=i(M,S=e(S,L,O,M,I,22,u[15]),L,O,d,5,u[16]),O=i(O,M,S,L,g,9,u[17]),L=i(L,O,M,S,b,14,u[18]),S=i(S,L,O,M,h,20,u[19]),M=i(M,S,L,O,_,5,u[20]),O=i(O,M,S,L,w,9,u[21]),L=i(L,O,M,S,I,14,u[22]),S=i(S,L,O,M,y,20,u[23]),M=i(M,S,L,O,C,5,u[24]),O=i(O,M,S,L,N,9,u[25]),L=i(L,O,M,S,f,14,u[26]),S=i(S,L,O,M,v,20,u[27]),M=i(M,S,L,O,k,5,u[28]),O=i(O,M,S,L,p,9,u[29]),L=i(L,O,M,S,m,14,u[30]),M=n(M,S=i(S,L,O,M,B,20,u[31]),L,O,_,4,u[32]),O=n(O,M,S,L,v,11,u[33]),L=n(L,O,M,S,b,16,u[34]),S=n(S,L,O,M,N,23,u[35]),M=n(M,S,L,O,d,4,u[36]),O=n(O,M,S,L,y,11,u[37]),L=n(L,O,M,S,m,16,u[38]),S=n(S,L,O,M,w,23,u[39]),M=n(M,S,L,O,k,4,u[40]),O=n(O,M,S,L,h,11,u[41]),L=n(L,O,M,S,f,16,u[42]),S=n(S,L,O,M,g,23,u[43]),M=n(M,S,L,O,C,4,u[44]),O=n(O,M,S,L,B,11,u[45]),L=n(L,O,M,S,I,16,u[46]),M=o(M,S=n(S,L,O,M,p,23,u[47]),L,O,h,6,u[48]),O=o(O,M,S,L,m,10,u[49]),L=o(L,O,M,S,N,15,u[50]),S=o(S,L,O,M,_,21,u[51]),M=o(M,S,L,O,B,6,u[52]),O=o(O,M,S,L,f,10,u[53]),L=o(L,O,M,S,w,15,u[54]),S=o(S,L,O,M,d,21,u[55]),M=o(M,S,L,O,v,6,u[56]),O=o(O,M,S,L,I,10,u[57]),L=o(L,O,M,S,g,15,u[58]),S=o(S,L,O,M,k,21,u[59]),M=o(M,S,L,O,y,6,u[60]),O=o(O,M,S,L,b,10,u[61]),L=o(L,O,M,S,p,15,u[62]),S=o(S,L,O,M,C,21,u[63]),l[0]=l[0]+M|0,l[1]=l[1]+S|0,l[2]=l[2]+L|0,l[3]=l[3]+O|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;i[o>>>5]|=128<<24-o%32;var a=t.floor(n/4294967296),r=n;i[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i[14+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(i.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var h=c[l];c[l]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return s},clone:function(){var t=l.clone.call(this);return t._hash=this._hash.clone(),t}});a.MD5=l._createHelper(d),a.HmacMD5=l._createHmacHelper(d)}(Math),e=(t=s).lib,i=e.WordArray,n=e.Hasher,o=t.algo,a=[],r=o.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],o=i[1],r=i[2],s=i[3],c=i[4],l=0;l<80;l++){if(l<16)a[l]=0|t[e+l];else{var h=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=h<<1|h>>>31}var u=(n<<5|n>>>27)+c+a[l];u+=l<20?1518500249+(o&r|~o&s):l<40?1859775393+(o^r^s):l<60?(o&r|o&s|r&s)-1894007588:(o^r^s)-899497514,c=s,s=r,r=o<<30|o>>>2,o=n,n=u}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+r|0,i[3]=i[3]+s|0,i[4]=i[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(n+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),t.SHA1=n._createHelper(r),t.HmacSHA1=n._createHmacHelper(r),function(t){var e=s,i=e.lib,n=i.WordArray,o=i.Hasher,a=e.algo,r=[],c=[];!function(){function e(e){for(var i=t.sqrt(e),n=2;n<=i;n++)if(!(e%n))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}for(var n=2,o=0;o<64;)e(n)&&(o<8&&(r[o]=i(t.pow(n,.5))),c[o]=i(t.pow(n,1/3)),o++),n++}();var l=[],h=a.SHA256=o.extend({_doReset:function(){this._hash=new n.init(r.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],o=i[1],a=i[2],r=i[3],s=i[4],h=i[5],u=i[6],d=i[7],p=0;p<64;p++){if(p<16)l[p]=0|t[e+p];else{var f=l[p-15],y=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,_=l[p-2],g=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;l[p]=y+l[p-7]+g+l[p-16]}var m=n&o^n&a^o&a,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),C=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&h^~s&u)+c[p]+l[p];d=u,u=h,h=s,s=r+C|0,r=a,a=o,o=n,n=C+(v+m)|0}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+a|0,i[3]=i[3]+r|0,i[4]=i[4]+s|0,i[5]=i[5]+h|0,i[6]=i[6]+u|0,i[7]=i[7]+d|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return i[o>>>5]|=128<<24-o%32,i[14+(o+64>>>9<<4)]=t.floor(n/4294967296),i[15+(o+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(h),e.HmacSHA256=o._createHmacHelper(h)}(Math),function(){function t(t){return t<<8&4278255360|t>>>8&16711935}var e=s,i=e.lib.WordArray,n=e.enc;n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o>>1]|=t.charCodeAt(o)<<16-o%2*16;return i.create(n,2*e)}},n.Utf16LE={stringify:function(e){for(var i=e.words,n=e.sigBytes,o=[],a=0;a>>2]>>>16-a%4*8&65535);o.push(String.fromCharCode(r))}return o.join("")},parse:function(e){for(var n=e.length,o=[],a=0;a>>1]|=t(e.charCodeAt(a)<<16-a%2*16);return i.create(o,2*n)}}}(),function(){if("function"==typeof ArrayBuffer){var t=s.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var i=t.byteLength,n=[],o=0;o>>2]|=t[o]<<24-o%4*8;e.call(this,n,i)}else e.apply(this,arguments)}).prototype=t}}(),function(){function t(t,e,i){return t^e^i}function e(t,e,i){return t&e|~t&i}function i(t,e,i){return(t|~e)^i}function n(t,e,i){return t&i|e&~i}function o(t,e,i){return t^(e|~i)}function a(t,e){return t<>>32-e}var r=s,c=r.lib,l=c.WordArray,h=c.Hasher,u=r.algo,d=l.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),p=l.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=l.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=l.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),_=l.create([0,1518500249,1859775393,2400959708,2840853838]),g=l.create([1352829926,1548603684,1836072691,2053994217,0]),m=u.RIPEMD160=h.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,s){for(var c=0;c<16;c++){var l=s+c,h=r[l];r[l]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}var u,m,v,C,w,b,B,k,N,I,M,S=this._hash.words,L=_.words,O=g.words,A=d.words,x=p.words,P=f.words,D=y.words;for(b=u=S[0],B=m=S[1],k=v=S[2],N=C=S[3],I=w=S[4],c=0;c<80;c+=1)M=u+r[s+A[c]]|0,M+=c<16?t(m,v,C)+L[0]:c<32?e(m,v,C)+L[1]:c<48?i(m,v,C)+L[2]:c<64?n(m,v,C)+L[3]:o(m,v,C)+L[4],M=(M=a(M|=0,P[c]))+w|0,u=w,w=C,C=a(v,10),v=m,m=M,M=b+r[s+x[c]]|0,M+=c<16?o(B,k,N)+O[0]:c<32?n(B,k,N)+O[1]:c<48?i(B,k,N)+O[2]:c<64?e(B,k,N)+O[3]:t(B,k,N)+O[4],M=(M=a(M|=0,D[c]))+I|0,b=I,I=N,N=a(k,10),k=B,B=M;M=S[1]+v+N|0,S[1]=S[2]+C+I|0,S[2]=S[3]+w+b|0,S[3]=S[4]+u+B|0,S[4]=S[0]+m+k|0,S[0]=M},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,a=o.words,r=0;r<5;r++){var s=a[r];a[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var t=h.clone.call(this);return t._hash=this._hash.clone(),t}});r.RIPEMD160=h._createHelper(m),r.HmacRIPEMD160=h._createHmacHelper(m)}(Math),function(){var t=s,e=t.lib.Base,i=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var n=t.blockSize,o=4*n;e.sigBytes>o&&(e=t.finalize(e)),e.clamp();for(var a=this._oKey=e.clone(),r=this._iKey=e.clone(),s=a.words,c=r.words,l=0;l>>24)|4278255360&(a<<24|a>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(S=i[o]).high^=r,S.low^=a}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var p=0,f=0,y=0;y<5;y++)p^=(S=i[d+5*y]).high,f^=S.low;var _=u[d];_.high=p,_.low=f}for(d=0;d<5;d++){var g=u[(d+4)%5],m=u[(d+1)%5],v=m.high,C=m.low;for(p=g.high^(v<<1|C>>>31),f=g.low^(C<<1|v>>>31),y=0;y<5;y++)(S=i[d+5*y]).high^=p,S.low^=f}for(var w=1;w<25;w++){var b=(S=i[w]).high,B=S.low,k=c[w];k<32?(p=b<>>32-k,f=B<>>32-k):(p=B<>>64-k,f=b<>>64-k);var N=u[l[w]];N.high=p,N.low=f}var I=u[0],M=i[0];for(I.high=M.high,I.low=M.low,d=0;d<5;d++)for(y=0;y<5;y++){var S=i[w=d+5*y],L=u[w],O=u[(d+1)%5+5*y],A=u[(d+2)%5+5*y];S.high=L.high^~O.high&A.high,S.low=L.low^~O.low&A.low}S=i[0];var x=h[s];S.high^=x.high,S.low^=x.low}},_doFinalize:function(){var e=this._data,i=e.words,o=(this._nDataBytes,8*e.sigBytes),a=32*this.blockSize;i[o>>>5]|=1<<24-o%32,i[(t.ceil((o+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*i.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],h=0;h>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(d)}return new n.init(l,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),i=0;i<25;i++)e[i]=e[i].clone();return t}});e.SHA3=o._createHelper(d),e.HmacSHA3=o._createHmacHelper(d)}(Math),function(){function t(){return o.create.apply(o,arguments)}var e=s,i=e.lib.Hasher,n=e.x64,o=n.Word,a=n.WordArray,r=e.algo,c=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=t()}();var h=r.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],o=i[1],a=i[2],r=i[3],s=i[4],h=i[5],u=i[6],d=i[7],p=n.high,f=n.low,y=o.high,_=o.low,g=a.high,m=a.low,v=r.high,C=r.low,w=s.high,b=s.low,B=h.high,k=h.low,N=u.high,I=u.low,M=d.high,S=d.low,L=p,O=f,A=y,x=_,P=g,D=m,F=v,G=C,j=w,E=b,T=B,R=k,H=N,V=I,z=M,U=S,K=0;K<80;K++){var X=l[K];if(K<16)var W=X.high=0|t[e+2*K],Y=X.low=0|t[e+2*K+1];else{var q=l[K-15],J=q.high,Z=q.low,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^J>>>7,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^(Z>>>7|J<<25),tt=l[K-2],et=tt.high,it=tt.low,nt=(et>>>19|it<<13)^(et<<3|it>>>29)^et>>>6,ot=(it>>>19|et<<13)^(it<<3|et>>>29)^(it>>>6|et<<26),at=l[K-7],rt=at.high,st=at.low,ct=l[K-16],lt=ct.high,ht=ct.low;W=(W=(W=Q+rt+((Y=$+st)>>>0<$>>>0?1:0))+nt+((Y+=ot)>>>0>>0?1:0))+lt+((Y+=ht)>>>0>>0?1:0),X.high=W,X.low=Y}var ut,dt=j&T^~j&H,pt=E&R^~E&V,ft=L&A^L&P^A&P,yt=O&x^O&D^x&D,_t=(L>>>28|O<<4)^(L<<30|O>>>2)^(L<<25|O>>>7),gt=(O>>>28|L<<4)^(O<<30|L>>>2)^(O<<25|L>>>7),mt=(j>>>14|E<<18)^(j>>>18|E<<14)^(j<<23|E>>>9),vt=(E>>>14|j<<18)^(E>>>18|j<<14)^(E<<23|j>>>9),Ct=c[K],wt=Ct.high,bt=Ct.low,Bt=z+mt+((ut=U+vt)>>>0>>0?1:0),kt=gt+yt;z=H,U=V,H=T,V=R,T=j,R=E,j=F+(Bt=(Bt=(Bt=Bt+dt+((ut+=pt)>>>0>>0?1:0))+wt+((ut+=bt)>>>0>>0?1:0))+W+((ut+=Y)>>>0>>0?1:0))+((E=G+ut|0)>>>0>>0?1:0)|0,F=P,G=D,P=A,D=x,A=L,x=O,L=Bt+(_t+ft+(kt>>>0>>0?1:0))+((O=ut+kt|0)>>>0>>0?1:0)|0}f=n.low=f+O,n.high=p+L+(f>>>0>>0?1:0),_=o.low=_+x,o.high=y+A+(_>>>0>>0?1:0),m=a.low=m+D,a.high=g+P+(m>>>0>>0?1:0),C=r.low=C+G,r.high=v+F+(C>>>0>>0?1:0),b=s.low=b+E,s.high=w+j+(b>>>0>>0?1:0),k=h.low=k+R,h.high=B+T+(k>>>0>>0?1:0),I=u.low=I+V,u.high=N+H+(I>>>0>>0?1:0),S=d.low=S+U,d.high=M+z+(S>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(h),e.HmacSHA512=i._createHmacHelper(h)}(),function(){var t=s,e=t.x64,i=e.Word,n=e.WordArray,o=t.algo,a=o.SHA512,r=o.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=a._createHelper(r),t.HmacSHA384=a._createHmacHelper(r)}(),s.lib.Cipher||function(t){var e=s,i=e.lib,n=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,r=e.enc,c=(r.Utf8,r.Base64),l=e.algo.EvpKDF,h=i.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,i){this.cfg=this.cfg.extend(i),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?v:g}return function(e){return{encrypt:function(i,n,o){return t(n).encrypt(e,i,n,o)},decrypt:function(i,n,o){return t(n).decrypt(e,i,n,o)}}}}()}),u=(i.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),d=i.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),p=u.CBC=function(){function e(e,i,n){var o=this._iv;if(o){var a=o;this._iv=t}else a=this._prevBlock;for(var r=0;r>>2];t.sigBytes-=e}},y=(i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:f}),reset:function(){h.reset.call(this);var t=this.cfg,e=t.iv,i=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=i.createEncryptor;else n=i.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==n?this._mode.init(this,e&&e.words):(this._mode=n.call(i,this,e&&e.words),this._mode.__creator=n)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4}),i.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),_=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,i=t.salt;if(i)var n=o.create([1398893684,1701076831]).concat(i).concat(e);else n=e;return n.toString(c)},parse:function(t){var e=c.parse(t),i=e.words;if(1398893684==i[0]&&1701076831==i[1]){var n=o.create(i.slice(2,4));i.splice(0,4),e.sigBytes-=16}return y.create({ciphertext:e,salt:n})}},g=i.SerializableCipher=n.extend({cfg:n.extend({format:_}),encrypt:function(t,e,i,n){n=this.cfg.extend(n);var o=t.createEncryptor(i,n),a=o.finalize(e),r=o.cfg;return y.create({ciphertext:a,key:i,iv:r.iv,algorithm:t,mode:r.mode,padding:r.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,i,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(i,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),m=(e.kdf={}).OpenSSL={execute:function(t,e,i,n){n||(n=o.random(8));var a=l.create({keySize:e+i}).compute(t,n),r=o.create(a.words.slice(e),4*i);return a.sigBytes=4*e,y.create({key:a,iv:r,salt:n})}},v=i.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:m}),encrypt:function(t,e,i,n){var o=(n=this.cfg.extend(n)).kdf.execute(i,t.keySize,t.ivSize);n.iv=o.iv;var a=g.encrypt.call(this,t,e,o.key,n);return a.mixIn(o),a},decrypt:function(t,e,i,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var o=n.kdf.execute(i,t.keySize,t.ivSize,e.salt);return n.iv=o.iv,g.decrypt.call(this,t,e,o.key,n)}})}(),s.mode.CFB=function(){function t(t,e,i,n){var o=this._iv;if(o){var a=o.slice(0);this._iv=void 0}else a=this._prevBlock;n.encryptBlock(a,0);for(var r=0;r>>2]|=o<<24-a%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},s.pad.Iso10126={pad:function(t,e){var i=4*e,n=i-t.sigBytes%i;t.concat(s.lib.WordArray.random(n-1)).concat(s.lib.WordArray.create([n<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},s.pad.Iso97971={pad:function(t,e){t.concat(s.lib.WordArray.create([2147483648],1)),s.pad.ZeroPadding.pad(t,e)},unpad:function(t){s.pad.ZeroPadding.unpad(t),t.sigBytes--}},s.mode.OFB=function(){var t=s.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._keystream;o&&(a=this._keystream=o.slice(0),this._iv=void 0),i.encryptBlock(a,0);for(var r=0;r>>8^255&f^99,n[i]=f,o[f]=i;var y=t[i],_=t[y],g=t[_],m=257*t[f]^16843008*f;a[i]=m<<24|m>>>8,r[i]=m<<16|m>>>16,c[i]=m<<8|m>>>24,l[i]=m,m=16843009*g^65537*_^257*y^16843008*i,h[f]=m<<24|m>>>8,u[f]=m<<16|m>>>16,d[f]=m<<8|m>>>24,p[f]=m,i?(i=y^t[t[t[g^y]]],s^=t[t[s]]):i=s=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,i=t.sigBytes/4,o=4*((this._nRounds=i+6)+1),a=this._keySchedule=[],r=0;r6&&r%i==4&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=f[r/i|0]<<24),a[r]=a[r-i]^s}for(var c=this._invKeySchedule=[],l=0;l>>24]]^u[n[s>>>16&255]]^d[n[s>>>8&255]]^p[n[255&s]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,r,c,l,n)},decryptBlock:function(t,e){var i=t[e+1];t[e+1]=t[e+3],t[e+3]=i,this._doCryptBlock(t,e,this._invKeySchedule,h,u,d,p,o),i=t[e+1],t[e+1]=t[e+3],t[e+3]=i},_doCryptBlock:function(t,e,i,n,o,a,r,s){for(var c=this._nRounds,l=t[e]^i[0],h=t[e+1]^i[1],u=t[e+2]^i[2],d=t[e+3]^i[3],p=4,f=1;f>>24]^o[h>>>16&255]^a[u>>>8&255]^r[255&d]^i[p++],_=n[h>>>24]^o[u>>>16&255]^a[d>>>8&255]^r[255&l]^i[p++],g=n[u>>>24]^o[d>>>16&255]^a[l>>>8&255]^r[255&h]^i[p++],m=n[d>>>24]^o[l>>>16&255]^a[h>>>8&255]^r[255&u]^i[p++];l=y,h=_,u=g,d=m}y=(s[l>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^i[p++],_=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^i[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&h])^i[p++],m=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^i[p++],t[e]=y,t[e+1]=_,t[e+2]=g,t[e+3]=m},keySize:8});t.AES=e._createHelper(y)}(),function(){function t(t,e){var i=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=i,this._lBlock^=i<>>t^this._lBlock)&e;this._lBlock^=i,this._rBlock^=i<>>5]>>>31-n%32&1}for(var o=this._subKeys=[],a=0;a<16;a++){var r=o[a]=[],s=h[a];for(i=0;i<24;i++)r[i/6|0]|=e[(l[i]-1+s)%28]<<31-i%6,r[4+(i/6|0)]|=e[28+(l[i+24]-1+s)%28]<<31-i%6;for(r[0]=r[0]<<1|r[0]>>>31,i=1;i<7;i++)r[i]=r[i]>>>4*(i-1)+3;r[7]=r[7]<<5|r[7]>>>27}var u=this._invSubKeys=[];for(i=0;i<16;i++)u[i]=o[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(i,n,o){this._lBlock=i[n],this._rBlock=i[n+1],t.call(this,4,252645135),t.call(this,16,65535),e.call(this,2,858993459),e.call(this,8,16711935),t.call(this,1,1431655765);for(var a=0;a<16;a++){for(var r=o[a],s=this._lBlock,c=this._rBlock,l=0,h=0;h<8;h++)l|=u[h][((c^r[h])&d[h])>>>0];this._lBlock=c,this._rBlock=s^l}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,t.call(this,1,1431655765),e.call(this,8,16711935),e.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),i[n]=this._lBlock,i[n+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});i.DES=a._createHelper(p);var f=r.TripleDES=a.extend({_doReset:function(){var t=this._key.words;this._des1=p.createEncryptor(o.create(t.slice(0,2))),this._des2=p.createEncryptor(o.create(t.slice(2,4))),this._des3=p.createEncryptor(o.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});i.TripleDES=a._createHelper(f)}(),function(){function t(){for(var t=this._S,e=this._i,i=this._j,n=0,o=0;o<4;o++){i=(i+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[i],t[i]=a,n|=t[(t[e]+t[i])%256]<<24-8*o}return this._i=e,this._j=i,n}var e=s,i=e.lib.StreamCipher,n=e.algo,o=n.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,i=t.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var a=0;o<256;o++){var r=o%i,s=e[r>>>2]>>>24-r%4*8&255;a=(a+n[o]+s)%256;var c=n[o];n[o]=n[a],n[a]=c}this._i=this._j=0},_doProcessBlock:function(e,i){e[i]^=t.call(this)},keySize:8,ivSize:0});e.RC4=i._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)t.call(this)}});e.RC4Drop=i._createHelper(a)}(),s.mode.CTRGladman=function(){function t(t){if(255==(t>>24&255)){var e=t>>16&255,i=t>>8&255,n=255&t;255===e?(e=0,255===i?(i=0,255===n?n=0:++n):++i):++e,t=0,t+=e<<16,t+=i<<8,t+=n}else t+=1<<24;return t}function e(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var i=s.lib.BlockCipherMode.extend(),n=i.Encryptor=i.extend({processBlock:function(t,i){var n=this._cipher,o=n.blockSize,a=this._iv,r=this._counter;a&&(r=this._counter=a.slice(0),this._iv=void 0),e(r);var s=r.slice(0);n.encryptBlock(s,0);for(var c=0;c>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0,i=0;i<8;i++){var n=t[i]+e[i],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);r[i]=c^l}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}var e=s,i=e.lib.StreamCipher,n=e.algo,o=[],a=[],r=[],c=n.Rabbit=i.extend({_doReset:function(){for(var e=this._key.words,i=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)t.call(this);for(n=0;n<8;n++)a[n]^=o[n+4&7];if(i){var r=i.words,s=r[0],c=r[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),u=l>>>16|4294901760&h,d=h<<16|65535&l;for(a[0]^=l,a[1]^=u,a[2]^=h,a[3]^=d,a[4]^=l,a[5]^=u,a[6]^=h,a[7]^=d,n=0;n<4;n++)t.call(this)}},_doProcessBlock:function(e,i){var n=this._X;t.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)o[a]=16711935&(o[a]<<8|o[a]>>>24)|4278255360&(o[a]<<24|o[a]>>>8),e[i+a]^=o[a]},blockSize:4,ivSize:2});e.Rabbit=i._createHelper(c)}(),s.mode.CTR=function(){var t=s.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0);var r=a.slice(0);i.encryptBlock(r,0),a[n-1]=a[n-1]+1|0;for(var s=0;s>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0,i=0;i<8;i++){var n=t[i]+e[i],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);r[i]=c^l}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}var e=s,i=e.lib.StreamCipher,n=e.algo,o=[],a=[],r=[],c=n.RabbitLegacy=i.extend({_doReset:function(){var e=this._key.words,i=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)t.call(this);for(a=0;a<8;a++)o[a]^=n[a+4&7];if(i){var r=i.words,s=r[0],c=r[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),u=l>>>16|4294901760&h,d=h<<16|65535&l;for(o[0]^=l,o[1]^=u,o[2]^=h,o[3]^=d,o[4]^=l,o[5]^=u,o[6]^=h,o[7]^=d,a=0;a<4;a++)t.call(this)}},_doProcessBlock:function(e,i){var n=this._X;t.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)o[a]=16711935&(o[a]<<8|o[a]>>>24)|4278255360&(o[a]<<24|o[a]>>>8),e[i+a]^=o[a]},blockSize:4,ivSize:2});e.RabbitLegacy=i._createHelper(c)}(),s.pad.ZeroPadding={pad:function(t,e){var i=4*e;t.clamp(),t.sigBytes+=i-(t.sigBytes%i||i)},unpad:function(t){for(var e=t.words,i=t.sigBytes-1;!(e[i>>>2]>>>24-i%4*8&255);)i--;t.sigBytes=i+1}},s}),cc._RF.pop()},{}],"use_v2.1-2.2.1_cc.Toggle_event":[function(t,e){"use strict";cc._RF.push(e,"7a231Rz0d9LBYYgY3bDYlLB","use_v2.1-2.2.1_cc.Toggle_event"),cc.Toggle&&(cc.Toggle._triggerEventInScript_isChecked=!0),cc._RF.pop()},{}]},{},["Block","Camera","GameData","GameManager","GameOver","GameScene","ItemRender","List","Load","Player","RankManager","HttpUtil","crypto-js.min","AudioManager","GameTool","Notification","Storage","use_v2.1-2.2.1_cc.Toggle_event"]); \ No newline at end of file diff --git a/build/FlyUp/assets/main/index.js b/build/FlyUp/assets/main/index.js deleted file mode 100644 index bf1c363..0000000 --- a/build/FlyUp/assets/main/index.js +++ /dev/null @@ -1 +0,0 @@ -window.__require=function t(e,i,n){function o(r,s){if(!i[r]){if(!e[r]){var c=r.split("/");if(c=c[c.length-1],!e[c]){var l="function"==typeof __require&&__require;if(!s&&l)return l(c,!0);if(a)return a(c,!0);throw new Error("Cannot find module '"+r+"'")}r=c}var h=i[r]={exports:{}};e[r][0].call(h.exports,function(t){return o(e[r][1][t]||t)},h,h.exports,t,e,i,n)}return i[r].exports}for(var a="function"==typeof __require&&__require,r=0;r=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=r.property,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.audioGameBgm0=null,e.jump=null,e.luodi=null,e.pz=null,e.luodui=null,e}var i;return o(e,t),i=e,e.prototype.ctor=function(){this.mAudioMap={},this.bgMusicVolume=.1,this.effectMusicVolume=1,this.mMusicSwitch=1,this.mEffectSwitch=1},e.prototype.play=function(t,e,i,n){if((!n||this.mMusicSwitch)&&(n||this.mEffectSwitch)){var o=n?this.bgMusicVolume:this.effectMusicVolume;if(cc.sys.isBrowser){t==this.brickSound&&(o=.1),o=1;var a=cc.audioEngine.play(t,e,o);return i&&cc.audioEngine.setFinishCallback(a,function(){i.call(this)}.bind(this)),this.mAudioMap[t]=a,t}return t}},e.prototype.save=function(){},e.prototype.onLoad=function(){null==i._instance?(i._instance=this,cc.game.addPersistRootNode(this.node),this.reward=!1,this.finish=!1,this.rewardCount=0,this.ctor(),this.preload()):this.node.destroy()},e.prototype.preload=function(){cc.sys.platform===cc.sys.WECHAT_GAME&&[this.audioGameBgm0].forEach(function(){})},e.prototype.getAudioMusicSwitch=function(){return this.mMusicSwitch},e.prototype.getAudioEffectSwitch=function(){return this.mEffectSwitch},e.prototype.trunAudioSound=function(t){this.switchMusic(t),this.switchEffect(t)},e.prototype.switchMusic=function(t){this.mMusicSwitch!=(t?1:0)&&(this.mMusicSwitch=1-this.mMusicSwitch),t?this.playMusicGame():this.stopMusic()},e.prototype.switchEffect=function(t){this.mEffectSwitch!=(t?1:0)&&(this.mEffectSwitch=1-this.mEffectSwitch)},e.prototype.onHide=function(){cc.audioEngine.pauseAll()},e.prototype.onShow=function(){cc.audioEngine.resumeAll()},e.prototype.playMusic=function(t,e,i){i=!(void 0!==i&&!i),this.stopMusic(),this.mMusicKey=this.play(t,i,e,!0)},e.prototype.playMusicGame=function(){this.playMusic(this.audioGameBgm0,{},!0)},e.prototype.stopMusic=function(){var t=this.mAudioMap[this.mMusicKey];void 0!==t&&(cc.sys.isBrowser?cc.audioEngine.stop(t):t.stop(),cc.audioEngine.stop(t))},e.prototype.playJump=function(){return this.play(this.jump,!1,null,this.mEffectSwitch)},e.prototype.playLuo=function(){return this.play(this.luodui,!1,null,this.mEffectSwitch)},e.prototype.playGround=function(){return this.play(this.luodi,!1,null,this.mEffectSwitch)},e.prototype.playPz=function(){return this.play(this.pz,!1,null,this.mEffectSwitch)},e.prototype.playGameStart=function(){},e.prototype.playGameOver=function(){},e.prototype.playGameResultFailed=function(){},e.prototype.playGameResultSuccess=function(){},e.prototype.playWarning=function(){},e.prototype.playBrick=function(){},e.prototype.brickBoom=function(){},e.prototype.playAudioButton=function(){},e.prototype.playRandomMatch=function(){this.playMusic(this.audioGameBgm0,{},!0)},e.prototype.playMatchFoundSound=function(){this.stopMusic()},a([c(cc.AudioClip)],e.prototype,"audioGameBgm0",void 0),a([c(cc.AudioClip)],e.prototype,"jump",void 0),a([c(cc.AudioClip)],e.prototype,"luodi",void 0),a([c(cc.AudioClip)],e.prototype,"pz",void 0),a([c(cc.AudioClip)],e.prototype,"luodui",void 0),i=a([s],e)}(cc.Component);i.default=l,cc._RF.pop()},{}],Block:[function(t,e,i){"use strict";cc._RF.push(e,"2bf4dXY+rJG37abLKiCEh7s","Block");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./GameManager"),c=t("./tool/Notification"),l=cc._decorator,h=l.ccclass,u=l.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.onLoad=function(){this.node.getComponent(cc.PolygonCollider).enabled=!0,this.speed=10,this.num=0,this.move=!1,this.node.name.length>6?this.num=parseInt(this.node.name.substring(5,7)):this.num=parseInt(this.node.name.substring(5,6)),this.speed=r.default._instance.BLOCK_INFO[this.num-1].speed,this.init()},e.prototype.start=function(){},e.prototype.init=function(){var t=this;this.getSpeed(),this.num>r.default._instance.GM_INFO.blockScale?this.speed=7&&(t=7);var e;e=this.node.width<180?0:this.node.width<199?.5:1;var i=0;1==s.default._instance.interfere&&(i=1);var n=0;this.num>6&&(n=1),s.default._instance.oldSpeed=this.speed,this.difficulty=0,this.difficulty=t+e+i+n,this.difficulty=parseInt(10*this.difficulty+""),r.default._instance.CLICK_DATA.difficulty=this.difficulty/10,r.default._instance.CLICK_DATA.difficulty>r.default._instance.GM_INFO.difficultyMax&&(r.default._instance.GM_INFO.difficultyMax=r.default._instance.CLICK_DATA.difficulty)},e.prototype.setScore=function(t){var e,i=this.difficulty/10,n=r.default._instance.LEVEL_INFO.layer,o=r.default._instance.LEVEL_INFO.doubleHit;e=parseInt(t*i*n*o+""),c.Notification.emit("addScore",e)},e.prototype.hide=function(){var t=this;cc.tween(this.node).to(.2,{opacity:0}).call(function(){t.node.active=!1,t.node.removeFromParent(),t.node=null}).start()},e.prototype.onCollisionEnter=function(t,e){if((!s.default._instance||1!=s.default._instance.over)&&"Player"==t.node.name){var i=e.name.length;t.name.substring(6,i),1==this.move&&this.tween&&this.tween.stop()}},e.prototype.update=function(){},a([u(cc.Label)],e.prototype,"label",void 0),a([u],e.prototype,"text",void 0),a([h],e)}(cc.Component);i.default=d,cc._RF.pop()},{"./GameData":"GameData","./GameManager":"GameManager","./tool/Notification":"Notification"}],Camera:[function(t,e,i){"use strict";cc._RF.push(e,"ba5152SuShBF7Gc5uHiGsp0","Camera");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./GameManager"),c=t("./tool/Notification"),l=cc._decorator,h=l.ccclass,u=l.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.start=function(){this.node.on(cc.Node.EventType.TOUCH_START,this.jump,this)},e.prototype.jump=function(){s.default._instance?0==s.default._instance.over&&1==s.default._instance.begin&&c.Notification.emit("jump",null):1==r.default._instance.GM_INFO.probation&&c.Notification.emit("jump",null)},a([u(cc.Label)],e.prototype,"label",void 0),a([u],e.prototype,"text",void 0),a([h],e)}(cc.Component);i.default=d,cc._RF.pop()},{"./GameData":"GameData","./GameManager":"GameManager","./tool/Notification":"Notification"}],GameData:[function(t,e,i){"use strict";cc._RF.push(e,"f2f0bI5PsVI+o18xF6G+KVa","GameData");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=r.property,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}var i;return o(e,t),i=e,e.prototype.onLoad=function(){null==i._instance?(i._instance=this,this.AudioManager=this.node.getComponent("BallAudioManager")):this.node.destroy()},e.prototype.start=function(){this.GAME_DATA=[],this.GM_INFO_init(),this.LEVEL_init(),this.BLOCK_INFO_init(),this.CLICK_init()},e.prototype.GM_INFO_init=function(){this.GM_INFO={mean_Time:0,total:0,currSeed:203213,gameId:"100001",userId:"",guide:!0,url:"http://dev.api.sparkus.cn",custom:0,jumpUpTime:.5,jumpDownTime:.4,jumpHeight:150,blockMin:30,blockMax:-10,blockScale:5,distanceMin:100,distanceMax:110,life:3,levelMax:1,difficultyMax:1,score:0,success:!0,probation:!0}},e.prototype.CLICK_init=function(){i._instance.CLICK_DATA={type:1,level:0,block:0,percent:0,getScore:0,totalScore:0,difficulty:0,height:!1,combo:0,accuracy:0,jumps:0,timer:0,fake:!1,fakeSpeed:0,speed:0,round:0}},e.prototype.LEVEL_init=function(){this.LEVEL_INFO={speed:1,addSpeed:.02,reduceSpeed:0,jiansu:3,round1:10,round2:20,round3:30,doubleSuccess:3,fastSpeed:3.5,slowSpeed:4.5,doubleHit:1,doubleAdd:.05,doubleMax:2,layer:100,layerAdd:2,star1:.2,star2:.4,star3:.8,scoreMax:12e4,levelMax:1,difficultyMax:1}},e.prototype.BLOCK_INFO_init=function(){this.BLOCK_INFO=[{name:"block1",speed:8,thickness:!1},{name:"block2",speed:9,thickness:!1},{name:"block3",speed:8,thickness:!1},{name:"block4",speed:9,thickness:!1},{name:"block5",speed:8,thickness:!1},{name:"block6",speed:7,thickness:!1},{name:"block7",speed:10,thickness:!0},{name:"block8",speed:10,thickness:!0},{name:"block9",speed:10,thickness:!0},{name:"block10",speed:10,thickness:!0},{name:"block11",speed:10,thickness:!0},{name:"block12",speed:10,thickness:!0},{name:"block0",speed:14,thickness:!1}]},a([c(cc.Label)],e.prototype,"label",void 0),a([c],e.prototype,"text",void 0),i=a([s],e)}(cc.Component);i.default=l,cc._RF.pop()},{}],GameManager:[function(t,e,i){"use strict";cc._RF.push(e,"b26a49RCSFPT4C+F7xAd62t","GameManager");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./tool/GameTool"),c=t("./tool/Notification"),l=cc._decorator,h=l.ccclass,u=l.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.Camera=null,e.topUI=null,e.Player=null,e.Ground=null,e.Xin=null,e.time=null,e.GameOver=null,e.Tip=null,e.blockPrefab=[],e}var i;return o(e,t),i=e,e.prototype.onLoad=function(){cc.director.getCollisionManager().enabled=!0,i._instance=this},e.prototype.onEnable=function(){c.Notification.on("createBlock",this.createBlock,this),c.Notification.on("addScore",this.addScore,this),c.Notification.on("createCrackBlock",this.createCrackBlock,this),c.Notification.on("showGround",this.showGround,this),c.Notification.on("death",this.getDeath,this),c.Notification.on("jump",this.jump,this),c.Notification.on("setData",this.setData,this)},e.prototype.onDestroy=function(){c.Notification.off("createBlock",this.createBlock),c.Notification.off("addScore",this.addScore),c.Notification.off("createBlock",this.createCrackBlock),c.Notification.off("death",this.getDeath),c.Notification.off("jump",this.jump),c.Notification.off("showGround",this.showGround),c.Notification.off("setData",this.setData)},e.prototype.fit=function(){this.node.getChildByName("bg2").y=-2167.675,this.setFit()||(this.node.getChildByName("bg2").y=-2100,this.topUI.y=660)},e.prototype.getSetScreenResolutionFlag=function(){var t=cc.winSize,e=t.width;return!(t.height/e>16.2/9)},e.prototype.setFit=function(){return this.getSetScreenResolutionFlag()},e.prototype.init=function(){this.drop=this.topUI.y-this.Camera.node.y,this.score=0,this.oldSpeed=10,this.guide=-1,this.begin=!0,this.over=!1,this.interfere=!1,this.round=0,this.level=0,r.default._instance.GM_INFO.levelMax=1,r.default._instance.GM_INFO.difficultyMax=1,r.default._instance.GM_INFO.life=3,this.blockArray=[],this.cameraMove=!1,this.countTime=120,this.topUI.getChildByName("xin1").active=!0,this.topUI.getChildByName("xin2").active=!0,this.topUI.getChildByName("xin3").active=!0,this.topUI.getChildByName("star1").active=!1,this.topUI.getChildByName("star2").active=!1,this.topUI.getChildByName("star3").active=!1,r.default._instance.LEVEL_init(),this.schedule(this.updateCountDownTime,1)},e.prototype.start=function(){var t=this;this.fit(),this.init(),r.default._instance.GM_INFO.probation?(this.Player.getComponent("Player").jumpPause=!0,cc.tween(this.Tip.getChildByName("left")).to(.25,{width:348}).start(),cc.tween(this.Tip.getChildByName("right")).to(.25,{width:348}).start(),cc.tween(this.Tip.getChildByName("tip")).delay(.15).to(.15,{opacity:255}).start(),cc.tween(this.Tip.getChildByName("btn_next")).delay(.5).to(.2,{opacity:255}).start(),cc.tween(this.Tip.getChildByName("btn_jump")).delay(.5).to(.2,{opacity:255}).start()):(this.node.getChildByName("Begin").opacity=0,this.node.getChildByName("Begin").scale=2,cc.tween(this.node.getChildByName("Begin")).to(.5,{opacity:255,scale:1}).delay(.5).to(.5,{opacity:0,scale:0}).call(function(){t.startGame()}).start())},e.prototype.startGuide=function(t){var e=this;if(this.guide=t,console.log("startGuide",t),0==t)this.careteGuideBlock(1);else if(2==t){this.Player.getComponent("Player").jumpPause=!0;var i=this.node.getChildByName("Block").children[this.node.getChildByName("Block").children.length-1];cc.tween(i).to(.7,{x:0}).start(),this.tipHide("tip2",3)}else 3==t?(this.round+=1,this.careteGuideBlock(3)):4==t?(this.round+=1,this.careteGuideBlock(4)):5==t?(this.round+=1,this.careteGuideBlock(5)):6==t?(i=this.node.getChildByName("Block").children[this.node.getChildByName("Block").children.length-1],cc.tween(i).to(.7,{x:0}).start(),this.tipHide("tip3",7)):7==t?(this.round+=1,this.careteGuideBlock(7)):8==t?(this.round+=1,this.careteGuideBlock(8)):9==t&&(this.Player.getComponent("Player").jumpPause=!0,setTimeout(function(){r.default._instance.GM_INFO.probation=!1,e.destroyBlock(!1),cc.director.loadScene("GameScene")},1e3))},e.prototype.tipHide=function(t,e){var i=this,n=this.Tip.getChildByName(t),o=this.Tip.getChildByName("left"),a=this.Tip.getChildByName("right");cc.tween(o).delay(.1).to(.25,{width:0}).start(),cc.tween(a).delay(.1).to(.25,{width:0}).start(),cc.tween(n).to(.12,{opacity:0}).delay(1.5).call(function(){i.Player.getComponent("Player").jumpPause=!0,null!=e&&i.startGuide(e)}).start()},e.prototype.careteGuideBlock=function(t){var e=this;this.Ground.active=!1;var i=this.Tip.getChildByName("left"),n=this.Tip.getChildByName("right"),o=this.Tip.getChildByName("tip2");5==t&&(o=this.Tip.getChildByName("tip3")),this.Player.getComponent("Player").jumpPause=!0;var a=cc.instantiate(this.blockPrefab[13]),s=this.Player.getComponent("Player").basicHeight+r.default._instance.GM_INFO.blockMin;t>4&&(s+=a.height+r.default._instance.GM_INFO.blockMax,r.default._instance.CLICK_DATA.height=!0),a.setPosition(cc.v2(this.round%2==0?480:-480,s)),a.parent=this.node.getChildByName("Block");var c=150,l=3;1==t||5==t?c=this.round%2==0?c:-c:3!=t&&4!=t&&7!=t&&8!=t&&9!=t||(this.Player.getComponent("Player").jumpPause=!1,c=-a.x,l=7),cc.tween(a).to(l,{x:c}).call(function(){1!=t&&5!=t||(i.width=0,n.width=0,o.opacity=0,cc.tween(i).to(.25,{width:348}).start(),cc.tween(n).to(.25,{width:348}).start(),cc.tween(o).delay(.15).to(.15,{opacity:255}).call(function(){e.guide=t,5==t&&(e.guide=6),e.Player.getComponent("Player").jumpPause=!1}).start())}).start()},e.prototype.showGround=function(t){var e=this;setTimeout(function(){e.Ground.active=!0,e.Ground.y=t},500)},e.prototype.guideNext=function(){-1==this.guide&&(this.tipHide("tip",0),cc.tween(this.Tip.getChildByName("btn_next")).to(.1,{opacity:0}).start(),cc.tween(this.Tip.getChildByName("btn_jump")).to(.1,{opacity:0}).start())},e.prototype.guideJump=function(){r.default._instance.GM_INFO.probation=!1,this.destroyBlock(!1),cc.director.loadScene("GameScene")},e.prototype.jump=function(){this.Player.getComponent("Player").jump()},e.prototype.startGame=function(){this.createBlock()},e.prototype.addScore=function(t){var e=this;r.default._instance.CLICK_DATA.getScore=parseInt(t),i._instance.score+=parseInt(t),r.default._instance.CLICK_DATA.totalScore=i._instance.score,this.topUI.getChildByName("nandu").getComponent(cc.Label).string=i._instance.score+"";var n=i._instance.score/r.default._instance.LEVEL_INFO.scoreMax;cc.tween(this.topUI.getChildByName("progress").getComponent(cc.Sprite)).to(.5,{fillRange:n}).call(function(){n>=r.default._instance.LEVEL_INFO.star1&&!e.topUI.getChildByName("star1").active&&(e.topUI.getChildByName("star1").active=!0),n>=r.default._instance.LEVEL_INFO.star2&&!e.topUI.getChildByName("star2").active&&(e.topUI.getChildByName("star2").active=!0),n>=r.default._instance.LEVEL_INFO.star3&&!e.topUI.getChildByName("star3").active&&(e.topUI.getChildByName("star3").active=!0)}).start()},e.prototype.createBlock=function(){if(0==this.over&&1==this.begin){this.Ground.active=!1,this.Player.getComponent("Player").jumpPause=!1;var t=Math.floor(12*Math.random());this.round<=10&&5==t&&(t=Math.floor(6*Math.random()+6));var e=cc.instantiate(this.blockPrefab[t]),i=this.Player.getComponent("Player").basicHeight+r.default._instance.GM_INFO.blockMin;t>r.default._instance.GM_INFO.blockScale&&(i+=e.height+r.default._instance.GM_INFO.blockMax,r.default._instance.CLICK_DATA.height=!0),i>=0&&0==this.cameraMove&&(this.countHeight=this.Player.getComponent("Player").basicHeight-this.Camera.node.y,this.cameraMove=!0),e.setPosition(cc.v2(this.round%2==0?480:-480,i)),e.parent=this.node.getChildByName("Block"),e.zIndex=10,this.round+=1,this.level+=1,this.round>r.default._instance.GM_INFO.levelMax&&(r.default._instance.GM_INFO.levelMax=this.round),r.default._instance.CLICK_DATA.level=this.round,r.default._instance.CLICK_DATA.round=this.level,r.default._instance.LEVEL_INFO.layer+=r.default._instance.LEVEL_INFO.layerAdd,r.default._instance.LEVEL_INFO.speed+=r.default._instance.LEVEL_INFO.addSpeed,r.default._instance.LEVEL_INFO.reduceSpeed<=100&&(r.default._instance.LEVEL_INFO.reduceSpeed+=r.default._instance.LEVEL_INFO.jiansu),this.round==r.default._instance.LEVEL_INFO.round1?r.default._instance.LEVEL_INFO.jiansu=2:this.round==r.default._instance.LEVEL_INFO.round2?r.default._instance.LEVEL_INFO.jiansu=1:this.round==r.default._instance.LEVEL_INFO.round3&&(r.default._instance.LEVEL_INFO.jiansu=.5)}},e.prototype.createCrackBlock=function(){if(this.interfere=!0,r.default._instance.CLICK_DATA.fake=this.interfere,this.round>1&&this.destroyBlock(!0),0==this.over&&1==this.begin){var t=cc.instantiate(this.blockPrefab[12]),e=this.Player.getComponent("Player").basicHeight;1==r.default._instance.CLICK_DATA.height&&(e+=t.height/2),t.setPosition(cc.v2(this.round%2==0?480:-480,e)),t.parent=this.node.getChildByName("CrackBlock"),t.zIndex=1}},e.prototype.destroyBlock=function(t){if(1==t){if(this.node&&this.node.getChildByName("CrackBlock")&&this.node.getChildByName("CrackBlock").children)for(var e=this.node.getChildByName("CrackBlock").children,i=0;i5?6==e.guide?(e.guide=5,e.round=2,e.startGuide(5)):(e.round=1,e.startGuide(6)):(e.round=0,e.startGuide(3))}).delay(.5).call(function(){}).start()):r.default._instance.GM_INFO.life>0?(r.default._instance.GM_INFO.life-=1,this.getDevive(1)):(r.default._instance.GM_INFO.life=-1,this.getDevive(3))},e.prototype.getDevive=function(t){var e=this;this.round=0,r.default._instance.LEVEL_init(),this.topUI.getChildByName("star3").active,this.interfere=!1,r.default._instance.CLICK_DATA.fake=this.interfere,this.destroyBlock(!1);for(var i=this.node.getChildByName("CrackBlock").children,n=0;n500&&(o=(this.Player.y+500)/1e3*o),cc.tween(this.Player).to(o,{y:-500},{easing:"cubicIn"}).call(function(){e.Player.getComponent("Player").xinAction()}).delay(.5).call(function(){e.xinAction(),e.Player.getComponent("Player").init(),t>1?(e.Xin.parent.active=!0,e.Xin.getComponent(cc.Sprite).fillRange=0,cc.tween(e.Xin.getComponent(cc.Sprite)).to(t,{fillRange:1}).delay(.3).call(function(){e.Xin.parent.active=!1}).delay(0).call(function(){e.createBlock()}).start()):setTimeout(function(){e.createBlock()},1e3*(t+.5))}).start()},e.prototype.setData=function(){r.default._instance.CLICK_DATA.timer=this.countTime,r.default._instance.CLICK_DATA.level=this.round,r.default._instance.CLICK_DATA.round=this.level,s.GameTool.setGameData()},e.prototype.getMatchId=function(){var t=cc.sys.localStorage.getItem("matchId");if("undifend"==t||null==t)t=this.setMatchId();else if(1==this.containsNanana(t))t=this.setMatchId();else{var e=parseInt(t[10]);1==this.level&&(e+=1),t=t.slice(0,10)+e+"",r.default._instance.GM_INFO.matchId=t,cc.sys.localStorage.setItem("matchId",t)}return t},e.prototype.containsNanana=function(t){return/na/i.test(t)},e.prototype.setMatchId=function(){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e=[],i=0;i<10;i++){var n=Math.floor(Math.random()*t.length),o=t.charAt(n);e.push(o)}var a=e.join("")+1+"";return cc.sys.localStorage.setItem("matchNumber",1),cc.sys.localStorage.setItem("matchId",a),r.default._instance.GM_INFO.matchId=a,a},e.prototype.updateCountDownTime=function(){var t=this;this.countTime>0&&!r.default._instance.GM_INFO.probation&&(this.countTime-=1,this.time.string=this.getTimeMargin(this.countTime),this.countTime<5&&cc.tween(this.time.node).to(.25,{scale:1.5,color:cc.color(255,0,0)}).to(.25,{scale:1,color:cc.color(255,255,255)}).start(),this.countTime<=0&&(this.unschedule(this.updateCountDownTime),this.begin=!1,this.over=!0,this.overStop(),this.setRank(),setTimeout(function(){t.overOpen()},2e3)))},e.prototype.overStop=function(){this.Player.getComponent("Player").jumpAction&&this.Player.getComponent("Player").jumpAction.stop();for(var t=this.node.getChildByName("Block").children,e=0;e=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=r.property,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.start=function(){},e.prototype.reStart=function(){cc.director.loadScene("GameScene")},a([c(cc.Label)],e.prototype,"label",void 0),a([c],e.prototype,"text",void 0),a([s],e)}(cc.Component);i.default=l,cc._RF.pop()},{}],GameScene:[function(t,e,i){"use strict";cc._RF.push(e,"d14c5oIAFtGepa7XMccAMNQ","GameScene");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=r.property,l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.start=function(){},a([c(cc.Label)],e.prototype,"label",void 0),a([c],e.prototype,"text",void 0),a([s],e)}(cc.Component);i.default=l,cc._RF.pop()},{}],GameTool:[function(t,e,i){"use strict";cc._RF.push(e,"35a73aTEIBAZoXKp/xutwzU","GameTool"),Object.defineProperty(i,"__esModule",{value:!0}),i.GameTool=void 0;var n=t("../GameData"),o=t("../crypto/HttpUtil"),a=t("./Storage"),r={_startTime:0,_endTime:0,_totalTime:0,getSeedRandom:function(t,e){e=e||1,t=t||0,n.default._instance.GM_INFO.currSeed=(9301*n.default._instance.GM_INFO.currSeed+49297)%233280;var i=t+n.default._instance.GM_INFO.currSeed/233280*(e-t);return Math.floor(i)},Authentication:function(){var t="user_"+n.default._instance.GM_INFO.gameId,e=JSON.parse(localStorage.getItem(t));if("undifend"==e||null==e||""==e){var i="http://api.sparkus.cn/api/user/auth/login?domain=hui32579WdYPsgYq&callback="+location.href;window.location.href=i}else a.StorageMessage.setStorage(t,e),n.default._instance.GM_INFO.userId=parseInt(e.userId)},setGameData:function(){n.default._instance.GAME_DATA=[],n.default._instance.GAME_DATA.push(n.default._instance.CLICK_DATA),n.default._instance.CLICK_init();var t={matchId:this.getMatchId(),data:n.default._instance.GAME_DATA};o.default.uploadUserLogData(t,function(){})},setRank:function(){var t={type:1,round:"1",score:n.default._instance.GM_INFO.score,success:n.default._instance.GM_INFO.success};o.default.rankData(1,function(){},t)},getMatchId:function(){var t=cc.sys.localStorage.getItem("matchId");if("undifend"==t||null==t)t=this.setMatchId();else if(1==this.containsNanana(t))t=this.setMatchId();else{var e=parseInt(t[10]);1==this.level&&(e+=1),t=t.slice(0,10)+e+"",n.default._instance.GM_INFO.matchId=t,cc.sys.localStorage.setItem("matchId",t)}return t},containsNanana:function(t){return/na/i.test(t)},setMatchId:function(){for(var t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",e=[],i=0;i<10;i++){var o=Math.floor(Math.random()*t.length),a=t.charAt(o);e.push(a)}var r=e.join("")+1+"";return cc.sys.localStorage.setItem("matchNumber",1),cc.sys.localStorage.setItem("matchId",r),n.default._instance.GM_INFO.matchId=r,r},getSetScreenResolutionFlag:function(){var t=cc.winSize,e=t.width;return!(t.height/e>16.2/9)},setFit:function(){return r.getSetScreenResolutionFlag()},getTip:function(){switch(Math.floor(4*Math.random())+1){case 1:return"\u6839\u636e\u5c0f\u7403\u7684\u4f4d\u7f6e\uff0c\u5408\u7406\u6643\u52a8\u624b\u673a\uff0c\u786e\u4fdd\u5c0f\u7403\u4e0d\u6389\u51fa\u6728\u677f\u3002";case 2:return"\u6839\u636e\u5c0f\u7403\u4f4d\u7f6e\u63a7\u5236\u6643\u52a8\u5e45\u5ea6\uff0c\u8fc7\u5927\u6216\u8fc7\u5c0f\u90fd\u4e0d\u662f\u4e2a\u597d\u9009\u62e9\u3002";case 3:return"\u4e0d\u8981\u88ab\u5929\u4e0a\u6389\u843d\u7684\u969c\u788d\u5413\u5230\uff0c\u6709\u65f6\u5019\u5b83\u53cd\u800c\u4f1a\u5e2e\u4f60\u4fdd\u6301\u5e73\u8861\u3002";case 4:return"\u5c1d\u8bd5\u7740\u9876\u5f00\u6389\u843d\u7684\u969c\u788d\uff0c\u662f\u4e2a\u5f88\u9177\u7684\u73a9\u6cd5\u3002"}},beginTiming:function(){this._startTime=(new Date).getTime()},endTiming:function(){this._endTime=(new Date).getTime()},updateScoreTime:function(){var t=(new Date).getTime(),e=t-this._startTime;(e<0||e>500)&&(e=Math.round(1e3*cc.director.getAnimationInterval())),this._endTime+=e/1e3,this._totalTime=this._endTime.toFixed(2),n.default._instance.GM_INFO.currScore=this._totalTime,this._startTime=t},countDown:function(){this._endTime=(new Date).getTime(),this._totalTime=Math.floor((this._endTime-this._startTime)/1e3),n.default._instance.GM_INFO.remainingTime=n.default._instance.GM_INFO.totalTime-this._totalTime},getGameInfo:function(){return!1},reset:function(){cc.director.loadScene("LoadScene")},setGameInfo:function(){},getTimeMargin:function(t){var e=t,i=Math.floor(e/3600),n=e-3600*i,o=Math.floor(n/60);return"\u5269\u4f59:"+i+":"+o+":"+(e-3600*i-60*o)},getTimeMargin2:function(t){var e=t,i=null,n=null,o=Math.floor(e/3600),a=e-3600*o;return(i=Math.floor(a/60))<10&&(i="0"+i),(n=e-3600*o-60*i)<10&&(n="0"+n),"\u5269\u4f59:"+i+":"+n},getTime:function(t){var e=null,i=null;return i=t-60*(e=Math.floor(t/60)),e<10&&(e="0"+e),i<10&&(i="0"+i),e+":"+i},getNumber:function(t,e){var i=e-3;return t>Math.pow(1e3,8)*Math.pow(10,i)?t/Math.pow(1e3,8)<100?Math.floor(t/Math.pow(1e3,8)*10)/10+"S":Math.floor(t/Math.pow(1e3,8))+"S":t>Math.pow(1e3,7)*Math.pow(10,i)?t/Math.pow(1e3,7)<100?Math.floor(t/Math.pow(1e3,7)*10)/10+"s":Math.floor(t/Math.pow(1e3,7))+"s":t>Math.pow(1e3,6)*Math.pow(10,i)?t/Math.pow(1e3,6)<100?Math.floor(t/Math.pow(1e3,6)*10)/10+"Q":Math.floor(t/Math.pow(1e3,6))+"Q":t>Math.pow(1e3,5)*Math.pow(10,i)?t/Math.pow(1e3,5)<100?Math.floor(t/Math.pow(1e3,5)*10)/10+"q":Math.floor(t/Math.pow(1e3,5))+"q":t>Math.pow(1e3,4)*Math.pow(10,i)?t/Math.pow(1e3,4)<100?Math.floor(t/Math.pow(1e3,4)*10)/10+"t":Math.floor(t/Math.pow(1e3,4))+"t":t>Math.pow(1e3,3)*Math.pow(10,i)?t/Math.pow(1e3,3)<100?Math.floor(t/Math.pow(1e3,3)*10)/10+"b":Math.floor(t/Math.pow(1e3,3))+"b":t>Math.pow(1e3,2)*Math.pow(10,i)?t/Math.pow(1e3,2)<100?Math.floor(t/Math.pow(1e3,2)*10)/10+"m":Math.floor(t/Math.pow(1e3,2))+"m":t>Math.pow(1e3,1)*Math.pow(10,i)?t/Math.pow(1e3,1)<100?Math.floor(t/Math.pow(1e3,1)*10)/10+"k":Math.floor(t/Math.pow(1e3,1))+"k":Math.floor(t/Math.pow(1e3,0))+""},begainTiming:function(){this._startTime=(new Date).getTime()},endTiming2:function(){var t=(new Date).getTime();this._endTime=t,this._totalTime=t-this._startTime},getScoreTime:function(){var t=(new Date).getTime(),e=t-this._startTime;(e<0||e>500)&&(e=Math.round(1e3*cc.director.getAnimationInterval())),n.default._instance.GM_INFO.currScore+=e,this._startTime=t},getFormatTime:function(t){var e=new Date;e.setTime(t);var i=e.getMilliseconds(),n=null,o=null,a=null;return(n=Math.floor(i/10)%100)<10&&(n="0"+n),(o=e.getSeconds())<10&&(o="0"+o),(a=e.getMinutes())<10&&(a="0"+a),(a+=":")+(o+=":")+n},pushLister:function(){},removeAllLister:function(){}};i.GameTool=r,cc._RF.pop()},{"../GameData":"GameData","../crypto/HttpUtil":"HttpUtil","./Storage":"Storage"}],HttpUtil:[function(t,e,i){"use strict";cc._RF.push(e,"9ed319W0ElIkJ/97wj9KJh8","HttpUtil");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r},r=this&&this.__awaiter||function(t,e,i,n){return new(i||(i=Promise))(function(o,a){function r(t){try{c(n.next(t))}catch(e){a(e)}}function s(t){try{c(n.throw(t))}catch(e){a(e)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(r,s)}c((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var i,n,o,a,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,n=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){r=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=cc._decorator,s=r.ccclass,c=(r.property,function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=null,e.itemIndex=0,e}return o(e,t),e.prototype.dataChanged=function(){this.data.name.length>7&&(this.data.name=this.data.name.substring(0,7)+"..."),this.node.getChildByName("rankLab").getComponent(cc.Label).string=this.data.rank+"",this.node.getChildByName("nameLab").getComponent(cc.Label).string=this.data.name+"",this.node.getChildByName("totalLab").getComponent(cc.Label).string=this.data.total+"",this.node.getChildByName("rank").getChildByName("one").active=!1,this.node.getChildByName("rank").getChildByName("two").active=!1,this.node.getChildByName("rank").getChildByName("three").active=!1,1==this.data.rank?(this.node.getChildByName("rank").getChildByName("one").active=!0,this.node.getChildByName("rankLab").active=!1):2==this.data.rank?(this.node.getChildByName("rank").getChildByName("two").active=!0,this.node.getChildByName("rankLab").active=!1):3==this.data.rank?(this.node.getChildByName("rank").getChildByName("three").active=!0,this.node.getChildByName("rankLab").active=!1):this.node.getChildByName("rankLab").active=!0,this.setPic()},e.prototype.setPic=function(){var t=this,e=this.data.pic;cc.assetManager.loadRemote(e,{ext:".jpg"},function(e,i){i&&(t.node.getChildByName("pic").getChildByName("pic").getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(i))})},a([s],e)}(cc.Component));i.default=c,cc._RF.pop()},{}],List:[function(t,e,i){"use strict";cc._RF.push(e,"d5421HgLShFKIjj5f18m1mi","List");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0}),i.StartAxisType=i.ListType=void 0;var r,s,c=t("./ItemRender"),l=cc._decorator,h=l.ccclass,u=l.property;(function(t){t[t.Horizontal=1]="Horizontal",t[t.Vertical=2]="Vertical",t[t.Grid=3]="Grid"})(r=i.ListType||(i.ListType={})),function(t){t[t.Horizontal=1]="Horizontal",t[t.Vertical=2]="Vertical"}(s=i.StartAxisType||(i.StartAxisType={}));var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.itemRender=null,e.type=r.Vertical,e.startAxis=s.Horizontal,e.spaceX=0,e.spaceY=0,e.padding_top=0,e.padding_buttom=0,e.padding_left=0,e._padding=0,e.padding_right=0,e.scrollView=null,e.content=null,e.itemDataList=[],e.spawnCount=0,e.itemList=[],e.itemHeight=0,e.itemWidth=0,e.itemPool=[],e.halfScrollView=0,e.lastContentPosX=0,e.lastContentPosY=0,e.gridRow=0,e.gridCol=0,e.updateTimer=0,e.updateInterval=.1,e.bScrolling=!1,e.updateFun=function(){},e}return o(e,t),e.prototype.onLoad=function(){this.itemHeight=this.itemRender.height,this.itemWidth=this.itemRender.width,this.scrollView=this.node.getComponent(cc.ScrollView),this.content=this.scrollView.content,this.content.anchorX=0,this.content.anchorY=1,this.content.removeAllChildren(),this.scrollView.node.on("scrolling",this.onScrolling,this)},e.prototype.setData=function(t){this.itemDataList=t.slice(),this.updateContent()},e.prototype.countListParam=function(){var t=this.itemDataList.length;this.type==r.Vertical?(this.scrollView.horizontal=!1,this.scrollView.vertical=!0,this.content.width=this.content.parent.width,this.content.height=t*this.itemHeight+(t-1)*this.spaceY+this.padding_top+this.padding_buttom,this.spawnCount=Math.round(this.scrollView.node.height/(this.itemHeight+this.spaceY))+5,this.halfScrollView=this.scrollView.node.height/2+this.itemHeight/2+this.spaceY,this.updateFun=this.updateV):this.type==r.Horizontal?(this.scrollView.horizontal=!0,this.scrollView.vertical=!1,this.content.width=t*this.itemWidth+(t-1)*this.spaceX+this.padding_left+this.padding_right,this.content.height=this.content.parent.height,this.spawnCount=Math.round(this.scrollView.node.width/(this.itemWidth+this.spaceX))+2,this.halfScrollView=this.scrollView.node.width/2+this.itemWidth/2+this.spaceX,this.updateFun=this.udpateH):this.type==r.Grid&&(this.startAxis==s.Vertical?(this.scrollView.horizontal=!1,this.scrollView.vertical=!0,this.content.width=this.content.parent.width,this.padding_left+this.padding_right+this.itemWidth+this.spaceX>this.content.width&&(this.padding_left=0,this.padding_right=0,console.error("padding_left\u6216padding_right\u8fc7\u5927")),this.gridCol=Math.floor((this.content.width-this.padding_left-this.padding_right)/(this.itemWidth+this.spaceX)),this.gridRow=Math.ceil(t/this.gridCol),this.content.height=this.gridRow*this.itemHeight+(this.gridRow-1)*this.spaceY+this.padding_top+this.padding_buttom,this.spawnCount=Math.round(this.scrollView.node.height/(this.itemHeight+this.spaceY))*this.gridCol+2*this.gridCol,this.halfScrollView=this.scrollView.node.height/2+this.itemHeight/2+this.spaceY,this.updateFun=this.updateGrid_V):this.startAxis==s.Horizontal&&(this.scrollView.horizontal=!0,this.scrollView.vertical=!1,this.content.height=this.content.parent.height,this.padding_top+this.padding_buttom+this.itemHeight+this.spaceY>this.content.height&&(this.padding_top=0,this.padding_buttom=0,console.error("padding_top\u6216padding_buttom\u8fc7\u5927")),this.gridRow=Math.floor((this.content.height-this.padding_top-this.padding_buttom)/(this.itemHeight+this.spaceY)),this.gridCol=Math.ceil(t/this.gridRow),this.content.width=this.gridCol*this.itemWidth+(this.gridCol-1)*this.spaceX+this.padding_left+this.padding_right,this.spawnCount=Math.round(this.scrollView.node.width/(this.itemWidth+this.spaceX))*this.gridRow+2*this.gridRow,this.halfScrollView=this.scrollView.node.width/2+this.itemWidth/2+this.spaceX,this.updateFun=this.updateGrid_H))},e.prototype.createList=function(t,e){this.itemDataList.length>this.spawnCount&&t+this.spawnCount-1>=this.itemDataList.length?(t=this.itemDataList.length-this.spawnCount,e=this.scrollView.getMaxScrollOffset()):this.itemDataList.length<=this.spawnCount&&(t=0);for(var i=0;ithis.itemDataList.length-t&&((n=this.itemList.pop()).removeFromParent(),this.itemPool.push(n))}this.scrollView.scrollToOffset(e)},e.prototype.getItem=function(){return 0==this.itemPool.length?cc.instantiate(this.itemRender):this.itemPool.pop()},e.prototype.update=function(t){0!=this.bScrolling&&(this.updateTimer+=t,this.updateTimerthis.lastContentPosY,o=(this.itemHeight+this.spaceY)*e.length,a=0;ai&&t.y-o-this.padding_buttom>-this.content.height){var s=(l=t.getComponent(c.default)).itemIndex+e.length;l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.y=t.y-o}}else if(r.y<-i&&t.y+o+this.padding_top<0){var l;s=(l=t.getComponent(c.default)).itemIndex-e.length,l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.y=t.y+o}}this.lastContentPosY=this.scrollView.content.y},e.prototype.udpateH=function(){for(var t,e=this.itemList,i=this.halfScrollView,n=this.scrollView.content.x>this.lastContentPosX,o=(this.itemWidth+this.spaceX)*e.length,a=0;ai&&t.x-o-this.padding_left>0){var s=(l=t.getComponent(c.default)).itemIndex-e.length;l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.x=t.x-o}}else if(r.x<-i&&t.x+o+this.padding_rightthis.lastContentPosY,o=(this.itemHeight+this.spaceY)*(this.spawnCount/this.gridCol),a=0;ai&&t.y-o-this.padding_buttom>-this.content.height){var s=(l=t.getComponent(c.default)).itemIndex+this.spawnCount/this.gridCol*this.gridCol;null!=this.itemDataList[s]?(t.y=t.y-o,l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.opacity=255):(t.y=t.y-o,l.itemIndex=s,t.opacity=0)}}else if(r.y<-i&&t.y+o+this.padding_top<0){var l;s=(l=t.getComponent(c.default)).itemIndex-this.spawnCount/this.gridCol*this.gridCol,null!=this.itemDataList[s]?(t.y=t.y+o,l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.opacity=255):(t.y=t.y+o,l.itemIndex=s,t.opacity=0)}}this.lastContentPosY=this.scrollView.content.y},e.prototype.updateGrid_H=function(){for(var t,e=this.itemList,i=this.halfScrollView,n=this.scrollView.content.x>this.lastContentPosX,o=(this.itemWidth+this.spaceX)*(this.spawnCount/this.gridRow),a=0;ai&&t.x-o-this.padding_left>0){var s=(l=t.getComponent(c.default)).itemIndex-this.spawnCount/this.gridRow*this.gridRow;null!=this.itemDataList[s]?(t.x=t.x-o,l.itemIndex=s,l.data=this.itemDataList[s],l.dataChanged(),t.opacity=255):(t.x=t.x-o,l.itemIndex=s,t.opacity=0)}}else if(r.x<-i&&t.x+o+this.padding_right=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./tool/AudioManager"),s=t("./tool/GameTool"),c=cc._decorator,l=c.ccclass,h=c.property,u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.label=null,e.text="hello",e}return o(e,t),e.prototype.start=function(){s.GameTool.Authentication()},e.prototype.click=function(){r.default._instance.playMusicGame(),cc.director.loadScene("GuideScene")},e.prototype.openRank=function(){r.default._instance.playMusicGame(),cc.director.loadScene("RankScene")},a([h(cc.Label)],e.prototype,"label",void 0),a([h],e.prototype,"text",void 0),a([l],e)}(cc.Component);i.default=u,cc._RF.pop()},{"./tool/AudioManager":"AudioManager","./tool/GameTool":"GameTool"}],Notification:[function(t,e,i){"use strict";cc._RF.push(e,"bc645/UI1FCCZN1kaSNle9o","Notification"),Object.defineProperty(i,"__esModule",{value:!0}),i.Notification=void 0;i.Notification={_eventMap:[],on:function(t,e,i){void 0===this._eventMap[t]&&(this._eventMap[t]=[]),this._eventMap[t].push({callback:e,target:i})},emit:function(t,e){var i=this._eventMap[t];if(void 0!==i)for(var n=0;n=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./GameManager"),c=t("./tool/AudioManager"),l=t("./tool/Notification"),h=cc._decorator,u=h.ccclass,d=h.property,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.add=null,e.plist=null,e}return o(e,t),e.prototype.start=function(){this.init()},e.prototype.init=function(){this.jumpState=0,this.jumpHeight=this.node.y,this.basicHeight=this.node.y,this.up=!0,this.double=!1,this.death=!1,this.jumpAction=null,this.block=null,this.interfere=!1,this.jumpPause=!0},e.prototype.jump=function(){var t=this;if(this.jumpState<2){if(0==this.jumpState)0==this.death&&this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",!1);else if((1==this.jumpState||this.node.y>this.jumpHeight+r.default._instance.GM_INFO.jumpHeight-5)&&0==this.death){if(s.default._instance.guide>0&&s.default._instance.guide<3)return;this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",!1)}setTimeout(function(){if(0==t.jumpState){if(1==t.jumpPause)return;t.block&&("block13"!=t.block.name?t.block.getComponent("Block").hide():(t.block.active=!1,t.jumpPause=!0),t.block=null),1==s.default._instance.guide&&(s.default._instance.guide=2,s.default._instance.startGuide(2)),r.default._instance.CLICK_DATA.jumps=1,c.default._instance.playJump(),t.jumpState+=1,t.up=!0,l.Notification.emit("showGround",t.node.y),t.jumpAction=cc.tween(t.node).to(r.default._instance.GM_INFO.jumpUpTime,{position:cc.v3(0,t.jumpHeight+r.default._instance.GM_INFO.jumpHeight,0)},{easing:"quadOut"}).call(function(){t.up=!1,t.jumpState=-1,t.node.y,t.jumpHeight}).to(r.default._instance.GM_INFO.jumpDownTime,{position:cc.v3(0,t.jumpHeight,0)},{easing:"cubicIn"}).call(function(){t.jumpHeight=t.node.y,t.jumpState=-1,t.up=!0}).start()}else if(1==t.jumpState||t.node.y>t.jumpHeight+r.default._instance.GM_INFO.jumpHeight-15){if(s.default._instance.guide>0&&s.default._instance.guide<3)return;6==s.default._instance.guide&&(t.jumpPause=!0,s.default._instance.startGuide(6)),t.jumpAction&&t.jumpAction.stop(),c.default._instance.playJump(),r.default._instance.CLICK_DATA.jumps=2,t.jumpState=2,t.up=!0,t.jumpAction=cc.tween(t.node).to(r.default._instance.GM_INFO.jumpUpTime,{position:cc.v3(0,t.node.y+r.default._instance.GM_INFO.jumpHeight,0)},{easing:"quadOut"}).call(function(){t.up=!1}).to(1.5*r.default._instance.GM_INFO.jumpDownTime,{position:cc.v3(0,t.jumpHeight,0)},{easing:"cubicIn"}).call(function(){t.jumpState=-1,t.jumpHeight=t.node.y,t.up=!0}).start()}},100)}},e.prototype.onCollisionEnter=function(t){if(!s.default._instance||1!=s.default._instance.over){var e=t.name.length,i=6;"Ground"!=t.node.name&&(-1==s.default._instance.guide?t.node.getComponent("Block").num>9&&(i=7):i=7);var n=t.name.substring(i,e);if(""==n&&(this.node.y<=t.node.y&&1==this.up&&0==this.death?(this.jumpAction&&this.jumpAction.stop(),this.jumpState=-1,c.default._instance.playGround(),console.log("\u6b7b\u4ea11"),this.gameDeath()):"Ground"==t.node.name&&0==this.death&&(this.jumpState=-1,console.log("\u6b7b\u4ea12"),this.gameDeath())),""==n){if(1==this.death)return void console.log("\u5df2\u7ecf\u6b7b\u4ea1");var o=Math.abs(this.node.y-t.node.y),a=t.node.width/2,l=Math.abs(this.node.x-t.node.x)/a;1==this.up?(console.log("\u6b7b\u4ea14"),c.default._instance.playGround(),this.gameDeath()):100*l=20||100*l>r.default._instance.GM_INFO.distanceMax?(console.log("\u6b7b\u4ea13","\u843d\u5dee:",o,"\u72b6\u6001:",this.up),c.default._instance.playGround(),this.gameDeath()):(console.log("\u767e\u5206\u6bd4:",100*l+"%"),this.success(t,100*l))}}},e.prototype.success=function(t,e){if(this.jumpPause=!0,-1!=s.default._instance.guide)if(this.basicHeight=this.node.y,t.node.stopAllActions(),3==s.default._instance.guide||4==s.default._instance.guide)s.default._instance.startGuide(4),4==s.default._instance.guide&&(s.default._instance.guide=5);else if(5==s.default._instance.guide){this.jumpPause=!0;var i=s.default._instance.Tip.getChildByName("good");cc.tween(i).to(.3,{opacity:255,scale:1}).delay(.5).to(.2,{opacity:0}).call(function(){s.default._instance.startGuide(5)}).start()}else 7==s.default._instance.guide?s.default._instance.startGuide(8):8==s.default._instance.guide&&(this.jumpPause=!0,i=s.default._instance.Tip.getChildByName("perfet"),cc.tween(i).to(.3,{opacity:255,scale:1}).delay(.5).to(.2,{opacity:0}).call(function(){s.default._instance.startGuide(9)}).start());r.default._instance.CLICK_DATA.percent=Math.floor(e),s.default._instance&&s.default._instance.destroyBlock(!0),this.add.active=!0,this.add.opacity=0;var n=1;if(e<=7.5?n=3:e<=15&&(n=2),r.default._instance.CLICK_DATA.accuracy=n,this.add.getChildByName("icon").getComponent(cc.Sprite).spriteFrame=this.plist.getSpriteFrames()[n],this.add.getChildByName("jia").getComponent(cc.Sprite).spriteFrame=this.plist.getSpriteFrames()[n+3],this.addAction(),this.node.getChildByName("guang").active=!0,this.node.getChildByName("guang").getComponent(sp.Skeleton).setAnimation(0,"double_1",!1),this.jumpAction&&this.jumpAction.stop(),0==this.death&&this.node.getChildByName("sp").getComponent(sp.Skeleton).setAnimation(1,"jump",!1),this.block=t.node,"block13"!=this.block.name&&this.block.getComponent("Block").setScore(n),this.basicHeight=this.node.y,n>1){c.default._instance.playPz(),0==this.double?(this.double=!0,r.default._instance.LEVEL_INFO.doubleHit=1.05):r.default._instance.LEVEL_INFO.doubleHit+=r.default._instance.LEVEL_INFO.doubleAdd;var o=20*(r.default._instance.LEVEL_INFO.doubleHit-1);r.default._instance.CLICK_DATA.combo=parseInt(o+"")}else c.default._instance.playLuo(),this.double=!1,r.default._instance.CLICK_DATA.combo=0;l.Notification.emit("setData",null),setTimeout(function(){-1==s.default._instance.guide&&l.Notification.emit("createBlock",null)},10),n>1&&0!=r.default._instance.LEVEL_INFO.doubleSuccess?r.default._instance.LEVEL_INFO.doubleSuccess-=1:0!=r.default._instance.LEVEL_INFO.doubleSuccess&&r.default._instance.LEVEL_INFO.doubleSuccess<3&&(r.default._instance.LEVEL_INFO.doubleSuccess=3),0==r.default._instance.LEVEL_INFO.doubleSuccess?setTimeout(function(){-1==s.default._instance.guide&&l.Notification.emit("createCrackBlock",null)},20):(s.default._instance.interfere=!1,r.default._instance.CLICK_DATA.fake=s.default._instance.interfere),this.jumpState=0,this.up=!0,this.node.y=t.node.y-3+t.node.height/2,this.jumpHeight=this.node.y},e.prototype.gameDeath=function(){this.jumpPause=!0,r.default._instance.GM_INFO.probation?(this.death=!0,6==s.default._instance.guide&&s.default._instance.tipHide("tip3",null),this.jumpAction&&this.jumpAction.stop(),this.jumpState=-1,l.Notification.emit("death",!0)):(r.default._instance.CLICK_DATA.combo=0,r.default._instance.CLICK_DATA.accuracy=0,r.default._instance.CLICK_DATA.percent=-1,l.Notification.emit("setData",null),this.double=!1,r.default._instance.LEVEL_INFO.doubleSuccess=3,this.death=!0,this.jumpAction&&this.jumpAction.stop(),this.jumpState=-1,l.Notification.emit("death",null))},e.prototype.xinAction=function(){if(r.default._instance.GM_INFO.life>=0){var t=this.node.getChildByName("xin");t.y=120,cc.tween(t).to(.2,{opacity:255,y:t.y+50}).delay(.5).to(.3,{opacity:0,y:t.y+100}).call(function(){}).start()}},e.prototype.addAction=function(){var t=this;this.add.y=120,cc.tween(this.add).to(.2,{opacity:255,y:this.add.y+50}).delay(.5).to(.3,{opacity:0,y:this.add.y+100}).call(function(){t.add.active=!1}).start()},e.prototype.update=function(){},a([d(cc.Node)],e.prototype,"add",void 0),a([d(cc.SpriteAtlas)],e.prototype,"plist",void 0),a([u],e)}(cc.Component);i.default=p,cc._RF.pop()},{"./GameData":"GameData","./GameManager":"GameManager","./tool/AudioManager":"AudioManager","./tool/Notification":"Notification"}],RankManager:[function(t,e,i){"use strict";cc._RF.push(e,"9c7ccNc8VlJ9Jy7qfTPoy0E","RankManager");var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),a=this&&this.__decorate||function(t,e,i,n){var o,a=arguments.length,r=a<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};Object.defineProperty(i,"__esModule",{value:!0});var r=t("./GameData"),s=t("./ListView/List"),c=t("./crypto/HttpUtil"),l=cc._decorator,h=l.ccclass,u=l.property,d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.Player=null,e.selfNode=null,e.phone=null,e}return o(e,t),e.prototype.onLoad=function(){this.init()},e.prototype.init=function(){this.rankList=cc.find("ScrollView",this.node).getComponent(s.default),this.Player.getChildByName("rank").active=!1,this.listData=[],this.selfData=null,this.rankNumber=100,this.rankTotal=100,this.selfNode.opacity=0},e.prototype.start=function(){this.Player.active=!1,this.getRank()},e.prototype.getRank=function(){c.default.rankData(2,this.getRankData.bind(this),{page:1,pageSize:100})},e.prototype.getRankData=function(t){if(t){this.listData=t.data.list,this.selfData=t.data.info;for(var e=[],i=!1,n=0;n<=this.listData.length-1;n++)e.push({rank:n+1,name:this.listData[n].nickName,total:this.listData[n].score,pic:this.listData[n].pic}),r.default._instance.GM_INFO.userId==this.listData[n].userId&&(i=!0,this.rankNumber=n,this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string=n+1+""),n==this.listData.length-1&&0==i&&(this.rankNumber=101,this.listData.length>=99?this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string="99+":this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string="\u672a\u6392\u540d");0==this.listData.length&&(this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string="\u672a\u6392\u540d"),this.rankList.setData(e),this.selfData.nickName.length>6&&(this.selfData.nickName=this.selfData.nickName.substring(0,6)+"..."),this.selfNode.getChildByName("nameLab").getComponent(cc.Label).string=this.selfData.nickName,this.selfData.score&&(this.selfNode.getChildByName("totalLab").getComponent(cc.Label).string=this.selfData.score),this.setPic(this.selfData.pic),"1"==this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string?this.selfNode.getChildByName("rank").getChildByName("one").active=!0:"2"==this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string?this.selfNode.getChildByName("rank").getChildByName("two").active=!0:"3"==this.selfNode.getChildByName("rankLab").getComponent(cc.Label).string&&(this.selfNode.getChildByName("rank").getChildByName("three").active=!0),this.selfNode.opacity=255,0==this.selfData.score&&(this.selfNode.opacity=0)}},e.prototype.backClick=function(){cc.director.loadScene("LoadScene")},e.prototype.playerAction=function(){var t=this;this.Player.getChildByName("rank").active=!1;var e=1;if(this.tween=cc.tween(this.Player).to(2,{position:cc.v3(210,485,0)}).call(function(){t.Player.getChildByName("rank").active=!0,t.Player.getChildByName("rank").getChildByName("number").getComponent(cc.Label).string=parseInt(100*e+"")+"%"}).start(),this.listData.length>0){if(e=(this.listData.length-this.rankNumber)/this.listData.length,this.listData.length>=99&&this.rankNumber>=99){e=(49*Math.random()+1)/100;var i=cc.sys.localStorage.getItem("matchNumber");null!=i&&null!=i||(e=0)}}else e=0;setTimeout(function(){t.tween&&t.tween.stop(),t.Player&&(t.Player.getChildByName("rank").active=!0,t.Player.getChildByName("rank").getChildByName("number").getComponent(cc.Label).string=parseInt(100*e+"")+"%")},2e3*e)},e.prototype.setPic=function(t){var e=this;this.phone.node.parent.getChildByName("icon").active=!1,this.phone.node.active=!1,this.Player.active=!0,this.Player.opacity=0,this.Player.getChildByName("mask").getChildByName("icon").active=!1,this.Player.getChildByName("mask").getChildByName("phone").active=!1,fetch(t).then(function(t){return t.headers.get("Content-Length")}).then(function(t){"5093"==t&&(e.phone.node.parent.getChildByName("icon").active=!0,e.Player.getChildByName("mask").getChildByName("icon").active=!0)}).catch(function(t){console.error("Error fetching X-Info:",t)});var i=this;cc.assetManager.loadRemote(t,{ext:".png"},function(t,e){i.Player.opacity=255,e?(i.phone.node.active=!0,i.phone.spriteFrame=new cc.SpriteFrame(e),i.Player.getChildByName("mask").getChildByName("icon").active=!1,i.Player.getChildByName("mask").getChildByName("phone").active=!0,i.Player.getChildByName("mask").getChildByName("phone").getComponent(cc.Sprite).spriteFrame=new cc.SpriteFrame(e),setTimeout(function(){i.playerAction()},500)):(i.Player.getChildByName("mask").getChildByName("icon").active=!0,setTimeout(function(){i.playerAction()},500))})},a([u(cc.Node)],e.prototype,"Player",void 0),a([u(cc.Node)],e.prototype,"selfNode",void 0),a([u(cc.Sprite)],e.prototype,"phone",void 0),a([h],e)}(cc.Component);i.default=d,cc._RF.pop()},{"./GameData":"GameData","./ListView/List":"List","./crypto/HttpUtil":"HttpUtil"}],Storage:[function(t,e,i){"use strict";cc._RF.push(e,"e4f51plCa5CE6sxRV+Bx5GJ","Storage"),Object.defineProperty(i,"__esModule",{value:!0}),i.StorageMessage=void 0;var n={getStorage:function(t){var e=null;return cc.sys.localStorage.getItem(t)&&(e=cc.sys.localStorage.getItem(t)),e&&(e=JSON.parse(e)),e},setStorage:function(t,e){var i=JSON.stringify(e);cc.sys.localStorage.setItem(t,i)},removeStorage:function(t){cc.sys.localStorage.getItem(t)&&cc.sys.localStorage.removeItem(t)}};i.StorageMessage=n,cc._RF.pop()},{}],"crypto-js.min":[function(t,e,i){"use strict";cc._RF.push(e,"e64e1qXyT9CV6s0gDQdj/ed","crypto-js.min"),function(t,n){"object"==typeof i?e.exports=i=n():"function"==typeof define&&define.amd?define([],n):(void 0).CryptoJS=n()}(0,function(){var t,e,i,n,o,a,r,s=s||function(t){var e=Object.create||function(){function t(){}return function(e){var i;return t.prototype=e,i=new t,t.prototype=null,i}}(),i={},n=i.lib={},o=n.Base={extend:function(t){var i=e(this);return t&&i.mixIn(t),i.hasOwnProperty("init")&&this.init!==i.init||(i.init=function(){i.$super.init.apply(this,arguments)}),i.init.prototype=i,i.$super=this,i},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=n.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||s).stringify(this)},concat:function(t){var e=this.words,i=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var a=0;a>>2]>>>24-a%4*8&255;e[n+a>>>2]|=r<<24-(n+a)%4*8}else for(a=0;a>>2]=i[a>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var i,n=[],o=function(e){e=e;var i=987654321,n=4294967295;return function(){var o=((i=36969*(65535&i)+(i>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return o/=4294967296,(o+=.5)*(t.random()>.5?1:-1)}},r=0;r>>2]>>>24-o%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new a.init(i,e/2)}},c=r.Latin1={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new a.init(i,e)}},l=r.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},h=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i=this._data,n=i.words,o=i.sigBytes,r=this.blockSize,s=o/(4*r),c=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*r,l=t.min(4*c,o);if(c){for(var h=0;h>>6-r%4*2;o[a>>>2]|=(s|c)<<24-a%4*8,a++}return i.create(o,a)}var e=s,i=e.lib.WordArray;e.enc.Base64={stringify:function(t){var e=t.words,i=t.sigBytes,n=this._map;t.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(e[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|e[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var i=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>32-a)+e}function i(t,e,i,n,o,a,r){var s=t+(e&n|i&~n)+o+r;return(s<>>32-a)+e}function n(t,e,i,n,o,a,r){var s=t+(e^i^n)+o+r;return(s<>>32-a)+e}function o(t,e,i,n,o,a,r){var s=t+(i^(e|~n))+o+r;return(s<>>32-a)+e}var a=s,r=a.lib,c=r.WordArray,l=r.Hasher,h=a.algo,u=[];!function(){for(var e=0;e<64;e++)u[e]=4294967296*t.abs(t.sin(e+1))|0}();var d=h.MD5=l.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,a){for(var r=0;r<16;r++){var s=a+r,c=t[s];t[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var l=this._hash.words,h=t[a+0],d=t[a+1],p=t[a+2],f=t[a+3],y=t[a+4],g=t[a+5],_=t[a+6],m=t[a+7],v=t[a+8],C=t[a+9],w=t[a+10],b=t[a+11],B=t[a+12],k=t[a+13],M=t[a+14],S=t[a+15],N=l[0],I=l[1],O=l[2],L=l[3];N=e(N,I,O,L,h,7,u[0]),L=e(L,N,I,O,d,12,u[1]),O=e(O,L,N,I,p,17,u[2]),I=e(I,O,L,N,f,22,u[3]),N=e(N,I,O,L,y,7,u[4]),L=e(L,N,I,O,g,12,u[5]),O=e(O,L,N,I,_,17,u[6]),I=e(I,O,L,N,m,22,u[7]),N=e(N,I,O,L,v,7,u[8]),L=e(L,N,I,O,C,12,u[9]),O=e(O,L,N,I,w,17,u[10]),I=e(I,O,L,N,b,22,u[11]),N=e(N,I,O,L,B,7,u[12]),L=e(L,N,I,O,k,12,u[13]),O=e(O,L,N,I,M,17,u[14]),N=i(N,I=e(I,O,L,N,S,22,u[15]),O,L,d,5,u[16]),L=i(L,N,I,O,_,9,u[17]),O=i(O,L,N,I,b,14,u[18]),I=i(I,O,L,N,h,20,u[19]),N=i(N,I,O,L,g,5,u[20]),L=i(L,N,I,O,w,9,u[21]),O=i(O,L,N,I,S,14,u[22]),I=i(I,O,L,N,y,20,u[23]),N=i(N,I,O,L,C,5,u[24]),L=i(L,N,I,O,M,9,u[25]),O=i(O,L,N,I,f,14,u[26]),I=i(I,O,L,N,v,20,u[27]),N=i(N,I,O,L,k,5,u[28]),L=i(L,N,I,O,p,9,u[29]),O=i(O,L,N,I,m,14,u[30]),N=n(N,I=i(I,O,L,N,B,20,u[31]),O,L,g,4,u[32]),L=n(L,N,I,O,v,11,u[33]),O=n(O,L,N,I,b,16,u[34]),I=n(I,O,L,N,M,23,u[35]),N=n(N,I,O,L,d,4,u[36]),L=n(L,N,I,O,y,11,u[37]),O=n(O,L,N,I,m,16,u[38]),I=n(I,O,L,N,w,23,u[39]),N=n(N,I,O,L,k,4,u[40]),L=n(L,N,I,O,h,11,u[41]),O=n(O,L,N,I,f,16,u[42]),I=n(I,O,L,N,_,23,u[43]),N=n(N,I,O,L,C,4,u[44]),L=n(L,N,I,O,B,11,u[45]),O=n(O,L,N,I,S,16,u[46]),N=o(N,I=n(I,O,L,N,p,23,u[47]),O,L,h,6,u[48]),L=o(L,N,I,O,m,10,u[49]),O=o(O,L,N,I,M,15,u[50]),I=o(I,O,L,N,g,21,u[51]),N=o(N,I,O,L,B,6,u[52]),L=o(L,N,I,O,f,10,u[53]),O=o(O,L,N,I,w,15,u[54]),I=o(I,O,L,N,d,21,u[55]),N=o(N,I,O,L,v,6,u[56]),L=o(L,N,I,O,S,10,u[57]),O=o(O,L,N,I,_,15,u[58]),I=o(I,O,L,N,k,21,u[59]),N=o(N,I,O,L,y,6,u[60]),L=o(L,N,I,O,b,10,u[61]),O=o(O,L,N,I,p,15,u[62]),I=o(I,O,L,N,C,21,u[63]),l[0]=l[0]+N|0,l[1]=l[1]+I|0,l[2]=l[2]+O|0,l[3]=l[3]+L|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;i[o>>>5]|=128<<24-o%32;var a=t.floor(n/4294967296),r=n;i[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i[14+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(i.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var h=c[l];c[l]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return s},clone:function(){var t=l.clone.call(this);return t._hash=this._hash.clone(),t}});a.MD5=l._createHelper(d),a.HmacMD5=l._createHmacHelper(d)}(Math),e=(t=s).lib,i=e.WordArray,n=e.Hasher,o=t.algo,a=[],r=o.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],o=i[1],r=i[2],s=i[3],c=i[4],l=0;l<80;l++){if(l<16)a[l]=0|t[e+l];else{var h=a[l-3]^a[l-8]^a[l-14]^a[l-16];a[l]=h<<1|h>>>31}var u=(n<<5|n>>>27)+c+a[l];u+=l<20?1518500249+(o&r|~o&s):l<40?1859775393+(o^r^s):l<60?(o&r|o&s|r&s)-1894007588:(o^r^s)-899497514,c=s,s=r,r=o<<30|o>>>2,o=n,n=u}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+r|0,i[3]=i[3]+s|0,i[4]=i[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(n+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),t.SHA1=n._createHelper(r),t.HmacSHA1=n._createHmacHelper(r),function(t){var e=s,i=e.lib,n=i.WordArray,o=i.Hasher,a=e.algo,r=[],c=[];!function(){function e(e){for(var i=t.sqrt(e),n=2;n<=i;n++)if(!(e%n))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}for(var n=2,o=0;o<64;)e(n)&&(o<8&&(r[o]=i(t.pow(n,.5))),c[o]=i(t.pow(n,1/3)),o++),n++}();var l=[],h=a.SHA256=o.extend({_doReset:function(){this._hash=new n.init(r.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],o=i[1],a=i[2],r=i[3],s=i[4],h=i[5],u=i[6],d=i[7],p=0;p<64;p++){if(p<16)l[p]=0|t[e+p];else{var f=l[p-15],y=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=l[p-2],_=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[p]=y+l[p-7]+_+l[p-16]}var m=n&o^n&a^o&a,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),C=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&h^~s&u)+c[p]+l[p];d=u,u=h,h=s,s=r+C|0,r=a,a=o,o=n,n=C+(v+m)|0}i[0]=i[0]+n|0,i[1]=i[1]+o|0,i[2]=i[2]+a|0,i[3]=i[3]+r|0,i[4]=i[4]+s|0,i[5]=i[5]+h|0,i[6]=i[6]+u|0,i[7]=i[7]+d|0},_doFinalize:function(){var e=this._data,i=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return i[o>>>5]|=128<<24-o%32,i[14+(o+64>>>9<<4)]=t.floor(n/4294967296),i[15+(o+64>>>9<<4)]=n,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(h),e.HmacSHA256=o._createHmacHelper(h)}(Math),function(){function t(t){return t<<8&4278255360|t>>>8&16711935}var e=s,i=e.lib.WordArray,n=e.enc;n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,i=t.sigBytes,n=[],o=0;o>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o>>1]|=t.charCodeAt(o)<<16-o%2*16;return i.create(n,2*e)}},n.Utf16LE={stringify:function(e){for(var i=e.words,n=e.sigBytes,o=[],a=0;a>>2]>>>16-a%4*8&65535);o.push(String.fromCharCode(r))}return o.join("")},parse:function(e){for(var n=e.length,o=[],a=0;a>>1]|=t(e.charCodeAt(a)<<16-a%2*16);return i.create(o,2*n)}}}(),function(){if("function"==typeof ArrayBuffer){var t=s.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var i=t.byteLength,n=[],o=0;o>>2]|=t[o]<<24-o%4*8;e.call(this,n,i)}else e.apply(this,arguments)}).prototype=t}}(),function(){function t(t,e,i){return t^e^i}function e(t,e,i){return t&e|~t&i}function i(t,e,i){return(t|~e)^i}function n(t,e,i){return t&i|e&~i}function o(t,e,i){return t^(e|~i)}function a(t,e){return t<>>32-e}var r=s,c=r.lib,l=c.WordArray,h=c.Hasher,u=r.algo,d=l.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),p=l.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=l.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=l.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=l.create([0,1518500249,1859775393,2400959708,2840853838]),_=l.create([1352829926,1548603684,1836072691,2053994217,0]),m=u.RIPEMD160=h.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,s){for(var c=0;c<16;c++){var l=s+c,h=r[l];r[l]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}var u,m,v,C,w,b,B,k,M,S,N,I=this._hash.words,O=g.words,L=_.words,x=d.words,A=p.words,P=f.words,D=y.words;for(b=u=I[0],B=m=I[1],k=v=I[2],M=C=I[3],S=w=I[4],c=0;c<80;c+=1)N=u+r[s+x[c]]|0,N+=c<16?t(m,v,C)+O[0]:c<32?e(m,v,C)+O[1]:c<48?i(m,v,C)+O[2]:c<64?n(m,v,C)+O[3]:o(m,v,C)+O[4],N=(N=a(N|=0,P[c]))+w|0,u=w,w=C,C=a(v,10),v=m,m=N,N=b+r[s+A[c]]|0,N+=c<16?o(B,k,M)+L[0]:c<32?n(B,k,M)+L[1]:c<48?i(B,k,M)+L[2]:c<64?e(B,k,M)+L[3]:t(B,k,M)+L[4],N=(N=a(N|=0,D[c]))+S|0,b=S,S=M,M=a(k,10),k=B,B=N;N=I[1]+v+M|0,I[1]=I[2]+C+S|0,I[2]=I[3]+w+b|0,I[3]=I[4]+u+B|0,I[4]=I[0]+m+k|0,I[0]=N},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,a=o.words,r=0;r<5;r++){var s=a[r];a[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var t=h.clone.call(this);return t._hash=this._hash.clone(),t}});r.RIPEMD160=h._createHelper(m),r.HmacRIPEMD160=h._createHmacHelper(m)}(Math),function(){var t=s,e=t.lib.Base,i=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var n=t.blockSize,o=4*n;e.sigBytes>o&&(e=t.finalize(e)),e.clamp();for(var a=this._oKey=e.clone(),r=this._iKey=e.clone(),s=a.words,c=r.words,l=0;l>>24)|4278255360&(a<<24|a>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(I=i[o]).high^=r,I.low^=a}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var p=0,f=0,y=0;y<5;y++)p^=(I=i[d+5*y]).high,f^=I.low;var g=u[d];g.high=p,g.low=f}for(d=0;d<5;d++){var _=u[(d+4)%5],m=u[(d+1)%5],v=m.high,C=m.low;for(p=_.high^(v<<1|C>>>31),f=_.low^(C<<1|v>>>31),y=0;y<5;y++)(I=i[d+5*y]).high^=p,I.low^=f}for(var w=1;w<25;w++){var b=(I=i[w]).high,B=I.low,k=c[w];k<32?(p=b<>>32-k,f=B<>>32-k):(p=B<>>64-k,f=b<>>64-k);var M=u[l[w]];M.high=p,M.low=f}var S=u[0],N=i[0];for(S.high=N.high,S.low=N.low,d=0;d<5;d++)for(y=0;y<5;y++){var I=i[w=d+5*y],O=u[w],L=u[(d+1)%5+5*y],x=u[(d+2)%5+5*y];I.high=O.high^~L.high&x.high,I.low=O.low^~L.low&x.low}I=i[0];var A=h[s];I.high^=A.high,I.low^=A.low}},_doFinalize:function(){var e=this._data,i=e.words,o=(this._nDataBytes,8*e.sigBytes),a=32*this.blockSize;i[o>>>5]|=1<<24-o%32,i[(t.ceil((o+1)/a)*a>>>5)-1]|=128,e.sigBytes=4*i.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],h=0;h>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(d)}return new n.init(l,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),i=0;i<25;i++)e[i]=e[i].clone();return t}});e.SHA3=o._createHelper(d),e.HmacSHA3=o._createHmacHelper(d)}(Math),function(){function t(){return o.create.apply(o,arguments)}var e=s,i=e.lib.Hasher,n=e.x64,o=n.Word,a=n.WordArray,r=e.algo,c=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=t()}();var h=r.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var i=this._hash.words,n=i[0],o=i[1],a=i[2],r=i[3],s=i[4],h=i[5],u=i[6],d=i[7],p=n.high,f=n.low,y=o.high,g=o.low,_=a.high,m=a.low,v=r.high,C=r.low,w=s.high,b=s.low,B=h.high,k=h.low,M=u.high,S=u.low,N=d.high,I=d.low,O=p,L=f,x=y,A=g,P=_,D=m,G=v,j=C,F=w,R=b,T=B,H=k,E=M,V=S,z=N,U=I,K=0;K<80;K++){var X=l[K];if(K<16)var W=X.high=0|t[e+2*K],Y=X.low=0|t[e+2*K+1];else{var q=l[K-15],J=q.high,Z=q.low,Q=(J>>>1|Z<<31)^(J>>>8|Z<<24)^J>>>7,$=(Z>>>1|J<<31)^(Z>>>8|J<<24)^(Z>>>7|J<<25),tt=l[K-2],et=tt.high,it=tt.low,nt=(et>>>19|it<<13)^(et<<3|it>>>29)^et>>>6,ot=(it>>>19|et<<13)^(it<<3|et>>>29)^(it>>>6|et<<26),at=l[K-7],rt=at.high,st=at.low,ct=l[K-16],lt=ct.high,ht=ct.low;W=(W=(W=Q+rt+((Y=$+st)>>>0<$>>>0?1:0))+nt+((Y+=ot)>>>0>>0?1:0))+lt+((Y+=ht)>>>0>>0?1:0),X.high=W,X.low=Y}var ut,dt=F&T^~F&E,pt=R&H^~R&V,ft=O&x^O&P^x&P,yt=L&A^L&D^A&D,gt=(O>>>28|L<<4)^(O<<30|L>>>2)^(O<<25|L>>>7),_t=(L>>>28|O<<4)^(L<<30|O>>>2)^(L<<25|O>>>7),mt=(F>>>14|R<<18)^(F>>>18|R<<14)^(F<<23|R>>>9),vt=(R>>>14|F<<18)^(R>>>18|F<<14)^(R<<23|F>>>9),Ct=c[K],wt=Ct.high,bt=Ct.low,Bt=z+mt+((ut=U+vt)>>>0>>0?1:0),kt=_t+yt;z=E,U=V,E=T,V=H,T=F,H=R,F=G+(Bt=(Bt=(Bt=Bt+dt+((ut+=pt)>>>0>>0?1:0))+wt+((ut+=bt)>>>0>>0?1:0))+W+((ut+=Y)>>>0>>0?1:0))+((R=j+ut|0)>>>0>>0?1:0)|0,G=P,j=D,P=x,D=A,x=O,A=L,O=Bt+(gt+ft+(kt>>>0<_t>>>0?1:0))+((L=ut+kt|0)>>>0>>0?1:0)|0}f=n.low=f+L,n.high=p+O+(f>>>0>>0?1:0),g=o.low=g+A,o.high=y+x+(g>>>0>>0?1:0),m=a.low=m+D,a.high=_+P+(m>>>0>>0?1:0),C=r.low=C+j,r.high=v+G+(C>>>0>>0?1:0),b=s.low=b+R,s.high=w+F+(b>>>0>>0?1:0),k=h.low=k+H,h.high=B+T+(k>>>0>>0?1:0),S=u.low=S+V,u.high=M+E+(S>>>0>>0?1:0),I=d.low=I+U,d.high=N+z+(I>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(n+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=i._createHelper(h),e.HmacSHA512=i._createHmacHelper(h)}(),function(){var t=s,e=t.x64,i=e.Word,n=e.WordArray,o=t.algo,a=o.SHA512,r=o.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=a._createHelper(r),t.HmacSHA384=a._createHmacHelper(r)}(),s.lib.Cipher||function(t){var e=s,i=e.lib,n=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,r=e.enc,c=(r.Utf8,r.Base64),l=e.algo.EvpKDF,h=i.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,i){this.cfg=this.cfg.extend(i),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?v:_}return function(e){return{encrypt:function(i,n,o){return t(n).encrypt(e,i,n,o)},decrypt:function(i,n,o){return t(n).decrypt(e,i,n,o)}}}}()}),u=(i.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),d=i.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),p=u.CBC=function(){function e(e,i,n){var o=this._iv;if(o){var a=o;this._iv=t}else a=this._prevBlock;for(var r=0;r>>2];t.sigBytes-=e}},y=(i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:f}),reset:function(){h.reset.call(this);var t=this.cfg,e=t.iv,i=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=i.createEncryptor;else n=i.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==n?this._mode.init(this,e&&e.words):(this._mode=n.call(i,this,e&&e.words),this._mode.__creator=n)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4}),i.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),g=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,i=t.salt;if(i)var n=o.create([1398893684,1701076831]).concat(i).concat(e);else n=e;return n.toString(c)},parse:function(t){var e=c.parse(t),i=e.words;if(1398893684==i[0]&&1701076831==i[1]){var n=o.create(i.slice(2,4));i.splice(0,4),e.sigBytes-=16}return y.create({ciphertext:e,salt:n})}},_=i.SerializableCipher=n.extend({cfg:n.extend({format:g}),encrypt:function(t,e,i,n){n=this.cfg.extend(n);var o=t.createEncryptor(i,n),a=o.finalize(e),r=o.cfg;return y.create({ciphertext:a,key:i,iv:r.iv,algorithm:t,mode:r.mode,padding:r.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,i,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(i,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),m=(e.kdf={}).OpenSSL={execute:function(t,e,i,n){n||(n=o.random(8));var a=l.create({keySize:e+i}).compute(t,n),r=o.create(a.words.slice(e),4*i);return a.sigBytes=4*e,y.create({key:a,iv:r,salt:n})}},v=i.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:m}),encrypt:function(t,e,i,n){var o=(n=this.cfg.extend(n)).kdf.execute(i,t.keySize,t.ivSize);n.iv=o.iv;var a=_.encrypt.call(this,t,e,o.key,n);return a.mixIn(o),a},decrypt:function(t,e,i,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var o=n.kdf.execute(i,t.keySize,t.ivSize,e.salt);return n.iv=o.iv,_.decrypt.call(this,t,e,o.key,n)}})}(),s.mode.CFB=function(){function t(t,e,i,n){var o=this._iv;if(o){var a=o.slice(0);this._iv=void 0}else a=this._prevBlock;n.encryptBlock(a,0);for(var r=0;r>>2]|=o<<24-a%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},s.pad.Iso10126={pad:function(t,e){var i=4*e,n=i-t.sigBytes%i;t.concat(s.lib.WordArray.random(n-1)).concat(s.lib.WordArray.create([n<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},s.pad.Iso97971={pad:function(t,e){t.concat(s.lib.WordArray.create([2147483648],1)),s.pad.ZeroPadding.pad(t,e)},unpad:function(t){s.pad.ZeroPadding.unpad(t),t.sigBytes--}},s.mode.OFB=function(){var t=s.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._keystream;o&&(a=this._keystream=o.slice(0),this._iv=void 0),i.encryptBlock(a,0);for(var r=0;r>>8^255&f^99,n[i]=f,o[f]=i;var y=t[i],g=t[y],_=t[g],m=257*t[f]^16843008*f;a[i]=m<<24|m>>>8,r[i]=m<<16|m>>>16,c[i]=m<<8|m>>>24,l[i]=m,m=16843009*_^65537*g^257*y^16843008*i,h[f]=m<<24|m>>>8,u[f]=m<<16|m>>>16,d[f]=m<<8|m>>>24,p[f]=m,i?(i=y^t[t[t[_^y]]],s^=t[t[s]]):i=s=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,i=t.sigBytes/4,o=4*((this._nRounds=i+6)+1),a=this._keySchedule=[],r=0;r6&&r%i==4&&(s=n[s>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s]):(s=n[(s=s<<8|s>>>24)>>>24]<<24|n[s>>>16&255]<<16|n[s>>>8&255]<<8|n[255&s],s^=f[r/i|0]<<24),a[r]=a[r-i]^s}for(var c=this._invKeySchedule=[],l=0;l>>24]]^u[n[s>>>16&255]]^d[n[s>>>8&255]]^p[n[255&s]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,r,c,l,n)},decryptBlock:function(t,e){var i=t[e+1];t[e+1]=t[e+3],t[e+3]=i,this._doCryptBlock(t,e,this._invKeySchedule,h,u,d,p,o),i=t[e+1],t[e+1]=t[e+3],t[e+3]=i},_doCryptBlock:function(t,e,i,n,o,a,r,s){for(var c=this._nRounds,l=t[e]^i[0],h=t[e+1]^i[1],u=t[e+2]^i[2],d=t[e+3]^i[3],p=4,f=1;f>>24]^o[h>>>16&255]^a[u>>>8&255]^r[255&d]^i[p++],g=n[h>>>24]^o[u>>>16&255]^a[d>>>8&255]^r[255&l]^i[p++],_=n[u>>>24]^o[d>>>16&255]^a[l>>>8&255]^r[255&h]^i[p++],m=n[d>>>24]^o[l>>>16&255]^a[h>>>8&255]^r[255&u]^i[p++];l=y,h=g,u=_,d=m}y=(s[l>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^i[p++],g=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^i[p++],_=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&h])^i[p++],m=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^i[p++],t[e]=y,t[e+1]=g,t[e+2]=_,t[e+3]=m},keySize:8});t.AES=e._createHelper(y)}(),function(){function t(t,e){var i=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=i,this._lBlock^=i<>>t^this._lBlock)&e;this._lBlock^=i,this._rBlock^=i<>>5]>>>31-n%32&1}for(var o=this._subKeys=[],a=0;a<16;a++){var r=o[a]=[],s=h[a];for(i=0;i<24;i++)r[i/6|0]|=e[(l[i]-1+s)%28]<<31-i%6,r[4+(i/6|0)]|=e[28+(l[i+24]-1+s)%28]<<31-i%6;for(r[0]=r[0]<<1|r[0]>>>31,i=1;i<7;i++)r[i]=r[i]>>>4*(i-1)+3;r[7]=r[7]<<5|r[7]>>>27}var u=this._invSubKeys=[];for(i=0;i<16;i++)u[i]=o[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(i,n,o){this._lBlock=i[n],this._rBlock=i[n+1],t.call(this,4,252645135),t.call(this,16,65535),e.call(this,2,858993459),e.call(this,8,16711935),t.call(this,1,1431655765);for(var a=0;a<16;a++){for(var r=o[a],s=this._lBlock,c=this._rBlock,l=0,h=0;h<8;h++)l|=u[h][((c^r[h])&d[h])>>>0];this._lBlock=c,this._rBlock=s^l}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,t.call(this,1,1431655765),e.call(this,8,16711935),e.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),i[n]=this._lBlock,i[n+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});i.DES=a._createHelper(p);var f=r.TripleDES=a.extend({_doReset:function(){var t=this._key.words;this._des1=p.createEncryptor(o.create(t.slice(0,2))),this._des2=p.createEncryptor(o.create(t.slice(2,4))),this._des3=p.createEncryptor(o.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});i.TripleDES=a._createHelper(f)}(),function(){function t(){for(var t=this._S,e=this._i,i=this._j,n=0,o=0;o<4;o++){i=(i+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[i],t[i]=a,n|=t[(t[e]+t[i])%256]<<24-8*o}return this._i=e,this._j=i,n}var e=s,i=e.lib.StreamCipher,n=e.algo,o=n.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,i=t.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var a=0;o<256;o++){var r=o%i,s=e[r>>>2]>>>24-r%4*8&255;a=(a+n[o]+s)%256;var c=n[o];n[o]=n[a],n[a]=c}this._i=this._j=0},_doProcessBlock:function(e,i){e[i]^=t.call(this)},keySize:8,ivSize:0});e.RC4=i._createHelper(o);var a=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)t.call(this)}});e.RC4Drop=i._createHelper(a)}(),s.mode.CTRGladman=function(){function t(t){if(255==(t>>24&255)){var e=t>>16&255,i=t>>8&255,n=255&t;255===e?(e=0,255===i?(i=0,255===n?n=0:++n):++i):++e,t=0,t+=e<<16,t+=i<<8,t+=n}else t+=1<<24;return t}function e(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var i=s.lib.BlockCipherMode.extend(),n=i.Encryptor=i.extend({processBlock:function(t,i){var n=this._cipher,o=n.blockSize,a=this._iv,r=this._counter;a&&(r=this._counter=a.slice(0),this._iv=void 0),e(r);var s=r.slice(0);n.encryptBlock(s,0);for(var c=0;c>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0,i=0;i<8;i++){var n=t[i]+e[i],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);r[i]=c^l}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}var e=s,i=e.lib.StreamCipher,n=e.algo,o=[],a=[],r=[],c=n.Rabbit=i.extend({_doReset:function(){for(var e=this._key.words,i=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)t.call(this);for(n=0;n<8;n++)a[n]^=o[n+4&7];if(i){var r=i.words,s=r[0],c=r[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),u=l>>>16|4294901760&h,d=h<<16|65535&l;for(a[0]^=l,a[1]^=u,a[2]^=h,a[3]^=d,a[4]^=l,a[5]^=u,a[6]^=h,a[7]^=d,n=0;n<4;n++)t.call(this)}},_doProcessBlock:function(e,i){var n=this._X;t.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)o[a]=16711935&(o[a]<<8|o[a]>>>24)|4278255360&(o[a]<<24|o[a]>>>8),e[i+a]^=o[a]},blockSize:4,ivSize:2});e.Rabbit=i._createHelper(c)}(),s.mode.CTR=function(){var t=s.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0);var r=a.slice(0);i.encryptBlock(r,0),a[n-1]=a[n-1]+1|0;for(var s=0;s>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0,i=0;i<8;i++){var n=t[i]+e[i],o=65535&n,s=n>>>16,c=((o*o>>>17)+o*s>>>15)+s*s,l=((4294901760&n)*n|0)+((65535&n)*n|0);r[i]=c^l}t[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,t[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,t[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,t[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,t[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,t[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,t[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,t[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}var e=s,i=e.lib.StreamCipher,n=e.algo,o=[],a=[],r=[],c=n.RabbitLegacy=i.extend({_doReset:function(){var e=this._key.words,i=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)t.call(this);for(a=0;a<8;a++)o[a]^=n[a+4&7];if(i){var r=i.words,s=r[0],c=r[1],l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),u=l>>>16|4294901760&h,d=h<<16|65535&l;for(o[0]^=l,o[1]^=u,o[2]^=h,o[3]^=d,o[4]^=l,o[5]^=u,o[6]^=h,o[7]^=d,a=0;a<4;a++)t.call(this)}},_doProcessBlock:function(e,i){var n=this._X;t.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)o[a]=16711935&(o[a]<<8|o[a]>>>24)|4278255360&(o[a]<<24|o[a]>>>8),e[i+a]^=o[a]},blockSize:4,ivSize:2});e.RabbitLegacy=i._createHelper(c)}(),s.pad.ZeroPadding={pad:function(t,e){var i=4*e;t.clamp(),t.sigBytes+=i-(t.sigBytes%i||i)},unpad:function(t){for(var e=t.words,i=t.sigBytes-1;!(e[i>>>2]>>>24-i%4*8&255);)i--;t.sigBytes=i+1}},s}),cc._RF.pop()},{}],"use_v2.1-2.2.1_cc.Toggle_event":[function(t,e){"use strict";cc._RF.push(e,"7a231Rz0d9LBYYgY3bDYlLB","use_v2.1-2.2.1_cc.Toggle_event"),cc.Toggle&&(cc.Toggle._triggerEventInScript_isChecked=!0),cc._RF.pop()},{}]},{},["Block","Camera","GameData","GameManager","GameOver","GameScene","ItemRender","List","Load","Player","RankManager","HttpUtil","crypto-js.min","AudioManager","GameTool","Notification","Storage","use_v2.1-2.2.1_cc.Toggle_event"]); \ No newline at end of file diff --git a/build/FlyUp/assets/main/native/61/617323dd-11f4-4dd3-8eec-0caf6b3b45b9.png b/build/FlyUp/assets/main/native/61/617323dd-11f4-4dd3-8eec-0caf6b3b45b9.6d707.png similarity index 100% rename from build/FlyUp/assets/main/native/61/617323dd-11f4-4dd3-8eec-0caf6b3b45b9.png rename to build/FlyUp/assets/main/native/61/617323dd-11f4-4dd3-8eec-0caf6b3b45b9.6d707.png diff --git a/build/FlyUp/assets/main/native/71/71561142-4c83-4933-afca-cb7a17f67053.c06a9.png b/build/FlyUp/assets/main/native/71/71561142-4c83-4933-afca-cb7a17f67053.c06a9.png new file mode 100644 index 0000000..a3f2d16 Binary files /dev/null and b/build/FlyUp/assets/main/native/71/71561142-4c83-4933-afca-cb7a17f67053.c06a9.png differ diff --git a/build/FlyUp/assets/main/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.83fcc.png b/build/FlyUp/assets/main/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.83fcc.png new file mode 100644 index 0000000..3bb6159 Binary files /dev/null and b/build/FlyUp/assets/main/native/b4/b43ff3c2-02bb-4874-81f7-f2dea6970f18.83fcc.png differ diff --git a/build/FlyUp/assets/main/native/d6/d6d3ca85-4681-47c1-b5dd-d036a9d39ea2.png b/build/FlyUp/assets/main/native/d6/d6d3ca85-4681-47c1-b5dd-d036a9d39ea2.d55c2.png similarity index 100% rename from build/FlyUp/assets/main/native/d6/d6d3ca85-4681-47c1-b5dd-d036a9d39ea2.png rename to build/FlyUp/assets/main/native/d6/d6d3ca85-4681-47c1-b5dd-d036a9d39ea2.d55c2.png diff --git a/build/FlyUp/assets/main/native/d8/d81ec8ad-247c-4e62-aa3c-d35c4193c7af.png b/build/FlyUp/assets/main/native/d8/d81ec8ad-247c-4e62-aa3c-d35c4193c7af.cdbc9.png similarity index 100% rename from build/FlyUp/assets/main/native/d8/d81ec8ad-247c-4e62-aa3c-d35c4193c7af.png rename to build/FlyUp/assets/main/native/d8/d81ec8ad-247c-4e62-aa3c-d35c4193c7af.cdbc9.png diff --git a/build/FlyUp/assets/main/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.90cf4.png b/build/FlyUp/assets/main/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.90cf4.png new file mode 100644 index 0000000..dff9999 Binary files /dev/null and b/build/FlyUp/assets/main/native/e8/e851e89b-faa2-4484-bea6-5c01dd9f06e2.90cf4.png differ diff --git a/build/FlyUp/assets/resources/config.af6f5.json b/build/FlyUp/assets/resources/config.af6f5.json new file mode 100644 index 0000000..91f0722 --- /dev/null +++ b/build/FlyUp/assets/resources/config.af6f5.json @@ -0,0 +1 @@ +{"paths":{"0":["spine/basketball",2],"1":["spine/xrfj",2],"2":["bg/bg1",2],"3":["bg/bg0",2],"4":["Rank/rankUI",2],"5":["Rank/rank_Bg",2],"6":["spine/basketball",5],"7":["spine/xrfj",5],"8":["sounds/music",4],"9":["sounds/jump",4],"10":["sounds/luodi",4],"11":["sounds/dui",4],"12":["bg/bg2",2],"13":["Font/Ball_Shop",2],"14":["sounds/dui3",4],"15":["publicUI",2],"16":["bg/bg1",1,1],"17":["spine/basketball",1,1],"18":["publicUI",3],"19":["bg/bg0",1,1],"20":["Font/Ball_Shop",0],"21":["Rank/rank_Bg",1,1],"22":["spine/basketball",6],"23":["Font/Ball_Shop",1,1],"24":["Rank/rankUI",3],"25":["bg/bg2",1,1],"26":["spine/xrfj",6],"27":["spine/xrfj",1,1]},"types":["cc.BitmapFont","cc.SpriteFrame","cc.Texture2D","cc.SpriteAtlas","cc.AudioClip","cc.Asset","sp.SkeletonData"],"uuids":["0ejutcC49CjKLZ//7gvYRE","1ayxbtba5O26nHIPh8qYDk","45Dnt+ItdF7Y5RFKqnMKOT","61kSgF7xFL64MyV/kxk9xV","72GMqc1XBKSYPGwG6orohB","74iM9ONM1PFIL+nPb1RWbI","88Orkb9htMXZ6tdhV/d8ka","8bMy+zkntLdLCf9CnanyU3","92fGwMmkBCY5k5VoquaR1+","93DPpMxKVBEZM995IYAktf","adVjW5ul5J459XvvWIwB3K","aehgdAqf5K97NRleRunskJ","bcOE4TbCBHOqdlwFnjRmjb","c93NelOo9P6IeccxefErJS","cbvcD+cP5HE6KccuPsfiUR","f0y5rb/kVIdqa9cZoNw+gw","39xzZtFr5M/acEKWIrq6cD","393oPEcoBDJaiiRhpo0iUP","543AZJJRJNe74aRSOA/3jd","59gVJrAjVOg5VE8K3Ujzlm","6831iWJlxBz742ySqmmgni","80p0i1It1Jnqkx1Eq6/tjY","92ACsV8KlNCaPLzdwGvm8c","a40w8aGXdJJKZ8pe0m6bBy","b1Vp5ARhZFZqxR5JByp4ZM","b9XZYB0kFMaYGIVwIzKDW6","c7lG371dZGYLVDWJFIeH2Y","e8xLiDWLpMpYNp5T41hm4w","036e3TRCdC95gDvtPcCHMp","05howSluxD46CBLX/ZnslG","07KlE5zmdA45F5MXX4tn9v","0bIB74c3JNXaj1S1o+L8RB","0dqhqBaopO2Lry9uZ22P/n","0eMoA/FR5HI6YzPvZVxQgP","0fs5U/1H1Kz6hVPTJDIcD6","0fywWxsY9JMrsJlDAwW41z","13l0c3fepPzrdo8UkZ6s2s","1cbBR+9BZDmakR2ztuM3kE","27lCBeBENGcqIQDKmryd3y","2cMDAxxUFGF5HXQsOf3JyO","2dZEG9VWtNwrCLXrYMS5hw","31TGCewvhAeYWto4aQi5K1","3bAXuMqSFLuqZf4MEH4bKb","42wTrzp9VL/KgP+q5Snsfz","45zGM6kzNNyqCzHBSeH+jZ","476NNhXXBJioJtzBpXYise","4b/Tw/XqNKFqzju8ga/ZTh","4cjU79RPBBrasMHLDBNsa+","4d2p1BwfdARKIOEeJDBlrN","52e8CGTclIaJaIBf9Hv5l0","5abBNMMpZBR7vxJDcBQvfE","5acAP5kBJNIq86XuKHIhnw","61RXdTYpxOF4WRDyrNwZFy","63R2Yu385NZpzGQpjMBpLF","69U0XSzfJFxLV1MskcPtYQ","6aRKEZmMpHtL8y7YmuX9bz","6dbB2vS8xAbZr+Ea0SE2pp","6dfggYQOpNj77kZgggqBuN","70IZlR+XpKJYrYi1mQFH4P","72Vey8uXhK1ZoqrqD+6pRz","79EEpVmG5Ofrf4dzYSv0mf","7dew4A8lxPAb6UXs8/8hDU","7d50AODeVNILIcpV/wWtNs","81kTyAtYxBG5KiXvC09e2F","84YJ/y5+dGTZCyXrXmIV4s","85fsVivv9OWICMxb5V/nAe","8av2UppB1GLrFE7foRFNht","8bSO0cmt5AVLiuEpA2C3UN","8bu7JSDHhB4Ylq2OW1dnPA","8cTTjwpoVNppnt9C5+bTLH","93GxQ0tzVDRLJzory0GyLs","95GA3w6h5IAbwc9mRay+cB","9dN/HK+xVFAK8rOdF0ycf2","a3PqQUiTxHcoYRWepGiyDW","a3x2KFXlRBDL1yV31B5T0l","a35WcKLdNBzpEGLBw0FGrq","a5+VXEpKdC8YAlvdO00kp3","a7GUBGKxNNn5n3Bd1G1/7H","aeItzF5mJGJqDQmlqCvIOM","b3Qw97PiRLTKWa+VuH25ai","b72BtBaSJEcalKK0bZQQw4","bbODDEAMlJAYAhPtN+WjwK","c8vuuTzJpA7ZcxJZk5JaC6","d6B3glFjxOQ6Hyyt7kyLUW","d6ck6JPlFDParbM+Bd9ci9","d72tmW9ydN4JWZvmf7dWoa","d8BSo7tlZAzKAF6oZCy8E5","d9HN6kEbVDCIKVAeTIU14c","dccw1zl/NId7x7keVQwrRQ","f2I7Pm7elK3Y3OuzUcxpgp","f4BRcfbUlGBa0Pv0fRde+3","f4H1++vG1Apbak/TfMl5q0","f4QySXWtBKCbSlCEmr2Squ","f48kauGftDgJTF1A+WuyXj","f6Vggt1ZlA+J5lp/yPdtQr","f6j3VD4tBGBJ43J9e8txaS","f9ddP1G7BMirAPTQSjbjHC","faruncavtPIop38CByX5uN"],"scenes":{},"redirect":[],"deps":[],"packs":{"033b09f56":[0,1,2,3,4,5,12,13,15],"05b39e7a0":[20,23],"0c22610ff":[34,37,46,51,71,74,76,24,87],"0fe6ec621":[28,29,30,31,32,33,35,36,38,39,40,41,42,43,44,45,47,48,49,18,50,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,73,75,77,78,79,80,81,82,83,84,85,86,88,89,90,91,92,93,94,95,96,97]},"name":"resources","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false,"versions":{"import":["033b09f56","1a4d0","05b39e7a0","f8df5","0c22610ff","35fe8","0fe6ec621","fdd6a",16,"84194",17,"2d4d0",19,"93026",21,"fadeb",6,"665f3",7,"697ba",22,"f5fcb",8,"e482a",9,"ecaf7",10,"04d1a",11,"59798",25,"b1e9b",26,"5f152",14,"f4627",27,"a9e26"],"native":[0,"5097d",1,"f28db",2,"fe5a6",3,"24a6c",4,"c33ad",5,"5f19d",6,"10646",7,"32902",8,"ec9b5",9,"853ed",10,"986c8",11,"4b204",12,"4e29f",13,"33f0b",14,"71c34",15,"07ccf"]}} \ No newline at end of file diff --git a/build/FlyUp/assets/resources/config.json b/build/FlyUp/assets/resources/config.json deleted file mode 100644 index bff7fab..0000000 --- a/build/FlyUp/assets/resources/config.json +++ /dev/null @@ -1 +0,0 @@ -{"paths":{"0":["spine/basketball",2],"1":["spine/xrfj",2],"2":["bg/bg1",2],"3":["publicUI",3],"4":["bg/bg0",2],"5":["Font/Ball_Shop",0],"6":["Rank/rankUI",2],"7":["Rank/rank_Bg",2],"8":["Font/Ball_Shop",1,1],"9":["Rank/rankUI",3],"10":["bg/bg2",2],"11":["Font/Ball_Shop",2],"12":["publicUI",2],"26":["bg/bg1",1,1],"27":["spine/basketball",1,1],"35":["bg/bg0",1,1],"49":["Rank/rank_Bg",1,1],"53":["spine/basketball",5],"55":["spine/xrfj",5],"59":["spine/basketball",6],"60":["sounds/music",4],"61":["sounds/jump",4],"70":["sounds/luodi",4],"71":["sounds/dui",4],"74":["bg/bg2",1,1],"76":["spine/xrfj",6],"78":["sounds/dui3",4],"85":["spine/xrfj",1,1]},"types":["cc.BitmapFont","cc.SpriteFrame","cc.Texture2D","cc.SpriteAtlas","cc.AudioClip","cc.Asset","sp.SkeletonData"],"uuids":["0ejutcC49CjKLZ//7gvYRE","1ayxbtba5O26nHIPh8qYDk","45Dnt+ItdF7Y5RFKqnMKOT","543AZJJRJNe74aRSOA/3jd","61kSgF7xFL64MyV/kxk9xV","6831iWJlxBz742ySqmmgni","72GMqc1XBKSYPGwG6orohB","74iM9ONM1PFIL+nPb1RWbI","a40w8aGXdJJKZ8pe0m6bBy","b1Vp5ARhZFZqxR5JByp4ZM","bcOE4TbCBHOqdlwFnjRmjb","c93NelOo9P6IeccxefErJS","f0y5rb/kVIdqa9cZoNw+gw","036e3TRCdC95gDvtPcCHMp","05howSluxD46CBLX/ZnslG","07KlE5zmdA45F5MXX4tn9v","0bIB74c3JNXaj1S1o+L8RB","0dqhqBaopO2Lry9uZ22P/n","0eMoA/FR5HI6YzPvZVxQgP","0fs5U/1H1Kz6hVPTJDIcD6","0fywWxsY9JMrsJlDAwW41z","13l0c3fepPzrdo8UkZ6s2s","1cbBR+9BZDmakR2ztuM3kE","27lCBeBENGcqIQDKmryd3y","2cMDAxxUFGF5HXQsOf3JyO","2dZEG9VWtNwrCLXrYMS5hw","39xzZtFr5M/acEKWIrq6cD","393oPEcoBDJaiiRhpo0iUP","3bAXuMqSFLuqZf4MEH4bKb","42wTrzp9VL/KgP+q5Snsfz","45zGM6kzNNyqCzHBSeH+jZ","476NNhXXBJioJtzBpXYise","4b/Tw/XqNKFqzju8ga/ZTh","4cjU79RPBBrasMHLDBNsa+","4d2p1BwfdARKIOEeJDBlrN","59gVJrAjVOg5VE8K3Ujzlm","5abBNMMpZBR7vxJDcBQvfE","5acAP5kBJNIq86XuKHIhnw","61RXdTYpxOF4WRDyrNwZFy","63R2Yu385NZpzGQpjMBpLF","69U0XSzfJFxLV1MskcPtYQ","6aRKEZmMpHtL8y7YmuX9bz","6dbB2vS8xAbZr+Ea0SE2pp","6dfggYQOpNj77kZgggqBuN","70IZlR+XpKJYrYi1mQFH4P","72Vey8uXhK1ZoqrqD+6pRz","79EEpVmG5Ofrf4dzYSv0mf","7dew4A8lxPAb6UXs8/8hDU","7d50AODeVNILIcpV/wWtNs","80p0i1It1Jnqkx1Eq6/tjY","81kTyAtYxBG5KiXvC09e2F","84YJ/y5+dGTZCyXrXmIV4s","85fsVivv9OWICMxb5V/nAe","88Orkb9htMXZ6tdhV/d8ka","8av2UppB1GLrFE7foRFNht","8bMy+zkntLdLCf9CnanyU3","8bSO0cmt5AVLiuEpA2C3UN","8bu7JSDHhB4Ylq2OW1dnPA","8cTTjwpoVNppnt9C5+bTLH","92ACsV8KlNCaPLzdwGvm8c","92fGwMmkBCY5k5VoquaR1+","93DPpMxKVBEZM995IYAktf","93GxQ0tzVDRLJzory0GyLs","95GA3w6h5IAbwc9mRay+cB","9dN/HK+xVFAK8rOdF0ycf2","a3PqQUiTxHcoYRWepGiyDW","a3x2KFXlRBDL1yV31B5T0l","a35WcKLdNBzpEGLBw0FGrq","a5+VXEpKdC8YAlvdO00kp3","a7GUBGKxNNn5n3Bd1G1/7H","adVjW5ul5J459XvvWIwB3K","aehgdAqf5K97NRleRunskJ","b3Qw97PiRLTKWa+VuH25ai","b72BtBaSJEcalKK0bZQQw4","b9XZYB0kFMaYGIVwIzKDW6","bbODDEAMlJAYAhPtN+WjwK","c7lG371dZGYLVDWJFIeH2Y","c8vuuTzJpA7ZcxJZk5JaC6","cbvcD+cP5HE6KccuPsfiUR","d6B3glFjxOQ6Hyyt7kyLUW","d6ck6JPlFDParbM+Bd9ci9","d72tmW9ydN4JWZvmf7dWoa","d8BSo7tlZAzKAF6oZCy8E5","d9HN6kEbVDCIKVAeTIU14c","dccw1zl/NId7x7keVQwrRQ","e8xLiDWLpMpYNp5T41hm4w","f2I7Pm7elK3Y3OuzUcxpgp","f4BRcfbUlGBa0Pv0fRde+3","f4QySXWtBKCbSlCEmr2Squ","f48kauGftDgJTF1A+WuyXj","f6Vggt1ZlA+J5lp/yPdtQr","f6j3VD4tBGBJ43J9e8txaS","f9ddP1G7BMirAPTQSjbjHC","faruncavtPIop38CByX5uN"],"scenes":{},"redirect":[],"deps":[],"packs":{"033b09f56":[0,1,2,4,6,7,10,11,12],"05b39e7a0":[5,8],"0c22610ff":[19,22,32,37,63,66,68,9,83],"0f8c1f216":[13,14,15,16,17,18,20,21,23,24,25,28,29,30,31,33,34,3,36,38,39,40,41,42,43,44,45,46,47,48,50,51,52,54,56,57,58,62,64,65,67,69,72,73,75,77,79,80,81,82,84,86,87,88,89,90,91,92,93]},"name":"resources","importBase":"import","nativeBase":"native","debug":false,"isZip":false,"encrypted":false} \ No newline at end of file diff --git a/build/FlyUp/assets/resources/import/03/033b09f56.json b/build/FlyUp/assets/resources/import/03/033b09f56.1a4d0.json similarity index 100% rename from build/FlyUp/assets/resources/import/03/033b09f56.json rename to build/FlyUp/assets/resources/import/03/033b09f56.1a4d0.json diff --git a/build/FlyUp/assets/resources/import/05/05b39e7a0.json b/build/FlyUp/assets/resources/import/05/05b39e7a0.f8df5.json similarity index 100% rename from build/FlyUp/assets/resources/import/05/05b39e7a0.json rename to build/FlyUp/assets/resources/import/05/05b39e7a0.f8df5.json diff --git a/build/FlyUp/assets/resources/import/0c/0c22610ff.json b/build/FlyUp/assets/resources/import/0c/0c22610ff.35fe8.json similarity index 100% rename from build/FlyUp/assets/resources/import/0c/0c22610ff.json rename to build/FlyUp/assets/resources/import/0c/0c22610ff.35fe8.json diff --git a/build/FlyUp/assets/resources/import/0f/0f8c1f216.json b/build/FlyUp/assets/resources/import/0f/0f8c1f216.json deleted file mode 100644 index 75e7eb9..0000000 --- a/build/FlyUp/assets/resources/import/0f/0f8c1f216.json +++ /dev/null @@ -1 +0,0 @@ -[1,["f0y5rb/kVIdqa9cZoNw+gw","2cMDAxxUFGF5HXQsOf3JyO","f6Vggt1ZlA+J5lp/yPdtQr","72Vey8uXhK1ZoqrqD+6pRz","f4BRcfbUlGBa0Pv0fRde+3","84YJ/y5+dGTZCyXrXmIV4s","63R2Yu385NZpzGQpjMBpLF","27lCBeBENGcqIQDKmryd3y","5abBNMMpZBR7vxJDcBQvfE","8av2UppB1GLrFE7foRFNht","05howSluxD46CBLX/ZnslG","dccw1zl/NId7x7keVQwrRQ","2dZEG9VWtNwrCLXrYMS5hw","f48kauGftDgJTF1A+WuyXj","476NNhXXBJioJtzBpXYise","f6j3VD4tBGBJ43J9e8txaS","3bAXuMqSFLuqZf4MEH4bKb","4d2p1BwfdARKIOEeJDBlrN","8cTTjwpoVNppnt9C5+bTLH","a35WcKLdNBzpEGLBw0FGrq","61RXdTYpxOF4WRDyrNwZFy","a7GUBGKxNNn5n3Bd1G1/7H","f9ddP1G7BMirAPTQSjbjHC","0dqhqBaopO2Lry9uZ22P/n","0fywWxsY9JMrsJlDAwW41z","faruncavtPIop38CByX5uN","8bu7JSDHhB4Ylq2OW1dnPA","6dbB2vS8xAbZr+Ea0SE2pp","6dfggYQOpNj77kZgggqBuN","6aRKEZmMpHtL8y7YmuX9bz","69U0XSzfJFxLV1MskcPtYQ","d8BSo7tlZAzKAF6oZCy8E5","b72BtBaSJEcalKK0bZQQw4","b3Qw97PiRLTKWa+VuH25ai","f2I7Pm7elK3Y3OuzUcxpgp","13l0c3fepPzrdo8UkZ6s2s","42wTrzp9VL/KgP+q5Snsfz","8bSO0cmt5AVLiuEpA2C3UN","4cjU79RPBBrasMHLDBNsa+","0eMoA/FR5HI6YzPvZVxQgP","a3PqQUiTxHcoYRWepGiyDW","81kTyAtYxBG5KiXvC09e2F","036e3TRCdC95gDvtPcCHMp","70IZlR+XpKJYrYi1mQFH4P","c8vuuTzJpA7ZcxJZk5JaC6","d6B3glFjxOQ6Hyyt7kyLUW","d72tmW9ydN4JWZvmf7dWoa","07KlE5zmdA45F5MXX4tn9v","f4QySXWtBKCbSlCEmr2Squ","bbODDEAMlJAYAhPtN+WjwK","7d50AODeVNILIcpV/wWtNs","85fsVivv9OWICMxb5V/nAe","79EEpVmG5Ofrf4dzYSv0mf","0bIB74c3JNXaj1S1o+L8RB","9dN/HK+xVFAK8rOdF0ycf2","45zGM6kzNNyqCzHBSeH+jZ","93GxQ0tzVDRLJzory0GyLs","7dew4A8lxPAb6UXs8/8hDU","d6ck6JPlFDParbM+Bd9ci9"],["_textureSetter","0","1","2","3","4","5","6","BigXin1","BigXin2","Frisbee1","Frisbee10","Frisbee11","Frisbee12","Frisbee2","Frisbee3","Frisbee4","Frisbee5","Frisbee6","Frisbee7","Frisbee8","Frisbee9","add","again","back","backLoad","begin","beginLabel","biaoDi","gameover","icon","jump","kuang","next","num_di","perfet","perfet2","player","progress0","progress1","progress2","rankBtn","rankBtnBg","rank_Item","rank_Self","share","star1","star2","tai","tai_line","tip1","tip2","tip3","tip_left","tip_right","toutu","xin","xin1","xin_1"],["cc.SpriteFrame",["cc.SpriteAtlas",["_name","_spriteFrames"],2,11]],[[1,0,1,2]],[[[{"name":"rankBtnBg","rect":[418,1495,98,44],"offset":[0,0],"originalSize":[98,44],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee1","rect":[1459,724,202,74],"offset":[0,0],"originalSize":[202,74],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"star2","rect":[518,1495,44,44],"offset":[0,0],"originalSize":[44,44],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip_left","rect":[513,1025,348,352],"offset":[0,4],"originalSize":[348,360],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"again","rect":[1418,1058,269,72],"offset":[0,0],"originalSize":[269,72],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"progress1","rect":[901,1379,310,68],"offset":[0,0],"originalSize":[310,68],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"back","rect":[1609,345,28,40],"offset":[-1,0],"originalSize":[40,40],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"perfet","rect":[731,325,518,348],"offset":[0,0],"originalSize":[518,348],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"6","rect":[1457,1490,49,49],"offset":[0,0],"originalSize":[49,49],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"0","rect":[1523,944,57,81],"offset":[0,0],"originalSize":[57,81],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee11","rect":[1459,518,204,74],"offset":[0,0],"originalSize":[204,74],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee4","rect":[1535,453,200,72],"offset":[0,0],"originalSize":[200,72],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"perfet2","rect":[731,675,518,348],"offset":[0,0],"originalSize":[518,348],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"toutu","rect":[1,1,700,344],"offset":[0,0],"originalSize":[700,344],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee2","rect":[1533,247,204,74],"offset":[0,0],"originalSize":[204,74],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"progress0","rect":[513,1379,386,114],"offset":[0,0],"originalSize":[386,114],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee5","rect":[1347,892,164,70],"offset":[0,0],"originalSize":[164,70],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[[0,"publicUI.plist",[{},"0",6,0,"1",6,1,"2",6,2,"3",6,3,"4",6,4,"5",6,5,"6",6,6,"BigXin1",6,7,"BigXin2",6,8,"Frisbee1",6,9,"Frisbee10",6,10,"Frisbee11",6,11,"Frisbee12",6,12,"Frisbee2",6,13,"Frisbee3",6,14,"Frisbee4",6,15,"Frisbee5",6,16,"Frisbee6",6,17,"Frisbee7",6,18,"Frisbee8",6,19,"Frisbee9",6,20,"add",6,21,"again",6,22,"back",6,23,"backLoad",6,24,"begin",6,25,"beginLabel",6,26,"biaoDi",6,27,"gameover",6,28,"icon",6,29,"jump",6,30,"kuang",6,31,"next",6,32,"num_di",6,33,"perfet",6,34,"perfet2",6,35,"player",6,36,"progress0",6,37,"progress1",6,38,"progress2",6,39,"rankBtn",6,40,"rankBtnBg",6,41,"rank_Item",6,42,"rank_Self",6,43,"share",6,44,"star1",6,45,"star2",6,46,"tai",6,47,"tai_line",6,48,"tip1",6,49,"tip2",6,50,"tip3",6,51,"tip_left",6,52,"tip_right",6,53,"toutu",6,54,"xin",6,55,"xin1",6,56,"xin_1",6,57]]],0,0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58],[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58]],[[{"name":"BigXin1","rect":[1213,1397,174,140],"offset":[0,0],"originalSize":[174,140],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee8","rect":[1457,1370,188,60],"offset":[0,0],"originalSize":[188,60],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"5","rect":[367,1490,49,49],"offset":[0,0],"originalSize":[49,49],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"icon","rect":[1596,865,54,78],"offset":[0,0],"originalSize":[54,78],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"gameover","rect":[703,1,723,200],"offset":[0,0],"originalSize":[723,200],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"beginLabel","rect":[1213,1077,318,203],"offset":[0,0],"originalSize":[318,203],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"biaoDi","rect":[451,1044,448,60],"offset":[0,0],"originalSize":[448,60],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"rank_Item","rect":[1251,325,750,94],"offset":[0,0],"originalSize":[750,94],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"2","rect":[257,1044,53,79],"offset":[0,0],"originalSize":[53,79],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip3","rect":[469,347,619,260],"offset":[0,0],"originalSize":[695,360],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"xin1","rect":[564,1495,40,32],"offset":[0,0],"originalSize":[40,32],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip1","rect":[1347,325,565,110],"offset":[-1,0],"originalSize":[695,360],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"rankBtn","rect":[1419,928,102,102],"offset":[0,0],"originalSize":[102,102],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"4","rect":[679,968,49,50],"offset":[0,0],"originalSize":[49,50],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip2","rect":[159,1099,427,206],"offset":[-1,1],"originalSize":[695,360],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"BigXin2","rect":[1428,1,204,168],"offset":[0,0],"originalSize":[204,168],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"player","rect":[1389,1397,66,124],"offset":[0,0],"originalSize":[66,124],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"begin","rect":[367,1044,444,82],"offset":[0,0],"originalSize":[444,82],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee6","rect":[1535,655,202,64],"offset":[0,0],"originalSize":[202,64],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"xin","rect":[1213,1025,44,36],"offset":[0,0],"originalSize":[44,36],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip_right","rect":[863,1025,348,352],"offset":[0,-4],"originalSize":[348,360],"capInsets":[0,322,0,0]}],[0],0,[0],[0],[0]],[[{"name":"progress2","rect":[901,1449,310,68],"offset":[0,0],"originalSize":[310,68],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee7","rect":[1457,1432,170,56],"offset":[0,0],"originalSize":[170,56],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee9","rect":[1492,1234,160,62],"offset":[0,0],"originalSize":[160,62],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"next","rect":[1601,655,208,46],"offset":[0,0],"originalSize":[208,46],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"kuang","rect":[257,347,695,210],"offset":[0,0],"originalSize":[695,210],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tai_line","rect":[1,1099,440,156],"offset":[0,0],"originalSize":[440,156],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"rank_Self","rect":[703,203,750,120],"offset":[0,0],"originalSize":[750,120],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"share","rect":[1418,1329,36,36],"offset":[0,0],"originalSize":[36,36],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"xin_1","rect":[1609,247,96,37],"offset":[0,0],"originalSize":[96,37],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"star1","rect":[1554,1088,54,54],"offset":[0,0],"originalSize":[54,54],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"jump","rect":[469,968,208,46],"offset":[0,0],"originalSize":[208,46],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee10","rect":[1455,171,196,74],"offset":[0,0],"originalSize":[196,74],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"num_di","rect":[159,1528,180,10],"offset":[0,0],"originalSize":[180,10],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"3","rect":[1535,859,59,83],"offset":[0,0],"originalSize":[59,83],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tai","rect":[1,347,750,254],"offset":[0,0],"originalSize":[750,254],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee12","rect":[1492,1032,200,60],"offset":[0,0],"originalSize":[200,60],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"1","rect":[1582,945,50,79],"offset":[0,0],"originalSize":[50,79],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee3","rect":[1492,1298,156,70],"offset":[0,0],"originalSize":[156,70],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"add","rect":[1554,1027,57,59],"offset":[0,0],"originalSize":[57,59],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"backLoad","rect":[1459,247,269,72],"offset":[0,0],"originalSize":[269,72],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]]] \ No newline at end of file diff --git a/build/FlyUp/assets/resources/import/0f/0fe6ec621.fdd6a.json b/build/FlyUp/assets/resources/import/0f/0fe6ec621.fdd6a.json new file mode 100644 index 0000000..1ecd714 --- /dev/null +++ b/build/FlyUp/assets/resources/import/0f/0fe6ec621.fdd6a.json @@ -0,0 +1 @@ +[1,["f0y5rb/kVIdqa9cZoNw+gw","2cMDAxxUFGF5HXQsOf3JyO","f6Vggt1ZlA+J5lp/yPdtQr","72Vey8uXhK1ZoqrqD+6pRz","f4BRcfbUlGBa0Pv0fRde+3","84YJ/y5+dGTZCyXrXmIV4s","63R2Yu385NZpzGQpjMBpLF","27lCBeBENGcqIQDKmryd3y","5abBNMMpZBR7vxJDcBQvfE","8av2UppB1GLrFE7foRFNht","05howSluxD46CBLX/ZnslG","dccw1zl/NId7x7keVQwrRQ","2dZEG9VWtNwrCLXrYMS5hw","f48kauGftDgJTF1A+WuyXj","476NNhXXBJioJtzBpXYise","f6j3VD4tBGBJ43J9e8txaS","3bAXuMqSFLuqZf4MEH4bKb","4d2p1BwfdARKIOEeJDBlrN","8cTTjwpoVNppnt9C5+bTLH","a35WcKLdNBzpEGLBw0FGrq","61RXdTYpxOF4WRDyrNwZFy","a7GUBGKxNNn5n3Bd1G1/7H","f9ddP1G7BMirAPTQSjbjHC","0dqhqBaopO2Lry9uZ22P/n","0fywWxsY9JMrsJlDAwW41z","faruncavtPIop38CByX5uN","8bu7JSDHhB4Ylq2OW1dnPA","6dbB2vS8xAbZr+Ea0SE2pp","6dfggYQOpNj77kZgggqBuN","6aRKEZmMpHtL8y7YmuX9bz","69U0XSzfJFxLV1MskcPtYQ","d8BSo7tlZAzKAF6oZCy8E5","b72BtBaSJEcalKK0bZQQw4","b3Qw97PiRLTKWa+VuH25ai","f2I7Pm7elK3Y3OuzUcxpgp","13l0c3fepPzrdo8UkZ6s2s","42wTrzp9VL/KgP+q5Snsfz","8bSO0cmt5AVLiuEpA2C3UN","4cjU79RPBBrasMHLDBNsa+","0eMoA/FR5HI6YzPvZVxQgP","a3PqQUiTxHcoYRWepGiyDW","81kTyAtYxBG5KiXvC09e2F","036e3TRCdC95gDvtPcCHMp","70IZlR+XpKJYrYi1mQFH4P","c8vuuTzJpA7ZcxJZk5JaC6","d6B3glFjxOQ6Hyyt7kyLUW","d72tmW9ydN4JWZvmf7dWoa","07KlE5zmdA45F5MXX4tn9v","f4QySXWtBKCbSlCEmr2Squ","bbODDEAMlJAYAhPtN+WjwK","7d50AODeVNILIcpV/wWtNs","85fsVivv9OWICMxb5V/nAe","79EEpVmG5Ofrf4dzYSv0mf","52e8CGTclIaJaIBf9Hv5l0","aeItzF5mJGJqDQmlqCvIOM","f4H1++vG1Apbak/TfMl5q0","0bIB74c3JNXaj1S1o+L8RB","9dN/HK+xVFAK8rOdF0ycf2","31TGCewvhAeYWto4aQi5K1","45zGM6kzNNyqCzHBSeH+jZ","93GxQ0tzVDRLJzory0GyLs","7dew4A8lxPAb6UXs8/8hDU","d6ck6JPlFDParbM+Bd9ci9"],["_textureSetter","0","1","2","3","4","5","6","BigXin1","BigXin2","Frisbee1","Frisbee10","Frisbee11","Frisbee12","Frisbee2","Frisbee3","Frisbee4","Frisbee5","Frisbee6","Frisbee7","Frisbee8","Frisbee9","add","again","back","backLoad","begin","beginLabel","biaoDi","gameover","icon","jump","kuang","next","num_di","perfet","perfet2","player","progress0","progress1","progress2","rankBtn","rankBtnBg","rank_Item","rank_Self","share","star1","star2","tai","tai_line","tip1","tip2","tip3","tip4","tip5","tip6","tip_left","tip_right","tip_start","toutu","xin","xin1","xin_1"],["cc.SpriteFrame",["cc.SpriteAtlas",["_name","_spriteFrames"],2,11]],[[1,0,1,2]],[[[{"name":"rankBtnBg","rect":[1915,1129,98,44],"offset":[0,0],"originalSize":[98,44],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee1","rect":[1578,1167,202,74],"offset":[0,0],"originalSize":[202,74],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"star2","rect":[1964,1234,44,44],"offset":[0,0],"originalSize":[44,44],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip_left","rect":[1475,197,348,352],"offset":[0,4],"originalSize":[348,360],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"again","rect":[1825,647,269,72],"offset":[0,0],"originalSize":[269,72],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"progress1","rect":[636,1230,310,68],"offset":[0,0],"originalSize":[310,68],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"back","rect":[1971,1,28,40],"offset":[-1,0],"originalSize":[40,40],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"perfet","rect":[731,325,518,348],"offset":[0,0],"originalSize":[518,348],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"6","rect":[1976,1175,49,49],"offset":[0,0],"originalSize":[49,49],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"0","rect":[1854,1205,57,81],"offset":[0,0],"originalSize":[57,81],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee11","rect":[430,1214,204,74],"offset":[0,0],"originalSize":[204,74],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip_start","rect":[1899,605,269,72],"offset":[0,0],"originalSize":[269,72],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee4","rect":[1865,918,200,72],"offset":[0,0],"originalSize":[200,72],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"perfet2","rect":[731,675,518,348],"offset":[0,0],"originalSize":[518,348],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"toutu","rect":[1,1,700,344],"offset":[0,0],"originalSize":[700,344],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee2","rect":[430,1138,204,74],"offset":[0,0],"originalSize":[204,74],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"progress0","rect":[1887,113,386,114],"offset":[0,0],"originalSize":[386,114],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee5","rect":[1782,1116,164,70],"offset":[0,0],"originalSize":[164,70],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip4","rect":[469,347,619,260],"offset":[0,0],"originalSize":[695,360],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[[0,"publicUI.plist",[{},"0",6,0,"1",6,1,"2",6,2,"3",6,3,"4",6,4,"5",6,5,"6",6,6,"BigXin1",6,7,"BigXin2",6,8,"Frisbee1",6,9,"Frisbee10",6,10,"Frisbee11",6,11,"Frisbee12",6,12,"Frisbee2",6,13,"Frisbee3",6,14,"Frisbee4",6,15,"Frisbee5",6,16,"Frisbee6",6,17,"Frisbee7",6,18,"Frisbee8",6,19,"Frisbee9",6,20,"add",6,21,"again",6,22,"back",6,23,"backLoad",6,24,"begin",6,25,"beginLabel",6,26,"biaoDi",6,27,"gameover",6,28,"icon",6,29,"jump",6,30,"kuang",6,31,"next",6,32,"num_di",6,33,"perfet",6,34,"perfet2",6,35,"player",6,36,"progress0",6,37,"progress1",6,38,"progress2",6,39,"rankBtn",6,40,"rankBtnBg",6,41,"rank_Item",6,42,"rank_Self",6,43,"share",6,44,"star1",6,45,"star2",6,46,"tai",6,47,"tai_line",6,48,"tip1",6,49,"tip2",6,50,"tip3",6,51,"tip4",6,52,"tip5",6,53,"tip6",6,54,"tip_left",6,55,"tip_right",6,56,"tip_start",6,57,"toutu",6,58,"xin",6,59,"xin1",6,60,"xin_1",6,61]]],0,0,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62],[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]],[[{"name":"BigXin1","rect":[995,1025,174,140],"offset":[0,0],"originalSize":[174,140],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee8","rect":[1973,605,188,60],"offset":[0,0],"originalSize":[188,60],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"5","rect":[1913,1234,49,49],"offset":[0,0],"originalSize":[49,49],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"icon","rect":[1171,1025,54,78],"offset":[0,0],"originalSize":[54,78],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"gameover","rect":[703,1,723,200],"offset":[0,0],"originalSize":[723,200],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"beginLabel","rect":[675,1025,318,203],"offset":[0,0],"originalSize":[318,203],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"biaoDi","rect":[1825,197,448,60],"offset":[0,0],"originalSize":[448,60],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"rank_Item","rect":[1251,325,750,94],"offset":[0,0],"originalSize":[750,94],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"2","rect":[1973,795,53,79],"offset":[0,0],"originalSize":[53,79],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip3","rect":[1347,1063,423,102],"offset":[-1,1],"originalSize":[695,360],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"xin1","rect":[1899,876,40,32],"offset":[0,0],"originalSize":[40,32],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip1","rect":[1347,325,509,126],"offset":[-1,1],"originalSize":[695,360],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"rankBtn","rect":[1887,501,102,102],"offset":[0,0],"originalSize":[102,102],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"4","rect":[1726,1243,49,50],"offset":[0,0],"originalSize":[49,50],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip2","rect":[1,1099,427,206],"offset":[-1,1],"originalSize":[695,360],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"BigXin2","rect":[469,968,204,168],"offset":[0,0],"originalSize":[204,168],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"player","rect":[1347,836,66,124],"offset":[0,0],"originalSize":[66,124],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"begin","rect":[1428,113,444,82],"offset":[0,0],"originalSize":[444,82],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee6","rect":[948,1241,202,64],"offset":[0,0],"originalSize":[202,64],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"xin","rect":[1997,876,44,36],"offset":[0,0],"originalSize":[44,36],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip_right","rect":[1475,551,348,352],"offset":[0,-4],"originalSize":[348,360],"capInsets":[0,322,0,0]}],[0],0,[0],[0],[0]],[[{"name":"progress2","rect":[1266,1167,310,68],"offset":[0,0],"originalSize":[310,68],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee7","rect":[1939,876,170,56],"offset":[0,0],"originalSize":[170,56],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee9","rect":[1152,1243,160,62],"offset":[0,0],"originalSize":[160,62],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip5","rect":[2003,1,323,30],"offset":[-1,1],"originalSize":[695,360],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"next","rect":[1516,1243,208,46],"offset":[0,0],"originalSize":[208,46],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"kuang","rect":[257,347,695,210],"offset":[0,0],"originalSize":[695,210],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tai_line","rect":[1347,905,440,156],"offset":[0,0],"originalSize":[440,156],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"rank_Self","rect":[703,203,750,120],"offset":[0,0],"originalSize":[750,120],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"share","rect":[1997,922,36,36],"offset":[0,0],"originalSize":[36,36],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"xin_1","rect":[1991,501,96,37],"offset":[0,0],"originalSize":[96,37],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"star1","rect":[675,968,54,54],"offset":[0,0],"originalSize":[54,54],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"jump","rect":[257,1044,208,46],"offset":[0,0],"originalSize":[208,46],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee10","rect":[1789,918,196,74],"offset":[0,0],"originalSize":[196,74],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"num_di","rect":[430,1290,180,10],"offset":[0,0],"originalSize":[180,10],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"3","rect":[1854,1120,59,83],"offset":[0,0],"originalSize":[59,83],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tip6","rect":[1428,1,541,110],"offset":[4,-4],"originalSize":[695,360],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"tai","rect":[1,347,750,254],"offset":[0,0],"originalSize":[750,254],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee12","rect":[1314,1237,200,60],"offset":[0,0],"originalSize":[200,60],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"1","rect":[1939,1048,50,79],"offset":[0,0],"originalSize":[50,79],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"Frisbee3","rect":[1171,1081,156,70],"offset":[0,0],"originalSize":[156,70],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"add","rect":[1915,1175,57,59],"offset":[0,0],"originalSize":[57,59],"rotated":1,"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]],[[{"name":"backLoad","rect":[995,1167,269,72],"offset":[0,0],"originalSize":[269,72],"capInsets":[0,0,0,0]}],[0],0,[0],[0],[0]]]] \ No newline at end of file diff --git a/build/FlyUp/assets/resources/import/39/39c7366d-16be-4cfd-a704-29622baba703.json b/build/FlyUp/assets/resources/import/39/39c7366d-16be-4cfd-a704-29622baba703.84194.json similarity index 100% rename from build/FlyUp/assets/resources/import/39/39c7366d-16be-4cfd-a704-29622baba703.json rename to build/FlyUp/assets/resources/import/39/39c7366d-16be-4cfd-a704-29622baba703.84194.json diff --git a/build/FlyUp/assets/resources/import/39/39de83c4-7280-4325-a8a2-461a68d2250f.json b/build/FlyUp/assets/resources/import/39/39de83c4-7280-4325-a8a2-461a68d2250f.2d4d0.json similarity index 100% rename from build/FlyUp/assets/resources/import/39/39de83c4-7280-4325-a8a2-461a68d2250f.json rename to build/FlyUp/assets/resources/import/39/39de83c4-7280-4325-a8a2-461a68d2250f.2d4d0.json diff --git a/build/FlyUp/assets/resources/import/59/5981526b-0235-4e83-9544-f0add48f3966.json b/build/FlyUp/assets/resources/import/59/5981526b-0235-4e83-9544-f0add48f3966.93026.json similarity index 100% rename from build/FlyUp/assets/resources/import/59/5981526b-0235-4e83-9544-f0add48f3966.json rename to build/FlyUp/assets/resources/import/59/5981526b-0235-4e83-9544-f0add48f3966.93026.json diff --git a/build/FlyUp/assets/resources/import/80/80a748b5-22dd-499e-a931-d44abafed8d8.json b/build/FlyUp/assets/resources/import/80/80a748b5-22dd-499e-a931-d44abafed8d8.fadeb.json similarity index 100% rename from build/FlyUp/assets/resources/import/80/80a748b5-22dd-499e-a931-d44abafed8d8.json rename to build/FlyUp/assets/resources/import/80/80a748b5-22dd-499e-a931-d44abafed8d8.fadeb.json diff --git a/build/FlyUp/assets/resources/import/88/883ab91b-f61b-4c5d-9ead-76157f77c91a.json b/build/FlyUp/assets/resources/import/88/883ab91b-f61b-4c5d-9ead-76157f77c91a.665f3.json similarity index 100% rename from build/FlyUp/assets/resources/import/88/883ab91b-f61b-4c5d-9ead-76157f77c91a.json rename to build/FlyUp/assets/resources/import/88/883ab91b-f61b-4c5d-9ead-76157f77c91a.665f3.json diff --git a/build/FlyUp/assets/resources/import/8b/8b332fb3-927b-4b74-b09f-f429da9f2537.json b/build/FlyUp/assets/resources/import/8b/8b332fb3-927b-4b74-b09f-f429da9f2537.697ba.json similarity index 100% rename from build/FlyUp/assets/resources/import/8b/8b332fb3-927b-4b74-b09f-f429da9f2537.json rename to build/FlyUp/assets/resources/import/8b/8b332fb3-927b-4b74-b09f-f429da9f2537.697ba.json diff --git a/build/FlyUp/assets/resources/import/92/92002b15-f0a9-4d09-a3cb-cddc06be6f1c.json b/build/FlyUp/assets/resources/import/92/92002b15-f0a9-4d09-a3cb-cddc06be6f1c.f5fcb.json similarity index 100% rename from build/FlyUp/assets/resources/import/92/92002b15-f0a9-4d09-a3cb-cddc06be6f1c.json rename to build/FlyUp/assets/resources/import/92/92002b15-f0a9-4d09-a3cb-cddc06be6f1c.f5fcb.json diff --git a/build/FlyUp/assets/resources/import/92/927c6c0c-9a40-4263-9939-568aae691d7e.json b/build/FlyUp/assets/resources/import/92/927c6c0c-9a40-4263-9939-568aae691d7e.e482a.json similarity index 100% rename from build/FlyUp/assets/resources/import/92/927c6c0c-9a40-4263-9939-568aae691d7e.json rename to build/FlyUp/assets/resources/import/92/927c6c0c-9a40-4263-9939-568aae691d7e.e482a.json diff --git a/build/FlyUp/assets/resources/import/93/930cfa4c-c4a5-4111-933d-f79218024b5f.json b/build/FlyUp/assets/resources/import/93/930cfa4c-c4a5-4111-933d-f79218024b5f.ecaf7.json similarity index 100% rename from build/FlyUp/assets/resources/import/93/930cfa4c-c4a5-4111-933d-f79218024b5f.json rename to build/FlyUp/assets/resources/import/93/930cfa4c-c4a5-4111-933d-f79218024b5f.ecaf7.json diff --git a/build/FlyUp/assets/resources/import/ad/ad5635b9-ba5e-49e3-9f57-bef588c01dca.json b/build/FlyUp/assets/resources/import/ad/ad5635b9-ba5e-49e3-9f57-bef588c01dca.04d1a.json similarity index 100% rename from build/FlyUp/assets/resources/import/ad/ad5635b9-ba5e-49e3-9f57-bef588c01dca.json rename to build/FlyUp/assets/resources/import/ad/ad5635b9-ba5e-49e3-9f57-bef588c01dca.04d1a.json diff --git a/build/FlyUp/assets/resources/import/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.json b/build/FlyUp/assets/resources/import/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.59798.json similarity index 55% rename from build/FlyUp/assets/resources/import/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.json rename to build/FlyUp/assets/resources/import/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.59798.json index 52a1435..932afcf 100644 --- a/build/FlyUp/assets/resources/import/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.json +++ b/build/FlyUp/assets/resources/import/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.59798.json @@ -1 +1 @@ -[1,0,0,[["cc.AudioClip",["_name","_native","duration"],0]],[[0,0,1,2,4]],[[0,"dui",".mp3",0.10449],-1],0,0,[],[],[]] \ No newline at end of file +[1,0,0,[["cc.AudioClip",["_name","_native","duration"],0]],[[0,0,1,2,4]],[[0,"dui",".mp3",0.624],-1],0,0,[],[],[]] \ No newline at end of file diff --git a/build/FlyUp/assets/resources/import/b9/b95d9601-d241-4c69-8188-5702332835ba.json b/build/FlyUp/assets/resources/import/b9/b95d9601-d241-4c69-8188-5702332835ba.b1e9b.json similarity index 100% rename from build/FlyUp/assets/resources/import/b9/b95d9601-d241-4c69-8188-5702332835ba.json rename to build/FlyUp/assets/resources/import/b9/b95d9601-d241-4c69-8188-5702332835ba.b1e9b.json diff --git a/build/FlyUp/assets/resources/import/c7/c7946dfb-d5d6-4660-b543-589148787d98.json b/build/FlyUp/assets/resources/import/c7/c7946dfb-d5d6-4660-b543-589148787d98.5f152.json similarity index 100% rename from build/FlyUp/assets/resources/import/c7/c7946dfb-d5d6-4660-b543-589148787d98.json rename to build/FlyUp/assets/resources/import/c7/c7946dfb-d5d6-4660-b543-589148787d98.5f152.json diff --git a/build/FlyUp/assets/resources/import/cb/cbbdc0fe-70fe-4713-a29c-72e3ec7e2511.json b/build/FlyUp/assets/resources/import/cb/cbbdc0fe-70fe-4713-a29c-72e3ec7e2511.f4627.json similarity index 100% rename from build/FlyUp/assets/resources/import/cb/cbbdc0fe-70fe-4713-a29c-72e3ec7e2511.json rename to build/FlyUp/assets/resources/import/cb/cbbdc0fe-70fe-4713-a29c-72e3ec7e2511.f4627.json diff --git a/build/FlyUp/assets/resources/import/e8/e8c4b883-58ba-4ca5-8369-e53e35866e30.json b/build/FlyUp/assets/resources/import/e8/e8c4b883-58ba-4ca5-8369-e53e35866e30.a9e26.json similarity index 100% rename from build/FlyUp/assets/resources/import/e8/e8c4b883-58ba-4ca5-8369-e53e35866e30.json rename to build/FlyUp/assets/resources/import/e8/e8c4b883-58ba-4ca5-8369-e53e35866e30.a9e26.json diff --git a/build/FlyUp/assets/resources/index.js b/build/FlyUp/assets/resources/index.af6f5.js similarity index 100% rename from build/FlyUp/assets/resources/index.js rename to build/FlyUp/assets/resources/index.af6f5.js diff --git a/build/FlyUp/assets/resources/native/0e/0e8eeb5c-0b8f-428c-a2d9-fffee0bd8444.png b/build/FlyUp/assets/resources/native/0e/0e8eeb5c-0b8f-428c-a2d9-fffee0bd8444.5097d.png similarity index 100% rename from build/FlyUp/assets/resources/native/0e/0e8eeb5c-0b8f-428c-a2d9-fffee0bd8444.png rename to build/FlyUp/assets/resources/native/0e/0e8eeb5c-0b8f-428c-a2d9-fffee0bd8444.5097d.png diff --git a/build/FlyUp/assets/resources/native/1a/1acb16ed-6dae-4edb-a9c7-20f87ca980e4.png b/build/FlyUp/assets/resources/native/1a/1acb16ed-6dae-4edb-a9c7-20f87ca980e4.f28db.png similarity index 100% rename from build/FlyUp/assets/resources/native/1a/1acb16ed-6dae-4edb-a9c7-20f87ca980e4.png rename to build/FlyUp/assets/resources/native/1a/1acb16ed-6dae-4edb-a9c7-20f87ca980e4.f28db.png diff --git a/build/FlyUp/assets/resources/native/45/450e7b7e-22d7-45ed-8e51-14aaa730a393.jpg b/build/FlyUp/assets/resources/native/45/450e7b7e-22d7-45ed-8e51-14aaa730a393.fe5a6.jpg similarity index 100% rename from build/FlyUp/assets/resources/native/45/450e7b7e-22d7-45ed-8e51-14aaa730a393.jpg rename to build/FlyUp/assets/resources/native/45/450e7b7e-22d7-45ed-8e51-14aaa730a393.fe5a6.jpg diff --git a/build/FlyUp/assets/resources/native/61/61912805-ef11-4beb-8332-57f93193dc55.jpg b/build/FlyUp/assets/resources/native/61/61912805-ef11-4beb-8332-57f93193dc55.24a6c.jpg similarity index 100% rename from build/FlyUp/assets/resources/native/61/61912805-ef11-4beb-8332-57f93193dc55.jpg rename to build/FlyUp/assets/resources/native/61/61912805-ef11-4beb-8332-57f93193dc55.24a6c.jpg diff --git a/build/FlyUp/assets/resources/native/72/7218ca9c-d570-4a49-83c6-c06ea8ae8841.png b/build/FlyUp/assets/resources/native/72/7218ca9c-d570-4a49-83c6-c06ea8ae8841.c33ad.png similarity index 100% rename from build/FlyUp/assets/resources/native/72/7218ca9c-d570-4a49-83c6-c06ea8ae8841.png rename to build/FlyUp/assets/resources/native/72/7218ca9c-d570-4a49-83c6-c06ea8ae8841.c33ad.png diff --git a/build/FlyUp/assets/resources/native/74/7488cf4e-34cd-4f14-82fe-9cf6f54566c8.jpg b/build/FlyUp/assets/resources/native/74/7488cf4e-34cd-4f14-82fe-9cf6f54566c8.5f19d.jpg similarity index 100% rename from build/FlyUp/assets/resources/native/74/7488cf4e-34cd-4f14-82fe-9cf6f54566c8.jpg rename to build/FlyUp/assets/resources/native/74/7488cf4e-34cd-4f14-82fe-9cf6f54566c8.5f19d.jpg diff --git a/build/FlyUp/assets/resources/native/88/883ab91b-f61b-4c5d-9ead-76157f77c91a.atlas b/build/FlyUp/assets/resources/native/88/883ab91b-f61b-4c5d-9ead-76157f77c91a.10646.atlas similarity index 100% rename from build/FlyUp/assets/resources/native/88/883ab91b-f61b-4c5d-9ead-76157f77c91a.atlas rename to build/FlyUp/assets/resources/native/88/883ab91b-f61b-4c5d-9ead-76157f77c91a.10646.atlas diff --git a/build/FlyUp/assets/resources/native/8b/8b332fb3-927b-4b74-b09f-f429da9f2537.atlas b/build/FlyUp/assets/resources/native/8b/8b332fb3-927b-4b74-b09f-f429da9f2537.32902.atlas similarity index 100% rename from build/FlyUp/assets/resources/native/8b/8b332fb3-927b-4b74-b09f-f429da9f2537.atlas rename to build/FlyUp/assets/resources/native/8b/8b332fb3-927b-4b74-b09f-f429da9f2537.32902.atlas diff --git a/build/FlyUp/assets/resources/native/92/927c6c0c-9a40-4263-9939-568aae691d7e.mp3 b/build/FlyUp/assets/resources/native/92/927c6c0c-9a40-4263-9939-568aae691d7e.ec9b5.mp3 similarity index 100% rename from build/FlyUp/assets/resources/native/92/927c6c0c-9a40-4263-9939-568aae691d7e.mp3 rename to build/FlyUp/assets/resources/native/92/927c6c0c-9a40-4263-9939-568aae691d7e.ec9b5.mp3 diff --git a/build/FlyUp/assets/resources/native/93/930cfa4c-c4a5-4111-933d-f79218024b5f.mp3 b/build/FlyUp/assets/resources/native/93/930cfa4c-c4a5-4111-933d-f79218024b5f.853ed.mp3 similarity index 100% rename from build/FlyUp/assets/resources/native/93/930cfa4c-c4a5-4111-933d-f79218024b5f.mp3 rename to build/FlyUp/assets/resources/native/93/930cfa4c-c4a5-4111-933d-f79218024b5f.853ed.mp3 diff --git a/build/FlyUp/assets/resources/native/ad/ad5635b9-ba5e-49e3-9f57-bef588c01dca.mp3 b/build/FlyUp/assets/resources/native/ad/ad5635b9-ba5e-49e3-9f57-bef588c01dca.986c8.mp3 similarity index 100% rename from build/FlyUp/assets/resources/native/ad/ad5635b9-ba5e-49e3-9f57-bef588c01dca.mp3 rename to build/FlyUp/assets/resources/native/ad/ad5635b9-ba5e-49e3-9f57-bef588c01dca.986c8.mp3 diff --git a/build/FlyUp/assets/resources/native/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.4b204.mp3 b/build/FlyUp/assets/resources/native/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.4b204.mp3 new file mode 100644 index 0000000..4ded430 Binary files /dev/null and b/build/FlyUp/assets/resources/native/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.4b204.mp3 differ diff --git a/build/FlyUp/assets/resources/native/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.mp3 b/build/FlyUp/assets/resources/native/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.mp3 deleted file mode 100644 index f68ef65..0000000 Binary files a/build/FlyUp/assets/resources/native/ae/ae860740-a9fe-4af7-b351-95e46e9ec909.mp3 and /dev/null differ diff --git a/build/FlyUp/assets/resources/native/bc/bc384e13-6c20-473a-a765-c059e34668db.jpg b/build/FlyUp/assets/resources/native/bc/bc384e13-6c20-473a-a765-c059e34668db.4e29f.jpg similarity index 100% rename from build/FlyUp/assets/resources/native/bc/bc384e13-6c20-473a-a765-c059e34668db.jpg rename to build/FlyUp/assets/resources/native/bc/bc384e13-6c20-473a-a765-c059e34668db.4e29f.jpg diff --git a/build/FlyUp/assets/resources/native/c9/c9dcd7a5-3a8f-4fe8-879c-73179f12b252.png b/build/FlyUp/assets/resources/native/c9/c9dcd7a5-3a8f-4fe8-879c-73179f12b252.33f0b.png similarity index 100% rename from build/FlyUp/assets/resources/native/c9/c9dcd7a5-3a8f-4fe8-879c-73179f12b252.png rename to build/FlyUp/assets/resources/native/c9/c9dcd7a5-3a8f-4fe8-879c-73179f12b252.33f0b.png diff --git a/build/FlyUp/assets/resources/native/cb/cbbdc0fe-70fe-4713-a29c-72e3ec7e2511.mp3 b/build/FlyUp/assets/resources/native/cb/cbbdc0fe-70fe-4713-a29c-72e3ec7e2511.71c34.mp3 similarity index 100% rename from build/FlyUp/assets/resources/native/cb/cbbdc0fe-70fe-4713-a29c-72e3ec7e2511.mp3 rename to build/FlyUp/assets/resources/native/cb/cbbdc0fe-70fe-4713-a29c-72e3ec7e2511.71c34.mp3 diff --git a/build/FlyUp/assets/resources/native/f0/f0cb9adb-fe45-4876-a6bd-719a0dc3e830.07ccf.png b/build/FlyUp/assets/resources/native/f0/f0cb9adb-fe45-4876-a6bd-719a0dc3e830.07ccf.png new file mode 100644 index 0000000..4026317 Binary files /dev/null and b/build/FlyUp/assets/resources/native/f0/f0cb9adb-fe45-4876-a6bd-719a0dc3e830.07ccf.png differ diff --git a/build/FlyUp/assets/resources/native/f0/f0cb9adb-fe45-4876-a6bd-719a0dc3e830.png b/build/FlyUp/assets/resources/native/f0/f0cb9adb-fe45-4876-a6bd-719a0dc3e830.png deleted file mode 100644 index 805b54d..0000000 Binary files a/build/FlyUp/assets/resources/native/f0/f0cb9adb-fe45-4876-a6bd-719a0dc3e830.png and /dev/null differ diff --git a/build/FlyUp/cocos2d-js-min.js b/build/FlyUp/cocos2d-js-min.07b7e.js similarity index 53% rename from build/FlyUp/cocos2d-js-min.js rename to build/FlyUp/cocos2d-js-min.07b7e.js index 5221ba3..a1f648b 100644 --- a/build/FlyUp/cocos2d-js-min.js +++ b/build/FlyUp/cocos2d-js-min.07b7e.js @@ -1 +1 @@ -(function(t,e,i){function n(i){var r=e[i];if(!r){var s=t[i];if(!s)return;var a={};r=e[i]={exports:a},s[0]((function(t){return n(s[1][t]||t)}),r,a)}return r.exports}for(var r=0;r=0;i--)e.push(cc.v2(t[i].x,t[i].y));return e}function i(t){for(var e=[],i=0;i=this._duration},_cloneDecoration:function(t){t._repeatForever=this._repeatForever,t._speed=this._speed,t._timesForRepeat=this._timesForRepeat,t._easeList=this._easeList,t._speedMethod=this._speedMethod,t._repeatMethod=this._repeatMethod},_reverseEaseList:function(t){if(this._easeList){t._easeList=[];for(var e=0;e1.192092896e-7?this._duration:1.192092896e-7);e=1>e?e:1,this.update(e>0?e:0),this._repeatMethod&&this._timesForRepeat>1&&this.isDone()&&(this._repeatForever||this._timesForRepeat--,this.startWithTarget(this.target),this.step(this._elapsed-this._duration))},startWithTarget:function(t){cc.Action.prototype.startWithTarget.call(this,t),this._elapsed=0,this._firstTick=!0},reverse:function(){return cc.logID(1010),null},setAmplitudeRate:function(){cc.logID(1011)},getAmplitudeRate:function(){return cc.logID(1012),0},speed:function(t){return t<=0?(cc.logID(1013),this):(this._speedMethod=!0,this._speed*=t,this)},getSpeed:function(){return this._speed},setSpeed:function(t){return this._speed=t,this},repeat:function(t){return t=Math.round(t),isNaN(t)||t<1?(cc.logID(1014),this):(this._repeatMethod=!0,this._timesForRepeat*=t,this)},repeatForever:function(){return this._repeatMethod=!0,this._timesForRepeat=this.MAX_VALUE,this._repeatForever=!0,this}}),cc.actionInterval=function(t){return new cc.ActionInterval(t)},cc.Sequence=cc.Class({name:"cc.Sequence",extends:cc.ActionInterval,ctor:function(t){this._actions=[],this._split=null,this._last=0,this._reversed=!1;var e=t instanceof Array?t:arguments;if(1!==e.length){var i=e.length-1;if(i>=0&&null==e[i]&&cc.logID(1015),i>=0){for(var n,r=e[0],s=1;s1?e%1:e),this._last=n)},reverse:function(){var t=cc.Sequence._actionOneTwo(this._actions[1].reverse(),this._actions[0].reverse());return this._cloneDecoration(t),this._reverseEaseList(t),t._reversed=!0,t}}),cc.sequence=function(t){var e=t instanceof Array?t:arguments;if(1===e.length)return cc.errorID(1019),null;var i=e.length-1;i>=0&&null==e[i]&&cc.logID(1015);var n=null;if(i>=0){n=e[0];for(var r=1;r<=i;r++)e[r]&&(n=cc.Sequence._actionOneTwo(n,e[r]))}return n},cc.Sequence._actionOneTwo=function(t,e){var i=new cc.Sequence;return i.initWithTwoActions(t,e),i},cc.Repeat=cc.Class({name:"cc.Repeat",extends:cc.ActionInterval,ctor:function(t,e){this._times=0,this._total=0,this._nextDt=0,this._actionInstant=!1,this._innerAction=null,void 0!==e&&this.initWithAction(t,e)},initWithAction:function(t,e){var i=t._duration*e;return!!this.initWithDuration(i)&&(this._times=e,this._innerAction=t,t instanceof cc.ActionInstant&&(this._actionInstant=!0,this._times-=1),this._total=0,!0)},clone:function(){var t=new cc.Repeat;return this._cloneDecoration(t),t.initWithAction(this._innerAction.clone(),this._times),t},startWithTarget:function(t){this._total=0,this._nextDt=this._innerAction._duration/this._duration,cc.ActionInterval.prototype.startWithTarget.call(this,t),this._innerAction.startWithTarget(t)},stop:function(){this._innerAction.stop(),cc.Action.prototype.stop.call(this)},update:function(t){t=this._computeEaseTime(t);var e=this._innerAction,i=this._duration,n=this._times,r=this._nextDt;if(t>=r){for(;t>r&&this._total1?1:r;t>=1&&this._total=0&&null==e[i]&&cc.logID(1015),i>=0){for(var n,r=e[0],s=1;sr?this._two=cc.Sequence._actionOneTwo(e,cc.delayTime(n-r)):n0&&null==e[e.length-1]&&cc.logID(1015);for(var i=e[0],n=1;n180&&(i-=360),i<-180&&(i+=360),this._startAngle=e,this._angle=cc.RotateTo._reverse?i:-i},reverse:function(){cc.logID(1016)},update:function(t){t=this._computeEaseTime(t),this.target&&(this.target.angle=this._startAngle+this._angle*t)}}),cc.rotateTo=function(t,e){return new cc.RotateTo(t,e)},cc.RotateBy=cc.Class({name:"cc.RotateBy",extends:cc.ActionInterval,statics:{_reverse:!1},ctor:function(t,e){e*=cc.RotateBy._reverse?1:-1,this._deltaAngle=0,this._startAngle=0,void 0!==e&&this.initWithDuration(t,e)},initWithDuration:function(t,e){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._deltaAngle=e,!0)},clone:function(){var t=new cc.RotateBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._deltaAngle),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._startAngle=t.angle},update:function(t){t=this._computeEaseTime(t),this.target&&(this.target.angle=this._startAngle+this._deltaAngle*t)},reverse:function(){var t=new cc.RotateBy;return t.initWithDuration(this._duration,-this._deltaAngle),this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.rotateBy=function(t,e){return new cc.RotateBy(t,e)},cc.MoveBy=cc.Class({name:"cc.MoveBy",extends:cc.ActionInterval,ctor:function(t,e,i){this._positionDelta=cc.v2(0,0),this._startPosition=cc.v2(0,0),this._previousPosition=cc.v2(0,0),void 0!==e&&cc.MoveBy.prototype.initWithDuration.call(this,t,e,i)},initWithDuration:function(t,e,i){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(void 0!==e.x&&(i=e.y,e=e.x),this._positionDelta.x=e,this._positionDelta.y=i,!0)},clone:function(){var t=new cc.MoveBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._positionDelta),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t);var e=t.x,i=t.y;this._previousPosition.x=e,this._previousPosition.y=i,this._startPosition.x=e,this._startPosition.y=i},update:function(t){if(t=this._computeEaseTime(t),this.target){var e=this._positionDelta.x*t,i=this._positionDelta.y*t,n=this._startPosition;if(cc.macro.ENABLE_STACKABLE_ACTIONS){var r=this.target.x,s=this.target.y,a=this._previousPosition;n.x=n.x+r-a.x,n.y=n.y+s-a.y,e+=n.x,i+=n.y,a.x=e,a.y=i,this.target.setPosition(e,i)}else this.target.setPosition(n.x+e,n.y+i)}},reverse:function(){var t=new cc.MoveBy(this._duration,cc.v2(-this._positionDelta.x,-this._positionDelta.y));return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.moveBy=function(t,e,i){return new cc.MoveBy(t,e,i)},cc.MoveTo=cc.Class({name:"cc.MoveTo",extends:cc.MoveBy,ctor:function(t,e,i){this._endPosition=cc.v2(0,0),void 0!==e&&this.initWithDuration(t,e,i)},initWithDuration:function(t,e,i){return!!cc.MoveBy.prototype.initWithDuration.call(this,t,e,i)&&(void 0!==e.x&&(i=e.y,e=e.x),this._endPosition.x=e,this._endPosition.y=i,!0)},clone:function(){var t=new cc.MoveTo;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._endPosition),t},startWithTarget:function(t){cc.MoveBy.prototype.startWithTarget.call(this,t),this._positionDelta.x=this._endPosition.x-t.x,this._positionDelta.y=this._endPosition.y-t.y}}),cc.moveTo=function(t,e,i){return new cc.MoveTo(t,e,i)},cc.SkewTo=cc.Class({name:"cc.SkewTo",extends:cc.ActionInterval,ctor:function(t,e,i){this._skewX=0,this._skewY=0,this._startSkewX=0,this._startSkewY=0,this._endSkewX=0,this._endSkewY=0,this._deltaX=0,this._deltaY=0,void 0!==i&&cc.SkewTo.prototype.initWithDuration.call(this,t,e,i)},initWithDuration:function(t,e,i){var n=!1;return cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._endSkewX=e,this._endSkewY=i,n=!0),n},clone:function(){var t=new cc.SkewTo;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._endSkewX,this._endSkewY),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._startSkewX=t.skewX%180,this._deltaX=this._endSkewX-this._startSkewX,this._deltaX>180&&(this._deltaX-=360),this._deltaX<-180&&(this._deltaX+=360),this._startSkewY=t.skewY%360,this._deltaY=this._endSkewY-this._startSkewY,this._deltaY>180&&(this._deltaY-=360),this._deltaY<-180&&(this._deltaY+=360)},update:function(t){t=this._computeEaseTime(t),this.target.skewX=this._startSkewX+this._deltaX*t,this.target.skewY=this._startSkewY+this._deltaY*t}}),cc.skewTo=function(t,e,i){return new cc.SkewTo(t,e,i)},cc.SkewBy=cc.Class({name:"cc.SkewBy",extends:cc.SkewTo,ctor:function(t,e,i){void 0!==i&&this.initWithDuration(t,e,i)},initWithDuration:function(t,e,i){var n=!1;return cc.SkewTo.prototype.initWithDuration.call(this,t,e,i)&&(this._skewX=e,this._skewY=i,n=!0),n},clone:function(){var t=new cc.SkewBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._skewX,this._skewY),t},startWithTarget:function(t){cc.SkewTo.prototype.startWithTarget.call(this,t),this._deltaX=this._skewX,this._deltaY=this._skewY,this._endSkewX=this._startSkewX+this._deltaX,this._endSkewY=this._startSkewY+this._deltaY},reverse:function(){var t=new cc.SkewBy(this._duration,-this._skewX,-this._skewY);return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.skewBy=function(t,e,i){return new cc.SkewBy(t,e,i)},cc.JumpBy=cc.Class({name:"cc.JumpBy",extends:cc.ActionInterval,ctor:function(t,e,i,n,r){this._startPosition=cc.v2(0,0),this._previousPosition=cc.v2(0,0),this._delta=cc.v2(0,0),this._height=0,this._jumps=0,void 0!==n&&cc.JumpBy.prototype.initWithDuration.call(this,t,e,i,n,r)},initWithDuration:function(t,e,i,n,r){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(void 0===r&&(r=n,n=i,i=e.y,e=e.x),this._delta.x=e,this._delta.y=i,this._height=n,this._jumps=r,!0)},clone:function(){var t=new cc.JumpBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._delta,this._height,this._jumps),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t);var e=t.x,i=t.y;this._previousPosition.x=e,this._previousPosition.y=i,this._startPosition.x=e,this._startPosition.y=i},update:function(t){if(t=this._computeEaseTime(t),this.target){var e=t*this._jumps%1,i=4*this._height*e*(1-e);i+=this._delta.y*t;var n=this._delta.x*t,r=this._startPosition;if(cc.macro.ENABLE_STACKABLE_ACTIONS){var s=this.target.x,a=this.target.y,o=this._previousPosition;r.x=r.x+s-o.x,r.y=r.y+a-o.y,n+=r.x,i+=r.y,o.x=n,o.y=i,this.target.setPosition(n,i)}else this.target.setPosition(r.x+n,r.y+i)}},reverse:function(){var t=new cc.JumpBy(this._duration,cc.v2(-this._delta.x,-this._delta.y),this._height,this._jumps);return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.jumpBy=function(t,e,i,n,r){return new cc.JumpBy(t,e,i,n,r)},cc.JumpTo=cc.Class({name:"cc.JumpTo",extends:cc.JumpBy,ctor:function(t,e,i,n,r){this._endPosition=cc.v2(0,0),void 0!==n&&this.initWithDuration(t,e,i,n,r)},initWithDuration:function(t,e,i,n,r){return!!cc.JumpBy.prototype.initWithDuration.call(this,t,e,i,n,r)&&(void 0===r&&(i=e.y,e=e.x),this._endPosition.x=e,this._endPosition.y=i,!0)},startWithTarget:function(t){cc.JumpBy.prototype.startWithTarget.call(this,t),this._delta.x=this._endPosition.x-this._startPosition.x,this._delta.y=this._endPosition.y-this._startPosition.y},clone:function(){var t=new cc.JumpTo;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._endPosition,this._height,this._jumps),t}}),cc.jumpTo=function(t,e,i,n,r){return new cc.JumpTo(t,e,i,n,r)},cc.BezierBy=cc.Class({name:"cc.BezierBy",extends:cc.ActionInterval,ctor:function(t,e){this._config=[],this._startPosition=cc.v2(0,0),this._previousPosition=cc.v2(0,0),e&&cc.BezierBy.prototype.initWithDuration.call(this,t,e)},initWithDuration:function(t,e){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._config=e,!0)},clone:function(){var t=new cc.BezierBy;this._cloneDecoration(t);for(var e=[],i=0;ie/2?255:0}},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._originalState=t.opacity},stop:function(){this.target.opacity=this._originalState,cc.ActionInterval.prototype.stop.call(this)},reverse:function(){var t=new cc.Blink(this._duration,this._times);return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.blink=function(t,e){return new cc.Blink(t,e)},cc.FadeTo=cc.Class({name:"cc.FadeTo",extends:cc.ActionInterval,ctor:function(t,e){this._toOpacity=0,this._fromOpacity=0,void 0!==e&&cc.FadeTo.prototype.initWithDuration.call(this,t,e)},initWithDuration:function(t,e){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._toOpacity=e,!0)},clone:function(){var t=new cc.FadeTo;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._toOpacity),t},update:function(t){t=this._computeEaseTime(t);var e=void 0!==this._fromOpacity?this._fromOpacity:255;this.target.opacity=e+(this._toOpacity-e)*t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._fromOpacity=t.opacity}}),cc.fadeTo=function(t,e){return new cc.FadeTo(t,e)},cc.FadeIn=cc.Class({name:"cc.FadeIn",extends:cc.FadeTo,ctor:function(t){null==t&&(t=0),this._reverseAction=null,this.initWithDuration(t,255)},reverse:function(){var t=new cc.FadeOut;return t.initWithDuration(this._duration,0),this._cloneDecoration(t),this._reverseEaseList(t),t},clone:function(){var t=new cc.FadeIn;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._toOpacity),t},startWithTarget:function(t){this._reverseAction&&(this._toOpacity=this._reverseAction._fromOpacity),cc.FadeTo.prototype.startWithTarget.call(this,t)}}),cc.fadeIn=function(t){return new cc.FadeIn(t)},cc.FadeOut=cc.Class({name:"cc.FadeOut",extends:cc.FadeTo,ctor:function(t){null==t&&(t=0),this._reverseAction=null,this.initWithDuration(t,0)},reverse:function(){var t=new cc.FadeIn;return t._reverseAction=this,t.initWithDuration(this._duration,255),this._cloneDecoration(t),this._reverseEaseList(t),t},clone:function(){var t=new cc.FadeOut;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._toOpacity),t}}),cc.fadeOut=function(t){return new cc.FadeOut(t)},cc.TintTo=cc.Class({name:"cc.TintTo",extends:cc.ActionInterval,ctor:function(t,e,i,n){this._to=cc.color(0,0,0),this._from=cc.color(0,0,0),e instanceof cc.Color&&(n=e.b,i=e.g,e=e.r),void 0!==n&&this.initWithDuration(t,e,i,n)},initWithDuration:function(t,e,i,n){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._to=cc.color(e,i,n),!0)},clone:function(){var t=new cc.TintTo;this._cloneDecoration(t);var e=this._to;return t.initWithDuration(this._duration,e.r,e.g,e.b),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._from=this.target.color},update:function(t){t=this._computeEaseTime(t);var e=this._from,i=this._to;e&&(this.target.color=cc.color(e.r+(i.r-e.r)*t,e.g+(i.g-e.g)*t,e.b+(i.b-e.b)*t))}}),cc.tintTo=function(t,e,i,n){return new cc.TintTo(t,e,i,n)},cc.TintBy=cc.Class({name:"cc.TintBy",extends:cc.ActionInterval,ctor:function(t,e,i,n){this._deltaR=0,this._deltaG=0,this._deltaB=0,this._fromR=0,this._fromG=0,this._fromB=0,void 0!==n&&this.initWithDuration(t,e,i,n)},initWithDuration:function(t,e,i,n){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._deltaR=e,this._deltaG=i,this._deltaB=n,!0)},clone:function(){var t=new cc.TintBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._deltaR,this._deltaG,this._deltaB),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t);var e=t.color;this._fromR=e.r,this._fromG=e.g,this._fromB=e.b},update:function(t){t=this._computeEaseTime(t),this.target.color=cc.color(this._fromR+this._deltaR*t,this._fromG+this._deltaG*t,this._fromB+this._deltaB*t)},reverse:function(){var t=new cc.TintBy(this._duration,-this._deltaR,-this._deltaG,-this._deltaB);return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.tintBy=function(t,e,i,n){return new cc.TintBy(t,e,i,n)},cc.DelayTime=cc.Class({name:"cc.DelayTime",extends:cc.ActionInterval,update:function(){},reverse:function(){var t=new cc.DelayTime(this._duration);return this._cloneDecoration(t),this._reverseEaseList(t),t},clone:function(){var t=new cc.DelayTime;return this._cloneDecoration(t),t.initWithDuration(this._duration),t}}),cc.delayTime=function(t){return new cc.DelayTime(t)},cc.ReverseTime=cc.Class({name:"cc.ReverseTime",extends:cc.ActionInterval,ctor:function(t){this._other=null,t&&this.initWithAction(t)},initWithAction:function(t){return t?t===this._other?(cc.errorID(1029),!1):!!cc.ActionInterval.prototype.initWithDuration.call(this,t._duration)&&(this._other=t,!0):(cc.errorID(1028),!1)},clone:function(){var t=new cc.ReverseTime;return this._cloneDecoration(t),t.initWithAction(this._other.clone()),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._other.startWithTarget(t)},update:function(t){t=this._computeEaseTime(t),this._other&&this._other.update(1-t)},reverse:function(){return this._other.clone()},stop:function(){this._other.stop(),cc.Action.prototype.stop.call(this)}}),cc.reverseTime=function(t){return new cc.ReverseTime(t)},cc.TargetedAction=cc.Class({name:"cc.TargetedAction",extends:cc.ActionInterval,ctor:function(t,e){this._action=null,this._forcedTarget=null,e&&this.initWithTarget(t,e)},initWithTarget:function(t,e){return!!this.initWithDuration(e._duration)&&(this._forcedTarget=t,this._action=e,!0)},clone:function(){var t=new cc.TargetedAction;return this._cloneDecoration(t),t.initWithTarget(this._forcedTarget,this._action.clone()),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._action.startWithTarget(this._forcedTarget)},stop:function(){this._action.stop()},update:function(t){t=this._computeEaseTime(t),this._action.update(t)},getForcedTarget:function(){return this._forcedTarget},setForcedTarget:function(t){this._forcedTarget!==t&&(this._forcedTarget=t)}}),cc.targetedAction=function(t,e){return new cc.TargetedAction(t,e)}}),{}],6:[(function(t){"use strict";t("../core/platform/CCClass");var e=t("../core/platform/js"),i=function(){this.actions=[],this.target=null,this.actionIndex=0,this.currentAction=null,this.paused=!1,this.lock=!1};cc.ActionManager=function(){this._hashTargets=e.createMap(!0),this._arrayTargets=[],this._currentTarget=null,cc.director._scheduler&&cc.director._scheduler.enableForTarget(this)},cc.ActionManager.prototype={constructor:cc.ActionManager,_elementPool:[],_searchElementByTarget:function(t,e){for(var i=0;i=n&&i.actionIndex--;break}}},_removeActionByTag:function(t,e,i){for(var n=0,r=e.actions.length;n=0;--n){var r=e.actions[n];if(r&&r.getTag()===t){if(i&&r.getOriginalTarget()!==i)continue;this._removeActionAtIndex(n,e)}}},removeActionByTag:function(t,e){t===cc.Action.TAG_INVALID&&cc.logID(1002);var i=this._hashTargets;if(e){var n=i[e._id];n&&this._removeActionByTag(t,n,e)}else for(var r in i){var s=i[r];this._removeActionByTag(t,s)}},removeAllActionsByTag:function(t,e){t===cc.Action.TAG_INVALID&&cc.logID(1002);var i=this._hashTargets;if(e){var n=i[e._id];n&&this._removeAllActionsByTag(t,n,e)}else for(var r in i){var s=i[r];this._removeAllActionsByTag(t,s)}},getActionByTag:function(t,e){t===cc.Action.TAG_INVALID&&cc.logID(1004);var i=this._hashTargets[e._id];if(i){if(null!=i.actions)for(var n=0;n=t&&e.actionIndex--,0===e.actions.length&&this._deleteHashElement(e)},_deleteHashElement:function(t){var e=!1;if(t&&!t.lock&&this._hashTargets[t.target._id]){delete this._hashTargets[t.target._id];for(var i=this._arrayTargets,n=0,r=i.length;n=1?t:r%n>n/2?255:0},this.to(t,{opacity:1},i)}});var a=[];function o(t){return function(){a.length=0;for(var e=arguments.length,i=0;i=0?_=l.events[p]:(_=new a,l.ratios.push(d),l.events.push(_)),_.add(f.func,f.params)}}u.playState=function(t,e){t.clip&&(t.curveLoaded||h(this.target,t),t.animator=this,t.play(),"number"==typeof e&&t.setTime(e),this.play())},u.stopStatesExcept=function(t){var e=this._anims,i=e.array;for(e.i=0;e.i=0?(this._anims.fastRemoveAt(e),0===this._anims.array.length&&this.stop()):cc.errorID(3907),t.animator=null},u.sample=function(){var t=this._anims,e=t.array;for(t.i=0;t.i1e-6){y=!1;break}l._findFrameIndex=y?s:o;var A=l.values[0];return null==A||l._lerp||("number"==typeof A?l._lerp=r.prototype._lerpNumber:A instanceof cc.Quat?l._lerp=r.prototype._lerpQuat:A instanceof cc.Vec2?l._lerp=r.prototype._lerpVector2:A instanceof cc.Vec3?l._lerp=r.prototype._lerpVector3:A.lerp&&(l._lerp=r.prototype._lerpObject)),l},createTargetCurves:function(t,e,i){var n=e.props,r=e.comps;if(n)for(var s in n){var a=n[s],o=this.createPropCurve(t,s,a);i.push(o)}if(r)for(var c in r){var l=t.getComponent(c);if(l){var u=r[c];for(var h in u){var f=u[h],d=this.createPropCurve(l,h,f);i.push(d)}}}},createCurves:function(t,e){var i=this.curveData,n=i.paths,r=[];for(var s in this.createTargetCurves(e,i,r),n){var a=cc.find(s,e);if(a){var o=n[s];this.createTargetCurves(a,o,r)}}return r}});cc.AnimationClip=e.exports=c}),{"../core/utils/binary-search":229,"./animation-curves":11,"./motion-path-helper":17,"./types":19}],11:[(function(t,e){"use strict";var i=t("./bezier").bezierByTime,n=t("../core/utils/binary-search").binarySearchEpsilon,r=t("./types").WrapModeMask,s=t("./types").WrappedInfo;function a(t,e){if("string"==typeof e){var n=cc.easing[e];n?t=n(t):cc.errorID(3906,e)}else Array.isArray(e)&&(t=i(e,t));return t}var o=cc.Class({name:"cc.AnimCurve",sample:function(){},onTimeChangedManually:void 0});var c,l=cc.Class({name:"cc.DynamicAnimCurve",extends:o,ctor:function(){this._cachedIndex=0},properties:{target:null,prop:"",values:[],ratios:[],types:[]},_findFrameIndex:n,_lerp:void 0,_lerpNumber:function(t,e,i){return t+(e-t)*i},_lerpObject:function(t,e,i){return t.lerp(e,i)},_lerpQuat:(c=cc.quat(),function(t,e,i){return t.lerp(e,i,c)}),_lerpVector2:(function(){var t=cc.v2();return function(e,i,n){return e.lerp(i,n,t)}})(),_lerpVector3:(function(){var t=cc.v3();return function(e,i,n){return e.lerp(i,n,t)}})(),sample:function(t,e){var i=this.values,n=this.ratios,r=n.length;if(0!==r){var s,o=!0,c=this._cachedIndex;if(c<0&&(c=~c)>0&&cl&&e=r)s=i[r-1];else{var f=i[h-1];if(this._lerp){var d=n[h-1],_=n[h],p=this.types[h-1],v=(e-d)/(_-d);p&&(v=a(v,p));var g=i[h];s=this._lerp(f,g,v)}else s=f}else s=i[h];this.target[this.prop]=s}}});l.Linear=null,l.Bezier=function(t){return t};var u=function(){this.events=[]};u.prototype.add=function(t,e){this.events.push({func:t||"",params:e||[]})};var h=cc.Class({name:"cc.EventAnimCurve",extends:o,properties:{target:null,ratios:[],events:[],_wrappedInfo:{default:function(){return new s}},_lastWrappedInfo:null,_ignoreIndex:NaN},_wrapIterations:function(t){return t-(0|t)==0&&(t-=1),0|t},sample:function(t,e,i){var a=this.ratios.length,o=i.getWrappedInfo(i.time,this._wrappedInfo),c=o.direction,l=n(this.ratios,o.ratio);if(l<0&&(l=~l-1,c<0&&(l+=1)),this._ignoreIndex!==l&&(this._ignoreIndex=NaN),o.frameIndex=l,!this._lastWrappedInfo)return this._fireEvent(l),void(this._lastWrappedInfo=new s(o));var u=i.wrapMode,h=this._wrapIterations(o.iterations),f=this._lastWrappedInfo,d=this._wrapIterations(f.iterations),_=f.frameIndex,p=f.direction,v=-1!==d&&h!==d;if(_===l&&v&&1===a)this._fireEvent(0);else if(_!==l||v){c=p;do{if(_!==l){if(-1===c&&0===_&&l>0?((u&r.PingPong)===r.PingPong?c*=-1:_=a,d++):1===c&&_===a-1&&lh)break}_+=c,cc.director.getAnimationManager().pushDelayEvent(this,"_fireEvent",[_])}while(_!==l&&_>-1&&_=this.events.length||this._ignoreIndex===t)){var e=this.events[t].events;if(this.target.isValid)for(var i=this.target._components,n=0;nr)return~t.length;var s=(e=(e-n)/(r-n))/(1/i),a=0|s;return s-a<1e-6?a:a+1-s<1e-6?a+1:~(a+1)}}}),{"../core/utils/binary-search":229,"./bezier":14,"./types":19}],12:[(function(t,e){"use strict";var i=cc.js,n=cc.Class({ctor:function(){this._anims=new i.array.MutableForwardIterator([]),this._delayEvents=[],cc.director._scheduler&&cc.director._scheduler.enableForTarget(this)},update:function(t){var e=this._anims,i=e.array;for(e.i=0;e.i=0?this._anims.fastRemoveAt(e):cc.errorID(3907)},pushDelayEvent:function(t,e,i){this._delayEvents.push({target:t,func:e,args:i})}});cc.AnimationManager=e.exports=n}),{}],13:[(function(t,e){"use strict";var i=cc.js,n=t("./playable"),r=t("./types"),s=r.WrappedInfo,a=r.WrapMode,o=r.WrapModeMask;function c(t,e){n.call(this),this._currentFramePlayed=!1,this._delay=0,this._delayTime=0,this._wrappedInfo=new s,this._lastWrappedInfo=null,this._process=u,this._clip=t,this._name=e||t&&t.name,this.animator=null,this.curves=[],this.delay=0,this.repeatCount=1,this.duration=1,this.speed=1,this.wrapMode=a.Normal,this.time=0,this._target=null,this._lastframeEventOn=!1,this.emit=function(){for(var t=new Array(arguments.length),e=0,i=t.length;e1&&(0|e.iterations)>(0|t.iterations)&&this.emit("lastframe",this),t.set(e)),e.stopped&&(this.stop(),this.emit("finished",this))}function h(){var t=this.time,e=this.duration;t>e?0==(t%=e)&&(t=e):t<0&&0!=(t%=e)&&(t+=e);for(var i=t/e,n=this.curves,r=0,s=n.length;r0&&this._lastIterations>i||this.time<0&&this._lastIterations0&&(this._delayTime-=t,this._delayTime>0)||(this._currentFramePlayed?this.time+=t*this.speed:this._currentFramePlayed=!0,this._process())},l._needRevers=function(t){var e=this.wrapMode,i=!1;return(e&o.PingPong)===o.PingPong&&(t-(0|t)==0&&t>0&&(t-=1),1&t&&(i=!i)),(e&o.Reverse)===o.Reverse&&(i=!i),i},l.getWrappedInfo=function(t,e){e=e||new s;var i=!1,n=this.duration,r=this.repeatCount,a=t>0?t/n:-t/n;if(a>=r){a=r,i=!0;var c=r-(0|r);0===c&&(c=1),t=c*n*(t>0?1:-1)}if(t>n){var l=t%n;t=0===l?n:l}else t<0&&0!=(t%=n)&&(t+=n);var u=!1,h=this._wrapMode&o.ShouldWrap;h&&(u=this._needRevers(a));var f=u?-1:1;return this.speed<0&&(f*=-1),h&&u&&(t=n-t),e.ratio=t/n,e.time=t,e.direction=f,e.stopped=i,e.iterations=a,e},l.sample=function(){for(var t=this.getWrappedInfo(this.time,this._wrappedInfo),e=this.curves,i=0,n=e.length;i0}),(function(){this.curves.length=0})),i.getset(l,"wrapMode",(function(){return this._wrapMode}),(function(t){this._wrapMode=t,this.time=0,t&o.Loop?this.repeatCount=1/0:this.repeatCount=1})),i.getset(l,"repeatCount",(function(){return this._repeatCount}),(function(t){this._repeatCount=t;var e=this._wrapMode&o.ShouldWrap,i=(this.wrapMode&o.Reverse)===o.Reverse;this._process=t!==1/0||e||i?u:h})),i.getset(l,"delay",(function(){return this._delay}),(function(t){this._delayTime=this._delay=t})),cc.AnimationState=e.exports=c}),{"./playable":18,"./types":19}],14:[(function(t,e){"use strict";var i=Math.cos,n=Math.acos,r=Math.max,s=2*Math.PI,a=Math.sqrt;function o(t){return t<0?-Math.pow(-t,1/3):Math.pow(t,1/3)}function c(t,e){var c,l,u,h,f=e-0,d=e-t[0],_=3*f,p=3*d,v=3*(e-t[2]),g=1/(-f+p-v+(e-1)),m=(_-6*d+v)*g,y=m*(1/3),T=(-_+p)*g,E=1/3*(3*T-m*m),A=E*(1/3),C=(2*m*m*m-9*m*T+f*g*27)/27,x=C/2,b=x*x+A*A*A;if(b<0){var S=1/3*-E,w=a(S*S*S),R=-C/(2*w),M=n(R<-1?-1:R>1?1:R),I=2*o(w);return l=I*i(M*(1/3))-y,u=I*i((M+s)*(1/3))-y,h=I*i((M+2*s)*(1/3))-y,0<=l&&l<=1?0<=u&&u<=1?0<=h&&h<=1?r(l,u,h):r(l,u):0<=h&&h<=1?r(l,h):l:0<=u&&u<=1?0<=h&&h<=1?r(u,h):u:h}if(0===b)return u=-(c=x<0?o(-x):-o(x))-y,0<=(l=2*c-y)&&l<=1?0<=u&&u<=1?r(l,u):l:u;var O=a(b);return(c=o(-x+O))-o(x+O)-y}e.exports={bezier:function(t,e,i,n,r){var s=1-r;return s*(s*(t+(3*e-t)*r)+3*i*r*r)+n*r*r*r},bezierByTime:function(t,e){var i=c(t,e),n=t[1];return((1-i)*(n+(t[3]-n)*i)*3+i*i)*i}}}),{}],15:[(function(t,e){"use strict";var i={constant:function(){return 0},linear:function(t){return t},quadIn:function(t){return t*t},quadOut:function(t){return t*(2-t)},quadInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quartIn:function(t){return t*t*t*t},quartOut:function(t){return 1- --t*t*t*t},quartInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quintIn:function(t){return t*t*t*t*t},quintOut:function(t){return--t*t*t*t*t+1},quintInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sineIn:function(t){return 1-Math.cos(t*Math.PI/2)},sineOut:function(t){return Math.sin(t*Math.PI/2)},sineInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},expoIn:function(t){return 0===t?0:Math.pow(1024,t-1)},expoOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},expoInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circIn:function(t){return 1-Math.sqrt(1-t*t)},circOut:function(t){return Math.sqrt(1- --t*t)},circInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5},smooth:function(t){return t<=0?0:t>=1?1:t*t*(3-2*t)},fade:function(t){return t<=0?0:t>=1?1:t*t*t*(t*(6*t-15)+10)}};function n(t,e){return function(i){return i<.5?e(2*i)/2:t(2*i-1)/2+.5}}i.quadOutIn=n(i.quadIn,i.quadOut),i.cubicOutIn=n(i.cubicIn,i.cubicOut),i.quartOutIn=n(i.quartIn,i.quartOut),i.quintOutIn=n(i.quintIn,i.quintOut),i.sineOutIn=n(i.sineIn,i.sineOut),i.expoOutIn=n(i.expoIn,i.expoOut),i.circOutIn=n(i.circIn,i.circOut),i.backOutIn=n(i.backIn,i.backOut),i.bounceIn=function(t){return 1-i.bounceOut(1-t)},i.bounceInOut=function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5},i.bounceOutIn=n(i.bounceIn,i.bounceOut),cc.easing=e.exports=i}),{}],16:[(function(t){"use strict";t("./bezier"),t("./easing"),t("./types"),t("./motion-path-helper"),t("./animation-curves"),t("./animation-clip"),t("./animation-manager"),t("./animation-state"),t("./animation-animator")}),{"./animation-animator":9,"./animation-clip":10,"./animation-curves":11,"./animation-manager":12,"./animation-state":13,"./bezier":14,"./easing":15,"./motion-path-helper":17,"./types":19}],17:[(function(t,e){"use strict";var i=t("./animation-curves").DynamicAnimCurve,n=t("./animation-curves").computeRatioByType,r=t("./bezier").bezier,s=t("../core/utils/binary-search").binarySearchEpsilon,a=cc.v2;function o(t){this.points=t||[],this.beziers=[],this.ratios=[],this.progresses=[],this.length=0,this.computeBeziers()}function c(){this.start=a(),this.end=a(),this.startCtrlPoint=a(),this.endCtrlPoint=a()}function l(t){if(!Array.isArray(t))return!1;for(var e=0,i=t.length;e0)){c=r;break}c=r-1}if(n[r=c]===i)return r/(s-1);var l=n[r];return(r+(i-l)/(n[r+1]-l))/(s-1)},e.exports={sampleMotionPaths:function(t,e,r,c,u){function h(t){return t instanceof cc.Vec2?{in:t,pos:t,out:t}:Array.isArray(t)&&6===t.length?{in:a(t[2],t[3]),pos:a(t[0],t[1]),out:a(t[4],t[5])}:{in:cc.Vec2.ZERO,pos:cc.Vec2.ZERO,out:cc.Vec2.ZERO}}var f=e.values=e.values.map((function(t){return Array.isArray(t)&&(t=2===t.length?cc.v2(t[0],t[1]):cc.v3(t[0],t[1],t[2])),t}));if(0!==t.length&&0!==f.length){for(var d=!1,_=0;_0){d=!0;break}}if(d&&1!==f.length){for(var v=e.types,g=e.ratios,m=e.values=[],y=e.types=[],T=e.ratios=[],E=0,A=i.Linear,C=0,x=t.length;C0){var N=[];N.push(h(M));for(var F=0,B=S.length;F1e-6;){var z,H,W,G;if((b=n(b=L,O))<0)G=(0-b)*(H=V.beziers[0]).getLength(),W=H.start.sub(H.endCtrlPoint).normalize(),z=H.start.add(W.mul(G));else if(b>1)G=(b-1)*(H=V.beziers[V.beziers.length-1]).getLength(),W=H.end.sub(H.startCtrlPoint).normalize(),z=H.end.add(W.mul(G));else{var Y=s(U,b);Y<0&&(Y=~Y),b-=Y>0?U[Y-1]:0,b/=V.ratios[Y],z=V.beziers[Y].getPointAt(b)}D.push(z),L+=P}}else for(;1-L>1e-6;)b=n(b=L,O),D.push(M.lerp(I,b)),L+=P;for(A="constant"===O?O:i.Linear,F=0,B=D.length;F1e-6?(L-1)*R:0}g[g.length-1]!==T[T.length-1]&&j(f[f.length-1],A,g[g.length-1])}}function j(t,e,i){m.push(t),y.push(e),T.push(i)}},Curve:o,Bezier:c}}),{"../core/utils/binary-search":229,"./animation-curves":11,"./bezier":14}],18:[(function(t,e){"use strict";var i=cc.js,n=t("../core/CCDebug");function r(){this._isPlaying=!1,this._isPaused=!1,this._stepOnce=!1}var s=r.prototype;i.get(s,"isPlaying",(function(){return this._isPlaying}),!0),i.get(s,"isPaused",(function(){return this._isPaused}),!0);var a=function(){};s.onPlay=a,s.onPause=a,s.onResume=a,s.onStop=a,s.onError=a,s.play=function(){this._isPlaying?this._isPaused?(this._isPaused=!1,this.onResume()):this.onError(n.getError(3912)):(this._isPlaying=!0,this.onPlay())},s.stop=function(){this._isPlaying&&(this._isPlaying=!1,this.onStop(),this._isPaused=!1)},s.pause=function(){this._isPlaying&&!this._isPaused&&(this._isPaused=!0,this.onPause())},s.resume=function(){this._isPlaying&&this._isPaused&&(this._isPaused=!1,this.onResume())},s.step=function(){this.pause(),this._stepOnce=!0,this._isPlaying||this.play()},e.exports=r}),{"../core/CCDebug":22}],19:[(function(t,e){"use strict";var i={Loop:2,ShouldWrap:4,PingPong:22,Reverse:36},n=cc.Enum({Default:0,Normal:1,Reverse:i.Reverse,Loop:i.Loop,LoopReverse:i.Loop|i.Reverse,PingPong:i.PingPong,PingPongReverse:i.PingPong|i.Reverse});function r(t){t?this.set(t):(this.ratio=0,this.time=0,this.direction=1,this.stopped=!0,this.iterations=0,this.frameIndex=void 0)}cc.WrapMode=n,r.prototype.set=function(t){this.ratio=t.ratio,this.time=t.time,this.direction=t.direction,this.stopped=t.stopped,this.iterations=t.iterations,this.frameIndex=t.frameIndex},e.exports={WrapModeMask:i,WrapMode:n,WrappedInfo:r}}),{}],20:[(function(t,e){"use strict";var i,n,r=t("../core/event/event-target"),s=t("../core/platform/CCSys"),a=t("../core/assets/CCAudioClip").LoadMode,o=!1,c=[],l=function t(e){r.call(this),this._shouldRecycleOnEnded=!1,this._src=e,this._element=null,this.id=0,this._state=t.State.INITIALZING;var i=this;this._onended=function(){i._state=t.State.STOPPED,i.emit("ended")},this._onendedSecond=function(){i._unbindEnded(i._onendedSecond),i._bindEnded()}};cc.js.extend(l,r),l.State={ERROR:-1,INITIALZING:0,PLAYING:1,PAUSED:2,STOPPED:3},(i=l.prototype)._bindEnded=function(t){if(!(t=t||this._onended)._binded){t._binded=!0;var e=this._element;this._src&&e instanceof HTMLAudioElement?e.addEventListener("ended",t):e.onended=t}},i._unbindEnded=function(t){if((t=t||this._onended)._binded){t._binded=!1;var e=this._element;e instanceof HTMLAudioElement?e.removeEventListener("ended",t):e&&(e.onended=null)}},i._onLoaded=function(){this._createElement(),this._state=l.State.INITIALZING,this.setVolume(1),this.setLoop(!1)},i._createElement=function(){var t=this._src._nativeAsset;t instanceof HTMLAudioElement?(this._element||(this._element=document.createElement("audio")),this._element.src=t.src):this._element=new u(t,this)},i.play=function(){var t=this;this._src&&this._src._ensureLoaded((function(){t._state=l.State.PLAYING,t._bindEnded();var e=t._element.play();window.Promise&&e instanceof Promise&&e.catch((function(){})),t._touchToPlay()}))},i._touchToPlay=function(){if(this._src&&this._src.loadMode===a.DOM_AUDIO&&this._element.paused&&c.push({instance:this,offset:0,audio:this._element}),!o){o=!0;var t="ontouchend"in window?"touchend":"mousedown";cc.game.canvas.addEventListener(t,(function(){for(var t;t=c.pop();)t.audio.play(t.offset)}))}},i.destroy=function(){this._element=null},i.pause=function(){if(this.getState()===l.State.PLAYING){var t=this;this._src&&this._src._ensureLoaded((function(){t._unbindEnded(),t._element.pause(),t._state=l.State.PAUSED}))}},i.resume=function(){if(this.getState()===l.State.PAUSED){var t=this;this._src&&this._src._ensureLoaded((function(){t._bindEnded(),t._element.play(),t._state=l.State.PLAYING}))}},i.stop=function(){var t=this;this._src&&this._src._ensureLoaded((function(){t._element.pause(),t._element.currentTime=0;for(var e=0;ethis._buffer.duration)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"loop",{get:function(){return this._loop},set:function(t){return this._currentSource&&(this._currentSource.loop=t),this._loop=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"volume",{get:function(){return this._volume},set:function(t){if(this._volume=t,this._gainObj.gain.setTargetAtTime)try{this._gainObj.gain.setTargetAtTime(t,this._context.currentTime,n)}catch(e){this._gainObj.gain.setTargetAtTime(t,this._context.currentTime,.01)}else this._gainObj.gain.value=t;s.os===s.OS_IOS&&!this.paused&&this._currentSource&&(this._currentSource.onended=null,this.pause(),this.play())},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTime",{get:function(){return this.paused?this.playedLength:(this.playedLength=this._context.currentTime-this._startTime,this.playedLength%=this._buffer.duration,this.playedLength)},set:function(t){return this.paused?this.playedLength=t:(this.pause(),this.playedLength=t,this.play()),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"duration",{get:function(){return this._buffer.duration},enumerable:!0,configurable:!0})})(u.prototype),e.exports=cc._Audio=l}),{"../core/assets/CCAudioClip":59,"../core/event/event-target":134,"../core/platform/CCSys":170}],21:[(function(t,e){"use strict";var i=t("./CCAudio"),n=t("../core/assets/CCAudioClip"),r=cc.js,s=0,a=r.createMap(!0),o={},c=[],l=function(t){t._shouldRecycleOnEnded&&(t._finishCallback=null,t.off("ended"),t.off("stop"),t.src=null,c.includes(t)||(c.length<32?c.push(t):t.destroy()),t._shouldRecycleOnEnded=!1)},u=function(t){var e=s++,n=o[t];if(n||(n=o[t]=[]),d._maxAudioInstance<=n.length){var r=n.shift();h(r).stop()}var u=c.pop()||new i,f=function(){if(h(this.id)){delete a[this.id];var t=n.indexOf(this.id);cc.js.array.fastRemoveAt(n,t)}l(this)};return u.on("ended",(function(){this._finishCallback&&this._finishCallback(),this.getLoop()||f.call(this)}),u),u.on("stop",f,u),u.id=e,a[e]=u,n.push(e),u},h=function(t){return a[t]},f=function(t){return void 0===t?t=1:"string"==typeof t&&(t=Number.parseFloat(t)),t},d={AudioState:i.State,_maxAudioInstance:24,_id2audio:a,play:function(t,e,i){if(!(t instanceof n))return cc.error("Wrong type of AudioClip.");var r=t.nativeUrl,s=u(r);return s.src=t,t._ensureLoaded(),s._shouldRecycleOnEnded=!0,s.setLoop(e||!1),i=f(i),s.setVolume(i),s.play(),s.id},setLoop:function(t,e){var i=h(t);i&&i.setLoop&&i.setLoop(e)},isLoop:function(t){var e=h(t);return!(!e||!e.getLoop)&&e.getLoop()},setVolume:function(t,e){var i=h(t);i&&i.setVolume(e)},getVolume:function(t){var e=h(t);return e?e.getVolume():1},setCurrentTime:function(t,e){var i=h(t);return!!i&&(i.setCurrentTime(e),!0)},getCurrentTime:function(t){var e=h(t);return e?e.getCurrentTime():0},getDuration:function(t){var e=h(t);return e?e.getDuration():0},getState:function(t){var e=h(t);return e?e.getState():this.AudioState.ERROR},setFinishCallback:function(t,e){var i=h(t);i&&(i._finishCallback=e)},pause:function(t){var e=h(t);return!!e&&(e.pause(),!0)},_pauseIDCache:[],pauseAll:function(){for(var t in a){var e=a[t];e.getState()===i.State.PLAYING&&(this._pauseIDCache.push(t),e.pause())}},resume:function(t){var e=h(t);e&&e.resume()},resumeAll:function(){for(var t=0;t0;){var n=i.pop(),r=a[n];r&&(r.stop(),delete a[n])}},uncacheAll:function(){var t;for(var e in this.stopAll(),a)(t=a[e])&&t.destroy();for(;t=c.pop();)t.destroy();a=r.createMap(!0),o={}},_breakCache:null,_break:function(){for(var t in this._breakCache=[],a){var e=a[t];e.getState()===i.State.PLAYING&&(this._breakCache.push(t),e.pause())}},_restore:function(){if(this._breakCache){for(;this._breakCache.length>0;){var t=this._breakCache.pop(),e=h(t);e&&e.resume&&e.resume()}this._breakCache=null}},_music:{id:-1,loop:!1,volume:1},_effect:{volume:1,pauseCache:[]},playMusic:function(t,e){var i=this._music;return this.stop(i.id),i.id=this.play(t,e,i.volume),i.loop=e,i.id},stopMusic:function(){this.stop(this._music.id)},pauseMusic:function(){return this.pause(this._music.id),this._music.id},resumeMusic:function(){return this.resume(this._music.id),this._music.id},getMusicVolume:function(){return this._music.volume},setMusicVolume:function(t){t=f(t);var e=this._music;return e.volume=t,this.setVolume(e.id,e.volume),e.volume},isMusicPlaying:function(){return this.getState(this._music.id)===this.AudioState.PLAYING},playEffect:function(t,e){return this.play(t,e||!1,this._effect.volume)},setEffectsVolume:function(t){t=f(t);var e=this._music.id;for(var i in this._effect.volume=t,a){var n=a[i];n&&n.id!==e&&d.setVolume(i,t)}},getEffectsVolume:function(){return this._effect.volume},pauseEffect:function(t){return this.pause(t)},pauseAllEffects:function(){var t=this._music.id,e=this._effect;for(var i in e.pauseCache.length=0,a){var n=a[i];n&&n.id!==t&&n.getState()===this.AudioState.PLAYING&&(e.pauseCache.push(i),n.pause())}},resumeEffect:function(t){this.resume(t)},resumeAllEffects:function(){for(var t=this._effect.pauseCache,e=0;eu.ERROR){var e=function(t){if(cc.game.canvas){if(!i){var e=document.createElement("Div");e.setAttribute("id","logInfoDiv"),e.setAttribute("width","200"),e.setAttribute("height",cc.game.canvas.height);var n=e.style;n.zIndex="99999",n.position="absolute",n.top=n.left="0",(i=document.createElement("textarea")).setAttribute("rows","20"),i.setAttribute("cols","30"),i.setAttribute("disabled","true");var r=i.style;r.backgroundColor="transparent",r.borderBottom="1px solid #cccccc",r.borderTopWidth=r.borderLeftWidth=r.borderRightWidth="0px",r.borderTopStyle=r.borderLeftStyle=r.borderRightStyle="none",r.padding="0px",r.margin=0,e.appendChild(i),cc.game.canvas.parentNode.appendChild(e)}i.value=i.value+t+"\r\n",i.scrollTop=i.scrollHeight}};cc.error=function(){e("ERROR : "+cc.js.formatStr.apply(null,arguments))},cc.assert=function(t,i){!t&&i&&(i=cc.js.formatStr.apply(null,cc.js.shiftArguments.apply(null,arguments)),e("ASSERT: "+i))},t!==u.ERROR_FOR_WEB_PAGE&&(cc.warn=function(){e("WARN : "+cc.js.formatStr.apply(null,arguments))}),t===u.INFO_FOR_WEB_PAGE&&(cc.log=function(){e(cc.js.formatStr.apply(null,arguments))})}else console&&console.log.apply&&(console.error||(console.error=console.log),console.warn||(console.warn=console.log),console.error.bind?cc.error=console.error.bind(console):cc.error=function(){return console.error.apply(console,arguments)},cc.assert=function(t,e){if(!t)throw e&&(e=cc.js.formatStr.apply(null,cc.js.shiftArguments.apply(null,arguments))),new Error(e)});t!==u.ERROR&&(console.warn.bind?cc.warn=console.warn.bind(console):cc.warn=function(){return console.warn.apply(console,arguments)}),t===u.INFO&&(console.log.bind?cc.log=console.log.bind(console):cc.log=function(){return console.log.apply(console,arguments)})}},getError:s("ERROR"),isDisplayStats:function(){return!!cc.profiler&&cc.profiler.isShowingStats()},setDisplayStats:function(t){cc.profiler&&cc.game.renderType!==cc.game.RENDER_TYPE_CANVAS&&(t?cc.profiler.showStats():cc.profiler.hideStats(),cc.game.config.showFPS=!!t)}}}),{"../../DebugInfos":void 0,"./platform/utils":185}],23:[(function(t,e){"use strict";var i=t("./event/event-target"),n=t("./component-scheduler"),r=t("./node-activator"),s=t("./platform/CCObject"),a=t("./CCGame"),o=t("./renderer"),c=t("./event-manager"),l=t("./CCScheduler");cc.Director=function(){i.call(this),this._paused=!1,this._purgeDirectorInNextLoop=!1,this._winSizeInPoints=null,this._scene=null,this._loadingScene="",this._totalFrames=0,this._lastUpdate=0,this._deltaTime=0,this._startTime=0,this._maxParticleDeltaTime=0,this._scheduler=null,this._compScheduler=null,this._nodeActivator=null,this._actionManager=null;var t=this;a.on(a.EVENT_SHOW,(function(){t._lastUpdate=performance.now()})),a.once(a.EVENT_ENGINE_INITED,this.init,this)},cc.Director.prototype={constructor:cc.Director,init:function(){return this._totalFrames=0,this._lastUpdate=performance.now(),this._startTime=this._lastUpdate,this._paused=!1,this._purgeDirectorInNextLoop=!1,this._winSizeInPoints=cc.size(0,0),this._scheduler=new l,cc.ActionManager?(this._actionManager=new cc.ActionManager,this._scheduler.scheduleUpdate(this._actionManager,l.PRIORITY_SYSTEM,!1)):this._actionManager=null,this.sharedInit(),!0},sharedInit:function(){this._compScheduler=new n,this._nodeActivator=new r,c&&c.setEnabled(!0),cc.AnimationManager?(this._animationManager=new cc.AnimationManager,this._scheduler.scheduleUpdate(this._animationManager,l.PRIORITY_SYSTEM,!1)):this._animationManager=null,cc.CollisionManager?(this._collisionManager=new cc.CollisionManager,this._scheduler.scheduleUpdate(this._collisionManager,l.PRIORITY_SYSTEM,!1)):this._collisionManager=null,cc.PhysicsManager?(this._physicsManager=new cc.PhysicsManager,this._scheduler.scheduleUpdate(this._physicsManager,l.PRIORITY_SYSTEM,!1)):this._physicsManager=null,cc.Physics3DManager,this._physics3DManager=null,cc._widgetManager&&cc._widgetManager.init(this)},calculateDeltaTime:function(t){t||(t=performance.now()),this._deltaTime=t>this._lastUpdate?(t-this._lastUpdate)/1e3:0,this._lastUpdate=t},convertToGL:function(t){var e=a.container,i=cc.view,n=e.getBoundingClientRect(),r=n.left+window.pageXOffset-e.clientLeft,s=n.top+window.pageYOffset-e.clientTop,o=i._devicePixelRatio*(t.x-r),c=i._devicePixelRatio*(s+n.height-t.y);return i._isRotated?cc.v2(i._viewportRect.width-c,o):cc.v2(o,c)},convertToUI:function(t){var e=a.container,i=cc.view,n=e.getBoundingClientRect(),r=n.left+window.pageXOffset-e.clientLeft,s=n.top+window.pageYOffset-e.clientTop,o=cc.v2(0,0);return i._isRotated?(o.x=r+t.y/i._devicePixelRatio,o.y=s+n.height-(i._viewportRect.width-t.x)/i._devicePixelRatio):(o.x=r+t.x*i._devicePixelRatio,o.y=s+n.height-t.y*i._devicePixelRatio),o},end:function(){this._purgeDirectorInNextLoop=!0},getWinSize:function(){return cc.size(cc.winSize)},getWinSizeInPixels:function(){return cc.size(cc.winSize)},pause:function(){this._paused||(this._paused=!0)},purgeCachedData:function(){cc.assetManager.releaseAll()},purgeDirector:function(){this._scheduler.unscheduleAll(),this._compScheduler.unscheduleAll(),this._nodeActivator.reset(),c&&c.setEnabled(!1),cc.isValid(this._scene)&&this._scene.destroy(),this._scene=null,cc.renderer.clear(),cc.assetManager.builtins.clear(),cc.game.pause(),cc.assetManager.releaseAll()},reset:function(){this.purgeDirector(),c&&c.setEnabled(!0),this._actionManager&&this._scheduler.scheduleUpdate(this._actionManager,cc.Scheduler.PRIORITY_SYSTEM,!1),this._animationManager&&this._scheduler.scheduleUpdate(this._animationManager,cc.Scheduler.PRIORITY_SYSTEM,!1),this._collisionManager&&this._scheduler.scheduleUpdate(this._collisionManager,cc.Scheduler.PRIORITY_SYSTEM,!1),this._physicsManager&&this._scheduler.scheduleUpdate(this._physicsManager,cc.Scheduler.PRIORITY_SYSTEM,!1),cc.game.resume()},runSceneImmediate:function(t,e,i){cc.assertID(t instanceof cc.Scene||t instanceof cc.SceneAsset,1216),t instanceof cc.SceneAsset&&(t=t.scene),t._load();for(var n=Object.keys(a._persistRootNodes).map((function(t){return a._persistRootNodes[t]})),r=0;r2||e<0)&&(t.renderMode=0),"boolean"!=typeof t.registerSystemEvent&&(t.registerSystemEvent=!0),t.showFPS=1!==e&&!!t.showFPS,this.collisionMatrix=t.collisionMatrix||[],this.groupList=t.groupList||[],n._resetDebugSetting(t.debugMode),this.config=t,this._configLoaded=!0},_determineRenderType:function(){var t=this.config,e=parseInt(t.renderMode)||0;this.renderType=this.RENDER_TYPE_CANVAS;var i=!1;if(0===e?cc.sys.capabilities.opengl?(this.renderType=this.RENDER_TYPE_WEBGL,i=!0):cc.sys.capabilities.canvas&&(this.renderType=this.RENDER_TYPE_CANVAS,i=!0):1===e&&cc.sys.capabilities.canvas?(this.renderType=this.RENDER_TYPE_CANVAS,i=!0):2===e&&cc.sys.capabilities.opengl&&(this.renderType=this.RENDER_TYPE_WEBGL,i=!0),!i)throw new Error(n.getError(3820,e))},_initRenderer:function(){if(!this._rendererInitialized){var t,e,i,n,a=this.config.id,o=a instanceof HTMLElement?a:document.querySelector(a)||document.querySelector("#"+a);if("CANVAS"===o.tagName?(t=o.width,e=o.height,this.canvas=i=o,this.container=n=document.createElement("DIV"),i.parentNode&&i.parentNode.insertBefore(n,i)):("DIV"!==o.tagName&&cc.warnID(3819),t=o.clientWidth,e=o.clientHeight,this.canvas=i=document.createElement("CANVAS"),this.container=n=document.createElement("DIV"),o.appendChild(n)),n.setAttribute("id","Cocos2dGameContainer"),n.appendChild(i),this.frame=n.parentNode===document.body?document.documentElement:n.parentNode,(function(t){(" "+t.className+" ").indexOf(" gameCanvas ")>-1||(t.className&&(t.className+=" "),t.className+="gameCanvas")})(i),i.setAttribute("width",t||480),i.setAttribute("height",e||320),i.setAttribute("tabindex",99),this._determineRenderType(),this.renderType===this.RENDER_TYPE_WEBGL){var c={stencil:!0,antialias:cc.macro.ENABLE_WEBGL_ANTIALIAS,alpha:cc.macro.ENABLE_TRANSPARENT_CANVAS};r.initWebGL(i,c),this._renderContext=r.device._gl,!cc.macro.CLEANUP_IMAGE_CACHE&&s&&(s.enabled=!0)}this._renderContext||(this.renderType=this.RENDER_TYPE_CANVAS,r.initCanvas(i),this._renderContext=r.device._ctx),this.canvas.oncontextmenu=function(){if(!cc._isContextMenuEnable)return!1},this._rendererInitialized=!0}},_initEvents:function(){var t,e=window;this.config.registerSystemEvent&&cc.internal.inputManager.registerSystemEvent(this.canvas),void 0!==document.hidden?t="hidden":void 0!==document.mozHidden?t="mozHidden":void 0!==document.msHidden?t="msHidden":void 0!==document.webkitHidden&&(t="webkitHidden");var i=!1;function n(){i||(i=!0,a.emit(a.EVENT_HIDE))}function r(t,e,n,r,s){i&&(i=!1,a.emit(a.EVENT_SHOW,t,e,n,r,s))}if(t)for(var s=["visibilitychange","mozvisibilitychange","msvisibilitychange","webkitvisibilitychange","qbrowserVisibilityChange"],o=0;o-1&&(e.onfocus=r),"onpageshow"in window&&"onpagehide"in window&&(e.addEventListener("pagehide",n),e.addEventListener("pageshow",r),document.addEventListener("pagehide",n),document.addEventListener("pageshow",r)),this.on(a.EVENT_HIDE,(function(){a.pause()})),this.on(a.EVENT_SHOW,(function(){a.resume()}))}};i.call(a),cc.js.addon(a,i.prototype),cc.game=e.exports=a}),{"../audio/CCAudioEngine":21,"../core/renderer/utils/dynamic-atlas/manager":195,"./CCDebug":22,"./event/event-target":134,"./renderer/index.js":192}],25:[(function(t,e){"use strict";var i=t("./value-types"),n=t("./value-types/utils"),r=t("./utils/base-node"),s=t("./utils/prefab-helper"),a=t("./utils/trans-pool").NodeMemPool,o=t("./utils/affine-transform"),c=t("./event-manager"),l=t("./platform/CCMacro"),u=t("./platform/js"),h=(t("./event/event"),t("./event/event-target")),f=t("./renderer/render-flow"),d=cc.Object.Flags.Destroying,_=Math.PI/180,p=!!cc.ActionManager,v=function(){},g=new i.Vec3,m=new i.Quat,y=new i.Vec3,T=new i.Vec3,E=new i.Quat,A=new i.Quat,C=new i.Vec3,x=new i.Vec3,b=new i.Vec3,S=new i.Vec3,w=new i.Vec3,R=new i.Quat,M=new i.Quat,I=new i.Vec3,O=new i.Quat,D=new i.Vec3,L=new i.Quat,P=new i.Vec3,N=new i.Vec3,F=new i.Quat,B=new i.Quat,k=(new i.Quat,cc.mat4()),V=new i.Vec3,U=new u.Pool;U.get=function(){return this._get()||[]};var z=cc.Enum({DEBUG:31}),H=cc.Enum({POSITION:1,SCALE:2,ROTATION:4,SKEW:8,TRS:7,RS:6,TRSS:15,PHYSICS_POSITION:16,PHYSICS_SCALE:32,PHYSICS_ROTATION:64,PHYSICS_TRS:112,PHYSICS_RS:96,ALL_POSITION:17,ALL_SCALE:34,ALL_ROTATION:68,ALL_TRS:119,ALL:65535}),W=cc.Enum({TOUCH_START:"touchstart",TOUCH_MOVE:"touchmove",TOUCH_END:"touchend",TOUCH_CANCEL:"touchcancel",MOUSE_DOWN:"mousedown",MOUSE_MOVE:"mousemove",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_UP:"mouseup",MOUSE_WHEEL:"mousewheel",POSITION_CHANGED:"position-changed",ROTATION_CHANGED:"rotation-changed",SCALE_CHANGED:"scale-changed",SIZE_CHANGED:"size-changed",ANCHOR_CHANGED:"anchor-changed",COLOR_CHANGED:"color-changed",CHILD_ADDED:"child-added",CHILD_REMOVED:"child-removed",CHILD_REORDER:"child-reorder",GROUP_CHANGED:"group-changed",SIBLING_ORDER_CHANGED:"sibling-order-changed"}),G=[W.TOUCH_START,W.TOUCH_MOVE,W.TOUCH_END,W.TOUCH_CANCEL],Y=[W.MOUSE_DOWN,W.MOUSE_ENTER,W.MOUSE_MOVE,W.MOUSE_LEAVE,W.MOUSE_UP,W.MOUSE_WHEEL],X=!0,j=function(t){if(0!==t){X&&cc.warn("`cc.Node.skewX/Y` is deprecated since v2.2.1, please use 3D node instead.",""),X=!1}},q=null,Z=function(t,e){var i=t.getLocation(),n=this.owner;return!!n._hitTest(i,this)&&(e.type=W.TOUCH_START,e.touch=t,e.bubbles=!0,n.dispatchEvent(e),!0)},K=function(t,e){var i=this.owner;e.type=W.TOUCH_MOVE,e.touch=t,e.bubbles=!0,i.dispatchEvent(e)},Q=function(t,e){var i=t.getLocation(),n=this.owner;n._hitTest(i,this)?e.type=W.TOUCH_END:e.type=W.TOUCH_CANCEL,e.touch=t,e.bubbles=!0,n.dispatchEvent(e)},J=function(t,e){t.getLocation();var i=this.owner;e.type=W.TOUCH_CANCEL,e.touch=t,e.bubbles=!0,i.dispatchEvent(e)},$=function(t){var e=t.getLocation(),i=this.owner;i._hitTest(e,this)&&(t.type=W.MOUSE_DOWN,t.bubbles=!0,i.dispatchEvent(t))},tt=function(t){var e=t.getLocation(),i=this.owner;if(i._hitTest(e,this))this._previousIn||(q&&q._mouseListener&&(t.type=W.MOUSE_LEAVE,q.dispatchEvent(t),q._mouseListener._previousIn=!1),q=this.owner,t.type=W.MOUSE_ENTER,i.dispatchEvent(t),this._previousIn=!0),t.type=W.MOUSE_MOVE,t.bubbles=!0,i.dispatchEvent(t);else{if(!this._previousIn)return;t.type=W.MOUSE_LEAVE,i.dispatchEvent(t),this._previousIn=!1,q=null}t.stopPropagation()},et=function(t){var e=t.getLocation(),i=this.owner;i._hitTest(e,this)&&(t.type=W.MOUSE_UP,t.bubbles=!0,i.dispatchEvent(t),t.stopPropagation())},it=function(t){var e=t.getLocation(),i=this.owner;i._hitTest(e,this)&&(t.type=W.MOUSE_WHEEL,t.bubbles=!0,i.dispatchEvent(t),t.stopPropagation())};function nt(t,e){if(e){for(var i=0,n=null,r=t;r&&cc.Node.isNode(r);r=r._parent,++i)if(r.getComponent(e)){var s={index:i,node:r};n?n.push(s):n=[s]}return n}return null}function rt(t,e){if(!(t._objFlags&d)){if(t._bubblingListeners)for(var i=0,n=e.length;i=0;--r)if((n=i[r])._capturingListeners&&(e.currentTarget=n,n._capturingListeners.emit(e.type,e,i),e._propagationStopped))return void(i.length=0);if(i.length=0,e.eventPhase=2,e.currentTarget=t,t._capturingListeners&&t._capturingListeners.emit(e.type,e),!e._propagationImmediateStopped&&t._bubblingListeners&&t._bubblingListeners.emit(e.type,e),!e._propagationStopped&&e.bubbles)for(t._getBubblingTargets(e.type,i),e.eventPhase=3,r=0;r>16},set:function(t){t>l.MAX_ZINDEX?(cc.warnID(1636),t=l.MAX_ZINDEX):t0&&(this._renderFlag|=f.FLAG_CHILDREN)},_checkListenerMask:function(){if(this._touchListener){var t=this._touchListener.mask=nt(this,cc.Mask);this._mouseListener&&(this._mouseListener.mask=t)}else this._mouseListener&&(this._mouseListener.mask=nt(this,cc.Mask))},_checknSetupSysEvent:function(t){var e=!1,i=!1;return-1!==G.indexOf(t)?(this._touchListener||(this._touchListener=cc.EventListener.create({event:cc.EventListener.TOUCH_ONE_BY_ONE,swallowTouches:!0,owner:this,mask:nt(this,cc.Mask),onTouchBegan:Z,onTouchMoved:K,onTouchEnded:Q,onTouchCancelled:J}),c.addListener(this._touchListener,this),e=!0),i=!0):-1!==Y.indexOf(t)&&(this._mouseListener||(this._mouseListener=cc.EventListener.create({event:cc.EventListener.MOUSE,_previousIn:!1,owner:this,mask:nt(this,cc.Mask),onMouseDown:$,onMouseMove:tt,onMouseUp:et,onMouseScroll:it}),c.addListener(this._mouseListener,this),e=!0),i=!0),e&&!this._activeInHierarchy&&cc.director.getScheduler().schedule((function(){this._activeInHierarchy||c.pauseTarget(this)}),this,0,0,0,!1),i},on:function(t,e,i,n){if(this._checknSetupSysEvent(t))return this._onDispatch(t,e,i,n);switch(t){case W.POSITION_CHANGED:this._eventMask|=1;break;case W.SCALE_CHANGED:this._eventMask|=2;break;case W.ROTATION_CHANGED:this._eventMask|=4;break;case W.SIZE_CHANGED:this._eventMask|=8;break;case W.ANCHOR_CHANGED:this._eventMask|=16;break;case W.COLOR_CHANGED:this._eventMask|=32}return this._bubblingListeners||(this._bubblingListeners=new h),this._bubblingListeners.on(t,e,i)},once:function(t,e,i,n){var r=this,s=null;(s=this._checknSetupSysEvent(t)&&n?this._capturingListeners=this._capturingListeners||new h:this._bubblingListeners=this._bubblingListeners||new h).once(t,e,i),s.once(t,(function(){r.off(t,e,i)}),void 0)},_onDispatch:function(t,e,i,n){if("boolean"==typeof i?(n=i,i=void 0):n=!!n,e){var r=null;return(r=n?this._capturingListeners=this._capturingListeners||new h:this._bubblingListeners=this._bubblingListeners||new h).hasEventListener(t,e,i)||(r.on(t,e,i),i&&i.__eventTargets&&i.__eventTargets.push(this)),e}cc.errorID(6800)},off:function(t,e,i,n){var r=-1!==G.indexOf(t),s=!r&&-1!==Y.indexOf(t);if(r||s)this._offDispatch(t,e,i,n),r?this._touchListener&&!rt(this,G)&&(c.removeListener(this._touchListener),this._touchListener=null):s&&this._mouseListener&&!rt(this,Y)&&(c.removeListener(this._mouseListener),this._mouseListener=null);else if(this._bubblingListeners&&(this._bubblingListeners.off(t,e,i),!this._bubblingListeners.hasEventListener(t)))switch(t){case W.POSITION_CHANGED:this._eventMask&=-2;break;case W.SCALE_CHANGED:this._eventMask&=-3;break;case W.ROTATION_CHANGED:this._eventMask&=-5;break;case W.SIZE_CHANGED:this._eventMask&=-9;break;case W.ANCHOR_CHANGED:this._eventMask&=-17;break;case W.COLOR_CHANGED:this._eventMask&=-33}},_offDispatch:function(t,e,i,n){if("boolean"==typeof i?(n=i,i=void 0):n=!!n,e){var r=n?this._capturingListeners:this._bubblingListeners;r&&(r.off(t,e,i),i&&i.__eventTargets&&u.array.fastRemove(i.__eventTargets,this))}else this._capturingListeners&&this._capturingListeners.removeAll(t),this._bubblingListeners&&this._bubblingListeners.removeAll(t)},targetOff:function(t){var e=this._bubblingListeners;e&&(e.targetOff(t),1&this._eventMask&&!e.hasEventListener(W.POSITION_CHANGED)&&(this._eventMask&=-2),2&this._eventMask&&!e.hasEventListener(W.SCALE_CHANGED)&&(this._eventMask&=-3),4&this._eventMask&&!e.hasEventListener(W.ROTATION_CHANGED)&&(this._eventMask&=-5),8&this._eventMask&&!e.hasEventListener(W.SIZE_CHANGED)&&(this._eventMask&=-9),16&this._eventMask&&!e.hasEventListener(W.ANCHOR_CHANGED)&&(this._eventMask&=-17),32&this._eventMask&&!e.hasEventListener(W.COLOR_CHANGED)&&(this._eventMask&=-33)),this._capturingListeners&&this._capturingListeners.targetOff(t),t&&t.__eventTargets&&u.array.fastRemove(t.__eventTargets,this),this._touchListener&&!rt(this,G)&&(c.removeListener(this._touchListener),this._touchListener=null),this._mouseListener&&!rt(this,Y)&&(c.removeListener(this._mouseListener),this._mouseListener=null)},hasEventListener:function(t){var e=!1;return this._bubblingListeners&&(e=this._bubblingListeners.hasEventListener(t)),!e&&this._capturingListeners&&(e=this._capturingListeners.hasEventListener(t)),e},emit:function(t,e,i,n,r,s){this._bubblingListeners&&this._bubblingListeners.emit(t,e,i,n,r,s)},dispatchEvent:function(t){var e=U.get();st(this,t,e),U.put(e)},pauseSystemEvents:function(t){c.pauseTarget(this,t)},resumeSystemEvents:function(t){c.resumeTarget(this,t)},_hitTest:function(t,e){var n=this._contentSize.width,r=this._contentSize.height,s=P,a=N,o=cc.Camera.findCamera(this);if(o?o.getScreenToWorldPoint(t,s):s.set(t),this._updateWorldMatrix(),!i.Mat4.invert(k,this._worldMatrix))return!1;i.Vec2.transformMat4(a,s,k),a.x+=this._anchorPoint.x*n,a.y+=this._anchorPoint.y*r;var c=!1;if(a.x>=0&&a.y>=0&&a.x<=n&&a.y<=r&&(c=!0,e&&e.mask))for(var l=e.mask,u=this,h=l?l.length:0,f=0,d=0;u&&d_.index){l.length=d;break}}return c},_getCapturingTargets:function(t,e){for(var i=this.parent;i;)i._capturingListeners&&i._capturingListeners.hasEventListener(t)&&e.push(i),i=i.parent},_getBubblingTargets:function(t,e){for(var i=this.parent;i;)i._bubblingListeners&&i._bubblingListeners.hasEventListener(t)&&e.push(i),i=i.parent},runAction:p?function(t){if(this.active){cc.assertID(t,1618);var e=cc.director.getActionManager();return e._suppressDeprecation||(e._suppressDeprecation=!0,cc.warnID(1639)),e.addAction(t,this,!1),t}}:v,pauseAllActions:p?function(){cc.director.getActionManager().pauseTarget(this)}:v,resumeAllActions:p?function(){cc.director.getActionManager().resumeTarget(this)}:v,stopAllActions:p?function(){cc.director.getActionManager().removeAllActionsFromTarget(this)}:v,stopAction:p?function(t){cc.director.getActionManager().removeAction(t)}:v,stopActionByTag:p?function(t){t!==cc.Action.TAG_INVALID?cc.director.getActionManager().removeActionByTag(t,this):cc.logID(1612)}:v,getActionByTag:p?function(t){return t===cc.Action.TAG_INVALID?(cc.logID(1613),null):cc.director.getActionManager().getActionByTag(t,this)}:function(){return null},getNumberOfRunningActions:p?function(){return cc.director.getActionManager().getNumberOfRunningActionsInTarget(this)}:function(){return 0},getPosition:function(t){return t=t||new i.Vec3,i.Trs.toPosition(t,this._trs)},setPosition:function(t,e,i){var n;void 0===e?(n=t.x,e=t.y,i=t.z):n=t;var r=this._trs;void 0===i&&(i=r[2]),(r[0]!==n||r[1]!==e||r[2]!==i)&&(r[0]=n,r[1]=e,r[2]=i,this.setLocalDirty(H.ALL_POSITION),this._renderFlag|=f.FLAG_WORLD_TRANSFORM,1&this._eventMask&&this.emit(W.POSITION_CHANGED))},getScale:function(t){return void 0!==t?i.Trs.toScale(t,this._trs):(cc.errorID(1400,"cc.Node.getScale","cc.Node.scale or cc.Node.getScale(cc.Vec3)"),this._trs[7])},setScale:function(t,e,i){var n;t&&"number"!=typeof t?(n=t.x,e=t.y,i=t.z):void 0!==t&&void 0===e?(n=t,e=t,i=t):n=t;var r=this._trs;void 0===i&&(i=r[9]),r[7]===n&&r[8]===e&&r[9]===i||(r[7]=n,r[8]=e,r[9]=i,this.setLocalDirty(H.ALL_SCALE),this._renderFlag|=f.FLAG_TRANSFORM,2&this._eventMask&&this.emit(W.SCALE_CHANGED))},getRotation:function(t){return t instanceof i.Quat?i.Trs.toRotation(t,this._trs):-this.angle},setRotation:function(t,e,i,n){if("number"==typeof t&&void 0===e)this.angle=-t;else{var r=t;void 0===e&&(r=t.x,e=t.y,i=t.z,n=t.w);var s=this._trs;s[3]===r&&s[4]===e&&s[5]===i&&s[6]===n||(s[3]=r,s[4]=e,s[5]=i,s[6]=n,this.setLocalDirty(H.ALL_ROTATION),4&this._eventMask&&this.emit(W.ROTATION_CHANGED))}},getContentSize:function(){return cc.size(this._contentSize.width,this._contentSize.height)},setContentSize:function(t,e){var i=this._contentSize;if(void 0===e){if((0,n.approx)(t.width,i.width)&&(0,n.approx)(t.height,i.height))return;i.width=t.width,i.height=t.height}else{if((0,n.approx)(t,i.width)&&(0,n.approx)(e,i.height))return;i.width=t,i.height=e}8&this._eventMask&&this.emit(W.SIZE_CHANGED)},getAnchorPoint:function(){return cc.v2(this._anchorPoint)},setAnchorPoint:function(t,e){var i=this._anchorPoint;if(void 0===e){if(t.x===i.x&&t.y===i.y)return;i.x=t.x,i.y=t.y}else{if(t===i.x&&e===i.y)return;i.x=t,i.y=e}this.setLocalDirty(H.ALL_POSITION),16&this._eventMask&&this.emit(W.ANCHOR_CHANGED)},_invTransformPoint:function(t,e){this._parent?this._parent._invTransformPoint(t,e):i.Vec3.copy(t,e);var n=this._trs;return i.Trs.toPosition(y,n),i.Vec3.sub(t,t,y),i.Trs.toRotation(E,n),i.Quat.conjugate(A,E),i.Vec3.transformQuat(t,t,A),i.Trs.toScale(y,n),i.Vec3.inverseSafe(T,y),i.Vec3.mul(t,t,T),t},getWorldPosition:function(t){i.Trs.toPosition(t,this._trs);for(var e,n=this._parent;n;)e=n._trs,i.Trs.toScale(g,e),i.Vec3.mul(t,t,g),i.Trs.toRotation(m,e),i.Vec3.transformQuat(t,t,m),i.Trs.toPosition(g,e),i.Vec3.add(t,t,g),n=n._parent;return t},setWorldPosition:function(t){var e=this._trs;this._parent?this._parent._invTransformPoint(C,t):i.Vec3.copy(C,t),i.Trs.fromPosition(e,C),this.setLocalDirty(H.ALL_POSITION),1&this._eventMask&&this.emit(W.POSITION_CHANGED)},getWorldRotation:function(t){i.Trs.toRotation(F,this._trs),i.Quat.copy(t,F);for(var e=this._parent;e;)i.Trs.toRotation(F,e._trs),i.Quat.mul(t,F,t),e=e._parent;return t},setWorldRotation:function(t){this._parent?(this._parent.getWorldRotation(B),i.Quat.conjugate(B,B),i.Quat.mul(B,B,t)):i.Quat.copy(B,t),i.Trs.fromRotation(this._trs,B),this.setLocalDirty(H.ALL_ROTATION)},getWorldScale:function(t){i.Trs.toScale(x,this._trs),i.Vec3.copy(t,x);for(var e=this._parent;e;)i.Trs.toScale(x,e._trs),i.Vec3.mul(t,t,x),e=e._parent;return t},setWorldScale:function(t){this._parent?(this._parent.getWorldScale(b),i.Vec3.div(b,t,b)):i.Vec3.copy(b,t),i.Trs.fromScale(this._trs,b),this.setLocalDirty(H.ALL_SCALE)},getWorldRT:function(t){var e=S,n=R,r=this._trs;i.Trs.toPosition(e,r),i.Trs.toRotation(n,r);for(var s=this._parent;s;)r=s._trs,i.Trs.toScale(w,r),i.Vec3.mul(e,e,w),i.Trs.toRotation(M,r),i.Vec3.transformQuat(e,e,M),i.Trs.toPosition(w,r),i.Vec3.add(e,e,w),i.Quat.mul(n,M,n),s=s._parent;return i.Mat4.fromRT(t,n,e),t},lookAt:function(t,e){this.getWorldPosition(I),i.Vec3.sub(I,I,t),i.Vec3.normalize(I,I),i.Quat.fromViewUp(O,I,e),this.setWorldRotation(O)},_updateLocalMatrix:lt,_calculWorldMatrix:function(){this._localMatDirty&H.TRSS&&this._updateLocalMatrix();var t=this._parent;t?this._mulMat(this._worldMatrix,t._worldMatrix,this._matrix):i.Mat4.copy(this._worldMatrix,this._matrix),this._worldMatDirty=!1},_mulMat:ft,_updateWorldMatrix:function(){if(this._parent&&this._parent._updateWorldMatrix(),this._worldMatDirty){this._calculWorldMatrix();for(var t=this._children,e=0,i=t.length;e1){for(var n,r,s=1,a=t.length;s0&&(r=t[o-1])._localZOrder>n._localZOrder;o--)t[o]=r;t[o]=n}this.emit(W.CHILD_REORDER,this)}cc.director.__fastOff(cc.Director.EVENT_AFTER_UPDATE,this.sortAllChildren,this)}},_delaySort:function(){this._reorderChildDirty||(this._reorderChildDirty=!0,cc.director.__fastOn(cc.Director.EVENT_AFTER_UPDATE,this.sortAllChildren,this))},_restoreProperties:!1,onRestore:!1},pt=cc.Class(_t),vt=pt.prototype;u.getset(vt,"position",vt.getPosition,vt.setPosition,!1,!0),cc.Node=e.exports=pt}),{"./event-manager":132,"./event/event":135,"./event/event-target":134,"./platform/CCMacro":166,"./platform/js":182,"./renderer/render-flow":193,"./utils/affine-transform":227,"./utils/base-node":228,"./utils/prefab-helper":238,"./utils/trans-pool":244,"./value-types":250,"./value-types/utils":257}],26:[(function(t,e){"use strict";var i=t("./CCNode"),n=t("./renderer/render-flow"),r=(cc.Object.Flags.HideInHierarchy,i._LocalDirtyFlag),s=cc.Class({name:"cc.PrivateNode",extends:i,properties:{x:{get:function(){return this._originPos.x},set:function(t){var e=this._originPos;t!==e.x&&(e.x=t,this._posDirty(!0))},override:!0},y:{get:function(){return this._originPos.y},set:function(t){var e=this._originPos;t!==e.y&&(e.y=t,this._posDirty(!0))},override:!0},zIndex:{get:function(){return cc.macro.MIN_ZINDEX},set:function(){},override:!0},showInEditor:{default:!1,editorOnly:!0,override:!0}},ctor:function(){this._localZOrder=cc.macro.MIN_ZINDEX<<16,this._originPos=cc.v2()},_posDirty:function(t){this.setLocalDirty(r.POSITION),this._renderFlag|=n.FLAG_TRANSFORM,!0===t&&1&this._eventMask&&this.emit(i.EventType.POSITION_CHANGED)},_updateLocalMatrix:function(){if(this._localMatDirty){var t=this.parent;t&&(this._trs[0]=this._originPos.x-(t._anchorPoint.x-.5)*t._contentSize.width,this._trs[1]=this._originPos.y-(t._anchorPoint.y-.5)*t._contentSize.height),this._super()}},getPosition:function(){return new cc.Vec2(this._originPos)},setPosition:function(t,e){void 0===e&&(e=(t=t.x).y);var i=this._originPos;i.x===t&&i.y===e||(i.x=t,i.y=e,this._posDirty(!0))},setParent:function(t){var e=this._parent;this._super(t),e!==t&&(e&&e.off(i.EventType.ANCHOR_CHANGED,this._posDirty,this),t&&t.on(i.EventType.ANCHOR_CHANGED,this._posDirty,this))},_updateOrderOfArrival:function(){}}),a=s.prototype;cc.js.getset(a,"parent",a.getParent,a.setParent),cc.js.getset(a,"position",a.getPosition,a.setPosition),cc.PrivateNode=e.exports=s}),{"./CCNode":25,"./renderer/render-flow":193}],27:[(function(t,e){"use strict";cc.Scene=cc.Class({name:"cc.Scene",extends:t("./CCNode"),properties:{_is3DNode:{default:!0,override:!0},autoReleaseAssets:!1},ctor:function(){this._anchorPoint.x=0,this._anchorPoint.y=0,this._activeInHierarchy=!1,this._inited=!cc.game._isCloning,this.dependAssets=null},destroy:function(){if(cc.Object.prototype.destroy.call(this))for(var t=this._children,e=0;e0,this._repeat=r,this._runForever=this._repeat===cc.macro.REPEAT_FOREVER,!0},h.getInterval=function(){return this._interval},h.setInterval=function(t){this._interval=t},h.update=function(t){-1===this._elapsed?(this._elapsed=0,this._timesExecuted=0):(this._elapsed+=t,this._runForever&&!this._useDelay?this._elapsed>=this._interval&&(this.trigger(),this._elapsed=0):(this._useDelay?this._elapsed>=this._delay&&(this.trigger(),this._elapsed-=this._delay,this._timesExecuted+=1,this._useDelay=!1):this._elapsed>=this._interval&&(this.trigger(),this._elapsed=0,this._timesExecuted+=1),this._callback&&!this._runForever&&this._timesExecuted>this._repeat&&this.cancel()))},h.getCallback=function(){return this._callback},h.trigger=function(){this._target&&this._callback&&(this._lock=!0,this._callback.call(this._target,this._elapsed),this._lock=!1)},h.cancel=function(){this._scheduler.unschedule(this._callback,this._target)};var f=[];u.get=function(){return f.pop()||new u},u.put=function(t){f.length<20&&!t._lock&&(t._scheduler=t._target=t._callback=null,f.push(t))},cc.Scheduler=function(){this._timeScale=1,this._updatesNegList=[],this._updates0List=[],this._updatesPosList=[],this._hashForUpdates=i.createMap(!0),this._hashForTimers=i.createMap(!0),this._currentTarget=null,this._currentTargetSalvaged=!1,this._updateHashLocked=!1,this._arrayForTimers=[]},cc.Scheduler.prototype={constructor:cc.Scheduler,_removeHashElement:function(t){delete this._hashForTimers[t.target._id];for(var e=this._arrayForTimers,i=0,n=e.length;i=s&&n.timerIndex--,void(0===r.length&&(this._currentTarget===n?this._currentTargetSalvaged=!0:this._removeHashElement(n)))}}},unscheduleUpdate:function(t){if(t){var e=t._id;e||(t.__instanceId?(cc.warnID(1513),e=t._id=t.__instanceId):cc.errorID(1510));var i=this._hashForUpdates[e];i&&(this._updateHashLocked?i.entry.markedForDeletion=!0:this._removeUpdateFromHash(i.entry))}},unscheduleAllForTarget:function(t){if(t){var e=t._id;e||(t.__instanceId?(cc.warnID(1513),e=t._id=t.__instanceId):cc.errorID(1510));var i=this._hashForTimers[e];if(i){var n=i.timers;n.indexOf(i.currentTimer)>-1&&!i.currentTimerSalvaged&&(i.currentTimerSalvaged=!0);for(var r=0,s=n.length;r=0;e--)i=r[e],this.unscheduleAllForTarget(i.target);var s=0;if(t<0)for(e=0;e=t&&this.unscheduleUpdate(n.target),s==this._updatesNegList.length&&e++;if(t<=0)for(e=0;e=t&&this.unscheduleUpdate(n.target),s==this._updatesPosList.length&&e++},isScheduled:function(t,e){cc.assertID(t,1508),cc.assertID(e,1509);var i=e._id;i||(e.__instanceId?(cc.warnID(1513),i=e._id=e.__instanceId):cc.errorID(1510));var n=this._hashForTimers[i];if(!n)return!1;if(null==n.timers)return!1;for(var r=n.timers,s=0;s=t&&(r.paused=!0,s.push(r.target));if(t<=0)for(i=0;i=t&&(r.paused=!0,s.push(r.target));return s},resumeTargets:function(t){if(t)for(var e=0;e1?n:n[0]}},cc.AssetManager=P,cc.assetManager=new P,Object.defineProperty(cc,"resources",{get:function(){return D.get(L.RESOURCES)}}),e.exports=cc.assetManager}),{"./builtins":30,"./bundle":31,"./cache":32,"./depend-util":34,"./downloader":41,"./factory":42,"./fetch":43,"./helper":45,"./load":47,"./pack-manager":48,"./parser":49,"./pipeline":50,"./preprocess":51,"./releaseManager":52,"./request-item":53,"./shared":54,"./task":55,"./urlTransformer":56,"./utilities":57}],30:[(function(t,e){"use strict";var i=t("./cache"),n=t("./releaseManager"),r=t("./shared").BuiltinBundleName,s={_assets:new i({material:new i,effect:new i}),_loadBuiltins:function(t,e){var i=t+"s",n=this._assets.get(t);return cc.assetManager.internal.loadDir(i,null,null,(function(t,i){if(t)cc.error(t.message,t.stack);else for(var r=0;re.length)||47===t.charCodeAt(e.length)}return this.paths.forEach((function(n,r){if(r.startsWith(t)&&a(r,t)||!t)for(var o=0,c=n.length;o1){var d=Object.create(null);n.forEach((function(t){d[t._uuid]=t})),r={isCompleted:u,_map:d}}else r=n[0]}i&&i(e,r)}))},getXMLHttpRequest:function(){return new XMLHttpRequest},_parseLoadResArgs:i.parseLoadResArgs,getItem:function(t){return cc.assetManager.assets.has(t)?{content:cc.assetManager.assets.get(t)}:null},loadRes:function(t,e,i,n){var r=this._parseLoadResArgs(e,i,n),s=(e=r.type,r.onProgress),a=r.onComplete,o=cc.path.extname(t);o&&(t=t.slice(0,-o.length)),cc.resources.load(t,e,s,a)},loadResArray:function(t,e,i,n){var r=this._parseLoadResArgs(e,i,n),s=(e=r.type,r.onProgress),a=r.onComplete;t.forEach((function(e,i){var n=cc.path.extname(e);n&&(t[i]=e.slice(0,-n.length))})),cc.resources.load(t,e,s,a)},loadResDir:function(t,e,i,n){var r=this._parseLoadResArgs(e,i,n),s=(e=r.type,r.onProgress),a=r.onComplete;cc.resources.loadDir(t,e,s,(function(i,n){var r=[];i||(r=cc.resources.getDirWithPath(t,e).map((function(t){return t.path}))),a&&a(i,n,r)}))},getRes:function(t,e){return cc.assetManager.assets.has(t)?cc.assetManager.assets.get(t):cc.resources.get(t,e)},getResCount:function(){return cc.assetManager.assets.count},getDependsRecursively:function(t){return t?n.getDepsRecursively("string"==typeof t?t:t._uuid).concat([t._uuid]):[]},get assetLoader(){},get md5Pipe(){return h},get downloader(){return cc.assetManager.downloader},get loader(){return cc.assetManager.parser},addDownloadHandlers:function(t){var e=Object.create(null);for(var i in t){var n=t[i];e["."+i]=function(t,e,i){n({url:t},i)}}cc.assetManager.downloader.register(e)},addLoadHandlers:function(t){var e=Object.create(null);for(var i in t){var n=t[i];e["."+i]=function(t,e,i){n({content:t},i)}}cc.assetManager.parser.register(e)},flowInDeps:function(){},release:function(t){if(Array.isArray(t))for(var e=0;eN._maxInterval?N._maxInterval:cc.director._deltaTime;t-O>1e3*e&&(I=0,O=t)},P=function t(e,i){for(D=!1,L();w.length>0&&M0&&M0&&(s(P,m,y),D=!0),a.apply(this,arguments)}))}L(),M0){var i=n.create({name:t.name+" dependencies",input:c,progress:d,options:s,onProgress:t.onProgress,onError:n.prototype.recycle,onComplete:function(n){n||(t.output.push.apply(t.output,this.output),i.recycle()),r&&h(t),e(n)}});u.async(i)}else r&&h(t),e()}))}}),{"./pack-manager":48,"./shared":54,"./task":55,"./utilities":57}],44:[(function(t,e){"use strict";var i,n=t("../utils/text-utils"),r=null,s="BES bswy:->@123\u4e01\u3041\u1101",a=Object.create(null),o=-1,c=[],l=3e3,u=(i=void 0,function(){if(void 0===i)if(window.FontFace){var t=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),e=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);i=t?parseInt(t[1],10)>42:!e}else i=!1;return i});function h(){for(var t=!0,e=Date.now(),i=c.length-1;i>=0;i--){var a=c[i],u=a.fontFamilyName;if(e-a.startTime>l)cc.warnID(4933,u),a.onComplete(null,u),c.splice(i,1);else{var h=a.refWidth,f="40px "+u;r.font=f,h!==n.safeMeasureText(r,s,f)?(c.splice(i,1),a.onComplete(null,u)):t=!1}}t&&(clearInterval(o),o=-1)}var f={loadFont:function(t,e,i){var d=f._getFontFamily(t);if(a[d])return i(null,d);if(!r){var _=document.createElement("canvas");_.width=100,_.height=100,r=_.getContext("2d")}var p="40px "+d;r.font=p;var v=n.safeMeasureText(r,s,p),g=document.createElement("style");g.type="text/css";var m="";isNaN(d-0)?m+="@font-face { font-family:"+d+"; src:":m+="@font-face { font-family:'"+d+"'; src:",m+="url('"+t+"');",g.textContent=m+"}",document.body.appendChild(g);var y,T,E,A,C,x,b=document.createElement("div"),S=b.style;if(S.fontFamily=d,b.innerHTML=".",S.position="absolute",S.left="-100px",S.top="-100px",document.body.appendChild(b),u())y=Date.now(),T=d,E=i,A=new Promise(function(t,e){(function i(){Date.now()-y>=l?e():document.fonts.load("40px "+T).then((function(e){e.length>=1?t():setTimeout(i,100)}),(function(){e()}))})()}),C=null,x=new Promise(function(t,e){C=setTimeout(e,l)}),Promise.race([x,A]).then((function(){C&&(clearTimeout(C),C=null),E(null,T)}),(function(){cc.warnID(4933,T),E(null,T)}));else{var w={fontFamilyName:d,refWidth:v,onComplete:i,startTime:Date.now()};c.push(w),-1===o&&(o=setInterval(h,100))}a[d]=g},_getFontFamily:function(t){var e=t.lastIndexOf(".ttf");if(-1===e)return t;var i,n=t.lastIndexOf("/");return-1!==(i=-1===n?t.substring(0,e)+"_LABEL":t.substring(n+1,e)+"_LABEL").indexOf(" ")&&(i='"'+i+'"'),i}};e.exports=f}),{"../utils/text-utils":242}],45:[(function(t,e){"use strict";var i,n=t("./shared").bundles,r={decodeUuid:t("../utils/decode-uuid"),getUuidFromURL:(i=/.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-]{8,})/,function(t){var e=t.match(i);return e?e[1]:""}),getUrlWithUuid:function(t,e){(e=e||Object.create(null)).__isNative__=e.isNative,e.ext=e.nativeExt;var i=n.find((function(e){return e.getAssetInfo(t)}));return i&&(e.bundle=i.name),cc.assetManager._transform(t,e)},isScene:function(t){return t&&(t.constructor===cc.SceneAsset||t instanceof cc.Scene)},normalize:function(t){return t&&(46===t.charCodeAt(0)&&47===t.charCodeAt(1)?t=t.slice(2):47===t.charCodeAt(0)&&(t=t.slice(1))),t}};e.exports=r}),{"../utils/decode-uuid":231,"./shared":54}],46:[(function(t){"use strict";t("./deprecated"),t("./CCAssetManager")}),{"./CCAssetManager":29,"./deprecated":35}],47:[(function(t,e){"use strict";var i=t("./pack-manager"),n=t("./pipeline"),r=t("./parser"),s=t("./utilities"),a=s.getDepends,o=s.cache,c=s.gatherAsset,l=s.setProperties,u=s.forEach,h=s.clear,f=s.checkCircleReference,d=t("./shared"),_=d.assets,p=d.files,v=d.parsed,g=d.pipeline,m=t("./task"),y=new n("loadOneAsset",[function(t,e){var n=t.output=t.input,r=n.options,s=n.isNative,a=n.uuid,o=n.file,c=r.reload;if(o||!c&&!s&&_.has(a))return e();i.load(n,t.options,(function(t,i){n.file=i,e(t)}))},function(t,e){var i=t.output=t.input,n=t.progress,s=t.options.__exclude__,a=i.id,o=i.file,c=i.options;if(i.isNative)r.parse(a,o,i.ext,c,(function(r,s){if(r)return e(r);i.content=s,n.canInvoke&&t.dispatch("progress",++n.finish,n.total,i),p.remove(a),v.remove(a),e()}));else{var l=i.uuid;if(l in s){var u=s[l],h=u.finish,d=u.content,g=u.err,m=u.callbacks;n.canInvoke&&t.dispatch("progress",++n.finish,n.total,i),h||f(l,l,s)?(d&&d.addRef&&d.addRef(),i.content=d,e(g)):m.push({done:e,item:i})}else if(!c.reload&&_.has(l)){var y=_.get(l);c.__asyncLoadAssets__||!y.__asyncLoadAssets__?(i.content=y.addRef(),n.canInvoke&&t.dispatch("progress",++n.finish,n.total,i),e()):T(t,y,e,!1)}else r.parse(a,o,"import",c,(function(i,n){if(i)return e(i);n._uuid=l,T(t,n,e,!0)}))}}]);function T(t,e,i,n){var r=t.input,s=t.progress,c=r.uuid,u=r.id,h=r.options,f=r.config,d=h.__asyncLoadAssets__,_=h.cacheAsset,y=[];e.addRef&&e.addRef(),a(c,e,Object.create(null),y,!1,d,f),s.canInvoke&&t.dispatch("progress",++s.finish,s.total+=y.length,r);var T=t.options.__exclude__[c]={content:e,finish:!1,callbacks:[{done:i,item:r}]},E=m.create({input:y,options:t.options,onProgress:t.onProgress,onError:m.prototype.recycle,progress:s,onComplete:function(t){if(e.decRef&&e.decRef(!1),e.__asyncLoadAssets__=d,T.finish=!0,T.err=t,!t){for(var i=Array.isArray(E.output)?E.output:[E.output],r=Object.create(null),s=0,a=i.length;sthis.pipes.length))return this.pipes.splice(e,0,t),this;cc.warnID(4921)},append:function(t){if("function"==typeof t)return this.pipes.push(t),this},remove:function(t){if("number"==typeof t)return this.pipes.splice(t,1),this},sync:function(t){var e=this.pipes;if(t instanceof i&&0!==e.length){null!=t.output&&(t.input=t.output,t.output=null),t._isFinish=!1;for(var n=0,r=e.length;n0&&h(t)>0)){r.remove(t._uuid);for(var n=i.getDeps(t._uuid),s=0,a=n.length;s0&&this._ref--,!1!==t&&cc.assetManager._releaseManager.tryRelease(this),this},destroy:function(){return this.loaded=!1,this._super()}}),e.exports=cc.Asset}),{"../platform/CCObject":167}],59:[(function(t,e){"use strict";var i=t("./CCAsset"),n=t("../event/event-target"),r=cc.Enum({WEB_AUDIO:0,DOM_AUDIO:1}),s=cc.Class({name:"cc.AudioClip",extends:i,mixins:[n],ctor:function(){this._loading=!1,this.loaded=!1,this._audio=null},properties:{duration:0,loadMode:{default:r.WEB_AUDIO,type:r},_nativeAsset:{get:function(){return this._audio},set:function(t){t instanceof cc.AudioClip?this._audio=t._nativeAsset:this._audio=t,this._audio&&(this.loaded=!0,this.emit("load"))},override:!0},_nativeDep:{get:function(){return{uuid:this._uuid,audioLoadMode:this.loadMode,ext:cc.path.extname(this._native),__isNative__:!0}},override:!0}},statics:{LoadMode:r,_loadByUrl:function(t,e){var i=cc.assetManager.assets.get(t);i?e(null,i):cc.assetManager.loadRemote(t,(function(t,i){if(t)return e(t);e(null,i)}))}},_ensureLoaded:function(t){if(this.isValid){if(this.loaded)return t&&t();if(t&&this.once("load",t),!this._loading){this._loading=!0;var e=this;cc.assetManager.postLoadNative(this,(function(){e._loading=!1}))}}},destroy:function(){cc.audioEngine.uncache(this),this._super()}});cc.AudioClip=s,e.exports=s}),{"../event/event-target":134,"./CCAsset":58}],60:[(function(t,e){"use strict";var i=function(){this.u=0,this.v=0,this.w=0,this.h=0,this.offsetX=0,this.offsetY=0,this.textureID=0,this.valid=!1,this.xAdvance=0},n=function(t){this._letterDefinitions={},this._texture=t};n.prototype={constructor:n,addLetterDefinitions:function(t,e){this._letterDefinitions[t]=e},cloneLetterDefinition:function(){var t={};for(var e in this._letterDefinitions){var n=new i;cc.js.mixin(n,this._letterDefinitions[e]),t[e]=n}return t},getTexture:function(){return this._texture},getLetter:function(t){return this._letterDefinitions[t]},getLetterDefinitionForChar:function(t){var e=t.charCodeAt(0);return this._letterDefinitions.hasOwnProperty(e)?this._letterDefinitions[e]:null},clear:function(){this._letterDefinitions={}}};var r=cc.Class({name:"cc.BitmapFont",extends:cc.Font,properties:{fntDataStr:{default:""},spriteFrame:{default:null,type:cc.SpriteFrame},fontSize:{default:-1},_fntConfig:null,_fontDefDictionary:null},onLoad:function(){var t=this.spriteFrame;this._fontDefDictionary||(this._fontDefDictionary=new n,t&&(this._fontDefDictionary._texture=t._texture));var e=this._fntConfig;if(e){var r=e.fontDefDictionary;for(var s in r){var a=new i,o=r[s].rect;a.offsetX=r[s].xOffset,a.offsetY=r[s].yOffset,a.w=o.width,a.h=o.height,a.u=o.x,a.v=o.y,a.textureID=0,a.valid=!0,a.xAdvance=r[s].xAdvance,this._fontDefDictionary.addLetterDefinitions(s,a)}}}});cc.BitmapFont=r,cc.BitmapFont.FontLetterDefinition=i,cc.BitmapFont.FontAtlas=n,e.exports=r}),{}],61:[(function(t,e){"use strict";var i=cc.Class({name:"cc.BufferAsset",extends:cc.Asset,ctor:function(){this._buffer=null},properties:{_nativeAsset:{get:function(){return this._buffer},set:function(t){this._buffer=t.buffer||t},override:!0},buffer:function(){return this._buffer}}});cc.BufferAsset=e.exports=i}),{}],62:[(function(t,e){"use strict";var i=cc.Class({name:"cc.Font",extends:cc.Asset});cc.Font=e.exports=i}),{}],63:[(function(t,e){"use strict";var i=cc.Class({name:"cc.JsonAsset",extends:cc.Asset,properties:{json:null}});e.exports=cc.JsonAsset=i}),{}],64:[(function(t,e){"use strict";var i=cc.Class({name:"cc.LabelAtlas",extends:cc.BitmapFont,onLoad:function(){this.spriteFrame?this._fntConfig?this._super():cc.warnID(9101,this.name):cc.warnID(9100,this.name)}});cc.LabelAtlas=i,e.exports=i}),{}],65:[(function(t,e){"use strict";var i=cc.Enum({AUTO:0,SINGLE_INSTANCE:1,MULTI_INSTANCE:2}),n=cc.Class({name:"cc.Prefab",extends:cc.Asset,ctor:function(){this._createFunction=null,this._instantiatedTimes=0},properties:{data:null,optimizationPolicy:i.AUTO,asyncLoadAssets:!1,readonly:{default:!1,editorOnly:!0}},statics:{OptimizationPolicy:i,OptimizationPolicyThreshold:3},createNode:!1,compileCreateFunction:function(){var e=t("../platform/instantiate-jit");this._createFunction=e.compile(this.data)},_doInstantiate:function(t){return this.data._prefab||cc.warnID(3700),this._createFunction||this.compileCreateFunction(),this._createFunction(t)},_instantiate:function(){var t;return this.optimizationPolicy!==i.SINGLE_INSTANCE&&(this.optimizationPolicy===i.MULTI_INSTANCE||this._instantiatedTimes+1>=n.OptimizationPolicyThreshold)?(t=this._doInstantiate(),this.data._instantiate(t)):t=this.data._instantiate(),++this._instantiatedTimes,t},destroy:function(){this.data&&this.data.destroy(),this._super()}});cc.Prefab=e.exports=n,cc.js.obsolete(cc,"cc._Prefab","Prefab")}),{"../platform/instantiate-jit":180}],66:[(function(t,e){"use strict";var i,n=(i=t("../../renderer/gfx"))&&i.__esModule?i:{default:i},r=t("../renderer"),s=t("./CCTexture2D"),a=cc.Enum({RB_FMT_D24S8:n.default.RB_FMT_D24S8,RB_FMT_S8:n.default.RB_FMT_S8,RB_FMT_D16:n.default.RB_FMT_D16}),o=cc.Class({name:"cc.RenderTexture",extends:s,statics:{DepthStencilFormat:a},ctor:function(){this._framebuffer=null},initWithSize:function(t,e,i){this.width=Math.floor(t||cc.visibleRect.width),this.height=Math.floor(e||cc.visibleRect.height),this._resetUnderlyingMipmaps();var s,a={colors:[this._texture]};this._depthStencilBuffer&&this._depthStencilBuffer.destroy(),i&&(s=new n.default.RenderBuffer(r.device,i,t,e),i===n.default.RB_FMT_D24S8?a.depthStencil=s:i===n.default.RB_FMT_S8?a.stencil=s:i===n.default.RB_FMT_D16&&(a.depth=s)),this._depthStencilBuffer=s,this._framebuffer&&this._framebuffer.destroy(),this._framebuffer=new n.default.FrameBuffer(r.device,t,e,a),this._packable=!1,this.loaded=!0,this.emit("load")},updateSize:function(t,e){this.width=Math.floor(t||cc.visibleRect.width),this.height=Math.floor(e||cc.visibleRect.height),this._resetUnderlyingMipmaps();var i=this._depthStencilBuffer;i&&i.update(this.width,this.height),this._framebuffer._width=t,this._framebuffer._height=e},drawTextureAt:function(t,e,i){t._image&&0!==t._image.width&&this._texture.updateSubImage({x:e,y:i,image:t._image,width:t.width,height:t.height,level:0,flipY:!1,premultiplyAlpha:t._premultiplyAlpha})},readPixels:function(t,e,i,n,r){if(!this._framebuffer||!this._texture)return t;e=e||0,i=i||0;var s=n||this.width,a=r||this.height;t=t||new Uint8Array(s*a*4);var o=cc.game._renderContext,c=o.getParameter(o.FRAMEBUFFER_BINDING);return o.bindFramebuffer(o.FRAMEBUFFER,this._framebuffer.getHandle()),o.readPixels(e,i,s,a,o.RGBA,o.UNSIGNED_BYTE,t),o.bindFramebuffer(o.FRAMEBUFFER,c),t},destroy:function(){this._super(),this._framebuffer&&(this._framebuffer.destroy(),this._framebuffer=null)}});cc.RenderTexture=e.exports=o}),{"../../renderer/gfx":277,"../renderer":192,"./CCTexture2D":73}],67:[(function(t,e){"use strict";var i=cc.Class({name:"cc.SceneAsset",extends:cc.Asset,properties:{scene:null,asyncLoadAssets:void 0}});cc.SceneAsset=i,e.exports=i}),{}],68:[(function(){"use strict";var t=cc.Class({name:"cc.Script",extends:cc.Asset});cc._Script=t;var e=cc.Class({name:"cc.JavaScript",extends:t});cc._JavaScript=e;var i=cc.Class({name:"cc.TypeScript",extends:t});cc._TypeScript=i}),{}],69:[(function(t,e){"use strict";var i=cc.Class({name:"cc.SpriteAtlas",extends:cc.Asset,properties:{_spriteFrames:{default:{}}},getTexture:function(){var t=Object.keys(this._spriteFrames);if(t.length>0){var e=this._spriteFrames[t[0]];return e?e.getTexture():null}return null},getSpriteFrame:function(t){var e=this._spriteFrames[t];return e?(e.name||(e.name=t),e):null},getSpriteFrames:function(){var t=[],e=this._spriteFrames;for(var i in e)t.push(this.getSpriteFrame(i));return t}});cc.SpriteAtlas=i,e.exports=i}),{}],70:[(function(t,e){"use strict";var i=t("../event/event-target"),n=[{u:0,v:0},{u:0,v:0},{u:0,v:0},{u:0,v:0}],r=cc.Class({name:"cc.SpriteFrame",extends:t("../assets/CCAsset"),mixins:[i],properties:{_textureSetter:{set:function(t){t&&this._texture!==t&&this._refreshTexture(t)}},insetTop:{get:function(){return this._capInsets[1]},set:function(t){this._capInsets[1]=t,this._texture&&this._calculateSlicedUV()}},insetBottom:{get:function(){return this._capInsets[3]},set:function(t){this._capInsets[3]=t,this._texture&&this._calculateSlicedUV()}},insetLeft:{get:function(){return this._capInsets[0]},set:function(t){this._capInsets[0]=t,this._texture&&this._calculateSlicedUV()}},insetRight:{get:function(){return this._capInsets[2]},set:function(t){this._capInsets[2]=t,this._texture&&this._calculateSlicedUV()}}},ctor:function(){i.call(this);var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3],s=arguments[4];this._rect=null,this.uv=[],this._texture=null,this._original=null,this._offset=null,this._originalSize=null,this._rotated=!1,this._flipX=!1,this._flipY=!1,this.vertices=null,this._capInsets=[0,0,0,0],this.uvSliced=[],void 0!==t&&this.setTexture(t,e,n,r,s)},textureLoaded:function(){return this._texture&&this._texture.loaded},onTextureLoaded:function(t,e){return this.textureLoaded()?(t.call(e),!0):(this.once("load",t,e),this.ensureLoadTexture(),!1)},isRotated:function(){return this._rotated},setRotated:function(t){this._rotated=t,this._texture&&this._calculateUV()},isFlipX:function(){return this._flipX},isFlipY:function(){return this._flipY},setFlipX:function(t){this._flipX=t,this._texture&&this._calculateUV()},setFlipY:function(t){this._flipY=t,this._texture&&this._calculateUV()},getRect:function(){return cc.rect(this._rect)},setRect:function(t){this._rect=t,this._texture&&this._calculateUV()},getOriginalSize:function(){return cc.size(this._originalSize)},setOriginalSize:function(t){this._originalSize?(this._originalSize.width=t.width,this._originalSize.height=t.height):this._originalSize=cc.size(t)},getTexture:function(){return this._texture},_textureLoadedCallback:function(){var t=this._texture;if(t){var e=t.width,i=t.height;this._rect?this._checkRect(this._texture):this._rect=cc.rect(0,0,e,i),this._originalSize||this.setOriginalSize(cc.size(e,i)),this._offset||this.setOffset(cc.v2(0,0)),this._calculateUV(),this.emit("load")}},_refreshTexture:function(t){this._texture=t,t.loaded?this._textureLoadedCallback():t.once("load",this._textureLoadedCallback,this)},getOffset:function(){return cc.v2(this._offset)},setOffset:function(t){this._offset=cc.v2(t)},clone:function(){return new r(this._texture,this.getRect(),this._rotated,this.getOffset(),this.getOriginalSize())},setTexture:function(t,e,i,n,r){if(1!==arguments.length||t!==this._texture){if(this._rect=e||null,n?this.setOffset(n):this._offset=null,r?this.setOriginalSize(r):this._originalSize=null,this._rotated=i||!1,"string"!=typeof t)return t instanceof cc.Texture2D&&this._refreshTexture(t),!0;cc.errorID(3401)}},ensureLoadTexture:function(){this._texture&&(this._texture.loaded||(this._refreshTexture(this._texture),cc.assetManager.postLoadNative(this._texture)))},_checkRect:function(t){var e=this._rect,i=e.x,n=e.y;this._rotated?(i+=e.height,n+=e.width):(i+=e.width,n+=e.height),i>t.width&&cc.errorID(3300,t.nativeUrl+"/"+this.name,i,t.width),n>t.height&&cc.errorID(3400,t.nativeUrl+"/"+this.name,n,t.height)},_flipXY:function(t){if(this._flipX){var e=t[0];t[0]=t[1],t[1]=e,e=t[2],t[2]=t[3],t[3]=e}if(this._flipY){var i=t[0];t[0]=t[2],t[2]=i,i=t[1],t[1]=t[3],t[3]=i}},_calculateSlicedUV:function(){var t=this._rect,e=this._texture.width,i=this._texture.height,r=this._capInsets[0],s=this._capInsets[2],a=t.width-r-s,o=this._capInsets[1],c=this._capInsets[3],l=t.height-o-c,u=this.uvSliced;if(u.length=0,this._rotated){n[0].u=t.x/e,n[1].u=(t.x+c)/e,n[2].u=(t.x+c+l)/e,n[3].u=(t.x+t.height)/e,n[3].v=t.y/i,n[2].v=(t.y+r)/i,n[1].v=(t.y+r+a)/i,n[0].v=(t.y+t.width)/i,this._flipXY(n);for(var h=0;h<4;++h)for(var f=n[h],d=0;d<4;++d){var _=n[3-d];u.push({u:f.u,v:_.v})}}else{n[0].u=t.x/e,n[1].u=(t.x+r)/e,n[2].u=(t.x+r+a)/e,n[3].u=(t.x+t.width)/e,n[3].v=t.y/i,n[2].v=(t.y+o)/i,n[1].v=(t.y+o+l)/i,n[0].v=(t.y+t.height)/i,this._flipXY(n);for(var p=0;p<4;++p)for(var v=n[p],g=0;g<4;++g){var m=n[g];u.push({u:m.u,v:v.v})}}},_setDynamicAtlasFrame:function(t){t&&(this._original={_texture:this._texture,_x:this._rect.x,_y:this._rect.y},this._texture=t.texture,this._rect.x=t.x,this._rect.y=t.y,this._calculateUV())},_resetDynamicAtlasFrame:function(){this._original&&(this._rect.x=this._original._x,this._rect.y=this._original._y,this._texture=this._original._texture,this._original=null,this._texture.loaded?this._calculateUV():this.ensureLoadTexture())},_calculateUV:function(){var t=this._rect,e=this._texture,i=this.uv,n=e.width,r=e.height;if(this._rotated){var s=0===n?0:t.x/n,a=0===n?0:(t.x+t.height)/n,o=0===r?0:(t.y+t.width)/r,c=0===r?0:t.y/r;i[0]=s,i[1]=c,i[2]=s,i[3]=o,i[4]=a,i[5]=c,i[6]=a,i[7]=o}else{var l=0===n?0:t.x/n,u=0===n?0:(t.x+t.width)/n,h=0===r?0:(t.y+t.height)/r,f=0===r?0:t.y/r;i[0]=l,i[1]=h,i[2]=u,i[3]=h,i[4]=l,i[5]=f,i[6]=u,i[7]=f}if(this._flipX){var d=i[0];i[0]=i[2],i[2]=d,d=i[1],i[1]=i[3],i[3]=d,d=i[4],i[4]=i[6],i[6]=d,d=i[5],i[5]=i[7],i[7]=d}if(this._flipY){var _=i[0];i[0]=i[4],i[4]=_,_=i[1],i[1]=i[5],i[5]=_,_=i[2],i[2]=i[6],i[6]=_,_=i[3],i[3]=i[7],i[7]=_}var p=this.vertices;if(p){p.nu.length=0,p.nv.length=0;for(var v=0;v0?this._image=t.images[0]:void 0!==t.image&&(this._image=t.image,t.images||(f.length=0,t.images=f),t.images.push(t.image)),this._texture&&this._texture.update(t),this._hashDirty=!0},initWithElement:function(t){if(t)if(this._image=t,t.complete||t instanceof HTMLCanvasElement)this.handleLoadedTexture();else if(cc.sys.capabilities.imageBitmap&&t instanceof ImageBitmap)this._checkImageBitmap(this.handleLoadedTexture.bind(this));else{var e=this;t.addEventListener("load",(function(){e.handleLoadedTexture()})),t.addEventListener("error",(function(t){cc.warnID(3119,t.message)}))}},initWithData:function(t,e,i,n){var r=_();return r.image=t,r.images=[r.image],r.genMipmaps=this._genMipmaps,r.premultiplyAlpha=this._premultiplyAlpha,r.flipY=this._flipY,r.minFilter=h[this._minFilter],r.magFilter=h[this._magFilter],r.wrapS=this._wrapS,r.wrapT=this._wrapT,r.format=this._getGFXPixelFormat(e),r.width=i,r.height=n,this._texture?this._texture.update(r):this._texture=new s.Texture2D(s.device,r),this.width=i,this.height=n,this._updateFormat(),this._checkPackable(),this.loaded=!0,this.emit("load"),!0},getHtmlElementObj:function(){return this._image},destroy:function(){cc.sys.capabilities.imageBitmap&&this._image instanceof ImageBitmap&&this._image.close&&this._image.close(),this._packable&&cc.dynamicAtlasManager&&cc.dynamicAtlasManager.deleteAtlasTexture(this),this._image=null,this._texture&&this._texture.destroy(),this._super()},getPixelFormat:function(){return this._format},hasPremultipliedAlpha:function(){return this._premultiplyAlpha||!1},isAlphaAtlas:function(){return this._isAlphaAtlas},handleLoadedTexture:function(){if(this._image&&this._image.width&&this._image.height){this.width=this._image.width,this.height=this._image.height;var t=_();t.image=this._image,t.images=[t.image],t.width=this.width,t.height=this.height,t.genMipmaps=this._genMipmaps,t.format=this._getGFXPixelFormat(this._format),t.premultiplyAlpha=this._premultiplyAlpha,t.flipY=this._flipY,t.minFilter=h[this._minFilter],t.magFilter=h[this._magFilter],t.wrapS=this._wrapS,t.wrapT=this._wrapT,this._texture?this._texture.update(t):this._texture=new s.Texture2D(s.device,t),this._updateFormat(),this._checkPackable(),this.loaded=!0,this.emit("load"),cc.macro.CLEANUP_IMAGE_CACHE&&this._cleanupImageCache()}},_cleanupImageCache:function(){this._image instanceof HTMLImageElement?this._clearImage():cc.sys.capabilities.imageBitmap&&this._image instanceof ImageBitmap&&this._image.close&&this._image.close()},description:function(){return""},releaseTexture:function(){this._image=null,this._texture&&this._texture.destroy()},setWrapMode:function(t,e){if(this._wrapS!==t||this._wrapT!==e){var i=_();i.wrapS=t,i.wrapT=e,this.update(i)}},setFilters:function(t,e){if(this._minFilter!==t||this._magFilter!==e){var i=_();i.minFilter=t,i.magFilter=e,this.update(i)}},setFlipY:function(t){if(this._flipY!==t){var e=_();e.flipY=t,e.premultiplyAlpha=this._premultiplyAlpha,this.update(e)}},setPremultiplyAlpha:function(t){if(this._premultiplyAlpha!==t){var e=_();e.flipY=this._flipY,e.premultiplyAlpha=t,this.update(e)}},_updateFormat:function(){this._isAlphaAtlas=this._format===c.RGBA_ETC1||this._format===c.RGB_A_PVRTC_4BPPV1||this._format===c.RGB_A_PVRTC_2BPPV1},_checkPackable:function(){var t=cc.dynamicAtlasManager;if(t)if(this._isCompressed())this._packable=!1;else{var e=this.width,i=this.height;!this._image||e>t.maxFrameSize||i>t.maxFrameSize||this._getHash()!==t.Atlas.DEFAULT_HASH?this._packable=!1:this._image&&this._image instanceof HTMLCanvasElement&&(this._packable=!0)}},_getOpts:function(){var t=_();return t.width=this.width,t.height=this.height,t.genMipmaps=this._genMipmaps,t.format=this._format,t.premultiplyAlpha=this._premultiplyAlpha,t.anisotropy=this._anisotropy,t.flipY=this._flipY,t.minFilter=h[this._minFilter],t.magFilter=h[this._magFilter],t.mipFilter=h[this._mipFilter],t.wrapS=this._wrapS,t.wrapT=this._wrapT,t},_getGFXPixelFormat:function(t){return t===c.RGBA_ETC1?t=c.RGB_ETC1:t===c.RGB_A_PVRTC_4BPPV1?t=c.RGB_PVRTC_4BPPV1:t===c.RGB_A_PVRTC_2BPPV1&&(t=c.RGB_PVRTC_2BPPV1),t},_resetUnderlyingMipmaps:function(t){var e=this._getOpts();e.images=t||[null],this._texture?this._texture.update(e):this._texture=new s.Texture2D(s.device,e)},_serialize:!1,_deserialize:function(t){var e=t.split(","),i=e[0];if(i){var n=p._parseExt(i,this._format);if(n.bestExt)this._setRawAsset(n.bestExt),this._format=n.bestFormat;else{if(!n.defaultExt)throw new Error(cc.debug.getError(3121));this._setRawAsset(n.defaultExt),cc.warnID(3120,n.defaultExt,n.defaultExt)}}8===e.length&&(this._minFilter=parseInt(e[1]),this._magFilter=parseInt(e[2]),this._wrapS=parseInt(e[3]),this._wrapT=parseInt(e[4]),this._premultiplyAlpha=49===e[5].charCodeAt(0),this._genMipmaps=49===e[6].charCodeAt(0),this._packable=49===e[7].charCodeAt(0))},_getHash:function(){if(!this._hashDirty)return this._hash;var t=this._genMipmaps?1:0,e=this._premultiplyAlpha?1:0,i=this._flipY?1:0,n=this._minFilter===u.LINEAR?1:2,r=this._magFilter===u.LINEAR?1:2,s=this._wrapS===l.REPEAT?1:this._wrapS===l.CLAMP_TO_EDGE?2:3,a=this._wrapT===l.REPEAT?1:this._wrapT===l.CLAMP_TO_EDGE?2:3,o=this._format;return this._image,this._hash=Number(""+n+r+o+s+a+t+e+i),this._hashDirty=!1,this._hash},_isCompressed:function(){return this._formatc.RGBA32F},_clearImage:function(){this._image.src=""},_checkImageBitmap:function(t){var e=this,i=this._image,n=this._flipY,r=this._premultiplyAlpha;this._flipY!==i.flipY||this._premultiplyAlpha!==i.premultiplyAlpha?createImageBitmap(i,{imageOrientation:n!==i.flipY?"flipY":"none",premultiplyAlpha:r?"premultiply":"none"}).then((function(s){i.close&&i.close(),s.flipY=n,s.premultiplyAlpha=r,e._image=s,t()}),(function(t){cc.error(t.message)})):t()}});cc.Texture2D=e.exports=p}),{"../../renderer/gfx":277,"../assets/CCAsset":58,"../event/event-target":134,"../platform/CCClass":161,"../platform/id-generater":178,"../renderer":192}],74:[(function(t,e){"use strict";var i=t("./CCAsset"),n=t("../event/event-target"),r=cc.Class({name:"cc.VideoClip",extends:i,mixins:[n]});cc.VideoClip=r,e.exports=r}),{"../event/event-target":134,"./CCAsset":58}],75:[(function(t){"use strict";t("./CCAsset"),t("./CCFont"),t("./CCPrefab"),t("./CCAudioClip"),t("./CCVideoClip"),t("./CCScripts"),t("./CCSceneAsset"),t("./CCSpriteFrame"),t("./CCTexture2D"),t("./CCRenderTexture"),t("./CCTTFFont"),t("./CCSpriteAtlas"),t("./CCBitmapFont"),t("./CCLabelAtlas"),t("./CCTextAsset"),t("./CCJsonAsset"),t("./CCBufferAsset"),t("./material")}),{"./CCAsset":58,"./CCAudioClip":59,"./CCBitmapFont":60,"./CCBufferAsset":61,"./CCFont":62,"./CCJsonAsset":63,"./CCLabelAtlas":64,"./CCPrefab":65,"./CCRenderTexture":66,"./CCSceneAsset":67,"./CCScripts":68,"./CCSpriteAtlas":69,"./CCSpriteFrame":70,"./CCTTFFont":71,"./CCTextAsset":72,"./CCTexture2D":73,"./CCVideoClip":74,"./material":82}],76:[(function(t,e){"use strict";var i,n=(i=t("../CCAsset"))&&i.__esModule?i:{default:i},r=t("./effect-parser"),s=cc.Class({name:"cc.EffectAsset",extends:n.default,ctor:function(){this._effect=null},properties:{properties:Object,techniques:[],shaders:[]},onLoad:function(){if(cc.game.renderType!==cc.game.RENDER_TYPE_CANVAS){for(var t=cc.renderer._forward._programLib,e=0;e=i.length)){var n=0,r=i.length;void 0!==e&&(n=e,r=e+1);for(var s=n;s=i.length)){var n=0,r=i.length;void 0!==e&&(n=e,r=e+1);for(var s=n;s=this._techniques.length?cc.warn("Can not switch to technique with index ["+t+"]"):this._technique=this._techniques[t]},c.clear=function(){this._techniques=[]},c.clone=function(){for(var t=[],e=0;ethis.maxSize||(this._clean(t),e[i][r].push(t),this.count++)}},s.clear=function(){this._pool={},this.count=0},s._clean=function(t){t._owner=null},r}(r.default));r.default.register("material",o);var c=o;i.default=c,e.exports=i.default}),{"../../utils/pool":237,"./utils":85}],84:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=o(t("./CCMaterial")),s=o(t("./effect-variant")),a=o(t("./material-pool"));function o(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var i=0;i0},render:function(t){if(!(t=t||cc.director.getScene()))return null;this.node.getWorldMatrix(l),this.beforeDraw(),a.renderCamera(this._camera,t)},_onAlignWithScreen:function(){var t=cc.game.canvas.height/cc.view._scaleY;this._targetTexture&&(t=cc.visibleRect.height);var e=this._fov*cc.macro.RAD;this.node.z=t/(2*Math.tan(e/2)),e=2*Math.atan(Math.tan(e/2)/this.zoomRatio),this._camera.setFov(e),this._camera.setOrthoHeight(t/2/this.zoomRatio),this.node.setRotation(0,0,0,1)},beforeDraw:function(){if(this._camera){if(this._alignWithScreen)this._onAlignWithScreen();else{var t=this._fov*cc.macro.RAD;t=2*Math.atan(Math.tan(t/2)/this.zoomRatio),this._camera.setFov(t),this._camera.setOrthoHeight(this._orthoSize/this.zoomRatio)}this._camera.dirty=!0}}});cc.js.mixin(T.prototype,{getNodeToCameraTransform:function(t){var e=r.identity();return t.getWorldMatrix(u),this.containsNode(t)&&(this.getWorldToCameraMatrix(l),i.Mat4.mul(u,u,l)),r.fromMat4(e,u),e},getCameraToWorldPoint:function(t,e){return this.getScreenToWorldPoint(t,e)},getWorldToCameraPoint:function(t,e){return this.getWorldToScreenPoint(t,e)},getCameraToWorldMatrix:function(t){return this.getScreenToWorldMatrix2D(t)},getWorldToCameraMatrix:function(t){return this.getWorldToScreenMatrix2D(t)}}),e.exports=cc.Camera=T}),{"../../renderer/scene/camera":297,"../CCGame":24,"../geom-utils":142,"../renderer/index":192,"../renderer/render-flow":193,"../utils/affine-transform":227,"../value-types":250}],88:[(function(t,e){"use strict";cc.Collider.Box=cc.Class({properties:{_offset:cc.v2(0,0),_size:cc.size(100,100),offset:{tooltip:!1,get:function(){return this._offset},set:function(t){this._offset=t},type:cc.Vec2},size:{tooltip:!1,get:function(){return this._size},set:function(t){this._size.width=t.width<0?0:t.width,this._size.height=t.height<0?0:t.height},type:cc.Size}},resetInEditor:!1});var i=cc.Class({name:"cc.BoxCollider",extends:cc.Collider,mixins:[cc.Collider.Box],editor:!1});cc.BoxCollider=e.exports=i}),{}],89:[(function(t,e){"use strict";cc.Collider.Circle=cc.Class({properties:{_offset:cc.v2(0,0),_radius:50,offset:{tooltip:!1,get:function(){return this._offset},set:function(t){this._offset=t},type:cc.Vec2},radius:{tooltip:!1,get:function(){return this._radius},set:function(t){this._radius=t<0?0:t}}},resetInEditor:!1});var i=cc.Class({name:"cc.CircleCollider",extends:cc.Collider,mixins:[cc.Collider.Circle],editor:!1});cc.CircleCollider=e.exports=i}),{}],90:[(function(t,e){"use strict";var i=cc.Class({name:"cc.Collider",extends:cc.Component,properties:{editing:{default:!1,serializable:!1,tooltip:!1},tag:{tooltip:!1,default:0,range:[0,1e7],type:cc.Integer}},onDisable:function(){cc.director.getCollisionManager().removeCollider(this)},onEnable:function(){cc.director.getCollisionManager().addCollider(this)}});cc.Collider=e.exports=i}),{}],91:[(function(t,e){"use strict";var i,n=(i=t("../value-types/vec2"))&&i.__esModule?i:{default:i},r=t("./CCContact"),s=r.CollisionType,a=t("../CCNode").EventType,o=new n.default;function c(t,e,i,n,r,s){var a=t.x,o=t.y,c=t.width,l=t.height,u=e.m,h=u[0],f=u[1],d=u[4],_=u[5],p=h*a+d*o+u[12],v=f*a+_*o+u[13],g=h*c,m=f*c,y=d*l,T=_*l;n.x=p,n.y=v,r.x=g+p,r.y=m+v,i.x=y+p,i.y=T+v,s.x=g+y+p,s.y=m+T+v}var l=cc.Class({mixins:[cc.EventTarget],properties:{enabled:!1,enabledDrawBoundingBox:!1},ctor:function(){this._contacts=[],this._colliders=[],this._debugDrawer=null,this._enabledDebugDraw=!1,cc.director._scheduler&&cc.director._scheduler.enableForTarget(this)},update:function(){if(this.enabled){var t,e,i=this._colliders;for(t=0,e=i.length;tw&&(w=O),OR&&(R=D),D=0){e.splice(i,1);for(var n=this._contacts,r=n.length-1;r>=0;r--){var o=n[r];o.collider1!==t&&o.collider2!==t||(o.touching&&this._doCollide(s.CollisionExit,o),n.splice(r,1))}t.node.off(a.GROUP_CHANGED,this.onNodeGroupChanged,this)}else cc.errorID(6600)},onNodeGroupChanged:function(t){for(var e=t.getComponents(cc.Collider),i=0,n=e.length;i0){t.moveTo(s[0].x,s[0].y);for(var a=1;ar!=h>r&&n<(u-c)*(r-l)/(h-l)+c&&(i=!i)}return i}function a(t,e,i,n){var r,s=i.x-e.x,a=i.y-e.y,o=s*s+a*a,c=((t.x-e.x)*s+(t.y-e.y)*a)/o;return r=n?o?c<0?e:c>1?i:cc.v2(e.x+c*s,e.y+c*a):e:cc.v2(e.x+c*s,e.y+c*a),s=t.x-r.x,a=t.y-r.y,Math.sqrt(s*s+a*a)}i.lineLine=n,i.lineRect=function(t,e,i){var r=new cc.Vec2(i.x,i.y),s=new cc.Vec2(i.x,i.yMax),a=new cc.Vec2(i.xMax,i.yMax),o=new cc.Vec2(i.xMax,i.y);return!!(n(t,e,r,s)||n(t,e,s,a)||n(t,e,a,o)||n(t,e,o,r))},i.linePolygon=r,i.rectRect=function(t,e){var i=t.x,n=t.y,r=t.x+t.width,s=t.y+t.height,a=e.x,o=e.y,c=e.x+e.width,l=e.y+e.height;return i<=c&&r>=a&&n<=l&&s>=o},i.rectPolygon=function(t,e){var i,n,a=new cc.Vec2(t.x,t.y),o=new cc.Vec2(t.x,t.yMax),c=new cc.Vec2(t.xMax,t.yMax),l=new cc.Vec2(t.xMax,t.y);if(r(a,o,e))return!0;if(r(o,c,e))return!0;if(r(c,l,e))return!0;if(r(l,a,e))return!0;for(i=0,n=e.length;i>>1;r<=s;a=r+s>>>1){var o=t[a],c=o.constructor._executionOrder;if(c>i)s=a-1;else if(cn)s=a-1;else{if(!(l0&&(t.array.sort(l),this._invoke(t),t.array.length=0),this._invoke(this._zero),this._zero.array.length=0;var e=this._pos;e.array.length>0&&(e.array.sort(l),this._invoke(e),e.array.length=0)}}),h=cc.Class({extends:c,add:function(t){var e=t.constructor._executionOrder;if(0===e)this._zero.array.push(t);else{var i=e<0?this._neg.array:this._pos.array,n=a(i,t);n<0&&i.splice(~n,0,t)}},remove:function(t){var e=t.constructor._executionOrder;if(0===e)this._zero.fastRemove(t);else{var i=e<0?this._neg:this._pos,n=a(i.array,t);n>=0&&i.removeAt(n)}},invoke:function(t){this._neg.array.length>0&&this._invoke(this._neg,t),this._invoke(this._zero,t),this._pos.array.length>0&&this._invoke(this._pos,t)}});function f(t,e,i,n){var r="var a=it.array;for(it.i=0;it.i=0?n.fastRemoveAt(this._deferredComps,e):(!t.start||t._objFlags&r||this.startInvoker.remove(t),t.update&&this.updateInvoker.remove(t),t.lateUpdate&&this.lateUpdateInvoker.remove(t))},enableComp:function(t,e){if(!(t._objFlags&s)){if(t.onEnable){if(e)return void e.add(t);if(t.onEnable(),!t.node._activeInHierarchy)return}this._onEnabled(t)}},disableComp:function(t){t._objFlags&s&&(t.onDisable&&t.onDisable(),this._onDisabled(t))},_scheduleImmediate:function(t){"function"!=typeof t.start||t._objFlags&r||this.startInvoker.add(t),"function"==typeof t.update&&this.updateInvoker.add(t),"function"==typeof t.lateUpdate&&this.lateUpdateInvoker.add(t)},_deferredSchedule:function(){for(var t=this._deferredComps,e=0,i=t.length;e0&&(this._deferredSchedule(),this.startInvoker.invoke())},startPhase:function(){this._updating=!0,this.startInvoker.invoke(),this._startForNewComps()},updatePhase:function(t){this.updateInvoker.invoke(t)},lateUpdatePhase:function(t){this.lateUpdateInvoker.invoke(t),this._updating=!1,this._startForNewComps()}});e.exports=g}),{"./platform/CCClass":161,"./platform/CCObject":167,"./platform/js":182,"./utils/misc":235}],97:[(function(t,e){"use strict";var i=t("../../animation/animation-animator"),n=t("../../animation/animation-clip"),r=t("../event/event-target"),s=t("../platform/js"),a=function(t,e){return t===e},o=cc.Enum({PLAY:"play",STOP:"stop",PAUSE:"pause",RESUME:"resume",LASTFRAME:"lastframe",FINISHED:"finished"}),c=cc.Class({name:"cc.Animation",extends:t("./CCComponent"),mixins:[r],editor:!1,statics:{EventType:o},ctor:function(){cc.EventTarget.call(this),this._animator=null,this._nameToState=s.createMap(!0),this._didInit=!1,this._currentClip=null},properties:{_defaultClip:{default:null,type:n},defaultClip:{type:n,get:function(){return this._defaultClip},set:function(){},tooltip:!1},currentClip:{get:function(){return this._currentClip},set:function(t){this._currentClip=t},type:n,visible:!1},_writableClips:{get:function(){return this._clips},set:function(t){this._didInit=!1,this._clips=t,this._init()},type:[n]},_clips:{default:[],type:[n],tooltip:!1,visible:!0},playOnLoad:{default:!1,tooltip:!1}},start:function(){if(this.playOnLoad&&this._defaultClip&&(!this._animator||!this._animator.isPlaying)){var t=this.getAnimationState(this._defaultClip.name);this._animator.playState(t)}},onEnable:function(){this._animator&&this._animator.resume()},onDisable:function(){this._animator&&this._animator.pause()},onDestroy:function(){this.stop()},getClips:function(){return this._clips},play:function(t,e){var i=this.playAdditive(t,e);return this._animator.stopStatesExcept(i),i},playAdditive:function(t,e){this._init();var i=this.getAnimationState(t||this._defaultClip&&this._defaultClip.name);if(i){this.enabled=!0;var n=this._animator;n.isPlaying&&i.isPlaying?i.isPaused?n.resumeState(i):(n.stopState(i),n.playState(i,e)):n.playState(i,e),this.enabledInHierarchy||n.pause(),this.currentClip=i.clip}return i},stop:function(t){if(this._didInit)if(t){var e=this._nameToState[t];e&&this._animator.stopState(e)}else this._animator.stop()},pause:function(t){if(this._didInit)if(t){var e=this._nameToState[t];e&&this._animator.pauseState(e)}else this.enabled=!1},resume:function(t){if(this._didInit)if(t){var e=this.getAnimationState(t);e&&this._animator.resumeState(e)}else this.enabled=!0},setCurrentTime:function(t,e){if(this._init(),e){var i=this.getAnimationState(e);i&&this._animator.setStateTime(i,t)}else this._animator.setStateTime(t)},getAnimationState:function(t){this._init();var e=this._nameToState[t];return e&&!e.curveLoaded&&this._animator._reloadClip(e),e||null},hasAnimationState:function(t){return this._init(),!!this._nameToState[t]},addClip:function(t,e){if(t){this._init(),cc.js.array.contains(this._clips,t)||this._clips.push(t),e=e||t.name;var i=this._nameToState[e];if(i){if(i.clip===t)return i;var n=this._clips.indexOf(i.clip);-1!==n&&this._clips.splice(n,1)}var r=new cc.AnimationState(t,e);return this._nameToState[e]=r,r}cc.warnID(3900)},removeClip:function(t,e){if(t){var i;for(var n in this._init(),this._nameToState)if(i=this._nameToState[n],a(i.clip,t))break;if(t===this._defaultClip){if(!e)return void cc.warnID(3902);this._defaultClip=null}if(i&&i.isPlaying){if(!e)return void cc.warnID(3903);this.stop(i.name)}this._clips=this._clips.filter((function(e){return!a(e,t)})),i&&delete this._nameToState[i.name]}else cc.warnID(3901)},sample:function(t){if(this._init(),t){var e=this.getAnimationState(t);e&&e.sample()}else this._animator.sample()},on:function(t,e,i,n){this._init();var r=this._EventTargetOn(t,e,i,n);if("lastframe"===t){var s=this._nameToState;for(var a in s)s[a]._lastframeEventOn=!0}return r},off:function(t,e,i,n){if(this._init(),"lastframe"===t){var r=this._nameToState;for(var s in r)r[s]._lastframeEventOn=!1}this._EventTargetOff(t,e,i,n)},_init:function(){this._didInit||(this._didInit=!0,this._animator=new i(this.node,this),this._createStates())},_createStates:function(){this._nameToState=s.createMap(!0);for(var t=null,e=!1,i=0;i0&&(i=this.time/this.duration),i>=1&&(i=1),this.transition===r.COLOR){var n=this._fromColor.lerp(this._toColor,i);this._setTargetColor(n)}else this.transition===r.SCALE&&this._originalScale&&(e.scale=this._fromScale.lerp(this._toScale,i));1===i&&(this._transitionFinished=!0)}},_registerNodeEvent:function(){this.node.on(cc.Node.EventType.TOUCH_START,this._onTouchBegan,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this._onTouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this._onTouchEnded,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this._onTouchCancel,this),this.node.on(cc.Node.EventType.MOUSE_ENTER,this._onMouseMoveIn,this),this.node.on(cc.Node.EventType.MOUSE_LEAVE,this._onMouseMoveOut,this)},_unregisterNodeEvent:function(){this.node.off(cc.Node.EventType.TOUCH_START,this._onTouchBegan,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this._onTouchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this._onTouchEnded,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this._onTouchCancel,this),this.node.off(cc.Node.EventType.MOUSE_ENTER,this._onMouseMoveIn,this),this.node.off(cc.Node.EventType.MOUSE_LEAVE,this._onMouseMoveOut,this)},_registerTargetEvent:function(t){t.on(cc.Node.EventType.SCALE_CHANGED,this._onTargetScaleChanged,this)},_unregisterTargetEvent:function(t){t.off(cc.Node.EventType.SCALE_CHANGED,this._onTargetScaleChanged,this)},_getTargetSprite:function(t){var e=null;return t&&(e=t.getComponent(cc.Sprite)),e},_applyTarget:function(){var t=this._getTarget();this._sprite=this._getTargetSprite(t),this._originalScale||(this._originalScale=cc.Vec2.ZERO),this._originalScale.x=t.scaleX,this._originalScale.y=t.scaleY,this._registerTargetEvent(t)},_onTouchBegan:function(t){this.interactable&&this.enabledInHierarchy&&(this._pressed=!0,this._updateState(),t.stopPropagation())},_onTouchMove:function(t){if(this.interactable&&this.enabledInHierarchy&&this._pressed){var e,i=t.touch,n=this.node._hitTest(i.getLocation()),a=this._getTarget(),o=this._originalScale;this.transition===r.SCALE&&o?n?(this._fromScale.x=o.x,this._fromScale.y=o.y,this._toScale.x=o.x*this.zoomScale,this._toScale.y=o.y*this.zoomScale,this._transitionFinished=!1):(this.time=0,this._transitionFinished=!0,a.setScale(o.x,o.y)):(e=n?s.PRESSED:s.NORMAL,this._applyTransition(e)),t.stopPropagation()}},_onTouchEnded:function(t){this.interactable&&this.enabledInHierarchy&&(this._pressed&&(cc.Component.EventHandler.emitEvents(this.clickEvents,t),this.node.emit("click",this)),this._pressed=!1,this._updateState(),t.stopPropagation())},_onTouchCancel:function(){this.interactable&&this.enabledInHierarchy&&(this._pressed=!1,this._updateState())},_onMouseMoveIn:function(){!this._pressed&&this.interactable&&this.enabledInHierarchy&&(this.transition!==r.SPRITE||this.hoverSprite)&&(this._hovered||(this._hovered=!0,this._updateState()))},_onMouseMoveOut:function(){this._hovered&&(this._hovered=!1,this._updateState())},_updateState:function(){var t=this._getButtonState();this._applyTransition(t),this._updateDisabledState()},_getButtonState:function(){return this.interactable?this._pressed?s.PRESSED:this._hovered?s.HOVER:s.NORMAL:s.DISABLED},_updateColorTransitionImmediately:function(t){var e=this._getStateColor(t);this._setTargetColor(e),this._fromColor=e.clone(),this._toColor=e},_updateColorTransition:function(t){if(t===s.DISABLED)this._updateColorTransitionImmediately(t);else{var e=this._getTarget(),i=this._getStateColor(t);this._fromColor=e.color.clone(),this._toColor=i,this.time=0,this._transitionFinished=!1}},_updateSpriteTransition:function(t){var e=this._getStateSprite(t);this._sprite&&e&&(this._sprite.spriteFrame=e)},_updateScaleTransition:function(t){t===s.PRESSED?this._zoomUp():this._zoomBack()},_zoomUp:function(){this._originalScale&&(this._fromScale.x=this._originalScale.x,this._fromScale.y=this._originalScale.y,this._toScale.x=this._originalScale.x*this.zoomScale,this._toScale.y=this._originalScale.y*this.zoomScale,this.time=0,this._transitionFinished=!1)},_zoomBack:function(){if(this._originalScale){var t=this._getTarget();this._fromScale.x=t.scaleX,this._fromScale.y=t.scaleY,this._toScale.x=this._originalScale.x,this._toScale.y=this._originalScale.y,this.time=0,this._transitionFinished=!1}},_updateTransition:function(t){t===r.COLOR?this._updateColorTransitionImmediately(s.NORMAL):t===r.SPRITE&&this._updateSpriteTransition(s.NORMAL),this._updateState()},_applyTransition:function(t){var e=this.transition;e===r.COLOR?this._updateColorTransition(t):e===r.SPRITE?this._updateSpriteTransition(t):e===r.SCALE&&this._updateScaleTransition(t)},_resizeNodeToTargetNode:!1,_updateDisabledState:function(t){if(this._sprite&&(this.enableAutoGrayEffect||t)){var e=!1;this.transition===r.SPRITE&&this.disabledSprite||(e=this.enableAutoGrayEffect&&!this.interactable),this._switchGrayMaterial(e,this._sprite)}}});cc.Button=e.exports=a}),{"../utils/gray-sprite-state":233,"./CCComponent":102}],101:[(function(t,e){"use strict";var i=t("../camera/CCCamera"),n=t("./CCComponent"),r=cc.Class({name:"cc.Canvas",extends:n,editor:!1,resetInEditor:!1,statics:{instance:null},properties:{_designResolution:cc.size(960,640),designResolution:{get:function(){return cc.size(this._designResolution)},set:function(t){this._designResolution.width=t.width,this._designResolution.height=t.height,this.applySettings()},tooltip:!1},_fitWidth:!1,_fitHeight:!0,fitHeight:{get:function(){return this._fitHeight},set:function(t){this._fitHeight!==t&&(this._fitHeight=t,this.applySettings())},tooltip:!1},fitWidth:{get:function(){return this._fitWidth},set:function(t){this._fitWidth!==t&&(this._fitWidth=t,this.applySettings())},tooltip:!1}},_fitDesignResolution:!1,__preload:function(){if(r.instance)return cc.warnID(6700,this.node.name,r.instance.node.name);r.instance=this,this.applySettings();var t=this.getComponent(cc.Widget);t&&t.updateAlignment()},start:function(){if(!i.main&&cc.game.renderType!==cc.game.RENDER_TYPE_CANVAS){var t=new cc.Node("Main Camera");t.parent=this.node,t.setSiblingIndex(0);var e=t.addComponent(i),n=i.ClearFlags;e.clearFlags=n.COLOR|n.DEPTH|n.STENCIL,e.depth=-1}},onDestroy:function(){r.instance===this&&(r.instance=null)},applySettings:function(){var t,e=cc.ResolutionPolicy;t=this.fitHeight&&this.fitWidth?e.SHOW_ALL:this.fitHeight||this.fitWidth?this.fitWidth?e.FIXED_WIDTH:e.FIXED_HEIGHT:e.NO_BORDER;var i=this._designResolution;cc.view.setDesignResolutionSize(i.width,i.height,t)}});cc.Canvas=e.exports=r}),{"../camera/CCCamera":87,"./CCComponent":102}],102:[(function(t,e){"use strict";var i=t("../platform/CCObject"),n=t("../platform/js"),r=new(t("../platform/id-generater"))("Comp"),s=(i.Flags.IsOnEnableCalled,i.Flags.IsOnLoadCalled),a=!!cc.ActionManager,o=cc.Class({name:"cc.Component",extends:i,ctor:function(){this._id=r.getNewId(),this.__eventTargets=[]},properties:{node:{default:null,visible:!1},name:{get:function(){if(this._name)return this._name;var t=cc.js.getClassName(this),e=t.lastIndexOf(".");return e>=0&&(t=t.slice(e+1)),this.node.name+"<"+t+">"},set:function(t){this._name=t},visible:!1},uuid:{get:function(){return this._id},visible:!1},__scriptAsset:!1,_enabled:!0,enabled:{get:function(){return this._enabled},set:function(t){if(this._enabled!==t&&(this._enabled=t,this.node._activeInHierarchy)){var e=cc.director._compScheduler;t?e.enableComp(this):e.disableComp(this)}},visible:!1,animatable:!0},enabledInHierarchy:{get:function(){return this._enabled&&this.node&&this.node._activeInHierarchy},visible:!1},_isOnLoadCalled:{get:function(){return this._objFlags&s}}},update:null,lateUpdate:null,__preload:null,onLoad:null,start:null,onEnable:null,onDisable:null,onDestroy:null,onFocusInEditor:null,onLostFocusInEditor:null,resetInEditor:null,addComponent:function(t){return this.node.addComponent(t)},getComponent:function(t){return this.node.getComponent(t)},getComponents:function(t){return this.node.getComponents(t)},getComponentInChildren:function(t){return this.node.getComponentInChildren(t)},getComponentsInChildren:function(t){return this.node.getComponentsInChildren(t)},_getLocalBounds:null,onRestore:null,destroy:function(){this._super()&&this._enabled&&this.node._activeInHierarchy&&cc.director._compScheduler.disableComp(this)},_onPreDestroy:function(){a&&cc.director.getActionManager().removeAllActionsFromTarget(this),this.unscheduleAllCallbacks();for(var t=this.__eventTargets,e=t.length-1;e>=0;--e){var i=t[e];i&&i.targetOff(this)}t.length=0,cc.director._nodeActivator.destroyComp(this),this.node._removeComponent(this)},_instantiate:function(t){return t||(t=cc.instantiate._clone(this,this)),t.node=null,t},schedule:function(t,e,i,n){cc.assertID(t,1619),e=e||0,cc.assertID(e>=0,1620),i=isNaN(i)?cc.macro.REPEAT_FOREVER:i,n=n||0;var r=cc.director.getScheduler(),s=r.isTargetPaused(this);r.schedule(t,this,e,i,n,s)},scheduleOnce:function(t,e){this.schedule(t,0,0,e)},unschedule:function(t){t&&cc.director.getScheduler().unschedule(t,this)},unscheduleAllCallbacks:function(){cc.director.getScheduler().unscheduleAllForTarget(this)}});o._requireComponent=null,o._executionOrder=0,n.value(o,"_registerEditorProps",(function(t,e){var i=e.requireComponent;i&&(t._requireComponent=i);var n=e.executionOrder;n&&"number"==typeof n&&(t._executionOrder=n)})),o.prototype.__scriptUuid="",cc.Component=e.exports=o}),{"../platform/CCObject":167,"../platform/id-generater":178,"../platform/js":182}],103:[(function(){"use strict";cc.Component.EventHandler=cc.Class({name:"cc.ClickEvent",properties:{target:{default:null,type:cc.Node},component:"",_componentId:"",_componentName:{get:function(){return this._genCompIdIfNeeded(),this._compId2Name(this._componentId)},set:function(t){this._componentId=this._compName2Id(t)}},handler:{default:""},customEventData:{default:""}},statics:{emitEvents:function(t){var e;if(arguments.length>0)for(var i=0,n=(e=new Array(arguments.length-1)).length;ip&&(p=v),R>=p&&(v=p,p=R,y=C.getAnchorPoint().y),this.horizontalDirection===o.RIGHT_TO_LEFT&&(S=1-C.anchorX),d=d+u*S*w+u*this.spacingX;var M=u*(1-S)*w;if(e){var I=d+M+u*(u>0?this.paddingRight:this.paddingLeft),O=this.horizontalDirection===o.LEFT_TO_RIGHT&&I>(1-c.x)*t,D=this.horizontalDirection===o.RIGHT_TO_LEFT&&I<-c.x*t;(O||D)&&(R>=p?(0===v&&(v=p),_+=v,v=p):(_+=p,v=R,p=0),d=f+u*(h+S*w),g++)}var L=i(C,_,g);t>=w+this.paddingLeft+this.paddingRight&&s&&C.setPosition(cc.v2(d,L));var P,N=1,F=0===p?R:p;this.verticalDirection===a.TOP_TO_BOTTOM?(m=m||this.node._contentSize.height,(P=L+(N=-1)*(F*y+this.paddingBottom))m&&(m=P)),d+=M}}return m},_getVerticalBaseHeight:function(t){var e=0,i=0;if(this.resizeMode===r.CONTAINER){for(var n=0;np&&(p=v),w>=p&&(v=p,p=w,y=C.getAnchorPoint().x),this.verticalDirection===a.TOP_TO_BOTTOM&&(S=1-C.anchorY),d=d+u*S*R+u*this.spacingY;var M=u*(1-S)*R;if(e){var I=d+M+u*(u>0?this.paddingTop:this.paddingBottom),O=this.verticalDirection===a.BOTTOM_TO_TOP&&I>(1-c.y)*t,D=this.verticalDirection===a.TOP_TO_BOTTOM&&I<-c.y*t;(O||D)&&(w>=p?(0===v&&(v=p),_+=v,v=p):(_+=p,v=w,p=0),d=f+u*(h+S*R),g++)}var L=i(C,_,g);t>=R+(this.paddingTop+this.paddingBottom)&&s&&C.setPosition(cc.v2(L,d));var P,N=1,F=0===p?w:p;this.horizontalDirection===o.RIGHT_TO_LEFT?(N=-1,m=m||this.node._contentSize.width,(P=L+N*(F*y+this.paddingLeft))m&&(m=P)),d+=M}}return m},_doLayoutBasic:function(){for(var t=this.node.children,e=null,i=0;i0&&this.node.children.find((function(t){return t.activeInHierarchy}))&&(this._doLayout(),this._layoutDirty=!1)}});cc.Layout=e.exports=c}),{"../CCNode":25,"./CCComponent":102}],106:[(function(t,e){"use strict";var i=a(t("../../renderer/gfx")),n=a(t("../value-types/mat4")),r=a(t("../value-types/vec2")),s=a(t("../assets/material/material-variant"));function a(t){return t&&t.__esModule?t:{default:t}}var o=t("../utils/misc"),c=t("./CCRenderComponent"),l=t("../renderer/render-flow"),u=t("../graphics/graphics"),h=new r.default,f=new n.default,d=[];function _(t,e,i){d.length=0;for(var n=2*Math.PI/i,r=0;r=0&&o.y>=0&&o.x<=s&&o.y<=a;else if(this.type===p.ELLIPSE){var l=s/2,u=a/2,d=o.x-.5*s,_=o.y-.5*a;c=d*d/(l*l)+_*_/(u*u)<1}return this.inverted&&(c=!c),c},markForRender:function(t){var e=l.FLAG_RENDER|l.FLAG_UPDATE_RENDER_DATA|l.FLAG_POST_RENDER;t?(this.node._renderFlag|=e,this.markForValidate()):t||(this.node._renderFlag&=~e)},disableRender:function(){this.node._renderFlag&=~(l.FLAG_RENDER|l.FLAG_UPDATE_RENDER_DATA|l.FLAG_POST_RENDER)}});cc.Mask=e.exports=v}),{"../../renderer/gfx":277,"../assets/material/material-variant":84,"../graphics/graphics":150,"../renderer/render-flow":193,"../utils/misc":235,"../value-types/mat4":252,"../value-types/vec2":259,"./CCRenderComponent":109}],107:[(function(t,e){"use strict";var i=t("../components/CCRenderComponent"),n=t("../../core/utils/blend-func"),r=cc.Class({name:"cc.MotionStreak",extends:i,mixins:[n],editor:!1,ctor:function(){this._points=[]},properties:{preview:{default:!1,editorOnly:!0,notify:!1,animatable:!1},_fadeTime:1,fadeTime:{get:function(){return this._fadeTime},set:function(t){this._fadeTime=t,this.reset()},animatable:!1,tooltip:!1},_minSeg:1,minSeg:{get:function(){return this._minSeg},set:function(t){this._minSeg=t},animatable:!1,tooltip:!1},_stroke:64,stroke:{get:function(){return this._stroke},set:function(t){this._stroke=t},animatable:!1,tooltip:!1},_texture:{default:null,type:cc.Texture2D},texture:{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture=t,this._updateMaterial())},type:cc.Texture2D,animatable:!1,tooltip:!1},_color:cc.Color.WHITE,color:{get:function(){return this._color.clone()},set:function(t){this._color.equals(t)||this._color.set(t)},type:cc.Color,tooltip:!1},_fastMode:!1,fastMode:{get:function(){return this._fastMode},set:function(t){this._fastMode=t},animatable:!1,tooltip:!1}},onEnable:function(){this._super(),this.reset()},_updateMaterial:function(){var t=this.getMaterial(0);t&&t.setProperty("texture",this._texture),n.prototype._updateMaterial.call(this)},onFocusInEditor:!1,onLostFocusInEditor:!1,reset:function(){this._points.length=0,this._assembler&&this._assembler._renderData.clear()},lateUpdate:function(t){this._assembler&&this._assembler.update(this,t)}});cc.MotionStreak=e.exports=r}),{"../../core/utils/blend-func":230,"../components/CCRenderComponent":109}],108:[(function(t,e){"use strict";var i=t("../utils/misc"),n=t("./CCComponent"),r=cc.Enum({HORIZONTAL:0,VERTICAL:1,FILLED:2}),s=cc.Class({name:"cc.ProgressBar",extends:n,editor:!1,_initBarSprite:function(){if(this.barSprite){var t=this.barSprite.node;if(!t)return;var e=this.node.getContentSize(),i=this.node.getAnchorPoint(),n=t.getContentSize();t.parent===this.node&&this.node.setContentSize(n),this.barSprite.fillType===cc.Sprite.FillType.RADIAL&&(this.mode=r.FILLED);var s=t.getContentSize();if(this.mode===r.HORIZONTAL?this.totalLength=s.width:this.mode===r.VERTICAL?this.totalLength=s.height:this.totalLength=this.barSprite.fillRange,t.parent===this.node){var a=-e.width*i.x;t.setPosition(cc.v2(a,0))}}},_updateBarStatus:function(){if(this.barSprite){var t=this.barSprite.node;if(!t)return;var e,n,s,a=t.getAnchorPoint(),o=t.getContentSize(),c=t.getPosition(),l=cc.v2(0,.5),u=i.clamp01(this.progress),h=this.totalLength*u;switch(this.mode){case r.HORIZONTAL:this.reverse&&(l=cc.v2(1,.5)),e=cc.size(h,o.height),n=this.totalLength,s=o.height;break;case r.VERTICAL:l=this.reverse?cc.v2(.5,1):cc.v2(.5,0),e=cc.size(o.width,h),n=o.width,s=this.totalLength}if(this.mode===r.FILLED)this.barSprite.type!==cc.Sprite.Type.FILLED?cc.warn("ProgressBar FILLED mode only works when barSprite's Type is FILLED!"):(this.reverse&&(h*=-1),this.barSprite.fillRange=h);else if(this.barSprite.type!==cc.Sprite.Type.FILLED){var f=l.x-a.x,d=l.y-a.y,_=cc.v2(n*f,s*d);t.setPosition(c.x+_.x,c.y+_.y),t.setAnchorPoint(l),t.setContentSize(e)}else cc.warn("ProgressBar non-FILLED mode only works when barSprite's Type is non-FILLED!")}},properties:{barSprite:{default:null,type:cc.Sprite,tooltip:!1,notify:function(){this._initBarSprite()},animatable:!1},mode:{default:r.HORIZONTAL,type:r,tooltip:!1,notify:function(){if(this.barSprite){var t=this.barSprite.node;if(!t)return;var e=t.getContentSize();this.mode===r.HORIZONTAL?this.totalLength=e.width:this.mode===r.VERTICAL?this.totalLength=e.height:this.mode===r.FILLED&&(this.totalLength=this.barSprite.fillRange)}},animatable:!1},_N$totalLength:1,totalLength:{range:[0,Number.MAX_VALUE],tooltip:!1,get:function(){return this._N$totalLength},set:function(t){this.mode===r.FILLED&&(t=i.clamp01(t)),this._N$totalLength=t,this._updateBarStatus()}},progress:{default:1,type:cc.Float,range:[0,1,.1],slide:!0,tooltip:!1,notify:function(){this._updateBarStatus()}},reverse:{default:!1,tooltip:!1,notify:function(){this.barSprite&&(this.barSprite.fillStart=1-this.barSprite.fillStart),this._updateBarStatus()},animatable:!1}},statics:{Mode:r}});cc.ProgressBar=e.exports=s}),{"../utils/misc":235,"./CCComponent":102}],109:[(function(t,e){"use strict";var i=s(t("../renderer/assembler")),n=s(t("../assets/material/material-variant")),r=t("../value-types");function s(t){return t&&t.__esModule?t:{default:t}}var a=t("./CCComponent"),o=t("../renderer/render-flow"),c=t("../assets/material/CCMaterial"),l=new r.Color,u=cc.Class({name:"RenderComponent",extends:a,editor:!1,properties:{_materials:{default:[],type:c},materials:{get:function(){return this._materials},set:function(t){this._materials=t,this._activateMaterial()},type:[c],displayName:"Materials",animatable:!1}},ctor:function(){this._vertsDirty=!0,this._assembler=null},_resetAssembler:function(){i.default.init(this),this._updateColor(),this.setVertsDirty()},__preload:function(){this._resetAssembler(),this._activateMaterial()},onEnable:function(){this.node._renderComponent&&(this.node._renderComponent.enabled=!1),this.node._renderComponent=this,this.node._renderFlag|=o.FLAG_OPACITY_COLOR,this.setVertsDirty()},onDisable:function(){this.node._renderComponent=null,this.disableRender()},onDestroy:function(){for(var t=this._materials,e=0;e=this._materials.length)return null;var e=this._materials[t];if(!e)return null;var i=n.default.create(e,this);return i!==e&&this.setMaterial(t,i),i},getMaterials:function(){for(var t=this._materials,e=0;e0?n:-n)),i*(e/r)},_calculatePosition:function(t,e,r,s,a,o){var c=t-e;a&&(c+=Math.abs(a));var l=0;c&&(l=s/c,l=i.clamp01(l));var u=(r-o)*l;return this.direction===n.VERTICAL?cc.v2(0,u):cc.v2(u,0)},_updateLength:function(t){if(this.handle){var e=this.handle.node,i=e.getContentSize();e.setAnchorPoint(cc.v2(0,0)),this.direction===n.HORIZONTAL?e.setContentSize(t,i.height):e.setContentSize(i.width,t)}},_processAutoHide:function(t){if(this.enableAutoHide&&!(this._autoHideRemainingTime<=0)&&!this._touching&&(this._autoHideRemainingTime-=t,this._autoHideRemainingTime<=this.autoHideTime)){this._autoHideRemainingTime=Math.max(0,this._autoHideRemainingTime);var e=this._opacity*(this._autoHideRemainingTime/this.autoHideTime);this._setOpacity(e)}},start:function(){this.enableAutoHide&&this._setOpacity(0)},hide:function(){this._autoHideRemainingTime=0,this._setOpacity(0)},show:function(){this._autoHideRemainingTime=this.autoHideTime,this._setOpacity(this._opacity)},update:function(t){this._processAutoHide(t)}});cc.Scrollbar=e.exports=r}),{"../utils/misc":235,"./CCComponent":102}],112:[(function(t,e){"use strict";var i=t("../CCNode").EventType,n=cc.v2(),r=cc.v2(),s=function(){return(new Date).getMilliseconds()},a=cc.Enum({SCROLL_TO_TOP:0,SCROLL_TO_BOTTOM:1,SCROLL_TO_LEFT:2,SCROLL_TO_RIGHT:3,SCROLLING:4,BOUNCE_TOP:5,BOUNCE_BOTTOM:6,BOUNCE_LEFT:7,BOUNCE_RIGHT:8,SCROLL_ENDED:9,TOUCH_UP:10,AUTOSCROLL_ENDED_WITH_THRESHOLD:11,SCROLL_BEGAN:12}),o={"scroll-to-top":a.SCROLL_TO_TOP,"scroll-to-bottom":a.SCROLL_TO_BOTTOM,"scroll-to-left":a.SCROLL_TO_LEFT,"scroll-to-right":a.SCROLL_TO_RIGHT,scrolling:a.SCROLLING,"bounce-bottom":a.BOUNCE_BOTTOM,"bounce-left":a.BOUNCE_LEFT,"bounce-right":a.BOUNCE_RIGHT,"bounce-top":a.BOUNCE_TOP,"scroll-ended":a.SCROLL_ENDED,"touch-up":a.TOUCH_UP,"scroll-ended-with-threshold":a.AUTOSCROLL_ENDED_WITH_THRESHOLD,"scroll-began":a.SCROLL_BEGAN},c=cc.Class({name:"cc.ScrollView",extends:t("./CCViewGroup"),editor:!1,ctor:function(){this._topBoundary=0,this._bottomBoundary=0,this._leftBoundary=0,this._rightBoundary=0,this._touchMoveDisplacements=[],this._touchMoveTimeDeltas=[],this._touchMovePreviousTimestamp=0,this._touchMoved=!1,this._autoScrolling=!1,this._autoScrollAttenuate=!1,this._autoScrollStartPosition=cc.v2(0,0),this._autoScrollTargetDelta=cc.v2(0,0),this._autoScrollTotalTime=0,this._autoScrollAccumulatedTime=0,this._autoScrollCurrentlyOutOfBoundary=!1,this._autoScrollBraking=!1,this._autoScrollBrakingStartPosition=cc.v2(0,0),this._outOfBoundaryAmount=cc.v2(0,0),this._outOfBoundaryAmountDirty=!0,this._stopMouseWheel=!1,this._mouseWheelEventElapsedTime=0,this._isScrollEndedWithThresholdEventFired=!1,this._scrollEventEmitMask=0,this._isBouncing=!1,this._scrolling=!1},properties:{content:{default:void 0,type:cc.Node,tooltip:!1,formerlySerializedAs:"content",notify:function(){this._calculateBoundary()}},horizontal:{default:!0,animatable:!1,tooltip:!1},vertical:{default:!0,animatable:!1,tooltip:!1},inertia:{default:!0,tooltip:!1},brake:{default:.5,type:cc.Float,range:[0,1,.1],tooltip:!1},elastic:{default:!0,animatable:!1,tooltip:!1},bounceDuration:{default:1,range:[0,10],tooltip:!1},horizontalScrollBar:{default:void 0,type:cc.Scrollbar,tooltip:!1,notify:function(){this.horizontalScrollBar&&(this.horizontalScrollBar.setTargetScrollView(this),this._updateScrollBar(0))},animatable:!1},verticalScrollBar:{default:void 0,type:cc.Scrollbar,tooltip:!1,notify:function(){this.verticalScrollBar&&(this.verticalScrollBar.setTargetScrollView(this),this._updateScrollBar(0))},animatable:!1},scrollEvents:{default:[],type:cc.Component.EventHandler,tooltip:!1},cancelInnerEvents:{default:!0,animatable:!1,tooltip:!1},_view:{get:function(){if(this.content)return this.content.parent}}},statics:{EventType:a},scrollToBottom:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,0),applyToHorizontal:!1,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i,!0)},scrollToTop:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,1),applyToHorizontal:!1,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToLeft:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,0),applyToHorizontal:!0,applyToVertical:!1});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToRight:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(1,0),applyToHorizontal:!0,applyToVertical:!1});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToTopLeft:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,1),applyToHorizontal:!0,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToTopRight:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(1,1),applyToHorizontal:!0,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToBottomLeft:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,0),applyToHorizontal:!0,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToBottomRight:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(1,0),applyToHorizontal:!0,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToOffset:function(t,e,i){var n=this.getMaxScrollOffset(),r=cc.v2(0,0);0===n.x?r.x=0:r.x=t.x/n.x,0===n.y?r.y=1:r.y=(n.y-t.y)/n.y,this.scrollTo(r,e,i)},getScrollOffset:function(){var t=this._getContentTopBoundary()-this._topBoundary,e=this._getContentLeftBoundary()-this._leftBoundary;return cc.v2(e,t)},getMaxScrollOffset:function(){var t=this._view.getContentSize(),e=this.content.getContentSize(),i=e.width-t.width,n=e.height-t.height;return i=i>=0?i:0,n=n>=0?n:0,cc.v2(i,n)},scrollToPercentHorizontal:function(t,e,i){var n=this._calculateMovePercentDelta({anchor:cc.v2(t,0),applyToHorizontal:!0,applyToVertical:!1});e?this._startAutoScroll(n,e,!1!==i):this._moveContent(n)},scrollTo:function(t,e,i){var n=this._calculateMovePercentDelta({anchor:cc.v2(t),applyToHorizontal:!0,applyToVertical:!0});e?this._startAutoScroll(n,e,!1!==i):this._moveContent(n)},scrollToPercentVertical:function(t,e,i){var n=this._calculateMovePercentDelta({anchor:cc.v2(0,t),applyToHorizontal:!1,applyToVertical:!0});e?this._startAutoScroll(n,e,!1!==i):this._moveContent(n)},stopAutoScroll:function(){this._autoScrolling=!1,this._autoScrollAccumulatedTime=this._autoScrollTotalTime},setContentPosition:function(t){t.fuzzyEquals(this.getContentPosition(),1e-4)||(this.content.setPosition(t),this._outOfBoundaryAmountDirty=!0)},getContentPosition:function(){return this.content.getPosition()},isScrolling:function(){return this._scrolling},isAutoScrolling:function(){return this._autoScrolling},_registerEvent:function(){this.node.on(cc.Node.EventType.TOUCH_START,this._onTouchBegan,this,!0),this.node.on(cc.Node.EventType.TOUCH_MOVE,this._onTouchMoved,this,!0),this.node.on(cc.Node.EventType.TOUCH_END,this._onTouchEnded,this,!0),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this._onTouchCancelled,this,!0),this.node.on(cc.Node.EventType.MOUSE_WHEEL,this._onMouseWheel,this,!0)},_unregisterEvent:function(){this.node.off(cc.Node.EventType.TOUCH_START,this._onTouchBegan,this,!0),this.node.off(cc.Node.EventType.TOUCH_MOVE,this._onTouchMoved,this,!0),this.node.off(cc.Node.EventType.TOUCH_END,this._onTouchEnded,this,!0),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this._onTouchCancelled,this,!0),this.node.off(cc.Node.EventType.MOUSE_WHEEL,this._onMouseWheel,this,!0)},_onMouseWheel:function(t,e){if(this.enabledInHierarchy&&!this.hasNestedViewGroup(t,e)){var i=cc.v2(0,0),n=-.1;cc.sys.os===cc.sys.OS_WINDOWS&&cc.sys.browserType===cc.sys.BROWSER_TYPE_FIREFOX&&(n=-.1/3),this.vertical?i=cc.v2(0,t.getScrollY()*n):this.horizontal&&(i=cc.v2(t.getScrollY()*n,0)),this._mouseWheelEventElapsedTime=0,this._processDeltaMove(i),this._stopMouseWheel||(this._handlePressLogic(),this.schedule(this._checkMouseWheel,1/60),this._stopMouseWheel=!0),this._stopPropagationIfTargetIsMe(t)}},_checkMouseWheel:function(t){if(!this._getHowMuchOutOfBoundary().fuzzyEquals(cc.v2(0,0),1e-4))return this._processInertiaScroll(),this.unschedule(this._checkMouseWheel),this._dispatchEvent("scroll-ended"),void(this._stopMouseWheel=!1);this._mouseWheelEventElapsedTime+=t,this._mouseWheelEventElapsedTime>.1&&(this._onScrollBarTouchEnded(),this.unschedule(this._checkMouseWheel),this._dispatchEvent("scroll-ended"),this._stopMouseWheel=!1)},_calculateMovePercentDelta:function(t){var e=t.anchor,i=t.applyToHorizontal,n=t.applyToVertical;this._calculateBoundary(),e=e.clampf(cc.v2(0,0),cc.v2(1,1));var r=this._view.getContentSize(),s=this.content.getContentSize(),a=this._getContentBottomBoundary()-this._bottomBoundary;a=-a;var o=this._getContentLeftBoundary()-this._leftBoundary;o=-o;var c=cc.v2(0,0),l=0;return i&&(l=s.width-r.width,c.x=o-l*e.x),n&&(l=s.height-r.height,c.y=a-l*e.y),c},_moveContentToTopLeft:function(t){var e=this.content.getContentSize(),i=this._getContentBottomBoundary()-this._bottomBoundary;i=-i;var n=cc.v2(0,0),r=0,s=this._getContentLeftBoundary()-this._leftBoundary;s=-s,e.height7&&!this._touchMoved&&t.target!==this.node){var n=new cc.Event.EventTouch(t.getTouches(),t.bubbles);n.type=cc.Node.EventType.TOUCH_CANCEL,n.touch=t.touch,n.simulate=!0,t.target.dispatchEvent(n),this._touchMoved=!0}this._stopPropagationIfTargetIsMe(t)}}},_onTouchEnded:function(t,e){if(this.enabledInHierarchy&&!this.hasNestedViewGroup(t,e)){this._dispatchEvent("touch-up");var i=t.touch;this.content&&this._handleReleaseLogic(i),this._touchMoved?t.stopPropagation():this._stopPropagationIfTargetIsMe(t)}},_onTouchCancelled:function(t,e){if(this.enabledInHierarchy&&!this.hasNestedViewGroup(t,e)){if(!t.simulate){var i=t.touch;this.content&&this._handleReleaseLogic(i)}this._stopPropagationIfTargetIsMe(t)}},_processDeltaMove:function(t){this._scrollChildren(t),this._gatherTouchMove(t)},_getLocalAxisAlignDelta:function(t){return this.node.convertToNodeSpaceAR(t.getLocation(),n),this.node.convertToNodeSpaceAR(t.getPreviousLocation(),r),n.sub(r)},_handleMoveLogic:function(t){var e=this._getLocalAxisAlignDelta(t);this._processDeltaMove(e)},_scrollChildren:function(t){var e,i=t=this._clampDelta(t);this.elastic&&(e=this._getHowMuchOutOfBoundary(),i.x*=0===e.x?1:.5,i.y*=0===e.y?1:.5),this.elastic||(e=this._getHowMuchOutOfBoundary(i),i=i.add(e));var n="",r="";this.vertical&&(i.y>0?this.content.y-this.content.anchorY*this.content.height+i.y>=this._bottomBoundary&&(n="scroll-to-bottom"):i.y<0&&this.content.y-this.content.anchorY*this.content.height+this.content.height+i.y<=this._topBoundary&&(n="scroll-to-top")),this.horizontal&&(i.x<0?this.content.x-this.content.anchorX*this.content.width+this.content.width+i.x<=this._rightBoundary&&(r="scroll-to-right"):i.x>0&&this.content.x-this.content.anchorX*this.content.width+i.x>=this._leftBoundary&&(r="scroll-to-left")),this._moveContent(i,!1),(this.horizontal&&0!==i.x||this.vertical&&0!==i.y)&&(this._scrolling||(this._scrolling=!0,this._dispatchEvent("scroll-began")),this._dispatchEvent("scrolling")),""!==n&&this._dispatchEvent(n),""!==r&&this._dispatchEvent(r)},_handlePressLogic:function(){this._autoScrolling&&this._dispatchEvent("scroll-ended"),this._autoScrolling=!1,this._isBouncing=!1,this._touchMovePreviousTimestamp=s(),this._touchMoveDisplacements.length=0,this._touchMoveTimeDeltas.length=0,this._onScrollBarTouchBegan()},_clampDelta:function(t){var e=this.content.getContentSize(),i=this._view.getContentSize();return e.width=5;)this._touchMoveDisplacements.shift(),this._touchMoveTimeDeltas.shift();this._touchMoveDisplacements.push(t);var e=s();this._touchMoveTimeDeltas.push((e-this._touchMovePreviousTimestamp)/1e3),this._touchMovePreviousTimestamp=e},_startBounceBackIfNeeded:function(){if(!this.elastic)return!1;var t=this._getHowMuchOutOfBoundary();if((t=this._clampDelta(t)).fuzzyEquals(cc.v2(0,0),1e-4))return!1;var e=Math.max(this.bounceDuration,0);return this._startAutoScroll(t,e,!0),this._isBouncing||(t.y>0&&this._dispatchEvent("bounce-top"),t.y<0&&this._dispatchEvent("bounce-bottom"),t.x>0&&this._dispatchEvent("bounce-right"),t.x<0&&this._dispatchEvent("bounce-left"),this._isBouncing=!0),!0},_processInertiaScroll:function(){if(!this._startBounceBackIfNeeded()&&this.inertia){var t=this._calculateTouchMoveVelocity();!t.fuzzyEquals(cc.v2(0,0),1e-4)&&this.brake<1&&this._startInertiaScroll(t)}this._onScrollBarTouchEnded()},_handleReleaseLogic:function(t){var e=this._getLocalAxisAlignDelta(t);this._gatherTouchMove(e),this._processInertiaScroll(),this._scrolling&&(this._scrolling=!1,this._autoScrolling||this._dispatchEvent("scroll-ended"))},_isOutOfBoundary:function(){return!this._getHowMuchOutOfBoundary().fuzzyEquals(cc.v2(0,0),1e-4)},_isNecessaryAutoScrollBrake:function(){if(this._autoScrollBraking)return!0;if(this._isOutOfBoundary()){if(!this._autoScrollCurrentlyOutOfBoundary)return this._autoScrollCurrentlyOutOfBoundary=!0,this._autoScrollBraking=!0,this._autoScrollBrakingStartPosition=this.getContentPosition(),!0}else this._autoScrollCurrentlyOutOfBoundary=!1;return!1},getScrollEndedEventTiming:function(){return 1e-4},_processAutoScrolling:function(t){var e=this._isNecessaryAutoScrollBrake(),i=e?.05:1;this._autoScrollAccumulatedTime+=t*(1/i);var n,r=Math.min(1,this._autoScrollAccumulatedTime/this._autoScrollTotalTime);this._autoScrollAttenuate&&(n=r,r=(n-=1)*n*n*n*n+1);var s=this._autoScrollStartPosition.add(this._autoScrollTargetDelta.mul(r)),a=Math.abs(r-1)<=1e-4;if(Math.abs(r-1)<=this.getScrollEndedEventTiming()&&!this._isScrollEndedWithThresholdEventFired&&(this._dispatchEvent("scroll-ended-with-threshold"),this._isScrollEndedWithThresholdEventFired=!0),this.elastic){var o=s.sub(this._autoScrollBrakingStartPosition);e&&(o=o.mul(i)),s=this._autoScrollBrakingStartPosition.add(o)}else{var c=s.sub(this.getContentPosition()),l=this._getHowMuchOutOfBoundary(c);l.fuzzyEquals(cc.v2(0,0),1e-4)||(s=s.add(l),a=!0)}a&&(this._autoScrolling=!1);var u=s.sub(this.getContentPosition());this._moveContent(this._clampDelta(u),a),this._dispatchEvent("scrolling"),this._autoScrolling||(this._isBouncing=!1,this._scrolling=!1,this._dispatchEvent("scroll-ended"))},_startInertiaScroll:function(t){var e=t.mul(.7);this._startAttenuatingAutoScroll(e,t)},_calculateAttenuatedFactor:function(t){return this.brake<=0?1-this.brake:(1-this.brake)*(1/(1+14e-6*t+t*t*8e-9))},_startAttenuatingAutoScroll:function(t,e){var i=this._calculateAutoScrollTimeByInitalSpeed(e.mag()),n=t.normalize(),r=this.content.getContentSize(),s=this._view.getContentSize(),a=r.width-s.width,o=r.height-s.height,c=this._calculateAttenuatedFactor(a),l=this._calculateAttenuatedFactor(o);n=cc.v2(n.x*a*(1-this.brake)*c,n.y*o*l*(1-this.brake));var u=t.mag(),h=n.mag()/u;n=n.add(t),this.brake>0&&h>7&&(h=Math.sqrt(h),n=t.mul(h).add(t)),this.brake>0&&h>3&&(i*=h=3),0===this.brake&&h>1&&(i*=h),this._startAutoScroll(n,i,!0)},_calculateAutoScrollTimeByInitalSpeed:function(t){return Math.sqrt(Math.sqrt(t/5))},_startAutoScroll:function(t,e,i){var n=this._flattenVectorByDirection(t);this._autoScrolling=!0,this._autoScrollTargetDelta=n,this._autoScrollAttenuate=i,this._autoScrollStartPosition=this.getContentPosition(),this._autoScrollTotalTime=e,this._autoScrollAccumulatedTime=0,this._autoScrollBraking=!1,this._isScrollEndedWithThresholdEventFired=!1,this._autoScrollBrakingStartPosition=cc.v2(0,0),this._getHowMuchOutOfBoundary().fuzzyEquals(cc.v2(0,0),1e-4)||(this._autoScrollCurrentlyOutOfBoundary=!0)},_calculateTouchMoveVelocity:function(){var t=0;if((t=this._touchMoveTimeDeltas.reduce((function(t,e){return t+e}),t))<=0||t>=.5)return cc.v2(0,0);var e=cc.v2(0,0);return e=this._touchMoveDisplacements.reduce((function(t,e){return t.add(e)}),e),cc.v2(e.x*(1-this.brake)/t,e.y*(1-this.brake)/t)},_flattenVectorByDirection:function(t){var e=t;return e.x=this.horizontal?e.x:0,e.y=this.vertical?e.y:0,e},_moveContent:function(t,e){var i=this._flattenVectorByDirection(t),n=this.getContentPosition().add(i);this.setContentPosition(n);var r=this._getHowMuchOutOfBoundary();this._updateScrollBar(r),this.elastic&&e&&this._startBounceBackIfNeeded()},_getContentLeftBoundary:function(){return this.getContentPosition().x-this.content.getAnchorPoint().x*this.content.getContentSize().width},_getContentRightBoundary:function(){var t=this.content.getContentSize();return this._getContentLeftBoundary()+t.width},_getContentTopBoundary:function(){var t=this.content.getContentSize();return this._getContentBottomBoundary()+t.height},_getContentBottomBoundary:function(){return this.getContentPosition().y-this.content.getAnchorPoint().y*this.content.getContentSize().height},_getHowMuchOutOfBoundary:function(t){if((t=t||cc.v2(0,0)).fuzzyEquals(cc.v2(0,0),1e-4)&&!this._outOfBoundaryAmountDirty)return this._outOfBoundaryAmount;var e=cc.v2(0,0);return this._getContentLeftBoundary()+t.x>this._leftBoundary?e.x=this._leftBoundary-(this._getContentLeftBoundary()+t.x):this._getContentRightBoundary()+t.xthis._bottomBoundary&&(e.y=this._bottomBoundary-(this._getContentBottomBoundary()+t.y)),t.fuzzyEquals(cc.v2(0,0),1e-4)&&(this._outOfBoundaryAmount=e,this._outOfBoundaryAmountDirty=!1),this._clampDelta(e)},_updateScrollBarState:function(){if(this.content){var t=this.content.getContentSize(),e=this._view.getContentSize();this.verticalScrollBar&&(t.height0&&t[0].check()}},onEnable:function(){this._makeAtLeastOneToggleChecked(),this.node.on("child-added",this._allowOnlyOneToggleChecked,this),this.node.on("child-removed",this._makeAtLeastOneToggleChecked,this)},onDisable:function(){this.node.off("child-added",this._allowOnlyOneToggleChecked,this),this.node.off("child-removed",this._makeAtLeastOneToggleChecked,this)}});t("../platform/js").get(i.prototype,"toggleItems",(function(){return this.node._children.map((function(t){return t.getComponent(cc.Toggle)})).filter(Boolean)})),cc.ToggleContainer=e.exports=i}),{"../platform/js":182}],118:[(function(t,e){"use strict";var i=cc.Class({name:"cc.ToggleGroup",extends:cc.Component,ctor:function(){this._toggleItems=[]},editor:!1,properties:{allowSwitchOff:{tooltip:!1,default:!1},toggleItems:{get:function(){return this._toggleItems}}},updateToggles:function(t){this.enabledInHierarchy&&this._toggleItems.forEach((function(e){t.isChecked&&e!==t&&e.isChecked&&e.enabled&&e._hideCheckMark()}))},addToggle:function(t){-1===this._toggleItems.indexOf(t)&&this._toggleItems.push(t),this._allowOnlyOneToggleChecked()},removeToggle:function(t){var e=this._toggleItems.indexOf(t);e>-1&&this._toggleItems.splice(e,1),this._makeAtLeastOneToggleChecked()},_allowOnlyOneToggleChecked:function(){var t=!1;return this._toggleItems.forEach((function(e){t&&e.enabled&&e._hideCheckMark(),e.isChecked&&e.enabled&&(t=!0)})),t},_makeAtLeastOneToggleChecked:function(){this._allowOnlyOneToggleChecked()||this.allowSwitchOff||this._toggleItems.length>0&&(this._toggleItems[0].isChecked=!0)},start:function(){this._makeAtLeastOneToggleChecked()}}),n=t("../platform/js"),r=!1;n.get(cc,"ToggleGroup",(function(){return r||(cc.errorID(1405,"cc.ToggleGroup","cc.ToggleContainer"),r=!0),i})),e.exports=i}),{"../platform/js":182}],119:[(function(t,e){"use strict";var i=cc.Class({name:"cc.ViewGroup",extends:t("./CCComponent")});cc.ViewGroup=e.exports=i}),{"./CCComponent":102}],120:[(function(t,e){"use strict";var i=t("../base-ui/CCWidgetManager"),n=i.AlignMode,r=i._AlignFlags,s=r.TOP,a=r.MID,o=r.BOT,c=r.LEFT,l=r.CENTER,u=r.RIGHT,h=s|o,f=c|u,d=cc.Class({name:"cc.Widget",extends:t("./CCComponent"),editor:!1,properties:{target:{get:function(){return this._target},set:function(t){this._target=t},type:cc.Node,tooltip:!1},isAlignTop:{get:function(){return(this._alignFlags&s)>0},set:function(t){this._setAlign(s,t)},animatable:!1,tooltip:!1},isAlignVerticalCenter:{get:function(){return(this._alignFlags&a)>0},set:function(t){t?(this.isAlignTop=!1,this.isAlignBottom=!1,this._alignFlags|=a):this._alignFlags&=~a},animatable:!1,tooltip:!1},isAlignBottom:{get:function(){return(this._alignFlags&o)>0},set:function(t){this._setAlign(o,t)},animatable:!1,tooltip:!1},isAlignLeft:{get:function(){return(this._alignFlags&c)>0},set:function(t){this._setAlign(c,t)},animatable:!1,tooltip:!1},isAlignHorizontalCenter:{get:function(){return(this._alignFlags&l)>0},set:function(t){t?(this.isAlignLeft=!1,this.isAlignRight=!1,this._alignFlags|=l):this._alignFlags&=~l},animatable:!1,tooltip:!1},isAlignRight:{get:function(){return(this._alignFlags&u)>0},set:function(t){this._setAlign(u,t)},animatable:!1,tooltip:!1},isStretchWidth:{get:function(){return(this._alignFlags&f)===f},visible:!1},isStretchHeight:{get:function(){return(this._alignFlags&h)===h},visible:!1},top:{get:function(){return this._top},set:function(t){this._top=t},tooltip:!1},bottom:{get:function(){return this._bottom},set:function(t){this._bottom=t},tooltip:!1},left:{get:function(){return this._left},set:function(t){this._left=t},tooltip:!1},right:{get:function(){return this._right},set:function(t){this._right=t},tooltip:!1},horizontalCenter:{get:function(){return this._horizontalCenter},set:function(t){this._horizontalCenter=t},tooltip:!1},verticalCenter:{get:function(){return this._verticalCenter},set:function(t){this._verticalCenter=t},tooltip:!1},isAbsoluteHorizontalCenter:{get:function(){return this._isAbsHorizontalCenter},set:function(t){this._isAbsHorizontalCenter=t},animatable:!1},isAbsoluteVerticalCenter:{get:function(){return this._isAbsVerticalCenter},set:function(t){this._isAbsVerticalCenter=t},animatable:!1},isAbsoluteTop:{get:function(){return this._isAbsTop},set:function(t){this._isAbsTop=t},animatable:!1},isAbsoluteBottom:{get:function(){return this._isAbsBottom},set:function(t){this._isAbsBottom=t},animatable:!1},isAbsoluteLeft:{get:function(){return this._isAbsLeft},set:function(t){this._isAbsLeft=t},animatable:!1},isAbsoluteRight:{get:function(){return this._isAbsRight},set:function(t){this._isAbsRight=t},animatable:!1},alignMode:{default:n.ON_WINDOW_RESIZE,type:n,tooltip:!1},_wasAlignOnce:{default:void 0,formerlySerializedAs:"isAlignOnce"},_target:null,_alignFlags:0,_left:0,_right:0,_top:0,_bottom:0,_verticalCenter:0,_horizontalCenter:0,_isAbsLeft:!0,_isAbsRight:!0,_isAbsTop:!0,_isAbsBottom:!0,_isAbsHorizontalCenter:!0,_isAbsVerticalCenter:!0,_originalWidth:0,_originalHeight:0},statics:{AlignMode:n},onLoad:function(){void 0!==this._wasAlignOnce&&(this.alignMode=this._wasAlignOnce?n.ONCE:n.ALWAYS,this._wasAlignOnce=void 0)},onEnable:function(){i.add(this)},onDisable:function(){i.remove(this)},_validateTargetInDEV:!1,_setAlign:function(t,e){if(e!==(this._alignFlags&t)>0){var i=(t&f)>0;e?(this._alignFlags|=t,i?(this.isAlignHorizontalCenter=!1,this.isStretchWidth&&(this._originalWidth=this.node.width)):(this.isAlignVerticalCenter=!1,this.isStretchHeight&&(this._originalHeight=this.node.height))):(i?this.isStretchWidth&&(this.node.width=this._originalWidth):this.isStretchHeight&&(this.node.height=this._originalHeight),this._alignFlags&=~t)}},updateAlignment:function(){i.updateAlignment(this.node)}});Object.defineProperty(d.prototype,"isAlignOnce",{get:function(){return this.alignMode===n.ONCE},set:function(t){this.alignMode=t?n.ONCE:n.ALWAYS}}),cc.Widget=e.exports=d}),{"../base-ui/CCWidgetManager":86,"./CCComponent":102}],121:[(function(t,e){"use strict";var i=t("../../platform/CCMacro"),n=t("../editbox/EditBoxImplBase"),r=t("../CCLabel"),s=t("./types"),a=s.InputMode,o=s.InputFlag,c=s.KeyboardReturnType;function l(t){return t.charAt(0).toUpperCase()+t.slice(1)}var u=cc.Class({name:"cc.EditBox",extends:cc.Component,editor:!1,properties:{_string:"",string:{tooltip:!1,get:function(){return this._string},set:function(t){t=""+t,this.maxLength>=0&&t.length>=this.maxLength&&(t=t.slice(0,this.maxLength)),this._string=t,this._updateString(t)}},textLabel:{tooltip:!1,default:null,type:r,notify:function(t){this.textLabel&&this.textLabel!==t&&(this._updateTextLabel(),this._updateLabels())}},placeholderLabel:{tooltip:!1,default:null,type:r,notify:function(t){this.placeholderLabel&&this.placeholderLabel!==t&&(this._updatePlaceholderLabel(),this._updateLabels())}},background:{tooltip:!1,default:null,type:cc.Sprite,notify:function(t){this.background&&this.background!==t&&this._updateBackgroundSprite()}},_N$backgroundImage:{default:void 0,type:cc.SpriteFrame},backgroundImage:{get:function(){return this.background?this.background.spriteFrame:null},set:function(t){this.background&&(this.background.spriteFrame=t)}},returnType:{default:c.DEFAULT,tooltip:!1,displayName:"KeyboardReturnType",type:c},_N$returnType:{default:void 0,type:cc.Float},inputFlag:{tooltip:!1,default:o.DEFAULT,type:o,notify:function(){this._updateString(this._string)}},inputMode:{tooltip:!1,default:a.ANY,type:a,notify:function(t){this.inputMode!==t&&(this._updateTextLabel(),this._updatePlaceholderLabel())}},fontSize:{get:function(){return this.textLabel?this.textLabel.fontSize:0},set:function(t){this.textLabel&&(this.textLabel.fontSize=t)}},_N$fontSize:{default:void 0,type:cc.Float},lineHeight:{get:function(){return this.textLabel?this.textLabel.lineHeight:0},set:function(t){this.textLabel&&(this.textLabel.lineHeight=t)}},_N$lineHeight:{default:void 0,type:cc.Float},fontColor:{get:function(){return this.textLabel?this.textLabel.node.color:cc.Color.BLACK},set:function(t){this.textLabel&&(this.textLabel.node.color=t,this.textLabel.node.opacity=t.a)}},_N$fontColor:void 0,placeholder:{tooltip:!1,get:function(){return this.placeholderLabel?this.placeholderLabel.string:""},set:function(t){this.placeholderLabel&&(this.placeholderLabel.string=t)}},_N$placeholder:{default:void 0,type:cc.String},placeholderFontSize:{get:function(){return this.placeholderLabel?this.placeholderLabel.fontSize:0},set:function(t){this.placeholderLabel&&(this.placeholderLabel.fontSize=t)}},_N$placeholderFontSize:{default:void 0,type:cc.Float},placeholderFontColor:{get:function(){return this.placeholderLabel?this.placeholderLabel.node.color:cc.Color.BLACK},set:function(t){this.placeholderLabel&&(this.placeholderLabel.node.color=t,this.placeholderLabel.node.opacity=t.a)}},_N$placeholderFontColor:void 0,maxLength:{tooltip:!1,default:20},_N$maxLength:{default:void 0,type:cc.Float},stayOnTop:{default:!1,notify:function(){cc.warn("editBox.stayOnTop is removed since v2.1.")}},_tabIndex:0,tabIndex:{tooltip:!1,get:function(){return this._tabIndex},set:function(t){this._tabIndex!==t&&(this._tabIndex=t,this._impl&&this._impl.setTabIndex(t))}},editingDidBegan:{default:[],type:cc.Component.EventHandler},textChanged:{default:[],type:cc.Component.EventHandler},editingDidEnded:{default:[],type:cc.Component.EventHandler},editingReturn:{default:[],type:cc.Component.EventHandler}},statics:{_ImplClass:n,KeyboardReturnType:c,InputFlag:o,InputMode:a},_init:function(){this._upgradeComp(),this._isLabelVisible=!0,this.node.on(cc.Node.EventType.SIZE_CHANGED,this._syncSize,this),(this._impl=new u._ImplClass).init(this),this._updateString(this._string),this._syncSize()},_updateBackgroundSprite:function(){var t=this.background;if(!t){var e=this.node.getChildByName("BACKGROUND_SPRITE");e||(e=new cc.Node("BACKGROUND_SPRITE")),(t=e.getComponent(cc.Sprite))||(t=e.addComponent(cc.Sprite)),e.parent=this.node,this.background=t}t.type=cc.Sprite.Type.SLICED,void 0!==this._N$backgroundImage&&(t.spriteFrame=this._N$backgroundImage,this._N$backgroundImage=void 0)},_updateTextLabel:function(){var t=this.textLabel;if(!t){var e=this.node.getChildByName("TEXT_LABEL");e||(e=new cc.Node("TEXT_LABEL")),(t=e.getComponent(r))||(t=e.addComponent(r)),e.parent=this.node,this.textLabel=t}t.node.setAnchorPoint(0,1),t.overflow=r.Overflow.CLAMP,this.inputMode===a.ANY?(t.verticalAlign=i.VerticalTextAlignment.TOP,t.enableWrapText=!0):(t.verticalAlign=i.VerticalTextAlignment.CENTER,t.enableWrapText=!1),t.string=this._updateLabelStringStyle(this._string),void 0!==this._N$fontColor&&(t.node.color=this._N$fontColor,t.node.opacity=this._N$fontColor.a,this._N$fontColor=void 0),void 0!==this._N$fontSize&&(t.fontSize=this._N$fontSize,this._N$fontSize=void 0),void 0!==this._N$lineHeight&&(t.lineHeight=this._N$lineHeight,this._N$lineHeight=void 0)},_updatePlaceholderLabel:function(){var t=this.placeholderLabel;if(!t){var e=this.node.getChildByName("PLACEHOLDER_LABEL");e||(e=new cc.Node("PLACEHOLDER_LABEL")),(t=e.getComponent(r))||(t=e.addComponent(r)),e.parent=this.node,this.placeholderLabel=t}t.node.setAnchorPoint(0,1),t.overflow=r.Overflow.CLAMP,this.inputMode===a.ANY?(t.verticalAlign=i.VerticalTextAlignment.TOP,t.enableWrapText=!0):(t.verticalAlign=i.VerticalTextAlignment.CENTER,t.enableWrapText=!1),t.string=this.placeholder,void 0!==this._N$placeholderFontColor&&(t.node.color=this._N$placeholderFontColor,t.node.opacity=this._N$placeholderFontColor.a,this._N$placeholderFontColor=void 0),void 0!==this._N$placeholderFontSize&&(t.fontSize=this._N$placeholderFontSize,this._N$placeholderFontSize=void 0)},_upgradeComp:function(){void 0!==this._N$returnType&&(this.returnType=this._N$returnType,this._N$returnType=void 0),void 0!==this._N$maxLength&&(this.maxLength=this._N$maxLength,this._N$maxLength=void 0),void 0!==this._N$backgroundImage&&this._updateBackgroundSprite(),void 0===this._N$fontColor&&void 0===this._N$fontSize&&void 0===this._N$lineHeight||this._updateTextLabel(),void 0===this._N$placeholderFontColor&&void 0===this._N$placeholderFontSize||this._updatePlaceholderLabel(),void 0!==this._N$placeholder&&(this.placeholder=this._N$placeholder,this._N$placeholder=void 0)},_syncSize:function(){if(this._impl){var t=this.node.getContentSize();this._impl.setSize(t.width,t.height)}},_showLabels:function(){this._isLabelVisible=!0,this._updateLabels()},_hideLabels:function(){this._isLabelVisible=!1,this.textLabel&&(this.textLabel.node.active=!1),this.placeholderLabel&&(this.placeholderLabel.node.active=!1)},_updateLabels:function(){if(this._isLabelVisible){var t=this._string;this.textLabel&&(this.textLabel.node.active=""!==t),this.placeholderLabel&&(this.placeholderLabel.node.active=""===t)}},_updateString:function(t){var e=this.textLabel;if(e){var i=t;i&&(i=this._updateLabelStringStyle(i)),e.string=i,this._updateLabels()}},_updateLabelStringStyle:function(t,e){var i=this.inputFlag;if(e||i!==o.PASSWORD)i===o.INITIAL_CAPS_ALL_CHARACTERS?t=t.toUpperCase():i===o.INITIAL_CAPS_WORD?t=t.replace(/(?:^|\s)\S/g,(function(t){return t.toUpperCase()})):i===o.INITIAL_CAPS_SENTENCE&&(t=l(t));else{for(var n="",r=t.length,s=0;s=0&&(e.value=e.value.slice(0,n)),t._delegate.editBoxTextChanged(e.value)}},n.onClick=function(){t._editing&&cc.sys.isMobile&&t._adjustWindowScroll()},n.onKeydown=function(i){i.keyCode===r.KEY.enter?(i.stopPropagation(),t._delegate.editBoxEditingReturn(),t._isTextArea||e.blur()):i.keyCode===r.KEY.tab&&(i.stopPropagation(),i.preventDefault(),o.next(t))},n.onBlur=function(){cc.sys.isMobile&&i&&n.compositionEnd(),t._editing=!1,v=null,t._hideDom(),t._delegate.editBoxEditingDidEnded()},e.addEventListener("compositionstart",n.compositionStart),e.addEventListener("compositionend",n.compositionEnd),e.addEventListener("input",n.onInput),e.addEventListener("keydown",n.onKeydown),e.addEventListener("blur",n.onBlur),e.addEventListener("touchstart",n.onClick)},_removeEventListeners:function(){var t=this._elem,e=this._eventListeners;t.removeEventListener("compositionstart",e.compositionStart),t.removeEventListener("compositionend",e.compositionEnd),t.removeEventListener("input",e.onInput),t.removeEventListener("keydown",e.onKeydown),t.removeEventListener("blur",e.onBlur),t.removeEventListener("touchstart",e.onClick),e.compositionStart=null,e.compositionEnd=null,e.onInput=null,e.onKeydown=null,e.onBlur=null,e.onClick=null}})}),{"../../platform/CCMacro":166,"../../platform/utils":185,"../../value-types/mat4":252,"../CCLabel":104,"./tabIndexUtil":124,"./types":125}],124:[(function(t,e){"use strict";e.exports={_tabIndexList:[],add:function(t){var e=this._tabIndexList;-1===e.indexOf(t)&&e.push(t)},remove:function(t){var e=this._tabIndexList,i=e.indexOf(t);-1!==i&&e.splice(i,1)},resort:function(){this._tabIndexList.sort((function(t,e){return t._delegate._tabIndex-e._delegate._tabIndex}))},next:function(t){var e=this._tabIndexList,i=e.indexOf(t);if(t.setFocus(!1),-1!==i){var n=e[i+1];n&&n._delegate._tabIndex>=0&&n.setFocus(!0)}}}}),{}],125:[(function(t,e){"use strict";var i=cc.Enum({DEFAULT:0,DONE:1,SEND:2,SEARCH:3,GO:4,NEXT:5}),n=cc.Enum({ANY:0,EMAIL_ADDR:1,NUMERIC:2,PHONE_NUMBER:3,URL:4,DECIMAL:5,SINGLE_LINE:6}),r=cc.Enum({PASSWORD:0,SENSITIVE:1,INITIAL_CAPS_WORD:2,INITIAL_CAPS_SENTENCE:3,INITIAL_CAPS_ALL_CHARACTERS:4,DEFAULT:5});e.exports={KeyboardReturnType:i,InputMode:n,InputFlag:r}}),{}],126:[(function(t,e){"use strict";t("./CCComponent"),t("./CCComponentEventHandler"),t("./missing-script");var i=t("./SubContextView");i||(i=cc.Class({name:"cc.SubContextView",extends:cc.Component}),cc.SubContextView=cc.WXSubContextView=cc.SwanSubContextView=i);var n=[t("./CCSprite"),t("./CCWidget"),t("./CCCanvas"),t("./CCAudioSource"),t("./CCAnimation"),t("./CCButton"),t("./CCLabel"),t("./CCProgressBar"),t("./CCMask"),t("./CCScrollBar"),t("./CCScrollView"),t("./CCPageViewIndicator"),t("./CCPageView"),t("./CCSlider"),t("./CCLayout"),t("./editbox/CCEditBox"),t("./CCLabelOutline"),t("./CCLabelShadow"),t("./CCRichText"),t("./CCToggleContainer"),t("./CCToggleGroup"),t("./CCToggle"),t("./CCBlockInputEvents"),t("./CCMotionStreak"),t("./CCSafeArea"),i];e.exports=n}),{"./CCAnimation":97,"./CCAudioSource":98,"./CCBlockInputEvents":99,"./CCButton":100,"./CCCanvas":101,"./CCComponent":102,"./CCComponentEventHandler":103,"./CCLabel":104,"./CCLabelOutline":void 0,"./CCLabelShadow":void 0,"./CCLayout":105,"./CCMask":106,"./CCMotionStreak":107,"./CCPageView":void 0,"./CCPageViewIndicator":void 0,"./CCProgressBar":108,"./CCRichText":void 0,"./CCSafeArea":110,"./CCScrollBar":111,"./CCScrollView":112,"./CCSlider":113,"./CCSprite":114,"./CCToggle":116,"./CCToggleContainer":117,"./CCToggleGroup":118,"./CCWidget":120,"./SubContextView":void 0,"./editbox/CCEditBox":121,"./missing-script":127}],127:[(function(t,e){"use strict";var i=cc.js,n=cc.Class({name:"cc.MissingScript",extends:cc.Component,editor:{inspector:"packages://inspector/inspectors/comps/missing-script.js"},properties:{compiled:{default:!1,serializable:!1},_$erialized:{default:null,visible:!1,editorOnly:!0}},ctor:!1,statics:{safeFindClass:function(t){return i._getClassById(t)||(cc.deserialize.reportMissingClass(t),n)}},onLoad:function(){cc.warnID(4600,this.node.name)}});cc._MissingScript=e.exports=n}),{}],128:[(function(t,e){"use strict";var i=cc.js;t("../event/event");var n=function(t,e){cc.Event.call(this,cc.Event.MOUSE,e),this._eventType=t,this._button=0,this._x=0,this._y=0,this._prevX=0,this._prevY=0,this._scrollX=0,this._scrollY=0};i.extend(n,cc.Event);var r=n.prototype;r.setScrollData=function(t,e){this._scrollX=t,this._scrollY=e},r.getScrollX=function(){return this._scrollX},r.getScrollY=function(){return this._scrollY},r.setLocation=function(t,e){this._x=t,this._y=e},r.getLocation=function(){return cc.v2(this._x,this._y)},r.getLocationInView=function(){return cc.v2(this._x,cc.view._designResolutionSize.height-this._y)},r._setPrevCursor=function(t,e){this._prevX=t,this._prevY=e},r.getPreviousLocation=function(){return cc.v2(this._prevX,this._prevY)},r.getDelta=function(){return cc.v2(this._x-this._prevX,this._y-this._prevY)},r.getDeltaX=function(){return this._x-this._prevX},r.getDeltaY=function(){return this._y-this._prevY},r.setButton=function(t){this._button=t},r.getButton=function(){return this._button},r.getLocationX=function(){return this._x},r.getLocationY=function(){return this._y},n.NONE=0,n.DOWN=1,n.UP=2,n.MOVE=3,n.SCROLL=4,n.BUTTON_LEFT=0,n.BUTTON_RIGHT=2,n.BUTTON_MIDDLE=1,n.BUTTON_4=3,n.BUTTON_5=4,n.BUTTON_6=5,n.BUTTON_7=6,n.BUTTON_8=7;var s=function(t,e){cc.Event.call(this,cc.Event.TOUCH,e),this._eventCode=0,this._touches=t||[],this.touch=null,this.currentTouch=null};i.extend(s,cc.Event),(r=s.prototype).getEventCode=function(){return this._eventCode},r.getTouches=function(){return this._touches},r._setEventCode=function(t){this._eventCode=t},r._setTouches=function(t){this._touches=t},r.setLocation=function(t,e){this.touch&&this.touch.setTouchInfo(this.touch.getID(),t,e)},r.getLocation=function(){return this.touch?this.touch.getLocation():cc.v2()},r.getLocationInView=function(){return this.touch?this.touch.getLocationInView():cc.v2()},r.getPreviousLocation=function(){return this.touch?this.touch.getPreviousLocation():cc.v2()},r.getStartLocation=function(){return this.touch?this.touch.getStartLocation():cc.v2()},r.getID=function(){return this.touch?this.touch.getID():null},r.getDelta=function(){return this.touch?this.touch.getDelta():cc.v2()},r.getDeltaX=function(){return this.touch?this.touch.getDelta().x:0},r.getDeltaY=function(){return this.touch?this.touch.getDelta().y:0},r.getLocationX=function(){return this.touch?this.touch.getLocationX():0},r.getLocationY=function(){return this.touch?this.touch.getLocationY():0},s.MAX_TOUCHES=5,s.BEGAN=0,s.MOVED=1,s.ENDED=2,s.CANCELED=3;var a=function(t,e){cc.Event.call(this,cc.Event.ACCELERATION,e),this.acc=t};i.extend(a,cc.Event);var o=function(t,e,i){cc.Event.call(this,cc.Event.KEYBOARD,i),this.keyCode=t,this.isPressed=e};i.extend(o,cc.Event),cc.Event.EventMouse=n,cc.Event.EventTouch=s,cc.Event.EventAcceleration=a,cc.Event.EventKeyboard=o,e.exports=cc.Event}),{"../event/event":135}],129:[(function(t,e){"use strict";var i=t("../platform/js");cc.EventListener=function(t,e,i){this._onEvent=i,this._type=t||0,this._listenerID=e||"",this._registered=!1,this._fixedPriority=0,this._node=null,this._target=null,this._paused=!0,this._isEnabled=!0},cc.EventListener.prototype={constructor:cc.EventListener,_setPaused:function(t){this._paused=t},_isPaused:function(){return this._paused},_setRegistered:function(t){this._registered=t},_isRegistered:function(){return this._registered},_getType:function(){return this._type},_getListenerID:function(){return this._listenerID},_setFixedPriority:function(t){this._fixedPriority=t},_getFixedPriority:function(){return this._fixedPriority},_setSceneGraphPriority:function(t){this._target=t,this._node=t},_getSceneGraphPriority:function(){return this._node},checkAvailable:function(){return null!==this._onEvent},clone:function(){return null},setEnabled:function(t){this._isEnabled=t},isEnabled:function(){return this._isEnabled},retain:function(){},release:function(){}},cc.EventListener.UNKNOWN=0,cc.EventListener.TOUCH_ONE_BY_ONE=1,cc.EventListener.TOUCH_ALL_AT_ONCE=2,cc.EventListener.KEYBOARD=3,cc.EventListener.MOUSE=4,cc.EventListener.ACCELERATION=6,cc.EventListener.CUSTOM=8;var n=cc.EventListener.ListenerID={MOUSE:"__cc_mouse",TOUCH_ONE_BY_ONE:"__cc_touch_one_by_one",TOUCH_ALL_AT_ONCE:"__cc_touch_all_at_once",KEYBOARD:"__cc_keyboard",ACCELERATION:"__cc_acceleration"},r=function(t,e){this._onCustomEvent=e,cc.EventListener.call(this,cc.EventListener.CUSTOM,t,this._callback)};i.extend(r,cc.EventListener),i.mixin(r.prototype,{_onCustomEvent:null,_callback:function(t){null!==this._onCustomEvent&&this._onCustomEvent(t)},checkAvailable:function(){return cc.EventListener.prototype.checkAvailable.call(this)&&null!==this._onCustomEvent},clone:function(){return new r(this._listenerID,this._onCustomEvent)}});var s=function(){cc.EventListener.call(this,cc.EventListener.MOUSE,n.MOUSE,this._callback)};i.extend(s,cc.EventListener),i.mixin(s.prototype,{onMouseDown:null,onMouseUp:null,onMouseMove:null,onMouseScroll:null,_callback:function(t){var e=cc.Event.EventMouse;switch(t._eventType){case e.DOWN:this.onMouseDown&&this.onMouseDown(t);break;case e.UP:this.onMouseUp&&this.onMouseUp(t);break;case e.MOVE:this.onMouseMove&&this.onMouseMove(t);break;case e.SCROLL:this.onMouseScroll&&this.onMouseScroll(t)}},clone:function(){var t=new s;return t.onMouseDown=this.onMouseDown,t.onMouseUp=this.onMouseUp,t.onMouseMove=this.onMouseMove,t.onMouseScroll=this.onMouseScroll,t},checkAvailable:function(){return!0}});var a=function(){cc.EventListener.call(this,cc.EventListener.TOUCH_ONE_BY_ONE,n.TOUCH_ONE_BY_ONE,null),this._claimedTouches=[]};i.extend(a,cc.EventListener),i.mixin(a.prototype,{constructor:a,_claimedTouches:null,swallowTouches:!1,onTouchBegan:null,onTouchMoved:null,onTouchEnded:null,onTouchCancelled:null,setSwallowTouches:function(t){this.swallowTouches=t},isSwallowTouches:function(){return this.swallowTouches},clone:function(){var t=new a;return t.onTouchBegan=this.onTouchBegan,t.onTouchMoved=this.onTouchMoved,t.onTouchEnded=this.onTouchEnded,t.onTouchCancelled=this.onTouchCancelled,t.swallowTouches=this.swallowTouches,t},checkAvailable:function(){return!!this.onTouchBegan||(cc.logID(1801),!1)}});var o=function(){cc.EventListener.call(this,cc.EventListener.TOUCH_ALL_AT_ONCE,n.TOUCH_ALL_AT_ONCE,null)};i.extend(o,cc.EventListener),i.mixin(o.prototype,{constructor:o,onTouchesBegan:null,onTouchesMoved:null,onTouchesEnded:null,onTouchesCancelled:null,clone:function(){var t=new o;return t.onTouchesBegan=this.onTouchesBegan,t.onTouchesMoved=this.onTouchesMoved,t.onTouchesEnded=this.onTouchesEnded,t.onTouchesCancelled=this.onTouchesCancelled,t},checkAvailable:function(){return null!==this.onTouchesBegan||null!==this.onTouchesMoved||null!==this.onTouchesEnded||null!==this.onTouchesCancelled||(cc.logID(1802),!1)}});var c=function(t){this._onAccelerationEvent=t,cc.EventListener.call(this,cc.EventListener.ACCELERATION,n.ACCELERATION,this._callback)};i.extend(c,cc.EventListener),i.mixin(c.prototype,{constructor:c,_onAccelerationEvent:null,_callback:function(t){this._onAccelerationEvent(t.acc,t)},checkAvailable:function(){return cc.assertID(this._onAccelerationEvent,1803),!0},clone:function(){return new c(this._onAccelerationEvent)}});var l=function(){cc.EventListener.call(this,cc.EventListener.KEYBOARD,n.KEYBOARD,this._callback)};i.extend(l,cc.EventListener),i.mixin(l.prototype,{constructor:l,onKeyPressed:null,onKeyReleased:null,_callback:function(t){t.isPressed?this.onKeyPressed&&this.onKeyPressed(t.keyCode,t):this.onKeyReleased&&this.onKeyReleased(t.keyCode,t)},clone:function(){var t=new l;return t.onKeyPressed=this.onKeyPressed,t.onKeyReleased=this.onKeyReleased,t},checkAvailable:function(){return null!==this.onKeyPressed||null!==this.onKeyReleased||(cc.logID(1800),!1)}}),cc.EventListener.create=function(t){cc.assertID(t&&t.event,1900);var e=t.event;delete t.event;var i=null;for(var n in e===cc.EventListener.TOUCH_ONE_BY_ONE?i=new a:e===cc.EventListener.TOUCH_ALL_AT_ONCE?i=new o:e===cc.EventListener.MOUSE?i=new s:e===cc.EventListener.CUSTOM?(i=new r(t.eventName,t.callback),delete t.eventName,delete t.callback):e===cc.EventListener.KEYBOARD?i=new l:e===cc.EventListener.ACCELERATION&&(i=new c(t.callback),delete t.callback),t)i[n]=t[n];return i},e.exports=cc.EventListener}),{"../platform/js":182}],130:[(function(t,e){"use strict";var i=t("../platform/js");t("./CCEventListener");var n=cc.EventListener.ListenerID,r=function(){this._fixedListeners=[],this._sceneGraphListeners=[],this.gt0Index=0};r.prototype={constructor:r,size:function(){return this._fixedListeners.length+this._sceneGraphListeners.length},empty:function(){return 0===this._fixedListeners.length&&0===this._sceneGraphListeners.length},push:function(t){0===t._getFixedPriority()?this._sceneGraphListeners.push(t):this._fixedListeners.push(t)},clearSceneGraphListeners:function(){this._sceneGraphListeners.length=0},clearFixedListeners:function(){this._fixedListeners.length=0},clear:function(){this._sceneGraphListeners.length=0,this._fixedListeners.length=0},getFixedPriorityListeners:function(){return this._fixedListeners},getSceneGraphPriorityListeners:function(){return this._sceneGraphListeners}};var s=function(t){var e=cc.Event,i=t.type;return i===e.ACCELERATION?n.ACCELERATION:i===e.KEYBOARD?n.KEYBOARD:i.startsWith(e.MOUSE)?n.MOUSE:(i.startsWith(e.TOUCH)&&cc.logID(2e3),"")},a={DIRTY_NONE:0,DIRTY_FIXED_PRIORITY:1,DIRTY_SCENE_GRAPH_PRIORITY:2,DIRTY_ALL:3,_listenersMap:{},_priorityDirtyFlagMap:{},_nodeListenersMap:{},_toAddedListeners:[],_toRemovedListeners:[],_dirtyListeners:{},_inDispatch:0,_isEnabled:!1,_currentTouch:null,_currentTouchListener:null,_internalCustomListenerIDs:[],_setDirtyForNode:function(t){var e=this._nodeListenersMap[t._id];if(e)for(var i=0,n=e.length;i0)for(var s=t._children,a=0,o=s.length;a=0;i--)(e=t[i])._setRegistered(!1),null!=e._getSceneGraphPriority()&&(this._dissociateNodeAndEventListener(e._getSceneGraphPriority(),e),e._setSceneGraphPriority(null)),0===this._inDispatch&&cc.js.array.removeAt(t,i)},_removeListenersForListenerID:function(t){var e,i=this._listenersMap[t];if(i){var n=i.getFixedPriorityListeners(),r=i.getSceneGraphPriorityListeners();this._removeAllListenersInVector(r),this._removeAllListenersInVector(n),delete this._priorityDirtyFlagMap[t],this._inDispatch||(i.clear(),delete this._listenersMap[t])}var s,a=this._toAddedListeners;for(e=a.length-1;e>=0;e--)(s=a[e])&&s._getListenerID()===t&&cc.js.array.removeAt(a,e)},_sortEventListeners:function(t){var e=this.DIRTY_NONE,i=this._priorityDirtyFlagMap;i[t]&&(e=i[t]),e!==this.DIRTY_NONE&&(i[t]=this.DIRTY_NONE,e&this.DIRTY_FIXED_PRIORITY&&this._sortListenersOfFixedPriority(t),e&this.DIRTY_SCENE_GRAPH_PRIORITY&&cc.director.getScene()&&this._sortListenersOfSceneGraphPriority(t))},_sortListenersOfSceneGraphPriority:function(t){var e=this._getListeners(t);if(e){var i=e.getSceneGraphPriorityListeners();i&&0!==i.length&&e.getSceneGraphPriorityListeners().sort(this._sortEventListenersOfSceneGraphPriorityDes)}},_sortEventListenersOfSceneGraphPriorityDes:function(t,e){var i=t._getSceneGraphPriority(),n=e._getSceneGraphPriority();if(!(e&&n&&n._activeInHierarchy&&null!==n._parent))return-1;if(!t||!i||!i._activeInHierarchy||null===i._parent)return 1;for(var r=i,s=n,a=!1;r._parent._id!==s._parent._id;)r=null===r._parent._parent?(a=!0)&&n:r._parent,s=null===s._parent._parent?(a=!0)&&i:s._parent;if(r._id===s._id){if(r._id===n._id)return-1;if(r._id===i._id)return 1}return a?r._localZOrder-s._localZOrder:s._localZOrder-r._localZOrder},_sortListenersOfFixedPriority:function(t){var e=this._listenersMap[t];if(e){var i=e.getFixedPriorityListeners();if(i&&0!==i.length){i.sort(this._sortListenersOfFixedPriorityAsc);for(var n=0,r=i.length;n=0);)++n;e.gt0Index=n}}},_sortListenersOfFixedPriorityAsc:function(t,e){return t._getFixedPriority()-e._getFixedPriority()},_onUpdateListeners:function(t){var e,i,n,r=t.getFixedPriorityListeners(),s=t.getSceneGraphPriorityListeners(),a=this._toRemovedListeners;if(s)for(e=s.length-1;e>=0;e--)(i=s[e])._isRegistered()||(cc.js.array.removeAt(s,e),-1!==(n=a.indexOf(i))&&a.splice(n,1));if(r)for(e=r.length-1;e>=0;e--)(i=r[e])._isRegistered()||(cc.js.array.removeAt(r,e),-1!==(n=a.indexOf(i))&&a.splice(n,1));s&&0===s.length&&t.clearSceneGraphListeners(),r&&0===r.length&&t.clearFixedListeners()},frameUpdateListeners:function(){var t=this._listenersMap,e=this._priorityDirtyFlagMap;for(var i in t)t[i].empty()&&(delete e[i],delete t[i]);var n=this._toAddedListeners;if(0!==n.length){for(var r=0,s=n.length;r0,3508),!(t>1)){var e;(e=this._listenersMap[n.TOUCH_ONE_BY_ONE])&&this._onUpdateListeners(e),(e=this._listenersMap[n.TOUCH_ALL_AT_ONCE])&&this._onUpdateListeners(e),cc.assertID(1===t,3509);var i=this._toAddedListeners;if(0!==i.length){for(var r=0,s=i.length;r0&&-1!==(r=t._claimedTouches.indexOf(n))){if(s=!0,!cc.macro.ENABLE_MULTI_TOUCH&&a._currentTouch&&a._currentTouch!==n)return!1;o===c.MOVED&&t.onTouchMoved?t.onTouchMoved(n,i):o===c.ENDED?(t.onTouchEnded&&t.onTouchEnded(n,i),t._registered&&t._claimedTouches.splice(r,1),a._clearCurTouch()):o===c.CANCELED&&(t.onTouchCancelled&&t.onTouchCancelled(n,i),t._registered&&t._claimedTouches.splice(r,1),a._clearCurTouch())}return i.isStopped()?(a._updateTouchListeners(i),!0):!(!s||!t.swallowTouches||(e.needsMutableSet&&e.touches.splice(n,1),0))},_dispatchTouchEvent:function(t){this._sortEventListeners(n.TOUCH_ONE_BY_ONE),this._sortEventListeners(n.TOUCH_ALL_AT_ONCE);var e=this._getListeners(n.TOUCH_ONE_BY_ONE),i=this._getListeners(n.TOUCH_ALL_AT_ONCE);if(null!==e||null!==i){var r=t.getTouches(),s=cc.js.array.copy(r),a={event:t,needsMutableSet:e&&i,touches:s,selTouch:null};if(e)for(var o=0;o0&&(this._dispatchEventToListeners(i,this._onTouchesEventCallback,{event:t,touches:s}),t.isStopped())||this._updateTouchListeners(t)}},_onTouchesEventCallback:function(t,e){if(!t._registered)return!1;var i=cc.Event.EventTouch,n=e.event,r=e.touches,s=n.getEventCode();return n.currentTarget=t._node,s===i.BEGAN&&t.onTouchesBegan?t.onTouchesBegan(r,n):s===i.MOVED&&t.onTouchesMoved?t.onTouchesMoved(r,n):s===i.ENDED&&t.onTouchesEnded?t.onTouchesEnded(r,n):s===i.CANCELED&&t.onTouchesCancelled&&t.onTouchesCancelled(r,n),!!n.isStopped()&&(a._updateTouchListeners(n),!0)},_associateNodeAndEventListener:function(t,e){var i=this._nodeListenersMap[t._id];i||(i=[],this._nodeListenersMap[t._id]=i),i.push(e)},_dissociateNodeAndEventListener:function(t,e){var i=this._nodeListenersMap[t._id];i&&(cc.js.array.remove(i,e),0===i.length&&delete this._nodeListenersMap[t._id])},_dispatchEventToListeners:function(t,e,i){var n,r,s=!1,a=t.getFixedPriorityListeners(),o=t.getSceneGraphPriorityListeners(),c=0;if(a&&0!==a.length)for(;c=0;c--){var l=o[c];if(l===t){cc.js.array.removeAt(o,c),l._setRegistered(!1);break}}this._currentTouchListener===t&&this._clearCurTouch()}},_clearCurTouch:function(){this._currentTouchListener=null,this._currentTouch=null},_removeListenerInCallback:function(t,e){if(null==t)return!1;for(var i=t.length-1;i>=0;i--){var n=t[i];if(n._onCustomEvent===e||n._onEvent===e)return n._setRegistered(!1),null!=n._getSceneGraphPriority()&&(this._dissociateNodeAndEventListener(n._getSceneGraphPriority(),n),n._setSceneGraphPriority(null)),0===this._inDispatch?cc.js.array.removeAt(t,i):this._toRemovedListeners.push(n),!0}return!1},_removeListenerInVector:function(t,e){if(null==t)return!1;for(var i=t.length-1;i>=0;i--){var n=t[i];if(n===e)return n._setRegistered(!1),null!=n._getSceneGraphPriority()&&(this._dissociateNodeAndEventListener(n._getSceneGraphPriority(),n),n._setSceneGraphPriority(null)),0===this._inDispatch?cc.js.array.removeAt(t,i):this._toRemovedListeners.push(n),!0}return!1},removeListeners:function(t,e){var i=this;if(cc.js.isNumber(t)||t instanceof cc._BaseNode)if(void 0!==t._id){var r,s=i._nodeListenersMap[t._id];if(s){var a=cc.js.array.copy(s);for(r=0;r=0;i--){var n=e[i];n&&this.off(t,n.callback,n.target)}},cc.EventTarget=e.exports=s}),{"../platform/callbacks-invoker":174,"../platform/js":182}],135:[(function(t,e){"use strict";var i=t("../platform/js");cc.Event=function(t,e){this.type=t,this.bubbles=!!e,this.target=null,this.currentTarget=null,this.eventPhase=0,this._propagationStopped=!1,this._propagationImmediateStopped=!1},cc.Event.prototype={constructor:cc.Event,unuse:function(){this.type=cc.Event.NO_TYPE,this.target=null,this.currentTarget=null,this.eventPhase=cc.Event.NONE,this._propagationStopped=!1,this._propagationImmediateStopped=!1},reuse:function(t,e){this.type=t,this.bubbles=e||!1},stopPropagation:function(){this._propagationStopped=!0},stopPropagationImmediate:function(){this._propagationImmediateStopped=!0},isStopped:function(){return this._propagationStopped||this._propagationImmediateStopped},getCurrentTarget:function(){return this.currentTarget},getType:function(){return this.type}},cc.Event.NO_TYPE="no_type",cc.Event.TOUCH="touch",cc.Event.MOUSE="mouse",cc.Event.KEYBOARD="keyboard",cc.Event.ACCELERATION="acceleration",cc.Event.NONE=0,cc.Event.CAPTURING_PHASE=1,cc.Event.AT_TARGET=2,cc.Event.BUBBLING_PHASE=3;var n=function(t,e){cc.Event.call(this,t,e),this.detail=null};i.extend(n,cc.Event),n.prototype.reset=n,n.prototype.setUserData=function(t){this.detail=t},n.prototype.getUserData=function(){return this.detail},n.prototype.getEventName=cc.Event.prototype.getType;var r=new i.Pool(10);n.put=function(t){r.put(t)},n.get=function(t,e){var i=r._get();return i?i.reset(t,e):i=new n(t,e),i},cc.Event.EventCustom=n,e.exports=cc.Event}),{"../platform/js":182}],136:[(function(t){"use strict";t("./event"),t("./event-listeners"),t("./event-target"),t("./system-event")}),{"./event":135,"./event-listeners":133,"./event-target":134,"./system-event":137}],137:[(function(t,e){"use strict";var i=t("../event/event-target"),n=t("../event-manager"),r=t("../platform/CCInputManager"),s=cc.Enum({KEY_DOWN:"keydown",KEY_UP:"keyup",DEVICEMOTION:"devicemotion"}),a=null,o=null,c=cc.Class({name:"SystemEvent",extends:i,statics:{EventType:s},setAccelerometerEnabled:function(t){t&&window.DeviceMotionEvent&&"function"==typeof DeviceMotionEvent.requestPermission?DeviceMotionEvent.requestPermission().then((function(t){console.log("Device Motion Event request permission: "+t),r.setAccelerometerEnabled("granted"===t)})):r.setAccelerometerEnabled(t)},setAccelerometerInterval:function(t){r.setAccelerometerInterval(t)},on:function(t,e,i,r){this._super(t,e,i,r),t!==s.KEY_DOWN&&t!==s.KEY_UP||(a||(a=cc.EventListener.create({event:cc.EventListener.KEYBOARD,onKeyPressed:function(t,e){e.type=s.KEY_DOWN,cc.systemEvent.dispatchEvent(e)},onKeyReleased:function(t,e){e.type=s.KEY_UP,cc.systemEvent.dispatchEvent(e)}})),n.hasEventListener(cc.EventListener.ListenerID.KEYBOARD)||n.addListener(a,1)),t===s.DEVICEMOTION&&(o||(o=cc.EventListener.create({event:cc.EventListener.ACCELERATION,callback:function(t,e){e.type=s.DEVICEMOTION,cc.systemEvent.dispatchEvent(e)}})),n.hasEventListener(cc.EventListener.ListenerID.ACCELERATION)||n.addListener(o,1))},off:function(t,e,i){if(this._super(t,e,i),a&&(t===s.KEY_DOWN||t===s.KEY_UP)){var r=this.hasEventListener(s.KEY_DOWN),c=this.hasEventListener(s.KEY_UP);r||c||n.removeListener(a)}o&&t===s.DEVICEMOTION&&n.removeListener(o)}});cc.SystemEvent=e.exports=c,cc.systemEvent=new cc.SystemEvent}),{"../event-manager":132,"../event/event-target":134,"../platform/CCInputManager":165}],138:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=a(t("../value-types/vec3")),r=a(t("../value-types/mat3")),s=a(t("./enums"));function a(t){return t&&t.__esModule?t:{default:t}}var o=new n.default,c=new n.default,l=new r.default,u=function(t,e,i){var r=l.m,s=i.m;r[0]=Math.abs(s[0]),r[1]=Math.abs(s[1]),r[2]=Math.abs(s[2]),r[3]=Math.abs(s[4]),r[4]=Math.abs(s[5]),r[5]=Math.abs(s[6]),r[6]=Math.abs(s[8]),r[7]=Math.abs(s[9]),r[8]=Math.abs(s[10]),n.default.transformMat3(t,e,l)},h=(function(){function t(t,e,i,r,a,o){this.center=void 0,this.halfExtents=void 0,this._type=void 0,this._type=s.default.SHAPE_AABB,this.center=new n.default(t,e,i),this.halfExtents=new n.default(r,a,o)}t.create=function(e,i,n,r,s,a){return new t(e,i,n,r,s,a)},t.clone=function(e){return new t(e.center.x,e.center.y,e.center.z,e.halfExtents.x,e.halfExtents.y,e.halfExtents.z)},t.copy=function(t,e){return n.default.copy(t.center,e.center),n.default.copy(t.halfExtents,e.halfExtents),t},t.fromPoints=function(t,e,i){return n.default.scale(t.center,n.default.add(o,e,i),.5),n.default.scale(t.halfExtents,n.default.sub(c,i,e),.5),t},t.set=function(t,e,i,r,s,a,o){return n.default.set(t.center,e,i,r),n.default.set(t.halfExtents,s,a,o),t};var e=t.prototype;return e.getBoundary=function(t,e){n.default.sub(t,this.center,this.halfExtents),n.default.add(e,this.center,this.halfExtents)},e.transform=function(t,e,i,r,s){s||(s=this),n.default.transformMat4(s.center,this.center,t),u(s.halfExtents,this.halfExtents,t)},t})();i.default=h,e.exports=i.default}),{"../value-types/mat3":251,"../value-types/vec3":260,"./enums":140}],139:[(function(t,e,i){"use strict";i.__esModule=!0,i.point_plane=f,i.pt_point_aabb=function(t,e,i){return n.Vec3.copy(t,e),n.Vec3.subtract(c,i.center,i.halfExtents),n.Vec3.add(l,i.center,i.halfExtents),t.x=t.xl.x?l.x:t.x,t.y=t.y>l.x?l.y:t.y,t.z=t.z>l.x?l.z:t.z,t},i.pt_point_obb=function(t,e,i){var c=i.orientation.m;n.Vec3.set(r,c[0],c[1],c[2]),n.Vec3.set(s,c[3],c[4],c[5]),n.Vec3.set(a,c[6],c[7],c[8]),u[0]=r,u[1]=s,u[2]=a,h[0]=i.halfExtents.x,h[1]=i.halfExtents.y,h[2]=i.halfExtents.z,n.Vec3.subtract(o,e,i.center),n.Vec3.set(t,i.center.x,i.center.y,i.center.z);for(var l=0;l<3;l++){var f=n.Vec3.dot(o,u[l]);f>h[l]&&(f=h[l]),f<-h[l]&&(f=-h[l]),t.x+=f*u[l].x,t.y+=f*u[l].y,t.z+=f*u[l].z}return t},i.pt_point_plane=function(t,e,i){var r=f(e,i);return n.Vec3.subtract(t,e,n.Vec3.multiplyScalar(t,i.n,r))};var n=t("../value-types"),r=new n.Vec3,s=new n.Vec3,a=new n.Vec3,o=new n.Vec3,c=new n.Vec3,l=new n.Vec3,u=new Array(3),h=new Array(3);function f(t,e){return n.Vec3.dot(e.n,t)-e.d}}),{"../value-types":250}],140:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0,i.default={SHAPE_RAY:1,SHAPE_LINE:2,SHAPE_SPHERE:4,SHAPE_AABB:8,SHAPE_OBB:16,SHAPE_PLANE:32,SHAPE_TRIANGLE:64,SHAPE_FRUSTUM:128,SHAPE_FRUSTUM_ACCURATE:256},e.exports=i.default}),{}],141:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=t("../value-types"),r=a(t("./enums")),s=a(t("./plane"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i=0;i0&&d=0;r--)t(n[r],i);i(e)}function e(t,e){return t.distance-e.distance}function i(t,e,i){var n=i.m,r=e.x,s=e.y,a=e.z,o=n[3]*r+n[7]*s+n[11]*a;return o=o?1/o:1,t.x=(n[0]*r+n[4]*s+n[8]*a)*o,t.y=(n[1]*r+n[5]*s+n[9]*a)*o,t.z=(n[2]*r+n[6]*s+n[10]*a)*o,t}var n=new r.default(function(){return{distance:0,node:null}},1),o=[],c=a.default.create(),u=new s.Vec3,h=new s.Vec3,f=new l.default,d=cc.mat4(),_=cc.mat4(),p=new s.Vec3;function v(t){return t>0&&t<1/0}return function(r,l,g,m){return n.reset(),o.length=0,t(r=r||cc.director.getScene(),(function(t){if(!m||m(t)){s.Mat4.invert(_,t.getWorldMatrix(d)),s.Vec3.transformMat4(f.o,l.o,_),s.Vec3.normalize(f.d,i(f.d,l.d,_));var e=1/0,r=t._renderComponent;if(r instanceof cc.MeshRenderer?e=B(f,r._boundingBox):t.width&&t.height&&(s.Vec3.set(u,-t.width*t.anchorX,-t.height*t.anchorY,t.z),s.Vec3.set(h,t.width*(1-t.anchorX),t.height*(1-t.anchorY),t.z),a.default.fromPoints(c,u,h),e=B(f,c)),v(e)&&(g&&(e=g(f,t,e)),v(e))){s.Vec3.scale(p,f.d,e),i(p,p,d);var y=n.add();y.node=t,y.distance=s.Vec3.mag(p),o.push(y)}}})),o.sort(e),o}})(),I=(d=new s.Vec3(0,0,0),function(t,e){var i=s.Vec3.dot(t.d,e.n);if(Math.abs(i)1?0:i}),D=(function(){var t=new s.Vec3(0,0,0),e=new s.Vec3(0,0,0),i=new s.Vec3(0,0,0),n=new s.Vec3(0,0,0),r=new s.Vec3(0,0,0);return function(a,o,c){s.Vec3.subtract(t,o.b,o.a),s.Vec3.subtract(e,o.c,o.a),s.Vec3.cross(i,a.d,e);var l=s.Vec3.dot(t,i);if(l-Number.EPSILON))return 0;var u=1/l;s.Vec3.subtract(n,a.o,o.a);var h=s.Vec3.dot(n,i)*u;if(h<0||h>1)return 0;s.Vec3.cross(r,n,t);var f=s.Vec3.dot(a.d,r)*u;if(f<0||h+f>1)return 0;var d=s.Vec3.dot(e,r)*u;return d<0?0:d}})(),L=D,P=(function(){var t=new s.Vec3(0,0,0),e=new s.Vec3(0,0,0),i=new s.Vec3(0,0,0),n=new s.Vec3(0,0,0),r=new s.Vec3(0,0,0),a=new s.Vec3(0,0,0);return function(o,c,l){s.Vec3.subtract(t,c.b,c.a),s.Vec3.subtract(e,c.c,c.a),s.Vec3.subtract(i,o.s,o.e),s.Vec3.cross(r,t,e);var u=s.Vec3.dot(i,r);if(u<=0)return 0;s.Vec3.subtract(n,o.s,c.a);var h=s.Vec3.dot(n,r);if(h<0||h>u)return 0;s.Vec3.cross(a,i,n);var f=s.Vec3.dot(e,a);if(f<0||f>u)return 0;var d=-s.Vec3.dot(t,a);if(d<0||f+d>u)return 0;if(l){var _=1/u,p=1-(f*=_)-(d*=_);s.Vec3.set(l,c.a.x*p+c.b.x*f+c.c.x*d,c.a.y*p+c.b.y*f+c.c.y*d,c.a.z*p+c.b.z*f+c.c.z*d)}return 1}})(),N=(p=new s.Vec3(0,0,0),v=new s.Vec3(0,0,0),g=new s.Vec3(0,0,0),m=new s.Vec3(0,0,0),y=new s.Vec3(0,0,0),T=new s.Vec3(0,0,0),E=new s.Vec3(0,0,0),function(t,e,i,n,r,a,o){s.Vec3.subtract(p,e,t),s.Vec3.subtract(v,i,t),s.Vec3.subtract(g,n,t),s.Vec3.subtract(m,r,t),s.Vec3.cross(T,m,p);var c=s.Vec3.dot(v,T);if(c>=0){var l=-s.Vec3.dot(g,T);if(l<0)return 0;var u=s.Vec3.dot(s.Vec3.cross(E,p,g),v);if(u<0)return 0;if(o){var h=1/(l+c+u);l*=h,c*=h,u*=h,s.Vec3.set(o,i.x*l+n.x*c+r.x*u,i.y*l+n.y*c+r.y*u,i.z*l+n.z*c+r.z*u)}}else{s.Vec3.subtract(y,a,t);var f=s.Vec3.dot(y,T);if(f<0)return 0;var d=s.Vec3.dot(s.Vec3.cross(E,p,v),y);if(d<0)return 0;if(o){var _=1/(f+(c=-c)+d);f*=_,c*=_,d*=_,s.Vec3.set(o,i.x*f+a.x*c+r.x*d,i.y*f+a.y*c+r.y*d,i.z*f+a.z*c+r.z*d)}}return 1}),F=(function(){var t=new s.Vec3(0,0,0);return function(e,i){var n=i.radius,r=i.center,a=e.o,o=e.d,c=n*n;s.Vec3.subtract(t,r,a);var l=t.lengthSqr(),u=s.Vec3.dot(t,o),h=c-(l-u*u);if(h<0)return 0;var f=Math.sqrt(h),d=lp?0:_}),k=B,V=(function(){var t=new s.Vec3,e=new s.Vec3,i=new s.Vec3,n=new s.Vec3,r=new s.Vec3,a=new s.Vec3,o=new s.Vec3,c=new Array(3),l=new Array(3),u=new Array(3),h=new Array(6);return function(f,d){c[0]=d.halfExtents.x,c[1]=d.halfExtents.y,c[2]=d.halfExtents.z,t=d.center,e=f.o,i=f.d;var _=d.orientation.m;s.Vec3.set(n,_[0],_[1],_[2]),s.Vec3.set(r,_[3],_[4],_[5]),s.Vec3.set(a,_[6],_[7],_[8]),s.Vec3.subtract(o,t,e),l[0]=s.Vec3.dot(n,i),l[1]=s.Vec3.dot(r,i),l[2]=s.Vec3.dot(a,i),u[0]=s.Vec3.dot(n,o),u[1]=s.Vec3.dot(r,o),u[2]=s.Vec3.dot(a,o);for(var p=0;p<3;++p){if(0===l[p]){if(-u[p]-c[p]>0||-u[p]+c[p]<0)return 0;l[p]=1e-7}h[2*p+0]=(u[p]+c[p])/l[p],h[2*p+1]=(u[p]-c[p])/l[p]}var v=Math.max(Math.max(Math.min(h[0],h[1]),Math.min(h[2],h[3])),Math.min(h[4],h[5])),g=Math.min(Math.min(Math.max(h[0],h[1]),Math.max(h[2],h[3])),Math.max(h[4],h[5]));return g<0||v>g||v<0?0:v}})(),U=(x=new s.Vec3,b=new s.Vec3,S=new s.Vec3,w=new s.Vec3,function(t,e){return s.Vec3.subtract(x,t.center,t.halfExtents),s.Vec3.add(b,t.center,t.halfExtents),s.Vec3.subtract(S,e.center,e.halfExtents),s.Vec3.add(w,e.center,e.halfExtents),x.x<=w.x&&b.x>=S.x&&x.y<=w.y&&b.y>=S.y&&x.z<=w.z&&b.z>=S.z});function z(t,e,i){s.Vec3.set(i[0],t.x,e.y,e.z),s.Vec3.set(i[1],t.x,e.y,t.z),s.Vec3.set(i[2],t.x,t.y,e.z),s.Vec3.set(i[3],t.x,t.y,t.z),s.Vec3.set(i[4],e.x,e.y,e.z),s.Vec3.set(i[5],e.x,e.y,t.z),s.Vec3.set(i[6],e.x,t.y,e.z),s.Vec3.set(i[7],e.x,t.y,t.z)}function H(t,e,i,n,r,a){s.Vec3.set(a[0],t.x+i.x*e.x+n.x*e.y+r.x*e.z,t.y+i.y*e.x+n.y*e.y+r.y*e.z,t.z+i.z*e.x+n.z*e.y+r.z*e.z),s.Vec3.set(a[1],t.x-i.x*e.x+n.x*e.y+r.x*e.z,t.y-i.y*e.x+n.y*e.y+r.y*e.z,t.z-i.z*e.x+n.z*e.y+r.z*e.z),s.Vec3.set(a[2],t.x+i.x*e.x-n.x*e.y+r.x*e.z,t.y+i.y*e.x-n.y*e.y+r.y*e.z,t.z+i.z*e.x-n.z*e.y+r.z*e.z),s.Vec3.set(a[3],t.x+i.x*e.x+n.x*e.y-r.x*e.z,t.y+i.y*e.x+n.y*e.y-r.y*e.z,t.z+i.z*e.x+n.z*e.y-r.z*e.z),s.Vec3.set(a[4],t.x-i.x*e.x-n.x*e.y-r.x*e.z,t.y-i.y*e.x-n.y*e.y-r.y*e.z,t.z-i.z*e.x-n.z*e.y-r.z*e.z),s.Vec3.set(a[5],t.x+i.x*e.x-n.x*e.y-r.x*e.z,t.y+i.y*e.x-n.y*e.y-r.y*e.z,t.z+i.z*e.x-n.z*e.y-r.z*e.z),s.Vec3.set(a[6],t.x-i.x*e.x+n.x*e.y-r.x*e.z,t.y-i.y*e.x+n.y*e.y-r.y*e.z,t.z-i.z*e.x+n.z*e.y-r.z*e.z),s.Vec3.set(a[7],t.x-i.x*e.x-n.x*e.y+r.x*e.z,t.y-i.y*e.x-n.y*e.y+r.y*e.z,t.z-i.z*e.x-n.z*e.y+r.z*e.z)}function W(t,e){for(var i=s.Vec3.dot(e,t[0]),n=i,r=1;r<8;++r){var a=s.Vec3.dot(e,t[r]);i=an?a:n}return[i,n]}var G,Y=(function(){for(var t=new Array(15),e=0;e<15;e++)t[e]=new s.Vec3(0,0,0);for(var i=new Array(8),n=new Array(8),r=0;r<8;r++)i[r]=new s.Vec3(0,0,0),n[r]=new s.Vec3(0,0,0);var a=new s.Vec3,o=new s.Vec3;return function(e,r){var c=r.orientation.m;s.Vec3.set(t[0],1,0,0),s.Vec3.set(t[1],0,1,0),s.Vec3.set(t[2],0,0,1),s.Vec3.set(t[3],c[0],c[1],c[2]),s.Vec3.set(t[4],c[3],c[4],c[5]),s.Vec3.set(t[5],c[6],c[7],c[8]);for(var l=0;l<3;++l)s.Vec3.cross(t[6+3*l],t[l],t[0]),s.Vec3.cross(t[7+3*l],t[l],t[1]),s.Vec3.cross(t[7+3*l],t[l],t[2]);s.Vec3.subtract(a,e.center,e.halfExtents),s.Vec3.add(o,e.center,e.halfExtents),z(a,o,i),H(r.center,r.halfExtents,t[3],t[4],t[5],n);for(var u=0;u<15;++u){var h=W(i,t[u]),f=W(n,t[u]);if(f[0]>h[1]||h[0]>f[1])return 0}return 1}})(),X=function(t,e){var i=t.halfExtents.x*Math.abs(e.n.x)+t.halfExtents.y*Math.abs(e.n.y)+t.halfExtents.z*Math.abs(e.n.z),n=s.Vec3.dot(e.n,t.center);return n+ie.d?0:1},j=function(t,e){for(var i=0;in.halfExtents.x?e++:t[u].x<-n.halfExtents.x&&i++;if(e===r.vertices.length||i===r.vertices.length)return 0;e=0,i=0;for(var h=0;hn.halfExtents.y?e++:t[h].y<-n.halfExtents.y&&i++;if(e===r.vertices.length||i===r.vertices.length)return 0;e=0,i=0;for(var f=0;fn.halfExtents.z?e++:t[f].z<-n.halfExtents.z&&i++;return e===r.vertices.length||i===r.vertices.length?0:1}})(),Z=(function(){var t=new s.Vec3(0,0,0),e=new s.Mat3;return function(i,n){return s.Vec3.subtract(t,n,i.center),s.Vec3.transformMat3(t,t,s.Mat3.transpose(e,i.orientation)),r=t,a=i.halfExtents,Math.abs(r.x)e.d?0:1}),Q=function(t,e){for(var i=0;ir.halfExtents.x?i++:e<-r.halfExtents.x&&n++;if(i===o.vertices.length||n===o.vertices.length)return 0;i=0,n=0;for(var _=0;_r.halfExtents.y?i++:e<-r.halfExtents.y&&n++;if(i===o.vertices.length||n===o.vertices.length)return 0;i=0,n=0;for(var p=0;pr.halfExtents.z?i++:e<-r.halfExtents.z&&n++;return i===o.vertices.length||n===o.vertices.length?0:1}})(),$=(function(){for(var t=new Array(15),e=0;e<15;e++)t[e]=new s.Vec3(0,0,0);for(var i=new Array(8),n=new Array(8),r=0;r<8;r++)i[r]=new s.Vec3(0,0,0),n[r]=new s.Vec3(0,0,0);return function(e,r){var a=e.orientation.m,o=r.orientation.m;s.Vec3.set(t[0],a[0],a[1],a[2]),s.Vec3.set(t[1],a[3],a[4],a[5]),s.Vec3.set(t[2],a[6],a[7],a[8]),s.Vec3.set(t[3],o[0],o[1],o[2]),s.Vec3.set(t[4],o[3],o[4],o[5]),s.Vec3.set(t[5],o[6],o[7],o[8]);for(var c=0;c<3;++c)s.Vec3.cross(t[6+3*c],t[c],t[0]),s.Vec3.cross(t[7+3*c],t[c],t[1]),s.Vec3.cross(t[7+3*c],t[c],t[2]);H(e.center,e.halfExtents,t[0],t[1],t[2],i),H(r.center,r.halfExtents,t[3],t[4],t[5],n);for(var l=0;l<15;++l){var u=W(i,t[l]),h=W(n,t[l]);if(h[0]>u[1]||u[0]>h[1])return 0}return 1}})(),tt=function(t,e){var i=s.Vec3.dot(e.n,t.center),n=t.radius*e.n.length();return i+ne.d?0:1},et=function(t,e){for(var i=0;iu)){s.Vec3.add(t,c,s.Vec3.multiplyScalar(t,l,o));for(var f=0;f<6;f++)if(f!==r&&f!==r+e[r]){var d=n.planes[f];if(s.Vec3.dot(d.n,t)0&&(t.d=e.d/i),t},t.prototype.transform=function(t){r.Mat4.invert(c,t),r.Mat4.transpose(c,c),r.Vec4.set(l,this.n.x,this.n.y,this.n.z,this.d),r.Vec4.transformMat4(l,l,c),r.Vec3.set(this.n,l.x,l.y,l.z),this.d=l.w},t})();i.default=u,e.exports=i.default}),{"../value-types":250,"./enums":140}],147:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("../value-types"),s=(n=t("./enums"))&&n.__esModule?n:{default:n},a=(function(){function t(t,e,i,n,a,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===a&&(a=0),void 0===o&&(o=-1),this.o=void 0,this.d=void 0,this._type=void 0,this._type=s.default.SHAPE_RAY,this.o=new r.Vec3(t,e,i),this.d=new r.Vec3(n,a,o)}return t.create=function(e,i,n,r,s,a){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===s&&(s=0),void 0===a&&(a=1),new t(e,i,n,r,s,a)},t.clone=function(e){return new t(e.o.x,e.o.y,e.o.z,e.d.x,e.d.y,e.d.z)},t.copy=function(t,e){return r.Vec3.copy(t.o,e.o),r.Vec3.copy(t.d,e.d),t},t.fromPoints=function(t,e,i){return r.Vec3.copy(t.o,e),r.Vec3.normalize(t.d,r.Vec3.subtract(t.d,i,e)),t},t.set=function(t,e,i,n,r,s,a){return t.o.x=e,t.o.y=i,t.o.z=n,t.d.x=r,t.d.y=s,t.d.z=a,t},t.prototype.computeHit=function(t,e){r.Vec3.normalize(t,this.d),r.Vec3.scaleAndAdd(t,this.o,t,e)},t})();i.default=a,e.exports=i.default}),{"../value-types":250,"./enums":140}],148:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("../value-types"),s=(n=t("./enums"))&&n.__esModule?n:{default:n},a=new r.Vec3,o=(function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),this.center=void 0,this.radius=void 0,this._type=void 0,this._type=s.default.SHAPE_SPHERE,this.center=new r.Vec3(t,e,i),this.radius=n}t.create=function(e,i,n,r){return new t(e,i,n,r)},t.clone=function(e){return new t(e.center.x,e.center.y,e.center.z,e.radius)},t.copy=function(t,e){return r.Vec3.copy(t.center,e.center),t.radius=e.radius,t},t.fromPoints=function(t,e,i){return r.Vec3.multiplyScalar(t.center,r.Vec3.add(a,e,i),.5),t.radius=.5*r.Vec3.subtract(a,i,e).len(),t},t.set=function(t,e,i,n,r){return t.center.x=e,t.center.y=i,t.center.z=n,t.radius=r,t};var e=t.prototype;return e.clone=function(){return t.clone(this)},e.copy=function(e){return t.copy(this,e)},e.getBoundary=function(t,e){r.Vec3.set(t,this.center.x-this.radius,this.center.y-this.radius,this.center.z-this.radius),r.Vec3.set(e,this.center.x+this.radius,this.center.y+this.radius,this.center.z+this.radius)},e.transform=function(t,e,i,n,s){r.Vec3.transformMat4(s.center,this.center,t),s.radius=this.radius*n.maxAxis()},e.translateAndRotate=function(t,e,i){r.Vec3.transformMat4(i.center,this.center,t)},e.setScale=function(t,e){e.radius=this.radius*t.maxAxis()},t})();i.default=o,e.exports=i.default}),{"../value-types":250,"./enums":140}],149:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=s(t("../value-types/vec3")),r=s(t("./enums"));function s(t){return t&&t.__esModule?t:{default:t}}var a=(function(){function t(t,e,i,s,a,o,c,l,u){this.a=void 0,this.b=void 0,this.c=void 0,this._type=void 0,this.a=new n.default(t,e,i),this.b=new n.default(s,a,o),this.c=new n.default(c,l,u),this._type=r.default.SHAPE_TRIANGLE}return t.create=function(e,i,n,r,s,a,o,c,l){return new t(e,i,n,r,s,a,o,c,l)},t.clone=function(e){return new t(e.a.x,e.a.y,e.a.z,e.b.x,e.b.y,e.b.z,e.c.x,e.c.y,e.c.z)},t.copy=function(t,e){return n.default.copy(t.a,e.a),n.default.copy(t.b,e.b),n.default.copy(t.c,e.c),t},t.fromPoints=function(t,e,i,r){return n.default.copy(t.a,e),n.default.copy(t.b,i),n.default.copy(t.c,r),t},t.set=function(t,e,i,n,r,s,a,o,c,l){return t.a.x=e,t.a.y=i,t.a.z=n,t.b.x=r,t.b.y=s,t.b.z=a,t.c.x=o,t.c.y=c,t.c.z=l,t},t})();i.default=a,e.exports=i.default}),{"../value-types/vec3":260,"./enums":140}],150:[(function(t,e){"use strict";var i=t("../components/CCRenderComponent"),n=t("../assets/material/CCMaterial"),r=t("./types"),s=r.LineCap,a=r.LineJoin,o=cc.Class({name:"cc.Graphics",extends:i,editor:!1,ctor:function(){this._impl=new o._Impl(this)},properties:{_lineWidth:2,_strokeColor:cc.Color.BLACK,_lineJoin:a.MITER,_lineCap:s.BUTT,_fillColor:cc.Color.WHITE,_miterLimit:10,lineWidth:{get:function(){return this._lineWidth},set:function(t){this._lineWidth=t,this._impl.lineWidth=t}},lineJoin:{get:function(){return this._lineJoin},set:function(t){this._lineJoin=t,this._impl.lineJoin=t},type:a},lineCap:{get:function(){return this._lineCap},set:function(t){this._lineCap=t,this._impl.lineCap=t},type:s},strokeColor:{get:function(){return this._strokeColor},set:function(t){this._impl.strokeColor=this._strokeColor=cc.color(t)}},fillColor:{get:function(){return this._fillColor},set:function(t){this._impl.fillColor=this._fillColor=cc.color(t)}},miterLimit:{get:function(){return this._miterLimit},set:function(t){this._miterLimit=t,this._impl.miterLimit=t}}},statics:{LineJoin:a,LineCap:s},onRestore:function(){this._impl||(this._impl=new o._Impl(this))},onDestroy:function(){this.clear(!0),this._super(),this._impl=null},_getDefaultMaterial:function(){return n.getBuiltinMaterial("2d-graphics")},_updateMaterial:function(){var t=this._materials[0];t&&(void 0!==t.getDefine("CC_USE_MODEL")&&t.define("CC_USE_MODEL",!0),void 0!==t.getDefine("CC_SUPPORT_standard_derivatives")&&cc.sys.glExtension("OES_standard_derivatives")&&t.define("CC_SUPPORT_standard_derivatives",!0))},moveTo:function(t,e){this._impl.moveTo(t,e)},lineTo:function(t,e){this._impl.lineTo(t,e)},bezierCurveTo:function(t,e,i,n,r,s){this._impl.bezierCurveTo(t,e,i,n,r,s)},quadraticCurveTo:function(t,e,i,n){this._impl.quadraticCurveTo(t,e,i,n)},arc:function(t,e,i,n,r,s){this._impl.arc(t,e,i,n,r,s)},ellipse:function(t,e,i,n){this._impl.ellipse(t,e,i,n)},circle:function(t,e,i){this._impl.circle(t,e,i)},rect:function(t,e,i,n){this._impl.rect(t,e,i,n)},roundRect:function(t,e,i,n,r){this._impl.roundRect(t,e,i,n,r)},fillRect:function(t,e,i,n){this.rect(t,e,i,n),this.fill()},clear:function(t){this._impl.clear(t),this._assembler&&this._assembler.clear(t)},close:function(){this._impl.close()},stroke:function(){this._assembler||this._resetAssembler(),this._assembler.stroke(this)},fill:function(){this._assembler||this._resetAssembler(),this._assembler.fill(this)}});cc.Graphics=e.exports=o,cc.Graphics.Types=r,cc.Graphics.Helper=t("./helper")}),{"../assets/material/CCMaterial":77,"../components/CCRenderComponent":109,"./helper":151,"./types":153}],151:[(function(t,e){"use strict";var i=t("./types").PointFlags,n=Math.PI,r=Math.min,s=Math.max,a=Math.cos,o=Math.sin,c=Math.abs,l=Math.sign,u=.5522847493;e.exports={arc:function(t,e,i,l,u,h,f){var d,_,p,v=0,g=0,m=0,y=0,T=0,E=0,A=0,C=0,x=0,b=0,S=0,w=0,R=0;if(g=h-u,f=f||!1)if(c(g)>=2*n)g=2*n;else for(;g<0;)g+=2*n;else if(c(g)>=2*n)g=2*-n;else for(;g>0;)g-=2*n;for(p=0|s(1,r(c(g)/(.5*n)+.5,5)),m=c(4/3*(1-a(d=g/p/2))/o(d)),f||(m=-m),_=0;_<=p;_++)E=e+(y=a(v=u+g*(_/p)))*l,A=i+(T=o(v))*l,C=-T*l*m,x=y*l*m,0===_?t.moveTo(E,A):t.bezierCurveTo(b+w,S+R,E-C,A-x,E,A),b=E,S=A,w=C,R=x},ellipse:function(t,e,i,n,r){t.moveTo(e-n,i),t.bezierCurveTo(e-n,i+r*u,e-n*u,i+r,e,i+r),t.bezierCurveTo(e+n*u,i+r,e+n,i+r*u,e+n,i),t.bezierCurveTo(e+n,i-r*u,e+n*u,i-r,e,i-r),t.bezierCurveTo(e-n*u,i-r,e-n,i-r*u,e-n,i),t.close()},roundRect:function(t,e,i,n,s,a){if(a<.1)t.rect(e,i,n,s);else{var o=r(a,.5*c(n))*l(n),h=r(a,.5*c(s))*l(s);t.moveTo(e,i+h),t.lineTo(e,i+s-h),t.bezierCurveTo(e,i+s-h*(1-u),e+o*(1-u),i+s,e+o,i+s),t.lineTo(e+n-o,i+s),t.bezierCurveTo(e+n-o*(1-u),i+s,e+n,i+s-h*(1-u),e+n,i+s-h),t.lineTo(e+n,i+h),t.bezierCurveTo(e+n,i+h*(1-u),e+n-o*(1-u),i,e+n-o,i),t.lineTo(e+o,i),t.bezierCurveTo(e+o*(1-u),i,e,i+h*(1-u),e,i+h),t.close()}},tesselateBezier:function t(e,n,r,s,a,o,l,u,h,f,d){var _,p,v,g,m,y,T,E,A,C,x,b,S,w,R,M;f>10||(m=.5*(o+u),y=.5*(l+h),T=.5*((_=.5*(n+s))+(v=.5*(s+o))),E=.5*((p=.5*(r+a))+(g=.5*(a+l))),((R=c((s-u)*(w=h-r)-(a-h)*(S=u-n)))+(M=c((o-u)*w-(l-h)*S)))*(R+M)0){for(var p=new DataView(i,r),v=n,g=c.num,m=0;m0||this.disableRender()},_updateMaterial:function(){var t=this.textures;if(t&&t.length>0)for(var e=this._getDefaultMaterial(),i=0;i>2,d=u.vertexOffset,_=l._vData,p=l._iData;!i.worldMatDirty&&this._worldDatas[n]||this._updateWorldVertices(n,a,r,s,t.node._worldMatrix),_.set(this._worldDatas[n],f);for(var v=0;v0?a:null,!0);var h=o.prototype;if(e&&(u||(i.extend(o,e),h=o.prototype),o.$super=e),n){for(var f=n.length-1;f>=0;f--){var d=n[f];p(h,d.prototype),p(o,d,(function(t){return d.hasOwnProperty(t)&&!0})),R._isCCClass(d)&&p(s.getClassAttrs(o),s.getClassAttrs(d))}h.constructor=o}return u||(h.__initProps__=A),i.setClassName(t,o),o}function g(t,e,n,r){var s=cc.Component,a=cc._RF.peek();if(a&&i.isChildClassOf(e,s)){if(i.isChildClassOf(a.cls,s))return cc.errorID(3615),null;t=t||a.script}var o=v(t,e,n,r);if(a)if(i.isChildClassOf(e,s)){var c=a.uuid;c&&i._setClassId(c,o),a.cls=o}else i.isChildClassOf(a.cls,s)||(a.cls=o);return o}function m(t){for(var e=i.getClassName(t),n=t.constructor,r="new "+e+"(",s=0;s0){var a="].apply(this,arguments);\n";if(1===s)r+="CCClass.__ctors__[0"+a;else{r+="var cs=CCClass.__ctors__;\n";for(var o=0;o=0)){var s=e[r];if("function"==typeof s){var a=i.getPropertyDescriptor(t.prototype,r);if(a){var o=a.value;if("function"==typeof o){b.test(s)&&(n=!0,e[r]=(function(t,e){return function(){var i=this._super;this._super=t;var n=e.apply(this,arguments);return this._super=i,n}})(o,s));continue}}}}return n}function w(t,e,i,n,r,c){if(t.__props__=[],n&&n.__props__&&(t.__props__=n.__props__.slice()),r)for(var l=0;l=0)){var d=t[f];o.validateMethodWithProps(d,f,e,s,n)&&i.value(s.prototype,f,d,!0,!0)}var _=t.editor;return _&&cc.Component._registerEditorProps(s,_),s}/xyz/.test((function(){xyz})),R._isCCClass=function(t){return t&&t.hasOwnProperty("__ctors__")},R._fastDefine=function(t,e,n){i.setClassName(t,e);for(var r=e.__props__=e.__values__=Object.keys(n),o=s.getClassAttrs(e),c=0;c=2&&((o||l())[c+"min"]=f[0],o[c+"max"]=f[1],f.length>2&&(o[c+"step"]=f[2])),h("min","number"),h("max","number"),h("step","number"),h("userData","object")}cc.Class=R,e.exports={isArray:function(t){return t=_(t),Array.isArray(t)},fastDefine:R._fastDefine,getNewValueTypeCode:m,IDENTIFIER_RE:E,escapeForJS:y,getDefault:_}}),{"./CCEnum":163,"./attribute":173,"./js":182,"./preprocess-class":183,"./requiring-frame":184,"./utils":185}],162:[(function(t,e){"use strict";t("./CCClass");var i=t("./preprocess-class"),n=t("./js"),r="__ccclassCache__";function s(t){return t}function a(t,e){return t[e]||(t[e]={})}function o(t){return function(e){return"function"==typeof e?t(e):function(i){return t(i,e)}}}function c(t,e){return function(t){return function(i){return e(i,t)}}}var l=c.bind(null,!1);function u(){return c.bind(null,!1)}var h=u(),f=u();function d(t){return a(t,r)}function _(t){var e;try{e=t()}catch(i){return t}return"object"!=typeof e||null===e?e:t}function p(t){var e;try{e=new t}catch(i){return{}}return e}function v(t,e,r,s,a,o){var c,l=a&&(a.get||a.set);s&&(c=i.getFullFormOfProperty(s,l));var u=e[r],h=n.mixin(u||{},c||s||{});if(l)a.get&&(h.get=a.get),a.set&&(h.set=a.set);else{var f=void 0;if(a)a.initializer&&(f=_(a.initializer));else{var d=o.default||(o.default=p(t));d.hasOwnProperty(r)&&(f=d[r])}h.default=f}e[r]=h}var g=o((function(t,e){var i=n.getSuper(t);i===Object&&(i=null);var s={name:e,extends:i,ctor:t,__ES6__:!0},a=t[r];if(a){var o=a.proto;o&&n.mixin(s,o),t[r]=void 0}return cc.Class(s)}));function m(t,e,i){return t((function(t,n){var r=d(t);if(r){var s=void 0!==i?i:n,o=a(r,"proto");a(o,"editor")[e]=s}}),e)}function y(t){return t(s)}var T=y(o),E=m(l,"requireComponent"),A=y(h),C=m(f,"executionOrder"),x=y(o),b=y(o),S=y(h),w=y(h),R=y(h);cc._decorator=e.exports={ccclass:g,property:function(t,e,i){var n=null;function r(t,e,i){var r=d(t.constructor);if(r){var s=a(r,"proto"),o=a(s,"properties");v(t.constructor,o,e,n,i,r)}}if(void 0===e)return n=t,r;r(t,e,i)},executeInEditMode:T,requireComponent:E,menu:A,executionOrder:C,disallowMultiple:x,playOnFocus:b,inspector:S,icon:w,help:R,mixins:function(){for(var t=[],e=0;ee){var u=l.getID();delete a[u],delete o[u],this._touchCount--,-1===r?(r=c,this._indexBitsUsed|=1<>=1}return r},_glView:null,_updateCanvasBoundingRect:function(){var t=cc.game.canvas,e=this._canvasBoundingRect,i=document.documentElement,n=window.pageXOffset-i.clientLeft,r=window.pageYOffset-i.clientTop;if(t.getBoundingClientRect){var s=t.getBoundingClientRect();e.left=s.left+n,e.top=s.top+r,e.width=s.width,e.height=s.height}else t instanceof HTMLCanvasElement?(e.left=n,e.top=r,e.width=t.width,e.height=t.height):(e.left=n,e.top=r,e.width=parseInt(t.style.width),e.height=parseInt(t.style.height))},handleTouchesBegin:function(t){for(var e,i,s=n.now(),a=[],o=this._touches,c=this._touchesIntegerDict,l=this._touchesCache,u=0,h=t.length;u0){this._glView._convertTouchesWithScale(a);var _=new cc.Event.EventTouch(a);_._eventCode=cc.Event.EventTouch.BEGAN,r.dispatchEvent(_)}},handleTouchesMove:function(t){for(var e,i,s=n.now(),a=[],o=this._touches,c=this._touchesIntegerDict,l=0,u=t.length;l0){this._glView._convertTouchesWithScale(a);var f=new cc.Event.EventTouch(a);f._eventCode=cc.Event.EventTouch.MOVED,r.dispatchEvent(f)}},handleTouchesEnd:function(t){var e=this.getSetOfTouchesEndOrCancel(t);if(e.length>0){this._glView._convertTouchesWithScale(e);var i=new cc.Event.EventTouch(e);i._eventCode=cc.Event.EventTouch.ENDED,r.dispatchEvent(i)}this._preTouchPool.length=0},handleTouchesCancel:function(t){var e=this.getSetOfTouchesEndOrCancel(t);if(e.length>0){this._glView._convertTouchesWithScale(e);var i=new cc.Event.EventTouch(e);i._eventCode=cc.Event.EventTouch.CANCELED,r.dispatchEvent(i)}this._preTouchPool.length=0},getSetOfTouchesEndOrCancel:function(t){for(var e,i,n,r=[],s=this._touches,a=this._touchesIntegerDict,o=this._touchesCache,c=0,l=t.length;c=0;r--)if(i[r].getID()===n){e=i[r];break}return e||(e=t),e},setPreTouch:function(t){for(var e=!1,i=this._preTouchPool,n=t.getID(),r=i.length-1;r>=0;r--)if(i[r].getID()===n){i[r]=t,e=!0;break}e||(i.length<=50?i.push(t):(i[this._preTouchPoolPointer]=t,this._preTouchPoolPointer=(this._preTouchPoolPointer+1)%50))},getTouchByXY:function(t,e,i){var n=this._preTouchPoint,r=this._glView.convertToLocationInView(t,e,i),s=new cc.Touch(r.x,r.y,0);return s._setPrevPoint(n.x,n.y),n.x=r.x,n.y=r.y,s},getMouseEvent:function(t,e,i){var n=this._prevMousePoint,r=new cc.Event.EventMouse(i);return r._setPrevCursor(n.x,n.y),n.x=t.x,n.y=t.y,this._glView._convertMouseToLocationInView(n,e),r.setLocation(n.x,n.y),r},getPointByEvent:function(t,e){return cc.sys.browserType!==cc.sys.BROWSER_TYPE_QQ&&cc.sys.browserType!==cc.sys.BROWSER_TYPE_UC&&cc.sys.browserType!==cc.sys.BROWSER_TYPE_SAFARI||this._updateCanvasBoundingRect(),null!=t.pageX?{x:t.pageX,y:t.pageY}:(e.left-=document.body.scrollLeft,e.top-=document.body.scrollTop,{x:t.clientX,y:t.clientY})},getTouchesByEvent:function(t,e){for(var i,r,a,o=[],c=this._glView,l=this._preTouchPoint,u=t.changedTouches.length,h=0;hthis._accelInterval&&(this._accelCurTime-=this._accelInterval,r.dispatchEvent(new cc.Event.EventAcceleration(this._acceleration))),this._accelCurTime+=t}};e.exports=cc.internal.inputManager=a}),{"../event-manager":132,"./CCMacro":166,"./CCSys":170}],166:[(function(t,e){"use strict";cc.macro={RAD:Math.PI/180,DEG:180/Math.PI,REPEAT_FOREVER:Number.MAX_VALUE-1,FLT_EPSILON:1.192092896e-7,MIN_ZINDEX:-Math.pow(2,15),MAX_ZINDEX:Math.pow(2,15)-1,ONE:1,ZERO:0,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,DST_ALPHA:772,DST_COLOR:774,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ORIENTATION_PORTRAIT:1,ORIENTATION_LANDSCAPE:2,ORIENTATION_AUTO:3,DENSITYDPI_DEVICE:"device-dpi",DENSITYDPI_HIGH:"high-dpi",DENSITYDPI_MEDIUM:"medium-dpi",DENSITYDPI_LOW:"low-dpi",FIX_ARTIFACTS_BY_STRECHING_TEXEL_TMX:!0,DIRECTOR_STATS_POSITION:cc.v2(0,0),ENABLE_STACKABLE_ACTIONS:!0,TOUCH_TIMEOUT:5e3,BATCH_VERTEX_COUNT:2e4,ENABLE_TILEDMAP_CULLING:!0,ENABLE_TRANSPARENT_CANVAS:!1,ENABLE_WEBGL_ANTIALIAS:!1,ENABLE_CULLING:!1,CLEANUP_IMAGE_CACHE:!1,SHOW_MESH_WIREFRAME:!1,SHOW_MESH_NORMAL:!1,ENABLE_MULTI_TOUCH:!0,ALLOW_IMAGE_BITMAP:!cc.sys.isMobile,ENABLE_NATIVE_TTF_RENDERER:!0},Object.defineProperty(cc.macro,"ROTATE_ACTION_CCW",{set:function(t){cc.RotateTo&&cc.RotateBy&&(cc.RotateTo._reverse=cc.RotateBy._reverse=t)}}),cc.macro.SUPPORT_TEXTURE_FORMATS=[".pkm",".pvr",".webp",".jpg",".jpeg",".bmp",".png"],cc.macro.KEY={none:0,back:6,menu:18,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pause:19,capslock:20,escape:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,up:38,right:39,down:40,select:41,insert:45,Delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,num0:96,num1:97,num2:98,num3:99,num4:100,num5:101,num6:102,num7:103,num8:104,num9:105,"*":106,"+":107,"-":109,numdel:110,"/":111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,";":186,semicolon:186,equal:187,"=":187,",":188,comma:188,dash:189,".":190,period:190,forwardslash:191,grave:192,"[":219,openbracket:219,backslash:220,"]":221,closebracket:221,quote:222,dpadLeft:1e3,dpadRight:1001,dpadUp:1003,dpadDown:1004,dpadCenter:1005},cc.macro.ImageFormat=cc.Enum({JPG:0,PNG:1,TIFF:2,WEBP:3,PVR:4,ETC:5,S3TC:6,ATITC:7,TGA:8,RAWDATA:9,UNKNOWN:10}),cc.macro.BlendFactor=cc.Enum({ONE:1,ZERO:0,SRC_ALPHA:770,SRC_COLOR:768,DST_ALPHA:772,DST_COLOR:774,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775}),cc.macro.TextAlignment=cc.Enum({LEFT:0,CENTER:1,RIGHT:2}),cc.macro.VerticalTextAlignment=cc.Enum({TOP:0,CENTER:1,BOTTOM:2}),e.exports=cc.macro}),{}],167:[(function(t,e){"use strict";var i=t("./js"),n=t("./CCClass"),r=1;function s(){this._name="",this._objFlags=0}n.fastDefine("cc.Object",s,{_name:"",_objFlags:0}),i.value(s,"Flags",{Destroyed:r,DontSave:8,EditorOnly:16,Dirty:32,DontDestroy:64,PersistentMask:-4192741,Destroying:128,Deactivating:256,LockedInEditor:512,HideInHierarchy:1024,IsPreloadStarted:8192,IsOnLoadStarted:32768,IsOnLoadCalled:16384,IsOnEnableCalled:2048,IsStartCalled:65536,IsEditorOnEnableCalled:4096,IsPositionLocked:1<<21,IsRotationLocked:1<<17,IsScaleLocked:1<<18,IsAnchorLocked:1<<19,IsSizeLocked:1<<20});var a=[];i.value(s,"_deferredDestroy",(function(){for(var t=a.length,e=0;e0)return void(t.webkitEnterFullscreen&&t.webkitEnterFullscreen());t.setAttribute("x5-video-player-fullscreen","true")}if(this._supportsFullScreen){if(t=t||document.documentElement,e){var n=this._fn.fullscreenchange;this._onfullscreenchange&&document.removeEventListener(n,this._onfullscreenchange),this._onfullscreenchange=e,document.addEventListener(n,e,!1)}if(i){var r=this._fn.fullscreenerror;this._onfullscreenerror&&document.removeEventListener(r,this._onfullscreenerror),this._onfullscreenerror=i,document.addEventListener(r,i,{once:!0})}var s=t[this._fn.requestFullscreen]();void 0===document[this._fn.fullscreenerror]&&window.Promise&&s instanceof Promise&&s.catch((function(){}))}},exitFullScreen:function(t){if(t&&"video"===t.tagName.toLowerCase()){if(cc.sys.os===cc.sys.OS_IOS&&cc.sys.isBrowser)return void(t.webkitExitFullscreen&&t.webkitExitFullscreen());t.setAttribute("x5-video-player-fullscreen","false")}return!this._supportsFullScreen||document[this._fn.exitFullscreen]()},autoFullScreen:function(t,e){t=t||document.body,this._ensureFullScreen(t,e),this.requestFullScreen(t,e)},disableAutoFullScreen:function(t){var e=cc.game.canvas||t,i=this._touchEvent;this._preOnTouch&&(e.removeEventListener(i,this._preOnTouch),this._preOnTouch=null)},_ensureFullScreen:function(t,e){var i=this,n=cc.game.canvas||t,r=this._fn.fullscreenerror,s=this._touchEvent;function a(){i._preOnFullScreenError=null,i._preOnTouch&&n.removeEventListener(s,i._preOnTouch),i._preOnTouch=function(){i._preOnTouch=null,i.requestFullScreen(t,e)},n.addEventListener(s,i._preOnTouch,{once:!0})}this._preOnFullScreenError&&t.removeEventListener(r,this._preOnFullScreenError),this._preOnFullScreenError=a,t.addEventListener(r,a,{once:!0})}},cc.screen.init()}),{}],170:[(function(t,e){"use strict";window._CCSettings&&_CCSettings.platform;var i="undefined"==typeof window?global:window,n=cc&&cc.sys?cc.sys:(function(){cc.sys={};var t,e,n=cc.sys;if(n.LANGUAGE_ENGLISH="en",n.LANGUAGE_CHINESE="zh",n.LANGUAGE_FRENCH="fr",n.LANGUAGE_ITALIAN="it",n.LANGUAGE_GERMAN="de",n.LANGUAGE_SPANISH="es",n.LANGUAGE_DUTCH="du",n.LANGUAGE_RUSSIAN="ru",n.LANGUAGE_KOREAN="ko",n.LANGUAGE_JAPANESE="ja",n.LANGUAGE_HUNGARIAN="hu",n.LANGUAGE_PORTUGUESE="pt",n.LANGUAGE_ARABIC="ar",n.LANGUAGE_NORWEGIAN="no",n.LANGUAGE_POLISH="pl",n.LANGUAGE_TURKISH="tr",n.LANGUAGE_UKRAINIAN="uk",n.LANGUAGE_ROMANIAN="ro",n.LANGUAGE_BULGARIAN="bg",n.LANGUAGE_UNKNOWN="unknown",n.OS_IOS="iOS",n.OS_ANDROID="Android",n.OS_WINDOWS="Windows",n.OS_MARMALADE="Marmalade",n.OS_LINUX="Linux",n.OS_BADA="Bada",n.OS_BLACKBERRY="Blackberry",n.OS_OSX="OS X",n.OS_WP8="WP8",n.OS_WINRT="WINRT",n.OS_UNKNOWN="Unknown",n.UNKNOWN=-1,n.WIN32=0,n.LINUX=1,n.MACOS=2,n.ANDROID=3,n.IPHONE=4,n.IPAD=5,n.BLACKBERRY=6,n.NACL=7,n.EMSCRIPTEN=8,n.TIZEN=9,n.WINRT=10,n.WP8=11,n.MOBILE_BROWSER=100,n.DESKTOP_BROWSER=101,n.EDITOR_PAGE=102,n.EDITOR_CORE=103,n.WECHAT_GAME=104,n.QQ_PLAY=105,n.FB_PLAYABLE_ADS=106,n.BAIDU_GAME=107,n.VIVO_GAME=108,n.OPPO_GAME=109,n.HUAWEI_GAME=110,n.XIAOMI_GAME=111,n.JKW_GAME=112,n.ALIPAY_GAME=113,n.WECHAT_GAME_SUB=114,n.BAIDU_GAME_SUB=115,n.QTT_GAME=116,n.BYTEDANCE_GAME=117,n.BYTEDANCE_GAME_SUB=118,n.LINKSURE=119,n.TAOBAO=120,n.BROWSER_TYPE_WECHAT="wechat",n.BROWSER_TYPE_ANDROID="androidbrowser",n.BROWSER_TYPE_IE="ie",n.BROWSER_TYPE_EDGE="edge",n.BROWSER_TYPE_QQ="qqbrowser",n.BROWSER_TYPE_MOBILE_QQ="mqqbrowser",n.BROWSER_TYPE_UC="ucbrowser",n.BROWSER_TYPE_UCBS="ucbs",n.BROWSER_TYPE_360="360browser",n.BROWSER_TYPE_BAIDU_APP="baiduboxapp",n.BROWSER_TYPE_BAIDU="baidubrowser",n.BROWSER_TYPE_MAXTHON="maxthon",n.BROWSER_TYPE_OPERA="opera",n.BROWSER_TYPE_OUPENG="oupeng",n.BROWSER_TYPE_MIUI="miuibrowser",n.BROWSER_TYPE_FIREFOX="firefox",n.BROWSER_TYPE_SAFARI="safari",n.BROWSER_TYPE_CHROME="chrome",n.BROWSER_TYPE_LIEBAO="liebao",n.BROWSER_TYPE_QZONE="qzone",n.BROWSER_TYPE_SOUGOU="sogou",n.BROWSER_TYPE_HUAWEI="huawei",n.BROWSER_TYPE_UNKNOWN="unknown",n.isNative=!1,n.isBrowser="object"==typeof window&&"object"==typeof document&&!0,n.glExtension=function(t){return!!cc.renderer.device.ext(t)},n.getMaxJointMatrixSize=function(){if(!n._maxJointMatrixSize){var t=cc.game._renderContext,e=Math.floor(t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS)/4)-10;n._maxJointMatrixSize=e<50?0:50}return n._maxJointMatrixSize},n.getSafeAreaRect=function(){var t=cc.view.getVisibleSize();return cc.rect(0,0,t.width,t.height)},i.__globalAdapter&&i.__globalAdapter.adaptSys)i.__globalAdapter.adaptSys(n);else{var r=window,s=r.navigator,a=document,o=a.documentElement,c=s.userAgent.toLowerCase();n.isMobile=/mobile|android|iphone|ipad/.test(c),"undefined"!=typeof FbPlayableAd?n.platform=n.FB_PLAYABLE_ADS:n.platform=n.isMobile?n.MOBILE_BROWSER:n.DESKTOP_BROWSER;var l=s.language;l=l||s.browserLanguage,n.languageCode=l.toLowerCase(),l=l?l.split("-")[0]:n.LANGUAGE_ENGLISH,n.language=l;var u=!1,h=!1,f="",d=0,_=/android\s*(\d+(?:\.\d+)*)/i.exec(c)||/android\s*(\d+(?:\.\d+)*)/i.exec(s.platform);_&&(u=!0,f=_[1]||"",d=parseInt(f)||0),(_=/(iPad|iPhone|iPod).*OS ((\d+_?){2,3})/i.exec(c))?(h=!0,f=_[2]||"",d=parseInt(f)||0):(/(iPhone|iPad|iPod)/.exec(s.platform)||"MacIntel"===s.platform&&s.maxTouchPoints&&s.maxTouchPoints>1)&&(h=!0,f="",d=0);var p=n.OS_UNKNOWN;-1!==s.appVersion.indexOf("Win")?p=n.OS_WINDOWS:h?p=n.OS_IOS:-1!==s.appVersion.indexOf("Mac")?p=n.OS_OSX:-1!==s.appVersion.indexOf("X11")&&-1===s.appVersion.indexOf("Linux")?p=n.OS_UNIX:u?p=n.OS_ANDROID:-1===s.appVersion.indexOf("Linux")&&-1===c.indexOf("ubuntu")||(p=n.OS_LINUX),n.os=p,n.osVersion=f,n.osMainVersion=d,n.browserType=n.BROWSER_TYPE_UNKNOWN,(function(){var t=/mqqbrowser|micromessenger|qqbrowser|sogou|qzone|liebao|maxthon|ucbs|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|mxbrowser|miuibrowser/i.exec(c)||/qq|ucbrowser|ubrowser|edge|HuaweiBrowser/i.exec(c)||/chrome|safari|firefox|trident|opera|opr\/|oupeng/i.exec(c),e=t?t[0].toLowerCase():n.BROWSER_TYPE_UNKNOWN;"safari"===e&&u?e=n.BROWSER_TYPE_ANDROID:"qq"===e&&c.match(/android.*applewebkit/i)&&(e=n.BROWSER_TYPE_ANDROID);var i={micromessenger:n.BROWSER_TYPE_WECHAT,trident:n.BROWSER_TYPE_IE,edge:n.BROWSER_TYPE_EDGE,"360 aphone":n.BROWSER_TYPE_360,mxbrowser:n.BROWSER_TYPE_MAXTHON,"opr/":n.BROWSER_TYPE_OPERA,ubrowser:n.BROWSER_TYPE_UC,huaweibrowser:n.BROWSER_TYPE_HUAWEI};"qqbrowser"!==e&&"mqqbrowser"!==e||c.match(/wechat|micromessenger/i)&&(e=n.BROWSER_TYPE_WECHAT),n.browserType=i[e]||e})(),n.browserVersion="",(e=c.match(/(mqqbrowser|micromessenger|qqbrowser|sogou|qzone|liebao|maxthon|uc|ucbs|360 aphone|360|baiduboxapp|baidu|maxthon|mxbrowser|miui(?:.hybrid)?)(mobile)?(browser)?\/?([\d.]+)/i))||(e=c.match(/(qq|chrome|safari|firefox|trident|opera|opr\/|oupeng)(mobile)?(browser)?\/?([\d.]+)/i)),n.browserVersion=e?e[4]:"";var v=window.innerWidth||document.documentElement.clientWidth,g=window.innerHeight||document.documentElement.clientHeight,m=window.devicePixelRatio||1;n.windowPixelResolution={width:m*v,height:m*g},n._checkWebGLRenderMode=function(){if(cc.game.renderType!==cc.game.RENDER_TYPE_WEBGL)throw new Error("This feature supports WebGL render mode only.")};var y=document.createElement("canvas");try{var T=n.localStorage=r.localStorage;T.setItem("storage",""),T.removeItem("storage"),T=null}catch(R){var E=function(){cc.warnID(5200)};n.localStorage={getItem:E,setItem:E,removeItem:E,clear:E}}var A=y.toDataURL("image/webp").startsWith("data:image/webp"),C=!!y.getContext("2d"),x=!1;r.WebGLRenderingContext&&(x=!0);var b,S=n.capabilities={canvas:C,opengl:x,webp:A,imageBitmap:!1};"undefined"!=typeof createImageBitmap&&"undefined"!=typeof Blob&&(y.width=y.height=2,createImageBitmap(y,{}).then((function(t){S.imageBitmap=!0,t.close&&t.close()})).catch((function(){}))),(void 0!==o.ontouchstart||void 0!==a.ontouchstart||s.msPointerEnabled)&&(S.touches=!0),void 0!==o.onmouseup&&(S.mouse=!0),void 0!==o.onkeyup&&(S.keyboard=!0),(r.DeviceMotionEvent||r.DeviceOrientationEvent)&&(S.accelerometer=!0),(function(){n.browserVersion;var t=!!(window.AudioContext||window.webkitAudioContext||window.mozAudioContext);b={ONLY_ONE:!1,WEB_AUDIO:t,DELAY_CREATE_CTX:!1},n.os===n.OS_IOS&&(b.USE_LOADER_EVENT="loadedmetadata"),n.browserType===n.BROWSER_TYPE_FIREFOX&&(b.DELAY_CREATE_CTX=!0,b.USE_LOADER_EVENT="canplay"),n.os===n.OS_ANDROID&&n.browserType===n.BROWSER_TYPE_UC&&(b.ONE_SOURCE=!0)})();try{b.WEB_AUDIO&&(b.context=new(window.AudioContext||window.webkitAudioContext||window.mozAudioContext),b.DELAY_CREATE_CTX&&setTimeout((function(){b.context=new(window.AudioContext||window.webkitAudioContext||window.mozAudioContext)}),0))}catch(M){b.WEB_AUDIO=!1,cc.logID(5201)}var w=[];(t=document.createElement("audio")).canPlayType&&(t.canPlayType('audio/ogg; codecs="vorbis"')&&w.push(".ogg"),t.canPlayType("audio/mpeg")&&w.push(".mp3"),t.canPlayType('audio/wav; codecs="1"')&&w.push(".wav"),t.canPlayType("audio/mp4")&&w.push(".mp4"),t.canPlayType("audio/x-m4a")&&w.push(".m4a")),b.format=w,n.__audioSupport=b}return n.NetworkType={NONE:0,LAN:1,WWAN:2},n.getNetworkType=function(){return n.NetworkType.LAN},n.getBatteryLevel=function(){return 1},n.garbageCollect=function(){},n.restartVM=function(){},n.isObjectValid=function(t){return!!t},n.dump=function(){var t="";t+="isMobile : "+this.isMobile+"\r\n",t+="language : "+this.language+"\r\n",t+="browserType : "+this.browserType+"\r\n",t+="browserVersion : "+this.browserVersion+"\r\n",t+="capabilities : "+JSON.stringify(this.capabilities)+"\r\n",t+="os : "+this.os+"\r\n",t+="osVersion : "+this.osVersion+"\r\n",t+="platform : "+this.platform+"\r\n",t+="Using "+(cc.game.renderType===cc.game.RENDER_TYPE_WEBGL?"WEBGL":"CANVAS")+" renderer.\r\n",cc.log(t)},n.openURL=function(t){window.open(t)},n.now=function(){return Date.now?Date.now():+new Date},n})();e.exports=n}),{}],171:[(function(t,e){"use strict";var i=t("../event/event-target"),n=t("../platform/js"),r=t("../renderer");t("../platform/CCClass");var s={init:function(){this.html=document.getElementsByTagName("html")[0]},availWidth:function(t){return t&&t!==this.html?t.clientWidth:window.innerWidth},availHeight:function(t){return t&&t!==this.html?t.clientHeight:window.innerHeight},meta:{width:"device-width"},adaptationType:cc.sys.browserType};switch(cc.sys.os===cc.sys.OS_IOS&&(s.adaptationType=cc.sys.BROWSER_TYPE_SAFARI),s.adaptationType){case cc.sys.BROWSER_TYPE_SAFARI:case cc.sys.BROWSER_TYPE_SOUGOU:case cc.sys.BROWSER_TYPE_UC:s.meta["minimal-ui"]="true",s.availWidth=function(t){return t.clientWidth},s.availHeight=function(t){return t.clientHeight}}var a=null,o=function(){i.call(this);var t=this,e=cc.ContainerStrategy,n=cc.ContentStrategy;s.init(this),t._frameSize=cc.size(0,0),t._designResolutionSize=cc.size(0,0),t._originalDesignResolutionSize=cc.size(0,0),t._scaleX=1,t._scaleY=1,t._viewportRect=cc.rect(0,0,0,0),t._visibleRect=cc.rect(0,0,0,0),t._autoFullScreen=!1,t._devicePixelRatio=1,t._maxPixelRatio=2,t._retinaEnabled=!1,t._resizeCallback=null,t._resizing=!1,t._resizeWithBrowserSize=!1,t._orientationChanging=!0,t._isRotated=!1,t._orientation=cc.macro.ORIENTATION_AUTO,t._isAdjustViewport=!0,t._antiAliasEnabled=!1,t._resolutionPolicy=null,t._rpExactFit=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.EXACT_FIT),t._rpShowAll=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.SHOW_ALL),t._rpNoBorder=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.NO_BORDER),t._rpFixedHeight=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.FIXED_HEIGHT),t._rpFixedWidth=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.FIXED_WIDTH),cc.game.once(cc.game.EVENT_ENGINE_INITED,this.init,this)};cc.js.extend(o,i),cc.js.mixin(o.prototype,{init:function(){this._initFrameSize();var t=cc.game.canvas.width,e=cc.game.canvas.height;this._designResolutionSize.width=t,this._designResolutionSize.height=e,this._originalDesignResolutionSize.width=t,this._originalDesignResolutionSize.height=e,this._viewportRect.width=t,this._viewportRect.height=e,this._visibleRect.width=t,this._visibleRect.height=e,cc.winSize.width=this._visibleRect.width,cc.winSize.height=this._visibleRect.height,cc.visibleRect&&cc.visibleRect.init(this._visibleRect)},_resizeEvent:function(t){var e;e=this.setDesignResolutionSize?this:cc.view;var i=cc.sys;if(i.browserType!==i.BROWSER_TYPE_UC||i.os!==i.OS_IOS){var n=e._frameSize.width,r=e._frameSize.height,s=e._isRotated;if(cc.sys.isMobile){var a=cc.game.container.style,o=a.margin;a.margin="0",a.display="none",e._initFrameSize(),a.margin=o,a.display="block"}else e._initFrameSize();if(!0===t||e._isRotated!==s||e._frameSize.width!==n||e._frameSize.height!==r){var c=e._originalDesignResolutionSize.width,l=e._originalDesignResolutionSize.height;e._resizing=!0,c>0&&e.setDesignResolutionSize(c,l,e._resolutionPolicy),e._resizing=!1,e.emit("canvas-resize"),e._resizeCallback&&e._resizeCallback.call()}}else setTimeout((function(){e._resizeEvent(t)}),0)},_orientationChange:function(){cc.view._orientationChanging=!0,cc.view._resizeEvent(),cc.sys.browserType===cc.sys.BROWSER_TYPE_SAFARI&&cc.sys.isMobile&&setTimeout((function(){window.innerHeight>window.innerWidth&&window.scrollTo(0,1)}),500)},_resize:function(){cc.view._resizeEvent(!1)},resizeWithBrowserSize:function(t){t?this._resizeWithBrowserSize||(this._resizeWithBrowserSize=!0,window.addEventListener("resize",this._resize),window.addEventListener("orientationchange",this._orientationChange)):this._resizeWithBrowserSize&&(this._resizeWithBrowserSize=!1,window.removeEventListener("resize",this._resize),window.removeEventListener("orientationchange",this._orientationChange))},setResizeCallback:function(t){"function"!=typeof t&&null!=t||(this._resizeCallback=t)},setOrientation:function(t){if((t&=cc.macro.ORIENTATION_AUTO)&&this._orientation!==t){this._orientation=t;var e=this._originalDesignResolutionSize.width,i=this._originalDesignResolutionSize.height;this.setDesignResolutionSize(e,i,this._resolutionPolicy)}},_initFrameSize:function(){var t=this._frameSize,e=s.availWidth(cc.game.frame),i=s.availHeight(cc.game.frame),n=e>=i;!cc.sys.isMobile||n&&this._orientation&cc.macro.ORIENTATION_LANDSCAPE||!n&&this._orientation&cc.macro.ORIENTATION_PORTRAIT?(t.width=e,t.height=i,cc.game.container.style["-webkit-transform"]="rotate(0deg)",cc.game.container.style.transform="rotate(0deg)",this._isRotated=!1):(t.width=i,t.height=e,cc.game.container.style["-webkit-transform"]="rotate(90deg)",cc.game.container.style.transform="rotate(90deg)",cc.game.container.style["-webkit-transform-origin"]="0px 0px 0px",cc.game.container.style.transformOrigin="0px 0px 0px",this._isRotated=!0),this._orientationChanging&&setTimeout((function(){cc.view._orientationChanging=!1}),1e3)},_setViewportMeta:function(t,e){var i=document.getElementById("cocosMetaElement");i&&e&&document.head.removeChild(i);var n,r,s,a=document.getElementsByName("viewport"),o=a?a[0]:null;for(r in n=o?o.content:"",(i=i||document.createElement("meta")).id="cocosMetaElement",i.name="viewport",i.content="",t)-1==n.indexOf(r)?n+=","+r+"="+t[r]:e&&(s=new RegExp(r+"s*=s*[^,]+"),n=n.replace(s,r+"="+t[r]));/^,/.test(n)&&(n=n.substr(1)),i.content=n,o&&(o.content=n),document.head.appendChild(i)},_adjustViewportMeta:function(){this._isAdjustViewport&&(this._setViewportMeta(s.meta,!1),this._isAdjustViewport=!1)},adjustViewportMeta:function(t){this._isAdjustViewport=t},enableRetina:function(t){this._retinaEnabled=!!t},isRetinaEnabled:function(){return this._retinaEnabled},enableAntiAlias:function(t){if(cc.warnID(9200),this._antiAliasEnabled!==t)if(this._antiAliasEnabled=t,cc.game.renderType===cc.game.RENDER_TYPE_WEBGL)cc.assetManager.assets.forEach((function(e){if(e instanceof cc.Texture2D){var i=cc.Texture2D.Filter;t?e.setFilters(i.LINEAR,i.LINEAR):e.setFilters(i.NEAREST,i.NEAREST)}}));else if(cc.game.renderType===cc.game.RENDER_TYPE_CANVAS){var e=cc.game.canvas.getContext("2d");e.imageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t}},isAntiAliasEnabled:function(){return this._antiAliasEnabled},enableAutoFullScreen:function(t){t&&t!==this._autoFullScreen&&cc.sys.isMobile?(this._autoFullScreen=!0,cc.screen.autoFullScreen(cc.game.frame)):(this._autoFullScreen=!1,cc.screen.disableAutoFullScreen(cc.game.frame))},isAutoFullScreenEnabled:function(){return this._autoFullScreen},setCanvasSize:function(t,e){var i=cc.game.canvas,n=cc.game.container;i.width=t*this._devicePixelRatio,i.height=e*this._devicePixelRatio,i.style.width=t+"px",i.style.height=e+"px",n.style.width=t+"px",n.style.height=e+"px",this._resizeEvent()},getCanvasSize:function(){return cc.size(cc.game.canvas.width,cc.game.canvas.height)},getFrameSize:function(){return cc.size(this._frameSize.width,this._frameSize.height)},setFrameSize:function(t,e){this._frameSize.width=t,this._frameSize.height=e,cc.game.frame.style.width=t+"px",cc.game.frame.style.height=e+"px",this._resizeEvent(!0)},getVisibleSize:function(){return cc.size(this._visibleRect.width,this._visibleRect.height)},getVisibleSizeInPixel:function(){return cc.size(this._visibleRect.width*this._scaleX,this._visibleRect.height*this._scaleY)},getVisibleOrigin:function(){return cc.v2(this._visibleRect.x,this._visibleRect.y)},getVisibleOriginInPixel:function(){return cc.v2(this._visibleRect.x*this._scaleX,this._visibleRect.y*this._scaleY)},getResolutionPolicy:function(){return this._resolutionPolicy},setResolutionPolicy:function(t){var e=this;if(t instanceof cc.ResolutionPolicy)e._resolutionPolicy=t;else{var i=cc.ResolutionPolicy;t===i.EXACT_FIT&&(e._resolutionPolicy=e._rpExactFit),t===i.SHOW_ALL&&(e._resolutionPolicy=e._rpShowAll),t===i.NO_BORDER&&(e._resolutionPolicy=e._rpNoBorder),t===i.FIXED_HEIGHT&&(e._resolutionPolicy=e._rpFixedHeight),t===i.FIXED_WIDTH&&(e._resolutionPolicy=e._rpFixedWidth)}},setDesignResolutionSize:function(t,e,i){if(t>0&&e>0){this.setResolutionPolicy(i);var n=this._resolutionPolicy;if(n&&n.preApply(this),cc.sys.isMobile&&this._adjustViewportMeta(),this._orientationChanging=!0,this._resizing||this._initFrameSize(),n){this._originalDesignResolutionSize.width=this._designResolutionSize.width=t,this._originalDesignResolutionSize.height=this._designResolutionSize.height=e;var s=n.apply(this,this._designResolutionSize);if(s.scale&&2===s.scale.length&&(this._scaleX=s.scale[0],this._scaleY=s.scale[1]),s.viewport){var a=this._viewportRect,o=this._visibleRect,c=s.viewport;a.x=c.x,a.y=c.y,a.width=c.width,a.height=c.height,o.x=0,o.y=0,o.width=c.width/this._scaleX,o.height=c.height/this._scaleY}n.postApply(this),cc.winSize.width=this._visibleRect.width,cc.winSize.height=this._visibleRect.height,cc.visibleRect&&cc.visibleRect.init(this._visibleRect),r.updateCameraViewport(),cc.internal.inputManager._updateCanvasBoundingRect(),this.emit("design-resolution-changed")}else cc.logID(2201)}else cc.errorID(2200)},getDesignResolutionSize:function(){return cc.size(this._designResolutionSize.width,this._designResolutionSize.height)},setRealPixelResolution:function(t,e,i){this._setViewportMeta({width:t},!0),document.documentElement.style.width=t+"px",document.body.style.width=t+"px",document.body.style.left="0px",document.body.style.top="0px",this.setDesignResolutionSize(t,e,i)},setViewportInPoints:function(t,e,i,n){var r=this._scaleX,s=this._scaleY;cc.game._renderContext.viewport(t*r+this._viewportRect.x,e*s+this._viewportRect.y,i*r,n*s)},setScissorInPoints:function(t,e,i,n){var r=this._scaleX,s=this._scaleY,o=Math.ceil(t*r+this._viewportRect.x),c=Math.ceil(e*s+this._viewportRect.y),l=Math.ceil(i*r),u=Math.ceil(n*s),h=cc.game._renderContext;if(!a){var f=h.getParameter(h.SCISSOR_BOX);a=cc.rect(f[0],f[1],f[2],f[3])}a.x===o&&a.y===c&&a.width===l&&a.height===u||(a.x=o,a.y=c,a.width=l,a.height=u,h.scissor(o,c,l,u))},isScissorEnabled:function(){return cc.game._renderContext.isEnabled(gl.SCISSOR_TEST)},getScissorRect:function(){if(!a){var t=gl.getParameter(gl.SCISSOR_BOX);a=cc.rect(t[0],t[1],t[2],t[3])}var e=1/this._scaleX,i=1/this._scaleY;return cc.rect((a.x-this._viewportRect.x)*e,(a.y-this._viewportRect.y)*i,a.width*e,a.height*i)},getViewportRect:function(){return this._viewportRect},getScaleX:function(){return this._scaleX},getScaleY:function(){return this._scaleY},getDevicePixelRatio:function(){return this._devicePixelRatio},convertToLocationInView:function(t,e,i,n){var r=n||cc.v2(),s=i.adjustedLeft?i.adjustedLeft:i.left,a=i.adjustedTop?i.adjustedTop:i.top,o=this._devicePixelRatio*(t-s),c=this._devicePixelRatio*(a+i.height-e);return this._isRotated?(r.x=cc.game.canvas.width-c,r.y=o):(r.x=o,r.y=c),r},_convertMouseToLocationInView:function(t,e){var i=this._viewportRect;t.x=(this._devicePixelRatio*(t.x-e.left)-i.x)/this._scaleX,t.y=(this._devicePixelRatio*(e.top+e.height-t.y)-i.y)/this._scaleY},_convertPointWithScale:function(t){var e=this._viewportRect;t.x=(t.x-e.x)/this._scaleX,t.y=(t.y-e.y)/this._scaleY},_convertTouchesWithScale:function(t){for(var e,i,n,r=this._viewportRect,s=this._scaleX,a=this._scaleY,o=0;o=0;n--){var s=i[n];s.hasOwnProperty("__attrs__")&&s.__attrs__||r(s,(e=i[n+1])&&e.__attrs__)}return r(t,(e=i[0])&&e.__attrs__),t.__attrs__}function a(t){return t.hasOwnProperty("__attrs__")&&t.__attrs__||s(t)}function o(t,e){this.name=t,this.default=e}o.prototype.toString=function(){return this.name},cc.Integer=new o("Integer",0),cc.Float=new o("Float",0),cc.Boolean=new o("Boolean",!1),cc.String=new o("String",""),e.exports={PrimitiveType:o,attr:function(t,e){var i=a(t),r=e+n,s={};for(var o in i)o.startsWith(r)&&(s[o.slice(r.length)]=i[o]);return s},getClassAttrs:a,setClassAttr:function(t,e,i,r){a(t)[e+n+i]=r},DELIMETER:n,getTypeChecker_ET:!1,getObjTypeChecker_ET:!1,ScriptUuid:{}}}),{"./CCClass":161,"./js":182,"./utils":185}],174:[(function(t,e){"use strict";var i=t("./js"),n=i.array.fastRemoveAt;function r(){}function s(){this.callback=r,this.target=void 0,this.once=!1}s.prototype.set=function(t,e,i){this.callback=t,this.target=e,this.once=!!i};var a=new i.Pool(function(t){return t.callback=r,t.target=void 0,t.once=!1,!0},32);function o(){this.callbackInfos=[],this.isInvoking=!1,this.containCanceled=!1}a.get=function(){return this._get()||new s};var c=o.prototype;c.removeByCallback=function(t){for(var e=0;e=0;--t)this.callbackInfos[t]||n(this.callbackInfos,t);this.containCanceled=!1},c.clear=function(){this.cancelAll(),this.callbackInfos.length=0,this.isInvoking=!1,this.containCanceled=!1};var l=new i.Pool(function(t){return t.callbackInfos=[],t.isInvoking=!1,t.containCanceled=!1,!0},16);function u(){this._callbackTable=i.createMap(!0)}l.get=function(){return this._get()||new o},(c=u.prototype).on=function(t,e,i,n){var r=this._callbackTable[t];r||(r=this._callbackTable[t]=l.get());var s=a.get();s.set(e,i,n),r.callbackInfos.push(s)},c.hasEventListener=function(t,e,i){var n=this._callbackTable[t];if(!n)return!1;var r=n.callbackInfos;if(!e){if(n.isInvoking){for(var s=0;s0}for(var a=0;a=0?a[i[c]]=o:a[~c]=o}for(;r=0?l[i[h]]=u:l[~h]=u}}function S(t,e){for(var i=t[4][e[A]],n=i[E],r=new(0,n[m]),s=n[y],a=n[T],o=i[i.length-1],c=E+1;c=0?e[i]=t[5][n]:t[7][3*~n]=e}function M(t){return function(e,i,n,r){i[n]=r;for(var s=0;s=0){var h=o[l];e[a]=w(t,h,u)}else(0,D[l=~l])(t,e,a,u)}return r}function P(t,e){return t||V.reportMissingClass(e),Object}function N(t,e,i,n,r,s){var a=t(e);if(!a){if(r)return void(i[n]=(function(e,i,n){return function(){var r=t(n)||P(s,n);return e[i]=r,new r}})(i,n,e));a=P(s,e)}i[n]=a}function F(t,e,i){for(var r=i||n.default._getClassById,s=t[3],a=0;a=0?i[l]:~l,s[o]=l);var u=a[o];"number"==typeof u&&(a[o]=n[u])}}function V(t,e,i){"string"==typeof t&&(t=JSON.parse(t));var n=!e;(e=e||x.pool.get()).init(t),i=i||{};var r=t[0],s=!1;if("object"==typeof r&&(s=r.preprocessed,r=r.version),r0&&(i=f+this.globalVariables.join(",")+";");var n=c.flattenCodeArray(["return (function(R){",i||[],this.codeArray,"return o;","})"]);this.result=Function("O","F",n)(this.objs,this.funcs);for(var r=0,s=this.objsToClear_iN$t.length;r1)t.push(_+"="+this._targetExp+";"),e=_;else{if(1!==this._exps.length)return;e=this._targetExp}for(var i=0;i=0&&(f(t,i),!0)}function _(t,e){void 0===e&&(e=t,t=null),this.get=null,this.count=0,this._pool=new Array(e),this._cleanup=t}s.formatStr=function(){var t=arguments.length;if(0===t)return"";var e=arguments[0];if(1===t)return""+e;var i="string"==typeof e&&u.test(e);if(i)for(var n=1;n=0&&(t[i]=t[t.length-1],--t.length)},removeAt:f,fastRemoveAt:function(t,e){var i=t.length;e<0||e>=i||(t[e]=t[i-1],t.length=i-1)},contains:function(t,e){return t.indexOf(e)>=0},verifyType:function(t,e){if(t&&t.length>0)for(var i=0;i0){--this.count;var t=this._pool[this.count];return this._pool[this.count]=null,t}return null},_.prototype.put=function(t){var e=this._pool;if(this.count=0&&(this._pool.length=t,this.count>t&&(this.count=t))},s.Pool=_,cc.js=s,e.exports=s}),{"../utils/mutable-forward-iterator":236,"./id-generater":178}],183:[(function(t,e,i){"use strict";var n=t("./js"),r=t("./attribute"),s={default:{},serializable:{},editorOnly:{},formerlySerializedAs:{}};function a(t,e,i,n){if(!t.get&&!t.set&&t.hasOwnProperty("default")){var r="_N$"+e;t.get=function(){return this[r]},t.set=function(t){var e=this[r];this[r]=t,i.call(this,e)};var a={};for(var o in n[r]=a,s){var c=s[o];t.hasOwnProperty(o)&&(a[o]=t[o],c.canUsedInGet||delete t[o])}}}function o(t,e,i,n){if(Array.isArray(e)){if(!(e.length>0))return cc.errorID(5508,i,n);t.type=e=e[0]}"function"==typeof e&&(e===String?t.type=cc.String:e===Boolean?t.type=cc.Boolean:e===Number&&(t.type=cc.Float))}function c(t,e,i){var n=t?{_short:!0}:{_short:!0,default:e};return i&&(n.type=i),n}i.getFullFormOfProperty=function(t,e){return t&&t.constructor===Object?null:Array.isArray(t)&&t.length>0?c(e,[],t):"function"==typeof t?c(e,n.isChildClassOf(t,cc.ValueType)?new t:null,t):t instanceof r.PrimitiveType?c(e,t.default):c(e,t)},i.preprocessAttrs=function(t,e){for(var n in t){var r=t[n],s=i.getFullFormOfProperty(r,!1);if(s&&(r=t[n]=s),r){var c=r.notify;c&&a(r,n,c,t),"type"in r&&o(r,r.type,e,n)}}},i.validateMethodWithProps=function(t){return"function"==typeof t||null===t}}),{"./CCClass":161,"./attribute":173,"./js":182}],184:[(function(){"use strict";var t=[];cc._RF={push:function(e,i,n){void 0===n&&(n=i,i=""),t.push({uuid:i,script:n,module:e,exports:e.exports,beh:null})},pop:function(){var e=t.pop(),i=e.module,n=i.exports;if(n===e.exports){for(var r in n)return;i.exports=n=e.cls}},peek:function(){return t[t.length-1]}}}),{}],185:[(function(t,e){"use strict";t("./js"),e.exports={contains:function(t,e){if("function"==typeof t.contains)return t.contains(e);if("function"==typeof t.compareDocumentPosition)return!!(16&t.compareDocumentPosition(e));var i=e.parentNode;if(i)do{if(i===t)return!0;i=i.parentNode}while(null!==i);return!1},isDomNode:"object"==typeof window&&("function"==typeof Node?function(t){return t instanceof Node}:function(t){return t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}),callInNextTick:function(t,e,i){t&&setTimeout((function(){t(e,i)}),0)}}}),{"./js":182}],186:[(function(t){"use strict";t("./platform/js"),t("./value-types"),t("./utils"),t("./platform/CCInputManager"),t("./platform/CCInputExtension"),t("./event"),t("./platform/CCSys"),t("./platform/CCMacro"),t("./asset-manager"),t("./CCDirector"),t("./renderer"),t("./platform/CCView"),t("./platform/CCScreen"),t("./CCScheduler"),t("./event-manager")}),{"./CCDirector":23,"./CCScheduler":28,"./asset-manager":46,"./event":136,"./event-manager":132,"./platform/CCInputExtension":164,"./platform/CCInputManager":165,"./platform/CCMacro":166,"./platform/CCScreen":169,"./platform/CCSys":170,"./platform/CCView":171,"./platform/js":182,"./renderer":192,"./utils":234,"./value-types":250}],187:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=a(t("./assembler")),r=a(t("./utils/dynamic-atlas/manager")),s=a(t("./webgl/render-data"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i=0;i>2,c=s._vData;n.length+o>c.length?c.set(n.subarray(0,c.length-o),o):c.set(n,o);for(var l=s._iData,u=a.indiceOffset,h=a.vertexOffset,f=0,d=r.length;fthis.maxSize||(this._clean(t),i[e].push(t),this.count++)}},r.get=function(t){var e;if(this.enabled){var i=this._pool,n=o(t);e=i[n]&&i[n].pop()}return e?this.count--:e=new t,e},r.clear=function(){this._pool={},this.count=0},r._clean=function(t){t._renderComp=null},n}(r.default));r.default.register("assembler",c);var l=c;i.default=l,e.exports=i.default}),{"../utils/pool":237}],189:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("./webgl/vertex-format"),s=(n=t("./assembler-pool"))&&n.__esModule?n:{default:n},a=(function(){function t(){this._extendNative&&this._extendNative()}var e=t.prototype;return e.init=function(t){this._renderComp=t},e.updateRenderData=function(){},e.fillBuffers=function(){},e.getVfmt=function(){return r.vfmtPosUvColor},t})();i.default=a,a.register=function(t,e){t.__assembler__=e},a.init=function(t){for(var e=t.constructor,i=e.__assembler__;!i;){if(!(e=e.$super))return void cc.warn("Can not find assembler for render component : ["+cc.js.getClassName(t)+"]");i=e.__assembler__}if(i.getConstructor&&(i=i.getConstructor(t)),!t._assembler||t._assembler.constructor!==i){var n=s.default.get(i);n.init(t),t._assembler=n}},cc.Assembler=a,e.exports=i.default}),{"./assembler-pool":188,"./webgl/vertex-format":225}],190:[(function(t,e){"use strict";var i=function(t){var e;try{e=t.getContext("2d")}catch(i){return void console.error(i)}this._canvas=t,this._ctx=e,this._caps={},this._stats={drawcalls:0},this._vx=this._vy=this._vw=this._vh=0,this._sx=this._sy=this._sw=this._sh=0};i.prototype._restoreTexture=function(){},i.prototype.setViewport=function(t,e,i,n){this._vx===t&&this._vy===e&&this._vw===i&&this._vh===n||(this._vx=t,this._vy=e,this._vw=i,this._vh=n)},i.prototype.setScissor=function(t,e,i,n){this._sx===t&&this._sy===e&&this._sw===i&&this._sh===n||(this._sx=t,this._sy=e,this._sw=i,this._sh=n)},i.prototype.clear=function(t){var e=this._ctx;e.clearRect(this._vx,this._vy,this._vw,this._vh),!t||0===t[0]&&0===t[1]&&0===t[2]||(e.fillStyle="rgb("+t[0]+","+t[1]+","+t[2]+")",e.globalAlpha=t[3],e.fillRect(this._vx,this._vy,this._vw,this._vh))},i.prototype.resetDrawCalls=function(){this._stats.drawcalls=0},i.prototype.getDrawCalls=function(){return this._stats.drawcalls},e.exports=i}),{}],191:[(function(t,e){"use strict";var i=function(t,e){this._device=t,this._width=4,this._height=4,this._image=null,e&&(void 0!==e.width&&(this._width=e.width),void 0!==e.height&&(this._height=e.height),this.updateImage(e))};i.prototype.update=function(t){this.updateImage(t)},i.prototype.updateImage=function(t){if(t.images&&t.images[0]){var e=t.images[0];e&&e!==this._image&&(this._image=e)}},i.prototype.destroy=function(){this._image=null},e.exports=i}),{}],192:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=a(t("../../renderer/gfx")),r=a(t("../../renderer/core/input-assembler")),s=a(t("../../renderer/core/pass"));function a(t){return t&&t.__esModule?t:{default:t}}var o=cc.renderer={Texture2D:null,InputAssembler:r.default,Pass:s.default,renderEngine:null,canvas:null,device:null,scene:null,drawCalls:0,_handle:null,_cameraNode:null,_camera:null,_forward:null,_flow:null,initWebGL:function(e,i){t("./webgl/assemblers");var r=t("./webgl/model-batcher");this.Texture2D=n.default.Texture2D,this.canvas=e,this._flow=cc.RenderFlow;var s=t("../../renderer/scene/scene"),a=t("../../renderer/renderers/forward-renderer");this.device=new n.default.Device(e,i),this.scene=new s;var o,c=(o=this.device,{defaultTexture:new n.default.Texture2D(o,{images:[],width:128,height:128,wrapS:n.default.WRAP_REPEAT,wrapT:n.default.WRAP_REPEAT,format:n.default.TEXTURE_FMT_RGB8,genMipmaps:!1}),programTemplates:[],programChunks:{}});this._forward=new a(this.device,c),this._handle=new r(this.device,this.scene),this._flow.init(this._handle,this._forward)},initCanvas:function(e){var i=t("./canvas"),n=t("./canvas/Texture2D"),r=t("./canvas/Device");this.Device=r,this.Texture2D=n,this.canvas=e,this.device=new r(e),this._camera={a:1,b:0,c:0,d:1,tx:0,ty:0},this._handle=new i.RenderComponentHandle(this.device,this._camera),this._forward=new i.ForwardRenderer,this._flow=cc.RenderFlow,this._flow.init(this._handle,this._forward)},updateCameraViewport:function(){if(cc.director){var t=cc.director.getScene();t&&t.setScale(1,1,1)}if(cc.game.renderType===cc.game.RENDER_TYPE_CANVAS){var e=cc.view.getViewportRect();this.device.setViewport(e.x,e.y,e.width,e.height),this._camera.a=cc.view.getScaleX(),this._camera.d=cc.view.getScaleY(),this._camera.tx=e.x,this._camera.ty=e.y+e.height}},render:function(t,e){this.device.resetDrawCalls(),t&&(this._flow.render(t,e),this.drawCalls=this.device.getDrawCalls())},clear:function(){this._handle.reset(),this._forward.clear()}};i.default=o,e.exports=i.default}),{"../../renderer/core/input-assembler":267,"../../renderer/core/pass":268,"../../renderer/gfx":277,"../../renderer/renderers/forward-renderer":296,"../../renderer/scene/scene":299,"./canvas":void 0,"./canvas/Device":190,"./canvas/Texture2D":191,"./webgl/assemblers":204,"./webgl/model-batcher":221}],193:[(function(t,e){"use strict";var i,n,r=0,s=1<0;)i&t&&(e=C(i,e)),i>>=1;return e}function b(t){var e=t._renderFlag;(A[e]=x(e))._func(t)}y.flows=A,y.createFlow=C;var S=[];y.registerValidate=function(t){t._inValidateList||(S.push(t),t._inValidateList=!0)},y.validateRenderers=function(){for(var t=0,e=S.length;tthis._width&&(this._x=n,this._y=this._nexty),this._y+c+n>this._nexty&&(this._nexty=this._y+c+n),this._nexty>this._height)return null;cc.dynamicAtlasManager.textureBleeding&&((o<=8||c<=8)&&(this._texture.drawTextureAt(i,this._x-1,this._y-1),this._texture.drawTextureAt(i,this._x-1,this._y+1),this._texture.drawTextureAt(i,this._x+1,this._y-1),this._texture.drawTextureAt(i,this._x+1,this._y+1)),this._texture.drawTextureAt(i,this._x-1,this._y),this._texture.drawTextureAt(i,this._x+1,this._y),this._texture.drawTextureAt(i,this._x,this._y-1),this._texture.drawTextureAt(i,this._x,this._y+1)),this._texture.drawTextureAt(i,this._x,this._y),this._innerTextureInfos[i._id]={x:this._x,y:this._y,texture:i},this._count++,s+=this._x,a+=this._y,this._x+=o+n,this._dirty=!0}var l={x:s,y:a,texture:this._texture};return this._innerSpriteFrames.push(t),l},update:function(){this._dirty&&(this._texture.update(),this._dirty=!1)},deleteInnerTexture:function(t){t&&this._innerTextureInfos[t._id]&&(delete this._innerTextureInfos[t._id],this._count--)},isEmpty:function(){return this._count<=0},reset:function(){this._x=n,this._y=n,this._nexty=n;for(var t=this._innerSpriteFrames,e=0,i=t.length;e=0;e--)n[e].deleteInnerTexture(t),n[e].isEmpty()&&(n[e].destroy(),n.splice(e,1),r--)},showDebug:function(t){if(t){if(!l||!l.isValid){var e=cc.visibleRect.width,i=cc.visibleRect.height;(l=new cc.Node("DYNAMIC_ATLAS_DEBUG_NODE")).width=e,l.height=i,l.x=e/2,l.y=i/2,l.zIndex=cc.macro.MAX_ZINDEX,l.parent=cc.director.getScene(),l.groupIndex=cc.Node.BuiltinGroupIndex.DEBUG,cc.Camera._setupDebugCamera();var s=l.addComponent(cc.ScrollView),o=new cc.Node("CONTENT"),c=o.addComponent(cc.Layout);c.type=cc.Layout.Type.VERTICAL,c.resizeMode=cc.Layout.ResizeMode.CONTAINER,o.parent=l,o.width=a,o.anchorY=1,o.x=a,s.content=o;for(var u=0;u<=r;u++){var h=new cc.Node("ATLAS"),f=(n[u]._texture,new cc.SpriteFrame);f.setTexture(n[u]._texture),h.addComponent(cc.Sprite).spriteFrame=f,h.parent=o}}return l}l&&(l.parent=null,l=null)},update:function(){if(this.enabled)for(var t=0;t<=r;t++)n[t].update()}};e.exports=cc.dynamicAtlasManager=d}),{"./atlas":194}],196:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../../assembler-2d"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=t("../../../utils/text-utils"),o=t("../../../platform/CCMacro"),c=t("../../../components/CCLabel").Overflow,l=t("../utils").shareLabelInfo,u=function(){this.char="",this.valid=!0,this.x=0,this.y=0,this.line=0,this.hash=""},h=cc.rect(),f=null,d=[],_=[],p=[],v=[],g=null,m=0,y=0,T=0,E=0,A=0,C=1,x=null,b=cc.size(),S="",w=0,R=0,M=0,I=0,O=0,D=0,L=0,P=!1,N=0,F=0,B=0,k=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.updateRenderData=function(t){t._vertsDirty&&f!==t&&(f=t,this._reserveQuads(t,t.string.toString().length),this._updateFontFamily(t),this._updateProperties(t),this._updateLabelInfo(t),this._updateContent(),this.updateWorldVerts(t),f._actualFontSize=w,f.node.setContentSize(b),f._vertsDirty=!1,f=null,this._resetProperties())},r._updateFontScale=function(){C=w/R},r._updateFontFamily=function(t){var e=t.font;x=e.spriteFrame,g=e._fntConfig,l.fontAtlas=e._fontDefDictionary,this.packToDynamicAtlas(t,x)},r._updateLabelInfo=function(){l.hash="",l.margin=0},r._updateProperties=function(t){S=t.string.toString(),w=t.fontSize,R=g?g.fontSize:t.fontSize,M=t.horizontalAlign,I=t.verticalAlign,O=t.spacingX,L=t.overflow,D=t._lineHeight,b.width=t.node.width,b.height=t.node.height,L===c.NONE?(P=!1,b.width+=2*l.margin,b.height+=2*l.margin):L===c.RESIZE_HEIGHT?(P=!0,b.height+=2*l.margin):P=t.enableWrapText,l.lineHeight=D,l.fontSize=w,this._setupBMFontOverflowMetrics()},r._resetProperties=function(){g=null,x=null,l.hash="",l.margin=0},r._updateContent=function(){this._updateFontScale(),this._computeHorizontalKerningForText(),this._alignText()},r._computeHorizontalKerningForText=function(){var t,e=S,i=e.length,n=d;if(g&&(t=g.kerningDict),t&&!cc.js.isEmptyObject(t))for(var r=-1,s=0;s0&&n>0&&z+f.w*C>B&&!a.isUnicodeSpace(T)){p.push(o),o=0,i++,n=0,r-=D*this._getFontScale()+0,k=!0;break}_.x=z,_.y=r-f.offsetY*C+l.margin,this._recordLetterInfo(_,T,U,i),U+1_.y-f.h*C&&(R=_.y-f.h*C)}else{this._recordPlaceholderInfo(U,T);var H="";g&&(H=g.atlasName),console.log("Can't find letter definition in texture atlas "+H+" for letter:"+T)}else this._recordPlaceholderInfo(U,T)}k||(n=I,uR&&(h=R),s<(o=M)&&(s=o),v+=x)}else p.push(o),o=0,i++,n=0,r-=D*this._getFontScale()+0,this._recordPlaceholderInfo(v,T),v++}return p.push(o),y=(m=i+1)*D*this._getFontScale(),m>1&&(y+=0*(m-1)),b.width=N,b.height=F,N<=0&&(b.width=parseFloat(s.toFixed(2))+2*l.margin),F<=0&&(b.height=parseFloat(y.toFixed(2))+2*l.margin),E=b.height,A=0,L!==c.CLAMP&&(u>0&&(E=b.height+u),h<-y&&(A=y+h)),!0},r._getFirstCharLen=function(){return 1},r._getFontScale=function(){return L===c.SHRINK?C:1},r._getFirstWordLen=function(t,e,i){var n=t.charAt(e);if(a.isUnicodeCJK(n)||"\n"===n||a.isUnicodeSpace(n))return 1;var r=1,s=l.fontAtlas.getLetterDefinitionForChar(n,l);if(!s)return r;for(var o=s.xAdvance*C+O,c=e+1;cB&&!a.isUnicodeSpace(n)&&B>0)return r;if(o+=s.xAdvance*C+O,"\n"===n||a.isUnicodeSpace(n)||a.isUnicodeCJK(n))break;r++}return r},r._multilineTextWrapByWord=function(){return this._multilineTextWrap(this._getFirstWordLen)},r._multilineTextWrapByChar=function(){return this._multilineTextWrap(this._getFirstCharLen)},r._recordPlaceholderInfo=function(t,e){if(t>=_.length){var i=new u;_.push(i)}_[t].char=e,_[t].hash=e.charCodeAt(0)+l.hash,_[t].valid=!1},r._recordLetterInfo=function(t,e,i,n){if(i>=_.length){var r=new u;_.push(r)}var s=e.charCodeAt(0)+l.hash;_[i].line=n,_[i].char=e,_[i].hash=s,_[i].valid=l.fontAtlas.getLetter(s).valid,_[i].x=t.x,_[i].y=t.y},r._alignText=function(){y=0,p.length=0,this._multilineTextWrapByWord(),this._computeAlignmentOffset(),L===c.SHRINK&&w>0&&this._isVerticalClamp()&&this._shrinkLabelToContentSize(this._isVerticalClamp),this._updateQuads()||L===c.SHRINK&&this._shrinkLabelToContentSize(this._isHorizontalClamp)},r._scaleFontSizeDown=function(t){var e=!0;t||(t=.1,e=!1),w=t,e&&this._updateContent()},r._shrinkLabelToContentSize=function(t){for(var e=0,i=0|w,n=0;e>1;if(r<=0)break;C=r/R,this._multilineTextWrapByWord(),this._computeAlignmentOffset(),t()?i=n-1:e=n}var s=e;s>=0&&this._scaleFontSizeDown(s)},r._isVerticalClamp=function(){return y>b.height},r._isHorizontalClamp=function(){for(var t=!1,e=0,i=S.length;e0)if(P){if(p[a]>b.width&&(s>b.width||s<0)){t=!0;break}}else if(s>b.width){t=!0;break}}}return t},r._isHorizontalClamped=function(t,e){var i=p[e],n=t>b.width||t<0;return P?i>b.width&&n:n},r._updateQuads=function(){var t=x?x._texture:l.fontAtlas.getTexture(),e=f.node;this.verticesCount=this.indicesCount=0,this._renderData&&(this._renderData.dataLength=0);for(var i=b,n=e._anchorPoint.x*i.width,r=e._anchorPoint.y*i.height,s=!0,a=0,o=S.length;a0){if(p>E){var g=p-E;h.y+=g,h.height-=g,p-=g}p-d.h*C0&&this._isHorizontalClamped(y,m))if(L===c.CLAMP)h.width=0;else if(L===c.SHRINK){if(b.width>d.w){s=!1;break}h.width=0}if(h.height>0&&h.width>0){var w=this._determineRect(h),R=u.x+v[u.line];this.appendQuad(f,t,h,w,R-n,p-r,C)}}}return this._quadsUpdated(f),s},r._determineRect=function(t){var e=x.isRotated(),i=x._originalSize,n=x._rect,r=x._offset,s=r.x+(i.width-n.width)/2,a=r.y-(i.height-n.height)/2;if(e){var o=t.x;t.x=n.x+n.height-t.y-t.height-a,t.y=o+n.y-s,t.y<0&&(t.height=t.height+a)}else t.x+=n.x-s,t.y+=n.y+a;return e},r._computeAlignmentOffset=function(){switch(v.length=0,M){case o.TextAlignment.LEFT:for(var t=0;t0){var l=e.out||v;t.strokeStyle="rgba("+l.r+", "+l.g+", "+l.b+", "+l.a/255+")",t.lineWidth=2*e.margin,t.strokeText(this._char,s,a)}t.fillText(this._char,s,a),this._texture.handleLoadedTexture()},destroy:function(){this._texture.destroy(),this._texture=null,a._canvasPool.put(this._data)}},cc.js.mixin(T.prototype,{insertLetterTexture:function(t){var e=t._texture,i=e.width,n=e.height;if(this._x+i+g>this._width&&(this._x=g,this._y=this._nexty),this._y+n>this._nexty&&(this._nexty=this._y+n+g),this._nexty>this._height)return null;this._fontDefDictionary._texture.drawTextureAt(e,this._x,this._y),this._dirty=!0;var r=new _;return r.u=this._x+1,r.v=this._y+1,r.texture=this._fontDefDictionary._texture,r.valid=!0,r.w=t._width-2,r.h=t._height-2,r.xAdvance=r.w,r.offsetY=t._offsetY,this._x+=i+g,this._fontDefDictionary.addLetterDefinitions(t._hash,r),r},update:function(){this._dirty&&(this._fontDefDictionary._texture.update(),this._dirty=!1)},reset:function(){this._x=g,this._y=g,this._nexty=g;for(var t=this._fontDefDictionary._letterDefinitions,e=0,i=t.length;e0&&(n=n+e.margin+e.out.toHEX()),""+e.fontSize+e.fontFamily+i+n)},r._getFontDesc=function(){return d.fontSize.toString()+"px "+d.fontFamily},r._computeHorizontalKerningForText=function(){},r._determineRect=function(){return!1},n})(r.default);i.default=A,e.exports=i.default}),{"../../../assets/CCRenderTexture":66,"../../../components/CCComponent":102,"../../../components/CCLabel":104,"../../../components/CCLabelOutline":void 0,"../../../utils/text-utils":242,"../../webgl/assemblers/label/2d/bmfont":205,"../utils":200}],199:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../../assembler-2d"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a,o=t("../../../utils/text-utils"),c=t("../../../platform/CCMacro"),l=t("../../../components/CCLabel"),u=t("../../../components/CCLabelOutline"),h=t("../../../components/CCLabelShadow"),f=l.Overflow,d=t("../utils").deleteFromDynamicAtlas,_=t("../utils").getFontFamily,p=(1/255).toFixed(3),v=null,g=null,m=null,y="",T="",E=0,A=0,C=[],x=cc.Size.ZERO,b=0,S=0,w=0,R=null,M="",I=f.NONE,O=!1,D=!1,L=null,P=cc.Color.WHITE,N=null,F=cc.Color.BLACK,B=cc.rect(),k=cc.Size.ZERO,V=cc.Size.ZERO,U=!1,z=!1,H=!1,W=0,G=cc.Vec2.ZERO,Y=0,X=["left","center","right"],j=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r._getAssemblerData=function(){return(a=l._canvasPool.get()).canvas.width=a.canvas.height=1,a},r._resetAssemblerData=function(t){t&&l._canvasPool.put(t)},r.updateRenderData=function(e){t.prototype.updateRenderData.call(this,e),e._vertsDirty&&(this._updateProperties(e),this._calculateLabelFont(),this._updateLabelDimensions(),this._updateTexture(e),this._calDynamicAtlas(e),e._actualFontSize=E,e.node.setContentSize(V),this.updateVerts(e),e._vertsDirty=!1,v=null,g=null,m=null)},r.updateVerts=function(){},r._updatePaddingRect=function(){var t=0,e=0,i=0,n=0,r=0;if(k.width=k.height=0,L&&(t=e=i=n=r=L.width,k.width=k.height=2*r),N){var s=N.blur+r;i=Math.max(i,-N._offset.x+s),n=Math.max(n,N._offset.x+s),t=Math.max(t,N._offset.y+s),e=Math.max(e,-N._offset.y+s)}if(z){var a=A*Math.tan(.20943951);n+=a,k.width+=a}B.x=i,B.y=t,B.width=i+n,B.height=t+e},r._updateProperties=function(t){var e=t._assemblerData;v=e.context,g=e.canvas,m=t._frame._original?t._frame._original._texture:t._frame._texture,T=t.string.toString(),E=t._fontSize,A=E,W=t.underlineHeight||A/8,I=t.overflow,x.width=t.node.width,x.height=t.node.height,V=t.node.getContentSize(),b=t._lineHeight,S=t.horizontalAlign,w=t.verticalAlign,R=t.node.color,U=t.enableBold,z=t.enableItalic,H=t.enableUnderline,M=_(t),D=t.srcBlendFactor===cc.macro.BlendFactor.ONE,O=I!==f.NONE&&(I===f.RESIZE_HEIGHT||t.enableWrapText),(L=(L=u&&t.getComponent(u))&&L.enabled&&L.width>0?L:null)&&P.set(L.color),(N=(N=h&&t.getComponent(h))&&N.enabled?N:null)&&(F.set(N.color),F.a=F.a*t.node.color.a/255),this._updatePaddingRect()},r._calculateFillTextStartPosition=function(){var t=0;S===c.TextAlignment.RIGHT?t=x.width-B.width:S===c.TextAlignment.CENTER&&(t=(x.width-B.width)/2);var e=this._getLineHeight()*(C.length-1),i=E*(1-o.BASELINE_RATIO/2);if(w!==c.VerticalTextAlignment.TOP){var n=e+B.height+E-x.height;w===c.VerticalTextAlignment.BOTTOM?i-=n+=o.BASELINE_RATIO/2*E:i-=n/2}return i+=o.BASELINE_OFFSET*E,cc.v2(t+B.x,i+B.y)},r._setupOutline=function(){v.strokeStyle="rgba("+P.r+", "+P.g+", "+P.b+", "+P.a/255+")",v.lineWidth=2*L.width},r._setupShadow=function(){v.shadowColor="rgba("+F.r+", "+F.g+", "+F.b+", "+F.a/255+")",v.shadowBlur=N.blur,v.shadowOffsetX=N.offset.x,v.shadowOffsetY=-N.offset.y},r._drawTextEffect=function(t,e){if(N||L||H){var i=C.length>1&&N,n=this._measureText(v,y),r=0,s=0;N&&this._setupShadow(),L&&this._setupOutline();for(var a=0;at||x.height>t)&&cc.warn("The maximum texture size supported by the device is "+t),x.width=Math.min(x.width,t),x.height=Math.min(x.height,t);var e=!1;g.width!==x.width&&(g.width=x.width,e=!0),g.height!==x.height&&(g.height=x.height,e=!0),e&&(v.font=y),v.textAlign=X[S]},r._getFontDesc=function(){var t=E.toString()+"px ";return t+=M,U&&(t="bold "+t),z&&(t="italic "+t),t},r._getLineHeight=function(){return 0|(0===b?E:b*E/A)},r._calculateParagraphLength=function(t,e){for(var i=[],n=0;n>1)<=0){cc.logID(4003);break}E=u,y=this._getFontDesc(),v.font=y;var h=this._getLineHeight();for(n=0,i=0;ia?l=u-1:c=u}0===c?cc.logID(4003):(E=c,y=this._getFontDesc(),v.font=y)}else{for(n=t.length*this._getLineHeight(),i=0;ir?e:r}i=(C.length+o.BASELINE_RATIO)*this._getLineHeight();var s=parseFloat(e.toFixed(2)),a=parseFloat(i.toFixed(2));x.width=s+B.width,x.height=a+B.height,V.width=s+k.width,V.height=a+k.height;break;case f.SHRINK:this._calculateShrinkFont(t),this._calculateWrapText(t);break;case f.CLAMP:this._calculateWrapText(t);break;case f.RESIZE_HEIGHT:this._calculateWrapText(t);var c=(C.length+o.BASELINE_RATIO)*this._getLineHeight();x.height=c+B.height,V.height=c+k.height}},n})(r.default);i.default=j,e.exports=i.default}),{"../../../components/CCLabel":104,"../../../components/CCLabelOutline":void 0,"../../../components/CCLabelShadow":void 0,"../../../platform/CCMacro":166,"../../../utils/text-utils":242,"../../assembler-2d":187,"../utils":200}],200:[(function(t,e){"use strict";var i=t("./dynamic-atlas/manager"),n=cc.Color.WHITE,r={fontAtlas:null,fontSize:0,lineHeight:0,hAlign:0,vAlign:0,hash:"",fontFamily:"",fontDesc:"Arial",color:n,isOutlined:!1,out:n,margin:0};e.exports={deleteFromDynamicAtlas:function(t,e){e&&e._original&&i&&(i.deleteAtlasSpriteFrame(e),e._resetDynamicAtlasFrame())},getFontFamily:function(t){return t.useSystemFont?t.fontFamily||"Arial":t.font?t.font._nativeAsset?t.font._nativeAsset:(cc.assetManager.postLoadNative(t.font,(function(){t.isValid&&t.setVertsDirty()})),"Arial"):"Arial"},shareLabelInfo:r}}),{"./dynamic-atlas/manager":195}],201:[(function(t,e){"use strict";function i(t,e,i){i=i||2;var r,a,o,c,l,h,f,d=e&&e.length,_=d?e[0]*i:t.length,p=n(t,0,_,i,!0),v=[];if(!p)return v;if(d&&(p=u(t,e,p,i)),t.length>80*i){r=o=t[0],a=c=t[1];for(var g=i;g<_;g+=i)(l=t[g])o&&(o=l),h>c&&(c=h);f=Math.max(o-r,c-a)}return s(p,v,i,r,a,f),v}function n(t,e,i,n,r){var s,a;if(r===I(t,e,i,n)>0)for(s=e;s=e;s-=n)a=w(s,t[s],t[s+1],a);return a&&E(a,a.next)&&(R(a),a=a.next),a}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!E(n,n.next)&&0!==T(n.prev,n,n.next))n=n.next;else{if(R(n),(n=e=n.prev)===n.next)return null;i=!0}}while(i||n!==e);return e}function s(t,e,i,n,u,h,f){if(t){!f&&h&&_(t,n,u,h);for(var d,p,v=t;t.prev!==t.next;)if(d=t.prev,p=t.next,h?o(t,n,u,h):a(t))e.push(d.i/i),e.push(t.i/i),e.push(p.i/i),R(t),t=p.next,v=p.next;else if((t=p)===v){f?1===f?s(t=c(t,e,i),e,i,n,u,h,2):2===f&&l(t,e,i,n,u,h):s(r(t),e,i,n,u,h,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(T(e,i,n)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(m(e.x,e.y,i.x,i.y,n.x,n.y,r.x,r.y)&&T(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function o(t,e,i,n){var r=t.prev,s=t,a=t.next;if(T(r,s,a)>=0)return!1;for(var o=r.xs.x?r.x>a.x?r.x:a.x:s.x>a.x?s.x:a.x,u=r.y>s.y?r.y>a.y?r.y:a.y:s.y>a.y?s.y:a.y,h=v(o,c,e,i,n),f=v(l,u,e,i,n),d=t.nextZ;d&&d.z<=f;){if(d!==t.prev&&d!==t.next&&m(r.x,r.y,s.x,s.y,a.x,a.y,d.x,d.y)&&T(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(d=t.prevZ;d&&d.z>=h;){if(d!==t.prev&&d!==t.next&&m(r.x,r.y,s.x,s.y,a.x,a.y,d.x,d.y)&&T(d.prev,d,d.next)>=0)return!1;d=d.prevZ}return!0}function c(t,e,i){var n=t;do{var r=n.prev,s=n.next.next;!E(r,s)&&A(r,n,n.next,s)&&x(r,s)&&x(s,r)&&(e.push(r.i/i),e.push(n.i/i),e.push(s.i/i),R(n),R(n.next),n=t=s),n=n.next}while(n!==t);return n}function l(t,e,i,n,a,o){var c=t;do{for(var l=c.next.next;l!==c.prev;){if(c.i!==l.i&&y(c,l)){var u=S(c,l);return c=r(c,c.next),u=r(u,u.next),s(c,e,i,n,a,o),void s(u,e,i,n,a,o)}l=l.next}c=c.next}while(c!==t)}function u(t,e,i,s){var a,o,c,l=[];for(a=0,o=e.length;a=n.next.y){var o=n.x+(s-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(o<=r&&o>a){if(a=o,o===r){if(s===n.y)return n;if(s===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&m(si.x)&&x(n,t)&&(i=n,f=c),n=n.next;return i}function _(t,e,i,n){var r=t;do{null===r.z&&(r.z=v(r.x,r.y,e,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,p(r)}function p(t){var e,i,n,r,s,a,o,c,l=1;do{for(i=t,t=null,s=null,a=0;i;){for(a++,n=i,o=0,e=0;e0||c>0&&n;)0===o?(r=n,n=n.nextZ,c--):0!==c&&n?i.z<=n.z?(r=i,i=i.nextZ,o--):(r=n,n=n.nextZ,c--):(r=i,i=i.nextZ,o--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;i=n}s.nextZ=null,l*=2}while(a>1);return t}function v(t,e,i,n,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)/r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)/r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,i=t;do{e.x=0&&(t-a)*(n-o)-(i-a)*(e-o)>=0&&(i-a)*(s-o)-(r-a)*(n-o)>=0}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!C(t,e)&&x(t,e)&&x(e,t)&&b(t,e)}function T(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function E(t,e){return t.x===e.x&&t.y===e.y}function A(t,e,i,n){return!!(E(t,e)&&E(i,n)||E(t,n)&&E(i,e))||T(t,e,i)>0!=T(t,e,n)>0&&T(i,n,t)>0!=T(i,n,e)>0}function C(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&A(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}function x(t,e){return T(t.prev,t,t.next)<0?T(t,e,t.next)>=0&&T(t,t.prev,e)>=0:T(t,e,t.prev)<0||T(t,t.next,e)<0}function b(t,e){var i=t,n=!1,r=(t.x+e.x)/2,s=(t.y+e.y)/2;do{i.y>s!=i.next.y>s&&r<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}function S(t,e){var i=new M(t.i,t.x,t.y),n=new M(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function w(t,e,i,n){var r=new M(t,e,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function R(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function M(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,i,n){for(var r=0,s=e,a=i-n;s0&&(n+=t[r-1].length,i.holes.push(n))}return i}}),{}],202:[(function(t,e){"use strict";var i=t("../../../../graphics/helper"),n=t("../../../../graphics/types").PointFlags,r=cc.Graphics.Point=cc.Class({name:"cc.GraphicsPoint",extends:cc.Vec2,ctor:function(){this.reset()},reset:function(){this.dx=0,this.dy=0,this.dmx=0,this.dmy=0,this.flags=0,this.len=0}});function s(){this.reset()}function a(){this._tessTol=.25,this._distTol=.01,this._updatePathOffset=!1,this._paths=null,this._pathLength=0,this._pathOffset=0,this._points=null,this._pointsOffset=0,this._commandx=0,this._commandy=0,this._paths=[],this._points=[]}cc.js.mixin(s.prototype,{reset:function(){this.closed=!1,this.nbevel=0,this.complex=!0,this.points?this.points.length=0:this.points=[]}}),cc.js.mixin(a.prototype,{moveTo:function(t,e){this._updatePathOffset&&(this._pathOffset=this._pathLength,this._updatePathOffset=!1),this._addPath(),this._addPoint(t,e,n.PT_CORNER),this._commandx=t,this._commandy=e},lineTo:function(t,e){this._addPoint(t,e,n.PT_CORNER),this._commandx=t,this._commandy=e},bezierCurveTo:function(t,e,r,s,a,o){var c=this._curPath,l=c.points[c.points.length-1];l.x!==t||l.y!==e||r!==a||s!==o?(i.tesselateBezier(this,l.x,l.y,t,e,r,s,a,o,0,n.PT_CORNER),this._commandx=a,this._commandy=o):this.lineTo(a,o)},quadraticCurveTo:function(t,e,i,n){var r=this._commandx,s=this._commandy;this.bezierCurveTo(r+2/3*(t-r),s+2/3*(e-s),i+2/3*(t-i),n+2/3*(e-n),i,n)},arc:function(t,e,n,r,s,a){i.arc(this,t,e,n,r,s,a)},ellipse:function(t,e,n,r){i.ellipse(this,t,e,n,r),this._curPath.complex=!1},circle:function(t,e,n){i.ellipse(this,t,e,n,n),this._curPath.complex=!1},rect:function(t,e,i,n){this.moveTo(t,e),this.lineTo(t,e+n),this.lineTo(t+i,e+n),this.lineTo(t+i,e),this.close(),this._curPath.complex=!1},roundRect:function(t,e,n,r,s){i.roundRect(this,t,e,n,r,s),this._curPath.complex=!1},clear:function(t){this._pathLength=0,this._pathOffset=0,this._pointsOffset=0,this._curPath=null,t&&(this._paths.length=0,this._points.length=0)},close:function(){this._curPath.closed=!0},_addPath:function(){var t=this._pathLength,e=this._paths[t];return e?e.reset():(e=new s,this._paths.push(e)),this._pathLength++,this._curPath=e,e},_addPoint:function(t,e,i){var n=this._curPath;if(n){var s,a=this._points,o=n.points;(s=a[this._pointsOffset++])?(s.x=t,s.y=e):(s=new r(t,e),a.push(s)),s.flags=i,o.push(s)}}}),cc.Graphics._Impl=a,e.exports=a}),{"../../../../graphics/helper":151,"../../../../graphics/types":153}],203:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=s(t("../../../assembler")),r=s(t("../../../../../renderer/core/input-assembler"));function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=t("../../mesh-buffer"),c=t("../../../index"),l=t("../../../../graphics/graphics"),u=t("../../../../graphics/types").PointFlags,h=l.LineJoin,f=l.LineCap,d=t("./earcut");t("./impl");var _=Math.PI,p=Math.min,v=Math.max,g=Math.ceil,m=Math.acos,y=Math.cos,T=Math.sin,E=Math.atan2;function A(t,e,i){return ti?i:t}var C=cc.gfx,x=new C.VertexFormat([{name:C.ATTR_POSITION,type:C.ATTR_TYPE_FLOAT32,num:2},{name:C.ATTR_COLOR,type:C.ATTR_TYPE_UINT8,num:4,normalize:!0},{name:"a_dist",type:C.ATTR_TYPE_FLOAT32,num:1}]);x.name="vfmtPosColorSdf";var b=(function(t){var e,i;function n(e){var i;return(i=t.call(this,e)||this)._buffer=null,i._buffers=[],i._bufferOffset=0,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,a(e,i);var s=n.prototype;return s.getVfmt=function(){return x},s.getVfmtFloatCount=function(){return 4},s.requestBuffer=function(){var t={indiceStart:0,vertexStart:0},e=new o(c._handle,this.getVfmt());t.meshbuffer=e;var i=new r.default(e._vb,e._ib);return t.ia=i,this._buffers.push(t),t},s.getBuffers=function(){return 0===this._buffers.length&&this.requestBuffer(),this._buffers},s.clear=function(t){this._bufferOffset=0;var e=this._buffers;if(t){for(var i=0,n=e.length;i65535||3*s>131070)&&(++this._bufferOffset,s=e,this._bufferOffsetr.vertexOffset&&r.requestStatic(e,3*e),this._buffer=n,n},s.stroke=function(t){this._curColor=t._strokeColor._val,this._flattenPaths(t._impl),this._expandStroke(t),t._impl._updatePathOffset=!0},s.fill=function(t){this._curColor=t._fillColor._val,this._expandFill(t),t._impl._updatePathOffset=!0},s._expandStroke=function(t){var e,i,n,r,s=.5*t.lineWidth,a=t.lineCap,o=t.lineJoin,c=t.miterLimit,l=t._impl,d=(e=s,i=_,n=l._tessTol,r=2*m(e/(e+n)),v(2,g(i/r)));this._calculateJoins(l,s,o,c);for(var p=l._paths,y=0,T=l._pathOffset,E=l._pathLength;T0&&(r=1/e);for(var a=t._paths,o=t._pathOffset,c=t._pathLength;o1e-6){var b=1/y;b>600&&(b=600),g.dmx*=b,g.dmy*=b}g.dx*_.dy-_.dx*g.dy>0&&(g.flags|=u.PT_LEFT),y*(T=v(11,p(_.len,g.len)*r))*T<1&&(g.flags|=u.PT_INNERBEVEL);var S=g.dmx*e,w=g.dmy*e,R=S*S+w*w;R>g.len*g.len+s&&R>_.len*_.len+s&&(g.flags|=u.PT_INNERBEVEL),g.flags&u.PT_CORNER&&(y*n*n<1||i===h.BEVEL||i===h.ROUND)&&(g.flags|=u.PT_BEVEL),0!=(g.flags&(u.PT_BEVEL|u.PT_INNERBEVEL))&&l.nbevel++,_=g,g=f[m+1]}}},s._flattenPaths=function(t){for(var e=t._paths,i=t._pathOffset,n=t._pathLength;i2&&a.equals(o)&&(r.closed=!0,s.pop(),a=s[s.length-1]);for(var c=0,l=s.length;cC&&(x-=2*_),this._vset(d,p,1),this._vset(l-s*n,e.y-a*n,-1);for(var b=A(g((C-x)/_)*r,2,r),S=0;S "+n+"/"+i+".")},e._updateCfgFlag=function(t){var e=this._cfgFields.updateFlags;this._setBufferFlag(this._cfg,e.offset,e.size,e.type,t)},e._setBufferValue=function(t,e,i,n,r){"float"==n&&4==i?t.setFloat32(e,r,jsb.__isLittleEndian__):"int32"==n&&4==i?t.setInt32(e,r,jsb.__isLittleEndian__):"bool"==n&&1==i?t.setInt8(e,r?1:0,jsb.__isLittleEndian__):"Color4B"==n&&4==i?(t.setUint8(e,r.r),t.setUint8(e+1,r.g),t.setUint8(e+2,r.b),t.setUint8(e+3,r.a)):"int8"==n&&1==i?t.setUint8(e,r):cc.warn("dont know how to set value to buffer, type/size -> "+n+"/"+i+".")},e._setFieldValue=function(t,e,i,n){var r=e[i];this._setBufferValue(t,r.offset,r.size,r.type,n)},e._getBufferValue=function(t,e,i,n){return"float"==n&&4==i?t.getFloat32(e,jsb.__isLittleEndian__):"int32"==n&&4==i?t.getInt32(e,jsb.__isLittleEndian__):"bool"==n&&1==i?0!=t.getInt8(e,jsb.__isLittleEndian__):"Color4B"==n&&4==i?{r:t.getUint8(e),g:t.getUint8(e+1),b:t.getUint8(e+2),a:t.getUint8(e+3)}:"int8"==n&&1==i?t.getUint8(e):void cc.warn("dont know how to get value from buffer, type/size -> "+n+"/"+i+".")},e._getFieldValue=function(t,e,i){var n=e[i];return this._getBufferValue(t,n.offset,n.size,n.type)},e._getLayoutValue=function(t){return this._getFieldValue(this._layoutInfo,this._layoutFields,t)},e._setLayoutValue=function(t,e){return this._setFieldValue(this._layoutInfo,this._layoutFields,t,e)},e._updateCfgFlag_Content=function(){this._updateCfgFlag(1)},e._updateCfgFlag_Font=function(){this._updateCfgFlag(2)},e._colorEqual=function(t,e){return t.r==e.r&&t.g==e.g&&t.b==e.b&&t.a==e.a},e._colorToObj=function(t,e,i,n){return{r:t,g:e,b:i,a:n}},e.setString=function(t){t!=this._layout.string&&(this._layout.string=t,this._updateCfgFlag_Content())},e.setFontPath=function(t){t!=this._layout.fontPath&&(this._layout.fontPath=t,this._updateCfgFlag_Font())},e.setFontSize=function(t,e){this._getFieldValue(this._cfg,this._cfgFields,"fontSize")!=t&&(this._setFieldValue(this._cfg,this._cfgFields,"fontSize",t),this._setFieldValue(this._cfg,this._cfgFields,"fontSizeRetina",e),this._updateCfgFlag_Font())},e.setOutline=function(t){var e=this._getLayoutValue("outlineSize");e>0!=t>0&&this._updateCfgFlag_Font(),e!=t&&(this._updateCfgFlag_Content(),this._setLayoutValue("outlineSize",t))},e.setOutlineColor=function(t){var e=this._getLayoutValue("outlineColor");this._colorEqual(e,t)||(this._setLayoutValue("outlineColor",t),this._updateCfgFlag_Content())},e.setLineHeight=function(t){this._getLayoutValue("lineHeight")!=t&&(this._setLayoutValue("lineHeight",t),this._updateCfgFlag_Content())},e.setOverFlow=function(t){this._getLayoutValue("overflow")!=t&&(this._setLayoutValue("overflow",t),this._updateCfgFlag_Content())},e.setEnableWrap=function(t){this._getLayoutValue("wrap")!=t&&(this._setLayoutValue("wrap",t),this._updateCfgFlag_Content())},e.setVerticalAlign=function(t){this._getLayoutValue("valign")!=t&&(this._setLayoutValue("valign",t),this._updateCfgFlag_Content())},e.setHorizontalAlign=function(t){this._getLayoutValue("halign")!=t&&(this._setLayoutValue("halign",t),this._updateCfgFlag_Content())},e.setContentSize=function(t,e){var i=this._getLayoutValue("width"),n=this._getLayoutValue("height");i==t&&n==e||(this._setLayoutValue("height",e),this._setLayoutValue("width",t),this._updateCfgFlag_Content())},e.setAnchorPoint=function(t,e){var i=this._getLayoutValue("anchorX"),n=this._getLayoutValue("anchorY");i==t&&n==e||(this._setLayoutValue("anchorX",t),this._setLayoutValue("anchorY",e),this._updateCfgFlag_Content())},e.setColor=function(t){var e=this._getLayoutValue("color");this._colorEqual(e,t)||(this._setLayoutValue("color",t),this._updateCfgFlag_Content())},e.setShadow=function(t,e,i){var n=this._getLayoutValue("shadowBlur"),r=this._getLayoutValue("shadowX"),s=this._getLayoutValue("shadowY");n>0!=i>0&&this._updateCfgFlag_Font();var a=!1;n!=i&&(this._setLayoutValue("shadowBlur",i),a=!0),r!=t&&(this._setLayoutValue("shadowX",t),a=!0),s!=e&&(this._setLayoutValue("shadowY",e),a=!0),a&&this._updateCfgFlag_Content()},e.setShadowColor=function(t){var e=this._getLayoutValue("shadowColor");this._colorEqual(e,t)||(this._setLayoutValue("shadowColor",t),this._updateCfgFlag_Content())},e.setItalic=function(t){this._getLayoutValue("italic")!=t&&(this._setLayoutValue("italic",t),this._updateCfgFlag_Content())},e.setBold=function(t){this._getLayoutValue("bold")!=t&&(this._setLayoutValue("bold",t),this._updateCfgFlag_Content(),this._updateCfgFlag_Font())},e.setUnderline=function(t){this._getLayoutValue("underline")!=t&&(this._setLayoutValue("underline",t),this._updateCfgFlag_Content())},e.setSpacingX=function(t){this._getLayoutValue("spaceX")==t||"number"!=typeof t||isNaN(t)||(this._setLayoutValue("spaceX",t),this._updateCfgFlag_Content())},e.updateRenderData=function(t){if(t._vertsDirty){t.font&&t.font.nativeUrl&&this.setFontPath(cc.assetManager.cacheManager.getCache(t.font.nativeUrl)||t.font.nativeUrl);var e=this._layout,i=t.node.color,n=t.node,r=t.fontSize;this.setString(t.string),this.setFontSize(t.fontSize,r/72*t.fontSize),this.setLineHeight(t.lineHeight),this.setEnableWrap(t.enableWrapText),this.setItalic(t.enableItalic),this.setUnderline(t.enableUnderline),this.setBold(t.enableBold),this.setOverFlow(t.overflow),this.setVerticalAlign(t.verticalAlign),this.setHorizontalAlign(t.horizontalAlign),this.setSpacingX(t.spacingX),this.setContentSize(n.getContentSize().width,n.getContentSize().height),this.setAnchorPoint(n.anchorX,n.anchorY),this.setColor(this._colorToObj(i.getR(),i.getG(),i.getB(),Math.ceil(i.getA()*n.opacity/255)));var s=n.getComponent(cc.LabelShadow);if(s&&s.enabled){var a=s.color;this.setShadow(s.offset.x,s.offset.y,s.blur),this.setShadowColor(this._colorToObj(a.getR(),a.getG(),a.getB(),Math.ceil(a.getA()*n.opacity/255)))}else this.setShadow(0,0,-1);this._updateTTFMaterial(t),e.render()}},e._bindMaterial=function(t){var e=this.labelMaterial;return e||(e=r.default.createWithBuiltin("2d-label",t),this.labelMaterial=e),e},e._updateTTFMaterial=function(t){var e=this._bindMaterial(t),i=this._label.node,n=this._layout,r=i.getComponent(cc.LabelOutline),s=0;if(r&&r.enabled&&r.width>0){s=Math.max(Math.min(r.width/10,.4),.1);var a=r.color;this.setOutlineColor(this._colorToObj(a.getR(),a.getG(),a.getB(),Math.ceil(a.getA()*i.opacity/255)))}this.setOutline(s),e.define("CC_USE_MODEL",!0),e.define("USE_TEXTURE_ALPHAONLY",!0),e.define("USE_SDF",s>0||t.enableBold),e.define("USE_SDF_EXTEND",t.enableBold?1:0),void 0!==e.getDefine("CC_SUPPORT_standard_derivatives")&&cc.sys.glExtension("OES_standard_derivatives")&&e.define("CC_SUPPORT_standard_derivatives",!0),n.setEffect(e.effect._nativeObj)},e.fillBuffers=function(){this._layout.render()},e.getVfmt=function(){},t})();i.default=s,e.exports=i.default}),{"../../../../../assets/material/CCMaterial":77,"../../../../../assets/material/material-variant":84,"../../../../../components/CCLabel":104,"../../../../../components/CCLabelOutline":void 0,"../../../../../components/CCLabelShadow":void 0}],208:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../../../../utils/label/ttf"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=t("../../../../../components/CCLabelShadow"),o=cc.color(255,255,255,255),c=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.updateUVs=function(t){for(var e=this._renderData.vDatas[0],i=t._frame.uv,n=this.uvOffset,r=this.floatsPerVert,s=0;s<4;s++){var a=2*s,o=r*s+n;e[o]=i[a],e[o+1]=i[a+1]}},r.updateColor=function(e){o._fastSetA(e.node._color.a);var i=o._val;t.prototype.updateColor.call(this,e,i)},r.updateVerts=function(t){var e=t.node,i=t._ttfTexture.width,n=t._ttfTexture.height,r=e.anchorX*e.width,s=e.anchorY*e.height,o=a&&t.getComponent(a);if(o&&o._enabled){var c=(i-e.width)/2,l=(n-e.height)/2,u=o.offset;-u.x>c?r+=i-e.width:c>u.x&&(r+=c-u.x),-u.y>l?s+=n-e.height:l>u.y&&(s+=l-u.y)}var h=this._local;h[0]=-r,h[1]=-s,h[2]=i-r,h[3]=n-s,this.updateUVs(t),this.updateWorldVerts(t)},n})(r.default);i.default=c,e.exports=i.default}),{"../../../../../components/CCLabelShadow":void 0,"../../../../utils/label/ttf":199}],209:[(function(t){"use strict";var e=l(t("../../../assembler")),i=l(t("../../../../components/CCLabel")),n=l(t("./2d/ttf")),r=l(t("./2d/bmfont")),s=l(t("./2d/letter")),a=l(t("./3d/ttf")),o=l(t("./3d/bmfont")),c=l(t("./3d/letter"));function l(t){return t&&t.__esModule?t:{default:t}}i.default._canvasPool={pool:[],get:function(){var t=this.pool.pop();if(!t){var e=document.createElement("canvas"),i=e.getContext("2d");t={canvas:e,context:i},i.textBaseline="alphabetic"}return t},put:function(t){this.pool.length>=32||this.pool.push(t)}},e.default.register(cc.Label,{getConstructor:function(t){var e=t.node.is3DNode,l=e?a.default:n.default;return t.font instanceof cc.BitmapFont?l=e?o.default:r.default:t.cacheMode===i.default.CacheMode.CHAR&&(cc.sys.platform===cc.sys.WECHAT_GAME_SUB?cc.warn("sorry, subdomain does not support CHAR mode currently!"):l=e?c.default:s.default),l},TTF:n.default,Bmfont:r.default,Letter:s.default,TTF3D:a.default,Bmfont3D:o.default,Letter3D:c.default,NativeTTF:void 0})}),{"../../../../components/CCLabel":104,"../../../assembler":189,"./2d/bmfont":205,"./2d/letter":206,"./2d/nativeTTF":207,"./2d/ttf":208,"./3d/bmfont":void 0,"./3d/letter":void 0,"./3d/ttf":void 0}],210:[(function(t,e,i){"use strict";i.__esModule=!0,i.MaskAssembler=void 0;var n,r=(n=t("../../assembler"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=t("../../../components/CCMask"),o=t("../../render-flow"),c=t("./sprite/2d/simple"),l=t("./graphics"),u=t("../../../../renderer/gfx"),h=t("../vertex-format").vfmtPos,f=8,d=[];function _(){return 1<f&&cc.errorID(9e3,f),d.push(t)}function m(t,e){0===d.length&&cc.errorID(9001),d.pop(),0===d.length?e._flushMaterial(t._exitMaterial):E(e)}function y(t,e){var i=u.DS_FUNC_NEVER,n=_(),r=n,s=n,a=t.inverted?u.STENCIL_OP_REPLACE:u.STENCIL_OP_ZERO;v(t._clearMaterial,i,a,n,r,s);var o=e.getBuffer("mesh",h),c=o.request(4,6),l=c.indiceOffset,f=c.byteOffset>>2,d=c.vertexOffset,p=o._vData,g=o._iData;p[f++]=-1,p[f++]=-1,p[f++]=-1,p[f++]=1,p[f++]=1,p[f++]=1,p[f++]=1,p[f++]=-1,g[l++]=d,g[l++]=d+3,g[l++]=d+1,g[l++]=d+1,g[l++]=d+3,g[l++]=d+2,e.node=e._dummyNode,e.material=t._clearMaterial,e._flush()}function T(t,e){var i=u.DS_FUNC_NEVER,n=_(),r=n,s=n,o=t.inverted?u.STENCIL_OP_ZERO:u.STENCIL_OP_REPLACE;v(t._materials[0],i,o,n,r,s),e.material=t._materials[0],t._type===a.Type.IMAGE_STENCIL?(e.node=e._dummyNode,c.prototype.fillBuffers.call(t._assembler,t,e),e._flush()):(e.node=t.node,l.prototype.fillBuffers.call(t._graphics._assembler,t._graphics,e))}function E(t){var e=u.DS_FUNC_EQUAL,i=u.STENCIL_OP_KEEP,n=p(),r=n,s=_(),a=d[d.length-1];v(a._enableMaterial,e,i,n,r,s),t._flushMaterial(a._enableMaterial)}var A=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.updateRenderData=function(t){t._type===a.Type.IMAGE_STENCIL?t.spriteFrame?c.prototype.updateRenderData.call(this,t):t.setMaterial(0,null):(t._graphics.setMaterial(0,t._materials[0]),l.prototype.updateRenderData.call(t._graphics._assembler,t._graphics,t._graphics))},r.fillBuffers=function(t,e){(t._type!==a.Type.IMAGE_STENCIL||t.spriteFrame)&&(g(t),y(t,e),T(t,e),E(e)),t.node._renderFlag|=o.FLAG_UPDATE_RENDER_DATA},r.postFillBuffers=function(t,e){(t._type!==a.Type.IMAGE_STENCIL||t.spriteFrame)&&m(t,e),t.node._renderFlag|=o.FLAG_UPDATE_RENDER_DATA},n})(c);i.MaskAssembler=A,r.default.register(a,A)}),{"../../../../renderer/gfx":277,"../../../components/CCMask":106,"../../assembler":189,"../../render-flow":193,"../vertex-format":225,"./graphics":203,"./sprite/2d/simple":215}],211:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../../assembler-2d"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=t("../../../components/CCMotionStreak"),o=t("../../render-flow");function c(t,e){this.point=t||cc.v2(),this.dir=e||cc.v2(),this.distance=0,this.time=0}c.prototype.setPoint=function(t,e){this.point.x=t,this.point.y=e},c.prototype.setDir=function(t,e){this.dir.x=t,this.dir.y=e},cc.v2(),cc.v2();var l=cc.v2(),u=cc.v2();function h(t,e){return t.x=-e.y,t.y=e.x,t}var f=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.initData=function(){this._renderData.createFlexData(0,16,42)},r.update=function(t,e){var i,n=t._stroke/2,r=t.node._worldMatrix.m,s=r[12],a=r[13],o=t._points;if(o.length>1){var f=o[0].point.x-s,d=o[0].point.y-a;f*f+d*d=0;w--){var R=o[w],M=R.point,I=R.dir;if(R.time-=e,R.time<0)o.splice(w,1);else{var O=R.time/b,D=o[w-1];if(!S){if(!D){o.splice(w,1);continue}M.x=D.point.x-I.x*O,M.y=D.point.y-I.y*O}S=!0,h(l,I);var L=(O*T<<24>>>0)+(y<<16)+(m<<8)+g,P=5*p;C[P]=M.x+l.x*n,C[P+1]=M.y+l.y*n,C[P+2]=1,C[P+3]=O,x[P+4]=L,C[P+=5]=M.x-l.x*n,C[P+1]=M.y-l.y*n,C[P+2]=0,C[P+3]=O,x[P+4]=L,p+=2}}_=p<=2?0:3*(p-2),A.used(p,_)}},r.fillBuffers=function(t,e){var i=this._renderData._flexBuffer,n=i.vData,r=i.usedVertices,s=i.usedIndices,a=i.usedVerticesFloats,c=e._meshBuffer,l=c.request(r,s),u=l.byteOffset>>2,h=c._vData;n.length+u>h.length?h.set(n.subarray(0,a),u):h.set(n,u);for(var f=c._iData,d=l.indiceOffset,_=l.vertexOffset,p=0,v=r;p1?1:n)<0?0:n;var r=(i=(i=i>1?1:i)<0?0:i)+(n=(n-=i)<0?0:n);r=r>1?1:r,this.updateUVs(t,i,r),this.updateVerts(t,i,r),t._vertsDirty=!1}},r.updateUVs=function(t,e,i){var n,r,s,o,c,l,u,h,f,d,_=t._spriteFrame,p=_._texture.width,v=_._texture.height,g=_._rect;_._rotated?(n=g.x/p,r=(g.y+g.width)/v,s=c=n,u=f=(g.x+g.height)/p,l=d=r,o=h=g.y/v):(n=g.x/p,r=(g.y+g.height)/v,s=u=n,c=f=(g.x+g.width)/p,o=l=r,h=d=g.y/v);var m=this._renderData.vDatas[0],y=this.uvOffset,T=this.floatsPerVert;switch(t._fillType){case a.HORIZONTAL:m[y]=s+(c-s)*e,m[y+1]=o+(l-o)*e,m[y+T]=s+(c-s)*i,m[y+T+1]=o+(l-o)*i,m[y+2*T]=u+(f-u)*e,m[y+2*T+1]=h+(d-h)*e,m[y+3*T]=u+(f-u)*i,m[y+3*T+1]=h+(d-h)*i;break;case a.VERTICAL:m[y]=s+(u-s)*e,m[y+1]=o+(h-o)*e,m[y+T]=c+(f-c)*e,m[y+T+1]=l+(d-l)*e,m[y+2*T]=s+(u-s)*i,m[y+2*T+1]=o+(h-o)*i,m[y+3*T]=c+(f-c)*i,m[y+3*T+1]=l+(d-l)*i;break;default:cc.errorID(2626)}},r.updateVerts=function(t,e,i){var n,r=t.node,s=r.width,o=r.height,c=r.anchorX*s,l=r.anchorY*o,u=-c,h=-l,f=s-c,d=o-l;switch(t._fillType){case a.HORIZONTAL:n=u+(f-u)*i,u+=(f-u)*e,f=n;break;case a.VERTICAL:n=h+(d-h)*i,h+=(d-h)*e,d=n;break;default:cc.errorID(2626)}var _=this._local;_[0]=u,_[1]=h,_[2]=f,_[3]=d,this.updateWorldVerts(t)},n})(r.default);i.default=o,e.exports=i.default}),{"../../../../../components/CCSprite":114,"../../../../assembler-2d":187}],213:[(function(t,e,i){"use strict";var n;function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}i.__esModule=!0,i.default=void 0;var s=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,r(e,i);var s=n.prototype;return s.initData=function(){this._renderData.createFlexData(0,4,6,this.getVfmt())},s.updateRenderData=function(t){this.packToDynamicAtlas(t,t._spriteFrame);var e=t.spriteFrame;if(e){var i=e.vertices;if(i){this.verticesCount=i.x.length,this.indicesCount=i.triangles.length;var n=this._renderData._flexBuffer;n.reserve(this.verticesCount,this.indicesCount)&&(this.updateColor(t),t._vertsDirty=!0),n.used(this.verticesCount,this.indicesCount),this.updateIndices(i.triangles),t._vertsDirty&&(this.updateUVs(t),this.updateVerts(t),this.updateWorldVerts(t),t._vertsDirty=!1)}}},s.updateIndices=function(t){this._renderData.iDatas[0].set(t)},s.updateUVs=function(t){for(var e=t.spriteFrame.vertices,i=e.nu,n=e.nv,r=this.uvOffset,s=this.floatsPerVert,a=this._renderData.vDatas[0],o=0;o0){var h=r.y+o*(t-r.x);a[0].x=t,a[0].y=h}if((e-r.x)*u>0){var f=r.y+o*(e-r.x);a[2].x=e,a[2].y=f}}if(0!==Math.sin(s)){if(c=u/l,(n-r.y)*l>0){var d=r.x+c*(n-r.y);a[3].x=d,a[3].y=n}if((i-r.y)*l>0){var _=r.x+c*(i-r.y);a[1].x=_,a[1].y=i}}}function p(t){var e=t.node,i=e.width,n=e.height,r=e.anchorX*i,s=e.anchorY*n,a=-r,l=-s,u=i-r,h=n-s,_=c;_[0]=a,_[1]=l,_[2]=u,_[3]=h;var p=t._fillCenter,v=f.x=Math.min(Math.max(0,p.x),1)*(u-a)+a,g=f.y=Math.min(Math.max(0,p.y),1)*(h-l)+l;o[0].x=o[3].x=a,o[1].x=o[2].x=u,o[0].y=o[1].y=l,o[2].y=o[3].y=h,d.length=0,v!==_[0]&&(d[0]=[3,0]),v!==_[2]&&(d[2]=[1,2]),g!==_[1]&&(d[1]=[0,1]),g!==_[3]&&(d[3]=[2,3])}function v(t,e){var i,n;if(i=e.x-t.x,n=e.y-t.y,0!==i||0!==n){if(0===i)return n>0?.5*Math.PI:1.5*Math.PI;var r=Math.atan(n/i);return i<0&&(r+=Math.PI),r}}var g=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.initData=function(){this._renderData.createFlexData(0,4,6,this.getVfmt()),this.updateIndices()},r.updateRenderData=function(e){t.prototype.updateRenderData.call(this,e);var i,n,r,s,o,d,v,g,m,y=e.spriteFrame;if(this.packToDynamicAtlas(e,y),e._vertsDirty){var T=e._fillStart,E=e._fillRange;for(E<0&&(T+=E,E=-E);T>=1;)T-=1;for(;T<0;)T+=1;T*=a,E*=a,p(e),d=(i=y)._texture.width,v=i._texture.height,g=i._rect,m=l,i._rotated?(n=g.x/d,r=(g.x+g.height)/d,s=g.y/v,o=(g.y+g.width)/v,m[0]=m[2]=n,m[4]=m[6]=r,m[3]=m[7]=o,m[1]=m[5]=s):(n=g.x/d,r=(g.x+g.width)/d,s=g.y/v,o=(g.y+g.height)/v,m[0]=m[4]=n,m[2]=m[6]=r,m[1]=m[3]=o,m[5]=m[7]=s),_(c[0],c[2],c[1],c[3],f,T,u),_(c[0],c[2],c[1],c[3],f,T+E,h),this.updateVerts(e,T,E),e._vertsDirty=!1}},r.updateVerts=function(t,e,i){var n=e+i,r=this._local;r.length=0;for(var s=0,c=3*this.floatsPerVert,l=0;l<4;++l){var _=d[l];if(_)if(i>=a)r.length=s+c,this._generateTriangle(r,s,f,o[_[0]],o[_[1]]),s+=c;else{var p=v(f,o[_[0]]),g=v(f,o[_[1]]);g=n||(p>=e?(r.length=s+c,g>=n?this._generateTriangle(r,s,f,o[_[0]],h[l]):this._generateTriangle(r,s,f,o[_[0]],o[_[1]]),s+=c):g<=e||(g<=n?(r.length=s+c,this._generateTriangle(r,s,f,u[l],o[_[1]]),s+=c):(r.length=s+c,this._generateTriangle(r,s,f,u[l],h[l]),s+=c))),p+=a,g+=a}}this.allocWorldVerts(t),this.updateWorldVerts(t)},r.allocWorldVerts=function(t){var e=t.node._color._val,i=this._renderData,n=this.floatsPerVert,r=this._local,s=r.length/n;this.verticesCount=this.indicesCount=s;var a=i._flexBuffer;a.reserve(s,s)&&this.updateIndices(),a.used(this.verticesCount,this.indicesCount);for(var o=i.vDatas[0],c=i.uintVDatas[0],l=this.uvOffset,u=0;u0)){this._renderData.createData(0,this.verticesFloats,this.indicesCount);for(var t=this._renderData.iDatas[0],e=0,i=0;i<3;++i)for(var n=0;n<3;++n){var r=4*i+n;t[e++]=r,t[e++]=r+1,t[e++]=r+4,t[e++]=r+1,t[e++]=r+5,t[e++]=r+4}}},s.initLocal=function(){this._local=[],this._local.length=8},s.updateRenderData=function(t){var e=t._spriteFrame;this.packToDynamicAtlas(t,e),t._vertsDirty&&(this.updateUVs(t),this.updateVerts(t),t._vertsDirty=!1)},s.updateVerts=function(t){var e=t.node,i=e.width,n=e.height,r=e.anchorX*i,s=e.anchorY*n,a=t.spriteFrame,o=a.insetLeft,c=a.insetRight,l=a.insetTop,u=a.insetBottom,h=i-o-c,f=n-l-u,d=i/(o+c),_=n/(l+u);d=isNaN(d)||d>1?1:d,_=isNaN(_)||_>1?1:_,h=h<0?0:h,f=f<0?0:f;var p=this._local;p[0]=-r,p[1]=-s,p[2]=o*d-r,p[3]=u*_-s,p[4]=p[2]+h,p[5]=p[3]+f,p[6]=i-r,p[7]=n-s,this.updateWorldVerts(t)},s.updateUVs=function(t){for(var e=this._renderData.vDatas[0],i=t.spriteFrame.uvSliced,n=this.uvOffset,r=this.floatsPerVert,s=0;s<4;++s)for(var a=0;a<4;++a){var o=4*s+a,c=i[o],l=o*r;e[l+n]=c.u,e[l+n+1]=c.v}},s.updateWorldVerts=function(t){for(var e=t.node._worldMatrix.m,i=e[0],n=e[1],r=e[4],s=e[5],a=e[12],o=e[13],c=this._local,l=this._renderData.vDatas[0],u=this.floatsPerVert,h=0;h<4;++h)for(var f=c[2*h+1],d=0;d<4;++d){var _=c[2*d],p=(4*h+d)*u;l[p]=_*i+f*r+a,l[p+1]=_*n+f*s+o}},n})(((n=t("../../../../assembler-2d"))&&n.__esModule?n:{default:n}).default);i.default=s,Object.assign(s.prototype,{verticesCount:16,indicesCount:54}),e.exports=i.default}),{"../../../../assembler-2d":187}],217:[(function(t,e,i){"use strict";var n;function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}i.__esModule=!0,i.default=void 0;var s=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,r(e,i);var s=n.prototype;return s.initData=function(){this.verticesCount=0,this.contentWidth=0,this.contentHeight=0,this.rectWidth=0,this.rectHeight=0,this.hRepeat=0,this.vRepeat=0,this.row=0,this.col=0,this._renderData.createFlexData(0,4,6,this.getVfmt()),this._updateIndices()},s.initLocal=function(){this._local={x:[],y:[]}},s._updateIndices=function(){for(var t=this._renderData.iDatas[0],e=0,i=0,n=t.length;e0?this.sizableWidth:0,this.sizableHeight=this.sizableHeight>0?this.sizableHeight:0;var f=this.hRepeat=0===c?this.sizableWidth:this.sizableWidth/c,d=this.vRepeat=0===h?this.sizableHeight:this.sizableHeight/h,_=(this.row=Math.ceil(d+2))*(this.col=Math.ceil(f+2));this.verticesCount=4*_,this.indicesCount=6*_;var p=this._renderData._flexBuffer;p.reserve(this.verticesCount,this.indicesCount)&&(this._updateIndices(),this.updateColor(t)),p.used(this.verticesCount,this.indicesCount),t._vertsDirty&&(this.updateUVs(t),this.updateVerts(t),t._vertsDirty=!1)},s.updateVerts=function(t){var e=t._spriteFrame,i=e._rect,n=t.node,r=n.anchorX*n.width,s=n.anchorY*n.height,a=this.row,o=this.col,c=this.contentWidth,l=this.contentHeight,u=this._local,h=u.x,f=u.y;h.length=f.length=0;var d,_,p=e.insetLeft,v=e.insetRight,g=i.width-p-v,m=e.insetTop,y=e.insetBottom,T=i.height-m-y,E=n.width/(p+v)>1?1:n.width/(p+v),A=n.height/(m+y)>1?1:n.height/(m+y);d=g>0?Math.floor(1e3*this.sizableWidth)/1e3%g==0?g:this.sizableWidth%g:this.sizableWidth,_=T>0?Math.floor(1e3*this.sizableHeight)/1e3%T==0?T:this.sizableHeight%T:this.sizableHeight;for(var C=0;C<=o;C++)0===C?h[C]=-r:C>0&&C0?C===o-1?p+d+g*(C-2)-r:p+Math.min(g,this.sizableWidth)+g*(C-2)-r:p+this.sizableWidth-r:C===o&&(h[C]=Math.min(p+this.sizableWidth+v,c)-r);for(var x=0;x<=a;x++)0===x?f[x]=-s:x>0&&x0?x===a-1?y+_+(x-2)*T-s:y+Math.min(T,this.sizableHeight)+(x-2)*T-s:y+this.sizableHeight-s:x===a&&(f[x]=Math.min(y+this.sizableHeight+m,l)-s);this.updateWorldVerts(t)},s.updateWorldVerts=function(t){for(var e,i,n,r,s=this._renderData,a=this._local,o=a.x,c=a.y,l=s.vDatas[0],u=this.row,h=this.col,f=t.node._worldMatrix.m,d=f[0],_=f[1],p=f[4],v=f[5],g=f[12],m=f[13],y=this.floatsPerVert,T=0,E=0,A=u;El?this.sizableHeight>=C*l?1:d%1:d;for(var b=0,S=h;ba?this.sizableWidth>=b*a?1:f%1:f,m?(0===C?(E[0]=g[0].u,E[1]=g[0].u,E[2]=g[4].u+(g[8].u-g[4].u)*p):C>2,n=this.vData.length,r=!1;if(i>n){for(;ns){for(;s>2,this._handler.updateMeshRange(t,e)},e.reset=function(){var t=this._initVerticesCount*this._verticesBytes>>2;this._reallocVData(t),this._reallocIData(this._initIndicesCount),this.usedVertices=0,this.usedVerticesFloats=0,this.usedIndices=0},t})();i.default=n,cc.FlexBuffer=n,e.exports=i.default}),{}],220:[(function(t,e){"use strict";var i,n=(i=t("../../../renderer/gfx"))&&i.__esModule?i:{default:i},r=(cc.sys.os===cc.sys.OS_IOS||cc.sys.os===cc.sys.OS_OSX)&&cc.sys.isBrowser&&/(OS 1[4-9])|(Version\/1[4-9])/.test(window.navigator.userAgent),s=cc.Class({name:"cc.MeshBuffer",ctor:function(t,e){this.init(t,e)},init:function(t,e){this.byteOffset=0,this.indiceOffset=0,this.vertexOffset=0,this.indiceStart=0,this._dirty=!1,this._vertexFormat=e,this._vertexBytes=this._vertexFormat._bytes,this._arrOffset=0,this._vbArr=[],this._vb=new n.default.VertexBuffer(t._device,e,n.default.USAGE_DYNAMIC,new ArrayBuffer,0),this._vbArr[0]=this._vb,this._ibArr=[],this._ib=new n.default.IndexBuffer(t._device,n.default.INDEX_FMT_UINT16,n.default.USAGE_STATIC,new ArrayBuffer,0),this._ibArr[0]=this._ib,this._vData=null,this._uintVData=null,this._iData=null,this._batcher=t,this._initVDataCount=256*e._bytes,this._initIDataCount=1536,this._offsetInfo={byteOffset:0,vertexOffset:0,indiceOffset:0},this._reallocBuffer()},uploadData:function(){if(0!==this.byteOffset&&this._dirty){var t=new Float32Array(this._vData.buffer,0,this.byteOffset>>2),e=new Uint16Array(this._iData.buffer,0,this.indiceOffset);this._vb.update(0,t),this._ib.update(0,e),this._dirty=!1}},switchBuffer:function(){var t=++this._arrOffset;this.byteOffset=0,this.vertexOffset=0,this.indiceOffset=0,this.indiceStart=0,t65535&&(this.uploadData(),this._batcher._flush(),this.switchBuffer())},requestStatic:function(t,e){this.checkAndSwitchBuffer(t);var i=this.byteOffset+t*this._vertexBytes,n=this.indiceOffset+e,r=this._vData.byteLength,s=this._iData.length;if(i>r||n>s){for(;r65535&&(this.uploadData(),this._batcher._flush())},s.prototype.forwardIndiceStartToOffset=function(){this.uploadData(),this.switchBuffer()}),cc.MeshBuffer=e.exports=s}),{"../../../renderer/gfx":277}],221:[(function(t,e){"use strict";var i=s(t("../../../renderer/core/input-assembler")),n=s(t("../../../renderer/memop/recycle-pool")),r=s(t("../../../renderer/scene/model"));function s(t){return t&&t.__esModule?t:{default:t}}var a=t("./vertex-format"),o=a.vfmtPosUvColor,c=a.vfmt3D,l=t("./quad-buffer"),u=t("./mesh-buffer"),h=t("./spine-buffer"),f=t("../../assets/material/CCMaterial"),d=(new(t("../../platform/id-generater"))("VertextFormat"),{}),_=new f,p=new i.default;p._count=0;var v=function(t,e){this._renderScene=e,this._device=t,this.walking=!1,this.material=_,this.cullingMask=1,this._iaPool=new n.default(function(){return new i.default},16),this._modelPool=new n.default(function(){return new r.default},16),this._quadBuffer=this.getBuffer("quad",o),this._meshBuffer=this.getBuffer("mesh",o),this._quadBuffer3D=this.getBuffer("quad",c),this._meshBuffer3D=this.getBuffer("mesh",c),this._buffer=this._meshBuffer,this._batchedModels=[],this._dummyNode=new cc.Node,this._sortKey=0,this.node=this._dummyNode,this.parentOpacity=1,this.parentOpacityDirty=0,this.worldMatDirty=0};v.prototype={constructor:v,reset:function(){this._iaPool.reset();for(var t=this._renderScene,e=this._batchedModels,i=0;i>2);this._vb.update(0,t),this._dirty=!1}},switchBuffer:function(){this._super();var t=new Uint16Array(this._iData.buffer,0,this._initIDataCount);this._ib.update(0,t)},_reallocBuffer:function(){this._reallocVData(!0),this._reallocIData(),this._fillQuadBuffer()}});cc.QuadBuffer=e.exports=n}),{"./mesh-buffer":220}],223:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=a;var n,r=(n=t("./flex-buffer"))&&n.__esModule?n:{default:n},s=t("./vertex-format");function a(){this.vDatas=[],this.uintVDatas=[],this.iDatas=[],this.meshCount=0,this._infos=null,this._flexBuffer=null}cc.js.mixin(a.prototype,{init:function(){},clear:function(){this.vDatas.length=0,this.iDatas.length=0,this.uintVDatas.length=0,this.meshCount=0,this._infos=null,this._flexBuffer&&this._flexBuffer.reset()},updateMesh:function(t,e,i){this.vDatas[t]=e,this.uintVDatas[t]=new Uint32Array(e.buffer,0,e.length),this.iDatas[t]=i,this.meshCount=this.vDatas.length},updateMeshRange:function(){},createData:function(t,e,i){var n=new Float32Array(e),r=new Uint16Array(i);this.updateMesh(t,n,r)},createQuadData:function(t,e,i){this.createData(t,e,i),this.initQuadIndices(this.iDatas[t])},createFlexData:function(t,e,i,n){n=n||s.vfmtPosUvColor,this._flexBuffer=new r.default(this,t,e,i,n)},initQuadIndices:function(t){for(var e=t.length/6,i=0,n=0;ir||n>s){for(;r0&&(t=t.substring(0,i));var n=/(\/|\\)([^\/\\]+)$/g.exec(t.replace(/(\/|\\)$/,""));if(!n)return t;var r=n[2];return e&&t.substring(t.length-e.length).toLowerCase()===e.toLowerCase()?r.substring(0,r.length-e.length):r},dirname:function(t){var e=n.exec(t);return e?e[2]:""},changeExtname:function(t,e){e=e||"";var i=t.indexOf("?"),n="";return i>0&&(n=t.substring(i),t=t.substring(0,i)),(i=t.lastIndexOf("."))<0?t+e+n:t.substring(0,i)+e+n},changeBasename:function(t,e,i){if(0===e.indexOf("."))return this.changeExtname(t,e);var n=t.indexOf("?"),r="",s=i?this.extname(t):"";return n>0&&(r=t.substring(n),t=t.substring(0,n)),n=(n=t.lastIndexOf("/"))<=0?0:n+1,t.substring(0,n)+e+s+r},_normalize:function(t){var e=t=String(t);do{e=t,t=t.replace(r,"")}while(e.length!==t.length);return t},sep:cc.sys.os===cc.sys.OS_WINDOWS?"\\":"/",stripSep:function(t){return t.replace(/[\/\\]$/,"")}},e.exports=cc.path}),{"../platform/CCSys":170}],227:[(function(t,e){"use strict";var i=function(t,e,i,n,r,s){this.a=t,this.b=e,this.c=i,this.d=n,this.tx=r,this.ty=s};i.create=function(t,e,i,n,r,s){return{a:t,b:e,c:i,d:n,tx:r,ty:s}},i.identity=function(){return{a:1,b:0,c:0,d:1,tx:0,ty:0}},i.clone=function(t){return{a:t.a,b:t.b,c:t.c,d:t.d,tx:t.tx,ty:t.ty}},i.concat=function(t,e,i){var n=e.a,r=e.b,s=e.c,a=e.d,o=e.tx,c=e.ty;return t.a=n*i.a+r*i.c,t.b=n*i.b+r*i.d,t.c=s*i.a+a*i.c,t.d=s*i.b+a*i.d,t.tx=o*i.a+c*i.c+i.tx,t.ty=o*i.b+c*i.d+i.ty,t},i.invert=function(t,e){var i=e.a,n=e.b,r=e.c,s=e.d,a=1/(i*s-n*r),o=e.tx,c=e.ty;return t.a=a*s,t.b=-a*n,t.c=-a*r,t.d=a*i,t.tx=a*(r*c-s*o),t.ty=a*(n*o-i*c),t},i.fromMat4=function(t,e){var i=e.m;return t.a=i[0],t.b=i[1],t.c=i[4],t.d=i[5],t.tx=i[12],t.ty=i[13],t},i.transformVec2=function(t,e,i,n){var r,s;return void 0===n?(n=i,r=e.x,s=e.y):(r=e,s=i),t.x=n.a*r+n.c*s+n.tx,t.y=n.b*r+n.d*s+n.ty,t},i.transformSize=function(t,e,i){return t.width=i.a*e.width+i.c*e.height,t.height=i.b*e.width+i.d*e.height,t},i.transformRect=function(t,e,i){var n=e.x,r=e.y,s=n+e.width,a=r+e.height,o=i.a*n+i.c*r+i.tx,c=i.b*n+i.d*r+i.ty,l=i.a*s+i.c*r+i.tx,u=i.b*s+i.d*r+i.ty,h=i.a*n+i.c*a+i.tx,f=i.b*n+i.d*a+i.ty,d=i.a*s+i.c*a+i.tx,_=i.b*s+i.d*a+i.ty,p=Math.min(o,l,h,d),v=Math.max(o,l,h,d),g=Math.min(c,u,f,_),m=Math.max(c,u,f,_);return t.x=p,t.y=g,t.width=v-p,t.height=m-g,t},i.transformObb=function(t,e,i,n,r,s){var a=r.x,o=r.y,c=r.width,l=r.height,u=s.a*a+s.c*o+s.tx,h=s.b*a+s.d*o+s.ty,f=s.a*c,d=s.b*c,_=s.c*l,p=s.d*l;e.x=u,e.y=h,i.x=f+u,i.y=d+h,t.x=_+u,t.y=p+h,n.x=f+_+u,n.y=d+p+h},cc.AffineTransform=e.exports=i}),{}],228:[(function(t,e){"use strict";var i=t("../platform/CCObject").Flags,n=t("./misc"),r=t("../platform/js"),s=t("../platform/id-generater"),a=t("../event-manager"),o=t("../renderer/render-flow"),c=i.Destroying,l=i.DontDestroy,u=i.Deactivating,h=new s("Node");function f(t){return t?"string"==typeof t?r.getClassByName(t):t:(cc.errorID(3804),null)}function d(t,e){if(e._sealed)for(var i=0;i0&&(r=p(n._children,e)))return r}return null}function v(t,e,i){for(var n=0;n0&&v(r._children,e,i)}}var g=cc.Class({name:"cc._BaseNode",extends:cc.Object,properties:{_parent:null,_children:[],_active:!0,_components:[],_prefab:null,_persistNode:{get:function(){return(this._objFlags&l)>0},set:function(t){t?this._objFlags|=l:this._objFlags&=~l}},name:{get:function(){return this._name},set:function(t){this._name=t}},uuid:{get:function(){return this._id}},children:{get:function(){return this._children}},childrenCount:{get:function(){return this._children.length}},active:{get:function(){return this._active},set:function(t){if(t=!!t,this._active!==t){this._active=t;var e=this._parent;e&&e._activeInHierarchy&&cc.director._nodeActivator.activateNode(this,t)}}},activeInHierarchy:{get:function(){return this._activeInHierarchy}}},ctor:function(t){this._name=void 0!==t?t:"New Node",this._activeInHierarchy=!1,this._id=h.getNewId(),cc.director._scheduler&&cc.director._scheduler.enableForTarget(this),this.__eventTargets=[]},getParent:function(){return this._parent},setParent:function(t){if(this._parent!==t){var e=this._parent;if(this._parent=t||null,this._onSetParent(t),t&&(a._setDirtyForNode(this),t._children.push(this),t.emit&&t.emit("child-added",this),t._renderFlag|=o.FLAG_CHILDREN),e){if(!(e._objFlags&c)){var i=e._children.indexOf(this);e._children.splice(i,1),e.emit&&e.emit("child-removed",this),this._onHierarchyChanged(e),0===e._children.length&&(e._renderFlag&=~o.FLAG_CHILDREN)}}else t&&this._onHierarchyChanged(null)}},attr:function(t){r.mixin(this,t)},getChildByUuid:function(t){if(!t)return cc.log("Invalid uuid"),null;for(var e=this._children,i=0,n=e.length;i0?(l=n,i=n._children,r=0,c[o]=i[r],o++):(c[o]=n,o++,s=!0);c.length=0,a._stackId--},cleanup:function(){},removeFromParent:function(t){this._parent&&(void 0===t&&(t=!0),this._parent.removeChild(this,t))},removeChild:function(t,e){this._children.indexOf(t)>-1&&((e||void 0===e)&&t.cleanup(),t.parent=null)},removeAllChildren:function(t){var e=this._children;void 0===t&&(t=!0);for(var i=e.length-1;i>=0;i--){var n=e[i];n&&(t&&n.cleanup(),n.parent=null)}this._children.length=0},isChildOf:function(t){var e=this;do{if(e===t)return!0;e=e._parent}while(e);return!1},getComponent:function(t){var e=f(t);return e?d(this,e):null},getComponents:function(t){var e=f(t),i=[];return e&&_(this,e,i),i},getComponentInChildren:function(t){var e=f(t);return e?p(this._children,e):null},getComponentsInChildren:function(t){var e=f(t),i=[];return e&&(_(this,e,i),v(this._children,e,i)),i},_checkMultipleComp:!1,addComponent:function(t){var e;if("string"==typeof t){if(!(e=r.getClassByName(t)))return cc.errorID(3807,t),cc._RFpeek()&&cc.errorID(3808,t),null}else{if(!t)return cc.errorID(3804),null;e=t}if("function"!=typeof e)return cc.errorID(3809),null;if(!r.isChildClassOf(e,cc.Component))return cc.errorID(3810),null;var i=e._requireComponent;if(i&&!this.getComponent(i)&&!this.addComponent(i))return null;var n=new e;return n.node=this,this._components.push(n),this._activeInHierarchy&&cc.director._nodeActivator.activateComp(n),n},_addComponentAt:!1,removeComponent:function(t){t?(t instanceof cc.Component||(t=this.getComponent(t)),t&&t.destroy()):cc.errorID(3813)},_getDependComponent:!1,_removeComponent:function(t){if(t){if(!(this._objFlags&c)){var e=this._components.indexOf(t);-1!==e?this._components.splice(e,1):t.node!==this&&cc.errorID(3815)}}else cc.errorID(3814)},destroy:function(){cc.Object.prototype.destroy.call(this)&&(this.active=!1)},destroyAllChildren:function(){for(var t=this._children,e=0;e>>1;i<=n;r=i+n>>>1){var s=t[r];if(s>e+1e-6)n=r-1;else{if(!(s>2],s[a[r++]]=n[(3&o)<<2|c>>4],s[a[r++]]=n[15&c]}return s.join("")}}),{"./misc":235}],232:[(function(t,e){"use strict";cc.find=e.exports=function(t,e){if(null==t)return cc.errorID(3814),null;if(e);else{var i=cc.director.getScene();if(!i)return null;e=i}for(var n=e,r="/"!==t[0]?0:1,s=t.split("/"),a=r;a>1,t|=t>>2,t|=t>>4,t|=t>>8,1+(t|=t>>16)},BUILTIN_CLASSID_RE:/^(?:cc|dragonBones|sp|ccsg)\..+/},r=new Array(123),s=0;s<123;++s)r[s]=64;for(var a=0;a<64;++a)r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charCodeAt(a)]=a;n.BASE64_VALUES=r,n.pushToMap=function(t,e,i,n){var r=t[e];r?Array.isArray(r)?n?(r.push(r[0]),r[0]=i):r.push(i):t[e]=n?[i,r]:[r,i]:t[e]=i},n.clampf=function(t,e,i){if(e>i){var n=e;e=i,i=n}return t=0&&this.removeAt(e)},n.removeAt=function(t){this.array.splice(t,1),t<=this.i&&--this.i},n.fastRemove=function(t){var e=this.array.indexOf(t);e>=0&&this.fastRemoveAt(e)},n.fastRemoveAt=function(t){var e=this.array;e[t]=e[e.length-1],--e.length,t<=this.i&&--this.i},n.push=function(t){this.array.push(t)},e.exports=i}),{}],237:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=(function(){function t(){this.enabled=!1,this.count=0,this.maxSize=1024}var e=t.prototype;return e.get=function(){},e.put=function(){},e.clear=function(){},t})();i.default=n,cc.pool={},n.register=function(t,e){cc.pool[t]=e},e.exports=i.default}),{}],238:[(function(t,e){"use strict";cc._PrefabInfo=cc.Class({name:"cc.PrefabInfo",properties:{root:null,asset:null,fileId:"",sync:!1}}),e.exports={syncWithPrefab:function(t){var e=t._prefab;if(!e.asset)return cc.errorID(3701,t.name),void(t._prefab=null);var i=t._objFlags,n=t._parent,r=t._id,s=t._name,a=t._active,o=t._eulerAngles.x,c=t._eulerAngles.y,l=t._eulerAngles.z,u=t._localZOrder,h=t._trs,f=h[0],d=h[1],_=h[2];cc.game._isCloning=!0,e.asset._doInstantiate(t),cc.game._isCloning=!1,t._objFlags=i,t._parent=n,t._id=r,t._prefab=e,t._name=s,t._active=a,t._localZOrder=u,(h=t._trs)[0]=f,h[1]=d,h[2]=_,t._eulerAngles.x=o,t._eulerAngles.y=c,t._eulerAngles.z=l}}}),{}],239:[(function(t,e){"use strict";var i=t("../../platform/CCMacro"),n=t("./perf-counter"),r=!1,s=15,a=null,o=null,c=null;function l(){if(!a){a={fps:{desc:"Framerate (FPS)",below:30,average:500},draws:{desc:"Draw Call"},frame:{desc:"Frame time (ms)",min:0,max:50,average:500},logic:{desc:"Game Logic (ms)",min:0,max:50,average:500,color:"#080"},render:{desc:"Renderer (ms)",min:0,max:50,average:500,color:"#f90"},mode:{desc:cc.game.renderType===cc.game.RENDER_TYPE_WEBGL?"WebGL":"Canvas",min:1}};var t=performance.now();for(var e in a)a[e]._counter=new n(e,a[e],t)}}function u(){if(!o||!o.isValid){(o=new cc.Node("PROFILER-NODE")).x=o.y=10,o.groupIndex=cc.Node.BuiltinGroupIndex.DEBUG,cc.Camera._setupDebugCamera(),o.zIndex=i.MAX_ZINDEX,cc.game.addPersistRootNode(o);var t=new cc.Node("LEFT-PANEL");t.anchorX=t.anchorY=0;var e=t.addComponent(cc.Label);e.fontSize=s,e.lineHeight=s,t.parent=o;var n=new cc.Node("RIGHT-PANEL");n.anchorX=1,n.anchorY=0,n.x=200;var r=n.addComponent(cc.Label);r.horizontalAlign=cc.Label.HorizontalAlign.RIGHT,r.fontSize=s,r.lineHeight=s,n.parent=o,cc.sys.platform!==cc.sys.BAIDU_GAME_SUB&&cc.sys.platform!==cc.sys.WECHAT_GAME_SUB&&(e.cacheMode=cc.Label.CacheMode.CHAR,r.cacheMode=cc.Label.CacheMode.CHAR),c={left:e,right:r}}}function h(){u();var t=cc.director._lastUpdate;a.frame._counter.start(t),a.logic._counter.start(t)}function f(){var t=performance.now();cc.director.isPaused()?a.frame._counter.start(t):a.logic._counter.end(t),a.render._counter.start(t)}function d(){var t=performance.now();a.render._counter.end(t),a.draws._counter.value=cc.renderer.drawCalls,a.frame._counter.end(t),a.fps._counter.frame(t);var e="",i="";for(var n in a){var r=a[n];r._counter.sample(t),e+=r.desc+"\n",i+=r._counter.human()+"\n"}c&&(c.left.string=e,c.right.string=i)}cc.profiler=e.exports={isShowingStats:function(){return r},hideStats:function(){r&&(o&&(o.active=!1),cc.director.off(cc.Director.EVENT_BEFORE_UPDATE,h),cc.director.off(cc.Director.EVENT_AFTER_UPDATE,f),cc.director.off(cc.Director.EVENT_AFTER_DRAW,d),r=!1)},showStats:function(){r||(l(),o&&(o.active=!0),cc.director.on(cc.Director.EVENT_BEFORE_UPDATE,h),cc.director.on(cc.Director.EVENT_AFTER_UPDATE,f),cc.director.on(cc.Director.EVENT_AFTER_DRAW,d),r=!0)}}}),{"../../platform/CCMacro":166,"./perf-counter":241}],240:[(function(t,e){"use strict";var i=cc.Class({name:"cc.Counter",ctor:function(t,e,i){this._id=t,this._opts=e||{},this._value=0,this._total=0,this._averageValue=0,this._accumValue=0,this._accumSamples=0,this._accumStart=i},properties:{value:{get:function(){return this._value},set:function(t){this._value=t}}},_average:function(t,e){if(this._opts.average){this._accumValue+=t,++this._accumSamples;var i=e;i-this._accumStart>=this._opts.average&&(this._averageValue=this._accumValue/this._accumSamples,this._accumValue=0,this._accumStart=i,this._accumSamples=0)}},sample:function(t){this._average(this._value,t)},human:function(){var t=this._opts.average?this._averageValue:this._value;return Math.round(100*t)/100},alarm:function(){return this._opts.below&&this._valuethis._opts.over}});e.exports=i}),{}],241:[(function(t,e){"use strict";var i=t("./counter"),n=cc.Class({name:"cc.PerfCounter",extends:i,ctor:function(t,e,i){this._time=i},start:function(t){this._time=t},end:function(t){this._value=t-this._time,this._average(this._value)},tick:function(){this.end(),this.start()},frame:function(t){var e=t,i=e-this._time;this._total++,i>(this._opts.average||1e3)&&(this._value=1e3*this._total/i,this._total=0,this._time=e,this._average(this._value))}});e.exports=n}),{"./counter":240}],242:[(function(t,e){"use strict";var i,n=new(((i=t("../platform/js"))&&i.__esModule?i:{default:i}).default.Pool)(2);function r(t){this.count=0,this.limit=t,this.datas={},this.head=null,this.tail=null}n.get=function(){return this._get()||{key:null,value:null,prev:null,next:null}},r.prototype.moveToHead=function(t){t.next=this.head,t.prev=null,null!==this.head&&(this.head.prev=t),this.head=t,null===this.tail&&(this.tail=t),this.count++,this.datas[t.key]=t},r.prototype.put=function(t,e){var i=n.get();if(i.key=t,i.value=e,this.count>=this.limit){var r=this.tail;delete this.datas[r.key],this.count--,this.tail=r.prev,this.tail.next=null,r.prev=null,r.next=null,n.put(r)}this.moveToHead(i)},r.prototype.remove=function(t){null!==t.prev?t.prev.next=t.next:this.head=t.next,null!==t.next?t.next.prev=t.prev:this.tail=t.prev,delete this.datas[t.key],this.count--},r.prototype.get=function(t){var e=this.datas[t];return e?(this.remove(e),this.moveToHead(e),e.value):null},r.prototype.clear=function(){this.count=0,this.datas={},this.head=null,this.tail=null},r.prototype.has=function(t){return!!this.datas[t]},r.prototype.delete=function(t){var e=this.datas[t];this.remove(e)};var s=new r(100),a={BASELINE_RATIO:.26,MIDDLE_RATIO:.37,BASELINE_OFFSET:0,label_wordRex:/([a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430-\u044f\u0410-\u042f\u0401\u0451]+|\S)/,label_symbolRex:/^[!,.:;'}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/,label_lastWordRex:/([a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430\xed\xec\xcd\xcc\xef\xc1\xc0\xe1\xe0\xc9\xc8\xd2\xd3\xf2\xf3\u0150\u0151\xd9\xda\u0170\xfa\u0171\xf1\xd1\xe6\xc6\u0153\u0152\xc3\xc2\xe3\xd4\xf5\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\xf3\xfa\u016f\u0165\u010f\u0148\u011a\u0160\u010c\u0158\u017d\xc1\xcd\xc9\xd3\xda\u0164\u017c\u017a\u015b\xf3\u0144\u0142\u0119\u0107\u0105\u017b\u0179\u015a\xd3\u0143\u0141\u0118\u0106\u0104-\u044f\u0410-\u042f\u0401\u0451]+|\S)$/,label_lastEnglish:/[a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430\xed\xec\xcd\xcc\xef\xc1\xc0\xe1\xe0\xc9\xc8\xd2\xd3\xf2\xf3\u0150\u0151\xd9\xda\u0170\xfa\u0171\xf1\xd1\xe6\xc6\u0153\u0152\xc3\xc2\xe3\xd4\xf5\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\xf3\xfa\u016f\u0165\u010f\u0148\u011a\u0160\u010c\u0158\u017d\xc1\xcd\xc9\xd3\xda\u0164\u017c\u017a\u015b\xf3\u0144\u0142\u0119\u0107\u0105\u017b\u0179\u015a\xd3\u0143\u0141\u0118\u0106\u0104-\u044f\u0410-\u042f\u0401\u0451]+$/,label_firstEnglish:/^[a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430\xed\xec\xcd\xcc\xef\xc1\xc0\xe1\xe0\xc9\xc8\xd2\xd3\xf2\xf3\u0150\u0151\xd9\xda\u0170\xfa\u0171\xf1\xd1\xe6\xc6\u0153\u0152\xc3\xc2\xe3\xd4\xf5\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\xf3\xfa\u016f\u0165\u010f\u0148\u011a\u0160\u010c\u0158\u017d\xc1\xcd\xc9\xd3\xda\u0164\u017c\u017a\u015b\xf3\u0144\u0142\u0119\u0107\u0105\u017b\u0179\u015a\xd3\u0143\u0141\u0118\u0106\u0104-\u044f\u0410-\u042f\u0401\u0451]/,highSurrogateRex:/[\uD800-\uDBFF]/,lowSurrogateRex:/[\uDC00-\uDFFF]/,label_wrapinspection:!0,__CHINESE_REG:/^[\u4E00-\u9FFF\u3400-\u4DFF]+$/,__JAPANESE_REG:/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g,__KOREAN_REG:/^[\u1100-\u11FF]|[\u3130-\u318F]|[\uA960-\uA97F]|[\uAC00-\uD7AF]|[\uD7B0-\uD7FF]+$/,isUnicodeCJK:function(t){return this.__CHINESE_REG.test(t)||this.__JAPANESE_REG.test(t)||this.__KOREAN_REG.test(t)},isUnicodeSpace:function(t){return(t=t.charCodeAt(0))>=9&&t<=13||32===t||133===t||160===t||5760===t||t>=8192&&t<=8202||8232===t||8233===t||8239===t||8287===t||12288===t},safeMeasureText:function(t,e,i){var n=(i||t.font)+"\ud83c\udfae"+e,r=s.get(n);if(null!==r)return r;var a=t.measureText(e),o=a&&a.width||0;return s.put(n,o),o},_safeSubstring:function(t,e,i){var n=e,r=i,s=t[e];if(this.lowSurrogateRex.test(s)&&n--,void 0!==i)if(i-1!==e){var a=t[i-1];this.highSurrogateRex.test(a)&&r--}else this.highSurrogateRex.test(s)&&r++;return t.substring(n,r)},fragmentText:function(t,e,i,n){var r=[];if(0===t.length||i<0)return r.push(""),r;for(var s=t;e>i&&s.length>1;){for(var a=s.length*(i/e)|0,o=this._safeSubstring(s,a),c=e-n(o),l=o,u=0,h=0;c>i&&h++<10;)a*=i/c,a|=0,c=e-n(o=this._safeSubstring(s,a));for(h=0;c<=i&&h++<10;){if(o){var f=this.label_wordRex.exec(o);u=f?f[0].length:1,l=o}a+=u,c=e-n(o=this._safeSubstring(s,a))}0==(a-=u)?(a=1,l=this._safeSubstring(s,1)):1===a&&this.highSurrogateRex.test(s[0])&&(a=2,l=this._safeSubstring(s,2));var d,_=this._safeSubstring(s,0,a);this.label_wrapinspection&&this.label_symbolRex.test(l||o)&&(0==(a-=(d=this.label_lastWordRex.exec(_))?d[0].length:0)&&(a=1),l=this._safeSubstring(s,a),_=this._safeSubstring(s,0,a)),this.label_firstEnglish.test(l)&&(d=this.label_lastEnglish.exec(_))&&_!==d[0]&&(a-=d[0].length,l=this._safeSubstring(s,a),_=this._safeSubstring(s,0,a)),0===r.length?r.push(_):(_=_.trimLeft()).length>0&&r.push(_),e=n(s=l||o)}return 0===r.length?r.push(s):(s=s.trimLeft()).length>0&&r.push(s),r}};cc.textUtils=e.exports=a}),{"../platform/js":182}],243:[(function(t,e){"use strict";var i=t("../assets/CCTexture2D"),n={loadImage:function(t,e,i){cc.assertID(t,3103);var n=cc.assetManager.assets.get(t);if(n)return n.loaded?(e&&e.call(i,null,n),n):(n.once("load",(function(){e&&e.call(i,null,n)}),i),n);cc.assetManager.loadRemote(t,(function(t,n){e&&e.call(i,t,n)}))},cacheImage:function(t,e){if(t&&e){var n=new i;return n.initWithElement(e),cc.assetManager.assets.add(t,n),n}},postLoadTexture:function(t,e){t.loaded?e&&e():t.nativeUrl?cc.assetManager.postLoadNative(t,e):e&&e()}};e.exports=n}),{"../assets/CCTexture2D":73}],244:[(function(t,e){"use strict";var i=t("./node-unit"),n=t("./node-mem-pool");e.exports={NodeMemPool:new n(i)}}),{"./node-mem-pool":246,"./node-unit":247}],245:[(function(t,e){"use strict";var i=function(t){this._unitClass=t,this._pool=[],this._findOrder=[]},n=i.prototype;n._initNative=function(){this._nativeMemPool=new renderer.MemPool},n._buildUnit=function(t){return new this._unitClass(t,this)},n._destroyUnit=function(t){this._pool[t]=null;for(var e=0,i=this._findOrder.length;e1&&e.isAllFree()&&this._destroyUnit(t.unitID),e},e.exports=i}),{}],246:[(function(t,e){"use strict";var i,n=t("./mem-pool"),r=function(t){n.call(this,t)};(i=function(){}).prototype=n.prototype;var s=r.prototype=new i;s._initNative=function(){this._nativeMemPool=new renderer.NodeMemPool},s._destroyUnit=function(t){n.prototype._destroyUnit.call(this,t)},e.exports=r}),{"./mem-pool":245}],247:[(function(t,e){"use strict";var i,n=t("../../value-types/utils"),r=(Uint32Array,10*n.FLOAT_BYTES),s=16*n.FLOAT_BYTES,a=16*n.FLOAT_BYTES,o=(Uint32Array,Uint32Array,Int32Array,Uint8Array,Uint8Array,Uint32Array,n.FLOAT_BYTES,t("./unit-base")),c=function(t,e){o.call(this,t,e);var i=this._contentNum;this.trsList=new n.FLOAT_ARRAY_TYPE(10*i),this.localMatList=new n.FLOAT_ARRAY_TYPE(16*i),this.worldMatList=new n.FLOAT_ARRAY_TYPE(16*i);for(var c=0;c",e=this._signData[2*e+0];for(var n=0,r="",s=this._contentNum,a=0;a");var o=t+n;console.log("unitID:",this.unitID,"spaceNum:",t,"calc using num:",n,"store using num:",this._data[1],"calc total num:",o,"actually total num:",this._contentNum),console.log("free info:",i),console.log("using info:",r),n!=this._data[1]&&cc.error("using num error","calc using num:",n,"store using num:",this._data[1]),t+n!=this._contentNum&&cc.error("total num error","calc total num:",o,"actually total num:",this._contentNum)},e.exports=i}),{}],249:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=a(t("./value-type")),r=a(t("../platform/CCClass")),s=a(t("../utils/misc"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i=0;i>>0)+(n<<16)+(i<<8)+(0|e),s}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,c(e,i),n.copy=function(t,e){return t.r=e.r,t.g=e.g,t.b=e.b,t.a=e.a,t},n.clone=function(t){return new n(t.r,t.g,t.b,t.a)},n.set=function(t,e,i,n,r){return void 0===e&&(e=255),void 0===i&&(i=255),void 0===n&&(n=255),void 0===r&&(r=255),t.r=e,t.g=i,t.b=n,t.a=r,t},n.fromHex=function(t,e){var i=e>>24&255,n=e>>16&255,r=e>>8&255,s=255&e;return t.r=i,t.g=n,t.b=r,t.a=s,t},n.fromHEX=function(t,e){return e=0===e.indexOf("#")?e.substring(1):e,t.r=parseInt(e.substr(0,2),16)||0,t.g=parseInt(e.substr(2,2),16)||0,t.b=parseInt(e.substr(4,2),16)||0,t.a=parseInt(e.substr(6,2),16)||255,t._val=(t.a<<24>>>0)+(t.b<<16)+(t.g<<8)+t.r,t},n.add=function(t,e,i){return t.r=e.r+i.r,t.g=e.g+i.g,t.b=e.b+i.b,t.a=e.a+i.a,t},n.subtract=function(t,e,i){return t.r=e.r-i.r,t.g=e.g-i.g,t.b=e.b-i.b,t.a=e.a-i.a,t},n.multiply=function(t,e,i){return t.r=e.r*i.r,t.g=e.g*i.g,t.b=e.b*i.b,t.a=e.a*i.a,t},n.divide=function(t,e,i){return t.r=e.r/i.r,t.g=e.g/i.g,t.b=e.b/i.b,t.a=e.a/i.a,t},n.scale=function(t,e,i){return t.r=e.r*i,t.g=e.g*i,t.b=e.b*i,t.a=e.a*i,t},n.lerp=function(t,e,i,n){var r=e.r,s=e.g,a=e.b,o=e.a;return t.r=r+n*(i.r-r),t.g=s+n*(i.g-s),t.b=a+n*(i.b-a),t.a=o+n*(i.a-o),t},n.toArray=function(t,e,i){void 0===i&&(i=0);var r=e instanceof n||e.a>1?1/255:1;return t[i+0]=e.r*r,t[i+1]=e.g*r,t[i+2]=e.b*r,t[i+3]=e.a*r,t},n.fromArray=function(t,e,i){return void 0===i&&(i=0),e.r=255*t[i+0],e.g=255*t[i+1],e.b=255*t[i+2],e.a=255*t[i+3],e},n.premultiplyAlpha=function(t,e){var i=e.a/255;return t.r=e.r*i,t.g=e.g*i,t.b=e.b*i,t._fastSetA(e.a),t};var r,a,l,u=n.prototype;return u.clone=function(){var t=new n;return t._val=this._val,t},u.equals=function(t){return t&&this._val===t._val},u.lerp=function(t,e,i){i=i||new n;var r=this.r,s=this.g,a=this.b,o=this.a;return i.r=r+(t.r-r)*e,i.g=s+(t.g-s)*e,i.b=a+(t.b-a)*e,i.a=o+(t.a-o)*e,i},u.toString=function(){return"rgba("+this.r.toFixed()+", "+this.g.toFixed()+", "+this.b.toFixed()+", "+this.a.toFixed()+")"},u.getR=function(){return 255&this._val},u.setR=function(t){return t=~~s.default.clampf(t,0,255),this._val=(4294967040&this._val|t)>>>0,this},u.getG=function(){return(65280&this._val)>>8},u.setG=function(t){return t=~~s.default.clampf(t,0,255),this._val=(4294902015&this._val|t<<8)>>>0,this},u.getB=function(){return(16711680&this._val)>>16},u.setB=function(t){return t=~~s.default.clampf(t,0,255),this._val=(4278255615&this._val|t<<16)>>>0,this},u.getA=function(){return(4278190080&this._val)>>>24},u.setA=function(t){return t=~~s.default.clampf(t,0,255),this._val=(16777215&this._val|t<<24)>>>0,this},u.toCSS=function(t){return t&&"rgba"!==t?"rgb"===t?"rgb("+this.r+","+this.g+","+this.b+")":"#"+this.toHEX(t):"rgba("+this.r+","+this.g+","+this.b+","+(this.a/255).toFixed(2)+")"},u.fromHEX=function(t){t=0===t.indexOf("#")?t.substring(1):t;var e=parseInt(t.substr(0,2),16)||0,i=parseInt(t.substr(2,2),16)||0,n=parseInt(t.substr(4,2),16)||0,r=parseInt(t.substr(6,2),16)||255;return this._val=(r<<24>>>0)+(n<<16)+(i<<8)+e,this},u.toHEX=function(t){var e=[(this.r<16?"0":"")+this.r.toString(16),(this.g<16?"0":"")+this.g.toString(16),(this.b<16?"0":"")+this.b.toString(16)];return"#rgb"===t?(e[0]=e[0][0],e[1]=e[1][0],e[2]=e[2][0]):"#rrggbbaa"===t&&e.push((this.a<16?"0":"")+this.a.toString(16)),e.join("")},u.toRGBValue=function(){return 16777215&this._val},u.fromHSV=function(t,e,i){var n,r,s;if(0===e)n=r=s=i;else if(0===i)n=r=s=0;else{1===t&&(t=0),t*=6;var a=Math.floor(t),o=t-a,c=i*(1-e),l=i*(1-e*o),u=i*(1-e*(1-o));switch(a){case 0:n=i,r=u,s=c;break;case 1:n=l,r=i,s=c;break;case 2:n=c,r=i,s=u;break;case 3:n=c,r=l,s=i;break;case 4:n=u,r=c,s=i;break;case 5:n=i,r=c,s=l}}return n*=255,r*=255,s*=255,this._val=(this.a<<24>>>0)+(s<<16)+(r<<8)+(0|n),this},u.toHSV=function(){var t=this.r/255,e=this.g/255,i=this.b/255,n={h:0,s:0,v:0},r=Math.max(t,e,i),s=Math.min(t,e,i),a=0;return n.v=r,n.s=r?(r-s)/r:0,n.s?(a=r-s,n.h=t===r?(e-i)/a:e===r?2+(i-t)/a:4+(t-e)/a,n.h/=6,n.h<0&&(n.h+=1)):n.h=0,n},u.set=function(t){return t._val?this._val=t._val:(this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a),this},u._fastSetA=function(t){this._val=(16777215&this._val|t<<24)>>>0},u.multiply=function(t){var e=(255&this._val)*t.r>>8,i=(65280&this._val)*t.g>>8,n=(16711680&this._val)*t.b>>8,r=((4278190080&this._val)>>>8)*t.a;return this._val=4278190080&r|16711680&n|65280&i|255&e,this},r=n,l=[{key:"WHITE",get:function(){return new n(255,255,255,255)}},{key:"BLACK",get:function(){return new n(0,0,0,255)}},{key:"TRANSPARENT",get:function(){return new n(0,0,0,0)}},{key:"GRAY",get:function(){return new n(127.5,127.5,127.5)}},{key:"RED",get:function(){return new n(255,0,0)}},{key:"GREEN",get:function(){return new n(0,255,0)}},{key:"BLUE",get:function(){return new n(0,0,255)}},{key:"YELLOW",get:function(){return new n(255,235,4)}},{key:"ORANGE",get:function(){return new n(255,127,0)}},{key:"CYAN",get:function(){return new n(0,255,255)}},{key:"MAGENTA",get:function(){return new n(255,0,255)}}],(a=[{key:"r",get:function(){return this.getR()},set:function(t){this.setR(t)}},{key:"g",get:function(){return this.getG()},set:function(t){this.setG(t)}},{key:"b",get:function(){return this.getB()},set:function(t){this.setB(t)}},{key:"a",get:function(){return this.getA()},set:function(t){this.setA(t)}}])&&o(r.prototype,a),l&&o(r,l),n})(n.default);i.default=l,l.div=l.divide,l.sub=l.subtract,l.mul=l.multiply,l.WHITE_R=l.WHITE,l.BLACK_R=l.BLACK,l.TRANSPARENT_R=l.TRANSPARENT,l.GRAY_R=l.GRAY,l.RED_R=l.RED,l.GREEN_R=l.GREEN,l.BLUE_R=l.BLUE,l.YELLOW_R=l.YELLOW,l.ORANGE_R=l.ORANGE,l.CYAN_R=l.CYAN,l.MAGENTA_R=l.MAGENTA,r.default.fastDefine("cc.Color",l,{r:0,g:0,b:0,a:255}),cc.Color=l,cc.color=function(t,e,i,n){return"string"==typeof t?(new l).fromHEX(t):"object"==typeof t?new l(t.r,t.g,t.b,t.a):new l(t,e,i,n)},e.exports=i.default}),{"../platform/CCClass":161,"../utils/misc":235,"./value-type":258}],250:[(function(t,e,i){"use strict";i.__esModule=!0;var n={Vec2:!0,Vec3:!0,Vec4:!0,Mat4:!0,Mat3:!0,Rect:!0,Size:!0,Color:!0,Quat:!0,Trs:!0};i.Vec4=i.Vec3=i.Vec2=i.Trs=i.Size=i.Rect=i.Quat=i.Mat4=i.Mat3=i.Color=void 0;var r=p(t("./vec2"));i.Vec2=r.default;var s=p(t("./vec3"));i.Vec3=s.default;var a=p(t("./vec4"));i.Vec4=a.default;var o=p(t("./mat4"));i.Mat4=o.default;var c=p(t("./mat3"));i.Mat3=c.default;var l=p(t("./rect"));i.Rect=l.default;var u=p(t("./size"));i.Size=u.default;var h=p(t("./color"));i.Color=h.default;var f=p(t("./quat"));i.Quat=f.default;var d=p(t("./trs"));i.Trs=d.default;var _=t("./utils");function p(t){return t&&t.__esModule?t:{default:t}}Object.keys(_).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||t in i&&i[t]===_[t]||(i[t]=_[t]))})),cc.math=e.exports}),{"./color":249,"./mat3":251,"./mat4":252,"./quat":253,"./rect":254,"./size":255,"./trs":256,"./utils":257,"./vec2":259,"./vec3":260,"./vec4":261}],251:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("../value-types/utils"),s=(n=t("./vec3"))&&n.__esModule?n:{default:n},a=(function(){function t(t,e,i,n,s,a,o,c,l){if(void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=1),void 0===a&&(a=0),void 0===o&&(o=0),void 0===c&&(c=0),void 0===l&&(l=1),this.m=void 0,t instanceof r.FLOAT_ARRAY_TYPE)this.m=t;else{this.m=new r.FLOAT_ARRAY_TYPE(9);var u=this.m;u[0]=t,u[1]=e,u[2]=i,u[3]=n,u[4]=s,u[5]=a,u[6]=o,u[7]=c,u[8]=l}}return t.create=function(e,i,n,r,s,a,o,c,l){return void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===s&&(s=1),void 0===a&&(a=0),void 0===o&&(o=0),void 0===c&&(c=0),void 0===l&&(l=1),new t(e,i,n,r,s,a,o,c,l)},t.clone=function(e){var i=e.m;return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},t.copy=function(t,e){return t.m.set(e.m),t},t.set=function(t,e,i,n,r,s,a,o,c,l){var u=t.m;return u[0]=e,u[1]=i,u[2]=n,u[3]=r,u[4]=s,u[5]=a,u[6]=o,u[7]=c,u[8]=l,t},t.identity=function(t){var e=t.m;return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,t},t.transpose=function(t,e){var i=e.m,n=t.m;if(t===e){var r=i[1],s=i[2],a=i[5];n[1]=i[3],n[2]=i[6],n[3]=r,n[5]=i[7],n[6]=s,n[7]=a}else n[0]=i[0],n[1]=i[3],n[2]=i[6],n[3]=i[1],n[4]=i[4],n[5]=i[7],n[6]=i[2],n[7]=i[5],n[8]=i[8];return t},t.invert=function(t,e){var i=e.m,n=t.m,r=i[0],s=i[1],a=i[2],o=i[3],c=i[4],l=i[5],u=i[6],h=i[7],f=i[8],d=f*c-l*h,_=-f*o+l*u,p=h*o-c*u,v=r*d+s*_+a*p;return v?(v=1/v,n[0]=d*v,n[1]=(-f*s+a*h)*v,n[2]=(l*s-a*c)*v,n[3]=_*v,n[4]=(f*r-a*u)*v,n[5]=(-l*r+a*o)*v,n[6]=p*v,n[7]=(-h*r+s*u)*v,n[8]=(c*r-s*o)*v,t):t},t.adjoint=function(t,e){var i=e.m,n=t.m,r=i[0],s=i[1],a=i[2],o=i[3],c=i[4],l=i[5],u=i[6],h=i[7],f=i[8];return n[0]=c*f-l*h,n[1]=a*h-s*f,n[2]=s*l-a*c,n[3]=l*u-o*f,n[4]=r*f-a*u,n[5]=a*o-r*l,n[6]=o*h-c*u,n[7]=s*u-r*h,n[8]=r*c-s*o,t},t.determinant=function(t){var e=t.m,i=e[0],n=e[1],r=e[2],s=e[3],a=e[4],o=e[5],c=e[6],l=e[7],u=e[8];return i*(u*a-o*l)+n*(-u*s+o*c)+r*(l*s-a*c)},t.multiply=function(t,e,i){var n=e.m,r=i.m,s=t.m,a=n[0],o=n[1],c=n[2],l=n[3],u=n[4],h=n[5],f=n[6],d=n[7],_=n[8],p=r[0],v=r[1],g=r[2],m=r[3],y=r[4],T=r[5],E=r[6],A=r[7],C=r[8];return s[0]=p*a+v*l+g*f,s[1]=p*o+v*u+g*d,s[2]=p*c+v*h+g*_,s[3]=m*a+y*l+T*f,s[4]=m*o+y*u+T*d,s[5]=m*c+y*h+T*_,s[6]=E*a+A*l+C*f,s[7]=E*o+A*u+C*d,s[8]=E*c+A*h+C*_,t},t.multiplyMat4=function(t,e,i){var n=e.m,r=i.m,s=t.m,a=n[0],o=n[1],c=n[2],l=n[3],u=n[4],h=n[5],f=n[6],d=n[7],_=n[8],p=r[0],v=r[1],g=r[2],m=r[4],y=r[5],T=r[6],E=r[8],A=r[9],C=r[10];return s[0]=p*a+v*l+g*f,s[1]=p*o+v*u+g*d,s[2]=p*c+v*h+g*_,s[3]=m*a+y*l+T*f,s[4]=m*o+y*u+T*d,s[5]=m*c+y*h+T*_,s[6]=E*a+A*l+C*f,s[7]=E*o+A*u+C*d,s[8]=E*c+A*h+C*_,t},t.translate=function(t,e,i){var n=e.m,r=t.m,s=n[0],a=n[1],o=n[2],c=n[3],l=n[4],u=n[5],h=n[6],f=n[7],d=n[8],_=i.x,p=i.y;return r[0]=s,r[1]=a,r[2]=o,r[3]=c,r[4]=l,r[5]=u,r[6]=_*s+p*c+h,r[7]=_*a+p*l+f,r[8]=_*o+p*u+d,t},t.rotate=function(t,e,i){var n=e.m,r=t.m,s=n[0],a=n[1],o=n[2],c=n[3],l=n[4],u=n[5],h=n[6],f=n[7],d=n[8],_=Math.sin(i),p=Math.cos(i);return r[0]=p*s+_*c,r[1]=p*a+_*l,r[2]=p*o+_*u,r[3]=p*c-_*s,r[4]=p*l-_*a,r[5]=p*u-_*o,r[6]=h,r[7]=f,r[8]=d,t},t.scale=function(t,e,i){var n=i.x,r=i.y,s=e.m,a=t.m;return a[0]=n*s[0],a[1]=n*s[1],a[2]=n*s[2],a[3]=r*s[3],a[4]=r*s[4],a[5]=r*s[5],a[6]=s[6],a[7]=s[7],a[8]=s[8],t},t.fromMat4=function(t,e){var i=e.m,n=t.m;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[4],n[4]=i[5],n[5]=i[6],n[6]=i[8],n[7]=i[9],n[8]=i[10],t},t.fromTranslation=function(t,e){var i=t.m;return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=1,i[5]=0,i[6]=e.x,i[7]=e.y,i[8]=1,t},t.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e),r=t.m;return r[0]=n,r[1]=i,r[2]=0,r[3]=-i,r[4]=n,r[5]=0,r[6]=0,r[7]=0,r[8]=1,t},t.fromScaling=function(t,e){var i=t.m;return i[0]=e.x,i[1]=0,i[2]=0,i[3]=0,i[4]=e.y,i[5]=0,i[6]=0,i[7]=0,i[8]=1,t},t.fromQuat=function(t,e){var i=t.m,n=e.x,r=e.y,s=e.z,a=e.w,o=n+n,c=r+r,l=s+s,u=n*o,h=r*o,f=r*c,d=s*o,_=s*c,p=s*l,v=a*o,g=a*c,m=a*l;return i[0]=1-f-p,i[3]=h-m,i[6]=d+g,i[1]=h+m,i[4]=1-u-p,i[7]=_-v,i[2]=d-g,i[5]=_+v,i[8]=1-u-f,t},t.fromViewUp=function(e,i,n){var a,o,c;return(a=new s.default(0,1,0),o=new s.default,c=new s.default,function(e,i,n){return s.default.lengthSqr(i)0?(r=2*Math.sqrt(n+1),t.w=.25*r,t.x=(i[6]-i[9])/r,t.y=(i[8]-i[2])/r,t.z=(i[1]-i[4])/r):i[0]>i[5]&&i[0]>i[10]?(r=2*Math.sqrt(1+i[0]-i[5]-i[10]),t.w=(i[6]-i[9])/r,t.x=.25*r,t.y=(i[1]+i[4])/r,t.z=(i[8]+i[2])/r):i[5]>i[10]?(r=2*Math.sqrt(1+i[5]-i[0]-i[10]),t.w=(i[8]-i[2])/r,t.x=(i[1]+i[4])/r,t.y=.25*r,t.z=(i[6]+i[9])/r):(r=2*Math.sqrt(1+i[10]-i[0]-i[5]),t.w=(i[1]-i[4])/r,t.x=(i[8]+i[2])/r,t.y=(i[6]+i[9])/r,t.z=.25*r),t},r.toRTS=function(t,e,i,n){var r=t.m,o=M.m;n.x=s.default.set(R,r[0],r[1],r[2]).mag(),o[0]=r[0]/n.x,o[1]=r[1]/n.x,o[2]=r[2]/n.x,n.y=s.default.set(R,r[4],r[5],r[6]).mag(),o[3]=r[4]/n.y,o[4]=r[5]/n.y,o[5]=r[6]/n.y,n.z=s.default.set(R,r[8],r[9],r[10]).mag(),o[6]=r[8]/n.z,o[7]=r[9]/n.z,o[8]=r[10]/n.z,c.default.determinant(M)<0&&(n.x*=-1,o[0]*=-1,o[1]*=-1,o[2]*=-1),a.default.fromMat3(e,M),s.default.set(i,r[12],r[13],r[14])},r.fromRTS=function(t,e,i,n){var r=e.x,s=e.y,a=e.z,o=e.w,c=r+r,l=s+s,u=a+a,h=r*c,f=r*l,d=r*u,_=s*l,p=s*u,v=a*u,g=o*c,m=o*l,y=o*u,T=n.x,E=n.y,A=n.z,C=t.m;return C[0]=(1-(_+v))*T,C[1]=(f+y)*T,C[2]=(d-m)*T,C[3]=0,C[4]=(f-y)*E,C[5]=(1-(h+v))*E,C[6]=(p+g)*E,C[7]=0,C[8]=(d+m)*A,C[9]=(p-g)*A,C[10]=(1-(h+_))*A,C[11]=0,C[12]=i.x,C[13]=i.y,C[14]=i.z,C[15]=1,t},r.fromRTSOrigin=function(t,e,i,n,r){var s=e.x,a=e.y,o=e.z,c=e.w,l=s+s,u=a+a,h=o+o,f=s*l,d=s*u,_=s*h,p=a*u,v=a*h,g=o*h,m=c*l,y=c*u,T=c*h,E=n.x,A=n.y,C=n.z,x=r.x,b=r.y,S=r.z,w=t.m;return w[0]=(1-(p+g))*E,w[1]=(d+T)*E,w[2]=(_-y)*E,w[3]=0,w[4]=(d-T)*A,w[5]=(1-(f+g))*A,w[6]=(v+m)*A,w[7]=0,w[8]=(_+y)*C,w[9]=(v-m)*C,w[10]=(1-(f+p))*C,w[11]=0,w[12]=i.x+x-(w[0]*x+w[4]*b+w[8]*S),w[13]=i.y+b-(w[1]*x+w[5]*b+w[9]*S),w[14]=i.z+S-(w[2]*x+w[6]*b+w[10]*S),w[15]=1,t},r.fromQuat=function(t,e){var i=e.x,n=e.y,r=e.z,s=e.w,a=i+i,o=n+n,c=r+r,l=i*a,u=n*a,h=n*o,f=r*a,d=r*o,_=r*c,p=s*a,v=s*o,g=s*c,m=t.m;return m[0]=1-h-_,m[1]=u+g,m[2]=f-v,m[3]=0,m[4]=u-g,m[5]=1-l-_,m[6]=d+p,m[7]=0,m[8]=f+v,m[9]=d-p,m[10]=1-l-h,m[11]=0,m[12]=0,m[13]=0,m[14]=0,m[15]=1,t},r.frustum=function(t,e,i,n,r,s,a){var o=1/(i-e),c=1/(r-n),l=1/(s-a),u=t.m;return u[0]=2*s*o,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=2*s*c,u[6]=0,u[7]=0,u[8]=(i+e)*o,u[9]=(r+n)*c,u[10]=(a+s)*l,u[11]=-1,u[12]=0,u[13]=0,u[14]=a*s*2*l,u[15]=0,t},r.perspective=function(t,e,i,n,r){var s=1/Math.tan(e/2),a=1/(n-r),o=t.m;return o[0]=s/i,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=s,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=(r+n)*a,o[11]=-1,o[12]=0,o[13]=0,o[14]=2*r*n*a,o[15]=0,t},r.ortho=function(t,e,i,n,r,s,a){var o=1/(e-i),c=1/(n-r),l=1/(s-a),u=t.m;return u[0]=-2*o,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=-2*c,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=2*l,u[11]=0,u[12]=(e+i)*o,u[13]=(r+n)*c,u[14]=(a+s)*l,u[15]=1,t},r.lookAt=function(t,e,i,n){var r=e.x,s=e.y,a=e.z,o=n.x,c=n.y,l=n.z,u=r-i.x,h=s-i.y,f=a-i.z,d=1/Math.sqrt(u*u+h*h+f*f),_=c*(f*=d)-l*(h*=d),p=l*(u*=d)-o*f,v=o*h-c*u,g=h*(v*=d=1/Math.sqrt(_*_+p*p+v*v))-f*(p*=d),m=f*(_*=d)-u*v,y=u*p-h*_,T=t.m;return T[0]=_,T[1]=g,T[2]=u,T[3]=0,T[4]=p,T[5]=m,T[6]=h,T[7]=0,T[8]=v,T[9]=y,T[10]=f,T[11]=0,T[12]=-(_*r+p*s+v*a),T[13]=-(g*r+m*s+y*a),T[14]=-(u*r+h*s+f*a),T[15]=1,t},r.inverseTranspose=function(t,e){var i=e.m;h=i[0],f=i[1],d=i[2],_=i[3],p=i[4],v=i[5],g=i[6],m=i[7],y=i[8],T=i[9],E=i[10],A=i[11],C=i[12],x=i[13],b=i[14],S=i[15];var n=h*v-f*p,r=h*g-d*p,s=h*m-_*p,a=f*g-d*v,o=f*m-_*v,c=d*m-_*g,l=y*x-T*C,u=y*b-E*C,w=y*S-A*C,R=T*b-E*x,M=T*S-A*x,I=E*S-A*b,O=n*I-r*M+s*R+a*w-o*u+c*l;return O?(O=1/O,(i=t.m)[0]=(v*I-g*M+m*R)*O,i[1]=(g*w-p*I-m*u)*O,i[2]=(p*M-v*w+m*l)*O,i[3]=0,i[4]=(d*M-f*I-_*R)*O,i[5]=(h*I-d*w+_*u)*O,i[6]=(f*w-h*M-_*l)*O,i[7]=0,i[8]=(x*c-b*o+S*a)*O,i[9]=(b*s-C*c-S*r)*O,i[10]=(C*o-x*s+S*n)*O,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,t):null},r.add=function(t,e,i){var n=t.m,r=e.m,s=i.m;return n[0]=r[0]+s[0],n[1]=r[1]+s[1],n[2]=r[2]+s[2],n[3]=r[3]+s[3],n[4]=r[4]+s[4],n[5]=r[5]+s[5],n[6]=r[6]+s[6],n[7]=r[7]+s[7],n[8]=r[8]+s[8],n[9]=r[9]+s[9],n[10]=r[10]+s[10],n[11]=r[11]+s[11],n[12]=r[12]+s[12],n[13]=r[13]+s[13],n[14]=r[14]+s[14],n[15]=r[15]+s[15],t},r.subtract=function(t,e,i){var n=t.m,r=e.m,s=i.m;return n[0]=r[0]-s[0],n[1]=r[1]-s[1],n[2]=r[2]-s[2],n[3]=r[3]-s[3],n[4]=r[4]-s[4],n[5]=r[5]-s[5],n[6]=r[6]-s[6],n[7]=r[7]-s[7],n[8]=r[8]-s[8],n[9]=r[9]-s[9],n[10]=r[10]-s[10],n[11]=r[11]-s[11],n[12]=r[12]-s[12],n[13]=r[13]-s[13],n[14]=r[14]-s[14],n[15]=r[15]-s[15],t},r.multiplyScalar=function(t,e,i){var n=t.m,r=e.m;return n[0]=r[0]*i,n[1]=r[1]*i,n[2]=r[2]*i,n[3]=r[3]*i,n[4]=r[4]*i,n[5]=r[5]*i,n[6]=r[6]*i,n[7]=r[7]*i,n[8]=r[8]*i,n[9]=r[9]*i,n[10]=r[10]*i,n[11]=r[11]*i,n[12]=r[12]*i,n[13]=r[13]*i,n[14]=r[14]*i,n[15]=r[15]*i,t},r.multiplyScalarAndAdd=function(t,e,i,n){var r=t.m,s=e.m,a=i.m;return r[0]=s[0]+a[0]*n,r[1]=s[1]+a[1]*n,r[2]=s[2]+a[2]*n,r[3]=s[3]+a[3]*n,r[4]=s[4]+a[4]*n,r[5]=s[5]+a[5]*n,r[6]=s[6]+a[6]*n,r[7]=s[7]+a[7]*n,r[8]=s[8]+a[8]*n,r[9]=s[9]+a[9]*n,r[10]=s[10]+a[10]*n,r[11]=s[11]+a[11]*n,r[12]=s[12]+a[12]*n,r[13]=s[13]+a[13]*n,r[14]=s[14]+a[14]*n,r[15]=s[15]+a[15]*n,t},r.strictEquals=function(t,e){var i=t.m,n=e.m;return i[0]===n[0]&&i[1]===n[1]&&i[2]===n[2]&&i[3]===n[3]&&i[4]===n[4]&&i[5]===n[5]&&i[6]===n[6]&&i[7]===n[7]&&i[8]===n[8]&&i[9]===n[9]&&i[10]===n[10]&&i[11]===n[11]&&i[12]===n[12]&&i[13]===n[13]&&i[14]===n[14]&&i[15]===n[15]},r.equals=function(t,e,i){void 0===i&&(i=o.EPSILON);var n=t.m,r=e.m;return Math.abs(n[0]-r[0])<=i*Math.max(1,Math.abs(n[0]),Math.abs(r[0]))&&Math.abs(n[1]-r[1])<=i*Math.max(1,Math.abs(n[1]),Math.abs(r[1]))&&Math.abs(n[2]-r[2])<=i*Math.max(1,Math.abs(n[2]),Math.abs(r[2]))&&Math.abs(n[3]-r[3])<=i*Math.max(1,Math.abs(n[3]),Math.abs(r[3]))&&Math.abs(n[4]-r[4])<=i*Math.max(1,Math.abs(n[4]),Math.abs(r[4]))&&Math.abs(n[5]-r[5])<=i*Math.max(1,Math.abs(n[5]),Math.abs(r[5]))&&Math.abs(n[6]-r[6])<=i*Math.max(1,Math.abs(n[6]),Math.abs(r[6]))&&Math.abs(n[7]-r[7])<=i*Math.max(1,Math.abs(n[7]),Math.abs(r[7]))&&Math.abs(n[8]-r[8])<=i*Math.max(1,Math.abs(n[8]),Math.abs(r[8]))&&Math.abs(n[9]-r[9])<=i*Math.max(1,Math.abs(n[9]),Math.abs(r[9]))&&Math.abs(n[10]-r[10])<=i*Math.max(1,Math.abs(n[10]),Math.abs(r[10]))&&Math.abs(n[11]-r[11])<=i*Math.max(1,Math.abs(n[11]),Math.abs(r[11]))&&Math.abs(n[12]-r[12])<=i*Math.max(1,Math.abs(n[12]),Math.abs(r[12]))&&Math.abs(n[13]-r[13])<=i*Math.max(1,Math.abs(n[13]),Math.abs(r[13]))&&Math.abs(n[14]-r[14])<=i*Math.max(1,Math.abs(n[14]),Math.abs(r[14]))&&Math.abs(n[15]-r[15])<=i*Math.max(1,Math.abs(n[15]),Math.abs(r[15]))},r.adjoint=function(t,e){var i=e.m,n=t.m,r=i[0],s=i[1],a=i[2],o=i[3],c=i[4],l=i[5],u=i[6],h=i[7],f=i[8],d=i[9],_=i[10],p=i[11],v=i[12],g=i[13],m=i[14],y=i[15];return n[0]=l*(_*y-p*m)-d*(u*y-h*m)+g*(u*p-h*_),n[1]=-(s*(_*y-p*m)-d*(a*y-o*m)+g*(a*p-o*_)),n[2]=s*(u*y-h*m)-l*(a*y-o*m)+g*(a*h-o*u),n[3]=-(s*(u*p-h*_)-l*(a*p-o*_)+d*(a*h-o*u)),n[4]=-(c*(_*y-p*m)-f*(u*y-h*m)+v*(u*p-h*_)),n[5]=r*(_*y-p*m)-f*(a*y-o*m)+v*(a*p-o*_),n[6]=-(r*(u*y-h*m)-c*(a*y-o*m)+v*(a*h-o*u)),n[7]=r*(u*p-h*_)-c*(a*p-o*_)+f*(a*h-o*u),n[8]=c*(d*y-p*g)-f*(l*y-h*g)+v*(l*p-h*d),n[9]=-(r*(d*y-p*g)-f*(s*y-o*g)+v*(s*p-o*d)),n[10]=r*(l*y-h*g)-c*(s*y-o*g)+v*(s*h-o*l),n[11]=-(r*(l*p-h*d)-c*(s*p-o*d)+f*(s*h-o*l)),n[12]=-(c*(d*m-_*g)-f*(l*m-u*g)+v*(l*_-u*d)),n[13]=r*(d*m-_*g)-f*(s*m-a*g)+v*(s*_-a*d),n[14]=-(r*(l*m-u*g)-c*(s*m-a*g)+v*(s*u-a*l)),n[15]=r*(l*_-u*d)-c*(s*_-a*d)+f*(s*u-a*l),t},r.toArray=function(t,e,i){void 0===i&&(i=0);for(var n=e.m,r=0;r<16;r++)t[i+r]=n[r];return t},r.fromArray=function(t,e,i){void 0===i&&(i=0);for(var n=t.m,r=0;r<16;r++)n[r]=e[i+r];return t},n.clone=function(){var t=this.m;return new r(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},n.set=function(t){var e=this.m,i=t.m;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},n.equals=function(t){return r.strictEquals(this,t)},n.fuzzyEquals=function(t){return r.equals(this,t)},n.toString=function(){var t=this.m;return t?"[\n"+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+",\n"+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+",\n"+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+",\n"+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+"\n]":"[\n1, 0, 0, 0\n0, 1, 0, 0\n0, 0, 1, 0\n0, 0, 0, 1\n]"},n.identity=function(){return r.identity(this)},n.transpose=function(t){return t=t||new r,r.transpose(t,this)},n.invert=function(t){return t=t||new r,r.invert(t,this)},n.adjoint=function(t){return t=t||new r,r.adjoint(t,this)},n.determinant=function(){return r.determinant(this)},n.add=function(t,e){return e=e||new r,r.add(e,this,t)},n.subtract=function(t){return r.subtract(this,this,t)},n.multiply=function(t){return r.multiply(this,this,t)},n.multiplyScalar=function(t){return r.multiplyScalar(this,this,t)},n.translate=function(t,e){return e=e||new r,r.translate(e,this,t)},n.scale=function(t,e){return e=e||new r,r.scale(e,this,t)},n.rotate=function(t,e,i){return i=i||new r,r.rotate(i,this,t,e)},n.getTranslation=function(t){return t=t||new s.default,r.getTranslation(t,this)},n.getScale=function(t){return t=t||new s.default,r.getScaling(t,this)},n.getRotation=function(t){return t=t||new a.default,r.getRotation(t,this)},n.fromRTS=function(t,e,i){return r.fromRTS(this,t,e,i)},n.fromQuat=function(t){return r.fromQuat(this,t)},r})(n.default);i.default=w,w.mul=w.multiply,w.sub=w.subtract,w.IDENTITY=Object.freeze(new w);var R=new s.default,M=new c.default;r.default.fastDefine("cc.Mat4",w,{m00:1,m01:0,m02:0,m03:0,m04:0,m05:1,m06:0,m07:0,m08:0,m09:0,m10:1,m11:0,m12:0,m13:0,m14:0,m15:1});for(var I=function(t){Object.defineProperty(w.prototype,"m"+t,{get:function(){return this.m[t]},set:function(e){this.m[t]=e}})},O=0;O<16;O++)I(O);cc.mat4=function(t,e,i,n,r,s,a,o,c,l,u,h,f,d,_,p){var v=new w(t,e,i,n,r,s,a,o,c,l,u,h,f,d,_,p);return void 0===t&&w.identity(v),v},cc.Mat4=w,e.exports=i.default}),{"../platform/CCClass":161,"./mat3":251,"./quat":253,"./utils":257,"./value-type":258,"./vec3":260}],253:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=c(t("./value-type")),r=c(t("../platform/CCClass")),s=c(t("./vec3")),a=c(t("./mat3")),o=t("./utils");function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=0,h=0,f=0,d=0,_=(function(t){var e,i;i=t,(e=r).prototype=Object.create(i.prototype),e.prototype.constructor=e,l(e,i);var n=r.prototype;function r(e,i,n,r){var s;return void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=1),(s=t.call(this)||this).x=void 0,s.y=void 0,s.z=void 0,s.w=void 0,e&&"object"==typeof e?(s.x=e.x,s.y=e.y,s.z=e.z,s.w=e.w):(s.x=e,s.y=i,s.z=n,s.w=r),s}return n.mul=function(t,e){return r.multiply(e||new r,this,t)},r.clone=function(t){return new r(t.x,t.y,t.z,t.w)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t},r.set=function(t,e,i,n,r){return t.x=e,t.y=i,t.z=n,t.w=r,t},r.identity=function(t){return t.x=0,t.y=0,t.z=0,t.w=1,t},r.rotationTo=function(t,e,i){var n=s.default.dot(e,i);return n<-.999999?(s.default.cross(g,s.default.RIGHT,e),g.mag()<1e-6&&s.default.cross(g,s.default.UP,e),s.default.normalize(g,g),r.fromAxisAngle(t,g,Math.PI),t):n>.999999?(t.x=0,t.y=0,t.z=0,t.w=1,t):(s.default.cross(g,e,i),t.x=g.x,t.y=g.y,t.z=g.z,t.w=1+n,r.normalize(t,t))},r.getAxisAngle=function(t,e){var i=2*Math.acos(e.w),n=Math.sin(i/2);return 0!==n?(t.x=e.x/n,t.y=e.y/n,t.z=e.z/n):(t.x=1,t.y=0,t.z=0),i},r.multiply=function(t,e,i){return u=e.x*i.w+e.w*i.x+e.y*i.z-e.z*i.y,h=e.y*i.w+e.w*i.y+e.z*i.x-e.x*i.z,f=e.z*i.w+e.w*i.z+e.x*i.y-e.y*i.x,d=e.w*i.w-e.x*i.x-e.y*i.y-e.z*i.z,t.x=u,t.y=h,t.z=f,t.w=d,t},r.multiplyScalar=function(t,e,i){return t.x=e.x*i,t.y=e.y*i,t.z=e.z*i,t.w=e.w*i,t},r.scaleAndAdd=function(t,e,i,n){return t.x=e.x+i.x*n,t.y=e.y+i.y*n,t.z=e.z+i.z*n,t.w=e.w+i.w*n,t},r.rotateX=function(t,e,i){i*=.5;var n=Math.sin(i),r=Math.cos(i);return u=e.x*r+e.w*n,h=e.y*r+e.z*n,f=e.z*r-e.y*n,d=e.w*r-e.x*n,t.x=u,t.y=h,t.z=f,t.w=d,t},r.rotateY=function(t,e,i){i*=.5;var n=Math.sin(i),r=Math.cos(i);return u=e.x*r-e.z*n,h=e.y*r+e.w*n,f=e.z*r+e.x*n,d=e.w*r-e.y*n,t.x=u,t.y=h,t.z=f,t.w=d,t},r.rotateZ=function(t,e,i){i*=.5;var n=Math.sin(i),r=Math.cos(i);return u=e.x*r+e.y*n,h=e.y*r-e.x*n,f=e.z*r+e.w*n,d=e.w*r-e.z*n,t.x=u,t.y=h,t.z=f,t.w=d,t},r.rotateAround=function(t,e,i,n){return r.invert(p,e),s.default.transformQuat(g,i,p),r.fromAxisAngle(p,g,n),r.multiply(t,e,p),t},r.rotateAroundLocal=function(t,e,i,n){return r.fromAxisAngle(p,i,n),r.multiply(t,e,p),t},r.calculateW=function(t,e){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=Math.sqrt(Math.abs(1-e.x*e.x-e.y*e.y-e.z*e.z)),t},r.dot=function(t,e){return t.x*e.x+t.y*e.y+t.z*e.z+t.w*e.w},r.lerp=function(t,e,i,n){return t.x=e.x+n*(i.x-e.x),t.y=e.y+n*(i.y-e.y),t.z=e.z+n*(i.z-e.z),t.w=e.w+n*(i.w-e.w),t},r.slerp=function(t,e,i,n){var r=0,s=0,a=e.x*i.x+e.y*i.y+e.z*i.z+e.w*i.w;if(a<0&&(a=-a,i.x=-i.x,i.y=-i.y,i.z=-i.z,i.w=-i.w),1-a>1e-6){var o=Math.acos(a),c=Math.sin(o);r=Math.sin((1-n)*o)/c,s=Math.sin(n*o)/c}else r=1-n,s=n;return t.x=r*e.x+s*i.x,t.y=r*e.y+s*i.y,t.z=r*e.z+s*i.z,t.w=r*e.w+s*i.w,t},r.sqlerp=function(t,e,i,n,s,a){return r.slerp(p,e,s,a),r.slerp(v,i,n,a),r.slerp(t,p,v,2*a*(1-a)),t},r.invert=function(t,e){var i=e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w,n=i?1/i:0;return t.x=-e.x*n,t.y=-e.y*n,t.z=-e.z*n,t.w=e.w*n,t},r.conjugate=function(t,e){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=e.w,t},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y+t.z*t.z+t.w*t.w)},r.lengthSqr=function(t){return t.x*t.x+t.y*t.y+t.z*t.z+t.w*t.w},r.normalize=function(t,e){var i=e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w;return i>0&&(i=1/Math.sqrt(i),t.x=e.x*i,t.y=e.y*i,t.z=e.z*i,t.w=e.w*i),t},r.fromAxes=function(t,e,i,n){return a.default.set(m,e.x,e.y,e.z,i.x,i.y,i.z,n.x,n.y,n.z),r.normalize(t,r.fromMat3(t,m))},r.fromViewUp=function(t,e,i){return a.default.fromViewUp(m,e,i),r.normalize(t,r.fromMat3(t,m))},r.fromAxisAngle=function(t,e,i){i*=.5;var n=Math.sin(i);return t.x=n*e.x,t.y=n*e.y,t.z=n*e.z,t.w=Math.cos(i),t},r.fromAngleZ=function(t,e){return e*=y,t.x=t.y=0,t.z=Math.sin(e),t.w=Math.cos(e),t},r.fromMat3=function(t,e){var i=e.m,n=i[0],r=i[1],s=i[2],a=i[3],o=i[4],c=i[5],l=i[6],u=i[7],h=i[8],f=n+o+h;if(f>0){var d=.5/Math.sqrt(f+1);t.w=.25/d,t.x=(c-u)*d,t.y=(l-s)*d,t.z=(r-a)*d}else if(n>o&&n>h){var _=2*Math.sqrt(1+n-o-h);t.w=(c-u)/_,t.x=.25*_,t.y=(a+r)/_,t.z=(l+s)/_}else if(o>h){var p=2*Math.sqrt(1+o-n-h);t.w=(l-s)/p,t.x=(a+r)/p,t.y=.25*p,t.z=(u+c)/p}else{var v=2*Math.sqrt(1+h-n-o);t.w=(r-a)/v,t.x=(l+s)/v,t.y=(u+c)/v,t.z=.25*v}return t},r.fromEuler=function(t,e,i,n){e*=y,i*=y,n*=y;var r=Math.sin(e),s=Math.cos(e),a=Math.sin(i),o=Math.cos(i),c=Math.sin(n),l=Math.cos(n);return t.x=r*o*l+s*a*c,t.y=s*a*l+r*o*c,t.z=s*o*c-r*a*l,t.w=s*o*l-r*a*c,t},r.toAxisX=function(t,e){var i=2*e.y,n=2*e.z;return t.x=1-i*e.y-n*e.z,t.y=i*e.x+n*e.w,t.z=n*e.x+i*e.w,t},r.toAxisY=function(t,e){var i=2*e.x,n=2*e.y,r=2*e.z;return t.x=n*e.x-r*e.w,t.y=1-i*e.x-r*e.z,t.z=r*e.y+i*e.w,t},r.toAxisZ=function(t,e){var i=2*e.x,n=2*e.y,r=2*e.z;return t.x=r*e.x-n*e.w,t.y=r*e.y-i*e.w,t.z=1-i*e.x-n*e.y,t},r.toEuler=function(t,e,i){var n=e.x,r=e.y,s=e.z,a=e.w,c=0,l=0,u=0,h=n*r+s*a;if(h>.499999)c=0,l=(0,o.toDegree)(2*Math.atan2(n,a)),u=90;else if(h<-.499999)c=0,l=-(0,o.toDegree)(2*Math.atan2(n,a)),u=-90;else{var f=n*n,d=r*r,_=s*s;c=(0,o.toDegree)(Math.atan2(2*n*a-2*r*s,1-2*f-2*_)),l=(0,o.toDegree)(Math.atan2(2*r*a-2*n*s,1-2*d-2*_)),u=(0,o.toDegree)(Math.asin(2*h)),i&&(c=-180*Math.sign(c+1e-6)+c,l=-180*Math.sign(l+1e-6)+l,u=180*Math.sign(u+1e-6)-u)}return t.x=c,t.y=l,t.z=u,t},r.strictEquals=function(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z&&t.w===e.w},r.equals=function(t,e,i){return void 0===i&&(i=o.EPSILON),Math.abs(t.x-e.x)<=i*Math.max(1,Math.abs(t.x),Math.abs(e.x))&&Math.abs(t.y-e.y)<=i*Math.max(1,Math.abs(t.y),Math.abs(e.y))&&Math.abs(t.z-e.z)<=i*Math.max(1,Math.abs(t.z),Math.abs(e.z))&&Math.abs(t.w-e.w)<=i*Math.max(1,Math.abs(t.w),Math.abs(e.w))},r.toArray=function(t,e,i){return void 0===i&&(i=0),t[i+0]=e.x,t[i+1]=e.y,t[i+2]=e.z,t[i+3]=e.w,t},r.fromArray=function(t,e,i){return void 0===i&&(i=0),t.x=e[i+0],t.y=e[i+1],t.z=e[i+2],t.w=e[i+3],t},n.clone=function(){return new r(this.x,this.y,this.z,this.w)},n.set=function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},n.equals=function(t){return t&&this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},n.toEuler=function(t){return r.toEuler(t,this)},n.fromEuler=function(t){return r.fromEuler(this,t.x,t.y,t.z)},n.lerp=function(t,e,i){return i=i||new r,r.slerp(i,this,t,e),i},n.multiply=function(t){return r.multiply(this,this,t)},n.rotateAround=function(t,e,i,n){return n=n||new r,r.rotateAround(n,t,e,i)},r})(n.default);i.default=_,_.mul=_.multiply,_.scale=_.multiplyScalar,_.mag=_.len,_.IDENTITY=Object.freeze(new _);var p=new _,v=new _,g=new s.default,m=new a.default,y=.5*Math.PI/180;r.default.fastDefine("cc.Quat",_,{x:0,y:0,z:0,w:1}),cc.quat=function(t,e,i,n){return new _(t,e,i,n)},cc.Quat=_,e.exports=i.default}),{"../platform/CCClass":161,"./mat3":251,"./utils":257,"./value-type":258,"./vec3":260}],254:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=o(t("./value-type")),r=o(t("../platform/CCClass")),s=o(t("./vec2")),a=o(t("./size"));function o(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var i=0;i=t.x&&this.y<=t.y&&this.y+this.height>=t.y},u.containsRect=function(t){return this.x<=t.x&&this.x+this.width>=t.x+t.width&&this.y<=t.y&&this.y+this.height>=t.y+t.height},u.union=function(t,e){var i=this.x,n=this.y,r=this.width,s=this.height,a=e.x,o=e.y,c=e.width,l=e.height;return t.x=Math.min(i,a),t.y=Math.min(n,o),t.width=Math.max(i+r,a+c)-t.x,t.height=Math.max(n+s,o+l)-t.y,t},u.transformMat4=function(t,e){var i=this.x,n=this.y,r=i+this.width,s=n+this.height,a=e.m,o=a[0]*i+a[4]*n+a[12],c=a[1]*i+a[5]*n+a[13],l=a[0]*r+a[4]*n+a[12],u=a[1]*r+a[5]*n+a[13],h=a[0]*i+a[4]*s+a[12],f=a[1]*i+a[5]*s+a[13],d=a[0]*r+a[4]*s+a[12],_=a[1]*r+a[5]*s+a[13],p=Math.min(o,l,h,d),v=Math.max(o,l,h,d),g=Math.min(c,u,f,_),m=Math.max(c,u,f,_);return t.x=p,t.y=g,t.width=v-p,t.height=m-g,t},u.toString=function(){return"("+this.x.toFixed(2)+", "+this.y.toFixed(2)+", "+this.width.toFixed(2)+", "+this.height.toFixed(2)+")"},r=n,(o=[{key:"xMin",get:function(){return this.x},set:function(t){this.width+=this.x-t,this.x=t}},{key:"yMin",get:function(){return this.y},set:function(t){this.height+=this.y-t,this.y=t}},{key:"xMax",get:function(){return this.x+this.width},set:function(t){this.width=t-this.x}},{key:"yMax",get:function(){return this.y+this.height},set:function(t){this.height=t-this.y}},{key:"center",get:function(){return new s.default(this.x+.5*this.width,this.y+.5*this.height)},set:function(t){this.x=t.x-.5*this.width,this.y=t.y-.5*this.height}},{key:"origin",get:function(){return new s.default(this.x,this.y)},set:function(t){this.x=t.x,this.y=t.y}},{key:"size",get:function(){return new a.default(this.width,this.height)},set:function(t){this.width=t.width,this.height=t.height}}])&&c(r.prototype,o),n})(n.default);i.default=u,r.default.fastDefine("cc.Rect",u,{x:0,y:0,width:0,height:0}),cc.Rect=u,cc.rect=function(t,e,i,n){return new u(t,e,i,n)},e.exports=i.default}),{"../platform/CCClass":161,"./size":255,"./value-type":258,"./vec2":259}],255:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=s(t("./value-type")),r=s(t("../platform/CCClass"));function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){for(var i=0;ii?i:t},i.clamp01=function(t){return t<0?0:t>1?1:t},i.equals=function(t,e){return Math.abs(t-e)<=s*Math.max(1,Math.abs(t),Math.abs(e))},i.inverseLerp=function(t,e,i){return(i-t)/(e-t)},i.lerp=function(t,e,i){return t+(e-t)*i},i.nextPow2=function(t){return--t,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t},i.pingPong=function(t,e){return t=h(t,2*e),e-Math.abs(t-e)},i.pseudoRandom=l,i.pseudoRandomRange=u,i.pseudoRandomRangeInt=function(t,e,i){return Math.floor(u(t,e,i))},i.random=void 0,i.randomRange=c,i.randomRangeInt=function(t,e){return Math.floor(c(t,e))},i.repeat=h,i.sign=function(t){return(t>0)-(t<0)},i.toDegree=function(t){return t*r},i.toRadian=function(t){return t*n};var n=Math.PI/180,r=180/Math.PI,s=1e-6;i.EPSILON=s,i.INT_BITS=32,i.INT_MAX=2147483647,i.INT_MIN=-1<<31;var a=Float64Array;i.FLOAT_ARRAY_TYPE=a,i.FLOAT_BYTES=8;var o=Math.random;function c(t,e){return Math.random()*(e-t)+t}function l(t){return(t=(9301*t+49297)%233280)/233280}function u(t,e,i){return l(t)*(i-e)+e}function h(t,e){return t-Math.floor(t/e)*e}i.random=o}),{}],258:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../platform/js"))&&n.__esModule?n:{default:n},s=(function(){function t(){}var e=t.prototype;return e.clone=function(){return cc.errorID("0100",r.default.getClassName(this)+".clone"),null},e.equals=function(){return cc.errorID("0100",r.default.getClassName(this)+".equals"),!1},e.lerp=function(){return cc.errorID("0100",r.default.getClassName(this)+".lerp"),this.clone()},e.set=function(){cc.errorID("0100",r.default.getClassName(this)+".set")},e.toString=function(){return""+{}},t})();i.default=s,r.default.setClassName("cc.ValueType",s),cc.ValueType=s,e.exports=i.default}),{"../platform/js":182}],259:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=o(t("./value-type")),r=o(t("../platform/CCClass")),s=o(t("../utils/misc")),a=t("./utils");function o(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var i=0;i0&&(i=1/Math.sqrt(i),t.x=u*i,t.y=h*i),t},f.dot=function(t,e){return t.x*e.x+t.y*e.y},f.cross=function(t,e,i){return t.x=t.y=0,t.z=e.x*i.y-e.y*i.x,t},f.lerp=function(t,e,i,n){return u=e.x,h=e.y,t.x=u+n*(i.x-u),t.y=h+n*(i.y-h),t},f.random=function(t,e){e=e||1;var i=2*(0,a.random)()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t},f.transformMat3=function(t,e,i){u=e.x,h=e.y;var n=i.m;return t.x=n[0]*u+n[3]*h+n[6],t.y=n[1]*u+n[4]*h+n[7],t},f.transformMat4=function(t,e,i){u=e.x,h=e.y;var n=i.m;return t.x=n[0]*u+n[4]*h+n[12],t.y=n[1]*u+n[5]*h+n[13],t},f.strictEquals=function(t,e){return t.x===e.x&&t.y===e.y},f.equals=function(t,e,i){return void 0===i&&(i=a.EPSILON),Math.abs(t.x-e.x)<=i*Math.max(1,Math.abs(t.x),Math.abs(e.x))&&Math.abs(t.y-e.y)<=i*Math.max(1,Math.abs(t.y),Math.abs(e.y))},f.angle=function(t,e){f.normalize(d,t),f.normalize(_,e);var i=f.dot(d,_);return i>1?0:i<-1?Math.PI:Math.acos(i)},f.toArray=function(t,e,i){return void 0===i&&(i=0),t[i+0]=e.x,t[i+1]=e.y,t},f.fromArray=function(t,e,i){return void 0===i&&(i=0),t.x=e[i+0],t.y=e[i+1],t},o.clone=function(){return new f(this.x,this.y)},o.set=function(t){return this.x=t.x,this.y=t.y,this},o.equals=function(t){return t&&this.x===t.x&&this.y===t.y},o.fuzzyEquals=function(t,e){return this.x-e<=t.x&&t.x<=this.x+e&&this.y-e<=t.y&&t.y<=this.y+e},o.toString=function(){return"("+this.x.toFixed(2)+", "+this.y.toFixed(2)+")"},o.lerp=function(t,e,i){i=i||new f;var n=this.x,r=this.y;return i.x=n+(t.x-n)*e,i.y=r+(t.y-r)*e,i},o.clampf=function(t,e){return this.x=s.default.clampf(this.x,t.x,e.x),this.y=s.default.clampf(this.y,t.y,e.y),this},o.add=function(t,e){return(e=e||new f).x=this.x+t.x,e.y=this.y+t.y,e},o.addSelf=function(t){return this.x+=t.x,this.y+=t.y,this},o.subtract=function(t){return this.x-=t.x,this.y-=t.y,this},o.multiplyScalar=function(t){return this.x*=t,this.y*=t,this},o.multiply=function(t){return this.x*=t.x,this.y*=t.y,this},o.divide=function(t){return this.x/=t,this.y/=t,this},o.negate=function(){return this.x=-this.x,this.y=-this.y,this},o.dot=function(t){return this.x*t.x+this.y*t.y},o.cross=function(t){return this.x*t.y-this.y*t.x},o.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},o.lengthSqr=function(){return this.x*this.x+this.y*this.y},o.normalizeSelf=function(){var t=this.x*this.x+this.y*this.y;if(1===t)return this;if(0===t)return this;var e=1/Math.sqrt(t);return this.x*=e,this.y*=e,this},o.normalize=function(t){return(t=t||new f).x=this.x,t.y=this.y,t.normalizeSelf(),t},o.angle=function(t){var e=this.magSqr(),i=t.magSqr();if(0===e||0===i)return console.warn("Can't get angle between zero vector"),0;var n=this.dot(t)/Math.sqrt(e*i);return n=s.default.clampf(n,-1,1),Math.acos(n)},o.signAngle=function(t){var e=this.angle(t);return this.cross(t)<0?-e:e},o.rotate=function(t,e){return(e=e||new f).x=this.x,e.y=this.y,e.rotateSelf(t)},o.rotateSelf=function(t){var e=Math.sin(t),i=Math.cos(t),n=this.x;return this.x=i*n-e*this.y,this.y=e*n+i*this.y,this},o.project=function(t){return t.multiplyScalar(this.dot(t)/t.dot(t))},o.transformMat4=function(t,e){return e=e||new f,f.transformMat4(e,this,t),e},o.maxAxis=function(){return Math.max(this.x,this.y)},n=f,r=[{key:"ONE",get:function(){return new f(1,1)}},{key:"ZERO",get:function(){return new f(0,0)}},{key:"UP",get:function(){return new f(0,1)}},{key:"RIGHT",get:function(){return new f(1,0)}}],null&&c(n.prototype,null),r&&c(n,r),f})(n.default);i.default=f,f.sub=f.subtract,f.mul=f.multiply,f.scale=f.multiplyScalar,f.mag=f.len,f.squaredMagnitude=f.lengthSqr,f.div=f.divide,f.ONE_R=f.ONE,f.ZERO_R=f.ZERO,f.UP_R=f.UP,f.RIGHT_R=f.RIGHT;var d=new f,_=new f;r.default.fastDefine("cc.Vec2",f,{x:0,y:0}),cc.v2=function(t,e){return new f(t,e)},cc.Vec2=f,e.exports=i.default}),{"../platform/CCClass":161,"../utils/misc":235,"./utils":257,"./value-type":258}],260:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=c(t("./value-type")),r=c(t("../platform/CCClass")),s=c(t("../utils/misc")),a=c(t("./vec2")),o=t("./utils");function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){for(var i=0;i0&&(i=1/Math.sqrt(i),t.x=h*i,t.y=f*i,t.z=d*i),t},_.dot=function(t,e){return t.x*e.x+t.y*e.y+t.z*e.z},_.cross=function(t,e,i){var n=e.x,r=e.y,s=e.z,a=i.x,o=i.y,c=i.z;return t.x=r*c-s*o,t.y=s*a-n*c,t.z=n*o-r*a,t},_.lerp=function(t,e,i,n){return t.x=e.x+n*(i.x-e.x),t.y=e.y+n*(i.y-e.y),t.z=e.z+n*(i.z-e.z),t},_.random=function(t,e){e=e||1;var i=2*(0,o.random)()*Math.PI,n=2*(0,o.random)()-1,r=Math.sqrt(1-n*n);return t.x=r*Math.cos(i)*e,t.y=r*Math.sin(i)*e,t.z=n*e,t},_.transformMat4=function(t,e,i){h=e.x,f=e.y,d=e.z;var n=i.m,r=n[3]*h+n[7]*f+n[11]*d+n[15];return r=r?1/r:1,t.x=(n[0]*h+n[4]*f+n[8]*d+n[12])*r,t.y=(n[1]*h+n[5]*f+n[9]*d+n[13])*r,t.z=(n[2]*h+n[6]*f+n[10]*d+n[14])*r,t},_.transformMat4Normal=function(t,e,i){h=e.x,f=e.y,d=e.z;var n=i.m,r=n[3]*h+n[7]*f+n[11]*d;return r=r?1/r:1,t.x=(n[0]*h+n[4]*f+n[8]*d)*r,t.y=(n[1]*h+n[5]*f+n[9]*d)*r,t.z=(n[2]*h+n[6]*f+n[10]*d)*r,t},_.transformMat3=function(t,e,i){h=e.x,f=e.y,d=e.z;var n=i.m;return t.x=h*n[0]+f*n[3]+d*n[6],t.y=h*n[1]+f*n[4]+d*n[7],t.z=h*n[2]+f*n[5]+d*n[8],t},_.transformAffine=function(t,e,i){h=e.x,f=e.y,d=e.z;var n=i.m;return t.x=n[0]*h+n[1]*f+n[2]*d+n[3],t.y=n[4]*h+n[5]*f+n[6]*d+n[7],t.x=n[8]*h+n[9]*f+n[10]*d+n[11],t},_.transformQuat=function(t,e,i){var n=i.w*e.x+i.y*e.z-i.z*e.y,r=i.w*e.y+i.z*e.x-i.x*e.z,s=i.w*e.z+i.x*e.y-i.y*e.x,a=-i.x*e.x-i.y*e.y-i.z*e.z;return t.x=n*i.w+a*-i.x+r*-i.z-s*-i.y,t.y=r*i.w+a*-i.y+s*-i.x-n*-i.z,t.z=s*i.w+a*-i.z+n*-i.y-r*-i.x,t},_.transformRTS=function(t,e,i,n,r){var s=e.x*r.x,a=e.y*r.y,o=e.z*r.z,c=i.w*s+i.y*o-i.z*a,l=i.w*a+i.z*s-i.x*o,u=i.w*o+i.x*a-i.y*s,h=-i.x*s-i.y*a-i.z*o;return t.x=c*i.w+h*-i.x+l*-i.z-u*-i.y+n.x,t.y=l*i.w+h*-i.y+u*-i.x-c*-i.z+n.y,t.z=u*i.w+h*-i.z+c*-i.y-l*-i.x+n.z,t},_.transformInverseRTS=function(t,e,i,n,r){var s=e.x-n.x,a=e.y-n.y,o=e.z-n.z,c=i.w*s-i.y*o+i.z*a,l=i.w*a-i.z*s+i.x*o,u=i.w*o-i.x*a+i.y*s,h=i.x*s+i.y*a+i.z*o;return t.x=(c*i.w+h*i.x+l*i.z-u*i.y)/r.x,t.y=(l*i.w+h*i.y+u*i.x-c*i.z)/r.y,t.z=(u*i.w+h*i.z+c*i.y-l*i.x)/r.z,t},_.rotateX=function(t,e,i,n){h=e.x-i.x,f=e.y-i.y,d=e.z-i.z;var r=Math.cos(n),s=Math.sin(n),a=h,o=f*r-d*s,c=f*s+d*r;return t.x=a+i.x,t.y=o+i.y,t.z=c+i.z,t},_.rotateY=function(t,e,i,n){h=e.x-i.x,f=e.y-i.y,d=e.z-i.z;var r=Math.cos(n),s=Math.sin(n),a=d*s+h*r,o=f,c=d*r-h*s;return t.x=a+i.x,t.y=o+i.y,t.z=c+i.z,t},_.rotateZ=function(t,e,i,n){h=e.x-i.x,f=e.y-i.y,d=e.z-i.z;var r=Math.cos(n),s=Math.sin(n),a=h*r-f*s,o=h*s+f*r,c=d;return t.x=a+i.x,t.y=o+i.y,t.z=c+i.z,t},_.strictEquals=function(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z},_.equals=function(t,e,i){void 0===i&&(i=o.EPSILON);var n=t.x,r=t.y,s=t.z,a=e.x,c=e.y,l=e.z;return Math.abs(n-a)<=i*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-c)<=i*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(s-l)<=i*Math.max(1,Math.abs(s),Math.abs(l))},_.angle=function(t,e){_.normalize(p,t),_.normalize(v,e);var i=_.dot(p,v);return i>1?0:i<-1?Math.PI:Math.acos(i)},_.projectOnPlane=function(t,e,i){return _.subtract(t,e,_.project(t,e,i))},_.project=function(t,e,i){var n=_.lengthSqr(i);return n<1e-6?_.set(t,0,0,0):_.multiplyScalar(t,i,_.dot(e,i)/n)},_.toArray=function(t,e,i){return void 0===i&&(i=0),t[i+0]=e.x,t[i+1]=e.y,t[i+2]=e.z,t},_.fromArray=function(t,e,i){return void 0===i&&(i=0),t.x=e[i+0],t.y=e[i+1],t.z=e[i+2],t},c.clone=function(){return new _(this.x,this.y,this.z)},c.set=function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},c.equals=function(t){return t&&this.x===t.x&&this.y===t.y&&this.z===t.z},c.fuzzyEquals=function(t,e){return this.x-e<=t.x&&t.x<=this.x+e&&this.y-e<=t.y&&t.y<=this.y+e&&this.z-e<=t.z&&t.z<=this.z+e},c.toString=function(){return"("+this.x.toFixed(2)+", "+this.y.toFixed(2)+", "+this.z.toFixed(2)+")"},c.lerp=function(t,e,i){return i=i||new _,_.lerp(i,this,t,e),i},c.clampf=function(t,e){return this.x=s.default.clampf(this.x,t.x,e.x),this.y=s.default.clampf(this.y,t.y,e.y),this.z=s.default.clampf(this.z,t.z,e.z),this},c.addSelf=function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this},c.add=function(t,e){return(e=e||new _).x=this.x+t.x,e.y=this.y+t.y,e.z=this.z+t.z,e},c.subtract=function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this},c.multiplyScalar=function(t){return this.x*=t,this.y*=t,this.z*=t,this},c.multiply=function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this},c.divide=function(t){return this.x/=t,this.y/=t,this.z/=t,this},c.negate=function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},c.dot=function(t){return this.x*t.x+this.y*t.y+this.z*t.z},c.cross=function(t,e){return e=e||new _,_.cross(e,this,t),e},c.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},c.lengthSqr=function(){return this.x*this.x+this.y*this.y+this.z*this.z},c.normalizeSelf=function(){return _.normalize(this,this),this},c.normalize=function(t){return t=t||new _,_.normalize(t,this),t},c.transformMat4=function(t,e){return e=e||new _,_.transformMat4(e,this,t),e},c.maxAxis=function(){return Math.max(this.x,this.y,this.z)},c.signAngle=function(t){cc.warnID(1408,"vec3.signAngle","v2.1","cc.v2(selfVector).signAngle(vector)");var e=new a.default(this.x,this.y),i=new a.default(t.x,t.y);return e.signAngle(i)},c.rotate=function(t,e){return cc.warnID(1408,"vec3.rotate","v2.1","cc.v2(selfVector).rotate(radians, out)"),a.default.prototype.rotate.call(this,t,e)},c.rotateSelf=function(t){return cc.warnID(1408,"vec3.rotateSelf","v2.1","cc.v2(selfVector).rotateSelf(radians)"),a.default.prototype.rotateSelf.call(this,t)},n=_,r=[{key:"ONE",get:function(){return new _(1,1,1)}},{key:"ZERO",get:function(){return new _}},{key:"UP",get:function(){return new _(0,1,0)}},{key:"RIGHT",get:function(){return new _(1,0,0)}},{key:"FORWARD",get:function(){return new _(0,0,1)}}],null&&l(n.prototype,null),r&&l(n,r),_})(n.default);i.default=_,_.sub=_.subtract,_.mul=_.multiply,_.scale=_.multiplyScalar,_.mag=_.len,_.squaredMagnitude=_.lengthSqr,_.div=_.divide,_.ONE_R=_.ONE,_.ZERO_R=_.ZERO,_.UP_R=_.UP,_.RIGHT_R=_.RIGHT,_.FRONT_R=_.FORWARD;var p=new _,v=new _;r.default.fastDefine("cc.Vec3",_,{x:0,y:0,z:0}),cc.v3=function(t,e,i){return new _(t,e,i)},cc.Vec3=_,e.exports=i.default}),{"../platform/CCClass":161,"../utils/misc":235,"./utils":257,"./value-type":258,"./vec2":259}],261:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0,i.v4=_;var n=a(t("../platform/CCClass")),r=a(t("./value-type")),s=t("./utils");function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i=0;i0&&(i=1/Math.sqrt(i),t.x=l*i,t.y=u*i,t.z=h*i,t.w=f*i),t},d.dot=function(t,e){return t.x*e.x+t.y*e.y+t.z*e.z+t.w*e.w},d.lerp=function(t,e,i,n){return t.x=e.x+n*(i.x-e.x),t.y=e.y+n*(i.y-e.y),t.z=e.z+n*(i.z-e.z),t.w=e.w+n*(i.w-e.w),t},d.random=function(t,e){e=e||1;var i=2*(0,s.random)()*Math.PI,n=2*(0,s.random)()-1,r=Math.sqrt(1-n*n);return t.x=r*Math.cos(i)*e,t.y=r*Math.sin(i)*e,t.z=n*e,t.w=0,t},d.transformMat4=function(t,e,i){l=e.x,u=e.y,h=e.z,f=e.w;var n=i.m;return t.x=n[0]*l+n[4]*u+n[8]*h+n[12]*f,t.y=n[1]*l+n[5]*u+n[9]*h+n[13]*f,t.z=n[2]*l+n[6]*u+n[10]*h+n[14]*f,t.w=n[3]*l+n[7]*u+n[11]*h+n[15]*f,t},d.transformAffine=function(t,e,i){l=e.x,u=e.y,h=e.z,f=e.w;var n=i.m;return t.x=n[0]*l+n[1]*u+n[2]*h+n[3]*f,t.y=n[4]*l+n[5]*u+n[6]*h+n[7]*f,t.x=n[8]*l+n[9]*u+n[10]*h+n[11]*f,t.w=e.w,t},d.transformQuat=function(t,e,i){var n=e.x,r=e.y,s=e.z;l=i.x,u=i.y,h=i.z;var a=(f=i.w)*n+u*s-h*r,o=f*r+h*n-l*s,c=f*s+l*r-u*n,d=-l*n-u*r-h*s;return t.x=a*f+d*-l+o*-h-c*-u,t.y=o*f+d*-u+c*-l-a*-h,t.z=c*f+d*-h+a*-u-o*-l,t.w=e.w,t},d.strictEquals=function(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z&&t.w===e.w},d.equals=function(t,e,i){return void 0===i&&(i=s.EPSILON),Math.abs(t.x-e.x)<=i*Math.max(1,Math.abs(t.x),Math.abs(e.x))&&Math.abs(t.y-e.y)<=i*Math.max(1,Math.abs(t.y),Math.abs(e.y))&&Math.abs(t.z-e.z)<=i*Math.max(1,Math.abs(t.z),Math.abs(e.z))&&Math.abs(t.w-e.w)<=i*Math.max(1,Math.abs(t.w),Math.abs(e.w))},d.toArray=function(t,e,i){return void 0===i&&(i=0),t[i+0]=e.x,t[i+1]=e.y,t[i+2]=e.z,t[i+3]=e.w,t},d.fromArray=function(t,e,i){return void 0===i&&(i=0),t.x=e[i+0],t.y=e[i+1],t.z=e[i+2],t.w=e[i+3],t},a.clone=function(){return new d(this.x,this.y,this.z,this.w)},a.set=function(t,e,i,n){return t&&"object"==typeof t?(this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},a.equals=function(t,e){return void 0===e&&(e=s.EPSILON),Math.abs(this.x-t.x)<=e*Math.max(1,Math.abs(this.x),Math.abs(t.x))&&Math.abs(this.y-t.y)<=e*Math.max(1,Math.abs(this.y),Math.abs(t.y))&&Math.abs(this.z-t.z)<=e*Math.max(1,Math.abs(this.z),Math.abs(t.z))&&Math.abs(this.w-t.w)<=e*Math.max(1,Math.abs(this.w),Math.abs(t.w))},a.equals4f=function(t,e,i,n,r){return void 0===r&&(r=s.EPSILON),Math.abs(this.x-t)<=r*Math.max(1,Math.abs(this.x),Math.abs(t))&&Math.abs(this.y-e)<=r*Math.max(1,Math.abs(this.y),Math.abs(e))&&Math.abs(this.z-i)<=r*Math.max(1,Math.abs(this.z),Math.abs(i))&&Math.abs(this.w-n)<=r*Math.max(1,Math.abs(this.w),Math.abs(n))},a.strictEquals=function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},a.strictEquals4f=function(t,e,i,n){return this.x===t&&this.y===e&&this.z===i&&this.w===n},a.lerp=function(t,e){return l=this.x,u=this.y,h=this.z,f=this.w,this.x=l+e*(t.x-l),this.y=u+e*(t.y-u),this.z=h+e*(t.z-h),this.w=f+e*(t.w-f),this},a.toString=function(){return"("+this.x.toFixed(2)+", "+this.y.toFixed(2)+", "+this.z.toFixed(2)+", "+this.w.toFixed(2)+")"},a.clampf=function(t,e){return this.x=(0,s.clamp)(this.x,t.x,e.x),this.y=(0,s.clamp)(this.y,t.y,e.y),this.z=(0,s.clamp)(this.z,t.z,e.z),this.w=(0,s.clamp)(this.w,t.w,e.w),this},a.addSelf=function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},a.add=function(t,e){return(e=e||new d).x=this.x+t.x,e.y=this.y+t.y,e.z=this.z+t.z,e.w=this.w+t.w,e},a.subtract=function(t,e){return(e=e||new d).x=this.x-t.x,e.y=this.y-t.y,e.z=this.z-t.z,e.w=this.w-t.w,e},a.multiplyScalar=function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},a.multiply=function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this},a.divide=function(t){return this.x/=t,this.y/=t,this.z/=t,this.w/=t,this},a.negate=function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},a.dot=function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},a.cross=function(t,e){e=e||new d;var i=this.x,n=this.y,r=this.z,s=t.x,a=t.y,o=t.z;return e.x=n*o-r*a,e.y=r*s-i*o,e.z=i*a-n*s,e},a.len=function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},a.lengthSqr=function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},a.normalizeSelf=function(){return this.normalize(this),this},a.normalize=function(t){t=t||new d,l=this.x,u=this.y,h=this.z,f=this.w;var e=l*l+u*u+h*h+f*f;return e>0&&(e=1/Math.sqrt(e),t.x=l*e,t.y=u*e,t.z=h*e,t.w=f*e),t},a.transformMat4=function(t,e){e=e||new d,l=this.x,u=this.y,h=this.z,f=this.w;var i=t.m;return e.x=i[0]*l+i[4]*u+i[8]*h+i[12]*f,e.y=i[1]*l+i[5]*u+i[9]*h+i[13]*f,e.z=i[2]*l+i[6]*u+i[10]*h+i[14]*f,e.w=i[3]*l+i[7]*u+i[11]*h+i[15]*f,e},a.maxAxis=function(){return Math.max(this.x,this.y,this.z,this.w)},n=d,r=[{key:"ZERO",get:function(){return new d(0,0,0,0)}},{key:"ONE",get:function(){return new d(1,1,1,1)}},{key:"NEG_ONE",get:function(){return new d(-1,-1,-1,-1)}}],null&&o(n.prototype,null),r&&o(n,r),d})(r.default);function _(t,e,i,n){return new d(t,e,i,n)}i.default=d,d.sub=d.subtract,d.mul=d.multiply,d.div=d.divide,d.scale=d.multiplyScalar,d.mag=d.len,d.squaredMagnitude=d.lengthSqr,d.ZERO_R=d.ZERO,d.ONE_R=d.ONE,d.NEG_ONE_R=d.NEG_ONE,n.default.fastDefine("cc.Vec4",d,{x:0,y:0,z:0,w:0}),cc.v4=_,cc.Vec4=d}),{"../platform/CCClass":161,"./utils":257,"./value-type":258}],262:[(function(){"use strict";cc.js}),{}],263:[(function(t){"use strict";t("./core/CCGame"),t("./actions")}),{"./actions":7,"./core/CCGame":24}],264:[(function(t,e){"use strict";var i=t("../core/assets/CCAsset"),n=t("../core/assets/CCSpriteFrame"),r=cc.Class({name:"cc.ParticleAsset",extends:i,properties:{spriteFrame:{default:null,type:n}}});cc.ParticleAsset=e.exports=r}),{"../core/assets/CCAsset":58,"../core/assets/CCSpriteFrame":70}],265:[(function(t,e){"use strict";var i,n,r,s,a,o,c,l,u,h,f,d,_,p,v,g,m,y,T,E,A,C,x,b,S,w,R,M,I,O,D,L,P,N,F,B,k,V,U,z,H,W;(function(t){t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL"})(i||(i={})),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.BUFFER=1]="BUFFER",t[t.TEXTURE=2]="TEXTURE",t[t.TEXTURE_VIEW=3]="TEXTURE_VIEW",t[t.RENDER_PASS=4]="RENDER_PASS",t[t.FRAMEBUFFER=5]="FRAMEBUFFER",t[t.SAMPLER=6]="SAMPLER",t[t.SHADER=7]="SHADER",t[t.PIPELINE_LAYOUT=8]="PIPELINE_LAYOUT",t[t.PIPELINE_STATE=9]="PIPELINE_STATE",t[t.BINDING_LAYOUT=10]="BINDING_LAYOUT",t[t.INPUT_ASSEMBLER=11]="INPUT_ASSEMBLER",t[t.COMMAND_ALLOCATOR=12]="COMMAND_ALLOCATOR",t[t.COMMAND_BUFFER=13]="COMMAND_BUFFER",t[t.QUEUE=14]="QUEUE",t[t.WINDOW=15]="WINDOW"})(n||(n={})),(function(t){t[t.UNREADY=0]="UNREADY",t[t.FAILED=1]="FAILED",t[t.SUCCESS=2]="SUCCESS"})(r||(r={})),(function(){function t(t){this._gfxType=n.UNKNOWN,this._status=r.UNREADY,this._gfxType=t}Object.defineProperty(t.prototype,"gfxType",{get:function(){return this._gfxType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0})})(),(function(t){t.ATTR_POSITION="a_position",t.ATTR_NORMAL="a_normal",t.ATTR_TANGENT="a_tangent",t.ATTR_BITANGENT="a_bitangent",t.ATTR_WEIGHTS="a_weights",t.ATTR_JOINTS="a_joints",t.ATTR_COLOR="a_color",t.ATTR_COLOR1="a_color1",t.ATTR_COLOR2="a_color2",t.ATTR_TEX_COORD="a_texCoord",t.ATTR_TEX_COORD1="a_texCoord1",t.ATTR_TEX_COORD2="a_texCoord2",t.ATTR_TEX_COORD3="a_texCoord3",t.ATTR_TEX_COORD4="a_texCoord4",t.ATTR_TEX_COORD5="a_texCoord5",t.ATTR_TEX_COORD6="a_texCoord6",t.ATTR_TEX_COORD7="a_texCoord7",t.ATTR_TEX_COORD8="a_texCoord8"})(s||(s={})),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.BOOL=1]="BOOL",t[t.BOOL2=2]="BOOL2",t[t.BOOL3=3]="BOOL3",t[t.BOOL4=4]="BOOL4",t[t.INT=5]="INT",t[t.INT2=6]="INT2",t[t.INT3=7]="INT3",t[t.INT4=8]="INT4",t[t.UINT=9]="UINT",t[t.UINT2=10]="UINT2",t[t.UINT3=11]="UINT3",t[t.UINT4=12]="UINT4",t[t.FLOAT=13]="FLOAT",t[t.FLOAT2=14]="FLOAT2",t[t.FLOAT3=15]="FLOAT3",t[t.FLOAT4=16]="FLOAT4",t[t.COLOR4=17]="COLOR4",t[t.MAT2=18]="MAT2",t[t.MAT2X3=19]="MAT2X3",t[t.MAT2X4=20]="MAT2X4",t[t.MAT3X2=21]="MAT3X2",t[t.MAT3=22]="MAT3",t[t.MAT3X4=23]="MAT3X4",t[t.MAT4X2=24]="MAT4X2",t[t.MAT4X3=25]="MAT4X3",t[t.MAT4=26]="MAT4",t[t.SAMPLER1D=27]="SAMPLER1D",t[t.SAMPLER1D_ARRAY=28]="SAMPLER1D_ARRAY",t[t.SAMPLER2D=29]="SAMPLER2D",t[t.SAMPLER2D_ARRAY=30]="SAMPLER2D_ARRAY",t[t.SAMPLER3D=31]="SAMPLER3D",t[t.SAMPLER_CUBE=32]="SAMPLER_CUBE",t[t.COUNT=33]="COUNT"})(a||(a={})),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A8=1]="A8",t[t.L8=2]="L8",t[t.LA8=3]="LA8",t[t.R8=4]="R8",t[t.R8SN=5]="R8SN",t[t.R8UI=6]="R8UI",t[t.R8I=7]="R8I",t[t.R16F=8]="R16F",t[t.R16UI=9]="R16UI",t[t.R16I=10]="R16I",t[t.R32F=11]="R32F",t[t.R32UI=12]="R32UI",t[t.R32I=13]="R32I",t[t.RG8=14]="RG8",t[t.RG8SN=15]="RG8SN",t[t.RG8UI=16]="RG8UI",t[t.RG8I=17]="RG8I",t[t.RG16F=18]="RG16F",t[t.RG16UI=19]="RG16UI",t[t.RG16I=20]="RG16I",t[t.RG32F=21]="RG32F",t[t.RG32UI=22]="RG32UI",t[t.RG32I=23]="RG32I",t[t.RGB8=24]="RGB8",t[t.SRGB8=25]="SRGB8",t[t.RGB8SN=26]="RGB8SN",t[t.RGB8UI=27]="RGB8UI",t[t.RGB8I=28]="RGB8I",t[t.RGB16F=29]="RGB16F",t[t.RGB16UI=30]="RGB16UI",t[t.RGB16I=31]="RGB16I",t[t.RGB32F=32]="RGB32F",t[t.RGB32UI=33]="RGB32UI",t[t.RGB32I=34]="RGB32I",t[t.RGBA8=35]="RGBA8",t[t.SRGB8_A8=36]="SRGB8_A8",t[t.RGBA8SN=37]="RGBA8SN",t[t.RGBA8UI=38]="RGBA8UI",t[t.RGBA8I=39]="RGBA8I",t[t.RGBA16F=40]="RGBA16F",t[t.RGBA16UI=41]="RGBA16UI",t[t.RGBA16I=42]="RGBA16I",t[t.RGBA32F=43]="RGBA32F",t[t.RGBA32UI=44]="RGBA32UI",t[t.RGBA32I=45]="RGBA32I",t[t.R5G6B5=46]="R5G6B5",t[t.R11G11B10F=47]="R11G11B10F",t[t.RGB5A1=48]="RGB5A1",t[t.RGBA4=49]="RGBA4",t[t.RGB10A2=50]="RGB10A2",t[t.RGB10A2UI=51]="RGB10A2UI",t[t.RGB9E5=52]="RGB9E5",t[t.D16=53]="D16",t[t.D16S8=54]="D16S8",t[t.D24=55]="D24",t[t.D24S8=56]="D24S8",t[t.D32F=57]="D32F",t[t.D32F_S8=58]="D32F_S8",t[t.BC1=59]="BC1",t[t.BC1_ALPHA=60]="BC1_ALPHA",t[t.BC1_SRGB=61]="BC1_SRGB",t[t.BC1_SRGB_ALPHA=62]="BC1_SRGB_ALPHA",t[t.BC2=63]="BC2",t[t.BC2_SRGB=64]="BC2_SRGB",t[t.BC3=65]="BC3",t[t.BC3_SRGB=66]="BC3_SRGB",t[t.BC4=67]="BC4",t[t.BC4_SNORM=68]="BC4_SNORM",t[t.BC5=69]="BC5",t[t.BC5_SNORM=70]="BC5_SNORM",t[t.BC6H_UF16=71]="BC6H_UF16",t[t.BC6H_SF16=72]="BC6H_SF16",t[t.BC7=73]="BC7",t[t.BC7_SRGB=74]="BC7_SRGB",t[t.ETC_RGB8=75]="ETC_RGB8",t[t.ETC2_RGB8=76]="ETC2_RGB8",t[t.ETC2_SRGB8=77]="ETC2_SRGB8",t[t.ETC2_RGB8_A1=78]="ETC2_RGB8_A1",t[t.ETC2_SRGB8_A1=79]="ETC2_SRGB8_A1",t[t.ETC2_RGBA8=80]="ETC2_RGBA8",t[t.ETC2_SRGB8_A8=81]="ETC2_SRGB8_A8",t[t.EAC_R11=82]="EAC_R11",t[t.EAC_R11SN=83]="EAC_R11SN",t[t.EAC_RG11=84]="EAC_RG11",t[t.EAC_RG11SN=85]="EAC_RG11SN",t[t.PVRTC_RGB2=86]="PVRTC_RGB2",t[t.PVRTC_RGBA2=87]="PVRTC_RGBA2",t[t.PVRTC_RGB4=88]="PVRTC_RGB4",t[t.PVRTC_RGBA4=89]="PVRTC_RGBA4",t[t.PVRTC2_2BPP=90]="PVRTC2_2BPP",t[t.PVRTC2_4BPP=91]="PVRTC2_4BPP"})(o||(o={})),(function(t){t[t.NONE=0]="NONE",t[t.TRANSFER_SRC=1]="TRANSFER_SRC",t[t.TRANSFER_DST=2]="TRANSFER_DST",t[t.INDEX=4]="INDEX",t[t.VERTEX=8]="VERTEX",t[t.UNIFORM=16]="UNIFORM",t[t.STORAGE=32]="STORAGE",t[t.INDIRECT=64]="INDIRECT"})(c||(c={})),(function(t){t[t.NONE=0]="NONE",t[t.DEVICE=1]="DEVICE",t[t.HOST=2]="HOST"})(l||(l={})),(function(t){t[t.NONE=0]="NONE",t[t.READ=1]="READ",t[t.WRITE=2]="WRITE"})(u||(u={})),(function(t){t[t.POINT_LIST=0]="POINT_LIST",t[t.LINE_LIST=1]="LINE_LIST",t[t.LINE_STRIP=2]="LINE_STRIP",t[t.LINE_LOOP=3]="LINE_LOOP",t[t.LINE_LIST_ADJACENCY=4]="LINE_LIST_ADJACENCY",t[t.LINE_STRIP_ADJACENCY=5]="LINE_STRIP_ADJACENCY",t[t.ISO_LINE_LIST=6]="ISO_LINE_LIST",t[t.TRIANGLE_LIST=7]="TRIANGLE_LIST",t[t.TRIANGLE_STRIP=8]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=9]="TRIANGLE_FAN",t[t.TRIANGLE_LIST_ADJACENCY=10]="TRIANGLE_LIST_ADJACENCY",t[t.TRIANGLE_STRIP_ADJACENCY=11]="TRIANGLE_STRIP_ADJACENCY",t[t.TRIANGLE_PATCH_ADJACENCY=12]="TRIANGLE_PATCH_ADJACENCY",t[t.QUAD_PATCH_LIST=13]="QUAD_PATCH_LIST"})(h||(h={})),(function(t){t[t.FILL=0]="FILL",t[t.POINT=1]="POINT",t[t.LINE=2]="LINE"})(f||(f={})),(function(t){t[t.GOURAND=0]="GOURAND",t[t.FLAT=1]="FLAT"})(d||(d={})),(function(t){t[t.NONE=0]="NONE",t[t.FRONT=1]="FRONT",t[t.BACK=2]="BACK"})(_||(_={})),(function(t){t[t.NEVER=0]="NEVER",t[t.LESS=1]="LESS",t[t.EQUAL=2]="EQUAL",t[t.LESS_EQUAL=3]="LESS_EQUAL",t[t.GREATER=4]="GREATER",t[t.NOT_EQUAL=5]="NOT_EQUAL",t[t.GREATER_EQUAL=6]="GREATER_EQUAL",t[t.ALWAYS=7]="ALWAYS"})(p||(p={})),(function(t){t[t.ZERO=0]="ZERO",t[t.KEEP=1]="KEEP",t[t.REPLACE=2]="REPLACE",t[t.INCR=3]="INCR",t[t.DECR=4]="DECR",t[t.INVERT=5]="INVERT",t[t.INCR_WRAP=6]="INCR_WRAP",t[t.DECR_WRAP=7]="DECR_WRAP"})(v||(v={})),(function(t){t[t.ADD=0]="ADD",t[t.SUB=1]="SUB",t[t.REV_SUB=2]="REV_SUB",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX"})(g||(g={})),(function(t){t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_ALPHA=2]="SRC_ALPHA",t[t.DST_ALPHA=3]="DST_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=4]="ONE_MINUS_SRC_ALPHA",t[t.ONE_MINUS_DST_ALPHA=5]="ONE_MINUS_DST_ALPHA",t[t.SRC_COLOR=6]="SRC_COLOR",t[t.DST_COLOR=7]="DST_COLOR",t[t.ONE_MINUS_SRC_COLOR=8]="ONE_MINUS_SRC_COLOR",t[t.ONE_MINUS_DST_COLOR=9]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=10]="SRC_ALPHA_SATURATE",t[t.CONSTANT_COLOR=11]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=12]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=13]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=14]="ONE_MINUS_CONSTANT_ALPHA"})(m||(m={})),(function(t){t[t.NONE=0]="NONE",t[t.R=1]="R",t[t.G=2]="G",t[t.B=4]="B",t[t.A=8]="A",t[t.ALL=15]="ALL"})(y||(y={})),(function(t){t[t.NONE=0]="NONE",t[t.POINT=1]="POINT",t[t.LINEAR=2]="LINEAR",t[t.ANISOTROPIC=3]="ANISOTROPIC"})(T||(T={})),(function(t){t[t.WRAP=0]="WRAP",t[t.MIRROR=1]="MIRROR",t[t.CLAMP=2]="CLAMP",t[t.BORDER=3]="BORDER"})(E||(E={})),(function(t){t[t.TEX1D=0]="TEX1D",t[t.TEX2D=1]="TEX2D",t[t.TEX3D=2]="TEX3D"})(A||(A={})),(function(t){t[t.NONE=0]="NONE",t[t.TRANSFER_SRC=1]="TRANSFER_SRC",t[t.TRANSFER_DST=2]="TRANSFER_DST",t[t.SAMPLED=4]="SAMPLED",t[t.STORAGE=8]="STORAGE",t[t.COLOR_ATTACHMENT=16]="COLOR_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=32]="DEPTH_STENCIL_ATTACHMENT",t[t.TRANSIENT_ATTACHMENT=64]="TRANSIENT_ATTACHMENT",t[t.INPUT_ATTACHMENT=128]="INPUT_ATTACHMENT"})(C||(C={})),(function(t){t[t.X1=0]="X1",t[t.X2=1]="X2",t[t.X4=2]="X4",t[t.X8=3]="X8",t[t.X16=4]="X16",t[t.X32=5]="X32",t[t.X64=6]="X64"})(x||(x={})),(function(t){t[t.NONE=0]="NONE",t[t.GEN_MIPMAP=1]="GEN_MIPMAP",t[t.CUBEMAP=2]="CUBEMAP",t[t.BAKUP_BUFFER=4]="BAKUP_BUFFER"})(b||(b={})),(function(t){t[t.TV1D=0]="TV1D",t[t.TV2D=1]="TV2D",t[t.TV3D=2]="TV3D",t[t.CUBE=3]="CUBE",t[t.TV1D_ARRAY=4]="TV1D_ARRAY",t[t.TV2D_ARRAY=5]="TV2D_ARRAY"})(S||(S={})),(function(t){t[t.VERTEX=0]="VERTEX",t[t.HULL=1]="HULL",t[t.DOMAIN=2]="DOMAIN",t[t.GEOMETRY=3]="GEOMETRY",t[t.FRAGMENT=4]="FRAGMENT",t[t.COMPUTE=5]="COMPUTE",t[t.COUNT=6]="COUNT"})(w||(w={})),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.UNIFORM_BUFFER=1]="UNIFORM_BUFFER",t[t.SAMPLER=2]="SAMPLER",t[t.STORAGE_BUFFER=3]="STORAGE_BUFFER"})(R||(R={})),(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SECONDARY=1]="SECONDARY"})(M||(M={})),(function(t){t[t.LOAD=0]="LOAD",t[t.CLEAR=1]="CLEAR",t[t.DISCARD=2]="DISCARD"})(I||(I={})),(function(t){t[t.STORE=0]="STORE",t[t.DISCARD=1]="DISCARD"})(O||(O={})),(function(t){t[t.UNDEFINED=0]="UNDEFINED",t[t.GENERAL=1]="GENERAL",t[t.COLOR_ATTACHMENT_OPTIMAL=2]="COLOR_ATTACHMENT_OPTIMAL",t[t.DEPTH_STENCIL_ATTACHMENT_OPTIMAL=3]="DEPTH_STENCIL_ATTACHMENT_OPTIMAL",t[t.DEPTH_STENCIL_READONLY_OPTIMAL=4]="DEPTH_STENCIL_READONLY_OPTIMAL",t[t.SHADER_READONLY_OPTIMAL=5]="SHADER_READONLY_OPTIMAL",t[t.TRANSFER_SRC_OPTIMAL=6]="TRANSFER_SRC_OPTIMAL",t[t.TRANSFER_DST_OPTIMAL=7]="TRANSFER_DST_OPTIMAL",t[t.PREINITIALIZED=8]="PREINITIALIZED",t[t.PRESENT_SRC=9]="PRESENT_SRC"})(D||(D={})),(function(t){t[t.GRAPHICS=0]="GRAPHICS",t[t.COMPUTE=1]="COMPUTE",t[t.RAY_TRACING=2]="RAY_TRACING"})(L||(L={})),(function(t){t[t.VIEWPORT=0]="VIEWPORT",t[t.SCISSOR=1]="SCISSOR",t[t.LINE_WIDTH=2]="LINE_WIDTH",t[t.DEPTH_BIAS=3]="DEPTH_BIAS",t[t.BLEND_CONSTANTS=4]="BLEND_CONSTANTS",t[t.DEPTH_BOUNDS=5]="DEPTH_BOUNDS",t[t.STENCIL_WRITE_MASK=6]="STENCIL_WRITE_MASK",t[t.STENCIL_COMPARE_MASK=7]="STENCIL_COMPARE_MASK"})(P||(P={})),(function(t){t[t.FRONT=0]="FRONT",t[t.BACK=1]="BACK",t[t.ALL=2]="ALL"})(N||(N={})),(function(t){t[t.GRAPHICS=0]="GRAPHICS",t[t.COMPUTE=1]="COMPUTE",t[t.TRANSFER=2]="TRANSFER"})(F||(F={})),(function(t){t[t.NONE=0]="NONE",t[t.COLOR=1]="COLOR",t[t.DEPTH=2]="DEPTH",t[t.STENCIL=4]="STENCIL",t[t.DEPTH_STENCIL=6]="DEPTH_STENCIL",t[t.ALL=7]="ALL"})(B||(B={})),(function(t){t[t.DEFAULT=100]="DEFAULT"})(k||(k={})),(function(t){t[t.MIN=0]="MIN",t[t.MAX=255]="MAX",t[t.DEFAULT=128]="DEFAULT"})(V||(V={})),(function(t){t[t.UBO_GLOBAL=23]="UBO_GLOBAL",t[t.UBO_SHADOW=22]="UBO_SHADOW",t[t.UBO_LOCAL=21]="UBO_LOCAL",t[t.UBO_FORWARD_LIGHTS=20]="UBO_FORWARD_LIGHTS",t[t.UBO_SKINNING=19]="UBO_SKINNING",t[t.UBO_SKINNING_TEXTURE=18]="UBO_SKINNING_TEXTURE",t[t.UBO_UI=17]="UBO_UI",t[t.SAMPLER_JOINTS=25]="SAMPLER_JOINTS",t[t.SAMPLER_ENVIRONMENT=26]="SAMPLER_ENVIRONMENT",t[t.CUSTUM_UBO_BINDING_END_POINT=17]="CUSTUM_UBO_BINDING_END_POINT",t[t.CUSTOM_SAMPLER_BINDING_START_POINT=30]="CUSTOM_SAMPLER_BINDING_START_POINT"})(U||(U={})),(function(t){t[t.minFilter=0]="minFilter",t[t.magFilter=1]="magFilter",t[t.mipFilter=2]="mipFilter",t[t.addressU=3]="addressU",t[t.addressV=4]="addressV",t[t.addressW=5]="addressW",t[t.maxAnisotropy=6]="maxAnisotropy",t[t.cmpFunc=7]="cmpFunc",t[t.minLOD=8]="minLOD",t[t.maxLOD=9]="maxLOD",t[t.mipLODBias=10]="mipLODBias",t[t.borderColor=11]="borderColor",t[t.total=15]="total"})(W||(W={}));var G={};G[G.bool=a.BOOL]="bool",G[G.int=a.INT]="int",G[G.ivec2=a.INT2]="ivec2invTypeParams",G[G.ivec3=a.INT3]="ivec3",G[G.ivec4=a.INT4]="ivec4",G[G.float=a.FLOAT]="float",G[G.vec2=a.FLOAT2]="vec2",G[G.vec3=a.FLOAT3]="vec3",G[G.vec4=a.FLOAT4]="vec4",G[G.mat2=a.MAT2]="mat2",G[G.mat3=a.MAT3]="mat3",G[G.mat4=a.MAT4]="mat4",G[G.sampler2D=a.SAMPLER2D]="sampler2D",G[G.samplerCube=a.SAMPLER_CUBE]="samplerCube";var Y=((z={})[a.BOOL]=4,z[a.INT]=4,z[a.INT2]=8,z[a.INT3]=12,z[a.INT4]=16,z[a.FLOAT]=4,z[a.FLOAT2]=8,z[a.FLOAT3]=12,z[a.FLOAT4]=16,z[a.MAT2]=16,z[a.MAT3]=36,z[a.MAT4]=64,z[a.SAMPLER2D]=4,z[a.SAMPLER_CUBE]=4,z),X=((H={})[a.BOOL]=o.R32I,H[a.INT]=o.R32I,H[a.INT2]=o.RG32I,H[a.INT3]=o.RGB32I,H[a.INT4]=o.RGBA32I,H[a.FLOAT]=o.R32F,H[a.FLOAT2]=o.RG32F,H[a.FLOAT3]=o.RGB32F,H[a.FLOAT4]=o.RGBA32F,H),j={BACK:1029,FRONT:1028,NONE:0,ADD:32774,SUB:32778,REV_SUB:32779,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,SRC_ALPHA_SATURATE:776,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,INCR_WRAP:34055,DECR:7683,DECR_WRAP:34056,INVERT:5386};Object.assign(j,k);var q={murmurhash2_32_gc:function(t,e){for(var i,n=t.length,r=e^n,s=0;n>=4;)i=1540483477*(65535&(i=255&t.charCodeAt(s)|(255&t.charCodeAt(++s))<<8|(255&t.charCodeAt(++s))<<16|(255&t.charCodeAt(++s))<<24))+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),n-=4,++s;switch(n){case 3:r^=(255&t.charCodeAt(s+2))<<16;case 2:r^=(255&t.charCodeAt(s+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(s)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0},SamplerInfoIndex:W,effectStructure:{$techniques:[{$passes:[{depthStencilState:{},rasterizerState:{},blendState:{targets:[{}]},properties:{any:{sampler:{},inspector:{}}}}]}]},typeMap:G,sizeMap:Y,formatMap:X,passParams:j,RenderQueue:{OPAQUE:0,TRANSPARENT:1,OVERLAY:2},RenderPriority:V,GFXGetTypeSize:function(t){switch(t){case a.BOOL:case a.INT:case a.UINT:case a.FLOAT:return 4;case a.BOOL2:case a.INT2:case a.UINT2:case a.FLOAT2:return 8;case a.BOOL3:case a.INT3:case a.UINT3:case a.FLOAT3:return 12;case a.BOOL4:case a.INT4:case a.UINT4:case a.FLOAT4:case a.MAT2:return 16;case a.MAT2X3:return 24;case a.MAT2X4:return 32;case a.MAT3X2:return 24;case a.MAT3:return 36;case a.MAT3X4:return 48;case a.MAT4X2:case a.MAT4X2:return 32;case a.MAT4:return 64;case a.SAMPLER1D:case a.SAMPLER1D_ARRAY:case a.SAMPLER2D:case a.SAMPLER2D_ARRAY:case a.SAMPLER3D:case a.SAMPLER_CUBE:return 4;default:return 0}},UniformBinding:U};e.exports=q}),{}],266:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=t("../memop"),r=l(t("../enums")),s=t("../../core/value-types"),a=l(t("./program-lib")),o=l(t("./view")),c=l(t("../gfx"));function l(t){return t&&t.__esModule?t:{default:t}}var u=new s.Mat4,h=new n.RecyclePool(function(){return{stage:null,items:null}},8),f=new n.RecyclePool(function(){return new Float32Array(2)},8),d=new n.RecyclePool(function(){return new Float32Array(3)},8),_=new n.RecyclePool(function(){return new Float32Array(4)},8),p=new n.RecyclePool(function(){return new Float32Array(9)},8),v=new n.RecyclePool(function(){return new Float32Array(16)},8),g=new n.RecyclePool(function(){return new Float32Array(64)},8),m=new n.RecyclePool(function(){return new Int32Array(2)},8),y=new n.RecyclePool(function(){return new Int32Array(3)},8),T=new n.RecyclePool(function(){return new Int32Array(4)},8),E=new n.RecyclePool(function(){return new Int32Array(64)},8),A=(function(){function t(t,e){var i;this._device=t,this._programLib=new a.default(t),this._opts=e,this._type2defaultValue=((i={})[r.default.PARAM_INT]=0,i[r.default.PARAM_INT2]=new s.Vec2(0,0),i[r.default.PARAM_INT3]=new s.Vec3(0,0,0),i[r.default.PARAM_INT4]=new s.Vec4(0,0,0,0),i[r.default.PARAM_FLOAT]=0,i[r.default.PARAM_FLOAT2]=new s.Vec2(0,0),i[r.default.PARAM_FLOAT3]=new s.Vec3(0,0,0),i[r.default.PARAM_FLOAT4]=new s.Vec4(0,0,0,0),i[r.default.PARAM_COLOR4]=new s.Color(0,0,0,1),i[r.default.PARAM_MAT3]=new s.Mat3,i[r.default.PARAM_MAT4]=new s.Mat4,i[r.default.PARAM_TEXTURE_2D]=e.defaultTexture,i[r.default.PARAM_TEXTURE_CUBE]=e.defaultTextureCube,i),this._stage2fn={},this._usedTextureUnits=0,this._viewPools=new n.RecyclePool(function(){return new o.default},8),this._drawItemsPools=new n.RecyclePool(function(){return{model:null,node:null,ia:null,effect:null,defines:null,uniforms:null}},100),this._stageItemsPools=new n.RecyclePool(function(){return new n.RecyclePool(function(){return{model:null,node:null,ia:null,effect:null,defines:null,passes:[],sortKey:-1,uniforms:null}},100)},16),this._definesChanged=!1}var e=t.prototype;return e._resetTextuerUnit=function(){this._usedTextureUnits=0},e._allocTextureUnit=function(){var t=this._device,e=this._usedTextureUnits;return e>=t._caps.maxTextureUnits&&console.warn("Trying to use "+e+" texture units while this GPU supports only "+t._caps.maxTextureUnits),this._usedTextureUnits+=1,e},e._registerStage=function(t,e){this._stage2fn[t]=e},e.clear=function(){this._programLib.clear(),this.reset()},e.reset=function(){this._viewPools.reset(),this._stageItemsPools.reset(),this._definesChanged=!1},e._requestView=function(){return this._viewPools.add()},e._render=function(t,e){var i=this._device;i.setFrameBuffer(t._framebuffer),i.setViewport(t._rect.x,t._rect.y,t._rect.w,t._rect.h);var n={};t._clearFlags&r.default.CLEAR_COLOR&&(n.color=s.Vec4.toArray([],t._color)),t._clearFlags&r.default.CLEAR_DEPTH&&(n.depth=t._depth),t._clearFlags&r.default.CLEAR_STENCIL&&(n.stencil=t._stencil),i.clear(n),this._drawItemsPools.reset();for(var a=0;at.count)return void console.error("Failed to set property ["+t.name+"] : The length of texture array ["+i.length+"] is bigger than ["+t.count+"].");for(var n=E.add(),s=0;s0&&n&&n.precision>0}e||cc.warnID(9102),this._highpSupported=e},t})();i.default=u,e.exports=i.default}),{"../gfx":277}],270:[(function(t,e,i){"use strict";function n(t,e){for(var i=0;i>24)/255,(i.blendColor>>16&255)/255,(i.blendColor>>8&255)/255,(255&i.blendColor)/255),void(i.blendSep?(t.blendFuncSeparate(i.blendSrc,i.blendDst,i.blendSrcAlpha,i.blendDstAlpha),t.blendEquationSeparate(i.blendEq,i.blendAlphaEq)):(t.blendFunc(i.blendSrc,i.blendDst),t.blendEquation(i.blendEq)))):void t.disable(t.BLEND);!1!==i.blend&&(e.blendColor!==i.blendColor&&t.blendColor((i.blendColor>>24)/255,(i.blendColor>>16&255)/255,(i.blendColor>>8&255)/255,(255&i.blendColor)/255),e.blendSep===i.blendSep?i.blendSep?(e.blendSrc===i.blendSrc&&e.blendDst===i.blendDst&&e.blendSrcAlpha===i.blendSrcAlpha&&e.blendDstAlpha===i.blendDstAlpha||t.blendFuncSeparate(i.blendSrc,i.blendDst,i.blendSrcAlpha,i.blendDstAlpha),e.blendEq===i.blendEq&&e.blendAlphaEq===i.blendAlphaEq||t.blendEquationSeparate(i.blendEq,i.blendAlphaEq)):(e.blendSrc===i.blendSrc&&e.blendDst===i.blendDst||t.blendFunc(i.blendSrc,i.blendDst),e.blendEq!==i.blendEq&&t.blendEquation(i.blendEq)):i.blendSep?(t.blendFuncSeparate(i.blendSrc,i.blendDst,i.blendSrcAlpha,i.blendDstAlpha),t.blendEquationSeparate(i.blendEq,i.blendAlphaEq)):(t.blendFunc(i.blendSrc,i.blendDst),t.blendEquation(i.blendEq)))}function _(t,e,i){if(e.depthTest!==i.depthTest)return i.depthTest?(t.enable(t.DEPTH_TEST),t.depthFunc(i.depthFunc),void t.depthMask(i.depthWrite)):void t.disable(t.DEPTH_TEST);e.depthWrite!==i.depthWrite&&t.depthMask(i.depthWrite),!1!==i.depthTest?e.depthFunc!==i.depthFunc&&t.depthFunc(i.depthFunc):i.depthWrite&&(i.depthTest=!0,i.depthFunc=a.enums.DS_FUNC_ALWAYS,t.enable(t.DEPTH_TEST),t.depthFunc(i.depthFunc))}function p(t,e,i){if(i.stencilTest!==a.enums.STENCIL_INHERIT)return i.stencilTest!==e.stencilTest?i.stencilTest===a.enums.STENCIL_DISABLE?void t.disable(t.STENCIL_TEST):(t.enable(t.STENCIL_TEST),void(i.stencilSep?(t.stencilFuncSeparate(t.FRONT,i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),t.stencilMaskSeparate(t.FRONT,i.stencilWriteMaskFront),t.stencilOpSeparate(t.FRONT,i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront),t.stencilFuncSeparate(t.BACK,i.stencilFuncBack,i.stencilRefBack,i.stencilMaskBack),t.stencilMaskSeparate(t.BACK,i.stencilWriteMaskBack),t.stencilOpSeparate(t.BACK,i.stencilFailOpBack,i.stencilZFailOpBack,i.stencilZPassOpBack)):(t.stencilFunc(i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),t.stencilMask(i.stencilWriteMaskFront),t.stencilOp(i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront)))):void(i.stencilTest!==a.enums.STENCIL_DISABLE&&(e.stencilSep===i.stencilSep?i.stencilSep?(e.stencilFuncFront===i.stencilFuncFront&&e.stencilRefFront===i.stencilRefFront&&e.stencilMaskFront===i.stencilMaskFront||t.stencilFuncSeparate(t.FRONT,i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),e.stencilWriteMaskFront!==i.stencilWriteMaskFront&&t.stencilMaskSeparate(t.FRONT,i.stencilWriteMaskFront),e.stencilFailOpFront===i.stencilFailOpFront&&e.stencilZFailOpFront===i.stencilZFailOpFront&&e.stencilZPassOpFront===i.stencilZPassOpFront||t.stencilOpSeparate(t.FRONT,i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront),e.stencilFuncBack===i.stencilFuncBack&&e.stencilRefBack===i.stencilRefBack&&e.stencilMaskBack===i.stencilMaskBack||t.stencilFuncSeparate(t.BACK,i.stencilFuncBack,i.stencilRefBack,i.stencilMaskBack),e.stencilWriteMaskBack!==i.stencilWriteMaskBack&&t.stencilMaskSeparate(t.BACK,i.stencilWriteMaskBack),e.stencilFailOpBack===i.stencilFailOpBack&&e.stencilZFailOpBack===i.stencilZFailOpBack&&e.stencilZPassOpBack===i.stencilZPassOpBack||t.stencilOpSeparate(t.BACK,i.stencilFailOpBack,i.stencilZFailOpBack,i.stencilZPassOpBack)):(e.stencilFuncFront===i.stencilFuncFront&&e.stencilRefFront===i.stencilRefFront&&e.stencilMaskFront===i.stencilMaskFront||t.stencilFunc(i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),e.stencilWriteMaskFront!==i.stencilWriteMaskFront&&t.stencilMask(i.stencilWriteMaskFront),e.stencilFailOpFront===i.stencilFailOpFront&&e.stencilZFailOpFront===i.stencilZFailOpFront&&e.stencilZPassOpFront===i.stencilZPassOpFront||t.stencilOp(i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront)):i.stencilSep?(t.stencilFuncSeparate(t.FRONT,i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),t.stencilMaskSeparate(t.FRONT,i.stencilWriteMaskFront),t.stencilOpSeparate(t.FRONT,i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront),t.stencilFuncSeparate(t.BACK,i.stencilFuncBack,i.stencilRefBack,i.stencilMaskBack),t.stencilMaskSeparate(t.BACK,i.stencilWriteMaskBack),t.stencilOpSeparate(t.BACK,i.stencilFailOpBack,i.stencilZFailOpBack,i.stencilZPassOpBack)):(t.stencilFunc(i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),t.stencilMask(i.stencilWriteMaskFront),t.stencilOp(i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront))))}function v(t,e,i){e.cullMode!==i.cullMode&&(i.cullMode!==a.enums.CULL_NONE?(t.enable(t.CULL_FACE),t.cullFace(i.cullMode)):t.disable(t.CULL_FACE))}function g(t,e,i,n){var r=!1;if(-1!==n.maxStream){if(i.maxStream!==n.maxStream)r=!0;else if(i.program!==n.program)r=!0;else for(var s=0;s>>0},n.setBlendFunc=function(t,e){this._next.blendSep=!1,this._next.blendSrc=t,this._next.blendDst=e},n.setBlendFuncSep=function(t,e,i,n){this._next.blendSep=!0,this._next.blendSrc=t,this._next.blendDst=e,this._next.blendSrcAlpha=i,this._next.blendDstAlpha=n},n.setBlendEq=function(t){this._next.blendSep=!1,this._next.blendEq=t},n.setBlendEqSep=function(t,e){this._next.blendSep=!0,this._next.blendEq=t,this._next.blendAlphaEq=e},n.setCullMode=function(t){this._next.cullMode=t},n.setVertexBuffer=function(t,e,i){void 0===i&&(i=0),this._next.vertexBuffers[t]=e,this._next.vertexBufferOffsets[t]=i,this._next.maxStream=this._caps.maxTextureUnits?console.warn("Can not set texture "+t+" at stage "+i+", max texture exceed: "+this._caps.maxTextureUnits):(this._next.textureUnits[i]=e,this.setUniform(t,i),this._next.maxTextureSlot=this._caps.maxTextureUnits)console.warn("Can not set "+n+" textures for "+t+", max texture exceed: "+this._caps.maxTextureUnits);else{for(var r=0;rthis._bytes){if(t)return void console.error("Failed to update data, bytes exceed.");this._needExpandDataStore=!0,this._bytes=t+e.byteLength,this._numIndices=this._bytes/this._bytesPerIndex}var i=this._device._gl,n=this._usage;i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,this._glID),this._needExpandDataStore?(i.bufferData(i.ELEMENT_ARRAY_BUFFER,e,n),this._needExpandDataStore=!1):i.bufferSubData(i.ELEMENT_ARRAY_BUFFER,t,e),this._device._restoreIndexBuffer()}}else console.error("The buffer is destroyed")},n.setUsage=function(t){this._usage=t},e=t,(i=[{key:"count",get:function(){return this._numIndices}}])&&s(e.prototype,i),t})();o.BYTES_PER_INDEX=a;var c=o;i.default=c,e.exports=i.default}),{"./enums":274}],277:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("./enums");n={VertexFormat:t("./vertex-format"),IndexBuffer:t("./index-buffer"),VertexBuffer:t("./vertex-buffer"),Program:t("./program"),Texture:t("./texture"),Texture2D:t("./texture-2d"),TextureCube:t("./texture-cube"),RenderBuffer:t("./render-buffer"),FrameBuffer:t("./frame-buffer"),Device:t("./device"),attrTypeBytes:r.attrTypeBytes,glFilter:r.glFilter,glTextureFmt:r.glTextureFmt},Object.assign(n,r.enums);var s=n;i.default=s,cc.gfx=n,e.exports=i.default}),{"./device":273,"./enums":274,"./frame-buffer":275,"./index-buffer":276,"./program":279,"./render-buffer":280,"./texture":284,"./texture-2d":282,"./texture-cube":283,"./vertex-buffer":285,"./vertex-format":286}],278:[(function(t,e,i){"use strict";i.__esModule=!0,i.isPow2=function(t){return!(t&t-1||!t)}}),{}],279:[(function(t,e,i){"use strict";function n(t,e){for(var i=0;i0&&t.push({type:e,fileID:-1,line:0,message:i})}}))}var a=(function(){function t(t,e){this._device=t,this._attributes=[],this._uniforms=[],this._samplers=[],this._errors=[],this._linked=!1,this._vertSource=e.vert,this._fragSource=e.frag,this._glID=null,this._id=r++}var e,i,a=t.prototype;return a.link=function(){if(!this._linked){var t=this._device._gl,e=o(t,t.VERTEX_SHADER,this._vertSource),i=o(t,t.FRAGMENT_SHADER,this._fragSource),n=t.createProgram();t.attachShader(n,e),t.attachShader(n,i),t.linkProgram(n);var r=!1,a=this._errors;if(t.getShaderParameter(e,t.COMPILE_STATUS)||(s(a,"vs",t.getShaderInfoLog(e)),r=!0),t.getShaderParameter(i,t.COMPILE_STATUS)||(s(a,"fs",t.getShaderInfoLog(i)),r=!0),t.deleteShader(e),t.deleteShader(i),r)return a;if(!t.getProgramParameter(n,t.LINK_STATUS))return a.push({info:"Failed to link shader program: "+t.getProgramInfoLog(n)}),a;this._glID=n;for(var c=t.getProgramParameter(n,t.ACTIVE_ATTRIBUTES),l=0;l=s.enums.TEXTURE_FMT_RGB_DXT1&&this._format<=s.enums.TEXTURE_FMT_RGBA_PVRTC_4BPPV1||this._format>=s.enums.TEXTURE_FMT_RGB_ETC2&&this._format<=s.enums.TEXTURE_FMT_RGBA_ETC2),void 0!==t.genMipmaps&&(this._genMipmap=t.genMipmaps,i=t.genMipmaps);var n=this._device.caps.maxTextureSize||Number.MAX_VALUE,r=Math.max(t.width||0,t.height||0);n1&&(i=!1,(t.width>t.height?t.width:t.height)>>t.images.length-1!=1&&console.error("texture-2d mipmap is invalid, should have a 1x1 mipmap."))}(0,a.isPow2)(this._width)&&(0,a.isPow2)(this._height)||(i=!1),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this._glID),void 0!==t.images&&t.images.length>0&&(this._setMipmap(t.images,t.flipY,t.premultiplyAlpha),t.images.length>1&&(this._genMipmap=!0)),i&&(e.hint(e.GENERATE_MIPMAP_HINT,e.NICEST),e.generateMipmap(e.TEXTURE_2D),this._genMipmap=!0),this._setTexInfo(),this._device._restoreTexture(0)},r.updateSubImage=function(t){var e=this._device._gl,i=(0,s.glTextureFmt)(this._format);e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this._glID),this._setSubImage(i,t),this._device._restoreTexture(0)},r.updateImage=function(t){var e=this._device._gl,i=(0,s.glTextureFmt)(this._format);e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this._glID),this._setImage(i,t),this._device._restoreTexture(0)},r._setSubImage=function(t,e){var i=this._device._gl,n=e.flipY,r=e.premultiplyAlpha,s=e.image;!s||ArrayBuffer.isView(s)||s instanceof ArrayBuffer?(void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),this._compressed?i.compressedTexSubImage2D(i.TEXTURE_2D,e.level,e.x,e.y,e.width,e.height,t.format,s):i.texSubImage2D(i.TEXTURE_2D,e.level,e.x,e.y,e.width,e.height,t.format,t.pixelType,s)):(void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),i.texSubImage2D(i.TEXTURE_2D,e.level,e.x,e.y,t.format,t.pixelType,s))},r._setImage=function(t,e){var i=this._device._gl,n=e.flipY,r=e.premultiplyAlpha,s=e.image;!s||ArrayBuffer.isView(s)||s instanceof ArrayBuffer?(void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),this._compressed?i.compressedTexImage2D(i.TEXTURE_2D,e.level,t.internalFormat,e.width,e.height,0,s):i.texImage2D(i.TEXTURE_2D,e.level,t.internalFormat,e.width,e.height,0,t.format,t.pixelType,s)):(void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),i.texImage2D(i.TEXTURE_2D,e.level,t.internalFormat,t.format,t.pixelType,s))},r._setMipmap=function(t,e,i){for(var n=(0,s.glTextureFmt)(this._format),r={width:this._width,height:this._height,flipY:e,premultiplyAlpha:i,level:0,image:null},a=0;a>a,r.height=this._height>>a,r.image=t[a],this._setImage(n,r)},r._setTexInfo=function(){var t=this._device._gl,e=(0,a.isPow2)(this._width)&&(0,a.isPow2)(this._height);e||this._wrapS===s.enums.WRAP_CLAMP&&this._wrapT===s.enums.WRAP_CLAMP||(console.warn("WebGL1 doesn't support all wrap modes with NPOT textures"),this._wrapS=s.enums.WRAP_CLAMP,this._wrapT=s.enums.WRAP_CLAMP);var i=this._genMipmap?this._mipFilter:-1;e||-1===i||(console.warn("NPOT textures do not support mipmap filter"),i=-1),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,(0,s.glFilter)(t,this._minFilter,i)),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,(0,s.glFilter)(t,this._magFilter,-1)),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,this._wrapS),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,this._wrapT);var n=this._device.ext("EXT_texture_filter_anisotropic");n&&t.texParameteri(t.TEXTURE_2D,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisotropy)},n})(r.default);i.default=c,e.exports=i.default}),{"./enums":274,"./misc":278,"./texture":284}],283:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("./texture"))&&n.__esModule?n:{default:n},s=t("./enums"),a=t("./misc");function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=(function(t){var e,i;function n(e,i){var n,r=(n=t.call(this,e)||this)._device._gl;return n._target=r.TEXTURE_CUBE_MAP,n._glID=r.createTexture(),n.update(i),n}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,o(e,i);var r=n.prototype;return r.update=function(t){var e=this._device._gl,i=this._genMipmaps;t&&(void 0!==t.width&&(this._width=t.width),void 0!==t.height&&(this._height=t.height),void 0!==t.anisotropy&&(this._anisotropy=t.anisotropy),void 0!==t.minFilter&&(this._minFilter=t.minFilter),void 0!==t.magFilter&&(this._magFilter=t.magFilter),void 0!==t.mipFilter&&(this._mipFilter=t.mipFilter),void 0!==t.wrapS&&(this._wrapS=t.wrapS),void 0!==t.wrapT&&(this._wrapT=t.wrapT),void 0!==t.format&&(this._format=t.format,this._compressed=this._format>=s.enums.TEXTURE_FMT_RGB_DXT1&&this._format<=s.enums.TEXTURE_FMT_RGBA_PVRTC_4BPPV1||this._format>=s.enums.TEXTURE_FMT_RGB_ETC2&&this._format<=s.enums.TEXTURE_FMT_RGBA_ETC2),void 0!==t.genMipmaps&&(this._genMipmaps=t.genMipmaps,i=t.genMipmaps),void 0!==t.images&&t.images.length>1&&(i=!1,t.width!==t.height&&console.warn("texture-cube width and height should be identical."),t.width>>t.images.length-1!=1&&console.error("texture-cube mipmap is invalid. please set mipmap as 1x1, 2x2, 4x4 ... nxn"))),(0,a.isPow2)(this._width)&&(0,a.isPow2)(this._height)||(i=!1),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_CUBE_MAP,this._glID),void 0!==t.images&&t.images.length>0&&(this._setMipmap(t.images,t.flipY,t.premultiplyAlpha),t.images.length>1&&(this._genMipmaps=!0)),i&&(e.hint(e.GENERATE_MIPMAP_HINT,e.NICEST),e.generateMipmap(e.TEXTURE_CUBE_MAP),this._genMipmaps=!0),this._setTexInfo(),this._device._restoreTexture(0)},r.updateSubImage=function(t){var e=this._device._gl,i=(0,s.glTextureFmt)(this._format);e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_CUBE_MAP,this._glID),this._setSubImage(i,t),this._device._restoreTexture(0)},r.updateImage=function(t){var e=this._device._gl,i=(0,s.glTextureFmt)(this._format);e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_CUBE_MAP,this._glID),this._setImage(i,t),this._device._restoreTexture(0)},r._setSubImage=function(t,e){var i=this._device._gl,n=e.flipY,r=e.premultiplyAlpha,s=e.faceIndex,a=e.image;void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),!a||ArrayBuffer.isView(a)||a instanceof ArrayBuffer?this._compressed?i.compressedTexSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,e.x,e.y,e.width,e.height,t.format,a):i.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,e.x,e.y,e.width,e.height,t.format,t.pixelType,a):i.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,e.x,e.y,t.format,t.pixelType,a)},r._setImage=function(t,e){var i=this._device._gl,n=e.flipY,r=e.premultiplyAlpha,s=e.faceIndex,a=e.image;void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),!a||ArrayBuffer.isView(a)||a instanceof ArrayBuffer?this._compressed?i.compressedTexImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,t.internalFormat,e.width,e.height,0,a):i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,t.internalFormat,e.width,e.height,0,t.format,t.pixelType,a):i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,t.internalFormat,t.format,t.pixelType,a)},r._setMipmap=function(t,e,i){for(var n=(0,s.glTextureFmt)(this._format),r={width:this._width,height:this._height,faceIndex:0,flipY:e,premultiplyAlpha:i,level:0,image:null},a=0;a>a,r.height=this._height>>a;for(var c=0;c<6;++c)r.faceIndex=c,r.image=o[c],this._setImage(n,r)}},r._setTexInfo=function(){var t=this._device._gl,e=(0,a.isPow2)(this._width)&&(0,a.isPow2)(this._height);e||this._wrapS===s.enums.WRAP_CLAMP&&this._wrapT===s.enums.WRAP_CLAMP||(console.warn("WebGL1 doesn't support all wrap modes with NPOT textures"),this._wrapS=s.enums.WRAP_CLAMP,this._wrapT=s.enums.WRAP_CLAMP);var i=this._genMipmaps?this._mipFilter:-1;e||-1===i||(console.warn("NPOT textures do not support mipmap filter"),i=-1),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,(0,s.glFilter)(t,this._minFilter,i)),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,(0,s.glFilter)(t,this._magFilter,-1)),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_S,this._wrapS),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_T,this._wrapT);var n=this._device.ext("EXT_texture_filter_anisotropic");n&&t.texParameteri(t.TEXTURE_CUBE_MAP,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisotropy)},n})(r.default);i.default=c,e.exports=i.default}),{"./enums":274,"./misc":278,"./texture":284}],284:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=t("./enums"),r=0,s=(function(){function t(t){this._device=t,this._width=4,this._height=4,this._genMipmaps=!1,this._compressed=!1,this._anisotropy=1,this._minFilter=n.enums.FILTER_LINEAR,this._magFilter=n.enums.FILTER_LINEAR,this._mipFilter=n.enums.FILTER_LINEAR,this._wrapS=n.enums.WRAP_REPEAT,this._wrapT=n.enums.WRAP_REPEAT,this._format=n.enums.TEXTURE_FMT_RGBA8,this._target=-1,this._id=r++}return t.prototype.destroy=function(){null!==this._glID?(this._device._gl.deleteTexture(this._glID),this._device._stats.tex-=this.bytes,this._glID=null):console.error("The texture already destroyed")},t})();i.default=s,e.exports=i.default}),{"./enums":274}],285:[(function(t,e,i){"use strict";function n(t,e){for(var i=0;ithis._bytes){if(t)return void console.error("Failed to update data, bytes exceed.");this._needExpandDataStore=!0,this._bytes=t+e.byteLength,this._numVertices=this._bytes/this._bytesPerVertex}var i=this._device._gl,n=this._usage;i.bindBuffer(i.ARRAY_BUFFER,this._glID),this._needExpandDataStore?(i.bufferData(i.ARRAY_BUFFER,e,n),this._needExpandDataStore=!1):i.bufferSubData(i.ARRAY_BUFFER,t,e),i.bindBuffer(i.ARRAY_BUFFER,null)}}else console.error("The buffer is destroyed")},r.getFormat=function(t){return this._format.element(t)},r.setUsage=function(t){this._usage=t},e=t,(i=[{key:"count",get:function(){return this._numVertices}}])&&n(e.prototype,i),t})();i.default=r,e.exports=i.default}),{"./enums":274}],286:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("./enums"),s=(n=t("../murmurhash2_gc"))&&n.__esModule?n:{default:n},a=(function(){function t(t){this._attr2el={},this._elements=[],this._bytes=0;for(var e="",i=0,n=t.length;ithis._data.length)for(var e=this._data.length;e=this._data.length&&this._resize(2*this._data.length),this._data[this._count]=t,++this._count},n.pop=function(){--this._count,this._count<0&&(this._count=0);var t=this._data[this._count];return this._data[this._count]=void 0,t},n.fastRemove=function(t){if(!(t>=this._count||t<0)){var e=this._count-1;this._data[t]=this._data[e],this._data[e]=void 0,this._count-=1}},n.indexOf=function(t){return this._data.indexOf(t)},n.sort=function(t){return(0,r.default)(this._data,0,this._count,t)},e=t,(i=[{key:"length",get:function(){return this._count}},{key:"data",get:function(){return this._data}}])&&s(e.prototype,i),t})();i.default=a,e.exports=i.default}),{"./timsort":293}],289:[(function(t,e,i){"use strict";i.__esModule=!0,i.TypedArrayPool=i.RecyclePool=i.Pool=i.LinkedArray=i.FixedArray=i.CircularPool=void 0;var n=l(t("./circular-pool"));i.CircularPool=n.default;var r=l(t("./fixed-array"));i.FixedArray=r.default;var s=l(t("./linked-array"));i.LinkedArray=s.default;var a=l(t("./pool"));i.Pool=a.default;var o=l(t("./recycle-pool"));i.RecyclePool=o.default;var c=l(t("./typed-array-pool"));function l(t){return t&&t.__esModule?t:{default:t}}i.TypedArrayPool=c.default}),{"./circular-pool":287,"./fixed-array":288,"./linked-array":290,"./pool":291,"./recycle-pool":292,"./typed-array-pool":294}],290:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("./pool"))&&n.__esModule?n:{default:n};function s(t,e){for(var i=0;ithis._data.length)for(var e=this._data.length;e=this._data.length&&this.resize(2*this._data.length),this._data[this._count++]},n.remove=function(t){if(!(t>=this._count)){var e=this._count-1,i=this._data[t];this._data[t]=this._data[e],this._data[e]=i,this._count-=1}},n.sort=function(t){return(0,r.default)(this._data,0,this._count,t)},e=t,(i=[{key:"length",get:function(){return this._count}},{key:"data",get:function(){return this._data}}])&&s(e.prototype,i),t})();i.default=a,cc.RecyclePool=a,e.exports=i.default}),{"./timsort":293}],293:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e,i,r){if(!Array.isArray(t))throw new TypeError("Can only sort arrays");void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=c);var s=i-e;if(!(s<2)){var a=0;if(sh&&(d=h),f(t,e,e+d,e+a,r),a=d}o.pushRun(e,a),o.mergeRuns(),s-=a,e+=a}while(0!==s);o.forceMergeRuns()}};var n=32,r=7,s=256,a=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];function o(t){return t<1e5?t<100?t<10?0:1:t<1e4?t<1e3?2:3:4:t<1e7?t<1e6?5:6:t<1e9?t<1e8?7:8:9}function c(t,e){if(t===e)return 0;if(~~t===t&&~~e===e){if(0===t||0===e)return t=0)return-1;if(t>=0)return 1;t=-t,e=-e}var i=o(t),n=o(e),r=0;return in&&(e*=a[i-n-1],t/=10,r=1),t===e?r:t=n;)e|=1&t,t>>=1;return t+e}function u(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function h(t,e,i){for(i--;e>>1;r(s,t[c])<0?o=c:a=c+1}var l=n-a;switch(l){case 3:t[a+3]=t[a+2];case 2:t[a+2]=t[a+1];case 1:t[a+1]=t[a];break;default:for(;l>0;)t[a+l]=t[a+l-1],l--}t[a]=s}}function d(t,e,i,n,r,s){var a=0,o=0,c=1;if(s(t,e[i+r])>0){for(o=n-r;c0;)a=c,(c=1+(c<<1))<=0&&(c=o);c>o&&(c=o),a+=r,c+=r}else{for(o=r+1;co&&(c=o);var l=a;a=r-c,c=r-l}for(a++;a>>1);s(t,e[i+u])>0?a=u+1:c=u}return c}function _(t,e,i,n,r,s){var a=0,o=0,c=1;if(s(t,e[i+r])<0){for(o=r+1;co&&(c=o);var l=a;a=r-c,c=r-l}else{for(o=n-r;c=0;)a=c,(c=1+(c<<1))<=0&&(c=o);c>o&&(c=o),a+=r,c+=r}for(a++;a>>1);s(t,e[i+u])<0?c=u:a=u+1}return c}var p=(function(){function t(t,e){this.array=t,this.compare=e,this.minGallop=r,this.length=t.length,this.tmpStorageLength=s,this.length<2*s&&(this.tmpStorageLength=this.length>>>1),this.tmp=new Array(this.tmpStorageLength),this.stackLength=this.length<120?5:this.length<1542?10:this.length<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength),this.stackSize=0}var e=t.prototype;return e.pushRun=function(t,e){this.runStart[this.stackSize]=t,this.runLength[this.stackSize]=e,this.stackSize+=1},e.mergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;if(t>=1&&this.runLength[t-1]<=this.runLength[t]+this.runLength[t+1]||t>=2&&this.runLength[t-2]<=this.runLength[t]+this.runLength[t-1])this.runLength[t-1]this.runLength[t+1])break;this.mergeAt(t)}},e.forceMergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;t>0&&this.runLength[t-1]=r||v>=r);if(g)break;f<0&&(f=0),f+=2}if(this.minGallop=f,f<1&&(this.minGallop=1),1===e){for(c=0;c=0;c--)a[p+c]=a[f+c];if(0===e){y=!0;break}}if(a[h--]=o[u--],1==--n){y=!0;break}if(0!=(m=n-d(a[l],o,0,n,n-1,s))){for(n-=m,p=1+(h-=m),f=1+(u-=m),c=0;c=r||m>=r);if(y)break;v<0&&(v=0),v+=2}if(this.minGallop=v,v<1&&(this.minGallop=1),1===n){for(p=1+(h-=e),f=1+(l-=e),c=e-1;c>=0;c--)a[p+c]=a[f+c];a[h]=o[u]}else{if(0===n)throw new Error("mergeHigh preconditions were not respected");for(f=h-(n-1),c=0;c=0;c--)a[p+c]=a[f+c];a[h]=o[u]}else for(f=h-(n-1),c=0;c65535)<<4,e|=i=((t>>>=e)>255)<<3,e|=i=((t>>>=i)>15)<<2,(e|=i=((t>>>=i)>3)<<1)|(t>>>=i)>>1}function o(t){var e=s(t),i=n[a(e)>>2];return i.length>0?i.pop():new ArrayBuffer(e)}var c={alloc_int8:function(t){var e=new Int8Array(o(t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_uint8:function(t){var e=new Uint8Array(o(t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_int16:function(t){var e=new Int16Array(o(2*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_uint16:function(t){var e=new Uint16Array(o(2*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_int32:function(t){var e=new Int32Array(o(4*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_uint32:function(t){var e=new Uint32Array(o(4*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_float32:function(t){var e=new Float32Array(o(4*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_float64:function(t){var e=new Float64Array(o(8*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_dataview:function(t){var e=new DataView(o(t),0,t);return e.length!==t?e.subarray(0,t):e},free:function(t){var e;e=t.buffer,n[a(e.byteLength)>>2].push(e)},reset:function(){for(var t=Array(8),e=0;e<8;++e)t[e]=[]}};i.default=c,e.exports=i.default}),{}],295:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e){for(var i,n=t.length,r=e^n,s=0;n>=4;)i=1540483477*(65535&(i=255&t.charCodeAt(s)|(255&t.charCodeAt(++s))<<8|(255&t.charCodeAt(++s))<<16|(255&t.charCodeAt(++s))<<24))+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),n-=4,++s;switch(n){case 3:r^=(255&t.charCodeAt(s+2))<<16;case 2:r^=(255&t.charCodeAt(s+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(s)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0},e.exports=i.default}),{}],296:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=t("../../core/value-types"),r=o(t("../core/base-renderer")),s=o(t("../enums")),a=t("../memop");function o(t){return t&&t.__esModule?t:{default:t}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=new Float32Array(16),h=new Float32Array(16),f=new Float32Array(16),d=new Float32Array(16),_=new Float32Array(4),p=new Float32Array(64),v=[],g=new Float32Array(4),m=new n.Vec4(0,0,0,0),y=new n.Vec3(0,0,0),T=new n.Vec3(0,0,0),E=new a.RecyclePool(function(){return new Float32Array(16)},8);function A(t,e){return t._priority-e._priority}var C=(function(t){var e,i;function r(e,i){var n;return(n=t.call(this,e,i)||this)._time=new Float32Array(4),n._lights=[],n._shadowLights=[],n._numLights=0,n._defines={},n._registerStage("shadowcast",n._shadowStage.bind(c(n))),n._registerStage("opaque",n._opaqueStage.bind(c(n))),n._registerStage("transparent",n._transparentStage.bind(c(n))),n}i=t,(e=r).prototype=Object.create(i.prototype),e.prototype.constructor=e,l(e,i);var a=r.prototype;return a.reset=function(){E.reset(),t.prototype.reset.call(this)},a.render=function(t,e){this.reset(),e&&(this._time[0]+=e,this._time[1]=e,this._time[2]++),this._device.setUniform("cc_time",this._time),this._updateLights(t);for(var i=this._device._gl.canvas,n=0;n0){for(var e=E.add(),i=E.add(),n=E.add(),r=Math.min(4,this._lights.length),a=0;a":0}),h=cc.Enum({REALTIME:0,SHARED_CACHE:1,PRIVATE_CACHE:2});sp.Skeleton=cc.Class({name:"sp.Skeleton",extends:n,editor:!1,statics:{AnimationCacheMode:h},properties:{paused:{default:!1,visible:!1},skeletonData:{default:null,type:sp.SkeletonData,notify:function(){this.defaultSkin="",this.defaultAnimation="",this._updateSkeletonData()},tooltip:!1},defaultSkin:{default:"",visible:!1},defaultAnimation:{default:"",visible:!1},animation:{get:function(){if(this.isAnimationCached())return this._animationName;var t=this.getCurrent(0);return t&&t.animation.name||""},set:function(t){this.defaultAnimation=t,t?this.setAnimation(0,t,this.loop):this.isAnimationCached()||(this.clearTrack(0),this.setToSetupPose())},visible:!1},_defaultSkinIndex:{get:function(){if(this.skeletonData){var t=this.skeletonData.getSkinsEnum();if(t)if(""===this.defaultSkin){if(t.hasOwnProperty(0))return this._defaultSkinIndex=0,0}else{var e=t[this.defaultSkin];if(void 0!==e)return e}}return 0},set:function(t){var e;if(this.skeletonData&&(e=this.skeletonData.getSkinsEnum()),!e)return cc.errorID("",this.name);var i=e[t];void 0!==i?(this.defaultSkin=i,this.setSkin(this.defaultSkin)):cc.errorID(7501,this.name)},type:l,visible:!0,animatable:!1,displayName:"Default Skin",tooltip:!1},_animationIndex:{get:function(){var t=this.animation;if(this.skeletonData&&t){var e=this.skeletonData.getAnimsEnum();if(e){var i=e[t];if(void 0!==i)return i}}return 0},set:function(t){if(0!==t){var e;if(this.skeletonData&&(e=this.skeletonData.getAnimsEnum()),!e)return cc.errorID(7502,this.name);var i=e[t];void 0!==i?this.animation=i:cc.errorID(7503,this.name)}else this.animation=""},type:u,visible:!0,animatable:!1,displayName:"Animation",tooltip:!1},_preCacheMode:-1,_cacheMode:h.REALTIME,_defaultCacheMode:{default:0,type:h,notify:function(){this.setAnimationCacheMode(this._defaultCacheMode)},editorOnly:!0,visible:!0,animatable:!1,displayName:"Animation Cache Mode",tooltip:!1},loop:{default:!0,tooltip:!1},premultipliedAlpha:{default:!0,tooltip:!1},timeScale:{default:1,tooltip:!1},debugSlots:{default:!1,editorOnly:!0,tooltip:!1,notify:function(){this._updateDebugDraw()}},debugBones:{default:!1,editorOnly:!0,tooltip:!1,notify:function(){this._updateDebugDraw()}},debugMesh:{default:!1,editorOnly:!0,tooltip:!1,notify:function(){this._updateDebugDraw()}},useTint:{default:!1,tooltip:!1,notify:function(){this._updateUseTint()}},enableBatch:{default:!1,notify:function(){this._updateBatch()},tooltip:!1},_accTime:0,_playCount:0,_frameCache:null,_curFrame:null,_skeletonCache:null,_animationName:"",_animationQueue:[],_headAniInfo:null,_playTimes:0,_isAniComplete:!0},ctor:function(){this._effectDelegate=null,this._skeleton=null,this._rootBone=null,this._listener=null,this._materialCache={},this._debugRenderer=null,this._startSlotIndex=-1,this._endSlotIndex=-1,this._startEntry={animation:{name:""},trackIndex:0},this._endEntry={animation:{name:""},trackIndex:0},this.attachUtil=new c},_getDefaultMaterial:function(){return cc.Material.getBuiltinMaterial("2d-spine")},_updateMaterial:function(){var t=this.useTint||this.isAnimationCached()&&!0,e=this.getMaterial(0);if(e){e.define("USE_TINT",t),e.define("CC_USE_MODEL",!this.enableBatch);var i=this.premultipliedAlpha?cc.gfx.BLEND_ONE:cc.gfx.BLEND_SRC_ALPHA,n=cc.gfx.BLEND_ONE_MINUS_SRC_ALPHA;e.setBlend(!0,cc.gfx.BLEND_FUNC_ADD,i,i,cc.gfx.BLEND_FUNC_ADD,n,n)}this._materialCache={}},disableRender:function(){this._super(),this.node._renderFlag&=~a},markForRender:function(t){this._super(t),t?this.node._renderFlag|=a:this.node._renderFlag&=~a},_updateUseTint:function(){var t=this.getMaterial(0);if(t){var e=this.useTint||this.isAnimationCached()&&!0;t.define("USE_TINT",e)}this._materialCache={}},_updateBatch:function(){var t=this.getMaterial(0);t&&t.define("CC_USE_MODEL",!this.enableBatch),this._materialCache={}},_validateRender:function(){var t=this.skeletonData;t&&t.isTexturesLoaded()?this._super():this.disableRender()},setSkeletonData:function(t){if(null!=t.width&&null!=t.height&&this.node.setContentSize(t.width,t.height),this._cacheMode===h.SHARED_CACHE?this._skeletonCache=o.sharedCache:this._cacheMode===h.PRIVATE_CACHE&&(this._skeletonCache=new o,this._skeletonCache.enablePrivateMode()),this.isAnimationCached()){(this.debugBones||this.debugSlots)&&cc.warn("Debug bones or slots is invalid in cached mode");var e=this._skeletonCache.getSkeletonCache(this.skeletonData._uuid,t);this._skeleton=e.skeleton,this._clipper=e.clipper,this._rootBone=this._skeleton.getRootBone()}else this._skeleton=new r.Skeleton(t),this._clipper=new r.SkeletonClipping,this._rootBone=this._skeleton.getRootBone();this.markForRender(!0)},setSlotsRange:function(t,e){this.isAnimationCached()?cc.warn("Slots visible range can not be modified in cached mode."):(this._startSlotIndex=t,this._endSlotIndex=e)},setAnimationStateData:function(t){if(this.isAnimationCached())cc.warn("'setAnimationStateData' interface can not be invoked in cached mode.");else{var e=new r.AnimationState(t);this._listener&&(this._state&&this._state.removeListener(this._listener),e.addListener(this._listener)),this._state=e}},__preload:function(){this._super();for(var t=this.node.children,e=0,i=t.length;ethis._headAniInfo.delay){var n=this._headAniInfo;this._headAniInfo=null,this.setAnimation(0,n.animationName,n.loop)}return}this._updateCache(t)}else this._updateRealtime(t)},_emitCacheCompleteEvent:function(){this._listener&&(this._endEntry.animation.name=this._animationName,this._listener.complete&&this._listener.complete(this._endEntry),this._listener.end&&this._listener.end(this._endEntry))},_updateCache:function(t){var e=this._frameCache;if(e.isInited()){var i=e.frames,n=o.FrameTime;0==this._accTime&&0==this._playCount&&(this._startEntry.animation.name=this._animationName,this._listener&&this._listener.start&&this._listener.start(this._startEntry)),this._accTime+=t;var r=Math.floor(this._accTime/n);if(e.isCompleted||e.updateToFrame(r),e.isCompleted&&r>=i.length){if(this._playCount++,this._playTimes>0&&this._playCount>=this._playTimes)return this._curFrame=i[i.length-1],this._accTime=0,this._playCount=0,this._isAniComplete=!0,void this._emitCacheCompleteEvent();this._accTime=0,r=0,this._emitCacheCompleteEvent()}this._curFrame=i[r]}},_updateRealtime:function(t){var e=this._skeleton,i=this._state;e&&(e.update(t),i&&(i.update(t),i.apply(e)))},setVertexEffectDelegate:function(t){this._effectDelegate=t},updateWorldTransform:function(){this.isAnimationCached()&&this._skeleton&&this._skeleton.updateWorldTransform()},setToSetupPose:function(){this._skeleton&&this._skeleton.setToSetupPose()},setBonesToSetupPose:function(){this._skeleton&&this._skeleton.setBonesToSetupPose()},setSlotsToSetupPose:function(){this._skeleton&&this._skeleton.setSlotsToSetupPose()},updateAnimationCache:function(t){if(this.isAnimationCached()){var e=this.skeletonData._uuid;this._skeletonCache&&this._skeletonCache.updateAnimationCache(e,t)}},invalidAnimationCache:function(){this.isAnimationCached()&&this._skeletonCache&&this._skeletonCache.invalidAnimationCache(this.skeletonData._uuid)},findBone:function(t){return this._skeleton?this._skeleton.findBone(t):null},findSlot:function(t){return this._skeleton?this._skeleton.findSlot(t):null},setSkin:function(t){this._skeleton&&(this._skeleton.setSkinByName(t),this._skeleton.setSlotsToSetupPose()),this.invalidAnimationCache()},getAttachment:function(t,e){return this._skeleton?this._skeleton.getAttachmentByName(t,e):null},setAttachment:function(t,e){this._skeleton&&this._skeleton.setAttachment(t,e),this.invalidAnimationCache()},getTextureAtlas:function(t){return t.region},setMix:function(t,e,i){this._state&&this._state.data.setMix(t,e,i)},setAnimation:function(t,e,i){if(this._playTimes=i?0:1,this._animationName=e,this.isAnimationCached()){if(0!==t&&cc.warn("Track index can not greater than 0 in cached mode."),!this._skeletonCache)return null;var n=this._skeletonCache.getAnimationCache(this.skeletonData._uuid,e);n||(n=this._skeletonCache.initAnimationCache(this.skeletonData._uuid,e)),n&&(this._isAniComplete=!1,this._accTime=0,this._playCount=0,this._frameCache=n,this.attachUtil._hasAttachedNode()&&this._frameCache.enableCacheAttachedInfo(),this._frameCache.updateToFrame(0),this._curFrame=this._frameCache.frames[0])}else if(this._skeleton){var r=this._skeleton.data.findAnimation(e);if(!r)return cc.logID(7509,e),null;var s=this._state.setAnimationWith(t,r,i);return this._state.apply(this._skeleton),s}return null},addAnimation:function(t,e,i,n){if(n=n||0,this.isAnimationCached())0!==t&&cc.warn("Track index can not greater than 0 in cached mode."),this._animationQueue.push({animationName:e,loop:i,delay:n});else if(this._skeleton){var r=this._skeleton.data.findAnimation(e);return r?this._state.addAnimationWith(t,r,i,n):(cc.logID(7510,e),null)}return null},findAnimation:function(t){return this._skeleton?this._skeleton.data.findAnimation(t):null},getCurrent:function(t){if(this.isAnimationCached())cc.warn("'getCurrent' interface can not be invoked in cached mode.");else if(this._state)return this._state.getCurrent(t);return null},clearTracks:function(){this.isAnimationCached()?cc.warn("'clearTracks' interface can not be invoked in cached mode."):this._state&&this._state.clearTracks()},clearTrack:function(t){this.isAnimationCached()?cc.warn("'clearTrack' interface can not be invoked in cached mode."):this._state&&this._state.clearTrack(t)},setStartListener:function(t){this._ensureListener(),this._listener.start=t},setInterruptListener:function(t){this._ensureListener(),this._listener.interrupt=t},setEndListener:function(t){this._ensureListener(),this._listener.end=t},setDisposeListener:function(t){this._ensureListener(),this._listener.dispose=t},setCompleteListener:function(t){this._ensureListener(),this._listener.complete=t},setEventListener:function(t){this._ensureListener(),this._listener.event=t},setTrackStartListener:function(t,e){i.getListeners(t).start=e},setTrackInterruptListener:function(t,e){i.getListeners(t).interrupt=e},setTrackEndListener:function(t,e){i.getListeners(t).end=e},setTrackDisposeListener:function(t,e){i.getListeners(t).dispose=e},setTrackCompleteListener:function(t,e){i.getListeners(t).complete=function(t){var i=Math.floor(t.trackTime/t.animationEnd);e(t,i)}},setTrackEventListener:function(t,e){i.getListeners(t).event=e},getState:function(){return this._state},_updateAnimEnum:!1,_updateSkinEnum:!1,_ensureListener:function(){this._listener||(this._listener=new i,this._state&&this._state.addListener(this._listener))},_updateSkeletonData:function(){if(this.skeletonData){var t=this.skeletonData.getRuntimeData();if(t){try{this.setSkeletonData(t),this.isAnimationCached()||this.setAnimationStateData(new r.AnimationStateData(this._skeleton.data)),this.defaultSkin&&this.setSkin(this.defaultSkin)}catch(e){cc.warn(e)}this.attachUtil.init(this),this.attachUtil._associateAttachedNode(),this._preCacheMode=this._cacheMode,this.animation=this.defaultAnimation}else this.disableRender()}else this.disableRender()},_refreshInspector:function(){this._updateAnimEnum(),this._updateSkinEnum(),Editor.Utils.refreshSelectedInspector("node",this.node.uuid)},_updateDebugDraw:function(){if(this.debugBones||this.debugSlots){if(!this._debugRenderer){var t=new cc.PrivateNode;t.name="DEBUG_DRAW_NODE";var e=t.addComponent(s);e.lineWidth=1,e.strokeColor=cc.color(255,0,0,255),this._debugRenderer=e}this._debugRenderer.node.parent=this.node,this.isAnimationCached()&&cc.warn("Debug bones or slots is invalid in cached mode")}else this._debugRenderer&&(this._debugRenderer.node.parent=null)}}),e.exports=sp.Skeleton}),{"../../cocos2d/core/components/CCRenderComponent":109,"../../cocos2d/core/graphics/graphics":150,"../../cocos2d/core/renderer/render-flow":193,"./AttachUtil":305,"./lib/spine":308,"./skeleton-cache":309,"./track-entry-listeners":313}],307:[(function(t){"use strict";var e="undefined"==typeof window?global:window;e.spine=t("./lib/spine"),e.sp=e.sp||{},sp._timeScale=1,Object.defineProperty(sp,"timeScale",{get:function(){return this._timeScale},set:function(t){this._timeScale=t},configurable:!0}),sp.ATTACHMENT_TYPE={REGION:0,BOUNDING_BOX:1,MESH:2,SKINNED_MESH:3},sp.AnimationEventType=cc.Enum({START:0,INTERRUPT:1,END:2,DISPOSE:3,COMPLETE:4,EVENT:5}),sp.spine=e.spine,t("./skeleton-texture"),t("./skeleton-data"),t("./vertex-effect-delegate"),t("./Skeleton"),t("./spine-assembler")}),{"./Skeleton":306,"./lib/spine":308,"./skeleton-data":310,"./skeleton-texture":311,"./spine-assembler":312,"./vertex-effect-delegate":314}],308:[(function(t,e){"use strict";var i,n,r,s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});(function(t){var e,i,n,r=(function(){function t(t,e,i){if(null==t)throw new Error("name cannot be null.");if(null==e)throw new Error("timelines cannot be null.");this.name=t,this.timelines=e,this.timelineIds=[];for(var n=0;n0&&(e%=this.duration));for(var c=this.timelines,l=0,u=c.length;l>>1;;){if(t[(s+1)*i]<=e?n=s+1:r=s,n==r)return(n+1)*i;s=n+r>>>1}},t.linearSearch=function(t,e,i){for(var n=0,r=t.length-i;n<=r;n+=i)if(t[n]>e)return n;return-1},t})();t.Animation=r,(function(t){t[t.setup=0]="setup",t[t.first=1]="first",t[t.replace=2]="replace",t[t.add=3]="add"})(e=t.MixBlend||(t.MixBlend={})),(function(t){t[t.mixIn=0]="mixIn",t[t.mixOut=1]="mixOut"})(i=t.MixDirection||(t.MixDirection={})),(function(t){t[t.rotate=0]="rotate",t[t.translate=1]="translate",t[t.scale=2]="scale",t[t.shear=3]="shear",t[t.attachment=4]="attachment",t[t.color=5]="color",t[t.deform=6]="deform",t[t.event=7]="event",t[t.drawOrder=8]="drawOrder",t[t.ikConstraint=9]="ikConstraint",t[t.transformConstraint=10]="transformConstraint",t[t.pathConstraintPosition=11]="pathConstraintPosition",t[t.pathConstraintSpacing=12]="pathConstraintSpacing",t[t.pathConstraintMix=13]="pathConstraintMix",t[t.twoColor=14]="twoColor"})(n=t.TimelineType||(t.TimelineType={}));var a=(function(){function e(i){if(i<=0)throw new Error("frameCount must be > 0: "+i);this.curves=t.Utils.newFloatArray((i-1)*e.BEZIER_SIZE)}return e.prototype.getFrameCount=function(){return this.curves.length/e.BEZIER_SIZE+1},e.prototype.setLinear=function(t){this.curves[t*e.BEZIER_SIZE]=e.LINEAR},e.prototype.setStepped=function(t){this.curves[t*e.BEZIER_SIZE]=e.STEPPED},e.prototype.getCurveType=function(t){var i=t*e.BEZIER_SIZE;if(i==this.curves.length)return e.LINEAR;var n=this.curves[i];return n==e.LINEAR?e.LINEAR:n==e.STEPPED?e.STEPPED:e.BEZIER},e.prototype.setCurve=function(t,i,n,r,s){var a=.03*(2*-i+r),o=.03*(2*-n+s),c=.006*(3*(i-r)+1),l=.006*(3*(n-s)+1),u=2*a+c,h=2*o+l,f=.3*i+a+.16666667*c,d=.3*n+o+.16666667*l,_=t*e.BEZIER_SIZE,p=this.curves;p[_++]=e.BEZIER;for(var v=f,g=d,m=_+e.BEZIER_SIZE-1;_=n){var u=void 0,h=void 0;return s==c?(u=0,h=0):(u=r[s-2],h=r[s-1]),h+(r[s+1]-h)*(n-u)/(o-u)}var f=r[s-1];return f+(1-f)*(n-o)/(1-o)},e.LINEAR=0,e.STEPPED=1,e.BEZIER=2,e.BEZIER_SIZE=19,e})();t.CurveTimeline=a;var o=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e<<1),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.rotate<<24)+this.boneIndex},a.prototype.setFrame=function(t,e,i){t<<=1,this.frames[t]=e,this.frames[t+a.ROTATION]=i},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.bones[this.boneIndex];if(u.active)if(n=l[l.length-a.ENTRIES]){var f=l[l.length+a.PREV_ROTATION];switch(c){case e.setup:u.rotation=u.data.rotation+f*o;break;case e.first:case e.replace:f+=u.data.rotation-u.rotation,f-=360*(16384-(16384.499999999996-f/360|0));case e.add:u.rotation+=f*o}}else{var d=r.binarySearch(l,n,a.ENTRIES),_=l[d+a.PREV_ROTATION],p=l[d],v=this.getCurvePercent((d>>1)-1,1-(n-p)/(l[d+a.PREV_TIME]-p)),g=l[d+a.ROTATION]-_;switch(g=_+(g-360*(16384-(16384.499999999996-g/360|0)))*v,c){case e.setup:u.rotation=u.data.rotation+(g-360*(16384-(16384.499999999996-g/360|0)))*o;break;case e.first:case e.replace:g+=u.data.rotation-u.rotation;case e.add:u.rotation+=(g-360*(16384-(16384.499999999996-g/360|0)))*o}}},a.ENTRIES=2,a.PREV_TIME=-2,a.PREV_ROTATION=-1,a.ROTATION=1,a})(a);t.RotateTimeline=o;var c=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.translate<<24)+this.boneIndex},a.prototype.setFrame=function(t,e,i,n){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.X]=i,this.frames[t+a.Y]=n},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.bones[this.boneIndex];if(u.active)if(n=l[l.length-a.ENTRIES])h=l[l.length+a.PREV_X],f=l[l.length+a.PREV_Y];else{var d=r.binarySearch(l,n,a.ENTRIES);h=l[d+a.PREV_X],f=l[d+a.PREV_Y];var _=l[d],p=this.getCurvePercent(d/a.ENTRIES-1,1-(n-_)/(l[d+a.PREV_TIME]-_));h+=(l[d+a.X]-h)*p,f+=(l[d+a.Y]-f)*p}switch(c){case e.setup:u.x=u.data.x+h*o,u.y=u.data.y+f*o;break;case e.first:case e.replace:u.x+=(u.data.x+h-u.x)*o,u.y+=(u.data.y+f-u.y)*o;break;case e.add:u.x+=h*o,u.y+=f*o}}},a.ENTRIES=3,a.PREV_TIME=-3,a.PREV_X=-2,a.PREV_Y=-1,a.X=1,a.Y=2,a})(a);t.TranslateTimeline=c;var l=(function(a){function o(t){return a.call(this,t)||this}return s(o,a),o.prototype.getPropertyId=function(){return(n.scale<<24)+this.boneIndex},o.prototype.apply=function(n,s,a,c,l,u,h){var f=this.frames,d=n.bones[this.boneIndex];if(d.active)if(a=f[f.length-o.ENTRIES])_=f[f.length+o.PREV_X]*d.data.scaleX,p=f[f.length+o.PREV_Y]*d.data.scaleY;else{var v=r.binarySearch(f,a,o.ENTRIES);_=f[v+o.PREV_X],p=f[v+o.PREV_Y];var g=f[v],m=this.getCurvePercent(v/o.ENTRIES-1,1-(a-g)/(f[v+o.PREV_TIME]-g));_=(_+(f[v+o.X]-_)*m)*d.data.scaleX,p=(p+(f[v+o.Y]-p)*m)*d.data.scaleY}if(1==l)u==e.add?(d.scaleX+=_-d.data.scaleX,d.scaleY+=p-d.data.scaleY):(d.scaleX=_,d.scaleY=p);else{var y=0,T=0;if(h==i.mixOut)switch(u){case e.setup:y=d.data.scaleX,T=d.data.scaleY,d.scaleX=y+(Math.abs(_)*t.MathUtils.signum(y)-y)*l,d.scaleY=T+(Math.abs(p)*t.MathUtils.signum(T)-T)*l;break;case e.first:case e.replace:y=d.scaleX,T=d.scaleY,d.scaleX=y+(Math.abs(_)*t.MathUtils.signum(y)-y)*l,d.scaleY=T+(Math.abs(p)*t.MathUtils.signum(T)-T)*l;break;case e.add:y=d.scaleX,T=d.scaleY,d.scaleX=y+(Math.abs(_)*t.MathUtils.signum(y)-d.data.scaleX)*l,d.scaleY=T+(Math.abs(p)*t.MathUtils.signum(T)-d.data.scaleY)*l}else switch(u){case e.setup:y=Math.abs(d.data.scaleX)*t.MathUtils.signum(_),T=Math.abs(d.data.scaleY)*t.MathUtils.signum(p),d.scaleX=y+(_-y)*l,d.scaleY=T+(p-T)*l;break;case e.first:case e.replace:y=Math.abs(d.scaleX)*t.MathUtils.signum(_),T=Math.abs(d.scaleY)*t.MathUtils.signum(p),d.scaleX=y+(_-y)*l,d.scaleY=T+(p-T)*l;break;case e.add:y=t.MathUtils.signum(_),T=t.MathUtils.signum(p),d.scaleX=Math.abs(d.scaleX)*y+(_-Math.abs(d.data.scaleX)*y)*l,d.scaleY=Math.abs(d.scaleY)*T+(p-Math.abs(d.data.scaleY)*T)*l}}}},o})(c);t.ScaleTimeline=l;var u=(function(t){function i(e){return t.call(this,e)||this}return s(i,t),i.prototype.getPropertyId=function(){return(n.shear<<24)+this.boneIndex},i.prototype.apply=function(t,n,s,a,o,c){var l=this.frames,u=t.bones[this.boneIndex];if(u.active)if(s=l[l.length-i.ENTRIES])h=l[l.length+i.PREV_X],f=l[l.length+i.PREV_Y];else{var d=r.binarySearch(l,s,i.ENTRIES);h=l[d+i.PREV_X],f=l[d+i.PREV_Y];var _=l[d],p=this.getCurvePercent(d/i.ENTRIES-1,1-(s-_)/(l[d+i.PREV_TIME]-_));h+=(l[d+i.X]-h)*p,f+=(l[d+i.Y]-f)*p}switch(c){case e.setup:u.shearX=u.data.shearX+h*o,u.shearY=u.data.shearY+f*o;break;case e.first:case e.replace:u.shearX+=(u.data.shearX+h-u.shearX)*o,u.shearY+=(u.data.shearY+f-u.shearY)*o;break;case e.add:u.shearX+=h*o,u.shearY+=f*o}}},i})(c);t.ShearTimeline=u;var h=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.color<<24)+this.slotIndex},a.prototype.setFrame=function(t,e,i,n,r,s){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.R]=i,this.frames[t+a.G]=n,this.frames[t+a.B]=r,this.frames[t+a.A]=s},a.prototype.apply=function(t,i,n,s,o,c){var l=t.slots[this.slotIndex];if(l.bone.active){var u=this.frames;if(n=u[u.length-a.ENTRIES]){var g=u.length;d=u[g+a.PREV_R],_=u[g+a.PREV_G],p=u[g+a.PREV_B],v=u[g+a.PREV_A]}else{var m=r.binarySearch(u,n,a.ENTRIES);d=u[m+a.PREV_R],_=u[m+a.PREV_G],p=u[m+a.PREV_B],v=u[m+a.PREV_A];var y=u[m],T=this.getCurvePercent(m/a.ENTRIES-1,1-(n-y)/(u[m+a.PREV_TIME]-y));d+=(u[m+a.R]-d)*T,_+=(u[m+a.G]-_)*T,p+=(u[m+a.B]-p)*T,v+=(u[m+a.A]-v)*T}1==o?l.color.set(d,_,p,v):(h=l.color,c==e.setup&&h.setFromColor(l.data.color),h.add((d-h.r)*o,(_-h.g)*o,(p-h.b)*o,(v-h.a)*o))}}},a.ENTRIES=5,a.PREV_TIME=-5,a.PREV_R=-4,a.PREV_G=-3,a.PREV_B=-2,a.PREV_A=-1,a.R=1,a.G=2,a.B=3,a.A=4,a})(a);t.ColorTimeline=h;var f=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.twoColor<<24)+this.slotIndex},a.prototype.setFrame=function(t,e,i,n,r,s,o,c,l){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.R]=i,this.frames[t+a.G]=n,this.frames[t+a.B]=r,this.frames[t+a.A]=s,this.frames[t+a.R2]=o,this.frames[t+a.G2]=c,this.frames[t+a.B2]=l},a.prototype.apply=function(t,i,n,s,o,c){var l=t.slots[this.slotIndex];if(l.bone.active){var u=this.frames;if(n=u[u.length-a.ENTRIES]){var A=u.length;p=u[A+a.PREV_R],v=u[A+a.PREV_G],g=u[A+a.PREV_B],m=u[A+a.PREV_A],y=u[A+a.PREV_R2],T=u[A+a.PREV_G2],E=u[A+a.PREV_B2]}else{var C=r.binarySearch(u,n,a.ENTRIES);p=u[C+a.PREV_R],v=u[C+a.PREV_G],g=u[C+a.PREV_B],m=u[C+a.PREV_A],y=u[C+a.PREV_R2],T=u[C+a.PREV_G2],E=u[C+a.PREV_B2];var x=u[C],b=this.getCurvePercent(C/a.ENTRIES-1,1-(n-x)/(u[C+a.PREV_TIME]-x));p+=(u[C+a.R]-p)*b,v+=(u[C+a.G]-v)*b,g+=(u[C+a.B]-g)*b,m+=(u[C+a.A]-m)*b,y+=(u[C+a.R2]-y)*b,T+=(u[C+a.G2]-T)*b,E+=(u[C+a.B2]-E)*b}1==o?(l.color.set(p,v,g,m),l.darkColor.set(y,T,E,1)):(h=l.color,f=l.darkColor,c==e.setup&&(h.setFromColor(l.data.color),f.setFromColor(l.data.darkColor)),h.add((p-h.r)*o,(v-h.g)*o,(g-h.b)*o,(m-h.a)*o),f.add((y-f.r)*o,(T-f.g)*o,(E-f.b)*o,0))}}},a.ENTRIES=8,a.PREV_TIME=-8,a.PREV_R=-7,a.PREV_G=-6,a.PREV_B=-5,a.PREV_A=-4,a.PREV_R2=-3,a.PREV_G2=-2,a.PREV_B2=-1,a.R=1,a.G=2,a.B=3,a.A=4,a.R2=5,a.G2=6,a.B2=7,a})(a);t.TwoColorTimeline=f;var d=(function(){function s(e){this.frames=t.Utils.newFloatArray(e),this.attachmentNames=new Array(e)}return s.prototype.getPropertyId=function(){return(n.attachment<<24)+this.slotIndex},s.prototype.getFrameCount=function(){return this.frames.length},s.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.attachmentNames[t]=i},s.prototype.apply=function(t,n,s,a,o,c,l){var u=t.slots[this.slotIndex];if(u.bone.active)if(l!=i.mixOut||c!=e.setup){var h=this.frames;if(s=h[h.length-1]?h.length-1:r.binarySearch(h,s,1)-1;var _=this.attachmentNames[d];t.slots[this.slotIndex].setAttachment(null==_?null:t.getAttachment(this.slotIndex,_))}}else{var p=u.data.attachmentName;u.setAttachment(null==p?null:t.getAttachment(this.slotIndex,p))}},s})();t.AttachmentTimeline=d;var _=null,p=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e),n.frameVertices=new Array(e),null==_&&(_=t.Utils.newFloatArray(64)),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.deform<<27)+ +this.attachment.id+this.slotIndex},a.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.frameVertices[t]=i},a.prototype.apply=function(i,n,s,a,o,c){var l=i.slots[this.slotIndex];if(l.bone.active){var u=l.getAttachment();if(u instanceof t.VertexAttachment&&u.deformAttachment==this.attachment){var h=l.deform;0==h.length&&(c=e.setup);var f=this.frameVertices,d=f[0].length,_=this.frames;if(s<_[0]){var p=u;switch(c){case e.setup:return void(h.length=0);case e.first:if(1==o){h.length=0;break}var v=t.Utils.setArraySize(h,d);if(null==p.bones)for(var g=p.vertices,m=0;m=_[_.length-1]){var T=f[_.length-1];if(1==o)if(c==e.add)if(null==(p=u).bones){g=p.vertices;for(var E=0;Ei)this.apply(t,e,Number.MAX_VALUE,n,s,a,o),e=-1;else if(e>=c[l-1])return;if(!(i0&&c[u-1]==h;)u--;for(;u=c[u];u++)n.push(this.events[u])}}},e})();t.EventTimeline=v;var g=(function(){function s(e){this.frames=t.Utils.newFloatArray(e),this.drawOrders=new Array(e)}return s.prototype.getPropertyId=function(){return n.drawOrder<<24},s.prototype.getFrameCount=function(){return this.frames.length},s.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.drawOrders[t]=i},s.prototype.apply=function(n,s,a,o,c,l,u){var h=n.drawOrder,f=n.slots;if(u!=i.mixOut||l!=e.setup){var d=this.frames;if(a=d[d.length-1]?d.length-1:r.binarySearch(d,a)-1;var p=this.drawOrders[_];if(null==p)t.Utils.arrayCopy(f,0,h,0,f.length);else for(var v=0,g=p.length;v=h[h.length-o.ENTRIES])l==e.setup?(f.mix=f.data.mix+(h[h.length+o.PREV_MIX]-f.data.mix)*c,f.softness=f.data.softness+(h[h.length+o.PREV_SOFTNESS]-f.data.softness)*c,u==i.mixOut?(f.bendDirection=f.data.bendDirection,f.compress=f.data.compress,f.stretch=f.data.stretch):(f.bendDirection=h[h.length+o.PREV_BEND_DIRECTION],f.compress=0!=h[h.length+o.PREV_COMPRESS],f.stretch=0!=h[h.length+o.PREV_STRETCH])):(f.mix+=(h[h.length+o.PREV_MIX]-f.mix)*c,f.softness+=(h[h.length+o.PREV_SOFTNESS]-f.softness)*c,u==i.mixIn&&(f.bendDirection=h[h.length+o.PREV_BEND_DIRECTION],f.compress=0!=h[h.length+o.PREV_COMPRESS],f.stretch=0!=h[h.length+o.PREV_STRETCH]));else{var d=r.binarySearch(h,s,o.ENTRIES),_=h[d+o.PREV_MIX],p=h[d+o.PREV_SOFTNESS],v=h[d],g=this.getCurvePercent(d/o.ENTRIES-1,1-(s-v)/(h[d+o.PREV_TIME]-v));l==e.setup?(f.mix=f.data.mix+(_+(h[d+o.MIX]-_)*g-f.data.mix)*c,f.softness=f.data.softness+(p+(h[d+o.SOFTNESS]-p)*g-f.data.softness)*c,u==i.mixOut?(f.bendDirection=f.data.bendDirection,f.compress=f.data.compress,f.stretch=f.data.stretch):(f.bendDirection=h[d+o.PREV_BEND_DIRECTION],f.compress=0!=h[d+o.PREV_COMPRESS],f.stretch=0!=h[d+o.PREV_STRETCH])):(f.mix+=(_+(h[d+o.MIX]-_)*g-f.mix)*c,f.softness+=(p+(h[d+o.SOFTNESS]-p)*g-f.softness)*c,u==i.mixIn&&(f.bendDirection=h[d+o.PREV_BEND_DIRECTION],f.compress=0!=h[d+o.PREV_COMPRESS],f.stretch=0!=h[d+o.PREV_STRETCH]))}},o.ENTRIES=6,o.PREV_TIME=-6,o.PREV_MIX=-5,o.PREV_SOFTNESS=-4,o.PREV_BEND_DIRECTION=-3,o.PREV_COMPRESS=-2,o.PREV_STRETCH=-1,o.MIX=1,o.SOFTNESS=2,o.BEND_DIRECTION=3,o.COMPRESS=4,o.STRETCH=5,o})(a);t.IkConstraintTimeline=m;var y=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.transformConstraint<<24)+this.transformConstraintIndex},a.prototype.setFrame=function(t,e,i,n,r,s){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.ROTATE]=i,this.frames[t+a.TRANSLATE]=n,this.frames[t+a.SCALE]=r,this.frames[t+a.SHEAR]=s},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.transformConstraints[this.transformConstraintIndex];if(u.active)if(n=l[l.length-a.ENTRIES]){var v=l.length;f=l[v+a.PREV_ROTATE],d=l[v+a.PREV_TRANSLATE],_=l[v+a.PREV_SCALE],p=l[v+a.PREV_SHEAR]}else{var g=r.binarySearch(l,n,a.ENTRIES);f=l[g+a.PREV_ROTATE],d=l[g+a.PREV_TRANSLATE],_=l[g+a.PREV_SCALE],p=l[g+a.PREV_SHEAR];var m=l[g],y=this.getCurvePercent(g/a.ENTRIES-1,1-(n-m)/(l[g+a.PREV_TIME]-m));f+=(l[g+a.ROTATE]-f)*y,d+=(l[g+a.TRANSLATE]-d)*y,_+=(l[g+a.SCALE]-_)*y,p+=(l[g+a.SHEAR]-p)*y}c==e.setup?(h=u.data,u.rotateMix=h.rotateMix+(f-h.rotateMix)*o,u.translateMix=h.translateMix+(d-h.translateMix)*o,u.scaleMix=h.scaleMix+(_-h.scaleMix)*o,u.shearMix=h.shearMix+(p-h.shearMix)*o):(u.rotateMix+=(f-u.rotateMix)*o,u.translateMix+=(d-u.translateMix)*o,u.scaleMix+=(_-u.scaleMix)*o,u.shearMix+=(p-u.shearMix)*o)}},a.ENTRIES=5,a.PREV_TIME=-5,a.PREV_ROTATE=-4,a.PREV_TRANSLATE=-3,a.PREV_SCALE=-2,a.PREV_SHEAR=-1,a.ROTATE=1,a.TRANSLATE=2,a.SCALE=3,a.SHEAR=4,a})(a);t.TransformConstraintTimeline=y;var T=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.pathConstraintPosition<<24)+this.pathConstraintIndex},a.prototype.setFrame=function(t,e,i){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.VALUE]=i},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.pathConstraints[this.pathConstraintIndex];if(u.active)if(n=l[l.length-a.ENTRIES])h=l[l.length+a.PREV_VALUE];else{var f=r.binarySearch(l,n,a.ENTRIES);h=l[f+a.PREV_VALUE];var d=l[f],_=this.getCurvePercent(f/a.ENTRIES-1,1-(n-d)/(l[f+a.PREV_TIME]-d));h+=(l[f+a.VALUE]-h)*_}c==e.setup?u.position=u.data.position+(h-u.data.position)*o:u.position+=(h-u.position)*o}},a.ENTRIES=2,a.PREV_TIME=-2,a.PREV_VALUE=-1,a.VALUE=1,a})(a);t.PathConstraintPositionTimeline=T;var E=(function(t){function i(e){return t.call(this,e)||this}return s(i,t),i.prototype.getPropertyId=function(){return(n.pathConstraintSpacing<<24)+this.pathConstraintIndex},i.prototype.apply=function(t,n,s,a,o,c){var l=this.frames,u=t.pathConstraints[this.pathConstraintIndex];if(u.active)if(s=l[l.length-i.ENTRIES])h=l[l.length+i.PREV_VALUE];else{var f=r.binarySearch(l,s,i.ENTRIES);h=l[f+i.PREV_VALUE];var d=l[f],_=this.getCurvePercent(f/i.ENTRIES-1,1-(s-d)/(l[f+i.PREV_TIME]-d));h+=(l[f+i.VALUE]-h)*_}c==e.setup?u.spacing=u.data.spacing+(h-u.data.spacing)*o:u.spacing+=(h-u.spacing)*o}},i})(T);t.PathConstraintSpacingTimeline=E;var A=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.pathConstraintMix<<24)+this.pathConstraintIndex},a.prototype.setFrame=function(t,e,i,n){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.ROTATE]=i,this.frames[t+a.TRANSLATE]=n},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.pathConstraints[this.pathConstraintIndex];if(u.active)if(n=l[l.length-a.ENTRIES])h=l[l.length+a.PREV_ROTATE],f=l[l.length+a.PREV_TRANSLATE];else{var d=r.binarySearch(l,n,a.ENTRIES);h=l[d+a.PREV_ROTATE],f=l[d+a.PREV_TRANSLATE];var _=l[d],p=this.getCurvePercent(d/a.ENTRIES-1,1-(n-_)/(l[d+a.PREV_TIME]-_));h+=(l[d+a.ROTATE]-h)*p,f+=(l[d+a.TRANSLATE]-f)*p}c==e.setup?(u.rotateMix=u.data.rotateMix+(h-u.data.rotateMix)*o,u.translateMix=u.data.translateMix+(f-u.data.translateMix)*o):(u.rotateMix+=(h-u.rotateMix)*o,u.translateMix+=(f-u.translateMix)*o)}},a.ENTRIES=3,a.PREV_TIME=-3,a.PREV_ROTATE=-2,a.PREV_TRANSLATE=-1,a.ROTATE=1,a.TRANSLATE=2,a})(a);t.PathConstraintMixTimeline=A})(r||(r={})),(function(t){var e=(function(){function e(e){this.tracks=new Array,this.timeScale=1,this.events=new Array,this.listeners=new Array,this.queue=new r(this),this.propertyIDs=new t.IntSet,this.animationsChanged=!1,this.trackEntryPool=new t.Pool(function(){return new i}),this.data=e}return e.prototype.update=function(t){t*=this.timeScale;for(var e=this.tracks,i=0,n=e.length;i0){if(r.delay-=s,r.delay>0)continue;s=-r.delay,r.delay=0}var a=r.next;if(null!=a){var o=r.trackLast-a.delay;if(o>=0){for(a.delay=0,a.trackTime+=0==r.timeScale?0:(o/r.timeScale+t)*a.timeScale,r.trackTime+=s,this.setCurrent(i,a,!0);null!=a.mixingFrom;)a.mixTime+=t,a=a.mixingFrom;continue}}else if(r.trackLast>=r.trackEnd&&null==r.mixingFrom){e[i]=null,this.queue.end(r),this.disposeNext(r);continue}if(null!=r.mixingFrom&&this.updateMixingFrom(r,t)){var c=r.mixingFrom;for(r.mixingFrom=null,null!=c&&(c.mixingTo=null);null!=c;)this.queue.end(c),c=c.mixingFrom}r.trackTime+=s}}this.queue.drain()},e.prototype.updateMixingFrom=function(t,e){var i=t.mixingFrom;if(null==i)return!0;var n=this.updateMixingFrom(i,e);return i.animationLast=i.nextAnimationLast,i.trackLast=i.nextTrackLast,t.mixTime>0&&t.mixTime>=t.mixDuration?(0!=i.totalAlpha&&0!=t.mixDuration||(t.mixingFrom=i.mixingFrom,null!=i.mixingFrom&&(i.mixingFrom.mixingTo=t),t.interruptAlpha=i.interruptAlpha,this.queue.end(i)),n):(i.trackTime+=e*i.timeScale,t.mixTime+=e,!1)},e.prototype.apply=function(i){if(null==i)throw new Error("skeleton cannot be null.");this.animationsChanged&&this._animationsChanged();for(var n=this.events,r=this.tracks,s=!1,a=0,o=r.length;a0)){s=!0;var l=0==a?t.MixBlend.first:c.mixBlend,u=c.alpha;null!=c.mixingFrom?u*=this.applyMixingFrom(c,i,l):c.trackTime>=c.trackEnd&&null==c.next&&(u=0);var h=c.animationLast,f=c.getAnimationTime(),d=c.animation.timelines.length,_=c.animation.timelines;if(0==a&&1==u||l==t.MixBlend.add)for(var p=0;p1&&(a=1),r!=t.MixBlend.first&&(r=s.mixBlend));var o=a0&&this.queueEvents(s,h),this.events.length=0,s.nextAnimationLast=h,s.nextTrackLast=s.trackTime,a},e.prototype.applyRotateTimeline=function(e,i,n,r,s,a,o,c){if(c&&(a[o]=0),1!=r){var l=e,u=l.frames,h=i.bones[l.boneIndex];if(h.active){var f=0,d=0;if(n=u[u.length-t.RotateTimeline.ENTRIES])d=h.data.rotation+u[u.length+t.RotateTimeline.PREV_ROTATION];else{var _=t.Animation.binarySearch(u,n,t.RotateTimeline.ENTRIES),p=u[_+t.RotateTimeline.PREV_ROTATION],v=u[_],g=l.getCurvePercent((_>>1)-1,1-(n-v)/(u[_+t.RotateTimeline.PREV_TIME]-v));d=u[_+t.RotateTimeline.ROTATION]-p,d=p+(d-=360*(16384-(16384.499999999996-d/360|0)))*g+h.data.rotation,d-=360*(16384-(16384.499999999996-d/360|0))}var m=0,y=d-f;if(0==(y-=360*(16384-(16384.499999999996-y/360|0))))m=a[o];else{var T=0,E=0;c?(T=0,E=y):(T=a[o],E=a[o+1]);var A=y>0,C=T>=0;t.MathUtils.signum(E)!=t.MathUtils.signum(y)&&Math.abs(E)<=90&&(Math.abs(T)>180&&(T+=360*t.MathUtils.signum(T)),C=A),m=y+T-T%360,C!=A&&(m+=360*t.MathUtils.signum(T)),a[o]=m}a[o+1]=y,f+=m*r,h.rotation=f-360*(16384-(16384.499999999996-f/360|0))}}else e.apply(i,0,n,null,1,s,t.MixDirection.mixIn)},e.prototype.queueEvents=function(t,e){for(var i=t.animationStart,n=t.animationEnd,r=n-i,s=t.trackLast%r,a=this.events,o=0,c=a.length;on||this.queue.event(t,l)}for((t.loop?0==r||s>t.trackTime%r:e>=n&&t.animationLast=this.tracks.length)){var e=this.tracks[t];if(null!=e){this.queue.end(e),this.disposeNext(e);for(var i=e;;){var n=i.mixingFrom;if(null==n)break;this.queue.end(n),i.mixingFrom=null,i.mixingTo=null,i=n}this.tracks[e.trackIndex]=null,this.queue.drain()}}},e.prototype.setCurrent=function(t,e,i){var n=this.expandToIndex(t);this.tracks[t]=e,null!=n&&(i&&this.queue.interrupt(n),e.mixingFrom=n,n.mixingTo=e,e.mixTime=0,null!=n.mixingFrom&&n.mixDuration>0&&(e.interruptAlpha*=Math.min(1,n.mixTime/n.mixDuration)),n.timelinesRotation.length=0),this.queue.start(e)},e.prototype.setAnimation=function(t,e,i){var n=this.data.skeletonData.findAnimation(e);if(null==n)throw new Error("Animation not found: "+e);return this.setAnimationWith(t,n,i)},e.prototype.setAnimationWith=function(t,e,i){if(null==e)throw new Error("animation cannot be null.");var n=!0,r=this.expandToIndex(t);null!=r&&(-1==r.nextTrackLast?(this.tracks[t]=r.mixingFrom,this.queue.interrupt(r),this.queue.end(r),this.disposeNext(r),r=r.mixingFrom,n=!1):this.disposeNext(r));var s=this.trackEntry(t,e,i,r);return this.setCurrent(t,s,n),this.queue.drain(),s},e.prototype.addAnimation=function(t,e,i,n){var r=this.data.skeletonData.findAnimation(e);if(null==r)throw new Error("Animation not found: "+e);return this.addAnimationWith(t,r,i,n)},e.prototype.addAnimationWith=function(t,e,i,n){if(null==e)throw new Error("animation cannot be null.");var r=this.expandToIndex(t);if(null!=r)for(;null!=r.next;)r=r.next;var s=this.trackEntry(t,e,i,r);if(null==r)this.setCurrent(t,s,!0),this.queue.drain();else if(r.next=s,n<=0){var a=r.animationEnd-r.animationStart;0!=a?(r.loop?n+=a*(1+(r.trackTime/a|0)):n+=Math.max(a,r.trackTime),n-=this.data.getMix(r.animation,e)):n=r.trackTime}return s.delay=n,s},e.prototype.setEmptyAnimation=function(t,i){var n=this.setAnimationWith(t,e.emptyAnimation,!1);return n.mixDuration=i,n.trackEnd=i,n},e.prototype.addEmptyAnimation=function(t,i,n){n<=0&&(n-=i);var r=this.addAnimationWith(t,e.emptyAnimation,!1,n);return r.mixDuration=i,r.trackEnd=i,r},e.prototype.setEmptyAnimations=function(t){var e=this.queue.drainDisabled;this.queue.drainDisabled=!0;for(var i=0,n=this.tracks.length;i=0;e--)for(var n=this.tracks[e];null!=n;)this.computeNotLast(n),n=n.mixingFrom},e.prototype.computeHold=function(i){var n=i.mixingTo,r=i.animation.timelines,s=i.animation.timelines.length,a=t.Utils.setArraySize(i.timelineMode,s);i.timelineHoldMix.length=0;var o=t.Utils.setArraySize(i.timelineHoldMix,s),c=this.propertyIDs;if(null!=n&&n.holdPrevious)for(var l=0;l0){a[l]=e.HOLD_MIX,o[l]=f;continue t}break}a[l]=e.HOLD}else a[l]=e.SUBSEQUENT}},e.prototype.computeNotLast=function(i){for(var n=i.animation.timelines,r=i.animation.timelines.length,s=i.timelineMode,a=this.propertyIDs,o=0;o=this.tracks.length?null:this.tracks[t]},e.prototype.addListener=function(t){if(null==t)throw new Error("listener cannot be null.");this.listeners.push(t)},e.prototype.removeListener=function(t){var e=this.listeners.indexOf(t);e>=0&&this.listeners.splice(e,1)},e.prototype.clearListeners=function(){this.listeners.length=0},e.prototype.clearListenerNotifications=function(){this.queue.clear()},e.emptyAnimation=new t.Animation("",[],0),e.SUBSEQUENT=0,e.FIRST=1,e.HOLD=2,e.HOLD_MIX=3,e.NOT_LAST=4,e})();t.AnimationState=e;var i=(function(){function e(){this.mixBlend=t.MixBlend.replace,this.timelineMode=new Array,this.timelineHoldMix=new Array,this.timelinesRotation=new Array}return e.prototype.reset=function(){this.next=null,this.mixingFrom=null,this.mixingTo=null,this.animation=null,this.listener=null,this.timelineMode.length=0,this.timelineHoldMix.length=0,this.timelinesRotation.length=0},e.prototype.getAnimationTime=function(){if(this.loop){var t=this.animationEnd-this.animationStart;return 0==t?this.animationStart:this.trackTime%t+this.animationStart}return Math.min(this.trackTime+this.animationStart,this.animationEnd)},e.prototype.setAnimationLast=function(t){this.animationLast=t,this.nextAnimationLast=t},e.prototype.isComplete=function(){return this.trackTime>=this.animationEnd-this.animationStart},e.prototype.resetRotationDirections=function(){this.timelinesRotation.length=0},e})();t.TrackEntry=i;var n,r=(function(){function t(t){this.objects=[],this.drainDisabled=!1,this.animState=t}return t.prototype.start=function(t){this.objects.push(n.start),this.objects.push(t),this.animState.animationsChanged=!0},t.prototype.interrupt=function(t){this.objects.push(n.interrupt),this.objects.push(t)},t.prototype.end=function(t){this.objects.push(n.end),this.objects.push(t),this.animState.animationsChanged=!0},t.prototype.dispose=function(t){this.objects.push(n.dispose),this.objects.push(t)},t.prototype.complete=function(t){this.objects.push(n.complete),this.objects.push(t)},t.prototype.event=function(t,e){this.objects.push(n.event),this.objects.push(t),this.objects.push(e)},t.prototype.drain=function(){if(!this.drainDisabled){this.drainDisabled=!0;for(var t=this.objects,e=this.animState.listeners,i=0;i=0?i.substring(0,i.lastIndexOf("/")):"";i=this.pathPrefix+i,this.toLoad++,e.downloadText(i,(function(e){var o={count:0},c=new Array;try{new t.TextureAtlas(e,function(e){c.push(a+"/"+e);var i=document.createElement("img");return i.width=16,i.height=16,new t.FakeTexture(i)})}catch(d){var l=d;return s.errors[i]="Couldn't load texture atlas "+i+": "+l.message,r&&r(i,"Couldn't load texture atlas "+i+": "+l.message),s.toLoad--,void s.loaded++}for(var u=function(l){var u=!1;s.loadTexture(l,(function(l){if(o.count++,o.count==c.length)if(u)s.errors[i]="Couldn't load texture atlas page "+l+"} of atlas "+i,r&&r(i,"Couldn't load texture atlas page "+l+" of atlas "+i),s.toLoad--,s.loaded++;else try{var h=new t.TextureAtlas(e,function(t){return s.get(a+"/"+t)});s.assets[i]=h,n&&n(i,h),s.toLoad--,s.loaded++}catch(d){var f=d;s.errors[i]="Couldn't load texture atlas "+i+": "+f.message,r&&r(i,"Couldn't load texture atlas "+i+": "+f.message),s.toLoad--,s.loaded++}}),(function(t){u=!0,o.count++,o.count==c.length&&(s.errors[i]="Couldn't load texture atlas page "+t+"} of atlas "+i,r&&r(i,"Couldn't load texture atlas page "+t+" of atlas "+i),s.toLoad--,s.loaded++)}))},h=0,f=c;h0},e.prototype.getErrors=function(){return this.errors},e})();t.AssetManager=e})(r||(r={})),(function(t){var e=(function(){function e(t){this.atlas=t}return e.prototype.newRegionAttachment=function(e,i,n){var r=this.atlas.findRegion(n);if(null==r)return null;r.renderObject=r;var s=new t.RegionAttachment(i);return s.setRegion(r),s},e.prototype.newMeshAttachment=function(e,i,n){var r=this.atlas.findRegion(n);if(null==r)return null;r.renderObject=r;var s=new t.MeshAttachment(i);return s.region=r,s},e.prototype.newBoundingBoxAttachment=function(e,i){return new t.BoundingBoxAttachment(i)},e.prototype.newPathAttachment=function(e,i){return new t.PathAttachment(i)},e.prototype.newPointAttachment=function(e,i){return new t.PointAttachment(i)},e.prototype.newClippingAttachment=function(e,i){return new t.ClippingAttachment(i)},e})();t.AtlasAttachmentLoader=e})(r||(r={})),(function(t){(function(t){t[t.Normal=0]="Normal",t[t.Additive=1]="Additive",t[t.Multiply=2]="Multiply",t[t.Screen=3]="Screen"})(t.BlendMode||(t.BlendMode={}))})(r||(r={})),(function(t){var e=(function(){function e(t,e,i){if(this.children=new Array,this.x=0,this.y=0,this.rotation=0,this.scaleX=0,this.scaleY=0,this.shearX=0,this.shearY=0,this.ax=0,this.ay=0,this.arotation=0,this.ascaleX=0,this.ascaleY=0,this.ashearX=0,this.ashearY=0,this.appliedValid=!1,this.a=0,this.b=0,this.c=0,this.d=0,this.worldY=0,this.worldX=0,this.sorted=!1,this.active=!1,null==t)throw new Error("data cannot be null.");if(null==e)throw new Error("skeleton cannot be null.");this.data=t,this.skeleton=e,this.parent=i,this.setToSetupPose()}return e.prototype.isActive=function(){return this.active},e.prototype.update=function(){this.updateWorldTransformWith(this.x,this.y,this.rotation,this.scaleX,this.scaleY,this.shearX,this.shearY)},e.prototype.updateWorldTransform=function(){this.updateWorldTransformWith(this.x,this.y,this.rotation,this.scaleX,this.scaleY,this.shearX,this.shearY)},e.prototype.updateWorldTransformWith=function(e,i,n,r,s,a,o){this.ax=e,this.ay=i,this.arotation=n,this.ascaleX=r,this.ascaleY=s,this.ashearX=a,this.ashearY=o,this.appliedValid=!0;var c=this.parent;if(null==c){var l=this.skeleton,u=n+90+o,h=l.scaleX,f=l.scaleY;return this.a=t.MathUtils.cosDeg(n+a)*r*h,this.b=t.MathUtils.cosDeg(u)*s*h,this.c=t.MathUtils.sinDeg(n+a)*r*f,this.d=t.MathUtils.sinDeg(u)*s*f,this.worldX=e*h+l.x,void(this.worldY=i*f+l.y)}var d=c.a,_=c.b,p=c.c,v=c.d;switch(this.worldX=d*e+_*i+c.worldX,this.worldY=p*e+v*i+c.worldY,this.data.transformMode){case t.TransformMode.Normal:u=n+90+o;var g=t.MathUtils.cosDeg(n+a)*r,m=t.MathUtils.cosDeg(u)*s,y=t.MathUtils.sinDeg(n+a)*r,T=t.MathUtils.sinDeg(u)*s;return this.a=d*g+_*y,this.b=d*m+_*T,this.c=p*g+v*y,void(this.d=p*m+v*T);case t.TransformMode.OnlyTranslation:u=n+90+o,this.a=t.MathUtils.cosDeg(n+a)*r,this.b=t.MathUtils.cosDeg(u)*s,this.c=t.MathUtils.sinDeg(n+a)*r,this.d=t.MathUtils.sinDeg(u)*s;break;case t.TransformMode.NoRotationOrReflection:var E=0;(x=d*d+p*p)>1e-4?(_=p*(x=Math.abs(d*v-_*p)/x),v=d*x,E=Math.atan2(p,d)*t.MathUtils.radDeg):(d=0,p=0,E=90-Math.atan2(v,_)*t.MathUtils.radDeg);var A=n+a-E,C=n+o-E+90;g=t.MathUtils.cosDeg(A)*r,m=t.MathUtils.cosDeg(C)*s,y=t.MathUtils.sinDeg(A)*r,T=t.MathUtils.sinDeg(C)*s,this.a=d*g-_*y,this.b=d*m-_*T,this.c=p*g+v*y,this.d=p*m+v*T;break;case t.TransformMode.NoScale:case t.TransformMode.NoScaleOrReflection:var x,b=t.MathUtils.cosDeg(n),S=t.MathUtils.sinDeg(n),w=(d*b+_*S)/this.skeleton.scaleX,R=(p*b+v*S)/this.skeleton.scaleY;(x=Math.sqrt(w*w+R*R))>1e-5&&(x=1/x),w*=x,R*=x,x=Math.sqrt(w*w+R*R),this.data.transformMode==t.TransformMode.NoScale&&d*v-_*p<0!=(this.skeleton.scaleX<0!=this.skeleton.scaleY<0)&&(x=-x);var M=Math.PI/2+Math.atan2(R,w),I=Math.cos(M)*x,O=Math.sin(M)*x;g=t.MathUtils.cosDeg(a)*r,m=t.MathUtils.cosDeg(90+o)*s,y=t.MathUtils.sinDeg(a)*r,T=t.MathUtils.sinDeg(90+o)*s,this.a=w*g+I*y,this.b=w*m+I*T,this.c=R*g+O*y,this.d=R*m+O*T}this.a*=this.skeleton.scaleX,this.b*=this.skeleton.scaleX,this.c*=this.skeleton.scaleY,this.d*=this.skeleton.scaleY},e.prototype.setToSetupPose=function(){var t=this.data;this.x=t.x,this.y=t.y,this.rotation=t.rotation,this.scaleX=t.scaleX,this.scaleY=t.scaleY,this.shearX=t.shearX,this.shearY=t.shearY},e.prototype.getWorldRotationX=function(){return Math.atan2(this.c,this.a)*t.MathUtils.radDeg},e.prototype.getWorldRotationY=function(){return Math.atan2(this.d,this.b)*t.MathUtils.radDeg},e.prototype.getWorldScaleX=function(){return Math.sqrt(this.a*this.a+this.c*this.c)},e.prototype.getWorldScaleY=function(){return Math.sqrt(this.b*this.b+this.d*this.d)},e.prototype.updateAppliedTransform=function(){this.appliedValid=!0;var e=this.parent;if(null==e)return this.ax=this.worldX,this.ay=this.worldY,this.arotation=Math.atan2(this.c,this.a)*t.MathUtils.radDeg,this.ascaleX=Math.sqrt(this.a*this.a+this.c*this.c),this.ascaleY=Math.sqrt(this.b*this.b+this.d*this.d),this.ashearX=0,void(this.ashearY=Math.atan2(this.a*this.b+this.c*this.d,this.a*this.d-this.b*this.c)*t.MathUtils.radDeg);var i=e.a,n=e.b,r=e.c,s=e.d,a=1/(i*s-n*r),o=this.worldX-e.worldX,c=this.worldY-e.worldY;this.ax=o*s*a-c*n*a,this.ay=c*i*a-o*r*a;var l=a*s,u=a*i,h=a*n,f=a*r,d=l*this.a-h*this.c,_=l*this.b-h*this.d,p=u*this.c-f*this.a,v=u*this.d-f*this.b;if(this.ashearX=0,this.ascaleX=Math.sqrt(d*d+p*p),this.ascaleX>1e-4){var g=d*v-_*p;this.ascaleY=g/this.ascaleX,this.ashearY=Math.atan2(d*_+p*v,g)*t.MathUtils.radDeg,this.arotation=Math.atan2(p,d)*t.MathUtils.radDeg}else this.ascaleX=0,this.ascaleY=Math.sqrt(_*_+v*v),this.ashearY=0,this.arotation=90-Math.atan2(v,_)*t.MathUtils.radDeg},e.prototype.worldToLocal=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=1/(e*r-i*n),a=t.x-this.worldX,o=t.y-this.worldY;return t.x=a*r*s-o*i*s,t.y=o*e*s-a*n*s,t},e.prototype.localToWorld=function(t){var e=t.x,i=t.y;return t.x=e*this.a+i*this.b+this.worldX,t.y=e*this.c+i*this.d+this.worldY,t},e.prototype.worldToLocalRotation=function(e){var i=t.MathUtils.sinDeg(e),n=t.MathUtils.cosDeg(e);return Math.atan2(this.a*i-this.c*n,this.d*n-this.b*i)*t.MathUtils.radDeg+this.rotation-this.shearX},e.prototype.localToWorldRotation=function(e){e-=this.rotation-this.shearX;var i=t.MathUtils.sinDeg(e),n=t.MathUtils.cosDeg(e);return Math.atan2(n*this.c+i*this.d,n*this.a+i*this.b)*t.MathUtils.radDeg},e.prototype.rotateWorld=function(e){var i=this.a,n=this.b,r=this.c,s=this.d,a=t.MathUtils.cosDeg(e),o=t.MathUtils.sinDeg(e);this.a=a*i-o*r,this.b=a*n-o*s,this.c=o*i+a*r,this.d=o*n+a*s,this.appliedValid=!1},e})();t.Bone=e})(r||(r={})),(function(t){var e;t.BoneData=function(i,n,r){if(this.x=0,this.y=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.shearX=0,this.shearY=0,this.transformMode=e.Normal,this.skinRequired=!1,this.color=new t.Color,i<0)throw new Error("index must be >= 0.");if(null==n)throw new Error("name cannot be null.");this.index=i,this.name=n,this.parent=r},(function(t){t[t.Normal=0]="Normal",t[t.OnlyTranslation=1]="OnlyTranslation",t[t.NoRotationOrReflection=2]="NoRotationOrReflection",t[t.NoScale=3]="NoScale",t[t.NoScaleOrReflection=4]="NoScaleOrReflection"})(e=t.TransformMode||(t.TransformMode={}))})(r||(r={})),(function(t){t.ConstraintData=function(t,e,i){this.name=t,this.order=e,this.skinRequired=i}})(r||(r={})),(function(t){t.Event=function(t,e){if(null==e)throw new Error("data cannot be null.");this.time=t,this.data=e}})(r||(r={})),(function(t){t.EventData=function(t){this.name=t}})(r||(r={})),(function(t){var e=(function(){function e(t,e){if(this.bendDirection=0,this.compress=!1,this.stretch=!1,this.mix=1,this.softness=0,this.active=!1,null==t)throw new Error("data cannot be null.");if(null==e)throw new Error("skeleton cannot be null.");this.data=t,this.mix=t.mix,this.softness=t.softness,this.bendDirection=t.bendDirection,this.compress=t.compress,this.stretch=t.stretch,this.bones=new Array;for(var i=0;i180?_-=360:_<-180&&(_+=360);var p=e.ascaleX,v=e.ascaleY;if(r||s){var g=e.data.length*p,m=Math.sqrt(f*f+d*d);if(r&&mg&&g>1e-4){var y=(m/g-1)*o+1;p*=y,a&&(v*=y)}}e.updateWorldTransformWith(e.ax,e.ay,e.arotation+_*o,p,v,e.ashearX,e.ashearY)},e.prototype.apply2=function(e,i,n,r,s,a,o,c){if(0!=c){e.appliedValid||e.updateAppliedTransform(),i.appliedValid||i.updateAppliedTransform();var l=e.ax,u=e.ay,h=e.ascaleX,f=h,d=e.ascaleY,_=i.ascaleX,p=0,v=0,g=0;h<0?(h=-h,p=180,g=-1):(p=0,g=1),d<0&&(d=-d,g=-g),_<0?(_=-_,v=180):v=0;var m=i.ax,y=0,T=0,E=0,A=e.a,C=e.b,x=e.c,b=e.d,S=Math.abs(h-d)<=1e-4;S?(T=A*m+C*(y=i.ay)+e.worldX,E=x*m+b*y+e.worldY):(y=0,T=A*m+e.worldX,E=x*m+e.worldY);var w=e.parent;A=w.a,C=w.b,x=w.c;var R,M,I=1/(A*(b=w.d)-C*x),O=T-w.worldX,D=E-w.worldY,L=(O*b-D*C)*I-l,P=(D*A-O*x)*I-u,N=Math.sqrt(L*L+P*P),F=i.data.length*_;if(N<1e-4)return this.apply1(e,n,r,!1,a,!1,c),void i.updateWorldTransformWith(m,y,0,i.ascaleX,i.ascaleY,i.ashearX,i.ashearY);var B=((O=n-w.worldX)*b-(D=r-w.worldY)*C)*I-l,k=(D*A-O*x)*I-u,V=B*B+k*k;if(0!=o){o*=h*(_+1)/2;var U=Math.sqrt(V),z=U-N-F*h+o;if(z>0){var H=Math.min(1,z/(2*o))-1;V=(B-=(H=(z-o*(1-H*H))/U)*B)*B+(k-=H*k)*k}}t:if(S){var W=(V-N*N-(F*=h)*F)/(2*N*F);W<-1?W=-1:W>1&&(W=1,a&&(f*=(Math.sqrt(V)/(N+F)-1)*c+1)),M=Math.acos(W)*s,A=N+F*W,C=F*Math.sin(M),R=Math.atan2(k*A-B*C,B*A+k*C)}else{var G=(A=h*F)*A,Y=(C=d*F)*C,X=Math.atan2(k,B),j=-2*Y*N,q=Y-G;if((b=j*j-4*q*(x=Y*N*N+G*V-G*Y))>=0){var Z=Math.sqrt(b);j<0&&(Z=-Z);var K=(Z=-(j+Z)/2)/q,Q=x/Z,J=Math.abs(K)=-1&&x<=1&&(x=Math.acos(x),(b=(O=A*Math.cos(x)+N)*O+(D=C*Math.sin(x))*D)st&&(nt=x,st=b,rt=O,at=D)),V<=(et+st)/2?(R=X-Math.atan2(it*s,tt),M=$*s):(R=X-Math.atan2(at*s,rt),M=nt*s)}var ot=Math.atan2(y,m)*g,ct=e.arotation;(R=(R-ot)*t.MathUtils.radDeg+p-ct)>180?R-=360:R<-180&&(R+=360),e.updateWorldTransformWith(l,u,ct+R*c,f,e.ascaleY,0,0),ct=i.arotation,(M=((M+ot)*t.MathUtils.radDeg-i.ashearX)*g+v-ct)>180?M-=360:M<-180&&(M+=360),i.updateWorldTransformWith(m,y,ct+M*c,i.ascaleX,i.ascaleY,i.ashearX,i.ashearY)}else i.updateWorldTransform()},e})();t.IkConstraint=e})(r||(r={})),(function(t){var e=(function(t){function e(e){var i=t.call(this,e,0,!1)||this;return i.bones=new Array,i.bendDirection=1,i.compress=!1,i.stretch=!1,i.uniform=!1,i.mix=1,i.softness=0,i}return s(e,t),e})(t.ConstraintData);t.IkConstraintData=e})(r||(r={})),(function(t){var e=(function(){function e(t,e){if(this.position=0,this.spacing=0,this.rotateMix=0,this.translateMix=0,this.spaces=new Array,this.positions=new Array,this.world=new Array,this.curves=new Array,this.lengths=new Array,this.segments=new Array,this.active=!1,null==t)throw new Error("data cannot be null.");if(null==e)throw new Error("skeleton cannot be null.");this.data=t,this.bones=new Array;for(var i=0,n=t.bones.length;i0;if(r>0||s){var a=this.data,o=a.spacingMode==t.SpacingMode.Percent,c=a.rotateMode,l=c==t.RotateMode.Tangent,u=c==t.RotateMode.ChainScale,h=this.bones.length,f=l?h:h+1,d=this.bones,_=t.Utils.setArraySize(this.spaces,f),p=null,v=this.spacing;if(u||!o){u&&(p=t.Utils.setArraySize(this.lengths,h));for(var g=a.spacingMode==t.SpacingMode.Length,m=0,y=f-1;m0?t.MathUtils.degRad:-t.MathUtils.degRad),m=0;for(var I=3;mt.MathUtils.PI?U-=t.MathUtils.PI2:U<-t.MathUtils.PI&&(U+=t.MathUtils.PI2),U*=n,z=Math.cos(U),H=Math.sin(U),O.a=z*F-H*k,O.b=z*B-H*V,O.c=H*F+z*k,O.d=H*B+z*V}O.appliedValid=!1}}}},e.prototype.computeWorldPositions=function(i,n,r,s,a){var o=this.target,c=this.position,l=this.spaces,u=t.Utils.setArraySize(this.positions,3*n+2),h=null,f=i.closed,d=i.worldVerticesLength,_=d/6,p=e.NONE;if(!i.constantSpeed){var v=i.lengths,g=v[_-=f?1:2];if(s&&(c*=g),a)for(var m=1;mg){p!=e.AFTER&&(p=e.AFTER,i.computeWorldVertices(o,d-6,4,h,0,2)),this.addAfterPosition(E-g,h,0,u,y);continue}}for(;;T++){var A=v[T];if(!(E>A)){0==T?E/=A:E=(E-(Z=v[T-1]))/(A-Z);break}}T!=p&&(p=T,f&&T==_?(i.computeWorldVertices(o,d-4,4,h,0,2),i.computeWorldVertices(o,0,4,h,4,2)):i.computeWorldVertices(o,6*T+2,8,h,0,2)),this.addCurvePosition(E,h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],u,y,r||m>0&&0==Y)}return u}f?(d+=2,h=t.Utils.setArraySize(this.world,d),i.computeWorldVertices(o,2,d-4,h,0,2),i.computeWorldVertices(o,0,2,h,d-4,2),h[d-2]=h[0],h[d-1]=h[1]):(_--,d-=4,h=t.Utils.setArraySize(this.world,d),i.computeWorldVertices(o,2,d,h,0,2));for(var C=t.Utils.setArraySize(this.curves,_),x=0,b=h[0],S=h[1],w=0,R=0,M=0,I=0,O=0,D=0,L=0,P=0,N=0,F=0,B=0,k=0,V=0,U=0,z=(m=0,2);m<_;m++,z+=6)w=h[z],R=h[z+1],M=h[z+2],I=h[z+3],B=2*(L=.1875*(b-2*w+M))+(N=.09375*(3*(w-M)-b+(O=h[z+4]))),k=2*(P=.1875*(S-2*R+I))+(F=.09375*(3*(R-I)-S+(D=h[z+5]))),V=.75*(w-b)+L+.16666667*N,U=.75*(R-S)+P+.16666667*F,x+=Math.sqrt(V*V+U*U),V+=B,U+=k,B+=N,k+=F,x+=Math.sqrt(V*V+U*U),V+=B,U+=k,x+=Math.sqrt(V*V+U*U),V+=B+N,U+=k+F,x+=Math.sqrt(V*V+U*U),C[m]=x,b=O,S=D;if(c*=s?x:x/i.lengths[_-1],a)for(m=1;mx){this.addAfterPosition(E-x,h,d-4,u,y);continue}}for(;;T++){var X=C[T];if(!(E>X)){0==T?E/=X:E=(E-(Z=C[T-1]))/(X-Z);break}}if(T!=p){p=T;var j=6*T;for(b=h[j],S=h[j+1],w=h[j+2],R=h[j+3],M=h[j+4],I=h[j+5],B=2*(L=.03*(b-2*w+M))+(N=.006*(3*(w-M)-b+(O=h[j+6]))),k=2*(P=.03*(S-2*R+I))+(F=.006*(3*(R-I)-S+(D=h[j+7]))),V=.3*(w-b)+L+.16666667*N,U=.3*(R-S)+P+.16666667*F,W=Math.sqrt(V*V+U*U),H[0]=W,j=1;j<8;j++)V+=B,U+=k,B+=N,k+=F,W+=Math.sqrt(V*V+U*U),H[j]=W;V+=B,U+=k,W+=Math.sqrt(V*V+U*U),H[8]=W,V+=B+N,U+=k+F,W+=Math.sqrt(V*V+U*U),H[9]=W,G=0}for(E*=W;;G++){var q=H[G];if(!(E>q)){var Z;0==G?E/=q:E=G+(E-(Z=H[G-1]))/(q-Z);break}}this.addCurvePosition(.1*E,b,S,w,R,M,I,O,D,u,y,r||m>0&&0==Y)}return u},e.prototype.addBeforePosition=function(t,e,i,n,r){var s=e[i],a=e[i+1],o=e[i+2]-s,c=e[i+3]-a,l=Math.atan2(c,o);n[r]=s+t*Math.cos(l),n[r+1]=a+t*Math.sin(l),n[r+2]=l},e.prototype.addAfterPosition=function(t,e,i,n,r){var s=e[i+2],a=e[i+3],o=s-e[i],c=a-e[i+1],l=Math.atan2(c,o);n[r]=s+t*Math.cos(l),n[r+1]=a+t*Math.sin(l),n[r+2]=l},e.prototype.addCurvePosition=function(t,e,i,n,r,s,a,o,c,l,u,h){if(0==t||isNaN(t))return l[u]=e,l[u+1]=i,void(l[u+2]=Math.atan2(r-i,n-e));var f=t*t,d=f*t,_=1-t,p=_*_,v=p*_,g=_*t,m=3*g,y=_*m,T=m*t,E=e*v+n*y+s*T+o*d,A=i*v+r*y+a*T+c*d;l[u]=E,l[u+1]=A,h&&(l[u+2]=t<.001?Math.atan2(r-i,n-e):Math.atan2(A-(i*p+r*g*2+a*f),E-(e*p+n*g*2+s*f)))},e.NONE=-1,e.BEFORE=-2,e.AFTER=-3,e.epsilon=1e-5,e})();t.PathConstraint=e})(r||(r={})),(function(t){var e=(function(t){function e(e){var i=t.call(this,e,0,!1)||this;return i.bones=new Array,i}return s(e,t),e})(t.ConstraintData);t.PathConstraintData=e,(function(t){t[t.Fixed=0]="Fixed",t[t.Percent=1]="Percent"})(t.PositionMode||(t.PositionMode={})),(function(t){t[t.Length=0]="Length",t[t.Fixed=1]="Fixed",t[t.Percent=2]="Percent"})(t.SpacingMode||(t.SpacingMode={})),(function(t){t[t.Tangent=0]="Tangent",t[t.Chain=1]="Chain",t[t.ChainScale=2]="ChainScale"})(t.RotateMode||(t.RotateMode={}))})(r||(r={})),(function(t){var e=(function(){function t(t){this.toLoad=new Array,this.assets={},this.clientId=t}return t.prototype.loaded=function(){var t=0;for(var e in this.assets)t++;return t},t})(),i=(function(){function t(t){void 0===t&&(t=""),this.clientAssets={},this.queuedAssets={},this.rawAssets={},this.errors={},this.pathPrefix=t}return t.prototype.queueAsset=function(t,i,n){var r=this.clientAssets[t];return null==r&&(r=new e(t),this.clientAssets[t]=r),null!==i&&(r.textureLoader=i),r.toLoad.push(n),this.queuedAssets[n]!==n&&(this.queuedAssets[n]=n,!0)},t.prototype.loadText=function(t,e){var i=this;if(e=this.pathPrefix+e,this.queueAsset(t,null,e)){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&(n.status>=200&&n.status<300?i.rawAssets[e]=n.responseText:i.errors[e]="Couldn't load text "+e+": status "+n.status+", "+n.responseText)},n.open("GET",e,!0),n.send()}},t.prototype.loadJson=function(t,e){var i=this;if(e=this.pathPrefix+e,this.queueAsset(t,null,e)){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&(n.status>=200&&n.status<300?i.rawAssets[e]=JSON.parse(n.responseText):i.errors[e]="Couldn't load text "+e+": status "+n.status+", "+n.responseText)},n.open("GET",e,!0),n.send()}},t.prototype.loadTexture=function(t,e,i){var n=this;if(i=this.pathPrefix+i,this.queueAsset(t,e,i)){var r=new Image;r.src=i,r.crossOrigin="anonymous",r.onload=function(){n.rawAssets[i]=r},r.onerror=function(){n.errors[i]="Couldn't load image "+i}}},t.prototype.get=function(t,e){e=this.pathPrefix+e;var i=this.clientAssets[t];return null==i||i.assets[e]},t.prototype.updateClientAssets=function(t){for(var e=0;e0},t.prototype.getErrors=function(){return this.errors},t})();t.SharedAssetManager=i})(r||(r={})),(function(t){var e=(function(){function e(e){if(this._updateCache=new Array,this.updateCacheReset=new Array,this.time=0,this.scaleX=1,this.scaleY=1,this.x=0,this.y=0,null==e)throw new Error("data cannot be null.");this.data=e,this.bones=new Array;for(var i=0;i1){var s=n[n.length-1];this._updateCache.indexOf(s)>-1||this.updateCacheReset.push(s)}this._updateCache.push(e),this.sortReset(r.children),n[n.length-1].sorted=!0}},e.prototype.sortPathConstraint=function(e){if(e.active=e.target.bone.isActive()&&(!e.data.skinRequired||null!=this.skin&&t.Utils.contains(this.skin.constraints,e.data,!0)),e.active){var i=e.target,n=i.data.index,r=i.bone;null!=this.skin&&this.sortPathConstraintAttachment(this.skin,n,r),null!=this.data.defaultSkin&&this.data.defaultSkin!=this.skin&&this.sortPathConstraintAttachment(this.data.defaultSkin,n,r);for(var s=0,a=this.data.skins.length;s-1||this.updateCacheReset.push(s)}else for(r=0;r0){T=new t.DrawOrderTimeline(F);var B=r.slots.length;for(u=0;u=0;d--)V[d]=-1;var U=t.Utils.newArray(B-k,0),z=0,H=0;for(d=0;d=0;d--)-1==V[d]&&(V[d]=U[--H]);T.setFrame(u,m,V)}s.push(T),o=Math.max(o,T.frames[F-1])}var W=i.readInt(!0);if(W>0){for(T=new t.EventTimeline(W),u=0;u>>1^-(1&i)},t.prototype.readStringRef=function(){var t=this.readInt(!0);return 0==t?null:this.strings[t-1]},t.prototype.readString=function(){var t=this.readInt(!0);switch(t){case 0:return null;case 1:return""}t--;for(var e="",i=0;i>4){case 12:case 13:e+=String.fromCharCode((31&n)<<6|63&this.readByte()),i+=2;break;case 14:e+=String.fromCharCode((15&n)<<12|(63&this.readByte())<<6|63&this.readByte()),i+=3;break;default:e+=String.fromCharCode(n),i++}}return e},t.prototype.readFloat=function(){var t=this.buffer.getFloat32(this.index);return this.index+=4,t},t.prototype.readBoolean=function(){return 0!=this.readByte()},t})(),n=function(t,e,i,n,r){this.mesh=t,this.skin=e,this.slotIndex=i,this.parent=n,this.inheritDeform=r},r=function(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.bones=t,this.vertices=e}})(r||(r={})),(function(t){var e=(function(){function e(){this.minX=0,this.minY=0,this.maxX=0,this.maxY=0,this.boundingBoxes=new Array,this.polygons=new Array,this.polygonPool=new t.Pool(function(){return t.Utils.newFloatArray(16)})}return e.prototype.update=function(e,i){if(null==e)throw new Error("skeleton cannot be null.");var n=this.boundingBoxes,r=this.polygons,s=this.polygonPool,a=e.slots,o=a.length;n.length=0,s.freeAll(r),r.length=0;for(var c=0;c=this.minX&&t<=this.maxX&&e>=this.minY&&e<=this.maxY},e.prototype.aabbIntersectsSegment=function(t,e,i,n){var r=this.minX,s=this.minY,a=this.maxX,o=this.maxY;if(t<=r&&i<=r||e<=s&&n<=s||t>=a&&i>=a||e>=o&&n>=o)return!1;var c=(n-e)/(i-t),l=c*(r-t)+e;if(l>s&&ls&&lr&&ur&&ut.minX&&this.minYt.minY},e.prototype.containsPoint=function(t,e){for(var i=this.polygons,n=0,r=i.length;n=i||l=i){var u=n[o];u+(i-c)/(l-c)*(n[s]-u)=u&&y<=d||y>=d&&y<=u)&&(y>=e&&y<=n||y>=n&&y<=e)){var T=(l*g-c*p)/m;if((T>=h&&T<=_||T>=_&&T<=h)&&(T>=i&&T<=r||T>=r&&T<=i))return!0}u=d,h=_}return!1},e.prototype.getPolygon=function(t){if(null==t)throw new Error("boundingBox cannot be null.");var e=this.boundingBoxes.indexOf(t);return-1==e?null:this.polygons[e]},e.prototype.getWidth=function(){return this.maxX-this.minX},e.prototype.getHeight=function(){return this.maxY-this.minY},e})();t.SkeletonBounds=e})(r||(r={})),(function(t){var e=(function(){function e(){this.triangulator=new t.Triangulator,this.clippingPolygon=new Array,this.clipOutput=new Array,this.clippedVertices=new Array,this.clippedTriangles=new Array,this.scratch=new Array}return e.prototype.clipStart=function(i,n){if(null!=this.clipAttachment)return 0;this.clipAttachment=n;var r=n.worldVerticesLength,s=t.Utils.setArraySize(this.clippingPolygon,r);n.computeWorldVertices(i,0,r,s,0,2);var a=this.clippingPolygon;e.makeClockwise(a);for(var o=this.clippingPolygons=this.triangulator.decompose(a,this.triangulator.triangulate(a)),c=0,l=o.length;c>1,X=this.clipOutput,j=t.Utils.setArraySize(_,k+Y*m),q=0;q=2?(u=o,o=this.scratch):u=this.scratch,u.length=0,u.push(t),u.push(e),u.push(i),u.push(n),u.push(r),u.push(s),u.push(t),u.push(e),o.length=0;for(var h=a,f=a.length-4,d=0;;d+=2){for(var _=h[d],p=h[d+1],v=h[d+2],g=h[d+3],m=_-v,y=p-g,T=u,E=u.length-2,A=o.length,C=0;C0;if(m*(b-g)-y*(x-v)>0){if(R){o.push(S),o.push(w);continue}var M=(O=w-b)*(v-_)-(D=S-x)*(g-p);if(Math.abs(M)>1e-6){var I=(D*(p-b)-O*(_-x))/M;o.push(_+(v-_)*I),o.push(p+(g-p)*I)}else o.push(_),o.push(p)}else if(R){var O,D;M=(O=w-b)*(v-_)-(D=S-x)*(g-p),Math.abs(M)>1e-6?(I=(D*(p-b)-O*(_-x))/M,o.push(_+(v-_)*I),o.push(p+(g-p)*I)):(o.push(_),o.push(p)),o.push(S),o.push(w)}l=!0}if(A==o.length)return c.length=0,!0;if(o.push(o[0]),o.push(o[1]),d==f)break;var L=o;(o=u).length=0,u=L}if(c!=o){c.length=0,d=0;for(var P=o.length-2;d>1;o=0;f--)-1==X[f]&&(X[f]=q[--K])}T.setFrame(h++,this.getValue(Y,"time",0),X)}s.push(T),a=Math.max(a,T.frames[T.getFrameCount()-1])}if(e.events){for(T=new t.EventTimeline(e.events.length),h=0,f=0;f=n.length&&(n.length=t+1),n[t]||(n[t]={}),n[t][e]=i},i.prototype.addSkin=function(t){for(var e=0;e= 0.");if(null==i)throw new Error("name cannot be null.");if(null==n)throw new Error("boneData cannot be null.");this.index=e,this.name=i,this.boneData=n}})(r||(r={})),(function(t){var e,i,n=(function(){function t(t){this._image=t}return t.prototype.getImage=function(){return this._image},t.filterFromString=function(t){switch(t.toLowerCase()){case"nearest":return e.Nearest;case"linear":return e.Linear;case"mipmap":return e.MipMap;case"mipmapnearestnearest":return e.MipMapNearestNearest;case"mipmaplinearnearest":return e.MipMapLinearNearest;case"mipmapnearestlinear":return e.MipMapNearestLinear;case"mipmaplinearlinear":return e.MipMapLinearLinear;default:throw new Error("Unknown texture filter "+t)}},t.wrapFromString=function(t){switch(t.toLowerCase()){case"mirroredtepeat":return i.MirroredRepeat;case"clamptoedge":return i.ClampToEdge;case"repeat":return i.Repeat;default:throw new Error("Unknown texture wrap "+t)}},t})();t.Texture=n,(function(t){t[t.Nearest=9728]="Nearest",t[t.Linear=9729]="Linear",t[t.MipMap=9987]="MipMap",t[t.MipMapNearestNearest=9984]="MipMapNearestNearest",t[t.MipMapLinearNearest=9985]="MipMapLinearNearest",t[t.MipMapNearestLinear=9986]="MipMapNearestLinear",t[t.MipMapLinearLinear=9987]="MipMapLinearLinear"})(e=t.TextureFilter||(t.TextureFilter={})),(function(t){t[t.MirroredRepeat=33648]="MirroredRepeat",t[t.ClampToEdge=33071]="ClampToEdge",t[t.Repeat=10497]="Repeat"})(i=t.TextureWrap||(t.TextureWrap={}));t.TextureRegion=function(){this.u=0,this.v=0,this.u2=0,this.v2=0,this.width=0,this.height=0,this.rotate=!1,this.offsetX=0,this.offsetY=0,this.originalWidth=0,this.originalHeight=0};var r=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setFilters=function(){},e.prototype.setWraps=function(){},e.prototype.dispose=function(){},e})(n);t.FakeTexture=r})(r||(r={})),(function(t){var e=(function(){function e(t,e){this.pages=new Array,this.regions=new Array,this.load(t,e)}return e.prototype.load=function(e,s){if(null==s)throw new Error("textureLoader cannot be null.");for(var a=new i(e),o=new Array(4),c=null;;){var l=a.readLine();if(null==l)break;if(0==(l=l.trim()).length)c=null;else if(c){var u=new r;u.name=l,u.page=c;var h=a.readValue();"true"==h.toLocaleLowerCase()?u.degrees=90:"false"==h.toLocaleLowerCase()?u.degrees=0:u.degrees=parseFloat(h),u.rotate=90==u.degrees,a.readTuple(o);var f=parseInt(o[0]),d=parseInt(o[1]);a.readTuple(o);var _=parseInt(o[0]),p=parseInt(o[1]);u.u=f/c.width,u.v=d/c.height,u.rotate?(u.u2=(f+p)/c.width,u.v2=(d+_)/c.height):(u.u2=(f+_)/c.width,u.v2=(d+p)/c.height),u.x=f,u.y=d,u.width=Math.abs(_),u.height=Math.abs(p),4==a.readTuple(o)&&4==a.readTuple(o)&&a.readTuple(o),u.originalWidth=parseInt(o[0]),u.originalHeight=parseInt(o[1]),a.readTuple(o),u.offsetX=parseInt(o[0]),u.offsetY=parseInt(o[1]),u.index=parseInt(a.readValue()),u.texture=c.texture,this.regions.push(u)}else{(c=new n).name=l,2==a.readTuple(o)&&(c.width=parseInt(o[0]),c.height=parseInt(o[1]),a.readTuple(o)),a.readTuple(o),c.minFilter=t.Texture.filterFromString(o[0]),c.magFilter=t.Texture.filterFromString(o[1]);var v=a.readValue();c.uWrap=t.TextureWrap.ClampToEdge,c.vWrap=t.TextureWrap.ClampToEdge,"x"==v?c.uWrap=t.TextureWrap.Repeat:"y"==v?c.vWrap=t.TextureWrap.Repeat:"xy"==v&&(c.uWrap=c.vWrap=t.TextureWrap.Repeat),c.texture=s(l),c.texture.setFilters(c.minFilter,c.magFilter),c.texture.setWraps(c.uWrap,c.vWrap),c.width=c.texture.getImage().width,c.height=c.texture.getImage().height,this.pages.push(c)}}},e.prototype.findRegion=function(t){for(var e=0;e=this.lines.length?null:this.lines[this.index++]},t.prototype.readValue=function(){var t=this.readLine(),e=t.indexOf(":");if(-1==e)throw new Error("Invalid line: "+t);return t.substring(e+1).trim()},t.prototype.readTuple=function(t){var e=this.readLine(),i=e.indexOf(":");if(-1==i)throw new Error("Invalid line: "+e);for(var n=0,r=i+1;n<3;n++){var s=e.indexOf(",",r);if(-1==s)break;t[n]=e.substr(r,s-r).trim(),r=s+1}return t[n]=e.substring(r).trim(),n+1},t})(),n=function(){};t.TextureAtlasPage=n;var r=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e})(t.TextureRegion);t.TextureAtlasRegion=r})(r||(r={})),(function(t){var e=(function(){function e(e,i){if(this.rotateMix=0,this.translateMix=0,this.scaleMix=0,this.shearMix=0,this.temp=new t.Vector2,this.active=!1,null==e)throw new Error("data cannot be null.");if(null==i)throw new Error("skeleton cannot be null.");this.data=e,this.rotateMix=e.rotateMix,this.translateMix=e.translateMix,this.scaleMix=e.scaleMix,this.shearMix=e.shearMix,this.bones=new Array;for(var n=0;n0?t.MathUtils.degRad:-t.MathUtils.degRad,h=this.data.offsetRotation*u,f=this.data.offsetShearY*u,d=this.bones,_=0,p=d.length;_t.MathUtils.PI?w-=t.MathUtils.PI2:w<-t.MathUtils.PI&&(w+=t.MathUtils.PI2),w*=e;var A=Math.cos(w),C=Math.sin(w);v.a=A*m-C*T,v.b=A*y-C*E,v.c=C*m+A*T,v.d=C*y+A*E,g=!0}if(0!=i){var x=this.temp;s.localToWorld(x.set(this.data.offsetX,this.data.offsetY)),v.worldX+=(x.x-v.worldX)*i,v.worldY+=(x.y-v.worldY)*i,g=!0}if(n>0){var b=Math.sqrt(v.a*v.a+v.c*v.c),S=Math.sqrt(a*a+c*c);b>1e-5&&(b=(b+(S-b+this.data.offsetScaleX)*n)/b),v.a*=b,v.c*=b,b=Math.sqrt(v.b*v.b+v.d*v.d),S=Math.sqrt(o*o+l*l),b>1e-5&&(b=(b+(S-b+this.data.offsetScaleY)*n)/b),v.b*=b,v.d*=b,g=!0}if(r>0){y=v.b,E=v.d;var w,R=Math.atan2(E,y);(w=Math.atan2(l,o)-Math.atan2(c,a)-(R-Math.atan2(v.c,v.a)))>t.MathUtils.PI?w-=t.MathUtils.PI2:w<-t.MathUtils.PI&&(w+=t.MathUtils.PI2),w=R+(w+f)*r,b=Math.sqrt(y*y+E*E),v.b=Math.cos(w)*b,v.d=Math.sin(w)*b,g=!0}g&&(v.appliedValid=!1)}},e.prototype.applyRelativeWorld=function(){for(var e=this.rotateMix,i=this.translateMix,n=this.scaleMix,r=this.shearMix,s=this.target,a=s.a,o=s.b,c=s.c,l=s.d,u=a*l-o*c>0?t.MathUtils.degRad:-t.MathUtils.degRad,h=this.data.offsetRotation*u,f=this.data.offsetShearY*u,d=this.bones,_=0,p=d.length;_t.MathUtils.PI?v-=t.MathUtils.PI2:v<-t.MathUtils.PI&&(v+=t.MathUtils.PI2),v*=e;var C=Math.cos(v),x=Math.sin(v);g.a=C*y-x*E,g.b=C*T-x*A,g.c=x*y+C*E,g.d=x*T+C*A,m=!0}if(0!=i){var b=this.temp;s.localToWorld(b.set(this.data.offsetX,this.data.offsetY)),g.worldX+=b.x*i,g.worldY+=b.y*i,m=!0}if(n>0){var S=(Math.sqrt(a*a+c*c)-1+this.data.offsetScaleX)*n+1;g.a*=S,g.c*=S,S=(Math.sqrt(o*o+l*l)-1+this.data.offsetScaleY)*n+1,g.b*=S,g.d*=S,m=!0}if(r>0)(v=Math.atan2(l,o)-Math.atan2(c,a))>t.MathUtils.PI?v-=t.MathUtils.PI2:v<-t.MathUtils.PI&&(v+=t.MathUtils.PI2),T=g.b,A=g.d,v=Math.atan2(A,T)+(v-t.MathUtils.PI/2+f)*r,S=Math.sqrt(T*T+A*A),g.b=Math.cos(v)*S,g.d=Math.sin(v)*S,m=!0;m&&(g.appliedValid=!1)}},e.prototype.applyAbsoluteLocal=function(){var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,n=this.shearMix,r=this.target;r.appliedValid||r.updateAppliedTransform();for(var s=this.bones,a=0,o=s.length;a1e-5&&(d=(d+(r.ascaleX-d+this.data.offsetScaleX)*i)/d),_>1e-5&&(_=(_+(r.ascaleY-_+this.data.offsetScaleY)*i)/_));var p=c.ashearY;0!=n&&(u=r.ashearY-p+this.data.offsetShearY,u-=360*(16384-(16384.499999999996-u/360|0)),c.shearY+=u*n),c.updateWorldTransformWith(h,f,l,d,_,c.ashearX,p)}},e.prototype.applyRelativeLocal=function(){var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,n=this.shearMix,r=this.target;r.appliedValid||r.updateAppliedTransform();for(var s=this.bones,a=0,o=s.length;a1e-5&&(f*=(r.ascaleX-1+this.data.offsetScaleX)*i+1),d>1e-5&&(d*=(r.ascaleY-1+this.data.offsetScaleY)*i+1));var _=c.ashearY;0!=n&&(_+=(r.ashearY+this.data.offsetShearY)*n),c.updateWorldTransformWith(u,h,l,f,d,c.ashearX,_)}},e})();t.TransformConstraint=e})(r||(r={})),(function(t){var e=(function(t){function e(e){var i=t.call(this,e,0,!1)||this;return i.bones=new Array,i.rotateMix=0,i.translateMix=0,i.scaleMix=0,i.shearMix=0,i.offsetRotation=0,i.offsetX=0,i.offsetY=0,i.offsetScaleX=0,i.offsetScaleY=0,i.offsetShearY=0,i.relative=!1,i.local=!1,i}return s(e,t),e})(t.ConstraintData);t.TransformConstraintData=e})(r||(r={})),(function(t){var e=(function(){function e(){this.convexPolygons=new Array,this.convexPolygonsIndices=new Array,this.indicesArray=new Array,this.isConcaveArray=new Array,this.triangles=new Array,this.polygonPool=new t.Pool(function(){return new Array}),this.polygonIndicesPool=new t.Pool(function(){return new Array})}return e.prototype.triangulate=function(t){var i=t,n=t.length>>1,r=this.indicesArray;r.length=0;for(var s=0;s3;){for(var l=n-1,u=(s=0,1);;){t:if(!a[s]){for(var h=r[l]<<1,f=r[s]<<1,d=r[u]<<1,_=i[h],p=i[h+1],v=i[f],g=i[f+1],m=i[d],y=i[d+1],T=(u+1)%n;T!=l;T=(T+1)%n)if(a[T]){var E=r[T]<<1,A=i[E],C=i[E+1];if(e.positiveArea(m,y,_,p,A,C)&&e.positiveArea(_,p,v,g,A,C)&&e.positiveArea(v,g,m,y,A,C))break t}break}if(0==u){do{if(!a[s])break;s--}while(s>0);break}l=s,s=u,u=(u+1)%n}c.push(r[(n+s-1)%n]),c.push(r[s]),c.push(r[(s+1)%n]),r.splice(s,1),a.splice(s,1);var x=(--n+s-1)%n,b=s==n?0:s;a[x]=e.isConcave(x,n,i,r),a[b]=e.isConcave(b,n,i,r)}return 3==n&&(c.push(r[2]),c.push(r[0]),c.push(r[1])),c},e.prototype.decompose=function(t,i){var n=t,r=this.convexPolygons;this.polygonPool.freeAll(r),r.length=0;var s=this.convexPolygonsIndices;this.polygonIndicesPool.freeAll(s),s.length=0;var a=this.polygonIndicesPool.obtain();a.length=0;var o=this.polygonPool.obtain();o.length=0;for(var c=-1,l=0,u=0,h=i.length;u0?(r.push(o),s.push(a)):(this.polygonPool.free(o),this.polygonIndicesPool.free(a)),(o=this.polygonPool.obtain()).length=0,o.push(p),o.push(v),o.push(g),o.push(m),o.push(y),o.push(T),(a=this.polygonIndicesPool.obtain()).length=0,a.push(f),a.push(d),a.push(_),l=e.winding(p,v,g,m,y,T),c=f)}for(o.length>0&&(r.push(o),s.push(a)),u=0,h=r.length;u=0;u--)0==(o=r[u]).length&&(r.splice(u,1),this.polygonPool.free(o),a=s[u],s.splice(u,1),this.polygonIndicesPool.free(a));return r},e.isConcave=function(t,e,i,n){var r=n[(e+t-1)%e]<<1,s=n[t]<<1,a=n[(t+1)%e]<<1;return!this.positiveArea(i[r],i[r+1],i[s],i[s+1],i[a],i[a+1])},e.positiveArea=function(t,e,i,n,r,s){return t*(s-n)+i*(e-s)+r*(n-e)>=0},e.winding=function(t,e,i,n,r,s){var a=i-t,o=n-e;return r*o-s*a+a*e-t*o>=0?1:-1},e})();t.Triangulator=e})(r||(r={})),(function(t){var e=(function(){function t(){this.array=new Array}return t.prototype.add=function(t){var e=this.contains(t);return this.array[0|t]=0|t,!e},t.prototype.contains=function(t){return null!=this.array[0|t]},t.prototype.remove=function(t){this.array[0|t]=void 0},t.prototype.clear=function(){this.array.length=0},t})();t.IntSet=e;var i=(function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.r=t,this.g=e,this.b=i,this.a=n}return t.prototype.set=function(t,e,i,n){return this.r=t,this.g=e,this.b=i,this.a=n,this.clamp(),this},t.prototype.setFromColor=function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this},t.prototype.setFromString=function(t){return t="#"==t.charAt(0)?t.substr(1):t,this.r=parseInt(t.substr(0,2),16)/255,this.g=parseInt(t.substr(2,2),16)/255,this.b=parseInt(t.substr(4,2),16)/255,this.a=(8!=t.length?255:parseInt(t.substr(6,2),16))/255,this},t.prototype.add=function(t,e,i,n){return this.r+=t,this.g+=e,this.b+=i,this.a+=n,this.clamp(),this},t.prototype.clamp=function(){return this.r<0?this.r=0:this.r>1&&(this.r=1),this.g<0?this.g=0:this.g>1&&(this.g=1),this.b<0?this.b=0:this.b>1&&(this.b=1),this.a<0?this.a=0:this.a>1&&(this.a=1),this},t.rgba8888ToColor=function(t,e){t.r=((4278190080&e)>>>24)/255,t.g=((16711680&e)>>>16)/255,t.b=((65280&e)>>>8)/255,t.a=(255&e)/255},t.rgb888ToColor=function(t,e){t.r=((16711680&e)>>>16)/255,t.g=((65280&e)>>>8)/255,t.b=(255&e)/255},t.WHITE=new t(1,1,1,1),t.RED=new t(1,0,0,1),t.GREEN=new t(0,1,0,1),t.BLUE=new t(0,0,1,1),t.MAGENTA=new t(1,0,1,1),t})();t.Color=i;var n=(function(){function t(){}return t.clamp=function(t,e,i){return ti?i:t},t.cosDeg=function(e){return Math.cos(e*t.degRad)},t.sinDeg=function(e){return Math.sin(e*t.degRad)},t.signum=function(t){return t>0?1:t<0?-1:0},t.toInt=function(t){return t>0?Math.floor(t):Math.ceil(t)},t.cbrt=function(t){var e=Math.pow(Math.abs(t),1/3);return t<0?-e:e},t.randomTriangular=function(e,i){return t.randomTriangularWith(e,i,.5*(e+i))},t.randomTriangularWith=function(t,e,i){var n=Math.random(),r=e-t;return n<=(i-t)/r?t+Math.sqrt(n*r*(i-t)):e-Math.sqrt((1-n)*r*(e-i))},t.PI=3.1415927,t.PI2=2*t.PI,t.radiansToDegrees=180/t.PI,t.radDeg=t.radiansToDegrees,t.degreesToRadians=t.PI/180,t.degRad=t.degreesToRadians,t})();t.MathUtils=n;var r=(function(){function t(){}return t.prototype.apply=function(t,e,i){return t+(e-t)*this.applyInternal(i)},t})();t.Interpolation=r;var a=(function(t){function e(e){var i=t.call(this)||this;return i.power=2,i.power=e,i}return s(e,t),e.prototype.applyInternal=function(t){return t<=.5?Math.pow(2*t,this.power)/2:Math.pow(2*(t-1),this.power)/(this.power%2==0?-2:2)+1},e})(r);t.Pow=a;var o=(function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.applyInternal=function(t){return Math.pow(t-1,this.power)*(this.power%2==0?-1:1)+1},e})(a);t.PowOut=o;var c=(function(){function t(){}return t.arrayCopy=function(t,e,i,n,r){for(var s=e,a=n;s=i?e:t.setArraySize(e,i,n)},t.newArray=function(t,e){for(var i=new Array(t),n=0;n0?this.items.pop():this.instantiator()},t.prototype.free=function(t){t.reset&&t.reset(),this.items.push(t)},t.prototype.freeAll=function(t){for(var e=0;ethis.maxDelta&&(this.delta=this.maxDelta),this.lastTime=t,this.frameCount++,this.frameTime>1&&(this.framesPerSecond=this.frameCount/this.frameTime,this.frameTime=0,this.frameCount=0)},t})();t.TimeKeeper=f;var d=(function(){function t(t){void 0===t&&(t=32),this.addedValues=0,this.lastValue=0,this.mean=0,this.dirty=!0,this.values=new Array(t)}return t.prototype.hasEnoughData=function(){return this.addedValues>=this.values.length},t.prototype.addValue=function(t){this.addedValuesthis.values.length-1&&(this.lastValue=0),this.dirty=!0},t.prototype.getMean=function(){if(this.hasEnoughData()){if(this.dirty){for(var t=0,e=0;e>1)*s;var a=t.bone.skeleton,o=t.deform,c=this.vertices,l=this.bones;if(null!=l){for(var u=0,h=0,f=0;f0&&(c=o);for(var T,E=(T=t.bone).worldX,A=T.worldY,C=T.a,x=T.b,b=T.c,S=T.d,w=e,R=r;R0&&(s[T-1].vfOffset=_),s.length=T,a.length=f;var o=y-1;if(o>=0)if(m>0){var c=r[o];c.indexCount=m,c.vfCount=6*g,c.vertexCount=g,r.length=y}else r.length=y-1;if(0!=r.length){var l=n.vertices,C=n.uintVert;(!l||l.length<_)&&(l=n.vertices=new Float32Array(_),C=n.uintVert=new Uint32Array(l.buffer));for(var x=0,b=0;x<_;)l[x++]=u[b++],l[x++]=u[b++],l[x++]=u[b++],l[x++]=u[b++],C[x++]=u[b++],C[x++]=u[b++];var S=n.indices;(!S||S.length>>0)+(b.b<<16)+(b.g<<8)+b.r,o=(S.a<<24>>>0)+(S.b<<16)+(S.g<<8)+S.r,E!==a||A!==o){var p=this._tempColors;E=a,A=o,T>0&&(p[T-1].vfOffset=_),p[T++]={fr:b.r,fg:b.g,fb:b.b,fa:b.a,dr:S.r,dg:S.g,db:S.b,da:S.a,vfOffset:0}}if(l.isClipping()){l.clipTriangles(u,C,h,x,u,b,S,!0,6,d,_,_+2);var v=l.clippedVertices,g=l.clippedTriangles;x=g.length,C=v.length/12*6;for(var m=0,y=d,w=g.length;m=0&&(m>0?((A=R[E]).indexCount=m,A.vertexCount=g,A.vfCount=6*g):y--),R[y]={tex:T,blendMode:b,indexCount:0,vertexCount:0,vfCount:0},y++,m=0,g=0),o?(a=w,C=24,x=6,i.computeWorldVertices(S.bone,u,_,6)):c&&(a=i.triangles,C=6*(i.worldVerticesLength>>1),x=a.length,i.computeWorldVertices(S,0,i.worldVerticesLength,u,_,6)),0!=C&&0!=x){for(var k=0,V=d,U=a.length;k0){for(var G=d,Y=d+x;G=n&&(t&&t.call(e,!0),t=null)},a=0;a0)&&this.textureNames&&this.textureNames.length>0)return t||cc.errorID(7507,this.name),null;var e=this._getAtlas(t);if(!e)return null;var i=new sp.spine.AtlasAttachmentLoader(e),n=null,r=null;return this.skeletonJson?(r=new sp.spine.SkeletonJson(i),n=this.skeletonJson):(r=new sp.spine.SkeletonBinary(i),n=new Uint8Array(this._nativeAsset)),r.scale=this.scale,this._skeletonCache=r.readSkeletonData(n),e.dispose(),this._skeletonCache},getSkinsEnum:!1,getAnimsEnum:!1,_getTexture:function(t){for(var e=this.textureNames,i=0;i>>0)+(rt<<16)+(nt<<8)+it,at=t.dr*$,ot=t.dg*tt,ct=t.db*et,y=((a?255:0)<<24>>>0)+(ct<<16)+(ot<<8)+at}function xt(t){return(t.a<<24>>>0)+(t.b<<16)+(t.g<<8)+t.r}var bt=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.updateRenderData=function(t){if(!t.isAnimationCached()){var e=t._skeleton;e&&e.updateWorldTransform()}},r.fillVertices=function(t,e,i,n,r){var s,c=ut._vData,l=ut._iData,h=ut._uintVData;if(F.a=i.a*e.a*t.a*g*255,o=a?F.a:255,U=_*e.r*t.r*o,z=p*e.g*t.g*o,H=v*e.b*t.b*o,F.r=U*i.r,F.g=z*i.g,F.b=H*i.b,null==r.darkColor?B.set(0,0,0,1):(B.r=r.darkColor.r*U,B.g=r.darkColor.g*z,B.b=r.darkColor.b*H),B.a=a?255:0,n.isClipping()){var f=c.subarray(gt+2);n.clipTriangles(c.subarray(gt),pt,l.subarray(Tt),yt,f,F,B,u,E);var d=new Float32Array(n.clippedVertices),T=n.clippedTriangles;if(yt=T.length,pt=d.length/A*E,s=ut.request(pt/E,yt),Tt=s.indiceOffset,mt=s.vertexOffset,gt=s.byteOffset>>2,c=ut._vData,l=ut._iData,h=ut._uintVData,l.set(T,Tt),_t)for(var C=0,x=d.length,b=gt;C>>0)+(d[S+4]<<16)+(d[S+3]<<8)+d[S+2],h[R+4]=m,u&&(y=(d[S+11]<<24>>>0)+(d[S+10]<<16)+(d[S+9]<<8)+d[S+8],h[R+5]=y)}else if(_t)for(var M=gt,I=gt+pt;M=0&&c==g.data.index&&(W=!0),W)if(l>=0&&l==g.data.index&&(W=!1),pt=0,yt=0,n=g.getAttachment())if(_=n instanceof x.RegionAttachment,p=n instanceof x.MeshAttachment,n instanceof x.ClippingAttachment)b.clipStart(g,n);else if(_||p)if(S=At(n.region.texture._texture,g.data.blendMode)){if((G||S.getHash()!==ht.material.getHash())&&(G=!1,ht._flush(),ht.node=ft,ht.material=S),_){if(o=O,pt=4*E,yt=6,v=ut.request(4,6),Tt=v.indiceOffset,mt=v.vertexOffset,gt=v.byteOffset>>2,e=ut._vData,i=ut._iData,n.computeWorldVertices(g.bone,e,gt,E),C&&h){C.strokeColor=D,C.moveTo(e[gt],e[gt+1]);for(var M=gt+E,I=gt+pt;M>1)*E,yt=o.length,v=ut.request(pt/E,yt),Tt=v.indiceOffset,mt=v.vertexOffset,gt=v.byteOffset>>2,e=ut._vData,i=ut._iData,n.computeWorldVertices(g,0,n.worldVerticesLength,e,gt,E),C&&d)){C.strokeColor=N;for(var F=0,B=o.length;F0){for(var tt=Tt,et=Tt+yt;tt>2,n=ut._vData,r=ut._iData,s=ut._uintVData;for(var b=Tt,S=Tt+yt;b=E&&(Ct(T=g[v++]),E=T.vfOffset),s[L]=m,s[L+1]=y}}}}},r.fillBuffers=function(t,e){var i=t.node;if(i._renderFlag|=b.FLAG_UPDATE_RENDER_DATA,t._skeleton){var n=i._color;_=n.r/255,p=n.g/255,v=n.b/255,g=n.a/255,u=t.useTint||t.isAnimationCached(),T=u?R:w,E=u?6:5,ft=t.node,ut=e.getBuffer("spine",T),ht=e,lt=t,G=!0,a=t.premultipliedAlpha,o=1,I=0,dt=!1,_t=t._effectDelegate&&t._effectDelegate._vertexEffect,(4294967295!==n._val||a)&&(dt=!0),u&&(I|=1);var r=void 0;lt.enableBatch&&(r=ft._worldMatrix,G=!1,I|=16),t.isAnimationCached()?this.cacheTraverse(r):(_t&&_t.begin(t._skeleton),this.realTimeTraverse(r),_t&&_t.end()),e.worldMatDirty++,t.attachUtil._syncAttachedNode(),ft=void 0,ut=void 0,ht=void 0,lt=void 0,_t=null}},r.postFillBuffers=function(t,e){e.worldMatDirty--},n})(r.default);i.default=bt,r.default.register(C,bt),e.exports=i.default}),{"../../cocos2d/core/renderer/assembler":189,"../../cocos2d/core/renderer/render-flow":193,"../../cocos2d/core/renderer/webgl/vertex-format":225,"./Skeleton":306,"./lib/spine":308}],313:[(function(t,e){"use strict";var i=function(){this.start=null,this.end=null,this.complete=null,this.event=null,this.interrupt=null,this.dispose=null};i.getListeners=function(t){return t.listener||(t.listener=new i),t.listener},e.exports=i}),{}],314:[(function(t,e){"use strict";var i=t("./lib/spine");sp.VertexEffectDelegate=cc.Class({name:"sp.VertexEffectDelegate",ctor:function(){this._vertexEffect=null,this._interpolation=null,this._effectType="none"},clear:function(){this._vertexEffect=null,this._interpolation=null,this._effectType="none"},initJitter:function(t,e){return this._effectType="jitter",this._vertexEffect=new i.JitterEffect(t,e),this._vertexEffect},initSwirlWithPow:function(t,e){return this._interpolation=new i.Pow(e),this._vertexEffect=new i.SwirlEffect(t,this._interpolation),this._vertexEffect},initSwirlWithPowOut:function(t,e){return this._interpolation=new i.PowOut(e),this._vertexEffect=new i.SwirlEffect(t,this._interpolation),this._vertexEffect},getJitterVertexEffect:function(){return this._vertexEffect},getSwirlVertexEffect:function(){return this._vertexEffect},getVertexEffect:function(){return this._vertexEffect},getEffectType:function(){return this._effectType}}),e.exports=sp.VertexEffectDelegate}),{"./lib/spine":308}],315:[(function(t,e){"use strict";var i="undefined"==typeof window?global:window;i.cc=i.cc||{},cc.internal=cc.internal||{},t("./predefine"),t("./polyfill/string"),t("./polyfill/misc"),t("./polyfill/array"),t("./polyfill/object"),t("./polyfill/array-buffer"),t("./polyfill/number"),t("./polyfill/typescript"),t("./cocos2d/core/predefine"),t("./cocos2d"),t("./extends"),e.exports=i.cc}),{"./cocos2d":263,"./cocos2d/core/predefine":186,"./extends":304,"./package":void 0,"./polyfill/array":317,"./polyfill/array-buffer":316,"./polyfill/misc":318,"./polyfill/number":319,"./polyfill/object":320,"./polyfill/string":321,"./polyfill/typescript":322,"./predefine":323}],316:[(function(){"use strict";if(!ArrayBuffer.isView){var t=Object.getPrototypeOf(Int8Array);ArrayBuffer.isView="function"==typeof t?function(e){return e instanceof t}:function(t){if("object"!=typeof t)return!1;var e=t.constructor;return e===Float64Array||e===Float32Array||e===Uint8Array||e===Uint32Array||e===Int8Array}}}),{}],317:[(function(){"use strict";Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.find||(Array.prototype.find=function(t){for(var e=this.length,i=0;i0?1:-1}),Math.log2||(Math.log2=function(t){return Math.log(t)*Math.LOG2E}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),!console.time){var t=window.performance||Date,e=Object.create(null);console.time=function(i){e[i]=t.now()},console.timeEnd=function(i){var n=e[i],r=t.now()-n;console.log(i+": "+r+"ms")}}}),{}],319:[(function(){"use strict";Number.parseFloat=Number.parseFloat||parseFloat,Number.parseInt=Number.parseInt||parseInt}),{}],320:[(function(){"use strict";Object.assign||(Object.assign=function(t,e){return cc.js.mixin(t,e)}),Object.getOwnPropertyDescriptors||(Object.getOwnPropertyDescriptors=function(t){var e={},i=Object.getOwnPropertyNames(t);Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t)));for(var n=0;nthis.length)&&(e=this.length),e-=t.length;var i=this.indexOf(t,e);return-1!==i&&i===e}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/,"")})}),{}],322:[(function(){"use strict";var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};window.__extends=function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)},window.__assign=Object.assign||function(t){for(var e,i=1,n=arguments.length;i=0;o--)(r=t[o])&&(a=(s<3?r(a):s>3?r(e,i,a):r(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a},window.__param=function(t,e){return function(i,n){e(i,n,t)}},window.__metadata=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},window.__awaiter=function(t,e,i,n){return new(i||(i=Promise))(function(r,s){function a(t){try{c(n.next(t))}catch(e){s(e)}}function o(t){try{c(n.throw(t))}catch(e){s(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,o)}c((n=n.apply(t,e||[])).next())})},window.__generator=function(t,e){var i,n,r,s,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return c([t,e])}}function c(s){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},window.__read=function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},window.__spread=function(){for(var t=[],e=0;e1||o(t,e)})})}function o(t,e){try{(i=r[t](e)).value instanceof __await?Promise.resolve(i.value.v).then(c,l):u(s[0][2],i)}catch(n){u(s[0][3],n)}var i}function c(t){o("next",t)}function l(t){o("throw",t)}function u(t,e){t(e),s.shift(),s.length&&o(s[0][0],s[0][1])}},window.__asyncDelegator=function(t){var e,i;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,r){e[n]=t[n]?function(e){return(i=!i)?{value:__await(t[n](e)),done:"return"===n}:r?r(e):e}:r}},window.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise(function(n,s){r(n,s,(e=t[i](e)).done,e.value)})}}function r(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)}},window.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var e=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};window.__importStar=function(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&__createBinding(i,t,n);return e(i,t),i},window.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},window.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},window.__classPrivateFieldSet=function(t,e,i){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,i),i}}),{}],323:[(function(){"use strict";var t="undefined"==typeof window?global:window;function e(e,i){void 0===t[e]&&Object.defineProperty(t,e,{get:function(){var t;return"CC_WECHATGAMESUB"===e?t="cc.sys.platform === cc.sys.WECHAT_GAME_SUB":"CC_WECHATGAME"===e?t="cc.sys.platform === cc.sys.WECHAT_GAME":"CC_QQPLAY"===e&&(t="cc.sys.platform === cc.sys.QQ_PLAY"),cc.warnID(1400,e,t),i}})}function i(e){return"object"==typeof t[e]}(function(e,i){void 0===t[e]&&(t[e]=i)})("CC_BUILD",!1),t.CC_BUILD=!0,t.CC_DEV=!1,t.CC_DEBUG=!1,t.CC_JSB=!1,t.CC_NATIVERENDERER=!1,t.CC_SUPPORT_JIT=!0,t.CC_PHYSICS_BUILTIN=!1,t.CC_PHYSICS_CANNON=!1,t.CC_EDITOR=!1,t.CC_PREVIEW=!1,t.CC_TEST=!1,t.CC_RUNTIME=!1,t.CC_JSB=!1;var n=!(!i("wx")||!wx.getSharedCanvas),r=!(!i("wx")||!wx.getSystemInfoSync&&!wx.getSharedCanvas),s=i("bk");e("CC_WECHATGAMESUB",n),e("CC_WECHATGAME",r),e("CC_QQPLAY",s),t.CocosEngine=cc.ENGINE_VERSION="2.4.8"}),{}]},{},[315]); \ No newline at end of file +(function(t,e,i){function n(i){var r=e[i];if(!r){var s=t[i];if(!s)return;var a={};r=e[i]={exports:a},s[0]((function(t){return n(s[1][t]||t)}),r,a)}return r.exports}for(var r=0;r=0;i--)e.push(cc.v2(t[i].x,t[i].y));return e}function i(t){for(var e=[],i=0;i=this._duration},_cloneDecoration:function(t){t._repeatForever=this._repeatForever,t._speed=this._speed,t._timesForRepeat=this._timesForRepeat,t._easeList=this._easeList,t._speedMethod=this._speedMethod,t._repeatMethod=this._repeatMethod},_reverseEaseList:function(t){if(this._easeList){t._easeList=[];for(var e=0;e1.192092896e-7?this._duration:1.192092896e-7);e=1>e?e:1,this.update(e>0?e:0),this._repeatMethod&&this._timesForRepeat>1&&this.isDone()&&(this._repeatForever||this._timesForRepeat--,this.startWithTarget(this.target),this.step(this._elapsed-this._duration))},startWithTarget:function(t){cc.Action.prototype.startWithTarget.call(this,t),this._elapsed=0,this._firstTick=!0},reverse:function(){return cc.logID(1010),null},setAmplitudeRate:function(){cc.logID(1011)},getAmplitudeRate:function(){return cc.logID(1012),0},speed:function(t){return t<=0?(cc.logID(1013),this):(this._speedMethod=!0,this._speed*=t,this)},getSpeed:function(){return this._speed},setSpeed:function(t){return this._speed=t,this},repeat:function(t){return t=Math.round(t),isNaN(t)||t<1?(cc.logID(1014),this):(this._repeatMethod=!0,this._timesForRepeat*=t,this)},repeatForever:function(){return this._repeatMethod=!0,this._timesForRepeat=this.MAX_VALUE,this._repeatForever=!0,this}}),cc.actionInterval=function(t){return new cc.ActionInterval(t)},cc.Sequence=cc.Class({name:"cc.Sequence",extends:cc.ActionInterval,ctor:function(t){this._actions=[],this._split=null,this._last=0,this._reversed=!1;var e=t instanceof Array?t:arguments;if(1!==e.length){var i=e.length-1;if(i>=0&&null==e[i]&&cc.logID(1015),i>=0){for(var n,r=e[0],s=1;s1?e%1:e),this._last=n)},reverse:function(){var t=cc.Sequence._actionOneTwo(this._actions[1].reverse(),this._actions[0].reverse());return this._cloneDecoration(t),this._reverseEaseList(t),t._reversed=!0,t}}),cc.sequence=function(t){var e=t instanceof Array?t:arguments;if(1===e.length)return cc.errorID(1019),null;var i=e.length-1;i>=0&&null==e[i]&&cc.logID(1015);var n=null;if(i>=0){n=e[0];for(var r=1;r<=i;r++)e[r]&&(n=cc.Sequence._actionOneTwo(n,e[r]))}return n},cc.Sequence._actionOneTwo=function(t,e){var i=new cc.Sequence;return i.initWithTwoActions(t,e),i},cc.Repeat=cc.Class({name:"cc.Repeat",extends:cc.ActionInterval,ctor:function(t,e){this._times=0,this._total=0,this._nextDt=0,this._actionInstant=!1,this._innerAction=null,void 0!==e&&this.initWithAction(t,e)},initWithAction:function(t,e){var i=t._duration*e;return!!this.initWithDuration(i)&&(this._times=e,this._innerAction=t,t instanceof cc.ActionInstant&&(this._actionInstant=!0,this._times-=1),this._total=0,!0)},clone:function(){var t=new cc.Repeat;return this._cloneDecoration(t),t.initWithAction(this._innerAction.clone(),this._times),t},startWithTarget:function(t){this._total=0,this._nextDt=this._innerAction._duration/this._duration,cc.ActionInterval.prototype.startWithTarget.call(this,t),this._innerAction.startWithTarget(t)},stop:function(){this._innerAction.stop(),cc.Action.prototype.stop.call(this)},update:function(t){t=this._computeEaseTime(t);var e=this._innerAction,i=this._duration,n=this._times,r=this._nextDt;if(t>=r){for(;t>r&&this._total1?1:r;t>=1&&this._total=0&&null==e[i]&&cc.logID(1015),i>=0){for(var n,r=e[0],s=1;sr?this._two=cc.Sequence._actionOneTwo(e,cc.delayTime(n-r)):n0&&null==e[e.length-1]&&cc.logID(1015);for(var i=e[0],n=1;n180&&(i-=360),i<-180&&(i+=360),this._startAngle=e,this._angle=cc.RotateTo._reverse?i:-i},reverse:function(){cc.logID(1016)},update:function(t){t=this._computeEaseTime(t),this.target&&(this.target.angle=this._startAngle+this._angle*t)}}),cc.rotateTo=function(t,e){return new cc.RotateTo(t,e)},cc.RotateBy=cc.Class({name:"cc.RotateBy",extends:cc.ActionInterval,statics:{_reverse:!1},ctor:function(t,e){e*=cc.RotateBy._reverse?1:-1,this._deltaAngle=0,this._startAngle=0,void 0!==e&&this.initWithDuration(t,e)},initWithDuration:function(t,e){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._deltaAngle=e,!0)},clone:function(){var t=new cc.RotateBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._deltaAngle),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._startAngle=t.angle},update:function(t){t=this._computeEaseTime(t),this.target&&(this.target.angle=this._startAngle+this._deltaAngle*t)},reverse:function(){var t=new cc.RotateBy;return t.initWithDuration(this._duration,-this._deltaAngle),this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.rotateBy=function(t,e){return new cc.RotateBy(t,e)},cc.MoveBy=cc.Class({name:"cc.MoveBy",extends:cc.ActionInterval,ctor:function(t,e,i){this._positionDelta=cc.v2(0,0),this._startPosition=cc.v2(0,0),this._previousPosition=cc.v2(0,0),void 0!==e&&cc.MoveBy.prototype.initWithDuration.call(this,t,e,i)},initWithDuration:function(t,e,i){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(void 0!==e.x&&(i=e.y,e=e.x),this._positionDelta.x=e,this._positionDelta.y=i,!0)},clone:function(){var t=new cc.MoveBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._positionDelta),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t);var e=t.x,i=t.y;this._previousPosition.x=e,this._previousPosition.y=i,this._startPosition.x=e,this._startPosition.y=i},update:function(t){if(t=this._computeEaseTime(t),this.target){var e=this._positionDelta.x*t,i=this._positionDelta.y*t,n=this._startPosition;if(cc.macro.ENABLE_STACKABLE_ACTIONS){var r=this.target.x,s=this.target.y,a=this._previousPosition;n.x=n.x+r-a.x,n.y=n.y+s-a.y,e+=n.x,i+=n.y,a.x=e,a.y=i,this.target.setPosition(e,i)}else this.target.setPosition(n.x+e,n.y+i)}},reverse:function(){var t=new cc.MoveBy(this._duration,cc.v2(-this._positionDelta.x,-this._positionDelta.y));return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.moveBy=function(t,e,i){return new cc.MoveBy(t,e,i)},cc.MoveTo=cc.Class({name:"cc.MoveTo",extends:cc.MoveBy,ctor:function(t,e,i){this._endPosition=cc.v2(0,0),void 0!==e&&this.initWithDuration(t,e,i)},initWithDuration:function(t,e,i){return!!cc.MoveBy.prototype.initWithDuration.call(this,t,e,i)&&(void 0!==e.x&&(i=e.y,e=e.x),this._endPosition.x=e,this._endPosition.y=i,!0)},clone:function(){var t=new cc.MoveTo;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._endPosition),t},startWithTarget:function(t){cc.MoveBy.prototype.startWithTarget.call(this,t),this._positionDelta.x=this._endPosition.x-t.x,this._positionDelta.y=this._endPosition.y-t.y}}),cc.moveTo=function(t,e,i){return new cc.MoveTo(t,e,i)},cc.SkewTo=cc.Class({name:"cc.SkewTo",extends:cc.ActionInterval,ctor:function(t,e,i){this._skewX=0,this._skewY=0,this._startSkewX=0,this._startSkewY=0,this._endSkewX=0,this._endSkewY=0,this._deltaX=0,this._deltaY=0,void 0!==i&&cc.SkewTo.prototype.initWithDuration.call(this,t,e,i)},initWithDuration:function(t,e,i){var n=!1;return cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._endSkewX=e,this._endSkewY=i,n=!0),n},clone:function(){var t=new cc.SkewTo;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._endSkewX,this._endSkewY),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._startSkewX=t.skewX%180,this._deltaX=this._endSkewX-this._startSkewX,this._deltaX>180&&(this._deltaX-=360),this._deltaX<-180&&(this._deltaX+=360),this._startSkewY=t.skewY%360,this._deltaY=this._endSkewY-this._startSkewY,this._deltaY>180&&(this._deltaY-=360),this._deltaY<-180&&(this._deltaY+=360)},update:function(t){t=this._computeEaseTime(t),this.target.skewX=this._startSkewX+this._deltaX*t,this.target.skewY=this._startSkewY+this._deltaY*t}}),cc.skewTo=function(t,e,i){return new cc.SkewTo(t,e,i)},cc.SkewBy=cc.Class({name:"cc.SkewBy",extends:cc.SkewTo,ctor:function(t,e,i){void 0!==i&&this.initWithDuration(t,e,i)},initWithDuration:function(t,e,i){var n=!1;return cc.SkewTo.prototype.initWithDuration.call(this,t,e,i)&&(this._skewX=e,this._skewY=i,n=!0),n},clone:function(){var t=new cc.SkewBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._skewX,this._skewY),t},startWithTarget:function(t){cc.SkewTo.prototype.startWithTarget.call(this,t),this._deltaX=this._skewX,this._deltaY=this._skewY,this._endSkewX=this._startSkewX+this._deltaX,this._endSkewY=this._startSkewY+this._deltaY},reverse:function(){var t=new cc.SkewBy(this._duration,-this._skewX,-this._skewY);return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.skewBy=function(t,e,i){return new cc.SkewBy(t,e,i)},cc.JumpBy=cc.Class({name:"cc.JumpBy",extends:cc.ActionInterval,ctor:function(t,e,i,n,r){this._startPosition=cc.v2(0,0),this._previousPosition=cc.v2(0,0),this._delta=cc.v2(0,0),this._height=0,this._jumps=0,void 0!==n&&cc.JumpBy.prototype.initWithDuration.call(this,t,e,i,n,r)},initWithDuration:function(t,e,i,n,r){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(void 0===r&&(r=n,n=i,i=e.y,e=e.x),this._delta.x=e,this._delta.y=i,this._height=n,this._jumps=r,!0)},clone:function(){var t=new cc.JumpBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._delta,this._height,this._jumps),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t);var e=t.x,i=t.y;this._previousPosition.x=e,this._previousPosition.y=i,this._startPosition.x=e,this._startPosition.y=i},update:function(t){if(t=this._computeEaseTime(t),this.target){var e=t*this._jumps%1,i=4*this._height*e*(1-e);i+=this._delta.y*t;var n=this._delta.x*t,r=this._startPosition;if(cc.macro.ENABLE_STACKABLE_ACTIONS){var s=this.target.x,a=this.target.y,o=this._previousPosition;r.x=r.x+s-o.x,r.y=r.y+a-o.y,n+=r.x,i+=r.y,o.x=n,o.y=i,this.target.setPosition(n,i)}else this.target.setPosition(r.x+n,r.y+i)}},reverse:function(){var t=new cc.JumpBy(this._duration,cc.v2(-this._delta.x,-this._delta.y),this._height,this._jumps);return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.jumpBy=function(t,e,i,n,r){return new cc.JumpBy(t,e,i,n,r)},cc.JumpTo=cc.Class({name:"cc.JumpTo",extends:cc.JumpBy,ctor:function(t,e,i,n,r){this._endPosition=cc.v2(0,0),void 0!==n&&this.initWithDuration(t,e,i,n,r)},initWithDuration:function(t,e,i,n,r){return!!cc.JumpBy.prototype.initWithDuration.call(this,t,e,i,n,r)&&(void 0===r&&(i=e.y,e=e.x),this._endPosition.x=e,this._endPosition.y=i,!0)},startWithTarget:function(t){cc.JumpBy.prototype.startWithTarget.call(this,t),this._delta.x=this._endPosition.x-this._startPosition.x,this._delta.y=this._endPosition.y-this._startPosition.y},clone:function(){var t=new cc.JumpTo;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._endPosition,this._height,this._jumps),t}}),cc.jumpTo=function(t,e,i,n,r){return new cc.JumpTo(t,e,i,n,r)},cc.BezierBy=cc.Class({name:"cc.BezierBy",extends:cc.ActionInterval,ctor:function(t,e){this._config=[],this._startPosition=cc.v2(0,0),this._previousPosition=cc.v2(0,0),e&&cc.BezierBy.prototype.initWithDuration.call(this,t,e)},initWithDuration:function(t,e){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._config=e,!0)},clone:function(){var t=new cc.BezierBy;this._cloneDecoration(t);for(var e=[],i=0;ie/2?255:0}},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._originalState=t.opacity},stop:function(){this.target.opacity=this._originalState,cc.ActionInterval.prototype.stop.call(this)},reverse:function(){var t=new cc.Blink(this._duration,this._times);return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.blink=function(t,e){return new cc.Blink(t,e)},cc.FadeTo=cc.Class({name:"cc.FadeTo",extends:cc.ActionInterval,ctor:function(t,e){this._toOpacity=0,this._fromOpacity=0,void 0!==e&&cc.FadeTo.prototype.initWithDuration.call(this,t,e)},initWithDuration:function(t,e){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._toOpacity=e,!0)},clone:function(){var t=new cc.FadeTo;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._toOpacity),t},update:function(t){t=this._computeEaseTime(t);var e=void 0!==this._fromOpacity?this._fromOpacity:255;this.target.opacity=e+(this._toOpacity-e)*t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._fromOpacity=t.opacity}}),cc.fadeTo=function(t,e){return new cc.FadeTo(t,e)},cc.FadeIn=cc.Class({name:"cc.FadeIn",extends:cc.FadeTo,ctor:function(t){null==t&&(t=0),this._reverseAction=null,this.initWithDuration(t,255)},reverse:function(){var t=new cc.FadeOut;return t.initWithDuration(this._duration,0),this._cloneDecoration(t),this._reverseEaseList(t),t},clone:function(){var t=new cc.FadeIn;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._toOpacity),t},startWithTarget:function(t){this._reverseAction&&(this._toOpacity=this._reverseAction._fromOpacity),cc.FadeTo.prototype.startWithTarget.call(this,t)}}),cc.fadeIn=function(t){return new cc.FadeIn(t)},cc.FadeOut=cc.Class({name:"cc.FadeOut",extends:cc.FadeTo,ctor:function(t){null==t&&(t=0),this._reverseAction=null,this.initWithDuration(t,0)},reverse:function(){var t=new cc.FadeIn;return t._reverseAction=this,t.initWithDuration(this._duration,255),this._cloneDecoration(t),this._reverseEaseList(t),t},clone:function(){var t=new cc.FadeOut;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._toOpacity),t}}),cc.fadeOut=function(t){return new cc.FadeOut(t)},cc.TintTo=cc.Class({name:"cc.TintTo",extends:cc.ActionInterval,ctor:function(t,e,i,n){this._to=cc.color(0,0,0),this._from=cc.color(0,0,0),e instanceof cc.Color&&(n=e.b,i=e.g,e=e.r),void 0!==n&&this.initWithDuration(t,e,i,n)},initWithDuration:function(t,e,i,n){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._to=cc.color(e,i,n),!0)},clone:function(){var t=new cc.TintTo;this._cloneDecoration(t);var e=this._to;return t.initWithDuration(this._duration,e.r,e.g,e.b),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._from=this.target.color},update:function(t){t=this._computeEaseTime(t);var e=this._from,i=this._to;e&&(this.target.color=cc.color(e.r+(i.r-e.r)*t,e.g+(i.g-e.g)*t,e.b+(i.b-e.b)*t))}}),cc.tintTo=function(t,e,i,n){return new cc.TintTo(t,e,i,n)},cc.TintBy=cc.Class({name:"cc.TintBy",extends:cc.ActionInterval,ctor:function(t,e,i,n){this._deltaR=0,this._deltaG=0,this._deltaB=0,this._fromR=0,this._fromG=0,this._fromB=0,void 0!==n&&this.initWithDuration(t,e,i,n)},initWithDuration:function(t,e,i,n){return!!cc.ActionInterval.prototype.initWithDuration.call(this,t)&&(this._deltaR=e,this._deltaG=i,this._deltaB=n,!0)},clone:function(){var t=new cc.TintBy;return this._cloneDecoration(t),t.initWithDuration(this._duration,this._deltaR,this._deltaG,this._deltaB),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t);var e=t.color;this._fromR=e.r,this._fromG=e.g,this._fromB=e.b},update:function(t){t=this._computeEaseTime(t),this.target.color=cc.color(this._fromR+this._deltaR*t,this._fromG+this._deltaG*t,this._fromB+this._deltaB*t)},reverse:function(){var t=new cc.TintBy(this._duration,-this._deltaR,-this._deltaG,-this._deltaB);return this._cloneDecoration(t),this._reverseEaseList(t),t}}),cc.tintBy=function(t,e,i,n){return new cc.TintBy(t,e,i,n)},cc.DelayTime=cc.Class({name:"cc.DelayTime",extends:cc.ActionInterval,update:function(){},reverse:function(){var t=new cc.DelayTime(this._duration);return this._cloneDecoration(t),this._reverseEaseList(t),t},clone:function(){var t=new cc.DelayTime;return this._cloneDecoration(t),t.initWithDuration(this._duration),t}}),cc.delayTime=function(t){return new cc.DelayTime(t)},cc.ReverseTime=cc.Class({name:"cc.ReverseTime",extends:cc.ActionInterval,ctor:function(t){this._other=null,t&&this.initWithAction(t)},initWithAction:function(t){return t?t===this._other?(cc.errorID(1029),!1):!!cc.ActionInterval.prototype.initWithDuration.call(this,t._duration)&&(this._other=t,!0):(cc.errorID(1028),!1)},clone:function(){var t=new cc.ReverseTime;return this._cloneDecoration(t),t.initWithAction(this._other.clone()),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._other.startWithTarget(t)},update:function(t){t=this._computeEaseTime(t),this._other&&this._other.update(1-t)},reverse:function(){return this._other.clone()},stop:function(){this._other.stop(),cc.Action.prototype.stop.call(this)}}),cc.reverseTime=function(t){return new cc.ReverseTime(t)},cc.TargetedAction=cc.Class({name:"cc.TargetedAction",extends:cc.ActionInterval,ctor:function(t,e){this._action=null,this._forcedTarget=null,e&&this.initWithTarget(t,e)},initWithTarget:function(t,e){return!!this.initWithDuration(e._duration)&&(this._forcedTarget=t,this._action=e,!0)},clone:function(){var t=new cc.TargetedAction;return this._cloneDecoration(t),t.initWithTarget(this._forcedTarget,this._action.clone()),t},startWithTarget:function(t){cc.ActionInterval.prototype.startWithTarget.call(this,t),this._action.startWithTarget(this._forcedTarget)},stop:function(){this._action.stop()},update:function(t){t=this._computeEaseTime(t),this._action.update(t)},getForcedTarget:function(){return this._forcedTarget},setForcedTarget:function(t){this._forcedTarget!==t&&(this._forcedTarget=t)}}),cc.targetedAction=function(t,e){return new cc.TargetedAction(t,e)}}),{}],6:[(function(t){"use strict";t("../core/platform/CCClass");var e=t("../core/platform/js"),i=function(){this.actions=[],this.target=null,this.actionIndex=0,this.currentAction=null,this.paused=!1,this.lock=!1};cc.ActionManager=function(){this._hashTargets=e.createMap(!0),this._arrayTargets=[],this._currentTarget=null,cc.director._scheduler&&cc.director._scheduler.enableForTarget(this)},cc.ActionManager.prototype={constructor:cc.ActionManager,_elementPool:[],_searchElementByTarget:function(t,e){for(var i=0;i=n&&i.actionIndex--;break}}},_removeActionByTag:function(t,e,i){for(var n=0,r=e.actions.length;n=0;--n){var r=e.actions[n];if(r&&r.getTag()===t){if(i&&r.getOriginalTarget()!==i)continue;this._removeActionAtIndex(n,e)}}},removeActionByTag:function(t,e){t===cc.Action.TAG_INVALID&&cc.logID(1002);var i=this._hashTargets;if(e){var n=i[e._id];n&&this._removeActionByTag(t,n,e)}else for(var r in i){var s=i[r];this._removeActionByTag(t,s)}},removeAllActionsByTag:function(t,e){t===cc.Action.TAG_INVALID&&cc.logID(1002);var i=this._hashTargets;if(e){var n=i[e._id];n&&this._removeAllActionsByTag(t,n,e)}else for(var r in i){var s=i[r];this._removeAllActionsByTag(t,s)}},getActionByTag:function(t,e){t===cc.Action.TAG_INVALID&&cc.logID(1004);var i=this._hashTargets[e._id];if(i){if(null!=i.actions)for(var n=0;n=t&&e.actionIndex--,0===e.actions.length&&this._deleteHashElement(e)},_deleteHashElement:function(t){var e=!1;if(t&&!t.lock&&this._hashTargets[t.target._id]){delete this._hashTargets[t.target._id];for(var i=this._arrayTargets,n=0,r=i.length;n=1?t:r%n>n/2?255:0},this.to(t,{opacity:1},i)}});var a=[];function o(t){return function(){a.length=0;for(var e=arguments.length,i=0;i=0?_=l.events[p]:(_=new a,l.ratios.push(d),l.events.push(_)),_.add(f.func,f.params)}}u.playState=function(t,e){t.clip&&(t.curveLoaded||h(this.target,t),t.animator=this,t.play(),"number"==typeof e&&t.setTime(e),this.play())},u.stopStatesExcept=function(t){var e=this._anims,i=e.array;for(e.i=0;e.i=0?(this._anims.fastRemoveAt(e),0===this._anims.array.length&&this.stop()):cc.errorID(3907),t.animator=null},u.sample=function(){var t=this._anims,e=t.array;for(t.i=0;t.i1e-6){y=!1;break}l._findFrameIndex=y?s:o;var A=l.values[0];return null==A||l._lerp||("number"==typeof A?l._lerp=r.prototype._lerpNumber:A instanceof cc.Quat?l._lerp=r.prototype._lerpQuat:A instanceof cc.Vec2?l._lerp=r.prototype._lerpVector2:A instanceof cc.Vec3?l._lerp=r.prototype._lerpVector3:A.lerp&&(l._lerp=r.prototype._lerpObject)),l},createTargetCurves:function(t,e,i){var n=e.props,r=e.comps;if(n)for(var s in n){var a=n[s],o=this.createPropCurve(t,s,a);i.push(o)}if(r)for(var c in r){var l=t.getComponent(c);if(l){var u=r[c];for(var h in u){var f=u[h],d=this.createPropCurve(l,h,f);i.push(d)}}}},createCurves:function(t,e){var i=this.curveData,n=i.paths,r=[];for(var s in this.createTargetCurves(e,i,r),n){var a=cc.find(s,e);if(a){var o=n[s];this.createTargetCurves(a,o,r)}}return r}});cc.AnimationClip=e.exports=c}),{"../core/utils/binary-search":229,"./animation-curves":11,"./motion-path-helper":17,"./types":19}],11:[(function(t,e){"use strict";var i=t("./bezier").bezierByTime,n=t("../core/utils/binary-search").binarySearchEpsilon,r=t("./types").WrapModeMask,s=t("./types").WrappedInfo;function a(t,e){if("string"==typeof e){var n=cc.easing[e];n?t=n(t):cc.errorID(3906,e)}else Array.isArray(e)&&(t=i(e,t));return t}var o=cc.Class({name:"cc.AnimCurve",sample:function(){},onTimeChangedManually:void 0});var c,l=cc.Class({name:"cc.DynamicAnimCurve",extends:o,ctor:function(){this._cachedIndex=0},properties:{target:null,prop:"",values:[],ratios:[],types:[]},_findFrameIndex:n,_lerp:void 0,_lerpNumber:function(t,e,i){return t+(e-t)*i},_lerpObject:function(t,e,i){return t.lerp(e,i)},_lerpQuat:(c=cc.quat(),function(t,e,i){return t.lerp(e,i,c)}),_lerpVector2:(function(){var t=cc.v2();return function(e,i,n){return e.lerp(i,n,t)}})(),_lerpVector3:(function(){var t=cc.v3();return function(e,i,n){return e.lerp(i,n,t)}})(),sample:function(t,e){var i=this.values,n=this.ratios,r=n.length;if(0!==r){var s,o=!0,c=this._cachedIndex;if(c<0&&(c=~c)>0&&cl&&e=r)s=i[r-1];else{var f=i[h-1];if(this._lerp){var d=n[h-1],_=n[h],p=this.types[h-1],v=(e-d)/(_-d);p&&(v=a(v,p));var g=i[h];s=this._lerp(f,g,v)}else s=f}else s=i[h];this.target[this.prop]=s}}});l.Linear=null,l.Bezier=function(t){return t};var u=function(){this.events=[]};u.prototype.add=function(t,e){this.events.push({func:t||"",params:e||[]})};var h=cc.Class({name:"cc.EventAnimCurve",extends:o,properties:{target:null,ratios:[],events:[],_wrappedInfo:{default:function(){return new s}},_lastWrappedInfo:null,_ignoreIndex:NaN},_wrapIterations:function(t){return t-(0|t)==0&&(t-=1),0|t},sample:function(t,e,i){var a=this.ratios.length,o=i.getWrappedInfo(i.time,this._wrappedInfo),c=o.direction,l=n(this.ratios,o.ratio);if(l<0&&(l=~l-1,c<0&&(l+=1)),this._ignoreIndex!==l&&(this._ignoreIndex=NaN),o.frameIndex=l,!this._lastWrappedInfo)return this._fireEvent(l),void(this._lastWrappedInfo=new s(o));var u=i.wrapMode,h=this._wrapIterations(o.iterations),f=this._lastWrappedInfo,d=this._wrapIterations(f.iterations),_=f.frameIndex,p=f.direction,v=-1!==d&&h!==d;if(_===l&&v&&1===a)this._fireEvent(0);else if(_!==l||v){c=p;do{if(_!==l){if(-1===c&&0===_&&l>0?((u&r.PingPong)===r.PingPong?c*=-1:_=a,d++):1===c&&_===a-1&&lh)break}_+=c,cc.director.getAnimationManager().pushDelayEvent(this,"_fireEvent",[_])}while(_!==l&&_>-1&&_=this.events.length||this._ignoreIndex===t)){var e=this.events[t].events;if(this.target.isValid)for(var i=this.target._components,n=0;nr)return~t.length;var s=(e=(e-n)/(r-n))/(1/i),a=0|s;return s-a<1e-6?a:a+1-s<1e-6?a+1:~(a+1)}}}),{"../core/utils/binary-search":229,"./bezier":14,"./types":19}],12:[(function(t,e){"use strict";var i=cc.js,n=cc.Class({ctor:function(){this._anims=new i.array.MutableForwardIterator([]),this._delayEvents=[],cc.director._scheduler&&cc.director._scheduler.enableForTarget(this)},update:function(t){var e=this._anims,i=e.array;for(e.i=0;e.i=0?this._anims.fastRemoveAt(e):cc.errorID(3907)},pushDelayEvent:function(t,e,i){this._delayEvents.push({target:t,func:e,args:i})}});cc.AnimationManager=e.exports=n}),{}],13:[(function(t,e){"use strict";var i=cc.js,n=t("./playable"),r=t("./types"),s=r.WrappedInfo,a=r.WrapMode,o=r.WrapModeMask;function c(t,e){n.call(this),this._currentFramePlayed=!1,this._delay=0,this._delayTime=0,this._wrappedInfo=new s,this._lastWrappedInfo=null,this._process=u,this._clip=t,this._name=e||t&&t.name,this.animator=null,this.curves=[],this.delay=0,this.repeatCount=1,this.duration=1,this.speed=1,this.wrapMode=a.Normal,this.time=0,this._target=null,this._lastframeEventOn=!1,this.emit=function(){for(var t=new Array(arguments.length),e=0,i=t.length;e1&&(0|e.iterations)>(0|t.iterations)&&this.emit("lastframe",this),t.set(e)),e.stopped&&(this.stop(),this.emit("finished",this))}function h(){var t=this.time,e=this.duration;t>e?0==(t%=e)&&(t=e):t<0&&0!=(t%=e)&&(t+=e);for(var i=t/e,n=this.curves,r=0,s=n.length;r0&&this._lastIterations>i||this.time<0&&this._lastIterations0&&(this._delayTime-=t,this._delayTime>0)||(this._currentFramePlayed?this.time+=t*this.speed:this._currentFramePlayed=!0,this._process())},l._needRevers=function(t){var e=this.wrapMode,i=!1;return(e&o.PingPong)===o.PingPong&&(t-(0|t)==0&&t>0&&(t-=1),1&t&&(i=!i)),(e&o.Reverse)===o.Reverse&&(i=!i),i},l.getWrappedInfo=function(t,e){e=e||new s;var i=!1,n=this.duration,r=this.repeatCount,a=t>0?t/n:-t/n;if(a>=r){a=r,i=!0;var c=r-(0|r);0===c&&(c=1),t=c*n*(t>0?1:-1)}if(t>n){var l=t%n;t=0===l?n:l}else t<0&&0!=(t%=n)&&(t+=n);var u=!1,h=this._wrapMode&o.ShouldWrap;h&&(u=this._needRevers(a));var f=u?-1:1;return this.speed<0&&(f*=-1),h&&u&&(t=n-t),e.ratio=t/n,e.time=t,e.direction=f,e.stopped=i,e.iterations=a,e},l.sample=function(){for(var t=this.getWrappedInfo(this.time,this._wrappedInfo),e=this.curves,i=0,n=e.length;i0}),(function(){this.curves.length=0})),i.getset(l,"wrapMode",(function(){return this._wrapMode}),(function(t){this._wrapMode=t,this.time=0,t&o.Loop?this.repeatCount=1/0:this.repeatCount=1})),i.getset(l,"repeatCount",(function(){return this._repeatCount}),(function(t){this._repeatCount=t;var e=this._wrapMode&o.ShouldWrap,i=(this.wrapMode&o.Reverse)===o.Reverse;this._process=t!==1/0||e||i?u:h})),i.getset(l,"delay",(function(){return this._delay}),(function(t){this._delayTime=this._delay=t})),cc.AnimationState=e.exports=c}),{"./playable":18,"./types":19}],14:[(function(t,e){"use strict";var i=Math.cos,n=Math.acos,r=Math.max,s=2*Math.PI,a=Math.sqrt;function o(t){return t<0?-Math.pow(-t,1/3):Math.pow(t,1/3)}function c(t,e){var c,l,u,h,f=e-0,d=e-t[0],_=3*f,p=3*d,v=3*(e-t[2]),g=1/(-f+p-v+(e-1)),m=(_-6*d+v)*g,y=m*(1/3),T=(-_+p)*g,E=1/3*(3*T-m*m),A=E*(1/3),C=(2*m*m*m-9*m*T+f*g*27)/27,x=C/2,b=x*x+A*A*A;if(b<0){var S=1/3*-E,w=a(S*S*S),R=-C/(2*w),M=n(R<-1?-1:R>1?1:R),I=2*o(w);return l=I*i(M*(1/3))-y,u=I*i((M+s)*(1/3))-y,h=I*i((M+2*s)*(1/3))-y,0<=l&&l<=1?0<=u&&u<=1?0<=h&&h<=1?r(l,u,h):r(l,u):0<=h&&h<=1?r(l,h):l:0<=u&&u<=1?0<=h&&h<=1?r(u,h):u:h}if(0===b)return u=-(c=x<0?o(-x):-o(x))-y,0<=(l=2*c-y)&&l<=1?0<=u&&u<=1?r(l,u):l:u;var O=a(b);return(c=o(-x+O))-o(x+O)-y}e.exports={bezier:function(t,e,i,n,r){var s=1-r;return s*(s*(t+(3*e-t)*r)+3*i*r*r)+n*r*r*r},bezierByTime:function(t,e){var i=c(t,e),n=t[1];return((1-i)*(n+(t[3]-n)*i)*3+i*i)*i}}}),{}],15:[(function(t,e){"use strict";var i={constant:function(){return 0},linear:function(t){return t},quadIn:function(t){return t*t},quadOut:function(t){return t*(2-t)},quadInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quartIn:function(t){return t*t*t*t},quartOut:function(t){return 1- --t*t*t*t},quartInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quintIn:function(t){return t*t*t*t*t},quintOut:function(t){return--t*t*t*t*t+1},quintInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sineIn:function(t){return 1-Math.cos(t*Math.PI/2)},sineOut:function(t){return Math.sin(t*Math.PI/2)},sineInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},expoIn:function(t){return 0===t?0:Math.pow(1024,t-1)},expoOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},expoInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circIn:function(t){return 1-Math.sqrt(1-t*t)},circOut:function(t){return Math.sqrt(1- --t*t)},circInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*(t-e)*Math.PI/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin(2*(t-e)*Math.PI/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5},smooth:function(t){return t<=0?0:t>=1?1:t*t*(3-2*t)},fade:function(t){return t<=0?0:t>=1?1:t*t*t*(t*(6*t-15)+10)}};function n(t,e){return function(i){return i<.5?e(2*i)/2:t(2*i-1)/2+.5}}i.quadOutIn=n(i.quadIn,i.quadOut),i.cubicOutIn=n(i.cubicIn,i.cubicOut),i.quartOutIn=n(i.quartIn,i.quartOut),i.quintOutIn=n(i.quintIn,i.quintOut),i.sineOutIn=n(i.sineIn,i.sineOut),i.expoOutIn=n(i.expoIn,i.expoOut),i.circOutIn=n(i.circIn,i.circOut),i.backOutIn=n(i.backIn,i.backOut),i.bounceIn=function(t){return 1-i.bounceOut(1-t)},i.bounceInOut=function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5},i.bounceOutIn=n(i.bounceIn,i.bounceOut),cc.easing=e.exports=i}),{}],16:[(function(t){"use strict";t("./bezier"),t("./easing"),t("./types"),t("./motion-path-helper"),t("./animation-curves"),t("./animation-clip"),t("./animation-manager"),t("./animation-state"),t("./animation-animator")}),{"./animation-animator":9,"./animation-clip":10,"./animation-curves":11,"./animation-manager":12,"./animation-state":13,"./bezier":14,"./easing":15,"./motion-path-helper":17,"./types":19}],17:[(function(t,e){"use strict";var i=t("./animation-curves").DynamicAnimCurve,n=t("./animation-curves").computeRatioByType,r=t("./bezier").bezier,s=t("../core/utils/binary-search").binarySearchEpsilon,a=cc.v2;function o(t){this.points=t||[],this.beziers=[],this.ratios=[],this.progresses=[],this.length=0,this.computeBeziers()}function c(){this.start=a(),this.end=a(),this.startCtrlPoint=a(),this.endCtrlPoint=a()}function l(t){if(!Array.isArray(t))return!1;for(var e=0,i=t.length;e0)){c=r;break}c=r-1}if(n[r=c]===i)return r/(s-1);var l=n[r];return(r+(i-l)/(n[r+1]-l))/(s-1)},e.exports={sampleMotionPaths:function(t,e,r,c,u){function h(t){return t instanceof cc.Vec2?{in:t,pos:t,out:t}:Array.isArray(t)&&6===t.length?{in:a(t[2],t[3]),pos:a(t[0],t[1]),out:a(t[4],t[5])}:{in:cc.Vec2.ZERO,pos:cc.Vec2.ZERO,out:cc.Vec2.ZERO}}var f=e.values=e.values.map((function(t){return Array.isArray(t)&&(t=2===t.length?cc.v2(t[0],t[1]):cc.v3(t[0],t[1],t[2])),t}));if(0!==t.length&&0!==f.length){for(var d=!1,_=0;_0){d=!0;break}}if(d&&1!==f.length){for(var v=e.types,g=e.ratios,m=e.values=[],y=e.types=[],T=e.ratios=[],E=0,A=i.Linear,C=0,x=t.length;C0){var N=[];N.push(h(M));for(var F=0,B=S.length;F1e-6;){var z,H,W,G;if((b=n(b=L,O))<0)G=(0-b)*(H=V.beziers[0]).getLength(),W=H.start.sub(H.endCtrlPoint).normalize(),z=H.start.add(W.mul(G));else if(b>1)G=(b-1)*(H=V.beziers[V.beziers.length-1]).getLength(),W=H.end.sub(H.startCtrlPoint).normalize(),z=H.end.add(W.mul(G));else{var Y=s(U,b);Y<0&&(Y=~Y),b-=Y>0?U[Y-1]:0,b/=V.ratios[Y],z=V.beziers[Y].getPointAt(b)}D.push(z),L+=P}}else for(;1-L>1e-6;)b=n(b=L,O),D.push(M.lerp(I,b)),L+=P;for(A="constant"===O?O:i.Linear,F=0,B=D.length;F1e-6?(L-1)*R:0}g[g.length-1]!==T[T.length-1]&&j(f[f.length-1],A,g[g.length-1])}}function j(t,e,i){m.push(t),y.push(e),T.push(i)}},Curve:o,Bezier:c}}),{"../core/utils/binary-search":229,"./animation-curves":11,"./bezier":14}],18:[(function(t,e){"use strict";var i=cc.js,n=t("../core/CCDebug");function r(){this._isPlaying=!1,this._isPaused=!1,this._stepOnce=!1}var s=r.prototype;i.get(s,"isPlaying",(function(){return this._isPlaying}),!0),i.get(s,"isPaused",(function(){return this._isPaused}),!0);var a=function(){};s.onPlay=a,s.onPause=a,s.onResume=a,s.onStop=a,s.onError=a,s.play=function(){this._isPlaying?this._isPaused?(this._isPaused=!1,this.onResume()):this.onError(n.getError(3912)):(this._isPlaying=!0,this.onPlay())},s.stop=function(){this._isPlaying&&(this._isPlaying=!1,this.onStop(),this._isPaused=!1)},s.pause=function(){this._isPlaying&&!this._isPaused&&(this._isPaused=!0,this.onPause())},s.resume=function(){this._isPlaying&&this._isPaused&&(this._isPaused=!1,this.onResume())},s.step=function(){this.pause(),this._stepOnce=!0,this._isPlaying||this.play()},e.exports=r}),{"../core/CCDebug":22}],19:[(function(t,e){"use strict";var i={Loop:2,ShouldWrap:4,PingPong:22,Reverse:36},n=cc.Enum({Default:0,Normal:1,Reverse:i.Reverse,Loop:i.Loop,LoopReverse:i.Loop|i.Reverse,PingPong:i.PingPong,PingPongReverse:i.PingPong|i.Reverse});function r(t){t?this.set(t):(this.ratio=0,this.time=0,this.direction=1,this.stopped=!0,this.iterations=0,this.frameIndex=void 0)}cc.WrapMode=n,r.prototype.set=function(t){this.ratio=t.ratio,this.time=t.time,this.direction=t.direction,this.stopped=t.stopped,this.iterations=t.iterations,this.frameIndex=t.frameIndex},e.exports={WrapModeMask:i,WrapMode:n,WrappedInfo:r}}),{}],20:[(function(t,e){"use strict";var i,n,r=t("../core/event/event-target"),s=t("../core/platform/CCSys"),a=t("../core/assets/CCAudioClip").LoadMode,o=!1,c=[],l=function t(e){r.call(this),this._shouldRecycleOnEnded=!1,this._src=e,this._element=null,this.id=0,this._state=t.State.INITIALZING;var i=this;this._onended=function(){i._state=t.State.STOPPED,i.emit("ended")},this._onendedSecond=function(){i._unbindEnded(i._onendedSecond),i._bindEnded()}};cc.js.extend(l,r),l.State={ERROR:-1,INITIALZING:0,PLAYING:1,PAUSED:2,STOPPED:3},(i=l.prototype)._bindEnded=function(t){if(!(t=t||this._onended)._binded){t._binded=!0;var e=this._element;this._src&&e instanceof HTMLAudioElement?e.addEventListener("ended",t):e.onended=t}},i._unbindEnded=function(t){if((t=t||this._onended)._binded){t._binded=!1;var e=this._element;e instanceof HTMLAudioElement?e.removeEventListener("ended",t):e&&(e.onended=null)}},i._onLoaded=function(){this._createElement(),this._state=l.State.INITIALZING,this.setVolume(1),this.setLoop(!1)},i._createElement=function(){var t=this._src._nativeAsset;t instanceof HTMLAudioElement?(this._element||(this._element=document.createElement("audio")),this._element.src=t.src):this._element=new u(t,this)},i.play=function(){var t=this;this._src&&this._src._ensureLoaded((function(){t._state=l.State.PLAYING,t._bindEnded();var e=t._element.play();window.Promise&&e instanceof Promise&&e.catch((function(){})),t._touchToPlay()}))},i._touchToPlay=function(){if(this._src&&this._src.loadMode===a.DOM_AUDIO&&this._element.paused&&c.push({instance:this,offset:0,audio:this._element}),!o){o=!0;var t="ontouchend"in window?"touchend":"mousedown";cc.game.canvas.addEventListener(t,(function(){for(var t;t=c.pop();)t.audio.play(t.offset)}))}},i.destroy=function(){this._element=null},i.pause=function(){if(this.getState()===l.State.PLAYING){var t=this;this._src&&this._src._ensureLoaded((function(){t._unbindEnded(),t._element.pause(),t._state=l.State.PAUSED}))}},i.resume=function(){if(this.getState()===l.State.PAUSED){var t=this;this._src&&this._src._ensureLoaded((function(){t._bindEnded(),t._element.play(),t._state=l.State.PLAYING}))}},i.stop=function(){var t=this;this._src&&this._src._ensureLoaded((function(){t._element.pause(),t._element.currentTime=0;for(var e=0;ethis._buffer.duration)},enumerable:!0,configurable:!0}),Object.defineProperty(t,"loop",{get:function(){return this._loop},set:function(t){return this._currentSource&&(this._currentSource.loop=t),this._loop=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"volume",{get:function(){return this._volume},set:function(t){if(this._volume=t,this._gainObj.gain.setTargetAtTime)try{this._gainObj.gain.setTargetAtTime(t,this._context.currentTime,n)}catch(e){this._gainObj.gain.setTargetAtTime(t,this._context.currentTime,.01)}else this._gainObj.gain.value=t;s.os===s.OS_IOS&&!this.paused&&this._currentSource&&(this._currentSource.onended=null,this.pause(),this.play())},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTime",{get:function(){return this.paused?this.playedLength:(this.playedLength=this._context.currentTime-this._startTime,this.playedLength%=this._buffer.duration,this.playedLength)},set:function(t){return this.paused?this.playedLength=t:(this.pause(),this.playedLength=t,this.play()),t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"duration",{get:function(){return this._buffer.duration},enumerable:!0,configurable:!0})})(u.prototype),e.exports=cc._Audio=l}),{"../core/assets/CCAudioClip":59,"../core/event/event-target":134,"../core/platform/CCSys":170}],21:[(function(t,e){"use strict";var i=t("./CCAudio"),n=t("../core/assets/CCAudioClip"),r=cc.js,s=0,a=r.createMap(!0),o={},c=[],l=function(t){t._shouldRecycleOnEnded&&(t._finishCallback=null,t.off("ended"),t.off("stop"),t.src=null,c.includes(t)||(c.length<32?c.push(t):t.destroy()),t._shouldRecycleOnEnded=!1)},u=function(t){var e=s++,n=o[t];if(n||(n=o[t]=[]),d._maxAudioInstance<=n.length){var r=n.shift();h(r).stop()}var u=c.pop()||new i,f=function(){if(h(this.id)){delete a[this.id];var t=n.indexOf(this.id);cc.js.array.fastRemoveAt(n,t)}l(this)};return u.on("ended",(function(){this._finishCallback&&this._finishCallback(),this.getLoop()||f.call(this)}),u),u.on("stop",f,u),u.id=e,a[e]=u,n.push(e),u},h=function(t){return a[t]},f=function(t){return void 0===t?t=1:"string"==typeof t&&(t=Number.parseFloat(t)),t},d={AudioState:i.State,_maxAudioInstance:24,_id2audio:a,play:function(t,e,i){if(!(t instanceof n))return cc.error("Wrong type of AudioClip.");var r=t.nativeUrl,s=u(r);return s.src=t,t._ensureLoaded(),s._shouldRecycleOnEnded=!0,s.setLoop(e||!1),i=f(i),s.setVolume(i),s.play(),s.id},setLoop:function(t,e){var i=h(t);i&&i.setLoop&&i.setLoop(e)},isLoop:function(t){var e=h(t);return!(!e||!e.getLoop)&&e.getLoop()},setVolume:function(t,e){var i=h(t);i&&i.setVolume(e)},getVolume:function(t){var e=h(t);return e?e.getVolume():1},setCurrentTime:function(t,e){var i=h(t);return!!i&&(i.setCurrentTime(e),!0)},getCurrentTime:function(t){var e=h(t);return e?e.getCurrentTime():0},getDuration:function(t){var e=h(t);return e?e.getDuration():0},getState:function(t){var e=h(t);return e?e.getState():this.AudioState.ERROR},setFinishCallback:function(t,e){var i=h(t);i&&(i._finishCallback=e)},pause:function(t){var e=h(t);return!!e&&(e.pause(),!0)},_pauseIDCache:[],pauseAll:function(){for(var t in a){var e=a[t];e.getState()===i.State.PLAYING&&(this._pauseIDCache.push(t),e.pause())}},resume:function(t){var e=h(t);e&&e.resume()},resumeAll:function(){for(var t=0;t0;){var n=i.pop(),r=a[n];r&&(r.stop(),delete a[n])}},uncacheAll:function(){var t;for(var e in this.stopAll(),a)(t=a[e])&&t.destroy();for(;t=c.pop();)t.destroy();a=r.createMap(!0),o={}},_breakCache:null,_break:function(){for(var t in this._breakCache=[],a){var e=a[t];e.getState()===i.State.PLAYING&&(this._breakCache.push(t),e.pause())}},_restore:function(){if(this._breakCache){for(;this._breakCache.length>0;){var t=this._breakCache.pop(),e=h(t);e&&e.resume&&e.resume()}this._breakCache=null}},_music:{id:-1,loop:!1,volume:1},_effect:{volume:1,pauseCache:[]},playMusic:function(t,e){var i=this._music;return this.stop(i.id),i.id=this.play(t,e,i.volume),i.loop=e,i.id},stopMusic:function(){this.stop(this._music.id)},pauseMusic:function(){return this.pause(this._music.id),this._music.id},resumeMusic:function(){return this.resume(this._music.id),this._music.id},getMusicVolume:function(){return this._music.volume},setMusicVolume:function(t){t=f(t);var e=this._music;return e.volume=t,this.setVolume(e.id,e.volume),e.volume},isMusicPlaying:function(){return this.getState(this._music.id)===this.AudioState.PLAYING},playEffect:function(t,e){return this.play(t,e||!1,this._effect.volume)},setEffectsVolume:function(t){t=f(t);var e=this._music.id;for(var i in this._effect.volume=t,a){var n=a[i];n&&n.id!==e&&d.setVolume(i,t)}},getEffectsVolume:function(){return this._effect.volume},pauseEffect:function(t){return this.pause(t)},pauseAllEffects:function(){var t=this._music.id,e=this._effect;for(var i in e.pauseCache.length=0,a){var n=a[i];n&&n.id!==t&&n.getState()===this.AudioState.PLAYING&&(e.pauseCache.push(i),n.pause())}},resumeEffect:function(t){this.resume(t)},resumeAllEffects:function(){for(var t=this._effect.pauseCache,e=0;eu.ERROR){var e=function(t){if(cc.game.canvas){if(!i){var e=document.createElement("Div");e.setAttribute("id","logInfoDiv"),e.setAttribute("width","200"),e.setAttribute("height",cc.game.canvas.height);var n=e.style;n.zIndex="99999",n.position="absolute",n.top=n.left="0",(i=document.createElement("textarea")).setAttribute("rows","20"),i.setAttribute("cols","30"),i.setAttribute("disabled","true");var r=i.style;r.backgroundColor="transparent",r.borderBottom="1px solid #cccccc",r.borderTopWidth=r.borderLeftWidth=r.borderRightWidth="0px",r.borderTopStyle=r.borderLeftStyle=r.borderRightStyle="none",r.padding="0px",r.margin=0,e.appendChild(i),cc.game.canvas.parentNode.appendChild(e)}i.value=i.value+t+"\r\n",i.scrollTop=i.scrollHeight}};cc.error=function(){e("ERROR : "+cc.js.formatStr.apply(null,arguments))},cc.assert=function(t,i){!t&&i&&(i=cc.js.formatStr.apply(null,cc.js.shiftArguments.apply(null,arguments)),e("ASSERT: "+i))},t!==u.ERROR_FOR_WEB_PAGE&&(cc.warn=function(){e("WARN : "+cc.js.formatStr.apply(null,arguments))}),t===u.INFO_FOR_WEB_PAGE&&(cc.log=function(){e(cc.js.formatStr.apply(null,arguments))})}else console&&console.log.apply&&(console.error||(console.error=console.log),console.warn||(console.warn=console.log),console.error.bind?cc.error=console.error.bind(console):cc.error=function(){return console.error.apply(console,arguments)},cc.assert=function(t,e){if(!t)throw e&&(e=cc.js.formatStr.apply(null,cc.js.shiftArguments.apply(null,arguments))),new Error(e)});t!==u.ERROR&&(console.warn.bind?cc.warn=console.warn.bind(console):cc.warn=function(){return console.warn.apply(console,arguments)}),t===u.INFO&&(console.log.bind?cc.log=console.log.bind(console):cc.log=function(){return console.log.apply(console,arguments)})}},getError:s("ERROR"),isDisplayStats:function(){return!!cc.profiler&&cc.profiler.isShowingStats()},setDisplayStats:function(t){cc.profiler&&cc.game.renderType!==cc.game.RENDER_TYPE_CANVAS&&(t?cc.profiler.showStats():cc.profiler.hideStats(),cc.game.config.showFPS=!!t)}}}),{"../../DebugInfos":void 0,"./platform/utils":185}],23:[(function(t,e){"use strict";var i=t("./event/event-target"),n=t("./component-scheduler"),r=t("./node-activator"),s=t("./platform/CCObject"),a=t("./CCGame"),o=t("./renderer"),c=t("./event-manager"),l=t("./CCScheduler");cc.Director=function(){i.call(this),this._paused=!1,this._purgeDirectorInNextLoop=!1,this._winSizeInPoints=null,this._scene=null,this._loadingScene="",this._totalFrames=0,this._lastUpdate=0,this._deltaTime=0,this._startTime=0,this._maxParticleDeltaTime=0,this._scheduler=null,this._compScheduler=null,this._nodeActivator=null,this._actionManager=null;var t=this;a.on(a.EVENT_SHOW,(function(){t._lastUpdate=performance.now()})),a.once(a.EVENT_ENGINE_INITED,this.init,this)},cc.Director.prototype={constructor:cc.Director,init:function(){return this._totalFrames=0,this._lastUpdate=performance.now(),this._startTime=this._lastUpdate,this._paused=!1,this._purgeDirectorInNextLoop=!1,this._winSizeInPoints=cc.size(0,0),this._scheduler=new l,cc.ActionManager?(this._actionManager=new cc.ActionManager,this._scheduler.scheduleUpdate(this._actionManager,l.PRIORITY_SYSTEM,!1)):this._actionManager=null,this.sharedInit(),!0},sharedInit:function(){this._compScheduler=new n,this._nodeActivator=new r,c&&c.setEnabled(!0),cc.AnimationManager?(this._animationManager=new cc.AnimationManager,this._scheduler.scheduleUpdate(this._animationManager,l.PRIORITY_SYSTEM,!1)):this._animationManager=null,cc.CollisionManager?(this._collisionManager=new cc.CollisionManager,this._scheduler.scheduleUpdate(this._collisionManager,l.PRIORITY_SYSTEM,!1)):this._collisionManager=null,cc.PhysicsManager?(this._physicsManager=new cc.PhysicsManager,this._scheduler.scheduleUpdate(this._physicsManager,l.PRIORITY_SYSTEM,!1)):this._physicsManager=null,cc.Physics3DManager,this._physics3DManager=null,cc._widgetManager&&cc._widgetManager.init(this)},calculateDeltaTime:function(t){t||(t=performance.now()),this._deltaTime=t>this._lastUpdate?(t-this._lastUpdate)/1e3:0,this._lastUpdate=t},convertToGL:function(t){var e=a.container,i=cc.view,n=e.getBoundingClientRect(),r=n.left+window.pageXOffset-e.clientLeft,s=n.top+window.pageYOffset-e.clientTop,o=i._devicePixelRatio*(t.x-r),c=i._devicePixelRatio*(s+n.height-t.y);return i._isRotated?cc.v2(i._viewportRect.width-c,o):cc.v2(o,c)},convertToUI:function(t){var e=a.container,i=cc.view,n=e.getBoundingClientRect(),r=n.left+window.pageXOffset-e.clientLeft,s=n.top+window.pageYOffset-e.clientTop,o=cc.v2(0,0);return i._isRotated?(o.x=r+t.y/i._devicePixelRatio,o.y=s+n.height-(i._viewportRect.width-t.x)/i._devicePixelRatio):(o.x=r+t.x*i._devicePixelRatio,o.y=s+n.height-t.y*i._devicePixelRatio),o},end:function(){this._purgeDirectorInNextLoop=!0},getWinSize:function(){return cc.size(cc.winSize)},getWinSizeInPixels:function(){return cc.size(cc.winSize)},pause:function(){this._paused||(this._paused=!0)},purgeCachedData:function(){cc.assetManager.releaseAll()},purgeDirector:function(){this._scheduler.unscheduleAll(),this._compScheduler.unscheduleAll(),this._nodeActivator.reset(),c&&c.setEnabled(!1),cc.isValid(this._scene)&&this._scene.destroy(),this._scene=null,cc.renderer.clear(),cc.assetManager.builtins.clear(),cc.game.pause(),cc.assetManager.releaseAll()},reset:function(){this.purgeDirector(),c&&c.setEnabled(!0),this._actionManager&&this._scheduler.scheduleUpdate(this._actionManager,cc.Scheduler.PRIORITY_SYSTEM,!1),this._animationManager&&this._scheduler.scheduleUpdate(this._animationManager,cc.Scheduler.PRIORITY_SYSTEM,!1),this._collisionManager&&this._scheduler.scheduleUpdate(this._collisionManager,cc.Scheduler.PRIORITY_SYSTEM,!1),this._physicsManager&&this._scheduler.scheduleUpdate(this._physicsManager,cc.Scheduler.PRIORITY_SYSTEM,!1),cc.game.resume()},runSceneImmediate:function(t,e,i){cc.assertID(t instanceof cc.Scene||t instanceof cc.SceneAsset,1216),t instanceof cc.SceneAsset&&(t=t.scene),t._load();for(var n=Object.keys(a._persistRootNodes).map((function(t){return a._persistRootNodes[t]})),r=0;r2||e<0)&&(t.renderMode=0),"boolean"!=typeof t.registerSystemEvent&&(t.registerSystemEvent=!0),t.showFPS=1!==e&&!!t.showFPS,this.collisionMatrix=t.collisionMatrix||[],this.groupList=t.groupList||[],n._resetDebugSetting(t.debugMode),this.config=t,this._configLoaded=!0},_determineRenderType:function(){var t=this.config,e=parseInt(t.renderMode)||0;this.renderType=this.RENDER_TYPE_CANVAS;var i=!1;if(0===e?cc.sys.capabilities.opengl?(this.renderType=this.RENDER_TYPE_WEBGL,i=!0):cc.sys.capabilities.canvas&&(this.renderType=this.RENDER_TYPE_CANVAS,i=!0):1===e&&cc.sys.capabilities.canvas?(this.renderType=this.RENDER_TYPE_CANVAS,i=!0):2===e&&cc.sys.capabilities.opengl&&(this.renderType=this.RENDER_TYPE_WEBGL,i=!0),!i)throw new Error(n.getError(3820,e))},_initRenderer:function(){if(!this._rendererInitialized){var t,e,i,n,a=this.config.id,o=a instanceof HTMLElement?a:document.querySelector(a)||document.querySelector("#"+a);if("CANVAS"===o.tagName?(t=o.width,e=o.height,this.canvas=i=o,this.container=n=document.createElement("DIV"),i.parentNode&&i.parentNode.insertBefore(n,i)):("DIV"!==o.tagName&&cc.warnID(3819),t=o.clientWidth,e=o.clientHeight,this.canvas=i=document.createElement("CANVAS"),this.container=n=document.createElement("DIV"),o.appendChild(n)),n.setAttribute("id","Cocos2dGameContainer"),n.appendChild(i),this.frame=n.parentNode===document.body?document.documentElement:n.parentNode,(function(t){(" "+t.className+" ").indexOf(" gameCanvas ")>-1||(t.className&&(t.className+=" "),t.className+="gameCanvas")})(i),i.setAttribute("width",t||480),i.setAttribute("height",e||320),i.setAttribute("tabindex",99),this._determineRenderType(),this.renderType===this.RENDER_TYPE_WEBGL){var c={stencil:!0,antialias:cc.macro.ENABLE_WEBGL_ANTIALIAS,alpha:cc.macro.ENABLE_TRANSPARENT_CANVAS};r.initWebGL(i,c),this._renderContext=r.device._gl,!cc.macro.CLEANUP_IMAGE_CACHE&&s&&(s.enabled=!0)}this._renderContext||(this.renderType=this.RENDER_TYPE_CANVAS,r.initCanvas(i),this._renderContext=r.device._ctx),this.canvas.oncontextmenu=function(){if(!cc._isContextMenuEnable)return!1},this._rendererInitialized=!0}},_initEvents:function(){var t,e=window;this.config.registerSystemEvent&&cc.internal.inputManager.registerSystemEvent(this.canvas),void 0!==document.hidden?t="hidden":void 0!==document.mozHidden?t="mozHidden":void 0!==document.msHidden?t="msHidden":void 0!==document.webkitHidden&&(t="webkitHidden");var i=!1;function n(){i||(i=!0,a.emit(a.EVENT_HIDE))}function r(t,e,n,r,s){i&&(i=!1,a.emit(a.EVENT_SHOW,t,e,n,r,s))}if(t)for(var s=["visibilitychange","mozvisibilitychange","msvisibilitychange","webkitvisibilitychange","qbrowserVisibilityChange"],o=0;o-1&&(e.onfocus=r),"onpageshow"in window&&"onpagehide"in window&&(e.addEventListener("pagehide",n),e.addEventListener("pageshow",r),document.addEventListener("pagehide",n),document.addEventListener("pageshow",r)),this.on(a.EVENT_HIDE,(function(){a.pause()})),this.on(a.EVENT_SHOW,(function(){a.resume()}))}};i.call(a),cc.js.addon(a,i.prototype),cc.game=e.exports=a}),{"../audio/CCAudioEngine":21,"../core/renderer/utils/dynamic-atlas/manager":195,"./CCDebug":22,"./event/event-target":134,"./renderer/index.js":192}],25:[(function(t,e){"use strict";var i=t("./value-types"),n=t("./value-types/utils"),r=t("./utils/base-node"),s=t("./utils/prefab-helper"),a=t("./utils/trans-pool").NodeMemPool,o=t("./utils/affine-transform"),c=t("./event-manager"),l=t("./platform/CCMacro"),u=t("./platform/js"),h=(t("./event/event"),t("./event/event-target")),f=t("./renderer/render-flow"),d=cc.Object.Flags.Destroying,_=Math.PI/180,p=!!cc.ActionManager,v=function(){},g=new i.Vec3,m=new i.Quat,y=new i.Vec3,T=new i.Vec3,E=new i.Quat,A=new i.Quat,C=new i.Vec3,x=new i.Vec3,b=new i.Vec3,S=new i.Vec3,w=new i.Vec3,R=new i.Quat,M=new i.Quat,I=new i.Vec3,O=new i.Quat,D=new i.Vec3,L=new i.Quat,P=new i.Vec3,N=new i.Vec3,F=new i.Quat,B=new i.Quat,k=(new i.Quat,cc.mat4()),V=new i.Vec3,U=new u.Pool;U.get=function(){return this._get()||[]};var z=cc.Enum({DEBUG:31}),H=cc.Enum({POSITION:1,SCALE:2,ROTATION:4,SKEW:8,TRS:7,RS:6,TRSS:15,PHYSICS_POSITION:16,PHYSICS_SCALE:32,PHYSICS_ROTATION:64,PHYSICS_TRS:112,PHYSICS_RS:96,ALL_POSITION:17,ALL_SCALE:34,ALL_ROTATION:68,ALL_TRS:119,ALL:65535}),W=cc.Enum({TOUCH_START:"touchstart",TOUCH_MOVE:"touchmove",TOUCH_END:"touchend",TOUCH_CANCEL:"touchcancel",MOUSE_DOWN:"mousedown",MOUSE_MOVE:"mousemove",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_UP:"mouseup",MOUSE_WHEEL:"mousewheel",POSITION_CHANGED:"position-changed",ROTATION_CHANGED:"rotation-changed",SCALE_CHANGED:"scale-changed",SIZE_CHANGED:"size-changed",ANCHOR_CHANGED:"anchor-changed",COLOR_CHANGED:"color-changed",CHILD_ADDED:"child-added",CHILD_REMOVED:"child-removed",CHILD_REORDER:"child-reorder",GROUP_CHANGED:"group-changed",SIBLING_ORDER_CHANGED:"sibling-order-changed"}),G=[W.TOUCH_START,W.TOUCH_MOVE,W.TOUCH_END,W.TOUCH_CANCEL],Y=[W.MOUSE_DOWN,W.MOUSE_ENTER,W.MOUSE_MOVE,W.MOUSE_LEAVE,W.MOUSE_UP,W.MOUSE_WHEEL],X=!0,j=function(t){if(0!==t){X&&cc.warn("`cc.Node.skewX/Y` is deprecated since v2.2.1, please use 3D node instead.",""),X=!1}},q=null,Z=function(t,e){var i=t.getLocation(),n=this.owner;return!!n._hitTest(i,this)&&(e.type=W.TOUCH_START,e.touch=t,e.bubbles=!0,n.dispatchEvent(e),!0)},K=function(t,e){var i=this.owner;e.type=W.TOUCH_MOVE,e.touch=t,e.bubbles=!0,i.dispatchEvent(e)},Q=function(t,e){var i=t.getLocation(),n=this.owner;n._hitTest(i,this)?e.type=W.TOUCH_END:e.type=W.TOUCH_CANCEL,e.touch=t,e.bubbles=!0,n.dispatchEvent(e)},J=function(t,e){t.getLocation();var i=this.owner;e.type=W.TOUCH_CANCEL,e.touch=t,e.bubbles=!0,i.dispatchEvent(e)},$=function(t){var e=t.getLocation(),i=this.owner;i._hitTest(e,this)&&(t.type=W.MOUSE_DOWN,t.bubbles=!0,i.dispatchEvent(t))},tt=function(t){var e=t.getLocation(),i=this.owner;if(i._hitTest(e,this))this._previousIn||(q&&q._mouseListener&&(t.type=W.MOUSE_LEAVE,q.dispatchEvent(t),q._mouseListener._previousIn=!1),q=this.owner,t.type=W.MOUSE_ENTER,i.dispatchEvent(t),this._previousIn=!0),t.type=W.MOUSE_MOVE,t.bubbles=!0,i.dispatchEvent(t);else{if(!this._previousIn)return;t.type=W.MOUSE_LEAVE,i.dispatchEvent(t),this._previousIn=!1,q=null}t.stopPropagation()},et=function(t){var e=t.getLocation(),i=this.owner;i._hitTest(e,this)&&(t.type=W.MOUSE_UP,t.bubbles=!0,i.dispatchEvent(t),t.stopPropagation())},it=function(t){var e=t.getLocation(),i=this.owner;i._hitTest(e,this)&&(t.type=W.MOUSE_WHEEL,t.bubbles=!0,i.dispatchEvent(t),t.stopPropagation())};function nt(t,e){if(e){for(var i=0,n=null,r=t;r&&cc.Node.isNode(r);r=r._parent,++i)if(r.getComponent(e)){var s={index:i,node:r};n?n.push(s):n=[s]}return n}return null}function rt(t,e){if(!(t._objFlags&d)){if(t._bubblingListeners)for(var i=0,n=e.length;i=0;--r)if((n=i[r])._capturingListeners&&(e.currentTarget=n,n._capturingListeners.emit(e.type,e,i),e._propagationStopped))return void(i.length=0);if(i.length=0,e.eventPhase=2,e.currentTarget=t,t._capturingListeners&&t._capturingListeners.emit(e.type,e),!e._propagationImmediateStopped&&t._bubblingListeners&&t._bubblingListeners.emit(e.type,e),!e._propagationStopped&&e.bubbles)for(t._getBubblingTargets(e.type,i),e.eventPhase=3,r=0;r>16},set:function(t){t>l.MAX_ZINDEX?(cc.warnID(1636),t=l.MAX_ZINDEX):t0&&(this._renderFlag|=f.FLAG_CHILDREN)},_checkListenerMask:function(){if(this._touchListener){var t=this._touchListener.mask=nt(this,cc.Mask);this._mouseListener&&(this._mouseListener.mask=t)}else this._mouseListener&&(this._mouseListener.mask=nt(this,cc.Mask))},_checknSetupSysEvent:function(t){var e=!1,i=!1;return-1!==G.indexOf(t)?(this._touchListener||(this._touchListener=cc.EventListener.create({event:cc.EventListener.TOUCH_ONE_BY_ONE,swallowTouches:!0,owner:this,mask:nt(this,cc.Mask),onTouchBegan:Z,onTouchMoved:K,onTouchEnded:Q,onTouchCancelled:J}),c.addListener(this._touchListener,this),e=!0),i=!0):-1!==Y.indexOf(t)&&(this._mouseListener||(this._mouseListener=cc.EventListener.create({event:cc.EventListener.MOUSE,_previousIn:!1,owner:this,mask:nt(this,cc.Mask),onMouseDown:$,onMouseMove:tt,onMouseUp:et,onMouseScroll:it}),c.addListener(this._mouseListener,this),e=!0),i=!0),e&&!this._activeInHierarchy&&cc.director.getScheduler().schedule((function(){this._activeInHierarchy||c.pauseTarget(this)}),this,0,0,0,!1),i},on:function(t,e,i,n){if(this._checknSetupSysEvent(t))return this._onDispatch(t,e,i,n);switch(t){case W.POSITION_CHANGED:this._eventMask|=1;break;case W.SCALE_CHANGED:this._eventMask|=2;break;case W.ROTATION_CHANGED:this._eventMask|=4;break;case W.SIZE_CHANGED:this._eventMask|=8;break;case W.ANCHOR_CHANGED:this._eventMask|=16;break;case W.COLOR_CHANGED:this._eventMask|=32}return this._bubblingListeners||(this._bubblingListeners=new h),this._bubblingListeners.on(t,e,i)},once:function(t,e,i,n){var r=this,s=null;(s=this._checknSetupSysEvent(t)&&n?this._capturingListeners=this._capturingListeners||new h:this._bubblingListeners=this._bubblingListeners||new h).once(t,e,i),s.once(t,(function(){r.off(t,e,i)}),void 0)},_onDispatch:function(t,e,i,n){if("boolean"==typeof i?(n=i,i=void 0):n=!!n,e){var r=null;return(r=n?this._capturingListeners=this._capturingListeners||new h:this._bubblingListeners=this._bubblingListeners||new h).hasEventListener(t,e,i)||(r.on(t,e,i),i&&i.__eventTargets&&i.__eventTargets.push(this)),e}cc.errorID(6800)},off:function(t,e,i,n){var r=-1!==G.indexOf(t),s=!r&&-1!==Y.indexOf(t);if(r||s)this._offDispatch(t,e,i,n),r?this._touchListener&&!rt(this,G)&&(c.removeListener(this._touchListener),this._touchListener=null):s&&this._mouseListener&&!rt(this,Y)&&(c.removeListener(this._mouseListener),this._mouseListener=null);else if(this._bubblingListeners&&(this._bubblingListeners.off(t,e,i),!this._bubblingListeners.hasEventListener(t)))switch(t){case W.POSITION_CHANGED:this._eventMask&=-2;break;case W.SCALE_CHANGED:this._eventMask&=-3;break;case W.ROTATION_CHANGED:this._eventMask&=-5;break;case W.SIZE_CHANGED:this._eventMask&=-9;break;case W.ANCHOR_CHANGED:this._eventMask&=-17;break;case W.COLOR_CHANGED:this._eventMask&=-33}},_offDispatch:function(t,e,i,n){if("boolean"==typeof i?(n=i,i=void 0):n=!!n,e){var r=n?this._capturingListeners:this._bubblingListeners;r&&(r.off(t,e,i),i&&i.__eventTargets&&u.array.fastRemove(i.__eventTargets,this))}else this._capturingListeners&&this._capturingListeners.removeAll(t),this._bubblingListeners&&this._bubblingListeners.removeAll(t)},targetOff:function(t){var e=this._bubblingListeners;e&&(e.targetOff(t),1&this._eventMask&&!e.hasEventListener(W.POSITION_CHANGED)&&(this._eventMask&=-2),2&this._eventMask&&!e.hasEventListener(W.SCALE_CHANGED)&&(this._eventMask&=-3),4&this._eventMask&&!e.hasEventListener(W.ROTATION_CHANGED)&&(this._eventMask&=-5),8&this._eventMask&&!e.hasEventListener(W.SIZE_CHANGED)&&(this._eventMask&=-9),16&this._eventMask&&!e.hasEventListener(W.ANCHOR_CHANGED)&&(this._eventMask&=-17),32&this._eventMask&&!e.hasEventListener(W.COLOR_CHANGED)&&(this._eventMask&=-33)),this._capturingListeners&&this._capturingListeners.targetOff(t),t&&t.__eventTargets&&u.array.fastRemove(t.__eventTargets,this),this._touchListener&&!rt(this,G)&&(c.removeListener(this._touchListener),this._touchListener=null),this._mouseListener&&!rt(this,Y)&&(c.removeListener(this._mouseListener),this._mouseListener=null)},hasEventListener:function(t){var e=!1;return this._bubblingListeners&&(e=this._bubblingListeners.hasEventListener(t)),!e&&this._capturingListeners&&(e=this._capturingListeners.hasEventListener(t)),e},emit:function(t,e,i,n,r,s){this._bubblingListeners&&this._bubblingListeners.emit(t,e,i,n,r,s)},dispatchEvent:function(t){var e=U.get();st(this,t,e),U.put(e)},pauseSystemEvents:function(t){c.pauseTarget(this,t)},resumeSystemEvents:function(t){c.resumeTarget(this,t)},_hitTest:function(t,e){var n=this._contentSize.width,r=this._contentSize.height,s=P,a=N,o=cc.Camera.findCamera(this);if(o?o.getScreenToWorldPoint(t,s):s.set(t),this._updateWorldMatrix(),!i.Mat4.invert(k,this._worldMatrix))return!1;i.Vec2.transformMat4(a,s,k),a.x+=this._anchorPoint.x*n,a.y+=this._anchorPoint.y*r;var c=!1;if(a.x>=0&&a.y>=0&&a.x<=n&&a.y<=r&&(c=!0,e&&e.mask))for(var l=e.mask,u=this,h=l?l.length:0,f=0,d=0;u&&d_.index){l.length=d;break}}return c},_getCapturingTargets:function(t,e){for(var i=this.parent;i;)i._capturingListeners&&i._capturingListeners.hasEventListener(t)&&e.push(i),i=i.parent},_getBubblingTargets:function(t,e){for(var i=this.parent;i;)i._bubblingListeners&&i._bubblingListeners.hasEventListener(t)&&e.push(i),i=i.parent},runAction:p?function(t){if(this.active){cc.assertID(t,1618);var e=cc.director.getActionManager();return e._suppressDeprecation||(e._suppressDeprecation=!0,cc.warnID(1639)),e.addAction(t,this,!1),t}}:v,pauseAllActions:p?function(){cc.director.getActionManager().pauseTarget(this)}:v,resumeAllActions:p?function(){cc.director.getActionManager().resumeTarget(this)}:v,stopAllActions:p?function(){cc.director.getActionManager().removeAllActionsFromTarget(this)}:v,stopAction:p?function(t){cc.director.getActionManager().removeAction(t)}:v,stopActionByTag:p?function(t){t!==cc.Action.TAG_INVALID?cc.director.getActionManager().removeActionByTag(t,this):cc.logID(1612)}:v,getActionByTag:p?function(t){return t===cc.Action.TAG_INVALID?(cc.logID(1613),null):cc.director.getActionManager().getActionByTag(t,this)}:function(){return null},getNumberOfRunningActions:p?function(){return cc.director.getActionManager().getNumberOfRunningActionsInTarget(this)}:function(){return 0},getPosition:function(t){return t=t||new i.Vec3,i.Trs.toPosition(t,this._trs)},setPosition:function(t,e,i){var n;void 0===e?(n=t.x,e=t.y,i=t.z):n=t;var r=this._trs;void 0===i&&(i=r[2]),(r[0]!==n||r[1]!==e||r[2]!==i)&&(r[0]=n,r[1]=e,r[2]=i,this.setLocalDirty(H.ALL_POSITION),this._renderFlag|=f.FLAG_WORLD_TRANSFORM,1&this._eventMask&&this.emit(W.POSITION_CHANGED))},getScale:function(t){return void 0!==t?i.Trs.toScale(t,this._trs):(cc.errorID(1400,"cc.Node.getScale","cc.Node.scale or cc.Node.getScale(cc.Vec3)"),this._trs[7])},setScale:function(t,e,i){var n;t&&"number"!=typeof t?(n=t.x,e=t.y,i=t.z):void 0!==t&&void 0===e?(n=t,e=t,i=t):n=t;var r=this._trs;void 0===i&&(i=r[9]),r[7]===n&&r[8]===e&&r[9]===i||(r[7]=n,r[8]=e,r[9]=i,this.setLocalDirty(H.ALL_SCALE),this._renderFlag|=f.FLAG_TRANSFORM,2&this._eventMask&&this.emit(W.SCALE_CHANGED))},getRotation:function(t){return t instanceof i.Quat?i.Trs.toRotation(t,this._trs):-this.angle},setRotation:function(t,e,i,n){if("number"==typeof t&&void 0===e)this.angle=-t;else{var r=t;void 0===e&&(r=t.x,e=t.y,i=t.z,n=t.w);var s=this._trs;s[3]===r&&s[4]===e&&s[5]===i&&s[6]===n||(s[3]=r,s[4]=e,s[5]=i,s[6]=n,this.setLocalDirty(H.ALL_ROTATION),4&this._eventMask&&this.emit(W.ROTATION_CHANGED))}},getContentSize:function(){return cc.size(this._contentSize.width,this._contentSize.height)},setContentSize:function(t,e){var i=this._contentSize;if(void 0===e){if((0,n.approx)(t.width,i.width)&&(0,n.approx)(t.height,i.height))return;i.width=t.width,i.height=t.height}else{if((0,n.approx)(t,i.width)&&(0,n.approx)(e,i.height))return;i.width=t,i.height=e}8&this._eventMask&&this.emit(W.SIZE_CHANGED)},getAnchorPoint:function(){return cc.v2(this._anchorPoint)},setAnchorPoint:function(t,e){var i=this._anchorPoint;if(void 0===e){if(t.x===i.x&&t.y===i.y)return;i.x=t.x,i.y=t.y}else{if(t===i.x&&e===i.y)return;i.x=t,i.y=e}this.setLocalDirty(H.ALL_POSITION),16&this._eventMask&&this.emit(W.ANCHOR_CHANGED)},_invTransformPoint:function(t,e){this._parent?this._parent._invTransformPoint(t,e):i.Vec3.copy(t,e);var n=this._trs;return i.Trs.toPosition(y,n),i.Vec3.sub(t,t,y),i.Trs.toRotation(E,n),i.Quat.conjugate(A,E),i.Vec3.transformQuat(t,t,A),i.Trs.toScale(y,n),i.Vec3.inverseSafe(T,y),i.Vec3.mul(t,t,T),t},getWorldPosition:function(t){i.Trs.toPosition(t,this._trs);for(var e,n=this._parent;n;)e=n._trs,i.Trs.toScale(g,e),i.Vec3.mul(t,t,g),i.Trs.toRotation(m,e),i.Vec3.transformQuat(t,t,m),i.Trs.toPosition(g,e),i.Vec3.add(t,t,g),n=n._parent;return t},setWorldPosition:function(t){var e=this._trs;this._parent?this._parent._invTransformPoint(C,t):i.Vec3.copy(C,t),i.Trs.fromPosition(e,C),this.setLocalDirty(H.ALL_POSITION),1&this._eventMask&&this.emit(W.POSITION_CHANGED)},getWorldRotation:function(t){i.Trs.toRotation(F,this._trs),i.Quat.copy(t,F);for(var e=this._parent;e;)i.Trs.toRotation(F,e._trs),i.Quat.mul(t,F,t),e=e._parent;return t},setWorldRotation:function(t){this._parent?(this._parent.getWorldRotation(B),i.Quat.conjugate(B,B),i.Quat.mul(B,B,t)):i.Quat.copy(B,t),i.Trs.fromRotation(this._trs,B),this.setLocalDirty(H.ALL_ROTATION)},getWorldScale:function(t){i.Trs.toScale(x,this._trs),i.Vec3.copy(t,x);for(var e=this._parent;e;)i.Trs.toScale(x,e._trs),i.Vec3.mul(t,t,x),e=e._parent;return t},setWorldScale:function(t){this._parent?(this._parent.getWorldScale(b),i.Vec3.div(b,t,b)):i.Vec3.copy(b,t),i.Trs.fromScale(this._trs,b),this.setLocalDirty(H.ALL_SCALE)},getWorldRT:function(t){var e=S,n=R,r=this._trs;i.Trs.toPosition(e,r),i.Trs.toRotation(n,r);for(var s=this._parent;s;)r=s._trs,i.Trs.toScale(w,r),i.Vec3.mul(e,e,w),i.Trs.toRotation(M,r),i.Vec3.transformQuat(e,e,M),i.Trs.toPosition(w,r),i.Vec3.add(e,e,w),i.Quat.mul(n,M,n),s=s._parent;return i.Mat4.fromRT(t,n,e),t},lookAt:function(t,e){this.getWorldPosition(I),i.Vec3.sub(I,I,t),i.Vec3.normalize(I,I),i.Quat.fromViewUp(O,I,e),this.setWorldRotation(O)},_updateLocalMatrix:lt,_calculWorldMatrix:function(){this._localMatDirty&H.TRSS&&this._updateLocalMatrix();var t=this._parent;t?this._mulMat(this._worldMatrix,t._worldMatrix,this._matrix):i.Mat4.copy(this._worldMatrix,this._matrix),this._worldMatDirty=!1},_mulMat:ft,_updateWorldMatrix:function(){if(this._parent&&this._parent._updateWorldMatrix(),this._worldMatDirty){this._calculWorldMatrix();for(var t=this._children,e=0,i=t.length;e1){for(var n,r,s=1,a=t.length;s0&&(r=t[o-1])._localZOrder>n._localZOrder;o--)t[o]=r;t[o]=n}this.emit(W.CHILD_REORDER,this)}cc.director.__fastOff(cc.Director.EVENT_AFTER_UPDATE,this.sortAllChildren,this)}},_delaySort:function(){this._reorderChildDirty||(this._reorderChildDirty=!0,cc.director.__fastOn(cc.Director.EVENT_AFTER_UPDATE,this.sortAllChildren,this))},_restoreProperties:!1,onRestore:!1},pt=cc.Class(_t),vt=pt.prototype;u.getset(vt,"position",vt.getPosition,vt.setPosition,!1,!0),cc.Node=e.exports=pt}),{"./event-manager":132,"./event/event":135,"./event/event-target":134,"./platform/CCMacro":166,"./platform/js":182,"./renderer/render-flow":193,"./utils/affine-transform":227,"./utils/base-node":228,"./utils/prefab-helper":238,"./utils/trans-pool":244,"./value-types":250,"./value-types/utils":257}],26:[(function(t,e){"use strict";var i=t("./CCNode"),n=t("./renderer/render-flow"),r=(cc.Object.Flags.HideInHierarchy,i._LocalDirtyFlag),s=cc.Class({name:"cc.PrivateNode",extends:i,properties:{x:{get:function(){return this._originPos.x},set:function(t){var e=this._originPos;t!==e.x&&(e.x=t,this._posDirty(!0))},override:!0},y:{get:function(){return this._originPos.y},set:function(t){var e=this._originPos;t!==e.y&&(e.y=t,this._posDirty(!0))},override:!0},zIndex:{get:function(){return cc.macro.MIN_ZINDEX},set:function(){},override:!0},showInEditor:{default:!1,editorOnly:!0,override:!0}},ctor:function(){this._localZOrder=cc.macro.MIN_ZINDEX<<16,this._originPos=cc.v2()},_posDirty:function(t){this.setLocalDirty(r.POSITION),this._renderFlag|=n.FLAG_TRANSFORM,!0===t&&1&this._eventMask&&this.emit(i.EventType.POSITION_CHANGED)},_updateLocalMatrix:function(){if(this._localMatDirty){var t=this.parent;t&&(this._trs[0]=this._originPos.x-(t._anchorPoint.x-.5)*t._contentSize.width,this._trs[1]=this._originPos.y-(t._anchorPoint.y-.5)*t._contentSize.height),this._super()}},getPosition:function(){return new cc.Vec2(this._originPos)},setPosition:function(t,e){void 0===e&&(e=(t=t.x).y);var i=this._originPos;i.x===t&&i.y===e||(i.x=t,i.y=e,this._posDirty(!0))},setParent:function(t){var e=this._parent;this._super(t),e!==t&&(e&&e.off(i.EventType.ANCHOR_CHANGED,this._posDirty,this),t&&t.on(i.EventType.ANCHOR_CHANGED,this._posDirty,this))},_updateOrderOfArrival:function(){}}),a=s.prototype;cc.js.getset(a,"parent",a.getParent,a.setParent),cc.js.getset(a,"position",a.getPosition,a.setPosition),cc.PrivateNode=e.exports=s}),{"./CCNode":25,"./renderer/render-flow":193}],27:[(function(t,e){"use strict";cc.Scene=cc.Class({name:"cc.Scene",extends:t("./CCNode"),properties:{_is3DNode:{default:!0,override:!0},autoReleaseAssets:!1},ctor:function(){this._anchorPoint.x=0,this._anchorPoint.y=0,this._activeInHierarchy=!1,this._inited=!cc.game._isCloning,this.dependAssets=null},destroy:function(){if(cc.Object.prototype.destroy.call(this))for(var t=this._children,e=0;e0,this._repeat=r,this._runForever=this._repeat===cc.macro.REPEAT_FOREVER,!0},h.getInterval=function(){return this._interval},h.setInterval=function(t){this._interval=t},h.update=function(t){-1===this._elapsed?(this._elapsed=0,this._timesExecuted=0):(this._elapsed+=t,this._runForever&&!this._useDelay?this._elapsed>=this._interval&&(this.trigger(),this._elapsed=0):(this._useDelay?this._elapsed>=this._delay&&(this.trigger(),this._elapsed-=this._delay,this._timesExecuted+=1,this._useDelay=!1):this._elapsed>=this._interval&&(this.trigger(),this._elapsed=0,this._timesExecuted+=1),this._callback&&!this._runForever&&this._timesExecuted>this._repeat&&this.cancel()))},h.getCallback=function(){return this._callback},h.trigger=function(){this._target&&this._callback&&(this._lock=!0,this._callback.call(this._target,this._elapsed),this._lock=!1)},h.cancel=function(){this._scheduler.unschedule(this._callback,this._target)};var f=[];u.get=function(){return f.pop()||new u},u.put=function(t){f.length<20&&!t._lock&&(t._scheduler=t._target=t._callback=null,f.push(t))},cc.Scheduler=function(){this._timeScale=1,this._updatesNegList=[],this._updates0List=[],this._updatesPosList=[],this._hashForUpdates=i.createMap(!0),this._hashForTimers=i.createMap(!0),this._currentTarget=null,this._currentTargetSalvaged=!1,this._updateHashLocked=!1,this._arrayForTimers=[]},cc.Scheduler.prototype={constructor:cc.Scheduler,_removeHashElement:function(t){delete this._hashForTimers[t.target._id];for(var e=this._arrayForTimers,i=0,n=e.length;i=s&&n.timerIndex--,void(0===r.length&&(this._currentTarget===n?this._currentTargetSalvaged=!0:this._removeHashElement(n)))}}},unscheduleUpdate:function(t){if(t){var e=t._id;e||(t.__instanceId?(cc.warnID(1513),e=t._id=t.__instanceId):cc.errorID(1510));var i=this._hashForUpdates[e];i&&(this._updateHashLocked?i.entry.markedForDeletion=!0:this._removeUpdateFromHash(i.entry))}},unscheduleAllForTarget:function(t){if(t){var e=t._id;e||(t.__instanceId?(cc.warnID(1513),e=t._id=t.__instanceId):cc.errorID(1510));var i=this._hashForTimers[e];if(i){var n=i.timers;n.indexOf(i.currentTimer)>-1&&!i.currentTimerSalvaged&&(i.currentTimerSalvaged=!0);for(var r=0,s=n.length;r=0;e--)i=r[e],this.unscheduleAllForTarget(i.target);var s=0;if(t<0)for(e=0;e=t&&this.unscheduleUpdate(n.target),s==this._updatesNegList.length&&e++;if(t<=0)for(e=0;e=t&&this.unscheduleUpdate(n.target),s==this._updatesPosList.length&&e++},isScheduled:function(t,e){cc.assertID(t,1508),cc.assertID(e,1509);var i=e._id;i||(e.__instanceId?(cc.warnID(1513),i=e._id=e.__instanceId):cc.errorID(1510));var n=this._hashForTimers[i];if(!n)return!1;if(null==n.timers)return!1;for(var r=n.timers,s=0;s=t&&(r.paused=!0,s.push(r.target));if(t<=0)for(i=0;i=t&&(r.paused=!0,s.push(r.target));return s},resumeTargets:function(t){if(t)for(var e=0;e1?n:n[0]}},cc.AssetManager=P,cc.assetManager=new P,Object.defineProperty(cc,"resources",{get:function(){return D.get(L.RESOURCES)}}),e.exports=cc.assetManager}),{"./builtins":30,"./bundle":31,"./cache":32,"./depend-util":34,"./downloader":41,"./factory":42,"./fetch":43,"./helper":45,"./load":47,"./pack-manager":48,"./parser":49,"./pipeline":50,"./preprocess":51,"./releaseManager":52,"./request-item":53,"./shared":54,"./task":55,"./urlTransformer":56,"./utilities":57}],30:[(function(t,e){"use strict";var i=t("./cache"),n=t("./releaseManager"),r=t("./shared").BuiltinBundleName,s={_assets:new i({material:new i,effect:new i}),_loadBuiltins:function(t,e){var i=t+"s",n=this._assets.get(t);return cc.assetManager.internal.loadDir(i,null,null,(function(t,i){if(t)cc.error(t.message,t.stack);else for(var r=0;re.length)||47===t.charCodeAt(e.length)}return this.paths.forEach((function(n,r){if(r.startsWith(t)&&a(r,t)||!t)for(var o=0,c=n.length;o1){var d=Object.create(null);n.forEach((function(t){d[t._uuid]=t})),r={isCompleted:u,_map:d}}else r=n[0]}i&&i(e,r)}))},getXMLHttpRequest:function(){return new XMLHttpRequest},_parseLoadResArgs:i.parseLoadResArgs,getItem:function(t){return cc.assetManager.assets.has(t)?{content:cc.assetManager.assets.get(t)}:null},loadRes:function(t,e,i,n){var r=this._parseLoadResArgs(e,i,n),s=(e=r.type,r.onProgress),a=r.onComplete,o=cc.path.extname(t);o&&(t=t.slice(0,-o.length)),cc.resources.load(t,e,s,a)},loadResArray:function(t,e,i,n){var r=this._parseLoadResArgs(e,i,n),s=(e=r.type,r.onProgress),a=r.onComplete;t.forEach((function(e,i){var n=cc.path.extname(e);n&&(t[i]=e.slice(0,-n.length))})),cc.resources.load(t,e,s,a)},loadResDir:function(t,e,i,n){var r=this._parseLoadResArgs(e,i,n),s=(e=r.type,r.onProgress),a=r.onComplete;cc.resources.loadDir(t,e,s,(function(i,n){var r=[];i||(r=cc.resources.getDirWithPath(t,e).map((function(t){return t.path}))),a&&a(i,n,r)}))},getRes:function(t,e){return cc.assetManager.assets.has(t)?cc.assetManager.assets.get(t):cc.resources.get(t,e)},getResCount:function(){return cc.assetManager.assets.count},getDependsRecursively:function(t){return t?n.getDepsRecursively("string"==typeof t?t:t._uuid).concat([t._uuid]):[]},get assetLoader(){},get md5Pipe(){return h},get downloader(){return cc.assetManager.downloader},get loader(){return cc.assetManager.parser},addDownloadHandlers:function(t){var e=Object.create(null);for(var i in t){var n=t[i];e["."+i]=function(t,e,i){n({url:t},i)}}cc.assetManager.downloader.register(e)},addLoadHandlers:function(t){var e=Object.create(null);for(var i in t){var n=t[i];e["."+i]=function(t,e,i){n({content:t},i)}}cc.assetManager.parser.register(e)},flowInDeps:function(){},release:function(t){if(Array.isArray(t))for(var e=0;eN._maxInterval?N._maxInterval:cc.director._deltaTime;t-O>1e3*e&&(I=0,O=t)},P=function t(e,i){for(D=!1,L();w.length>0&&M0&&M0&&(s(P,m,y),D=!0),a.apply(this,arguments)}))}L(),M0){var i=n.create({name:t.name+" dependencies",input:c,progress:d,options:s,onProgress:t.onProgress,onError:n.prototype.recycle,onComplete:function(n){n||(t.output.push.apply(t.output,this.output),i.recycle()),r&&h(t),e(n)}});u.async(i)}else r&&h(t),e()}))}}),{"./pack-manager":48,"./shared":54,"./task":55,"./utilities":57}],44:[(function(t,e){"use strict";var i,n=t("../utils/text-utils"),r=null,s="BES bswy:->@123\u4e01\u3041\u1101",a=Object.create(null),o=-1,c=[],l=3e3,u=(i=void 0,function(){if(void 0===i)if(window.FontFace){var t=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent),e=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);i=t?parseInt(t[1],10)>42:!e}else i=!1;return i});function h(){for(var t=!0,e=Date.now(),i=c.length-1;i>=0;i--){var a=c[i],u=a.fontFamilyName;if(e-a.startTime>l)cc.warnID(4933,u),a.onComplete(null,u),c.splice(i,1);else{var h=a.refWidth,f="40px "+u;r.font=f,h!==n.safeMeasureText(r,s,f)?(c.splice(i,1),a.onComplete(null,u)):t=!1}}t&&(clearInterval(o),o=-1)}var f={loadFont:function(t,e,i){var d=f._getFontFamily(t);if(a[d])return i(null,d);if(!r){var _=document.createElement("canvas");_.width=100,_.height=100,r=_.getContext("2d")}var p="40px "+d;r.font=p;var v=n.safeMeasureText(r,s,p),g=document.createElement("style");g.type="text/css";var m="";isNaN(d-0)?m+="@font-face { font-family:"+d+"; src:":m+="@font-face { font-family:'"+d+"'; src:",m+="url('"+t+"');",g.textContent=m+"}",document.body.appendChild(g);var y,T,E,A,C,x,b=document.createElement("div"),S=b.style;if(S.fontFamily=d,b.innerHTML=".",S.position="absolute",S.left="-100px",S.top="-100px",document.body.appendChild(b),u())y=Date.now(),T=d,E=i,A=new Promise(function(t,e){(function i(){Date.now()-y>=l?e():document.fonts.load("40px "+T).then((function(e){e.length>=1?t():setTimeout(i,100)}),(function(){e()}))})()}),C=null,x=new Promise(function(t,e){C=setTimeout(e,l)}),Promise.race([x,A]).then((function(){C&&(clearTimeout(C),C=null),E(null,T)}),(function(){cc.warnID(4933,T),E(null,T)}));else{var w={fontFamilyName:d,refWidth:v,onComplete:i,startTime:Date.now()};c.push(w),-1===o&&(o=setInterval(h,100))}a[d]=g},_getFontFamily:function(t){var e=t.lastIndexOf(".ttf");if(-1===e)return t;var i,n=t.lastIndexOf("/");return-1!==(i=-1===n?t.substring(0,e)+"_LABEL":t.substring(n+1,e)+"_LABEL").indexOf(" ")&&(i='"'+i+'"'),i}};e.exports=f}),{"../utils/text-utils":242}],45:[(function(t,e){"use strict";var i,n=t("./shared").bundles,r={decodeUuid:t("../utils/decode-uuid"),getUuidFromURL:(i=/.*[/\\][0-9a-fA-F]{2}[/\\]([0-9a-fA-F-]{8,})/,function(t){var e=t.match(i);return e?e[1]:""}),getUrlWithUuid:function(t,e){(e=e||Object.create(null)).__isNative__=e.isNative,e.ext=e.nativeExt;var i=n.find((function(e){return e.getAssetInfo(t)}));return i&&(e.bundle=i.name),cc.assetManager._transform(t,e)},isScene:function(t){return t&&(t.constructor===cc.SceneAsset||t instanceof cc.Scene)},normalize:function(t){return t&&(46===t.charCodeAt(0)&&47===t.charCodeAt(1)?t=t.slice(2):47===t.charCodeAt(0)&&(t=t.slice(1))),t}};e.exports=r}),{"../utils/decode-uuid":231,"./shared":54}],46:[(function(t){"use strict";t("./deprecated"),t("./CCAssetManager")}),{"./CCAssetManager":29,"./deprecated":35}],47:[(function(t,e){"use strict";var i=t("./pack-manager"),n=t("./pipeline"),r=t("./parser"),s=t("./utilities"),a=s.getDepends,o=s.cache,c=s.gatherAsset,l=s.setProperties,u=s.forEach,h=s.clear,f=s.checkCircleReference,d=t("./shared"),_=d.assets,p=d.files,v=d.parsed,g=d.pipeline,m=t("./task"),y=new n("loadOneAsset",[function(t,e){var n=t.output=t.input,r=n.options,s=n.isNative,a=n.uuid,o=n.file,c=r.reload;if(o||!c&&!s&&_.has(a))return e();i.load(n,t.options,(function(t,i){n.file=i,e(t)}))},function(t,e){var i=t.output=t.input,n=t.progress,s=t.options.__exclude__,a=i.id,o=i.file,c=i.options;if(i.isNative)r.parse(a,o,i.ext,c,(function(r,s){if(r)return e(r);i.content=s,n.canInvoke&&t.dispatch("progress",++n.finish,n.total,i),p.remove(a),v.remove(a),e()}));else{var l=i.uuid;if(l in s){var u=s[l],h=u.finish,d=u.content,g=u.err,m=u.callbacks;n.canInvoke&&t.dispatch("progress",++n.finish,n.total,i),h||f(l,l,s)?(d&&d.addRef&&d.addRef(),i.content=d,e(g)):m.push({done:e,item:i})}else if(!c.reload&&_.has(l)){var y=_.get(l);c.__asyncLoadAssets__||!y.__asyncLoadAssets__?(i.content=y.addRef(),n.canInvoke&&t.dispatch("progress",++n.finish,n.total,i),e()):T(t,y,e,!1)}else r.parse(a,o,"import",c,(function(i,n){if(i)return e(i);n._uuid=l,T(t,n,e,!0)}))}}]);function T(t,e,i,n){var r=t.input,s=t.progress,c=r.uuid,u=r.id,h=r.options,f=r.config,d=h.__asyncLoadAssets__,_=h.cacheAsset,y=[];e.addRef&&e.addRef(),a(c,e,Object.create(null),y,!1,d,f),s.canInvoke&&t.dispatch("progress",++s.finish,s.total+=y.length,r);var T=t.options.__exclude__[c]={content:e,finish:!1,callbacks:[{done:i,item:r}]},E=m.create({input:y,options:t.options,onProgress:t.onProgress,onError:m.prototype.recycle,progress:s,onComplete:function(t){if(e.decRef&&e.decRef(!1),e.__asyncLoadAssets__=d,T.finish=!0,T.err=t,!t){for(var i=Array.isArray(E.output)?E.output:[E.output],r=Object.create(null),s=0,a=i.length;sthis.pipes.length))return this.pipes.splice(e,0,t),this;cc.warnID(4921)},append:function(t){if("function"==typeof t)return this.pipes.push(t),this},remove:function(t){if("number"==typeof t)return this.pipes.splice(t,1),this},sync:function(t){var e=this.pipes;if(t instanceof i&&0!==e.length){null!=t.output&&(t.input=t.output,t.output=null),t._isFinish=!1;for(var n=0,r=e.length;n0&&h(t)>0)){r.remove(t._uuid);for(var n=i.getDeps(t._uuid),s=0,a=n.length;s0&&this._ref--,!1!==t&&cc.assetManager._releaseManager.tryRelease(this),this},destroy:function(){return this.loaded=!1,this._super()}}),e.exports=cc.Asset}),{"../platform/CCObject":167}],59:[(function(t,e){"use strict";var i=t("./CCAsset"),n=t("../event/event-target"),r=cc.Enum({WEB_AUDIO:0,DOM_AUDIO:1}),s=cc.Class({name:"cc.AudioClip",extends:i,mixins:[n],ctor:function(){this._loading=!1,this.loaded=!1,this._audio=null},properties:{duration:0,loadMode:{default:r.WEB_AUDIO,type:r},_nativeAsset:{get:function(){return this._audio},set:function(t){t instanceof cc.AudioClip?this._audio=t._nativeAsset:this._audio=t,this._audio&&(this.loaded=!0,this.emit("load"))},override:!0},_nativeDep:{get:function(){return{uuid:this._uuid,audioLoadMode:this.loadMode,ext:cc.path.extname(this._native),__isNative__:!0}},override:!0}},statics:{LoadMode:r,_loadByUrl:function(t,e){var i=cc.assetManager.assets.get(t);i?e(null,i):cc.assetManager.loadRemote(t,(function(t,i){if(t)return e(t);e(null,i)}))}},_ensureLoaded:function(t){if(this.isValid){if(this.loaded)return t&&t();if(t&&this.once("load",t),!this._loading){this._loading=!0;var e=this;cc.assetManager.postLoadNative(this,(function(){e._loading=!1}))}}},destroy:function(){cc.audioEngine.uncache(this),this._super()}});cc.AudioClip=s,e.exports=s}),{"../event/event-target":134,"./CCAsset":58}],60:[(function(t,e){"use strict";var i=function(){this.u=0,this.v=0,this.w=0,this.h=0,this.offsetX=0,this.offsetY=0,this.textureID=0,this.valid=!1,this.xAdvance=0},n=function(t){this._letterDefinitions={},this._texture=t};n.prototype={constructor:n,addLetterDefinitions:function(t,e){this._letterDefinitions[t]=e},cloneLetterDefinition:function(){var t={};for(var e in this._letterDefinitions){var n=new i;cc.js.mixin(n,this._letterDefinitions[e]),t[e]=n}return t},getTexture:function(){return this._texture},getLetter:function(t){return this._letterDefinitions[t]},getLetterDefinitionForChar:function(t){var e=t.charCodeAt(0);return this._letterDefinitions.hasOwnProperty(e)?this._letterDefinitions[e]:null},clear:function(){this._letterDefinitions={}}};var r=cc.Class({name:"cc.BitmapFont",extends:cc.Font,properties:{fntDataStr:{default:""},spriteFrame:{default:null,type:cc.SpriteFrame},fontSize:{default:-1},_fntConfig:null,_fontDefDictionary:null},onLoad:function(){var t=this.spriteFrame;this._fontDefDictionary||(this._fontDefDictionary=new n,t&&(this._fontDefDictionary._texture=t._texture));var e=this._fntConfig;if(e){var r=e.fontDefDictionary;for(var s in r){var a=new i,o=r[s].rect;a.offsetX=r[s].xOffset,a.offsetY=r[s].yOffset,a.w=o.width,a.h=o.height,a.u=o.x,a.v=o.y,a.textureID=0,a.valid=!0,a.xAdvance=r[s].xAdvance,this._fontDefDictionary.addLetterDefinitions(s,a)}}}});cc.BitmapFont=r,cc.BitmapFont.FontLetterDefinition=i,cc.BitmapFont.FontAtlas=n,e.exports=r}),{}],61:[(function(t,e){"use strict";var i=cc.Class({name:"cc.BufferAsset",extends:cc.Asset,ctor:function(){this._buffer=null},properties:{_nativeAsset:{get:function(){return this._buffer},set:function(t){this._buffer=t.buffer||t},override:!0},buffer:function(){return this._buffer}}});cc.BufferAsset=e.exports=i}),{}],62:[(function(t,e){"use strict";var i=cc.Class({name:"cc.Font",extends:cc.Asset});cc.Font=e.exports=i}),{}],63:[(function(t,e){"use strict";var i=cc.Class({name:"cc.JsonAsset",extends:cc.Asset,properties:{json:null}});e.exports=cc.JsonAsset=i}),{}],64:[(function(t,e){"use strict";var i=cc.Class({name:"cc.LabelAtlas",extends:cc.BitmapFont,onLoad:function(){this.spriteFrame?this._fntConfig?this._super():cc.warnID(9101,this.name):cc.warnID(9100,this.name)}});cc.LabelAtlas=i,e.exports=i}),{}],65:[(function(t,e){"use strict";var i=cc.Enum({AUTO:0,SINGLE_INSTANCE:1,MULTI_INSTANCE:2}),n=cc.Class({name:"cc.Prefab",extends:cc.Asset,ctor:function(){this._createFunction=null,this._instantiatedTimes=0},properties:{data:null,optimizationPolicy:i.AUTO,asyncLoadAssets:!1,readonly:{default:!1,editorOnly:!0}},statics:{OptimizationPolicy:i,OptimizationPolicyThreshold:3},createNode:!1,compileCreateFunction:function(){var e=t("../platform/instantiate-jit");this._createFunction=e.compile(this.data)},_doInstantiate:function(t){return this.data._prefab||cc.warnID(3700),this._createFunction||this.compileCreateFunction(),this._createFunction(t)},_instantiate:function(){var t;return this.optimizationPolicy!==i.SINGLE_INSTANCE&&(this.optimizationPolicy===i.MULTI_INSTANCE||this._instantiatedTimes+1>=n.OptimizationPolicyThreshold)?(t=this._doInstantiate(),this.data._instantiate(t)):t=this.data._instantiate(),++this._instantiatedTimes,t},destroy:function(){this.data&&this.data.destroy(),this._super()}});cc.Prefab=e.exports=n,cc.js.obsolete(cc,"cc._Prefab","Prefab")}),{"../platform/instantiate-jit":180}],66:[(function(t,e){"use strict";var i,n=(i=t("../../renderer/gfx"))&&i.__esModule?i:{default:i},r=t("../renderer"),s=t("./CCTexture2D"),a=cc.Enum({RB_FMT_D24S8:n.default.RB_FMT_D24S8,RB_FMT_S8:n.default.RB_FMT_S8,RB_FMT_D16:n.default.RB_FMT_D16}),o=cc.Class({name:"cc.RenderTexture",extends:s,statics:{DepthStencilFormat:a},ctor:function(){this._framebuffer=null},initWithSize:function(t,e,i){this.width=Math.floor(t||cc.visibleRect.width),this.height=Math.floor(e||cc.visibleRect.height),this._resetUnderlyingMipmaps();var s,a={colors:[this._texture]};this._depthStencilBuffer&&this._depthStencilBuffer.destroy(),i&&(s=new n.default.RenderBuffer(r.device,i,t,e),i===n.default.RB_FMT_D24S8?a.depthStencil=s:i===n.default.RB_FMT_S8?a.stencil=s:i===n.default.RB_FMT_D16&&(a.depth=s)),this._depthStencilBuffer=s,this._framebuffer&&this._framebuffer.destroy(),this._framebuffer=new n.default.FrameBuffer(r.device,t,e,a),this._packable=!1,this.loaded=!0,this.emit("load")},updateSize:function(t,e){this.width=Math.floor(t||cc.visibleRect.width),this.height=Math.floor(e||cc.visibleRect.height),this._resetUnderlyingMipmaps();var i=this._depthStencilBuffer;i&&i.update(this.width,this.height),this._framebuffer._width=t,this._framebuffer._height=e},drawTextureAt:function(t,e,i){t._image&&0!==t._image.width&&this._texture.updateSubImage({x:e,y:i,image:t._image,width:t.width,height:t.height,level:0,flipY:!1,premultiplyAlpha:t._premultiplyAlpha})},readPixels:function(t,e,i,n,r){if(!this._framebuffer||!this._texture)return t;e=e||0,i=i||0;var s=n||this.width,a=r||this.height;t=t||new Uint8Array(s*a*4);var o=cc.game._renderContext,c=o.getParameter(o.FRAMEBUFFER_BINDING);return o.bindFramebuffer(o.FRAMEBUFFER,this._framebuffer.getHandle()),o.readPixels(e,i,s,a,o.RGBA,o.UNSIGNED_BYTE,t),o.bindFramebuffer(o.FRAMEBUFFER,c),t},destroy:function(){this._super(),this._framebuffer&&(this._framebuffer.destroy(),this._framebuffer=null)}});cc.RenderTexture=e.exports=o}),{"../../renderer/gfx":277,"../renderer":192,"./CCTexture2D":73}],67:[(function(t,e){"use strict";var i=cc.Class({name:"cc.SceneAsset",extends:cc.Asset,properties:{scene:null,asyncLoadAssets:void 0}});cc.SceneAsset=i,e.exports=i}),{}],68:[(function(){"use strict";var t=cc.Class({name:"cc.Script",extends:cc.Asset});cc._Script=t;var e=cc.Class({name:"cc.JavaScript",extends:t});cc._JavaScript=e;var i=cc.Class({name:"cc.TypeScript",extends:t});cc._TypeScript=i}),{}],69:[(function(t,e){"use strict";var i=cc.Class({name:"cc.SpriteAtlas",extends:cc.Asset,properties:{_spriteFrames:{default:{}}},getTexture:function(){var t=Object.keys(this._spriteFrames);if(t.length>0){var e=this._spriteFrames[t[0]];return e?e.getTexture():null}return null},getSpriteFrame:function(t){var e=this._spriteFrames[t];return e?(e.name||(e.name=t),e):null},getSpriteFrames:function(){var t=[],e=this._spriteFrames;for(var i in e)t.push(this.getSpriteFrame(i));return t}});cc.SpriteAtlas=i,e.exports=i}),{}],70:[(function(t,e){"use strict";var i=t("../event/event-target"),n=[{u:0,v:0},{u:0,v:0},{u:0,v:0},{u:0,v:0}],r=cc.Class({name:"cc.SpriteFrame",extends:t("../assets/CCAsset"),mixins:[i],properties:{_textureSetter:{set:function(t){t&&this._texture!==t&&this._refreshTexture(t)}},insetTop:{get:function(){return this._capInsets[1]},set:function(t){this._capInsets[1]=t,this._texture&&this._calculateSlicedUV()}},insetBottom:{get:function(){return this._capInsets[3]},set:function(t){this._capInsets[3]=t,this._texture&&this._calculateSlicedUV()}},insetLeft:{get:function(){return this._capInsets[0]},set:function(t){this._capInsets[0]=t,this._texture&&this._calculateSlicedUV()}},insetRight:{get:function(){return this._capInsets[2]},set:function(t){this._capInsets[2]=t,this._texture&&this._calculateSlicedUV()}}},ctor:function(){i.call(this);var t=arguments[0],e=arguments[1],n=arguments[2],r=arguments[3],s=arguments[4];this._rect=null,this.uv=[],this._texture=null,this._original=null,this._offset=null,this._originalSize=null,this._rotated=!1,this._flipX=!1,this._flipY=!1,this.vertices=null,this._capInsets=[0,0,0,0],this.uvSliced=[],void 0!==t&&this.setTexture(t,e,n,r,s)},textureLoaded:function(){return this._texture&&this._texture.loaded},onTextureLoaded:function(t,e){return this.textureLoaded()?(t.call(e),!0):(this.once("load",t,e),this.ensureLoadTexture(),!1)},isRotated:function(){return this._rotated},setRotated:function(t){this._rotated=t,this._texture&&this._calculateUV()},isFlipX:function(){return this._flipX},isFlipY:function(){return this._flipY},setFlipX:function(t){this._flipX=t,this._texture&&this._calculateUV()},setFlipY:function(t){this._flipY=t,this._texture&&this._calculateUV()},getRect:function(){return cc.rect(this._rect)},setRect:function(t){this._rect=t,this._texture&&this._calculateUV()},getOriginalSize:function(){return cc.size(this._originalSize)},setOriginalSize:function(t){this._originalSize?(this._originalSize.width=t.width,this._originalSize.height=t.height):this._originalSize=cc.size(t)},getTexture:function(){return this._texture},_textureLoadedCallback:function(){var t=this._texture;if(t){var e=t.width,i=t.height;this._rect?this._checkRect(this._texture):this._rect=cc.rect(0,0,e,i),this._originalSize||this.setOriginalSize(cc.size(e,i)),this._offset||this.setOffset(cc.v2(0,0)),this._calculateUV(),this.emit("load")}},_refreshTexture:function(t){this._texture=t,t.loaded?this._textureLoadedCallback():t.once("load",this._textureLoadedCallback,this)},getOffset:function(){return cc.v2(this._offset)},setOffset:function(t){this._offset=cc.v2(t)},clone:function(){return new r(this._texture,this.getRect(),this._rotated,this.getOffset(),this.getOriginalSize())},setTexture:function(t,e,i,n,r){if(1!==arguments.length||t!==this._texture){if(this._rect=e||null,n?this.setOffset(n):this._offset=null,r?this.setOriginalSize(r):this._originalSize=null,this._rotated=i||!1,"string"!=typeof t)return t instanceof cc.Texture2D&&this._refreshTexture(t),!0;cc.errorID(3401)}},ensureLoadTexture:function(){this._texture&&(this._texture.loaded||(this._refreshTexture(this._texture),cc.assetManager.postLoadNative(this._texture)))},_checkRect:function(t){var e=this._rect,i=e.x,n=e.y;this._rotated?(i+=e.height,n+=e.width):(i+=e.width,n+=e.height),i>t.width&&cc.errorID(3300,t.nativeUrl+"/"+this.name,i,t.width),n>t.height&&cc.errorID(3400,t.nativeUrl+"/"+this.name,n,t.height)},_flipXY:function(t){if(this._flipX){var e=t[0];t[0]=t[1],t[1]=e,e=t[2],t[2]=t[3],t[3]=e}if(this._flipY){var i=t[0];t[0]=t[2],t[2]=i,i=t[1],t[1]=t[3],t[3]=i}},_calculateSlicedUV:function(){var t=this._rect,e=this._texture.width,i=this._texture.height,r=this._capInsets[0],s=this._capInsets[2],a=t.width-r-s,o=this._capInsets[1],c=this._capInsets[3],l=t.height-o-c,u=this.uvSliced;if(u.length=0,this._rotated){n[0].u=t.x/e,n[1].u=(t.x+c)/e,n[2].u=(t.x+c+l)/e,n[3].u=(t.x+t.height)/e,n[3].v=t.y/i,n[2].v=(t.y+r)/i,n[1].v=(t.y+r+a)/i,n[0].v=(t.y+t.width)/i,this._flipXY(n);for(var h=0;h<4;++h)for(var f=n[h],d=0;d<4;++d){var _=n[3-d];u.push({u:f.u,v:_.v})}}else{n[0].u=t.x/e,n[1].u=(t.x+r)/e,n[2].u=(t.x+r+a)/e,n[3].u=(t.x+t.width)/e,n[3].v=t.y/i,n[2].v=(t.y+o)/i,n[1].v=(t.y+o+l)/i,n[0].v=(t.y+t.height)/i,this._flipXY(n);for(var p=0;p<4;++p)for(var v=n[p],g=0;g<4;++g){var m=n[g];u.push({u:m.u,v:v.v})}}},_setDynamicAtlasFrame:function(t){t&&(this._original={_texture:this._texture,_x:this._rect.x,_y:this._rect.y},this._texture=t.texture,this._rect.x=t.x,this._rect.y=t.y,this._calculateUV())},_resetDynamicAtlasFrame:function(){this._original&&(this._rect.x=this._original._x,this._rect.y=this._original._y,this._texture=this._original._texture,this._original=null,this._texture.loaded?this._calculateUV():this.ensureLoadTexture())},_calculateUV:function(){var t=this._rect,e=this._texture,i=this.uv,n=e.width,r=e.height;if(this._rotated){var s=0===n?0:t.x/n,a=0===n?0:(t.x+t.height)/n,o=0===r?0:(t.y+t.width)/r,c=0===r?0:t.y/r;i[0]=s,i[1]=c,i[2]=s,i[3]=o,i[4]=a,i[5]=c,i[6]=a,i[7]=o}else{var l=0===n?0:t.x/n,u=0===n?0:(t.x+t.width)/n,h=0===r?0:(t.y+t.height)/r,f=0===r?0:t.y/r;i[0]=l,i[1]=h,i[2]=u,i[3]=h,i[4]=l,i[5]=f,i[6]=u,i[7]=f}if(this._flipX){var d=i[0];i[0]=i[2],i[2]=d,d=i[1],i[1]=i[3],i[3]=d,d=i[4],i[4]=i[6],i[6]=d,d=i[5],i[5]=i[7],i[7]=d}if(this._flipY){var _=i[0];i[0]=i[4],i[4]=_,_=i[1],i[1]=i[5],i[5]=_,_=i[2],i[2]=i[6],i[6]=_,_=i[3],i[3]=i[7],i[7]=_}var p=this.vertices;if(p){p.nu.length=0,p.nv.length=0;for(var v=0;v0?this._image=t.images[0]:void 0!==t.image&&(this._image=t.image,t.images||(f.length=0,t.images=f),t.images.push(t.image)),this._texture&&this._texture.update(t),this._hashDirty=!0},initWithElement:function(t){if(t)if(this._image=t,t.complete||t instanceof HTMLCanvasElement)this.handleLoadedTexture();else if(cc.sys.capabilities.imageBitmap&&t instanceof ImageBitmap)this._checkImageBitmap(this.handleLoadedTexture.bind(this));else{var e=this;t.addEventListener("load",(function(){e.handleLoadedTexture()})),t.addEventListener("error",(function(t){cc.warnID(3119,t.message)}))}},initWithData:function(t,e,i,n){var r=_();return r.image=t,r.images=[r.image],r.genMipmaps=this._genMipmaps,r.premultiplyAlpha=this._premultiplyAlpha,r.flipY=this._flipY,r.minFilter=h[this._minFilter],r.magFilter=h[this._magFilter],r.wrapS=this._wrapS,r.wrapT=this._wrapT,r.format=this._getGFXPixelFormat(e),r.width=i,r.height=n,this._texture?this._texture.update(r):this._texture=new s.Texture2D(s.device,r),this.width=i,this.height=n,this._updateFormat(),this._checkPackable(),this.loaded=!0,this.emit("load"),!0},getHtmlElementObj:function(){return this._image},destroy:function(){cc.sys.capabilities.imageBitmap&&this._image instanceof ImageBitmap&&this._image.close&&this._image.close(),this._packable&&cc.dynamicAtlasManager&&cc.dynamicAtlasManager.deleteAtlasTexture(this),this._image=null,this._texture&&this._texture.destroy(),this._super()},getPixelFormat:function(){return this._format},hasPremultipliedAlpha:function(){return this._premultiplyAlpha||!1},isAlphaAtlas:function(){return this._isAlphaAtlas},handleLoadedTexture:function(){if(this._image&&this._image.width&&this._image.height){this.width=this._image.width,this.height=this._image.height;var t=_();t.image=this._image,t.images=[t.image],t.width=this.width,t.height=this.height,t.genMipmaps=this._genMipmaps,t.format=this._getGFXPixelFormat(this._format),t.premultiplyAlpha=this._premultiplyAlpha,t.flipY=this._flipY,t.minFilter=h[this._minFilter],t.magFilter=h[this._magFilter],t.wrapS=this._wrapS,t.wrapT=this._wrapT,this._texture?this._texture.update(t):this._texture=new s.Texture2D(s.device,t),this._updateFormat(),this._checkPackable(),this.loaded=!0,this.emit("load"),cc.macro.CLEANUP_IMAGE_CACHE&&this._cleanupImageCache()}},_cleanupImageCache:function(){this._image instanceof HTMLImageElement?this._clearImage():cc.sys.capabilities.imageBitmap&&this._image instanceof ImageBitmap&&this._image.close&&this._image.close()},description:function(){return""},releaseTexture:function(){this._image=null,this._texture&&this._texture.destroy()},setWrapMode:function(t,e){if(this._wrapS!==t||this._wrapT!==e){var i=_();i.wrapS=t,i.wrapT=e,this.update(i)}},setFilters:function(t,e){if(this._minFilter!==t||this._magFilter!==e){var i=_();i.minFilter=t,i.magFilter=e,this.update(i)}},setFlipY:function(t){if(this._flipY!==t){var e=_();e.flipY=t,e.premultiplyAlpha=this._premultiplyAlpha,this.update(e)}},setPremultiplyAlpha:function(t){if(this._premultiplyAlpha!==t){var e=_();e.flipY=this._flipY,e.premultiplyAlpha=t,this.update(e)}},_updateFormat:function(){this._isAlphaAtlas=this._format===c.RGBA_ETC1||this._format===c.RGB_A_PVRTC_4BPPV1||this._format===c.RGB_A_PVRTC_2BPPV1},_checkPackable:function(){var t=cc.dynamicAtlasManager;if(t)if(this._isCompressed())this._packable=!1;else{var e=this.width,i=this.height;!this._image||e>t.maxFrameSize||i>t.maxFrameSize||this._getHash()!==t.Atlas.DEFAULT_HASH?this._packable=!1:this._image&&this._image instanceof HTMLCanvasElement&&(this._packable=!0)}},_getOpts:function(){var t=_();return t.width=this.width,t.height=this.height,t.genMipmaps=this._genMipmaps,t.format=this._format,t.premultiplyAlpha=this._premultiplyAlpha,t.anisotropy=this._anisotropy,t.flipY=this._flipY,t.minFilter=h[this._minFilter],t.magFilter=h[this._magFilter],t.mipFilter=h[this._mipFilter],t.wrapS=this._wrapS,t.wrapT=this._wrapT,t},_getGFXPixelFormat:function(t){return t===c.RGBA_ETC1?t=c.RGB_ETC1:t===c.RGB_A_PVRTC_4BPPV1?t=c.RGB_PVRTC_4BPPV1:t===c.RGB_A_PVRTC_2BPPV1&&(t=c.RGB_PVRTC_2BPPV1),t},_resetUnderlyingMipmaps:function(t){var e=this._getOpts();e.images=t||[null],this._texture?this._texture.update(e):this._texture=new s.Texture2D(s.device,e)},_serialize:!1,_deserialize:function(t){var e=t.split(","),i=e[0];if(i){var n=p._parseExt(i,this._format);if(n.bestExt)this._setRawAsset(n.bestExt),this._format=n.bestFormat;else{if(!n.defaultExt)throw new Error(cc.debug.getError(3121));this._setRawAsset(n.defaultExt),cc.warnID(3120,n.defaultExt,n.defaultExt)}}8===e.length&&(this._minFilter=parseInt(e[1]),this._magFilter=parseInt(e[2]),this._wrapS=parseInt(e[3]),this._wrapT=parseInt(e[4]),this._premultiplyAlpha=49===e[5].charCodeAt(0),this._genMipmaps=49===e[6].charCodeAt(0),this._packable=49===e[7].charCodeAt(0))},_getHash:function(){if(!this._hashDirty)return this._hash;var t=this._genMipmaps?1:0,e=this._premultiplyAlpha?1:0,i=this._flipY?1:0,n=this._minFilter===u.LINEAR?1:2,r=this._magFilter===u.LINEAR?1:2,s=this._wrapS===l.REPEAT?1:this._wrapS===l.CLAMP_TO_EDGE?2:3,a=this._wrapT===l.REPEAT?1:this._wrapT===l.CLAMP_TO_EDGE?2:3,o=this._format;return this._image,this._hash=Number(""+n+r+o+s+a+t+e+i),this._hashDirty=!1,this._hash},_isCompressed:function(){return this._formatc.RGBA32F},_clearImage:function(){this._image.src=""},_checkImageBitmap:function(t){var e=this,i=this._image,n=this._flipY,r=this._premultiplyAlpha;this._flipY!==i.flipY||this._premultiplyAlpha!==i.premultiplyAlpha?createImageBitmap(i,{imageOrientation:n!==i.flipY?"flipY":"none",premultiplyAlpha:r?"premultiply":"none"}).then((function(s){i.close&&i.close(),s.flipY=n,s.premultiplyAlpha=r,e._image=s,t()}),(function(t){cc.error(t.message)})):t()}});cc.Texture2D=e.exports=p}),{"../../renderer/gfx":277,"../assets/CCAsset":58,"../event/event-target":134,"../platform/CCClass":161,"../platform/id-generater":178,"../renderer":192}],74:[(function(t,e){"use strict";var i=t("./CCAsset"),n=t("../event/event-target"),r=cc.Class({name:"cc.VideoClip",extends:i,mixins:[n]});cc.VideoClip=r,e.exports=r}),{"../event/event-target":134,"./CCAsset":58}],75:[(function(t){"use strict";t("./CCAsset"),t("./CCFont"),t("./CCPrefab"),t("./CCAudioClip"),t("./CCVideoClip"),t("./CCScripts"),t("./CCSceneAsset"),t("./CCSpriteFrame"),t("./CCTexture2D"),t("./CCRenderTexture"),t("./CCTTFFont"),t("./CCSpriteAtlas"),t("./CCBitmapFont"),t("./CCLabelAtlas"),t("./CCTextAsset"),t("./CCJsonAsset"),t("./CCBufferAsset"),t("./material")}),{"./CCAsset":58,"./CCAudioClip":59,"./CCBitmapFont":60,"./CCBufferAsset":61,"./CCFont":62,"./CCJsonAsset":63,"./CCLabelAtlas":64,"./CCPrefab":65,"./CCRenderTexture":66,"./CCSceneAsset":67,"./CCScripts":68,"./CCSpriteAtlas":69,"./CCSpriteFrame":70,"./CCTTFFont":71,"./CCTextAsset":72,"./CCTexture2D":73,"./CCVideoClip":74,"./material":82}],76:[(function(t,e){"use strict";var i,n=(i=t("../CCAsset"))&&i.__esModule?i:{default:i},r=t("./effect-parser"),s=cc.Class({name:"cc.EffectAsset",extends:n.default,ctor:function(){this._effect=null},properties:{properties:Object,techniques:[],shaders:[]},onLoad:function(){if(cc.game.renderType!==cc.game.RENDER_TYPE_CANVAS){for(var t=cc.renderer._forward._programLib,e=0;e=i.length)){var n=0,r=i.length;void 0!==e&&(n=e,r=e+1);for(var s=n;s=i.length)){var n=0,r=i.length;void 0!==e&&(n=e,r=e+1);for(var s=n;s=this._techniques.length?cc.warn("Can not switch to technique with index ["+t+"]"):this._technique=this._techniques[t]},c.clear=function(){this._techniques=[]},c.clone=function(){for(var t=[],e=0;ethis.maxSize||(this._clean(t),e[i][r].push(t),this.count++)}},s.clear=function(){this._pool={},this.count=0},s._clean=function(t){t._owner=null},r}(r.default));r.default.register("material",o);var c=o;i.default=c,e.exports=i.default}),{"../../utils/pool":237,"./utils":85}],84:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=o(t("./CCMaterial")),s=o(t("./effect-variant")),a=o(t("./material-pool"));function o(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var i=0;i0},render:function(t){if(!(t=t||cc.director.getScene()))return null;this.node.getWorldMatrix(l),this.beforeDraw(),a.renderCamera(this._camera,t)},_onAlignWithScreen:function(){var t=cc.game.canvas.height/cc.view._scaleY;this._targetTexture&&(t=cc.visibleRect.height);var e=this._fov*cc.macro.RAD;this.node.z=t/(2*Math.tan(e/2)),e=2*Math.atan(Math.tan(e/2)/this.zoomRatio),this._camera.setFov(e),this._camera.setOrthoHeight(t/2/this.zoomRatio),this.node.setRotation(0,0,0,1)},beforeDraw:function(){if(this._camera){if(this._alignWithScreen)this._onAlignWithScreen();else{var t=this._fov*cc.macro.RAD;t=2*Math.atan(Math.tan(t/2)/this.zoomRatio),this._camera.setFov(t),this._camera.setOrthoHeight(this._orthoSize/this.zoomRatio)}this._camera.dirty=!0}}});cc.js.mixin(T.prototype,{getNodeToCameraTransform:function(t){var e=r.identity();return t.getWorldMatrix(u),this.containsNode(t)&&(this.getWorldToCameraMatrix(l),i.Mat4.mul(u,u,l)),r.fromMat4(e,u),e},getCameraToWorldPoint:function(t,e){return this.getScreenToWorldPoint(t,e)},getWorldToCameraPoint:function(t,e){return this.getWorldToScreenPoint(t,e)},getCameraToWorldMatrix:function(t){return this.getScreenToWorldMatrix2D(t)},getWorldToCameraMatrix:function(t){return this.getWorldToScreenMatrix2D(t)}}),e.exports=cc.Camera=T}),{"../../renderer/scene/camera":297,"../CCGame":24,"../geom-utils":142,"../renderer/index":192,"../renderer/render-flow":193,"../utils/affine-transform":227,"../value-types":250}],88:[(function(t,e){"use strict";cc.Collider.Box=cc.Class({properties:{_offset:cc.v2(0,0),_size:cc.size(100,100),offset:{tooltip:!1,get:function(){return this._offset},set:function(t){this._offset=t},type:cc.Vec2},size:{tooltip:!1,get:function(){return this._size},set:function(t){this._size.width=t.width<0?0:t.width,this._size.height=t.height<0?0:t.height},type:cc.Size}},resetInEditor:!1});var i=cc.Class({name:"cc.BoxCollider",extends:cc.Collider,mixins:[cc.Collider.Box],editor:!1});cc.BoxCollider=e.exports=i}),{}],89:[(function(t,e){"use strict";cc.Collider.Circle=cc.Class({properties:{_offset:cc.v2(0,0),_radius:50,offset:{tooltip:!1,get:function(){return this._offset},set:function(t){this._offset=t},type:cc.Vec2},radius:{tooltip:!1,get:function(){return this._radius},set:function(t){this._radius=t<0?0:t}}},resetInEditor:!1});var i=cc.Class({name:"cc.CircleCollider",extends:cc.Collider,mixins:[cc.Collider.Circle],editor:!1});cc.CircleCollider=e.exports=i}),{}],90:[(function(t,e){"use strict";var i=cc.Class({name:"cc.Collider",extends:cc.Component,properties:{editing:{default:!1,serializable:!1,tooltip:!1},tag:{tooltip:!1,default:0,range:[0,1e7],type:cc.Integer}},onDisable:function(){cc.director.getCollisionManager().removeCollider(this)},onEnable:function(){cc.director.getCollisionManager().addCollider(this)}});cc.Collider=e.exports=i}),{}],91:[(function(t,e){"use strict";var i,n=(i=t("../value-types/vec2"))&&i.__esModule?i:{default:i},r=t("./CCContact"),s=r.CollisionType,a=t("../CCNode").EventType,o=new n.default;function c(t,e,i,n,r,s){var a=t.x,o=t.y,c=t.width,l=t.height,u=e.m,h=u[0],f=u[1],d=u[4],_=u[5],p=h*a+d*o+u[12],v=f*a+_*o+u[13],g=h*c,m=f*c,y=d*l,T=_*l;n.x=p,n.y=v,r.x=g+p,r.y=m+v,i.x=y+p,i.y=T+v,s.x=g+y+p,s.y=m+T+v}var l=cc.Class({mixins:[cc.EventTarget],properties:{enabled:!1,enabledDrawBoundingBox:!1},ctor:function(){this._contacts=[],this._colliders=[],this._debugDrawer=null,this._enabledDebugDraw=!1,cc.director._scheduler&&cc.director._scheduler.enableForTarget(this)},update:function(){if(this.enabled){var t,e,i=this._colliders;for(t=0,e=i.length;tw&&(w=O),OR&&(R=D),D=0){e.splice(i,1);for(var n=this._contacts,r=n.length-1;r>=0;r--){var o=n[r];o.collider1!==t&&o.collider2!==t||(o.touching&&this._doCollide(s.CollisionExit,o),n.splice(r,1))}t.node.off(a.GROUP_CHANGED,this.onNodeGroupChanged,this)}else cc.errorID(6600)},onNodeGroupChanged:function(t){for(var e=t.getComponents(cc.Collider),i=0,n=e.length;i0){t.moveTo(s[0].x,s[0].y);for(var a=1;ar!=h>r&&n<(u-c)*(r-l)/(h-l)+c&&(i=!i)}return i}function a(t,e,i,n){var r,s=i.x-e.x,a=i.y-e.y,o=s*s+a*a,c=((t.x-e.x)*s+(t.y-e.y)*a)/o;return r=n?o?c<0?e:c>1?i:cc.v2(e.x+c*s,e.y+c*a):e:cc.v2(e.x+c*s,e.y+c*a),s=t.x-r.x,a=t.y-r.y,Math.sqrt(s*s+a*a)}i.lineLine=n,i.lineRect=function(t,e,i){var r=new cc.Vec2(i.x,i.y),s=new cc.Vec2(i.x,i.yMax),a=new cc.Vec2(i.xMax,i.yMax),o=new cc.Vec2(i.xMax,i.y);return!!(n(t,e,r,s)||n(t,e,s,a)||n(t,e,a,o)||n(t,e,o,r))},i.linePolygon=r,i.rectRect=function(t,e){var i=t.x,n=t.y,r=t.x+t.width,s=t.y+t.height,a=e.x,o=e.y,c=e.x+e.width,l=e.y+e.height;return i<=c&&r>=a&&n<=l&&s>=o},i.rectPolygon=function(t,e){var i,n,a=new cc.Vec2(t.x,t.y),o=new cc.Vec2(t.x,t.yMax),c=new cc.Vec2(t.xMax,t.yMax),l=new cc.Vec2(t.xMax,t.y);if(r(a,o,e))return!0;if(r(o,c,e))return!0;if(r(c,l,e))return!0;if(r(l,a,e))return!0;for(i=0,n=e.length;i>>1;r<=s;a=r+s>>>1){var o=t[a],c=o.constructor._executionOrder;if(c>i)s=a-1;else if(cn)s=a-1;else{if(!(l0&&(t.array.sort(l),this._invoke(t),t.array.length=0),this._invoke(this._zero),this._zero.array.length=0;var e=this._pos;e.array.length>0&&(e.array.sort(l),this._invoke(e),e.array.length=0)}}),h=cc.Class({extends:c,add:function(t){var e=t.constructor._executionOrder;if(0===e)this._zero.array.push(t);else{var i=e<0?this._neg.array:this._pos.array,n=a(i,t);n<0&&i.splice(~n,0,t)}},remove:function(t){var e=t.constructor._executionOrder;if(0===e)this._zero.fastRemove(t);else{var i=e<0?this._neg:this._pos,n=a(i.array,t);n>=0&&i.removeAt(n)}},invoke:function(t){this._neg.array.length>0&&this._invoke(this._neg,t),this._invoke(this._zero,t),this._pos.array.length>0&&this._invoke(this._pos,t)}});function f(t,e,i,n){var r="var a=it.array;for(it.i=0;it.i=0?n.fastRemoveAt(this._deferredComps,e):(!t.start||t._objFlags&r||this.startInvoker.remove(t),t.update&&this.updateInvoker.remove(t),t.lateUpdate&&this.lateUpdateInvoker.remove(t))},enableComp:function(t,e){if(!(t._objFlags&s)){if(t.onEnable){if(e)return void e.add(t);if(t.onEnable(),!t.node._activeInHierarchy)return}this._onEnabled(t)}},disableComp:function(t){t._objFlags&s&&(t.onDisable&&t.onDisable(),this._onDisabled(t))},_scheduleImmediate:function(t){"function"!=typeof t.start||t._objFlags&r||this.startInvoker.add(t),"function"==typeof t.update&&this.updateInvoker.add(t),"function"==typeof t.lateUpdate&&this.lateUpdateInvoker.add(t)},_deferredSchedule:function(){for(var t=this._deferredComps,e=0,i=t.length;e0&&(this._deferredSchedule(),this.startInvoker.invoke())},startPhase:function(){this._updating=!0,this.startInvoker.invoke(),this._startForNewComps()},updatePhase:function(t){this.updateInvoker.invoke(t)},lateUpdatePhase:function(t){this.lateUpdateInvoker.invoke(t),this._updating=!1,this._startForNewComps()}});e.exports=g}),{"./platform/CCClass":161,"./platform/CCObject":167,"./platform/js":182,"./utils/misc":235}],97:[(function(t,e){"use strict";var i=t("../../animation/animation-animator"),n=t("../../animation/animation-clip"),r=t("../event/event-target"),s=t("../platform/js"),a=function(t,e){return t===e},o=cc.Enum({PLAY:"play",STOP:"stop",PAUSE:"pause",RESUME:"resume",LASTFRAME:"lastframe",FINISHED:"finished"}),c=cc.Class({name:"cc.Animation",extends:t("./CCComponent"),mixins:[r],editor:!1,statics:{EventType:o},ctor:function(){cc.EventTarget.call(this),this._animator=null,this._nameToState=s.createMap(!0),this._didInit=!1,this._currentClip=null},properties:{_defaultClip:{default:null,type:n},defaultClip:{type:n,get:function(){return this._defaultClip},set:function(){},tooltip:!1},currentClip:{get:function(){return this._currentClip},set:function(t){this._currentClip=t},type:n,visible:!1},_writableClips:{get:function(){return this._clips},set:function(t){this._didInit=!1,this._clips=t,this._init()},type:[n]},_clips:{default:[],type:[n],tooltip:!1,visible:!0},playOnLoad:{default:!1,tooltip:!1}},start:function(){if(this.playOnLoad&&this._defaultClip&&(!this._animator||!this._animator.isPlaying)){var t=this.getAnimationState(this._defaultClip.name);this._animator.playState(t)}},onEnable:function(){this._animator&&this._animator.resume()},onDisable:function(){this._animator&&this._animator.pause()},onDestroy:function(){this.stop()},getClips:function(){return this._clips},play:function(t,e){var i=this.playAdditive(t,e);return this._animator.stopStatesExcept(i),i},playAdditive:function(t,e){this._init();var i=this.getAnimationState(t||this._defaultClip&&this._defaultClip.name);if(i){this.enabled=!0;var n=this._animator;n.isPlaying&&i.isPlaying?i.isPaused?n.resumeState(i):(n.stopState(i),n.playState(i,e)):n.playState(i,e),this.enabledInHierarchy||n.pause(),this.currentClip=i.clip}return i},stop:function(t){if(this._didInit)if(t){var e=this._nameToState[t];e&&this._animator.stopState(e)}else this._animator.stop()},pause:function(t){if(this._didInit)if(t){var e=this._nameToState[t];e&&this._animator.pauseState(e)}else this.enabled=!1},resume:function(t){if(this._didInit)if(t){var e=this.getAnimationState(t);e&&this._animator.resumeState(e)}else this.enabled=!0},setCurrentTime:function(t,e){if(this._init(),e){var i=this.getAnimationState(e);i&&this._animator.setStateTime(i,t)}else this._animator.setStateTime(t)},getAnimationState:function(t){this._init();var e=this._nameToState[t];return e&&!e.curveLoaded&&this._animator._reloadClip(e),e||null},hasAnimationState:function(t){return this._init(),!!this._nameToState[t]},addClip:function(t,e){if(t){this._init(),cc.js.array.contains(this._clips,t)||this._clips.push(t),e=e||t.name;var i=this._nameToState[e];if(i){if(i.clip===t)return i;var n=this._clips.indexOf(i.clip);-1!==n&&this._clips.splice(n,1)}var r=new cc.AnimationState(t,e);return this._nameToState[e]=r,r}cc.warnID(3900)},removeClip:function(t,e){if(t){var i;for(var n in this._init(),this._nameToState)if(i=this._nameToState[n],a(i.clip,t))break;if(t===this._defaultClip){if(!e)return void cc.warnID(3902);this._defaultClip=null}if(i&&i.isPlaying){if(!e)return void cc.warnID(3903);this.stop(i.name)}this._clips=this._clips.filter((function(e){return!a(e,t)})),i&&delete this._nameToState[i.name]}else cc.warnID(3901)},sample:function(t){if(this._init(),t){var e=this.getAnimationState(t);e&&e.sample()}else this._animator.sample()},on:function(t,e,i,n){this._init();var r=this._EventTargetOn(t,e,i,n);if("lastframe"===t){var s=this._nameToState;for(var a in s)s[a]._lastframeEventOn=!0}return r},off:function(t,e,i,n){if(this._init(),"lastframe"===t){var r=this._nameToState;for(var s in r)r[s]._lastframeEventOn=!1}this._EventTargetOff(t,e,i,n)},_init:function(){this._didInit||(this._didInit=!0,this._animator=new i(this.node,this),this._createStates())},_createStates:function(){this._nameToState=s.createMap(!0);for(var t=null,e=!1,i=0;i0&&(i=this.time/this.duration),i>=1&&(i=1),this.transition===r.COLOR){var n=this._fromColor.lerp(this._toColor,i);this._setTargetColor(n)}else this.transition===r.SCALE&&this._originalScale&&(e.scale=this._fromScale.lerp(this._toScale,i));1===i&&(this._transitionFinished=!0)}},_registerNodeEvent:function(){this.node.on(cc.Node.EventType.TOUCH_START,this._onTouchBegan,this),this.node.on(cc.Node.EventType.TOUCH_MOVE,this._onTouchMove,this),this.node.on(cc.Node.EventType.TOUCH_END,this._onTouchEnded,this),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this._onTouchCancel,this),this.node.on(cc.Node.EventType.MOUSE_ENTER,this._onMouseMoveIn,this),this.node.on(cc.Node.EventType.MOUSE_LEAVE,this._onMouseMoveOut,this)},_unregisterNodeEvent:function(){this.node.off(cc.Node.EventType.TOUCH_START,this._onTouchBegan,this),this.node.off(cc.Node.EventType.TOUCH_MOVE,this._onTouchMove,this),this.node.off(cc.Node.EventType.TOUCH_END,this._onTouchEnded,this),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this._onTouchCancel,this),this.node.off(cc.Node.EventType.MOUSE_ENTER,this._onMouseMoveIn,this),this.node.off(cc.Node.EventType.MOUSE_LEAVE,this._onMouseMoveOut,this)},_registerTargetEvent:function(t){t.on(cc.Node.EventType.SCALE_CHANGED,this._onTargetScaleChanged,this)},_unregisterTargetEvent:function(t){t.off(cc.Node.EventType.SCALE_CHANGED,this._onTargetScaleChanged,this)},_getTargetSprite:function(t){var e=null;return t&&(e=t.getComponent(cc.Sprite)),e},_applyTarget:function(){var t=this._getTarget();this._sprite=this._getTargetSprite(t),this._originalScale||(this._originalScale=cc.Vec2.ZERO),this._originalScale.x=t.scaleX,this._originalScale.y=t.scaleY,this._registerTargetEvent(t)},_onTouchBegan:function(t){this.interactable&&this.enabledInHierarchy&&(this._pressed=!0,this._updateState(),t.stopPropagation())},_onTouchMove:function(t){if(this.interactable&&this.enabledInHierarchy&&this._pressed){var e,i=t.touch,n=this.node._hitTest(i.getLocation()),a=this._getTarget(),o=this._originalScale;this.transition===r.SCALE&&o?n?(this._fromScale.x=o.x,this._fromScale.y=o.y,this._toScale.x=o.x*this.zoomScale,this._toScale.y=o.y*this.zoomScale,this._transitionFinished=!1):(this.time=0,this._transitionFinished=!0,a.setScale(o.x,o.y)):(e=n?s.PRESSED:s.NORMAL,this._applyTransition(e)),t.stopPropagation()}},_onTouchEnded:function(t){this.interactable&&this.enabledInHierarchy&&(this._pressed&&(cc.Component.EventHandler.emitEvents(this.clickEvents,t),this.node.emit("click",this)),this._pressed=!1,this._updateState(),t.stopPropagation())},_onTouchCancel:function(){this.interactable&&this.enabledInHierarchy&&(this._pressed=!1,this._updateState())},_onMouseMoveIn:function(){!this._pressed&&this.interactable&&this.enabledInHierarchy&&(this.transition!==r.SPRITE||this.hoverSprite)&&(this._hovered||(this._hovered=!0,this._updateState()))},_onMouseMoveOut:function(){this._hovered&&(this._hovered=!1,this._updateState())},_updateState:function(){var t=this._getButtonState();this._applyTransition(t),this._updateDisabledState()},_getButtonState:function(){return this.interactable?this._pressed?s.PRESSED:this._hovered?s.HOVER:s.NORMAL:s.DISABLED},_updateColorTransitionImmediately:function(t){var e=this._getStateColor(t);this._setTargetColor(e),this._fromColor=e.clone(),this._toColor=e},_updateColorTransition:function(t){if(t===s.DISABLED)this._updateColorTransitionImmediately(t);else{var e=this._getTarget(),i=this._getStateColor(t);this._fromColor=e.color.clone(),this._toColor=i,this.time=0,this._transitionFinished=!1}},_updateSpriteTransition:function(t){var e=this._getStateSprite(t);this._sprite&&e&&(this._sprite.spriteFrame=e)},_updateScaleTransition:function(t){t===s.PRESSED?this._zoomUp():this._zoomBack()},_zoomUp:function(){this._originalScale&&(this._fromScale.x=this._originalScale.x,this._fromScale.y=this._originalScale.y,this._toScale.x=this._originalScale.x*this.zoomScale,this._toScale.y=this._originalScale.y*this.zoomScale,this.time=0,this._transitionFinished=!1)},_zoomBack:function(){if(this._originalScale){var t=this._getTarget();this._fromScale.x=t.scaleX,this._fromScale.y=t.scaleY,this._toScale.x=this._originalScale.x,this._toScale.y=this._originalScale.y,this.time=0,this._transitionFinished=!1}},_updateTransition:function(t){t===r.COLOR?this._updateColorTransitionImmediately(s.NORMAL):t===r.SPRITE&&this._updateSpriteTransition(s.NORMAL),this._updateState()},_applyTransition:function(t){var e=this.transition;e===r.COLOR?this._updateColorTransition(t):e===r.SPRITE?this._updateSpriteTransition(t):e===r.SCALE&&this._updateScaleTransition(t)},_resizeNodeToTargetNode:!1,_updateDisabledState:function(t){if(this._sprite&&(this.enableAutoGrayEffect||t)){var e=!1;this.transition===r.SPRITE&&this.disabledSprite||(e=this.enableAutoGrayEffect&&!this.interactable),this._switchGrayMaterial(e,this._sprite)}}});cc.Button=e.exports=a}),{"../utils/gray-sprite-state":233,"./CCComponent":102}],101:[(function(t,e){"use strict";var i=t("../camera/CCCamera"),n=t("./CCComponent"),r=cc.Class({name:"cc.Canvas",extends:n,editor:!1,resetInEditor:!1,statics:{instance:null},properties:{_designResolution:cc.size(960,640),designResolution:{get:function(){return cc.size(this._designResolution)},set:function(t){this._designResolution.width=t.width,this._designResolution.height=t.height,this.applySettings()},tooltip:!1},_fitWidth:!1,_fitHeight:!0,fitHeight:{get:function(){return this._fitHeight},set:function(t){this._fitHeight!==t&&(this._fitHeight=t,this.applySettings())},tooltip:!1},fitWidth:{get:function(){return this._fitWidth},set:function(t){this._fitWidth!==t&&(this._fitWidth=t,this.applySettings())},tooltip:!1}},_fitDesignResolution:!1,__preload:function(){if(r.instance)return cc.warnID(6700,this.node.name,r.instance.node.name);r.instance=this,this.applySettings();var t=this.getComponent(cc.Widget);t&&t.updateAlignment()},start:function(){if(!i.main&&cc.game.renderType!==cc.game.RENDER_TYPE_CANVAS){var t=new cc.Node("Main Camera");t.parent=this.node,t.setSiblingIndex(0);var e=t.addComponent(i),n=i.ClearFlags;e.clearFlags=n.COLOR|n.DEPTH|n.STENCIL,e.depth=-1}},onDestroy:function(){r.instance===this&&(r.instance=null)},applySettings:function(){var t,e=cc.ResolutionPolicy;t=this.fitHeight&&this.fitWidth?e.SHOW_ALL:this.fitHeight||this.fitWidth?this.fitWidth?e.FIXED_WIDTH:e.FIXED_HEIGHT:e.NO_BORDER;var i=this._designResolution;cc.view.setDesignResolutionSize(i.width,i.height,t)}});cc.Canvas=e.exports=r}),{"../camera/CCCamera":87,"./CCComponent":102}],102:[(function(t,e){"use strict";var i=t("../platform/CCObject"),n=t("../platform/js"),r=new(t("../platform/id-generater"))("Comp"),s=(i.Flags.IsOnEnableCalled,i.Flags.IsOnLoadCalled),a=!!cc.ActionManager,o=cc.Class({name:"cc.Component",extends:i,ctor:function(){this._id=r.getNewId(),this.__eventTargets=[]},properties:{node:{default:null,visible:!1},name:{get:function(){if(this._name)return this._name;var t=cc.js.getClassName(this),e=t.lastIndexOf(".");return e>=0&&(t=t.slice(e+1)),this.node.name+"<"+t+">"},set:function(t){this._name=t},visible:!1},uuid:{get:function(){return this._id},visible:!1},__scriptAsset:!1,_enabled:!0,enabled:{get:function(){return this._enabled},set:function(t){if(this._enabled!==t&&(this._enabled=t,this.node._activeInHierarchy)){var e=cc.director._compScheduler;t?e.enableComp(this):e.disableComp(this)}},visible:!1,animatable:!0},enabledInHierarchy:{get:function(){return this._enabled&&this.node&&this.node._activeInHierarchy},visible:!1},_isOnLoadCalled:{get:function(){return this._objFlags&s}}},update:null,lateUpdate:null,__preload:null,onLoad:null,start:null,onEnable:null,onDisable:null,onDestroy:null,onFocusInEditor:null,onLostFocusInEditor:null,resetInEditor:null,addComponent:function(t){return this.node.addComponent(t)},getComponent:function(t){return this.node.getComponent(t)},getComponents:function(t){return this.node.getComponents(t)},getComponentInChildren:function(t){return this.node.getComponentInChildren(t)},getComponentsInChildren:function(t){return this.node.getComponentsInChildren(t)},_getLocalBounds:null,onRestore:null,destroy:function(){this._super()&&this._enabled&&this.node._activeInHierarchy&&cc.director._compScheduler.disableComp(this)},_onPreDestroy:function(){a&&cc.director.getActionManager().removeAllActionsFromTarget(this),this.unscheduleAllCallbacks();for(var t=this.__eventTargets,e=t.length-1;e>=0;--e){var i=t[e];i&&i.targetOff(this)}t.length=0,cc.director._nodeActivator.destroyComp(this),this.node._removeComponent(this)},_instantiate:function(t){return t||(t=cc.instantiate._clone(this,this)),t.node=null,t},schedule:function(t,e,i,n){cc.assertID(t,1619),e=e||0,cc.assertID(e>=0,1620),i=isNaN(i)?cc.macro.REPEAT_FOREVER:i,n=n||0;var r=cc.director.getScheduler(),s=r.isTargetPaused(this);r.schedule(t,this,e,i,n,s)},scheduleOnce:function(t,e){this.schedule(t,0,0,e)},unschedule:function(t){t&&cc.director.getScheduler().unschedule(t,this)},unscheduleAllCallbacks:function(){cc.director.getScheduler().unscheduleAllForTarget(this)}});o._requireComponent=null,o._executionOrder=0,n.value(o,"_registerEditorProps",(function(t,e){var i=e.requireComponent;i&&(t._requireComponent=i);var n=e.executionOrder;n&&"number"==typeof n&&(t._executionOrder=n)})),o.prototype.__scriptUuid="",cc.Component=e.exports=o}),{"../platform/CCObject":167,"../platform/id-generater":178,"../platform/js":182}],103:[(function(){"use strict";cc.Component.EventHandler=cc.Class({name:"cc.ClickEvent",properties:{target:{default:null,type:cc.Node},component:"",_componentId:"",_componentName:{get:function(){return this._genCompIdIfNeeded(),this._compId2Name(this._componentId)},set:function(t){this._componentId=this._compName2Id(t)}},handler:{default:""},customEventData:{default:""}},statics:{emitEvents:function(t){var e;if(arguments.length>0)for(var i=0,n=(e=new Array(arguments.length-1)).length;ip&&(p=v),R>=p&&(v=p,p=R,y=C.getAnchorPoint().y),this.horizontalDirection===o.RIGHT_TO_LEFT&&(S=1-C.anchorX),d=d+u*S*w+u*this.spacingX;var M=u*(1-S)*w;if(e){var I=d+M+u*(u>0?this.paddingRight:this.paddingLeft),O=this.horizontalDirection===o.LEFT_TO_RIGHT&&I>(1-c.x)*t,D=this.horizontalDirection===o.RIGHT_TO_LEFT&&I<-c.x*t;(O||D)&&(R>=p?(0===v&&(v=p),_+=v,v=p):(_+=p,v=R,p=0),d=f+u*(h+S*w),g++)}var L=i(C,_,g);t>=w+this.paddingLeft+this.paddingRight&&s&&C.setPosition(cc.v2(d,L));var P,N=1,F=0===p?R:p;this.verticalDirection===a.TOP_TO_BOTTOM?(m=m||this.node._contentSize.height,(P=L+(N=-1)*(F*y+this.paddingBottom))m&&(m=P)),d+=M}}return m},_getVerticalBaseHeight:function(t){var e=0,i=0;if(this.resizeMode===r.CONTAINER){for(var n=0;np&&(p=v),w>=p&&(v=p,p=w,y=C.getAnchorPoint().x),this.verticalDirection===a.TOP_TO_BOTTOM&&(S=1-C.anchorY),d=d+u*S*R+u*this.spacingY;var M=u*(1-S)*R;if(e){var I=d+M+u*(u>0?this.paddingTop:this.paddingBottom),O=this.verticalDirection===a.BOTTOM_TO_TOP&&I>(1-c.y)*t,D=this.verticalDirection===a.TOP_TO_BOTTOM&&I<-c.y*t;(O||D)&&(w>=p?(0===v&&(v=p),_+=v,v=p):(_+=p,v=w,p=0),d=f+u*(h+S*R),g++)}var L=i(C,_,g);t>=R+(this.paddingTop+this.paddingBottom)&&s&&C.setPosition(cc.v2(L,d));var P,N=1,F=0===p?w:p;this.horizontalDirection===o.RIGHT_TO_LEFT?(N=-1,m=m||this.node._contentSize.width,(P=L+N*(F*y+this.paddingLeft))m&&(m=P)),d+=M}}return m},_doLayoutBasic:function(){for(var t=this.node.children,e=null,i=0;i0&&this.node.children.find((function(t){return t.activeInHierarchy}))&&(this._doLayout(),this._layoutDirty=!1)}});cc.Layout=e.exports=c}),{"../CCNode":25,"./CCComponent":102}],106:[(function(t,e){"use strict";var i=a(t("../../renderer/gfx")),n=a(t("../value-types/mat4")),r=a(t("../value-types/vec2")),s=a(t("../assets/material/material-variant"));function a(t){return t&&t.__esModule?t:{default:t}}var o=t("../utils/misc"),c=t("./CCRenderComponent"),l=t("../renderer/render-flow"),u=t("../graphics/graphics"),h=new r.default,f=new n.default,d=[];function _(t,e,i){d.length=0;for(var n=2*Math.PI/i,r=0;r=0&&o.y>=0&&o.x<=s&&o.y<=a;else if(this.type===p.ELLIPSE){var l=s/2,u=a/2,d=o.x-.5*s,_=o.y-.5*a;c=d*d/(l*l)+_*_/(u*u)<1}return this.inverted&&(c=!c),c},markForRender:function(t){var e=l.FLAG_RENDER|l.FLAG_UPDATE_RENDER_DATA|l.FLAG_POST_RENDER;t?(this.node._renderFlag|=e,this.markForValidate()):t||(this.node._renderFlag&=~e)},disableRender:function(){this.node._renderFlag&=~(l.FLAG_RENDER|l.FLAG_UPDATE_RENDER_DATA|l.FLAG_POST_RENDER)}});cc.Mask=e.exports=v}),{"../../renderer/gfx":277,"../assets/material/material-variant":84,"../graphics/graphics":150,"../renderer/render-flow":193,"../utils/misc":235,"../value-types/mat4":252,"../value-types/vec2":259,"./CCRenderComponent":109}],107:[(function(t,e){"use strict";var i=t("../components/CCRenderComponent"),n=t("../../core/utils/blend-func"),r=cc.Class({name:"cc.MotionStreak",extends:i,mixins:[n],editor:!1,ctor:function(){this._points=[]},properties:{preview:{default:!1,editorOnly:!0,notify:!1,animatable:!1},_fadeTime:1,fadeTime:{get:function(){return this._fadeTime},set:function(t){this._fadeTime=t,this.reset()},animatable:!1,tooltip:!1},_minSeg:1,minSeg:{get:function(){return this._minSeg},set:function(t){this._minSeg=t},animatable:!1,tooltip:!1},_stroke:64,stroke:{get:function(){return this._stroke},set:function(t){this._stroke=t},animatable:!1,tooltip:!1},_texture:{default:null,type:cc.Texture2D},texture:{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture=t,this._updateMaterial())},type:cc.Texture2D,animatable:!1,tooltip:!1},_color:cc.Color.WHITE,color:{get:function(){return this._color.clone()},set:function(t){this._color.equals(t)||this._color.set(t)},type:cc.Color,tooltip:!1},_fastMode:!1,fastMode:{get:function(){return this._fastMode},set:function(t){this._fastMode=t},animatable:!1,tooltip:!1}},onEnable:function(){this._super(),this.reset()},_updateMaterial:function(){var t=this.getMaterial(0);t&&t.setProperty("texture",this._texture),n.prototype._updateMaterial.call(this)},onFocusInEditor:!1,onLostFocusInEditor:!1,reset:function(){this._points.length=0,this._assembler&&this._assembler._renderData.clear()},lateUpdate:function(t){this._assembler&&this._assembler.update(this,t)}});cc.MotionStreak=e.exports=r}),{"../../core/utils/blend-func":230,"../components/CCRenderComponent":109}],108:[(function(t,e){"use strict";var i=t("../utils/misc"),n=t("./CCComponent"),r=cc.Enum({HORIZONTAL:0,VERTICAL:1,FILLED:2}),s=cc.Class({name:"cc.ProgressBar",extends:n,editor:!1,_initBarSprite:function(){if(this.barSprite){var t=this.barSprite.node;if(!t)return;var e=this.node.getContentSize(),i=this.node.getAnchorPoint(),n=t.getContentSize();t.parent===this.node&&this.node.setContentSize(n),this.barSprite.fillType===cc.Sprite.FillType.RADIAL&&(this.mode=r.FILLED);var s=t.getContentSize();if(this.mode===r.HORIZONTAL?this.totalLength=s.width:this.mode===r.VERTICAL?this.totalLength=s.height:this.totalLength=this.barSprite.fillRange,t.parent===this.node){var a=-e.width*i.x;t.setPosition(cc.v2(a,0))}}},_updateBarStatus:function(){if(this.barSprite){var t=this.barSprite.node;if(!t)return;var e,n,s,a=t.getAnchorPoint(),o=t.getContentSize(),c=t.getPosition(),l=cc.v2(0,.5),u=i.clamp01(this.progress),h=this.totalLength*u;switch(this.mode){case r.HORIZONTAL:this.reverse&&(l=cc.v2(1,.5)),e=cc.size(h,o.height),n=this.totalLength,s=o.height;break;case r.VERTICAL:l=this.reverse?cc.v2(.5,1):cc.v2(.5,0),e=cc.size(o.width,h),n=o.width,s=this.totalLength}if(this.mode===r.FILLED)this.barSprite.type!==cc.Sprite.Type.FILLED?cc.warn("ProgressBar FILLED mode only works when barSprite's Type is FILLED!"):(this.reverse&&(h*=-1),this.barSprite.fillRange=h);else if(this.barSprite.type!==cc.Sprite.Type.FILLED){var f=l.x-a.x,d=l.y-a.y,_=cc.v2(n*f,s*d);t.setPosition(c.x+_.x,c.y+_.y),t.setAnchorPoint(l),t.setContentSize(e)}else cc.warn("ProgressBar non-FILLED mode only works when barSprite's Type is non-FILLED!")}},properties:{barSprite:{default:null,type:cc.Sprite,tooltip:!1,notify:function(){this._initBarSprite()},animatable:!1},mode:{default:r.HORIZONTAL,type:r,tooltip:!1,notify:function(){if(this.barSprite){var t=this.barSprite.node;if(!t)return;var e=t.getContentSize();this.mode===r.HORIZONTAL?this.totalLength=e.width:this.mode===r.VERTICAL?this.totalLength=e.height:this.mode===r.FILLED&&(this.totalLength=this.barSprite.fillRange)}},animatable:!1},_N$totalLength:1,totalLength:{range:[0,Number.MAX_VALUE],tooltip:!1,get:function(){return this._N$totalLength},set:function(t){this.mode===r.FILLED&&(t=i.clamp01(t)),this._N$totalLength=t,this._updateBarStatus()}},progress:{default:1,type:cc.Float,range:[0,1,.1],slide:!0,tooltip:!1,notify:function(){this._updateBarStatus()}},reverse:{default:!1,tooltip:!1,notify:function(){this.barSprite&&(this.barSprite.fillStart=1-this.barSprite.fillStart),this._updateBarStatus()},animatable:!1}},statics:{Mode:r}});cc.ProgressBar=e.exports=s}),{"../utils/misc":235,"./CCComponent":102}],109:[(function(t,e){"use strict";var i=s(t("../renderer/assembler")),n=s(t("../assets/material/material-variant")),r=t("../value-types");function s(t){return t&&t.__esModule?t:{default:t}}var a=t("./CCComponent"),o=t("../renderer/render-flow"),c=t("../assets/material/CCMaterial"),l=new r.Color,u=cc.Class({name:"RenderComponent",extends:a,editor:!1,properties:{_materials:{default:[],type:c},materials:{get:function(){return this._materials},set:function(t){this._materials=t,this._activateMaterial()},type:[c],displayName:"Materials",animatable:!1}},ctor:function(){this._vertsDirty=!0,this._assembler=null},_resetAssembler:function(){i.default.init(this),this._updateColor(),this.setVertsDirty()},__preload:function(){this._resetAssembler(),this._activateMaterial()},onEnable:function(){this.node._renderComponent&&(this.node._renderComponent.enabled=!1),this.node._renderComponent=this,this.node._renderFlag|=o.FLAG_OPACITY_COLOR,this.setVertsDirty()},onDisable:function(){this.node._renderComponent=null,this.disableRender()},onDestroy:function(){for(var t=this._materials,e=0;e=this._materials.length)return null;var e=this._materials[t];if(!e)return null;var i=n.default.create(e,this);return i!==e&&this.setMaterial(t,i),i},getMaterials:function(){for(var t=this._materials,e=0;e0?n:-n)),i*(e/r)},_calculatePosition:function(t,e,r,s,a,o){var c=t-e;a&&(c+=Math.abs(a));var l=0;c&&(l=s/c,l=i.clamp01(l));var u=(r-o)*l;return this.direction===n.VERTICAL?cc.v2(0,u):cc.v2(u,0)},_updateLength:function(t){if(this.handle){var e=this.handle.node,i=e.getContentSize();e.setAnchorPoint(cc.v2(0,0)),this.direction===n.HORIZONTAL?e.setContentSize(t,i.height):e.setContentSize(i.width,t)}},_processAutoHide:function(t){if(this.enableAutoHide&&!(this._autoHideRemainingTime<=0)&&!this._touching&&(this._autoHideRemainingTime-=t,this._autoHideRemainingTime<=this.autoHideTime)){this._autoHideRemainingTime=Math.max(0,this._autoHideRemainingTime);var e=this._opacity*(this._autoHideRemainingTime/this.autoHideTime);this._setOpacity(e)}},start:function(){this.enableAutoHide&&this._setOpacity(0)},hide:function(){this._autoHideRemainingTime=0,this._setOpacity(0)},show:function(){this._autoHideRemainingTime=this.autoHideTime,this._setOpacity(this._opacity)},update:function(t){this._processAutoHide(t)}});cc.Scrollbar=e.exports=r}),{"../utils/misc":235,"./CCComponent":102}],112:[(function(t,e){"use strict";var i=t("../CCNode").EventType,n=cc.v2(),r=cc.v2(),s=function(){return(new Date).getMilliseconds()},a=cc.Enum({SCROLL_TO_TOP:0,SCROLL_TO_BOTTOM:1,SCROLL_TO_LEFT:2,SCROLL_TO_RIGHT:3,SCROLLING:4,BOUNCE_TOP:5,BOUNCE_BOTTOM:6,BOUNCE_LEFT:7,BOUNCE_RIGHT:8,SCROLL_ENDED:9,TOUCH_UP:10,AUTOSCROLL_ENDED_WITH_THRESHOLD:11,SCROLL_BEGAN:12}),o={"scroll-to-top":a.SCROLL_TO_TOP,"scroll-to-bottom":a.SCROLL_TO_BOTTOM,"scroll-to-left":a.SCROLL_TO_LEFT,"scroll-to-right":a.SCROLL_TO_RIGHT,scrolling:a.SCROLLING,"bounce-bottom":a.BOUNCE_BOTTOM,"bounce-left":a.BOUNCE_LEFT,"bounce-right":a.BOUNCE_RIGHT,"bounce-top":a.BOUNCE_TOP,"scroll-ended":a.SCROLL_ENDED,"touch-up":a.TOUCH_UP,"scroll-ended-with-threshold":a.AUTOSCROLL_ENDED_WITH_THRESHOLD,"scroll-began":a.SCROLL_BEGAN},c=cc.Class({name:"cc.ScrollView",extends:t("./CCViewGroup"),editor:!1,ctor:function(){this._topBoundary=0,this._bottomBoundary=0,this._leftBoundary=0,this._rightBoundary=0,this._touchMoveDisplacements=[],this._touchMoveTimeDeltas=[],this._touchMovePreviousTimestamp=0,this._touchMoved=!1,this._autoScrolling=!1,this._autoScrollAttenuate=!1,this._autoScrollStartPosition=cc.v2(0,0),this._autoScrollTargetDelta=cc.v2(0,0),this._autoScrollTotalTime=0,this._autoScrollAccumulatedTime=0,this._autoScrollCurrentlyOutOfBoundary=!1,this._autoScrollBraking=!1,this._autoScrollBrakingStartPosition=cc.v2(0,0),this._outOfBoundaryAmount=cc.v2(0,0),this._outOfBoundaryAmountDirty=!0,this._stopMouseWheel=!1,this._mouseWheelEventElapsedTime=0,this._isScrollEndedWithThresholdEventFired=!1,this._scrollEventEmitMask=0,this._isBouncing=!1,this._scrolling=!1},properties:{content:{default:void 0,type:cc.Node,tooltip:!1,formerlySerializedAs:"content",notify:function(){this._calculateBoundary()}},horizontal:{default:!0,animatable:!1,tooltip:!1},vertical:{default:!0,animatable:!1,tooltip:!1},inertia:{default:!0,tooltip:!1},brake:{default:.5,type:cc.Float,range:[0,1,.1],tooltip:!1},elastic:{default:!0,animatable:!1,tooltip:!1},bounceDuration:{default:1,range:[0,10],tooltip:!1},horizontalScrollBar:{default:void 0,type:cc.Scrollbar,tooltip:!1,notify:function(){this.horizontalScrollBar&&(this.horizontalScrollBar.setTargetScrollView(this),this._updateScrollBar(0))},animatable:!1},verticalScrollBar:{default:void 0,type:cc.Scrollbar,tooltip:!1,notify:function(){this.verticalScrollBar&&(this.verticalScrollBar.setTargetScrollView(this),this._updateScrollBar(0))},animatable:!1},scrollEvents:{default:[],type:cc.Component.EventHandler,tooltip:!1},cancelInnerEvents:{default:!0,animatable:!1,tooltip:!1},_view:{get:function(){if(this.content)return this.content.parent}}},statics:{EventType:a},scrollToBottom:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,0),applyToHorizontal:!1,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i,!0)},scrollToTop:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,1),applyToHorizontal:!1,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToLeft:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,0),applyToHorizontal:!0,applyToVertical:!1});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToRight:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(1,0),applyToHorizontal:!0,applyToVertical:!1});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToTopLeft:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,1),applyToHorizontal:!0,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToTopRight:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(1,1),applyToHorizontal:!0,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToBottomLeft:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(0,0),applyToHorizontal:!0,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToBottomRight:function(t,e){var i=this._calculateMovePercentDelta({anchor:cc.v2(1,0),applyToHorizontal:!0,applyToVertical:!0});t?this._startAutoScroll(i,t,!1!==e):this._moveContent(i)},scrollToOffset:function(t,e,i){var n=this.getMaxScrollOffset(),r=cc.v2(0,0);0===n.x?r.x=0:r.x=t.x/n.x,0===n.y?r.y=1:r.y=(n.y-t.y)/n.y,this.scrollTo(r,e,i)},getScrollOffset:function(){var t=this._getContentTopBoundary()-this._topBoundary,e=this._getContentLeftBoundary()-this._leftBoundary;return cc.v2(e,t)},getMaxScrollOffset:function(){var t=this._view.getContentSize(),e=this.content.getContentSize(),i=e.width-t.width,n=e.height-t.height;return i=i>=0?i:0,n=n>=0?n:0,cc.v2(i,n)},scrollToPercentHorizontal:function(t,e,i){var n=this._calculateMovePercentDelta({anchor:cc.v2(t,0),applyToHorizontal:!0,applyToVertical:!1});e?this._startAutoScroll(n,e,!1!==i):this._moveContent(n)},scrollTo:function(t,e,i){var n=this._calculateMovePercentDelta({anchor:cc.v2(t),applyToHorizontal:!0,applyToVertical:!0});e?this._startAutoScroll(n,e,!1!==i):this._moveContent(n)},scrollToPercentVertical:function(t,e,i){var n=this._calculateMovePercentDelta({anchor:cc.v2(0,t),applyToHorizontal:!1,applyToVertical:!0});e?this._startAutoScroll(n,e,!1!==i):this._moveContent(n)},stopAutoScroll:function(){this._autoScrolling=!1,this._autoScrollAccumulatedTime=this._autoScrollTotalTime},setContentPosition:function(t){t.fuzzyEquals(this.getContentPosition(),1e-4)||(this.content.setPosition(t),this._outOfBoundaryAmountDirty=!0)},getContentPosition:function(){return this.content.getPosition()},isScrolling:function(){return this._scrolling},isAutoScrolling:function(){return this._autoScrolling},_registerEvent:function(){this.node.on(cc.Node.EventType.TOUCH_START,this._onTouchBegan,this,!0),this.node.on(cc.Node.EventType.TOUCH_MOVE,this._onTouchMoved,this,!0),this.node.on(cc.Node.EventType.TOUCH_END,this._onTouchEnded,this,!0),this.node.on(cc.Node.EventType.TOUCH_CANCEL,this._onTouchCancelled,this,!0),this.node.on(cc.Node.EventType.MOUSE_WHEEL,this._onMouseWheel,this,!0)},_unregisterEvent:function(){this.node.off(cc.Node.EventType.TOUCH_START,this._onTouchBegan,this,!0),this.node.off(cc.Node.EventType.TOUCH_MOVE,this._onTouchMoved,this,!0),this.node.off(cc.Node.EventType.TOUCH_END,this._onTouchEnded,this,!0),this.node.off(cc.Node.EventType.TOUCH_CANCEL,this._onTouchCancelled,this,!0),this.node.off(cc.Node.EventType.MOUSE_WHEEL,this._onMouseWheel,this,!0)},_onMouseWheel:function(t,e){if(this.enabledInHierarchy&&!this.hasNestedViewGroup(t,e)){var i=cc.v2(0,0),n=-.1;cc.sys.os===cc.sys.OS_WINDOWS&&cc.sys.browserType===cc.sys.BROWSER_TYPE_FIREFOX&&(n=-.1/3),this.vertical?i=cc.v2(0,t.getScrollY()*n):this.horizontal&&(i=cc.v2(t.getScrollY()*n,0)),this._mouseWheelEventElapsedTime=0,this._processDeltaMove(i),this._stopMouseWheel||(this._handlePressLogic(),this.schedule(this._checkMouseWheel,1/60),this._stopMouseWheel=!0),this._stopPropagationIfTargetIsMe(t)}},_checkMouseWheel:function(t){if(!this._getHowMuchOutOfBoundary().fuzzyEquals(cc.v2(0,0),1e-4))return this._processInertiaScroll(),this.unschedule(this._checkMouseWheel),this._dispatchEvent("scroll-ended"),void(this._stopMouseWheel=!1);this._mouseWheelEventElapsedTime+=t,this._mouseWheelEventElapsedTime>.1&&(this._onScrollBarTouchEnded(),this.unschedule(this._checkMouseWheel),this._dispatchEvent("scroll-ended"),this._stopMouseWheel=!1)},_calculateMovePercentDelta:function(t){var e=t.anchor,i=t.applyToHorizontal,n=t.applyToVertical;this._calculateBoundary(),e=e.clampf(cc.v2(0,0),cc.v2(1,1));var r=this._view.getContentSize(),s=this.content.getContentSize(),a=this._getContentBottomBoundary()-this._bottomBoundary;a=-a;var o=this._getContentLeftBoundary()-this._leftBoundary;o=-o;var c=cc.v2(0,0),l=0;return i&&(l=s.width-r.width,c.x=o-l*e.x),n&&(l=s.height-r.height,c.y=a-l*e.y),c},_moveContentToTopLeft:function(t){var e=this.content.getContentSize(),i=this._getContentBottomBoundary()-this._bottomBoundary;i=-i;var n=cc.v2(0,0),r=0,s=this._getContentLeftBoundary()-this._leftBoundary;s=-s,e.height7&&!this._touchMoved&&t.target!==this.node){var n=new cc.Event.EventTouch(t.getTouches(),t.bubbles);n.type=cc.Node.EventType.TOUCH_CANCEL,n.touch=t.touch,n.simulate=!0,t.target.dispatchEvent(n),this._touchMoved=!0}this._stopPropagationIfTargetIsMe(t)}}},_onTouchEnded:function(t,e){if(this.enabledInHierarchy&&!this.hasNestedViewGroup(t,e)){this._dispatchEvent("touch-up");var i=t.touch;this.content&&this._handleReleaseLogic(i),this._touchMoved?t.stopPropagation():this._stopPropagationIfTargetIsMe(t)}},_onTouchCancelled:function(t,e){if(this.enabledInHierarchy&&!this.hasNestedViewGroup(t,e)){if(!t.simulate){var i=t.touch;this.content&&this._handleReleaseLogic(i)}this._stopPropagationIfTargetIsMe(t)}},_processDeltaMove:function(t){this._scrollChildren(t),this._gatherTouchMove(t)},_getLocalAxisAlignDelta:function(t){return this.node.convertToNodeSpaceAR(t.getLocation(),n),this.node.convertToNodeSpaceAR(t.getPreviousLocation(),r),n.sub(r)},_handleMoveLogic:function(t){var e=this._getLocalAxisAlignDelta(t);this._processDeltaMove(e)},_scrollChildren:function(t){var e,i=t=this._clampDelta(t);this.elastic&&(e=this._getHowMuchOutOfBoundary(),i.x*=0===e.x?1:.5,i.y*=0===e.y?1:.5),this.elastic||(e=this._getHowMuchOutOfBoundary(i),i=i.add(e));var n="",r="";this.vertical&&(i.y>0?this.content.y-this.content.anchorY*this.content.height+i.y>=this._bottomBoundary&&(n="scroll-to-bottom"):i.y<0&&this.content.y-this.content.anchorY*this.content.height+this.content.height+i.y<=this._topBoundary&&(n="scroll-to-top")),this.horizontal&&(i.x<0?this.content.x-this.content.anchorX*this.content.width+this.content.width+i.x<=this._rightBoundary&&(r="scroll-to-right"):i.x>0&&this.content.x-this.content.anchorX*this.content.width+i.x>=this._leftBoundary&&(r="scroll-to-left")),this._moveContent(i,!1),(this.horizontal&&0!==i.x||this.vertical&&0!==i.y)&&(this._scrolling||(this._scrolling=!0,this._dispatchEvent("scroll-began")),this._dispatchEvent("scrolling")),""!==n&&this._dispatchEvent(n),""!==r&&this._dispatchEvent(r)},_handlePressLogic:function(){this._autoScrolling&&this._dispatchEvent("scroll-ended"),this._autoScrolling=!1,this._isBouncing=!1,this._touchMovePreviousTimestamp=s(),this._touchMoveDisplacements.length=0,this._touchMoveTimeDeltas.length=0,this._onScrollBarTouchBegan()},_clampDelta:function(t){var e=this.content.getContentSize(),i=this._view.getContentSize();return e.width=5;)this._touchMoveDisplacements.shift(),this._touchMoveTimeDeltas.shift();this._touchMoveDisplacements.push(t);var e=s();this._touchMoveTimeDeltas.push((e-this._touchMovePreviousTimestamp)/1e3),this._touchMovePreviousTimestamp=e},_startBounceBackIfNeeded:function(){if(!this.elastic)return!1;var t=this._getHowMuchOutOfBoundary();if((t=this._clampDelta(t)).fuzzyEquals(cc.v2(0,0),1e-4))return!1;var e=Math.max(this.bounceDuration,0);return this._startAutoScroll(t,e,!0),this._isBouncing||(t.y>0&&this._dispatchEvent("bounce-top"),t.y<0&&this._dispatchEvent("bounce-bottom"),t.x>0&&this._dispatchEvent("bounce-right"),t.x<0&&this._dispatchEvent("bounce-left"),this._isBouncing=!0),!0},_processInertiaScroll:function(){if(!this._startBounceBackIfNeeded()&&this.inertia){var t=this._calculateTouchMoveVelocity();!t.fuzzyEquals(cc.v2(0,0),1e-4)&&this.brake<1&&this._startInertiaScroll(t)}this._onScrollBarTouchEnded()},_handleReleaseLogic:function(t){var e=this._getLocalAxisAlignDelta(t);this._gatherTouchMove(e),this._processInertiaScroll(),this._scrolling&&(this._scrolling=!1,this._autoScrolling||this._dispatchEvent("scroll-ended"))},_isOutOfBoundary:function(){return!this._getHowMuchOutOfBoundary().fuzzyEquals(cc.v2(0,0),1e-4)},_isNecessaryAutoScrollBrake:function(){if(this._autoScrollBraking)return!0;if(this._isOutOfBoundary()){if(!this._autoScrollCurrentlyOutOfBoundary)return this._autoScrollCurrentlyOutOfBoundary=!0,this._autoScrollBraking=!0,this._autoScrollBrakingStartPosition=this.getContentPosition(),!0}else this._autoScrollCurrentlyOutOfBoundary=!1;return!1},getScrollEndedEventTiming:function(){return 1e-4},_processAutoScrolling:function(t){var e=this._isNecessaryAutoScrollBrake(),i=e?.05:1;this._autoScrollAccumulatedTime+=t*(1/i);var n,r=Math.min(1,this._autoScrollAccumulatedTime/this._autoScrollTotalTime);this._autoScrollAttenuate&&(n=r,r=(n-=1)*n*n*n*n+1);var s=this._autoScrollStartPosition.add(this._autoScrollTargetDelta.mul(r)),a=Math.abs(r-1)<=1e-4;if(Math.abs(r-1)<=this.getScrollEndedEventTiming()&&!this._isScrollEndedWithThresholdEventFired&&(this._dispatchEvent("scroll-ended-with-threshold"),this._isScrollEndedWithThresholdEventFired=!0),this.elastic){var o=s.sub(this._autoScrollBrakingStartPosition);e&&(o=o.mul(i)),s=this._autoScrollBrakingStartPosition.add(o)}else{var c=s.sub(this.getContentPosition()),l=this._getHowMuchOutOfBoundary(c);l.fuzzyEquals(cc.v2(0,0),1e-4)||(s=s.add(l),a=!0)}a&&(this._autoScrolling=!1);var u=s.sub(this.getContentPosition());this._moveContent(this._clampDelta(u),a),this._dispatchEvent("scrolling"),this._autoScrolling||(this._isBouncing=!1,this._scrolling=!1,this._dispatchEvent("scroll-ended"))},_startInertiaScroll:function(t){var e=t.mul(.7);this._startAttenuatingAutoScroll(e,t)},_calculateAttenuatedFactor:function(t){return this.brake<=0?1-this.brake:(1-this.brake)*(1/(1+14e-6*t+t*t*8e-9))},_startAttenuatingAutoScroll:function(t,e){var i=this._calculateAutoScrollTimeByInitalSpeed(e.mag()),n=t.normalize(),r=this.content.getContentSize(),s=this._view.getContentSize(),a=r.width-s.width,o=r.height-s.height,c=this._calculateAttenuatedFactor(a),l=this._calculateAttenuatedFactor(o);n=cc.v2(n.x*a*(1-this.brake)*c,n.y*o*l*(1-this.brake));var u=t.mag(),h=n.mag()/u;n=n.add(t),this.brake>0&&h>7&&(h=Math.sqrt(h),n=t.mul(h).add(t)),this.brake>0&&h>3&&(i*=h=3),0===this.brake&&h>1&&(i*=h),this._startAutoScroll(n,i,!0)},_calculateAutoScrollTimeByInitalSpeed:function(t){return Math.sqrt(Math.sqrt(t/5))},_startAutoScroll:function(t,e,i){var n=this._flattenVectorByDirection(t);this._autoScrolling=!0,this._autoScrollTargetDelta=n,this._autoScrollAttenuate=i,this._autoScrollStartPosition=this.getContentPosition(),this._autoScrollTotalTime=e,this._autoScrollAccumulatedTime=0,this._autoScrollBraking=!1,this._isScrollEndedWithThresholdEventFired=!1,this._autoScrollBrakingStartPosition=cc.v2(0,0),this._getHowMuchOutOfBoundary().fuzzyEquals(cc.v2(0,0),1e-4)||(this._autoScrollCurrentlyOutOfBoundary=!0)},_calculateTouchMoveVelocity:function(){var t=0;if((t=this._touchMoveTimeDeltas.reduce((function(t,e){return t+e}),t))<=0||t>=.5)return cc.v2(0,0);var e=cc.v2(0,0);return e=this._touchMoveDisplacements.reduce((function(t,e){return t.add(e)}),e),cc.v2(e.x*(1-this.brake)/t,e.y*(1-this.brake)/t)},_flattenVectorByDirection:function(t){var e=t;return e.x=this.horizontal?e.x:0,e.y=this.vertical?e.y:0,e},_moveContent:function(t,e){var i=this._flattenVectorByDirection(t),n=this.getContentPosition().add(i);this.setContentPosition(n);var r=this._getHowMuchOutOfBoundary();this._updateScrollBar(r),this.elastic&&e&&this._startBounceBackIfNeeded()},_getContentLeftBoundary:function(){return this.getContentPosition().x-this.content.getAnchorPoint().x*this.content.getContentSize().width},_getContentRightBoundary:function(){var t=this.content.getContentSize();return this._getContentLeftBoundary()+t.width},_getContentTopBoundary:function(){var t=this.content.getContentSize();return this._getContentBottomBoundary()+t.height},_getContentBottomBoundary:function(){return this.getContentPosition().y-this.content.getAnchorPoint().y*this.content.getContentSize().height},_getHowMuchOutOfBoundary:function(t){if((t=t||cc.v2(0,0)).fuzzyEquals(cc.v2(0,0),1e-4)&&!this._outOfBoundaryAmountDirty)return this._outOfBoundaryAmount;var e=cc.v2(0,0);return this._getContentLeftBoundary()+t.x>this._leftBoundary?e.x=this._leftBoundary-(this._getContentLeftBoundary()+t.x):this._getContentRightBoundary()+t.xthis._bottomBoundary&&(e.y=this._bottomBoundary-(this._getContentBottomBoundary()+t.y)),t.fuzzyEquals(cc.v2(0,0),1e-4)&&(this._outOfBoundaryAmount=e,this._outOfBoundaryAmountDirty=!1),this._clampDelta(e)},_updateScrollBarState:function(){if(this.content){var t=this.content.getContentSize(),e=this._view.getContentSize();this.verticalScrollBar&&(t.height0&&t[0].check()}},onEnable:function(){this._makeAtLeastOneToggleChecked(),this.node.on("child-added",this._allowOnlyOneToggleChecked,this),this.node.on("child-removed",this._makeAtLeastOneToggleChecked,this)},onDisable:function(){this.node.off("child-added",this._allowOnlyOneToggleChecked,this),this.node.off("child-removed",this._makeAtLeastOneToggleChecked,this)}});t("../platform/js").get(i.prototype,"toggleItems",(function(){return this.node._children.map((function(t){return t.getComponent(cc.Toggle)})).filter(Boolean)})),cc.ToggleContainer=e.exports=i}),{"../platform/js":182}],118:[(function(t,e){"use strict";var i=cc.Class({name:"cc.ToggleGroup",extends:cc.Component,ctor:function(){this._toggleItems=[]},editor:!1,properties:{allowSwitchOff:{tooltip:!1,default:!1},toggleItems:{get:function(){return this._toggleItems}}},updateToggles:function(t){this.enabledInHierarchy&&this._toggleItems.forEach((function(e){t.isChecked&&e!==t&&e.isChecked&&e.enabled&&e._hideCheckMark()}))},addToggle:function(t){-1===this._toggleItems.indexOf(t)&&this._toggleItems.push(t),this._allowOnlyOneToggleChecked()},removeToggle:function(t){var e=this._toggleItems.indexOf(t);e>-1&&this._toggleItems.splice(e,1),this._makeAtLeastOneToggleChecked()},_allowOnlyOneToggleChecked:function(){var t=!1;return this._toggleItems.forEach((function(e){t&&e.enabled&&e._hideCheckMark(),e.isChecked&&e.enabled&&(t=!0)})),t},_makeAtLeastOneToggleChecked:function(){this._allowOnlyOneToggleChecked()||this.allowSwitchOff||this._toggleItems.length>0&&(this._toggleItems[0].isChecked=!0)},start:function(){this._makeAtLeastOneToggleChecked()}}),n=t("../platform/js"),r=!1;n.get(cc,"ToggleGroup",(function(){return r||(cc.errorID(1405,"cc.ToggleGroup","cc.ToggleContainer"),r=!0),i})),e.exports=i}),{"../platform/js":182}],119:[(function(t,e){"use strict";var i=cc.Class({name:"cc.ViewGroup",extends:t("./CCComponent")});cc.ViewGroup=e.exports=i}),{"./CCComponent":102}],120:[(function(t,e){"use strict";var i=t("../base-ui/CCWidgetManager"),n=i.AlignMode,r=i._AlignFlags,s=r.TOP,a=r.MID,o=r.BOT,c=r.LEFT,l=r.CENTER,u=r.RIGHT,h=s|o,f=c|u,d=cc.Class({name:"cc.Widget",extends:t("./CCComponent"),editor:!1,properties:{target:{get:function(){return this._target},set:function(t){this._target=t},type:cc.Node,tooltip:!1},isAlignTop:{get:function(){return(this._alignFlags&s)>0},set:function(t){this._setAlign(s,t)},animatable:!1,tooltip:!1},isAlignVerticalCenter:{get:function(){return(this._alignFlags&a)>0},set:function(t){t?(this.isAlignTop=!1,this.isAlignBottom=!1,this._alignFlags|=a):this._alignFlags&=~a},animatable:!1,tooltip:!1},isAlignBottom:{get:function(){return(this._alignFlags&o)>0},set:function(t){this._setAlign(o,t)},animatable:!1,tooltip:!1},isAlignLeft:{get:function(){return(this._alignFlags&c)>0},set:function(t){this._setAlign(c,t)},animatable:!1,tooltip:!1},isAlignHorizontalCenter:{get:function(){return(this._alignFlags&l)>0},set:function(t){t?(this.isAlignLeft=!1,this.isAlignRight=!1,this._alignFlags|=l):this._alignFlags&=~l},animatable:!1,tooltip:!1},isAlignRight:{get:function(){return(this._alignFlags&u)>0},set:function(t){this._setAlign(u,t)},animatable:!1,tooltip:!1},isStretchWidth:{get:function(){return(this._alignFlags&f)===f},visible:!1},isStretchHeight:{get:function(){return(this._alignFlags&h)===h},visible:!1},top:{get:function(){return this._top},set:function(t){this._top=t},tooltip:!1},bottom:{get:function(){return this._bottom},set:function(t){this._bottom=t},tooltip:!1},left:{get:function(){return this._left},set:function(t){this._left=t},tooltip:!1},right:{get:function(){return this._right},set:function(t){this._right=t},tooltip:!1},horizontalCenter:{get:function(){return this._horizontalCenter},set:function(t){this._horizontalCenter=t},tooltip:!1},verticalCenter:{get:function(){return this._verticalCenter},set:function(t){this._verticalCenter=t},tooltip:!1},isAbsoluteHorizontalCenter:{get:function(){return this._isAbsHorizontalCenter},set:function(t){this._isAbsHorizontalCenter=t},animatable:!1},isAbsoluteVerticalCenter:{get:function(){return this._isAbsVerticalCenter},set:function(t){this._isAbsVerticalCenter=t},animatable:!1},isAbsoluteTop:{get:function(){return this._isAbsTop},set:function(t){this._isAbsTop=t},animatable:!1},isAbsoluteBottom:{get:function(){return this._isAbsBottom},set:function(t){this._isAbsBottom=t},animatable:!1},isAbsoluteLeft:{get:function(){return this._isAbsLeft},set:function(t){this._isAbsLeft=t},animatable:!1},isAbsoluteRight:{get:function(){return this._isAbsRight},set:function(t){this._isAbsRight=t},animatable:!1},alignMode:{default:n.ON_WINDOW_RESIZE,type:n,tooltip:!1},_wasAlignOnce:{default:void 0,formerlySerializedAs:"isAlignOnce"},_target:null,_alignFlags:0,_left:0,_right:0,_top:0,_bottom:0,_verticalCenter:0,_horizontalCenter:0,_isAbsLeft:!0,_isAbsRight:!0,_isAbsTop:!0,_isAbsBottom:!0,_isAbsHorizontalCenter:!0,_isAbsVerticalCenter:!0,_originalWidth:0,_originalHeight:0},statics:{AlignMode:n},onLoad:function(){void 0!==this._wasAlignOnce&&(this.alignMode=this._wasAlignOnce?n.ONCE:n.ALWAYS,this._wasAlignOnce=void 0)},onEnable:function(){i.add(this)},onDisable:function(){i.remove(this)},_validateTargetInDEV:!1,_setAlign:function(t,e){if(e!==(this._alignFlags&t)>0){var i=(t&f)>0;e?(this._alignFlags|=t,i?(this.isAlignHorizontalCenter=!1,this.isStretchWidth&&(this._originalWidth=this.node.width)):(this.isAlignVerticalCenter=!1,this.isStretchHeight&&(this._originalHeight=this.node.height))):(i?this.isStretchWidth&&(this.node.width=this._originalWidth):this.isStretchHeight&&(this.node.height=this._originalHeight),this._alignFlags&=~t)}},updateAlignment:function(){i.updateAlignment(this.node)}});Object.defineProperty(d.prototype,"isAlignOnce",{get:function(){return this.alignMode===n.ONCE},set:function(t){this.alignMode=t?n.ONCE:n.ALWAYS}}),cc.Widget=e.exports=d}),{"../base-ui/CCWidgetManager":86,"./CCComponent":102}],121:[(function(t,e){"use strict";var i=t("../../platform/CCMacro"),n=t("../editbox/EditBoxImplBase"),r=t("../CCLabel"),s=t("./types"),a=s.InputMode,o=s.InputFlag,c=s.KeyboardReturnType;function l(t){return t.charAt(0).toUpperCase()+t.slice(1)}var u=cc.Class({name:"cc.EditBox",extends:cc.Component,editor:!1,properties:{_string:"",string:{tooltip:!1,get:function(){return this._string},set:function(t){t=""+t,this.maxLength>=0&&t.length>=this.maxLength&&(t=t.slice(0,this.maxLength)),this._string=t,this._updateString(t)}},textLabel:{tooltip:!1,default:null,type:r,notify:function(t){this.textLabel&&this.textLabel!==t&&(this._updateTextLabel(),this._updateLabels())}},placeholderLabel:{tooltip:!1,default:null,type:r,notify:function(t){this.placeholderLabel&&this.placeholderLabel!==t&&(this._updatePlaceholderLabel(),this._updateLabels())}},background:{tooltip:!1,default:null,type:cc.Sprite,notify:function(t){this.background&&this.background!==t&&this._updateBackgroundSprite()}},_N$backgroundImage:{default:void 0,type:cc.SpriteFrame},backgroundImage:{get:function(){return this.background?this.background.spriteFrame:null},set:function(t){this.background&&(this.background.spriteFrame=t)}},returnType:{default:c.DEFAULT,tooltip:!1,displayName:"KeyboardReturnType",type:c},_N$returnType:{default:void 0,type:cc.Float},inputFlag:{tooltip:!1,default:o.DEFAULT,type:o,notify:function(){this._updateString(this._string)}},inputMode:{tooltip:!1,default:a.ANY,type:a,notify:function(t){this.inputMode!==t&&(this._updateTextLabel(),this._updatePlaceholderLabel())}},fontSize:{get:function(){return this.textLabel?this.textLabel.fontSize:0},set:function(t){this.textLabel&&(this.textLabel.fontSize=t)}},_N$fontSize:{default:void 0,type:cc.Float},lineHeight:{get:function(){return this.textLabel?this.textLabel.lineHeight:0},set:function(t){this.textLabel&&(this.textLabel.lineHeight=t)}},_N$lineHeight:{default:void 0,type:cc.Float},fontColor:{get:function(){return this.textLabel?this.textLabel.node.color:cc.Color.BLACK},set:function(t){this.textLabel&&(this.textLabel.node.color=t,this.textLabel.node.opacity=t.a)}},_N$fontColor:void 0,placeholder:{tooltip:!1,get:function(){return this.placeholderLabel?this.placeholderLabel.string:""},set:function(t){this.placeholderLabel&&(this.placeholderLabel.string=t)}},_N$placeholder:{default:void 0,type:cc.String},placeholderFontSize:{get:function(){return this.placeholderLabel?this.placeholderLabel.fontSize:0},set:function(t){this.placeholderLabel&&(this.placeholderLabel.fontSize=t)}},_N$placeholderFontSize:{default:void 0,type:cc.Float},placeholderFontColor:{get:function(){return this.placeholderLabel?this.placeholderLabel.node.color:cc.Color.BLACK},set:function(t){this.placeholderLabel&&(this.placeholderLabel.node.color=t,this.placeholderLabel.node.opacity=t.a)}},_N$placeholderFontColor:void 0,maxLength:{tooltip:!1,default:20},_N$maxLength:{default:void 0,type:cc.Float},stayOnTop:{default:!1,notify:function(){cc.warn("editBox.stayOnTop is removed since v2.1.")}},_tabIndex:0,tabIndex:{tooltip:!1,get:function(){return this._tabIndex},set:function(t){this._tabIndex!==t&&(this._tabIndex=t,this._impl&&this._impl.setTabIndex(t))}},editingDidBegan:{default:[],type:cc.Component.EventHandler},textChanged:{default:[],type:cc.Component.EventHandler},editingDidEnded:{default:[],type:cc.Component.EventHandler},editingReturn:{default:[],type:cc.Component.EventHandler}},statics:{_ImplClass:n,KeyboardReturnType:c,InputFlag:o,InputMode:a},_init:function(){this._upgradeComp(),this._isLabelVisible=!0,this.node.on(cc.Node.EventType.SIZE_CHANGED,this._syncSize,this),(this._impl=new u._ImplClass).init(this),this._updateString(this._string),this._syncSize()},_updateBackgroundSprite:function(){var t=this.background;if(!t){var e=this.node.getChildByName("BACKGROUND_SPRITE");e||(e=new cc.Node("BACKGROUND_SPRITE")),(t=e.getComponent(cc.Sprite))||(t=e.addComponent(cc.Sprite)),e.parent=this.node,this.background=t}t.type=cc.Sprite.Type.SLICED,void 0!==this._N$backgroundImage&&(t.spriteFrame=this._N$backgroundImage,this._N$backgroundImage=void 0)},_updateTextLabel:function(){var t=this.textLabel;if(!t){var e=this.node.getChildByName("TEXT_LABEL");e||(e=new cc.Node("TEXT_LABEL")),(t=e.getComponent(r))||(t=e.addComponent(r)),e.parent=this.node,this.textLabel=t}t.node.setAnchorPoint(0,1),t.overflow=r.Overflow.CLAMP,this.inputMode===a.ANY?(t.verticalAlign=i.VerticalTextAlignment.TOP,t.enableWrapText=!0):(t.verticalAlign=i.VerticalTextAlignment.CENTER,t.enableWrapText=!1),t.string=this._updateLabelStringStyle(this._string),void 0!==this._N$fontColor&&(t.node.color=this._N$fontColor,t.node.opacity=this._N$fontColor.a,this._N$fontColor=void 0),void 0!==this._N$fontSize&&(t.fontSize=this._N$fontSize,this._N$fontSize=void 0),void 0!==this._N$lineHeight&&(t.lineHeight=this._N$lineHeight,this._N$lineHeight=void 0)},_updatePlaceholderLabel:function(){var t=this.placeholderLabel;if(!t){var e=this.node.getChildByName("PLACEHOLDER_LABEL");e||(e=new cc.Node("PLACEHOLDER_LABEL")),(t=e.getComponent(r))||(t=e.addComponent(r)),e.parent=this.node,this.placeholderLabel=t}t.node.setAnchorPoint(0,1),t.overflow=r.Overflow.CLAMP,this.inputMode===a.ANY?(t.verticalAlign=i.VerticalTextAlignment.TOP,t.enableWrapText=!0):(t.verticalAlign=i.VerticalTextAlignment.CENTER,t.enableWrapText=!1),t.string=this.placeholder,void 0!==this._N$placeholderFontColor&&(t.node.color=this._N$placeholderFontColor,t.node.opacity=this._N$placeholderFontColor.a,this._N$placeholderFontColor=void 0),void 0!==this._N$placeholderFontSize&&(t.fontSize=this._N$placeholderFontSize,this._N$placeholderFontSize=void 0)},_upgradeComp:function(){void 0!==this._N$returnType&&(this.returnType=this._N$returnType,this._N$returnType=void 0),void 0!==this._N$maxLength&&(this.maxLength=this._N$maxLength,this._N$maxLength=void 0),void 0!==this._N$backgroundImage&&this._updateBackgroundSprite(),void 0===this._N$fontColor&&void 0===this._N$fontSize&&void 0===this._N$lineHeight||this._updateTextLabel(),void 0===this._N$placeholderFontColor&&void 0===this._N$placeholderFontSize||this._updatePlaceholderLabel(),void 0!==this._N$placeholder&&(this.placeholder=this._N$placeholder,this._N$placeholder=void 0)},_syncSize:function(){if(this._impl){var t=this.node.getContentSize();this._impl.setSize(t.width,t.height)}},_showLabels:function(){this._isLabelVisible=!0,this._updateLabels()},_hideLabels:function(){this._isLabelVisible=!1,this.textLabel&&(this.textLabel.node.active=!1),this.placeholderLabel&&(this.placeholderLabel.node.active=!1)},_updateLabels:function(){if(this._isLabelVisible){var t=this._string;this.textLabel&&(this.textLabel.node.active=""!==t),this.placeholderLabel&&(this.placeholderLabel.node.active=""===t)}},_updateString:function(t){var e=this.textLabel;if(e){var i=t;i&&(i=this._updateLabelStringStyle(i)),e.string=i,this._updateLabels()}},_updateLabelStringStyle:function(t,e){var i=this.inputFlag;if(e||i!==o.PASSWORD)i===o.INITIAL_CAPS_ALL_CHARACTERS?t=t.toUpperCase():i===o.INITIAL_CAPS_WORD?t=t.replace(/(?:^|\s)\S/g,(function(t){return t.toUpperCase()})):i===o.INITIAL_CAPS_SENTENCE&&(t=l(t));else{for(var n="",r=t.length,s=0;s=0&&(e.value=e.value.slice(0,n)),t._delegate.editBoxTextChanged(e.value)}},n.onClick=function(){t._editing&&cc.sys.isMobile&&t._adjustWindowScroll()},n.onKeydown=function(i){i.keyCode===r.KEY.enter?(i.stopPropagation(),t._delegate.editBoxEditingReturn(),t._isTextArea||e.blur()):i.keyCode===r.KEY.tab&&(i.stopPropagation(),i.preventDefault(),o.next(t))},n.onBlur=function(){cc.sys.isMobile&&i&&n.compositionEnd(),t._editing=!1,v=null,t._hideDom(),t._delegate.editBoxEditingDidEnded()},e.addEventListener("compositionstart",n.compositionStart),e.addEventListener("compositionend",n.compositionEnd),e.addEventListener("input",n.onInput),e.addEventListener("keydown",n.onKeydown),e.addEventListener("blur",n.onBlur),e.addEventListener("touchstart",n.onClick)},_removeEventListeners:function(){var t=this._elem,e=this._eventListeners;t.removeEventListener("compositionstart",e.compositionStart),t.removeEventListener("compositionend",e.compositionEnd),t.removeEventListener("input",e.onInput),t.removeEventListener("keydown",e.onKeydown),t.removeEventListener("blur",e.onBlur),t.removeEventListener("touchstart",e.onClick),e.compositionStart=null,e.compositionEnd=null,e.onInput=null,e.onKeydown=null,e.onBlur=null,e.onClick=null}})}),{"../../platform/CCMacro":166,"../../platform/utils":185,"../../value-types/mat4":252,"../CCLabel":104,"./tabIndexUtil":124,"./types":125}],124:[(function(t,e){"use strict";e.exports={_tabIndexList:[],add:function(t){var e=this._tabIndexList;-1===e.indexOf(t)&&e.push(t)},remove:function(t){var e=this._tabIndexList,i=e.indexOf(t);-1!==i&&e.splice(i,1)},resort:function(){this._tabIndexList.sort((function(t,e){return t._delegate._tabIndex-e._delegate._tabIndex}))},next:function(t){var e=this._tabIndexList,i=e.indexOf(t);if(t.setFocus(!1),-1!==i){var n=e[i+1];n&&n._delegate._tabIndex>=0&&n.setFocus(!0)}}}}),{}],125:[(function(t,e){"use strict";var i=cc.Enum({DEFAULT:0,DONE:1,SEND:2,SEARCH:3,GO:4,NEXT:5}),n=cc.Enum({ANY:0,EMAIL_ADDR:1,NUMERIC:2,PHONE_NUMBER:3,URL:4,DECIMAL:5,SINGLE_LINE:6}),r=cc.Enum({PASSWORD:0,SENSITIVE:1,INITIAL_CAPS_WORD:2,INITIAL_CAPS_SENTENCE:3,INITIAL_CAPS_ALL_CHARACTERS:4,DEFAULT:5});e.exports={KeyboardReturnType:i,InputMode:n,InputFlag:r}}),{}],126:[(function(t,e){"use strict";t("./CCComponent"),t("./CCComponentEventHandler"),t("./missing-script");var i=t("./SubContextView");i||(i=cc.Class({name:"cc.SubContextView",extends:cc.Component}),cc.SubContextView=cc.WXSubContextView=cc.SwanSubContextView=i);var n=[t("./CCSprite"),t("./CCWidget"),t("./CCCanvas"),t("./CCAudioSource"),t("./CCAnimation"),t("./CCButton"),t("./CCLabel"),t("./CCProgressBar"),t("./CCMask"),t("./CCScrollBar"),t("./CCScrollView"),t("./CCPageViewIndicator"),t("./CCPageView"),t("./CCSlider"),t("./CCLayout"),t("./editbox/CCEditBox"),t("./CCLabelOutline"),t("./CCLabelShadow"),t("./CCRichText"),t("./CCToggleContainer"),t("./CCToggleGroup"),t("./CCToggle"),t("./CCBlockInputEvents"),t("./CCMotionStreak"),t("./CCSafeArea"),i];e.exports=n}),{"./CCAnimation":97,"./CCAudioSource":98,"./CCBlockInputEvents":99,"./CCButton":100,"./CCCanvas":101,"./CCComponent":102,"./CCComponentEventHandler":103,"./CCLabel":104,"./CCLabelOutline":void 0,"./CCLabelShadow":void 0,"./CCLayout":105,"./CCMask":106,"./CCMotionStreak":107,"./CCPageView":void 0,"./CCPageViewIndicator":void 0,"./CCProgressBar":108,"./CCRichText":void 0,"./CCSafeArea":110,"./CCScrollBar":111,"./CCScrollView":112,"./CCSlider":113,"./CCSprite":114,"./CCToggle":116,"./CCToggleContainer":117,"./CCToggleGroup":118,"./CCWidget":120,"./SubContextView":void 0,"./editbox/CCEditBox":121,"./missing-script":127}],127:[(function(t,e){"use strict";var i=cc.js,n=cc.Class({name:"cc.MissingScript",extends:cc.Component,editor:{inspector:"packages://inspector/inspectors/comps/missing-script.js"},properties:{compiled:{default:!1,serializable:!1},_$erialized:{default:null,visible:!1,editorOnly:!0}},ctor:!1,statics:{safeFindClass:function(t){return i._getClassById(t)||(cc.deserialize.reportMissingClass(t),n)}},onLoad:function(){cc.warnID(4600,this.node.name)}});cc._MissingScript=e.exports=n}),{}],128:[(function(t,e){"use strict";var i=cc.js;t("../event/event");var n=function(t,e){cc.Event.call(this,cc.Event.MOUSE,e),this._eventType=t,this._button=0,this._x=0,this._y=0,this._prevX=0,this._prevY=0,this._scrollX=0,this._scrollY=0};i.extend(n,cc.Event);var r=n.prototype;r.setScrollData=function(t,e){this._scrollX=t,this._scrollY=e},r.getScrollX=function(){return this._scrollX},r.getScrollY=function(){return this._scrollY},r.setLocation=function(t,e){this._x=t,this._y=e},r.getLocation=function(){return cc.v2(this._x,this._y)},r.getLocationInView=function(){return cc.v2(this._x,cc.view._designResolutionSize.height-this._y)},r._setPrevCursor=function(t,e){this._prevX=t,this._prevY=e},r.getPreviousLocation=function(){return cc.v2(this._prevX,this._prevY)},r.getDelta=function(){return cc.v2(this._x-this._prevX,this._y-this._prevY)},r.getDeltaX=function(){return this._x-this._prevX},r.getDeltaY=function(){return this._y-this._prevY},r.setButton=function(t){this._button=t},r.getButton=function(){return this._button},r.getLocationX=function(){return this._x},r.getLocationY=function(){return this._y},n.NONE=0,n.DOWN=1,n.UP=2,n.MOVE=3,n.SCROLL=4,n.BUTTON_LEFT=0,n.BUTTON_RIGHT=2,n.BUTTON_MIDDLE=1,n.BUTTON_4=3,n.BUTTON_5=4,n.BUTTON_6=5,n.BUTTON_7=6,n.BUTTON_8=7;var s=function(t,e){cc.Event.call(this,cc.Event.TOUCH,e),this._eventCode=0,this._touches=t||[],this.touch=null,this.currentTouch=null};i.extend(s,cc.Event),(r=s.prototype).getEventCode=function(){return this._eventCode},r.getTouches=function(){return this._touches},r._setEventCode=function(t){this._eventCode=t},r._setTouches=function(t){this._touches=t},r.setLocation=function(t,e){this.touch&&this.touch.setTouchInfo(this.touch.getID(),t,e)},r.getLocation=function(){return this.touch?this.touch.getLocation():cc.v2()},r.getLocationInView=function(){return this.touch?this.touch.getLocationInView():cc.v2()},r.getPreviousLocation=function(){return this.touch?this.touch.getPreviousLocation():cc.v2()},r.getStartLocation=function(){return this.touch?this.touch.getStartLocation():cc.v2()},r.getID=function(){return this.touch?this.touch.getID():null},r.getDelta=function(){return this.touch?this.touch.getDelta():cc.v2()},r.getDeltaX=function(){return this.touch?this.touch.getDelta().x:0},r.getDeltaY=function(){return this.touch?this.touch.getDelta().y:0},r.getLocationX=function(){return this.touch?this.touch.getLocationX():0},r.getLocationY=function(){return this.touch?this.touch.getLocationY():0},s.MAX_TOUCHES=5,s.BEGAN=0,s.MOVED=1,s.ENDED=2,s.CANCELED=3;var a=function(t,e){cc.Event.call(this,cc.Event.ACCELERATION,e),this.acc=t};i.extend(a,cc.Event);var o=function(t,e,i){cc.Event.call(this,cc.Event.KEYBOARD,i),this.keyCode=t,this.isPressed=e};i.extend(o,cc.Event),cc.Event.EventMouse=n,cc.Event.EventTouch=s,cc.Event.EventAcceleration=a,cc.Event.EventKeyboard=o,e.exports=cc.Event}),{"../event/event":135}],129:[(function(t,e){"use strict";var i=t("../platform/js");cc.EventListener=function(t,e,i){this._onEvent=i,this._type=t||0,this._listenerID=e||"",this._registered=!1,this._fixedPriority=0,this._node=null,this._target=null,this._paused=!0,this._isEnabled=!0},cc.EventListener.prototype={constructor:cc.EventListener,_setPaused:function(t){this._paused=t},_isPaused:function(){return this._paused},_setRegistered:function(t){this._registered=t},_isRegistered:function(){return this._registered},_getType:function(){return this._type},_getListenerID:function(){return this._listenerID},_setFixedPriority:function(t){this._fixedPriority=t},_getFixedPriority:function(){return this._fixedPriority},_setSceneGraphPriority:function(t){this._target=t,this._node=t},_getSceneGraphPriority:function(){return this._node},checkAvailable:function(){return null!==this._onEvent},clone:function(){return null},setEnabled:function(t){this._isEnabled=t},isEnabled:function(){return this._isEnabled},retain:function(){},release:function(){}},cc.EventListener.UNKNOWN=0,cc.EventListener.TOUCH_ONE_BY_ONE=1,cc.EventListener.TOUCH_ALL_AT_ONCE=2,cc.EventListener.KEYBOARD=3,cc.EventListener.MOUSE=4,cc.EventListener.ACCELERATION=6,cc.EventListener.CUSTOM=8;var n=cc.EventListener.ListenerID={MOUSE:"__cc_mouse",TOUCH_ONE_BY_ONE:"__cc_touch_one_by_one",TOUCH_ALL_AT_ONCE:"__cc_touch_all_at_once",KEYBOARD:"__cc_keyboard",ACCELERATION:"__cc_acceleration"},r=function(t,e){this._onCustomEvent=e,cc.EventListener.call(this,cc.EventListener.CUSTOM,t,this._callback)};i.extend(r,cc.EventListener),i.mixin(r.prototype,{_onCustomEvent:null,_callback:function(t){null!==this._onCustomEvent&&this._onCustomEvent(t)},checkAvailable:function(){return cc.EventListener.prototype.checkAvailable.call(this)&&null!==this._onCustomEvent},clone:function(){return new r(this._listenerID,this._onCustomEvent)}});var s=function(){cc.EventListener.call(this,cc.EventListener.MOUSE,n.MOUSE,this._callback)};i.extend(s,cc.EventListener),i.mixin(s.prototype,{onMouseDown:null,onMouseUp:null,onMouseMove:null,onMouseScroll:null,_callback:function(t){var e=cc.Event.EventMouse;switch(t._eventType){case e.DOWN:this.onMouseDown&&this.onMouseDown(t);break;case e.UP:this.onMouseUp&&this.onMouseUp(t);break;case e.MOVE:this.onMouseMove&&this.onMouseMove(t);break;case e.SCROLL:this.onMouseScroll&&this.onMouseScroll(t)}},clone:function(){var t=new s;return t.onMouseDown=this.onMouseDown,t.onMouseUp=this.onMouseUp,t.onMouseMove=this.onMouseMove,t.onMouseScroll=this.onMouseScroll,t},checkAvailable:function(){return!0}});var a=function(){cc.EventListener.call(this,cc.EventListener.TOUCH_ONE_BY_ONE,n.TOUCH_ONE_BY_ONE,null),this._claimedTouches=[]};i.extend(a,cc.EventListener),i.mixin(a.prototype,{constructor:a,_claimedTouches:null,swallowTouches:!1,onTouchBegan:null,onTouchMoved:null,onTouchEnded:null,onTouchCancelled:null,setSwallowTouches:function(t){this.swallowTouches=t},isSwallowTouches:function(){return this.swallowTouches},clone:function(){var t=new a;return t.onTouchBegan=this.onTouchBegan,t.onTouchMoved=this.onTouchMoved,t.onTouchEnded=this.onTouchEnded,t.onTouchCancelled=this.onTouchCancelled,t.swallowTouches=this.swallowTouches,t},checkAvailable:function(){return!!this.onTouchBegan||(cc.logID(1801),!1)}});var o=function(){cc.EventListener.call(this,cc.EventListener.TOUCH_ALL_AT_ONCE,n.TOUCH_ALL_AT_ONCE,null)};i.extend(o,cc.EventListener),i.mixin(o.prototype,{constructor:o,onTouchesBegan:null,onTouchesMoved:null,onTouchesEnded:null,onTouchesCancelled:null,clone:function(){var t=new o;return t.onTouchesBegan=this.onTouchesBegan,t.onTouchesMoved=this.onTouchesMoved,t.onTouchesEnded=this.onTouchesEnded,t.onTouchesCancelled=this.onTouchesCancelled,t},checkAvailable:function(){return null!==this.onTouchesBegan||null!==this.onTouchesMoved||null!==this.onTouchesEnded||null!==this.onTouchesCancelled||(cc.logID(1802),!1)}});var c=function(t){this._onAccelerationEvent=t,cc.EventListener.call(this,cc.EventListener.ACCELERATION,n.ACCELERATION,this._callback)};i.extend(c,cc.EventListener),i.mixin(c.prototype,{constructor:c,_onAccelerationEvent:null,_callback:function(t){this._onAccelerationEvent(t.acc,t)},checkAvailable:function(){return cc.assertID(this._onAccelerationEvent,1803),!0},clone:function(){return new c(this._onAccelerationEvent)}});var l=function(){cc.EventListener.call(this,cc.EventListener.KEYBOARD,n.KEYBOARD,this._callback)};i.extend(l,cc.EventListener),i.mixin(l.prototype,{constructor:l,onKeyPressed:null,onKeyReleased:null,_callback:function(t){t.isPressed?this.onKeyPressed&&this.onKeyPressed(t.keyCode,t):this.onKeyReleased&&this.onKeyReleased(t.keyCode,t)},clone:function(){var t=new l;return t.onKeyPressed=this.onKeyPressed,t.onKeyReleased=this.onKeyReleased,t},checkAvailable:function(){return null!==this.onKeyPressed||null!==this.onKeyReleased||(cc.logID(1800),!1)}}),cc.EventListener.create=function(t){cc.assertID(t&&t.event,1900);var e=t.event;delete t.event;var i=null;for(var n in e===cc.EventListener.TOUCH_ONE_BY_ONE?i=new a:e===cc.EventListener.TOUCH_ALL_AT_ONCE?i=new o:e===cc.EventListener.MOUSE?i=new s:e===cc.EventListener.CUSTOM?(i=new r(t.eventName,t.callback),delete t.eventName,delete t.callback):e===cc.EventListener.KEYBOARD?i=new l:e===cc.EventListener.ACCELERATION&&(i=new c(t.callback),delete t.callback),t)i[n]=t[n];return i},e.exports=cc.EventListener}),{"../platform/js":182}],130:[(function(t,e){"use strict";var i=t("../platform/js");t("./CCEventListener");var n=cc.EventListener.ListenerID,r=function(){this._fixedListeners=[],this._sceneGraphListeners=[],this.gt0Index=0};r.prototype={constructor:r,size:function(){return this._fixedListeners.length+this._sceneGraphListeners.length},empty:function(){return 0===this._fixedListeners.length&&0===this._sceneGraphListeners.length},push:function(t){0===t._getFixedPriority()?this._sceneGraphListeners.push(t):this._fixedListeners.push(t)},clearSceneGraphListeners:function(){this._sceneGraphListeners.length=0},clearFixedListeners:function(){this._fixedListeners.length=0},clear:function(){this._sceneGraphListeners.length=0,this._fixedListeners.length=0},getFixedPriorityListeners:function(){return this._fixedListeners},getSceneGraphPriorityListeners:function(){return this._sceneGraphListeners}};var s=function(t){var e=cc.Event,i=t.type;return i===e.ACCELERATION?n.ACCELERATION:i===e.KEYBOARD?n.KEYBOARD:i.startsWith(e.MOUSE)?n.MOUSE:(i.startsWith(e.TOUCH)&&cc.logID(2e3),"")},a={DIRTY_NONE:0,DIRTY_FIXED_PRIORITY:1,DIRTY_SCENE_GRAPH_PRIORITY:2,DIRTY_ALL:3,_listenersMap:{},_priorityDirtyFlagMap:{},_nodeListenersMap:{},_toAddedListeners:[],_toRemovedListeners:[],_dirtyListeners:{},_inDispatch:0,_isEnabled:!1,_currentTouch:null,_currentTouchListener:null,_internalCustomListenerIDs:[],_setDirtyForNode:function(t){var e=this._nodeListenersMap[t._id];if(e)for(var i=0,n=e.length;i0)for(var s=t._children,a=0,o=s.length;a=0;i--)(e=t[i])._setRegistered(!1),null!=e._getSceneGraphPriority()&&(this._dissociateNodeAndEventListener(e._getSceneGraphPriority(),e),e._setSceneGraphPriority(null)),0===this._inDispatch&&cc.js.array.removeAt(t,i)},_removeListenersForListenerID:function(t){var e,i=this._listenersMap[t];if(i){var n=i.getFixedPriorityListeners(),r=i.getSceneGraphPriorityListeners();this._removeAllListenersInVector(r),this._removeAllListenersInVector(n),delete this._priorityDirtyFlagMap[t],this._inDispatch||(i.clear(),delete this._listenersMap[t])}var s,a=this._toAddedListeners;for(e=a.length-1;e>=0;e--)(s=a[e])&&s._getListenerID()===t&&cc.js.array.removeAt(a,e)},_sortEventListeners:function(t){var e=this.DIRTY_NONE,i=this._priorityDirtyFlagMap;i[t]&&(e=i[t]),e!==this.DIRTY_NONE&&(i[t]=this.DIRTY_NONE,e&this.DIRTY_FIXED_PRIORITY&&this._sortListenersOfFixedPriority(t),e&this.DIRTY_SCENE_GRAPH_PRIORITY&&cc.director.getScene()&&this._sortListenersOfSceneGraphPriority(t))},_sortListenersOfSceneGraphPriority:function(t){var e=this._getListeners(t);if(e){var i=e.getSceneGraphPriorityListeners();i&&0!==i.length&&e.getSceneGraphPriorityListeners().sort(this._sortEventListenersOfSceneGraphPriorityDes)}},_sortEventListenersOfSceneGraphPriorityDes:function(t,e){var i=t._getSceneGraphPriority(),n=e._getSceneGraphPriority();if(!(e&&n&&n._activeInHierarchy&&null!==n._parent))return-1;if(!t||!i||!i._activeInHierarchy||null===i._parent)return 1;for(var r=i,s=n,a=!1;r._parent._id!==s._parent._id;)r=null===r._parent._parent?(a=!0)&&n:r._parent,s=null===s._parent._parent?(a=!0)&&i:s._parent;if(r._id===s._id){if(r._id===n._id)return-1;if(r._id===i._id)return 1}return a?r._localZOrder-s._localZOrder:s._localZOrder-r._localZOrder},_sortListenersOfFixedPriority:function(t){var e=this._listenersMap[t];if(e){var i=e.getFixedPriorityListeners();if(i&&0!==i.length){i.sort(this._sortListenersOfFixedPriorityAsc);for(var n=0,r=i.length;n=0);)++n;e.gt0Index=n}}},_sortListenersOfFixedPriorityAsc:function(t,e){return t._getFixedPriority()-e._getFixedPriority()},_onUpdateListeners:function(t){var e,i,n,r=t.getFixedPriorityListeners(),s=t.getSceneGraphPriorityListeners(),a=this._toRemovedListeners;if(s)for(e=s.length-1;e>=0;e--)(i=s[e])._isRegistered()||(cc.js.array.removeAt(s,e),-1!==(n=a.indexOf(i))&&a.splice(n,1));if(r)for(e=r.length-1;e>=0;e--)(i=r[e])._isRegistered()||(cc.js.array.removeAt(r,e),-1!==(n=a.indexOf(i))&&a.splice(n,1));s&&0===s.length&&t.clearSceneGraphListeners(),r&&0===r.length&&t.clearFixedListeners()},frameUpdateListeners:function(){var t=this._listenersMap,e=this._priorityDirtyFlagMap;for(var i in t)t[i].empty()&&(delete e[i],delete t[i]);var n=this._toAddedListeners;if(0!==n.length){for(var r=0,s=n.length;r0,3508),!(t>1)){var e;(e=this._listenersMap[n.TOUCH_ONE_BY_ONE])&&this._onUpdateListeners(e),(e=this._listenersMap[n.TOUCH_ALL_AT_ONCE])&&this._onUpdateListeners(e),cc.assertID(1===t,3509);var i=this._toAddedListeners;if(0!==i.length){for(var r=0,s=i.length;r0&&-1!==(r=t._claimedTouches.indexOf(n))){if(s=!0,!cc.macro.ENABLE_MULTI_TOUCH&&a._currentTouch&&a._currentTouch!==n)return!1;o===c.MOVED&&t.onTouchMoved?t.onTouchMoved(n,i):o===c.ENDED?(t.onTouchEnded&&t.onTouchEnded(n,i),t._registered&&t._claimedTouches.splice(r,1),a._clearCurTouch()):o===c.CANCELED&&(t.onTouchCancelled&&t.onTouchCancelled(n,i),t._registered&&t._claimedTouches.splice(r,1),a._clearCurTouch())}return i.isStopped()?(a._updateTouchListeners(i),!0):!(!s||!t.swallowTouches||(e.needsMutableSet&&e.touches.splice(n,1),0))},_dispatchTouchEvent:function(t){this._sortEventListeners(n.TOUCH_ONE_BY_ONE),this._sortEventListeners(n.TOUCH_ALL_AT_ONCE);var e=this._getListeners(n.TOUCH_ONE_BY_ONE),i=this._getListeners(n.TOUCH_ALL_AT_ONCE);if(null!==e||null!==i){var r=t.getTouches(),s=cc.js.array.copy(r),a={event:t,needsMutableSet:e&&i,touches:s,selTouch:null};if(e)for(var o=0;o0&&(this._dispatchEventToListeners(i,this._onTouchesEventCallback,{event:t,touches:s}),t.isStopped())||this._updateTouchListeners(t)}},_onTouchesEventCallback:function(t,e){if(!t._registered)return!1;var i=cc.Event.EventTouch,n=e.event,r=e.touches,s=n.getEventCode();return n.currentTarget=t._node,s===i.BEGAN&&t.onTouchesBegan?t.onTouchesBegan(r,n):s===i.MOVED&&t.onTouchesMoved?t.onTouchesMoved(r,n):s===i.ENDED&&t.onTouchesEnded?t.onTouchesEnded(r,n):s===i.CANCELED&&t.onTouchesCancelled&&t.onTouchesCancelled(r,n),!!n.isStopped()&&(a._updateTouchListeners(n),!0)},_associateNodeAndEventListener:function(t,e){var i=this._nodeListenersMap[t._id];i||(i=[],this._nodeListenersMap[t._id]=i),i.push(e)},_dissociateNodeAndEventListener:function(t,e){var i=this._nodeListenersMap[t._id];i&&(cc.js.array.remove(i,e),0===i.length&&delete this._nodeListenersMap[t._id])},_dispatchEventToListeners:function(t,e,i){var n,r,s=!1,a=t.getFixedPriorityListeners(),o=t.getSceneGraphPriorityListeners(),c=0;if(a&&0!==a.length)for(;c=0;c--){var l=o[c];if(l===t){cc.js.array.removeAt(o,c),l._setRegistered(!1);break}}this._currentTouchListener===t&&this._clearCurTouch()}},_clearCurTouch:function(){this._currentTouchListener=null,this._currentTouch=null},_removeListenerInCallback:function(t,e){if(null==t)return!1;for(var i=t.length-1;i>=0;i--){var n=t[i];if(n._onCustomEvent===e||n._onEvent===e)return n._setRegistered(!1),null!=n._getSceneGraphPriority()&&(this._dissociateNodeAndEventListener(n._getSceneGraphPriority(),n),n._setSceneGraphPriority(null)),0===this._inDispatch?cc.js.array.removeAt(t,i):this._toRemovedListeners.push(n),!0}return!1},_removeListenerInVector:function(t,e){if(null==t)return!1;for(var i=t.length-1;i>=0;i--){var n=t[i];if(n===e)return n._setRegistered(!1),null!=n._getSceneGraphPriority()&&(this._dissociateNodeAndEventListener(n._getSceneGraphPriority(),n),n._setSceneGraphPriority(null)),0===this._inDispatch?cc.js.array.removeAt(t,i):this._toRemovedListeners.push(n),!0}return!1},removeListeners:function(t,e){var i=this;if(cc.js.isNumber(t)||t instanceof cc._BaseNode)if(void 0!==t._id){var r,s=i._nodeListenersMap[t._id];if(s){var a=cc.js.array.copy(s);for(r=0;r=0;i--){var n=e[i];n&&this.off(t,n.callback,n.target)}},cc.EventTarget=e.exports=s}),{"../platform/callbacks-invoker":174,"../platform/js":182}],135:[(function(t,e){"use strict";var i=t("../platform/js");cc.Event=function(t,e){this.type=t,this.bubbles=!!e,this.target=null,this.currentTarget=null,this.eventPhase=0,this._propagationStopped=!1,this._propagationImmediateStopped=!1},cc.Event.prototype={constructor:cc.Event,unuse:function(){this.type=cc.Event.NO_TYPE,this.target=null,this.currentTarget=null,this.eventPhase=cc.Event.NONE,this._propagationStopped=!1,this._propagationImmediateStopped=!1},reuse:function(t,e){this.type=t,this.bubbles=e||!1},stopPropagation:function(){this._propagationStopped=!0},stopPropagationImmediate:function(){this._propagationImmediateStopped=!0},isStopped:function(){return this._propagationStopped||this._propagationImmediateStopped},getCurrentTarget:function(){return this.currentTarget},getType:function(){return this.type}},cc.Event.NO_TYPE="no_type",cc.Event.TOUCH="touch",cc.Event.MOUSE="mouse",cc.Event.KEYBOARD="keyboard",cc.Event.ACCELERATION="acceleration",cc.Event.NONE=0,cc.Event.CAPTURING_PHASE=1,cc.Event.AT_TARGET=2,cc.Event.BUBBLING_PHASE=3;var n=function(t,e){cc.Event.call(this,t,e),this.detail=null};i.extend(n,cc.Event),n.prototype.reset=n,n.prototype.setUserData=function(t){this.detail=t},n.prototype.getUserData=function(){return this.detail},n.prototype.getEventName=cc.Event.prototype.getType;var r=new i.Pool(10);n.put=function(t){r.put(t)},n.get=function(t,e){var i=r._get();return i?i.reset(t,e):i=new n(t,e),i},cc.Event.EventCustom=n,e.exports=cc.Event}),{"../platform/js":182}],136:[(function(t){"use strict";t("./event"),t("./event-listeners"),t("./event-target"),t("./system-event")}),{"./event":135,"./event-listeners":133,"./event-target":134,"./system-event":137}],137:[(function(t,e){"use strict";var i=t("../event/event-target"),n=t("../event-manager"),r=t("../platform/CCInputManager"),s=cc.Enum({KEY_DOWN:"keydown",KEY_UP:"keyup",DEVICEMOTION:"devicemotion"}),a=null,o=null,c=cc.Class({name:"SystemEvent",extends:i,statics:{EventType:s},setAccelerometerEnabled:function(t){t&&window.DeviceMotionEvent&&"function"==typeof DeviceMotionEvent.requestPermission?DeviceMotionEvent.requestPermission().then((function(t){console.log("Device Motion Event request permission: "+t),r.setAccelerometerEnabled("granted"===t)})):r.setAccelerometerEnabled(t)},setAccelerometerInterval:function(t){r.setAccelerometerInterval(t)},on:function(t,e,i,r){this._super(t,e,i,r),t!==s.KEY_DOWN&&t!==s.KEY_UP||(a||(a=cc.EventListener.create({event:cc.EventListener.KEYBOARD,onKeyPressed:function(t,e){e.type=s.KEY_DOWN,cc.systemEvent.dispatchEvent(e)},onKeyReleased:function(t,e){e.type=s.KEY_UP,cc.systemEvent.dispatchEvent(e)}})),n.hasEventListener(cc.EventListener.ListenerID.KEYBOARD)||n.addListener(a,1)),t===s.DEVICEMOTION&&(o||(o=cc.EventListener.create({event:cc.EventListener.ACCELERATION,callback:function(t,e){e.type=s.DEVICEMOTION,cc.systemEvent.dispatchEvent(e)}})),n.hasEventListener(cc.EventListener.ListenerID.ACCELERATION)||n.addListener(o,1))},off:function(t,e,i){if(this._super(t,e,i),a&&(t===s.KEY_DOWN||t===s.KEY_UP)){var r=this.hasEventListener(s.KEY_DOWN),c=this.hasEventListener(s.KEY_UP);r||c||n.removeListener(a)}o&&t===s.DEVICEMOTION&&n.removeListener(o)}});cc.SystemEvent=e.exports=c,cc.systemEvent=new cc.SystemEvent}),{"../event-manager":132,"../event/event-target":134,"../platform/CCInputManager":165}],138:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=a(t("../value-types/vec3")),r=a(t("../value-types/mat3")),s=a(t("./enums"));function a(t){return t&&t.__esModule?t:{default:t}}var o=new n.default,c=new n.default,l=new r.default,u=function(t,e,i){var r=l.m,s=i.m;r[0]=Math.abs(s[0]),r[1]=Math.abs(s[1]),r[2]=Math.abs(s[2]),r[3]=Math.abs(s[4]),r[4]=Math.abs(s[5]),r[5]=Math.abs(s[6]),r[6]=Math.abs(s[8]),r[7]=Math.abs(s[9]),r[8]=Math.abs(s[10]),n.default.transformMat3(t,e,l)},h=(function(){function t(t,e,i,r,a,o){this.center=void 0,this.halfExtents=void 0,this._type=void 0,this._type=s.default.SHAPE_AABB,this.center=new n.default(t,e,i),this.halfExtents=new n.default(r,a,o)}t.create=function(e,i,n,r,s,a){return new t(e,i,n,r,s,a)},t.clone=function(e){return new t(e.center.x,e.center.y,e.center.z,e.halfExtents.x,e.halfExtents.y,e.halfExtents.z)},t.copy=function(t,e){return n.default.copy(t.center,e.center),n.default.copy(t.halfExtents,e.halfExtents),t},t.fromPoints=function(t,e,i){return n.default.scale(t.center,n.default.add(o,e,i),.5),n.default.scale(t.halfExtents,n.default.sub(c,i,e),.5),t},t.set=function(t,e,i,r,s,a,o){return n.default.set(t.center,e,i,r),n.default.set(t.halfExtents,s,a,o),t};var e=t.prototype;return e.getBoundary=function(t,e){n.default.sub(t,this.center,this.halfExtents),n.default.add(e,this.center,this.halfExtents)},e.transform=function(t,e,i,r,s){s||(s=this),n.default.transformMat4(s.center,this.center,t),u(s.halfExtents,this.halfExtents,t)},t})();i.default=h,e.exports=i.default}),{"../value-types/mat3":251,"../value-types/vec3":260,"./enums":140}],139:[(function(t,e,i){"use strict";i.__esModule=!0,i.point_plane=f,i.pt_point_aabb=function(t,e,i){return n.Vec3.copy(t,e),n.Vec3.subtract(c,i.center,i.halfExtents),n.Vec3.add(l,i.center,i.halfExtents),t.x=t.xl.x?l.x:t.x,t.y=t.y>l.x?l.y:t.y,t.z=t.z>l.x?l.z:t.z,t},i.pt_point_obb=function(t,e,i){var c=i.orientation.m;n.Vec3.set(r,c[0],c[1],c[2]),n.Vec3.set(s,c[3],c[4],c[5]),n.Vec3.set(a,c[6],c[7],c[8]),u[0]=r,u[1]=s,u[2]=a,h[0]=i.halfExtents.x,h[1]=i.halfExtents.y,h[2]=i.halfExtents.z,n.Vec3.subtract(o,e,i.center),n.Vec3.set(t,i.center.x,i.center.y,i.center.z);for(var l=0;l<3;l++){var f=n.Vec3.dot(o,u[l]);f>h[l]&&(f=h[l]),f<-h[l]&&(f=-h[l]),t.x+=f*u[l].x,t.y+=f*u[l].y,t.z+=f*u[l].z}return t},i.pt_point_plane=function(t,e,i){var r=f(e,i);return n.Vec3.subtract(t,e,n.Vec3.multiplyScalar(t,i.n,r))};var n=t("../value-types"),r=new n.Vec3,s=new n.Vec3,a=new n.Vec3,o=new n.Vec3,c=new n.Vec3,l=new n.Vec3,u=new Array(3),h=new Array(3);function f(t,e){return n.Vec3.dot(e.n,t)-e.d}}),{"../value-types":250}],140:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0,i.default={SHAPE_RAY:1,SHAPE_LINE:2,SHAPE_SPHERE:4,SHAPE_AABB:8,SHAPE_OBB:16,SHAPE_PLANE:32,SHAPE_TRIANGLE:64,SHAPE_FRUSTUM:128,SHAPE_FRUSTUM_ACCURATE:256},e.exports=i.default}),{}],141:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=t("../value-types"),r=a(t("./enums")),s=a(t("./plane"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i=0;i0&&d=0;r--)t(n[r],i);i(e)}function e(t,e){return t.distance-e.distance}function i(t,e,i){var n=i.m,r=e.x,s=e.y,a=e.z,o=n[3]*r+n[7]*s+n[11]*a;return o=o?1/o:1,t.x=(n[0]*r+n[4]*s+n[8]*a)*o,t.y=(n[1]*r+n[5]*s+n[9]*a)*o,t.z=(n[2]*r+n[6]*s+n[10]*a)*o,t}var n=new r.default(function(){return{distance:0,node:null}},1),o=[],c=a.default.create(),u=new s.Vec3,h=new s.Vec3,f=new l.default,d=cc.mat4(),_=cc.mat4(),p=new s.Vec3;function v(t){return t>0&&t<1/0}return function(r,l,g,m){return n.reset(),o.length=0,t(r=r||cc.director.getScene(),(function(t){if(!m||m(t)){s.Mat4.invert(_,t.getWorldMatrix(d)),s.Vec3.transformMat4(f.o,l.o,_),s.Vec3.normalize(f.d,i(f.d,l.d,_));var e=1/0,r=t._renderComponent;if(r instanceof cc.MeshRenderer?e=B(f,r._boundingBox):t.width&&t.height&&(s.Vec3.set(u,-t.width*t.anchorX,-t.height*t.anchorY,t.z),s.Vec3.set(h,t.width*(1-t.anchorX),t.height*(1-t.anchorY),t.z),a.default.fromPoints(c,u,h),e=B(f,c)),v(e)&&(g&&(e=g(f,t,e)),v(e))){s.Vec3.scale(p,f.d,e),i(p,p,d);var y=n.add();y.node=t,y.distance=s.Vec3.mag(p),o.push(y)}}})),o.sort(e),o}})(),I=(d=new s.Vec3(0,0,0),function(t,e){var i=s.Vec3.dot(t.d,e.n);if(Math.abs(i)1?0:i}),D=(function(){var t=new s.Vec3(0,0,0),e=new s.Vec3(0,0,0),i=new s.Vec3(0,0,0),n=new s.Vec3(0,0,0),r=new s.Vec3(0,0,0);return function(a,o,c){s.Vec3.subtract(t,o.b,o.a),s.Vec3.subtract(e,o.c,o.a),s.Vec3.cross(i,a.d,e);var l=s.Vec3.dot(t,i);if(l-Number.EPSILON))return 0;var u=1/l;s.Vec3.subtract(n,a.o,o.a);var h=s.Vec3.dot(n,i)*u;if(h<0||h>1)return 0;s.Vec3.cross(r,n,t);var f=s.Vec3.dot(a.d,r)*u;if(f<0||h+f>1)return 0;var d=s.Vec3.dot(e,r)*u;return d<0?0:d}})(),L=D,P=(function(){var t=new s.Vec3(0,0,0),e=new s.Vec3(0,0,0),i=new s.Vec3(0,0,0),n=new s.Vec3(0,0,0),r=new s.Vec3(0,0,0),a=new s.Vec3(0,0,0);return function(o,c,l){s.Vec3.subtract(t,c.b,c.a),s.Vec3.subtract(e,c.c,c.a),s.Vec3.subtract(i,o.s,o.e),s.Vec3.cross(r,t,e);var u=s.Vec3.dot(i,r);if(u<=0)return 0;s.Vec3.subtract(n,o.s,c.a);var h=s.Vec3.dot(n,r);if(h<0||h>u)return 0;s.Vec3.cross(a,i,n);var f=s.Vec3.dot(e,a);if(f<0||f>u)return 0;var d=-s.Vec3.dot(t,a);if(d<0||f+d>u)return 0;if(l){var _=1/u,p=1-(f*=_)-(d*=_);s.Vec3.set(l,c.a.x*p+c.b.x*f+c.c.x*d,c.a.y*p+c.b.y*f+c.c.y*d,c.a.z*p+c.b.z*f+c.c.z*d)}return 1}})(),N=(p=new s.Vec3(0,0,0),v=new s.Vec3(0,0,0),g=new s.Vec3(0,0,0),m=new s.Vec3(0,0,0),y=new s.Vec3(0,0,0),T=new s.Vec3(0,0,0),E=new s.Vec3(0,0,0),function(t,e,i,n,r,a,o){s.Vec3.subtract(p,e,t),s.Vec3.subtract(v,i,t),s.Vec3.subtract(g,n,t),s.Vec3.subtract(m,r,t),s.Vec3.cross(T,m,p);var c=s.Vec3.dot(v,T);if(c>=0){var l=-s.Vec3.dot(g,T);if(l<0)return 0;var u=s.Vec3.dot(s.Vec3.cross(E,p,g),v);if(u<0)return 0;if(o){var h=1/(l+c+u);l*=h,c*=h,u*=h,s.Vec3.set(o,i.x*l+n.x*c+r.x*u,i.y*l+n.y*c+r.y*u,i.z*l+n.z*c+r.z*u)}}else{s.Vec3.subtract(y,a,t);var f=s.Vec3.dot(y,T);if(f<0)return 0;var d=s.Vec3.dot(s.Vec3.cross(E,p,v),y);if(d<0)return 0;if(o){var _=1/(f+(c=-c)+d);f*=_,c*=_,d*=_,s.Vec3.set(o,i.x*f+a.x*c+r.x*d,i.y*f+a.y*c+r.y*d,i.z*f+a.z*c+r.z*d)}}return 1}),F=(function(){var t=new s.Vec3(0,0,0);return function(e,i){var n=i.radius,r=i.center,a=e.o,o=e.d,c=n*n;s.Vec3.subtract(t,r,a);var l=t.lengthSqr(),u=s.Vec3.dot(t,o),h=c-(l-u*u);if(h<0)return 0;var f=Math.sqrt(h),d=lp?0:_}),k=B,V=(function(){var t=new s.Vec3,e=new s.Vec3,i=new s.Vec3,n=new s.Vec3,r=new s.Vec3,a=new s.Vec3,o=new s.Vec3,c=new Array(3),l=new Array(3),u=new Array(3),h=new Array(6);return function(f,d){c[0]=d.halfExtents.x,c[1]=d.halfExtents.y,c[2]=d.halfExtents.z,t=d.center,e=f.o,i=f.d;var _=d.orientation.m;s.Vec3.set(n,_[0],_[1],_[2]),s.Vec3.set(r,_[3],_[4],_[5]),s.Vec3.set(a,_[6],_[7],_[8]),s.Vec3.subtract(o,t,e),l[0]=s.Vec3.dot(n,i),l[1]=s.Vec3.dot(r,i),l[2]=s.Vec3.dot(a,i),u[0]=s.Vec3.dot(n,o),u[1]=s.Vec3.dot(r,o),u[2]=s.Vec3.dot(a,o);for(var p=0;p<3;++p){if(0===l[p]){if(-u[p]-c[p]>0||-u[p]+c[p]<0)return 0;l[p]=1e-7}h[2*p+0]=(u[p]+c[p])/l[p],h[2*p+1]=(u[p]-c[p])/l[p]}var v=Math.max(Math.max(Math.min(h[0],h[1]),Math.min(h[2],h[3])),Math.min(h[4],h[5])),g=Math.min(Math.min(Math.max(h[0],h[1]),Math.max(h[2],h[3])),Math.max(h[4],h[5]));return g<0||v>g||v<0?0:v}})(),U=(x=new s.Vec3,b=new s.Vec3,S=new s.Vec3,w=new s.Vec3,function(t,e){return s.Vec3.subtract(x,t.center,t.halfExtents),s.Vec3.add(b,t.center,t.halfExtents),s.Vec3.subtract(S,e.center,e.halfExtents),s.Vec3.add(w,e.center,e.halfExtents),x.x<=w.x&&b.x>=S.x&&x.y<=w.y&&b.y>=S.y&&x.z<=w.z&&b.z>=S.z});function z(t,e,i){s.Vec3.set(i[0],t.x,e.y,e.z),s.Vec3.set(i[1],t.x,e.y,t.z),s.Vec3.set(i[2],t.x,t.y,e.z),s.Vec3.set(i[3],t.x,t.y,t.z),s.Vec3.set(i[4],e.x,e.y,e.z),s.Vec3.set(i[5],e.x,e.y,t.z),s.Vec3.set(i[6],e.x,t.y,e.z),s.Vec3.set(i[7],e.x,t.y,t.z)}function H(t,e,i,n,r,a){s.Vec3.set(a[0],t.x+i.x*e.x+n.x*e.y+r.x*e.z,t.y+i.y*e.x+n.y*e.y+r.y*e.z,t.z+i.z*e.x+n.z*e.y+r.z*e.z),s.Vec3.set(a[1],t.x-i.x*e.x+n.x*e.y+r.x*e.z,t.y-i.y*e.x+n.y*e.y+r.y*e.z,t.z-i.z*e.x+n.z*e.y+r.z*e.z),s.Vec3.set(a[2],t.x+i.x*e.x-n.x*e.y+r.x*e.z,t.y+i.y*e.x-n.y*e.y+r.y*e.z,t.z+i.z*e.x-n.z*e.y+r.z*e.z),s.Vec3.set(a[3],t.x+i.x*e.x+n.x*e.y-r.x*e.z,t.y+i.y*e.x+n.y*e.y-r.y*e.z,t.z+i.z*e.x+n.z*e.y-r.z*e.z),s.Vec3.set(a[4],t.x-i.x*e.x-n.x*e.y-r.x*e.z,t.y-i.y*e.x-n.y*e.y-r.y*e.z,t.z-i.z*e.x-n.z*e.y-r.z*e.z),s.Vec3.set(a[5],t.x+i.x*e.x-n.x*e.y-r.x*e.z,t.y+i.y*e.x-n.y*e.y-r.y*e.z,t.z+i.z*e.x-n.z*e.y-r.z*e.z),s.Vec3.set(a[6],t.x-i.x*e.x+n.x*e.y-r.x*e.z,t.y-i.y*e.x+n.y*e.y-r.y*e.z,t.z-i.z*e.x+n.z*e.y-r.z*e.z),s.Vec3.set(a[7],t.x-i.x*e.x-n.x*e.y+r.x*e.z,t.y-i.y*e.x-n.y*e.y+r.y*e.z,t.z-i.z*e.x-n.z*e.y+r.z*e.z)}function W(t,e){for(var i=s.Vec3.dot(e,t[0]),n=i,r=1;r<8;++r){var a=s.Vec3.dot(e,t[r]);i=an?a:n}return[i,n]}var G,Y=(function(){for(var t=new Array(15),e=0;e<15;e++)t[e]=new s.Vec3(0,0,0);for(var i=new Array(8),n=new Array(8),r=0;r<8;r++)i[r]=new s.Vec3(0,0,0),n[r]=new s.Vec3(0,0,0);var a=new s.Vec3,o=new s.Vec3;return function(e,r){var c=r.orientation.m;s.Vec3.set(t[0],1,0,0),s.Vec3.set(t[1],0,1,0),s.Vec3.set(t[2],0,0,1),s.Vec3.set(t[3],c[0],c[1],c[2]),s.Vec3.set(t[4],c[3],c[4],c[5]),s.Vec3.set(t[5],c[6],c[7],c[8]);for(var l=0;l<3;++l)s.Vec3.cross(t[6+3*l],t[l],t[0]),s.Vec3.cross(t[7+3*l],t[l],t[1]),s.Vec3.cross(t[7+3*l],t[l],t[2]);s.Vec3.subtract(a,e.center,e.halfExtents),s.Vec3.add(o,e.center,e.halfExtents),z(a,o,i),H(r.center,r.halfExtents,t[3],t[4],t[5],n);for(var u=0;u<15;++u){var h=W(i,t[u]),f=W(n,t[u]);if(f[0]>h[1]||h[0]>f[1])return 0}return 1}})(),X=function(t,e){var i=t.halfExtents.x*Math.abs(e.n.x)+t.halfExtents.y*Math.abs(e.n.y)+t.halfExtents.z*Math.abs(e.n.z),n=s.Vec3.dot(e.n,t.center);return n+ie.d?0:1},j=function(t,e){for(var i=0;in.halfExtents.x?e++:t[u].x<-n.halfExtents.x&&i++;if(e===r.vertices.length||i===r.vertices.length)return 0;e=0,i=0;for(var h=0;hn.halfExtents.y?e++:t[h].y<-n.halfExtents.y&&i++;if(e===r.vertices.length||i===r.vertices.length)return 0;e=0,i=0;for(var f=0;fn.halfExtents.z?e++:t[f].z<-n.halfExtents.z&&i++;return e===r.vertices.length||i===r.vertices.length?0:1}})(),Z=(function(){var t=new s.Vec3(0,0,0),e=new s.Mat3;return function(i,n){return s.Vec3.subtract(t,n,i.center),s.Vec3.transformMat3(t,t,s.Mat3.transpose(e,i.orientation)),r=t,a=i.halfExtents,Math.abs(r.x)e.d?0:1}),Q=function(t,e){for(var i=0;ir.halfExtents.x?i++:e<-r.halfExtents.x&&n++;if(i===o.vertices.length||n===o.vertices.length)return 0;i=0,n=0;for(var _=0;_r.halfExtents.y?i++:e<-r.halfExtents.y&&n++;if(i===o.vertices.length||n===o.vertices.length)return 0;i=0,n=0;for(var p=0;pr.halfExtents.z?i++:e<-r.halfExtents.z&&n++;return i===o.vertices.length||n===o.vertices.length?0:1}})(),$=(function(){for(var t=new Array(15),e=0;e<15;e++)t[e]=new s.Vec3(0,0,0);for(var i=new Array(8),n=new Array(8),r=0;r<8;r++)i[r]=new s.Vec3(0,0,0),n[r]=new s.Vec3(0,0,0);return function(e,r){var a=e.orientation.m,o=r.orientation.m;s.Vec3.set(t[0],a[0],a[1],a[2]),s.Vec3.set(t[1],a[3],a[4],a[5]),s.Vec3.set(t[2],a[6],a[7],a[8]),s.Vec3.set(t[3],o[0],o[1],o[2]),s.Vec3.set(t[4],o[3],o[4],o[5]),s.Vec3.set(t[5],o[6],o[7],o[8]);for(var c=0;c<3;++c)s.Vec3.cross(t[6+3*c],t[c],t[0]),s.Vec3.cross(t[7+3*c],t[c],t[1]),s.Vec3.cross(t[7+3*c],t[c],t[2]);H(e.center,e.halfExtents,t[0],t[1],t[2],i),H(r.center,r.halfExtents,t[3],t[4],t[5],n);for(var l=0;l<15;++l){var u=W(i,t[l]),h=W(n,t[l]);if(h[0]>u[1]||u[0]>h[1])return 0}return 1}})(),tt=function(t,e){var i=s.Vec3.dot(e.n,t.center),n=t.radius*e.n.length();return i+ne.d?0:1},et=function(t,e){for(var i=0;iu)){s.Vec3.add(t,c,s.Vec3.multiplyScalar(t,l,o));for(var f=0;f<6;f++)if(f!==r&&f!==r+e[r]){var d=n.planes[f];if(s.Vec3.dot(d.n,t)0&&(t.d=e.d/i),t},t.prototype.transform=function(t){r.Mat4.invert(c,t),r.Mat4.transpose(c,c),r.Vec4.set(l,this.n.x,this.n.y,this.n.z,this.d),r.Vec4.transformMat4(l,l,c),r.Vec3.set(this.n,l.x,l.y,l.z),this.d=l.w},t})();i.default=u,e.exports=i.default}),{"../value-types":250,"./enums":140}],147:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("../value-types"),s=(n=t("./enums"))&&n.__esModule?n:{default:n},a=(function(){function t(t,e,i,n,a,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===a&&(a=0),void 0===o&&(o=-1),this.o=void 0,this.d=void 0,this._type=void 0,this._type=s.default.SHAPE_RAY,this.o=new r.Vec3(t,e,i),this.d=new r.Vec3(n,a,o)}return t.create=function(e,i,n,r,s,a){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===s&&(s=0),void 0===a&&(a=1),new t(e,i,n,r,s,a)},t.clone=function(e){return new t(e.o.x,e.o.y,e.o.z,e.d.x,e.d.y,e.d.z)},t.copy=function(t,e){return r.Vec3.copy(t.o,e.o),r.Vec3.copy(t.d,e.d),t},t.fromPoints=function(t,e,i){return r.Vec3.copy(t.o,e),r.Vec3.normalize(t.d,r.Vec3.subtract(t.d,i,e)),t},t.set=function(t,e,i,n,r,s,a){return t.o.x=e,t.o.y=i,t.o.z=n,t.d.x=r,t.d.y=s,t.d.z=a,t},t.prototype.computeHit=function(t,e){r.Vec3.normalize(t,this.d),r.Vec3.scaleAndAdd(t,this.o,t,e)},t})();i.default=a,e.exports=i.default}),{"../value-types":250,"./enums":140}],148:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("../value-types"),s=(n=t("./enums"))&&n.__esModule?n:{default:n},a=new r.Vec3,o=(function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),this.center=void 0,this.radius=void 0,this._type=void 0,this._type=s.default.SHAPE_SPHERE,this.center=new r.Vec3(t,e,i),this.radius=n}t.create=function(e,i,n,r){return new t(e,i,n,r)},t.clone=function(e){return new t(e.center.x,e.center.y,e.center.z,e.radius)},t.copy=function(t,e){return r.Vec3.copy(t.center,e.center),t.radius=e.radius,t},t.fromPoints=function(t,e,i){return r.Vec3.multiplyScalar(t.center,r.Vec3.add(a,e,i),.5),t.radius=.5*r.Vec3.subtract(a,i,e).len(),t},t.set=function(t,e,i,n,r){return t.center.x=e,t.center.y=i,t.center.z=n,t.radius=r,t};var e=t.prototype;return e.clone=function(){return t.clone(this)},e.copy=function(e){return t.copy(this,e)},e.getBoundary=function(t,e){r.Vec3.set(t,this.center.x-this.radius,this.center.y-this.radius,this.center.z-this.radius),r.Vec3.set(e,this.center.x+this.radius,this.center.y+this.radius,this.center.z+this.radius)},e.transform=function(t,e,i,n,s){r.Vec3.transformMat4(s.center,this.center,t),s.radius=this.radius*n.maxAxis()},e.translateAndRotate=function(t,e,i){r.Vec3.transformMat4(i.center,this.center,t)},e.setScale=function(t,e){e.radius=this.radius*t.maxAxis()},t})();i.default=o,e.exports=i.default}),{"../value-types":250,"./enums":140}],149:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=s(t("../value-types/vec3")),r=s(t("./enums"));function s(t){return t&&t.__esModule?t:{default:t}}var a=(function(){function t(t,e,i,s,a,o,c,l,u){this.a=void 0,this.b=void 0,this.c=void 0,this._type=void 0,this.a=new n.default(t,e,i),this.b=new n.default(s,a,o),this.c=new n.default(c,l,u),this._type=r.default.SHAPE_TRIANGLE}return t.create=function(e,i,n,r,s,a,o,c,l){return new t(e,i,n,r,s,a,o,c,l)},t.clone=function(e){return new t(e.a.x,e.a.y,e.a.z,e.b.x,e.b.y,e.b.z,e.c.x,e.c.y,e.c.z)},t.copy=function(t,e){return n.default.copy(t.a,e.a),n.default.copy(t.b,e.b),n.default.copy(t.c,e.c),t},t.fromPoints=function(t,e,i,r){return n.default.copy(t.a,e),n.default.copy(t.b,i),n.default.copy(t.c,r),t},t.set=function(t,e,i,n,r,s,a,o,c,l){return t.a.x=e,t.a.y=i,t.a.z=n,t.b.x=r,t.b.y=s,t.b.z=a,t.c.x=o,t.c.y=c,t.c.z=l,t},t})();i.default=a,e.exports=i.default}),{"../value-types/vec3":260,"./enums":140}],150:[(function(t,e){"use strict";var i=t("../components/CCRenderComponent"),n=t("../assets/material/CCMaterial"),r=t("./types"),s=r.LineCap,a=r.LineJoin,o=cc.Class({name:"cc.Graphics",extends:i,editor:!1,ctor:function(){this._impl=new o._Impl(this)},properties:{_lineWidth:2,_strokeColor:cc.Color.BLACK,_lineJoin:a.MITER,_lineCap:s.BUTT,_fillColor:cc.Color.WHITE,_miterLimit:10,lineWidth:{get:function(){return this._lineWidth},set:function(t){this._lineWidth=t,this._impl.lineWidth=t}},lineJoin:{get:function(){return this._lineJoin},set:function(t){this._lineJoin=t,this._impl.lineJoin=t},type:a},lineCap:{get:function(){return this._lineCap},set:function(t){this._lineCap=t,this._impl.lineCap=t},type:s},strokeColor:{get:function(){return this._strokeColor},set:function(t){this._impl.strokeColor=this._strokeColor=cc.color(t)}},fillColor:{get:function(){return this._fillColor},set:function(t){this._impl.fillColor=this._fillColor=cc.color(t)}},miterLimit:{get:function(){return this._miterLimit},set:function(t){this._miterLimit=t,this._impl.miterLimit=t}}},statics:{LineJoin:a,LineCap:s},onRestore:function(){this._impl||(this._impl=new o._Impl(this))},onDestroy:function(){this.clear(!0),this._super(),this._impl=null},_getDefaultMaterial:function(){return n.getBuiltinMaterial("2d-graphics")},_updateMaterial:function(){var t=this._materials[0];t&&(void 0!==t.getDefine("CC_USE_MODEL")&&t.define("CC_USE_MODEL",!0),void 0!==t.getDefine("CC_SUPPORT_standard_derivatives")&&cc.sys.glExtension("OES_standard_derivatives")&&t.define("CC_SUPPORT_standard_derivatives",!0))},moveTo:function(t,e){this._impl.moveTo(t,e)},lineTo:function(t,e){this._impl.lineTo(t,e)},bezierCurveTo:function(t,e,i,n,r,s){this._impl.bezierCurveTo(t,e,i,n,r,s)},quadraticCurveTo:function(t,e,i,n){this._impl.quadraticCurveTo(t,e,i,n)},arc:function(t,e,i,n,r,s){this._impl.arc(t,e,i,n,r,s)},ellipse:function(t,e,i,n){this._impl.ellipse(t,e,i,n)},circle:function(t,e,i){this._impl.circle(t,e,i)},rect:function(t,e,i,n){this._impl.rect(t,e,i,n)},roundRect:function(t,e,i,n,r){this._impl.roundRect(t,e,i,n,r)},fillRect:function(t,e,i,n){this.rect(t,e,i,n),this.fill()},clear:function(t){this._impl.clear(t),this._assembler&&this._assembler.clear(t)},close:function(){this._impl.close()},stroke:function(){this._assembler||this._resetAssembler(),this._assembler.stroke(this)},fill:function(){this._assembler||this._resetAssembler(),this._assembler.fill(this)}});cc.Graphics=e.exports=o,cc.Graphics.Types=r,cc.Graphics.Helper=t("./helper")}),{"../assets/material/CCMaterial":77,"../components/CCRenderComponent":109,"./helper":151,"./types":153}],151:[(function(t,e){"use strict";var i=t("./types").PointFlags,n=Math.PI,r=Math.min,s=Math.max,a=Math.cos,o=Math.sin,c=Math.abs,l=Math.sign,u=.5522847493;e.exports={arc:function(t,e,i,l,u,h,f){var d,_,p,v=0,g=0,m=0,y=0,T=0,E=0,A=0,C=0,x=0,b=0,S=0,w=0,R=0;if(g=h-u,f=f||!1)if(c(g)>=2*n)g=2*n;else for(;g<0;)g+=2*n;else if(c(g)>=2*n)g=2*-n;else for(;g>0;)g-=2*n;for(p=0|s(1,r(c(g)/(.5*n)+.5,5)),m=c(4/3*(1-a(d=g/p/2))/o(d)),f||(m=-m),_=0;_<=p;_++)E=e+(y=a(v=u+g*(_/p)))*l,A=i+(T=o(v))*l,C=-T*l*m,x=y*l*m,0===_?t.moveTo(E,A):t.bezierCurveTo(b+w,S+R,E-C,A-x,E,A),b=E,S=A,w=C,R=x},ellipse:function(t,e,i,n,r){t.moveTo(e-n,i),t.bezierCurveTo(e-n,i+r*u,e-n*u,i+r,e,i+r),t.bezierCurveTo(e+n*u,i+r,e+n,i+r*u,e+n,i),t.bezierCurveTo(e+n,i-r*u,e+n*u,i-r,e,i-r),t.bezierCurveTo(e-n*u,i-r,e-n,i-r*u,e-n,i),t.close()},roundRect:function(t,e,i,n,s,a){if(a<.1)t.rect(e,i,n,s);else{var o=r(a,.5*c(n))*l(n),h=r(a,.5*c(s))*l(s);t.moveTo(e,i+h),t.lineTo(e,i+s-h),t.bezierCurveTo(e,i+s-h*(1-u),e+o*(1-u),i+s,e+o,i+s),t.lineTo(e+n-o,i+s),t.bezierCurveTo(e+n-o*(1-u),i+s,e+n,i+s-h*(1-u),e+n,i+s-h),t.lineTo(e+n,i+h),t.bezierCurveTo(e+n,i+h*(1-u),e+n-o*(1-u),i,e+n-o,i),t.lineTo(e+o,i),t.bezierCurveTo(e+o*(1-u),i,e,i+h*(1-u),e,i+h),t.close()}},tesselateBezier:function t(e,n,r,s,a,o,l,u,h,f,d){var _,p,v,g,m,y,T,E,A,C,x,b,S,w,R,M;f>10||(m=.5*(o+u),y=.5*(l+h),T=.5*((_=.5*(n+s))+(v=.5*(s+o))),E=.5*((p=.5*(r+a))+(g=.5*(a+l))),((R=c((s-u)*(w=h-r)-(a-h)*(S=u-n)))+(M=c((o-u)*w-(l-h)*S)))*(R+M)0){for(var p=new DataView(i,r),v=n,g=c.num,m=0;m0||this.disableRender()},_updateMaterial:function(){var t=this.textures;if(t&&t.length>0)for(var e=this._getDefaultMaterial(),i=0;i>2,d=u.vertexOffset,_=l._vData,p=l._iData;!i.worldMatDirty&&this._worldDatas[n]||this._updateWorldVertices(n,a,r,s,t.node._worldMatrix),_.set(this._worldDatas[n],f);for(var v=0;v0?a:null,!0);var h=o.prototype;if(e&&(u||(i.extend(o,e),h=o.prototype),o.$super=e),n){for(var f=n.length-1;f>=0;f--){var d=n[f];p(h,d.prototype),p(o,d,(function(t){return d.hasOwnProperty(t)&&!0})),R._isCCClass(d)&&p(s.getClassAttrs(o),s.getClassAttrs(d))}h.constructor=o}return u||(h.__initProps__=A),i.setClassName(t,o),o}function g(t,e,n,r){var s=cc.Component,a=cc._RF.peek();if(a&&i.isChildClassOf(e,s)){if(i.isChildClassOf(a.cls,s))return cc.errorID(3615),null;t=t||a.script}var o=v(t,e,n,r);if(a)if(i.isChildClassOf(e,s)){var c=a.uuid;c&&i._setClassId(c,o),a.cls=o}else i.isChildClassOf(a.cls,s)||(a.cls=o);return o}function m(t){for(var e=i.getClassName(t),n=t.constructor,r="new "+e+"(",s=0;s0){var a="].apply(this,arguments);\n";if(1===s)r+="CCClass.__ctors__[0"+a;else{r+="var cs=CCClass.__ctors__;\n";for(var o=0;o=0)){var s=e[r];if("function"==typeof s){var a=i.getPropertyDescriptor(t.prototype,r);if(a){var o=a.value;if("function"==typeof o){b.test(s)&&(n=!0,e[r]=(function(t,e){return function(){var i=this._super;this._super=t;var n=e.apply(this,arguments);return this._super=i,n}})(o,s));continue}}}}return n}function w(t,e,i,n,r,c){if(t.__props__=[],n&&n.__props__&&(t.__props__=n.__props__.slice()),r)for(var l=0;l=0)){var d=t[f];o.validateMethodWithProps(d,f,e,s,n)&&i.value(s.prototype,f,d,!0,!0)}var _=t.editor;return _&&cc.Component._registerEditorProps(s,_),s}/xyz/.test((function(){xyz})),R._isCCClass=function(t){return t&&t.hasOwnProperty("__ctors__")},R._fastDefine=function(t,e,n){i.setClassName(t,e);for(var r=e.__props__=e.__values__=Object.keys(n),o=s.getClassAttrs(e),c=0;c=2&&((o||l())[c+"min"]=f[0],o[c+"max"]=f[1],f.length>2&&(o[c+"step"]=f[2])),h("min","number"),h("max","number"),h("step","number"),h("userData","object")}cc.Class=R,e.exports={isArray:function(t){return t=_(t),Array.isArray(t)},fastDefine:R._fastDefine,getNewValueTypeCode:m,IDENTIFIER_RE:E,escapeForJS:y,getDefault:_}}),{"./CCEnum":163,"./attribute":173,"./js":182,"./preprocess-class":183,"./requiring-frame":184,"./utils":185}],162:[(function(t,e){"use strict";t("./CCClass");var i=t("./preprocess-class"),n=t("./js"),r="__ccclassCache__";function s(t){return t}function a(t,e){return t[e]||(t[e]={})}function o(t){return function(e){return"function"==typeof e?t(e):function(i){return t(i,e)}}}function c(t,e){return function(t){return function(i){return e(i,t)}}}var l=c.bind(null,!1);function u(){return c.bind(null,!1)}var h=u(),f=u();function d(t){return a(t,r)}function _(t){var e;try{e=t()}catch(i){return t}return"object"!=typeof e||null===e?e:t}function p(t){var e;try{e=new t}catch(i){return{}}return e}function v(t,e,r,s,a,o){var c,l=a&&(a.get||a.set);s&&(c=i.getFullFormOfProperty(s,l));var u=e[r],h=n.mixin(u||{},c||s||{});if(l)a.get&&(h.get=a.get),a.set&&(h.set=a.set);else{var f=void 0;if(a)a.initializer&&(f=_(a.initializer));else{var d=o.default||(o.default=p(t));d.hasOwnProperty(r)&&(f=d[r])}h.default=f}e[r]=h}var g=o((function(t,e){var i=n.getSuper(t);i===Object&&(i=null);var s={name:e,extends:i,ctor:t,__ES6__:!0},a=t[r];if(a){var o=a.proto;o&&n.mixin(s,o),t[r]=void 0}return cc.Class(s)}));function m(t,e,i){return t((function(t,n){var r=d(t);if(r){var s=void 0!==i?i:n,o=a(r,"proto");a(o,"editor")[e]=s}}),e)}function y(t){return t(s)}var T=y(o),E=m(l,"requireComponent"),A=y(h),C=m(f,"executionOrder"),x=y(o),b=y(o),S=y(h),w=y(h),R=y(h);cc._decorator=e.exports={ccclass:g,property:function(t,e,i){var n=null;function r(t,e,i){var r=d(t.constructor);if(r){var s=a(r,"proto"),o=a(s,"properties");v(t.constructor,o,e,n,i,r)}}if(void 0===e)return n=t,r;r(t,e,i)},executeInEditMode:T,requireComponent:E,menu:A,executionOrder:C,disallowMultiple:x,playOnFocus:b,inspector:S,icon:w,help:R,mixins:function(){for(var t=[],e=0;ee){var u=l.getID();delete a[u],delete o[u],this._touchCount--,-1===r?(r=c,this._indexBitsUsed|=1<>=1}return r},_glView:null,_updateCanvasBoundingRect:function(){var t=cc.game.canvas,e=this._canvasBoundingRect,i=document.documentElement,n=window.pageXOffset-i.clientLeft,r=window.pageYOffset-i.clientTop;if(t.getBoundingClientRect){var s=t.getBoundingClientRect();e.left=s.left+n,e.top=s.top+r,e.width=s.width,e.height=s.height}else t instanceof HTMLCanvasElement?(e.left=n,e.top=r,e.width=t.width,e.height=t.height):(e.left=n,e.top=r,e.width=parseInt(t.style.width),e.height=parseInt(t.style.height))},handleTouchesBegin:function(t){for(var e,i,s=n.now(),a=[],o=this._touches,c=this._touchesIntegerDict,l=this._touchesCache,u=0,h=t.length;u0){this._glView._convertTouchesWithScale(a);var _=new cc.Event.EventTouch(a);_._eventCode=cc.Event.EventTouch.BEGAN,r.dispatchEvent(_)}},handleTouchesMove:function(t){for(var e,i,s=n.now(),a=[],o=this._touches,c=this._touchesIntegerDict,l=0,u=t.length;l0){this._glView._convertTouchesWithScale(a);var f=new cc.Event.EventTouch(a);f._eventCode=cc.Event.EventTouch.MOVED,r.dispatchEvent(f)}},handleTouchesEnd:function(t){var e=this.getSetOfTouchesEndOrCancel(t);if(e.length>0){this._glView._convertTouchesWithScale(e);var i=new cc.Event.EventTouch(e);i._eventCode=cc.Event.EventTouch.ENDED,r.dispatchEvent(i)}this._preTouchPool.length=0},handleTouchesCancel:function(t){var e=this.getSetOfTouchesEndOrCancel(t);if(e.length>0){this._glView._convertTouchesWithScale(e);var i=new cc.Event.EventTouch(e);i._eventCode=cc.Event.EventTouch.CANCELED,r.dispatchEvent(i)}this._preTouchPool.length=0},getSetOfTouchesEndOrCancel:function(t){for(var e,i,n,r=[],s=this._touches,a=this._touchesIntegerDict,o=this._touchesCache,c=0,l=t.length;c=0;r--)if(i[r].getID()===n){e=i[r];break}return e||(e=t),e},setPreTouch:function(t){for(var e=!1,i=this._preTouchPool,n=t.getID(),r=i.length-1;r>=0;r--)if(i[r].getID()===n){i[r]=t,e=!0;break}e||(i.length<=50?i.push(t):(i[this._preTouchPoolPointer]=t,this._preTouchPoolPointer=(this._preTouchPoolPointer+1)%50))},getTouchByXY:function(t,e,i){var n=this._preTouchPoint,r=this._glView.convertToLocationInView(t,e,i),s=new cc.Touch(r.x,r.y,0);return s._setPrevPoint(n.x,n.y),n.x=r.x,n.y=r.y,s},getMouseEvent:function(t,e,i){var n=this._prevMousePoint,r=new cc.Event.EventMouse(i);return r._setPrevCursor(n.x,n.y),n.x=t.x,n.y=t.y,this._glView._convertMouseToLocationInView(n,e),r.setLocation(n.x,n.y),r},getPointByEvent:function(t,e){return cc.sys.browserType!==cc.sys.BROWSER_TYPE_QQ&&cc.sys.browserType!==cc.sys.BROWSER_TYPE_UC&&cc.sys.browserType!==cc.sys.BROWSER_TYPE_SAFARI||this._updateCanvasBoundingRect(),null!=t.pageX?{x:t.pageX,y:t.pageY}:(e.left-=document.body.scrollLeft,e.top-=document.body.scrollTop,{x:t.clientX,y:t.clientY})},getTouchesByEvent:function(t,e){for(var i,r,a,o=[],c=this._glView,l=this._preTouchPoint,u=t.changedTouches.length,h=0;hthis._accelInterval&&(this._accelCurTime-=this._accelInterval,r.dispatchEvent(new cc.Event.EventAcceleration(this._acceleration))),this._accelCurTime+=t}};e.exports=cc.internal.inputManager=a}),{"../event-manager":132,"./CCMacro":166,"./CCSys":170}],166:[(function(t,e){"use strict";cc.macro={RAD:Math.PI/180,DEG:180/Math.PI,REPEAT_FOREVER:Number.MAX_VALUE-1,FLT_EPSILON:1.192092896e-7,MIN_ZINDEX:-Math.pow(2,15),MAX_ZINDEX:Math.pow(2,15)-1,ONE:1,ZERO:0,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,DST_ALPHA:772,DST_COLOR:774,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ORIENTATION_PORTRAIT:1,ORIENTATION_LANDSCAPE:2,ORIENTATION_AUTO:3,DENSITYDPI_DEVICE:"device-dpi",DENSITYDPI_HIGH:"high-dpi",DENSITYDPI_MEDIUM:"medium-dpi",DENSITYDPI_LOW:"low-dpi",FIX_ARTIFACTS_BY_STRECHING_TEXEL_TMX:!0,DIRECTOR_STATS_POSITION:cc.v2(0,0),ENABLE_STACKABLE_ACTIONS:!0,TOUCH_TIMEOUT:5e3,BATCH_VERTEX_COUNT:2e4,ENABLE_TILEDMAP_CULLING:!0,ENABLE_TRANSPARENT_CANVAS:!1,ENABLE_WEBGL_ANTIALIAS:!1,ENABLE_CULLING:!1,CLEANUP_IMAGE_CACHE:!1,SHOW_MESH_WIREFRAME:!1,SHOW_MESH_NORMAL:!1,ENABLE_MULTI_TOUCH:!0,ALLOW_IMAGE_BITMAP:!cc.sys.isMobile,ENABLE_NATIVE_TTF_RENDERER:!0},Object.defineProperty(cc.macro,"ROTATE_ACTION_CCW",{set:function(t){cc.RotateTo&&cc.RotateBy&&(cc.RotateTo._reverse=cc.RotateBy._reverse=t)}}),cc.macro.SUPPORT_TEXTURE_FORMATS=[".pkm",".pvr",".webp",".jpg",".jpeg",".bmp",".png"],cc.macro.KEY={none:0,back:6,menu:18,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pause:19,capslock:20,escape:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,up:38,right:39,down:40,select:41,insert:45,Delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,num0:96,num1:97,num2:98,num3:99,num4:100,num5:101,num6:102,num7:103,num8:104,num9:105,"*":106,"+":107,"-":109,numdel:110,"/":111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,";":186,semicolon:186,equal:187,"=":187,",":188,comma:188,dash:189,".":190,period:190,forwardslash:191,grave:192,"[":219,openbracket:219,backslash:220,"]":221,closebracket:221,quote:222,dpadLeft:1e3,dpadRight:1001,dpadUp:1003,dpadDown:1004,dpadCenter:1005},cc.macro.ImageFormat=cc.Enum({JPG:0,PNG:1,TIFF:2,WEBP:3,PVR:4,ETC:5,S3TC:6,ATITC:7,TGA:8,RAWDATA:9,UNKNOWN:10}),cc.macro.BlendFactor=cc.Enum({ONE:1,ZERO:0,SRC_ALPHA:770,SRC_COLOR:768,DST_ALPHA:772,DST_COLOR:774,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775}),cc.macro.TextAlignment=cc.Enum({LEFT:0,CENTER:1,RIGHT:2}),cc.macro.VerticalTextAlignment=cc.Enum({TOP:0,CENTER:1,BOTTOM:2}),e.exports=cc.macro}),{}],167:[(function(t,e){"use strict";var i=t("./js"),n=t("./CCClass"),r=1;function s(){this._name="",this._objFlags=0}n.fastDefine("cc.Object",s,{_name:"",_objFlags:0}),i.value(s,"Flags",{Destroyed:r,DontSave:8,EditorOnly:16,Dirty:32,DontDestroy:64,PersistentMask:-4192741,Destroying:128,Deactivating:256,LockedInEditor:512,HideInHierarchy:1024,IsPreloadStarted:8192,IsOnLoadStarted:32768,IsOnLoadCalled:16384,IsOnEnableCalled:2048,IsStartCalled:65536,IsEditorOnEnableCalled:4096,IsPositionLocked:1<<21,IsRotationLocked:1<<17,IsScaleLocked:1<<18,IsAnchorLocked:1<<19,IsSizeLocked:1<<20});var a=[];i.value(s,"_deferredDestroy",(function(){for(var t=a.length,e=0;e0)return void(t.webkitEnterFullscreen&&t.webkitEnterFullscreen());t.setAttribute("x5-video-player-fullscreen","true")}if(this._supportsFullScreen){if(t=t||document.documentElement,e){var n=this._fn.fullscreenchange;this._onfullscreenchange&&document.removeEventListener(n,this._onfullscreenchange),this._onfullscreenchange=e,document.addEventListener(n,e,!1)}if(i){var r=this._fn.fullscreenerror;this._onfullscreenerror&&document.removeEventListener(r,this._onfullscreenerror),this._onfullscreenerror=i,document.addEventListener(r,i,{once:!0})}var s=t[this._fn.requestFullscreen]();void 0===document[this._fn.fullscreenerror]&&window.Promise&&s instanceof Promise&&s.catch((function(){}))}},exitFullScreen:function(t){if(t&&"video"===t.tagName.toLowerCase()){if(cc.sys.os===cc.sys.OS_IOS&&cc.sys.isBrowser)return void(t.webkitExitFullscreen&&t.webkitExitFullscreen());t.setAttribute("x5-video-player-fullscreen","false")}return!this._supportsFullScreen||document[this._fn.exitFullscreen]()},autoFullScreen:function(t,e){t=t||document.body,this._ensureFullScreen(t,e),this.requestFullScreen(t,e)},disableAutoFullScreen:function(t){var e=cc.game.canvas||t,i=this._touchEvent;this._preOnTouch&&(e.removeEventListener(i,this._preOnTouch),this._preOnTouch=null)},_ensureFullScreen:function(t,e){var i=this,n=cc.game.canvas||t,r=this._fn.fullscreenerror,s=this._touchEvent;function a(){i._preOnFullScreenError=null,i._preOnTouch&&n.removeEventListener(s,i._preOnTouch),i._preOnTouch=function(){i._preOnTouch=null,i.requestFullScreen(t,e)},n.addEventListener(s,i._preOnTouch,{once:!0})}this._preOnFullScreenError&&t.removeEventListener(r,this._preOnFullScreenError),this._preOnFullScreenError=a,t.addEventListener(r,a,{once:!0})}},cc.screen.init()}),{}],170:[(function(t,e){"use strict";window._CCSettings&&_CCSettings.platform;var i="undefined"==typeof window?global:window,n=cc&&cc.sys?cc.sys:(function(){cc.sys={};var t,e,n=cc.sys;if(n.LANGUAGE_ENGLISH="en",n.LANGUAGE_CHINESE="zh",n.LANGUAGE_FRENCH="fr",n.LANGUAGE_ITALIAN="it",n.LANGUAGE_GERMAN="de",n.LANGUAGE_SPANISH="es",n.LANGUAGE_DUTCH="du",n.LANGUAGE_RUSSIAN="ru",n.LANGUAGE_KOREAN="ko",n.LANGUAGE_JAPANESE="ja",n.LANGUAGE_HUNGARIAN="hu",n.LANGUAGE_PORTUGUESE="pt",n.LANGUAGE_ARABIC="ar",n.LANGUAGE_NORWEGIAN="no",n.LANGUAGE_POLISH="pl",n.LANGUAGE_TURKISH="tr",n.LANGUAGE_UKRAINIAN="uk",n.LANGUAGE_ROMANIAN="ro",n.LANGUAGE_BULGARIAN="bg",n.LANGUAGE_UNKNOWN="unknown",n.OS_IOS="iOS",n.OS_ANDROID="Android",n.OS_WINDOWS="Windows",n.OS_MARMALADE="Marmalade",n.OS_LINUX="Linux",n.OS_BADA="Bada",n.OS_BLACKBERRY="Blackberry",n.OS_OSX="OS X",n.OS_WP8="WP8",n.OS_WINRT="WINRT",n.OS_UNKNOWN="Unknown",n.UNKNOWN=-1,n.WIN32=0,n.LINUX=1,n.MACOS=2,n.ANDROID=3,n.IPHONE=4,n.IPAD=5,n.BLACKBERRY=6,n.NACL=7,n.EMSCRIPTEN=8,n.TIZEN=9,n.WINRT=10,n.WP8=11,n.MOBILE_BROWSER=100,n.DESKTOP_BROWSER=101,n.EDITOR_PAGE=102,n.EDITOR_CORE=103,n.WECHAT_GAME=104,n.QQ_PLAY=105,n.FB_PLAYABLE_ADS=106,n.BAIDU_GAME=107,n.VIVO_GAME=108,n.OPPO_GAME=109,n.HUAWEI_GAME=110,n.XIAOMI_GAME=111,n.JKW_GAME=112,n.ALIPAY_GAME=113,n.WECHAT_GAME_SUB=114,n.BAIDU_GAME_SUB=115,n.QTT_GAME=116,n.BYTEDANCE_GAME=117,n.BYTEDANCE_GAME_SUB=118,n.LINKSURE=119,n.TAOBAO=120,n.BROWSER_TYPE_WECHAT="wechat",n.BROWSER_TYPE_ANDROID="androidbrowser",n.BROWSER_TYPE_IE="ie",n.BROWSER_TYPE_EDGE="edge",n.BROWSER_TYPE_QQ="qqbrowser",n.BROWSER_TYPE_MOBILE_QQ="mqqbrowser",n.BROWSER_TYPE_UC="ucbrowser",n.BROWSER_TYPE_UCBS="ucbs",n.BROWSER_TYPE_360="360browser",n.BROWSER_TYPE_BAIDU_APP="baiduboxapp",n.BROWSER_TYPE_BAIDU="baidubrowser",n.BROWSER_TYPE_MAXTHON="maxthon",n.BROWSER_TYPE_OPERA="opera",n.BROWSER_TYPE_OUPENG="oupeng",n.BROWSER_TYPE_MIUI="miuibrowser",n.BROWSER_TYPE_FIREFOX="firefox",n.BROWSER_TYPE_SAFARI="safari",n.BROWSER_TYPE_CHROME="chrome",n.BROWSER_TYPE_LIEBAO="liebao",n.BROWSER_TYPE_QZONE="qzone",n.BROWSER_TYPE_SOUGOU="sogou",n.BROWSER_TYPE_HUAWEI="huawei",n.BROWSER_TYPE_UNKNOWN="unknown",n.isNative=!1,n.isBrowser="object"==typeof window&&"object"==typeof document&&!0,n.glExtension=function(t){return!!cc.renderer.device.ext(t)},n.getMaxJointMatrixSize=function(){if(!n._maxJointMatrixSize){var t=cc.game._renderContext,e=Math.floor(t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS)/4)-10;n._maxJointMatrixSize=e<50?0:50}return n._maxJointMatrixSize},n.getSafeAreaRect=function(){var t=cc.view.getVisibleSize();return cc.rect(0,0,t.width,t.height)},i.__globalAdapter&&i.__globalAdapter.adaptSys)i.__globalAdapter.adaptSys(n);else{var r=window,s=r.navigator,a=document,o=a.documentElement,c=s.userAgent.toLowerCase();n.isMobile=/mobile|android|iphone|ipad/.test(c),"undefined"!=typeof FbPlayableAd?n.platform=n.FB_PLAYABLE_ADS:n.platform=n.isMobile?n.MOBILE_BROWSER:n.DESKTOP_BROWSER;var l=s.language;l=l||s.browserLanguage,n.languageCode=l.toLowerCase(),l=l?l.split("-")[0]:n.LANGUAGE_ENGLISH,n.language=l;var u=!1,h=!1,f="",d=0,_=/android\s*(\d+(?:\.\d+)*)/i.exec(c)||/android\s*(\d+(?:\.\d+)*)/i.exec(s.platform);_&&(u=!0,f=_[1]||"",d=parseInt(f)||0),(_=/(iPad|iPhone|iPod).*OS ((\d+_?){2,3})/i.exec(c))?(h=!0,f=_[2]||"",d=parseInt(f)||0):(/(iPhone|iPad|iPod)/.exec(s.platform)||"MacIntel"===s.platform&&s.maxTouchPoints&&s.maxTouchPoints>1)&&(h=!0,f="",d=0);var p=n.OS_UNKNOWN;-1!==s.appVersion.indexOf("Win")?p=n.OS_WINDOWS:h?p=n.OS_IOS:-1!==s.appVersion.indexOf("Mac")?p=n.OS_OSX:-1!==s.appVersion.indexOf("X11")&&-1===s.appVersion.indexOf("Linux")?p=n.OS_UNIX:u?p=n.OS_ANDROID:-1===s.appVersion.indexOf("Linux")&&-1===c.indexOf("ubuntu")||(p=n.OS_LINUX),n.os=p,n.osVersion=f,n.osMainVersion=d,n.browserType=n.BROWSER_TYPE_UNKNOWN,(function(){var t=/mqqbrowser|micromessenger|qqbrowser|sogou|qzone|liebao|maxthon|ucbs|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|mxbrowser|miuibrowser/i.exec(c)||/qq|ucbrowser|ubrowser|edge|HuaweiBrowser/i.exec(c)||/chrome|safari|firefox|trident|opera|opr\/|oupeng/i.exec(c),e=t?t[0].toLowerCase():n.BROWSER_TYPE_UNKNOWN;"safari"===e&&u?e=n.BROWSER_TYPE_ANDROID:"qq"===e&&c.match(/android.*applewebkit/i)&&(e=n.BROWSER_TYPE_ANDROID);var i={micromessenger:n.BROWSER_TYPE_WECHAT,trident:n.BROWSER_TYPE_IE,edge:n.BROWSER_TYPE_EDGE,"360 aphone":n.BROWSER_TYPE_360,mxbrowser:n.BROWSER_TYPE_MAXTHON,"opr/":n.BROWSER_TYPE_OPERA,ubrowser:n.BROWSER_TYPE_UC,huaweibrowser:n.BROWSER_TYPE_HUAWEI};"qqbrowser"!==e&&"mqqbrowser"!==e||c.match(/wechat|micromessenger/i)&&(e=n.BROWSER_TYPE_WECHAT),n.browserType=i[e]||e})(),n.browserVersion="",(e=c.match(/(mqqbrowser|micromessenger|qqbrowser|sogou|qzone|liebao|maxthon|uc|ucbs|360 aphone|360|baiduboxapp|baidu|maxthon|mxbrowser|miui(?:.hybrid)?)(mobile)?(browser)?\/?([\d.]+)/i))||(e=c.match(/(qq|chrome|safari|firefox|trident|opera|opr\/|oupeng)(mobile)?(browser)?\/?([\d.]+)/i)),n.browserVersion=e?e[4]:"";var v=window.innerWidth||document.documentElement.clientWidth,g=window.innerHeight||document.documentElement.clientHeight,m=window.devicePixelRatio||1;n.windowPixelResolution={width:m*v,height:m*g},n._checkWebGLRenderMode=function(){if(cc.game.renderType!==cc.game.RENDER_TYPE_WEBGL)throw new Error("This feature supports WebGL render mode only.")};var y=document.createElement("canvas");try{var T=n.localStorage=r.localStorage;T.setItem("storage",""),T.removeItem("storage"),T=null}catch(R){var E=function(){cc.warnID(5200)};n.localStorage={getItem:E,setItem:E,removeItem:E,clear:E}}var A=y.toDataURL("image/webp").startsWith("data:image/webp"),C=!!y.getContext("2d"),x=!1;r.WebGLRenderingContext&&(x=!0);var b,S=n.capabilities={canvas:C,opengl:x,webp:A,imageBitmap:!1};"undefined"!=typeof createImageBitmap&&"undefined"!=typeof Blob&&(y.width=y.height=2,createImageBitmap(y,{}).then((function(t){S.imageBitmap=!0,t.close&&t.close()})).catch((function(){}))),(void 0!==o.ontouchstart||void 0!==a.ontouchstart||s.msPointerEnabled)&&(S.touches=!0),void 0!==o.onmouseup&&(S.mouse=!0),void 0!==o.onkeyup&&(S.keyboard=!0),(r.DeviceMotionEvent||r.DeviceOrientationEvent)&&(S.accelerometer=!0),(function(){n.browserVersion;var t=!!(window.AudioContext||window.webkitAudioContext||window.mozAudioContext);b={ONLY_ONE:!1,WEB_AUDIO:t,DELAY_CREATE_CTX:!1},n.os===n.OS_IOS&&(b.USE_LOADER_EVENT="loadedmetadata"),n.browserType===n.BROWSER_TYPE_FIREFOX&&(b.DELAY_CREATE_CTX=!0,b.USE_LOADER_EVENT="canplay"),n.os===n.OS_ANDROID&&n.browserType===n.BROWSER_TYPE_UC&&(b.ONE_SOURCE=!0)})();try{b.WEB_AUDIO&&(b.context=new(window.AudioContext||window.webkitAudioContext||window.mozAudioContext),b.DELAY_CREATE_CTX&&setTimeout((function(){b.context=new(window.AudioContext||window.webkitAudioContext||window.mozAudioContext)}),0))}catch(M){b.WEB_AUDIO=!1,cc.logID(5201)}var w=[];(t=document.createElement("audio")).canPlayType&&(t.canPlayType('audio/ogg; codecs="vorbis"')&&w.push(".ogg"),t.canPlayType("audio/mpeg")&&w.push(".mp3"),t.canPlayType('audio/wav; codecs="1"')&&w.push(".wav"),t.canPlayType("audio/mp4")&&w.push(".mp4"),t.canPlayType("audio/x-m4a")&&w.push(".m4a")),b.format=w,n.__audioSupport=b}return n.NetworkType={NONE:0,LAN:1,WWAN:2},n.getNetworkType=function(){return n.NetworkType.LAN},n.getBatteryLevel=function(){return 1},n.garbageCollect=function(){},n.restartVM=function(){},n.isObjectValid=function(t){return!!t},n.dump=function(){var t="";t+="isMobile : "+this.isMobile+"\r\n",t+="language : "+this.language+"\r\n",t+="browserType : "+this.browserType+"\r\n",t+="browserVersion : "+this.browserVersion+"\r\n",t+="capabilities : "+JSON.stringify(this.capabilities)+"\r\n",t+="os : "+this.os+"\r\n",t+="osVersion : "+this.osVersion+"\r\n",t+="platform : "+this.platform+"\r\n",t+="Using "+(cc.game.renderType===cc.game.RENDER_TYPE_WEBGL?"WEBGL":"CANVAS")+" renderer.\r\n",cc.log(t)},n.openURL=function(t){window.open(t)},n.now=function(){return Date.now?Date.now():+new Date},n})();e.exports=n}),{}],171:[(function(t,e){"use strict";var i=t("../event/event-target"),n=t("../platform/js"),r=t("../renderer");t("../platform/CCClass");var s={init:function(){this.html=document.getElementsByTagName("html")[0]},availWidth:function(t){return t&&t!==this.html?t.clientWidth:window.innerWidth},availHeight:function(t){return t&&t!==this.html?t.clientHeight:window.innerHeight},meta:{width:"device-width"},adaptationType:cc.sys.browserType};switch(cc.sys.os===cc.sys.OS_IOS&&(s.adaptationType=cc.sys.BROWSER_TYPE_SAFARI),s.adaptationType){case cc.sys.BROWSER_TYPE_SAFARI:case cc.sys.BROWSER_TYPE_SOUGOU:case cc.sys.BROWSER_TYPE_UC:s.meta["minimal-ui"]="true",s.availWidth=function(t){return t.clientWidth},s.availHeight=function(t){return t.clientHeight}}var a=null,o=function(){i.call(this);var t=this,e=cc.ContainerStrategy,n=cc.ContentStrategy;s.init(this),t._frameSize=cc.size(0,0),t._designResolutionSize=cc.size(0,0),t._originalDesignResolutionSize=cc.size(0,0),t._scaleX=1,t._scaleY=1,t._viewportRect=cc.rect(0,0,0,0),t._visibleRect=cc.rect(0,0,0,0),t._autoFullScreen=!1,t._devicePixelRatio=1,t._maxPixelRatio=2,t._retinaEnabled=!1,t._resizeCallback=null,t._resizing=!1,t._resizeWithBrowserSize=!1,t._orientationChanging=!0,t._isRotated=!1,t._orientation=cc.macro.ORIENTATION_AUTO,t._isAdjustViewport=!0,t._antiAliasEnabled=!1,t._resolutionPolicy=null,t._rpExactFit=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.EXACT_FIT),t._rpShowAll=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.SHOW_ALL),t._rpNoBorder=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.NO_BORDER),t._rpFixedHeight=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.FIXED_HEIGHT),t._rpFixedWidth=new cc.ResolutionPolicy(e.EQUAL_TO_FRAME,n.FIXED_WIDTH),cc.game.once(cc.game.EVENT_ENGINE_INITED,this.init,this)};cc.js.extend(o,i),cc.js.mixin(o.prototype,{init:function(){this._initFrameSize();var t=cc.game.canvas.width,e=cc.game.canvas.height;this._designResolutionSize.width=t,this._designResolutionSize.height=e,this._originalDesignResolutionSize.width=t,this._originalDesignResolutionSize.height=e,this._viewportRect.width=t,this._viewportRect.height=e,this._visibleRect.width=t,this._visibleRect.height=e,cc.winSize.width=this._visibleRect.width,cc.winSize.height=this._visibleRect.height,cc.visibleRect&&cc.visibleRect.init(this._visibleRect)},_resizeEvent:function(t){var e;e=this.setDesignResolutionSize?this:cc.view;var i=cc.sys;if(i.browserType!==i.BROWSER_TYPE_UC||i.os!==i.OS_IOS){var n=e._frameSize.width,r=e._frameSize.height,s=e._isRotated;if(cc.sys.isMobile){var a=cc.game.container.style,o=a.margin;a.margin="0",a.display="none",e._initFrameSize(),a.margin=o,a.display="block"}else e._initFrameSize();if(!0===t||e._isRotated!==s||e._frameSize.width!==n||e._frameSize.height!==r){var c=e._originalDesignResolutionSize.width,l=e._originalDesignResolutionSize.height;e._resizing=!0,c>0&&e.setDesignResolutionSize(c,l,e._resolutionPolicy),e._resizing=!1,e.emit("canvas-resize"),e._resizeCallback&&e._resizeCallback.call()}}else setTimeout((function(){e._resizeEvent(t)}),0)},_orientationChange:function(){cc.view._orientationChanging=!0,cc.view._resizeEvent(),cc.sys.browserType===cc.sys.BROWSER_TYPE_SAFARI&&cc.sys.isMobile&&setTimeout((function(){window.innerHeight>window.innerWidth&&window.scrollTo(0,1)}),500)},_resize:function(){cc.view._resizeEvent(!1)},resizeWithBrowserSize:function(t){t?this._resizeWithBrowserSize||(this._resizeWithBrowserSize=!0,window.addEventListener("resize",this._resize),window.addEventListener("orientationchange",this._orientationChange)):this._resizeWithBrowserSize&&(this._resizeWithBrowserSize=!1,window.removeEventListener("resize",this._resize),window.removeEventListener("orientationchange",this._orientationChange))},setResizeCallback:function(t){"function"!=typeof t&&null!=t||(this._resizeCallback=t)},setOrientation:function(t){if((t&=cc.macro.ORIENTATION_AUTO)&&this._orientation!==t){this._orientation=t;var e=this._originalDesignResolutionSize.width,i=this._originalDesignResolutionSize.height;this.setDesignResolutionSize(e,i,this._resolutionPolicy)}},_initFrameSize:function(){var t=this._frameSize,e=s.availWidth(cc.game.frame),i=s.availHeight(cc.game.frame),n=e>=i;!cc.sys.isMobile||n&&this._orientation&cc.macro.ORIENTATION_LANDSCAPE||!n&&this._orientation&cc.macro.ORIENTATION_PORTRAIT?(t.width=e,t.height=i,cc.game.container.style["-webkit-transform"]="rotate(0deg)",cc.game.container.style.transform="rotate(0deg)",this._isRotated=!1):(t.width=i,t.height=e,cc.game.container.style["-webkit-transform"]="rotate(90deg)",cc.game.container.style.transform="rotate(90deg)",cc.game.container.style["-webkit-transform-origin"]="0px 0px 0px",cc.game.container.style.transformOrigin="0px 0px 0px",this._isRotated=!0),this._orientationChanging&&setTimeout((function(){cc.view._orientationChanging=!1}),1e3)},_setViewportMeta:function(t,e){var i=document.getElementById("cocosMetaElement");i&&e&&document.head.removeChild(i);var n,r,s,a=document.getElementsByName("viewport"),o=a?a[0]:null;for(r in n=o?o.content:"",(i=i||document.createElement("meta")).id="cocosMetaElement",i.name="viewport",i.content="",t)-1==n.indexOf(r)?n+=","+r+"="+t[r]:e&&(s=new RegExp(r+"s*=s*[^,]+"),n=n.replace(s,r+"="+t[r]));/^,/.test(n)&&(n=n.substr(1)),i.content=n,o&&(o.content=n),document.head.appendChild(i)},_adjustViewportMeta:function(){this._isAdjustViewport&&(this._setViewportMeta(s.meta,!1),this._isAdjustViewport=!1)},adjustViewportMeta:function(t){this._isAdjustViewport=t},enableRetina:function(t){this._retinaEnabled=!!t},isRetinaEnabled:function(){return this._retinaEnabled},enableAntiAlias:function(t){if(cc.warnID(9200),this._antiAliasEnabled!==t)if(this._antiAliasEnabled=t,cc.game.renderType===cc.game.RENDER_TYPE_WEBGL)cc.assetManager.assets.forEach((function(e){if(e instanceof cc.Texture2D){var i=cc.Texture2D.Filter;t?e.setFilters(i.LINEAR,i.LINEAR):e.setFilters(i.NEAREST,i.NEAREST)}}));else if(cc.game.renderType===cc.game.RENDER_TYPE_CANVAS){var e=cc.game.canvas.getContext("2d");e.imageSmoothingEnabled=t,e.mozImageSmoothingEnabled=t}},isAntiAliasEnabled:function(){return this._antiAliasEnabled},enableAutoFullScreen:function(t){t&&t!==this._autoFullScreen&&cc.sys.isMobile?(this._autoFullScreen=!0,cc.screen.autoFullScreen(cc.game.frame)):(this._autoFullScreen=!1,cc.screen.disableAutoFullScreen(cc.game.frame))},isAutoFullScreenEnabled:function(){return this._autoFullScreen},setCanvasSize:function(t,e){var i=cc.game.canvas,n=cc.game.container;i.width=t*this._devicePixelRatio,i.height=e*this._devicePixelRatio,i.style.width=t+"px",i.style.height=e+"px",n.style.width=t+"px",n.style.height=e+"px",this._resizeEvent()},getCanvasSize:function(){return cc.size(cc.game.canvas.width,cc.game.canvas.height)},getFrameSize:function(){return cc.size(this._frameSize.width,this._frameSize.height)},setFrameSize:function(t,e){this._frameSize.width=t,this._frameSize.height=e,cc.game.frame.style.width=t+"px",cc.game.frame.style.height=e+"px",this._resizeEvent(!0)},getVisibleSize:function(){return cc.size(this._visibleRect.width,this._visibleRect.height)},getVisibleSizeInPixel:function(){return cc.size(this._visibleRect.width*this._scaleX,this._visibleRect.height*this._scaleY)},getVisibleOrigin:function(){return cc.v2(this._visibleRect.x,this._visibleRect.y)},getVisibleOriginInPixel:function(){return cc.v2(this._visibleRect.x*this._scaleX,this._visibleRect.y*this._scaleY)},getResolutionPolicy:function(){return this._resolutionPolicy},setResolutionPolicy:function(t){var e=this;if(t instanceof cc.ResolutionPolicy)e._resolutionPolicy=t;else{var i=cc.ResolutionPolicy;t===i.EXACT_FIT&&(e._resolutionPolicy=e._rpExactFit),t===i.SHOW_ALL&&(e._resolutionPolicy=e._rpShowAll),t===i.NO_BORDER&&(e._resolutionPolicy=e._rpNoBorder),t===i.FIXED_HEIGHT&&(e._resolutionPolicy=e._rpFixedHeight),t===i.FIXED_WIDTH&&(e._resolutionPolicy=e._rpFixedWidth)}},setDesignResolutionSize:function(t,e,i){if(t>0&&e>0){this.setResolutionPolicy(i);var n=this._resolutionPolicy;if(n&&n.preApply(this),cc.sys.isMobile&&this._adjustViewportMeta(),this._orientationChanging=!0,this._resizing||this._initFrameSize(),n){this._originalDesignResolutionSize.width=this._designResolutionSize.width=t,this._originalDesignResolutionSize.height=this._designResolutionSize.height=e;var s=n.apply(this,this._designResolutionSize);if(s.scale&&2===s.scale.length&&(this._scaleX=s.scale[0],this._scaleY=s.scale[1]),s.viewport){var a=this._viewportRect,o=this._visibleRect,c=s.viewport;a.x=c.x,a.y=c.y,a.width=c.width,a.height=c.height,o.x=0,o.y=0,o.width=c.width/this._scaleX,o.height=c.height/this._scaleY}n.postApply(this),cc.winSize.width=this._visibleRect.width,cc.winSize.height=this._visibleRect.height,cc.visibleRect&&cc.visibleRect.init(this._visibleRect),r.updateCameraViewport(),cc.internal.inputManager._updateCanvasBoundingRect(),this.emit("design-resolution-changed")}else cc.logID(2201)}else cc.errorID(2200)},getDesignResolutionSize:function(){return cc.size(this._designResolutionSize.width,this._designResolutionSize.height)},setRealPixelResolution:function(t,e,i){this._setViewportMeta({width:t},!0),document.documentElement.style.width=t+"px",document.body.style.width=t+"px",document.body.style.left="0px",document.body.style.top="0px",this.setDesignResolutionSize(t,e,i)},setViewportInPoints:function(t,e,i,n){var r=this._scaleX,s=this._scaleY;cc.game._renderContext.viewport(t*r+this._viewportRect.x,e*s+this._viewportRect.y,i*r,n*s)},setScissorInPoints:function(t,e,i,n){var r=this._scaleX,s=this._scaleY,o=Math.ceil(t*r+this._viewportRect.x),c=Math.ceil(e*s+this._viewportRect.y),l=Math.ceil(i*r),u=Math.ceil(n*s),h=cc.game._renderContext;if(!a){var f=h.getParameter(h.SCISSOR_BOX);a=cc.rect(f[0],f[1],f[2],f[3])}a.x===o&&a.y===c&&a.width===l&&a.height===u||(a.x=o,a.y=c,a.width=l,a.height=u,h.scissor(o,c,l,u))},isScissorEnabled:function(){return cc.game._renderContext.isEnabled(gl.SCISSOR_TEST)},getScissorRect:function(){if(!a){var t=gl.getParameter(gl.SCISSOR_BOX);a=cc.rect(t[0],t[1],t[2],t[3])}var e=1/this._scaleX,i=1/this._scaleY;return cc.rect((a.x-this._viewportRect.x)*e,(a.y-this._viewportRect.y)*i,a.width*e,a.height*i)},getViewportRect:function(){return this._viewportRect},getScaleX:function(){return this._scaleX},getScaleY:function(){return this._scaleY},getDevicePixelRatio:function(){return this._devicePixelRatio},convertToLocationInView:function(t,e,i,n){var r=n||cc.v2(),s=i.adjustedLeft?i.adjustedLeft:i.left,a=i.adjustedTop?i.adjustedTop:i.top,o=this._devicePixelRatio*(t-s),c=this._devicePixelRatio*(a+i.height-e);return this._isRotated?(r.x=cc.game.canvas.width-c,r.y=o):(r.x=o,r.y=c),r},_convertMouseToLocationInView:function(t,e){var i=this._viewportRect;t.x=(this._devicePixelRatio*(t.x-e.left)-i.x)/this._scaleX,t.y=(this._devicePixelRatio*(e.top+e.height-t.y)-i.y)/this._scaleY},_convertPointWithScale:function(t){var e=this._viewportRect;t.x=(t.x-e.x)/this._scaleX,t.y=(t.y-e.y)/this._scaleY},_convertTouchesWithScale:function(t){for(var e,i,n,r=this._viewportRect,s=this._scaleX,a=this._scaleY,o=0;o=0;n--){var s=i[n];s.hasOwnProperty("__attrs__")&&s.__attrs__||r(s,(e=i[n+1])&&e.__attrs__)}return r(t,(e=i[0])&&e.__attrs__),t.__attrs__}function a(t){return t.hasOwnProperty("__attrs__")&&t.__attrs__||s(t)}function o(t,e){this.name=t,this.default=e}o.prototype.toString=function(){return this.name},cc.Integer=new o("Integer",0),cc.Float=new o("Float",0),cc.Boolean=new o("Boolean",!1),cc.String=new o("String",""),e.exports={PrimitiveType:o,attr:function(t,e){var i=a(t),r=e+n,s={};for(var o in i)o.startsWith(r)&&(s[o.slice(r.length)]=i[o]);return s},getClassAttrs:a,setClassAttr:function(t,e,i,r){a(t)[e+n+i]=r},DELIMETER:n,getTypeChecker_ET:!1,getObjTypeChecker_ET:!1,ScriptUuid:{}}}),{"./CCClass":161,"./js":182,"./utils":185}],174:[(function(t,e){"use strict";var i=t("./js"),n=i.array.fastRemoveAt;function r(){}function s(){this.callback=r,this.target=void 0,this.once=!1}s.prototype.set=function(t,e,i){this.callback=t,this.target=e,this.once=!!i};var a=new i.Pool(function(t){return t.callback=r,t.target=void 0,t.once=!1,!0},32);function o(){this.callbackInfos=[],this.isInvoking=!1,this.containCanceled=!1}a.get=function(){return this._get()||new s};var c=o.prototype;c.removeByCallback=function(t){for(var e=0;e=0;--t)this.callbackInfos[t]||n(this.callbackInfos,t);this.containCanceled=!1},c.clear=function(){this.cancelAll(),this.callbackInfos.length=0,this.isInvoking=!1,this.containCanceled=!1};var l=new i.Pool(function(t){return t.callbackInfos=[],t.isInvoking=!1,t.containCanceled=!1,!0},16);function u(){this._callbackTable=i.createMap(!0)}l.get=function(){return this._get()||new o},(c=u.prototype).on=function(t,e,i,n){var r=this._callbackTable[t];r||(r=this._callbackTable[t]=l.get());var s=a.get();s.set(e,i,n),r.callbackInfos.push(s)},c.hasEventListener=function(t,e,i){var n=this._callbackTable[t];if(!n)return!1;var r=n.callbackInfos;if(!e){if(n.isInvoking){for(var s=0;s0}for(var a=0;a=0?a[i[c]]=o:a[~c]=o}for(;r=0?l[i[h]]=u:l[~h]=u}}function E(t,e){for(var i=t[4][e[0]],n=i[0],r=new(0,n[0]),s=n[1],a=n[2],o=i[i.length-1],c=1;c=0?e[i]=t[5][n]:t[7][3*~n]=e}function x(t){return function(e,i,n,r){i[n]=r;for(var s=0;s=0){var h=o[l];e[a]=A(t,h,u)}else(0,w[l=~l])(t,e,a,u)}return r}function M(t,e){return t||P.reportMissingClass(e),Object}function I(t,e,i,n,r,s){var a=t(e);if(!a){if(r)return void(i[n]=(function(e,i,n){return function(){var r=t(n)||M(s,n);return e[i]=r,new r}})(i,n,e));a=M(s,e)}i[n]=a}function O(t,e,i){for(var r=i||n.default._getClassById,s=t[3],a=0;a=0?i[l]:~l,s[o]=l);var u=a[o];"number"==typeof u&&(a[o]=n[u])}}function P(t,e,i){"string"==typeof t&&(t=JSON.parse(t));var n=!e;(e=e||y.pool.get()).init(t),i=i||{};var r=t[0],s=!1;if("object"==typeof r&&(s=r.preprocessed,r=r.version),r<1)throw new Error(cc.debug.getError(5304,r));i._version=r,i.result=e,t[0]=i,s||(O(t,!1,i.classFinder),D(t)),cc.game._isCloning=!0;var a=t[5],o=R(t);return cc.game._isCloning=!1,t[7]&&T(t[7],a,t[2]),L(t),n&&y.pool.put(e),a[o]}w[0]=function(t,e,i,n){e[i]=n},w[1]=C,w[2]=x(C),w[3]=x(b),w[4]=S,w[5]=function(t,e,i,n){v[n[0]](e[i],n)},w[6]=b,w[7]=function(t,e,i,n){e[i].set(n)},w[8]=function(t,e,i,n){var r=new _[n[0]];v[n[0]](r,n),e[i]=r},w[9]=x(S),w[10]=function(t,e,i,n){var r=t[3][n[0]];e[i]=A(t,r,n[1])},w[11]=function(t,e,i,n){var r=n[0];e[i]=r;for(var s=1;s0&&(i=f+this.globalVariables.join(",")+";");var n=c.flattenCodeArray(["return (function(R){",i||[],this.codeArray,"return o;","})"]);this.result=Function("O","F",n)(this.objs,this.funcs);for(var r=0,s=this.objsToClear_iN$t.length;r1)t.push(_+"="+this._targetExp+";"),e=_;else{if(1!==this._exps.length)return;e=this._targetExp}for(var i=0;i=0&&(f(t,i),!0)}function _(t,e){void 0===e&&(e=t,t=null),this.get=null,this.count=0,this._pool=new Array(e),this._cleanup=t}s.formatStr=function(){var t=arguments.length;if(0===t)return"";var e=arguments[0];if(1===t)return""+e;var i="string"==typeof e&&u.test(e);if(i)for(var n=1;n=0&&(t[i]=t[t.length-1],--t.length)},removeAt:f,fastRemoveAt:function(t,e){var i=t.length;e<0||e>=i||(t[e]=t[i-1],t.length=i-1)},contains:function(t,e){return t.indexOf(e)>=0},verifyType:function(t,e){if(t&&t.length>0)for(var i=0;i0){--this.count;var t=this._pool[this.count];return this._pool[this.count]=null,t}return null},_.prototype.put=function(t){var e=this._pool;if(this.count=0&&(this._pool.length=t,this.count>t&&(this.count=t))},s.Pool=_,cc.js=s,e.exports=s}),{"../utils/mutable-forward-iterator":236,"./id-generater":178}],183:[(function(t,e,i){"use strict";var n=t("./js"),r=t("./attribute"),s={default:{},serializable:{},editorOnly:{},formerlySerializedAs:{}};function a(t,e,i,n){if(!t.get&&!t.set&&t.hasOwnProperty("default")){var r="_N$"+e;t.get=function(){return this[r]},t.set=function(t){var e=this[r];this[r]=t,i.call(this,e)};var a={};for(var o in n[r]=a,s){var c=s[o];t.hasOwnProperty(o)&&(a[o]=t[o],c.canUsedInGet||delete t[o])}}}function o(t,e,i,n){if(Array.isArray(e)){if(!(e.length>0))return cc.errorID(5508,i,n);t.type=e=e[0]}"function"==typeof e&&(e===String?t.type=cc.String:e===Boolean?t.type=cc.Boolean:e===Number&&(t.type=cc.Float))}function c(t,e,i){var n=t?{_short:!0}:{_short:!0,default:e};return i&&(n.type=i),n}i.getFullFormOfProperty=function(t,e){return t&&t.constructor===Object?null:Array.isArray(t)&&t.length>0?c(e,[],t):"function"==typeof t?c(e,n.isChildClassOf(t,cc.ValueType)?new t:null,t):t instanceof r.PrimitiveType?c(e,t.default):c(e,t)},i.preprocessAttrs=function(t,e){for(var n in t){var r=t[n],s=i.getFullFormOfProperty(r,!1);if(s&&(r=t[n]=s),r){var c=r.notify;c&&a(r,n,c,t),"type"in r&&o(r,r.type,e,n)}}},i.validateMethodWithProps=function(t){return"function"==typeof t||null===t}}),{"./CCClass":161,"./attribute":173,"./js":182}],184:[(function(){"use strict";var t=[];cc._RF={push:function(e,i,n){void 0===n&&(n=i,i=""),t.push({uuid:i,script:n,module:e,exports:e.exports,beh:null})},pop:function(){var e=t.pop(),i=e.module,n=i.exports;if(n===e.exports){for(var r in n)return;i.exports=n=e.cls}},peek:function(){return t[t.length-1]}}}),{}],185:[(function(t,e){"use strict";t("./js"),e.exports={contains:function(t,e){if("function"==typeof t.contains)return t.contains(e);if("function"==typeof t.compareDocumentPosition)return!!(16&t.compareDocumentPosition(e));var i=e.parentNode;if(i)do{if(i===t)return!0;i=i.parentNode}while(null!==i);return!1},isDomNode:"object"==typeof window&&("function"==typeof Node?function(t){return t instanceof Node}:function(t){return t&&"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName}),callInNextTick:function(t,e,i){t&&setTimeout((function(){t(e,i)}),0)}}}),{"./js":182}],186:[(function(t){"use strict";t("./platform/js"),t("./value-types"),t("./utils"),t("./platform/CCInputManager"),t("./platform/CCInputExtension"),t("./event"),t("./platform/CCSys"),t("./platform/CCMacro"),t("./asset-manager"),t("./CCDirector"),t("./renderer"),t("./platform/CCView"),t("./platform/CCScreen"),t("./CCScheduler"),t("./event-manager")}),{"./CCDirector":23,"./CCScheduler":28,"./asset-manager":46,"./event":136,"./event-manager":132,"./platform/CCInputExtension":164,"./platform/CCInputManager":165,"./platform/CCMacro":166,"./platform/CCScreen":169,"./platform/CCSys":170,"./platform/CCView":171,"./platform/js":182,"./renderer":192,"./utils":234,"./value-types":250}],187:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=a(t("./assembler")),r=a(t("./utils/dynamic-atlas/manager")),s=a(t("./webgl/render-data"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i=0;i>2,c=s._vData;n.length+o>c.length?c.set(n.subarray(0,c.length-o),o):c.set(n,o);for(var l=s._iData,u=a.indiceOffset,h=a.vertexOffset,f=0,d=r.length;fthis.maxSize||(this._clean(t),i[e].push(t),this.count++)}},r.get=function(t){var e;if(this.enabled){var i=this._pool,n=o(t);e=i[n]&&i[n].pop()}return e?this.count--:e=new t,e},r.clear=function(){this._pool={},this.count=0},r._clean=function(t){t._renderComp=null},n}(r.default));r.default.register("assembler",c);var l=c;i.default=l,e.exports=i.default}),{"../utils/pool":237}],189:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("./webgl/vertex-format"),s=(n=t("./assembler-pool"))&&n.__esModule?n:{default:n},a=(function(){function t(){this._extendNative&&this._extendNative()}var e=t.prototype;return e.init=function(t){this._renderComp=t},e.updateRenderData=function(){},e.fillBuffers=function(){},e.getVfmt=function(){return r.vfmtPosUvColor},t})();i.default=a,a.register=function(t,e){t.__assembler__=e},a.init=function(t){for(var e=t.constructor,i=e.__assembler__;!i;){if(!(e=e.$super))return void cc.warn("Can not find assembler for render component : ["+cc.js.getClassName(t)+"]");i=e.__assembler__}if(i.getConstructor&&(i=i.getConstructor(t)),!t._assembler||t._assembler.constructor!==i){var n=s.default.get(i);n.init(t),t._assembler=n}},cc.Assembler=a,e.exports=i.default}),{"./assembler-pool":188,"./webgl/vertex-format":225}],190:[(function(t,e){"use strict";var i=function(t){var e;try{e=t.getContext("2d")}catch(i){return void console.error(i)}this._canvas=t,this._ctx=e,this._caps={},this._stats={drawcalls:0},this._vx=this._vy=this._vw=this._vh=0,this._sx=this._sy=this._sw=this._sh=0};i.prototype._restoreTexture=function(){},i.prototype.setViewport=function(t,e,i,n){this._vx===t&&this._vy===e&&this._vw===i&&this._vh===n||(this._vx=t,this._vy=e,this._vw=i,this._vh=n)},i.prototype.setScissor=function(t,e,i,n){this._sx===t&&this._sy===e&&this._sw===i&&this._sh===n||(this._sx=t,this._sy=e,this._sw=i,this._sh=n)},i.prototype.clear=function(t){var e=this._ctx;e.clearRect(this._vx,this._vy,this._vw,this._vh),!t||0===t[0]&&0===t[1]&&0===t[2]||(e.fillStyle="rgb("+t[0]+","+t[1]+","+t[2]+")",e.globalAlpha=t[3],e.fillRect(this._vx,this._vy,this._vw,this._vh))},i.prototype.resetDrawCalls=function(){this._stats.drawcalls=0},i.prototype.getDrawCalls=function(){return this._stats.drawcalls},e.exports=i}),{}],191:[(function(t,e){"use strict";var i=function(t,e){this._device=t,this._width=4,this._height=4,this._image=null,e&&(void 0!==e.width&&(this._width=e.width),void 0!==e.height&&(this._height=e.height),this.updateImage(e))};i.prototype.update=function(t){this.updateImage(t)},i.prototype.updateImage=function(t){if(t.images&&t.images[0]){var e=t.images[0];e&&e!==this._image&&(this._image=e)}},i.prototype.destroy=function(){this._image=null},e.exports=i}),{}],192:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=a(t("../../renderer/gfx")),r=a(t("../../renderer/core/input-assembler")),s=a(t("../../renderer/core/pass"));function a(t){return t&&t.__esModule?t:{default:t}}var o=cc.renderer={Texture2D:null,InputAssembler:r.default,Pass:s.default,renderEngine:null,canvas:null,device:null,scene:null,drawCalls:0,_handle:null,_cameraNode:null,_camera:null,_forward:null,_flow:null,initWebGL:function(e,i){t("./webgl/assemblers");var r=t("./webgl/model-batcher");this.Texture2D=n.default.Texture2D,this.canvas=e,this._flow=cc.RenderFlow;var s=t("../../renderer/scene/scene"),a=t("../../renderer/renderers/forward-renderer");this.device=new n.default.Device(e,i),this.scene=new s;var o,c=(o=this.device,{defaultTexture:new n.default.Texture2D(o,{images:[],width:128,height:128,wrapS:n.default.WRAP_REPEAT,wrapT:n.default.WRAP_REPEAT,format:n.default.TEXTURE_FMT_RGB8,genMipmaps:!1}),programTemplates:[],programChunks:{}});this._forward=new a(this.device,c),this._handle=new r(this.device,this.scene),this._flow.init(this._handle,this._forward)},initCanvas:function(e){var i=t("./canvas"),n=t("./canvas/Texture2D"),r=t("./canvas/Device");this.Device=r,this.Texture2D=n,this.canvas=e,this.device=new r(e),this._camera={a:1,b:0,c:0,d:1,tx:0,ty:0},this._handle=new i.RenderComponentHandle(this.device,this._camera),this._forward=new i.ForwardRenderer,this._flow=cc.RenderFlow,this._flow.init(this._handle,this._forward)},updateCameraViewport:function(){if(cc.director){var t=cc.director.getScene();t&&t.setScale(1,1,1)}if(cc.game.renderType===cc.game.RENDER_TYPE_CANVAS){var e=cc.view.getViewportRect();this.device.setViewport(e.x,e.y,e.width,e.height),this._camera.a=cc.view.getScaleX(),this._camera.d=cc.view.getScaleY(),this._camera.tx=e.x,this._camera.ty=e.y+e.height}},render:function(t,e){this.device.resetDrawCalls(),t&&(this._flow.render(t,e),this.drawCalls=this.device.getDrawCalls())},clear:function(){this._handle.reset(),this._forward.clear()}};i.default=o,e.exports=i.default}),{"../../renderer/core/input-assembler":267,"../../renderer/core/pass":268,"../../renderer/gfx":277,"../../renderer/renderers/forward-renderer":296,"../../renderer/scene/scene":299,"./canvas":void 0,"./canvas/Device":190,"./canvas/Texture2D":191,"./webgl/assemblers":204,"./webgl/model-batcher":221}],193:[(function(t,e){"use strict";var i,n,r=0,s=1<0;)i&t&&(e=C(i,e)),i>>=1;return e}function b(t){var e=t._renderFlag;(A[e]=x(e))._func(t)}y.flows=A,y.createFlow=C;var S=[];y.registerValidate=function(t){t._inValidateList||(S.push(t),t._inValidateList=!0)},y.validateRenderers=function(){for(var t=0,e=S.length;tthis._width&&(this._x=n,this._y=this._nexty),this._y+c+n>this._nexty&&(this._nexty=this._y+c+n),this._nexty>this._height)return null;cc.dynamicAtlasManager.textureBleeding&&((o<=8||c<=8)&&(this._texture.drawTextureAt(i,this._x-1,this._y-1),this._texture.drawTextureAt(i,this._x-1,this._y+1),this._texture.drawTextureAt(i,this._x+1,this._y-1),this._texture.drawTextureAt(i,this._x+1,this._y+1)),this._texture.drawTextureAt(i,this._x-1,this._y),this._texture.drawTextureAt(i,this._x+1,this._y),this._texture.drawTextureAt(i,this._x,this._y-1),this._texture.drawTextureAt(i,this._x,this._y+1)),this._texture.drawTextureAt(i,this._x,this._y),this._innerTextureInfos[i._id]={x:this._x,y:this._y,texture:i},this._count++,s+=this._x,a+=this._y,this._x+=o+n,this._dirty=!0}var l={x:s,y:a,texture:this._texture};return this._innerSpriteFrames.push(t),l},update:function(){this._dirty&&(this._texture.update(),this._dirty=!1)},deleteInnerTexture:function(t){t&&this._innerTextureInfos[t._id]&&(delete this._innerTextureInfos[t._id],this._count--)},isEmpty:function(){return this._count<=0},reset:function(){this._x=n,this._y=n,this._nexty=n;for(var t=this._innerSpriteFrames,e=0,i=t.length;e=0;e--)n[e].deleteInnerTexture(t),n[e].isEmpty()&&(n[e].destroy(),n.splice(e,1),r--)},showDebug:function(t){if(t){if(!l||!l.isValid){var e=cc.visibleRect.width,i=cc.visibleRect.height;(l=new cc.Node("DYNAMIC_ATLAS_DEBUG_NODE")).width=e,l.height=i,l.x=e/2,l.y=i/2,l.zIndex=cc.macro.MAX_ZINDEX,l.parent=cc.director.getScene(),l.groupIndex=cc.Node.BuiltinGroupIndex.DEBUG,cc.Camera._setupDebugCamera();var s=l.addComponent(cc.ScrollView),o=new cc.Node("CONTENT"),c=o.addComponent(cc.Layout);c.type=cc.Layout.Type.VERTICAL,c.resizeMode=cc.Layout.ResizeMode.CONTAINER,o.parent=l,o.width=a,o.anchorY=1,o.x=a,s.content=o;for(var u=0;u<=r;u++){var h=new cc.Node("ATLAS"),f=(n[u]._texture,new cc.SpriteFrame);f.setTexture(n[u]._texture),h.addComponent(cc.Sprite).spriteFrame=f,h.parent=o}}return l}l&&(l.parent=null,l=null)},update:function(){if(this.enabled)for(var t=0;t<=r;t++)n[t].update()}};e.exports=cc.dynamicAtlasManager=d}),{"./atlas":194}],196:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../../assembler-2d"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=t("../../../utils/text-utils"),o=t("../../../platform/CCMacro"),c=t("../../../components/CCLabel").Overflow,l=t("../utils").shareLabelInfo,u=function(){this.char="",this.valid=!0,this.x=0,this.y=0,this.line=0,this.hash=""},h=cc.rect(),f=null,d=[],_=[],p=[],v=[],g=null,m=0,y=0,T=0,E=0,A=0,C=1,x=null,b=cc.size(),S="",w=0,R=0,M=0,I=0,O=0,D=0,L=0,P=!1,N=0,F=0,B=0,k=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.updateRenderData=function(t){t._vertsDirty&&f!==t&&(f=t,this._reserveQuads(t,t.string.toString().length),this._updateFontFamily(t),this._updateProperties(t),this._updateLabelInfo(t),this._updateContent(),this.updateWorldVerts(t),f._actualFontSize=w,f.node.setContentSize(b),f._vertsDirty=!1,f=null,this._resetProperties())},r._updateFontScale=function(){C=w/R},r._updateFontFamily=function(t){var e=t.font;x=e.spriteFrame,g=e._fntConfig,l.fontAtlas=e._fontDefDictionary,this.packToDynamicAtlas(t,x)},r._updateLabelInfo=function(){l.hash="",l.margin=0},r._updateProperties=function(t){S=t.string.toString(),w=t.fontSize,R=g?g.fontSize:t.fontSize,M=t.horizontalAlign,I=t.verticalAlign,O=t.spacingX,L=t.overflow,D=t._lineHeight,b.width=t.node.width,b.height=t.node.height,L===c.NONE?(P=!1,b.width+=2*l.margin,b.height+=2*l.margin):L===c.RESIZE_HEIGHT?(P=!0,b.height+=2*l.margin):P=t.enableWrapText,l.lineHeight=D,l.fontSize=w,this._setupBMFontOverflowMetrics()},r._resetProperties=function(){g=null,x=null,l.hash="",l.margin=0},r._updateContent=function(){this._updateFontScale(),this._computeHorizontalKerningForText(),this._alignText()},r._computeHorizontalKerningForText=function(){var t,e=S,i=e.length,n=d;if(g&&(t=g.kerningDict),t&&!cc.js.isEmptyObject(t))for(var r=-1,s=0;s0&&n>0&&z+f.w*C>B&&!a.isUnicodeSpace(T)){p.push(o),o=0,i++,n=0,r-=D*this._getFontScale()+0,k=!0;break}_.x=z,_.y=r-f.offsetY*C+l.margin,this._recordLetterInfo(_,T,U,i),U+1_.y-f.h*C&&(R=_.y-f.h*C)}else{this._recordPlaceholderInfo(U,T);var H="";g&&(H=g.atlasName),console.log("Can't find letter definition in texture atlas "+H+" for letter:"+T)}else this._recordPlaceholderInfo(U,T)}k||(n=I,uR&&(h=R),s<(o=M)&&(s=o),v+=x)}else p.push(o),o=0,i++,n=0,r-=D*this._getFontScale()+0,this._recordPlaceholderInfo(v,T),v++}return p.push(o),y=(m=i+1)*D*this._getFontScale(),m>1&&(y+=0*(m-1)),b.width=N,b.height=F,N<=0&&(b.width=parseFloat(s.toFixed(2))+2*l.margin),F<=0&&(b.height=parseFloat(y.toFixed(2))+2*l.margin),E=b.height,A=0,L!==c.CLAMP&&(u>0&&(E=b.height+u),h<-y&&(A=y+h)),!0},r._getFirstCharLen=function(){return 1},r._getFontScale=function(){return L===c.SHRINK?C:1},r._getFirstWordLen=function(t,e,i){var n=t.charAt(e);if(a.isUnicodeCJK(n)||"\n"===n||a.isUnicodeSpace(n))return 1;var r=1,s=l.fontAtlas.getLetterDefinitionForChar(n,l);if(!s)return r;for(var o=s.xAdvance*C+O,c=e+1;cB&&!a.isUnicodeSpace(n)&&B>0)return r;if(o+=s.xAdvance*C+O,"\n"===n||a.isUnicodeSpace(n)||a.isUnicodeCJK(n))break;r++}return r},r._multilineTextWrapByWord=function(){return this._multilineTextWrap(this._getFirstWordLen)},r._multilineTextWrapByChar=function(){return this._multilineTextWrap(this._getFirstCharLen)},r._recordPlaceholderInfo=function(t,e){if(t>=_.length){var i=new u;_.push(i)}_[t].char=e,_[t].hash=e.charCodeAt(0)+l.hash,_[t].valid=!1},r._recordLetterInfo=function(t,e,i,n){if(i>=_.length){var r=new u;_.push(r)}var s=e.charCodeAt(0)+l.hash;_[i].line=n,_[i].char=e,_[i].hash=s,_[i].valid=l.fontAtlas.getLetter(s).valid,_[i].x=t.x,_[i].y=t.y},r._alignText=function(){y=0,p.length=0,this._multilineTextWrapByWord(),this._computeAlignmentOffset(),L===c.SHRINK&&w>0&&this._isVerticalClamp()&&this._shrinkLabelToContentSize(this._isVerticalClamp),this._updateQuads()||L===c.SHRINK&&this._shrinkLabelToContentSize(this._isHorizontalClamp)},r._scaleFontSizeDown=function(t){var e=!0;t||(t=.1,e=!1),w=t,e&&this._updateContent()},r._shrinkLabelToContentSize=function(t){for(var e=0,i=0|w,n=0;e>1;if(r<=0)break;C=r/R,this._multilineTextWrapByWord(),this._computeAlignmentOffset(),t()?i=n-1:e=n}var s=e;s>=0&&this._scaleFontSizeDown(s)},r._isVerticalClamp=function(){return y>b.height},r._isHorizontalClamp=function(){for(var t=!1,e=0,i=S.length;e0)if(P){if(p[a]>b.width&&(s>b.width||s<0)){t=!0;break}}else if(s>b.width){t=!0;break}}}return t},r._isHorizontalClamped=function(t,e){var i=p[e],n=t>b.width||t<0;return P?i>b.width&&n:n},r._updateQuads=function(){var t=x?x._texture:l.fontAtlas.getTexture(),e=f.node;this.verticesCount=this.indicesCount=0,this._renderData&&(this._renderData.dataLength=0);for(var i=b,n=e._anchorPoint.x*i.width,r=e._anchorPoint.y*i.height,s=!0,a=0,o=S.length;a0){if(p>E){var g=p-E;h.y+=g,h.height-=g,p-=g}p-d.h*C0&&this._isHorizontalClamped(y,m))if(L===c.CLAMP)h.width=0;else if(L===c.SHRINK){if(b.width>d.w){s=!1;break}h.width=0}if(h.height>0&&h.width>0){var w=this._determineRect(h),R=u.x+v[u.line];this.appendQuad(f,t,h,w,R-n,p-r,C)}}}return this._quadsUpdated(f),s},r._determineRect=function(t){var e=x.isRotated(),i=x._originalSize,n=x._rect,r=x._offset,s=r.x+(i.width-n.width)/2,a=r.y-(i.height-n.height)/2;if(e){var o=t.x;t.x=n.x+n.height-t.y-t.height-a,t.y=o+n.y-s,t.y<0&&(t.height=t.height+a)}else t.x+=n.x-s,t.y+=n.y+a;return e},r._computeAlignmentOffset=function(){switch(v.length=0,M){case o.TextAlignment.LEFT:for(var t=0;t0){var l=e.out||v;t.strokeStyle="rgba("+l.r+", "+l.g+", "+l.b+", "+l.a/255+")",t.lineWidth=2*e.margin,t.strokeText(this._char,s,a)}t.fillText(this._char,s,a),this._texture.handleLoadedTexture()},destroy:function(){this._texture.destroy(),this._texture=null,a._canvasPool.put(this._data)}},cc.js.mixin(T.prototype,{insertLetterTexture:function(t){var e=t._texture,i=e.width,n=e.height;if(this._x+i+g>this._width&&(this._x=g,this._y=this._nexty),this._y+n>this._nexty&&(this._nexty=this._y+n+g),this._nexty>this._height)return null;this._fontDefDictionary._texture.drawTextureAt(e,this._x,this._y),this._dirty=!0;var r=new _;return r.u=this._x+1,r.v=this._y+1,r.texture=this._fontDefDictionary._texture,r.valid=!0,r.w=t._width-2,r.h=t._height-2,r.xAdvance=r.w,r.offsetY=t._offsetY,this._x+=i+g,this._fontDefDictionary.addLetterDefinitions(t._hash,r),r},update:function(){this._dirty&&(this._fontDefDictionary._texture.update(),this._dirty=!1)},reset:function(){this._x=g,this._y=g,this._nexty=g;for(var t=this._fontDefDictionary._letterDefinitions,e=0,i=t.length;e0&&(n=n+e.margin+e.out.toHEX()),""+e.fontSize+e.fontFamily+i+n)},r._getFontDesc=function(){return d.fontSize.toString()+"px "+d.fontFamily},r._computeHorizontalKerningForText=function(){},r._determineRect=function(){return!1},n})(r.default);i.default=A,e.exports=i.default}),{"../../../assets/CCRenderTexture":66,"../../../components/CCComponent":102,"../../../components/CCLabel":104,"../../../components/CCLabelOutline":void 0,"../../../utils/text-utils":242,"../../webgl/assemblers/label/2d/bmfont":205,"../utils":200}],199:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../../assembler-2d"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a,o=t("../../../utils/text-utils"),c=t("../../../platform/CCMacro"),l=t("../../../components/CCLabel"),u=t("../../../components/CCLabelOutline"),h=t("../../../components/CCLabelShadow"),f=l.Overflow,d=t("../utils").deleteFromDynamicAtlas,_=t("../utils").getFontFamily,p=(1/255).toFixed(3),v=null,g=null,m=null,y="",T="",E=0,A=0,C=[],x=cc.Size.ZERO,b=0,S=0,w=0,R=null,M="",I=f.NONE,O=!1,D=!1,L=null,P=cc.Color.WHITE,N=null,F=cc.Color.BLACK,B=cc.rect(),k=cc.Size.ZERO,V=cc.Size.ZERO,U=!1,z=!1,H=!1,W=0,G=cc.Vec2.ZERO,Y=0,X=["left","center","right"],j=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r._getAssemblerData=function(){return(a=l._canvasPool.get()).canvas.width=a.canvas.height=1,a},r._resetAssemblerData=function(t){t&&l._canvasPool.put(t)},r.updateRenderData=function(e){t.prototype.updateRenderData.call(this,e),e._vertsDirty&&(this._updateProperties(e),this._calculateLabelFont(),this._updateLabelDimensions(),this._updateTexture(e),this._calDynamicAtlas(e),e._actualFontSize=E,e.node.setContentSize(V),this.updateVerts(e),e._vertsDirty=!1,v=null,g=null,m=null)},r.updateVerts=function(){},r._updatePaddingRect=function(){var t=0,e=0,i=0,n=0,r=0;if(k.width=k.height=0,L&&(t=e=i=n=r=L.width,k.width=k.height=2*r),N){var s=N.blur+r;i=Math.max(i,-N._offset.x+s),n=Math.max(n,N._offset.x+s),t=Math.max(t,N._offset.y+s),e=Math.max(e,-N._offset.y+s)}if(z){var a=A*Math.tan(.20943951);n+=a,k.width+=a}B.x=i,B.y=t,B.width=i+n,B.height=t+e},r._updateProperties=function(t){var e=t._assemblerData;v=e.context,g=e.canvas,m=t._frame._original?t._frame._original._texture:t._frame._texture,T=t.string.toString(),E=t._fontSize,A=E,W=t.underlineHeight||A/8,I=t.overflow,x.width=t.node.width,x.height=t.node.height,V=t.node.getContentSize(),b=t._lineHeight,S=t.horizontalAlign,w=t.verticalAlign,R=t.node.color,U=t.enableBold,z=t.enableItalic,H=t.enableUnderline,M=_(t),D=t.srcBlendFactor===cc.macro.BlendFactor.ONE,O=I!==f.NONE&&(I===f.RESIZE_HEIGHT||t.enableWrapText),(L=(L=u&&t.getComponent(u))&&L.enabled&&L.width>0?L:null)&&P.set(L.color),(N=(N=h&&t.getComponent(h))&&N.enabled?N:null)&&(F.set(N.color),F.a=F.a*t.node.color.a/255),this._updatePaddingRect()},r._calculateFillTextStartPosition=function(){var t=0;S===c.TextAlignment.RIGHT?t=x.width-B.width:S===c.TextAlignment.CENTER&&(t=(x.width-B.width)/2);var e=this._getLineHeight()*(C.length-1),i=E*(1-o.BASELINE_RATIO/2);if(w!==c.VerticalTextAlignment.TOP){var n=e+B.height+E-x.height;w===c.VerticalTextAlignment.BOTTOM?i-=n+=o.BASELINE_RATIO/2*E:i-=n/2}return i+=o.BASELINE_OFFSET*E,cc.v2(t+B.x,i+B.y)},r._setupOutline=function(){v.strokeStyle="rgba("+P.r+", "+P.g+", "+P.b+", "+P.a/255+")",v.lineWidth=2*L.width},r._setupShadow=function(){v.shadowColor="rgba("+F.r+", "+F.g+", "+F.b+", "+F.a/255+")",v.shadowBlur=N.blur,v.shadowOffsetX=N.offset.x,v.shadowOffsetY=-N.offset.y},r._drawTextEffect=function(t,e){if(N||L||H){var i=C.length>1&&N,n=this._measureText(v,y),r=0,s=0;N&&this._setupShadow(),L&&this._setupOutline();for(var a=0;at||x.height>t)&&cc.warn("The maximum texture size supported by the device is "+t),x.width=Math.min(x.width,t),x.height=Math.min(x.height,t);var e=!1;g.width!==x.width&&(g.width=x.width,e=!0),g.height!==x.height&&(g.height=x.height,e=!0),e&&(v.font=y),v.textAlign=X[S]},r._getFontDesc=function(){var t=E.toString()+"px ";return t+=M,U&&(t="bold "+t),z&&(t="italic "+t),t},r._getLineHeight=function(){return 0|(0===b?E:b*E/A)},r._calculateParagraphLength=function(t,e){for(var i=[],n=0;n>1)<=0){cc.logID(4003);break}E=u,y=this._getFontDesc(),v.font=y;var h=this._getLineHeight();for(n=0,i=0;ia?l=u-1:c=u}0===c?cc.logID(4003):(E=c,y=this._getFontDesc(),v.font=y)}else{for(n=t.length*this._getLineHeight(),i=0;ir?e:r}i=(C.length+o.BASELINE_RATIO)*this._getLineHeight();var s=parseFloat(e.toFixed(2)),a=parseFloat(i.toFixed(2));x.width=s+B.width,x.height=a+B.height,V.width=s+k.width,V.height=a+k.height;break;case f.SHRINK:this._calculateShrinkFont(t),this._calculateWrapText(t);break;case f.CLAMP:this._calculateWrapText(t);break;case f.RESIZE_HEIGHT:this._calculateWrapText(t);var c=(C.length+o.BASELINE_RATIO)*this._getLineHeight();x.height=c+B.height,V.height=c+k.height}},n})(r.default);i.default=j,e.exports=i.default}),{"../../../components/CCLabel":104,"../../../components/CCLabelOutline":void 0,"../../../components/CCLabelShadow":void 0,"../../../platform/CCMacro":166,"../../../utils/text-utils":242,"../../assembler-2d":187,"../utils":200}],200:[(function(t,e){"use strict";var i=t("./dynamic-atlas/manager"),n=cc.Color.WHITE,r={fontAtlas:null,fontSize:0,lineHeight:0,hAlign:0,vAlign:0,hash:"",fontFamily:"",fontDesc:"Arial",color:n,isOutlined:!1,out:n,margin:0};e.exports={deleteFromDynamicAtlas:function(t,e){e&&e._original&&i&&(i.deleteAtlasSpriteFrame(e),e._resetDynamicAtlasFrame())},getFontFamily:function(t){return t.useSystemFont?t.fontFamily||"Arial":t.font?t.font._nativeAsset?t.font._nativeAsset:(cc.assetManager.postLoadNative(t.font,(function(){t.isValid&&t.setVertsDirty()})),"Arial"):"Arial"},shareLabelInfo:r}}),{"./dynamic-atlas/manager":195}],201:[(function(t,e){"use strict";function i(t,e,i){i=i||2;var r,a,o,c,l,h,f,d=e&&e.length,_=d?e[0]*i:t.length,p=n(t,0,_,i,!0),v=[];if(!p)return v;if(d&&(p=u(t,e,p,i)),t.length>80*i){r=o=t[0],a=c=t[1];for(var g=i;g<_;g+=i)(l=t[g])o&&(o=l),h>c&&(c=h);f=Math.max(o-r,c-a)}return s(p,v,i,r,a,f),v}function n(t,e,i,n,r){var s,a;if(r===I(t,e,i,n)>0)for(s=e;s=e;s-=n)a=w(s,t[s],t[s+1],a);return a&&E(a,a.next)&&(R(a),a=a.next),a}function r(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.steiner||!E(n,n.next)&&0!==T(n.prev,n,n.next))n=n.next;else{if(R(n),(n=e=n.prev)===n.next)return null;i=!0}}while(i||n!==e);return e}function s(t,e,i,n,u,h,f){if(t){!f&&h&&_(t,n,u,h);for(var d,p,v=t;t.prev!==t.next;)if(d=t.prev,p=t.next,h?o(t,n,u,h):a(t))e.push(d.i/i),e.push(t.i/i),e.push(p.i/i),R(t),t=p.next,v=p.next;else if((t=p)===v){f?1===f?s(t=c(t,e,i),e,i,n,u,h,2):2===f&&l(t,e,i,n,u,h):s(r(t),e,i,n,u,h,1);break}}}function a(t){var e=t.prev,i=t,n=t.next;if(T(e,i,n)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(m(e.x,e.y,i.x,i.y,n.x,n.y,r.x,r.y)&&T(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function o(t,e,i,n){var r=t.prev,s=t,a=t.next;if(T(r,s,a)>=0)return!1;for(var o=r.xs.x?r.x>a.x?r.x:a.x:s.x>a.x?s.x:a.x,u=r.y>s.y?r.y>a.y?r.y:a.y:s.y>a.y?s.y:a.y,h=v(o,c,e,i,n),f=v(l,u,e,i,n),d=t.nextZ;d&&d.z<=f;){if(d!==t.prev&&d!==t.next&&m(r.x,r.y,s.x,s.y,a.x,a.y,d.x,d.y)&&T(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(d=t.prevZ;d&&d.z>=h;){if(d!==t.prev&&d!==t.next&&m(r.x,r.y,s.x,s.y,a.x,a.y,d.x,d.y)&&T(d.prev,d,d.next)>=0)return!1;d=d.prevZ}return!0}function c(t,e,i){var n=t;do{var r=n.prev,s=n.next.next;!E(r,s)&&A(r,n,n.next,s)&&x(r,s)&&x(s,r)&&(e.push(r.i/i),e.push(n.i/i),e.push(s.i/i),R(n),R(n.next),n=t=s),n=n.next}while(n!==t);return n}function l(t,e,i,n,a,o){var c=t;do{for(var l=c.next.next;l!==c.prev;){if(c.i!==l.i&&y(c,l)){var u=S(c,l);return c=r(c,c.next),u=r(u,u.next),s(c,e,i,n,a,o),void s(u,e,i,n,a,o)}l=l.next}c=c.next}while(c!==t)}function u(t,e,i,s){var a,o,c,l=[];for(a=0,o=e.length;a=n.next.y){var o=n.x+(s-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(o<=r&&o>a){if(a=o,o===r){if(s===n.y)return n;if(s===n.next.y)return n.next}i=n.x=n.x&&n.x>=u&&m(si.x)&&x(n,t)&&(i=n,f=c),n=n.next;return i}function _(t,e,i,n){var r=t;do{null===r.z&&(r.z=v(r.x,r.y,e,i,n)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,p(r)}function p(t){var e,i,n,r,s,a,o,c,l=1;do{for(i=t,t=null,s=null,a=0;i;){for(a++,n=i,o=0,e=0;e0||c>0&&n;)0===o?(r=n,n=n.nextZ,c--):0!==c&&n?i.z<=n.z?(r=i,i=i.nextZ,o--):(r=n,n=n.nextZ,c--):(r=i,i=i.nextZ,o--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;i=n}s.nextZ=null,l*=2}while(a>1);return t}function v(t,e,i,n,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)/r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)/r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function g(t){var e=t,i=t;do{e.x=0&&(t-a)*(n-o)-(i-a)*(e-o)>=0&&(i-a)*(s-o)-(r-a)*(n-o)>=0}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!C(t,e)&&x(t,e)&&x(e,t)&&b(t,e)}function T(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function E(t,e){return t.x===e.x&&t.y===e.y}function A(t,e,i,n){return!!(E(t,e)&&E(i,n)||E(t,n)&&E(i,e))||T(t,e,i)>0!=T(t,e,n)>0&&T(i,n,t)>0!=T(i,n,e)>0}function C(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&A(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}function x(t,e){return T(t.prev,t,t.next)<0?T(t,e,t.next)>=0&&T(t,t.prev,e)>=0:T(t,e,t.prev)<0||T(t,t.next,e)<0}function b(t,e){var i=t,n=!1,r=(t.x+e.x)/2,s=(t.y+e.y)/2;do{i.y>s!=i.next.y>s&&r<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(n=!n),i=i.next}while(i!==t);return n}function S(t,e){var i=new M(t.i,t.x,t.y),n=new M(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,i.next=r,r.prev=i,n.next=i,i.prev=n,s.next=n,n.prev=s,n}function w(t,e,i,n){var r=new M(t,e,i);return n?(r.next=n.next,r.prev=n,n.next.prev=r,n.next=r):(r.prev=r,r.next=r),r}function R(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function M(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,i,n){for(var r=0,s=e,a=i-n;s0&&(n+=t[r-1].length,i.holes.push(n))}return i}}),{}],202:[(function(t,e){"use strict";var i=t("../../../../graphics/helper"),n=t("../../../../graphics/types").PointFlags,r=cc.Graphics.Point=cc.Class({name:"cc.GraphicsPoint",extends:cc.Vec2,ctor:function(){this.reset()},reset:function(){this.dx=0,this.dy=0,this.dmx=0,this.dmy=0,this.flags=0,this.len=0}});function s(){this.reset()}function a(){this._tessTol=.25,this._distTol=.01,this._updatePathOffset=!1,this._paths=null,this._pathLength=0,this._pathOffset=0,this._points=null,this._pointsOffset=0,this._commandx=0,this._commandy=0,this._paths=[],this._points=[]}cc.js.mixin(s.prototype,{reset:function(){this.closed=!1,this.nbevel=0,this.complex=!0,this.points?this.points.length=0:this.points=[]}}),cc.js.mixin(a.prototype,{moveTo:function(t,e){this._updatePathOffset&&(this._pathOffset=this._pathLength,this._updatePathOffset=!1),this._addPath(),this._addPoint(t,e,n.PT_CORNER),this._commandx=t,this._commandy=e},lineTo:function(t,e){this._addPoint(t,e,n.PT_CORNER),this._commandx=t,this._commandy=e},bezierCurveTo:function(t,e,r,s,a,o){var c=this._curPath,l=c.points[c.points.length-1];l.x!==t||l.y!==e||r!==a||s!==o?(i.tesselateBezier(this,l.x,l.y,t,e,r,s,a,o,0,n.PT_CORNER),this._commandx=a,this._commandy=o):this.lineTo(a,o)},quadraticCurveTo:function(t,e,i,n){var r=this._commandx,s=this._commandy;this.bezierCurveTo(r+2/3*(t-r),s+2/3*(e-s),i+2/3*(t-i),n+2/3*(e-n),i,n)},arc:function(t,e,n,r,s,a){i.arc(this,t,e,n,r,s,a)},ellipse:function(t,e,n,r){i.ellipse(this,t,e,n,r),this._curPath.complex=!1},circle:function(t,e,n){i.ellipse(this,t,e,n,n),this._curPath.complex=!1},rect:function(t,e,i,n){this.moveTo(t,e),this.lineTo(t,e+n),this.lineTo(t+i,e+n),this.lineTo(t+i,e),this.close(),this._curPath.complex=!1},roundRect:function(t,e,n,r,s){i.roundRect(this,t,e,n,r,s),this._curPath.complex=!1},clear:function(t){this._pathLength=0,this._pathOffset=0,this._pointsOffset=0,this._curPath=null,t&&(this._paths.length=0,this._points.length=0)},close:function(){this._curPath.closed=!0},_addPath:function(){var t=this._pathLength,e=this._paths[t];return e?e.reset():(e=new s,this._paths.push(e)),this._pathLength++,this._curPath=e,e},_addPoint:function(t,e,i){var n=this._curPath;if(n){var s,a=this._points,o=n.points;(s=a[this._pointsOffset++])?(s.x=t,s.y=e):(s=new r(t,e),a.push(s)),s.flags=i,o.push(s)}}}),cc.Graphics._Impl=a,e.exports=a}),{"../../../../graphics/helper":151,"../../../../graphics/types":153}],203:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=s(t("../../../assembler")),r=s(t("../../../../../renderer/core/input-assembler"));function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var o=t("../../mesh-buffer"),c=t("../../../index"),l=t("../../../../graphics/graphics"),u=t("../../../../graphics/types").PointFlags,h=l.LineJoin,f=l.LineCap,d=t("./earcut");t("./impl");var _=Math.PI,p=Math.min,v=Math.max,g=Math.ceil,m=Math.acos,y=Math.cos,T=Math.sin,E=Math.atan2;function A(t,e,i){return ti?i:t}var C=cc.gfx,x=new C.VertexFormat([{name:C.ATTR_POSITION,type:C.ATTR_TYPE_FLOAT32,num:2},{name:C.ATTR_COLOR,type:C.ATTR_TYPE_UINT8,num:4,normalize:!0},{name:"a_dist",type:C.ATTR_TYPE_FLOAT32,num:1}]);x.name="vfmtPosColorSdf";var b=(function(t){var e,i;function n(e){var i;return(i=t.call(this,e)||this)._buffer=null,i._buffers=[],i._bufferOffset=0,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,a(e,i);var s=n.prototype;return s.getVfmt=function(){return x},s.getVfmtFloatCount=function(){return 4},s.requestBuffer=function(){var t={indiceStart:0,vertexStart:0},e=new o(c._handle,this.getVfmt());t.meshbuffer=e;var i=new r.default(e._vb,e._ib);return t.ia=i,this._buffers.push(t),t},s.getBuffers=function(){return 0===this._buffers.length&&this.requestBuffer(),this._buffers},s.clear=function(t){this._bufferOffset=0;var e=this._buffers;if(t){for(var i=0,n=e.length;i65535||3*s>131070)&&(++this._bufferOffset,s=e,this._bufferOffsetr.vertexOffset&&r.requestStatic(e,3*e),this._buffer=n,n},s.stroke=function(t){this._curColor=t._strokeColor._val,this._flattenPaths(t._impl),this._expandStroke(t),t._impl._updatePathOffset=!0},s.fill=function(t){this._curColor=t._fillColor._val,this._expandFill(t),t._impl._updatePathOffset=!0},s._expandStroke=function(t){var e,i,n,r,s=.5*t.lineWidth,a=t.lineCap,o=t.lineJoin,c=t.miterLimit,l=t._impl,d=(e=s,i=_,n=l._tessTol,r=2*m(e/(e+n)),v(2,g(i/r)));this._calculateJoins(l,s,o,c);for(var p=l._paths,y=0,T=l._pathOffset,E=l._pathLength;T0&&(r=1/e);for(var a=t._paths,o=t._pathOffset,c=t._pathLength;o1e-6){var b=1/y;b>600&&(b=600),g.dmx*=b,g.dmy*=b}g.dx*_.dy-_.dx*g.dy>0&&(g.flags|=u.PT_LEFT),y*(T=v(11,p(_.len,g.len)*r))*T<1&&(g.flags|=u.PT_INNERBEVEL);var S=g.dmx*e,w=g.dmy*e,R=S*S+w*w;R>g.len*g.len+s&&R>_.len*_.len+s&&(g.flags|=u.PT_INNERBEVEL),g.flags&u.PT_CORNER&&(y*n*n<1||i===h.BEVEL||i===h.ROUND)&&(g.flags|=u.PT_BEVEL),0!=(g.flags&(u.PT_BEVEL|u.PT_INNERBEVEL))&&l.nbevel++,_=g,g=f[m+1]}}},s._flattenPaths=function(t){for(var e=t._paths,i=t._pathOffset,n=t._pathLength;i2&&a.equals(o)&&(r.closed=!0,s.pop(),a=s[s.length-1]);for(var c=0,l=s.length;cC&&(x-=2*_),this._vset(d,p,1),this._vset(l-s*n,e.y-a*n,-1);for(var b=A(g((C-x)/_)*r,2,r),S=0;S "+n+"/"+i+".")},e._updateCfgFlag=function(t){var e=this._cfgFields.updateFlags;this._setBufferFlag(this._cfg,e.offset,e.size,e.type,t)},e._setBufferValue=function(t,e,i,n,r){"float"==n&&4==i?t.setFloat32(e,r,jsb.__isLittleEndian__):"int32"==n&&4==i?t.setInt32(e,r,jsb.__isLittleEndian__):"bool"==n&&1==i?t.setInt8(e,r?1:0,jsb.__isLittleEndian__):"Color4B"==n&&4==i?(t.setUint8(e,r.r),t.setUint8(e+1,r.g),t.setUint8(e+2,r.b),t.setUint8(e+3,r.a)):"int8"==n&&1==i?t.setUint8(e,r):cc.warn("dont know how to set value to buffer, type/size -> "+n+"/"+i+".")},e._setFieldValue=function(t,e,i,n){var r=e[i];this._setBufferValue(t,r.offset,r.size,r.type,n)},e._getBufferValue=function(t,e,i,n){return"float"==n&&4==i?t.getFloat32(e,jsb.__isLittleEndian__):"int32"==n&&4==i?t.getInt32(e,jsb.__isLittleEndian__):"bool"==n&&1==i?0!=t.getInt8(e,jsb.__isLittleEndian__):"Color4B"==n&&4==i?{r:t.getUint8(e),g:t.getUint8(e+1),b:t.getUint8(e+2),a:t.getUint8(e+3)}:"int8"==n&&1==i?t.getUint8(e):void cc.warn("dont know how to get value from buffer, type/size -> "+n+"/"+i+".")},e._getFieldValue=function(t,e,i){var n=e[i];return this._getBufferValue(t,n.offset,n.size,n.type)},e._getLayoutValue=function(t){return this._getFieldValue(this._layoutInfo,this._layoutFields,t)},e._setLayoutValue=function(t,e){return this._setFieldValue(this._layoutInfo,this._layoutFields,t,e)},e._updateCfgFlag_Content=function(){this._updateCfgFlag(1)},e._updateCfgFlag_Font=function(){this._updateCfgFlag(2)},e._colorEqual=function(t,e){return t.r==e.r&&t.g==e.g&&t.b==e.b&&t.a==e.a},e._colorToObj=function(t,e,i,n){return{r:t,g:e,b:i,a:n}},e.setString=function(t){t!=this._layout.string&&(this._layout.string=t,this._updateCfgFlag_Content())},e.setFontPath=function(t){t!=this._layout.fontPath&&(this._layout.fontPath=t,this._updateCfgFlag_Font())},e.setFontSize=function(t,e){this._getFieldValue(this._cfg,this._cfgFields,"fontSize")!=t&&(this._setFieldValue(this._cfg,this._cfgFields,"fontSize",t),this._setFieldValue(this._cfg,this._cfgFields,"fontSizeRetina",e),this._updateCfgFlag_Font())},e.setOutline=function(t){var e=this._getLayoutValue("outlineSize");e>0!=t>0&&this._updateCfgFlag_Font(),e!=t&&(this._updateCfgFlag_Content(),this._setLayoutValue("outlineSize",t))},e.setOutlineColor=function(t){var e=this._getLayoutValue("outlineColor");this._colorEqual(e,t)||(this._setLayoutValue("outlineColor",t),this._updateCfgFlag_Content())},e.setLineHeight=function(t){this._getLayoutValue("lineHeight")!=t&&(this._setLayoutValue("lineHeight",t),this._updateCfgFlag_Content())},e.setOverFlow=function(t){this._getLayoutValue("overflow")!=t&&(this._setLayoutValue("overflow",t),this._updateCfgFlag_Content())},e.setEnableWrap=function(t){this._getLayoutValue("wrap")!=t&&(this._setLayoutValue("wrap",t),this._updateCfgFlag_Content())},e.setVerticalAlign=function(t){this._getLayoutValue("valign")!=t&&(this._setLayoutValue("valign",t),this._updateCfgFlag_Content())},e.setHorizontalAlign=function(t){this._getLayoutValue("halign")!=t&&(this._setLayoutValue("halign",t),this._updateCfgFlag_Content())},e.setContentSize=function(t,e){var i=this._getLayoutValue("width"),n=this._getLayoutValue("height");i==t&&n==e||(this._setLayoutValue("height",e),this._setLayoutValue("width",t),this._updateCfgFlag_Content())},e.setAnchorPoint=function(t,e){var i=this._getLayoutValue("anchorX"),n=this._getLayoutValue("anchorY");i==t&&n==e||(this._setLayoutValue("anchorX",t),this._setLayoutValue("anchorY",e),this._updateCfgFlag_Content())},e.setColor=function(t){var e=this._getLayoutValue("color");this._colorEqual(e,t)||(this._setLayoutValue("color",t),this._updateCfgFlag_Content())},e.setShadow=function(t,e,i){var n=this._getLayoutValue("shadowBlur"),r=this._getLayoutValue("shadowX"),s=this._getLayoutValue("shadowY");n>0!=i>0&&this._updateCfgFlag_Font();var a=!1;n!=i&&(this._setLayoutValue("shadowBlur",i),a=!0),r!=t&&(this._setLayoutValue("shadowX",t),a=!0),s!=e&&(this._setLayoutValue("shadowY",e),a=!0),a&&this._updateCfgFlag_Content()},e.setShadowColor=function(t){var e=this._getLayoutValue("shadowColor");this._colorEqual(e,t)||(this._setLayoutValue("shadowColor",t),this._updateCfgFlag_Content())},e.setItalic=function(t){this._getLayoutValue("italic")!=t&&(this._setLayoutValue("italic",t),this._updateCfgFlag_Content())},e.setBold=function(t){this._getLayoutValue("bold")!=t&&(this._setLayoutValue("bold",t),this._updateCfgFlag_Content(),this._updateCfgFlag_Font())},e.setUnderline=function(t){this._getLayoutValue("underline")!=t&&(this._setLayoutValue("underline",t),this._updateCfgFlag_Content())},e.setSpacingX=function(t){this._getLayoutValue("spaceX")==t||"number"!=typeof t||isNaN(t)||(this._setLayoutValue("spaceX",t),this._updateCfgFlag_Content())},e.updateRenderData=function(t){if(t._vertsDirty){t.font&&t.font.nativeUrl&&this.setFontPath(cc.assetManager.cacheManager.getCache(t.font.nativeUrl)||t.font.nativeUrl);var e=this._layout,i=t.node.color,n=t.node,r=t.fontSize;this.setString(t.string),this.setFontSize(t.fontSize,r/72*t.fontSize),this.setLineHeight(t.lineHeight),this.setEnableWrap(t.enableWrapText),this.setItalic(t.enableItalic),this.setUnderline(t.enableUnderline),this.setBold(t.enableBold),this.setOverFlow(t.overflow),this.setVerticalAlign(t.verticalAlign),this.setHorizontalAlign(t.horizontalAlign),this.setSpacingX(t.spacingX),this.setContentSize(n.getContentSize().width,n.getContentSize().height),this.setAnchorPoint(n.anchorX,n.anchorY),this.setColor(this._colorToObj(i.getR(),i.getG(),i.getB(),Math.ceil(i.getA()*n.opacity/255)));var s=n.getComponent(cc.LabelShadow);if(s&&s.enabled){var a=s.color;this.setShadow(s.offset.x,s.offset.y,s.blur),this.setShadowColor(this._colorToObj(a.getR(),a.getG(),a.getB(),Math.ceil(a.getA()*n.opacity/255)))}else this.setShadow(0,0,-1);this._updateTTFMaterial(t),e.render()}},e._bindMaterial=function(t){var e=this.labelMaterial;return e||(e=r.default.createWithBuiltin("2d-label",t),this.labelMaterial=e),e},e._updateTTFMaterial=function(t){var e=this._bindMaterial(t),i=this._label.node,n=this._layout,r=i.getComponent(cc.LabelOutline),s=0;if(r&&r.enabled&&r.width>0){s=Math.max(Math.min(r.width/10,.4),.1);var a=r.color;this.setOutlineColor(this._colorToObj(a.getR(),a.getG(),a.getB(),Math.ceil(a.getA()*i.opacity/255)))}this.setOutline(s),e.define("CC_USE_MODEL",!0),e.define("USE_TEXTURE_ALPHAONLY",!0),e.define("USE_SDF",s>0||t.enableBold),e.define("USE_SDF_EXTEND",t.enableBold?1:0),void 0!==e.getDefine("CC_SUPPORT_standard_derivatives")&&cc.sys.glExtension("OES_standard_derivatives")&&e.define("CC_SUPPORT_standard_derivatives",!0),n.setEffect(e.effect._nativeObj)},e.fillBuffers=function(){this._layout.render()},e.getVfmt=function(){},t})();i.default=s,e.exports=i.default}),{"../../../../../assets/material/CCMaterial":77,"../../../../../assets/material/material-variant":84,"../../../../../components/CCLabel":104,"../../../../../components/CCLabelOutline":void 0,"../../../../../components/CCLabelShadow":void 0}],208:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../../../../utils/label/ttf"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=t("../../../../../components/CCLabelShadow"),o=cc.color(255,255,255,255),c=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.updateUVs=function(t){for(var e=this._renderData.vDatas[0],i=t._frame.uv,n=this.uvOffset,r=this.floatsPerVert,s=0;s<4;s++){var a=2*s,o=r*s+n;e[o]=i[a],e[o+1]=i[a+1]}},r.updateColor=function(e){o._fastSetA(e.node._color.a);var i=o._val;t.prototype.updateColor.call(this,e,i)},r.updateVerts=function(t){var e=t.node,i=t._ttfTexture.width,n=t._ttfTexture.height,r=e.anchorX*e.width,s=e.anchorY*e.height,o=a&&t.getComponent(a);if(o&&o._enabled){var c=(i-e.width)/2,l=(n-e.height)/2,u=o.offset;-u.x>c?r+=i-e.width:c>u.x&&(r+=c-u.x),-u.y>l?s+=n-e.height:l>u.y&&(s+=l-u.y)}var h=this._local;h[0]=-r,h[1]=-s,h[2]=i-r,h[3]=n-s,this.updateUVs(t),this.updateWorldVerts(t)},n})(r.default);i.default=c,e.exports=i.default}),{"../../../../../components/CCLabelShadow":void 0,"../../../../utils/label/ttf":199}],209:[(function(t){"use strict";var e=l(t("../../../assembler")),i=l(t("../../../../components/CCLabel")),n=l(t("./2d/ttf")),r=l(t("./2d/bmfont")),s=l(t("./2d/letter")),a=l(t("./3d/ttf")),o=l(t("./3d/bmfont")),c=l(t("./3d/letter"));function l(t){return t&&t.__esModule?t:{default:t}}i.default._canvasPool={pool:[],get:function(){var t=this.pool.pop();if(!t){var e=document.createElement("canvas"),i=e.getContext("2d");t={canvas:e,context:i},i.textBaseline="alphabetic"}return t},put:function(t){this.pool.length>=32||this.pool.push(t)}},e.default.register(cc.Label,{getConstructor:function(t){var e=t.node.is3DNode,l=e?a.default:n.default;return t.font instanceof cc.BitmapFont?l=e?o.default:r.default:t.cacheMode===i.default.CacheMode.CHAR&&(cc.sys.platform===cc.sys.WECHAT_GAME_SUB?cc.warn("sorry, subdomain does not support CHAR mode currently!"):l=e?c.default:s.default),l},TTF:n.default,Bmfont:r.default,Letter:s.default,TTF3D:a.default,Bmfont3D:o.default,Letter3D:c.default,NativeTTF:void 0})}),{"../../../../components/CCLabel":104,"../../../assembler":189,"./2d/bmfont":205,"./2d/letter":206,"./2d/nativeTTF":207,"./2d/ttf":208,"./3d/bmfont":void 0,"./3d/letter":void 0,"./3d/ttf":void 0}],210:[(function(t,e,i){"use strict";i.__esModule=!0,i.MaskAssembler=void 0;var n,r=(n=t("../../assembler"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=t("../../../components/CCMask"),o=t("../../render-flow"),c=t("./sprite/2d/simple"),l=t("./graphics"),u=t("../../../../renderer/gfx"),h=t("../vertex-format").vfmtPos,f=8,d=[];function _(){return 1<f&&cc.errorID(9e3,f),d.push(t)}function m(t,e){0===d.length&&cc.errorID(9001),d.pop(),0===d.length?e._flushMaterial(t._exitMaterial):E(e)}function y(t,e){var i=u.DS_FUNC_NEVER,n=_(),r=n,s=n,a=t.inverted?u.STENCIL_OP_REPLACE:u.STENCIL_OP_ZERO;v(t._clearMaterial,i,a,n,r,s);var o=e.getBuffer("mesh",h),c=o.request(4,6),l=c.indiceOffset,f=c.byteOffset>>2,d=c.vertexOffset,p=o._vData,g=o._iData;p[f++]=-1,p[f++]=-1,p[f++]=-1,p[f++]=1,p[f++]=1,p[f++]=1,p[f++]=1,p[f++]=-1,g[l++]=d,g[l++]=d+3,g[l++]=d+1,g[l++]=d+1,g[l++]=d+3,g[l++]=d+2,e.node=e._dummyNode,e.material=t._clearMaterial,e._flush()}function T(t,e){var i=u.DS_FUNC_NEVER,n=_(),r=n,s=n,o=t.inverted?u.STENCIL_OP_ZERO:u.STENCIL_OP_REPLACE;v(t._materials[0],i,o,n,r,s),e.material=t._materials[0],t._type===a.Type.IMAGE_STENCIL?(e.node=e._dummyNode,c.prototype.fillBuffers.call(t._assembler,t,e),e._flush()):(e.node=t.node,l.prototype.fillBuffers.call(t._graphics._assembler,t._graphics,e))}function E(t){var e=u.DS_FUNC_EQUAL,i=u.STENCIL_OP_KEEP,n=p(),r=n,s=_(),a=d[d.length-1];v(a._enableMaterial,e,i,n,r,s),t._flushMaterial(a._enableMaterial)}var A=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.updateRenderData=function(t){t._type===a.Type.IMAGE_STENCIL?t.spriteFrame?c.prototype.updateRenderData.call(this,t):t.setMaterial(0,null):(t._graphics.setMaterial(0,t._materials[0]),l.prototype.updateRenderData.call(t._graphics._assembler,t._graphics,t._graphics))},r.fillBuffers=function(t,e){(t._type!==a.Type.IMAGE_STENCIL||t.spriteFrame)&&(g(t),y(t,e),T(t,e),E(e)),t.node._renderFlag|=o.FLAG_UPDATE_RENDER_DATA},r.postFillBuffers=function(t,e){(t._type!==a.Type.IMAGE_STENCIL||t.spriteFrame)&&m(t,e),t.node._renderFlag|=o.FLAG_UPDATE_RENDER_DATA},n})(c);i.MaskAssembler=A,r.default.register(a,A)}),{"../../../../renderer/gfx":277,"../../../components/CCMask":106,"../../assembler":189,"../../render-flow":193,"../vertex-format":225,"./graphics":203,"./sprite/2d/simple":215}],211:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../../assembler-2d"))&&n.__esModule?n:{default:n};function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var a=t("../../../components/CCMotionStreak"),o=t("../../render-flow");function c(t,e){this.point=t||cc.v2(),this.dir=e||cc.v2(),this.distance=0,this.time=0}c.prototype.setPoint=function(t,e){this.point.x=t,this.point.y=e},c.prototype.setDir=function(t,e){this.dir.x=t,this.dir.y=e},cc.v2(),cc.v2();var l=cc.v2(),u=cc.v2();function h(t,e){return t.x=-e.y,t.y=e.x,t}var f=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.initData=function(){this._renderData.createFlexData(0,16,42)},r.update=function(t,e){var i,n=t._stroke/2,r=t.node._worldMatrix.m,s=r[12],a=r[13],o=t._points;if(o.length>1){var f=o[0].point.x-s,d=o[0].point.y-a;f*f+d*d=0;w--){var R=o[w],M=R.point,I=R.dir;if(R.time-=e,R.time<0)o.splice(w,1);else{var O=R.time/b,D=o[w-1];if(!S){if(!D){o.splice(w,1);continue}M.x=D.point.x-I.x*O,M.y=D.point.y-I.y*O}S=!0,h(l,I);var L=(O*T<<24>>>0)+(y<<16)+(m<<8)+g,P=5*p;C[P]=M.x+l.x*n,C[P+1]=M.y+l.y*n,C[P+2]=1,C[P+3]=O,x[P+4]=L,C[P+=5]=M.x-l.x*n,C[P+1]=M.y-l.y*n,C[P+2]=0,C[P+3]=O,x[P+4]=L,p+=2}}_=p<=2?0:3*(p-2),A.used(p,_)}},r.fillBuffers=function(t,e){var i=this._renderData._flexBuffer,n=i.vData,r=i.usedVertices,s=i.usedIndices,a=i.usedVerticesFloats,c=e._meshBuffer,l=c.request(r,s),u=l.byteOffset>>2,h=c._vData;n.length+u>h.length?h.set(n.subarray(0,a),u):h.set(n,u);for(var f=c._iData,d=l.indiceOffset,_=l.vertexOffset,p=0,v=r;p1?1:n)<0?0:n;var r=(i=(i=i>1?1:i)<0?0:i)+(n=(n-=i)<0?0:n);r=r>1?1:r,this.updateUVs(t,i,r),this.updateVerts(t,i,r),t._vertsDirty=!1}},r.updateUVs=function(t,e,i){var n,r,s,o,c,l,u,h,f,d,_=t._spriteFrame,p=_._texture.width,v=_._texture.height,g=_._rect;_._rotated?(n=g.x/p,r=(g.y+g.width)/v,s=c=n,u=f=(g.x+g.height)/p,l=d=r,o=h=g.y/v):(n=g.x/p,r=(g.y+g.height)/v,s=u=n,c=f=(g.x+g.width)/p,o=l=r,h=d=g.y/v);var m=this._renderData.vDatas[0],y=this.uvOffset,T=this.floatsPerVert;switch(t._fillType){case a.HORIZONTAL:m[y]=s+(c-s)*e,m[y+1]=o+(l-o)*e,m[y+T]=s+(c-s)*i,m[y+T+1]=o+(l-o)*i,m[y+2*T]=u+(f-u)*e,m[y+2*T+1]=h+(d-h)*e,m[y+3*T]=u+(f-u)*i,m[y+3*T+1]=h+(d-h)*i;break;case a.VERTICAL:m[y]=s+(u-s)*e,m[y+1]=o+(h-o)*e,m[y+T]=c+(f-c)*e,m[y+T+1]=l+(d-l)*e,m[y+2*T]=s+(u-s)*i,m[y+2*T+1]=o+(h-o)*i,m[y+3*T]=c+(f-c)*i,m[y+3*T+1]=l+(d-l)*i;break;default:cc.errorID(2626)}},r.updateVerts=function(t,e,i){var n,r=t.node,s=r.width,o=r.height,c=r.anchorX*s,l=r.anchorY*o,u=-c,h=-l,f=s-c,d=o-l;switch(t._fillType){case a.HORIZONTAL:n=u+(f-u)*i,u+=(f-u)*e,f=n;break;case a.VERTICAL:n=h+(d-h)*i,h+=(d-h)*e,d=n;break;default:cc.errorID(2626)}var _=this._local;_[0]=u,_[1]=h,_[2]=f,_[3]=d,this.updateWorldVerts(t)},n})(r.default);i.default=o,e.exports=i.default}),{"../../../../../components/CCSprite":114,"../../../../assembler-2d":187}],213:[(function(t,e,i){"use strict";var n;function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}i.__esModule=!0,i.default=void 0;var s=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,r(e,i);var s=n.prototype;return s.initData=function(){this._renderData.createFlexData(0,4,6,this.getVfmt())},s.updateRenderData=function(t){this.packToDynamicAtlas(t,t._spriteFrame);var e=t.spriteFrame;if(e){var i=e.vertices;if(i){this.verticesCount=i.x.length,this.indicesCount=i.triangles.length;var n=this._renderData._flexBuffer;n.reserve(this.verticesCount,this.indicesCount)&&(this.updateColor(t),t._vertsDirty=!0),n.used(this.verticesCount,this.indicesCount),this.updateIndices(i.triangles),t._vertsDirty&&(this.updateUVs(t),this.updateVerts(t),this.updateWorldVerts(t),t._vertsDirty=!1)}}},s.updateIndices=function(t){this._renderData.iDatas[0].set(t)},s.updateUVs=function(t){for(var e=t.spriteFrame.vertices,i=e.nu,n=e.nv,r=this.uvOffset,s=this.floatsPerVert,a=this._renderData.vDatas[0],o=0;o0){var h=r.y+o*(t-r.x);a[0].x=t,a[0].y=h}if((e-r.x)*u>0){var f=r.y+o*(e-r.x);a[2].x=e,a[2].y=f}}if(0!==Math.sin(s)){if(c=u/l,(n-r.y)*l>0){var d=r.x+c*(n-r.y);a[3].x=d,a[3].y=n}if((i-r.y)*l>0){var _=r.x+c*(i-r.y);a[1].x=_,a[1].y=i}}}function p(t){var e=t.node,i=e.width,n=e.height,r=e.anchorX*i,s=e.anchorY*n,a=-r,l=-s,u=i-r,h=n-s,_=c;_[0]=a,_[1]=l,_[2]=u,_[3]=h;var p=t._fillCenter,v=f.x=Math.min(Math.max(0,p.x),1)*(u-a)+a,g=f.y=Math.min(Math.max(0,p.y),1)*(h-l)+l;o[0].x=o[3].x=a,o[1].x=o[2].x=u,o[0].y=o[1].y=l,o[2].y=o[3].y=h,d.length=0,v!==_[0]&&(d[0]=[3,0]),v!==_[2]&&(d[2]=[1,2]),g!==_[1]&&(d[1]=[0,1]),g!==_[3]&&(d[3]=[2,3])}function v(t,e){var i,n;if(i=e.x-t.x,n=e.y-t.y,0!==i||0!==n){if(0===i)return n>0?.5*Math.PI:1.5*Math.PI;var r=Math.atan(n/i);return i<0&&(r+=Math.PI),r}}var g=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.initData=function(){this._renderData.createFlexData(0,4,6,this.getVfmt()),this.updateIndices()},r.updateRenderData=function(e){t.prototype.updateRenderData.call(this,e);var i,n,r,s,o,d,v,g,m,y=e.spriteFrame;if(this.packToDynamicAtlas(e,y),e._vertsDirty){var T=e._fillStart,E=e._fillRange;for(E<0&&(T+=E,E=-E);T>=1;)T-=1;for(;T<0;)T+=1;T*=a,E*=a,p(e),d=(i=y)._texture.width,v=i._texture.height,g=i._rect,m=l,i._rotated?(n=g.x/d,r=(g.x+g.height)/d,s=g.y/v,o=(g.y+g.width)/v,m[0]=m[2]=n,m[4]=m[6]=r,m[3]=m[7]=o,m[1]=m[5]=s):(n=g.x/d,r=(g.x+g.width)/d,s=g.y/v,o=(g.y+g.height)/v,m[0]=m[4]=n,m[2]=m[6]=r,m[1]=m[3]=o,m[5]=m[7]=s),_(c[0],c[2],c[1],c[3],f,T,u),_(c[0],c[2],c[1],c[3],f,T+E,h),this.updateVerts(e,T,E),e._vertsDirty=!1}},r.updateVerts=function(t,e,i){var n=e+i,r=this._local;r.length=0;for(var s=0,c=3*this.floatsPerVert,l=0;l<4;++l){var _=d[l];if(_)if(i>=a)r.length=s+c,this._generateTriangle(r,s,f,o[_[0]],o[_[1]]),s+=c;else{var p=v(f,o[_[0]]),g=v(f,o[_[1]]);g=n||(p>=e?(r.length=s+c,g>=n?this._generateTriangle(r,s,f,o[_[0]],h[l]):this._generateTriangle(r,s,f,o[_[0]],o[_[1]]),s+=c):g<=e||(g<=n?(r.length=s+c,this._generateTriangle(r,s,f,u[l],o[_[1]]),s+=c):(r.length=s+c,this._generateTriangle(r,s,f,u[l],h[l]),s+=c))),p+=a,g+=a}}this.allocWorldVerts(t),this.updateWorldVerts(t)},r.allocWorldVerts=function(t){var e=t.node._color._val,i=this._renderData,n=this.floatsPerVert,r=this._local,s=r.length/n;this.verticesCount=this.indicesCount=s;var a=i._flexBuffer;a.reserve(s,s)&&this.updateIndices(),a.used(this.verticesCount,this.indicesCount);for(var o=i.vDatas[0],c=i.uintVDatas[0],l=this.uvOffset,u=0;u0)){this._renderData.createData(0,this.verticesFloats,this.indicesCount);for(var t=this._renderData.iDatas[0],e=0,i=0;i<3;++i)for(var n=0;n<3;++n){var r=4*i+n;t[e++]=r,t[e++]=r+1,t[e++]=r+4,t[e++]=r+1,t[e++]=r+5,t[e++]=r+4}}},s.initLocal=function(){this._local=[],this._local.length=8},s.updateRenderData=function(t){var e=t._spriteFrame;this.packToDynamicAtlas(t,e),t._vertsDirty&&(this.updateUVs(t),this.updateVerts(t),t._vertsDirty=!1)},s.updateVerts=function(t){var e=t.node,i=e.width,n=e.height,r=e.anchorX*i,s=e.anchorY*n,a=t.spriteFrame,o=a.insetLeft,c=a.insetRight,l=a.insetTop,u=a.insetBottom,h=i-o-c,f=n-l-u,d=i/(o+c),_=n/(l+u);d=isNaN(d)||d>1?1:d,_=isNaN(_)||_>1?1:_,h=h<0?0:h,f=f<0?0:f;var p=this._local;p[0]=-r,p[1]=-s,p[2]=o*d-r,p[3]=u*_-s,p[4]=p[2]+h,p[5]=p[3]+f,p[6]=i-r,p[7]=n-s,this.updateWorldVerts(t)},s.updateUVs=function(t){for(var e=this._renderData.vDatas[0],i=t.spriteFrame.uvSliced,n=this.uvOffset,r=this.floatsPerVert,s=0;s<4;++s)for(var a=0;a<4;++a){var o=4*s+a,c=i[o],l=o*r;e[l+n]=c.u,e[l+n+1]=c.v}},s.updateWorldVerts=function(t){for(var e=t.node._worldMatrix.m,i=e[0],n=e[1],r=e[4],s=e[5],a=e[12],o=e[13],c=this._local,l=this._renderData.vDatas[0],u=this.floatsPerVert,h=0;h<4;++h)for(var f=c[2*h+1],d=0;d<4;++d){var _=c[2*d],p=(4*h+d)*u;l[p]=_*i+f*r+a,l[p+1]=_*n+f*s+o}},n})(((n=t("../../../../assembler-2d"))&&n.__esModule?n:{default:n}).default);i.default=s,Object.assign(s.prototype,{verticesCount:16,indicesCount:54}),e.exports=i.default}),{"../../../../assembler-2d":187}],217:[(function(t,e,i){"use strict";var n;function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}i.__esModule=!0,i.default=void 0;var s=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,r(e,i);var s=n.prototype;return s.initData=function(){this.verticesCount=0,this.contentWidth=0,this.contentHeight=0,this.rectWidth=0,this.rectHeight=0,this.hRepeat=0,this.vRepeat=0,this.row=0,this.col=0,this._renderData.createFlexData(0,4,6,this.getVfmt()),this._updateIndices()},s.initLocal=function(){this._local={x:[],y:[]}},s._updateIndices=function(){for(var t=this._renderData.iDatas[0],e=0,i=0,n=t.length;e0?this.sizableWidth:0,this.sizableHeight=this.sizableHeight>0?this.sizableHeight:0;var f=this.hRepeat=0===c?this.sizableWidth:this.sizableWidth/c,d=this.vRepeat=0===h?this.sizableHeight:this.sizableHeight/h,_=(this.row=Math.ceil(d+2))*(this.col=Math.ceil(f+2));this.verticesCount=4*_,this.indicesCount=6*_;var p=this._renderData._flexBuffer;p.reserve(this.verticesCount,this.indicesCount)&&(this._updateIndices(),this.updateColor(t)),p.used(this.verticesCount,this.indicesCount),t._vertsDirty&&(this.updateUVs(t),this.updateVerts(t),t._vertsDirty=!1)},s.updateVerts=function(t){var e=t._spriteFrame,i=e._rect,n=t.node,r=n.anchorX*n.width,s=n.anchorY*n.height,a=this.row,o=this.col,c=this.contentWidth,l=this.contentHeight,u=this._local,h=u.x,f=u.y;h.length=f.length=0;var d,_,p=e.insetLeft,v=e.insetRight,g=i.width-p-v,m=e.insetTop,y=e.insetBottom,T=i.height-m-y,E=n.width/(p+v)>1?1:n.width/(p+v),A=n.height/(m+y)>1?1:n.height/(m+y);d=g>0?Math.floor(1e3*this.sizableWidth)/1e3%g==0?g:this.sizableWidth%g:this.sizableWidth,_=T>0?Math.floor(1e3*this.sizableHeight)/1e3%T==0?T:this.sizableHeight%T:this.sizableHeight;for(var C=0;C<=o;C++)0===C?h[C]=-r:C>0&&C0?C===o-1?p+d+g*(C-2)-r:p+Math.min(g,this.sizableWidth)+g*(C-2)-r:p+this.sizableWidth-r:C===o&&(h[C]=Math.min(p+this.sizableWidth+v,c)-r);for(var x=0;x<=a;x++)0===x?f[x]=-s:x>0&&x0?x===a-1?y+_+(x-2)*T-s:y+Math.min(T,this.sizableHeight)+(x-2)*T-s:y+this.sizableHeight-s:x===a&&(f[x]=Math.min(y+this.sizableHeight+m,l)-s);this.updateWorldVerts(t)},s.updateWorldVerts=function(t){for(var e,i,n,r,s=this._renderData,a=this._local,o=a.x,c=a.y,l=s.vDatas[0],u=this.row,h=this.col,f=t.node._worldMatrix.m,d=f[0],_=f[1],p=f[4],v=f[5],g=f[12],m=f[13],y=this.floatsPerVert,T=0,E=0,A=u;El?this.sizableHeight>=C*l?1:d%1:d;for(var b=0,S=h;ba?this.sizableWidth>=b*a?1:f%1:f,m?(0===C?(E[0]=g[0].u,E[1]=g[0].u,E[2]=g[4].u+(g[8].u-g[4].u)*p):C>2,n=this.vData.length,r=!1;if(i>n){for(;ns){for(;s>2,this._handler.updateMeshRange(t,e)},e.reset=function(){var t=this._initVerticesCount*this._verticesBytes>>2;this._reallocVData(t),this._reallocIData(this._initIndicesCount),this.usedVertices=0,this.usedVerticesFloats=0,this.usedIndices=0},t})();i.default=n,cc.FlexBuffer=n,e.exports=i.default}),{}],220:[(function(t,e){"use strict";var i,n=(i=t("../../../renderer/gfx"))&&i.__esModule?i:{default:i},r=(cc.sys.os===cc.sys.OS_IOS||cc.sys.os===cc.sys.OS_OSX)&&cc.sys.isBrowser&&/(OS 1[4-9])|(Version\/1[4-9])/.test(window.navigator.userAgent),s=cc.Class({name:"cc.MeshBuffer",ctor:function(t,e){this.init(t,e)},init:function(t,e){this.byteOffset=0,this.indiceOffset=0,this.vertexOffset=0,this.indiceStart=0,this._dirty=!1,this._vertexFormat=e,this._vertexBytes=this._vertexFormat._bytes,this._arrOffset=0,this._vbArr=[],this._vb=new n.default.VertexBuffer(t._device,e,n.default.USAGE_DYNAMIC,new ArrayBuffer,0),this._vbArr[0]=this._vb,this._ibArr=[],this._ib=new n.default.IndexBuffer(t._device,n.default.INDEX_FMT_UINT16,n.default.USAGE_STATIC,new ArrayBuffer,0),this._ibArr[0]=this._ib,this._vData=null,this._uintVData=null,this._iData=null,this._batcher=t,this._initVDataCount=256*e._bytes,this._initIDataCount=1536,this._offsetInfo={byteOffset:0,vertexOffset:0,indiceOffset:0},this._reallocBuffer()},uploadData:function(){if(0!==this.byteOffset&&this._dirty){var t=new Float32Array(this._vData.buffer,0,this.byteOffset>>2),e=new Uint16Array(this._iData.buffer,0,this.indiceOffset);this._vb.update(0,t),this._ib.update(0,e),this._dirty=!1}},switchBuffer:function(){var t=++this._arrOffset;this.byteOffset=0,this.vertexOffset=0,this.indiceOffset=0,this.indiceStart=0,t65535&&(this.uploadData(),this._batcher._flush(),this.switchBuffer())},requestStatic:function(t,e){this.checkAndSwitchBuffer(t);var i=this.byteOffset+t*this._vertexBytes,n=this.indiceOffset+e,r=this._vData.byteLength,s=this._iData.length;if(i>r||n>s){for(;r65535&&(this.uploadData(),this._batcher._flush())},s.prototype.forwardIndiceStartToOffset=function(){this.uploadData(),this.switchBuffer()}),cc.MeshBuffer=e.exports=s}),{"../../../renderer/gfx":277}],221:[(function(t,e){"use strict";var i=s(t("../../../renderer/core/input-assembler")),n=s(t("../../../renderer/memop/recycle-pool")),r=s(t("../../../renderer/scene/model"));function s(t){return t&&t.__esModule?t:{default:t}}var a=t("./vertex-format"),o=a.vfmtPosUvColor,c=a.vfmt3D,l=t("./quad-buffer"),u=t("./mesh-buffer"),h=t("./spine-buffer"),f=t("../../assets/material/CCMaterial"),d=(new(t("../../platform/id-generater"))("VertextFormat"),{}),_=new f,p=new i.default;p._count=0;var v=function(t,e){this._renderScene=e,this._device=t,this.walking=!1,this.material=_,this.cullingMask=1,this._iaPool=new n.default(function(){return new i.default},16),this._modelPool=new n.default(function(){return new r.default},16),this._quadBuffer=this.getBuffer("quad",o),this._meshBuffer=this.getBuffer("mesh",o),this._quadBuffer3D=this.getBuffer("quad",c),this._meshBuffer3D=this.getBuffer("mesh",c),this._buffer=this._meshBuffer,this._batchedModels=[],this._dummyNode=new cc.Node,this._sortKey=0,this.node=this._dummyNode,this.parentOpacity=1,this.parentOpacityDirty=0,this.worldMatDirty=0};v.prototype={constructor:v,reset:function(){this._iaPool.reset();for(var t=this._renderScene,e=this._batchedModels,i=0;i>2);this._vb.update(0,t),this._dirty=!1}},switchBuffer:function(){this._super();var t=new Uint16Array(this._iData.buffer,0,this._initIDataCount);this._ib.update(0,t)},_reallocBuffer:function(){this._reallocVData(!0),this._reallocIData(),this._fillQuadBuffer()}});cc.QuadBuffer=e.exports=n}),{"./mesh-buffer":220}],223:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=a;var n,r=(n=t("./flex-buffer"))&&n.__esModule?n:{default:n},s=t("./vertex-format");function a(){this.vDatas=[],this.uintVDatas=[],this.iDatas=[],this.meshCount=0,this._infos=null,this._flexBuffer=null}cc.js.mixin(a.prototype,{init:function(){},clear:function(){this.vDatas.length=0,this.iDatas.length=0,this.uintVDatas.length=0,this.meshCount=0,this._infos=null,this._flexBuffer&&this._flexBuffer.reset()},updateMesh:function(t,e,i){this.vDatas[t]=e,this.uintVDatas[t]=new Uint32Array(e.buffer,0,e.length),this.iDatas[t]=i,this.meshCount=this.vDatas.length},updateMeshRange:function(){},createData:function(t,e,i){var n=new Float32Array(e),r=new Uint16Array(i);this.updateMesh(t,n,r)},createQuadData:function(t,e,i){this.createData(t,e,i),this.initQuadIndices(this.iDatas[t])},createFlexData:function(t,e,i,n){n=n||s.vfmtPosUvColor,this._flexBuffer=new r.default(this,t,e,i,n)},initQuadIndices:function(t){for(var e=t.length/6,i=0,n=0;ir||n>s){for(;r0&&(t=t.substring(0,i));var n=/(\/|\\)([^\/\\]+)$/g.exec(t.replace(/(\/|\\)$/,""));if(!n)return t;var r=n[2];return e&&t.substring(t.length-e.length).toLowerCase()===e.toLowerCase()?r.substring(0,r.length-e.length):r},dirname:function(t){var e=n.exec(t);return e?e[2]:""},changeExtname:function(t,e){e=e||"";var i=t.indexOf("?"),n="";return i>0&&(n=t.substring(i),t=t.substring(0,i)),(i=t.lastIndexOf("."))<0?t+e+n:t.substring(0,i)+e+n},changeBasename:function(t,e,i){if(0===e.indexOf("."))return this.changeExtname(t,e);var n=t.indexOf("?"),r="",s=i?this.extname(t):"";return n>0&&(r=t.substring(n),t=t.substring(0,n)),n=(n=t.lastIndexOf("/"))<=0?0:n+1,t.substring(0,n)+e+s+r},_normalize:function(t){var e=t=String(t);do{e=t,t=t.replace(r,"")}while(e.length!==t.length);return t},sep:cc.sys.os===cc.sys.OS_WINDOWS?"\\":"/",stripSep:function(t){return t.replace(/[\/\\]$/,"")}},e.exports=cc.path}),{"../platform/CCSys":170}],227:[(function(t,e){"use strict";var i=function(t,e,i,n,r,s){this.a=t,this.b=e,this.c=i,this.d=n,this.tx=r,this.ty=s};i.create=function(t,e,i,n,r,s){return{a:t,b:e,c:i,d:n,tx:r,ty:s}},i.identity=function(){return{a:1,b:0,c:0,d:1,tx:0,ty:0}},i.clone=function(t){return{a:t.a,b:t.b,c:t.c,d:t.d,tx:t.tx,ty:t.ty}},i.concat=function(t,e,i){var n=e.a,r=e.b,s=e.c,a=e.d,o=e.tx,c=e.ty;return t.a=n*i.a+r*i.c,t.b=n*i.b+r*i.d,t.c=s*i.a+a*i.c,t.d=s*i.b+a*i.d,t.tx=o*i.a+c*i.c+i.tx,t.ty=o*i.b+c*i.d+i.ty,t},i.invert=function(t,e){var i=e.a,n=e.b,r=e.c,s=e.d,a=1/(i*s-n*r),o=e.tx,c=e.ty;return t.a=a*s,t.b=-a*n,t.c=-a*r,t.d=a*i,t.tx=a*(r*c-s*o),t.ty=a*(n*o-i*c),t},i.fromMat4=function(t,e){var i=e.m;return t.a=i[0],t.b=i[1],t.c=i[4],t.d=i[5],t.tx=i[12],t.ty=i[13],t},i.transformVec2=function(t,e,i,n){var r,s;return void 0===n?(n=i,r=e.x,s=e.y):(r=e,s=i),t.x=n.a*r+n.c*s+n.tx,t.y=n.b*r+n.d*s+n.ty,t},i.transformSize=function(t,e,i){return t.width=i.a*e.width+i.c*e.height,t.height=i.b*e.width+i.d*e.height,t},i.transformRect=function(t,e,i){var n=e.x,r=e.y,s=n+e.width,a=r+e.height,o=i.a*n+i.c*r+i.tx,c=i.b*n+i.d*r+i.ty,l=i.a*s+i.c*r+i.tx,u=i.b*s+i.d*r+i.ty,h=i.a*n+i.c*a+i.tx,f=i.b*n+i.d*a+i.ty,d=i.a*s+i.c*a+i.tx,_=i.b*s+i.d*a+i.ty,p=Math.min(o,l,h,d),v=Math.max(o,l,h,d),g=Math.min(c,u,f,_),m=Math.max(c,u,f,_);return t.x=p,t.y=g,t.width=v-p,t.height=m-g,t},i.transformObb=function(t,e,i,n,r,s){var a=r.x,o=r.y,c=r.width,l=r.height,u=s.a*a+s.c*o+s.tx,h=s.b*a+s.d*o+s.ty,f=s.a*c,d=s.b*c,_=s.c*l,p=s.d*l;e.x=u,e.y=h,i.x=f+u,i.y=d+h,t.x=_+u,t.y=p+h,n.x=f+_+u,n.y=d+p+h},cc.AffineTransform=e.exports=i}),{}],228:[(function(t,e){"use strict";var i=t("../platform/CCObject").Flags,n=t("./misc"),r=t("../platform/js"),s=t("../platform/id-generater"),a=t("../event-manager"),o=t("../renderer/render-flow"),c=i.Destroying,l=i.DontDestroy,u=i.Deactivating,h=new s("Node");function f(t){return t?"string"==typeof t?r.getClassByName(t):t:(cc.errorID(3804),null)}function d(t,e){if(e._sealed)for(var i=0;i0&&(r=p(n._children,e)))return r}return null}function v(t,e,i){for(var n=0;n0&&v(r._children,e,i)}}var g=cc.Class({name:"cc._BaseNode",extends:cc.Object,properties:{_parent:null,_children:[],_active:!0,_components:[],_prefab:null,_persistNode:{get:function(){return(this._objFlags&l)>0},set:function(t){t?this._objFlags|=l:this._objFlags&=~l}},name:{get:function(){return this._name},set:function(t){this._name=t}},uuid:{get:function(){return this._id}},children:{get:function(){return this._children}},childrenCount:{get:function(){return this._children.length}},active:{get:function(){return this._active},set:function(t){if(t=!!t,this._active!==t){this._active=t;var e=this._parent;e&&e._activeInHierarchy&&cc.director._nodeActivator.activateNode(this,t)}}},activeInHierarchy:{get:function(){return this._activeInHierarchy}}},ctor:function(t){this._name=void 0!==t?t:"New Node",this._activeInHierarchy=!1,this._id=h.getNewId(),cc.director._scheduler&&cc.director._scheduler.enableForTarget(this),this.__eventTargets=[]},getParent:function(){return this._parent},setParent:function(t){if(this._parent!==t){var e=this._parent;if(this._parent=t||null,this._onSetParent(t),t&&(a._setDirtyForNode(this),t._children.push(this),t.emit&&t.emit("child-added",this),t._renderFlag|=o.FLAG_CHILDREN),e){if(!(e._objFlags&c)){var i=e._children.indexOf(this);e._children.splice(i,1),e.emit&&e.emit("child-removed",this),this._onHierarchyChanged(e),0===e._children.length&&(e._renderFlag&=~o.FLAG_CHILDREN)}}else t&&this._onHierarchyChanged(null)}},attr:function(t){r.mixin(this,t)},getChildByUuid:function(t){if(!t)return cc.log("Invalid uuid"),null;for(var e=this._children,i=0,n=e.length;i0?(l=n,i=n._children,r=0,c[o]=i[r],o++):(c[o]=n,o++,s=!0);c.length=0,a._stackId--},cleanup:function(){},removeFromParent:function(t){this._parent&&(void 0===t&&(t=!0),this._parent.removeChild(this,t))},removeChild:function(t,e){this._children.indexOf(t)>-1&&((e||void 0===e)&&t.cleanup(),t.parent=null)},removeAllChildren:function(t){var e=this._children;void 0===t&&(t=!0);for(var i=e.length-1;i>=0;i--){var n=e[i];n&&(t&&n.cleanup(),n.parent=null)}this._children.length=0},isChildOf:function(t){var e=this;do{if(e===t)return!0;e=e._parent}while(e);return!1},getComponent:function(t){var e=f(t);return e?d(this,e):null},getComponents:function(t){var e=f(t),i=[];return e&&_(this,e,i),i},getComponentInChildren:function(t){var e=f(t);return e?p(this._children,e):null},getComponentsInChildren:function(t){var e=f(t),i=[];return e&&(_(this,e,i),v(this._children,e,i)),i},_checkMultipleComp:!1,addComponent:function(t){var e;if("string"==typeof t){if(!(e=r.getClassByName(t)))return cc.errorID(3807,t),cc._RFpeek()&&cc.errorID(3808,t),null}else{if(!t)return cc.errorID(3804),null;e=t}if("function"!=typeof e)return cc.errorID(3809),null;if(!r.isChildClassOf(e,cc.Component))return cc.errorID(3810),null;var i=e._requireComponent;if(i&&!this.getComponent(i)&&!this.addComponent(i))return null;var n=new e;return n.node=this,this._components.push(n),this._activeInHierarchy&&cc.director._nodeActivator.activateComp(n),n},_addComponentAt:!1,removeComponent:function(t){t?(t instanceof cc.Component||(t=this.getComponent(t)),t&&t.destroy()):cc.errorID(3813)},_getDependComponent:!1,_removeComponent:function(t){if(t){if(!(this._objFlags&c)){var e=this._components.indexOf(t);-1!==e?this._components.splice(e,1):t.node!==this&&cc.errorID(3815)}}else cc.errorID(3814)},destroy:function(){cc.Object.prototype.destroy.call(this)&&(this.active=!1)},destroyAllChildren:function(){for(var t=this._children,e=0;e>>1;i<=n;r=i+n>>>1){var s=t[r];if(s>e+1e-6)n=r-1;else{if(!(s>2],s[a[r++]]=n[(3&o)<<2|c>>4],s[a[r++]]=n[15&c]}return s.join("")}}),{"./misc":235}],232:[(function(t,e){"use strict";cc.find=e.exports=function(t,e){if(null==t)return cc.errorID(3814),null;if(e);else{var i=cc.director.getScene();if(!i)return null;e=i}for(var n=e,r="/"!==t[0]?0:1,s=t.split("/"),a=r;a>1,t|=t>>2,t|=t>>4,t|=t>>8,1+(t|=t>>16)},BUILTIN_CLASSID_RE:/^(?:cc|dragonBones|sp|ccsg)\..+/},r=new Array(123),s=0;s<123;++s)r[s]=64;for(var a=0;a<64;++a)r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charCodeAt(a)]=a;n.BASE64_VALUES=r,n.pushToMap=function(t,e,i,n){var r=t[e];r?Array.isArray(r)?n?(r.push(r[0]),r[0]=i):r.push(i):t[e]=n?[i,r]:[r,i]:t[e]=i},n.clampf=function(t,e,i){if(e>i){var n=e;e=i,i=n}return t=0&&this.removeAt(e)},n.removeAt=function(t){this.array.splice(t,1),t<=this.i&&--this.i},n.fastRemove=function(t){var e=this.array.indexOf(t);e>=0&&this.fastRemoveAt(e)},n.fastRemoveAt=function(t){var e=this.array;e[t]=e[e.length-1],--e.length,t<=this.i&&--this.i},n.push=function(t){this.array.push(t)},e.exports=i}),{}],237:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=(function(){function t(){this.enabled=!1,this.count=0,this.maxSize=1024}var e=t.prototype;return e.get=function(){},e.put=function(){},e.clear=function(){},t})();i.default=n,cc.pool={},n.register=function(t,e){cc.pool[t]=e},e.exports=i.default}),{}],238:[(function(t,e){"use strict";cc._PrefabInfo=cc.Class({name:"cc.PrefabInfo",properties:{root:null,asset:null,fileId:"",sync:!1}}),e.exports={syncWithPrefab:function(t){var e=t._prefab;if(!e.asset)return cc.errorID(3701,t.name),void(t._prefab=null);var i=t._objFlags,n=t._parent,r=t._id,s=t._name,a=t._active,o=t._eulerAngles.x,c=t._eulerAngles.y,l=t._eulerAngles.z,u=t._localZOrder,h=t._trs,f=h[0],d=h[1],_=h[2];cc.game._isCloning=!0,e.asset._doInstantiate(t),cc.game._isCloning=!1,t._objFlags=i,t._parent=n,t._id=r,t._prefab=e,t._name=s,t._active=a,t._localZOrder=u,(h=t._trs)[0]=f,h[1]=d,h[2]=_,t._eulerAngles.x=o,t._eulerAngles.y=c,t._eulerAngles.z=l}}}),{}],239:[(function(t,e){"use strict";var i=t("../../platform/CCMacro"),n=t("./perf-counter"),r=!1,s=15,a=null,o=null,c=null;function l(){if(!a){a={fps:{desc:"Framerate (FPS)",below:30,average:500},draws:{desc:"Draw Call"},frame:{desc:"Frame time (ms)",min:0,max:50,average:500},logic:{desc:"Game Logic (ms)",min:0,max:50,average:500,color:"#080"},render:{desc:"Renderer (ms)",min:0,max:50,average:500,color:"#f90"},mode:{desc:cc.game.renderType===cc.game.RENDER_TYPE_WEBGL?"WebGL":"Canvas",min:1}};var t=performance.now();for(var e in a)a[e]._counter=new n(e,a[e],t)}}function u(){if(!o||!o.isValid){(o=new cc.Node("PROFILER-NODE")).x=o.y=10,o.groupIndex=cc.Node.BuiltinGroupIndex.DEBUG,cc.Camera._setupDebugCamera(),o.zIndex=i.MAX_ZINDEX,cc.game.addPersistRootNode(o);var t=new cc.Node("LEFT-PANEL");t.anchorX=t.anchorY=0;var e=t.addComponent(cc.Label);e.fontSize=s,e.lineHeight=s,t.parent=o;var n=new cc.Node("RIGHT-PANEL");n.anchorX=1,n.anchorY=0,n.x=200;var r=n.addComponent(cc.Label);r.horizontalAlign=cc.Label.HorizontalAlign.RIGHT,r.fontSize=s,r.lineHeight=s,n.parent=o,cc.sys.platform!==cc.sys.BAIDU_GAME_SUB&&cc.sys.platform!==cc.sys.WECHAT_GAME_SUB&&(e.cacheMode=cc.Label.CacheMode.CHAR,r.cacheMode=cc.Label.CacheMode.CHAR),c={left:e,right:r}}}function h(){u();var t=cc.director._lastUpdate;a.frame._counter.start(t),a.logic._counter.start(t)}function f(){var t=performance.now();cc.director.isPaused()?a.frame._counter.start(t):a.logic._counter.end(t),a.render._counter.start(t)}function d(){var t=performance.now();a.render._counter.end(t),a.draws._counter.value=cc.renderer.drawCalls,a.frame._counter.end(t),a.fps._counter.frame(t);var e="",i="";for(var n in a){var r=a[n];r._counter.sample(t),e+=r.desc+"\n",i+=r._counter.human()+"\n"}c&&(c.left.string=e,c.right.string=i)}cc.profiler=e.exports={isShowingStats:function(){return r},hideStats:function(){r&&(o&&(o.active=!1),cc.director.off(cc.Director.EVENT_BEFORE_UPDATE,h),cc.director.off(cc.Director.EVENT_AFTER_UPDATE,f),cc.director.off(cc.Director.EVENT_AFTER_DRAW,d),r=!1)},showStats:function(){r||(l(),o&&(o.active=!0),cc.director.on(cc.Director.EVENT_BEFORE_UPDATE,h),cc.director.on(cc.Director.EVENT_AFTER_UPDATE,f),cc.director.on(cc.Director.EVENT_AFTER_DRAW,d),r=!0)}}}),{"../../platform/CCMacro":166,"./perf-counter":241}],240:[(function(t,e){"use strict";var i=cc.Class({name:"cc.Counter",ctor:function(t,e,i){this._id=t,this._opts=e||{},this._value=0,this._total=0,this._averageValue=0,this._accumValue=0,this._accumSamples=0,this._accumStart=i},properties:{value:{get:function(){return this._value},set:function(t){this._value=t}}},_average:function(t,e){if(this._opts.average){this._accumValue+=t,++this._accumSamples;var i=e;i-this._accumStart>=this._opts.average&&(this._averageValue=this._accumValue/this._accumSamples,this._accumValue=0,this._accumStart=i,this._accumSamples=0)}},sample:function(t){this._average(this._value,t)},human:function(){var t=this._opts.average?this._averageValue:this._value;return Math.round(100*t)/100},alarm:function(){return this._opts.below&&this._valuethis._opts.over}});e.exports=i}),{}],241:[(function(t,e){"use strict";var i=t("./counter"),n=cc.Class({name:"cc.PerfCounter",extends:i,ctor:function(t,e,i){this._time=i},start:function(t){this._time=t},end:function(t){this._value=t-this._time,this._average(this._value)},tick:function(){this.end(),this.start()},frame:function(t){var e=t,i=e-this._time;this._total++,i>(this._opts.average||1e3)&&(this._value=1e3*this._total/i,this._total=0,this._time=e,this._average(this._value))}});e.exports=n}),{"./counter":240}],242:[(function(t,e){"use strict";var i,n=new(((i=t("../platform/js"))&&i.__esModule?i:{default:i}).default.Pool)(2);function r(t){this.count=0,this.limit=t,this.datas={},this.head=null,this.tail=null}n.get=function(){return this._get()||{key:null,value:null,prev:null,next:null}},r.prototype.moveToHead=function(t){t.next=this.head,t.prev=null,null!==this.head&&(this.head.prev=t),this.head=t,null===this.tail&&(this.tail=t),this.count++,this.datas[t.key]=t},r.prototype.put=function(t,e){var i=n.get();if(i.key=t,i.value=e,this.count>=this.limit){var r=this.tail;delete this.datas[r.key],this.count--,this.tail=r.prev,this.tail.next=null,r.prev=null,r.next=null,n.put(r)}this.moveToHead(i)},r.prototype.remove=function(t){null!==t.prev?t.prev.next=t.next:this.head=t.next,null!==t.next?t.next.prev=t.prev:this.tail=t.prev,delete this.datas[t.key],this.count--},r.prototype.get=function(t){var e=this.datas[t];return e?(this.remove(e),this.moveToHead(e),e.value):null},r.prototype.clear=function(){this.count=0,this.datas={},this.head=null,this.tail=null},r.prototype.has=function(t){return!!this.datas[t]},r.prototype.delete=function(t){var e=this.datas[t];this.remove(e)};var s=new r(100),a={BASELINE_RATIO:.26,MIDDLE_RATIO:.37,BASELINE_OFFSET:0,label_wordRex:/([a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430-\u044f\u0410-\u042f\u0401\u0451]+|\S)/,label_symbolRex:/^[!,.:;'}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/,label_lastWordRex:/([a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430\xed\xec\xcd\xcc\xef\xc1\xc0\xe1\xe0\xc9\xc8\xd2\xd3\xf2\xf3\u0150\u0151\xd9\xda\u0170\xfa\u0171\xf1\xd1\xe6\xc6\u0153\u0152\xc3\xc2\xe3\xd4\xf5\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\xf3\xfa\u016f\u0165\u010f\u0148\u011a\u0160\u010c\u0158\u017d\xc1\xcd\xc9\xd3\xda\u0164\u017c\u017a\u015b\xf3\u0144\u0142\u0119\u0107\u0105\u017b\u0179\u015a\xd3\u0143\u0141\u0118\u0106\u0104-\u044f\u0410-\u042f\u0401\u0451]+|\S)$/,label_lastEnglish:/[a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430\xed\xec\xcd\xcc\xef\xc1\xc0\xe1\xe0\xc9\xc8\xd2\xd3\xf2\xf3\u0150\u0151\xd9\xda\u0170\xfa\u0171\xf1\xd1\xe6\xc6\u0153\u0152\xc3\xc2\xe3\xd4\xf5\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\xf3\xfa\u016f\u0165\u010f\u0148\u011a\u0160\u010c\u0158\u017d\xc1\xcd\xc9\xd3\xda\u0164\u017c\u017a\u015b\xf3\u0144\u0142\u0119\u0107\u0105\u017b\u0179\u015a\xd3\u0143\u0141\u0118\u0106\u0104-\u044f\u0410-\u042f\u0401\u0451]+$/,label_firstEnglish:/^[a-zA-Z0-9\xc4\xd6\xdc\xe4\xf6\xfc\xdf\xe9\xe8\xe7\xe0\xf9\xea\xe2\xee\xf4\xfb\u0430\xed\xec\xcd\xcc\xef\xc1\xc0\xe1\xe0\xc9\xc8\xd2\xd3\xf2\xf3\u0150\u0151\xd9\xda\u0170\xfa\u0171\xf1\xd1\xe6\xc6\u0153\u0152\xc3\xc2\xe3\xd4\xf5\u011b\u0161\u010d\u0159\u017e\xfd\xe1\xed\xe9\xf3\xfa\u016f\u0165\u010f\u0148\u011a\u0160\u010c\u0158\u017d\xc1\xcd\xc9\xd3\xda\u0164\u017c\u017a\u015b\xf3\u0144\u0142\u0119\u0107\u0105\u017b\u0179\u015a\xd3\u0143\u0141\u0118\u0106\u0104-\u044f\u0410-\u042f\u0401\u0451]/,highSurrogateRex:/[\uD800-\uDBFF]/,lowSurrogateRex:/[\uDC00-\uDFFF]/,label_wrapinspection:!0,__CHINESE_REG:/^[\u4E00-\u9FFF\u3400-\u4DFF]+$/,__JAPANESE_REG:/[\u3000-\u303F]|[\u3040-\u309F]|[\u30A0-\u30FF]|[\uFF00-\uFFEF]|[\u4E00-\u9FAF]|[\u2605-\u2606]|[\u2190-\u2195]|\u203B/g,__KOREAN_REG:/^[\u1100-\u11FF]|[\u3130-\u318F]|[\uA960-\uA97F]|[\uAC00-\uD7AF]|[\uD7B0-\uD7FF]+$/,isUnicodeCJK:function(t){return this.__CHINESE_REG.test(t)||this.__JAPANESE_REG.test(t)||this.__KOREAN_REG.test(t)},isUnicodeSpace:function(t){return(t=t.charCodeAt(0))>=9&&t<=13||32===t||133===t||160===t||5760===t||t>=8192&&t<=8202||8232===t||8233===t||8239===t||8287===t||12288===t},safeMeasureText:function(t,e,i){var n=(i||t.font)+"\ud83c\udfae"+e,r=s.get(n);if(null!==r)return r;var a=t.measureText(e),o=a&&a.width||0;return s.put(n,o),o},_safeSubstring:function(t,e,i){var n=e,r=i,s=t[e];if(this.lowSurrogateRex.test(s)&&n--,void 0!==i)if(i-1!==e){var a=t[i-1];this.highSurrogateRex.test(a)&&r--}else this.highSurrogateRex.test(s)&&r++;return t.substring(n,r)},fragmentText:function(t,e,i,n){var r=[];if(0===t.length||i<0)return r.push(""),r;for(var s=t;e>i&&s.length>1;){for(var a=s.length*(i/e)|0,o=this._safeSubstring(s,a),c=e-n(o),l=o,u=0,h=0;c>i&&h++<10;)a*=i/c,a|=0,c=e-n(o=this._safeSubstring(s,a));for(h=0;c<=i&&h++<10;){if(o){var f=this.label_wordRex.exec(o);u=f?f[0].length:1,l=o}a+=u,c=e-n(o=this._safeSubstring(s,a))}0==(a-=u)?(a=1,l=this._safeSubstring(s,1)):1===a&&this.highSurrogateRex.test(s[0])&&(a=2,l=this._safeSubstring(s,2));var d,_=this._safeSubstring(s,0,a);this.label_wrapinspection&&this.label_symbolRex.test(l||o)&&(0==(a-=(d=this.label_lastWordRex.exec(_))?d[0].length:0)&&(a=1),l=this._safeSubstring(s,a),_=this._safeSubstring(s,0,a)),this.label_firstEnglish.test(l)&&(d=this.label_lastEnglish.exec(_))&&_!==d[0]&&(a-=d[0].length,l=this._safeSubstring(s,a),_=this._safeSubstring(s,0,a)),0===r.length?r.push(_):(_=_.trimLeft()).length>0&&r.push(_),e=n(s=l||o)}return 0===r.length?r.push(s):(s=s.trimLeft()).length>0&&r.push(s),r}};cc.textUtils=e.exports=a}),{"../platform/js":182}],243:[(function(t,e){"use strict";var i=t("../assets/CCTexture2D"),n={loadImage:function(t,e,i){cc.assertID(t,3103);var n=cc.assetManager.assets.get(t);if(n)return n.loaded?(e&&e.call(i,null,n),n):(n.once("load",(function(){e&&e.call(i,null,n)}),i),n);cc.assetManager.loadRemote(t,(function(t,n){e&&e.call(i,t,n)}))},cacheImage:function(t,e){if(t&&e){var n=new i;return n.initWithElement(e),cc.assetManager.assets.add(t,n),n}},postLoadTexture:function(t,e){t.loaded?e&&e():t.nativeUrl?cc.assetManager.postLoadNative(t,e):e&&e()}};e.exports=n}),{"../assets/CCTexture2D":73}],244:[(function(t,e){"use strict";var i=t("./node-unit"),n=t("./node-mem-pool");e.exports={NodeMemPool:new n(i)}}),{"./node-mem-pool":246,"./node-unit":247}],245:[(function(t,e){"use strict";var i=function(t){this._unitClass=t,this._pool=[],this._findOrder=[]},n=i.prototype;n._initNative=function(){this._nativeMemPool=new renderer.MemPool},n._buildUnit=function(t){return new this._unitClass(t,this)},n._destroyUnit=function(t){this._pool[t]=null;for(var e=0,i=this._findOrder.length;e1&&e.isAllFree()&&this._destroyUnit(t.unitID),e},e.exports=i}),{}],246:[(function(t,e){"use strict";var i,n=t("./mem-pool"),r=function(t){n.call(this,t)};(i=function(){}).prototype=n.prototype;var s=r.prototype=new i;s._initNative=function(){this._nativeMemPool=new renderer.NodeMemPool},s._destroyUnit=function(t){n.prototype._destroyUnit.call(this,t)},e.exports=r}),{"./mem-pool":245}],247:[(function(t,e){"use strict";var i,n=t("../../value-types/utils"),r=(Uint32Array,10*n.FLOAT_BYTES),s=16*n.FLOAT_BYTES,a=16*n.FLOAT_BYTES,o=(Uint32Array,Uint32Array,Int32Array,Uint8Array,Uint8Array,Uint32Array,n.FLOAT_BYTES,t("./unit-base")),c=function(t,e){o.call(this,t,e);var i=this._contentNum;this.trsList=new n.FLOAT_ARRAY_TYPE(10*i),this.localMatList=new n.FLOAT_ARRAY_TYPE(16*i),this.worldMatList=new n.FLOAT_ARRAY_TYPE(16*i);for(var c=0;c",e=this._signData[2*e+0];for(var n=0,r="",s=this._contentNum,a=0;a");var o=t+n;console.log("unitID:",this.unitID,"spaceNum:",t,"calc using num:",n,"store using num:",this._data[1],"calc total num:",o,"actually total num:",this._contentNum),console.log("free info:",i),console.log("using info:",r),n!=this._data[1]&&cc.error("using num error","calc using num:",n,"store using num:",this._data[1]),t+n!=this._contentNum&&cc.error("total num error","calc total num:",o,"actually total num:",this._contentNum)},e.exports=i}),{}],249:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=a(t("./value-type")),r=a(t("../platform/CCClass")),s=a(t("../utils/misc"));function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i=0;i>>0)+(n<<16)+(i<<8)+(0|e),s}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,c(e,i),n.copy=function(t,e){return t.r=e.r,t.g=e.g,t.b=e.b,t.a=e.a,t},n.clone=function(t){return new n(t.r,t.g,t.b,t.a)},n.set=function(t,e,i,n,r){return void 0===e&&(e=255),void 0===i&&(i=255),void 0===n&&(n=255),void 0===r&&(r=255),t.r=e,t.g=i,t.b=n,t.a=r,t},n.fromHex=function(t,e){var i=e>>24&255,n=e>>16&255,r=e>>8&255,s=255&e;return t.r=i,t.g=n,t.b=r,t.a=s,t},n.fromHEX=function(t,e){return e=0===e.indexOf("#")?e.substring(1):e,t.r=parseInt(e.substr(0,2),16)||0,t.g=parseInt(e.substr(2,2),16)||0,t.b=parseInt(e.substr(4,2),16)||0,t.a=parseInt(e.substr(6,2),16)||255,t._val=(t.a<<24>>>0)+(t.b<<16)+(t.g<<8)+t.r,t},n.add=function(t,e,i){return t.r=e.r+i.r,t.g=e.g+i.g,t.b=e.b+i.b,t.a=e.a+i.a,t},n.subtract=function(t,e,i){return t.r=e.r-i.r,t.g=e.g-i.g,t.b=e.b-i.b,t.a=e.a-i.a,t},n.multiply=function(t,e,i){return t.r=e.r*i.r,t.g=e.g*i.g,t.b=e.b*i.b,t.a=e.a*i.a,t},n.divide=function(t,e,i){return t.r=e.r/i.r,t.g=e.g/i.g,t.b=e.b/i.b,t.a=e.a/i.a,t},n.scale=function(t,e,i){return t.r=e.r*i,t.g=e.g*i,t.b=e.b*i,t.a=e.a*i,t},n.lerp=function(t,e,i,n){var r=e.r,s=e.g,a=e.b,o=e.a;return t.r=r+n*(i.r-r),t.g=s+n*(i.g-s),t.b=a+n*(i.b-a),t.a=o+n*(i.a-o),t},n.toArray=function(t,e,i){void 0===i&&(i=0);var r=e instanceof n||e.a>1?1/255:1;return t[i+0]=e.r*r,t[i+1]=e.g*r,t[i+2]=e.b*r,t[i+3]=e.a*r,t},n.fromArray=function(t,e,i){return void 0===i&&(i=0),e.r=255*t[i+0],e.g=255*t[i+1],e.b=255*t[i+2],e.a=255*t[i+3],e},n.premultiplyAlpha=function(t,e){var i=e.a/255;return t.r=e.r*i,t.g=e.g*i,t.b=e.b*i,t._fastSetA(e.a),t};var r,a,l,u=n.prototype;return u.clone=function(){var t=new n;return t._val=this._val,t},u.equals=function(t){return t&&this._val===t._val},u.lerp=function(t,e,i){i=i||new n;var r=this.r,s=this.g,a=this.b,o=this.a;return i.r=r+(t.r-r)*e,i.g=s+(t.g-s)*e,i.b=a+(t.b-a)*e,i.a=o+(t.a-o)*e,i},u.toString=function(){return"rgba("+this.r.toFixed()+", "+this.g.toFixed()+", "+this.b.toFixed()+", "+this.a.toFixed()+")"},u.getR=function(){return 255&this._val},u.setR=function(t){return t=~~s.default.clampf(t,0,255),this._val=(4294967040&this._val|t)>>>0,this},u.getG=function(){return(65280&this._val)>>8},u.setG=function(t){return t=~~s.default.clampf(t,0,255),this._val=(4294902015&this._val|t<<8)>>>0,this},u.getB=function(){return(16711680&this._val)>>16},u.setB=function(t){return t=~~s.default.clampf(t,0,255),this._val=(4278255615&this._val|t<<16)>>>0,this},u.getA=function(){return(4278190080&this._val)>>>24},u.setA=function(t){return t=~~s.default.clampf(t,0,255),this._val=(16777215&this._val|t<<24)>>>0,this},u.toCSS=function(t){return t&&"rgba"!==t?"rgb"===t?"rgb("+this.r+","+this.g+","+this.b+")":"#"+this.toHEX(t):"rgba("+this.r+","+this.g+","+this.b+","+(this.a/255).toFixed(2)+")"},u.fromHEX=function(t){t=0===t.indexOf("#")?t.substring(1):t;var e=parseInt(t.substr(0,2),16)||0,i=parseInt(t.substr(2,2),16)||0,n=parseInt(t.substr(4,2),16)||0,r=parseInt(t.substr(6,2),16)||255;return this._val=(r<<24>>>0)+(n<<16)+(i<<8)+e,this},u.toHEX=function(t){var e=[(this.r<16?"0":"")+this.r.toString(16),(this.g<16?"0":"")+this.g.toString(16),(this.b<16?"0":"")+this.b.toString(16)];return"#rgb"===t?(e[0]=e[0][0],e[1]=e[1][0],e[2]=e[2][0]):"#rrggbbaa"===t&&e.push((this.a<16?"0":"")+this.a.toString(16)),e.join("")},u.toRGBValue=function(){return 16777215&this._val},u.fromHSV=function(t,e,i){var n,r,s;if(0===e)n=r=s=i;else if(0===i)n=r=s=0;else{1===t&&(t=0),t*=6;var a=Math.floor(t),o=t-a,c=i*(1-e),l=i*(1-e*o),u=i*(1-e*(1-o));switch(a){case 0:n=i,r=u,s=c;break;case 1:n=l,r=i,s=c;break;case 2:n=c,r=i,s=u;break;case 3:n=c,r=l,s=i;break;case 4:n=u,r=c,s=i;break;case 5:n=i,r=c,s=l}}return n*=255,r*=255,s*=255,this._val=(this.a<<24>>>0)+(s<<16)+(r<<8)+(0|n),this},u.toHSV=function(){var t=this.r/255,e=this.g/255,i=this.b/255,n={h:0,s:0,v:0},r=Math.max(t,e,i),s=Math.min(t,e,i),a=0;return n.v=r,n.s=r?(r-s)/r:0,n.s?(a=r-s,n.h=t===r?(e-i)/a:e===r?2+(i-t)/a:4+(t-e)/a,n.h/=6,n.h<0&&(n.h+=1)):n.h=0,n},u.set=function(t){return t._val?this._val=t._val:(this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a),this},u._fastSetA=function(t){this._val=(16777215&this._val|t<<24)>>>0},u.multiply=function(t){var e=(255&this._val)*t.r>>8,i=(65280&this._val)*t.g>>8,n=(16711680&this._val)*t.b>>8,r=((4278190080&this._val)>>>8)*t.a;return this._val=4278190080&r|16711680&n|65280&i|255&e,this},r=n,l=[{key:"WHITE",get:function(){return new n(255,255,255,255)}},{key:"BLACK",get:function(){return new n(0,0,0,255)}},{key:"TRANSPARENT",get:function(){return new n(0,0,0,0)}},{key:"GRAY",get:function(){return new n(127.5,127.5,127.5)}},{key:"RED",get:function(){return new n(255,0,0)}},{key:"GREEN",get:function(){return new n(0,255,0)}},{key:"BLUE",get:function(){return new n(0,0,255)}},{key:"YELLOW",get:function(){return new n(255,235,4)}},{key:"ORANGE",get:function(){return new n(255,127,0)}},{key:"CYAN",get:function(){return new n(0,255,255)}},{key:"MAGENTA",get:function(){return new n(255,0,255)}}],(a=[{key:"r",get:function(){return this.getR()},set:function(t){this.setR(t)}},{key:"g",get:function(){return this.getG()},set:function(t){this.setG(t)}},{key:"b",get:function(){return this.getB()},set:function(t){this.setB(t)}},{key:"a",get:function(){return this.getA()},set:function(t){this.setA(t)}}])&&o(r.prototype,a),l&&o(r,l),n})(n.default);i.default=l,l.div=l.divide,l.sub=l.subtract,l.mul=l.multiply,l.WHITE_R=l.WHITE,l.BLACK_R=l.BLACK,l.TRANSPARENT_R=l.TRANSPARENT,l.GRAY_R=l.GRAY,l.RED_R=l.RED,l.GREEN_R=l.GREEN,l.BLUE_R=l.BLUE,l.YELLOW_R=l.YELLOW,l.ORANGE_R=l.ORANGE,l.CYAN_R=l.CYAN,l.MAGENTA_R=l.MAGENTA,r.default.fastDefine("cc.Color",l,{r:0,g:0,b:0,a:255}),cc.Color=l,cc.color=function(t,e,i,n){return"string"==typeof t?(new l).fromHEX(t):"object"==typeof t?new l(t.r,t.g,t.b,t.a):new l(t,e,i,n)},e.exports=i.default}),{"../platform/CCClass":161,"../utils/misc":235,"./value-type":258}],250:[(function(t,e,i){"use strict";i.__esModule=!0;var n={Vec2:!0,Vec3:!0,Vec4:!0,Mat4:!0,Mat3:!0,Rect:!0,Size:!0,Color:!0,Quat:!0,Trs:!0};i.Vec4=i.Vec3=i.Vec2=i.Trs=i.Size=i.Rect=i.Quat=i.Mat4=i.Mat3=i.Color=void 0;var r=p(t("./vec2"));i.Vec2=r.default;var s=p(t("./vec3"));i.Vec3=s.default;var a=p(t("./vec4"));i.Vec4=a.default;var o=p(t("./mat4"));i.Mat4=o.default;var c=p(t("./mat3"));i.Mat3=c.default;var l=p(t("./rect"));i.Rect=l.default;var u=p(t("./size"));i.Size=u.default;var h=p(t("./color"));i.Color=h.default;var f=p(t("./quat"));i.Quat=f.default;var d=p(t("./trs"));i.Trs=d.default;var _=t("./utils");function p(t){return t&&t.__esModule?t:{default:t}}Object.keys(_).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||t in i&&i[t]===_[t]||(i[t]=_[t]))})),cc.math=e.exports}),{"./color":249,"./mat3":251,"./mat4":252,"./quat":253,"./rect":254,"./size":255,"./trs":256,"./utils":257,"./vec2":259,"./vec3":260,"./vec4":261}],251:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("../value-types/utils"),s=(n=t("./vec3"))&&n.__esModule?n:{default:n},a=(function(){function t(t,e,i,n,s,a,o,c,l){if(void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===s&&(s=1),void 0===a&&(a=0),void 0===o&&(o=0),void 0===c&&(c=0),void 0===l&&(l=1),this.m=void 0,t instanceof r.FLOAT_ARRAY_TYPE)this.m=t;else{this.m=new r.FLOAT_ARRAY_TYPE(9);var u=this.m;u[0]=t,u[1]=e,u[2]=i,u[3]=n,u[4]=s,u[5]=a,u[6]=o,u[7]=c,u[8]=l}}return t.create=function(e,i,n,r,s,a,o,c,l){return void 0===e&&(e=1),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===s&&(s=1),void 0===a&&(a=0),void 0===o&&(o=0),void 0===c&&(c=0),void 0===l&&(l=1),new t(e,i,n,r,s,a,o,c,l)},t.clone=function(e){var i=e.m;return new t(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8])},t.copy=function(t,e){return t.m.set(e.m),t},t.set=function(t,e,i,n,r,s,a,o,c,l){var u=t.m;return u[0]=e,u[1]=i,u[2]=n,u[3]=r,u[4]=s,u[5]=a,u[6]=o,u[7]=c,u[8]=l,t},t.identity=function(t){var e=t.m;return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,t},t.transpose=function(t,e){var i=e.m,n=t.m;if(t===e){var r=i[1],s=i[2],a=i[5];n[1]=i[3],n[2]=i[6],n[3]=r,n[5]=i[7],n[6]=s,n[7]=a}else n[0]=i[0],n[1]=i[3],n[2]=i[6],n[3]=i[1],n[4]=i[4],n[5]=i[7],n[6]=i[2],n[7]=i[5],n[8]=i[8];return t},t.invert=function(t,e){var i=e.m,n=t.m,r=i[0],s=i[1],a=i[2],o=i[3],c=i[4],l=i[5],u=i[6],h=i[7],f=i[8],d=f*c-l*h,_=-f*o+l*u,p=h*o-c*u,v=r*d+s*_+a*p;return v?(v=1/v,n[0]=d*v,n[1]=(-f*s+a*h)*v,n[2]=(l*s-a*c)*v,n[3]=_*v,n[4]=(f*r-a*u)*v,n[5]=(-l*r+a*o)*v,n[6]=p*v,n[7]=(-h*r+s*u)*v,n[8]=(c*r-s*o)*v,t):t},t.adjoint=function(t,e){var i=e.m,n=t.m,r=i[0],s=i[1],a=i[2],o=i[3],c=i[4],l=i[5],u=i[6],h=i[7],f=i[8];return n[0]=c*f-l*h,n[1]=a*h-s*f,n[2]=s*l-a*c,n[3]=l*u-o*f,n[4]=r*f-a*u,n[5]=a*o-r*l,n[6]=o*h-c*u,n[7]=s*u-r*h,n[8]=r*c-s*o,t},t.determinant=function(t){var e=t.m,i=e[0],n=e[1],r=e[2],s=e[3],a=e[4],o=e[5],c=e[6],l=e[7],u=e[8];return i*(u*a-o*l)+n*(-u*s+o*c)+r*(l*s-a*c)},t.multiply=function(t,e,i){var n=e.m,r=i.m,s=t.m,a=n[0],o=n[1],c=n[2],l=n[3],u=n[4],h=n[5],f=n[6],d=n[7],_=n[8],p=r[0],v=r[1],g=r[2],m=r[3],y=r[4],T=r[5],E=r[6],A=r[7],C=r[8];return s[0]=p*a+v*l+g*f,s[1]=p*o+v*u+g*d,s[2]=p*c+v*h+g*_,s[3]=m*a+y*l+T*f,s[4]=m*o+y*u+T*d,s[5]=m*c+y*h+T*_,s[6]=E*a+A*l+C*f,s[7]=E*o+A*u+C*d,s[8]=E*c+A*h+C*_,t},t.multiplyMat4=function(t,e,i){var n=e.m,r=i.m,s=t.m,a=n[0],o=n[1],c=n[2],l=n[3],u=n[4],h=n[5],f=n[6],d=n[7],_=n[8],p=r[0],v=r[1],g=r[2],m=r[4],y=r[5],T=r[6],E=r[8],A=r[9],C=r[10];return s[0]=p*a+v*l+g*f,s[1]=p*o+v*u+g*d,s[2]=p*c+v*h+g*_,s[3]=m*a+y*l+T*f,s[4]=m*o+y*u+T*d,s[5]=m*c+y*h+T*_,s[6]=E*a+A*l+C*f,s[7]=E*o+A*u+C*d,s[8]=E*c+A*h+C*_,t},t.translate=function(t,e,i){var n=e.m,r=t.m,s=n[0],a=n[1],o=n[2],c=n[3],l=n[4],u=n[5],h=n[6],f=n[7],d=n[8],_=i.x,p=i.y;return r[0]=s,r[1]=a,r[2]=o,r[3]=c,r[4]=l,r[5]=u,r[6]=_*s+p*c+h,r[7]=_*a+p*l+f,r[8]=_*o+p*u+d,t},t.rotate=function(t,e,i){var n=e.m,r=t.m,s=n[0],a=n[1],o=n[2],c=n[3],l=n[4],u=n[5],h=n[6],f=n[7],d=n[8],_=Math.sin(i),p=Math.cos(i);return r[0]=p*s+_*c,r[1]=p*a+_*l,r[2]=p*o+_*u,r[3]=p*c-_*s,r[4]=p*l-_*a,r[5]=p*u-_*o,r[6]=h,r[7]=f,r[8]=d,t},t.scale=function(t,e,i){var n=i.x,r=i.y,s=e.m,a=t.m;return a[0]=n*s[0],a[1]=n*s[1],a[2]=n*s[2],a[3]=r*s[3],a[4]=r*s[4],a[5]=r*s[5],a[6]=s[6],a[7]=s[7],a[8]=s[8],t},t.fromMat4=function(t,e){var i=e.m,n=t.m;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[4],n[4]=i[5],n[5]=i[6],n[6]=i[8],n[7]=i[9],n[8]=i[10],t},t.fromTranslation=function(t,e){var i=t.m;return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=1,i[5]=0,i[6]=e.x,i[7]=e.y,i[8]=1,t},t.fromRotation=function(t,e){var i=Math.sin(e),n=Math.cos(e),r=t.m;return r[0]=n,r[1]=i,r[2]=0,r[3]=-i,r[4]=n,r[5]=0,r[6]=0,r[7]=0,r[8]=1,t},t.fromScaling=function(t,e){var i=t.m;return i[0]=e.x,i[1]=0,i[2]=0,i[3]=0,i[4]=e.y,i[5]=0,i[6]=0,i[7]=0,i[8]=1,t},t.fromQuat=function(t,e){var i=t.m,n=e.x,r=e.y,s=e.z,a=e.w,o=n+n,c=r+r,l=s+s,u=n*o,h=r*o,f=r*c,d=s*o,_=s*c,p=s*l,v=a*o,g=a*c,m=a*l;return i[0]=1-f-p,i[3]=h-m,i[6]=d+g,i[1]=h+m,i[4]=1-u-p,i[7]=_-v,i[2]=d-g,i[5]=_+v,i[8]=1-u-f,t},t.fromViewUp=function(e,i,n){var a,o,c;return(a=new s.default(0,1,0),o=new s.default,c=new s.default,function(e,i,n){return s.default.lengthSqr(i)0?(r=2*Math.sqrt(n+1),t.w=.25*r,t.x=(i[6]-i[9])/r,t.y=(i[8]-i[2])/r,t.z=(i[1]-i[4])/r):i[0]>i[5]&&i[0]>i[10]?(r=2*Math.sqrt(1+i[0]-i[5]-i[10]),t.w=(i[6]-i[9])/r,t.x=.25*r,t.y=(i[1]+i[4])/r,t.z=(i[8]+i[2])/r):i[5]>i[10]?(r=2*Math.sqrt(1+i[5]-i[0]-i[10]),t.w=(i[8]-i[2])/r,t.x=(i[1]+i[4])/r,t.y=.25*r,t.z=(i[6]+i[9])/r):(r=2*Math.sqrt(1+i[10]-i[0]-i[5]),t.w=(i[1]-i[4])/r,t.x=(i[8]+i[2])/r,t.y=(i[6]+i[9])/r,t.z=.25*r),t},r.toRTS=function(t,e,i,n){var r=t.m,o=M.m;n.x=s.default.set(R,r[0],r[1],r[2]).mag(),o[0]=r[0]/n.x,o[1]=r[1]/n.x,o[2]=r[2]/n.x,n.y=s.default.set(R,r[4],r[5],r[6]).mag(),o[3]=r[4]/n.y,o[4]=r[5]/n.y,o[5]=r[6]/n.y,n.z=s.default.set(R,r[8],r[9],r[10]).mag(),o[6]=r[8]/n.z,o[7]=r[9]/n.z,o[8]=r[10]/n.z,c.default.determinant(M)<0&&(n.x*=-1,o[0]*=-1,o[1]*=-1,o[2]*=-1),a.default.fromMat3(e,M),s.default.set(i,r[12],r[13],r[14])},r.fromRTS=function(t,e,i,n){var r=e.x,s=e.y,a=e.z,o=e.w,c=r+r,l=s+s,u=a+a,h=r*c,f=r*l,d=r*u,_=s*l,p=s*u,v=a*u,g=o*c,m=o*l,y=o*u,T=n.x,E=n.y,A=n.z,C=t.m;return C[0]=(1-(_+v))*T,C[1]=(f+y)*T,C[2]=(d-m)*T,C[3]=0,C[4]=(f-y)*E,C[5]=(1-(h+v))*E,C[6]=(p+g)*E,C[7]=0,C[8]=(d+m)*A,C[9]=(p-g)*A,C[10]=(1-(h+_))*A,C[11]=0,C[12]=i.x,C[13]=i.y,C[14]=i.z,C[15]=1,t},r.fromRTSOrigin=function(t,e,i,n,r){var s=e.x,a=e.y,o=e.z,c=e.w,l=s+s,u=a+a,h=o+o,f=s*l,d=s*u,_=s*h,p=a*u,v=a*h,g=o*h,m=c*l,y=c*u,T=c*h,E=n.x,A=n.y,C=n.z,x=r.x,b=r.y,S=r.z,w=t.m;return w[0]=(1-(p+g))*E,w[1]=(d+T)*E,w[2]=(_-y)*E,w[3]=0,w[4]=(d-T)*A,w[5]=(1-(f+g))*A,w[6]=(v+m)*A,w[7]=0,w[8]=(_+y)*C,w[9]=(v-m)*C,w[10]=(1-(f+p))*C,w[11]=0,w[12]=i.x+x-(w[0]*x+w[4]*b+w[8]*S),w[13]=i.y+b-(w[1]*x+w[5]*b+w[9]*S),w[14]=i.z+S-(w[2]*x+w[6]*b+w[10]*S),w[15]=1,t},r.fromQuat=function(t,e){var i=e.x,n=e.y,r=e.z,s=e.w,a=i+i,o=n+n,c=r+r,l=i*a,u=n*a,h=n*o,f=r*a,d=r*o,_=r*c,p=s*a,v=s*o,g=s*c,m=t.m;return m[0]=1-h-_,m[1]=u+g,m[2]=f-v,m[3]=0,m[4]=u-g,m[5]=1-l-_,m[6]=d+p,m[7]=0,m[8]=f+v,m[9]=d-p,m[10]=1-l-h,m[11]=0,m[12]=0,m[13]=0,m[14]=0,m[15]=1,t},r.frustum=function(t,e,i,n,r,s,a){var o=1/(i-e),c=1/(r-n),l=1/(s-a),u=t.m;return u[0]=2*s*o,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=2*s*c,u[6]=0,u[7]=0,u[8]=(i+e)*o,u[9]=(r+n)*c,u[10]=(a+s)*l,u[11]=-1,u[12]=0,u[13]=0,u[14]=a*s*2*l,u[15]=0,t},r.perspective=function(t,e,i,n,r){var s=1/Math.tan(e/2),a=1/(n-r),o=t.m;return o[0]=s/i,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=s,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=(r+n)*a,o[11]=-1,o[12]=0,o[13]=0,o[14]=2*r*n*a,o[15]=0,t},r.ortho=function(t,e,i,n,r,s,a){var o=1/(e-i),c=1/(n-r),l=1/(s-a),u=t.m;return u[0]=-2*o,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=-2*c,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=2*l,u[11]=0,u[12]=(e+i)*o,u[13]=(r+n)*c,u[14]=(a+s)*l,u[15]=1,t},r.lookAt=function(t,e,i,n){var r=e.x,s=e.y,a=e.z,o=n.x,c=n.y,l=n.z,u=r-i.x,h=s-i.y,f=a-i.z,d=1/Math.sqrt(u*u+h*h+f*f),_=c*(f*=d)-l*(h*=d),p=l*(u*=d)-o*f,v=o*h-c*u,g=h*(v*=d=1/Math.sqrt(_*_+p*p+v*v))-f*(p*=d),m=f*(_*=d)-u*v,y=u*p-h*_,T=t.m;return T[0]=_,T[1]=g,T[2]=u,T[3]=0,T[4]=p,T[5]=m,T[6]=h,T[7]=0,T[8]=v,T[9]=y,T[10]=f,T[11]=0,T[12]=-(_*r+p*s+v*a),T[13]=-(g*r+m*s+y*a),T[14]=-(u*r+h*s+f*a),T[15]=1,t},r.inverseTranspose=function(t,e){var i=e.m;h=i[0],f=i[1],d=i[2],_=i[3],p=i[4],v=i[5],g=i[6],m=i[7],y=i[8],T=i[9],E=i[10],A=i[11],C=i[12],x=i[13],b=i[14],S=i[15];var n=h*v-f*p,r=h*g-d*p,s=h*m-_*p,a=f*g-d*v,o=f*m-_*v,c=d*m-_*g,l=y*x-T*C,u=y*b-E*C,w=y*S-A*C,R=T*b-E*x,M=T*S-A*x,I=E*S-A*b,O=n*I-r*M+s*R+a*w-o*u+c*l;return O?(O=1/O,(i=t.m)[0]=(v*I-g*M+m*R)*O,i[1]=(g*w-p*I-m*u)*O,i[2]=(p*M-v*w+m*l)*O,i[3]=0,i[4]=(d*M-f*I-_*R)*O,i[5]=(h*I-d*w+_*u)*O,i[6]=(f*w-h*M-_*l)*O,i[7]=0,i[8]=(x*c-b*o+S*a)*O,i[9]=(b*s-C*c-S*r)*O,i[10]=(C*o-x*s+S*n)*O,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,t):null},r.add=function(t,e,i){var n=t.m,r=e.m,s=i.m;return n[0]=r[0]+s[0],n[1]=r[1]+s[1],n[2]=r[2]+s[2],n[3]=r[3]+s[3],n[4]=r[4]+s[4],n[5]=r[5]+s[5],n[6]=r[6]+s[6],n[7]=r[7]+s[7],n[8]=r[8]+s[8],n[9]=r[9]+s[9],n[10]=r[10]+s[10],n[11]=r[11]+s[11],n[12]=r[12]+s[12],n[13]=r[13]+s[13],n[14]=r[14]+s[14],n[15]=r[15]+s[15],t},r.subtract=function(t,e,i){var n=t.m,r=e.m,s=i.m;return n[0]=r[0]-s[0],n[1]=r[1]-s[1],n[2]=r[2]-s[2],n[3]=r[3]-s[3],n[4]=r[4]-s[4],n[5]=r[5]-s[5],n[6]=r[6]-s[6],n[7]=r[7]-s[7],n[8]=r[8]-s[8],n[9]=r[9]-s[9],n[10]=r[10]-s[10],n[11]=r[11]-s[11],n[12]=r[12]-s[12],n[13]=r[13]-s[13],n[14]=r[14]-s[14],n[15]=r[15]-s[15],t},r.multiplyScalar=function(t,e,i){var n=t.m,r=e.m;return n[0]=r[0]*i,n[1]=r[1]*i,n[2]=r[2]*i,n[3]=r[3]*i,n[4]=r[4]*i,n[5]=r[5]*i,n[6]=r[6]*i,n[7]=r[7]*i,n[8]=r[8]*i,n[9]=r[9]*i,n[10]=r[10]*i,n[11]=r[11]*i,n[12]=r[12]*i,n[13]=r[13]*i,n[14]=r[14]*i,n[15]=r[15]*i,t},r.multiplyScalarAndAdd=function(t,e,i,n){var r=t.m,s=e.m,a=i.m;return r[0]=s[0]+a[0]*n,r[1]=s[1]+a[1]*n,r[2]=s[2]+a[2]*n,r[3]=s[3]+a[3]*n,r[4]=s[4]+a[4]*n,r[5]=s[5]+a[5]*n,r[6]=s[6]+a[6]*n,r[7]=s[7]+a[7]*n,r[8]=s[8]+a[8]*n,r[9]=s[9]+a[9]*n,r[10]=s[10]+a[10]*n,r[11]=s[11]+a[11]*n,r[12]=s[12]+a[12]*n,r[13]=s[13]+a[13]*n,r[14]=s[14]+a[14]*n,r[15]=s[15]+a[15]*n,t},r.strictEquals=function(t,e){var i=t.m,n=e.m;return i[0]===n[0]&&i[1]===n[1]&&i[2]===n[2]&&i[3]===n[3]&&i[4]===n[4]&&i[5]===n[5]&&i[6]===n[6]&&i[7]===n[7]&&i[8]===n[8]&&i[9]===n[9]&&i[10]===n[10]&&i[11]===n[11]&&i[12]===n[12]&&i[13]===n[13]&&i[14]===n[14]&&i[15]===n[15]},r.equals=function(t,e,i){void 0===i&&(i=o.EPSILON);var n=t.m,r=e.m;return Math.abs(n[0]-r[0])<=i*Math.max(1,Math.abs(n[0]),Math.abs(r[0]))&&Math.abs(n[1]-r[1])<=i*Math.max(1,Math.abs(n[1]),Math.abs(r[1]))&&Math.abs(n[2]-r[2])<=i*Math.max(1,Math.abs(n[2]),Math.abs(r[2]))&&Math.abs(n[3]-r[3])<=i*Math.max(1,Math.abs(n[3]),Math.abs(r[3]))&&Math.abs(n[4]-r[4])<=i*Math.max(1,Math.abs(n[4]),Math.abs(r[4]))&&Math.abs(n[5]-r[5])<=i*Math.max(1,Math.abs(n[5]),Math.abs(r[5]))&&Math.abs(n[6]-r[6])<=i*Math.max(1,Math.abs(n[6]),Math.abs(r[6]))&&Math.abs(n[7]-r[7])<=i*Math.max(1,Math.abs(n[7]),Math.abs(r[7]))&&Math.abs(n[8]-r[8])<=i*Math.max(1,Math.abs(n[8]),Math.abs(r[8]))&&Math.abs(n[9]-r[9])<=i*Math.max(1,Math.abs(n[9]),Math.abs(r[9]))&&Math.abs(n[10]-r[10])<=i*Math.max(1,Math.abs(n[10]),Math.abs(r[10]))&&Math.abs(n[11]-r[11])<=i*Math.max(1,Math.abs(n[11]),Math.abs(r[11]))&&Math.abs(n[12]-r[12])<=i*Math.max(1,Math.abs(n[12]),Math.abs(r[12]))&&Math.abs(n[13]-r[13])<=i*Math.max(1,Math.abs(n[13]),Math.abs(r[13]))&&Math.abs(n[14]-r[14])<=i*Math.max(1,Math.abs(n[14]),Math.abs(r[14]))&&Math.abs(n[15]-r[15])<=i*Math.max(1,Math.abs(n[15]),Math.abs(r[15]))},r.adjoint=function(t,e){var i=e.m,n=t.m,r=i[0],s=i[1],a=i[2],o=i[3],c=i[4],l=i[5],u=i[6],h=i[7],f=i[8],d=i[9],_=i[10],p=i[11],v=i[12],g=i[13],m=i[14],y=i[15];return n[0]=l*(_*y-p*m)-d*(u*y-h*m)+g*(u*p-h*_),n[1]=-(s*(_*y-p*m)-d*(a*y-o*m)+g*(a*p-o*_)),n[2]=s*(u*y-h*m)-l*(a*y-o*m)+g*(a*h-o*u),n[3]=-(s*(u*p-h*_)-l*(a*p-o*_)+d*(a*h-o*u)),n[4]=-(c*(_*y-p*m)-f*(u*y-h*m)+v*(u*p-h*_)),n[5]=r*(_*y-p*m)-f*(a*y-o*m)+v*(a*p-o*_),n[6]=-(r*(u*y-h*m)-c*(a*y-o*m)+v*(a*h-o*u)),n[7]=r*(u*p-h*_)-c*(a*p-o*_)+f*(a*h-o*u),n[8]=c*(d*y-p*g)-f*(l*y-h*g)+v*(l*p-h*d),n[9]=-(r*(d*y-p*g)-f*(s*y-o*g)+v*(s*p-o*d)),n[10]=r*(l*y-h*g)-c*(s*y-o*g)+v*(s*h-o*l),n[11]=-(r*(l*p-h*d)-c*(s*p-o*d)+f*(s*h-o*l)),n[12]=-(c*(d*m-_*g)-f*(l*m-u*g)+v*(l*_-u*d)),n[13]=r*(d*m-_*g)-f*(s*m-a*g)+v*(s*_-a*d),n[14]=-(r*(l*m-u*g)-c*(s*m-a*g)+v*(s*u-a*l)),n[15]=r*(l*_-u*d)-c*(s*_-a*d)+f*(s*u-a*l),t},r.toArray=function(t,e,i){void 0===i&&(i=0);for(var n=e.m,r=0;r<16;r++)t[i+r]=n[r];return t},r.fromArray=function(t,e,i){void 0===i&&(i=0);for(var n=t.m,r=0;r<16;r++)n[r]=e[i+r];return t},n.clone=function(){var t=this.m;return new r(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},n.set=function(t){var e=this.m,i=t.m;return e[0]=i[0],e[1]=i[1],e[2]=i[2],e[3]=i[3],e[4]=i[4],e[5]=i[5],e[6]=i[6],e[7]=i[7],e[8]=i[8],e[9]=i[9],e[10]=i[10],e[11]=i[11],e[12]=i[12],e[13]=i[13],e[14]=i[14],e[15]=i[15],this},n.equals=function(t){return r.strictEquals(this,t)},n.fuzzyEquals=function(t){return r.equals(this,t)},n.toString=function(){var t=this.m;return t?"[\n"+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+",\n"+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+",\n"+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+",\n"+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+"\n]":"[\n1, 0, 0, 0\n0, 1, 0, 0\n0, 0, 1, 0\n0, 0, 0, 1\n]"},n.identity=function(){return r.identity(this)},n.transpose=function(t){return t=t||new r,r.transpose(t,this)},n.invert=function(t){return t=t||new r,r.invert(t,this)},n.adjoint=function(t){return t=t||new r,r.adjoint(t,this)},n.determinant=function(){return r.determinant(this)},n.add=function(t,e){return e=e||new r,r.add(e,this,t)},n.subtract=function(t){return r.subtract(this,this,t)},n.multiply=function(t){return r.multiply(this,this,t)},n.multiplyScalar=function(t){return r.multiplyScalar(this,this,t)},n.translate=function(t,e){return e=e||new r,r.translate(e,this,t)},n.scale=function(t,e){return e=e||new r,r.scale(e,this,t)},n.rotate=function(t,e,i){return i=i||new r,r.rotate(i,this,t,e)},n.getTranslation=function(t){return t=t||new s.default,r.getTranslation(t,this)},n.getScale=function(t){return t=t||new s.default,r.getScaling(t,this)},n.getRotation=function(t){return t=t||new a.default,r.getRotation(t,this)},n.fromRTS=function(t,e,i){return r.fromRTS(this,t,e,i)},n.fromQuat=function(t){return r.fromQuat(this,t)},r})(n.default);i.default=w,w.mul=w.multiply,w.sub=w.subtract,w.IDENTITY=Object.freeze(new w);var R=new s.default,M=new c.default;r.default.fastDefine("cc.Mat4",w,{m00:1,m01:0,m02:0,m03:0,m04:0,m05:1,m06:0,m07:0,m08:0,m09:0,m10:1,m11:0,m12:0,m13:0,m14:0,m15:1});for(var I=function(t){Object.defineProperty(w.prototype,"m"+t,{get:function(){return this.m[t]},set:function(e){this.m[t]=e}})},O=0;O<16;O++)I(O);cc.mat4=function(t,e,i,n,r,s,a,o,c,l,u,h,f,d,_,p){var v=new w(t,e,i,n,r,s,a,o,c,l,u,h,f,d,_,p);return void 0===t&&w.identity(v),v},cc.Mat4=w,e.exports=i.default}),{"../platform/CCClass":161,"./mat3":251,"./quat":253,"./utils":257,"./value-type":258,"./vec3":260}],253:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=c(t("./value-type")),r=c(t("../platform/CCClass")),s=c(t("./vec3")),a=c(t("./mat3")),o=t("./utils");function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=0,h=0,f=0,d=0,_=(function(t){var e,i;i=t,(e=r).prototype=Object.create(i.prototype),e.prototype.constructor=e,l(e,i);var n=r.prototype;function r(e,i,n,r){var s;return void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=1),(s=t.call(this)||this).x=void 0,s.y=void 0,s.z=void 0,s.w=void 0,e&&"object"==typeof e?(s.x=e.x,s.y=e.y,s.z=e.z,s.w=e.w):(s.x=e,s.y=i,s.z=n,s.w=r),s}return n.mul=function(t,e){return r.multiply(e||new r,this,t)},r.clone=function(t){return new r(t.x,t.y,t.z,t.w)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t},r.set=function(t,e,i,n,r){return t.x=e,t.y=i,t.z=n,t.w=r,t},r.identity=function(t){return t.x=0,t.y=0,t.z=0,t.w=1,t},r.rotationTo=function(t,e,i){var n=s.default.dot(e,i);return n<-.999999?(s.default.cross(g,s.default.RIGHT,e),g.mag()<1e-6&&s.default.cross(g,s.default.UP,e),s.default.normalize(g,g),r.fromAxisAngle(t,g,Math.PI),t):n>.999999?(t.x=0,t.y=0,t.z=0,t.w=1,t):(s.default.cross(g,e,i),t.x=g.x,t.y=g.y,t.z=g.z,t.w=1+n,r.normalize(t,t))},r.getAxisAngle=function(t,e){var i=2*Math.acos(e.w),n=Math.sin(i/2);return 0!==n?(t.x=e.x/n,t.y=e.y/n,t.z=e.z/n):(t.x=1,t.y=0,t.z=0),i},r.multiply=function(t,e,i){return u=e.x*i.w+e.w*i.x+e.y*i.z-e.z*i.y,h=e.y*i.w+e.w*i.y+e.z*i.x-e.x*i.z,f=e.z*i.w+e.w*i.z+e.x*i.y-e.y*i.x,d=e.w*i.w-e.x*i.x-e.y*i.y-e.z*i.z,t.x=u,t.y=h,t.z=f,t.w=d,t},r.multiplyScalar=function(t,e,i){return t.x=e.x*i,t.y=e.y*i,t.z=e.z*i,t.w=e.w*i,t},r.scaleAndAdd=function(t,e,i,n){return t.x=e.x+i.x*n,t.y=e.y+i.y*n,t.z=e.z+i.z*n,t.w=e.w+i.w*n,t},r.rotateX=function(t,e,i){i*=.5;var n=Math.sin(i),r=Math.cos(i);return u=e.x*r+e.w*n,h=e.y*r+e.z*n,f=e.z*r-e.y*n,d=e.w*r-e.x*n,t.x=u,t.y=h,t.z=f,t.w=d,t},r.rotateY=function(t,e,i){i*=.5;var n=Math.sin(i),r=Math.cos(i);return u=e.x*r-e.z*n,h=e.y*r+e.w*n,f=e.z*r+e.x*n,d=e.w*r-e.y*n,t.x=u,t.y=h,t.z=f,t.w=d,t},r.rotateZ=function(t,e,i){i*=.5;var n=Math.sin(i),r=Math.cos(i);return u=e.x*r+e.y*n,h=e.y*r-e.x*n,f=e.z*r+e.w*n,d=e.w*r-e.z*n,t.x=u,t.y=h,t.z=f,t.w=d,t},r.rotateAround=function(t,e,i,n){return r.invert(p,e),s.default.transformQuat(g,i,p),r.fromAxisAngle(p,g,n),r.multiply(t,e,p),t},r.rotateAroundLocal=function(t,e,i,n){return r.fromAxisAngle(p,i,n),r.multiply(t,e,p),t},r.calculateW=function(t,e){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=Math.sqrt(Math.abs(1-e.x*e.x-e.y*e.y-e.z*e.z)),t},r.dot=function(t,e){return t.x*e.x+t.y*e.y+t.z*e.z+t.w*e.w},r.lerp=function(t,e,i,n){return t.x=e.x+n*(i.x-e.x),t.y=e.y+n*(i.y-e.y),t.z=e.z+n*(i.z-e.z),t.w=e.w+n*(i.w-e.w),t},r.slerp=function(t,e,i,n){var r=0,s=0,a=e.x*i.x+e.y*i.y+e.z*i.z+e.w*i.w;if(a<0&&(a=-a,i.x=-i.x,i.y=-i.y,i.z=-i.z,i.w=-i.w),1-a>1e-6){var o=Math.acos(a),c=Math.sin(o);r=Math.sin((1-n)*o)/c,s=Math.sin(n*o)/c}else r=1-n,s=n;return t.x=r*e.x+s*i.x,t.y=r*e.y+s*i.y,t.z=r*e.z+s*i.z,t.w=r*e.w+s*i.w,t},r.sqlerp=function(t,e,i,n,s,a){return r.slerp(p,e,s,a),r.slerp(v,i,n,a),r.slerp(t,p,v,2*a*(1-a)),t},r.invert=function(t,e){var i=e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w,n=i?1/i:0;return t.x=-e.x*n,t.y=-e.y*n,t.z=-e.z*n,t.w=e.w*n,t},r.conjugate=function(t,e){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=e.w,t},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y+t.z*t.z+t.w*t.w)},r.lengthSqr=function(t){return t.x*t.x+t.y*t.y+t.z*t.z+t.w*t.w},r.normalize=function(t,e){var i=e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w;return i>0&&(i=1/Math.sqrt(i),t.x=e.x*i,t.y=e.y*i,t.z=e.z*i,t.w=e.w*i),t},r.fromAxes=function(t,e,i,n){return a.default.set(m,e.x,e.y,e.z,i.x,i.y,i.z,n.x,n.y,n.z),r.normalize(t,r.fromMat3(t,m))},r.fromViewUp=function(t,e,i){return a.default.fromViewUp(m,e,i),r.normalize(t,r.fromMat3(t,m))},r.fromAxisAngle=function(t,e,i){i*=.5;var n=Math.sin(i);return t.x=n*e.x,t.y=n*e.y,t.z=n*e.z,t.w=Math.cos(i),t},r.fromAngleZ=function(t,e){return e*=y,t.x=t.y=0,t.z=Math.sin(e),t.w=Math.cos(e),t},r.fromMat3=function(t,e){var i=e.m,n=i[0],r=i[1],s=i[2],a=i[3],o=i[4],c=i[5],l=i[6],u=i[7],h=i[8],f=n+o+h;if(f>0){var d=.5/Math.sqrt(f+1);t.w=.25/d,t.x=(c-u)*d,t.y=(l-s)*d,t.z=(r-a)*d}else if(n>o&&n>h){var _=2*Math.sqrt(1+n-o-h);t.w=(c-u)/_,t.x=.25*_,t.y=(a+r)/_,t.z=(l+s)/_}else if(o>h){var p=2*Math.sqrt(1+o-n-h);t.w=(l-s)/p,t.x=(a+r)/p,t.y=.25*p,t.z=(u+c)/p}else{var v=2*Math.sqrt(1+h-n-o);t.w=(r-a)/v,t.x=(l+s)/v,t.y=(u+c)/v,t.z=.25*v}return t},r.fromEuler=function(t,e,i,n){e*=y,i*=y,n*=y;var r=Math.sin(e),s=Math.cos(e),a=Math.sin(i),o=Math.cos(i),c=Math.sin(n),l=Math.cos(n);return t.x=r*o*l+s*a*c,t.y=s*a*l+r*o*c,t.z=s*o*c-r*a*l,t.w=s*o*l-r*a*c,t},r.toAxisX=function(t,e){var i=2*e.y,n=2*e.z;return t.x=1-i*e.y-n*e.z,t.y=i*e.x+n*e.w,t.z=n*e.x+i*e.w,t},r.toAxisY=function(t,e){var i=2*e.x,n=2*e.y,r=2*e.z;return t.x=n*e.x-r*e.w,t.y=1-i*e.x-r*e.z,t.z=r*e.y+i*e.w,t},r.toAxisZ=function(t,e){var i=2*e.x,n=2*e.y,r=2*e.z;return t.x=r*e.x-n*e.w,t.y=r*e.y-i*e.w,t.z=1-i*e.x-n*e.y,t},r.toEuler=function(t,e,i){var n=e.x,r=e.y,s=e.z,a=e.w,c=0,l=0,u=0,h=n*r+s*a;if(h>.499999)c=0,l=(0,o.toDegree)(2*Math.atan2(n,a)),u=90;else if(h<-.499999)c=0,l=-(0,o.toDegree)(2*Math.atan2(n,a)),u=-90;else{var f=n*n,d=r*r,_=s*s;c=(0,o.toDegree)(Math.atan2(2*n*a-2*r*s,1-2*f-2*_)),l=(0,o.toDegree)(Math.atan2(2*r*a-2*n*s,1-2*d-2*_)),u=(0,o.toDegree)(Math.asin(2*h)),i&&(c=-180*Math.sign(c+1e-6)+c,l=-180*Math.sign(l+1e-6)+l,u=180*Math.sign(u+1e-6)-u)}return t.x=c,t.y=l,t.z=u,t},r.strictEquals=function(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z&&t.w===e.w},r.equals=function(t,e,i){return void 0===i&&(i=o.EPSILON),Math.abs(t.x-e.x)<=i*Math.max(1,Math.abs(t.x),Math.abs(e.x))&&Math.abs(t.y-e.y)<=i*Math.max(1,Math.abs(t.y),Math.abs(e.y))&&Math.abs(t.z-e.z)<=i*Math.max(1,Math.abs(t.z),Math.abs(e.z))&&Math.abs(t.w-e.w)<=i*Math.max(1,Math.abs(t.w),Math.abs(e.w))},r.toArray=function(t,e,i){return void 0===i&&(i=0),t[i+0]=e.x,t[i+1]=e.y,t[i+2]=e.z,t[i+3]=e.w,t},r.fromArray=function(t,e,i){return void 0===i&&(i=0),t.x=e[i+0],t.y=e[i+1],t.z=e[i+2],t.w=e[i+3],t},n.clone=function(){return new r(this.x,this.y,this.z,this.w)},n.set=function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w,this},n.equals=function(t){return t&&this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},n.toEuler=function(t){return r.toEuler(t,this)},n.fromEuler=function(t){return r.fromEuler(this,t.x,t.y,t.z)},n.lerp=function(t,e,i){return i=i||new r,r.slerp(i,this,t,e),i},n.multiply=function(t){return r.multiply(this,this,t)},n.rotateAround=function(t,e,i,n){return n=n||new r,r.rotateAround(n,t,e,i)},r})(n.default);i.default=_,_.mul=_.multiply,_.scale=_.multiplyScalar,_.mag=_.len,_.IDENTITY=Object.freeze(new _);var p=new _,v=new _,g=new s.default,m=new a.default,y=.5*Math.PI/180;r.default.fastDefine("cc.Quat",_,{x:0,y:0,z:0,w:1}),cc.quat=function(t,e,i,n){return new _(t,e,i,n)},cc.Quat=_,e.exports=i.default}),{"../platform/CCClass":161,"./mat3":251,"./utils":257,"./value-type":258,"./vec3":260}],254:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=o(t("./value-type")),r=o(t("../platform/CCClass")),s=o(t("./vec2")),a=o(t("./size"));function o(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var i=0;i=t.x&&this.y<=t.y&&this.y+this.height>=t.y},u.containsRect=function(t){return this.x<=t.x&&this.x+this.width>=t.x+t.width&&this.y<=t.y&&this.y+this.height>=t.y+t.height},u.union=function(t,e){var i=this.x,n=this.y,r=this.width,s=this.height,a=e.x,o=e.y,c=e.width,l=e.height;return t.x=Math.min(i,a),t.y=Math.min(n,o),t.width=Math.max(i+r,a+c)-t.x,t.height=Math.max(n+s,o+l)-t.y,t},u.transformMat4=function(t,e){var i=this.x,n=this.y,r=i+this.width,s=n+this.height,a=e.m,o=a[0]*i+a[4]*n+a[12],c=a[1]*i+a[5]*n+a[13],l=a[0]*r+a[4]*n+a[12],u=a[1]*r+a[5]*n+a[13],h=a[0]*i+a[4]*s+a[12],f=a[1]*i+a[5]*s+a[13],d=a[0]*r+a[4]*s+a[12],_=a[1]*r+a[5]*s+a[13],p=Math.min(o,l,h,d),v=Math.max(o,l,h,d),g=Math.min(c,u,f,_),m=Math.max(c,u,f,_);return t.x=p,t.y=g,t.width=v-p,t.height=m-g,t},u.toString=function(){return"("+this.x.toFixed(2)+", "+this.y.toFixed(2)+", "+this.width.toFixed(2)+", "+this.height.toFixed(2)+")"},r=n,(o=[{key:"xMin",get:function(){return this.x},set:function(t){this.width+=this.x-t,this.x=t}},{key:"yMin",get:function(){return this.y},set:function(t){this.height+=this.y-t,this.y=t}},{key:"xMax",get:function(){return this.x+this.width},set:function(t){this.width=t-this.x}},{key:"yMax",get:function(){return this.y+this.height},set:function(t){this.height=t-this.y}},{key:"center",get:function(){return new s.default(this.x+.5*this.width,this.y+.5*this.height)},set:function(t){this.x=t.x-.5*this.width,this.y=t.y-.5*this.height}},{key:"origin",get:function(){return new s.default(this.x,this.y)},set:function(t){this.x=t.x,this.y=t.y}},{key:"size",get:function(){return new a.default(this.width,this.height)},set:function(t){this.width=t.width,this.height=t.height}}])&&c(r.prototype,o),n})(n.default);i.default=u,r.default.fastDefine("cc.Rect",u,{x:0,y:0,width:0,height:0}),cc.Rect=u,cc.rect=function(t,e,i,n){return new u(t,e,i,n)},e.exports=i.default}),{"../platform/CCClass":161,"./size":255,"./value-type":258,"./vec2":259}],255:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=s(t("./value-type")),r=s(t("../platform/CCClass"));function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){for(var i=0;ii?i:t},i.clamp01=function(t){return t<0?0:t>1?1:t},i.equals=function(t,e){return Math.abs(t-e)<=s*Math.max(1,Math.abs(t),Math.abs(e))},i.inverseLerp=function(t,e,i){return(i-t)/(e-t)},i.lerp=function(t,e,i){return t+(e-t)*i},i.nextPow2=function(t){return--t,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t},i.pingPong=function(t,e){return t=h(t,2*e),e-Math.abs(t-e)},i.pseudoRandom=l,i.pseudoRandomRange=u,i.pseudoRandomRangeInt=function(t,e,i){return Math.floor(u(t,e,i))},i.random=void 0,i.randomRange=c,i.randomRangeInt=function(t,e){return Math.floor(c(t,e))},i.repeat=h,i.sign=function(t){return(t>0)-(t<0)},i.toDegree=function(t){return t*r},i.toRadian=function(t){return t*n};var n=Math.PI/180,r=180/Math.PI,s=1e-6;i.EPSILON=s,i.INT_BITS=32,i.INT_MAX=2147483647,i.INT_MIN=-1<<31;var a=Float64Array;i.FLOAT_ARRAY_TYPE=a,i.FLOAT_BYTES=8;var o=Math.random;function c(t,e){return Math.random()*(e-t)+t}function l(t){return(t=(9301*t+49297)%233280)/233280}function u(t,e,i){return l(t)*(i-e)+e}function h(t,e){return t-Math.floor(t/e)*e}i.random=o}),{}],258:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("../platform/js"))&&n.__esModule?n:{default:n},s=(function(){function t(){}var e=t.prototype;return e.clone=function(){return cc.errorID("0100",r.default.getClassName(this)+".clone"),null},e.equals=function(){return cc.errorID("0100",r.default.getClassName(this)+".equals"),!1},e.lerp=function(){return cc.errorID("0100",r.default.getClassName(this)+".lerp"),this.clone()},e.set=function(){cc.errorID("0100",r.default.getClassName(this)+".set")},e.toString=function(){return""+{}},t})();i.default=s,r.default.setClassName("cc.ValueType",s),cc.ValueType=s,e.exports=i.default}),{"../platform/js":182}],259:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=o(t("./value-type")),r=o(t("../platform/CCClass")),s=o(t("../utils/misc")),a=t("./utils");function o(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var i=0;i0&&(i=1/Math.sqrt(i),t.x=u*i,t.y=h*i),t},f.dot=function(t,e){return t.x*e.x+t.y*e.y},f.cross=function(t,e,i){return t.x=t.y=0,t.z=e.x*i.y-e.y*i.x,t},f.lerp=function(t,e,i,n){return u=e.x,h=e.y,t.x=u+n*(i.x-u),t.y=h+n*(i.y-h),t},f.random=function(t,e){e=e||1;var i=2*(0,a.random)()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t},f.transformMat3=function(t,e,i){u=e.x,h=e.y;var n=i.m;return t.x=n[0]*u+n[3]*h+n[6],t.y=n[1]*u+n[4]*h+n[7],t},f.transformMat4=function(t,e,i){u=e.x,h=e.y;var n=i.m;return t.x=n[0]*u+n[4]*h+n[12],t.y=n[1]*u+n[5]*h+n[13],t},f.strictEquals=function(t,e){return t.x===e.x&&t.y===e.y},f.equals=function(t,e,i){return void 0===i&&(i=a.EPSILON),Math.abs(t.x-e.x)<=i*Math.max(1,Math.abs(t.x),Math.abs(e.x))&&Math.abs(t.y-e.y)<=i*Math.max(1,Math.abs(t.y),Math.abs(e.y))},f.angle=function(t,e){f.normalize(d,t),f.normalize(_,e);var i=f.dot(d,_);return i>1?0:i<-1?Math.PI:Math.acos(i)},f.toArray=function(t,e,i){return void 0===i&&(i=0),t[i+0]=e.x,t[i+1]=e.y,t},f.fromArray=function(t,e,i){return void 0===i&&(i=0),t.x=e[i+0],t.y=e[i+1],t},o.clone=function(){return new f(this.x,this.y)},o.set=function(t){return this.x=t.x,this.y=t.y,this},o.equals=function(t){return t&&this.x===t.x&&this.y===t.y},o.fuzzyEquals=function(t,e){return this.x-e<=t.x&&t.x<=this.x+e&&this.y-e<=t.y&&t.y<=this.y+e},o.toString=function(){return"("+this.x.toFixed(2)+", "+this.y.toFixed(2)+")"},o.lerp=function(t,e,i){i=i||new f;var n=this.x,r=this.y;return i.x=n+(t.x-n)*e,i.y=r+(t.y-r)*e,i},o.clampf=function(t,e){return this.x=s.default.clampf(this.x,t.x,e.x),this.y=s.default.clampf(this.y,t.y,e.y),this},o.add=function(t,e){return(e=e||new f).x=this.x+t.x,e.y=this.y+t.y,e},o.addSelf=function(t){return this.x+=t.x,this.y+=t.y,this},o.subtract=function(t){return this.x-=t.x,this.y-=t.y,this},o.multiplyScalar=function(t){return this.x*=t,this.y*=t,this},o.multiply=function(t){return this.x*=t.x,this.y*=t.y,this},o.divide=function(t){return this.x/=t,this.y/=t,this},o.negate=function(){return this.x=-this.x,this.y=-this.y,this},o.dot=function(t){return this.x*t.x+this.y*t.y},o.cross=function(t){return this.x*t.y-this.y*t.x},o.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},o.lengthSqr=function(){return this.x*this.x+this.y*this.y},o.normalizeSelf=function(){var t=this.x*this.x+this.y*this.y;if(1===t)return this;if(0===t)return this;var e=1/Math.sqrt(t);return this.x*=e,this.y*=e,this},o.normalize=function(t){return(t=t||new f).x=this.x,t.y=this.y,t.normalizeSelf(),t},o.angle=function(t){var e=this.magSqr(),i=t.magSqr();if(0===e||0===i)return console.warn("Can't get angle between zero vector"),0;var n=this.dot(t)/Math.sqrt(e*i);return n=s.default.clampf(n,-1,1),Math.acos(n)},o.signAngle=function(t){var e=this.angle(t);return this.cross(t)<0?-e:e},o.rotate=function(t,e){return(e=e||new f).x=this.x,e.y=this.y,e.rotateSelf(t)},o.rotateSelf=function(t){var e=Math.sin(t),i=Math.cos(t),n=this.x;return this.x=i*n-e*this.y,this.y=e*n+i*this.y,this},o.project=function(t){return t.multiplyScalar(this.dot(t)/t.dot(t))},o.transformMat4=function(t,e){return e=e||new f,f.transformMat4(e,this,t),e},o.maxAxis=function(){return Math.max(this.x,this.y)},n=f,r=[{key:"ONE",get:function(){return new f(1,1)}},{key:"ZERO",get:function(){return new f(0,0)}},{key:"UP",get:function(){return new f(0,1)}},{key:"RIGHT",get:function(){return new f(1,0)}}],null&&c(n.prototype,null),r&&c(n,r),f})(n.default);i.default=f,f.sub=f.subtract,f.mul=f.multiply,f.scale=f.multiplyScalar,f.mag=f.len,f.squaredMagnitude=f.lengthSqr,f.div=f.divide,f.ONE_R=f.ONE,f.ZERO_R=f.ZERO,f.UP_R=f.UP,f.RIGHT_R=f.RIGHT;var d=new f,_=new f;r.default.fastDefine("cc.Vec2",f,{x:0,y:0}),cc.v2=function(t,e){return new f(t,e)},cc.Vec2=f,e.exports=i.default}),{"../platform/CCClass":161,"../utils/misc":235,"./utils":257,"./value-type":258}],260:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=c(t("./value-type")),r=c(t("../platform/CCClass")),s=c(t("../utils/misc")),a=c(t("./vec2")),o=t("./utils");function c(t){return t&&t.__esModule?t:{default:t}}function l(t,e){for(var i=0;i0&&(i=1/Math.sqrt(i),t.x=h*i,t.y=f*i,t.z=d*i),t},_.dot=function(t,e){return t.x*e.x+t.y*e.y+t.z*e.z},_.cross=function(t,e,i){var n=e.x,r=e.y,s=e.z,a=i.x,o=i.y,c=i.z;return t.x=r*c-s*o,t.y=s*a-n*c,t.z=n*o-r*a,t},_.lerp=function(t,e,i,n){return t.x=e.x+n*(i.x-e.x),t.y=e.y+n*(i.y-e.y),t.z=e.z+n*(i.z-e.z),t},_.random=function(t,e){e=e||1;var i=2*(0,o.random)()*Math.PI,n=2*(0,o.random)()-1,r=Math.sqrt(1-n*n);return t.x=r*Math.cos(i)*e,t.y=r*Math.sin(i)*e,t.z=n*e,t},_.transformMat4=function(t,e,i){h=e.x,f=e.y,d=e.z;var n=i.m,r=n[3]*h+n[7]*f+n[11]*d+n[15];return r=r?1/r:1,t.x=(n[0]*h+n[4]*f+n[8]*d+n[12])*r,t.y=(n[1]*h+n[5]*f+n[9]*d+n[13])*r,t.z=(n[2]*h+n[6]*f+n[10]*d+n[14])*r,t},_.transformMat4Normal=function(t,e,i){h=e.x,f=e.y,d=e.z;var n=i.m,r=n[3]*h+n[7]*f+n[11]*d;return r=r?1/r:1,t.x=(n[0]*h+n[4]*f+n[8]*d)*r,t.y=(n[1]*h+n[5]*f+n[9]*d)*r,t.z=(n[2]*h+n[6]*f+n[10]*d)*r,t},_.transformMat3=function(t,e,i){h=e.x,f=e.y,d=e.z;var n=i.m;return t.x=h*n[0]+f*n[3]+d*n[6],t.y=h*n[1]+f*n[4]+d*n[7],t.z=h*n[2]+f*n[5]+d*n[8],t},_.transformAffine=function(t,e,i){h=e.x,f=e.y,d=e.z;var n=i.m;return t.x=n[0]*h+n[1]*f+n[2]*d+n[3],t.y=n[4]*h+n[5]*f+n[6]*d+n[7],t.x=n[8]*h+n[9]*f+n[10]*d+n[11],t},_.transformQuat=function(t,e,i){var n=i.w*e.x+i.y*e.z-i.z*e.y,r=i.w*e.y+i.z*e.x-i.x*e.z,s=i.w*e.z+i.x*e.y-i.y*e.x,a=-i.x*e.x-i.y*e.y-i.z*e.z;return t.x=n*i.w+a*-i.x+r*-i.z-s*-i.y,t.y=r*i.w+a*-i.y+s*-i.x-n*-i.z,t.z=s*i.w+a*-i.z+n*-i.y-r*-i.x,t},_.transformRTS=function(t,e,i,n,r){var s=e.x*r.x,a=e.y*r.y,o=e.z*r.z,c=i.w*s+i.y*o-i.z*a,l=i.w*a+i.z*s-i.x*o,u=i.w*o+i.x*a-i.y*s,h=-i.x*s-i.y*a-i.z*o;return t.x=c*i.w+h*-i.x+l*-i.z-u*-i.y+n.x,t.y=l*i.w+h*-i.y+u*-i.x-c*-i.z+n.y,t.z=u*i.w+h*-i.z+c*-i.y-l*-i.x+n.z,t},_.transformInverseRTS=function(t,e,i,n,r){var s=e.x-n.x,a=e.y-n.y,o=e.z-n.z,c=i.w*s-i.y*o+i.z*a,l=i.w*a-i.z*s+i.x*o,u=i.w*o-i.x*a+i.y*s,h=i.x*s+i.y*a+i.z*o;return t.x=(c*i.w+h*i.x+l*i.z-u*i.y)/r.x,t.y=(l*i.w+h*i.y+u*i.x-c*i.z)/r.y,t.z=(u*i.w+h*i.z+c*i.y-l*i.x)/r.z,t},_.rotateX=function(t,e,i,n){h=e.x-i.x,f=e.y-i.y,d=e.z-i.z;var r=Math.cos(n),s=Math.sin(n),a=h,o=f*r-d*s,c=f*s+d*r;return t.x=a+i.x,t.y=o+i.y,t.z=c+i.z,t},_.rotateY=function(t,e,i,n){h=e.x-i.x,f=e.y-i.y,d=e.z-i.z;var r=Math.cos(n),s=Math.sin(n),a=d*s+h*r,o=f,c=d*r-h*s;return t.x=a+i.x,t.y=o+i.y,t.z=c+i.z,t},_.rotateZ=function(t,e,i,n){h=e.x-i.x,f=e.y-i.y,d=e.z-i.z;var r=Math.cos(n),s=Math.sin(n),a=h*r-f*s,o=h*s+f*r,c=d;return t.x=a+i.x,t.y=o+i.y,t.z=c+i.z,t},_.strictEquals=function(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z},_.equals=function(t,e,i){void 0===i&&(i=o.EPSILON);var n=t.x,r=t.y,s=t.z,a=e.x,c=e.y,l=e.z;return Math.abs(n-a)<=i*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-c)<=i*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(s-l)<=i*Math.max(1,Math.abs(s),Math.abs(l))},_.angle=function(t,e){_.normalize(p,t),_.normalize(v,e);var i=_.dot(p,v);return i>1?0:i<-1?Math.PI:Math.acos(i)},_.projectOnPlane=function(t,e,i){return _.subtract(t,e,_.project(t,e,i))},_.project=function(t,e,i){var n=_.lengthSqr(i);return n<1e-6?_.set(t,0,0,0):_.multiplyScalar(t,i,_.dot(e,i)/n)},_.toArray=function(t,e,i){return void 0===i&&(i=0),t[i+0]=e.x,t[i+1]=e.y,t[i+2]=e.z,t},_.fromArray=function(t,e,i){return void 0===i&&(i=0),t.x=e[i+0],t.y=e[i+1],t.z=e[i+2],t},c.clone=function(){return new _(this.x,this.y,this.z)},c.set=function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},c.equals=function(t){return t&&this.x===t.x&&this.y===t.y&&this.z===t.z},c.fuzzyEquals=function(t,e){return this.x-e<=t.x&&t.x<=this.x+e&&this.y-e<=t.y&&t.y<=this.y+e&&this.z-e<=t.z&&t.z<=this.z+e},c.toString=function(){return"("+this.x.toFixed(2)+", "+this.y.toFixed(2)+", "+this.z.toFixed(2)+")"},c.lerp=function(t,e,i){return i=i||new _,_.lerp(i,this,t,e),i},c.clampf=function(t,e){return this.x=s.default.clampf(this.x,t.x,e.x),this.y=s.default.clampf(this.y,t.y,e.y),this.z=s.default.clampf(this.z,t.z,e.z),this},c.addSelf=function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this},c.add=function(t,e){return(e=e||new _).x=this.x+t.x,e.y=this.y+t.y,e.z=this.z+t.z,e},c.subtract=function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this},c.multiplyScalar=function(t){return this.x*=t,this.y*=t,this.z*=t,this},c.multiply=function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this},c.divide=function(t){return this.x/=t,this.y/=t,this.z/=t,this},c.negate=function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},c.dot=function(t){return this.x*t.x+this.y*t.y+this.z*t.z},c.cross=function(t,e){return e=e||new _,_.cross(e,this,t),e},c.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},c.lengthSqr=function(){return this.x*this.x+this.y*this.y+this.z*this.z},c.normalizeSelf=function(){return _.normalize(this,this),this},c.normalize=function(t){return t=t||new _,_.normalize(t,this),t},c.transformMat4=function(t,e){return e=e||new _,_.transformMat4(e,this,t),e},c.maxAxis=function(){return Math.max(this.x,this.y,this.z)},c.signAngle=function(t){cc.warnID(1408,"vec3.signAngle","v2.1","cc.v2(selfVector).signAngle(vector)");var e=new a.default(this.x,this.y),i=new a.default(t.x,t.y);return e.signAngle(i)},c.rotate=function(t,e){return cc.warnID(1408,"vec3.rotate","v2.1","cc.v2(selfVector).rotate(radians, out)"),a.default.prototype.rotate.call(this,t,e)},c.rotateSelf=function(t){return cc.warnID(1408,"vec3.rotateSelf","v2.1","cc.v2(selfVector).rotateSelf(radians)"),a.default.prototype.rotateSelf.call(this,t)},n=_,r=[{key:"ONE",get:function(){return new _(1,1,1)}},{key:"ZERO",get:function(){return new _}},{key:"UP",get:function(){return new _(0,1,0)}},{key:"RIGHT",get:function(){return new _(1,0,0)}},{key:"FORWARD",get:function(){return new _(0,0,1)}}],null&&l(n.prototype,null),r&&l(n,r),_})(n.default);i.default=_,_.sub=_.subtract,_.mul=_.multiply,_.scale=_.multiplyScalar,_.mag=_.len,_.squaredMagnitude=_.lengthSqr,_.div=_.divide,_.ONE_R=_.ONE,_.ZERO_R=_.ZERO,_.UP_R=_.UP,_.RIGHT_R=_.RIGHT,_.FRONT_R=_.FORWARD;var p=new _,v=new _;r.default.fastDefine("cc.Vec3",_,{x:0,y:0,z:0}),cc.v3=function(t,e,i){return new _(t,e,i)},cc.Vec3=_,e.exports=i.default}),{"../platform/CCClass":161,"../utils/misc":235,"./utils":257,"./value-type":258,"./vec2":259}],261:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0,i.v4=_;var n=a(t("../platform/CCClass")),r=a(t("./value-type")),s=t("./utils");function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){for(var i=0;i0&&(i=1/Math.sqrt(i),t.x=l*i,t.y=u*i,t.z=h*i,t.w=f*i),t},d.dot=function(t,e){return t.x*e.x+t.y*e.y+t.z*e.z+t.w*e.w},d.lerp=function(t,e,i,n){return t.x=e.x+n*(i.x-e.x),t.y=e.y+n*(i.y-e.y),t.z=e.z+n*(i.z-e.z),t.w=e.w+n*(i.w-e.w),t},d.random=function(t,e){e=e||1;var i=2*(0,s.random)()*Math.PI,n=2*(0,s.random)()-1,r=Math.sqrt(1-n*n);return t.x=r*Math.cos(i)*e,t.y=r*Math.sin(i)*e,t.z=n*e,t.w=0,t},d.transformMat4=function(t,e,i){l=e.x,u=e.y,h=e.z,f=e.w;var n=i.m;return t.x=n[0]*l+n[4]*u+n[8]*h+n[12]*f,t.y=n[1]*l+n[5]*u+n[9]*h+n[13]*f,t.z=n[2]*l+n[6]*u+n[10]*h+n[14]*f,t.w=n[3]*l+n[7]*u+n[11]*h+n[15]*f,t},d.transformAffine=function(t,e,i){l=e.x,u=e.y,h=e.z,f=e.w;var n=i.m;return t.x=n[0]*l+n[1]*u+n[2]*h+n[3]*f,t.y=n[4]*l+n[5]*u+n[6]*h+n[7]*f,t.x=n[8]*l+n[9]*u+n[10]*h+n[11]*f,t.w=e.w,t},d.transformQuat=function(t,e,i){var n=e.x,r=e.y,s=e.z;l=i.x,u=i.y,h=i.z;var a=(f=i.w)*n+u*s-h*r,o=f*r+h*n-l*s,c=f*s+l*r-u*n,d=-l*n-u*r-h*s;return t.x=a*f+d*-l+o*-h-c*-u,t.y=o*f+d*-u+c*-l-a*-h,t.z=c*f+d*-h+a*-u-o*-l,t.w=e.w,t},d.strictEquals=function(t,e){return t.x===e.x&&t.y===e.y&&t.z===e.z&&t.w===e.w},d.equals=function(t,e,i){return void 0===i&&(i=s.EPSILON),Math.abs(t.x-e.x)<=i*Math.max(1,Math.abs(t.x),Math.abs(e.x))&&Math.abs(t.y-e.y)<=i*Math.max(1,Math.abs(t.y),Math.abs(e.y))&&Math.abs(t.z-e.z)<=i*Math.max(1,Math.abs(t.z),Math.abs(e.z))&&Math.abs(t.w-e.w)<=i*Math.max(1,Math.abs(t.w),Math.abs(e.w))},d.toArray=function(t,e,i){return void 0===i&&(i=0),t[i+0]=e.x,t[i+1]=e.y,t[i+2]=e.z,t[i+3]=e.w,t},d.fromArray=function(t,e,i){return void 0===i&&(i=0),t.x=e[i+0],t.y=e[i+1],t.z=e[i+2],t.w=e[i+3],t},a.clone=function(){return new d(this.x,this.y,this.z,this.w)},a.set=function(t,e,i,n){return t&&"object"==typeof t?(this.x=t.x,this.y=t.y,this.z=t.z,this.w=t.w):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=n||0),this},a.equals=function(t,e){return void 0===e&&(e=s.EPSILON),Math.abs(this.x-t.x)<=e*Math.max(1,Math.abs(this.x),Math.abs(t.x))&&Math.abs(this.y-t.y)<=e*Math.max(1,Math.abs(this.y),Math.abs(t.y))&&Math.abs(this.z-t.z)<=e*Math.max(1,Math.abs(this.z),Math.abs(t.z))&&Math.abs(this.w-t.w)<=e*Math.max(1,Math.abs(this.w),Math.abs(t.w))},a.equals4f=function(t,e,i,n,r){return void 0===r&&(r=s.EPSILON),Math.abs(this.x-t)<=r*Math.max(1,Math.abs(this.x),Math.abs(t))&&Math.abs(this.y-e)<=r*Math.max(1,Math.abs(this.y),Math.abs(e))&&Math.abs(this.z-i)<=r*Math.max(1,Math.abs(this.z),Math.abs(i))&&Math.abs(this.w-n)<=r*Math.max(1,Math.abs(this.w),Math.abs(n))},a.strictEquals=function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},a.strictEquals4f=function(t,e,i,n){return this.x===t&&this.y===e&&this.z===i&&this.w===n},a.lerp=function(t,e){return l=this.x,u=this.y,h=this.z,f=this.w,this.x=l+e*(t.x-l),this.y=u+e*(t.y-u),this.z=h+e*(t.z-h),this.w=f+e*(t.w-f),this},a.toString=function(){return"("+this.x.toFixed(2)+", "+this.y.toFixed(2)+", "+this.z.toFixed(2)+", "+this.w.toFixed(2)+")"},a.clampf=function(t,e){return this.x=(0,s.clamp)(this.x,t.x,e.x),this.y=(0,s.clamp)(this.y,t.y,e.y),this.z=(0,s.clamp)(this.z,t.z,e.z),this.w=(0,s.clamp)(this.w,t.w,e.w),this},a.addSelf=function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this},a.add=function(t,e){return(e=e||new d).x=this.x+t.x,e.y=this.y+t.y,e.z=this.z+t.z,e.w=this.w+t.w,e},a.subtract=function(t,e){return(e=e||new d).x=this.x-t.x,e.y=this.y-t.y,e.z=this.z-t.z,e.w=this.w-t.w,e},a.multiplyScalar=function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},a.multiply=function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this},a.divide=function(t){return this.x/=t,this.y/=t,this.z/=t,this.w/=t,this},a.negate=function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},a.dot=function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},a.cross=function(t,e){e=e||new d;var i=this.x,n=this.y,r=this.z,s=t.x,a=t.y,o=t.z;return e.x=n*o-r*a,e.y=r*s-i*o,e.z=i*a-n*s,e},a.len=function(){var t=this.x,e=this.y,i=this.z,n=this.w;return Math.sqrt(t*t+e*e+i*i+n*n)},a.lengthSqr=function(){var t=this.x,e=this.y,i=this.z,n=this.w;return t*t+e*e+i*i+n*n},a.normalizeSelf=function(){return this.normalize(this),this},a.normalize=function(t){t=t||new d,l=this.x,u=this.y,h=this.z,f=this.w;var e=l*l+u*u+h*h+f*f;return e>0&&(e=1/Math.sqrt(e),t.x=l*e,t.y=u*e,t.z=h*e,t.w=f*e),t},a.transformMat4=function(t,e){e=e||new d,l=this.x,u=this.y,h=this.z,f=this.w;var i=t.m;return e.x=i[0]*l+i[4]*u+i[8]*h+i[12]*f,e.y=i[1]*l+i[5]*u+i[9]*h+i[13]*f,e.z=i[2]*l+i[6]*u+i[10]*h+i[14]*f,e.w=i[3]*l+i[7]*u+i[11]*h+i[15]*f,e},a.maxAxis=function(){return Math.max(this.x,this.y,this.z,this.w)},n=d,r=[{key:"ZERO",get:function(){return new d(0,0,0,0)}},{key:"ONE",get:function(){return new d(1,1,1,1)}},{key:"NEG_ONE",get:function(){return new d(-1,-1,-1,-1)}}],null&&o(n.prototype,null),r&&o(n,r),d})(r.default);function _(t,e,i,n){return new d(t,e,i,n)}i.default=d,d.sub=d.subtract,d.mul=d.multiply,d.div=d.divide,d.scale=d.multiplyScalar,d.mag=d.len,d.squaredMagnitude=d.lengthSqr,d.ZERO_R=d.ZERO,d.ONE_R=d.ONE,d.NEG_ONE_R=d.NEG_ONE,n.default.fastDefine("cc.Vec4",d,{x:0,y:0,z:0,w:0}),cc.v4=_,cc.Vec4=d}),{"../platform/CCClass":161,"./utils":257,"./value-type":258}],262:[(function(){"use strict";cc.js}),{}],263:[(function(t){"use strict";t("./core/CCGame"),t("./actions")}),{"./actions":7,"./core/CCGame":24}],264:[(function(t,e){"use strict";var i=t("../core/assets/CCAsset"),n=t("../core/assets/CCSpriteFrame"),r=cc.Class({name:"cc.ParticleAsset",extends:i,properties:{spriteFrame:{default:null,type:n}}});cc.ParticleAsset=e.exports=r}),{"../core/assets/CCAsset":58,"../core/assets/CCSpriteFrame":70}],265:[(function(t,e){"use strict";var i,n,r,s,a,o,c,l,u,h,f,d,_,p,v,g,m,y,T,E,A,C,x,b,S,w,R,M,I,O,D,L,P,N,F,B,k,V,U,z,H,W;(function(t){t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL"})(i||(i={})),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.BUFFER=1]="BUFFER",t[t.TEXTURE=2]="TEXTURE",t[t.TEXTURE_VIEW=3]="TEXTURE_VIEW",t[t.RENDER_PASS=4]="RENDER_PASS",t[t.FRAMEBUFFER=5]="FRAMEBUFFER",t[t.SAMPLER=6]="SAMPLER",t[t.SHADER=7]="SHADER",t[t.PIPELINE_LAYOUT=8]="PIPELINE_LAYOUT",t[t.PIPELINE_STATE=9]="PIPELINE_STATE",t[t.BINDING_LAYOUT=10]="BINDING_LAYOUT",t[t.INPUT_ASSEMBLER=11]="INPUT_ASSEMBLER",t[t.COMMAND_ALLOCATOR=12]="COMMAND_ALLOCATOR",t[t.COMMAND_BUFFER=13]="COMMAND_BUFFER",t[t.QUEUE=14]="QUEUE",t[t.WINDOW=15]="WINDOW"})(n||(n={})),(function(t){t[t.UNREADY=0]="UNREADY",t[t.FAILED=1]="FAILED",t[t.SUCCESS=2]="SUCCESS"})(r||(r={})),(function(){function t(t){this._gfxType=n.UNKNOWN,this._status=r.UNREADY,this._gfxType=t}Object.defineProperty(t.prototype,"gfxType",{get:function(){return this._gfxType},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0})})(),(function(t){t.ATTR_POSITION="a_position",t.ATTR_NORMAL="a_normal",t.ATTR_TANGENT="a_tangent",t.ATTR_BITANGENT="a_bitangent",t.ATTR_WEIGHTS="a_weights",t.ATTR_JOINTS="a_joints",t.ATTR_COLOR="a_color",t.ATTR_COLOR1="a_color1",t.ATTR_COLOR2="a_color2",t.ATTR_TEX_COORD="a_texCoord",t.ATTR_TEX_COORD1="a_texCoord1",t.ATTR_TEX_COORD2="a_texCoord2",t.ATTR_TEX_COORD3="a_texCoord3",t.ATTR_TEX_COORD4="a_texCoord4",t.ATTR_TEX_COORD5="a_texCoord5",t.ATTR_TEX_COORD6="a_texCoord6",t.ATTR_TEX_COORD7="a_texCoord7",t.ATTR_TEX_COORD8="a_texCoord8"})(s||(s={})),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.BOOL=1]="BOOL",t[t.BOOL2=2]="BOOL2",t[t.BOOL3=3]="BOOL3",t[t.BOOL4=4]="BOOL4",t[t.INT=5]="INT",t[t.INT2=6]="INT2",t[t.INT3=7]="INT3",t[t.INT4=8]="INT4",t[t.UINT=9]="UINT",t[t.UINT2=10]="UINT2",t[t.UINT3=11]="UINT3",t[t.UINT4=12]="UINT4",t[t.FLOAT=13]="FLOAT",t[t.FLOAT2=14]="FLOAT2",t[t.FLOAT3=15]="FLOAT3",t[t.FLOAT4=16]="FLOAT4",t[t.COLOR4=17]="COLOR4",t[t.MAT2=18]="MAT2",t[t.MAT2X3=19]="MAT2X3",t[t.MAT2X4=20]="MAT2X4",t[t.MAT3X2=21]="MAT3X2",t[t.MAT3=22]="MAT3",t[t.MAT3X4=23]="MAT3X4",t[t.MAT4X2=24]="MAT4X2",t[t.MAT4X3=25]="MAT4X3",t[t.MAT4=26]="MAT4",t[t.SAMPLER1D=27]="SAMPLER1D",t[t.SAMPLER1D_ARRAY=28]="SAMPLER1D_ARRAY",t[t.SAMPLER2D=29]="SAMPLER2D",t[t.SAMPLER2D_ARRAY=30]="SAMPLER2D_ARRAY",t[t.SAMPLER3D=31]="SAMPLER3D",t[t.SAMPLER_CUBE=32]="SAMPLER_CUBE",t[t.COUNT=33]="COUNT"})(a||(a={})),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.A8=1]="A8",t[t.L8=2]="L8",t[t.LA8=3]="LA8",t[t.R8=4]="R8",t[t.R8SN=5]="R8SN",t[t.R8UI=6]="R8UI",t[t.R8I=7]="R8I",t[t.R16F=8]="R16F",t[t.R16UI=9]="R16UI",t[t.R16I=10]="R16I",t[t.R32F=11]="R32F",t[t.R32UI=12]="R32UI",t[t.R32I=13]="R32I",t[t.RG8=14]="RG8",t[t.RG8SN=15]="RG8SN",t[t.RG8UI=16]="RG8UI",t[t.RG8I=17]="RG8I",t[t.RG16F=18]="RG16F",t[t.RG16UI=19]="RG16UI",t[t.RG16I=20]="RG16I",t[t.RG32F=21]="RG32F",t[t.RG32UI=22]="RG32UI",t[t.RG32I=23]="RG32I",t[t.RGB8=24]="RGB8",t[t.SRGB8=25]="SRGB8",t[t.RGB8SN=26]="RGB8SN",t[t.RGB8UI=27]="RGB8UI",t[t.RGB8I=28]="RGB8I",t[t.RGB16F=29]="RGB16F",t[t.RGB16UI=30]="RGB16UI",t[t.RGB16I=31]="RGB16I",t[t.RGB32F=32]="RGB32F",t[t.RGB32UI=33]="RGB32UI",t[t.RGB32I=34]="RGB32I",t[t.RGBA8=35]="RGBA8",t[t.SRGB8_A8=36]="SRGB8_A8",t[t.RGBA8SN=37]="RGBA8SN",t[t.RGBA8UI=38]="RGBA8UI",t[t.RGBA8I=39]="RGBA8I",t[t.RGBA16F=40]="RGBA16F",t[t.RGBA16UI=41]="RGBA16UI",t[t.RGBA16I=42]="RGBA16I",t[t.RGBA32F=43]="RGBA32F",t[t.RGBA32UI=44]="RGBA32UI",t[t.RGBA32I=45]="RGBA32I",t[t.R5G6B5=46]="R5G6B5",t[t.R11G11B10F=47]="R11G11B10F",t[t.RGB5A1=48]="RGB5A1",t[t.RGBA4=49]="RGBA4",t[t.RGB10A2=50]="RGB10A2",t[t.RGB10A2UI=51]="RGB10A2UI",t[t.RGB9E5=52]="RGB9E5",t[t.D16=53]="D16",t[t.D16S8=54]="D16S8",t[t.D24=55]="D24",t[t.D24S8=56]="D24S8",t[t.D32F=57]="D32F",t[t.D32F_S8=58]="D32F_S8",t[t.BC1=59]="BC1",t[t.BC1_ALPHA=60]="BC1_ALPHA",t[t.BC1_SRGB=61]="BC1_SRGB",t[t.BC1_SRGB_ALPHA=62]="BC1_SRGB_ALPHA",t[t.BC2=63]="BC2",t[t.BC2_SRGB=64]="BC2_SRGB",t[t.BC3=65]="BC3",t[t.BC3_SRGB=66]="BC3_SRGB",t[t.BC4=67]="BC4",t[t.BC4_SNORM=68]="BC4_SNORM",t[t.BC5=69]="BC5",t[t.BC5_SNORM=70]="BC5_SNORM",t[t.BC6H_UF16=71]="BC6H_UF16",t[t.BC6H_SF16=72]="BC6H_SF16",t[t.BC7=73]="BC7",t[t.BC7_SRGB=74]="BC7_SRGB",t[t.ETC_RGB8=75]="ETC_RGB8",t[t.ETC2_RGB8=76]="ETC2_RGB8",t[t.ETC2_SRGB8=77]="ETC2_SRGB8",t[t.ETC2_RGB8_A1=78]="ETC2_RGB8_A1",t[t.ETC2_SRGB8_A1=79]="ETC2_SRGB8_A1",t[t.ETC2_RGBA8=80]="ETC2_RGBA8",t[t.ETC2_SRGB8_A8=81]="ETC2_SRGB8_A8",t[t.EAC_R11=82]="EAC_R11",t[t.EAC_R11SN=83]="EAC_R11SN",t[t.EAC_RG11=84]="EAC_RG11",t[t.EAC_RG11SN=85]="EAC_RG11SN",t[t.PVRTC_RGB2=86]="PVRTC_RGB2",t[t.PVRTC_RGBA2=87]="PVRTC_RGBA2",t[t.PVRTC_RGB4=88]="PVRTC_RGB4",t[t.PVRTC_RGBA4=89]="PVRTC_RGBA4",t[t.PVRTC2_2BPP=90]="PVRTC2_2BPP",t[t.PVRTC2_4BPP=91]="PVRTC2_4BPP"})(o||(o={})),(function(t){t[t.NONE=0]="NONE",t[t.TRANSFER_SRC=1]="TRANSFER_SRC",t[t.TRANSFER_DST=2]="TRANSFER_DST",t[t.INDEX=4]="INDEX",t[t.VERTEX=8]="VERTEX",t[t.UNIFORM=16]="UNIFORM",t[t.STORAGE=32]="STORAGE",t[t.INDIRECT=64]="INDIRECT"})(c||(c={})),(function(t){t[t.NONE=0]="NONE",t[t.DEVICE=1]="DEVICE",t[t.HOST=2]="HOST"})(l||(l={})),(function(t){t[t.NONE=0]="NONE",t[t.READ=1]="READ",t[t.WRITE=2]="WRITE"})(u||(u={})),(function(t){t[t.POINT_LIST=0]="POINT_LIST",t[t.LINE_LIST=1]="LINE_LIST",t[t.LINE_STRIP=2]="LINE_STRIP",t[t.LINE_LOOP=3]="LINE_LOOP",t[t.LINE_LIST_ADJACENCY=4]="LINE_LIST_ADJACENCY",t[t.LINE_STRIP_ADJACENCY=5]="LINE_STRIP_ADJACENCY",t[t.ISO_LINE_LIST=6]="ISO_LINE_LIST",t[t.TRIANGLE_LIST=7]="TRIANGLE_LIST",t[t.TRIANGLE_STRIP=8]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=9]="TRIANGLE_FAN",t[t.TRIANGLE_LIST_ADJACENCY=10]="TRIANGLE_LIST_ADJACENCY",t[t.TRIANGLE_STRIP_ADJACENCY=11]="TRIANGLE_STRIP_ADJACENCY",t[t.TRIANGLE_PATCH_ADJACENCY=12]="TRIANGLE_PATCH_ADJACENCY",t[t.QUAD_PATCH_LIST=13]="QUAD_PATCH_LIST"})(h||(h={})),(function(t){t[t.FILL=0]="FILL",t[t.POINT=1]="POINT",t[t.LINE=2]="LINE"})(f||(f={})),(function(t){t[t.GOURAND=0]="GOURAND",t[t.FLAT=1]="FLAT"})(d||(d={})),(function(t){t[t.NONE=0]="NONE",t[t.FRONT=1]="FRONT",t[t.BACK=2]="BACK"})(_||(_={})),(function(t){t[t.NEVER=0]="NEVER",t[t.LESS=1]="LESS",t[t.EQUAL=2]="EQUAL",t[t.LESS_EQUAL=3]="LESS_EQUAL",t[t.GREATER=4]="GREATER",t[t.NOT_EQUAL=5]="NOT_EQUAL",t[t.GREATER_EQUAL=6]="GREATER_EQUAL",t[t.ALWAYS=7]="ALWAYS"})(p||(p={})),(function(t){t[t.ZERO=0]="ZERO",t[t.KEEP=1]="KEEP",t[t.REPLACE=2]="REPLACE",t[t.INCR=3]="INCR",t[t.DECR=4]="DECR",t[t.INVERT=5]="INVERT",t[t.INCR_WRAP=6]="INCR_WRAP",t[t.DECR_WRAP=7]="DECR_WRAP"})(v||(v={})),(function(t){t[t.ADD=0]="ADD",t[t.SUB=1]="SUB",t[t.REV_SUB=2]="REV_SUB",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX"})(g||(g={})),(function(t){t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_ALPHA=2]="SRC_ALPHA",t[t.DST_ALPHA=3]="DST_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=4]="ONE_MINUS_SRC_ALPHA",t[t.ONE_MINUS_DST_ALPHA=5]="ONE_MINUS_DST_ALPHA",t[t.SRC_COLOR=6]="SRC_COLOR",t[t.DST_COLOR=7]="DST_COLOR",t[t.ONE_MINUS_SRC_COLOR=8]="ONE_MINUS_SRC_COLOR",t[t.ONE_MINUS_DST_COLOR=9]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=10]="SRC_ALPHA_SATURATE",t[t.CONSTANT_COLOR=11]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=12]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=13]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=14]="ONE_MINUS_CONSTANT_ALPHA"})(m||(m={})),(function(t){t[t.NONE=0]="NONE",t[t.R=1]="R",t[t.G=2]="G",t[t.B=4]="B",t[t.A=8]="A",t[t.ALL=15]="ALL"})(y||(y={})),(function(t){t[t.NONE=0]="NONE",t[t.POINT=1]="POINT",t[t.LINEAR=2]="LINEAR",t[t.ANISOTROPIC=3]="ANISOTROPIC"})(T||(T={})),(function(t){t[t.WRAP=0]="WRAP",t[t.MIRROR=1]="MIRROR",t[t.CLAMP=2]="CLAMP",t[t.BORDER=3]="BORDER"})(E||(E={})),(function(t){t[t.TEX1D=0]="TEX1D",t[t.TEX2D=1]="TEX2D",t[t.TEX3D=2]="TEX3D"})(A||(A={})),(function(t){t[t.NONE=0]="NONE",t[t.TRANSFER_SRC=1]="TRANSFER_SRC",t[t.TRANSFER_DST=2]="TRANSFER_DST",t[t.SAMPLED=4]="SAMPLED",t[t.STORAGE=8]="STORAGE",t[t.COLOR_ATTACHMENT=16]="COLOR_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=32]="DEPTH_STENCIL_ATTACHMENT",t[t.TRANSIENT_ATTACHMENT=64]="TRANSIENT_ATTACHMENT",t[t.INPUT_ATTACHMENT=128]="INPUT_ATTACHMENT"})(C||(C={})),(function(t){t[t.X1=0]="X1",t[t.X2=1]="X2",t[t.X4=2]="X4",t[t.X8=3]="X8",t[t.X16=4]="X16",t[t.X32=5]="X32",t[t.X64=6]="X64"})(x||(x={})),(function(t){t[t.NONE=0]="NONE",t[t.GEN_MIPMAP=1]="GEN_MIPMAP",t[t.CUBEMAP=2]="CUBEMAP",t[t.BAKUP_BUFFER=4]="BAKUP_BUFFER"})(b||(b={})),(function(t){t[t.TV1D=0]="TV1D",t[t.TV2D=1]="TV2D",t[t.TV3D=2]="TV3D",t[t.CUBE=3]="CUBE",t[t.TV1D_ARRAY=4]="TV1D_ARRAY",t[t.TV2D_ARRAY=5]="TV2D_ARRAY"})(S||(S={})),(function(t){t[t.VERTEX=0]="VERTEX",t[t.HULL=1]="HULL",t[t.DOMAIN=2]="DOMAIN",t[t.GEOMETRY=3]="GEOMETRY",t[t.FRAGMENT=4]="FRAGMENT",t[t.COMPUTE=5]="COMPUTE",t[t.COUNT=6]="COUNT"})(w||(w={})),(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.UNIFORM_BUFFER=1]="UNIFORM_BUFFER",t[t.SAMPLER=2]="SAMPLER",t[t.STORAGE_BUFFER=3]="STORAGE_BUFFER"})(R||(R={})),(function(t){t[t.PRIMARY=0]="PRIMARY",t[t.SECONDARY=1]="SECONDARY"})(M||(M={})),(function(t){t[t.LOAD=0]="LOAD",t[t.CLEAR=1]="CLEAR",t[t.DISCARD=2]="DISCARD"})(I||(I={})),(function(t){t[t.STORE=0]="STORE",t[t.DISCARD=1]="DISCARD"})(O||(O={})),(function(t){t[t.UNDEFINED=0]="UNDEFINED",t[t.GENERAL=1]="GENERAL",t[t.COLOR_ATTACHMENT_OPTIMAL=2]="COLOR_ATTACHMENT_OPTIMAL",t[t.DEPTH_STENCIL_ATTACHMENT_OPTIMAL=3]="DEPTH_STENCIL_ATTACHMENT_OPTIMAL",t[t.DEPTH_STENCIL_READONLY_OPTIMAL=4]="DEPTH_STENCIL_READONLY_OPTIMAL",t[t.SHADER_READONLY_OPTIMAL=5]="SHADER_READONLY_OPTIMAL",t[t.TRANSFER_SRC_OPTIMAL=6]="TRANSFER_SRC_OPTIMAL",t[t.TRANSFER_DST_OPTIMAL=7]="TRANSFER_DST_OPTIMAL",t[t.PREINITIALIZED=8]="PREINITIALIZED",t[t.PRESENT_SRC=9]="PRESENT_SRC"})(D||(D={})),(function(t){t[t.GRAPHICS=0]="GRAPHICS",t[t.COMPUTE=1]="COMPUTE",t[t.RAY_TRACING=2]="RAY_TRACING"})(L||(L={})),(function(t){t[t.VIEWPORT=0]="VIEWPORT",t[t.SCISSOR=1]="SCISSOR",t[t.LINE_WIDTH=2]="LINE_WIDTH",t[t.DEPTH_BIAS=3]="DEPTH_BIAS",t[t.BLEND_CONSTANTS=4]="BLEND_CONSTANTS",t[t.DEPTH_BOUNDS=5]="DEPTH_BOUNDS",t[t.STENCIL_WRITE_MASK=6]="STENCIL_WRITE_MASK",t[t.STENCIL_COMPARE_MASK=7]="STENCIL_COMPARE_MASK"})(P||(P={})),(function(t){t[t.FRONT=0]="FRONT",t[t.BACK=1]="BACK",t[t.ALL=2]="ALL"})(N||(N={})),(function(t){t[t.GRAPHICS=0]="GRAPHICS",t[t.COMPUTE=1]="COMPUTE",t[t.TRANSFER=2]="TRANSFER"})(F||(F={})),(function(t){t[t.NONE=0]="NONE",t[t.COLOR=1]="COLOR",t[t.DEPTH=2]="DEPTH",t[t.STENCIL=4]="STENCIL",t[t.DEPTH_STENCIL=6]="DEPTH_STENCIL",t[t.ALL=7]="ALL"})(B||(B={})),(function(t){t[t.DEFAULT=100]="DEFAULT"})(k||(k={})),(function(t){t[t.MIN=0]="MIN",t[t.MAX=255]="MAX",t[t.DEFAULT=128]="DEFAULT"})(V||(V={})),(function(t){t[t.UBO_GLOBAL=23]="UBO_GLOBAL",t[t.UBO_SHADOW=22]="UBO_SHADOW",t[t.UBO_LOCAL=21]="UBO_LOCAL",t[t.UBO_FORWARD_LIGHTS=20]="UBO_FORWARD_LIGHTS",t[t.UBO_SKINNING=19]="UBO_SKINNING",t[t.UBO_SKINNING_TEXTURE=18]="UBO_SKINNING_TEXTURE",t[t.UBO_UI=17]="UBO_UI",t[t.SAMPLER_JOINTS=25]="SAMPLER_JOINTS",t[t.SAMPLER_ENVIRONMENT=26]="SAMPLER_ENVIRONMENT",t[t.CUSTUM_UBO_BINDING_END_POINT=17]="CUSTUM_UBO_BINDING_END_POINT",t[t.CUSTOM_SAMPLER_BINDING_START_POINT=30]="CUSTOM_SAMPLER_BINDING_START_POINT"})(U||(U={})),(function(t){t[t.minFilter=0]="minFilter",t[t.magFilter=1]="magFilter",t[t.mipFilter=2]="mipFilter",t[t.addressU=3]="addressU",t[t.addressV=4]="addressV",t[t.addressW=5]="addressW",t[t.maxAnisotropy=6]="maxAnisotropy",t[t.cmpFunc=7]="cmpFunc",t[t.minLOD=8]="minLOD",t[t.maxLOD=9]="maxLOD",t[t.mipLODBias=10]="mipLODBias",t[t.borderColor=11]="borderColor",t[t.total=15]="total"})(W||(W={}));var G={};G[G.bool=a.BOOL]="bool",G[G.int=a.INT]="int",G[G.ivec2=a.INT2]="ivec2invTypeParams",G[G.ivec3=a.INT3]="ivec3",G[G.ivec4=a.INT4]="ivec4",G[G.float=a.FLOAT]="float",G[G.vec2=a.FLOAT2]="vec2",G[G.vec3=a.FLOAT3]="vec3",G[G.vec4=a.FLOAT4]="vec4",G[G.mat2=a.MAT2]="mat2",G[G.mat3=a.MAT3]="mat3",G[G.mat4=a.MAT4]="mat4",G[G.sampler2D=a.SAMPLER2D]="sampler2D",G[G.samplerCube=a.SAMPLER_CUBE]="samplerCube";var Y=((z={})[a.BOOL]=4,z[a.INT]=4,z[a.INT2]=8,z[a.INT3]=12,z[a.INT4]=16,z[a.FLOAT]=4,z[a.FLOAT2]=8,z[a.FLOAT3]=12,z[a.FLOAT4]=16,z[a.MAT2]=16,z[a.MAT3]=36,z[a.MAT4]=64,z[a.SAMPLER2D]=4,z[a.SAMPLER_CUBE]=4,z),X=((H={})[a.BOOL]=o.R32I,H[a.INT]=o.R32I,H[a.INT2]=o.RG32I,H[a.INT3]=o.RGB32I,H[a.INT4]=o.RGBA32I,H[a.FLOAT]=o.R32F,H[a.FLOAT2]=o.RG32F,H[a.FLOAT3]=o.RGB32F,H[a.FLOAT4]=o.RGBA32F,H),j={BACK:1029,FRONT:1028,NONE:0,ADD:32774,SUB:32778,REV_SUB:32779,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,SRC_ALPHA_SATURATE:776,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,INCR_WRAP:34055,DECR:7683,DECR_WRAP:34056,INVERT:5386};Object.assign(j,k);var q={murmurhash2_32_gc:function(t,e){for(var i,n=t.length,r=e^n,s=0;n>=4;)i=1540483477*(65535&(i=255&t.charCodeAt(s)|(255&t.charCodeAt(++s))<<8|(255&t.charCodeAt(++s))<<16|(255&t.charCodeAt(++s))<<24))+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),n-=4,++s;switch(n){case 3:r^=(255&t.charCodeAt(s+2))<<16;case 2:r^=(255&t.charCodeAt(s+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(s)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0},SamplerInfoIndex:W,effectStructure:{$techniques:[{$passes:[{depthStencilState:{},rasterizerState:{},blendState:{targets:[{}]},properties:{any:{sampler:{},inspector:{}}}}]}]},typeMap:G,sizeMap:Y,formatMap:X,passParams:j,RenderQueue:{OPAQUE:0,TRANSPARENT:1,OVERLAY:2},RenderPriority:V,GFXGetTypeSize:function(t){switch(t){case a.BOOL:case a.INT:case a.UINT:case a.FLOAT:return 4;case a.BOOL2:case a.INT2:case a.UINT2:case a.FLOAT2:return 8;case a.BOOL3:case a.INT3:case a.UINT3:case a.FLOAT3:return 12;case a.BOOL4:case a.INT4:case a.UINT4:case a.FLOAT4:case a.MAT2:return 16;case a.MAT2X3:return 24;case a.MAT2X4:return 32;case a.MAT3X2:return 24;case a.MAT3:return 36;case a.MAT3X4:return 48;case a.MAT4X2:case a.MAT4X2:return 32;case a.MAT4:return 64;case a.SAMPLER1D:case a.SAMPLER1D_ARRAY:case a.SAMPLER2D:case a.SAMPLER2D_ARRAY:case a.SAMPLER3D:case a.SAMPLER_CUBE:return 4;default:return 0}},UniformBinding:U};e.exports=q}),{}],266:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=t("../memop"),r=l(t("../enums")),s=t("../../core/value-types"),a=l(t("./program-lib")),o=l(t("./view")),c=l(t("../gfx"));function l(t){return t&&t.__esModule?t:{default:t}}var u=new s.Mat4,h=new n.RecyclePool(function(){return{stage:null,items:null}},8),f=new n.RecyclePool(function(){return new Float32Array(2)},8),d=new n.RecyclePool(function(){return new Float32Array(3)},8),_=new n.RecyclePool(function(){return new Float32Array(4)},8),p=new n.RecyclePool(function(){return new Float32Array(9)},8),v=new n.RecyclePool(function(){return new Float32Array(16)},8),g=new n.RecyclePool(function(){return new Float32Array(64)},8),m=new n.RecyclePool(function(){return new Int32Array(2)},8),y=new n.RecyclePool(function(){return new Int32Array(3)},8),T=new n.RecyclePool(function(){return new Int32Array(4)},8),E=new n.RecyclePool(function(){return new Int32Array(64)},8),A=(function(){function t(t,e){var i;this._device=t,this._programLib=new a.default(t),this._opts=e,this._type2defaultValue=((i={})[r.default.PARAM_INT]=0,i[r.default.PARAM_INT2]=new s.Vec2(0,0),i[r.default.PARAM_INT3]=new s.Vec3(0,0,0),i[r.default.PARAM_INT4]=new s.Vec4(0,0,0,0),i[r.default.PARAM_FLOAT]=0,i[r.default.PARAM_FLOAT2]=new s.Vec2(0,0),i[r.default.PARAM_FLOAT3]=new s.Vec3(0,0,0),i[r.default.PARAM_FLOAT4]=new s.Vec4(0,0,0,0),i[r.default.PARAM_COLOR4]=new s.Color(0,0,0,1),i[r.default.PARAM_MAT3]=new s.Mat3,i[r.default.PARAM_MAT4]=new s.Mat4,i[r.default.PARAM_TEXTURE_2D]=e.defaultTexture,i[r.default.PARAM_TEXTURE_CUBE]=e.defaultTextureCube,i),this._stage2fn={},this._usedTextureUnits=0,this._viewPools=new n.RecyclePool(function(){return new o.default},8),this._drawItemsPools=new n.RecyclePool(function(){return{model:null,node:null,ia:null,effect:null,defines:null,uniforms:null}},100),this._stageItemsPools=new n.RecyclePool(function(){return new n.RecyclePool(function(){return{model:null,node:null,ia:null,effect:null,defines:null,passes:[],sortKey:-1,uniforms:null}},100)},16),this._definesChanged=!1}var e=t.prototype;return e._resetTextuerUnit=function(){this._usedTextureUnits=0},e._allocTextureUnit=function(){var t=this._device,e=this._usedTextureUnits;return e>=t._caps.maxTextureUnits&&console.warn("Trying to use "+e+" texture units while this GPU supports only "+t._caps.maxTextureUnits),this._usedTextureUnits+=1,e},e._registerStage=function(t,e){this._stage2fn[t]=e},e.clear=function(){this._programLib.clear(),this.reset()},e.reset=function(){this._viewPools.reset(),this._stageItemsPools.reset(),this._definesChanged=!1},e._requestView=function(){return this._viewPools.add()},e._render=function(t,e){var i=this._device;i.setFrameBuffer(t._framebuffer),i.setViewport(t._rect.x,t._rect.y,t._rect.w,t._rect.h);var n={};t._clearFlags&r.default.CLEAR_COLOR&&(n.color=s.Vec4.toArray([],t._color)),t._clearFlags&r.default.CLEAR_DEPTH&&(n.depth=t._depth),t._clearFlags&r.default.CLEAR_STENCIL&&(n.stencil=t._stencil),i.clear(n),this._drawItemsPools.reset();for(var a=0;at.count)return void console.error("Failed to set property ["+t.name+"] : The length of texture array ["+i.length+"] is bigger than ["+t.count+"].");for(var n=E.add(),s=0;s0&&n&&n.precision>0}e||cc.warnID(9102),this._highpSupported=e},t})();i.default=u,e.exports=i.default}),{"../gfx":277}],270:[(function(t,e,i){"use strict";function n(t,e){for(var i=0;i>24)/255,(i.blendColor>>16&255)/255,(i.blendColor>>8&255)/255,(255&i.blendColor)/255),void(i.blendSep?(t.blendFuncSeparate(i.blendSrc,i.blendDst,i.blendSrcAlpha,i.blendDstAlpha),t.blendEquationSeparate(i.blendEq,i.blendAlphaEq)):(t.blendFunc(i.blendSrc,i.blendDst),t.blendEquation(i.blendEq)))):void t.disable(t.BLEND);!1!==i.blend&&(e.blendColor!==i.blendColor&&t.blendColor((i.blendColor>>24)/255,(i.blendColor>>16&255)/255,(i.blendColor>>8&255)/255,(255&i.blendColor)/255),e.blendSep===i.blendSep?i.blendSep?(e.blendSrc===i.blendSrc&&e.blendDst===i.blendDst&&e.blendSrcAlpha===i.blendSrcAlpha&&e.blendDstAlpha===i.blendDstAlpha||t.blendFuncSeparate(i.blendSrc,i.blendDst,i.blendSrcAlpha,i.blendDstAlpha),e.blendEq===i.blendEq&&e.blendAlphaEq===i.blendAlphaEq||t.blendEquationSeparate(i.blendEq,i.blendAlphaEq)):(e.blendSrc===i.blendSrc&&e.blendDst===i.blendDst||t.blendFunc(i.blendSrc,i.blendDst),e.blendEq!==i.blendEq&&t.blendEquation(i.blendEq)):i.blendSep?(t.blendFuncSeparate(i.blendSrc,i.blendDst,i.blendSrcAlpha,i.blendDstAlpha),t.blendEquationSeparate(i.blendEq,i.blendAlphaEq)):(t.blendFunc(i.blendSrc,i.blendDst),t.blendEquation(i.blendEq)))}function _(t,e,i){if(e.depthTest!==i.depthTest)return i.depthTest?(t.enable(t.DEPTH_TEST),t.depthFunc(i.depthFunc),void t.depthMask(i.depthWrite)):void t.disable(t.DEPTH_TEST);e.depthWrite!==i.depthWrite&&t.depthMask(i.depthWrite),!1!==i.depthTest?e.depthFunc!==i.depthFunc&&t.depthFunc(i.depthFunc):i.depthWrite&&(i.depthTest=!0,i.depthFunc=a.enums.DS_FUNC_ALWAYS,t.enable(t.DEPTH_TEST),t.depthFunc(i.depthFunc))}function p(t,e,i){if(i.stencilTest!==a.enums.STENCIL_INHERIT)return i.stencilTest!==e.stencilTest?i.stencilTest===a.enums.STENCIL_DISABLE?void t.disable(t.STENCIL_TEST):(t.enable(t.STENCIL_TEST),void(i.stencilSep?(t.stencilFuncSeparate(t.FRONT,i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),t.stencilMaskSeparate(t.FRONT,i.stencilWriteMaskFront),t.stencilOpSeparate(t.FRONT,i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront),t.stencilFuncSeparate(t.BACK,i.stencilFuncBack,i.stencilRefBack,i.stencilMaskBack),t.stencilMaskSeparate(t.BACK,i.stencilWriteMaskBack),t.stencilOpSeparate(t.BACK,i.stencilFailOpBack,i.stencilZFailOpBack,i.stencilZPassOpBack)):(t.stencilFunc(i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),t.stencilMask(i.stencilWriteMaskFront),t.stencilOp(i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront)))):void(i.stencilTest!==a.enums.STENCIL_DISABLE&&(e.stencilSep===i.stencilSep?i.stencilSep?(e.stencilFuncFront===i.stencilFuncFront&&e.stencilRefFront===i.stencilRefFront&&e.stencilMaskFront===i.stencilMaskFront||t.stencilFuncSeparate(t.FRONT,i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),e.stencilWriteMaskFront!==i.stencilWriteMaskFront&&t.stencilMaskSeparate(t.FRONT,i.stencilWriteMaskFront),e.stencilFailOpFront===i.stencilFailOpFront&&e.stencilZFailOpFront===i.stencilZFailOpFront&&e.stencilZPassOpFront===i.stencilZPassOpFront||t.stencilOpSeparate(t.FRONT,i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront),e.stencilFuncBack===i.stencilFuncBack&&e.stencilRefBack===i.stencilRefBack&&e.stencilMaskBack===i.stencilMaskBack||t.stencilFuncSeparate(t.BACK,i.stencilFuncBack,i.stencilRefBack,i.stencilMaskBack),e.stencilWriteMaskBack!==i.stencilWriteMaskBack&&t.stencilMaskSeparate(t.BACK,i.stencilWriteMaskBack),e.stencilFailOpBack===i.stencilFailOpBack&&e.stencilZFailOpBack===i.stencilZFailOpBack&&e.stencilZPassOpBack===i.stencilZPassOpBack||t.stencilOpSeparate(t.BACK,i.stencilFailOpBack,i.stencilZFailOpBack,i.stencilZPassOpBack)):(e.stencilFuncFront===i.stencilFuncFront&&e.stencilRefFront===i.stencilRefFront&&e.stencilMaskFront===i.stencilMaskFront||t.stencilFunc(i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),e.stencilWriteMaskFront!==i.stencilWriteMaskFront&&t.stencilMask(i.stencilWriteMaskFront),e.stencilFailOpFront===i.stencilFailOpFront&&e.stencilZFailOpFront===i.stencilZFailOpFront&&e.stencilZPassOpFront===i.stencilZPassOpFront||t.stencilOp(i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront)):i.stencilSep?(t.stencilFuncSeparate(t.FRONT,i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),t.stencilMaskSeparate(t.FRONT,i.stencilWriteMaskFront),t.stencilOpSeparate(t.FRONT,i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront),t.stencilFuncSeparate(t.BACK,i.stencilFuncBack,i.stencilRefBack,i.stencilMaskBack),t.stencilMaskSeparate(t.BACK,i.stencilWriteMaskBack),t.stencilOpSeparate(t.BACK,i.stencilFailOpBack,i.stencilZFailOpBack,i.stencilZPassOpBack)):(t.stencilFunc(i.stencilFuncFront,i.stencilRefFront,i.stencilMaskFront),t.stencilMask(i.stencilWriteMaskFront),t.stencilOp(i.stencilFailOpFront,i.stencilZFailOpFront,i.stencilZPassOpFront))))}function v(t,e,i){e.cullMode!==i.cullMode&&(i.cullMode!==a.enums.CULL_NONE?(t.enable(t.CULL_FACE),t.cullFace(i.cullMode)):t.disable(t.CULL_FACE))}function g(t,e,i,n){var r=!1;if(-1!==n.maxStream){if(i.maxStream!==n.maxStream)r=!0;else if(i.program!==n.program)r=!0;else for(var s=0;s>>0},n.setBlendFunc=function(t,e){this._next.blendSep=!1,this._next.blendSrc=t,this._next.blendDst=e},n.setBlendFuncSep=function(t,e,i,n){this._next.blendSep=!0,this._next.blendSrc=t,this._next.blendDst=e,this._next.blendSrcAlpha=i,this._next.blendDstAlpha=n},n.setBlendEq=function(t){this._next.blendSep=!1,this._next.blendEq=t},n.setBlendEqSep=function(t,e){this._next.blendSep=!0,this._next.blendEq=t,this._next.blendAlphaEq=e},n.setCullMode=function(t){this._next.cullMode=t},n.setVertexBuffer=function(t,e,i){void 0===i&&(i=0),this._next.vertexBuffers[t]=e,this._next.vertexBufferOffsets[t]=i,this._next.maxStream=this._caps.maxTextureUnits?console.warn("Can not set texture "+t+" at stage "+i+", max texture exceed: "+this._caps.maxTextureUnits):(this._next.textureUnits[i]=e,this.setUniform(t,i),this._next.maxTextureSlot=this._caps.maxTextureUnits)console.warn("Can not set "+n+" textures for "+t+", max texture exceed: "+this._caps.maxTextureUnits);else{for(var r=0;rthis._bytes){if(t)return void console.error("Failed to update data, bytes exceed.");this._needExpandDataStore=!0,this._bytes=t+e.byteLength,this._numIndices=this._bytes/this._bytesPerIndex}var i=this._device._gl,n=this._usage;i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,this._glID),this._needExpandDataStore?(i.bufferData(i.ELEMENT_ARRAY_BUFFER,e,n),this._needExpandDataStore=!1):i.bufferSubData(i.ELEMENT_ARRAY_BUFFER,t,e),this._device._restoreIndexBuffer()}}else console.error("The buffer is destroyed")},n.setUsage=function(t){this._usage=t},e=t,(i=[{key:"count",get:function(){return this._numIndices}}])&&s(e.prototype,i),t})();o.BYTES_PER_INDEX=a;var c=o;i.default=c,e.exports=i.default}),{"./enums":274}],277:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("./enums");n={VertexFormat:t("./vertex-format"),IndexBuffer:t("./index-buffer"),VertexBuffer:t("./vertex-buffer"),Program:t("./program"),Texture:t("./texture"),Texture2D:t("./texture-2d"),TextureCube:t("./texture-cube"),RenderBuffer:t("./render-buffer"),FrameBuffer:t("./frame-buffer"),Device:t("./device"),attrTypeBytes:r.attrTypeBytes,glFilter:r.glFilter,glTextureFmt:r.glTextureFmt},Object.assign(n,r.enums);var s=n;i.default=s,cc.gfx=n,e.exports=i.default}),{"./device":273,"./enums":274,"./frame-buffer":275,"./index-buffer":276,"./program":279,"./render-buffer":280,"./texture":284,"./texture-2d":282,"./texture-cube":283,"./vertex-buffer":285,"./vertex-format":286}],278:[(function(t,e,i){"use strict";i.__esModule=!0,i.isPow2=function(t){return!(t&t-1||!t)}}),{}],279:[(function(t,e,i){"use strict";function n(t,e){for(var i=0;i0&&t.push({type:e,fileID:-1,line:0,message:i})}}))}var a=(function(){function t(t,e){this._device=t,this._attributes=[],this._uniforms=[],this._samplers=[],this._errors=[],this._linked=!1,this._vertSource=e.vert,this._fragSource=e.frag,this._glID=null,this._id=r++}var e,i,a=t.prototype;return a.link=function(){if(!this._linked){var t=this._device._gl,e=o(t,t.VERTEX_SHADER,this._vertSource),i=o(t,t.FRAGMENT_SHADER,this._fragSource),n=t.createProgram();t.attachShader(n,e),t.attachShader(n,i),t.linkProgram(n);var r=!1,a=this._errors;if(t.getShaderParameter(e,t.COMPILE_STATUS)||(s(a,"vs",t.getShaderInfoLog(e)),r=!0),t.getShaderParameter(i,t.COMPILE_STATUS)||(s(a,"fs",t.getShaderInfoLog(i)),r=!0),t.deleteShader(e),t.deleteShader(i),r)return a;if(!t.getProgramParameter(n,t.LINK_STATUS))return a.push({info:"Failed to link shader program: "+t.getProgramInfoLog(n)}),a;this._glID=n;for(var c=t.getProgramParameter(n,t.ACTIVE_ATTRIBUTES),l=0;l=s.enums.TEXTURE_FMT_RGB_DXT1&&this._format<=s.enums.TEXTURE_FMT_RGBA_PVRTC_4BPPV1||this._format>=s.enums.TEXTURE_FMT_RGB_ETC2&&this._format<=s.enums.TEXTURE_FMT_RGBA_ETC2),void 0!==t.genMipmaps&&(this._genMipmap=t.genMipmaps,i=t.genMipmaps);var n=this._device.caps.maxTextureSize||Number.MAX_VALUE,r=Math.max(t.width||0,t.height||0);n1&&(i=!1,(t.width>t.height?t.width:t.height)>>t.images.length-1!=1&&console.error("texture-2d mipmap is invalid, should have a 1x1 mipmap."))}(0,a.isPow2)(this._width)&&(0,a.isPow2)(this._height)||(i=!1),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this._glID),void 0!==t.images&&t.images.length>0&&(this._setMipmap(t.images,t.flipY,t.premultiplyAlpha),t.images.length>1&&(this._genMipmap=!0)),i&&(e.hint(e.GENERATE_MIPMAP_HINT,e.NICEST),e.generateMipmap(e.TEXTURE_2D),this._genMipmap=!0),this._setTexInfo(),this._device._restoreTexture(0)},r.updateSubImage=function(t){var e=this._device._gl,i=(0,s.glTextureFmt)(this._format);e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this._glID),this._setSubImage(i,t),this._device._restoreTexture(0)},r.updateImage=function(t){var e=this._device._gl,i=(0,s.glTextureFmt)(this._format);e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,this._glID),this._setImage(i,t),this._device._restoreTexture(0)},r._setSubImage=function(t,e){var i=this._device._gl,n=e.flipY,r=e.premultiplyAlpha,s=e.image;!s||ArrayBuffer.isView(s)||s instanceof ArrayBuffer?(void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),this._compressed?i.compressedTexSubImage2D(i.TEXTURE_2D,e.level,e.x,e.y,e.width,e.height,t.format,s):i.texSubImage2D(i.TEXTURE_2D,e.level,e.x,e.y,e.width,e.height,t.format,t.pixelType,s)):(void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),i.texSubImage2D(i.TEXTURE_2D,e.level,e.x,e.y,t.format,t.pixelType,s))},r._setImage=function(t,e){var i=this._device._gl,n=e.flipY,r=e.premultiplyAlpha,s=e.image;!s||ArrayBuffer.isView(s)||s instanceof ArrayBuffer?(void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),this._compressed?i.compressedTexImage2D(i.TEXTURE_2D,e.level,t.internalFormat,e.width,e.height,0,s):i.texImage2D(i.TEXTURE_2D,e.level,t.internalFormat,e.width,e.height,0,t.format,t.pixelType,s)):(void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!0):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),i.texImage2D(i.TEXTURE_2D,e.level,t.internalFormat,t.format,t.pixelType,s))},r._setMipmap=function(t,e,i){for(var n=(0,s.glTextureFmt)(this._format),r={width:this._width,height:this._height,flipY:e,premultiplyAlpha:i,level:0,image:null},a=0;a>a,r.height=this._height>>a,r.image=t[a],this._setImage(n,r)},r._setTexInfo=function(){var t=this._device._gl,e=(0,a.isPow2)(this._width)&&(0,a.isPow2)(this._height);e||this._wrapS===s.enums.WRAP_CLAMP&&this._wrapT===s.enums.WRAP_CLAMP||(console.warn("WebGL1 doesn't support all wrap modes with NPOT textures"),this._wrapS=s.enums.WRAP_CLAMP,this._wrapT=s.enums.WRAP_CLAMP);var i=this._genMipmap?this._mipFilter:-1;e||-1===i||(console.warn("NPOT textures do not support mipmap filter"),i=-1),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,(0,s.glFilter)(t,this._minFilter,i)),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,(0,s.glFilter)(t,this._magFilter,-1)),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,this._wrapS),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,this._wrapT);var n=this._device.ext("EXT_texture_filter_anisotropic");n&&t.texParameteri(t.TEXTURE_2D,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisotropy)},n})(r.default);i.default=c,e.exports=i.default}),{"./enums":274,"./misc":278,"./texture":284}],283:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("./texture"))&&n.__esModule?n:{default:n},s=t("./enums"),a=t("./misc");function o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var c=(function(t){var e,i;function n(e,i){var n,r=(n=t.call(this,e)||this)._device._gl;return n._target=r.TEXTURE_CUBE_MAP,n._glID=r.createTexture(),n.update(i),n}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,o(e,i);var r=n.prototype;return r.update=function(t){var e=this._device._gl,i=this._genMipmaps;t&&(void 0!==t.width&&(this._width=t.width),void 0!==t.height&&(this._height=t.height),void 0!==t.anisotropy&&(this._anisotropy=t.anisotropy),void 0!==t.minFilter&&(this._minFilter=t.minFilter),void 0!==t.magFilter&&(this._magFilter=t.magFilter),void 0!==t.mipFilter&&(this._mipFilter=t.mipFilter),void 0!==t.wrapS&&(this._wrapS=t.wrapS),void 0!==t.wrapT&&(this._wrapT=t.wrapT),void 0!==t.format&&(this._format=t.format,this._compressed=this._format>=s.enums.TEXTURE_FMT_RGB_DXT1&&this._format<=s.enums.TEXTURE_FMT_RGBA_PVRTC_4BPPV1||this._format>=s.enums.TEXTURE_FMT_RGB_ETC2&&this._format<=s.enums.TEXTURE_FMT_RGBA_ETC2),void 0!==t.genMipmaps&&(this._genMipmaps=t.genMipmaps,i=t.genMipmaps),void 0!==t.images&&t.images.length>1&&(i=!1,t.width!==t.height&&console.warn("texture-cube width and height should be identical."),t.width>>t.images.length-1!=1&&console.error("texture-cube mipmap is invalid. please set mipmap as 1x1, 2x2, 4x4 ... nxn"))),(0,a.isPow2)(this._width)&&(0,a.isPow2)(this._height)||(i=!1),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_CUBE_MAP,this._glID),void 0!==t.images&&t.images.length>0&&(this._setMipmap(t.images,t.flipY,t.premultiplyAlpha),t.images.length>1&&(this._genMipmaps=!0)),i&&(e.hint(e.GENERATE_MIPMAP_HINT,e.NICEST),e.generateMipmap(e.TEXTURE_CUBE_MAP),this._genMipmaps=!0),this._setTexInfo(),this._device._restoreTexture(0)},r.updateSubImage=function(t){var e=this._device._gl,i=(0,s.glTextureFmt)(this._format);e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_CUBE_MAP,this._glID),this._setSubImage(i,t),this._device._restoreTexture(0)},r.updateImage=function(t){var e=this._device._gl,i=(0,s.glTextureFmt)(this._format);e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_CUBE_MAP,this._glID),this._setImage(i,t),this._device._restoreTexture(0)},r._setSubImage=function(t,e){var i=this._device._gl,n=e.flipY,r=e.premultiplyAlpha,s=e.faceIndex,a=e.image;void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),!a||ArrayBuffer.isView(a)||a instanceof ArrayBuffer?this._compressed?i.compressedTexSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,e.x,e.y,e.width,e.height,t.format,a):i.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,e.x,e.y,e.width,e.height,t.format,t.pixelType,a):i.texSubImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,e.x,e.y,t.format,t.pixelType,a)},r._setImage=function(t,e){var i=this._device._gl,n=e.flipY,r=e.premultiplyAlpha,s=e.faceIndex,a=e.image;void 0===n?i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,!1):i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,n),void 0===r?i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1):i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r),!a||ArrayBuffer.isView(a)||a instanceof ArrayBuffer?this._compressed?i.compressedTexImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,t.internalFormat,e.width,e.height,0,a):i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,t.internalFormat,e.width,e.height,0,t.format,t.pixelType,a):i.texImage2D(i.TEXTURE_CUBE_MAP_POSITIVE_X+s,e.level,t.internalFormat,t.format,t.pixelType,a)},r._setMipmap=function(t,e,i){for(var n=(0,s.glTextureFmt)(this._format),r={width:this._width,height:this._height,faceIndex:0,flipY:e,premultiplyAlpha:i,level:0,image:null},a=0;a>a,r.height=this._height>>a;for(var c=0;c<6;++c)r.faceIndex=c,r.image=o[c],this._setImage(n,r)}},r._setTexInfo=function(){var t=this._device._gl,e=(0,a.isPow2)(this._width)&&(0,a.isPow2)(this._height);e||this._wrapS===s.enums.WRAP_CLAMP&&this._wrapT===s.enums.WRAP_CLAMP||(console.warn("WebGL1 doesn't support all wrap modes with NPOT textures"),this._wrapS=s.enums.WRAP_CLAMP,this._wrapT=s.enums.WRAP_CLAMP);var i=this._genMipmaps?this._mipFilter:-1;e||-1===i||(console.warn("NPOT textures do not support mipmap filter"),i=-1),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,(0,s.glFilter)(t,this._minFilter,i)),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,(0,s.glFilter)(t,this._magFilter,-1)),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_S,this._wrapS),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_WRAP_T,this._wrapT);var n=this._device.ext("EXT_texture_filter_anisotropic");n&&t.texParameteri(t.TEXTURE_CUBE_MAP,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisotropy)},n})(r.default);i.default=c,e.exports=i.default}),{"./enums":274,"./misc":278,"./texture":284}],284:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=t("./enums"),r=0,s=(function(){function t(t){this._device=t,this._width=4,this._height=4,this._genMipmaps=!1,this._compressed=!1,this._anisotropy=1,this._minFilter=n.enums.FILTER_LINEAR,this._magFilter=n.enums.FILTER_LINEAR,this._mipFilter=n.enums.FILTER_LINEAR,this._wrapS=n.enums.WRAP_REPEAT,this._wrapT=n.enums.WRAP_REPEAT,this._format=n.enums.TEXTURE_FMT_RGBA8,this._target=-1,this._id=r++}return t.prototype.destroy=function(){null!==this._glID?(this._device._gl.deleteTexture(this._glID),this._device._stats.tex-=this.bytes,this._glID=null):console.error("The texture already destroyed")},t})();i.default=s,e.exports=i.default}),{"./enums":274}],285:[(function(t,e,i){"use strict";function n(t,e){for(var i=0;ithis._bytes){if(t)return void console.error("Failed to update data, bytes exceed.");this._needExpandDataStore=!0,this._bytes=t+e.byteLength,this._numVertices=this._bytes/this._bytesPerVertex}var i=this._device._gl,n=this._usage;i.bindBuffer(i.ARRAY_BUFFER,this._glID),this._needExpandDataStore?(i.bufferData(i.ARRAY_BUFFER,e,n),this._needExpandDataStore=!1):i.bufferSubData(i.ARRAY_BUFFER,t,e),i.bindBuffer(i.ARRAY_BUFFER,null)}}else console.error("The buffer is destroyed")},r.getFormat=function(t){return this._format.element(t)},r.setUsage=function(t){this._usage=t},e=t,(i=[{key:"count",get:function(){return this._numVertices}}])&&n(e.prototype,i),t})();i.default=r,e.exports=i.default}),{"./enums":274}],286:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=t("./enums"),s=(n=t("../murmurhash2_gc"))&&n.__esModule?n:{default:n},a=(function(){function t(t){this._attr2el={},this._elements=[],this._bytes=0;for(var e="",i=0,n=t.length;ithis._data.length)for(var e=this._data.length;e=this._data.length&&this._resize(2*this._data.length),this._data[this._count]=t,++this._count},n.pop=function(){--this._count,this._count<0&&(this._count=0);var t=this._data[this._count];return this._data[this._count]=void 0,t},n.fastRemove=function(t){if(!(t>=this._count||t<0)){var e=this._count-1;this._data[t]=this._data[e],this._data[e]=void 0,this._count-=1}},n.indexOf=function(t){return this._data.indexOf(t)},n.sort=function(t){return(0,r.default)(this._data,0,this._count,t)},e=t,(i=[{key:"length",get:function(){return this._count}},{key:"data",get:function(){return this._data}}])&&s(e.prototype,i),t})();i.default=a,e.exports=i.default}),{"./timsort":293}],289:[(function(t,e,i){"use strict";i.__esModule=!0,i.TypedArrayPool=i.RecyclePool=i.Pool=i.LinkedArray=i.FixedArray=i.CircularPool=void 0;var n=l(t("./circular-pool"));i.CircularPool=n.default;var r=l(t("./fixed-array"));i.FixedArray=r.default;var s=l(t("./linked-array"));i.LinkedArray=s.default;var a=l(t("./pool"));i.Pool=a.default;var o=l(t("./recycle-pool"));i.RecyclePool=o.default;var c=l(t("./typed-array-pool"));function l(t){return t&&t.__esModule?t:{default:t}}i.TypedArrayPool=c.default}),{"./circular-pool":287,"./fixed-array":288,"./linked-array":290,"./pool":291,"./recycle-pool":292,"./typed-array-pool":294}],290:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n,r=(n=t("./pool"))&&n.__esModule?n:{default:n};function s(t,e){for(var i=0;ithis._data.length)for(var e=this._data.length;e=this._data.length&&this.resize(2*this._data.length),this._data[this._count++]},n.remove=function(t){if(!(t>=this._count)){var e=this._count-1,i=this._data[t];this._data[t]=this._data[e],this._data[e]=i,this._count-=1}},n.sort=function(t){return(0,r.default)(this._data,0,this._count,t)},e=t,(i=[{key:"length",get:function(){return this._count}},{key:"data",get:function(){return this._data}}])&&s(e.prototype,i),t})();i.default=a,cc.RecyclePool=a,e.exports=i.default}),{"./timsort":293}],293:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e,i,r){if(!Array.isArray(t))throw new TypeError("Can only sort arrays");void 0===e&&(e=0),void 0===i&&(i=t.length),void 0===r&&(r=c);var s=i-e;if(!(s<2)){var a=0;if(sh&&(d=h),f(t,e,e+d,e+a,r),a=d}o.pushRun(e,a),o.mergeRuns(),s-=a,e+=a}while(0!==s);o.forceMergeRuns()}};var n=32,r=7,s=256,a=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];function o(t){return t<1e5?t<100?t<10?0:1:t<1e4?t<1e3?2:3:4:t<1e7?t<1e6?5:6:t<1e9?t<1e8?7:8:9}function c(t,e){if(t===e)return 0;if(~~t===t&&~~e===e){if(0===t||0===e)return t=0)return-1;if(t>=0)return 1;t=-t,e=-e}var i=o(t),n=o(e),r=0;return in&&(e*=a[i-n-1],t/=10,r=1),t===e?r:t=n;)e|=1&t,t>>=1;return t+e}function u(t,e,i,n){var r=e+1;if(r===i)return 1;if(n(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function h(t,e,i){for(i--;e>>1;r(s,t[c])<0?o=c:a=c+1}var l=n-a;switch(l){case 3:t[a+3]=t[a+2];case 2:t[a+2]=t[a+1];case 1:t[a+1]=t[a];break;default:for(;l>0;)t[a+l]=t[a+l-1],l--}t[a]=s}}function d(t,e,i,n,r,s){var a=0,o=0,c=1;if(s(t,e[i+r])>0){for(o=n-r;c0;)a=c,(c=1+(c<<1))<=0&&(c=o);c>o&&(c=o),a+=r,c+=r}else{for(o=r+1;co&&(c=o);var l=a;a=r-c,c=r-l}for(a++;a>>1);s(t,e[i+u])>0?a=u+1:c=u}return c}function _(t,e,i,n,r,s){var a=0,o=0,c=1;if(s(t,e[i+r])<0){for(o=r+1;co&&(c=o);var l=a;a=r-c,c=r-l}else{for(o=n-r;c=0;)a=c,(c=1+(c<<1))<=0&&(c=o);c>o&&(c=o),a+=r,c+=r}for(a++;a>>1);s(t,e[i+u])<0?c=u:a=u+1}return c}var p=(function(){function t(t,e){this.array=t,this.compare=e,this.minGallop=r,this.length=t.length,this.tmpStorageLength=s,this.length<2*s&&(this.tmpStorageLength=this.length>>>1),this.tmp=new Array(this.tmpStorageLength),this.stackLength=this.length<120?5:this.length<1542?10:this.length<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength),this.stackSize=0}var e=t.prototype;return e.pushRun=function(t,e){this.runStart[this.stackSize]=t,this.runLength[this.stackSize]=e,this.stackSize+=1},e.mergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;if(t>=1&&this.runLength[t-1]<=this.runLength[t]+this.runLength[t+1]||t>=2&&this.runLength[t-2]<=this.runLength[t]+this.runLength[t-1])this.runLength[t-1]this.runLength[t+1])break;this.mergeAt(t)}},e.forceMergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;t>0&&this.runLength[t-1]=r||v>=r);if(g)break;f<0&&(f=0),f+=2}if(this.minGallop=f,f<1&&(this.minGallop=1),1===e){for(c=0;c=0;c--)a[p+c]=a[f+c];if(0===e){y=!0;break}}if(a[h--]=o[u--],1==--n){y=!0;break}if(0!=(m=n-d(a[l],o,0,n,n-1,s))){for(n-=m,p=1+(h-=m),f=1+(u-=m),c=0;c=r||m>=r);if(y)break;v<0&&(v=0),v+=2}if(this.minGallop=v,v<1&&(this.minGallop=1),1===n){for(p=1+(h-=e),f=1+(l-=e),c=e-1;c>=0;c--)a[p+c]=a[f+c];a[h]=o[u]}else{if(0===n)throw new Error("mergeHigh preconditions were not respected");for(f=h-(n-1),c=0;c=0;c--)a[p+c]=a[f+c];a[h]=o[u]}else for(f=h-(n-1),c=0;c65535)<<4,e|=i=((t>>>=e)>255)<<3,e|=i=((t>>>=i)>15)<<2,(e|=i=((t>>>=i)>3)<<1)|(t>>>=i)>>1}function o(t){var e=s(t),i=n[a(e)>>2];return i.length>0?i.pop():new ArrayBuffer(e)}var c={alloc_int8:function(t){var e=new Int8Array(o(t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_uint8:function(t){var e=new Uint8Array(o(t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_int16:function(t){var e=new Int16Array(o(2*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_uint16:function(t){var e=new Uint16Array(o(2*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_int32:function(t){var e=new Int32Array(o(4*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_uint32:function(t){var e=new Uint32Array(o(4*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_float32:function(t){var e=new Float32Array(o(4*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_float64:function(t){var e=new Float64Array(o(8*t),0,t);return e.length!==t?e.subarray(0,t):e},alloc_dataview:function(t){var e=new DataView(o(t),0,t);return e.length!==t?e.subarray(0,t):e},free:function(t){var e;e=t.buffer,n[a(e.byteLength)>>2].push(e)},reset:function(){for(var t=Array(8),e=0;e<8;++e)t[e]=[]}};i.default=c,e.exports=i.default}),{}],295:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=function(t,e){for(var i,n=t.length,r=e^n,s=0;n>=4;)i=1540483477*(65535&(i=255&t.charCodeAt(s)|(255&t.charCodeAt(++s))<<8|(255&t.charCodeAt(++s))<<16|(255&t.charCodeAt(++s))<<24))+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),n-=4,++s;switch(n){case 3:r^=(255&t.charCodeAt(s+2))<<16;case 2:r^=(255&t.charCodeAt(s+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(s)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0},e.exports=i.default}),{}],296:[(function(t,e,i){"use strict";i.__esModule=!0,i.default=void 0;var n=t("../../core/value-types"),r=o(t("../core/base-renderer")),s=o(t("../enums")),a=t("../memop");function o(t){return t&&t.__esModule?t:{default:t}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=new Float32Array(16),h=new Float32Array(16),f=new Float32Array(16),d=new Float32Array(16),_=new Float32Array(4),p=new Float32Array(64),v=[],g=new Float32Array(4),m=new n.Vec4(0,0,0,0),y=new n.Vec3(0,0,0),T=new n.Vec3(0,0,0),E=new a.RecyclePool(function(){return new Float32Array(16)},8);function A(t,e){return t._priority-e._priority}var C=(function(t){var e,i;function r(e,i){var n;return(n=t.call(this,e,i)||this)._time=new Float32Array(4),n._lights=[],n._shadowLights=[],n._numLights=0,n._defines={},n._registerStage("shadowcast",n._shadowStage.bind(c(n))),n._registerStage("opaque",n._opaqueStage.bind(c(n))),n._registerStage("transparent",n._transparentStage.bind(c(n))),n}i=t,(e=r).prototype=Object.create(i.prototype),e.prototype.constructor=e,l(e,i);var a=r.prototype;return a.reset=function(){E.reset(),t.prototype.reset.call(this)},a.render=function(t,e){this.reset(),e&&(this._time[0]+=e,this._time[1]=e,this._time[2]++),this._device.setUniform("cc_time",this._time),this._updateLights(t);for(var i=this._device._gl.canvas,n=0;n0){for(var e=E.add(),i=E.add(),n=E.add(),r=Math.min(4,this._lights.length),a=0;a":0}),h=cc.Enum({REALTIME:0,SHARED_CACHE:1,PRIVATE_CACHE:2});sp.Skeleton=cc.Class({name:"sp.Skeleton",extends:n,editor:!1,statics:{AnimationCacheMode:h},properties:{paused:{default:!1,visible:!1},skeletonData:{default:null,type:sp.SkeletonData,notify:function(){this.defaultSkin="",this.defaultAnimation="",this._updateSkeletonData()},tooltip:!1},defaultSkin:{default:"",visible:!1},defaultAnimation:{default:"",visible:!1},animation:{get:function(){if(this.isAnimationCached())return this._animationName;var t=this.getCurrent(0);return t&&t.animation.name||""},set:function(t){this.defaultAnimation=t,t?this.setAnimation(0,t,this.loop):this.isAnimationCached()||(this.clearTrack(0),this.setToSetupPose())},visible:!1},_defaultSkinIndex:{get:function(){if(this.skeletonData){var t=this.skeletonData.getSkinsEnum();if(t)if(""===this.defaultSkin){if(t.hasOwnProperty(0))return this._defaultSkinIndex=0,0}else{var e=t[this.defaultSkin];if(void 0!==e)return e}}return 0},set:function(t){var e;if(this.skeletonData&&(e=this.skeletonData.getSkinsEnum()),!e)return cc.errorID("",this.name);var i=e[t];void 0!==i?(this.defaultSkin=i,this.setSkin(this.defaultSkin)):cc.errorID(7501,this.name)},type:l,visible:!0,animatable:!1,displayName:"Default Skin",tooltip:!1},_animationIndex:{get:function(){var t=this.animation;if(this.skeletonData&&t){var e=this.skeletonData.getAnimsEnum();if(e){var i=e[t];if(void 0!==i)return i}}return 0},set:function(t){if(0!==t){var e;if(this.skeletonData&&(e=this.skeletonData.getAnimsEnum()),!e)return cc.errorID(7502,this.name);var i=e[t];void 0!==i?this.animation=i:cc.errorID(7503,this.name)}else this.animation=""},type:u,visible:!0,animatable:!1,displayName:"Animation",tooltip:!1},_preCacheMode:-1,_cacheMode:h.REALTIME,_defaultCacheMode:{default:0,type:h,notify:function(){this.setAnimationCacheMode(this._defaultCacheMode)},editorOnly:!0,visible:!0,animatable:!1,displayName:"Animation Cache Mode",tooltip:!1},loop:{default:!0,tooltip:!1},premultipliedAlpha:{default:!0,tooltip:!1},timeScale:{default:1,tooltip:!1},debugSlots:{default:!1,editorOnly:!0,tooltip:!1,notify:function(){this._updateDebugDraw()}},debugBones:{default:!1,editorOnly:!0,tooltip:!1,notify:function(){this._updateDebugDraw()}},debugMesh:{default:!1,editorOnly:!0,tooltip:!1,notify:function(){this._updateDebugDraw()}},useTint:{default:!1,tooltip:!1,notify:function(){this._updateUseTint()}},enableBatch:{default:!1,notify:function(){this._updateBatch()},tooltip:!1},_accTime:0,_playCount:0,_frameCache:null,_curFrame:null,_skeletonCache:null,_animationName:"",_animationQueue:[],_headAniInfo:null,_playTimes:0,_isAniComplete:!0},ctor:function(){this._effectDelegate=null,this._skeleton=null,this._rootBone=null,this._listener=null,this._materialCache={},this._debugRenderer=null,this._startSlotIndex=-1,this._endSlotIndex=-1,this._startEntry={animation:{name:""},trackIndex:0},this._endEntry={animation:{name:""},trackIndex:0},this.attachUtil=new c},_getDefaultMaterial:function(){return cc.Material.getBuiltinMaterial("2d-spine")},_updateMaterial:function(){var t=this.useTint||this.isAnimationCached()&&!0,e=this.getMaterial(0);if(e){e.define("USE_TINT",t),e.define("CC_USE_MODEL",!this.enableBatch);var i=this.premultipliedAlpha?cc.gfx.BLEND_ONE:cc.gfx.BLEND_SRC_ALPHA,n=cc.gfx.BLEND_ONE_MINUS_SRC_ALPHA;e.setBlend(!0,cc.gfx.BLEND_FUNC_ADD,i,i,cc.gfx.BLEND_FUNC_ADD,n,n)}this._materialCache={}},disableRender:function(){this._super(),this.node._renderFlag&=~a},markForRender:function(t){this._super(t),t?this.node._renderFlag|=a:this.node._renderFlag&=~a},_updateUseTint:function(){var t=this.getMaterial(0);if(t){var e=this.useTint||this.isAnimationCached()&&!0;t.define("USE_TINT",e)}this._materialCache={}},_updateBatch:function(){var t=this.getMaterial(0);t&&t.define("CC_USE_MODEL",!this.enableBatch),this._materialCache={}},_validateRender:function(){var t=this.skeletonData;t&&t.isTexturesLoaded()?this._super():this.disableRender()},setSkeletonData:function(t){if(null!=t.width&&null!=t.height&&this.node.setContentSize(t.width,t.height),this._cacheMode===h.SHARED_CACHE?this._skeletonCache=o.sharedCache:this._cacheMode===h.PRIVATE_CACHE&&(this._skeletonCache=new o,this._skeletonCache.enablePrivateMode()),this.isAnimationCached()){(this.debugBones||this.debugSlots)&&cc.warn("Debug bones or slots is invalid in cached mode");var e=this._skeletonCache.getSkeletonCache(this.skeletonData._uuid,t);this._skeleton=e.skeleton,this._clipper=e.clipper,this._rootBone=this._skeleton.getRootBone()}else this._skeleton=new r.Skeleton(t),this._clipper=new r.SkeletonClipping,this._rootBone=this._skeleton.getRootBone();this.markForRender(!0)},setSlotsRange:function(t,e){this.isAnimationCached()?cc.warn("Slots visible range can not be modified in cached mode."):(this._startSlotIndex=t,this._endSlotIndex=e)},setAnimationStateData:function(t){if(this.isAnimationCached())cc.warn("'setAnimationStateData' interface can not be invoked in cached mode.");else{var e=new r.AnimationState(t);this._listener&&(this._state&&this._state.removeListener(this._listener),e.addListener(this._listener)),this._state=e}},__preload:function(){this._super();for(var t=this.node.children,e=0,i=t.length;ethis._headAniInfo.delay){var n=this._headAniInfo;this._headAniInfo=null,this.setAnimation(0,n.animationName,n.loop)}return}this._updateCache(t)}else this._updateRealtime(t)},_emitCacheCompleteEvent:function(){this._listener&&(this._endEntry.animation.name=this._animationName,this._listener.complete&&this._listener.complete(this._endEntry),this._listener.end&&this._listener.end(this._endEntry))},_updateCache:function(t){var e=this._frameCache;if(e.isInited()){var i=e.frames,n=o.FrameTime;0==this._accTime&&0==this._playCount&&(this._startEntry.animation.name=this._animationName,this._listener&&this._listener.start&&this._listener.start(this._startEntry)),this._accTime+=t;var r=Math.floor(this._accTime/n);if(e.isCompleted||e.updateToFrame(r),e.isCompleted&&r>=i.length){if(this._playCount++,this._playTimes>0&&this._playCount>=this._playTimes)return this._curFrame=i[i.length-1],this._accTime=0,this._playCount=0,this._isAniComplete=!0,void this._emitCacheCompleteEvent();this._accTime=0,r=0,this._emitCacheCompleteEvent()}this._curFrame=i[r]}},_updateRealtime:function(t){var e=this._skeleton,i=this._state;e&&(e.update(t),i&&(i.update(t),i.apply(e)))},setVertexEffectDelegate:function(t){this._effectDelegate=t},updateWorldTransform:function(){this.isAnimationCached()&&this._skeleton&&this._skeleton.updateWorldTransform()},setToSetupPose:function(){this._skeleton&&this._skeleton.setToSetupPose()},setBonesToSetupPose:function(){this._skeleton&&this._skeleton.setBonesToSetupPose()},setSlotsToSetupPose:function(){this._skeleton&&this._skeleton.setSlotsToSetupPose()},updateAnimationCache:function(t){if(this.isAnimationCached()){var e=this.skeletonData._uuid;this._skeletonCache&&this._skeletonCache.updateAnimationCache(e,t)}},invalidAnimationCache:function(){this.isAnimationCached()&&this._skeletonCache&&this._skeletonCache.invalidAnimationCache(this.skeletonData._uuid)},findBone:function(t){return this._skeleton?this._skeleton.findBone(t):null},findSlot:function(t){return this._skeleton?this._skeleton.findSlot(t):null},setSkin:function(t){this._skeleton&&(this._skeleton.setSkinByName(t),this._skeleton.setSlotsToSetupPose()),this.invalidAnimationCache()},getAttachment:function(t,e){return this._skeleton?this._skeleton.getAttachmentByName(t,e):null},setAttachment:function(t,e){this._skeleton&&this._skeleton.setAttachment(t,e),this.invalidAnimationCache()},getTextureAtlas:function(t){return t.region},setMix:function(t,e,i){this._state&&this._state.data.setMix(t,e,i)},setAnimation:function(t,e,i){if(this._playTimes=i?0:1,this._animationName=e,this.isAnimationCached()){if(0!==t&&cc.warn("Track index can not greater than 0 in cached mode."),!this._skeletonCache)return null;var n=this._skeletonCache.getAnimationCache(this.skeletonData._uuid,e);n||(n=this._skeletonCache.initAnimationCache(this.skeletonData._uuid,e)),n&&(this._isAniComplete=!1,this._accTime=0,this._playCount=0,this._frameCache=n,this.attachUtil._hasAttachedNode()&&this._frameCache.enableCacheAttachedInfo(),this._frameCache.updateToFrame(0),this._curFrame=this._frameCache.frames[0])}else if(this._skeleton){var r=this._skeleton.data.findAnimation(e);if(!r)return cc.logID(7509,e),null;var s=this._state.setAnimationWith(t,r,i);return this._state.apply(this._skeleton),s}return null},addAnimation:function(t,e,i,n){if(n=n||0,this.isAnimationCached())0!==t&&cc.warn("Track index can not greater than 0 in cached mode."),this._animationQueue.push({animationName:e,loop:i,delay:n});else if(this._skeleton){var r=this._skeleton.data.findAnimation(e);return r?this._state.addAnimationWith(t,r,i,n):(cc.logID(7510,e),null)}return null},findAnimation:function(t){return this._skeleton?this._skeleton.data.findAnimation(t):null},getCurrent:function(t){if(this.isAnimationCached())cc.warn("'getCurrent' interface can not be invoked in cached mode.");else if(this._state)return this._state.getCurrent(t);return null},clearTracks:function(){this.isAnimationCached()?cc.warn("'clearTracks' interface can not be invoked in cached mode."):this._state&&this._state.clearTracks()},clearTrack:function(t){this.isAnimationCached()?cc.warn("'clearTrack' interface can not be invoked in cached mode."):this._state&&this._state.clearTrack(t)},setStartListener:function(t){this._ensureListener(),this._listener.start=t},setInterruptListener:function(t){this._ensureListener(),this._listener.interrupt=t},setEndListener:function(t){this._ensureListener(),this._listener.end=t},setDisposeListener:function(t){this._ensureListener(),this._listener.dispose=t},setCompleteListener:function(t){this._ensureListener(),this._listener.complete=t},setEventListener:function(t){this._ensureListener(),this._listener.event=t},setTrackStartListener:function(t,e){i.getListeners(t).start=e},setTrackInterruptListener:function(t,e){i.getListeners(t).interrupt=e},setTrackEndListener:function(t,e){i.getListeners(t).end=e},setTrackDisposeListener:function(t,e){i.getListeners(t).dispose=e},setTrackCompleteListener:function(t,e){i.getListeners(t).complete=function(t){var i=Math.floor(t.trackTime/t.animationEnd);e(t,i)}},setTrackEventListener:function(t,e){i.getListeners(t).event=e},getState:function(){return this._state},_updateAnimEnum:!1,_updateSkinEnum:!1,_ensureListener:function(){this._listener||(this._listener=new i,this._state&&this._state.addListener(this._listener))},_updateSkeletonData:function(){if(this.skeletonData){var t=this.skeletonData.getRuntimeData();if(t){try{this.setSkeletonData(t),this.isAnimationCached()||this.setAnimationStateData(new r.AnimationStateData(this._skeleton.data)),this.defaultSkin&&this.setSkin(this.defaultSkin)}catch(e){cc.warn(e)}this.attachUtil.init(this),this.attachUtil._associateAttachedNode(),this._preCacheMode=this._cacheMode,this.animation=this.defaultAnimation}else this.disableRender()}else this.disableRender()},_refreshInspector:function(){this._updateAnimEnum(),this._updateSkinEnum(),Editor.Utils.refreshSelectedInspector("node",this.node.uuid)},_updateDebugDraw:function(){if(this.debugBones||this.debugSlots){if(!this._debugRenderer){var t=new cc.PrivateNode;t.name="DEBUG_DRAW_NODE";var e=t.addComponent(s);e.lineWidth=1,e.strokeColor=cc.color(255,0,0,255),this._debugRenderer=e}this._debugRenderer.node.parent=this.node,this.isAnimationCached()&&cc.warn("Debug bones or slots is invalid in cached mode")}else this._debugRenderer&&(this._debugRenderer.node.parent=null)}}),e.exports=sp.Skeleton}),{"../../cocos2d/core/components/CCRenderComponent":109,"../../cocos2d/core/graphics/graphics":150,"../../cocos2d/core/renderer/render-flow":193,"./AttachUtil":305,"./lib/spine":308,"./skeleton-cache":309,"./track-entry-listeners":313}],307:[(function(t){"use strict";var e="undefined"==typeof window?global:window;e.spine=t("./lib/spine"),e.sp=e.sp||{},sp._timeScale=1,Object.defineProperty(sp,"timeScale",{get:function(){return this._timeScale},set:function(t){this._timeScale=t},configurable:!0}),sp.ATTACHMENT_TYPE={REGION:0,BOUNDING_BOX:1,MESH:2,SKINNED_MESH:3},sp.AnimationEventType=cc.Enum({START:0,INTERRUPT:1,END:2,DISPOSE:3,COMPLETE:4,EVENT:5}),sp.spine=e.spine,t("./skeleton-texture"),t("./skeleton-data"),t("./vertex-effect-delegate"),t("./Skeleton"),t("./spine-assembler")}),{"./Skeleton":306,"./lib/spine":308,"./skeleton-data":310,"./skeleton-texture":311,"./spine-assembler":312,"./vertex-effect-delegate":314}],308:[(function(t,e){"use strict";var i,n,r,s=(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});(function(t){var e,i,n,r=(function(){function t(t,e,i){if(null==t)throw new Error("name cannot be null.");if(null==e)throw new Error("timelines cannot be null.");this.name=t,this.timelines=e,this.timelineIds=[];for(var n=0;n0&&(e%=this.duration));for(var c=this.timelines,l=0,u=c.length;l>>1;;){if(t[(s+1)*i]<=e?n=s+1:r=s,n==r)return(n+1)*i;s=n+r>>>1}},t.linearSearch=function(t,e,i){for(var n=0,r=t.length-i;n<=r;n+=i)if(t[n]>e)return n;return-1},t})();t.Animation=r,(function(t){t[t.setup=0]="setup",t[t.first=1]="first",t[t.replace=2]="replace",t[t.add=3]="add"})(e=t.MixBlend||(t.MixBlend={})),(function(t){t[t.mixIn=0]="mixIn",t[t.mixOut=1]="mixOut"})(i=t.MixDirection||(t.MixDirection={})),(function(t){t[t.rotate=0]="rotate",t[t.translate=1]="translate",t[t.scale=2]="scale",t[t.shear=3]="shear",t[t.attachment=4]="attachment",t[t.color=5]="color",t[t.deform=6]="deform",t[t.event=7]="event",t[t.drawOrder=8]="drawOrder",t[t.ikConstraint=9]="ikConstraint",t[t.transformConstraint=10]="transformConstraint",t[t.pathConstraintPosition=11]="pathConstraintPosition",t[t.pathConstraintSpacing=12]="pathConstraintSpacing",t[t.pathConstraintMix=13]="pathConstraintMix",t[t.twoColor=14]="twoColor"})(n=t.TimelineType||(t.TimelineType={}));var a=(function(){function e(i){if(i<=0)throw new Error("frameCount must be > 0: "+i);this.curves=t.Utils.newFloatArray((i-1)*e.BEZIER_SIZE)}return e.prototype.getFrameCount=function(){return this.curves.length/e.BEZIER_SIZE+1},e.prototype.setLinear=function(t){this.curves[t*e.BEZIER_SIZE]=e.LINEAR},e.prototype.setStepped=function(t){this.curves[t*e.BEZIER_SIZE]=e.STEPPED},e.prototype.getCurveType=function(t){var i=t*e.BEZIER_SIZE;if(i==this.curves.length)return e.LINEAR;var n=this.curves[i];return n==e.LINEAR?e.LINEAR:n==e.STEPPED?e.STEPPED:e.BEZIER},e.prototype.setCurve=function(t,i,n,r,s){var a=.03*(2*-i+r),o=.03*(2*-n+s),c=.006*(3*(i-r)+1),l=.006*(3*(n-s)+1),u=2*a+c,h=2*o+l,f=.3*i+a+.16666667*c,d=.3*n+o+.16666667*l,_=t*e.BEZIER_SIZE,p=this.curves;p[_++]=e.BEZIER;for(var v=f,g=d,m=_+e.BEZIER_SIZE-1;_=n){var u=void 0,h=void 0;return s==c?(u=0,h=0):(u=r[s-2],h=r[s-1]),h+(r[s+1]-h)*(n-u)/(o-u)}var f=r[s-1];return f+(1-f)*(n-o)/(1-o)},e.LINEAR=0,e.STEPPED=1,e.BEZIER=2,e.BEZIER_SIZE=19,e})();t.CurveTimeline=a;var o=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e<<1),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.rotate<<24)+this.boneIndex},a.prototype.setFrame=function(t,e,i){t<<=1,this.frames[t]=e,this.frames[t+a.ROTATION]=i},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.bones[this.boneIndex];if(u.active)if(n=l[l.length-a.ENTRIES]){var f=l[l.length+a.PREV_ROTATION];switch(c){case e.setup:u.rotation=u.data.rotation+f*o;break;case e.first:case e.replace:f+=u.data.rotation-u.rotation,f-=360*(16384-(16384.499999999996-f/360|0));case e.add:u.rotation+=f*o}}else{var d=r.binarySearch(l,n,a.ENTRIES),_=l[d+a.PREV_ROTATION],p=l[d],v=this.getCurvePercent((d>>1)-1,1-(n-p)/(l[d+a.PREV_TIME]-p)),g=l[d+a.ROTATION]-_;switch(g=_+(g-360*(16384-(16384.499999999996-g/360|0)))*v,c){case e.setup:u.rotation=u.data.rotation+(g-360*(16384-(16384.499999999996-g/360|0)))*o;break;case e.first:case e.replace:g+=u.data.rotation-u.rotation;case e.add:u.rotation+=(g-360*(16384-(16384.499999999996-g/360|0)))*o}}},a.ENTRIES=2,a.PREV_TIME=-2,a.PREV_ROTATION=-1,a.ROTATION=1,a})(a);t.RotateTimeline=o;var c=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.translate<<24)+this.boneIndex},a.prototype.setFrame=function(t,e,i,n){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.X]=i,this.frames[t+a.Y]=n},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.bones[this.boneIndex];if(u.active)if(n=l[l.length-a.ENTRIES])h=l[l.length+a.PREV_X],f=l[l.length+a.PREV_Y];else{var d=r.binarySearch(l,n,a.ENTRIES);h=l[d+a.PREV_X],f=l[d+a.PREV_Y];var _=l[d],p=this.getCurvePercent(d/a.ENTRIES-1,1-(n-_)/(l[d+a.PREV_TIME]-_));h+=(l[d+a.X]-h)*p,f+=(l[d+a.Y]-f)*p}switch(c){case e.setup:u.x=u.data.x+h*o,u.y=u.data.y+f*o;break;case e.first:case e.replace:u.x+=(u.data.x+h-u.x)*o,u.y+=(u.data.y+f-u.y)*o;break;case e.add:u.x+=h*o,u.y+=f*o}}},a.ENTRIES=3,a.PREV_TIME=-3,a.PREV_X=-2,a.PREV_Y=-1,a.X=1,a.Y=2,a})(a);t.TranslateTimeline=c;var l=(function(a){function o(t){return a.call(this,t)||this}return s(o,a),o.prototype.getPropertyId=function(){return(n.scale<<24)+this.boneIndex},o.prototype.apply=function(n,s,a,c,l,u,h){var f=this.frames,d=n.bones[this.boneIndex];if(d.active)if(a=f[f.length-o.ENTRIES])_=f[f.length+o.PREV_X]*d.data.scaleX,p=f[f.length+o.PREV_Y]*d.data.scaleY;else{var v=r.binarySearch(f,a,o.ENTRIES);_=f[v+o.PREV_X],p=f[v+o.PREV_Y];var g=f[v],m=this.getCurvePercent(v/o.ENTRIES-1,1-(a-g)/(f[v+o.PREV_TIME]-g));_=(_+(f[v+o.X]-_)*m)*d.data.scaleX,p=(p+(f[v+o.Y]-p)*m)*d.data.scaleY}if(1==l)u==e.add?(d.scaleX+=_-d.data.scaleX,d.scaleY+=p-d.data.scaleY):(d.scaleX=_,d.scaleY=p);else{var y=0,T=0;if(h==i.mixOut)switch(u){case e.setup:y=d.data.scaleX,T=d.data.scaleY,d.scaleX=y+(Math.abs(_)*t.MathUtils.signum(y)-y)*l,d.scaleY=T+(Math.abs(p)*t.MathUtils.signum(T)-T)*l;break;case e.first:case e.replace:y=d.scaleX,T=d.scaleY,d.scaleX=y+(Math.abs(_)*t.MathUtils.signum(y)-y)*l,d.scaleY=T+(Math.abs(p)*t.MathUtils.signum(T)-T)*l;break;case e.add:y=d.scaleX,T=d.scaleY,d.scaleX=y+(Math.abs(_)*t.MathUtils.signum(y)-d.data.scaleX)*l,d.scaleY=T+(Math.abs(p)*t.MathUtils.signum(T)-d.data.scaleY)*l}else switch(u){case e.setup:y=Math.abs(d.data.scaleX)*t.MathUtils.signum(_),T=Math.abs(d.data.scaleY)*t.MathUtils.signum(p),d.scaleX=y+(_-y)*l,d.scaleY=T+(p-T)*l;break;case e.first:case e.replace:y=Math.abs(d.scaleX)*t.MathUtils.signum(_),T=Math.abs(d.scaleY)*t.MathUtils.signum(p),d.scaleX=y+(_-y)*l,d.scaleY=T+(p-T)*l;break;case e.add:y=t.MathUtils.signum(_),T=t.MathUtils.signum(p),d.scaleX=Math.abs(d.scaleX)*y+(_-Math.abs(d.data.scaleX)*y)*l,d.scaleY=Math.abs(d.scaleY)*T+(p-Math.abs(d.data.scaleY)*T)*l}}}},o})(c);t.ScaleTimeline=l;var u=(function(t){function i(e){return t.call(this,e)||this}return s(i,t),i.prototype.getPropertyId=function(){return(n.shear<<24)+this.boneIndex},i.prototype.apply=function(t,n,s,a,o,c){var l=this.frames,u=t.bones[this.boneIndex];if(u.active)if(s=l[l.length-i.ENTRIES])h=l[l.length+i.PREV_X],f=l[l.length+i.PREV_Y];else{var d=r.binarySearch(l,s,i.ENTRIES);h=l[d+i.PREV_X],f=l[d+i.PREV_Y];var _=l[d],p=this.getCurvePercent(d/i.ENTRIES-1,1-(s-_)/(l[d+i.PREV_TIME]-_));h+=(l[d+i.X]-h)*p,f+=(l[d+i.Y]-f)*p}switch(c){case e.setup:u.shearX=u.data.shearX+h*o,u.shearY=u.data.shearY+f*o;break;case e.first:case e.replace:u.shearX+=(u.data.shearX+h-u.shearX)*o,u.shearY+=(u.data.shearY+f-u.shearY)*o;break;case e.add:u.shearX+=h*o,u.shearY+=f*o}}},i})(c);t.ShearTimeline=u;var h=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.color<<24)+this.slotIndex},a.prototype.setFrame=function(t,e,i,n,r,s){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.R]=i,this.frames[t+a.G]=n,this.frames[t+a.B]=r,this.frames[t+a.A]=s},a.prototype.apply=function(t,i,n,s,o,c){var l=t.slots[this.slotIndex];if(l.bone.active){var u=this.frames;if(n=u[u.length-a.ENTRIES]){var g=u.length;d=u[g+a.PREV_R],_=u[g+a.PREV_G],p=u[g+a.PREV_B],v=u[g+a.PREV_A]}else{var m=r.binarySearch(u,n,a.ENTRIES);d=u[m+a.PREV_R],_=u[m+a.PREV_G],p=u[m+a.PREV_B],v=u[m+a.PREV_A];var y=u[m],T=this.getCurvePercent(m/a.ENTRIES-1,1-(n-y)/(u[m+a.PREV_TIME]-y));d+=(u[m+a.R]-d)*T,_+=(u[m+a.G]-_)*T,p+=(u[m+a.B]-p)*T,v+=(u[m+a.A]-v)*T}1==o?l.color.set(d,_,p,v):(h=l.color,c==e.setup&&h.setFromColor(l.data.color),h.add((d-h.r)*o,(_-h.g)*o,(p-h.b)*o,(v-h.a)*o))}}},a.ENTRIES=5,a.PREV_TIME=-5,a.PREV_R=-4,a.PREV_G=-3,a.PREV_B=-2,a.PREV_A=-1,a.R=1,a.G=2,a.B=3,a.A=4,a})(a);t.ColorTimeline=h;var f=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.twoColor<<24)+this.slotIndex},a.prototype.setFrame=function(t,e,i,n,r,s,o,c,l){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.R]=i,this.frames[t+a.G]=n,this.frames[t+a.B]=r,this.frames[t+a.A]=s,this.frames[t+a.R2]=o,this.frames[t+a.G2]=c,this.frames[t+a.B2]=l},a.prototype.apply=function(t,i,n,s,o,c){var l=t.slots[this.slotIndex];if(l.bone.active){var u=this.frames;if(n=u[u.length-a.ENTRIES]){var A=u.length;p=u[A+a.PREV_R],v=u[A+a.PREV_G],g=u[A+a.PREV_B],m=u[A+a.PREV_A],y=u[A+a.PREV_R2],T=u[A+a.PREV_G2],E=u[A+a.PREV_B2]}else{var C=r.binarySearch(u,n,a.ENTRIES);p=u[C+a.PREV_R],v=u[C+a.PREV_G],g=u[C+a.PREV_B],m=u[C+a.PREV_A],y=u[C+a.PREV_R2],T=u[C+a.PREV_G2],E=u[C+a.PREV_B2];var x=u[C],b=this.getCurvePercent(C/a.ENTRIES-1,1-(n-x)/(u[C+a.PREV_TIME]-x));p+=(u[C+a.R]-p)*b,v+=(u[C+a.G]-v)*b,g+=(u[C+a.B]-g)*b,m+=(u[C+a.A]-m)*b,y+=(u[C+a.R2]-y)*b,T+=(u[C+a.G2]-T)*b,E+=(u[C+a.B2]-E)*b}1==o?(l.color.set(p,v,g,m),l.darkColor.set(y,T,E,1)):(h=l.color,f=l.darkColor,c==e.setup&&(h.setFromColor(l.data.color),f.setFromColor(l.data.darkColor)),h.add((p-h.r)*o,(v-h.g)*o,(g-h.b)*o,(m-h.a)*o),f.add((y-f.r)*o,(T-f.g)*o,(E-f.b)*o,0))}}},a.ENTRIES=8,a.PREV_TIME=-8,a.PREV_R=-7,a.PREV_G=-6,a.PREV_B=-5,a.PREV_A=-4,a.PREV_R2=-3,a.PREV_G2=-2,a.PREV_B2=-1,a.R=1,a.G=2,a.B=3,a.A=4,a.R2=5,a.G2=6,a.B2=7,a})(a);t.TwoColorTimeline=f;var d=(function(){function s(e){this.frames=t.Utils.newFloatArray(e),this.attachmentNames=new Array(e)}return s.prototype.getPropertyId=function(){return(n.attachment<<24)+this.slotIndex},s.prototype.getFrameCount=function(){return this.frames.length},s.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.attachmentNames[t]=i},s.prototype.apply=function(t,n,s,a,o,c,l){var u=t.slots[this.slotIndex];if(u.bone.active)if(l!=i.mixOut||c!=e.setup){var h=this.frames;if(s=h[h.length-1]?h.length-1:r.binarySearch(h,s,1)-1;var _=this.attachmentNames[d];t.slots[this.slotIndex].setAttachment(null==_?null:t.getAttachment(this.slotIndex,_))}}else{var p=u.data.attachmentName;u.setAttachment(null==p?null:t.getAttachment(this.slotIndex,p))}},s})();t.AttachmentTimeline=d;var _=null,p=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e),n.frameVertices=new Array(e),null==_&&(_=t.Utils.newFloatArray(64)),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.deform<<27)+ +this.attachment.id+this.slotIndex},a.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.frameVertices[t]=i},a.prototype.apply=function(i,n,s,a,o,c){var l=i.slots[this.slotIndex];if(l.bone.active){var u=l.getAttachment();if(u instanceof t.VertexAttachment&&u.deformAttachment==this.attachment){var h=l.deform;0==h.length&&(c=e.setup);var f=this.frameVertices,d=f[0].length,_=this.frames;if(s<_[0]){var p=u;switch(c){case e.setup:return void(h.length=0);case e.first:if(1==o){h.length=0;break}var v=t.Utils.setArraySize(h,d);if(null==p.bones)for(var g=p.vertices,m=0;m=_[_.length-1]){var T=f[_.length-1];if(1==o)if(c==e.add)if(null==(p=u).bones){g=p.vertices;for(var E=0;Ei)this.apply(t,e,Number.MAX_VALUE,n,s,a,o),e=-1;else if(e>=c[l-1])return;if(!(i0&&c[u-1]==h;)u--;for(;u=c[u];u++)n.push(this.events[u])}}},e})();t.EventTimeline=v;var g=(function(){function s(e){this.frames=t.Utils.newFloatArray(e),this.drawOrders=new Array(e)}return s.prototype.getPropertyId=function(){return n.drawOrder<<24},s.prototype.getFrameCount=function(){return this.frames.length},s.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.drawOrders[t]=i},s.prototype.apply=function(n,s,a,o,c,l,u){var h=n.drawOrder,f=n.slots;if(u!=i.mixOut||l!=e.setup){var d=this.frames;if(a=d[d.length-1]?d.length-1:r.binarySearch(d,a)-1;var p=this.drawOrders[_];if(null==p)t.Utils.arrayCopy(f,0,h,0,f.length);else for(var v=0,g=p.length;v=h[h.length-o.ENTRIES])l==e.setup?(f.mix=f.data.mix+(h[h.length+o.PREV_MIX]-f.data.mix)*c,f.softness=f.data.softness+(h[h.length+o.PREV_SOFTNESS]-f.data.softness)*c,u==i.mixOut?(f.bendDirection=f.data.bendDirection,f.compress=f.data.compress,f.stretch=f.data.stretch):(f.bendDirection=h[h.length+o.PREV_BEND_DIRECTION],f.compress=0!=h[h.length+o.PREV_COMPRESS],f.stretch=0!=h[h.length+o.PREV_STRETCH])):(f.mix+=(h[h.length+o.PREV_MIX]-f.mix)*c,f.softness+=(h[h.length+o.PREV_SOFTNESS]-f.softness)*c,u==i.mixIn&&(f.bendDirection=h[h.length+o.PREV_BEND_DIRECTION],f.compress=0!=h[h.length+o.PREV_COMPRESS],f.stretch=0!=h[h.length+o.PREV_STRETCH]));else{var d=r.binarySearch(h,s,o.ENTRIES),_=h[d+o.PREV_MIX],p=h[d+o.PREV_SOFTNESS],v=h[d],g=this.getCurvePercent(d/o.ENTRIES-1,1-(s-v)/(h[d+o.PREV_TIME]-v));l==e.setup?(f.mix=f.data.mix+(_+(h[d+o.MIX]-_)*g-f.data.mix)*c,f.softness=f.data.softness+(p+(h[d+o.SOFTNESS]-p)*g-f.data.softness)*c,u==i.mixOut?(f.bendDirection=f.data.bendDirection,f.compress=f.data.compress,f.stretch=f.data.stretch):(f.bendDirection=h[d+o.PREV_BEND_DIRECTION],f.compress=0!=h[d+o.PREV_COMPRESS],f.stretch=0!=h[d+o.PREV_STRETCH])):(f.mix+=(_+(h[d+o.MIX]-_)*g-f.mix)*c,f.softness+=(p+(h[d+o.SOFTNESS]-p)*g-f.softness)*c,u==i.mixIn&&(f.bendDirection=h[d+o.PREV_BEND_DIRECTION],f.compress=0!=h[d+o.PREV_COMPRESS],f.stretch=0!=h[d+o.PREV_STRETCH]))}},o.ENTRIES=6,o.PREV_TIME=-6,o.PREV_MIX=-5,o.PREV_SOFTNESS=-4,o.PREV_BEND_DIRECTION=-3,o.PREV_COMPRESS=-2,o.PREV_STRETCH=-1,o.MIX=1,o.SOFTNESS=2,o.BEND_DIRECTION=3,o.COMPRESS=4,o.STRETCH=5,o})(a);t.IkConstraintTimeline=m;var y=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.transformConstraint<<24)+this.transformConstraintIndex},a.prototype.setFrame=function(t,e,i,n,r,s){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.ROTATE]=i,this.frames[t+a.TRANSLATE]=n,this.frames[t+a.SCALE]=r,this.frames[t+a.SHEAR]=s},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.transformConstraints[this.transformConstraintIndex];if(u.active)if(n=l[l.length-a.ENTRIES]){var v=l.length;f=l[v+a.PREV_ROTATE],d=l[v+a.PREV_TRANSLATE],_=l[v+a.PREV_SCALE],p=l[v+a.PREV_SHEAR]}else{var g=r.binarySearch(l,n,a.ENTRIES);f=l[g+a.PREV_ROTATE],d=l[g+a.PREV_TRANSLATE],_=l[g+a.PREV_SCALE],p=l[g+a.PREV_SHEAR];var m=l[g],y=this.getCurvePercent(g/a.ENTRIES-1,1-(n-m)/(l[g+a.PREV_TIME]-m));f+=(l[g+a.ROTATE]-f)*y,d+=(l[g+a.TRANSLATE]-d)*y,_+=(l[g+a.SCALE]-_)*y,p+=(l[g+a.SHEAR]-p)*y}c==e.setup?(h=u.data,u.rotateMix=h.rotateMix+(f-h.rotateMix)*o,u.translateMix=h.translateMix+(d-h.translateMix)*o,u.scaleMix=h.scaleMix+(_-h.scaleMix)*o,u.shearMix=h.shearMix+(p-h.shearMix)*o):(u.rotateMix+=(f-u.rotateMix)*o,u.translateMix+=(d-u.translateMix)*o,u.scaleMix+=(_-u.scaleMix)*o,u.shearMix+=(p-u.shearMix)*o)}},a.ENTRIES=5,a.PREV_TIME=-5,a.PREV_ROTATE=-4,a.PREV_TRANSLATE=-3,a.PREV_SCALE=-2,a.PREV_SHEAR=-1,a.ROTATE=1,a.TRANSLATE=2,a.SCALE=3,a.SHEAR=4,a})(a);t.TransformConstraintTimeline=y;var T=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.pathConstraintPosition<<24)+this.pathConstraintIndex},a.prototype.setFrame=function(t,e,i){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.VALUE]=i},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.pathConstraints[this.pathConstraintIndex];if(u.active)if(n=l[l.length-a.ENTRIES])h=l[l.length+a.PREV_VALUE];else{var f=r.binarySearch(l,n,a.ENTRIES);h=l[f+a.PREV_VALUE];var d=l[f],_=this.getCurvePercent(f/a.ENTRIES-1,1-(n-d)/(l[f+a.PREV_TIME]-d));h+=(l[f+a.VALUE]-h)*_}c==e.setup?u.position=u.data.position+(h-u.data.position)*o:u.position+=(h-u.position)*o}},a.ENTRIES=2,a.PREV_TIME=-2,a.PREV_VALUE=-1,a.VALUE=1,a})(a);t.PathConstraintPositionTimeline=T;var E=(function(t){function i(e){return t.call(this,e)||this}return s(i,t),i.prototype.getPropertyId=function(){return(n.pathConstraintSpacing<<24)+this.pathConstraintIndex},i.prototype.apply=function(t,n,s,a,o,c){var l=this.frames,u=t.pathConstraints[this.pathConstraintIndex];if(u.active)if(s=l[l.length-i.ENTRIES])h=l[l.length+i.PREV_VALUE];else{var f=r.binarySearch(l,s,i.ENTRIES);h=l[f+i.PREV_VALUE];var d=l[f],_=this.getCurvePercent(f/i.ENTRIES-1,1-(s-d)/(l[f+i.PREV_TIME]-d));h+=(l[f+i.VALUE]-h)*_}c==e.setup?u.spacing=u.data.spacing+(h-u.data.spacing)*o:u.spacing+=(h-u.spacing)*o}},i})(T);t.PathConstraintSpacingTimeline=E;var A=(function(i){function a(e){var n=i.call(this,e)||this;return n.frames=t.Utils.newFloatArray(e*a.ENTRIES),n}return s(a,i),a.prototype.getPropertyId=function(){return(n.pathConstraintMix<<24)+this.pathConstraintIndex},a.prototype.setFrame=function(t,e,i,n){t*=a.ENTRIES,this.frames[t]=e,this.frames[t+a.ROTATE]=i,this.frames[t+a.TRANSLATE]=n},a.prototype.apply=function(t,i,n,s,o,c){var l=this.frames,u=t.pathConstraints[this.pathConstraintIndex];if(u.active)if(n=l[l.length-a.ENTRIES])h=l[l.length+a.PREV_ROTATE],f=l[l.length+a.PREV_TRANSLATE];else{var d=r.binarySearch(l,n,a.ENTRIES);h=l[d+a.PREV_ROTATE],f=l[d+a.PREV_TRANSLATE];var _=l[d],p=this.getCurvePercent(d/a.ENTRIES-1,1-(n-_)/(l[d+a.PREV_TIME]-_));h+=(l[d+a.ROTATE]-h)*p,f+=(l[d+a.TRANSLATE]-f)*p}c==e.setup?(u.rotateMix=u.data.rotateMix+(h-u.data.rotateMix)*o,u.translateMix=u.data.translateMix+(f-u.data.translateMix)*o):(u.rotateMix+=(h-u.rotateMix)*o,u.translateMix+=(f-u.translateMix)*o)}},a.ENTRIES=3,a.PREV_TIME=-3,a.PREV_ROTATE=-2,a.PREV_TRANSLATE=-1,a.ROTATE=1,a.TRANSLATE=2,a})(a);t.PathConstraintMixTimeline=A})(r||(r={})),(function(t){var e=(function(){function e(e){this.tracks=new Array,this.timeScale=1,this.events=new Array,this.listeners=new Array,this.queue=new r(this),this.propertyIDs=new t.IntSet,this.animationsChanged=!1,this.trackEntryPool=new t.Pool(function(){return new i}),this.data=e}return e.prototype.update=function(t){t*=this.timeScale;for(var e=this.tracks,i=0,n=e.length;i0){if(r.delay-=s,r.delay>0)continue;s=-r.delay,r.delay=0}var a=r.next;if(null!=a){var o=r.trackLast-a.delay;if(o>=0){for(a.delay=0,a.trackTime+=0==r.timeScale?0:(o/r.timeScale+t)*a.timeScale,r.trackTime+=s,this.setCurrent(i,a,!0);null!=a.mixingFrom;)a.mixTime+=t,a=a.mixingFrom;continue}}else if(r.trackLast>=r.trackEnd&&null==r.mixingFrom){e[i]=null,this.queue.end(r),this.disposeNext(r);continue}if(null!=r.mixingFrom&&this.updateMixingFrom(r,t)){var c=r.mixingFrom;for(r.mixingFrom=null,null!=c&&(c.mixingTo=null);null!=c;)this.queue.end(c),c=c.mixingFrom}r.trackTime+=s}}this.queue.drain()},e.prototype.updateMixingFrom=function(t,e){var i=t.mixingFrom;if(null==i)return!0;var n=this.updateMixingFrom(i,e);return i.animationLast=i.nextAnimationLast,i.trackLast=i.nextTrackLast,t.mixTime>0&&t.mixTime>=t.mixDuration?(0!=i.totalAlpha&&0!=t.mixDuration||(t.mixingFrom=i.mixingFrom,null!=i.mixingFrom&&(i.mixingFrom.mixingTo=t),t.interruptAlpha=i.interruptAlpha,this.queue.end(i)),n):(i.trackTime+=e*i.timeScale,t.mixTime+=e,!1)},e.prototype.apply=function(i){if(null==i)throw new Error("skeleton cannot be null.");this.animationsChanged&&this._animationsChanged();for(var n=this.events,r=this.tracks,s=!1,a=0,o=r.length;a0)){s=!0;var l=0==a?t.MixBlend.first:c.mixBlend,u=c.alpha;null!=c.mixingFrom?u*=this.applyMixingFrom(c,i,l):c.trackTime>=c.trackEnd&&null==c.next&&(u=0);var h=c.animationLast,f=c.getAnimationTime(),d=c.animation.timelines.length,_=c.animation.timelines;if(0==a&&1==u||l==t.MixBlend.add)for(var p=0;p1&&(a=1),r!=t.MixBlend.first&&(r=s.mixBlend));var o=a0&&this.queueEvents(s,h),this.events.length=0,s.nextAnimationLast=h,s.nextTrackLast=s.trackTime,a},e.prototype.applyRotateTimeline=function(e,i,n,r,s,a,o,c){if(c&&(a[o]=0),1!=r){var l=e,u=l.frames,h=i.bones[l.boneIndex];if(h.active){var f=0,d=0;if(n=u[u.length-t.RotateTimeline.ENTRIES])d=h.data.rotation+u[u.length+t.RotateTimeline.PREV_ROTATION];else{var _=t.Animation.binarySearch(u,n,t.RotateTimeline.ENTRIES),p=u[_+t.RotateTimeline.PREV_ROTATION],v=u[_],g=l.getCurvePercent((_>>1)-1,1-(n-v)/(u[_+t.RotateTimeline.PREV_TIME]-v));d=u[_+t.RotateTimeline.ROTATION]-p,d=p+(d-=360*(16384-(16384.499999999996-d/360|0)))*g+h.data.rotation,d-=360*(16384-(16384.499999999996-d/360|0))}var m=0,y=d-f;if(0==(y-=360*(16384-(16384.499999999996-y/360|0))))m=a[o];else{var T=0,E=0;c?(T=0,E=y):(T=a[o],E=a[o+1]);var A=y>0,C=T>=0;t.MathUtils.signum(E)!=t.MathUtils.signum(y)&&Math.abs(E)<=90&&(Math.abs(T)>180&&(T+=360*t.MathUtils.signum(T)),C=A),m=y+T-T%360,C!=A&&(m+=360*t.MathUtils.signum(T)),a[o]=m}a[o+1]=y,f+=m*r,h.rotation=f-360*(16384-(16384.499999999996-f/360|0))}}else e.apply(i,0,n,null,1,s,t.MixDirection.mixIn)},e.prototype.queueEvents=function(t,e){for(var i=t.animationStart,n=t.animationEnd,r=n-i,s=t.trackLast%r,a=this.events,o=0,c=a.length;on||this.queue.event(t,l)}for((t.loop?0==r||s>t.trackTime%r:e>=n&&t.animationLast=this.tracks.length)){var e=this.tracks[t];if(null!=e){this.queue.end(e),this.disposeNext(e);for(var i=e;;){var n=i.mixingFrom;if(null==n)break;this.queue.end(n),i.mixingFrom=null,i.mixingTo=null,i=n}this.tracks[e.trackIndex]=null,this.queue.drain()}}},e.prototype.setCurrent=function(t,e,i){var n=this.expandToIndex(t);this.tracks[t]=e,null!=n&&(i&&this.queue.interrupt(n),e.mixingFrom=n,n.mixingTo=e,e.mixTime=0,null!=n.mixingFrom&&n.mixDuration>0&&(e.interruptAlpha*=Math.min(1,n.mixTime/n.mixDuration)),n.timelinesRotation.length=0),this.queue.start(e)},e.prototype.setAnimation=function(t,e,i){var n=this.data.skeletonData.findAnimation(e);if(null==n)throw new Error("Animation not found: "+e);return this.setAnimationWith(t,n,i)},e.prototype.setAnimationWith=function(t,e,i){if(null==e)throw new Error("animation cannot be null.");var n=!0,r=this.expandToIndex(t);null!=r&&(-1==r.nextTrackLast?(this.tracks[t]=r.mixingFrom,this.queue.interrupt(r),this.queue.end(r),this.disposeNext(r),r=r.mixingFrom,n=!1):this.disposeNext(r));var s=this.trackEntry(t,e,i,r);return this.setCurrent(t,s,n),this.queue.drain(),s},e.prototype.addAnimation=function(t,e,i,n){var r=this.data.skeletonData.findAnimation(e);if(null==r)throw new Error("Animation not found: "+e);return this.addAnimationWith(t,r,i,n)},e.prototype.addAnimationWith=function(t,e,i,n){if(null==e)throw new Error("animation cannot be null.");var r=this.expandToIndex(t);if(null!=r)for(;null!=r.next;)r=r.next;var s=this.trackEntry(t,e,i,r);if(null==r)this.setCurrent(t,s,!0),this.queue.drain();else if(r.next=s,n<=0){var a=r.animationEnd-r.animationStart;0!=a?(r.loop?n+=a*(1+(r.trackTime/a|0)):n+=Math.max(a,r.trackTime),n-=this.data.getMix(r.animation,e)):n=r.trackTime}return s.delay=n,s},e.prototype.setEmptyAnimation=function(t,i){var n=this.setAnimationWith(t,e.emptyAnimation,!1);return n.mixDuration=i,n.trackEnd=i,n},e.prototype.addEmptyAnimation=function(t,i,n){n<=0&&(n-=i);var r=this.addAnimationWith(t,e.emptyAnimation,!1,n);return r.mixDuration=i,r.trackEnd=i,r},e.prototype.setEmptyAnimations=function(t){var e=this.queue.drainDisabled;this.queue.drainDisabled=!0;for(var i=0,n=this.tracks.length;i=0;e--)for(var n=this.tracks[e];null!=n;)this.computeNotLast(n),n=n.mixingFrom},e.prototype.computeHold=function(i){var n=i.mixingTo,r=i.animation.timelines,s=i.animation.timelines.length,a=t.Utils.setArraySize(i.timelineMode,s);i.timelineHoldMix.length=0;var o=t.Utils.setArraySize(i.timelineHoldMix,s),c=this.propertyIDs;if(null!=n&&n.holdPrevious)for(var l=0;l0){a[l]=e.HOLD_MIX,o[l]=f;continue t}break}a[l]=e.HOLD}else a[l]=e.SUBSEQUENT}},e.prototype.computeNotLast=function(i){for(var n=i.animation.timelines,r=i.animation.timelines.length,s=i.timelineMode,a=this.propertyIDs,o=0;o=this.tracks.length?null:this.tracks[t]},e.prototype.addListener=function(t){if(null==t)throw new Error("listener cannot be null.");this.listeners.push(t)},e.prototype.removeListener=function(t){var e=this.listeners.indexOf(t);e>=0&&this.listeners.splice(e,1)},e.prototype.clearListeners=function(){this.listeners.length=0},e.prototype.clearListenerNotifications=function(){this.queue.clear()},e.emptyAnimation=new t.Animation("",[],0),e.SUBSEQUENT=0,e.FIRST=1,e.HOLD=2,e.HOLD_MIX=3,e.NOT_LAST=4,e})();t.AnimationState=e;var i=(function(){function e(){this.mixBlend=t.MixBlend.replace,this.timelineMode=new Array,this.timelineHoldMix=new Array,this.timelinesRotation=new Array}return e.prototype.reset=function(){this.next=null,this.mixingFrom=null,this.mixingTo=null,this.animation=null,this.listener=null,this.timelineMode.length=0,this.timelineHoldMix.length=0,this.timelinesRotation.length=0},e.prototype.getAnimationTime=function(){if(this.loop){var t=this.animationEnd-this.animationStart;return 0==t?this.animationStart:this.trackTime%t+this.animationStart}return Math.min(this.trackTime+this.animationStart,this.animationEnd)},e.prototype.setAnimationLast=function(t){this.animationLast=t,this.nextAnimationLast=t},e.prototype.isComplete=function(){return this.trackTime>=this.animationEnd-this.animationStart},e.prototype.resetRotationDirections=function(){this.timelinesRotation.length=0},e})();t.TrackEntry=i;var n,r=(function(){function t(t){this.objects=[],this.drainDisabled=!1,this.animState=t}return t.prototype.start=function(t){this.objects.push(n.start),this.objects.push(t),this.animState.animationsChanged=!0},t.prototype.interrupt=function(t){this.objects.push(n.interrupt),this.objects.push(t)},t.prototype.end=function(t){this.objects.push(n.end),this.objects.push(t),this.animState.animationsChanged=!0},t.prototype.dispose=function(t){this.objects.push(n.dispose),this.objects.push(t)},t.prototype.complete=function(t){this.objects.push(n.complete),this.objects.push(t)},t.prototype.event=function(t,e){this.objects.push(n.event),this.objects.push(t),this.objects.push(e)},t.prototype.drain=function(){if(!this.drainDisabled){this.drainDisabled=!0;for(var t=this.objects,e=this.animState.listeners,i=0;i=0?i.substring(0,i.lastIndexOf("/")):"";i=this.pathPrefix+i,this.toLoad++,e.downloadText(i,(function(e){var o={count:0},c=new Array;try{new t.TextureAtlas(e,function(e){c.push(a+"/"+e);var i=document.createElement("img");return i.width=16,i.height=16,new t.FakeTexture(i)})}catch(d){var l=d;return s.errors[i]="Couldn't load texture atlas "+i+": "+l.message,r&&r(i,"Couldn't load texture atlas "+i+": "+l.message),s.toLoad--,void s.loaded++}for(var u=function(l){var u=!1;s.loadTexture(l,(function(l){if(o.count++,o.count==c.length)if(u)s.errors[i]="Couldn't load texture atlas page "+l+"} of atlas "+i,r&&r(i,"Couldn't load texture atlas page "+l+" of atlas "+i),s.toLoad--,s.loaded++;else try{var h=new t.TextureAtlas(e,function(t){return s.get(a+"/"+t)});s.assets[i]=h,n&&n(i,h),s.toLoad--,s.loaded++}catch(d){var f=d;s.errors[i]="Couldn't load texture atlas "+i+": "+f.message,r&&r(i,"Couldn't load texture atlas "+i+": "+f.message),s.toLoad--,s.loaded++}}),(function(t){u=!0,o.count++,o.count==c.length&&(s.errors[i]="Couldn't load texture atlas page "+t+"} of atlas "+i,r&&r(i,"Couldn't load texture atlas page "+t+" of atlas "+i),s.toLoad--,s.loaded++)}))},h=0,f=c;h0},e.prototype.getErrors=function(){return this.errors},e})();t.AssetManager=e})(r||(r={})),(function(t){var e=(function(){function e(t){this.atlas=t}return e.prototype.newRegionAttachment=function(e,i,n){var r=this.atlas.findRegion(n);if(null==r)return null;r.renderObject=r;var s=new t.RegionAttachment(i);return s.setRegion(r),s},e.prototype.newMeshAttachment=function(e,i,n){var r=this.atlas.findRegion(n);if(null==r)return null;r.renderObject=r;var s=new t.MeshAttachment(i);return s.region=r,s},e.prototype.newBoundingBoxAttachment=function(e,i){return new t.BoundingBoxAttachment(i)},e.prototype.newPathAttachment=function(e,i){return new t.PathAttachment(i)},e.prototype.newPointAttachment=function(e,i){return new t.PointAttachment(i)},e.prototype.newClippingAttachment=function(e,i){return new t.ClippingAttachment(i)},e})();t.AtlasAttachmentLoader=e})(r||(r={})),(function(t){(function(t){t[t.Normal=0]="Normal",t[t.Additive=1]="Additive",t[t.Multiply=2]="Multiply",t[t.Screen=3]="Screen"})(t.BlendMode||(t.BlendMode={}))})(r||(r={})),(function(t){var e=(function(){function e(t,e,i){if(this.children=new Array,this.x=0,this.y=0,this.rotation=0,this.scaleX=0,this.scaleY=0,this.shearX=0,this.shearY=0,this.ax=0,this.ay=0,this.arotation=0,this.ascaleX=0,this.ascaleY=0,this.ashearX=0,this.ashearY=0,this.appliedValid=!1,this.a=0,this.b=0,this.c=0,this.d=0,this.worldY=0,this.worldX=0,this.sorted=!1,this.active=!1,null==t)throw new Error("data cannot be null.");if(null==e)throw new Error("skeleton cannot be null.");this.data=t,this.skeleton=e,this.parent=i,this.setToSetupPose()}return e.prototype.isActive=function(){return this.active},e.prototype.update=function(){this.updateWorldTransformWith(this.x,this.y,this.rotation,this.scaleX,this.scaleY,this.shearX,this.shearY)},e.prototype.updateWorldTransform=function(){this.updateWorldTransformWith(this.x,this.y,this.rotation,this.scaleX,this.scaleY,this.shearX,this.shearY)},e.prototype.updateWorldTransformWith=function(e,i,n,r,s,a,o){this.ax=e,this.ay=i,this.arotation=n,this.ascaleX=r,this.ascaleY=s,this.ashearX=a,this.ashearY=o,this.appliedValid=!0;var c=this.parent;if(null==c){var l=this.skeleton,u=n+90+o,h=l.scaleX,f=l.scaleY;return this.a=t.MathUtils.cosDeg(n+a)*r*h,this.b=t.MathUtils.cosDeg(u)*s*h,this.c=t.MathUtils.sinDeg(n+a)*r*f,this.d=t.MathUtils.sinDeg(u)*s*f,this.worldX=e*h+l.x,void(this.worldY=i*f+l.y)}var d=c.a,_=c.b,p=c.c,v=c.d;switch(this.worldX=d*e+_*i+c.worldX,this.worldY=p*e+v*i+c.worldY,this.data.transformMode){case t.TransformMode.Normal:u=n+90+o;var g=t.MathUtils.cosDeg(n+a)*r,m=t.MathUtils.cosDeg(u)*s,y=t.MathUtils.sinDeg(n+a)*r,T=t.MathUtils.sinDeg(u)*s;return this.a=d*g+_*y,this.b=d*m+_*T,this.c=p*g+v*y,void(this.d=p*m+v*T);case t.TransformMode.OnlyTranslation:u=n+90+o,this.a=t.MathUtils.cosDeg(n+a)*r,this.b=t.MathUtils.cosDeg(u)*s,this.c=t.MathUtils.sinDeg(n+a)*r,this.d=t.MathUtils.sinDeg(u)*s;break;case t.TransformMode.NoRotationOrReflection:var E=0;(x=d*d+p*p)>1e-4?(_=p*(x=Math.abs(d*v-_*p)/x),v=d*x,E=Math.atan2(p,d)*t.MathUtils.radDeg):(d=0,p=0,E=90-Math.atan2(v,_)*t.MathUtils.radDeg);var A=n+a-E,C=n+o-E+90;g=t.MathUtils.cosDeg(A)*r,m=t.MathUtils.cosDeg(C)*s,y=t.MathUtils.sinDeg(A)*r,T=t.MathUtils.sinDeg(C)*s,this.a=d*g-_*y,this.b=d*m-_*T,this.c=p*g+v*y,this.d=p*m+v*T;break;case t.TransformMode.NoScale:case t.TransformMode.NoScaleOrReflection:var x,b=t.MathUtils.cosDeg(n),S=t.MathUtils.sinDeg(n),w=(d*b+_*S)/this.skeleton.scaleX,R=(p*b+v*S)/this.skeleton.scaleY;(x=Math.sqrt(w*w+R*R))>1e-5&&(x=1/x),w*=x,R*=x,x=Math.sqrt(w*w+R*R),this.data.transformMode==t.TransformMode.NoScale&&d*v-_*p<0!=(this.skeleton.scaleX<0!=this.skeleton.scaleY<0)&&(x=-x);var M=Math.PI/2+Math.atan2(R,w),I=Math.cos(M)*x,O=Math.sin(M)*x;g=t.MathUtils.cosDeg(a)*r,m=t.MathUtils.cosDeg(90+o)*s,y=t.MathUtils.sinDeg(a)*r,T=t.MathUtils.sinDeg(90+o)*s,this.a=w*g+I*y,this.b=w*m+I*T,this.c=R*g+O*y,this.d=R*m+O*T}this.a*=this.skeleton.scaleX,this.b*=this.skeleton.scaleX,this.c*=this.skeleton.scaleY,this.d*=this.skeleton.scaleY},e.prototype.setToSetupPose=function(){var t=this.data;this.x=t.x,this.y=t.y,this.rotation=t.rotation,this.scaleX=t.scaleX,this.scaleY=t.scaleY,this.shearX=t.shearX,this.shearY=t.shearY},e.prototype.getWorldRotationX=function(){return Math.atan2(this.c,this.a)*t.MathUtils.radDeg},e.prototype.getWorldRotationY=function(){return Math.atan2(this.d,this.b)*t.MathUtils.radDeg},e.prototype.getWorldScaleX=function(){return Math.sqrt(this.a*this.a+this.c*this.c)},e.prototype.getWorldScaleY=function(){return Math.sqrt(this.b*this.b+this.d*this.d)},e.prototype.updateAppliedTransform=function(){this.appliedValid=!0;var e=this.parent;if(null==e)return this.ax=this.worldX,this.ay=this.worldY,this.arotation=Math.atan2(this.c,this.a)*t.MathUtils.radDeg,this.ascaleX=Math.sqrt(this.a*this.a+this.c*this.c),this.ascaleY=Math.sqrt(this.b*this.b+this.d*this.d),this.ashearX=0,void(this.ashearY=Math.atan2(this.a*this.b+this.c*this.d,this.a*this.d-this.b*this.c)*t.MathUtils.radDeg);var i=e.a,n=e.b,r=e.c,s=e.d,a=1/(i*s-n*r),o=this.worldX-e.worldX,c=this.worldY-e.worldY;this.ax=o*s*a-c*n*a,this.ay=c*i*a-o*r*a;var l=a*s,u=a*i,h=a*n,f=a*r,d=l*this.a-h*this.c,_=l*this.b-h*this.d,p=u*this.c-f*this.a,v=u*this.d-f*this.b;if(this.ashearX=0,this.ascaleX=Math.sqrt(d*d+p*p),this.ascaleX>1e-4){var g=d*v-_*p;this.ascaleY=g/this.ascaleX,this.ashearY=Math.atan2(d*_+p*v,g)*t.MathUtils.radDeg,this.arotation=Math.atan2(p,d)*t.MathUtils.radDeg}else this.ascaleX=0,this.ascaleY=Math.sqrt(_*_+v*v),this.ashearY=0,this.arotation=90-Math.atan2(v,_)*t.MathUtils.radDeg},e.prototype.worldToLocal=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=1/(e*r-i*n),a=t.x-this.worldX,o=t.y-this.worldY;return t.x=a*r*s-o*i*s,t.y=o*e*s-a*n*s,t},e.prototype.localToWorld=function(t){var e=t.x,i=t.y;return t.x=e*this.a+i*this.b+this.worldX,t.y=e*this.c+i*this.d+this.worldY,t},e.prototype.worldToLocalRotation=function(e){var i=t.MathUtils.sinDeg(e),n=t.MathUtils.cosDeg(e);return Math.atan2(this.a*i-this.c*n,this.d*n-this.b*i)*t.MathUtils.radDeg+this.rotation-this.shearX},e.prototype.localToWorldRotation=function(e){e-=this.rotation-this.shearX;var i=t.MathUtils.sinDeg(e),n=t.MathUtils.cosDeg(e);return Math.atan2(n*this.c+i*this.d,n*this.a+i*this.b)*t.MathUtils.radDeg},e.prototype.rotateWorld=function(e){var i=this.a,n=this.b,r=this.c,s=this.d,a=t.MathUtils.cosDeg(e),o=t.MathUtils.sinDeg(e);this.a=a*i-o*r,this.b=a*n-o*s,this.c=o*i+a*r,this.d=o*n+a*s,this.appliedValid=!1},e})();t.Bone=e})(r||(r={})),(function(t){var e;t.BoneData=function(i,n,r){if(this.x=0,this.y=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.shearX=0,this.shearY=0,this.transformMode=e.Normal,this.skinRequired=!1,this.color=new t.Color,i<0)throw new Error("index must be >= 0.");if(null==n)throw new Error("name cannot be null.");this.index=i,this.name=n,this.parent=r},(function(t){t[t.Normal=0]="Normal",t[t.OnlyTranslation=1]="OnlyTranslation",t[t.NoRotationOrReflection=2]="NoRotationOrReflection",t[t.NoScale=3]="NoScale",t[t.NoScaleOrReflection=4]="NoScaleOrReflection"})(e=t.TransformMode||(t.TransformMode={}))})(r||(r={})),(function(t){t.ConstraintData=function(t,e,i){this.name=t,this.order=e,this.skinRequired=i}})(r||(r={})),(function(t){t.Event=function(t,e){if(null==e)throw new Error("data cannot be null.");this.time=t,this.data=e}})(r||(r={})),(function(t){t.EventData=function(t){this.name=t}})(r||(r={})),(function(t){var e=(function(){function e(t,e){if(this.bendDirection=0,this.compress=!1,this.stretch=!1,this.mix=1,this.softness=0,this.active=!1,null==t)throw new Error("data cannot be null.");if(null==e)throw new Error("skeleton cannot be null.");this.data=t,this.mix=t.mix,this.softness=t.softness,this.bendDirection=t.bendDirection,this.compress=t.compress,this.stretch=t.stretch,this.bones=new Array;for(var i=0;i180?_-=360:_<-180&&(_+=360);var p=e.ascaleX,v=e.ascaleY;if(r||s){var g=e.data.length*p,m=Math.sqrt(f*f+d*d);if(r&&mg&&g>1e-4){var y=(m/g-1)*o+1;p*=y,a&&(v*=y)}}e.updateWorldTransformWith(e.ax,e.ay,e.arotation+_*o,p,v,e.ashearX,e.ashearY)},e.prototype.apply2=function(e,i,n,r,s,a,o,c){if(0!=c){e.appliedValid||e.updateAppliedTransform(),i.appliedValid||i.updateAppliedTransform();var l=e.ax,u=e.ay,h=e.ascaleX,f=h,d=e.ascaleY,_=i.ascaleX,p=0,v=0,g=0;h<0?(h=-h,p=180,g=-1):(p=0,g=1),d<0&&(d=-d,g=-g),_<0?(_=-_,v=180):v=0;var m=i.ax,y=0,T=0,E=0,A=e.a,C=e.b,x=e.c,b=e.d,S=Math.abs(h-d)<=1e-4;S?(T=A*m+C*(y=i.ay)+e.worldX,E=x*m+b*y+e.worldY):(y=0,T=A*m+e.worldX,E=x*m+e.worldY);var w=e.parent;A=w.a,C=w.b,x=w.c;var R,M,I=1/(A*(b=w.d)-C*x),O=T-w.worldX,D=E-w.worldY,L=(O*b-D*C)*I-l,P=(D*A-O*x)*I-u,N=Math.sqrt(L*L+P*P),F=i.data.length*_;if(N<1e-4)return this.apply1(e,n,r,!1,a,!1,c),void i.updateWorldTransformWith(m,y,0,i.ascaleX,i.ascaleY,i.ashearX,i.ashearY);var B=((O=n-w.worldX)*b-(D=r-w.worldY)*C)*I-l,k=(D*A-O*x)*I-u,V=B*B+k*k;if(0!=o){o*=h*(_+1)/2;var U=Math.sqrt(V),z=U-N-F*h+o;if(z>0){var H=Math.min(1,z/(2*o))-1;V=(B-=(H=(z-o*(1-H*H))/U)*B)*B+(k-=H*k)*k}}t:if(S){var W=(V-N*N-(F*=h)*F)/(2*N*F);W<-1?W=-1:W>1&&(W=1,a&&(f*=(Math.sqrt(V)/(N+F)-1)*c+1)),M=Math.acos(W)*s,A=N+F*W,C=F*Math.sin(M),R=Math.atan2(k*A-B*C,B*A+k*C)}else{var G=(A=h*F)*A,Y=(C=d*F)*C,X=Math.atan2(k,B),j=-2*Y*N,q=Y-G;if((b=j*j-4*q*(x=Y*N*N+G*V-G*Y))>=0){var Z=Math.sqrt(b);j<0&&(Z=-Z);var K=(Z=-(j+Z)/2)/q,Q=x/Z,J=Math.abs(K)=-1&&x<=1&&(x=Math.acos(x),(b=(O=A*Math.cos(x)+N)*O+(D=C*Math.sin(x))*D)st&&(nt=x,st=b,rt=O,at=D)),V<=(et+st)/2?(R=X-Math.atan2(it*s,tt),M=$*s):(R=X-Math.atan2(at*s,rt),M=nt*s)}var ot=Math.atan2(y,m)*g,ct=e.arotation;(R=(R-ot)*t.MathUtils.radDeg+p-ct)>180?R-=360:R<-180&&(R+=360),e.updateWorldTransformWith(l,u,ct+R*c,f,e.ascaleY,0,0),ct=i.arotation,(M=((M+ot)*t.MathUtils.radDeg-i.ashearX)*g+v-ct)>180?M-=360:M<-180&&(M+=360),i.updateWorldTransformWith(m,y,ct+M*c,i.ascaleX,i.ascaleY,i.ashearX,i.ashearY)}else i.updateWorldTransform()},e})();t.IkConstraint=e})(r||(r={})),(function(t){var e=(function(t){function e(e){var i=t.call(this,e,0,!1)||this;return i.bones=new Array,i.bendDirection=1,i.compress=!1,i.stretch=!1,i.uniform=!1,i.mix=1,i.softness=0,i}return s(e,t),e})(t.ConstraintData);t.IkConstraintData=e})(r||(r={})),(function(t){var e=(function(){function e(t,e){if(this.position=0,this.spacing=0,this.rotateMix=0,this.translateMix=0,this.spaces=new Array,this.positions=new Array,this.world=new Array,this.curves=new Array,this.lengths=new Array,this.segments=new Array,this.active=!1,null==t)throw new Error("data cannot be null.");if(null==e)throw new Error("skeleton cannot be null.");this.data=t,this.bones=new Array;for(var i=0,n=t.bones.length;i0;if(r>0||s){var a=this.data,o=a.spacingMode==t.SpacingMode.Percent,c=a.rotateMode,l=c==t.RotateMode.Tangent,u=c==t.RotateMode.ChainScale,h=this.bones.length,f=l?h:h+1,d=this.bones,_=t.Utils.setArraySize(this.spaces,f),p=null,v=this.spacing;if(u||!o){u&&(p=t.Utils.setArraySize(this.lengths,h));for(var g=a.spacingMode==t.SpacingMode.Length,m=0,y=f-1;m0?t.MathUtils.degRad:-t.MathUtils.degRad),m=0;for(var I=3;mt.MathUtils.PI?U-=t.MathUtils.PI2:U<-t.MathUtils.PI&&(U+=t.MathUtils.PI2),U*=n,z=Math.cos(U),H=Math.sin(U),O.a=z*F-H*k,O.b=z*B-H*V,O.c=H*F+z*k,O.d=H*B+z*V}O.appliedValid=!1}}}},e.prototype.computeWorldPositions=function(i,n,r,s,a){var o=this.target,c=this.position,l=this.spaces,u=t.Utils.setArraySize(this.positions,3*n+2),h=null,f=i.closed,d=i.worldVerticesLength,_=d/6,p=e.NONE;if(!i.constantSpeed){var v=i.lengths,g=v[_-=f?1:2];if(s&&(c*=g),a)for(var m=1;mg){p!=e.AFTER&&(p=e.AFTER,i.computeWorldVertices(o,d-6,4,h,0,2)),this.addAfterPosition(E-g,h,0,u,y);continue}}for(;;T++){var A=v[T];if(!(E>A)){0==T?E/=A:E=(E-(Z=v[T-1]))/(A-Z);break}}T!=p&&(p=T,f&&T==_?(i.computeWorldVertices(o,d-4,4,h,0,2),i.computeWorldVertices(o,0,4,h,4,2)):i.computeWorldVertices(o,6*T+2,8,h,0,2)),this.addCurvePosition(E,h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],u,y,r||m>0&&0==Y)}return u}f?(d+=2,h=t.Utils.setArraySize(this.world,d),i.computeWorldVertices(o,2,d-4,h,0,2),i.computeWorldVertices(o,0,2,h,d-4,2),h[d-2]=h[0],h[d-1]=h[1]):(_--,d-=4,h=t.Utils.setArraySize(this.world,d),i.computeWorldVertices(o,2,d,h,0,2));for(var C=t.Utils.setArraySize(this.curves,_),x=0,b=h[0],S=h[1],w=0,R=0,M=0,I=0,O=0,D=0,L=0,P=0,N=0,F=0,B=0,k=0,V=0,U=0,z=(m=0,2);m<_;m++,z+=6)w=h[z],R=h[z+1],M=h[z+2],I=h[z+3],B=2*(L=.1875*(b-2*w+M))+(N=.09375*(3*(w-M)-b+(O=h[z+4]))),k=2*(P=.1875*(S-2*R+I))+(F=.09375*(3*(R-I)-S+(D=h[z+5]))),V=.75*(w-b)+L+.16666667*N,U=.75*(R-S)+P+.16666667*F,x+=Math.sqrt(V*V+U*U),V+=B,U+=k,B+=N,k+=F,x+=Math.sqrt(V*V+U*U),V+=B,U+=k,x+=Math.sqrt(V*V+U*U),V+=B+N,U+=k+F,x+=Math.sqrt(V*V+U*U),C[m]=x,b=O,S=D;if(c*=s?x:x/i.lengths[_-1],a)for(m=1;mx){this.addAfterPosition(E-x,h,d-4,u,y);continue}}for(;;T++){var X=C[T];if(!(E>X)){0==T?E/=X:E=(E-(Z=C[T-1]))/(X-Z);break}}if(T!=p){p=T;var j=6*T;for(b=h[j],S=h[j+1],w=h[j+2],R=h[j+3],M=h[j+4],I=h[j+5],B=2*(L=.03*(b-2*w+M))+(N=.006*(3*(w-M)-b+(O=h[j+6]))),k=2*(P=.03*(S-2*R+I))+(F=.006*(3*(R-I)-S+(D=h[j+7]))),V=.3*(w-b)+L+.16666667*N,U=.3*(R-S)+P+.16666667*F,W=Math.sqrt(V*V+U*U),H[0]=W,j=1;j<8;j++)V+=B,U+=k,B+=N,k+=F,W+=Math.sqrt(V*V+U*U),H[j]=W;V+=B,U+=k,W+=Math.sqrt(V*V+U*U),H[8]=W,V+=B+N,U+=k+F,W+=Math.sqrt(V*V+U*U),H[9]=W,G=0}for(E*=W;;G++){var q=H[G];if(!(E>q)){var Z;0==G?E/=q:E=G+(E-(Z=H[G-1]))/(q-Z);break}}this.addCurvePosition(.1*E,b,S,w,R,M,I,O,D,u,y,r||m>0&&0==Y)}return u},e.prototype.addBeforePosition=function(t,e,i,n,r){var s=e[i],a=e[i+1],o=e[i+2]-s,c=e[i+3]-a,l=Math.atan2(c,o);n[r]=s+t*Math.cos(l),n[r+1]=a+t*Math.sin(l),n[r+2]=l},e.prototype.addAfterPosition=function(t,e,i,n,r){var s=e[i+2],a=e[i+3],o=s-e[i],c=a-e[i+1],l=Math.atan2(c,o);n[r]=s+t*Math.cos(l),n[r+1]=a+t*Math.sin(l),n[r+2]=l},e.prototype.addCurvePosition=function(t,e,i,n,r,s,a,o,c,l,u,h){if(0==t||isNaN(t))return l[u]=e,l[u+1]=i,void(l[u+2]=Math.atan2(r-i,n-e));var f=t*t,d=f*t,_=1-t,p=_*_,v=p*_,g=_*t,m=3*g,y=_*m,T=m*t,E=e*v+n*y+s*T+o*d,A=i*v+r*y+a*T+c*d;l[u]=E,l[u+1]=A,h&&(l[u+2]=t<.001?Math.atan2(r-i,n-e):Math.atan2(A-(i*p+r*g*2+a*f),E-(e*p+n*g*2+s*f)))},e.NONE=-1,e.BEFORE=-2,e.AFTER=-3,e.epsilon=1e-5,e})();t.PathConstraint=e})(r||(r={})),(function(t){var e=(function(t){function e(e){var i=t.call(this,e,0,!1)||this;return i.bones=new Array,i}return s(e,t),e})(t.ConstraintData);t.PathConstraintData=e,(function(t){t[t.Fixed=0]="Fixed",t[t.Percent=1]="Percent"})(t.PositionMode||(t.PositionMode={})),(function(t){t[t.Length=0]="Length",t[t.Fixed=1]="Fixed",t[t.Percent=2]="Percent"})(t.SpacingMode||(t.SpacingMode={})),(function(t){t[t.Tangent=0]="Tangent",t[t.Chain=1]="Chain",t[t.ChainScale=2]="ChainScale"})(t.RotateMode||(t.RotateMode={}))})(r||(r={})),(function(t){var e=(function(){function t(t){this.toLoad=new Array,this.assets={},this.clientId=t}return t.prototype.loaded=function(){var t=0;for(var e in this.assets)t++;return t},t})(),i=(function(){function t(t){void 0===t&&(t=""),this.clientAssets={},this.queuedAssets={},this.rawAssets={},this.errors={},this.pathPrefix=t}return t.prototype.queueAsset=function(t,i,n){var r=this.clientAssets[t];return null==r&&(r=new e(t),this.clientAssets[t]=r),null!==i&&(r.textureLoader=i),r.toLoad.push(n),this.queuedAssets[n]!==n&&(this.queuedAssets[n]=n,!0)},t.prototype.loadText=function(t,e){var i=this;if(e=this.pathPrefix+e,this.queueAsset(t,null,e)){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&(n.status>=200&&n.status<300?i.rawAssets[e]=n.responseText:i.errors[e]="Couldn't load text "+e+": status "+n.status+", "+n.responseText)},n.open("GET",e,!0),n.send()}},t.prototype.loadJson=function(t,e){var i=this;if(e=this.pathPrefix+e,this.queueAsset(t,null,e)){var n=new XMLHttpRequest;n.onreadystatechange=function(){n.readyState==XMLHttpRequest.DONE&&(n.status>=200&&n.status<300?i.rawAssets[e]=JSON.parse(n.responseText):i.errors[e]="Couldn't load text "+e+": status "+n.status+", "+n.responseText)},n.open("GET",e,!0),n.send()}},t.prototype.loadTexture=function(t,e,i){var n=this;if(i=this.pathPrefix+i,this.queueAsset(t,e,i)){var r=new Image;r.src=i,r.crossOrigin="anonymous",r.onload=function(){n.rawAssets[i]=r},r.onerror=function(){n.errors[i]="Couldn't load image "+i}}},t.prototype.get=function(t,e){e=this.pathPrefix+e;var i=this.clientAssets[t];return null==i||i.assets[e]},t.prototype.updateClientAssets=function(t){for(var e=0;e0},t.prototype.getErrors=function(){return this.errors},t})();t.SharedAssetManager=i})(r||(r={})),(function(t){var e=(function(){function e(e){if(this._updateCache=new Array,this.updateCacheReset=new Array,this.time=0,this.scaleX=1,this.scaleY=1,this.x=0,this.y=0,null==e)throw new Error("data cannot be null.");this.data=e,this.bones=new Array;for(var i=0;i1){var s=n[n.length-1];this._updateCache.indexOf(s)>-1||this.updateCacheReset.push(s)}this._updateCache.push(e),this.sortReset(r.children),n[n.length-1].sorted=!0}},e.prototype.sortPathConstraint=function(e){if(e.active=e.target.bone.isActive()&&(!e.data.skinRequired||null!=this.skin&&t.Utils.contains(this.skin.constraints,e.data,!0)),e.active){var i=e.target,n=i.data.index,r=i.bone;null!=this.skin&&this.sortPathConstraintAttachment(this.skin,n,r),null!=this.data.defaultSkin&&this.data.defaultSkin!=this.skin&&this.sortPathConstraintAttachment(this.data.defaultSkin,n,r);for(var s=0,a=this.data.skins.length;s-1||this.updateCacheReset.push(s)}else for(r=0;r0){T=new t.DrawOrderTimeline(F);var B=r.slots.length;for(u=0;u=0;d--)V[d]=-1;var U=t.Utils.newArray(B-k,0),z=0,H=0;for(d=0;d=0;d--)-1==V[d]&&(V[d]=U[--H]);T.setFrame(u,m,V)}s.push(T),o=Math.max(o,T.frames[F-1])}var W=i.readInt(!0);if(W>0){for(T=new t.EventTimeline(W),u=0;u>>1^-(1&i)},t.prototype.readStringRef=function(){var t=this.readInt(!0);return 0==t?null:this.strings[t-1]},t.prototype.readString=function(){var t=this.readInt(!0);switch(t){case 0:return null;case 1:return""}t--;for(var e="",i=0;i>4){case 12:case 13:e+=String.fromCharCode((31&n)<<6|63&this.readByte()),i+=2;break;case 14:e+=String.fromCharCode((15&n)<<12|(63&this.readByte())<<6|63&this.readByte()),i+=3;break;default:e+=String.fromCharCode(n),i++}}return e},t.prototype.readFloat=function(){var t=this.buffer.getFloat32(this.index);return this.index+=4,t},t.prototype.readBoolean=function(){return 0!=this.readByte()},t})(),n=function(t,e,i,n,r){this.mesh=t,this.skin=e,this.slotIndex=i,this.parent=n,this.inheritDeform=r},r=function(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.bones=t,this.vertices=e}})(r||(r={})),(function(t){var e=(function(){function e(){this.minX=0,this.minY=0,this.maxX=0,this.maxY=0,this.boundingBoxes=new Array,this.polygons=new Array,this.polygonPool=new t.Pool(function(){return t.Utils.newFloatArray(16)})}return e.prototype.update=function(e,i){if(null==e)throw new Error("skeleton cannot be null.");var n=this.boundingBoxes,r=this.polygons,s=this.polygonPool,a=e.slots,o=a.length;n.length=0,s.freeAll(r),r.length=0;for(var c=0;c=this.minX&&t<=this.maxX&&e>=this.minY&&e<=this.maxY},e.prototype.aabbIntersectsSegment=function(t,e,i,n){var r=this.minX,s=this.minY,a=this.maxX,o=this.maxY;if(t<=r&&i<=r||e<=s&&n<=s||t>=a&&i>=a||e>=o&&n>=o)return!1;var c=(n-e)/(i-t),l=c*(r-t)+e;if(l>s&&ls&&lr&&ur&&ut.minX&&this.minYt.minY},e.prototype.containsPoint=function(t,e){for(var i=this.polygons,n=0,r=i.length;n=i||l=i){var u=n[o];u+(i-c)/(l-c)*(n[s]-u)=u&&y<=d||y>=d&&y<=u)&&(y>=e&&y<=n||y>=n&&y<=e)){var T=(l*g-c*p)/m;if((T>=h&&T<=_||T>=_&&T<=h)&&(T>=i&&T<=r||T>=r&&T<=i))return!0}u=d,h=_}return!1},e.prototype.getPolygon=function(t){if(null==t)throw new Error("boundingBox cannot be null.");var e=this.boundingBoxes.indexOf(t);return-1==e?null:this.polygons[e]},e.prototype.getWidth=function(){return this.maxX-this.minX},e.prototype.getHeight=function(){return this.maxY-this.minY},e})();t.SkeletonBounds=e})(r||(r={})),(function(t){var e=(function(){function e(){this.triangulator=new t.Triangulator,this.clippingPolygon=new Array,this.clipOutput=new Array,this.clippedVertices=new Array,this.clippedTriangles=new Array,this.scratch=new Array}return e.prototype.clipStart=function(i,n){if(null!=this.clipAttachment)return 0;this.clipAttachment=n;var r=n.worldVerticesLength,s=t.Utils.setArraySize(this.clippingPolygon,r);n.computeWorldVertices(i,0,r,s,0,2);var a=this.clippingPolygon;e.makeClockwise(a);for(var o=this.clippingPolygons=this.triangulator.decompose(a,this.triangulator.triangulate(a)),c=0,l=o.length;c>1,X=this.clipOutput,j=t.Utils.setArraySize(_,k+Y*m),q=0;q=2?(u=o,o=this.scratch):u=this.scratch,u.length=0,u.push(t),u.push(e),u.push(i),u.push(n),u.push(r),u.push(s),u.push(t),u.push(e),o.length=0;for(var h=a,f=a.length-4,d=0;;d+=2){for(var _=h[d],p=h[d+1],v=h[d+2],g=h[d+3],m=_-v,y=p-g,T=u,E=u.length-2,A=o.length,C=0;C0;if(m*(b-g)-y*(x-v)>0){if(R){o.push(S),o.push(w);continue}var M=(O=w-b)*(v-_)-(D=S-x)*(g-p);if(Math.abs(M)>1e-6){var I=(D*(p-b)-O*(_-x))/M;o.push(_+(v-_)*I),o.push(p+(g-p)*I)}else o.push(_),o.push(p)}else if(R){var O,D;M=(O=w-b)*(v-_)-(D=S-x)*(g-p),Math.abs(M)>1e-6?(I=(D*(p-b)-O*(_-x))/M,o.push(_+(v-_)*I),o.push(p+(g-p)*I)):(o.push(_),o.push(p)),o.push(S),o.push(w)}l=!0}if(A==o.length)return c.length=0,!0;if(o.push(o[0]),o.push(o[1]),d==f)break;var L=o;(o=u).length=0,u=L}if(c!=o){c.length=0,d=0;for(var P=o.length-2;d>1;o=0;f--)-1==X[f]&&(X[f]=q[--K])}T.setFrame(h++,this.getValue(Y,"time",0),X)}s.push(T),a=Math.max(a,T.frames[T.getFrameCount()-1])}if(e.events){for(T=new t.EventTimeline(e.events.length),h=0,f=0;f=n.length&&(n.length=t+1),n[t]||(n[t]={}),n[t][e]=i},i.prototype.addSkin=function(t){for(var e=0;e= 0.");if(null==i)throw new Error("name cannot be null.");if(null==n)throw new Error("boneData cannot be null.");this.index=e,this.name=i,this.boneData=n}})(r||(r={})),(function(t){var e,i,n=(function(){function t(t){this._image=t}return t.prototype.getImage=function(){return this._image},t.filterFromString=function(t){switch(t.toLowerCase()){case"nearest":return e.Nearest;case"linear":return e.Linear;case"mipmap":return e.MipMap;case"mipmapnearestnearest":return e.MipMapNearestNearest;case"mipmaplinearnearest":return e.MipMapLinearNearest;case"mipmapnearestlinear":return e.MipMapNearestLinear;case"mipmaplinearlinear":return e.MipMapLinearLinear;default:throw new Error("Unknown texture filter "+t)}},t.wrapFromString=function(t){switch(t.toLowerCase()){case"mirroredtepeat":return i.MirroredRepeat;case"clamptoedge":return i.ClampToEdge;case"repeat":return i.Repeat;default:throw new Error("Unknown texture wrap "+t)}},t})();t.Texture=n,(function(t){t[t.Nearest=9728]="Nearest",t[t.Linear=9729]="Linear",t[t.MipMap=9987]="MipMap",t[t.MipMapNearestNearest=9984]="MipMapNearestNearest",t[t.MipMapLinearNearest=9985]="MipMapLinearNearest",t[t.MipMapNearestLinear=9986]="MipMapNearestLinear",t[t.MipMapLinearLinear=9987]="MipMapLinearLinear"})(e=t.TextureFilter||(t.TextureFilter={})),(function(t){t[t.MirroredRepeat=33648]="MirroredRepeat",t[t.ClampToEdge=33071]="ClampToEdge",t[t.Repeat=10497]="Repeat"})(i=t.TextureWrap||(t.TextureWrap={}));t.TextureRegion=function(){this.u=0,this.v=0,this.u2=0,this.v2=0,this.width=0,this.height=0,this.rotate=!1,this.offsetX=0,this.offsetY=0,this.originalWidth=0,this.originalHeight=0};var r=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setFilters=function(){},e.prototype.setWraps=function(){},e.prototype.dispose=function(){},e})(n);t.FakeTexture=r})(r||(r={})),(function(t){var e=(function(){function e(t,e){this.pages=new Array,this.regions=new Array,this.load(t,e)}return e.prototype.load=function(e,s){if(null==s)throw new Error("textureLoader cannot be null.");for(var a=new i(e),o=new Array(4),c=null;;){var l=a.readLine();if(null==l)break;if(0==(l=l.trim()).length)c=null;else if(c){var u=new r;u.name=l,u.page=c;var h=a.readValue();"true"==h.toLocaleLowerCase()?u.degrees=90:"false"==h.toLocaleLowerCase()?u.degrees=0:u.degrees=parseFloat(h),u.rotate=90==u.degrees,a.readTuple(o);var f=parseInt(o[0]),d=parseInt(o[1]);a.readTuple(o);var _=parseInt(o[0]),p=parseInt(o[1]);u.u=f/c.width,u.v=d/c.height,u.rotate?(u.u2=(f+p)/c.width,u.v2=(d+_)/c.height):(u.u2=(f+_)/c.width,u.v2=(d+p)/c.height),u.x=f,u.y=d,u.width=Math.abs(_),u.height=Math.abs(p),4==a.readTuple(o)&&4==a.readTuple(o)&&a.readTuple(o),u.originalWidth=parseInt(o[0]),u.originalHeight=parseInt(o[1]),a.readTuple(o),u.offsetX=parseInt(o[0]),u.offsetY=parseInt(o[1]),u.index=parseInt(a.readValue()),u.texture=c.texture,this.regions.push(u)}else{(c=new n).name=l,2==a.readTuple(o)&&(c.width=parseInt(o[0]),c.height=parseInt(o[1]),a.readTuple(o)),a.readTuple(o),c.minFilter=t.Texture.filterFromString(o[0]),c.magFilter=t.Texture.filterFromString(o[1]);var v=a.readValue();c.uWrap=t.TextureWrap.ClampToEdge,c.vWrap=t.TextureWrap.ClampToEdge,"x"==v?c.uWrap=t.TextureWrap.Repeat:"y"==v?c.vWrap=t.TextureWrap.Repeat:"xy"==v&&(c.uWrap=c.vWrap=t.TextureWrap.Repeat),c.texture=s(l),c.texture.setFilters(c.minFilter,c.magFilter),c.texture.setWraps(c.uWrap,c.vWrap),c.width=c.texture.getImage().width,c.height=c.texture.getImage().height,this.pages.push(c)}}},e.prototype.findRegion=function(t){for(var e=0;e=this.lines.length?null:this.lines[this.index++]},t.prototype.readValue=function(){var t=this.readLine(),e=t.indexOf(":");if(-1==e)throw new Error("Invalid line: "+t);return t.substring(e+1).trim()},t.prototype.readTuple=function(t){var e=this.readLine(),i=e.indexOf(":");if(-1==i)throw new Error("Invalid line: "+e);for(var n=0,r=i+1;n<3;n++){var s=e.indexOf(",",r);if(-1==s)break;t[n]=e.substr(r,s-r).trim(),r=s+1}return t[n]=e.substring(r).trim(),n+1},t})(),n=function(){};t.TextureAtlasPage=n;var r=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e})(t.TextureRegion);t.TextureAtlasRegion=r})(r||(r={})),(function(t){var e=(function(){function e(e,i){if(this.rotateMix=0,this.translateMix=0,this.scaleMix=0,this.shearMix=0,this.temp=new t.Vector2,this.active=!1,null==e)throw new Error("data cannot be null.");if(null==i)throw new Error("skeleton cannot be null.");this.data=e,this.rotateMix=e.rotateMix,this.translateMix=e.translateMix,this.scaleMix=e.scaleMix,this.shearMix=e.shearMix,this.bones=new Array;for(var n=0;n0?t.MathUtils.degRad:-t.MathUtils.degRad,h=this.data.offsetRotation*u,f=this.data.offsetShearY*u,d=this.bones,_=0,p=d.length;_t.MathUtils.PI?w-=t.MathUtils.PI2:w<-t.MathUtils.PI&&(w+=t.MathUtils.PI2),w*=e;var A=Math.cos(w),C=Math.sin(w);v.a=A*m-C*T,v.b=A*y-C*E,v.c=C*m+A*T,v.d=C*y+A*E,g=!0}if(0!=i){var x=this.temp;s.localToWorld(x.set(this.data.offsetX,this.data.offsetY)),v.worldX+=(x.x-v.worldX)*i,v.worldY+=(x.y-v.worldY)*i,g=!0}if(n>0){var b=Math.sqrt(v.a*v.a+v.c*v.c),S=Math.sqrt(a*a+c*c);b>1e-5&&(b=(b+(S-b+this.data.offsetScaleX)*n)/b),v.a*=b,v.c*=b,b=Math.sqrt(v.b*v.b+v.d*v.d),S=Math.sqrt(o*o+l*l),b>1e-5&&(b=(b+(S-b+this.data.offsetScaleY)*n)/b),v.b*=b,v.d*=b,g=!0}if(r>0){y=v.b,E=v.d;var w,R=Math.atan2(E,y);(w=Math.atan2(l,o)-Math.atan2(c,a)-(R-Math.atan2(v.c,v.a)))>t.MathUtils.PI?w-=t.MathUtils.PI2:w<-t.MathUtils.PI&&(w+=t.MathUtils.PI2),w=R+(w+f)*r,b=Math.sqrt(y*y+E*E),v.b=Math.cos(w)*b,v.d=Math.sin(w)*b,g=!0}g&&(v.appliedValid=!1)}},e.prototype.applyRelativeWorld=function(){for(var e=this.rotateMix,i=this.translateMix,n=this.scaleMix,r=this.shearMix,s=this.target,a=s.a,o=s.b,c=s.c,l=s.d,u=a*l-o*c>0?t.MathUtils.degRad:-t.MathUtils.degRad,h=this.data.offsetRotation*u,f=this.data.offsetShearY*u,d=this.bones,_=0,p=d.length;_t.MathUtils.PI?v-=t.MathUtils.PI2:v<-t.MathUtils.PI&&(v+=t.MathUtils.PI2),v*=e;var C=Math.cos(v),x=Math.sin(v);g.a=C*y-x*E,g.b=C*T-x*A,g.c=x*y+C*E,g.d=x*T+C*A,m=!0}if(0!=i){var b=this.temp;s.localToWorld(b.set(this.data.offsetX,this.data.offsetY)),g.worldX+=b.x*i,g.worldY+=b.y*i,m=!0}if(n>0){var S=(Math.sqrt(a*a+c*c)-1+this.data.offsetScaleX)*n+1;g.a*=S,g.c*=S,S=(Math.sqrt(o*o+l*l)-1+this.data.offsetScaleY)*n+1,g.b*=S,g.d*=S,m=!0}if(r>0)(v=Math.atan2(l,o)-Math.atan2(c,a))>t.MathUtils.PI?v-=t.MathUtils.PI2:v<-t.MathUtils.PI&&(v+=t.MathUtils.PI2),T=g.b,A=g.d,v=Math.atan2(A,T)+(v-t.MathUtils.PI/2+f)*r,S=Math.sqrt(T*T+A*A),g.b=Math.cos(v)*S,g.d=Math.sin(v)*S,m=!0;m&&(g.appliedValid=!1)}},e.prototype.applyAbsoluteLocal=function(){var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,n=this.shearMix,r=this.target;r.appliedValid||r.updateAppliedTransform();for(var s=this.bones,a=0,o=s.length;a1e-5&&(d=(d+(r.ascaleX-d+this.data.offsetScaleX)*i)/d),_>1e-5&&(_=(_+(r.ascaleY-_+this.data.offsetScaleY)*i)/_));var p=c.ashearY;0!=n&&(u=r.ashearY-p+this.data.offsetShearY,u-=360*(16384-(16384.499999999996-u/360|0)),c.shearY+=u*n),c.updateWorldTransformWith(h,f,l,d,_,c.ashearX,p)}},e.prototype.applyRelativeLocal=function(){var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,n=this.shearMix,r=this.target;r.appliedValid||r.updateAppliedTransform();for(var s=this.bones,a=0,o=s.length;a1e-5&&(f*=(r.ascaleX-1+this.data.offsetScaleX)*i+1),d>1e-5&&(d*=(r.ascaleY-1+this.data.offsetScaleY)*i+1));var _=c.ashearY;0!=n&&(_+=(r.ashearY+this.data.offsetShearY)*n),c.updateWorldTransformWith(u,h,l,f,d,c.ashearX,_)}},e})();t.TransformConstraint=e})(r||(r={})),(function(t){var e=(function(t){function e(e){var i=t.call(this,e,0,!1)||this;return i.bones=new Array,i.rotateMix=0,i.translateMix=0,i.scaleMix=0,i.shearMix=0,i.offsetRotation=0,i.offsetX=0,i.offsetY=0,i.offsetScaleX=0,i.offsetScaleY=0,i.offsetShearY=0,i.relative=!1,i.local=!1,i}return s(e,t),e})(t.ConstraintData);t.TransformConstraintData=e})(r||(r={})),(function(t){var e=(function(){function e(){this.convexPolygons=new Array,this.convexPolygonsIndices=new Array,this.indicesArray=new Array,this.isConcaveArray=new Array,this.triangles=new Array,this.polygonPool=new t.Pool(function(){return new Array}),this.polygonIndicesPool=new t.Pool(function(){return new Array})}return e.prototype.triangulate=function(t){var i=t,n=t.length>>1,r=this.indicesArray;r.length=0;for(var s=0;s3;){for(var l=n-1,u=(s=0,1);;){t:if(!a[s]){for(var h=r[l]<<1,f=r[s]<<1,d=r[u]<<1,_=i[h],p=i[h+1],v=i[f],g=i[f+1],m=i[d],y=i[d+1],T=(u+1)%n;T!=l;T=(T+1)%n)if(a[T]){var E=r[T]<<1,A=i[E],C=i[E+1];if(e.positiveArea(m,y,_,p,A,C)&&e.positiveArea(_,p,v,g,A,C)&&e.positiveArea(v,g,m,y,A,C))break t}break}if(0==u){do{if(!a[s])break;s--}while(s>0);break}l=s,s=u,u=(u+1)%n}c.push(r[(n+s-1)%n]),c.push(r[s]),c.push(r[(s+1)%n]),r.splice(s,1),a.splice(s,1);var x=(--n+s-1)%n,b=s==n?0:s;a[x]=e.isConcave(x,n,i,r),a[b]=e.isConcave(b,n,i,r)}return 3==n&&(c.push(r[2]),c.push(r[0]),c.push(r[1])),c},e.prototype.decompose=function(t,i){var n=t,r=this.convexPolygons;this.polygonPool.freeAll(r),r.length=0;var s=this.convexPolygonsIndices;this.polygonIndicesPool.freeAll(s),s.length=0;var a=this.polygonIndicesPool.obtain();a.length=0;var o=this.polygonPool.obtain();o.length=0;for(var c=-1,l=0,u=0,h=i.length;u0?(r.push(o),s.push(a)):(this.polygonPool.free(o),this.polygonIndicesPool.free(a)),(o=this.polygonPool.obtain()).length=0,o.push(p),o.push(v),o.push(g),o.push(m),o.push(y),o.push(T),(a=this.polygonIndicesPool.obtain()).length=0,a.push(f),a.push(d),a.push(_),l=e.winding(p,v,g,m,y,T),c=f)}for(o.length>0&&(r.push(o),s.push(a)),u=0,h=r.length;u=0;u--)0==(o=r[u]).length&&(r.splice(u,1),this.polygonPool.free(o),a=s[u],s.splice(u,1),this.polygonIndicesPool.free(a));return r},e.isConcave=function(t,e,i,n){var r=n[(e+t-1)%e]<<1,s=n[t]<<1,a=n[(t+1)%e]<<1;return!this.positiveArea(i[r],i[r+1],i[s],i[s+1],i[a],i[a+1])},e.positiveArea=function(t,e,i,n,r,s){return t*(s-n)+i*(e-s)+r*(n-e)>=0},e.winding=function(t,e,i,n,r,s){var a=i-t,o=n-e;return r*o-s*a+a*e-t*o>=0?1:-1},e})();t.Triangulator=e})(r||(r={})),(function(t){var e=(function(){function t(){this.array=new Array}return t.prototype.add=function(t){var e=this.contains(t);return this.array[0|t]=0|t,!e},t.prototype.contains=function(t){return null!=this.array[0|t]},t.prototype.remove=function(t){this.array[0|t]=void 0},t.prototype.clear=function(){this.array.length=0},t})();t.IntSet=e;var i=(function(){function t(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),this.r=t,this.g=e,this.b=i,this.a=n}return t.prototype.set=function(t,e,i,n){return this.r=t,this.g=e,this.b=i,this.a=n,this.clamp(),this},t.prototype.setFromColor=function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this},t.prototype.setFromString=function(t){return t="#"==t.charAt(0)?t.substr(1):t,this.r=parseInt(t.substr(0,2),16)/255,this.g=parseInt(t.substr(2,2),16)/255,this.b=parseInt(t.substr(4,2),16)/255,this.a=(8!=t.length?255:parseInt(t.substr(6,2),16))/255,this},t.prototype.add=function(t,e,i,n){return this.r+=t,this.g+=e,this.b+=i,this.a+=n,this.clamp(),this},t.prototype.clamp=function(){return this.r<0?this.r=0:this.r>1&&(this.r=1),this.g<0?this.g=0:this.g>1&&(this.g=1),this.b<0?this.b=0:this.b>1&&(this.b=1),this.a<0?this.a=0:this.a>1&&(this.a=1),this},t.rgba8888ToColor=function(t,e){t.r=((4278190080&e)>>>24)/255,t.g=((16711680&e)>>>16)/255,t.b=((65280&e)>>>8)/255,t.a=(255&e)/255},t.rgb888ToColor=function(t,e){t.r=((16711680&e)>>>16)/255,t.g=((65280&e)>>>8)/255,t.b=(255&e)/255},t.WHITE=new t(1,1,1,1),t.RED=new t(1,0,0,1),t.GREEN=new t(0,1,0,1),t.BLUE=new t(0,0,1,1),t.MAGENTA=new t(1,0,1,1),t})();t.Color=i;var n=(function(){function t(){}return t.clamp=function(t,e,i){return ti?i:t},t.cosDeg=function(e){return Math.cos(e*t.degRad)},t.sinDeg=function(e){return Math.sin(e*t.degRad)},t.signum=function(t){return t>0?1:t<0?-1:0},t.toInt=function(t){return t>0?Math.floor(t):Math.ceil(t)},t.cbrt=function(t){var e=Math.pow(Math.abs(t),1/3);return t<0?-e:e},t.randomTriangular=function(e,i){return t.randomTriangularWith(e,i,.5*(e+i))},t.randomTriangularWith=function(t,e,i){var n=Math.random(),r=e-t;return n<=(i-t)/r?t+Math.sqrt(n*r*(i-t)):e-Math.sqrt((1-n)*r*(e-i))},t.PI=3.1415927,t.PI2=2*t.PI,t.radiansToDegrees=180/t.PI,t.radDeg=t.radiansToDegrees,t.degreesToRadians=t.PI/180,t.degRad=t.degreesToRadians,t})();t.MathUtils=n;var r=(function(){function t(){}return t.prototype.apply=function(t,e,i){return t+(e-t)*this.applyInternal(i)},t})();t.Interpolation=r;var a=(function(t){function e(e){var i=t.call(this)||this;return i.power=2,i.power=e,i}return s(e,t),e.prototype.applyInternal=function(t){return t<=.5?Math.pow(2*t,this.power)/2:Math.pow(2*(t-1),this.power)/(this.power%2==0?-2:2)+1},e})(r);t.Pow=a;var o=(function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.applyInternal=function(t){return Math.pow(t-1,this.power)*(this.power%2==0?-1:1)+1},e})(a);t.PowOut=o;var c=(function(){function t(){}return t.arrayCopy=function(t,e,i,n,r){for(var s=e,a=n;s=i?e:t.setArraySize(e,i,n)},t.newArray=function(t,e){for(var i=new Array(t),n=0;n0?this.items.pop():this.instantiator()},t.prototype.free=function(t){t.reset&&t.reset(),this.items.push(t)},t.prototype.freeAll=function(t){for(var e=0;ethis.maxDelta&&(this.delta=this.maxDelta),this.lastTime=t,this.frameCount++,this.frameTime>1&&(this.framesPerSecond=this.frameCount/this.frameTime,this.frameTime=0,this.frameCount=0)},t})();t.TimeKeeper=f;var d=(function(){function t(t){void 0===t&&(t=32),this.addedValues=0,this.lastValue=0,this.mean=0,this.dirty=!0,this.values=new Array(t)}return t.prototype.hasEnoughData=function(){return this.addedValues>=this.values.length},t.prototype.addValue=function(t){this.addedValuesthis.values.length-1&&(this.lastValue=0),this.dirty=!0},t.prototype.getMean=function(){if(this.hasEnoughData()){if(this.dirty){for(var t=0,e=0;e>1)*s;var a=t.bone.skeleton,o=t.deform,c=this.vertices,l=this.bones;if(null!=l){for(var u=0,h=0,f=0;f0&&(c=o);for(var T,E=(T=t.bone).worldX,A=T.worldY,C=T.a,x=T.b,b=T.c,S=T.d,w=e,R=r;R0&&(s[T-1].vfOffset=_),s.length=T,a.length=f;var o=y-1;if(o>=0)if(m>0){var c=r[o];c.indexCount=m,c.vfCount=6*g,c.vertexCount=g,r.length=y}else r.length=y-1;if(0!=r.length){var l=n.vertices,C=n.uintVert;(!l||l.length<_)&&(l=n.vertices=new Float32Array(_),C=n.uintVert=new Uint32Array(l.buffer));for(var x=0,b=0;x<_;)l[x++]=u[b++],l[x++]=u[b++],l[x++]=u[b++],l[x++]=u[b++],C[x++]=u[b++],C[x++]=u[b++];var S=n.indices;(!S||S.length>>0)+(b.b<<16)+(b.g<<8)+b.r,o=(S.a<<24>>>0)+(S.b<<16)+(S.g<<8)+S.r,E!==a||A!==o){var p=this._tempColors;E=a,A=o,T>0&&(p[T-1].vfOffset=_),p[T++]={fr:b.r,fg:b.g,fb:b.b,fa:b.a,dr:S.r,dg:S.g,db:S.b,da:S.a,vfOffset:0}}if(l.isClipping()){l.clipTriangles(u,C,h,x,u,b,S,!0,6,d,_,_+2);var v=l.clippedVertices,g=l.clippedTriangles;x=g.length,C=v.length/12*6;for(var m=0,y=d,w=g.length;m=0&&(m>0?((A=R[E]).indexCount=m,A.vertexCount=g,A.vfCount=6*g):y--),R[y]={tex:T,blendMode:b,indexCount:0,vertexCount:0,vfCount:0},y++,m=0,g=0),o?(a=w,C=24,x=6,i.computeWorldVertices(S.bone,u,_,6)):c&&(a=i.triangles,C=6*(i.worldVerticesLength>>1),x=a.length,i.computeWorldVertices(S,0,i.worldVerticesLength,u,_,6)),0!=C&&0!=x){for(var k=0,V=d,U=a.length;k0){for(var G=d,Y=d+x;G=n&&(t&&t.call(e,!0),t=null)},a=0;a0)&&this.textureNames&&this.textureNames.length>0)return t||cc.errorID(7507,this.name),null;var e=this._getAtlas(t);if(!e)return null;var i=new sp.spine.AtlasAttachmentLoader(e),n=null,r=null;return this.skeletonJson?(r=new sp.spine.SkeletonJson(i),n=this.skeletonJson):(r=new sp.spine.SkeletonBinary(i),n=new Uint8Array(this._nativeAsset)),r.scale=this.scale,this._skeletonCache=r.readSkeletonData(n),e.dispose(),this._skeletonCache},getSkinsEnum:!1,getAnimsEnum:!1,_getTexture:function(t){for(var e=this.textureNames,i=0;i>>0)+(rt<<16)+(nt<<8)+it,at=t.dr*$,ot=t.dg*tt,ct=t.db*et,y=((a?255:0)<<24>>>0)+(ct<<16)+(ot<<8)+at}function xt(t){return(t.a<<24>>>0)+(t.b<<16)+(t.g<<8)+t.r}var bt=(function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,s(e,i);var r=n.prototype;return r.updateRenderData=function(t){if(!t.isAnimationCached()){var e=t._skeleton;e&&e.updateWorldTransform()}},r.fillVertices=function(t,e,i,n,r){var s,c=ut._vData,l=ut._iData,h=ut._uintVData;if(F.a=i.a*e.a*t.a*g*255,o=a?F.a:255,U=_*e.r*t.r*o,z=p*e.g*t.g*o,H=v*e.b*t.b*o,F.r=U*i.r,F.g=z*i.g,F.b=H*i.b,null==r.darkColor?B.set(0,0,0,1):(B.r=r.darkColor.r*U,B.g=r.darkColor.g*z,B.b=r.darkColor.b*H),B.a=a?255:0,n.isClipping()){var f=c.subarray(gt+2);n.clipTriangles(c.subarray(gt),pt,l.subarray(Tt),yt,f,F,B,u,E);var d=new Float32Array(n.clippedVertices),T=n.clippedTriangles;if(yt=T.length,pt=d.length/A*E,s=ut.request(pt/E,yt),Tt=s.indiceOffset,mt=s.vertexOffset,gt=s.byteOffset>>2,c=ut._vData,l=ut._iData,h=ut._uintVData,l.set(T,Tt),_t)for(var C=0,x=d.length,b=gt;C>>0)+(d[S+4]<<16)+(d[S+3]<<8)+d[S+2],h[R+4]=m,u&&(y=(d[S+11]<<24>>>0)+(d[S+10]<<16)+(d[S+9]<<8)+d[S+8],h[R+5]=y)}else if(_t)for(var M=gt,I=gt+pt;M=0&&c==g.data.index&&(W=!0),W)if(l>=0&&l==g.data.index&&(W=!1),pt=0,yt=0,n=g.getAttachment())if(_=n instanceof x.RegionAttachment,p=n instanceof x.MeshAttachment,n instanceof x.ClippingAttachment)b.clipStart(g,n);else if(_||p)if(S=At(n.region.texture._texture,g.data.blendMode)){if((G||S.getHash()!==ht.material.getHash())&&(G=!1,ht._flush(),ht.node=ft,ht.material=S),_){if(o=O,pt=4*E,yt=6,v=ut.request(4,6),Tt=v.indiceOffset,mt=v.vertexOffset,gt=v.byteOffset>>2,e=ut._vData,i=ut._iData,n.computeWorldVertices(g.bone,e,gt,E),C&&h){C.strokeColor=D,C.moveTo(e[gt],e[gt+1]);for(var M=gt+E,I=gt+pt;M>1)*E,yt=o.length,v=ut.request(pt/E,yt),Tt=v.indiceOffset,mt=v.vertexOffset,gt=v.byteOffset>>2,e=ut._vData,i=ut._iData,n.computeWorldVertices(g,0,n.worldVerticesLength,e,gt,E),C&&d)){C.strokeColor=N;for(var F=0,B=o.length;F0){for(var tt=Tt,et=Tt+yt;tt>2,n=ut._vData,r=ut._iData,s=ut._uintVData;for(var b=Tt,S=Tt+yt;b=E&&(Ct(T=g[v++]),E=T.vfOffset),s[L]=m,s[L+1]=y}}}}},r.fillBuffers=function(t,e){var i=t.node;if(i._renderFlag|=b.FLAG_UPDATE_RENDER_DATA,t._skeleton){var n=i._color;_=n.r/255,p=n.g/255,v=n.b/255,g=n.a/255,u=t.useTint||t.isAnimationCached(),T=u?R:w,E=u?6:5,ft=t.node,ut=e.getBuffer("spine",T),ht=e,lt=t,G=!0,a=t.premultipliedAlpha,o=1,I=0,dt=!1,_t=t._effectDelegate&&t._effectDelegate._vertexEffect,(4294967295!==n._val||a)&&(dt=!0),u&&(I|=1);var r=void 0;lt.enableBatch&&(r=ft._worldMatrix,G=!1,I|=16),t.isAnimationCached()?this.cacheTraverse(r):(_t&&_t.begin(t._skeleton),this.realTimeTraverse(r),_t&&_t.end()),e.worldMatDirty++,t.attachUtil._syncAttachedNode(),ft=void 0,ut=void 0,ht=void 0,lt=void 0,_t=null}},r.postFillBuffers=function(t,e){e.worldMatDirty--},n})(r.default);i.default=bt,r.default.register(C,bt),e.exports=i.default}),{"../../cocos2d/core/renderer/assembler":189,"../../cocos2d/core/renderer/render-flow":193,"../../cocos2d/core/renderer/webgl/vertex-format":225,"./Skeleton":306,"./lib/spine":308}],313:[(function(t,e){"use strict";var i=function(){this.start=null,this.end=null,this.complete=null,this.event=null,this.interrupt=null,this.dispose=null};i.getListeners=function(t){return t.listener||(t.listener=new i),t.listener},e.exports=i}),{}],314:[(function(t,e){"use strict";var i=t("./lib/spine");sp.VertexEffectDelegate=cc.Class({name:"sp.VertexEffectDelegate",ctor:function(){this._vertexEffect=null,this._interpolation=null,this._effectType="none"},clear:function(){this._vertexEffect=null,this._interpolation=null,this._effectType="none"},initJitter:function(t,e){return this._effectType="jitter",this._vertexEffect=new i.JitterEffect(t,e),this._vertexEffect},initSwirlWithPow:function(t,e){return this._interpolation=new i.Pow(e),this._vertexEffect=new i.SwirlEffect(t,this._interpolation),this._vertexEffect},initSwirlWithPowOut:function(t,e){return this._interpolation=new i.PowOut(e),this._vertexEffect=new i.SwirlEffect(t,this._interpolation),this._vertexEffect},getJitterVertexEffect:function(){return this._vertexEffect},getSwirlVertexEffect:function(){return this._vertexEffect},getVertexEffect:function(){return this._vertexEffect},getEffectType:function(){return this._effectType}}),e.exports=sp.VertexEffectDelegate}),{"./lib/spine":308}],315:[(function(t,e){"use strict";var i="undefined"==typeof window?global:window;i.cc=i.cc||{},cc.internal=cc.internal||{},t("./predefine"),t("./polyfill/string"),t("./polyfill/misc"),t("./polyfill/array"),t("./polyfill/object"),t("./polyfill/array-buffer"),t("./polyfill/number"),t("./polyfill/typescript"),t("./cocos2d/core/predefine"),t("./cocos2d"),t("./extends"),e.exports=i.cc}),{"./cocos2d":263,"./cocos2d/core/predefine":186,"./extends":304,"./package":void 0,"./polyfill/array":317,"./polyfill/array-buffer":316,"./polyfill/misc":318,"./polyfill/number":319,"./polyfill/object":320,"./polyfill/string":321,"./polyfill/typescript":322,"./predefine":323}],316:[(function(){"use strict";if(!ArrayBuffer.isView){var t=Object.getPrototypeOf(Int8Array);ArrayBuffer.isView="function"==typeof t?function(e){return e instanceof t}:function(t){if("object"!=typeof t)return!1;var e=t.constructor;return e===Float64Array||e===Float32Array||e===Uint8Array||e===Uint32Array||e===Int8Array}}}),{}],317:[(function(){"use strict";Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.find||(Array.prototype.find=function(t){for(var e=this.length,i=0;i0?1:-1}),Math.log2||(Math.log2=function(t){return Math.log(t)*Math.LOG2E}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),!console.time){var t=window.performance||Date,e=Object.create(null);console.time=function(i){e[i]=t.now()},console.timeEnd=function(i){var n=e[i],r=t.now()-n;console.log(i+": "+r+"ms")}}}),{}],319:[(function(){"use strict";Number.parseFloat=Number.parseFloat||parseFloat,Number.parseInt=Number.parseInt||parseInt}),{}],320:[(function(){"use strict";Object.assign||(Object.assign=function(t,e){return cc.js.mixin(t,e)}),Object.getOwnPropertyDescriptors||(Object.getOwnPropertyDescriptors=function(t){var e={},i=Object.getOwnPropertyNames(t);Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t)));for(var n=0;nthis.length)&&(e=this.length),e-=t.length;var i=this.indexOf(t,e);return-1!==i&&i===e}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/,"")})}),{}],322:[(function(){"use strict";var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};window.__extends=function(e,i){function n(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)},window.__assign=Object.assign||function(t){for(var e,i=1,n=arguments.length;i=0;o--)(r=t[o])&&(a=(s<3?r(a):s>3?r(e,i,a):r(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a},window.__param=function(t,e){return function(i,n){e(i,n,t)}},window.__metadata=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},window.__awaiter=function(t,e,i,n){return new(i||(i=Promise))(function(r,s){function a(t){try{c(n.next(t))}catch(e){s(e)}}function o(t){try{c(n.throw(t))}catch(e){s(e)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof i?e:new i(function(t){t(e)})).then(a,o)}c((n=n.apply(t,e||[])).next())})},window.__generator=function(t,e){var i,n,r,s,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(t){return function(e){return c([t,e])}}function c(s){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},window.__read=function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,s=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=s.next()).done;)a.push(n.value)}catch(o){r={error:o}}finally{try{n&&!n.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return a},window.__spread=function(){for(var t=[],e=0;e1||o(t,e)})})}function o(t,e){try{(i=r[t](e)).value instanceof __await?Promise.resolve(i.value.v).then(c,l):u(s[0][2],i)}catch(n){u(s[0][3],n)}var i}function c(t){o("next",t)}function l(t){o("throw",t)}function u(t,e){t(e),s.shift(),s.length&&o(s[0][0],s[0][1])}},window.__asyncDelegator=function(t){var e,i;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,r){e[n]=t[n]?function(e){return(i=!i)?{value:__await(t[n](e)),done:"return"===n}:r?r(e):e}:r}},window.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(i){e[i]=t[i]&&function(e){return new Promise(function(n,s){r(n,s,(e=t[i](e)).done,e.value)})}}function r(t,e,i,n){Promise.resolve(n).then((function(e){t({value:e,done:i})}),e)}},window.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var e=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};window.__importStar=function(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&__createBinding(i,t,n);return e(i,t),i},window.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},window.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},window.__classPrivateFieldSet=function(t,e,i){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,i),i}}),{}],323:[(function(){"use strict";var t="undefined"==typeof window?global:window;function e(e,i){void 0===t[e]&&Object.defineProperty(t,e,{get:function(){var t;return"CC_WECHATGAMESUB"===e?t="cc.sys.platform === cc.sys.WECHAT_GAME_SUB":"CC_WECHATGAME"===e?t="cc.sys.platform === cc.sys.WECHAT_GAME":"CC_QQPLAY"===e&&(t="cc.sys.platform === cc.sys.QQ_PLAY"),cc.warnID(1400,e,t),i}})}function i(e){return"object"==typeof t[e]}(function(e,i){void 0===t[e]&&(t[e]=i)})("CC_BUILD",!1),t.CC_BUILD=!0,t.CC_DEV=!1,t.CC_DEBUG=!1,t.CC_JSB=!1,t.CC_NATIVERENDERER=!1,t.CC_SUPPORT_JIT=!0,t.CC_PHYSICS_BUILTIN=!1,t.CC_PHYSICS_CANNON=!1,t.CC_EDITOR=!1,t.CC_PREVIEW=!1,t.CC_TEST=!1,t.CC_RUNTIME=!1,t.CC_JSB=!1;var n=!(!i("wx")||!wx.getSharedCanvas),r=!(!i("wx")||!wx.getSystemInfoSync&&!wx.getSharedCanvas),s=i("bk");e("CC_WECHATGAMESUB",n),e("CC_WECHATGAME",r),e("CC_QQPLAY",s),t.CocosEngine=cc.ENGINE_VERSION="2.4.8"}),{}]},{},[315]); \ No newline at end of file diff --git a/build/FlyUp/favicon.ico b/build/FlyUp/favicon.8de18.ico similarity index 100% rename from build/FlyUp/favicon.ico rename to build/FlyUp/favicon.8de18.ico diff --git a/build/FlyUp/index.html b/build/FlyUp/index.html index d0882d7..9623810 100644 --- a/build/FlyUp/index.html +++ b/build/FlyUp/index.html @@ -40,8 +40,8 @@ - - + +