1 line
2.2 MiB
1 line
2.2 MiB
var Deserializers={"UnityEngine.JointSpring":function(e,t,n){var i=n||e.c("UnityEngine.JointSpring"),r=t;return i.spring=r[0],i.damper=r[1],i.targetPosition=r[2],i},"UnityEngine.JointMotor":function(e,t,n){var i=n||e.c("UnityEngine.JointMotor"),r=t;return i.m_TargetVelocity=r[0],i.m_Force=r[1],i.m_FreeSpin=r[2],i},"UnityEngine.JointLimits":function(e,t,n){var i=n||e.c("UnityEngine.JointLimits"),r=t;return i.m_Min=r[0],i.m_Max=r[1],i.m_Bounciness=r[2],i.m_BounceMinVelocity=r[3],i.m_ContactDistance=r[4],i.minBounce=r[5],i.maxBounce=r[6],i},"UnityEngine.JointDrive":function(e,t,n){var i=n||e.c("UnityEngine.JointDrive"),r=t;return i.m_PositionSpring=r[0],i.m_PositionDamper=r[1],i.m_MaximumForce=r[2],i},"UnityEngine.SoftJointLimitSpring":function(e,t,n){var i=n||e.c("UnityEngine.SoftJointLimitSpring"),r=t;return i.m_Spring=r[0],i.m_Damper=r[1],i},"UnityEngine.SoftJointLimit":function(e,t,n){var i=n||e.c("UnityEngine.SoftJointLimit"),r=t;return i.m_Limit=r[0],i.m_Bounciness=r[1],i.m_ContactDistance=r[2],i},"UnityEngine.WheelFrictionCurve":function(e,t,n){var i=n||e.c("UnityEngine.WheelFrictionCurve"),r=t;return i.m_ExtremumSlip=r[0],i.m_ExtremumValue=r[1],i.m_AsymptoteSlip=r[2],i.m_AsymptoteValue=r[3],i.m_Stiffness=r[4],i},"UnityEngine.JointAngleLimits2D":function(e,t,n){var i=n||e.c("UnityEngine.JointAngleLimits2D"),r=t;return i.m_LowerAngle=r[0],i.m_UpperAngle=r[1],i},"UnityEngine.JointMotor2D":function(e,t,n){var i=n||e.c("UnityEngine.JointMotor2D"),r=t;return i.m_MotorSpeed=r[0],i.m_MaximumMotorTorque=r[1],i},"UnityEngine.JointSuspension2D":function(e,t,n){var i=n||e.c("UnityEngine.JointSuspension2D"),r=t;return i.m_DampingRatio=r[0],i.m_Frequency=r[1],i.m_Angle=r[2],i},"UnityEngine.JointTranslationLimits2D":function(e,t,n){var i=n||e.c("UnityEngine.JointTranslationLimits2D"),r=t;return i.m_LowerTranslation=r[0],i.m_UpperTranslation=r[1],i},"Luna.Unity.DTO.UnityEngine.Components.RectTransform":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Components.RectTransform"),r=t;return i.pivot=new pc.Vec2(r[0],r[1]),i.anchorMin=new pc.Vec2(r[2],r[3]),i.anchorMax=new pc.Vec2(r[4],r[5]),i.sizeDelta=new pc.Vec2(r[6],r[7]),i.anchoredPosition3D=new pc.Vec3(r[8],r[9],r[10]),i.rotation=new pc.Quat(r[11],r[12],r[13],r[14]),i.scale=new pc.Vec3(r[15],r[16],r[17]),i},"Luna.Unity.DTO.UnityEngine.Components.CanvasRenderer":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Components.CanvasRenderer"),r=t;return i.cullTransparentMesh=!!r[0],i},"GuruClient.Patche":function(e,t,n){var i=n||e.c("GuruClient.Patche"),r=t;return e.r(r[0],r[1],0,i,"imgBody"),i},"UnityEngine.UI.Image":function(e,t,n){var i=n||e.c("UnityEngine.UI.Image"),r=t;return e.r(r[0],r[1],0,i,"m_Sprite"),i.m_Type=r[2],i.m_PreserveAspect=!!r[3],i.m_FillCenter=!!r[4],i.m_FillMethod=r[5],i.m_FillAmount=r[6],i.m_FillClockwise=!!r[7],i.m_FillOrigin=r[8],i.m_UseSpriteMesh=!!r[9],i.m_PixelsPerUnitMultiplier=r[10],e.r(r[11],r[12],0,i,"m_Material"),i.m_Maskable=!!r[13],i.m_Color=new pc.Color(r[14],r[15],r[16],r[17]),i.m_RaycastTarget=!!r[18],i.m_RaycastPadding=new pc.Vec4(r[19],r[20],r[21],r[22]),i},"Luna.Unity.DTO.UnityEngine.Scene.GameObject":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Scene.GameObject"),r=t;return i.name=r[0],i.tagId=r[1],i.enabled=!!r[2],i.isStatic=!!r[3],i.layer=r[4],i},"GuruClient.UIGameView":function(e,t,n){var i=n||e.c("GuruClient.UIGameView"),r=t;return e.r(r[0],r[1],0,i,"patchesScrollView"),e.r(r[2],r[3],0,i,"sldLevelProgress"),e.r(r[4],r[5],0,i,"tipsFinger"),e.r(r[6],r[7],0,i,"sr"),e.r(r[8],r[9],0,i,"txtProgress"),e.r(r[10],r[11],0,i,"patchTemplate"),e.r(r[12],r[13],0,i,"puzzleWhole"),e.r(r[14],r[15],0,i,"puzzleBaseImg"),e.r(r[16],r[17],0,i,"puzzleBaseImgLines"),e.r(r[18],r[19],0,i,"patchesPool"),e.r(r[20],r[21],0,i,"btnBack"),e.r(r[22],r[23],0,i,"btnTips"),e.r(r[24],r[25],0,i,"btnDebugDrag"),e.r(r[26],r[27],0,i,"noiseTexture"),e.r(r[28],r[29],0,i,"objStageWinFx"),e.r(r[30],r[31],0,i,"objDotProgress"),i},"UnityEngine.UI.Button":function(e,t,n){var i=n||e.c("UnityEngine.UI.Button"),r=t;return i.m_OnClick=e.d("UnityEngine.UI.Button+ButtonClickedEvent",r[0],i.m_OnClick),i.m_Navigation=e.d("UnityEngine.UI.Navigation",r[1],i.m_Navigation),i.m_Transition=r[2],i.m_Colors=e.d("UnityEngine.UI.ColorBlock",r[3],i.m_Colors),i.m_SpriteState=e.d("UnityEngine.UI.SpriteState",r[4],i.m_SpriteState),i.m_AnimationTriggers=e.d("UnityEngine.UI.AnimationTriggers",r[5],i.m_AnimationTriggers),i.m_Interactable=!!r[6],e.r(r[7],r[8],0,i,"m_TargetGraphic"),i},"UnityEngine.UI.Button+ButtonClickedEvent":function(e,t,n){var i=n||e.c("UnityEngine.UI.Button+ButtonClickedEvent"),r=t;return i.m_PersistentCalls=e.d("UnityEngine.Events.PersistentCallGroup",r[0],i.m_PersistentCalls),i},"UnityEngine.Events.PersistentCallGroup":function(e,t,n){for(var i=n||e.c("UnityEngine.Events.PersistentCallGroup"),r=t[0],s=new(System.Collections.Generic.List$1(Bridge.ns("UnityEngine.Events.PersistentCall"))),a=0;a<r.length;a+=1)s.add(e.d("UnityEngine.Events.PersistentCall",r[a+0]));return i.m_Calls=s,i},"UnityEngine.Events.PersistentCall":function(e,t,n){var i=n||e.c("UnityEngine.Events.PersistentCall"),r=t;return e.r(r[0],r[1],0,i,"m_Target"),i.m_TargetAssemblyTypeName=r[2],i.m_MethodName=r[3],i.m_Mode=r[4],i.m_Arguments=e.d("UnityEngine.Events.ArgumentCache",r[5],i.m_Arguments),i.m_CallState=r[6],i},"UnityEngine.UI.Navigation":function(e,t,n){var i=n||e.c("UnityEngine.UI.Navigation"),r=t;return i.m_Mode=r[0],i.m_WrapAround=!!r[1],e.r(r[2],r[3],0,i,"m_SelectOnUp"),e.r(r[4],r[5],0,i,"m_SelectOnDown"),e.r(r[6],r[7],0,i,"m_SelectOnLeft"),e.r(r[8],r[9],0,i,"m_SelectOnRight"),i},"UnityEngine.UI.ColorBlock":function(e,t,n){var i=n||e.c("UnityEngine.UI.ColorBlock"),r=t;return i.m_NormalColor=new pc.Color(r[0],r[1],r[2],r[3]),i.m_HighlightedColor=new pc.Color(r[4],r[5],r[6],r[7]),i.m_PressedColor=new pc.Color(r[8],r[9],r[10],r[11]),i.m_SelectedColor=new pc.Color(r[12],r[13],r[14],r[15]),i.m_DisabledColor=new pc.Color(r[16],r[17],r[18],r[19]),i.m_ColorMultiplier=r[20],i.m_FadeDuration=r[21],i},"UnityEngine.UI.SpriteState":function(e,t,n){var i=n||e.c("UnityEngine.UI.SpriteState"),r=t;return e.r(r[0],r[1],0,i,"m_HighlightedSprite"),e.r(r[2],r[3],0,i,"m_PressedSprite"),e.r(r[4],r[5],0,i,"m_SelectedSprite"),e.r(r[6],r[7],0,i,"m_DisabledSprite"),i},"UnityEngine.UI.AnimationTriggers":function(e,t,n){var i=n||e.c("UnityEngine.UI.AnimationTriggers"),r=t;return i.m_NormalTrigger=r[0],i.m_HighlightedTrigger=r[1],i.m_PressedTrigger=r[2],i.m_SelectedTrigger=r[3],i.m_DisabledTrigger=r[4],i},"UnityEngine.UI.HorizontalLayoutGroup":function(e,t,n){var i=n||e.c("UnityEngine.UI.HorizontalLayoutGroup"),r=t;return i.m_Spacing=r[0],i.m_ChildForceExpandWidth=!!r[1],i.m_ChildForceExpandHeight=!!r[2],i.m_ChildControlWidth=!!r[3],i.m_ChildControlHeight=!!r[4],i.m_ChildScaleWidth=!!r[5],i.m_ChildScaleHeight=!!r[6],i.m_ReverseArrangement=!!r[7],i.m_Padding=UnityEngine.RectOffset.FromPaddings(r[8],r[9],r[10],r[11]),i.m_ChildAlignment=r[12],i},"UnityEngine.UI.ContentSizeFitter":function(e,t,n){var i=n||e.c("UnityEngine.UI.ContentSizeFitter"),r=t;return i.m_HorizontalFit=r[0],i.m_VerticalFit=r[1],i},"UnityEngine.UI.LayoutElement":function(e,t,n){var i=n||e.c("UnityEngine.UI.LayoutElement"),r=t;return i.m_IgnoreLayout=!!r[0],i.m_MinWidth=r[1],i.m_MinHeight=r[2],i.m_PreferredWidth=r[3],i.m_PreferredHeight=r[4],i.m_FlexibleWidth=r[5],i.m_FlexibleHeight=r[6],i.m_LayoutPriority=r[7],i},"UnityEngine.UI.Text":function(e,t,n){var i=n||e.c("UnityEngine.UI.Text"),r=t;return i.m_FontData=e.d("UnityEngine.UI.FontData",r[0],i.m_FontData),i.m_Text=r[1],e.r(r[2],r[3],0,i,"m_Material"),i.m_Maskable=!!r[4],i.m_Color=new pc.Color(r[5],r[6],r[7],r[8]),i.m_RaycastTarget=!!r[9],i.m_RaycastPadding=new pc.Vec4(r[10],r[11],r[12],r[13]),i},"UnityEngine.UI.FontData":function(e,t,n){var i=n||e.c("UnityEngine.UI.FontData"),r=t;return e.r(r[0],r[1],0,i,"m_Font"),i.m_FontSize=r[2],i.m_FontStyle=r[3],i.m_BestFit=!!r[4],i.m_MinSize=r[5],i.m_MaxSize=r[6],i.m_Alignment=r[7],i.m_AlignByGeometry=!!r[8],i.m_RichText=!!r[9],i.m_HorizontalOverflow=r[10],i.m_VerticalOverflow=r[11],i.m_LineSpacing=r[12],i},"UnityEngine.UI.Slider":function(e,t,n){var i=n||e.c("UnityEngine.UI.Slider"),r=t;return e.r(r[0],r[1],0,i,"m_FillRect"),e.r(r[2],r[3],0,i,"m_HandleRect"),i.m_Direction=r[4],i.m_MinValue=r[5],i.m_MaxValue=r[6],i.m_WholeNumbers=!!r[7],i.m_Value=r[8],i.m_OnValueChanged=e.d("UnityEngine.UI.Slider+SliderEvent",r[9],i.m_OnValueChanged),i.m_Navigation=e.d("UnityEngine.UI.Navigation",r[10],i.m_Navigation),i.m_Transition=r[11],i.m_Colors=e.d("UnityEngine.UI.ColorBlock",r[12],i.m_Colors),i.m_SpriteState=e.d("UnityEngine.UI.SpriteState",r[13],i.m_SpriteState),i.m_AnimationTriggers=e.d("UnityEngine.UI.AnimationTriggers",r[14],i.m_AnimationTriggers),i.m_Interactable=!!r[15],e.r(r[16],r[17],0,i,"m_TargetGraphic"),i},"UnityEngine.UI.Slider+SliderEvent":function(e,t,n){var i=n||e.c("UnityEngine.UI.Slider+SliderEvent"),r=t;return i.m_PersistentCalls=e.d("UnityEngine.Events.PersistentCallGroup",r[0],i.m_PersistentCalls),i},"GuruClient.GuruScrollRect":function(e,t,n){var i=n||e.c("GuruClient.GuruScrollRect"),r=t;return e.r(r[0],r[1],0,i,"m_Content"),i.m_Horizontal=!!r[2],i.m_Vertical=!!r[3],i.m_MovementType=r[4],i.m_Elasticity=r[5],i.m_Inertia=!!r[6],i.m_DecelerationRate=r[7],i.m_ScrollSensitivity=r[8],e.r(r[9],r[10],0,i,"m_Viewport"),e.r(r[11],r[12],0,i,"m_HorizontalScrollbar"),e.r(r[13],r[14],0,i,"m_VerticalScrollbar"),i.m_HorizontalScrollbarVisibility=r[15],i.m_VerticalScrollbarVisibility=r[16],i.m_HorizontalScrollbarSpacing=r[17],i.m_VerticalScrollbarSpacing=r[18],i.m_OnValueChanged=e.d("UnityEngine.UI.ScrollRect+ScrollRectEvent",r[19],i.m_OnValueChanged),i},"UnityEngine.UI.ScrollRect+ScrollRectEvent":function(e,t,n){var i=n||e.c("UnityEngine.UI.ScrollRect+ScrollRectEvent"),r=t;return i.m_PersistentCalls=e.d("UnityEngine.Events.PersistentCallGroup",r[0],i.m_PersistentCalls),i},"Luna.Unity.DTO.UnityEngine.Textures.Texture2D":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Textures.Texture2D"),r=t;return i.name=r[0],i.width=r[1],i.height=r[2],i.mipmapCount=r[3],i.anisoLevel=r[4],i.filterMode=r[5],i.hdr=!!r[6],i.format=r[7],i.wrapMode=r[8],i.alphaIsTransparency=!!r[9],i.alphaSource=r[10],i},"Luna.Unity.DTO.UnityEngine.Assets.Material":function(e,t,n){var i=n||new pc.UnityMaterial,r=t;i.name=r[0],e.r(r[1],r[2],0,i,"shader"),i.renderQueue=r[3],i.enableInstancing=!!r[4];for(var s=r[5],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Material+FloatParameter",s[o+0]));i.floatParameters=a;var l=r[6],c=[];for(o=0;o<l.length;o+=1)c.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Material+ColorParameter",l[o+0]));i.colorParameters=c;var u=r[7],h=[];for(o=0;o<u.length;o+=1)h.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Material+VectorParameter",u[o+0]));i.vectorParameters=h;var d=r[8],m=[];for(o=0;o<d.length;o+=1)m.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Material+TextureParameter",d[o+0]));i.textureParameters=m;var g=r[9],$=[];for(o=0;o<g.length;o+=1)$.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Material+MaterialFlag",g[o+0]));return i.materialFlags=$,i},"Luna.Unity.DTO.UnityEngine.Assets.Material+FloatParameter":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Material+FloatParameter"),r=t;return i.name=r[0],i.value=r[1],i},"Luna.Unity.DTO.UnityEngine.Assets.Material+ColorParameter":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Material+ColorParameter"),r=t;return i.name=r[0],i.value=new pc.Color(r[1],r[2],r[3],r[4]),i},"Luna.Unity.DTO.UnityEngine.Assets.Material+VectorParameter":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Material+VectorParameter"),r=t;return i.name=r[0],i.value=new pc.Vec4(r[1],r[2],r[3],r[4]),i},"Luna.Unity.DTO.UnityEngine.Assets.Material+TextureParameter":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Material+TextureParameter"),r=t;return i.name=r[0],e.r(r[1],r[2],0,i,"value"),i},"Luna.Unity.DTO.UnityEngine.Assets.Material+MaterialFlag":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Material+MaterialFlag"),r=t;return i.name=r[0],i.enabled=!!r[1],i},"Luna.Unity.DTO.UnityEngine.Scene.Scene":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Scene.Scene"),r=t;return i.name=r[0],i.index=r[1],i.startup=!!r[2],i},"Luna.Unity.DTO.UnityEngine.Components.Transform":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Components.Transform"),r=t;return i.position=new pc.Vec3(r[0],r[1],r[2]),i.scale=new pc.Vec3(r[3],r[4],r[5]),i.rotation=new pc.Quat(r[6],r[7],r[8],r[9]),i},"Luna.Unity.DTO.UnityEngine.Components.Camera":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Components.Camera"),r=t;return i.enabled=!!r[0],i.aspect=r[1],i.orthographic=!!r[2],i.orthographicSize=r[3],i.backgroundColor=new pc.Color(r[4],r[5],r[6],r[7]),i.nearClipPlane=r[8],i.farClipPlane=r[9],i.fieldOfView=r[10],i.depth=r[11],i.clearFlags=r[12],i.cullingMask=r[13],i.rect=r[14],e.r(r[15],r[16],0,i,"targetTexture"),i.usePhysicalProperties=!!r[17],i.focalLength=r[18],i.sensorSize=new pc.Vec2(r[19],r[20]),i.lensShift=new pc.Vec2(r[21],r[22]),i.gateFit=r[23],i},"Luna.Unity.DTO.UnityEngine.Components.Canvas":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Components.Canvas"),r=t;return i.enabled=!!r[0],i.planeDistance=r[1],i.referencePixelsPerUnit=r[2],i.isFallbackOverlay=!!r[3],i.renderMode=r[4],i.renderOrder=r[5],i.sortingLayerName=r[6],i.sortingOrder=r[7],i.scaleFactor=r[8],e.r(r[9],r[10],0,i,"worldCamera"),i.overrideSorting=!!r[11],i.pixelPerfect=!!r[12],i.targetDisplay=r[13],i.overridePixelPerfect=!!r[14],i},"UnityEngine.UI.CanvasScaler":function(e,t,n){var i=n||e.c("UnityEngine.UI.CanvasScaler"),r=t;return i.m_UiScaleMode=r[0],i.m_ReferencePixelsPerUnit=r[1],i.m_ScaleFactor=r[2],i.m_ReferenceResolution=new pc.Vec2(r[3],r[4]),i.m_ScreenMatchMode=r[5],i.m_MatchWidthOrHeight=r[6],i.m_PhysicalUnit=r[7],i.m_FallbackScreenDPI=r[8],i.m_DefaultSpriteDPI=r[9],i.m_DynamicPixelsPerUnit=r[10],i.m_PresetInfoIsWorld=!!r[11],i},"UnityEngine.UI.GraphicRaycaster":function(e,t,n){var i=n||e.c("UnityEngine.UI.GraphicRaycaster"),r=t;return i.m_IgnoreReversedGraphics=!!r[0],i.m_BlockingObjects=r[1],i.m_BlockingMask=UnityEngine.LayerMask.FromIntegerValue(r[2]),i},AutoOrientation:function(e,t,n){return n||e.c("AutoOrientation")},"GuruClient.GameManager":function(e,t,n){var i=n||e.c("GuruClient.GameManager"),r=t;return i.maxLives1=r[0],i.maxLives2=r[1],i.maxLives3=r[2],e.r(r[3],r[4],0,i,"UICamera"),e.r(r[5],r[6],0,i,"uiGameView"),e.r(r[7],r[8],0,i,"uiGameWin"),e.r(r[9],r[10],0,i,"patchTemplate"),i._canDragging=!!r[11],i.curStartMode=r[12],i.isOrientationPortrait=!!r[13],i},"GuruClient.EmptyImage":function(e,t,n){var i=n||e.c("GuruClient.EmptyImage"),r=t;return e.r(r[0],r[1],0,i,"m_Material"),e.r(r[2],r[3],0,i,"m_Sprite"),i.m_Type=r[4],i.m_PreserveAspect=!!r[5],i.m_FillCenter=!!r[6],i.m_FillMethod=r[7],i.m_FillAmount=r[8],i.m_FillClockwise=!!r[9],i.m_FillOrigin=r[10],i.m_UseSpriteMesh=!!r[11],i.m_PixelsPerUnitMultiplier=r[12],i.m_Maskable=!!r[13],i.m_Color=new pc.Color(r[14],r[15],r[16],r[17]),i.m_RaycastTarget=!!r[18],i.m_RaycastPadding=new pc.Vec4(r[19],r[20],r[21],r[22]),i},"GuruClient.UIGameWin":function(e,t,n){var i=n||e.c("GuruClient.UIGameWin"),r=t;e.r(r[0],r[1],0,i,"btnContinue"),e.r(r[2],r[3],0,i,"puzzleWhole"),e.r(r[4],r[5],0,i,"txtTitle"),e.r(r[6],r[7],0,i,"btnMain"),e.r(r[8],r[9],0,i,"imgFlag"),e.r(r[10],r[11],0,i,"imgLight"),e.r(r[12],r[13],0,i,"winPFX"),e.r(r[14],r[15],0,i,"imgBg1"),e.r(r[16],r[17],0,i,"imgBg2"),e.r(r[18],r[19],0,i,"btnTestPass"),e.r(r[20],r[21],0,i,"btnTestFail"),e.r(r[22],r[23],0,i,"txtPassCount"),e.r(r[24],r[25],0,i,"pnlPuzzleBase"),e.r(r[26],r[27],0,i,"btnPuzzleBase"),e.r(r[28],r[29],0,i,"bigBG"),e.r(r[30],r[31],0,i,"objBGClose"),e.r(r[32],r[33],0,i,"btnBGClose"),e.r(r[34],r[35],0,i,"objReward"),e.r(r[36],r[37],0,i,"slider"),e.r(r[38],r[39],0,i,"btnRewardClaim"),e.r(r[40],r[41],0,i,"btnRewardContinue"),e.r(r[42],r[43],0,i,"btnRewardContinueOld"),i.rewardCurve=new pc.AnimationCurve({keys_flow:r[44]}),e.r(r[45],r[46],0,i,"objTitle"),e.r(r[47],r[48],0,i,"objMidNode"),e.r(r[49],r[50],0,i,"canvasGroupNode"),e.r(r[51],r[52],0,i,"txtUp"),e.r(r[53],r[54],0,i,"txtCurCoin"),e.r(r[55],r[56],0,i,"txtContinueCoin"),e.r(r[57],r[58],0,i,"imgClaim");for(var s=r[59],a=new(System.Collections.Generic.List$1(Bridge.ns("UnityEngine.UI.Text"))),o=0;o<s.length;o+=2)e.r(s[o+0],s[o+1],1,a,"");return i.txtMultList=a,e.r(r[60],r[61],0,i,"clickToDownload"),e.r(r[62],r[63],0,i,"objNormalUI"),e.r(r[64],r[65],0,i,"flyAnimComp"),i},"Luna.Unity.DTO.UnityEngine.Components.Animator":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Components.Animator"),r=t;e.r(r[0],r[1],0,i,"animatorController"),e.r(r[2],r[3],0,i,"avatar"),i.updateMode=r[4],i.hasTransformHierarchy=!!r[5],i.applyRootMotion=!!r[6];for(var s=r[7],a=[],o=0;o<s.length;o+=2)e.r(s[o+0],s[o+1],2,a,"");return i.humanBones=a,i.enabled=!!r[8],i},"Luna.Unity.DTO.UnityEngine.Components.ParticleSystem":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Components.ParticleSystem"),r=t;return i.main=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.MainModule",r[0],i.main),i.colorBySpeed=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ColorBySpeedModule",r[1],i.colorBySpeed),i.colorOverLifetime=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ColorOverLifetimeModule",r[2],i.colorOverLifetime),i.emission=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.EmissionModule",r[3],i.emission),i.rotationBySpeed=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.RotationBySpeedModule",r[4],i.rotationBySpeed),i.rotationOverLifetime=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.RotationOverLifetimeModule",r[5],i.rotationOverLifetime),i.shape=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ShapeModule",r[6],i.shape),i.sizeBySpeed=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.SizeBySpeedModule",r[7],i.sizeBySpeed),i.sizeOverLifetime=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.SizeOverLifetimeModule",r[8],i.sizeOverLifetime),i.textureSheetAnimation=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.TextureSheetAnimationModule",r[9],i.textureSheetAnimation),i.velocityOverLifetime=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.VelocityOverLifetimeModule",r[10],i.velocityOverLifetime),i.noise=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.NoiseModule",r[11],i.noise),i.inheritVelocity=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.InheritVelocityModule",r[12],i.inheritVelocity),i.forceOverLifetime=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ForceOverLifetimeModule",r[13],i.forceOverLifetime),i.limitVelocityOverLifetime=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemModules.LimitVelocityOverLifetimeModule",r[14],i.limitVelocityOverLifetime),i.useAutoRandomSeed=!!r[15],i.randomSeed=r[16],i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.MainModule":function(e,t,n){var i=n||new pc.ParticleSystemMain,r=t;return i.duration=r[0],i.loop=!!r[1],i.prewarm=!!r[2],i.startDelay=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[3],i.startDelay),i.startLifetime=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[4],i.startLifetime),i.startSpeed=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[5],i.startSpeed),i.startSize3D=!!r[6],i.startSizeX=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[7],i.startSizeX),i.startSizeY=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[8],i.startSizeY),i.startSizeZ=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[9],i.startSizeZ),i.startRotation3D=!!r[10],i.startRotationX=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[11],i.startRotationX),i.startRotationY=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[12],i.startRotationY),i.startRotationZ=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[13],i.startRotationZ),i.startColor=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxGradient",r[14],i.startColor),i.gravityModifier=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[15],i.gravityModifier),i.simulationSpace=r[16],e.r(r[17],r[18],0,i,"customSimulationSpace"),i.simulationSpeed=r[19],i.useUnscaledTime=!!r[20],i.scalingMode=r[21],i.playOnAwake=!!r[22],i.maxParticles=r[23],i.emitterVelocityMode=r[24],i.stopAction=r[25],i},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve":function(e,t,n){var i=n||new pc.MinMaxCurve,r=t;return i.mode=r[0],i.curveMin=new pc.AnimationCurve({keys_flow:r[1]}),i.curveMax=new pc.AnimationCurve({keys_flow:r[2]}),i.curveMultiplier=r[3],i.constantMin=r[4],i.constantMax=r[5],i},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxGradient":function(e,t,n){var i=n||new pc.MinMaxGradient,r=t;return i.mode=r[0],i.gradientMin=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Gradient",r[1],i.gradientMin),i.gradientMax=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Gradient",r[2],i.gradientMax),i.colorMin=new pc.Color(r[3],r[4],r[5],r[6]),i.colorMax=new pc.Color(r[7],r[8],r[9],r[10]),i},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Gradient":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Gradient"),r=t;i.mode=r[0];for(var s=r[1],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientColorKey",s[o+0]));i.colorKeys=a;var l=r[2],c=[];for(o=0;o<l.length;o+=1)c.push(e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientAlphaKey",l[o+0]));return i.alphaKeys=c,i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ColorBySpeedModule":function(e,t,n){var i=n||new pc.ParticleSystemColorBySpeed,r=t;return i.enabled=!!r[0],i.color=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxGradient",r[1],i.color),i.range=new pc.Vec2(r[2],r[3]),i},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientColorKey":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientColorKey"),r=t;return i.color=new pc.Color(r[0],r[1],r[2],r[3]),i.time=r[4],i},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientAlphaKey":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientAlphaKey"),r=t;return i.alpha=r[0],i.time=r[1],i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ColorOverLifetimeModule":function(e,t,n){var i=n||new pc.ParticleSystemColorOverLifetime,r=t;return i.enabled=!!r[0],i.color=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxGradient",r[1],i.color),i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.EmissionModule":function(e,t,n){var i=n||new pc.ParticleSystemEmitter,r=t;i.enabled=!!r[0],i.rateOverTime=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[1],i.rateOverTime),i.rateOverDistance=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.rateOverDistance);for(var s=r[3],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Burst",s[o+0]));return i.bursts=a,i},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Burst":function(e,t,n){var i=n||new pc.ParticleSystemBurst,r=t;return i.count=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[0],i.count),i.cycleCount=r[1],i.minCount=r[2],i.maxCount=r[3],i.repeatInterval=r[4],i.time=r[5],i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.RotationBySpeedModule":function(e,t,n){var i=n||new pc.ParticleSystemRotationBySpeed,r=t;return i.enabled=!!r[0],i.x=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[1],i.x),i.y=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.y),i.z=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[3],i.z),i.separateAxes=!!r[4],i.range=new pc.Vec2(r[5],r[6]),i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.RotationOverLifetimeModule":function(e,t,n){var i=n||new pc.ParticleSystemRotationOverLifetime,r=t;return i.enabled=!!r[0],i.x=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[1],i.x),i.y=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.y),i.z=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[3],i.z),i.separateAxes=!!r[4],i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ShapeModule":function(e,t,n){var i=n||new pc.ParticleSystemShape,r=t;return i.enabled=!!r[0],i.shapeType=r[1],i.randomDirectionAmount=r[2],i.sphericalDirectionAmount=r[3],i.randomPositionAmount=r[4],i.alignToDirection=!!r[5],i.radius=r[6],i.radiusMode=r[7],i.radiusSpread=r[8],i.radiusSpeed=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[9],i.radiusSpeed),i.radiusThickness=r[10],i.angle=r[11],i.length=r[12],i.boxThickness=new pc.Vec3(r[13],r[14],r[15]),i.meshShapeType=r[16],e.r(r[17],r[18],0,i,"mesh"),e.r(r[19],r[20],0,i,"meshRenderer"),e.r(r[21],r[22],0,i,"skinnedMeshRenderer"),i.useMeshMaterialIndex=!!r[23],i.meshMaterialIndex=r[24],i.useMeshColors=!!r[25],i.normalOffset=r[26],i.arc=r[27],i.arcMode=r[28],i.arcSpread=r[29],i.arcSpeed=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[30],i.arcSpeed),i.donutRadius=r[31],i.position=new pc.Vec3(r[32],r[33],r[34]),i.rotation=new pc.Vec3(r[35],r[36],r[37]),i.scale=new pc.Vec3(r[38],r[39],r[40]),i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.SizeBySpeedModule":function(e,t,n){var i=n||new pc.ParticleSystemSizeBySpeed,r=t;return i.enabled=!!r[0],i.x=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[1],i.x),i.y=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.y),i.z=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[3],i.z),i.separateAxes=!!r[4],i.range=new pc.Vec2(r[5],r[6]),i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.SizeOverLifetimeModule":function(e,t,n){var i=n||new pc.ParticleSystemSizeOverLifetime,r=t;return i.enabled=!!r[0],i.x=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[1],i.x),i.y=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.y),i.z=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[3],i.z),i.separateAxes=!!r[4],i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.TextureSheetAnimationModule":function(e,t,n){var i=n||new pc.ParticleSystemTextureSheetAnimation,r=t;i.enabled=!!r[0],i.mode=r[1],i.animation=r[2],i.numTilesX=r[3],i.numTilesY=r[4],i.useRandomRow=!!r[5],i.frameOverTime=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[6],i.frameOverTime),i.startFrame=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[7],i.startFrame),i.cycleCount=r[8],i.rowIndex=r[9],i.flipU=r[10],i.flipV=r[11],i.spriteCount=r[12];for(var s=r[13],a=[],o=0;o<s.length;o+=2)e.r(s[o+0],s[o+1],2,a,"");return i.sprites=a,i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.VelocityOverLifetimeModule":function(e,t,n){var i=n||new pc.ParticleSystemVelocityOverLifetime,r=t;return i.enabled=!!r[0],i.x=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[1],i.x),i.y=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.y),i.z=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[3],i.z),i.radial=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[4],i.radial),i.speedModifier=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[5],i.speedModifier),i.space=r[6],i.orbitalX=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[7],i.orbitalX),i.orbitalY=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[8],i.orbitalY),i.orbitalZ=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[9],i.orbitalZ),i.orbitalOffsetX=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[10],i.orbitalOffsetX),i.orbitalOffsetY=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[11],i.orbitalOffsetY),i.orbitalOffsetZ=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[12],i.orbitalOffsetZ),i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.NoiseModule":function(e,t,n){var i=n||new pc.ParticleSystemNoise,r=t;return i.enabled=!!r[0],i.separateAxes=!!r[1],i.strengthX=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.strengthX),i.strengthY=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[3],i.strengthY),i.strengthZ=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[4],i.strengthZ),i.frequency=r[5],i.damping=!!r[6],i.octaveCount=r[7],i.octaveMultiplier=r[8],i.octaveScale=r[9],i.quality=r[10],i.scrollSpeed=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[11],i.scrollSpeed),i.scrollSpeedMultiplier=r[12],i.remapEnabled=!!r[13],i.remapX=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[14],i.remapX),i.remapY=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[15],i.remapY),i.remapZ=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[16],i.remapZ),i.positionAmount=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[17],i.positionAmount),i.rotationAmount=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[18],i.rotationAmount),i.sizeAmount=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[19],i.sizeAmount),i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.InheritVelocityModule":function(e,t,n){var i=n||new pc.ParticleSystemInheritVelocity,r=t;return i.enabled=!!r[0],i.mode=r[1],i.curve=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.curve),i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ForceOverLifetimeModule":function(e,t,n){var i=n||new pc.ParticleSystemForceOverLifetime,r=t;return i.enabled=!!r[0],i.x=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[1],i.x),i.y=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.y),i.z=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[3],i.z),i.space=r[4],i.randomized=!!r[5],i},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.LimitVelocityOverLifetimeModule":function(e,t,n){var i=n||new pc.ParticleSystemLimitVelocityOverLifetime,r=t;return i.enabled=!!r[0],i.limit=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[1],i.limit),i.limitX=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[2],i.limitX),i.limitY=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[3],i.limitY),i.limitZ=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[4],i.limitZ),i.dampen=r[5],i.separateAxes=!!r[6],i.space=r[7],i.drag=e.d("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve",r[8],i.drag),i.multiplyDragByParticleSize=!!r[9],i.multiplyDragByParticleVelocity=!!r[10],i},"Luna.Unity.DTO.UnityEngine.Components.ParticleSystemRenderer":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Components.ParticleSystemRenderer"),r=t;i.enabled=!!r[0],e.r(r[1],r[2],0,i,"sharedMaterial");for(var s=r[3],a=[],o=0;o<s.length;o+=2)e.r(s[o+0],s[o+1],2,a,"");return i.sharedMaterials=a,i.receiveShadows=!!r[4],i.shadowCastingMode=r[5],i.sortingLayerID=r[6],i.sortingOrder=r[7],i.lightmapIndex=r[8],i.lightmapSceneIndex=r[9],i.lightmapScaleOffset=new pc.Vec4(r[10],r[11],r[12],r[13]),i.lightProbeUsage=r[14],i.reflectionProbeUsage=r[15],e.r(r[16],r[17],0,i,"mesh"),i.meshCount=r[18],i.activeVertexStreamsCount=r[19],i.alignment=r[20],i.renderMode=r[21],i.sortMode=r[22],i.lengthScale=r[23],i.velocityScale=r[24],i.cameraVelocityScale=r[25],i.normalDirection=r[26],i.sortingFudge=r[27],i.minParticleSize=r[28],i.maxParticleSize=r[29],i.pivot=new pc.Vec3(r[30],r[31],r[32]),e.r(r[33],r[34],0,i,"trailMaterial"),i},"UnityEngine.UI.Mask":function(e,t,n){var i=n||e.c("UnityEngine.UI.Mask"),r=t;return i.m_ShowMaskGraphic=!!r[0],i},"UnityEngine.EventSystems.EventSystem":function(e,t,n){var i=n||e.c("UnityEngine.EventSystems.EventSystem"),r=t;return e.r(r[0],r[1],0,i,"m_FirstSelected"),i.m_sendNavigationEvents=!!r[2],i.m_DragThreshold=r[3],i},"UnityEngine.EventSystems.StandaloneInputModule":function(e,t,n){var i=n||e.c("UnityEngine.EventSystems.StandaloneInputModule"),r=t;return i.m_HorizontalAxis=r[0],i.m_VerticalAxis=r[1],i.m_SubmitButton=r[2],i.m_CancelButton=r[3],i.m_InputActionsPerSecond=r[4],i.m_RepeatDelay=r[5],i.m_ForceModuleActive=!!r[6],i.m_SendPointerHoverToParent=!!r[7],i},"GuruClient.Coroutiner":function(e,t,n){return n||e.c("GuruClient.Coroutiner")},"Luna.Unity.DTO.UnityEngine.Assets.RenderSettings":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.RenderSettings"),r=t;i.ambientIntensity=r[0],i.reflectionIntensity=r[1],i.ambientMode=r[2],i.ambientLight=new pc.Color(r[3],r[4],r[5],r[6]),i.ambientSkyColor=new pc.Color(r[7],r[8],r[9],r[10]),i.ambientGroundColor=new pc.Color(r[11],r[12],r[13],r[14]),i.ambientEquatorColor=new pc.Color(r[15],r[16],r[17],r[18]),i.fogColor=new pc.Color(r[19],r[20],r[21],r[22]),i.fogEndDistance=r[23],i.fogStartDistance=r[24],i.fogDensity=r[25],i.fog=!!r[26],e.r(r[27],r[28],0,i,"skybox"),i.fogMode=r[29];for(var s=r[30],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.RenderSettings+Lightmap",s[o+0]));return i.lightmaps=a,i.lightProbes=e.d("Luna.Unity.DTO.UnityEngine.Assets.RenderSettings+LightProbes",r[31],i.lightProbes),i.lightmapsMode=r[32],i.mixedBakeMode=r[33],i.environmentLightingMode=r[34],i.ambientProbe=new pc.SphericalHarmonicsL2(r[35]),i.referenceAmbientProbe=new pc.SphericalHarmonicsL2(r[36]),i.useReferenceAmbientProbe=!!r[37],e.r(r[38],r[39],0,i,"customReflection"),e.r(r[40],r[41],0,i,"defaultReflection"),i.defaultReflectionMode=r[42],i.defaultReflectionResolution=r[43],i.sunLightObjectId=r[44],i.pixelLightCount=r[45],i.defaultReflectionHDR=!!r[46],i.hasLightDataAsset=!!r[47],i.hasManualGenerate=!!r[48],i},"Luna.Unity.DTO.UnityEngine.Assets.RenderSettings+Lightmap":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.RenderSettings+Lightmap"),r=t;return e.r(r[0],r[1],0,i,"lightmapColor"),e.r(r[2],r[3],0,i,"lightmapDirection"),i},"Luna.Unity.DTO.UnityEngine.Assets.RenderSettings+LightProbes":function(e,t,n){return n||new UnityEngine.LightProbes},"Luna.Unity.DTO.UnityEngine.Assets.Shader":function(e,t,n){for(var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader"),r=t,s=r[0],a=new(System.Collections.Generic.List$1(Bridge.ns("Luna.Unity.DTO.UnityEngine.Assets.Shader+ShaderCompilationError"))),o=0;o<s.length;o+=1)a.add(e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+ShaderCompilationError",s[o+0]));i.ShaderCompilationErrors=a,i.name=r[1],i.guid=r[2];var l=r[3],c=[];for(o=0;o<l.length;o+=1)c.push(l[o+0]);i.shaderDefinedKeywords=c;var u=r[4],h=[];for(o=0;o<u.length;o+=1)h.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass",u[o+0]));i.passes=h;var d=r[5],m=[];for(o=0;o<d.length;o+=1)m.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+UsePass",d[o+0]));i.usePasses=m;var g=r[6],$=[];for(o=0;o<g.length;o+=1)$.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+DefaultParameterValue",g[o+0]));return i.defaultParameterValues=$,e.r(r[7],r[8],0,i,"unityFallbackShader"),i.readDepth=!!r[9],i.isCreatedByShaderGraph=!!r[10],i.usedBatchUniforms=r[11],i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+ShaderCompilationError":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader+ShaderCompilationError"),r=t;return i.shaderName=r[0],i.errorMessage=r[1],i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass":function(e,t,n){var i=n||new pc.UnityShaderPass,r=t;i.id=r[0],i.subShaderIndex=r[1],i.name=r[2],i.passType=r[3],i.grabPassTextureName=r[4],i.usePass=!!r[5],i.zTest=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[6],i.zTest),i.zWrite=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[7],i.zWrite),i.culling=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[8],i.culling),i.blending=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Blending",r[9],i.blending),i.alphaBlending=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Blending",r[10],i.alphaBlending),i.colorWriteMask=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[11],i.colorWriteMask),i.offsetUnits=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[12],i.offsetUnits),i.offsetFactor=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[13],i.offsetFactor),i.stencilRef=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[14],i.stencilRef),i.stencilReadMask=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[15],i.stencilReadMask),i.stencilWriteMask=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[16],i.stencilWriteMask),i.stencilOp=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+StencilOp",r[17],i.stencilOp),i.stencilOpFront=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+StencilOp",r[18],i.stencilOpFront),i.stencilOpBack=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+StencilOp",r[19],i.stencilOpBack);for(var s=r[20],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Tag",s[o+0]));i.tags=a;var l=r[21],c=[];for(o=0;o<l.length;o+=1)c.push(l[o+0]);i.passDefinedKeywords=c;var u=r[22],h=[];for(o=0;o<u.length;o+=1)h.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+KeywordGroup",u[o+0]));i.passDefinedKeywordGroups=h;var d=r[23],m=[];for(o=0;o<d.length;o+=1)m.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Variant",d[o+0]));i.variants=m;var g=r[24],$=[];for(o=0;o<g.length;o+=1)$.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Variant",g[o+0]));return i.excludedVariants=$,i.hasDepthReader=!!r[25],i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value"),r=t;return i.val=r[0],i.name=r[1],i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Blending":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Blending"),r=t;return i.src=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[0],i.src),i.dst=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[1],i.dst),i.op=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[2],i.op),i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+StencilOp":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+StencilOp"),r=t;return i.pass=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[0],i.pass),i.fail=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[1],i.fail),i.zFail=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[2],i.zFail),i.comp=e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value",r[3],i.comp),i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Tag":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Tag"),r=t;return i.name=r[0],i.value=r[1],i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+KeywordGroup":function(e,t,n){for(var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+KeywordGroup"),r=t,s=r[0],a=[],o=0;o<s.length;o+=1)a.push(s[o+0]);return i.keywords=a,i.hasDiscard=!!r[1],i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Variant":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Variant"),r=t;i.passId=r[0],i.subShaderIndex=r[1];for(var s=r[2],a=[],o=0;o<s.length;o+=1)a.push(s[o+0]);return i.keywords=a,i.vertexProgram=r[3],i.fragmentProgram=r[4],i.readDepth=!!r[5],i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+UsePass":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader+UsePass"),r=t;return e.r(r[0],r[1],0,i,"shader"),i.pass=r[2],i},"Luna.Unity.DTO.UnityEngine.Assets.Shader+DefaultParameterValue":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Shader+DefaultParameterValue"),r=t;return i.name=r[0],i.type=r[1],i.value=new pc.Vec4(r[2],r[3],r[4],r[5]),i.textureValue=r[6],i},"Luna.Unity.DTO.UnityEngine.Textures.Sprite":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Textures.Sprite"),r=t;return i.name=r[0],e.r(r[1],r[2],0,i,"texture"),i.aabb=r[3],i.vertices=r[4],i.triangles=r[5],i.textureRect=UnityEngine.Rect.MinMaxRect(r[6],r[7],r[8],r[9]),i.packedRect=UnityEngine.Rect.MinMaxRect(r[10],r[11],r[12],r[13]),i.border=new pc.Vec4(r[14],r[15],r[16],r[17]),i.transparency=r[18],i.bounds=r[19],i.pixelsPerUnit=r[20],i.textureWidth=r[21],i.textureHeight=r[22],i.nativeSize=new pc.Vec2(r[23],r[24]),i.pivot=new pc.Vec2(r[25],r[26]),i.textureRectOffset=new pc.Vec2(r[27],r[28]),i},"Luna.Unity.DTO.UnityEngine.Assets.Font":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Font"),r=t;i.name=r[0],i.ascent=r[1],i.originalLineHeight=r[2],i.fontSize=r[3];for(var s=r[4],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Font+CharacterInfo",s[o+0]));return i.characterInfo=a,e.r(r[5],r[6],0,i,"texture"),i.originalFontSize=r[7],i},"Luna.Unity.DTO.UnityEngine.Assets.Font+CharacterInfo":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Font+CharacterInfo"),r=t;return i.index=r[0],i.advance=r[1],i.bearing=r[2],i.glyphWidth=r[3],i.glyphHeight=r[4],i.minX=r[5],i.maxX=r[6],i.minY=r[7],i.maxY=r[8],i.uvBottomLeftX=r[9],i.uvBottomLeftY=r[10],i.uvBottomRightX=r[11],i.uvBottomRightY=r[12],i.uvTopLeftX=r[13],i.uvTopLeftY=r[14],i.uvTopRightX=r[15],i.uvTopRightY=r[16],i},"Luna.Unity.DTO.UnityEngine.Assets.TextAsset":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.TextAsset"),r=t;return i.name=r[0],i.bytes64=r[1],i.data=r[2],i},"DG.Tweening.Core.DOTweenSettings":function(e,t,n){var i=n||e.c("DG.Tweening.Core.DOTweenSettings"),r=t;return i.useSafeMode=!!r[0],i.safeModeOptions=e.d("DG.Tweening.Core.DOTweenSettings+SafeModeOptions",r[1],i.safeModeOptions),i.timeScale=r[2],i.unscaledTimeScale=r[3],i.useSmoothDeltaTime=!!r[4],i.maxSmoothUnscaledTime=r[5],i.rewindCallbackMode=r[6],i.showUnityEditorReport=!!r[7],i.logBehaviour=r[8],i.drawGizmos=!!r[9],i.defaultRecyclable=!!r[10],i.defaultAutoPlay=r[11],i.defaultUpdateType=r[12],i.defaultTimeScaleIndependent=!!r[13],i.defaultEaseType=r[14],i.defaultEaseOvershootOrAmplitude=r[15],i.defaultEasePeriod=r[16],i.defaultAutoKill=!!r[17],i.defaultLoopType=r[18],i.debugMode=!!r[19],i.debugStoreTargetId=!!r[20],i.showPreviewPanel=!!r[21],i.storeSettingsLocation=r[22],i.modules=e.d("DG.Tweening.Core.DOTweenSettings+ModulesSetup",r[23],i.modules),i.createASMDEF=!!r[24],i.showPlayingTweens=!!r[25],i.showPausedTweens=!!r[26],i},"DG.Tweening.Core.DOTweenSettings+SafeModeOptions":function(e,t,n){var i=n||e.c("DG.Tweening.Core.DOTweenSettings+SafeModeOptions"),r=t;return i.logBehaviour=r[0],i.nestedTweenFailureBehaviour=r[1],i},"DG.Tweening.Core.DOTweenSettings+ModulesSetup":function(e,t,n){var i=n||e.c("DG.Tweening.Core.DOTweenSettings+ModulesSetup"),r=t;return i.showPanel=!!r[0],i.audioEnabled=!!r[1],i.physicsEnabled=!!r[2],i.physics2DEnabled=!!r[3],i.spriteEnabled=!!r[4],i.uiEnabled=!!r[5],i.textMeshProEnabled=!!r[6],i.tk2DEnabled=!!r[7],i.deAudioEnabled=!!r[8],i.deUnityExtendedEnabled=!!r[9],i.epoOutlineEnabled=!!r[10],i},"Luna.Unity.DTO.UnityEngine.Assets.Resources":function(e,t,n){for(var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Resources"),r=t,s=r[0],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.Resources+File",s[o+0]));return i.files=a,i.componentToPrefabIds=r[1],i},"Luna.Unity.DTO.UnityEngine.Assets.Resources+File":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.Resources+File"),r=t;return i.path=r[0],e.r(r[1],r[2],0,i,"unityObject"),i},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings":function(e,t,n){for(var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings"),r=t,s=r[0],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+ScriptsExecutionOrder",s[o+0]));i.scriptsExecutionOrder=a;var l=r[1],c=[];for(o=0;o<l.length;o+=1)c.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+SortingLayer",l[o+0]));i.sortingLayers=c;var u=r[2],h=[];for(o=0;o<u.length;o+=1)h.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+CullingLayer",u[o+0]));i.cullingLayers=h,i.timeSettings=e.d("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+TimeSettings",r[3],i.timeSettings),i.physicsSettings=e.d("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings",r[4],i.physicsSettings),i.physics2DSettings=e.d("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+Physics2DSettings",r[5],i.physics2DSettings),i.qualitySettings=e.d("Luna.Unity.DTO.UnityEngine.Assets.QualitySettings",r[6],i.qualitySettings),i.enableRealtimeShadows=!!r[7],i.enableAutoInstancing=!!r[8],i.enableDynamicBatching=!!r[9],i.lightmapEncodingQuality=r[10],i.desiredColorSpace=r[11];var d=r[12],m=[];for(o=0;o<d.length;o+=1)m.push(d[o+0]);return i.allTags=m,i},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+ScriptsExecutionOrder":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+ScriptsExecutionOrder"),r=t;return i.name=r[0],i.value=r[1],i},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+SortingLayer":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+SortingLayer"),r=t;return i.id=r[0],i.name=r[1],i.value=r[2],i},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+CullingLayer":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+CullingLayer"),r=t;return i.id=r[0],i.name=r[1],i},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+TimeSettings":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+TimeSettings"),r=t;return i.fixedDeltaTime=r[0],i.maximumDeltaTime=r[1],i.timeScale=r[2],i.maximumParticleTimestep=r[3],i},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings"),r=t;i.gravity=new pc.Vec3(r[0],r[1],r[2]),i.defaultSolverIterations=r[3],i.bounceThreshold=r[4],i.autoSyncTransforms=!!r[5],i.autoSimulation=!!r[6];for(var s=r[7],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings+CollisionMask",s[o+0]));return i.collisionMatrix=a,i},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings+CollisionMask":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings+CollisionMask"),r=t;return i.enabled=!!r[0],i.layerId=r[1],i.otherLayerId=r[2],i},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+Physics2DSettings":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+Physics2DSettings"),r=t;e.r(r[0],r[1],0,i,"material"),i.gravity=new pc.Vec2(r[2],r[3]),i.positionIterations=r[4],i.velocityIterations=r[5],i.velocityThreshold=r[6],i.maxLinearCorrection=r[7],i.maxAngularCorrection=r[8],i.maxTranslationSpeed=r[9],i.maxRotationSpeed=r[10],i.baumgarteScale=r[11],i.baumgarteTOIScale=r[12],i.timeToSleep=r[13],i.linearSleepTolerance=r[14],i.angularSleepTolerance=r[15],i.defaultContactOffset=r[16],i.autoSimulation=!!r[17],i.queriesHitTriggers=!!r[18],i.queriesStartInColliders=!!r[19],i.callbacksOnDisable=!!r[20],i.reuseCollisionCallbacks=!!r[21],i.autoSyncTransforms=!!r[22];for(var s=r[23],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+Physics2DSettings+CollisionMask",s[o+0]));return i.collisionMatrix=a,i},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+Physics2DSettings+CollisionMask":function(e,t,n){var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+Physics2DSettings+CollisionMask"),r=t;return i.enabled=!!r[0],i.layerId=r[1],i.otherLayerId=r[2],i},"Luna.Unity.DTO.UnityEngine.Assets.QualitySettings":function(e,t,n){for(var i=n||e.c("Luna.Unity.DTO.UnityEngine.Assets.QualitySettings"),r=t,s=r[0],a=[],o=0;o<s.length;o+=1)a.push(e.d("Luna.Unity.DTO.UnityEngine.Assets.QualitySettings",s[o+0]));i.qualityLevels=a;var l=r[1],c=[];for(o=0;o<l.length;o+=1)c.push(l[o+0]);return i.names=c,i.shadows=r[2],i.anisotropicFiltering=r[3],i.antiAliasing=r[4],i.lodBias=r[5],i.shadowCascades=r[6],i.shadowDistance=r[7],i.shadowmaskMode=r[8],i.shadowProjection=r[9],i.shadowResolution=r[10],i.softParticles=!!r[11],i.softVegetation=!!r[12],i.activeColorSpace=r[13],i.desiredColorSpace=r[14],i.masterTextureLimit=r[15],i.maxQueuedFrames=r[16],i.particleRaycastBudget=r[17],i.pixelLightCount=r[18],i.realtimeReflectionProbes=!!r[19],i.shadowCascade2Split=r[20],i.shadowCascade4Split=new pc.Vec3(r[21],r[22],r[23]),i.streamingMipmapsActive=!!r[24],i.vSyncCount=r[25],i.asyncUploadBufferSize=r[26],i.asyncUploadTimeSlice=r[27],i.billboardsFaceCameraPosition=!!r[28],i.shadowNearPlaneOffset=r[29],i.streamingMipmapsMemoryBudget=r[30],i.maximumLODLevel=r[31],i.streamingMipmapsAddAllCameras=!!r[32],i.streamingMipmapsMaxLevelReduction=r[33],i.streamingMipmapsRenderersPerFrame=r[34],i.resolutionScalingFixedDPIFactor=r[35],i.streamingMipmapsMaxFileIORequests=r[36],i.currentQualityLevel=r[37],i},"UnityEngine.Events.ArgumentCache":function(e,t,n){var i=n||e.c("UnityEngine.Events.ArgumentCache"),r=t;return e.r(r[0],r[1],0,i,"m_ObjectArgument"),i.m_ObjectArgumentAssemblyTypeName=r[2],i.m_IntArgument=r[3],i.m_FloatArgument=r[4],i.m_StringArgument=r[5],i.m_BoolArgument=!!r[6],i},fields:{"Luna.Unity.DTO.UnityEngine.Components.RectTransform":{pivot:0,anchorMin:2,anchorMax:4,sizeDelta:6,anchoredPosition3D:8,rotation:11,scale:15},"Luna.Unity.DTO.UnityEngine.Components.CanvasRenderer":{cullTransparentMesh:0},"Luna.Unity.DTO.UnityEngine.Scene.GameObject":{name:0,tagId:1,enabled:2,isStatic:3,layer:4},"Luna.Unity.DTO.UnityEngine.Textures.Texture2D":{name:0,width:1,height:2,mipmapCount:3,anisoLevel:4,filterMode:5,hdr:6,format:7,wrapMode:8,alphaIsTransparency:9,alphaSource:10},"Luna.Unity.DTO.UnityEngine.Assets.Material":{name:0,shader:1,renderQueue:3,enableInstancing:4,floatParameters:5,colorParameters:6,vectorParameters:7,textureParameters:8,materialFlags:9},"Luna.Unity.DTO.UnityEngine.Assets.Material+FloatParameter":{name:0,value:1},"Luna.Unity.DTO.UnityEngine.Assets.Material+ColorParameter":{name:0,value:1},"Luna.Unity.DTO.UnityEngine.Assets.Material+VectorParameter":{name:0,value:1},"Luna.Unity.DTO.UnityEngine.Assets.Material+TextureParameter":{name:0,value:1},"Luna.Unity.DTO.UnityEngine.Assets.Material+MaterialFlag":{name:0,enabled:1},"Luna.Unity.DTO.UnityEngine.Scene.Scene":{name:0,index:1,startup:2},"Luna.Unity.DTO.UnityEngine.Components.Transform":{position:0,scale:3,rotation:6},"Luna.Unity.DTO.UnityEngine.Components.Camera":{enabled:0,aspect:1,orthographic:2,orthographicSize:3,backgroundColor:4,nearClipPlane:8,farClipPlane:9,fieldOfView:10,depth:11,clearFlags:12,cullingMask:13,rect:14,targetTexture:15,usePhysicalProperties:17,focalLength:18,sensorSize:19,lensShift:21,gateFit:23},"Luna.Unity.DTO.UnityEngine.Components.Canvas":{enabled:0,planeDistance:1,referencePixelsPerUnit:2,isFallbackOverlay:3,renderMode:4,renderOrder:5,sortingLayerName:6,sortingOrder:7,scaleFactor:8,worldCamera:9,overrideSorting:11,pixelPerfect:12,targetDisplay:13,overridePixelPerfect:14},"Luna.Unity.DTO.UnityEngine.Components.Animator":{animatorController:0,avatar:2,updateMode:4,hasTransformHierarchy:5,applyRootMotion:6,humanBones:7,enabled:8},"Luna.Unity.DTO.UnityEngine.Components.ParticleSystem":{main:0,colorBySpeed:1,colorOverLifetime:2,emission:3,rotationBySpeed:4,rotationOverLifetime:5,shape:6,sizeBySpeed:7,sizeOverLifetime:8,textureSheetAnimation:9,velocityOverLifetime:10,noise:11,inheritVelocity:12,forceOverLifetime:13,limitVelocityOverLifetime:14,useAutoRandomSeed:15,randomSeed:16},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.MainModule":{duration:0,loop:1,prewarm:2,startDelay:3,startLifetime:4,startSpeed:5,startSize3D:6,startSizeX:7,startSizeY:8,startSizeZ:9,startRotation3D:10,startRotationX:11,startRotationY:12,startRotationZ:13,startColor:14,gravityModifier:15,simulationSpace:16,customSimulationSpace:17,simulationSpeed:19,useUnscaledTime:20,scalingMode:21,playOnAwake:22,maxParticles:23,emitterVelocityMode:24,stopAction:25},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxCurve":{mode:0,curveMin:1,curveMax:2,curveMultiplier:3,constantMin:4,constantMax:5},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.MinMaxGradient":{mode:0,gradientMin:1,gradientMax:2,colorMin:3,colorMax:7},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Gradient":{mode:0,colorKeys:1,alphaKeys:2},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ColorBySpeedModule":{enabled:0,color:1,range:2},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientColorKey":{color:0,time:4},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientAlphaKey":{alpha:0,time:1},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ColorOverLifetimeModule":{enabled:0,color:1},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.EmissionModule":{enabled:0,rateOverTime:1,rateOverDistance:2,bursts:3},"Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Burst":{count:0,cycleCount:1,minCount:2,maxCount:3,repeatInterval:4,time:5},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.RotationBySpeedModule":{enabled:0,x:1,y:2,z:3,separateAxes:4,range:5},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.RotationOverLifetimeModule":{enabled:0,x:1,y:2,z:3,separateAxes:4},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ShapeModule":{enabled:0,shapeType:1,randomDirectionAmount:2,sphericalDirectionAmount:3,randomPositionAmount:4,alignToDirection:5,radius:6,radiusMode:7,radiusSpread:8,radiusSpeed:9,radiusThickness:10,angle:11,length:12,boxThickness:13,meshShapeType:16,mesh:17,meshRenderer:19,skinnedMeshRenderer:21,useMeshMaterialIndex:23,meshMaterialIndex:24,useMeshColors:25,normalOffset:26,arc:27,arcMode:28,arcSpread:29,arcSpeed:30,donutRadius:31,position:32,rotation:35,scale:38},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.SizeBySpeedModule":{enabled:0,x:1,y:2,z:3,separateAxes:4,range:5},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.SizeOverLifetimeModule":{enabled:0,x:1,y:2,z:3,separateAxes:4},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.TextureSheetAnimationModule":{enabled:0,mode:1,animation:2,numTilesX:3,numTilesY:4,useRandomRow:5,frameOverTime:6,startFrame:7,cycleCount:8,rowIndex:9,flipU:10,flipV:11,spriteCount:12,sprites:13},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.VelocityOverLifetimeModule":{enabled:0,x:1,y:2,z:3,radial:4,speedModifier:5,space:6,orbitalX:7,orbitalY:8,orbitalZ:9,orbitalOffsetX:10,orbitalOffsetY:11,orbitalOffsetZ:12},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.NoiseModule":{enabled:0,separateAxes:1,strengthX:2,strengthY:3,strengthZ:4,frequency:5,damping:6,octaveCount:7,octaveMultiplier:8,octaveScale:9,quality:10,scrollSpeed:11,scrollSpeedMultiplier:12,remapEnabled:13,remapX:14,remapY:15,remapZ:16,positionAmount:17,rotationAmount:18,sizeAmount:19},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.InheritVelocityModule":{enabled:0,mode:1,curve:2},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.ForceOverLifetimeModule":{enabled:0,x:1,y:2,z:3,space:4,randomized:5},"Luna.Unity.DTO.UnityEngine.ParticleSystemModules.LimitVelocityOverLifetimeModule":{enabled:0,limit:1,limitX:2,limitY:3,limitZ:4,dampen:5,separateAxes:6,space:7,drag:8,multiplyDragByParticleSize:9,multiplyDragByParticleVelocity:10},"Luna.Unity.DTO.UnityEngine.Components.ParticleSystemRenderer":{enabled:0,sharedMaterial:1,sharedMaterials:3,receiveShadows:4,shadowCastingMode:5,sortingLayerID:6,sortingOrder:7,lightmapIndex:8,lightmapSceneIndex:9,lightmapScaleOffset:10,lightProbeUsage:14,reflectionProbeUsage:15,mesh:16,meshCount:18,activeVertexStreamsCount:19,alignment:20,renderMode:21,sortMode:22,lengthScale:23,velocityScale:24,cameraVelocityScale:25,normalDirection:26,sortingFudge:27,minParticleSize:28,maxParticleSize:29,pivot:30,trailMaterial:33},"Luna.Unity.DTO.UnityEngine.Assets.RenderSettings":{ambientIntensity:0,reflectionIntensity:1,ambientMode:2,ambientLight:3,ambientSkyColor:7,ambientGroundColor:11,ambientEquatorColor:15,fogColor:19,fogEndDistance:23,fogStartDistance:24,fogDensity:25,fog:26,skybox:27,fogMode:29,lightmaps:30,lightProbes:31,lightmapsMode:32,mixedBakeMode:33,environmentLightingMode:34,ambientProbe:35,referenceAmbientProbe:36,useReferenceAmbientProbe:37,customReflection:38,defaultReflection:40,defaultReflectionMode:42,defaultReflectionResolution:43,sunLightObjectId:44,pixelLightCount:45,defaultReflectionHDR:46,hasLightDataAsset:47,hasManualGenerate:48},"Luna.Unity.DTO.UnityEngine.Assets.RenderSettings+Lightmap":{lightmapColor:0,lightmapDirection:2},"Luna.Unity.DTO.UnityEngine.Assets.RenderSettings+LightProbes":{bakedProbes:0,positions:1,hullRays:2,tetrahedra:3,neighbours:4,matrices:5},"Luna.Unity.DTO.UnityEngine.Assets.Shader":{ShaderCompilationErrors:0,name:1,guid:2,shaderDefinedKeywords:3,passes:4,usePasses:5,defaultParameterValues:6,unityFallbackShader:7,readDepth:9,isCreatedByShaderGraph:10,usedBatchUniforms:11},"Luna.Unity.DTO.UnityEngine.Assets.Shader+ShaderCompilationError":{shaderName:0,errorMessage:1},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass":{id:0,subShaderIndex:1,name:2,passType:3,grabPassTextureName:4,usePass:5,zTest:6,zWrite:7,culling:8,blending:9,alphaBlending:10,colorWriteMask:11,offsetUnits:12,offsetFactor:13,stencilRef:14,stencilReadMask:15,stencilWriteMask:16,stencilOp:17,stencilOpFront:18,stencilOpBack:19,tags:20,passDefinedKeywords:21,passDefinedKeywordGroups:22,variants:23,excludedVariants:24,hasDepthReader:25},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Value":{val:0,name:1},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Blending":{src:0,dst:1,op:2},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+StencilOp":{pass:0,fail:1,zFail:2,comp:3},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Tag":{name:0,value:1},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+KeywordGroup":{keywords:0,hasDiscard:1},"Luna.Unity.DTO.UnityEngine.Assets.Shader+Pass+Variant":{passId:0,subShaderIndex:1,keywords:2,vertexProgram:3,fragmentProgram:4,readDepth:5},"Luna.Unity.DTO.UnityEngine.Assets.Shader+UsePass":{shader:0,pass:2},"Luna.Unity.DTO.UnityEngine.Assets.Shader+DefaultParameterValue":{name:0,type:1,value:2,textureValue:6},"Luna.Unity.DTO.UnityEngine.Textures.Sprite":{name:0,texture:1,aabb:3,vertices:4,triangles:5,textureRect:6,packedRect:10,border:14,transparency:18,bounds:19,pixelsPerUnit:20,textureWidth:21,textureHeight:22,nativeSize:23,pivot:25,textureRectOffset:27},"Luna.Unity.DTO.UnityEngine.Assets.Font":{name:0,ascent:1,originalLineHeight:2,fontSize:3,characterInfo:4,texture:5,originalFontSize:7},"Luna.Unity.DTO.UnityEngine.Assets.Font+CharacterInfo":{index:0,advance:1,bearing:2,glyphWidth:3,glyphHeight:4,minX:5,maxX:6,minY:7,maxY:8,uvBottomLeftX:9,uvBottomLeftY:10,uvBottomRightX:11,uvBottomRightY:12,uvTopLeftX:13,uvTopLeftY:14,uvTopRightX:15,uvTopRightY:16},"Luna.Unity.DTO.UnityEngine.Assets.TextAsset":{name:0,bytes64:1,data:2},"Luna.Unity.DTO.UnityEngine.Assets.Resources":{files:0,componentToPrefabIds:1},"Luna.Unity.DTO.UnityEngine.Assets.Resources+File":{path:0,unityObject:1},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings":{scriptsExecutionOrder:0,sortingLayers:1,cullingLayers:2,timeSettings:3,physicsSettings:4,physics2DSettings:5,qualitySettings:6,enableRealtimeShadows:7,enableAutoInstancing:8,enableDynamicBatching:9,lightmapEncodingQuality:10,desiredColorSpace:11,allTags:12},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+ScriptsExecutionOrder":{name:0,value:1},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+SortingLayer":{id:0,name:1,value:2},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+CullingLayer":{id:0,name:1},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+TimeSettings":{fixedDeltaTime:0,maximumDeltaTime:1,timeScale:2,maximumParticleTimestep:3},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings":{gravity:0,defaultSolverIterations:3,bounceThreshold:4,autoSyncTransforms:5,autoSimulation:6,collisionMatrix:7},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings+CollisionMask":{enabled:0,layerId:1,otherLayerId:2},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+Physics2DSettings":{material:0,gravity:2,positionIterations:4,velocityIterations:5,velocityThreshold:6,maxLinearCorrection:7,maxAngularCorrection:8,maxTranslationSpeed:9,maxRotationSpeed:10,baumgarteScale:11,baumgarteTOIScale:12,timeToSleep:13,linearSleepTolerance:14,angularSleepTolerance:15,defaultContactOffset:16,autoSimulation:17,queriesHitTriggers:18,queriesStartInColliders:19,callbacksOnDisable:20,reuseCollisionCallbacks:21,autoSyncTransforms:22,collisionMatrix:23},"Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+Physics2DSettings+CollisionMask":{enabled:0,layerId:1,otherLayerId:2},"Luna.Unity.DTO.UnityEngine.Assets.QualitySettings":{qualityLevels:0,names:1,shadows:2,anisotropicFiltering:3,antiAliasing:4,lodBias:5,shadowCascades:6,shadowDistance:7,shadowmaskMode:8,shadowProjection:9,shadowResolution:10,softParticles:11,softVegetation:12,activeColorSpace:13,desiredColorSpace:14,masterTextureLimit:15,maxQueuedFrames:16,particleRaycastBudget:17,pixelLightCount:18,realtimeReflectionProbes:19,shadowCascade2Split:20,shadowCascade4Split:21,streamingMipmapsActive:24,vSyncCount:25,asyncUploadBufferSize:26,asyncUploadTimeSlice:27,billboardsFaceCameraPosition:28,shadowNearPlaneOffset:29,streamingMipmapsMemoryBudget:30,maximumLODLevel:31,streamingMipmapsAddAllCameras:32,streamingMipmapsMaxLevelReduction:33,streamingMipmapsRenderersPerFrame:34,resolutionScalingFixedDPIFactor:35,streamingMipmapsMaxFileIORequests:36,currentQualityLevel:37}},requiredComponents:{39:[40],41:[40],42:[40],43:[40],44:[40],45:[40],46:[47],48:[18],49:[50],51:[50],52:[50],53:[50],54:[50],55:[50],56:[50],57:[58],59:[58],60:[58],61:[58],62:[58],63:[58],64:[58],65:[58],66:[58],67:[58],68:[58],69:[58],70:[58],71:[18],72:[73],74:[75],76:[75],20:[0],27:[1,0],9:[0],77:[18],78:[0],79:[73,0],80:[0,1],81:[0],82:[1,0],83:[73],84:[1,0],85:[0],86:[0],87:[0],22:[20],6:[1,0],88:[0],21:[20],14:[0],89:[0],13:[0],90:[0],15:[0],91:[0],92:[0],33:[0],93:[0],94:[1,0],95:[0],96:[0],97:[0],8:[0],10:[1,0],98:[0],99:[34],100:[34],35:[34],101:[34],102:[18],103:[18],104:[105],106:[107]},types:["UnityEngine.RectTransform","UnityEngine.CanvasRenderer","UnityEngine.MonoBehaviour","GuruClient.Patche","UnityEngine.GameObject","UnityEngine.EventSystems.UIBehaviour","UnityEngine.UI.Image","GuruClient.UIGameView","UnityEngine.UI.Slider","GuruClient.GuruScrollRect","UnityEngine.UI.Text","UnityEngine.Texture2D","UnityEngine.UI.Button","UnityEngine.UI.HorizontalLayoutGroup","UnityEngine.UI.ContentSizeFitter","UnityEngine.UI.LayoutElement","UnityEngine.Shader","UnityEngine.Transform","UnityEngine.Camera","UnityEngine.AudioListener","UnityEngine.Canvas","UnityEngine.UI.CanvasScaler","UnityEngine.UI.GraphicRaycaster","AutoOrientation","GuruClient.GameManager","UnityEngine.Sprite","UnityEngine.Font","GuruClient.EmptyImage","GuruClient.UIGameWin","UnityEngine.Animator","UnityEngine.ParticleSystem","UnityEngine.ParticleSystemRenderer","UnityEngine.Material","UnityEngine.UI.Mask","UnityEngine.EventSystems.EventSystem","UnityEngine.EventSystems.StandaloneInputModule","GuruClient.Coroutiner","DG.Tweening.Core.DOTweenSettings","UnityEngine.TextAsset","UnityEngine.AudioLowPassFilter","UnityEngine.AudioBehaviour","UnityEngine.AudioHighPassFilter","UnityEngine.AudioReverbFilter","UnityEngine.AudioDistortionFilter","UnityEngine.AudioEchoFilter","UnityEngine.AudioChorusFilter","UnityEngine.Cloth","UnityEngine.SkinnedMeshRenderer","UnityEngine.FlareLayer","UnityEngine.CharacterJoint","UnityEngine.Rigidbody","UnityEngine.ConstantForce","UnityEngine.Joint","UnityEngine.HingeJoint","UnityEngine.SpringJoint","UnityEngine.FixedJoint","UnityEngine.ConfigurableJoint","UnityEngine.CompositeCollider2D","UnityEngine.Rigidbody2D","UnityEngine.Joint2D","UnityEngine.AnchoredJoint2D","UnityEngine.SpringJoint2D","UnityEngine.DistanceJoint2D","UnityEngine.FrictionJoint2D","UnityEngine.HingeJoint2D","UnityEngine.RelativeJoint2D","UnityEngine.SliderJoint2D","UnityEngine.TargetJoint2D","UnityEngine.FixedJoint2D","UnityEngine.WheelJoint2D","UnityEngine.ConstantForce2D","UnityEngine.StreamingController","UnityEngine.TextMesh","UnityEngine.MeshRenderer","UnityEngine.Tilemaps.TilemapRenderer","UnityEngine.Tilemaps.Tilemap","UnityEngine.Tilemaps.TilemapCollider2D","UnityEngine.U2D.PixelPerfectCamera","TMPro.TextContainer","TMPro.TextMeshPro","TMPro.TextMeshProUGUI","TMPro.TMP_Dropdown","TMPro.TMP_SelectionCaret","TMPro.TMP_SubMesh","TMPro.TMP_SubMeshUI","TMPro.TMP_Text","UnityEngine.UI.Dropdown","UnityEngine.UI.Graphic","UnityEngine.UI.AspectRatioFitter","UnityEngine.UI.GridLayoutGroup","UnityEngine.UI.HorizontalOrVerticalLayoutGroup","UnityEngine.UI.LayoutGroup","UnityEngine.UI.VerticalLayoutGroup","UnityEngine.UI.MaskableGraphic","UnityEngine.UI.RawImage","UnityEngine.UI.RectMask2D","UnityEngine.UI.Scrollbar","UnityEngine.UI.ScrollRect","UnityEngine.UI.Toggle","UnityEngine.EventSystems.BaseInputModule","UnityEngine.EventSystems.PointerInputModule","UnityEngine.EventSystems.TouchInputModule","UnityEngine.EventSystems.Physics2DRaycaster","UnityEngine.EventSystems.PhysicsRaycaster","UnityEngine.U2D.Animation.SpriteSkin","UnityEngine.SpriteRenderer","UnityEngine.U2D.SpriteShapeController","UnityEngine.U2D.SpriteShapeRenderer"],unityVersion:"2021.3.32f1c1",productName:"APPlayableLuna",lunaInitializationTime:"12/15/2023 08:47:08",lunaDaysRunning:"5.9",lunaVersion:"5.5.0",lunaSHA:"aa8b6dc467b3eacc9168b32bb8d120b69b67a956",creativeName:"v6",lunaAppID:"19642",projectId:"5947c50fc972a488bb82941ccc76b260",packagesInfo:"com.unity.nuget.newtonsoft-json: 2.0.0\ncom.unity.textmeshpro: 3.0.6\ncom.unity.ugui: 1.0.0",externalJsLibraries:""};Deserializers.androidLink="undefined"!=typeof window&&window.$environment.packageConfig.androidLink?window.$environment.packageConfig.androidLink:"Empty",Deserializers.iosLink="undefined"!=typeof window&&window.$environment.packageConfig.iosLink?window.$environment.packageConfig.iosLink:"Empty",Deserializers.base64Enabled="False",Deserializers.minifyEnabled="True",Deserializers.isForceUncompressed="False",Deserializers.isAntiAliasingEnabled="False",Deserializers.isRuntimeAnalysisEnabledForCode="True",Deserializers.runtimeAnalysisExcludedClassesCount="1704",Deserializers.runtimeAnalysisExcludedMethodsCount="3844",Deserializers.runtimeAnalysisExcludedModules="physics3d, physics2d, mecanim-wasm",Deserializers.isRuntimeAnalysisEnabledForShaders="True",Deserializers.isRealtimeShadowsEnabled="False",Deserializers.isReferenceAmbientProbeBaked="False",Deserializers.isLunaCompilerV2Used="False",Deserializers.companyName="DefaultCompany",Deserializers.buildPlatform="StandaloneOSX",Deserializers.applicationIdentifier="com.DefaultCompany.2DProject",Deserializers.disableAntiAliasing=!0,Deserializers.preferWebGl2=!1,Deserializers.buildID="8446c253-830d-4681-a860-9b45f3bceede",Deserializers.typeNameToIdMap=function(){var e=0;return Deserializers.types.reduce((function(t,n){return t[n]=e++,t}),{})}(),window.pc={markPhysics2dModuleAsUsed(){},markPhysics3dModuleAsUsed(){}};var tmp1ed93d16_tmp_bridge_mapping=JSON.parse('{"Z$":{"n":"System","c":{"c$":{"n":"Reflection","c":{"b$":{"n":"Emit","c":{"IA$":{"n":"AssemblyBuilder","c":{}},"Af$":{"n":"AssemblyBuilderAccess","c":{}},"JA$":{"n":"ConstructorBuilder","c":{}},"KA$":{"n":"CustomAttributeBuilder","c":{}},"LA$":{"n":"DynamicILInfo","c":{}},"MA$":{"n":"DynamicMethod","c":{}},"NA$":{"n":"EnumBuilder","c":{}},"OA$":{"n":"EventBuilder","c":{}},"PA$":{"n":"EventToken","c":{}},"QA$":{"n":"ExceptionHandler","c":{}},"RA$":{"n":"FieldBuilder","c":{}},"SA$":{"n":"FieldToken","c":{}},"Bf$":{"n":"FlowControl","c":{}},"tv$":{"n":"GenericTypeParameterBuilder","c":{}},"TA$":{"n":"ILGenerator","c":{}},"UA$":{"n":"Label","c":{}},"VA$":{"n":"LocalBuilder","c":{}},"WA$":{"n":"MethodBuilder","c":{}},"XA$":{"n":"MethodRental","c":{}},"YA$":{"n":"MethodToken","c":{}},"ZA$":{"n":"ModuleBuilder","c":{}},"aB$":{"n":"OpCode","c":{}},"bB$":{"n":"OpCodes","c":{}},"Cf$":{"n":"OpCodeType","c":{}},"Df$":{"n":"OperandType","c":{}},"Ef$":{"n":"PackingSize","c":{}},"cB$":{"n":"ParameterBuilder","c":{}},"dB$":{"n":"ParameterToken","c":{}},"Ff$":{"n":"PEFileKinds","c":{}},"eB$":{"n":"PropertyBuilder","c":{}},"fB$":{"n":"PropertyToken","c":{}},"gB$":{"n":"SignatureHelper","c":{}},"hB$":{"n":"SignatureToken","c":{}},"Gf$":{"n":"StackBehaviour","c":{}},"iB$":{"n":"StringToken","c":{}},"jB$":{"n":"TypeBuilder","c":{}},"kB$":{"n":"TypeToken","c":{}},"lB$":{"n":"UnmanagedMarshal","c":{}}}},"ue$":{"n":"AssemblyName","c":{},"sm":[],"sp":[],"m":[],"p":["a$","displayName"]},"ve$":{"n":"Assembly","c":{},"sm":[],"sp":["f$","assemblies"],"m":["a$","getName"],"p":[]},"eu$":{"n":"TargetSite","c":{},"sm":[],"sp":[],"m":[],"p":["a$","methodName"]},"Iu$":{"n":"AmbiguousMatchException","c":{}},"Gz$":{"n":"Binder","c":{}},"bf$":{"n":"BindingFlags","c":{}},"cf$":{"n":"CallingConventions","c":{}},"Tu$":{"n":"InvalidFilterCriteriaException","c":{}},"df$":{"n":"MemberTypes","c":{}},"Hz$":{"n":"Module","c":{}},"Iz$":{"n":"ParameterModifier","c":{}},"ef$":{"n":"TypeAttributes","c":{}},"ff$":{"n":"ParameterAttributes","c":{}},"jf$":{"n":"EventAttributes","c":{}},"kf$":{"n":"ExceptionHandlingClauseOptions","c":{}},"lf$":{"n":"FieldAttributes","c":{}},"mf$":{"n":"GenericParameterAttributes","c":{}},"nf$":{"n":"ImageFileMachine","c":{}},"nA$":{"n":"InterfaceMapping","c":{}},"oA$":{"n":"ManifestResourceInfo","c":{}},"of$":{"n":"MethodAttributes","c":{}},"pf$":{"n":"PortableExecutableKinds","c":{}},"qf$":{"n":"PropertyAttributes","c":{}},"rf$":{"n":"ResourceAttributes","c":{}},"sf$":{"n":"ResourceLocation","c":{}},"Zu$":{"n":"TargetInvocationException","c":{}},"pA$":{"n":"TypeExtensions","c":{}},"sv$":{"n":"TypeInfo","c":{}},"Xd$":{"n":"ICustomAttributeProvider","c":{}},"Yd$":{"n":"IReflect","c":{}},"be$":{"n":"IReflectableType","c":{}}}},"d$":{"n":"Resources","c":{"ju$":{"n":"MissingManifestResourceException","c":{}},"rd$":{"n":"IResourceWriter","c":{}}}},"f$":{"n":"Globalization","c":{"e$":{"n":"DateTimeFormatInfoScanner","c":{"lz$":{"n":"FoundDatePattern","c":{}}}},"iv$":{"n":"TextInfo","c":{},"sm":[],"sp":[],"m":["nGa$","System$ICloneable$clone"],"p":["oGa$","listSeparator","pGa$","ANSICodePage","qGa$","CultureName","rGa$","EBCDICCodePage","sGa$","IsReadOnly","tGa$","IsRightToLeft","uGa$","ListSeparator","vGa$","MacCodePage","wGa$","OEMCodePage"]},"Ae$":{"n":"BidiCategory","c":{}},"jv$":{"n":"SortVersion","c":{},"sm":[],"sp":[],"m":["xGa$","System$IEquatable$1$System$Globalization$SortVersion$equalsT"],"p":["yGa$","m_NlsVersion","zGa$","m_SortId","AGa$","FullVersion","BGa$","SortId"]},"Be$":{"n":"UnicodeCategory","c":{}},"kv$":{"n":"DaylightTimeStruct","c":{}},"lv$":{"n":"DaylightTime","c":{}},"mv$":{"n":"DateTimeFormatInfo","c":{},"sm":[],"sp":["MGa$","$allStandardFormats"],"m":["LGa$","System$IFormatProvider$getFormat"],"p":[]},"nv$":{"n":"NumberFormatInfo","c":{},"sm":[],"sp":[],"m":["EGa$","getFormat","LGa$","System$IFormatProvider$getFormat"],"p":[]},"ov$":{"n":"CultureInfo","c":{},"sm":["OGa$","getCurrentCulture","PGa$","setCurrentCulture"],"sp":[],"m":["EGa$","getFormat","LGa$","System$IFormatProvider$getFormat"],"p":["NGa$","$entryPoint"]},"jz$":{"n":"Calendar","c":{}},"Pe$":{"n":"CalendarAlgorithmType","c":{}},"Qe$":{"n":"CalendarId","c":{}},"Re$":{"n":"CalendarWeekRule","c":{}},"ru$":{"n":"CultureNotFoundException","c":{}},"Se$":{"n":"DateTimeStyles","c":{}},"Te$":{"n":"NumberStyles","c":{}},"Ue$":{"n":"FORMATFLAGS","c":{}},"kz$":{"n":"GlobalizationMode","c":{}}}},"h$":{"n":"Text","c":{"g$":{"n":"RegularExpressions","c":{"Ux$":{"n":"Regex","c":{},"sm":["r$","getCacheSize","s$","setCacheSize","t$","escape","u$","unescape","d$","isMatch","e$","matches"],"sp":["v$","_cacheSize","w$","_defaultMatchTimeout"],"m":["a$","getMatchTimeout","b$","getOptions","c$","getRightToLeft","d$","isMatch","e$","matches","f$","getGroupNames","g$","getGroupNumbers","h$","groupNameFromNumber","i$","groupNumberFromName","j$","_validateMatchTimeout"],"p":["k$","_pattern","l$","_matchTimeout","m$","_runner","n$","_caps","o$","_capsize","p$","_capnames","q$","_capslist"]},"Vx$":{"n":"Capture","c":{},"sm":[],"sp":[],"m":["a$","getIndex","b$","getLength","c$","getValue","d$","_getOriginalString","e$","_getLeftSubstring","f$","_getRightSubstring"],"p":["g$","_text","h$","_index","i$","_length"]},"Zx$":{"n":"CaptureCollection","c":{},"sm":[],"sp":[],"m":["HJa$","System$Collections$IEnumerable$GetEnumerator","OPa$","System$Collections$ICollection$getCount","UJa$","System$Collections$ICollection$copyTo"],"p":["PPa$","_group","QPa$","_capcount","RPa$","_captures","Cw$","Count","iKa$","System$Collections$ICollection$Count"]},"ay$":{"n":"CaptureEnumerator","c":{},"sm":[],"sp":[],"m":["XNa$","System$Collections$IEnumerator$getCurrent","IKa$","System$Collections$IEnumerator$moveNext","JKa$","System$Collections$IEnumerator$reset"],"p":["TPa$","_captureColl","UPa$","_curindex","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]},"Wx$":{"n":"Group","c":{},"sm":[],"sp":[],"m":["j$","getSuccess"],"p":["l$","_caps","m$","_capcount","n$","_capColl"]},"by$":{"n":"GroupCollection","c":{},"sm":[],"sp":[],"m":["HJa$","System$Collections$IEnumerable$GetEnumerator","OPa$","System$Collections$ICollection$getCount","UJa$","System$Collections$ICollection$copyTo"],"p":["ZPa$","_match","aQa$","_captureMap","bQa$","_groups","Cw$","Count","iKa$","System$Collections$ICollection$Count"]},"cy$":{"n":"GroupEnumerator","c":{},"sm":[],"sp":[],"m":["XNa$","System$Collections$IEnumerator$getCurrent","IKa$","System$Collections$IEnumerator$moveNext","JKa$","System$Collections$IEnumerator$reset"],"p":["cQa$","_groupColl","UPa$","_curindex","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]},"Xx$":{"n":"Match","c":{},"sm":["o$","synchronized"],"sp":[],"m":["p$","getGroups","q$","nextMatch","r$","result","s$","_isMatched","t$","_addMatch","u$","_tidy","v$","_groupToStringImpl","w$","_lastGroupToStringImpl"],"p":["x$","_regex","y$","_matchcount","z$","_matches","A$","_textbeg","B$","_textend","C$","_textstart","D$","_groupColl","E$","_textpos"]},"Yx$":{"n":"MatchSparse","c":{},"sm":[],"sp":[],"m":[],"p":["l$","_caps"]},"dy$":{"n":"MatchCollection","c":{},"sm":[],"sp":[],"m":["HJa$","System$Collections$IEnumerable$GetEnumerator","OPa$","System$Collections$ICollection$getCount","UJa$","System$Collections$ICollection$copyTo"],"p":["eQa$","_regex","fQa$","_input","gQa$","_beginning","hQa$","_length","iQa$","_startat","jQa$","_prevlen","kQa$","_matches","lQa$","_done","Cw$","Count","iKa$","System$Collections$ICollection$Count"]},"ey$":{"n":"MatchEnumerator","c":{},"sm":[],"sp":[],"m":["XNa$","System$Collections$IEnumerator$getCurrent","IKa$","System$Collections$IEnumerator$moveNext","JKa$","System$Collections$IEnumerator$reset"],"p":["mQa$","_matchcoll","ZPa$","_match","UPa$","_curindex","lQa$","_done","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]},"Ie$":{"n":"RegexOptions","c":{},"sm":[],"sp":["Ja$","None","Ab$","IgnoreCase","Bb$","Multiline","Cb$","ExplicitCapture","Db$","Compiled","Eb$","Singleline","Fb$","IgnorePatternWhitespace","M$","RightToLeft","Gb$","ECMAScript","Hb$","CultureInvariant"],"m":[],"p":["Ia$","$flags"]},"fy$":{"n":"RegexRunner","c":{},"sm":[],"sp":[],"m":["a$","run","b$","parsePattern","c$","_convertNetEngineResults"],"p":["d$","_runregex","e$","_netEngine","f$","_runtext","g$","_runtextpos","h$","_runtextbeg","i$","_runtextend","j$","_runtextstart","k$","_quick","l$","_prevlen"]},"gy$":{"n":"RegexParser","c":{},"sm":["G$","escape","H$","unescape","I$","parseReplacement","J$","_isMetachar"],"sp":["K$","_category"],"m":["a$","_noteCaptures","b$","_setPattern","c$","_scanReplacement","d$","_addConcatenate","e$","_useOptionE","f$","_makeException","g$","_scanDollar","h$","_scanDecimal","i$","_scanOctal","j$","_scanHex","k$","_hexDigit","l$","_scanControl","m$","_scanCapname","n$","_scanCharEscape","o$","_captureSlotFromName","p$","_isCaptureSlot","q$","_isCaptureName","r$","_isWordChar","s$","_charsRight","t$","_rightChar","u$","_moveRightGetChar","v$","_moveRight","w$","_textpos","x$","_textto","y$","_moveLeft"],"p":["z$","_caps","A$","_capsize","B$","_capnames","C$","_pattern","D$","_currentPos","E$","_concatenation","F$","_culture"]},"hy$":{"n":"RegexNode","c":{},"sm":[],"sp":["l$","One","m$","Multi","n$","Ref","o$","Empty","p$","Concatenate"],"m":["a$","addChild","b$","childCount","c$","child","d$","_reduce","e$","_reduceConcatenation","f$","_stripEnation","g$","_isRightToLeft"],"p":["h$","_type","i$","_str","j$","_children","k$","_next"]},"iy$":{"n":"RegexReplacement","c":{},"sm":[],"sp":["h$","Specials","i$","LeftPortion","j$","RightPortion","k$","LastGroup","l$","WholeString"],"m":["a$","getPattern","b$","replacement","c$","_replacementImpl","d$","_replacementImplRTL"],"p":["e$","_rep","f$","_strings","g$","_rules"]},"jy$":{"n":"RegexEngine","c":{},"sm":[],"sp":[],"m":["a$","parsePattern","b$","_scanAndTransformResult","c$","_scan","d$","_scanBranch","e$","_scanPass","f$","_addAlternationBranches","g$","_addBranchBeforeProbing","h$","_addBranchAfterProbing","i$","_tryGetTokenProbe","j$","_advanceToNextBranch","k$","_collectScanResults","l$","_scanToken","m$","_scanGroupToken","n$","_scanGroupImnsxToken","o$","_scanAlternationConditionToken","p$","_scanLook","q$","_scanLookAhead","r$","_scanLookBehind","s$","_scanNonBacktracking","t$","_scanLiteral","u$","_scanWithJsRegex","v$","_scanWithJsRegex2","w$","_scanCharGroupToken","x$","_scanCharNegativeGroupToken","y$","_scanEscapeToken","z$","_scanDotToken","A$","_scanBackrefNumberToken","B$","_scanBackrefNameToken","C$","_scanAnchorToken","D$","_cloneSettings","E$","_combineScanResults","F$","_getEmptyMatch","G$","_fillMatch","H$","_checkTimeout"],"p":["I$","_pattern","J$","_patternInfo","K$","_text","L$","_textStart","M$","_timeoutMs","N$","_timeoutTime","O$","_settings","P$","_branchType","Q$","_branchResultKind"]},"ky$":{"n":"RegexEngineBranch","c":{},"sm":[],"sp":[],"m":["a$","pushPass","b$","peekPass","c$","popPass","d$","hasPass","e$","clone"],"p":["f$","type","g$","value","h$","min","i$","max","j$","isStarted","k$","isNotFailing","l$","state"]},"ly$":{"n":"RegexEngineState","c":{},"sm":[],"sp":[],"m":["a$","logCapture","b$","logCaptureGroup","c$","logCaptureGroupBalancing","d$","resolveBackref","e$","clone"],"p":["f$","txtIndex","g$","capIndex","h$","capLength","i$","passes","j$","groups"]},"my$":{"n":"RegexEnginePass","c":{},"sm":[],"sp":[],"m":["a$","clearState","b$","clone"],"p":["c$","index","d$","tokens","e$","probe","f$","onHold","g$","onHoldTextIndex","h$","alternationHandled","i$","settings"]},"ny$":{"n":"RegexEngineProbe","c":{},"sm":[],"sp":[],"m":["a$","clone"],"p":["b$","min","c$","max","d$","value","e$","isLazy","f$","forced"]},"oy$":{"n":"RegexEngineParser","c":{},"sm":["a$","parsePattern","b$","_transformRawTokens","c$","_fillGroupDescriptors","d$","_fillGroupStructure","e$","_getGroupSparseInfo","f$","_addSparseSlot","g$","_addSparseSlotForSameNamedGroups","h$","_fillGroupConstructs","i$","_validateGroupName","j$","_fillBalancingGroupInfo","k$","_preTransformBackrefTokens","l$","_updateGroupDescriptors","m$","_constructPattern","n$","_parsePatternImpl","o$","_parseEscapeToken","p$","_parseOctalCharToken","q$","_parseEscapedChar","r$","_parseCharRangeToken","s$","_parseCharIntervalToken","t$","_tidyCharRange","u$","_parseDotToken","v$","_parseAnchorToken","w$","_updateSettingsFromConstructs","x$","_parseGroupToken","y$","_parseGroupConstructToken","z$","_parseQuantifierToken","A$","_parseAlternationToken","B$","_parseAlternationGroupConditionToken","C$","_findFirstGroupWithoutConstructs","D$","_parseXModeCommentToken","E$","_createLiteralToken","F$","_createPositiveLookaheadToken","G$","_createPatternToken","H$","_modifyPatternToken","I$","_updatePatternToken","J$","_matchChars","K$","_matchUntil"],"sp":["L$","_hexSymbols","M$","_octSymbols","N$","_decSymbols","O$","_escapedChars","P$","_escapedCharClasses","Q$","_escapedAnchors","R$","_escapedSpecialSymbols","S$","_whiteSpaceChars","T$","_unicodeCategories","U$","_namedCharBlocks","V$","_controlChars","W$","tokenTypes"],"m":[],"p":[]}}},"yv$":{"n":"StringBuilder","c":{}},"nz$":{"n":"StringBuilderCache","c":{}},"Lz$":{"n":"Encoding","c":{}},"Mz$":{"n":"ASCIIEncoding","c":{}},"Rz$":{"n":"EncodingInfo","c":{}},"Nz$":{"n":"UnicodeEncoding","c":{}},"Oz$":{"n":"UTF32Encoding","c":{}},"Pz$":{"n":"UTF7Encoding","c":{}},"Qz$":{"n":"UTF8Encoding","c":{}},"av$":{"n":"EncoderFallbackException","c":{}}}},"l$":{"n":"Diagnostics","c":{"i$":{"n":"Debug","c":{"Pu$":{"n":"DebugAssertException","c":{}}}},"j$":{"n":"Contracts","c":{"Ee$":{"n":"ContractFailureKind","c":{}},"Qu$":{"n":"ContractException","c":{}}}},"k$":{"n":"SymbolStore","c":{"Zd$":{"n":"ISymbolDocumentWriter","c":{}},"ae$":{"n":"ISymbolWriter","c":{}}}},"zv$":{"n":"Debugger","c":{}},"Av$":{"n":"Stopwatch","c":{}}}},"C$":{"n":"Collections","c":{"w$":{"n":"Generic","c":{"m$":{"n":"SortedList$2","c":{"Kv$":{"n":"Enumerator","c":{},"sm":[],"sp":["sLa$","KeyValuePair","QKa$","DictEntry"],"m":["pLa$","System$IDisposable$Dispose","IKa$","System$Collections$IEnumerator$moveNext"],"p":["qLa$","_sortedList","Fc$","value","Dc$","index","aKa$","version","rLa$","getEnumeratorRetType","MKa$","System$Collections$IDictionaryEnumerator$Key","NKa$","System$Collections$IDictionaryEnumerator$Entry","Fh$","Current","OKa$","System$Collections$IEnumerator$Current","PKa$","System$Collections$IDictionaryEnumerator$Value"]},"Lv$":{"n":"KeyList","c":{},"sm":[],"sp":[],"m":[],"p":["tLa$","_dict","Cw$","Count","sGa$","IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]},"Mv$":{"n":"SortedListKeyEnumerator","c":{},"sm":[],"sp":[],"m":["pLa$","System$IDisposable$Dispose","IKa$","System$Collections$IEnumerator$moveNext"],"p":["qLa$","_sortedList","Dc$","index","aKa$","version","uLa$","currentKey","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]},"Nv$":{"n":"SortedListValueEnumerator","c":{},"sm":[],"sp":[],"m":["pLa$","System$IDisposable$Dispose","IKa$","System$Collections$IEnumerator$moveNext"],"p":["qLa$","_sortedList","Dc$","index","aKa$","version","vLa$","currentValue","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]},"Ov$":{"n":"ValueList","c":{},"sm":[],"sp":[],"m":[],"p":["tLa$","_dict","Cw$","Count","sGa$","IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]}},"sm":[],"sp":["kLa$","_defaultCapacity","lLa$","MaxArrayLength","mLa$","emptyKeys","nLa$","emptyValues"],"m":["SJa$","System$Collections$IDictionary$clear","WJa$","System$Collections$IDictionary$getItem","XJa$","System$Collections$IDictionary$setItem"],"p":["ZJa$","_size","aKa$","version","hd$","comparer","bKa$","keyList","cKa$","valueList","dKa$","Capacity","dLa$","Comparer","Cw$","Count","eLa$","System$Collections$Generic$IDictionary$2$Keys","jKa$","System$Collections$IDictionary$Keys","fLa$","System$Collections$Generic$IReadOnlyDictionary$2$Keys","eKa$","Values","gLa$","System$Collections$Generic$IDictionary$2$Values","kKa$","System$Collections$IDictionary$Values","hLa$","System$Collections$Generic$IReadOnlyDictionary$2$Values","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","lKa$","System$Collections$IDictionary$IsReadOnly","mKa$","System$Collections$IDictionary$IsFixedSize","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]},"n$":{"n":"SortedSet$1","c":{"Rv$":{"n":"ElementCount","c":{},"sm":[],"sp":[],"m":[],"p":["c$","uniqueCount","d$","unfoundCount"]},"Sv$":{"n":"Enumerator","c":{},"sm":[],"sp":["ZMa$","dummyNode"],"m":["IKa$","System$Collections$IEnumerator$moveNext","pLa$","System$IDisposable$Dispose"],"p":["aKa$","version","XMa$","stack","KKa$","current","Fh$","Current","OKa$","System$Collections$IEnumerator$Current","YMa$","NotStartedOrEnded"]},"Tv$":{"n":"Node","c":{},"sm":[],"sp":[],"m":[],"p":["a$","IsRed","b$","Item","c$","Left","d$","Right"]},"Pv$":{"n":"TreeSubSet","c":{},"sm":[],"sp":[],"m":[],"p":["SMa$","underlying","TMa$","lBoundActive","UMa$","uBoundActive"]}},"sm":[],"sp":["DMa$","ComparerName","EMa$","CountName","FMa$","ItemsName","GMa$","VersionName","HMa$","TreeName","IMa$","NodeValueName","JMa$","EnumStartName","KMa$","ReverseName","LMa$","EnumVersionName","MMa$","minName","NMa$","maxName","OMa$","lBoundActiveName","PMa$","uBoundActiveName","QMa$","StackAllocThreshold"],"m":[],"p":["hd$","comparer","Gc$","count","aKa$","version","Cw$","Count","dLa$","Comparer","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]},"o$":{"n":"LinkedList$1","c":{"Vv$":{"n":"Enumerator","c":{},"sm":[],"sp":["sNa$","LinkedListName","tNa$","CurrentValueName","GMa$","VersionName","uNa$","IndexName"],"m":["IKa$","System$Collections$IEnumerator$moveNext","pLa$","System$IDisposable$Dispose"],"p":["Ac$","list","aKa$","version","KKa$","current","Dc$","index","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]}},"sm":[],"sp":["GMa$","VersionName","EMa$","CountName","rNa$","ValuesName"],"m":[],"p":["Gc$","count","aKa$","version","Cw$","Count","qNa$","First","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]},"r$":{"n":"Dictionary$2","c":{"p$":{"n":"KeyCollection","c":{"dw$":{"n":"Enumerator","c":{},"sm":[],"sp":[],"m":["pLa$","System$IDisposable$Dispose","IKa$","System$Collections$IEnumerator$moveNext"],"p":["wc$","dictionary","Dc$","index","aKa$","version","uLa$","currentKey","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]}},"sm":[],"sp":[],"m":[],"p":["wc$","dictionary","Cw$","Count","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]},"q$":{"n":"ValueCollection","c":{"ew$":{"n":"Enumerator","c":{},"sm":["NFa$","getDefaultValue"],"sp":[],"m":["oLa$","Dispose","GKa$","moveNext","JKa$","System$Collections$IEnumerator$reset","dGa$","getHashCode","H$","equals","pLa$","System$IDisposable$Dispose","IKa$","System$Collections$IEnumerator$moveNext"],"p":["wc$","dictionary","Dc$","index","aKa$","version","vLa$","currentValue","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]}},"sm":[],"sp":[],"m":[],"p":["wc$","dictionary","Cw$","Count","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]},"bw$":{"n":"Entry","c":{},"sm":[],"sp":[],"m":[],"p":["c$","hashCode","d$","next","e$","key","f$","value"]},"cw$":{"n":"Enumerator","c":{},"sm":[],"sp":["QKa$","DictEntry","sLa$","KeyValuePair"],"m":["GKa$","moveNext","oLa$","Dispose","IKa$","System$Collections$IEnumerator$moveNext","pLa$","System$IDisposable$Dispose"],"p":["wc$","dictionary","aKa$","version","Dc$","index","KKa$","current","rLa$","getEnumeratorRetType","Fh$","Current","OKa$","System$Collections$IEnumerator$Current","NKa$","System$Collections$IDictionaryEnumerator$Entry","MKa$","System$Collections$IDictionaryEnumerator$Key","PKa$","System$Collections$IDictionaryEnumerator$Value"]}},"sm":["jLa$","IsCompatibleKey"],"sp":["GMa$","VersionName","ENa$","HashSizeName","FNa$","KeyValuePairsName","DMa$","ComparerName"],"m":["zJa$","getItem","AJa$","setItem","WJa$","System$Collections$IDictionary$getItem","XJa$","System$Collections$IDictionary$setItem","TKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$add","RJa$","System$Collections$IDictionary$add","UKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$contains","TJa$","System$Collections$IDictionary$contains","VKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$remove","wJa$","remove","YJa$","System$Collections$IDictionary$remove","BJa$","clear","YKa$","containsKey","DJa$","ContainsValue","HLa$","CopyTo","ZKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$copyTo","UJa$","System$Collections$ICollection$copyTo","IJa$","GetEnumerator","aLa$","System$Collections$Generic$IEnumerable$1$System$Collections$Generic$KeyValuePair$2$GetEnumerator","HJa$","System$Collections$IEnumerable$GetEnumerator","VJa$","System$Collections$IDictionary$GetEnumerator","vNa$","FindEntry","jBa$","Initialize","eP$","Insert","wNa$","Resize","xNa$","Resize$1","bLa$","tryGetValue","yNa$","GetValueOrDefault","SJa$","System$Collections$IDictionary$clear"],"p":["zNa$","buckets","ANa$","simpleBuckets","Gc$","count","aKa$","version","BNa$","freeList","CNa$","freeCount","hd$","comparer","DNa$","isSimpleKey","dLa$","Comparer","Cw$","Count","eLa$","System$Collections$Generic$IDictionary$2$Keys","fLa$","System$Collections$Generic$IReadOnlyDictionary$2$Keys","eKa$","Values","gLa$","System$Collections$Generic$IDictionary$2$Values","hLa$","System$Collections$Generic$IReadOnlyDictionary$2$Values","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","mKa$","System$Collections$IDictionary$IsFixedSize","lKa$","System$Collections$IDictionary$IsReadOnly","jKa$","System$Collections$IDictionary$Keys","kKa$","System$Collections$IDictionary$Values","iKa$","System$Collections$ICollection$Count"]},"s$":{"n":"HashSet$1","c":{"vy$":{"n":"ElementCount","c":{},"sm":[],"sp":[],"m":[],"p":["c$","uniqueCount","d$","unfoundCount"]},"wy$":{"n":"Enumerator","c":{},"sm":[],"sp":[],"m":["pLa$","System$IDisposable$Dispose","IKa$","System$Collections$IEnumerator$moveNext"],"p":["HOa$","_index","EOa$","_version","HPa$","_current","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]},"xy$":{"n":"Slot","c":{},"sm":[],"sp":[],"m":[],"p":["c$","hashCode","d$","value","e$","next"]}},"sm":[],"sp":["OQa$","Lower31BitMask","PQa$","ShrinkThreshold"],"m":[],"p":["GQa$","_buckets","HQa$","_slots","IQa$","_count","JQa$","_lastIndex","KQa$","_freeList","LQa$","_comparer","EOa$","_version","Cw$","Count","sGa$","IsReadOnly","dLa$","Comparer"]},"t$":{"n":"List$1","c":{"yy$":{"n":"Enumerator","c":{},"sm":[],"sp":[],"m":["oLa$","Dispose","GKa$","moveNext","QQa$","MoveNextRare","pLa$","System$IDisposable$Dispose","IKa$","System$Collections$IEnumerator$moveNext"],"p":["Ac$","list","Dc$","index","aKa$","version","KKa$","current","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]}},"sm":["FOa$","IsCompatibleObject"],"sp":["kLa$","_defaultCapacity","GOa$","_emptyArray"],"m":["zJa$","getItem","AJa$","setItem","yKa$","System$Collections$IList$getItem","zKa$","System$Collections$IList$setItem","uKa$","System$Collections$IList$add","aOa$","AddRange","bOa$","AsReadOnly","cOa$","BinarySearch$2","dOa$","BinarySearch","eOa$","BinarySearch$1","BJa$","clear","pJa$","contains","wKa$","System$Collections$IList$contains","fOa$","ConvertAll","HLa$","CopyTo","UJa$","System$Collections$ICollection$copyTo","ILa$","CopyTo$1","yJa$","copyTo","FJa$","EnsureCapacity","Lv$","Exists","gOa$","FindAll","hOa$","FindIndex$2","iOa$","FindIndex$1","jOa$","FindIndex","iNa$","FindLast","kOa$","FindLastIndex$2","lOa$","FindLastIndex$1","mOa$","FindLastIndex","nOa$","ForEach","IJa$","GetEnumerator","JLa$","System$Collections$Generic$IEnumerable$1$GetEnumerator","HJa$","System$Collections$IEnumerable$GetEnumerator","oOa$","GetRange","AKa$","System$Collections$IList$indexOf","pOa$","IndexOf","qOa$","IndexOf$1","vJa$","insert","xKa$","System$Collections$IList$insert","rOa$","InsertRange","sOa$","LastIndexOf","tOa$","LastIndexOf$1","uOa$","LastIndexOf$2","wJa$","remove","BKa$","System$Collections$IList$remove","vOa$","RemoveAll","tKa$","removeAt","wOa$","RemoveRange","Uqa$","Reverse","xOa$","Reverse$1","yOa$","Sort$1","zOa$","Sort$3","AOa$","Sort$2","SLa$","ToArray","cLa$","TrimExcess","BOa$","TrueForAll","COa$","toJSON","vKa$","System$Collections$IList$clear","CKa$","System$Collections$IList$removeAt"],"p":["DOa$","_items","ZJa$","_size","EOa$","_version","dKa$","Capacity","Cw$","Count","FKa$","System$Collections$IList$IsFixedSize","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","EKa$","System$Collections$IList$IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]},"u$":{"n":"Queue$1","c":{"By$":{"n":"Enumerator","c":{},"sm":[],"sp":[],"m":["pLa$","System$IDisposable$Dispose","IKa$","System$Collections$IEnumerator$moveNext"],"p":["HOa$","_index","EOa$","_version","IOa$","_currentElement","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]}},"sm":[],"sp":["ZQa$","MinimumGrow","aRa$","GrowFactor","bRa$","DefaultCapacity"],"m":["UJa$","System$Collections$ICollection$copyTo"],"p":["WQa$","_array","XQa$","_head","YQa$","_tail","ZJa$","_size","EOa$","_version","Cw$","Count","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","sGa$","IsReadOnly","iKa$","System$Collections$ICollection$Count"]},"v$":{"n":"Stack$1","c":{"Cy$":{"n":"Enumerator","c":{},"sm":[],"sp":[],"m":["pLa$","System$IDisposable$Dispose","IKa$","System$Collections$IEnumerator$moveNext"],"p":["cRa$","_stack","HOa$","_index","EOa$","_version","IOa$","_currentElement","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]}},"sm":[],"sp":["bRa$","DefaultCapacity"],"m":["UJa$","System$Collections$ICollection$copyTo"],"p":["WQa$","_array","ZJa$","_size","EOa$","_version","Cw$","Count","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","sGa$","IsReadOnly","iKa$","System$Collections$ICollection$Count"]},"Cv$":{"n":"KeyValuePair$2","c":{},"sm":["h$","getDefaultValue"],"sp":[],"m":["a$","Deconstruct","b$","getHashCode","c$","equals"],"p":["d$","key$1","e$","value$1","f$","key","g$","value"]},"Qv$":{"n":"SortedSetEqualityComparer$1","c":{},"sm":[],"sp":[],"m":[],"p":["e$","comparer","f$","e_comparer"]},"Uv$":{"n":"LinkedListNode$1","c":{},"sm":[],"sp":[],"m":[],"p":["b$","list","c$","next","d$","prev","e$","item","f$","List","g$","Next","h$","Previous","i$","Value"]},"Fe$":{"n":"TreeRotation","c":{}},"jw$":{"n":"CollectionExtensions","c":{}},"pw$":{"n":"EqualityComparer$1","c":{},"sm":[],"sp":[],"m":["a$","equals2","c$","getHashCode2"],"p":[]},"qw$":{"n":"Comparer$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"ku$":{"n":"KeyNotFoundException","c":{}},"ry$":{"n":"BitHelper","c":{}},"sy$":{"n":"DictionaryKeyCollectionDebugView$2","c":{},"sm":[],"sp":[],"m":[],"p":["a$","_collection","b$","Items"]},"ty$":{"n":"DictionaryValueCollectionDebugView$2","c":{},"sm":[],"sp":[],"m":[],"p":["a$","_collection","b$","Items"]},"zy$":{"n":"ICollectionDebugView$1","c":{},"sm":[],"sp":[],"m":[],"p":["a$","_collection","b$","Items"]},"Ay$":{"n":"IDictionaryDebugView$2","c":{},"sm":[],"sp":[],"m":[],"p":["a$","_dict","b$","Items"]},"aA$":{"n":"ListExtensions","c":{}},"Wv$":{"n":"SortedDictionary$2","c":{},"sm":[],"sp":[],"m":[],"p":[]},"zd$":{"n":"IEnumerable$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Ad$":{"n":"ICollection$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Hd$":{"n":"IEqualityComparer$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Bd$":{"n":"IDictionary$2","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Cd$":{"n":"IList$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Dd$":{"n":"ISet$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Ed$":{"n":"IReadOnlyCollection$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Fd$":{"n":"IReadOnlyList$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Gd$":{"n":"IReadOnlyDictionary$2","c":{},"sm":[],"sp":[],"m":[],"p":[]},"qd$":{"n":"IEnumerator$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Od$":{"n":"IComparer$1","c":{},"sm":[],"sp":[],"m":[],"p":[]}}},"x$":{"n":"SortedList","c":{"Gv$":{"n":"KeyList","c":{}},"Hv$":{"n":"SortedListDebugView","c":{}},"Iv$":{"n":"SortedListEnumerator","c":{}},"Fv$":{"n":"SyncSortedList","c":{}},"Jv$":{"n":"ValueList","c":{}}}},"z$":{"n":"ObjectModel","c":{"y$":{"n":"ReadOnlyDictionary$2","c":{"fw$":{"n":"DictionaryEnumerator","c":{},"sm":[],"sp":[],"m":["IKa$","System$Collections$IEnumerator$moveNext","JKa$","System$Collections$IEnumerator$reset"],"p":["SNa$","_dictionary","TNa$","_enumerator","Jsa$","Entry","zya$","Value","Fh$","Current","NKa$","System$Collections$IDictionaryEnumerator$Entry","MKa$","System$Collections$IDictionaryEnumerator$Key","PKa$","System$Collections$IDictionaryEnumerator$Value","OKa$","System$Collections$IEnumerator$Current"]},"gw$":{"n":"KeyCollection","c":{},"sm":[],"sp":[],"m":[],"p":["UNa$","_collection","Cw$","Count","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]},"hw$":{"n":"ValueCollection","c":{},"sm":[],"sp":[],"m":[],"p":["UNa$","_collection","Cw$","Count","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]}},"sm":[],"sp":["te$","NotSupported_ReadOnlyCollection"],"m":[],"p":["ONa$","m_dictionary","PNa$","_keys","QNa$","_values","RNa$","Dictionary","eKa$","Values","eLa$","System$Collections$Generic$IDictionary$2$Keys","gLa$","System$Collections$Generic$IDictionary$2$Values","Cw$","Count","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","mKa$","System$Collections$IDictionary$IsFixedSize","lKa$","System$Collections$IDictionary$IsReadOnly","jKa$","System$Collections$IDictionary$Keys","kKa$","System$Collections$IDictionary$Values","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","fLa$","System$Collections$Generic$IReadOnlyDictionary$2$Keys","hLa$","System$Collections$Generic$IReadOnlyDictionary$2$Values","iKa$","System$Collections$ICollection$Count"]},"iw$":{"n":"ReadOnlyDictionaryHelpers","c":{}},"Ey$":{"n":"Collection$1","c":{},"sm":[],"sp":[],"m":["vKa$","System$Collections$IList$clear","CKa$","System$Collections$IList$removeAt"],"p":["hRa$","items","iRa$","_syncRoot","Cw$","Count","jRa$","Items","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","EKa$","System$Collections$IList$IsReadOnly","FKa$","System$Collections$IList$IsFixedSize","iKa$","System$Collections$ICollection$Count"]},"Gy$":{"n":"ReadOnlyCollection$1","c":{},"sm":[],"sp":[],"m":[],"p":["Ac$","list","Cw$","Count","nKa$","System$Collections$ICollection$IsSynchronized","oKa$","System$Collections$ICollection$SyncRoot","jRa$","Items","FKa$","System$Collections$IList$IsFixedSize","iLa$","System$Collections$Generic$ICollection$1$IsReadOnly","EKa$","System$Collections$IList$IsReadOnly","iKa$","System$Collections$ICollection$Count"]},"Fy$":{"n":"KeyedCollection$2","c":{},"sm":[],"sp":[],"m":[],"p":[]}}},"A$":{"n":"BitArray","c":{"qy$":{"n":"BitArrayEnumeratorSimple","c":{}}}},"B$":{"n":"Hashtable","c":{"Wz$":{"n":"bucket","c":{}},"Xz$":{"n":"HashtableEnumerator","c":{}},"Yz$":{"n":"KeyCollection","c":{}},"Zz$":{"n":"ValueCollection","c":{}}},"sm":["Bab$","FixGetMethod"],"sp":["Cab$","HashPrime","Dab$","InitialSize"],"m":["RJa$","System$Collections$IDictionary$add","SJa$","System$Collections$IDictionary$clear","nGa$","System$ICloneable$clone","TJa$","System$Collections$IDictionary$contains","UJa$","System$Collections$ICollection$copyTo","WJa$","System$Collections$IDictionary$getItem","XJa$","System$Collections$IDictionary$setItem","VJa$","System$Collections$IDictionary$GetEnumerator","YJa$","System$Collections$IDictionary$remove"],"p":["zNa$","buckets","Gc$","count","wab$","occupancy","xab$","loadsize","yab$","loadFactor","aKa$","version","zab$","isWriterInProgress","Aab$","_keycomparer","iRa$","_syncRoot","sGa$","IsReadOnly","fKa$","IsFixedSize","gKa$","IsSynchronized","eKa$","Values","hKa$","SyncRoot","Cw$","Count","lKa$","System$Collections$IDictionary$IsReadOnly","mKa$","System$Collections$IDictionary$IsFixedSize","nKa$","System$Collections$ICollection$IsSynchronized","jKa$","System$Collections$IDictionary$Keys","kKa$","System$Collections$IDictionary$Values","oKa$","System$Collections$ICollection$SyncRoot","iKa$","System$Collections$ICollection$Count"]},"Dv$":{"n":"DictionaryEntry","c":{}},"Ev$":{"n":"KeyValuePairs","c":{}},"Dy$":{"n":"HashHelpers","c":{},"sm":["a$","Combine","b$","IsPrime","c$","GetPrime","d$","GetMinPrime","e$","ExpandPrime"],"sp":["f$","HashPrime","g$","MaxPrimeArrayLength","h$","RandomSeed","i$","primes"],"m":[],"p":[]},"rw$":{"n":"ArrayList","c":{}},"vd$":{"n":"IEnumerable","c":{},"sm":[],"sp":[],"m":[],"p":[]},"wd$":{"n":"ICollection","c":{},"sm":[],"sp":[],"m":[],"p":[]},"xd$":{"n":"IList","c":{},"sm":[],"sp":[],"m":[],"p":[]},"yd$":{"n":"IDictionary","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Id$":{"n":"IEnumerator","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Kd$":{"n":"IComparer","c":{}},"Jd$":{"n":"IDictionaryEnumerator","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Ld$":{"n":"IEqualityComparer","c":{}},"Md$":{"n":"IStructuralComparable","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Nd$":{"n":"IStructuralEquatable","c":{},"sm":[],"sp":[],"m":[],"p":[]}}},"E$":{"n":"Threading","c":{"D$":{"n":"Tasks","c":{"tw$":{"n":"Task","c":{},"sm":["bPa$","runQueue","cPa$","schedule","ud$","delay","dPa$","fromResult","ePa$","whenAll","fPa$","whenAny","gPa$","fromCallback","hPa$","fromCallbackResult","iPa$","fromCallbackOptions","jPa$","fromPromise"],"sp":["kPa$","queue"],"m":["JOa$","getException","KOa$","waitt","LOa$","continue","MOa$","setSynchronous","NOa$","continueWith","Md$","start","OOa$","runCallbacks","POa$","complete","QOa$","cancel","ROa$","isCanceled","SOa$","isCompleted","TOa$","isFaulted","UOa$","_getResult","VOa$","getResult","WOa$","dispose","XOa$","getAwaiter","YOa$","getAwaitedResult","pLa$","System$IDisposable$Dispose"],"p":["ZOa$","IsCompleted","aPa$","System$IAsyncResult$IsCompleted"]},"uw$":{"n":"Task$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Ge$":{"n":"TaskStatus","c":{},"sm":[],"sp":["kb$","created","lb$","waitingForActivation","mb$","waitingToRun","nb$","running","ob$","waitingForChildrenToComplete","pb$","ranToCompletion","qb$","canceled","rb$","faulted"],"m":[],"p":[]},"vw$":{"n":"TaskCompletionSource","c":{},"sm":[],"sp":[],"m":["a$","setCanceled","b$","setResult","c$","setException","d$","trySetCanceled","e$","trySetResult","f$","trySetException"],"p":[]},"Fu$":{"n":"TaskCanceledException","c":{}},"Xu$":{"n":"TaskSchedulerException","c":{}}}},"ww$":{"n":"CancellationTokenSource","c":{}},"xw$":{"n":"CancellationToken","c":{},"sm":[],"sp":["j$","sourceTrue","k$","sourceFalse"],"m":[],"p":[]},"yw$":{"n":"CancellationTokenRegistration","c":{},"sm":[],"sp":[],"m":["pLa$","System$IDisposable$Dispose"],"p":[]},"Sz$":{"n":"Timer","c":{}},"Tz$":{"n":"Thread","c":{}},"qA$":{"n":"ManualResetEvent","c":{}},"rA$":{"n":"SynchronizationContext","c":{}},"uf$":{"n":"ThreadPriority","c":{}}}},"F$":{"n":"ComponentModel","c":{"Fx$":{"n":"PropertyChangedEventArgs","c":{}},"Mw$":{"n":"BrowsableAttribute","c":{}},"Nw$":{"n":"DefaultValueAttribute","c":{},"sm":[],"sp":[],"m":[],"p":["L$","_value","N$","Value"]},"bA$":{"n":"TypeDescriptor","c":{}},"Pd$":{"n":"INotifyPropertyChanged","c":{}}}},"H$":{"n":"Net","c":{"G$":{"n":"WebSockets","c":{"Gx$":{"n":"ClientWebSocket","c":{}},"Hx$":{"n":"ClientWebSocketOptions","c":{}},"Ix$":{"n":"WebSocketReceiveResult","c":{}}}},"if$":{"n":"HttpStatusCode","c":{}}}},"I$":{"n":"Linq","c":{"Nx$":{"n":"IOrderedEnumerable$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Ox$":{"n":"ILookup$2","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Px$":{"n":"IGrouping$2","c":{},"sm":[],"sp":[],"m":[],"p":[]}}},"N$":{"n":"Runtime","c":{"J$":{"n":"Serialization","c":{"Bw$":{"n":"CollectionDataContractAttribute","c":{}},"Cw$":{"n":"ContractNamespaceAttribute","c":{}},"Dw$":{"n":"DataContractAttribute","c":{}},"Ew$":{"n":"DataMemberAttribute","c":{}},"Fw$":{"n":"EnumMemberAttribute","c":{}},"Gw$":{"n":"IgnoreDataMemberAttribute","c":{}},"Ru$":{"n":"InvalidDataContractException","c":{}},"Hw$":{"n":"KnownTypeAttribute","c":{}},"Qx$":{"n":"SerializationEntry","c":{}},"lu$":{"n":"SerializationException","c":{}},"Rx$":{"n":"SerializationInfoEnumerator","c":{}},"Sx$":{"n":"StreamingContext","c":{}},"He$":{"n":"StreamingContextStates","c":{}},"Iw$":{"n":"OnSerializingAttribute","c":{}},"Jw$":{"n":"OnSerializedAttribute","c":{}},"Kw$":{"n":"OnDeserializingAttribute","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Lw$":{"n":"OnDeserializedAttribute","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Qd$":{"n":"IDeserializationCallback","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Rd$":{"n":"IFormatterConverter","c":{}},"Sd$":{"n":"IObjectReference","c":{}},"Td$":{"n":"ISafeSerializationData","c":{}},"Ud$":{"n":"ISerializable","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Vd$":{"n":"ISerializationSurrogateProvider","c":{}}}},"L$":{"n":"CompilerServices","c":{"K$":{"n":"FormattableStringFactory","c":{"Py$":{"n":"ConcreteFormattableString","c":{}}}}}},"M$":{"n":"InteropServices","c":{"tf$":{"n":"UnmanagedType","c":{}}}}}},"R$":{"n":"Security","c":{"O$":{"n":"AccessControl","c":{"tA$":{"n":"CryptoKeySecurity","c":{}}}},"P$":{"n":"Cryptography","c":{"uA$":{"n":"AesManaged","c":{}},"vf$":{"n":"CipherMode","c":{}},"uz$":{"n":"CryptoStream","c":{}},"wf$":{"n":"CryptoStreamMode","c":{}},"vA$":{"n":"CspParameters","c":{}},"xf$":{"n":"CspProviderFlags","c":{}},"wA$":{"n":"DeriveBytes","c":{}},"yA$":{"n":"HashAlgorithm","c":{}},"zA$":{"n":"KeySizes","c":{}},"MD5":{"n":"MD5","c":{}},"yf$":{"n":"PaddingMode","c":{}},"AA$":{"n":"RandomNumberGenerator","c":{}},"xA$":{"n":"Rfc2898DeriveBytes","c":{}},"CA$":{"n":"SymmetricAlgorithm","c":{}},"DA$":{"n":"Rijndael","c":{}},"EA$":{"n":"RijndaelManaged","c":{}},"BA$":{"n":"RNGCryptoServiceProvider","c":{}},"sd$":{"n":"ICryptoTransform","c":{}}}},"Q$":{"n":"Permissions","c":{"zf$":{"n":"PermissionState","c":{}}}},"mu$":{"n":"SecurityException","c":{}},"FA$":{"n":"PermissionSet","c":{}},"GA$":{"n":"SecureString","c":{}},"HA$":{"n":"SecurityElement","c":{}},"ce$":{"n":"ISecurityEncodable","c":{}},"de$":{"n":"IPermission","c":{}}}},"IO":{"n":"IO","c":{"S$":{"n":"Stream","c":{"tz$":{"n":"NullStream","c":{}},"yz$":{"n":"SynchronousAsyncResult","c":{}}}},"T$":{"n":"StreamReader","c":{"zz$":{"n":"NullStreamReader","c":{}}}},"U$":{"n":"TextReader","c":{"Bz$":{"n":"NullTextReader","c":{}}}},"V$":{"n":"TextWriter","c":{"Ez$":{"n":"NullTextWriter","c":{}}}},"oz$":{"n":"BinaryReader","c":{}},"pz$":{"n":"BinaryWriter","c":{}},"qz$":{"n":"BufferedStream","c":{}},"Gu$":{"n":"IOException","c":{}},"Hu$":{"n":"EndOfStreamException","c":{}},"vz$":{"n":"File","c":{}},"Xe$":{"n":"FileMode","c":{}},"Ye$":{"n":"FileOptions","c":{}},"Ze$":{"n":"FileShare","c":{}},"rz$":{"n":"FileStream","c":{}},"wz$":{"n":"Iterator$1","c":{},"sm":[],"sp":[],"m":["pLa$","System$IDisposable$Dispose"],"p":["Qd$","state","KKa$","current","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]},"sz$":{"n":"MemoryStream","c":{}},"xz$":{"n":"ReadLinesIterator","c":{}},"af$":{"n":"SeekOrigin","c":{}},"Cz$":{"n":"StreamWriter","c":{}},"Az$":{"n":"StringReader","c":{}},"Dz$":{"n":"StringWriter","c":{}},"Fz$":{"n":"__Error","c":{}},"cA$":{"n":"Directory","c":{}},"dA$":{"n":"DirectoryInfo","c":{}},"hf$":{"n":"FileAttributes","c":{}},"eA$":{"n":"FileEx","c":{}},"fA$":{"n":"FileInfo","c":{}},"gA$":{"n":"Path","c":{}}}},"W$":{"n":"Version","c":{"Uz$":{"n":"ParseFailureKind","c":{}},"Vz$":{"n":"VersionResult","c":{}}},"sm":[],"sp":["kab$","ZERO_CHAR_VALUE","lab$","separatorsArray"],"m":["nGa$","System$ICloneable$clone","XZa$","System$IEquatable$1$System$Version$equalsT"],"p":["YZa$","_Major","ZZa$","_Minor","aab$","_Build","bab$","_Revision","cab$","Major","dab$","Minor","Kq$","Build","eab$","Revision","fab$","MajorRevision","gab$","MinorRevision"]},"Y$":{"n":"Xml","c":{"X$":{"n":"Linq","c":{"sA$":{"n":"XObject","c":{}}}}}},"Object":{"n":"Object","c":{},"sm":[],"sp":[],"m":[],"p":[]},"we$":{"n":"Void","c":{},"sm":[],"sp":[],"m":[],"p":[]},"ye$":{"n":"ValueType","c":{}},"ze$":{"n":"Enum","c":{},"sm":["s$","nameEquals","t$","checkEnumType","u$","getUnderlyingType","v$","toName","w$","toObject","x$","parse","y$","toStringFn","z$","getValuesAndNames","A$","getValues","B$","format","C$","getNames","D$","getName","E$","hasFlag","F$","isDefined","G$","tryParse","H$","equals","I$","equalsT"],"sp":[],"m":[],"p":[]},"au$":{"n":"Nullable$1","c":{},"sm":[],"sp":["b$","$nullable","c$","$nullableType"],"m":[],"p":[]},"bu$":{"n":"Char","c":{},"sm":["OFa$","isWhiteSpace"],"sp":["gGa$","IS_LETTER_REGEX","hGa$","IS_DIGIT_REGEX","iGa$","IS_PUNCTUATION_REGEX","jGa$","IS_SEPARATOR_REGEX","kGa$","PUNCTUATION_CODES"],"m":[],"p":[]},"du$":{"n":"HResults","c":{}},"fu$":{"n":"Exception","c":{},"sm":[],"sp":[],"m":["a$","getBaseException"],"p":["b$","Message","c$","InnerException","d$","StackTrace","e$","TargetSite","f$","Data","g$","HResult"]},"gu$":{"n":"SystemException","c":{},"sm":[],"sp":[],"m":[],"p":[]},"hu$":{"n":"OutOfMemoryException","c":{}},"iu$":{"n":"ArrayTypeMismatchException","c":{}},"pv$":{"n":"Environment","c":{}},"Ce$":{"n":"StringSplitOptions","c":{}},"De$":{"n":"TypeCode","c":{}},"qv$":{"n":"TypeCodeValues","c":{}},"rv$":{"n":"Type","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Boolean":{"n":"Boolean","c":{},"sm":[],"sp":["VGa$","trueString","WGa$","falseString"],"m":[],"p":[]},"uv$":{"n":"Double","c":{},"sm":["NFa$","getDefaultValue"],"sp":["CHa$","precision","AHa$","$number"],"m":[],"p":[]},"vv$":{"n":"Single","c":{},"sm":["B$","format"],"sp":["CHa$","precision","AHa$","$number","NFa$","getDefaultValue","x$","parse","G$","tryParse","BHa$","tryParse4","dGa$","getHashCode"],"m":[],"p":[]},"wv$":{"n":"DateTime","c":{},"sm":["DHa$","getMinTicks","EHa$","getMaxTicks","NFa$","getDefaultValue","FHa$","getMinValue","JHa$","getTicks","KHa$","create$2","MHa$","getNow"],"sp":["zIa$","$minTicks","AIa$","$maxTicks","BIa$","$minOffset","CIa$","$maxOffset","DIa$","$default","EIa$","TicksPerDay","FIa$","DaysTo1970","GIa$","YearDaysByMonth","HIa$","$FileTimeOffset"],"m":[],"p":[]},"xv$":{"n":"TimeSpan","c":{},"sm":["ZIa$","fromMilliseconds"],"sp":["dJa$","timeSpanWithDays","eJa$","timeSpanNoDays"],"m":["JHa$","getTicks","QIa$","getTotalMilliseconds"],"p":[]},"Array":{"n":"Array","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Bv$":{"n":"ArraySegment","c":{}},"String":{"n":"String","c":{},"sm":["fJa$","fromCharArray","gJa$","lastIndexOfAny","hJa$","isNullOrWhiteSpace","iJa$","isNullOrEmpty","jJa$","fromCharCount","B$","format","kJa$","formatProvider","lJa$","_format","mJa$","handleElement","nJa$","decodeBraceSequence","oJa$","alignString","pJa$","contains","qJa$","indexOfAny","H$","equals","rJa$","swapCase","sJa$","compare","tJa$","toCharArray","uJa$","escape","vJa$","insert","wJa$","remove","xJa$","trimStartZeros","yJa$","copyTo"],"sp":[],"m":[],"p":[]},"kw$":{"n":"StringComparer","c":{}},"lw$":{"n":"OrdinalComparer","c":{}},"sw$":{"n":"CharEnumerator","c":{}},"zw$":{"n":"Attribute","c":{},"sm":["a$","getCustomAttributes","b$","getCustomAttributes$1","c$","isDefined"],"sp":[],"m":[],"p":[]},"Aw$":{"n":"SerializableAttribute","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Uri":{"n":"Uri","c":{},"sm":[],"sp":[],"m":[],"p":[]},"nu$":{"n":"UnauthorizedAccessException","c":{}},"Tx$":{"n":"UnhandledExceptionEventArgs","c":{}},"py$":{"n":"BitConverter","c":{}},"Hy$":{"n":"Console","c":{}},"Je$":{"n":"TokenType","c":{}},"Iy$":{"n":"UnitySerializationHolder","c":{}},"Ke$":{"n":"DateTimeKind","c":{}},"Jy$":{"n":"DateTimeOffset","c":{},"sm":["hSa$","ValidateOffset","iSa$","ValidateDate"],"sp":["rSa$","MaxOffset","sSa$","MinOffset","tSa$","UnixEpochTicks","uSa$","UnixEpochSeconds","vSa$","UnixEpochMilliseconds","wSa$","MinValue","xSa$","MaxValue","ySa$","UtcNow"],"m":["LRa$","System$IEquatable$1$System$DateTimeOffset$equalsT","MRa$","System$IFormattable$format"],"p":["NRa$","m_dateTime","ORa$","m_offsetMinutes","Za$","DateTime","PRa$","UtcDateTime","QRa$","LocalDateTime","RRa$","ClockDateTime","SRa$","DayOfWeek","TRa$","DayOfYear","VC$","Hour","txa$","Millisecond","WC$","Minute","UC$","Month","URa$","Offset","XC$","Second","VRa$","Ticks","WRa$","UtcTicks","XRa$","TimeOfDay","TC$","Year"]},"Ky$":{"n":"DateTimeParse","c":{}},"Ly$":{"n":"DateTimeResult","c":{}},"Le$":{"n":"DayOfWeek","c":{}},"My$":{"n":"DBNull","c":{}},"Ny$":{"n":"Empty","c":{}},"Su$":{"n":"ApplicationException","c":{}},"ou$":{"n":"ArgumentException","c":{},"sm":[],"sp":[],"m":[],"p":["x$","_paramName","b$","Message","y$","ParamName"]},"pu$":{"n":"ArgumentNullException","c":{}},"qu$":{"n":"ArgumentOutOfRangeException","c":{},"sm":[],"sp":[],"m":[],"p":["z$","_actualValue","b$","Message","A$","ActualValue"]},"su$":{"n":"ArithmeticException","c":{}},"Me$":{"n":"Base64FormattingOptions","c":{}},"tu$":{"n":"DivideByZeroException","c":{}},"Ne$":{"n":"ExceptionArgument","c":{}},"Oe$":{"n":"ExceptionResource","c":{}},"vu$":{"n":"FormatException","c":{}},"Oy$":{"n":"FormattableString","c":{}},"Qy$":{"n":"Guid","c":{},"sm":["bTa$","NewGuid"],"sp":["eTa$","error1","zFa$","Valid","fTa$","Split","gTa$","NonFormat","Aha$","Replace","La$","Empty"],"m":["dGa$","getHashCode","ZSa$","System$IEquatable$1$System$Guid$equalsT","MRa$","System$IFormattable$format"],"p":[]},"Ry$":{"n":"Tuple","c":{}},"Sy$":{"n":"Tuple$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Ty$":{"n":"Tuple$2","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Uy$":{"n":"Tuple$3","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Vy$":{"n":"Tuple$4","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Wy$":{"n":"Tuple$5","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Xy$":{"n":"Tuple$6","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Yy$":{"n":"Tuple$7","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Zy$":{"n":"Tuple$8","c":{},"sm":[],"sp":[],"m":[],"p":[]},"az$":{"n":"ValueTuple","c":{},"sm":[],"sp":[],"m":["kTa$","System$IEquatable$1$System$ValueTuple$equalsT"],"p":[]},"bz$":{"n":"ValueTuple$1","c":{},"sm":[],"sp":["ETa$","s_t1Comparer"],"m":[],"p":["CTa$","Item1","DTa$","System$ITupleInternal$Size"]},"cz$":{"n":"ValueTuple$2","c":{},"sm":[],"sp":["ETa$","s_t1Comparer","HTa$","s_t2Comparer"],"m":[],"p":["CTa$","Item1","GTa$","Item2","DTa$","System$ITupleInternal$Size"]},"dz$":{"n":"ValueTuple$3","c":{},"sm":[],"sp":["ETa$","s_t1Comparer","HTa$","s_t2Comparer","JTa$","s_t3Comparer"],"m":[],"p":["CTa$","Item1","GTa$","Item2","ITa$","Item3","DTa$","System$ITupleInternal$Size"]},"ez$":{"n":"ValueTuple$4","c":{},"sm":[],"sp":["ETa$","s_t1Comparer","HTa$","s_t2Comparer","JTa$","s_t3Comparer","LTa$","s_t4Comparer"],"m":[],"p":["CTa$","Item1","GTa$","Item2","ITa$","Item3","KTa$","Item4","DTa$","System$ITupleInternal$Size"]},"fz$":{"n":"ValueTuple$5","c":{},"sm":[],"sp":["ETa$","s_t1Comparer","HTa$","s_t2Comparer","JTa$","s_t3Comparer","LTa$","s_t4Comparer","NTa$","s_t5Comparer"],"m":[],"p":["CTa$","Item1","GTa$","Item2","ITa$","Item3","KTa$","Item4","MTa$","Item5","DTa$","System$ITupleInternal$Size"]},"gz$":{"n":"ValueTuple$6","c":{},"sm":[],"sp":["ETa$","s_t1Comparer","HTa$","s_t2Comparer","JTa$","s_t3Comparer","LTa$","s_t4Comparer","NTa$","s_t5Comparer","PTa$","s_t6Comparer"],"m":[],"p":["CTa$","Item1","GTa$","Item2","ITa$","Item3","KTa$","Item4","MTa$","Item5","OTa$","Item6","DTa$","System$ITupleInternal$Size"]},"hz$":{"n":"ValueTuple$7","c":{},"sm":[],"sp":["ETa$","s_t1Comparer","HTa$","s_t2Comparer","JTa$","s_t3Comparer","LTa$","s_t4Comparer","NTa$","s_t5Comparer","PTa$","s_t6Comparer","RTa$","s_t7Comparer"],"m":[],"p":["CTa$","Item1","GTa$","Item2","ITa$","Item3","KTa$","Item4","MTa$","Item5","OTa$","Item6","QTa$","Item7","DTa$","System$ITupleInternal$Size"]},"iz$":{"n":"ValueTuple$8","c":{},"sm":[],"sp":["ETa$","s_t1Comparer","HTa$","s_t2Comparer","JTa$","s_t3Comparer","LTa$","s_t4Comparer","NTa$","s_t5Comparer","PTa$","s_t6Comparer","RTa$","s_t7Comparer","STa$","s_tRestComparer"],"m":[],"p":["CTa$","Item1","GTa$","Item2","ITa$","Item3","KTa$","Item4","MTa$","Item5","OTa$","Item6","QTa$","Item7","DTa$","System$ITupleInternal$Size"]},"wu$":{"n":"IndexOutOfRangeException","c":{}},"xu$":{"n":"InvalidCastException","c":{}},"yu$":{"n":"InvalidOperationException","c":{}},"zu$":{"n":"ObjectDisposedException","c":{}},"Au$":{"n":"InvalidProgramException","c":{}},"Uu$":{"n":"MissingMethodException","c":{}},"mz$":{"n":"NotImplemented","c":{}},"Bu$":{"n":"NotImplementedException","c":{}},"Cu$":{"n":"NotSupportedException","c":{}},"Du$":{"n":"NullReferenceException","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Eu$":{"n":"OperationCanceledException","c":{}},"uu$":{"n":"OverflowException","c":{}},"Ve$":{"n":"ParseFailureKind","c":{}},"We$":{"n":"ParseFlags","c":{}},"Jz$":{"n":"Random","c":{},"sm":[],"sp":["l$","MBIG","m$","MSEED"],"m":["b$","InternalSample","h$","NextBytes"],"p":["i$","inext","j$","inextp","k$","SeedArray"]},"Ju$":{"n":"RankException","c":{}},"SR":{"n":"SR","c":{}},"gf$":{"n":"StringComparison","c":{},"sm":[],"sp":["Yi$","CurrentCulture","Zi$","CurrentCultureIgnoreCase","aj$","InvariantCulture","bj$","InvariantCultureIgnoreCase","cj$","Ordinal","dj$","OrdinalIgnoreCase"],"m":[],"p":[]},"Vu$":{"n":"AggregateException","c":{},"sm":[],"sp":[],"m":["X$","handle","a$","getBaseException","Y$","hasTaskCanceledException","Z$","flatten"],"p":[]},"Kz$":{"n":"ThrowHelper","c":{}},"Ku$":{"n":"TimeoutException","c":{}},"Lu$":{"n":"RegexMatchTimeoutException","c":{}},"Yu$":{"n":"FileNotFoundException","c":{}},"hA$":{"n":"CharExtensions","c":{}},"iA$":{"n":"DateTimeExtensions","c":{}},"GC":{"n":"GC","c":{}},"Mu$":{"n":"NotImplementedAccessorException","c":{}},"Nu$":{"n":"NotImplementedMethodException","c":{}},"Ou$":{"n":"NotSupportedMethodException","c":{}},"jA$":{"n":"PropertyInfoExtensions","c":{}},"kA$":{"n":"StringExtensions","c":{}},"lA$":{"n":"UriBuilder","c":{}},"mA$":{"n":"WeakReference","c":{}},"id$":{"n":"IFormattable","c":{},"sm":[],"sp":[],"m":[],"p":[]},"jd$":{"n":"IComparable","c":{},"sm":[],"sp":[],"m":[],"p":[]},"kd$":{"n":"IFormatProvider","c":{},"sm":[],"sp":[],"m":[],"p":[]},"ld$":{"n":"ICloneable","c":{},"sm":[],"sp":[],"m":[],"p":[]},"md$":{"n":"IComparable$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"nd$":{"n":"IEquatable$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"pd$":{"n":"IDisposable","c":{},"sm":[],"sp":[],"m":[],"p":[]},"td$":{"n":"IAsyncResult","c":{},"sm":[],"sp":[],"m":[],"p":[]},"ud$":{"n":"IConvertible","c":{}},"Wd$":{"n":"ITupleInternal","c":{},"sm":[],"sp":[],"m":[],"p":[]}}},"Bridge":{"n":"Bridge","c":{"aa$":{"n":"Utils","c":{"xe$":{"n":"SystemAssemblyVersion","c":{}}}},"ba$":{"n":"Collections","c":{"uy$":{"n":"EnumerableHelpers","c":{}}}},"cu$":{"n":"Ref$1","c":{},"sm":[],"sp":[],"m":[],"p":["a$","getter","b$","setter","c$","Value"]},"Int":{"n":"Int","c":{},"sm":["B$","format","XGa$","defaultFormat","bHa$","tryParseInt","fHa$","trunc"],"sp":["AHa$","$number"],"m":[],"p":[]},"mw$":{"n":"CustomEnumerator","c":{}},"nw$":{"n":"ArrayEnumerator","c":{},"sm":[],"sp":["ZNa$","$isArrayEnumerator"],"m":["GKa$","moveNext","VNa$","getCurrent","HKa$","reset","XNa$","System$Collections$IEnumerator$getCurrent","IKa$","System$Collections$IEnumerator$moveNext","JKa$","System$Collections$IEnumerator$reset"],"p":["oLa$","Dispose","Fh$","Current","YNa$","Current$1","pLa$","System$IDisposable$Dispose","OKa$","System$Collections$IEnumerator$Current"]},"ow$":{"n":"ArrayEnumerable","c":{}},"Jx$":{"n":"GeneratorEnumerable","c":{}},"Kx$":{"n":"GeneratorEnumerable$1","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Lx$":{"n":"GeneratorEnumerator","c":{},"sm":[],"sp":[],"m":["VNa$","getCurrent","XNa$","System$Collections$IEnumerator$getCurrent","JKa$","System$Collections$IEnumerator$reset"],"p":["KKa$","current","Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]},"Mx$":{"n":"GeneratorEnumerator$1","c":{},"sm":[],"sp":[],"m":["pLa$","System$IDisposable$Dispose","JKa$","System$Collections$IEnumerator$reset"],"p":["KKa$","current","Fh$","Current","YNa$","Current$1","OKa$","System$Collections$IEnumerator$Current"]},"Wu$":{"n":"PromiseException","c":{}},"od$":{"n":"IPromise","c":{}}}},"ca$":{"n":"AppsFlyerSDK","c":{}},"da$":{"n":"AudienceNetwork","c":{}},"Lb$":{"n":"UnityEngine","c":{"ea$":{"n":"Advertisements","c":{}},"AI":{"n":"AI","c":{}},"fa$":{"n":"Analytics","c":{}},"ga$":{"n":"Android","c":{}},"ha$":{"n":"Animations","c":{}},"ia$":{"n":"AnimationState","c":{}},"ja$":{"n":"Animator","c":{}},"ka$":{"n":"Animators","c":{}},"la$":{"n":"Apple","c":{}},"ma$":{"n":"Assertions","c":{}},"na$":{"n":"Audio","c":{}},"oa$":{"n":"Bindings","c":{}},"pa$":{"n":"Camera","c":{}},"qa$":{"n":"CompositeCollider2D","c":{}},"ra$":{"n":"Debugger","c":{}},"sa$":{"n":"Diagnostics","c":{}},"ta$":{"n":"Events","c":{}},"ua$":{"n":"EventSystems","c":{}},"ya$":{"n":"Experimental","c":{"AI":{"n":"AI","c":{}},"va$":{"n":"Animations","c":{}},"wa$":{"n":"GlobalIllumination","c":{}},"xa$":{"n":"Rendering","c":{}},"XR":{"n":"XR","c":{}}}},"GUI":{"n":"GUI","c":{}},"za$":{"n":"GUILayout","c":{}},"Ba$":{"n":"Internal","c":{"Aa$":{"n":"Physics","c":{}}}},"IO":{"n":"IO","c":{}},"iOS":{"n":"iOS","c":{}},"Ca$":{"n":"LayerMask","c":{}},"Da$":{"n":"LineRenderer","c":{}},"Ga$":{"n":"Networking","c":{"Ea$":{"n":"PlayerConnection","c":{}},"Fa$":{"n":"Types","c":{}}}},"Ha$":{"n":"NVIDIA","c":{}},"Ia$":{"n":"ParticleSystem","c":{}},"Ka$":{"n":"Playables","c":{"Ja$":{"n":"FrameData","c":{}}}},"La$":{"n":"PlayerPrefs","c":{}},"Ma$":{"n":"PolygonCollider2D","c":{}},"Pa$":{"n":"Profiling","c":{"Oa$":{"n":"Memory","c":{"Na$":{"n":"Experimental","c":{}}}}}},"Ta$":{"n":"Purchasing","c":{"Qa$":{"n":"Models","c":{}},"Ra$":{"n":"Security","c":{}},"Sa$":{"n":"Telemetry","c":{}}}},"Ua$":{"n":"RectTransform","c":{}},"ab$":{"n":"Rendering","c":{"Wa$":{"n":"Lines","c":{"Va$":{"n":"LineHelper","c":{}}}},"Xa$":{"n":"RendererUtils","c":{}},"Ya$":{"n":"Universal","c":{}},"Za$":{"n":"VirtualTexturing","c":{}}}},"bb$":{"n":"Resources","c":{}},"cb$":{"n":"Scripting","c":{}},"db$":{"n":"SceneManagement","c":{}},"eb$":{"n":"Search","c":{}},"fb$":{"n":"Serialization","c":{}},"gb$":{"n":"SocialPlatforms","c":{}},"hb$":{"n":"Sprites","c":{}},"ib$":{"n":"TerrainTools","c":{}},"jb$":{"n":"TerrainUtils","c":{}},"kb$":{"n":"TestTools","c":{}},"nb$":{"n":"TextCore","c":{"lb$":{"n":"LowLevel","c":{}},"mb$":{"n":"Text","c":{}}}},"ob$":{"n":"Tilemaps","c":{}},"rb$":{"n":"Timeline","c":{"pb$":{"n":"TimeFieldAttribute","c":{}},"qb$":{"n":"TimelineAsset","c":{}}}},"sb$":{"n":"Tools","c":{}},"tb$":{"n":"TouchScreenKeyboard","c":{}},"ub$":{"n":"TrailRenderer","c":{}},"vb$":{"n":"tvOS","c":{}},"U2D":{"n":"U2D","c":{}},"UI":{"n":"UI","c":{}},"zb$":{"n":"UIElements","c":{"xb$":{"n":"StyleSheets","c":{"wb$":{"n":"Syntax","c":{}}}},"UIR":{"n":"UIR","c":{"yb$":{"n":"Implementation","c":{}}}}}},"VFX":{"n":"VFX","c":{}},"Ab$":{"n":"Video","c":{}},"Bb$":{"n":"WheelCollider","c":{}},"Eb$":{"n":"Windows","c":{"Cb$":{"n":"Speech","c":{}},"Db$":{"n":"WebCam","c":{}}}},"WSA":{"n":"WSA","c":{}},"XR":{"n":"XR","c":{"Fb$":{"n":"Tango","c":{}},"WSA":{"n":"WSA","c":{"Gb$":{"n":"Input","c":{}}}}}},"Hb$":{"n":"Yoga","c":{}},"Ib$":{"n":"AnimatorStateInfo","c":{}},"Jb$":{"n":"AnimatorTransitionInfo","c":{}},"Kb$":{"n":"StyleSheets","c":{}}}},"Mb$":{"n":"Facebook","c":{"Unity":{"n":"Unity","c":{}}}},"Pb$":{"n":"Firebase","c":{"Nb$":{"n":"Analytics","c":{}},"Ob$":{"n":"Platform","c":{}}}},"Qb$":{"n":"Fyber","c":{}},"Sb$":{"n":"GameAnalyticsSDK","c":{"Rb$":{"n":"Editor","c":{}}}},"Ub$":{"n":"GoogleMobileAds","c":{"Api":{"n":"Api","c":{}},"Tb$":{"n":"Common","c":{}},"Ump":{"n":"Ump","c":{"Api":{"n":"Api","c":{}}}}}},"Yb$":{"n":"InMobiAds","c":{"Api":{"n":"Api","c":{}},"Xb$":{"n":"Editor","c":{"Wb$":{"n":"ThirdParty","c":{"Vb$":{"n":"xcodeapi","c":{"PBX":{"n":"PBX","c":{}}}}}}}}}},"Fc$":{"n":"Luna","c":{"Unity":{"n":"Unity","c":{"Zb$":{"n":"Analytics","c":{}},"DTO":{"n":"DTO","c":{"ac$":{"n":"Attributes","c":{}},"a$":{"n":"UnityEngine","c":{"gc$":{"n":"Animation","c":{"dc$":{"n":"Data","c":{"bc$":{"n":"AnimationClip","c":{}},"cc$":{"n":"AnimationCurve","c":{"Key":{"n":"Key","c":{}}}}}},"fc$":{"n":"Mecanim","c":{"ec$":{"n":"Avatar","c":{}}}}}},"hc$":{"n":"Animations","c":{}},"sc$":{"n":"Assets","c":{"ic$":{"n":"Font","c":{}},"jc$":{"n":"Material","c":{}},"kc$":{"n":"Mesh","c":{}},"nc$":{"n":"ProjectSettings","c":{"lc$":{"n":"Physics2DSettings","c":{}},"mc$":{"n":"PhysicsSettings","c":{}}}},"oc$":{"n":"RenderSettings","c":{}},"pc$":{"n":"Resources","c":{}},"rc$":{"n":"Shader","c":{"qc$":{"n":"Pass","c":{}}}}}},"uc$":{"n":"Audio","c":{"tc$":{"n":"AudioMixerSnapshot","c":{}}}},"xc$":{"n":"Components","c":{"vc$":{"n":"SkinnedMeshRenderer","c":{}},"wc$":{"n":"TrailRenderer","c":{}}}},"yc$":{"n":"ParticleSystemModules","c":{}},"Ac$":{"n":"ParticleSystemTypes","c":{"zc$":{"n":"Data","c":{}}}},"Bc$":{"n":"Scene","c":{}},"Cc$":{"n":"Textures","c":{}}}}}},"Dc$":{"n":"FacebookInstantGames","c":{}},"Ec$":{"n":"Nucleo","c":{}}}}}},"Lc$":{"n":"LunaUnity","c":{"Gc$":{"n":"Application","c":{}},"Hc$":{"n":"Audio","c":{}},"Jc$":{"n":"Objects","c":{"Ic$":{"n":"Registry","c":{}}}},"Kc$":{"n":"Utils","c":{}}}},"Mc$":{"n":"Playcanvas","c":{}},"Unity":{"n":"Unity","c":{"Pc$":{"n":"Collections","c":{"Oc$":{"n":"LowLevel","c":{"Nc$":{"n":"Unsafe","c":{}}}}}},"Qc$":{"n":"Curl","c":{}},"IO":{"n":"IO","c":{"Sc$":{"n":"LowLevel","c":{"Rc$":{"n":"Unsafe","c":{}}}}}},"Vc$":{"n":"Jobs","c":{"Uc$":{"n":"LowLevel","c":{"Tc$":{"n":"Unsafe","c":{}}}}}},"Yc$":{"n":"Profiling","c":{"Wc$":{"n":"Editor","c":{}},"Xc$":{"n":"LowLevel","c":{}}}},"ad$":{"n":"Rendering","c":{"Zc$":{"n":"HybridV2","c":{}}}},"UI":{"n":"UI","c":{"bd$":{"n":"Builder","c":{}}}}}},"ed$":{"n":"UnityEditor","c":{"cd$":{"n":"Animations","c":{}},"dd$":{"n":"Audio","c":{}}}},"gd$":{"n":"YandexMobileAds","c":{"fd$":{"n":"Base","c":{}}}},"hd$":{"n":"UnityTest","c":{}}}'),$$aa=function(e,t){const n=e.statics||e.$statics;if(n){let e=n.$config||n.config;e||(e=n.$config={});const i=e.alias=e.alias||[];i.push(...t.sp||[]),i.push(...t.sm||[]),i.push(...(t.sp||[]).map((e=>"get"+e))),i.push(...(t.sp||[]).map((e=>"set"+e)))}let i=e.$config||e.config;i||(i=e.$config={});const r=i.alias=e.alias||i.alias||[];r.push(...t.p||[]),r.push(...t.m||[]),r.push(...(t.p||[]).map((e=>r.includes("get"+e)?"$$get"+e:"get"+e))),r.push(...(t.p||[]).map((e=>r.includes("set"+e)?"$$set"+e:"set"+e)))},$$sd=function(e,t,n=!1){const i=e.split("."),r=[...i],s=[...i],a=s.pop();let o=Bridge.global,l=tmp1ed93d16_tmp_bridge_mapping;if(l[s[0]])for(let e=0;e<s.length;e++){const t=s[e],n=l[t].n;r[e]=n;const i=o[n]||o[t]||{};o[t]&&!o[n]?Object.defineProperty(o,n,{get:()=>o[t],set(e){o[t]=e},configurable:!0,enumerable:!0}):o[n]=o[t]=i,o=o[n],l=l[t].c}const c=l[a];c&&(t&&("object"==typeof t?$$aa(t,c):t.$aliasInit=e=>$$aa(e,c)),r[r.length-1]=c.n,c.n!==a&&Object.defineProperty(o,a,{get:()=>o[c.n],set(e){o[c.n]=e},enumerable:!0}));const u=r.join(".");return n?Bridge.definei(u,t):Bridge.define(u,t)},$$sdi=(e,t)=>$$sd(e,t,!0);(function(e){"undefined"!=typeof module&&module.exports&&(e=global);var t={global:e,isNode:"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0),emptyFn:function(){},identity:function(e){return e},Deconstruct:function(e){for(var t=Array.prototype.slice.call(arguments,1),n=0;n<t.length;n++)t[n].v=7==n?e.Rest:e["Item"+(n+1)]},rValue:function(e){return e&&e.$clone?e.$clone():e},toString:function(e){var t=Bridge.$toStringGuard[Bridge.$toStringGuard.length-1];if(e.toString===Object.prototype.toString||t&&t===e)return Bridge.Reflection.getTypeFullName(e);Bridge.$toStringGuard.push(e);var n=e.toString();return Bridge.$toStringGuard.pop(),n},geti:function(e,t,n){if(void 0!==e[t])return t;if(n&&null!=e[n])return n;var i=n||t,r=i.lastIndexOf("$");return/\$\d+$/g.test(i)&&(r=i.lastIndexOf("$",r-1)),i.substr(r+1)},box:function(e,t,n,i){return e&&e.$boxed||null==e?e:(e.$clone&&(e=e.$clone()),{$boxed:!0,fn:{toString:n,getHashCode:i},v:e,type:t,constructor:t,getHashCode:function(){return this.fn.getHashCode?this.fn.getHashCode(this.v):Bridge.getHashCode(this.v)},equals:function(e){if(this===e)return!0;var t=this.equals;this.equals=null;var n=Bridge.equals(this.v,e);return this.equals=t,n},valueOf:function(){return this.v},toString:function(){return this.fn.toString?this.fn.toString(this.v):this.v.toString()}})},unbox:function(e,t){var n;if(t&&Bridge.isFunction(t)&&(n=t,t=!1),e&&e.$boxed){var i=e.v,r=e.type;return n&&n.$nullable&&(n=n.$nullableType),n&&n.$kind===Bridge.Typemarkers.Enum&&(n=System.Enum.getUnderlyingType(n)),r.$nullable&&(r=r.$nullableType),r.$kind===Bridge.Typemarkers.Enum&&(r=System.Enum.getUnderlyingType(r)),n&&n!==r&&!Bridge.isObject(n)&&"System.Int64"===n.$$name?new System.Int64(i):(!t&&i&&i.$clone&&(i=i.$clone()),i)}if(Bridge.isArray(e))for(var s=0;s<e.length;s++){var a=e[s];a&&a.$boxed?(a=a.v).$clone&&(a=a.$clone()):!t&&a&&a.$clone&&(a=a.$clone()),e[s]=a}return e&&!t&&e.$clone&&(e=e.$clone()),e},virtualc:function(e){return Bridge.virtual(e,!0)},virtual:function(e,t){var n=Bridge.unroll(e);if(!n||!Bridge.isFunction(n)){var i=Bridge.Class.staticInitAllow;n=t?Bridge.define(e):Bridge.definei(e),Bridge.Class.staticInitAllow=!0,n.$staticInit&&n.$staticInit(),Bridge.Class.staticInitAllow=i}return n},safe:function(e){try{return e()}catch(e){}return!1},literal:function(e,t){return t.$getType=function(){return e},t},isJSObject:function(e){return"[object Object]"===Object.prototype.toString.call(e)},isPlainObject:function(e){if("object"==typeof e&&null!==e){if("function"==typeof Object.getPrototypeOf){var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return"[object Object]"===Object.prototype.toString.call(e)}return!1},toPlain:function(e){if(!e||Bridge.isPlainObject(e)||"object"!=typeof e)return e;if("function"==typeof e.toJSON)return e.toJSON();if(Bridge.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(Bridge.toPlain(e[n]));return t}var i,r={};for(var s in e)i=e[s],Bridge.isFunction(i)||(r[s]=i);return r},ref:function(e,t){Bridge.isArray(t)&&(t=System.Array.toIndex(e,t));var n={};return Object.defineProperty(n,"v",{get:function(){return null==t?e:e[t]},set:function(n){null==t&&(n&&n.$clone?n.$clone(e):e=n),e[t]=n}}),n},ensureBaseProperty:function(e,t,n){var i=Bridge.getType(e),r=i.$descriptors||[];if(e.$propMap=e.$propMap||{},e.$propMap[t])return e;if(i.$descriptors&&0!==i.$descriptors.length||!n)for(var s=0;s<r.length;s++){var a=r[s];a.name===t&&(o={},l="$"+Bridge.getTypeAlias(a.cls)+"$"+t,a.get&&(o.get=a.get),a.set&&(o.set=a.set),Bridge.property(e,l,o,!1,i,!0))}else{var o,l="$"+n+"$"+t;(o={}).get=function(){return e[t]},o.set=function(n){e[t]=n},Bridge.property(e,l,o,!1,i,!0)}return e.$propMap[t]=!0,e},property:function(e,t,n,i,r,s){var a={enumerable:!s,configurable:!0};if(n&&n.get&&(a.get=n.get),n&&n.set&&(a.set=n.set),!n||!n.get&&!n.set){var o=Bridge.getTypeAlias(r)+"$"+t;r.$init=r.$init||{},i&&(r.$init[o]=n),function(e,t,n,i){e.get=function(){var e=this.$init[n];return void 0===e?i:e},e.set=function(e){this.$init[n]=e}}(a,0,o,n)}return Object.defineProperty(e,t,a),a},event:function(e,t,n,i){e[t]=n;var r="$"===t.charAt(0)?t.slice(1):t,s="add"+r,a="remove"+r,o=t.lastIndexOf("$");o>0&&t.length-o-1>0&&!isNaN(parseInt(t.substr(o+1)))&&(o=t.substring(0,o-1).lastIndexOf("$")),o>0&&o!==t.length-1&&(s=t.substring(0,o)+"add"+t.substr(o+1),a=t.substring(0,o)+"remove"+t.substr(o+1)),e[s]=function(e,t,n){return n?function(n){t[e]=Bridge.fn.combine(t[e],n)}:function(t){this[e]=Bridge.fn.combine(this[e],t)}}(t,e,i),e[a]=function(e,t,n){return n?function(n){t[e]=Bridge.fn.remove(t[e],n)}:function(t){this[e]=Bridge.fn.remove(this[e],t)}}(t,e,i)},createInstance:function(e,t,n){if(Bridge.isArray(t)&&(n=t,t=!1),e===System.Decimal)return System.Decimal.Zero;if(e===System.Int64)return System.Int64.Zero;if(e===System.UInt64)return System.UInt64.Zero;if(e===System.Double||e===System.Single||e===System.Byte||e===System.SByte||e===System.Int16||e===System.UInt16||e===System.Int32||e===System.UInt32||e===Bridge.Int)return 0;if("function"==typeof e.createInstance)return e.createInstance();if("function"==typeof e.getDefaultValue)return e.getDefaultValue();if(e===Boolean||e===System.Boolean)return!1;if(e===System.DateTime)return System.DateTime.getDefaultValue();if(e===Date)return new Date;if(e===Number)return 0;if(e===String||e===System.String)return"";if(e&&e.$literal)return e.ctor();if(n&&n.length>0)return Bridge.Reflection.applyConstructor(e,n);e.$kind,Bridge.Typemarkers.Interface;var i=Bridge.Reflection.getMembers(e,1,54);if(i.length>0){for(var r=i.filter((function(e){return!e.isSynthetic&&!e.sm})),s=0;s<r.length;s++){var a=r[s];if(0===(a.pi||[]).length&&(t||2===a.a))return Bridge.Reflection.invokeCI(a,[])}e.$$name&&(1!=i.length||i[0].isSynthetic)}return new e},clone:function(e){if(null==e)return e;if(Bridge.isArray(e))return System.Array.clone(e);if(Bridge.isString(e))return e;if(Bridge.isFunction(Bridge.getProperty(e,"System$ICloneable$clone")))return e.System$ICloneable$clone();if(Bridge.is(e,System.ICloneable))return e.clone();if(Bridge.isFunction(e.$clone))return e.$clone();var t=Object.assign({},e);return t.__proto__=e.__proto__,t},copy:function(e,t,n,i){"string"==typeof n&&(n=n.split(/[,;\s]+/));for(var r,s=0,a=n?n.length:0;s<a;s++)r=n[s],!0===i&&null!=e[r]||(Bridge.is(t[r],System.ICloneable)?e[r]=Bridge.clone(t[r]):e[r]=t[r]);return e},get:function(e){return e&&null!==e.$staticInit&&e.$staticInit(),e},ns:function(e,t){var n=e.split("."),i=0;for(t||(t=Bridge.global),i=0;i<n.length;i++)void 0===t[n[i]]&&(t[n[i]]={}),t=t[n[i]];return t},ready:function(e,t){var n=function(){t?e.apply(t):e()};void 0!==Bridge.global.jQuery?Bridge.global.jQuery(n):void 0===Bridge.global.document||"complete"===Bridge.global.document.readyState||"loaded"===Bridge.global.document.readyState||"interactive"===Bridge.global.document.readyState?n():Bridge.on("DOMContentLoaded",Bridge.global.document,n)},on:function(e,t,n,i){t.addEventListener?t.addEventListener(e,(function(e){var t=n.apply(i||this,arguments);return!1===t&&(e.stopPropagation(),e.preventDefault()),t}),!1):t.attachEvent("on"+e,(function(){var e=n.call(i||t,Bridge.global.event);return!1===e&&(Bridge.global.event.returnValue=!1,Bridge.global.event.cancelBubble=!0),e}))},addHash:function(e,t,n){if(isNaN(t)&&(t=17),isNaN(n)&&(n=23),Bridge.isArray(e)){for(var i=0;i<e.length;i++)t=t+((t*n|0)+(null==e[i]?0:Bridge.getHashCode(e[i])))|0;return t}return t+((t*n|0)+(null==e?0:Bridge.getHashCode(e)))|0},getHashCode:function(e,t,n){if(e&&e.$boxed&&e.type.getHashCode)return e.type.getHashCode(Bridge.unbox(e,!0));if(e=Bridge.unbox(e,!0),Bridge.isEmpty(e,!0)&&t)return 0;if(e.getHashCode&&Bridge.isFunction(e.getHashCode)&&!e.__insideHashCode&&0===e.getHashCode.length){e.__insideHashCode=!0;var i=e.getHashCode();return delete e.__insideHashCode,i}if(Bridge.isBoolean(e))return e?1:0;if(Bridge.isDate(e))return 4294967295&(void 0!==e.ticks?e.ticks:System.DateTime.getTicks(e)).toNumber();if(Infinity===e)return 2146435072;if(-Infinity===e)return 4293918720;if(Bridge.isNumber(e)){if(Math.floor(e)===e)return e;e=e.toExponential()}if(Bridge.isString(e)){if(Math.imul){for(var r=0,s=0;r<e.length;r++)s=Math.imul(31,s)+e.charCodeAt(r)|0;return s}s=0;var a=e.length;if(r=0,a>0)for(;r<a;)s=(s<<5)-s+e.charCodeAt(r++)|0;return s}if(e.$$hashCode)return e.$$hashCode;if(!1!==n&&e.hasOwnProperty("Item1")&&Bridge.isPlainObject(e)&&(n=!0),n&&"object"==typeof e){var o=0;for(var l in e)e.hasOwnProperty(l)&&(o=29*o+(Bridge.isEmpty(e[l],!0)?0:Bridge.getHashCode(e[l])));if(0!==o)return e.$$hashCode=o,o}return e.$$hashCode=4294967296*Math.random()|0,e.$$hashCode},getDefaultValue:function(e){if(null==e);else{if(e.getDefaultValue&&0===e.getDefaultValue.length)return e.getDefaultValue();if(Bridge.Reflection.isEnum(e))return System.Enum.parse(e,0);if(e===Boolean||e===System.Boolean)return!1;if(e===System.DateTime)return System.DateTime.getDefaultValue();if(e===Date)return new Date;if(e===Number)return 0}return null},$$aliasCache:[],getTypeAlias:function(e){if(e.$$alias)return e.$$alias;var t,n=e.$$name||"function"==typeof e?e:Bridge.getType(e);if(n.$$alias)return n.$$alias;if(t=Bridge.$$aliasCache[n])return t;if(n.$isArray)return t=Bridge.getTypeAlias(n.$elementType)+"$Array"+(n.$rank>1?"$"+n.$rank:""),n.$$name?n.$$alias=t:Bridge.$$aliasCache[n]=t,t;var i=e.$$name||Bridge.getTypeName(e);if(n.$typeArguments&&!n.$isGenericTypeDefinition){i=n.$genericTypeDefinition.$$name;for(var r=0;r<n.$typeArguments.length;r++){var s=n.$typeArguments[r];i+="$"+Bridge.getTypeAlias(s)}}return t=i.replace(/[\.\(\)\,\+]/g,"$"),n.$module&&(t=n.$module+"$"+t),n.$$name?n.$$alias=t:Bridge.$$aliasCache[n]=t,t},getTypeName:function(e){return Bridge.Reflection.getTypeFullName(e)},hasValue:function(e){return null!=Bridge.unbox(e,!0)},hasValue$1:function(){if(0===arguments.length)return!1;for(var e=0;e<arguments.length;e++)if(null==Bridge.unbox(arguments[e],!0))return!1;return!0},isObject:function(e){return e===Object||e===System.Object},is:function(e,t,n,i){if(null==e)return!!i;t===System.Object&&(t=Object);var r=typeof t;if("boolean"===r)return t;if(e.$boxed){if(e.type.$kind===Bridge.Typemarkers.Enum&&(e.type.prototype.$utype===t||t===System.Enum||t===System.IFormattable||t===System.IComparable))return!0;if(!Bridge.Reflection.isInterface(t)&&!t.$nullable)return e.type===t||Bridge.isObject(t)||t===System.ValueType&&Bridge.Reflection.isValueType(e.type);if(!0!==n&&t.$is)return t.$is(Bridge.unbox(e,!0));if(Bridge.Reflection.isAssignableFrom(t,e.type))return!0;e=Bridge.unbox(e,!0)}var s=e.constructor===Object&&e.$getType?e.$getType():Bridge.Reflection.convertType(e.constructor);if(t.constructor===Function&&e instanceof t||s===t||Bridge.isObject(t))return!0;var a=s.$kind||s.$$inherits,o=t.$kind;if(a||o){if(t.$isInterface){if(a)return s.$isArrayEnumerator?System.Array.is(e,t):t.isAssignableFrom?t.isAssignableFrom(s):Bridge.Reflection.getInterfaces(s).indexOf(t)>=0;if(Bridge.isArray(e,s))return System.Array.is(e,t)}return!0!==n&&t.$is?t.$is(e):!(!t.$literal||!Bridge.isPlainObject(e))&&(!e.$getType||Bridge.Reflection.isAssignableFrom(t,e.$getType()))}if("string"===r&&(t=Bridge.unroll(t)),"function"===r&&Bridge.getType(e).prototype instanceof t)return!0;if(!0!==n){if("function"==typeof t.$is)return t.$is(e);if("function"==typeof t.isAssignableFrom)return t.isAssignableFrom(Bridge.getType(e))}return Bridge.isArray(e)?System.Array.is(e,t):"object"===r&&(s===t||e instanceof t)},as:function(e,t,n){return Bridge.is(e,t,!1,n)?null!=e&&e.$boxed&&t!==Object&&t!==System.Object?e.v:e:null},cast:function(e,t,n){if(null==e)return e;var i=Bridge.is(e,t,!1,n)?e:null;return e.$boxed&&t!==Object&&t!==System.Object?e.v:i},apply:function(e,t,n){var i,r=Bridge.getPropertyNames(t,!0);for(i=0;i<r.length;i++){var s=r[i];"function"==typeof e[s]&&"function"!=typeof t[s]?e[s](t[s]):e[s]=t[s]}return n&&n.call(e,e),e},copyProperties:function(e,t){var n,i=Bridge.getPropertyNames(t,!1);for(n=0;n<i.length;n++){var r=i[n],s=t.hasOwnProperty(r),a=r.split("$").length;s&&(1===a||2===a&&r.match("$d+$"))&&(e[r]=t[r])}return e},merge:function(e,t,n,i){if(null==e)return t;if(e instanceof System.Decimal&&"number"==typeof t)return new System.Decimal(t);if(e instanceof System.Int64&&Bridge.isNumber(t))return new System.Int64(t);if(e instanceof System.UInt64&&Bridge.isNumber(t))return new System.UInt64(t);if(e instanceof Boolean||Bridge.isBoolean(e)||"number"==typeof e||e instanceof String||Bridge.isString(e)||e instanceof Function||Bridge.isFunction(e)||e instanceof Date||Bridge.isDate(e)||Bridge.getType(e).$number)return t;var r,s,a,o;if(Bridge.isArray(t)&&Bridge.isFunction(e.add||e.push))for(o=Bridge.isArray(e)?e.push:e.add,d=0;d<t.length;d++){var l=t[d];Bridge.isArray(l)||(l=[void 0===i?l:Bridge.merge(i(),l)]),o.apply(e,l)}else{var c=Bridge.getType(e),u=c&&c.$descriptors;if(!t)return n&&n.call(e,e),t;for(r in t){s=t[r];var h=null;if(u)for(var d=u.length-1;d>=0;d--)if(u[d].name===r){h=u[d];break}if(null!=h)h.set?e[r]=Bridge.merge(e[r],s):Bridge.merge(e[r],s);else if("function"==typeof e[r])r.match(/^\s*get[A-Z]/)?Bridge.merge(e[r](),s):e[r](s);else{var m,g="set"+r.charAt(0).toUpperCase()+r.slice(1),$="set"+r;if("function"==typeof e[g]&&"function"!=typeof s)"function"==typeof e[m="g"+g.slice(1)]?e[g](Bridge.merge(e[m](),s)):e[g](s);else if("function"==typeof e[$]&&"function"!=typeof s)"function"==typeof e[m="g"+$.slice(1)]?e[$](Bridge.merge(e[m](),s)):e[$](s);else if(s&&s.constructor===Object&&e[r])a=e[r],Bridge.merge(a,s);else{var p=Bridge.isNumber(t);if(e[r]instanceof System.Decimal&&p)return new System.Decimal(t);if(e[r]instanceof System.Int64&&p)return new System.Int64(t);if(e[r]instanceof System.UInt64&&p)return new System.UInt64(t);e[r]=s}}}}return n&&n.call(e,e),e},getEnumerator:function(e,t,n){return"string"==typeof e&&(e=System.String.toCharArray(e)),2===arguments.length&&Bridge.isFunction(t)&&(n=t,t=null),t&&e&&e[t]?e[t].call(e):!n&&e&&e.GetEnumerator?e.GetEnumerator():n&&Bridge.isFunction(Bridge.getProperty(e,i="System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(n)+"$GetEnumerator"))||n&&Bridge.isFunction(Bridge.getProperty(e,i="System$Collections$Generic$IEnumerable$1$GetEnumerator"))||Bridge.isFunction(Bridge.getProperty(e,i="System$Collections$IEnumerable$GetEnumerator"))?e[i]():n&&e&&e.GetEnumerator?e.GetEnumerator():"[object Array]"===Object.prototype.toString.call(e)||e&&Bridge.isDefined(e.length)?new Bridge.ArrayEnumerator(e,n):void 0;var i},getPropertyNames:function(e,t){var n,i=[];for(n in e)(t||"function"!=typeof e[n])&&i.push(n);return i},getProperty:function(e,t){if(!Bridge.isHtmlAttributeCollection(e)||this.isValidHtmlAttributeName(t))return e[t]},isValidHtmlAttributeName:function(e){return!(!e||!e.length)&&/^[a-zA-Z_][\w\-]*$/.test(e)},isHtmlAttributeCollection:function(e){return void 0!==e&&"[object NamedNodeMap]"===Object.prototype.toString.call(e)},isDefined:function(e,t){return void 0!==e&&(!t||null!==e)},isEmpty:function(e,t){return null==e||!t&&""===e||!(t||!Bridge.isArray(e))&&0===e.length},toArray:function(e){var t,n,i,r=[];if(Bridge.isArray(e))for(t=0,i=e.length;t<i;++t)r.push(e[t]);else for(t=Bridge.getEnumerator(e);t.moveNext();)n=t.Current,r.push(n);return r},toList:function(e,t){return new(System.Collections.Generic.List$1(t||System.Object).$ctor1)(e)},arrayTypes:[e.Array,e.Uint8Array,e.Int8Array,e.Int16Array,e.Uint16Array,e.Int32Array,e.Uint32Array,e.Float32Array,e.Float64Array,e.Uint8ClampedArray],isArray:function(e,t){var n=t||(null!=e?e.constructor:null);return!!n&&(Bridge.arrayTypes.indexOf(n)>=0||n.$isArray||Array.isArray(e))},isFunction:function(e){return"function"==typeof e},isDate:function(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)},isNull:function(e){return null==e},isBoolean:function(e){return"boolean"==typeof e},isNumber:function(e){return"number"==typeof e&&isFinite(e)},isString:function(e){return"string"==typeof e},unroll:function(e,t){if(!Bridge.isArray(e)){var n=e.split("."),i=(t||Bridge.global)[n[0]];for(r=1;r<n.length;r++){if(!i)return null;i=i[n[r]]}return i}for(var r=0;r<e.length;r++){var s=e[r];Bridge.isString(s)&&(e[r]=Bridge.unroll(s,t))}},referenceEquals:function(e,t){return Bridge.hasValue(e)?e===t:!Bridge.hasValue(t)},staticEquals:function(e,t){return Bridge.hasValue(e)?!!Bridge.hasValue(t)&&Bridge.equals(e,t):!Bridge.hasValue(t)},equals:function(e,t){if(null==e&&null==t)return!0;var n=Bridge.$equalsGuard[Bridge.$equalsGuard.length-1];if(n&&n.a===e&&n.b===t)return e===t;Bridge.$equalsGuard.push({a:e,b:t});var i=function(e,t){if(e&&e.$boxed&&e.type.equals&&2===e.type.equals.length)return e.type.equals(e,t);if(t&&t.$boxed&&t.type.equals&&2===t.type.equals.length)return t.type.equals(t,e);if(e&&Bridge.isFunction(e.equals)&&1===e.equals.length)return e.equals(t);if(t&&Bridge.isFunction(t.equals)&&1===t.equals.length)return t.equals(e);if(Bridge.isFunction(e)&&Bridge.isFunction(t))return Bridge.fn.equals.call(e,t);if(Bridge.isDate(e)&&Bridge.isDate(t))return void 0!==e.kind&&void 0!==e.ticks&&void 0!==t.kind&&void 0!==t.ticks?e.ticks.equals(t.ticks):e.valueOf()===t.valueOf();if(Bridge.isNull(e)&&Bridge.isNull(t))return!0;if(Bridge.isNull(e)!==Bridge.isNull(t))return!1;var n=e===t;return n||"object"!=typeof e||"object"!=typeof t||null===e||null===t||e.$kind!==Bridge.Typemarkers.Struct||t.$kind!==Bridge.Typemarkers.Struct||e.$$name!==t.$$name?!n&&e&&t&&e.hasOwnProperty("Item1")&&Bridge.isPlainObject(e)&&t.hasOwnProperty("Item1")&&Bridge.isPlainObject(t)?Bridge.objectEquals(e,t,!0):n:Bridge.getHashCode(e)===Bridge.getHashCode(t)&&Bridge.objectEquals(e,t)}(e,t);return Bridge.$equalsGuard.pop(),i},objectEquals:function(e,t,n){Bridge.$$leftChain=[],Bridge.$$rightChain=[];var i=Bridge.deepEquals(e,t,n);return delete Bridge.$$leftChain,delete Bridge.$$rightChain,i},deepEquals:function(e,t,n){if("object"==typeof e&&"object"==typeof t){if(e===t)return!0;if(Bridge.$$leftChain.indexOf(e)>-1||Bridge.$$rightChain.indexOf(t)>-1)return!1;var i;for(i in t){if(t.hasOwnProperty(i)!==e.hasOwnProperty(i))return!1;if(typeof t[i]!=typeof e[i])return!1}for(i in e){if(t.hasOwnProperty(i)!==e.hasOwnProperty(i))return!1;if(typeof e[i]!=typeof t[i])return!1;if(e[i]!==t[i])if("object"!=typeof e[i]||n){if(!Bridge.equals(e[i],t[i]))return!1}else{if(Bridge.$$leftChain.push(e),Bridge.$$rightChain.push(t),!Bridge.deepEquals(e[i],t[i]))return!1;Bridge.$$leftChain.pop(),Bridge.$$rightChain.pop()}}return!0}return Bridge.equals(e,t)},numberCompare:function(e,t){return e<t?-1:e>t?1:e==t?0:isNaN(e)?isNaN(t)?0:-1:1},compare:function(e,t,n,i){if(e&&e.$boxed&&(e=Bridge.unbox(e,!0)),t&&t.$boxed&&(t=Bridge.unbox(t,!0)),"number"==typeof e&&"number"==typeof t)return Bridge.numberCompare(e,t);if(!Bridge.isDefined(e,!0)){if(n)return 0;throw new System.NullReferenceException}if(Bridge.isString(e))return System.String.compare(e,t);if(Bridge.isNumber(e)||Bridge.isBoolean(e))return e<t?-1:e>t?1:0;if(Bridge.isDate(e))return void 0!==e.kind&&void 0!==e.ticks?Bridge.compare(System.DateTime.getTicks(e),System.DateTime.getTicks(t)):Bridge.compare(e.valueOf(),t.valueOf());var r;if(i&&Bridge.isFunction(Bridge.getProperty(e,r="System$IComparable$1$"+Bridge.getTypeAlias(i)+"$compareTo")))return e[r](t);if(i&&Bridge.isFunction(Bridge.getProperty(e,r="System$IComparable$1$compareTo")))return e[r](t);if(Bridge.isFunction(Bridge.getProperty(e,r="System$IComparable$compareTo")))return e[r](t);if(Bridge.isFunction(e.compareTo))return e.compareTo(t);if(i&&Bridge.isFunction(Bridge.getProperty(t,r="System$IComparable$1$"+Bridge.getTypeAlias(i)+"$compareTo")))return-t[r](e);if(i&&Bridge.isFunction(Bridge.getProperty(t,r="System$IComparable$1$compareTo")))return-t[r](e);if(Bridge.isFunction(Bridge.getProperty(t,r="System$IComparable$compareTo")))return-t[r](e);if(Bridge.isFunction(t.compareTo))return-t.compareTo(e);if(n)return 0;throw new System.Exception("Cannot compare items")},equalsT:function(e,t,n){if(e&&e.$boxed&&e.type.equalsT&&2===e.type.equalsT.length)return e.type.equalsT(e,t);if(t&&t.$boxed&&t.type.equalsT&&2===t.type.equalsT.length)return t.type.equalsT(t,e);if(!Bridge.isDefined(e,!0))throw new System.NullReferenceException;return Bridge.isNumber(e)||Bridge.isString(e)||Bridge.isBoolean(e)?e===t:Bridge.isDate(e)?void 0!==e.kind&&void 0!==e.ticks?System.DateTime.getTicks(e).equals(System.DateTime.getTicks(t)):e.valueOf()===t.valueOf():n&&null!=e&&Bridge.isFunction(Bridge.getProperty(e,i="System$IEquatable$1$"+Bridge.getTypeAlias(n)+"$equalsT"))?e[i](t):n&&null!=t&&Bridge.isFunction(Bridge.getProperty(t,i="System$IEquatable$1$"+Bridge.getTypeAlias(n)+"$equalsT"))?t[i](e):Bridge.isFunction(e)&&Bridge.isFunction(t)?Bridge.fn.equals.call(e,t):e.equalsT?e.equalsT(t):t.equalsT(e);var i},format:function(e,t,n){if(e&&e.$boxed){if(e.type.$kind===Bridge.Typemarkers.Enum)return System.Enum.format(e.type,e.v,t);if(e.type===System.Char)return System.Char.format(Bridge.unbox(e,!0),t,n);if(e.type.format)return e.type.format(Bridge.unbox(e,!0),t,n)}return Bridge.isNumber(e)?Bridge.Int.format(e,t,n):Bridge.isDate(e)?System.DateTime.format(e,t,n):Bridge.isFunction(Bridge.getProperty(e,"System$IFormattable$format"))?e.System$IFormattable$format(t,n):e.format(t,n)},getType:function(e,t){if(e&&e.$boxed)return e.type;if(null==e)throw new System.NullReferenceException.$ctor1("instance is null");if(t){var n=Bridge.getType(e);return Bridge.Reflection.isAssignableFrom(t,n)?n:t}if("number"==typeof e)return!isNaN(e)&&isFinite(e)&&Math.floor(e,0)===e?System.Int32:System.Double;if(e.$type)return e.$type;if(e.$getType)return e.$getType();var i=null;try{i=e.constructor}catch(e){i=Object}if(i===Object){var r=e.toString(),s=/\[object (.{1,})\]/.exec(r);"Object"!=(s&&s.length>1?s[1]:"Object")&&(i=e)}return Bridge.Reflection.convertType(i)},isLower:function(e){var t=String.fromCharCode(e);return t===t.toLowerCase()&&t!==t.toUpperCase()},isUpper:function(e){var t=String.fromCharCode(e);return t!==t.toLowerCase()&&t===t.toUpperCase()},coalesce:function(e,t){return Bridge.hasValue(e)?e:t},fn:{equals:function(e){return this===e||null!=e&&this.constructor===e.constructor&&this.equals&&this.equals===e.equals&&this.$method&&this.$method===e.$method&&this.$scope&&this.$scope===e.$scope},call:function(e,t){var n=Array.prototype.slice.call(arguments,2);return(e=e||Bridge.global)[t].apply(e,n)},makeFn:function(e,t){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,i){return e.apply(this,arguments)};case 4:return function(t,n,i,r){return e.apply(this,arguments)};case 5:return function(t,n,i,r,s){return e.apply(this,arguments)};case 6:return function(t,n,i,r,s,a){return e.apply(this,arguments)};case 7:return function(t,n,i,r,s,a,o){return e.apply(this,arguments)};case 8:return function(t,n,i,r,s,a,o,l){return e.apply(this,arguments)};case 9:return function(t,n,i,r,s,a,o,l,c){return e.apply(this,arguments)};case 10:return function(t,n,i,r,s,a,o,l,c,u){return e.apply(this,arguments)};case 11:return function(t,n,i,r,s,a,o,l,c,u,h){return e.apply(this,arguments)};case 12:return function(t,n,i,r,s,a,o,l,c,u,h,d){return e.apply(this,arguments)};case 13:return function(t,n,i,r,s,a,o,l,c,u,h,d,m){return e.apply(this,arguments)};case 14:return function(t,n,i,r,s,a,o,l,c,u,h,d,m,g){return e.apply(this,arguments)};case 15:return function(t,n,i,r,s,a,o,l,c,u,h,d,m,g,$){return e.apply(this,arguments)};case 16:return function(t,n,i,r,s,a,o,l,c,u,h,d,m,g,$,p){return e.apply(this,arguments)};case 17:return function(t,n,i,r,s,a,o,l,c,u,h,d,m,g,$,p,y){return e.apply(this,arguments)};case 18:return function(t,n,i,r,s,a,o,l,c,u,h,d,m,g,$,p,y,f){return e.apply(this,arguments)};case 19:return function(t,n,i,r,s,a,o,l,c,u,h,d,m,g,$,p,y,f,_){return e.apply(this,arguments)};default:return function(t,n,i,r,s,a,o,l,c,u,h,d,m,g,$,p,y,f,_,S){return e.apply(this,arguments)}}},cacheBind:function(e,t,n,i){return Bridge.fn.bind(e,t,n,i,!0)},bind:function(e,t,n,i,r){if(t&&t.$method===t&&t.$scope===e)return t;if(e&&r&&e.$$bind)for(var s=0;s<e.$$bind.length;s++)if(e.$$bind[s].$method===t)return e.$$bind[s];var a;return a=2===arguments.length?Bridge.fn.makeFn((function(){Bridge.caller.unshift(this);var n=null;try{n=t.apply(e,arguments)}finally{Bridge.caller.shift(this)}return n}),t.length):Bridge.fn.makeFn((function(){var r=n||arguments;!0===i?r=(r=Array.prototype.slice.call(arguments,0)).concat(n):"number"==typeof i&&(r=Array.prototype.slice.call(arguments,0),0===i?r.unshift.apply(r,n):i<r.length?r.splice.apply(r,[i,0].concat(n)):r.push.apply(r,n)),Bridge.caller.unshift(this);var s=null;try{s=t.apply(e,r)}finally{Bridge.caller.shift(this)}return s}),t.length),e&&r&&(e.$$bind=e.$$bind||[],e.$$bind.push(a)),a.$method=t,a.$scope=e,a.equals=Bridge.fn.equals,a},bindScope:function(e,t){var n=Bridge.fn.makeFn((function(){var n=Array.prototype.slice.call(arguments,0);n.unshift.call(n,e),Bridge.caller.unshift(this);var i=null;try{i=t.apply(e,n)}finally{Bridge.caller.shift(this)}return i}),t.length);return n.$method=t,n.$scope=e,n.equals=Bridge.fn.equals,n},$build:function(e){if(!e||0===e.length)return null;var t=function(){var t,n=null;for(t=0;t<e.length;t++)n=e[t].apply(null,arguments);return n};return t.$invocationList=e?Array.prototype.slice.call(e,0):[],e=t.$invocationList.slice(),t},combine:function(e,t){if(!e||!t){var n=e||t;return n?Bridge.fn.$build([n]):n}var i=e.$invocationList?e.$invocationList:[e],r=t.$invocationList?t.$invocationList:[t];return Bridge.fn.$build(i.concat(r))},getInvocationList:function(e){return e.$invocationList||(e.$invocationList=[e]),e.$invocationList},remove:function(e,t){if(!e||!t)return e||null;var n,i,r,s=e.$invocationList?e.$invocationList:[e],a=t.$invocationList?t.$invocationList:[t];for(r=0;r<a.length;r++){for(n=-1,i=s.length-1;i>=0;i--)if(s[i]===a[r]||s[i].$method&&s[i].$method===a[r].$method&&s[i].$scope&&s[i].$scope===a[r].$scope){n=i;break}n>-1&&s.splice(n,1)}return Bridge.fn.$build(s)}},sleep:function(e,t){if(Bridge.hasValue(t)&&(e=t.getTotalMilliseconds()),isNaN(e)||e<-1||e>2147483647)throw new System.ArgumentOutOfRangeException.$ctor4("timeout","Number must be either non-negative and less than or equal to Int32.MaxValue or -1");-1==e&&(e=2147483647);for(var n=(new Date).getTime();(new Date).getTime()-n<e&&!((new Date).getTime()-n>2147483647););},getMetadata:function(e){return e.$getMetadata?e.$getMetadata():e.$metadata},loadModule:function(e,t){var n=e.amd,i=e.cjs,r=e.fn,s=new System.Threading.Tasks.TaskCompletionSource,a=Bridge.global[r||"require"];if(!(n&&n.length>0)){if(i&&i.length>0){(c=new System.Threading.Tasks.Task).status=System.Threading.Tasks.TaskStatus.ranToCompletion;for(var o=[],l=0;l<i.length;l++)o.push(a(i[l]));return t.apply(Bridge.global,o),c}var c;return(c=new System.Threading.Tasks.Task).status=System.Threading.Tasks.TaskStatus.ranToCompletion,c}return a(n,(function(){var e=Array.prototype.slice.call(arguments,0);if(i&&i.length>0)for(var n=0;n<i.length;n++)e.push(a(i[n]));t.apply(Bridge.global,e),s.setResult()})),s.task}};e.setImmediate?t.setImmediate=e.setImmediate.bind(e):t.setImmediate=function(){var e={},t=e,n=Math.random();function i(t){if(t.data==n){var i=(e=e.next).func;delete e.func,i()}}return"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("message",i):window.attachEvent("onmessage",i)),function(e){t=t.next={func:e},"undefined"!=typeof window&&window.postMessage(n,"*")}}(),e.Bridge=t,e.Bridge.caller=[],e.Bridge.$equalsGuard=[],e.Bridge.$toStringGuard=[],e.console&&(e.Bridge.Console=e.console),e.System={},e.System.Diagnostics={},e.System.Diagnostics.Contracts={},e.System.Threading={},e.Bridge.Typemarkers={None:0,Other:1,Class:2,Interface:3,Struct:4,Delegate:5,Enum:6,Module:7,Void:8,Unknown:9,Null:10,Dynamic:11,UnboundTypeArgument:12,TypeParameter:13,Array:14,Pointer:15,ByReference:16,Anonymous:17,Intersection:18,ArgList:19,NestedOffset:1e3};var n=function(e){return Bridge.global.navigator&&e.test(Bridge.global.navigator.userAgent.toLowerCase())},i=Bridge.global.document&&"CSS1Compat"===Bridge.global.document.compatMode,r=function(e,t){var n;return Bridge.global.navigator&&e&&(n=t.exec(navigator.userAgent.toLowerCase()))?parseFloat(n[1]):0},s=Bridge.global.document?Bridge.global.document.documentMode:null,a=n(/opera/),o=a&&n(/version\/10\.5/),l=n(/\bchrome\b/),c=n(/webkit/),u=!l&&n(/safari/),h=u&&n(/applewebkit\/4/),d=u&&n(/version\/3/),m=u&&n(/version\/4/),g=u&&n(/version\/5\.0/),$=u&&n(/version\/5/),p=!a&&(n(/msie/)||n(/trident/)),y=p&&(n(/msie 7/)&&8!==s&&9!==s&&10!==s||7===s),f=p&&(n(/msie 8/)&&7!==s&&9!==s&&10!==s||8===s),_=p&&(n(/msie 9/)&&7!==s&&8!==s&&10!==s||9===s),S=p&&(n(/msie 10/)&&7!==s&&8!==s&&9!==s||10===s),b=p&&(n(/trident\/7\.0/)&&7!==s&&8!==s&&9!==s&&10!==s||11===s),C=p&&n(/msie 6/),E=!c&&!p&&n(/gecko/),T=E&&n(/rv:1\.9/),v=E&&n(/rv:2\.0/),I=E&&n(/rv:5\./),x=E&&n(/rv:10\./),A=T&&n(/rv:1\.9\.0/),w=T&&n(/rv:1\.9\.1/),D=T&&n(/rv:1\.9\.2/),M=n(/windows|win32/),P=n(/macintosh|mac os x/),U=n(/linux/),B=r(!0,/\bchrome\/(\d+\.\d+)/),O=r(!0,/\bfirefox\/(\d+\.\d+)/),L=r(p,/msie (\d+\.\d+)/),R=r(a,/version\/(\d+\.\d+)/),F=r(u,/version\/(\d+\.\d+)/),G=r(c,/webkit\/(\d+\.\d+)/),k=!!Bridge.global.location&&/^https/i.test(Bridge.global.location.protocol),V=Bridge.global.navigator&&/iPhone/i.test(Bridge.global.navigator.platform),N=Bridge.global.navigator&&/iPod/i.test(Bridge.global.navigator.platform),z=Bridge.global.navigator&&/iPad/i.test(Bridge.global.navigator.userAgent),H=Bridge.global.navigator&&/Blackberry/i.test(Bridge.global.navigator.userAgent),j=Bridge.global.navigator&&/Android/i.test(Bridge.global.navigator.userAgent),Z=P||M||U&&!j,q={isStrict:i,isIEQuirks:p&&!i&&(C||y||f||_),isOpera:a,isOpera10_5:o,isWebKit:c,isChrome:l,isSafari:u,isSafari3:d,isSafari4:m,isSafari5:$,isSafari5_0:g,isSafari2:h,isIE:p,isIE6:C,isIE7:y,isIE7m:C||y,isIE7p:p&&!C,isIE8:f,isIE8m:C||y||f,isIE8p:p&&!(C||y),isIE9:_,isIE9m:C||y||f||_,isIE9p:p&&!(C||y||f),isIE10:S,isIE10m:C||y||f||_||S,isIE10p:p&&!(C||y||f||_),isIE11:b,isIE11m:C||y||f||_||S||b,isIE11p:p&&!(C||y||f||_||S),isGecko:E,isGecko3:T,isGecko4:v,isGecko5:I,isGecko10:x,isFF3_0:A,isFF3_5:w,isFF3_6:D,isFF4:4<=O&&O<5,isFF5:5<=O&&O<6,isFF10:10<=O&&O<11,isLinux:U,isWindows:M,isMac:P,chromeVersion:B,firefoxVersion:O,ieVersion:L,operaVersion:R,safariVersion:F,webKitVersion:G,isSecure:k,isiPhone:V,isiPod:N,isiPad:z,isBlackberry:H,isAndroid:j,isDesktop:Z,isTablet:z,isPhone:!Z&&!z,iOS:V||z||N,standalone:!!Bridge.global.navigator&&!!Bridge.global.navigator.standalone};Bridge.Browser=q;const K=["fields","events","props","ctors","methods"],W=["fields","methods","events","props","properties","alias","ctors"];var J={_initialize:function(){this.$init||(this.$init={},this.$staticInit&&this.$staticInit(),this.$initMembers&&this.$initMembers())},initConfig:function(e,t,n,i,r,s){var a,o,l=i?r:r.ctor,c=l.$descriptors,u=l.$aliases;if(n.fields)for(o in n.fields)r[o]=n.fields[o];var h=n.properties;if(h)for(o in h){var d,m,g=h[o];if(null!=g&&Bridge.isPlainObject(g)&&(!g.get||!g.set)){for(var $=0;$<c.length;$++)c[$].name===o&&(d=c[$]);d&&d.get&&!g.get&&(g.get=d.get),d&&d.set&&!g.set&&(g.set=d.set)}(m=Bridge.property(i?r:s,o,g,i,l)).name=o,m.cls=l,c.push(m)}if(n.events)for(o in n.events)Bridge.event(r,o,n.events[o],i);for(let e=0;e<u.length;e++){const t=i?r:s,n=u[e];n.descriptor&&!(n.alias in t)&&Object.defineProperty(t,n.alias,{get:n.descriptor.get,set:n.descriptor.set,configurable:!0})}if(n.alias)for(var p=0;p<n.alias.length;p++)!function(e,t,n,i){for(var a=null,o=c.length-1;o>=0;o--)if(c[o].name===t){a=c[o];break}for(var l=Array.isArray(n)?n:[n],h=0;h<l.length;h++){var d;n=l[h],null!=a?(Object.defineProperty(e,n,a),u.push({alias:n,descriptor:a}),c.push(Object.assign({},a,{name:n}))):(r.hasOwnProperty(t)||!s?void 0===(d=r[t])&&s&&(d=s[t]):void 0===(d=s[t])&&(d=r[t]),Bridge.isFunction(d)?(e[n]=d,u.push({fn:t,alias:n})):(a={get:function(){return this[t]},set:function(e){this[t]=e},configurable:!0},Object.defineProperty(e,n,a),u.push({alias:n,descriptor:a})))}}(i?r:s,n.alias[p],n.alias[p+1]),p++;n.init&&(a=n.init);const y=!!a,f=!(!e||i||!t.$initMembers);r.$initMembers=null,y&&f?r.$initMembers=function(){t.$initMembers.call(this),a.call(this)}:y?r.$initMembers=a:f&&(r.$initMembers=t.$initMembers)},convertScheme:function(e){var t={},n=function(e,t){for(var n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];-1===W.indexOf(r)&&(t[r]=e[r])}e.fields&&Bridge.apply(t,e.fields),e.methods&&Bridge.apply(t,e.methods);var s={},a=!1;e.props?(s.properties=e.props,a=!0):e.properties&&(s.properties=e.properties,a=!0),e.events&&(s.events=e.events,a=!0);const o=e.alias||e.$config&&e.$config.alias;o&&(s.alias=o,a=!0),e.overloads&&(s.overloads=e.overloads,a=!0),e.ctors&&(e.ctors.init&&(s.init=e.ctors.init,a=!0,delete e.ctors.init),Bridge.apply(t,e.ctors)),a&&(t.$config=s)};return e.main&&(t.$main=e.main,delete e.main),n(e,t),(e.statics||e.$statics)&&(t.$statics={},n(e.statics||e.$statics,t.$statics)),t},definei:function(e,t,n){!0!==n&&n||!t?n?n.$kind=Bridge.Typemarkers.Interface:t={$kind:Bridge.Typemarkers.Interface}:t.$kind=Bridge.Typemarkers.Interface;var i=Bridge.define(e,t,n);return i.$kind=Bridge.Typemarkers.Interface,i.$isInterface=!0,i},define:function(e,t,n,i){var r,s=!1;if(!0===n?(s=!0,n=t,t=Bridge.global):n||(n=t,t=Bridge.global),Bridge.isFunction(n))return r=function(){var t,i,s,a;return(i=Bridge.Class.getCachedType(r,arguments))?i.type:(t=Array.prototype.slice.call(arguments),s=n.apply(null,t),n.$aliasInit&&n.$aliasInit(s),a=Bridge.define(Bridge.Class.genericName(e,t),s,!0,{fn:r,args:t}),Bridge.Class.staticInitAllow||Bridge.Class.queueIsBlocked||Bridge.Class.$queue.push(a),Bridge.get(a))},r.$cache=[],Bridge.Class.generic(e,t,r,n);s||(Bridge.Class.staticInitAllow=!1),(n=n||{}).$kind=n.$kind||Bridge.Typemarkers.Class;var a=!1;n.$kind>=Bridge.Typemarkers.NestedOffset&&(a=!0,n.$kind=n.$kind-Bridge.Typemarkers.NestedOffset),n.$kind!==Bridge.Typemarkers.Enum||n.inherits||(n.inherits=[System.IComparable,System.IFormattable]);var o=Bridge.isFunction(n.main)?0:1,l=function(e){if(Bridge.isPlainObject(e.config)||Bridge.isFunction(e.$main)||e.hasOwnProperty("ctor")&&Bridge.isFunction(e.ctor))return o=1,!1;if(Bridge.isArray(e.alias)&&e.alias.length>0&&e.alias.length%2==0)return!0;for(var t=0;t<5;t++)if(Bridge.isPlainObject(e[K[t]]))return!0;return!1},c=l(n);!c&&n.statics&&(c=l(n.statics)),c||(c=0==o),c&&(n=Bridge.Class.convertScheme(n));var u,h,d,m,g,$,p,y,f=n.$inherits||n.inherits,_=n.$statics||n.statics,S=n.$entryPoint,b=n.$scope||t||Bridge.global,C=Bridge.global.System&&Bridge.global.System.Object||Object,E=!0;if(n.$kind===Bridge.Typemarkers.Enum&&(f=[System.Enum]),!0===n.$noRegister&&(E=!1,n.$noRegister=null),n.$inherits?n.$inherits=null:n.inherits=null,S&&delete n.$entryPoint,Bridge.isFunction(_)?_=null:n.$statics?n.$statics=null:n.statics=null,(I=n.hasOwnProperty("ctor")&&n.ctor)?y=I:(y=n.$literal?function(e){return(e=e||{}).$getType=function(){return y},e}:function(){this.$initialize(),y.$base&&(y.$$inherits&&y.$$inherits.length>0&&y.$$inherits[0].$staticInit&&y.$$inherits[0].$staticInit(),y.$base.ctor?y.$base.ctor.call(this):Bridge.isFunction(y.$base.constructor)&&y.$base.constructor.call(this))},n.ctor=y),n.$literal&&(_&&_.createInstance||(y.createInstance=function(){return{$getType:function(){return y}}}),y.$literal=!0,n.$literal=null),!s&&E&&(b=Bridge.Class.set(b,e,y)),i&&i.fn.$cache.push({type:y,args:i.args}),y.$$name=e,a){var T=y.$$name.lastIndexOf(".");y.$$name=y.$$name.substr(0,T)+"+"+y.$$name.substr(T+1)}if(y.$kind=n.$kind,n.$module&&(y.$module=n.$module),n.$metadata&&(y.$metadata=n.$metadata),i&&s){y.$genericTypeDefinition=i.fn,y.$typeArguments=i.args,y.$assembly=i.fn.$assembly||Bridge.$currentAssembly;var v=Bridge.Reflection.getTypeFullName(i.fn);for(d=0;d<i.args.length;d++)v+=(0===d?"[":",")+"["+Bridge.Reflection.getTypeQName(i.args[d])+"]";v+="]",y.$$fullname=v}else y.$$fullname=y.$$name;if(Bridge.isFunction(f)&&(f=f()),Bridge.Class.createInheritors(y,f),(!f||f[0].$kind===Bridge.Typemarkers.Interface)&&(f=null),u=f?f[0].prototype:this.prototype,y.$base=u,f&&!f[0].$$initCtor){var I=f[0],x=function(){};(x.prototype=I.prototype).constructor=I,x.prototype.$$fullname=Bridge.Reflection.getTypeFullName(I),h=new x}else h=f?new f[0].$$initCtor:C.$$initCtor?new C.$$initCtor:new C;if(y.$$initCtor=function(){},y.$$initCtor.prototype=h,y.$$initCtor.prototype.constructor=y,y.$$initCtor.prototype.$$fullname=i&&s?y.$$fullname:y.$$name,_){var A=_.$config||_.config;A&&!Bridge.isFunction(A)&&(Bridge.Class.initConfig(f,u,A,!0,y),_.$config?_.$config=null:_.config=null)}var w=n.$config||n.config;for(p in w&&!Bridge.isFunction(w)?(Bridge.Class.initConfig(f,u,w,!1,n,h),n.$config?n.$config=null:n.config=null):f&&u.$initMembers&&(n.$initMembers=u.$initMembers),n.$initialize=Bridge.Class._initialize,n)m=n[p],g="ctor"===p,$=p,Bridge.isFunction(m)&&(g||"$ctor"===p.substring(0,5))&&(g=!0),g?(y[$]=m,y[$].prototype=h,y[$].prototype.constructor=y,h[$]=m):h[$]=m;if(h.$$name=e,h.toJSON||(h.toJSON=Bridge.Class.toJSON),_){for(p in _){var D=_[p];if("ctor"===p)y.$ctor=D;else{if(n.$kind===Bridge.Typemarkers.Enum&&!Bridge.isFunction(D)&&"$"!==p.charAt(0)){y.$names=y.$names||[];const e=h.statics&&h.statics.$config&&h.statics.$config.alias||[],t=e.indexOf(p);-1!==t?y.$names.push({name:e[t+1]||p,value:D}):y.$names.push({name:p,value:D})}y[p]=D}}n.$kind===Bridge.Typemarkers.Enum&&y.$names&&(y.$names=y.$names.sort((function(e,t){return Bridge.isFunction(e.value.eq)?e.value.sub(t.value).sign():e.value-t.value})).map((function(e){return e.name})))}if(f||(f=[C].concat(y.$interfaces)),Bridge.Class.setInheritors(y,f),r=function(){Bridge.Class.staticInitAllow&&!y.$isGenericTypeDefinition&&(y.$staticInit=null,y.$initMembers&&y.$initMembers(),y.$ctor&&y.$ctor())},S||Bridge.isFunction(h.$main)){if(h.$main){var M=h.$main.name||"Main";y[M]||(y[M]=h.$main)}Bridge.Class.$queueEntry.push(y)}return y.$staticInit=r,!s&&E&&Bridge.Class.registerType(e,y),Bridge.Reflection&&(y.$getMetadata=Bridge.Reflection.getMetadata),y.$kind===Bridge.Typemarkers.Enum&&(y.prototype.$utype||(y.prototype.$utype=System.Int32),y.$is=function(e){var t=y.prototype.$utype;return t===String?"string"==typeof e:t&&t.$is?t.$is(e):"number"==typeof e},y.getDefaultValue=function(){var e=y.prototype.$utype;return e===String||e===System.String?null:0}),y.$kind===Bridge.Typemarkers.Interface&&(y.prototype.$variance&&(y.isAssignableFrom=Bridge.Class.varianceAssignable),y.$isInterface=!0),y},toCtorString:function(){return Bridge.Reflection.getTypeName(this)},createInheritors:function(e,t){var n=[],i=[],r=[],s=[];if(t)for(var a=0;a<t.length;a++){var o=t[a],l=(o.$interfaces||[]).concat(o.$baseInterfaces||[]),c=o.$descriptors,u=o.$aliases;if(c&&c.length>0)for(var h=0;h<c.length;h++)r.push(c[h]);if(u&&u.length>0)for(h=0;h<u.length;h++)s.push(u[h]);if(l.length>0)for(var d=0;d<l.length;d++)i.indexOf(l[d])<0&&i.push(l[d]);o.$kind===Bridge.Typemarkers.Interface&&n.push(o)}e.$descriptors=r,e.$aliases=s,e.$baseInterfaces=i,e.$interfaces=n,e.$allInterfaces=n.concat(i)},toJSON:function(){var e={},t=Bridge.getType(this).$descriptors||[];for(var n in this){var i=this.hasOwnProperty(n),r=null;if(!i)for(var s=t.length-1;s>=0;s--)if(t[s].name===n){r=t[s];break}var a=n.split("$").length;(i||null!=r)&&(1===a||2===a&&n.match("$d+$"))&&(e[n]=this[n])}return e},setInheritors:function(e,t){e.$$inherits=t;for(var n=0;n<t.length;n++){var i=t[n];i.$$inheritors||(i.$$inheritors=[]),i.$$inheritors.push(e)}},varianceAssignable:function(e){var t=function(e,t){if(t.$genericTypeDefinition===e.$genericTypeDefinition&&t.$typeArguments.length===e.$typeArguments.length){for(var n=0;n<e.$typeArguments.length;n++){var i=e.prototype.$variance[n],r=e.$typeArguments[n],s=t.$typeArguments[n];switch(i){case 1:if(!Bridge.Reflection.isAssignableFrom(r,s))return!1;break;case 2:if(!Bridge.Reflection.isAssignableFrom(s,r))return!1;break;default:if(s!==r)return!1}}return!0}return!1};if(e.$kind===Bridge.Typemarkers.Interface&&t(this,e))return!0;for(var n=Bridge.Reflection.getInterfaces(e),i=0;i<n.length;i++)if(n[i]===this||t(this,n[i]))return!0;return!1},registerType:function(e,t){Bridge.$currentAssembly&&(Bridge.$currentAssembly.$types[e]=t,t.$assembly=Bridge.$currentAssembly)},addExtend:function(e,t){var n,i;for(Array.prototype.push.apply(e.$$inherits,t),e.$interfaces=e.$interfaces||[],e.$baseInterfaces=e.$baseInterfaces||[],n=0;n<t.length;n++){(i=t[n]).$$inheritors||(i.$$inheritors=[]),i.$$inheritors.push(e);var r=(i.$interfaces||[]).concat(i.$baseInterfaces||[]);if(r.length>0)for(var s=0;s<r.length;s++)e.$baseInterfaces.indexOf(r[s])<0&&e.$baseInterfaces.push(r[s]);i.$kind===Bridge.Typemarkers.Interface&&e.$interfaces.push(i)}e.$allInterfaces=e.$interfaces.concat(e.$baseInterfaces)},set:function(e,t,n,i){var r,s,a,o,l=t.split(".");for(o=0;o<l.length-1;o++)void 0===e[l[o]]&&(e[l[o]]={}),e=e[l[o]];if(a=e[r=l[l.length-1]]){if(a.$$name===t)throw"Class '"+t+"' is already defined";for(s in a){var c=a[s];"function"==typeof c&&c.$$name&&function(e,t,n){Object.defineProperty(e,t,{get:function(){return Bridge.Class.staticInitAllow&&(n.$staticInit&&n.$staticInit(),Bridge.Class.defineProperty(e,t,n)),n},set:function(e){n=e},enumerable:!0,configurable:!0})}(n,s,c)}}return!0!==i?function(e,t,n){Object.defineProperty(e,t,{get:function(){return Bridge.Class.staticInitAllow&&(n.$staticInit&&n.$staticInit(),Bridge.Class.defineProperty(e,t,n)),n},set:function(e){n=e},enumerable:!0,configurable:!0})}(e,r,n):e[r]=n,e},defineProperty:function(e,t,n){Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0})},genericName:function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];n+="$"+(r.$$name||Bridge.getTypeName(r))}return n},getCachedType:function(e,t){var n,i,r,s,a=e.$cache,o=a.length;for(r=0;r<o;r++)if((n=a[r]).args.length===t.length){for(i=!0,s=0;s<n.args.length;s++)if(n.args[s]!==t[s]){i=!1;break}if(i)return n}return null},generic:function(e,t,n,i){return n.$$name=e,n.$kind=Bridge.Typemarkers.Class,Bridge.Class.set(t,e,n,!0),Bridge.Class.registerType(e,n),n.$typeArgumentCount=i.length,n.$isGenericTypeDefinition=!0,n.$getMetadata=Bridge.Reflection.getMetadata,n.$staticInit=function(){n.$typeArguments=Bridge.Reflection.createTypeParams(i);var e=Bridge.Class.staticInitAllow,t=Bridge.Class.queueIsBlocked;Bridge.Class.staticInitAllow=!1,Bridge.Class.queueIsBlocked=!0;var r=i.apply(null,n.$typeArguments),s=r.$inherits||r.inherits;Bridge.Class.staticInitAllow=e,Bridge.Class.queueIsBlocked=t,s&&Bridge.isFunction(s)&&(s=s()),Bridge.Class.createInheritors(n,s);var a=Bridge.global.System&&Bridge.global.System.Object||Object;s||(s=[a].concat(n.$interfaces)),Bridge.Class.setInheritors(n,s);var o=s?s[0].$$initCtor?new s[0].$$initCtor:new s[0]:new a;n.prototype=o,n.prototype.constructor=n,n.$kind=r.$kind||Bridge.Typemarkers.Class,r.$module&&(n.$module=r.$module)},Bridge.Class.$queue.push(n),n},init:function(e){if(Bridge.Reflection){var t=Bridge.Reflection.deferredMeta,n=t.length;if(n>0){Bridge.Reflection.deferredMeta=[];for(var i=0;i<n;i++){var r=t[i];Bridge.setMetadata(r.typeName,r.metadata,r.ns)}}}if(e){var s=Bridge.Class.staticInitAllow;return Bridge.Class.staticInitAllow=!0,e(),void(Bridge.Class.staticInitAllow=s)}Bridge.Class.staticInitAllow=!0;var a=Bridge.Class.$queue.concat(Bridge.Class.$queueEntry);for(Bridge.Class.$queue.length=0,Bridge.Class.$queueEntry.length=0,i=0;i<a.length;i++){var o=a[i];o.$staticInit&&o.$staticInit(),o.prototype.$main&&(function(e,t){Bridge.ready((function(){var n=e[t]();n&&n.continueWith&&n.continueWith((function(){setTimeout((function(){n.getAwaitedResult()}),0)}))}))}(o,o.prototype.$main.name||"Main"),o.prototype.$main=null)}}};Bridge.Class=J,Bridge.Class.$queue=[],Bridge.Class.$queueEntry=[],Bridge.define=Bridge.Class.define,Bridge.definei=Bridge.Class.definei,Bridge.init=Bridge.Class.init,$$sd("Z$.c$.ue$",{fields:{a$:null},ctors:{ctor:function(e){this.$initialize(),this.a$=e}},methods:{toString:function(){return this.a$}},overloads:{"ToString()":"toString"}}),Bridge.startup={},Bridge.assembly=function(e,t,n,i){var r=performance.now();n||(n=t,t={}),e=e||"Bridge.$Unknown";var s=System.Reflection.Assembly.assemblies[e];s?Bridge.apply(s.res,t||{}):s=new System.Reflection.Assembly(e,t);var a=Bridge.$currentAssembly;if(Bridge.$currentAssembly=s,n){var o=Bridge.Class.staticInitAllow;Bridge.Class.staticInitAllow=!1,n.call(Bridge.global,s,Bridge.global),Bridge.Class.staticInitAllow=o}Bridge.init(),i&&(Bridge.$currentAssembly=a);var l=performance.now();Bridge.startup[e]=l-r},$$sd("Z$.c$.ve$",{statics:{f$:{}},ctor:function(e,t){this.$initialize(),this.name=e,this.res=t||{},this.$types={},this.$={},Z$.c$.ve$.f$[e]=this},a$:function(){return new Z$.c$.ue$(this.name)}}),Bridge.$currentAssembly=new System.Reflection.Assembly("mscorlib"),Bridge.SystemAssembly=Bridge.$currentAssembly,Bridge.SystemAssembly.$types["System.Reflection.Assembly"]=System.Reflection.Assembly,System.Reflection.Assembly.$assembly=Bridge.SystemAssembly;var Q=Bridge.$currentAssembly;$$sd("Z$.Object",{}),$$sd("Z$.we$",{$kind:4,statics:{methods:{}},methods:{}}),Bridge.init((function(){Bridge.SystemAssembly.version="17.9.40-luna",Bridge.SystemAssembly.compiler="17.9.40-luna"})),Bridge.Reflection={deferredMeta:[],setMetadata:function(e,t,n){if(Bridge.isString(e)){var i=e;if(null==(e=Bridge.unroll(i)))return void Bridge.Reflection.deferredMeta.push({typeName:i,metadata:t,ns:n})}n=Bridge.unroll(n),e.$getMetadata=Bridge.Reflection.getMetadata,e.$metadata=t},initMetaData:function(e,t){if(t.m)for(var n=0;n<t.m.length;n++){var i=t.m[n];if(i.td=e,i.ad&&(i.ad.td=e),i.r&&(i.r.td=e),i.g&&(i.g.td=e),i.s&&(i.s.td=e),i.tprm&&Bridge.isArray(i.tprm))for(var r=0;r<i.tprm.length;r++)i.tprm[r]=Bridge.Reflection.createTypeParam(i.tprm[r],e,i,r)}e.$metadata=t,e.$initMetaData=!0},getMetadata:function(){!this.$metadata&&this.$genericTypeDefinition&&(this.$metadata=this.$genericTypeDefinition.$factoryMetadata||this.$genericTypeDefinition.$metadata);var e=this.$metadata;if("function"==typeof e)if(this.$isGenericTypeDefinition&&!this.$factoryMetadata&&(this.$factoryMetadata=this.$metadata),this.$typeArguments)e=this.$metadata.apply(null,this.$typeArguments);else if(this.$isGenericTypeDefinition){var t=Bridge.Reflection.createTypeParams(this.$metadata);this.$typeArguments=t,e=this.$metadata.apply(null,t)}else e=this.$metadata();return!this.$initMetaData&&e&&Bridge.Reflection.initMetaData(this,e),e},createTypeParams:function(e,t){var n,i=[],r=e.toString();n=r.slice(r.indexOf("(")+1,r.indexOf(")")).match(/([^\s,]+)/g)||[];for(var s=0;s<n.length;s++)i.push(Bridge.Reflection.createTypeParam(n[s],t,null,s));return i},createTypeParam:function(e,t,n,i){var r=function(){};return r.$$name=e,r.$isTypeParameter=!0,t&&(r.td=t),n&&(r.md=n),null!=i&&(r.gPrmPos=i),r},load:function(e){return System.Reflection.Assembly.assemblies[e]||require(e)},getGenericTypeDefinition:function(e){return e.$isGenericTypeDefinition?e:(e.$genericTypeDefinition,e.$genericTypeDefinition)},getGenericParameterCount:function(e){return e.$typeArgumentCount||0},getGenericArguments:function(e){return e.$typeArguments||[]},getMethodGenericArguments:function(e){return e.tprm||[]},isGenericTypeDefinition:function(e){return e.$isGenericTypeDefinition||!1},isGenericType:function(e){return null!=e.$genericTypeDefinition||Bridge.Reflection.isGenericTypeDefinition(e)},convertType:function(e){return e===Boolean?System.Boolean:e===String?System.String:e===Object?System.Object:e===Date?System.DateTime:e},getBaseType:function(e){if(Bridge.isObject(e)||Bridge.Reflection.isInterface(e)||null==e.prototype)return null;if(Object.getPrototypeOf)return Bridge.Reflection.convertType(Object.getPrototypeOf(e.prototype).constructor);var t,n=e.prototype;if(Object.prototype.hasOwnProperty.call(n,"constructor"))try{return t=n.constructor,delete n.constructor,Bridge.Reflection.convertType(n.constructor)}finally{n.constructor=t}return Bridge.Reflection.convertType(n.constructor)},getTypeFullName:function(e){var t;if(e.$$fullname?t=e.$$fullname:e.$$name&&(t=e.$$name),t){var n=Bridge.Reflection.getTypeNamespace(e,t);if(n){var i=t.indexOf("["),r=t.substring(n.length+1,-1===i?t.length:i);/[\.\$]/.test(r)&&(t=n+"."+r.replace(/\.|\$/g,(function(e){return"."===e?"+":"`"}))+(-1===i?"":t.substring(i)))}return t}if(e.constructor===Object){t=e.toString();var s=/\[object (.{1,})\]/.exec(t);return"Object"==(r=s&&s.length>1?s[1]:"Object")?"System.Object":r}t=e.constructor===Function?e.toString():e.constructor.toString();var a=/function (.{1,})\(/.exec(t);return a&&a.length>1?a[1]:"System.Object"},_makeQName:function(e,t){return e+(t?", "+t.name:"")},getTypeQName:function(e){return Bridge.Reflection._makeQName(Bridge.Reflection.getTypeFullName(e),e.$assembly)},getTypeName:function(e){var t=Bridge.Reflection.getTypeFullName(e),n=t.indexOf("["),i=t.lastIndexOf("+",n>=0?n:t.length),r=i>-1?i:t.lastIndexOf(".",n>=0?n:t.length),s=r>0?n>=0?t.substring(r+1,n):t.substr(r+1):t;return e.$isArray?s+"[]":s},getTypeNamespace:function(e,t){var n=t||Bridge.Reflection.getTypeFullName(e),i=n.indexOf("["),r=n.lastIndexOf(".",i>=0?i:n.length),s=r>0?n.substr(0,r):"";if(e.$assembly){var a=Bridge.Reflection._getAssemblyType(e.$assembly,s);a&&(s=Bridge.Reflection.getTypeNamespace(a))}return s},getTypeAssembly:function(e){return e.$isArray?Bridge.Reflection.getTypeAssembly(e.$elementType):System.Array.contains([Date,Number,Boolean,String,Function,Array],e)?Bridge.SystemAssembly:e.$assembly||Bridge.SystemAssembly},_extractArrayRank:function(e){var t=-1,n=/<(\d+)>$/g.exec(e);return n&&(e=e.substring(0,n.index),t=parseInt(n[1])),(n=/\[(,*)\]$/g.exec(e))&&(e=e.substring(0,n.index),t=n[1].length+1),{rank:t,name:e}},_getAssemblyType:function(e,t){var n,i=!1;RegExp(/[\+\`]/).test(t)&&(t=t.replace(/\+|\`/g,(function(e){return"+"===e?".":"$"}))),e||(e=Bridge.SystemAssembly,i=!0);var r=Bridge.Reflection._extractArrayRank(t);if(n=r.rank,t=r.name,e.$types){var s=e.$types[t]||null;if(s)return n>-1?System.Array.type(s,n):s;if("mscorlib"!==e.name)return null;e=Bridge.global}for(var a=t.split("."),o=e,l=0;l<a.length;l++)if(!(o=o[a[l]]))return null;return"function"!=typeof o||!i&&o.$assembly&&e.name!==o.$assembly.name?null:n>-1?System.Array.type(o,n):o},getAssemblyTypes:function(e){var t=[];if(e.$types)for(var n in e.$types)e.$types.hasOwnProperty(n)&&t.push(e.$types[n]);else{var i=function(e,n){for(var r in e)e.hasOwnProperty(r)&&i(e[r],r);"function"==typeof e&&Bridge.isUpper(n.charCodeAt(0))&&t.push(e)};i(e,"")}return t},createAssemblyInstance:function(e,t){var n=Bridge.Reflection.getType(t,e);return n?Bridge.createInstance(n):null},getInterfaces:function(e){var t;return e.$allInterfaces?e.$allInterfaces:e===Date?[System.IComparable$1(Date),System.IEquatable$1(Date),System.IComparable,System.IFormattable]:e===Number?[System.IComparable$1(Bridge.Int),System.IEquatable$1(Bridge.Int),System.IComparable,System.IFormattable]:e===Boolean?[System.IComparable$1(Boolean),System.IEquatable$1(Boolean),System.IComparable]:e===String?[System.IComparable$1(String),System.IEquatable$1(String),System.IComparable,System.ICloneable,System.Collections.IEnumerable,System.Collections.Generic.IEnumerable$1(System.Char)]:e===Array||e.$isArray||(t=System.Array._typedArrays[Bridge.getTypeName(e)])?(t=t||e.$elementType||System.Object,[System.Collections.IEnumerable,System.Collections.ICollection,System.ICloneable,System.Collections.IList,System.Collections.Generic.IEnumerable$1(t),System.Collections.Generic.ICollection$1(t),System.Collections.Generic.IList$1(t)]):[]},isInstanceOfType:function(e,t){return Bridge.is(e,t)},isAssignableFrom:function(e,t){if(null==e)throw new System.NullReferenceException;if(null==t)return!1;if(e===t||Bridge.isObject(e))return!0;if(Bridge.isFunction(e.isAssignableFrom))return e.isAssignableFrom(t);if(t===Array)return System.Array.is([],e);if(Bridge.Reflection.isInterface(e)&&System.Array.contains(Bridge.Reflection.getInterfaces(t),e))return!0;if(e.$elementType&&e.$isArray&&t.$elementType&&t.$isArray)return Bridge.Reflection.isValueType(e.$elementType)===Bridge.Reflection.isValueType(t.$elementType)&&e.$rank===t.$rank&&Bridge.Reflection.isAssignableFrom(e.$elementType,t.$elementType);var n,i=t.$$inherits;if(!i)return e.isPrototypeOf(t);for(n=0;n<i.length;n++)if(Bridge.Reflection.isAssignableFrom(e,i[n]))return!0;return!1},isClass:function(e){return e.$kind%Bridge.Typemarkers.NestedOffset===Bridge.Typemarkers.Class||e===Array||e===Function||e===RegExp||e===String||e===Error||e===Object},isEnum:function(e){return e.$kind===Bridge.Typemarkers.Enum},isFlags:function(e){return!(!e.prototype||!e.prototype.$flags)},isInterface:function(e){return e.$kind%Bridge.Typemarkers.NestedOffset===Bridge.Typemarkers.Interface},isAbstract:function(e){return e===Function||e===System.Type||0!=(128&Bridge.Reflection.getMetaValue(e,"att",0))},_getType:function(e,t,n,i){var r=!n;r&&(e=e.replace(/\[(,*)\]/g,(function(e,t){return"<"+(t.length+1)+">"})));var s,a,o=function(){for(;;){var t=n.exec(e);if((!t||"["!=t[0]||"]"!==e[t.index+1]&&","!==e[t.index+1])&&(!t||"]"!=t[0]||"["!==e[t.index-1]&&","!==e[t.index-1])&&(!t||","!=t[0]||"]"!==e[t.index+1]&&","!==e[t.index+1]))return t}},l=(n=n||/[[,\]]/g).lastIndex,c=o(),u=[],h=!t;if(c)switch(s=e.substring(l,c.index),c[0]){case"[":if("["!==e[c.index+1])return null;for(;;){if(o(),!(a=Bridge.Reflection._getType(e,null,n)))return null;if(u.push(a),"]"===(c=o())[0])break;if(","!==c[0])return null}var d=/^\s*<(\d+)>/g.exec(e.substring(c.index+1));if(d&&(s=s+"<"+parseInt(d[1])+">"),(c=o())&&","===c[0]&&(o(),!(t=System.Reflection.Assembly.assemblies[(n.lastIndex>0?e.substring(c.index+1,n.lastIndex-1):e.substring(c.index+1)).trim()])))return null;break;case"]":break;case",":if(o(),!(t=System.Reflection.Assembly.assemblies[(n.lastIndex>0?e.substring(c.index+1,n.lastIndex-1):e.substring(c.index+1)).trim()]))return null}else s=e.substring(l);if(r&&n.lastIndex)return null;s=s.trim();var m=Bridge.Reflection._extractArrayRank(s),g=m.rank;if(s=m.name,a=Bridge.Reflection._getAssemblyType(t,s),i)return a;if(!a&&h)for(var $ in System.Reflection.Assembly.assemblies)if(System.Reflection.Assembly.assemblies.hasOwnProperty($)&&System.Reflection.Assembly.assemblies[$]!==t&&(a=Bridge.Reflection._getType(e,System.Reflection.Assembly.assemblies[$],null,!0)))break;return(a=u.length?a.apply(null,u):a)&&a.$staticInit&&a.$staticInit(),g>-1&&(a=System.Array.type(a,g)),a},getType:function(e,t){return e?Bridge.Reflection._getType(e,t):null},isPrimitive:function(e){return e===System.Int64||e===System.UInt64||e===System.Double||e===System.Single||e===System.Byte||e===System.SByte||e===System.Int16||e===System.UInt16||e===System.Int32||e===System.UInt32||e===System.Boolean||e===Boolean||e===System.Char||e===Number},canAcceptNull:function(e){return e.$kind!==Bridge.Typemarkers.Struct&&e.$kind!==Bridge.Typemarkers.Enum&&e!==System.Decimal&&e!==System.Int64&&e!==System.UInt64&&e!==System.Double&&e!==System.Single&&e!==System.Byte&&e!==System.SByte&&e!==System.Int16&&e!==System.UInt16&&e!==System.Int32&&e!==System.UInt32&&e!==Bridge.Int&&e!==System.Boolean&&e!==System.DateTime&&e!==Boolean&&e!==Date&&e!==Number},applyConstructor:function(e,t){if(!t||0===t.length)return new e;if(e.$$initCtor&&e.$kind!==Bridge.Typemarkers.Anonymous){var n=0;if(Bridge.getMetadata(e))for(var i,r=Bridge.Reflection.getMembers(e,1,28),s=0;s<r.length;s++){var a=r[s];if(a.p&&a.p.length===t.length){i=!0;for(var o=0;o<a.p.length;o++){var l=a.p[o];if(!Bridge.is(t[o],l)||null==t[o]&&!Bridge.Reflection.canAcceptNull(l)){i=!1;break}}i&&(e=e[a.sn],n++)}}else if(Bridge.isFunction(e.ctor)&&e.ctor.length===t.length)e=e.ctor;else for(var c="$ctor",u=1;Bridge.isFunction(e[c+u]);)e[c+u].length===t.length&&(e=e[c+u],n++),u++;if(n>1)throw new System.Exception("The ambiguous constructor call")}return new e(...t)},getAttributes:function(e,t,n){var i,r,s,a,o,l=[];if(n){var c=Bridge.Reflection.getBaseType(e);if(c)for(s=Bridge.Reflection.getAttributes(c,t,!0),i=0;i<s.length;i++)r=Bridge.getType(s[i]),(a=Bridge.getMetadata(r))&&a.ni||l.push(s[i])}if((o=Bridge.getMetadata(e))&&o.at)for(i=0;i<o.at.length;i++)if(s=o.at[i],null==t||Bridge.Reflection.isInstanceOfType(s,t)){if(r=Bridge.getType(s),!(a=Bridge.getMetadata(r))||!a.am)for(var u=l.length-1;u>=0;u--)Bridge.Reflection.isInstanceOfType(l[u],r)&&l.splice(u,1);l.push(s)}return l},getMembers:function(e,t,n,i,r){var s=[];if(72==(72&n)||4==(6&n)){var a=Bridge.Reflection.getBaseType(e);a&&(s=Bridge.Reflection.getMembers(a,-2&t,n&(64&n?255:247)&(2&n?251:255),i,r))}var o=0,l=function(e){if(t&e.t&&(4&n&&!e.is||8&n&&e.is)&&(!i||(1==(1&n)?e.n.toUpperCase()===i.toUpperCase():e.n===i))&&(16==(16&n)&&2===e.a||32==(32&n)&&2!==e.a)){if(r){if((e.p||[]).length!==r.length)return;for(var a=0;a<r.length;a++)if(r[a]!==e.p[a])return}(e.ov||e.v)&&(s=s.filter((function(t){return!(t.n==e.n&&t.t==e.t)}))),s.splice(o++,0,e)}},c=Bridge.getMetadata(e);if(c&&c.m)for(var u=["g","s","ad","r"],h=0;h<c.m.length;h++){var d=c.m[h];l(d);for(var m=0;m<4;m++){var g=u[m];d[g]&&l(d[g])}}if(256&n){for(;e;){var $=[];for(h=0;h<s.length;h++)s[h].td===e&&$.push(s[h]);if($.length>1);else if(1===$.length)return $[0];e=Bridge.Reflection.getBaseType(e)}return null}return s},createDelegate:function(e,t){var n=e.is||e.sm,i=null!=t&&!n,r=Bridge.Reflection.midel(e,t,null,i);return i?r:n?function(){var n=null!=t?[t]:[];return r.apply(e.td,n.concat(Array.prototype.slice.call(arguments,0)))}:function(e){return r.apply(e,Array.prototype.slice.call(arguments,1))}},createDelegateTarget:function(e,t,r){if(null==e)throw new System.ArgumentException(name(e));if(null==r||""===r)throw new System.ArgumentException(name(r));var s=Bridge.Reflection.getMembers(e,n,i,r);return Bridge.Reflection.createDelegate(s,t)},midel:function(e,t,n,i){if(!1!==i){if(e.is&&t)throw new System.ArgumentException.$ctor1("Cannot specify target for static method");if(!e.is&&!t)throw new System.ArgumentException.$ctor1("Must specify target for instance method")}var r;if(e.fg)r=function(){return(e.is?e.td:this)[e.fg]};else if(e.fs)r=function(t){(e.is?e.td:this)[e.fs]=t};else{if(r=e.def||(e.is||e.sm?e.td[e.sn]:t?t[e.sn]:e.td.prototype[e.sn]),e.tpc){if(!e.constructed||n&&0!=n.length||(n=e.tprm),!n||n.length!==e.tpc)throw new System.ArgumentException.$ctor1("Wrong number of type arguments");var s=r;r=function(){return s.apply(this,n.concat(Array.prototype.slice.call(arguments)))}}else if(n&&n.length)throw new System.ArgumentException.$ctor1("Cannot specify type arguments for non-generic method");if(e.exp){var a=r;r=function(){return a.apply(this,Array.prototype.slice.call(arguments,0,arguments.length-1).concat(arguments[arguments.length-1]))}}if(e.sm){var o=r;r=function(){return o.apply(null,[this].concat(Array.prototype.slice.call(arguments)))}}}var l=r;return r=function(){var t,n,i=[],r=e.pi||[];!r.length&&e.p&&e.p.length&&(r=e.p.map((function(e){return{pt:e}})));for(var s=0;s<arguments.length;s++)t=r[s]||r[r.length-1],n=arguments[s],i[s]=t&&t.pt===System.Object?n:Bridge.unbox(arguments[s]),null==n&&t&&Bridge.Reflection.isValueType(t.pt)&&(i[s]=Bridge.getDefaultValue(t.pt));return null!=(n=l.apply(this,i))&&e.box?e.box(n):n},(r=!1!==i?Bridge.fn.bind(t,r):r).mi=e,r},invokeCI:function(e,t){return e.exp&&(t=t.slice(0,t.length-1).concat(t[t.length-1])),e.def?e.def.apply(null,t):e.sm?e.td[e.sn].apply(null,t):e.td.$literal?(e.sn?e.td[e.sn]:e.td).apply(e.td,t):Bridge.Reflection.applyConstructor(e.sn?e.td[e.sn]:e.td,t)},fieldAccess:function(e,t){if(e.is&&t)throw new System.ArgumentException.$ctor1("Cannot specify target for static field");if(!e.is&&!t)throw new System.ArgumentException.$ctor1("Must specify target for instance field");if(t=e.is?e.td:t,3!==arguments.length)return e.box?e.box(t[e.sn]):t[e.sn];var n=arguments[2];null==n&&Bridge.Reflection.isValueType(e.rt)&&(n=Bridge.getDefaultValue(e.rt)),t[e.sn]=n},getMetaValue:function(e,t,n){var i=e.$isTypeParameter?e:Bridge.getMetadata(e);return i&&i[t]||n},isArray:function(e){return Bridge.arrayTypes.indexOf(e)>=0},isValueType:function(e){return!Bridge.Reflection.canAcceptNull(e)},getNestedTypes:function(e,t){var n=Bridge.Reflection.getMetaValue(e,"nested",[]);if(t){for(var i=[],r=0;r<n.length;r++){var s=n[r],a=7&Bridge.Reflection.getMetaValue(s,"att",0),o=1===a||2===a;(16==(16&t)&&o||32==(32&t)&&!o)&&i.push(s)}n=i}return n},getNestedType:function(e,t,n){for(var i=Bridge.Reflection.getNestedTypes(e,n),r=0;r<i.length;r++)if(Bridge.Reflection.getTypeName(i[r])===t)return i[r];return null},isGenericMethodDefinition:function(e){return Bridge.Reflection.isGenericMethod(e)&&!e.constructed},isGenericMethod:function(e){return!!e.tpc},containsGenericParameters:function(e){if(e.$typeArguments)for(var t=0;t<e.$typeArguments.length;t++)if(e.$typeArguments[t].$isTypeParameter)return!0;var n=e.tprm||[];for(t=0;t<n.length;t++)if(n[t].$isTypeParameter)return!0;return!1},genericParameterPosition:function(e){return e.$isTypeParameter,e.gPrmPos||0},makeGenericMethod:function(e,t){var n=Bridge.apply({},e);return n.tprm=t,n.p=t,n.gd=e,n.constructed=!0,n},getGenericMethodDefinition:function(e){return e.tpc,e.gd||e}},Bridge.setMetadata=Bridge.Reflection.setMetadata,System.Reflection.ConstructorInfo={$is:function(e){return null!=e&&1===e.t}},System.Reflection.EventInfo={$is:function(e){return null!=e&&2===e.t}},System.Reflection.FieldInfo={$is:function(e){return null!=e&&4===e.t}},System.Reflection.MethodBase={$is:function(e){return null!=e&&(1===e.t||8===e.t)}},System.Reflection.MethodInfo={$is:function(e){return null!=e&&8===e.t}},System.Reflection.PropertyInfo={$is:function(e){return null!=e&&16===e.t}},System.AppDomain={getAssemblies:function(){return Object.keys(System.Reflection.Assembly.assemblies).map((function(e){return System.Reflection.Assembly.assemblies[e]}))}},$$sd("Z$.id$",{$kind:3,statics:{}}),$$sd("Z$.jd$",{$kind:3,statics:{$is:function(e){return!!(Bridge.isNumber(e)||Bridge.isDate(e)||Bridge.isBoolean(e)||Bridge.isString(e))||Bridge.is(e,System.IComparable,!0)}}}),$$sd("Z$.kd$",{$kind:3}),$$sd("Z$.ld$",{$kind:3}),$$sd("Z$.md$",(function(e){return{$kind:3,statics:{}}})),$$sd("Z$.nd$",(function(e){return{$kind:3,statics:{}}})),$$sd("Z$.pd$",{$kind:3}),$$sd("Z$.td$",{$kind:3}),$$sd("Z$.ze$",{inherits:[Z$.jd$,Z$.id$],statics:{methods:{s$:function(e,t,n){return n?e.toLowerCase()===t.toLowerCase():e.charAt(0).toLowerCase()+e.slice(1)===t.charAt(0).toLowerCase()+t.slice(1)},t$:function(e){if(e.prototype&&e.$kind!==Bridge.Typemarkers.Enum)throw new Z$.ou$.$ctor1("","enumType")},u$:function(e){return Z$.ze$.t$(e),e.prototype.$utype||Z$.Int32},v$:function(e){return e},w$:function(e,t){return null==(t=Bridge.unbox(t,!0))?null:Z$.ze$.x$(e,t.toString(),!1,!0)},x$:function(e,t,n,i){if(Z$.ze$.t$(e),null!=t){if(e===Number||e===Z$.String||e.$number)return t;var r={};if(Z$.Int32.tryParse(t,r))return Bridge.box(r.v,e,(function(t){return Z$.ze$.toString(e,t)}));var s=Z$.ze$.C$(e),a=e;if(e.prototype&&e.prototype.$flags){var o=t.split(","),l=0,c=!0;for(m=o.length-1;m>=0;m--){for(var u=o[m].trim(),h=!1,d=0;d<s.length;d++)if(g=s[d],Z$.ze$.s$(g,u,n)){l|=a[g],h=!0;break}if(!h){c=!1;break}}if(c)return Bridge.box(l,e,(function(t){return Z$.ze$.toString(e,t)}))}else for(var m=0;m<s.length;m++){var g=s[m];if(Z$.ze$.s$(g,t,n))return Bridge.box(a[g],e,(function(t){return Z$.ze$.toString(e,t)}))}}if(!0!==i)throw new Z$.ou$.$ctor3("silent","Invalid Enumeration Value");return null},y$:function(e){return function(t){return Z$.ze$.toString(e,t)}},toString:function(e,t,n){if(0===arguments.length)return"System.Enum";if(t&&t.$boxed&&e===Z$.ze$&&(e=t.type),t=Bridge.unbox(t,!0),e===Number||e===Z$.String||e.$number)return t.toString();Z$.ze$.t$(e);var i=e,r=Z$.ze$.C$(e),s=Z$.Int64.is64Bit(t);if((e.prototype&&e.prototype.$flags||!0===n)&&0!==t){for(var a=[],o=Z$.ze$.z$(e),l=o.length-1,c=t;l>=0;){var u=o[l],h=s&&Z$.Int64.is64Bit(u.value);if(0==l&&(h?u.value.isZero():0==u.value))break;(h?t.and(u.value).eq(u.value):(t&u.value)==u.value)&&(h?t=t.sub(u.value):t-=u.value,a.unshift(u.name)),l--}return(s?t.isZero():0===t)?(s?c.isZero():0===c)?(u=o[0])&&(Z$.Int64.is64Bit(u.value)?u.value.isZero():0==u.value)?u.name:"0":a.join(", "):c.toString()}for(var d=0;d<r.length;d++){var m=r[d];if(s&&Z$.Int64.is64Bit(i[m])?i[m].eq(t):i[m]===t)return Z$.ze$.v$(m)}return t.toString()},z$:function(e){Z$.ze$.t$(e);for(var t=[],n=Z$.ze$.C$(e),i=e,r=0;r<n.length;r++)t.push({name:n[r],value:i[n[r]]});return t.sort((function(e,t){return Z$.Int64.is64Bit(e.value)?e.value.sub(t.value).sign():e.value-t.value}))},A$:function(e){Z$.ze$.t$(e);for(var t=[],n=Z$.ze$.C$(e),i=e,r=0;r<n.length;r++)t.push(i[n[r]]);return t.sort((function(e,t){return Z$.Int64.is64Bit(e)?e.sub(t).sign():e-t}))},B$:function(e,t,n){switch(Z$.ze$.t$(e),Bridge.hasValue(t)&&Bridge.hasValue(n),t=Bridge.unbox(t,!0),n){case"G":case"g":return Z$.ze$.toString(e,t);case"x":case"X":return t.toString(16);case"d":case"D":return t.toString();case"f":case"F":return Z$.ze$.toString(e,t,!0)}},C$:function(e){Z$.ze$.t$(e);var t=[],n=e;if(e.$names)return e.$names.slice(0);for(var i in n)n.hasOwnProperty(i)&&i.indexOf("$")<0&&"function"!=typeof n[i]&&t.push([Z$.ze$.v$(i),n[i]]);return t.sort((function(e,t){return Z$.Int64.is64Bit(e[1])?e[1].sub(t[1]).sign():e[1]-t[1]})).map((function(e){return e[0]}))},D$:function(e,t){t=Bridge.unbox(t,!0);var n=Z$.Int64.is64Bit(t);if(!n&&("number"!=typeof t||Math.floor(t,0)!==t))throw new Z$.ou$.$ctor1("Argument must be integer","value");Z$.ze$.t$(e);for(var i=Z$.ze$.C$(e),r=e,s=0;s<i.length;s++){var a=i[s];if(n?t.eq(r[a]):r[a]===t)return a}return null},E$:function(e,t){t=Bridge.unbox(t,!0);var n=Z$.Int64.is64Bit(e);return 0===t||(n?!e.and(t).isZero():!!(e&t))},F$:function(e,t){t=Bridge.unbox(t,!0),Z$.ze$.t$(e);for(var n=e,i=Z$.ze$.C$(e),r=Bridge.isString(t),s=Z$.Int64.is64Bit(t),a=0;a<i.length;a++){var o=i[a];if(r?Z$.ze$.s$(o,t,!1):s?t.eq(n[o]):n[o]===t)return!0}return!1},G$:function(e,t,n,i){return n.v=Bridge.unbox(Z$.ze$.x$(e,t,i,!0),!0),null!=n.v||(n.v=0,!1)},H$:function(e,t,n){return!(t&&t.$boxed&&(e&&e.$boxed||n)&&t.type!==(e.type||n))&&Z$.ze$.I$(e,t)},I$:function(e,t){return Bridge.equals(Bridge.unbox(e,!0),Bridge.unbox(t,!0))}}}});var X={hasValue:Bridge.hasValue,getValue:function(e){return e=Bridge.unbox(e,!0),Bridge.hasValue(e),e},getValueOrDefault:function(e,t){return Bridge.hasValue(e)?e:t},add:function(e,t){return Bridge.hasValue$1(e,t)?e+t:null},band:function(e,t){return Bridge.hasValue$1(e,t)?e&t:null},bor:function(e,t){return Bridge.hasValue$1(e,t)?e|t:null},and:function(e,t){return!0===e&&!0===t||!1!==e&&!1!==t&&null},or:function(e,t){return!0===e||!0===t||(!1!==e||!1!==t)&&null},div:function(e,t){return Bridge.hasValue$1(e,t)?e/t:null},eq:function(e,t){return Bridge.hasValue(e)?e===t:!Bridge.hasValue(t)},equals:function(e,t,n){return Bridge.hasValue(e)?n?n(e,t):Bridge.equals(e,t):!Bridge.hasValue(t)},toString:function(e,t){return Bridge.hasValue(e)?t?t(e):e.toString():""},toStringFn:function(e){return function(t){return System.Nullable.toString(t,e)}},getHashCode:function(e,t){return Bridge.hasValue(e)?t?t(e):Bridge.getHashCode(e):0},getHashCodeFn:function(e){return function(t){return System.Nullable.getHashCode(t,e)}},xor:function(e,t){return Bridge.hasValue$1(e,t)?Bridge.isBoolean(e)&&Bridge.isBoolean(t)?e!=t:e^t:null},gt:function(e,t){return Bridge.hasValue$1(e,t)&&e>t},gte:function(e,t){return Bridge.hasValue$1(e,t)&&e>=t},neq:function(e,t){return Bridge.hasValue(e)?e!==t:Bridge.hasValue(t)},lt:function(e,t){return Bridge.hasValue$1(e,t)&&e<t},lte:function(e,t){return Bridge.hasValue$1(e,t)&&e<=t},mod:function(e,t){return Bridge.hasValue$1(e,t)?e%t:null},mul:function(e,t){return Bridge.hasValue$1(e,t)?e*t:null},imul:function(e,t){return Bridge.hasValue$1(e,t)?Bridge.Int.mul(e,t):null},sl:function(e,t){return Bridge.hasValue$1(e,t)?e<<t:null},sr:function(e,t){return Bridge.hasValue$1(e,t)?e>>t:null},srr:function(e,t){return Bridge.hasValue$1(e,t)?e>>>t:null},sub:function(e,t){return Bridge.hasValue$1(e,t)?e-t:null},bnot:function(e){return Bridge.hasValue(e)?~e:null},neg:function(e){return Bridge.hasValue(e)?-e:null},not:function(e){return Bridge.hasValue(e)?!e:null},pos:function(e){return Bridge.hasValue(e)?+e:null},lift:function(){for(var e=1;e<arguments.length;e++)if(!Bridge.hasValue(arguments[e]))return null;return null==arguments[0]?null:null==arguments[0].apply?arguments[0]:arguments[0].apply(null,Array.prototype.slice.call(arguments,1))},lift1:function(e,t){return Bridge.hasValue(t)?"function"==typeof e?e.apply(null,Array.prototype.slice.call(arguments,1)):t[e].apply(t,Array.prototype.slice.call(arguments,2)):null},lift2:function(e,t,n){return Bridge.hasValue$1(t,n)?"function"==typeof e?e.apply(null,Array.prototype.slice.call(arguments,1)):t[e].apply(t,Array.prototype.slice.call(arguments,2)):null},liftcmp:function(e,t,n){return!!Bridge.hasValue$1(t,n)&&("function"==typeof e?e.apply(null,Array.prototype.slice.call(arguments,1)):t[e].apply(t,Array.prototype.slice.call(arguments,2)))},lifteq:function(e,t,n){var i=Bridge.hasValue(t),r=Bridge.hasValue(n);return!i&&!r||i&&r&&("function"==typeof e?e.apply(null,Array.prototype.slice.call(arguments,1)):t[e].apply(t,Array.prototype.slice.call(arguments,2)))},liftne:function(e,t,n){var i=Bridge.hasValue(t),r=Bridge.hasValue(n);return i!==r||i&&("function"==typeof e?e.apply(null,Array.prototype.slice.call(arguments,1)):t[e].apply(t,Array.prototype.slice.call(arguments,2)))},getUnderlyingType:function(e){return Bridge.Reflection.isGenericType(e)&&!Bridge.Reflection.isGenericTypeDefinition(e)&&Bridge.Reflection.getGenericTypeDefinition(e)===System.Nullable$1?Bridge.Reflection.getGenericArguments(e)[0]:null},compare:function(e,t){return System.Collections.Generic.Comparer$1.$default.compare(e,t)}};System.Nullable=X,$$sd("Z$.au$",(function(e){return{$kind:4,statics:{b$:!0,c$:e}}})),$$sd("Z$.bu$",{inherits:[Z$.jd$,Z$.id$],$kind:4,statics:{min:0,max:65535,gGa$:RegExp(/[A-Za-z\u0061-\u007A\u00B5\u00DF-\u00F6\u00F8-\u00FF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0561-\u0587\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7FA\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A\u0041-\u005A\u00C0-\u00D6\u00D8-\u00DE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA\uFF21-\uFF3A\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5\u06E6\u07F4\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA717-\uA71F\uA770\uA788\uA7F8\uA7F9\uA9CF\uAA70\uAADD\uAAF3\uAAF4\uFF70\uFF9E\uFF9F\u00AA\u00BA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E45\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A\uA62B\uA66E\uA6A0-\uA6E5\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/),hGa$:RegExp(/[0-9\u0030-\u0039\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/),iGa$:RegExp(/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65\u002D\u058A\u05BE\u1400\u1806\u2010-\u2015\u2E17\u2E1A\u2E3A\u2E3B\u301C\u3030\u30A0\uFE31\uFE32\uFE58\uFE63\uFF0D\u0028\u005B\u007B\u0F3A\u0F3C\u169B\u201A\u201E\u2045\u207D\u208D\u2329\u2768\u276A\u276C\u276E\u2770\u2772\u2774\u27C5\u27E6\u27E8\u27EA\u27EC\u27EE\u2983\u2985\u2987\u2989\u298B\u298D\u298F\u2991\u2993\u2995\u2997\u29D8\u29DA\u29FC\u2E22\u2E24\u2E26\u2E28\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u3018\u301A\u301D\uFD3E\uFE17\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE47\uFE59\uFE5B\uFE5D\uFF08\uFF3B\uFF5B\uFF5F\uFF62\u0029\u005D\u007D\u0F3B\u0F3D\u169C\u2046\u207E\u208E\u232A\u2769\u276B\u276D\u276F\u2771\u2773\u2775\u27C6\u27E7\u27E9\u27EB\u27ED\u27EF\u2984\u2986\u2988\u298A\u298C\u298E\u2990\u2992\u2994\u2996\u2998\u29D9\u29DB\u29FD\u2E23\u2E25\u2E27\u2E29\u3009\u300B\u300D\u300F\u3011\u3015\u3017\u3019\u301B\u301E\u301F\uFD3F\uFE18\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE44\uFE48\uFE5A\uFE5C\uFE5E\uFF09\uFF3D\uFF5D\uFF60\uFF63\u00AB\u2018\u201B\u201C\u201F\u2039\u2E02\u2E04\u2E09\u2E0C\u2E1C\u2E20\u00BB\u2019\u201D\u203A\u2E03\u2E05\u2E0A\u2E0D\u2E1D\u2E21\u005F\u203F\u2040\u2054\uFE33\uFE34\uFE4D-\uFE4F\uFF3F\u0021-\u0023\u0025-\u0027\u002A\u002C\u002E\u002F\u003A\u003B\u003F\u0040\u005C\u00A1\u00A7\u00B6\u00B7\u00BF\u037E\u0387\u055A-\u055F\u0589\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u166D\u166E\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u1805\u1807-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2016\u2017\u2020-\u2027\u2030-\u2038\u203B-\u203E\u2041-\u2043\u2047-\u2051\u2053\u2055-\u205E\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00\u2E01\u2E06-\u2E08\u2E0B\u2E0E-\u2E16\u2E18\u2E19\u2E1B\u2E1E\u2E1F\u2E2A-\u2E2E\u2E30-\u2E39\u3001-\u3003\u303D\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFE10-\uFE16\uFE19\uFE30\uFE45\uFE46\uFE49-\uFE4C\uFE50-\uFE52\uFE54-\uFE57\uFE5F-\uFE61\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF07\uFF0A\uFF0C\uFF0E\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3C\uFF61\uFF64\uFF65]/),jGa$:RegExp(/[\u2028\u2029\u0020\u00A0\u1680\u180E\u2000-\u200A\u202F\u205F\u3000]/),kGa$:[33,34,35,37,38,39,40,41,42,44,45,46,47,58,59,63,64,91,92,93,95,123,125,161,171,173,183,187,191],OFa$:function(e){return" "===e||"\t"===e||"\n"===e||"\v"===e||"\f"===e||"\r"===e||"
"===e||" "===e}}}),Bridge.Class.addExtend(System.Char,[System.IComparable$1(System.Char),System.IEquatable$1(System.Char)]),$$sd("Bridge.cu$",(function(e){return{statics:{methods:{}},fields:{a$:null,b$:null},props:{},ctors:{},methods:{},overloads:{"ToString()":"toString","ValueOf()":"valueOf"}}})),$$sd("Z$.c$.eu$",{fields:{a$:null},ctors:{ctor:function(e){this.$initialize(),Z$.Object.call(this),this.a$=e}},methods:{toString:function(){return this.a$}},overloads:{"ToString()":"toString"}}),$$sd("Z$.fu$",{config:{properties:{b$:{get:function(){return this.message}},c$:{get:function(){return this.innerException}},d$:{get:function(){return this.errorStack.stack}},e$:{get:function(){return new Z$.c$.eu$(this.errorStack.stack.split("\n")[0]||"")}},f$:{get:function(){return this.data}},g$:{get:function(){return this._HResult},set:function(e){this._HResult=e}}}},ctor:function(e,t){this.$initialize(),this.message=e||"Exception of type '"+Bridge.getTypeName(this)+"' was thrown.",this.innerException=t||null,this.errorStack=Error(this.message),this.data=new(Z$.C$.w$.r$(Z$.Object,Z$.Object))},a$:function(){for(var e=this.innerException,t=this;null!=e;)t=e,e=e.innerException;return t},toString:function(){var e=Bridge.getTypeName(this);return null!=this.b$?e+=": "+this.b$+"\n":e+="\n",null!=this.d$&&(e+=this.d$+"\n"),e},statics:{create:function(e){if(Bridge.is(e,Z$.fu$))return e;var t;if(e instanceof TypeError)t=new Z$.Du$.$ctor1(e.message);else if(e instanceof RangeError)t=new Z$.qu$.$ctor1(e.message);else{if(e instanceof Error)return new Z$.gu$.$ctor1(e);t=e&&e.error&&e.error.stack?new Z$.fu$(e.error.stack):new Z$.fu$(e?e.message?e.message:e.toString():null)}return t.errorStack=e,t}}}),$$sd("Z$.gu$",{inherits:[Z$.fu$],ctors:{ctor:function(){this.$initialize(),Z$.fu$.ctor.call(this,"System error."),this.g$=-2146233087},$ctor1:function(e){this.$initialize(),Z$.fu$.ctor.call(this,e),this.g$=-2146233087},$ctor2:function(e,t){this.$initialize(),Z$.fu$.ctor.call(this,e,t),this.g$=-2146233087}}}),$$sd("Z$.f$.iv$",{inherits:[Z$.ld$],fields:{oGa$:null},props:{pGa$:0,qGa$:null,rGa$:0,sGa$:!1,tGa$:!1,LCID:0,vGa$:0,wGa$:0},alias:[],methods:{},overloads:{"Clone()":"clone"}}),$$sd("Z$.f$.jv$",{inherits:function(){return[Z$.nd$(Z$.f$.jv$)]},statics:{methods:{}},fields:{yGa$:0,zGa$:null},props:{},alias:[],ctors:{},methods:{},overloads:{"Equals(object)":"equals","Equals(SortVersion)":"equalsT","GetHashCode()":"getHashCode"}}),$$sd("Z$.f$.mv$",{inherits:[Z$.kd$,Z$.ld$],config:{alias:[]},statics:{MGa$:{d:"shortDatePattern",D:"longDatePattern",f:"longDatePattern shortTimePattern",F:"longDatePattern longTimePattern",g:"shortDatePattern shortTimePattern",G:"shortDatePattern longTimePattern",m:"monthDayPattern",M:"monthDayPattern",o:"roundtripFormat",O:"roundtripFormat",r:"rfc1123",R:"rfc1123",s:"sortableDateTimePattern",S:"sortableDateTimePattern1",t:"shortTimePattern",T:"longTimePattern",u:"universalSortableDateTimePattern",U:"longDatePattern longTimePattern",y:"yearMonthPattern",Y:"yearMonthPattern"},ctor:function(){this.invariantInfo=Bridge.merge(new Z$.f$.mv$,{abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],firstDayOfWeek:0,fullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",longDatePattern:"dddd, dd MMMM yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"MMMM dd",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],pmDesignator:"PM",rfc1123:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"MM/dd/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",sortableDateTimePattern1:"yyyy'-'MM'-'dd",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"yyyy MMMM",roundtripFormat:"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffzzz"})}}}),$$sd("Z$.f$.nv$",{inherits:[Z$.kd$,Z$.ld$],config:{alias:["EGa$","LGa$"]},statics:{ctor:function(){this.numberNegativePatterns=["(n)","-n","- n","n-","n -"],this.currencyNegativePatterns=["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"],this.currencyPositivePatterns=["$n","n$","$ n","n $"],this.percentNegativePatterns=["-n %","-n%","-%n","%-n","%n-","n-%","n%-","-% n","n %-","% n-","% -n","n- %"],this.percentPositivePatterns=["n %","n%","%n","% n"],this.invariantInfo=Bridge.merge(new Z$.f$.nv$,{nanSymbol:"NaN",negativeSign:"-",positiveSign:"+",negativeInfinitySymbol:"-Infinity",positiveInfinitySymbol:"Infinity",percentSymbol:"%",percentGroupSizes:[3],percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentPositivePattern:0,percentNegativePattern:0,currencySymbol:"¤",currencyGroupSizes:[3],currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyNegativePattern:0,currencyPositivePattern:0,numberGroupSizes:[3],numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",numberNegativePattern:1})}},EGa$:function(e){return e===Z$.f$.nv$?this:null}}),$$sd("Z$.f$.ov$",{inherits:[Z$.kd$,Z$.ld$],config:{alias:["EGa$","LGa$"]},NGa$:!0,statics:{ctor:function(){this.cultures=this.cultures||{},this.tagRegExp=/^(\w\w).?(\w\w)?/i,this.invariantCulture=Bridge.merge(new Z$.f$.ov$("iv",!0),{englishName:"Invariant Language (Invariant Country)",nativeName:"Invariant Language (Invariant Country)",numberFormat:Z$.f$.nv$.invariantInfo,dateTimeFormat:Z$.f$.mv$.invariantInfo,TextInfo:Bridge.merge(new Z$.f$.iv$,{ANSICodePage:1252,CultureName:"",EBCDICCodePage:37,listSeparator:",",IsRightToLeft:!1,LCID:127,MacCodePage:1e4,OEMCodePage:437,IsReadOnly:!0})}),this.PGa$(Z$.f$.ov$.invariantCulture)},OGa$:function(){return this.currentCulture},PGa$:function(e){this.currentCulture=e,Z$.f$.mv$.currentInfo=e.dateTimeFormat,Z$.f$.nv$.currentInfo=e.numberFormat}},ctor:function(e,t){var n;this.$initialize(),this.name=e,Z$.f$.ov$.cultures||(Z$.f$.ov$.cultures={}),null==(n=""===e?Z$.f$.ov$.invariantCulture:Z$.f$.ov$.cultures[e])?Z$.f$.ov$.cultures[e]=this:(Bridge.copy(this,n,["englishName","nativeName","numberFormat","dateTimeFormat","TextInfo"]),this.TextInfo.IsReadOnly=!1)},EGa$:function(e){switch(e){case Z$.f$.nv$:return this.numberFormat;case Z$.f$.mv$:return this.dateTimeFormat;default:return null}}}),$$sd("Z$.rv$",{statics:{}}),Bridge.Math={divRem:function(e,t,n){var i=e%t;return n.v=i,(e-i)/t},round:function(e,t,n){var i=Math.pow(10,t||0),r=(e*=i)>0|-(e<0);if(e%1==.5*r){var s=Math.floor(e);return(s+(4===n?r>0:s%2*r))/i}return Math.round(e)/i},log10:Math.log10||function(e){return Math.log(e)/Math.LN10},logWithBase:function(e,t){return isNaN(e)?e:isNaN(t)?t:1===t?NaN:1===e||0!==t&&Infinity!==t?Bridge.Math.log10(e)/Bridge.Math.log10(t):NaN},log:function(e){return 0===e?-Infinity:e<0||isNaN(e)?NaN:Infinity===e?Infinity:-Infinity===e?NaN:Math.log(e)},sinh:Math.sinh||function(e){return(Math.exp(e)-Math.exp(-e))/2},cosh:Math.cosh||function(e){return(Math.exp(e)+Math.exp(-e))/2},tanh:Math.tanh||function(e){if(Infinity===e)return 1;if(-Infinity===e)return-1;var t=Math.exp(2*e);return(t-1)/(t+1)},IEEERemainder:function(e,t){var n,i=e%t;if(isNaN(i))return NaN;if(0===i&&e<0)return-0;if(n=i-Math.abs(t)*Bridge.Int.sign(e),Math.abs(n)===Math.abs(i)){var r=e/t,s=Bridge.Math.round(r,0,6);return Math.abs(s)>Math.abs(r)?n:i}return Math.abs(n)<Math.abs(i)?n:i}},$$sd("Z$.Boolean",{inherits:[Z$.jd$],statics:{VGa$:"True",WGa$:"False"}}),System.Boolean.$kind=Bridge.Typemarkers.None,Bridge.Class.addExtend(System.Boolean,[System.IComparable$1(System.Boolean),System.IEquatable$1(System.Boolean)]),$$sd("Bridge.Int",{inherits:[Z$.jd$,Z$.id$],statics:{AHa$:!0,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,B$:function(e,t,n,i,r){var s,a,o,l,c=(n||Z$.f$.ov$.OGa$()).getFormat(Z$.f$.nv$),u=c.numberDecimalSeparator,h=(c.numberGroupSeparator,e instanceof Z$.Decimal),d=e instanceof Z$.Int64||e instanceof Z$.UInt64,m=h||d?!e.isZero()&&e.isNegative():e<0;if(!d&&(h?!e.isFinite():!isFinite(e)))return-Infinity===e||h&&m?c.negativeInfinitySymbol:isNaN(e)?c.nanSymbol:c.positiveInfinitySymbol;if(t||(t="G"),s=t.match(/^([a-zA-Z])(\d*)$/))switch(l=s[1].toUpperCase(),a=parseInt(s[2],10),l){case"D":return this.XGa$(e,isNaN(a)?1:a,0,0,c,!0);case"F":case"N":return isNaN(a)&&(a=c.numberDecimalDigits),this.XGa$(e,1,a,a,c,"F"===l);case"G":case"E":for(var g,$,p=0,y=h||d?d&&e.eq(Z$.Int64.MinValue)?Z$.Int64(e.value.toUnsigned()):e.abs():Math.abs(e),f=s[1],_=3;h||d?y.gte(10):y>=10;)h||d?y=y.div(10):y/=10,p++;for(;h||d?y.ne(0)&&y.lt(1):0!==y&&y<1;)h||d?y=y.mul(10):y*=10,p--;if("G"===l){var S=isNaN(a);if(S&&(a=h?29:d?e instanceof Z$.Int64?19:20:i&&i.precision?i.precision:15),p>-5&&p<a||h&&S)return g=0,$=a-(p>0?p+1:1),this.XGa$(e,1,h?Math.min(27,Math.max(g,e.$precision)):g,$,c,!0);f="G"===f?"E":"e",_=2,g=0,$=(a||15)-1}else g=$=isNaN(a)?6:a;return p>=0?f+=c.positiveSign:(f+=c.negativeSign,p=-p),m&&(h||d?y=y.mul(-1):y*=-1),this.XGa$(y,1,h?Math.min(27,Math.max(g,e.$precision)):g,$,c)+f+this.XGa$(p,_,0,0,c,!0);case"P":return isNaN(a)&&(a=c.percentDecimalDigits),this.XGa$(100*e,1,a,a,c,!1,"percent");case"X":var b;for(b=h?e.round().value.toHex().substr(2):d?(r?r(e):e).toString(16):(r?r(Math.round(e)):Math.round(e)>>>0).toString(16),"X"===s[1]&&(b=b.toUpperCase()),a-=b.length;a-- >0;)b="0"+b;return b;case"C":return isNaN(a)&&(a=c.currencyDecimalDigits),this.XGa$(e,1,a,a,c,!1,"currency");case"R":var C=h||d?e.toString():""+e;return"."!==u&&(C=C.replace(".",u)),C.replace("e","E")}if(-1!==t.indexOf(",.")||Z$.String.endsWith(t,",")){var E=0,T=t.indexOf(",.");for(-1===T&&(T=t.length-1);T>-1&&","===t.charAt(T);)E++,T--;h||d?e=e.div(Math.pow(1e3,E)):e/=Math.pow(1e3,E)}return-1!==t.indexOf("%")&&(h||d?e=e.mul(100):e*=100),-1!==t.indexOf("‰")&&(h||d?e=e.mul(1e3):e*=1e3),o=t.split(";"),(h||d?e.lt(0):e<0)&&o.length>1?(h||d?e=e.mul(-1):e*=-1,t=o[1]):t=o[(h||d?e.ne(0):!e)&&o.length>2?2:0],this.YGa$(e,t,c,!t.match(/^[^\.]*[0#],[0#]/))},XGa$:function(e,t,n,i,r,s,a){a=a||"number";var o,l,c,u,h,d,m,g,$,p,y,f,_=(r||Z$.f$.ov$.OGa$()).getFormat(Z$.f$.nv$),S=_[a+"GroupSizes"],b="",C=e instanceof Z$.Decimal,E=e instanceof Z$.Int64||e instanceof Z$.UInt64,T=C||E?!e.isZero()&&e.isNegative():e<0;if(f=(o=C?e.abs().toDecimalPlaces(i).toFixed():E?e.eq(Z$.Int64.MinValue)?e.value.toUnsigned().toString():e.abs().toString():""+ +Math.abs(e).toFixed(i)).split("").every((function(e){return"0"===e||"."===e})),(l=o.indexOf("."))>0&&(h=_[a+"DecimalSeparator"]+o.substr(l+1),o=o.substr(0,l)),o.length<t&&(o=Array(t-o.length+1).join("0")+o),h?(h.length-1<n&&(h+=Array(n-h.length+2).join("0")),0===i?h=null:h.length-1>i&&(h=h.substr(0,i+1))):n>0&&(h=_[a+"DecimalSeparator"]+Array(n+1).join("0")),u=S[c=0],o.length<u)b=o,h&&(b+=h);else{for(d=o.length,m=!1,y=s?"":_[a+"GroupSeparator"];!m&&((g=d-($=u))<0&&(u+=g,$+=g,g=0,m=!0),$);)p=o.substr(g,$),b=b.length?p+y+b:p,d-=$,c<S.length-1&&(u=S[++c]);h&&(b+=h)}return T&&!f?Z$.f$.nv$[a+"NegativePatterns"][_[a+"NegativePattern"]].replace("-",_.negativeSign).replace("%",_.percentSymbol).replace("$",_.currencySymbol).replace("n",b):Z$.f$.nv$[a+"PositivePatterns"]?Z$.f$.nv$[a+"PositivePatterns"][_[a+"PositivePattern"]].replace("%",_.percentSymbol).replace("$",_.currencySymbol).replace("n",b):b},bHa$:function(e,t,n,i,r){return t.v=0,r=r||10,null!=e&&e.trim==="".trim&&(e=e.trim()),!(r<=10&&!/^[+-]?[0-9]+$/.test(e)||16==r&&!/^[+-]?[0-9A-F]+$/gi.test(e)||(t.v=parseInt(e,r),(t.v<n||t.v>i)&&(t.v=0,1)))},fHa$:function(e){return Bridge.isNumber(e)?e>0?Math.floor(e):Math.ceil(e):Bridge.Int.eHa$(e)?e:null},div:function(e,t){return null==e||null==t?null:this.fHa$(e/t)},sxs:function(e){return Bridge.isNumber(e)?e|(32768&e?4294901760:0):Bridge.Int.eHa$(e)||isNaN(e)?Z$.Int16.min:null},$mul:Math.imul||function(e,t){var n=65535&e,i=65535&t;return n*i+((e>>>16&65535)*i+n*(t>>>16&65535)<<16>>>0)|0},mul:function(e,t,n){return null==e||null==t?null:(n&&Bridge.Int.gHa$(e*t,Z$.Int32),Bridge.Int.$mul(e,t))}}}),Bridge.Int.$kind=Bridge.Typemarkers.None,Bridge.Class.addExtend(Bridge.Int,[System.IComparable$1(Bridge.Int),System.IEquatable$1(Bridge.Int)]),function(){var e=function(e,t,n,i,r){var s=Bridge.define(e,{inherits:[System.IComparable,System.IFormattable],statics:{$number:!0,toUnsign:r,min:t,max:n,precision:i,$is:function(e){return"number"==typeof e&&Math.floor(e,0)===e&&e>=t&&e<=n},getDefaultValue:function(){return 0},parse:function(e,i){return Bridge.Int.parseInt(e,t,n,i)},tryParse:function(e,i,r){return Bridge.Int.tryParseInt(e,i,t,n,r)},parseStyles:function(e,i){return Bridge.Int.parseIntStyles(e,t,n,i)},tryParseStyles:function(e,i,r){return Bridge.Int.tryParseIntStyles(e,i,t,n,r)},format:function(e,t,n){return Bridge.Int.format(e,t,n,s,r)},equals:function(e,t){return!(!Bridge.is(e,s)||!Bridge.is(t,s))&&Bridge.unbox(e,!0)===Bridge.unbox(t,!0)},equalsT:function(e,t){return Bridge.unbox(e,!0)===Bridge.unbox(t,!0)},parseWithProvider:function(e,t,n){return Bridge.Int.parseWithProvider(e,t,n)},tryParseWithProvider:function(e,t,n,i){return Bridge.Int.tryParseWithProvider(e,t,n,i)}}});s.$kind=Bridge.Typemarkers.None,Bridge.Class.addExtend(s,[System.IComparable$1(s),System.IEquatable$1(s)])};e("System.Byte",0,255,3),e("System.SByte",-128,127,3,Bridge.Int.clipu8),e("System.Int16",-32768,32767,5,Bridge.Int.clipu16),e("System.UInt16",0,65535,5),e("System.Int32",-2147483648,2147483647,10,Bridge.Int.clipu32),e("System.UInt32",0,4294967295,10)}(),$$sd("Z$.uv$",{inherits:[Z$.jd$,Z$.id$],statics:{min:-Number.MAX_VALUE,max:Number.MAX_VALUE,CHa$:15,AHa$:!0,$is:function(e){return"number"==typeof e},NFa$:function(){return 0}}}),System.Double.$kind=Bridge.Typemarkers.None,Bridge.Class.addExtend(System.Double,[System.IComparable$1(System.Double),System.IEquatable$1(System.Double)]),$$sd("Z$.vv$",{inherits:[Z$.jd$,Z$.id$],statics:{min:-34028234663852886e22,max:34028234663852886e22,CHa$:7,AHa$:!0,$is:System.Double.$is,NFa$:System.Double.getDefaultValue,x$:System.Double.parse,G$:System.Double.tryParse,BHa$:System.Double.tryParse4,B$:function(e,t,n){return Bridge.Int.B$(e,t||"G",n,Z$.vv$)},dGa$:System.Double.getHashCode}}),System.Single.$kind=Bridge.Typemarkers.None,Bridge.Class.addExtend(System.Single,[System.IComparable$1(System.Single),System.IEquatable$1(System.Single)]),function(e){function t(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function n(e){return!0===(e&&e.__isLong__)}function i(e,t){var n,i;if(t){if((i=0<=(e>>>=0)&&256>e)&&(n=c[e]))return n;n=s(e,0>(0|e)?-1:0,!0),i&&(c[e]=n)}else{if((i=-128<=(e|=0)&&128>e)&&(n=l[e]))return n;n=s(e,0>e?-1:0,!1),i&&(l[e]=n)}return n}function r(e,t){if(isNaN(e)||!isFinite(e))return t?$:g;if(t){if(0>e)return $;if(e>=h)return S}else{if(e<=-d)return b;if(e+1>=d)return _}return 0>e?r(-e,t).neg():s(e%4294967296|0,e/4294967296|0,t)}function s(e,n,i){return new t(e,n,i)}function a(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return g;if("number"==typeof t?(n=t,t=!1):t=!!t,2>(n=n||10)||36<n)throw RangeError("radix");var i;if(0<(i=e.indexOf("-")))throw Error("interior hyphen");if(0===i)return a(e.substring(1),t,n).neg();i=r(u(n,8));for(var s=g,o=0;o<e.length;o+=8){var l=Math.min(8,e.length-o),c=parseInt(e.substring(o,o+l),n);8>l?(l=r(u(n,l)),s=s.mul(l).add(r(c))):s=(s=s.mul(i)).add(r(c))}return s.unsigned=t,s}function o(e){return e instanceof t?e:"number"==typeof e?r(e):"string"==typeof e?a(e):s(e.low,e.high,e.unsigned)}e.Bridge.$Long=t,t.__isLong__,Object.defineProperty(t.prototype,"__isLong__",{value:!0,enumerable:!1,configurable:!1}),t.isLong=n;var l={},c={};t.fromInt=i,t.fromNumber=r,t.fromBits=s;var u=Math.pow;t.fromString=a,t.fromValue=o;var h=0x10000000000000000,d=h/2,m=i(16777216),g=i(0);t.ZERO=g;var $=i(0,!0);t.UZERO=$;var p=i(1);t.ONE=p;var y=i(1,!0);t.UONE=y;var f=i(-1);t.NEG_ONE=f;var _=s(-1,2147483647,!1);t.MAX_VALUE=_;var S=s(-1,-1,!0);t.MAX_UNSIGNED_VALUE=S;var b=s(0,-2147483648,!1);t.MIN_VALUE=b,(e=t.prototype).toInt=function(){return this.unsigned?this.low>>>0:this.low},e.toNumber=function(){return this.unsigned?4294967296*(this.high>>>0)+(this.low>>>0):4294967296*this.high+(this.low>>>0)},e.toString=function(e){if(2>(e=e||10)||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(b)){var t=r(e);return t=(n=this.div(t)).mul(t).sub(this),n.toString(e)+t.toInt().toString(e)}return(void 0===e||10===e?"-":"")+this.neg().toString(e)}for(var n=r(u(e,6),this.unsigned),i=(t=this,"");;){var s=t.div(n),a=(t.sub(s.mul(n)).toInt()>>>0).toString(e);if((t=s).isZero())return a+i;for(;6>a.length;)a="0"+a;i=""+a+i}},e.getHighBits=function(){return this.high},e.getHighBitsUnsigned=function(){return this.high>>>0},e.getLowBits=function(){return this.low},e.getLowBitsUnsigned=function(){return this.low>>>0},e.getNumBitsAbs=function(){if(this.isNegative())return this.eq(b)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;0<t&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},e.isZero=function(){return 0===this.high&&0===this.low},e.isNegative=function(){return!this.unsigned&&0>this.high},e.isPositive=function(){return this.unsigned||0<=this.high},e.isOdd=function(){return 1==(1&this.low)},e.isEven=function(){return 0==(1&this.low)},e.equals=function(e){return n(e)||(e=o(e)),(this.unsigned===e.unsigned||1!=this.high>>>31||1!=e.high>>>31)&&this.high===e.high&&this.low===e.low},e.eq=e.equals,e.notEquals=function(e){return!this.eq(e)},e.neq=e.notEquals,e.lessThan=function(e){return 0>this.comp(e)},e.lt=e.lessThan,e.lessThanOrEqual=function(e){return 0>=this.comp(e)},e.lte=e.lessThanOrEqual,e.greaterThan=function(e){return 0<this.comp(e)},e.gt=e.greaterThan,e.greaterThanOrEqual=function(e){return 0<=this.comp(e)},e.gte=e.greaterThanOrEqual,e.compare=function(e){if(n(e)||(e=o(e)),this.eq(e))return 0;var t=this.isNegative(),i=e.isNegative();return t&&!i?-1:!t&&i?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},e.comp=e.compare,e.negate=function(){return!this.unsigned&&this.eq(b)?b:this.not().add(p)},e.neg=e.negate,e.add=function(e){n(e)||(e=o(e));var t,i=this.high>>>16,r=65535&this.high,a=this.low>>>16,l=e.high>>>16,c=65535&e.high,u=e.low>>>16;return e=0+((t=(65535&this.low)+(65535&e.low)+0)>>>16),a=0+((e+=a+u)>>>16),s((65535&e)<<16|65535&t,(r=(r=0+((a+=r+c)>>>16))+(i+l)&65535)<<16|65535&a,this.unsigned)},e.subtract=function(e){return n(e)||(e=o(e)),this.add(e.neg())},e.sub=e.subtract,e.multiply=function(e){if(this.isZero())return g;if(n(e)||(e=o(e)),e.isZero())return g;if(this.eq(b))return e.isOdd()?b:g;if(e.eq(b))return this.isOdd()?b:g;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(m)&&e.lt(m))return r(this.toNumber()*e.toNumber(),this.unsigned);var t,i,a,l,c=this.high>>>16,u=65535&this.high,h=this.low>>>16,d=65535&this.low,$=e.high>>>16,p=65535&e.high,y=e.low>>>16;return a=0+((l=0+d*(e=65535&e.low))>>>16),i=0+((a+=h*e)>>>16),i+=(a=(65535&a)+d*y)>>>16,t=0+((i+=u*e)>>>16),t+=(i=(65535&i)+h*y)>>>16,i&=65535,s((a&=65535)<<16|65535&l,(t=(t+=(i+=d*p)>>>16)+(c*e+u*y+h*p+d*$)&65535)<<16|(i&=65535),this.unsigned)},e.mul=e.multiply,e.divide=function(e){if(n(e)||(e=o(e)),e.isZero())throw Error("division by zero");if(this.isZero())return this.unsigned?$:g;var t,i,s;if(this.unsigned)e.unsigned||(e=e.toUnsigned());else{if(this.eq(b))return e.eq(p)||e.eq(f)?b:e.eq(b)?p:(t=this.shr(1).div(e).shl(1)).eq(g)?e.isNegative()?p:f:(i=this.sub(e.mul(t)),t.add(i.div(e)));if(e.eq(b))return this.unsigned?$:g;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg()}if(this.unsigned){if(e.gt(this))return $;if(e.gt(this.shru(1)))return y;s=$}else s=g;for(i=this;i.gte(e);){t=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));for(var a=48>=(a=Math.ceil(Math.log(t)/Math.LN2))?1:u(2,a-48),l=r(t),c=l.mul(e);c.isNegative()||c.gt(i);)c=(l=r(t-=a,this.unsigned)).mul(e);l.isZero()&&(l=p),s=s.add(l),i=i.sub(c)}return s},e.div=e.divide,e.modulo=function(e){return n(e)||(e=o(e)),this.sub(this.div(e).mul(e))},e.mod=e.modulo,e.not=function(){return s(~this.low,~this.high,this.unsigned)},e.and=function(e){return n(e)||(e=o(e)),s(this.low&e.low,this.high&e.high,this.unsigned)},e.or=function(e){return n(e)||(e=o(e)),s(this.low|e.low,this.high|e.high,this.unsigned)},e.xor=function(e){return n(e)||(e=o(e)),s(this.low^e.low,this.high^e.high,this.unsigned)},e.shiftLeft=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:32>e?s(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):s(0,this.low<<e-32,this.unsigned)},e.shl=e.shiftLeft,e.shiftRight=function(e){return n(e)&&(e=e.toInt()),0==(e&=63)?this:32>e?s(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):s(this.high>>e-32,0<=this.high?0:-1,this.unsigned)},e.shr=e.shiftRight,e.shiftRightUnsigned=function(e){if(n(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return 32>e?s(this.low>>>e|t<<32-e,t>>>e,this.unsigned):s(32===e?t:t>>>e-32,0,this.unsigned)},e.shru=e.shiftRightUnsigned,e.toSigned=function(){return this.unsigned?s(this.low,this.high,!1):this},e.toUnsigned=function(){return this.unsigned?this:s(this.low,this.high,!0)}}(Bridge.global),System.Int64=function(e){if(this.constructor!==System.Int64)return new System.Int64(e);Bridge.hasValue(e)||(e=0),this.T=System.Int64,this.unsigned=!1,this.value=System.Int64.getValue(e)},System.Int64.$number=!0,System.Int64.TWO_PWR_16_DBL=65536,System.Int64.TWO_PWR_32_DBL=System.Int64.TWO_PWR_16_DBL*System.Int64.TWO_PWR_16_DBL,System.Int64.TWO_PWR_64_DBL=System.Int64.TWO_PWR_32_DBL*System.Int64.TWO_PWR_32_DBL,System.Int64.TWO_PWR_63_DBL=System.Int64.TWO_PWR_64_DBL/2,System.Int64.$$name="System.Int64",System.Int64.prototype.$$name="System.Int64",System.Int64.$kind=Bridge.Typemarkers.Struct,System.Int64.prototype.$kind=Bridge.Typemarkers.Struct,System.Int64.$$inherits=[],Bridge.Class.addExtend(System.Int64,[System.IComparable,System.IFormattable,System.IComparable$1(System.Int64),System.IEquatable$1(System.Int64)]),System.Int64.$is=function(e){return e instanceof System.Int64},System.Int64.is64Bit=function(e){return e instanceof System.Int64||e instanceof System.UInt64},System.Int64.is64BitType=function(e){return e===System.Int64||e===System.UInt64},System.Int64.getDefaultValue=function(){return System.Int64.Zero},System.Int64.getValue=function(e){return Bridge.hasValue(e)?e instanceof Bridge.$Long?e:e instanceof System.Int64?e.value:e instanceof System.UInt64?e.value.toSigned():Bridge.isArray(e)?new Bridge.$Long(e[0],e[1]):Bridge.isString(e)?Bridge.$Long.fromString(e):Bridge.isNumber(e)?e+1>=System.Int64.TWO_PWR_63_DBL?new System.UInt64(e).value.toSigned():Bridge.$Long.fromNumber(e):e instanceof System.Decimal?Bridge.$Long.fromString(e.toString()):Bridge.$Long.fromValue(e):null},System.Int64.create=function(e){return Bridge.hasValue(e)?e instanceof System.Int64?e:new System.Int64(e):null},System.Int64.lift=function(e){return Bridge.hasValue(e)?System.Int64.create(e):null},System.Int64.toNumber=function(e){return e?e.toNumber():null},System.Int64.prototype.toNumberDivided=function(e){var t=this.div(e),n=this.mod(e).toNumber()/e;return t.toNumber()+n},System.Int64.prototype.toJSON=function(){return this.gt(Bridge.Int.MAX_SAFE_INTEGER)||this.lt(Bridge.Int.MIN_SAFE_INTEGER)?this.toString():this.toNumber()},System.Int64.prototype.toString=function(e,t){return e||t?Bridge.isNumber(e)&&!t?this.value.toString(e):Bridge.Int.format(this,e,t,System.Int64,System.Int64.clipu64):this.value.toString()},System.Int64.prototype.format=function(e,t){return Bridge.Int.format(this,e,t,System.Int64,System.Int64.clipu64)},System.Int64.prototype.isNegative=function(){return this.value.isNegative()},System.Int64.prototype.abs=function(){return this.T===System.Int64&&this.eq(System.Int64.MinValue),new this.T(this.value.isNegative()?this.value.neg():this.value)},System.Int64.prototype.compareTo=function(e){return this.value.compare(this.T.getValue(e))},System.Int64.prototype.add=function(e,t){var n=this.T.getValue(e),i=new this.T(this.value.add(n));if(t){var r=this.value.isNegative(),s=n.isNegative(),a=i.value.isNegative();r&&s&&!a||!r&&!s&&a||this.T===System.UInt64&&i.lt(System.UInt64.max(this,n))}return i},System.Int64.prototype.sub=function(e,t){var n=this.T.getValue(e),i=new this.T(this.value.sub(n));if(t){var r=this.value.isNegative(),s=n.isNegative(),a=i.value.isNegative();r&&!s&&!a||!r&&s&&a||this.T===System.UInt64&&this.value.lt(n)}return i},System.Int64.prototype.isZero=function(){return this.value.isZero()},System.Int64.prototype.mul=function(e,t){var n=this.T.getValue(e),i=new this.T(this.value.mul(n));if(t)if(this.sign(),n.isZero()||n.isNegative(),i.sign(),this.T===System.Int64){if(this.eq(System.Int64.MinValue)||this.eq(System.Int64.MaxValue))return n.neq(1)&&n.neq(0),i;if(n.eq(Bridge.$Long.MIN_VALUE)||n.eq(Bridge.$Long.MAX_VALUE))return this.neq(1)&&this.neq(0),i;(r=i.abs()).lt(this.abs())||r.lt(System.Int64(n).abs())}else{if(this.eq(System.UInt64.MaxValue))return n.neq(1)&&n.neq(0),i;if(n.eq(Bridge.$Long.MAX_UNSIGNED_VALUE))return this.neq(1)&&this.neq(0),i;var r;(r=i.abs()).lt(this.abs())||r.lt(System.Int64(n).abs())}return i},System.Int64.prototype.div=function(e){return new this.T(this.value.div(this.T.getValue(e)))},System.Int64.prototype.mod=function(e){return new this.T(this.value.mod(this.T.getValue(e)))},System.Int64.prototype.neg=function(e){return e&&this.T===System.Int64&&this.eq(System.Int64.MinValue),new this.T(this.value.neg())},System.Int64.prototype.inc=function(e){return this.add(1,e)},System.Int64.prototype.dec=function(e){return this.sub(1,e)},System.Int64.prototype.sign=function(){return this.value.isZero()?0:this.value.isNegative()?-1:1},System.Int64.prototype.clone=function(){return new this.T(this)},System.Int64.prototype.ne=function(e){return this.value.neq(this.T.getValue(e))},System.Int64.prototype.neq=function(e){return this.value.neq(this.T.getValue(e))},System.Int64.prototype.eq=function(e){return this.value.eq(this.T.getValue(e))},System.Int64.prototype.lt=function(e){return this.value.lt(this.T.getValue(e))},System.Int64.prototype.lte=function(e){return this.value.lte(this.T.getValue(e))},System.Int64.prototype.gt=function(e){return this.value.gt(this.T.getValue(e))},System.Int64.prototype.gte=function(e){return this.value.gte(this.T.getValue(e))},System.Int64.prototype.equals=function(e){return this.value.eq(this.T.getValue(e))},System.Int64.prototype.equalsT=function(e){return this.equals(e)},System.Int64.prototype.getHashCode=function(){var e=397*this.sign()+this.value.high|0;return 397*e+this.value.low|0},System.Int64.prototype.toNumber=function(){return this.value.toNumber()},System.Int64.parse=function(e){var t=new System.Int64(e);return System.String.trimStartZeros(e),t.toString(),t},System.Int64.tryParse=function(e,t){try{return null!=e&&/^[+-]?[0-9]+$/.test(e)?(t.v=new System.Int64(e),System.String.trimStartZeros(e)===t.v.toString()||(t.v=System.Int64(Bridge.$Long.ZERO),!1)):(t.v=System.Int64(Bridge.$Long.ZERO),!1)}catch(e){return t.v=System.Int64(Bridge.$Long.ZERO),!1}},System.Int64.divRem=function(e,t,n){e=System.Int64(e),t=System.Int64(t);var i=e.mod(t);return n.v=i,e.sub(i).div(t)},System.Int64.min=function(){var e,t,n,i=[];for(t=0,n=arguments.length;t<n;t++)i.push(System.Int64.getValue(arguments[t]));for(t=0,e=i[0];++t<i.length;)i[t].lt(e)&&(e=i[t]);return new System.Int64(e)},System.Int64.max=function(){var e,t,n,i=[];for(t=0,n=arguments.length;t<n;t++)i.push(System.Int64.getValue(arguments[t]));for(t=0,e=i[0];++t<i.length;)i[t].gt(e)&&(e=i[t]);return new System.Int64(e)},System.Int64.prototype.and=function(e){return new this.T(this.value.and(this.T.getValue(e)))},System.Int64.prototype.not=function(){return new this.T(this.value.not())},System.Int64.prototype.or=function(e){return new this.T(this.value.or(this.T.getValue(e)))},System.Int64.prototype.shl=function(e){return new this.T(this.value.shl(e))},System.Int64.prototype.shr=function(e){return new this.T(this.value.shr(e))},System.Int64.prototype.shru=function(e){return new this.T(this.value.shru(e))},System.Int64.prototype.xor=function(e){return new this.T(this.value.xor(this.T.getValue(e)))},System.Int64.check=function(e,t){return Bridge.Int.isInfinite(e)?t===System.Int64||t===System.UInt64?t.MinValue:t.min:e?t===System.Int64?e instanceof System.Int64?e:(n=e.value.toString(),(i=new System.Int64(n)).value.toString(),i):t===System.UInt64?e instanceof System.UInt64?e:(e.value.isNegative(),n=e.value.toString(),(i=new System.UInt64(n)).value.toString(),i):Bridge.Int.check(e.toNumber(),t):null;var n,i},System.Int64.clip8=function(e){return(e=null==e||System.Int64.is64Bit(e)?e:new System.Int64(e))?Bridge.Int.sxb(255&e.value.low):Bridge.Int.isInfinite(e)?System.SByte.min:null},System.Int64.clipu8=function(e){return(e=null==e||System.Int64.is64Bit(e)?e:new System.Int64(e))?255&e.value.low:Bridge.Int.isInfinite(e)?System.Byte.min:null},System.Int64.clip16=function(e){return(e=null==e||System.Int64.is64Bit(e)?e:new System.Int64(e))?Bridge.Int.sxs(65535&e.value.low):Bridge.Int.isInfinite(e)?System.Int16.min:null},System.Int64.clipu16=function(e){return(e=null==e||System.Int64.is64Bit(e)?e:new System.Int64(e))?65535&e.value.low:Bridge.Int.isInfinite(e)?System.UInt16.min:null},System.Int64.clip32=function(e){return(e=null==e||System.Int64.is64Bit(e)?e:new System.Int64(e))?0|e.value.low:Bridge.Int.isInfinite(e)?System.Int32.min:null},System.Int64.clipu32=function(e){return(e=null==e||System.Int64.is64Bit(e)?e:new System.Int64(e))?e.value.low>>>0:Bridge.Int.isInfinite(e)?System.UInt32.min:null},System.Int64.clip64=function(e){return(e=null==e||System.Int64.is64Bit(e)?e:new System.UInt64(e))?new System.Int64(e.value.toSigned()):Bridge.Int.isInfinite(e)?System.Int64.MinValue:null},System.Int64.clipu64=function(e){return(e=null==e||System.Int64.is64Bit(e)?e:new System.Int64(e))?new System.UInt64(e.value.toUnsigned()):Bridge.Int.isInfinite(e)?System.UInt64.MinValue:null},System.Int64.Zero=System.Int64(Bridge.$Long.ZERO),System.Int64.MinValue=System.Int64(Bridge.$Long.MIN_VALUE),System.Int64.MaxValue=System.Int64(Bridge.$Long.MAX_VALUE),System.Int64.precision=19,System.UInt64=function(e){if(this.constructor!==System.UInt64)return new System.UInt64(e);Bridge.hasValue(e)||(e=0),this.T=System.UInt64,this.unsigned=!0,this.value=System.UInt64.getValue(e,!0)},System.UInt64.$number=!0,System.UInt64.$$name="System.UInt64",System.UInt64.prototype.$$name="System.UInt64",System.UInt64.$kind=Bridge.Typemarkers.Struct,System.UInt64.prototype.$kind=Bridge.Typemarkers.Struct,System.UInt64.$$inherits=[],Bridge.Class.addExtend(System.UInt64,[System.IComparable,System.IFormattable,System.IComparable$1(System.UInt64),System.IEquatable$1(System.UInt64)]),System.UInt64.$is=function(e){return e instanceof System.UInt64},System.UInt64.getDefaultValue=function(){return System.UInt64.Zero},System.UInt64.getValue=function(e){return Bridge.hasValue(e)?e instanceof Bridge.$Long?e:e instanceof System.UInt64?e.value:e instanceof System.Int64?e.value.toUnsigned():Bridge.isArray(e)?new Bridge.$Long(e[0],e[1],!0):Bridge.isString(e)?Bridge.$Long.fromString(e,!0):Bridge.isNumber(e)?e<0?new System.Int64(e).value.toUnsigned():Bridge.$Long.fromNumber(e,!0):e instanceof System.Decimal?Bridge.$Long.fromString(e.toString(),!0):Bridge.$Long.fromValue(e):null},System.UInt64.create=function(e){return Bridge.hasValue(e)?e instanceof System.UInt64?e:new System.UInt64(e):null},System.UInt64.lift=function(e){return Bridge.hasValue(e)?System.UInt64.create(e):null},System.UInt64.prototype.toString=System.Int64.prototype.toString,System.UInt64.prototype.format=System.Int64.prototype.format,System.UInt64.prototype.isNegative=System.Int64.prototype.isNegative,System.UInt64.prototype.abs=System.Int64.prototype.abs,System.UInt64.prototype.compareTo=System.Int64.prototype.compareTo,System.UInt64.prototype.add=System.Int64.prototype.add,System.UInt64.prototype.sub=System.Int64.prototype.sub,System.UInt64.prototype.isZero=System.Int64.prototype.isZero,System.UInt64.prototype.mul=System.Int64.prototype.mul,System.UInt64.prototype.div=System.Int64.prototype.div,System.UInt64.prototype.toNumberDivided=System.Int64.prototype.toNumberDivided,System.UInt64.prototype.mod=System.Int64.prototype.mod,System.UInt64.prototype.neg=System.Int64.prototype.neg,System.UInt64.prototype.inc=System.Int64.prototype.inc,System.UInt64.prototype.dec=System.Int64.prototype.dec,System.UInt64.prototype.sign=System.Int64.prototype.sign,System.UInt64.prototype.clone=System.Int64.prototype.clone,System.UInt64.prototype.ne=System.Int64.prototype.ne,System.UInt64.prototype.neq=System.Int64.prototype.neq,System.UInt64.prototype.eq=System.Int64.prototype.eq,System.UInt64.prototype.lt=System.Int64.prototype.lt,System.UInt64.prototype.lte=System.Int64.prototype.lte,System.UInt64.prototype.gt=System.Int64.prototype.gt,System.UInt64.prototype.gte=System.Int64.prototype.gte,System.UInt64.prototype.equals=System.Int64.prototype.equals,System.UInt64.prototype.equalsT=System.Int64.prototype.equalsT,System.UInt64.prototype.getHashCode=System.Int64.prototype.getHashCode,System.UInt64.prototype.toNumber=System.Int64.prototype.toNumber,System.UInt64.parse=function(e){var t=new System.UInt64(e);return t.value.isNegative(),System.String.trimStartZeros(e),t.toString(),t},System.UInt64.tryParse=function(e,t){try{return null!=e&&/^[+-]?[0-9]+$/.test(e)?(t.v=new System.UInt64(e),t.v.isNegative()?(t.v=System.UInt64(Bridge.$Long.UZERO),!1):System.String.trimStartZeros(e)===t.v.toString()||(t.v=System.UInt64(Bridge.$Long.UZERO),!1)):(t.v=System.UInt64(Bridge.$Long.UZERO),!1)}catch(e){return t.v=System.UInt64(Bridge.$Long.UZERO),!1}},System.UInt64.min=function(){var e,t,n,i=[];for(t=0,n=arguments.length;t<n;t++)i.push(System.UInt64.getValue(arguments[t]));for(t=0,e=i[0];++t<i.length;)i[t].lt(e)&&(e=i[t]);return new System.UInt64(e)},System.UInt64.max=function(){var e,t,n,i=[];for(t=0,n=arguments.length;t<n;t++)i.push(System.UInt64.getValue(arguments[t]));for(t=0,e=i[0];++t<i.length;)i[t].gt(e)&&(e=i[t]);return new System.UInt64(e)},System.UInt64.divRem=function(e,t,n){e=System.UInt64(e),t=System.UInt64(t);var i=e.mod(t);return n.v=i,e.sub(i).div(t)},System.UInt64.prototype.toJSON=function(){return this.gt(Bridge.Int.MAX_SAFE_INTEGER)?this.toString():this.toNumber()},System.UInt64.prototype.and=System.Int64.prototype.and,System.UInt64.prototype.not=System.Int64.prototype.not,System.UInt64.prototype.or=System.Int64.prototype.or,System.UInt64.prototype.shl=System.Int64.prototype.shl,System.UInt64.prototype.shr=System.Int64.prototype.shr,System.UInt64.prototype.shru=System.Int64.prototype.shru,System.UInt64.prototype.xor=System.Int64.prototype.xor,System.UInt64.Zero=System.UInt64(Bridge.$Long.UZERO),System.UInt64.MinValue=System.UInt64.Zero,System.UInt64.MaxValue=System.UInt64(Bridge.$Long.MAX_UNSIGNED_VALUE),System.UInt64.precision=20,function(e){function t(e){var t,n,i,r=e.length-1,s="",a=e[0];if(r>0){for(s+=a,t=1;r>t;t++)i=e[t]+"",(n=Ae-i.length)&&(s+=h(n)),s+=i;a=e[t],(n=Ae-(i=a+"").length)&&(s+=h(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return s+a}function n(e,t,n){if(e!==~~e||t>e||e>n)throw Error(fe+e)}function i(e,t,n,i){var r,s,a,o;for(s=e[0];s>=10;s/=10)--t;return--t<0?(t+=Ae,r=0):(r=Math.ceil((t+1)/Ae),t%=Ae),s=Ce(10,Ae-t),o=e[r]%s|0,null==i?3>t?(0==t?o=o/100|0:1==t&&(o=o/10|0),a=4>n&&99999==o||n>3&&49999==o||5e4==o||0==o):a=(4>n&&o+1==s||n>3&&o+1==s/2)&&(e[r+1]/s/100|0)==Ce(10,t-2)-1||(o==s/2||0==o)&&0==(e[r+1]/s/100|0):4>t?(0==t?o=o/1e3|0:1==t?o=o/100|0:2==t&&(o=o/10|0),a=(i||4>n)&&9999==o||!i&&n>3&&4999==o):a=((i||4>n)&&o+1==s||!i&&n>3&&o+1==s/2)&&(e[r+1]/s/1e3|0)==Ce(10,t-3)-1,a}function r(e,t,n){for(var i,r,s=[0],a=0,o=e.length;o>a;){for(r=s.length;r--;)s[r]*=t;for(s[0]+=de.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(void 0===s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}function s(e,t,n,i){var r,s,a,o,l,c,u,h,d,m=e.constructor;e:if(null!=t){if(!(h=e.d))return e;for(r=1,o=h[0];o>=10;o/=10)r++;if(0>(s=t-r))s+=Ae,a=t,l=(u=h[d=0])/Ce(10,r-a-1)%10|0;else if((d=Math.ceil((s+1)/Ae))>=(o=h.length)){if(!i)break e;for(;o++<=d;)h.push(0);u=l=0,r=1,a=(s%=Ae)-Ae+1}else{for(u=o=h[d],r=1;o>=10;o/=10)r++;l=0>(a=(s%=Ae)-Ae+r)?0:u/Ce(10,r-a-1)%10|0}if(i=i||0>t||void 0!==h[d+1]||(0>a?u:u%Ce(10,r-a-1)),c=4>n?(l||i)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||i||6==n&&(s>0?a>0?u/Ce(10,r-a):0:h[d-1])%10&1||n==(e.s<0?8:7)),1>t||!h[0])return h.length=0,c?(t-=e.e+1,h[0]=Ce(10,(Ae-t%Ae)%Ae),e.e=-t||0):h[0]=e.e=0,e;if(0==s?(h.length=d,o=1,d--):(h.length=d+1,o=Ce(10,Ae-s),h[d]=a>0?(u/Ce(10,r-a)%Ce(10,a)|0)*o:0),c)for(;;){if(0==d){for(s=1,a=h[0];a>=10;a/=10)s++;for(a=h[0]+=o,o=1;a>=10;a/=10)o++;s!=o&&(e.e++,h[0]==xe&&(h[0]=1));break}if(h[d]+=o,h[d]!=xe)break;h[d--]=0,o=1}for(s=h.length;0===h[--s];)h.pop()}return pe&&(e.e>m.maxE?(e.d=null,e.e=NaN):e.e<m.minE&&(e.e=0,e.d=[0])),e}function a(e,n,i){if(!e.isFinite())return y(e);var r,s=e.e,a=t(e.d),o=a.length;return n?(i&&(r=i-o)>0?a=a.charAt(0)+"."+a.slice(1)+h(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):0>s?(a="0."+h(-s-1)+a,i&&(r=i-o)>0&&(a+=h(r))):s>=o?(a+=h(s+1-o),i&&(r=i-s-1)>0&&(a=a+"."+h(r))):((r=s+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),i&&(r=i-o)>0&&(s+1===o&&(a+="."),a+=h(r))),a}function o(e,t){for(var n=1,i=e[0];i>=10;i/=10)n++;return n+t*Ae-1}function l(e,t,n){if(t>we)throw pe=!0,n&&(e.precision=n),Error(_e);return s(new e(me),t,1,!0)}function c(e,t,n){if(t>De)throw Error(_e);return s(new e(ge),t,n,!0)}function u(e){var t=e.length-1,n=t*Ae+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function h(e){for(var t="";e--;)t+="0";return t}function d(e,t,n,i){var r,s=new e(1),a=Math.ceil(i/Ae+4);for(pe=!1;;){if(n%2&&E((s=s.times(t)).d,a)&&(r=!0),0===(n=be(n/2))){n=s.d.length-1,r&&0===s.d[n]&&++s.d[n];break}E((t=t.times(t)).d,a)}return pe=!0,s}function m(e){return 1&e.d[e.d.length-1]}function g(e,t,n){for(var i,r=new e(t[0]),s=0;++s<t.length;){if(!(i=new e(t[s])).s){r=i;break}r[n](i)&&(r=i)}return r}function $(e,n){var r,a,o,l,c,u,h,d=0,m=0,g=0,$=e.constructor,p=$.rounding,y=$.precision;if(!e.d||!e.d[0]||e.e>17)return new $(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==n?(pe=!1,h=y):h=n,u=new $(.03125);e.e>-2;)e=e.times(u),g+=5;for(h+=a=Math.log(Ce(2,g))/Math.LN10*2+5|0,r=l=c=new $(1),$.precision=h;;){if(l=s(l.times(e),h,1),r=r.times(++m),t((u=c.plus(Pe(l,r,h,1))).d).slice(0,h)===t(c.d).slice(0,h)){for(o=g;o--;)c=s(c.times(c),h,1);if(null!=n)return $.precision=y,c;if(!(3>d&&i(c.d,h-a,p,d)))return s(c,$.precision=y,p,pe=!0);$.precision=h+=10,r=l=u=new $(1),m=0,d++}c=u}}function p(e,n){var r,a,o,c,u,h,d,m,g,$,y,f=1,_=e,S=_.d,b=_.constructor,C=b.rounding,E=b.precision;if(_.s<0||!S||!S[0]||!_.e&&1==S[0]&&1==S.length)return new b(S&&!S[0]?-1/0:1!=_.s?NaN:S?0:_);if(null==n?(pe=!1,g=E):g=n,b.precision=g+=10,a=(r=t(S)).charAt(0),!(Math.abs(c=_.e)<15e14))return m=l(b,g+2,E).times(c+""),_=p(new b(a+"."+r.slice(1)),g-10).plus(m),b.precision=E,null==n?s(_,E,C,pe=!0):_;for(;7>a&&1!=a||1==a&&r.charAt(1)>3;)a=(r=t((_=_.times(e)).d)).charAt(0),f++;for(c=_.e,a>1?(_=new b("0."+r),c++):_=new b(a+"."+r.slice(1)),$=_,d=u=_=Pe(_.minus(1),_.plus(1),g,1),y=s(_.times(_),g,1),o=3;;){if(u=s(u.times(y),g,1),t((m=d.plus(Pe(u,new b(o),g,1))).d).slice(0,g)===t(d.d).slice(0,g)){if(d=d.times(2),0!==c&&(d=d.plus(l(b,g+2,E).times(c+""))),d=Pe(d,new b(f),g,1),null!=n)return b.precision=E,d;if(!i(d.d,g-10,C,h))return s(d,b.precision=E,C,pe=!0);b.precision=g+=10,m=u=_=Pe($.minus(1),$.plus(1),g,1),y=s(_.times(_),g,1),o=h=1}d=m,o+=2}}function y(e){return e.s*e.s/0+""}function f(e,t){var n,i,r;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(0>n&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):0>n&&(n=t.length),i=0;48===t.charCodeAt(i);i++);for(r=t.length;48===t.charCodeAt(r-1);--r);if(t=t.slice(i,r)){if(r-=i,e.e=n=n-i-1,e.d=[],i=(n+1)%Ae,0>n&&(i+=Ae),r>i){for(i&&e.d.push(+t.slice(0,i)),r-=Ae;r>i;)e.d.push(+t.slice(i,i+=Ae));t=t.slice(i),i=Ae-t.length}else i-=r;for(;i--;)t+="0";e.d.push(+t),pe&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function _(e,t){var n,i,s,a,l,c,u,h,m;if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Te.test(t))n=16,t=t.toLowerCase();else if(Ee.test(t))n=2;else{if(!ve.test(t))throw Error(fe+t);n=8}for((a=t.search(/p/i))>0?(u=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),l=(a=t.indexOf("."))>=0,i=e.constructor,l&&(a=(c=(t=t.replace(".","")).length)-a,s=d(i,new i(n),a,2*a)),a=m=(h=r(t,n,xe)).length-1;0===h[a];--a)h.pop();return 0>a?new i(0*e.s):(e.e=o(h,m),e.d=h,pe=!1,l&&(e=Pe(e,s,4*c)),u&&(e=e.times(Math.abs(u)<54?Math.pow(2,u):$e.pow(2,u))),pe=!0,e)}function S(e,t,n,i,r){var s,a,o,l,c=e.precision,u=Math.ceil(c/Ae);for(pe=!1,l=n.times(n),o=new e(i);;){if(a=Pe(o.times(l),new e(t++*t++),c,1),o=r?i.plus(a):i.minus(a),i=Pe(a.times(l),new e(t++*t++),c,1),void 0!==(a=o.plus(i)).d[u]){for(s=u;a.d[s]===o.d[s]&&s--;);if(-1==s)break}s=o,o=i,i=a,a=s}return pe=!0,a.d.length=u+1,a}function b(e,t){var n,i=t.s<0,r=c(e,e.precision,1),s=r.times(.5);if((t=t.abs()).lte(s))return ce=i?4:1,t;if((n=t.divToInt(r)).isZero())ce=i?3:2;else{if((t=t.minus(n.times(r))).lte(s))return ce=m(n)?i?2:3:i?4:1,t;ce=m(n)?i?1:4:i?3:2}return t.minus(r).abs()}function C(e,t,i,s){var o,l,c,u,h,d,m,g,$,p=e.constructor,f=void 0!==i;if(f?(n(i,1,he),void 0===s?s=p.rounding:n(s,0,8)):(i=p.precision,s=p.rounding),e.isFinite()){for(f?(o=2,16==t?i=4*i-3:8==t&&(i=3*i-2)):o=t,(c=(m=a(e)).indexOf("."))>=0&&(m=m.replace(".",""),($=new p(1)).e=m.length-c,$.d=r(a($),10,o),$.e=$.d.length),l=h=(g=r(m,10,o)).length;0==g[--h];)g.pop();if(g[0]){if(0>c?l--:((e=new p(e)).d=g,e.e=l,g=(e=Pe(e,$,i,s,0,o)).d,l=e.e,d=oe),c=g[i],u=o/2,d=d||void 0!==g[i+1],d=4>s?(void 0!==c||d)&&(0===s||s===(e.s<0?3:2)):c>u||c===u&&(4===s||d||6===s&&1&g[i-1]||s===(e.s<0?8:7)),g.length=i,d)for(;++g[--i]>o-1;)g[i]=0,i||(++l,g.unshift(1));for(h=g.length;!g[h-1];--h);for(c=0,m="";h>c;c++)m+=de.charAt(g[c]);if(f){if(h>1)if(16==t||8==t){for(c=16==t?4:3,--h;h%c;h++)m+="0";for(h=(g=r(m,o,t)).length;!g[h-1];--h);for(c=1,m="1.";h>c;c++)m+=de.charAt(g[c])}else m=m.charAt(0)+"."+m.slice(1);m=m+(0>l?"p":"p+")+l}else if(0>l){for(;++l;)m="0"+m;m="0."+m}else if(++l>h)for(l-=h;l--;)m+="0";else h>l&&(m=m.slice(0,l)+"."+m.slice(l))}else m=f?"0p+0":"0";m=(16==t?"0x":2==t?"0b":8==t?"0o":"")+m}else m=y(e);return e.s<0?"-"+m:m}function E(e,t){return e.length>t?(e.length=t,!0):void 0}function T(e){return new this(e).abs()}function v(e){return new this(e).acos()}function I(e){return new this(e).acosh()}function x(e,t){return new this(e).plus(t)}function A(e){return new this(e).asin()}function w(e){return new this(e).asinh()}function D(e){return new this(e).atan()}function M(e){return new this(e).atanh()}function P(e,t){e=new this(e),t=new this(t);var n,i=this.precision,r=this.rounding,s=i+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?c(this,i,r):new this(0)).s=e.s:!e.d||t.isZero()?(n=c(this,s,1).times(.5)).s=e.s:t.s<0?(this.precision=s,this.rounding=1,n=this.atan(Pe(e,t,s,1)),t=c(this,s,1),this.precision=i,this.rounding=r,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(Pe(e,t,s,1)):(n=c(this,s,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function U(e){return new this(e).cbrt()}function B(e){return s(e=new this(e),e.e+1,2)}function O(e){if(!e||"object"!=typeof e)throw Error(ye+"Object expected");var t,n,i,r=["precision",1,he,"rounding",0,8,"toExpNeg",-ue,0,"toExpPos",0,ue,"maxE",0,ue,"minE",-ue,0,"modulo",0,9];for(t=0;t<r.length;t+=3)if(void 0!==(i=e[n=r[t]])){if(!(be(i)===i&&i>=r[t+1]&&i<=r[t+2]))throw Error(fe+n+": "+i);this[n]=i}if(void 0!==(i=e[n="crypto"])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(fe+n+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Se);this[n]=!0}else this[n]=!1}return this}function L(e){return new this(e).cos()}function R(e){return new this(e).cosh()}function F(e,t){return new this(e).div(t)}function G(e){return new this(e).exp()}function k(e){return s(e=new this(e),e.e+1,3)}function V(){var e,t,n=new this(0);for(pe=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return pe=!0,new this(1/0);n=t}return pe=!0,n.sqrt()}function N(e){return new this(e).ln()}function z(e,t){return new this(e).log(t)}function H(e){return new this(e).log(2)}function j(e){return new this(e).log(10)}function Z(){return g(this,arguments,"lt")}function q(){return g(this,arguments,"gt")}function K(e,t){return new this(e).mod(t)}function W(e,t){return new this(e).mul(t)}function J(e,t){return new this(e).pow(t)}function Q(e){var t,i,r,s,a=0,o=new this(1),l=[];if(void 0===e?e=this.precision:n(e,1,he),r=Math.ceil(e/Ae),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));r>a;)(s=t[a])>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:l[a++]=s%1e7;else{if(!crypto.randomBytes)throw Error(Se);for(t=crypto.randomBytes(r*=4);r>a;)(s=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((127&t[a+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,a):(l.push(s%1e7),a+=4);a=r/4}else for(;r>a;)l[a++]=1e7*Math.random()|0;for(r=l[--a],e%=Ae,r&&e&&(s=Ce(10,Ae-e),l[a]=(r/s|0)*s);0===l[a];a--)l.pop();if(0>a)i=0,l=[0];else{for(i=-1;0===l[0];i-=Ae)l.shift();for(r=1,s=l[0];s>=10;s/=10)r++;Ae>r&&(i-=Ae-r)}return o.e=i,o.d=l,o}function X(e){return s(e=new this(e),e.e+1,this.rounding)}function Y(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function ee(e){return new this(e).sin()}function te(e){return new this(e).sinh()}function ne(e){return new this(e).sqrt()}function ie(e,t){return new this(e).sub(t)}function re(e){return new this(e).tan()}function se(e){return new this(e).tanh()}function ae(e){return s(e=new this(e),e.e+1,1)}var oe,le,ce,ue=9e15,he=1e9,de="0123456789abcdef",me="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",ge="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",$e={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-ue,maxE:ue,crypto:!1},pe=!0,ye="[DecimalError] ",fe=ye+"Invalid argument: ",_e=ye+"Precision limit exceeded",Se=ye+"crypto unavailable",be=Math.floor,Ce=Math.pow,Ee=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Te=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,ve=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Ie=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,xe=1e7,Ae=7,we=me.length-1,De=ge.length-1,Me={};Me.absoluteValue=Me.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),s(e)},Me.ceil=function(){return s(new this.constructor(this),this.e+1,2)},Me.comparedTo=Me.cmp=function(e){var t,n,i,r,s=this,a=s.d,o=(e=new s.constructor(e)).d,l=s.s,c=e.s;if(!a||!o)return l&&c?l!==c?l:a===o?0:!a^0>l?1:-1:NaN;if(!a[0]||!o[0])return a[0]?l:o[0]?-c:0;if(l!==c)return l;if(s.e!==e.e)return s.e>e.e^0>l?1:-1;for(i=a.length,t=0,n=(r=o.length)>i?i:r;n>t;++t)if(a[t]!==o[t])return a[t]>o[t]^0>l?1:-1;return i===r?0:i>r^0>l?1:-1},Me.cosine=Me.cos=function(){var e,t,n=this,i=n.constructor;return n.d?n.d[0]?(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+Ae,i.rounding=1,n=function(e,t){var n,i,r=t.d.length;32>r?i=Math.pow(4,-(n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10"),e.precision+=n,t=S(e,1,t.times(i),new e(1));for(var s=n;s--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(i,b(i,n)),i.precision=e,i.rounding=t,s(2==ce||3==ce?n.neg():n,e,t,!0)):new i(1):new i(NaN)},Me.cubeRoot=Me.cbrt=function(){var e,n,i,r,a,o,l,c,u,h,d=this,m=d.constructor;if(!d.isFinite()||d.isZero())return new m(d);for(pe=!1,(o=d.s*Math.pow(d.s*d,1/3))&&Math.abs(o)!=1/0?r=new m(o.toString()):(i=t(d.d),(o=((e=d.e)-i.length+1)%3)&&(i+=1==o||-2==o?"0":"00"),o=Math.pow(i,1/3),e=be((e+1)/3)-(e%3==(0>e?-1:2)),(r=new m(i=o==1/0?"5e"+e:(i=o.toExponential()).slice(0,i.indexOf("e")+1)+e)).s=d.s),l=(e=m.precision)+3;;)if(h=(u=(c=r).times(c).times(c)).plus(d),r=Pe(h.plus(d).times(c),h.plus(u),l+2,1),t(c.d).slice(0,l)===(i=t(r.d)).slice(0,l)){if("9999"!=(i=i.slice(l-3,l+1))&&(a||"4999"!=i)){(!+i||!+i.slice(1)&&"5"==i.charAt(0))&&(s(r,e+1,1),n=!r.times(r).times(r).eq(d));break}if(!a&&(s(c,e+1,0),c.times(c).times(c).eq(d))){r=c;break}l+=4,a=1}return pe=!0,s(r,e,m.rounding,n)},Me.decimalPlaces=Me.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-be(this.e/Ae))*Ae,e=t[e])for(;e%10==0;e/=10)n--;0>n&&(n=0)}return n},Me.dividedBy=Me.div=function(e){return Pe(this,new this.constructor(e))},Me.dividedToIntegerBy=Me.divToInt=function(e){var t=this.constructor;return s(Pe(this,new t(e),0,1,1),t.precision,t.rounding)},Me.equals=Me.eq=function(e){return 0===this.cmp(e)},Me.floor=function(){return s(new this.constructor(this),this.e+1,3)},Me.greaterThan=Me.gt=function(e){return this.cmp(e)>0},Me.greaterThanOrEqualTo=Me.gte=function(e){var t=this.cmp(e);return 1==t||0===t},Me.hyperbolicCosine=Me.cosh=function(){var e,t,n,i,r,a=this,o=a.constructor,l=new o(1);if(!a.isFinite())return new o(a.s?1/0:NaN);if(a.isZero())return l;n=o.precision,i=o.rounding,o.precision=n+Math.max(a.e,a.sd())+4,o.rounding=1,32>(r=a.d.length)?t=Math.pow(4,-(e=Math.ceil(r/3))).toString():(e=16,t="2.3283064365386962890625e-10"),a=S(o,1,a.times(t),new o(1),!0);for(var c,u=e,h=new o(8);u--;)c=a.times(a),a=l.minus(c.times(h.minus(c.times(h))));return s(a,o.precision=n,o.rounding=i,!0)},Me.hyperbolicSine=Me.sinh=function(){var e,t,n,i,r=this,a=r.constructor;if(!r.isFinite()||r.isZero())return new a(r);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(r.e,r.sd())+4,a.rounding=1,3>(i=r.d.length))r=S(a,2,r,r,!0);else{e=(e=1.4*Math.sqrt(i))>16?16:0|e,r=S(a,2,r=r.times(Math.pow(5,-e)),r,!0);for(var o,l=new a(5),c=new a(16),u=new a(20);e--;)o=r.times(r),r=r.times(l.plus(o.times(c.times(o).plus(u))))}return a.precision=t,a.rounding=n,s(r,t,n,!0)},Me.hyperbolicTangent=Me.tanh=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+7,i.rounding=1,Pe(n.sinh(),n.cosh(),i.precision=e,i.rounding=t)):new i(n.s)},Me.inverseCosine=Me.acos=function(){var e,t=this,n=t.constructor,i=t.abs().cmp(1),r=n.precision,s=n.rounding;return-1!==i?0===i?t.isNeg()?c(n,r,s):new n(0):new n(NaN):t.isZero()?c(n,r+4,s).times(.5):(n.precision=r+6,n.rounding=1,t=t.asin(),e=c(n,r+4,s).times(.5),n.precision=r,n.rounding=s,e.minus(t))},Me.inverseHyperbolicCosine=Me.acosh=function(){var e,t,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(e=i.precision,t=i.rounding,i.precision=e+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,pe=!1,n=n.times(n).minus(1).sqrt().plus(n),pe=!0,i.precision=e,i.rounding=t,n.ln()):new i(n)},Me.inverseHyperbolicSine=Me.asinh=function(){var e,t,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,pe=!1,n=n.times(n).plus(1).sqrt().plus(n),pe=!0,i.precision=e,i.rounding=t,n.ln())},Me.inverseHyperbolicTangent=Me.atanh=function(){var e,t,n,i,r=this,a=r.constructor;return r.isFinite()?r.e>=0?new a(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=a.precision,t=a.rounding,i=r.sd(),Math.max(i,e)<2*-r.e-1?s(new a(r),e,t,!0):(a.precision=n=i-r.e,r=Pe(r.plus(1),new a(1).minus(r),n+e,1),a.precision=e+4,a.rounding=1,r=r.ln(),a.precision=e,a.rounding=t,r.times(.5))):new a(NaN)},Me.inverseSine=Me.asin=function(){var e,t,n,i,r=this,s=r.constructor;return r.isZero()?new s(r):(t=r.abs().cmp(1),n=s.precision,i=s.rounding,-1!==t?0===t?((e=c(s,n+4,i).times(.5)).s=r.s,e):new s(NaN):(s.precision=n+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=n,s.rounding=i,r.times(2)))},Me.inverseTangent=Me.atan=function(){var e,t,n,i,r,a,o,l,u,h=this,d=h.constructor,m=d.precision,g=d.rounding;if(h.isFinite()){if(h.isZero())return new d(h);if(h.abs().eq(1)&&De>=m+4)return(o=c(d,m+4,g).times(.25)).s=h.s,o}else{if(!h.s)return new d(NaN);if(De>=m+4)return(o=c(d,m+4,g).times(.5)).s=h.s,o}for(d.precision=l=m+10,d.rounding=1,e=n=Math.min(28,l/Ae+2|0);e;--e)h=h.div(h.times(h).plus(1).sqrt().plus(1));for(pe=!1,t=Math.ceil(l/Ae),i=1,u=h.times(h),o=new d(h),r=h;-1!==e;)if(r=r.times(u),a=o.minus(r.div(i+=2)),r=r.times(u),void 0!==(o=a.plus(r.div(i+=2))).d[t])for(e=t;o.d[e]===a.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),pe=!0,s(o,d.precision=m,d.rounding=g,!0)},Me.isFinite=function(){return!!this.d},Me.isInteger=Me.isInt=function(){return!!this.d&&be(this.e/Ae)>this.d.length-2},Me.isNaN=function(){return!this.s},Me.isNegative=Me.isNeg=function(){return this.s<0},Me.isPositive=Me.isPos=function(){return this.s>0},Me.isZero=function(){return!!this.d&&0===this.d[0]},Me.lessThan=Me.lt=function(e){return this.cmp(e)<0},Me.lessThanOrEqualTo=Me.lte=function(e){return this.cmp(e)<1},Me.logarithm=Me.log=function(e){var n,r,a,o,c,u,h,d,m=this,g=m.constructor,$=g.precision,y=g.rounding;if(null==e)e=new g(10),n=!0;else{if(r=(e=new g(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new g(NaN);n=e.eq(10)}if(r=m.d,m.s<0||!r||!r[0]||m.eq(1))return new g(r&&!r[0]?-1/0:1!=m.s?NaN:r?0:1/0);if(n)if(r.length>1)c=!0;else{for(o=r[0];o%10==0;)o/=10;c=1!==o}if(pe=!1,u=p(m,h=$+5),a=n?l(g,h+10):p(e,h),i((d=Pe(u,a,h,1)).d,o=$,y))do{if(u=p(m,h+=10),a=n?l(g,h+10):p(e,h),d=Pe(u,a,h,1),!c){+t(d.d).slice(o+1,o+15)+1==1e14&&(d=s(d,$+1,0));break}}while(i(d.d,o+=10,y));return pe=!0,s(d,$,y)},Me.minus=Me.sub=function(e){var t,n,i,r,a,l,c,u,h,d,m,g,$=this,p=$.constructor;if(e=new p(e),!$.d||!e.d)return $.s&&e.s?$.d?e.s=-e.s:e=new p(e.d||$.s!==e.s?$:NaN):e=new p(NaN),e;if($.s!=e.s)return e.s=-e.s,$.plus(e);if(h=$.d,g=e.d,c=p.precision,u=p.rounding,!h[0]||!g[0]){if(g[0])e.s=-e.s;else{if(!h[0])return new p(3===u?-0:0);e=new p($)}return pe?s(e,c,u):e}if(n=be(e.e/Ae),d=be($.e/Ae),h=h.slice(),a=d-n){for((m=0>a)?(t=h,a=-a,l=g.length):(t=g,n=d,l=h.length),a>(i=Math.max(Math.ceil(c/Ae),l)+2)&&(a=i,t.length=1),t.reverse(),i=a;i--;)t.push(0);t.reverse()}else{for(i=h.length,(m=(l=g.length)>i)&&(l=i),i=0;l>i;i++)if(h[i]!=g[i]){m=h[i]<g[i];break}a=0}for(m&&(t=h,h=g,g=t,e.s=-e.s),l=h.length,i=g.length-l;i>0;--i)h[l++]=0;for(i=g.length;i>a;){if(h[--i]<g[i]){for(r=i;r&&0===h[--r];)h[r]=xe-1;--h[r],h[i]+=xe}h[i]-=g[i]}for(;0===h[--l];)h.pop();for(;0===h[0];h.shift())--n;return h[0]?(e.d=h,e.e=o(h,n),pe?s(e,c,u):e):new p(3===u?-0:0)},Me.modulo=Me.mod=function(e){var t,n=this,i=n.constructor;return e=new i(e),!n.d||!e.s||e.d&&!e.d[0]?new i(NaN):!e.d||n.d&&!n.d[0]?s(new i(n),i.precision,i.rounding):(pe=!1,9==i.modulo?(t=Pe(n,e.abs(),0,3,1)).s*=e.s:t=Pe(n,e,0,i.modulo,1),t=t.times(e),pe=!0,n.minus(t))},Me.naturalExponential=Me.exp=function(){return $(this)},Me.naturalLogarithm=Me.ln=function(){return p(this)},Me.negated=Me.neg=function(){var e=new this.constructor(this);return e.s=-e.s,s(e)},Me.plus=Me.add=function(e){var t,n,i,r,a,l,c,u,h,d,m=this,g=m.constructor;if(e=new g(e),!m.d||!e.d)return m.s&&e.s?m.d||(e=new g(e.d||m.s===e.s?m:NaN)):e=new g(NaN),e;if(m.s!=e.s)return e.s=-e.s,m.minus(e);if(h=m.d,d=e.d,c=g.precision,u=g.rounding,!h[0]||!d[0])return d[0]||(e=new g(m)),pe?s(e,c,u):e;if(a=be(m.e/Ae),i=be(e.e/Ae),h=h.slice(),r=a-i){for(0>r?(n=h,r=-r,l=d.length):(n=d,i=a,l=h.length),r>(l=(a=Math.ceil(c/Ae))>l?a+1:l+1)&&(r=l,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for(0>(l=h.length)-(r=d.length)&&(r=l,n=d,d=h,h=n),t=0;r;)t=(h[--r]=h[r]+d[r]+t)/xe|0,h[r]%=xe;for(t&&(h.unshift(t),++i),l=h.length;0==h[--l];)h.pop();return e.d=h,e.e=o(h,i),pe?s(e,c,u):e},Me.precision=Me.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(fe+e);return n.d?(t=u(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},Me.round=function(){var e=this,t=e.constructor;return s(new t(e),e.e+1,t.rounding)},Me.sine=Me.sin=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+Math.max(n.e,n.sd())+Ae,i.rounding=1,n=function(e,t){var n,i=t.d.length;if(3>i)return S(e,2,t,t);n=(n=1.4*Math.sqrt(i))>16?16:0|n,t=S(e,2,t=t.times(Math.pow(5,-n)),t);for(var r,s=new e(5),a=new e(16),o=new e(20);n--;)r=t.times(t),t=t.times(s.plus(r.times(a.times(r).minus(o))));return t}(i,b(i,n)),i.precision=e,i.rounding=t,s(ce>2?n.neg():n,e,t,!0)):new i(NaN)},Me.squareRoot=Me.sqrt=function(){var e,n,i,r,a,o,l=this,c=l.d,u=l.e,h=l.s,d=l.constructor;if(1!==h||!c||!c[0])return new d(!h||0>h&&(!c||c[0])?NaN:c?l:1/0);for(pe=!1,0==(h=Math.sqrt(+l))||h==1/0?(((n=t(c)).length+u)%2==0&&(n+="0"),h=Math.sqrt(n),u=be((u+1)/2)-(0>u||u%2),r=new d(n=h==1/0?"1e"+u:(n=h.toExponential()).slice(0,n.indexOf("e")+1)+u)):r=new d(h.toString()),i=(u=d.precision)+3;;)if(r=(o=r).plus(Pe(l,o,i+2,1)).times(.5),t(o.d).slice(0,i)===(n=t(r.d)).slice(0,i)){if("9999"!=(n=n.slice(i-3,i+1))&&(a||"4999"!=n)){(!+n||!+n.slice(1)&&"5"==n.charAt(0))&&(s(r,u+1,1),e=!r.times(r).eq(l));break}if(!a&&(s(o,u+1,0),o.times(o).eq(l))){r=o;break}i+=4,a=1}return pe=!0,s(r,u,d.rounding,e)},Me.tangent=Me.tan=function(){var e,t,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,t=i.rounding,i.precision=e+10,i.rounding=1,(n=n.sin()).s=1,n=Pe(n,new i(1).minus(n.times(n)).sqrt(),e+10,0),i.precision=e,i.rounding=t,s(2==ce||4==ce?n.neg():n,e,t,!0)):new i(NaN)},Me.times=Me.mul=function(e){var t,n,i,r,a,l,c,u,h,d=this,m=d.constructor,g=d.d,$=(e=new m(e)).d;if(e.s*=d.s,!(g&&g[0]&&$&&$[0]))return new m(!e.s||g&&!g[0]&&!$||$&&!$[0]&&!g?NaN:g&&$?0*e.s:e.s/0);for(n=be(d.e/Ae)+be(e.e/Ae),u=g.length,(h=$.length)>u&&(a=g,g=$,$=a,l=u,u=h,h=l),a=[],i=l=u+h;i--;)a.push(0);for(i=h;--i>=0;){for(t=0,r=u+i;r>i;)c=a[r]+$[i]*g[r-i-1]+t,a[r--]=c%xe|0,t=c/xe|0;a[r]=(a[r]+t)%xe|0}for(;!a[--l];)a.pop();for(t?++n:a.shift(),i=a.length;!a[--i];)a.pop();return e.d=a,e.e=o(a,n),pe?s(e,m.precision,m.rounding):e},Me.toBinary=function(e,t){return C(this,2,e,t)},Me.toDecimalPlaces=Me.toDP=function(e,t){var i=this,r=i.constructor;return i=new r(i),void 0===e?i:(n(e,0,he),void 0===t?t=r.rounding:n(t,0,8),s(i,e+i.e+1,t))},Me.toExponential=function(e,t){var i,r=this,o=r.constructor;return void 0===e?i=a(r,!0):(n(e,0,he),void 0===t?t=o.rounding:n(t,0,8),i=a(r=s(new o(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+i:i},Me.toFixed=function(e,t){var i,r,o=this,l=o.constructor;return void 0===e?i=a(o):(n(e,0,he),void 0===t?t=l.rounding:n(t,0,8),i=a(r=s(new l(o),e+o.e+1,t),!1,e+r.e+1)),o.isNeg()&&!o.isZero()?"-"+i:i},Me.toFraction=function(e){var n,i,r,s,a,o,l,c,h,d,m,g,$=this,p=$.d,y=$.constructor;if(!p)return new y($);if(h=i=new y(1),r=c=new y(0),o=(a=(n=new y(r)).e=u(p)-$.e-1)%Ae,n.d[0]=Ce(10,0>o?Ae+o:o),null==e)e=a>0?n:h;else{if(!(l=new y(e)).isInt()||l.lt(h))throw Error(fe+l);e=l.gt(n)?a>0?n:h:l}for(pe=!1,l=new y(t(p)),d=y.precision,y.precision=a=p.length*Ae*2;m=Pe(l,n,0,1,1),1!=(s=i.plus(m.times(r))).cmp(e);)i=r,r=s,s=h,h=c.plus(m.times(s)),c=s,s=n,n=l.minus(m.times(s)),l=s;return s=Pe(e.minus(i),r,0,1,1),c=c.plus(s.times(h)),i=i.plus(s.times(r)),c.s=h.s=$.s,g=Pe(h,r,a,1).minus($).abs().cmp(Pe(c,i,a,1).minus($).abs())<1?[h,r]:[c,i],y.precision=d,pe=!0,g},Me.toHexadecimal=Me.toHex=function(e,t){return C(this,16,e,t)},Me.toNearest=function(e,t){var i=this,r=i.constructor;if(i=new r(i),null==e){if(!i.d)return i;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0!==t&&n(t,0,8),!i.d)return e.s?i:e;if(!e.d)return e.s&&(e.s=i.s),e}return e.d[0]?(pe=!1,4>t&&(t=[4,5,7,8][t]),i=Pe(i,e,0,t,1).times(e),pe=!0,s(i)):(e.s=i.s,i=e),i},Me.toNumber=function(){return+this},Me.toOctal=function(e,t){return C(this,8,e,t)},Me.toPower=Me.pow=function(e){var n,r,a,o,l,c,u,h=this,m=h.constructor,g=+(e=new m(e));if(!(h.d&&e.d&&h.d[0]&&e.d[0]))return new m(Ce(+h,g));if((h=new m(h)).eq(1))return h;if(a=m.precision,l=m.rounding,e.eq(1))return s(h,a,l);if(u=(n=be(e.e/Ae))>=(r=e.d.length-1),c=h.s,u){if((r=0>g?-g:g)<=9007199254740991)return o=d(m,h,r,a),e.s<0?new m(1).div(o):s(o,a,l)}else if(0>c)return new m(NaN);return c=0>c&&1&e.d[Math.max(n,r)]?-1:1,(n=0!=(r=Ce(+h,g))&&isFinite(r)?new m(r+"").e:be(g*(Math.log("0."+t(h.d))/Math.LN10+h.e+1)))>m.maxE+1||n<m.minE-1?new m(n>0?c/0:0):(pe=!1,m.rounding=h.s=1,r=Math.min(12,(n+"").length),i((o=s(o=$(e.times(p(h,a+r)),a),a+5,1)).d,a,l)&&(n=a+10,+t((o=s($(e.times(p(h,n+r)),n),n+5,1)).d).slice(a+1,a+15)+1==1e14&&(o=s(o,a+1,0))),o.s=c,pe=!0,m.rounding=l,s(o,a,l))},Me.toPrecision=function(e,t){var i,r=this,o=r.constructor;return void 0===e?i=a(r,r.e<=o.toExpNeg||r.e>=o.toExpPos):(n(e,1,he),void 0===t?t=o.rounding:n(t,0,8),i=a(r=s(new o(r),e,t),e<=r.e||r.e<=o.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+i:i},Me.toSignificantDigits=Me.toSD=function(e,t){var i=this.constructor;return void 0===e?(e=i.precision,t=i.rounding):(n(e,1,he),void 0===t?t=i.rounding:n(t,0,8)),s(new i(this),e,t)},Me.toString=function(){var e=this,t=e.constructor,n=a(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},Me.truncated=Me.trunc=function(){return s(new this.constructor(this),this.e+1,1)},Me.valueOf=Me.toJSON=function(){var e=this,t=e.constructor,n=a(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var Pe=function(){function e(e,t,n){var i,r=0,s=e.length;for(e=e.slice();s--;)i=e[s]*t+r,e[s]=i%n|0,r=i/n|0;return r&&e.unshift(r),e}function t(e,t,n,i){var r,s;if(n!=i)s=n>i?1:-1;else for(r=s=0;n>r;r++)if(e[r]!=t[r]){s=e[r]>t[r]?1:-1;break}return s}function n(e,t,n,i){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*i+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(i,r,a,o,l,c){var u,h,d,m,g,$,p,y,f,_,S,b,C,E,T,v,I,x,A,w,D=i.constructor,M=i.s==r.s?1:-1,P=i.d,U=r.d;if(!(P&&P[0]&&U&&U[0]))return new D(i.s&&r.s&&(P?!U||P[0]!=U[0]:U)?P&&0==P[0]||!U?0*M:M/0:NaN);for(c?(g=1,h=i.e-r.e):(c=xe,g=Ae,h=be(i.e/g)-be(r.e/g)),A=U.length,I=P.length,_=(f=new D(M)).d=[],d=0;U[d]==(P[d]||0);d++);if(U[d]>(P[d]||0)&&h--,null==a?(E=a=D.precision,o=D.rounding):E=l?a+(i.e-r.e)+1:a,0>E)_.push(1),$=!0;else{if(E=E/g+2|0,d=0,1==A){for(m=0,U=U[0],E++;(I>d||m)&&E--;d++)T=m*c+(P[d]||0),_[d]=T/U|0,m=T%U|0;$=m||I>d}else{for((m=c/(U[0]+1)|0)>1&&(U=e(U,m,c),P=e(P,m,c),A=U.length,I=P.length),v=A,b=(S=P.slice(0,A)).length;A>b;)S[b++]=0;(w=U.slice()).unshift(0),x=U[0],U[1]>=c/2&&++x;do{m=0,0>(u=t(U,S,A,b))?(C=S[0],A!=b&&(C=C*c+(S[1]||0)),(m=C/x|0)>1?(m>=c&&(m=c-1),1==(u=t(p=e(U,m,c),S,y=p.length,b=S.length))&&(m--,n(p,y>A?w:U,y,c))):(0==m&&(u=m=1),p=U.slice()),b>(y=p.length)&&p.unshift(0),n(S,p,b,c),-1==u&&1>(u=t(U,S,A,b=S.length))&&(m++,n(S,b>A?w:U,b,c)),b=S.length):0===u&&(m++,S=[0]),_[d++]=m,u&&S[0]?S[b++]=P[v]||0:(S=[P[v]],b=1)}while((v++<I||void 0!==S[0])&&E--);$=void 0!==S[0]}_[0]||_.shift()}if(1==g)f.e=h,oe=$;else{for(d=1,m=_[0];m>=10;m/=10)d++;f.e=d+h*g-1,s(f,l?a+f.e+1:a,o,$)}return f}}();$e=function e(t){function n(e){var t,i,r,s=this;if(!(s instanceof n))return new n(e);if(s.constructor=n,e instanceof n)return s.s=e.s,s.e=e.e,void(s.d=(e=e.d)?e.slice():e);if("number"==(r=typeof e)){if(0===e)return s.s=0>1/e?-1:1,s.e=0,void(s.d=[0]);if(0>e?(e=-e,s.s=-1):s.s=1,e===~~e&&1e7>e){for(t=0,i=e;i>=10;i/=10)t++;return s.e=t,void(s.d=[e])}return 0*e!=0?(e||(s.s=NaN),s.e=NaN,void(s.d=null)):f(s,e.toString())}if("string"!==r)throw Error(fe+e);return 45===e.charCodeAt(0)?(e=e.slice(1),s.s=-1):s.s=1,Ie.test(e)?f(s,e):_(s,e)}var i,r,s;if(n.prototype=Me,n.ROUND_UP=0,n.ROUND_DOWN=1,n.ROUND_CEIL=2,n.ROUND_FLOOR=3,n.ROUND_HALF_UP=4,n.ROUND_HALF_DOWN=5,n.ROUND_HALF_EVEN=6,n.ROUND_HALF_CEIL=7,n.ROUND_HALF_FLOOR=8,n.EUCLID=9,n.config=n.set=O,n.clone=e,n.abs=T,n.acos=v,n.acosh=I,n.add=x,n.asin=A,n.asinh=w,n.atan=D,n.atanh=M,n.atan2=P,n.cbrt=U,n.ceil=B,n.cos=L,n.cosh=R,n.div=F,n.exp=G,n.floor=k,n.hypot=V,n.ln=N,n.log=z,n.log10=j,n.log2=H,n.max=Z,n.min=q,n.mod=K,n.mul=W,n.pow=J,n.random=Q,n.round=X,n.sign=Y,n.sin=ee,n.sinh=te,n.sqrt=ne,n.sub=ie,n.tan=re,n.tanh=se,n.trunc=ae,void 0===t&&(t={}),t)for(s=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<s.length;)t.hasOwnProperty(r=s[i++])||(t[r]=this[r]);return n.config(t),n}($e),me=new $e(me),ge=new $e(ge),Bridge.$Decimal=$e,"function"==typeof define&&define.amd?define("decimal.js",(function(){return $e})):"undefined"!=typeof module&&module.exports?module.exports=$e.default=$e.Decimal=$e:(e||(e="undefined"!=typeof self&&self&&self.self==self?self:Function("return this")()),le=e.Decimal,$e.noConflict=function(){return e.Decimal=le,$e})}(Bridge.global),System.Decimal=function(e,t,n){if(this.constructor!==System.Decimal)return new System.Decimal(e,t,n);if(null==e&&(e=0),Bridge.isNumber(t)?(this.$precision=t,t=void 0):this.$precision=0,"string"==typeof e){var i,r=(t=t||System.Globalization.CultureInfo.getCurrentCulture())&&t.getFormat(System.Globalization.NumberFormatInfo);r&&"."!==r.numberDecimalSeparator&&(e=e.replace(r.numberDecimalSeparator,".")),e=e.replace(/\s/g,""),/[+-]$/.test(e)?e=e.endsWith("-")?e.replace(/(.*)(-)$/,"$2$1"):e.substr(0,e.length-1):e.startsWith("+")&&(e=e.substr(1)),!this.$precision&&(i=e.indexOf("."))>=0&&(this.$precision=e.length-i-1)}if(isNaN(e)||System.Decimal.MaxValue&&"number"==typeof e&&(System.Decimal.MinValue.gt(e)||System.Decimal.MaxValue.lt(e)),n&&n.precision&&"number"==typeof e&&Number.isFinite(e)){var s=(Bridge.Int.trunc(e)+"").length,a=n.precision-s;a<0&&(a=0),e=e.toFixed(a)}e instanceof System.Decimal&&(this.$precision=e.$precision),this.value=System.Decimal.getValue(e)},System.Decimal.$number=!0,System.Decimal.$$name="System.Decimal",System.Decimal.prototype.$$name="System.Decimal",System.Decimal.$kind=Bridge.Typemarkers.Struct,System.Decimal.prototype.$kind=Bridge.Typemarkers.Struct,System.Decimal.$$inherits=[],Bridge.Class.addExtend(System.Decimal,[System.IComparable,System.IFormattable,System.IComparable$1(System.Decimal),System.IEquatable$1(System.Decimal)]),System.Decimal.$is=function(e){return e instanceof System.Decimal},System.Decimal.getDefaultValue=function(){return new System.Decimal(0)},System.Decimal.getValue=function(e){return Bridge.hasValue(e)?e instanceof System.Decimal?e.value:e instanceof System.Int64||e instanceof System.UInt64?new Bridge.$Decimal(e.toString()):new Bridge.$Decimal(e):this.getDefaultValue()},System.Decimal.create=function(e){return Bridge.hasValue(e)?e instanceof System.Decimal?e:new System.Decimal(e):null},System.Decimal.lift=function(e){return null==e?null:System.Decimal.create(e)},System.Decimal.prototype.toString=function(e,t){return Bridge.Int.format(this,e||"G",t)},System.Decimal.prototype.toFloat=function(){return this.value.toNumber()},System.Decimal.prototype.toJSON=function(){return this.value.toNumber()},System.Decimal.prototype.format=function(e,t){return Bridge.Int.format(this,e,t)},System.Decimal.prototype.decimalPlaces=function(){return this.value.decimalPlaces()},System.Decimal.prototype.dividedToIntegerBy=function(e){return(e=new System.Decimal(this.value.dividedToIntegerBy(System.Decimal.getValue(e)),this.$precision)).$precision=Math.max(e.value.decimalPlaces(),this.$precision),e},System.Decimal.prototype.exponential=function(){return new System.Decimal(this.value.exponential(),this.$precision)},System.Decimal.prototype.abs=function(){return new System.Decimal(this.value.abs(),this.$precision)},System.Decimal.prototype.floor=function(){return new System.Decimal(this.value.floor())},System.Decimal.prototype.ceil=function(){return new System.Decimal(this.value.ceil())},System.Decimal.prototype.trunc=function(){return new System.Decimal(this.value.trunc())},System.Decimal.round=function(e,t){e=System.Decimal.create(e);var n=Bridge.$Decimal.rounding;Bridge.$Decimal.rounding=t;var i=new System.Decimal(e.value.round());return Bridge.$Decimal.rounding=n,i},System.Decimal.toDecimalPlaces=function(e,t,n){return e=System.Decimal.create(e),new System.Decimal(e.value.toDecimalPlaces(t,n))},System.Decimal.prototype.compareTo=function(e){return this.value.comparedTo(System.Decimal.getValue(e))},System.Decimal.prototype.add=function(e){var t=new System.Decimal(this.value.plus(System.Decimal.getValue(e)));return t.$precision=Math.max(t.value.decimalPlaces(),Math.max(e.$precision||0,this.$precision)),t},System.Decimal.prototype.sub=function(e){var t=new System.Decimal(this.value.minus(System.Decimal.getValue(e)));return t.$precision=Math.max(t.value.decimalPlaces(),Math.max(e.$precision||0,this.$precision)),t},System.Decimal.prototype.isZero=function(){return this.value.isZero},System.Decimal.prototype.mul=function(e){var t=new System.Decimal(this.value.times(System.Decimal.getValue(e)));return t.$precision=Math.max(t.value.decimalPlaces(),Math.max(e.$precision||0,this.$precision)),t},System.Decimal.prototype.div=function(e){var t=new System.Decimal(this.value.dividedBy(System.Decimal.getValue(e)));return t.$precision=Math.max(t.value.decimalPlaces(),Math.max(e.$precision||0,this.$precision)),t},System.Decimal.prototype.mod=function(e){var t=new System.Decimal(this.value.modulo(System.Decimal.getValue(e)));return t.$precision=Math.max(t.value.decimalPlaces(),Math.max(e.$precision||0,this.$precision)),t},System.Decimal.prototype.neg=function(){return new System.Decimal(this.value.negated(),this.$precision)},System.Decimal.prototype.inc=function(){return new System.Decimal(this.value.plus(System.Decimal.getValue(1)),this.$precision)},System.Decimal.prototype.dec=function(){return new System.Decimal(this.value.minus(System.Decimal.getValue(1)),this.$precision)},System.Decimal.prototype.sign=function(){return this.value.isZero()?0:this.value.isNegative()?-1:1},System.Decimal.prototype.clone=function(){return new System.Decimal(this,this.$precision)},System.Decimal.prototype.ne=function(e){return!!this.compareTo(e)},System.Decimal.prototype.lt=function(e){return this.compareTo(e)<0},System.Decimal.prototype.lte=function(e){return this.compareTo(e)<=0},System.Decimal.prototype.gt=function(e){return this.compareTo(e)>0},System.Decimal.prototype.gte=function(e){return this.compareTo(e)>=0},System.Decimal.prototype.equals=function(e){return(e instanceof System.Decimal||"number"==typeof e)&&!this.compareTo(e)},System.Decimal.prototype.equalsT=function(e){return!this.compareTo(e)},System.Decimal.prototype.getHashCode=function(){for(var e=397*this.sign()+this.value.e|0,t=0;t<this.value.d.length;t++)e=397*e+this.value.d[t]|0;return e},System.Decimal.toInt=function(e,t){if(!e)return null;var n,i;if(t)return t===System.Int64?(n=e.value.trunc().toString(),(i=new System.Int64(n)).value.toString(),i):t===System.UInt64?(e.value.isNegative(),n=e.value.trunc().toString(),(i=new System.UInt64(n)).value.toString(),i):Bridge.Int.check(Bridge.Int.trunc(e.value.toNumber()),t);var r=Bridge.Int.trunc(System.Decimal.getValue(e).toNumber());return Bridge.Int.$is(r),r},System.Decimal.tryParse=function(e,t,n){try{return n.v=new System.Decimal(e,t),!0}catch(e){return n.v=new System.Decimal(0),!1}},System.Decimal.toFloat=function(e){return e?System.Decimal.getValue(e).toNumber():null},System.Decimal.setConfig=function(e){Bridge.$Decimal.config(e)},System.Decimal.min=function(){for(var e,t,n=[],i=0,r=arguments.length;i<r;i++)n.push(System.Decimal.getValue(arguments[i]));for(e=Bridge.$Decimal.min.apply(Bridge.$Decimal,n),i=0;i<arguments.length;i++)e.eq(n[i])&&(t=arguments[i].$precision);return new System.Decimal(e,t)},System.Decimal.max=function(){for(var e,t,n=[],i=0,r=arguments.length;i<r;i++)n.push(System.Decimal.getValue(arguments[i]));for(e=Bridge.$Decimal.max.apply(Bridge.$Decimal,n),i=0;i<arguments.length;i++)e.eq(n[i])&&(t=arguments[i].$precision);return new System.Decimal(e,t)},System.Decimal.random=function(e){return new System.Decimal(Bridge.$Decimal.random(e))},System.Decimal.exp=function(e){return new System.Decimal(System.Decimal.getValue(e).exp())},System.Decimal.exp=function(e){return new System.Decimal(System.Decimal.getValue(e).exp())},System.Decimal.ln=function(e){return new System.Decimal(System.Decimal.getValue(e).ln())},System.Decimal.log=function(e,t){return new System.Decimal(System.Decimal.getValue(e).log(t))},System.Decimal.pow=function(e,t){return new System.Decimal(System.Decimal.getValue(e).pow(t))},System.Decimal.sqrt=function(e){return new System.Decimal(System.Decimal.getValue(e).sqrt())},System.Decimal.prototype.isFinite=function(){return this.value.isFinite()},System.Decimal.prototype.isInteger=function(){return this.value.isInteger()},System.Decimal.prototype.isNaN=function(){return this.value.isNaN()},System.Decimal.prototype.isNegative=function(){return this.value.isNegative()},System.Decimal.prototype.isZero=function(){return this.value.isZero()},System.Decimal.prototype.log=function(e){var t=new System.Decimal(this.value.log(e));return t.$precision=Math.max(t.value.decimalPlaces(),this.$precision),t},System.Decimal.prototype.ln=function(){var e=new System.Decimal(this.value.ln());return e.$precision=Math.max(e.value.decimalPlaces(),this.$precision),e},System.Decimal.prototype.precision=function(){return this.value.precision()},System.Decimal.prototype.round=function(){var e,t=Bridge.$Decimal.rounding;return Bridge.$Decimal.rounding=6,e=new System.Decimal(this.value.round()),Bridge.$Decimal.rounding=t,e},System.Decimal.prototype.sqrt=function(){var e=new System.Decimal(this.value.sqrt());return e.$precision=Math.max(e.value.decimalPlaces(),this.$precision),e},System.Decimal.prototype.toDecimalPlaces=function(e,t){return new System.Decimal(this.value.toDecimalPlaces(e,t))},System.Decimal.prototype.toExponential=function(e,t){return this.value.toExponential(e,t)},System.Decimal.prototype.toFixed=function(e,t){return this.value.toFixed(e,t)},System.Decimal.prototype.pow=function(e){var t=new System.Decimal(this.value.pow(e));return t.$precision=Math.max(t.value.decimalPlaces(),this.$precision),t},System.Decimal.prototype.toPrecision=function(e,t){return this.value.toPrecision(e,t)},System.Decimal.prototype.toSignificantDigits=function(e,t){var n=new System.Decimal(this.value.toSignificantDigits(e,t));return n.$precision=Math.max(n.value.decimalPlaces(),this.$precision),n},System.Decimal.prototype.valueOf=function(){return this.value.valueOf()},System.Decimal.prototype._toFormat=function(e,t,n){var i=this.value;if(!i.isFinite())return i.toString();var r,s=i.isNeg(),a=n.groupSeparator,o=+n.groupSize,l=+n.secondaryGroupSize,c=i.toFixed(e,t).split("."),u=c[0],h=c[1],d=s?u.slice(1):u,m=d.length;if(l&&(m-=(r=o,o=l,l=r)),o>0&&m>0){for(r=m%o||o,u=d.substr(0,r);r<m;r+=o)u+=a+d.substr(r,o);l>0&&(u+=a+d.slice(r)),s&&(u="-"+u)}return h?u+n.decimalSeparator+((l=+n.fractionGroupSize)?h.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+n.fractionGroupSeparator):h):u},System.Decimal.prototype.toFormat=function(e,t,n){var i,r={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};if(n&&!n.getFormat)r=Bridge.merge(r,n),i=this._toFormat(e,t,r);else{var s=(n=n||System.Globalization.CultureInfo.getCurrentCulture())&&n.getFormat(System.Globalization.NumberFormatInfo);s&&(r.decimalSeparator=s.numberDecimalSeparator,r.groupSeparator=s.numberGroupSeparator,r.groupSize=s.numberGroupSizes[0]),i=this._toFormat(e,t,r)}return i},System.Decimal.prototype.getBytes=function(){var e=this.value.s,t=this.value.e,n=this.value.d,i=System.Array.init(23,0,System.Byte);if(i[0]=255&e,i[1]=t,n&&n.length>0){i[2]=4*n.length;for(var r=0;r<n.length;r++)i[4*r+3]=255&n[r],i[4*r+4]=n[r]>>8&255,i[4*r+5]=n[r]>>16&255,i[4*r+6]=n[r]>>24&255}else i[2]=0;return i},System.Decimal.fromBytes=function(e){var t=new System.Decimal(0),n=Bridge.Int.sxb(255&e[0]),i=e[1],r=e[2],s=[];if(t.value.s=n,t.value.e=i,r>0)for(var a=3;a<r+3;)s.push(e[a]|e[a+1]<<8|e[a+2]<<16|e[a+3]<<24),a+=4;return t.value.d=s,t},Bridge.$Decimal.config({precision:29}),System.Decimal.Zero=System.Decimal(0),System.Decimal.One=System.Decimal(1),System.Decimal.MinusOne=System.Decimal(-1),System.Decimal.MinValue=System.Decimal("-79228162514264337593543950335"),System.Decimal.MaxValue=System.Decimal("79228162514264337593543950335"),System.Decimal.precision=29,$$sd("Z$.wv$",{inherits:function(){return[Z$.jd$,Z$.md$(Z$.wv$),Z$.nd$(Z$.wv$),Z$.id$]},$kind:4,fields:{kind:0},methods:{},statics:{zIa$:null,AIa$:null,BIa$:null,CIa$:null,DIa$:null,$min:null,$max:null,EIa$:System.Int64(864e9),FIa$:719162,GIa$:[0,31,59,90,120,151,181,212,243,273,304,334],DHa$:function(){return null===this.zIa$&&(this.zIa$=Z$.Int64(0)),this.zIa$},EHa$:function(){return null===this.AIa$&&(this.AIa$=Z$.Int64("3652059").mul(this.EIa$).sub(1)),this.AIa$},$getMinOffset:function(){return null===this.BIa$&&(this.BIa$=Z$.Int64(621355968e9)),this.BIa$},NFa$:function(){return null===this.DIa$&&(this.DIa$=this.FHa$()),this.DIa$},FHa$:function(){if(null===this.$min){var e=new Date(1,0,1,0,0,0,0);e.setFullYear(1),e.setSeconds(0),e.kind=0,e.ticks=this.DHa$(),this.$min=e}return this.$min},$getTzOffset:function(e){return Z$.Int64(e.getTimezoneOffset()).mul(6e8)},JHa$:function(e){if(e.ticks)return e.ticks;var t=void 0!==e.kind?e.kind:0;return e.ticks=1===t?Z$.Int64(e.getTime()).mul(1e4).add(this.$getMinOffset()):Z$.Int64(e.getTime()).mul(1e4).add(this.$getMinOffset()).sub(this.$getTzOffset(e)),e.ticks},create:function(e,t,n,i,r,s,a,o){var l;return e=void 0!==e?e:(new Date).getFullYear(),t=void 0!==t?t:(new Date).getMonth()+1,n=void 0!==n?n:1,i=void 0!==i?i:0,r=void 0!==r?r:0,s=void 0!==s?s:0,a=void 0!==a?a:0,1===(o=void 0!==o?o:0)?(l=new Date(Date.UTC(e,t-1,n,i,r,s,a))).setUTCFullYear(e):(l=new Date(e,t-1,n,i,r,s,a)).setFullYear(e),l.kind=o,l.ticks=this.JHa$(l),l},KHa$:function(e,t){var n;return(e=Z$.Int64.is64Bit(e)?e:Z$.Int64(e)).lt(this.EIa$)?((n=new Date(0)).setMilliseconds(n.getMilliseconds()+this.$getTzOffset(n).div(1e4).toNumber()),n.setFullYear(1)):(n=new Date(e.sub(this.$getMinOffset()).div(1e4).toNumber()),1!==t&&n.setTime(n.getTime()+6e4*n.getTimezoneOffset())),n.kind=void 0!==t?t:0,n.ticks=e,n},MHa$:function(){var e=new Date;return e.kind=2,e},HIa$:System.Int64("584388").mul(System.Int64(864e9))}}),$$sd("Z$.xv$",{inherits:[Z$.jd$],config:{alias:["WIa$",["System$IComparable$compareTo","System$IComparable$1$compareTo","System$IComparable$1System$TimeSpan$compareTo"]]},$kind:4,statics:{ZIa$:function(e){return new Z$.xv$(1e4*e)},ctor:function(){this.zero=new Z$.xv$(Z$.Int64.Zero),this.maxValue=new Z$.xv$(Z$.Int64.MaxValue),this.minValue=new Z$.xv$(Z$.Int64.MinValue)},dJa$:/^(\-)?(\d+)[\.|:](\d+):(\d+):(\d+)(\.\d+)?/,eJa$:/^(\-)?(\d+):(\d+):(\d+)(\.\d+)?/},ctor:function(){this.$initialize(),this.ticks=Z$.Int64.Zero,1===arguments.length?this.ticks=arguments[0]instanceof Z$.Int64?arguments[0]:new Z$.Int64(arguments[0]):3===arguments.length?this.ticks=new Z$.Int64(arguments[0]).mul(60).add(arguments[1]).mul(60).add(arguments[2]).mul(1e7):4===arguments.length?this.ticks=new Z$.Int64(arguments[0]).mul(24).add(arguments[1]).mul(60).add(arguments[2]).mul(60).add(arguments[3]).mul(1e7):5===arguments.length&&(this.ticks=new Z$.Int64(arguments[0]).mul(24).add(arguments[1]).mul(60).add(arguments[2]).mul(60).add(arguments[3]).mul(1e3).add(arguments[4]).mul(1e4))},JHa$:function(){return this.ticks},QIa$:function(){return this.ticks.toNumberDivided(1e4)}}),Bridge.Class.addExtend(System.TimeSpan,[System.IComparable$1(System.TimeSpan),System.IEquatable$1(System.TimeSpan)]),function(){var e=RegExp("[-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]","g");Bridge.regexpEscape=function(t){return t.replace(e,"\\$&")}}(),"undefined"!=typeof window&&window.performance&&window.performance.now||"undefined"!=typeof process&&process.hrtime,System.Diagnostics.Contracts.Contract={reportFailure:function(e,t,n,i,r){var s=n.toString();if(s=(s=s.substring(s.indexOf("return")+7)).substr(0,s.lastIndexOf(";")),r)throw new r(s,t)},assert:function(e,t,n,i){n.call(t)||System.Diagnostics.Contracts.Contract.reportFailure(e,i,n,null)},requires:function(e,t,n,i){n.call(t)||System.Diagnostics.Contracts.Contract.reportFailure(0,i,n,null,e)},forAll:function(e,t,n){for(;e<t;e++)if(!n(e))return!1;return!0},forAll$1:function(e,t){var n=Bridge.getEnumerator(e);try{for(;n.moveNext();)if(!t(n.Current))return!1;return!0}finally{n.Dispose()}},exists:function(e,t,n){for(;e<t;e++)if(n(e))return!0;return!1},exists$1:function(e,t){var n=Bridge.getEnumerator(e);try{for(;n.moveNext();)if(t(n.Current))return!0;return!1}finally{n.Dispose()}}};var Y={toIndex:function(e,t){if(t.length!==(e.$s?e.$s.length:1))throw new System.ArgumentException.$ctor1("Invalid number of indices");t[0]<0||(t[0],e.$s?e.$s[0]:e.length);var n,i=t[0];if(e.$s)for(n=1;n<e.$s.length;n++)t[n]<0||(t[n],e.$s[n]),i=i*e.$s[n]+t[n];return i},index:function(e,t){return e<0||t.length,e},$get:function(e){var t=this[System.Array.toIndex(this,e)];return void 0!==t?t:this.$v},get:function(e){for(var t=Array.prototype.slice.call(arguments,1),n=0;n<t.length;n++)Bridge.hasValue(t[n]);var i=e[System.Array.toIndex(e,t)];return void 0!==i?i:e.$v},$set:function(e,t){this[System.Array.toIndex(this,e)]=t},set:function(e,t){var n=Array.prototype.slice.call(arguments,2);e[System.Array.toIndex(e,n)]=t},getLength:function(e,t){return t<0||e.$s&&e.$s.length,e.$s?e.$s[t]:e.length},getRank:function(e){return e.$type?e.$type.$rank:e.$s?e.$s.length:1},getLower:function(e,t){return System.Array.getLength(e,t),0},create:function(e,t,n,i){var r,s,a,o,l,c,u=[],h=arguments.length>3?1:0;if(u.$v=e,u.$s=[],u.get=System.Array.$get,u.set=System.Array.$set,i&&Bridge.isArray(i))for(r=0;r<i.length;r++){if(a=i[r],isNaN(a)||a<0)throw new System.ArgumentOutOfRangeException.$ctor1("length");h*=a,u.$s[r]=a}else for(r=3;r<arguments.length;r++){if(isNaN(a=arguments[r])||a<0)throw new System.ArgumentOutOfRangeException.$ctor1("length");h*=a,u.$s[r-3]=a}u.length=h;var d,m=Bridge.isFunction(e);m&&((d=e())&&(d.$kind||"object"==typeof d)||(m=!1,e=d));for(var g=0;g<h;g++)u[g]=m?e():e;if(t)for(r=0;r<u.length;r++){for(l=[],c=r,s=u.$s.length-1;s>=0;s--)o=c%u.$s[s],l.unshift(o),c=Bridge.Int.div(c-o,u.$s[s]);for(d=t,o=0;o<l.length;o++)d=d[l[o]];u[r]=d}return System.Array.init(u,n,u.$s.length),u},init:function(e,t,n,i){if(Bridge.isArray(e)){var r=t,s=n||1;return System.Array.type(r,s,e),e}if(isNaN(e)||e<0)throw new System.ArgumentOutOfRangeException.$ctor1("length");var a=Array(e),o=!0!==i&&Bridge.isFunction(t);if(o){var l=t();l&&(l.$kind||"object"==typeof l)||(o=!1,t=l)}for(var c=0;c<e;c++)a[c]=o?t():t;return System.Array.init(a,n,1)},toEnumerable:function(e){},toEnumerator:function(e,t){return new Bridge.ArrayEnumerator(e,t)},_typedArrays:{Float32Array:System.Single,Float64Array:System.Double,Int8Array:System.SByte,Int16Array:System.Int16,Int32Array:System.Int32,Uint8Array:System.Byte,Uint8ClampedArray:System.Byte,Uint16Array:System.UInt16,Uint32Array:System.UInt32},is:function(e,t){if(e instanceof Bridge.ArrayEnumerator)return!!(e.constructor===t||e instanceof t||t===Bridge.ArrayEnumerator||t.$$name&&System.String.startsWith(t.$$name,"System.Collections.IEnumerator")||t.$$name&&System.String.startsWith(t.$$name,"System.Collections.Generic.IEnumerator"));if(!Bridge.isArray(e))return!1;if(t.$elementType&&t.$isArray){var n=Bridge.getType(e).$elementType;if(n)return Bridge.Reflection.isValueType(n)===Bridge.Reflection.isValueType(t.$elementType)&&System.Array.getRank(e)===t.$rank&&Bridge.Reflection.isAssignableFrom(t.$elementType,n);t=Array}if(e.constructor===t||e instanceof t)return!0;if(t===System.Collections.IEnumerable||t===System.Collections.ICollection||t===System.ICloneable||t===System.Collections.IList||t.$$name&&System.String.startsWith(t.$$name,"System.Collections.Generic.IEnumerable$1")||t.$$name&&System.String.startsWith(t.$$name,"System.Collections.Generic.ICollection$1")||t.$$name&&System.String.startsWith(t.$$name,"System.Collections.Generic.IList$1")||t.$$name&&System.String.startsWith(t.$$name,"System.Collections.Generic.IReadOnlyCollection$1")||t.$$name&&System.String.startsWith(t.$$name,"System.Collections.Generic.IReadOnlyList$1"))return!0;var i=!!System.Array._typedArrays[String.prototype.slice.call(Object.prototype.toString.call(e),8,-1)];return i&&System.Array._typedArrays[t.name]?e instanceof t:i},clone:function(e){var t;return(t=1===e.length?[e[0]]:e.slice(0)).$type=e.$type,t.$v=e.$v,t.$s=e.$s,t.get=System.Array.$get,t.set=System.Array.$set,t},getCount:function(e,t){var n,i;return Bridge.isArray(e)?e.length:t&&Bridge.isFunction(e[n="System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$getCount"])||Bridge.isFunction(e[n="System$Collections$ICollection$getCount"])?e[n]():t&&void 0!==(i=e["System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$Count"])||void 0!==(i=e.System$Collections$ICollection$Count)||void 0!==(i=e.Count)?i:Bridge.isFunction(e.getCount)?e.getCount():0},getIsReadOnly:function(e,t){var n,i;return Bridge.isArray(e)?!!t:t&&Bridge.isFunction(e[n="System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$getIsReadOnly"])?e[n]():t&&void 0!==(i=e["System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$IsReadOnly"])?i:Bridge.isFunction(e[n="System$Collections$IList$getIsReadOnly"])?e[n]():void 0!==(i=e.System$Collections$IList$IsReadOnly)||void 0!==(i=e.IsReadOnly)?i:!!Bridge.isFunction(e.getIsReadOnly)&&e.getIsReadOnly()},checkReadOnly:function(e,t,n){Bridge.isArray(e)||System.Array.getIsReadOnly(e,t)},add:function(e,t,n){var i;return System.Array.checkReadOnly(e,n),n&&(t=System.Array.checkNewElementType(t,n)),n&&Bridge.isFunction(e[i="System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(n)+"$add"])||Bridge.isFunction(e[i="System$Collections$IList$add"])?e[i](t):Bridge.isFunction(e.add)?e.add(t):-1},checkNewElementType:function(e,t){var n=Bridge.unbox(e,!0);if(Bridge.isNumber(n)){if(t===System.Decimal)return new System.Decimal(n);if(t===System.Int64)return new System.Int64(n);if(t===System.UInt64)return new System.UInt64(n)}if(!Bridge.is(e,t)){if(null==e&&null==Bridge.getDefaultValue(t))return null;throw new System.ArgumentException.$ctor1("The value "+n+"is not of type "+Bridge.getTypeName(t)+" and cannot be used in this generic collection.")}return n},clear:function(e,t){var n;System.Array.checkReadOnly(e,t,"Collection is read-only."),Bridge.isArray(e)?System.Array.fill(e,t?t.getDefaultValue||Bridge.getDefaultValue(t):null,0,e.length):t&&Bridge.isFunction(e[n="System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$clear"])||Bridge.isFunction(e[n="System$Collections$IList$clear"])?e[n]():Bridge.isFunction(e.clear)&&e.clear()},fill:function(e,t,n,i){Bridge.hasValue(e),n<0||i<0||e.length;var r=Bridge.isFunction(t);if(r){var s=t();s&&(s.$kind||"object"==typeof s)||(r=!1,t=s)}for(;--i>=0;)e[n+i]=r?t():t},copy:function(e,t,n,i,r){if(t<0||i<0||r<0)throw new System.ArgumentOutOfRangeException.$ctor1("bound","Number was less than the array's lower bound in the first dimension");if(r>e.length-t||r>n.length-i)throw new System.ArgumentException.$ctor1("Destination array was not long enough. Check destIndex and length, and the array's lower bounds");if(t<i&&e===n)for(;--r>=0;)n[i+r]=e[t+r];else for(var s=0;s<r;s++)n[i+s]=e[t+s]},copyTo:function(e,t,n,i){var r;Bridge.isArray(e)?System.Array.copy(e,0,t,n,e?e.length:0):Bridge.isFunction(e.copyTo)?e.copyTo(t,n):(i&&Bridge.isFunction(e[r="System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(i)+"$copyTo"])||Bridge.isFunction(e[r="System$Collections$ICollection$copyTo"]))&&e[r](t,n)},indexOf:function(e,t,n,i,r){var s;if(Bridge.isArray(e)){var a,o,l;for(l=(n=n||0)+(i=Bridge.isNumber(i)?i:e.length),a=n;a<l;a++)if((o=e[a])===t||System.Collections.Generic.EqualityComparer$1.$default.equals2(o,t))return a}else{if(r&&Bridge.isFunction(e[s="System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(r)+"$indexOf"]))return e[s](t);if(Bridge.isFunction(e[s="System$Collections$IList$indexOf"]))return e[s](t);if(Bridge.isFunction(e.indexOf))return e.indexOf(t)}return-1},contains:function(e,t,n){var i;return Bridge.isArray(e)?System.Array.indexOf(e,t)>-1:n&&Bridge.isFunction(e[i="System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(n)+"$contains"])||Bridge.isFunction(e[i="System$Collections$IList$contains"])?e[i](t):!!Bridge.isFunction(e.contains)&&e.contains(t)},remove:function(e,t,n){var i;if(System.Array.checkReadOnly(e,n),Bridge.isArray(e)){var r=System.Array.indexOf(e,t);if(r>-1)return e.splice(r,1),!0}else{if(n&&Bridge.isFunction(e[i="System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(n)+"$remove"]))return e[i](t);if(Bridge.isFunction(e[i="System$Collections$IList$remove"]))return e[i](t);if(Bridge.isFunction(e.remove))return e.remove(t)}return!1},insert:function(e,t,n,i){var r;System.Array.checkReadOnly(e,i),i&&(n=System.Array.checkNewElementType(n,i)),i&&Bridge.isFunction(e[r="System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(i)+"$insert"])||Bridge.isFunction(e[r="System$Collections$IList$insert"])?e[r](t,n):Bridge.isFunction(e.insert)&&e.insert(t,n)},removeAt:function(e,t,n){var i;System.Array.checkReadOnly(e,n),Bridge.isArray(e)?e.splice(t,1):n&&Bridge.isFunction(e[i="System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(n)+"$removeAt"])||Bridge.isFunction(e[i="System$Collections$IList$removeAt"])?e[i](t):Bridge.isFunction(e.removeAt)&&e.removeAt(t)},getItem:function(e,t,n){var i,r;return Bridge.isArray(e)?(r=e[t],n?r:e.$type&&(Bridge.isNumber(r)||Bridge.isBoolean(r)||Bridge.isDate(r))?Bridge.box(r,e.$type.$elementType):r):n&&Bridge.isFunction(e[i="System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(n)+"$getItem"])?r=e[i](t):(Bridge.isFunction(e.get)?r=e.get(t):Bridge.isFunction(e.getItem)?r=e.getItem(t):Bridge.isFunction(e[i="System$Collections$IList$$getItem"])?r=e[i](t):Bridge.isFunction(e.get_Item)&&(r=e.get_Item(t)),n&&null!=Bridge.getDefaultValue(n)?Bridge.box(r,n):r)},setItem:function(e,t,n,i){var r;if(Bridge.isArray(e))e.$type&&(n=System.Array.checkElementType(n,e.$type.$elementType)),e[t]=n;else if(i&&(n=System.Array.checkElementType(n,i)),Bridge.isFunction(e.set))e.set(t,n);else if(Bridge.isFunction(e.setItem))e.setItem(t,n);else{if(i&&Bridge.isFunction(e[r="System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(i)+"$setItem"]))return e[r](t,n);if(i&&Bridge.isFunction(e[r="System$Collections$IList$setItem"]))return e[r](t,n);Bridge.isFunction(e.set_Item)&&e.set_Item(t,n)}},checkElementType:function(e,t){var n=Bridge.unbox(e,!0);if(Bridge.isNumber(n)){if(t===System.Decimal)return new System.Decimal(n);if(t===System.Int64)return new System.Int64(n);if(t===System.UInt64)return new System.UInt64(n)}if(!Bridge.is(e,t)){if(null==e)return Bridge.getDefaultValue(t);throw new System.ArgumentException.$ctor1("Cannot widen from source type to target type either because the source type is a not a primitive type or the conversion cannot be accomplished.")}return n},resize:function(e,t,n,i){if(t<0)throw new System.ArgumentOutOfRangeException.$ctor3("newSize",t,"newSize cannot be less than 0.");let r=0;const s=Bridge.isFunction(n);let a=!1,o=e.v;if(o){const e=o;r=e.length,o=Array(t);const n=Math.min(r,t);if(n>0){const t=e[0];a=t&&t.__proto__.$kind===Bridge.Typemarkers.Struct,o[0]=a?t.$clone():t}for(let t=1;t<n;t++)o[t]=a?e[t].$clone():e[t]}else o=Array(t);if(t>r){const e=s?n():n;a=e&&e.__proto__.$kind===Bridge.Typemarkers.Struct,o[r]=a?e.$clone():e}for(let e=r+1;e<t;e++){let t=s?n():n;a&&(t=t.$clone()),o[e]=t}e.v=o},reverse:function(e,t,n){if(t||0===t||(t=0,n=e.length),t<0||n<0)throw new System.ArgumentOutOfRangeException.$ctor4(t<0?"index":"length","Non-negative number required.");if(Y.length-t<n)throw new System.ArgumentException.$ctor1("Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.");if(1!==System.Array.getRank(e))throw new System.Exception("Only single dimension arrays are supported here.");for(var i=t,r=t+n-1;i<r;){var s=e[i];e[i]=e[r],e[r]=s,i++,r--}},binarySearch:function(e,t,n,i,r){if(t<0||n<0)throw new System.ArgumentOutOfRangeException.$ctor4(t<0?"index":"length","Non-negative number required.");if(e.length-(t-0)<n)throw new System.ArgumentException.$ctor1("Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.");System.Array.getRank(e),r||(r=System.Collections.Generic.Comparer$1.$default);for(var s,a,o=t,l=t+n-1;o<=l;){s=o+(l-o>>1);try{a=System.Collections.Generic.Comparer$1.get(r)(e[s],i)}catch(e){}if(0===a)return s;a<0?o=s+1:l=s-1}return~o},sortDict:function(e,t,n,i,r){r||(r=System.Collections.Generic.Comparer$1.$default);var s=[],a=Bridge.fn.bind(r,System.Collections.Generic.Comparer$1.get(r));null==i&&(i=e.length);for(var o=0;o<e.length;o++)s.push({key:e[o],value:t[o]});if(0===n&&i===s.length)s.sort((function(e,t){return a(e.key,t.key)}));else{var l=s.slice(n,n+i);l.sort((function(e,t){return a(e.key,t.key)}));for(var c=n;c<n+i;c++)s[c]=l[c-n]}for(var u=0;u<s.length;u++)e[u]=s[u].key,t[u]=s[u].value},sort:function(e,t,n,i){if(2!==arguments.length||"function"!=typeof t)if(2===arguments.length&&"object"==typeof t&&(i=t,t=null),Bridge.isNumber(t)||(t=0),Bridge.isNumber(n)||(n=e.length),i||(i=System.Collections.Generic.Comparer$1.$default),0===t&&n===e.length)e.sort(Bridge.fn.bind(i,System.Collections.Generic.Comparer$1.get(i)));else{var r=e.slice(t,t+n);r.sort(Bridge.fn.bind(i,System.Collections.Generic.Comparer$1.get(i)));for(var s=t;s<t+n;s++)e[s]=r[s-t]}else e.sort(t)},min:function(e,t){for(var n=e[0],i=e.length,r=0;r<i;r++)!(e[r]<n||n<t)||e[r]<t||(n=e[r]);return n},max:function(e,t){for(var n=e[0],i=e.length,r=0;r<i;r++)!(e[r]>n||n>t)||e[r]>t||(n=e[r]);return n},addRange:function(e,t){if(Bridge.isArray(t))e.push.apply(e,t);else{var n=Bridge.getEnumerator(t);try{for(;n.moveNext();)e.push(n.Current)}finally{Bridge.is(n,System.IDisposable)&&n.Dispose()}}},convertAll:function(e,t){return Bridge.hasValue(e),Bridge.hasValue(t),e.map(t)},find:function(e,t,n){Bridge.hasValue(t),Bridge.hasValue(n);for(var i=0;i<t.length;i++)if(n(t[i]))return t[i];return Bridge.getDefaultValue(e)},findAll:function(e,t){Bridge.hasValue(e),Bridge.hasValue(t);for(var n=[],i=0;i<e.length;i++)t(e[i])&&n.push(e[i]);return n},findIndex:function(e,t,n,i){if(Bridge.hasValue(e),2===arguments.length?(i=t,t=0,n=e.length):3===arguments.length&&(i=n,n=e.length-t),t<0||t>e.length)throw new System.ArgumentOutOfRangeException.$ctor1("startIndex");if(n<0||t>e.length-n)throw new System.ArgumentOutOfRangeException.$ctor1("count");Bridge.hasValue(i);for(var r=t+n,s=t;s<r;s++)if(i(e[s]))return s;return-1},findLast:function(e,t,n){Bridge.hasValue(t),Bridge.hasValue(n);for(var i=t.length-1;i>=0;i--)if(n(t[i]))return t[i];return Bridge.getDefaultValue(e)},findLastIndex:function(e,t,n,i){if(Bridge.hasValue(e),2===arguments.length?(i=t,t=e.length-1,n=e.length):3===arguments.length&&(i=n,n=t+1),Bridge.hasValue(i),0===e.length){if(-1!==t)throw new System.ArgumentOutOfRangeException.$ctor1("startIndex")}else if(t<0||t>=e.length)throw new System.ArgumentOutOfRangeException.$ctor1("startIndex");if(n<0||t-n+1<0)throw new System.ArgumentOutOfRangeException.$ctor1("count");for(var r=t-n,s=t;s>r;s--)if(i(e[s]))return s;return-1},forEach:function(e,t){Bridge.hasValue(e),Bridge.hasValue(t);for(var n=0;n<e.length;n++)t(e[n],n,e)},indexOfT:function(e,t,n,i){if(Bridge.hasValue(e),2===arguments.length?(n=0,i=e.length):3===arguments.length&&(i=e.length-n),n<0||n>=e.length&&e.length>0)throw new System.ArgumentOutOfRangeException.$ctor4("startIndex","out of range");if(i<0||i>e.length-n)throw new System.ArgumentOutOfRangeException.$ctor4("count","out of range");return System.Array.indexOf(e,t,n,i)},isFixedSize:function(e){return!!Bridge.isArray(e)||(null!=e.System$Collections$IList$isFixedSize?e.System$Collections$IList$isFixedSize:null!=e.System$Collections$IList$IsFixedSize?e.System$Collections$IList$IsFixedSize:null!=e.isFixedSize?e.isFixedSize:null==e.IsFixedSize||e.IsFixedSize)},isSynchronized:function(e){return!1},lastIndexOfT:function(e,t,n,i){if(Bridge.hasValue(e),2===arguments.length?(n=e.length-1,i=e.length):3===arguments.length&&(i=0===e.length?0:n+1),n<0||n>=e.length&&e.length>0)throw new System.ArgumentOutOfRangeException.$ctor4("startIndex","out of range");if(i<0||n-i+1<0)throw new System.ArgumentOutOfRangeException.$ctor4("count","out of range");for(var r=n-i+1,s=n;s>=r;s--){var a=e[s];if(a===t||System.Collections.Generic.EqualityComparer$1.$default.equals2(a,t))return s}return-1},syncRoot:function(e){return e},trueForAll:function(e,t){Bridge.hasValue(e),Bridge.hasValue(t);for(var n=0;n<e.length;n++)if(!t(e[n]))return!1;return!0},type:function(e,t,n){t=t||1;var i,r,s=System.Array.$cache[t];s||(s=[],System.Array.$cache[t]=s);for(var a=0;a<s.length;a++)if(s[a].$elementType===e){i=s[a];break}if(!i){r=Bridge.getTypeName(e)+"["+System.String.fromCharCount(44,t-1)+"]";var o=Bridge.Class.staticInitAllow;i=Bridge.define(r,{$inherits:[System.Array,System.Collections.ICollection,System.ICloneable,System.Collections.Generic.IList$1(e),System.Collections.Generic.IReadOnlyCollection$1(e)],$noRegister:!0,statics:{$elementType:e,$rank:t,$isArray:!0,$is:function(e){return System.Array.is(e,this)},getDefaultValue:function(){return null},createInstance:function(){var e;if(1===this.$rank)e=[];else{for(var t=[Bridge.getDefaultValue(this.$elementType),null,this.$elementType],n=0;n<this.$rank;n++)t.push(0);e=System.Array.create.apply(System.Array,t)}return e.$type=this,e}}}),s.push(i),Bridge.Class.staticInitAllow=!0,i.$staticInit&&i.$staticInit(),Bridge.Class.staticInitAllow=o}return n&&(n.$type=i),n||i},getLongLength:function(e){return System.Int64(e.length)}};$$sd("Z$.Array",{statics:Y}),System.Array.$cache={},$$sd("Z$.C$.vd$",{$kind:3}),$$sd("Z$.C$.wd$",{inherits:[Z$.C$.vd$],$kind:3}),$$sd("Z$.C$.xd$",{inherits:[Z$.C$.wd$],$kind:3}),$$sd("Z$.C$.yd$",{inherits:[Z$.C$.wd$],$kind:3}),$$sd("Z$.C$.w$.zd$",(function(e){return{inherits:[Z$.C$.vd$],$kind:3,$variance:[1]}})),$$sd("Z$.C$.w$.Ad$",(function(e){return{inherits:[Z$.C$.w$.zd$(e)],$kind:3}})),$$sd("Z$.C$.w$.Hd$",(function(e){return{$kind:3,$variance:[2]}})),$$sd("Z$.C$.w$.Bd$",(function(e,t){return{inherits:[Z$.C$.w$.Ad$(Z$.C$.w$.Cv$(e,t))],$kind:3}})),$$sd("Z$.C$.w$.Cd$",(function(e){return{inherits:[Z$.C$.w$.Ad$(e)],$kind:3}})),$$sd("Z$.C$.w$.Dd$",(function(e){return{inherits:[Z$.C$.w$.Ad$(e)],$kind:3}})),$$sd("Z$.C$.w$.Ed$",(function(e){return{inherits:[Z$.C$.w$.zd$(e)],$kind:3}})),$$sd("Z$.C$.w$.Fd$",(function(e){return{inherits:[Z$.C$.w$.Ed$(e)],$kind:3,$variance:[1]}})),$$sd("Z$.C$.w$.Gd$",(function(e,t){return{inherits:[Z$.C$.w$.Ed$(Z$.C$.w$.Cv$(e,t))],$kind:3}})),$$sd("Z$.String",{inherits:[Z$.jd$,Z$.ld$,Z$.C$.vd$,Z$.C$.w$.zd$(Z$.bu$)],statics:{$is:function(e){return"string"==typeof e},charCodeAt:function(e,t){t=t||0;var n,i,r=e.charCodeAt(t);if(55296<=r&&r<=56319){if(n=r,i=e.charCodeAt(t+1),isNaN(i))throw new Z$.fu$("High surrogate not followed by low surrogate");return 1024*(n-55296)+(i-56320)+65536}return!(56320<=r&&r<=57343)&&r},fromCharCode:function(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10),56320+(1023&e)):String.fromCharCode(e)},fJa$:function(e,t,n){if(t<0)throw new Z$.qu$.$ctor1("startIndex");if(n<0)throw new Z$.qu$.$ctor1("length");if(e.length-t<n)throw new Z$.qu$.$ctor1("startIndex");var i="";(t=t||0)+(n=Bridge.isNumber(n)?n:e.length)>e.length&&(n=e.length-t);for(var r=0;r<n;r++){var s=0|e[r+t];i+=String.fromCharCode(s)}return i},lastIndexOf:function(e,t,n,i,r){n=(n=n||e.length-1)<0?0:n,i=i||e.length;let s=-1;if((r=r||Z$.gf$.Yi$)===Z$.gf$.dj$||r===Z$.gf$.cj$)s=r===Z$.gf$.dj$?e.toLowerCase().lastIndexOf(t.toLowerCase(),n):e.lastIndexOf(t,n);else{let i="",a=!1;switch(r){case Z$.gf$.Zi$:i=Z$.f$.ov$.OGa$().name,a=!0;break;case Z$.gf$.Yi$:i=Z$.f$.ov$.OGa$().name;break;case Z$.gf$.bj$:i=Z$.f$.ov$.invariantCulture.name,a=!0;break;case Z$.gf$.aj$:i=Z$.f$.ov$.invariantCulture.name}let o=t.length;n=Math.min(n,e.length-o);for(let r=n;r>=0;r--){let n=e.substring(r,r+o);if(a){if(0===n.localeCompare(t,i,{sensitivity:"accent"})){s=r;break}}else if(0===n.localeCompare(t,i)){s=r;break}}}return-1===s?s:s<n-i+1?-1:s},gJa$:function(e,t,n,i){var r=e.length;if(!r)return-1;t=String.fromCharCode.apply(null,t);var s=(n=n||r-1)-(i=i||r)+1;s<0&&(s=0);for(var a=n;a>=s;a--)if(t.indexOf(e.charAt(a))>=0)return a;return-1},hJa$:function(e){return!e||Z$.bu$.OFa$(e)},iJa$:function(e){return!e},jJa$:function(e,t){if(t>=0)return Array(t+1).join(String.fromCharCode(e))+"";throw new Z$.qu$.$ctor4("count","cannot be less than zero")},B$:function(e,t){return Z$.String.lJa$(Z$.f$.ov$.OGa$(),e,Array.isArray(t)&&2==arguments.length?t:Array.prototype.slice.call(arguments,1))},kJa$:function(e,t,n){return Z$.String.lJa$(e,t,Array.isArray(n)&&3==arguments.length?n:Array.prototype.slice.call(arguments,2))},lJa$:function(e,t,n){var i=function(e){return e.split("").reverse().join("")};t=i(i(t.replace(/\{\{/g,(function(e){return""}))).replace(/\}\}/g,(function(e){return""})));var r=this,s=this.nJa$;return t=t.replace(/(\{+)((\d+|[a-zA-Z_$]\w+(?:\.[a-zA-Z_$]\w+|\[\d+\])*)(?:\,(-?\d*))?(?:\:([^\}]*))?)(\}+)|(\{+)|(\}+)/g,(function(t,i,a,o,l,c,u,h,d){return h?s(h):d?s(d):i.length%2==0||u.length%2==0?s(i)+a+s(u):s(i,!0)+r.mJa$(e,o,l,c,n)+s(u,!0)})),t.replace(/(\x01\x01)|(\x02\x02)/g,(function(e){return""==e?"{":""==e?"}":void 0}))},mJa$:function(e,t,n,i,r){var s;return t=parseInt(t,10),r.length,null==(s=r[t])&&(s=""),i&&s.$boxed&&s.type.$kind===Bridge.Typemarkers.Enum?s=Z$.ze$.B$(s.type,s.v,i):i&&s.$boxed&&s.type.format?s=s.type.format(Bridge.unbox(s,!0),i,e):i&&Bridge.is(s,Z$.IFormattable)&&(s=Bridge.format(Bridge.unbox(s,!0),i,e)),s=Bridge.isNumber(s)?Bridge.Int.B$(s,i,e):Bridge.isDate(s)?Z$.wv$.B$(s,i,e):""+Bridge.toString(s),n&&(n=parseInt(n,10),Bridge.isNumber(n)||(n=null)),Z$.String.oJa$(Bridge.toString(s),n)},nJa$:function(e,t){return e.substr(0,(e.length+(t?0:1))/2)},oJa$:function(e,t,n,i,r){if(null==e||!t)return e;if(n||(n=" "),Bridge.isNumber(n)&&(n=String.fromCharCode(n)),i||(i=t<0?1:2),t=Math.abs(t),r&&e.length>t&&(e=e.substring(0,t)),t+1>=e.length)switch(i){case 2:e=Array(t+1-e.length).join(n)+e;break;case 3:var s=t-e.length,a=Math.ceil(s/2);e=Array(s-a+1).join(n)+e+Array(a+1).join(n);break;default:e+=Array(t+1-e.length).join(n)}return e},startsWith:function(e,t){return!t.length||!(t.length>e.length)&&Z$.String.H$(e.slice(0,t.length),t,arguments[2])},endsWith:function(e,t){return!t.length||!(t.length>e.length)&&Z$.String.H$(e.slice(e.length-t.length,e.length),t,arguments[2])},pJa$:function(e,t){return null!=e&&e.indexOf(t)>-1},qJa$:function(e,t){if(null==e||""===e)return-1;var n=arguments.length>2?arguments[2]:0;if(n<0)throw new Z$.qu$.$ctor4("startIndex","startIndex cannot be less than zero");var i=e.length-n;if(arguments.length>3&&null!=arguments[3]&&(i=arguments[3]),i<0)throw new Z$.qu$.$ctor4("length","must be non-negative");if(i>e.length-n)throw new Z$.qu$.$ctor4("length","Index and length must refer to a location within the string");i=n+i,t=String.fromCharCode.apply(null,t);for(var r=n;r<i;r++)if(t.indexOf(e.charAt(r))>=0)return r;return-1},indexOf:function(e,t){if(null==e||""===e)return-1;var n=arguments.length>2?arguments[2]:0;if(n<0||n>e.length)throw new Z$.qu$.$ctor4("startIndex","startIndex cannot be less than zero and must refer to a location within the string");if(""===t)return arguments.length>2?n:0;var i=e.length-n;if(arguments.length>3&&null!=arguments[3]&&(i=arguments[3]),i<0)throw new Z$.qu$.$ctor4("length","must be non-negative");if(i>e.length-n)throw new Z$.qu$.$ctor4("length","Index and length must refer to a location within the string");var r=e.substr(n,i),s=5===arguments.length&&arguments[4]%2!=0?r.toLocaleUpperCase().indexOf(t.toLocaleUpperCase()):r.indexOf(t);return s>-1?5===arguments.length?0===Z$.String.sJa$(t,r.substr(s,t.length),arguments[4])?s+n:-1:s+n:-1},H$:function(){return 0===Z$.String.sJa$.apply(this,arguments)},rJa$:function(e){return e.replace(/\w/g,(function(e){return e===e.toLowerCase()?e.toUpperCase():e.toLowerCase()}))},sJa$:function(e,t){if(null==e)return null==t?0:-1;if(null==t)return 1;if(arguments.length>=3)if(Bridge.isBoolean(arguments[2])){if(arguments[2]&&(e=e.toLocaleUpperCase(),t=t.toLocaleUpperCase()),4===arguments.length)return e.localeCompare(t,arguments[3].name)}else switch(arguments[2]){case 1:return e.localeCompare(t,Z$.f$.ov$.OGa$().name,{sensitivity:"accent"});case 2:return e.localeCompare(t,Z$.f$.ov$.invariantCulture.name);case 3:return e.localeCompare(t,Z$.f$.ov$.invariantCulture.name,{sensitivity:"accent"});case 4:return e===t?0:e>t?1:-1;case 5:return e.toUpperCase()===t.toUpperCase()?0:e.toUpperCase()>t.toUpperCase()?1:-1}return e.localeCompare(t)},tJa$:function(e,t,n){if(t<0||t>e.length||t>e.length-n)throw new Z$.qu$.$ctor4("startIndex","startIndex cannot be less than zero and must refer to a location within the string");if(n<0)throw new Z$.qu$.$ctor4("length","must be non-negative");Bridge.hasValue(t)||(t=0),Bridge.hasValue(n)||(n=e.length);for(var i=[],r=t;r<t+n;r++)i.push(e.charCodeAt(r));return i},uJa$:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},replaceAll:function(e,t,n){var i=RegExp(Z$.String.uJa$(t),"g");return e.replace(i,n)},vJa$:function(e,t,n){return e>0?t.substring(0,e)+n+t.substring(e,t.length):n+t},wJa$:function(e,t,n){if(null==e)throw new Z$.Du$;if(t<0)throw new Z$.qu$.$ctor4("startIndex","StartIndex cannot be less than zero");if(null!=n){if(n<0)throw new Z$.qu$.$ctor4("count","Count cannot be less than zero");if(n>e.length-t)throw new Z$.qu$.$ctor4("count","Index and count must refer to a location within the string")}else if(t>=e.length)throw new Z$.qu$.$ctor4("startIndex","startIndex must be less than length of string");return null==n||t+n>e.length?e.substr(0,t):e.substr(0,t)+e.substr(t+n)},split:function(e,t,n,i){var r,s,a=Bridge.hasValue(t)&&0!==t.length?RegExp(t.map(Z$.String.uJa$).join("|"),"g"):/\s/g,o=[];for(s=0;;s=a.lastIndex){if(!(r=a.exec(e)))return 1===i&&s===e.length||o.push(e.substr(s)),o;if(1!==i||r.index>s){if(o.length===n-1)return o.push(e.substr(s)),o;o.push(e.substring(s,r.index))}}},trimEnd:function(e,t){return e.replace(t?RegExp("["+Z$.String.uJa$(String.fromCharCode.apply(null,t))+"]+$"):/\s*$/,"")},trimStart:function(e,t){return e.replace(t?RegExp("^["+Z$.String.uJa$(String.fromCharCode.apply(null,t))+"]+"):/^\s*/,"")},trim:function(e,t){return Z$.String.trimStart(Z$.String.trimEnd(e,t),t)},xJa$:function(e){return e.replace(RegExp("^[ 0+]+(?=.)"),"")},concat:function(e){for(var t=1==arguments.length&&Array.isArray(e)?e:[].slice.call(arguments),n="",i=0;i<t.length;i++)n+=null==t[i]?"":Bridge.toString(t[i]);return n},yJa$:function(e,t,n,i,r){if(r<0)throw new Z$.qu$.$ctor1("count");if(t<0)throw new Z$.qu$.$ctor1("sourceIndex");if(r>e.length-t)throw new Z$.qu$.$ctor1("sourceIndex");if(i>n.length-r||i<0)throw new Z$.qu$.$ctor1("destinationIndex");if(r>0)for(var s=0;s<r;s++)n[i+s]=e.charCodeAt(t+s)}}}),Bridge.Class.addExtend(System.String,[System.IComparable$1(System.String),System.IEquatable$1(System.String)]),$$sd("Z$.C$.w$.Cv$",(function(e,t){return{$kind:4,statics:{methods:{h$:function(){return new(Z$.C$.w$.Cv$(e,t))}}},fields:{d$:Bridge.getDefaultValue(e),e$:Bridge.getDefaultValue(t)},props:{f$:{get:function(){return this.d$}},g$:{get:function(){return this.e$}}},ctors:{init:function(){this.d$=Bridge.getDefaultValue(e),this.e$=Bridge.getDefaultValue(t)},$ctor1:function(e,t){this.$initialize(),this.d$=e,this.e$=t},ctor:function(){this.$initialize()}},methods:{toString:function(){e.append("["),null!=this.f$&&e.append(Bridge.toString(this.f$)),e.append(", "),null!=this.g$&&e.append(Bridge.toString(this.g$)),e.append("]")},a$:function(e,t){e.v=this.f$,t.v=this.g$},b$:function(){return Bridge.addHash([5072499452,this.d$,this.e$])},c$:function(n){return!!Bridge.is(n,Z$.C$.w$.Cv$(e,t))&&Bridge.equals(this.d$,n.key$1)&&Bridge.equals(this.e$,n.value$1)},$clone:function(e){return this}},overloads:{"ToString()":"toString"}}})),$$sd("Z$.C$.Id$",{$kind:3}),$$sd("Z$.C$.Jd$",{inherits:[Z$.C$.Id$],$kind:3}),$$sd("Z$.C$.Md$",{$kind:3}),$$sd("Z$.C$.Nd$",{$kind:3}),$$sdi("Z$.C$.w$.qd$",(function(e){return{inherits:[Z$.pd$,Z$.C$.Id$],$kind:3,$variance:[1]}})),$$sdi("Z$.C$.w$.Od$",(function(e){return{$kind:3,$variance:[2]}})),$$sd("Z$.C$.w$.m$",(function(e,t){return{inherits:[Z$.C$.w$.Bd$(e,t),Z$.C$.yd$,Z$.C$.w$.Gd$(e,t)],statics:{fields:{kLa$:0,lLa$:0,mLa$:null,nLa$:null},ctors:{},methods:{}},fields:{keys:null,values:null,ZJa$:0,aKa$:0,hd$:null,bKa$:null,cKa$:null},props:{},alias:["add","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$add","TKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$add","UKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$contains","VKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$remove","Cw$",["System$Collections$Generic$IReadOnlyCollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Count","eLa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Keys","fLa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Keys","gLa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Values","hLa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Values","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$IsReadOnly","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$IsReadOnly","BJa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$clear","YKa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$containsKey","YKa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$containsKey","ZKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$copyTo","aLa$","System$Collections$Generic$IEnumerable$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$GetEnumerator","zJa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$getItem","AJa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$setItem","zJa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$getItem","AJa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$setItem","bLa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$tryGetValue","bLa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$tryGetValue","wJa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$remove"],ctors:{},methods:{},overloads:{"Add(TKey, TValue)":"add","Remove(TKey)":"remove","Clear()":"clear","ContainsKey(TKey)":"containsKey","TryGetValue(TKey, TValue)":"tryGetValue"}}})),$$sd("Z$.C$.w$.m$.Kv$",(function(e,t){return{inherits:[Z$.C$.w$.qd$(Z$.C$.w$.Cv$(e,t)),Z$.C$.Jd$],$kind:1004,statics:{fields:{sLa$:0,QKa$:0},ctors:{},methods:{}},fields:{qLa$:null,key:Bridge.getDefaultValue(e),Fc$:Bridge.getDefaultValue(t),Dc$:0,aKa$:0,rLa$:0},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.m$.Lv$",(function(e,t){return{inherits:[Z$.C$.w$.Cd$(e),Z$.C$.wd$],$kind:1002,fields:{tLa$:null},props:{},alias:["Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","sGa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly","add","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","BJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","pJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","vJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$insert","zJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$getItem","AJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$setItem","IJa$",["System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"],"indexOf","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$indexOf","wJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove","tKa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$removeAt"],ctors:{},methods:{},overloads:{"Add(TKey)":"add","Clear()":"clear","Contains(TKey)":"contains","CopyTo(TKey[], int)":"copyTo","Insert(int, TKey)":"insert","IndexOf(TKey)":"indexOf","Remove(TKey)":"remove","RemoveAt(int)":"removeAt"}}})),$$sd("Z$.C$.w$.m$.Mv$",(function(e,t){return{inherits:[Z$.C$.w$.qd$(e),Z$.C$.Id$],$kind:1002,fields:{qLa$:null,Dc$:0,aKa$:0,uLa$:Bridge.getDefaultValue(e)},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.m$.Nv$",(function(e,t){return{inherits:[Z$.C$.w$.qd$(t),Z$.C$.Id$],$kind:1002,fields:{qLa$:null,Dc$:0,aKa$:0,vLa$:Bridge.getDefaultValue(t)},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(t)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.m$.Ov$",(function(e,t){return{inherits:[Z$.C$.w$.Cd$(t),Z$.C$.wd$],$kind:1002,fields:{tLa$:null},props:{},alias:["Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$Count","sGa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$IsReadOnly","add","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$add","BJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$clear","pJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$contains","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$copyTo","vJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(t)+"$insert","zJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(t)+"$getItem","AJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(t)+"$setItem","IJa$",["System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(t)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"],"indexOf","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(t)+"$indexOf","wJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$remove","tKa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(t)+"$removeAt"],ctors:{},methods:{},overloads:{"Add(TValue)":"add","Clear()":"clear","Contains(TValue)":"contains","CopyTo(TValue[], int)":"copyTo","Insert(int, TValue)":"insert","IndexOf(TValue)":"indexOf","Remove(TValue)":"remove","RemoveAt(int)":"removeAt"}}})),$$sd("Z$.C$.w$.n$",(function(e){return{inherits:[Z$.C$.w$.Dd$(e),Z$.C$.w$.Ad$(e),Z$.C$.wd$,Z$.C$.w$.Ed$(e)],statics:{fields:{DMa$:null,EMa$:null,FMa$:null,GMa$:null,HMa$:null,IMa$:null,JMa$:null,KMa$:null,LMa$:null,MMa$:null,NMa$:null,OMa$:null,PMa$:null,QMa$:0},ctors:{init:function(){this.DMa$="Comparer",this.EMa$="Count",this.FMa$="Items",this.GMa$="Version",this.HMa$="Tree",this.IMa$="Item",this.JMa$="EnumStarted",this.KMa$="Reverse",this.LMa$="EnumVersion",this.MMa$="Min",this.NMa$="Max",this.OMa$="lBoundActive",this.PMa$="uBoundActive",this.QMa$=100}},methods:{}},fields:{root:null,hd$:null,Gc$:0,aKa$:0},props:{},alias:["Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","iLa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly","add","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$add","ELa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","wJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove","BJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","pJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","JLa$","System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","TLa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$unionWith","ULa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$intersectWith","WLa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$exceptWith","XLa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$symmetricExceptWith","aMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$isSubsetOf","cMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$isProperSubsetOf","dMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$isSupersetOf","eMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$isProperSupersetOf","fMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$setEquals","gMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$overlaps"],ctors:{},methods:{},overloads:{"InOrderTreeWalk(TreeWalkPredicate<T>, bool)":"InOrderTreeWalk$1","Add(T)":"add","Remove(T)":"remove","Clear()":"clear","Contains(T)":"contains","CopyTo(T[], int)":"copyTo","CopyTo(T[], int, int)":"CopyTo$1","FindRange(T, T, bool, bool)":"FindRange$1","UnionWith(IEnumerable<T>)":"unionWith","IntersectWith(IEnumerable<T>)":"intersectWith","ExceptWith(IEnumerable<T>)":"exceptWith","SymmetricExceptWith(IEnumerable<T>)":"symmetricExceptWith","SymmetricExceptWithSameEC(ISet<T>)":"SymmetricExceptWithSameEC$1","IsSubsetOf(IEnumerable<T>)":"isSubsetOf","IsProperSubsetOf(IEnumerable<T>)":"isProperSubsetOf","IsSupersetOf(IEnumerable<T>)":"isSupersetOf","IsProperSupersetOf(IEnumerable<T>)":"isProperSupersetOf","SetEquals(IEnumerable<T>)":"setEquals","Overlaps(IEnumerable<T>)":"overlaps"}}})),$$sd("Z$.C$.w$.Qv$",(function(e){return{inherits:[Z$.C$.w$.Hd$(Z$.C$.w$.n$(e))],fields:{e$:null,f$:null},alias:["a$",["System$Collections$Generic$IEqualityComparer$1$System$Collections$Generic$SortedSet$1$"+Bridge.getTypeAlias(e)+"$equals2","System$Collections$Generic$IEqualityComparer$1$equals2"],"c$",["System$Collections$Generic$IEqualityComparer$1$System$Collections$Generic$SortedSet$1$"+Bridge.getTypeAlias(e)+"$getHashCode2","System$Collections$Generic$IEqualityComparer$1$getHashCode2"]],ctors:{},methods:{},overloads:{"Equals(SortedSet<T>, SortedSet<T>)":"equals2","Equals(Object)":"equals","GetHashCode(SortedSet<T>)":"getHashCode2","GetHashCode()":"getHashCode"}}})),$$sd("Z$.C$.w$.n$.Rv$",(function(e){return{$kind:1004,statics:{methods:{}},fields:{c$:0,d$:0},ctors:{},methods:{}}})),$$sd("Z$.C$.w$.n$.Sv$",(function(e){return{inherits:[Z$.C$.w$.qd$(e),Z$.C$.Id$],$kind:1004,statics:{fields:{ZMa$:null},ctors:{},methods:{}},fields:{tree:null,aKa$:0,XMa$:null,KKa$:null,reverse:!1},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.n$.Tv$",(function(e){return{$kind:1002,fields:{a$:!1,b$:Bridge.getDefaultValue(e),c$:null,d$:null},ctors:{}}})),$$sd("Z$.C$.w$.n$.Pv$",(function(e){return{inherits:[Z$.C$.w$.n$(e)],$kind:1002,fields:{SMa$:null,min:Bridge.getDefaultValue(e),max:Bridge.getDefaultValue(e),TMa$:!1,UMa$:!1},alias:["pJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","BJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear"],ctors:{},methods:{},overloads:{"Contains(T)":"contains","Clear()":"clear","InOrderTreeWalk(TreeWalkPredicate<T>, Boolean)":"InOrderTreeWalk$1"}}})),Bridge.ns("System.Collections.Generic.SortedSet$1.TreeSubSet",Q.$),Bridge.apply(Q.$.System.Collections.Generic.SortedSet$1.TreeSubSet,{f1:function(e){return this.count=this.count+1|0,!0}}),$$sd("Z$.C$.w$.o$",(function(e){return{inherits:[Z$.C$.w$.Ad$(e),Z$.C$.wd$,Z$.C$.w$.Ed$(e)],statics:{fields:{GMa$:null,EMa$:null,rNa$:null},ctors:{}},fields:{head:null,Gc$:0,aKa$:0},props:{},alias:["Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","iLa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly","ELa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","BJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","pJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","JLa$","System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","wJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove"],ctors:{},methods:{},overloads:{"AddAfter(LinkedListNode<T>, LinkedListNode<T>)":"AddAfter$1","AddBefore(LinkedListNode<T>, LinkedListNode<T>)":"AddBefore$1","AddFirst(LinkedListNode<T>)":"AddFirst$1","AddLast(LinkedListNode<T>)":"AddLast$1","Clear()":"clear","Contains(T)":"contains","CopyTo(T[], int)":"copyTo","Remove(T)":"remove"}}})),$$sd("Z$.C$.w$.Uv$",(function(e){return{fields:{b$:null,c$:null,d$:null,e$:Bridge.getDefaultValue(e)},props:{},ctors:{},methods:{}}})),$$sd("Z$.C$.w$.o$.Vv$",(function(e){return{inherits:[Z$.C$.w$.qd$(e),Z$.C$.Id$],$kind:1004,statics:{fields:{sNa$:null,tNa$:null,GMa$:null,uNa$:null},ctors:{},methods:{}},fields:{Ac$:null,node:null,aKa$:0,KKa$:Bridge.getDefaultValue(e),Dc$:0},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.r$",(function(e,t){return{inherits:[Z$.C$.w$.Bd$(e,t),Z$.C$.yd$,Z$.C$.w$.Gd$(e,t)],statics:{fields:{GMa$:null,ENa$:null,FNa$:null,DMa$:null},ctors:{init:function(){this.GMa$="Version",this.ENa$="HashSize",this.FNa$="KeyValuePairs",this.DMa$="Comparer"}},methods:{jLa$:function(t){return Bridge.is(t,e)}}},fields:{zNa$:null,ANa$:null,entries:null,Gc$:0,aKa$:0,BNa$:0,CNa$:0,hd$:null,keys:null,values:null,DNa$:!1},props:{dLa$:{get:function(){return this.hd$}},Cw$:{get:function(){return this.Gc$-this.CNa$|0}},Keys:{get:function(){return null==this.keys&&(this.keys=new(Z$.C$.w$.r$.p$(e,t))(this)),this.keys}},eLa$:{get:function(){return null==this.keys&&(this.keys=new(Z$.C$.w$.r$.p$(e,t))(this)),this.keys}},fLa$:{get:function(){return null==this.keys&&(this.keys=new(Z$.C$.w$.r$.p$(e,t))(this)),this.keys}},eKa$:{get:function(){return null==this.values&&(this.values=new(Z$.C$.w$.r$.q$(e,t))(this)),this.values}},gLa$:{get:function(){return null==this.values&&(this.values=new(Z$.C$.w$.r$.q$(e,t))(this)),this.values}},hLa$:{get:function(){return null==this.values&&(this.values=new(Z$.C$.w$.r$.q$(e,t))(this)),this.values}},iLa$:{get:function(){return!1}},nKa$:{get:function(){return!1}},oKa$:{get:function(){return null}},mKa$:{get:function(){return!1}},lKa$:{get:function(){return!1}},jKa$:{get:function(){return Bridge.cast(this.Keys,Z$.C$.ICollection)}},kKa$:{get:function(){return Bridge.cast(this.eKa$,Z$.C$.ICollection)}}},alias:["Cw$",["System$Collections$Generic$IReadOnlyCollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Count","eLa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Keys","fLa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Keys","gLa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Values","hLa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Values","zJa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$getItem","AJa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$setItem","zJa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$getItem","AJa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$setItem","add","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$add","TKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$add","UKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$contains","VKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$remove","BJa$","SJa$","BJa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$clear","YKa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$containsKey","YKa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$containsKey","aLa$","System$Collections$Generic$IEnumerable$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$GetEnumerator","wJa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$remove","bLa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$tryGetValue","bLa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$tryGetValue","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$IsReadOnly","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$IsReadOnly","ZKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$copyTo"],ctors:{ctor:function(){Z$.C$.w$.r$(e,t).$ctor5.call(this,0,null)},$ctor4:function(n){Z$.C$.w$.r$(e,t).$ctor5.call(this,n,null)},$ctor3:function(n){Z$.C$.w$.r$(e,t).$ctor5.call(this,0,n)},$ctor5:function(t,n){this.$initialize(),t>0&&this.jBa$(t),this.hd$=n||Z$.C$.w$.pw$(e).def,this.DNa$=(Bridge.referenceEquals(e,Z$.String)||!0===e.$number&&!Bridge.referenceEquals(e,Z$.Int64)&&!Bridge.referenceEquals(e,Z$.UInt64)||Bridge.referenceEquals(e,Z$.bu$))&&Bridge.referenceEquals(this.hd$,Z$.C$.w$.pw$(e).def)},$ctor1:function(n){Z$.C$.w$.r$(e,t).$ctor2.call(this,n,null)},$ctor2:function(n,i){var r;Z$.C$.w$.r$(e,t).$ctor5.call(this,null!=n?Z$.Array.getCount(n,Z$.C$.w$.Cv$(e,t)):0,i),r=Bridge.getEnumerator(n,Z$.C$.w$.Cv$(e,t));try{for(;r.moveNext();){var s=r.Current;this.add(s.key,s.value)}}finally{Bridge.is(r,Z$.IDisposable)&&r.System$IDisposable$Dispose()}}},methods:{zJa$:function(e){var t=this.vNa$(e);if(t>=0)return this.entries[Z$.Array.index(t,this.entries)].value},AJa$:function(e,t){this.eP$(e,t,!1)},WJa$:function(n){if(Z$.C$.w$.r$(e,t).IsCompatibleKey(n)){var i=this.vNa$(Bridge.cast(Bridge.unbox(n,e),e));if(i>=0)return this.entries[Z$.Array.index(i,this.entries)].value}return null},XJa$:function(n,i){try{var r=Bridge.cast(Bridge.unbox(n,e),e);try{this.AJa$(r,Bridge.cast(Bridge.unbox(i,t),t))}catch(e){if(e=Z$.fu$.create(e),!Bridge.is(e,Z$.xu$))throw e}}catch(e){if(e=Z$.fu$.create(e),!Bridge.is(e,Z$.xu$))throw e}},add:function(e,t){this.eP$(e,t,!0)},TKa$:function(e){this.add(e.key,e.value)},RJa$:function(n,i){try{var r=Bridge.cast(Bridge.unbox(n,e),e);try{this.add(r,Bridge.cast(Bridge.unbox(i,t),t))}catch(e){if(e=Z$.fu$.create(e),!Bridge.is(e,Z$.xu$))throw e}}catch(e){if(e=Z$.fu$.create(e),!Bridge.is(e,Z$.xu$))throw e}},UKa$:function(e){var n=this.vNa$(e.key);return!!(n>=0&&Z$.C$.w$.pw$(t).def.equals2(this.entries[Z$.Array.index(n,this.entries)].value,e.value))},TJa$:function(n){return!!Z$.C$.w$.r$(e,t).IsCompatibleKey(n)&&this.YKa$(Bridge.cast(Bridge.unbox(n,e),e))},VKa$:function(e){var n=this.vNa$(e.key);return!!(n>=0&&Z$.C$.w$.pw$(t).def.equals2(this.entries[Z$.Array.index(n,this.entries)].value,e.value))&&(this.wJa$(e.key),!0)},wJa$:function(n){if(this.DNa$){if(null!=this.ANa$&&this.ANa$.hasOwnProperty(n)){var i=this.ANa$[n];return delete this.ANa$[n],this.entries[Z$.Array.index(i,this.entries)].hashCode=-1,this.entries[Z$.Array.index(i,this.entries)].next=this.BNa$,this.entries[Z$.Array.index(i,this.entries)].key=Bridge.getDefaultValue(e),this.entries[Z$.Array.index(i,this.entries)].value=Bridge.getDefaultValue(t),this.BNa$=i,this.CNa$=this.CNa$+1|0,this.aKa$=this.aKa$+1|0,!0}}else if(null!=this.zNa$)for(var r=2147483647&this.hd$[Bridge.geti(this.hd$,"System$Collections$Generic$IEqualityComparer$1$"+Bridge.getTypeAlias(e)+"$getHashCode2","System$Collections$Generic$IEqualityComparer$1$getHashCode2")](n),s=r%this.zNa$.length,a=-1,o=this.zNa$[Z$.Array.index(s,this.zNa$)];o>=0;a=o,o=this.entries[Z$.Array.index(o,this.entries)].next)if(this.entries[Z$.Array.index(o,this.entries)].hashCode===r&&this.hd$[Bridge.geti(this.hd$,"System$Collections$Generic$IEqualityComparer$1$"+Bridge.getTypeAlias(e)+"$equals2","System$Collections$Generic$IEqualityComparer$1$equals2")](this.entries[Z$.Array.index(o,this.entries)].key,n))return a<0?this.zNa$[Z$.Array.index(s,this.zNa$)]=this.entries[Z$.Array.index(o,this.entries)].next:this.entries[Z$.Array.index(a,this.entries)].next=this.entries[Z$.Array.index(o,this.entries)].next,this.entries[Z$.Array.index(o,this.entries)].hashCode=-1,this.entries[Z$.Array.index(o,this.entries)].next=this.BNa$,this.entries[Z$.Array.index(o,this.entries)].key=Bridge.getDefaultValue(e),this.entries[Z$.Array.index(o,this.entries)].value=Bridge.getDefaultValue(t),this.BNa$=o,this.CNa$=this.CNa$+1|0,this.aKa$=this.aKa$+1|0,!0;return!1},YJa$:function(n){Z$.C$.w$.r$(e,t).IsCompatibleKey(n)&&this.wJa$(Bridge.cast(Bridge.unbox(n,e),e))},BJa$:function(){if(this.Gc$>0){for(var n=0;n<this.zNa$.length;n=n+1|0)this.zNa$[Z$.Array.index(n,this.zNa$)]=-1;this.DNa$&&(this.ANa$={}),Z$.Array.fill(this.entries,(function(){return Bridge.getDefaultValue(Z$.C$.w$.r$.bw$(e,t))}),0,this.Gc$),this.BNa$=-1,this.Gc$=0,this.CNa$=0,this.aKa$=this.aKa$+1|0}},YKa$:function(e){return this.vNa$(e)>=0},DJa$:function(e){if(null==e){for(var n=0;n<this.Gc$;n=n+1|0)if(this.entries[Z$.Array.index(n,this.entries)].hashCode>=0&&null==this.entries[Z$.Array.index(n,this.entries)].value)return!0}else for(var i=Z$.C$.w$.pw$(t).def,r=0;r<this.Gc$;r=r+1|0)if(this.entries[Z$.Array.index(r,this.entries)].hashCode>=0&&i.equals2(this.entries[Z$.Array.index(r,this.entries)].value,e))return!0;return!1},HLa$:function(n,i){i<0||n.length,n.length,this.Cw$;for(var r=this.Gc$,s=this.entries,a=0;a<r;a=a+1|0)s[Z$.Array.index(a,s)].hashCode>=0&&(n[Z$.Array.index(Bridge.identity(i,i=i+1|0),n)]=new(Z$.C$.w$.Cv$(e,t).$ctor1)(s[Z$.Array.index(a,s)].key,s[Z$.Array.index(a,s)].value))},ZKa$:function(e,t){this.HLa$(e,t)},UJa$:function(n,i){Z$.Array.getRank(n),Z$.Array.getLower(n,0),i<0||n.length,n.length,this.Cw$;var r=Bridge.as(n,Z$.Array.type(Z$.C$.w$.Cv$(e,t)));if(null!=r)this.HLa$(r,i);else if(Bridge.is(n,Z$.Array.type(Z$.C$.Dv$)))for(var s=this.entries,a=0;a<this.Gc$;a=a+1|0)s[Z$.Array.index(a,s)].hashCode;else{var o=Bridge.as(n,Z$.Array.type(Z$.Object));try{for(var l=this.Gc$,c=this.entries,u=0;u<l;u=u+1|0)c[Z$.Array.index(u,c)].hashCode>=0&&(o[Z$.Array.index(Bridge.identity(i,i=i+1|0),o)]=new(Z$.C$.w$.Cv$(e,t).$ctor1)(c[Z$.Array.index(u,c)].key,c[Z$.Array.index(u,c)].value))}catch(e){if(e=Z$.fu$.create(e),!Bridge.is(e,Z$.iu$))throw e}}},IJa$:function(){return new(Z$.C$.w$.r$.cw$(e,t).$ctor1)(this,Z$.C$.w$.r$.cw$(e,t).KeyValuePair)},aLa$:function(){return new(Z$.C$.w$.r$.cw$(e,t).$ctor1)(this,Z$.C$.w$.r$.cw$(e,t).KeyValuePair).$clone()},HJa$:function(){return new(Z$.C$.w$.r$.cw$(e,t).$ctor1)(this,Z$.C$.w$.r$.cw$(e,t).KeyValuePair).$clone()},VJa$:function(){return new(Z$.C$.w$.r$.cw$(e,t).$ctor1)(this,Z$.C$.w$.r$.cw$(e,t).DictEntry).$clone()},vNa$:function(t){if(this.DNa$){if(null!=this.ANa$&&this.ANa$.hasOwnProperty(t))return this.ANa$[t]}else if(null!=this.zNa$)for(var n=2147483647&this.hd$[Bridge.geti(this.hd$,"System$Collections$Generic$IEqualityComparer$1$"+Bridge.getTypeAlias(e)+"$getHashCode2","System$Collections$Generic$IEqualityComparer$1$getHashCode2")](t),i=this.zNa$[Z$.Array.index(n%this.zNa$.length,this.zNa$)];i>=0;i=this.entries[Z$.Array.index(i,this.entries)].next)if(this.entries[Z$.Array.index(i,this.entries)].hashCode===n&&this.hd$[Bridge.geti(this.hd$,"System$Collections$Generic$IEqualityComparer$1$"+Bridge.getTypeAlias(e)+"$equals2","System$Collections$Generic$IEqualityComparer$1$equals2")](this.entries[Z$.Array.index(i,this.entries)].key,t))return i;return-1},jBa$:function(n){var i=Z$.C$.Dy$.c$(n);this.zNa$=Z$.Array.init(i,0,Z$.Int32);for(var r=0;r<this.zNa$.length;r=r+1|0)this.zNa$[Z$.Array.index(r,this.zNa$)]=-1;this.entries=Z$.Array.init(i,(function(){return new(Z$.C$.w$.r$.bw$(e,t))}),Z$.C$.w$.r$.bw$(e,t)),this.BNa$=-1,this.ANa$={}},eP$:function(t,n,i){var r;if(null==this.zNa$&&this.jBa$(0),this.DNa$)return this.ANa$.hasOwnProperty(t)?(this.entries[Z$.Array.index(this.ANa$[t],this.entries)].value=n,void(this.aKa$=this.aKa$+1|0)):(this.CNa$>0?(r=this.BNa$,this.BNa$=this.entries[Z$.Array.index(r,this.entries)].next,this.CNa$=this.CNa$-1|0):(this.Gc$===this.entries.length&&this.wNa$(),r=this.Gc$,this.Gc$=this.Gc$+1|0),this.entries[Z$.Array.index(r,this.entries)].hashCode=1,this.entries[Z$.Array.index(r,this.entries)].next=-1,this.entries[Z$.Array.index(r,this.entries)].key=t,this.entries[Z$.Array.index(r,this.entries)].value=n,this.ANa$[t]=r,void(this.aKa$=this.aKa$+1|0));for(var s,a=2147483647&this.hd$[Bridge.geti(this.hd$,"System$Collections$Generic$IEqualityComparer$1$"+Bridge.getTypeAlias(e)+"$getHashCode2","System$Collections$Generic$IEqualityComparer$1$getHashCode2")](t),o=a%this.zNa$.length,l=this.zNa$[Z$.Array.index(o,this.zNa$)];l>=0;l=this.entries[Z$.Array.index(l,this.entries)].next)if(this.entries[Z$.Array.index(l,this.entries)].hashCode===a&&this.hd$[Bridge.geti(this.hd$,"System$Collections$Generic$IEqualityComparer$1$"+Bridge.getTypeAlias(e)+"$equals2","System$Collections$Generic$IEqualityComparer$1$equals2")](this.entries[Z$.Array.index(l,this.entries)].key,t))return this.entries[Z$.Array.index(l,this.entries)].value=n,void(this.aKa$=this.aKa$+1|0);this.CNa$>0?(s=this.BNa$,this.BNa$=this.entries[Z$.Array.index(s,this.entries)].next,this.CNa$=this.CNa$-1|0):(this.Gc$===this.entries.length&&(this.wNa$(),o=a%this.zNa$.length),s=this.Gc$,this.Gc$=this.Gc$+1|0),this.entries[Z$.Array.index(s,this.entries)].hashCode=a,this.entries[Z$.Array.index(s,this.entries)].next=this.zNa$[Z$.Array.index(o,this.zNa$)],this.entries[Z$.Array.index(s,this.entries)].key=t,this.entries[Z$.Array.index(s,this.entries)].value=n,this.zNa$[Z$.Array.index(o,this.zNa$)]=s,this.aKa$=this.aKa$+1|0},wNa$:function(){this.xNa$(Z$.C$.Dy$.e$(this.Gc$),!1)},xNa$:function(n,i){for(var r=Z$.Array.init(n,0,Z$.Int32),s=0;s<r.length;s=s+1|0)r[Z$.Array.index(s,r)]=-1;this.DNa$&&(this.ANa$={});var a=Z$.Array.init(n,(function(){return new(Z$.C$.w$.r$.bw$(e,t))}),Z$.C$.w$.r$.bw$(e,t));if(Z$.Array.copy(this.entries,0,a,0,this.Gc$),i)for(var o=0;o<this.Gc$;o=o+1|0)-1!==a[Z$.Array.index(o,a)].hashCode&&(a[Z$.Array.index(o,a)].hashCode=2147483647&this.hd$[Bridge.geti(this.hd$,"System$Collections$Generic$IEqualityComparer$1$"+Bridge.getTypeAlias(e)+"$getHashCode2","System$Collections$Generic$IEqualityComparer$1$getHashCode2")](a[Z$.Array.index(o,a)].key));for(var l=0;l<this.Gc$;l=l+1|0)if(a[Z$.Array.index(l,a)].hashCode>=0)if(this.DNa$)a[Z$.Array.index(l,a)].next=-1,this.ANa$[a[Z$.Array.index(l,a)].key]=l;else{var c=a[Z$.Array.index(l,a)].hashCode%n;a[Z$.Array.index(l,a)].next=r[Z$.Array.index(c,r)],r[Z$.Array.index(c,r)]=l}this.zNa$=r,this.entries=a},bLa$:function(e,n){var i=this.vNa$(e);return i>=0?(n.v=this.entries[Z$.Array.index(i,this.entries)].value,!0):(n.v=Bridge.getDefaultValue(t),!1)},yNa$:function(e){var n=this.vNa$(e);return n>=0?this.entries[Z$.Array.index(n,this.entries)].value:Bridge.getDefaultValue(t)}},overloads:{"Add(TKey, TValue)":"add","Remove(TKey)":"remove","Clear()":"clear","ContainsKey(TKey)":"containsKey","Resize(int, bool)":"Resize$1","TryGetValue(TKey, TValue)":"tryGetValue"}}})),$$sd("Z$.C$.w$.r$.bw$",(function(e,t){return{$kind:1004,statics:{methods:{}},fields:{c$:0,d$:0,e$:Bridge.getDefaultValue(e),f$:Bridge.getDefaultValue(t)},ctors:{init:function(){this.e$=Bridge.getDefaultValue(e),this.f$=Bridge.getDefaultValue(t)},ctor:function(){this.$initialize()}},methods:{}}})),$$sd("Z$.C$.w$.r$.cw$",(function(e,t){return{inherits:[Z$.C$.w$.qd$(Z$.C$.w$.Cv$(e,t)),Z$.C$.Jd$],$kind:1004,statics:{fields:{QKa$:0,sLa$:0},ctors:{init:function(){this.QKa$=1,this.sLa$=2}},methods:{}},fields:{wc$:null,aKa$:0,Dc$:0,KKa$:null,rLa$:0},props:{Fh$:{get:function(){return this.KKa$}}},alias:["GKa$","IKa$","Fh$",["System$Collections$Generic$IEnumerator$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"],"oLa$","pLa$"],ctors:{init:function(){this.KKa$=new(Z$.C$.w$.Cv$(e,t))},$ctor1:function(n,i){this.$initialize(),this.wc$=n,this.aKa$=n.version,this.Dc$=0,this.rLa$=i,this.KKa$=new(Z$.C$.w$.Cv$(e,t).ctor)}},methods:{GKa$:function(){var n,i,r;for(this.aKa$,this.wc$.version;this.Dc$>>>0<this.wc$.count>>>0;){if((n=this.wc$.entries)[Z$.Array.index(this.Dc$,n)].hashCode>=0)return this.KKa$=new(Z$.C$.w$.Cv$(e,t).$ctor1)((i=this.wc$.entries)[Z$.Array.index(this.Dc$,i)].key,(r=this.wc$.entries)[Z$.Array.index(this.Dc$,r)].value),this.Dc$=this.Dc$+1|0,!0;this.Dc$=this.Dc$+1|0}return this.Dc$=this.wc$.count+1|0,this.KKa$=new(Z$.C$.w$.Cv$(e,t).ctor),!1},oLa$:function(){}},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.r$.p$",(function(e,t){return{inherits:[Z$.C$.w$.Ad$(e),Z$.C$.wd$,Z$.C$.w$.Ed$(e)],$kind:1002,fields:{wc$:null},props:{},alias:["yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","iLa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly","ELa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","GNa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","HNa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","INa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove","JLa$","System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator"],ctors:{},methods:{},overloads:{"CopyTo(TKey[], int)":"copyTo"}}})),$$sd("Z$.C$.w$.r$.p$.dw$",(function(e,t){return{inherits:[Z$.C$.w$.qd$(e),Z$.C$.Id$],$kind:1004,statics:{methods:{}},fields:{wc$:null,Dc$:0,aKa$:0,uLa$:Bridge.getDefaultValue(e)},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.r$.q$",(function(e,t){return{inherits:[Z$.C$.w$.Ad$(t),Z$.C$.wd$,Z$.C$.w$.Ed$(t)],$kind:1002,fields:{wc$:null},props:{},alias:["yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$copyTo","Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(t)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$Count","iLa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$IsReadOnly","ELa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$add","INa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$remove","GNa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$clear","HNa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$contains","JLa$","System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(t)+"$GetEnumerator"],ctors:{},methods:{},overloads:{"CopyTo(TValue[], int)":"copyTo"}}})),$$sd("Z$.C$.w$.r$.q$.ew$",(function(e,t){return{inherits:[Z$.C$.w$.qd$(t),Z$.C$.Id$],$kind:1004,statics:{methods:{NFa$:function(){return new(Z$.C$.w$.r$.q$.ew$(e,t))}}},fields:{wc$:null,Dc$:0,aKa$:0,vLa$:Bridge.getDefaultValue(t)},props:{Fh$:{get:function(){return this.vLa$}},OKa$:{get:function(){return 0===this.Dc$||(this.Dc$,this.wc$.count),this.vLa$}}},alias:["oLa$","pLa$","GKa$","IKa$","Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(t)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{init:function(){this.vLa$=Bridge.getDefaultValue(t)},$ctor1:function(e){this.$initialize(),this.wc$=e,this.aKa$=e.version,this.Dc$=0,this.vLa$=Bridge.getDefaultValue(t)},ctor:function(){this.$initialize()}},methods:{oLa$:function(){},GKa$:function(){var e,n;for(this.aKa$,this.wc$.version;this.Dc$>>>0<this.wc$.count>>>0;){if((e=this.wc$.entries)[Z$.Array.index(this.Dc$,e)].hashCode>=0)return this.vLa$=(n=this.wc$.entries)[Z$.Array.index(this.Dc$,n)].value,this.Dc$=this.Dc$+1|0,!0;this.Dc$=this.Dc$+1|0}return this.Dc$=this.wc$.count+1|0,this.vLa$=Bridge.getDefaultValue(t),!1},JKa$:function(){this.aKa$,this.wc$.version,this.Dc$=0,this.vLa$=Bridge.getDefaultValue(t)},dGa$:function(){return Bridge.addHash([3788985113,this.wc$,this.Dc$,this.aKa$,this.vLa$])},H$:function(n){return!!Bridge.is(n,Z$.C$.w$.r$.q$.ew$(e,t))&&Bridge.equals(this.wc$,n.dictionary)&&Bridge.equals(this.Dc$,n.index)&&Bridge.equals(this.aKa$,n.version)&&Bridge.equals(this.vLa$,n.currentValue)},$clone:function(n){var i=n||new(Z$.C$.w$.r$.q$.ew$(e,t));return i.dictionary=this.wc$,i.index=this.Dc$,i.version=this.aKa$,i.currentValue=this.vLa$,i}},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.z$.y$",(function(e,t){return{inherits:[Z$.C$.w$.Bd$(e,t),Z$.C$.yd$,Z$.C$.w$.Gd$(e,t)],statics:{fields:{te$:null},ctors:{},methods:{}},fields:{ONa$:null,PNa$:null,QNa$:null},props:{},alias:["YKa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$containsKey","YKa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$containsKey","eLa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Keys","bLa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$tryGetValue","bLa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$tryGetValue","gLa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Values","zJa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$getItem","LNa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$add","MNa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$remove","JNa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$getItem","KNa$","System$Collections$Generic$IDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$setItem","Cw$",["System$Collections$Generic$IReadOnlyCollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Count","UKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$contains","ZKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$copyTo","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$IsReadOnly","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$IsReadOnly","TKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$add","NNa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$clear","VKa$","System$Collections$Generic$ICollection$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$remove","IJa$",["System$Collections$Generic$IEnumerable$1$System$Collections$Generic$KeyValuePair$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"],"fLa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Keys","hLa$","System$Collections$Generic$IReadOnlyDictionary$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$Values"],ctors:{},methods:{},overloads:{"ContainsKey(TKey)":"containsKey","TryGetValue(TKey, TValue)":"tryGetValue"}}})),$$sd("Z$.C$.z$.y$.fw$",(function(e,t){return{inherits:[Z$.C$.Jd$],$kind:1004,statics:{methods:{}},fields:{SNa$:null,TNa$:null},props:{},alias:["Jsa$","NKa$","Key","MKa$","zya$","PKa$","Fh$","OKa$"],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext","Reset()":"reset"}}})),$$sd("Z$.C$.z$.y$.gw$",(function(e,t){return{inherits:[Z$.C$.w$.Ad$(e),Z$.C$.wd$,Z$.C$.w$.Ed$(e)],$kind:1002,fields:{UNa$:null},props:{},alias:["ELa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","GNa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","HNa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","iLa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly","INa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove","IJa$",["System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"]],ctors:{},methods:{},overloads:{"CopyTo(TKey[], int)":"copyTo"}}})),$$sd("Z$.C$.z$.y$.hw$",(function(e,t){return{inherits:[Z$.C$.w$.Ad$(t),Z$.C$.wd$,Z$.C$.w$.Ed$(t)],$kind:1002,fields:{UNa$:null},props:{},alias:["ELa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$add","GNa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$clear","HNa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$contains","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$copyTo","Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(t)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$Count","iLa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$IsReadOnly","INa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(t)+"$remove","IJa$",["System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(t)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"]],ctors:{},methods:{},overloads:{"CopyTo(TValue[], int)":"copyTo"}}})),$$sd("Bridge.nw$",{inherits:[Z$.C$.Id$,Z$.pd$],statics:{ZNa$:!0},config:{properties:{Fh$:{get:function(){return this.VNa$()}},YNa$:{}},alias:["VNa$","XNa$","GKa$","IKa$","HKa$","JKa$","oLa$","pLa$","Fh$","OKa$"]},ctor:function(e,t){this.$initialize(),this.array=e,this.HKa$(),t&&(this["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(t)+"$getCurrent$1"]=this.VNa$,this.System$Collections$Generic$IEnumerator$1$getCurrent$1=this.VNa$,Object.defineProperty(this,"System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(t)+"$Current$1",{get:this.VNa$,enumerable:!0}),Object.defineProperty(this,"System$Collections$Generic$IEnumerator$1$Current$1",{get:this.VNa$,enumerable:!0}))},GKa$:function(){return this.index++,this.index<this.array.length},VNa$:function(){return this.array[this.index]},HKa$:function(){this.index=-1},oLa$:Bridge.emptyFn}),$$sd("Z$.C$.w$.pw$",(function(e){return{inherits:[Z$.C$.w$.Hd$(e)],statics:{config:{init:function(){this.def=new(System.Collections.Generic.EqualityComparer$1(e))}}},config:{alias:["a$",["System$Collections$Generic$IEqualityComparer$1$"+Bridge.getTypeAlias(e)+"$equals2","System$Collections$Generic$IEqualityComparer$1$equals2"],"c$",["System$Collections$Generic$IEqualityComparer$1$"+Bridge.getTypeAlias(e)+"$getHashCode2","System$Collections$Generic$IEqualityComparer$1$getHashCode2"]]},a$:function(e,t){if(!Bridge.isDefined(e,!0))return!Bridge.isDefined(t,!0);if(Bridge.isDefined(t,!0)){var n=e&&e.$$name;return Bridge.isFunction(e)&&Bridge.isFunction(t)?Bridge.fn.equals.call(e,t):!n||e&&e.$boxed||t&&t.$boxed?Bridge.equals(e,t):Bridge.isFunction(e.equalsT)?Bridge.equalsT(e,t):Bridge.isFunction(e.equals)?Bridge.equals(e,t):e===t}return!1},c$:function(e){return Bridge.isDefined(e,!0)?Bridge.getHashCode(e):0}}})),System.Collections.Generic.EqualityComparer$1.$default=new(System.Collections.Generic.EqualityComparer$1(System.Object)),$$sd("Z$.C$.w$.qw$",(function(e){return{inherits:[Z$.C$.w$.Od$(e)],ctor:function(t){this.$initialize(),this.fn=t,this.compare=t,this["System$Collections$Generic$IComparer$1$"+Bridge.getTypeAlias(e)+"$compare"]=t,this.System$Collections$Generic$IComparer$1$compare=t}}})),System.Collections.Generic.Comparer$1.$default=new(System.Collections.Generic.Comparer$1(System.Object))((function(e,t){return Bridge.hasValue(e)?Bridge.hasValue(t)?Bridge.compare(e,t):1:Bridge.hasValue(t)?-1:0})),System.Collections.Generic.Comparer$1.get=function(e,t){var n;return t&&(n=e["System$Collections$Generic$IComparer$1$"+Bridge.getTypeAlias(t)+"$compare"])||(n=e.System$Collections$Generic$IComparer$1$compare)?n.bind(e):e.compare.bind(e)},System.Collections.Generic.Dictionary$2.getTypeParameters=function(e){var t;if(System.String.startsWith(e.$$name,"System.Collections.Generic.IDictionary"))t=e;else for(var n=Bridge.Reflection.getInterfaces(e),i=0;i<n.length;i++)if(System.String.startsWith(n[i].$$name,"System.Collections.Generic.IDictionary")){t=n[i];break}var r=t?Bridge.Reflection.getGenericArguments(t):null;return[r?r[0]:null,r?r[1]:null]},$$sd("Z$.C$.w$.t$",(function(e){return{inherits:[Z$.C$.w$.Cd$(e),Z$.C$.xd$,Z$.C$.w$.Fd$(e)],statics:{fields:{kLa$:0,GOa$:null},ctors:{init:function(){this.kLa$=4,this.GOa$=Z$.Array.init(0,(function(){return Bridge.getDefaultValue(e)}),e)}},methods:{FOa$:function(t){return Bridge.is(t,e)||null==t&&null==Bridge.getDefaultValue(e)}}},fields:{DOa$:null,ZJa$:0,EOa$:0},props:{dKa$:{get:function(){return this.DOa$.length},set:function(t){if(t<this.ZJa$)throw new Z$.qu$.$ctor1("value");if(t!==this.DOa$.length)if(t>0){var n=Z$.Array.init(t,(function(){return Bridge.getDefaultValue(e)}),e);this.ZJa$>0&&Z$.Array.copy(this.DOa$,0,n,0,this.ZJa$),this.DOa$=n}else this.DOa$=Z$.C$.w$.t$(e)._emptyArray}},Cw$:{get:function(){return this.ZJa$}},FKa$:{get:function(){return!1}},iLa$:{get:function(){return!1}},EKa$:{get:function(){return!1}},nKa$:{get:function(){return!1}},oKa$:{get:function(){return this}}},alias:["Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","iLa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly","zJa$",["System$Collections$Generic$IReadOnlyList$1$"+Bridge.getTypeAlias(e)+"$getItem","System$Collections$Generic$IReadOnlyList$1$getItem"],"AJa$",["System$Collections$Generic$IReadOnlyList$1$"+Bridge.getTypeAlias(e)+"$setItem","System$Collections$Generic$IReadOnlyList$1$setItem"],"zJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$getItem","AJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$setItem","add","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","BJa$","vKa$","BJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","pJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","JLa$","System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","indexOf","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$indexOf","vJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$insert","wJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove","tKa$","CKa$","tKa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$removeAt"],ctors:{ctor:function(){this.$initialize(),this.DOa$=Z$.C$.w$.t$(e)._emptyArray},$ctor2:function(t){if(this.$initialize(),t<0)throw new Z$.qu$.$ctor1("capacity");this.DOa$=0===t?Z$.C$.w$.t$(e)._emptyArray:Z$.Array.init(t,(function(){return Bridge.getDefaultValue(e)}),e)},$ctor1:function(t){this.$initialize();var n=Bridge.as(t,Z$.C$.w$.ICollection$1(e));if(null!=n){var i=Z$.Array.getCount(n,e);0===i?this.DOa$=Z$.C$.w$.t$(e)._emptyArray:(this.DOa$=Z$.Array.init(i,(function(){return Bridge.getDefaultValue(e)}),e),Z$.Array.copyTo(n,this.DOa$,0,e),this.ZJa$=i)}else{this.ZJa$=0,this.DOa$=Z$.C$.w$.t$(e)._emptyArray;var r=Bridge.getEnumerator(t,e);try{for(;r.System$Collections$IEnumerator$moveNext();)this.add(r[Bridge.geti(r,"System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1")])}finally{Bridge.hasValue(r)&&r.System$IDisposable$Dispose()}}}},methods:{zJa$:function(e){if(e>>>0>=this.ZJa$>>>0)throw new Z$.qu$.ctor;return this.DOa$[Z$.Array.index(e,this.DOa$)]},AJa$:function(e,t){if(e>>>0>=this.ZJa$>>>0)throw new Z$.qu$.ctor;this.DOa$[Z$.Array.index(e,this.DOa$)]=t,this.EOa$=this.EOa$+1|0},yKa$:function(e){return this.zJa$(e)},zKa$:function(t,n){null==n&&Bridge.getDefaultValue(e);try{this.AJa$(t,Bridge.cast(Bridge.unbox(n,e),e))}catch(e){throw e=Z$.fu$.create(e),Bridge.is(e,Z$.xu$)?new Z$.ou$.$ctor1("value"):e}},add:function(e){this.ZJa$===this.DOa$.length&&this.FJa$(this.ZJa$+1|0),this.DOa$[Z$.Array.index(Bridge.identity(this.ZJa$,this.ZJa$=this.ZJa$+1|0),this.DOa$)]=e,this.EOa$=this.EOa$+1|0},uKa$:function(t){null==t&&Bridge.getDefaultValue(e);try{this.add(Bridge.cast(Bridge.unbox(t,e),e))}catch(e){throw e=Z$.fu$.create(e),Bridge.is(e,Z$.xu$)?new Z$.ou$.$ctor1("item"):e}return this.Cw$-1|0},aOa$:function(e){this.rOa$(this.ZJa$,e)},bOa$:function(){return new(Z$.C$.z$.Gy$(e))(this)},cOa$:function(e,t,n,i){if(e<0)throw new Z$.qu$.$ctor1("index");if(t<0)throw new Z$.qu$.$ctor1("count");if((this.ZJa$-e|0)<t)throw new Z$.ou$.ctor;return Z$.Array.binarySearch(this.DOa$,e,t,n,i)},dOa$:function(e){return this.cOa$(0,this.Cw$,e,null)},eOa$:function(e,t){return this.cOa$(0,this.Cw$,e,t)},BJa$:function(){this.ZJa$>0&&(Z$.Array.fill(this.DOa$,(function(){return Bridge.getDefaultValue(e)}),0,this.ZJa$),this.ZJa$=0),this.EOa$=this.EOa$+1|0},pJa$:function(t){if(null==t){for(var n=0;n<this.ZJa$;n=n+1|0)if(null==this.DOa$[Z$.Array.index(n,this.DOa$)])return!0;return!1}for(var i=Z$.C$.w$.pw$(e).def,r=0;r<this.ZJa$;r=r+1|0)if(i.equals2(this.DOa$[Z$.Array.index(r,this.DOa$)],t))return!0;return!1},wKa$:function(t){return!!Z$.C$.w$.t$(e).IsCompatibleObject(t)&&this.pJa$(Bridge.cast(Bridge.unbox(t,e),e))},fOa$:function(e,t){Bridge.staticEquals(t,null);for(var n=new(Z$.C$.w$.t$(e).$ctor2)(this.ZJa$),i=0;i<this.ZJa$;i=i+1|0)n._items[Z$.Array.index(i,n._items)]=t(this.DOa$[Z$.Array.index(i,this.DOa$)]);return n._size=this.ZJa$,n},HLa$:function(e){this.yJa$(e,0)},UJa$:function(e,t){if(null!=e&&1!==Z$.Array.getRank(e))throw new Z$.ou$.$ctor1("array");Z$.Array.copy(this.DOa$,0,e,t,this.ZJa$)},ILa$:function(e,t,n,i){if((this.ZJa$-e|0)<i)throw new Z$.ou$.ctor;Z$.Array.copy(this.DOa$,e,t,n,i)},yJa$:function(e,t){Z$.Array.copy(this.DOa$,0,e,t,this.ZJa$)},FJa$:function(t){if(this.DOa$.length<t){var n=0===this.DOa$.length?Z$.C$.w$.t$(e)._defaultCapacity:Bridge.Int.mul(this.DOa$.length,2);n>>>0>2146435071&&(n=2146435071),n<t&&(n=t),this.dKa$=n}},Lv$:function(e){return-1!==this.hOa$(e)},Find:function(t){Bridge.staticEquals(t,null);for(var n=0;n<this.ZJa$;n=n+1|0)if(t(this.DOa$[Z$.Array.index(n,this.DOa$)]))return this.DOa$[Z$.Array.index(n,this.DOa$)];return Bridge.getDefaultValue(e)},gOa$:function(t){Bridge.staticEquals(t,null);for(var n=new(Z$.C$.w$.t$(e).ctor),i=0;i<this.ZJa$;i=i+1|0)t(this.DOa$[Z$.Array.index(i,this.DOa$)])&&n.add(this.DOa$[Z$.Array.index(i,this.DOa$)]);return n},hOa$:function(e){return this.jOa$(0,this.ZJa$,e)},iOa$:function(e,t){return this.jOa$(e,this.ZJa$-e|0,t)},jOa$:function(e,t,n){if(e>>>0>this.ZJa$>>>0)throw new Z$.qu$.$ctor1("startIndex");if(t<0||e>(this.ZJa$-t|0))throw new Z$.qu$.$ctor1("count");Bridge.staticEquals(n,null);for(var i=e+t|0,r=e;r<i;r=r+1|0)if(n(this.DOa$[Z$.Array.index(r,this.DOa$)]))return r;return-1},iNa$:function(t){Bridge.staticEquals(t,null);for(var n=this.ZJa$-1|0;n>=0;n=n-1|0)if(t(this.DOa$[Z$.Array.index(n,this.DOa$)]))return this.DOa$[Z$.Array.index(n,this.DOa$)];return Bridge.getDefaultValue(e)},kOa$:function(e){return this.mOa$(this.ZJa$-1|0,this.ZJa$,e)},lOa$:function(e,t){return this.mOa$(e,e+1|0,t)},mOa$:function(e,t,n){if(Bridge.staticEquals(n,null),0===this.ZJa$){if(-1!==e)throw new Z$.qu$.$ctor1("startIndex")}else if(e>>>0>=this.ZJa$>>>0)throw new Z$.qu$.$ctor1("startIndex");if(t<0||(1+(e-t|0)|0)<0)throw new Z$.qu$.$ctor1("count");for(var i=e-t|0,r=e;r>i;r=r-1|0)if(n(this.DOa$[Z$.Array.index(r,this.DOa$)]))return r;return-1},nOa$:function(e){Bridge.staticEquals(e,null);for(var t=this.EOa$,n=0;n<this.ZJa$&&t===this.EOa$;n=n+1|0)e(this.DOa$[Z$.Array.index(n,this.DOa$)]);this.EOa$},IJa$:function(){return new(Z$.C$.w$.t$.yy$(e).$ctor1)(this)},JLa$:function(){return new(Z$.C$.w$.t$.yy$(e).$ctor1)(this).$clone()},HJa$:function(){return new(Z$.C$.w$.t$.yy$(e).$ctor1)(this).$clone()},oOa$:function(t,n){if(t<0)throw new Z$.qu$.$ctor1("index");if(n<0)throw new Z$.qu$.$ctor1("count");if((this.ZJa$-t|0)<n)throw new Z$.ou$.ctor;var i=new(Z$.C$.w$.t$(e).$ctor2)(n);return Z$.Array.copy(this.DOa$,t,i._items,0,n),i._size=n,i},indexOf:function(e){return Z$.Array.indexOfT(this.DOa$,e,0,this.ZJa$)},AKa$:function(t){return Z$.C$.w$.t$(e).IsCompatibleObject(t)?this.indexOf(Bridge.cast(Bridge.unbox(t,e),e)):-1},pOa$:function(e,t){if(t>this.ZJa$)throw new Z$.qu$.$ctor1("index");return Z$.Array.indexOfT(this.DOa$,e,t,this.ZJa$-t|0)},qOa$:function(e,t,n){if(t>this.ZJa$)throw new Z$.qu$.$ctor1("index");if(n<0||t>(this.ZJa$-n|0))throw new Z$.qu$.$ctor1("count");return Z$.Array.indexOfT(this.DOa$,e,t,n)},vJa$:function(e,t){if(e>>>0>this.ZJa$>>>0)throw new Z$.qu$.$ctor1("index");this.ZJa$===this.DOa$.length&&this.FJa$(this.ZJa$+1|0),e<this.ZJa$&&Z$.Array.copy(this.DOa$,e,this.DOa$,e+1|0,this.ZJa$-e|0),this.DOa$[Z$.Array.index(e,this.DOa$)]=t,this.ZJa$=this.ZJa$+1|0,this.EOa$=this.EOa$+1|0},xKa$:function(t,n){null==n&&Bridge.getDefaultValue(e);try{this.vJa$(t,Bridge.cast(Bridge.unbox(n,e),e))}catch(e){throw e=Z$.fu$.create(e),Bridge.is(e,Z$.xu$)?new Z$.ou$.$ctor1("item"):e}},rOa$:function(t,n){if(t>>>0>this.ZJa$>>>0)throw new Z$.qu$.$ctor1("index");var i=Bridge.as(n,Z$.C$.w$.ICollection$1(e));if(null!=i){var r=Z$.Array.getCount(i,e);if(r>0){if(this.FJa$(this.ZJa$+r|0),t<this.ZJa$&&Z$.Array.copy(this.DOa$,t,this.DOa$,t+r|0,this.ZJa$-t|0),Bridge.referenceEquals(this,i))Z$.Array.copy(this.DOa$,0,this.DOa$,t,t),Z$.Array.copy(this.DOa$,t+r|0,this.DOa$,Bridge.Int.mul(t,2),this.ZJa$-t|0);else{var s=Z$.Array.init(r,(function(){return Bridge.getDefaultValue(e)}),e);Z$.Array.copyTo(i,s,0,e),Z$.Array.copy(s,0,this.DOa$,t,s.length)}this.ZJa$=this.ZJa$+r|0}}else{var a=Bridge.getEnumerator(n,e);try{for(;a.System$Collections$IEnumerator$moveNext();)this.vJa$(Bridge.identity(t,t=t+1|0),a[Bridge.geti(a,"System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1")])}finally{Bridge.hasValue(a)&&a.System$IDisposable$Dispose()}}this.EOa$=this.EOa$+1|0},sOa$:function(e){return 0===this.ZJa$?-1:this.uOa$(e,this.ZJa$-1|0,this.ZJa$)},tOa$:function(e,t){if(t>=this.ZJa$)throw new Z$.qu$.$ctor1("index");return this.uOa$(e,t,t+1|0)},uOa$:function(e,t,n){if(0!==this.Cw$&&t<0)throw new Z$.qu$.$ctor1("index");if(0!==this.Cw$&&n<0)throw new Z$.qu$.$ctor1("count");if(0===this.ZJa$)return-1;if(t>=this.ZJa$)throw new Z$.qu$.$ctor1("index");if(n>(t+1|0))throw new Z$.qu$.$ctor1("count");return Z$.Array.lastIndexOfT(this.DOa$,e,t,n)},wJa$:function(e){var t=this.indexOf(e);return t>=0&&(this.tKa$(t),!0)},BKa$:function(t){Z$.C$.w$.t$(e).IsCompatibleObject(t)&&this.wJa$(Bridge.cast(Bridge.unbox(t,e),e))},vOa$:function(t){Bridge.staticEquals(t,null);for(var n=0;n<this.ZJa$&&!t(this.DOa$[Z$.Array.index(n,this.DOa$)]);)n=n+1|0;if(n>=this.ZJa$)return 0;for(var i=n+1|0;i<this.ZJa$;){for(;i<this.ZJa$&&t(this.DOa$[Z$.Array.index(i,this.DOa$)]);)i=i+1|0;i<this.ZJa$&&(this.DOa$[Z$.Array.index(Bridge.identity(n,n=n+1|0),this.DOa$)]=this.DOa$[Z$.Array.index(Bridge.identity(i,i=i+1|0),this.DOa$)])}Z$.Array.fill(this.DOa$,(function(){return Bridge.getDefaultValue(e)}),n,this.ZJa$-n|0);var r=this.ZJa$-n|0;return this.ZJa$=n,this.EOa$=this.EOa$+1|0,r},tKa$:function(t){if(t>>>0>=this.ZJa$>>>0)throw new Z$.qu$.ctor;this.ZJa$=this.ZJa$-1|0,t<this.ZJa$&&Z$.Array.copy(this.DOa$,t+1|0,this.DOa$,t,this.ZJa$-t|0),this.DOa$[Z$.Array.index(this.ZJa$,this.DOa$)]=Bridge.getDefaultValue(e),this.EOa$=this.EOa$+1|0},wOa$:function(t,n){if(t<0)throw new Z$.qu$.$ctor1("index");if(n<0)throw new Z$.qu$.$ctor1("count");if((this.ZJa$-t|0)<n)throw new Z$.ou$.ctor;n>0&&(this.ZJa$,this.ZJa$=this.ZJa$-n|0,t<this.ZJa$&&Z$.Array.copy(this.DOa$,t+n|0,this.DOa$,t,this.ZJa$-t|0),Z$.Array.fill(this.DOa$,(function(){return Bridge.getDefaultValue(e)}),this.ZJa$,n),this.EOa$=this.EOa$+1|0)},Uqa$:function(){this.xOa$(0,this.Cw$)},xOa$:function(e,t){if(e<0)throw new Z$.qu$.$ctor1("index");if(t<0)throw new Z$.qu$.$ctor1("count");if((this.ZJa$-e|0)<t)throw new Z$.ou$.ctor;Z$.Array.reverse(this.DOa$,e,t),this.EOa$=this.EOa$+1|0},Sort:function(){this.zOa$(0,this.Cw$,null)},yOa$:function(e){this.zOa$(0,this.Cw$,e)},zOa$:function(e,t,n){if(e<0)throw new Z$.qu$.$ctor1("index");if(t<0)throw new Z$.qu$.$ctor1("count");if((this.ZJa$-e|0)<t)throw new Z$.ou$.ctor;Z$.Array.sort(this.DOa$,e,t,n),this.EOa$=this.EOa$+1|0},AOa$:function(t){if(Bridge.staticEquals(t,null),this.ZJa$>0)if(this.DOa$.length===this.ZJa$)Z$.Array.sort(this.DOa$,t);else{var n=Z$.Array.init(this.ZJa$,(function(){return Bridge.getDefaultValue(e)}),e);Z$.Array.copy(this.DOa$,0,n,0,this.ZJa$),Z$.Array.sort(n,t),Z$.Array.copy(n,0,this.DOa$,0,this.ZJa$)}},SLa$:function(){var t=Z$.Array.init(this.ZJa$,(function(){return Bridge.getDefaultValue(e)}),e);return Z$.Array.copy(this.DOa$,0,t,0,this.ZJa$),t},cLa$:function(){var e=Bridge.Int.lHa$(.9*this.DOa$.length);this.ZJa$<e&&(this.dKa$=this.ZJa$)},BOa$:function(e){Bridge.staticEquals(e,null);for(var t=0;t<this.ZJa$;t=t+1|0)if(!e(this.DOa$[Z$.Array.index(t,this.DOa$)]))return!1;return!0},COa$:function(){var t=Z$.Array.init(this.ZJa$,(function(){return Bridge.getDefaultValue(e)}),e);return this.ZJa$>0&&Z$.Array.copy(this.DOa$,0,t,0,this.ZJa$),t}},overloads:{"Add(T)":"add","BinarySearch(int, int, T, IComparer<T>)":"BinarySearch$2","BinarySearch(T, IComparer<T>)":"BinarySearch$1","Clear()":"clear","Contains(T)":"contains","CopyTo(int, T[], int, int)":"CopyTo$1","CopyTo(T[], int)":"copyTo","FindIndex(Predicate<T>)":"FindIndex$2","FindIndex(int, Predicate<T>)":"FindIndex$1","FindLastIndex(Predicate<T>)":"FindLastIndex$2","FindLastIndex(int, Predicate<T>)":"FindLastIndex$1","IndexOf(T)":"indexOf","IndexOf(T, int, int)":"IndexOf$1","Insert(int, T)":"insert","LastIndexOf(T, int)":"LastIndexOf$1","LastIndexOf(T, int, int)":"LastIndexOf$2","Remove(T)":"remove","RemoveAt(int)":"removeAt","Reverse(int, int)":"Reverse$1","Sort(IComparer<T>)":"Sort$1","Sort(int, int, IComparer<T>)":"Sort$3","Sort(Comparison<T>)":"Sort$2"}}})),System.Collections.Generic.List$1.getElementType=function(e){var t;if(System.String.startsWith(e.$$name,"System.Collections.Generic.IList"))t=e;else for(var n=Bridge.Reflection.getInterfaces(e),i=0;i<n.length;i++)if(System.String.startsWith(n[i].$$name,"System.Collections.Generic.IList")){t=n[i];break}return t?Bridge.Reflection.getGenericArguments(t)[0]:null},$$sd("Z$.E$.D$.tw$",{inherits:[Z$.pd$,Z$.td$],config:{alias:["WOa$","pLa$","BXa$","DXa$","CXa$","EXa$","ZOa$","aPa$"],properties:{ZOa$:{get:function(){return this.SOa$()}}}},ctor:function(e,t){this.$initialize(),this.action=e,this.state=t,this.AsyncState=t,this.CompletedSynchronously=!1,this.exception=null,this.status=Z$.E$.D$.Ge$.kb$,this.callbacks=[],this.result=null},statics:{kPa$:[],bPa$:function(){var e=Z$.E$.D$.tw$.kPa$.slice(0);Z$.E$.D$.tw$.kPa$=[];for(var t=0;t<e.length;t++)e[t]()},cPa$:function(e){Z$.E$.D$.tw$.kPa$.push(e),Bridge.setImmediate(Z$.E$.D$.tw$.bPa$)},ud$:function(e,t){var n,i=new Z$.E$.D$.vw$,r=!1;Bridge.is(t,Z$.E$.xw$)&&(n=t,t=void 0),n&&(n.cancelWasRequested=function(){r||(r=!0,clearTimeout(a),i.a$())});var s=e;Bridge.is(e,Z$.xv$)&&(s=e.getTotalMilliseconds());var a=setTimeout((function(){r||(r=!0,i.b$(t))}),s);return n&&n.getIsCancellationRequested()&&Bridge.setImmediate(n.cancelWasRequested),i.task},dPa$:function(e,t){var n=new(Z$.E$.D$.uw$(t||Z$.Object));return n.status=Z$.E$.D$.Ge$.pb$,n.result=e,n},run:function(e){var t=new Z$.E$.D$.vw$;return Z$.E$.D$.tw$.cPa$((function(){try{var n=e();Bridge.is(n,Z$.E$.D$.tw$)?n.continueWith((function(){n.isFaulted()||n.isCanceled()?t.c$(n.exception.innerExceptions.Count>0?n.exception.innerExceptions.getItem(0):n.exception):t.b$(n.getAwaitedResult())})):t.b$(n)}catch(e){t.c$(Z$.fu$.create(e))}})),t.task},ePa$:function(e){var t,n,i,r=new Z$.E$.D$.vw$,s=!1,a=[];if(Bridge.is(e,Z$.C$.IEnumerable)?e=Bridge.toArray(e):Bridge.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),0===e.length)return r.b$([]),r.task;for(n=e.length,t=Array(e.length),i=0;i<e.length;i++)!function(i){e[i].continueWith((function(e){switch(e.status){case Z$.E$.D$.Ge$.pb$:t[i]=e.getResult();break;case Z$.E$.D$.Ge$.qb$:s=!0;break;case Z$.E$.D$.Ge$.rb$:Z$.Array.addRange(a,e.exception.innerExceptions)}0==--n&&(a.length>0?r.c$(a):s?r.a$():r.b$(t))}))}(i);return r.task},fPa$:function(e){if(Bridge.is(e,Z$.C$.IEnumerable)?e=Bridge.toArray(e):Bridge.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),!e.length)throw new Z$.ou$.$ctor1("At least one task is required");var t,n=new Z$.E$.D$.vw$;for(t=0;t<e.length;t++)e[t].continueWith((function(e){switch(e.status){case Z$.E$.D$.Ge$.pb$:n.e$(e);break;case Z$.E$.D$.Ge$.qb$:case Z$.E$.D$.Ge$.rb$:n.f$(e.exception.innerExceptions)}}));return n.task},gPa$:function(e,t){var n,i=new Z$.E$.D$.vw$,r=Array.prototype.slice.call(arguments,2);return n=function(e){i.b$(e)},r.push(n),e[t].apply(e,r),i.task},hPa$:function(e,t,n){var i,r=new Z$.E$.D$.vw$,s=Array.prototype.slice.call(arguments,3);return i=function(e){r.b$(e)},n(s,i),e[t].apply(e,s),r.task},iPa$:function(e,t,n){var i,r=new Z$.E$.D$.vw$,s=Array.prototype.slice.call(arguments,3);return i=function(e){r.b$(e)},s[0]=s[0]||{},s[0][n]=i,e[t].apply(e,s),r.task},jPa$:function(e,t,n,i){var r=new Z$.E$.D$.vw$;return e.then||(e=e.promise()),"number"==typeof t?t=function(e){return function(){return arguments[e>=0?e:arguments.length+e]}}(t):"function"!=typeof t&&(t=function(){return Array.prototype.slice.call(arguments,0)}),e.then((function(){r.b$(t?t.apply(null,arguments):Array.prototype.slice.call(arguments,0))}),(function(){r.c$(n?n.apply(null,arguments):new Bridge.Wu$(Array.prototype.slice.call(arguments,0)))}),i),r.task}},JOa$:function(){return this.ROa$()?null:this.exception},KOa$:function(e,t){var n=e,i=new Z$.E$.D$.vw$,r=!1;t&&(t.cancelWasRequested=function(){r||(r=!0,clearTimeout(s))}),Bridge.is(e,Z$.xv$)&&(n=e.getTotalMilliseconds());var s=setTimeout((function(){r=!0,i.b$(!1)}),n);return this.NOa$((function(){clearTimeout(s),r||(r=!0,i.b$(!0))})),i.task},wait:function(e){var t=this,n=new Z$.E$.D$.vw$,i=!1;return e&&(e.cancelWasRequested=function(){i||(i=!0)}),this.NOa$((function(){i||(i=!0,t.TOa$()||t.ROa$()?n.c$(t.exception):n.b$())})),n.task},LOa$:function(e){this.SOa$()?(Z$.E$.D$.tw$.kPa$.push(e),Z$.E$.D$.tw$.bPa$()):this.callbacks.push(e)},MOa$:function(e){this._synchrounous=e},NOa$:function(e,t){const n=new Z$.E$.D$.vw$,i=this,r=t?function(){n.b$(e(i))}:function(){try{n.b$(e(i))}catch(e){n.c$(Z$.fu$.create(e))}};return this.SOa$()?this._synchrounous?r():setTimeout(r,0):this.callbacks.push(r),n.task},Md$:function(){this.status,Z$.E$.D$.Ge$.kb$;var e=this;this.status=Z$.E$.D$.Ge$.nb$,Z$.E$.D$.tw$.cPa$((function(){try{var t=e.action(e.state);delete e.action,delete e.state,e.POa$(t)}catch(t){e.fail(new Z$.Vu$(null,[Z$.fu$.create(t)]))}}))},OOa$:function(){for(var e=this,t=0;t<e.callbacks.length;t++)e.callbacks[t](e);delete e.callbacks},POa$:function(e){return!this.SOa$()&&(this.result=e,this.status=Z$.E$.D$.Ge$.pb$,this.OOa$(),!0)},fail:function(e){return!this.SOa$()&&(this.exception=e,this.status=this.exception.hasTaskCanceledException&&this.exception.hasTaskCanceledException()?Z$.E$.D$.Ge$.qb$:Z$.E$.D$.Ge$.rb$,this.OOa$(),!0)},QOa$:function(e){return!this.SOa$()&&(this.exception=e||new Z$.Vu$(null,[new Z$.E$.D$.Fu$.$ctor3(this)]),this.status=Z$.E$.D$.Ge$.qb$,this.OOa$(),!0)},ROa$:function(){return this.status===Z$.E$.D$.Ge$.qb$},SOa$:function(){return this.status===Z$.E$.D$.Ge$.pb$||this.status===Z$.E$.D$.Ge$.qb$||this.status===Z$.E$.D$.Ge$.rb$},TOa$:function(){return this.status===Z$.E$.D$.Ge$.rb$},UOa$:function(e){switch(this.status){case Z$.E$.D$.Ge$.pb$:return this.result;case Z$.E$.D$.Ge$.qb$:if(this.exception&&this.exception.innerExceptions)throw e?this.exception.innerExceptions.Count>0?this.exception.innerExceptions.getItem(0):null:this.exception;throw e?t:new Z$.Vu$(null,[t]);case Z$.E$.D$.Ge$.rb$:throw e?this.exception.innerExceptions.Count>0?this.exception.innerExceptions.getItem(0):null:this.exception}},VOa$:function(){return this.UOa$(!1)},WOa$:function(){},XOa$:function(){return this},YOa$:function(){return this.UOa$(!0)}}),$$sd("Z$.E$.D$.uw$",(function(e){return{inherits:[Z$.E$.D$.tw$]}})),$$sd("Z$.E$.D$.Ge$",{$kind:6,$statics:{kb$:0,lb$:1,mb$:2,nb$:3,ob$:4,pb$:5,qb$:6,rb$:7}}),$$sd("Z$.E$.D$.vw$",{ctor:function(e){this.$initialize(),this.task=new Z$.E$.D$.tw$(null,e),this.task.status=Z$.E$.D$.Ge$.nb$},a$:function(){this.task.cancel()},b$:function(e){this.task.complete(e)},c$:function(e){this.f$(e)},d$:function(){return this.task.cancel()},e$:function(e){return this.task.complete(e)},f$:function(e){return Bridge.is(e,Z$.fu$)&&(e=[e]),(e=new Z$.Vu$(null,e)).hasTaskCanceledException()?this.task.cancel(e):this.task.fail(e)}}),$$sd("Z$.E$.xw$",{$kind:4,ctor:function(e){this.$initialize(),Bridge.is(e,Z$.E$.ww$)||(e=e?Z$.E$.xw$.j$:Z$.E$.xw$.k$),this.source=e},statics:{j$:{isCancellationRequested:!0,register:function(e,t){return e(t),new System.Threading.CancellationTokenRegistration}},k$:{uncancellable:!0,isCancellationRequested:!1,register:function(){return new System.Threading.CancellationTokenRegistration}}}}),System.Threading.CancellationToken.none=new System.Threading.CancellationToken,$$sd("Z$.E$.yw$",{inherits:function(){return[Z$.pd$,Z$.nd$(Z$.E$.yw$)]},$kind:4,config:{alias:[]},statics:{}});var ee={isNull:function(e){return!Bridge.isDefined(e,!0)},isEmpty:function(e){return!(null!=e&&0!==e.length&&!Bridge.is(e,System.Collections.ICollection))&&0===e.getCount()},isNotEmptyOrWhitespace:function(e){return Bridge.isDefined(e,!0)&&!/^$|\s+/.test(e)},isNotNull:function(e){return Bridge.isDefined(e,!0)},isNotEmpty:function(e){return!Bridge.Validation.isEmpty(e)},email:function(e){return/^(")?(?:[^\."])(?:(?:[\.])?(?:[\w\-!#$%&'*+/=?^_`{|}~]))*\1@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/.test(e)},url:function(e){return/(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:\.\d{1,3}){3})(?!(?:\.\d{1,3}){2})(?!\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/.test(e)},alpha:function(e){return/^[a-zA-Z_]+$/.test(e)},alphaNum:function(e){return/^[a-zA-Z_]+$/.test(e)},creditCard:function(e,t){var n,i,r,s,a=!1;if("Visa"===t)n=/^4\d{3}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$/;else if("MasterCard"===t)n=/^5[1-5]\d{2}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$/;else if("Discover"===t)n=/^6011[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}$/;else if("AmericanExpress"===t)n=/^3[4,7]\d{13}$/;else if("DinersClub"===t)n=/^(3[0,6,8]\d{12})|(5[45]\d{14})$/;else{if(!e||e.length<13||e.length>19)return!1;n=/[^0-9 \-]+/,a=!0}if(!n.test(e))return!1;for(i=0,r=2-(e=e.split(a?"-":/[- ]/).join("")).length%2;r<=e.length;r+=2)i+=parseInt(e.charAt(r-1));for(r=e.length%2+1;r<e.length;r+=2)i+=(s=2*parseInt(e.charAt(r-1)))<10?s:s-9;return i%10==0}};Bridge.Validation=ee,$$sd("Z$.zw$",{statics:{a$:function(e,t,n){var i=e.at||[];if(!0===e.ov){for(var r=Bridge.Reflection.getBaseType(e.td),s=[],a=null;null!=r&&null==a;)if(0==(a=Bridge.Reflection.getMembers(r,31,28,e.n)).length){var o=Bridge.Reflection.getBaseType(r);o!=r&&(r=o),a=null}else a=a[0];null!=a&&(s=Z$.zw$.a$(a,t));for(var l=0;l<s.length;l++){var c=s[l],u=Bridge.getType(c),h=Bridge.getMetadata(u);(h&&h.am||!i.some((function(e){return Bridge.is(e,t)})))&&i.push(c)}}return t?i.filter((function(e){return Bridge.is(e,t)})):i},b$:function(e,t,n){return e.getCustomAttributes(t||n)},c$:function(e,t,n){return Z$.zw$.a$(e,t,n).length>0}}}),$$sd("Z$.Aw$",{inherits:[Z$.zw$],ctors:{ctor:function(){this.$initialize(),Z$.zw$.ctor.call(this)}}});var te={};te.convert={typeCodes:{Empty:0,Object:1,DBNull:2,Boolean:3,Char:4,SByte:5,Byte:6,Int16:7,UInt16:8,Int32:9,UInt32:10,Int64:11,UInt64:12,Single:13,Double:14,Decimal:15,DateTime:16,String:18},convertTypes:[null,System.Object,null,System.Boolean,System.Char,System.SByte,System.Byte,System.Int16,System.UInt16,System.Int32,System.UInt32,System.Int64,System.UInt64,System.Single,System.Double,System.Decimal,System.DateTime,System.Object,System.String],toBoolean:function(e,t){switch(typeof(e=Bridge.unbox(e,!0))){case"boolean":return e;case"number":return 0!==e;case"string":var n=e.toLowerCase().trim();if("true"===n)return!0;if("false"===n)return!1;case"object":if(null==e)return!1;if(e instanceof System.Decimal)return!e.isZero();if(System.Int64.is64Bit(e))return e.ne(0)}var i=te.internal.suggestTypeCode(e);return te.internal.throwInvalidCastEx(i,te.convert.typeCodes.Boolean),te.convert.convertToType(te.convert.typeCodes.Boolean,e,t||null)},toChar:function(e,t,n){var i=te.convert.typeCodes,r=Bridge.is(e,System.Char);(e=Bridge.unbox(e,!0))instanceof System.Decimal&&(e=e.toFloat()),(e instanceof System.Int64||e instanceof System.UInt64)&&(e=e.toNumber());var s=typeof e;if((n=n||te.internal.suggestTypeCode(e))===i.String&&null==e&&(s="string"),n!==i.Object||r)switch(s){case"boolean":te.internal.throwInvalidCastEx(i.Boolean,i.Char);case"number":return(te.internal.isFloatingType(n)||e%1!=0)&&te.internal.throwInvalidCastEx(n,i.Char),te.internal.validateNumberRange(e,i.Char,!0),e;case"string":return e.length,e.charCodeAt(0)}if(n===i.Object||"object"===s){if(null==e)return 0;Bridge.isDate(e)&&te.internal.throwInvalidCastEx(i.DateTime,i.Char)}return te.internal.throwInvalidCastEx(n,te.convert.typeCodes.Char),te.convert.convertToType(i.Char,e,t||null)},toSByte:function(e,t,n){return te.internal.toNumber(e,t||null,te.convert.typeCodes.SByte,n||null)},toByte:function(e,t){return te.internal.toNumber(e,t||null,te.convert.typeCodes.Byte)},toInt16:function(e,t){return te.internal.toNumber(e,t||null,te.convert.typeCodes.Int16)},toUInt16:function(e,t){return te.internal.toNumber(e,t||null,te.convert.typeCodes.UInt16)},toInt32:function(e,t){return te.internal.toNumber(e,t||null,te.convert.typeCodes.Int32)},toUInt32:function(e,t){return te.internal.toNumber(e,t||null,te.convert.typeCodes.UInt32)},toInt64:function(e,t){var n=te.internal.toNumber(e,t||null,te.convert.typeCodes.Int64);return new System.Int64(n)},toUInt64:function(e,t){var n=te.internal.toNumber(e,t||null,te.convert.typeCodes.UInt64);return new System.UInt64(n)},toSingle:function(e,t){return te.internal.toNumber(e,t||null,te.convert.typeCodes.Single)},toDouble:function(e,t){return te.internal.toNumber(e,t||null,te.convert.typeCodes.Double)},toDecimal:function(e,t){return e instanceof System.Decimal?e:new System.Decimal(te.internal.toNumber(e,t||null,te.convert.typeCodes.Decimal))},toDateTime:function(e,t){var n=te.convert.typeCodes;switch(typeof(e=Bridge.unbox(e,!0))){case"boolean":te.internal.throwInvalidCastEx(n.Boolean,n.DateTime);case"number":var i=te.internal.suggestTypeCode(e);te.internal.throwInvalidCastEx(i,n.DateTime);case"string":return System.DateTime.parse(e,t||null);case"object":if(null==e)return te.internal.getMinValue(n.DateTime);if(Bridge.isDate(e))return e;e instanceof System.Decimal&&te.internal.throwInvalidCastEx(n.Decimal,n.DateTime),e instanceof System.Int64&&te.internal.throwInvalidCastEx(n.Int64,n.DateTime),e instanceof System.UInt64&&te.internal.throwInvalidCastEx(n.UInt64,n.DateTime)}var r=te.internal.suggestTypeCode(e);return te.internal.throwInvalidCastEx(r,te.convert.typeCodes.DateTime),te.convert.convertToType(n.DateTime,e,t||null)},toString:function(e,t,n){if(e&&e.$boxed)return e.toString();var i=te.convert.typeCodes;switch(typeof e){case"boolean":return e?"True":"False";case"number":return(n||null)===i.Char?String.fromCharCode(e):isNaN(e)?"NaN":(e%1!=0&&(e=parseFloat(e.toPrecision(15))),e.toString());case"string":return e;case"object":return null==e?"":e.toString!==Object.prototype.toString?e.toString():Bridge.isDate(e)?System.DateTime.format(e,null,t||null):e instanceof System.Decimal?e.isInteger()?e.toFixed(0,4):e.toPrecision(e.precision()):System.Int64.is64Bit(e)?e.toString():e.format?e.format(null,t||null):Bridge.getTypeName(e)}return te.convert.convertToType(te.convert.typeCodes.String,e,t||null)},toNumberInBase:function(e,t,n){if(2!==t&&8!==t&&10!==t&&16!==t)throw new System.ArgumentException.$ctor1("Invalid Base.");var i=te.convert.typeCodes;if(null==e)return n===i.Int64?System.Int64.Zero:n===i.UInt64?System.UInt64.Zero:0;if(0===e.length)throw new System.ArgumentOutOfRangeException.$ctor4("length","Index was out of range. Must be non-negative and less than the size of the collection.");e=e.toLowerCase();var r,s=te.internal.getMinValue(n),a=te.internal.getMaxValue(n),o=!1,l=0;if("-"===e[l]){if(10!==t)throw new System.ArgumentException.$ctor1("String cannot contain a minus sign if the base is not 10.");o=!0,++l}else"+"===e[l]&&++l;if(16===t&&e.length>=2&&"0"===e[l]&&"x"===e[l+1]&&(l+=2),2===t)r=te.internal.charsToCodes("01");else if(8===t)r=te.internal.charsToCodes("01234567");else if(10===t)r=te.internal.charsToCodes("0123456789");else{if(16!==t)throw new System.ArgumentException.$ctor1("Invalid Base.");r=te.internal.charsToCodes("0123456789abcdef")}for(var c={},u=0;u<r.length;u++)c[r[u]]=u;var h,d,m,g,$=r[0],p=r[r.length-1];if(n===i.Int64||n===i.UInt64){for(g=l;g<e.length;g++)m=e[g].charCodeAt(0);return(h=n===i.Int64?new System.Int64(Bridge.$Long.fromString(e,!1,t)):new System.UInt64(Bridge.$Long.fromString(e,!0,t))).toString(t),System.String.trimStartZeros(e),h}for(h=0,d=a-s+1,g=l;g<e.length;g++)(m=e[g].charCodeAt(0))>=$&&m<=p&&(h*=t,h+=c[m],te.internal.typeRanges.Int64_MaxValue);return o&&(h*=-1),h>a&&10!==t&&s<0&&(h-=d),h},toStringInBase:function(e,t,n){if(te.convert.typeCodes,e=Bridge.unbox(e,!0),2!==t&&8!==t&&10!==t&&16!==t)throw new System.ArgumentException.$ctor1("Invalid Base.");var i=te.internal.getMinValue(n),r=te.internal.getMaxValue(n),s=System.Int64.is64Bit(e);s&&(e.lt(i)||e.gt(r));var a,o=!1;if(s)return 10===t?e.toString():e.value.toUnsigned().toString(t);if(e<0&&(10===t?(o=!0,e*=-1):e=r+1-i+e),2===t)a="01";else if(8===t)a="01234567";else if(10===t)a="0123456789";else{if(16!==t)throw new System.ArgumentException.$ctor1("Invalid Base.");a="0123456789abcdef"}for(var l,c={},u=a.split(""),h=0;h<u.length;h++)l=u[h],c[h]=l;var d,m="";if(0===e||s&&e.eq(0))m="0";else if(s)for(;e.gt(0);)d=e.mod(t),e=e.sub(d).div(t),m+=c[d.toNumber()];else for(;e>0;)e=(e-(d=e%t))/t,m+=c[d];return o&&(m+="-"),m.split("").reverse().join("")},toBase64String:function(e,t,n,i){if(t=t||0,i=i||0,(n=null!=n?n:e.length)<0)throw new System.ArgumentOutOfRangeException.$ctor4("length","Index was out of range. Must be non-negative and less than the size of the collection.");if(t<0)throw new System.ArgumentOutOfRangeException.$ctor4("offset","Value must be positive.");if(i<0||i>1)throw new System.ArgumentException.$ctor1("Illegal enum value.");var r=e.length;if(t>r-n)throw new System.ArgumentOutOfRangeException.$ctor4("offset","Offset and length must refer to a position in the string.");if(0===r)return"";var s=1===i,a=te.internal.toBase64_CalculateAndValidateOutputLength(n,s),o=[];return o.length=a,te.internal.convertToBase64Array(o,e,t,n,s),o.join("")},toBase64CharArray:function(e,t,n,i,r,s){if(n<0)throw new System.ArgumentOutOfRangeException.$ctor4("length","Index was out of range. Must be non-negative and less than the size of the collection.");if(t<0)throw new System.ArgumentOutOfRangeException.$ctor4("offsetIn","Value must be positive.");if(r<0)throw new System.ArgumentOutOfRangeException.$ctor4("offsetOut","Value must be positive.");if((s=s||0)<0||s>1)throw new System.ArgumentException.$ctor1("Illegal enum value.");var a=e.length;if(t>a-n)throw new System.ArgumentOutOfRangeException.$ctor4("offsetIn","Offset and length must refer to a position in the string.");if(0===a)return 0;var o=1===s;if(r>i.length-te.internal.toBase64_CalculateAndValidateOutputLength(n,o))throw new System.ArgumentOutOfRangeException.$ctor4("offsetOut","Either offset did not refer to a position in the string, or there is an insufficient length of destination character array.");var l=[],c=te.internal.convertToBase64Array(l,e,t,n,o);return te.internal.charsToCodes(l,i,r),c},fromBase64String:function(e){var t=e.split("");return te.internal.fromBase64CharPtr(t,0,t.length)},fromBase64CharArray:function(e,t,n){if(n<0)throw new System.ArgumentOutOfRangeException.$ctor4("length","Index was out of range. Must be non-negative and less than the size of the collection.");if(t<0)throw new System.ArgumentOutOfRangeException.$ctor4("offset","Value must be positive.");if(t>e.length-n)throw new System.ArgumentOutOfRangeException.$ctor4("offset","Offset and length must refer to a position in the string.");var i=te.internal.codesToChars(e);return te.internal.fromBase64CharPtr(i,t,n)},getTypeCode:function(e){System.Double,System.Single,System.Decimal,System.Byte,System.SByte,System.UInt16,System.Int16,System.UInt32,System.Int32,System.UInt64,System.Int64,System.Boolean,System.Char,System.DateTime,System.String},changeConversionType:function(e,t,r){return null==e?(Bridge.Reflection.isValueType(t),null):null==i&&n==System.TypeCode.Object&&Bridge.referenceEquals(Bridge.getType(e),t)?e:Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Boolean,te.convert.convertTypes)])?null==i?te.convert.toBoolean(e,r):i.System$IConvertible$ToBoolean(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Char,te.convert.convertTypes)])?null==i?te.convert.toChar(e,r,n):i.System$IConvertible$ToChar(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.SByte,te.convert.convertTypes)])?null==i?te.convert.toSByte(e,r,n):i.System$IConvertible$ToSByte(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Byte,te.convert.convertTypes)])?null==i?te.convert.toByte(e,r):i.System$IConvertible$ToByte(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Int16,te.convert.convertTypes)])?null==i?te.convert.toInt16(e,r):i.System$IConvertible$ToInt16(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.UInt16,te.convert.convertTypes)])?null==i?te.convert.toUInt16(e,r):i.System$IConvertible$ToUInt16(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Int32,te.convert.convertTypes)])?null==i?te.convert.toInt32(e,r):i.System$IConvertible$ToInt32(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.UInt32,te.convert.convertTypes)])?null==i?te.convert.toUInt32(e,r):i.System$IConvertible$ToUInt32(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Int64,te.convert.convertTypes)])?null==i?te.convert.toInt64(e,r):i.System$IConvertible$ToInt64(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.UInt64,te.convert.convertTypes)])?null==i?te.convert.toUInt64(e,r):i.System$IConvertible$ToUInt64(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Single,te.convert.convertTypes)])?null==i?te.convert.toSingle(e,r):i.System$IConvertible$ToSingle(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Double,te.convert.convertTypes)])?null==i?te.convert.toDouble(e,r):i.System$IConvertible$ToDouble(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Decimal,te.convert.convertTypes)])?null==i?te.convert.toDecimal(e,r):i.System$IConvertible$ToDecimal(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.DateTime,te.convert.convertTypes)])?null==i?te.convert.toDateTime(e,r):i.System$IConvertible$ToDateTime(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.String,te.convert.convertTypes)])?null==i?te.convert.toString(e,r,n):i.System$IConvertible$ToString(r):Bridge.referenceEquals(t,te.convert.convertTypes[System.Array.index(System.TypeCode.Object,te.convert.convertTypes)])?e:i.System$IConvertible$ToType(t,r)},changeType:function(e,t,r){if(Bridge.isFunction(t))return te.convert.changeConversionType(e,t,r);if(null==e&&(t===System.TypeCode.Empty||t===System.TypeCode.String||t===System.TypeCode.Object))return null;switch(null==i&&System.TypeCode.Object,t){case System.TypeCode.Boolean:return null==i?te.convert.toBoolean(e,r):i.System$IConvertible$ToBoolean(provider);case System.TypeCode.Char:return null==i?te.convert.toChar(e,r,n):i.System$IConvertible$ToChar(provider);case System.TypeCode.SByte:return null==i?te.convert.toSByte(e,r,n):i.System$IConvertible$ToSByte(provider);case System.TypeCode.Byte:return null==i?te.convert.toByte(e,r,n):i.System$IConvertible$ToByte(provider);case System.TypeCode.Int16:return null==i?te.convert.toInt16(e,r):i.System$IConvertible$ToInt16(provider);case System.TypeCode.UInt16:return null==i?te.convert.toUInt16(e,r):i.System$IConvertible$ToUInt16(provider);case System.TypeCode.Int32:return null==i?te.convert.toInt32(e,r):i.System$IConvertible$ToInt32(provider);case System.TypeCode.UInt32:return null==i?te.convert.toUInt32(e,r):i.System$IConvertible$ToUInt32(provider);case System.TypeCode.Int64:return null==i?te.convert.toInt64(e,r):i.System$IConvertible$ToInt64(provider);case System.TypeCode.UInt64:return null==i?te.convert.toUInt64(e,r):i.System$IConvertible$ToUInt64(provider);case System.TypeCode.Single:return null==i?te.convert.toSingle(e,r):i.System$IConvertible$ToSingle(provider);case System.TypeCode.Double:return null==i?te.convert.toDouble(e,r):i.System$IConvertible$ToDouble(provider);case System.TypeCode.Decimal:return null==i?te.convert.toDecimal(e,r):i.System$IConvertible$ToDecimal(provider);case System.TypeCode.DateTime:return null==i?te.convert.toDateTime(e,r):i.System$IConvertible$ToDateTime(provider);case System.TypeCode.String:return null==i?te.convert.toString(e,r,n):i.System$IConvertible$ToString(provider);case System.TypeCode.Object:return e;case System.TypeCode.DBNull:case System.TypeCode.Empty:default:throw new System.ArgumentException.$ctor1("Unknown type code")}}},te.internal={base64Table:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/","="],typeRanges:{Char_MinValue:0,Char_MaxValue:65535,Byte_MinValue:0,Byte_MaxValue:255,SByte_MinValue:-128,SByte_MaxValue:127,Int16_MinValue:-32768,Int16_MaxValue:32767,UInt16_MinValue:0,UInt16_MaxValue:65535,Int32_MinValue:-2147483648,Int32_MaxValue:2147483647,UInt32_MinValue:0,UInt32_MaxValue:4294967295,Int64_MinValue:System.Int64.MinValue,Int64_MaxValue:System.Int64.MaxValue,UInt64_MinValue:System.UInt64.MinValue,UInt64_MaxValue:System.UInt64.MaxValue,Single_MinValue:-340282347e30,Single_MaxValue:340282347e30,Double_MinValue:-17976931348623157e292,Double_MaxValue:17976931348623157e292,Decimal_MinValue:System.Decimal.MinValue,Decimal_MaxValue:System.Decimal.MaxValue},base64LineBreakPosition:76,getTypeCodeName:function(e){var t=te.convert.typeCodes;if(null==te.internal.typeCodeNames){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);te.internal.typeCodeNames=n}var r=te.internal.typeCodeNames[e];if(null==r)throw System.ArgumentOutOfRangeException("typeCode","The specified typeCode is undefined.");return r},suggestTypeCode:function(e){var t=te.convert.typeCodes;switch(typeof e){case"boolean":return t.Boolean;case"number":return e%1!=0?t.Double:t.Int32;case"string":return t.String;case"object":if(Bridge.isDate(e))return t.DateTime;if(null!=e)return t.Object}return null},getMinValue:function(e){var t=te.convert.typeCodes;switch(e){case t.Char:return te.internal.typeRanges.Char_MinValue;case t.SByte:return te.internal.typeRanges.SByte_MinValue;case t.Byte:return te.internal.typeRanges.Byte_MinValue;case t.Int16:return te.internal.typeRanges.Int16_MinValue;case t.UInt16:return te.internal.typeRanges.UInt16_MinValue;case t.Int32:return te.internal.typeRanges.Int32_MinValue;case t.UInt32:return te.internal.typeRanges.UInt32_MinValue;case t.Int64:return te.internal.typeRanges.Int64_MinValue;case t.UInt64:return te.internal.typeRanges.UInt64_MinValue;case t.Single:return te.internal.typeRanges.Single_MinValue;case t.Double:return te.internal.typeRanges.Double_MinValue;case t.Decimal:return te.internal.typeRanges.Decimal_MinValue;case t.DateTime:return System.DateTime.getMinValue();default:return null}},getMaxValue:function(e){var t=te.convert.typeCodes;switch(e){case t.Char:return te.internal.typeRanges.Char_MaxValue;case t.SByte:return te.internal.typeRanges.SByte_MaxValue;case t.Byte:return te.internal.typeRanges.Byte_MaxValue;case t.Int16:return te.internal.typeRanges.Int16_MaxValue;case t.UInt16:return te.internal.typeRanges.UInt16_MaxValue;case t.Int32:return te.internal.typeRanges.Int32_MaxValue;case t.UInt32:return te.internal.typeRanges.UInt32_MaxValue;case t.Int64:return te.internal.typeRanges.Int64_MaxValue;case t.UInt64:return te.internal.typeRanges.UInt64_MaxValue;case t.Single:return te.internal.typeRanges.Single_MaxValue;case t.Double:return te.internal.typeRanges.Double_MaxValue;case t.Decimal:return te.internal.typeRanges.Decimal_MaxValue;case t.DateTime:return System.DateTime.getMaxValue();default:throw new System.ArgumentOutOfRangeException.$ctor4("typeCode","The specified typeCode is undefined.")}},isFloatingType:function(e){var t=te.convert.typeCodes;return e===t.Single||e===t.Double||e===t.Decimal},toNumber:function(e,t,n,i){e=Bridge.unbox(e,!0);var r=te.convert.typeCodes,s=typeof e,a=te.internal.isFloatingType(n);switch(i===r.String&&(s="string"),(System.Int64.is64Bit(e)||e instanceof System.Decimal)&&(s="number"),s){case"boolean":return e?1:0;case"number":if(n===r.Decimal)return te.internal.validateNumberRange(e,n,!0),new System.Decimal(e,t);if(n===r.Int64)return te.internal.validateNumberRange(e,n,!0),new System.Int64(e);if(n===r.UInt64)return te.internal.validateNumberRange(e,n,!0),new System.UInt64(e);if(System.Int64.is64Bit(e)?e=e.toNumber():e instanceof System.Decimal&&(e=e.toFloat()),a||e%1==0||(e=te.internal.roundToInt(e,n)),a){var o=te.internal.getMinValue(n);e>te.internal.getMaxValue(n)?e=Infinity:e<o&&(e=-Infinity)}return te.internal.validateNumberRange(e,n,!1),e;case"string":if(null==e)return 0;if(a){var l=(t||System.Globalization.CultureInfo.getCurrentCulture()).getFormat(System.Globalization.NumberFormatInfo).numberDecimalSeparator;n===r.Decimal?(RegExp("^[+-]?(\\d+|\\d+.|\\d*\\"+l+"\\d+)$").test(e),e=new System.Decimal(e,t)):(RegExp("^[-+]?[0-9]*\\"+l+"?[0-9]+([eE][-+]?[0-9]+)?$").test(e),e=Bridge.Int.parseFloat(e,t))}else{var c=e;n===r.Int64?(e=new System.Int64(e),System.String.trimStartZeros(c)!==e.toString()&&this.throwOverflow(te.internal.getTypeCodeName(n))):n===r.UInt64?(e=new System.UInt64(e),System.String.trimStartZeros(c)!==e.toString()&&this.throwOverflow(te.internal.getTypeCodeName(n))):e=parseInt(e,10)}return te.internal.validateNumberRange(e,n,!0),e;case"object":if(null==e)return 0;Bridge.isDate(e)&&te.internal.throwInvalidCastEx(te.convert.typeCodes.DateTime,n)}return i=i||te.internal.suggestTypeCode(e),te.internal.throwInvalidCastEx(i,n),te.convert.convertToType(n,e,t)},validateNumberRange:function(e,t,n){var i=te.convert.typeCodes,r=te.internal.getMinValue(t),s=te.internal.getMaxValue(t),a=te.internal.getTypeCodeName(t);(t!==i.Single&&t!==i.Double||n||Infinity!==e&&-Infinity!==e)&&(t===i.Decimal||t===i.Int64||t===i.UInt64?t===i.Decimal?(System.Int64.is64Bit(e)||(r.gt(e)||s.lt(e))&&this.throwOverflow(a),e=new System.Decimal(e)):t===i.Int64?(e instanceof System.UInt64?e.gt(System.Int64.MaxValue)&&this.throwOverflow(a):e instanceof System.Decimal?(e.gt(new System.Decimal(s))||e.lt(new System.Decimal(r)))&&this.throwOverflow(a):e instanceof System.Int64||(r.toNumber()>e||s.toNumber()<e)&&this.throwOverflow(a),e=new System.Int64(e)):t===i.UInt64&&(e instanceof System.Int64?e.isNegative()&&this.throwOverflow(a):e instanceof System.Decimal?(e.gt(new System.Decimal(s))||e.lt(new System.Decimal(r)))&&this.throwOverflow(a):e instanceof System.UInt64||(r.toNumber()>e||s.toNumber()<e)&&this.throwOverflow(a),e=new System.UInt64(e)):(e<r||e>s)&&this.throwOverflow(a))},throwOverflow:function(e){},roundToInt:function(e,t){if(e%1==0)return e;var n,i=e-(n=e>=0?Math.floor(e):-1*Math.floor(-e)),r=te.internal.getMinValue(t),s=te.internal.getMaxValue(t);if(e>=0){if(e<s+.5)return(i>.5||.5===i&&0!=(1&n))&&++n,n}else if(e>=r-.5)return(i<-.5||-.5===i&&0!=(1&n))&&--n,n;te.internal.getTypeCodeName(t)},toBase64_CalculateAndValidateOutputLength:function(e,t){var n=te.internal.base64LineBreakPosition,i=4*~~(e/3);if(0===(i+=e%3!=0?4:0))return 0;if(t){var r=~~(i/n);i%n==0&&--r,i+=2*r}return i},convertToBase64Array:function(e,t,n,i,r){var s,a=te.internal.base64Table,o=te.internal.base64LineBreakPosition,l=i%3,c=n+(i-l),u=0,h=0;for(s=n;s<c;s+=3)r&&(u===o&&(e[h++]="\r",e[h++]="\n",u=0),u+=4),e[h]=a[(252&t[s])>>2],e[h+1]=a[(3&t[s])<<4|(240&t[s+1])>>4],e[h+2]=a[(15&t[s+1])<<2|(192&t[s+2])>>6],e[h+3]=a[63&t[s+2]],h+=4;switch(s=c,r&&0!==l&&u===te.internal.base64LineBreakPosition&&(e[h++]="\r",e[h++]="\n"),l){case 2:e[h]=a[(252&t[s])>>2],e[h+1]=a[(3&t[s])<<4|(240&t[s+1])>>4],e[h+2]=a[(15&t[s+1])<<2],e[h+3]=a[64],h+=4;break;case 1:e[h]=a[(252&t[s])>>2],e[h+1]=a[(3&t[s])<<4],e[h+2]=a[64],e[h+3]=a[64],h+=4}return h},fromBase64CharPtr:function(e,t,n){if(n<0)throw new System.ArgumentOutOfRangeException.$ctor4("inputLength","Index was out of range. Must be non-negative and less than the size of the collection.");if(t<0)throw new System.ArgumentOutOfRangeException.$ctor4("offset","Value must be positive.");for(;n>0;){var i=e[t+n-1];if(" "!==i&&"\n"!==i&&"\r"!==i&&"\t"!==i)break;n--}var r=te.internal.fromBase64_ComputeResultLength(e,t,n),s=[];return s.length=r,te.internal.fromBase64_Decode(e,t,n,s,0,r),s},fromBase64_Decode:function(e,t,n,i,r,s){for(var a,o=r,l=t+n,c=r+s,u=255,h=!1;!(t>=l);){if(a=e[t].charCodeAt(0),t++,a-65>>>0<=25)a-=65;else if(a-97>>>0<=25)a-=71;else if(a-48>>>0<=9)a-=-4;else switch(a){case 43:a=62;break;case 47:a=63;break;case 13:case 10:case 32:case 9:continue;case 61:h=!0}if(h)break;if(0!=(2147483648&(u=u<<6|a))){if(c-r<3)return-1;i[r]=255&u>>16,i[r+1]=255&u>>8,i[r+2]=255&u,r+=3,u=255}}if(h)if(t===l){if(u<<=6,c-r<2)return-1;i[r]=255&u>>16,i[r+1]=255&u>>8,r+=2,u=255}else{for(;t<l-1;){var d=e[t];if(" "!==d&&"\n"!==d&&"\r"!==d&&"\t"!==d)break;t++}if(t===l-1&&"="===e[t]){if(u<<=12,c-r<1)return-1;i[r]=255&u>>16,r++,u=255}}return r-o},fromBase64_ComputeResultLength:function(e,t,n){if(n<0)throw new System.ArgumentOutOfRangeException.$ctor4("inputLength","Index was out of range. Must be non-negative and less than the size of the collection.");for(var i=t+n,r=n,s=0;t<i;){var a=e[t];t++,a<=" "?r--:"="===a&&(r--,s++)}return 0!==s&&(1===s?s=2:2===s&&(s=1)),3*~~(r/4)+s},charsToCodes:function(e,t,n){if(null==e)return null;n=n||0,null==t&&((t=[]).length=e.length);for(var i=0;i<e.length;i++)t[i+n]=e[i].charCodeAt(0);return t},codesToChars:function(e,t){if(null==e)return null;t=t||[];for(var n=0;n<e.length;n++){var i=e[n];t[n]=String.fromCharCode(i)}return t},throwInvalidCastEx:function(e,t){te.internal.getTypeCodeName(e),te.internal.getTypeCodeName(t)}},System.Convert=te.convert,Bridge.assembly("System",{},(function(e,t){$$sd("Z$.Uri",{statics:{methods:{}}})}),!0),$$sd("Bridge.Kx$",(function(e){return{inherits:[Z$.C$.w$.zd$(e)],config:{alias:["IJa$",["System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"]]}}})),$$sd("Bridge.Lx$",{inherits:[Z$.C$.Id$],KKa$:null,config:{properties:{Fh$:{get:function(){return this.VNa$()}}},alias:["VNa$","XNa$","GKa$","IKa$","Fh$","OKa$"]},ctor:function(e){this.$initialize(),this.moveNext=e,this.System$Collections$IEnumerator$moveNext=e},VNa$:function(){return this.KKa$}}),$$sd("Bridge.Mx$",(function(e){return{inherits:[Z$.C$.w$.qd$(e),Z$.pd$],KKa$:null,config:{properties:{Fh$:{},YNa$:{}},alias:["VNa$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$getCurrent$1","System$Collections$Generic$IEnumerator$1$getCurrent$1"],"Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"],"Fh$","OKa$","GKa$","IKa$"]}}})),function(e,t){var n={Identity:function(e){return e},True:function(){return!0},Blank:function(){}},i="number",r="string",s=typeof t,a="function",o={"":n.Identity},l={createLambda:function(e){if(null==e)return n.Identity;if(typeof e===r){var t=o[e];if(null!=t)return t;if(-1===e.indexOf("=>")){for(var i,s=RegExp("[$]+","g"),a=0;null!=(i=s.exec(e));){var l=i[0].length;l>a&&(a=l)}for(var c=[],u=1;u<=a;u++){for(var h="",d=0;d<u;d++)h+="$";c.push(h)}var m=Array.prototype.join.call(c,",");return t=Function(m,"return "+e),o[e]=t,t}var g=e.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return t=Function(g[1],"return "+g[2]),o[e]=t,t}return e},isIEnumerable:function(e){if(typeof Enumerator!==s)try{return new Enumerator(e),!0}catch(e){}return!1},defineProperty:null!=Object.defineProperties?function(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}:function(e,t,n){e[t]=n},compare:function(e,t){return e===t?0:e>t?1:-1},Dispose:function(e){null!=e&&e.Dispose()}},c=function(e,t,n){var i=new u,r=0;this.getCurrent=i.getCurrent,this.reset=function(){throw Error("Reset is not supported")},this.moveNext=function(){try{switch(r){case 0:r=1,e();case 1:return!!t.apply(i)||(this.Dispose(),!1);case 2:return!1}}catch(e){throw this.Dispose(),e}},this.Dispose=function(){if(1==r)try{n()}finally{r=2}},this.System$IDisposable$Dispose=this.Dispose,this.getCurrent$1=this.getCurrent,this.System$Collections$IEnumerator$getCurrent=this.getCurrent,this.System$Collections$IEnumerator$moveNext=this.moveNext,this.System$Collections$IEnumerator$reset=this.reset,Object.defineProperties(this,{Current$1:{get:this.getCurrent,enumerable:!0},Current:{get:this.getCurrent,enumerable:!0},System$Collections$IEnumerator$Current:{get:this.getCurrent,enumerable:!0}})};c.$$inherits=[],Bridge.Class.addExtend(c,[System.IDisposable,System.Collections.IEnumerator]);var u=function(){var e=null;this.getCurrent=function(){return e},this.yieldReturn=function(t){return e=t,!0},this.yieldBreak=function(){return!1}},h=function(e){this.GetEnumerator=e};h.$$inherits=[],Bridge.Class.addExtend(h,[System.Collections.IEnumerable]),(h.Utils={}).createLambda=function(e){return l.createLambda(e)},h.Utils.createEnumerable=function(e){return new h(e)},h.Utils.createEnumerator=function(e,t,n){return new c(e,t,n)},h.Utils.extendTo=function(e){var t,n=e.prototype;for(var i in e===Array?(t=y.prototype,l.defineProperty(n,"getSource",(function(){return this}))):(t=h.prototype,l.defineProperty(n,"GetEnumerator",(function(){return h.from(this).GetEnumerator()}))),t){var r=t[i];n[i]!=r&&(null!=n[i]&&n[i+="ByLinq"]==r||r instanceof Function&&l.defineProperty(n,i,r))}},h.choice=function(){var e=arguments;return new h((function(){return new c((function(){e=e[0]instanceof Array?e[0]:null!=e[0].GetEnumerator?e[0].ToArray():e}),(function(){return this.yieldReturn(e[Math.floor(Math.random()*e.length)])}),n.Blank)}))},h.cycle=function(){var e=arguments;return new h((function(){var t=0;return new c((function(){e=e[0]instanceof Array?e[0]:null!=e[0].GetEnumerator?e[0].ToArray():e}),(function(){return t>=e.length&&(t=0),this.yieldReturn(e[t++])}),n.Blank)}))};var d=new h((function(){return new c(n.Blank,(function(){return!1}),n.Blank)}));h.empty=function(){return d},h.from=function(e,t){if(null==e)return h.empty();if(e instanceof h)return e;if(typeof e==i||"boolean"==typeof e)return h.repeat(e,1);if(typeof e==r)return new h((function(){var t=0;return new c(n.Blank,(function(){return t<e.length&&this.yieldReturn(e.charCodeAt(t++))}),n.Blank)}));var s=Bridge.as(e,System.Collections.IEnumerable);if(s)return new h((function(){var e;return new c((function(){e=Bridge.getEnumerator(s,t)}),(function(){return!!e.moveNext()&&this.yieldReturn(e.Current)}),(function(){var t=Bridge.as(e,System.IDisposable);t&&t.Dispose()}))}));if(typeof e!=a){if(typeof e.length==i)return new y(e);if(!(e instanceof Object)&&l.isIEnumerable(e))return new h((function(){var t,i=!0;return new c((function(){t=new Enumerator(e)}),(function(){return i?i=!1:t.moveNext(),!t.atEnd()&&this.yieldReturn(t.item())}),n.Blank)}));if("object"==typeof Windows&&typeof e.first===a)return new h((function(){var t,i=!0;return new c((function(){t=e.first()}),(function(){return i?i=!1:t.moveNext(),t.hasCurrent?this.yieldReturn(t.current):this.yieldBreak()}),n.Blank)}))}return new h((function(){var t=[],i=0;return new c((function(){for(var n in e){var i=e[n];i instanceof Function||!Object.prototype.hasOwnProperty.call(e,n)||t.push({key:n,value:i})}}),(function(){return i<t.length&&this.yieldReturn(t[i++])}),n.Blank)}))},h.make=function(e){return h.repeat(e,1)},h.matches=function(e,t,i){return null==i&&(i=""),t instanceof RegExp&&(i+=t.ignoreCase?"i":"",i+=t.multiline?"m":"",t=t.source),-1===i.indexOf("g")&&(i+="g"),new h((function(){var r;return new c((function(){r=RegExp(t,i)}),(function(){var t=r.exec(e);return!!t&&this.yieldReturn(t)}),n.Blank)}))},h.range=function(e,t,i){return null==i&&(i=1),new h((function(){var r,s=0;return new c((function(){r=e-i}),(function(){return s++<t?this.yieldReturn(r+=i):this.yieldBreak()}),n.Blank)}))},h.rangeDown=function(e,t,i){return null==i&&(i=1),new h((function(){var r,s=0;return new c((function(){r=e+i}),(function(){return s++<t?this.yieldReturn(r-=i):this.yieldBreak()}),n.Blank)}))},h.rangeTo=function(e,t,i){return null==i&&(i=1),new h(e<t?function(){var r;return new c((function(){r=e-i}),(function(){var e=r+=i;return e<=t?this.yieldReturn(e):this.yieldBreak()}),n.Blank)}:function(){var r;return new c((function(){r=e+i}),(function(){var e=r-=i;return e>=t?this.yieldReturn(e):this.yieldBreak()}),n.Blank)})},h.repeat=function(e,t){return null!=t?h.repeat(e).take(t):new h((function(){return new c(n.Blank,(function(){return this.yieldReturn(e)}),n.Blank)}))},h.repeatWithFinalize=function(e,t){return e=l.createLambda(e),t=l.createLambda(t),new h((function(){var n;return new c((function(){n=e()}),(function(){return this.yieldReturn(n)}),(function(){null!=n&&(t(n),n=null)}))}))},h.generate=function(e,t){return null!=t?h.generate(e).take(t):(e=l.createLambda(e),new h((function(){return new c(n.Blank,(function(){return this.yieldReturn(e())}),n.Blank)})))},h.toInfinity=function(e,t){return null==e&&(e=0),null==t&&(t=1),new h((function(){var i;return new c((function(){i=e-t}),(function(){return this.yieldReturn(i+=t)}),n.Blank)}))},h.toNegativeInfinity=function(e,t){return null==e&&(e=0),null==t&&(t=1),new h((function(){var i;return new c((function(){i=e+t}),(function(){return this.yieldReturn(i-=t)}),n.Blank)}))},h.unfold=function(e,t){return t=l.createLambda(t),new h((function(){var i,r=!0;return new c(n.Blank,(function(){return r?(r=!1,i=e,this.yieldReturn(i)):(i=t(i),this.yieldReturn(i))}),n.Blank)}))},h.defer=function(e){return new h((function(){var t;return new c((function(){t=h.from(e()).GetEnumerator()}),(function(){return t.moveNext()?this.yieldReturn(t.Current):this.yieldBreak()}),(function(){l.Dispose(t)}))}))},h.prototype.traverseBreadthFirst=function(e,t){var n=this;return e=l.createLambda(e),t=l.createLambda(t),new h((function(){var i,r=0,s=[];return new c((function(){i=n.GetEnumerator()}),(function(){for(;;){if(i.moveNext())return s.push(i.Current),this.yieldReturn(t(i.Current,r));var n=h.from(s).selectMany((function(t){return e(t)}));if(!n.any())return!1;r++,s=[],l.Dispose(i),i=n.GetEnumerator()}}),(function(){l.Dispose(i)}))}))},h.prototype.traverseDepthFirst=function(e,t){var n=this;return e=l.createLambda(e),t=l.createLambda(t),new h((function(){var i,r=[];return new c((function(){i=n.GetEnumerator()}),(function(){for(;;){if(i.moveNext()){var n=t(i.Current,r.length);return r.push(i),i=h.from(e(i.Current)).GetEnumerator(),this.yieldReturn(n)}if(r.length<=0)return!1;l.Dispose(i),i=r.pop()}}),(function(){try{l.Dispose(i)}finally{h.from(r).forEach((function(e){e.Dispose()}))}}))}))},h.prototype.flatten=function(){var e=this;return new h((function(){var t,i=null;return new c((function(){t=e.GetEnumerator()}),(function(){for(;;){if(null!=i){if(i.moveNext())return this.yieldReturn(i.Current);i=null}if(t.moveNext()){if(t.Current instanceof Array){l.Dispose(i),i=h.from(t.Current).selectMany(n.Identity).flatten().GetEnumerator();continue}return this.yieldReturn(t.Current)}return!1}}),(function(){try{l.Dispose(t)}finally{l.Dispose(i)}}))}))},h.prototype.pairwise=function(e){var t=this;return e=l.createLambda(e),new h((function(){var n;return new c((function(){(n=t.GetEnumerator()).moveNext()}),(function(){var t=n.Current;return!!n.moveNext()&&this.yieldReturn(e(t,n.Current))}),(function(){l.Dispose(n)}))}))},h.prototype.scan=function(e,t){var n;null==t?(t=l.createLambda(e),n=!1):(t=l.createLambda(t),n=!0);var i=this;return new h((function(){var r,s,a=!0;return new c((function(){r=i.GetEnumerator()}),(function(){if(a){if(a=!1,n)return this.yieldReturn(s=e);if(r.moveNext())return this.yieldReturn(s=r.Current)}return!!r.moveNext()&&this.yieldReturn(s=t(s,r.Current))}),(function(){l.Dispose(r)}))}))},h.prototype.select=function(e){if((e=l.createLambda(e)).length<=1)return new _(this,null,e);var t=this;return new h((function(){var n,i=0;return new c((function(){n=t.GetEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(e(n.Current,i++))}),(function(){l.Dispose(n)}))}))},h.prototype.selectMany=function(e,n){var i=this;return e=l.createLambda(e),null==n&&(n=function(e,t){return t}),n=l.createLambda(n),new h((function(){var r,s=t,a=0;return new c((function(){r=i.GetEnumerator()}),(function(){if(s===t&&!r.moveNext())return!1;do{if(null==s){var i=e(r.Current,a++);s=h.from(i).GetEnumerator()}if(s.moveNext())return this.yieldReturn(n(r.Current,s.Current));l.Dispose(s),s=null}while(r.moveNext());return!1}),(function(){try{l.Dispose(r)}finally{l.Dispose(s)}}))}))},h.prototype.where=function(e){if((e=l.createLambda(e)).length<=1)return new f(this,e);var t=this;return new h((function(){var n,i=0;return new c((function(){n=t.GetEnumerator()}),(function(){for(;n.moveNext();)if(e(n.Current,i++))return this.yieldReturn(n.Current);return!1}),(function(){l.Dispose(n)}))}))},h.prototype.choose=function(e){e=l.createLambda(e);var t=this;return new h((function(){var n,i=0;return new c((function(){n=t.GetEnumerator()}),(function(){for(;n.moveNext();){var t=e(n.Current,i++);if(null!=t)return this.yieldReturn(t)}return this.yieldBreak()}),(function(){l.Dispose(n)}))}))},h.prototype.ofType=function(e){var t=this;return new h((function(){var n;return new c((function(){n=Bridge.getEnumerator(t)}),(function(){for(;n.moveNext();){var t=Bridge.as(n.Current,e);if(Bridge.hasValue(t))return this.yieldReturn(t)}return!1}),(function(){l.Dispose(n)}))}))},h.prototype.zip=function(){var e=arguments,t=l.createLambda(arguments[arguments.length-1]),n=this;if(2==arguments.length){var i=arguments[0];return new h((function(){var e,r,s=0;return new c((function(){e=n.GetEnumerator(),r=h.from(i).GetEnumerator()}),(function(){return!(!e.moveNext()||!r.moveNext())&&this.yieldReturn(t(e.Current,r.Current,s++))}),(function(){try{l.Dispose(e)}finally{l.Dispose(r)}}))}))}return new h((function(){var i,r=0;return new c((function(){var t=h.make(n).concat(h.from(e).takeExceptLast().select(h.from)).select((function(e){return e.GetEnumerator()})).ToArray();i=h.from(t)}),(function(){if(i.all((function(e){return e.moveNext()}))){var e=i.select((function(e){return e.Current})).ToArray();return e.push(r++),this.yieldReturn(t.apply(null,e))}return this.yieldBreak()}),(function(){h.from(i).forEach(l.Dispose)}))}))},h.prototype.merge=function(){var e=arguments,t=this;return new h((function(){var n,i=-1;return new c((function(){n=h.make(t).concat(h.from(e).select(h.from)).select((function(e){return e.GetEnumerator()})).ToArray()}),(function(){for(;n.length>0;){i=i>=n.length-1?0:i+1;var e=n[i];if(e.moveNext())return this.yieldReturn(e.Current);e.Dispose(),n.splice(i--,1)}return this.yieldBreak()}),(function(){h.from(n).forEach(l.Dispose)}))}))},h.prototype.join=function(e,i,r,s,a){i=l.createLambda(i),r=l.createLambda(r),s=l.createLambda(s);var o=this;return new h((function(){var u,d,m=null,g=0;return new c((function(){u=o.GetEnumerator(),d=h.from(e).toLookup(r,n.Identity,a)}),(function(){for(;;){if(null!=m){var e=m[g++];if(e!==t)return this.yieldReturn(s(u.Current,e));e=null,g=0}if(!u.moveNext())return!1;var n=i(u.Current);m=d.get(n).ToArray()}}),(function(){l.Dispose(u)}))}))},h.prototype.groupJoin=function(e,t,i,r,s){t=l.createLambda(t),i=l.createLambda(i),r=l.createLambda(r);var a=this;return new h((function(){var o=a.GetEnumerator(),u=null;return new c((function(){o=a.GetEnumerator(),u=h.from(e).toLookup(i,n.Identity,s)}),(function(){if(o.moveNext()){var e=u.get(t(o.Current));return this.yieldReturn(r(o.Current,e))}return!1}),(function(){l.Dispose(o)}))}))},h.prototype.all=function(e){e=l.createLambda(e);var t=!0;return this.forEach((function(n){if(!e(n))return t=!1,!1})),t},h.prototype.any=function(e){e=l.createLambda(e);var t=this.GetEnumerator();try{if(0==arguments.length)return t.moveNext();for(;t.moveNext();)if(e(t.Current))return!0;return!1}finally{l.Dispose(t)}},h.prototype.isEmpty=function(){return!this.any()},h.prototype.concat=function(){var e=this;if(1==arguments.length){var t=arguments[0];return new h((function(){var n,i;return new c((function(){n=e.GetEnumerator()}),(function(){if(null==i){if(n.moveNext())return this.yieldReturn(n.Current);i=h.from(t).GetEnumerator()}return!!i.moveNext()&&this.yieldReturn(i.Current)}),(function(){try{l.Dispose(n)}finally{l.Dispose(i)}}))}))}var n=arguments;return new h((function(){var t;return new c((function(){t=h.make(e).concat(h.from(n).select(h.from)).select((function(e){return e.GetEnumerator()})).ToArray()}),(function(){for(;t.length>0;){var e=t[0];if(e.moveNext())return this.yieldReturn(e.Current);e.Dispose(),t.splice(0,1)}return this.yieldBreak()}),(function(){h.from(t).forEach(l.Dispose)}))}))},h.prototype.insert=function(e,t){var n=this;return new h((function(){var i,r,s=0,a=!1;return new c((function(){i=n.GetEnumerator(),r=h.from(t).GetEnumerator()}),(function(){return s==e&&r.moveNext()?(a=!0,this.yieldReturn(r.Current)):i.moveNext()?(s++,this.yieldReturn(i.Current)):!(a||!r.moveNext())&&this.yieldReturn(r.Current)}),(function(){try{l.Dispose(i)}finally{l.Dispose(r)}}))}))},h.prototype.alternate=function(e){var t=this;return new h((function(){var n,i,r,s;return new c((function(){r=e instanceof Array||null!=e.GetEnumerator?h.from(h.from(e).ToArray()):h.make(e),(i=t.GetEnumerator()).moveNext()&&(n=i.Current)}),(function(){for(;;){if(null!=s){if(s.moveNext())return this.yieldReturn(s.Current);s=null}if(null!=n||!i.moveNext()){if(null!=n){var e=n;return n=null,this.yieldReturn(e)}return this.yieldBreak()}n=i.Current,s=r.GetEnumerator()}}),(function(){try{l.Dispose(i)}finally{l.Dispose(s)}}))}))},h.prototype.contains=function(e,t){t=t||System.Collections.Generic.EqualityComparer$1.$default;var n=this.GetEnumerator();try{for(;n.moveNext();)if(t.equals2(n.Current,e))return!0;return!1}finally{l.Dispose(n)}},h.prototype.defaultIfEmpty=function(e){var n=this;return e===t&&(e=null),new h((function(){var t,i=!0;return new c((function(){t=n.GetEnumerator()}),(function(){return t.moveNext()?(i=!1,this.yieldReturn(t.Current)):!!i&&(i=!1,this.yieldReturn(e))}),(function(){l.Dispose(t)}))}))},h.prototype.distinct=function(e){return this.except(h.empty(),e)},h.prototype.distinctUntilChanged=function(e){e=l.createLambda(e);var t=this;return new h((function(){var n,i,r;return new c((function(){n=t.GetEnumerator()}),(function(){for(;n.moveNext();){var t=e(n.Current);if(r)return r=!1,i=t,this.yieldReturn(n.Current);if(i!==t)return i=t,this.yieldReturn(n.Current)}return this.yieldBreak()}),(function(){l.Dispose(n)}))}))},h.prototype.except=function(e,t){var n=this;return new h((function(){var i,r,s=!1;return new c((function(){i=n.GetEnumerator(),r=new(System.Collections.Generic.Dictionary$2(System.Object,System.Object).$ctor3)(t),h.from(e).forEach((function(e){null==e?s=!0:r.containsKey(e)||r.add(e)}))}),(function(){for(;i.moveNext();){var e=i.Current;if(null==e){if(!s)return s=!0,this.yieldReturn(e)}else if(!r.containsKey(e))return r.add(e),this.yieldReturn(e)}return!1}),(function(){l.Dispose(i)}))}))},h.prototype.intersect=function(e,t){var n=this;return new h((function(){var i,r,s,a=!1,o=!1;return new c((function(){i=n.GetEnumerator(),r=new(System.Collections.Generic.Dictionary$2(System.Object,System.Object).$ctor3)(t),h.from(e).forEach((function(e){null==e?a=!0:r.containsKey(e)||r.add(e)})),s=new(System.Collections.Generic.Dictionary$2(System.Object,System.Object).$ctor3)(t)}),(function(){for(;i.moveNext();){var e=i.Current;if(null==e){if(!o&&a)return o=!0,this.yieldReturn(e)}else if(!s.containsKey(e)&&r.containsKey(e))return s.add(e),this.yieldReturn(e)}return!1}),(function(){l.Dispose(i)}))}))},h.prototype.sequenceEqual=function(e,t){t=t||System.Collections.Generic.EqualityComparer$1.$default;var n=this.GetEnumerator();try{var i=h.from(e).GetEnumerator();try{for(;n.moveNext();)if(!i.moveNext()||!t.equals2(n.Current,i.Current))return!1;return!i.moveNext()}finally{l.Dispose(i)}}finally{l.Dispose(n)}},h.prototype.union=function(e,n){var i=this;return new h((function(){var r,s,a,o=!1;return new c((function(){r=i.GetEnumerator(),a=new(System.Collections.Generic.Dictionary$2(System.Object,System.Object).$ctor3)(n)}),(function(){var n;if(s===t){for(;r.moveNext();)if(null==(n=r.Current)){if(!o)return o=!0,this.yieldReturn(n)}else if(!a.containsKey(n))return a.add(n),this.yieldReturn(n);s=h.from(e).GetEnumerator()}for(;s.moveNext();)if(null==(n=s.Current)){if(!o)return o=!0,this.yieldReturn(n)}else if(!a.containsKey(n))return a.add(n),this.yieldReturn(n);return!1}),(function(){try{l.Dispose(r)}finally{l.Dispose(s)}}))}))},h.prototype.orderBy=function(e,t){return new g(this,e,t,!1)},h.prototype.orderByDescending=function(e,t){return new g(this,e,t,!0)},h.prototype.reverse=function(){var e=this;return new h((function(){var t,i;return new c((function(){t=e.ToArray(),i=t.length}),(function(){return i>0&&this.yieldReturn(t[--i])}),n.Blank)}))},h.prototype.shuffle=function(){var e=this;return new h((function(){var t;return new c((function(){t=e.ToArray()}),(function(){if(t.length>0){var e=Math.floor(Math.random()*t.length);return this.yieldReturn(t.splice(e,1)[0])}return!1}),n.Blank)}))},h.prototype.weightedSample=function(e){e=l.createLambda(e);var t=this;return new h((function(){var i,r=0;return new c((function(){i=t.choose((function(t){var n=e(t);return n<=0?null:{value:t,bound:r+=n}})).ToArray()}),(function(){if(i.length>0){for(var e=Math.floor(Math.random()*r)+1,t=-1,n=i.length;n-t>1;){var s=Math.floor((t+n)/2);i[s].bound>=e?n=s:t=s}return this.yieldReturn(i[n].value)}return this.yieldBreak()}),n.Blank)}))},h.prototype.groupBy=function(e,t,n,i){var r=this;return e=l.createLambda(e),t=l.createLambda(t),null!=n&&(n=l.createLambda(n)),new h((function(){var s;return new c((function(){s=r.toLookup(e,t,i).toEnumerable().GetEnumerator()}),(function(){for(;s.moveNext();)return null==n?this.yieldReturn(s.Current):this.yieldReturn(n(s.Current.key(),s.Current));return!1}),(function(){l.Dispose(s)}))}))},h.prototype.partitionBy=function(e,t,n,i){var r,s=this;return e=l.createLambda(e),t=l.createLambda(t),i=i||System.Collections.Generic.EqualityComparer$1.$default,null==n?(r=!1,n=function(e,t){return new b(e,t)}):(r=!0,n=l.createLambda(n)),new h((function(){var a,o,u=[];return new c((function(){(a=s.GetEnumerator()).moveNext()&&(o=e(a.Current),u.push(t(a.Current)))}),(function(){for(var s;1==(s=a.moveNext())&&i.equals2(o,e(a.Current));)u.push(t(a.Current));if(u.length>0){var l=n(o,r?h.from(u):u);return s?(o=e(a.Current),u=[t(a.Current)]):u=[],this.yieldReturn(l)}return!1}),(function(){l.Dispose(a)}))}))},h.prototype.buffer=function(e){var t=this;return new h((function(){var n;return new c((function(){n=t.GetEnumerator()}),(function(){for(var t=[],i=0;n.moveNext();)if(t.push(n.Current),++i>=e)return this.yieldReturn(t);return t.length>0&&this.yieldReturn(t)}),(function(){l.Dispose(n)}))}))},h.prototype.aggregate=function(e,t,n){return(n=l.createLambda(n))(this.scan(e,t,n).last())},h.prototype.average=function(e,t){!e||t||Bridge.isFunction(e)||(t=e,e=null),e=l.createLambda(e);var n=t||0,i=0;return this.forEach((function(t){(t=e(t))instanceof System.Decimal||System.Int64.is64Bit(t)?n=t.add(n):n instanceof System.Decimal||System.Int64.is64Bit(n)?n=n.add(t):n+=t,++i})),n instanceof System.Decimal||System.Int64.is64Bit(n)?n.div(i):n/i},h.prototype.nullableAverage=function(e,t){return this.any(Bridge.isNull)?null:this.average(e,t)},h.prototype.count=function(e){e=null==e?n.True:l.createLambda(e);var t=0;return this.forEach((function(n,i){e(n,i)&&++t})),t},h.prototype.max=function(e){return null==e&&(e=n.Identity),this.select(e).aggregate((function(e,t){return 1===Bridge.compare(e,t,!0)?e:t}))},h.prototype.nullableMax=function(e){return this.any(Bridge.isNull)?null:this.max(e)},h.prototype.min=function(e){return null==e&&(e=n.Identity),this.select(e).aggregate((function(e,t){return-1===Bridge.compare(e,t,!0)?e:t}))},h.prototype.nullableMin=function(e){return this.any(Bridge.isNull)?null:this.min(e)},h.prototype.maxBy=function(e){return e=l.createLambda(e),this.aggregate((function(t,n){return 1===Bridge.compare(e(t),e(n),!0)?t:n}))},h.prototype.minBy=function(e){return e=l.createLambda(e),this.aggregate((function(t,n){return-1===Bridge.compare(e(t),e(n),!0)?t:n}))},h.prototype.sum=function(e,t){!e||t||Bridge.isFunction(e)||(t=e,e=null),null==e&&(e=n.Identity);var i=this.select(e).aggregate(0,(function(e,t){return e instanceof System.Decimal||System.Int64.is64Bit(e)?e.add(t):t instanceof System.Decimal||System.Int64.is64Bit(t)?t.add(e):e+t}));return 0===i&&t?t:i},h.prototype.nullableSum=function(e,t){return this.any(Bridge.isNull)?null:this.sum(e,t)},h.prototype.elementAt=function(e){var t,n=!1;if(this.forEach((function(i,r){if(r==e)return t=i,n=!0,!1})),!n)throw Error("index is less than 0 or greater than or equal to the number of elements in source.");return t},h.prototype.elementAtOrDefault=function(e,n){var i;n===t&&(n=null);var r=!1;return this.forEach((function(t,n){if(n==e)return i=t,r=!0,!1})),r?i:n},h.prototype.first=function(e){if(null!=e)return this.where(e).first();var t,n=!1;if(this.forEach((function(e){return t=e,n=!0,!1})),!n)throw Error("first:No element satisfies the condition.");return t},h.prototype.firstOrDefault=function(e,n){if(n===t&&(n=null),null!=e)return this.where(e).firstOrDefault(null,n);var i,r=!1;return this.forEach((function(e){return i=e,r=!0,!1})),r?i:n},h.prototype.last=function(e){if(null!=e)return this.where(e).last();var t,n=!1;if(this.forEach((function(e){n=!0,t=e})),!n)throw Error("last:No element satisfies the condition.");return t},h.prototype.lastOrDefault=function(e,n){if(n===t&&(n=null),null!=e)return this.where(e).lastOrDefault(null,n);var i,r=!1;return this.forEach((function(e){r=!0,i=e})),r?i:n},h.prototype.single=function(e){if(null!=e)return this.where(e).single();var t,n=!1;if(this.forEach((function(e){if(n)throw Error("single:sequence contains more than one element.");n=!0,t=e})),!n)throw Error("single:No element satisfies the condition.");return t},h.prototype.singleOrDefault=function(e,n){if(n===t&&(n=null),null!=e)return this.where(e).singleOrDefault(null,n);var i,r=!1;return this.forEach((function(e){if(r)throw Error("single:sequence contains more than one element.");r=!0,i=e})),r?i:n},h.prototype.skip=function(e){var t=this;return new h((function(){var n,i=0;return new c((function(){for(n=t.GetEnumerator();i++<e&&n.moveNext(););}),(function(){return!!n.moveNext()&&this.yieldReturn(n.Current)}),(function(){l.Dispose(n)}))}))},h.prototype.skipWhile=function(e){e=l.createLambda(e);var t=this;return new h((function(){var n,i=0,r=!1;return new c((function(){n=t.GetEnumerator()}),(function(){for(;!r;){if(!n.moveNext())return!1;if(!e(n.Current,i++))return r=!0,this.yieldReturn(n.Current)}return!!n.moveNext()&&this.yieldReturn(n.Current)}),(function(){l.Dispose(n)}))}))},h.prototype.take=function(e){var t=this;return new h((function(){var n,i=0;return new c((function(){n=t.GetEnumerator()}),(function(){return!!(i++<e&&n.moveNext())&&this.yieldReturn(n.Current)}),(function(){l.Dispose(n)}))}))},h.prototype.takeWhile=function(e){e=l.createLambda(e);var t=this;return new h((function(){var n,i=0;return new c((function(){n=t.GetEnumerator()}),(function(){return!(!n.moveNext()||!e(n.Current,i++))&&this.yieldReturn(n.Current)}),(function(){l.Dispose(n)}))}))},h.prototype.takeExceptLast=function(e){null==e&&(e=1);var t=this;return new h((function(){if(e<=0)return t.GetEnumerator();var n,i=[];return new c((function(){n=t.GetEnumerator()}),(function(){for(;n.moveNext();){if(i.length==e)return i.push(n.Current),this.yieldReturn(i.shift());i.push(n.Current)}return!1}),(function(){l.Dispose(n)}))}))},h.prototype.takeFromLast=function(e){if(e<=0||null==e)return h.empty();var t=this;return new h((function(){var n,i,r=[];return new c((function(){n=t.GetEnumerator()}),(function(){if(null==i){for(;n.moveNext();)r.length==e&&r.shift(),r.push(n.Current);i=h.from(r).GetEnumerator()}return!!i.moveNext()&&this.yieldReturn(i.Current)}),(function(){l.Dispose(i)}))}))},h.prototype.indexOf=function(e,t){var n=null;return typeof e===a?this.forEach((function(t,i){if(e(t,i))return n=i,!1})):(t=t||System.Collections.Generic.EqualityComparer$1.$default,this.forEach((function(i,r){if(t.equals2(i,e))return n=r,!1}))),null!==n?n:-1},h.prototype.lastIndexOf=function(e,t){var n=-1;return typeof e===a?this.forEach((function(t,i){e(t,i)&&(n=i)})):(t=t||System.Collections.Generic.EqualityComparer$1.$default,this.forEach((function(i,r){t.equals2(i,e)&&(n=r)}))),n},h.prototype.asEnumerable=function(){return h.from(this)},h.prototype.ToArray=function(e){var t=System.Array.init([],e||System.Object);return this.forEach((function(e){t.push(e)})),t},h.prototype.toList=function(e){var t=[];return this.forEach((function(e){t.push(e)})),new(System.Collections.Generic.List$1(e||System.Object).$ctor1)(t)},h.prototype.toLookup=function(e,t,n){e=l.createLambda(e),t=l.createLambda(t);var i,r=new(System.Collections.Generic.Dictionary$2(System.Object,System.Object).$ctor3)(n),s=[];return this.forEach((function(n){var a=e(n),o=t(n),l={v:null};null==a?(i||(i=[],s.push(a)),i.push(o)):r.tryGetValue(a,l)?l.v.push(o):(s.push(a),r.add(a,[o]))})),new S(r,s,i)},h.prototype.toObject=function(e,t){e=l.createLambda(e),t=l.createLambda(t);var n={};return this.forEach((function(i){n[e(i)]=t(i)})),n},h.prototype.toDictionary=function(e,t,n,i,r){e=l.createLambda(e),t=l.createLambda(t);var s=new(System.Collections.Generic.Dictionary$2(n,i).$ctor3)(r);return this.forEach((function(n){s.add(e(n),t(n))})),s},h.prototype.toJSONString=function(e,t){if(typeof JSON===s||null==JSON.stringify)throw Error("toJSONString can't find JSON.stringify. This works native JSON support Browser or include json2.js");return JSON.stringify(this.ToArray(),e,t)},h.prototype.toJoinedString=function(e,t){return null==e&&(e=""),null==t&&(t=n.Identity),this.select(t).ToArray().join(e)},h.prototype.doAction=function(e){var t=this;return e=l.createLambda(e),new h((function(){var n,i=0;return new c((function(){n=t.GetEnumerator()}),(function(){return!!n.moveNext()&&(e(n.Current,i++),this.yieldReturn(n.Current))}),(function(){l.Dispose(n)}))}))},h.prototype.forEach=function(e){e=l.createLambda(e);var t=0,n=this.GetEnumerator();try{for(;n.moveNext()&&!1!==e(n.Current,t++););}finally{l.Dispose(n)}},h.prototype.write=function(e,t){null==e&&(e=""),t=l.createLambda(t);var n=!0;this.forEach((function(i){n?n=!1:document.write(e),document.write(t(i))}))},h.prototype.writeLine=function(e){e=l.createLambda(e),this.forEach((function(t){document.writeln(e(t)+"<br />")}))},h.prototype.force=function(){var e=this.GetEnumerator();try{for(;e.moveNext(););}finally{l.Dispose(e)}},h.prototype.letBind=function(e){e=l.createLambda(e);var t=this;return new h((function(){var n;return new c((function(){n=h.from(e(t)).GetEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.Current)}),(function(){l.Dispose(n)}))}))},h.prototype.share=function(){var e,t=this,i=!1;return new p((function(){return new c((function(){null==e&&(e=t.GetEnumerator())}),(function(){if(i)throw Error("enumerator is disposed");return!!e.moveNext()&&this.yieldReturn(e.Current)}),n.Blank)}),(function(){i=!0,l.Dispose(e)}))},h.prototype.memoize=function(){var e,t,i=this,r=!1;return new p((function(){var s=-1;return new c((function(){null==t&&(t=i.GetEnumerator(),e=[])}),(function(){if(r)throw Error("enumerator is disposed");return s++,e.length<=s?!!t.moveNext()&&this.yieldReturn(e[s]=t.Current):this.yieldReturn(e[s])}),n.Blank)}),(function(){r=!0,l.Dispose(t),e=null}))},h.prototype.catchError=function(e){e=l.createLambda(e);var t=this;return new h((function(){var n;return new c((function(){n=t.GetEnumerator()}),(function(){try{return!!n.moveNext()&&this.yieldReturn(n.Current)}catch(t){return e(t),!1}}),(function(){l.Dispose(n)}))}))},h.prototype.finallyAction=function(e){e=l.createLambda(e);var t=this;return new h((function(){var n;return new c((function(){n=t.GetEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.Current)}),(function(){try{l.Dispose(n)}finally{e()}}))}))},h.prototype.log=function(e){return e=l.createLambda(e),this.doAction((function(t){typeof console!==s&&console.log(e(t))}))},h.prototype.trace=function(e,t){return null==e&&(e="Trace"),t=l.createLambda(t),this.doAction((function(n){typeof console!==s&&console.log(e,t(n))}))};var m={compare:function(e,t){if(!Bridge.hasValue(e))return Bridge.hasValue(t)?-1:0;if(!Bridge.hasValue(t))return 1;if("string"==typeof e&&"string"==typeof t){var n=System.String.compare(e,t,!0);if(0!==n)return n}return Bridge.compare(e,t)}},g=function(e,t,n,i,r){this.source=e,this.keySelector=l.createLambda(t),this.comparer=n||m,this.descending=i,this.parent=r};g.prototype=new h,g.prototype.constructor=g,$$sdi("Z$.I$.Nx$"),g.$$inherits=[],g.prototype.createOrderedEnumerable=function(e,t,n){return new g(this.source,e,t,n,this)},g.prototype.thenBy=function(e,t){return this.createOrderedEnumerable(e,t,!1)},g.prototype.thenByDescending=function(e,t){return this.createOrderedEnumerable(e,t,!0)},g.prototype.GetEnumerator=function(){var e,t,i=this,r=0;return new c((function(){e=[],t=[],i.source.forEach((function(n,i){e.push(n),t.push(i)}));var n=$.create(i,null);n.GenerateKeys(e),t.sort((function(e,t){return n.compare(e,t)}))}),(function(){return r<t.length&&this.yieldReturn(e[t[r++]])}),n.Blank)};var $=function(e,t,n,i){this.keySelector=e,this.comparer=t,this.descending=n,this.child=i,this.keys=null};$.create=function(e,t){var n=new $(e.keySelector,e.comparer,e.descending,t);return null!=e.parent?$.create(e.parent,n):n},$.prototype.GenerateKeys=function(e){for(var t=e.length,n=this.keySelector,i=Array(t),r=0;r<t;r++)i[r]=n(e[r]);this.keys=i,null!=this.child&&this.child.GenerateKeys(e)},$.prototype.compare=function(e,t){var n=this.comparer.compare(this.keys[e],this.keys[t]);return 0==n?null!=this.child?this.child.compare(e,t):l.compare(e,t):this.descending?-n:n};var p=function(e,t){this.Dispose=t,h.call(this,e)};p.prototype=new h;var y=function(e){this.getSource=function(){return e}};y.prototype=new h,y.prototype.any=function(e){return null==e?this.getSource().length>0:h.prototype.any.apply(this,arguments)},y.prototype.count=function(e){return null==e?this.getSource().length:h.prototype.count.apply(this,arguments)},y.prototype.elementAt=function(e){var t=this.getSource();return 0<=e&&e<t.length?t[e]:h.prototype.elementAt.apply(this,arguments)},y.prototype.elementAtOrDefault=function(e,n){n===t&&(n=null);var i=this.getSource();return 0<=e&&e<i.length?i[e]:n},y.prototype.first=function(e){var t=this.getSource();return null==e&&t.length>0?t[0]:h.prototype.first.apply(this,arguments)},y.prototype.firstOrDefault=function(e,n){if(n===t&&(n=null),null!=e)return h.prototype.firstOrDefault.apply(this,arguments);var i=this.getSource();return i.length>0?i[0]:n},y.prototype.last=function(e){var t=this.getSource();return null==e&&t.length>0?t[t.length-1]:h.prototype.last.apply(this,arguments)},y.prototype.lastOrDefault=function(e,n){if(n===t&&(n=null),null!=e)return h.prototype.lastOrDefault.apply(this,arguments);var i=this.getSource();return i.length>0?i[i.length-1]:n},y.prototype.skip=function(e){var t=this.getSource();return new h((function(){var i;return new c((function(){i=e<0?0:e}),(function(){return i<t.length&&this.yieldReturn(t[i++])}),n.Blank)}))},y.prototype.takeExceptLast=function(e){return null==e&&(e=1),this.take(this.getSource().length-e)},y.prototype.takeFromLast=function(e){return this.skip(this.getSource().length-e)},y.prototype.reverse=function(){var e=this.getSource();return new h((function(){var t;return new c((function(){t=e.length}),(function(){return t>0&&this.yieldReturn(e[--t])}),n.Blank)}))},y.prototype.sequenceEqual=function(e,t){return(!(e instanceof y||e instanceof Array)||null!=t||h.from(e).count()==this.count())&&h.prototype.sequenceEqual.apply(this,arguments)},y.prototype.toJoinedString=function(e,t){var n=this.getSource();return null==t&&n instanceof Array?(null==e&&(e=""),n.join(e)):h.prototype.toJoinedString.apply(this,arguments)},y.prototype.GetEnumerator=function(){return new Bridge.ArrayEnumerator(this.getSource())};var f=function(e,t){this.prevSource=e,this.prevPredicate=t};f.prototype=new h,f.prototype.where=function(e){if((e=l.createLambda(e)).length<=1){var t=this.prevPredicate;return new f(this.prevSource,(function(n){return t(n)&&e(n)}))}return h.prototype.where.call(this,e)},f.prototype.select=function(e){return(e=l.createLambda(e)).length<=1?new _(this.prevSource,this.prevPredicate,e):h.prototype.select.call(this,e)},f.prototype.GetEnumerator=function(){var e,t=this.prevPredicate,n=this.prevSource;return new c((function(){e=n.GetEnumerator()}),(function(){for(;e.moveNext();)if(t(e.Current))return this.yieldReturn(e.Current);return!1}),(function(){l.Dispose(e)}))};var _=function(e,t,n){this.prevSource=e,this.prevPredicate=t,this.prevSelector=n};_.prototype=new h,_.prototype.where=function(e){return(e=l.createLambda(e)).length<=1?new f(this,e):h.prototype.where.call(this,e)},_.prototype.select=function(e){if((e=l.createLambda(e)).length<=1){var t=this.prevSelector;return new _(this.prevSource,this.prevPredicate,(function(n){return e(t(n))}))}return h.prototype.select.call(this,e)},_.prototype.GetEnumerator=function(){var e,t=this.prevPredicate,n=this.prevSelector,i=this.prevSource;return new c((function(){e=i.GetEnumerator()}),(function(){for(;e.moveNext();)if(null==t||t(e.Current))return this.yieldReturn(n(e.Current));return!1}),(function(){l.Dispose(e)}))};var S=function(e,t,n){this.count=function(){return e.Count},this.get=function(t){if(null==t)return h.from(n||[]);var i={v:null},r=e.tryGetValue(t,i);return h.from(r?i.v:[])},this.contains=function(t){return null==t?!!n:e.containsKey(t)},this.toEnumerable=function(){return h.from(t).select((function(t){return new b(t,null==t?n:e.getItem(t))}))},this.GetEnumerator=function(){return this.toEnumerable().GetEnumerator()}};$$sdi("Z$.I$.Ox$"),S.$$inherits=[];var b=function(e,t){this.key=function(){return e},y.call(this,t)};b.prototype=new y,$$sdi("Z$.I$.Px$"),b.prototype.constructor=b,b.$$inherits=[],Bridge.Linq={},Bridge.Linq.Enumerable=h,System.Linq=System.Linq||{},System.Linq.Enumerable=h,System.Linq.Grouping$2=b,System.Linq.Lookup$2=S,System.Linq.OrderedEnumerable$1=g}(Bridge.global),$$sd("Z$.N$.J$.Qd$",{$kind:3}),$$sd("Z$.N$.J$.Ud$",{$kind:3}),$$sd("Z$.N$.J$.Kw$",{inherits:[Z$.zw$]}),$$sd("Z$.N$.J$.Lw$",{inherits:[Z$.zw$]}),$$sd("Z$.h$.g$.Ux$",{statics:{v$:15,w$:System.TimeSpan.fromMilliseconds(-1),r$:function(){return Z$.h$.g$.Ux$.v$},s$:function(e){if(e<0)throw new Z$.qu$.$ctor1("value");Z$.h$.g$.Ux$.v$=e},t$:function(e){return Z$.h$.g$.gy$.G$(e)},u$:function(e){return Z$.h$.g$.gy$.H$(e)},d$:function(e,t,n,i){var r=Z$.h$.g$;return Bridge.isDefined(n)||(n=r.Ie$.Ja$),Bridge.isDefined(i)||(i=r.Ux$.w$),new Z$.h$.g$.Ux$.ctor(t,n,i,!0).isMatch(e)},match:function(e,t,n,i){var r=Z$.h$.g$;return Bridge.isDefined(n)||(n=r.Ie$.Ja$),Bridge.isDefined(i)||(i=r.Ux$.w$),new Z$.h$.g$.Ux$.ctor(t,n,i,!0).match(e)},e$:function(e,t,n,i){var r=Z$.h$.g$;return Bridge.isDefined(n)||(n=r.Ie$.Ja$),Bridge.isDefined(i)||(i=r.Ux$.w$),new Z$.h$.g$.Ux$.ctor(t,n,i,!0).matches(e)},replace:function(e,t,n,i,r){var s=Z$.h$.g$;return Bridge.isDefined(i)||(i=s.Ie$.Ja$),Bridge.isDefined(r)||(r=s.Ux$.w$),new Z$.h$.g$.Ux$.ctor(t,i,r,!0).replace(e,n)},split:function(e,t,n,i){var r=Z$.h$.g$;return Bridge.isDefined(n)||(n=r.Ie$.Ja$),Bridge.isDefined(i)||(i=r.Ux$.w$),new Z$.h$.g$.Ux$.ctor(t,n,i,!0).split(e)}},k$:"",l$:System.TimeSpan.fromMilliseconds(-1),m$:null,n$:null,o$:0,p$:null,q$:null,config:{init:function(){this._options=Z$.h$.g$.Ie$.Ja$}},ctor:function(e,t,n,i){this.$initialize(),Bridge.isDefined(t)||(t=Z$.h$.g$.Ie$.Ja$),Bridge.isDefined(n)||(n=Z$.xv$.ZIa$(-1)),Bridge.isDefined(i)||(i=!1);var r=Z$.h$.g$;if(t<r.Ie$.Ja$||t>>10!=0)throw new Z$.qu$.$ctor1("options");if(0!=(t&r.Ie$.Gb$)&&0!=(t&~(r.Ie$.Gb$|r.Ie$.Ab$|r.Ie$.Bb$|r.Ie$.Hb$)))throw new Z$.qu$.$ctor1("options");Z$.h$.g$.Ie$.Ab$,Z$.h$.g$.Ie$.Bb$,Z$.h$.g$.Ie$.Eb$,Z$.h$.g$.Ie$.Fb$,Z$.h$.g$.Ie$.Cb$,this.j$(n),this.k$=e,this._options=t,this.l$=n,this.m$=new r.fy$(this);var s=this.m$.parsePattern();this.p$=s.sparseSettings.sparseSlotNameMap,this.q$=s.sparseSettings.sparseSlotNameMap.keys,this.o$=this.q$.length},a$:function(){return this.l$},b$:function(){return this._options},c$:function(){return 0!=(this._options&Z$.h$.g$.Ie$.M$)},d$:function(e,t){return Bridge.isDefined(t)||(t=this.c$()?e.length:0),null==this.m$.run(!0,-1,e,0,e.length,t)},match:function(e,t,n){var i=e.length,r=0;return 3===arguments.length?(r=t,i=n,t=this.c$()?r+i:r):Bridge.isDefined(t)||(t=this.c$()?i:0),this.m$.run(!1,-1,e,r,i,t)},e$:function(e,t){return Bridge.isDefined(t)||(t=this.c$()?e.length:0),new Z$.h$.g$.dy$(this,e,0,e.length,t)},f$:function(){if(null==this.q$){var e,t=Z$.f$.ov$.invariantCulture,n=[],i=this.o$;for(e=0;e<i;e++)n[e]=Z$.Convert.toString(e,t,Z$.Convert.typeCodes.Int32);return n}return this.q$.slice()},g$:function(){var e,t,n,i,r=this.n$;if(null==r)for(e=[],n=this.o$,i=0;i<n;i++)e.push(i);else for(t in e=[],r)r.hasOwnProperty(t)&&(e[r[t]]=t);return e},h$:function(e){if(null==this.q$){if(e>=0&&e<this.o$){var t=Z$.f$.ov$.invariantCulture;return Z$.Convert.toString(e,t,Z$.Convert.typeCodes.Int32)}return""}if(null!=this.n$){var n=this.n$[e];return null==n?"":parseInt(n)}return e>=0&&e<this.q$.length?this.q$[e]:""},i$:function(e){if(null!=this.p$){var t=this.p$[e];return null==t?-1:parseInt(t)}var n,i,r=0;for(i=0;i<e.Length;i++){if((n=e[i])>"9"||n<"0")return-1;r*=10,r+=n-"0"}return r>=0&&r<this.o$?r:-1},replace:function(e,t,n,i){return Bridge.isDefined(n)||(n=-1),Bridge.isDefined(i)||(i=this.c$()?e.length:0),Bridge.isFunction(t)?Z$.h$.g$.iy$.replace(t,this,e,n,i):Z$.h$.g$.gy$.I$(t,this.n$,this.o$,this.p$,this._options).replace(this,e,n,i)},split:function(e,t,n){return Bridge.isDefined(t)||(t=0),Bridge.isDefined(n)||(n=this.c$()?e.length:0),Z$.h$.g$.iy$.split(this,e,t,n)},j$:function(e){var t=e.getTotalMilliseconds();if(-1!==t&&!(t>0&&t<=2147483646))throw new Z$.qu$.$ctor1("matchTimeout")}}),$$sd("Z$.h$.g$.Vx$",{g$:"",h$:0,i$:0,ctor:function(e,t,n){this.$initialize(),this.g$=e,this.h$=t,this.i$=n},a$:function(){return this.h$},b$:function(){return this.i$},c$:function(){return this.g$.substr(this.h$,this.i$)},toString:function(){return this.c$()},d$:function(){return this.g$},e$:function(){return this.g$.slice(0,_index)},f$:function(){return this.g$.slice(this.h$+this.i$,this.g$.length)}}),$$sd("Z$.h$.g$.Zx$",{inherits:function(){return[Z$.C$.wd$]},config:{properties:{Cw$:{}},alias:["Cw$","iKa$"]},PPa$:null,QPa$:0,RPa$:null}),$$sd("Z$.h$.g$.ay$",{inherits:function(){return[Z$.C$.Id$]},config:{properties:{Fh$:{}},alias:["Fh$","OKa$"]},TPa$:null,UPa$:0}),$$sd("Z$.h$.g$.Wx$",{inherits:function(){return[Z$.h$.g$.Vx$]},statics:{config:{init:function(){var e=new System.Text.RegularExpressions.Group("",[],0);this.getEmpty=function(){return e}}}},l$:null,m$:0,n$:null,ctor:function(e,t,n){this.$initialize();var i=Z$.h$.g$,r=0===n?0:t[2*(n-1)],s=0===n?0:t[2*n-1];i.Vx$.ctor.call(this,e,r,s),this.l$=t,this.m$=n},j$:function(){return 0!==this.m$}}),$$sd("Z$.h$.g$.by$",{inherits:function(){return[Z$.C$.wd$]},config:{properties:{Cw$:{}},alias:["Cw$","iKa$"]},ZPa$:null,aQa$:null,bQa$:null}),$$sd("Z$.h$.g$.cy$",{inherits:function(){return[Z$.C$.Id$]},config:{properties:{Fh$:{}},alias:["Fh$","OKa$"]},cQa$:null,UPa$:0}),$$sd("Z$.h$.g$.Xx$",{inherits:function(){return[Z$.h$.g$.Wx$]},statics:{config:{init:function(){var e=new System.Text.RegularExpressions.Match(null,1,"",0,0,0);this.getEmpty=function(){return e}}},o$:function(e){var t,n,i=e.getGroups(),r=i.getCount();for(n=0;n<r;n++)t=i.get(n),Z$.h$.g$.Wx$.o$(t);return e}},x$:null,y$:null,z$:null,A$:0,B$:0,C$:0,D$:null,E$:0,ctor:function(e,t,n,i,r,s){this.$initialize();var a,o=[0,0];for(Z$.h$.g$.Wx$.ctor.call(this,n,o,0),this.x$=e,this.y$=[],this.y$.length=t,a=0;a<t;a++)this.y$[a]=0;this.z$=[],this.z$.length=t,this.z$[0]=o,this.A$=i,this.B$=i+r,this.C$=s},p$:function(){return null==this.D$&&(this.D$=new Z$.h$.g$.by$(this,null)),this.D$},q$:function(){return null==this.x$?this:this.x$._runner.run(!1,this.i$,this.g$,this.A$,this.B$-this.A$,this.E$)},r$:function(e){return this.x$,Z$.h$.g$.gy$.I$(e,this.x$._caps,this.x$._capsize,this.x$._capnames,this.x$._options).b$(this)},s$:function(e){return e<this.y$.length&&this.y$[e]>0&&-2!==this.z$[e][2*this.y$[e]-1]},t$:function(e,t,n){null==this.z$[e]&&(this.z$[e]=[,,]);var i=this.y$[e];if(2*i+2>this.z$[e].length){var r,s=this.z$[e],a=Array(8*i);for(r=0;r<2*i;r++)a[r]=s[r];this.z$[e]=a}this.z$[e][2*i]=t,this.z$[e][2*i+1]=n,this.y$[e]=i+1},u$:function(e){var t=this.z$[0];this.h$=t[0],this.i$=t[1],this.E$=e,this.m$=this.y$[0]},v$:function(e){var t=this.y$[e];if(0===t)return"";var n=this.z$[e],i=n[2*(t-1)],r=n[2*t-1];return this.g$.slice(i,i+r)},w$:function(){return this.v$(this.y$.length-1)}}),$$sd("Z$.h$.g$.Yx$",{inherits:function(){return[Z$.h$.g$.Xx$]},l$:null}),$$sd("Z$.h$.g$.dy$",{inherits:function(){return[Z$.C$.wd$]},config:{properties:{Cw$:{}},alias:["Cw$","iKa$"]},eQa$:null,fQa$:null,gQa$:0,hQa$:0,iQa$:0,jQa$:0,kQa$:null,lQa$:!1}),$$sd("Z$.h$.g$.ey$",{inherits:function(){return[Z$.C$.Id$]},config:{properties:{Fh$:{}},alias:["Fh$","OKa$"]},mQa$:null,ZPa$:null,UPa$:0,lQa$:!1}),$$sd("Z$.h$.g$.Ie$",{statics:{Ja$:0,Ab$:1,Bb$:2,Cb$:4,Db$:8,Eb$:16,Fb$:32,M$:64,Gb$:256,Hb$:512},$kind:6,Ia$:!0}),$$sd("Z$.h$.g$.fy$",{statics:{},d$:null,e$:null,f$:"",g$:0,h$:0,i$:0,j$:0,k$:!1,l$:0,ctor:function(e){this.$initialize(),this.d$=e;var t=e.getOptions(),n=Z$.h$.g$.Ie$,i=(t&n.Ab$)===n.Ab$,r=(t&n.Bb$)===n.Bb$,s=(t&n.Eb$)===n.Eb$,a=(t&n.Fb$)===n.Fb$,o=(t&n.Cb$)===n.Cb$,l=e._matchTimeout.getTotalMilliseconds();this.e$=new Z$.h$.g$.jy$(e._pattern,i,r,s,a,o,l)},a$:function(e,t,n,i,r,s){if(s<0||s>n.Length)throw new Z$.qu$.$ctor4("start","Start index cannot be less than 0 or greater than input length.");if(r<0||r>n.Length)throw new qu$("length","Length cannot be less than 0 or exceed input length.");var a,o;if(this.f$=n,this.h$=i,this.i$=i+r,this.j$=s,this.k$=e,this.l$=t,this.d$.getRightToLeft()?(a=this.h$,o=-1):(a=this.i$,o=1),0===this.l$){if(this.j$===a)return Z$.h$.g$.Xx$.getEmpty();this.j$+=o}var l=this.e$.match(this.f$,this.j$);return this.c$(l)},b$:function(){return this.e$.parsePattern()},c$:function(e){if(e.success&&this.k$)return null;if(!e.success)return Z$.h$.g$.Xx$.getEmpty();var t,n,i,r,s,a,o=this.b$();for(t=o.sparseSettings.isSparse?new Z$.h$.g$.Yx$(this.d$,o.sparseSettings.sparseSlotMap,e.groups.length,this.f$,0,this.f$.length,this.j$):new Z$.h$.g$.Xx$(this.d$,e.groups.length,this.f$,0,this.f$.length,this.j$),s=0;s<e.groups.length;s++)for(r=0,null!=(n=e.groups[s]).descriptor&&(r=this.d$.groupNumberFromName(n.descriptor.name)),a=0;a<n.captures.length;a++)i=n.captures[a],t._addMatch(r,i.capIndex,i.capLength);var l=e.capIndex+e.capLength;return t._tidy(l),t}}),$$sd("Z$.h$.g$.gy$",{statics:{_Q:5,_S:4,_Z:3,_X:2,_E:1,K$:[0,0,0,0,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,3,4,0,0,0,4,4,5,5,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,4,0,0,0],G$:function(e){var t,n,i,r;for(r=0;r<e.length;r++)if(Z$.h$.g$.gy$.J$(e[r])){t="",n=e[r],t+=e.slice(0,r);do{switch(t+="\\",n){case"\n":n="n";break;case"\r":n="r";break;case"\t":n="t";break;case"\f":n="f"}for(t+=n,i=++r;r<e.length&&(n=e[r],!Z$.h$.g$.gy$.J$(n));)r++;t+=e.slice(i,r)}while(r<e.length);return t}return e},H$:function(e){var t,n,i,r,s=Z$.f$.ov$.invariantCulture;for(i=0;i<e.length;i++)if("\\"===e[i]){t="",(r=new Z$.h$.g$.gy$(s))._setPattern(e),t+=e.slice(0,i);do{for(i++,r._textto(i),i<e.length&&(t+=r._scanCharEscape()),n=i=r._textpos();i<e.length&&"\\"!==e[i];)i++;t+=e.slice(n,i)}while(i<e.length);return t}return e},I$:function(e,t,n,i,r){var s=Z$.f$.ov$.OGa$(),a=new Z$.h$.g$.gy$(s);a._options=r,a.a$(t,n,i),a.b$(e);var o=a.c$();return new Z$.h$.g$.iy$(e,o,t)},J$:function(e){var t=e.charCodeAt(0);return t<=124&&Z$.h$.g$.gy$.K$[t]>=Z$.h$.g$.gy$._E}},z$:null,A$:0,B$:null,C$:"",D$:0,E$:null,F$:null,config:{init:function(){this._options=Z$.h$.g$.Ie$.Ja$}},ctor:function(e){this.$initialize(),this.F$=e,this.z$={}},a$:function(e,t,n){this.z$=e,this.A$=t,this.B$=n},b$:function(e){null==e&&(e=""),this.C$=e||"",this.D$=0},c$:function(){var e,t,n;for(this.E$=new Z$.h$.g$.hy$(Z$.h$.g$.hy$.p$,this._options);0!==(e=this.s$());){for(t=this.w$();e>0&&"$"!==this.t$();)this.v$(),e--;this.d$(t,this.w$()-t),e>0&&"$"===this.u$()&&(n=this.g$(),this.E$.addChild(n))}return this.E$},d$:function(e,t){if(0!==t){var n;if(t>1){var i=this.C$.slice(e,e+t);n=new Z$.h$.g$.hy$(Z$.h$.g$.hy$.m$,this._options,i)}else{var r=this.C$[e];n=new Z$.h$.g$.hy$(Z$.h$.g$.hy$.l$,this._options,r)}this.E$.addChild(n)}},e$:function(){return 0!=(this._options&Z$.h$.g$.Ie$.Gb$)},f$:function(e){return new Z$.ou$("Incorrect pattern. "+e)},g$:function(){var e=214748364;if(0===this.s$())return new Z$.h$.g$.hy$(Z$.h$.g$.hy$.l$,this._options,"$");var t,n,i,r=this.t$(),s=this.w$(),a=s;if("{"===r&&this.s$()>1?(t=!0,this.v$(),r=this.t$()):t=!1,r>="0"&&r<="9"){if(!t&&this.e$()){n=-1;var o=r-"0";for(this.v$(),this.p$(o)&&(n=o,a=this.w$());this.s$()>0&&(r=this.t$())>="0"&&r<="9";){if(i=r-"0",o>e||o===e&&i>7)throw this.f$("Capture group is out of range.");o=10*o+i,this.v$(),this.p$(o)&&(n=o,a=this.w$())}if(this.x$(a),n>=0)return new Z$.h$.g$.hy$(Z$.h$.g$.hy$.n$,this._options,n)}else if(n=this.h$(),(!t||this.s$()>0&&"}"===this.u$())&&this.p$(n))return new Z$.h$.g$.hy$(Z$.h$.g$.hy$.n$,this._options,n)}else if(t&&this.r$(r)){var l=this.m$();if(this.s$()>0&&"}"===this.u$()&&this.q$(l)){var c=this.o$(l);return new Z$.h$.g$.hy$(Z$.h$.g$.hy$.n$,this._options,c)}}else if(!t){switch(n=1,r){case"$":return this.v$(),new Z$.h$.g$.hy$(Z$.h$.g$.hy$.l$,this._options,"$");case"&":n=0;break;case"`":n=Z$.h$.g$.iy$.i$;break;case"'":n=Z$.h$.g$.iy$.j$;break;case"+":n=Z$.h$.g$.iy$.k$;break;case"_":n=Z$.h$.g$.iy$.l$}if(1!==n)return this.v$(),new Z$.h$.g$.hy$(Z$.h$.g$.hy$.n$,this._options,n)}return this.x$(s),new Z$.h$.g$.hy$(Z$.h$.g$.hy$.l$,this._options,"$")},h$:function(){for(var e,t,n=214748364,i=0;this.s$()>0&&!((e=this.t$())<"0"||e>"9");){if(t=e-"0",this.v$(),i>n||i===n&&t>7)throw this.f$("Capture group is out of range.");i*=10,i+=t}return i},i$:function(){var e,t,n;for((n=3)>this.s$()&&(n=this.s$()),t=0;n>0&&(e=this.t$()-"0")<=7&&(this.v$(),t*=8,t+=e,!(this.e$()&&t>=32));n-=1);return String.fromCharCode(t&=255)},j$:function(e){var t,n;if(t=0,this.s$()>=e)for(;e>0&&(n=this.k$(this.u$()))>=0;e-=1)t*=16,t+=n;if(e>0)throw this.f$("Insufficient hexadecimal digits.");return t},k$:function(e){var t,n=e.charCodeAt(0);return(t=n-48)<=9?t:(t=n-97)<=5||(t=n-65)<=5?t+10:-1},l$:function(){if(this.s$()<=0)throw this.f$("Missing control character.");var e=this.u$().charCodeAt(0);if(e>=97&&e<=122&&(e-=32),(e-=64)<32)return String.fromCharCode(e);throw this.f$("Unrecognized control character.")},m$:function(){for(var e=this.w$();this.s$()>0;)if(!this.r$(this.u$())){this.y$();break}return _pattern.slice(e,this.w$())},n$:function(){var e=this.u$();if(e>="0"&&e<="7")return this.y$(),this.i$();switch(e){case"x":return this.j$(2);case"u":return this.j$(4);case"a":return"";case"b":return"\b";case"e":return"";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return"\t";case"v":return"\v";case"c":return this.l$();default:if("8"===e||"9"===e||"_"===e||!this.e$()&&this.r$(e))throw this.f$("Unrecognized escape sequence \\"+e+".");return e}},o$:function(e){return this.B$[e]},p$:function(e){return null!=this.z$?null!=this.z$[e]:e>=0&&e<this.A$},q$:function(e){return null!=this.B$&&null!=_capnames[e]},r$:function(e){return Z$.bu$.QFa$(e.charCodeAt(0))},s$:function(){return this.C$.length-this.D$},t$:function(){return this.C$[this.D$]},u$:function(){return this.C$[this.D$++]},v$:function(){this.D$++},w$:function(){return this.D$},x$:function(e){this.D$=e},y$:function(){this.D$--}}),$$sd("Z$.h$.g$.hy$",{statics:{l$:9,m$:12,n$:13,o$:23,p$:25},h$:0,i$:null,j$:null,k$:null,_m:0,config:{init:function(){this._options=Z$.h$.g$.Ie$.Ja$}},ctor:function(e,t,n){this.$initialize(),this.h$=e,this._options=t,e===Z$.h$.g$.hy$.n$?this._m=n:this.i$=n||null},a$:function(e){null==this.j$&&(this.j$=[]);var t=e._reduce();this.j$.push(t),t._next=this},b$:function(){return null==this.j$?0:this.j$.length},c$:function(e){return this.j$[e]},d$:function(){return this.h$===Z$.h$.g$.hy$.p$?this.e$():this},e$:function(){var e,t,n,i,r,s,a=!1,o=0;if(null==this.j$)return new Z$.h$.g$.hy$(Z$.h$.g$.hy$.o$,this._options);for(i=0,r=0;i<this.j$.length;i++,r++)if(t=this.j$[i],r<i&&(this.j$[r]=t),t._type===Z$.h$.g$.hy$.p$&&t._isRightToLeft()){for(s=0;s<t._children.length;s++)t._children[s]._next=this;this.j$.splice.apply(this.j$,[i+1,0].concat(t._children)),r--}else if(t._type===Z$.h$.g$.hy$.m$||t._type===Z$.h$.g$.hy$.l$){if(e=t._options&(Z$.h$.g$.Ie$.M$|Z$.h$.g$.Ie$.Ab$),!a||o!==e){a=!0,o=e;continue}(n=this.j$[--r])._type===Z$.h$.g$.hy$.l$&&(n._type=Z$.h$.g$.hy$.m$,n._str=n._str),0==(e&Z$.h$.g$.Ie$.M$)?n._str+=t._str:n._str=t._str+n._str}else t._type===Z$.h$.g$.hy$.o$?r--:a=!1;return r<i&&this.j$.splice(r,i-r),this.f$(Z$.h$.g$.hy$.o$)},f$:function(e){switch(this.b$()){case 0:return new te.RegexNode(e,this._options);case 1:return this.c$(0);default:return this}},g$:function(){return(this._options&Z$.h$.g$.Ie$.M$)>0}}),$$sd("Z$.h$.g$.iy$",{statics:{replace:function(e,t,n,i,r){if(i<-1)throw new Z$.qu$.$ctor4("count","Count cannot be less than -1.");if(r<0||r>n.length)throw new Z$.qu$.$ctor4("startat","Start index cannot be less than 0 or greater than input length.");if(0===i)return n;var s=t.match(n,r);if(s.getSuccess()){var a,o,l,c="";if(t.getRightToLeft()){var u,h=[];a=n.length;do{if((o=s.getIndex())+(l=s.getLength())!==a&&h.push(n.slice(o+l,a)),a=o,h.push(e(s)),0==--i)break;s=s.nextMatch()}while(s.getSuccess());for(c=new yv$,a>0&&(c+=c.slice(0,a)),u=h.length-1;u>=0;u--)c+=h[u]}else{a=0;do{if(o=s.getIndex(),l=s.getLength(),o!==a&&(c+=n.slice(a,o)),a=o+l,c+=e(s),0==--i)break;s=s.nextMatch()}while(s.getSuccess());a<n.length&&(c+=n.slice(a,n.length))}return c}return n},split:function(e,t,n,i){if(n<0)throw new Z$.qu$.$ctor4("count","Count can't be less than 0.");if(i<0||i>t.length)throw new Z$.qu$.$ctor4("startat","Start index cannot be less than 0 or greater than input length.");var r=[];if(1===n)return r.push(t),r;--n;var s,a,o,l,c,u,h=e.match(t,i);if(h.getSuccess())if(e.getRightToLeft()){for(a=t.length;;){for(o=h.getIndex(),l=h.getLength(),u=(c=h.getGroups()).getCount(),r.push(t.slice(o+l,a)),a=o,s=1;s<u;s++)h._isMatched(s)&&r.push(c.get(s).toString());if(0==--n)break;if(!(h=h.nextMatch()).getSuccess())break}r.push(t.slice(0,a)),r.reverse()}else{for(a=0;;){for(o=h.getIndex(),l=h.getLength(),u=(c=h.getGroups()).getCount(),r.push(t.slice(a,o)),a=o+l,s=1;s<u;s++)h._isMatched(s)&&r.push(c.get(s).toString());if(0==--n)break;if(!(h=h.nextMatch()).getSuccess())break}r.push(t.slice(a,t.length))}else r.push(t);return r},h$:4,i$:-1,j$:-2,k$:-3,l$:-4},e$:"",f$:[],g$:[],ctor:function(e,t,n){if(this.$initialize(),this.e$=e,t._type!==Z$.h$.g$.hy$.p$)throw new Z$.ou$.$ctor1("Replacement error.");var i,r,s,a="",o=[],l=[];for(s=0;s<t.childCount();s++)switch((r=t.child(s))._type){case Z$.h$.g$.hy$.m$:case Z$.h$.g$.hy$.l$:a+=r._str;break;case Z$.h$.g$.hy$.n$:a.length>0&&(l.push(o.length),o.push(a),a=""),i=r._m,null!=n&&i>=0&&(i=n[i]),l.push(-Z$.h$.g$.iy$.h$-1-i);break;default:throw new Z$.ou$.$ctor1("Replacement error.")}a.length>0&&(l.push(o.length),o.push(a)),this.f$=o,this.g$=l},a$:function(){return _rep},b$:function(e){return this.c$("",e)},replace:function(e,t,n,i){if(n<-1)throw new Z$.qu$.$ctor4("count","Count cannot be less than -1.");if(i<0||i>t.length)throw new Z$.qu$.$ctor4("startat","Start index cannot be less than 0 or greater than input length.");if(0===n)return t;var r=e.match(t,i);if(r.getSuccess()){var s,a,o,l="";if(e.getRightToLeft()){var c,u=[];s=t.length;do{if((a=r.getIndex())+(o=r.getLength())!==s&&u.push(t.slice(a+o,s)),s=a,this.d$(u,r),0==--n)break;r=r.nextMatch()}while(r.getSuccess());for(s>0&&(l+=l.slice(0,s)),c=u.length-1;c>=0;c--)l+=u[c]}else{s=0;do{if(a=r.getIndex(),o=r.getLength(),a!==s&&(l+=t.slice(s,a)),s=a+o,l=this.c$(l,r),0==--n)break;r=r.nextMatch()}while(r.getSuccess());s<t.length&&(l+=t.slice(s,t.length))}return l}return t},c$:function(e,t){var n,i,r=Z$.h$.g$.iy$.h$;for(i=0;i<this.g$.length;i++)if((n=this.g$[i])>=0)e+=this.f$[n];else if(n<-r)e+=t._groupToStringImpl(-r-1-n);else switch(-r-1-n){case Z$.h$.g$.iy$.i$:e+=t._getLeftSubstring();break;case Z$.h$.g$.iy$.j$:e+=t._getRightSubstring();break;case Z$.h$.g$.iy$.k$:e+=t._lastGroupToStringImpl();break;case Z$.h$.g$.iy$.l$:e+=t._getOriginalString()}return e},d$:function(e,t){var n,i,r=Z$.h$.g$.iy$.h$;for(i=_rules.length-1;i>=0;i--)if((n=this.g$[i])>=0)e.push(this.f$[n]);else if(n<-r)e.push(t._groupToStringImpl(-r-1-n));else switch(-r-1-n){case Z$.h$.g$.iy$.i$:e.push(t._getLeftSubstring());break;case Z$.h$.g$.iy$.j$:e.push(t._getRightSubstring());break;case Z$.h$.g$.iy$.k$:e.push(t._lastGroupToStringImpl());break;case Z$.h$.g$.iy$.l$:e.push(t._getOriginalString())}}}),$$sd("Z$.h$.g$.jy$",{I$:"",J$:null,K$:"",L$:0,M$:-1,N$:-1,O$:null,P$:{base:0,offset:1,lazy:2,greedy:3,or:4},Q$:{ok:1,endPass:2,nextPass:3,nextBranch:4},ctor:function(e,t,n,i,r,s,a){this.$initialize(),this.I$=e,this.M$=a,this.O$={ignoreCase:t,multiline:n,singleline:i,ignoreWhitespace:r,explicitCapture:s}},match:function(e,t){if(null!=t&&(t<0||t>e.length))throw new Z$.qu$.$ctor4("textStart","Start index cannot be less than 0 or greater than input length.");this.K$=e,this.L$=t,this.N$=this.M$>0?(new Date).getTime()+Z$.Convert.toInt32(this.M$+.5):-1;var n=this.a$();return n.shouldFail?this.F$():(this.H$(),this.b$(t,n.tokens,!1,null))},a$:function(){if(null==this.J$){var e=Z$.h$.g$.oy$.a$(this.I$,this.D$(this.O$));this.J$=e}return this.J$},b$:function(e,t,n,i){var r=this.c$(e,this.K$.length,t,n,i);return this.k$(r,e)},c$:function(e,t,n,i,r){var s=this.Q$,a=[];a.grCaptureCache={};var o=null;if(0===n.length){var l=new Z$.h$.g$.ly$;return l.g$=e,l.f$=e,l.h$=0,l}var c=i?this.P$.base:this.P$.offset,u=this.J$.isContiguous?e:t,h=new Z$.h$.g$.ky$(c,e,e,u);for(h.a$(0,n,this.D$(this.O$)),h.started=!0,h.l$.txtIndex=e,a.push(h);a.length;){if(o=a[a.length-1],this.d$(t,a,o)===s.ok&&(null==r||o.state.capLength===r))return o.state;this.j$(a,o),this.H$()}return null},d$:function(e,t,n){var i,r,s=this.Q$;if(n.mustFail)return n.mustFail=!1,s.nextBranch;for(;n.hasPass();){if(null==(i=n.peekPass()).tokens||0===i.tokens.length)r=s.endPass;else{if(this.f$(t,n,i)===s.nextBranch)return s.nextBranch;r=this.e$(e,t,n,i)}switch(r){case s.nextBranch:return r;case s.nextPass:continue;case s.endPass:case s.ok:n.popPass()}}return s.ok},e$:function(e,t,n,i){for(var r,s,a,o=this.Q$,l=i.tokens.length;i.index<l;)if(r=i.tokens[i.index],null==(s=i.probe)){if(this.g$(t,n,i,r))return o.nextBranch;switch(a=this.l$(e,t,n,i,r)){case o.nextBranch:case o.nextPass:case o.endPass:return a;case o.ok:i.index++}}else{if(s.value<s.min||s.forced){if((a=this.l$(e,t,n,i,r))!==o.ok)return a;s.value+=1,s.forced=!1;continue}if(this.h$(t,n,i,s),s.forced)continue;i.probe=null,i.index++}return o.ok},f$:function(e,t,n){var i,r,s,a,o=Z$.h$.g$.oy$.W$,l=this.P$,c=n.tokens.length,u=this.Q$;if(!n.alternationHandled&&!n.tokens.noAlternation){for(i=[-1],a=0;a<c;a++)n.tokens[a].type===o.alternation&&i.push(a);if(i.length>1){for(a=0;a<i.length;a++)(r=new Z$.h$.g$.ky$(l.or,a,0,i.length,t.state)).isNotFailing=!0,(s=r.peekPass()).alternationHandled=!0,s.index=i[a]+1,e.splice(e.length-a,0,r);return e[e.length-i.length].isNotFailing=!1,t.mustFail=!0,n.alternationHandled=!0,u.nextBranch}n.tokens.noAlternation=!0}return u.ok},g$:function(e,t,n,i){var r=this.i$(i);if(null==r)return!1;n.probe=r;var s=r.e$?this.P$.lazy:this.P$.greedy,a=new Z$.h$.g$.ky$(s,r.d$,r.b$,r.c$,t.state);return e.push(a),!0},h$:function(e,t,n,i){if(i.isLazy){if(i.value+1<=i.max){var r=t.clone(),s=r.peekPass().probe;r.value+=1,s.forced=!0,e.splice(e.length-1,0,r),t.isNotFailing=!0}}else if(i.value+1<=i.max){var a=t.clone();a.started=!0,a.peekPass().probe=null,a.peekPass().index++,e.splice(e.length-1,0,a),i.forced=!0,t.value+=1,t.isNotFailing=!0}},i$:function(e){var t=e.qtoken;if(null==t)return null;var n,i,r=Z$.h$.g$.oy$.W$;if(t.type===r.quantifier)switch(t.value){case"*":case"*?":n=0,i=2147483647;break;case"+":case"+?":n=1,i=2147483647;break;case"?":case"??":n=0,i=1}else if(t.type===r.quantifierN)n=t.data.n,i=t.data.n;else{if(t.type!==r.quantifierNM)return null;n=t.data.n,i=null!=t.data.m?t.data.m:2147483647}return new Z$.h$.g$.ny$(n,i,0,t.data.isLazy)},j$:function(e,t){if(0!==e.length){var n=e[e.length-1];if(n.started){if(1===e.length&&t.type===this.P$.offset)t.value++,t.state.txtIndex=t.value,t.mustFail=!1,t.state.capIndex=null,t.state.capLength=0,t.state.groups.length=0,t.state.passes.length=1,t.state.passes[0].clearState(this.D$(this.O$)),t.value>t.max&&e.pop();else if(e.pop(),!t.isNotFailing)return n=e[e.length-1],void this.j$(e,n)}else n.started=!0}},k$:function(e,t){var n,i,r,s,a,o,l=this.J$.groups,c=this.K$,u={},h={},d=this.F$();if(null!=e){for(n=e.groups,this.G$(d,e.capIndex,e.capLength,t),o=0;o<n.length;o++)(r=l[(i=n[o]).rawIndex-1]).constructs.skipCapture||(s={capIndex:i.capIndex,capLength:i.capLength,value:c.slice(i.capIndex,i.capIndex+i.capLength)},null==(a=h[r.name])?(a={capIndex:0,capLength:0,value:"",success:!1,captures:[s]},h[r.name]=a):a.captures.push(s));for(o=0;o<l.length;o++)(r=l[o]).constructs.skipCapture||!0!==u[r.name]&&(null==(a=h[r.name])?a={capIndex:0,capLength:0,value:"",success:!1,captures:[]}:a.captures.length>0&&(s=a.captures[a.captures.length-1],a.capIndex=s.capIndex,a.capLength=s.capLength,a.value=s.value,a.success=!0),u[r.name]=!0,a.descriptor=r,d.groups.push(a))}return d},l$:function(e,t,n,i,r){var s=Z$.h$.g$.oy$.W$,a=this.Q$;switch(r.type){case s.group:case s.groupImnsx:case s.alternationGroup:return this.m$(e,t,n,i,r);case s.groupImnsxMisc:return this.n$(r.group.constructs,i.settings);case s.charGroup:return this.w$(t,n,i,r,!1);case s.charNegativeGroup:return this.x$(t,n,i,r,!1);case s.escChar:case s.escCharOctal:case s.escCharHex:case s.escCharUnicode:case s.escCharCtrl:return this.t$(e,t,n,i,r.data.ch);case s.escCharOther:case s.escCharClass:return this.y$(t,n,i,r);case s.escCharClassCategory:case s.escCharClassBlock:case s.escCharClassDot:return this.z$(e,t,n,i);case s.escBackrefNumber:return this.A$(e,t,n,i,r);case s.escBackrefName:return this.B$(e,t,n,i,r);case s.anchor:case s.escAnchor:return this.C$(e,t,n,i,r);case s.groupConstruct:case s.groupConstructName:case s.groupConstructImnsx:case s.groupConstructImnsxMisc:return a.ok;case s.alternationGroupCondition:case s.alternationGroupRefNameCondition:case s.alternationGroupRefNumberCondition:return this.o$(e,t,n,i,r);case s.alternation:return a.endPass;case s.commentInline:case s.commentXMode:return a.ok;default:return this.t$(e,t,n,i,r.value)}},m$:function(e,t,n,i,r){var s=Z$.h$.g$.oy$.W$,a=this.Q$,o=n.state.txtIndex;if(i.onHold){if(r.type===s.group){var l=r.group.rawIndex,c=i.onHoldTextIndex,u=o-c,h=t.grCaptureCache[l];null==h&&(h={},t.grCaptureCache[l]=h);var d=c.toString()+"_"+u.toString();if(null!=h[d])return a.nextBranch;h[d]=!0,r.group.constructs.emptyCapture||(r.group.isBalancing?n.state.logCaptureGroupBalancing(r.group,c):n.state.logCaptureGroup(r.group,c,u))}return i.onHold=!1,i.onHoldTextIndex=-1,a.ok}if(r.type===s.group||r.type===s.groupImnsx){var m=r.group.constructs;if(this.n$(m,i.settings),m.isPositiveLookahead||m.isNegativeLookahead||m.isPositiveLookbehind||m.isNegativeLookbehind)return this.p$(n,o,e,r);if(m.isNonbacktracking)return this.s$(n,o,e,r)}return i.onHoldTextIndex=o,i.onHold=!0,n.pushPass(0,r.children,this.D$(i.settings)),a.nextPass},n$:function(e,t){var n=this.Q$;return null!=e.isIgnoreCase&&(t.ignoreCase=e.isIgnoreCase),null!=e.isMultiline&&(t.multiline=e.isMultiline),null!=e.isSingleLine&&(t.singleline=e.isSingleLine),null!=e.isIgnoreWhitespace&&(t.ignoreWhitespace=e.isIgnoreWhitespace),null!=e.isExplicitCapture&&(t.explicitCapture=e.isExplicitCapture),n.ok},o$:function(e,t,n,i,r){var s=Z$.h$.g$.oy$.W$,a=this.Q$,o=r.children,l=n.state.txtIndex,c=a.nextBranch;if(r.type===s.alternationGroupRefNameCondition||r.type===s.alternationGroupRefNumberCondition)c=null!=n.state.resolveBackref(r.data.packedSlotId)?a.ok:a.nextBranch;else{var u=this.c$(l,e,o,!0,null);this.E$(n,u)&&(c=a.ok)}return c===a.nextBranch&&i.tokens.noAlternation&&(c=a.endPass),c},p$:function(e,t,n,i){var r=i.group.constructs,s=this.Q$,a=i.children,o=r.isPositiveLookahead||r.isNegativeLookahead,l=r.isPositiveLookbehind||r.isNegativeLookbehind;return o||l?(a=a.slice(1,a.length),(r.isPositiveLookahead||r.isPositiveLookbehind)===(o?this.q$(e,t,n,a):this.r$(e,t,n,a))?s.ok:s.nextBranch):null},q$:function(e,t,n,i){var r=this.c$(t,n,i,!0,null);return this.E$(e,r)},r$:function(e,t,n,i){for(var r,s,a=t;a>=0;){if(r=t-a,s=this.c$(a,n,i,!0,r),this.E$(e,s))return!0;--a}return!1},s$:function(e,t,n,i){var r=this.Q$,s=i.children;s=s.slice(1,s.length);var a=this.c$(t,n,s,!0,null);return a?(e.state.logCapture(a.capLength),r.ok):r.nextBranch},t$:function(e,t,n,i,r){var s,a=this.Q$,o=n.state.txtIndex;if(o+r.length>e)return a.nextBranch;if(i.settings.ignoreCase){for(s=0;s<r.length;s++)if(this.K$[o+s].toLowerCase()!==r[s].toLowerCase())return a.nextBranch}else for(s=0;s<r.length;s++)if(this.K$[o+s]!==r[s])return a.nextBranch;return n.state.logCapture(r.length),a.ok},u$:function(e,t,n,i,r){var s=this.Q$,a=t.state.txtIndex,o=this.K$[a];null==o&&(o="");var l=n.settings.ignoreCase?"i":"",c=i.rgx;return null==c&&(null==r&&(r=i.value),c=RegExp(r,l),i.rgx=c),c.test(o)?(t.state.logCapture(o.length),s.ok):s.nextBranch},v$:function(e,t){var n=this.Q$,i=this.K$[e];return null==i&&(i=""),RegExp(t,"").test(i)?n.ok:n.nextBranch},w$:function(e,t,n,i,r){var s,a,o=Z$.h$.g$.oy$.W$,l=this.Q$,c=t.state.txtIndex,u=this.K$[c];if(null==u)return l.nextBranch;var h,d,m,g=u.charCodeAt(0),$=i.data.ranges;if(null!=i.data.substractToken&&(i.data.substractToken.type===o.charGroup?m=this.w$(e,t,n,i.data.substractToken,!0):i.data.substractToken.type===o.charNegativeGroup&&(m=this.x$(e,t,n,i.data.substractToken,!0)),m===l.ok))return i.type===o.charGroup?l.nextBranch:l.ok;if(null!=$.charClassToken&&this.u$(e,t,n,$.charClassToken)===l.ok)return l.ok;for(a=0;a<2;a++){for(s=0;s<$.length&&!((h=$[s]).n>g);s++)if(g<=h.m)return r||t.state.logCapture(1),l.ok;null==d&&n.settings.ignoreCase&&(d=u.toUpperCase(),g=(u=u===d?u.toLowerCase():d).charCodeAt(0))}return l.nextBranch},x$:function(e,t,n,i,r){var s=this.Q$,a=t.state.txtIndex;return null==this.K$[a]||this.w$(e,t,n,i,!0)===s.ok?s.nextBranch:(r||t.state.logCapture(1),s.ok)},y$:function(e,t,n,i){return this.u$(e,t,n,i)},z$:function(e,t,n,i){var r=this.Q$,s=n.state.txtIndex;if(i.settings.singleline){if(s<e)return n.state.logCapture(1),r.ok}else if(s<e&&"\n"!==this.K$[s])return n.state.logCapture(1),r.ok;return r.nextBranch},A$:function(e,t,n,i,r){var s=this.Q$,a=n.state.resolveBackref(r.data.slotId);if(null==a)return s.nextBranch;var o=this.K$.slice(a.capIndex,a.capIndex+a.capLength);return this.t$(e,t,n,i,o)},B$:function(e,t,n,i,r){var s=this.Q$,a=n.state.resolveBackref(r.data.slotId);if(null==a)return s.nextBranch;var o=this.K$.slice(a.capIndex,a.capIndex+a.capLength);return this.t$(e,t,n,i,o)},C$:function(e,t,n,i,r){var s=this.Q$,a=n.state.txtIndex;if("\\b"===r.value||"\\B"===r.value){if((a>0&&this.v$(a-1,"\\w")===s.ok)==(this.v$(a,"\\w")===s.ok)==("\\B"===r.value))return s.ok}else if("^"===r.value){if(0===a)return s.ok;if(i.settings.multiline&&"\n"===this.K$[a-1])return s.ok}else if("$"===r.value){if(a===e)return s.ok;if(i.settings.multiline&&"\n"===this.K$[a])return s.ok}else if("\\A"===r.value){if(0===a)return s.ok}else if("\\z"===r.value){if(a===e)return s.ok}else if("\\Z"===r.value){if(a===e)return s.ok;if(a===e-1&&"\n"===this.K$[a])return s.ok}else if("\\G"===r.value)return s.ok;return s.nextBranch},D$:function(e){return{ignoreCase:e.ignoreCase,multiline:e.multiline,singleline:e.singleline,ignoreWhitespace:e.ignoreWhitespace,explicitCapture:e.explicitCapture}},E$:function(e,t){if(null!=t){var n,i=e.state.groups,r=t.groups,s=r.length;for(n=0;n<s;++n)i.push(r[n]);return!0}return!1},F$:function(){return{capIndex:0,capLength:0,success:!1,value:"",groups:[],captures:[]}},G$:function(e,t,n,i){null==t&&(t=i),e.capIndex=t,e.capLength=n,e.success=!0,e.value=this.K$.slice(t,t+n),e.groups.push({capIndex:t,capLength:n,value:e.value,success:!0,captures:[{capIndex:t,capLength:n,value:e.value}]}),e.captures.push(e.groups[0].captures[0])},H$:function(){this.N$<0||((new Date).getTime(),this.N$)}}),$$sd("Z$.h$.g$.ky$",{f$:0,g$:0,h$:0,i$:0,j$:!1,k$:!1,l$:null,ctor:function(e,t,n,i,r){this.$initialize(),this.f$=e,this.g$=t,this.h$=n,this.i$=i,this.l$=null!=r?r.clone():new Z$.h$.g$.ly$},a$:function(e,t,n){var i=new Z$.h$.g$.my$(e,t,n);this.l$.passes.push(i)},b$:function(){return this.l$.passes[this.l$.passes.length-1]},c$:function(){return this.l$.passes.pop()},d$:function(){return this.l$.passes.length>0},e$:function(){var e=new Z$.h$.g$.ky$(this.f$,this.g$,this.h$,this.i$,this.l$);return e.k$=this.k$,e}}),$$sd("Z$.h$.g$.ly$",{f$:0,g$:null,h$:0,i$:null,j$:null,ctor:function(){this.$initialize(),this.i$=[],this.j$=[]},a$:function(e){null==this.g$&&(this.g$=this.f$),this.f$+=e,this.h$+=e},b$:function(e,t,n){this.j$.push({rawIndex:e.rawIndex,slotId:e.packedSlotId,capIndex:t,capLength:n})},c$:function(e,t){for(var n,i,r=e.balancingSlotId,s=this.j$,a=s.length-1;a>=0;){if(s[a].slotId===r){n=s[a],i=a;break}--a}if(null!=n&&null!=i){if(s.splice(i,1),null!=e.constructs.name1){var o=n.capIndex+n.capLength,l=t-o;this.b$(e,o,l)}return!0}return!1},d$:function(e){for(var t=this.j$,n=t.length-1;n>=0;){if(t[n].slotId===e)return t[n];--n}return null},e$:function(){var e=new Z$.h$.g$.ly$;e.f$=this.f$,e.g$=this.g$,e.h$=this.h$;var t,n,i=e.i$,r=this.i$,s=r.length;for(n=0;n<s;n++)t=r[n].clone(),i.push(t);var a=e.j$,o=this.j$;for(s=o.length,n=0;n<s;n++)t=o[n],a.push(t);return e}}),$$sd("Z$.h$.g$.my$",{c$:0,d$:null,e$:null,f$:!1,g$:-1,h$:!1,i$:null,ctor:function(e,t,n){this.$initialize(),this.c$=e,this.d$=t,this.i$=n},a$:function(e){this.c$=0,this.e$=null,this.f$=!1,this.g$=-1,this.h$=!1,this.i$=e},b$:function(){var e=new Z$.h$.g$.my$(this.c$,this.d$,this.i$);return e.f$=this.f$,e.g$=this.g$,e.h$=this.h$,e.e$=null!=this.e$?this.e$.clone():null,e}}),$$sd("Z$.h$.g$.ny$",{b$:0,c$:0,d$:0,e$:!1,f$:!1,ctor:function(e,t,n,i){this.$initialize(),this.b$=e,this.c$=t,this.d$=n,this.e$=i,this.f$=!1},a$:function(){var e=new Z$.h$.g$.ny$(this.b$,this.c$,this.d$,this.e$);return e.f$=this.f$,e}}),$$sd("Z$.h$.g$.oy$",{statics:{L$:"0123456789abcdefABCDEF",M$:"01234567",N$:"0123456789",O$:"abtrvfnexcu",P$:"pPwWsSdD",Q$:"AZzGbB",R$:" .,$^{}[]()|*+-=?\\|/\"':;~!@#%&",S$:" \r\n\t\v\f ",T$:["Lu","Ll","Lt","Lm","Lo","L","Mn","Mc","Me","M","Nd","Nl","No","N","Pc","Pd","Ps","Pe","Pi","Pf","Po","P","Sm","Sc","Sk","So","S","Zs","Zl","Zp","Z","Cc","Cf","Cs","Co","Cn","C"],U$:["IsBasicLatin","IsLatin-1Supplement","IsLatinExtended-A","IsLatinExtended-B","IsIPAExtensions","IsSpacingModifierLetters","IsCombiningDiacriticalMarks","IsGreek","IsGreekandCoptic","IsCyrillic","IsCyrillicSupplement","IsArmenian","IsHebrew","IsArabic","IsSyriac","IsThaana","IsDevanagari","IsBengali","IsGurmukhi","IsGujarati","IsOriya","IsTamil","IsTelugu","IsKannada","IsMalayalam","IsSinhala","IsThai","IsLao","IsTibetan","IsMyanmar","IsGeorgian","IsHangulJamo","IsEthiopic","IsCherokee","IsUnifiedCanadianAboriginalSyllabics","IsOgham","IsRunic","IsTagalog","IsHanunoo","IsBuhid","IsTagbanwa","IsKhmer","IsMongolian","IsLimbu","IsTaiLe","IsKhmerSymbols","IsPhoneticExtensions","IsLatinExtendedAdditional","IsGreekExtended","IsGeneralPunctuation","IsSuperscriptsandSubscripts","IsCurrencySymbols","IsCombiningDiacriticalMarksforSymbols","IsCombiningMarksforSymbols","IsLetterlikeSymbols","IsNumberForms","IsArrows","IsMathematicalOperators","IsMiscellaneousTechnical","IsControlPictures","IsOpticalCharacterRecognition","IsEnclosedAlphanumerics","IsBoxDrawing","IsBlockElements","IsGeometricShapes","IsMiscellaneousSymbols","IsDingbats","IsMiscellaneousMathematicalSymbols-A","IsSupplementalArrows-A","IsBraillePatterns","IsSupplementalArrows-B","IsMiscellaneousMathematicalSymbols-B","IsSupplementalMathematicalOperators","IsMiscellaneousSymbolsandArrows","IsCJKRadicalsSupplement","IsKangxiRadicals","IsIdeographicDescriptionCharacters","IsCJKSymbolsandPunctuation","IsHiragana","IsKatakana","IsBopomofo","IsHangulCompatibilityJamo","IsKanbun","IsBopomofoExtended","IsKatakanaPhoneticExtensions","IsEnclosedCJKLettersandMonths","IsCJKCompatibility","IsCJKUnifiedIdeographsExtensionA","IsYijingHexagramSymbols","IsCJKUnifiedIdeographs","IsYiSyllables","IsYiRadicals","IsHangulSyllables","IsHighSurrogates","IsHighPrivateUseSurrogates","IsLowSurrogates","IsPrivateUse or IsPrivateUseArea","IsCJKCompatibilityIdeographs","IsAlphabeticPresentationForms","IsArabicPresentationForms-A","IsVariationSelectors","IsCombiningHalfMarks","IsCJKCompatibilityForms","IsSmallFormVariants","IsArabicPresentationForms-B","IsHalfwidthandFullwidthForms","IsSpecials"],V$:["@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_"],W$:{literal:0,escChar:110,escCharOctal:111,escCharHex:112,escCharCtrl:113,escCharUnicode:114,escCharOther:115,escCharClass:120,escCharClassCategory:121,escCharClassBlock:122,escCharClassDot:123,escAnchor:130,escBackrefNumber:140,escBackrefName:141,charGroup:200,charNegativeGroup:201,charInterval:202,anchor:300,group:400,groupImnsx:401,groupImnsxMisc:402,groupConstruct:403,groupConstructName:404,groupConstructImnsx:405,groupConstructImnsxMisc:406,quantifier:500,quantifierN:501,quantifierNM:502,alternation:600,alternationGroup:601,alternationGroupCondition:602,alternationGroupRefNumberCondition:603,alternationGroupRefNameCondition:604,commentInline:700,commentXMode:701},a$:function(e,t){var n=Z$.h$.g$.oy$,i=n.n$(e,t,0,e.length),r=[];n.c$(i,r);var s=n.e$(r);return n.j$(r,s),n.k$(e,i,s),n.b$(t,i,s,[],[],0),n.l$(i),{groups:r,sparseSettings:s,isContiguous:t.isContiguous||!1,shouldFail:t.shouldFail||!1,tokens:i}},b$:function(e,t,n,i,r,s){var a,o,l,c,u,h,d,m,g,$=Z$.h$.g$.oy$,p=$.W$;for(g=0;g<t.length;g++){if(o=t[g],g<t.length-1)switch((m=t[g+1]).type){case p.quantifier:case p.quantifierN:case p.quantifierNM:o.qtoken=m,t.splice(g+1,1),--g}if(o.type===p.escBackrefNumber){if(u=o.data.number,null==(c=n.getPackedSlotIdBySlotNumber(u)))throw new Z$.ou$.$ctor1("Reference to undefined group number "+u.toString()+".");if(i.indexOf(c)<0){e.shouldFail=!0;continue}o.data.slotId=c}else if(o.type===p.escBackrefName){if(l=o.data.name,null==(c=n.getPackedSlotIdBySlotName(l))){if($.J$(l,0,l.length,$.N$).matchLength===l.length){l="\\"+l,$.I$(o,p.escBackrefNumber,o.index,l.length,l),--g;continue}throw new Z$.ou$.$ctor1("Reference to undefined group name '"+l+"'.")}if(i.indexOf(c)<0){e.shouldFail=!0;continue}o.data.slotId=c}else if(o.type===p.anchor||o.type===p.escAnchor){if("\\G"===o.value){0===s&&0===g?e.isContiguous=!0:e.shouldFail=!0,t.splice(g,1),--g;continue}}else{if(o.type===p.commentInline||o.type===p.commentXMode){t.splice(g,1),--g;continue}if(o.type===p.literal){if(g>0&&!o.qtoken&&(a=t[g-1]).type===p.literal&&!a.qtoken){a.value+=o.value,a.length+=o.length,t.splice(g,1),--g;continue}}else if(o.type===p.alternationGroupCondition&&null!=o.data)if(null!=o.data.number){if(null==(c=n.getPackedSlotIdBySlotNumber(o.data.number)))throw new Z$.ou$.$ctor1("Reference to undefined group number "+l+".");o.data.packedSlotId=c,$.I$(o,p.alternationGroupRefNumberCondition,o.index,o.length,o.value)}else null!=(c=n.getPackedSlotIdBySlotName(o.data.name))?(o.data.packedSlotId=c,$.I$(o,p.alternationGroupRefNameCondition,o.index,o.length,o.value)):delete o.data}o.children&&o.children.length&&(h=(h=o.type===p.group?[o.group.rawIndex]:[]).concat(r),d=o.localSettings||e,$.b$(d,o.children,n,i,h,s+1),e.shouldFail=e.shouldFail||d.shouldFail,e.isContiguous=e.isContiguous||d.isContiguous),o.type===p.group&&i.push(o.group.packedSlotId)}},c$:function(e,t){var n,i;Z$.h$.g$.oy$.d$(t,e,null);var r=1;for(i=0;i<t.length;i++)null!=(n=t[i]).constructs.name1?(n.name=n.constructs.name1,n.hasName=!0):(n.hasName=!1,n.name=r.toString(),++r)},d$:function(e,t,n){var i,r,s,a,o,l,c=Z$.h$.g$.oy$,u=c.W$;for(l=0;l<t.length;l++)o=(r=t[l]).children&&r.children.length,r.type!==u.group&&r.type!==u.groupImnsx&&r.type!==u.groupImnsxMisc||(i={rawIndex:e.length+1,number:-1,parentGroup:null,innerGroups:[],name:null,hasName:!1,constructs:null,quantifier:null,exprIndex:-1,exprLength:0,expr:null,exprFull:null},r.group=i,r.type===u.group&&(e.push(i),null!=n&&(r.group.parentGroup=n,n.innerGroups.push(i))),a=o?r.children[0]:null,i.constructs=c.h$(a),s=i.constructs,r.isNonCapturingExplicit&&(delete r.isNonCapturingExplicit,s.isNonCapturingExplicit=!0),r.isEmptyCapturing&&(delete r.isEmptyCapturing,s.emptyCapture=!0),s.skipCapture=s.isNonCapturing||s.isNonCapturingExplicit||s.isNonbacktracking||s.isPositiveLookahead||s.isNegativeLookahead||s.isPositiveLookbehind||s.isNegativeLookbehind||null==s.name1&&null!=s.name2),o&&c.d$(e,r.children,r.group)},e$:function(e){var t,n,i,r,s,a,o,l=Z$.h$.g$.oy$,c={},u=[],h={},d={0:0,lastSlot:0},m={0:0,keys:["0"]};for(a=0;a<e.length;a++)(s=e[a]).constructs.skipCapture||(s.constructs.isNumberName1?(i=parseInt(s.constructs.name1),u.push(i),c[i]?c[i].push(s):c[i]=[s]):h[r=s.constructs.name1]?h[r].push(s):h[r]=[s]);u.sort((function(e,t){return e-t}));var g=!1;for(o=0;o<2;o++){for(a=0;a<e.length;a++)(s=e[a]).constructs.skipCapture||!0===s.constructs.emptyCapture===g&&(i=m.keys.length,s.hasName||(n=[s],null!=(t=c[i])&&(n=n.concat(t),c[i]=null),l.g$(n,i,d,m)));g=!0}for(a=0;a<e.length;a++)if(!(s=e[a]).constructs.skipCapture&&s.hasName&&!s.constructs.isNumberName1){for(t=c[i=m.keys.length];null!=t;)l.g$(t,i,d,m),c[i]=null,t=c[i=m.keys.length];if(!s.constructs.isNumberName1)for(t=c[i=m.keys.length];null!=t;)l.g$(t,i,d,m),c[i]=null,t=c[i=m.keys.length];null!=(t=h[r=s.constructs.name1])&&(l.g$(t,i,d,m),h[r]=null)}for(a=0;a<u.length;a++)null!=(t=c[i=u[a]])&&(l.g$(t,i,d,m),c[i]=null);return{isSparse:d.isSparse||!1,sparseSlotMap:d,sparseSlotNameMap:m,getPackedSlotIdBySlotNumber:function(e){return this.sparseSlotMap[e]},getPackedSlotIdBySlotName:function(e){return this.sparseSlotNameMap[e]}}},f$:function(e,t,n,i){var r=i.keys.length;e.packedSlotId=r,n[t]=r,i[e.name]=r,i.keys.push(e.name),!n.isSparse&&t-n.lastSlot>1&&(n.isSparse=!0),n.lastSlot=t},g$:function(e,t,n,i){var r;Z$.h$.g$.oy$.f$(e[0],t,n,i);var s=e[0].sparseSlotId,a=e[0].packedSlotId;if(e.length>1)for(r=1;r<e.length;r++)e[r].sparseSlotId=s,e[r].packedSlotId=a},h$:function(e){var t=Z$.h$.g$.oy$,n=t.W$,i={name1:null,name2:null,isNumberName1:!1,isNumberName2:!1,isNonCapturing:!1,isNonCapturingExplicit:!1,isIgnoreCase:null,isMultiline:null,isExplicitCapture:null,isSingleLine:null,isIgnoreWhitespace:null,isPositiveLookahead:!1,isNegativeLookahead:!1,isPositiveLookbehind:!1,isNegativeLookbehind:!1,isNonbacktracking:!1};if(null==e)return i;if(e.type===n.groupConstruct)switch(e.value){case"?:":i.isNonCapturing=!0;break;case"?=":i.isPositiveLookahead=!0;break;case"?!":i.isNegativeLookahead=!0;break;case"?>":i.isNonbacktracking=!0;break;case"?<=":i.isPositiveLookbehind=!0;break;case"?<!":i.isNegativeLookbehind=!0;break;default:throw new Z$.ou$.$ctor1("Unrecognized grouping construct.")}else if(e.type===n.groupConstructName){var r=e.value.slice(2,e.length-1).split("-");if(0===r.length||r.length>2)throw new Z$.ou$.$ctor1("Invalid group name.");if(r[0].length){i.name1=r[0];var s=t.i$(r[0]);i.isNumberName1=s.isNumberName}if(2===r.length){i.name2=r[1];var a=t.i$(r[1]);i.isNumberName2=a.isNumberName}}else if(e.type===n.groupConstructImnsx||e.type===n.groupConstructImnsxMisc){var o,l,c=e.type===n.groupConstructImnsx?1:0,u=e.length-1-c,h=!0;for(l=1;l<=u;l++)"-"===(o=e.value[l])?h=!1:"i"===o?i.isIgnoreCase=h:"m"===o?i.isMultiline=h:"n"===o?i.isExplicitCapture=h:"s"===o?i.isSingleLine=h:"x"===o&&(i.isIgnoreWhitespace=h)}return i},i$:function(e){if(!e||!e.length)throw new Z$.ou$.$ctor1("Invalid group name: Group names must begin with a word character.");var t=e[0]>="0"&&e[0]<="9";if(t){var n=Z$.h$.g$.oy$;if(n.J$(e,0,e.length,n.N$).matchLength!==e.length)throw new Z$.ou$.$ctor1("Invalid group name: Group names must begin with a word character.")}return{isNumberName:t}},j$:function(e,t){var n,i;for(i=0;i<e.length;i++)if(null!=(n=e[i]).constructs.name2&&(n.isBalancing=!0,n.balancingSlotId=t.getPackedSlotIdBySlotName(n.constructs.name2),null==n.balancingSlotId))throw new Z$.ou$.$ctor1("Reference to undefined group name '"+n.constructs.name2+"'.")},k$:function(e,t,n){var i,r,s,a,o,l,c=Z$.h$.g$.oy$,u=c.W$;for(l=0;l<t.length;l++){if((o=t[l]).type===u.escBackrefNumber){if((i=o.data.number)>=1&&null!=n.getPackedSlotIdBySlotNumber(i))continue;if(i<=9)throw new Z$.ou$.$ctor1("Reference to undefined group number "+i.toString()+".");if(null==(r=c.p$(o.value,0,o.length)))throw new Z$.ou$.$ctor1("Unrecognized escape sequence "+o.value.slice(0,2)+".");s=o.length-r.length,c.H$(o,e,u.escCharOctal,null,r.length),o.data=r.data,s>0&&(a=c.G$(e,u.literal,o.index+o.length,s),t.splice(l+1,0,a))}o.children&&o.children.length&&c.k$(e,o.children,n)}},l$:function(e,t){var n,i,r,s,a,o,l=Z$.h$.g$.oy$,c=l.W$,u=t||0;for(o=0;o<e.length;o++)(i=e[o]).index=u,i.children&&(a=i.childrenPostfix.length,l.l$(i.children,u+a),s=l.m$(i.children),i.value=i.childrenPrefix+s+i.childrenPostfix,i.length=i.value.length),i.type===c.group&&i.group&&((n=i.group).exprIndex=i.index,n.exprLength=i.length,o+1<e.length&&((r=e[o+1]).type!==c.quantifier&&r.type!==c.quantifierN&&r.type!==c.quantifierNM||(n.quantifier=r.value)),n.expr=i.value,n.exprFull=n.expr+(null!=n.quantifier?n.quantifier:"")),u+=i.length},m$:function(e){var t,n="";for(t=0;t<e.length;t++)n+=e[t].value;return n},n$:function(e,t,n,i){if(n<0||n>e.length)throw new Z$.qu$.$ctor1("startIndex");if(i<n||i>e.length)throw new Z$.qu$.$ctor1("endIndex");var r,s,a,o=Z$.h$.g$.oy$,l=o.W$,c=[];for(a=n;a<i;)s=e[a],t.ignoreWhitespace&&o.S$.indexOf(s)>=0?++a:(null==(r="."===s?o.u$(e,a,i):"\\"===s?o.o$(e,a,i):"["===s?o.r$(e,a,i):"^"===s||"$"===s?o.v$(e,a):"("===s?o.x$(e,t,a,i):"|"===s?o.A$(e,a):"#"===s&&t.ignoreWhitespace?o.D$(e,a,i):o.z$(e,a,i))&&(r=o.G$(e,l.literal,a,1)),null!=r&&(c.push(r),a+=r.length));return c},o$:function(e,t,n){var i=Z$.h$.g$.oy$,r=i.W$,s=e[t];if("\\"!==s)return null;if(t+1>=n)throw new Z$.ou$.$ctor1("Illegal \\ at end of pattern.");if((s=e[t+1])>="1"&&s<="9"){var a=i.J$(e,t+1,n,i.N$,3),o=i.G$(e,r.escBackrefNumber,t,1+a.matchLength);return o.data={number:parseInt(a.match,10)},o}if(i.Q$.indexOf(s)>=0)return i.G$(e,r.escAnchor,t,2);var l=i.q$(e,t,n);if(null!=l)return l;if("k"===s){if(t+2<n){var c=e[t+2];if("'"===c||"<"===c){var u="<"===c?">":"'",h=i.K$(e,t+3,n,u);if(1===h.unmatchLength&&h.matchLength>0){var d=i.G$(e,r.escBackrefName,t,3+h.matchLength+1);return d.data={name:h.match},d}}}throw new Z$.ou$.$ctor1("Malformed \\k<...> named back reference.")}var m=s.charCodeAt(0);if(m>=0&&m<48||m>57&&m<65||m>90&&m<95||96===m||m>122&&m<128){var g=i.G$(e,r.escChar,t,2);return g.data={n:m,ch:s},g}throw new Z$.ou$.$ctor1("Unrecognized escape sequence \\"+s+".")},p$:function(e,t,n){var i=Z$.h$.g$.oy$,r=i.W$,s=e[t];if("\\"===s&&t+1<n&&(s=e[t+1])>="0"&&s<="7"){var a=i.J$(e,t+1,n,i.M$,3),o=parseInt(a.match,8),l=i.G$(e,r.escCharOctal,t,1+a.matchLength);return l.data={n:o,ch:String.fromCharCode(o)},l}return null},q$:function(e,t,n){var i,r=Z$.h$.g$.oy$,s=r.W$,a=e[t];if("\\"!==a||t+1>=n)return null;if(a=e[t+1],r.O$.indexOf(a)>=0){if("x"===a){var o=r.J$(e,t+2,n,r.L$,2);if(2!==o.matchLength)throw new Z$.ou$.$ctor1("Insufficient hexadecimal digits.");var l=parseInt(o.match,16);return(i=r.G$(e,s.escCharHex,t,4)).data={n:l,ch:String.fromCharCode(l)},i}if("c"===a){if(t+2>=n)throw new Z$.ou$.$ctor1("Missing control character.");var c=e[t+2];c=c.toUpperCase();var u=this.V$.indexOf(c);if(u>=0)return(i=r.G$(e,s.escCharCtrl,t,3)).data={n:u,ch:String.fromCharCode(u)},i;throw new Z$.ou$.$ctor1("Unrecognized control character.")}if("u"===a){var h=r.J$(e,t+2,n,r.L$,4);if(4!==h.matchLength)throw new Z$.ou$.$ctor1("Insufficient hexadecimal digits.");var d=parseInt(h.match,16);return(i=r.G$(e,s.escCharUnicode,t,6)).data={n:d,ch:String.fromCharCode(d)},i}var m;switch(i=r.G$(e,s.escChar,t,2),a){case"a":m=7;break;case"b":m=8;break;case"t":m=9;break;case"r":m=13;break;case"v":m=11;break;case"f":m=12;break;case"n":m=10;break;case"e":m=27;break;default:throw new Z$.ou$.$ctor1("Unexpected escaped char: '"+a+"'.")}return i.data={n:m,ch:String.fromCharCode(m)},i}if(a>="0"&&a<="7")return r.p$(e,t,n);if(r.P$.indexOf(a)>=0){if("p"===a||"P"===a){var g=r.K$(e,t+2,n,"}");if(g.matchLength<2||"{"!==g.match[0]||1!==g.unmatchLength)throw new Z$.ou$.$ctor1("Incomplete p{X} character escape.");var $=g.match.slice(1);if(r.T$.indexOf($)>=0)return r.G$(e,s.escCharClassCategory,t,2+g.matchLength+1);if(r.U$.indexOf($)>=0)return r.G$(e,s.escCharClassBlock,t,2+g.matchLength+1);throw new Z$.ou$.$ctor1("Unknown property '"+$+"'.")}return r.G$(e,s.escCharClass,t,2)}return r.R$.indexOf(a)>=0?((i=r.G$(e,s.escCharOther,t,2)).data={n:a.charCodeAt(0),ch:a},i):null},r$:function(e,t,n){var i,r,s,a=Z$.h$.g$.oy$,o=a.W$,l=[],c=!1,u=!1,h=!1,d=e[t];if("["!==d)return null;var m,g=t+1,$=-1;g<n&&"^"===e[g]&&(c=!0,g++);for(var p,y=g;g<n;){if(u=h,"-"===(d=e[g])&&g+1<n&&"["===e[g+1])(r=a.r$(e,g+1,n)).childrenPrefix="-"+r.childrenPrefix,r.length++,s=r,m=r.length,h=!0;else if("\\"===d){if(null==(s=a.q$(e,g,n)))throw new Z$.ou$.$ctor1("Unrecognized escape sequence \\"+d+".");m=s.length}else{if("]"===d&&g>y){$=g;break}s=a.G$(e,o.literal,g,1),m=1}if(u)throw new Z$.ou$.$ctor1("A subtraction must be the last element in a character class.");l.length>1&&null!=(i=a.s$(e,l[l.length-2],l[l.length-1],s))&&(l.pop(),l.pop(),s=i),null!=s&&(l.push(s),g+=m)}if($<0||l.length<1)throw new Z$.ou$.$ctor1("Unterminated [] set.");p=c?a.G$(e,o.charNegativeGroup,t,1+$-t,l,"[^","]"):a.G$(e,o.charGroup,t,1+$-t,l,"[","]");var f=a.t$(l);return p.data={ranges:f},null!=r&&(p.data.substractToken=r),p},s$:function(e,t,n,i){var r,s,a,o,l=Z$.h$.g$.oy$,c=l.W$;if(n.type!==c.literal||"-"!==n.value)return null;if(t.type!==c.literal&&t.type!==c.escChar&&t.type!==c.escCharOctal&&t.type!==c.escCharHex&&t.type!==c.escCharCtrl&&t.type!==c.escCharUnicode&&t.type!==c.escCharOther)return null;if(i.type!==c.literal&&i.type!==c.escChar&&i.type!==c.escCharOctal&&i.type!==c.escCharHex&&i.type!==c.escCharCtrl&&i.type!==c.escCharUnicode&&i.type!==c.escCharOther)return null;t.type===c.literal?(r=t.value.charCodeAt(0),s=t.value):(r=t.data.n,s=t.data.ch),i.type===c.literal?(a=i.value.charCodeAt(0),o=i.value):(a=i.data.n,o=i.data.ch);var u=t.index,h=t.length+n.length+i.length,d=l.G$(e,c.charInterval,u,h,[t,n,i],"","");return d.data={startN:r,startCh:s,endN:a,endCh:o},d},t$:function(e){var t,n,i,r,s,a,o,l,c=Z$.h$.g$.oy$,u=c.W$,h=[],d=[];for(t=0;t<e.length;t++){if((s=e[t]).type===u.literal)r=i=s.value.charCodeAt(0);else if(s.type===u.charInterval)i=s.data.startN,r=s.data.endN;else{if(s.type!==u.literal&&s.type!==u.escChar&&s.type!==u.escCharOctal&&s.type!==u.escCharHex&&s.type!==u.escCharCtrl&&s.type!==u.escCharUnicode&&s.type!==u.escCharOther){if(s.type===u.charGroup||s.type===u.charNegativeGroup)continue;d.push(s);continue}r=i=s.data.n}if(0!==h.length){for(n=0;n<h.length&&!(h[n].n>i);n++);h.splice(n,0,{n:i,m:r})}else h.push({n:i,m:r})}for(t=0;t<h.length;t++){for(a=h[t],l=0,n=t+1;n<h.length&&!((o=h[n]).n>1+a.m);n++)l++,o.m>a.m&&(a.m=o.m);l>0&&h.splice(t+1,l)}if(d.length>0){var m="["+c.m$(d)+"]";h.charClassToken=c.G$(m,u.charGroup,0,m.length,e,"[","]")}return h},u$:function(e,t){var n=Z$.h$.g$.oy$,i=n.W$;return"."!==e[t]?null:n.G$(e,i.escCharClassDot,t,1)},v$:function(e,t){var n=Z$.h$.g$.oy$,i=n.W$,r=e[t];return"^"!==r&&"$"!==r?null:n.G$(e,i.anchor,t,1)},w$:function(e,t){null!=t.isIgnoreWhitespace&&(e.ignoreWhitespace=t.isIgnoreWhitespace),null!=t.isExplicitCapture&&(e.explicitCapture=t.isExplicitCapture)},x$:function(e,t,n,i){var r=Z$.h$.g$.oy$,s=r.W$,a={ignoreWhitespace:t.ignoreWhitespace,explicitCapture:t.explicitCapture},o=e[n];if("("!==o)return null;var l=1,c=!1,u=n+1,h=-1,d=!1,m=!1,g=!1,$=!1,p=!1,y=null,f=r.y$(e,a,n+1,i);null!=f&&(y=this.h$(f),u+=f.length,f.type===s.commentInline?d=!0:f.type===s.alternationGroupCondition?m=!0:f.type===s.groupConstructImnsx?(this.w$(a,y),$=!0):f.type===s.groupConstructImnsxMisc&&(this.w$(t,y),g=!0)),!a.explicitCapture||null!=y&&null!=y.name1||(p=!0);for(var _=u;_<i;){if("\\"===(o=e[_]))_++;else if("["===o)c=!0;else if("]"===o&&c)c=!1;else if(!c)if("("!==o||d){if(")"===o&&0==--l){h=_;break}}else++l;++_}var S=null;if(d){if(h<0)throw new Z$.ou$.$ctor1("Unterminated (?#...) comment.");S=r.G$(e,s.commentInline,n,1+h-n)}else{if(h<0)throw new Z$.ou$.$ctor1("Not enough )'s.");var b=r.n$(e,a,u,h);if(null!=f&&b.splice(0,0,f),m){var C,E=b.length,T=0;for(C=0;C<E;C++)if(b[C].type===s.alternation&&++T>1)throw new Z$.ou$.$ctor1("Too many | in (?()|).");S=r.G$(e,s.alternationGroup,n,1+h-n,b,"(",")")}else{var v=s.group;g?v=s.groupImnsxMisc:$&&(v=s.groupImnsx);var I=r.G$(e,v,n,1+h-n,b,"(",")");I.localSettings=a,S=I}}return p&&(S.isNonCapturingExplicit=!0),S},y$:function(e,t,n,i){var r=Z$.h$.g$.oy$,s=r.W$,a=e[n];if("?"!==a||n+1>=i)return null;if(":"===(a=e[n+1])||"="===a||"!"===a||">"===a)return r.G$(e,s.groupConstruct,n,2);if("#"===a)return r.G$(e,s.commentInline,n,2);if("("===a)return r.B$(e,t,n,i);if("<"===a&&n+2<i){var o=e[n+2];if("="===o||"!"===o)return r.G$(e,s.groupConstruct,n,3)}if("<"===a||"'"===a){var l="<"===a?">":a,c=r.K$(e,n+2,i,l);if(1!==c.unmatchLength||0===c.matchLength)throw new Z$.ou$.$ctor1("Unrecognized grouping construct.");var u=c.match.slice(0,1);if("`~@#$%^&*()+{}[]|\\/|'\";:,.?".indexOf(u)>=0)throw new Z$.ou$.$ctor1("Invalid group name: Group names must begin with a word character.");return r.G$(e,s.groupConstructName,n,2+c.matchLength+1)}var h=r.J$(e,n+1,i,"imnsx-");if(h.matchLength>0&&(":"===h.unmatchCh||")"===h.unmatchCh)){var d=":"===h.unmatchCh?s.groupConstructImnsx:s.groupConstructImnsxMisc,m=":"===h.unmatchCh?1:0;return r.G$(e,d,n,1+h.matchLength+m)}throw new Z$.ou$.$ctor1("Unrecognized grouping construct.")},z$:function(e,t,n){var i=Z$.h$.g$.oy$,r=i.W$,s=null,a=e[t];if("*"===a||"+"===a||"?"===a)(s=i.G$(e,r.quantifier,t,1)).data={val:a};else if("{"===a){var o=i.J$(e,t+1,n,i.N$);if(0!==o.matchLength)if("}"===o.unmatchCh)(s=i.G$(e,r.quantifierN,t,1+o.matchLength+1)).data={n:parseInt(o.match,10)};else if(","===o.unmatchCh){var l=i.J$(e,o.unmatchIndex+1,n,i.N$);if("}"===l.unmatchCh&&((s=i.G$(e,r.quantifierNM,t,1+o.matchLength+1+l.matchLength+1)).data={n:parseInt(o.match,10),m:null},0!==l.matchLength&&(s.data.m=parseInt(l.match,10),s.data.n>s.data.m)))throw new Z$.ou$.$ctor1("Illegal {x,y} with x > y.")}}if(null!=s){var c=t+s.length;c<n&&"?"===e[c]&&(this.H$(s,e,s.type,s.index,s.length+1),s.data.isLazy=!0)}return s},A$:function(e,t){var n=Z$.h$.g$.oy$,i=n.W$;return"|"!==e[t]?null:n.G$(e,i.alternation,t,1)},B$:function(e,t,n,i){var r,s,a=Z$.h$.g$.oy$,o=a.W$,l=null;if("?"!==e[n]||n+1>=i||"("!==e[n+1])return null;var c=a.x$(e,t,n+1,i);if(null==c)return null;if(c.type===o.commentInline)throw new Z$.ou$.$ctor1("Alternation conditions cannot be comments.");var u=c.children;if(u&&u.length){if((r=u[0]).type===o.groupConstructName)throw new Z$.ou$.$ctor1("Alternation conditions do not capture and cannot be named.");if(r.type!==o.groupConstruct&&r.type!==o.groupConstructImnsx||null!=(s=a.C$(u))&&(s.isEmptyCapturing=!0),r.type===o.literal){var h=c.value.slice(1,c.value.length-1);if(h[0]>="0"&&h[0]<="9"){if(a.J$(h,0,h.length,a.N$).matchLength!==h.length)throw new Z$.ou$.$ctor1("Malformed Alternation group number: "+h+".");l={number:parseInt(h,10)}}else l={name:h}}}(!u.length||u[0].type!==o.groupConstruct&&u[0].type!==o.groupConstructImnsx)&&(r=a.G$("?:",o.groupConstruct,0,2),u.splice(0,0,r));var d=a.G$(e,o.alternationGroupCondition,c.index-1,1+c.length,[c],"?","");return null!=l&&(d.data=l),d},C$:function(e){var t,n,i=Z$.h$.g$.oy$,r=i.W$,s=null;for(n=0;n<e.length;++n)if((t=e[n]).type===r.group&&t.children&&t.children.length){if(t.children[0].type!==r.groupConstruct&&t.children[0].type!==r.groupConstructImnsx){s=t;break}if(t.children&&t.children.length&&null!=(s=i.C$(t.children)))break}return s},D$:function(e,t,n){var i=Z$.h$.g$.oy$,r=i.W$,s=e[t];if("#"!==s)return null;for(var a=t+1;a<n&&(s=e[a],++a,"\n"!==s););return i.G$(e,r.commentXMode,t,a-t)},E$:function(e){var t=Z$.h$.g$.oy$;return t.G$(e,t.W$.literal,0,e.length)},F$:function(e,t){var n="(?="+e+")";return Z$.h$.g$.oy$.x$(n,t,0,n.length)},G$:function(e,t,n,i,r,s,a){var o={type:t,index:n,length:i,value:e.slice(n,n+i)};return null!=r&&r.length>0&&(o.children=r,o.childrenPrefix=s,o.childrenPostfix=a),o},H$:function(e,t,n,i,r){null!=n&&(e.type=n),null==i&&null==r||(null!=i&&(e.index=i),null!=r&&(e.length=r),e.value=t.slice(e.index,e.index+e.length))},I$:function(e,t,n,i,r){e.type=t,e.index=n,e.length=i,e.value=r},J$:function(e,t,n,i,r){var s,a={match:"",matchIndex:-1,matchLength:0,unmatchCh:"",unmatchIndex:-1,unmatchLength:0},o=t;for(null!=r&&r>=0&&(n=t+r);o<n;){if(s=e[o],i.indexOf(s)<0){a.unmatchCh=s,a.unmatchIndex=o,a.unmatchLength=1;break}o++}return o>t&&(a.match=e.slice(t,o),a.matchIndex=t,a.matchLength=o-t),a},K$:function(e,t,n,i,r){var s,a={match:"",matchIndex:-1,matchLength:0,unmatchCh:"",unmatchIndex:-1,unmatchLength:0},o=t;for(null!=r&&r>=0&&(n=t+r);o<n;){if(s=e[o],i.indexOf(s)>=0){a.unmatchCh=s,a.unmatchIndex=o,a.unmatchLength=1;break}o++}return o>t&&(a.match=e.slice(t,o),a.matchIndex=t,a.matchLength=o-t),a}}}),$$sd("Z$.C$.w$.sy$",(function(e,t){return{fields:{a$:null},props:{},ctors:{}}})),$$sd("Z$.C$.w$.ty$",(function(e,t){return{fields:{a$:null},props:{},ctors:{}}})),$$sd("Z$.C$.w$.s$",(function(e){return{inherits:[Z$.C$.w$.Ad$(e),Z$.C$.w$.Dd$(e),Z$.C$.w$.Ed$(e)],statics:{fields:{OQa$:0,PQa$:0},ctors:{},methods:{}},fields:{GQa$:null,HQa$:null,IQa$:0,JQa$:0,KQa$:0,LQa$:null,EOa$:0},props:{},alias:["ELa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","BJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","pJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","wJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove","Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","sGa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly","JLa$","System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","add","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$add","TLa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$unionWith","ULa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$intersectWith","WLa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$exceptWith","XLa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$symmetricExceptWith","aMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$isSubsetOf","cMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$isProperSubsetOf","dMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$isSupersetOf","eMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$isProperSupersetOf","gMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$overlaps","fMa$","System$Collections$Generic$ISet$1$"+Bridge.getTypeAlias(e)+"$setEquals"],ctors:{},methods:{},overloads:{"Add(T)":"add","Clear()":"clear","Contains(T)":"contains","CopyTo(T[], int)":"copyTo","CopyTo(T[], int, int)":"CopyTo$1","Remove(T)":"remove","UnionWith(IEnumerable<T>)":"unionWith","IntersectWith(IEnumerable<T>)":"intersectWith","ExceptWith(IEnumerable<T>)":"exceptWith","SymmetricExceptWith(IEnumerable<T>)":"symmetricExceptWith","IsSubsetOf(IEnumerable<T>)":"isSubsetOf","IsProperSubsetOf(IEnumerable<T>)":"isProperSubsetOf","IsSupersetOf(IEnumerable<T>)":"isSupersetOf","IsProperSupersetOf(IEnumerable<T>)":"isProperSupersetOf","Overlaps(IEnumerable<T>)":"overlaps","SetEquals(IEnumerable<T>)":"setEquals"}}})),$$sd("Z$.C$.w$.s$.vy$",(function(e){return{$kind:1004,statics:{methods:{}},fields:{c$:0,d$:0},ctors:{},methods:{}}})),$$sd("Z$.C$.w$.s$.wy$",(function(e){return{inherits:[Z$.C$.w$.qd$(e)],$kind:1004,statics:{methods:{}},fields:{_set:null,HOa$:0,EOa$:0,HPa$:Bridge.getDefaultValue(e)},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.s$.xy$",(function(e){return{$kind:1004,statics:{methods:{}},fields:{c$:0,d$:Bridge.getDefaultValue(e),e$:0},ctors:{},methods:{}}})),$$sd("Z$.C$.w$.t$.yy$",(function(e){return{inherits:[Z$.C$.w$.qd$(e),Z$.C$.Id$],$kind:1004,statics:{methods:{}},fields:{Ac$:null,Dc$:0,aKa$:0,KKa$:Bridge.getDefaultValue(e)},props:{Fh$:{get:function(){return this.KKa$}}},alias:["oLa$","pLa$","GKa$","IKa$","Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{init:function(){this.KKa$=Bridge.getDefaultValue(e)},$ctor1:function(t){this.$initialize(),this.Ac$=t,this.Dc$=0,this.aKa$=t._version,this.KKa$=Bridge.getDefaultValue(e)},ctor:function(){this.$initialize()}},methods:{oLa$:function(){},GKa$:function(){var e=this.Ac$;return this.aKa$===e._version&&this.Dc$>>>0<e._size>>>0?(this.KKa$=e._items[Z$.Array.index(this.Dc$,e._items)],this.Dc$=this.Dc$+1|0,!0):this.QQa$()},QQa$:function(){return this.aKa$,this.Ac$._version,this.Dc$=this.Ac$._size+1|0,this.KKa$=Bridge.getDefaultValue(e),!1},$clone:function(t){var n=t||new(Z$.C$.w$.t$.yy$(e));return n.list=this.Ac$,n.index=this.Dc$,n.version=this.aKa$,n.current=this.KKa$,n}},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.u$",(function(e){return{inherits:[Z$.C$.w$.zd$(e),Z$.C$.wd$,Z$.C$.w$.Ed$(e)],statics:{fields:{ZQa$:0,aRa$:0,bRa$:0},ctors:{init:function(){this.ZQa$=4,this.aRa$=200,this.bRa$=4}}},fields:{WQa$:null,XQa$:0,YQa$:0,ZJa$:0,EOa$:0},props:{Cw$:{get:function(){return this.ZJa$}}},alias:["Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","JLa$","System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator"],ctors:{ctor:function(){this.$initialize(),this.WQa$=Z$.Array.init(0,(function(){return Bridge.getDefaultValue(e)}),e)}},methods:{},overloads:{"CopyTo(Array, int)":"copyTo"}}})),$$sd("Z$.C$.w$.zy$",(function(e){return{fields:{a$:null},props:{},ctors:{}}})),$$sd("Z$.C$.w$.Ay$",(function(e,t){return{fields:{a$:null},props:{},ctors:{}}})),$$sd("Z$.C$.w$.u$.By$",(function(e){return{inherits:[Z$.C$.w$.qd$(e),Z$.C$.Id$],$kind:1004,statics:{methods:{}},fields:{_q:null,HOa$:0,EOa$:0,IOa$:Bridge.getDefaultValue(e)},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.w$.v$",(function(e){return{inherits:[Z$.C$.w$.zd$(e),Z$.C$.wd$,Z$.C$.w$.Ed$(e)],statics:{fields:{bRa$:0},ctors:{init:function(){this.bRa$=4}}},fields:{WQa$:null,ZJa$:0,EOa$:0},props:{Cw$:{get:function(){return this.ZJa$}}},alias:["Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","JLa$","System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator"],ctors:{ctor:function(){this.$initialize(),this.WQa$=Z$.Array.init(0,(function(){return Bridge.getDefaultValue(e)}),e)},$ctor2:function(t){if(this.$initialize(),t<0)throw new Z$.qu$.$ctor4("capacity","Non-negative number required.");this.WQa$=Z$.Array.init(t,(function(){return Bridge.getDefaultValue(e)}),e)}},methods:{Peek:function(){return this.ZJa$,this.WQa$[Z$.Array.index(this.ZJa$-1|0,this.WQa$)]},Pop:function(){this.ZJa$,this.EOa$=this.EOa$+1|0;var t=this.WQa$[Z$.Array.index(this.ZJa$=this.ZJa$-1|0,this.WQa$)];return this.WQa$[Z$.Array.index(this.ZJa$,this.WQa$)]=Bridge.getDefaultValue(e),t},Push:function(t){if(this.ZJa$===this.WQa$.length){var n={v:this.WQa$};Z$.Array.resize(n,0===this.WQa$.length?Z$.C$.w$.v$(e).DefaultCapacity:Bridge.Int.mul(2,this.WQa$.length),(function(){return Bridge.getDefaultValue(e)}),e),this.WQa$=n.v}this.WQa$[Z$.Array.index(Bridge.identity(this.ZJa$,this.ZJa$=this.ZJa$+1|0),this.WQa$)]=t,this.EOa$=this.EOa$+1|0}},overloads:{"CopyTo(Array, int)":"copyTo"}}})),$$sd("Z$.C$.w$.v$.Cy$",(function(e){return{inherits:[Z$.C$.w$.qd$(e),Z$.C$.Id$],$kind:1004,statics:{methods:{}},fields:{cRa$:null,HOa$:0,EOa$:0,IOa$:Bridge.getDefaultValue(e)},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"]],ctors:{},methods:{},overloads:{"MoveNext()":"moveNext"}}})),$$sd("Z$.C$.Dy$",{statics:{fields:{f$:0,g$:0,h$:0,i$:null},ctors:{init:function(){this.f$=101,this.g$=2146435069,this.h$=Z$.Qy$.bTa$().getHashCode(),this.i$=Z$.Array.init([3,7,11,17,23,29,37,47,59,71,89,107,131,163,197,239,293,353,431,521,631,761,919,1103,1327,1597,1931,2333,2801,3371,4049,4861,5839,7013,8419,10103,12143,14591,17519,21023,25229,30293,36353,43627,52361,62851,75431,90523,108631,130363,156437,187751,225307,270371,324449,389357,467237,560689,672827,807403,968897,1162687,1395263,1674319,2009191,2411033,2893249,3471899,4166287,4999559,5999471,7199369],Z$.Int32)}},methods:{a$:function(e,t){return((0|(e>>>0<<5>>>0|e>>>0>>>27)>>>0)+e|0)^t},b$:function(e){if(0!=(1&e)){for(var t=Bridge.Int.lHa$(Math.sqrt(e)),n=3;n<=t;n=n+2|0)if(e%n==0)return!1;return!0}return 2===e},c$:function(e){if(e<0)throw new Z$.ou$.$ctor1("Hashtable's capacity overflowed and went negative. Check load factor, capacity and the current size of the table.");for(var t=0;t<Z$.C$.Dy$.i$.length;t=t+1|0){var n=Z$.C$.Dy$.i$[Z$.Array.index(t,Z$.C$.Dy$.i$)];if(n>=e)return n}for(var i=1|e;i<2147483647;i=i+2|0)if(Z$.C$.Dy$.b$(i)&&(i-1|0)%Z$.C$.Dy$.f$!=0)return i;return e},d$:function(){return Z$.C$.Dy$.i$[Z$.Array.index(0,Z$.C$.Dy$.i$)]},e$:function(e){var t=Bridge.Int.mul(2,e);return t>>>0>Z$.C$.Dy$.g$&&Z$.C$.Dy$.g$>e?Z$.C$.Dy$.g$:Z$.C$.Dy$.c$(t)}}}}),$$sd("Z$.C$.z$.Ey$",(function(e){return{inherits:[Z$.C$.w$.Cd$(e),Z$.C$.xd$,Z$.C$.w$.Fd$(e)],statics:{methods:{}},fields:{hRa$:null,iRa$:null},props:{},alias:["Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","zJa$",["System$Collections$Generic$IReadOnlyList$1$"+Bridge.getTypeAlias(e)+"$getItem","System$Collections$Generic$IReadOnlyList$1$getItem"],"AJa$",["System$Collections$Generic$IReadOnlyList$1$"+Bridge.getTypeAlias(e)+"$setItem","System$Collections$Generic$IReadOnlyList$1$setItem"],"zJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$getItem","AJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$setItem","add","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","BJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","pJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","IJa$",["System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"],"indexOf","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$indexOf","vJa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$insert","wJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove","tKa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$removeAt","iLa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly"],ctors:{},methods:{},overloads:{"Add(T)":"add","Clear()":"clear","CopyTo(T[], int)":"copyTo","Contains(T)":"contains","IndexOf(T)":"indexOf","Insert(int, T)":"insert","Remove(T)":"remove","RemoveAt(int)":"removeAt"}}})),$$sd("Z$.C$.z$.Gy$",(function(e){return{inherits:[Z$.C$.w$.Cd$(e),Z$.C$.xd$,Z$.C$.w$.Fd$(e)],statics:{methods:{}},fields:{Ac$:null},props:{},alias:["Cw$",["System$Collections$Generic$IReadOnlyCollection$1$"+Bridge.getTypeAlias(e)+"$Count","System$Collections$Generic$IReadOnlyCollection$1$Count"],"Cw$","iKa$","Cw$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","zJa$",["System$Collections$Generic$IReadOnlyList$1$"+Bridge.getTypeAlias(e)+"$getItem","System$Collections$Generic$IReadOnlyList$1$getItem"],"pJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","yJa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","IJa$",["System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"],"indexOf","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$indexOf","iLa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly","kRa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$getItem","lRa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$setItem","ELa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","GNa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","mRa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$insert","INa$","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove","nRa$","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$removeAt"],ctors:{},methods:{},overloads:{"Contains(T)":"contains","CopyTo(T[], int)":"copyTo","IndexOf(T)":"indexOf"}}})),$$sd("Z$.F$.Nw$",{inherits:[Z$.zw$],fields:{L$:null},props:{},ctors:{},methods:{},overloads:{"Equals(object)":"equals","GetHashCode()":"getHashCode","SetValue(object)":"setValue"}}),$$sd("Z$.Jy$",{inherits:function(){return[Z$.jd$,Z$.id$,Z$.N$.J$.Ud$,Z$.N$.J$.Qd$,Z$.md$(Z$.Jy$),Z$.nd$(Z$.Jy$)]},$kind:4,statics:{fields:{rSa$:System.Int64(0),sSa$:System.Int64(0),tSa$:System.Int64(0),uSa$:System.Int64(0),vSa$:System.Int64(0),wSa$:null,xSa$:null},props:{},ctors:{init:function(){this.wSa$=new Z$.Jy$,this.xSa$=new Z$.Jy$,this.rSa$=Z$.Int64([1488826368,117]),this.sSa$=Z$.Int64([-1488826368,-118]),this.tSa$=Z$.Int64([-139100160,144670709]),this.uSa$=Z$.Int64([2006054656,14]),this.vSa$=Z$.Int64([304928768,14467]),this.wSa$=new Z$.Jy$.$ctor5(Z$.wv$.DHa$(),Z$.xv$.zero),this.xSa$=new Z$.Jy$.$ctor5(Z$.wv$.EHa$(),Z$.xv$.zero)}},methods:{hSa$:function(e){var t=e.getTicks();return t.mod(Z$.Int64(6e8)).ne(Z$.Int64(0)),t.lt(Z$.Jy$.sSa$)||t.gt(Z$.Jy$.rSa$),Z$.Int64.clip16(e.getTicks().div(Z$.Int64(6e8)))},iSa$:function(e,t){var n=Z$.wv$.JHa$(e).sub(t.getTicks());return n.lt(Z$.wv$.DHa$())||n.gt(Z$.wv$.EHa$()),Z$.wv$.KHa$(n,0)}}},fields:{NRa$:null,ORa$:0},props:{},alias:["WIa$",["System$IComparable$1$System$DateTimeOffset$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.NRa$=Z$.wv$.NFa$()},$ctor5:function(e,t){this.$initialize(),this.ORa$=Z$.Jy$.hSa$(t);var n=Z$.wv$.KHa$(e);this.NRa$=Z$.Jy$.iSa$(n,t)},ctor:function(){this.$initialize()}},methods:{},overloads:{"CompareTo(DateTimeOffset)":"compareTo","Equals(Object)":"equals","Equals(DateTimeOffset)":"equalsT","GetHashCode()":"getHashCode","Subtract(DateTimeOffset)":"Subtract$1","ToLocalTime(bool)":"ToLocalTime$1","ToString()":"toString","ToString(String)":"ToString$1","ToString(String, IFormatProvider)":"format"}}),$$sd("Z$.ou$",{inherits:[Z$.gu$],fields:{x$:null},props:{b$:{get:function(){var e=Bridge.ensureBaseProperty(this,"Message").$System$Exception$Message;return Z$.String.iJa$(this.x$)?e:(e||"")+"\n"+(t||"")}},y$:{get:function(){return this.x$}}},ctors:{ctor:function(){this.$initialize(),Z$.gu$.$ctor1.call(this,"Value does not fall within the expected range."),this.g$=-2147024809},$ctor1:function(e){this.$initialize(),Z$.gu$.$ctor1.call(this,e),this.g$=-2147024809},$ctor2:function(e,t){this.$initialize(),Z$.gu$.$ctor2.call(this,e,t),this.g$=-2147024809},$ctor4:function(e,t,n){this.$initialize(),Z$.gu$.$ctor2.call(this,e,n),this.x$=t,this.g$=-2147024809},$ctor3:function(e,t){this.$initialize(),Z$.gu$.$ctor1.call(this,e),this.x$=t,this.g$=-2147024809}}}),$$sd("Z$.qu$",{inherits:[Z$.ou$],fields:{z$:null},props:{b$:{get:function(){var e=Bridge.ensureBaseProperty(this,"Message").$System$ArgumentException$Message;return null!=this.z$?null==e?t:(e||"")+"\n"+(t||""):e}},A$:{get:function(){return this.z$}}},ctors:{ctor:function(){this.$initialize(),Z$.ou$.$ctor1.call(this,"Specified argument was out of the range of valid values."),this.g$=-2146233086},$ctor1:function(e){this.$initialize(),Z$.ou$.$ctor3.call(this,"Specified argument was out of the range of valid values.",e),this.g$=-2146233086},$ctor4:function(e,t){this.$initialize(),Z$.ou$.$ctor3.call(this,t,e),this.g$=-2146233086},$ctor2:function(e,t){this.$initialize(),Z$.ou$.$ctor2.call(this,e,t),this.g$=-2146233086},$ctor3:function(e,t,n){this.$initialize(),Z$.ou$.$ctor3.call(this,n,e),this.z$=t,this.g$=-2146233086}}}),$$sd("Z$.Qy$",{inherits:function(){return[Z$.nd$(Z$.Qy$),Z$.md$(Z$.Qy$),Z$.id$]},$kind:4,statics:{fields:{eTa$:null,zFa$:null,fTa$:null,gTa$:null,Aha$:null,Rnd:null,La$:null},ctors:{init:function(){this.La$=new Z$.Qy$,this.eTa$="Byte array for GUID must be exactly {0} bytes long",this.zFa$=RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","i"),this.fTa$=RegExp("^(.{8})(.{4})(.{4})(.{4})(.{12})$"),this.gTa$=RegExp("^[{(]?([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})[)}]?$","i"),this.Aha$=RegExp("-","g"),this.Rnd=new Z$.Jz$.ctor}},methods:{bTa$:function(){var e=Z$.Array.init(16,0,Z$.Byte);return Z$.Qy$.Rnd.NextBytes(e),e[Z$.Array.index(7,e)]=255&(15&e[Z$.Array.index(7,e)]|64),e[Z$.Array.index(8,e)]=255&(191&e[Z$.Array.index(8,e)]|128),new Z$.Qy$.$ctor1(e)}}},fields:{_a:0,_b:0,_c:0,_d:0,_e:0,_f:0,_g:0,_h:0,_i:0,_j:0,_k:0},alias:["WIa$",["System$IComparable$1$System$Guid$compareTo","System$IComparable$1$compareTo"]],ctors:{$ctor1:function(e){if(this.$initialize(),16!==e.length)throw new Z$.ou$.$ctor1(Z$.String.B$(Z$.Qy$.eTa$,[Bridge.box(16,Z$.Int32)]));this._a=e[Z$.Array.index(3,e)]<<24|e[Z$.Array.index(2,e)]<<16|e[Z$.Array.index(1,e)]<<8|e[Z$.Array.index(0,e)],this._b=Bridge.Int.sxs(65535&(e[Z$.Array.index(5,e)]<<8|e[Z$.Array.index(4,e)])),this._c=Bridge.Int.sxs(65535&(e[Z$.Array.index(7,e)]<<8|e[Z$.Array.index(6,e)])),this._d=e[Z$.Array.index(8,e)],this._e=e[Z$.Array.index(9,e)],this._f=e[Z$.Array.index(10,e)],this._g=e[Z$.Array.index(11,e)],this._h=e[Z$.Array.index(12,e)],this._i=e[Z$.Array.index(13,e)],this._j=e[Z$.Array.index(14,e)],this._k=e[Z$.Array.index(15,e)]},ctor:function(){this.$initialize()}},methods:{dGa$:function(){return this._a^(this._b<<16|65535&this._c)^(this._f<<24|this._k)}},overloads:{"GetHashCode()":"getHashCode","Equals(Object)":"equals","Equals(Guid)":"equalsT","CompareTo(Guid)":"compareTo","ToString()":"toString","ToString(string, IFormatProvider)":"format"}}),$$sd("Z$.Wd$",{$kind:3}),$$sd("Z$.Sy$",(function(e){return{}})),$$sd("Z$.Ty$",(function(e,t){return{}})),$$sd("Z$.Uy$",(function(e,t,n){return{}})),$$sd("Z$.Vy$",(function(e,t,n,i){return{}})),$$sd("Z$.Wy$",(function(e,t,n,i,r){return{}})),$$sd("Z$.Xy$",(function(e,t,n,i,r,s){return{}})),$$sd("Z$.Yy$",(function(e,t,n,i,r,s,a){return{}})),$$sd("Z$.Zy$",(function(e,t,n,i,r,s,a,o){return{}})),$$sd("Z$.az$",{inherits:function(){return[Z$.nd$(Z$.az$),Z$.C$.Nd$,Z$.C$.Md$,Z$.jd$,Z$.md$(Z$.az$)]},$kind:4,statics:{methods:{}},alias:["WIa$",["System$IComparable$1$System$ValueTuple$compareTo","System$IComparable$1$compareTo"]],ctors:{},methods:{},overloads:{"Equals(object)":"equals","Equals(ValueTuple)":"equalsT","CompareTo(ValueTuple)":"compareTo","GetHashCode()":"getHashCode","ToString()":"toString"}}),$$sd("Z$.bz$",(function(e){return{inherits:function(){return[Z$.nd$(Z$.bz$(e)),Z$.C$.Nd$,Z$.C$.Md$,Z$.jd$,Z$.md$(Z$.bz$(e)),Z$.Wd$]},$kind:4,statics:{fields:{ETa$:null},ctors:{init:function(){this.ETa$=Z$.C$.w$.pw$(e).def}},methods:{}},fields:{CTa$:Bridge.getDefaultValue(e)},props:{},alias:["I$","System$IEquatable$1$System$ValueTuple$1$"+Bridge.getTypeAlias(e)+"$equalsT","WIa$",["System$IComparable$1$System$ValueTuple$1$"+Bridge.getTypeAlias(e)+"$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.CTa$=Bridge.getDefaultValue(e)}},methods:{},overloads:{"Equals(object)":"equals","Equals(ValueTuple<T1>)":"equalsT","CompareTo(ValueTuple<T1>)":"compareTo","GetHashCode()":"getHashCode","ToString()":"toString"}}})),$$sd("Z$.cz$",(function(e,t){return{inherits:function(){return[Z$.nd$(Z$.cz$(e,t)),Z$.C$.Nd$,Z$.C$.Md$,Z$.jd$,Z$.md$(Z$.cz$(e,t)),Z$.Wd$]},$kind:4,statics:{fields:{ETa$:null,HTa$:null},ctors:{init:function(){this.ETa$=Z$.C$.w$.pw$(e).def,this.HTa$=Z$.C$.w$.pw$(t).def}},methods:{}},fields:{CTa$:Bridge.getDefaultValue(e),GTa$:Bridge.getDefaultValue(t)},props:{},alias:["I$","System$IEquatable$1$System$ValueTuple$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$equalsT","WIa$",["System$IComparable$1$System$ValueTuple$2$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.CTa$=Bridge.getDefaultValue(e),this.GTa$=Bridge.getDefaultValue(t)}},methods:{},overloads:{"Equals(object)":"equals","Equals(ValueTuple<T1, T2>)":"equalsT","CompareTo(ValueTuple<T1, T2>)":"compareTo","GetHashCode()":"getHashCode","ToString()":"toString"}}})),$$sd("Z$.dz$",(function(e,t,n){return{inherits:function(){return[Z$.nd$(Z$.dz$(e,t,n)),Z$.C$.Nd$,Z$.C$.Md$,Z$.jd$,Z$.md$(Z$.dz$(e,t,n)),Z$.Wd$]},$kind:4,statics:{fields:{ETa$:null,HTa$:null,JTa$:null},ctors:{init:function(){this.ETa$=Z$.C$.w$.pw$(e).def,this.HTa$=Z$.C$.w$.pw$(t).def,this.JTa$=Z$.C$.w$.pw$(n).def}},methods:{}},fields:{CTa$:Bridge.getDefaultValue(e),GTa$:Bridge.getDefaultValue(t),ITa$:Bridge.getDefaultValue(n)},props:{},alias:["I$","System$IEquatable$1$System$ValueTuple$3$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$equalsT","WIa$",["System$IComparable$1$System$ValueTuple$3$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.CTa$=Bridge.getDefaultValue(e),this.GTa$=Bridge.getDefaultValue(t),this.ITa$=Bridge.getDefaultValue(n)}},methods:{},overloads:{"Equals(object)":"equals","Equals(ValueTuple<T1, T2, T3>)":"equalsT","CompareTo(ValueTuple<T1, T2, T3>)":"compareTo","GetHashCode()":"getHashCode","ToString()":"toString"}}})),$$sd("Z$.ez$",(function(e,t,n,i){return{inherits:function(){return[Z$.nd$(Z$.ez$(e,t,n,i)),Z$.C$.Nd$,Z$.C$.Md$,Z$.jd$,Z$.md$(Z$.ez$(e,t,n,i)),Z$.Wd$]},$kind:4,statics:{fields:{ETa$:null,HTa$:null,JTa$:null,LTa$:null},ctors:{init:function(){this.ETa$=Z$.C$.w$.pw$(e).def,this.HTa$=Z$.C$.w$.pw$(t).def,this.JTa$=Z$.C$.w$.pw$(n).def,this.LTa$=Z$.C$.w$.pw$(i).def}},methods:{}},fields:{CTa$:Bridge.getDefaultValue(e),GTa$:Bridge.getDefaultValue(t),ITa$:Bridge.getDefaultValue(n),KTa$:Bridge.getDefaultValue(i)},props:{},alias:["I$","System$IEquatable$1$System$ValueTuple$4$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$equalsT","WIa$",["System$IComparable$1$System$ValueTuple$4$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.CTa$=Bridge.getDefaultValue(e),this.GTa$=Bridge.getDefaultValue(t),this.ITa$=Bridge.getDefaultValue(n),this.KTa$=Bridge.getDefaultValue(i)}},methods:{},overloads:{"Equals(object)":"equals","Equals(ValueTuple<T1, T2, T3, T4>)":"equalsT","CompareTo(ValueTuple<T1, T2, T3, T4>)":"compareTo","GetHashCode()":"getHashCode","ToString()":"toString"}}})),$$sd("Z$.fz$",(function(e,t,n,i,r){return{inherits:function(){return[Z$.nd$(Z$.fz$(e,t,n,i,r)),Z$.C$.Nd$,Z$.C$.Md$,Z$.jd$,Z$.md$(Z$.fz$(e,t,n,i,r)),Z$.Wd$]},$kind:4,statics:{fields:{ETa$:null,HTa$:null,JTa$:null,LTa$:null,NTa$:null},ctors:{init:function(){this.ETa$=Z$.C$.w$.pw$(e).def,this.HTa$=Z$.C$.w$.pw$(t).def,this.JTa$=Z$.C$.w$.pw$(n).def,this.LTa$=Z$.C$.w$.pw$(i).def,this.NTa$=Z$.C$.w$.pw$(r).def}},methods:{}},fields:{CTa$:Bridge.getDefaultValue(e),GTa$:Bridge.getDefaultValue(t),ITa$:Bridge.getDefaultValue(n),KTa$:Bridge.getDefaultValue(i),MTa$:Bridge.getDefaultValue(r)},props:{},alias:["I$","System$IEquatable$1$System$ValueTuple$5$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$"+Bridge.getTypeAlias(r)+"$equalsT","WIa$",["System$IComparable$1$System$ValueTuple$5$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$"+Bridge.getTypeAlias(r)+"$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.CTa$=Bridge.getDefaultValue(e),this.GTa$=Bridge.getDefaultValue(t),this.ITa$=Bridge.getDefaultValue(n),this.KTa$=Bridge.getDefaultValue(i),this.MTa$=Bridge.getDefaultValue(r)}},methods:{},overloads:{"Equals(object)":"equals","Equals(ValueTuple<T1, T2, T3, T4, T5>)":"equalsT","CompareTo(ValueTuple<T1, T2, T3, T4, T5>)":"compareTo","GetHashCode()":"getHashCode","ToString()":"toString"}}})),$$sd("Z$.gz$",(function(e,t,n,i,r,s){return{inherits:function(){return[Z$.nd$(Z$.gz$(e,t,n,i,r,s)),Z$.C$.Nd$,Z$.C$.Md$,Z$.jd$,Z$.md$(Z$.gz$(e,t,n,i,r,s)),Z$.Wd$]},$kind:4,statics:{fields:{ETa$:null,HTa$:null,JTa$:null,LTa$:null,NTa$:null,PTa$:null},ctors:{init:function(){this.ETa$=Z$.C$.w$.pw$(e).def,this.HTa$=Z$.C$.w$.pw$(t).def,this.JTa$=Z$.C$.w$.pw$(n).def,this.LTa$=Z$.C$.w$.pw$(i).def,this.NTa$=Z$.C$.w$.pw$(r).def,this.PTa$=Z$.C$.w$.pw$(s).def}},methods:{}},fields:{CTa$:Bridge.getDefaultValue(e),GTa$:Bridge.getDefaultValue(t),ITa$:Bridge.getDefaultValue(n),KTa$:Bridge.getDefaultValue(i),MTa$:Bridge.getDefaultValue(r),OTa$:Bridge.getDefaultValue(s)},props:{},alias:["I$","System$IEquatable$1$System$ValueTuple$6$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$"+Bridge.getTypeAlias(r)+"$"+Bridge.getTypeAlias(s)+"$equalsT","WIa$",["System$IComparable$1$System$ValueTuple$6$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$"+Bridge.getTypeAlias(r)+"$"+Bridge.getTypeAlias(s)+"$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.CTa$=Bridge.getDefaultValue(e),this.GTa$=Bridge.getDefaultValue(t),this.ITa$=Bridge.getDefaultValue(n),this.KTa$=Bridge.getDefaultValue(i),this.MTa$=Bridge.getDefaultValue(r),this.OTa$=Bridge.getDefaultValue(s)}},methods:{},overloads:{"Equals(object)":"equals","Equals(ValueTuple<T1, T2, T3, T4, T5, T6>)":"equalsT","CompareTo(ValueTuple<T1, T2, T3, T4, T5, T6>)":"compareTo","GetHashCode()":"getHashCode","ToString()":"toString"}}})),$$sd("Z$.hz$",(function(e,t,n,i,r,s,a){return{inherits:function(){return[Z$.nd$(Z$.hz$(e,t,n,i,r,s,a)),Z$.C$.Nd$,Z$.C$.Md$,Z$.jd$,Z$.md$(Z$.hz$(e,t,n,i,r,s,a)),Z$.Wd$]},$kind:4,statics:{fields:{ETa$:null,HTa$:null,JTa$:null,LTa$:null,NTa$:null,PTa$:null,RTa$:null},ctors:{init:function(){this.ETa$=Z$.C$.w$.pw$(e).def,this.HTa$=Z$.C$.w$.pw$(t).def,this.JTa$=Z$.C$.w$.pw$(n).def,this.LTa$=Z$.C$.w$.pw$(i).def,this.NTa$=Z$.C$.w$.pw$(r).def,this.PTa$=Z$.C$.w$.pw$(s).def,this.RTa$=Z$.C$.w$.pw$(a).def}},methods:{}},fields:{CTa$:Bridge.getDefaultValue(e),GTa$:Bridge.getDefaultValue(t),ITa$:Bridge.getDefaultValue(n),KTa$:Bridge.getDefaultValue(i),MTa$:Bridge.getDefaultValue(r),OTa$:Bridge.getDefaultValue(s),QTa$:Bridge.getDefaultValue(a)},props:{},alias:["I$","System$IEquatable$1$System$ValueTuple$7$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$"+Bridge.getTypeAlias(r)+"$"+Bridge.getTypeAlias(s)+"$"+Bridge.getTypeAlias(a)+"$equalsT","WIa$",["System$IComparable$1$System$ValueTuple$7$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$"+Bridge.getTypeAlias(r)+"$"+Bridge.getTypeAlias(s)+"$"+Bridge.getTypeAlias(a)+"$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.CTa$=Bridge.getDefaultValue(e),this.GTa$=Bridge.getDefaultValue(t),this.ITa$=Bridge.getDefaultValue(n),this.KTa$=Bridge.getDefaultValue(i),this.MTa$=Bridge.getDefaultValue(r),this.OTa$=Bridge.getDefaultValue(s),this.QTa$=Bridge.getDefaultValue(a)}},methods:{},overloads:{"Equals(object)":"equals","Equals(ValueTuple<T1, T2, T3, T4, T5, T6, T7>)":"equalsT","CompareTo(ValueTuple<T1, T2, T3, T4, T5, T6, T7>)":"compareTo","GetHashCode()":"getHashCode","ToString()":"toString"}}})),$$sd("Z$.iz$",(function(e,t,n,i,r,s,a,o){return{inherits:function(){return[Z$.nd$(Z$.iz$(e,t,n,i,r,s,a,o)),Z$.C$.Nd$,Z$.C$.Md$,Z$.jd$,Z$.md$(Z$.iz$(e,t,n,i,r,s,a,o)),Z$.Wd$]},$kind:4,statics:{fields:{ETa$:null,HTa$:null,JTa$:null,LTa$:null,NTa$:null,PTa$:null,RTa$:null,STa$:null},ctors:{init:function(){this.ETa$=Z$.C$.w$.pw$(e).def,this.HTa$=Z$.C$.w$.pw$(t).def,this.JTa$=Z$.C$.w$.pw$(n).def,this.LTa$=Z$.C$.w$.pw$(i).def,this.NTa$=Z$.C$.w$.pw$(r).def,this.PTa$=Z$.C$.w$.pw$(s).def,this.RTa$=Z$.C$.w$.pw$(a).def,this.STa$=Z$.C$.w$.pw$(o).def}},methods:{}},fields:{CTa$:Bridge.getDefaultValue(e),GTa$:Bridge.getDefaultValue(t),ITa$:Bridge.getDefaultValue(n),KTa$:Bridge.getDefaultValue(i),MTa$:Bridge.getDefaultValue(r),OTa$:Bridge.getDefaultValue(s),QTa$:Bridge.getDefaultValue(a),Rest:Bridge.getDefaultValue(o)},props:{},alias:["I$","System$IEquatable$1$System$ValueTuple$8$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$"+Bridge.getTypeAlias(r)+"$"+Bridge.getTypeAlias(s)+"$"+Bridge.getTypeAlias(a)+"$"+Bridge.getTypeAlias(o)+"$equalsT","WIa$",["System$IComparable$1$System$ValueTuple$8$"+Bridge.getTypeAlias(e)+"$"+Bridge.getTypeAlias(t)+"$"+Bridge.getTypeAlias(n)+"$"+Bridge.getTypeAlias(i)+"$"+Bridge.getTypeAlias(r)+"$"+Bridge.getTypeAlias(s)+"$"+Bridge.getTypeAlias(a)+"$"+Bridge.getTypeAlias(o)+"$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.CTa$=Bridge.getDefaultValue(e),this.GTa$=Bridge.getDefaultValue(t),this.ITa$=Bridge.getDefaultValue(n),this.KTa$=Bridge.getDefaultValue(i),this.MTa$=Bridge.getDefaultValue(r),this.OTa$=Bridge.getDefaultValue(s),this.QTa$=Bridge.getDefaultValue(a),this.Rest=Bridge.getDefaultValue(o)}},methods:{},overloads:{"Equals(object)":"equals","Equals(ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>)":"equalsT","CompareTo(ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest>)":"compareTo","GetHashCode()":"getHashCode","ToString()":"toString"}}})),$$sd("Z$.Du$",{inherits:[Z$.gu$],ctors:{ctor:function(){this.$initialize(),Z$.gu$.$ctor1.call(this,"Object reference not set to an instance of an object."),this.g$=-2147467261},$ctor1:function(e){this.$initialize(),Z$.gu$.$ctor1.call(this,e),this.g$=-2147467261},$ctor2:function(e,t){this.$initialize(),Z$.gu$.$ctor2.call(this,e,t),this.g$=-2147467261}}}),$$sd("Z$.IO.wz$",(function(e){return{inherits:[Z$.C$.w$.zd$(e),Z$.C$.w$.qd$(e)],fields:{Qd$:0,KKa$:Bridge.getDefaultValue(e)},props:{},alias:["Fh$",["System$Collections$Generic$IEnumerator$1$"+Bridge.getTypeAlias(e)+"$Current$1","System$Collections$Generic$IEnumerator$1$Current$1"],"IJa$",["System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"]],ctors:{},methods:{},overloads:{"Dispose(bool)":"Dispose$1"}}})),$$sd("Z$.Jz$",{statics:{fields:{l$:0,m$:0,MZ:0},ctors:{init:function(){this.l$=2147483647,this.m$=161803398,this.MZ=0}}},fields:{i$:0,j$:0,k$:null},ctors:{init:function(){this.k$=Z$.Array.init(56,0,Z$.Int32)},ctor:function(){Z$.Jz$.$ctor1.call(this,Z$.Int64.clip32(Z$.wv$.JHa$(Z$.wv$.MHa$())))},$ctor1:function(e){var t,n,i;this.$initialize();var r=-2147483648===e?2147483647:Math.abs(e);n=Z$.Jz$.m$-r|0,this.k$[Z$.Array.index(55,this.k$)]=n,i=1;for(var s=1;s<55;s=s+1|0)t=Bridge.Int.mul(21,s)%55,this.k$[Z$.Array.index(t,this.k$)]=i,(i=n-i|0)<0&&(i=i+Z$.Jz$.l$|0),n=this.k$[Z$.Array.index(t,this.k$)];for(var a=1;a<5;a=a+1|0)for(var o=1;o<56;o=o+1|0)this.k$[Z$.Array.index(o,this.k$)]=this.k$[Z$.Array.index(o,this.k$)]-this.k$[Z$.Array.index(1+(o+30|0)%55|0,this.k$)]|0,this.k$[Z$.Array.index(o,this.k$)]<0&&(this.k$[Z$.Array.index(o,this.k$)]=this.k$[Z$.Array.index(o,this.k$)]+Z$.Jz$.l$|0);this.i$=0,this.j$=21,e=1}},methods:{b$:function(){var e,t=this.i$,n=this.j$;return(t=t+1|0)>=56&&(t=1),(n=n+1|0)>=56&&(n=1),(e=this.k$[Z$.Array.index(t,this.k$)]-this.k$[Z$.Array.index(n,this.k$)]|0)===Z$.Jz$.l$&&(e=e-1|0),e<0&&(e=e+Z$.Jz$.l$|0),this.k$[Z$.Array.index(t,this.k$)]=e,this.i$=t,this.j$=n,e},h$:function(e){for(var t=0;t<e.length;t=t+1|0)e[Z$.Array.index(t,e)]=this.b$()%256&255}},overloads:{"Next(int, int)":"Next$2","Next(int)":"Next$1"}}),$$sd("Z$.gf$",{$kind:6,statics:{fields:{Yi$:0,Zi$:1,aj$:2,bj$:3,cj$:4,dj$:5}}}),$$sd("Z$.Vu$",{inherits:[Z$.fu$],ctor:function(e,t){this.$initialize(),this.innerExceptions=new(Z$.C$.z$.Gy$(Z$.fu$))(Bridge.hasValue(t)?Bridge.toArray(t):[]),Z$.fu$.ctor.call(this,e||"One or more errors occurred.",this.innerExceptions.Count>0?this.innerExceptions.getItem(0):null)},X$:function(e){Bridge.hasValue(e);for(var t=this.innerExceptions.Count,n=[],i=0;i<t;i++)e(this.innerExceptions.get(i))||n.push(this.innerExceptions.getItem(i));if(n.length>0)throw new Z$.Vu$(this.b$,n)},a$:function(){for(var e=this,t=this;null!=t&&1===t.innerExceptions.Count;)e=e.c$,t=Bridge.as(e,Z$.Vu$);return e},Y$:function(){for(var e=0;e<this.innerExceptions.Count;e++){var t=this.innerExceptions.getItem(e);if(Bridge.is(t,Z$.E$.D$.Fu$)||Bridge.is(t,Z$.Vu$)&&t.hasTaskCanceledException())return!0}return!1},Z$:function(){var e=new(Z$.C$.w$.t$(Z$.fu$)),t=new(Z$.C$.w$.t$(Z$.Vu$));t.add(this);for(var n=0;t.Count>n;)for(var i=t.getItem(n++).innerExceptions,r=i.Count,s=0;s<r;s++){var a=i.getItem(s);if(Bridge.hasValue(a)){var o=Bridge.as(a,Z$.Vu$);Bridge.hasValue(o)?t.add(o):e.add(a)}}return new Z$.Vu$(this.b$,e)}}),Bridge.ns("System.Text.UnicodeEncoding",Q.$),Bridge.apply(Q.$.System.Text.UnicodeEncoding,{f1:function(e){return 65535&((255&e)<<8|e>>8&255)},f2:function(e){return 65535&((255&e)<<8|e>>8&255)}}),Bridge.ns("System.Text.UTF7Encoding",Q.$),Bridge.apply(Q.$.System.Text.UTF7Encoding,{f1:function(e){for(var t=System.Array.init(Bridge.Int.mul(e.length,2),0,System.Byte),n=0,i=0;i<e.length;i=i+1|0){var r=e.charCodeAt(i);t[System.Array.index(Bridge.identity(n,n=n+1|0),t)]=r>>8,t[System.Array.index(Bridge.identity(n,n=n+1|0),t)]=255&r}return System.Convert.toBase64String(t,null,null,null).replace(/=+$/,"")},f2:function(e){try{if("undefined"==typeof window)throw new System.Exception;var t=window.atob(e),n=t.length,i=System.Array.init(n,0,System.Char);if(1===n&&0===t.charCodeAt(0))return System.Array.init(0,0,System.Char);for(var r=0;r<n;r=r+1|0)i[System.Array.index(r,i)]=t.charCodeAt(r);return i}catch(e){return e=System.Exception.create(e),System.Array.init(0,0,System.Char)}}}),Bridge.ns("System.Text.UTF8Encoding",Q.$),Bridge.apply(Q.$.System.Text.UTF8Encoding,{f1:function(){if(this.throwOnInvalid)throw new System.Exception("Invalid character in UTF8 text");return this.fallbackCharacter}}),$$sd("Z$.W$",{inherits:function(){return[Z$.ld$,Z$.md$(Z$.W$),Z$.nd$(Z$.W$)]},statics:{fields:{kab$:0,lab$:0},ctors:{init:function(){this.kab$=48,this.lab$=46}},methods:{}},fields:{YZa$:0,ZZa$:0,aab$:0,bab$:0},props:{},alias:["WIa$",["System$IComparable$1$System$Version$compareTo","System$IComparable$1$compareTo"]],ctors:{init:function(){this.aab$=-1,this.bab$=-1}},methods:{},overloads:{"Clone()":"clone","CompareTo(Object)":"compareTo$1","CompareTo(Version)":"compareTo","Equals(Object)":"equals","Equals(Version)":"equalsT","GetHashCode()":"getHashCode","ToString()":"toString","ToString(int)":"toString$1"}}),$$sd("Z$.C$.B$",{inherits:[Z$.C$.yd$,Z$.ld$],statics:{fields:{Cab$:0,Dab$:0},ctors:{init:function(){this.Cab$=101,this.Dab$=3}},methods:{Bab$:function(){Z$.C$.B$.prototype.get=function(e){var t=this.findEntry(e);return t?t.value:null}}}},fields:{zNa$:null,Gc$:0,wab$:0,xab$:0,yab$:0,aKa$:0,zab$:!1,keys:null,values:null,Aab$:null,iRa$:null},props:{},alias:["sGa$","lKa$","fKa$","mKa$","gKa$","nKa$","Keys","jKa$","eKa$","kKa$","hKa$","oKa$","Cw$","iKa$"],ctors:{init:function(){this.iRa$={}}},methods:{},overloads:{"Add(Object, Object)":"add","Clear()":"clear","Clone()":"clone","Contains(Object)":"contains","CopyTo(Array, int)":"copyTo","rehash(int, bool)":"rehash$1","Remove(Object)":"remove"}}),Bridge.init((function(){Z$.C$.B$.Bab$()})),$$sd("Z$.C$.z$.Fy$",(function(e,t){return{inherits:[Z$.C$.z$.Ey$(t)],ctors:{},methods:{}}})),$$sd("Z$.C$.w$.Wv$",(function(e,t){return{inherits:[Z$.C$.w$.r$(e,t)],ctors:{}}})),"function"==typeof define&&define.amd?define("bridge",[],(function(){return Bridge})):"undefined"!=typeof module&&module.exports&&(module.exports=Bridge)})(this),window.Goblin={},Goblin.warned=!1,Goblin.warnOnce=function(){Goblin.warned||(Goblin.warned=!0,console.error("You have excluded Physics 3D from your build but your game is still using it. Consider including it back if you are experiencing any issues."))},Goblin.ExcludedClass=Goblin.warnOnce,Goblin.Vector3=class{set(){}},Goblin.Quaternion=class{},Goblin.WorldStub=class{constructor(){this.eventEmitter={},this.gravity=new Goblin.Vector3,this.collision_matrix=[],this.solver={}}step(){}emitEvents(){}onCollisionMatrixUpdated(){}rayIntersectPc(){}testRayIntersectPc(){Goblin.warnOnce()}rayIntersectAllPc(){Goblin.warnOnce()}shapeCastPc(){Goblin.warnOnce()}shapeCastAllPc(){Goblin.warnOnce()}getIntersectingShapesPc(){Goblin.warnOnce()}getContactPc(){Goblin.warnOnce()}setIgnoreCollision(){Goblin.warnOnce()}},Goblin.World={initialize:()=>new Goblin.WorldStub},Goblin.ContactDetails=Goblin.ExcludedClass,Goblin.PhysicMaterial=Goblin.ExcludedClass,Goblin.RigidBody=Goblin.ExcludedClass,Goblin.ConvexHullShape=Goblin.ExcludedClass,Goblin.SphereShape=Goblin.ExcludedClass,Goblin.CapsuleShape=Goblin.ExcludedClass,Goblin.MeshShape=Goblin.ExcludedClass,Goblin.AABB=Goblin.ExcludedClass,Goblin.Constraint=Goblin.ExcludedClass,Goblin.ConstraintRow=Goblin.ExcludedClass,Goblin.RayIntersection=Goblin.ExcludedClass,Goblin.Matrix4=Goblin.ExcludedClass,window.Bridge.property=function(e,t,n,i,r,s){const a={enumerable:!s,configurable:!0};if(n&&n.get&&(a.get=n.get),n&&n.set&&(a.set=n.set),!n||!n.get&&!n.set){const e=Bridge.getTypeAlias(r)+"$"+t;r.$init=r.$init||{},i&&(r.$init[e]=n),function(e,t,n,i){e.get=function(){const e=this.$init[n];return void 0===e?i:e},e.set=function(e){this.$init[n]=e}}(a,0,e,n)}const o=[t],l=r.$descriptors||[];for(let e=0;e<l.length;e++){const n=l[e];if(n.name===t)for(let e=0;e<l.length;e++){const t=l[e];t.get===n.get&&t.set===n.set&&-1===o.indexOf(t.name)&&o.push(t.name)}}for(const t of o)Object.defineProperty(e,t,a),e["get"+t]=e["get"+t]||a.get,e["set"+t]=e["set"+t]||a.set;return a},window.pc={};let onBox2DLoaded=null;pc.waitForBox2D=new Promise((e=>{onBox2DLoaded=e})),"undefined"!=typeof Box2D?window.Box2D().then(onBox2DLoaded):onBox2DLoaded(null),pc.waitForBox2D.then((e=>{window.box2d=e}));let onMecanimLoaded=null;pc.waitForMecanim=new Promise((e=>{onMecanimLoaded=e})),"undefined"!=typeof Mecanim?window.Mecanim().then(onMecanimLoaded):onMecanimLoaded(null),pc.waitForMecanim.then((e=>{window.mecanim=e})),window.performance||(window.performance={now:()=>Date.now()}),window.performance.now||(window.performance.now=()=>Date.now()),(()=>{if(!{1593909819:0,"-499022955":-1}.hasOwnProperty(-499022955)){const e=Object.prototype.hasOwnProperty;Object.prototype.hasOwnProperty=function(...t){return e.call(this,t[0]+"")}}})(),Array.prototype.values||(Array.prototype.values=Array.prototype[Symbol.iterator]),(()=>{var e,t={},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,i),s.exports}i.m=t,e=[],i.O=(t,n,r,s)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,r,s]=e[u],o=!0,l=0;l<n.length;l++)(!1&s||a>=s)&&Object.keys(i.O).every((e=>i.O[e](n[l])))?n.splice(l--,1):(o=!1,s<a&&(a=s));if(o){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[n,r,s]},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={0:0};i.O.j=t=>0===e[t];var t=(t,n)=>{var r,s,[a,o,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(r in o)i.o(o,r)&&(i.m[r]=o[r]);if(l)var u=l(i)}for(t&&t(n);c<a.length;c++)s=a[c],i.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return i.O(u)},n=self.webpackChunkluna=self.webpackChunkluna||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})()})(),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[1],[(e,t,n)=>{n.d(t,{a:()=>M.a,b:()=>N,c:()=>Z,d:()=>D.a,e:()=>i.a,f:()=>j,g:()=>M.b,h:()=>u,i:()=>p,j:()=>f,k:()=>i.b,l:()=>s,m:()=>b,n:()=>d,o:()=>i.c,p:()=>i.g,q:()=>k,r:()=>i.i});var i=n(4);const r={tmpVec21:null,tmpVec22:null,diff:null};class s{constructor(e=0,t=0){this.x=e,this.y=t,this._data=null}add(e){return this.x+=e.x,this.y+=e.y,this}add2(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}clone(){return(new s).copy(this)}copy(e){return this.x=e.x,this.y=e.y,this}dot(e){return this.x*e.x+this.y*e.y}equals(e){const t=r.diff;return t.x=this.x-e.x,t.y=this.y-e.y,t.lengthSq()<999999943962493e-25}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}lengthSq(){return this.x*this.x+this.y*this.y}lerp(e,t,n){return n=(0,i.c)(n,0,1),this.x=e.x+n*(t.x-e.x),this.y=e.y+n*(t.y-e.y),this}lerpUnclamped(e,t,n){return this.x=e.x+n*(t.x-e.x),this.y=e.y+n*(t.y-e.y),this}mul(e){return this.x*=e.x,this.y*=e.y,this}mul2(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this}normalize(){const e=this.x*this.x+this.y*this.y;if(e>0){const t=1/Math.sqrt(e);this.x*=t,this.y*=t}return this}scale(e){return this.x*=e,this.y*=e,this}set(e,t){return this.x=e,this.y=t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}sub2(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}toString(){return"["+this.x+", "+this.y+"]"}setFromMax(e,t){return e>this.x&&(this.x=e),t>this.y&&(this.y=t),this}strictEquals(e){return e instanceof s&&this.equals(e)}div(e){return this.x/=e.x,this.y/=e.y,this}$getType(){return s}getitem(e){switch(e){case 0:return this.x;case 1:return this.y;default:return NaN}}iget(e){return this.getitem(e)}setitem(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t}}iset(e,t){this.setitem(e,t)}getHashCode(){return this.x^this.y}hash(){return this.getHashCode()}$clone(e=new s){return e.copy(this),e}fromVector3(e){return this.x=e.x,this.y=e.y,this}fromVector4(e){return this.x=e.x,this.y=e.y,this}get data(){return this._data||(this._data=new Float32Array(2)),this._data[0]=this.x,this._data[1]=this.y,this._data}}r.tmpVec21=new s,r.tmpVec22=new s,r.diff=new s,s.ctor=s,s.$kind="struct",s.kEpsilon=1e-5,s.kEpsilonNormalSqrt=1e-15,s.angle=(e,t)=>{const{tmpVec21:n,tmpVec22:s}=r;return n.copy(e).normalize(),s.copy(t).normalize(),Math.acos((0,i.c)(n.dot(s),-1,1))*i.b},s.signedAngle=(e,t)=>s.angle(e,t)*(0,i.k)(e.x*t.y-e.y*t.x),s.lengthClamp=(e,t)=>e.lengthSq()>t*t?e.clone().normalize().scale(t):e.clone(),s.reflect=(e,t)=>{const{tmpVec21:n}=r;n.copy(t);const i=-2*n.dot(e);return n.scale(i),n.add(e).clone()},s.moveTowards=(e,t,n)=>{const i=r.tmpVec21.copy(t).sub(e),s=i.length();return s<=n||s<1401298e-51?t.clone():e.clone().add(i.scale(1/s*n))},s.smoothDamp=(e,t,n,i,r,a)=>{const o=2/(i=Math.max(1e-4,i)),l=o*a,c=1/(1+l+.479999989271164*l*l+.234999999403954*l*l*l),u=e.clone().sub(t.clone()),h=t.clone(),d=r*i,m=s.lengthClamp(u.clone(),d);t=e.clone().sub(m.clone());const g=n.v.clone().add(m.clone().scale(o)).scale(a);n.v=n.v.clone().sub(g.clone().scale(o)).scale(c);let $=t.clone().add(m.clone().add(g.clone()).scale(c));return h.clone().sub(e.clone()).dot($.clone().sub(h.clone()))>0&&($=h.clone(),n.v=$.clone().sub(h.clone()).scale(1/a)),$.clone()},s.equals=(e,t)=>null===e&&null===t||e&&t&&e.equals(t),s.getDefaultValue=()=>new s,s.FromVector3=e=>new s(e.x,e.y),s.FromVector4=e=>new s(e.x,e.y);const a=new s(1,1);a._data=new Float32Array(2),Object.freeze(a),s.ONE=a;const o=new s(1,0);o._data=new Float32Array(2),Object.freeze(o),s.RIGHT=o;const l=new s(0,1);l._data=new Float32Array(2),Object.freeze(l),s.UP=l;const c=new s(0,0);c._data=new Float32Array(2),Object.freeze(c),s.ZERO=c;class u{constructor(){const e=new Float32Array(9);e[0]=e[4]=e[8]=1,this.data=e}clone(){return(new u).copy(this)}copy(e){const t=e.data,n=this.data;return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],this}set(e){const t=this.data;return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],this}setFromEulerAngles(e,t,n){const i=this.data,r=Math.sin(e),s=Math.cos(e),a=Math.sin(t),o=Math.cos(t),l=Math.sin(n),c=Math.cos(n);i[0]=o*c,i[1]=s*l+c*r*a,i[2]=r*l-s*c*a,i[3]=-o*l,i[4]=s*c-r*a*l,i[5]=c*r+s*a*l,i[6]=a,i[7]=-o*r,i[8]=s*o}equals(e){const t=this.data,n=e.data;return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]}isIdentity(){const e=this.data;return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[3]&&1===e[4]&&0===e[5]&&0===e[6]&&0===e[7]&&1===e[8]}setIdentity(){const e=this.data;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,this}toString(){let e="[";for(let t=0;t<9;t++)e+=this.data[t],e+=9!==t?", ":"";return e+="]",e}transpose(){const e=this.data;let t;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}transformVector(e,t=new b){const n=this.data,i=e.x,r=e.y,s=e.z;return t.x=i*n[0]+r*n[3]+s*n[6],t.y=i*n[1]+r*n[4]+s*n[7],t.z=i*n[2]+r*n[5]+s*n[8],t}}u.IDENTITY=Object.freeze(new u),u.ZERO=Object.freeze((new u).set([0,0,0,0,0,0,0,0,0]));const h={tmpVec41:null,diff:null};class d{constructor(e=0,t=0,n=0,i=0){this.x=e,this.y=t,this.z=n,this.w=i,this._data=null}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}add2(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}clone(){return(new d).copy(this)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}equals(e){const t=h.diff;return t.x=this.x-e.x,t.y=this.y-e.y,t.z=this.z-e.z,t.w=this.w-e.w,t.lengthSq()<999999943962493e-25}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}lerp(e,t,n){return this.x=e.x+n*(t.x-e.x),this.y=e.y+n*(t.y-e.y),this.z=e.z+n*(t.z-e.z),this.w=e.w+n*(t.w-e.w),this}mul(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}mul2(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this.w=e.w*t.w,this}normalize(){const e=this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w;if(e>0){const t=1/Math.sqrt(e);this.x*=t,this.y*=t,this.z*=t,this.w*=t}return this}scale(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setFromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}sub2(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}toString(){return"["+this.x+", "+this.y+", "+this.z+", "+this.w+"]"}project(e){const t=(this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w)/(e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w);return this.x=e.x*t,this.y=e.y*t,this.z=e.z*t,this.w=e.w*t,this}getitem(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:return NaN}}iget(e){return this.getitem(e)}setitem(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t}}iset(e,t){this.setitem(e,t)}strictEquals(e){return e instanceof d&&this.equals(e)}lerpUnclamped(e,t,n){return this.x=e.x+n*(t.x-e.x),this.y=e.y+n*(t.y-e.y),this.z=e.z+n*(t.z-e.z),this.w=e.w+n*(t.w-e.w),this}hash(){return this.x^this.y^this.z^this.w}getHashCode(){return this.hash()}fromVector2(e){return this.x=e.x,this.y=e.y,this.z=0,this.w=0,this}fromVector3(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=0,this}$getType(){return d}$clone(e=new d){return e.copy(this),e}get data(){return this._data||(this._data=new Float32Array(4)),this._data[0]=this.x,this._data[1]=this.y,this._data[2]=this.z,this._data[3]=this.w,this._data}}h.tmpVec41=new d,h.diff=new d,d.ctor=d,d.$kind="struct",d.distance=(e,t)=>h.tmpVec41.copy(e).sub(t).length(),d.moveTowards=(e,t,n)=>{const i=h.tmpVec41.copy(t).sub(e),r=i.length();return r<=n||r<1401298e-51?t.clone():e.clone().add(i.scale(1/r*n))},d.equals=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.equals(t),d.getDefaultValue=()=>new d,d.FromVector2=e=>new d(e.x,e.y,0,0),d.FromVector3=e=>new d(e.x,e.y,e.z,0);const m=new d(1,1,1,1);m._data=new Float32Array(4),Object.freeze(m),d.ONE=m;const g=new d(0,0,0,0);g._data=new Float32Array(4),Object.freeze(g),d.ZERO=g;const $={_tmpVec31:null,_tmpVec32:null,_tmpVec33:null,_tmpQuat1:null,_tmpQuat2:null,get tmpVec31(){return this._tmpVec31=this._tmpVec31||new b,this._tmpVec31},get tmpVec32(){return this._tmpVec32=this._tmpVec32||new b,this._tmpVec32},get tmpVec33(){return this._tmpVec33=this._tmpVec33||new b,this._tmpVec33},get tmpQuat1(){return this._tmpQuat1=this._tmpQuat1||new f,this._tmpQuat1},get tmpQuat2(){return this._tmpQuat2=this._tmpQuat2||new f,this._tmpQuat2}};class p{constructor(){this.data=new Float32Array(16),this.data[0]=this.data[5]=this.data[10]=this.data[15]=1}add2(e,t){const n=e.data,i=t.data,r=this.data;return r[0]=n[0]+i[0],r[1]=n[1]+i[1],r[2]=n[2]+i[2],r[3]=n[3]+i[3],r[4]=n[4]+i[4],r[5]=n[5]+i[5],r[6]=n[6]+i[6],r[7]=n[7]+i[7],r[8]=n[8]+i[8],r[9]=n[9]+i[9],r[10]=n[10]+i[10],r[11]=n[11]+i[11],r[12]=n[12]+i[12],r[13]=n[13]+i[13],r[14]=n[14]+i[14],r[15]=n[15]+i[15],this}add(e){return this.add2(this,e)}clone(){return(new p).copy(this)}copy(e){const t=e.data,n=this.data;return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=t[12],n[13]=t[13],n[14]=t[14],n[15]=t[15],this}equals(e){const t=this.data,n=e.data;return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}isIdentity(){const e=this.data;return 1===e[0]&&0===e[1]&&0===e[2]&&0===e[3]&&0===e[4]&&1===e[5]&&0===e[6]&&0===e[7]&&0===e[8]&&0===e[9]&&1===e[10]&&0===e[11]&&0===e[12]&&0===e[13]&&0===e[14]&&1===e[15]}mul2(e,t){let n,i,r,s;const a=e.data,o=t.data,l=this.data,c=a[0],u=a[1],h=a[2],d=a[3],m=a[4],g=a[5],$=a[6],p=a[7],y=a[8],f=a[9],_=a[10],S=a[11],b=a[12],C=a[13],E=a[14],T=a[15];return n=o[0],i=o[1],r=o[2],s=o[3],l[0]=c*n+m*i+y*r+b*s,l[1]=u*n+g*i+f*r+C*s,l[2]=h*n+$*i+_*r+E*s,l[3]=d*n+p*i+S*r+T*s,n=o[4],i=o[5],r=o[6],s=o[7],l[4]=c*n+m*i+y*r+b*s,l[5]=u*n+g*i+f*r+C*s,l[6]=h*n+$*i+_*r+E*s,l[7]=d*n+p*i+S*r+T*s,n=o[8],i=o[9],r=o[10],s=o[11],l[8]=c*n+m*i+y*r+b*s,l[9]=u*n+g*i+f*r+C*s,l[10]=h*n+$*i+_*r+E*s,l[11]=d*n+p*i+S*r+T*s,n=o[12],i=o[13],r=o[14],s=o[15],l[12]=c*n+m*i+y*r+b*s,l[13]=u*n+g*i+f*r+C*s,l[14]=h*n+$*i+_*r+E*s,l[15]=d*n+p*i+S*r+T*s,this}mul(e){return this.mul2(this,e)}transformPoint(e,t=new b){const n=this.data,i=e.x,r=e.y,s=e.z;return t.x=i*n[0]+r*n[4]+s*n[8]+n[12],t.y=i*n[1]+r*n[5]+s*n[9]+n[13],t.z=i*n[2]+r*n[6]+s*n[10]+n[14],t}transformPointPerspective(e,t=new b){this.transformPoint(e,t);const n=this.data,i=e.x,r=e.y,s=e.z,a=i*n[3]+r*n[7]+s*n[11]+n[15];return Math.abs(a)>1e-7?(t.x/=a,t.y/=a,t.z/=a):(t.x=0,t.y=0,t.z=0),t}transformPointInverse(e,t=new b){const n=this.data,i=e.x-n[12],r=e.y-n[13],s=e.z-n[14];return t.x=i*n[0]+r*n[1]+s*n[2],t.y=i*n[4]+r*n[5]+s*n[6],t.z=i*n[8]+r*n[9]+s*n[10],t}transformVector(e,t=new b){const n=this.data,i=e.x,r=e.y,s=e.z;return t.x=i*n[0]+r*n[4]+s*n[8],t.y=i*n[1]+r*n[5]+s*n[9],t.z=i*n[2]+r*n[6]+s*n[10],t}transformVec4(e,t=new d){const n=this.data,i=e.x,r=e.y,s=e.z,a=e.w;return t.x=i*n[0]+r*n[4]+s*n[8]+a*n[12],t.y=i*n[1]+r*n[5]+s*n[9]+a*n[13],t.z=i*n[2]+r*n[6]+s*n[10]+a*n[14],t.w=i*n[3]+r*n[7]+s*n[11]+a*n[15],t}setLookAt(e,t,n){const i=$.tmpVec31,r=$.tmpVec32,s=$.tmpVec33;if(s.sub2(t,e),s.length()<1e-6)return this.setIdentity();s.normalize(),r.copy(n).normalize(),i.cross(r,s).normalize(),r.cross(s,i);const a=this.data;return a[0]=i.x,a[1]=i.y,a[2]=i.z,a[3]=0,a[4]=r.x,a[5]=r.y,a[6]=r.z,a[7]=0,a[8]=s.x,a[9]=s.y,a[10]=s.z,a[11]=0,a[12]=e.x,a[13]=e.y,a[14]=e.z,a[15]=1,this}setFrustum(e,t,n,i,r,s){const a=2*r,o=t-e,l=i-n,c=s-r,u=this.data;return u[0]=a/o,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=a/l,u[6]=0,u[7]=0,u[8]=-(t+e)/o,u[9]=-(i+n)/l,u[10]=(-s-r)/c,u[11]=-1,u[12]=0,u[13]=0,u[14]=-a*s/c,u[15]=0,this}setPerspective(e,t,n,i,r=!1){let s,a;return 0===n&&(n=.01),r?(s=n*Math.tan(e*Math.PI/360),a=s/t):(a=n*Math.tan(e*Math.PI/360),s=a*t),this.setFrustum(-s,s,-a,a,n,i)}setOrtho(e,t,n,i,r,s){const a=this.data;return a[0]=2/(t-e),a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2/(i-n),a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=-2/(s-r),a[11]=0,a[12]=-(t+e)/(t-e),a[13]=-(i+n)/(i-n),a[14]=-(s+r)/(s-r),a[15]=1,this}setFromAxisAngle(e,t){t*=i.a;const n=e.x,r=e.y,s=e.z,a=Math.cos(t),o=Math.sin(t),l=1-a,c=l*n,u=l*r,h=this.data;return h[0]=c*n+a,h[1]=c*r+o*s,h[2]=c*s-o*r,h[3]=0,h[4]=c*r-o*s,h[5]=u*r+a,h[6]=u*s+o*n,h[7]=0,h[8]=c*s+o*r,h[9]=u*s-n*o,h[10]=l*s*s+a,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1,this}setTranslate(e,t,n){const i=this.data;return i[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=e,i[13]=t,i[14]=n,i[15]=1,this}setScale(e,t,n){const i=this.data;return i[0]=e,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=t,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=n,i[11]=0,i[12]=0,i[13]=0,i[14]=0,i[15]=1,this}setPositionAndOrthoNormalBasis(e,t,n,i){const r=this.data;return r[0]=t.x,r[1]=n.x,r[2]=i.x,r[3]=0,r[4]=t.y,r[5]=n.y,r[6]=i.y,r[7]=0,r[8]=t.z,r[9]=n.z,r[10]=i.z,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}invert(){const e=this.data,t=e[0],n=e[1],i=e[2],r=e[3],s=e[4],a=e[5],o=e[6],l=e[7],c=e[8],u=e[9],h=e[10],d=e[11],m=e[12],g=e[13],$=e[14],p=e[15],y=t*a-n*s,f=t*o-i*s,_=t*l-r*s,S=n*o-i*a,b=n*l-r*a,C=i*l-r*o,E=c*g-u*m,T=c*$-h*m,v=c*p-d*m,I=u*$-h*g,x=u*p-d*g,A=h*p-d*$,w=y*A-f*x+_*I+S*v-b*T+C*E;if(0===w)this.setIdentity();else{const D=1/w;e[0]=(a*A-o*x+l*I)*D,e[1]=(-n*A+i*x-r*I)*D,e[2]=(g*C-$*b+p*S)*D,e[3]=(-u*C+h*b-d*S)*D,e[4]=(-s*A+o*v-l*T)*D,e[5]=(t*A-i*v+r*T)*D,e[6]=(-m*C+$*_-p*f)*D,e[7]=(c*C-h*_+d*f)*D,e[8]=(s*x-a*v+l*E)*D,e[9]=(-t*x+n*v-r*E)*D,e[10]=(m*b-g*_+p*y)*D,e[11]=(-c*b+u*_-d*y)*D,e[12]=(-s*I+a*T-o*E)*D,e[13]=(t*I-n*T+i*E)*D,e[14]=(-m*S+g*f-$*y)*D,e[15]=(c*S-u*f+h*y)*D}return this}set(e){const t=this.data;return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],this}setFromArray(e,t=0){const n=this.data;for(let i=0;i<16;i++)n[i]=e[t+i];return this}setIdentity(){const e=this.data;return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}setTRS(e,t,n){const i=e.x,r=e.y,s=e.z,a=t.x,o=t.y,l=t.z,c=t.w,u=n.x,h=n.y,d=n.z,m=a+a,g=o+o,$=l+l,p=a*m,y=a*g,f=a*$,_=o*g,S=o*$,b=l*$,C=c*m,E=c*g,T=c*$,v=this.data;return v[0]=(1-(_+b))*u,v[1]=(y+T)*u,v[2]=(f-E)*u,v[3]=0,v[4]=(y-T)*h,v[5]=(1-(p+b))*h,v[6]=(S+C)*h,v[7]=0,v[8]=(f+E)*d,v[9]=(S-C)*d,v[10]=(1-(p+_))*d,v[11]=0,v[12]=i,v[13]=r,v[14]=s,v[15]=1,this}transpose(){let e;const t=this.data;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}invertTo3x3(e){const t=this.data,n=e.data,i=t[0],r=t[1],s=t[2],a=t[4],o=t[5],l=t[6],c=t[8],u=t[9],h=t[10],d=h*o-l*u,m=-h*r+s*u,g=l*r-s*o,$=-h*a+l*c,p=h*i-s*c,y=-l*i+s*a,f=u*a-o*c,_=-u*i+r*c,S=o*i-r*a,b=i*d+r*$+s*f;if(0===b)return this;const C=1/b;return n[0]=C*d,n[1]=C*m,n[2]=C*g,n[3]=C*$,n[4]=C*p,n[5]=C*y,n[6]=C*f,n[7]=C*_,n[8]=C*S,this}getTranslation(e=new b){return e.set(this.data[12],this.data[13],this.data[14])}getTranslation4(e=new d){return e.set(this.data[12],this.data[13],this.data[14],0)}getX(e=new b){return e.set(this.data[0],this.data[1],this.data[2])}getY(e=new b){return e.set(this.data[4],this.data[5],this.data[6])}getZ(e=new b){return e.set(this.data[8],this.data[9],this.data[10])}getScale(e=new b){const t=$.tmpVec31,n=$.tmpVec32,i=$.tmpVec33;return this.getX(t),this.getY(n),this.getZ(i),e.set(t.length(),n.length(),i.length()),e}setFromEulerAngles(e,t,n){e*=i.a,t*=i.a,n*=i.a;const r=Math.sin(-e),s=Math.cos(-e),a=Math.sin(-t),o=Math.cos(-t),l=Math.sin(-n),c=Math.cos(-n),u=this.data;return u[0]=o*c,u[1]=-o*l,u[2]=a,u[3]=0,u[4]=s*l+c*r*a,u[5]=s*c-r*a*l,u[6]=-o*r,u[7]=0,u[8]=r*l-s*c*a,u[9]=c*r+s*a*l,u[10]=s*o,u[11]=0,u[12]=0,u[13]=0,u[14]=0,u[15]=1,this}getEulerAngles(e=new b){const t=$.tmpVec31;this.getScale(t);const n=t.x,r=t.y,s=t.z,a=this.data,o=Math.asin(-a[2]/n),l=.5*Math.PI;let c=0,u=0;return o<l?o>-l?(c=Math.atan2(a[6]/r,a[10]/s),u=Math.atan2(a[1]/n,a[0]/n)):(u=0,c=-Math.atan2(a[4]/r,a[5]/r)):(u=0,c=Math.atan2(a[4]/r,a[5]/r)),e.set(c,o,u).scale(i.b)}toString(){let e,t;for(t="[",e=0;e<16;e+=1)t+=this.data[e],t+=15!==e?", ":"";return t+="]",t}setColumn(e,t){return this.data[4*e]=t.x,this.data[4*e+1]=t.y,this.data[4*e+2]=t.z,this.data[4*e+3]=t.w,this}getColumn(e){switch(e){case 0:return new d(this.data[0],this.data[1],this.data[2],this.data[3]);case 1:return new d(this.data[4],this.data[5],this.data[6],this.data[7]);case 2:return new d(this.data[8],this.data[9],this.data[10],this.data[11]);case 3:return new d(this.data[12],this.data[13],this.data[14],this.data[15]);default:return null}}getRow(e){switch(e){case 0:return new d(this.data[0],this.data[4],this.data[8],this.data[12]);case 1:return new d(this.data[1],this.data[5],this.data[9],this.data[13]);case 2:return new d(this.data[2],this.data[6],this.data[10],this.data[14]);case 3:return new d(this.data[3],this.data[7],this.data[11],this.data[15]);default:return null}}scale(e){for(let t=0;t<16;t++)this.data[t]*=e}determinant(){const e=this.data,t=e[0],n=e[1],i=e[2],r=e[3],s=e[4],a=e[5],o=e[6],l=e[7],c=e[8],u=e[9],h=e[10],d=e[11],m=e[12],g=e[13],$=e[14],p=e[15];return(t*a-n*s)*(h*p-d*$)-(t*o-i*s)*(u*p-d*g)+(t*l-r*s)*(u*$-h*g)+(n*o-i*a)*(c*p-d*m)-(n*l-r*a)*(c*$-h*m)+(i*l-r*o)*(c*g-u*m)}getRotation(e=new f){return e.setFromMat4(this),e}multiplyInverse(e){const t=$.tmpVec31,n=$.tmpVec32,i=$.tmpQuat1,r=$.tmpQuat2;r.setFromMat4(this).conjugate(),i.setFromMat4(e),e.getTranslation(n),this.getTranslation(t),n.sub(t),r.transformVector(n,n),r.mul(i),this.setTRS(n,r,b.ONE)}transformVectorInverse(e,t=new b){const n=$.tmpQuat1,i=$.tmpVec31;return n.setFromMat4(this),this.getTranslation(i),t.sub2(e,i),n.transformVectorInverse(t,t),t}setRotation(e){return this.setTRS(b.ZERO,e,b.ONE)}setTranslation(e){const t=this.data;return t[12]=e.x,t[13]=e.y,t[14]=e.z,this}setPerspective_Unity(e,t,n,i,r=!1){return this.setPerspective(e,t,n,i,r),this.data[8]*=-1,this.data[9]*=-1,this.data[10]*=-1,this.data[11]*=-1,this}multiplyPoint(e,t=new b){const n=this.data,i=e.x,r=e.y,s=e.z;t.x=i*n[0]+r*n[4]+s*n[8]+n[12],t.y=i*n[1]+r*n[5]+s*n[9]+n[13],t.z=i*n[2]+r*n[6]+s*n[10]+n[14];const a=1/(i*n[3]+r*n[7]+s*n[11]+n[15]);return t.scale(a),t}setData(e,t,n,i,r,s,a,o,l,c,u,h,d,m,g,$){return this.data[0]=e,this.data[1]=t,this.data[2]=n,this.data[3]=i,this.data[4]=r,this.data[5]=s,this.data[6]=a,this.data[7]=o,this.data[8]=l,this.data[9]=c,this.data[10]=u,this.data[11]=h,this.data[12]=d,this.data[13]=m,this.data[14]=g,this.data[15]=$,this}validTRS(){return!(Math.abs(this.data[3])>1e-5||Math.abs(this.data[7])>1e-5||Math.abs(this.data[11])>1e-5||Math.abs(this.data[15]-1)>1e-5)&&Math.abs(this.determinant())>=1e-5}decomposeProjection(){return e.zFar=(this.data[15]-this.data[14])/(this.data[11]-this.data[10]),e.zNear=(this.data[15]+this.data[14])/(this.data[11]+this.data[10]),e.left=(this.data[11]+this.data[8])/(this.data[3]+this.data[0])*e.zNear,e.right=(this.data[11]-this.data[8])/(this.data[3]-this.data[0])*e.zNear,e.top=(this.data[11]-this.data[9])/(this.data[7]-this.data[5])*e.zNear,e.bottom=(this.data[11]+this.data[9])/(this.data[7]+this.data[5])*e.zNear,e}transformPlane(e){const t=this.clone().invert(),n=e.normal.x,i=e.normal.y,r=e.normal.z,s=e.distance;return new UnityEngine.Plane.$ctor1(new b(t.e00*n+t.e10*i+t.e20*r+t.e30*s,t.e01*n+t.e11*i+t.e21*r+t.e31*s,t.e02*n+t.e12*i+t.e22*r+t.e32*s),t.e03*n+t.e13*i+t.e23*r+t.e33*s)}strictEquals(e){return e instanceof p&&this.equals(e)}$clone(e=new p){return e.copy(this),e}equalsWithEpsilon(e,t=1e-6){const n=this.data,i=e.data;for(let e=0;e<16;e++)if(Math.abs(n[e]-i[e])>=t)return!1;return!0}get e00(){return this.data[0]}set e00(e){this.data[0]=e}get e10(){return this.data[1]}set e10(e){this.data[1]=e}get e20(){return this.data[2]}set e20(e){this.data[2]=e}get e30(){return this.data[3]}set e30(e){this.data[3]=e}get e01(){return this.data[4]}set e01(e){this.data[4]=e}get e11(){return this.data[5]}set e11(e){this.data[5]=e}get e21(){return this.data[6]}set e21(e){this.data[6]=e}get e31(){return this.data[7]}set e31(e){this.data[7]=e}get e02(){return this.data[8]}set e02(e){this.data[8]=e}get e12(){return this.data[9]}set e12(e){this.data[9]=e}get e22(){return this.data[10]}set e22(e){this.data[10]=e}get e32(){return this.data[11]}set e32(e){this.data[11]=e}get e03(){return this.data[12]}set e03(e){this.data[12]=e}get e13(){return this.data[13]}set e13(e){this.data[13]=e}get e23(){return this.data[14]}set e23(e){this.data[14]=e}get e33(){return this.data[15]}set e33(e){this.data[15]=e}get singular(){return 0===this.determinant()}getitem(e){return this.data[e]}iget(e){return this.getitem(e)}setitem(e,t){this.data[e]=t}iset(e,t){this.setitem(e,t)}getitem$1(e,t){return this.data[e+4*t]}ijget(e,t){return this.getitem$1(e,t)}setitem$1(e,t,n){this.data[e+4*t]=n}ijset(e,t,n){this.setitem$1(e,t,n)}getHashCode(){let e=this.data[0];for(let t=0;t<this.data.length;t++)e^=this.data[t];return e}hash(){return this.getHashCode()}}p.ctor=p,p.$kind="struct",p.fromArray=e=>{const t=new p;return t.data=e,t},p.getDefaultValue=()=>new p,p.mat3FromMat4=(e,t)=>{e.data[0]=t.data[0],e.data[1]=t.data[1],e.data[2]=t.data[2],e.data[3]=t.data[4],e.data[4]=t.data[5],e.data[5]=t.data[6],e.data[6]=t.data[8],e.data[7]=t.data[9],e.data[8]=t.data[10]},p.inverse3DAffine=(e,t)=>{t.v=e.clone().invert()},p.setFrustumUnity=(e,t,n,i,r,s)=>{const a=2*r,o=t-e,l=i-n,c=r-s,u=new p;return u.data[0]=a/o,u.data[1]=0,u.data[2]=0,u.data[3]=0,u.data[4]=0,u.data[5]=a/l,u.data[6]=0,u.data[7]=0,u.data[8]=(t+e)/o,u.data[9]=(i+n)/l,u.data[10]=(s+r)/c,u.data[11]=-1,u.data[12]=0,u.data[13]=0,u.data[14]=a*s/c,u.data[15]=0,u},p.setLookAtUnity=(e,t,n)=>{const i=new p,r=new b,s=new b,a=new b;if(a.sub2(t,e),a.length()<1e-6)return i.setIdentity();a.normalize(),s.copy(n).normalize(),r.cross(s,a).normalize(),s.cross(a,r),i.data[0]=-r.x,i.data[1]=r.y,i.data[2]=-r.z,i.data[3]=0,i.data[4]=s.x,i.data[5]=s.y,i.data[6]=s.z,i.data[7]=0,i.data[8]=-a.x,i.data[9]=-a.y,i.data[10]=-a.z,i.data[11]=0,i.data[12]=e.x,i.data[13]=e.y,i.data[14]=e.z,i.data[15]=1},p.equals=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.equals(t),p.IDENTITY=Object.freeze(new p),p.ZERO=Object.freeze((new p).set([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]));const y={_tmpVec31:null,_tmpVec32:null,_tmpVec33:null,get tmpVec31(){return this._tmpVec31=this._tmpVec31||new b,this._tmpVec31},get tmpVec32(){return this._tmpVec32=this._tmpVec32||new b,this._tmpVec32},get tmpVec33(){return this._tmpVec33=this._tmpVec33||new b,this._tmpVec33}};class f{constructor(e=0,t=0,n=0,i=1){this.x=e,this.y=t,this.z=n,this.w=i}clone(){return new f(this.x,this.y,this.z,this.w)}conjugate(){return this.x*=-1,this.y*=-1,this.z*=-1,this}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w,this}equals(e){return this.dot(e)>.999998986721039}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}negate(){return this.x*=-1,this.y*=-1,this.z*=-1,this.w*=-1,this}transformVectorInverse(e,t=new b){const n=2*e.x,i=2*e.y,r=2*e.z,s=this.w*this.w-.5,a=this.x*n+this.y*i+this.z*r;return t.x=n*s-(this.y*r-this.z*i)*this.w+this.x*a,t.y=i*s-(this.z*n-this.x*r)*this.w+this.y*a,t.z=r*s-(this.x*i-this.y*n)*this.w+this.z*a,t}extractAxes(e,t,n){const i=this.x,r=this.y,s=this.z,a=this.w,o=i+i,l=r+r,c=s+s,u=o*i,h=l*r,d=c*s,m=o*r,g=o*s,$=o*a,p=l*s,y=l*a,f=c*a;e.set(1-h-d,m+f,g-y),t.set(m-f,1-u-d,p+$),n.set(g+y,p-$,1-u-h)}getAxisAngle(e){let t=2*Math.acos(this.w);const n=Math.sin(t/2);return 0!==n?(e.x=this.x/n,e.y=this.y/n,e.z=this.z/n,(e.x<0||e.y<0||e.z<0)&&(e.x*=-1,e.y*=-1,e.z*=-1,t*=-1)):(e.x=1,e.y=0,e.z=0),t*i.b}getEulerAngles(e=new b){let t,n,r;const s=this.x,a=this.y,o=this.z,l=this.w,c=2*(l*a-s*o);return c<=-.99999?(t=2*Math.atan2(s,l),n=-Math.PI/2,r=0):c>=.99999?(t=2*Math.atan2(s,l),n=Math.PI/2,r=0):(t=Math.atan2(2*(l*s+a*o),1-2*(s*s+a*a)),n=Math.asin(c),r=Math.atan2(2*(l*o+s*a),1-2*(a*a+o*o))),e.set(t,n,r).scale(i.b)}getUnityEulerAngles(){const e=new p,t=new b,n=new b(1,0,0),r=new b(0,1,0),s=new b(0,0,1);this.transformVector(n,n),this.transformVector(r,r),this.transformVector(s,s),e.data[0]=n.x,e.data[1]=n.y,e.data[2]=n.z,e.data[4]=r.x,e.data[5]=r.y,e.data[6]=r.z,e.data[8]=s.x,e.data[9]=s.y,e.data[10]=s.z,e.data[15]=1;const a=e.data,o=a[0],l=a[8],c=a[1],u=a[5],h=a[9],d=a[2],m=a[10];return t.x=Math.asin(-(0,i.c)(h,-1,1)),Math.abs(h)<.99999?(t.y=Math.atan2(l,m),t.z=Math.atan2(c,u)):(t.y=Math.atan2(-d,o),t.z=0),t.scale(i.b),t}invert(){return this.conjugate().normalize()}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}mul(e){const t=this.x,n=this.y,i=this.z,r=this.w,s=e.x,a=e.y,o=e.z,l=e.w;return this.x=r*s+t*l+n*o-i*a,this.y=r*a+n*l+i*s-t*o,this.z=r*o+i*l+t*a-n*s,this.w=r*l-t*s-n*a-i*o,this}mul2(e,t){const n=e.x,i=e.y,r=e.z,s=e.w,a=t.x,o=t.y,l=t.z,c=t.w;return this.x=s*a+n*c+i*l-r*o,this.y=s*o+i*c+r*a-n*l,this.z=s*l+r*c+n*o-i*a,this.w=s*c-n*a-i*o-r*l,this}nearest(e,t=new f){const n=(this.x-e.x)*(this.x-e.x)+(this.y-e.y)*(this.y-e.y)+(this.z-e.z)*(this.z-e.z)+(this.w-e.w)*(this.w-e.w),i=(this.x+e.x)*(this.x+e.x)+(this.y+e.y)*(this.y+e.y)+(this.z+e.z)*(this.z+e.z)+(this.w+e.w)*(this.w+e.w);return t.copy(e),n>i&&(t.x*=-1,t.y*=-1,t.z*=-1,t.w*=-1),t}normalize(){let e=this.length();return 0===e?(this.x=this.y=this.z=0,this.w=1):(e=1/e,this.x*=e,this.y*=e,this.z*=e,this.w*=e),this}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}fromTo(e,t){const{tmpVec31:n,tmpVec32:i}=y;n.copy(e).normalize(),i.copy(t).normalize();const r=this.fromToRotation(n,i);return this.set(r.x,r.y,r.z,r.w),this}setFromAxisAngle(e,t){const{tmpVec31:n}=y;if(e.equalsWithEpsilon(b.ZERO))return this.x=0,this.y=0,this.z=0,this.w=1,this;t*=.5*i.a,n.copy(e).normalize();const r=Math.sin(t),s=Math.cos(t);return this.x=r*n.x,this.y=r*n.y,this.z=r*n.z,this.w=s,this}setFromEulerAngles(e,t,n){const r=.5*i.a;t*=r,n*=r;const s=Math.sin(e*=r),a=Math.cos(e),o=Math.sin(t),l=Math.cos(t),c=Math.sin(n),u=Math.cos(n);return this.x=s*l*u-a*o*c,this.y=a*o*u+s*l*c,this.z=a*l*c-s*o*u,this.w=a*l*u+s*o*c,this}setFromMat4(e){let t,n,i=e.data[0],r=e.data[1],s=e.data[2],a=e.data[4],o=e.data[5],l=e.data[6],c=e.data[8],u=e.data[9],h=e.data[10],d=1/Math.sqrt(i*i+r*r+s*s),m=1/Math.sqrt(a*a+o*o+l*l),g=1/Math.sqrt(c*c+u*u+h*h);d=Number.isFinite(d)?d:1,m=Number.isFinite(m)?m:1,g=Number.isFinite(g)?g:1,i*=d,r*=d,s*=d,a*=m,o*=m,l*=m,c*=g,u*=g,h*=g;const $=i+o+h;return $>=0?(t=Math.sqrt($+1),this.w=.5*t,t=.5/t,this.x=(l-u)*t,this.y=(c-s)*t,this.z=(r-a)*t):i>o?i>h?(n=i-(o+h)+1,n=Math.sqrt(n),this.x=.5*n,n=.5/n,this.w=(l-u)*n,this.y=(r+a)*n,this.z=(s+c)*n):(n=h-(i+o)+1,n=Math.sqrt(n),this.z=.5*n,n=.5/n,this.w=(r-a)*n,this.x=(c+s)*n,this.y=(u+l)*n):o>h?(n=o-(h+i)+1,n=Math.sqrt(n),this.y=.5*n,n=.5/n,this.w=(c-s)*n,this.z=(l+u)*n,this.x=(a+r)*n):(n=h-(i+o)+1,n=Math.sqrt(n),this.z=.5*n,n=.5/n,this.w=(r-a)*n,this.x=(c+s)*n,this.y=(u+l)*n),this}slerp(e,t,n){return n=(0,i.c)(n,0,1),this.slerpUnclamped(e,t,n)}slerpUnclamped(e,t,n){let i,r,s,a;const o=e.x,l=e.y,c=e.z,u=e.w;i=t.x,r=t.y,s=t.z,a=t.w;let h=u*a+o*i+l*r+c*s;if(h<0&&(a=-a,i=-i,r=-r,s=-s,h=-h),Math.abs(h)>=1)return this.w=u,this.x=o,this.y=l,this.z=c,this;const d=Math.acos(h),m=Math.sqrt(1-h*h);if(Math.abs(m)<.001)return this.w=.5*u+.5*a,this.x=.5*o+.5*i,this.y=.5*l+.5*r,this.z=.5*c+.5*s,this;const g=Math.sin((1-n)*d)/m,$=Math.sin(n*d)/m;return this.w=u*g+a*$,this.x=o*g+i*$,this.y=l*g+r*$,this.z=c*g+s*$,this}transformVector(e,t=new b){const n=e.x,i=e.y,r=e.z,s=this.x,a=this.y,o=this.z,l=this.w,c=l*n+a*r-o*i,u=l*i+o*n-s*r,h=l*r+s*i-a*n,d=-s*n-a*i-o*r;return t.x=c*l+d*-s+u*-o-h*-a,t.y=u*l+d*-a+h*-s-c*-o,t.z=h*l+d*-o+c*-a-u*-s,t}toString(){return"["+this.x+", "+this.y+", "+this.z+", "+this.w+"]"}setLookAt(e,t){if(e.equals(b.ZERO))return this.copy(f.IDENTITY);const n=(new p).setLookAt(b.ZERO,e,t);return this.setFromMat4(n),this}getitem(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:return NaN}}iget(e){return this.getitem(e)}setitem(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t}}iset(e,t){this.setitem(e,t)}setFromEulerAngles_Unity(e,t,n){const r=e*i.a*.5,s=t*i.a*.5,a=n*i.a*.5,o=Math.sin(r),l=Math.cos(r),c=Math.sin(s),u=Math.cos(s),h=Math.sin(a),d=Math.cos(a);return this.x=u*o*d+c*l*h,this.y=c*l*d-u*o*h,this.z=u*l*h-c*o*d,this.w=u*l*d+c*o*h,this}getEulerAngles_Unity(e=new b){const t=this,n=t.x*t.x+t.y*t.y+t.z*t.z+t.w*t.w,r=t.x*t.w-t.y*t.z;return r>.4995*n?(e.x=Math.PI/2,e.y=2*Math.atan2(t.y,t.x),e.z=0):r<-.4995*n?(e.x=-Math.PI/2,e.y=-2*Math.atan2(t.y,t.x),e.z=0):(e.x=Math.asin(2*(t.w*t.x-t.y*t.z)),e.y=Math.atan2(2*t.w*t.y+2*t.z*t.x,1-2*(t.x*t.x+t.y*t.y)),e.z=Math.atan2(2*t.w*t.z+2*t.x*t.y,1-2*(t.z*t.z+t.x*t.x))),e.x*=i.b,e.y*=i.b,e.z*=i.b,e.x+=e.x<0?360:0,e.y+=e.y<0?360:0,e.z+=e.z<0?360:0,e}getPositiveEulerAngles(){return this.getEulerAngles_Unity()}fromToRotation(e,t){const n=new b;n.cross(e,t);const i=new f;return i.x=n.x,i.y=n.y,i.z=n.z,i.w=Math.sqrt(e.lengthSq()*t.lengthSq())+e.dot(t),i.normalize()}strictEquals(e){return e instanceof f&&this.equals(e)}approximatelyEquals(e,t=1e-5){return Math.abs(this.x-e.x)<t&&Math.abs(this.y-e.y)<t&&Math.abs(this.z-e.z)<t&&Math.abs(this.w-e.w)<t}toAngleAxis(e,t){const n=this.$clone().normalize();e.v=2*Math.acos(n.w)*i.b;const r=Math.sqrt(1-n.w*n.w);r<1e-4?(t.v.x=1,t.v.z=t.v.y=0):(t.v.x=n.x/r,t.v.y=n.y/r,t.v.z=n.z/r)}$clone(e=new f){return e.copy(this),e}get xyz(){return new b(this.x,this.y,this.z)}}f.ctor=f,f.$kind="struct",f.getDefaultValue=()=>new f,f.rotateTowards=(e,t,n)=>{const i=f.angle(e,t);return i<1401298e-51?t:(new f).slerpUnclamped(e,t,Math.min(1,n/i))},f.angle=(e,t)=>{const n=e.dot(t);let r=0;return n<.999998986721039&&(r=2*Math.acos(Math.min(Math.abs(n),1))*i.b),r},f.IDENTITY=Object.freeze(new f),f.ZERO=Object.freeze(new f(0,0,0,0));const _={tmpVec31:null,tmpVec32:null,diff:null,_tmpQuat1:null,_tmpQuat2:null,get tmpQuat1(){return this._tmpQuat1=this._tmpQuat1||new f,this._tmpQuat1},get tmpQuat2(){return this._tmpQuat2=this._tmpQuat2||new f,this._tmpQuat2}};function S(e){return Math.abs(e)>1e-5?1/e:0}class b{constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n,this._data=null}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}add2(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScalars(e,t,n){return this.x+=e,this.y+=t,this.z+=n,this}clone(){return(new b).copy(this)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}cross(e,t){const n=e.x,i=e.y,r=e.z,s=t.x,a=t.y,o=t.z;return this.x=i*o-a*r,this.y=r*s-o*n,this.z=n*a-s*i,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}equals(e,t=999999943962493e-25){const n=_.diff;return n.x=this.x-e.x,n.y=this.y-e.y,n.z=this.z-e.z,n.lengthSq()<t}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}lerp(e,t,n){return n=(0,i.c)(n,0,1),this.x=e.x+n*(t.x-e.x),this.y=e.y+n*(t.y-e.y),this.z=e.z+n*(t.z-e.z),this}lerpUnclamped(e,t,n){return this.x=e.x+n*(t.x-e.x),this.y=e.y+n*(t.y-e.y),this.z=e.z+n*(t.z-e.z),this}mul(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}mul2(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}mulScalars(e,t,n){return this.x*=e,this.y*=t,this.z*=n,this}normalize(){const e=this.x*this.x+this.y*this.y+this.z*this.z;if(e>0){const t=1/Math.sqrt(e);this.x*=t,this.y*=t,this.z*=t}return this}project(e){const t=this.x*e.x+this.y*e.y+this.z*e.z,n=e.x*e.x+e.y*e.y+e.z*e.z;if(n<Number.EPSILON)return b.ZERO.clone();const i=t/n;return this.x=e.x*i,this.y=e.y*i,this.z=e.z*i,this}scale(e){return this.x*=e,this.y*=e,this.z*=e,this}set(e,t,n=0){return this.x=e,this.y=t,this.z=n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}sub2(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}subScalars(e,t,n){return this.x-=e,this.y-=t,this.z-=n,this}toString(){return"["+this.x+", "+this.y+", "+this.z+"]"}slerp(e,t,n){n=(0,i.c)(n,0,1);const r=e.length();if(r<Number.EPSILON)return this.copy(e);const s=t.length();if(s<Number.EPSILON)return this.copy(t);const a=1-n,o=e.dot(t)/(r*s);if(o<=-1||o>=1)return this.copy(e).normalize().scale(a*r+n*s);const l=Math.acos(o);if(l<Number.EPSILON)return this.copy(e);const c=Math.sin(l),u=Math.sin(a*l)/c,h=Math.sin(n*l)/c;return this.set(e.x*u+t.x*h,e.y*u+t.y*h,e.z*u+t.z*h).normalize().scale(a*r+n*s)}slerpUnclamped(e,t,n){const i=e.length();if(i<Number.EPSILON)return this.copy(e);const r=t.length();if(r<Number.EPSILON)return this.copy(t);const s=1-n,a=e.dot(t)/(i*r);if(a<=-1||a>=1)return this.copy(e).normalize().scale(s*i+n*r);const o=Math.acos(a);if(o<Number.EPSILON)return this.copy(e);const l=Math.sin(o),c=Math.sin(s*o)/l,u=Math.sin(n*o)/l;return this.set(e.x*c+t.x*u,e.y*c+t.y*u,e.z*c+t.z*u).normalize().scale(s*i+n*r)}abs(e=null){return e?(e.x=this.x<0?-this.x:this.x,e.y=this.y<0?-this.y:this.y,e.z=this.z<0?-this.z:this.z,e):(this.x<0&&(this.x=-this.x),this.y<0&&(this.y=-this.y),this.z<0&&(this.z=-this.z),this)}strictEquals(e){return e instanceof b&&this.equals(e)}approximatelyEquals(e,t=1e-5){return Math.abs(this.x-e.x)<t&&Math.abs(this.y-e.y)<t&&Math.abs(this.z-e.z)<t}invertSafe(){return this.x=S(this.x),this.y=S(this.y),this.z=S(this.z),this}$getType(){return b}getitem(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:return NaN}}iget(e){return this.getitem(e)}setitem(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t}}iset(e,t){this.setitem(e,t)}getHashCode(){return this.x^this.y^this.z}hash(){return this.getHashCode()}$clone(e=new b){return e.copy(this),e}fromVector2(e){return this.x=e.x,this.y=e.y,this.z=0,this}fromVector4(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}equalsWithEpsilon(e,t=1e-6){return Math.abs(this.x-e.x)<t&&Math.abs(this.y-e.y)<t&&Math.abs(this.z-e.z)<t}get data(){return this._data||(this._data=new Float32Array(3)),this._data[0]=this.x,this._data[1]=this.y,this._data[2]=this.z,this._data}}_.tmpVec31=new b,_.tmpVec32=new b,_.diff=new b,b.ctor=b,b.$kind="struct",b.kEpsilon=1e-5,b.kEpsilonNormalSqrt=1e-15,b.REVERSED_Z=new b(1,1,-1),b.cachedNegativeInfinity=new b(-1/0,-1/0,-1/0),b.cachedPositiveInfinity=new b(1/0,1/0,1/0),b.cachedForward=new b(0,0,1),b.cachedBack=new b(0,0,-1),b.cachedOne=new b(1,1,1);const C=new b(0,0,1);C._data=new Float32Array(3),Object.freeze(C),b.BACK=C;const E=new b(0,-1,0);E._data=new Float32Array(3),Object.freeze(E),b.DOWN=E;const T=new b(0,0,-1);T._data=new Float32Array(3),Object.freeze(T),b.FORWARD=T;const v=new b(-1,0,0);v._data=new Float32Array(3),Object.freeze(v),b.LEFT=v;const I=new b(1,1,1);I._data=new Float32Array(3),Object.freeze(I),b.ONE=I;const x=new b(1,0,0);x._data=new Float32Array(3),Object.freeze(x),b.RIGHT=x;const A=new b(0,1,0);A._data=new Float32Array(3),Object.freeze(A),b.UP=A;const w=new b(0,0,0);w._data=new Float32Array(3),Object.freeze(w),b.ZERO=w,b.distance=(e,t)=>_.tmpVec31.copy(e).sub(t).length(),b.projectOnPlane=(e,t,n=new b)=>{const{tmpVec31:i,tmpVec32:r}=_;return i.copy(e),r.copy(e),i.sub(r.project(t)),n.copy(i),n},b.smoothDamp=(e,t,n,i,r,s)=>{const a=2/(i=Math.max(1e-4,i)),o=a*s,l=1/(1+o+.479999989271164*o*o+.234999999403954*o*o*o),c=e.clone().sub(t.clone()),u=t.clone(),h=r*i,d=b.clampMagnitude(c.clone(),h);t=e.clone().sub(d.clone());const m=n.v.clone().add(d.clone().scale(a)).scale(s);n.v=n.v.clone().sub(m.clone().scale(a)).scale(l);let g=t.clone().add(d.clone().add(m.clone()).scale(l));return u.clone().sub(e.clone()).dot(g.clone().sub(u.clone()))>0&&(g=u.clone(),n.v=g.clone().sub(u.clone()).scale(1/s)),g.clone()},b.clampMagnitude=(e,t)=>e.length()>Math.abs(t)?e.clone().normalize().scale(t):e.clone(),b.reflect=(e,t)=>{const{tmpVec31:n}=_;return n.copy(t),n.scale(-2*e.dot(t)).add(e),n.clone()},b.moveTowards=(e,t,n)=>{const i=_.tmpVec31.copy(t).sub(e),r=i.length();return r<=n||r<1401298e-51?t.clone():e.clone().add(i.scale(1/r*n))},b.orthoNormalize=(e,t,n)=>{e.normalize(),t.cross(e,t),t.cross(t,e),t.normalize(),n.cross(e,t)},b.signedAngle=(e,t,n)=>{const{tmpVec31:r,tmpVec32:s}=_;r.copy(e).normalize(),s.copy(t).normalize();const a=(0,i.c)(s.dot(r),-1,1);r.cross(e,t);const o=n.dot(r);return Math.acos(a)*(0,i.k)(o)*i.b},b.rotateTowards=(e,t,n,r)=>{const{tmpVec31:s,tmpVec32:a,tmpQuat1:o,tmpQuat2:l}=_,c=s.cross(e,t),u=o.setLookAt(e,c),h=l.setLookAt(t,c),d=f.rotateTowards(u,h,n*i.b);s.set(0,0,1);const m=d.transformVector(s,a),g=t.length()-e.length(),$=e.length()+(0,i.k)(g)*Math.min(Math.abs(g),r);return m.normalize(),m.mul(new b($,$,$)),m.clone()},b.angle=(e,t)=>{const{tmpVec31:n,tmpVec32:r}=_;return Math.acos((0,i.c)(n.copy(e).normalize().dot(r.copy(t).normalize()),-1,1))*i.b},b.equals=(e,t)=>null===e&&null===t||!!e&&!!t&&e.equals(t),b.getDefaultValue=()=>new b,b.FromVector2=e=>new b(e.x,e.y,0),b.FromVector4=e=>new b(e.x,e.y,e.z);var D=n(21),M=n(22),P=n(35);class U{constructor(e,t,n){this.x=e,this.y=t,this.z=n}dot2(e,t){return this.x*e+this.y*t}}const B=[new U(1,1,0),new U(-1,1,0),new U(1,-1,0),new U(-1,-1,0),new U(1,0,1),new U(-1,0,1),new U(1,0,-1),new U(-1,0,-1),new U(0,1,1),new U(0,-1,1),new U(0,1,-1),new U(0,-1,-1)],O=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],L=Array(512),R=Array(512);function F(e){return e*e*e*(e*(6*e-15)+10)}function G(e,t,n){return(1-n)*e+n*t}function k(e,t){let n=Math.floor(e),i=Math.floor(t);e-=n,t-=i,n&=255,i&=255;const r=R[n+L[i]].dot2(e,t),s=R[n+L[i+1]].dot2(e,t-1),a=R[n+1+L[i]].dot2(e-1,t),o=R[n+1+L[i+1]].dot2(e-1,t-1),l=F(e);return G(G(r,a,l),G(s,o,l),F(t))}!function(e){e>0&&e<1&&(e*=65536),(e=Math.floor(e))<256&&(e|=e<<8);for(let t=0;t<256;t++){let n;n=1&t?O[t]^255&e:O[t]^e>>8&255,L[t]=L[t+256]=n,R[t]=R[t+256]=B[n%12]}}(0);const V={_tmpVecA:null,_tmpVecB:null,_tmpVecC:null,_tmpVecD:null,_tmpVecE:null,get tmpVecA(){return this._tmpVecA=this._tmpVecA||new b,this._tmpVecA},get tmpVecB(){return this._tmpVecB=this._tmpVecB||new b,this._tmpVecB},get tmpVecC(){return this._tmpVecC=this._tmpVecC||new b,this._tmpVecC},get tmpVecD(){return this._tmpVecD=this._tmpVecD||new b,this._tmpVecD},get tmpVecE(){return this._tmpVecE=this._tmpVecE||new b,this._tmpVecE}};class N{constructor(e=new b,t=new b){this.center=e,this.halfExtents=t,this._min=new b,this._max=new b}static getDefaultValue(){return new N}add(e){const t=this.center,n=t.x,i=t.y,r=t.z,s=this.halfExtents,a=s.x,o=s.y,l=s.z;let c=n-a,u=n+a,h=i-o,d=i+o,m=r-l,g=r+l;const $=e.center,p=$.x,y=$.y,f=$.z,_=e.halfExtents,S=_.x,b=_.y,C=_.z,E=p-S,T=p+S,v=y-b,I=y+b,x=f-C,A=f+C;E<c&&(c=E),T>u&&(u=T),v<h&&(h=v),I>d&&(d=I),x<m&&(m=x),A>g&&(g=A),t.x=.5*(c+u),t.y=.5*(h+d),t.z=.5*(m+g),s.x=.5*(u-c),s.y=.5*(d-h),s.z=.5*(g-m)}copy(e){this.center.copy(e.center),this.halfExtents.copy(e.halfExtents)}clone(){return new N(this.center.clone(),this.halfExtents.clone())}intersects(e){const t=this.getMax(),n=this.getMin(),i=e.getMax(),r=e.getMin();return n.x<=i.x&&t.x>=r.x&&n.y<=i.y&&t.y>=r.y&&n.z<=i.z&&t.z>=r.z}_intersectsRay(e,t){const n=V.tmpVecA.copy(this.getMin()).sub(e.origin),i=V.tmpVecB.copy(this.getMax()).sub(e.origin),r=e.direction;0===r.x?(n.x=n.x<0?-Number.MAX_VALUE:Number.MAX_VALUE,i.x=i.x<0?-Number.MAX_VALUE:Number.MAX_VALUE):(n.x/=r.x,i.x/=r.x),0===r.y?(n.y=n.y<0?-Number.MAX_VALUE:Number.MAX_VALUE,i.y=i.y<0?-Number.MAX_VALUE:Number.MAX_VALUE):(n.y/=r.y,i.y/=r.y),0===r.z?(n.z=n.z<0?-Number.MAX_VALUE:Number.MAX_VALUE,i.z=i.z<0?-Number.MAX_VALUE:Number.MAX_VALUE):(n.z/=r.z,i.z/=r.z);const s=V.tmpVecC.set(Math.min(n.x,i.x),Math.min(n.y,i.y),Math.min(n.z,i.z)),a=V.tmpVecD.set(Math.max(n.x,i.x),Math.max(n.y,i.y),Math.max(n.z,i.z)),o=Math.min(Math.min(a.x,a.y),a.z),l=Math.max(Math.max(s.x,s.y),s.z),c=o>=l&&l>=0;return c&&t.copy(e.direction).scale(l).add(e.origin),c}_fastIntersectsRay(e){const t=V.tmpVecA,n=V.tmpVecB,i=V.tmpVecC,r=V.tmpVecD,s=V.tmpVecE,a=e.direction;return t.sub2(e.origin,this.center),r.set(Math.abs(t.x),Math.abs(t.y),Math.abs(t.z)),i.mul2(t,a),!(r.x>this.halfExtents.x&&i.x>=0||r.y>this.halfExtents.y&&i.y>=0||r.z>this.halfExtents.z&&i.z>=0||(s.set(Math.abs(a.x),Math.abs(a.y),Math.abs(a.z)),n.cross(a,t),n.set(Math.abs(n.x),Math.abs(n.y),Math.abs(n.z)),n.x>this.halfExtents.y*s.z+this.halfExtents.z*s.y||n.y>this.halfExtents.x*s.z+this.halfExtents.z*s.x||n.z>this.halfExtents.x*s.y+this.halfExtents.y*s.x))}intersectsRay(e,t=null){return t?this._intersectsRay(e,t):this._fastIntersectsRay(e)}setToInfinity(){this.center.set(0,0,0),this.halfExtents.set(Number.MAX_SAFE_INTEGER/2,Number.MAX_SAFE_INTEGER/2,Number.MAX_SAFE_INTEGER/2)}setToNegativeSize(){return this.halfExtents.set(Number.MIN_SAFE_INTEGER/2,Number.MIN_SAFE_INTEGER/2,Number.MIN_SAFE_INTEGER/2),this}setMinMax(e,t){this.center.add2(t,e).scale(.5),this.halfExtents.sub2(t,e).scale(.5)}getMin(){return this._min.copy(this.center).sub(this.halfExtents)}getMax(){return this._max.copy(this.center).add(this.halfExtents)}containsPoint(e){const t=this.getMin(),n=this.getMax();return!(e.x<t.x||e.x>n.x||e.y<t.y||e.y>n.y||e.z<t.z||e.z>n.z)}setFromTransformedAabb(e,t,n=!1){const i=this.center,r=this.halfExtents,s=e.center,a=e.halfExtents,o=t.data,l=o[0],c=o[4],u=o[8],h=o[1],d=o[5],m=o[9],g=o[2],$=o[6],p=o[10],y=Math.abs(l),f=Math.abs(c),_=Math.abs(u),S=Math.abs(h),b=Math.abs(d),C=Math.abs(m),E=Math.abs(g),T=Math.abs($),v=Math.abs(p);if(i.set(o[12]+l*s.x+c*s.y+u*s.z,o[13]+h*s.x+d*s.y+m*s.z,o[14]+g*s.x+$*s.y+p*s.z),r.set(y*a.x+f*a.y+_*a.z,S*a.x+b*a.y+C*a.z,E*a.x+T*a.y+v*a.z),n){const e=o[3],t=o[7],n=o[11],l=o[15],c=Math.abs(e),u=Math.abs(t),h=Math.abs(n),d=Math.abs(l),m=l+e*s.x+t*s.y+n*s.z,g=d+c*a.x+u*a.y+h*a.z;i.scale(1/m),r.scale(1/g)}}compute(e,t){if(0===e.length)return void this.setToInfinity();t=t||3;const n=V.tmpVecA.set(e[0],e[1],e[2]),i=V.tmpVecB.set(e[0],e[1],e[2]),r=e.length/t;for(let s=1;s<r;s++){const r=e[s*t+0],a=e[s*t+1],o=e[s*t+2];r<n.x&&(n.x=r),a<n.y&&(n.y=a),o<n.z&&(n.z=o),r>i.x&&(i.x=r),a>i.y&&(i.y=a),o>i.z&&(i.z=o)}this.setMinMax(n,i)}expandToPoint(e){const t=this.getMin(),n=this.getMax();t.x=Math.min(t.x,e.x),t.y=Math.min(t.y,e.y),t.z=Math.min(t.z,e.z),n.x=Math.max(n.x,e.x),n.y=Math.max(n.y,e.y),n.z=Math.max(n.z,e.z),this.setMinMax(t,n)}expand(e){this.halfExtents.add(V.tmpVecA.copy(e).scale(.5))}closestPoint(e){const t=e.clone();return t.sub(this.center),t.x=(0,i.c)(t.x,-this.halfExtents.x,this.halfExtents.x),t.y=(0,i.c)(t.y,-this.halfExtents.y,this.halfExtents.y),t.z=(0,i.c)(t.z,-this.halfExtents.z,this.halfExtents.z),t.add(this.center),t}strictEquals(e){return e instanceof N&&this.equals(e)}equals(e){return this.center.equals(e.center)&&this.halfExtents.equals(e.halfExtents)}intersectRayDistance(e,t){const n=new b;return!!this._intersectsRay(e,n)&&(t.v=b.distance(e.origin,n),!0)}getVertices(e=[]){if(e.length<8)for(let t=e.length;t<8;t++)e.push(new b);const t=this.center,n=this.halfExtents;return e[0].x=t.x-n.x,e[0].y=t.y-n.y,e[0].z=t.z-n.z,e[1].x=t.x+n.x,e[1].y=t.y-n.y,e[1].z=t.z-n.z,e[2].x=t.x-n.x,e[2].y=t.y+n.y,e[2].z=t.z-n.z,e[3].x=t.x+n.x,e[3].y=t.y+n.y,e[3].z=t.z-n.z,e[4].x=t.x-n.x,e[4].y=t.y-n.y,e[4].z=t.z+n.z,e[5].x=t.x+n.x,e[5].y=t.y-n.y,e[5].z=t.z+n.z,e[6].x=t.x-n.x,e[6].y=t.y+n.y,e[6].z=t.z+n.z,e[7].x=t.x+n.x,e[7].y=t.y+n.y,e[7].z=t.z+n.z,e}getHashCode(){return this.center.getHashCode()^this.halfExtents.getHashCode()<<2}get min(){return this.getMin()}set min(e){this.setMinMax(e,this.getMax())}get max(){return this.getMax()}set max(e){this.setMinMax(this.getMin(),e)}}N.ctor=N,N.$kind="struct",N.equals=(e,t)=>null===e&&null===t||e&&t&&e.equals(t);const z={_viewProj:null,get viewProj(){return this._viewProj=this._viewProj||new p,this._viewProj}},H={radius:0,center:new b};class j{constructor(e=(new p).setPerspective(90,16/9,.1,1e3),t=new p){this.planes=[],this.unityPlanesOrthographic=[],this.unityPlanesPerspective=[];for(let e=0;e<6;e++)this.planes[e]=[];this.unityPlanesOrthographic[0]=this.planes[1],this.unityPlanesOrthographic[1]=this.planes[0],this.unityPlanesOrthographic[2]=this.planes[2],this.unityPlanesOrthographic[3]=this.planes[3],this.unityPlanesOrthographic[4]=this.planes[5],this.unityPlanesOrthographic[5]=this.planes[4],this.unityPlanesPerspective[0]=this.planes[1],this.unityPlanesPerspective[1]=this.planes[0],this.unityPlanesPerspective[2]=this.planes[3],this.unityPlanesPerspective[3]=this.planes[2],this.unityPlanesPerspective[4]=this.planes[5],this.unityPlanesPerspective[5]=this.planes[4],this.update(e,t)}update(e,t){z.viewProj.mul2(e,t);const n=z.viewProj.data;this.planes[0][0]=n[3]-n[0],this.planes[0][1]=n[7]-n[4],this.planes[0][2]=n[11]-n[8],this.planes[0][3]=n[15]-n[12];let i=Math.sqrt(this.planes[0][0]*this.planes[0][0]+this.planes[0][1]*this.planes[0][1]+this.planes[0][2]*this.planes[0][2]);this.planes[0][0]/=i,this.planes[0][1]/=i,this.planes[0][2]/=i,this.planes[0][3]/=i,this.planes[1][0]=n[3]+n[0],this.planes[1][1]=n[7]+n[4],this.planes[1][2]=n[11]+n[8],this.planes[1][3]=n[15]+n[12],i=Math.sqrt(this.planes[1][0]*this.planes[1][0]+this.planes[1][1]*this.planes[1][1]+this.planes[1][2]*this.planes[1][2]),this.planes[1][0]/=i,this.planes[1][1]/=i,this.planes[1][2]/=i,this.planes[1][3]/=i,this.planes[2][0]=n[3]+n[1],this.planes[2][1]=n[7]+n[5],this.planes[2][2]=n[11]+n[9],this.planes[2][3]=n[15]+n[13],i=Math.sqrt(this.planes[2][0]*this.planes[2][0]+this.planes[2][1]*this.planes[2][1]+this.planes[2][2]*this.planes[2][2]),this.planes[2][0]/=i,this.planes[2][1]/=i,this.planes[2][2]/=i,this.planes[2][3]/=i,this.planes[3][0]=n[3]-n[1],this.planes[3][1]=n[7]-n[5],this.planes[3][2]=n[11]-n[9],this.planes[3][3]=n[15]-n[13],i=Math.sqrt(this.planes[3][0]*this.planes[3][0]+this.planes[3][1]*this.planes[3][1]+this.planes[3][2]*this.planes[3][2]),this.planes[3][0]/=i,this.planes[3][1]/=i,this.planes[3][2]/=i,this.planes[3][3]/=i,this.planes[4][0]=n[3]-n[2],this.planes[4][1]=n[7]-n[6],this.planes[4][2]=n[11]-n[10],this.planes[4][3]=n[15]-n[14],i=Math.sqrt(this.planes[4][0]*this.planes[4][0]+this.planes[4][1]*this.planes[4][1]+this.planes[4][2]*this.planes[4][2]),this.planes[4][0]/=i,this.planes[4][1]/=i,this.planes[4][2]/=i,this.planes[4][3]/=i,this.planes[5][0]=n[3]+n[2],this.planes[5][1]=n[7]+n[6],this.planes[5][2]=n[11]+n[10],this.planes[5][3]=n[15]+n[14],i=Math.sqrt(this.planes[5][0]*this.planes[5][0]+this.planes[5][1]*this.planes[5][1]+this.planes[5][2]*this.planes[5][2]),this.planes[5][0]/=i,this.planes[5][1]/=i,this.planes[5][2]/=i,this.planes[5][3]/=i}containsPoint(e){for(let t=0;t<6;t++)if(this.planes[t][0]*e.x+this.planes[t][1]*e.y+this.planes[t][2]*e.z+this.planes[t][3]<=0)return!1;return!0}containsSphere(e,t=null){let n,i,r=0;const s=e.radius,a=e.center,o=a.x,l=a.y,c=a.z,u=this.planes;let h;for(i=0;i<6;i++){if(h=u[i],n=4===i&&t?h[0]*o+h[1]*l+h[2]*c+t:h[0]*o+h[1]*l+h[2]*c+h[3],n<=-s)return 0;n>s&&r++}return 6===r?2:1}containsCylinder(e,t,n){for(let i=0;i<this.planes.length;i++){const r=this.planes[i],s=-(r[0]*t.x+r[1]*t.y+r[2]*t.z);if(Math.abs(s)>Number.EPSILON){const i=(r[0]*e.x+r[1]*e.y+r[2]*e.z+r[3])/s,a=H;if(a.center.x=e.x+t.x*i,a.center.y=e.y+t.y*i,a.center.z=e.z+t.z*i,a.radius=n,this.containsSphere(a))return!0}}return!1}}class Z{constructor(){this._center=b.ZERO.clone(),this._radius=0}get center(){return this._center}set center(e){this._center=e}get radius(){return this._radius}set radius(e){this._radius=e}}pc.Vec3=b,pc.Quat=f,pc.Mat4=p,pc.Vec4=d,pc.Mat3=u,pc.Vec2=s,pc.math={RAD_TO_DEG:i.b,DEG_TO_RAD:i.a,clamp:i.c,intToBytes24:i.d,intToBytes32:i.e,lerp:i.g,inverseLerp:i.f,powerOfTwo:i.i,random:i.j,smoothstep:i.m,smootherstep:i.l,sign:i.k,nextPowerOfTwo:i.h},pc.Color=D.a,pc.AnimationCurve=M.a,pc.Keyframe=M.b,pc.BoundingBox=N,pc.noise={perlin2:k},pc.ColorGradient=P.a},(e,t,n)=>{n.d(t,{a:()=>s.a,c:()=>c,b:()=>a.a,d:()=>d.a,e:()=>p,f:()=>r.a,g:()=>i.a,h:()=>C,i:()=>f.c,k:()=>u.a,j:()=>h.b});var i=n(46),r=n(47),s=n(17),a=n(18),o=n(2);let l=0;class c{constructor(e,t){this.id=l++,this.$id=0,this.system=e,this.entity=t,this.data=null,this.events=new o.a(this),this.events.on("set_enabled",this.onSetEnabled,this)}get enabled(){throw Error("Should be overwritten")}set enabled(e){throw Error("Should be overwritten")}onSetEnabled(e,t,n){t!==n&&this.entity.enabled&&(n?this.onEnable():this.onDisable())}onEnable(){}onDisable(){}destroy(){this.system&&this.entity&&this.system.removeComponent(this.entity)}toUnityObject(){return this.unityClass?UnityEngine.Object.FromHandle(this.unityClass,this):null}}c.prototype.unityClass=null;var u=n(19),h=n(24),d=n(15),m=n(36),g=n(48);class ${constructor(e,t){this.object=e,this.time=t,this.updatedAt=UnityEngine.Time.time,this.instant=!t||t<=0,this.secondPassProcess=!1,this.enabled=!0,this.instant&&this.prepare()}prepare(){this.isValid&&(this.object.enabled=!1)}update(){if(!this.isValid||this.instant||this.time<=0)return;const e=UnityEngine.Time.time,t=e-this.updatedAt;this.updatedAt=e,this.time-=t,this.time<=0&&(this.prepare(),this.secondPassProcess=!0)}execute(){this.isValid&&(this.object.onDestroy&&this.object.onDestroy(),this.object.destroy(),this.object=null)}get isValid(){return null!==this.object&&!this.object._destroyed}get isReady(){return this.enabled&&(this.instant||this.time<=0)||!this.isValid}}class p extends ${prepare(){if(!this.isValid)return;const e=this.object.collectAllUnityComponents();for(let t=0;t<e.length;t++)e[t].enabled=!1}execute(){if(!this.isValid)return;const e=this.object;e._beingDestroyed=!0,e.enabled=!1;const t=e.collectAllUnityComponents();for(let e=0;e<t.length;e++){const n=t[e];n.onDestroy&&n.onDestroy()}e.destroy(),this.object=null}get isValid(){const e=this.object;return null!==e&&!e._destroyed&&!e._beingDestroyed}}var y=n(59),f=n(13);class _ extends a.a{constructor(e){super(e),this.id="unitymanager",this.callbacksDisabled=!1,this.fixedTimeStep=.02,this.maximumAllowedTimeStep=.1,this.timeScale=1,this.maximumParticleTimestep=.15,UnityEngine.Time.fixedUnscaledDeltaTime=this.fixedTimeStep/this.timeScale,this._fixedAccumulator=0,this.app.events.on("update",this.onUpdate,this),this.app.events.on("frameend",this.onFrameEnd,this),this.app.events.on("focus",this.onApplicationFocus,this),this.app.events.on("blur",this.onApplicationBlur,this),this.systems=[],this.destroyQueue=Array(64),this.destroyQueueTmp=Array(64),this.destroyQueueLength=0,this.destroyQueueProcessing=!1;const t=f.c.instance;this._applyProjectSettings(t)}registerSystem(e){this.systems.push(e)}onUpdate(e){if(this._invokeQueueOnSystems((t=>t.onStart(e))),this._invokeQueueOnSystems((t=>t.onBeforeUpdates(e))),Math.abs(UnityEngine.Time.timeScale)>Number.EPSILON){for(this._fixedAccumulator=Math.min(this.maximumAllowedTimeStep,this._fixedAccumulator+e*UnityEngine.Time.timeScale),UnityEngine.Time.SetActiveFixedTime(!0);this._fixedAccumulator>=this.fixedTimeStep;)UnityEngine.Time.FixedUpdate(this.fixedTimeStep),this._invokeQueueOnSystems((e=>e.onFixedUpdate(this.fixedTimeStep))),this._fixedAccumulator-=this.fixedTimeStep;UnityEngine.Time.SetActiveFixedTime(!1)}this._invokeDestroyQueue(!1),this._invokeQueueOnSystems((t=>t.onUpdate(e))),this._invokeDestroyQueue(!0),this._invokeQueueOnSystems((t=>t.onPostUpdate(e))),this._invokeDestroyQueue(!1),this._invokeQueueOnSystems((t=>t.onBeforeRender(e)))}onFrameEnd(){this._invokeQueueOnSystems((e=>e.onAfterRender(0)))}onApplicationFocus(){this._invokeQueueOnSystems((e=>e.onApplicationFocus(!0)))}onApplicationBlur(){this._invokeQueueOnSystems((e=>e.onApplicationFocus(!1)))}_invokeQueueOnSystems(e){for(let t=0;t<this.systems.length;t++){const n=this.systems[t];this._triggerPerformanceSample(n,!0),e(n),this._triggerPerformanceSample(n,!1)}}_triggerPerformanceSample(e,t){const n=e.performanceSamplerSection;n&&(t?this.app.counters.startSection(n):this.app.counters.endSection(n))}disableCallbacks(){this.callbacksDisabled=!0}enableCallbacks(){this.callbacksDisabled=!1}invokeCallbacks(e){if(e.isPrefab&&!e.parent)return;this.callbacksDisabled=!1,d.a.instance.startSection(d.a.SCRIPTS);const t=new y.a;this._collectComponents(e,t),this._invokeQueue(t),d.a.instance.endSection(d.a.SCRIPTS)}_collectComponents(e,t){const n=e.collectAllUnityComponents();for(let e=0;e<n.length;e++){const i=n[e];(i.onAwake||i.onEnable||i.onDisable)&&t.push(i)}}_invokeQueue(e){if(0===e.length)return;const t=e.getComponents();for(let e=0;e<t.length;e++){const n=t[e];n.entity._enabledInHierarchy&&(n.onInit(),n.enabled&&n.onEnable(),n.enabled||n.onDisable())}}enqueueDestroy(e){e.isValid&&(this.destroyQueueProcessing&&(e.enabled=!1),this.destroyQueue[this.destroyQueueLength]=e,this.destroyQueueLength++)}_invokeDestroyQueue(e){if(0===this.destroyQueueLength)return;let t=0;if(this.destroyQueueProcessing=!0,e)for(let e=0;e<this.destroyQueueLength;e++)this.destroyQueue[e].update();for(let e=0;e<this.destroyQueueLength;e++){const n=this.destroyQueue[e];n.isReady?n.secondPassProcess||n.execute():(this.destroyQueueTmp[t]=n,t++)}for(let e=0;e<this.destroyQueueLength;e++){const t=this.destroyQueue[e];t.isReady&&t.secondPassProcess&&t.execute()}for(let e=0;e<this.destroyQueueLength;e++)this.destroyQueue[e].enabled=!0;const n=this.destroyQueue;this.destroyQueue=this.destroyQueueTmp,this.destroyQueueTmp=n,this.destroyQueueLength=t,this.destroyQueueProcessing=!1}_applyProjectSettings(e){this.fixedTimeStep=e.timeSettings.fixedDeltaTime,this.maximumAllowedTimeStep=e.timeSettings.miximumDeltaTime,this.timeScale=e.timeSettings.timeScale,this.maximumParticleTimestep=e.timeSettings.maximumParticleTimestep}}const S=["OnMouseDown","OnMouseDrag","OnMouseEnter","OnMouseExit","OnMouseOver","OnMouseUp","OnMouseUpAsButton","OnTriggerEnter","OnTriggerStay","OnTriggerExit","OnCollisionEnter","OnCollisionStay","OnCollisionExit","OnTriggerEnter2D","OnTriggerStay2D","OnTriggerExit2D","OnCollisionEnter2D","OnCollisionStay2D","OnCollisionExit2D","UnityEngine$UI$IMaterialModifier$GetModifiedMaterial","UnityEngine$UI$IMeshModifier$ModifyMesh","UnityEngine$UI$IMeshModifier$ModifyMesh$1","OnPopulateMesh","UnityEngine$ICanvasRaycastFilter$IsRaycastLocationValid","OnAnimatorMove","ApplyRootMotionBuiltin"],b=new Map;class C extends u.a{constructor(e,t,n=!0){super();const i=Bridge._getTypeByName(t);this.code=new i(this),this.scriptsExecutionOrder=0,this.internalExecutionOrder=100,this["__"+t]=this.code,this.code.handle=this,this.unityClass=i,this._enabled=n,this._events=[],function(e){const t=e.code.constructor;if(b.has(t))return;const n=[];for(let e=0;e<S.length;e++)t.prototype[S[e]]!==UnityEngine.UI.Graphic.prototype.OnPopulateMesh&&t.prototype[S[e]]&&n.push(S[e]);b.set(t,n)}(this),this._addEventListeners()}storeMagicMethods(e){if(e.isPrefab)return;const t=Bridge.as(this.code,UnityEngine.EventSystems.IEventSystemHandler);e._eventHanders||(e._eventHanders=[]),t&&e._eventHanders.push(t);const n=b.get(this.code.constructor);if(0!==n.length)for(let t=0;t<n.length;t++){const i=e._magicMethods[n[t]]||[];i.push(this),e._magicMethods[n[t]]=i}}removeMagicMethods(e){const t=b.get(this.code.constructor);if(0!==t.length)for(let n=0;n<t.length;n++){const i=e._magicMethods[t[n]];if(i){const e=i.indexOf(this);e>=0&&(i[e]=i[i.length-1],i.length-=1)}}}configureForEntity(e){this.code.ConfigureForEntity&&this.code.ConfigureForEntity(e)}onEnable(){return!!super.onEnable()&&(this._invokeOverload("OnEnable"),!0)}onDisable(){return!!super.onDisable()&&(this._invokeOverload("OnDisable"),!0)}onDestroy(){return!!super.onDestroy()&&(this.stopAllCoroutines(),this._invokeOverload("DestroyInternal"),this._invokeOverload("OnDestroy"),!0)}onAwake(){d.a.instance.startSubSection(d.a.SCRIPTS_ON_AWAKE),this._invokeOverload("Awake"),d.a.instance.endSubSection(d.a.SCRIPTS_ON_AWAKE)}onStart(){d.a.instance.startSubSection(d.a.SCRIPTS_ON_START),this._invokeOverload("Start"),d.a.instance.endSubSection(d.a.SCRIPTS_ON_START)}onUpdate(){this._invokeOverload("Update")}onFixedUpdate(){this._invokeOverload("FixedUpdate")}onPostUpdate(){this.code.LateUpdate()}onBeforeRender(){this.code.OnPreRender()}onAfterRender(){this.code.OnPostRender()}onApplicationFocus(e){this.code.OnApplicationFocus(e)}onPointerEnter(e){(this.code.OnPointerEnter||this.code.UnityEngine$EventSystems$IPointerEnterHandler$OnPointerEnter).call(this.code,e)}onPointerExit(e){(this.code.OnPointerExit||this.code.UnityEngine$EventSystems$IPointerExitHandler$OnPointerExit).call(this.code,e)}onPointerDown(e){(this.code.OnPointerDown||this.code.UnityEngine$EventSystems$IPointerDownHandler$OnPointerDown).call(this.code,e)}onPointerUp(e){(this.code.OnPointerUp||this.code.UnityEngine$EventSystems$IPointerUpHandler$OnPointerUp).call(this.code,e)}onPointerClick(e){(this.code.OnPointerClick||this.code.UnityEngine$EventSystems$IPointerClickHandler$OnPointerClick).call(this.code,e)}onBeginDrag(e){(this.code.onBeginDrag||this.code.UnityEngine$EventSystems$IBeginDragHandler$OnBeginDrag).call(this.code,e)}onDrag(e){(this.code.OnDrag||this.code.UnityEngine$EventSystems$IDragHandler$OnDrag).call(this.code,e)}onEndDrag(e){(this.code.OnEndDrag||this.code.UnityEngine$EventSystems$IEndDragHandler$OnEndDrag).call(this.code,e)}addCoroutine(e){this._system.addCoroutine(e,this)}addFixedUpdateCoroutine(e){this._system.addFixedUpdateCoroutine(e,this)}addEndOfFrameCoroutine(e){this._system.addEndOfFrameCoroutine(e,this)}stopAllCoroutines(){this._system.stopAllCoroutines(this)}stopCoroutine(e){this._system.stopCoroutine(e,this)}_addEventListeners(){this.code.Update&&this._events.push("onUpdate"),this.code.FixedUpdate&&this._events.push("onFixedUpdate"),this.code.LateUpdate&&this._events.push("onPostUpdate"),this.code.OnPostRender&&this._events.push("onAfterRender"),this.code.OnApplicationFocus&&this._events.push("onApplicationFocus")}_queuesToSubscribe(){return this._events}_invokeOverload(e){try{const t=this.code.overloads[e+"()"]||e,n=this.code[t];if(void 0!==n){const e=n.call(this.code);e&&"Bridge.GeneratorEnumerator"===e.$$fullname&&new UnityEngine.Coroutine(e,this)}}catch(e){e=e.hasOwnProperty("errorStack")?e.errorStack:e,console.error(e)}}onCanvasGroupChanged(){this._invokeOverload("OnCanvasGroupChanged")}onBeforeTransformParentChanged(){this._invokeOverload("OnBeforeTransformParentChanged")}onTransformParentChanged(){this._invokeOverload("OnTransformParentChanged")}onTransformChildrenChanged(){this._invokeOverload("OnTransformChildrenChanged")}onParticleSystemStopped(){this._invokeOverload("OnParticleSystemStopped")}onRenderImage(e,t){const n=this.code.OnRenderImage;return n&&n.call(this.code,e,t),!!n}}C.create=(e,t,n)=>{const i=Bridge._getTypeByName(t);return Bridge.isFunction(i)?new C(e,t,n):null};class E extends h.b{constructor(e){super(e),this.id="monoBehaviour",this.performanceSamplerSection=d.a.SCRIPTS,this.scriptsExecutionOrder={},this._coroutines={onUpdate:{},onFixedUpdate:{},onAfterRender:{}};const t=f.c.instance;this._applyProjectSettings(t)}addComponent(e,t){return super.addComponent(e,t),t.scriptsExecutionOrder=this.scriptsExecutionOrder[t.code.$$fullname]||0,t.storeMagicMethods(e),t}removeComponent(e,t){super.removeComponent(e,t),t.removeMagicMethods(e)}onBeforeUpdates(){UnityEngine.Input.OnMouseUpdate()}onUpdate(e){this.app.counters.startSubSection(d.a.SCRIPTS_ON_UPDATE),super.onUpdate(e);const t=this._coroutines.onUpdate;for(const n in t){const i=t[n],r=i.length>0?i[0][1]:null;if(!r||!r._entity._activeSelf){delete t[n];continue}let s=0,a=-1;for(let t=i.length-1;t>=0;--t){const n=i[t][0];n.Update(e),n.isDone?(s++,a<0&&(a=t)):a>=0&&(i[a--]=i[t])}s===i.length?delete t[n]:s>0&&i.splice(0,s)}this.app.counters.endSubSection(d.a.SCRIPTS_ON_UPDATE)}onFixedUpdate(e){this.app.counters.startSubSection(d.a.SCRIPTS_ON_FIXED_UPDATE),super.onFixedUpdate(e),this._updateCoroutines(this._coroutines.onFixedUpdate,this._handleFixedUpdate),this.app.counters.endSubSection(d.a.SCRIPTS_ON_FIXED_UPDATE)}onPostUpdate(e){this.app.counters.startSubSection(d.a.SCRIPTS_ON_POST_UPDATE),super.onPostUpdate(e),this.app.counters.endSubSection(d.a.SCRIPTS_ON_POST_UPDATE)}onAfterRender(e){super.onAfterRender(e),this._updateCoroutines(this._coroutines.onAfterRender,this._handleEndOfFrame)}_updateCoroutines(e,t){for(const n in e){const i=e[n],r=i.length>0?i[0][1]:null;if(!r||!r._entity._activeSelf){delete e[n];continue}const s=i.length;for(let e=s-1;e>=0;--e)t(i[e][0]);i.length===s?delete e[n]:i.splice(0,s)}}_handleFixedUpdate(e){e.HandleFixedUpdate()}_handleEndOfFrame(e){e.HandleEndOfFrame()}stopAllCoroutines(e){const t=this._coroutines.onUpdate[e._id];if(t)for(let e=0;e<t.length;++e)t[e][0].Cancel()}stopCoroutine(e,t){const n=this._coroutines.onUpdate[t._id];if(n)for(let t=0;t<n.length;++t){const i=n[t][0];i.enumeratorStack&&i.enumeratorStack.Count>0&&i.enumeratorStack.Peek()===e&&i.Cancel()}}addCoroutine(e,t){this._addCoroutineToQueue(e,t,this._coroutines.onUpdate)}addFixedUpdateCoroutine(e,t){this._addCoroutineToQueue(e,t,this._coroutines.onFixedUpdate)}addEndOfFrameCoroutine(e,t){this._addCoroutineToQueue(e,t,this._coroutines.onAfterRender)}_addCoroutineToQueue(e,t,n){n[t._id]||(n[t._id]=[]),n[t._id].push([e,t])}_applyProjectSettings(e){const t={};for(let n=0;n<e.scriptsExecutionOrder.length;n++){const i=e.scriptsExecutionOrder[n];t[i.name]=i.value}this.scriptsExecutionOrder=t}}var T=n(49);pc.Debugger=m.a,pc.GraphNode=i.a,pc.Entity=r.a,pc.Application=s.a,pc.Component=c,pc.UnityComponentSystem=h.b,pc.Counters=d.a,pc.Scene=g.a,pc.DestroyTask=$,pc.DestroyEntityTask=p,pc.DestroyScriptableObjectTask=class extends ${prepare(){}execute(){this.isValid&&(this.object.CallOnDisable(),this.object.CallOnDestroy(),this.object._destroyed=!0)}get isValid(){return!this.object._destroyed}},pc.UnityComponentSystemManagerSystem=_,pc.MonoBehaviourComponent=C,pc.MonoBehaviourSystem=E,pc.ProjectSettings=f.c,pc.QualitySettings=T.a},(e,t,n)=>{n.d(t,{a:()=>l,b:()=>r,c:()=>S.a,d:()=>_,e:()=>g,f:()=>o}),n(44);let i=0;function r(){return"id:"+i++}let s=0,a=0;const o={pause:function(){a=performance.now()},resume:function(){s+=performance.now()-a,a=0},now:function(){return a||performance.now()-s}};class l{constructor(e){this.defaultScope=e,this._callbacks={},this._callbackActive={}}on(e,t,n=null){return this._callbacks[e]||(this._callbacks[e]=[]),this._callbackActive[e]&&this._callbackActive[e]===this._callbacks[e]&&(this._callbackActive[e]=this._callbackActive[e].slice()),this._callbacks[e].push({callback:t,scope:n||this.defaultScope}),this}off(e=null,t=null,n=null){if(!this._callbacks)return this;if(this._callbackActive)if(e)this._callbackActive[e]&&this._callbackActive[e]===this._callbacks[e]&&(this._callbackActive[e]=this._callbackActive[e].slice());else for(const e in this._callbackActive)this._callbacks[e]&&this._callbacks[e]===this._callbackActive[e]&&(this._callbackActive[e]=this._callbackActive[e].slice());if(e)if(t){const i=this._callbacks[e];if(!i)return this;let r=i.length;for(;r--;)i[r].callback===t&&i[r].scope===n&&i.splice(r,1)}else this._callbacks[e]&&delete this._callbacks[e];else this._callbacks=null;return this}fire(e,...t){if(!e||!this._callbacks||!this._callbacks[e])return this;let n;this._callbackActive||(this._callbackActive={}),this._callbackActive[e]?(this._callbackActive[e]===this._callbacks[e]&&(this._callbackActive[e]=this._callbackActive[e].slice()),n=this._callbacks[e].slice()):this._callbackActive[e]=this._callbacks[e];for(let i=0;(n||this._callbackActive[e])&&i<(n||this._callbackActive[e]).length;i++){const r=(n||this._callbackActive[e])[i];if(r.callback.apply(r.scope,t),r.callback.once){const t=this._callbacks[e].indexOf(r);-1!==t&&(this._callbackActive[e]===this._callbacks[e]&&(this._callbackActive[e]=this._callbackActive[e].slice()),this._callbacks[e].splice(t,1))}}return n||(this._callbackActive[e]=null),this}once(e,t,n){return t.once=!0,this.on(e,t,n),this}}const c=navigator.userAgent;let u=!1,h=!1,d=!1,m=!1;/(windows|mac os|linux|cros)/i.test(c)&&(u=!0),/android/i.test(c)?(u=!1,h=!0,d=!0):/ip([ao]d|hone)/i.test(c)&&(u=!1,h=!0,m=!0);const g={desktop:u,mobile:h,ios:m,android:d},$=new Uint32Array(2048),p=new Uint32Array(64),y=new Uint32Array(64),f={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",alegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};$[0]=0;for(let e=1;e<1024;++e){let t=e<<13,n=0;for(;0==(8388608&t);)n-=8388608,t<<=1;t&=-8388609,n+=947912704,$[e]=t|n}for(let e=1024;e<2048;++e)$[e]=939524096+(e-1024<<13);y[0]=0;for(let e=1;e<31;++e)y[e]=e<<23;y[31]=1199570944,y[32]=2147483648;for(let e=33;e<63;++e)y[e]=2147483648+(e-32<<23);y[63]=3347054592,p[0]=0;for(let e=1;e<64;++e)p[e]=32===e?0:1024;function _(e){const t=new Float32Array(e.length),n=new Uint32Array(t.buffer);for(let t=0;t<e.length;t++){const i=e[t],r=i>>10;n[t]=$[p[r]+(1023&i)]+y[r]}return t}var S=n(14);const b=new Set;function C(e){window.parent&&window.parent.postMessage({target:"editor:stubber",propertyOrMethodName:e,calledFrom:E()},"*")}function E(){const e=Error().stack.split("\n"),t=e.findIndex((e=>e.includes("Proxy.<anonymous>")||e.includes("Class.<anonymous>")));if(-1===t)return null;const n=e[t+1].split(" at ")[1].split(" ")[0];if(!n.includes(".")||0===n.length)return null;const i=n.split(".")[1].split("$")[0];return i.length>0&&!["get","set"].includes(i)?i:null}const T=new Map;function v(e=null,t=!1){if(t&&T.has(e))return T.get(e);const n=new Map,i=new Proxy(Object,{get:(t,i)=>"generateConstructorFor"===i||"ctor"===i?function(e){const t=v(e),n=function(){return t};return Object.setPrototypeOf(n,t),n.prototype=t,n}:"reportProperty"===i?function(e,t){return function(e){b.has(e)||(b.add(e),console.warn(`You are using the "${e}" property which is not supported by Luna. Please open a support request if you experience any issues.`),C(e))}(e),n.has(e)?n.get(e):t}:"reportMethod"===i?function(e,t){return function(e){b.has(e)||(b.add(e),console.warn(`You are using the "${e}" method which is not supported by Luna. Please open a support request if you experience any issues.`),C(e))}(e),t}:"$$isStubbed"===i||("$interfaces"===i||"$descriptors"===i||"$$aliases"===i||"$$inheritors"===i||"$$inherits"===i||"$typeArguments"===i?[]:"$$initCtor"!==i?"constructor"===i?Function:"$$fullname"===i||"$$name"===i?e:()=>{}:void 0),set:(t,i,r)=>(n.set(`${e}.${i+""}`,r),!0),construct:()=>i});return t&&T.set(e,i),i}const I=v();Object.assign(pc,S.a),pc.time=o,pc.Events=l,pc.Conversion={fromFloat16ToFloat32:_,tryParseHtmlString:function(e,t){if("#"===e[0])return t.fromString(e),!0;let n=e.toLowerCase();return!(!/^[a-z]+$/.test(n)||(n=f[n],!n)||(t.fromString(n),0))}},pc.stubProxy=I,pc.generateStubProxy=v},(e,t,n)=>{n.d(t,{a:()=>u,b:()=>o,c:()=>i,d:()=>s,e:()=>r,f:()=>a,g:()=>c,h:()=>l});const i=1e4,r=1e5,s=1e6,a=1e-4,o=1.1920929e-7,l=.005,c=2/180*Math.PI,u=l*l*2.01},(e,t,n)=>{n.d(t,{a:()=>i,b:()=>r,c:()=>s,d:()=>a,e:()=>o,f:()=>c,g:()=>l,h:()=>$,i:()=>u,j:()=>h,k:()=>g,l:()=>m,m:()=>d});const i=Math.PI/180,r=180/Math.PI;function s(e,t,n){return e>=n?n:e<=t?t:e}function a(e){return[e>>16&255,e>>8&255,255&e]}function o(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function l(e,t,n){return e+(t-e)*s(n,0,1)}function c(e,t,n){return t-e==0?0:(n-e)/(t-e)}function u(e){return 0!==e&&!(e&e-1)}function h(e,t){const n=t-e;return Math.random()*n+e}function d(e,t,n){if(n<=0)return e;if(n>=1)return t;const i=n*n*(3-2*n);return t*i+e*(1-i)}function m(e,t,n){return n<=e?0:n>=t?1:(n=(n-e)/(t-e))*n*n*(n*(6*n-15)+10)}function g(e){return e<0?-1:1}function $(e){return e--,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,1+((e|=e>>16)|e>>32)}},(e,t,n)=>{n.d(t,{a:()=>lt,b:()=>Ct,c:()=>L.a,d:()=>We,g:()=>i.b,e:()=>ut,f:()=>Ke,k:()=>U,h:()=>B,j:()=>P,i:()=>M,l:()=>mt,n:()=>x.b,m:()=>Je,p:()=>se,o:()=>pn,q:()=>mn,r:()=>Te.a,u:()=>Pe,s:()=>it,t:()=>Ye,v:()=>u.a,w:()=>et,x:()=>a.c,y:()=>A.a,z:()=>O.a,A:()=>Ot,B:()=>Bt});var i=n(8),r=n(25),s=n(60),a=n(16);let o=0;class l extends s.b{constructor(){super(),this.name="Untitled",this.id=o++,this._shader=null,this.meshInstances=[],this.dirty=!0,this.enableAutoInstancing=!1}get shader(){return this._shader}set shader(e){e.handle instanceof a.c&&(e=e.handle),this._shader=e}}var c=n(2),u=(n(17),n(7)),h=n(11);const d=new h.a,m={};class g extends l{constructor(){super(),this.$id=0,this.keywords=new h.a,this.drawOrder=0,this.renderQueue=0,this.enableInstancing=!1,this._readDepth=!1,this._localKeywordsVersion=-1,this._globalKeywordsVersion=-1,this.floatParameters=[],this.colorParameters=[],this.vectorParameters=[],this.textureParameters=[],this.materialFlags=[],this["__UnityEngine.Material"]=null}getShadowCasterPasses(e){let t=m[this.$id];if(t)return t;if(t=[],e){const n=c.c.SHADER_PASS_SHADOW_CASTER;for(let i=0;i<e.passes.length;i++){const r=e.passes[i];r.lightMode===n&&t.push(r)}0===t.length&&e.fallbackShader&&t.push(...this.getShadowCasterPasses(e.fallbackShader))}return m[this.$id]=t,t}getPass(e,t=[]){if(t.length=0,!this._shader)return t;for(let n=0;n<this._shader.passes.length;n++){const i=this._shader.passes[n];i.lightMode===e&&t.push(i)}return t}setPass(e){if(!this._shader)return void UnityEngine.Debug.Log$1("Missing shader.");const t=this._shader.passes.length;e<0||e>t?UnityEngine.Debug.Log$1("Shader pass out of range setup attempt."):this._shader.passes[e]}setParametersFromShaderDefaults(){if(!this.shader)return;const e=this.shader.defaultParameters;for(const t in e)this.setParameter(t,this.cloneParameterData(e[t])),e[t]instanceof u.a&&this.setParameter(t+"_ST",this.cloneParameterData([1,1,0,0]))}setup(){for(let e=0;e<this.floatParameters.length;e++)this.setParameter(this.floatParameters[e].name,this.floatParameters[e].value);for(let e=0;e<this.colorParameters.length;e++)this.setParameter(this.colorParameters[e].name,this.colorParameters[e].value.data);for(let e=0;e<this.vectorParameters.length;e++)this.setParameter(this.vectorParameters[e].name,this.vectorParameters[e].value.data);for(let e=0;e<this.textureParameters.length;e++){const t=this.textureParameters[e].value;this.setParameter(this.textureParameters[e].name,t?t.handle:null)}const e=[];for(let t=0;t<this.materialFlags.length;t++){const n=this.materialFlags[t];n.enabled&&this.shader.supportsKeyword(n.name)&&e.push(n.name)}for(let t=0;t<this.shader.passes.length;t++){const n=this.shader.passes[t];for(let t=0;t<n.keywordGroups.length;t++){const i=n.keywordGroups[t].getEnabledKeywords().filter((t=>e.includes(t)));i.length>1&&console.error(`Material ${this.name} contains more than one enabled keywords from the same keyword group. Enabled keywords: ${i}`)}}this.shaderKeywords=e,this.updateFlags()}deleteParameter(e){super.deleteParameter(e);const t=this._shader.defaultParameters[e];t&&this.setParameter(e,t)}setParameter(e,t,n=0){if(super.setParameter(e,t),null===t&&this._shader){const t=this._shader.defaultParameters[e];t&&this.setParameter(e,t)}else t instanceof u.a&&!t.device.webgl2&&(t._pot||0!==t._addressU||0!==t._addressV||UnityEngine.Debug.LogWarning$1("Material's '"+this.name+"' texture '"+t.name+"' wrap mode is set to 'Repeat', but it's resolution NOT POWER OF TWO (NPOT)\nOnly textures with Power Of Two (POT) resolution can be used with WrapMode=Repeat"))}clone(){const e=new g;return e.name=this.name,e._shader=this._shader,e.copyPropertiesFromMaterial(this),e}hasProperty(e){return this.parameters.hasOwnProperty(e)||this.shader.defaultParameterNames.hasOwnProperty(e)}copyPropertiesFromMaterial(e){this.renderQueue=e.renderQueue,this.enableInstancing=e.enableInstancing,this.keywords.copy(e.keywords),this.$id=e.$id;for(const t in e.parameters)this.setParameter(t,this.cloneParameterData(e.parameters[t].data))}cloneParameterData(e){return e instanceof Float32Array||Array.isArray(e)?new Float32Array(e):e}updateFlags(){if(this._localKeywordsVersion===this.keywords.version&&this._globalKeywordsVersion===a.c.globalKeywords.version)return;if(this._localKeywordsVersion=this.keywords.version,this._globalKeywordsVersion=a.c.globalKeywords.version,!this._shader)return;const e=this._shader;this._readDepth=!1,d.clear(),d.merge(this.keywords),d.merge(a.c.globalKeywords),e.isCreatedByShaderGraph&&(e.shaderDefinedKeywords.includes("_ADDITIONAL_LIGHTS")?d.enableKeywordId(h.b._ADDITIONAL_LIGHTS):e.shaderDefinedKeywords.includes("_ADDITIONAL_LIGHTS_VERTEX")&&d.enableKeywordId(h.b._ADDITIONAL_LIGHTS_VERTEX));for(let t=0;t<e.passes.length;t++){const n=e.passes[t];if(!n.hasDepthReader)continue;const i=n.getVariant(d,!1,!0);if(i&&i.readDepth){this._readDepth=!0;break}}}get shaderKeywords(){return this.keywords.getEnabledKeywords()}set shaderKeywords(e){this.keywords.setEnabledKeywords(e)}get passCount(){return this._shader.passes.length}get readDepth(){return this.updateFlags(),this._readDepth}}var $=n(33),p=n(0),y=n(1),f=n(29);const _={shadowsMode:0,shadowStrength:1,shadowBias:.05,shadowNormalBias:.4,shadowResolution:c.c.SHADOW_RESOLUTION_FROM_QUALITY_SETTINGS},S=new p.m,b=new p.i,C=new p.i,E=new p.i,T=(new p.i).setTRS(new p.m(-.5,-.5,0),p.j.IDENTITY,p.m.ONE);let v=0;class I{constructor(){this.id=v++,this._type=c.c.LIGHTTYPE_DIRECTIONAL,this._color=new p.d(.8,.8,.8),this._intensity=1,this._castShadows=!1,this._enabled=!1,this._mask=1,this._cullingMask=-1,this._renderMode=0,this._affectLightmapped=!1,this._nodeAabbVer=0,this.isStatic=!1,this.key=0,this._aabb=new p.b,this._attenuationEnd=10,this._shadowType=c.c.SHADOW_PCF3,this._cookie=null,this._cookieScale=new p.l(1,1),this._outerConeAngle=45,this._finalColor=new Float32Array([.8,.8,.8,1]);const e=Math.pow(this._finalColor[0],2.2);this._linearFinalColor=new Float32Array([e,e,e,e]),this._worldToLightMatrix=new p.i,this._node=null,this._luminance=0,this._effectiveLuminance=0,this._range=0,this._priority=0,this._directionToLight=new p.m,this._position=new p.m,this._shadowsMode=_.shadowsMode,this._shadowStrength=_.shadowStrength,this._shadowBias=_.shadowBias,this._shadowNormalBias=_.shadowNormalBias,this._shadowResolution=_.shadowResolution}destroy(){}update(e){if(!this._node)return!1;if(this._nodeAabbVer===this._node.aabbVersion)return this._type===c.c.LIGHTTYPE_POINT?f.a.isVisibleInFrustum(e.frustum,this._aabb.center,this._attenuationEnd):f.a.isAABBVisibleInFrustum(e.frustum,this._aabb);this._nodeAabbVer=this._node.aabbVersion,this.getBoundingBox(this._aabb);const t=this._node.worldTransformInverse,n=1/this._attenuationEnd;return this._position.copy(this._node.getPosition()),this._type===c.c.LIGHTTYPE_POINT?(this._worldToLightMatrix.copy(t).scale(n),this._worldToLightMatrix.data[15]=1,f.a.isVisibleInFrustum(e.frustum,this._node.getPosition(),this._attenuationEnd)):(this._type===c.c.LIGHTTYPE_SPOT?(b.setIdentity(),b.data[11]=2*Math.tan(p.e*this._outerConeAngle*.5),b.data[15]=0,C.setScale(n,n,n),C.data[15]=n,this._worldToLightMatrix.mul2(C,b),this._worldToLightMatrix.mul2(this._worldToLightMatrix,t)):(S.set(this._cookieScale.x,this._cookieScale.x,this._cookieScale.x),E.setTRS(this._node.getPosition(),this._node.getRotation(),S),this._worldToLightMatrix.mul2(E,T).invert(),this._worldToLightMatrix.data[2]=0,this._worldToLightMatrix.data[6]=0,this._worldToLightMatrix.data[10]=0,this._worldToLightMatrix.data[14]=0,this._directionToLight.copy(this._node.forward).scale(-1)),f.a.isAABBVisibleInFrustum(e.frustum,this._aabb))}getColor(){return this._color}getBoundingBox(e){if(this._type===c.c.LIGHTTYPE_SPOT){const t=this.attenuationEnd,n=this._outerConeAngle,i=this._node,r=Math.abs(Math.tan(n*p.e*.5)*t);e.center.set(0,0,.5*t),e.halfExtents.set(r,r,.5*t),e.setFromTransformedAabb(e,i.getWorldTransform())}else this._type===c.c.LIGHTTYPE_POINT?(e.center.copy(this._node.getPosition()),e.halfExtents.set(this.attenuationEnd,this.attenuationEnd,this.attenuationEnd)):this._type===c.c.LIGHTTYPE_DIRECTIONAL&&(e.center.copy(this._node.getPosition()),e.halfExtents.set(1/0,1/0,1/0))}_updateFinalColor(){const e=this._color,t=e.r,n=e.g,i=e.b,r=e.a,s=this._intensity,a=this._finalColor,o=this._linearFinalColor;a[0]=t*s,a[1]=n*s,a[2]=i*s,a[3]=r*s,s>=1?(o[0]=Math.pow(t,2.2)*s,o[1]=Math.pow(n,2.2)*s,o[2]=Math.pow(i,2.2)*s,o[3]=Math.pow(r,2.2)*s):(o[0]=Math.pow(a[0],2.2),o[1]=Math.pow(a[1],2.2),o[2]=Math.pow(a[2],2.2),o[3]=Math.pow(a[3],2.2)),this._luminance=(.3*t+.59*n+.11*i)*s}setColor(e,t,n){let i=e;e instanceof p.d&&(i=e.r,t=e.g,n=e.b),this._color.set(i,t,n),this._updateFinalColor()}updateKey(){this.key=this._type<<29|(this._castShadows?1:0)<<28|this._shadowType<<25|(this._cookie?1:0)<<24}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&(this._enabled=e)}get affectLightmapped(){return this._affectLightmapped}set affectLightmapped(e){this._affectLightmapped=e}get type(){return this._type}set type(e){if(this._type===e)return;this._type=e,this.updateKey();const t=this._shadowType;this._shadowType=null,this.shadowType=t}get mask(){return this._mask}set mask(e){this._mask!==e&&(this._mask=e)}get renderMode(){return this._renderMode}set renderMode(e){this._renderMode!==e&&(this._renderMode=e)}get range(){return this._range}set range(e){this._range=e}get cullingMask(){return this._cullingMask}set cullingMask(e){this._cullingMask!==e&&(this._cullingMask=e)}get shadowType(){return this._shadowType}set shadowType(e){if(this._shadowType===e)return;const t=y.a.getApplication().graphicsDevice;this._type===c.c.LIGHTTYPE_POINT&&(e=c.c.SHADOW_PCF3),e!==c.c.SHADOW_PCF5||t.webgl2||(e=c.c.SHADOW_PCF3),e!==c.c.SHADOW_VSM32||t.textureFloatRenderable||(e=c.c.SHADOW_VSM16),e!==c.c.SHADOW_VSM16||t.textureHalfFloatRenderable||(e=c.c.SHADOW_VSM8),this._shadowType=e,this.updateKey()}get shadows(){return this._shadowsMode}get castShadows(){return this._castShadows&&this._mask!==c.c.MASK_LIGHTMAP&&0!==this._mask}set castShadows(e){this._castShadows!==e&&(this._castShadows=e,this.updateKey())}get shadowsMode(){return this._shadowsMode}set shadowsMode(e){this._shadowsMode!==e&&(this._shadowsMode=e)}get shadowStrength(){return this._shadowStrength}set shadowStrength(e){this._shadowStrength!==e&&(this._shadowStrength=e)}get shadowBias(){return this._shadowBias}set shadowBias(e){this._shadowBias!==e&&(this._shadowBias=e)}get shadowNormalBias(){return this._shadowNormalBias}set shadowNormalBias(e){this._shadowNormalBias!==e&&(this._shadowNormalBias=e)}get shadowResolution(){return this._shadowResolution}set shadowResolution(e){this._shadowResolution!==e&&(this._shadowResolution=e)}get outerConeAngle(){return this._outerConeAngle}set outerConeAngle(e){this._outerConeAngle!==e&&(this._outerConeAngle=e,this._nodeAabbVer=-1)}get intensity(){return this._intensity}set intensity(e){this._intensity!==e&&(this._intensity=e,this._updateFinalColor())}get cookie(){return this._cookie}set cookie(e){this._cookie!==e&&(this._cookie=e,this.updateKey())}get cookieScale(){return this._cookieScale}set cookieScale(e){this._cookieScale=e,this._nodeAabbVer=-1}get attenuationEnd(){return this._attenuationEnd}set attenuationEnd(e){this._attenuationEnd=e,this._nodeAabbVer=-1}}I.LightDefaults={type:"point",color:new p.d(1,1,1,1),cookieScale:p.l.ONE,intensity:1,range:10,cullingMask:-1};var x=n(51),A=n(6);const w=new p.m,D=new p.m;class M{constructor(e){const t=e.deltaPositions;this.indices=[];for(let e=0;e<t.length;e++)this.indices.push(e);this.deltaPositions=e.deltaPositions,this.deltaNormals=this.hasNonZeroNumbers(e.deltaNormals)?e.deltaNormals:null,this.deltaTangents=this.hasNonZeroNumbers(e.deltaTangents)?e.deltaTangents:null,this.weight=e.weight}hasNonZeroNumbers(e){for(let t=0;t<e.length;t++)if(0!==e[t])return!0;return!1}}class P{constructor(e={}){this.frames=e.frames||[],this.name=e.name||"",this.aabb=e.aabb||null}get indices(){return this.frames[0].indices}}class U{constructor(e){this.aabb=new p.b,this._baseBuffer=null,this._baseAabb=null,this._targets=e,this._dirty=!0,this._aabbDirty=!0,this._baseData=null,this._offsetPF=0,this._offsetNF=0,this._offsetTF=0,this._vertSizeF=0}_setBaseMesh(e){this._baseBuffer=e.vertexBuffer,this._baseAabb=e._aabb,this._baseData=new Float32Array(this._baseBuffer.storage);let t=-1,n=-1,i=-1;const r=this._baseBuffer.format.elements,s=this._baseBuffer.format.size;for(let e=0;e<r.length;e++)r[e].name===c.c.SEMANTIC_POSITION?t=r[e].offset:r[e].name===c.c.SEMANTIC_NORMAL?n=r[e].offset:r[e].name===c.c.SEMANTIC_TANGENT&&(i=r[e].offset);this._offsetPF=t/4,this._offsetNF=n/4,this._offsetTF=i/4,this._vertSizeF=s/4,this._dirty=!0}_calculateAabb(){if(!this._baseBuffer)return;this.aabb.copy(this._baseAabb);const e=this._vertSizeF,t=this._offsetPF,n=this._baseData;for(let i=0;i<this._targets.length;i++){const r=this._targets[i];if(!r.aabb&&r.indices.length>0){r.aabb=this.aabb.clone(),w.set(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),D.set(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);const i=r.indices.length;for(let s=0;s<r.frames.length;s++){const a=r.frames[s].deltaPositions;for(let s=0;s<i;s++){const i=r.indices[s]*e+t,o=n[i]+a[3*s],l=n[i+1]+a[3*s+1],c=n[i+2]+a[3*s+2];w.x>o&&(w.x=o),w.y>l&&(w.y=l),w.z>c&&(w.z=c),D.x<o&&(D.x=o),D.y<l&&(D.y=l),D.z<c&&(D.z=c)}}r.aabb.setMinMax(w,D)}r.aabb&&this.aabb.add(r.aabb)}this._aabbDirty=!1}addTarget(e){this._targets.push(e),this._aabbDirty=!0}removeTarget(e){const t=this._targets.indexOf(e);-1!==t&&(this._targets.splice(t,1),this._aabbDirty=!0)}getTarget(e){return this._targets[e]}}class B{constructor(e){this.morph=e,this._vertexBuffer=null,this._vertexData=null,this.weights={},this._dirty=!0}_setBaseMesh(e){this.destroy(),this._vertexBuffer=new A.a(this.morph._baseBuffer.device,this.morph._baseBuffer.format,this.morph._baseBuffer.numVertices,c.c.BUFFER_DYNAMIC,this.morph._baseBuffer.storage.slice(0)),this._vertexData=new Float32Array(this._vertexBuffer.storage),this.weights={};for(let e=0;e<this.morph._targets.length;e++)this.weights[this.morph._targets[e].name]=0;this._dirty=!0}destroy(){this._vertexBuffer&&(this._vertexBuffer.destroy(),this._vertexBuffer=null)}getWeight(e){const t=Object.keys(this.weights)[e];return this.weights[t]}setWeight(e,t){const n=Object.keys(this.weights)[e];this.weights[n]=(0,p.o)(t,0,100),this._dirty=!0}getCount(){return Object.keys(this.weights).length}updateBounds(e){this.morph._baseBuffer!==e.vertexBuffer&&this.morph._setBaseMesh(e),this._vertexData||this._setBaseMesh(e),this.morph._aabbDirty&&this.morph._calculateAabb()}update(e){this.morph._baseBuffer!==e.vertexBuffer&&this.morph._setBaseMesh(e),this._vertexData||this._setBaseMesh(e);const t=this.morph._targets,n=Object.keys(this.weights).map((e=>this.weights[e]));this._vertexData.set(this.morph._baseData);for(let e=0;e<t.length;e++){const i=n[e];if(0===i)continue;const r=t[e],s=r.frames;if(1===s.length&&this._applyFrame(s[0],i/100,r),s.length>1){if(i<s[0].weight){const e=s[0],t=i/e.weight;this._applyFrame(e,t,r);continue}if(i>s[s.length-1].weight){const e=s[s.length-1],t=i/e.weight;this._applyFrame(e,t,r);continue}if(2===s.length){const e=s[0],t=s[1];this._applyFrame(e,1,r);const n=(i-e.weight)/(t.weight-e.weight);this._applyFrame(t,n,r);continue}let e,t;for(let n=0;n<s.length-1&&(e=n,t=n+1,!(s[e].weight<i&&i<s[t].weight));n++);const n=(i-s[e].weight)/(s[t].weight-s[e].weight);this._applyFrame(s[e],1-n,r),this._applyFrame(s[t],n,r)}}this._vertexBuffer.unlock()}_applyFrame(e,t,n){const i=e.indices.length,r=this.morph._vertSizeF,s=this.morph._offsetPF,a=this.morph._offsetNF,o=this.morph._offsetTF,l=this._vertexData;for(let a=0;a<i;a++){const i=e.deltaPositions,o=3*a,c=n.indices[a]*r+s;l[c]+=i[o]*t,l[c+1]+=i[o+1]*t,l[c+2]+=i[o+2]*t}if(e.deltaNormals){const s=e.deltaNormals;for(let e=0;e<i;e++){const i=3*e,o=n.indices[e]*r+a;l[o]+=s[i]*t,l[o+1]+=s[i+1]*t,l[o+2]+=s[i+2]*t}}if(e.deltaTangents){const s=e.deltaTangents;for(let e=0;e<i;e++){const i=4*e,a=n.indices[e]*r+o;l[a]+=s[i]*t,l[a+1]+=s[i+1]*t,l[a+2]+=s[i+2]*t,l[a+3]+=s[i+3]*t,l[a+3]=l[a+3]>0?1:-1}}}}var O=n(9),L=n(10),R=n(30);const F=new p.m,G=new p.m,k=new p.n;function V(e,t,n=new p.m){const i=Math.sin(e),r=Math.cos(e),s=Math.sin(t),a=Math.cos(t);return n.x=i*a,n.y=i*s,n.z=r,n}function N(e){const t=window.atob(e),n=t.length/Float32Array.BYTES_PER_ELEMENT,i=new DataView(new ArrayBuffer(Float32Array.BYTES_PER_ELEMENT)),r=new Float32Array(n);let s=0;for(let e=0;e<n;e++)s=4*e,i.setUint8(0,t.charCodeAt(s)),i.setUint8(1,t.charCodeAt(s+1)),i.setUint8(2,t.charCodeAt(s+2)),i.setUint8(3,t.charCodeAt(s+3)),r[e]=i.getFloat32(0,!0);return r}function z(e,t,n,i=new p.n){return G.x=e,G.y=t,G.z=n,i.x=G.dot(p.m.RIGHT),i.y=G.dot(p.m.UP),i.z=G.dot(p.m.BACK),i.w=1,i}const H={loadSkyboxMesh(){const e=new i.b,t=N("zDHiP9sPyT/bD8k/f6ziP9sPyT/bD8k/2w/JP3+s4j/MMeI/f6ziP7VT+z/MMeI/L/7jP9sPyT/bD8k/+FDkP9sPyT/bD8k/2w/JP/hQ5D8v/uM/+FDkP+zj/j8v/uM/L/7jP+zj/j/DYf4/f6ziP8Nh/j+1U/s/w2H+P3+s4j8v/uM/f6ziP9sPyT8v/uM/6esLQOTLFkDlOgpAw2H+P+U6CkC1U/s/5ToKQMNh/j/p6wtAw2H+P+zj/j/p6wtA+FDkP9sPyT/bD8k/L/7jP9sPyT/bD8k/2w/JPy/+4z/4UOQ/L/7jP+zj/j/4UOQ/ruzVP9sPyT/bD8k/2w/JP67s1T/bD8k/f6ziP67s1T/bD8k/8mHPP9sPyT/bD8k/2w/JP/Jhzz/bD8k/bLDVP/Jhzz/bD8k/2w/JP9sPyT/xYc8/2w/JP/Fhzz9ssNU/2w/JP9sPyT/xYc8/7PbbP2yw1T/xYc8/zDHiP/Fhzz/bD8k/zDHiP+z22z/xYc8/7PbbP8wx4j9IaeI/D5DiP+z22z9IaeI/bLDVP+z22z8PkOI/fqbiP3+s4j/jNNw/D5DiP+M03D9ssNU/D5DiP36m4j/jNNw/8mHPP2yw1T/jNNw/2w/JP+M03D9/rOI/2w/JP/Jhzz/jNNw/u/foP3+s4j9+puI/D5DiP7v36D9+puI/9C/vP7v36D8PkOI/SGniP8wx4j+Lu+g/D5DiP4u76D/0L+8/D5DiP0hp4j+Lu+g/P1D1P/Qv7z+Lu+g/tVP7P4u76D/MMeI/tVP7Pz9Q9T+Lu+g/P1D1P7VT+z8PUvw/rSn9Pz9Q9T8PUvw/9C/vPz9Q9T+tKf0/t9n9P8Nh/j/S3fY/rSn9P9Ld9j/0L+8/rSn9P7fZ/T/S3fY/u/foP/Qv7z/S3fY/f6ziP9Ld9j/DYf4/f6ziP7v36D/S3fY/E17xP8Nh/j/29f4/7OP+PxNe8T/29f4/L/7jPxNe8T/s4/4/E17xPy/+4z/nfeM/f6ziPxNe8T/nfeM/w2H+PxNe8T9/rOI/ruzVP3+s4j/nfeM/L/7jP67s1T/nfeM/2w/JP67s1T8v/uM//NQOQOnrC0BgsQtATFULQPzUDkBgsQtAB6ERQPzUDkBMVQtAHdgKQOU6CkBKAQ5ATFULQEoBDkAHoRFATFULQB3YCkBKAQ5AjEoUQAehEUBKAQ5A5MsWQEoBDkDlOgpA5MsWQIxKFEBKAQ5A1dIFQOzj/j/29f4/w2H+P9XSBUD29f4/6esLQNXSBUDDYf4/p5wHQOU6CkAd2ApATFULQKecB0Ad2ApA2eMEQKecB0BMVQtAYLELQOnrC0BGeghATFULQEZ6CEDZ4wRATFULQGCxC0BGeghAORQCQNnjBEBGeghAw2H+P0Z6CEDp6wtAw2H+PzkUAkBGeghAORQCQMNh/j+32f0/rSn9PzkUAkC32f0/2eMEQDkUAkCtKf0/D1L8P7VT+z+iUgFArSn9P6JSAUDZ4wRArSn9Pw9S/D+iUgFAp5wHQNnjBECiUgFA5ToKQKJSAUC1U/s/5ToKQKecB0CiUgFAjEoUQOTLFkBiHhlAjzobQIxKFEBiHhlAB6ERQIxKFECPOhtAfhgdQFevHkAOVRhAjzobQA5VGEAHoRFAjzobQH4YHUAOVRhA/NQOQAehEUAOVRhA6esLQA5VGEBXrx5A6esLQPzUDkAOVRhAngkYQFevHkBG5yBA1qshQJ4JGEBG5yBAG/IQQJ4JGEDWqyFAngkYQBvyEEDb2A5A6esLQJ4JGEDb2A5AV68eQJ4JGEDp6wtA1dIFQOnrC0Db2A5A7OP+P9vYDkAb8hBA7OP+P9XSBUDb2A5AG/IQQNarIUBXrx5A6esLQFevHkDkyxZAV68eQOnrC0Ab8hBA6esLQOzj/j8b8hBAG/IQQOzj/j9BuQBAG/IQQEG5AEDs4/4/QbkAQBvyEEAb8hBAG/IQQNarIUAb8hBA+FDkP9sPyT/4UOQ/QbkAQPhQ5D/s4/4/+FDkP0G5AED4UOQ/QbkAQOzj/j/4UOQ/IKM/QOJ+PEDBFj9ATsdCQMEWP0BYHkBATsdCQCCjP0DBFj9AOpdEQFgeQEDBFj9A4n48QDqXREDBFj9A2w9JQDqXREDifjxAOpdEQNsPSUCS60VATsdCQDqXRECS60VAWB5AQDqXREBOx0JAcDY2QO3tL0BE4TRA4n48QEThNECT0zZA4n48QHA2NkBE4TRAkfo7QOJ+PEDBFj9AV8E6QMEWP0BYHkBAV8E6QJH6O0DBFj9AIXk7QFgeQEDBFj9A4n48QCF5O0DBFj9Ak9M2QCF5O0DifjxAIXk7QJPTNkAc/DhAV8E6QCF5O0Ac/DhAWB5AQCF5O0BXwTpAHPw4QJPTNkA3UjZAV8E6QDdSNkBE4TRAV8E6QBz8OEA3UjZAmuM4QEThNEACrzJA7e0vQJrjOEACrzJA4n48QJrjOEDt7S9AmuM4QOJ+PECR+jtAV8E6QJrjOECR+jtAROE0QJrjOEBXwTpAQM4qQO3tL0DjXCNAV68eQONcI0DkyxZA41wjQFevHkBAzipAV68eQNarIUBAzipAc5ImQEDOKkDkCyxA1qshQOQLLEBAzipA1qshQHOSJkDkCyxA5i8vQO3tL0ACrzJA1w0uQAKvMkBE4TRA1w0uQOYvL0ACrzJA/eYvQEThNEA3UjZAk9M2QP3mL0A3UjZAQM4qQP3mL0CT0zZA/eYvQEDOKkCykyxA1w0uQP3mL0CykyxAROE0QP3mL0DXDS5ARBAxQEDOKkDkCyxAk9M2QOQLLEBAzipAk9M2QEQQMUDkCyxARBAxQJPTNkBE4TRAQM4qQEThNEDt7S9AQM4qQEQQMUBE4TRAvDEgQFevHkB+GB1AtH0hQH4YHUCPOhtAtH0hQLwxIEB+GB1A4mUfQI86G0BiHhlA5MsWQOJlH0BiHhlA41wjQOJlH0DkyxZA4mUfQONcI0DijSJAtH0hQOJlH0DijSJAjzobQOJlH0C0fSFAspMsQEDOKkCMkSlA1w0uQIyRKUAT3ydA1w0uQLKTLECMkSlA5wosQBPfJ0DhxyVA41wjQOcKLEDhxyVA7e0vQOcKLEDjXCNA5wosQO3tL0DmLy9A1w0uQOcKLEDmLy9AE98nQOcKLEDXDS5A4o0iQONcI0DhxyVAtH0hQOHHJUAT3ydAtH0hQOKNIkDhxyVAqFgjQBPfJ0CMkSlAQM4qQKhYI0CMkSlAV68eQKhYI0BAzipAqFgjQFevHkC8MSBAtH0hQKhYI0C8MSBAE98nQKhYI0C0fSFAc5ImQNarIUBG5yBAQM4qQEbnIEBXrx5AQM4qQHOSJkBG5yBA"),n=N("2w/JP9sPyT/MMeI/2DPjP8wx4j+1U/s/zDHiP9gz4z/bD8k/2DPjP9sPyT/bD8k/bKn/P7VT+z/lOgpAKfkMQOU6CkDkyxZA5ToKQCn5DEBsqf8/KfkMQFQ0AkBsqf8/bKn/P1Q0AkADjuY/2DPjPwOO5j/bD8k/A47mP9gz4z9sqf8/2DPjP7VT+z9sqf8/QpLqP9sPyT/bD8k/A47mP9sPyT/bD8k/2w/JPwOO5j9Ckuo/A47mP1Q0AkBCkuo/n54gQOTLFkDjXCNAEsMtQONcI0Dt7S9A41wjQBLDLUCfniBAEsMtQHRjK0CfniBATOY1QO3tL0BwNjZA4n48QEzmNUBwNjZA3P07QEzmNUDifjxAWJk/QOJ+PEAgoz9ATsdCQFiZP0Agoz9AprdCQFiZP0BOx0JAkutFQNsPSUDT5UVATsdCQNPlRUCmt0JATsdCQJLrRUDT5UVA5t1FQKa3QkDT5UVA2w9JQNPlRUDbD0lA2w9JQObdRUDT5UVA5t1FQNsPSUD2y0VAgIdCQObdRUD2y0VAprdCQObdRUCAh0JAs0I/QNz9O0B2YT9AgIdCQHZhP0Cmt0JAgIdCQLNCP0B2YT9AWJk/QKa3QkB2YT9A4n48QHZhP0Dc/TtA4n48QFiZP0B2YT9AhB8/QNz9O0CzQj9AgIdCQIQfP0CzQj9AVlVCQIQfP0CAh0JA9stFQNsPSUCkvUVAgIdCQKS9RUBWVUJAgIdCQPbLRUCkvUVA2KNFQFZVQkCkvUVA2w9JQKS9RUDbD0lA2w9JQNijRUCkvUVA2KNFQNsPSUDcZ0VAAbpBQNijRUDcZ0VAVlVCQNijRUABukFAVwc+QMZQOkDuaT5AAbpBQO5pPkBWVUJAAbpBQFcHPkDuaT5AhB8/QFZVQkDuaT5A3P07QO5pPkDGUDpA3P07QIQfP0DuaT5AAdQzQMZQOkDC2zJAdGMrQAHUM0DC2zJAEsMtQAHUM0B0YytAAdQzQBLDLUBu4jRA3P07QAHUM0Bu4jRAxlA6QAHUM0Dc/TtATOY1QNz9O0Bu4jRAEsMtQEzmNUBu4jRA7e0vQEzmNUASwy1A+A48QKdOOEAwjDxAwsJAQPgOPEAwjDxAaRRAQPgOPEDCwkBAnO9EQNsPSUBtxERAwsJAQG3EREBpFEBAwsJAQJzvREBtxERANmdEQGkUQEBtxERA2w9JQG3EREDbD0lA2w9JQDZnREBtxERAhHwxQHRjK0DC2zJAxlA6QIR8MUDC2zJAp044QIR8MUDGUDpA1BlFQNsPSUCc70RAwsJAQNQZRUCc70RAJFZBQNQZRUDCwkBAMIw8QKdOOEBP+jxAwsJAQE/6PEAkVkFAwsJAQDCMPEBP+jxApb89QCRWQUBP+jxAxlA6QE/6PECnTjhAxlA6QKW/PUBP+jxApb89QMZQOkBXBz5AAbpBQKW/PUBXBz5AJFZBQKW/PUABukFA3GdFQNsPSUDqTUVAAbpBQOpNRUAkVkFAAbpBQNxnRUDqTUVA1BlFQCRWQUDqTUVA2w9JQOpNRUDbD0lA2w9JQNQZRUDqTUVANmdEQNsPSUDGCURAUaA+QDZnREDGCURAaRRAQDZnREBRoD5AMtA4QCqbMkCGEDpAUaA+QIYQOkBpFEBAUaA+QDLQOECGEDpA+A48QGkUQECGEDpAp044QIYQOkAqmzJAp044QPgOPECGEDpAbysqQCqbMkAUJSVA5MsWQG8rKkAUJSVABW4jQG8rKkDkyxZAbysqQAVuI0CHLy5Ap044QG8rKkCHLy5AKpsyQG8rKkCnTjhAhHwxQKdOOECHLy5AdGMrQIcvLkAFbiNAdGMrQIR8MUCHLy5AwykKQOTLFkA7+fU/QpLqPzv59T/bD8k/O/n1P0KS6j/DKQpAQpLqP1Q0AkDDKQpAwykKQFQ0AkDkyxZABW4jQOTLFkB0YytA5MsWQAVuI0DDKQpABW4jQOTLFkDDKQpAKfkMQOTLFkCfniBA5MsWQJ+eIEB0YytAn54gQOTLFkAp+QxA5MsWQFQ0AkAp+QxA2w/JP9sPyT+9ffI/2w/JP7198j/kyxZA2w/JP9sPyT+9ffI/5MsWQOTLFkDqWDRA2w9JQOTLFkDqWDRAAAAAAOTLFkDbD0lA5MsWQAAAAADbD8k/2w/JP+TLFkDbD8k/5MsWQOTLFkDbD8k/2w/JP9sPyT86OfM/2w/JPzo58z/kyxZA2w/JP9sPyT86OfM/giI5QNsPSUDqWDRATiYrQOpYNEDkyxZATiYrQIIiOUDqWDRA5MsWQOTLFkC9ffI/2w/JP+TLFkC9ffI/5MsWQOTLFkDbD8k/5MsWQOTLFkBpwh9ATiYrQOTLFkBpwh9A5MsWQOTLFkBOJitAacIfQOTLFkBQHiZATiYrQFAeJkAr+zNATiYrQGnCH0BQHiZArRk8QCv7M0B6oj9A2w9JQK0ZPEB6oj9A2w9JQK0ZPEDbD0lArRk8QNsPSUCCIjlATiYrQK0ZPECCIjlAK/szQK0ZPEBOJitA0AYDQNsPyT/bD8k/O/n1P9sPyT/bD8k/2w/JPzv59T/QBgNAO/n1P+TLFkDQBgNABYEfQPiQKkDkyxZA5MsWQOTLFkDQBgNA5MsWQAWBH0DkyxZATntAQNsPSUB6oj9Abnc4QHqiP0Ar+zNAbnc4QE57QEB6oj9ANWEuQCv7M0BQHiZA5MsWQDVhLkBQHiZA+JAqQDVhLkDkyxZANWEuQPiQKkCTJTFAbnc4QDVhLkCTJTFAK/szQDVhLkBudzhAA44KQNAGA0DkyxZA5MsWQOTLFkD4kCpA5MsWQAOOCkDkyxZAA44KQOTLFkA6OfM/0AYDQDo58z/bD8k/0AYDQAOOCkA6OfM/icY3QCqbMkAy0DhAbUI9QDLQOEBRoD5AbUI9QInGN0Ay0DhAkmhDQFGgPkDGCURA2w9JQJJoQ0DGCURA2w9JQJJoQ0DbD0lAkmhDQNsPSUAXCUNAbUI9QJJoQ0AXCUNAUaA+QJJoQ0BtQj1AkyUxQPiQKkC6UTNAbnc4QLpRM0DKWjtAbnc4QJMlMUC6UTNAslJBQMpaO0C4mUJA2w9JQLJSQUC4mUJA2w9JQLJSQUDbD0lAslJBQNsPSUBOe0BAbnc4QLJSQUBOe0BAylo7QLJSQUBudzhAFwlDQNsPSUC4mUJAbUI9QLiZQkDKWjtAbUI9QBcJQ0C4mUJAmoI2QMpaO0C6UTNA+JAqQJqCNkC6UTNAKpsyQJqCNkD4kCpAmoI2QCqbMkCJxjdAbUI9QJqCNkCJxjdAylo7QJqCNkBtQj1ABYEfQOTLFkAUJSVA+JAqQBQlJUAqmzJA+JAqQAWBH0AUJSVA"),r=t.length,s=8*r*3,a=3*r,o=4*r,l=y.a.getApplication().graphicsDevice,u=new Float32Array(s),h=new Float32Array(4*r*8),d=function(e,t){const n=new Uint16Array(5040);for(let e=0;e<8;e++)for(let t=0;t<630;t++){const i=t+630*e;e%2==0?n[i]=i:(n[i]=i+2,n[i+2]=i,n[i+1]=i+1,t+=2)}return n}();for(let e=0;e<r;e++){V(t[e],n[e],F),F.y=(0,p.o)(F.y,0,1);const i=3*e,r=4*e;u[i]=F.x,u[i+1]=F.y,u[i+2]=F.z,z(F.x,F.y,F.z,k),h[r]=k.x,h[r+1]=k.y,h[r+2]=k.z,h[r+3]=k.w,u[i+a]=-F.x,u[i+a+1]=F.y,u[i+a+2]=F.z,z(-F.x,F.y,F.z,k),h[r+o]=k.x,h[r+o+1]=k.y,h[r+o+2]=k.z,h[r+o+3]=k.w,u[i+2*a]=-F.x,u[i+2*a+1]=F.y,u[i+2*a+2]=-F.z,z(-F.x,F.y,-F.z,k),h[r+2*o]=k.x,h[r+2*o+1]=k.y,h[r+2*o+2]=k.z,h[r+2*o+3]=k.w,u[i+3*a]=F.x,u[i+3*a+1]=F.y,u[i+3*a+2]=-F.z,z(F.x,F.y,-F.z,k),h[r+3*o]=k.x,h[r+3*o+1]=k.y,h[r+3*o+2]=k.z,h[r+3*o+3]=k.w,u[i+4*a]=-F.x,u[i+4*a+1]=-F.y,u[i+4*a+2]=F.z,z(-F.x,-F.y,F.z,k),h[r+4*o]=k.x,h[r+4*o+1]=k.y,h[r+4*o+2]=k.z,h[r+4*o+3]=k.w,u[i+5*a]=-F.x,u[i+5*a+1]=-F.y,u[i+5*a+2]=-F.z,z(-F.x,-F.y,-F.z,k),h[r+5*o]=k.x,h[r+5*o+1]=k.y,h[r+5*o+2]=k.z,h[r+5*o+3]=k.w,u[i+6*a]=F.x,u[i+6*a+1]=-F.y,u[i+6*a+2]=-F.z,z(F.x,-F.y,-F.z,k),h[r+6*o]=k.x,h[r+6*o+1]=k.y,h[r+6*o+2]=k.z,h[r+6*o+3]=k.w,u[i+7*a]=F.x,u[i+7*a+1]=-F.y,u[i+7*a+2]=F.z,z(F.x,-F.y,F.z,k),h[r+7*o]=k.x,h[r+7*o+1]=k.y,h[r+7*o+2]=k.z,h[r+7*o+3]=k.w}const m=[{semantic:c.c.SEMANTIC_POSITION,components:3,type:c.c.TYPE_FLOAT32},{semantic:c.c.SEMANTIC_TEXCOORD0,components:4,type:c.c.TYPE_FLOAT32}],g=u.length/3,$=new O.a(l,m),f=new A.a(l,$,g),_=new R.a(f);for(let e=0;e<g;e++)_.element[c.c.SEMANTIC_POSITION].set(u[3*e],u[3*e+1],u[3*e+2]),_.element[c.c.SEMANTIC_TEXCOORD0].set(h[4*e],h[4*e+1],h[4*e+2],h[4*e+3]),_.next();return _.end(),e.vertexBuffer=f,e.indexBuffer[0]=new L.a(l,c.c.INDEXFORMAT_UINT16,5040,c.c.BUFFER_STATIC,d.buffer),e.primitive[0].type=c.c.PRIMITIVE_TRIANGLES,e.primitive[0].base=0,e.primitive[0].count=d.length,e.primitive[0].indexed=!0,e.aabb.setToInfinity(),e}};var j=n(23),Z=n(14);const q={precisionCode:function(e){let t="precision "+e.precision+" float;\n";return e.webgl2&&(t+="#ifdef GL2\nprecision "+e.precision+" sampler2DShadow;\n#endif\n"),t},versionCode:function(e){return e.webgl2?"#version 300 es\n":""},dummyFragmentCode:function(){return"void main(void) {gl_FragColor = vec4(0.0);}"},begin:function(){return"void main(void)\n{\n"},end:function(){return"}\n"}};var K=n(27);const W={vertex_position:Z.a.SEMANTIC_POSITION,vertex_normal:Z.a.SEMANTIC_NORMAL,vertex_tangent:Z.a.SEMANTIC_TANGENT,vertex_texCoord0:Z.a.SEMANTIC_TEXCOORD0,vertex_texCoord1:Z.a.SEMANTIC_TEXCOORD1,vertex_texCoord2:Z.a.SEMANTIC_TEXCOORD2,vertex_texCoord3:Z.a.SEMANTIC_TEXCOORD3,vertex_texCoord4:Z.a.SEMANTIC_TEXCOORD4,vertex_texCoord5:Z.a.SEMANTIC_TEXCOORD5,vertex_texCoord6:Z.a.SEMANTIC_TEXCOORD6,vertex_texCoord7:Z.a.SEMANTIC_TEXCOORD7,vertex_color:Z.a.SEMANTIC_COLOR,vertex_boneIndices:Z.a.SEMANTIC_BLENDINDICES,vertex_boneWeights:Z.a.SEMANTIC_BLENDWEIGHT},J={convolveLastMipOfCubemapPS:"#extension GL_EXT_shader_texture_lod : enable\nhighp vec4 sampleCubeLod(highp samplerCube sampler, highp vec3 coord, mediump float lod) {\n#if defined(GL_EXT_shader_texture_lod)\n return textureCubeLodEXT( sampler, coord, lod );\n#else\n return textureCube( sampler, coord, lod );\n#endif\n}\nuniform highp samplerCube _Cubemap_; \nuniform highp float _Level_; \nvoid main() { \n // just sample all directions (+X, -X etc) and average the result\n gl_FragColor = vec4(( \n sampleCubeLod( _Cubemap_, vec3( 1.0, 0.0, 0.0 ), _Level_ ) + \n sampleCubeLod( _Cubemap_, vec3( -1.0, 0.0, 0.0 ), _Level_ ) + \n sampleCubeLod( _Cubemap_, vec3( 0.0, 1.0, 0.0 ), _Level_ ) + \n sampleCubeLod( _Cubemap_, vec3( 0.0, -1.0, 0.0 ), _Level_ ) + \n sampleCubeLod( _Cubemap_, vec3( 0.0, 0.0, 1.0 ), _Level_ ) +\n sampleCubeLod( _Cubemap_, vec3( 0.0, 0.0, -1.0 ), _Level_ ) \n ) * 0.1666666667); \n}",convolveLastMipOfCubemapVS:"attribute vec2 vertex_position; \nvoid main() { \n gl_Position = vec4( vertex_position, 0.5, 1.0 ); \n}",fullscreenQuadVS:"attribute vec2 vertex_position;\nvarying vec2 vUv0;\nvoid main(void)\n{\n gl_Position = vec4(vertex_position, 0.5, 1.0);\n vUv0 = vertex_position.xy*0.5+0.5;\n}\n",gles3PS:"#define varying in\nout highp vec4 pc_fragColor;\n#define gl_FragColor pc_fragColor\n#define texture2D texture\n#define textureCube texture\n#define texture2DProj textureProj\n#define texture2DLodEXT textureLod\n#define texture2DProjLodEXT textureProjLod\n#define textureCubeLodEXT textureLod\n#define texture2DGradEXT textureGrad\n#define texture2DProjGradEXT textureProjGrad\n#define textureCubeGradEXT textureGrad\n#define GL2\n",gles3VS:"#define attribute in\n#define varying out\n#define texture2D texture\n#define GL2\n#define VERTEXSHADER\n"},Q={convolveLastMipOfCubemapPS:J.convolveLastMipOfCubemapPS,convolveLastMipOfCubemapVS:J.convolveLastMipOfCubemapVS,fullscreenQuadVS:J.fullscreenQuadVS,gles3PS:J.gles3PS,gles3VS:J.gles3VS,collectAttribs(e){const t={};let n=0,i=e.indexOf("attribute");for(;i>=0&&!(i>0&&"/"===e[i-1]);){const r=e.indexOf(";",i),s=e.lastIndexOf(" ",r),a=e.substr(s+1,r-(s+1)),o=W[a];void 0!==o?t[a]=o:(t[a]="ATTR"+n,n++),i=e.indexOf("attribute",i+1)}return t},createShader(e,t,n,i=!1){let r=J[t],s=q.precisionCode(e)+"\n"+J[n];s=(0,K.c)(s);const o=this.collectAttribs(r);return e.webgl2&&(r=q.versionCode(e)+this.gles3VS+r,s=q.versionCode(e)+this.gles3PS+s),new a.a(e,{attributes:o,vshader:r,fshader:s,useTransformFeedback:i})},createShaderFromCode(e,t,n,i,r=!1,s=!0){const o=e.programLib._cache,l=o[i];if(void 0!==l)return l;n=q.precisionCode(e)+"\n"+(n||q.dummyFragmentCode()),n=(0,K.c)(n);const c=this.collectAttribs(t);return o[i]=new a.a(e,{attributes:c,vshader:t,fshader:n,useTransformFeedback:r},s),o[i]}};var X=n(41);const Y=new Uint8Array([0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1]),ee=new p.m(1,1,-1),te=new p.m(1,-1,-1);let ne=null,ie=null,re=null;class se{constructor(e,t,n){this.app=e,this.scene=t,this.renderSettings=n,this.defaultReflectionResolution=UnityEngine.RenderSettings._defaultReflectionResolution,this.indirectSpecular=new p.d(.4465786,.4964123,.5748172,1),this._meshInstance=null,this.environmentCubemap=null,this.isVisible=!1,this.matrix_projection=new p.i,this.matrix_view=new p.i,this.matrix_viewProjection=new p.i,this.sunPosition=new p.m,this.referenceAmbientProbe=n.referenceAmbientProbe,this.useReferenceAmbientProbe=n.useReferenceAmbientProbe,this.isDirty=!1}install(){re=new u.a(UnityEngine.Graphics.graphicsDevice,{cubemap:!0,rgbm:!1,width:2,height:2,name:"SkyboxBlackCube"}),re._levels[0]=[Y,Y,Y,Y,Y,Y],this.environmentCubemap=re,this.scene.addSkybox(this)}get meshInstance(){if(this._meshInstance)return this._meshInstance;const e=new y.f;e.cullingLayer=-1;const t=new i.a(e,H.loadSkyboxMesh(),new g);t.cull=!1,t._shaderDefs=c.c.SHADERDEF_RENDERTYPE_BACKGROUND;const n=UnityEngine.RenderSettings._skybox;return n&&n.handle&&(t.material=n.handle),(new r.a).meshInstances=[t],e._sync(),this._meshInstance=t,this._meshInstance}update(){const e=UnityEngine.RenderSettings._skybox;if(!e||!e.handle)return this.indirectSpecular.set(0,0,0,1),void(this.isVisible=!1);this.isVisible=!0,this._meshInstance&&(this._meshInstance.material=e.handle),this.app.systems.reflectionprobe.scheduleProbeUpdate()}updateSkyDrawCall(e,t=!1){this.matrix_view.setTRS(p.m.ZERO,e._node.getRotation(),t?te:ee).invert(),e._projection===c.c.PROJECTION_PERSPECTIVE?e._usePhysicalProperties?pc.Camera.calculateProjectionMatrixFromPhysicalProperties_Unity(this.matrix_projection,e._focalLength,e._sensorSize,e._lensShift,e._nearClip,e._farClip,e._aspect,e._gateFit):this.matrix_projection.setPerspective(e._fov,e._aspect,.01,1):this.matrix_projection.setPerspective(90,e._aspect,.01,1),this.matrix_viewProjection.mul2(this.matrix_projection,this.matrix_view),this.meshInstance.setParameter(this.app.renderer.unityIds.viewProjId.name,this.matrix_viewProjection.data);let n=UnityEngine.RenderSettings.sun;if(n&&0==(n._mask&c.c.MASK_DYNAMIC))n=n.handle;else{const e=this.app.systems.light.store,t=Object.keys(e);for(let i=0;i<t.length;i++){const r=e[t[i]],s=r.data;if(s.enabled&&r.entity.enabled&&"directional"===s.type){n=s.light;break}}}const i=n?n._node?n._node:n.entity:null;if(n&&i&&i.enabled)this.meshInstance.setParameter("_LightColor0",n.color.data),this.sunPosition.set(0,0,-1),i.transformDirection(this.sunPosition,this.sunPosition),this.meshInstance.setParameter("_WorldSpaceLightPos0",[this.sunPosition.x,this.sunPosition.y,this.sunPosition.z,0]);else{this.meshInstance.setParameter("_LightColor0",[0,0,0,0]);const e=this.app.isUrp?-1:0;this.meshInstance.setParameter("_WorldSpaceLightPos0",[0,0,e,0])}}getSkyDrawCall(e){return this.meshInstance}prepareEnvironmentReflectionsIfNeeded(){this.isDirty&&(this.bakeEnvironmentReflections(),this.isDirty=!1)}bakeEnvironmentReflections(){const e=this.defaultReflectionResolution||128;switch(UnityEngine.RenderSettings.defaultReflectionMode){case UnityEngine.Rendering.DefaultReflectionMode.Skybox:this.environmentCubemap=this.renderSettings.defaultReflection?this.renderSettings.defaultReflection.handle:this.bakeToCubemap(e);break;case UnityEngine.Rendering.DefaultReflectionMode.Custom:{const e=UnityEngine.RenderSettings.customReflection;this.environmentCubemap=(e?e.handle:null)||re;break}}this.updateReflectionIntensity(),this.computeIndirectSpecular(),UnityEngine.LightmapSettings.reflectionProbes.environmentProbe.cubemap=this.environmentCubemap}updateReflectionIntensity(){this.environmentCubemap.intensity=UnityEngine.RenderSettings._reflectionIntensity}computeIndirectSpecular(){const e=UnityEngine.RenderSettings._reflectionIntensity;if(this.useReferenceAmbientProbe){const t=UnityEngine.Mathf.LinearToGammaSpace(this.referenceAmbientProbe.data[0]*e),n=UnityEngine.Mathf.LinearToGammaSpace(this.referenceAmbientProbe.data[9]*e),i=UnityEngine.Mathf.LinearToGammaSpace(this.referenceAmbientProbe.data[18]*e);this.indirectSpecular.set(t,n,i,e)}else{if(!this.environmentCubemap||this.environmentCubemap===re)return;this.indirectSpecular.set(0,0,0,e);const t=this.app.graphicsDevice,n=Math.log(this.environmentCubemap.width)/Math.log(2)|0,i=t.activeFramebuffer;if(!ne){const e=new u.a(t,{mipmaps:!1,width:1,height:1,format:c.c.PIXELFORMAT_R8_G8_B8_A8,name:"IndirectSpecularPixel"});ne=new j.a({depth:!1,colorBuffer:e})}ie||(ie=Q.createShaderFromCode(t,Q.convolveLastMipOfCubemapVS,Q.convolveLastMipOfCubemapPS,"convolveLastMipOfCubemap")),t.scope.resolve("_Cubemap_").setValue(this.environmentCubemap),t.scope.resolve("_Level_").setValue(n),(0,X.a)(t,ne,ie);const r=ne._colorBuffer.toBuffer();this.indirectSpecular.set(r[0],r[1],r[2],255).scale(1/255),t.setFramebuffer(i)}}bakeEnvironmentLighting(){UnityEngine.RenderSettings.ambientMode===UnityEngine.Rendering.AmbientMode.Skybox&&(this.update(),this.isVisible?(this.lightingCubemap=this.bakeToCubemap(8),this.lightingCubemap.sync(0)):this.lightingCubemap=null)}bakeToCubemap(e,t=new u.a(this.app.graphicsDevice,{cubemap:!0,rgbm:!1})){const n=this.app.graphicsDevice,i=new y.f,r=i.addComponent("camera",{projection:c.c.PROJECTION_ORTHOGRAPHIC,aspectRatio:1,orthoHeight:1});if(t._width=t._height=e,!this.isVisible)return t;const s=[[0,90,0],[0,-90,0],[-90,0,0],[90,0,0],[0,0,0],[0,180,0]];for(let e=0;e<6;e++)i.setLocalEulerAngles(s[e][0],s[e][1],s[e][2]),i._sync(),this.updateSkyDrawCall(r.camera,!0),r.renderTarget=new j.a({colorBuffer:t,face:e,depth:!1}),this.app.renderer.setCamera(r.camera,r.renderTarget,!0),this.app.renderer.renderMeshInstance(new h.a,null,r.camera,this.meshInstance,[]);return n.gl.generateMipmap(t._glTarget),t.markUploaded(),t}}class ae{constructor(e){this._device=e,this._cache={},this._generators={},this._isClearingCache=!1}register(e,t){this._generators[e]=t}clearCache(){const e=this._cache;this._isClearingCache=!0;for(const t in e)e.hasOwnProperty(t)&&e[t].destroy();this._cache={},this._isClearingCache=!1}removeFromCache(e){if(this._isClearingCache)return;const t=this._cache;for(const n in t)if(t.hasOwnProperty(n)&&t[n]===e){delete t[n];break}}}class oe{constructor(){this.globalId=0,this.revision=0}equals(e){return this.globalId===e.globalId&&this.revision===e.revision}notequals(e){return this.globalId!==e.globalId||this.revision!==e.revision}copy(e){this.globalId=e.globalId,this.revision=e.revision}reset(){this.globalId=0,this.revision=0}}class le{constructor(e,t,n,i){this.locationId=i,this.scopeId=e.scope.resolve(t),this.version=new oe,n===c.c.UNIFORMTYPE_FLOAT&&"[0]"===t.substr(t.length-3)&&(n=c.c.UNIFORMTYPE_FLOATARRAY),this.dataType=n,this.value=null,this.dataType===c.c.UNIFORMTYPE_VEC2?this.value=[null,null]:this.dataType===c.c.UNIFORMTYPE_VEC3?this.value=[null,null,null]:this.value=[null,null,null,null],this.array=[],this.slot=-1,this.meta=null}}let ce=0;class ue{constructor(){ce++,this.version=new oe,this.version.globalId=ce}increment(){this.version.revision++}}class he{constructor(e){this.name=e,this.value=null,this.previous_value=null,this.versionObject=new ue}setValue(e){this.value=e,this.previous_value=null,this.versionObject.increment()}pushValue(e){if(this.previous_value)throw Error("pushValue is limited to storing 1 previous value");const t=this.value;this.setValue(e),this.previous_value=t}popValue(){this.setValue(this.previous_value)}getValue(){return this.value}}class de{constructor(e){this.name=e,this.variables={}}resolve(e){return this.variables.hasOwnProperty(e)||(this.variables[e]=new he(e)),this.variables[e]}}class me{constructor(e){this.device=e,this.vertexArrayObject=null,this.usedInFrame=0,this.indexBuffer=null,this.vertexBuffer=null,this.attributes=Array(16);for(let e=0;e<this.attributes.length;e++){const t={size:0,type:0,normalized:!1,stride:0,offset:0,divisor:0,enabled:!1,buffer:null};this.attributes[e]=t}}applyFrom(e){const t=UnityEngine.Graphics.graphicsDevice,n=t.gl;e.indexBuffer!==this.indexBuffer&&(this.indexBuffer=e.indexBuffer,n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,this.indexBuffer)),this.vertexBuffer=null;const i=this.attributes.length>t.maxVertexAttributes?t.maxVertexAttributes:this.attributes.length;for(let r=0;r<i;r++){const i=this.attributes[r],s=e.attributes[r];s.enabled!==i.enabled&&(s.enabled&&!i.enabled?n.enableVertexAttribArray(r):!s.enabled&&i.enabled&&n.disableVertexAttribArray(r),i.enabled=s.enabled),i.enabled&&(i.buffer===s.buffer&&i.size===s.size&&i.type===s.type&&i.normalized===s.normalized&&i.stride===s.stride&&i.offset===s.offset||(this.vertexBuffer!==s.buffer&&(this.vertexBuffer=s.buffer,n.bindBuffer(n.ARRAY_BUFFER,this.vertexBuffer)),i.buffer=s.buffer,i.size=s.size,i.type=s.type,i.normalized=s.normalized,i.stride=s.stride,i.offset=s.offset,n.vertexAttribPointer(r,i.size,i.type,i.normalized,i.stride,i.offset)),t.extInstancing&&i.divisor!==s.divisor&&(i.divisor=s.divisor,n.vertexAttribDivisor(r,i.divisor)))}}}class ge{constructor(e,t=60){this.device=e,this.stateFrameLifetime=t,this.currentFrame=0,this.boundVertexArrayObject=null,this.globalState=new me(this.device),this.temporaryState=new me(this.device),this.map=new Map}get vertexArrayObjectSupported(){return this.device.extVertexArrayObject}enableVertexAttribArray(e){this.temporaryState.attributes[e].enabled=!0}disableVertexAttribArray(e){this.temporaryState.attributes[e].enabled=!1}vertexAttribPointer(e,t,n,i,r,s){const a=this.temporaryState.attributes[e];a.size=t,a.type=n,a.normalized=i,a.stride=r,a.offset=s,a.buffer=this.temporaryState.vertexBuffer}vertexAttribDivisor(e,t){this.temporaryState.attributes[e].divisor=t}bindBuffer(e,t){const n=this.device.gl;switch(e){case n.ARRAY_BUFFER:this.temporaryState.vertexBuffer=t;break;case n.ELEMENT_ARRAY_BUFFER:this.temporaryState.indexBuffer=t}}applyState(e){if(this.vertexArrayObjectSupported){const t=this.map.get(e)||new me(this.device);this.map.set(e,t);const n=this.device.gl;return t.vertexArrayObject||(t.vertexArrayObject=n.createVertexArray()),this.boundVertexArrayObject!==t.vertexArrayObject&&(this.boundVertexArrayObject=t.vertexArrayObject,n.bindVertexArray(t.vertexArrayObject)),t.usedInFrame=this.currentFrame,t.applyFrom(this.temporaryState),t.vertexArrayObject}return this.globalState.applyFrom(this.temporaryState),null}unbindVertexArrayObject(){this.boundVertexArrayObject&&(this.device.gl.bindVertexArray(null),this.boundVertexArrayObject=null)}cleanup(e){if(this.currentFrame=e,this.currentFrame%this.stateFrameLifetime==0)for(const e of this.map.keys()){const t=this.map.get(e);this.currentFrame-t.usedInFrame>=this.stateFrameLifetime&&(t.vertexArrayObject&&this.device.gl.deleteVertexArray(t.vertexArrayObject),this.map.delete(e))}}disableAllAttributes(){const e=Math.min(this.device.maxVertexAttributes,this.temporaryState.attributes.length);for(let t=0;t<e;t++)this.temporaryState.attributes[t].enabled=!1}}const $e="resizecanvas",pe=new Float32Array([1,1,1,1]),ye=new Float32Array([0,0,0,0]),fe=new Float32Array([0,0,0,1]),_e=new Float32Array([1,0,0,1]),Se=new Float32Array([0,0,1,1]),be=function(e,t){const n=e.width,i=e.height;if(n>t||i>t){const r=t/Math.max(n,i),s=Math.floor(n*r),a=Math.floor(i*r);UnityEngine.Debug.LogWarning$1("Image dimensions larger than max supported texture size of "+t+". Resizing from "+n+", "+i+" to "+s+", "+a+".");const o=document.createElement("canvas");return o.width=s,o.height=a,o.getContext("2d").drawImage(e,0,0,n,i,0,0,s,a),o}return e};function Ce(e,t){let n=!0;const i=e.createTexture();e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,2,2,0,e.RGBA,t,null);const r=e.createFramebuffer();return e.bindFramebuffer(e.FRAMEBUFFER,r),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,i,0),e.checkFramebufferStatus(e.FRAMEBUFFER)!==e.FRAMEBUFFER_COMPLETE&&(n=!1),e.bindTexture(e.TEXTURE_2D,null),e.deleteTexture(i),e.bindFramebuffer(e.FRAMEBUFFER,null),e.deleteFramebuffer(r),n}var Ee=n(20),Te=n(26);const ve=[new p.l(0,1),new p.l(1,1),new p.l(0,0),new p.l(1,0)],Ie=[0,1,2,2,1,3],xe=[0,1,5,5,4,0,1,2,6,6,5,1,2,3,7,7,6,2,4,5,9,9,8,4,5,6,10,10,9,5,6,7,11,11,10,6,8,9,13,13,12,8,9,10,14,14,13,9,10,11,15,15,14,10],Ae=[!0,!1,!1,!1,!1,!1,!0,!1,!1,!1],we=(e,t,n,i,r,s)=>{e[t]=n,e[t+1]=i,e[t+2]=0,e[t+3]=r,e[t+4]=s},De=(e,t,n)=>{if(e<=t)return 1;{const i=e/t,r=Math.ceil(i)-i<1e-5?Math.ceil(i):i;return Math.floor(e%t/t/t<n?r:r+1)}},Me=(e,t,n)=>{const i=n.x,r=n.y,s=.5*i,a=.5*r,o=e.pivotNormalized,l=new p.l(o.x*i,o.y*r),c=e.getBorderUnits(),u=e.getInnerUvRect(),h=e.getOuterUvRect(),d=new p.l(i-c.x-c.z,r-c.y-c.w),m=i>c.x+c.z?[-l.x,-l.x+c.x,-l.x+c.x+d.x,-l.x+i]:[-l.x,-l.x+s,-l.x+s,-l.x+i],g=r>c.y+c.w?[-l.y,-l.y+c.y,-l.y+c.y+d.y,-l.y+r]:[-l.y,-l.y+a,-l.y+a,-l.y+r],$=[h.x,u.x,u.z,h.z],y=[h.y,u.y,u.w,h.w],f=t.vertexBuffer;return((e,t,n,i,r)=>{for(let s=0;s<4;s++)for(let a=0;a<4;a++)we(e,5*(4*s+a),t[a],n[s],i[a],r[s])})(new Float32Array(f.storage),m,g,$,y),f.unlock(),t.recalculateBounds(),t};class Pe{constructor(e){this.$id=0,this.attributes=e,this.$sprite=!0,this.mesh=null,this.rectWithTransparency=null,this.rectWithoutTransparency=null,this["__UnityEngine.Sprite"]=null}getName(){return this.attributes.name}getUvRect(){const e=this.textureRect,t=this.texture;return new p.n(e.x/t.width,e.y/t.height,(e.z-e.x)/t.width,(e.w-e.y)/t.height)}getInnerUvRect(){const e=this.uvRect,t=this.borderUv;return new p.n(e.x+t.x,e.y+t.y,e.x+e.z-t.z,e.y+e.w-t.w)}getOuterUvRect(){const e=this.uvRect;return new p.n(e.x,e.y,e.x+e.z,e.y+e.w)}getPivot(){return this.attributes.pivot}getPivotNormalized(){const e=this.attributes.nativeSize;return new p.l(this.attributes.pivot.x/e.x,this.attributes.pivot.y/e.y)}getAABB(){return this.attributes.aabb}getVertices(){const e=Array(this.attributes.vertices.length/5);for(let t=0;t<e.length;t++)e[t]=new p.l(this.attributes.vertices[5*t],this.attributes.vertices[5*t+1]);return e}getTriangles(){return this.attributes.triangles}getTextureRect(){return this.attributes.textureRect}getTextureRectWithTransparency(){if(null===this.rectWithTransparency){const e=this.getTextureRect(),t=this.getTransparency();this.rectWithTransparency=new UnityEngine.Rect.$ctor1(0,0,e.z-e.x+t.x+t.z,e.w-e.y+t.y+t.w)}return this.rectWithTransparency}getTextureRectWithoutTransparency(){if(null===this.rectWithoutTransparency){const e=this.getTextureRect();this.rectWithoutTransparency=new UnityEngine.Rect.$ctor1(e.x,e.y,e.z-e.x,e.w-e.y)}return this.rectWithoutTransparency}getTextureRectBeforeResize(){return this.attributes.textureRectBeforeResize}getBorder(){return this.attributes.border}getBorderUnits(){const e=this.border,t=this.pixelsPerUnit;return(new p.n).copy(e).scale(1/t)}getBorderUv(){const e=this.uvRect,t=this.border,n=this.pixelSize;return new p.n(e.z*(t.x/n.x),e.w*(t.y/n.y),e.z*(t.z/n.x),e.w*(t.w/n.y))}getTexture(){return this.attributes.texture}getTransparency(){return this.attributes.transparency}getBounds(){return this.attributes.bounds}getPixelsPerUnit(){return this.attributes.pixelsPerUnit}getTextureRectOffset(){return this.attributes.textureRectOffset}getMesh(){return this.mesh||(this.mesh=this.attributes.vertices?(e=>{const t=new i.b,n=new Float32Array(e.attributes.vertices),r=e.attributes.vertices.length/5;return t.vertexBuffer=t.defaultVertexBuffer(Ae,r,n.buffer),t.setIndicies(e.attributes.triangles,UnityEngine.MeshTopology.Triangles,0,!0,0),t})(this):(e=>{const t=new i.b,n=e.pixelsPerUnit,r=e.pixelSize,s=e.getPivotNormalized(),a=new p.m(-s.x*r.x/n,-s.y*r.y/n,0),o=new p.m((1-s.x)*r.x/n,(1-s.y)*r.y/n,0),l=[new p.m(a.x,o.y,0),new p.m(o.x,o.y,0),new p.m(a.x,a.y,0),new p.m(o.x,a.y,0)];return t.setVectorStream({_items:l,_size:l.length,Count:l.length},c.c.SEMANTIC_POSITION,3),t.setVectorStream({_items:ve,_size:ve.length,Count:ve.length},c.c.SEMANTIC_TEXCOORD0,2),t.setIndicies(Ie,UnityEngine.MeshTopology.Triangles,0,!0,0),t})(this)),this.mesh}get9SlicedMesh(e){return((e,t)=>{const n=new i.b,r=new Float32Array(80);return n.vertexBuffer=n.defaultVertexBuffer(Ae,16,r.buffer),n.setIndicies(xe,UnityEngine.MeshTopology.Triangles,0,!1,0),Me(e,n,t)})(this,e)}updateMesh(e,t){return Me(this,e,t)}get9TiledMesh(e,t,n){return((e,t,n,r)=>{const s=new O.a(y.a.getApplication().graphicsDevice,[{semantic:c.c.SEMANTIC_POSITION,components:3,type:c.c.TYPE_FLOAT32},{semantic:c.c.SEMANTIC_TEXCOORD0,components:2,type:c.c.TYPE_FLOAT32}]),a=t.x,o=t.y,l=e.border,u=e.pixelSize,h=e.pixelsPerUnit,d=(new p.n).copy(l).scale(1/h),m=new p.l((u.x-l.x-l.z)/h,(u.y-l.y-l.w)/h),g=new p.l(a-d.x-d.z,o-d.y-d.w);let $,f=4,_=4;if(n===UnityEngine.SpriteTileMode.Continuous)f+=2*Math.max(0,Math.ceil(g.x/m.x)),_+=2*Math.max(0,Math.ceil(g.y/m.y)),$=new p.l(g.x%m.x,g.y%m.y);else if(n===UnityEngine.SpriteTileMode.Adaptive){const e=De(g.x,m.x,r);m.x=g.x/e,f+=Math.max(0,2*e);const t=De(g.y,m.y,r);m.y=g.y/t,_+=Math.max(0,2*t),$=m}const S=f*_,b=(f-1)*(_-1)*6,C=new L.a(y.a.getApplication().graphicsDevice,c.c.INDEXFORMAT_UINT16,b);let E=0;const T=new Uint16Array(C.lock());for(let e=0;e<_-1;e++)for(let t=0;t<f-1;t++){const n=e*f+t;T[E++]=n,T[E++]=n+1,T[E++]=n+f,T[E++]=n+1,T[E++]=n+1+f,T[E++]=n+f}C.unlock(),C.preventDestroy=!0;const v=new Float32Array(5*S),I=new A.a(y.a.getApplication().graphicsDevice,s,0);I.storage=v.buffer,I.numVertices=S,I.unlock();const x=new i.b;return x.vertexBuffer=I,x.indexBuffer[0]=C,x.primitive[0].type=c.c.PRIMITIVE_TRIANGLES,x.primitive[0].base=0,x.primitive[0].count=b,x.primitive[0].indexed=!0,x.aabb=new p.b(new p.m(e.aabb[0],e.aabb[1],e.aabb[2]),new p.m(a/2,o/2,e.aabb[5])),x.subMeshes=[x],((e,t,n,i,r,s,a)=>{const o=n.x,l=n.y,c=new p.l(e.pivotNormalized.x*o,e.pivotNormalized.y*l),u=e.border,h=e.borderUv,d=e.getBorderUnits(),m=e.getInnerUvRect(),g=e.getOuterUvRect(),$=new p.l(1-h.z-h.x,1-h.w-h.y),y=new p.l(o-d.x-d.z,l-d.y-d.w),f=new p.l($.x*(a.x/s.x),$.y*(a.y/s.y));let _,S;const b=d.x+d.z;if(o>b)_=[-c.x,-c.x+d.x,-c.x+d.x+y.x,-c.x+o],S=[g.x,m.x,m.z,g.z];else{const e=u.x/(u.x+u.z)*o;_=[-c.x,-c.x+e,-c.x+e,-c.x+o];const t=o/b;S=[g.x,g.x+h.x*t,m.z,m.z+h.z*t]}let C,E;const T=d.y+d.w;if(l>T)C=[-c.y,-c.y+d.y,-c.y+d.y+y.y,-c.y+l],E=[g.y,m.y,m.w,g.w];else{const e=l/T,t=u.y/(u.y+u.w)*l;C=[-c.y,-c.y+t,-c.y+t,-c.y+l],E=[g.y,g.y+h.y*e,m.w,m.w+h.w*e]}const v=t.vertexBuffer,I=new Float32Array(v.storage);let x=0,A=0,w=0;const D=new p.l(_[0],C[0]);for(let e=0;e<r;e++){let t=0;for(0===e?(t=E[0],D.y=C[0]):1===e?(t=E[1],D.y=C[1]):e===r-3?(t=E[1]+f.y,D.y=C[2]):e===r-2?(t=E[2],D.y=C[2]):e===r-1?(t=E[3],D.y=C[3]):t=e%2==0?E[1]:E[2],A=e*i,w=5*A,we(I,w,_[0],D.y,S[0],t),A+=1,w=5*A,we(I,w,_[1],D.y,S[1],t),D.x=_[1],x=2;x<i-4;x+=2)A=e*i+x,w=5*A,we(I,w,D.x,D.y,S[1],t),D.x+=x===i-4?a.x:s.x,A+=1,w=5*A,we(I,w,D.x,D.y,S[2],t);i>4&&(x=i-4,A=e*i+x,w=5*A,we(I,w,D.x,D.y,S[1],t),D.x+=a.x,A+=1,w=5*A,we(I,w,_[2],D.y,S[1]+f.x,t)),x=i-2,A=e*i+x,w=5*A,we(I,w,_[2],D.y,S[2],t),x=i-1,A=e*i+x,w=5*A,we(I,w,_[3],D.y,S[3],t),e===r-4?D.y+=a.y:e%2==0&&(D.y+=s.y)}v.unlock()})(e,x,t,f,_,m,$),x})(this,e,t,n)}updateMeshTiled(e,t){return Me(this,e,t)}get pivotNormalized(){return this.getPivotNormalized()}get pivot(){return this.getPivot()}get aabb(){return this.getAABB()}get transparency(){return this.getTransparency()}get textureRect(){return this.getTextureRect()}get textureRectBeforeResize(){return this.getTextureRect()}get pixelsPerUnit(){return this.getPixelsPerUnit()}get texture(){return this.getTexture()}get border(){return this.getBorder()}get borderUv(){return this.getBorderUv()}get uvRect(){return this.getUvRect()}get vertices(){return this.getVertices()}get pixelSize(){return new p.l(this.textureRect.z,this.textureRect.w)}}Pe.create=(e,t,n,i,r,s,a)=>{const o=t.x,l=t.y,c=t.z,u=t.w,h=c/i,d=u/i,m=h/2,g=d/2,$=h*(n.x-o)/c,y=d*(n.y-l)/u;return new Pe({aabb:[0,0,0,m,g,0],border:a,bounds:[-$,-y,h-$,d-y],pixelsPerUnit:i,texture:e,textureRect:(new p.n).copy(t),textureRectBeforeResize:new p.n(o,l,c,u),transparency:new p.n(0,0,0,0),triangles:[0,1,2,2,1,3],vertices:[-$,d-y,0,o/e._width,(l+u)/e._height,h-$,d-y,0,(o+c)/e._width,(l+u)/e._height,-$,-y,0,o/e._width,l/e._height,h-$,-y,0,(o+c)/e._width,l/e._height],pivot:n.clone()})};class Ue{constructor(e,t,n,i,r,s){this.mesh=e,this.matrix=t,this.material=n,this.submeshIndex=i,this.shaderPass=r,this.materialPropertyBlock=s}}const Be={x:0,y:0,width:1,height:1},Oe=new h.a,Le=new p.i;let Re=null,Fe=null;const Ge=[],ke={executeCommandBuffer:function(e){if(!e)return;Re||(Re=new y.f,Re.name="CommandBufferDrawCall");const t=y.a.getApplication().renderer,n=t.device,r=e.renderTargetIdentifier.target["__UnityEngine.RenderTexture"].renderTarget;n.setRenderTarget(r),n.updateBegin(),n.setColorWrite(!0,!0,!0,!0),n.setDepthWrite(!0),t.setupViewport(Be,r.width,r.height),e.view&&e.proj?Le.mul2(e.proj,e.view):Le.copy(UnityEngine.GL.matrix),t.viewProjId.setValue(Le.data),t.unityIds.viewProjId.setValue(Le.data);const s=e.clearCommand;s&&r&&t.clearTarget(r,s);for(let n=0;n<e.commands.length;n++){const r=e.commands[n],s=r.mesh,a=-1===r.submeshIndex?s.subMeshes:[s.subMeshes[r.submeshIndex]];for(let e=0;e<a.length;e++){const n=a[e];Re.setWorldTransform(r.matrix),Fe?(Fe.node=Re,Fe.mesh=n,Fe.material=r.material):Fe=new i.a(Re,n,r.material);const s=r.materialPropertyBlock;s&&s.applyToMeshInstance(Fe),t.renderMeshInstance(Oe,null,null,Fe,null)}}},drawMesh:function(e,t,n,r,s,a,o){if(!e)return;const l=e.subMeshes[a];if(!l)return void console.error("Submesh index in intermediate renderer is out of bounds");const c=pc.Application.getApplication().renderer;let u=Ge.pop();if(u)u.node.cullingLayer=r,u.node.setWorldTransform(t),u.mesh=l,u.material=n;else{const e=new pc.Entity;e.cullingLayer=r,e.setWorldTransform(t),u=new i.a(e,l,n)}o&&o.applyToMeshInstance(u),window.spector&&window.spector.setMarker("DrawMesh: material="+n.name+" shader="+n.shader.name);const h=s?s.$id+"":"allcameras";c.addProceduralDrawCallToQueue(u,h)},drawMeshNow:function(e,t,n){if(!r)return;const s=r.handle;if(!s)return;const a=e.subMeshes[n];if(!a)return void console.error("Submesh index in intermediate renderer is out of bounds");const o=pc.Application.getApplication().renderer,l=o.device,c=new pc.Entity;c.setWorldTransform(t);const u=new i.a(c,a,s),h=u;l.setVertexBuffer(a.vertexBuffer,0),l.setIndexBuffer(a.indexBuffer[0]),o.setMaterial(l,s),o.pushUniforms(l,h.parameters),o.setDrawCall(l,h),window.spector&&window.spector.setMarker("DrawMeshNow: material="+s.name+" shader="+s.shader.name),o.drawInstance(l,u,a,0,!0)},freeProceduralMeshInstance:function(e){e.parameters={},Ge.push(e)}};class Ve extends s.b{constructor(){super(),this.parametersCount=0}copyFromMeshInstance(e){for(const t in e.parameters)this.setParameter(t,this.cloneParameterData(e.parameters[t].data))}applyToMeshInstance(e){e.parameters={};for(const t in this.parameters)e.setParameter(t,this.cloneParameterData(this.parameters[t].data))}getParameter(e){const t=this.parameters[e];return t?this.cloneAsPlainArray(t.data):null}setParameter(e,t){this.parameters.hasOwnProperty(e)||this.parametersCount++,super.setParameter(e,this.cloneParameterData(t))}clear(){this.parameters={},this.parametersCount=0}cloneParameterData(e){return e instanceof Float32Array||Array.isArray(e)?new Float32Array(e):e}cloneAsPlainArray(e){return e instanceof Float32Array?e.slice():e}get isEmpty(){return 0===this.parametersCount}}var Ne=n(28),ze=n(34);const He="unity_GUIZTestMode";class je{constructor(e){this.id=i.b.id++,this.entity=e.entity,this.parentScreen=e,this.renderers=[],this._depthConsumers=new Set,this.device=y.a.getApplication().graphicsDevice,this._renderer=y.a.getApplication().renderer,this.renderersDirty=!1,this._aabb=new p.b,this.node=e.entity,this.visible=!0,this.cull=!0,this.isCanvas=!0,this.isSortingGroup=!1,this._material=UnityEngine.Canvas.GetDefaultCanvasMaterial().handle,this._material.setParameter(He,c.c.FUNC_ALWAYS+1);const t=this._material.parameters[He];t.scopeId||(t.scopeId=this.device.scope.resolve(He)),this._mesh=null,this._nearestScreen=null,this.scene=y.a.getApplication().scene,this.visibleThisFrame=!0,this.zdist=0,this._shaderDefs=0,this.morphInstance=null,this._lightProbe=null,this.instancingData=null,this.skinInstance=null,this._flipFaces=!1,this.parameters={},this.stencilFront=null,this.stencilBack=null,this.constAttributes=null,this.isIndexBufferEmpty=!1,this.drawCalls=[],this.meshInstances=[]}uiElementsSort(e,t){return Ne.a.uiElementsSort(e.model,t.model)}collectNestedScreensRecursive(){return this.parentScreen.childScreens.reduce(((e,t)=>[...e,t.canvasMeshInstance,...t.canvasMeshInstance.collectNestedScreensRecursive()]),[])}render(e,t,n,i,r){y.d.instance.startSubSection(y.d.RENDER_UI),this.checkDirtyAndUpdateHierarchy(),this.drawCalls.length=0,this.meshInstances.length=0;const a=this.collectNestedScreensRecursive(),o=this.renderers,l=[];for(let e=0;e<o.length;e++){const t=o[e];if(!t.isCanvas&&(0===t._groupAlpha||t.culledByTransparency))continue;!t.isCanvas&&t.popMaterialCount>0&&l.push(t);const n=t.model.meshInstances;for(let e=0;e<n.length;e++){const t=n[e];(t.isCanvas||0!==t._mesh.primitive[0].count)&&t.material&&this.meshInstances.push(t)}}n?f.a.cullUi(n,this.meshInstances,this.drawCalls):this.parentScreen.parentScreen?this.drawCalls=this.meshInstances:this.drawCalls=[...this.meshInstances,...a].sort(Ne.a.sortNestedOverlayCanvases);for(let e=0;e<l.length;e++){const t=l[e],n=this.getLastDrawChild(t.entity,this.drawCalls,0);if(n){const e=n.node._guid;this.scene.activeUiMasks[e]||(this.scene.activeUiMasks[e]=[]),this.scene.activeUiMasks[e].push(t)}}const u=this.parentScreen.screenType!==c.c.SCREEN_TYPE_SCREEN?c.c.FUNC_LESSEQUAL+1:c.c.FUNC_ALWAYS+1,h=this.drawCalls;for(let a=0;a<this.drawCalls.length;a++){const o=this.drawCalls[a];if(o.isCanvas){o.render(e,t,n,i,r);continue}y.d.instance.recordUiElements(),o.material.setParameter(He,u);const l=this.renderer.dynamicBatcher.getBatchGroup(h,a);if(l){this.device.geometryStateManager.unbindVertexArrayObject(),this.renderer.dynamicBatcher.updateBatchGroup(l);const i=o,a=i.mesh.vertexBuffer,u=i.mesh.indexBuffer[0],h=i.mesh.primitive[0];i.mesh.vertexBuffer=l.vertexBuffer,i.mesh.indexBuffer[0]=l.indexBuffer,i.mesh.primitive[0]=l.primitive,i.parameters[ze.a]=new s.a(this.device.scope.resolve(ze.a),l.matrices,0),i._shaderDefs|=c.c.SHADERDEF_BATCHING,this.renderer.renderMeshInstance(e,t,n,i,r),i.mesh.vertexBuffer=a,i.mesh.indexBuffer[0]=u,i.mesh.primitive[0]=h,delete i.parameters[ze.a],i._shaderDefs&=~c.c.SHADERDEF_BATCHING}else this.renderer.renderMeshInstance(e,t,n,o,r);const d=this.scene.activeUiMasks[o.node._guid];if(d){for(let i=0;i<d.length;i++){const s=d[i],a=s._popMaterials,o=s.model.meshInstances[0];if(o)for(let i=0;i<a.length;i++){const s=a[i].handle;this.clearMask(e,t,n,o,r,s)}}this.scene.activeUiMasks[o.node._guid]=null}a+=(l?l.instances.length:1)-1}if(!this.parentScreen.parentScreen)for(const e in this.scene.activeUiMasks)this.scene.activeUiMasks[e]=null;y.d.instance.endSubSection(y.d.RENDER_UI)}getLastDrawChild(e,t,n){let i=null;const r=e.allChildren();for(let e=n+1;e<t.length;e++){const n=t[e],s=n.node;r.indexOf(s)>=0&&(i=n)}return i}clearMask(e,t,n,i,r,s){const a=i.material,o=i.parameters.hasOwnProperty("_ColorMask")?i.parameters._ColorMask.data:null;i.material=s,o&&(i.parameters._ColorMask.data=s.parameters._ColorMask.data),this.renderer.renderMeshInstance(e,t,n,i,r),i.material=a,o&&(i.parameters._ColorMask.data=o)}addRenderer(e){this.renderers.includes(e)||(this.renderers.push(e),this.renderersDirty=!0)}removeRenderer(e){this.renderers.includes(e)&&(this.renderers.splice(this.renderers.indexOf(e),1),this._depthConsumers.has(e)&&this._depthConsumers.delete(e),this.renderersDirty=!0)}tryAddDepthConsumer(e){let t=!1;for(let n=0;n<e.model.materials.length;n++){const i=e.model.materials[n];if(i&&i.shader&&i.shader.readDepth){this._depthConsumers.add(e),t=!0;break}}t||this._depthConsumers.delete(e),this._depthConsumers.size>0?this.scene.addCanvasDepthConsumer(this):this.scene.removeCanvasDepthConsumer(this)}checkDirtyAndUpdateHierarchy(){this.updateModel();for(let e=0;e<this.renderers.length;e++)this.renderers[e].applyColor();if(!this.renderersDirty)return;this.parentScreen.system._syncDrawOrder(),this.parentScreen._updateStencilParameters(),this.renderers.sort(this.uiElementsSort),this._aabb.setToInfinity();const e=this.renderers;for(let t=0;t<e.length;t++){const n=e[t].model.meshInstances;for(let e=0;e<n.length;e++)this._aabb.add(n[e].aabb)}this.renderersDirty=!1}updateModel(){const e=this.renderers;for(let t=0;t<e.length;t++){const n=e[t];n.isCanvas||n.model.update()}}configureLightmap(){throw Error()}hasUVChannel(e){if(!this._mesh)return!1;const t=this._mesh.vertexBuffer.format;switch(e){case c.c.SEMANTIC_TEXCOORD0:return t.hasUv0;case c.c.SEMANTIC_TEXCOORD1:return t.hasUv1;case c.c.SEMANTIC_TEXCOORD2:return t.hasUv2;case c.c.SEMANTIC_TEXCOORD3:return t.hasUv3;default:return!1}}get aabb(){return this.checkDirtyAndUpdateHierarchy(),this._aabb}get mesh(){return this._mesh}get sortingLayerIndex(){return this.parentScreen.sortingLayerIndex}get sortingOrder(){return this.parentScreen.sortingOrder}get drawOrder(){return this.parentScreen.drawOrder}get material(){return this._material}set material(e){this._material=e}get model(){return this.parentScreen}get renderer(){return this._renderer}}var Ze=n(31),qe=n(12);class Ke extends qe.a{constructor(){}onEnable(){return!!super.onEnable()&&(this.updateMesh(),!0)}getMeshInstancesForRender(){return this.synchronizeWithEntity(),this.updateMesh(),this.model.update(),this.model.meshInstances}get meshInstances(){return this.getMeshInstancesForRender()}updateMesh(){this.meshFilter&&!this.meshFilter._destroyed||(this.meshFilter=this.entity.getUnityComponent("meshFilter"));const e=this.meshFilter?this.meshFilter.mesh:null;this.model.mesh!==e&&(this.model.mesh=e)}}class We extends qe.a{constructor(){}onEnable(){return!!super.onEnable()&&(this.code.OnEnable(),!0)}}class Je extends qe.a{constructor(){}}const Qe=new Ee.a({func:c.c.FUNC_LESSEQUAL,ref:1,writeMask:255,readMask:255,zfail:c.c.STENCILOP_KEEP,zpass:c.c.STENCILOP_KEEP,fail:c.c.STENCILOP_KEEP}),Xe=new Ee.a({func:c.c.FUNC_GREATER,ref:1,writeMask:255,readMask:255,zfail:c.c.STENCILOP_KEEP,zpass:c.c.STENCILOP_KEEP,fail:c.c.STENCILOP_KEEP});class Ye extends qe.a{constructor(){super(),this.code=new UnityEngine.SpriteRenderer(this)}onEnable(){return!!super.onEnable()&&(this.updateStencil(),!0)}get meshInstances(){return super.getMeshInstancesForRender()}updateStencil(){this.code.maskInteraction===UnityEngine.SpriteMaskInteraction.None?this.model.stencil=null:this.model.stencil=e?Qe:Xe}}class et extends qe.a{constructor(){}_queuesToSubscribe(){return["onUpdate"]}onEnable(){return!!super.onEnable()&&(this.code.OnEnable(),!0)}onUpdate(e){this.code.Update()}}const tt=new Ee.a({func:c.c.FUNC_ALWAYS,ref:0,writeMask:255,readMask:255,zfail:c.c.STENCILOP_KEEP,zpass:c.c.STENCILOP_INCREMENT,fail:c.c.STENCILOP_KEEP}),nt=new Ee.a({func:c.c.FUNC_ALWAYS,ref:0,writeMask:255,readMask:255,zfail:c.c.STENCILOP_KEEP,zpass:c.c.STENCILOP_DECREMENT,fail:c.c.STENCILOP_KEEP});class it extends qe.a{constructor(){}get isCustomRangeActive(){return this._isCustomRangeActive}set isCustomRangeActive(e){this._isCustomRangeActive!==e&&(this._isCustomRangeActive=e,this._dirty=!0)}get alphaCutoff(){return this._alphaCutoff}set alphaCutoff(e){this._alphaCutoff!==e&&(this._alphaCutoff=e,this.model.setParameter("_Cutoff",this._alphaCutoff))}get frontSortingLayerID(){return this._frontSortingLayerID}set frontSortingLayerID(e){this._isCustomRangeActive&&this._frontSortingLayerID!==e&&(this._frontSortingLayerID=e,this._dirty=!0)}get frontSortingOrder(){return this._frontSortingOrder}set frontSortingOrder(e){this._isCustomRangeActive&&this._frontSortingOrder!==e&&(this._frontSortingOrder=e,this._dirty=!0)}get backSortingLayerID(){return this._backSortingLayerID}set backSortingLayerID(e){this._isCustomRangeActive&&this._backSortingLayerID!==e&&(this._backSortingLayerID=e,this._dirty=!0)}get backSortingOrder(){return this._backSortingOrder}set backSortingOrder(e){this._isCustomRangeActive&&this._backSortingOrder!==e&&(this._backSortingOrder=e,this._dirty=!0)}get sprite(){return this._sprite}set sprite(e){this._sprite!==e&&(this._sprite=e,this.model.setParameter("_MainTex",this._sprite.texture),this.model.mesh=this._sprite.getMesh())}onEnable(){return!!super.onEnable()&&(this.model._stencil=tt,this.model.setParameter("_Cutoff",this.alphaCutoff),!0)}updateMaskRange(){this._dirty&&(this.isCustomRangeActive?(this.model.meshInstances[0].sortingOrder=this.backSortingOrder,this.model.meshInstances[0].sortingLayerIndex=UnityEngine.SortingLayer.GetLayerValueFromID(this.backSortingLayerID),this.model.meshInstances[1].sortingOrder=this.frontSortingOrder,this.model.meshInstances[1].sortingLayerIndex=UnityEngine.SortingLayer.GetLayerValueFromID(this.frontSortingLayerID)):(this.model.meshInstances[0].sortingOrder=Number.MIN_SAFE_INTEGER,this.model.meshInstances[0].sortingLayerIndex=Number.MIN_SAFE_INTEGER,this.model.meshInstances[1].sortingOrder=Number.MAX_SAFE_INTEGER,this.model.meshInstances[1].sortingLayerIndex=Number.MAX_SAFE_INTEGER),this._dirty=!1)}changeStencilToAdditionalDrawCall(){return this.model.update(),this.model.meshInstances[1].stencilFront=nt,this.model.meshInstances[1].stencilBack=nt,this.updateMaskRange(),!0}getMeshInstancesForRender(){return this.model.mesh&&(this.model.mesh.subMeshes.length=2,this.model.mesh.subMeshes[1]=this.model.mesh.subMeshes[0],this.changeStencilToAdditionalDrawCall()),this.code.OnBeforeRender&&this.code.OnBeforeRender(),this.model.update(),this.model.meshInstances}get meshInstances(){return this.getMeshInstancesForRender()}}class rt extends y.j{constructor(e){super(e),this.id="renderer"}}const st={findParentScreen:function(e){let t=e,n=null;for(;t;){if(t.screen){n=t.screen;break}t=t.parent}return n}},at="_MainTex";let ot=0;class lt extends y.k{constructor(){super(),this.id=ot++,this.model=new r.a,this._color=new p.d(1,1,1,1),this._groupAlpha=1,this.code=new UnityEngine.CanvasRenderer(this),this._parentCanvas=null,this._showMaskGraphics=!0,this._absoluteDepth=0,this._hasPopInstruction=!1,this._popMaterialCount=0,this._popMaterials=[],this.mesh=null,this.isCanvas=!1,this._cullTransparentMesh=!1,this.cull=!1,this.culledByTransparency=!1,this["__UnityEngine.CanvasRenderer"]=this.code}get cullTransparentMesh(){return this._cullTransparentMesh}set cullTransparentMesh(e){this._cullTransparentMesh=e}get showMaskGraphics(){return this._showMaskGraphics}set showMaskGraphics(e){this._showMaskGraphics=e,this.model.setParameter("_ColorMask",e?15:0)}get absoluteDepth(){return this._absoluteDepth}set absoluteDepth(e){this._absoluteDepth=e}get hasPopInstruction(){return this._hasPopInstruction}set hasPopInstruction(e){this._hasPopInstruction=e}get popMaterialCount(){return this._popMaterialCount}set popMaterialCount(e){this._popMaterialCount=e}updateParentCanvas(){const e=this.findParentCanvas();this.reparentCanvas(e)}onEnable(){return this.updateParentCanvas(),super.onEnable()}onDisable(){return this.reparentCanvas(null),super.onDisable()}onScreenChanged(e){this.reparentCanvas(e)}onCanvasGroupChanged(){this.setGroupAlpha(UnityEngine.CanvasGroup.ExtractAlpha(this.entity.element._canvasGroups))}onAttached(){const e=this._entity;e.element||e.addComponent("element",{pivot:new p.l(.5,.5),anchor:new p.n(0,0,1,1),sizeDelta:new p.l(0,0),anchoredPosition:new p.l(0,0)});const t=e.element;t.events.on("set:stencillayer",this._onStencilLayerChange,this),t.events.on("set:draworder",this._onDrawOrderChange,this),this.model.element=t,this.model.entity=e}_onStencilLayerChange(e){const t=this.entity.element;this.model.stencil=t._getStencilParameters(),this.model.masksChildren&&this.model.setParameter("UNITY_UI_ALPHACLIP",1)}_onDrawOrderChange(e){const t=this._entity.element,n=t._nearestScreen;this.model.nearestScreen=n,this.model.element=t,this.model.drawOrder=e,n&&(this.model.sortingLayerIndex=n.sortingLayerIndex,this.model.sortingOrder=n.sortingOrder)}setTexture(e){e?this.model.setParameter(at,e):this.model.deleteParameter(at)}getTexture(){return this.model.getParameter(at)}setColor(e){this._color.equals(e)||(this._color.copy(e),this.applyColor())}getColor(){return this._color}setMaterial(e,t){const n=this.model.materials;n[t]=e,this.model.materials=n,this._parentCanvas&&this._parentCanvas.canvasMeshInstance.tryAddDepthConsumer(this)}getMaterial(e){return this.model.materials?this.model.materials[e]:null}setMaterialCount(e){const t=this.model.materials||[];t.length=e,this.model.materials=t}getMaterialCount(){return this.model.materials?this.model.materials.length:0}setMesh(e){this.model.mesh=e,this.applyColor()}getMesh(){return this.model.mesh}findParentCanvas(){return st.findParentScreen(this._entity)}addToParentCanvas(){this._parentCanvas&&!this._entity.isPrefab&&this._parentCanvas.canvasMeshInstance.addRenderer(this)}removeFromParentCanvas(){this._parentCanvas&&this._parentCanvas.canvasMeshInstance.removeRenderer(this)}reparentCanvas(e){if(!this.entity.enabled)return this.removeFromParentCanvas(),void(this._parentCanvas=null);if(e!==this._parentCanvas){this.removeFromParentCanvas();const t=this._parentCanvas?this._parentCanvas["__UnityEngine.Canvas"]:null;this._parentCanvas=e;const n=e?e["__UnityEngine.Canvas"]:null;this.enabled&&this.addToParentCanvas();const i=this.entity.element?this.entity.element["UnityEngine.UI.Graphic"]:null;this.entity.element._nearestScreen=e,i&&(i.m_canvas=n,i.OnCanvasChanged(t,n))}}setGroupAlpha(e){this._groupAlpha=e,this.applyColor()}applyColor(){const e=this.model.meshInstances;for(let t=0;t<e.length;t++)e[t]._shaderDefs|=c.c.SHADERDEF_UI;this.model.setParameter("_GroupAlpha",this._groupAlpha),this.model.setParameter("_CanvasColor",this._color.data),this.model.element&&this.model.element.color&&(this.culledByTransparency=this.cullTransparentMesh&&0===this.model.element.color.a)}setPopMaterial(e,t){this._popMaterials[t]||this._popMaterialCount++,this._popMaterials[t]=e}}class ct extends y.j{constructor(e){super(e),this.id="canvasRenderer"}}class ut extends y.k{constructor(){super(),this.id=0,this._mesh=null,this["__UnityEngine.MeshFilter"]=null}get mesh(){return this._mesh}set mesh(e){this._mesh=e}}class ht extends y.j{constructor(e){super(e),this.id="meshFilter"}}class dt extends y.j{constructor(e){super(e),this.id="reflectionprobe",this.needsProbeUpdate=!1}scheduleProbeUpdate(){this.needsProbeUpdate=!0}onBeforeRender(e){this.needsProbeUpdate&&this.refreshReflectionProbes(),this.needsProbeUpdate=!1,super.onBeforeRender(e)}refreshReflectionProbes(){const e=this.app.systems.renderer._components;for(const t in e){if(!e.hasOwnProperty(t))continue;const n=e[t];n.enabled&&n.code&&n.code.UpdateReflectionProbes()}}}class mt extends y.k{constructor(){super()}onEnable(){return!!super.onEnable()&&(this.code.OnEnable(),!0)}onDisable(){return!!super.onDisable()&&(this.code.OnDisable(),!0)}onTransformChanged(){this.code.OnReflectionProbeChanged()}onBeforeRender(e){this.code.OnBeforeRender()}_queuesToSubscribe(){return["onBeforeRender"]}refreshReflectionProbes(){this.system.scheduleProbeUpdate()}}class gt{constructor(e){this.enabled=!0,this.component=e,this.light=null,this.type="directional",this.color=new p.d(1,1,1),this.intensity=1,this.castShadows=!1,this.range=10,this.outerConeAngle=45,this.shadowType=c.c.SHADOW_PCF3,this.cookie=null,this.cookieScale=null,this.mask=1,this.cullingMask=1,this.affectDynamic=!0,this.affectLightmapped=!1,this.isStatic=!1,this.renderMode=0,this.shadowsMode=_.shadowsMode,this.shadowStrength=_.shadowStrength,this.shadowBias=_.shadowBias,this.shadowNormalBias=_.shadowNormalBias,this.shadowResolution=_.shadowResolution}}class $t extends y.c{constructor(e,t){super(e,t),this.data=new gt(this),this["__UnityEngine.Light"]=null}addLightToScene(){this.system.app.scene.addLight(this.light)}removeLightFromScene(){this.system.app.scene.removeLight(this.light)}onEnable(){this.light.enabled=!0,this.enabled&&this.entity.enabled&&this.addLightToScene()}onDisable(){this.light.enabled=!1,this.removeLightFromScene()}get enabled(){return this.data.enabled}set enabled(e){this.enabled!==e&&(this.data.enabled=e,this.onSetEnabled("enabled",!e,e))}get light(){return this.data.light}set light(e){this.data.light=e}get type(){return this.data.type}set type(e){const t=this.type;e!==t&&(this.data.type=e,this.system.changeType(this,t,e),this.enabled&&this.entity.enabled&&this.onEnable())}get color(){return this.data.color}set color(e){this.data.color=e,this.light.setColor(e)}get intensity(){return this.data.intensity}set intensity(e){this.intensity!==e&&(this.data.intensity=e,this.light.intensity=e)}get castShadows(){return this.data.castShadows}set castShadows(e){this.castShadows!==e&&(this.data.castShadows=e,this.light.castShadows=e)}get range(){return this.data.range}set range(e){this.range!==e&&(this.data.range=e,this.light.attenuationEnd=e)}get outerConeAngle(){return this.data.outerConeAngle}set outerConeAngle(e){this.outerConeAngle!==e&&(this.data.outerConeAngle=e,this.light.outerConeAngle=e)}get shadowType(){return this.data.shadowType}set shadowType(e){this.shadowType!==e&&(this.data.shadowType=e,this.light.shadowType=e)}get shadowsMode(){return this.data.shadowsMode}set shadowsMode(e){this.data.shadowsMode!==e&&(this.data.shadowsMode=e,this.light.shadowsMode=e)}get shadowStrength(){return this.data.shadowStrength}set shadowStrength(e){this.data.shadowStrength!==e&&(this.data.shadowStrength=e,this.light.shadowStrength=e)}get shadowBias(){return this.data.shadowBias}set shadowBias(e){this.shadowBias!==e&&(this.data.shadowBias=e,this.light.shadowBias=e)}get shadowNormalBias(){return this.data.shadowNormalBias}set shadowNormalBias(e){this.data.shadowNormalBias!==e&&(this.data.shadowNormalBias=e,this.light.shadowNormalBias=e)}get shadowResolution(){return this.data.shadowResolution}set shadowResolution(e){this.data.shadowResolution!==e&&(this.data.shadowResolution=e,this.light.shadowResolution=e)}get cookieScale(){return this.data.cookieScale}set cookieScale(e){this.data.cookieScale=e,this.light.cookieScale=e}get mask(){return this.data.mask}set mask(e){this.mask!==e&&(this.data.mask=e,this.light.mask=e)}get cullingMask(){return this.data.cullingMask}set cullingMask(e){this.cullingMask!==e&&(this.data.cullingMask=e,this.light.cullingMask=e)}get isStatic(){return this.data.isStatic}set isStatic(e){this.isStatic!==e&&(this.data.isStatic=e,this.light.isStatic=e)}get renderMode(){return this.data.renderMode}set renderMode(e){this.renderMode!==e&&(this.data.renderMode=e,this.light.renderMode=e)}get cookie(){return this.data.cookie}set cookie(e){this.cookie!==e&&(e&&(e.minFilter=c.c.FILTER_LINEAR),this.data.cookie=e,this.light.cookie=e)}get affectDynamic(){return this.data.affectDynamic}set affectDynamic(e){this.affectDynamic!==e&&(this.data.affectDynamic=e,e?this.light.mask|=c.c.MASK_DYNAMIC:this.light.mask&=~c.c.MASK_DYNAMIC,this.light.mask=this.light._mask)}get affectLightmapped(){return this.data.affectLightmapped}set affectLightmapped(e){this.affectLightmapped!==e&&(this.data.affectLightmapped=e,e?this.light.mask|=c.c.MASK_BAKED:this.light.mask&=~c.c.MASK_BAKED,this.light.mask=this.light._mask)}}const pt={directional:c.c.LIGHTTYPE_DIRECTIONAL,point:c.c.LIGHTTYPE_POINT,spot:c.c.LIGHTTYPE_SPOT};class yt extends y.b{constructor(e){super(e),this.id="light",this.ComponentType=$t}initializeComponentData(e,t){const n=new I;n.type=pt[t.type],n._node=e.entity,n.renderMode=t.renderMode,n.range=t.range,n.affectLightmapped=t.affectLightmapped,e.data.light=n,void 0!==t.enabled&&(e.enabled=t.enabled),void 0!==t.light&&(e.light=t.light),t.type&&(e.type=t.type),void 0!==t.color&&(e.color=t.color),void 0!==t.intensity&&(e.intensity=t.intensity),void 0!==t.castShadows&&(e.castShadows=t.castShadows),void 0!==t.range&&(e.range=t.range),void 0!==t.outerConeAngle&&(e.outerConeAngle=t.outerConeAngle),void 0!==t.shadowType&&(e.shadowType=t.shadowType),void 0!==t.cookie&&(e.cookie=t.cookie),void 0!==t.cookieScale&&(e.cookieScale=t.cookieScale),void 0!==t.mask&&(e.mask=t.mask),void 0!==t.cullingMask&&(e.cullingMask=t.cullingMask),void 0!==t.affectDynamic&&(e.affectDynamic=t.affectDynamic),void 0!==t.affectLightmapped&&(e.affectLightmapped=t.affectLightmapped),void 0!==t.isStatic&&(e.isStatic=t.isStatic),void 0!==t.renderMode&&(e.renderMode=t.renderMode),void 0!==t.shadowsMode&&(e.shadowsMode=t.shadowsMode),void 0!==t.shadowStrength&&(e.shadowStrength=t.shadowStrength),void 0!==t.shadowBias&&(e.shadowBias=t.shadowBias),void 0!==t.shadowNormalBias&&(e.shadowNormalBias=t.shadowNormalBias),void 0!==t.shadowResolution&&(e.shadowResolution=t.shadowResolution),super.initializeComponentData(e,t)}removeComponent(e){e.light.data.light.destroy(),y.b.prototype.removeComponent.call(this,e)}changeType(e,t,n){t!==n&&(e.light.type=pt[n])}}class ft{constructor(e,t,n,i,r){this.font=e,this.fontSize=t,this.fontScale=n,this.color=i.clone(),this.fontStyle=r}init(e,t,n,i,r){this.font=e,this.fontSize=t,this.fontScale=n,this.color.copy(i),this.fontStyle=r}copy(e){this.font=e.font,this.fontSize=e.fontSize,this.fontScale=e.fontScale,this.color.copy(e.color),this.fontStyle=e.fontStyle}}class _t{constructor(e,t,n){this.text=e,this.width=t,this.fontScale=n}}class St{constructor(e=new p.m,t=0){this.cursorPos=e,this.charWidth=t}}class bt{constructor(e=0,t=0,n=0,i=0){this.startCharIdx=e,this.height=t,this.topY=n,this.leading=i}}class Ct{constructor(e,t){this.type=e&&e.type||"msdf",this.em=1,this.intensity=0,this._data=null,this.data=e,this._name=t.name||"",this._ascent=e.info.ascent||0,this._lineHeight=t.originalLineHeight||0,this._fontSize=e.info.fontSize||null,this._originalFontSize=t.originalFontSize||64,this._characterInfo=t.characterInfo||null,this._textures=t.texture||null}get name(){return this._name}get ascent(){return this._ascent}get lineHeight(){return this._lineHeight}get fontSize(){return this._fontSize}get characterInfo(){return this._characterInfo}get texture(){return this._textures}get data(){return this._data}set data(e){if(this._data=e,e)for(const e in this._data.chars)this._data.chars.hasOwnProperty(e)&&(this._data.chars[e].map=0)}}Ct.fonts={};const Et=/<.[^>]*>/gm,Tt={size:"fontSize",color:"color",fontStyle:"fontStyle"},vt={br:!0,quad:!0},It={aqua:"#00ffffff",black:"#000000ff",blue:"#0000ffff",brown:"#a52a2aff",cyan:"#00ffffff",fuchsia:"#ff00ffff",green:"#008000ff",grey:"#808080ff",lightblue:"#add8e6ff",lime:"#00ff00ff",magenta:"#ff00ffff",maroon:"#800000ff",navy:"#000080ff",olive:"#808000ff",orange:"#ffa500ff",purple:"#800080ff",red:"#ff0000ff",silver:"#c0c0c0ff",teal:"#008080ff",white:"#ffffffff",yellow:"#ffff00ff"};class xt{constructor(e,t){this.startIndex=e,this.foundTag=t,this.content="",this.isClosing=!1;const n=(t=t.substr(1,t.length-2)).split("=");let i=n[0];i=i.toLowerCase(),i.startsWith("/")&&(i=i.substr(1),this.isClosing=!0),this.tag=i;let r=n[1]?n[1]:null;if(r&&r.startsWith('"')&&r.endsWith('"')&&(r=r.substr(1,r.length-2)),r&&(r=r.toLowerCase()),this.value=r,this.colorValue=new p.d,this.intValue=0,!this.isClosing&&!this.isClosing)switch(this.tag){case"color":this.colorValue=this.parseColor(this.value,this.colorValue);break;case"size":this.intValue=Number.parseInt(this.value,10)}}apply(e,t,n){const i=Tt[this.tag];if(this.isClosing)switch(this.tag){case"color":e.color.copy(t.color);break;case"size":e.fontSize=t.fontSize,e.fontScale=t.fontScale;break;default:e[i]=t[i]}else switch(this.tag){case"color":e.color.copy(this.colorValue);break;case"size":e.fontSize=this.intValue,e.fontScale=e.fontSize/n;break;default:e[i]=this.intValue}}parseColor(e,t=new p.d){return e.startsWith("#")||(e=It[e]),t.fromString(e),t}}xt.tagRegex=Et,xt.supportedSingleTags=vt,xt.unityColorsMap=It,xt.removeTags=e=>e.replace(Et,""),xt.extractTags=(e,t)=>{const n=t._tags;n.length=0;let i=0,r=null;for(;r=Et.exec(e);){const e=r[0],t=new xt(r.index-i,e);i+=e.length,n.push(t)}const s=xt.removeTags(e),a=xt.validateTags(n,s);return t.areTagsValid=a,a?s:e},xt.validateTags=(e,t)=>{if(0===e.length)return!0;const n=[];for(let i=0;i<e.length;i++){const r=e[i];if(!vt[r.tag])if(r.isClosing){const e=n.pop();if(e.tag!==r.tag)return!1;r.content=t.substr(e.startIndex,r.startIndex-e.startIndex),e.content=t.substr(e.startIndex,r.startIndex-e.startIndex)}else n.push(r)}return 0===n.length};let At=null;const wt=[{semantic:c.c.SEMANTIC_POSITION,components:3,type:c.c.TYPE_FLOAT32},{semantic:c.c.SEMANTIC_TEXCOORD0,components:2,type:c.c.TYPE_FLOAT32},{semantic:c.c.SEMANTIC_TEXCOORD1,components:2,type:c.c.TYPE_FLOAT32},{semantic:c.c.SEMANTIC_COLOR,components:4,type:c.c.TYPE_FLOAT32}],Dt=new p.m,Mt=new p.m,Pt=new p.n;class Ut{constructor(e){this._offset=new p.m,this._bakedOffset=new p.m,this._bounds=new p.l,this._metrics=new p.n,this.canvasRenderer=e,this._vertexCount=0,this._bufferSize=0,this._buffer=null,this._resizeBuffers(16),this._fontScale=0,this._bestFit=!1,this._font=null,this._maxFontSize=0,this._minFontSize=0,this._minFontSizeOriginal=0,this._maxFontSizeOriginal=0,this._horizontalWrap=!1,this._verticalOverflow=!1,this._lineHeight=0,this._lineSpacing=0,this._fontSize=0,this._textHeight=0,this._align=c.c.TEXT_ALIGN_CENTER,this._color=new p.d(1,1,1,1),this._verticalAlign="top",this._text="",this._dirtyVertices=!1,this._dirtyOffset=!1,this._lineCount=0,this._characters=[],this._lines=[],this._tags=[],this.areTagsValid=!0,this._defaultSettings=new ft(null,0,0,new p.d,0),this._currentSettings=new ft(null,0,0,new p.d,0),this._measureSettings=new ft(null,0,0,new p.d,0),this._recursiveCounter=0,this._measures=null,this._recursiveLimit=10,this.graphicsDevice=y.a.getApplication().graphicsDevice}_reset(){this._bufferSize=0,this._buffer=new Float32Array(0)}_textIndexBuffer(){if(At)return At;At=new L.a(this.graphicsDevice,c.c.INDEXFORMAT_UINT16,32768);const e=new Uint16Array(At.lock());let t=0;for(let n=0;n<32762;n+=6)e[n+0]=t+3,e[n+1]=t+0,e[n+2]=t+1,e[n+3]=t+1,e[n+4]=t+3,e[n+5]=t+2,t+=4;return At.unlock(),At.preventDestroy=!0,At}populate(e,t){t.font?(this._updateSettings(t),this._updateText(e),t._dirtyOffset=this._dirtyOffset,t._dirtyVertices=this._dirtyVertices,this._dirtyVertices&&this._fillMesh(),this._dirtyOffset&&this._updateAligns()):this._vertexCount=0}updateMesh(e,t,n=p.m.ZERO){const i=this._vertexCount,r=e.vertexBuffer;for(let e=0;e<i;e++)this._buffer[11*e+0]+=n.x-this._bakedOffset.x,this._buffer[11*e+1]+=n.y-this._bakedOffset.y,this._buffer[11*e+2]+=n.z-this._bakedOffset.z;for(let e=0;e<this._lines.length;e++)this._lines[e].topY+=n.y-this._bakedOffset.y;for(let e=0;e<this._characters.length;e++)this._characters[e].cursorPos.sub(this._bakedOffset).add(n);r.numVertices=i,r.storage=this._buffer.buffer,r.unlock(),e.primitive[0].type=c.c.PRIMITIVE_TRIANGLES,e.primitive[0].base=0,e.primitive[0].count=i/4*6,e.primitive[0].indexed=!0,e.indexBuffer[0]=this._textIndexBuffer(),this._bakedOffset.copy(n)}_updateAligns(e){e=e||this._measureText(this._text,void 0,!1);const t=this._font.data,n=this._lineHeight*this._fontScale,i=n+n/this._font.lineHeight*.5,r=Math.round(this._bounds.y/i),s=(this._verticalOverflow?e.length:Math.min(e.length,r>0?r:1))*i;let a=this._fontSize/t.info.fontSize;this._bestFit&&(a=this._minFontSize/t.info.fontSize);let o=-1;for(let t=0;t<e.length;t++)o=Math.max(e[t].width,o);this._metrics.set(Math.ceil(o/this._fontScale*a),Math.ceil(s/this._fontScale*a),Math.ceil(this._metrics.z),Math.ceil(this._metrics.w)),0===this._fontScale&&(this._metrics.x=0,this._metrics.y=0);const l=this._bounds.y;let u=0;switch(this._verticalAlign){case c.c.TEXT_VERTICAL_ALIGN_BOTTOM:u=l-s;break;case c.c.TEXT_VERTICAL_ALIGN_MIDDLE:u=.5*(l-s);break;case c.c.TEXT_VERTICAL_ALIGN_TOP:u=0}const h=l-u-i;this._offset.set(0,h,0),this._dirtyOffset=!1}applyTags(e,t,n,i){if(this.areTagsValid)for(let r=0;r<this._tags.length;r++){const s=this._tags[r];e===s.startIndex&&s.apply(t,n,i)}}_fillMesh(){this._characters.length=0,this._lines.length=0;const e=this._font.data;let t=this._text;t=t.replace(/\r\n/gm,"\n").replace(/\n\r/gm,"\n"),t=t.replace(/\t/gm," "),t=xt.extractTags(t,this),this._bakedOffset.set(0,0,0);const n=this._font.fontSize,i=this._fontSize,r=this._font._originalFontSize;this._lineHeight=this._lineSpacing*this._font.lineHeight*(n/r),this._fontScale=i/n,0===this._recursiveCounter&&(this._measures=this._measureText(t,1e15,!1));let s=-1,a=0;for(let e=0;e<this._measures.length;e++)s=Math.max(s,this._measures[e].width),a+=this._lineHeight*this._measures[e].fontScale;let o=Math.min(this._bounds.x/s,this._bounds.y/a),l=Math.min(this._maxFontSize,n*o);this._metrics.set(0,0,s,a);const c=this._bestFit&&!this._verticalOverflow;if(c&&this._bounds.x>0){this._metrics.set(0,0,s/this._fontSize*this._maxFontSize,a/this._fontSize*this._maxFontSize);const n=t.split("\n").length;if(0===this._recursiveCounter){o=this._bounds.y/(n*this._lineHeight),l=e.info.fontSize*o;const t=Math.max(Math.min(this._maxFontSize,l),this._minFontSize);this._fontScale=t/e.info.fontSize}}if(this._horizontalWrap){if(this._recursiveCounter>=this._recursiveLimit)return;this._measures=this._measureText(t,this._bounds.x,!0),this.measureAlignment(),this._recursiveCounter+=1,c&&this._maxFontSize-this._minFontSize>.051&&this._fontSize<this._maxFontSize&&(this._recursiveCounter-1==0?this._fontSize=this._minFontSize:this._minFontSize=this._fontSize,this._fontSize+=Math.max((this._maxFontSize-this._fontSize)/2,.05),this._fontSize=Math.floor(20*Math.min(this._fontSize,this._maxFontSize)+.5)/20,this._fillMesh())}else this._measureText(t,1e15,!0),this.measureAlignment()}measureAlignment(){let e=0,t=0,n=0;this._defaultSettings.init(this._font,this._fontSize,this._fontScale,this._color,0),this._currentSettings.init(this._font,this._fontSize,this._fontScale,this._color,0);const i=this._font.data;let r=0,s=0,a=0;if(null===this._measures)return;Ut.missingCharactersLastCall="";let o=0;for(let l=0;l<this._measures.length;l++){const u=this._measures[l];switch(r=s,u.width>o&&(o=u.width),this._align){case c.c.TEXT_ALIGN_LEFT:e=0;break;case c.c.TEXT_ALIGN_CENTER:e=.5*(this._bounds.x-u.width);break;case c.c.TEXT_ALIGN_RIGHT:e=this._bounds.x-u.width}const h=this._lineHeight*this._currentSettings.fontScale,d=h/this._font.lineHeight*.5;let m=-(t-h);l>0&&!this._bestFit&&(m-=d);let g=0!==this._bounds.y?this._bounds.y:0;m===h&&0!==g&&1===this._measures.length&&(g+=1);const $=m>g,y=o>this._bounds.x;if(!this._verticalOverflow&&0!==this._bounds.y&&($||this._bestFit&&y)){if(this._bestFit&&this._fontSize>this._minFontSizeOriginal&&(this._recursiveCounter>0||this._fontSize===this._maxFontSize)){if(this._maxFontSize=this._fontSize,this._fontSize-=Math.max((this._fontSize-this._minFontSize)/2,.05),this._fontSize=Math.floor(20*Math.max(this._fontSize,this._minFontSize)+.5)/20,this._recursiveCounter>=this._recursiveLimit)return;return void this._fillMesh()}0===l&&UnityEngine.Debug.LogWarning$1("[Rendering] Text will be hidden, as there are not enough space even for 1 line!\nSet BestFit or enable vertical overflow");continue}const f=h+d;t-=f-(this._lineHeight*this._measures[Math.max(l-1,0)].fontScale+d);for(let r=0;r<u.text.length;r++){this.applyTags(a,this._currentSettings,this._defaultSettings,i.info.fontSize);const o=u.text.charCodeAt(r);let l=0,c=0,h=0;const d=i.chars[o];if(!d){Ut.missingCharactersLastCall+=String.fromCharCode(o);continue}l=d.xoffset*this._currentSettings.fontScale,c=d.yoffset*this._currentSettings.fontScale,h=d.xadvance*this._currentSettings.fontScale;const m=d.width*this._currentSettings.fontScale,g=d.height*this._currentSettings.fontScale,$=t+f,y=f;Dt.set(e+l,$-c-g,0),Mt.set(e+l+m,$-c,0),Pt.set(0,1-(c+g)/y,1,1-c/y),this.addCharToBuffer(n,Dt,Mt,d,Pt,this._currentSettings.color),this._characters.push(new St(new p.m(e+l,$-c-g,0).add(this._bakedOffset),m)),e+=h,n++,s++,a++}this._lines.push(new bt(r,f,t+this._bakedOffset.y+f,0)),t-=f,this.applyTags(a,this._currentSettings,this._defaultSettings,i.info.fontSize),a++}Ut.missingCharactersLastCall.length>0&&console.warn("CanvasRenderer "+this.canvasRenderer.entity.name+" is missing characters to render: "+Ut.missingCharactersLastCall+". Check if they are supported by Font "+this._font.name+" or included in Fonts Settings."),this._vertexCount=4*n,this._dirtyVertices=!1,this._updateAligns(this._measures),this._lineCount=this._measures.length}addCharToBuffer(e,t,n,i,r,s){const a=4*e,o=11*(a+0),l=11*(a+1),c=11*(a+2),u=11*(a+3);this._buffer[o]=t.x,this._buffer[o+1]=t.y,this._buffer[o+2]=t.z,this._buffer[o+3]=i.uvBottomLeft[0],this._buffer[o+4]=i.uvBottomLeft[1],this._buffer[o+5]=r.x,this._buffer[o+6]=r.y,this._buffer[o+7]=s.r,this._buffer[o+8]=s.g,this._buffer[o+9]=s.b,this._buffer[o+10]=s.a,this._buffer[l]=t.x,this._buffer[l+1]=n.y,this._buffer[l+2]=t.z,this._buffer[l+3]=i.uvTopLeft[0],this._buffer[l+4]=i.uvTopLeft[1],this._buffer[l+5]=r.x,this._buffer[l+6]=r.w,this._buffer[l+7]=s.r,this._buffer[l+8]=s.g,this._buffer[l+9]=s.b,this._buffer[l+10]=s.a,this._buffer[c]=n.x,this._buffer[c+1]=n.y,this._buffer[c+2]=t.z,this._buffer[c+3]=i.uvTopRight[0],this._buffer[c+4]=i.uvTopRight[1],this._buffer[c+5]=r.z,this._buffer[c+6]=r.w,this._buffer[c+7]=s.r,this._buffer[c+8]=s.g,this._buffer[c+9]=s.b,this._buffer[c+10]=s.a,this._buffer[u]=n.x,this._buffer[u+1]=t.y,this._buffer[u+2]=t.z,this._buffer[u+3]=i.uvBottomRight[0],this._buffer[u+4]=i.uvBottomRight[1],this._buffer[u+5]=r.z,this._buffer[u+6]=r.y,this._buffer[u+7]=s.r,this._buffer[u+8]=s.g,this._buffer[u+9]=s.b,this._buffer[u+10]=s.a}measureText(e,t,n){if(e=e||"",this._updateSettings(n),!this._font)return p.l.ZERO;const i=this._font.data;this._fontScale=this._fontSize/i.info.fontSize,e=xt.removeTags(e);const r=this._measureText(e,t,!1);let s=-1;for(let e=0;e<r.length;e++)s=Math.max(s,r[e].width);const a=r.length*i.info.lineHeight*this._fontScale;return new p.l(s,a)}_measureText(e,t,n){const i=this._font.data,r=[],s=e.replace("\n\r","\n").replace("\r\n","\n").split(/\n/);let a="";const o=i.chars[32];let l=o?o.xadvance*this._fontScale:0;this._defaultSettings.init(this._font,this._fontSize,this._fontScale,this._color,0),this._currentSettings.init(this._font,this._fontSize,this._fontScale,this._color,0),this._measureSettings.init(this._font,this._fontSize,this._fontScale,this._color,0);let c=0,u=0;const h={maxFontScale:0};this._measureSettings.copy(this._currentSettings);for(let e=0;e<s.length;e++){let d=s[e].split(" ");this._measureSettings.copy(this._currentSettings),d=this._checkBigWords(d,i,this._fontScale,t,c,this._measureSettings,this._defaultSettings,i.info.fontSize,n,this._bestFit);let m=0;for(let e=0;e<d.length;e++){const n=d[e],s=this._calculateWidth(n,i,this._fontScale,c,this._currentSettings,this._defaultSettings,i.info.fontSize,h);m>0&&m+s>t&&(l=o?o.xadvance*this._currentSettings.fontScale:0,a=a.substring(0,a.length-1),m-=l,r.push(new _t(a,m,u)),u=0,a="",m=0,c++),u=Math.max(u,h.maxFontScale),c+=n.length,a+=n+" ",l=o?o.xadvance*this._currentSettings.fontScale:0,m+=s+l,this.applyTags(c,this._currentSettings,this._defaultSettings,i.info.fontSize),c++}a=a.substring(0,a.length-1),m-=l,r.push(new _t(a,m,u)),u=0,a="",m=0}return r}getMeasuredText(e){return e.map((e=>e.text)).join("\n")}_calculateWidth(e,t,n,i,r,s,a,o){let l=0;for(let n=0;n<e.length;n++){this.applyTags(i,r,s,a),o&&(o.maxFontScale=Math.max(o.maxFontScale,r.fontScale));const c=e.charCodeAt(n),u=t.chars[c];u&&(l+=u.xadvance*r.fontScale),i++}return 0===e.length&&o&&(o.maxFontScale=n),l}_splitWord(e,t,n,i){const r=[];let s=0,a=0;for(;a<e.length;){const o=e.charCodeAt(a),l=t.chars[o],c=(l?l.xadvance:0)*n;if(l){if(s>0&&s+c>=i){const t=e.substring(0,a);e=e.substring(a),s=c,a=1,r.push(t);continue}s+=c}a++}return r.push(e),r}_checkBigWords(e,t,n,i,r,s,a,o,l,c){const u=[];for(let h=0;h<e.length;h++){const d=e[h],m=this._calculateWidth(d,t,n,r,s,a,o);if(!c&&m>i){const e=this._splitWord(d,t,n,i);for(let t=0;t<e.length;t++)u.push(e[t]),r+=e[t].length,l&&t!==e.length-1&&this.applyTagsOffsets(r,1)}else u.push(d)}return u}applyTagsOffsets(e,t){for(let n=0;n<this._tags.length;n++){const i=this._tags[n];i.startIndex<e||(i.startIndex+=t)}}_updateText(e){this._text!==e&&(this._dirtyVertices=!0,this._dirtyOffset=!0),this._text=e,this._resizeBuffers(e.length)}_updateSettings(e){this._verticalAlign!==e.verticalAlign&&(this._dirtyOffset=!0),this._fontSize===e.fontSize&&this._bestFit===e.bestFit&&this._font===e.font&&this._maxFontSize===e.maxFontSize&&this._minFontSize===e.minFontSize&&this._horizontalWrap===e.horizontalWrap&&this._verticalOverflow===e.verticalOverflow&&this._lineSpacing===e.lineSpacing&&this._lineHeight===e.lineHeight&&this._align===e.align&&this._color.equals(e.color)||(this._dirtyVertices=!0,this._dirtyOffset=!0),this._bounds&&this._bounds.x===e.bounds.x&&this._bounds.y===e.bounds.y||(this._dirtyOffset=!0,(this._horizontalWrap||this._bestFit||this._align!==c.c.TEXT_ALIGN_LEFT)&&(this._dirtyVertices=!0)),this._verticalAlign=e.verticalAlign,this._fontSize=e.fontSize,this._bestFit=e.bestFit,this._font=e.font,this._align=e.align,this._maxFontSize=e.maxFontSize,this._minFontSize=e.minFontSize,this._minFontSizeOriginal=e.minFontSize,this._maxFontSizeOriginal=e.maxFontSize,this._horizontalWrap=e.horizontalWrap,this._verticalOverflow=void 0!==e.verticalOverflow?e.verticalOverflow:this._verticalOverflow,this._recursiveCounter=0,this._measures=null,this._recursiveLimit=10,this._bounds.copy(e.bounds),this._lineSpacing=void 0!==e.lineSpacing?e.lineSpacing:this._lineSpacing,this._lineHeight=e.lineHeight,e.color&&this._color.copy(e.color)}_resizeBuffers(e){this._bufferSize=e,this._buffer=new Float32Array(44*e)}populateWithErrors(e,t,n){t.bestFit=t.resizeTextForBestFit,t.font=t.font.handle,t.maxFontSize=t.resizeTextMaxSize,t.minFontSize=t.resizeTextMinSize,t.lineHeight=t.lineSpacing,t.horizontalWrap=!(0===t.horizontalOverflow),t.bounds=t.generationExtents,t.verticalAlign="top",t.align=c.c.TEXT_ALIGN_LEFT,t._bestFit=t.resizeTextForBestFit,t._fontSize=t.fontSize,t._font=t.font,t._maxFontSize=t.resizeTextMaxSize,t._minFontSize=t.resizeTextMinSize,t._lineHeight=t.lineSpacing,t._verticalOverflow=t.verticalOverflow,t._horizontalWrap=!(0===t.horizontalOverflow),t._bounds=t.generationExtents,t._verticalAlign="top",t._align=c.c.TEXT_ALIGN_LEFT,this.populate(e,t)}get offset(){return this._offset}get vertexCount(){return this._vertexCount}get lineCount(){return this._lineCount}get characterCount(){return this._characters.length}get lines(){return this._lines}get characters(){return this._characters}}Ut.createEmptyMesh=function(){const e=y.a.getApplication().graphicsDevice,t=new O.a(e,wt),n=new A.a(e,t,0),r=new i.b(!0);return r.vertexBuffer=n,r.indexBuffer=[new L.a(e,c.c.INDEXFORMAT_UINT16,0)],r.primitive[0].type=c.c.PRIMITIVE_TRIANGLES,r.primitive[0].base=0,r.primitive[0].count=0,r.primitive[0].indexed=!0,r},Ut.fontRatio=3.75,Ut.missingCharactersLastCall="";class Bt extends u.a{constructor(e,t={}){super(e,t),this._videoWidth=0,this._videoHeight=0,this._frameCount=0,this._frameRate=24,this._videoWidth=void 0!==t.width?t.width:this._videoWidth,this._videoHeight=void 0!==t.height?t.height:this._videoHeight,this._frameRate=void 0!==t.frameRate?t.frameRate:this._frameRate,this._frameCount=void 0!==t.frameCount?t.frameCount:this._frameCount}get frameRate(){return this._frameRate}get frameCount(){return this._frameCount}get videoWidth(){return this._videoWidth}get videoHeight(){return this._videoHeight}}class Ot extends y.k{constructor(){}configureForEntity(e){this._entity=e}onEnable(){return!!super.onEnable()&&(this.code.OnEnable(),!0)}onDisable(){return!!super.onDisable()&&(this.code.OnDisable&&this.code.OnDisable(),!0)}onDestroy(){return!!super.onDestroy()&&(this.code.OnDestroy&&this.code.OnDestroy(),!0)}}class Lt extends y.j{constructor(e){super(e),this.id="videoPlayer"}}let Rt=null,Ft=null,Gt=null,kt=0;const Vt=new p.d,Nt=16,zt=[0,1,2,0,2,3,0,3,4,0,4,5,0,5,6],Ht=[0,1,5,5,4,0,1,2,6,6,5,1,2,3,7,7,6,2,4,5,9,9,8,4,5,6,10,10,9,5,6,7,11,11,10,6,8,9,13,13,12,8,9,10,14,14,13,9,10,11,15,15,14,10],jt=[0,1,5,5,4,0,1,2,6,6,5,1,2,3,7,7,6,2,4,5,9,9,8,4,6,7,11,11,10,6,8,9,13,13,12,8,9,10,14,14,13,9,10,11,15,15,14,10],Zt=[0,0,0,0];class qt{constructor(e){if(this._element=e,this._entity=e.entity,this._system=e.system,this._texture=null,this._masksChildren=!1,this._alphaTest=.01,this._ignoreMask=!1,this._showMaskGraphics=!0,this._enabled=!0,this._rect=new p.n(0,0,1,1),this._border=new p.n(0,0,0,0),this._color=new p.d(1,1,1,1),this._pivotPoint=new p.m,this._buffer=new Float32Array(0),this._fillEdges=new p.n(0,0,1,1),this._material=UnityEngine.Canvas.DefaultCanvasMaterial.handle,this._canvasRenderer=this._entity._unityComponents.canvasRenderer[0],!this._canvasRenderer){const e=new lt;this._entity.addUnityComponentFromDeserialization("canvasRenderer",e),this._canvasRenderer=this._entity._unityComponents.canvasRenderer[0]}this._mesh=this._createMesh(),this._model=this._canvasRenderer.model,this._model.setParameter("_TextureSampleAdd",Zt),this._canvasRenderer.setMesh(this._mesh),this._canvasRenderer.setMaterial(this._material,0),this._fillCenter=!0,this._fillAmount=0,this._pixelsPerUnitMultiplier=1,this._fillMethod=0,this._fillOrigin=0,this._preserveAspect=!1,this._width=0,this._height=0,this._sprite=null,this._spriteType=0,this._element.events.on("resize",this._onParentResize,this),this.preventUpdateMesh=!1}destroy(){this._canvasRenderer.setMesh(null),this._element.events.off("resize",this._onParentResize),this._mesh&&(this._mesh.destroy(),this._mesh=null)}_onParentResize(){if(this._mesh){if(this._pivotPoint.equals(this._element._pivotPoint)&&this._width===this._element.width&&this._height===this._element.height)return;this._updateMesh(),this._width=this._element.width,this._height=this._element.height,this._pivotPoint.copy(this._element._pivotPoint)}}setVerticesDirty(){this._mesh&&this._updateMesh()}_updateMaterial(){const e=this._material||UnityEngine.Canvas.DefaultCanvasMaterial.handle;this._canvasRenderer.setMaterial(e,0)}_imageIndexBuffer(){return Rt||(Rt=new L.a(this._system.app.graphicsDevice,c.c.INDEXFORMAT_UINT16,Ht.length),new Uint16Array(Rt.lock()).set(Ht),Rt.unlock(),Rt.preventDestroy=!0,Rt)}_emptyCenterImageIndexBuffer(){return Ft||(Ft=new L.a(this._system.app.graphicsDevice,c.c.INDEXFORMAT_UINT16,jt.length),new Uint16Array(Ft.lock()).set(jt),Ft.unlock(),Ft.preventDestroy=!0,Ft)}_imageRadialIndexBuffer(){return Gt||(Gt=new L.a(this._system.app.graphicsDevice,c.c.INDEXFORMAT_UINT16,zt.length),new Uint16Array(Gt.lock()).set(zt),Gt.unlock(),Gt.preventDestroy=!0,Gt)}_createMesh(){if(this._entity.isPrefab)return null;const e=new O.a(this._system.app.graphicsDevice,[{semantic:c.c.SEMANTIC_POSITION,components:3,type:c.c.TYPE_FLOAT32},{semantic:c.c.SEMANTIC_TEXCOORD0,components:2,type:c.c.TYPE_FLOAT32},{semantic:c.c.SEMANTIC_COLOR,components:4,type:c.c.TYPE_FLOAT32}]);kt=9,this._fillEdges=new p.n(0,0,1,1),this._buffer=new Float32Array(Nt*kt);const t=new A.a(this._system.app.graphicsDevice,e,Nt,c.c.BUFFER_STATIC,this._buffer.buffer),n=new i.b(!0);return n.vertexBuffer=t,n.indexBuffer[0]=this._imageIndexBuffer(),n.primitive[0].type=c.c.PRIMITIVE_TRIANGLES,n.primitive[0].base=0,n.primitive[0].count=Ht.length,n.primitive[0].indexed=!0,n.subMeshes=[n],n}_updateMesh(){this.preventUpdateMesh||(this._texture||(this._spriteType=c.c.SPRITE_TYPE_SIMPLE),this._mesh?(this._spriteType===c.c.SPRITE_TYPE_FILLED&&this._fillMethod===c.c.FILL_METHOD_RADIAL360?(this._updateMeshRadial(),this._mesh.indexBuffer[0]=this._imageRadialIndexBuffer(),this._mesh.primitive[0].count=zt.length):(this._updateMeshSquare(),this._spriteType!==c.c.SPRITE_TYPE_TILED&&this._spriteType!==c.c.SPRITE_TYPE_SLICED||this._fillCenter?(this._mesh.indexBuffer[0]=this._imageIndexBuffer(),this._mesh.primitive[0].count=Ht.length):(this._mesh.indexBuffer[0]=this._emptyCenterImageIndexBuffer(),this._mesh.primitive[0].count=jt.length)),this._canvasRenderer.setMesh(this._mesh)):this._canvasRenderer.setMesh(null))}_updateMeshSquare(){const e=this._element.width||0,t=this._element.height||0,n=new p.n(0,0,0,0),i=new p.l(0,0);this._calculatePaddings(e,t,n,i),this._spriteType===c.c.SPRITE_TYPE_FILLED?(this._fillMethod===c.c.FILL_METHOD_HORIZONTAL&&this._fillEdges.set(this._fillOrigin===c.c.FILL_ORIGIN_BOTTOM_LEFT?0:1-this._fillAmount,0,this._fillOrigin===c.c.FILL_ORIGIN_BOTTOM_LEFT?this._fillAmount:1,1),this._fillMethod===c.c.FILL_METHOD_VERTICAL&&this._fillEdges.set(0,this._fillOrigin===c.c.FILL_ORIGIN_BOTTOM_LEFT?0:1-this._fillAmount,1,this._fillOrigin===c.c.FILL_ORIGIN_BOTTOM_LEFT?this._fillAmount:1)):this._fillEdges.set(0,0,1,1);let r=this._spriteType===c.c.SPRITE_TYPE_SLICED||this._spriteType===c.c.SPRITE_TYPE_TILED?1:0;this._sprite&&this._element.screen&&(r=r*this._element.screen.screen.referencePixelsPerUnit/this.multipliedPixelsPerUnit);const s=[n.x+e*this._fillEdges.x,n.x+e*this._fillEdges.x+Math.min(this._border.x*r,.5*e),n.x+(e-n.x-n.z)*this._fillEdges.z-Math.min(this._border.z*r,.5*e),n.x+(e-n.x-n.z)*this._fillEdges.z],a=[n.y+(t-n.y-n.w)*this._fillEdges.w,n.y+(t-n.y-n.w)*this._fillEdges.w-Math.min(this._border.w*r,.5*t),n.y+t*this._fillEdges.y+Math.min(this._border.y*r,.5*t),n.y+t*this._fillEdges.y],o=[(0,p.p)(this._rect.x,this._rect.x+this._rect.z,this._fillEdges.x),(0,p.p)(this._rect.x,this._rect.x+this._rect.z,this._fillEdges.x),(0,p.p)(this._rect.x,this._rect.x+this._rect.z,this._fillEdges.z),(0,p.p)(this._rect.x,this._rect.x+this._rect.z,this._fillEdges.z)],l=[(0,p.p)(this._rect.y,this._rect.y+this._rect.w,this._fillEdges.w),(0,p.p)(this._rect.y,this._rect.y+this._rect.w,this._fillEdges.w),(0,p.p)(this._rect.y,this._rect.y+this._rect.w,this._fillEdges.y),(0,p.p)(this._rect.y,this._rect.y+this._rect.w,this._fillEdges.y)];if(this._spriteType!==c.c.SPRITE_TYPE_SLICED&&this._spriteType!==c.c.SPRITE_TYPE_TILED||!this._texture)this._spriteType,c.c.SPRITE_TYPE_TILED;else{if(o[1]+=this._border.x/this._texture.width,o[2]-=this._border.z/this._texture.width,s[1]>s[2]){const e=s[1];s[1]=s[2],s[2]=e}if(l[1]-=this._border.w/this._texture.height,l[2]+=this._border.y/this._texture.height,a[2]>a[1]){const e=a[1];a[1]=a[2],a[2]=e}}const u=this._mesh.vertexBuffer,h=this.color,d=new Float32Array(u.storage);for(let e=0;e<4;e++)for(let t=0;t<4;t++){let n=(4*e+t)*kt;d[n++]=-this._element._pivotPoint.x+s[t],d[n++]=-this._element._pivotPoint.y+a[e],d[n++]=0,d[n++]=o[t],d[n++]=l[e],d[n++]=h.r,d[n++]=h.g,d[n++]=h.b,d[n++]=h.a}u.unlock()}_calculatePaddings(e,t,n,i){let r=e,s=t,a=1,o=1;if(this._texture&&(r=this._texture.width,s=this._texture.height),this._sprite){n.copy(this._sprite.transparency);const e=this._sprite.getTextureRect();r=e.z-e.x+n.x+n.z,s=e.w-e.y+n.y+n.w}if(e===r&&t===s||(a=e/r,o=t/s),i.x=e,i.y=t,this._preserveAspect&&this._spriteType!==c.c.SPRITE_TYPE_SLICED&&this._spriteType!==c.c.SPRITE_TYPE_TILED){const e=Math.min(a,o);i.x=e*r,i.y=e*s,n.scale(e)}else 1===a&&1===o||(n.x*=a,n.y*=o,n.z*=a,n.w*=o);if(i.x===e&&i.y===t||n.add(new p.n((e-i.x)*this._element.pivot.x,(t-i.y)*this._element.pivot.y,(e-i.x)*(1-this._element.pivot.x),(t-i.y)*(1-this._element.pivot.y))),this._sprite){const e=this._sprite.transparency;i.x*=1-(e.x+e.z)/r,i.y*=1-(e.y+e.w)/s}return n}_updateMeshRadial(){const e=this._element.width||0,t=this._element.height||0,n=new p.n(0,0,0,0),i=new p.l(0,0);this._calculatePaddings(e,t,n,i);let r=360*this._fillAmount;const s=i.x/2,a=n.x+s,o=i.y/2,l=n.y+o,u=this._rect.z/2,h=this._rect.w/2,d=this._rect.x+u,m=this._rect.y+h,g=[a],$=[l],y=[d],f=[m];let _=0,S=0,b=!1;switch(this._fillOrigin){case c.c.FILL_ORIGIN_RADIAL_BOTTOM:S=270;break;case c.c.FILL_ORIGIN_RADIAL_RIGHT:S=0;break;case c.c.FILL_ORIGIN_RADIAL_TOP:S=90;break;case c.c.FILL_ORIGIN_RADIAL_LEFT:S=180}const C=this._element["UnityEngine.UI.Image"].m_FillClockwise?-1:1;let E=0,T=0;for(;r>0;){const e=Math.min(r,_);S+=C*e,S=(S+360)%360,S<=45||S>315?(g.push(a+s),y.push(d+u),T=Math.tan(S*p.e),$.push(l+o*T),f.push(m+h*T)):S<=135?(E=1/Math.tan(S*p.e),g.push(a+s*E),y.push(d+u*E),$.push(l+o),f.push(m+h)):S<=225?(g.push(a-s),y.push(d-u),T=-Math.tan(S*p.e),$.push(l+o*T),f.push(m+h*T)):S<=315&&(E=-1/Math.tan(S*p.e),g.push(a+s*E),y.push(d+u*E),$.push(l-o),f.push(m-h)),r-=e,b?_=90:(_=45,b=!0)}for(;g.length<Nt;)g.push(a);for(;$.length<Nt;)$.push(l);for(;y.length<Nt;)y.push(d);for(;f.length<Nt;)f.push(m);const v=this._mesh.vertexBuffer,I=this.color,x=new Float32Array(v.storage);for(let e=0;e<Nt;e++)x[e*kt+0]=-this._element._pivotPoint.x+g[e],x[e*kt+1]=-this._element._pivotPoint.y+$[e],x[e*kt+2]=0,x[e*kt+3]=y[e],x[e*kt+4]=f[e],x[e*kt+5]=I.r,x[e*kt+6]=I.g,x[e*kt+7]=I.b,x[e*kt+8]=I.a;v.unlock()}synchornizeProperties(e,t){const n=e.m_OverrideSprite||e.m_Sprite,i=n?n.handle:null,r=t&&e.m_Texture?e.m_Texture.handle:null,s=t?this._texture!==r:this._sprite!==i,a=t&&(e.m_UVRect.m_XMin!==this._rect.x||e.m_UVRect.m_YMin!==this._rect.y||e.m_UVRect.m_Width!==this._rect.z||e.m_UVRect.m_Height!==this._rect.w);(this._fillCenter!==e.m_FillCenter||this._fillAmount!==e.m_FillAmount||this._fillMethod!==e.m_FillMethod||this._fillOrigin!==e.m_FillOrigin||s||a)&&(t&&this._texture!==r?this.texture=r:t||this._sprite===i||(this.sprite=i),a&&this._rect.set(e.m_UVRect.m_XMin,e.m_UVRect.m_YMin,e.m_UVRect.m_Width,e.m_UVRect.m_Height),t||(this._fillCenter=e.m_FillCenter,this._fillAmount=e.m_FillAmount,this._pixelsPerUnitMultiplier=e.m_PixelsPerUnitMultiplier,this._fillMethod=e.m_FillMethod,this._fillOrigin=e.m_FillOrigin),this._updateMesh()),Vt.copy(e.m_Color)}get color(){return this._color}set color(e){this._color.copy(e)}get masksChildren(){return this._masksChildren}set masksChildren(e){this._masksChildren=e,this._canvasRenderer.model.masksChildren=e,this._element&&this._element.screen&&(this._element.screen.screen.canvasMeshInstance.renderersDirty=!0)}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest=e,this._updateMaterial()}get opacity(){return this._color.data[3]}set opacity(e){this._color.a=e,this.color=this._color}get rect(){return this._rect}set rect(e){this._rect.set(e.x,e.y,e.z,e.w),this._mesh&&this._updateMesh()}get border(){return this._border}set border(e){this._border.set(e.x,e.y,e.z,e.w),this._mesh&&this._updateMesh()}get material(){return this._material}set material(e){this._material=e,this._updateMaterial()}get texture(){return this._texture}set texture(e){this._texture=e,this._canvasRenderer.setTexture(this._texture),this._mesh&&this._updateMesh()}get ignoreMask(){return this._ignoreMask}set ignoreMask(e){this._ignoreMask=e,e&&(this.alphaTest=0),this._updateMaterial()}get showMaskGraphics(){return this._showMaskGraphics}set showMaskGraphics(e){this._showMaskGraphics=e,this._canvasRenderer.showMaskGraphics=e,this._updateMaterial()}get enabled(){return this._enabled}set enabled(e){if(this._enabled===e)return;this._enabled=e,this._canvasRenderer.enabled=e;const t=this._enabled?this._canvasRenderer.findParentCanvas():null;this._canvasRenderer.reparentCanvas(t)}get sprite(){return this._sprite}set sprite(e){if(this._sprite=e,e){this._texture=e.texture,this._canvasRenderer.setTexture(this._texture);const t=e.uvRect;this._rect.set(t.x,t.y,t.z,t.w);const n=this.spriteType===c.c.SPRITE_TYPE_SIMPLE?p.n.ZERO:e.border;this._border.set(n.x,n.y,n.z,n.w)}else this._texture=null,this._canvasRenderer.setTexture(this._texture);this._updateMesh()}get spriteType(){return this._spriteType||c.c.SPRITE_TYPE_SLICED}set spriteType(e){this._spriteType=e,this.sprite=this._sprite}get preserveAspect(){return this._preserveAspect}set preserveAspect(e){this._preserveAspect=e,this._updateMesh()}get fillMethod(){return this._fillMethod}set fillMethod(e){this._fillMethod=e,this._updateMesh()}get fillCenter(){return this._fillCenter}set fillCenter(e){this._fillCenter=e,this._updateMesh()}get fillOrigin(){return this._fillOrigin}set fillOrigin(e){this._fillOrigin=e,this._updateMesh()}get fillAmount(){return this._fillAmount}set fillAmount(e){this._fillAmount=e,this._updateMesh()}get pixelsPerUnitMultiplier(){return this._pixelsPerUnitMultiplier}set pixelsPerUnitMultiplier(e){this._pixelsPerUnitMultiplier=e,this._updateMesh()}get multipliedPixelsPerUnit(){return this._sprite.pixelsPerUnit*this._pixelsPerUnitMultiplier}}const Kt=[1,1,1,0],Wt=new p.d,Jt=new p.m;class Qt{constructor(e){if(this._element=e,this._system=e.system,this._entity=e.entity,this._text="",this._enabled=!0,this._horizontalWrap=!1,this._verticalOverflow=!1,this._align=c.c.TEXT_ALIGN_CENTER,this._veticalAlign=c.c.TEXT_VERTICAL_ALIGN_MIDDLE,this._font=null,this._color=new p.d(1,1,1,1),this._spacing=1,this._fontSize=32,this._lineHeight=1,this._bestFit=!1,this._minFontSize=0,this._maxFontSize=1e3,this.width=0,this.height=0,this.bounds=new p.l,this._material=null,this._textGenerator=null,this._dirtyVertices=!1,this._dirtyOffset=!1,this._canvasRenderer=this._entity._unityComponents.canvasRenderer?this._entity._unityComponents.canvasRenderer[0]:null,!this._canvasRenderer){const e=new lt;this._entity.addUnityComponentFromDeserialization("canvasRenderer",e),this._canvasRenderer=this._entity._unityComponents.canvasRenderer[0]}this._tintTexture=null,this._mesh=this._createMesh(),this._model=this._canvasRenderer.model,this._model.setParameter("_TextureSampleAdd",Kt),this._canvasRenderer.setMesh(this._mesh),this._canvasRenderer.setMaterial(this._material,0),this._masksChildren=!1}destroy(){this._canvasRenderer.setMesh(null),this._mesh&&(this._mesh.destroy(),this._mesh=null)}_updateMaterial(){const e=this._material||UnityEngine.Canvas.DefaultCanvasMaterial.handle;this._canvasRenderer.setMaterial(e,0)}_createMesh(){if(this._entity.isPrefab)return null;this._textGenerator=new Ut(this._canvasRenderer);const e=Ut.createEmptyMesh();return e.subMeshes=[e],e}_updateAligns(e){void 0!==this._element.width&&void 0!==this._element.height&&(e||(this.bounds.set(this._element.width,this._element.height),this._textGenerator.populate(this.text,this)),Jt.set(-this._element._pivotPoint.x,-this._element._pivotPoint.y,0).add(this._textGenerator.offset),this._textGenerator.updateMesh(this._mesh,this,Jt))}_updateMesh(e,t){this._entity.isPrefab||(this._element._dirtyRect&&this._entity._sync(),(0===this._element.width||0===this._element.height||this._element&&this._element.width&&this._element.height)&&(this.bounds.set(this._element.width,this._element.height),this._textGenerator.populate(t,this),0!==this._textGenerator.vertexCount?(this._dirtyVertices&&this._textGenerator.updateMesh(this._mesh,this),this._dirtyOffset&&this._updateAligns(!0),(this._dirtyVertices||this._dirtyOffset)&&this._element.dirtifyRect(),this._canvasRenderer.getMesh()||this._canvasRenderer.setMesh(e)):this._canvasRenderer.setMesh(null)))}setVerticesDirty(){this._updateText(this._text)}_updateText(e=this._text){this._font&&(this._mesh||(this._updateMaterial(),this._mesh=this._createMesh(),this._canvasRenderer.setMesh(this._mesh)),this._updateMesh(this._mesh,e),this._canvasRenderer.setTexture(this._font.texture))}synchornizeProperties(e){Wt.copy(e.m_Color)}get text(){return this._text}set text(e){const t=(e||"").toString();this._text!==t&&(this._text=t)}get color(){return this._color}set color(e){this._color.copy(e)}get opacity(){return this._color.data[3]}set opacity(e){this._color.a=e,this.color=this._color}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight=e}get lineSpacing(){return this._spacing}set lineSpacing(e){this._spacing=e}get align(){return this._align}set align(e){this._align=e}get verticalAlign(){return this._veticalAlign}set verticalAlign(e){this._veticalAlign=e}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize=e}get horizontalWrap(){return this._horizontalWrap}set horizontalWrap(e){this._horizontalWrap=e}get verticalOverflow(){return this._verticalOverflow}set verticalOverflow(e){this._verticalOverflow=e}get font(){return this._font}set font(e){this._font=e}get bestFit(){return this._bestFit}set bestFit(e){this._bestFit=e}get minFontSize(){return this._minFontSize}set minFontSize(e){this._minFontSize=e}get maxFontSize(){return this._maxFontSize}set maxFontSize(e){this._maxFontSize=e}get enabled(){return this._enabled}set enabled(e){if(this._enabled===e)return;this._enabled=e,this._canvasRenderer.enabled=e,!this._enabled&&this._textGenerator&&this._textGenerator._reset();const t=this._enabled?this._canvasRenderer.findParentCanvas():null;this._canvasRenderer.reparentCanvas(t)}get material(){return this._material}set material(e){this._material=e,this._updateMaterial()}get masksChildren(){return this._masksChildren}set masksChildren(e){this._masksChildren=e;const t=this._canvasRenderer.model.meshInstances;for(let n=0;n<t.length;n++){const i=t[n];e?i._shaderDefs|=c.c.SHADERDEF_UI_MASK:i._shaderDefs&=~c.c.SHADERDEF_UI_MASK}this._element&&this._element.screen&&(this._element.screen.screen.canvasMeshInstance.renderersDirty=!0)}get tintTexture(){return this._tintTexture}set tintTexture(e){this._tintTexture=e,this._updateText(this._text)}}class Xt{constructor(){this.enabled=!0}}class Yt extends y.c{constructor(e,t){super(e,t),this.data=new Xt,this._width=0,this._height=0,this._stencilLayer=255,this._anchors=new p.n,this._pivot=new p.l(.5,.5),this._sizeDelta=new p.l(0,0);const n=t.getLocalPosition();this._anchoredPosition=new p.l(n.x,n.y),this.entity.events.on("insert",this._onInsert,this),this._lastSyncAABBVersion=-1,this._dirtyScreen=!1,this._dirtyRect=!1,this.screen=null,this._nearestScreen=null,this._type=c.c.ELEMENTTYPE_GROUP,this._pivotPoint=new p.m,this._drawOrder=-1,this._masked=!1,this._image=null,this._text=null,this._localPositionAnimated=new p.m,this._dirtyAnimatedLocalPosition=!1,this._anchoredPositionAnimated=new p.m,this._dirtyAnimatedAnchoredPosition=!1,this._canvasGroups=[],this.cachedRect=new UnityEngine.Rect,this["__UnityEngine.UI.CanvasScaler"]=null,this["UnityEngine.UI.Graphic"]=null,this["UnityEngine.UI.Button"]=null,this["UnityEngine.UI.RawImage"]=null,this["UnityEngine.UI.Slider"]=null,this["UnityEngine.UI.Text"]=null,this["UnityEngine.UI.Image"]=null}dirtifyScreen(){if(!this._dirtyScreen){this.entity._app.scene.addDirty(this.entity),this._dirtyScreen=!0;for(let e=0;e<this.entity.children.length;e++){const t=this.entity.children[e];t.element&&t.element.dirtifyRect()}}}dirtifyRect(){if(!this._dirtyRect){this.entity._app.scene.addDirty(this.entity),this._dirtyRect=!0;for(let e=0;e<this.entity.children.length;e++){const t=this.entity.children[e];t.element&&t.element.dirtifyRect()}}}_getStencilParameters(){const e=this._masked?c.c.FUNC_EQUAL:c.c.FUNC_ALWAYS,t=this._image&&this._image.masksChildren||this._text&&this._text.masksChildren;return new Ee.a({func:e,ref:this._stencilLayer,writeMask:t?this._stencilLayer:0,readMask:t?this._stencilLayer>>1:this._stencilLayer,zfail:c.c.STENCILOP_KEEP,zpass:c.c.STENCILOP_REPLACE,fail:this._masked?c.c.STENCILOP_KEEP:c.c.STENCILOP_REPLACE})}_patch(){this.entity.flags|=y.g.Flags.HijackedByElementComponent,this._lastSyncAABBVersion=-1,this.dirtifyRect()}_unpatch(){this.entity.flags&=~y.g.Flags.HijackedByElementComponent}getRect(){const e=this._findParentElement();return e&&e.element.getRect(),this._dirtyRect&&this.entity._sync(),this.cachedRect.m_XMin=-this._pivotPoint.x,this.cachedRect.m_YMin=-this._pivotPoint.y,this.cachedRect.m_Width=this._width,this.cachedRect.m_Height=this._height,this.cachedRect.m_XMax=this.cachedRect.m_XMin+this._width,this.cachedRect.m_YMax=this.cachedRect.m_YMin+this._height,this.cachedRect}setVerticesDirty(){this._image&&this._image.setVerticesDirty(),this._text&&this._text.setVerticesDirty()}_onInsert(e,t=!0){const n=this._findScreen();this._updateScreen(n,!1),n&&!this.entity.isPrefab&&this.entity.getScene()&&(t?this.triggerOnElementDimesionsChange(!0,!0):this.entity._elementDimesionsChange())}_updateScreen(e,t=!1){this.screen=this._findScreen(),this._patch(),this.events.fire("set:screen",this.screen),this.dirtifyRect(),this.dirtifyScreen(),this._updateScreenForNonElement(this.entity,e,t),this.screen&&!t&&this.screen.screen.syncDrawOrder()}_updateScreenForNonElement(e,t,n){const i=e.getChildren();for(let e=0,r=i.length;e<r;e++)i[e].element?i[e].element._updateScreen(t,n):this._updateScreenForNonElement(i[e],t,n)}_findScreen(){let e=this.entity,t=this.screen&&this.screen.screen;for(this._nearestScreen=null;e;)this._nearestScreen=this._nearestScreen||e.screen,t=e.screen||t,e=e._parent;return t?t.entity:null}_findParentElement(){let e=this.entity._parent;for(;e&&!e.element;)e=e._parent;return e}addCanvasGroup(e,t=null){null==t?t=0:this.entity._canvasGroups.length>0&&t++,this._canvasGroups.splice(t,0,e);const n=this.entity.children;for(let i=0;i<n.length;i++){const r=n[i].element;r&&r.addCanvasGroup(e,t)}}removeCanvasGroup(e){const t=this._canvasGroups.indexOf(e);t>-1&&this._canvasGroups.splice(t,1);const n=this.entity.children;for(let t=0;t<n.length;t++){const i=n[t].element;i&&i.removeCanvasGroup(e)}}onRemove(){this.entity.events.off("insert",this._onInsert),this._unpatch(),this._image&&this._image.destroy(),this._text&&this._text.destroy()}triggerOnElementDimesionsChange(e,t){this.entity._elementDimesionsChange();const n=this.entity.children;for(let i=0;i<n.length;i++){if(!n[i]._activeSelf)continue;const r=n[i].element;if(r){const n=e&&r._anchors.x!==r._anchors.z,i=t&&r._anchors.y!==r._anchors.w;(n||i)&&r.triggerOnElementDimesionsChange(n,i)}}}setupParametersFromImage(e,t,n,i,r,s,a,o,l,c,u,h){const d=this._image;d&&(d.preventUpdateMesh=!0,this["UnityEngine.UI.Image"]=e,d.sprite=t,d.spriteType=n,d.fillMethod=i,d.fillOrigin=r,d.fillAmount=s,d.fillCenter=a,d.pixelsPerUnitMultiplier=o,d.preserveAspect=l,d.ignoreMask=c,d.enabled=u,d.color=e.m_Color,d.preventUpdateMesh=!1,d._updateMesh(),this.material=h)}get enabled(){return this.data.enabled}set enabled(e){const t=this.data.enabled;this.data.enabled=e,this.events.fire("set_enabled","enabled",t,e)}get type(){return this._type}set type(e){e!==this._type&&(this._type=e,this._image&&(this._image.destroy(),this._image=null),this._text&&(this._text.destroy(),this._text=null),e===c.c.ELEMENTTYPE_IMAGE?this._image=new qt(this):e===c.c.ELEMENTTYPE_TEXT&&(this._text=new Qt(this)))}get drawOrder(){return this._drawOrder}set drawOrder(e){this._drawOrder!==e&&(this._drawOrder=e,this.events.fire("set:draworder",this._drawOrder))}get width(){return this._width}get height(){return this._height}get pivot(){return this._pivot}set pivot(e){this._pivot.set(e.x,e.y),this.dirtifyRect()}get anchor(){return this._anchors}set anchor(e){if(e.equals(this._anchors))return;const t=this._anchors.z-this._anchors.x!=e.z-e.x,n=this._anchors.w-this._anchors.y!=e.w-e.y;this._anchors.copy(e),this.dirtifyRect(),(t||n)&&this.triggerOnElementDimesionsChange(t,n)}get anchoredPosition(){return this._anchoredPosition}set anchoredPosition(e){this._anchoredPosition.copy(e),this.dirtifyRect()}get sizeDelta(){return this._sizeDelta}set sizeDelta(e){const t=this._sizeDelta.x!==e.x,n=this._sizeDelta.y!==e.y;(t||n)&&(this._sizeDelta.copy(e),this.dirtifyRect(),this.triggerOnElementDimesionsChange(t,n))}get rect(){return this.getRect()}get stencilLayer(){return this._stencilLayer}set stencilLayer(e){this._stencilLayer!==e&&(this._stencilLayer=e,this.events.fire("set:stencillayer",e))}get fontSize(){return this._text?this._text.fontSize:null}set fontSize(e){this._text&&(this._text.fontSize=e)}get color(){return this._text?this._text.color:this._image?this._image.color:null}set color(e){this._text?this._text.color=e:this._image&&(this._image.color=e)}get font(){return this._text?this._text.font:null}set font(e){this._text&&(this._text.font=e)}get lineHeight(){return this._text?this._text.lineHeight:null}set lineHeight(e){this._text&&(this._text.lineHeight=e)}get align(){return this._text?this._text.align:null}set align(e){this._text&&(this._text.align=e)}get verticalAlign(){return this._text?this._text.verticalAlign:null}set verticalAlign(e){this._text&&(this._text.verticalAlign=e)}get text(){return this._text?this._text.text:null}set text(e){this._text&&(this._text.text=e)}get texture(){return this._image?this._image.texture:null}set texture(e){this._image&&(this._image.texture=e)}get material(){return this._text?this._text.material:this._image?this._image.material:null}set material(e){this._text?this._text.material=e:this._image&&(this._image.material=e)}get opacity(){return this._text?this._text.opacity:this._image?this._image.opacity:null}set opacity(e){this._text?this._text.opacity=e:this._image&&(this._image.opacity=e)}get masksChildren(){return this._text?this._text.masksChildren:this._image?this._image.masksChildren:null}set masksChildren(e){this._text?this._text.masksChildren=e:this._image&&(this._image.masksChildren=e)}get showMaskGraphics(){return this._image?this._image.showMaskGraphics:null}set showMaskGraphics(e){this._image&&(this._image.showMaskGraphics=e)}get alphaTest(){return this._image?this._image.alphaTest:null}set alphaTest(e){this._image&&(this._image.alphaTest=e)}get border(){return this._image?this._image.border:null}set border(e){this._image&&(this._image.border=e)}}class en extends y.b{constructor(e){super(e),this.id="element",this.app=e,this.ComponentType=Yt,this.events.on("beforeremove",this.onRemoveComponent,this)}initializeComponentData(e,t){t.anchor&&e._anchors.copy(t.anchor),t.pivot&&e._pivot.copy(t.pivot),t.sizeDelta&&e._sizeDelta.copy(t.sizeDelta),t.anchoredPosition&&e._anchoredPosition.copy(t.anchoredPosition);const n=e._findScreen();n&&n.screen&&e._updateScreen(n),super.initializeComponentData(e,t)}onRemoveComponent(e,t){t.onRemove()}}const tn=new p.n(0,0,1,1),nn=new p.l;class rn{constructor(){this.clearColor=new p.d(.722,.722,.722,1),this.clearFlags=UnityEngine.CameraClearFlags.Skybox,this.depthTextureMode=UnityEngine.DepthTextureMode.Depth,this.nearClip=.1,this.farClip=1e3,this.fov=45,this.orthoHeight=100,this.projection=c.c.PROJECTION_PERSPECTIVE,this.priority=0,this.rect=new p.n(0,0,1,1),this.enabled=!0,this.flipFaces=!1,this.cullingMask=0,this.usePhysicalProperties=!1,this.focalLength=50,this.sensorSize=new p.l(36,24),this.lensShift=new p.l,this.gateFit=c.c.GATE_FIT_HORIZONTAL,this.gateFittedFOV=45,this.gateFittedLensShift=new p.l,this.camera=null,this.aspectRatio=16/9,this.aspectRatioMode=c.c.ASPECT_AUTO,this.renderTarget=null,this.calculateTransform=null,this.universalAdditionalCameraData=null,this.depthRenderTarget=null}}class sn extends y.c{constructor(e,t){super(e,t),this.data=new rn,this.events.on("set_aspectRatio",this.onSetAspectRatio,this),this.events.on("set_camera",this.onSetCamera,this),this.events.on("set_clearColor",this.onSetClearColor,this),this.events.on("set_fov",this.onSetFov,this),this.events.on("set_orthoHeight",this.onSetOrthoHeight,this),this.events.on("set_nearClip",this.onSetNearClip,this),this.events.on("set_farClip",this.onSetFarClip,this),this.events.on("set_projection",this.onSetProjection,this),this.events.on("set_clearFlags",this.updateClearFlags,this),this.events.on("set_renderTarget",this.onSetRenderTarget,this),this.events.on("set_rect",this.onSetRect,this),this.events.on("set_scissorRect",this.onSetScissorRect,this),this.events.on("set_calculateTransform",this.onSetCalculateTransform,this),this.events.on("set_cullingMask",this.onSetCullingMask,this),this.events.on("set_depthTextureMode",this.onSetDepthTextureMode,this),this.events.on("set_usePhysicalProperties",this.onSetUsePhysicalProperties,this),this.events.on("set_focalLength",this.onSetFocalLength,this),this.events.on("set_sensorSize",this.onSetSensorSize,this),this.events.on("set_lensShift",this.onSetLensShift,this),this.events.on("set_gateFit",this.onSetGateFit,this),this.device=y.a.getApplication().graphicsDevice,this.layerCullDistancesActivated=!1,this.layerCullDistances=Array(32).fill(0),this["__UnityEngine.Camera"]=null}screenToWorld(e,t,n,i){const r=this.system.app.graphicsDevice;return this.data.camera.screenToWorld(e,t,n,r.clientRect.width,r.clientRect.height,i)}worldToScreen(e,t){const n=this.system.app.graphicsDevice;return this.data.camera.worldToScreen(e,n.clientRect.width,n.clientRect.height,t)}onSetAspectRatio(e,t,n){this.data.camera.aspectRatio=n}onSetCamera(e,t,n){t&&(t._node=null),n._node=this.entity}onSetClearColor(e,t,n){const i=this.data.camera.clearColor;i[0]=n.r,i[1]=n.g,i[2]=n.b,i[3]=n.a}onSetFov(e,t,n){this.data.camera.fov=n}onSetCullingMask(e,t,n){this.data.camera.cullingMask=n}onSetOrthoHeight(e,t,n){this.data.camera.orthoHeight=n}onSetNearClip(e,t,n){this.data.camera.nearClip=n}onSetFarClip(e,t,n){this.data.camera.farClip=n}onSetCalculateTransform(e,t,n){this.camera.calculateTransform=n,this.camera.overrideCalculateTransform=!!n}onSetProjection(e,t,n){this.data.camera.projection=n}addCameraToScene(){this.system.app.isUrp&&this.additionalCameraData&&this.additionalCameraData.renderType===c.c.URP_CAMERA_RENDER_TYPE_BASE&&this.system.app.scene.addUrpBaseCamera(this),this.system.app.scene.addCamera(this)}removeCameraFromScene(){this.system.app.scene.removeCamera(this),this.system.app.scene.removeUrpBaseCamera(this)}updateClearFlags(){let e=0;switch(this.clearFlags){case UnityEngine.CameraClearFlags.Skybox:e=c.c.CLEARFLAG_COLOR|c.c.CLEARFLAG_STENCIL|c.c.CLEARFLAG_DEPTH|c.c.CLEARFLAG_USE_SKYBOX;break;case UnityEngine.CameraClearFlags.Color:e=c.c.CLEARFLAG_COLOR|c.c.CLEARFLAG_STENCIL|c.c.CLEARFLAG_DEPTH;break;case UnityEngine.CameraClearFlags.Depth:e=c.c.CLEARFLAG_DEPTH}this.data.camera.clearFlags=e}onSetDepthTextureMode(e){this.data.depthTextureMode=e}onSetRenderTarget(e,t,n){this.data.camera.renderTarget=n}onSetRect(e,t,n){this.data.camera.setRect(n.x,n.y,n.z,n.w)}onSetScissorRect(e,t,n){this.data.camera.setScissorRect(n.x,n.y,n.z,n.w)}onSetUsePhysicalProperties(e,t,n){this.data.camera.usePhysicalProperties=n}onSetFocalLength(e,t,n){this.data.camera.focalLength=n}onSetSensorSize(e,t,n){this.data.camera.setSensorSize(n.x,n.y)}onSetLensShift(e,t,n){this.data.camera.setLensShift(n.x,n.y)}onSetGateFit(e,t,n){this.data.camera.gateFit=n}onEnable(){this.system.addCamera(this),this.enabled&&this.entity.enabled&&this.addCameraToScene(),this.data.depthRenderTarget=this.createDepthRenderTarget()}onDisable(){this.removeCameraFromScene(),this.system.removeCamera(this)}onDestroy(){this.destroyDepthRenderTarget(this.data.depthRenderTarget)}calculateAspectRatio(e){const t=e||this.system.app.graphicsDevice,n=this.rect;return t.width*n.z/(t.height*n.w)}frameBegin(e){this.aspectRatioMode===c.c.ASPECT_AUTO&&(this.aspectRatio=this.calculateAspectRatio(e))}frameEnd(){this.handleOnRenderImageCallback()}resetProjectionMatrix(){this.camera.resetProjectionMatrix()}calculateObliqueMatrix(e){return this.camera.calculateObliqueMatrix(e)}changeAspectRatio(e){this.aspectRatioMode=c.c.ASPECT_MANUAL,this.aspectRatio=e}resetAspect(){this.aspectRatioMode=c.c.ASPECT_AUTO}createDepthRenderTarget(){const e=this.camera.getRect(),t=Math.floor(e.width*this.device.width),n=Math.floor(e.height*this.device.height);return this.depthTextureMode!==UnityEngine.DepthTextureMode.Depth?null:j.a.getTempBuffer(t,n,null,c.c.PIXELFORMAT_DEPTH)}destroyDepthRenderTarget(e){e&&j.a.releaseTempBuffer(e)}handleOnRenderImageCallback(){if(0===this.getOnRenderImageSubscribersCount())return;const e=this["__UnityEngine.Camera"].targetTexture,t=e?e.handle.width:this.device.width,n=e?e.handle.height:this.device.height;e?UnityEngine.Graphics.Blit(e,i):(this.device.setTexture(i.handle,0),this.device.activeTexture(0),this.device.gl.copyTexImage2D(this.device.gl.TEXTURE_2D,0,this.device.gl.RGB,0,0,t,n,0));for(let e=0;e<this.entity._unityComponents.monoBehaviour.length;e++)if(this.entity._unityComponents.monoBehaviour[e].onRenderImage(i,r)){const e=i;i=r,r=e}}getOnRenderImageSubscribersCount(){let e=0;for(let t=0;t<this.entity._unityComponents.monoBehaviour.length;t++)this.entity._unityComponents.monoBehaviour[t].code.OnRenderImage&&e++;return e}get depthRenderTarget(){const e=this.camera.getRect(),t=Math.floor(e.width*this.device.width),n=Math.floor(e.height*this.device.height),i=this.data.depthRenderTarget;if(i){if(i.width===t&&i.height===n)return i;this.destroyDepthRenderTarget(i)}return this.data.depthRenderTarget=this.createDepthRenderTarget(),this.data.depthRenderTarget}get clearFlags(){return this.data.clearFlags}set clearFlags(e){const t=this.data.clearFlags;this.data.clearFlags=e,this.events.fire("set_clearFlags","clearFlags",t,e)}get projection(){return this.data.projection}set projection(e){const t=this.data.projection;this.data.projection=e,this.events.fire("set_projection","projection",t,e)}get fov(){return this.data.fov}set fov(e){const t=this.data.fov;this.data.fov=e,this.events.fire("set_fov","fov",t,e)}get usePhysicalProperties(){return this.data.usePhysicalProperties}set usePhysicalProperties(e){const t=this.data.usePhysicalProperties;this.data.usePhysicalProperties=e,this.events.fire("set_usePhysicalProperties","usePhysicalProperties",t,e),this.data.usePhysicalProperties&&this.calculateProjectionParamsFromPhysicalProperties()}get focalLength(){return this.data.focalLength}set focalLength(e){const t=this.data.focalLength;this.data.focalLength=e,this.events.fire("set_focalLength","focalLength",t,e),t!==e&&this.data.usePhysicalProperties&&this.calculateProjectionParamsFromPhysicalProperties()}get sensorSize(){return this.data.sensorSize}set sensorSize(e){const t=this.data.sensorSize;this.data.sensorSize=e,this.events.fire("set_sensorSize","sensorSize",t,e),this.data.usePhysicalProperties&&this.calculateProjectionParamsFromPhysicalProperties()}get lensShift(){return this.data.lensShift}set lensShift(e){const t=this.data.lensShift;this.data.lensShift=e,this.events.fire("set_lensShift","lensShift",t,e),this.data.usePhysicalProperties&&this.calculateProjectionParamsFromPhysicalProperties()}get gateFit(){return this.data.gateFit}set gateFit(e){const t=this.data.gateFit;this.data.gateFit=e,this.events.fire("set_gateFit","gateFit",t,e)}calculateProjectionParamsFromPhysicalProperties(){this.focalLength=(0,p.o)(this.focalLength,pc.Camera.fieldOfViewToFocalLength(179,this.sensorSize.y),pc.Camera.fieldOfViewToFocalLength(1e-5,this.sensorSize.x)),this.fov=pc.Camera.focalLengthToFieldOfView(this.focalLength,this.sensorSize.y),this.calculateGateFitParams()}calculateGateFitParams(){this.gateFittedLensShift=this.lensShift.clone();const e=this.aspectRatio*this.sensorSize.y/this.sensorSize.x;this.gateFit===c.c.GATE_FIT_FILL&&e>1||this.gateFit===c.c.GATE_FIT_OVERSCAN&&e<1||this.gateFit===c.c.GATE_FIT_HORIZONTAL?(this.gateFittedFOV=pc.Camera.focalLengthToFieldOfView(this.focalLength,this.sensorSize.x/this.aspectRatio),this.gateFittedLensShift.y*=e):(this.gateFittedFOV=pc.Camera.focalLengthToFieldOfView(this.focalLength,this.sensorSize.y),this.gateFittedLensShift.x*=1/e)}getGateFittedFieldOfView(){return this.usePhysicalProperties?this.gateFittedFOV:this.fov}getGateFittedLensShift(){return this.usePhysicalProperties?this.gateFittedLensShift:p.l.ZERO}get orthoHeight(){return this.data.orthoHeight}set orthoHeight(e){const t=this.data.orthoHeight;this.data.orthoHeight=e,this.events.fire("set_orthoHeight","orthoHeight",t,e)}get nearClip(){return this.data.nearClip}set nearClip(e){const t=this.data.nearClip;this.data.nearClip=e,this.events.fire("set_nearClip","nearClip",t,e)}get farClip(){return this.data.farClip}set farClip(e){const t=this.data.farClip;this.data.farClip=e,this.events.fire("set_farClip","farClip",t,e)}get priority(){return this.data.priority}set priority(e){const t=this.data.priority;this.data.priority=e,this.events.fire("set_priority","priority",t,e)}get rect(){return this.data.rect}set rect(e){const t=this.data.rect;this.data.rect=e,this.events.fire("set_rect","rect",t,e)}get camera(){return this.data.camera}set camera(e){const t=this.data.camera;this.data.camera=e,this.events.fire("set_camera","camera",t,e)}get aspectRatio(){return this.data.aspectRatio}set aspectRatio(e){const t=this.data.aspectRatio;this.data.aspectRatio=e,this.events.fire("set_aspectRatio","aspectRatio",t,e)}get aspectRatioMode(){return this.data.aspectRatioMode}set aspectRatioMode(e){this.data.aspectRatioMode=e}get renderTarget(){return this.data.renderTarget}set renderTarget(e){const t=this.data.renderTarget;this.data.renderTarget=e,this.events.fire("set_renderTarget","renderTarget",t,e)}get calculateTransform(){return this.data.calculateTransform}set calculateTransform(e){const t=this.data.calculateTransform;this.data.calculateTransform=e,this.events.fire("set_calculateTransform","calculateTransform",t,e)}get flipFaces(){return this.data.flipFaces}set flipFaces(e){const t=this.data.flipFaces;this.data.flipFaces=e,this.events.fire("set_flipFaces","flipFaces",t,e)}get cullingMask(){return this.data.cullingMask}set cullingMask(e){const t=this.data.cullingMask;this.data.cullingMask=e,this.events.fire("set_cullingMask","cullingMask",t,e)}get clearColor(){return this.data.clearColor}set clearColor(e){const t=this.data.clearColor;this.data.clearColor=e,this.events.fire("set_clearColor","clearColor",t,e)}get enabled(){return this.data.enabled}set enabled(e){const t=this.data.enabled;this.data.enabled=e,this.events.fire("set_enabled","enabled",t,e)}get projectionMatrix(){return this.data.camera.projMat}set projectionMatrix(e){this.data.camera.setProjectionMatrix(e)}get viewMatrix(){return this.data.camera._node.getWorldTransform().clone().invert()}get frustum(){return this.data.camera.frustum}get node(){return this.data.camera._node}get unityRect(){return this.rect}set unityRect(e){this.rect=e}get unityPixelRect(){const e=this.renderTarget;return e?(nn.x=e.width,nn.y=e.height):(nn.x=this.device._width,nn.y=this.device._height),tn.copy(this.rect),tn.x*=nn.x,tn.y*=nn.y,tn.z*=nn.x,tn.w*=nn.y,tn}set unityPixelRect(e){const t=this.renderTarget;t?(nn.x=t.width,nn.y=t.height):(nn.x=this.device._width,nn.y=this.device._height);const n=e.x/nn.x,i=e.y/nn.y;let r=e.z/nn.x,s=e.w/nn.y;r=(0,p.o)(n+r,0,1)-n,s=(0,p.o)(i+s,0,1)-i,this.rect=new p.n(n,i,r,s)}set depthTextureMode(e){this.data.depthTextureMode=e}get depthTextureMode(){return this.data.depthTextureMode}get additionalCameraData(){if(!this.data.universalAdditionalCameraData){const e=UnityEngine.Object.FromHandle(UnityEngine.Camera,this);this.data.universalAdditionalCameraData=e.GetUniversalAdditionalCameraData()}return this.data.universalAdditionalCameraData}}class an extends y.b{constructor(e){super(e),this.id="camera",this.ComponentType=sn,this.cameras=[],this.events.on("beforeremove",this.onBeforeRemove,this),this.events.on("remove",this.onRemove,this),y.b.events.on("update",this.onUpdate,this)}initializeComponentData(e,t){e.camera=new $.a,e.camera._component=e,void 0!==t.enabled&&(e.enabled=t.enabled),void 0!==t.aspectRatio&&(e.aspectRatio=t.aspectRatio),void 0!==t.aspectRatioMode&&(e.aspectRatioMode=t.aspectRatioMode),void 0!==t.renderTarget&&(e.renderTarget=t.renderTarget),void 0!==t.clearColor&&(e.clearColor=t.clearColor),void 0!==t.fov&&(e.fov=t.fov),void 0!==t.orthoHeight&&(e.orthoHeight=t.orthoHeight),void 0!==t.nearClip&&(e.nearClip=t.nearClip),void 0!==t.farClip&&(e.farClip=t.farClip),void 0!==t.projection&&(e.projection=t.projection),void 0!==t.priority&&(e.priority=t.priority),void 0!==t.clearFlags&&(e.clearFlags=t.clearFlags),void 0!==t.rect&&(e.rect=t.rect),void 0!==t.calculateTransform&&(e.calculateTransform=t.calculateTransform),void 0!==t.flipFaces&&(e.flipFaces=t.flipFaces),void 0!==t.cullingMask&&(e.cullingMask=t.cullingMask),void 0!==t.focalLength&&(e.focalLength=t.focalLength),void 0!==t.sensorSize&&(e.sensorSize=t.sensorSize),void 0!==t.lensShift&&(e.lensShift=t.lensShift),void 0!==t.gateFit&&(e.gateFit=t.gateFit),void 0!==t.usePhysicalProperties&&(e.usePhysicalProperties=t.usePhysicalProperties),super.initializeComponentData(e,t)}onBeforeRemove(e,t){this.removeCamera(t)}onRemove(e,t){t.camera=null}onUpdate(e){}addCamera(e){this.cameras.push(e),this.sortCamerasByPriority()}removeCamera(e){const t=this.cameras.indexOf(e);t>=0&&(this.cameras.splice(t,1),this.sortCamerasByPriority())}sortCamerasByPriority(){this.cameras.sort(((e,t)=>e.priority-t.priority))}}class on{constructor(){this.enabled=!0}}class ln extends y.c{constructor(e,t){super(e,t),this.data=new on,this._resolution=new p.l(this.system.app.graphicsDevice.width,this.system.app.graphicsDevice.height),this._referenceResolution=new p.l(640,320),this._offset=new p.l(0,0),this._scaleMode=ln.SCALEMODE_NONE,this.scale=1,this._scaleBlend=.5,this._scaleFactor=1,this._planeHeight=0,this._camera=null,this._referencePixelsPerUnit=100,this._sortingLayerIndex=0,this._sortingOrder=0,this._screenType=c.c.SCREEN_TYPE_SCREEN,this._screenDistance=1,this.parentScreen=null,this.childScreens=[],this._isFallbackOverlay=!1,this.canvasMeshInstance=new je(this),this.registered=!1,this._rootPointerEventReceiver=!1,this["__UnityEngine.Canvas"]=null}_updateScreenInChildren(){for(let e=0;e<this.entity._children.length;e++){const t=this.entity._children[e].element;t&&t._updateScreen(t._findScreen(),!0)}this.syncDrawOrder()}syncDrawOrder(){const e=y.a.getApplication().systems.screen;e&&(e._dirtyOrder=!0)}_calcProjectionMatrix(){const e=this._screenType,t=this.camera;e===c.c.SCREEN_TYPE_CAMERA&&t&&(t.projection===c.c.PROJECTION_PERSPECTIVE?this._planeHeight=Math.tan(t.fov/2*(Math.PI/180))*Math.abs(2*this._screenDistance):this._planeHeight=2*t.orthoHeight),this.entity.element.dirtifyScreen()}_findParentScreen(){return st.findParentScreen(this.entity.parent)}onRemove(){this.reparentChildrenToNewCanvas()}reparentChildrenToNewCanvas(){const e=st.findParentScreen(this.entity.parent),t=this.canvasMeshInstance.renderers;for(let n=0;n<t.length;n++)t[n].reparentCanvas(e)}_updateScale(){this.scale=this._calcScale(this._resolution,this.referenceResolution)}_calcScale(e,t){if(this._scaleMode===ln.SCALEMODE_NONE)return this.scaleFactor;if(this._scaleMode===ln.SCALEMODE_EXPAND)return Math.min(e.x/t.x,e.y/t.y);if(this._scaleMode===ln.SCALEMODE_SHRINK)return Math.max(e.x/t.x,e.y/t.y);{const n=Math.log2(e.x/t.x),i=Math.log2(e.y/t.y),r=(0,p.p)(n,i,this.scaleBlend);return Math.pow(2,r)}}_onResize(e,t,n,i){const r=this.camera;let s=n,a=i;r&&r.renderTarget&&(s=r.renderTarget.width,a=r.renderTarget.height),this._screenType!==c.c.SCREEN_TYPE_WORLD&&(this._resolution.set(s,a),this.resolution=this._resolution),this.entity.element&&this.entity.element.triggerOnElementDimesionsChange(!0,!0)}_updateStencilRecursive(e,t){const n=e.element,i=!!n,r=i&&(n._image&&n._image.masksChildren||n._text&&n._text.masksChildren);i&&(n._masked=t.maskingDepth>0,r&&(t.maskingDepth++,t.ref=(1<<t.maskingDepth)-1),n.stencilLayer=t.ref);for(let n=0;n<e._children.length;n++)this._updateStencilRecursive(e._children[n],t);i&&r&&(t.maskingDepth--,t.ref=(1<<t.maskingDepth)-1)}_updateStencilParameters(){this.entity&&this._updateStencilRecursive(this.entity,{ref:0,maskingDepth:0})}addScreenToScene(){this.screenType!==c.c.SCREEN_TYPE_SCREEN&&this.system.app.scene.addRenderer(this),this.system.app.graphicsDevice.events.on("resizecanvas",this._onResize,this),this.parentScreen?this.parentScreen.addChildScreen(this):this.system.app.scene.addScreen(this),this.system.app.scene.events.fire("canvasScreenAddedOnScene",this)}removeScreenFromScene(){this.screenType!==c.c.SCREEN_TYPE_SCREEN&&this.system.app.scene.removeRenderer(this),this.system.app.graphicsDevice.events.off("resizecanvas",this._onResize,this),this.parentScreen?this.parentScreen.removeChildScreen(this):this.system.app.scene.removeScreen(this),this.system.app.scene.events.fire("canvasScreenRemovedFromScene",this)}addChildScreen(e){this.childScreens.includes(e)||this.childScreens.push(e)}removeChildScreen(e){this.childScreens=this.childScreens.filter((t=>t!==e))}onEnable(){this.registered=!0;const e=st.findParentScreen(this.entity.parent);this.setParentScreen(e,!0);const t=this.system.app.graphicsDevice;this._onResize(t.width,t.height,t._width,t._height),this.notifyChildrenCanvasRenderers(this.entity.children)}notifyChildrenCanvasRenderers(e){for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n._canvasElements.length;e++){const t=n._canvasElements[e].canvasRenderer;t&&t.handle.updateParentCanvas()}this.notifyChildrenCanvasRenderers(n.children)}}onDisable(){this.system.app.scene.events.off("canvasScreenAddedOnScene",this.canvasScreenAddedOnSceneEventHandler,this),this.system.app.scene.events.off("canvasScreenRemovedFromScene",this.canvasScreenRemovedFromSceneEventHandler,this),this.setParentScreen(null,!1),this.registered=!1}onDestroy(){this.reparentChildrenToNewCanvas()}getMeshInstancesForRender(){return this.meshInstances}setParentScreen(e,t){t=!!t,this.registered&&this.removeScreenFromScene(),this.parentScreen=e,this.registered&&t&&(this.addScreenToScene(),this.system.app.scene.events.on("canvasScreenAddedOnScene",this.canvasScreenAddedOnSceneEventHandler,this),this.system.app.scene.events.on("canvasScreenRemovedFromScene",this.canvasScreenRemovedFromSceneEventHandler,this),null===e&&(this.system.app.scene.events.fire("newRootCanvasScreenAdded",this),this.system.app.scene.events.on("newRootCanvasScreenAdded",this.newRootCanvasScreenAddedEventHandler,this)))}canvasScreenAddedOnSceneEventHandler(e){e===this.parentScreen&&this.addScreenToScene()}canvasScreenRemovedFromSceneEventHandler(e){e===this.parentScreen&&this.removeScreenFromScene()}newRootCanvasScreenAddedEventHandler(e){e===st.findParentScreen(this.entity.parent)&&(this.system.app.scene.events.off("newRootCanvasScreenAdded",this.newRootCanvasScreenAddedEventHandler,this),this.setParentScreen(e,this.enabled))}get enabled(){return this.data.enabled}set enabled(e){const t=this.data.enabled;this.data.enabled=e,this.events.fire("set_enabled","enabled",t,e)}get resolution(){return this._resolution}set resolution(e){const t=this.camera;t&&t.renderTarget||(this._screenType!==c.c.SCREEN_TYPE_SCREEN?0!==e.x&&0!==e.y&&this._resolution.set(e.x,e.y):t&&t.renderTarget||this._resolution.set(this.system.app.graphicsDevice._width,this.system.app.graphicsDevice._height),this._scaleMode===ln.SCALEMODE_NONE&&this.referenceResolution.copy(this._resolution),this._updateScale(),this._calcProjectionMatrix(),this.events.fire("set:resolution",this._resolution))}get offset(){return this._offset}set offset(e){this._offset.set(e.x,e.y),this._calcProjectionMatrix()}get referenceResolution(){return this._scaleMode===ln.SCALEMODE_NONE?this._resolution:this._referenceResolution}set referenceResolution(e){this._referenceResolution.set(e.x,e.y),this._updateScale(),this._calcProjectionMatrix(),this.events.fire("set:referenceresolution",this._resolution)}get screenType(){return this.parentScreen?this.parentScreen.screenType:this._screenType}set screenType(e){if(this._screenType===e)return;this.registered&&this.enabled&&this.removeScreenFromScene(),this._screenType=e;const t=this.screenType;if(this._isFallbackOverlay=!1,t===c.c.SCREEN_TYPE_CAMERA)if(this._camera){const e=this._camera._node.getPosition();this.entity.element.anchoredPosition.set(e.x,e.y)}else this._isFallbackOverlay=!0,this._screenType=c.c.SCREEN_TYPE_SCREEN;t===c.c.SCREEN_TYPE_SCREEN&&(this.canvasMeshInstance.visible=!0),this._resolution.set(this.system.app.graphicsDevice._width,this.system.app.graphicsDevice._height),this.resolution=this._resolution,this.events.fire("set:screentype",t),this.registered&&this.enabled&&this.addScreenToScene()}get screenDistance(){return this._screenDistance}set screenDistance(e){this._screenDistance=e,this._calcProjectionMatrix()}get scaleMode(){return this._scaleMode}set scaleMode(e){e!==ln.SCALEMODE_NONE&&e!==ln.SCALEMODE_BLEND&&e!==ln.SCALEMODE_EXPAND&&e!==ln.SCALEMODE_SHRINK&&(e=ln.SCALEMODE_NONE),this._screenType===c.c.SCREEN_TYPE_WORLD&&e!==ln.SCALEMODE_NONE&&(e=ln.SCALEMODE_NONE),this._scaleMode=e,this.resolution=this._resolution,this.events.fire("set:scalemode",this._scaleMode)}get scaleBlend(){return this._scaleBlend}set scaleBlend(e){this._scaleBlend=e,this._updateScale(),this._calcProjectionMatrix(),this.events.fire("set:scaleblend",this._scaleBlend)}get camera(){return this.rootScreen._camera}set camera(e){this._camera=e,this._camera||this.screenType!==c.c.SCREEN_TYPE_CAMERA||(this.screenType=c.c.SCREEN_TYPE_SCREEN,this._isFallbackOverlay=!0),this._camera&&this._isFallbackOverlay&&(this.screenType=c.c.SCREEN_TYPE_CAMERA),e&&e.renderTarget&&this._resolution.set(e.renderTarget.width,e.renderTarget.height),this._calcProjectionMatrix()}get meshInstances(){return[this.canvasMeshInstance]}get referencePixelsPerUnit(){return this._referencePixelsPerUnit}set referencePixelsPerUnit(e){this._referencePixelsPerUnit=e,this.resolution=this._resolution}get rootScreen(){let e=this,t=this.entity;for(;t;)e=t.screen||e,t=t.parent;return e}get scaleFactor(){return this._scaleFactor}set scaleFactor(e){this._scaleFactor=e,this._updateScale(),this._calcProjectionMatrix()}get overrideSorting(){return this["__UnityEngine.Canvas"].overrideSorting}set overrideSorting(e){this["__UnityEngine.Canvas"].overrideSorting=e}get sortingOrder(){return!this.isNested||this["__UnityEngine.Canvas"].overrideSorting?this._sortingOrder:this.parentScreen.sortingOrder}set sortingOrder(e){this._sortingOrder=e}get sortingLayerIndex(){return!this.isNested||this["__UnityEngine.Canvas"].overrideSorting?this._sortingLayerIndex:this.parentScreen.sortingLayerIndex}set sortingLayerIndex(e){this._sortingLayerIndex=e}get isNested(){return!!this.parentScreen}get drawOrder(){return this.entity.element.drawOrder}get isFallbackOverlay(){return this._isFallbackOverlay}set isFallbackOverlay(e){this._isFallbackOverlay=e}}ln.SCALEMODE_NONE="none",ln.SCALEMODE_BLEND="blend",ln.SCALEMODE_EXPAND="expand",ln.SCALEMODE_SHRINK="shrink";const cn=function(e,t){const n=e.element;if(n){const i=e._unityComponents.canvasRenderer[0];i&&(i._absoluteDepth=t),n.drawOrder=t++}const i=e._children;for(let e=0;e<i.length;e++)t=cn(i[e],t);return t};class un extends y.b{constructor(e){super(e),this.id="screen",this.app=e,this._dirtyOrder=!1,this.ComponentType=ln,y.b.events.on("update",this._onUpdate,this),this.events.on("beforeremove",this.onRemoveComponent,this)}initializeComponentData(e,t){e.syncDrawOrder(),super.initializeComponentData(e,t),e._updateScreenInChildren()}destroy(){this.events.off()}_syncDrawOrder(){cn(y.a.getApplication().root,0)}_onUpdate(e){this._dirtyOrder&&(this._syncDrawOrder(),this._dirtyOrder=!1)}onRemoveComponent(e,t){t.onRemove()}onDestroy(e,t){t.onRemove()}}const hn="unity_GUIZTestMode";class dn{constructor(e){this.node=e.entity,this.isSortingGroup=!0,this.isCanvas=!1,this._childRenderers=[],this._sortingGroupComponent=e,this.visible=!0,this.cull=!0,this.device=y.a.getApplication().graphicsDevice,this.renderer=y.a.getApplication().renderer,this.drawOrder=0,this.zdist=0,this._material=null,this.mesh=new i.b,this._lightProbe=null,this.instancingData=null,this._shaderDefs=0,this.isIndexBufferEmpty=!1,this._aabb=new p.b,this.visibleThisFrame=!0,this.skinInstance=null,this.morphInstance=null,this._mesh=null,this._material=UnityEngine.Canvas.GetDefaultCanvasMaterial().handle,this._material.setParameter(hn,c.c.FUNC_ALWAYS+1);const t=this._material.parameters.unity_GUIZTestMode;t.scopeId||(t.scopeId=this.device.scope.resolve(hn))}addRenderer(e){this._childRenderers.includes(e)||(this._childRenderers.push(e),this._aabb.add(e.aabb))}removeRenderer(e){const t=this._childRenderers.indexOf(e);t>=0&&(this._childRenderers.splice(t,1),this._aabb=new p.b,this._childRenderers.forEach((e=>{this._aabb.add(e.aabb)})))}_sortDrawCalls(e){return e.sort(Ne.a.genericSortTransparent)}render(e,t,n,i){const r=this.getDrawCalls();for(let s=0;s<r.length;s++){const a=r[s];a.isSortingGroup?a.render(e,t,n,i):this.renderer.renderMeshInstance(e,t,n,a,i)}}getDrawCalls(){const e=this._collectMeshInstances(),t=this.childSortingGroupInstances.filter((e=>e.node.enabled));return this._sortDrawCalls([...e,...t])}_collectMeshInstances(){return this._childRenderers.filter((e=>e.enabled&&e.entity.enabled)).reduce(((e,t)=>[...e,...t.meshInstances]),[])}get material(){return this._material}get aabb(){return this._aabb}get childSortingGroupInstances(){return this._sortingGroupComponent.childSortingGroups.map((e=>e.sortingGroupRenderInstance))}get sortingLayerIndex(){return this._sortingGroupComponent.sortingLayerIndex}get sortingOrder(){return this._sortingGroupComponent.sortingOrder}}class mn extends qe.a{constructor(e,t,n,i){super(),this._entity=null,this._enabled=e,this._sortingLayerIndex=t||0,this._sortingOrder=n||0,this._sortingLayerName=i,this.internalExecutionOrder=10,this._childSortingGroups=[],this._parentSortingGroup=null,this.sortingGroupRenderInstance=new dn(this),this["__UnityEngine.Rendering.SortingGroup"]=null}onEnable(){return!!super.onEnable()&&(this.onSortingGroupChanged(),this._entity.events.on("insert",this.onSortingGroupChanged,this),this._entity.events.on("insertRecursive",this.onSortingGroupChanged,this),!0)}onDisable(){return!!super.onDisable()&&(this._entity.events.off("insert"),this._entity.events.off("insertRecursive"),!0)}configureForEntity(e){this.entity=e}addRenderer(e){y.a.getApplication().scene.removeRenderer(e),this.sortingGroupRenderInstance.addRenderer(e)}removeRenderer(e){this.sortingGroupRenderInstance.removeRenderer(e),y.a.getApplication().scene.addRenderer(e)}getMeshInstancesForRender(){return[this.sortingGroupRenderInstance]}onSortingGroupChanged(){this._setupParentSortingGroup(),this._setupChildRenderers(this._entity)}_setupParentSortingGroup(){const e=this._findParentSortingGroup();e!==this&&(this._parentSortingGroup&&(this._parentSortingGroup.removeChildSortingGroup(this),y.a.getApplication().scene.addRenderer(this)),this._parentSortingGroup=e,this._parentSortingGroup&&this._parentSortingGroup.enabled&&(this._parentSortingGroup.addChildSortingGroup(this),y.a.getApplication().scene.removeRenderer(this)))}_setupChildRenderers(e){const t=e._unityComponents.renderer[0];t instanceof pc.SpriteRendererComponent&&this.addRenderer(t);const n=e.children;for(let e=0;e<n.length;e++){const t=n[e];if(t._unityComponents.sortingGroup[0])continue;const i=t._unityComponents.renderer[0];(i instanceof pc.SpriteRendererComponent||i instanceof pc.MeshRendererComponent&&t._unityComponents.canvasRenderer[0])&&this.addRenderer(i),i instanceof pc.SpriteMaskComponent&&(i._isCustomRangeActive||(i.model.meshInstances[0].sortingLayerIndex=this._sortingLayerIndex,i.model.meshInstances[1].sortingLayerIndex=this._sortingLayerIndex),this.addRenderer(i)),this._setupChildRenderers(n[e])}}addChildSortingGroup(e){this._childSortingGroups.includes(e)||this._childSortingGroups.push(e)}removeChildSortingGroup(e){const t=this._childSortingGroups.indexOf(e);t>-1&&this._childSortingGroups.splice(t,1)}_findParentSortingGroup(){let e=null,t=this.entity._parent;if(!t)return null;for(;t;){if(e=t&&t._unityComponents.sortingGroup[0],e)return e;t=t._parent}return null}get entity(){return this._entity}set entity(e){this._entity=e,this.sortingGroupRenderInstance.node=e}get childSortingGroups(){return this._childSortingGroups}get sortingLayerIndex(){return this._sortingLayerIndex}set sortingLayerIndex(e){this._sortingLayerIndex=e}get sortingOrder(){return this._sortingOrder}set sortingOrder(e){this._sortingOrder=e}get sortingLayerName(){return this._sortingLayerName}}class gn extends y.j{constructor(e){super(e),this.id="sortingGroup"}}var $n=n(19);class pn extends $n.a{constructor(){super(),this.id=0,this._material=null,this["__UnityEngine.Skybox"]=null}get material(){return this._material}set material(e){this._material=e}}class yn extends y.j{constructor(e){super(e),this.id="skybox"}}pc.Mesh=i.b,pc.MeshInstance=i.a,pc.Model=r.a,pc.UnityMaterial=g,pc.Camera=$.a,pc.Light=I,pc.Skin=x.b,pc.VertexFormat=O.a,pc.VertexBuffer=A.a,pc.IndexBuffer=L.a,pc.Texture=u.a,pc.VertexIterator=R.a,pc.GraphicsDevice=class{constructor(e,t={}){this.canvas=e,this.shader=null,this.precision="mediump",this.maxCubeMapSize=0,this.maxTextureSize=0,this.maxVolumeSize=0,this.maxAnisotropy=0,this.indexBuffer=null,this.vertexBuffers=[],this.vbOffsets=[],this._enableAutoInstancing=!!t.enableAutoInstancing,this.autoInstancingMaxObjects=16384,this.attributesInvalidated=!0,this.activeFramebuffer=null,this.textureUnit=0,this.textureUnits=[],this._maxPixelRatio=2,this.renderTarget=null,this._width=0,this._height=0,this.updateClientRect(),this.vertexShaderCache={},this.fragmentShaderCache={},this.shaders=[],this.textures=[],this.targets=[],this.contextLost=!1,this._contextLostHandler=function(e){e.preventDefault(),this.contextLost=!0}.bind(this),this._contextRestoredHandler=function(){this.initializeContext(),this.contextLost=!1}.bind(this),e.addEventListener("webglcontextlost",this._contextLostHandler,!1),e.addEventListener("webglcontextrestored",this._contextRestoredHandler,!1);const n=!(!t||void 0===t.preferWebGl2)&&t.preferWebGl2;this.webgl2=!1;const i=n?["webgl2","experimental-webgl2","webgl","experimental-webgl"]:["webgl","experimental-webgl"];let r=null;(t=t||{}).stencil=!0,t.antialias=!t.disableAntiAliasing&&window.devicePixelRatio<2,t.alpha=!1;for(let s=0;s<i.length;s++){try{r=e.getContext(i[s],t)}catch(e){}if(r){this.webgl2=n&&s<2;break}}if(!r)throw Error("WebGL not supported");r.blendColor(0,0,0,0),this.blending=!1,this.blendSrc=c.c.BLENDMODE_ONE,this.blendDst=c.c.BLENDMODE_ZERO,this.blendSrcAlpha=c.c.BLENDMODE_ONE,this.blendDstAlpha=c.c.BLENDMODE_ZERO,this.separateAlphaBlend=!1,this.blendEquation=c.c.BLENDEQUATION_ADD,this.blendAlphaEquation=c.c.BLENDEQUATION_ADD,this.separateAlphaEquation=!1,this.writeRed=!0,this.writeGreen=!0,this.writeBlue=!0,this.writeAlpha=!0,this.depthTest=!0,this.depthFunc=c.c.FUNC_LESSEQUAL,this.depthWrite=!0,this.stencil=!1,this.stencilFuncFront=this.stencilFuncBack=c.c.FUNC_ALWAYS,this.stencilRefFront=this.stencilRefBack=0,this.stencilMaskFront=this.stencilMaskBack=255,this.stencilFailFront=this.stencilFailBack=c.c.STENCILOP_KEEP,this.stencilZfailFront=this.stencilZfailBack=c.c.STENCILOP_KEEP,this.stencilZpassFront=this.stencilZpassBack=c.c.STENCILOP_KEEP,this.stencilWriteMaskFront=255,this.stencilWriteMaskBack=255,this.alphaToCoverage=!1,this.raster=!0,this.depthBiasEnabled=!1,this.vx=this.vy=this.vw=this.vh=0,this.sx=this.sy=this.sw=this.sh=0,this.cullMode=c.c.CULLFACE_BACK,this.cullFace=r.BACK,this.unpackFlipY=!1,this.unpackPremultiplyAlpha=!1,this.clearDepth=1,this.clearRed=0,this.clearBlue=0,this.clearGreen=0,this.clearAlpha=0,this.clearStencil=0,this.gl=r,this.initializeExtensions(),this.initializeCapabilities(),this.initializeRenderState();for(let e=0;e<this.maxCombinedTextures;e++)this.textureUnits.push([null,null,null]);this.defaultClearOptions={color:[0,0,0,1],depth:1,stencil:0,flags:c.c.CLEARFLAG_COLOR|c.c.CLEARFLAG_DEPTH},this.glAddress=[r.REPEAT,r.CLAMP_TO_EDGE,r.MIRRORED_REPEAT],this.glBlendEquation=[r.FUNC_ADD,r.FUNC_SUBTRACT,r.FUNC_REVERSE_SUBTRACT,this.webgl2?r.MIN:this.extBlendMinmax?this.extBlendMinmax.MIN_EXT:r.FUNC_ADD,this.webgl2?r.MAX:this.extBlendMinmax?this.extBlendMinmax.MAX_EXT:r.FUNC_ADD],this.glBlendFunction=[r.ZERO,r.ONE,r.SRC_COLOR,r.ONE_MINUS_SRC_COLOR,r.DST_COLOR,r.ONE_MINUS_DST_COLOR,r.SRC_ALPHA,r.SRC_ALPHA_SATURATE,r.ONE_MINUS_SRC_ALPHA,r.DST_ALPHA,r.ONE_MINUS_DST_ALPHA],this.glComparison=[r.NEVER,r.LESS,r.EQUAL,r.LEQUAL,r.GREATER,r.NOTEQUAL,r.GEQUAL,r.ALWAYS],this.glStencilOp=[r.KEEP,r.ZERO,r.REPLACE,r.INCR,r.INCR_WRAP,r.DECR,r.DECR_WRAP,r.INVERT],this.glClearFlag=[0,r.COLOR_BUFFER_BIT,r.DEPTH_BUFFER_BIT,r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT,r.STENCIL_BUFFER_BIT,r.STENCIL_BUFFER_BIT|r.COLOR_BUFFER_BIT,r.STENCIL_BUFFER_BIT|r.DEPTH_BUFFER_BIT,r.STENCIL_BUFFER_BIT|r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT],this.glCull=[0,r.BACK,r.FRONT,r.FRONT_AND_BACK],this.glFilter=[r.NEAREST,r.LINEAR,r.NEAREST_MIPMAP_NEAREST,r.NEAREST_MIPMAP_LINEAR,r.LINEAR_MIPMAP_NEAREST,r.LINEAR_MIPMAP_LINEAR],this.glPrimitive=[r.POINTS,r.LINES,r.LINE_LOOP,r.LINE_STRIP,r.TRIANGLES,r.TRIANGLE_STRIP,r.TRIANGLE_FAN],this.glType=[r.BYTE,r.UNSIGNED_BYTE,r.SHORT,r.UNSIGNED_SHORT,r.INT,r.UNSIGNED_INT,r.FLOAT],this.pcUniformType={},this.pcUniformType[r.BOOL]=c.c.UNIFORMTYPE_BOOL,this.pcUniformType[r.INT]=c.c.UNIFORMTYPE_INT,this.pcUniformType[r.FLOAT]=c.c.UNIFORMTYPE_FLOAT,this.pcUniformType[r.FLOAT_VEC2]=c.c.UNIFORMTYPE_VEC2,this.pcUniformType[r.FLOAT_VEC3]=c.c.UNIFORMTYPE_VEC3,this.pcUniformType[r.FLOAT_VEC4]=c.c.UNIFORMTYPE_VEC4,this.pcUniformType[r.INT_VEC2]=c.c.UNIFORMTYPE_IVEC2,this.pcUniformType[r.INT_VEC3]=c.c.UNIFORMTYPE_IVEC3,this.pcUniformType[r.INT_VEC4]=c.c.UNIFORMTYPE_IVEC4,this.pcUniformType[r.BOOL_VEC2]=c.c.UNIFORMTYPE_BVEC2,this.pcUniformType[r.BOOL_VEC3]=c.c.UNIFORMTYPE_BVEC3,this.pcUniformType[r.BOOL_VEC4]=c.c.UNIFORMTYPE_BVEC4,this.pcUniformType[r.FLOAT_MAT2]=c.c.UNIFORMTYPE_MAT2,this.pcUniformType[r.FLOAT_MAT3]=c.c.UNIFORMTYPE_MAT3,this.pcUniformType[r.FLOAT_MAT4]=c.c.UNIFORMTYPE_MAT4,this.pcUniformType[r.SAMPLER_2D]=c.c.UNIFORMTYPE_TEXTURE2D,this.pcUniformType[r.SAMPLER_CUBE]=c.c.UNIFORMTYPE_TEXTURECUBE,this.webgl2&&(this.pcUniformType[r.SAMPLER_2D_SHADOW]=c.c.UNIFORMTYPE_TEXTURE2D_SHADOW,this.pcUniformType[r.SAMPLER_CUBE_SHADOW]=c.c.UNIFORMTYPE_TEXTURECUBE_SHADOW,this.pcUniformType[r.SAMPLER_3D]=c.c.UNIFORMTYPE_TEXTURE3D),this.targetToSlot={},this.targetToSlot[r.TEXTURE_2D]=0,this.targetToSlot[r.TEXTURE_CUBE_MAP]=1,this.targetToSlot[r.TEXTURE_3D]=2,this.commitFunction=[],this.commitFunction[c.c.UNIFORMTYPE_BOOL]=function(e,t){e.value!==t&&(r.uniform1i(e.locationId,t),e.value=t)},this.commitFunction[c.c.UNIFORMTYPE_INT]=this.commitFunction[c.c.UNIFORMTYPE_BOOL],this.commitFunction[c.c.UNIFORMTYPE_FLOAT]=function(e,t){e.value!==t&&(r.uniform1f(e.locationId,t),e.value=t)},this.commitFunction[c.c.UNIFORMTYPE_VEC2]=function(e,t){const n=e.value,i=t[0],s=t[1];n[0]===i&&n[1]===s||(n[0]=i,n[1]=s,r.uniform2fv(e.locationId,n))},this.commitFunction[c.c.UNIFORMTYPE_VEC3]=function(e,t){const n=e.value,i=t[0],s=t[1],a=t[2];n[0]===i&&n[1]===s&&n[2]===a||(n[0]=i,n[1]=s,n[2]=a,r.uniform3fv(e.locationId,n))},this.commitFunction[c.c.UNIFORMTYPE_VEC4]=function(e,t){const n=e.value,i=t[0],s=t[1],a=t[2],o=t[3];(t.length>4||n[0]!==i||n[1]!==s||n[2]!==a||n[3]!==o)&&(r.uniform4fv(e.locationId,t),n[0]=i,n[1]=s,n[2]=a,n[3]=o)},this.commitFunction[c.c.UNIFORMTYPE_IVEC2]=function(e,t){const n=e.value,i=t[0],s=t[1];n[0]===i&&n[1]===s||(r.uniform2iv(e.locationId,t),n[0]=i,n[1]=s)},this.commitFunction[c.c.UNIFORMTYPE_BVEC2]=this.commitFunction[c.c.UNIFORMTYPE_IVEC2],this.commitFunction[c.c.UNIFORMTYPE_IVEC3]=function(e,t){const n=e.value,i=t[0],s=t[1],a=t[2];n[0]===i&&n[1]===s&&n[2]===a||(r.uniform3iv(e.locationId,t),n[0]=i,n[1]=s,n[2]=a)},this.commitFunction[c.c.UNIFORMTYPE_BVEC3]=this.commitFunction[c.c.UNIFORMTYPE_IVEC3],this.commitFunction[c.c.UNIFORMTYPE_IVEC4]=function(e,t){const n=e.value,i=t[0],s=t[1],a=t[2],o=t[3];n[0]===i&&n[1]===s&&n[2]===a&&n[3]===o||(r.uniform4iv(e.locationId,t),n[0]=i,n[1]=s,n[2]=a,n[3]=o)},this.commitFunction[c.c.UNIFORMTYPE_BVEC4]=this.commitFunction[c.c.UNIFORMTYPE_IVEC4],this.commitFunction[c.c.UNIFORMTYPE_MAT2]=function(e,t){r.uniformMatrix2fv(e.locationId,!1,t)},this.commitFunction[c.c.UNIFORMTYPE_MAT3]=function(e,t){r.uniformMatrix3fv(e.locationId,!1,t)},this.commitFunction[c.c.UNIFORMTYPE_MAT4]=function(e,t){r.uniformMatrix4fv(e.locationId,!1,t)},this.commitFunction[c.c.UNIFORMTYPE_FLOATARRAY]=function(e,t){r.uniform1fv(e.locationId,t)},this.scope=new de("Device"),this.programLib=new ae(this);for(const e in q)q.hasOwnProperty(e)&&this.programLib.register(e,q[e]);this.events=new c.a(this),this.supportsBoneTextures=this.extTextureFloat&&this.maxVertexTextures>0,this.useTexCubeLod=this.extTextureLod&&this.maxTextures<16;let s=this.vertexUniformsCount;s-=16,s-=8,s-=1,s-=16,this.boneLimit=Math.floor(s/4),this.boneLimit=Math.min(this.boneLimit,128),"Mali-450 MP"===this.unmaskedRenderer&&(this.boneLimit=34),"Apple A8 GPU"===this.unmaskedRenderer&&(this.forceCpuParticles=!0),this._drawCallsPerFrame=0,this._vram={tex:0,vb:0,ib:0},this._shaderStats={vsCompiled:0,fsCompiled:0,linked:0,materialShaders:0,compileTime:0},this.constantTexSource=this.scope.resolve("source"),this.extTextureFloat?this.webgl2?this.textureFloatRenderable=!!this.extColorBufferFloat:this.textureFloatRenderable=Ce(r,r.FLOAT):this.textureFloatRenderable=!1,this.extTextureHalfFloat?this.webgl2?this.textureHalfFloatRenderable=!!this.extColorBufferFloat:this.textureHalfFloatRenderable=Ce(r,this.extTextureHalfFloat.HALF_FLOAT_OES):this.textureHalfFloatRenderable=!1,this.initializeGrabPassTexture(),this.activeDrawCall=null,this.geometryStateManager=new ge(this)}getPrecision(){const e=this.gl;let t="highp";if(e.getShaderPrecisionFormat){const n=e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT),i=e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT),r=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT),s=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT),a=n.precision>0&&r.precision>0,o=i.precision>0&&s.precision>0;a||(t=o?"mediump":"lowp")}return t}initializeExtensions(){const e=this.gl,t=e.getSupportedExtensions()||[],n=function(...n){let i=null;for(let r=0;r<n.length;r++)-1!==t.indexOf(n[r])&&(i=e.getExtension(n[r]));return i};if(this.webgl2)this.extBlendMinmax=!0,this.extDrawBuffers=!0,this.extInstancing=!0,this.extStandardDerivatives=!0,this.extTextureFloat=!0,this.extTextureHalfFloat=!0,this.extTextureHalfFloatLinear=!0,this.extTextureLod=!0,this.extUintElement=!0,this.extVertexArrayObject=!0,this.extColorBufferFloat=n("EXT_color_buffer_float");else{if(this.extBlendMinmax=n("EXT_blend_minmax"),this.extDrawBuffers=n("EXT_draw_buffers"),this.extInstancing=n("ANGLE_instanced_arrays"),this.extInstancing){const t=this.extInstancing;e.drawArraysInstanced=t.drawArraysInstancedANGLE.bind(t),e.drawElementsInstanced=t.drawElementsInstancedANGLE.bind(t),e.vertexAttribDivisor=t.vertexAttribDivisorANGLE.bind(t)}else console.warn("Instancing is not supported on this device, some of the features will not work properly (e.g. particles)"),e.drawArraysInstanced=function(){},e.drawElementsInstanced=function(){},e.vertexAttribDivisor=function(){};if(this.extStandardDerivatives=n("OES_standard_derivatives"),this.extTextureFloat=n("OES_texture_float"),this.extTextureHalfFloat=n("OES_texture_half_float"),this.extTextureHalfFloatLinear=n("OES_texture_half_float_linear"),this.extTextureLod=n("EXT_shader_texture_lod"),this.extUintElement=n("OES_element_index_uint"),this.extVertexArrayObject=n("OES_vertex_array_object"),this.extVertexArrayObject){const t=this.extVertexArrayObject;e.createVertexArray=t.createVertexArrayOES.bind(t),e.deleteVertexArray=t.deleteVertexArrayOES.bind(t),e.isVertexArray=t.isVertexArrayOES.bind(t),e.bindVertexArray=t.bindVertexArrayOES.bind(t)}this.extColorBufferFloat=null,this.extDepthTexture=n("WEBGL_depth_texture")}this.extDebugRendererInfo=n("WEBGL_debug_renderer_info"),this.extTextureFloatLinear=n("OES_texture_float_linear"),this.extTextureFilterAnisotropic=n("EXT_texture_filter_anisotropic","WEBKIT_EXT_texture_filter_anisotropic"),this.extCompressedTextureETC1=n("WEBGL_compressed_texture_etc1"),this.extCompressedTextureETC=n("WEBGL_compressed_texture_etc"),this.extCompressedTexturePVRTC=n("WEBGL_compressed_texture_pvrtc","WEBKIT_WEBGL_compressed_texture_pvrtc"),this.extCompressedTextureS3TC=n("WEBGL_compressed_texture_s3tc","WEBKIT_WEBGL_compressed_texture_s3tc"),this.extParallelShaderCompile=n("KHR_parallel_shader_compile")}initializeCapabilities(){const e=this.gl;let t;this.maxPrecision=this.precision=this.getPrecision();const n=e.getContextAttributes();this.supportsMsaa=n.antialias,this.supportsStencil=n.stencil,this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),this.maxCubeMapSize=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),this.maxRenderBufferSize=e.getParameter(e.MAX_RENDERBUFFER_SIZE),this.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),this.maxCombinedTextures=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS),this.maxVertexTextures=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),this.vertexUniformsCount=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),this.fragmentUniformsCount=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),this.maxVertexAttributes=e.getParameter(e.MAX_VERTEX_ATTRIBS),this.webgl2?(this.maxDrawBuffers=e.getParameter(e.MAX_DRAW_BUFFERS),this.maxColorAttachments=e.getParameter(e.MAX_COLOR_ATTACHMENTS),this.maxVolumeSize=e.getParameter(e.MAX_3D_TEXTURE_SIZE)):(t=this.extDrawBuffers,this.maxDrawBuffers=t?e.getParameter(t.MAX_DRAW_BUFFERS_EXT):1,this.maxColorAttachments=t?e.getParameter(t.MAX_COLOR_ATTACHMENTS_EXT):1,this.maxVolumeSize=1),t=this.extDebugRendererInfo,this.unmaskedRenderer=t?e.getParameter(t.UNMASKED_RENDERER_WEBGL):"",this.unmaskedVendor=t?e.getParameter(t.UNMASKED_VENDOR_WEBGL):"",t=this.extTextureFilterAnisotropic,this.maxAnisotropy=t?e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT):1}initializeRenderState(){const e=this.gl;this.blending=!1,e.disable(e.BLEND),this.blendSrc=c.c.BLENDMODE_ONE,this.blendDst=c.c.BLENDMODE_ZERO,this.blendSrcAlpha=c.c.BLENDMODE_ONE,this.blendDstAlpha=c.c.BLENDMODE_ZERO,this.separateAlphaBlend=!1,this.blendEquation=c.c.BLENDEQUATION_ADD,this.blendAlphaEquation=c.c.BLENDEQUATION_ADD,this.separateAlphaEquation=!1,e.blendFunc(e.ONE,e.ZERO),e.blendEquation(e.FUNC_ADD),this.writeRed=!0,this.writeGreen=!0,this.writeBlue=!0,this.writeAlpha=!0,e.colorMask(!0,!0,!0,!0),this.cullMode=c.c.CULLFACE_BACK,e.enable(e.CULL_FACE),e.cullFace(e.BACK),this.depthTest=!0,e.enable(e.DEPTH_TEST),this.depthFunc=c.c.FUNC_LESSEQUAL,e.depthFunc(e.LEQUAL),this.depthWrite=!0,e.depthMask(!0),this.stencil=!1,e.disable(e.STENCIL_TEST),this.stencilFuncFront=this.stencilFuncBack=c.c.FUNC_ALWAYS,this.stencilRefFront=this.stencilRefBack=0,this.stencilMaskFront=this.stencilMaskBack=255,e.stencilFunc(e.ALWAYS,0,255),this.stencilFailFront=this.stencilFailBack=c.c.STENCILOP_KEEP,this.stencilZfailFront=this.stencilZfailBack=c.c.STENCILOP_KEEP,this.stencilZpassFront=this.stencilZpassBack=c.c.STENCILOP_KEEP,this.stencilWriteMaskFront=255,this.stencilWriteMaskBack=255,e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.stencilMask(255),this.alphaToCoverage=!1,this.raster=!0,this.webgl2&&(e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.disable(e.RASTERIZER_DISCARD)),this.depthBiasEnabled=!1,e.disable(e.POLYGON_OFFSET_FILL),this.clearDepth=1,e.clearDepth(1),this.clearRed=0,this.clearBlue=0,this.clearGreen=0,this.clearAlpha=0,e.clearColor(0,0,0,0),this.clearStencil=0,e.clearStencil(0),this.vx=this.vy=this.vw=this.vh=0,this.sx=this.sy=this.sw=this.sh=0,this.webgl2?e.hint(e.FRAGMENT_SHADER_DERIVATIVE_HINT,e.NICEST):this.extStandardDerivatives&&e.hint(this.extStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES,e.NICEST),e.enable(e.SCISSOR_TEST),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,e.NONE),this.unpackFlipY=!1,e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!1),this.unpackPremultiplyAlpha=!1,e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),this.depthRange=new p.l(0,1),e.depthRange(this.depthRange.x,this.depthRange.y)}initializeContext(){this.initializeExtensions(),this.initializeCapabilities(),this.initializeRenderState();for(let e=0,t=this.shaders.length;e<t;e++)this.compileShaderAndBindAttributes(this.shaders[e]);this.shader=null,this.indexBuffer=null,this.attributesInvalidated=!0,this.vertexBuffers=[];for(let e=0,t=this.textures.length;e<t;e++){const t=this.textures[e];this.destroyTexture(t),t.dirtyAll()}this.textureUnit=0,this.textureUnits.length=0;for(let e=0;e<this.maxCombinedTextures;e++)this.textureUnits.push([null,null,null]);for(let e=0,t=this.targets.length;e<t;e++)this.targets[e]._glFrameBuffer=null,this.targets[e]._glDepthBuffer=null,this.targets[e]._glResolveFrameBuffer=null,this.targets[e]._glMsaaColorBuffer=null,this.targets[e]._glMsaaDepthBuffer=null;this.renderTarget=null,this.activeFramebuffer=null}initializeGrabPassTexture(){if(this.grabPassTexture)return;const e=new u.a(this,{name:"texture_grabPass",format:c.c.PIXELFORMAT_R8_G8_B8_A8,autoMipmap:!1});e.minFilter=c.c.FILTER_LINEAR,e.magFilter=c.c.FILTER_LINEAR,e.addressU=c.c.ADDRESS_CLAMP_TO_EDGE,e.addressV=c.c.ADDRESS_CLAMP_TO_EDGE,e.setSource(this.canvas);const t=this.scope.resolve(e.name);t.setValue(e),this.grabPassTextureId=t,this.grabPassTexture=e}updateClientRect(){this.clientRect=this.canvas.getBoundingClientRect()}setViewport(e,t,n,i){this.vx===e&&this.vy===t&&this.vw===n&&this.vh===i||(this.gl.viewport(e,t,n,i),this.vx=e,this.vy=t,this.vw=n,this.vh=i)}setDepthRange(e,t){this.depthRange.x===e&&this.depthRange.y===t||(this.depthRange.set(e,t),this.gl.depthRange(e,t))}setScissor(e,t,n,i){this.sx===e&&this.sy===t&&this.sw===n&&this.sh===i||(this.gl.scissor(e,t,n,i),this.sx=e,this.sy=t,this.sw=n,this.sh=i)}getProgramLibrary(){return this.programLib}setProgramLibrary(e){this.programLib=e}setFramebuffer(e){this.activeFramebuffer!==e&&(this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,e),this.activeFramebuffer=e)}_checkFbo(){const e=this.gl;switch(e.checkFramebufferStatus(e.FRAMEBUFFER)){case e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:UnityEngine.Debug.LogError$1("ERROR: FRAMEBUFFER_INCOMPLETE_ATTACHMENT");break;case e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:UnityEngine.Debug.LogError$1("ERROR: FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT");break;case e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:UnityEngine.Debug.LogError$1("ERROR: FRAMEBUFFER_INCOMPLETE_DIMENSIONS");break;case e.FRAMEBUFFER_UNSUPPORTED:UnityEngine.Debug.LogError$1("ERROR: FRAMEBUFFER_UNSUPPORTED");case e.FRAMEBUFFER_COMPLETE:}}updateBegin(){const e=this.gl,t=this.renderTarget;if(t)if(t._glFrameBuffer){this.setFramebuffer(t._glFrameBuffer);const e=t._colorBuffer;e&&(this.setViewport(0,0,e._width,e._height),this.setScissor(0,0,e._width,e._height))}else{t._device=this,t._glFrameBuffer=e.createFramebuffer(),this.setFramebuffer(t._glFrameBuffer);const n=t._colorBuffer;n&&(n._glTexture||(n._width=Math.min(n.width,this.maxRenderBufferSize),n._height=Math.min(n.height,this.maxRenderBufferSize),this.setTexture(n,0)),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,n._cubemap?e.TEXTURE_CUBE_MAP_POSITIVE_X+t._face:e.TEXTURE_2D,n._glTexture,0));const i=t._depthBuffer;i&&this.webgl2?(i._glTexture||(i._width=Math.min(i.width,this.maxRenderBufferSize),i._height=Math.min(i.height,this.maxRenderBufferSize),this.setTexture(i,0)),t._stencil?e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,i._cubemap?e.TEXTURE_CUBE_MAP_POSITIVE_X+t._face:e.TEXTURE_2D,t._depthBuffer._glTexture,0):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,i._cubemap?e.TEXTURE_CUBE_MAP_POSITIVE_X+t._face:e.TEXTURE_2D,t._depthBuffer._glTexture,0)):t._depth&&(this.extDepthTexture&&t.depthBuffer?(this.setTexture(t.depthBuffer,0),t._stencil?e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,i._cubemap?e.TEXTURE_CUBE_MAP_POSITIVE_X+t._face:e.TEXTURE_2D,t._depthBuffer._glTexture,0):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,i._cubemap?e.TEXTURE_CUBE_MAP_POSITIVE_X+t._face:e.TEXTURE_2D,t._depthBuffer._glTexture,0)):t._samples>1&&this.webgl2||(t._glDepthBuffer||(t._glDepthBuffer=e.createRenderbuffer()),e.bindRenderbuffer(e.RENDERBUFFER,t._glDepthBuffer),t._stencil?(e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,t._glDepthBuffer)):(e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t._glDepthBuffer)),e.bindRenderbuffer(e.RENDERBUFFER,null))),this.webgl2&&t._samples>1&&(t._glResolveFrameBuffer=t._glFrameBuffer,t._glFrameBuffer=e.createFramebuffer(),this.setFramebuffer(t._glFrameBuffer),n&&(t._glMsaaColorBuffer||(t._glMsaaColorBuffer=e.createRenderbuffer()),e.bindRenderbuffer(e.RENDERBUFFER,t._glMsaaColorBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,t._samples,n._glInternalFormat,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,t._glMsaaColorBuffer)),t._depth&&(t._glMsaaDepthBuffer||(t._glMsaaDepthBuffer=e.createRenderbuffer()),e.bindRenderbuffer(e.RENDERBUFFER,t._glMsaaDepthBuffer),t._stencil?(e.renderbufferStorageMultisample(e.RENDERBUFFER,t._samples,e.DEPTH24_STENCIL8,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,t._glMsaaDepthBuffer)):(e.renderbufferStorageMultisample(e.RENDERBUFFER,t._samples,e.DEPTH_COMPONENT32F,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t._glMsaaDepthBuffer)))),this.targets.push(t)}else this.setFramebuffer(null)}updateEnd(){const e=this.gl,t=this.renderTarget;if(t){const n=t._colorBuffer;n&&n._glTexture&&n.mipmaps&&n._pot&&(this.activeTexture(this.maxCombinedTextures-1),this.bindTexture(n),e.generateMipmap(n._glTarget)),this.webgl2&&t._samples>1&&t.autoResolve&&t.resolve()}this.geometryStateManager.unbindVertexArrayObject()}initializeTexture(e){const t=this.gl;let n;switch(e._glTexture=t.createTexture(),e._levels&&e._levels[0]&&"VIDEO"===e._levels[0].tagName&&(e._needsUpdate=!0),e._glTarget=e._cubemap?t.TEXTURE_CUBE_MAP:e._volume?t.TEXTURE_3D:t.TEXTURE_2D,e._format){case c.c.PIXELFORMAT_A8:e._glFormat=t.ALPHA,e._glInternalFormat=t.ALPHA,e._glPixelType=t.UNSIGNED_BYTE;break;case c.c.PIXELFORMAT_L8:e._glFormat=t.LUMINANCE,e._glInternalFormat=t.LUMINANCE,e._glPixelType=t.UNSIGNED_BYTE;break;case c.c.PIXELFORMAT_L8_A8:e._glFormat=t.LUMINANCE_ALPHA,e._glInternalFormat=t.LUMINANCE_ALPHA,e._glPixelType=t.UNSIGNED_BYTE;break;case c.c.PIXELFORMAT_R5_G6_B5:e._glFormat=t.RGB,e._glInternalFormat=t.RGB,e._glPixelType=t.UNSIGNED_SHORT_5_6_5;break;case c.c.PIXELFORMAT_R5_G5_B5_A1:e._glFormat=t.RGBA,e._glInternalFormat=t.RGBA,e._glPixelType=t.UNSIGNED_SHORT_5_5_5_1;break;case c.c.PIXELFORMAT_R4_G4_B4_A4:e._glFormat=t.RGBA,e._glInternalFormat=t.RGBA,e._glPixelType=t.UNSIGNED_SHORT_4_4_4_4;break;case c.c.PIXELFORMAT_R8_G8_B8:e._glFormat=t.RGB,e._glInternalFormat=this.webgl2?t.RGB8:t.RGB,e._glPixelType=t.UNSIGNED_BYTE;break;case c.c.PIXELFORMAT_R8_G8_B8_A8:e._glFormat=t.RGBA,e._glInternalFormat=this.webgl2?t.RGBA8:t.RGBA,e._glPixelType=t.UNSIGNED_BYTE;break;case c.c.PIXELFORMAT_DXT1:n=this.extCompressedTextureS3TC,e._glFormat=t.RGB,e._glInternalFormat=n.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case c.c.PIXELFORMAT_DXT3:n=this.extCompressedTextureS3TC,e._glFormat=t.RGBA,e._glInternalFormat=n.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case c.c.PIXELFORMAT_DXT5:n=this.extCompressedTextureS3TC,e._glFormat=t.RGBA,e._glInternalFormat=n.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;case c.c.PIXELFORMAT_ETC1:n=this.extCompressedTextureETC1,e._glFormat=t.RGB,e._glInternalFormat=n.COMPRESSED_RGB_ETC1_WEBGL;break;case c.c.PIXELFORMAT_PVRTC_2BPP_RGB_1:n=this.extCompressedTexturePVRTC,e._glFormat=t.RGB,e._glInternalFormat=n.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;break;case c.c.PIXELFORMAT_PVRTC_2BPP_RGBA_1:n=this.extCompressedTexturePVRTC,e._glFormat=t.RGBA,e._glInternalFormat=n.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;break;case c.c.PIXELFORMAT_PVRTC_4BPP_RGB_1:n=this.extCompressedTexturePVRTC,e._glFormat=t.RGB,e._glInternalFormat=n.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;break;case c.c.PIXELFORMAT_PVRTC_4BPP_RGBA_1:n=this.extCompressedTexturePVRTC,e._glFormat=t.RGBA,e._glInternalFormat=n.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;break;case c.c.PIXELFORMAT_ETC2_RGB:n=this.extCompressedTextureETC,e._glFormat=t.RGB,e._glInternalFormat=n.COMPRESSED_RGB8_ETC2;break;case c.c.PIXELFORMAT_ETC2_RGBA:n=this.extCompressedTextureETC,e._glFormat=t.RGBA,e._glInternalFormat=n.COMPRESSED_RGBA8_ETC2_EAC;break;case c.c.PIXELFORMAT_RGB16F:n=this.extTextureHalfFloat,e._glFormat=t.RGB,this.webgl2?(e._glInternalFormat=t.RGB16F,e._glPixelType=t.HALF_FLOAT):(e._glInternalFormat=t.RGB,e._glPixelType=n.HALF_FLOAT_OES);break;case c.c.PIXELFORMAT_RGBA16F:n=this.extTextureHalfFloat,e._glFormat=t.RGBA,this.webgl2?(e._glInternalFormat=t.RGBA16F,e._glPixelType=t.HALF_FLOAT):(e._glInternalFormat=t.RGBA,e._glPixelType=n.HALF_FLOAT_OES);break;case c.c.PIXELFORMAT_RGB32F:e._glFormat=t.RGB,this.webgl2?e._glInternalFormat=t.RGB32F:e._glInternalFormat=t.RGB,e._glPixelType=t.FLOAT;break;case c.c.PIXELFORMAT_RGBA32F:e._glFormat=t.RGBA,this.webgl2?e._glInternalFormat=t.RGBA32F:e._glInternalFormat=t.RGBA,e._glPixelType=t.FLOAT;break;case c.c.PIXELFORMAT_R32F:e._glFormat=t.RED,e._glInternalFormat=t.R32F,e._glPixelType=t.FLOAT;break;case c.c.PIXELFORMAT_DEPTH:this.webgl2?(e._glFormat=t.DEPTH_COMPONENT,e._glInternalFormat=t.DEPTH_COMPONENT32F,e._glPixelType=t.FLOAT):(e._glFormat=t.DEPTH_COMPONENT,e._glInternalFormat=t.DEPTH_COMPONENT,e._glPixelType=t.UNSIGNED_INT);break;case c.c.PIXELFORMAT_DEPTHSTENCIL:e._glFormat=t.DEPTH_STENCIL,e._glInternalFormat=t.DEPTH24_STENCIL8,e._glPixelType=t.UNSIGNED_INT_24_8;break;case c.c.PIXELFORMAT_111110F:e._glFormat=t.RGB,e._glInternalFormat=t.R11F_G11F_B10F,e._glPixelType=t.FLOAT;break;case c.c.PIXELFORMAT_SRGB:e._glFormat=t.RGB,e._glInternalFormat=t.SRGB8,e._glPixelType=t.UNSIGNED_BYTE;break;case c.c.PIXELFORMAT_SRGBA:e._glFormat=t.RGBA,e._glInternalFormat=t.SRGB8_ALPHA8,e._glPixelType=t.UNSIGNED_BYTE}this.textures.push(e)}destroyTexture(e){if(e._glTexture){const t=this.textures.indexOf(e);-1!==t&&this.textures.splice(t,1);for(const t in this.scope.variables)if(this.scope.variables.hasOwnProperty(t)){const n=this.scope.variables[t];n.value===e&&(n.value=null)}for(let t=0;t<this.textureUnits.length;t++){const n=this.textureUnits[t];for(let t=0;t<n.length;t++)n[t]===e._glTexture&&(n[t]=null)}this.gl.deleteTexture(e._glTexture),delete e._glTexture,delete e._glTarget,delete e._glFormat,delete e._glInternalFormat,delete e._glPixelType,this._vram.tex-=e._gpuSize}}setUnpackFlipY(e){if(this.unpackFlipY!==e){this.unpackFlipY=e;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e)}}setUnpackPremultiplyAlpha(e){if(this.unpackPremultiplyAlpha!==e){this.unpackPremultiplyAlpha=e;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e)}}uploadCubemapFromAtlas(e){const t=e._atlas,n=this.gl,i=this.textureUnits[0],r=i?i[0]:null;t._glTexture||(this.setTexture(t,0),this.uploadTexture(t));const s=this.activeFramebuffer,a=n.createFramebuffer();this.setFramebuffer(a),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,t._glTexture,0),e._needsUpload=!1,e._needsMipmapsUpload=!1,this.setTexture(e,0);for(let i=0;i<e._rects.length;i+=4){const r=e._rects[i+0]*t._width,s=e._rects[i+1]*t._height,a=e._rects[i+2]*t._width-r,o=e._rects[i+3]*t._height-s,l=i/4|0,c=l/6|0,u=l%6|0;n.copyTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+u,c,e._glInternalFormat,r,s,a,o,0)}e._mipmaps&&24===e._rects.length&&n.generateMipmap(e._glTarget),this.setFramebuffer(s),r&&(n.bindTexture(n.TEXTURE_2D,r),this.textureUnits[0][0]=r)}uploadTexture(e){const t=this.gl;if(!e._needsUpload&&(e._needsMipmapsUpload&&e._mipmapsUploaded||!e._pot))return;let n,i,r=0;for(e._cubemap&&e._atlas&&e._rects&&this.uploadCubemapFromAtlas(e);e._levels[r]||0===r;)if(e._needsUpload||0!==r){if(r&&(!e._needsMipmapsUpload||!e._mipmaps))break;if(n=e._levels[r],1!==r||e._compressed||(t.generateMipmap(e._glTarget),e._mipmapsUploaded=!0),e._cubemap){let s;if(n[0]instanceof HTMLCanvasElement||n[0]instanceof HTMLImageElement||n[0]instanceof HTMLVideoElement)for(s=0;s<6;s++){if(!e._levelsUpdated[0][s])continue;let i=n[s];i instanceof HTMLImageElement&&(i.width>this.maxCubeMapSize||i.height>this.maxCubeMapSize)&&(i=be(i,this.maxCubeMapSize),0===r&&(e.width=i.width,e.height=i.height)),this.setUnpackFlipY(e._flipY),this.setUnpackPremultiplyAlpha(e._premultiplyAlpha),t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+s,r,e._glInternalFormat,e._glFormat,e._glPixelType,i)}else for(this.setUnpackPremultiplyAlpha(e._premultiplyAlpha),i=1/Math.pow(2,r),s=0;s<6;s++){if(!e._levelsUpdated[0][s])continue;const a=n[s];e._compressed?t.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+s,r,e._glInternalFormat,Math.max(e._width*i,1),Math.max(e._height*i,1),0,a):(this.setUnpackFlipY(e._flipY),this.setUnpackPremultiplyAlpha(e._premultiplyAlpha),t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+s,r,e._glInternalFormat,Math.max(e._width*i,1),Math.max(e._height*i,1),0,e._glFormat,e._glPixelType,a))}}else e._volume?(i=1/Math.pow(2,r),e._compressed?t.compressedTexImage3D(t.TEXTURE_3D,r,e._glInternalFormat,Math.max(e._width*i,1),Math.max(e._height*i,1),Math.max(e._depth*i,1),0,n):(this.setUnpackFlipY(!1),this.setUnpackPremultiplyAlpha(e._premultiplyAlpha),t.texImage3D(t.TEXTURE_3D,r,e._glInternalFormat,Math.max(e._width*i,1),Math.max(e._height*i,1),Math.max(e._depth*i,1),0,e._glFormat,e._glPixelType,n))):(n instanceof HTMLCanvasElement||n instanceof HTMLImageElement||n instanceof HTMLVideoElement?(n instanceof HTMLImageElement&&(n.width>this.maxTextureSize||n.height>this.maxTextureSize)&&(n=be(n,this.maxTextureSize),0===r&&(e.width=n.width,e.height=n.height)),this.setUnpackFlipY(e._flipY),this.setUnpackPremultiplyAlpha(e._premultiplyAlpha),t.texImage2D(t.TEXTURE_2D,r,e._glInternalFormat,e._glFormat,e._glPixelType,n)):(i=1/Math.pow(2,r),e._compressed?t.compressedTexImage2D(t.TEXTURE_2D,r,e._glInternalFormat,Math.max(e._width*i,1),Math.max(e._height*i,1),0,n):(this.setUnpackFlipY(!1),this.setUnpackPremultiplyAlpha(e._premultiplyAlpha),t.texImage2D(t.TEXTURE_2D,r,e._glInternalFormat,Math.max(e._width*i,1),Math.max(e._height*i,1),0,e._glFormat,e._glPixelType,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST))),e._mipmapsUploaded=0!==r);r++}else r++;if(e._needsUpload)if(e._cubemap)for(let t=0;t<6;t++)e._levelsUpdated[0][t]=!1;else e._levelsUpdated[0]=!1;!e._compressed&&e._mipmaps&&e._needsMipmapsUpload&&e._pot&&1===e._levels.length&&(t.generateMipmap(e._glTarget),e._mipmapsUploaded=!0),e._gpuSize&&(this._vram.tex-=e._gpuSize),e._gpuSize=e.gpuSize,this._vram.tex+=e._gpuSize}activeTexture(e){this.textureUnit!==e&&(this.gl.activeTexture(this.gl.TEXTURE0+e),this.textureUnit=e)}bindTexture(e){const t=e._glTarget,n=e._glTexture,i=this.textureUnit,r=this.targetToSlot[t];this.textureUnits[i][r]!==n&&(this.gl.bindTexture(t,n),this.textureUnits[i][r]=n)}bindTextureOnUnit(e,t){const n=e._glTarget,i=e._glTexture,r=this.targetToSlot[n];this.textureUnits[t][r]!==i&&(this.activeTexture(t),this.gl.bindTexture(n,i),this.textureUnits[t][r]=i)}setTextureParameters(e){const t=this.gl,n=e._parameterFlags,i=e._glTarget;if(1&n){let n=e._minFilter;(!e._pot||!e._mipmaps||e._compressed&&1===e._levels.length)&&(n===c.c.FILTER_NEAREST_MIPMAP_NEAREST||n===c.c.FILTER_NEAREST_MIPMAP_LINEAR?n=c.c.FILTER_NEAREST:n!==c.c.FILTER_LINEAR_MIPMAP_NEAREST&&n!==c.c.FILTER_LINEAR_MIPMAP_LINEAR||(n=c.c.FILTER_LINEAR)),t.texParameteri(i,t.TEXTURE_MIN_FILTER,this.glFilter[n])}if(2&n&&t.texParameteri(i,t.TEXTURE_MAG_FILTER,this.glFilter[e._magFilter]),4&n&&(this.webgl2?t.texParameteri(i,t.TEXTURE_WRAP_S,this.glAddress[e._addressU]):t.texParameteri(i,t.TEXTURE_WRAP_S,this.glAddress[e._pot?e._addressU:c.c.ADDRESS_CLAMP_TO_EDGE])),8&n&&(this.webgl2?t.texParameteri(i,t.TEXTURE_WRAP_T,this.glAddress[e._addressV]):t.texParameteri(i,t.TEXTURE_WRAP_T,this.glAddress[e._pot?e._addressV:c.c.ADDRESS_CLAMP_TO_EDGE])),16&n&&this.webgl2&&t.texParameteri(i,t.TEXTURE_WRAP_R,this.glAddress[e._addressW]),32&n&&this.webgl2&&t.texParameteri(i,t.TEXTURE_COMPARE_MODE,e._compareOnRead?t.COMPARE_REF_TO_TEXTURE:t.NONE),64&n&&this.webgl2&&t.texParameteri(i,t.TEXTURE_COMPARE_FUNC,this.glComparison[e._compareFunc]),128&n){const n=this.extTextureFilterAnisotropic;n&&t.texParameterf(i,n.TEXTURE_MAX_ANISOTROPY_EXT,Math.max(1,Math.min(Math.round(e._anisotropy),this.maxAnisotropy)))}}setTexture(e,t){e._glTexture||this.initializeTexture(e),e._parameterFlags>0||e._needsUpload||e._needsMipmapsUpload?(this.activeTexture(t),this.bindTexture(e),e._parameterFlags&&(this.setTextureParameters(e),e._parameterFlags=0),(e._needsUpload||e._needsMipmapsUpload)&&(this.uploadTexture(e),e!==this.grabPassTexture&&(e.markUploaded(),e._needsMipmapsUpload=!1))):this.bindTextureOnUnit(e,t)}setBuffers(e,t={}){const n=this.gl;let i,r;const s=this.shader.attributes;if(this.attributesInvalidated){let t,a,o;const l=!!this.activeDrawCall;this.geometryStateManager.disableAllAttributes();for(let u=0,h=s.length;u<h;u++){i=s[u];const h=i.locationId;t=i.scopeId.value;const d=h>c.c.ShaderAttributeSlots[c.c.SEMANTIC_TEXCOORD0]&&h<=c.c.ShaderAttributeSlots[c.c.SEMANTIC_TEXCOORD3],m=l&&this.activeDrawCall.hasUVChannel(i.scopeId.name),g=d&&l&&!m;if(null!==t&&(a=this.vertexBuffers[t.stream],o=this.vbOffsets[t.stream]||0,a&&!a.format.elementMap[t.name]&&!g)){const e=i.locationId;this.geometryStateManager.disableVertexAttribArray(e),t=null}if(t||g){if(void 0===a)continue;let s;if(g){const e=a.format.elements;let t=c.c.ShaderAttributeSlots[c.c.SEMANTIC_TEXCOORD0]-1;for(let n=0;n<e.length;n++){const r=e[n],a=c.c.ShaderAttributeSlots[r.name];a>t&&a<=i.locationId&&(s=r.scopeId.value,t=a)}if(!s){this.geometryStateManager.disableVertexAttribArray(h),n.vertexAttrib4fv(h,ye);continue}}else s=t;r=a.bufferId,this.geometryStateManager.bindBuffer(n.ARRAY_BUFFER,r),this.geometryStateManager.enableVertexAttribArray(h),this.geometryStateManager.vertexAttribPointer(h,s.numComponents,this.glType[s.dataType],s.normalize,s.stride,s.offset+o),t&&1===t.stream&&e>0?this.geometryStateManager.vertexAttribDivisor(h,1):this.geometryStateManager.vertexAttribDivisor(h,0)}else this.geometryStateManager.disableVertexAttribArray(h),"POSITION"===i.scopeId.name?n.vertexAttrib4fv(h,fe):"COLOR"===i.scopeId.name?n.vertexAttrib4fv(h,pe):"TANGENT"===i.scopeId.name?n.vertexAttrib4fv(h,_e):"NORMAL"===i.scopeId.name?n.vertexAttrib4fv(h,Se):n.vertexAttrib4fv(h,ye)}this.attributesInvalidated=!1}for(let e=0,r=s.length;e<r;e++){i=s[e];const r=t[i.scopeId.name];if(!r)continue;const a=i.locationId;this.geometryStateManager.disableVertexAttribArray(a),n.vertexAttrib4fv(a,r)}r=this.indexBuffer?this.indexBuffer.bufferId:null,this.geometryStateManager.bindBuffer(n.ELEMENT_ARRAY_BUFFER,r)}draw(e,t,n,i={},r=null){const s=this.gl,a=this.shader,o=a.samplers,l=a.uniforms;if(0===t)return;this.activeDrawCall=r,t>0&&(this.attributesInvalidated=!0),this.setBuffers(t,i),this.geometryStateManager.applyState(this.activeDrawCall);let h=0;for(let e=0,t=o.length;e<t;e++){const t=o[e];let i=t.scopeId.value;null==i&&(i=n[t.scopeId.name]||c.c.UniformDefaultValues[t.dataType]);const r=t.scopeId.name;if(t.meta||(t.meta={hdr:this.scope.resolve(r+"_HDR"),texels:this.scope.resolve(r+"_TexelSize")},t.meta.hdr.setValue([0,0,0,0]),t.meta.texels.setValue([0,0,0,0])),i instanceof u.a){const e=i;this.setTexture(e,h);const n=t.meta.hdr.value,r=t.meta.texels.value;e.rgbm?(n[0]=5*e.intensity,n[1]=1,n[2]=0,n[3]=1):(n[0]=1*e.intensity,n[1]=1,n[2]=0,n[3]=0),r[0]=1/e.width,r[1]=1/e.height,r[2]=e.width,r[3]=e.height,t.meta.hdr.versionObject.increment(),t.meta.texels.versionObject.increment(),t.slot!==h&&(s.uniform1i(t.locationId,h),t.slot=h),h++}else{const e=i;t.array.length=0;for(let n=0;n<e.length;n++){const i=e[n];this.setTexture(i,h),t.array[n]=h,h++}s.uniform1iv(t.locationId,t.array)}}for(let e=0,t=l.length;e<t;e++){const t=l[e],i=t.scopeId,r=t.version,s=i.versionObject.version;r.globalId===s.globalId&&r.revision===s.revision||(r.globalId=s.globalId,r.revision=s.revision,null===i.value||void 0===i.value?this.commitFunction[t.dataType](t,n[i.name]||c.c.UniformDefaultValues[t.dataType]):this.commitFunction[t.dataType](t,i.value))}const d=this.glPrimitive[e.type],m=e.count;if(e.type===c.c.PRIMITIVE_TRIANGLES&&y.d.instance.recordTriangles(t>0?m*t:m),e.indexed){const n=this.indexBuffer,i=n.glFormat,r=e.base*n.bytesPerIndex;t>0?s.drawElementsInstanced(d,m,i,r,t):s.drawElements(d,m,i,r)}else{const n=e.base;t>0?s.drawArraysInstanced(d,n,m,t):s.drawArrays(d,n,m)}this._drawCallsPerFrame++,this.activeDrawCall=null}clear(e){const t=this.defaultClearOptions,n=c.c.CLEARFLAG_COLOR|c.c.CLEARFLAG_STENCIL|c.c.CLEARFLAG_DEPTH,i=void 0===(e=e||t).flags||null===e.flags?t.flags:e.flags;if(0!==i){const r=this.gl;if(i&c.c.CLEARFLAG_COLOR){const n=e.color?e.color:t.color;this.setClearColor(n[0],n[1],n[2],n[3])}if(i&c.c.CLEARFLAG_DEPTH){const n=void 0===e.depth||null===e.depth?t.depth:e.depth;this.setClearDepth(n),this.depthWrite||r.depthMask(!0)}if(i&c.c.CLEARFLAG_STENCIL){const n=void 0===e.stencil||null===e.stencil?t.stencil:e.stencil;this.setClearStencil(n)}r.clear(this.glClearFlag[i&n]),i&c.c.CLEARFLAG_DEPTH&&(this.depthWrite||r.depthMask(!1))}}readPixels(e,t,n,i,r){const s=this.gl;s.readPixels(e,t,n,i,s.RGBA,s.UNSIGNED_BYTE,r)}setClearDepth(e){e!==this.clearDepth&&(this.gl.clearDepth(e),this.clearDepth=e)}setClearColor(e,t,n,i){e===this.clearRed&&t===this.clearGreen&&n===this.clearBlue&&i===this.clearAlpha||(this.gl.clearColor(e,t,n,i),this.clearRed=e,this.clearGreen=t,this.clearBlue=n,this.clearAlpha=i)}setClearStencil(e){e!==this.clearStencil&&(this.gl.clearStencil(e),this.clearStencil=e)}setRenderTarget(e){this.renderTarget=e}getRenderTarget(){return this.renderTarget}getDepthTest(){return this.depthTest}setDepthTest(e){if(this.depthTest!==e){const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.depthTest=e}}setDepthFunc(e){this.depthFunc!==e&&(this.gl.depthFunc(this.glComparison[e]),this.depthFunc=e)}getDepthWrite(){return this.depthWrite}setDepthWrite(e){this.depthWrite!==e&&(this.gl.depthMask(e),this.depthWrite=e)}setColorWrite(e,t,n,i){this.writeRed===e&&this.writeGreen===t&&this.writeBlue===n&&this.writeAlpha===i||(this.gl.colorMask(e,t,n,i),this.writeRed=e,this.writeGreen=t,this.writeBlue=n,this.writeAlpha=i)}setDepthBias(e){this.depthBiasEnabled!==e&&(this.depthBiasEnabled=e,e?this.gl.enable(this.gl.POLYGON_OFFSET_FILL):this.gl.disable(this.gl.POLYGON_OFFSET_FILL))}setDepthBiasValues(e,t){this.gl.polygonOffset(t,e)}getBlending(){return this.blending}setBlending(e){if(this.blending!==e){const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.blending=e}}setStencilTest(e){if(this.stencil!==e){const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.stencil=e}}setStencilFunc(e,t,n){this.stencilFuncFront===e&&this.stencilRefFront===t&&this.stencilMaskFront===n&&this.stencilFuncBack===e&&this.stencilRefBack===t&&this.stencilMaskBack===n||(this.gl.stencilFunc(this.glComparison[e],t,n),this.stencilFuncFront=this.stencilFuncBack=e,this.stencilRefFront=this.stencilRefBack=t,this.stencilMaskFront=this.stencilMaskBack=n)}setStencilFuncFront(e,t,n){if(this.stencilFuncFront!==e||this.stencilRefFront!==t||this.stencilMaskFront!==n){const i=this.gl;i.stencilFuncSeparate(i.FRONT,this.glComparison[e],t,n),this.stencilFuncFront=e,this.stencilRefFront=t,this.stencilMaskFront=n}}setStencilFuncBack(e,t,n){if(this.stencilFuncBack!==e||this.stencilRefBack!==t||this.stencilMaskBack!==n){const i=this.gl;i.stencilFuncSeparate(i.BACK,this.glComparison[e],t,n),this.stencilFuncBack=e,this.stencilRefBack=t,this.stencilMaskBack=n}}setStencilOperation(e,t,n,i){this.stencilFailFront===e&&this.stencilZfailFront===t&&this.stencilZpassFront===n&&this.stencilFailBack===e&&this.stencilZfailBack===t&&this.stencilZpassBack===n||(this.gl.stencilOp(this.glStencilOp[e],this.glStencilOp[t],this.glStencilOp[n]),this.stencilFailFront=this.stencilFailBack=e,this.stencilZfailFront=this.stencilZfailBack=t,this.stencilZpassFront=this.stencilZpassBack=n),this.stencilWriteMaskFront===i&&this.stencilWriteMaskBack===i||(this.gl.stencilMask(i),this.stencilWriteMaskFront=i,this.stencilWriteMaskBack=i)}setStencilOperationFront(e,t,n,i){this.stencilFailFront===e&&this.stencilZfailFront===t&&this.stencilZpassFront===n||(this.gl.stencilOpSeparate(this.gl.FRONT,this.glStencilOp[e],this.glStencilOp[t],this.glStencilOp[n]),this.stencilFailFront=e,this.stencilZfailFront=t,this.stencilZpassFront=n),this.stencilWriteMaskFront!==i&&(this.gl.stencilMaskSeparate(this.gl.FRONT,i),this.stencilWriteMaskFront=i)}setStencilOperationBack(e,t,n,i){this.stencilFailBack===e&&this.stencilZfailBack===t&&this.stencilZpassBack===n||(this.gl.stencilOpSeparate(this.gl.BACK,this.glStencilOp[e],this.glStencilOp[t],this.glStencilOp[n]),this.stencilFailBack=e,this.stencilZfailBack=t,this.stencilZpassBack=n),this.stencilWriteMaskBack!==i&&(this.gl.stencilMaskSeparate(this.gl.BACK,i),this.stencilWriteMaskBack=i)}setBlendFunction(e,t){(this.blendSrc!==e||this.blendDst!==t||this.separateAlphaBlend)&&(this.gl.blendFunc(this.glBlendFunction[e],this.glBlendFunction[t]),this.blendSrc=e,this.blendDst=t,this.separateAlphaBlend=!1)}setBlendFunctionSeparate(e,t,n,i){this.blendSrc===e&&this.blendDst===t&&this.blendSrcAlpha===n&&this.blendDstAlpha===i&&this.separateAlphaBlend||(this.gl.blendFuncSeparate(this.glBlendFunction[e],this.glBlendFunction[t],this.glBlendFunction[n],this.glBlendFunction[i]),this.blendSrc=e,this.blendDst=t,this.blendSrcAlpha=n,this.blendDstAlpha=i,this.separateAlphaBlend=!0)}setBlendEquationSeparate(e,t){this.blendEquation===e&&this.blendAlphaEquation===t&&this.separateAlphaEquation||(this.gl.blendEquationSeparate(this.glBlendEquation[e],this.glBlendEquation[t]),this.blendEquation=e,this.blendAlphaEquation=t,this.separateAlphaEquation=!0)}setCullMode(e){if(this.cullMode!==e){if(e===c.c.CULLFACE_NONE)this.gl.disable(this.gl.CULL_FACE);else{this.cullMode===c.c.CULLFACE_NONE&&this.gl.enable(this.gl.CULL_FACE);const t=this.glCull[e];this.cullFace!==t&&(this.gl.cullFace(t),this.cullFace=t)}this.cullMode=e}}getCullMode(){return this.cullMode}setIndexBuffer(e){this.indexBuffer=e}setVertexBuffer(e,t,n){if(!e)return;this.vertexBuffers[t]===e&&this.vbOffsets[t]===n||(this.vertexBuffers[t]=e,this.vbOffsets[t]=n,this.attributesInvalidated=!0);const i=e.getFormat().elements;for(let e=0;e<i.length;e++){const n=i[e];n.stream===t&&n.scopeId.value===n||(n.stream=t,n.scopeId.setValue(n),this.attributesInvalidated=!0)}}compileShaderSource(e,t){const n=this.gl;let i=t?this.vertexShaderCache[e]:this.fragmentShaderCache[e];return i||(i=n.createShader(t?n.VERTEX_SHADER:n.FRAGMENT_SHADER),n.shaderSource(i,e),n.compileShader(i),t?this.vertexShaderCache[e]=i:this.fragmentShaderCache[e]=i),i}compileShaderAndBindAttributes(e){const t=this.gl,n=e.definition,i=this.compileShaderSource(n.vshader,!0),r=this.compileShaderSource(n.fshader,!1),s=t.createProgram();if(t.attachShader(s,r),t.attachShader(s,i),this.webgl2&&n.useTransformFeedback){const e=n.attributes,i=[];for(const t in e)e.hasOwnProperty(t)&&i.push("out_"+t);t.transformFeedbackVaryings(s,i,t.INTERLEAVED_ATTRIBS)}for(const e in n.attributes)if(n.attributes.hasOwnProperty(e)){const i=n.attributes[e],r=c.c.ShaderAttributeSlots[i];t.bindAttribLocation(s,r,e)}e._glProgram=s,e.ready=!1}linkShader(e){this.gl.linkProgram(e._glProgram)}createShader(e,t=!0){t&&(this.compileShaderAndBindAttributes(e),this.linkShader(e)),this.shaders.push(e)}destroyShader(e){const t=this.shaders.indexOf(e);-1!==t&&this.shaders.splice(t,1),e._glProgram&&(this.gl.deleteProgram(e._glProgram),e._glProgram=null,this.removeShaderFromCache(e))}_addLineNumbers(e){const t=e.split("\n");for(let e=0,n=t.length;e<n;e++)t[e]=e+1+":\t"+t[e];return t.join("\n")}postLink(e){const t=this.gl,n=e._glProgram,i=e.definition;if(!t.getProgramParameter(n,t.LINK_STATUS))return UnityEngine.Debug.LogError$1("Failed to link shader program. Error: "+t.getProgramInfoLog(n)),!1;let r,s,a,o;r=0;const l=t.getProgramParameter(n,t.ACTIVE_ATTRIBUTES);for(;r<l;)s=t.getActiveAttrib(n,r++),a=t.getAttribLocation(n,s.name),void 0===i.attributes[s.name]&&UnityEngine.Debug.LogError$1('Vertex shader attribute "'+s.name+'" is not mapped to a semantic in shader definition.'),o=new le(this,i.attributes[s.name],this.pcUniformType[s.type],a),e.attributes.push(o);e.samplers=[],e.uniforms=[],r=0;const c=t.getProgramParameter(n,t.ACTIVE_UNIFORMS);for(;r<c;)s=t.getActiveUniform(n,r++),a=t.getUniformLocation(n,s.name),o=new le(this,s.name,this.pcUniformType[s.type],a),s.type===t.SAMPLER_2D||s.type===t.SAMPLER_CUBE||this.webgl2&&(s.type===t.SAMPLER_2D_SHADOW||s.type===t.SAMPLER_CUBE_SHADOW||s.type===t.SAMPLER_3D)?e.samplers.push(o):e.uniforms.push(o);return e.ready=!0,!0}setShader(e){if(e!==this.shader){if(!e.ready){if(!this.postLink(e))return!1;e.uniformsUsage=this.getUniformsInUse(e.uniforms)}this.shader=e,this.gl.useProgram(e._glProgram),this.attributesInvalidated=!0}return!0}getHdrFormat(){return this.textureHalfFloatRenderable?c.c.PIXELFORMAT_RGB16F:this.textureFloatRenderable?c.c.PIXELFORMAT_RGB32F:c.c.PIXELFORMAT_R8_G8_B8_A8}getBoneLimit(){return this.boneLimit}setBoneLimit(e){this.boneLimit=e}resizeCanvas(e,t){this._width=e,this._height=t;const n=Math.min(this._maxPixelRatio,window.devicePixelRatio);e*=n,t*=n,this.canvas.width=e,this.canvas.height=t,this.events.fire($e,e,t,this._width,this._height)}setResolution(e,t){this._width=e,this._height=t,this.canvas.width=e,this.canvas.height=t,this.events.fire($e,e,t,this._width,this._height)}getUniformsInUse(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n],r=c.c.UNIFORMS_USAGE_MAP[i.scopeId.name];void 0!==r&&(t|=r)}return t}applyStencilState(e,t,n){e||t||!n?(e||t)&&(this.setStencilTest(!0),e===t?(this.setStencilFunc(e.func,e.ref,e.readMask),this.setStencilOperation(e.fail,e.zfail,e.zpass,e.writeMask)):(e?(this.setStencilFuncFront(e.func,e.ref,e.readMask),this.setStencilOperationFront(e.fail,e.zfail,e.zpass,e.writeMask)):(this.setStencilFuncFront(c.c.FUNC_ALWAYS,0,255),this.setStencilOperationFront(c.c.STENCILOP_KEEP,c.c.STENCILOP_KEEP,c.c.STENCILOP_KEEP,255)),t?(this.setStencilFuncBack(t.func,t.ref,t.readMask),this.setStencilOperationBack(t.fail,t.zfail,t.zpass,t.writeMask)):(this.setStencilFuncBack(c.c.FUNC_ALWAYS,0,255),this.setStencilOperationBack(c.c.STENCILOP_KEEP,c.c.STENCILOP_KEEP,c.c.STENCILOP_KEEP,255)))):this.setStencilTest(!1)}clearShaderCache(){const e=this.gl;let t;for(t in this.fragmentShaderCache)this.fragmentShaderCache.hasOwnProperty(t)&&(e.deleteShader(this.fragmentShaderCache[t]),delete this.fragmentShaderCache[t]);for(t in this.vertexShaderCache)this.vertexShaderCache.hasOwnProperty(t)&&(e.deleteShader(this.vertexShaderCache[t]),delete this.vertexShaderCache[t]);this.programLib.clearCache()}removeShaderFromCache(e){this.programLib.removeFromCache(e)}destroy(){this.grabPassTexture.destroy(),this.clearShaderCache(),this.canvas.removeEventListener("webglcontextlost",this._contextLostHandler,!1),this.canvas.removeEventListener("webglcontextrestored",this._contextRestoredHandler,!1),this._contextLostHandler=null,this._contextRestoredHandler=null,this.canvas=null,this.gl=null}beginFrame(e){this._drawCallsPerFrame=0,this.geometryStateManager.cleanup(e)}get width(){return this.gl.drawingBufferWidth||this.canvas.width}get height(){return this.gl.drawingBufferHeight||this.canvas.height}get enableAutoInstancing(){return this._enableAutoInstancing}set enableAutoInstancing(e){this._enableAutoInstancing=e&&this.extInstancing}get maxPixelRatio(){return this._maxPixelRatio}set maxPixelRatio(e){this._maxPixelRatio=e,this.resizeCanvas(this._width,this._height)}},pc.UnityShader=a.c,pc.UnityShaderPass=a.b,pc.SphericalHarmonicsL2=Te.a,pc.RenderTarget=j.a,pc.Sprite=Pe,pc.CommandBuffer=class{constructor(){this.device=y.a.getApplication().graphicsDevice,this._name="",this.commands=[],this.renderTargetIdentifier=null,this.clearCommand=null,this.view=null,this.proj=null}clear(){this.commands.length=0,this.renderTargetIdentifier=null,this.clearCommand=null}clearRenderTarget(e,t,n){let i=0;e&&(i|=c.c.CLEARFLAG_DEPTH),t&&(i|=c.c.CLEARFLAG_COLOR),this.clearCommand={color:n.data,depth:1,flags:i}}setRenderTarget(e){this.renderTargetIdentifier=e}drawMesh(e,t=p.i.IDENTITY.clone(),n=null,i=-1,r=-1,s=null){const a=new Ue(e,t,n,i,r,s);this.commands.push(a)}setViewMatrix(e){this.view=e}setProjectionMatrix(e){this.proj=e}get name(){return this._name}set name(e){this._name=e}},pc.Graphics=ke,pc.UnityMaterialPropertyBlock=Ve,pc.RenderTargetIdentifier=class{constructor(){this._name="",this._target=null}get target(){return this._target}set target(e){this._target=e}},pc.ReflectionProbeData=class{constructor(){this.boxProjection=!1,this.cubemap=new u.a(UnityEngine.Graphics.graphicsDevice,{cubemap:!0,rgbm:!1,name:"ReflectionProbeData_Cubemap"}),this.position=new p.n,this.min=new p.n,this.max=new p.n,this.box={min:new p.n,max:new p.n,position:new p.n}}getBox(e){return this.box.min.copy(this.min),this.box.max.copy(this.max),this.box.position.copy(this.position),this.boxProjection,this.box}},pc.ScopeId=he,pc.ShaderPatches=K.a,pc.ForwardRenderer=Ze.a,pc.RendererComponent=qe.a,pc.MeshRendererComponent=Ke,pc.LineRendererComponent=We,pc.SkinnedMeshRendererComponent=Je,pc.SpriteRendererComponent=Ye,pc.TrailRendererComponent=et,pc.RendererComponentSystem=rt,pc.SpriteMaskComponent=it,pc.SortUtils=Ne.a,pc.CanvasRendererComponent=lt,pc.CanvasRendererSystem=ct,pc.MeshFilterComponent=ut,pc.MeshFilterComponentSystem=ht,pc.ReflectionProbeSystem=dt,pc.ReflectionProbeComponent=mt,pc.LightComponent=$t,pc.LightComponentSystem=yt,pc.UICharInfo=St,pc.Font=Ct,pc.TextGenerator=Ut,pc.UIUtils=st,pc.VideoTexture=Bt,pc.VideoPlayerComponent=Ot,pc.VideoPlayerSystem=Lt,pc.ElementComponent=Yt,pc.ElementComponentSystem=en,pc.CameraComponent=sn,pc.CameraComponentSystem=an,pc.ScreenComponent=ln,pc.ScreenComponentSystem=un,pc.SortingGroupComponent=mn,pc.SortingGroupComponentSystem=gn,pc.SortingGroupRenderInstance=dn,pc.UILineInfo=bt,pc.SkyboxLoader=H,pc.SkyboxComponent=pn,pc.SkyboxComponentSystem=yn},(e,t,n)=>{n.d(t,{a:()=>r});var i=n(2);class r{constructor(e,t,n,r=i.c.BUFFER_STATIC,s=null){this.usage=r,this.format=t,this.numVertices=n,this.numBytes=t.size*n,e._vram.vb+=this.numBytes,this.device=e,this.bufferId=null,this._storage=null,this.batchId=0,s?this.setData(s):this.storage=new ArrayBuffer(this.numBytes)}destroy(){this.bufferId&&(this.device._vram.vb-=this.numBytes),this.invalidateBuffer()}getFormat(){return this.format}getUsage(){return this.usage}getNumVertices(){return this.numVertices}lock(){return this.storage}unlock(){this.unlockSlice(0,this.numBytes)}unlockSlice(e,t){const n=this.device.gl;let r;switch(this.usage){case i.c.BUFFER_STATIC:r=n.STATIC_DRAW;break;case i.c.BUFFER_DYNAMIC:r=n.DYNAMIC_DRAW;break;case i.c.BUFFER_STREAM:r=n.STREAM_DRAW;break;case i.c.BUFFER_GPUDYNAMIC:r=this.device.webgl2?n.DYNAMIC_COPY:n.STATIC_DRAW}const s=!this.bufferId,a=0===e&&t===this.numBytes;if(s&&(this.bufferId=n.createBuffer()),s||a)n.bindBuffer(n.ARRAY_BUFFER,this.bufferId),n.bufferData(n.ARRAY_BUFFER,this.storage,r);else{const i=new Uint8Array(this.storage,e,t);n.bindBuffer(n.ARRAY_BUFFER,this.bufferId),n.bufferSubData(n.ARRAY_BUFFER,e,i)}this.batchId=0}setData(e){return e.byteLength!==this.numBytes?(this.storage=null,UnityEngine.Debug.LogError$1("VertexBuffer: wrong initial data size: expected "+this.numBytes+", got "+e.byteLength),!1):(this.storage=e,this.unlock(),this.numVertices=e.byteLength/this.format.size,!0)}resize(e){const t=e*this.format.size;if(t!==this.numBytes){this.device._vram.vb+=t-this.numBytes,this.numBytes=t,this.numVertices=e;const n=this.storage;this.storage=new ArrayBuffer(this.numBytes),new Uint8Array(this.storage).set(new Uint8Array(n).subarray(0,this.numBytes)),this.invalidateBuffer()}}invalidateBuffer(){const e=this.device;if(this.bufferId){const t=e.gl;t.deleteBuffer(this.bufferId),this.bufferId=null,e.geometryStateManager.globalState.vertexBuffer=null,e.vertexBuffers.length=0,e.vbOffsets.length=0,e.attributesInvalidated=!0;const n=e.geometryStateManager.globalState.attributes;for(let e=0;e<n.length;e++){const i=n[e];i.enabled&&(t.disableVertexAttribArray(e),i.enabled=!1)}}}get storage(){return this._storage}set storage(e){this._storage=e}get storageFloat32(){return new Float32Array(this._storage)}}},(e,t,n)=>{n.d(t,{a:()=>a});var i=n(2),r=n(0);const s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];s[i.c.PIXELFORMAT_A8]=1,s[i.c.PIXELFORMAT_L8]=1,s[i.c.PIXELFORMAT_L8_A8]=1,s[i.c.PIXELFORMAT_R5_G6_B5]=2,s[i.c.PIXELFORMAT_R5_G5_B5_A1]=2,s[i.c.PIXELFORMAT_R4_G4_B4_A4]=2,s[i.c.PIXELFORMAT_R8_G8_B8]=4,s[i.c.PIXELFORMAT_R8_G8_B8_A8]=4,s[i.c.PIXELFORMAT_RGB16F]=8,s[i.c.PIXELFORMAT_RGBA16F]=8,s[i.c.PIXELFORMAT_RGB32F]=16,s[i.c.PIXELFORMAT_RGBA32F]=16,s[i.c.PIXELFORMAT_R32F]=4,s[i.c.PIXELFORMAT_DEPTH]=4,s[i.c.PIXELFORMAT_DEPTHSTENCIL]=4,s[i.c.PIXELFORMAT_111110F]=4,s[i.c.PIXELFORMAT_SRGB]=4,s[i.c.PIXELFORMAT_SRGBA]=4;class a{constructor(e,t){this.device=e,this.$id=0,this.name=null,this._width=4,this._height=4,this._depth=1,this._pot=!0,this._format=i.c.PIXELFORMAT_R8_G8_B8_A8,this.rgbm=!1,this.intensity=1,this._cubemap=!1,this._volume=!1,this.fixCubemapSeams=!1,this._flipY=!0,this._premultiplyAlpha=!1,this._mipmaps=!0,this._minFilter=i.c.FILTER_LINEAR_MIPMAP_NEAREST,this._magFilter=i.c.FILTER_LINEAR,this._anisotropy=1,this._addressU=i.c.ADDRESS_CLAMP_TO_EDGE,this._addressV=i.c.ADDRESS_CLAMP_TO_EDGE,this._addressW=i.c.ADDRESS_CLAMP_TO_EDGE,this._glTexture=null,this._glTarget=0,this._glInternalFormat=0,this._glFormat=0,this._glPixelType=0,this._compareOnRead=!1,this._compareFunc=i.c.FUNC_LESS,this._levels=null,this._atlas=null,this._rects=null,this._buffer=null,this._levelsUpdated=null,this._needsUpload=!1,this._needsMipmapsUpload=!1,this._mipmapsUploaded=!1,this._parameterFlags=0,void 0!==t&&(this.name=t.name||null,this._width=void 0!==t.width?t.width:this._width,this._height=void 0!==t.height?t.height:this._height,this._pot=(0,r.r)(this._width)&&(0,r.r)(this._height),this._format=void 0!==t.format?t.format:this._format,this.rgbm=void 0!==t.rgbm?t.rgbm:this.rgbm,void 0!==t.mipmaps?this._mipmaps=t.mipmaps:this._mipmaps=void 0!==t.autoMipmap?t.autoMipmap:this._mipmaps,this._levels=t.levels||null,this._atlas=t.atlas||null,this._rects=t.rects||null,this._cubemap=void 0!==t.cubemap?t.cubemap:this._cubemap,this.fixCubemapSeams=void 0!==t.fixCubemapSeams?t.fixCubemapSeams:this.fixCubemapSeams,this._minFilter=void 0!==t.minFilter?t.minFilter:this._minFilter,this._magFilter=void 0!==t.magFilter?t.magFilter:this._magFilter,this._anisotropy=void 0!==t.anisotropy?t.anisotropy:this._anisotropy,this._addressU=void 0!==t.addressU?t.addressU:this._addressU,this._addressV=void 0!==t.addressV?t.addressV:this._addressV,this._compareOnRead=void 0!==t.compareOnRead?t.compareOnRead:this._compareOnRead,this._flipY=void 0!==t.flipY?t.flipY:this._flipY,this._premultiplyAlpha=void 0!==t.premultiplyAlpha?t.premultiplyAlpha:this._premultiplyAlpha,e.webgl2&&(this._depth=void 0!==t.depth?t.depth:this._depth,this._volume=void 0!==t.volume?t.volume:this._volume)),this._compressed=this._format===i.c.PIXELFORMAT_DXT1||this._format===i.c.PIXELFORMAT_DXT3||this._format===i.c.PIXELFORMAT_DXT5||this._format>=i.c.PIXELFORMAT_ETC1,this._invalid=!1,this._lockedLevel=-1,this._levels||(this._cubemap?this._levels=[[null,null,null,null,null,null]]:this._levels=[null]),this.dirtyAll(),this._gpuSize=0,this._needsUpdate=!1,this["__UnityEngine.Texture"]=null,this["__UnityEngine.Texture2D"]=null,this["__UnityEngine.Cubemap"]=null,this["__UnityEngine.RenderTexture"]=null,a.allTextures.push(this)}destroy(){this.device&&this.device.destroyTexture(this),this.device=null,this._levels=null;const e=a.allTextures.indexOf(this);-1!==e&&a.allTextures.splice(e,1)}dirtyAll(){this._levelsUpdated=this._cubemap?[[!0,!0,!0,!0,!0,!0]]:[!0],this._needsUpload=!0,this._needsMipmapsUpload=this._mipmaps,this._mipmapsUploaded=!1,this._parameterFlags=255}lock(e={level:0,face:0,mode:i.c.TEXTURELOCK_WRITE}){if(void 0===e.level&&(e.level=0),void 0===e.face&&(e.face=0),void 0===e.mode&&(e.mode=i.c.TEXTURELOCK_WRITE),this._lockedLevel=e.level,null===this._levels[e.level])switch(this._format){case i.c.PIXELFORMAT_A8:case i.c.PIXELFORMAT_L8:this._levels[e.level]=new Uint8Array(this._width*this._height*this._depth);break;case i.c.PIXELFORMAT_L8_A8:this._levels[e.level]=new Uint8Array(this._width*this._height*this._depth*2);break;case i.c.PIXELFORMAT_R5_G6_B5:case i.c.PIXELFORMAT_R5_G5_B5_A1:case i.c.PIXELFORMAT_R4_G4_B4_A4:this._levels[e.level]=new Uint16Array(this._width*this._height*this._depth);break;case i.c.PIXELFORMAT_R8_G8_B8:this._levels[e.level]=new Uint8Array(this._width*this._height*this._depth*3);break;case i.c.PIXELFORMAT_R8_G8_B8_A8:this._levels[e.level]=new Uint8Array(this._width*this._height*this._depth*4);break;case i.c.PIXELFORMAT_DXT1:this._levels[e.level]=new Uint8Array(Math.floor((this._width+3)/4)*Math.floor((this._height+3)/4)*8*this._depth);break;case i.c.PIXELFORMAT_DXT3:case i.c.PIXELFORMAT_DXT5:this._levels[e.level]=new Uint8Array(Math.floor((this._width+3)/4)*Math.floor((this._height+3)/4)*16*this._depth);break;case i.c.PIXELFORMAT_RGB16F:this._levels[e.level]=new Uint16Array(this._width*this._height*this._depth*3);break;case i.c.PIXELFORMAT_RGB32F:this._levels[e.level]=new Float32Array(this._width*this._height*this._depth*3);break;case i.c.PIXELFORMAT_RGBA16F:this._levels[e.level]=new Uint16Array(this._width*this._height*this._depth*4);break;case i.c.PIXELFORMAT_RGBA32F:this._levels[e.level]=new Float32Array(this._width*this._height*this._depth*4)}return this._levels[e.level]}setSource(e){let t=!1,n=0,i=0;if(this._cubemap){if(Array.isArray(e)){n=e[0].width||0,i=e[0].height||0;for(let r=0;r<6;r++)if(!e[r]||e[r].width!==n||e[r].height!==i||!(e[r]instanceof HTMLImageElement||e[r]instanceof HTMLCanvasElement||e[r]instanceof HTMLVideoElement)){t=!0;break}}else t=!0;if(!t)for(let t=0;t<6;t++)this._levels[0][t]!==e[t]&&(this._levelsUpdated[0][t]=!0)}else e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||(t=!0),t||(e!==this._levels[0]&&(this._levelsUpdated[0]=!0),n=e.width,i=e.height);if(t)if(this._width=4,this._height=4,this._pot=!0,this._cubemap)for(let e=0;e<6;e++)this._levels[0][e]=null,this._levelsUpdated[0][e]=!0;else this._levels[0]=null,this._levelsUpdated[0]=!0;else this._width=n,this._height=i,this._pot=(0,r.r)(this._width)&&(0,r.r)(this._height),this._levels[0]=e;this._invalid===t&&t||(this._invalid=t,this.upload())}unlock(){this.upload(),this._lockedLevel=-1}upload(){this._needsUpload=!0,this._needsMipmapsUpload=this._mipmaps}apply(){this.upload(),this.device.setTexture(this,0),this.device.uploadTexture(this)}clone(){const e={name:this.name,width:this._width,height:this._height,addressU:this._addressU,addressV:this._addressV,mipmaps:this._mipmaps,minFilter:this._minFilter,magFilter:this._magFilter,autoMipmap:this._mipmaps,rgbm:this.rgbm,anisotropy:this._anisotropy,format:this._format},t=new a(this.device,e);return t.setSource(this._levels[0]),t}createBuffer(e,t,n){switch(e){case i.c.PIXELFORMAT_R8_G8_B8:return new Uint8Array(3*t*n);case i.c.PIXELFORMAT_R8_G8_B8_A8:return new Uint8Array(4*t*n);default:return null}}readPixels(e,t,n,i){const r=this.device.gl;this.device.setTexture(this,0),r.readPixels(e.x,e.y,e.width,e.height,this._glFormat,this._glPixelType,this.buffer),this._levels[0]=this.buffer}toBuffer(){const e=this.device.gl;this._glTexture||(this.device.setTexture(this,0),this.device.uploadTexture(this));const t=this._glTexture,n=this.width,i=this.height;(this._needsUpload||this._needsMipmapsUpload)&&this.device.uploadTexture(this);const r=e.createFramebuffer();e.bindFramebuffer(e.FRAMEBUFFER,r),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0);const s=new Uint8Array(n*i*4);return e.readPixels(0,0,n,i,e.RGBA,e.UNSIGNED_BYTE,s),e.deleteFramebuffer(r),s}sync(e){const t=this.device.gl,n=this._glTexture,i=this.width/(1<<e),r=this.height/(1<<e),s=this.device.activeFramebuffer,a=t.createFramebuffer();if(this.device.setFramebuffer(a),this._cubemap){this._levels=this._levels||[],this._levels[e]=this._levels[e]||[];for(let s=0;s<6;s++)t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+s,n,e),this._levels[e][s]=new Uint8Array(i*r*4),t.readPixels(0,0,i,r,t.RGBA,t.UNSIGNED_BYTE,this._levels[e][s])}else t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,n,e),this._levels=this._levels||[],this._levels[e]=new Uint8Array(i*r*4),t.readPixels(0,0,i,r,t.RGBA,t.UNSIGNED_BYTE,this._levels[e]);this.device.setFramebuffer(s)}markUploaded(){this._needsUpdate||(this._needsUpload=!1)}handlePositionInRepeatMode(e,t){return e>t-1||e<0?Math.abs(e%t):e}handlePositionInClampMode(e,t){return e<0?0:e>t-1?t-1:e}getPixel(e,t){this.bufferCheck();let n=e,s=t;this._addressU===i.c.ADDRESS_REPEAT&&this._addressV===i.c.ADDRESS_REPEAT?(n=this.handlePositionInRepeatMode(e,this.width),s=this.handlePositionInRepeatMode(t,this.height)):this._addressU===i.c.ADDRESS_CLAMP_TO_EDGE&&this._addressV===i.c.ADDRESS_CLAMP_TO_EDGE&&(n=this.handlePositionInClampMode(e,this.width),s=this.handlePositionInClampMode(t,this.height));const a=s*this.width*4+4*n,o=this._buffer[a],l=this._buffer[a+1],c=this._buffer[a+2],u=this._buffer[a+3];return new r.d(o/255,l/255,c/255,u/255)}getPixels(e,t,n,i,s){this.bufferCheck();const a=[];let o=0;for(let s=t;s<t+i;s++)for(let t=e;t<e+n;t++){const e=s*this.width*4+4*t,n=this._buffer[e],i=this._buffer[e+1],l=this._buffer[e+2],c=this._buffer[e+3];a[o++]=new r.d(n/255,i/255,l/255,c/255)}return a}getPixels32(e){this.bufferCheck(e);const t=this.width,n=this.height,i=[];let s=0;for(let e=0;e<0+n;e++)for(let n=0;n<0+t;n++){const t=e*this.width*4+4*n,a=this._buffer[t],o=this._buffer[t+1],l=this._buffer[t+2],c=this._buffer[t+3];i[s++]=new r.d(a,o,l,c)}return i}setPixel(e,t,n){this.bufferCheck();let r=e,s=t;this._addressU===i.c.ADDRESS_REPEAT&&this._addressV===i.c.ADDRESS_REPEAT?(r=this.handlePositionInRepeatMode(e,this.width),s=this.handlePositionInRepeatMode(t,this.height)):this._addressU===i.c.ADDRESS_CLAMP_TO_EDGE&&this._addressV===i.c.ADDRESS_CLAMP_TO_EDGE&&(r=this.handlePositionInClampMode(e,this.width),s=this.handlePositionInClampMode(t,this.height));const a=s*this.width*4+4*r;this.fillBuffer(a,n),this._levels[0]=this._buffer,this._needsUpload=!0}setPixels(e,t,n,i,r,s){this.bufferCheck(s);let a=0;for(let s=n;s<n+r;s++)for(let n=t;n<t+i;n++,a++){const t=s*this.width*4+4*n;this.fillBuffer(t,e[a])}this._levels[0]=this._buffer,this._needsUpload=!0}setPixels32(e,t,n,i,r,s){if(this.bufferCheck(s),e||t||n||i){let s=0;for(let a=t;a<t+i;a++)for(let t=e;t<e+n;t++,s++){const e=a*this.width*4+4*t;this.fillBuffer32(e,r[s])}}else for(let e=0;e<r.length;e++){const t=4*e;this.fillBuffer32(t,r[e])}this._levels[0]=this._buffer,this._needsUpload=!0}bufferCheck(e=-1){null===this._buffer&&(this._buffer=this.toBuffer())}fillBuffer(e,t){this._buffer[e]=255*t.r,this._buffer[e+1]=255*t.g,this._buffer[e+2]=255*t.b,this._buffer[e+3]=255*t.a}fillBuffer32(e,t){this._buffer[e]=t.r,this._buffer[e+1]=t.g,this._buffer[e+2]=t.b,this._buffer[e+3]=t.a}setPixelData(e){this.device.setTexture(this,0),this._levels=[e],this.device.uploadTexture(this)}copyCubemap(e){e._glTexture||this.device.uploadTexture(e),this._glTexture=e._glTexture,this._glTarget=e._glTarget,this._glInternalFormat=e._glInternalFormat,this._glFormat=e._glFormat,this._glPixelType=e._glPixelType,this._parameterFlags=e._parameterFlags,this.rgbm=e.rgbm,this._width=e._width,this._height=e._height,this._needsUpload=!1,this._needsMipmapsUpload=!1}toDataURI(e=!1){const t=this.width,n=this.height,i=this.toBuffer(),r=document.createElement("canvas");r.width=t,r.height=n;const s=r.getContext("2d",{alpha:!0}),a=s.createImageData(t,n);a.data.set(i),s.putImageData(a,0,0),s.scale(1,-1),s.translate(0,-a.height),s.drawImage(s.canvas,0,0);const o=r.toDataURL();if(e)return o;const l=window.open("",this.name,`width=${this.width},height=${this.height}`),c=new Image;return c.src=o,c.width=this.width,c.height=this.height,l.document.write(c.outerHTML),l.document.body.style.margin="0","Texture is shown in a new tab"}get minFilter(){return this._minFilter}set minFilter(e){this._minFilter!==e&&(this._minFilter=e,this._parameterFlags|=1)}get magFilter(){return this._magFilter}set magFilter(e){this._magFilter!==e&&(this._magFilter=e,this._parameterFlags|=2)}get addressU(){return this._addressU}set addressU(e){this._addressU!==e&&(this._addressU=e,this._parameterFlags|=4)}get addressV(){return this._addressV}set addressV(e){this._addressV!==e&&(this._addressV=e,this._parameterFlags|=8)}get addressW(){return this._addressW}set addressW(e){this.device.webgl2&&(this._volume?e!==this._addressW&&(this._addressW=e,this._parameterFlags|=16):UnityEngine.Debug.LogWarning$1("pc.Texture#addressW: Can't set W addressing mode for a non-3D texture."))}get compareOnRead(){return this._compareOnRead}set compareOnRead(e){this._compareOnRead!==e&&(this._compareOnRead=e,this._parameterFlags|=32)}get compareFunc(){return this._compareFunc}set compareFunc(e){this._compareFunc!==e&&(this._compareFunc=e,this._parameterFlags|=64)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy!==e&&(this._anisotropy=e,this._parameterFlags|=128)}get autoMipmap(){return this._mipmaps}set autoMipmap(e){this._mipmaps=e}get mipmaps(){return this._mipmaps}set mipmaps(e){this._mipmaps!==e&&(this._mipmaps=e,this._minFilterDirty=!0,e&&(this._needsMipmapsUpload=!0))}get width(){return this._width}set width(e){this._width=e}get height(){return this._height}set height(e){this._height=e}get depth(){return this._depth}set depth(e){this._depth=e}get format(){return this._format}get cubemap(){return this._cubemap}get gpuSize(){let e=1;!this._pot||!this._mipmaps&&this._minFilter!==i.c.FILTER_NEAREST_MIPMAP_NEAREST&&this._minFilter!==i.c.FILTER_NEAREST_MIPMAP_LINEAR&&this._minFilter!==i.c.FILTER_LINEAR_MIPMAP_NEAREST&&this._minFilter!==i.c.FILTER_LINEAR_MIPMAP_LINEAR||this._compressed&&1===this._levels.length||(e=Math.round(Math.log2(Math.max(this._width,this._height))+1));let t=this._width,n=this._height,r=this._depth,a=0;for(let o=0;o<e;o++){if(this._compressed)if(this._format===i.c.PIXELFORMAT_ETC1)a+=Math.floor((t+3)/4)*Math.floor((n+3)/4)*8*r;else if(this._format===i.c.PIXELFORMAT_PVRTC_2BPP_RGB_1||this._format===i.c.PIXELFORMAT_PVRTC_2BPP_RGBA_1)a+=Math.max(t,16)*Math.max(n,8)/(4*r);else if(this._format===i.c.PIXELFORMAT_PVRTC_4BPP_RGB_1||this._format===i.c.PIXELFORMAT_PVRTC_4BPP_RGBA_1)a+=Math.max(t,8)*Math.max(n,8)/(2*r);else{const e=4,s=4,o=this._format===i.c.PIXELFORMAT_DXT1?8:16;a+=Math.floor((t+e-1)/e)*Math.floor((n+s-1)/s)*o*r}else a+=t*n*r*s[this._format];t=Math.max(.5*t,1),n=Math.max(.5*n,1),r=Math.max(.5*r,1)}return this._cubemap&&(a*=6),a}get volume(){return this._volume}get flipY(){return this._flipY}set flipY(e){this._flipY!==e&&(this._flipY=e,this._needsUpload=!0)}get premultiplyAlpha(){return this._premultiplyAlpha}set premultiplyAlpha(e){this._premultiplyAlpha!==e&&(this._premultiplyAlpha=e,this._needsUpload=!0)}get formatMultiplier(){switch(this.format){case i.c.PIXELFORMAT_A8:case i.c.PIXELFORMAT_L8:return 1;case i.c.PIXELFORMAT_L8_A8:return 2;case i.c.PIXELFORMAT_R8_G8_B8:return 3;case i.c.PIXELFORMAT_R8_G8_B8_A8:default:return 4}}get buffer(){return this._buffer||(this._buffer=new Uint8Array(this.width*this.height*this.formatMultiplier)),this._buffer}set buffer(e){this._buffer=e}}a.allTextures=[]},(e,t,n)=>{n.d(t,{a:()=>b,b:()=>S});var i=n(0),r=n(2),s=n(60),a=n(9),o=n(6),l=n(10);const c=[null,null,i.l,i.m,i.n],u=new Float32Array([1,1,1,1]),h=new Float32Array([0,0,0,0]),d=new Float32Array([0,0,0,1]),m=new Float32Array([1,0,0,1]),g=new Float32Array([0,0,1,1]),$=new i.b,p=new i.i,y=[!0,!1,!1,!1,!1,!1,!1,!1,!1,!1],f=[{semantic:r.c.SEMANTIC_POSITION,components:3,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_NORMAL,components:3,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TANGENT,components:4,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_BLENDWEIGHT,components:4,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_BLENDINDICES,components:4,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_COLOR,components:4,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD0,components:2,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD1,components:2,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD2,components:2,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD3,components:2,type:r.c.TYPE_FLOAT32}],_=[{semantic:r.c.SEMANTIC_POSITION,components:3,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_NORMAL,components:3,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TANGENT,components:4,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_COLOR,components:4,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD0,components:2,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD1,components:2,type:r.c.TYPE_FLOAT32}];class S{constructor(e=!1){this.name="",this._refCount=0,this.id=S.id++,this.$id=0,this.vertexBuffer=e?null:this.defaultVertexBuffer(y,0,new ArrayBuffer(0)),this.indexBuffer=[null],this.primitive=[{type:0,base:0,count:0,indexed:!0}],this.skin=null,this.morph=null,this.meshInstance=null,this._aabb=new i.b,this.bindposes=[],this.subMeshes=[],this.parentMeshId=-1,this.boneAabb=null,this.boneUsed=[],this.version=0,this.bufferUsage=r.c.BUFFER_STATIC,this.vao=null,this["__UnityEngine.Mesh"]=null}destroy(){this.vertexBuffer&&(this.vertexBuffer.destroy(),this.vertexBuffer=null);for(let e=0;e<this.indexBuffer.length;e++)this.indexBuffer[e]&&this.indexBuffer[e].destroy(),this.indexBuffer=[]}defaultVertexBuffer(e,t,n){const i=[];for(let t=0;t<e.length;t++)e[t]&&i.push(f[t]);return this.defaultVertexBufferWithFormatElements(i,t,n)}defaultVertexBufferWithFormatElements(e,t,n){const i=new a.a(UnityEngine.Graphics.graphicsDevice,e);return new o.a(UnityEngine.Graphics.graphicsDevice,i,t,this.bufferUsage||r.c.BUFFER_STATIC,n)}getDescriptionForSemantics(e,t=null){if(t)return{semantic:e,components:t,type:r.c.TYPE_FLOAT32};for(let t=0;t<f.length;t++)if(f[t].semantic===e)return f[t];throw Error("Unknown or unsupported semantic requested: "+e)}defaultIndexBuffer(e,t){return new l.a(UnityEngine.Graphics.graphicsDevice,r.c.INDEXFORMAT_UINT16,e,this.bufferUsage||r.c.BUFFER_STATIC,t)}markDynamic(){this.vertexBuffer&&(this.vertexBuffer.lock(),this.vertexBuffer.usage=r.c.BUFFER_DYNAMIC,this.vertexBuffer.unlock()),this.indexBuffer[0]&&(this.indexBuffer[0].lock(),this.indexBuffer[0].usage=r.c.BUFFER_DYNAMIC,this.indexBuffer[0].unlock()),this.bufferUsage=r.c.BUFFER_DYNAMIC}uploadMeshData(){this.vertexBuffer&&this.vertexBuffer.unlock();for(let e=0;e<this.subMeshes.length;e++){const t=this.subMeshes[e];t.vertexBuffer=this.vertexBuffer,t.indexBuffer[0]&&t.indexBuffer[0].unlock()}}clear(){this.vertexBuffer&&this.vertexBuffer.resize(0),this.indexBuffer[0]&&this.indexBuffer[0].resize(0),this.version++}setIndicies(e,t,n,i,s){this.subMeshes.length<=n&&this.setSubMeshCount(n+1);const a=this.subMeshes[n];let o=0;switch(t){case UnityEngine.MeshTopology.Triangles:o=r.c.PRIMITIVE_TRIANGLES;break;case UnityEngine.MeshTopology.Lines:o=r.c.PRIMITIVE_LINES;break;case UnityEngine.MeshTopology.LineStrip:o=r.c.PRIMITIVE_LINESTRIP;break;case UnityEngine.MeshTopology.Points:o=r.c.PRIMITIVE_POINTS}if(null===o)throw Error('Unknown or unsupported topology "'+t+'" passed!');a.primitive[0].type=o,a.primitive[0].base=s,a.primitive[0].count=e.length,a.primitive[0].indexed=!0,a.vertexBuffer=this.vertexBuffer,a.indexBuffer[0]=a.indexBuffer[0]||new l.a(UnityEngine.Graphics.graphicsDevice,r.c.INDEXFORMAT_UINT16,0,r.c.BUFFER_STATIC),a.indexBuffer[0].resize(e.length),new Uint16Array(a.indexBuffer[0].lock()).set(e),!1!==i&&this.recalculateBounds(),this.uploadMeshData(),this.version++}getIndicies(e){const t=this.subMeshes[e];return new Uint16Array(t.indexBuffer[0].lock())}getUVInTriangle(e,t){const n=this.vertexBuffer,s=new i.l;let a=3*e;if(!n)return s;const o=n.format.getStructureFor(r.c.SEMANTIC_TEXCOORD0);let l=0,c=new Uint16Array(this.subMeshes[l].indexBuffer[0].storage);for(;a>=c.length;)a-=c.length,l++,c=new Uint16Array(this.subMeshes[l].indexBuffer[0].storage);if(o.offset<0)return s;const u=(c[a+t]*o.stride+o.offset)/4,h=new Float32Array(n.storage);return s.set(h[u+0],h[u+1]),s}getVectorStream(e,t,n){const i=this.vertexBuffer;if(!i)return;const r=i.format.getStructureFor(t);if(r.offset<0)return;const s=new Float32Array(i.storage),a=Array(i.numVertices);let o=0;for(let e=r.offset/4;e<s.length;e+=r.stride/4){const t=new c[n];t.x=s[e+0],t.y=s[e+1],n>2&&(t.z=s[e+2]),n>3&&(t.w=s[e+3]),a[o++]=t}e._items=a,e._size=a.length}setVectorStream(e,t,n){if(!e||0===e._size)return void this.disableSemantic(t);this.enableSemantic(t);const i=this.vertexBuffer;i.resize(Math.max(e._size,i.numVertices));const r=i.format.getStructureFor(t),s=new Float32Array(i.storage);let a=0;const o=e._size*r.stride/4;switch(n){case 2:for(let t=r.offset/4;t<o;t+=r.stride/4){const n=e._items[a++];s[t+0]=n.x,s[t+1]=n.y}break;case 3:for(let t=r.offset/4;t<o;t+=r.stride/4){const n=e._items[a++];s[t+0]=n.x,s[t+1]=n.y,s[t+2]=n.z}break;case 4:for(let t=r.offset/4;t<o;t+=r.stride/4){const n=e._items[a++];s[t+0]=n.x,s[t+1]=n.y,s[t+2]=n.z,s[t+3]=n.w}}this.meshInstance&&this.meshInstance._aabbVer++,this.uploadMeshData(),this.version++}getColorStream(e,t,n){const r=this.vertexBuffer;if(!r)return;const s=r.format.getStructureFor(t);if(s.offset<0)return;const a=new Float32Array(r.storage),o=Array(r.numVertices);let l=0;for(let e=s.offset/4;e<a.length;e+=s.stride/4){const t=new i.d;t.r=a[e+0]*n,t.g=a[e+1]*n,t.b=a[e+2]*n,t.a=a[e+3]*n,o[l++]=t}e._items=o,e._size=o.length}getUIVertexStream(e,t){if(e._size=0,t._size=0,!this.vertexBuffer||!this.indexBuffer[0])return;e._size=e._items.length=this.vertexBuffer.numVertices,t._size=t._items.length=this.primitive[0].count,t._items=Array.from(new Uint16Array(this.indexBuffer[0].storage));const n=new Float32Array(this.vertexBuffer.storage),i=this.vertexBuffer.format.size/4,s=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_POSITION,!0),a=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_NORMAL,!0),o=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_TANGENT,!0),l=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_COLOR,!0),c=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_TEXCOORD0,!0),u=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_TEXCOORD1,!0);for(let t=0;t<n.length;t+=i){const r=new UnityEngine.UIVertex;let h=-1;e._items[t/i|0]=r,(h=s.offset)>=0&&r.position.set(n[t+h+0],n[t+h+1],n[t+h+2]),(h=a.offset)>=0&&r.normal.set(n[t+h+0],n[t+h+1],n[t+h+2]),(h=o.offset)>=0&&r.tangent.set(n[t+h+0],n[t+h+1],n[t+h+2],n[t+h+3]),(h=l.offset)>=0&&(r.color.r=255*n[t+h+0]|0,r.color.g=255*n[t+h+1]|0,r.color.b=255*n[t+h+2]|0,r.color.a=255*n[t+h+3]|0),(h=c.offset)>=0&&r.uv0.set(n[t+h+0],n[t+h+1]),(h=u.offset)>=0&&r.uv1.set(n[t+h+0],n[t+h+1])}}setUIVertexStream(e,t){if(this.vertexBuffer){const e=_,t=this.vertexBuffer.format;if(t.elements.length!==e.length)this.vertexBuffer.destroy(),this.vertexBuffer=null;else for(let n=0;n<e.length;n++)if(t.elements[n].name!==e[n].semantic){this.vertexBuffer.destroy(),this.vertexBuffer=null;break}}if(!this.vertexBuffer){const t=new a.a(UnityEngine.Graphics.graphicsDevice,_);this.vertexBuffer=new o.a(UnityEngine.Graphics.graphicsDevice,t,e._size,this.bufferUsage||r.c.BUFFER_STATIC,null)}t._items.length=t._size,this.setIndicies(t._items,UnityEngine.MeshTopology.Triangles,0,!0,0),this.vertexBuffer.resize(e._size);const n=new Float32Array(this.vertexBuffer.storage);for(let t=0;t<n.length;t+=18){const i=e._items[t/18];n[t+0]=i.position.x,n[t+1]=i.position.y,n[t+2]=i.position.z,n[t+3]=i.normal.x,n[t+4]=i.normal.y,n[t+5]=i.normal.z,n[t+6]=i.tangent.x,n[t+7]=i.tangent.y,n[t+8]=i.tangent.z,n[t+9]=i.tangent.w,n[t+10]=i.color.r/255,n[t+11]=i.color.g/255,n[t+12]=i.color.b/255,n[t+13]=i.color.a/255,n[t+14]=i.uv0.x,n[t+15]=i.uv0.y,n[t+16]=i.uv1.x,n[t+17]=i.uv1.y}this.uploadMeshData(),this.primitive[0].type=r.c.PRIMITIVE_TRIANGLES,this.primitive[0].base=0,this.primitive[0].count=t._items.length,this.primitive[0].indexed=!0}setColorStream(e,t,n){if(!e||0===e._size)return void this.disableSemantic(t);this.enableSemantic(t);const i=this.vertexBuffer;i.resize(Math.max(e._size,i.numVertices));const r=i.format.getStructureFor(t),s=new Float32Array(i.storage);let a=0;const o=e._size*r.stride/4,l=1/n;for(let t=r.offset/4;t<o;t+=r.stride/4){const n=e._items[a++];s[t+0]=n.r*l,s[t+1]=n.g*l,s[t+2]=n.b*l,s[t+3]=n.a*l}this.uploadMeshData(),this.version++}initializeBuffers(){this.destroy(),this.vertexBuffer=new o.a(UnityEngine.Graphics.graphicsDevice,new a.a(UnityEngine.Graphics.graphicsDevice,[]),0),this.vertexBuffer.numBytes=0,this.vertexBuffer.numVertices=0,this.indexBuffer=[new l.a(UnityEngine.Graphics.graphicsDevice,r.c.INDEXFORMAT_UINT16,0,r.c.BUFFER_STATIC)]}enableSemantic(e){let t=this.vertexBuffer;t||(t=new o.a(UnityEngine.Graphics.graphicsDevice,new a.a(UnityEngine.Graphics.graphicsDevice,[]),0),t.numBytes=0,t.numVertices=0,this.vertexBuffer=t);const n=t.format;if(n.getStructureFor(e).offset>=0)return;const i=new Float32Array(t.storage),r=[];for(let e=0;e<n.elements.length;e++){const t=n.elements[e];r.push({semantic:t.name,type:t.dataType,components:t.numComponents,normalize:t.normalize})}r.push(this.getDescriptionForSemantics(e));const s=new a.a(UnityEngine.Graphics.graphicsDevice,r),l=new Float32Array(s.size/4*t.numVertices);for(let e=0;e<t.numVertices;e++)for(let t=0;t<n.size/4;t++)l[e*s.size/4+t]=i[e*n.size/4+t];t.invalidateBuffer();const c=t.numVertices*t.format.size;t.device._vram.vb+=c-t.numBytes,t.format=s,t.numBytes=c,t.storage=l.buffer}disableSemantic(e){const t=this.vertexBuffer;if(!t)return;const n=t.format;if(n.getStructureFor(e).offset<0)return;const i=new Float32Array(t.storage),r=[];for(let t=0;t<n.elements.length;t++){const i=n.elements[t];i.name!==e&&r.push({semantic:i.name,type:i.dataType,components:i.numComponents,normalize:i.normalize})}const s=new a.a(UnityEngine.Graphics.graphicsDevice,r),o=new Float32Array(s.size/4*t.numVertices);let l=0;for(let e=0;e<t.numVertices;e++)o[l++]=i[e];t.invalidateBuffer();const c=t.numVertices*t.format.size;t.device._vram.vb+=c-t.numBytes,t.format=s,t.numBytes=c,t.storage=o.buffer}recalculateBounds(){const e=new i.m,t=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_POSITION,!0);if(t.offset<0)return void this._aabb.setMinMax(i.m.ZERO,i.m.ZERO);const n=new Float32Array(this.vertexBuffer.lock());this._aabb.setToInfinity();for(let r=0;r<this.subMeshes.length;r++){const s=new i.m(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),a=new i.m(-Number.MAX_SAFE_INTEGER,-Number.MAX_SAFE_INTEGER,-Number.MAX_SAFE_INTEGER),o=this.subMeshes[r],l=new Uint16Array(o.indexBuffer[0].storage);for(let i=0;i<l.length;i++){const r=l[i]*t.stride+t.offset;e.set(n[r+0],n[r+1],n[r+2]),s.x=s.x>e.x?e.x:s.x,s.y=s.y>e.y?e.y:s.y,s.z=s.z>e.z?e.z:s.z,a.x=a.x<e.x?e.x:a.x,a.y=a.y<e.y?e.y:a.y,a.z=a.z<e.z?e.z:a.z}l.length>0?o._aabb.setMinMax(s,a):o._aabb.setToInfinity(),l.length>0&&(this._aabb.expandToPoint(s),this._aabb.expandToPoint(a))}}getVertexArrayObject(){if(this.vao)return this.vao;const e=UnityEngine.Graphics.graphicsDevice;this.vao=e.gl.createVertexArray(),e.gl.bindVertexArray(this.vao),this.vertexBuffer.unlock(),this.indexBuffer[0].unlock();const t=this.vertexBuffer.format;for(let t=0;t<16;t++)e.gl.disableVertexAttribArray(t);e.gl.vertexAttrib4fv(r.c.ShaderAttributeSlots.POSITION,d),e.gl.vertexAttrib4fv(r.c.ShaderAttributeSlots.COLOR,u),e.gl.vertexAttrib4fv(r.c.ShaderAttributeSlots.TANGENT,m),e.gl.vertexAttrib4fv(r.c.ShaderAttributeSlots.NORMAL,g),e.gl.vertexAttrib4fv(r.c.ShaderAttributeSlots.TEXCOORD0,h);for(let n=0;n<t.elements.length;n++){const i=t.elements[n],s=r.c.ShaderAttributeSlots[i.name];e.gl.enableVertexAttribArray(s),e.gl.vertexAttribPointer(s,i.numComponents,e.glType[i.dataType],i.normalize,i.stride,i.offset)}return e.gl.bindVertexArray(null),this.vao}setSubMeshCount(e){for(let t=e;t<this.subMeshes.length;t++)this.subMeshes[t]._refCount=-1/0;this.subMeshes.length=e;for(let t=0;t<e;t++)this.subMeshes[t]||(this.subMeshes[t]=new S(!0),this.subMeshes[t].name="SubMesh-"+t,this.subMeshes[t].parentMeshId=this.id,this.subMeshes[t].vertexBuffer=this.vertexBuffer,this.subMeshes[t].indexBuffer=[new l.a(UnityEngine.Graphics.graphicsDevice,r.c.INDEXFORMAT_UINT16,0,r.c.BUFFER_STATIC)]);this.version++}recalculateNormals(){this.enableSemantic(r.c.SEMANTIC_NORMAL);const e=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_POSITION,!0),t=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_NORMAL,!0),n=new Float32Array(this.vertexBuffer.lock()),s=new i.m,a=new i.m,o=new i.m;let l=-1;for(let i=0;i<this.subMeshes.length;i++){if(this.getTopology(i)!==UnityEngine.MeshTopology.Triangles)throw Error("Cannot recalculate normals for non-triangle mesh");const r=this.subMeshes[i],c=new Uint16Array(r.indexBuffer[0].storage);for(let i=0;i<c.length;i+=3)l=c[i+0]*e.stride+e.offset,s.set(n[l+0],n[l+1],n[l+2]),l=c[i+1]*e.stride+e.offset,a.set(n[l+0],n[l+1],n[l+2]),l=c[i+2]*e.stride+e.offset,o.set(n[l+0],n[l+1],n[l+2]),a.sub(o),s.sub(o),o.cross(s,a),l=c[i+0]*t.stride+t.offset,n[l+0]=o.x,n[l+1]=o.y,n[l+2]=o.z,l=c[i+1]*t.stride+t.offset,n[l+0]=o.x,n[l+1]=o.y,n[l+2]=o.z,l=c[i+2]*t.stride+t.offset,n[l+0]=o.x,n[l+1]=o.y,n[l+2]=o.z}this.vertexBuffer.unlock()}recalculateTangents(){const e=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_TEXCOORD0,!0);if(e.offset<0)return;this.enableSemantic(r.c.SEMANTIC_TANGENT);const t=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_POSITION,!0),n=this.vertexBuffer.format.getStructureFor(r.c.SEMANTIC_TANGENT,!0),s=new Float32Array(this.vertexBuffer.lock()),a=new i.m,o=new i.m,l=new i.m,c=new i.l,u=new i.l,h=new i.l,d=new i.m;let m=-1;for(let i=0;i<this.subMeshes.length;i++){if(this.getTopology(i)!==UnityEngine.MeshTopology.Triangles)throw Error("Cannot recalculate tangents for non-triangle mesh");const r=this.subMeshes[i],g=new Uint16Array(r.indexBuffer[0].storage);for(let i=0;i<g.length;i+=3){m=g[i+0]*t.stride+t.offset,a.set(s[m+0],s[m+1],s[m+2]),m=g[i+1]*t.stride+t.offset,o.set(s[m+0],s[m+1],s[m+2]),m=g[i+2]*t.stride+t.offset,l.set(s[m+0],s[m+1],s[m+2]),m=g[i+0]*e.stride+e.offset,c.set(s[m+0],s[m+1]),m=g[i+1]*e.stride+e.offset,u.set(s[m+0],s[m+1]),m=g[i+2]*e.stride+e.offset,h.set(s[m+0],s[m+1]);const r=u.x-c.x,$=h.x-c.x,p=u.x-h.x,y=u.y-c.y,f=h.y-c.y,_=u.y-h.y,S=Math.abs(r)+Math.abs(y),b=Math.abs($)+Math.abs(f),C=Math.abs(p)+Math.abs(_);S>b?S>C?(d.sub2(o,a),d.x*=r>0?1:-1,d.y*=y>0?1:-1):(d.sub2(l,o),d.x*=p>0?1:-1,d.y*=_>0?1:-1):b>C?(d.sub2(l,a),d.x*=$>0?1:-1,d.y*=f>0?1:-1):(d.sub2(l,o),d.x*=p>0?1:-1,d.y*=_>0?1:-1),m=g[i+0]*n.stride+n.offset,s[m+0]=d.x,s[m+1]=d.y,s[m+2]=d.z,s[m+3]=1,m=g[i+1]*n.stride+n.offset,s[m+0]=d.x,s[m+1]=d.y,s[m+2]=d.z,s[m+3]=1,m=g[i+2]*n.stride+n.offset,s[m+0]=d.x,s[m+1]=d.y,s[m+2]=d.z,s[m+3]=1}}this.vertexBuffer.unlock()}getVertexCount(){return this.vertexBuffer?this.vertexBuffer.numVertices:0}getTopology(e){const t=this.subMeshes[e];switch(t.primitive[0].type){case r.c.PRIMITIVE_TRIANGLES:return UnityEngine.MeshTopology.Triangles;case r.c.PRIMITIVE_LINES:return UnityEngine.MeshTopology.Lines;case r.c.PRIMITIVE_LINESTRIP:return UnityEngine.MeshTopology.LineStrip;case r.c.PRIMITIVE_POINTS:return UnityEngine.MeshTopology.Points}throw Error("Mesh's topology is set to \""+t.primitive[0].type+'", which is not supported by Unity API')}configureIndexBufferAsTriangleStrip(e,t){this.primitive[e].type=r.c.PRIMITIVE_TRISTRIP,this.primitive[e].base=0,this.primitive[e].count=t,this.primitive[e].indexed=!0}configureIndexBufferAsTriangles(e,t){this.primitive[e].type=r.c.PRIMITIVE_TRIANGLES,this.primitive[e].base=0,this.primitive[e].count=t,this.primitive[e].indexed=!0}clone(){const e=new S;e.name=this.name+" Instance",e.aabb.copy(this.aabb);const t=[];for(let e=0;e<this.vertexBuffer.format.elements.length;e++){const n=this.vertexBuffer.format.elements[e];t[e]={semantic:n.name,components:n.numComponents,type:n.dataType}}const n=e.defaultVertexBufferWithFormatElements(t,this.getVertexCount(),this.vertexBuffer.storage.slice(0,this.vertexBuffer.storage.byteLength));e.vertexBuffer=n,e.subMeshes=[];for(let t=0;t<this.subMeshes.length;t++){const i=this.subMeshes[t],s=i.indexBuffer[0],a=s.storage.slice(0,s.storage.byteLength),o=new Uint16Array(a),l=new S(!0);l.aabb.copy(i.aabb);const c=e.defaultIndexBuffer(o.length,o.buffer);l.vertexBuffer=n,l.indexBuffer[0]=c,l.primitive[0].type=r.c.PRIMITIVE_TRIANGLES,l.primitive[0].base=0,l.primitive[0].count=o.length,l.primitive[0].indexed=!0,e.subMeshes.push(l)}e.indexBuffer=e.subMeshes[0].indexBuffer,e.primitive[0].type=r.c.PRIMITIVE_TRIANGLES,e.primitive[0].base=0,e.primitive[0].count=e.indexBuffer[0].numIndices,e.primitive[0].indexed=!0;for(let t=0;t<this.bindposes.length;t++)e.bindposes.push(this.bindposes[t].clone());return e}get aabb(){return this.morph?this.morph.aabb:this._aabb}set aabb(e){this.morph?(this._aabb=this.morph._baseAabb=e,this.morph._calculateAabb()):this._aabb=e,this.version++}}S.id=0;class b extends s.b{constructor(e,t,n){super(),this._key=[0,0],this.id=S.id++,this.isStatic=!1,this.node=e,this._mesh=t,t._refCount++,t.meshInstance=this,this._material=n,this._element=null,this._nearestScreen=null,this._shaderDefs=0,this._shaderDefs|=t.vertexBuffer.format.hasUv0?r.c.SHADERDEF_UV0:0,this._shaderDefs|=t.vertexBuffer.format.hasUv1?r.c.SHADERDEF_UV1:0,this._shaderDefs|=t.vertexBuffer.format.hasColor?r.c.SHADERDEF_VCOLOR:0,this._shaderDefs|=t.vertexBuffer.format.hasTangents?r.c.SHADERDEF_TANGENTS:0,this._shaderDefs|=r.c.SHADERDEF_CAST_SHADOWS,this._shaderDefs&=~r.c.SHADERDEF_NOSHADOWS,this._lightHash=0,this.visible=!0,this._flipFaces=!1,this.cull=!0,this.pick=!0,this.drawOrder=0,this.sortingLayerIndex=0,this.sortingOrder=0,this.zdist=0,this.mask=0,this.constAttributes={},this._worldAabbOverride=null,this.updateKey(),this._skinInstance=null,this._morphInstance=null,this.instancingData=null,this._aabb=new i.b,this._boneAabb=null,this._aabbVer=-1,this.drawOrder=0,this.visibleThisFrame=!1,this._lightProbe=null,this.stencilFront=null,this.stencilBack=null,this.lightmapIndex=-1,this.lightmapSceneIndex=-1,this.isCanvas=!1,this.isSortingGroup=!1}updateKey(){const e=this.material,t=2e7-1e3*((e?e.renderQueue:null)||2e3)+(e?e.id:0);this._key[r.c.SORTKEY_FORWARD]=function(e,t){return 0|(33554431&t)<<0}(0,t)}configureLightmap(){const e=UnityEngine.LightmapSettings.manager.getLightmap(this.lightmapSceneIndex,this.lightmapIndex);e&&e.lightmapColor?this.setParameter("unity_Lightmap",e.lightmapColor.handle):this.setParameter("unity_Lightmap",null),(this._shaderDefs&r.c.SHADERDEF_DIRLM)>0&&(e&&e.lightmapDirection?this.setParameter("unity_LightmapInd",e.lightmapDirection.handle):this.setParameter("unity_LightmapInd",null))}hasUVChannel(e){if(!this._mesh)return!1;const t=this._mesh.vertexBuffer.format;switch(e){case r.c.SEMANTIC_TEXCOORD0:return t.hasUv0;case r.c.SEMANTIC_TEXCOORD1:return t.hasUv1;case r.c.SEMANTIC_TEXCOORD2:return t.hasUv2;case r.c.SEMANTIC_TEXCOORD3:return t.hasUv3;default:return!1}}get mesh(){return this._mesh}set mesh(e){this._mesh&&this._mesh._refCount--,this._mesh=e,e&&e._refCount++}get aabb(){if(this.worldAabbOverride)return this.worldAabbOverride;let e;if(this.skinInstance){const t=this.mesh.skin.boneNames.length+5;let n,s;if(!this.mesh.boneAabb){this.mesh.boneAabb=[],this.mesh.boneUsed=[];const a=this.mesh.vertexBuffer.format.elements,o=this.mesh.vertexBuffer.numVertices,l=this.mesh.vertexBuffer.format.size;let c,u,h,d,m,g,$;for(s=0;s<a.length;s++)a[s].name===r.c.SEMANTIC_POSITION?u=a[s].offset:a[s].name===r.c.SEMANTIC_BLENDINDICES?h=a[s].offset:a[s].name===r.c.SEMANTIC_BLENDWEIGHT&&(d=a[s].offset);const p=new Float32Array(this.mesh.vertexBuffer.storage),y=new Float32Array(this.mesh.vertexBuffer.storage),f=u/4,_=d/4,S=h/4,b=l/4;let C,E,T,v,I;const x=[],A=[];for(n=this.mesh.boneUsed,s=0;s<t;s++)x[s]=new i.m(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),A[s]=new i.m(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE);for(m=0;m<o;m++)for(g=0;g<4;g++)y[m*b+_+g]>0&&(c=p[m*b+S+g],T=y[m*b+f],v=y[m*b+f+1],I=y[m*b+f+2],C=A[c],E=x[c],E.x>T&&(E.x=T),E.y>v&&(E.y=v),E.z>I&&(E.z=I),C.x<T&&(C.x=T),C.y<v&&(C.y=v),C.z<I&&(C.z=I),n[c]=!0);if(this.morphInstance){let e;const t=this.morphInstance.morph._targets,n=new Float32Array(3*o),i=new Float32Array(3*o);let r,s,a,l,c,u,h;for(m=0;m<o;m++)n[3*m]=i[3*m]=y[m*b+f],n[3*m+1]=i[3*m+1]=y[m*b+f+1],n[3*m+2]=i[3*m+2]=y[m*b+f+2];for($=0;$<t.length;$++){l=t[$];for(let t=0;t<l.frames.length;t++)for(c=l.frames[t].indices,u=c.length,h=l.frames[t].deltaPositions,g=0;g<u;g++)e=c[g],r=h[3*g],s=h[3*g+1],a=h[3*g+2],r<0?n[3*e]+=r:i[3*e]+=r,s<0?n[3*e+1]+=s:i[3*e+1]+=s,a<0?n[3*e+2]+=a:i[3*e+2]+=a}}for(s=0;s<t;s++)e=new i.b,e.setMinMax(x[s],A[s]),this.mesh.boneAabb.push(e)}if(!this._boneAabb)for(this._boneAabb=[],s=0;s<this.mesh.boneAabb.length;s++)this._boneAabb[s]=new i.b;for(n=this.mesh.boneUsed,s=0;s<this.mesh.boneAabb.length;s++)n[s]&&this._boneAabb[s].setFromTransformedAabb(this.mesh.boneAabb[s],this.skinInstance.matrices[s]);const a=this.skinInstance.skin.rootBone?this.skinInstance.skin.rootBone.getWorldTransform():this.node.getWorldTransform();let o=!0;for(s=0;s<this.mesh.boneAabb.length;s++)n[s]&&(o?($.center.copy(this._boneAabb[s].center),$.halfExtents.copy(this._boneAabb[s].halfExtents),o=!1):$.add(this._boneAabb[s]));this._aabb.setFromTransformedAabb($,a)}else if(this.node._aabbVer!==this._aabbVer){e=this.mesh?this.mesh.aabb:this._aabb,this.mesh||e.setToInfinity();const t=this.parameters.localToWorldMatrix?p.set(this.parameters.localToWorldMatrix.data):this.node.getWorldTransform();this._aabb.setFromTransformedAabb(e,t),this._aabbVer=this.node._aabbVer}return this._aabb}set aabb(e){this._aabb=e}get worldAabbOverride(){return this._worldAabbOverride}set worldAabbOverride(e){this._worldAabbOverride=e}get material(){return this._material}set material(e){this._material=e}get skinInstance(){return this._skinInstance}set skinInstance(e){this._skinInstance=e,this._shaderDefs=e?this._shaderDefs|r.c.SHADERDEF_SKIN:this._shaderDefs&~r.c.SHADERDEF_SKIN}get morphInstance(){return this._morphInstance}set morphInstance(e){this._morphInstance=e}get key(){return this._key[r.c.SORTKEY_FORWARD]}set key(e){this._key[r.c.SORTKEY_FORWARD]=e}get renderQueue(){return this.material?this.material.renderQueue:2e3}get isIndexBufferEmpty(){return!1}get castShadows(){return 0!=(this._shaderDefs&r.c.SHADERDEF_CAST_SHADOWS)}set castShadows(e){this._shaderDefs=e?this._shaderDefs|r.c.SHADERDEF_CAST_SHADOWS:this._shaderDefs&~r.c.SHADERDEF_CAST_SHADOWS}get receiveShadows(){return 0==(this._shaderDefs&r.c.SHADERDEF_NOSHADOW)}set receiveShadows(e){this._shaderDefs=e?this._shaderDefs&~r.c.SHADERDEF_NOSHADOW:this._shaderDefs|r.c.SHADERDEF_NOSHADOW}}},(e,t,n)=>{n.d(t,{a:()=>s});var i=n(2);const r=[0,0,0,0,0,0,0];r[i.c.TYPE_INT8]=1,r[i.c.TYPE_UINT8]=1,r[i.c.TYPE_INT16]=2,r[i.c.TYPE_UINT16]=2,r[i.c.TYPE_INT32]=4,r[i.c.TYPE_UINT32]=4,r[i.c.TYPE_FLOAT32]=4;class s{constructor(e,t){this.elements=[],this.hasUv0=!1,this.hasUv1=!1,this.hasUv2=!1,this.hasUv3=!1,this.hasColor=!1,this.hasTangents=!1,this.elementMap={},this.channels=0,this.size=0;for(let n=0,s=t.length;n<s;n++){const s=t[n],a={name:s.semantic,offset:0,stride:0,stream:-1,scopeId:e.scope.resolve(s.semantic),dataType:s.type,numComponents:s.components,normalize:void 0!==s.normalize&&s.normalize,size:s.components*r[s.type]};this.elements.push(a),this.size+=4*Math.ceil(a.size/4),s.semantic===i.c.SEMANTIC_TEXCOORD0?this.hasUv0=!0:s.semantic===i.c.SEMANTIC_TEXCOORD1?this.hasUv1=!0:s.semantic===i.c.SEMANTIC_TEXCOORD2?this.hasUv2=!0:s.semantic===i.c.SEMANTIC_TEXCOORD3?this.hasUv3=!0:s.semantic===i.c.SEMANTIC_COLOR?this.hasColor=!0:s.semantic===i.c.SEMANTIC_TANGENT&&(this.hasTangents=!0),this.channels|=1<<i.c.ShaderAttributeSlots[s.semantic]}let n=0;for(let e=0,t=this.elements.length;e<t;e++){const t=this.elements[e];t.offset=n,t.stride=this.size,n+=t.size,this.elementMap[t.name]=t}}getStructureFor(e,t=!1){let n=-1;const i=t?4:1;for(let t=0;t<this.elements.length;t++)if(this.elements[t].name===e){n=this.elements[t].offset;break}return{offset:n/i,stride:this.size/i}}}},(e,t,n)=>{n.d(t,{a:()=>r});var i=n(2);class r{constructor(e,t,n,s=i.c.BUFFER_STATIC,a=null){this.usage=s,this.format=t,this.numIndices=n,this.device=e;const o=this.device.gl;switch(t){case i.c.INDEXFORMAT_UINT8:this.glFormat=o.UNSIGNED_BYTE;break;case i.c.INDEXFORMAT_UINT16:this.glFormat=o.UNSIGNED_SHORT;break;case i.c.INDEXFORMAT_UINT32:this.glFormat=o.UNSIGNED_INT}this.bytesPerIndex=r.getFormatSize(t),this.numBytes=this.numIndices*this.bytesPerIndex,this.preventDestroy=!1,this.bufferId=null,this.storage=null,a?this.setData(a):this.storage=new ArrayBuffer(this.numBytes),e._vram.ib+=this.numBytes}destroy(){this.preventDestroy||(this.bufferId&&(this.device._vram.ib-=this.numBytes),this.invalidateBuffer())}getFormat(){return this.format}getNumIndices(){return this.numIndices}lock(){return this.storage}unlock(){this.unlockSlice(0,this.numBytes)}unlockSlice(e,t){const n=this.device.gl;let r;switch(this.usage){case i.c.BUFFER_STATIC:r=n.STATIC_DRAW;break;case i.c.BUFFER_DYNAMIC:r=n.DYNAMIC_DRAW;break;case i.c.BUFFER_STREAM:r=n.STREAM_DRAW;break;case i.c.BUFFER_GPUDYNAMIC:r=this.device.webgl2?n.DYNAMIC_COPY:n.STATIC_DRAW}const s=!this.bufferId,a=0===e&&t===this.numBytes;if(s&&(this.bufferId=n.createBuffer()),s||a)n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,this.bufferId),n.bufferData(n.ELEMENT_ARRAY_BUFFER,this.storage,r);else{const i=new Uint8Array(this.storage,e,t);n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,this.bufferId),n.bufferSubData(n.ELEMENT_ARRAY_BUFFER,e,i)}}setData(e){return e.byteLength!==this.numBytes?(UnityEngine.Debug.LogError$1("IndexBuffer: wrong initial data size: expected "+this.numBytes+", got "+e.byteLength),!1):(this.storage=e,this.unlock(),this.numIndices=e.byteLength/this.bytesPerIndex,!0)}resize(e){const t=e*this.bytesPerIndex;if(t!==this.numBytes){this.numBytes=t,this.numIndices=e;const n=this.storage;this.storage=new ArrayBuffer(this.numBytes),new Uint8Array(this.storage).set(new Uint8Array(n).subarray(0,this.numBytes)),this.invalidateBuffer()}}invalidateBuffer(){const e=this.device;this.bufferId&&(e.gl.deleteBuffer(this.bufferId),this.bufferId=null,e.indexBuffer===this&&(e.indexBuffer=null))}get storageInt16(){return new Int16Array(this.storage)}get storageInt32(){return new Int32Array(this.storage)}static getFormatSize(e){switch(e){case i.c.INDEXFORMAT_UINT8:return 1;case i.c.INDEXFORMAT_UINT16:return 2;case i.c.INDEXFORMAT_UINT32:return 4}return 0}}},(e,t,n)=>{n.d(t,{a:()=>a,b:()=>o});const i=32,r=10,s={namesToIds:{},idsToNames:{},nextId:0,getIdByName(e){if(void 0===this.namesToIds[e]){if(this.nextId>=320)return UnityEngine.Debug.LogWarning$1("320 keywords limit exceed. "+e+" was not added!"),null;this.namesToIds[e]=this.nextId,this.idsToNames[this.nextId]=e,this.nextId++}return this.namesToIds[e]}};class a{constructor(){this._version=0,this.bitfield=new Uint32Array(r),this.cardinality=0}setEnabledKeywords(e){this.clear();for(let t=0;t<e.length;t++)this.enableKeyword(e[t])}enableKeyword(e){this.enableKeywordId(s.getIdByName(e))}disableKeyword(e){void 0!==s.namesToIds[e]&&this.disableKeywordId(s.getIdByName(e))}enableKeywordId(e){if(e>=s.nextId||e<0)return;const t=Math.floor(e/i),n=1<<e%i;(this.bitfield[t]&n)===n||(this.cardinality++,this.bitfield[t]|=n),this.updateVersion()}disableKeywordId(e){if(e>=s.nextId||e<0)return;const t=Math.floor(e/i),n=1<<e%i;(this.bitfield[t]&n)===n&&(this.cardinality--,this.bitfield[t]&=~n),this.updateVersion()}isKeywordEnabled(e){return void 0!==s.namesToIds[e]&&this.isKeywordIdEnabled(s.getIdByName(e))}isKeywordIdEnabled(e){if(e>=s.nextId||e<0)return!1;const t=Math.floor(e/i),n=1<<e%i;return(this.bitfield[t]&n)===n}subset(e){let t=!0;for(let n=0;n<r;n++){const i=this.bitfield[n],r=e.bitfield[n];t=t&&(r&i)===i}return t}getEnabledKeywords(){const e=s.nextId,t=[];for(let n=0;n<e;n++){const e=s.idsToNames[n];this.isKeywordEnabled(e)&&t.push(e)}return t}getEnabledKeywordsIds(){const e=s.nextId,t=[];for(let n=0;n<e;n++)this.isKeywordIdEnabled(n)&&t.push(n);return t}merge(e){for(let t=0;t<r;t++){const n=this.bitfield[t],i=e.bitfield[t];this.bitfield[t]=n|i}this.updateCardinality(),this.updateVersion()}clear(){for(let e=0;e<r;e++)this.bitfield[e]=0;this.cardinality=0,this.updateVersion()}copy(e){for(let t=0;t<r;t++)this.bitfield[t]=e.bitfield[t];this.cardinality=e.cardinality,this.updateVersion()}updateCardinality(){this.cardinality=0;for(let e=0;e<r;e++){let t=this.bitfield[e];0!==t&&(t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),this.cardinality+=16843009*(t+(t>>4)&252645135)>>24)}}updateVersion(){this._version++}get version(){return this._version}get enabledKeywords(){return this.getEnabledKeywords().join(" ")}toString(){return this.enabledKeywords}}a.union=function(e,t,n=new a){n.clear();for(let i=0;i<r;i++)n.bitfield[i]=e.bitfield[i]|t.bitfield[i];return n.updateCardinality(),n.updateVersion(),n},a.intersection=function(e,t,n=new a){n.clear();for(let i=0;i<r;i++)n.bitfield[i]=e.bitfield[i]&t.bitfield[i];return n.updateCardinality(),n.updateVersion(),n},a.keywordsEqual=function(e,t,n=new a){return a.intersection(e,t,n),e.cardinality===n.cardinality&&e.cardinality===t.cardinality},a.differenceLeft=function(e,t,n=new a){n.clear();for(let i=0;i<r;i++)n.bitfield[i]=(e.bitfield[i]^t.bitfield[i])&e.bitfield[i];return n.updateCardinality(),n.updateVersion(),n},a.differenceRight=function(e,t,n){return a.differenceLeft(t,e,n)},a.difference=function(e,t,n=new a){n.clear();for(let i=0;i<r;i++)n.bitfield[i]=e.bitfield[i]^t.bitfield[i];return n.updateCardinality(),n.updateVersion(),n};const o={LIGHTMAP_ON:s.getIdByName("LIGHTMAP_ON"),DIRLIGHTMAP_COMBINED:s.getIdByName("DIRLIGHTMAP_COMBINED"),POINT_COOKIE:s.getIdByName("POINT_COOKIE"),POINT:s.getIdByName("POINT"),SPOT:s.getIdByName("SPOT"),DIRECTIONAL_COOKIE:s.getIdByName("DIRECTIONAL_COOKIE"),DIRECTIONAL:s.getIdByName("DIRECTIONAL"),VERTEXLIGHT_ON:s.getIdByName("VERTEXLIGHT_ON"),LIGHTPROBE_SH:s.getIdByName("LIGHTPROBE_SH"),FOG_LINEAR:s.getIdByName("FOG_LINEAR"),FOG_EXP:s.getIdByName("FOG_EXP"),FOG_EXP2:s.getIdByName("FOG_EXP2"),SHADOWS_DEPTH:s.getIdByName("SHADOWS_DEPTH"),SHADOWS_SCREEN:s.getIdByName("SHADOWS_SCREEN"),UNITY_PASS_SHADOWCASTER:s.getIdByName("UNITY_PASS_SHADOWCASTER"),_MAIN_LIGHT_SHADOWS:s.getIdByName("_MAIN_LIGHT_SHADOWS"),_MAIN_LIGHT_SHADOWS_CASCADE:s.getIdByName("_MAIN_LIGHT_SHADOWS_CASCADE"),_SHADOWS_SOFT:s.getIdByName("_SHADOWS_SOFT"),_ADDITIONAL_LIGHTS:s.getIdByName("_ADDITIONAL_LIGHTS"),_ADDITIONAL_LIGHTS_VERTEX:s.getIdByName("_ADDITIONAL_LIGHTS_VERTEX"),_ADDITIONAL_OFF:s.getIdByName("_ADDITIONAL_OFF")}},(e,t,n)=>{n.d(t,{a:()=>a});var i=n(1),r=n(0),s=n(25);class a extends i.k{constructor(){super(),this.id=0,this._model=new s.a,this._castShadows=!0,this._receiveShadows=!0,this.system=i.a.getApplication().systems.renderer,this.__renderer="",this.code=null,this._aabb=null,this._lastAABBVersion=-1}get aabb(){return this._aabb||(this._aabb=new r.b),this.model&&this.model.mesh?this._aabb.setFromTransformedAabb(this.model.mesh.aabb,this.entity.worldTransform):this._aabb.setMinMax(r.m.ZERO,r.m.ZERO),this._aabb}get meshInstances(){return this.model?this.model.meshInstances:null}set meshInstances(e){this.model&&(this.model.meshInstances=e)}get castShadows(){return this._castShadows}set castShadows(e){this._castShadows!==e&&(this._castShadows=e,this.model.castShadows=e)}get receiveShadows(){return this._receiveShadows}set receiveShadows(e){this._receiveShadows!==e&&(this._receiveShadows=e,this.model.receiveShadows=e)}onAttached(){super.onAttached(),this.model&&(this.model.entity=this.entity)}onEnable(){return!!super.onEnable()&&(i.a.getApplication().scene.addRenderer(this),!0)}onDisable(){return!!super.onDisable()&&(i.a.getApplication().scene.removeRenderer(this),!0)}synchronizeWithEntity(){if(!this.entity||!this.code)return;const e=this.model.skin&&this.model.skin.rootBone,t=e?e.aabbVersion:this.entity.aabbVersion;this._destroyed||this._lastAABBVersion===t||(this._lastAABBVersion=t,this.code._lightProbeUsage&&this.code.UpdateProbes(),this.model.flipFaces=e?e._isOddlyScaled():this.entity._isOddlyScaled())}getMeshInstancesForRender(){return this.synchronizeWithEntity(),this.code.OnBeforeRender&&this.code.OnBeforeRender(),this.model.update(),this.model.meshInstances}getPropertyBlock(e,t){this.model.update();const n=this.model.meshInstances[t];n?e.handle.copyFromMeshInstance(n):UnityEngine.Debug.LogWarning$1("MaterialPropertyBlock index "+t+" is out of range")}setPropertyBlock(e,t){this.model.update(),this.model._materialPropertyBlocks[t]=e.handle,this.model._needsUpdate=!0}hasPropertyBlock(){const e=this.model._materialPropertyBlocks.length;if(0===e)return!1;for(let t=0;t<e;t++)if(this.model._materialPropertyBlocks[t])return!0;return!1}setMesh(e){this.model.setMeshDirectlyToMeshInstance(e)}get model(){return this._model}set model(e){this._model=e}}},(e,t,n)=>{n.d(t,{a:()=>a,b:()=>l,c:()=>h,d:()=>r,e:()=>s});var i=n(49);class r{constructor(){this.name=null,this.value=0}}class s{constructor(){this.id=0,this.name=null,this.value=0}}class a{constructor(){this.id=0,this.name=null}}class o{constructor(){this.fixedDeltaTime=0,this.miximumDeltaTime=0,this.timeScale=0,this.maximumParticleTimestep=0}}class l{constructor(){this.enabled=!1,this.layerId=0,this.otherLayerId=0}}class c{constructor(){this.gravity=null,this.defaultSolverIterations=0,this.bounceThreshold=0,this.autoSyncTransforms=!1,this.autoSimulation=!1,this.collisionMatrix=[]}}class u{constructor(){this.material=null,this.gravity=null,this.positionIterations=0,this.velocityIterations=0,this.velocityThreshold=0,this.maxLinearCorrection=0,this.maxAngularCorrection=0,this.maxTranslationSpeed=0,this.maxRotationSpeed=0,this.baumgarteScale=0,this.baumgarteTOIScale=0,this.timeToSleep=0,this.linearSleepTolerance=0,this.angularSleepTolerance=0,this.defaultContactOffset=0,this.autoSimulation=!1,this.queriesHitTriggers=!1,this.queriesStartInColliders=!1,this.callbacksOnDisable=!1,this.reuseCollisionCallbacks=!1,this.autoSyncTransforms=!1,this.collisionMatrix=[]}}class h{constructor(){this.scriptsExecutionOrder=[],this.sortingLayers=[],this.cullingLayers=[],this.timeSettings=new o,this.physicsSettings=new c,this.physics2DSettings=new u,this.qualitySettings=new i.a,this.enableRealtimeShadows=!0,this.enableAutoInstancing=!1,this.enableDynamicBatching=!0,this.lightmapEncodingQuality=0,this.desiredColorSpace=null,this.allTagsInProject=null}}h.instance=new h},(e,t,n)=>{n.d(t,{a:()=>c});const i={SHADER_PASS_ALWAYS:0,SHADER_PASS_FORWARD_BASE:1,SHADER_PASS_FORWARD_ADD:2,SHADER_PASS_SHADOW_CASTER:3,SHADER_PASS_GRAB_PASS:4,SHADER_PASS_VERTEX:5,SHADER_PASS_VERTEX_LM:6,SHADER_PASS_UNIVERSAL_FORWARD_LIT:7,SHADER_PASS_UNIVERSAL_FORWARD_ONLY:8,SHADER_PASS_SRP_DEFAULT_UNLIT:9,RENDER_TYPE_BACKGROUND:0,RENDER_TYPE_OPAQUE:1,RENDER_TYPE_TRANSPARENT:2,LIGHT_MODE_TAG_NAME:"LIGHTMODE",LIGHT_MODE_ALWAYS_NAME:"ALWAYS",LIGHT_MODE_FORWARD_BASE_NAME:"FORWARDBASE",LIGHT_MODE_FORWARD_ADD_NAME:"FORWARDADD",LIGHT_MODE_UNIVERSAL_FORWARD_NAME:"UniversalForward",LIGHT_MODE_UNIVERSAL_FORWARD_ONLY_NAME:"UniversalForwardOnly",LIGHT_MODE_SRP_DEFAULT_UNLIT_NAME:"SRPDEFAULTUNLIT",LIGHT_MODE_SHADOW_CASTER_NAME:"SHADOWCASTER",GRAB_PASS_TAG_NAME:"GRABPASS",LIGHT_MODE_VERTEX_NAME:"Vertex",LIGHT_MODE_VERTEX_LM_NAME:"VertexLM",shaderPassToLightmode:{0:"ALWAYS",1:"FORWARDBASE",2:"FORWARDADD",3:"SHADOWCASTER",4:"GRABPASS",5:"Vertex",6:"VertexLM",7:"UniversalForward",8:"UniversalForwardOnly",9:"SRPDEFAULTUNLIT"},lightmodeToShaderPass:{ALWAYS:0,FORWARDBASE:1,FORWARDADD:2,SHADOWCASTER:3,GRABPASS:4,Vertex:5,VertexLM:6,UniversalForward:7,UniversalForwardOnly:8,SRPDEFAULTUNLIT:9},RENDER_TYPE_TAG_NAME:"RENDERTYPE",RENDER_TYPE_BACKGROUND_NAME:"Background",RENDER_TYPE_OPAQUE_NAME:"Opaque",RENDER_TYPE_TRANSPARENT_NAME:"Transparent",SHADERDEF_NOSHADOW:1,SHADERDEF_SKIN:2,SHADERDEF_UV0:4,SHADERDEF_UV1:8,SHADERDEF_VCOLOR:16,SHADERDEF_INSTANCING:32,SHADERDEF_LM:64,SHADERDEF_DIRLM:128,SHADERDEF_SCREENSPACE:256,SHADERDEF_TANGENTS:512,SHADERDEF_LMUV0:1024,SHADERDEF_LM_DLDR:2048,SHADERDEF_LM_BAKED_AMBIENT:4096,SHADERDEF_LIGHTPROBES:8192,SHADERDEF_BLEND_REFLECTION_PROBES:16384,SHADERDEF_RENDERTYPE_BACKGROUND:32768,SHADERDEF_PARTICLES_INSTANCING:65536,SHADERDEF_UI_MASK:1<<17,SHADERDEF_REVERT_STENCIL:1<<18,SHADERDEF_STENCIL_OVERRIDE:1<<19,SHADERDEF_UI:1<<20,SHADERDEF_CAST_SHADOWS:1<<21,SHADERDEF_BATCHING:1<<22,SORTKEY_FORWARD:0,SORTKEY_DEPTH:1,SEMANTIC_POSITION:"POSITION",SEMANTIC_NORMAL:"NORMAL",SEMANTIC_TANGENT:"TANGENT",SEMANTIC_BLENDWEIGHT:"BLENDWEIGHT",SEMANTIC_BLENDINDICES:"BLENDINDICES",SEMANTIC_COLOR:"COLOR",SEMANTIC_TEXCOORD0:"TEXCOORD0",SEMANTIC_TEXCOORD1:"TEXCOORD1",SEMANTIC_TEXCOORD2:"TEXCOORD2",SEMANTIC_TEXCOORD3:"TEXCOORD3",SEMANTIC_TEXCOORD4:"TEXCOORD4",SEMANTIC_TEXCOORD5:"TEXCOORD5",SEMANTIC_TEXCOORD6:"TEXCOORD6",SEMANTIC_TEXCOORD7:"TEXCOORD7",SEMANTIC_ATTR0:"ATTR0",SEMANTIC_ATTR1:"ATTR1",SEMANTIC_ATTR2:"ATTR2",SEMANTIC_ATTR3:"ATTR3",SEMANTIC_ATTR4:"ATTR4",SEMANTIC_ATTR5:"ATTR5",SEMANTIC_ATTR6:"ATTR6",SEMANTIC_ATTR7:"ATTR7",SEMANTIC_ATTR8:"ATTR8",SEMANTIC_ATTR9:"ATTR9",SEMANTIC_ATTR10:"ATTR10",SEMANTIC_ATTR11:"ATTR11",SEMANTIC_ATTR12:"ATTR12",SEMANTIC_ATTR13:"ATTR13",SEMANTIC_ATTR14:"ATTR14",SEMANTIC_ATTR15:"ATTR15",ADDRESS_REPEAT:0,ADDRESS_CLAMP_TO_EDGE:1,ADDRESS_MIRRORED_REPEAT:2,PIXELFORMAT_A8:0,PIXELFORMAT_L8:1,PIXELFORMAT_L8_A8:2,PIXELFORMAT_R5_G6_B5:3,PIXELFORMAT_R5_G5_B5_A1:4,PIXELFORMAT_R4_G4_B4_A4:5,PIXELFORMAT_R8_G8_B8:6,PIXELFORMAT_R8_G8_B8_A8:7,PIXELFORMAT_DXT1:8,PIXELFORMAT_DXT3:9,PIXELFORMAT_DXT5:10,PIXELFORMAT_RGB16F:11,PIXELFORMAT_RGBA16F:12,PIXELFORMAT_RGB32F:13,PIXELFORMAT_RGBA32F:14,PIXELFORMAT_R32F:15,PIXELFORMAT_DEPTH:16,PIXELFORMAT_DEPTHSTENCIL:17,PIXELFORMAT_111110F:18,PIXELFORMAT_SRGB:19,PIXELFORMAT_SRGBA:20,PIXELFORMAT_ETC1:21,PIXELFORMAT_ETC2_RGB:22,PIXELFORMAT_ETC2_RGBA:23,PIXELFORMAT_PVRTC_2BPP_RGB_1:24,PIXELFORMAT_PVRTC_2BPP_RGBA_1:25,PIXELFORMAT_PVRTC_4BPP_RGB_1:26,PIXELFORMAT_PVRTC_4BPP_RGBA_1:27,TEXTURELOCK_READ:1,TEXTURELOCK_WRITE:2},r={LIGHT_MODE_NAMES:[i.LIGHT_MODE_ALWAYS_NAME,i.LIGHT_MODE_FORWARD_BASE_NAME,i.LIGHT_MODE_FORWARD_ADD_NAME,i.LIGHT_MODE_SHADOW_CASTER_NAME,i.GRAB_PASS_TAG_NAME,i.LIGHT_MODE_VERTEX_NAME,i.LIGHT_MODE_VERTEX_LM_NAME,i.LIGHT_MODE_UNIVERSAL_FORWARD_NAME,i.LIGHT_MODE_UNIVERSAL_FORWARD_ONLY_NAME,i.LIGHT_MODE_SRP_DEFAULT_UNLIT_NAME],RENDER_TYPE_NAMES:[i.RENDER_TYPE_BACKGROUND_NAME,i.RENDER_TYPE_OPAQUE_NAME,i.RENDER_TYPE_TRANSPARENT_NAME]},s={BLENDMODE_ZERO:0,BLENDMODE_ONE:1,BLENDMODE_SRC_COLOR:2,BLENDMODE_ONE_MINUS_SRC_COLOR:3,BLENDMODE_DST_COLOR:4,BLENDMODE_ONE_MINUS_DST_COLOR:5,BLENDMODE_SRC_ALPHA:6,BLENDMODE_SRC_ALPHA_SATURATE:7,BLENDMODE_ONE_MINUS_SRC_ALPHA:8,BLENDMODE_DST_ALPHA:9,BLENDMODE_ONE_MINUS_DST_ALPHA:10,BLENDEQUATION_ADD:0,BLENDEQUATION_SUBTRACT:1,BLENDEQUATION_REVERSE_SUBTRACT:2,BLENDEQUATION_MIN:3,BLENDEQUATION_MAX:4,BUFFER_STATIC:0,BUFFER_DYNAMIC:1,BUFFER_STREAM:2,BUFFER_GPUDYNAMIC:3,CLEARFLAG_COLOR:1,CLEARFLAG_DEPTH:2,CLEARFLAG_STENCIL:4,CLEARFLAG_USE_SKYBOX:8,CUBEFACE_POSX:0,CUBEFACE_NEGX:1,CUBEFACE_POSY:2,CUBEFACE_NEGY:3,CUBEFACE_POSZ:4,CUBEFACE_NEGZ:5,CULLFACE_NONE:0,CULLFACE_BACK:1,CULLFACE_FRONT:2,CULLFACE_FRONTANDBACK:3,TYPE_INT8:0,TYPE_UINT8:1,TYPE_INT16:2,TYPE_UINT16:3,TYPE_INT32:4,TYPE_UINT32:5,TYPE_FLOAT32:6,FILTER_NEAREST:0,FILTER_LINEAR:1,FILTER_NEAREST_MIPMAP_NEAREST:2,FILTER_NEAREST_MIPMAP_LINEAR:3,FILTER_LINEAR_MIPMAP_NEAREST:4,FILTER_LINEAR_MIPMAP_LINEAR:5,FUNC_NEVER:0,FUNC_LESS:1,FUNC_EQUAL:2,FUNC_LESSEQUAL:3,FUNC_GREATER:4,FUNC_NOTEQUAL:5,FUNC_GREATEREQUAL:6,FUNC_ALWAYS:7,INDEXFORMAT_UINT8:0,INDEXFORMAT_UINT16:1,INDEXFORMAT_UINT32:2,PRIMITIVE_POINTS:0,PRIMITIVE_LINES:1,PRIMITIVE_LINELOOP:2,PRIMITIVE_LINESTRIP:3,PRIMITIVE_TRIANGLES:4,PRIMITIVE_TRISTRIP:5,PRIMITIVE_TRIFAN:6,STENCILOP_KEEP:0,STENCILOP_ZERO:1,STENCILOP_REPLACE:2,STENCILOP_INCREMENT:3,STENCILOP_INCREMENTWRAP:4,STENCILOP_DECREMENT:5,STENCILOP_DECREMENTWRAP:6,STENCILOP_INVERT:7,UNIFORMTYPE_BOOL:0,UNIFORMTYPE_INT:1,UNIFORMTYPE_FLOAT:2,UNIFORMTYPE_VEC2:3,UNIFORMTYPE_VEC3:4,UNIFORMTYPE_VEC4:5,UNIFORMTYPE_IVEC2:6,UNIFORMTYPE_IVEC3:7,UNIFORMTYPE_IVEC4:8,UNIFORMTYPE_BVEC2:9,UNIFORMTYPE_BVEC3:10,UNIFORMTYPE_BVEC4:11,UNIFORMTYPE_MAT2:12,UNIFORMTYPE_MAT3:13,UNIFORMTYPE_MAT4:14,UNIFORMTYPE_TEXTURE2D:15,UNIFORMTYPE_TEXTURECUBE:16,UNIFORMTYPE_FLOATARRAY:17,UNIFORMTYPE_TEXTURE2D_SHADOW:18,UNIFORMTYPE_TEXTURECUBE_SHADOW:19,UNIFORMTYPE_TEXTURE3D:20,URP_CAMERA_RENDER_TYPE_BASE:0,URP_CAMERA_RENDER_TYPE_OVERLAY:1},a={};a[s.UNIFORMTYPE_BOOL]=0,a[s.UNIFORMTYPE_INT]=0,a[s.UNIFORMTYPE_FLOAT]=0,a[s.UNIFORMTYPE_VEC2]=new Float32Array([0,0]),a[s.UNIFORMTYPE_VEC3]=new Float32Array([0,0,0]),a[s.UNIFORMTYPE_VEC4]=new Float32Array([0,0,0,0]),a[s.UNIFORMTYPE_IVEC2]=new Int32Array([0,0]),a[s.UNIFORMTYPE_IVEC3]=new Int32Array([0,0,0]),a[s.UNIFORMTYPE_IVEC4]=new Int32Array([0,0,0,0]),a[s.UNIFORMTYPE_BVEC2]=0,a[s.UNIFORMTYPE_BVEC3]=0,a[s.UNIFORMTYPE_BVEC4]=0,a[s.UNIFORMTYPE_MAT2]=new Float32Array([0,0,0,0]),a[s.UNIFORMTYPE_MAT3]=new Float32Array([0,0,0,0,0,0,0,0,0]),a[s.UNIFORMTYPE_MAT4]=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),a[s.UNIFORMTYPE_TEXTURE2D]=null,a[s.UNIFORMTYPE_TEXTURECUBE]=null,a[s.UNIFORMTYPE_FLOATARRAY]=new Float32Array([0,0,0,0]),a[s.UNIFORMTYPE_TEXTURE2D_SHADOW]=null,a[s.UNIFORMTYPE_TEXTURECUBE_SHADOW]=null;const o={};o[i.SEMANTIC_POSITION]=0,o[i.SEMANTIC_NORMAL]=1,o[i.SEMANTIC_TANGENT]=2,o[i.SEMANTIC_BLENDWEIGHT]=3,o[i.SEMANTIC_BLENDINDICES]=4,o[i.SEMANTIC_COLOR]=5,o[i.SEMANTIC_TEXCOORD0]=6,o[i.SEMANTIC_TEXCOORD1]=7,o[i.SEMANTIC_TEXCOORD2]=8,o[i.SEMANTIC_TEXCOORD3]=9,o[i.SEMANTIC_TEXCOORD4]=10,o[i.SEMANTIC_TEXCOORD5]=11,o[i.SEMANTIC_TEXCOORD6]=12,o[i.SEMANTIC_TEXCOORD7]=13,o[i.SEMANTIC_ATTR0]=14,o[i.SEMANTIC_ATTR1]=15,o[i.SEMANTIC_ATTR2]=16,o[i.SEMANTIC_ATTR3]=17,o[i.SEMANTIC_ATTR4]=18,o[i.SEMANTIC_ATTR5]=19,o[i.SEMANTIC_ATTR6]=20,o[i.SEMANTIC_ATTR7]=21,o[i.SEMANTIC_ATTR8]=22,o[i.SEMANTIC_ATTR9]=23,o[i.SEMANTIC_ATTR10]=24,o[i.SEMANTIC_ATTR11]=25,o[i.SEMANTIC_ATTR12]=26,o[i.SEMANTIC_ATTR13]=27,o[i.SEMANTIC_ATTR14]=28,o[i.SEMANTIC_ATTR15]=29;const l={unity_MatrixMVP:2,unity_MatrixMV:4,unity_MatrixVP:8,unity_MatrixV:16,unity_MatrixInvV:32,glstate_matrix_projection:64,unity_MatrixTMV:128,unity_MatrixITMV:256,unity_ObjectToWorld:512,unity_WorldToObject:1024,unity_CameraProjection:2048,unity_CameraInvProjection:4096,"unity_CameraWorldClipPlanes[0]":1,"hlslcc_mtx4x4unity_MatrixMVP[0]":2,"hlslcc_mtx4x4unity_MatrixMV[0]":4,"hlslcc_mtx4x4unity_MatrixVP[0]":8,"hlslcc_mtx4x4unity_MatrixV[0]":16,"hlslcc_mtx4x4unity_MatrixInvV[0]":32,"hlslcc_mtx4x4glstate_matrix_projection[0]":64,"hlslcc_mtx4x4unity_MatrixTMV[0]":128,"hlslcc_mtx4x4unity_MatrixITMV[0]":256,"hlslcc_mtx4x4unity_ObjectToWorld[0]":512,"hlslcc_mtx4x4unity_WorldToObject[0]":1024,"hlslcc_mtx4x4unity_CameraProjection[0]":2048,"hlslcc_mtx4x4unity_CameraInvProjection[0]":4096,Names:[]};l.Names[0]="~PlaceHolder to keep byte shift equal to index~",l.Names[1]="hlslcc_mtx4x4unity_MatrixMVP",l.Names[2]="hlslcc_mtx4x4unity_MatrixMV",l.Names[3]="hlslcc_mtx4x4unity_MatrixVP",l.Names[4]="hlslcc_mtx4x4unity_MatrixV",l.Names[5]="hlslcc_mtx4x4unity_MatrixInvV",l.Names[6]="hlslcc_mtx4x4glstate_matrix_projection",l.Names[7]="hlslcc_mtx4x4unity_MatrixTMV",l.Names[8]="hlslcc_mtx4x4unity_MatrixITMV",l.Names[9]="hlslcc_mtx4x4unity_ObjectToWorld",l.Names[10]="hlslcc_mtx4x4unity_WorldToObject",l.Names[11]="hlslcc_mtx4x4unity_CameraProjection",l.Names[12]="hlslcc_mtx4x4unity_CameraInvProjection",l.InstanceScopeUniform=[],l.InstanceScopeUniform[0]=!1,l.InstanceScopeUniform[1]=!1,l.InstanceScopeUniform[2]=!1,l.InstanceScopeUniform[3]=!1,l.InstanceScopeUniform[4]=!1,l.InstanceScopeUniform[5]=!1,l.InstanceScopeUniform[6]=!1,l.InstanceScopeUniform[7]=!1,l.InstanceScopeUniform[8]=!1,l.InstanceScopeUniform[9]=!0,l.InstanceScopeUniform[10]=!0,l.InstanceScopeUniform[11]=!1,l.InstanceScopeUniform[12]=!1;const c=Object.assign({},{EVENT_MOUSEDOWN:"mousedown",EVENT_MOUSEMOVE:"mousemove",EVENT_MOUSEUP:"mouseup",EVENT_MOUSEWHEEL:"mousewheel",EVENT_TOUCHSTART:"touchstart",EVENT_TOUCHEND:"touchend",EVENT_TOUCHMOVE:"touchmove",EVENT_TOUCHCANCEL:"touchcancel",KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ENTER:13,KEY_SHIFT:16,KEY_CONTROL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_PRINT_SCREEN:44,KEY_INSERT:45,KEY_DELETE:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_SEMICOLON:59,KEY_EQUAL:61,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,KEY_WINDOWS:91,KEY_CONTEXT_MENU:93,KEY_NUMPAD_0:96,KEY_NUMPAD_1:97,KEY_NUMPAD_2:98,KEY_NUMPAD_3:99,KEY_NUMPAD_4:100,KEY_NUMPAD_5:101,KEY_NUMPAD_6:102,KEY_NUMPAD_7:103,KEY_NUMPAD_8:104,KEY_NUMPAD_9:105,KEY_MULTIPLY:106,KEY_ADD:107,KEY_SEPARATOR:108,KEY_SUBTRACT:109,KEY_DECIMAL:110,KEY_DIVIDE:111,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_COMMA:188,KEY_PERIOD:190,KEY_SLASH:191,KEY_OPEN_BRACKET:219,KEY_BACK_SLASH:220,KEY_CLOSE_BRACKET:221,KEY_META:224,MOUSEBUTTON_NONE:-1,MOUSEBUTTON_LEFT:0,MOUSEBUTTON_MIDDLE:1,MOUSEBUTTON_RIGHT:2,PAD_1:0,PAD_2:1,PAD_3:2,PAD_4:3,PAD_FACE_1:0,PAD_FACE_2:1,PAD_FACE_3:2,PAD_FACE_4:3,PAD_L_SHOULDER_1:4,PAD_R_SHOULDER_1:5,PAD_L_SHOULDER_2:6,PAD_R_SHOULDER_2:7,PAD_SELECT:8,PAD_START:9,PAD_L_STICK_BUTTON:10,PAD_R_STICK_BUTTON:11,PAD_UP:12,PAD_DOWN:13,PAD_LEFT:14,PAD_RIGHT:15,PAD_VENDOR:16,PAD_L_STICK_X:0,PAD_L_STICK_Y:1,PAD_R_STICK_X:2,PAD_R_STICK_Y:3},{FILLMODE_NONE:"NONE",FILLMODE_FILL_WINDOW:"FILL_WINDOW",FILLMODE_KEEP_ASPECT:"KEEP_ASPECT",RESOLUTION_AUTO:"AUTO",RESOLUTION_FIXED:"FIXED",SCREEN_TYPE_WORLD:"world",SCREEN_TYPE_CAMERA:"camera",SCREEN_TYPE_SCREEN:"screen"},{FOG_NONE:"none",FOG_LINEAR:"linear",FOG_EXP:"exp",FOG_EXP2:"exp2"},{LIGHTTYPE_DIRECTIONAL:0,LIGHTTYPE_POINT:1,LIGHTTYPE_SPOT:2,SHADOWS_MODE_NO_SHADOWS:0,SHADOWS_MODE_HARD_SHADOWS:1,SHADOWS_MODE_SOFT_SHADOWS:2,SHADOW_RESOLUTION_FROM_QUALITY_SETTINGS:-1,SHADOW_RESOLUTION_LOW:0,SHADOW_RESOLUTION_MEDIUM:1,SHADOW_RESOLUTION_HIGH:2,SHADOW_RESOLUTION_VERY_HIGH:3,SHADOW_PCF3:0,SHADOW_DEPTH:0,SHADOW_VSM8:1,SHADOW_VSM16:2,SHADOW_VSM32:3,SHADOW_PCF5:4,MASK_DYNAMIC:1,MASK_BAKED:2,MASK_LIGHTMAP:4},{PROJECTION_PERSPECTIVE:0,PROJECTION_ORTHOGRAPHIC:1,VIEW_CENTER:0,VIEW_LEFT:1,VIEW_RIGHT:2,ASPECT_AUTO:0,ASPECT_MANUAL:1,GATE_FIT_NONE:0,GATE_FIT_VERTICAL:1,GATE_FIT_HORIZONTAL:2,GATE_FIT_FILL:3,GATE_FIT_OVERSCAN:4},i,r,s,{TEXT_ALIGN_LEFT:"left",TEXT_ALIGN_RIGHT:"right",TEXT_ALIGN_CENTER:"center",TEXT_VERTICAL_ALIGN_TOP:"top",TEXT_VERTICAL_ALIGN_MIDDLE:"middle",TEXT_VERTICAL_ALIGN_BOTTOM:"bottom"},{SPRITE_TYPE_SIMPLE:0,SPRITE_TYPE_SLICED:1,SPRITE_TYPE_TILED:2,SPRITE_TYPE_FILLED:3,FILL_METHOD_HORIZONTAL:0,FILL_METHOD_VERTICAL:1,FILL_METHOD_RADIAL90:2,FILL_METHOD_RADIAL180:3,FILL_METHOD_RADIAL360:4,FILL_ORIGIN_BOTTOM_LEFT:0,FILL_ORIGIN_TOP_RIGHT:1,FILL_ORIGIN_RADIAL_BOTTOM:0,FILL_ORIGIN_RADIAL_RIGHT:1,FILL_ORIGIN_RADIAL_TOP:2,FILL_ORIGIN_RADIAL_LEFT:3},{ELEMENTTYPE_GROUP:"group",ELEMENTTYPE_IMAGE:"image",ELEMENTTYPE_TEXT:"text"},{SHADOWS_MODE_NO_SHADOWS:0,SHADOWS_MODE_HARD_SHADOWS:1,SHADOWS_MODE_HARD_AND_SOFT_SHADOWS:2},{UNKNOWN:0,PORTRAIT:1,PORTRAIT_UPSIDE_DOWN:2,LANDSCAPE_LEFT:3,LANDSCAPE_RIGHT:4});c.UniformDefaultValues=a,c.ShaderAttributeSlots=o,c.UNIFORMS_USAGE_MAP=l},(e,t,n)=>{n.d(t,{a:()=>r});class i{constructor(){this.times={[r.SCRIPTS]:0,[r.ANIMATIONS]:0,[r.ANIMATORS]:0,[r.PHYSICS2D]:0,[r.PHYSICS]:0,[r.RENDER]:0,[r.FRAME]:0},this.drawCalls=0,this.frames=0,this.uiElements=0,this.materialSwitches=0,this.verticesCount=0,this.trianglesCount=0,this.totalSkinnedMeshes=0,this.visibleSkinnedMeshes=0,this.offscreenUpdatedSkinnedMeshes=0,this.shadowCasters=0,this.particleSystems=0,this.particles=0,this.animators=0,this.animatorLayers=0,this.activeBlendStates=0,this.animations=0,this.animatedParameters=0,this.animationKeys=0,this.maxUsedRam=0,this.currentFrameUsedRam=0}reset(){this.times.scripts=0,this.times.animations=0,this.times.animators=0,this.times.physics2d=0,this.times.physics=0,this.times.render=0,this.times.frame=0,this.drawCalls=0,this.frames=0,this.uiElements=0,this.materialSwitches=0,this.verticesCount=0,this.trianglesCount=0,this.totalSkinnedMeshes=0,this.visibleSkinnedMeshes=0,this.offscreenUpdatedSkinnedMeshes=0,this.shadowCasters=0,this.particleSystems=0,this.particles=0,this.animators=0,this.animatorLayers=0,this.activeBlendStates=0,this.animations=0,this.animatedParameters=0,this.animationKeys=0,this.maxUsedRam=0,this.currentFrameUsedRam=0}copy(e){return this.times.scripts=e.times.scripts,this.times.animations=e.times.animations,this.times.animators=e.times.animators,this.times.physics2d=e.times.physics2d,this.times.physics=e.times.physics,this.times.render=e.times.render,this.times.frame=e.times.frame,this.drawCalls=e.drawCalls,this.frames=e.frames,this.uiElements=e.uiElements,this.materialSwitches=e.materialSwitches,this.verticesCount=e.verticesCount,this.trianglesCount=e.trianglesCount,this.totalSkinnedMeshes=e.totalSkinnedMeshes,this.visibleSkinnedMeshes=e.visibleSkinnedMeshes,this.offscreenUpdatedSkinnedMeshes=e.offscreenUpdatedSkinnedMeshes,this.shadowCasters=e.shadowCasters,this.particleSystems=e.particleSystems,this.particles=e.particles,this.animators=e.animators,this.animatorLayers=e.animatorLayers,this.activeBlendStates=e.activeBlendStates,this.animations=e.animations,this.animatedParameters=e.animatedParameters,this.animationKeys=e.animationKeys,this.maxUsedRam=e.maxUsedRam,this.currentFrameUsedRam=e.currentFrameUsedRam,this}}class r{constructor(){this.sample=new i,this.current=new i,this.previous=new i,this.totalDrawCalls=0,this.detailedBreakdown={metrics:{resetTimestamp:performance.now(),frames:0,ram:0},timings:{[r.SCRIPTS]:{total:0,[r.SCRIPTS_ON_AWAKE[1]]:0,[r.SCRIPTS_ON_START[1]]:0,[r.SCRIPTS_ON_UPDATE[1]]:0,[r.SCRIPTS_ON_FIXED_UPDATE[1]]:0,[r.SCRIPTS_ON_POST_UPDATE[1]]:0},[r.ANIMATIONS]:{total:0,[r.ANIMATIONS_EVENTS[1]]:0},[r.ANIMATORS]:{total:0,[r.ANIMATORS_EVENTS[1]]:0},[r.PHYSICS2D]:{total:0,[r.PHYSICS_2D_ON_COLLISION_ENTER[1]]:0,[r.PHYSICS_2D_ON_COLLISION_STAY[1]]:0,[r.PHYSICS_2D_ON_COLLISION_EXIT[1]]:0,[r.PHYSICS_2D_ON_TRIGGER_ENTER[1]]:0,[r.PHYSICS_2D_ON_TRIGGER_STAY[1]]:0,[r.PHYSICS_2D_ON_TRIGGER_EXIT[1]]:0},[r.PHYSICS]:{total:0,[r.PHYSICS_ON_COLLISION_ENTER[1]]:0,[r.PHYSICS_ON_COLLISION_STAY[1]]:0,[r.PHYSICS_ON_COLLISION_EXIT[1]]:0,[r.PHYSICS_ON_TRIGGER_ENTER[1]]:0,[r.PHYSICS_ON_TRIGGER_STAY[1]]:0,[r.PHYSICS_ON_TRIGGER_EXIT[1]]:0,[r.PHYSICS_JOINTS[1]]:0},[r.RENDER]:{total:0,[r.RENDER_DEPTH[1]]:0,[r.RENDER_UI[1]]:0,[r.RENDER_SKIN_AND_MORPH[1]]:0,[r.RENDER_SHADOWS[1]]:0},[r.PARTICLES]:{total:0,[r.PARTICLES_RENDERER[1]]:0,[r.PARTICLES_COLOR_BY_SPEED[1]]:0,[r.PARTICLES_COLOR_OVER_LIFETIME[1]]:0,[r.PARTICLES_FORCE_OVER_LIFETIME[1]]:0,[r.PARTICLES_INHERIT_VELOCITY[1]]:0,[r.PARTICLES_LIMIT_VELOCITY_OVER_LIFETIME[1]]:0,[r.PARTICLES_NOISE[1]]:0,[r.PARTICLES_ROTATION_BY_SPEED[1]]:0,[r.PARTICLES_ROTATION_OVER_LIFETIME[1]]:0,[r.PARTICLES_SIZE_BY_SPEED[1]]:0,[r.PARTICLES_SIZE_OVER_LIFETIME[1]]:0,[r.PARTICLES_TEXTURE_SHEET_ANIMATION[1]]:0,[r.PARTICLES_VELOCITY_OVER_LIFETIME[1]]:0,[r.PARTICLES_SHAPE[1]]:0,[r.PARTICLES_EMITTER[1]]:0},[r.FRAME]:{total:0}}},this.webglVersion=window.WebGL2RenderingContext?2:1,this.webglExtensions=null,this.sectionsStack=[],this.recordedSkinnedMeshes=[],this.recordedMorphInstances=[]}get advancedMode(){return!1}getSnapshot(){const e=this.sample,t=Math.max(1,e.frames),n={scriptsTime:e.times.scripts/t,animationsTime:e.times.animations/t,animatorsTime:e.times.animators/t,physics2dTime:e.times.physics2d/t,physicsTime:e.times.physics/t,renderTime:e.times.render/t,frameTime:e.times.frame/t,drawCalls:e.drawCalls/t,webglVersion:this.webglVersion,webglExtensions:this.webglExtensions,currentRam:e.currentFrameUsedRam,maxRam:e.maxUsedRam};return e.reset(),n}tick(){this.sample.frames++,this.sample.times.scripts+=this.current.times.scripts,this.sample.times.animations+=this.current.times.animations,this.sample.times.animators+=this.current.times.animators,this.sample.times.physics2d+=this.current.times.physics2d,this.sample.times.physics+=this.current.times.physics,this.sample.times.render+=this.current.times.render,this.sample.times.frame+=this.current.times.frame,this.sample.drawCalls+=this.current.drawCalls,this.sample.uiElements+=this.current.uiElements,this.sample.materialSwitches+=this.current.materialSwitches,this.sample.verticesCount+=this.current.verticesCount,this.sample.trianglesCount+=this.current.trianglesCount,this.sample.totalSkinnedMeshes+=this.current.totalSkinnedMeshes,this.sample.visibleSkinnedMeshes+=this.current.visibleSkinnedMeshes,this.sample.offscreenUpdatedSkinnedMeshes+=this.current.offscreenUpdatedSkinnedMeshes,this.sample.shadowCasters+=this.current.shadowCasters,this.sample.particleSystems+=this.current.particleSystems,this.sample.particles+=this.current.particles,this.sample.animators+=this.current.animators,this.sample.animatorLayers+=this.current.animatorLayers,this.sample.activeBlendStates+=this.current.activeBlendStates,this.sample.animations+=this.current.animations,this.sample.animatedParameters+=this.current.animatedParameters,this.sample.animationKeys+=this.current.animationKeys,this.sample.currentFrameUsedRam=this.current.currentFrameUsedRam,this.sample.maxUsedRam<this.current.currentFrameUsedRam&&(this.sample.maxUsedRam=this.current.currentFrameUsedRam,window.appStatsTracer&&window.appStatsTracer.registerRam(this.sample.maxUsedRam)),this.previous.copy(this.current),this.current.reset(),this.recordedSkinnedMeshes=[],this.recordedMorphInstances=[],this.advancedMode&&(this.detailedBreakdown.metrics.frames++,performance.memory&&(this.detailedBreakdown.metrics.ram+=performance.memory.usedJSHeapSize))}recordDrawCall(){this.current.drawCalls+=1,this.totalDrawCalls+=1}recordUiElements(){this.current.uiElements+=1}recordMaterialSwitch(){this.current.materialSwitches+=1}recordVertices(e){this.current.verticesCount+=e}recordTriangles(e){this.current.trianglesCount+=e/3}recordSkinnedMesh(e,t){if(!this.advancedMode||this.recordedSkinnedMeshes.includes(e.node._guid))return;this.current.totalSkinnedMeshes+=1,t&&this.recordVisibleSkinnedMesh();const n=e.skinInstance.skin;n&&n.updateWhenOffscreen&&this.recordOffscreenUpdatedSkinnedMeshes(),this.recordedSkinnedMeshes.push(e.node._guid)}recordMorphInstance(e){this.advancedMode&&!this.recordedMorphInstances.includes(e.node._guid)&&(e.visibleThisFrame&&this.recordVisibleMorphInstance(),this.current.totalSkinnedMeshes+=1,this.recordedMorphInstances.push(e.node._guid))}recordVisibleSkinnedMesh(){this.current.visibleSkinnedMeshes+=1}recordVisibleMorphInstance(){this.current.visibleSkinnedMeshes+=1}recordOffscreenUpdatedSkinnedMeshes(){this.current.offscreenUpdatedSkinnedMeshes+=1}recordActiveAnimator(){this.current.animators+=1}recordActiveAnimation(){this.current.animations+=1}recordAnimatedParameters(e){this.current.animatedParameters+=e}recordAnimatorLayers(e){this.current.animatorLayers+=e}recordActiveBlendState(){this.current.activeBlendStates+=1}recordMemoryUsage(){window.performance.memory&&(this.current.currentFrameUsedRam=window.performance.memory.usedJSHeapSize)}recordAnimationKeys(e){this.current.animationKeys+=e}recordShadowCasters(e){for(let t=0;t<e.length;t++){const n=e[t];this.current.shadowCasters+=n.length}}recordParticleSystem(){this.current.particleSystems+=1}recordParticles(e){this.current.particles+=e}markFrameStart(){this.current.times[r.FRAME]-=performance.now(),this.detailedBreakdown.timings[r.FRAME].total-=performance.now()}markFrameEnd(){this.current.times[r.FRAME]+=performance.now(),this.detailedBreakdown.timings[r.FRAME].total+=performance.now(),this.tick()}startSection(e){this.advancedMode?this.startSubSection([e,null]):this.tickCounters(e,null,-performance.now())}endSection(e){this.advancedMode?this.endSubSection([e,null]):this.tickCounters(e,null,performance.now())}startSubSection(e){const t=e[0],n=e[1];if(!this.advancedMode)return void this.tickCounters(t,null,-performance.now());const i=this.sectionsStack[this.sectionsStack.length-1];i&&this.tickCounters(i[0],i[1],performance.now()),this.tickCounters(t,n,-performance.now()),this.sectionsStack.push(e)}endSubSection(e){const t=e[0],n=e[1];if(!this.advancedMode)return void this.tickCounters(t,null,performance.now());this.tickCounters(t,n,performance.now());const i=this.sectionsStack.pop();this.advancedMode&&(i[0]!==t&&this.reportInconsistency(`Trying to end "${t}" section which is not active`),i[1]!==n&&this.reportInconsistency(`Trying to end "${n}" while "${i[1]}" sub section is still active`));const r=this.sectionsStack[this.sectionsStack.length-1];r&&this.tickCounters(r[0],r[1],-performance.now())}tickCounters(e,t,n){e in this.current.times&&(this.current.times[e]+=n),this.advancedMode&&(this.detailedBreakdown.timings[e]&&(this.detailedBreakdown.timings[e].total+=n),t&&this.detailedBreakdown.timings[e]&&(this.detailedBreakdown.timings[e][t]+=n))}reportInconsistency(e){console.error(e)}}r.SCRIPTS="scripts",r.SCRIPTS_ON_AWAKE=[r.SCRIPTS,"Awake"],r.SCRIPTS_ON_START=[r.SCRIPTS,"Start"],r.SCRIPTS_ON_UPDATE=[r.SCRIPTS,"Update"],r.SCRIPTS_ON_FIXED_UPDATE=[r.SCRIPTS,"FixedUpdate"],r.SCRIPTS_ON_POST_UPDATE=[r.SCRIPTS,"LateUpdate"],r.ANIMATIONS="animations",r.ANIMATIONS_EVENTS=[r.ANIMATIONS,"animationEvents"],r.ANIMATORS="animators",r.ANIMATORS_EVENTS=[r.ANIMATORS,"animatorEvents"],r.PHYSICS2D="physics2d",r.PHYSICS_2D_ON_COLLISION_ENTER=[r.PHYSICS2D,"OnCollisionEnter2D"],r.PHYSICS_2D_ON_COLLISION_STAY=[r.PHYSICS2D,"OnCollisionStay2D"],r.PHYSICS_2D_ON_COLLISION_EXIT=[r.PHYSICS2D,"OnCollisionExit2D"],r.PHYSICS_2D_ON_TRIGGER_ENTER=[r.PHYSICS2D,"OnTriggerEnter2D"],r.PHYSICS_2D_ON_TRIGGER_STAY=[r.PHYSICS2D,"OnTriggerStay2D"],r.PHYSICS_2D_ON_TRIGGER_EXIT=[r.PHYSICS2D,"OnTriggerExit2D"],r.PHYSICS="physics",r.PHYSICS_ON_COLLISION_ENTER=[r.PHYSICS,"OnCollisionEnter"],r.PHYSICS_ON_COLLISION_STAY=[r.PHYSICS,"OnCollisionStay"],r.PHYSICS_ON_COLLISION_EXIT=[r.PHYSICS,"OnCollisionExit"],r.PHYSICS_ON_TRIGGER_ENTER=[r.PHYSICS,"OnTriggerEnter"],r.PHYSICS_ON_TRIGGER_STAY=[r.PHYSICS,"OnTriggerStay"],r.PHYSICS_ON_TRIGGER_EXIT=[r.PHYSICS,"OnTriggerExit"],r.PHYSICS_JOINTS=[r.PHYSICS,"Joints"],r.RENDER="render",r.RENDER_DEPTH=[r.RENDER,"depth"],r.RENDER_UI=[r.RENDER,"ui"],r.RENDER_SKIN_AND_MORPH=[r.RENDER,"skinAndMorph"],r.RENDER_SHADOWS=[r.RENDER,"shadows"],r.PARTICLES="particles",r.PARTICLES_RENDERER=[r.PARTICLES,"renderer"],r.PARTICLES_COLOR_BY_SPEED=[r.PARTICLES,"colorBySpeed"],r.PARTICLES_COLOR_OVER_LIFETIME=[r.PARTICLES,"colorOverLifetime"],r.PARTICLES_FORCE_OVER_LIFETIME=[r.PARTICLES,"forceOverLifetime"],r.PARTICLES_INHERIT_VELOCITY=[r.PARTICLES,"inheritVelocity"],r.PARTICLES_LIMIT_VELOCITY_OVER_LIFETIME=[r.PARTICLES,"limitVelocityOverLifetime"],r.PARTICLES_NOISE=[r.PARTICLES,"noise"],r.PARTICLES_ROTATION_BY_SPEED=[r.PARTICLES,"rotationBySpeed"],r.PARTICLES_ROTATION_OVER_LIFETIME=[r.PARTICLES,"rotationOverLifetime"],r.PARTICLES_SIZE_BY_SPEED=[r.PARTICLES,"sizeBySpeed"],r.PARTICLES_SIZE_OVER_LIFETIME=[r.PARTICLES,"sizeOverLifetime"],r.PARTICLES_TEXTURE_SHEET_ANIMATION=[r.PARTICLES,"textureSheetAnimation"],r.PARTICLES_VELOCITY_OVER_LIFETIME=[r.PARTICLES,"velocityOverLifetime"],r.PARTICLES_SHAPE=[r.PARTICLES,"shape"],r.PARTICLES_EMITTER=[r.PARTICLES,"emitter"],r.FRAME="frame",r.instance=new r},(e,t,n)=>{n.d(t,{a:()=>d,b:()=>g,c:()=>$});var i=n(2),r=n(1),s=n(11),a=n(27),o=n(32),l=n(0);const c={vertex_position:i.c.SEMANTIC_POSITION,vertex_normal:i.c.SEMANTIC_NORMAL,vertex_tangent:i.c.SEMANTIC_TANGENT,vertex_texCoord0:i.c.SEMANTIC_TEXCOORD0,vertex_texCoord1:i.c.SEMANTIC_TEXCOORD1,vertex_color:i.c.SEMANTIC_COLOR,vertex_boneWeights:i.c.SEMANTIC_BLENDWEIGHT,vertex_boneIndices:i.c.SEMANTIC_BLENDINDICES,instancing_translation:i.c.SEMANTIC_TEXCOORD5,instancing_rotation:i.c.SEMANTIC_TEXCOORD6,instancing_scale:i.c.SEMANTIC_TEXCOORD7,instancing_color:i.c.SEMANTIC_ATTR0,instancing_st:i.c.SEMANTIC_ATTR1,batching_matrix_index:i.c.SEMANTIC_ATTR0,_glesVertex:i.c.SEMANTIC_POSITION,_glesNormal:i.c.SEMANTIC_NORMAL,_glesTangent:i.c.SEMANTIC_TANGENT,_glesMultiTexCoord0:i.c.SEMANTIC_TEXCOORD0,_glesMultiTexCoord1:i.c.SEMANTIC_TEXCOORD1,_glesMultiTexCoord2:i.c.SEMANTIC_TEXCOORD2,_glesMultiTexCoord3:i.c.SEMANTIC_TEXCOORD3,_glesColor:i.c.SEMANTIC_COLOR,_glesTANGENT:i.c.SEMANTIC_TANGENT,in_POSITION0:i.c.SEMANTIC_POSITION,in_NORMAL0:i.c.SEMANTIC_NORMAL,in_TANGENT0:i.c.SEMANTIC_TANGENT,in_TEXCOORD0:i.c.SEMANTIC_TEXCOORD0,in_TEXCOORD1:i.c.SEMANTIC_TEXCOORD1,in_TEXCOORD2:i.c.SEMANTIC_TEXCOORD2,in_TEXCOORD3:i.c.SEMANTIC_TEXCOORD3,in_COLOR0:i.c.SEMANTIC_COLOR,_patched_POSITION:i.c.SEMANTIC_POSITION,_patched_COLOR:i.c.SEMANTIC_COLOR,_patched_NORMAL:i.c.SEMANTIC_NORMAL,_patched_TANGENT:i.c.SEMANTIC_TANGENT,_patched_TEXCOORD0:i.c.SEMANTIC_TEXCOORD0},u=new s.a,h=new s.a;class d{constructor(e,t,n=!0){this.device=e,this.definition=t,this.attributes=[],this.uniforms=[],this.samplers=[],this.ready=!1,this._glProgram=null,this.uniformsUsage=0,this.device.createShader(this,n)}destroy(){this.device.destroyShader(this)}}class m{constructor(e,t,n,i,r){this.graphicsDevice=e,this.keywords=new s.a,this.passId=-1,this.subShaderIndex=-1,this.readDepth=!1,this.shader=null,this._particlesShader=null,this._skinnedShader=null,this._uiShader=null,this._uiBatchingShader=null,this._sourceShader=r,this._batchingShader=null,this.usedVertexUniformVectors=0,this.usedFragmentUniformVectors=0,this.setupKeywords(t),this.setupShader(n,i),window.shaderVariantsTraceResults&&(this.traceObject=null)}setupTraceTracker(e,t){if(window.shaderVariantsTraceResults){const n=this.keywords.getEnabledKeywords();this.traceObject=m.createShaderVariantDTO(e,t.passType,t.id,t.subShaderIndex,n)}}getShader(e){return e&i.c.SHADERDEF_PARTICLES_INSTANCING?this.getParticlesShader():e&i.c.SHADERDEF_SKIN?this.getSkinnedShader():e&i.c.SHADERDEF_BATCHING?e&i.c.SHADERDEF_UI?this.getUIBatchingShader():this.getBatchingShader():e&i.c.SHADERDEF_UI?this.getUIShader():this.shader}applyMissingShader(e){const t=(0,a.b)(this._sourceShader.$id);return UnityEngine.Debug.LogError$1(`Shader ${this._sourceShader.name} with id #${this._sourceShader.$id} is replaced as missing shader.`),e&i.c.SHADERDEF_PARTICLES_INSTANCING?this._particlesShader=t:e&i.c.SHADERDEF_SKIN?this._skinnedShader=t:this.shader=t,t}getParticlesShader(){return null!==this._particlesShader||(this._particlesShader=new d(this.graphicsDevice,{attributes:c,vshader:a.a.patchParticlesVertexShader(this.shader.definition.vshader,c),fshader:this.shader.definition.fshader})),this._particlesShader}getSkinnedShader(){return null!==this._skinnedShader||(this._skinnedShader=new d(this.graphicsDevice,{attributes:c,vshader:a.a.patchSkinningVertexShader(this.shader.definition.vshader,c),fshader:this.shader.definition.fshader})),this._skinnedShader}getUIShader(){if(null!==this._uiShader)return this._uiShader;const e=this.shader.definition.vshader.includes("// This is a VP stub");return this._uiShader=new d(this.graphicsDevice,{attributes:c,vshader:e?this.shader.definition.vshader:a.a.patchUIVertexShader(this.shader.definition.vshader,c),fshader:this.shader.definition.fshader}),this._uiShader}getBatchingShader(){if(null!==this._batchingShader)return this._batchingShader;const e=this.shader.definition.vshader.includes("// This is a VP stub");return this._batchingShader=new d(this.graphicsDevice,{attributes:c,vshader:e?this.shader.definition.vshader:a.a.patchBatchingVertexShader(this.shader.definition.vshader,!0),fshader:this.shader.definition.fshader}),this._batchingShader}getUIBatchingShader(){if(null!==this._uiBatchingShader)return this._uiBatchingShader;const e=this.shader.definition.vshader.includes("// This is a VP stub");return this._uiBatchingShader=new d(this.graphicsDevice,{attributes:c,vshader:e?this.shader.definition.vshader:a.a.patchUIVertexShader(this.shader.definition.vshader,c,!0),fshader:this.shader.definition.fshader}),this._uiBatchingShader}setupKeywords(e){this.keywords.setEnabledKeywords(e)}setupShader(e,t){r.a.getApplication().isUrp&&(e=a.a.patchUrpShader(e),t=a.a.patchUrpShader(t)),this.shader=new d(this.graphicsDevice,{attributes:c,vshader:e,fshader:t},!1),this.usedVertexUniformVectors=(0,o.a)(e),this.usedFragmentUniformVectors=(0,o.a)(t)}}m.createShaderVariantDTO=function(e,t,n,i,r){const s=[e.name,e.guid,t,n,i,...r].join("-");return{shaderName:e.name,shaderGUID:e.guid,passType:t,passId:n,subShaderIndex:i,keywords:r,id:s}};class g{constructor(){this.lightMode=i.c.SHADER_PASS_ALWAYS,this.renderType=i.c.RENDER_TYPE_OPAQUE,this.grabPassTextureName=null,this.graphicsDevice=null,this.shaders=[],this.boundParameters=[],this.sourceShader=null,this.supportedKeywords=new s.a,this.keywordGroups=[],this.id=-1,this.subShaderIndex=-1,this.name=null,this.passType=0,this.zTest=null,this.zWrite=null,this.culling=null,this.blending=null,this.alphaBlending=null,this.colorWriteMask=null,this.offsetUnits=null,this.offsetFactor=null,this.stencilRef=null,this.stencilReadMask=null,this.stencilWriteMask=null,this.stencilOp=null,this.stencilOpFront=null,this.stencilOpBack=null,this.tags=null,this.passDefinedKeywords=null,this.passDefinedKeywordGroups=null,this.hasDepthReader=!1,this.usePass=!1,this.variants=[],this.excludedVariants=[],this.missingVariants=[],this.missingVariantKeywords=new s.a,this.maxUsedVertexUniformVectors=0,this.maxUsedFragmentUniformVectors=0}setupTags(){for(let e=0;e<this.tags.length;e++){const t=this.tags[e],n=t.name.toUpperCase();n===i.c.LIGHT_MODE_TAG_NAME&&(this.lightMode=i.c.lightmodeToShaderPass[t.value]),n===i.c.RENDER_TYPE_TAG_NAME&&t.value===i.c.RENDER_TYPE_BACKGROUND_NAME&&(this.renderType=i.c.RENDER_TYPE_BACKGROUND)}}setupKeywords(){this.supportedKeywords.setEnabledKeywords(this.passDefinedKeywords);for(let e=0;e<this.passDefinedKeywordGroups.length;e++)this.keywordGroups[e]=new s.a,this.keywordGroups[e].setEnabledKeywords(this.passDefinedKeywordGroups[e].keywords)}getVariant(e,t=!1,n=!0){let i=null,r=null;s.a.intersection(e,this.supportedKeywords,h);let a=Math.min(this.keywordGroups.length,h.cardinality);for(let e=0;e<this.keywordGroups.length;e++)s.a.intersection(h,this.keywordGroups[e],u),0!==u.cardinality||this.passDefinedKeywordGroups[e].hasDiscard||a++;const o=this.missingVariants.length?[...this.missingVariants,...this.variants]:this.variants;for(let e=0;e<o.length;e++){const t=o[e];if(s.a.intersection(h,t.keywords,u),t.keywords.cardinality===a&&u.cardinality===h.cardinality&&null===r&&(r=t),n){const e=u.cardinality;if(e===h.cardinality&&e===t.keywords.cardinality){i=t;break}}else u.cardinality===t.keywords.cardinality&&(null===i||i.keywords.cardinality<u.cardinality)&&(i=t)}null===i&&o.length>0&&(i=null!==r?r:o[0]),null!==i&&this.isVariantExcluded(i)&&(this.missingVariantKeywords=i.keywords,i=null);const l=window.shaderVariantsTraceResults;if(t&&l&&null!==i)if(i.keywords.cardinality===h.cardinality)null!==i.traceObject&&l.registerShaderVariant(i.traceObject);else{const e=m.createShaderVariantDTO(this.sourceShader,this.passType,this.id,this.subShaderIndex,i.keywords.getEnabledKeywords());l.registerShaderVariant(e)}return i}isVariantExcluded(e){for(let t=0;t<this.excludedVariants.length;t++){const n=this.excludedVariants[t];if((e.subShaderIndex===this.subShaderIndex||e.passId===this.id)&&s.a.keywordsEqual(e.keywords,n.keywords))return!0}return!1}setupVariants(){const e=[];for(let t=0;t<this.variants.length;t++){const n=this.variants[t],i=ShaderProgramsLibrary[n.vertexProgram],r=ShaderProgramsLibrary[n.fragmentProgram],s=new m(this.graphicsDevice,n.keywords,i,r,this.sourceShader);s.readDepth=n.readDepth,s.subShaderIndex=n.subShaderIndex,s.passId=n.passId,s.setupTraceTracker(this.sourceShader,this),e.push(s)}this.variants=e}setupExcludedVariants(){const e=[];for(let t=0;t<this.excludedVariants.length;t++){const n=this.excludedVariants[t],i=new m(this.graphicsDevice,n.keywords,"","",this.sourceShader);i.subShaderIndex=n.subShaderIndex,i.passId=n.passId,e.push(i)}this.excludedVariants=e}updateRenderState(e){for(let t=0;t<this.boundParameters.length;t++){const n=e.parameters[this.boundParameters[t].name];n&&n.data?this.boundParameters[t].val=n.data:this.boundParameters[t].val=0}}setupRenderSettings(){this._collectBoundParameters(this.zTest,this.boundParameters),this._collectBoundParameters(this.zWrite,this.boundParameters),this._collectBoundParameters(this.culling,this.boundParameters),this._collectBoundParameters(this.blending,this.boundParameters),this._collectBoundParameters(this.alphaBlending,this.boundParameters),this._collectBoundParameters(this.colorWriteMask,this.boundParameters),this._collectBoundParameters(this.offsetUnits,this.boundParameters),this._collectBoundParameters(this.offsetFactor,this.boundParameters),this._collectBoundParameters(this.stencilRef,this.boundParameters),this._collectBoundParameters(this.stencilReadMask,this.boundParameters),this._collectBoundParameters(this.stencilWriteMask,this.boundParameters),this._collectBoundParameters(this.stencilOp,this.boundParameters),this._collectBoundParameters(this.stencilOpFront,this.boundParameters),this._collectBoundParameters(this.stencilOpBack,this.boundParameters)}_collectBoundParameters(e,t){if(e)if("Luna.Unity.DTO.UnityEngine.Assets.Shader.Pass+Value"===e.$$fullname&&e.name)t.push(e);else for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n];i&&i.$$fullname&&this._collectBoundParameters(i,t)}}applyMissingVariant(e,t,n){const o=r.a.getApplication().graphicsDevice,l=(0,a.b)(this.sourceShader.$id),c=new m(o,e,l.definition.vshader,l.definition.fshader,this.sourceShader);s.a.intersection(c.keywords,this.supportedKeywords,h),c.keywords.clear(),c.keywords.merge(h),c.shader=l;const u=this.missingVariantKeywords.getEnabledKeywords();let d=`"${this.sourceShader.name}/${i.c.shaderPassToLightmode[t.lightMode]}/${u.length>0?u.join(" "):"_"}" is not found and replaced as missing shader.`;return UnityEngine.Debug.LogError$1(d),this.missingVariants.push(c),c}calculateMaxUsedUniformVectors(){this.maxUsedVertexUniformVectors=0,this.maxUsedFragmentUniformVectors=0;for(let e=0;e<this.variants.length;e++){const t=this.variants[e];this.maxUsedVertexUniformVectors=Math.max(this.maxUsedVertexUniformVectors,t.usedVertexUniformVectors),this.maxUsedFragmentUniformVectors=Math.max(this.maxUsedFragmentUniformVectors,t.usedFragmentUniformVectors)}}}class ${get fallbackShader(){return this.unityFallbackShader?this.unityFallbackShader.handle:null}set fallbackShader(e){this.unityFallbackShader=UnityEngine.Object.FromHandle(UnityEngine.Shader,e)}constructor(e){this.$id=0,this.graphicsDevice=e,this.name=null,this.guid=null,this.shaderDefinedKeywords=null,this.passes=[],this.usePasses=[],this.defaultParameterValues=[],this.defaultParameters={},this.defaultParameterNames=null,this.supportedKeywords=new s.a,this.unityFallbackShader=null,this.readDepth=!1,this.isCreatedByShaderGraph=!1,this.maxUsedVertexUniformVectors=0,this.maxUsedFragmentUniformVectors=0,this["__UnityEngine.Shader"]=null}onAfterDeserialize(){this.setupUsePasses()}setup(){this.supportedKeywords.setEnabledKeywords(this.shaderDefinedKeywords),this.setupPasses(),this.setupDefaultParameters()}setupPasses(){this.maxUsedVertexUniformVectors=0,this.maxUsedFragmentUniformVectors=0;for(let e=0;e<this.passes.length;e++){const t=this.passes[e];t.graphicsDevice=this.graphicsDevice,t.sourceShader=this,t.setupTags(),t.setupKeywords(),t.setupVariants(),t.setupExcludedVariants(),t.setupRenderSettings(),t.calculateMaxUsedUniformVectors(),this.maxUsedVertexUniformVectors=Math.max(this.maxUsedVertexUniformVectors,t.maxUsedVertexUniformVectors),this.maxUsedFragmentUniformVectors=Math.max(this.maxUsedFragmentUniformVectors,t.maxUsedFragmentUniformVectors)}}setupUsePasses(){for(let e=0;e<this.usePasses.length;e++){const t=this.usePasses[e],n=t.shader.handle.passes.find((e=>e.name.toLowerCase()===t.pass.toLowerCase()));n&&this.passes.push(n)}}setupDefaultParameters(){this.defaultParameterNames={};for(let e=0;e<this.defaultParameterValues.length;e++){const t=this.defaultParameterValues[e];switch(this.defaultParameterNames[t.name]=!0,t.type){case Luna.Unity.DTO.UnityEngine.Assets.Shader.ShaderParameterType.Vector:case Luna.Unity.DTO.UnityEngine.Assets.Shader.ShaderParameterType.Color:this.defaultParameters[t.name]=t.value.data;break;case Luna.Unity.DTO.UnityEngine.Assets.Shader.ShaderParameterType.Scalar:this.defaultParameters[t.name]=t.value.x;break;case Luna.Unity.DTO.UnityEngine.Assets.Shader.ShaderParameterType.Texture:{const e=UnityEngine.Texture2D[t.textureValue+"Texture"];this.defaultParameters[t.name]=e?e.handle:null;break}}}}supportsKeyword(e){return this.supportedKeywords.isKeywordEnabled(e)}}$.globalKeywords=new s.a,$.globalUniforms={},$.resolveGlobalUniform=function(e){let t=$.globalUniforms[e];if(!t){const n=pc.Application.getApplication().graphicsDevice;t=$.globalUniforms[e]=n.scope.resolve(e)}return t},$.setGlobalUniform=function(e,t){$.resolveGlobalUniform(e).setValue(t)},$.getGlobalUniform=function(e){return $.resolveGlobalUniform(e).value},$.getGlobalUniformNumber=function(e){return $.getGlobalUniform(e)||0},$.getGlobalMatrixUniform=function(e){let t=$.getGlobalArrayUniform(e);return t?(t instanceof Float32Array||(t=new Float32Array(t)),l.i.fromArray(t)):new l.i},$.setGlobalMatrixUniform=function(e,t){$.setGlobalArrayUniform(e,t.data)},$.getGlobalArrayUniform=function(e){return $.getGlobalUniform(e)||null},$.setGlobalArrayUniform=function(e,t){t&&$.setGlobalUniform(e,t)},$.enableKeyword=function(e){this.globalKeywords.enableKeyword(e)},$.disableKeyword=function(e){this.globalKeywords.disableKeyword(e)},$.getEnabledKeywords=function(){return this.globalKeywords.getEnabledKeywords()},$.generateReport=function(){const e=pc.Application.getApplication().graphicsDevice,t={unityShadersCount:0,totalVariantsCount:0,totalExcludedVariantsCount:0,totalMissingVariantsCount:0,vertexShadersCount:0,fragmentShadersCount:0,shaderPatches:0,shaderVariantsLog:"",shadersLog:""},n=Object.values(UnityEngine.Shader.shaderIndex);t.unityShadersCount=n.length,t.totalVariantsCount=0,t.totalExcludedVariantsCount=0,t.totalMissingVariantsCount=0,t.shadersLog=n.map((e=>`\t[${e.$id}] "${e.name} ( [ ${e.passes.map((e=>i.c.shaderPassToLightmode[e.lightMode])).join(", ")} ] passes, ${e.passes.reduce(((e,t)=>e+t.variants.length),0)} variants )"`)).join("\n"),t.shaderVariantsLog="";for(let e=0;e<n.length;e++){const r=n[e],s=r.passes.reduce(((e,t)=>e+t.variants.length),0);t.shaderVariantsLog+=`[${r.$id}] "${r.name} ( [ ${r.passes.map((e=>i.c.shaderPassToLightmode[e.lightMode])).join(", ")} ] passes, ${s} variants )"\n`;const a=r.passes;for(let e=0;e<a.length;e++){const n=a[e];t.shaderVariantsLog+=n.variants.length>0?`\tVariants:\n ${n.variants.map((t=>`\t(${e})${i.c.shaderPassToLightmode[n.lightMode]}: `+(t.keywords.getEnabledKeywords().toString()||"<no keywords>")+(n.isVariantExcluded(t)?" (excluded)":""))).join("\n")}\n`:`\t(${e})${i.c.shaderPassToLightmode[n.lightMode]}: <no variants>\n`,t.totalVariantsCount+=n.variants.length,t.totalVariantsCount-=n.excludedVariants.length,t.totalExcludedVariantsCount+=n.excludedVariants.length,t.totalMissingVariantsCount+=n.missingVariants.length,t.shaderPatches+=n.variants.filter((e=>e._particlesShader)).length,t.shaderPatches+=n.variants.filter((e=>e._batchingShader)).length,t.shaderPatches+=n.variants.filter((e=>e._uiBatchingShader)).length,t.shaderPatches+=n.variants.filter((e=>e._skinnedShader)).length,t.shaderPatches+=n.variants.filter((e=>e._uiShader)).length}}return t.vertexShadersCount=Object.values(e.vertexShaderCache).length,t.fragmentShadersCount=Object.values(e.fragmentShaderCache).length,t},$.shaderReport=function(){const e=$.generateReport();console.log(`Shaders Report\nUnityShadersCount: ${e.unityShadersCount},\nTotalVariantsCount: ${e.totalVariantsCount},\nTotalExcludedVariantsCount: ${e.totalExcludedVariantsCount},\nMissingVariantUseCount: ${e.totalMissingVariantsCount},\nCompiledGLVertexShaders: ${e.vertexShadersCount},\nCompiledGlFragmentShaders: ${e.fragmentShadersCount},\nPatchedShaderVariants: ${e.shaderPatches},\nShaders:\n${e.shadersLog}\n\nShaderVariants:\n${e.shaderVariantsLog}\n`)}},(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{a:()=>Application});var _math_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_input_index_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),_core_index_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_entity_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(47),_system_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(18),_registry_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(58),_counters_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(15),_scene_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(48),_debugger_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(36),_settings_project_settings_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(13),_rendering_render_target_pool_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(50),_rendering_batching_batching_analytics_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(37);const unityAttenuationTextureBase64="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAABCAYAAABADtw1AAAA+ElEQVRYCc1RSRLDIAxr///jbqlVqhkNJW4IZtEh8oYsyHUz3L64GxCCgYeBjJh4GhArIyZehjxGDUA9Rb9feNGq5ozBAOaUP0WpM1fmGa1dDJqX4nzGy7VXir0aey3sndWexrgzcqAl9s7X9PJZ5IB6O5KXZmpqEbN7GqgD+Z1SNX3P9v7pRvSPaKRb+HfkTI1e7eyI+TM7cIbw/jVn9rjlLDUjNKAVpRPti3o9PKr2CH3ui35r6no8Y6f6mb1fvTBe0RO9gWf6i9i9igbfNMIPtXr8n2h/9NpLt8cb0DO5p/eRO7gLPOJOM/etsps+Rr8395Y4yssbZyWMID2grNAAAAAASUVORK5CYII=",unitySpotTextureBase64="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACABAMAAAAxEHz4AAAAA3NCSVQICAjb4U/gAAAAMFBMVEX///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAv3aB7AAAAEHRSTlMAESIzRFVmd4iZqrvM3e7/dpUBFQAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAO9SURBVGiB3VnredpAEEQdGHdg0wGiA4tUgKggiFSASAMB3EAQFQTRgeUO7HRg3IHtDkxm9+70AFk6sfoSf9k/2D9mNDO7iHt0Op+6nC7XhQh9LkcBfgYFY67T4n+bPp6APRfVNxTWIhwFJ7DrefyhKCwZgL8k+MBL64YoriwZGN8juO/74yCY4IMo+pYMjIf0IYGDEBUQyQhWrBgUfuABPg3D+RK1CMMZKCDChkHhhz7gQEdcxDEL/JFisMKPA8CjaBNzbcGxCIOJBYOj8dMQ8DjeJVx3cQyKcKYZqkyg/z3C4/FxnCT3j1wPSQKK5YIY+tdVEmBA4VcR4ID+3qOe8AcoorViqDDBBjwf+E2MpzNa1RNUxFsw+F6VCTbgB8DvEoa/6mKK5A4MgV9hwlEGQuD58a+5YhFgCJWJcgkQ4Hrj6ZLwBv52OLwbCmJYziYwUS6BBSAA5Kfxh7Q0A5JEDB9JIAHD8Xxl8G+HXL0bhvViMiqXoAXAAPwXHp+KQA5k4gMJLCCYR7t7wr8d41nE/unhLloE5RJIwHi62sBAKV4xPCbb9WxCEk4dsAAY2D+f6jcuXvYwoSQce1AJrGI2UI4nBpiI1yqF0wjRAhLwMZ4ZSMJkdBIjHAyGLOC5PAATwwtLGN0ce+AI0YJqAVpCtDiJkSPEDNQI0BIwC8cxkgNEWCtAS6AYiwRw4CHCpE6AkpAgRq/ooXvpcoS1AlgCx+jmCXIOagSQhBIPqgccYR0eEijGoz7QFCkHtQJYAnsoElAEu0cbASSBPORDoAh0D+wIuA+5EJyuisDKgfLAIaQEKgKrHmgC9pCFoCOwdMAeiiGoCNBEKwGQoBt53S1kaBtBFoJJMcvQDg8PxRQdnaFtBOkk9K8u8k2wzjBN0bSBm4Axso2AQsAoZW1ommE+xVYIsi7a4tM2qD5yF783aYJqw0/TRxB4zZpg2uBpAtNF6wh4mLNBaI3Avgk8CBkBD+LtfVOCh19mFJlg05xgmxG4w2+N5khP0g89y0TQbBDNKB4T2OP1KKYEgy/nEXy9+X8IxCG20EbhIIlHWfhlEn+dP8EbSfxSlb/WhT8s//63sYWfd+kCQ7zEkS+ypMs88UKzhaWudLEtXu6LNxziLU8bmy7htk+88RRvfeWbb/H2X3wAIT4CkR/CiI+BxAdR8qMw8WGc/DhQfCApPhKVH8qKj4XlB9Pio3H54bz4ekB+QSG/IhFf0sivieQXVeKrMvllnfy6UH5hKb8y7YgvbY2IFm+eZZffZ6L/Vv0BqFspPs/Tph4AAAAASUVORK5CYII=",unityNHxRoughnessBase64="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAABACAMAAADCg1mMAAAAA3NCSVQICAjb4U/gAAABEVBMVEX+/v7v7+/S0tKysrKfn5+ampqHh4d5eXltbW1mZmZkZGRjY2NiYmJeXl5bW1taWlpZWVlTU1NPT09OTk5MTExJSUlISEhHR0dGRkZFRUVERERCQkJBQUE+Pj49PT07Ozs6Ojo5OTk4ODg3Nzc2NjY1NTU0NDQzMzMyMjIxMTEwMDAvLy8uLi4tLS0sLCwrKysqKiopKSkoKCgnJycmJiYlJSUkJCQjIyMiIiIhISEgICAfHx8eHh4dHR0cHBwbGxsaGhoZGRkYGBgXFxcWFhYVFRUUFBQTExMSEhIREREQEBAPDw8ODg4NDQ0MDAwLCwsKCgoJCQkICAgHBwcGBgYFBQUEBAQDAwMCAgIBAQEAAAAUqg0sAAAACXBIWXMAAAsSAAALEgHS3X78AAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAABDdJREFUeJzl1wlf2jAcxnF334fbnHNz3hvoB9SqxYJSDkUF5RKGW9//C1n+SZsmpWlTWq72eQe/L2laFgzD+Cfe3/HuYfpbMAxvgsgZpl3sGAHwN4hCYYJZA+lRABmDUApTzZQDGCfC7BT7AEgiBFaYcvUf4dwAxoIwyXJxrjyALIK8wnjbgzST9cm8AKI+CtHXB+8dmi9ApAiR5YdqDg4QoUL4/rDZPX7yALIKIQlGjg8QHQIgGoTRAIK3C5rv2Y0AIKkwIkHAfPnye5d1u91RAcIrBBOQrZcJ77ILBSDHENRAEsA/3jO82yGLAEBGIZiBDIB3vEd5h19UACEUpAgC5Iva2ew2XaQAEgqyBkEABPWu7XZ5u4UXPYA/w0gGYgDXfK/2lrUm2rgARlKQJ3DtF9cPtTfpxgrgp+BvIBLw6hfUO9rvzI0fwIfBz8BPwNnvyOfq+fZbvEkBBFQQGYgF+H5hPdvegE0UwFNB0mBIwA2A6WfqmXjc3qijTR7Ai8EDYZiAFxjqd82n9dBev0GbFoC0gpuBg4ARcOvn6ukvD/HXaFMFEDOIENwJHAIUgPv12d/erL9CmwEAPD8EkQEjwAGw/Uy+WX9N6mtoswKA56PgNHASsAIMgNnP5ZP6S7SZAsDzRHAYMAT0ENhHwD4AtB/O/o1dP5MAZBIIjAF3COgRoAfAuvys/Ksr3F6FzSoAnhCBM+AIOIF223oBkPd+45rM/PErsJkGwBMpOI8Bcwjwy9D+/Cfffbfk7qP9OF/XZx8Azx3BxYC8ES0BmPnlj7986vj8X+CVYcXinADgiREcBOZnMSfg6Cf1xfkCwHNB4AysU2D+K7KfAXwDwpu/BndfCe0cLT93AHhDCNSAvBjNP0j4kxB/CtIr0Hr6dV0/Q9O0+QSAuSLYxwBGzwA9AvbvD79+Pp/LzS8AnsBgMHARsAGs/lwudzznADAewTQw/yxZd6F5DZIrEF9/hcLp6cnJyWEMAPCcCObfBesmINcAuQPgAkCPP/Qryn5cAGDOg4BmPQjkKUDPAAXQNOjPZuMEAGMQGANMgAXgDoAbQNNUVVEymXTcAGD8l5J5FeCLAG4BuAMAAH7/vVQqjgAwDsEiIALVqq4XCqp6iPp3NuMKAGMMCAE8BugerFTQO0A9Osikf22uxRkAZr0dyBsBDgG6BsrlM01V9vd+b639iDuAQQ0wQacDAtXSeV5Vsrs766vLCQAwGANE0GwiAb2QO8qmt36ufEkGgDX0Vuz1Wq2bWqWoHWdTG6tLi8kCIASdZr1WPlMPUuvfP39IGgAQ9PutRq2UV3bXvy2+TR4A2qDXua3pambj68eXiQRAp+D+rnaubC+9e5FMAETQb15q6eU3z5MKgJ6D9sXR6qtnyQUwHjql7ddPEgxgGJ3c+8eJBjBaKwvJBjD0RwkHMJ4mHeBT0gGM/4ecz/SdIIT+AAAAAElFTkSuQmCC",_mouseMovementDelta=new _math_index_js__WEBPACK_IMPORTED_MODULE_0__.m;class Application{constructor(e,t){this.events=new _core_index_js__WEBPACK_IMPORTED_MODULE_2__.a(this),Application._currentApplication=this,this._time=0,this.timeScale=1,this.maxDeltaTime=.1,this.frame=0,this.autoRender=!0,this.renderNextFrame=!1,this._fillMode=_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.FILLMODE_KEEP_ASPECT,this._resolutionMode=_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.RESOLUTION_FIXED,this.minimumResolution=null,this.paused=!1,this.isUrp=!1,this.graphicsDevice=t.graphicsDevice,this.counters=_counters_js__WEBPACK_IMPORTED_MODULE_5__.a.instance,this.counters.webglExtensions=this.graphicsDevice.gl.getSupportedExtensions(),this._audioManager=t.audioManager,this._entityIndex={},this.scene=new _scene_js__WEBPACK_IMPORTED_MODULE_6__.a,this.root=new _entity_js__WEBPACK_IMPORTED_MODULE_3__.a(this),this.root._enabledInHierarchy=!0,this.keyboard=t.keyboard,this.mouse=new _input_index_js__WEBPACK_IMPORTED_MODULE_1__.a(e),this.touch="ontouchstart"in window?new _input_index_js__WEBPACK_IMPORTED_MODULE_1__.b(e):null,this._targetAspect=null,this.systems=new _registry_js__WEBPACK_IMPORTED_MODULE_11__.a,this._visibilityChangeHandler=this.onVisibilityChange.bind(this),document.addEventListener("visibilitychange",this._visibilityChangeHandler,!1),this.events.on("focus",this.onApplicationFocus,this),this.events.on("blur",this.onApplicationBlur,this),this.tick=this._tick.bind(this),this._renderTargetPool=new _rendering_render_target_pool_js__WEBPACK_IMPORTED_MODULE_9__.a(this.graphicsDevice),this.batchingAnalytics=_rendering_batching_batching_analytics_js__WEBPACK_IMPORTED_MODULE_10__.a.instance,this.focused=document.hasFocus(),this.onChangeEvent=new CustomEvent("focusChange",{detail:{isFocused:!1}})}isFocused(){return this.focused}onApplicationFocus(){this.onChangeEvent.detail.isFocused=!0,this.focused=!0,document.dispatchEvent(this.onChangeEvent)}onApplicationBlur(){this.onChangeEvent.detail.isFocused=!1,this.focused=!1,document.dispatchEvent(this.onChangeEvent)}get audioManager(){return this._audioManager}get targetAspect(){return this._targetAspect}set targetAspect(e){this._targetAspect=e,this.setCanvasFillMode(this._fillMode,window.innerWidth,window.innerHeight)}get renderTargetPool(){return this._renderTargetPool}start(){this.frame=0,this.tick(0)}_tick(e){if(!this.graphicsDevice)return;const t=_core_index_js__WEBPACK_IMPORTED_MODULE_2__.f.now();let n=(t-(this._time||t))/1e3;n=(0,_math_index_js__WEBPACK_IMPORTED_MODULE_0__.o)(n,0,this.maxDeltaTime),n*=this.timeScale,this._time=t,UnityEngine.Time.Update(n),window.requestAnimationFrame(this.tick),this.graphicsDevice.contextLost||this.paused||(this.counters.markFrameStart(),this.update(n),this.counters.startSection(_counters_js__WEBPACK_IMPORTED_MODULE_5__.a.RENDER),this.renderer&&(this.autoRender||this.renderNextFrame)&&(this.render(),this.renderNextFrame=!1),this.counters.endSection(_counters_js__WEBPACK_IMPORTED_MODULE_5__.a.RENDER),this.events.fire("frameend"),this.counters.recordMemoryUsage(),this.counters.markFrameEnd(),this.batchingAnalytics.markFrameEnd())}update(e){this.frame++,this.graphicsDevice.updateClientRect(),_system_js__WEBPACK_IMPORTED_MODULE_4__.a.update(e),this.events.fire("update",e),this.mouse&&this.mouse.update(),this.keyboard&&this.keyboard.update(),UnityEngine.Input.Update(),UnityEngine.SceneManagement.SceneManager.ProcessAsync(),this.renderTargetPool.freeUnusedRenderTargets()}render(){this.graphicsDevice.beginFrame(this.frame),this.events.fire("prerender"),this.scene.syncHierarchy(),this.renderer.renderComposition(),this.events.fire("postrender")}syncHierarchy(){this.scene.syncHierarchy()}setCanvasFillMode(e,t,n){this._fillMode=e;const i=this.resizeCanvas(t,n);this.graphicsDevice.resizeCanvas(i.width,i.height)}setCanvasResolution(e,t,n){this._resolutionMode=e,e===_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.RESOLUTION_AUTO&&void 0===t&&(t=this.graphicsDevice.canvas.clientWidth,n=this.graphicsDevice.canvas.clientHeight,0===t&&0===n&&(t=window.innerWidth,n=window.innerHeight)),this.graphicsDevice.resizeCanvas(t,n)}onVisibilityChange(){document.hidden?this._audioManager.suspend():this._audioManager.resume()}resizeCanvas(e,t){const n=window.innerWidth,i=window.innerHeight;if(this._fillMode===_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.FILLMODE_KEEP_ASPECT){const r=this._targetAspect||this.graphicsDevice.canvas.width/this.graphicsDevice.canvas.height;r>n/i?t=(e=n)/r:e=(t=i)*r,this.minimumResolution&&(e<this.minimumResolution.x||t<this.minimumResolution.y)&&(e=this.minimumResolution.x,t=this.minimumResolution.y)}else this._fillMode===_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.FILLMODE_FILL_WINDOW&&(e=n,t=i);return this.graphicsDevice.canvas.style.width=e+"px",this.graphicsDevice.canvas.style.height=t+"px",this._resolutionMode===_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.RESOLUTION_AUTO&&this.setCanvasResolution(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.RESOLUTION_AUTO),{width:e,height:t}}mimicUnityMouse(){window.UnityEngine.Input.mousePosition=new _math_index_js__WEBPACK_IMPORTED_MODULE_0__.m(0,0,0),this.touch?(this.touch.events.on(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.EVENT_TOUCHSTART,this._onTouchStart,this),this.touch.events.on(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.EVENT_TOUCHEND,this._onTouchEnd,this),this.touch.events.on(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.EVENT_TOUCHMOVE,this._onTouchMove,this),this.touch.events.on(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.EVENT_TOUCHCANCEL,this._onTouchEnd,this),UnityEngine.Input.mousePresent=!1,UnityEngine.Input.touchSupported=!0):(this.mouse.events.on(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.EVENT_MOUSEUP,this._onMouseUp,this),this.mouse.events.on(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.EVENT_MOUSEDOWN,this._onMouseDown,this),this.mouse.events.on(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.EVENT_MOUSEMOVE,this._onMouseMove,this),this.mouse.events.on(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.EVENT_MOUSEWHEEL,this._onMouseScroll,this)),this.events.on("prerender",this._updateInputFlags,this),this.events.on("frameend",this._resetScroll,this),this.events.on("frameend",this._resetMouseAxis,this)}_updateInputFlags(){window.UnityEngine.Input.mouseButtonsUp[0]=!1,window.UnityEngine.Input.mouseButtonsUp[1]=!1,window.UnityEngine.Input.mouseButtonsUp[2]=!1,window.UnityEngine.Input.mouseButtonsDown[0]=!1,window.UnityEngine.Input.mouseButtonsDown[1]=!1,window.UnityEngine.Input.mouseButtonsDown[2]=!1,window.UnityEngine.Input.axes.Insert("Mouse ScrollWheel",0)}_resetScroll(){window.UnityEngine.Input.axes.Insert("Mouse ScrollWheel",0),window.UnityEngine.Input.mouseScrollDelta=new _math_index_js__WEBPACK_IMPORTED_MODULE_0__.l(0,0)}_resetMouseAxis(){window.UnityEngine.Input.axes.Insert("Mouse X",0),window.UnityEngine.Input.axes.Insert("Mouse Y",0)}_onMouseUp(e){const t={x:e.x,y:this.graphicsDevice._height-e.y,z:0};window.UnityEngine.Input.mouseButtonsUp[e.button]=!0,window.UnityEngine.Input.mouseButtons[e.button]=!1,window.UnityEngine.Input.mouseButtonsDown[e.button]=!1,window.UnityEngine.Input.mousePosition=new _math_index_js__WEBPACK_IMPORTED_MODULE_0__.m(t.x,t.y,t.z)}_onMouseMove(e){const t={x:e.x,y:this.graphicsDevice._height-e.y,z:0};_mouseMovementDelta.set(t.x-window.UnityEngine.Input.mousePosition.x,t.y-window.UnityEngine.Input.mousePosition.y,t.z),window.UnityEngine.Input.axes.Insert("Mouse X",.1*_mouseMovementDelta.x),window.UnityEngine.Input.axes.Insert("Mouse Y",.1*_mouseMovementDelta.y),window.UnityEngine.Input.mousePosition=new _math_index_js__WEBPACK_IMPORTED_MODULE_0__.m(t.x,t.y,t.z)}_onMouseScroll(e){window.UnityEngine.Input.axes.Insert("Mouse ScrollWheel",.1*e.wheel),window.UnityEngine.Input.mouseScrollDelta=new _math_index_js__WEBPACK_IMPORTED_MODULE_0__.l(0,e.wheel)}_onMouseDown(e){window.UnityEngine.Input.mouseButtonsDown[e.button]=!0,window.UnityEngine.Input.mouseButtons[e.button]=!0,window.UnityEngine.Input.mouseButtonsUp[e.button]=!1;const t={x:e.x,y:this.graphicsDevice._height-e.y,z:0};window.UnityEngine.Input.mousePosition=new _math_index_js__WEBPACK_IMPORTED_MODULE_0__.m(t.x,t.y,t.z)}_onTouchStart(e){const t={x:e.changedTouches[0].x,y:e.changedTouches[0].y,button:0};for(let t=0;t<e.changedTouches.length;t++){const n=e.changedTouches[t];UnityEngine.Input.OnTouchStart(n.id,n.x,this.graphicsDevice._height-n.y)}return this._onMouseDown(t),!0}_onTouchEnd(e){const t={x:e.changedTouches[0].x,y:e.changedTouches[0].y,button:0};for(let t=0;t<e.changedTouches.length;t++){const n=e.changedTouches[t];UnityEngine.Input.OnTouchEnd(n.id,n.x,this.graphicsDevice._height-n.y)}return this._onMouseUp(t),!0}_onTouchMove(e){const t={x:e.changedTouches[0].x,y:e.changedTouches[0].y,button:0};for(let t=0;t<e.changedTouches.length;t++){const n=e.changedTouches[t];UnityEngine.Input.OnTouchMoved(n.id,n.x,this.graphicsDevice._height-n.y)}return this._onMouseMove(t),!0}getRootObjects(){return this.root.children}getMainCamera(){let e=null;for(let t=0;t<this.systems.camera.cameras.length;t++){const n=this.systems.camera.cameras[t];if("MainCamera"===n.entity.tag)return n;n.renderTarget||e||(e=n)}return e}initializeBuiltInTextures(){const e=[["white",[255,255,255,255]],["red",[255,0,0,0]],["gray",[128,128,128,128]],["bump",[127,127,255,127]],["black",[0,0,0,0]]];let t=null,n=null;for(let i=0;i<e.length;i++){const r=e[i][0],s=e[i][1],a=new pc.Texture(this.graphicsDevice,{width:4,height:4,format:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.PIXELFORMAT_R8_G8_B8_A8,premultiplyAlpha:!1,name:r}),o=a.lock();for(let e=0;e<16;e++)o[4*e+0]=s[0],o[4*e+1]=s[1],o[4*e+2]=s[2],o[4*e+3]=s[3];a.unlock(),UnityEngine.Texture2D[r+"Texture"]=UnityEngine.Object.FromHandle(UnityEngine.Texture2D,a),"black"===r&&(t=o),"gray"===r&&(n=o)}UnityEngine.Texture2D.greyTexture=UnityEngine.Texture2D.grayTexture;const i=new pc.Texture(this.graphicsDevice,{width:4,height:4,format:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.PIXELFORMAT_R8_G8_B8_A8,cubemap:!0,premultiplyAlpha:!1,name:"BlackCube"});i._levels=[[t,t,t,t,t]],i.upload(),UnityEngine.Cubemap.blackCube=UnityEngine.Object.FromHandle(UnityEngine.Cubemap,i);const r=new pc.Texture(this.graphicsDevice,{width:4,height:4,format:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.PIXELFORMAT_R8_G8_B8_A8,cubemap:!0,premultiplyAlpha:!1,name:"UnityDefault3D"});r._levels=[[n,n,n,n,n]],r.upload(),UnityEngine.Cubemap.defaultCube=UnityEngine.Object.FromHandle(UnityEngine.Cubemap,r);const s=new pc.Texture(this.graphicsDevice,{width:1024,height:1,addressU:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.ADDRESS_CLAMP_TO_EDGE,addressV:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.ADDRESS_CLAMP_TO_EDGE,format:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.PIXELFORMAT_R8_G8_B8_A8,premultiplyAlpha:!1,name:"UnityAttenuationTexture"});let a=document.createElement("IMG");a.src=unityAttenuationTextureBase64,s.setSource(a),UnityEngine.Texture2D.attenuationTexture=UnityEngine.Object.FromHandle(UnityEngine.Texture2D,s);const o=new pc.Texture(this.graphicsDevice,{width:128,height:128,addressU:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.ADDRESS_CLAMP_TO_EDGE,addressV:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.ADDRESS_CLAMP_TO_EDGE,format:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.PIXELFORMAT_R8_G8_B8_A8,premultiplyAlpha:!1,name:"UnitySpotTexture"});a=document.createElement("IMG"),a.src=unitySpotTextureBase64,o.setSource(a),UnityEngine.Texture2D.spotTexture=UnityEngine.Object.FromHandle(UnityEngine.Texture2D,o);const l=new pc.Texture(this.graphicsDevice,{width:256,height:64,addressU:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.ADDRESS_CLAMP_TO_EDGE,addressV:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.ADDRESS_CLAMP_TO_EDGE,format:_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.PIXELFORMAT_R8_G8_B8_A8,premultiplyAlpha:!1,name:"unityNHxRoughnessTexture"});a=document.createElement("IMG"),a.src=unityNHxRoughnessBase64,l.setSource(a),UnityEngine.Texture2D.nhxRoughnessTexture=UnityEngine.Object.FromHandle(UnityEngine.Texture2D,l),_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.UniformDefaultValues[_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.UNIFORMTYPE_TEXTURE2D]=UnityEngine.Texture2D.blackTexture.handle,_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.UniformDefaultValues[_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.UNIFORMTYPE_TEXTURECUBE]=UnityEngine.Cubemap.defaultCube.handle,_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.UniformDefaultValues[_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.UNIFORMTYPE_TEXTURE2D_SHADOW]=UnityEngine.Texture2D.blackTexture.handle,_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.UniformDefaultValues[_core_index_js__WEBPACK_IMPORTED_MODULE_2__.c.UNIFORMTYPE_TEXTURECUBE_SHADOW]=UnityEngine.Cubemap.defaultCube.handle}installPlayroundOverrides(){const overrides=window.playgroundOverrides||{};for(const className in overrides){if(!overrides.hasOwnProperty(className))continue;const classNameString=JSON.stringify(className),backupClassNameString=JSON.stringify("_"+className);let code="Deserializers[ "+backupClassNameString+" ] = Deserializers[ "+classNameString+"];\n";code+="Deserializers[ "+classNameString+" ] = function () {\n",code+=" var result = Deserializers[ "+backupClassNameString+" ].apply( this, arguments );\n";const fields=overrides[className],formatValue=e=>{switch(e[0]){case"float":case"int":case"string":return JSON.stringify(e[1]);case"boolean":return JSON.stringify(!!e[1]);case"color":return"new pc.Color("+e.slice(1,5).join(",")+")";case"vector2":return"new pc.Vec2("+e.slice(1,3).join(",")+")";case"vector3":return"new pc.Vec3("+e.slice(1,4).join(",")+")";case"vector4":return"new pc.Vec4("+e.slice(1,5).join(",")+")";case"enum":return JSON.stringify(parseInt(e[1],10));case"float[]":case"int[]":case"string[]":case"boolean[]":case"color[]":case"vector2[]":case"vector3[]":case"vector4[]":case"enum[]":{const t=e[0].replace("[]",""),n=e.slice(1),i={float:"System.Single",int:"System.Int32",string:"System.String",boolean:"System.Boolean",color:"pc.Color",vector2:"pc.Vec2",vector3:"pc.Vec3",vector4:"pc.Vec4",enum:"System.Int32"};if(void 0===i[t])return void _debugger_js__WEBPACK_IMPORTED_MODULE_7__.a.Console.error("Unsupported field type: "+e[0]);const r=e=>formatValue([t].concat(e));return"System.Array.init(["+n.map(r).join(",")+"], "+i[t]+")"}default:return void _debugger_js__WEBPACK_IMPORTED_MODULE_7__.a.Console.error("Unsupported field type: "+e[0])}};for(const e in fields){if(!fields.hasOwnProperty(e))continue;const t=fields[e],n=formatValue(t);void 0!==n&&(code+=" result."+e+" = "+formatValue(t)+"; \n")}code+=" return result;\n",code+="}",eval("(function() { "+code+"})()")}}muteAudio(){this.audioManager.masterVolume=0}unmuteAudio(){this.audioManager.masterVolume=1}pause(){_core_index_js__WEBPACK_IMPORTED_MODULE_2__.f.pause(),this.paused=!0,this.audioManager.suspend()}resume(){this.paused&&(_core_index_js__WEBPACK_IMPORTED_MODULE_2__.f.resume(),this.paused=!1,this.audioManager.resume())}tickUrpRenderer(){this.isUrp=!0}initializeRenderer(){const e={enableRealtimeShadows:_settings_project_settings_js__WEBPACK_IMPORTED_MODULE_8__.c.instance.enableRealtimeShadows};this.renderer=this.isUrp?new pc.ForwardRendererUrp(this.graphicsDevice,this.scene,e):new pc.ForwardRenderer(this.graphicsDevice,this.scene,e)}}Application._currentApplication=null,Application.getApplication=()=>Application._currentApplication},(e,t,n)=>{n.d(t,{a:()=>r});var i=n(2);class r{constructor(e){this.app=e,this.store={},this.ComponentType=null,this.id="",this.creatingPrefabs=!1,this.events=new i.a(this)}addComponent(e,t){const n=new this.ComponentType(this,e);return t=t||{},this.store[e.getGuid()]={entity:e,data:n.data},e.c[this.id]=n,this.initializeComponentData(n,t),n}removeComponent(e,t=null){const n=this.store[e.getGuid()],i=e.c[this.id];this.events.fire("beforeremove",e,i),delete this.store[e.getGuid()],delete e.c[this.id],this.events.fire("remove",e,n.data)}initializeComponentData(e,t){e.enabled&&e.entity.enabled&&e.onEnable()}destroy(){this.events.off()}}r.events=new i.a(null),r.update=e=>{r.events.fire("update",e)},r.destroy=()=>{r.events.off("update")}},(e,t,n)=>{n.d(t,{a:()=>s});let i=0;const r={};class s{constructor(){this._enabled=!0,this._destroyed=!1,this.$id=0,this._id=null,this._entity=null,this._system=null,this._code=null,this.internalExecutionOrder=0,this.scriptsExecutionOrder=0,this._scriptsExecutionOrder=0,this._sortingOrderInQueue=i++,this._activatedCallbacks={onAwake:!1,onEnable:!1,onStart:!1,onDisable:!0,onDestroy:!1}}get code(){return this._code}set code(e){this._code=e}get sortingOrderInQueue(){return this.$id}get enabled(){return this._enabled}set enabled(e){const t=this._enabled&&this._entity&&this._entity.enabled,n=e&&this._entity&&this._entity.enabled;this._enabled=e,t===n||this._system.app.systems.unitymanager.callbacksDisabled||(n?this.onEnable():this.onDisable())}get entity(){return this._entity}get system(){return this._system}set system(e){this._system=e}configureForEntity(e){}onInit(){return!this._destroyed&&!this._activatedCallbacks.onAwake&&(this._activatedCallbacks.onAwake=!0,this._activatedCallbacks.onDestroy=!1,this.onAwake(),!0)}onAwake(){}onAttached(){}onEnable(){return!this._destroyed&&!this._activatedCallbacks.onEnable&&(this._activatedCallbacks.onEnable=!0,this._activatedCallbacks.onDisable=!1,this._system._onComponentEnabled(this),this._activatedCallbacks.onStart||this._system._componentShouldStart(this),!0)}onStart(){}onUpdate(e){}onFixedUpdate(e){}onPostUpdate(e){}onBeforeRender(e){}onAfterRender(e){}onApplicationFocus(e){}onDisable(){return!this._destroyed&&!this._activatedCallbacks.onDisable&&(this._activatedCallbacks.onDisable=!0,this._activatedCallbacks.onEnable=!1,this._system._onComponentDisabled(this),!0)}onDestroy(){return!this._destroyed&&!this._activatedCallbacks.onDestroy&&(this._activatedCallbacks.onDestroy=!0,!0)}rememberCallback(e){e in this._activatedCallbacks&&(this._activatedCallbacks[e]=!0)}callbackActivated(e){return this._activatedCallbacks[e]}_onEntityStateChanged(e){this._system.app.systems.unitymanager.callbacksDisabled||(e?this.onEnable():this.onDisable())}_queuesToSubscribe(){return[]}destroy(){this._system&&this._entity&&this._system.removeComponent(this._entity,this),this._destroyed=!0}toUnityObject(){return this.unityClass?UnityEngine.Object.FromHandle(this.unityClass,this):null}}s.prototype.unityClass=null,s.addRequiredComponents=(e,t,n)=>{if(!t)return;const i=Bridge.getTypeName(t),a=Deserializers.typeNameToIdMap[i];if(void 0===a)return;let o;r.hasOwnProperty(a)?o=r[a]:(o=[],o.push(a),s.getAllRequiredComponents(a,o),r[a]=o);const l=UnityEngine.Object.FromHandle(UnityEngine.GameObject,e);for(let e=1;e<o.length;e++){const t=o[e],i=Bridge._getTypeByName(Deserializers.types[t]);if(!l.GetComponent(i)){const e=l.AddComponent(i);n.push(e.handle)}}},s.getAllRequiredComponents=(e,t)=>{const n=Deserializers.requiredComponents[e];if(n&&0!==n.length)for(let e=0;e<n.length;e++){const i=n[e];t.indexOf(i)>=0||(t.push(i),s.getAllRequiredComponents(i,t))}}},(e,t,n)=>{n.d(t,{a:()=>r});var i=n(2);class r{constructor(e){this.func=void 0===e.func?i.c.FUNC_ALWAYS:e.func,this.ref=e.ref||0,this.readMask=void 0===e.readMask?255:e.readMask,this.writeMask=void 0===e.writeMask?255:e.writeMask,this.fail=e.fail||i.c.STENCILOP_KEEP,this.zfail=e.zfail||i.c.STENCILOP_KEEP,this.zpass=e.zpass||i.c.STENCILOP_KEEP}clone(){return new r({func:this.func,ref:this.ref,readMask:this.readMask,writeMask:this.writeMask,fail:this.fail,zfail:this.zfail,zpass:this.zpass})}}},(e,t,n)=>{n.d(t,{a:()=>s});var i=n(4);const r=1e-5;class s{constructor(e,t,n,i){this.r=e||0,this.g=t||0,this.b=n||0,this.a=void 0!==i?i:void 0!==e&&void 0!==e&&void 0!==e?1:0,this._data=null}get data(){return this._data||(this._data=new Float32Array(4)),this._data[0]=this.r,this._data[1]=this.g,this._data[2]=this.b,this._data[3]=this.a,this._data}set rgba(e){this.r=(e>>24)/255,this.g=(e<<8>>24)/255,this.b=(e<<16>>24)/255,this.a=(e<<24>>24)/255}clone(){return new s(this.r,this.g,this.b,this.a)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this}set(e,t,n,i=1){return this.r=e,this.g=t,this.b=n,this.a=i,this}setFromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this.a=e[t+3],this}setFromColor(e){return this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this}setFromString(e){return this.fromString(e)}fromString(e){const t=parseInt(e.replace("#","0x"),16);let n;return e.length>7?n=(0,i.e)(t):(n=(0,i.d)(t),n[3]=255),this.set(n[0]/255,n[1]/255,n[2]/255,n[3]/255),this}toString(e=!1){let t="#"+((1<<24)+(Math.round(255*this.r)<<16)+(Math.round(255*this.g)<<8)+Math.round(255*this.b)).toString(16).slice(1);if(e){const e=Math.round(255*this.a).toString(16);this.a<16/255?t+="0"+e:t+=e}return t}getitem(e){switch(e){case 0:return this.r;case 1:return this.g;case 2:return this.b;case 3:return this.a;default:return NaN}}setitem(e,t){switch(e){case 0:this.r=t;break;case 1:this.g=t;break;case 2:this.b=t;break;case 3:this.a=t}}premultiply(){return this.r*=this.a,this.g*=this.a,this.b*=this.a,this}add(e,t,n,i){return this.r+=e,this.g+=t,this.b+=n,this.a+=i,this.clamp()}mul(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this.a*=e.a,this}mul2(e,t){return this.r=e.r*t.r,this.g=e.g*t.g,this.b=e.b*t.b,this.a=e.a*t.a,this}scale(e){return this.r*=e,this.g*=e,this.b*=e,this.a*=e,this}clamp(){return this.r=Math.max(0,Math.min(this.r,1)),this.g=Math.max(0,Math.min(this.g,1)),this.b=Math.max(0,Math.min(this.b,1)),this.a=Math.max(0,Math.min(this.a,1)),this}toLinear(){return this.r=s.gammaToLinear(this.r),this.g=s.gammaToLinear(this.g),this.b=s.gammaToLinear(this.b),this}equals(e){return Math.abs(this.r-e.r)<r&&Math.abs(this.g-e.g)<r&&Math.abs(this.b-e.b)<r&&Math.abs(this.a-e.a)<r}getHashCode(){return this.r^this.g^this.b^this.a}hash(){return this.getHashCode()}strictEquals(e){return e instanceof s&&this.equals(e)}lerpTo(e,t){this.r=e.r*t+this.r*(1-t),this.g=e.g*t+this.g*(1-t),this.b=e.b*t+this.b*(1-t),this.a=e.a*t+this.a*(1-t)}grayscale(){return.29899999499321*this.r+.587000012397766*this.g+.114*this.b}linear(){return new s(UnityEngine.Mathf.GammaToLinearSpace(this.r),UnityEngine.Mathf.GammaToLinearSpace(this.g),UnityEngine.Mathf.GammaToLinearSpace(this.b),this.a)}gamma(){return new s(UnityEngine.Mathf.LinearToGammaSpace(this.r),UnityEngine.Mathf.LinearToGammaSpace(this.g),UnityEngine.Mathf.LinearToGammaSpace(this.b),this.a)}maxColorComponent(){return Math.max(Math.max(this.r,this.g),this.b)}$getType(){return s}$clone(e=new s){return e.copy(this),e}}s.ctor=s,s.$kind="struct",s.gammaToLinear=e=>e<=.04045?e/12.92:e<1?Math.pow((e+.055)/1.055,2.4):Math.pow(e,2.2),s.hsvToRGB=(e,t,n,r)=>{let a=0,o=0,l=0;const c=Math.floor(6*e),u=6*e-c;switch(c%6){case 0:a=n,o=n*(1-(1-u)*t),l=n*(1-t);break;case 1:a=n*(1-u*t),o=n,l=n*(1-t);break;case 2:a=n*(1-t),o=n,l=n*(1-(1-u)*t);break;case 3:a=n*(1-t),o=n*(1-u*t),l=n;break;case 4:a=n*(1-(1-u)*t),o=n*(1-t),l=n;break;case 5:a=n,o=n*(1-t),l=n*(1-u*t)}return r||(a=(0,i.c)(a,0,1),o=(0,i.c)(o,0,1),l=(0,i.c)(l,0,1)),new s(a,o,l,1)},s.rgbToHSV=(e,t,n,i)=>{e.b>e.g&&e.b>e.r?s.rgbToHSVHelper(4,e.b,e.r,e.g,t,n,i):e.g>e.r?s.rgbToHSVHelper(2,e.g,e.b,e.r,t,n,i):s.rgbToHSVHelper(0,e.r,e.g,e.b,t,n,i)},s.rgbToHSVHelper=(e,t,n,i,r,s,a)=>{if(a.v=t,0!==a.v){const t=n<=i?n:i,o=a.v-t;if(0!==o?(s.v=o/a.v,r.v=e+(n-i)/o):(s.v=0,r.v=e+(n-i)),r.v/=6,r.v>=0)return;++r.v}else s.v=0,r.v=0},s.lerp=(e,t,n)=>s.lerpUnclamped(e,t,(0,i.c)(n,0,1)),s.lerpUnclamped=(e,t,n)=>new s(UnityEngine.Mathf.LerpUnclamped(e.r,t.r,n),UnityEngine.Mathf.LerpUnclamped(e.g,t.g,n),UnityEngine.Mathf.LerpUnclamped(e.b,t.b,n),UnityEngine.Mathf.LerpUnclamped(e.a,t.a,n)),s.equals=(e,t)=>null===e&&null===t||null!==e&&null!==t&&e.equals(t),s.getDefaultValue=()=>new s,s.rgba8888ToColor=(e,t)=>{e.r=((4278190080&t)>>>24)/255,e.g=((16711680&t)>>>16)/255,e.b=((65280&t)>>>8)/255,e.a=(255&t)/255},s.rgb888ToColor=(e,t)=>{e.r=((16711680&t)>>>16)/255,e.g=((65280&t)>>>8)/255,e.b=(255&t)/255},s.fromString=e=>(new s).fromString(e)},(e,t,n)=>{n.d(t,{a:()=>l,b:()=>o});var i=n(2);const r=1e-5,s={x:0,y:1,z:2,w:3},a={r:0,g:1,b:2,a:3};class o{constructor(e=null,t=null,n=null,i=null,r=0,s=0,a=0){this.time=e,this.value=t,this.inTangent=n,this.outTangent=i,this.tangentMode=0,this.leftConstant=3===s||7===r||71===r||103===r,this.rightConstant=3===a||97===r||101===r||103===r}}class l{constructor(e){this.id=(0,i.b)(),this.path=e.path,this.componentType=e.componentType,this.property=e.property,this.targetsLocalEulerAnglesRaw=!1,this.targetObject=null,this.targetProperty=null,this.isVectorProperty=!1,this.vectorPropertyIndex=-1,this.isMaterialPropertyCurve=!1,this.objectCurve=!1,this.preWrapMode=UnityEngine.WrapMode.Default,this.postWrapMode=UnityEngine.WrapMode.Default,this.keys=[];const t=this.property?this.property.split("."):[];if(this.property&&t.length>1?(this.targetObject=t[0],this.targetProperty=t[1],"localEulerAnglesRaw"===this.targetObject?this.targetsLocalEulerAnglesRaw=!0:"blendShape"===this.targetObject&&(this.targetProperty=this.property.substring(11,this.property.length))):(this.targetProperty=this.property,this.targetObject=null),this.keyId=this.path+":"+this.componentType+"."+this.property,this.componentType){this.isMaterialPropertyCurve=this.componentType.indexOf("Renderer")>=0&&"material"===this.targetObject;const e=this.property.split(".");if(this.isVectorProperty=e.length>2,this.isVectorProperty){const t=e[e.length-1],n=a.hasOwnProperty(t)?a:s;this.vectorPropertyIndex=n[t]}else this.vectorPropertyIndex=-1}if(e.keyframes)this.keys=e.keyframes;else if(e.keys_flow){const t=e.keys_flow;this.keys=[];for(let e=0;e<t.length;e+=7)this.keys.push(new o(t[e],t[e+1],t[e+2],t[e+3],t[e+4],t[e+5],t[e+6]))}else{if(this.keys=[],e.keys)for(let t=0;t<e.keys.length;t++){const n=e.keys[t];this.keys.push(new o(n[0],n[1],n[2],n[3],n[4],n[5],n[6]))}if(e.objectReferenceKeys)for(let t=0;t<e.objectReferenceKeys.length;t++){const n=e.objectReferenceKeys[t];this.keys.push(new o(n[0],n[1],n[2],n[3],n[4],n[5],n[6]))}this.objectCurve=!!e.objectReferenceKeys}}setValue(e,t){0!==this.keys.length&&(e>=this.keys.length?this.keys[this.keys.length-1].value=t:this.keys[e].value=t)}getValue(e){return 0===this.keys.length?-1:e>=this.keys.length?this.keys[this.keys.length-1].value:this.keys[e].value}addKey(e,t){const n=new o(e,t);return this.addKeyFrame(n)}addKeyFrame(e){if(!e||Number.isNaN(e.time)||Number.isNaN(e.value))return-1;const t=this.keys.length;if(0===t||e.time>this.keys[t-1].time)return this.keys.push(e),t;if(e.time<this.keys[0].time)return this.keys.splice(0,0,e),0;for(let n=0;n<t;n++){if(Math.abs(this.keys[n].time-e.time)<Number.EPSILON)return this.keys[n]=e,n;if(this.keys[n].time>e.time)return this.keys.splice(n,0,e),n}return this.keys.push(e),t}findKeyIndexAt(e){if(e<=this.keys[0].time)return 0;const t=this.keys.length;if(e>=this.keys[t-1].time)return t-2;e+=r;let n=0,i=t;for(;n!==i;){const t=Math.floor((n+i)/2);this.keys[t].time<e?n=t+1:i=t}return n-1}sample(e,t){const n=e.getOrCreateKey(this,this.keyId);n.set(this.value(t,n))}value(e,t=null){if(0===this.keys.length)return 0;if(1===this.keys.length)return this.keys[0].value;if(this.keys[this.keys.length-1].time-e<=r)return this.keys[this.keys.length-1].value;let n=t?t.idx:-1;2===this.keys.length?n=0:(-1!==n&&(this.keys[n].time>e||this.keys[n+1].time<e)&&(n=-1),-1===n&&(n=this.findKeyIndexAt(e))),t&&(t.idx=n);const i=this.keys[n],s=this.keys[n+1];if(s.time<=e+r)return s.value;if(null===i.outTangent||null===s.inTangent||i.time>e)return i.value;if(i.rightConstant||s.leftConstant||i.outTangent===1/0||s.inTangent===1/0)return i.value;const a=s.time-i.time,o=(e-i.time)/a;if(this.objectCurve)return o<s.value?i.value:s.value;const l=i.outTangent*a,c=s.inTangent*a,u=o*o,h=u*o,d=h-2*u+o,m=h-u,g=-2*h+3*u;return(2*h-3*u+1)*i.value+d*l+m*c+g*s.value}clone(){return new l({keyframes:[...this.keys],path:this.path,componentType:this.componentType,property:this.property})}_keysAt(e){if(1===this.keys.length)return this.keys;if(e>=this.keys[this.keys.length-1].time)return[this.keys[this.keys.length-1]];if(e<=this.keys[0].time)return[this.keys[0]];for(let t=0;t<this.keys.length;t++)if(this.keys[t].time>e)return[this.keys[t-1],this.keys[t]];return null}}l.createLinear=function(e,t,n,i){return new l({keys:[[e,t,0,0],[n,i,0,0]]})},l.createEaseInOut=function(e,t,n,i){return new l(e===n?{keys:[[e,t,0,0]]}:{keys:[[e,t,0,0],[n,i,0,0]]})}},(e,t,n)=>{n.d(t,{a:()=>r});var i=n(2);class r{constructor(e){if(this._colorBuffer=e.colorBuffer,this._glFrameBuffer=null,this._glDepthBuffer=null,this._depthBuffer=e.depthBuffer,this._face=void 0!==e.face?e.face:0,this._depthBuffer){const e=this._depthBuffer._format;e===i.c.PIXELFORMAT_DEPTH?(this._depth=!0,this._stencil=!1):e===i.c.PIXELFORMAT_DEPTHSTENCIL?(this._depth=!0,this._stencil=!0):(UnityEngine.Debug.LogWarning$1("Incorrect depthBuffer format. Must be PIXELFORMAT_DEPTH or PIXELFORMAT_DEPTHSTENCIL"),this._depth=!1,this._stencil=!1)}else this._depth=void 0===e.depth||e.depth,this._stencil=void 0!==e.stencil&&e.stencil;this._samples=void 0!==e.samples?e.samples:1,this.autoResolve=void 0===e.autoResolve||e.autoResolve,this._glResolveFrameBuffer=null,this._glMsaaColorBuffer=null,this._glMsaaDepthBuffer=null,this._device=null}destroy(){if(!this._device)return;const e=this._device,t=e.targets.indexOf(this);-1!==t&&e.targets.splice(t,1);const n=e.gl;this._glFrameBuffer&&(n.deleteFramebuffer(this._glFrameBuffer),this._glFrameBuffer=null),this._glDepthBuffer&&(n.deleteRenderbuffer(this._glDepthBuffer),this._glDepthBuffer=null),this._glResolveFrameBuffer&&(n.deleteFramebuffer(this._glResolveFrameBuffer),this._glResolveFrameBuffer=null),this._glMsaaColorBuffer&&(n.deleteRenderbuffer(this._glMsaaColorBuffer),this._glMsaaColorBuffer=null),this._glMsaaDepthBuffer&&(n.deleteRenderbuffer(this._glMsaaDepthBuffer),this._glMsaaDepthBuffer=null)}resolve(e=!0,t=!!this._depthBuffer){if(!this._device)return;if(!this._device.webgl2)return;const n=this._device.gl;n.bindFramebuffer(i.c.READ_FRAMEBUFFER,this._glFrameBuffer),n.bindFramebuffer(i.c.DRAW_FRAMEBUFFER,this._glResolveFrameBuffer),n.blitFramebuffer(0,0,this.width,this.height,0,0,this.width,this.height,(e?n.COLOR_BUFFER_BIT:0)|(t?n.DEPTH_BUFFER_BIT:0),n.NEAREST),n.bindFramebuffer(n.FRAMEBUFFER,this._glFrameBuffer)}get colorBuffer(){return this._colorBuffer}get depthBuffer(){return this._depthBuffer}get face(){return this._face}get width(){return this._colorBuffer?this._colorBuffer.width:this._depthBuffer.width}get height(){return this._colorBuffer?this._colorBuffer.height:this._depthBuffer.height}static getTempBuffer(e,t,n=null,i=null){return pc.Application.getApplication().renderTargetPool.getTempRenderTarget(e,t,n,i)}static releaseTempBuffer(e){pc.Application.getApplication().renderTargetPool.releaseTempRenderTarget(e)}}},(e,t,n)=>{n.d(t,{a:()=>a,b:()=>o});var i=n(2),r=n(18),s=n(59);const a=["rigidbody","collider","joint","rigidbody2D","collider2D","joint2D","uiBehaviour","monoBehaviour","animator","animation","particlesystem","particleSystemRenderer","reflectionprobe","videoPlayer","canvasRenderer","audiosourceunity","renderer","meshFilter","effector2D","sortingGroup","skybox"];class o extends r.a{constructor(e){super(e),this.id="unity",this._components={},this.performanceSamplerSection=null,this.app.systems.unitymanager.registerSystem(this),this.queues={onStart:new s.a,onFixedUpdate:new s.a,onUpdate:new s.a,onPostUpdate:new s.a,onBeforeRender:new s.a,onAfterRender:new s.a,onApplicationFocus:new s.a}}addComponent(e,t){if(t._id)throw Error("Component already belongs somewhere!");return t._id=(0,i.b)(),t._entity=e,t.system=this,t.scriptsExecutionOrder=0,e._unityComponents[this.id].push(t),this._components[t._id]=t,t.onAttached(),e.enabled&&t.enabled&&t._onEntityStateChanged(!0),t}removeComponent(e,t){this._onComponentDisabled(t),delete this._components[t._id];const n=e._unityComponents[t._system.id],i=n.indexOf(t);i<0||(n[i]=n[n.length-1],n.length-=1)}onStart(e){this._invokeQueue("onStart",(e=>e.onStart()),!0)}onBeforeUpdates(e){}onFixedUpdate(e){this._invokeQueue("onFixedUpdate",(t=>t.onFixedUpdate(e)))}onUpdate(e){this._invokeQueue("onUpdate",(t=>t.onUpdate(e)))}onPostUpdate(e){this._invokeQueue("onPostUpdate",(t=>t.onPostUpdate(e)))}onBeforeRender(e){this._invokeQueue("onBeforeRender",(t=>t.onBeforeRender(e)))}onAfterRender(e){this._invokeQueue("onAfterRender",(t=>t.onAfterRender(e)))}onApplicationFocus(e){this._invokeQueue("onApplicationFocus",(t=>t.onApplicationFocus(e)))}_invokeQueue(e,t,n=!1){const i=this.queues[e];if(0===i.length)return;const r=i.processing,s=i.getComponents();r||(i.processing=!0),n&&i.clear();for(let n=0;n<s.length;n++){const i=s[n];i.entity._enabledInHierarchy&&!i.callbackActivated(e)&&(i.rememberCallback(e),t(i))}n&&this.queues[e].length>0&&this._invokeQueue(e,t,n),r||(this.queues[e].processing=!1)}_onComponentEnabled(e){const t=e._queuesToSubscribe();for(let n=0;n<t.length;n++)this.queues[t[n]].push(e)}_componentShouldStart(e){this.queues.onStart.push(e)}_onComponentDisabled(e){const t=e._queuesToSubscribe();for(let n=0;n<t.length;n++)this.queues[t[n]].delete(e._id);this.queues.onStart.delete(e._id)}}},(e,t,n)=>{n.d(t,{a:()=>l});var i=n(0),r=n(2),s=n(51),a=n(8),o=n(31);class l{constructor(){this.meshInstances=[],this.morphInstance=null,this._materials=[],this._mesh=null,this._meshVersion=0,this._skin=null,this._bones=null,this._sortingLayerIndex=0,this._sortingOrder=0,this._cullingLayer=0,this._entity=null,this._lightmapIndex=-1,this._lightmapSceneIndex=0,this._lightmapScaleOffset=new i.n,this._drawOrder=0,this._nearestScreen=null,this._stencil=null,this._element=null,this._visible=!0,this._parameters={},this._constAttributes={},this._isStatic=!1,this._needsUpdate=!0,this._masksChildren=!1,this._reflectionProbes=null,this._blendReflectionProbes=!1,this._lightProbe=null,this._lightProbeUsage=!1,this._flipFaces=!1,this._materialPropertyBlocks=[],this._castShadows=!0,this._receiveShadows=!0}getParameters(){return this._parameters}setParameters(e){Object.assign(this._parameters,e),this._needsUpdate||this._updateParameters()}getParameter(e){return this._parameters[e]}setParameter(e,t){this._parameters[e]!==t&&(this._parameters[e]=t,this._needsUpdate||this._updateParameters())}deleteParameter(e){this._parameters[e]&&(delete this._parameters[e],this._needsUpdate||this._updateParameters())}setConstant(e,t){this._constAttributes[e]=t,this._needsUpdate||this._updateConstants()}deleteConstant(e){delete this._constAttributes[e],this._needsUpdate||this._updateConstants()}update(){this._mesh&&this._mesh.version===this._meshVersion&&!this._needsUpdate||(this._needsUpdate=!1,this._configureMeshInstances())}setMeshDirectlyToMeshInstance(e){if(0===this.meshInstances.length)this.mesh!==e&&(this.mesh=e);else{const t=this.meshInstances[0];t.mesh!==e&&(t.mesh=e)}}setBlendShapeWeight(e,t){this.morphInstance?this.morphInstance.setWeight(e,t):UnityEngine.Debug.LogError$1("SetBlendShapeWeight called for non blendable mesh.")}getBlendShapesCount(){return this.morphInstance?this.morphInstance.getCount():0}getBlendShapeWeight(e){return this.morphInstance?this.morphInstance.getWeight(e):(UnityEngine.Debug.LogError$1("GetBlendShapeWeight called for non blendable mesh."),0)}_configureMeshInstances(){if(!this._mesh)return void(this.meshInstances.length=0);if(this._meshVersion=this._mesh.version,!this._materials)return void UnityEngine.Debug.Log$1("Missing materials on "+this.entity.name);const e=this._mesh.subMeshes.length,t=this._materials.length;let n=0,i=!1;n=1===e?Math.max(1,t):e,this.meshInstances.length=n,this._materialPropertyBlocks.length=t;for(let e=0;e<this.meshInstances.length;e++){const t=this._materials[Math.min(this._materials.length-1,e)],n=this._mesh.subMeshes[Math.min(this._mesh.subMeshes.length-1,e)];if(this.meshInstances[e]){const r=this.meshInstances[e].mesh!==n;i=i||r||this.meshInstances[e].material!==t,this.meshInstances[e].mesh=n,this.meshInstances[e].material=t,r&&(this.meshInstances[e]._aabbVer=-1)}else this.meshInstances[e]=new a.a(this.entity,n,t),i=!0,this.morphInstance&&(this.meshInstances[e].morphInstance=this.morphInstance);this.meshInstances[e].batchId=0}this.entity&&(this.skin&&this.skin.rootBone?this._flipFaces=this.skin.rootBone._isOddlyScaled():this._flipFaces=this.entity._isOddlyScaled()),this._updateParameters(),this._updateConstants(),this._updateSkin(),this._updateFlipFaces(),this._updateSortingIndexes(),this._updateCulling(),this._updateEntity(),this._configureLightmaps(),this._updateLightProbe(),this._updateReflectionProbes(),this._updateReflectionProbesBlending(),this._updateVisibility(),this._updateElement(),this._updateNearestScreen(),this._updateDrawOrder(),this._updateStencil(),this._updateMasksChildren(),this._updateCastShadows(),this._updateReceiveShadows()}_configureLightmaps(){if(!this._mesh)return;let e=0;this._mesh.vertexBuffer.format.hasUv1||(e|=r.c.SHADERDEF_LMUV0),1===UnityEngine.LightmapSettings.environmentLightingMode&&(e|=r.c.SHADERDEF_LM_BAKED_AMBIENT),UnityEngine.LightmapSettings.lightmapsMode===UnityEngine.LightmapsMode.CombinedDirectional&&(e|=r.c.SHADERDEF_DIRLM);for(let t=0;t<this.meshInstances.length;t++){const n=this.meshInstances[t];!this._lightmapScaleOffset||this._lightmapIndex<0?(n._shaderDefs&=~(r.c.SHADERDEF_LM|r.c.SHADERDEF_DIRLM|r.c.SHADERDEF_LMUV0|r.c.SHADERDEF_LM_DLDR),n.deleteParameter("unity_Lightmap"),n.deleteParameter("unity_LightmapInd"),n.deleteParameter("unity_LightmapST")):(n._shaderDefs|=e|r.c.SHADERDEF_LM,n.setParameter("unity_LightmapST",[this._lightmapScaleOffset.x,this._lightmapScaleOffset.y,this._lightmapScaleOffset.z,this._lightmapScaleOffset.w]),n.lightmapIndex=this._lightmapIndex,n.lightmapSceneIndex=this._lightmapSceneIndex)}}_updateParameters(){for(let e=0;e<this.meshInstances.length;e++){const t=this.meshInstances[e];for(const e in this._parameters)t.setParameter(e,this._parameters[e]);for(const e in t.parameters)e in this._parameters||t.deleteParameter(e);const n=this._materialPropertyBlocks[e];n&&n.applyToMeshInstance(t)}}_updateConstants(){for(let e=0;e<this.meshInstances.length;e++){const t=this.meshInstances[e];for(const e in this._constAttributes)t.constAttributes[e]=this._constAttributes[e];for(const e in t.constAttributes)e in this._constAttributes||delete t.constAttributes[e]}}_updateSkin(){if(!this._skin)return;const e=new s.a(this._skin);e.bones=this._bones;for(let t=0;t<this.meshInstances.length;t++)this.meshInstances[t].mesh.skin=this._skin,this.meshInstances[t].skinInstance=e}_updateSortingIndexes(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e].sortingLayerIndex=this._sortingLayerIndex,this.meshInstances[e].sortingOrder=this._sortingOrder}_updateFlipFaces(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e]._flipFaces=this._flipFaces}_updateReflectionProbes(){const e=this._reflectionProbes?this._reflectionProbes[0]:null,t=this._reflectionProbes?this._reflectionProbes[1]:null;for(let n=0;n<this.meshInstances.length;n++){const i=this.meshInstances[n];if(e){const t=e.getBox(i.aabb);i.setParameter(o.b[0],e.cubemap),i.setParameter(o.b[1],t.min.data),i.setParameter(o.b[2],t.max.data),i.setParameter(o.b[3],t.position.data)}else i.deleteParameter(o.b[0]),i.deleteParameter(o.b[1]),i.deleteParameter(o.b[2]),i.deleteParameter(o.b[3]);if(t){const e=t.getBox(i.aabb);i.setParameter(o.b[4],t.cubemap),i.setParameter(o.b[5],e.min.data),i.setParameter(o.b[6],e.max.data),i.setParameter(o.b[7],e.position.data)}else i.deleteParameter(o.b[4]),i.deleteParameter(o.b[5]),i.deleteParameter(o.b[6]),i.deleteParameter(o.b[7])}}_updateReflectionProbesBlending(){for(let e=0;e<this.meshInstances.length;e++){const t=this.meshInstances[e];this._blendReflectionProbes?t._shaderDefs|=r.c.SHADERDEF_BLEND_REFLECTION_PROBES:t._shaderDefs&=~r.c.SHADERDEF_BLEND_REFLECTION_PROBES}}_updateLightProbe(){const e=(!this._lightmapScaleOffset||this._lightmapIndex<0)&&this.lightProbeUsage;for(let t=0;t<this.meshInstances.length;t++){const n=this.meshInstances[t];e?(n._shaderDefs|=r.c.SHADERDEF_LIGHTPROBES,n._lightProbe=this._lightProbe):(n._shaderDefs&=~r.c.SHADERDEF_LIGHTPROBES,n._lightProbe=null)}}_updateCulling(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e].mask=1<<this._cullingLayer}_updateVisibility(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e].visible=this._visible}_updateEntity(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e].node=this.entity}_updateElement(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e]._element=this._element}_updateNearestScreen(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e]._nearestScreen=this._nearestScreen}_updateDrawOrder(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e].drawOrder=this._drawOrder}_updateStencil(){for(let e=0;e<this.meshInstances.length;e++){const t=this.meshInstances[e];t.stencilBack=this._stencil,t.stencilFront=this._stencil,this._stencil?t._shaderDefs|=r.c.SHADERDEF_STENCIL_OVERRIDE:t._shaderDefs&=~r.c.SHADERDEF_STENCIL_OVERRIDE}}_updateMasksChildren(){for(let e=0;e<this.meshInstances.length;e++){const t=this.meshInstances[e];this._masksChildren?t._shaderDefs|=r.c.SHADERDEF_UI_MASK:t._shaderDefs&=~r.c.SHADERDEF_UI_MASK}}_updateCastShadows(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e].castShadows=this._castShadows}_updateReceiveShadows(){for(let e=0;e<this.meshInstances.length;e++)this.meshInstances[e].receiveShadows=this._receiveShadows}destroy(){const e=this.meshInstances;for(let t=0;t<e.length;t++){const n=e[t],i=n.mesh;if(i&&(i._refCount--,i._refCount<1)){i.vertexBuffer&&(i.vertexBuffer.destroy(),i.vertexBuffer=null);for(let e=0;e<i.indexBuffer.length;e++){const t=i.indexBuffer[e];t&&t.destroy()}i.indexBuffer.length=0}const r=n.skinInstance;if(r){const e=r.boneTexture;e&&e.destroy()}n.skinInstance=null;const s=n.morphInstance;s&&s.destroy(),n.morphInstance=null,n.material=null}}get visible(){return this._visible}set visible(e){this._visible=e,this._needsUpdate||this._updateVisibility()}get stencil(){return this._stencil}set stencil(e){this._stencil=e,this._needsUpdate||this._updateStencil()}get element(){return this._element}set element(e){this._element=e,this._needsUpdate||this._updateElement()}get nearestScreen(){return this._nearestScreen}set nearestScreen(e){this._nearestScreen=e,this._needsUpdate||this._updateNearestScreen()}get lightmapIndex(){return this._lightmapIndex}set lightmapIndex(e){this._lightmapIndex=e,this._needsUpdate||this._configureLightmaps()}get lightmapScaleOffset(){return this._lightmapScaleOffset}set lightmapScaleOffset(e){this._lightmapScaleOffset=e,this._needsUpdate||this._configureLightmaps()}get materials(){return this._materials}set materials(e){this._materials=e,this._needsUpdate=!0}get material(){return this._materials?this._materials[0]:null}set material(e){this._materials=this._materials||[],this._materials[0]=e,this._needsUpdate=!0}get mesh(){return this._mesh}set mesh(e){this._mesh=e,this._needsUpdate=!0}get skin(){return this._skin}set skin(e){this._skin=e,this._needsUpdate||this._updateSkin()}get bones(){return this._bones}set bones(e){this._bones=e,this._needsUpdate||this._updateSkin()}get sortingLayerIndex(){return this._sortingLayerIndex}set sortingLayerIndex(e){this._sortingLayerIndex=e,this._needsUpdate||this._updateSortingIndexes()}get sortingOrder(){return this._sortingOrder}set sortingOrder(e){this._sortingOrder=e,this._needsUpdate||this._updateSortingIndexes()}get drawOrder(){return this._drawOrder}set drawOrder(e){this._drawOrder=e,this._needsUpdate||this._updateDrawOrder()}get cullingLayer(){return this._cullingLayer}set cullingLayer(e){this._cullingLayer=e,this._needsUpdate||this._updateCulling()}get lightProbe(){return this._lightProbe}set lightProbe(e){this._lightProbe=e,this._needsUpdate||this._updateLightProbe()}get lightProbeUsage(){return this._lightProbeUsage}set lightProbeUsage(e){e!==this._lightProbeUsage&&(this._lightProbeUsage=e,this._needsUpdate||this._updateLightProbe())}get blendReflectionProbes(){return this._blendReflectionProbes}set blendReflectionProbes(e){this._blendReflectionProbes!==e&&(this._blendReflectionProbes=e,this._needsUpdate||this._updateReflectionProbesBlending())}get reflectionProbes(){return this._reflectionProbes}set reflectionProbes(e){null===this._reflectionProbes&&null===e||(this._reflectionProbes=e,this._needsUpdate||this._updateReflectionProbes())}get flipFaces(){return this._flipFaces}set flipFaces(e){this._flipFaces!==e&&(this._flipFaces=e,this._needsUpdate||this._updateFlipFaces())}get isStatic(){return this._isStatic}set isStatic(e){this._isStatic=e}get masksChildren(){return this._masksChildren}set masksChildren(e){this._masksChildren=e,this._needsUpdate||this._updateMasksChildren()}get entity(){return this._entity}set entity(e){this._entity=e}get castShadows(){return this._castShadows}set castShadows(e){this._castShadows=e,this._needsUpdate||this._updateCastShadows()}get receiveShadows(){return this._receiveShadows}set receiveShadows(e){this._receiveShadows=e,this._needsUpdate||this._updateReceiveShadows()}}},(e,t,n)=>{n.d(t,{a:()=>u});var i=n(0);const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s=1/(2*Math.PI),a=15/(16*Math.PI),o=new i.d,l=new i.m,c=new Float32Array(r);class u{constructor(e=r){this.data=new Float32Array(e),this.uniforms=null}get(e,t){return this.data[9*e+t]}set(e,t,n){this.data[9*e+t]=n}copy(e){for(let t=0;t<this.data.length;t++)this.data[t]=e.data[t]}clear(){for(let e=0;e<this.data.length;e++)this.data[e]=0}setFromInterpolation(e,t){for(let n=0;n<this.data.length;n++){this.data[n]=0;for(let i=0;i<e.length;i++)this.data[n]+=e[i].data[n]*t[i]}}addCubemap(e,t){const n=e.width;let i=0;const s=this.data;c.set(r),this.data=c;for(let r=0;r<6;r++){const s=e._levels[0][r];for(let e=0;e<n;e++)for(let a=0;a<n;a++){const c=e*n+a,u=a/(n-1)*2-1,h=e/(n-1)*2-1,d=1+u*u+h*h,m=4/(Math.sqrt(d)*d);switch(l.set(u,-h,1).normalize(),r){case 0:l.set(l.z,-l.y,-l.x);break;case 1:l.set(-l.z,-l.y,l.x);break;case 2:l.set(l.x,l.z,l.y);break;case 3:l.set(l.x,-l.z,-l.y);break;case 4:l.set(l.x,-l.y,l.z);break;case 5:l.set(-l.x,-l.y,-l.z)}o.set(s[4*c+0]/255,s[4*c+1]/255,s[4*c+2]/255,1),this.addDirectionalLight(l,o,t,m/2.956),i+=m}}for(let e=0;e<this.data.length;e++)s[e]+=4*c[e]*Math.PI/i;this.data=s}addAmbientLight(e){o.copy(e).toLinear(),this.data[0]+=o.r,this.data[9]+=o.g,this.data[18]+=o.b}addSkyGradient(e,t,n){this.addAmbientLight(t),this.addDirectionalLight(i.m.UP,e,1,1),this.addDirectionalLight(i.m.DOWN,n,1,1)}addPointLight(e,t,n,r){const s=e.length()/r;l.copy(e).normalize();const a=(0,i.o)(1/(1+25*s*s)*(0,i.o)(5*(1-s),0,1),0,1);this.addDirectionalLight(l,t,n,a)}addSpotLight(e,t,n,i,r){this.addPointLight(e,t,n,i)}addDirectionalLight(e,t,n,i){o.copy(t).scale(n).toLinear().scale(2.956*i),this.addLightFromDirection(e,o)}addLightFromDirection(e,t){const n=.07957747154594767,i=s*e.y,r=s*e.z,o=s*e.x,l=a*(e.x*e.y),c=a*(e.y*e.z),u=.02486795985810865*(3*e.z*e.z-1),h=a*(e.x*e.z),d=.07460387957432595*(e.x*e.x-e.y*e.y);this.data[0]+=t.r*n,this.data[1]+=t.r*i,this.data[2]+=t.r*r,this.data[3]+=t.r*o,this.data[4]+=t.r*l,this.data[5]+=t.r*c,this.data[6]+=t.r*u,this.data[7]+=t.r*h,this.data[8]+=t.r*d,this.data[9]+=t.g*n,this.data[10]+=t.g*i,this.data[11]+=t.g*r,this.data[12]+=t.g*o,this.data[13]+=t.g*l,this.data[14]+=t.g*c,this.data[15]+=t.g*u,this.data[16]+=t.g*h,this.data[17]+=t.g*d,this.data[18]+=t.b*n,this.data[19]+=t.b*i,this.data[20]+=t.b*r,this.data[21]+=t.b*o,this.data[22]+=t.b*l,this.data[23]+=t.b*c,this.data[24]+=t.b*u,this.data[25]+=t.b*h,this.data[26]+=t.b*d}updateUniforms(){this.uniforms||(this.uniforms=[new i.n,new i.n,new i.n,new i.n,new i.n,new i.n,new i.n]);for(let e=0;e<3;e++)this.uniforms[e].x=this.get(e,3),this.uniforms[e].y=this.get(e,1),this.uniforms[e].z=this.get(e,2),this.uniforms[e].w=this.get(e,0)-this.get(e,6);for(let e=0;e<3;e++)this.uniforms[e+3].x=this.get(e,4),this.uniforms[e+3].y=this.get(e,5),this.uniforms[e+3].z=3*this.get(e,6),this.uniforms[e+3].w=this.get(e,7);this.uniforms[6].x=this.get(0,8),this.uniforms[6].y=this.get(1,8),this.uniforms[6].z=this.get(2,8),this.uniforms[6].w=1;for(let e=0;e<7;e++)this.uniforms[e].data}isEmpty(){for(let e=0;e<this.data.length;e++)if(Math.abs(this.data[e])>=1e-8)return!1;return!0}}u.fromArray=function(e){const t=new u([]);return t.data=e,t}},(e,t,n)=>{n.d(t,{a:()=>U,b:()=>D,c:()=>P});var i=n(2),r=n(1),s=n(39),a=n(16),o=n(32);const l=/void\s+main\s*\(\s*(void)?\s*\)\s*{/,c="attribute\\s+(highp\\s*|lowp\\s*|mediump\\s*)?vec[2|3|4]\\s+",u=/\s*vec(2|3|4)\s*/,h="\\s*;",d=/uniform mat4 matrix_viewProjection;/,m="// #define BONE_LIMIT 128 // will be added in code\nuniform mat4 matrix_pose[BONE_LIMIT];\nmat4 getBoneMatrix(const in float i) {\n mat4 bone = matrix_pose[int(i)];\n return bone;\n}\n",g="uniform sampler2D texture_poseMap;\nuniform vec2 texture_poseMapSize;\nmat4 getBoneMatrix(const in float i)\n{\n float j = i * 4.0;\n float x = mod(j, float(texture_poseMapSize.x));\n float y = floor(j / float(texture_poseMapSize.x));\n float dx = 1.0 / float(texture_poseMapSize.x);\n float dy = 1.0 / float(texture_poseMapSize.y);\n y = dy * (y + 0.5);\n vec4 v1 = texture2D(texture_poseMap, vec2(dx * (x + 0.5), y));\n vec4 v2 = texture2D(texture_poseMap, vec2(dx * (x + 1.5), y));\n vec4 v3 = texture2D(texture_poseMap, vec2(dx * (x + 2.5), y));\n vec4 v4 = texture2D(texture_poseMap, vec2(dx * (x + 3.5), y));\n mat4 bone = mat4(v1, v2, v3, v4);\n return bone;\n}\n",$="attribute vec4 vertex_boneWeights;\nattribute vec4 vertex_boneIndices;\nmat4 skinnedMatrix;\n\nmat4 getSkinnedModelMatrix() {\n return (\n getBoneMatrix( vertex_boneIndices.x ) * vertex_boneWeights.x +\n getBoneMatrix( vertex_boneIndices.y ) * vertex_boneWeights.y +\n getBoneMatrix( vertex_boneIndices.z ) * vertex_boneWeights.z +\n getBoneMatrix( vertex_boneIndices.w ) * vertex_boneWeights.w );\n}\n\nvec4 get_POSITION( vec4 pos )\n{\n return skinnedMatrix * pos;\n}\n\nvec4 get_NORMAL( vec4 normal )\n{\n return skinnedMatrix * normal;\n}\n\nvec4 get_TANGENT( vec4 tangent )\n{\n return skinnedMatrix * tangent;\n}\n",p="// Instancing attributes\nattribute vec3 instancing_translation;\nattribute vec4 instancing_rotation;\nattribute vec3 instancing_scale;\nattribute vec4 instancing_color;\nattribute vec4 instancing_st;\n\n// Uniforms\nuniform highp mat4 matrix_viewInverse;\nuniform highp mat4 matrix_viewProjection;\nuniform highp mat4 matrix_modelRotation;\nuniform highp mat4 matrix_modelTranslation;\nuniform highp vec3 system_scale;\nuniform int renderer_alignment;\nuniform float worldSimulationSpace;\n\n// Quaternion multiplication\n// http://mathworld.wolfram.com/Quaternion.html\nvec4 quaternion_multiply( vec4 lhs, vec4 rhs ) {\n return vec4(\n rhs.xyz * lhs.w + lhs.xyz * rhs.w + cross( lhs.xyz, rhs.xyz ),\n lhs.w * rhs.w - dot( lhs.xyz, rhs.xyz )\n );\n}\n\n// Vector rotation with a quaternion\n// http://mathworld.wolfram.com/Quaternion.html\nvec3 quaternion_rotate_vector( vec3 vector, vec4 quaternion ) {\n vec4 quaternion_conjugate = quaternion * vec4( -1, -1, -1, 1 );\n return quaternion_multiply( quaternion, quaternion_multiply( vec4( vector, 0 ), quaternion_conjugate ) ).xyz;\n}\n\nmat4 transpose( mat4 m ) {\n return mat4(\n m[ 0 ][ 0 ], m[ 1 ][ 0 ], m[ 2 ][ 0 ], m[ 3 ][ 0 ],\n m[ 0 ][ 1 ], m[ 1 ][ 1 ], m[ 2 ][ 1 ], m[ 3 ][ 1 ],\n m[ 0 ][ 2 ], m[ 1 ][ 2 ], m[ 2 ][ 2 ], m[ 3 ][ 2 ],\n m[ 0 ][ 3 ], m[ 1 ][ 3 ], m[ 2 ][ 3 ], m[ 3 ][ 3 ]);\n}\n\nmat4 getFacingAlignmentRotation( vec4 particlePosition ) {\n vec3 eye = matrix_viewInverse[ 3 ].xyz;\n vec3 pivot = particlePosition.xyz;\n\n // Find desired rotation between two vectors\n vec4 cameraZ = vec4( normalize( pivot - eye ), 0 );\n vec4 cameraY = matrix_viewInverse * vec4( 0, 1, 0, 0 );\n vec4 cameraX = vec4( cross(cameraY.xyz, cameraZ.xyz), 0 );\n cameraY = vec4( cross(cameraZ.xyz, cameraX.xyz), 0 );\n\n mat4 extraRotation = mat4( 0.0 );\n extraRotation[ 0 ] = cameraX;\n extraRotation[ 1 ] = cameraY;\n extraRotation[ 2 ] = cameraZ;\n extraRotation[ 3 ][ 3 ] = 1.0;\n\n return extraRotation;\n}\n\n// Applies rotation, then scale, then translate to the\n// vertex coordinates.\n\n#define VIEW_ALIGNMENT 0\n#define WORLD_ALIGNMENT 1\n#define LOCAL_ALIGNMENT 2\n#define FACING_ALIGNMENT 3\n\nmat4 alignment_rotation;\nmat4 simulationSpace_rotation;\nmat4 simulationSpace_translation;\n\nvec4 transform_vertex( vec4 vertex, mat4 matrix_scale ) {\n vec4 v = matrix_scale * vertex;\n v = vec4( quaternion_rotate_vector( v.xyz, instancing_rotation ), 1.0 );\n v = alignment_rotation * v;\n\n v += vec4( instancing_translation, 0 );\n\n v = simulationSpace_rotation * v;\n v = simulationSpace_translation * v;\n\n return v;\n}\n\nvec4 get_POSITION( vec4 position ) {\n if ( worldSimulationSpace > 0.0 ) {\n simulationSpace_rotation = mat4( 1.0 );\n simulationSpace_translation = mat4( 1.0 );\n } else {\n simulationSpace_rotation = matrix_modelRotation;\n simulationSpace_translation = mat4( 1.0 );\n simulationSpace_translation[ 3 ] = matrix_modelTranslation[ 3 ];\n }\n\n if ( LOCAL_ALIGNMENT == renderer_alignment ) {\n // local alignment means rotation starts with hierarchy rotation\n alignment_rotation = matrix_modelRotation;\n } else if ( WORLD_ALIGNMENT == renderer_alignment ) {\n // world alignment means rotation starts with E\n alignment_rotation = mat4( 1.0 );\n } else if ( ( VIEW_ALIGNMENT == renderer_alignment ) || ( FACING_ALIGNMENT == renderer_alignment ) ) {\n // view alignment means rotation starts with camera rotation\n // Assume scales are 0\n\n vec4 camRight = vec4(normalize(matrix_viewInverse[0].xyz), 0);\n vec4 camUp = vec4(normalize(matrix_viewInverse[1].xyz), 0);\n vec4 camFwd = -vec4(normalize(matrix_viewInverse[2].xyz), 0);\n\n alignment_rotation = mat4(camRight, camUp, camFwd, vec4( 0, 0, 0, 1 ));\n }\n\n alignment_rotation = transpose( simulationSpace_rotation ) * alignment_rotation;\n\n mat4 scale;\n scale[ 0 ] = vec4( system_scale.x * instancing_scale.x, 0, 0, 0 );\n scale[ 1 ] = vec4( 0, system_scale.y * instancing_scale.y, 0, 0 );\n scale[ 2 ] = vec4( 0, 0, system_scale.z * instancing_scale.z, 0 );\n scale[ 3 ] = vec4( 0, 0, 0, 1 );\n\n vec4 vertex = vec4( position.xyz, 1 );\n vec4 vertexPosition = transform_vertex( vertex, scale );\n\n if ( FACING_ALIGNMENT == renderer_alignment ) {\n vec4 pivot_vertex = vec4( 0, 0, 0, 1 );\n vec4 pivot = transform_vertex( pivot_vertex, scale );\n\n alignment_rotation = transpose( simulationSpace_rotation ) * getFacingAlignmentRotation( pivot );\n vertexPosition = transform_vertex( vertex, scale );\n }\n\n return vertexPosition;\n}\n\nvec4 get_COLOR( vec4 color ) {\n return color * instancing_color;\n}\n\nvec4 get_TEXCOORD0( vec4 texcoord ) {\n return vec4( ( texcoord.xy + instancing_st.zw ) * instancing_st.xy, texcoord.zw );\n}\n\nvec4 get_NORMAL( vec4 normal ) {\n normal = vec4( quaternion_rotate_vector( normal.xyz, instancing_rotation ), 0 );\n normal = alignment_rotation * normal;\n normal = simulationSpace_rotation * normal;\n return normal;\n}\n\nvec4 get_TANGENT( vec4 tangent ) {\n tangent = vec4( quaternion_rotate_vector( tangent.xyz, instancing_rotation ), 0 );\n tangent = alignment_rotation * tangent;\n tangent = simulationSpace_rotation * tangent;\n return tangent;\n}\n",y=function(e,t,n,i){return e.substring(0,t)+i+e.substring(t+n)},f=function(e,t,n){return e.substring(0,t)+n+e.substring(t)},_=function(e,t,n,i){return e.substring(0,t)+i+e.substring(n)},S=function(e,t,n,i){let r=e,s=t[0].search(n);return s+=t.index,r=y(r,s,n.length,i),r},b=function(e,t){let n=e;return n=y(n,t.index,t[0].length,""),n},C=function(e,t,n,i,r){let s=e;const a=RegExp(c+n+h),o=s.match(a);if(o){const e=o[0].match(u)[0].trim();s=S(s,o,"attribute","");const i="_patched_"+t;if(r.defines+="attribute "+e+" "+i+";\n","vec4"===e)r.main+=" "+n+" = get_"+t+"( "+i+" );\n";else{let s="",a="";"vec2"===e?(s=".xy",a=", 0, 0"):"vec3"===e&&(s=".xyz",a=", 0"),r.main+=" "+n+" = get_"+t+"( vec4( "+i+a+") )"+s+";\n"}}return s},E=function(e,t,n){let i=null;for(const r in t){if(t[r]!==n)continue;const s=RegExp(c+r+h);if(e.match(s)){i=r;break}}return i},T=function(e,t,n,i){let r=e;for(let e=0;e<t.length;e++){const s=t[e],a=E(r,n,s);null!==a&&(r=C(r,s,a,0,i))}return r},v=function(e,t){const n=e.match("\\s*#version [0-9]+\\s*");if(!n)return e;const i=n[0].trim(),r=b(e,n);return t.defines=i+"\n\n"+t.defines,r};class I{constructor(e,t){this.baseShader=e,this.patchShader=t,this.defines="",this.main="",this.getMain=function(){return"void main() {\n"+this.main+" _main(); // Initial main function call\n}\n"},this.combine=function(){return"\n// Patched defines\n"+this.defines+"\n// Patch shader\n"+this.patchShader+"\n\n// Base shader\n"+this.baseShader+"\n\n// Patched main\n"+this.getMain()}}}const x=function(e){const t=RegExp(d),n=e.match(t);return null===n?e:b(e,n)},A=function(e){const t=(0,o.a)(e.combine()),n=(0,s.d)(r.a.getApplication().graphicsDevice,t),i=[];i.push("hlslcc_mtx4x4unity_ObjectToWorld");const a=[],l=e.baseShader.indexOf("hlslcc_mtx4x4unity_WorldToObject")>0;l&&(i.push("hlslcc_mtx4x4unity_WorldToObject"),e.patchShader+="mat4 inverse(vec4[4] m) {\n float\n a00 = m[0][0], a01 = m[0][1], a02 = m[0][2], a03 = m[0][3],\n a10 = m[1][0], a11 = m[1][1], a12 = m[1][2], a13 = m[1][3],\n a20 = m[2][0], a21 = m[2][1], a22 = m[2][2], a23 = m[2][3],\n a30 = m[3][0], a31 = m[3][1], a32 = m[3][2], a33 = m[3][3],\n\n b00 = a00 * a11 - a01 * a10,\n b01 = a00 * a12 - a02 * a10,\n b02 = a00 * a13 - a03 * a10,\n b03 = a01 * a12 - a02 * a11,\n b04 = a01 * a13 - a03 * a11,\n b05 = a02 * a13 - a03 * a12,\n b06 = a20 * a31 - a21 * a30,\n b07 = a20 * a32 - a22 * a30,\n b08 = a20 * a33 - a23 * a30,\n b09 = a21 * a32 - a22 * a31,\n b10 = a21 * a33 - a23 * a31,\n b11 = a22 * a33 - a23 * a32,\n\n det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\n\n return mat4(\n a11 * b11 - a12 * b10 + a13 * b09,\n a02 * b10 - a01 * b11 - a03 * b09,\n a31 * b05 - a32 * b04 + a33 * b03,\n a22 * b04 - a21 * b05 - a23 * b03,\n a12 * b08 - a10 * b11 - a13 * b07,\n a00 * b11 - a02 * b08 + a03 * b07,\n a32 * b02 - a30 * b05 - a33 * b01,\n a20 * b05 - a22 * b02 + a23 * b01,\n a10 * b10 - a11 * b08 + a13 * b06,\n a01 * b08 - a00 * b10 - a03 * b06,\n a30 * b04 - a31 * b02 + a33 * b00,\n a21 * b02 - a20 * b04 - a23 * b00,\n a11 * b07 - a10 * b09 - a12 * b06,\n a00 * b09 - a01 * b07 + a02 * b06,\n a31 * b01 - a30 * b03 - a32 * b00,\n a20 * b03 - a21 * b01 + a22 * b00) / det;\n}"),e.patchShader+="// Batching Patch\nattribute float batching_matrix_index;\nuniform vec4 batching_matrices[BATCHING_MATRICES_LENGTH * 4];\n";for(let t=0;t<i.length;t++)a.push(i[t].replace("hlslcc_mtx4x4unity","BATCHING")),e.patchShader+="highp vec4 "+a[t]+"[4];\n";e.patchShader+="\nvoid update_batching_matrix() {\n int start_index = int(batching_matrix_index) * 4;\n",e.patchShader+=a[0]+"[0] = batching_matrices[start_index + 0];\n",e.patchShader+=a[0]+"[1] = batching_matrices[start_index + 1];\n",e.patchShader+=a[0]+"[2] = batching_matrices[start_index + 2];\n",e.patchShader+=a[0]+"[3] = batching_matrices[start_index + 3];\n",l&&(e.patchShader+="mat4 WTO = inverse(BATCHING_ObjectToWorld);",e.patchShader+="BATCHING_WorldToObject[0] = WTO[0];",e.patchShader+="BATCHING_WorldToObject[1] = WTO[1];",e.patchShader+="BATCHING_WorldToObject[2] = WTO[2];",e.patchShader+="BATCHING_WorldToObject[3] = WTO[3];"),e.patchShader+="}\n",e.defines+="#define BATCHING_MATRICES_LENGTH "+n+"\n",e.main+=" update_batching_matrix();\n";for(let t=0;t<i.length;t++){const n=i[t],r=RegExp(n,"g");e.baseShader=e.baseShader.replace(r,a[t]),e.baseShader=e.baseShader.replace(a[t],n)}return e},w=function(e){const t=(0,o.a)(e.combine()),n=(0,s.d)(r.a.getApplication().graphicsDevice,t);e.patchShader+=U.batchingPatch,e.defines+="#define BATCHING_MATRICES_LENGTH "+n+"\n",e.main+=" update_batching_matrix();\n";return e.baseShader=e.baseShader.replace(/hlslcc_mtx4x4unity_ObjectToWorld/g,"BATCHING_ObjectToWorld"),e.baseShader=e.baseShader.replace("BATCHING_ObjectToWorld","hlslcc_mtx4x4unity_ObjectToWorld"),e},D=function(e){return new a.a(r.a.getApplication().graphicsDevice,{attributes:{_glesVertex:i.c.SEMANTIC_POSITION,_glesNormal:i.c.SEMANTIC_NORMAL,_glesTangent:i.c.SEMANTIC_TANGENT,_glesMultiTexCoord0:i.c.SEMANTIC_TEXCOORD0,_glesMultiTexCoord1:i.c.SEMANTIC_TEXCOORD1,_glesMultiTexCoord2:i.c.SEMANTIC_TEXCOORD2,_glesMultiTexCoord3:i.c.SEMANTIC_TEXCOORD3,_glesColor:i.c.SEMANTIC_COLOR},vshader:"// This is a VP stub for shader #"+e+" \n attribute vec3 _glesVertex; varying highp vec2 xlv_TEXCOORD0; uniform mat4 matrix_model;\nuniform mat4 matrix_viewProjection;\nvoid main() { gl_Position = matrix_viewProjection * matrix_model * vec4(_glesVertex, 1.0); }",fshader:"// This is a FP stub for shader #"+e+" \n uniform sampler2D _MainTex; void main(void) { gl_FragColor = vec4(1, 0, 1, 1); }"})},M=/^#extension.*$/gm,P=function(e){const t=RegExp(M),n=e.match(t);return n?(e=e.replace(t,""),e=n[0]+"\n"+e):e},U={patchParticlesVertexShader:function(e,t){const n=new I(e,p);n.baseShader=x(n.baseShader);const r=[i.c.SEMANTIC_POSITION,i.c.SEMANTIC_COLOR,i.c.SEMANTIC_TEXCOORD0,i.c.SEMANTIC_NORMAL,i.c.SEMANTIC_TANGENT];n.baseShader=v(n.baseShader,n),n.baseShader=T(n.baseShader,r,t,n);const s=RegExp(l),a=n.baseShader.match(s);return null===a?(UnityEngine.Debug.LogError$1("Shader patching error. Main function not found\n"+e),null):(n.baseShader=S(n.baseShader,a,"main","_main"),n.combine())},patchSkinningVertexShader:function(e,t){const n=r.a.getApplication().graphicsDevice;let s;n.supportsBoneTextures?s=new I(e,g+"\n"+$):(s=new I(e,m+"\n"+$),s.defines+="#define BONE_LIMIT "+n.getBoneLimit()+"\n"),s.main+=" skinnedMatrix = getSkinnedModelMatrix();\n";const a=[i.c.SEMANTIC_POSITION,i.c.SEMANTIC_NORMAL,i.c.SEMANTIC_TANGENT];s.baseShader=v(s.baseShader,s),s.baseShader=T(s.baseShader,a,t,s);const o=RegExp(l),c=s.baseShader.match(o);if(null===c)return UnityEngine.Debug.LogError$1("Shader patching error. Main function not found\n"+e),null;s.baseShader=S(s.baseShader,c,"main","_main");let u=s.combine();const h="vec3 _patched_POSITION;",d=RegExp(h);return s.defines.match(d)&&(u=u.replace(h,"vec4 _patched_POSITION;"),u=u.replace("vec4( _patched_POSITION, 0)","_patched_POSITION")),u},patchUIVertexShader:function(e,t,n=!1){const r=new I(e,U.uiPatch);r.baseShader=x(r.baseShader);const s=[i.c.SEMANTIC_COLOR];r.baseShader=v(r.baseShader,r),r.baseShader=T(r.baseShader,s,t,r);const a=RegExp(l),o=r.baseShader.match(a);return null===o?(UnityEngine.Debug.LogError$1("Shader patching error. Main function not found\n"+e),null):(r.baseShader=S(r.baseShader,o,"main","_main"),n&&w(r),r.combine())},patchBatchingVertexShader:function(e,t=!1){const n=new I(e,"");n.baseShader=x(n.baseShader),n.baseShader=v(n.baseShader,n);const i=RegExp(l),r=n.baseShader.match(i);return null===r?(UnityEngine.Debug.LogError$1("Shader patching error. Main function not found\n"+e),null):(n.baseShader=S(n.baseShader,r,"main","_main"),t&&A(n),n.combine())},patchUrpShader:function(e){return e=function(e){const t=/for\(.*\)\n.*{/i;let n=e.match(t),i=e,r=0;for(;null!==n;){const s=n[0],a=/u_xlati\d+/i,o=/u_xlati_loop_\d+/i,l=s.match(a),c=s.match(o);if(!l||!c){r+=n.index+s.length,i=i.slice(n.index+s.length),n=i.match(t);continue}const u="\n\t\tif("+c[0]+">="+l[0]+"){break;}",h=f(s,s.length,u).replace(a,"LOOP_ITERATION_LIMIT"),d=(e=_(e,n.index+r,r+n.index+s.length,h)).match(/void main/i),m="const int LOOP_ITERATION_LIMIT = 4;\n";e=f(e,d.index,m),r+=n.index+s.length,i=i.slice(n.index+s.length),n=i.match(t)}return e}(e),function(e){if(null!==e.match(/vec4 TempArray/i)){const t=/vec4 TempArray0/i,n="\nmediump vec4 GetDither(int i){\n if (i <= 0) return TempArray0[0];\n else if (i == 1) return TempArray0[1];\n else if (i == 2) return TempArray0[2];\n else if (i == 3) return TempArray0[3];\n else if (i == 4) return TempArray0[4];\n else if (i == 5) return TempArray0[5];\n else if (i == 6) return TempArray0[6];\n else if (i == 7) return TempArray0[7];\n else if (i == 8) return TempArray0[8];\n else if (i == 9) return TempArray0[9];\n else if (i == 10) return TempArray0[10];\n else if (i == 11) return TempArray0[11];\n else if (i == 12) return TempArray0[12];\n else if (i == 13) return TempArray0[13];\n else if (i == 14) return TempArray0[14];\n else if (i == 15) return TempArray0[15];\n return TempArray0[0];}\n";if(!e.match(t))return console.error("Something went wrong while patching Shader Graph with Dither node, probably need to improve pattern"),e;const i=/void main/i,r=/TempArray0\[u_xlati0\.x].x/i,s=e.match(i),a=(e=f(e,s.index,n)).match(r);e=_(e,a.index,a.index+a[0].length,"GetDither(u_xlati0.x).x")}return e}(e)},particlesPatch:p,skinConstVS:m,skinTexVS:g,skinPatch:$,uiPatch:"// Uniforms\n uniform vec4 _CanvasColor;\n uniform float _GroupAlpha;\n\n vec4 get_COLOR( vec4 color ) {\n vec4 correctedColor = color * _CanvasColor;\n correctedColor.a *= _GroupAlpha;\n\n return correctedColor;\n }\n",batchingPatch:"// Batching Patch\nattribute float batching_matrix_index;\nuniform vec4 batching_matrices[BATCHING_MATRICES_LENGTH * 4];\nhighp vec4 BATCHING_ObjectToWorld[4];\n\nvoid update_batching_matrix() {\n int index = int(batching_matrix_index) * 4;\n BATCHING_ObjectToWorld[0] = batching_matrices[index + 0];\n BATCHING_ObjectToWorld[1] = batching_matrices[index + 1];\n BATCHING_ObjectToWorld[2] = batching_matrices[index + 2];\n BATCHING_ObjectToWorld[3] = batching_matrices[index + 3];\n}\n"}},(e,t,n)=>{n.d(t,{a:()=>i});const i={genericSortOpaque(e,t){const n=e._material,i=t._material;return n&&i?n.renderQueue!==i.renderQueue?n.renderQueue-i.renderQueue:e.sortingLayerIndex!==t.sortingLayerIndex?e.sortingLayerIndex-t.sortingLayerIndex:e.sortingOrder!==t.sortingOrder?e.sortingOrder-t.sortingOrder:e.drawOrder!==t.drawOrder?e.drawOrder-t.drawOrder:e.zdist&&t.zdist&&e.zdist!==t.zdist?e.zdist-t.zdist:e.node===t.node?t.mesh.id-e.mesh.id:n.id!==i.id?n.id-i.id:e.mesh.id-t.mesh.id:0},genericSortTransparent(e,t){const n=e._material,i=t._material;return n&&i?n.renderQueue!==i.renderQueue?n.renderQueue-i.renderQueue:e.sortingLayerIndex!==t.sortingLayerIndex?e.sortingLayerIndex-t.sortingLayerIndex:e.sortingOrder!==t.sortingOrder?e.sortingOrder-t.sortingOrder:e.drawOrder!==t.drawOrder?e.drawOrder-t.drawOrder:e.zdist&&t.zdist&&e.zdist!==t.zdist?-(e.zdist-t.zdist):e.mesh&&t.mesh&&-1!==e.mesh.parentMeshId&&e.mesh.parentMeshId===t.mesh.parentMeshId&&e.mesh.id!==t.mesh.id||e.node===t.node?e.mesh.id-t.mesh.id:n.id!==i.id?n.id-i.id:e.mesh.id-t.mesh.id:0},sortOpaqueAndTransparent(e,t,n){for(let i=0;i<e.length;i++){const r=e[i];r.material.renderQueue<=2500&&t.push(r),r.material.renderQueue>2500&&n.push(r)}},uiElementsSort:(e,t)=>e.drawOrder-t.drawOrder,calculateSortDistances(e,t,n){for(let i=0;i<e.length;i++){const r=e[i],s=r.aabb.center;r.zdist=(s.x-t.x)*n.x+(s.y-t.y)*n.y+(s.z-t.z)*n.z}},cameraCompare:(e,t)=>e.priority-t.priority,sortOverlayCanvases:(e,t)=>e.sortingOrder!==t.sortingOrder?e.sortingOrder-t.sortingOrder:e.$id-t.$id,sortNestedOverlayCanvases:(e,t)=>e.sortingOrder!==t.sortingOrder?e.sortingOrder-t.sortingOrder:e.drawOrder!==t.drawOrder?e.drawOrder-t.drawOrder:e.mesh.$id-t.mesh.$id}},(e,t,n)=>{n.d(t,{a:()=>o});var i=n(0);const r={radius:0,center:null},s=[],a=function(e,t,n=null){return r.center=t.center,r.radius=t.halfExtents.length(),0!==e.containsSphere(r,n)},o={cullMasked:function(e,t,n,i){let r=0;const s=void 0===e.cullingMask?4294967295:e.cullingMask;for(let e=0;e<n;e++){const n=t[e],a=!0;if(n.material&&(!n._mesh||n._mesh._refCount!==-1/0)&&n.visible)if(n.cull){if(a){const e=n.node.cullingLayer||0,t=1<<e;if(e<0)continue;if(0==(t&s))continue}i[r++]=n,n.visibleThisFrame=!0}else i[r++]=n,n.visibleThisFrame=!0}return i.length=r,r},cullFrustum:function(e,t,n){let i=0;const r=e.frustum,s=e._component&&e._component.layerCullDistancesActivated;for(let o=0;o<t.length;o++){const l=t[o];let c=!0;if(l.cull)if(s){const t=e._component.layerCullDistances[l.node.cullingLayer];c=a(r,l.aabb,e.calculateCustomFarClip(t))}else c=a(r,l.aabb);l.visibleThisFrame=c,c&&(n[i++]=l)}return n.length=i,i},cullUi:function(e,t,n){let i=0,r=0;const s=t.length,o=[],l=e.frustum;for(let e=0;e<s;e++){const n=t[e];n&&n.material&&(n._mesh&&n._mesh._refCount===-1/0||n.visible&&(n.cull,o[r++]=n,n.visibleThisFrame=!0))}for(let e=0;e<o.length;e++){const t=o[e];let r=!0;const s=!t._nearestScreen;t.cull&&s&&(r=a(l,t.aabb)),r?(n[i++]=t,t.visibleThisFrame=!0):t.visibleThisFrame=!1}return i},cullShadowCascades:function(e,t,n,r){const a=t.lightMatrix,o=a.getX(),l=a.getY(),c=a.transformVector(i.m.FORWARD),u=new i.m,h=s;h.length=n.length,h.fill(0);for(let i=0;i<n.length;i++){const r=n[i];if(!r.cull){h[i]=15;continue}const s=r.aabb.center,a=r.aabb.halfExtents.length();if(e.frustum.containsCylinder(s,c,a))for(let e=0;e<t.shadowMapsLength;e++){const n=t.getShadowMapData(e),r=n.boundingSphere.center,c=n.boundingSphere.radius;u.sub2(r,s);const d=u.dot(o),m=u.dot(l);Math.sqrt(d*d+m*m)<=c+a&&(h[i]|=1<<e)}}for(let e=0;e<r.length;e++){const t=r[e];let i=0;for(let r=0;r<h.length;r++)0!=(h[r]&1<<e)&&(t[i++]=n[r]);t.length=i}return r},reset:function(e,t){for(let n=0;n<t;n++)e[n].visibleThisFrame=!1},isAABBVisibleInFrustum:a,isVisibleInFrustum:function(e,t,n,i=null){return r.center=t,r.radius=n,0!==e.containsSphere(r,i)}}},(e,t,n)=>{n.d(t,{a:()=>s});var i=n(2);class r{constructor(e,t){switch(this.index=0,this.numComponents=t.numComponents,t.dataType){case i.c.TYPE_INT8:this.array=new Int8Array(e,t.offset);break;case i.c.TYPE_UINT8:this.array=new Uint8Array(e,t.offset);break;case i.c.TYPE_INT16:this.array=new Int16Array(e,t.offset);break;case i.c.TYPE_UINT16:this.array=new Uint16Array(e,t.offset);break;case i.c.TYPE_INT32:this.array=new Int32Array(e,t.offset);break;case i.c.TYPE_UINT32:this.array=new Uint32Array(e,t.offset);break;case i.c.TYPE_FLOAT32:this.array=new Float32Array(e,t.offset)}}get(e){return this.array[this.index+e]}set(e,t=0,n=0,i=0){this.array[this.index]=e,1!==this.numComponents&&(this.array[this.index+1]=t,2!==this.numComponents&&(this.array[this.index+2]=n,3!==this.numComponents&&(this.array[this.index+3]=i)))}}class s{constructor(e){this.vertexBuffer=e,this.buffer=this.vertexBuffer.lock(),this.accessors=[],this.element={};const t=this.vertexBuffer.getFormat();for(let e=0;e<t.elements.length;e++){const n=t.elements[e];this.accessors[e]=new r(this.buffer,n),this.element[n.name]=this.accessors[e]}}next(e=1){let t=0;const n=this.accessors,i=this.accessors.length,r=this.vertexBuffer.getFormat();for(;t<i;){const i=n[t++];i.index+=e*r.size/i.array.BYTES_PER_ELEMENT}}end(){this.vertexBuffer.unlock()}setVector4(e,t){this.element[e].set(t[0],t[1],t[2]||0,t[3]||1)}setVector3(e,t){this.element[e].set(t[0],t[1],t[2])}setVector2(e,t){this.element[e].set(t[0],t[1])}}},(e,t,n)=>{n.d(t,{a:()=>Dt,b:()=>Ge});var i=n(0),r=n(2),s=n(26);const a=new i.m;class o{constructor(){this.mainLight=null,this.pixelLights=[],this.vertexLights=[],this.otherLights=[],this.allLights=[]}reset(){this.mainLight=null,this.pixelLights.length=0,this.vertexLights.length=0,this.otherLights.length=0,this.allLights.length=0}addOtherLights(e){for(let t=0;t<this.otherLights.length;t++){const n=this.otherLights[t];a.copy(n._directionToLight),n._type===r.c.LIGHTTYPE_DIRECTIONAL?e.addDirectionalLight(a,n._color,n._intensity,1):n._type===r.c.LIGHTTYPE_POINT&&e.addPointLight(a,n._color,n._intensity,n.attenuationEnd),n._type===r.c.LIGHTTYPE_SPOT&&e.addSpotLight(a,n._color,n._intensity,n.attenuationEnd,n._outerConeAngle)}}combineAllLights(){this.allLights.length=0,this.mainLight&&this.allLights.push(this.mainLight);for(let e=0;e<this.pixelLights.length;e++)this.allLights.push(this.pixelLights[e]);for(let e=0;e<this.vertexLights.length;e++)this.allLights.push(this.vertexLights[e]);for(let e=0;e<this.otherLights.length;e++)this.allLights.push(this.otherLights[e])}toString(){return"{ "+(this.mainLight?this.mainLight._node.name:"<NONE>")+", Pixel = ["+this.pixelLights.map((e=>e._node.name)).join(", ")+"], Vertex = ["+this.vertexLights.map((e=>e._node.name)).join(", ")+"], SH = ["+this.otherLights.map((e=>e._node.name)).join(", ")+"] }"}}var l=n(11),c=n(38),u=n(20),h=n(7),d=n(9),m=n(16),g=n(28),$=n(1),p=n(15),y=n(29),f=n(6);const _=Number.MAX_SAFE_INTEGER,S={color:[1,1,1,1],depth:1,stencil:0,flags:r.c.CLEARFLAG_DEPTH|r.c.CLEARFLAG_COLOR|r.c.CLEARFLAG_STENCIL},b={sortedDrawCalls:[],keywords:new l.a};class C{get clearOptions(){return S}constructor(e,t){this.device=e,this.renderer=t}updateDepthTexture(e,t=2500){const n=this.selectDrawCalls(e,t,b.sortedDrawCalls);this.renderDrawCalls(n)}selectDrawCalls(e,t,n=[]){let i=0;for(let r=0;r<e.length;r++)e[r].material.renderQueue<=t&&(n[i++]=e[r]);return n.length=i,n.sort(((e,t)=>e.material.$id-t.material.$id)),n}renderDrawCalls(e){let t=null,n=null;const i=b.keywords;for(let r=0;r<e.length;r++){const s=e[r];t!==s.material&&(t=s.material,n=t.getShadowCasterPasses(t._shader),this.renderer.setMaterial(this.device,t),i.copy(t.keywords),i.enableKeywordId(l.b.SHADOWS_DEPTH),i.enableKeywordId(l.b.UNITY_PASS_SHADOWCASTER)),0!==n.length&&this.renderDrawCall(n,i,s)}}renderDrawCall(e,t,n){const i=this.device,s=this.renderer,a=n.mesh;i.setVertexBuffer(n.morphInstance&&n.morphInstance._vertexBuffer?n.morphInstance._vertexBuffer:a.vertexBuffer,0),i.setIndexBuffer(a.indexBuffer[0]),s.setSkinning(i,n),s.pushUniforms(i,n.parameters),s.setDrawCall(i,n),i.setDepthRange((n._shaderDefs&r.c.SHADERDEF_RENDERTYPE_BACKGROUND)>0?1:0,1);for(let i=0;i<e.length;i++)s.renderMeshInstancePass(e[i],t,n);s.popUniforms(i,n.parameters),s.setDrawCall(i,null)}}var E=n(10),T=n(30),v=n(41);const I={shadowFrustumNearPoints:[new i.m(-1,-1,-1),new i.m(1,-1,-1),new i.m(-1,1,-1),new i.m(1,1,-1)],shadowFrustumFarPoints:[new i.m(-1,-1,1),new i.m(1,-1,1),new i.m(-1,1,1),new i.m(1,1,1)]},x={spherePoints:[],sphereCenter:new i.m,sphereMatrix:new i.i,vectorOffset:new i.m,shadowFadeData:new i.n,shadowCenterData:new i.n,cornerDirection:new i.m,shadowCenter:new i.m,intersectionDistances:[0,0],shadowFrustum:[new i.m,new i.m,new i.m,new i.m,new i.m,new i.m,new i.m,new i.m],shadowFrustumNearPoint:new i.m,shadowFrustumFarPoint:new i.m};function A(e){return.4*(0,i.o)(1-e.fov/180,0,1)}function w(e,t,n,r=new i.n){const s=2/t.data[0]/n,a=-1*t.data[10];return r.x=e.shadowBias*a,r.y=1,r.z=e.shadowNormalBias*s,r.w=0,r}function D(e,t,n,r,s,a=new i.c){const o=function(e,t,n){let r=1;if(0!==n){const t=e.projInvMat.transformPointPerspective(i.m.ONE,x.cornerDirection).normalize(),n=A(e),s=x.shadowCenter.set(0,0,-n),a=1-n,o=x.intersectionDistances,l=function(e,t,n,r,s){const a=r*r,o=(new i.m).sub2(n,e),l=o.dot(t);if(l<0)return!1;const c=o.lengthSq()-l*l;if(c>a)return!1;const u=Math.sqrt(a-c);return s[0]=l-u,s[1]=l+u,!0}(i.m.ZERO,t,s,a,o);l&&(r=Math.abs(o[1]*t.z))}return(t*r-e.nearClip)/(e.farClip-e.nearClip)}(e,n,r),l=function(e,t,n,r,s=[]){const a=r[n]*t,o=r[n+1]*t;for(let t=0;t<I.shadowFrustumNearPoints.length;t++){const n=e.invViewProjMat.transformPointPerspective(I.shadowFrustumNearPoints[t],x.shadowFrustumNearPoint),r=e.invViewProjMat.transformPointPerspective(I.shadowFrustumFarPoints[t],x.shadowFrustumFarPoint);s[t]=s[t]||new i.m,s[t].lerp(n,r,a),s[t+4]=s[t+4]||new i.m,s[t+4].lerp(n,r,o)}return s}(e,o,t,s,x.shadowFrustum);return function(e,t=new i.c){const n=x.spherePoints;n[0]=e[0],n[1]=e[2],n[2]=e[5],n[3]=e[6];for(let e=1;e>=0;e--){const r=n[2*e],s=n[2*e+1],a=x.sphereCenter.add2(r,s).scale(.5),o=i.m.distance(r,a),l=n[2*(1-e)],c=n[2*(1-e)+1];if(i.m.distance(l,a)<=o&&i.m.distance(c,a)<=o)return t.center.copy(a),t.radius=o,t}return function(e,t=new i.c){const n=x.sphereMatrix.setIdentity();for(let t=0;t<e.length;t++)n.data[t+0]=e[t].x,n.data[t+4]=e[t].y,n.data[t+8]=e[t].z,n.data[t+12]=1;const r=n.determinant();for(let t=0;t<e.length;t++)n.data[t+0]=e[t].x*e[t].x+e[t].y*e[t].y+e[t].z*e[t].z,n.data[t+4]=e[t].y,n.data[t+8]=e[t].z,n.data[t+12]=1;const s=n.determinant();for(let t=0;t<e.length;t++)n.data[t+0]=e[t].x,n.data[t+4]=e[t].x*e[t].x+e[t].y*e[t].y+e[t].z*e[t].z,n.data[t+8]=e[t].z,n.data[t+12]=1;const a=n.determinant();for(let t=0;t<e.length;t++)n.data[t+0]=e[t].x,n.data[t+4]=e[t].y,n.data[t+8]=e[t].x*e[t].x+e[t].y*e[t].y+e[t].z*e[t].z,n.data[t+12]=1;const o=n.determinant();for(let t=0;t<e.length;t++)n.data[t+0]=e[t].x*e[t].x+e[t].y*e[t].y+e[t].z*e[t].z,n.data[t+4]=e[t].x,n.data[t+8]=e[t].y,n.data[t+12]=e[t].z;const l=n.determinant(),c=x.sphereCenter;c.x=.5*s/r,c.y=.5*a/r,c.z=.5*o/r;const u=Math.sqrt(c.x*c.x+c.y*c.y+c.z*c.z-l/r);return t.center.copy(c),t.radius=u,t}(n,t)}(l,a)}const M=new Float32Array(4),P=new Float32Array(16),U=new Float32Array(64),B={normalizedOrthographicProjection:(new i.i).setOrtho(0,1,0,1,0,1),inverseForwardMatrix:(new i.i).setScale(1,1,-1)},O={shaderKeywords:new l.a,sphericalShadowRange:new i.c,shadowFadeData:new i.n,shadowCenterData:new i.n,cameraToWorldMatrix:new i.i,cameraFarPlanePoints:[new i.m,new i.m,new i.m,new i.m]};class L{constructor(e,t,n,i){this.device=e,this.renderer=t,this.settings=n,this.renderingBuffer=new R(this.device),this.renderTargetPool=i,this.shaderPasses=null}collectShadows(e,t,n){const r=this.renderer.unityIds,s=this.device.width,a=this.device.height,o=this.getRenderTarget(s,a);this.renderer.setCameraTarget(e,o,!0),r.shadowMapTexture.setValue(n.shadowMapTexture),this.updateShadowUniformArraysFromData(n),r.shadowSplitSqRadii.setValue(M),r.shadowSplitSpheres.setValue(P),r.worldToShadow.setValue(U);const l=function(e,t,n=new i.c){let r=e._node.position,s=t;const a=A(e);let o=x.vectorOffset.set(0,0,-a*s);return o=e.viewInvMat.transformVector(o,o),r=x.sphereCenter.add2(r,o),s*=1-a,n.center.copy(r),n.radius=s,n}(e,this.settings.shadowDistance,O.sphericalShadowRange),c=function(e,t,n,r,s=new i.n){const a=e.radius-.2*r;return s.x=1-n.shadowStrength,s.y=t.farClip/r,s.z=1/(e.radius-a),s.w=-a/(e.radius-a),s}(l,e,t,this.settings.shadowDistance,O.shadowFadeData);r.lightShadowData.setValue(c.data);const u=function(e,t=new i.n){return t.x=e.center.x,t.y=e.center.y,t.z=e.center.z,t.w=1,t}(l,O.shadowCenterData);r.shadowFadeCenterAndType.setValue(u.data),r.modelMatrixId.pushValue(i.i.IDENTITY.data),r.viewProjId.pushValue(B.normalizedOrthographicProjection.data),r.camToWorldId.pushValue(O.cameraToWorldMatrix.mul2(e.viewInvMat,B.inverseForwardMatrix).data),this.updateCameraFarPlaneAttribute(e);const h=this.getShaderVariant(t);return(0,v.b)(this.device,o,this.renderingBuffer.vertexBuffer,this.renderingBuffer.indexBuffer,this.renderingBuffer.primitive,h.shader),r.modelMatrixId.popValue(),r.viewProjId.popValue(),r.camToWorldId.popValue(),o}updateCameraFarPlaneAttribute(e){const t=e.farClip,n=Math.tan(e.fov*i.e/2)*t,r=n*e.aspectRatio,s=O.cameraFarPlanePoints;s[0].set(-r,-n,t),s[1].set(r,-n,t),s[2].set(-r,n,t),s[3].set(r,n,t),this.renderingBuffer.updateCameraFarPlaneAttribute(s)}updateShadowUniformArraysFromData(e){M.fill(0),P.fill(0),U.fill(0);for(let t=0;t<e.shadowMapsLength;t++){const n=e.getShadowMapData(t),i=n.boundingSphere.radius*n.boundingSphere.radius;M[t]=i,P.set(n.boundingSphere.center.data,4*t),P[4*t+3]=i,U.set(n.worldToShadowMatrix.data,16*t)}for(let t=e.shadowMapsLength;t<4;t++)M[t]=-Infinity,P[4*t+3]=-Infinity,U[16*t+15]=1}getRenderTarget(e,t){const n=r.c.PIXELFORMAT_R8_G8_B8_A8;return this.renderTargetPool.getTempRenderTarget(e,t,n)}getShaderVariant(e){O.shaderKeywords.clear(),O.shaderKeywords.enableKeyword("SHADOWS_SPLIT_SPHERES"),1===this.settings.shadowCascades&&O.shaderKeywords.enableKeyword("SHADOWS_SINGLE_CASCADE");const t=this.settings.getShadowsModeForLight(e);return this.getShaderPasses()[t].getVariant(O.shaderKeywords,!0,!1)}getShaderPasses(){if(!this.shaderPasses){this.shaderPasses=[];const e=UnityEngine.Shader.Find("Hidden/Internal-ScreenSpaceShadows").handle;for(let t=0;t<e.passes.length;t++){const n=e.passes[t];switch(n.tags.find((e=>"SHADOWMAPFILTER"===e.name.toUpperCase())).value){case"HardShadow":this.shaderPasses[r.c.SHADOWS_MODE_HARD_SHADOWS]=n;break;case"PCF_SOFT":this.shaderPasses[r.c.SHADOWS_MODE_SOFT_SHADOWS]=n}}}return this.shaderPasses}}class R{constructor(e){this.device=e,this._vertexBuffer=this.createVertexBuffer(),this._indexBuffer=this.createIndexBuffer(),this._primitive=this.createPrimitive()}get vertexBuffer(){return this._vertexBuffer}get indexBuffer(){return this._indexBuffer}get primitive(){return this._primitive}updateCameraFarPlaneAttribute(e){const t=new Float32Array(this.vertexBuffer.lock());for(let n=0;n<e.length;n++){const i=e[n],r=7*n+4;t[r+0]=i.x,t[r+1]=i.y,t[r+2]=i.z}this.vertexBuffer.unlock()}createVertexBuffer(){const e=new d.a(this.device,[{semantic:r.c.SEMANTIC_POSITION,components:2,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD0,components:2,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD1,components:3,type:r.c.TYPE_FLOAT32}]),t=new f.a(this.device,e,4),n=new T.a(t);return n.element[r.c.SEMANTIC_POSITION].set(0,0),n.element[r.c.SEMANTIC_TEXCOORD0].set(0,0),n.next(),n.element[r.c.SEMANTIC_POSITION].set(1,0),n.element[r.c.SEMANTIC_TEXCOORD0].set(1,0),n.next(),n.element[r.c.SEMANTIC_POSITION].set(0,1),n.element[r.c.SEMANTIC_TEXCOORD0].set(0,1),n.next(),n.element[r.c.SEMANTIC_POSITION].set(1,1),n.element[r.c.SEMANTIC_TEXCOORD0].set(1,1),n.end(),t}createIndexBuffer(){const e=new E.a(this.device,r.c.INDEXFORMAT_UINT8,6,r.c.BUFFER_STATIC),t=new Uint8Array(e.lock());return t[0]=0,t[1]=1,t[2]=2,t[3]=2,t[4]=1,t[5]=3,e.unlock(),e}createPrimitive(){return{type:r.c.PRIMITIVE_TRIANGLES,base:0,count:6,indexed:!0}}}var F=n(33);const G={shadowBounds:new i.b,shadowMatrix:new i.i,lightMatrixXAxis:new i.m,lightMatrixYAxis:new i.m,lightMatrixZAxis:new i.m};class k{constructor(e){this.settings=e,this._node=new $.g,this._camera=new F.a,this._camera._node=this.node}get camera(){return this._camera}get node(){return this._node}updateFromDirectionalLight(e,t,n){const i=t.getShadowMapData(n),r=this.calculateShadowBounds(t.lightMatrix,i,G.shadowBounds),s=.1*r.halfExtents.z,a=2.3*r.halfExtents.z,o=G.shadowMatrix.setOrtho(-r.halfExtents.x,r.halfExtents.x,-r.halfExtents.y,r.halfExtents.y,s,a),l=this.settings.getShadowMapSizeForLight(e);this.node.position=this.calculateShadowCameraPosition(t.lightMatrix,r,l,l,this.node.position),this.node.rotation.setFromMat4(t.lightMatrix),this.camera.setProjectionMatrix(o),i.worldToShadowMatrix.copy(this.camera.viewProjMat)}calculateShadowCameraPosition(e,t,n,r,s=new i.m){const a=e.getX(G.lightMatrixXAxis),o=e.getY(G.lightMatrixYAxis),l=e.getZ(G.lightMatrixZAxis);e.transformPoint(t.center,s);const c=a.dot(s),u=o.dot(s),h=c%(2*t.halfExtents.x/n),d=u%(2*t.halfExtents.y/r);return s.x-=a.x*h+o.x*d+l.x*t.halfExtents.z*1.2,s.y-=a.y*h+o.y*d+l.y*t.halfExtents.z*1.2,s.z-=a.z*h+o.z*d+l.z*t.halfExtents.z*1.2,s}calculateShadowBounds(e,t,n=new i.b){switch(this.settings.shadowProjection){case 0:return this.calculateShadowBoundsForCloseFitProjection(e,n);case 1:return this.calculateShadowBoundsForStableProjection(e,t,n)}return n.center.copy(i.m.ZERO),n.halfExtents.copy(i.m.ZERO),n}calculateShadowBoundsForStableProjection(e,t,n=new i.b){const r=t.boundingSphere;return n.center=e.transformPointInverse(r.center,n.center),n.halfExtents.set(r.radius,r.radius,r.radius),n}calculateShadowBoundsForCloseFitProjection(e,t=new i.b){return t.center.copy(i.m.ZERO),t.halfExtents.copy(i.m.ZERO),t}}class V{constructor(e){this._shadowMapRenderTarget=e,this._shadowMapData=[],this._lightMatrix=new i.i}get lightMatrix(){return this._lightMatrix}get shadowMapRenderTarget(){return this._shadowMapRenderTarget}get shadowMapTexture(){return this._shadowMapRenderTarget.depthBuffer}get shadowMapsLength(){return this._shadowMapData.length}getShadowMapData(e){return this._shadowMapData[e]}setShadowMapData(e,t){this._shadowMapData[e]=t}}class N{constructor(){this._worldToShadowMatrix=(new i.i).setIdentity(),this._boundingSphere=new i.c}get worldToShadowMatrix(){return this._worldToShadowMatrix}get boundingSphere(){return this._boundingSphere}}const z=(new i.i).setScale(.5,.5,.5).setTranslation(new i.m(.5,.5,.5)),H={worldToShadowMatrixOffset:new i.i,cascadeDimensions:[0,0],shadowBias:new i.n,shadowCasters:[],visibleShadowCasters:[[],[],[],[]]};class j{constructor(e,t,n,i){this.device=e,this.renderer=t,this.settings=n,this.depthPass=new C(e,t),this.shadowCamera=new k(n),this.renderTargetPool=i}render(e,t,n){const[i,r]=function(e,t=[0,0]){let n=1,i=1;return 2===e?n=2:4===e&&(n=2,i=2),t[0]=n,t[1]=i,t}(this.settings.shadowCascades,H.cascadeDimensions),s=this.settings.getShadowMapSizeForLight(n),a=s,o=s*r/i,l=a/i,c=o/r,u=this.getRenderTarget(a,o),h=new V(u);h.lightMatrix.setRotation(n._node.rotation);for(let t=0;t<this.settings.shadowCascades;t++){const n=new N;D(e,t,this.settings.shadowDistance,this.settings.shadowProjection,this.settings.shadowCascadesSplit,n.boundingSphere),h.setShadowMapData(t,n)}const d=this.selectShadowCasters(n,t,H.shadowCasters),m=y.a.cullShadowCascades(e,h,d,H.visibleShadowCasters);$.d.instance.recordShadowCasters(m),this.setScissorsWithBorders(u.width,u.height,1),this.setPolygonOffset(!0,1,1);for(let e=0;e<r;e++)for(let t=0;t<i;t++){const a=e*i+t,o=h.getShadowMapData(a);this.shadowCamera.updateFromDirectionalLight(n,h,a),o.worldToShadowMatrix.mul2(z,o.worldToShadowMatrix);const d=H.worldToShadowMatrixOffset;d.setScale(1/i,1/r,1),d.e03=t/i,d.e13=e/r,o.worldToShadowMatrix.mul2(d,o.worldToShadowMatrix);const g=w(n,this.shadowCamera.camera.projMat,s,H.shadowBias);this.renderer.unityIds.lightShadowBias.pushValue(g.data);const $=t*l,p=e*c;this.renderer.setCameraTarget(this.shadowCamera.camera,u,!1),this.device.setViewport($,p,l,l),this.depthPass.updateDepthTexture(m[a],_),this.renderer.unityIds.lightShadowBias.popValue()}return this.setPolygonOffset(!1),this.setScissorsWithBorders(u.width,u.height,0),h}selectShadowCasters(e,t,n=[]){let i=0;for(let s=0;s<t.length;s++){const a=t[s],o=0!=(a._shaderDefs&r.c.SHADERDEF_CAST_SHADOWS),l=0!=(e.cullingMask&a.node.layerMask);o&&l&&(n[i++]=a)}return n.length=i,n}getRenderTarget(e,t){const n=r.c.PIXELFORMAT_DEPTH,i=this.renderTargetPool.getTempRenderTarget(e,t,null,n);return this.renderer.clearTarget(i,this.depthPass.clearOptions),i}setPolygonOffset(e,t=0,n=0){e?this.device.gl.enable(this.device.gl.POLYGON_OFFSET_FILL):this.device.gl.disable(this.device.gl.POLYGON_OFFSET_FILL),this.device.gl.polygonOffset(t,n)}setScissorsWithBorders(e,t,n){this.device.setScissor(n,n,e-2*n,t-2*n)}}const Z={shadowRenderingResult:new class{constructor(){this.renderTarget=null,this.mask=null}shouldRenderShadows(e){const t=!!this.renderTarget,n=0!=(this.mask&e.node.layerMask);return t&&n}}};class q{constructor(e,t,n,i){this.settings=n,this.renderTargetPool=i,this.shadowMapRenderingPass=new j(e,t,n,i),this.shadowMapCollectorPass=new L(e,t,n,i)}render(e,t,n){const i=Z.shadowRenderingResult;i.mask=0,i.renderTarget=null;const r=n[0],s=this.shadowMapRenderingPass.render(e,t,r),a=this.shadowMapCollectorPass.collectShadows(e,r,s);return this.renderTargetPool.releaseTempRenderTarget(s.shadowMapRenderTarget),i.renderTarget=a,i.mask=r.cullingMask,i}isShadowsEnabled(e){if(this.settings.shadowsEnabled)for(let t=0;t<e.length;t++){const n=e[t];if(this.settings.getShadowsModeForLight(n)>0&&n.castShadows)return!0}return!1}}class K{constructor(e){this._projectSettings=e,this._qualitySettings=e.qualitySettings}get shadowsMode(){return this._qualitySettings.shadows}get shadowsEnabled(){return this._projectSettings.enableRealtimeShadows&&this.shadowsMode>r.c.SHADOWS_MODE_NO_SHADOWS}get shadowmaskMode(){return this._qualitySettings.shadowmaskMode}get shadowDistance(){return this._qualitySettings.shadowDistance}get shadowNearPlaneOffset(){return this._qualitySettings.shadowNearPlaneOffset}get shadowProjection(){return this._qualitySettings.shadowProjection}get shadowCascades(){const e=this._qualitySettings.shadowCascades;return 0===e?1:e}get shadowCascadesSplit(){return 2===this.shadowCascades?[0,this._qualitySettings.shadowCascade2Split,1]:4===this.shadowCascades?[0,this._qualitySettings.shadowCascade4Split.x,this._qualitySettings.shadowCascade4Split.y,this._qualitySettings.shadowCascade4Split.z,1]:[0,1]}get shadowResolution(){return this._qualitySettings.shadowResolution}getShadowsModeForLight(e){const t=e.shadowsMode,n=this.shadowsMode;return Math.min(n,t)}getShadowMapSizeForLight(e){return this.getMaxShadowMapSizeForLight(e)*this.getShadowResolutionMultiplier(e)}getMaxShadowMapSizeForLight(e){switch(e.type){case r.c.LIGHTTYPE_DIRECTIONAL:return 4096;case r.c.LIGHTTYPE_SPOT:return 2048;case r.c.LIGHTTYPE_POINT:return 1024}return 0}getShadowResolutionMultiplier(e=null){let t=this.shadowResolution;switch(e&&e.shadowResolution!==r.c.SHADOW_RESOLUTION_FROM_QUALITY_SETTINGS&&(t=e.shadowResolution),t){case r.c.SHADOW_RESOLUTION_LOW:return.125;case r.c.SHADOW_RESOLUTION_MEDIUM:return.25;case r.c.SHADOW_RESOLUTION_HIGH:return.5;case r.c.SHADOW_RESOLUTION_VERY_HIGH:return 1}return 1}}var W=n(14),J=n(27),Q=n(32),X=n(37),Y=n(34),ee=n(39),te=n(5);class ne{constructor(e){this.device=e,this.gl=this.device.gl,this.availableBuffers=[],this.releasedBuffers=[];for(let e=0;e<2;e++)this.releasedBuffers[e]=[]}get(e,t){let n=null;return this.availableBuffers.length>0&&(n=this.availableBuffers.pop()),this.prepareBuffer(n,e,t)}release(e){this.releasedBuffers[this.releasedBuffers.length-1].push(e)}claimReleasedBuffers(){const e=this.releasedBuffers[0];this.availableBuffers.push(...e),e.length=0;for(let e=1;e<this.releasedBuffers.length;e++)this.releasedBuffers[e-1].push(...this.releasedBuffers[e]),this.releasedBuffers[e].length=0}prepareBuffer(e,t,n){return e}}class ie extends ne{prepareBuffer(e,t,n){const i=te.c.getFormatSize(t),r=n.byteLength/i;return e||(e=new te.c(this.device,t,r,W.a.BUFFER_DYNAMIC)),e.format!==t&&(e.format=t,e.bytesPerIndex=i,e.numIndices=e.numBytes/i),e.numIndices<r&&e.resize(r),new Uint8Array(e.lock()).set(n),e.unlockSlice(0,n.byteLength),e}}class re extends ne{prepareBuffer(e,t,n){const i=n.byteLength/t.size;return e||(e=new te.y(this.device,t,i,W.a.BUFFER_DYNAMIC)),e.format!==t&&(e.format=t,e.numVertices=e.numBytes/t.size),e.numVertices<i&&e.resize(i),e.numVertices=i,new Uint8Array(e.lock()).set(n),e.unlockSlice(0,n.byteLength),e}}const se={buffer:new(n(40).a)};class ae{constructor(e){this.device=e,this.app=$.a.getApplication(),this.vertexBufferPool=new re(e),this.indexBufferPool=new ie(e),this.globalBatchGroupId=-1,this.batchGroups=new Map,this.usedbatchGroups=[],this.maxPatchUsedUniformVectors=this.getMaxUniformVectorsUsedByPatches()}releaseBuffers(){for(const[e,t]of this.batchGroups)this.usedbatchGroups[e]||(t.vertexBuffer&&this.vertexBufferPool.release(t.vertexBuffer),t.indexBuffer&&this.indexBufferPool.release(t.indexBuffer),this.batchGroups.delete(e));this.usedbatchGroups=[],this.vertexBufferPool.claimReleasedBuffers(),this.indexBufferPool.claimReleasedBuffers()}getBatchGroup(e,t){const n=e[t];if(!$.i.instance.enableDynamicBatching||n.isIndexBufferEmpty||n.instancingData||n.skinInstance)return null;const i=n.node.lossyScale,r=i.x,s=i.y,a=i.z,o=n.mesh.vertexBuffer.format.channels,l=n.material.$id,c=this.calculateMaxBatchesAmount(n.material);let u=1;for(let i=t+1;i<e.length;i++){const t=e[i],h=t.node.lossyScale,d=h.x,m=h.y,g=h.z;if(u>=c||l!==t.material.$id||n._shaderDefs!==t._shaderDefs||n.key!==t.key||o!==t.mesh.vertexBuffer.format.channels||t.skinInstance||Math.sign(r)!==Math.sign(d)||Math.sign(s)!==Math.sign(m)||Math.sign(a)!==Math.sign(g))break;if(!n.batchId||n.batchId!==t.batchId){if(!le(n.parameters,t.parameters))break;if(!ue(n.constAttributes,t.constAttributes))break}u++}let h=null;if(u>1){const i=n.batchId||this.getNextBatchGroupId();h=this.batchGroups.get(i)||new Y.c(i),this.batchGroups.set(i,h),this.usedbatchGroups[i]=h;const r=[...h.instances];h.instances.length!==u&&(h.flags|=Y.b.Dirty),h.instances.length=u;for(let n=0;n<h.instances.length;n++){const s=e[t+n];s.isStatic||(h.flags|=Y.b.Dynamic),s.batchId!==h.id&&(h.flags|=Y.b.InvalidBatchId),s.mesh.vertexBuffer.batchId!==i&&(h.flags|=Y.b.Dirty),h.instances[n]!==s&&(h.flags|=Y.b.Dirty,h.instances[n]=s),n<r.length&&r[n]!==h.instances[n]&&(h.flags|=Y.b.Dirty)}}return u>1?(X.a.instance.recordBatchedInstances(u),X.a.instance.recordInstancesPerBatch(u),h.flags&Y.b.Dirty?X.a.instance.recordDirtyBatchGroup():h.flags&Y.b.Dynamic?X.a.instance.recordDynamicBatchGroup():X.a.instance.recordUntouchedBatchGroup()):X.a.instance.recordNonBatchedInstance(),X.a.instance.recordPossibleInstancesPerBatch(c),h}updateBatchGroup(e){if(e.flags&Y.b.Dirty){e.vertexBuffer&&this.vertexBufferPool.release(e.vertexBuffer),e.indexBuffer&&this.indexBufferPool.release(e.indexBuffer);const t=this.batchVertexBuffer(e.instances),[n,i]=this.batchIndexBuffer(e.instances),r=this.batchMatrices(e.instances,e.matrices),s={type:W.a.PRIMITIVE_TRIANGLES,base:0,count:i,indexed:!0};e.vertexBuffer=t,e.indexBuffer=n,e.matrices=r,e.primitive=s;for(let t=0;t<e.instances.length;t++){const n=e.instances[t];n.batchId=e.id,n.mesh.vertexBuffer.batchId=e.id}}else if(e.flags&Y.b.InvalidBatchId)for(let t=0;t<e.instances.length;t++)e.instances[t].batchId=e.id;else e.flags&Y.b.Dynamic&&(e.matrices=this.batchMatrices(e.instances,e.matrices));e.flags=Y.b.None}batchVertexBuffer(e){let t=se.buffer;t.clear(),t=(0,ee.c)(e,0,e.length,t);const n=this.updateVertexFormat(e[0].mesh.vertexBuffer.format,t.byteLength);return t=(0,ee.e)(e,0,e.length,t),se.buffer=t,this.vertexBufferPool.get(n,t.uint8Array.subarray(0,t.uint8ArrayLength))}batchIndexBuffer(e){let t=se.buffer;t.clear(),t=(0,ee.a)(e,0,e.length,t),se.buffer=t;const n=e[0].mesh.indexBuffer[0].format,i=this.indexBufferPool.get(n,t.uint8Array.subarray(0,t.uint8ArrayLength));return[i,t.uint8ArrayLength/i.bytesPerIndex]}batchMatrices(e,t=null){let n=se.buffer;return n.clear(),n=(0,ee.b)(e,0,e.length,n),se.buffer=n,t&&t.length===n.float32ArrayLength?(t.set(n.float32Array.subarray(0,n.float32ArrayLength)),t):n.float32Array.slice(0,n.float32ArrayLength)}updateVertexFormat(e,t){(e=Object.assign({},e)).elementMap=Object.assign({},e.elementMap),e.elements=Object.assign([],e.elements);const n=W.a.SEMANTIC_ATTR0,i={name:n,offset:t,stride:4,stream:0,scopeId:this.device.scope.resolve(n),dataType:W.a.TYPE_FLOAT32,numComponents:1,normalize:!1,size:4};return e.elementMap[n]=i,e.elements.push(i),e.size+=i.size,e}getNextBatchGroupId(){return this.globalBatchGroupId++,this.globalBatchGroupId}getMaxUniformVectorsUsedByPatches(){let e=0;return e=Math.max(e,(0,Q.a)(J.a.particlesPatch)),e=Math.max(e,(0,Q.a)(J.a.skinConstVS)),e=Math.max(e,(0,Q.a)(J.a.skinTexVS)),e=Math.max(e,(0,Q.a)(J.a.skinPatch)),e=Math.max(e,(0,Q.a)(J.a.uiPatch)),e}calculateMaxBatchesAmount(e){const t=e.shader.maxUsedVertexUniformVectors+this.maxPatchUsedUniformVectors;return(0,ee.d)(this.device,t)}}function oe(e,t){if(e.length===t.length){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}function le(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const i of n)if(!ce(e[i].data,t[i].data))return!1;return!0}function ce(e,t){if(e===t)return!0;const n=Array.isArray(e)&&Array.isArray(t),i=e instanceof ArrayBuffer&&t instanceof ArrayBuffer,r=ArrayBuffer.isView(e)&&ArrayBuffer.isView(t);return n?oe(e,t):i?function(e,t){return e.byteLength===t.byteLength&&oe(new Uint8Array(e),new Uint8Array(t))}(e,t):!!r&&function(e,t){return e.byteLength===t.byteLength&&(e instanceof Float32Array&&t instanceof Float32Array||e instanceof Int32Array&&t instanceof Int32Array||e instanceof Uint32Array&&t instanceof Uint32Array||e instanceof Int16Array&&t instanceof Int16Array||e instanceof Uint16Array&&t instanceof Uint16Array||e instanceof Int8Array&&t instanceof Int8Array||e instanceof Uint8Array&&t instanceof Uint8Array||e instanceof Uint8ClampedArray&&t instanceof Uint8ClampedArray?oe(e,t):oe(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength)))}(e,t)}function ue(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const i of n)if(!ce(e[i],t[i]))return!1;return!0}var he=n(60);const de=[];for(let e=0;e<8;e++)de.push(new i.m);const me=new i.i,ge=new i.i,$e=new i.i,pe=new i.i,ye=new i.i,fe=new i.i,_e=new i.i,Se=new i.i,be=new i.i,Ce=new i.i,Ee=new i.i,Te=new i.i,ve=[0,0,0,0],Ie=new Float32Array(4),xe=new i.i,Ae=new i.i,we={},De=[0,0];let Me,Pe;const Ue=new Float32Array(24),Be=i.i.IDENTITY.clone(),Oe=i.i.IDENTITY.clone(),Le=[0,0,0,0],Re=[0,0,0,0],Fe=["unity_SHAr","unity_SHAg","unity_SHAb","unity_SHBr","unity_SHBg","unity_SHBb","unity_SHC"],Ge=["unity_SpecCube0","unity_SpecCube0_BoxMin","unity_SpecCube0_BoxMax","unity_SpecCube0_ProbePosition","unity_SpecCube1","unity_SpecCube1_BoxMin","unity_SpecCube1_BoxMax","unity_SpecCube1_ProbePosition"],ke=[-1/0,-1/0,-1/0,0],Ve=[1/0,1/0,1/0,1],Ne=[0,0,0,0],ze=[-1/0,-1/0,-1/0,1],He=[1/0,1/0,1/0,1],je=[0,0,0,0];let Ze=null,qe=null;const Ke=new s.a,We=new s.a,Je=new Float32Array([0,0,0,0]),Qe=new Float32Array(4),Xe=new Float32Array(4),Ye=new Float32Array(4),et=new Float32Array(4),tt=new Float32Array(4),nt=new Float32Array(16),it=new Float32Array(16),rt=new Float32Array(4),st=new Float32Array(4),at=new l.a,ot=new l.a,lt=[],ct=[],ut=[],ht=[],dt=[],mt=[];let gt=null,$t=null,pt=null;const yt={};let ft={},_t={},St=null,bt=!1;const Ct=new i.b,Et=function(e){return!(0===e.comp.val||8===e.comp.val&&0===e.pass.val&&0===e.fail.val&&0===e.zFail.val)},Tt=c.a.unityCompareFunctionToPlaycanvas,vt=c.a.unityStencilOpToPlaycanvas,It=c.a.unityBlendModeToPlaycanvas,xt=c.a.unityCullModeToPlaycanvas,At=c.a.unityBlendOpToPlaycanvas;function wt(e){return"hlslcc_mtx4x4"+e+"[0]"}class Dt{constructor(e,t,n={}){this.device=e,this.app=$.a.getApplication();const i=this.device;this.scene=t,this.lightData=new o,this.currentDirLight=null,qe=new u.a({}),Ze=new u.a({}),this._forwardTime=0,this._skinTime=0,this._morphTime=0,this._instancingTime=0,this.clearMaskStencil=new u.a({}),this.library=i.getProgramLibrary();const r=i.scope;this.viewProjId=r.resolve("matrix_viewProjection"),this.viewInvId=r.resolve("matrix_viewInverse"),this.modelMatrixId=r.resolve("matrix_model"),this.poseMatrixId=r.resolve("matrix_pose[0]"),this.boneTextureId=r.resolve("texture_poseMap"),this.boneTextureSizeId=r.resolve("texture_poseMapSize"),this.unityIds={modelViewProjId:r.resolve(wt("unity_MatrixMVP")),modelViewId:r.resolve(wt("unity_MatrixMV")),viewProjId:r.resolve(wt("unity_MatrixVP")),viewProjInvId:r.resolve(wt("unity_MatrixInvVP")),viewId:r.resolve(wt("unity_MatrixV")),invViewId:r.resolve(wt("unity_MatrixInvV")),legacyProjId:r.resolve(wt("glstate_matrix_projection")),transposeModelViewId:r.resolve(wt("unity_MatrixTMV")),inverseTransposeModelViewId:r.resolve(wt("unity_MatrixITMV")),modelMatrixId:r.resolve(wt("unity_ObjectToWorld")),modelMatrixInvId:r.resolve(wt("unity_WorldToObject")),cameraProjectionId:r.resolve(wt("unity_CameraProjection")),cameraInvProjectionId:r.resolve(wt("unity_CameraInvProjection")),camToWorldId:r.resolve(wt("unity_CameraToWorld")),worldToCamId:r.resolve(wt("unity_WorldToCamera")),worldSpaceCameraPos:r.resolve("_WorldSpaceCameraPos"),projectionParamsId:r.resolve("_ProjectionParams"),screenParamsId:r.resolve("_ScreenParams"),zbufferParams:r.resolve("_ZBufferParams"),cameraOrthoParamsId:r.resolve("unity_OrthoParams"),cameraWorldClipPlanesId:r.resolve("unity_CameraWorldClipPlanes[0]"),time:r.resolve("_Time"),sinTime:r.resolve("_SinTime"),cosTime:r.resolve("_CosTime"),deltaTime:r.resolve("unity_DeltaTime"),timeParameters:r.resolve("_TimeParameters"),ambientSky:r.resolve("unity_AmbientSky"),ambientEquator:r.resolve("unity_AmbientEquator"),ambientGround:r.resolve("unity_AmbientGround"),glstateLightModelAmbient:r.resolve("glstate_lightmodel_ambient"),fogParamsId:r.resolve("unity_FogParams"),fogColorId:r.resolve("unity_FogColor"),fogStart:r.resolve("unity_FogStart"),fogEnd:r.resolve("unity_FogEnd"),indirectSpecularId:r.resolve("unity_IndirectSpecColor"),lightProbeIds:Array(Fe.length),reflectionProbeIds:Array(Ge.length),worldTransformParamsId:r.resolve("unity_WorldTransformParams"),roughness:r.resolve("unity_NHxRoughness"),cameraDepthTexture:r.resolve("_CameraDepthTexture"),lastCameraDepthTexture:r.resolve("_LastCameraDepthTexture"),lightShadowBias:r.resolve("unity_LightShadowBias"),shadowMapTexture:r.resolve("_ShadowMapTexture"),shadowFadeCenterAndType:r.resolve("unity_ShadowFadeCenterAndType"),lightShadowData:r.resolve("_LightShadowData"),worldToShadow:r.resolve(wt("unity_WorldToShadow")),shadowSplitSqRadii:r.resolve("unity_ShadowSplitSqRadii"),shadowSplitSpheres:r.resolve("unity_ShadowSplitSpheres[0]")},this.lightIds={lightColor:r.resolve("_LightColor0"),worldSpaceLightPosition:r.resolve("_WorldSpaceLightPos0"),vertexX:r.resolve("unity_4LightPosX0"),vertexY:r.resolve("unity_4LightPosY0"),vertexZ:r.resolve("unity_4LightPosZ0"),vertexAttenuation:r.resolve("unity_4LightAtten0"),vertexLightColors:r.resolve("unity_LightColor[0]"),vertexLightPositions:r.resolve("unity_LightPosition[0]"),attenuationTexture:r.resolve("_LightTexture0"),fallOffTexture:r.resolve("_LightTextureB0"),matrix:r.resolve(wt("unity_WorldToLight"))};for(let e=0;e<Fe.length;e++)this.unityIds.lightProbeIds[e]=r.resolve(Fe[e]);for(let e=0;e<Ge.length;e++)this.unityIds.reflectionProbeIds[e]=r.resolve(Ge[e]);this.fogColor=new Float32Array(4),this.fogParams=new Float32Array(4),this.ambientSky=new Float32Array(4),this.lightmodel_ambient=new Float32Array(4),this._material=null,this._ambientProbe=null,this.enableRealtimeShadows=!!n.enableRealtimeShadows,this.renderingAsScreenSpace=!1,this.globalKeywords=new l.a,this._depthPass=new C(i,this),this.renderTargetPool=this.app.renderTargetPool;const s=new K($.i.instance);this.shadowRenderer=new q(i,this,s,this.renderTargetPool),this.shadowRenderingResult=null,this.dynamicBatcher=new ae(i),this.invertCulling=!1}getPassesFromMaterial(e){e.getPass(r.c.SHADER_PASS_ALWAYS,lt),e.getPass(r.c.SHADER_PASS_FORWARD_BASE,ct),e.getPass(r.c.SHADER_PASS_FORWARD_ADD,ut),e.getPass(r.c.SHADER_PASS_VERTEX,ht),e.getPass(r.c.SHADER_PASS_VERTEX_LM,dt),e.getPass(r.c.SHADER_PASS_GRAB_PASS,mt)}updateScissor(){st[0]=this.device.sx,st[1]=this.device.sy,st[2]=this.device.sw,st[3]=this.device.sh}renderBatchGroup(e,t,n,i,s,a,o){const l=this.dynamicBatcher.getBatchGroup(e,a);if(l){this.device.geometryStateManager.unbindVertexArrayObject(),this.dynamicBatcher.updateBatchGroup(l);const e=t,a=e.mesh.vertexBuffer,c=e.mesh.indexBuffer[0],u=e.mesh.primitive[0];return e.mesh.vertexBuffer=l.vertexBuffer,e.mesh.indexBuffer[0]=l.indexBuffer,e.mesh.primitive[0]=l.primitive,e.parameters[Y.a]=new he.a(this.device.scope.resolve(Y.a),l.matrices,0),e._shaderDefs|=r.c.SHADERDEF_BATCHING,this.renderMeshInstance(o,n,i,t,s),e.mesh.vertexBuffer=a,e.mesh.indexBuffer[0]=c,e.mesh.primitive[0]=u,delete e.parameters[Y.a],e._shaderDefs&=~r.c.SHADERDEF_BATCHING,l.instances.length-1}return this.renderMeshInstance(o,n,i,t,s),0}renderMeshInstance(e,t,n,i,s){const a=this.device,o=i.material,c=(i._shaderDefs&r.c.SHADERDEF_LM)>0;if(St=n,!o||0===i.mesh.primitive.length||0===i.mesh.primitive[0].count)return;this.getPassesFromMaterial(o);const u=ct.length>0||ut.length>0,h=ht.length>0;this.handleGrabPass(),c&&i.configureLightmap(),this.updateScissor();const d=i.morphInstance&&i.morphInstance._vertexBuffer||i.mesh.vertexBuffer;if(this.device.setVertexBuffer(d,0),this.device.setIndexBuffer(i.mesh.indexBuffer[0]),this.app.counters.recordDrawCall(),i.mesh.meshInstance){const e=i.mesh.meshInstance.instancingData;this.app.counters.recordVertices(e&&e.count>0?d.numVertices*e.count:d.numVertices)}else this.app.counters.recordVertices(d.numVertices);if(this.setSkinning(this.device,i),this.setMaterial(this.device,i.material),this.pushUniforms(this.device,i.parameters),this.setDrawCall(this.device,i),a.setDepthRange((i._shaderDefs&r.c.SHADERDEF_RENDERTYPE_BACKGROUND)>0?1:0,1),e.merge(o.keywords),c&&e.enableKeywordId(l.b.LIGHTMAP_ON),(i._shaderDefs&r.c.SHADERDEF_DIRLM)>0&&e.enableKeywordId(l.b.DIRLIGHTMAP_COMBINED),0==(i._shaderDefs&r.c.SHADERDEF_NOSHADOW)&&this.shadowRenderingResult&&this.shadowRenderingResult.shouldRenderShadows(i)&&e.enableKeywordId(l.b.SHADOWS_SCREEN),this.renderMeshInstancePasses(lt,e,i),!u&&!h)return this.popUniforms(a,i.parameters),void this.setDrawCall(a,null);u?this.drawForwardPasses(ct,ut,i,s,e,c,t,n):this.drawVertexPasses(ht,dt,i,s,e,c),this.restoreScissorTest(),this.popUniforms(a,i.parameters),this.setDrawCall(a,null)}handleGrabPass(){for(let e=0;e<mt.length;e++){const t=mt[e];_t[t.grabPassTextureName]=t,bt=!0}}setupLightProbe(e,t){return!e&&t?We.copy(t):We.clear(),this.lightData.addOtherLights(We),We}drawForwardPasses(e,t,n,i,r,s,a,o){c.a.getLightsData(n,i,this.lightData),ot.copy(r);const l=this.setupLightProbe(s,a);this.dispatchLightProbe(l,ot,s),this.dispatchVertexLights(this.lightData.vertexLights,ot),this.dispatchMainLight(o,this.lightData.mainLight,ot),this.renderMeshInstancePasses(e,ot,n);for(let e=0;e<this.lightData.pixelLights.length;e++){const i=this.lightData.pixelLights[e];ot.copy(r),this.dispatchMainLight(o,i,ot),this.renderMeshInstancePasses(t,ot,n)}}drawVertexPasses(e,t,n,i,r,s){c.a.getLightsData(n,i,this.lightData),ot.copy(r),this.dispatchVertexLights(this.lightData.allLights,ot);const a=s?t:e;this.renderMeshInstancePasses(a,ot,n)}renderMeshInstancePasses(e,t,n){for(let i=0;i<e.length;i++){const r=e[i];r.usePass||this.renderMeshInstancePass(r,t,n)}}renderGrabPass(e,t){const n=this.device,i=t.grabPassTextureName,r=this.initializeGrabPassTexture(e,i);n.setTexture(r,0),n.gl.copyTexSubImage2D(n.gl.TEXTURE_2D,0,0,0,0,0,r._width,r._height),n.scope.resolve(i).setValue(r)}initializeGrabPassTexture(e,t){let n=yt[t];const i=e?e._screenParams:[this.device.width,this.device.height];return n&&n._width===i[0]&&n._height===i[1]||(n=this.createTexture(i[0],i[1]),n.name=t,this.device.initializeTexture(n),yt[t]=n),n}createTexture(e,t){return new h.a(this.device,{format:r.c.PIXELFORMAT_R8_G8_B8,autoMipmap:!0,mipmaps:!1,width:e,height:t,minFilter:r.c.FILTER_LINEAR,magFilter:r.c.FILTER_LINEAR,addressU:r.c.ADDRESS_CLAMP_TO_EDGE,addressV:r.c.ADDRESS_CLAMP_TO_EDGE,levels:[null]})}restoreScissorTest(){this.device.setScissor(st[0],st[1],st[2],st[3])}dispatchMainLight(e,t,n){t?(Je.set(t._finalColor),t._type===r.c.LIGHTTYPE_DIRECTIONAL?(Qe[0]=t._directionToLight.x,Qe[1]=t._directionToLight.y,Qe[2]=t._directionToLight.z,Qe[3]=0):(Qe[0]=t._position.x,Qe[1]=t._position.y,Qe[2]=t._position.z,Qe[3]=1),this.lightIds.matrix.setValue(t._worldToLightMatrix.data)):(Je[0]=0,Je[1]=0,Je[2]=0,Je[3]=0,Qe[0]=0,Qe[1]=0,Qe[2]=this.app.isUrp?-1:0,Qe[3]=0),this.lightIds.lightColor.setValue(Je),this.lightIds.worldSpaceLightPosition.setValue(Qe),t&&t._type===r.c.LIGHTTYPE_POINT?t._cookie?(n.enableKeywordId(l.b.POINT_COOKIE),this.lightIds.attenuationTexture.setValue(t._cookie||UnityEngine.Texture2D.spotTexture.handle),this.lightIds.fallOffTexture.setValue(UnityEngine.Texture2D.attenuationTexture.handle)):(n.enableKeywordId(l.b.POINT),this.lightIds.attenuationTexture.setValue(UnityEngine.Texture2D.attenuationTexture.handle)):t&&t._type===r.c.LIGHTTYPE_SPOT?(n.enableKeywordId(l.b.SPOT),this.lightIds.attenuationTexture.setValue(t._cookie||UnityEngine.Texture2D.spotTexture.handle),this.lightIds.fallOffTexture.setValue(UnityEngine.Texture2D.attenuationTexture.handle)):t&&t._cookie?(n.enableKeywordId(l.b.DIRECTIONAL_COOKIE),this.lightIds.attenuationTexture.setValue(t._cookie)):n.enableKeywordId(l.b.DIRECTIONAL)}dispatchVertexLights(e,t){if(0===e.length)t.disableKeywordId(l.b.VERTEXLIGHT_ON);else{t.enableKeywordId(l.b.VERTEXLIGHT_ON);for(let t=0;t<4;t++)if(t<e.length){const n=e[t],i=n._type===r.c.LIGHTTYPE_DIRECTIONAL?n._directionToLight:n._position,s=n._finalColor,a=n._range;Xe[t]=i.x,Ye[t]=i.y,et[t]=i.z,nt[4*t+0]=s[0],nt[4*t+1]=s[1],nt[4*t+2]=s[2],nt[4*t+3]=s[3],it[4*t+0]=i.x,it[4*t+1]=i.y,it[4*t+2]=-i.z,it[4*t+3]=n._type===r.c.LIGHTTYPE_DIRECTIONAL?0:1,tt[t]=25/(a*a)}else Xe[t]=0,Ye[t]=0,et[t]=0,nt[4*t+0]=0,nt[4*t+1]=0,nt[4*t+2]=0,nt[4*t+3]=0,it[4*t+0]=0,it[4*t+1]=0,it[4*t+2]=0,it[4*t+3]=0,tt[t]=0;this.lightIds.vertexX.setValue(Xe),this.lightIds.vertexY.setValue(Ye),this.lightIds.vertexZ.setValue(et),this.lightIds.vertexAttenuation.setValue(tt),this.lightIds.vertexLightColors.setValue(nt),this.lightIds.vertexLightPositions.setValue(it)}}dispatchLightProbe(e,t,n){if(n)t.disableKeywordId(l.b.LIGHTPROBE_SH);else{t.enableKeywordId(l.b.LIGHTPROBE_SH),e.updateUniforms();for(let t=0;t<this.unityIds.lightProbeIds.length;t++)this.unityIds.lightProbeIds[t].setValue(e.uniforms[t]._data)}}renderMeshInstancePass(e,t,n){const i=this.device,s=n.material,a=n.mesh;if(!a||!a.indexBuffer[0])return;if(window.spector&&n.node){const t=n.node._unityComponents,i=t&&t.canvasRenderer&&t.canvasRenderer[0];let s=null;i&&(s=i._parentCanvas?i._parentCanvas.entity.name:i.model.entity.name);let a=s;null===s?a=n.node.name:s!==n.node.name&&(a=s+" - "+n.node.name),window.spector.setMarker(a+": "+r.c.LIGHT_MODE_NAMES[e.lightMode])}e.updateRenderState(s),this.updateRenderState(n,e,t);let o=e.getVariant(t,!0,!0);o||(o=e.applyMissingVariant(t.getEnabledKeywords(),e,n));let l=o.getShader(n._shaderDefs);if(!i.setShader(l))return l=o.applyMissingShader(n._shaderDefs),void i.setShader(l);if(bt)for(let e=0;e<l.samplers.length;e++){const t=l.samplers[e].scopeId.name,n=_t[t];!n||"_GrabTexture"!==t&&ft[t]||(this.renderGrabPass(St,n),ft[t]=!0)}if(window.spector){const t=o.keywords.getEnabledKeywords().join(" "),i=n.node._unityComponents,s=i&&i.canvasRenderer&&i.canvasRenderer[0];let a=null;s&&(a=s._parentCanvas?s._parentCanvas.entity.fullname:"<none>"),l._glProgram.__SPECTOR_Metadata={Material:"["+n.material.$id+"] "+n.material.name,Shader:"["+e.sourceShader.$id+"] "+e.sourceShader.name,RenderType:r.c.RENDER_TYPE_NAMES[e.renderType],LightMode:r.c.LIGHT_MODE_NAMES[e.lightMode],Keywords:0===o.keywords.cardinality?"<none>":t,RenderQueue:n.material.renderQueue,SortingLayerIndex:n.sortingLayerIndex,SortingOrder:n.sortingOrder,DrawOrder:n.drawOrder,ZDist:n.zdist,ParentCanvas:a}}this.drawInstance(i,n,a,0,!0)}setMaterial(e,t,n=!1){this._material&&(n||this._material!==t)&&this.popUniforms(e,this._material.parameters),(this._material!==t||n)&&(this.app.counters.recordMaterialSwitch(),this.pushUniforms(e,t.parameters)),this._material=t}pushUniforms(e,t){for(const n in t){const i=t[n];i.scopeId||(i.scopeId=e.scope.resolve(n)),i.scopeId.pushValue(i.data)}const n=e.scope.resolve("_ClipRect");if(n.value){const e=n.value;e[0]=-1/0,e[1]=-1/0,e[2]=1/0,e[3]=1/0,n.versionObject.increment()}else n.setValue([-1/0,-1/0,1/0,1/0])}popUniforms(e,t){for(const e in t)t.hasOwnProperty(e)&&t[e].scopeId.popValue()}setDrawCall(e,t){null!==t&&(rt[3]=t._flipFaces?-1:1,this.unityIds.worldTransformParamsId.setValue(rt))}setPass(e,t){t.updateRenderState(e);const n=this.device,i=t,r=c.a.unityCullModeToPlaycanvas(0|i.culling.val);n.setCullMode(r);const s=c.a.unityCompareFunctionToPlaycanvas(0|i.zTest.val),a=s>=0&&s<=7,o=i.zWrite.val>0;n.setBlending(!0),n.setDepthTest(a),n.setDepthWrite(o);const l=i.offsetUnits.val,u=i.offsetFactor.val;l||u?(n.setDepthBias(!0),n.setDepthBiasValues(l,u)):n.setDepthBias(!1),this.setBlendFunctionAndEquation(i),a&&n.setDepthFunc(s);const h=i.colorWriteMask.val,d=(8&h)>0,m=(4&h)>0,g=(2&h)>0,$=(1&h)>0;n.setColorWrite(d,m,g,$);const p=this.device;at.copy(this.globalKeywords),at.merge(e.keywords);let y=t.getVariant(at,!0,!0);y||(y=t.applyMissingVariant(at.getEnabledKeywords(),t,null));let f=y.getShader(0);if(!p.setShader(f))return f=y.applyMissingShader(0),void p.setShader(f);this.setMaterial(p,e,!0)}renderForward(e,t,n,i){const s=this.device,a=r.f.now();s._enableAutoInstancing&&this.prepareAutoInstancing(t,n),ft={},_t={},bt=!1;for(let r=0;r<n;r++){const n=t[r],s=n._lightProbe||this._ambientProbe;at.copy(this.globalKeywords),n.isCanvas?n.render(at,s,e,n,i):n.isSortingGroup?n.render(at,s,e,i):$.i.instance.enableDynamicBatching?r+=this.renderBatchGroup(t,n,s,e,i,r,at):this.renderMeshInstance(at,s,e,n,i)}this._material&&(this.popUniforms(s,this._material.parameters),this._material=null),s.updateEnd(),this._forwardTime+=r.f.now()-a}updateRenderState(e,t,n){const i=this.device;let s=xt(0|t.culling.val);(e._flipFaces||this.invertCulling)&&(s===r.c.CULLFACE_BACK?s=r.c.CULLFACE_FRONT:s===r.c.CULLFACE_FRONT&&(s=r.c.CULLFACE_BACK)),i.setCullMode(s);const a=Tt(0|t.zTest.val),o=a>=0&&a<=7,l=t.zWrite.val>0;i.setBlending(!0),i.setDepthTest(o),o&&i.setDepthFunc(a),i.setDepthWrite(l);const c=t.offsetUnits.val,u=t.offsetFactor.val;if(c||u?(i.setDepthBias(!0),i.setDepthBiasValues(c,u)):i.setDepthBias(!1),this.setBlendFunctionAndEquation(t),(e._shaderDefs&r.c.SHADERDEF_REVERT_STENCIL)>0){const t=e.stencilFront.ref,n=1===t;this.clearMaskStencil.func=n?r.c.FUNC_ALWAYS:r.c.FUNC_EQUAL,this.clearMaskStencil.zpass=n?r.c.STENCILOP_ZERO:r.c.STENCILOP_REPLACE,this.clearMaskStencil.ref=t>>1,this.clearMaskStencil.readMask=n?255:t>>1,this.clearMaskStencil.writeMask=n?255:t,i.applyStencilState(this.clearMaskStencil,this.clearMaskStencil,!0)}else{const n=this.isUiStencil(e),s=(e._shaderDefs&r.c.SHADERDEF_STENCIL_OVERRIDE)===r.c.SHADERDEF_STENCIL_OVERRIDE,a=Et(t.stencilOp),o=Et(t.stencilOpFront)||Et(t.stencilOpBack);(n||s)&&e.stencilFront&&e.stencilBack?(e.node.element&&n&&(this._materialToStencilState(e.material,e.stencilFront),this._materialToStencilState(e.material,e.stencilBack)),i.applyStencilState(e.stencilFront,e.stencilBack,!0)):a?(this._renderStateToStencilState(t,t.stencilOp,Ze),e.stencilFront&&(Ze=e.stencilFront),i.applyStencilState(Ze,Ze,!0)):o?(this._renderStateToStencilState(t,t.stencilOpFront,Ze),this._renderStateToStencilState(t,t.stencilOpBack,qe),i.applyStencilState(Ze,qe,!0)):i.applyStencilState(null,null,!0)}let h=e.parameters.hasOwnProperty("_ColorMask")?e.parameters._ColorMask.data:t.colorWriteMask.val;(e._shaderDefs&r.c.SHADERDEF_REVERT_STENCIL)>0&&(h=0);const d=(8&h)>0,m=(4&h)>0,g=(2&h)>0,$=(1&h)>0;i.setColorWrite(d,m,g,$),e.parameters.hasOwnProperty("UNITY_UI_ALPHACLIP")&&0!==e.parameters.UNITY_UI_ALPHACLIP.data&&n.enableKeyword("UNITY_UI_ALPHACLIP")}setBlendFunctionAndEquation(e){const t=It(0|e.blending.src.val),n=It(0|e.blending.dst.val),i=At(0|e.blending.op.val),r=It(0|e.alphaBlending.src.val),s=It(0|e.alphaBlending.dst.val),a=At(0|e.alphaBlending.op.val);this.device.setBlendFunctionSeparate(t,n,r,s),this.device.setBlendEquationSeparate(i,a)}isUiStencil(e){return!!(e.material.parameters._Stencil&&e.material.parameters._StencilOp&&e.material.parameters._StencilComp&&e.material.parameters._StencilReadMask&&e.material.parameters._StencilWriteMask&&e.material.parameters._ColorMask)}_renderStateToStencilState(e,t,n){n.func=Tt(0|t.comp.val),n.ref=0|e.stencilRef.val,n.readMask=0|e.stencilReadMask.val,n.writeMask=0|e.stencilWriteMask.val,n.fail=vt(0|t.fail.val),n.zfail=vt(0|t.zFail.val),n.zpass=vt(0|t.pass.val)}_materialToStencilState(e,t){t.func=Tt(0|e.parameters._StencilComp.data),t.ref=0|e.parameters._Stencil.data,t.readMask=0|e.parameters._StencilReadMask.data,t.writeMask=0|e.parameters._StencilWriteMask.data,e.parameters._StencilZFail?t.fail=vt(0|e.parameters._StencilZFail.data):t.fail=0,e.parameters._StencilZPass?t.zfail=vt(0|e.parameters._StencilZPass.data):t.zfail=0,t.zpass=vt(0|e.parameters._StencilOp.data)}setCamera(e,t,n=!1){const i=UnityEngine.Object.FromHandle(UnityEngine.Camera,e._component);UnityEngine.Camera.TriggerOnPreRender(i),UnityEngine.Canvas.TriggerWillRenderCanvases(),this.setCameraTarget(e,t,n),UnityEngine.Camera.TriggerOnPostRender(i)}setCameraTarget(e,t,n=!1){ge.copy(e.viewMat),me.copy(e.viewInvMat),ye.copy(e.projMat),fe.copy(e.projInvMat),$e.copy(e.viewProjMat),pe.copy(e.invViewProjMat),_e.copy(e.cameraToWorldMat),Se.copy(e.worldToCameraMat),this.viewInvId.setValue(me.data),this.unityIds.invViewId.setValue(me.data),this.unityIds.viewId.setValue(ge.data),this.unityIds.viewProjId.setValue($e.data),this.unityIds.viewProjInvId.setValue(pe.data),this.unityIds.legacyProjId.setValue(ye.data),this.unityIds.camToWorldId.setValue(_e.data),this.unityIds.worldToCamId.setValue(Se.data),this.unityIds.cameraProjectionId.setValue(ye.data),this.unityIds.cameraInvProjectionId.setValue(fe.data);const i=e.projection===r.c.PROJECTION_ORTHOGRAPHIC?e.frustum.unityPlanesOrthographic:e.frustum.unityPlanesPerspective;for(let e=0,t=0;e<i.length;e++,t+=4)Ue[t]=i[e][0],Ue[t+1]=i[e][1],Ue[t+2]=i[e][2],Ue[t+3]=i[e][3];this.unityIds.cameraWorldClipPlanesId.setValue(Ue);const s=e._node.getPosition();Ie[0]=s.x,Ie[1]=s.y,Ie[2]=s.z,Ie[3]=0,e._screenParams[0]=e.renderTarget?e.renderTarget.width:this.device.width,e._screenParams[1]=e.renderTarget?e.renderTarget.height:this.device.height,e._screenParams[2]=1+1/e._screenParams[0],e._screenParams[3]=1+1/e._screenParams[1],this.unityIds.worldSpaceCameraPos.setValue(Ie),this.unityIds.projectionParamsId.setValue(e._projectionParams),this.unityIds.cameraOrthoParamsId.setValue(e._orthoParams),this.unityIds.screenParamsId.setValue(e._screenParams),this.unityIds.zbufferParams.setValue(e._zbufferParams);const a=this.device;a.setRenderTarget(t),a.updateBegin();let o=e.getRect();const l=t?t.width:a.width,c=t?t.height:a.height;let u=Math.floor(o.x*l),h=Math.floor(o.y*c),d=Math.floor(o.width*l),m=Math.floor(o.height*c);a.setViewport(u,h,d,m),a.setScissor(u,h,d,m),n&&a.clear(e._clearOptions),o=e._scissorRect,u=Math.floor(o.x*l),h=Math.floor(o.y*c),d=Math.floor(o.width*l),m=Math.floor(o.height*c),a.setScissor(u,h,d,m),this.viewProjId.setValue($e.data)}dispatchGlobalLights(){if(this.ambientSky=UnityEngine.RenderSettings.ambientSkyColor.data,this.lightmodel_ambient[0]=this.ambientSky[0]/2,this.lightmodel_ambient[1]=this.ambientSky[1]/2,this.lightmodel_ambient[2]=this.ambientSky[2]/2,this.lightmodel_ambient[3]=this.ambientSky[3]/2,this.unityIds.glstateLightModelAmbient.setValue(this.lightmodel_ambient),this.unityIds.ambientSky.setValue(this.ambientSky),this.unityIds.ambientEquator.setValue(UnityEngine.RenderSettings.ambientEquatorColor.data),this.unityIds.ambientGround.setValue(UnityEngine.RenderSettings.ambientGroundColor.data),this.scene.skybox){const e=this.scene.skybox.indirectSpecular;this.unityIds.indirectSpecularId.setValue(e.data)}this._ambientProbe=UnityEngine.RenderSettings.ambientProbe||Ke;const e=UnityEngine.LightmapSettings.reflectionProbes,t=e&&e.environmentProbe?e.environmentProbe:null;t?(this.unityIds.reflectionProbeIds[0].setValue(t.cubemap),this.unityIds.reflectionProbeIds[1].setValue(ke),this.unityIds.reflectionProbeIds[2].setValue(Ve),this.unityIds.reflectionProbeIds[3].setValue(Ne),this.unityIds.reflectionProbeIds[4].setValue(t.cubemap),this.unityIds.reflectionProbeIds[5].setValue(ze),this.unityIds.reflectionProbeIds[6].setValue(He),this.unityIds.reflectionProbeIds[7].setValue(je)):(this.unityIds.reflectionProbeIds[0].setValue(null),this.unityIds.reflectionProbeIds[1].setValue(i.n.ZERO.data),this.unityIds.reflectionProbeIds[2].setValue(i.n.ZERO.data),this.unityIds.reflectionProbeIds[3].setValue(i.n.ZERO.data),this.unityIds.reflectionProbeIds[4].setValue(null),this.unityIds.reflectionProbeIds[5].setValue(i.n.ZERO.data),this.unityIds.reflectionProbeIds[6].setValue(i.n.ZERO.data),this.unityIds.reflectionProbeIds[7].setValue(i.n.ZERO.data))}checkSkinnedMeshVisibility(e,t,n,i){const r=e.rootBone?e.rootBone:n.node;let s=!1;for(let n=0;n<t.length;n++)i.center=r.transformPoint(e.localBounds.center,i.center),i.halfExtents.copy(r.getLossyScale()),i.halfExtents.mul(e.localBounds.halfExtents),s=s||!!y.a.isAABBVisibleInFrustum(t[n].frustum,i);return s}updateCpuSkinMatrices(e,t){if(0===t)return;const n=r.f.now();for(let n=0;n<t;n++){const t=e[n],i=t.skinInstance;if(i){if(this.app.counters.advancedMode){const e=this.checkSkinnedMeshVisibility(i.skin,this.getCameras(),t,Ct);this.app.counters.recordSkinnedMesh(t,e)}for(let e=0;e<i.bones.length;e++){const t=i.bones[e];if(t&&(i._dirty=i._dirty||t._aabbVer!==i.bonesAabbVersions[e],i._dirty))break}if(i._dirty){for(let e=0;e<i.bones.length;e++){const t=i.bones[e];t&&(i.bonesAabbVersions[e]=t._aabbVer)}const e=i.skin.rootBone||t.node;i.updateMatrices(e)}}}this._skinTime+=r.f.now()-n}updateGpuSkinMatrices(e,t,n){const i=r.f.now();let s=!1;for(let i=0;i<t;i++){const t=e[i];s=!1;const r=t.skinInstance;if(!r||!r._dirty)continue;const a=r.skin;s=!!a.updateWhenOffscreen||this.checkSkinnedMeshVisibility(a,n,t,Ct),s&&(r.updateMatrixPalette(),r._dirty=!1)}this._skinTime+=r.f.now()-i}updateMorphedBounds(e,t){const n=r.f.now();for(let n=0;n<t;n++){const t=e[n].morphInstance;t&&this.app.counters.recordMorphInstance(e[n]),t&&t._dirty&&t.updateBounds(e[n].mesh)}this._morphTime+=r.f.now()-n}updateMorphing(e,t){const n=r.f.now();for(let n=0;n<t;n++){if(!e[n].visibleThisFrame)continue;const t=e[n].morphInstance;t&&t._dirty&&(t.update(e[n].mesh),t._dirty=!1)}this._morphTime+=r.f.now()-n}setSkinning(e,t){t.skinInstance&&(e.supportsBoneTextures?(Me=t.skinInstance.boneTexture,this.boneTextureId.setValue(Me),De[0]=Me.width,De[1]=Me.height,this.boneTextureSizeId.setValue(De)):this.poseMatrixId.setValue(t.skinInstance.matrixPalette))}setMatrix(e,t){this.device.scope.resolve(wt(e)).setValue(t)}addProceduralDrawCallToQueue(e,t){let n=we[t];n||(n=[],we[t]=n),n.push(e)}drawInstance(e,t,n,i,s){const a=e.shader.uniformsUsage;let o=t.node.worldTransform,l=t.node.worldTransformInverse;return t.skinInstance&&t.skinInstance.skin&&t.skinInstance.skin.rootBone&&(o=t.skinInstance.skin.rootBone.worldTransform,l=t.skinInstance.skin.rootBone.worldTransformInverse),t.parameters.localToWorldMatrix&&(o=xe.set(t.parameters.localToWorldMatrix.data),0!=(a&r.c.UNIFORMS_USAGE_MAP.unity_WorldToObject)&&(l=t.parameters.worldToLocalMatrix?Ae.set(t.parameters.worldToLocalMatrix.data):Ae.copy(o).invert())),this.modelMatrixId.setValue(o.data),this.unityIds.modelMatrixId.setValue(o.data),this.unityIds.modelMatrixInvId.setValue(l.data),0!=(a&r.c.UNIFORMS_USAGE_MAP.unity_MatrixMVP)&&(be.copy(ye),be.mul2(be,ge),be.mul2(be,o),this.unityIds.modelViewProjId.setValue(be.data)),0!=(a&r.c.UNIFORMS_USAGE_MAP.unity_MatrixMV)&&(Ce.copy(ge),Ce.mul2(Ce,o),this.unityIds.modelViewId.setValue(Ce.data)),0!=(a&r.c.UNIFORMS_USAGE_MAP.unity_MatrixTMV)&&(Ee.copy(Ce),Ee.transpose(),this.unityIds.transposeModelViewId.setValue(Ee.data)),0!=(a&r.c.UNIFORMS_USAGE_MAP.unity_MatrixITMV)&&(0==(a&r.c.UNIFORMS_USAGE_MAP.unity_MatrixTMV)&&(Ee.copy(Ce),Ee.transpose()),Te.copy(Ee),Te.invert(),this.unityIds.inverseTransposeModelViewId.setValue(Te.data)),Pe=t.instancingData,Pe?(e.setVertexBuffer(Pe._buffer,1,Pe.offset),e.draw(n.primitive[i],Pe.count,t.material._shader.defaultParameters,t.constAttributes,t),Pe._buffer===gt?(t.instancingData=null,Pe.count-1):0):(e.draw(n.primitive[i],null,t.material._shader.defaultParameters,t.constAttributes,t),0)}prepareAutoInstancing(e,t){const n=r.f.now();gt||this.setupInstancing(this.device);let i=0,s=0;const a=$t;for(let n=0;n<t;n++){const o=n,l=e[n],c=l.material,u=l.mesh;if(!c||!u||!c.enableAutoInstancing)continue;if(null!==l.instancingData)continue;let h=0;for(h=n+1;h<t;h++){const t=e[h],n=t.material,i=t.mesh;if(n!==c||i!==u)break}if(h-o>1){for(l.instancingData={count:h-o,offset:4*i,_buffer:gt},l._shaderDefs|=r.c.SHADERDEF_INSTANCING,s=o;s<h;s++){const t=e[s].node.getWorldTransform().data;a.set(t,i),i+=16}n=h-1}else n=o,l._shaderDefs&=~r.c.SHADERDEF_INSTANCING,l.instancingData=null}this._instancingTime+=(r.f.now()-n)/1e3,gt.unlock()}switchRenderingToScreenSpace(e){if(e!==this.renderingAsScreenSpace)if(this.renderingAsScreenSpace=e,e){const e=i.i.IDENTITY.data,t=this.device;Be.setOrtho(0,t._width,0,t._height,-1e3,1e3),Oe.copy(Be).invert(),this.unityIds.viewId.pushValue(e),this.unityIds.legacyProjId.pushValue(Be.data),this.viewProjId.pushValue(Be.data),this.unityIds.viewProjId.pushValue(Be.data),this.unityIds.viewProjInvId.pushValue(Oe.data)}else this.unityIds.viewId.popValue(),this.unityIds.legacyProjId.popValue(),this.viewProjId.popValue(),this.unityIds.viewProjId.popValue(),this.unityIds.viewProjInvId.popValue()}setupInstancing(e){if(!pt){const t=[{semantic:r.c.SEMANTIC_TEXCOORD2,components:4,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD3,components:4,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD4,components:4,type:r.c.TYPE_FLOAT32},{semantic:r.c.SEMANTIC_TEXCOORD5,components:4,type:r.c.TYPE_FLOAT32}];pt=new d.a(e,t)}gt||(gt=new f.a(e,pt,e.autoInstancingMaxObjects,r.c.BUFFER_DYNAMIC),$t=new Float32Array(gt.lock()))}clearTarget(e,t){window.spector&&window.spector.setMarker("Clear RT");const n=this.device,i=n.renderTarget;n.setRenderTarget(e),n.updateBegin(),n.setColorWrite(!0,!0,!0,!0),n.setDepthWrite(!0),this.setupViewport({x:0,y:0,width:1,height:1},e.width,e.height),this.device.clear(t),n.setRenderTarget(i)}clearView(e){window.spector&&window.spector.setMarker("Clear");const t=e.camera,n=t.renderTarget,i=this.device;i.setRenderTarget(n),i.updateBegin(),i.setColorWrite(!0,!0,!0,!0),i.setDepthWrite(!0);const r=t.getRect(),s=n?n.width:i.width,a=n?n.height:i.height;this.setupViewport(r,s,a),this.processClear(e)}processClear(e){this.device.clear(e.camera._clearOptions)}setupViewport(e,t,n){const i=this.device,r=Math.floor(e.x*t),s=Math.floor(e.y*n),a=Math.floor(e.width*t),o=Math.floor(e.height*n);i.setViewport(r,s,a,o),i.setScissor(r,s,a,o)}setSceneConstants(){this.globalKeywords.copy(m.c.globalKeywords),this.dispatchGlobalLights();const e=UnityEngine.RenderSettings;e.fog&&(ve[2]=0,ve[3]=0,e.fogMode===UnityEngine.FogMode.Exponential?this.globalKeywords.enableKeywordId(l.b.FOG_EXP):e.fogMode===UnityEngine.FogMode.ExponentialSquared?this.globalKeywords.enableKeywordId(l.b.FOG_EXP2):(this.globalKeywords.enableKeywordId(l.b.FOG_LINEAR),ve[2]=-1/(e.fogEndDistance-e.fogStartDistance),ve[3]=e.fogEndDistance/(e.fogEndDistance-e.fogStartDistance)),ve[0]=e.fogDensity/.8325546111576977,ve[1]=e.fogDensity/Math.log(2),this.unityIds.fogParamsId.setValue(ve)),this.unityIds.fogColorId.setValue(e.fogColor.data),Le[0]=e.fogStartDistance,Le[1]=e.fogStartDistance,Le[2]=e.fogStartDistance,Le[3]=e.fogStartDistance,Re[0]=e.fogEndDistance,Re[1]=e.fogEndDistance,Re[2]=e.fogEndDistance,Re[3]=e.fogEndDistance,this.unityIds.fogStart.setValue(Le),this.unityIds.fogEnd.setValue(Re);const t=UnityEngine.Time.time,n=UnityEngine.Time.deltaTime,i=UnityEngine.Time.smoothDeltaTime;this.unityIds.time.setValue([t/20,t,2*t,3*t]),this.unityIds.sinTime.setValue([Math.sin(t/8),Math.sin(t/4),Math.sin(t/2),Math.sin(t)]),this.unityIds.cosTime.setValue([Math.cos(t/8),Math.cos(t/4),Math.cos(t/2),Math.cos(t)]),this.unityIds.deltaTime.setValue([n,1/n,i,1/i]),this.unityIds.timeParameters.setValue([t,Math.sin(t),Math.cos(t),0]),UnityEngine.Texture2D.nhxRoughnessTexture&&this.unityIds.roughness.setValue(UnityEngine.Texture2D.nhxRoughnessTexture.handle)}renderComposition(){window.spector&&window.spector.clearMarker();const e=this.device,t=this.scene.getMeshInstances(),n=this.scene.meshInstancesCount;this.app.counters.startSubSection(p.a.RENDER_SKIN_AND_MORPH),this.updateCpuSkinMatrices(t,n),this.updateMorphedBounds(t,n),this.app.counters.endSubSection(p.a.RENDER_SKIN_AND_MORPH),this.scene.skybox.prepareEnvironmentReflectionsIfNeeded(),this.setSceneConstants();const i=this.getCameras();i.sort(g.a.cameraCompare),this.app.counters.startSubSection(p.a.RENDER_SKIN_AND_MORPH),this.updateGpuSkinMatrices(t,n,i),this.updateMorphing(t,n),this.app.counters.endSubSection(p.a.RENDER_SKIN_AND_MORPH),this.renderCameras(i);const s=this.scene.overlayScreens;if(s.length>0){e.setRenderTarget(null),e.updateBegin();const t=[this.device.width,this.device.height,1+1/this.device.width,1+1/this.device.height];this.unityIds.screenParamsId.setValue(t),this.setupViewport({x:0,y:0,width:1,height:1},e.width,e.height),e.clear({flags:r.c.CLEARFLAG_STENCIL}),this.switchRenderingToScreenSpace(!0);for(let e=0;e<s.length;e++)s[e].canvasMeshInstance.render(this.globalKeywords,null,null,null,this.scene._lights);this.switchRenderingToScreenSpace(!1),e.updateEnd()}for(const e in we){const t=we[e];for(const e of t)pc.Graphics.freeProceduralMeshInstance(e);t.length=0}this.dynamicBatcher.releaseBuffers()}updateLights(e,t){const n=[];for(let i=0;i<t.length;i++){const r=t[i];r.update(e)&&n.push(r)}return n}setupGlobalKeywordsForCamera(e,t){}setupWorldScreensVisibility(e,t){for(const n of e._worldScreens)n.screenType===r.c.SCREEN_TYPE_CAMERA?n.canvasMeshInstance.visible=n.camera===t:n.canvasMeshInstance.visible=!0}getCameras(){return this.scene._cameras}renderCameras(e){for(let t=0;t<e.length;t++)this.renderCamera(e[t])}renderCamera(e){const t=e.camera,n=e.camera.renderTarget;e.frameBegin(n),UnityEngine.Camera.TriggerOnPreCull(UnityEngine.Object.FromHandle(UnityEngine.Camera,t._component)),this.setupWorldScreensVisibility(this.scene,t);const i=this.scene.getMeshInstancesCached();let r=this.scene.meshInstancesCount;const s=we[e.$id];s&&(r=this.addProceduralMeshes(s,i,r));const a=we.allcameras;a&&(r=this.addProceduralMeshes(a,i,r));const o=r,l=[],c=[];y.a.cullMasked(t,i,o,l),y.a.cullFrustum(t,l,c);const u=[],h=[];g.a.sortOpaqueAndTransparent(c,u,h),g.a.calculateSortDistances(u,t._node.getPosition(),t._node.forward),g.a.calculateSortDistances(h,t._node.getPosition(),t._node.forward);const d=this.updateLights(t,this.scene._lights);this.setupGlobalKeywordsForCamera(t,d),this.clearView(e),this.needToRenderDepth()&&(this.app.counters.startSubSection(p.a.RENDER_DEPTH),this.renderCameraDepth(e,c,d),this.app.counters.endSubSection(p.a.RENDER_DEPTH)),this.renderShadowMap(e,l,c,d),this.setCamera(t,t.renderTarget),u.sort(g.a.genericSortOpaque),this.renderForward(t,u,u.length,d);const m=this.scene.getSkyboxForRender(),$=this.getSkyboxOverride(e),f=m.meshInstance.material;m.meshInstance.material=$||f,this.drawSkybox(m,t,d),this.onOpaqueRendered(t),h.sort(g.a.genericSortTransparent),this.renderForward(t,h,h.length,d),this.freeShadowMap(),e.frameEnd(),m.meshInstance.material=f}getSkyboxOverride(e){const t=e.entity._unityComponents;return t.skybox.length>0?t.skybox[0]._material:null}addProceduralMeshes(e,t,n){for(const i of e)t.length===n?t.push(i):t[n]=i,n++;return n}needToRenderDepth(){return this.scene.hasVisibleDepthConsumers()}renderCameraDepth(e,t,n){const i=e.depthRenderTarget;this.renderDepth(e.camera,t,n,i,2500),this.setCameraDepthTexture(i.depthBuffer)}renderDepth(e,t,n,i,r){this.clearTarget(i,this._depthPass.clearOptions),this.setCameraTarget(e,i,!1),t&&t.length>0&&(c.a.getLightsData(t[0],n,this.lightData),this.dispatchMainLight(e,this.lightData.mainLight,at)),this._depthPass.updateDepthTexture(t,r)}setCameraDepthTexture(e){e&&(this.device.webgl2||this.device.extDepthTexture)?(this.unityIds.lastCameraDepthTexture.setValue(e),this.unityIds.cameraDepthTexture.setValue(e)):(this.unityIds.cameraDepthTexture.setValue(UnityEngine.Texture2D.greyTexture.handle),this.unityIds.lastCameraDepthTexture.setValue(UnityEngine.Texture2D.greyTexture.handle))}renderShadowMap(e,t,n,i){if(!this.shadowRenderer.isShadowsEnabled(i))return;const r=e.createDepthRenderTarget();this.renderDepth(e.camera,n,i,r,_),this.setCameraDepthTexture(r.depthBuffer),p.a.instance.startSubSection(p.a.RENDER_SHADOWS),this.shadowRenderingResult=this.shadowRenderer.render(e.camera,t,i),this.unityIds.shadowMapTexture.setValue(this.shadowRenderingResult.renderTarget.colorBuffer),p.a.instance.endSubSection(p.a.RENDER_SHADOWS),e.destroyDepthRenderTarget(r),this.setCameraDepthTexture(e.depthRenderTarget.depthBuffer)}freeShadowMap(){this.shadowRenderingResult&&(this.shadowRenderingResult.renderTarget&&this.renderTargetPool.releaseTempRenderTarget(this.shadowRenderingResult.renderTarget),this.shadowRenderingResult=null)}needToDrawSkybox(e,t){return!!e&&t.clearSkybox&&e.isVisible}drawSkybox(e,t,n){if(!this.needToDrawSkybox(e,t))return;e.updateSkyDrawCall(t);const i=e.meshInstance;i.cull=!1,i.visible=!0,this.renderMeshInstance(this.globalKeywords,null,null,i,n)}onOpaqueRendered(e){this.device.geometryStateManager.unbindVertexArrayObject()}}},(e,t,n)=>{n.d(t,{a:()=>a});const i=/uniform\s+(highp\s*|lowp\s*|mediump\s*)?(\w+)\s+(\w+)(\[(\w+)\])?/,r=RegExp(i,"g"),s=RegExp(i);function a(e){let t=0;const n=e.match(r);if(n)for(let e=0;e<n.length;e++){const i=n[e].match(s),r=parseInt(i[5],10);Number.isNaN(r)?t++:t+=r}return t}},(e,t,n)=>{n.d(t,{a:()=>d});var i=n(0),r=n(1),s=n(2);const a=new i.m,o=new i.m,l=new i.m,c=new i.m,u=new i.n,h=new i.n;class d{constructor(){this._projection=s.c.PROJECTION_PERSPECTIVE,this._nearClip=.1,this._farClip=1e4,this._fov=45,this._orthoHeight=10,this._aspect=16/9,this.cullingMask=4294967295,this._usePhysicalProperties=!1,this._focalLength=50,this._sensorSize=new i.l(36,24),this._lensShift=new i.l,this._gateFit=s.c.GATE_FIT_HORIZONTAL,this._lastAabbVer=-1,this._projMatDirty=!0,this._projMat=new i.i,this._projInvMat=new i.i,this._viewMatDirty=!0,this._viewMat=new i.i,this._viewInvMat=new i.i,this._viewProjMatDirty=!0,this._viewProjMat=new i.i,this._invViewProjMat=new i.i,this._projMatOverride=null,this._rect={x:0,y:0,width:1,height:1},this._scissorRect={x:0,y:0,width:1,height:1},this._frustumDirty=!0,this._frustum=new i.f(this._projMat,this._viewMat),this.renderTarget=null,this._clearOptions={color:[.5,.5,.5,1],depth:1,stencil:0,flags:s.c.CLEARFLAG_COLOR|s.c.CLEARFLAG_DEPTH|s.c.CLEARFLAG_STENCIL|s.c.CLEARFLAG_USE_SKYBOX},this._node=null,this.calculateTransform=null,this._overrideCalculateTransform=!1,this._component=null,this._zbufferParams=new Float32Array(4),this._screenParams=new Float32Array(4),this._orthoParams=new Float32Array(4),this._projectionParams=new Float32Array(4)}worldToScreen(e,t,n,r=new i.m){return this.viewProjMat.multiplyPoint(e,r),r.x=.5*(r.x+1)*t,r.y=.5*(r.y+1)*n,c.sub2(e,this._node.getPosition()),r.z=c.dot(this._node.forward),r}screenToWorld(e,t,n,r,c,u=new i.m){const h=this._node.getPosition(),d=this.invViewProjMat;if(this._projection===s.c.PROJECTION_PERSPECTIVE){o.set(e/r*2-1,t/c*2-1,1),d.transformPoint(o,l);const i=o.x*d.data[3]+o.y*d.data[7]+o.z*d.data[11]+d.data[15];l.scale(1/i);const s=n/this._farClip;u.lerp(h,l,s)}else{const s=this._farClip-this._nearClip;a.set(e/r,t/c,(n-this._nearClip)/s),a.scale(2),a.sub(i.m.ONE),d.transformPoint(a,u)}return u}setProjectionMatrix(e){this._projMatOverride=e?e.clone():null,this._projMatDirty=!0}_updateScreens(){const e=r.a.getApplication().scene.worldScreens;for(let t=0;t<e.length;t++){const n=e[t];n.screenType===s.c.SCREEN_TYPE_CAMERA&&n._calcProjectionMatrix()}}getRect(){return this._rect}setRect(e,t,n,i){this._rect.x=e,this._rect.y=t,this._rect.width=n,this._rect.height=i,this._projMatDirty=!0}setScissorRect(e,t,n,i){this._scissorRect.x=e,this._scissorRect.y=t,this._scissorRect.width=n,this._scissorRect.height=i}setSensorSize(e,t){this._sensorSize.x=e,this._sensorSize.y=t}setLensShift(e,t){this._lensShift.x=e,this._lensShift.y=t}resetProjectionMatrix(){this._projMatOverride=null,this._projMatDirty=!0}calculateObliqueMatrix(e){u.copy(e);const t=this.projMat.clone();h.x=u.x>=0?1:-1,h.y=u.y>=0?1:-1,h.z=1,h.w=1,this.projInvMat.transformVec4(h,h),u.scale(2/u.dot(h));const n=t.data;return n[2]=u.x-n[3],n[6]=u.y-n[7],n[10]=u.z-n[11],n[14]=u.w-n[15],t}updateProjMat(){if(this._projMatOverride)this._projMat.copy(this._projMatOverride);else if(this._projection===s.c.PROJECTION_PERSPECTIVE)this._usePhysicalProperties?d.calculateProjectionMatrixFromPhysicalProperties_Unity(this._projMat,this._focalLength,this._sensorSize,this._lensShift,this._nearClip,this._farClip,this._aspect,this._gateFit):this._projMat.setPerspective(this._fov,this._aspect,this._nearClip,this._farClip);else{const e=this._orthoHeight,t=e*this._aspect;this._projMat.setOrtho(-t,t,-e,e,this._nearClip,this._farClip)}const e=this._nearClip,t=this._farClip,n=this.aspectRatio,i=this.orthoHeight;this._orthoParams[0]=i*n,this._orthoParams[1]=i,this._orthoParams[2]=0,this._orthoParams[3]=this.projection===s.c.PROJECTION_ORTHOGRAPHIC?1:0,this._zbufferParams[0]=1-t/e,this._zbufferParams[1]=t/e,this._zbufferParams[2]=this._zbufferParams[0]/t,this._zbufferParams[3]=this._zbufferParams[1]/t,this._projectionParams[0]=1,this._projectionParams[1]=e,this._projectionParams[2]=t,this._projectionParams[3]=1/t,this._projInvMat.copy(this._projMat).invert(),this._updateScreens(),this._frustumDirty=!0,this._projMatDirty=!1,this._viewProjMatDirty=!0}updateViewMat(){const e=this._node;if(this._overrideCalculateTransform)this.calculateTransform(this._viewInvMat,s.c.VIEW_CENTER);else{const t=e.getPosition(),n=e.getRotation();this._viewInvMat.setTRS(t,n,i.m.REVERSED_Z)}this._viewMat.copy(this._viewInvMat).invert();const t=e.getLossyScale();0!==t.x&&0!==t.y&&0!==t.z||UnityEngine.Debug.LogWarning$1("Camera world transform matrix has 0 scale. That leads to losing rotation data"),this._updateScreens(),this._frustumDirty=!0,this._viewMatDirty=!1,this._viewProjMatDirty=!0,this._lastAabbVer=e._aabbVer}set overrideCalculateTransform(e){this._viewMatDirty=!0,this._overrideCalculateTransform=e}get viewMatDirty(){return this._viewMatDirty||this._lastAabbVer!==this._node._aabbVer}get viewMat(){return this.viewMatDirty&&this.updateViewMat(),this._viewMat}get viewInvMat(){return this.viewMatDirty&&this.updateViewMat(),this._viewInvMat}get projMat(){return this._projMatDirty&&this.updateProjMat(),this._projMat}get projInvMat(){return this._projMatDirty&&this.updateProjMat(),this._projInvMat}get viewProjMat(){return(this.viewMatDirty||this._projMatDirty||this._viewProjMatDirty)&&(this._viewProjMat.mul2(this.projMat,this.viewMat),this._invViewProjMat.copy(this._viewProjMat).invert(),this._viewProjMatDirty=!1),this._viewProjMat}get invViewProjMat(){return(this.viewMatDirty||this._projMatDirty||this._viewProjMatDirty)&&this._invViewProjMat.copy(this.viewProjMat).invert(),this._invViewProjMat}get frustum(){return(this._frustumDirty||this.viewMatDirty||this._projMatDirty)&&(this._frustum.update(this.projMat,this.viewMat),this._frustumDirty=!1),this._frustum}get aspectRatio(){return this._aspect}set aspectRatio(e){this._aspect!==e&&(this._aspect=e,this._projMatDirty=!0)}get projection(){return this._projection}set projection(e){this._projection!==e&&(this._projection=e,this._projMatDirty=!0)}get nearClip(){return this._nearClip}set nearClip(e){this._nearClip!==e&&(this._nearClip=e,this._projMatDirty=!0)}get farClip(){return this._farClip}set farClip(e){this._farClip!==e&&(this._farClip=e,this._projMatDirty=!0)}calculateCustomFarClip(e){return 0===e?this.frustum.planes[4][3]:this.frustum.planes[4][3]-this.farClip+e}get fov(){return this._fov}set fov(e){this._fov!==e&&(this._fov=e,this._projMatDirty=!0)}get orthoHeight(){return this._orthoHeight}set orthoHeight(e){this._orthoHeight!==e&&(this._orthoHeight=e,this._projMatDirty=!0)}get clearColor(){return this._clearOptions.color}set clearColor(e){this._clearOptions.color[0]=e[0],this._clearOptions.color[1]=e[1],this._clearOptions.color[2]=e[2],this._clearOptions.color[3]=e[3]}get clearDepth(){return this._clearOptions.depth}set clearDepth(e){this._clearOptions.depth=e}get clearSkybox(){return 0!=(this._clearOptions.flags&s.c.CLEARFLAG_USE_SKYBOX)}set clearSkybox(e){e?this._clearOptions.flags|=s.c.CLEARFLAG_USE_SKYBOX:this._clearOptions.flags&=~s.c.CLEARFLAG_USE_SKYBOX}get clearStencil(){return this._clearOptions.stencil}set clearStencil(e){this._clearOptions.stencil=e}get clearFlags(){return this._clearOptions.flags}set clearFlags(e){this._clearOptions.flags=e}get worldToCameraMat(){return this._node.worldTransformInverse.clone()}get cameraToWorldMat(){return this._node.worldTransform.clone()}set usePhysicalProperties(e){this._usePhysicalProperties!==e&&(this._usePhysicalProperties=e,this._projMatDirty=!0)}get usePhysicalProperties(){return this._usePhysicalProperties}set focalLength(e){this._focalLength!==e&&(this._focalLength=e,this._usePhysicalProperties&&(this._projMatDirty=!0))}get focalLength(){return this._focalLength}set sensorSize(e){this._sensorSize!==e&&(this._sensorSize=e,this._usePhysicalProperties&&(this._projMatDirty=!0))}get sensorSize(){return this._sensorSize}set lensShift(e){this._lensShift!==e&&(this._lensShift=e,this._usePhysicalProperties&&(this._projMatDirty=!0))}get lensShift(){return this._lensShift}set gateFit(e){this._gateFit!==e&&(this._gateFit=e,this._usePhysicalProperties&&(this._projMatDirty=!0))}get gateFit(){return this._gateFit}}d.calculateProjectionMatrixFromPhysicalProperties_Unity=(e,t,n,i,r,a,o,l)=>{const c=o*n.y/n.x,u=i.clone();let h=o,m=0,g=l;1===c?g=s.c.GATE_FIT_NONE:l===s.c.GATE_FIT_FILL&&c>1||l===s.c.GATE_FIT_OVERSCAN&&c<1?g=s.c.GATE_FIT_HORIZONTAL:(l===s.c.GATE_FIT_FILL&&c<1||l===s.c.GATE_FIT_OVERSCAN&&c>1)&&(g=s.c.GATE_FIT_VERTICAL),g===s.c.GATE_FIT_HORIZONTAL?(m=d.focalLengthToFieldOfView(t,n.x/o),u.y*=c):g===s.c.GATE_FIT_VERTICAL?(m=d.focalLengthToFieldOfView(t,n.y),u.x*=1/c):(m=d.focalLengthToFieldOfView(t,n.y),h=n.x/n.y),e.setPerspective(m,h,r,a),e.data[8]=2*u.x,e.data[9]=2*u.y},d.calculateProjectionMatrixFromPhysicalProperties=(e,t,n,i,r,s,a)=>d.calculateProjectionMatrixFromPhysicalProperties_Unity(e.v,t,n,i,r,s,a.aspect,a.mode),d.focalLengthToFieldOfView=(e,t)=>2*i.k*Math.atan(.5*t/e),d.fieldOfViewToFocalLength=(e,t)=>.5*t/Math.tan(i.k*e*.5)},(e,t,n)=>{n.d(t,{a:()=>s,b:()=>r,c:()=>i});class i{constructor(e){this.id=e,this.flags=r.Dynamic|r.InvalidBatchId|r.Dirty,this.instances=[],this.vertexBuffer=null,this.indexBuffer=null,this.primitive=null,this.matrices=null}}const r={None:0,Dynamic:1,InvalidBatchId:2,Dirty:4},s="batching_matrices[0]"},(e,t,n)=>{n.d(t,{a:()=>h});var i=n(21),r=n(4);let s,a;const o={lower:null,upper:null},l={lower:null,upper:null};class c{constructor(e,t){this.time=e,this.color=t}}class u{constructor(e,t){this.time=e,this.alpha=t}}class h{constructor(e,t,n){e=e||[],t=t||[],this._colorKeys="object"!=typeof e[0]?this.formatColorKeys(e):e,this._alphaKeys="object"!=typeof t[0]?this.formatAlphaKeys(t):t,this._mode=n||0}sampleInplace(e,t){if(this.findExtremeColors(e,o),this.findExtremeAlphaValues(e,l),o.lower===o.upper&&l.lower===l.upper)return t.copy(o.lower.color),void(t.a=l.lower.alpha);switch(this._mode){case 1:return void(o.lower.time===e?(t.copy(o.lower.color),t.a=l.lower.alpha):(t.copy(o.upper.color),t.a=l.upper.alpha));case 0:{const n=(e-o.lower.time)/(o.upper.time-o.lower.time),i=(e-l.lower.time)/(l.upper.time-l.lower.time);return void this.lerpColorInPlace(o.lower.color,o.upper.color,l.lower.alpha,l.upper.alpha,n,i,t)}default:UnityEngine.Debug.LogError$1("Gradient mode: "+this._mode+" Not supported")}}evaluate(e){const t=new i.a;return this.sampleInplace(e,t),t}evaluateRef(e,t){return this.sampleInplace(e,t),t}findExtremeColors(e,t){s=a=this._colorKeys[0];for(let t=0;t<this._colorKeys.length;t++){if(!(this._colorKeys[t].time<e)){a=this._colorKeys[t];break}s=a=this._colorKeys[t]}t.lower=s,t.upper=a}findExtremeAlphaValues(e,t){s=a=this._alphaKeys[0];for(let t=0;t<this._alphaKeys.length;t++){if(!(this._alphaKeys[t].time<e)){a=this._alphaKeys[t];break}s=a=this._alphaKeys[t]}t.lower=s,t.upper=a}lerpColorInPlace(e,t,n,i,s,a,o){o.r=(0,r.g)(e.r,t.r,s),o.g=(0,r.g)(e.g,t.g,s),o.b=(0,r.g)(e.b,t.b,s),o.a=(0,r.g)(n,i,a)}formatColorKeys(e){const t=[];for(let n=0;n<e.length;n+=5){const r=e[n],s=new i.a(e[n+1],e[n+2],e[n+3],e[n+4]);t.push(new c(r,s))}return t}formatAlphaKeys(e){const t=[];for(let n=0;n<e.length;n+=2){const i=e[n],r=e[n+1];t.push(new u(i,r))}return t}setKeys(e,t){this._colorKeys=("object"!=typeof e[0]?this.formatColorKeys(e):e)||[],this._alphaKeys=("object"!=typeof t[0]?this.formatAlphaKeys(t):t)||[]}setKey(e,t){for(let t=0;t<this._colorKeys.length;t++)if(this._colorKeys[t].time===e.time){this._colorKeys[t]=e,e=null;break}e&&this._colorKeys.push(e);for(let e=0;e<this._alphaKeys.length;e++)if(this._alphaKeys[e].time===t.time){this._alphaKeys[e]=t,t=null;break}t&&this._alphaKeys.push(t)}get mode(){return this._mode}set mode(e){this._mode=e}get alphaKeys(){return this._alphaKeys}set alphaKeys(e){this._alphaKeys=e}get colorKeys(){return this._colorKeys}set colorKeys(e){this._colorKeys=e}set m_NumColorKeys(e){this._colorKeys.length=e;for(let e=0;e<this._colorKeys.length;e++)this._colorKeys[e]||(this._colorKeys[e]=new c(0,new i.a(1,1,1,1)))}set m_NumAlphaKeys(e){this._alphaKeys.length=e;for(let e=0;e<this._alphaKeys.length;e++)this._alphaKeys[e]||(this._alphaKeys[e]=new u(0,1))}setKeyInternal(e,t){this._colorKeys.length>e&&(this._colorKeys[e].color.copy(t),this._colorKeys[e].color.a=1),this._alphaKeys.length>e&&(this._alphaKeys[e].alpha=t.a)}getKey(e){const t=new i.a(1,1,1,1);return this._colorKeys.length>e&&t.copy(this._colorKeys[e].color),this._alphaKeys.length>e&&(t.a=this._alphaKeys[e].alpha),t}setATime(e,t){this._alphaKeys.length>e&&(this._alphaKeys[e].time=t)}setCTime(e,t){this._colorKeys.length>e&&(this._colorKeys[e].time=t)}get key0(){return this.getKey(0)}set key0(e){this.setKeyInternal(0,e)}set atime0(e){this.setATime(0,e)}set ctime0(e){this.setCTime(0,e)}get key1(){return this.getKey(1)}set key1(e){this.setKeyInternal(1,e)}set atime1(e){this.setATime(1,e)}set ctime1(e){this.setCTime(1,e)}get key2(){return this.getKey(2)}set key2(e){this.setKeyInternal(2,e)}set atime2(e){this.setATime(2,e)}set ctime2(e){this.setCTime(2,e)}get key3(){return this.getKey(3)}set key3(e){this.setKeyInternal(3,e)}set atime3(e){this.setATime(3,e)}set ctime3(e){this.setCTime(3,e)}get key4(){return this.getKey(4)}set key4(e){this.setKeyInternal(4,e)}set atime4(e){this.setATime(4,e)}set ctime4(e){this.setCTime(4,e)}get key5(){return this.getKey(5)}set key5(e){this.setKeyInternal(5,e)}set atime5(e){this.setATime(5,e)}set ctime5(e){this.setCTime(5,e)}get key6(){return this.getKey(6)}set key6(e){this.setKeyInternal(6,e)}set atime6(e){this.setATime(6,e)}set ctime6(e){this.setCTime(6,e)}get key7(){return this.getKey(7)}set key7(e){this.setKeyInternal(7,e)}set atime7(e){this.setATime(7,e)}set ctime7(e){this.setCTime(7,e)}}},(e,t,n)=>{n.d(t,{a:()=>a});const i=[],r=new class{constructor(){this.logType="runtime",this.buildID=Deserializers.buildID,this.sessionID=this.uuidv4(),this.uniqueID="",this.userAgent=window.navigator.userAgent,this.logEvent="",this.logCount=0,this.logs=[]}uuidv4(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(e=>(+e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+e/4).toString(16)))}addToGroup(e,t,n,r){if(0===r)return;if("**Exception:** "===e)return;if(i.includes(e))return;const s=this.uuidv4(),a=window.screen.width,o=window.screen.height,l=this.logs.length;this.logs.push({logID:s,order:l,description:e,details:t,timestamp:n,severity:r,screenWidth:a,screenHeight:o}),i.push(e),this.logs.length<40||this.sendToUnity("logcapacity")}sendToUnity(e){if(0===this.logs.length)return;this.logEvent=e,this.logCount=this.logs.length,this.uniqueID=this.uuidv4();const t=new Headers;t.append("Content-Type","application/json"),fetch(window.location.origin+"/runtime/diagnostics",{method:"POST",body:JSON.stringify(this),headers:t,keepalive:!0}),this.logs=[],this.logEvent=""}};window.setTimeout((()=>{r.sendToUnity("timeout")}),1e4),window.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&r.sendToUnity("visibilitychange")}),!1);class s{}s._logs=[],s._lastId=0,s.log=(e,t={},n=0,i=0,r)=>{},s.info=(e,t={},n=1,i)=>{s.log(e,t,0,n,i)},s.warn=(e,t={},n=1,i)=>{s.log(e,t,1,n,i)},s.error=(e,t={},n=1,i)=>{s.log(e,t,2,n,i)},s.exception=(e,t={},n=1)=>{s.log("**Exception:** "+e.message,t,2,n,e.stack)},s.assert=(e,t,n={},i=1,r)=>{e||s.log("**Assertion failed:** "+t,n,2,i,r)};const a={Console:s}},(e,t,n)=>{n.d(t,{a:()=>r}),n(13);class i{constructor(){this.reset()}get id(){return[this.batchedInstances,this.nonBatchedInstances,this.dirtyBatchGroups,this.dynamicBatchGroups,this.untouchedBatchGroups,this.minPossibleInstancesPerBatch,this.maxPossibleInstancesPerBatch,this.minInstancesPerBatch,this.maxInstancesPerBatch].join(",")}reset(){this.batchedInstances=0,this.nonBatchedInstances=0,this.dirtyBatchGroups=0,this.dynamicBatchGroups=0,this.untouchedBatchGroups=0,this.minPossibleInstancesPerBatch=Number.MAX_SAFE_INTEGER,this.maxPossibleInstancesPerBatch=Number.MIN_SAFE_INTEGER,this.minInstancesPerBatch=Number.MAX_SAFE_INTEGER,this.maxInstancesPerBatch=Number.MIN_SAFE_INTEGER}}class r{constructor(){this.data=new i,this.set=new Set}recordBatchedInstances(e){this.data.batchedInstances+=e}recordNonBatchedInstance(){this.data.nonBatchedInstances+=1}recordDirtyBatchGroup(){this.data.dirtyBatchGroups+=1}recordDynamicBatchGroup(){this.data.dynamicBatchGroups+=1}recordUntouchedBatchGroup(){this.data.untouchedBatchGroups+=1}recordPossibleInstancesPerBatch(e){this.data.minPossibleInstancesPerBatch=Math.min(this.data.minPossibleInstancesPerBatch,e),this.data.maxPossibleInstancesPerBatch=Math.max(this.data.maxPossibleInstancesPerBatch,e)}recordInstancesPerBatch(e){this.data.minInstancesPerBatch=Math.min(this.data.minInstancesPerBatch,e),this.data.maxInstancesPerBatch=Math.max(this.data.maxInstancesPerBatch,e)}markFrameEnd(){}sendToUnity(e){const t=new Headers;t.append("Content-Type","application/json"),fetch(window.location.origin+"/runtime/batching",{method:"POST",body:JSON.stringify(e),headers:t,keepalive:!0})}}r.instance=new r},(e,t,n)=>{n.d(t,{a:()=>d});var i=n(2),r=n(0);let s=3;const a=[i.c.STENCILOP_KEEP,i.c.STENCILOP_ZERO,i.c.STENCILOP_REPLACE,i.c.STENCILOP_INCREMENT,i.c.STENCILOP_INCREMENT,i.c.STENCILOP_DECREMENT,i.c.STENCILOP_INVERT,i.c.STENCILOP_INCREMENTWRAP,i.c.STENCILOP_DECREMENTWRAP],o=[i.c.CULLFACE_NONE,i.c.CULLFACE_FRONT,i.c.CULLFACE_BACK],l=[i.c.BLENDMODE_ZERO,i.c.BLENDMODE_ONE,i.c.BLENDMODE_DST_COLOR,i.c.BLENDMODE_SRC_COLOR,i.c.BLENDMODE_ONE_MINUS_DST_COLOR,i.c.BLENDMODE_SRC_ALPHA,i.c.BLENDMODE_ONE_MINUS_SRC_COLOR,i.c.BLENDMODE_DST_ALPHA,i.c.BLENDMODE_ONE_MINUS_DST_ALPHA,i.c.BLENDMODE_SRC_ALPHA_SATURATE,i.c.BLENDMODE_ONE_MINUS_SRC_ALPHA],c=function(e,t){return t._priority-e._priority},u=new r.m,h=[],d={opacityMapChannelIDs:{r:1,g:2,b:3,a:4},getLightsData(e,t,n,a=!1){if(n.reset(),h.length=0,0===t.length)return;let o=-1;const l=e.node,d=1<<l.cullingLayer,m=l.getPosition(),g=e.aabb,$=g.getMax(),p=g.getMin(),y=($.x-p.x)*($.y-p.y)*($.z-p.z);s=UnityEngine.RenderSettings._pixelLightCount;for(let e=0;e<t.length;e++){const s=t[e];if(0==(s._cullingMask&d))continue;if(0==(s._mask&i.c.MASK_DYNAMIC))continue;const a=s._aabb.getMax(),l=s._aabb.getMin();let c=Math.max(0,Math.min($.x,a.x)-Math.max(p.x,l.x))*Math.max(0,Math.min($.y,a.y)-Math.max(p.y,l.y))*Math.max(0,Math.min($.z,a.z)-Math.max(p.z,l.z));if(0===y)c=s._aabb.intersects(g)?1:0;else if(c<=0&&s._type!==i.c.LIGHTTYPE_DIRECTIONAL)continue;if(s._type===i.c.LIGHTTYPE_DIRECTIONAL&&!s._cookie&&s._renderMode!==UnityEngine.LightRenderMode.ForceVertex){const e=n.mainLight;(null===e||e._luminance<s._luminance||e._luminance===s._luminance&&s._renderMode===UnityEngine.LightRenderMode.ForcePixel&&e._renderMode!==UnityEngine.LightRenderMode.ForcePixel)&&(n.mainLight=s)}if(s._effectiveLuminance=s._luminance,s._type!==i.c.LIGHTTYPE_DIRECTIONAL){u.sub2(s._position,m),s._directionToLight.copy(u);const e=u.length()/s.attenuationEnd;s._effectiveLuminance*=(0,r.o)(1/(1+25*e*e)*(0,r.o)(5*(1-e),0,1),0,1),s._range=e}h.push(s),s===n.mainLight&&(o=h.length-1),s._priority=c/(0===y?1:y),s._renderMode===UnityEngine.LightRenderMode.ForcePixel&&(s._priority+=1e4),s._renderMode===UnityEngine.LightRenderMode.Auto&&(s._priority+=100)}o>=0&&(h[o]=h[h.length-1],h.length-=1),h.sort(c);let f=0;for(f=0;f<h.length;f++){const e=h[f];if(n.pixelLights.length>=s)break;if(e._renderMode===UnityEngine.LightRenderMode.ForceVertex||a)break;n.pixelLights.push(e)}for(;f<h.length;f++){const e=h[f];if(!(e._effectiveLuminance<1e-4)){if(n.vertexLights.length>=4)break;e._type===i.c.LIGHTTYPE_DIRECTIONAL?n.otherLights.push(e):n.vertexLights.push(e)}}for(;f<h.length;f++)n.otherLights.push(h[f]);n.combineAllLights()},unityCompareFunctionToPlaycanvas:e=>e-1,unityStencilOpToPlaycanvas:e=>a[e],unityBlendModeToPlaycanvas:e=>l[e],unityCullModeToPlaycanvas:e=>o[e],unityBlendOpToPlaycanvas:e=>e<=UnityEngine.Rendering.BlendOp.Max?e:null}},(e,t,n)=>{n.d(t,{a:()=>s,b:()=>a,c:()=>r,d:()=>l,e:()=>o});var i=n(40);function r(e,t,n,r=new i.a){for(let i=t;i<t+n;i++){const t=e[i].mesh.vertexBuffer,n=new Uint8Array(t.storage),s=r.reserve(Uint8Array,n.length);r.uint8Array.set(n,s)}return r}function s(e,t,n,r=new i.a){let s=0;for(let i=t;i<t+n;i++){const t=e[i].mesh,n=new Uint16Array(t.indexBuffer[0].storage,0,t.primitive[0].count),a=r.reserve(Uint16Array,n.length);for(let e=0;e<n.length;e++)r.uint16Array[a+e]=n[e]+s;s+=t.vertexBuffer.numVertices}return r}function a(e,t,n,r=new i.a){for(let i=t;i<t+n;i++){const t=e[i];let n=t.node.getWorldTransform().data;t.parameters.localToWorldMatrix&&(n=t.parameters.localToWorldMatrix.data);const s=r.reserve(Float32Array,n.length);r.float32Array.set(n,s)}return r}function o(e,t,n,r=new i.a){for(let i=t;i<t+n;i++){const n=e[i].mesh.vertexBuffer,s=r.reserve(Float32Array,n.numVertices);r.float32Array.fill(i-t,s,s+n.numVertices)}return r}function l(e,t){let n=(e.vertexUniformsCount-t)/4|0;return n>200?n=200:n<1&&(n=0),n}},(e,t,n)=>{n.d(t,{a:()=>r});var i=n(4);class r{constructor(){this.byteCapacity=0,this.byteLength=0,this.createBuffers(this.byteCapacity)}get uint8ArrayLength(){return this.getLength(Uint8Array)}get uint16ArrayLength(){return this.getLength(Uint16Array)}get float32ArrayLength(){return this.getLength(Float32Array)}getLength(e){return this.byteLength/e.BYTES_PER_ELEMENT}reserve(e,t){const n=this.getLength(e),i=(n+t)*e.BYTES_PER_ELEMENT;return this.byteCapacity<i&&this.ensureByteCapacity(i),this.byteLength=this.byteLength<i?i:this.byteLength,n}clear(e=!1){e&&this.uint8Array.fill(0,0,this.uint8ArrayLength),this.byteLength=0}createBuffers(e){this.buffer=new ArrayBuffer(e),this.uint8Array=new Uint8Array(this.buffer),this.uint16Array=new Uint16Array(this.buffer),this.float32Array=new Float32Array(this.buffer)}ensureByteCapacity(e){if(this.byteCapacity=(0,i.h)(e),this.byteLength>0){const e=this.uint8Array.subarray(0,this.byteLength);this.createBuffers(this.byteCapacity),this.uint8Array.set(e)}else this.createBuffers(this.byteCapacity)}}},(e,t,n)=>{n.d(t,{a:()=>h,b:()=>d});var i=n(2),r=n(9),s=n(6),a=n(30),o=n(10);let l=null,c=null;const u={type:i.c.PRIMITIVE_TRIANGLES,base:0,count:6,indexed:!0};function h(e,t,n){if(null===l){const t=new r.a(e,[{semantic:i.c.SEMANTIC_POSITION,components:2,type:i.c.TYPE_FLOAT32}]);l=new s.a(e,t,4);const n=new a.a(l);n.element[i.c.SEMANTIC_POSITION].set(-1,-1),n.next(),n.element[i.c.SEMANTIC_POSITION].set(1,-1),n.next(),n.element[i.c.SEMANTIC_POSITION].set(-1,1),n.next(),n.element[i.c.SEMANTIC_POSITION].set(1,1),n.end()}if(null===c){c=new o.a(e,i.c.INDEXFORMAT_UINT8,6,i.c.BUFFER_STATIC);const t=new Uint8Array(c.lock());t[0]=0,t[1]=1,t[2]=2,t[3]=2,t[4]=1,t[5]=3,c.unlock()}d(e,t,l,c,u,n)}function d(e,t,n,r,s,a){const o=e.renderTarget;e.setRenderTarget(t),e.updateBegin();const l=t?t.width:e.width,c=t?t.height:e.height,u=l,h=c;e.setViewport(0,0,l,c),e.setScissor(0,0,u,h);const d=e.getDepthTest(),m=e.getDepthWrite(),g=e.getCullMode();e.setDepthTest(!1),e.setDepthWrite(!1),e.setCullMode(i.c.CULLFACE_NONE),e.setBlending(!1),e.setVertexBuffer(n,0),e.setIndexBuffer(r),e.setShader(a),e.draw(s,null,{}),e.setDepthTest(d),e.setDepthWrite(m),e.setCullMode(g),e.updateEnd(),e.setRenderTarget(o),e.updateBegin()}},(e,t,n)=>{n.d(t,{a:()=>i});class i{constructor(e){this.options=e,this._rigidbodies=[],this._fauxBodies={},this._colliders=[],this._constraints=[],this._isSimulating=!1,this._world=null,this.setup()}enableRigidbody(e){this._rigidbodies.includes(e)||(this.linkBodyAndBodyComponent(e.body,e),this.addRigidbody(e.body),this._rigidbodies.push(e),this.reattachCollidersInChildren(e.entity))}disableRigidbody(e){const t=this._rigidbodies,n=t.indexOf(e);n<0||(this.removeRigidbody(e.body),this.unlinkBodyAndBodyComponent(e.body,e),t[n]=t[t.length-1],t.pop(),this.reattachCollidersInChildren(e.entity))}enableCollider(e){throw Error("Not implemented")}disableCollider(e){throw Error("Not implemented")}onFixedUpdate(e){this._isSimulating=!0,this.onBeforeSimulation(),this.onSimulationStep(e),this.onAfterSimulation(),this._isSimulating=!1}onBeforeSimulation(){const e=this._rigidbodies;e.sort(this.compareBodyDepths);for(let t=0;t<e.length;t++)this.preSimulationSynchronization(e[t],i.PreSyncStages.TransformToPhysics);for(let t=0;t<e.length;t++)this.preSimulationSynchronization(e[t],i.PreSyncStages.PhysicsToTransform);for(const e in this._fauxBodies)this.preSimulationSynchronization(this._fauxBodies[e],i.PreSyncStages.TransformToPhysics);for(let e=0;e<this._colliders.length;e++)this.preSimulationSynchronizationForCollider(this._colliders[e])}onAfterSimulation(){const e=this._rigidbodies;for(let t=0;t<e.length;t++){const n=e[t];this.postSimulationSynchronization(n);const i=n._entity;n._worldTransformVersion=i.aabbVersion}const t=this._colliders;for(let e=0;e<t.length;e++){const n=t[e],i=n._entity;n._worldTransformVersion=i.aabbVersion}this.handleContacts()}compareBodyDepths(e,t){return e._entity.graphDepth-t._entity.graphDepth}dispatchContact(e,t,n){return e.sendPhysicsEvent(t,n)}entityHasEventListeners(e,t){return!!e._magicMethods[t]&&0!==e._magicMethods[t].length}getCollisionMatrix(){throw Error("Not implemented")}setIgnoreCollisionBetweenLayers(e,t,n){const i=this.getCollisionMatrix(),r=i[e]||0,s=i[t]||0;n?(i[e]=r|1<<t,i[t]=s|1<<e):(i[e]=r&~(1<<t),i[t]=s&~(1<<e))}reattachCollidersInChildren(e,t=!1){if(!e._enabledInHierarchy)return;const n=this.getAttachedColliders(e);for(let t=0;t<n.length;t++){const i=n[t],r=i.body?this.getBodyComponentForBody(i.body):null;!i.enabled||!i.body||r&&r.entity===e||(this.disableCollider(i),this.enableCollider(i))}const i=e._children;for(let e=0,n=i.length;e<n;e++){const n=i[e];this.getAttachedRigidbodyComponent(n)&&!t||this.reattachCollidersInChildren(n)}}syncHierarchyRecursive(e){this.reattachCollidersInChildren(e,!0)}syncHierarchy(e){if(e._enabledInHierarchy){if(this.getAttachedRigidbodyComponent(e))return;this.reattachCollidersInChildren(e)}}syncTransformsInChildren(e){if(!e._enabledInHierarchy)return;const t=this.getAttachedRigidbodyComponent(e);t&&this.preSimulationSynchronization(t,i.PreSyncStages.TransformToPhysics);const n=this._fauxBodies[e._guid];n&&this.preSimulationSynchronization(n,i.PreSyncStages.TransformToPhysics);const r=this.getAttachedColliders(e);for(let e=0;e<r.length;e++){const t=r[e];t.enabled&&t.body&&this.preSimulationSynchronizationForCollider(t)}const s=e._children;for(let e=0,t=s.length;e<t;e++)this.syncTransformsInChildren(s[e])}syncTransforms(e){this._isSimulating||this.syncTransformsInChildren(e)}setup(){throw Error("Not Implemented")}onSimulationStep(e){throw Error("Not Implemented")}getAttachedColliders(e){throw Error("Not Implemented")}getAttachedRigidbodyComponent(e){throw Error("Not Implemented")}attachFauxRigidbody(e){throw Error("Not Implemented")}addRigidbody(e){throw Error("Not Implemented")}removeRigidbody(e){throw Error("Not Implemented")}addCollider(e,t){throw Error("Not Implemented")}removeCollider(e,t){throw Error("Not Implemented")}handleContacts(){throw Error("Not Implemented")}addConstraint(e){throw Error("Not Implemented")}removeConstraint(e){throw Error("Not Implemented")}preSimulationSynchronization(e,t){throw Error("Not Implemented")}preSimulationSynchronizationForCollider(e){throw Error("Not implemented")}postSimulationSynchronization(e){throw Error("Not Implemented")}getBodyComponentForBody(e){throw Error("Not implemented")}linkBodyAndBodyComponent(e,t){throw Error("Not implemented")}unlinkBodyAndBodyComponent(e,t){throw Error("Not implemented")}getColliderComponentForCollider(e){throw Error("Not implemented")}linkColliderAndColliderComponent(e,t){throw Error("Not implemented")}unlinkColliderAndColliderComponent(e,t){throw Error("Not implemented")}getJointComponentForJoint(e){throw Error("Not implemented")}linkJointAndJointComponent(e,t){throw Error("Not implemented")}unlinkJointAndJointComponent(e,t){throw Error("Not implemented")}}i.PreSyncStages={TransformToPhysics:1,PhysicsToTransform:2},pc.BasePhysicsAdapter=i},(e,t,n)=>{n.d(t,{a:()=>c,b:()=>o});var i=n(2),r=n(0);const s=(e,t)=>e%t||0;class a{constructor(e){this.events=new i.a(this),this._sound=null,this._volume=1,this._suspended=!1,this._startTime=0,this._duration=0,this._pitch=1,this._loop=!1,this._sound=null,this._state=2,this._startedAt=0,this._startOffset=null,this._currentTime=0,this._currentOffset=0,this._manager=e,this.gain=null,this._inputNode=null,this._connectorNode=null,this._initializeNodes(),this._endedHandler=this._onEnded.bind(this),this.source=null}_initializeNodes(){this.gain=this._manager.context.createGain(),this._inputNode=this.gain,this._connectorNode=this.gain,this._connectorNode.connect(this._manager.context.destination)}_addAudioListeners(){this._manager.events.on("volumechange",this._onManagerVolumeChange,this),this._manager.events.on("suspend",this._onManagerSuspend,this),this._manager.events.on("resume",this._onManagerResume,this)}playOneShot(e,t){if(!e.handle)return;this.volume=t;const n=this._createSource(e.handle.buffer);this.source.playbackRate.value=this.pitch,n&&(this._addAudioListeners(),n.start(0))}play(){if(1===this._state)return this.resume();if("running"!==this._manager.contextState&&this._manager.requestResume(),2!==this._state&&this.stop(),!this.source&&!this._createSource())return!1;let e=s(this._startOffset,this.duration);return e=s(this._startTime+e,this._sound.duration),this._addAudioListeners(),this._duration?this.source.start(0,e,this._duration):this.source.start(0,e),this._startedAt=this._manager.contextCurrentTime,this._currentTime=0,this._currentOffset=e,this._state=0,this.volume=this._volume,this.loop=this._loop,this.pitch=this._pitch,this._manager.suspended&&this._onManagerSuspend(),!0}pause(){return!(0!==this._state||!this.source||(this._updateCurrentTime(),this.terminateSource(),this._startOffset=null,this._state=1,0))}terminateSource(){this.source&&(this.source.onended=null,this.source.stop(0),this.source=null)}resume(e=!1){if(1!==this._state||this._manager.suspended)return!1;this.source||this._createSource();let t=e?UnityEngine.Time.unscaledTime:this.currentTime;return null!==this._startOffset&&(t=s(this._startOffset,this.duration),t=s(this._startTime+t,this._sound.duration),this._startOffset=null),this._duration?this.source.start(0,t,this._duration):this.source.start(0,t),this._state=0,this._startedAt=this._manager.contextCurrentTime,this._currentOffset=t,this.volume=this._volume,this.loop=this._loop,this.pitch=this._pitch,!0}stop(){return 2!==this._state&&(this._manager.events.off("volumechange",this._onManagerVolumeChange),this._manager.events.off("suspend",this._onManagerSuspend),this._manager.events.off("resume",this._onManagerResume),this._startedAt=0,this._currentTime=0,this._currentOffset=0,this.terminateSource(),this._state=2,!0)}_createSource(e=null){if(!this._sound&&!e)return null;const t=this._manager.context;return(e||this._sound.buffer)&&(this.source=t.createBufferSource(),this.source.buffer=e||this._sound.buffer,this.source.connect(this._inputNode),this.source.onended=this._endedHandler,this.source.loopStart=s(this._startTime,this.source.buffer.duration),this._duration&&(this.source.loopEnd=Math.max(this.source.loopStart,s(this._startTime+this._duration,this.source.buffer.duration)))),this.source}_updateCurrentTime(){this._currentTime=s((this._manager.contextCurrentTime-this._startedAt)*this._pitch+this._currentOffset,this.duration)}get volume(){return this._volume}set volume(e){e=(0,r.o)(e,0,1),this._volume=e,this.gain&&(this.gain.gain.value=e*this._manager.volume)}_onEnded(){this.sound&&this.sound.buffer&&this.sound.buffer.duration>this._currentTime&&1===this._state||(this.events.fire("end"),this.stop())}_onManagerVolumeChange(){this.volume=this._volume}_onManagerSuspend(){0!==this._state||this._suspended||(this._suspended=!0,this.pause())}_onManagerResume(e){this._suspended&&(this._suspended=!1,this.resume(e))}get duration(){return this._sound?this._duration?s(this._duration,this._sound.duration):this._sound.duration:0}set duration(e){this._duration=Math.max(0,Number(e)||0);const t=0===this._state;this.stop(),t&&this.play()}get isPlaying(){return 0===this._state}get isPaused(){return 1===this._state}get isStopped(){return 2===this._state}get isSuspended(){return this._suspended}get pitch(){return this._pitch}set pitch(e){this._currentOffset=this.currentTime,this._startedAt=this._manager.contextCurrentTime,this._pitch=Math.max(Number(e)||0,.01),this.source&&(this.source.playbackRate.value=this._pitch)}get loop(){return this._loop}set loop(e){this._loop=!!e,this.source&&(this.source.loop=this._loop)}get sound(){return this._sound}set sound(e){this._sound=e,2!==this._state?this.stop():this._createSource()}get currentTime(){return 1===this._state?this._currentTime:2!==this._state&&this.source?(this._updateCurrentTime(),this._currentTime):0}set currentTime(e){e<0||(0===this._state?(this.stop(),this._startOffset=e,this.play()):(this._startOffset=e,this._currentTime=e))}}class o{constructor(e){this.audio=null,this.buffer=null,this.name="",e instanceof Audio?this.audio=e:this.buffer=e}get duration(){let e=0;return this.buffer?e=this.buffer.duration:this.audio&&(e=this.audio.duration),e||0}}var l=n(1);class c extends l.k{constructor(e){super(),e=e||{},this._soundInstance=new a(l.a.getApplication()._audioManager),this._playOnAwake=void 0!==e.playOnAwake&&e.playOnAwake,this.loop=void 0!==e.loop&&e.loop,this.sound=e.sound||null,this.volume=void 0===e.volume?1:e.volume,this.pitch=void 0===e.pitch?1:e.pitch,this.time=0,this.code=UnityEngine.Object.FromHandle(UnityEngine.AudioSource,this)}get playOnAwake(){return this._playOnAwake}set playOnAwake(e){this._playOnAwake=e}get loop(){return this._soundInstance.loop}set loop(e){this._soundInstance.loop=e}get time(){return this._soundInstance.currentTime}set time(e){this._soundInstance.currentTime=e}get volume(){return this._soundInstance.volume}set volume(e){this._soundInstance.volume=e}get pitch(){return this._soundInstance.pitch}set pitch(e){this._soundInstance.pitch=e}get sound(){return this._soundInstance.sound}set sound(e){this._soundInstance.sound=e}get isPlaying(){return this._soundInstance.isPlaying}onEnable(){return!!super.onEnable()&&(this._playOnAwake&&this.play(),!0)}onDisable(){return!!super.onDisable()&&(this._soundInstance.isPlaying&&this._soundInstance.stop(),!0)}play(){this._soundInstance.sound&&this._soundInstance.play()}pause(){this._soundInstance.sound&&this._soundInstance.pause()}resume(){this._soundInstance.sound&&this._soundInstance.resume()}stop(){this._soundInstance.sound&&this._soundInstance.stop()}}class u extends l.j{constructor(e){super(e),this.id="audiosourceunity"}}pc.SoundManager=class{constructor(e){this.context=null,this.context="undefined"!=typeof AudioContext?new AudioContext:new window.webkitAudioContext;const t=this.context;if(this.addInteractionListeners(),i.e.ios){const n=function(){const i=t.createBuffer(1,1,44100),r=t.createBufferSource();r.buffer=i,r.connect(t.destination),r.start(0),r.disconnect(),e.removeEventListener("touchstart",n)};e.addEventListener("touchstart",n)}this._volume=1,this._masterVolume=1,this.suspended="suspended"===this.context.state,this.resumeFromAwake=!0,this.events=new i.a(this)}addInteractionListeners(){this.resumeContext=()=>{this.context.resume(),this.suspended=!1,this.events.fire("resume",this.resumeFromAwake),this.resumeFromAwake=!1,window.removeEventListener("mousedown",this.resumeContext),window.removeEventListener("touchend",this.resumeContext)},window.addEventListener("mousedown",this.resumeContext),window.addEventListener("touchend",this.resumeContext)}suspend(){this.suspended=!0,this.events.fire("suspend")}resume(){i.e.ios?this.addInteractionListeners():(this.suspended=!1,this.events.fire("resume",this.resumeFromAwake))}requestResume(){this.context.resume()}get contextState(){return this.context.state||"undefined"}get contextCurrentTime(){return this.context.currentTime}get volume(){return this._volume*this._masterVolume}set volume(e){e=(0,r.o)(e,0,1),this._volume=e,this.events.fire("volumechange",this.volume)}set masterVolume(e){e=(0,r.o)(e,0,1),this._masterVolume=e,this.events.fire("volumechange",this.volume)}},pc.SoundInstance=a,pc.Sound=o,pc.AudioSourceUnityComponent=c,pc.AudioSourceUnitySystem=u},()=>{const e=/at (.+)\(/,t=/(.+)@/;let n=null,i="";function r(e=i){console.error(e),window.pi.logEvent("luna:crashed",!1,{errorMessage:e})}function s(){n&&clearTimeout(n),n=setTimeout((()=>{i?r(i.trim()):s()}),5e3)}function a(e){let t=null;t="string"==typeof e?e:e instanceof Error?e.message+" "+o(e.stack):e.message+" "+o(e.errorStack.stack),i=t+"\n"+i,i=i.substring(0,1024)}function o(n){const i=n.split("\n"),r=[];for(const n of i){const[,i]=e.exec(n)||t.exec(n)||[];if(i&&r.push(i.trim()),r.length>=3)break}return`[${r.join(" / ")}]`}window.addEventListener("DOMContentLoaded",(()=>{s()})),["luna:build","luna:start","luna:starting","luna:started"].forEach((e=>{window.addEventListener(e,(()=>{s()}))})),window.addEventListener("luna:started",(()=>{const e=document.getElementById("application-canvas"),t=n=>{r("WebGL context lost: "+n.statusMessage),e.removeEventListener("webglcontextlost",t)};e.addEventListener("webglcontextlost",t,{once:!0}),pc.Application.getApplication().events.once("postrender",(()=>{n&&clearTimeout(n),n=null}))})),window.addEventListener("error",a),pc.crashDetector={reportError:a}},(e,t,n)=>{n.d(t,{a:()=>o,b:()=>u});var i=n(2);function r(e){return"string"==typeof e?e.toUpperCase().charCodeAt(0):e}const s={9:"Tab",13:"Enter",16:"Shift",17:"Control",18:"Alt",27:"Escape",37:"Left",38:"Up",39:"Right",40:"Down",46:"Delete",91:"Win"};class a{constructor(e,t){const n=e._getTargetCoords(t);this.x=NaN,this.y=NaN,n&&(this.x=n.x,this.y=n.y),this.wheel=t instanceof WheelEvent?-t.deltaY:0,this.dx=this.x-e._lastX,this.dy=this.y-e._lastY,this.button=i.c.MOUSEBUTTON_NONE,t instanceof MouseEvent&&("mousedown"===t.type||"mouseup"===t.type)&&(this.button=t.button),this.buttons=e._buttons.slice(0),this.element=t.target,this.ctrlKey=t.ctrlKey||!1,this.altKey=t.altKey||!1,this.shiftKey=t.shiftKey||!1,this.metaKey=t.metaKey||!1,this.event=t}}class o{constructor(e){this._lastX=0,this._lastY=0,this._buttons=[!1,!1,!1],this._lastbuttons=[!1,!1,!1],this._upHandler=this._handleUp.bind(this),this._downHandler=this._handleDown.bind(this),this._moveHandler=this._handleMove.bind(this),this._wheelHandler=this._handleWheel.bind(this),this._target=null,this._attached=!1,this.attach(e),this.events=new i.a(this)}_contextMenuHandler(e){e.preventDefault()}attach(e){this._target=e,this._attached||(this._attached=!0,window.addEventListener("mouseup",this._upHandler,!1),window.addEventListener("mousedown",this._downHandler,!1),window.addEventListener("mousemove",this._moveHandler,!1),window.addEventListener("wheel",this._wheelHandler,!1))}detach(){this._attached&&(this._attached=!1,this._target=null,window.removeEventListener("mouseup",this._upHandler),window.removeEventListener("mousedown",this._downHandler),window.removeEventListener("mousemove",this._moveHandler),window.removeEventListener("wheel",this._wheelHandler))}disableContextMenu(){this._target&&this._target.addEventListener("contextmenu",this._contextMenuHandler)}enableContextMenu(){this._target&&this._target.removeEventListener("contextmenu",this._contextMenuHandler)}update(){this._lastbuttons[0]=this._buttons[0],this._lastbuttons[1]=this._buttons[1],this._lastbuttons[2]=this._buttons[2]}isPressed(e){return this._buttons[e]}wasPressed(e){return this._buttons[e]&&!this._lastbuttons[e]}wasReleased(e){return!this._buttons[e]&&this._lastbuttons[e]}_handleUp(e){this._buttons[e.button]=!1;const t=new a(this,e);Number.isNaN(t.x)||this.events.fire(i.c.EVENT_MOUSEUP,t)}_handleDown(e){this._buttons[e.button]=!0;const t=new a(this,e);Number.isNaN(t.x)||this.events.fire(i.c.EVENT_MOUSEDOWN,t)}_handleMove(e){const t=new a(this,e);Number.isNaN(t.x)||(this.events.fire(i.c.EVENT_MOUSEMOVE,t),this._lastX=t.x,this._lastY=t.y)}_handleWheel(e){const t=new a(this,e);Number.isNaN(t.x)||this.events.fire(i.c.EVENT_MOUSEWHEEL,t)}_getTargetCoords(e){const t=this._target.getBoundingClientRect(),n=Math.floor(t.left),i=Math.floor(t.top);return e.clientX<n||e.clientX>=n+this._target.clientWidth||e.clientY<i||e.clientY>=i+this._target.clientHeight?null:{x:e.clientX-n,y:e.clientY-i}}}class l{constructor(e,t){const n=function(e,t){let n=0,i=0;for(;!(t instanceof HTMLElement);)t=t.parentNode;let r=t;do{n+=r.offsetLeft-r.scrollLeft,i+=r.offsetTop-r.scrollTop,r=r.offsetParent}while(r);return{x:e.pageX-n,y:e.pageY-i}}(e,t);this.id=e.identifier,this.x=n.x,this.y=n.y,this.target=t,this.touch=e}}class c{constructor(e,t){if(this.element=e.target||t,this.event=e,this.touches=[],this.changedTouches=[],e){let t,n=e.touches.length;for(t=0;t<n;t++)this.touches.push(new l(e.touches[t],this.element));for(n=e.changedTouches.length,t=0;t<n;t++)this.changedTouches.push(new l(e.changedTouches[t],this.element))}}getTouchById(e,t){let n;const i=t.length;for(n=0;n<i;n++)if(t[n].id===e)return t[n];return null}}class u{constructor(e){this._element=null,this._startHandler=this._handleTouchStart.bind(this),this._endHandler=this._handleTouchEnd.bind(this),this._moveHandler=this._handleTouchMove.bind(this),this._cancelHandler=this._handleTouchCancel.bind(this),this.attach(e),this.events=new i.a(this)}attach(e){this._element&&this.detach(),this._element=e,this._element.addEventListener("touchstart",this._startHandler,!1),this._element.addEventListener("touchend",this._endHandler,!1),this._element.addEventListener("touchmove",this._moveHandler,!1),this._element.addEventListener("touchcancel",this._cancelHandler,!1)}detach(){this._element&&(this._element.removeEventListener("touchstart",this._startHandler,!1),this._element.removeEventListener("touchend",this._endHandler,!1),this._element.removeEventListener("touchmove",this._moveHandler,!1),this._element.removeEventListener("touchcancel",this._cancelHandler,!1)),this._element=null}_handleTouchStart(e){this.events.fire("touchstart",new c(e))}_handleTouchEnd(e){this.events.fire("touchend",new c(e))}_handleTouchMove(e){e.preventDefault(),this.events.fire("touchmove",new c(e))}_handleTouchCancel(e){this.events.fire("touchcancel",new c(e))}}var h=n(14);const d={getOrientation(){switch(window.screen.orientation.type){case"portrait-primary":return h.a.PORTRAIT;case"portrait-secondary":return h.a.PORTRAIT_UPSIDE_DOWN;case"landscape-primary":return h.a.LANDSCAPE_LEFT;case"landscape-secondary":return h.a.LANDSCAPE_RIGHT;default:this.calculateOrientation()}return 0},calculateOrientation:()=>window.screen.width>window.screen.height?h.a.LANDSCAPE_LEFT:window.screen.height>window.screen.width?h.a.PORTRAIT:0};pc.Keyboard=class{constructor(e){this._element=null,this._keyDownHandler=this._handleKeyDown.bind(this),this._keyUpHandler=this._handleKeyUp.bind(this),this.events=new i.a(this),this._keymap={},this._lastmap={},e&&this.attach(e)}attach(e){this._element&&this.detach(),this._element=e,this._element.addEventListener("keydown",this._keyDownHandler,!1),this._element.addEventListener("keyup",this._keyUpHandler,!1)}detach(){this._element.removeEventListener("keydown",this._keyDownHandler),this._element.removeEventListener("keyup",this._keyUpHandler),this._element=null}toKeyIdentifier(e){e=r(e);const t=s[e.toString()];if(t)return t;let n=e.toString(16).toUpperCase();const i=n.length;for(let e=0;e<4-i;e++)n="0"+n;return"U+"+n}_handleKeyDown(e){const t=e.keyCode||e.charCode;if(void 0===t)return;const n=this.toKeyIdentifier(t);this._keymap[n]=!0}_handleKeyUp(e){const t=e.keyCode||e.charCode;if(void 0===t)return;const n=this.toKeyIdentifier(t);delete this._keymap[n]}update(){this._lastmap=Object.assign({},this._keymap)}isPressed(e){const t=r(e),n=this.toKeyIdentifier(t);return!!this._keymap[n]}wasPressed(e){const t=r(e),n=this.toKeyIdentifier(t);return!!this._keymap[n]&&!this._lastmap[n]}wasReleased(e){const t=r(e),n=this.toKeyIdentifier(t);return!this._keymap[n]&&!!this._lastmap[n]}anyKey(){return Object.keys(this._keymap).length>0}anyKeyDown(){for(const e in this._keymap)if(this._keymap.hasOwnProperty(e)&&!this._lastmap.hasOwnProperty(e))return!0;return!1}},pc.Mouse=o,pc.Touch=l,pc.TouchDevice=u,pc.TouchEvent=c,pc.DeviceOrientation=d},(e,t,n)=>{n.d(t,{a:()=>E});var i=n(0),r=n(2);const s=new i.j,a=new i.j,o=new i.i,l=new i.i,c=new i.m,u=new i.m,h=new i.m,d=new i.m,m={invRotation:new i.j,invScale:new i.m,invRotationMatrix:new i.i,invScaleMatrix:new i.i},g={tmpMatrix:new i.i},$={parentLocalRotation:new i.j,rotationMultiplier:new i.m},p={newLocalRotation:new i.j},y={invLocalRotation:new i.j,rotationMultiplier:new i.m},f={currentRSInverse:new i.i},_={newLocalRotation:new i.j},S={tempVector:new i.m},b={tmpVector:new i.m},C={tmpVector:new i.m,tmpMatrix:new i.i,desiredLocalScale:new i.m,desiredWorldPosition:new i.m};class E{constructor(e="Untitled"){this.name=e,this.tag=null,this._localPosition=new i.m(0,0,0),this._localRotation=new i.j(0,0,0,1),this._localScale=new i.m(1,1,1),this._localEulerAngles=new i.m(0,0,0),this._localTransform=new i.i,this._position=new i.m(0,0,0),this._rotation=new i.j(0,0,0,1),this._eulerAngles=new i.m(0,0,0),this._lossyScale=new i.m(1,1,1),this._worldTransform=new i.i,this._worldTransformInverse=new i.i,this._hijackedLocalPosition=new i.m,this._hijackedLocalScale=new i.m,this._hijackedLocalEulerAngles=new i.m,this._hijackedLocalRotation=new i.j,this._aabbVer=0,this._right=null,this._up=null,this._forward=null,this._static=!1,this._parent=null,this._children=[],this._graphDepth=0,this._cullingLayer=0,this.layerMask=0,this._activeSelf=!0,this._enabledInHierarchy=!1,this.hasChanged=!0,this._layoutElements=[],this._layoutControllers=[],this._layoutSelfControllers=[],this._dimensionListeners=[],this._canvasElements=[],this._canvasGroups=[],this._meshModifiers=[],this.isPrefab=!1,this._app=null,this.events=new r.a(this),this._unityComponents={rigidbody:[],collider:[],joint:[],rigidbody2D:[],collider2D:[],joint2D:[],uiBehaviour:[],monoBehaviour:[],animator:[],animation:[],particlesystem:[],particleSystemRenderer:[],reflectionprobe:[],videoPlayer:[],canvasRenderer:[],audiosourceunity:[],renderer:[],meshFilter:[],effector2D:[],sortingGroup:[],skybox:[]},this.c={},this.flags=0,this.scene=null}get fullname(){return this.parent?`${this.parent.fullname}/${this.name}`:this.name}get element(){return this.c.element}get camera(){return this.c.camera}get light(){return this.c.light}get screen(){return this.c.screen}removeOrReparent(e,t=!1){e?this.parent.removeChild(this):this.reparent(e)}destroy(){this.removeOrReparent(null)}getLossyScale(){return this.flags&E.Flags.LossyScaleDirty?(this.flags&=~E.Flags.LossyScaleDirty,s.copy(this.getRotation()),l.setTRS(i.m.ZERO,s.invert(),i.m.ONE),this.getWorldRotationAndScale(o),l.mul2(l,o),this._lossyScale.set(l.data[0],l.data[5],l.data[10]),this._lossyScale):this._lossyScale}_onInsertChild(e){e._parent=this,e.element&&(this.setupCanvasGroups(e),e.notifyCanvasGroupChanged(e)),e.notifyScreenHierarchyChanged(),this.updateHierarchyState(e),e._updateGraphDepth(),e.onParentChanged(),e.events.fire("insert",this);let t=e.parent;for(;t;)t.events.fire("insertRecursive",this),t=t.parent;if(!e.element)for(let t=0;t<e._children.length;t++){const n=e._children[t].element;n&&n._onInsert(e)}this.notifyTransformChildrenChanged(),e.notifyTransformParentChanged();const n=this._app.systems;n.physics.syncHierarchy(e),n.physics2D.syncHierarchy(e)}_onInsertChildOnLoad(e){if(e._parent=this,e.element){if(this.setupCanvasGroups(e),!e.isPrefab){const t=e._unityComponents.canvasRenderer[0];if(t){t.onCanvasGroupChanged();const n=e.screen?e.screen:pc.UIUtils.findParentScreen(e.parent);t.onScreenChanged(n)}}e.element._onInsert(this,!1)}this.updateHierarchyState(e)}updateHierarchyState(e){const t=e._activeSelf&&this.enabled;e._enabledInHierarchy!==t&&(e._enabledInHierarchy=t,e._notifyHierarchyStateChanged(e,t))}muteTransformModificationCallback(){this.flags|=E.Flags.TransformModificationCallbackMuted}unmuteTransformModificationCallback(){this.flags&=~E.Flags.TransformModificationCallbackMuted,this.flags&E.Flags.TransformModificationCallbackRequested&&(this._onModifyTransform(),this.flags&=~E.Flags.TransformModificationCallbackRequested)}_onModifyTransform(){if(this.flags&E.Flags.TransformModificationCallbackMuted)return void(this.flags|=E.Flags.TransformModificationCallbackRequested);if(!this._app)return;const e=this._app.systems;e.physics.syncTransforms(this),e.physics2D.syncTransforms(this)}lookAt(e,t){c.copy(e),u.copy(t),o.setLookAt(this.getPosition(),c,u),s.setFromMat4(o),this.setRotation(s)}translate(e,t,n){e instanceof i.m?c.copy(e):c.set(e,t,n),c.add(this.getPosition()),this.setPosition(c)}translateLocal(e,t,n){e instanceof i.m?c.copy(e):c.set(e,t,n),this.getLocalRotation().transformVector(c,c),c.add(this.getLocalPosition()),this.setLocalPosition(c)}rotate(e,t,n){if(e instanceof i.m?s.setFromEulerAngles_Unity(e.x,e.y,e.z):s.setFromEulerAngles_Unity(e,t,n),null===this._parent)a.mul2(s,this.getLocalRotation()),this.setLocalRotation(a);else{const e=this.getRotation(),t=this._parent.getRotation();a.copy(t).invert().mul2(a,s).mul2(s,e),this.setRotation(a)}}rotateLocal(e,t,n){e instanceof i.m?s.setFromEulerAngles_Unity(e.x,e.y,e.z):s.setFromEulerAngles_Unity(e,t,n),s.mul2(this.getLocalRotation(),s),this.setLocalRotation(s)}_isOddlyScaled(){const e=this.getWorldTransform().data,t=e[0],n=e[1],i=e[2],r=e[4],s=e[5],a=e[6],o=e[8],l=e[9],c=e[10];return t*(s*c-a*l)-r*(n*c-i*l)+o*(n*a-i*s)<0}_sync(){this.flags&E.Flags.HijackedByElementComponent?this._syncElementComponent():this._syncGraphNode()}_syncElementComponent(){const{tmpVector:e}=b;this.parent&&this.parent._sync();const t=this.element,n=t._dirtyRect,r=t._dirtyScreen;let s=this.element._lastSyncAABBVersion!==this.aabbVersion;if(!n&&!r&&!s)return;this.hasChanged=!0,this.flags&=~E.Flags.HijackedByElementComponent;const a=t._width,o=t._height;if(n||s){const n=t._findParentElement();if(n){const r=n.element;if(t._width=(t._anchors.z-t._anchors.x)*r._width+t._sizeDelta.x,t._height=(t._anchors.w-t._anchors.y)*r._height+t._sizeDelta.y,this._parent===n){const n=r._width*t._anchors.x,s=r._width*t._anchors.z,a=r._height*t._anchors.y,o=r._height*t._anchors.w;e.set((0,i.p)(n,s,t._pivot.x)+t._anchoredPosition.x,(0,i.p)(a,o,t._pivot.y)+t._anchoredPosition.y,0),this.setLocalPosition(e.x-r._pivotPoint.x,e.y-r._pivotPoint.y,this.getLocalPosition().z)}else this.setLocalPosition(t._anchoredPosition.x,t._anchoredPosition.y,this.getLocalPosition().z)}else t._width=t._sizeDelta.x,t._height=t._sizeDelta.y,this.setLocalPosition(t._anchoredPosition.x,t._anchoredPosition.y,this.getLocalPosition().z)}if(s=this.element._lastSyncAABBVersion!==this.aabbVersion,s||r||n){t._pivotPoint.set(t._width*t._pivot.x,t._height*t._pivot.y,0),this._tryResizeScreen();const e=t.cachedRect;e.m_XMin=-t._pivotPoint.x,e.m_YMin=-t._pivotPoint.y,e.m_Width=t._width,e.m_Height=t._height,e.m_XMax=e.m_XMin+e.m_Width,e.m_YMax=e.m_YMin+e.m_Height,t.events.fire("resize",t._width,t._height)}t._lastSyncAABBVersion=this.aabbVersion,t._dirtyRect=!1,t._dirtyScreen=!1,this.flags|=E.Flags.HijackedByElementComponent;const l=t._width!==a,c=t._height!==o;n||!l&&!c||t.triggerOnElementDimesionsChange(l,c)}_tryResizeScreen(){const e=this.element,{tmpMatrix:t,tmpVector:n,desiredLocalScale:s,desiredWorldPosition:a}=C,o=this.screen;if(!o||o._findParentScreen())return;const l=o.resolution;switch(o.screenType){case r.c.SCREEN_TYPE_SCREEN:{e._width=l.x/o.scale,e._height=l.y/o.scale,a.set(.5*l.x,.5*l.y,0),this.setPosition(a),n.set(o.scale,o.scale,o.scale),t.setTRS(i.m.ZERO,this.getRotation(),n),this.setWorldRotationAndScale(t);const r=this.getLocalPosition();e._anchoredPosition.set(r.x,r.y),e._pivotPoint.set(.5*e._width,.5*e._height,0);break}case r.c.SCREEN_TYPE_CAMERA:{const t=o.camera._component.entity;e._width=l.x/o.scale,e._height=l.y/o.scale,e._sizeDelta.copy(l),s.set(1,1,1),s.scale(o._planeHeight/e._height),this.isParentOf(t)||(n.set(0,0,o._screenDistance),t.transformPoint(n,n,!0),this.setPosition(n)),this.setRotation(t.getRotation()),this.setLocalScale(s);const i=this.getLocalPosition();e._anchoredPosition.set(i.x,i.y),e._pivotPoint.set(.5*e._width,.5*e._height,0);break}case r.c.SCREEN_TYPE_WORLD:e._width=e._sizeDelta.x,e._height=e._sizeDelta.y,this.setLocalPosition(e._anchoredPosition.x,e._anchoredPosition.y,this.getLocalPosition().z)}e._sizeDelta.set(e._width,e._height)}_syncGraphNode(){this.parent&&this.parent._sync()}findByNameImmediate(e){for(let t=0;t<this._children.length;t++){const n=this._children[t];if(n.name===e)return n}return null}findByNameEnabled(e){return e?this.findByNamesEnabledInternal(e.split("/"),0):null}findByNamesEnabledInternal(e,t){if(!this.enabled)return null;if(this.scene||this.name!==e[t])t=0;else{if(t===e.length-1)return this;t++}for(let n=0;n<this._children.length;n++){const i=this._children[n].findByNamesEnabledInternal(e,t);if(null!==i)return i}return null}getWorldRotationAndScale(e=new i.i){const{tmpMatrix:t}=g;return this.parent?(this.parent.getWorldRotationAndScale(e),t.setTRS(i.m.ZERO,this.getLocalRotation(),this.getLocalScale()),e.mul2(e,t)):e.setTRS(i.m.ZERO,this.getLocalRotation(),this.getLocalScale()),e}getWorldRotationAndScaleInverse(e=new i.i,t=null){const{invRotation:n,invRotationMatrix:r,invScale:s,invScaleMatrix:a}=m;if(n.copy(this.getLocalRotation()).invert(),r.setRotation(n),s.copy(t||this.getLocalScale()).invertSafe(),a.setScale(s.x,s.y,s.z),e.mul2(a,r),this.parent){const t=this.parent.getWorldRotationAndScaleInverse();e.mul2(e,t)}return e}setWorldRotationAndScale(e){const{currentRSInverse:t}=f;this.getWorldRotationAndScaleInverse(t,i.m.ONE),t.mul2(t,e),this.setLocalScale(t.data[0],t.data[5],t.data[10])}getLocalRotationAndScale(e=new i.i){return e.setTRS(i.m.ZERO,this.getLocalRotation(),this.getLocalScale()),e}setParent(e,t){if(t){const t=this.getPosition().clone(),n=this.getRotation().clone(),i=this.getWorldRotationAndScale();this.removeOrReparent(e,!0),this.muteTransformModificationCallback(),this.setPosition(t),this.setRotation(n),this.setWorldRotationAndScale(i),this.unmuteTransformModificationCallback()}else{const t=this.getLocalScale().clone(),n=this.getLocalPosition(),i=this.getLocalRotation().clone();this.removeOrReparent(e,!0),this.muteTransformModificationCallback(),this.setLocalScale(t),this.setLocalPosition(n),this.setLocalRotation(i),this.unmuteTransformModificationCallback()}if(this.element){const e=pc.UIUtils.findParentScreen(this);this.reparentElementRecursive(e)}}reparentElementRecursive(e){if(this.element){const t=this._unityComponents?this._unityComponents.canvasRenderer[0]:null;t&&t.reparentCanvas(e)}const t=this.children;for(let n=0;n<t.length;n++)t[n].reparentElementRecursive(e)}isParentOf(e){const t=e._graphDepth-this._graphDepth;if(t<=0||t>=e._graphDepth||null===e.parent)return!1;let n=e;for(let e=0;e<t;e++)n=n.parent;return n===this}isChildOf(e){return e.isParentOf(this)}_notifyHierarchyStateChanged(e,t){e._onHierarchyStateChanged(t);const n=e._children;for(let e=0,i=n.length;e<i;e++)n[e]._activeSelf&&this._notifyHierarchyStateChanged(n[e],t)}_elementDimesionsChange(){}_onHierarchyStateChanged(e){this._enabledInHierarchy=e}findByTag(e){return this._findByTag(e)}_findByTag(e){const t=[];for(let n=0;n<this._children.length;n++){const i=this._children[n];if(!i._enabledInHierarchy)continue;i.tag===e&&t.push(i);const r=i._findByTag(e);r.length&&t.push(...r)}return t}findByName(e){if(this.name===e)return this;for(let t=0;t<this._children.length;t++){const n=this._children[t].findByName(e);if(null!==n)return n}return null}getRoot(){return this.root}getParent(){return this._parent}parents(){const e=[];let t=this.parent;for(;t;)e.push(t),t=t.parent;return e}allChildren(e=[]){for(let t=0;t<this.children.length;t++)e.push(this.children[t]),this.children[t].allChildren(e);return e}getScene(){const e=this.parent;return e?e.scene?e.scene:e.getScene():null}isDescendantOf(e){let t=this._parent;for(;t;){if(t===e)return!0;t=t._parent}return!1}isAncestorOf(e){return e.isDescendantOf(this)}getChildren(){return this._children}getEulerAngles(){return this.flags&E.Flags.EulerAnglesDirty&&(this.getRotation().getEulerAngles_Unity(this._eulerAngles),this.flags&=~E.Flags.EulerAnglesDirty),this._eulerAngles}setEulerAngles(e,t,n){e instanceof i.m?s.setFromEulerAngles_Unity(e.x,e.y,e.z):s.setFromEulerAngles_Unity(e,t,n),this.setRotation(s)}getLocalEulerAngles(){return this.flags&E.Flags.LocalEulersAnglesDirty&&(this.getLocalRotation().getEulerAngles_Unity(this._localEulerAngles),this.flags&=~E.Flags.LocalEulersAnglesDirty),this._localEulerAngles}setLocalEulerAngles(e,t,n){const{newLocalRotation:r}=_;e instanceof i.m?r.setFromEulerAngles_Unity(e.x,e.y,e.z):r.setFromEulerAngles_Unity(e,t,n),this.setLocalRotation(r)}setLocalPositionGraphNodeNoDirty(e,t,n){this._localPosition.set(e,t,n)}setLocalRotationNoDirty(e,t,n,i){this._localRotation.set(e,t,n,i),this._localRotation.normalize()}setLocalScaleNoDirty(e,t,n){this._localScale.set(e,t,n)}getLocalPosition(){return this.flags&E.Flags.HijackedByElementComponent?this.getLocalPositionElementComponent():this.getLocalPositionGraphNode()}getLocalPositionGraphNode(){return this._localPosition}getLocalPositionElementComponent(){return this.element.getRect(),this.getLocalPositionGraphNode()}setLocalPosition(e,t,n){this.flags&E.Flags.HijackedByElementComponent?this.setLocalPositionElementComponent(e,t,n):this.setLocalPositionGraphNode(e,t,n)}setLocalPositionGraphNode(e,t,n){e instanceof i.m?u.copy(e):u.set(e,t,n),this._localPosition.approximatelyEquals(u,Number.EPSILON)||(this._localPosition.copy(u),this.onLocalPositionChanged(),this._onModifyTransform())}setLocalPositionElementComponent(e,t,n){const{tempVector:r}=S;r.copy(this.getLocalPositionElementComponent()),e instanceof i.m?(this.setLocalPositionGraphNode(e.x,e.y,e.z),r.sub2(e,r)):(this.setLocalPositionGraphNode(e,t,n),r.x=e-r.x,r.y=t-r.y),this.element._anchoredPosition.x+=r.x,this.element._anchoredPosition.y+=r.y,this.element.dirtifyRect()}getLocalRotation(){return this._localRotation}setLocalRotation(e,t,n,r){e instanceof i.j?s.copy(e):s.set(e,t,n,r),s.normalize(),this._localRotation.approximatelyEquals(s,Number.EPSILON)||(this._localRotation.copy(s),this.onLocalRotationChanged(),this._onModifyTransform())}getLocalScale(){return this._localScale}setLocalScale(e,t,n){e instanceof i.m?c.copy(e):c.set(e,t,n),this._localScale.approximatelyEquals(c,Number.EPSILON)||(this._localScale.copy(c),this.onLocalScaleChanged(),this._onModifyTransform())}getLocalScaleSign(e){const t=this.getLocalScale();e.set(Math.sign(t.x)||1,Math.sign(t.y)||1,Math.sign(t.z)||1)}getLocalScaleRotationMultipliers(e){this.getLocalScaleSign(e);const t=e.x,n=e.y,i=e.z,r=n*i,s=t*i,a=t*n;e.set(r,s,a)}getLocalTransform(){return this.flags&E.Flags.LocalTransformDirty?(this.flags&=~E.Flags.LocalTransformDirty,this._localTransform.setTRS(this.getLocalPosition(),this.getLocalRotation(),this.getLocalScale()),this._localTransform):this._localTransform}setLocalTransform(e){this.muteTransformModificationCallback(),this.setLocalPosition(e.getTranslation()),this.setLocalRotation(e.getRotation()),this.setLocalScale(e.getScale()),this.unmuteTransformModificationCallback()}getPosition(){if(!(this.flags&E.Flags.PositionDirty))return this._position;this.flags&=~E.Flags.PositionDirty,this._position.copy(this.getLocalPosition());let e=this.parent;for(;e;)this._position.mul(e.getLocalScale()),e.getLocalRotation().transformVector(this._position,this._position),this._position.add(e.getLocalPosition()),e=e.parent;return this._position}setPosition(e,t,n){e instanceof i.m?h.copy(e):h.set(e,t,n),this.parent&&this.parent.transformPointInverse(h,h),this.setLocalPosition(h)}getRotation(){if(!(this.flags&E.Flags.RotationDirty))return this._rotation;this.flags&=~E.Flags.RotationDirty;const{parentLocalRotation:e,rotationMultiplier:t}=$;this._rotation.copy(this.getLocalRotation());let n=this.parent;for(;n;){n.getLocalScaleRotationMultipliers(t);const i=t.x,r=t.y,s=t.z;e.copy(n.getLocalRotation()),e.x*=i,e.y*=r,e.z*=s,this._rotation.mul2(e,this._rotation),this._rotation.x*=i,this._rotation.y*=r,this._rotation.z*=s,n=n.parent}return this._rotation}setRotation(e,t,n,r){const{newLocalRotation:s}=p;e instanceof i.j?s.copy(e):s.set(e,t,n,r),this.parent?this.setLocalRotation(this.parent.transformQuaternionInverse(s)):this.setLocalRotation(s)}getWorldTransform(){return this.flags&E.Flags.WorldTransformDirty?(this.flags&=~E.Flags.WorldTransformDirty,this.parent?this._worldTransform.mul2(this._parent.getWorldTransform(),this.getLocalTransform()):this._worldTransform.copy(this.getLocalTransform()),this._worldTransform):this._worldTransform}setWorldTransform(e){this.muteTransformModificationCallback(),this.setPosition(e.getTranslation()),this.setRotation(e.getRotation());const t=e.clone();t.data[12]=t.data[13]=t.data[14]=0,this.setWorldRotationAndScale(t),this.unmuteTransformModificationCallback()}getWorldTransformInverse(){return this.flags&E.Flags.WorldTransformInverseDirty?(this.flags&=~E.Flags.WorldTransformInverseDirty,this._worldTransformInverse.copy(this.getWorldTransform()).invert(),this._worldTransformInverse):this._worldTransformInverse}transformPoint(e,t=new i.m,n=!1){t.copy(e);let r=this;for(;r;)n||t.mul(r.getLocalScale()),r.getLocalRotation().transformVector(t,t),t.add(r.getLocalPosition()),r=r.parent;return t}transformPointInverse(e,t=new i.m){return this.parent?this.parent.transformPointInverse(e,t):t.copy(e),t.sub(this.getLocalPosition()),s.copy(this.getLocalRotation()).invert().transformVector(t,t),t.mul(u.copy(this.getLocalScale()).invertSafe()),t}transformVector(e,t=new i.m){t.copy(e);let n=this;for(;n;)t.mul(n.getLocalScale()),n.getLocalRotation().transformVector(t,t),n=n.parent;return t}transformVectorInverse(e,t=new i.m){return this.parent?this.parent.transformVectorInverse(e,t):t.copy(e),s.copy(this.getLocalRotation()).invert().transformVector(t,t),t.mul(u.copy(this.getLocalScale()).invertSafe()),t}transformDirection(e,t=new i.m){t.copy(e),this.getLocalRotation().transformVector(t,t);let n=this.parent;for(;n;)n.getLocalScaleSign(d),t.x*=d.x,t.y*=d.y,t.z*=d.z,n.getLocalRotation().transformVector(t,t),n=n.parent;return t}transformDirectionInverse(e,t=new i.m,n=!1){if(this.parent?this.parent.transformDirectionInverse(e,t,!0):t.copy(e),s.copy(this.getLocalRotation()).invert().transformVector(t,t),n){const e=this.getLocalScale(),n=Math.sign(e.x)||1,i=Math.sign(e.y)||1,r=Math.sign(e.z)||1;t.x*=n,t.y*=i,t.z*=r}return t}transformQuaternionInverse(e,t=new i.j){const{invLocalRotation:n,rotationMultiplier:r}=y;return this.parent?this.parent.transformQuaternionInverse(e,t):t.copy(e),n.copy(this.getLocalRotation()).invert(),t.mul2(n,t),this.getLocalScaleRotationMultipliers(r),t.x*=r.x,t.y*=r.y,t.z*=r.z,t}hijackLocalPosition(){return this.flags&E.Flags.LocalPositionHijacked||(this.flags|=E.Flags.LocalPositionHijacked,this._hijackedLocalPosition.copy(this.getLocalPosition())),this._hijackedLocalPosition}hijackLocalScale(){return this.flags&E.Flags.LocalScaleHijacked||(this.flags|=E.Flags.LocalScaleHijacked,this._hijackedLocalScale.copy(this.getLocalScale())),this._hijackedLocalScale}hijackLocalEulerAngles(){return this.flags&E.Flags.LocalEulerAnglesHijacked||(this.flags|=E.Flags.LocalEulerAnglesHijacked,this._hijackedLocalEulerAngles.copy(this.getLocalEulerAngles())),this._hijackedLocalEulerAngles}hijackLocalRotation(){return this.flags&E.Flags.LocalRotationHijacked||(this.flags|=E.Flags.LocalRotationHijacked,this._hijackedLocalRotation.copy(this.getLocalRotation())),this._hijackedLocalRotation}releaseHijackedProperties(){this.flags&E.Flags.LocalPositionHijacked&&(this.flags&=~E.Flags.LocalPositionHijacked,this.setLocalPosition(this._hijackedLocalPosition)),this.flags&E.Flags.LocalScaleHijacked&&(this.flags&=~E.Flags.LocalScaleHijacked,this.setLocalScale(this._hijackedLocalScale)),this.flags&E.Flags.LocalRotationHijacked&&(this.flags&=~E.Flags.LocalRotationHijacked,this.setLocalRotation(this._hijackedLocalRotation)),this.flags&E.Flags.LocalEulerAnglesHijacked&&(this.flags&=~E.Flags.LocalEulerAnglesHijacked,this.setLocalEulerAngles(this._hijackedLocalEulerAngles))}reparent(e,t){this.notifyBeforeTransformParentChanged();const n=this._parent;if(this.element&&this.element._nearestScreen&&(this.element._nearestScreen.canvasMeshInstance.renderersDirty=!0),n)if(n!==e)n.removeChild(this,!0),n.notifyTransformChildrenChanged();else if(e)return void e.moveChildIndex(this,t);e&&(t>=0?e.insertChild(this,t):e.addChild(this)),this._app.scene.addDirty(this)}addChild(e,t=!1){if(null!==e._parent)throw Error("GraphNode is already parented");this._children.push(e),t?this._onInsertChildOnLoad(e):this._onInsertChild(e)}insertChild(e,t){if(null!==e._parent)throw Error("GraphNode is already parented");this._children.splice(t,0,e),this._onInsertChild(e)}moveChildIndex(e,t){if(t<0){const t=this._children.indexOf(e);this._children.push(this._children.splice(t,1)[0])}else{const n=this._children.indexOf(e);this._children.splice(n,1),this._children.splice(t,0,e)}e.onParentChanged(),this.element&&this.element.triggerOnElementDimesionsChange(!0,!0)}setupCanvasGroups(e){let t=e.parent;for(;t&&t.element&&0===e._parent.element._canvasGroups.length;)t=t.parent;t&&t.element&&e._parent.element._canvasGroups.length>0?e.element._canvasGroups=e._parent.element._canvasGroups.slice():e.element._canvasGroups.length=0,this.setupCanvasGroupsInChildren(e,e.element._canvasGroups)}setupCanvasGroupsInChildren(e,t){if(e.element){e.element._canvasGroups=t.slice();for(let t=0;t<e._canvasGroups.length;t++)e.element._canvasGroups.unshift(e._canvasGroups[t]);for(let t=0;t<e.children.length;t++)this.setupCanvasGroupsInChildren(e.children[t],e.element._canvasGroups)}}notifyScreenHierarchyChanged(){const e=pc.UIUtils.findParentScreen(this.parent);this.notifyScreenChanged(e),this.tryReparentScreen(e,this.children)}tryReparentScreen(e,t){for(let n=0;n<t.length;n++){const i=t[n];i.screen?i.screen.setParentScreen(e,!0):i.tryReparentScreen(e,i.children)}}_updateGraphDepth(){this._parent?this._graphDepth=this._parent._graphDepth+1:this._graphDepth=0;for(let e=0,t=this._children.length;e<t;e++)this._children[e]._updateGraphDepth()}removeChild(e,t=!1){e.notifyScreenHierarchyChanged(),t||e._notifyHierarchyStateChanged(e,!1);for(let t=0;t<this._children.length;++t)if(this._children[t]===e)return this._children.splice(t,1),e._parent=null,void e.notifyScreenHierarchyChanged()}syncHierarchy(){if(!this.enabled)return;this._sync();const e=this._children;for(let t=0,n=e.length;t<n;t++)e[t].syncHierarchy()}notifyCanvasGroupChanged(e){if(this.isPrefab)return;const t=e._unityComponents.monoBehaviour,n=e._unityComponents.canvasRenderer[0];for(let e=0;e<t.length;e++)t[e].onCanvasGroupChanged();n&&n.onCanvasGroupChanged();const i=e.children;for(let e=0;e<i.length;e++)this.notifyCanvasGroupChanged(i[e])}notifyScreenChanged(e){if(this.isPrefab)return;this.screen&&(e=this.screen);const t=this._unityComponents.canvasRenderer[0];t&&t.onScreenChanged(e);const n=this.children;for(let t=0;t<n.length;t++)n[t].notifyScreenChanged(e)}notifyBeforeTransformParentChanged(){if(this.isPrefab)return;const e=this._unityComponents.monoBehaviour;for(let t=0;t<e.length;t++)e[t].onBeforeTransformParentChanged()}notifyTransformParentChanged(){if(this.isPrefab)return;const e=this._unityComponents.monoBehaviour;for(let t=0;t<e.length;t++)e[t].onTransformParentChanged();this.notifySortingGroupParentChanged()}notifySortingGroupParentChanged(){if(this.isPrefab)return;const[e]=this._unityComponents.sortingGroup;e&&e.onSortingGroupChanged();const t=this.children;for(let e=0;e<t.length;e++)t[e].notifySortingGroupParentChanged()}notifyTransformChildrenChanged(){if(this.isPrefab)return;const e=this._unityComponents.animator;for(let t=0;t<e.length;t++)e[t].onTransformChildrenChanged();const t=this._unityComponents.monoBehaviour;for(let e=0;e<t.length;e++)t[e].onTransformChildrenChanged()}onLocalRotationChanged(){this.flags|=E.Flags.LocalEulersAnglesDirty,this.flags|=E.Flags.LossyScaleDirty,this.flags&E.Flags.LocalTransformDirty||(this.flags|=E.Flags.LocalTransformDirty,this.onLocalTransformChanged()),this.flags&E.Flags.RotationDirty||(this.flags|=E.Flags.RotationDirty,this.onRotationChanged());for(let e=0;e<this.children.length;e++)this.children[e].onParentLocalRotationChanged();this.increaseTransformVersion()}onLocalScaleChanged(){this.flags|=E.Flags.LossyScaleDirty,this.flags&E.Flags.LocalTransformDirty||(this.flags|=E.Flags.LocalTransformDirty,this.onLocalTransformChanged());for(let e=0;e<this.children.length;e++)this.children[e].onParentLocalScaleChanged();this.increaseTransformVersion()}onLocalPositionChanged(){this.flags|=E.Flags.PositionDirty,this.flags&E.Flags.LocalTransformDirty||(this.flags|=E.Flags.LocalTransformDirty,this.onLocalTransformChanged());for(let e=0;e<this.children.length;e++)this.children[e].onParentLocalPositionChanged();this.increaseTransformVersion()}onRotationChanged(){this.flags|=E.Flags.EulerAnglesDirty,this.flags|=E.Flags.LossyScaleDirty,this.increaseTransformVersion()}onLocalTransformChanged(){this.flags&E.Flags.WorldTransformDirty||(this.flags|=E.Flags.WorldTransformDirty,this.onWorldTransformChanged()),this.increaseTransformVersion()}onWorldTransformChanged(){this.flags|=E.Flags.WorldTransformInverseDirty;for(let e=0;e<this.children.length;e++)this.children[e].onParentWorldTransformChanged();this.increaseTransformVersion()}onParentLocalRotationChanged(){this.flags|=E.Flags.LossyScaleDirty,this.flags|=E.Flags.PositionDirty,this.flags&E.Flags.RotationDirty||(this.flags|=E.Flags.RotationDirty,this.onRotationChanged());for(let e=0;e<this.children.length;e++)this.children[e].onParentLocalRotationChanged();this.increaseTransformVersion()}onParentLocalScaleChanged(){this.flags|=E.Flags.LossyScaleDirty,this.flags|=E.Flags.PositionDirty,this.flags&E.Flags.RotationDirty||(this.flags|=E.Flags.RotationDirty,this.onRotationChanged());for(let e=0;e<this.children.length;e++)this.children[e].onParentLocalScaleChanged();this.increaseTransformVersion()}onParentLocalPositionChanged(){this.flags|=E.Flags.PositionDirty;for(let e=0;e<this.children.length;e++)this.children[e].onParentLocalPositionChanged();this.increaseTransformVersion()}onParentWorldTransformChanged(){this.flags&E.Flags.WorldTransformDirty||(this.flags|=E.Flags.WorldTransformDirty,this.onWorldTransformChanged()),this.increaseTransformVersion()}onParentChanged(){this.onParentLocalPositionChanged(),this.onParentLocalRotationChanged(),this.onParentLocalScaleChanged(),this.onParentWorldTransformChanged()}increaseTransformVersion(){this._aabbVer++,this.flags&E.Flags.HijackedByElementComponent&&this._app.scene.addDirty(this)}get static(){return this._static}set static(e){this._static=e}get right(){return this._right||(this._right=new i.m),this.getWorldTransform().getX(this._right).normalize()}get up(){return this._up||(this._up=new i.m),this.getWorldTransform().getY(this._up).normalize()}get forward(){return this._forward||(this._forward=new i.m),this.getWorldTransform().getZ(this._forward).normalize()}get aabbVersion(){return this._aabbVer}get enabled(){return this._activeSelf&&this._enabledInHierarchy}set enabled(e){this._activeSelf!==e&&(this._activeSelf=e,e&&this._app.scene.addDirty(this),this._parent&&!this._parent.enabled||this._notifyHierarchyStateChanged(this,e))}get activeSelf(){return this._activeSelf}get parent(){return this._parent}get root(){let e=this._parent;if(!e)return this;for(;e._parent;)e=e._parent;return e}get children(){return this._children}get graphDepth(){return this._graphDepth}get cullingLayer(){return this._cullingLayer}set cullingLayer(e){this._cullingLayer=e,this.layerMask=1<<e}get lossyScale(){return this.getLossyScale()}get eulerAngles(){return this.getEulerAngles()}set eulerAngles(e){this.setEulerAngles(e)}get localEulerAngles(){return this.getLocalEulerAngles()}set localEulerAngles(e){this.setLocalEulerAngles(e)}get localPosition(){return this.getLocalPosition()}set localPosition(e){this.setLocalPosition(e)}get localRotation(){return this.getLocalRotation()}set localRotation(e){this.setLocalRotation(e)}get localScale(){return this.getLocalScale()}set localScale(e){this.setLocalScale(e)}get localTransform(){return this.getLocalTransform()}set localTransform(e){this.setLocalTransform(e)}get position(){return this.getPosition()}set position(e){this.setPosition(e)}get rotation(){return this.getRotation()}set rotation(e){this.setRotation(e)}get worldTransform(){return this.getWorldTransform()}set worldTransform(e){this.setWorldTransform(e)}get worldTransformInverse(){return this.getWorldTransformInverse()}}E.Flags={LocalEulersAnglesDirty:1,RotationDirty:2,EulerAnglesDirty:4,LossyScaleDirty:8,PositionDirty:16,LocalTransformDirty:32,WorldTransformDirty:64,WorldTransformInverseDirty:128,TransformModificationCallbackMuted:256,TransformModificationCallbackRequested:512,LocalPositionHijacked:1024,LocalScaleHijacked:2048,LocalEulerAnglesHijacked:4096,LocalRotationHijacked:8192,HijackedByElementComponent:16384},E.PositionDirty=E.Flags.PositionDirty|E.Flags.LocalTransformDirty|E.Flags.WorldTransformDirty|E.Flags.WorldTransformInverseDirty,E.RotationDirty=E.Flags.RotationDirty|E.Flags.EulerAnglesDirty|E.Flags.LocalEulersAnglesDirty|E.Flags.LocalTransformDirty|E.Flags.WorldTransformDirty|E.Flags.WorldTransformInverseDirty,E.ScaleDirty=E.Flags.LossyScaleDirty|E.Flags.LocalTransformDirty|E.Flags.WorldTransformDirty|E.Flags.WorldTransformInverseDirty,E.TransformDirty=E.PositionDirty|E.RotationDirty|E.ScaleDirty},(e,t,n)=>{n.d(t,{a:()=>c});var i=n(2),r=n(46),s=n(17),a=n(19),o=n(24);let l=!1;class c extends r.a{constructor(e,t,n=!1){if(e instanceof s.a&&(t=e,e="Untitled"),super(e),this._app=t,!t&&(this._app=s.a.getApplication(),!this._app))throw Error("Couldn't find current application");this.$id=0,this.objectJson=null,this.isPrefab=!0===n,this.getGuid(),this["__UnityEngine.Object"]=null,this["__UnityEngine.Transform"]=null,this["__UnityEngine.RectTransform"]=null,this["__UnityEngine.GameObject"]=null,this._destroying=!1,this._cullingLayer=0,this._beingDestroyed=!1,this._destroyed=!1,this._magicMethods={},this._eventHanders=null}sendMessageToScripts(e,t,n){const i=this._unityComponents.monoBehaviour;if(0!==i.length&&e)for(let r=0;r<i.length;r++){const s=i[r].code;if(s!==n)try{if(s&&s[e]){const n=s[e].apply(s,t);n&&"Bridge.GeneratorEnumerator"===n.$$fullname&&new UnityEngine.Coroutine(n,s.handle)}}catch(e){console.error(e)}}}_elementDimesionsChange(){for(let e=0;e<this._dimensionListeners.length;e++)this._dimensionListeners[e].OnRectTransformDimensionsChange()}sendPhysicsEvent(e,t){const n=this._magicMethods[e];if(!n)return!1;for(let i=0;i<n.length;i++){const r=n[i];try{const n=r.code[e].call(r.code,t);n&&"Bridge.GeneratorEnumerator"===n.$$fullname&&new UnityEngine.Coroutine(n,r.code.handle)}catch(e){console.error(e)}}return!0}hasMagicMethod(e){return!!this._magicMethods[e]}removeOrReparent(e,t=!1){if(null===e)if(t){const e=this.getWorldTransform().clone();let t=this.getScene();t||(t=window.$scene),this.reparent(t.root,-1),this.setLocalTransform(e)}else this.parent.removeChild(this);else this.reparent(e,-1)}getComponents(e){const t=[];if(!e)for(const e in this.c)this.c.hasOwnProperty(e)&&t.push(this.c[e]);for(const e in this._unityComponents){if(!this._unityComponents.hasOwnProperty(e))continue;const n=this._unityComponents[e];for(const e in n)n.hasOwnProperty(e)&&t.push(n[e])}return t}getUnityComponents(e){const t=[],n=this._unityComponents;if(!n)return t;for(let i=0,r=e.length;i<r;++i){const r=e[i];if(!n.hasOwnProperty(r))continue;const s=n[r];for(const e in s)s.hasOwnProperty(e)&&t.push(s[e])}return t}getUnityComponent(e){return this._unityComponents&&this._unityComponents[e][0]||null}collectAllUnityComponents(){let e=this.getUnityComponents(o.a);const t=this.allChildren();for(let n=0;n<t.length;n++)e=t[n].getUnityComponents(o.a).concat(e);return e}addComponent(e,t){const n=this._app.systems.getSystemByName(e);if(!n)throw Error('addComponent: System "'+e+"\" doesn't exist");return this.c[e]?null:n.addComponent(this,t)}addUnityComponentFromDeserialization(e,t){this._app.systems.getSystemByName(e).addComponent(this,t)}addUnityComponent(e,t){const n=[];if(this._app.systems.unitymanager.disableCallbacks(),this._app.systems.getSystemByName(e).addComponent(this,t),n.push(t),!l){l=!0,a.a.addRequiredComponents(this,t.code,n),this._app.systems.unitymanager.enableCallbacks();for(let e=n.length-1;e>=0;e--){const t=n[e];t instanceof a.a&&(t.configureForEntity(this),t.onAttached(),t.onInit(),this.enabled&&t.enabled&&t._onEntityStateChanged(!0))}l=!1}}removeComponent(e){const t=this._app.systems.getSystemByName(e);if(!t)throw Error('removeComponent: System "'+e+"\" doesn't exist");this.c[e]&&t.removeComponent(this)}getGuid(){return this._guid||this.setGuid((0,i.b)()),this._guid}setGuid(e){const t=this._app._entityIndex;this._guid&&delete t[this._guid],this._guid=e,t[this._guid]=this}_onHierarchyStateChanged(e){if(super._onHierarchyStateChanged.call(this,e),this._unityComponents)for(let t=0;t<o.a.length;t++){const n=this._unityComponents[o.a[t]];for(let t=0;t<n.length;t++)n[t]._onEntityStateChanged(e)}let t;const n=this.c;for(const i in n)n.hasOwnProperty(i)&&(t=n[i],t.enabled&&(e?t.onEnable():t.onDisable()))}findByGuid(e){if(this._guid===e)return this;const t=this._app._entityIndex[e];return t&&(t===this||t.isDescendantOf(this))?t:null}destroy(){let e;for(e in this._destroying=!0,this.c)this.c.hasOwnProperty(e)&&(this.c[e].enabled=!1);for(e in this.c)this.c.hasOwnProperty(e)&&this.c[e].system.removeComponent(this);for(let e=0;e<o.a.length;e++){const t=this._unityComponents[o.a[e]];for(let e=0;e<t.length;e++)t[e].destroy()}this._parent&&this._parent.removeChild(this);const t=this._children;let n=t.shift();for(;n;)n instanceof c&&n.destroy(),n._parent=null,n=t.shift();this.events.off(),this._destroying=!1,this._destroyed=!0,this._layoutElements.length=0,this._layoutControllers.length=0,this._layoutSelfControllers.length=0,this._dimensionListeners.length=0,this._canvasElements.length=0,this._canvasGroups.length=0,this._meshModifiers.length=0}}},(e,t,n)=>{n.d(t,{a:()=>r});var i=n(2);class r{constructor(){this.ambientLight=null,this.skybox=null,this.meshInstancesCount=0,this._meshInstances=[],this._depthConsumers=[],this._canvasDepthConsumers=new Set,this._renderers=[],this._cameras=[],this._urpBaseCameras=[],this._lights=[],this._overlayScreensDirty=!1,this._overlayScreens=[],this._worldScreens=[],this.activeUiMasks={},this.dirtyEntities=new Set,this.events=new i.a(this)}addDirty(e){this.dirtyEntities.add(e)}syncHierarchy(){const e=[...this.dirtyEntities];for(const t of e)t.syncHierarchy();this.dirtyEntities.clear()}addRenderer(e){this._renderers.includes(e)||this._renderers.push(e)}addSkybox(e){this.skybox=e}removeRenderer(e){const t=this._renderers.indexOf(e);-1!==t&&this._renderers.splice(t,1)}addCanvasDepthConsumer(e){this._canvasDepthConsumers.add(e)}removeCanvasDepthConsumer(e){this._canvasDepthConsumers.delete(e)}getMeshInstances(){this._depthConsumers.length=0;for(let e=0;e<this.meshInstancesCount;e++)this._meshInstances[e]=null;this.meshInstancesCount=0;for(let e=0;e<this._renderers.length;e++){const t=this._renderers[e].getMeshInstancesForRender();for(let e=0;e<t.length;e++){const n=t[e];n.isIndexBufferEmpty&&!n.isCanvas||((n.material&&n.material.readDepth||n.isCanvas&&this._canvasDepthConsumers.has(n))&&this._depthConsumers.push(n),this._meshInstances.length===this.meshInstancesCount?this._meshInstances.push(n):this._meshInstances[this.meshInstancesCount]=n,this.meshInstancesCount++)}}return this._meshInstances}getSkyboxForRender(){return this.skybox}getMeshInstancesCached(){return this._meshInstances}addCamera(e){this._cameras.includes(e)||this._cameras.push(e)}addUrpBaseCamera(e){this._urpBaseCameras.includes(e)||this._urpBaseCameras.push(e)}removeCamera(e){-1!==this._cameras.indexOf(e)&&this._cameras.splice(this._cameras.indexOf(e),1)}removeUrpBaseCamera(e){const t=this._urpBaseCameras.indexOf(e);-1!==t&&this._urpBaseCameras.splice(t,1)}addLight(e){this._lights.includes(e)||this._lights.push(e)}removeLight(e){this._lights.splice(this._lights.indexOf(e),1)}addScreen(e){const t=e.screenType===i.c.SCREEN_TYPE_SCREEN?this._overlayScreens:this._worldScreens;t.includes(e)||(t.push(e),t===this._overlayScreens&&(this._overlayScreensDirty=!0))}removeScreen(e){const t=e.screenType===i.c.SCREEN_TYPE_SCREEN?this._overlayScreens:this._worldScreens;t.includes(e)&&t.splice(t.indexOf(e),1)}hasVisibleDepthConsumers(){let e=!1;for(const t of this._depthConsumers.values())if(t.visibleThisFrame){e=!0;break}return e}get overlayScreens(){return this._overlayScreensDirty&&(this._overlayScreensDirty=!1,this._overlayScreens.sort(pc.SortUtils.sortOverlayCanvases)),this._overlayScreens}get worldScreens(){return this._worldScreens}}},(e,t,n)=>{n.d(t,{a:()=>r});var i=n(13);class r{constructor(){this._currentQualityLevel=0}static get instance(){return i.c.instance.qualitySettings}get currentQualityLevel(){return this._currentQualityLevel}set currentQualityLevel(e){const t=e>this.countOfQualityLevels?this.countOfQualityLevels-1:e<0?0:e;if(t===this._currentQualityLevel)return;const n=this.qualityLevels[t];this.activeColorSpace=n.activeColorSpace,this.anisotropicFiltering=n.anisotropicFiltering,this.antiAliasing=n.antiAliasing,this.asyncUploadBufferSize=n.asyncUploadTimeSlice,this.asyncUploadTimeSlice=n.activeColorSpace,this.billboardsFaceCameraPosition=n.billboardsFaceCameraPosition,this.lodBias=n.lodBias,this.masterTextureLimit=n.masterTextureLimit,this.maximumLODLevel=n.maximumLODLevel,this.maxQueuedFrames=n.maxQueuedFrames,this.particleRaycastBudget=n.particleRaycastBudget,this.pixelLightCount=n.pixelLightCount,this.realtimeReflectionProbes=n.realtimeReflectionProbes,this.resolutionScalingFixedDPIFactor=n.resolutionScalingFixedDPIFactor,this.desiredColorSpace=n.desiredColorSpace,this.shadowCascade2Split=n.shadowCascade2Split,this.shadowCascade4Split=n.shadowCascade4Split,this.shadowCascades=n.shadowCascades,this.shadowDistance=n.shadowDistance,this.shadowmaskMode=n.shadowmaskMode,this.shadowNearPlaneOffset=n.shadowNearPlaneOffset,this.shadowProjection=n.shadowProjection,this.shadowResolution=n.shadowResolution,this.shadows=n.shadows,this.softParticles=n.softParticles,this.softVegetation=n.softVegetation,this.streamingMipmapsActive=n.streamingMipmapsActive,this.streamingMipmapsAddAllCameras=n.streamingMipmapsAddAllCameras,this.streamingMipmapsMaxFileIORequests=n.streamingMipmapsMaxFileIORequests,this.streamingMipmapsMaxLevelReduction=n.streamingMipmapsMaxLevelReduction,this.streamingMipmapsMemoryBudget=n.streamingMipmapsMemoryBudget,this.streamingMipmapsRenderersPerFrame=n.streamingMipmapsRenderersPerFrame,this.vSyncCount=n.vSyncCount,this._currentQualityLevel=t}get countOfQualityLevels(){return this.names.length}get qualityLevels(){return this._qualityLevels}set qualityLevels(e){this._qualityLevels=e}set names(e){this._names=e}get names(){return this._names}set shadows(e){this._shadows=e}get shadows(){return this._shadows}set anisotropicFiltering(e){this._anisotropicFiltering=e}get anisotropicFiltering(){return this._anisotropicFiltering}get antiAliasing(){return this._antiAliasing}set antiAliasing(e){this._antiAliasing=e}get lodBias(){return this._lodBias}set lodBias(e){this._lodBias=e}get shadowCascades(){return this._shadowCascades}set shadowCascades(e){this._shadowCascades=e}get shadowDistance(){return this._shadowDistance}set shadowDistance(e){this._shadowDistance=e}get shadowmaskMode(){return this._shadowmaskMode}set shadowmaskMode(e){this._shadowmaskMode=e}get shadowProjection(){return this._shadowProjection}set shadowProjection(e){this._shadowProjection=e}get shadowResolution(){return this._shadowResolution}set shadowResolution(e){this._shadowResolution=e}get softParticles(){return this._softParticles}set softParticles(e){this._softParticles=e}set softVegetation(e){this._softVegetation=e}get softVegetation(){return this._softVegetation}set activeColorSpace(e){this._activeColorSpace=e}get activeColorSpace(){return this._activeColorSpace}set desiredColorSpace(e){this._desiredColorSpace=e}get desiredColorSpace(){return this._desiredColorSpace}set masterTextureLimit(e){this._masterTextureLimit=e}get masterTextureLimit(){return this._masterTextureLimit}set maxQueuedFrames(e){this._maxQueuedFrames=e}get maxQueuedFrames(){return this._maxQueuedFrames}set particleRaycastBudget(e){this._particleRaycastBudget=e}get particleRaycastBudget(){return this._particleRaycastBudget}set pixelLightCount(e){this._pixelLightCount=e}get pixelLightCount(){return this._pixelLightCount}set realtimeReflectionProbes(e){this._realtimeReflectionProbes=e}get realtimeReflectionProbes(){return this._realtimeReflectionProbes}set shadowCascade2Split(e){this._shadowCascade2Split=e}get shadowCascade2Split(){return this._shadowCascade2Split}set shadowCascade4Split(e){this._shadowCascade4Split=e}get shadowCascade4Split(){return this._shadowCascade4Split}set streamingMipmapsActive(e){this._streamingMipmapsActive=e}get streamingMipmapsActive(){return this._streamingMipmapsActive}set vSyncCount(e){this._vSyncCount=e}get vSyncCount(){return this._vSyncCount}set asyncUploadBufferSize(e){this._asyncUploadBufferSize=e}get asyncUploadBufferSize(){return this._asyncUploadBufferSize}set asyncUploadTimeSlice(e){this._asyncUploadTimeSlice=e}get asyncUploadTimeSlice(){return this._asyncUploadTimeSlice}set billboardsFaceCameraPosition(e){this._billboardsFaceCameraPosition=e}get billboardsFaceCameraPosition(){return this._billboardsFaceCameraPosition}set shadowNearPlaneOffset(e){this._shadowNearPlaneOffset=e}get shadowNearPlaneOffset(){return this._shadowNearPlaneOffset}set streamingMipmapsMemoryBudget(e){this._streamingMipmapsMemoryBudget=e}get streamingMipmapsMemoryBudget(){return this._streamingMipmapsMemoryBudget}set maximumLODLevel(e){this._maximumLODLevel=e}get maximumLODLevel(){return this._maximumLODLevel}set streamingMipmapsAddAllCameras(e){this._streamingMipmapsAddAllCameras=e}get streamingMipmapsAddAllCameras(){return this._streamingMipmapsAddAllCameras}set streamingMipmapsMaxLevelReduction(e){this._streamingMipmapsMaxLevelReduction=e}get streamingMipmapsMaxLevelReduction(){return this._streamingMipmapsMaxLevelReduction}set streamingMipmapsRenderersPerFrame(e){this._streamingMipmapsRenderersPerFrame=e}get streamingMipmapsRenderersPerFrame(){return this._streamingMipmapsRenderersPerFrame}set resolutionScalingFixedDPIFactor(e){this._resolutionScalingFixedDPIFactor=e}get resolutionScalingFixedDPIFactor(){return this._resolutionScalingFixedDPIFactor}set streamingMipmapsMaxFileIORequests(e){this._streamingMipmapsMaxFileIORequests=e}get streamingMipmapsMaxFileIORequests(){return this._streamingMipmapsMaxFileIORequests}getQualityLevel(){return this.currentQualityLevel}setQualityLevel(e,t=!0){this.currentQualityLevel=e}increaseLevel(e=!1){this.currentQualityLevel++}decreaseLevel(e=!1){this.currentQualityLevel--}}},(e,t,n)=>{n.d(t,{a:()=>s});var i=n(23),r=n(7);class s{constructor(e){this.device=e,this.freeList=[],this.freeListIterations=[],this.takenList=[],this.textureOptions={name:"RenderTargetPoolObject",width:0,height:0,format:0,mipmaps:!1,levels:[null]},this.renderTargetOptions={colorBuffer:null,depthBuffer:null},this.currentFreeIteration=0}getTempRenderTarget(e,t,n=null,s=null){let a=this.findFreeRenderTarget(e,t,n,s);if(!a){const o=this.getTextureOptionsObject();o.width=e,o.height=t;const l=this.getRenderTargetOptionsObject();n&&(o.format=n,o.name="RenderTargetPooled_Color",l.colorBuffer=new r.a(this.device,o)),s&&(o.format=s,o.name="RenderTargetPooled_Depth",l.depthBuffer=new r.a(this.device,o)),a=new i.a(l)}return this.takenList.push(a),a}releaseTempRenderTarget(e){const t=this.takenList.indexOf(e);-1!==t&&(this.freeList.push(e),this.freeListIterations.push(this.currentFreeIteration),this.takenList.splice(t,1))}freeUnusedRenderTargets(e=15){for(let t=this.freeListIterations.length-1;t>=0;t--){const n=this.freeListIterations[t];if(this.currentFreeIteration-n>=e){const e=this.freeList[t];e.colorBuffer&&e.colorBuffer.destroy(),e.depthBuffer&&e.depthBuffer.destroy(),e.destroy(),this.freeList.splice(t,1),this.freeListIterations.splice(t,1)}}this.currentFreeIteration++}findFreeRenderTarget(e,t,n=null,i=null){for(let r=this.freeList.length-1;r>=0;r--){const s=this.freeList[r];let a=!0;if(a=a&&s.width===e,a=a&&s.height===t,a=a&&!!s.colorBuffer==!!n,n&&(a=a&&s.colorBuffer.format===n),a=a&&!!s.depthBuffer==!!i,i&&(a=a&&s.depthBuffer.format===i),a)return this.freeList.splice(r,1),this.freeListIterations.splice(r,1),s}return null}getTextureOptionsObject(){return this.textureOptions}getRenderTargetOptionsObject(){return this.renderTargetOptions.colorBuffer=null,this.renderTargetOptions.depthBuffer=null,this.renderTargetOptions}}},(e,t,n)=>{n.d(t,{a:()=>l,b:()=>o});var i=n(0),r=n(2),s=n(7);const a=new i.i;class o{constructor(e,t,n){this.device=e,this.inverseBindPose=t,this.boneNames=n,this.updateWhenOffscreen=!1,this.localBounds=null,this.rootBone=null}}class l{constructor(e){this.skin=e,this._dirty=!0,this.bones=[];const t=e.inverseBindPose.length,n=e.device;if(n.supportsBoneTextures){let e;e=t>256?64:t>64?32:t>16?16:8,this.boneTexture=new s.a(n,{width:e,height:e,format:r.c.PIXELFORMAT_RGBA32F,mipmaps:!1,minFilter:r.c.FILTER_NEAREST,magFilter:r.c.FILTER_NEAREST}),this.matrixPalette=this.boneTexture.lock()}else this.matrixPalette=new Float32Array(16*t);this.matrices=[],this.bonesAabbVersions=[];for(let e=0;e<t;e++)this.matrices[e]=new i.i,this.bonesAabbVersions[e]=-1}updateMatrices(e){a.copy(e.getWorldTransform()).invert();for(let e=this.bones.length-1;e>=0;e--)null!==this.bones[e]&&e<this.matrices.length&&(this.matrices[e].mul2(a,this.bones[e].getWorldTransform()),this.matrices[e].mul2(this.matrices[e],this.skin.inverseBindPose[e]))}updateMatrixPalette(){const e=this.matrixPalette;for(let t=this.bones.length-1;t>=0;t--)if(t<this.matrices.length){const n=this.matrices[t].data,i=16*t;e[i]=n[0],e[i+1]=n[1],e[i+2]=n[2],e[i+3]=n[3],e[i+4]=n[4],e[i+5]=n[5],e[i+6]=n[6],e[i+7]=n[7],e[i+8]=n[8],e[i+9]=n[9],e[i+10]=n[10],e[i+11]=n[11],e[i+12]=n[12],e[i+13]=n[13],e[i+14]=n[14],e[i+15]=n[15]}this.skin.device.supportsBoneTextures&&(this.boneTexture.lock(),this.boneTexture.unlock())}}},,,,(e,t,n)=>{n.d(t,{a:()=>y,b:()=>g,c:()=>b,d:()=>P,e:()=>x});var i=n(2),r=n(0),s=n(1);const a=new Set;class o{constructor(e,t){this.id=e.keyId,this.curve=e,this.value=null,this._value=null,this.target=t,this.idx=-1,this.interoplateType=0,this.dirty=!1}set(e){this.dirty=this.dirty||e!==this._value||this.curve.targetsLocalEulerAnglesRaw,this._value=e,this.value=e}}let l=null;pc.waitForMecanim.then((e=>{l=e}));let c=null;class u{constructor(){this.weight=!1,this.additive=!1}}class h{constructor(){this.applyRootMotion=!1,this.hasTransformHierarchy=!1,this.supportsOnAnimatorMove=!1,this.layers=[]}getLayer(e){return e>this.layers.length?(this.layers.length=e,this.layers[e]=new u):this.layers[e]||(this.layers[e]=new u),this.layers[e]}}class d{constructor(e){this.animator=e,this.animatorCS=e.code,this.animatorCache=new h,this.transformHierarchy=new x(e.entity),this.animatorWASM=new l.Animator(this.animatorCS.name,this.animatorCS.GetInstanceID(),this.transformHierarchy.rootT),this.graph=new b,this.graph.initializeGraph(this.animatorCS),this.isDirty=!0}awakeFromLoad(){this.animatorWASM.awakeFromLoad()}deactivate(){this.animatorWASM.deactivate()}rebind(e){this.animatorWASM.rebind(e)}updateLayers(){this.graph.rebuildGraph(this.animatorCS),this.setDirty()}updateAvatar(e){this.animatorWASM.setAvatar(e.native),this.setDirty()}updateAnimationSet(e){const t=c||(c={motions:new l.AnimationClipVector},c);t.motions.resize(0,null);for(let n=0;n<e.length;n++){const i=e[n];i&&i.native&&t.motions.push_back(i.native)}this.animatorWASM.setMotions(t.motions),this.setDirty()}updateBindings(){this.animatorCache=new h,this.animatorWASM.rebind(!1),this.graph.setDirty(),this.isDirty=!1}sync(){const e=this.animatorCS,t=this.animatorCache;t.applyRootMotion!==e&&(this.animatorWASM.setApplyRootMotion(e.applyRootMotion),t.applyRootMotion=e.applyRootMotion),t.hasTransformHierarchy!==e.hasTransformHierarchy&&(this.animatorWASM.setHasTransformHierarchy(e.hasTransformHierarchy),t.hasTransformHierarchy=e.hasTransformHierarchy);const n=this.animator.entity.hasMagicMethod("OnAnimatorMove");t.supportsOnAnimatorMove!==n&&(this.animatorWASM.setSupportsOnAnimatorMove(this.animator.entity.hasMagicMethod("OnAnimatorMove")),t.supportsOnAnimatorMove=n);const i=this.animatorCS.stateMachines;for(let e=0;e<i.length;e++)this.synchronizeLayerParameters(e,i[e],this.graph);this.isDirty&&this.updateBindings()}synchronizeLayerParameters(e,t,n){const i=n.layerMixer,r=this.animatorCache.getLayer(e),s=0===e?1:t.layer.defaultWeight;r.weight!==s&&(i.setInputWeight(e,s),r.weight=s),r.additive!==t.layer.isAdditive&&(i.setLayerAdditive(e,t.layer.isAdditive),r.additive=t.layer.isAdditive);const a=n.getLayerPlayables(e);this.synchronizeLayerStateParameters(t,a)}synchronizeLayerStateParameters(e,t){let n=e.state,i=e.stateMotion,r=t.first;const s=t.mixer;n&&(r.setParameters(i&&i.native?i.native:null,n.speed*n.speedMultiplier,n.state.mirror,n.cycleOffset,n.state.writeDefaultValues),s.setInputWeight(0,1)),n=e.nextState,i=e.nextStateMotion,r=t.second,n?(r.setParameters(i&&i.native?i.native:null,n.speed*n.speedMultiplier,n.state.mirror,n.cycleOffset,n.state.writeDefaultValues),e.transition&&(s.setInputWeight(0,e.transition.FromAlpha),s.setInputWeight(1,e.transition.ToAlpha))):(r.setParameters(null,1,!1,0,!1),s.setInputWeight(1,0))}prepare(e){this.sync(),this.graph.layerMixer.onAdvanceTime(e);for(let t=0;t<this.animatorCS.stateMachines.length;t++){const n=this.animatorCS.stateMachines[t],i=this.graph.getLayerPlayables(t);i.mixer.onAdvanceTime(e),i.first.onAdvanceTime(e),i.second.onAdvanceTime(e),i.first.setTime(n.state.time),i.second.setTime(n.nextState?n.nextState.time:0)}}syncJsToWasm(){this.transformHierarchy.syncHierarchyToWASM()}syncWasmToJs(){this.transformHierarchy.syncHierarchyToJS()}fkPass(e){l.Animator.fkPass(this.animatorWASM,this.graph.layerMixer,e)}ikPass(e){l.Animator.ikPass(this.animatorWASM,this.graph.layerMixer,e)}applyOnAnimationMove(e,t){l.Animator.applyOnAnimatorMove(this.animatorWASM,e,t)}applyBuiltinRootMotion(e){this.animatorWASM.applyBuiltinRootMotion(e)}free(){this.graph.dispose(),this.animatorWASM.delete(),this.animatorWASM=null,this.transformHierarchy.dispose(),this.transformHierarchy=null}setDirty(){this.isDirty=!0}get rootMotionTargetRotation(){const e=new r.j,t=this.animatorWASM.getBuiltinRootMotionTargetRotationJS();return P.readFloat4(t,e),e}get angularVelocity(){const e=new r.m,t=this.animatorWASM.getAngularVelocityJS();return P.readFloat3(t,e),e}get bodyPosition(){const e=new r.m,t=this.animatorWASM.getBodyRotationJS();return P.readFloat3(t,e),e}get bodyRotation(){const e=new r.j,t=this.animatorWASM.getBodyRotationJS();return P.readFloat4(t,e),e}get deltaPosition(){const e=new r.m,t=this.animatorWASM.getDeltaPositionJS();return P.readFloat3(t,e),e}get deltaRotation(){const e=new r.j,t=this.animatorWASM.getDeltaRotationJS();return P.readFloat4(t,e),e}get gravityWeight(){return this.animatorWASM.getGravityWeightJS()}get pivotPosition(){const e=new r.m,t=this.animatorWASM.getPivotPositionJS();return P.readFloat3(t,e),e}get pivotWeight(){return this.animatorWASM.getPivotWeightJS()}get targetPosition(){const e=new r.m,t=this.animatorWASM.getTargetPositionJS();return P.readFloat3(t,e),e}get targetRotation(){const e=new r.j,t=this.animatorWASM.getTargetRotationJS();return P.readFloat4(t,e),e}get velocity(){const e=new r.m,t=this.animatorWASM.getVelocityJS();return P.readFloat3(t,e),e}get animatorGraph(){return this.graph}get hierarchy(){return this.transformHierarchy}}let m=null;pc.waitForMecanim.then((e=>{m=e}));class g extends s.k{constructor(){super(),this.wasmSampler=null,this.code=UnityEngine.Object.FromHandle(UnityEngine.Animator,this)}onEnable(){return!!super.onEnable()&&(this.code.OnEnable(),!0)}onUpdate(e){this.code.AddTime(e)}onDestroy(){return this.wasmSampler&&(this.wasmSampler.free(),this.wasmSampler=null),super.onDestroy()}onTransformChildrenChanged(){this.hasWASMSampler()&&this.wasmSampler.hierarchy.rebuildTransformHierarchy()}_queuesToSubscribe(){return["onUpdate"]}hasWASMSampler(){return!!this.wasmSampler}getWASMSampler(){return this.wasmSampler}createWASMSampler(){if(this.hasWASMSampler())throw Error("Sampler exists. Please destroy previous one before new one creation!");this.wasmSampler=new d(this)}destroyWASMSampler(){this.wasmSampler&&(this.wasmSampler.free(),this.wasmSampler=null)}updateAnimatorController(){this.wasmSampler&&this.wasmSampler.updateLayers()}updateAvatar(e){this.wasmSampler&&this.wasmSampler.updateAvatar(e)}updateAnimationSet(e){this.wasmSampler&&this.wasmSampler.updateAnimationSet(e)}layerStateChanged(e){this.wasmSampler&&this.wasmSampler.animatorGraph.getLayerPlayables(e).swap()}}g.isMecanimWASMModuleProvided=function(){return!!m};let $=null;pc.waitForMecanim.then((e=>{$=e}));class p extends s.j{constructor(e){super(e),this.id="animator",this.performanceSamplerSection=s.d.ANIMATORS,$&&$.StaticInitializer.initialize()}destroy(){$&&$.StaticInitializer.cleanup(),super.destroy()}}class y extends s.k{constructor(){}onEnable(){return!!super.onEnable()&&(this.code.OnEnable(),!0)}onUpdate(e){this.code.AddTime(e)}_queuesToSubscribe(){return["onUpdate"]}}class f extends s.j{constructor(e){super(e),this.id="animation",this.performanceSamplerSection=s.d.ANIMATIONS}}let _=null;pc.waitForMecanim.then((e=>{_=e}));class S{constructor(){this.firstClipPlayable=null,this.secondClipPlayable=null,this.clipMixerPlayable=null,this.disposed=!1,this.initialize()}swap(){const e=this.firstClipPlayable,t=this.secondClipPlayable;this.firstClipPlayable=t,this.secondClipPlayable=e,this.clipMixerPlayable.swapInputs()}initialize(){this.firstClipPlayable=new _.AnimationClipSampler,this.secondClipPlayable=new _.AnimationClipSampler,this.clipMixerPlayable=new _.AnimationClipMixer,_.SamplerBase.connectNoTopologyChange(this.firstClipPlayable,this.clipMixerPlayable,-1,-1),_.SamplerBase.connectNoTopologyChange(this.secondClipPlayable,this.clipMixerPlayable,-1,-1)}dispose(){this.disposed||(this.disposed=!0,this.firstClipPlayable.dispose(),this.firstClipPlayable.delete(),this.firstClipPlayable=null,this.secondClipPlayable.dispose(),this.secondClipPlayable.delete(),this.secondClipPlayable=null,this.clipMixerPlayable.dispose(),this.clipMixerPlayable.delete(),this.clipMixerPlayable=null)}get first(){return this.firstClipPlayable}get second(){return this.secondClipPlayable}get mixer(){return this.clipMixerPlayable}}class b{constructor(){this.layersMixerPlayable=null,this.layers=[],this.initialized=!1}rebuildGraph(e){this.dispose(),this.initializeGraph(e)}initializeGraph(e){if(this.initialized)return;this.layersMixerPlayable=new _.AnimationLayerMixer;const t=e.stateMachines.length;this.layers.length=t;for(let t=0;t<e.stateMachines.length;t++){const e=this.layers[t]=new S;_.SamplerBase.connectNoTopologyChange(e.mixer,this.layersMixerPlayable,-1,-1)}this.initialized=!0}dispose(){if(this.initialized){this.initialized=!1;for(const e of this.layers)e.dispose();this.layers.length=0,this.layersMixerPlayable.dispose(),this.layersMixerPlayable.delete(),this.layersMixerPlayable=null}}checkInitialized(){if(!this.initialized)throw Error("Animator graph is not initialized. Please initialize it before!")}getLayerPlayables(e){if(this.checkInitialized(),e>this.layers.length)throw new RangeError("Layer index is out of the range");return this.layers[e]}setDirty(){this.layersMixerPlayable.setDirty();for(const e of this.layers)e.first.setDirty(),e.second.setDirty(),e.mixer.setDirty()}get layerMixer(){return this.checkInitialized(),this.layersMixerPlayable}}let C=null;pc.waitForMecanim.then((e=>{C=e}));const E=new r.m,T=new r.j,v=new r.m;class I{constructor(e,t){this.node=e,this.transform=t,this.aabbVersion=-1}}class x{constructor(e){if(!e)throw ReferenceError("Object reference not set to an instance of an object.");this.app=pc.Application.getApplication(),this.node=e,this.hierarchy=null,this.hierarchyHeadPointer=0,this.rebuildTransformHierarchy()}rebuildTransformHierarchy(){this.hierarchy&&this.destroyTransformHierarchy();const e=new I(this.node,new C.Transform(this.node.name,this.node.$id));this.hierarchy=[e],this.buildHierarchyRecursive(e,this.hierarchy),this.hierarchyHeadPointer=e.transform.getLocalTransforms()}dispose(){this.hierarchy&&this.destroyTransformHierarchy()}syncHierarchyToJS(e=!1){const t=this.hierarchyHeadPointer,n=this.hierarchy.length,i=P.trsXSize;let r=!1;for(let a=e?1:0;a<n;++a){const e=t+i*a;P.readTRS(e,E,T,v);const n=this.hierarchy[a],o=n.node;o._localPosition.approximatelyEquals(E,Number.EPSILON)||(o.setLocalPositionGraphNodeNoDirty(E.x,E.y,E.z),o.flags|=s.g.PositionDirty,r=!0),o._localRotation.approximatelyEquals(T,Number.EPSILON)||(o.setLocalRotationNoDirty(T.x,T.y,T.z,T.w),o.flags|=s.g.RotationDirty,r=!0),o._localScale.approximatelyEquals(v,Number.EPSILON)||(o.setLocalScaleNoDirty(v.x,v.y,v.z),o.flags|=s.g.ScaleDirty,r=!0),r&&(o.increaseTransformVersion(),n.aabbVersion=o._aabbVer)}r&&(this.app.systems.physics.syncTransforms(this.hierarchy[0].node),this.app.systems.physics2D.syncTransforms(this.hierarchy[0].node))}syncHierarchyToWASM(e=!1){const t=this.hierarchyHeadPointer,n=this.hierarchy.length,i=P.trsXSize;for(let r=e?1:0;r<n;++r){const e=t+i*r,n=this.hierarchy[r],s=this.hierarchy[r].node;n.aabbVersion!==s._aabbVer&&(n.aabbVersion=s._aabbVer,P.writeTRS(e,s.localPosition,s.localRotation,s.localScale))}}buildHierarchyRecursive(e,t){for(const n of e.node.children){const i=new I(n,new C.Transform(n.name,n.$id));i.transform.setParent(e.transform),t.push(i),this.buildHierarchyRecursive(i,this.hierarchy)}}destroyTransformHierarchy(){for(const e of this.hierarchy)e.transform.delete();this.hierarchy.length=0,this.hierarchy=null}get rootT(){return this.hierarchy.length>0?this.hierarchy[0].transform:null}}let A=null,w=null;pc.waitForMecanim.then((e=>{e&&(A=e,w=A.HEAPF32)}));const D=function(e){if(e<=0)throw Error(`Invalid pointer ${e}!`)},M=function(e){return e>>2},P={readFloat3:function(e,t){D(e);const n=M(e);t.x=w[n],t.y=w[n+1],t.z=w[n+2]},writeFloat3:function(e,t){D(e);const n=M(e);w[n]=t.x,w[n+1]=t.y,w[n+2]=t.z},readFloat4:function(e,t){D(e);const n=M(e);t.x=w[n],t.y=w[n+1],t.z=w[n+2],t.w=w[n+3]},writeFloat4:function(e,t){D(e);const n=M(e);w[n]=t.x,w[n+1]=t.y,w[n+2]=t.z,w[n+3]=t.w},readTRS:function(e,t,n,i){D(e);const r=M(e);t.x=w[r],t.y=w[r+1],t.z=w[r+2],n.x=w[r+3],n.y=w[r+4],n.z=w[r+5],n.w=w[r+6],i.x=w[r+7],i.y=w[r+8],i.z=w[r+9]},writeTRS:function(e,t,n,i){D(e);const r=M(e);w[r]=t.x,w[r+1]=t.y,w[r+2]=t.z,w[r+3]=n.x,w[r+4]=n.y,w[r+5]=n.z,w[r+6]=n.w,w[r+7]=i.x,w[r+8]=i.y,w[r+9]=i.z},trsXSize:40};pc.CurveSampler=class{constructor(){this.keys={},this.keyArray=[],this.eventsMemo={},this.events=[],this.aQuat=new r.j,this.bQuat=new r.j,this.resultQuat=new r.j,this.copiedFrom={},this.id=(0,i.b)(),this.targetObjectsSet=!1,this.cycleNumber=0}putKey(e){this.keys[e.id]=e,this.keyArray.push(e)}pushEvent(e){e.id=e.id||(0,i.b)(),this.eventsMemo[e.id]||(this.eventsMemo[e.id]=!0,this.events.push(e))}popEvents(){const e=this.events;return this.events=[],e}recycleEvents(){let e=-1;for(let t=0;t<this.events.length;t++)e=Math.max(e,this.events[t].time);return this.events=[],this.eventsMemo={},e}copyKeysFromSampler(e){for(let t=0;t<e.keyArray.length;t++){const n=e.keyArray[t];this.keys[n.id]||this.putKey(new o(n.curve,n.target))}this.copiedFrom[e.id]=!0,this.targetObjectsSet=!1}blendSamplers(e,t,n,i){this.copiedFrom[e.id]||this.copyKeysFromSampler(e),this.copiedFrom[n.id]||this.copyKeysFromSampler(n);const r=i/(t+i);if(!Number.isNaN(r)){s.d.instance.recordActiveBlendState();for(let t=0;t<this.keyArray.length;t++){const i=this.keyArray[t],s=e.keys[i.id],a=n.keys[i.id];if(!s||!a){const e=s||a;i.set(e.value);continue}0===i.interoplateType&&(i.interoplateType=this.figureInterpolateType(i.curve,i));const o=s.value,l=a.value;switch(i.interoplateType){case 1:{const i=this.keyArray[t+0],s=this.keyArray[t+1],a=this.keyArray[t+2],o=this.keyArray[t+3];null===this.aQuat?this.resultQuat=this.bQuat:null===this.bQuat?this.resultQuat=this.aQuat:(this.aQuat.x=e.keys[i.id].value,this.aQuat.y=e.keys[s.id].value,this.aQuat.z=e.keys[a.id].value,this.aQuat.w=e.keys[o.id].value,this.bQuat.x=n.keys[i.id].value,this.bQuat.y=n.keys[s.id].value,this.bQuat.z=n.keys[a.id].value,this.bQuat.w=n.keys[o.id].value,this.resultQuat=this.resultQuat.slerp(this.aQuat,this.bQuat,r)),i.set(this.resultQuat.x),s.set(this.resultQuat.y),a.set(this.resultQuat.z),o.set(this.resultQuat.w),t+=3}break;case 3:i.set(l);break;case 2:{let e=(1-r)*o+r*l;Object.is(e,-0)&&(e=0),i.set(e)}}}}}figureInterpolateType(e,t){const n=t.curve.targetObject;return t.target&&null!==t.target[n]&&void 0!==t.target[n]&&t.target[n].constructor===r.j||"m_LocalRotation"===n?1:e.objectCurve?3:2}ensureTargetObjects(e){e.__defaults__=e.__defaults__||{};for(let t=0;t<this.keyArray.length;t++){const n=this.keyArray[t];if(n.target||(n.target=this.findTargetObject(e.handle,n.curve),n.interoplateType=this.figureInterpolateType(n.curve,n)),n.target&&!e.__defaults__.hasOwnProperty(n.id)){const t=new o(n.curve,n.target);if(n.curve.targetObject){if(!n.target[n.curve.targetObject])continue;n.curve.isMaterialPropertyCurve?this.setMaterialProperty(t,n):this.setObjectProperty(t,n)}else t.value=n.target[n.curve.targetProperty];e.__defaults__[t.id]=t}}this.targetObjectsSet=!0}findTargetObject(e,t){const n=t.path.split("/");for(let t=0;t<n.length&&e;t++)n[t].length>0&&(e=e.findByNameImmediate(n[t]));if(!e)return null;if("UnityEngine.GameObject"===t.componentType)return UnityEngine.Object.FromHandle(UnityEngine.GameObject,e);const i=Bridge._getTypeByName(t.componentType);return UnityEngine.Object.FromHandle(UnityEngine.GameObject,e).GetComponent(i)}setMaterialProperty(e,t){const n=t.target[t.curve.targetObject],i=t.curve.targetProperty,r=n.handle.parameters[i];if(!r)return;const s=r.data;t.curve.isVectorProperty?e.value=s[t.curve.vectorPropertyIndex]:e.value=s}setObjectProperty(e,t){e.value=t.target[t.curve.targetObject][t.curve.targetProperty]}applyKey(e){if(!e.target)return;let t=e.target[e.curve.targetObject];if(!t)return void(e.target[e.curve.targetProperty]=e.value);const n=e.curve.targetProperty;if(e.curve.isMaterialPropertyCurve){t=e.target[e.curve.targetObject].handle.parameters;const i=t[n];i&&(e.curve.isVectorProperty?(i.data[e.curve.vectorPropertyIndex]=e.value,i.scopeId&&i.scopeId.versionObject.increment()):i.data=e.value)}else t[e.curve.targetProperty]=e.value}getOrCreateKey(e,t){let n=this.keys[t];return n||(n=new o(e,void 0),this.putKey(n)),n}writeDefaults(e){if(e.__defaults__)for(const t in e.__defaults__){const n=e.__defaults__[t];this.applyKey(n);const i=n.target;i.OnDidApplyAnimationProperties&&i.OnDidApplyAnimationProperties(),i.entity&&i.entity.releaseHijackedProperties()}}apply(e){this.targetObjectsSet||this.ensureTargetObjects(e),a.clear(),s.d.instance.recordAnimatedParameters(this.keyArray.length);for(let e=0;e<this.keyArray.length;e++){const t=this.keyArray[e];t.dirty&&(t.dirty=!1,s.d.instance.recordAnimationKeys(t.curve.keys.length),t.target&&t.curve.targetObject&&!t.target[t.curve.targetObject]?(UnityEngine.Debug.LogWarning$1(`AnimationKey issue: Target: ${t.target.name}, TargetObj: ${t&&t.target?t.target.$$fullname:"null"}, TargetField: ${t&&t.curve?t.curve.targetObject:"null"}`),this.keyArray.splice(e,1),e--):(t.target&&(t.target.OnDidApplyAnimationProperties||t.target.entity)&&a.add(t.target),this.applyKey(t)))}for(const e of a)e.OnDidApplyAnimationProperties&&e.OnDidApplyAnimationProperties(),e.entity&&e.entity.releaseHijackedProperties()}},pc.AnimatorComponent=g,pc.AnimatorSystem=p,pc.AnimationComponent=y,pc.AnimationSystem=f,pc.AnimatorWASMSampler=d},,,(e,t,n)=>{n.d(t,{a:()=>i});class i{constructor(){this.list=[],this.map={}}getSystemByName(e){const t=this.map[e];if(!t)throw Error(`Unknown system "${e}"`);return t}get animation(){return this.map.animation}get animator(){return this.map.animator}get audiosourceunity(){return this.map.audiosourceunity}get monoBehaviour(){return this.map.monoBehaviour}get camera(){return this.map.camera}get element(){return this.map.element}get canvasRenderer(){return this.map.canvasRenderer}get light(){return this.map.light}get meshFilter(){return this.map.meshFilter}get particlesystem(){return this.map.particlesystem}get particleSystemRenderer(){return this.map.particleSystemRenderer}get physics(){return this.map.physics}get collider(){return this.map.collider}get joint(){return this.map.joint}get rigidbody(){return this.map.rigidbody}get physics2D(){return this.map.physics2D}get collider2D(){return this.map.collider2D}get effector2D(){return this.map.effector2D}get joint2D(){return this.map.joint2D}get rigidbody2D(){return this.map.rigidbody2D}get reflectionprobe(){return this.map.reflectionprobe}get renderer(){return this.map.renderer}get screen(){return this.map.screen}get unitymanager(){return this.map.unitymanager}get videoPlayer(){return this.map.videoPlayer}get sortingGroup(){return this.map.sortingGroup}get skybox(){return this.map.skybox}get unity(){return this.map.unity}add(e){const t=e.id;if(this.map[t])throw Error(`ComponentSystem name "${t}" already registered or not allowed`);this.map[t]=e,this.list.push(e)}remove(e){const t=e.id;if(!this.map[t])throw Error(`No ComponentSystem named "${t}" registered"`);this.map[t]=null;const n=this.list.indexOf(this.map[t]);-1!==n&&this.list.splice(n,1)}}},(e,t,n)=>{n.d(t,{a:()=>r});const i=function(e,t){const n=e.internalExecutionOrder-t.internalExecutionOrder;return 0!==n?n:e._scriptsExecutionOrder-t._scriptsExecutionOrder};class r{constructor(){this._components=[],this._needsSort=!1,this.processing=!1}push(e){e._scriptsExecutionOrder=4294967296*(e.scriptsExecutionOrder+32768)+(e.sortingOrderInQueue+2147483648),0!==this._components.length&&e._scriptsExecutionOrder<this._components[this._components.length-1]._scriptsExecutionOrder&&(this._needsSort=!0),this._components.push(e)}getComponents(){return this._needsSort&&(this._needsSort=!1,this._components.sort(i)),this._components.slice()}delete(e){for(let t=0;t<this._components.length;t++)if(e===this._components[t]._id)return void this._components.splice(t,1)}clear(){this._components.length=0}get length(){return this._components.length}}},(e,t,n)=>{n.d(t,{a:()=>i,b:()=>r});class i{constructor(e,t,n){this.scopeId=e,this.data=t,this.passFlags=n}}class r{constructor(){this.parameters={},this.batchId=0}getParameter(e){const t=this.parameters[e];return t?t.data:null}setParameter(e,t,n=-524285){const r=this.parameters[e];r?(r.data=t,r.passFlags=n):this.parameters[e]=new i(null,t,n),this.batchId=0}deleteParameter(e){this.parameters[e]&&(delete this.parameters[e],this.batchId=0)}}}]]),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[3],{},e=>{e.O(0,[1],(()=>e(e.s=2))),e.O()}]),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[6],{},e=>{e.O(0,[1],(()=>e(e.s=0))),e.O()}]),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[5],{},e=>{e.O(0,[1],(()=>e(e.s=45))),e.O()}]),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[4],{},e=>{e.O(0,[1],(()=>e(e.s=1))),e.O()}]),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[11],{},e=>{e.O(0,[1],(()=>e(e.s=5))),e.O()}]),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[10],{},e=>{e.O(0,[1],(()=>e(e.s=42))),e.O()}]),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[2],{},e=>{e.O(0,[1],(()=>e(e.s=55))),e.O()}]),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[14],{},e=>{e.O(0,[1],(()=>e(e.s=43))),e.O()}]),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[13],{57:(e,t,n)=>{var i=n(1),r=n(0),s=n(5);class a{constructor(e){this.application=e,this.network=e.network,this.objectSpace=e.objectSpace,this.registry=this.objectSpace.getRegistry()}get app(){return this.application.app}get graphicsDevice(){return this.app.graphicsDevice}loadAsync(e,t,n){throw Error("Not Implemented")}unloadAsync(e){throw Error("Not Implemented")}}var o=n(55),l=n(2),c=n(43);const u=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Scene.GameObject"],h=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.Transform"],d=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.Animator"],m=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.Animation"],g=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.Canvas"],$=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.CanvasGroup"],p=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.RectTransform"],y=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.Camera"],f=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.AudioSource"],_=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.Light"],S=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.MeshFilter"],b=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.MeshRenderer"],C=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.ParticleSystemRenderer"],E=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.SkinnedMeshRenderer"],T=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.SpriteRenderer"],v=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.SpriteMask"],I=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.Rigidbody"],x=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.BoxCollider"],A=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.SphereCollider"],w=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.MeshCollider"],D=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.CapsuleCollider"],M=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.Rigidbody2D"],P=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.BoxCollider2D"],U=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.CircleCollider2D"],B=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.CapsuleCollider2D"],O=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.EdgeCollider2D"],L=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.PolygonCollider2D"],R=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.SpringJoint2D"],F=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.DistanceJoint2D"],G=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.FixedJoint2D"],k=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.HingeJoint2D"],V=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.WheelJoint2D"],N=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.FrictionJoint2D"],z=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.RelativeJoint2D"],H=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.SliderJoint2D"],j=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.TargetJoint2D"],Z=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.LineRenderer"],q=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.TrailRenderer"],K=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.PlatformEffector2D"],W=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Components.SortingGroup"];class J extends a{fork(){const e=new J(this.application);return e.registry=e.registry.Clone().AllowUpdate(),e}loadAsync(e,t,n){if(this.app.systems.monoBehaviour.creatingPrefabs){const e={isPrefabProxy:!0,prefab:t};return this.registry.Put(t.id,e)}const i=this._loadObject(e,e.root,t,this.registry);return i.isPrefab=this.app.systems.monoBehaviour.creatingPrefabs,i.objectJson=t,i}_loadObject(e,t,n,r,s=!1){if(r.Has(n.id)&&!r.updatesAllowed){const e=r.Get(n.id);if(!e.isPrefabProxy)return e;r.Release(n.id)}const a=n.data,o=new i.f(a[u.name],this.app,s||this.app.systems.monoBehaviour.creatingPrefabs);o.enabled=!!a[u.enabled],o.cullingLayer=a[u.layer],o.static=!!a[u.isStatic],o.tag=i.i.instance.allTagsInProject[a[u.tagId]],o._graphDepth=t?t.graphDepth+1:0,o.isPrefab&&(o.objectJson=n);const l=n.children;for(let t=0;t<l.length;t++)this._loadObject(e,o,l[t],this.registry);const c=n.components,h=Deserializers.typeNameToIdMap["UnityEngine.CanvasRenderer"];for(let e=0;e<c.length;e++)c[e].type===h&&e>1&&([c[1],c[e]]=[c[e],c[1]]);for(let t=0;t<c.length;t++)this._loadComponent(e,o,c[t],this.registry),o.flags|=i.g.TransformDirty;return t&&t.addChild(o,!0),r.Put(n.id,o)}unloadAsync(e){for(let t=0;t<e.components.length;t++)this.registry.Release(e.components[t].id);for(let t=0;t<e.children.length;t++)this.unloadAsync(e.children[t])}_loadComponent(e,t,n,i){let r=null;switch(Deserializers.types[n.type]){case"UnityEngine.Transform":r=this._loadTransformComponent(e,t,n,i);break;case"UnityEngine.Animator":r=this._loadAnimatorComponent(e,t,n,i);break;case"UnityEngine.Animation":r=this._loadAnimationComponent(e,t,n,i);break;case"UnityEngine.Canvas":r=this._loadCanvasComponent(e,t,n,i);break;case"UnityEngine.CanvasGroup":r=this._loadCanvasGroupComponent(e,t,n,i);break;case"UnityEngine.EventSystems.UIBehaviour":r=this._loadUIBehaviourComponent(e,t,n,i);break;case"UnityEngine.TextMesh":r=this._loadTextMesh(e,t,n,i);break;case"UnityEngine.RectTransform":r=this._loadRectTransformComponent(e,t,n,i);break;case"UnityEngine.Camera":r=this._loadCameraComponent(e,t,n,i);break;case"UnityEngine.Video.VideoPlayer":r=this._loadVideoPlayerComponent(e,t,n,i);break;case"UnityEngine.AudioSource":r=this._loadAudioSourceComponent(e,t,n,i);break;case"UnityEngine.Light":r=this._loadLightComponent(e,t,n,i);break;case"UnityEngine.MeshFilter":r=this._loadMeshFilterComponent(e,t,n,i);break;case"UnityEngine.SkinnedMeshRenderer":r=this._loadSkinnedMeshRendererComponent(e,t,n,i);break;case"UnityEngine.MeshRenderer":r=this._loadMeshRendererComponent(e,t,n,i);break;case"UnityEngine.SpriteRenderer":r=this._loadSpriteRendererComponent(e,t,n,i);break;case"UnityEngine.SpriteMask":r=this._loadSpriteMaskComponent(e,t,n,i);break;case"UnityEngine.MonoBehaviour":r=this._loadMonoBehaviourComponent(e,t,n,i);break;case"UnityEngine.Rigidbody":r=this._loadRigidbodyComponent(e,t,n,i);break;case"UnityEngine.BoxCollider":r=this._loadBoxColliderComponent(e,t,n,i);break;case"UnityEngine.SphereCollider":r=this._loadSphereColliderComponent(e,t,n,i);break;case"UnityEngine.MeshCollider":r=this._loadMeshColliderComponent(e,t,n,i);break;case"UnityEngine.CapsuleCollider":r=this._loadCapsuleColliderComponent(e,t,n,i);break;case"UnityEngine.WheelCollider":r=this._loadWheelColliderComponent(e,t,n,i);break;case"UnityEngine.CharacterController":r=this._loadCharacterControllerComponent(e,t,n,i);break;case"UnityEngine.Rigidbody2D":r=this._loadRigidbody2DComponent(e,t,n,i);break;case"UnityEngine.BoxCollider2D":r=this._loadBoxCollider2DComponent(e,t,n,i);break;case"UnityEngine.CircleCollider2D":r=this._loadCircleCollider2DComponent(e,t,n,i);break;case"UnityEngine.CapsuleCollider2D":r=this._loadCapsuleCollider2DComponent(e,t,n,i);break;case"UnityEngine.EdgeCollider2D":r=this._loadEdgeCollider2DComponent(e,t,n,i);break;case"UnityEngine.PolygonCollider2D":r=this._loadPolygonCollider2DComponent(e,t,n,i);break;case"UnityEngine.SpringJoint2D":r=this._loadSpringJoint2DComponent(e,t,n,i);break;case"UnityEngine.DistanceJoint2D":r=this._loadDistanceJoint2DComponent(e,t,n,i);break;case"UnityEngine.FixedJoint2D":r=this._loadFixedJoint2DComponent(e,t,n,i);break;case"UnityEngine.HingeJoint2D":r=this._loadHingeJoint2DComponent(e,t,n,i);break;case"UnityEngine.WheelJoint2D":r=this._loadWheelJoint2DComponent(e,t,n,i);break;case"UnityEngine.FrictionJoint2D":r=this._loadFrictionJoint2DComponent(e,t,n,i);break;case"UnityEngine.RelativeJoint2D":r=this._loadRelativeJoint2DComponent(e,t,n,i);break;case"UnityEngine.SliderJoint2D":r=this._loadSliderJoint2DComponent(e,t,n,i);break;case"UnityEngine.TargetJoint2D":r=this._loadTargetJoint2DComponent(e,t,n,i);break;case"UnityEngine.PlatformEffector2D":r=this._loadPlatformEffector2DComponent(e,t,n,i);break;case"UnityEngine.ParticleSystem":r=this._loadParticleSystemComponent(e,t,n,i);break;case"UnityEngine.ParticleSystemRenderer":r=this._loadParticleSystemRendererComponent(e,t,n,i);break;case"UnityEngine.LineRenderer":r=this._loadLineRendererComponent(e,t,n,i);break;case"UnityEngine.CanvasRenderer":r=this._loadCanvasRendererComponent(e,t,n,i);break;case"UnityEngine.TrailRenderer":r=this._loadTrailRendererComponent(e,t,n,i);break;case"UnityEngine.ReflectionProbe":r=this._loadReflectionProbeComponent(e,t,n,i);break;case"UnityEngine.Rendering.SortingGroup":r=this._loadSortingGroupComponent(t,n,i);break;case"UnityEngine.Skybox":r=this._loadSkyboxComponent(e,t,n);break;case"UnityEngine.SpringJoint":case"UnityEngine.FixedJoint":case"UnityEngine.HingeJoint":case"UnityEngine.CharacterJoint":case"UnityEngine.ConfigurableJoint":r=this._loadJointComponent(e,t,n,i)}return r&&(i.Has(n.id)&&i.Release(n.id),i.Put(n.id,r)),r}_loadTransformComponent(e,t,n,r){const s=n.data;return t.setLocalPositionGraphNodeNoDirty(s[h.position+0],s[h.position+1],s[h.position+2]),t.setLocalRotationNoDirty(s[h.rotation+0],s[h.rotation+1],s[h.rotation+2],s[h.rotation+3]),t.setLocalScaleNoDirty(s[h.scale+0],s[h.scale+1],s[h.scale+2]),t.flags|=i.g.TransformDirty,t["__UnityEngine.Transform"]=new UnityEngine.Transform(t),t}_loadAnimatorComponent(e,t,n,i){const r=n.data,s=new o.b;t.addUnityComponentFromDeserialization("animator",s),s._entity=t;const a=new UnityEngine.Animator(s);s._enabled=!!r[d.enabled],s.code=a,a.animatorController=i.TryGet(r[d.animatorController+1]),a.avatar=i.TryGet(r[d.avatar+1]),a.updateMode=r[d.updateMode],a.hasTransformHierarchy=r[d.hasTransformHierarchy],a.hasTransformHierarchy=!!r[d.hasTransformHierarchy],a.applyRootMotion=!!r[d.applyRootMotion];const l=r[d.humanBones],c=s.code.humanBones;for(let t=0;t<l.length;t+=2)e.r(l[t+0],l[t+1],2,c);return s}_loadAnimationComponent(e,t,n,i){for(let e=0;e<a.length;e+=2){const t=i.Get(a[e+1]);s.add(t)}const l=new o.a;l._enabled=!!r[m.enabled],l._entity=t,t.addUnityComponentFromDeserialization("animation",l);const c=l["__UnityEngine.Animation"];return c.playAutomatically=r[m.playAutomatically],c.clip=i.TryGet(r[m.clip+1]),c.clips=s,c.wrapMode=r[m.wrapMode],l.code=c,l}_loadCanvasComponent(e,t,n,r){const s=i.h.create(t,Deserializers.types[n.type],!!n.data[g.enabled]);return s.code.ConfigureForEntity(t),t.screen.$id=n.id,t.addUnityComponentFromDeserialization("monoBehaviour",s),s.code.enabled=n.data[g.enabled],s.code.internalExecutionOrder=0,e.deserializeTo(n.data,s.code,"Luna.Unity.DTO.UnityEngine.Components.Canvas"),s}_loadCanvasGroupComponent(e,t,n,r){const s=i.h.create(t,Deserializers.types[n.type],n.data[$.enabled]);return s.code.code=s.code,e.deserializeTo(n.data,s.code,"Luna.Unity.DTO.UnityEngine.Components.CanvasGroup"),t.addUnityComponentFromDeserialization("monoBehaviour",s),s}_loadUIBehaviourComponent(e,t,n,r){const s=Deserializers.types[n.class],a=i.h.create(t,s,n.enabled);return a?(a.code.ConfigureForEntity(t),e.deserializeTo(n.data,a.code),t.addUnityComponentFromDeserialization("monoBehaviour",a),a):null}_loadTextMesh(e,t,n,r){const s=i.h.create(t,Deserializers.types[n.type],!0);return s?(s.code.ConfigureForEntity(t),e.deserializeTo(n.data,s.code,"Luna.Unity.DTO.UnityEngine.Components.TextMesh"),t.addUnityComponentFromDeserialization("monoBehaviour",s),s):null}_loadRectTransformComponent(e,t,n,s){const a=n.data;t.addComponent("element",{pivot:new r.l(a[p.pivot+0],a[p.pivot+1]),anchor:new r.n(a[p.anchorMin+0],a[p.anchorMin+1],a[p.anchorMax+0],a[p.anchorMax+1]),sizeDelta:new r.l(a[p.sizeDelta+0],a[p.sizeDelta+1]),anchoredPosition:new r.l(a[p.anchoredPosition3D+0],a[p.anchoredPosition3D+1])}),t.element._width=t.element.sizeDelta.x,t.element._height=t.element.sizeDelta.y;const o=t.getLocalPosition();return t.setLocalPositionGraphNodeNoDirty(o.x,o.y,a[p.anchoredPosition3D+2]),t.setLocalRotationNoDirty(a[p.rotation+0],a[p.rotation+1],a[p.rotation+2],a[p.rotation+3]),t.setLocalScaleNoDirty(a[p.scale+0],a[p.scale+1],a[p.scale+2]),t.flags|=i.g.TransformDirty,t["__UnityEngine.Transform"]=t["__UnityEngine.RectTransform"]=new UnityEngine.RectTransform(t),t}_loadCameraComponent(e,t,n,i){const s=n.data,a=s[y.rect];return t.addComponent("camera",{enabled:!!s[y.enabled],clearColor:new r.d(s[y.backgroundColor+0],s[y.backgroundColor+1],s[y.backgroundColor+2],s[y.backgroundColor+3]),aspectRatio:this.graphicsDevice.width/this.graphicsDevice.height,fov:s[y.fieldOfView],nearClip:s[y.nearClipPlane],farClip:s[y.farClipPlane],clearFlags:s[y.clearFlags],projection:s[y.orthographic]?l.c.PROJECTION_ORTHOGRAPHIC:l.c.PROJECTION_PERSPECTIVE,orthoHeight:s[y.orthographicSize],priority:s[y.depth],cullingMask:s[y.cullingMask],rect:new r.n(a[0],a[1],a[2],a[3]),usePhysicalProperties:s[y.usePhysicalProperties],focalLength:s[y.focalLength],sensorSize:new r.l(s[y.sensorSize+0],s[y.sensorSize+1]),lensShift:new r.l(s[y.lensShift+0],s[y.lensShift+1]),gateFit:s[y.gateFit]}),s[y.targetTexture+1]&&e&&(UnityEngine.Object.FromHandle(UnityEngine.Camera,t.camera).targetTexture=e,t.camera.aspectRatio=1*e.handle.width/e.handle.height),t.camera}_loadVideoPlayerComponent(e,t,n,i){return o.ConfigureForEntity(t),a.code=o,t.addUnityComponentFromDeserialization("videoPlayer",a),e.deserializeTo(r,o,"Luna.Unity.DTO.UnityEngine.Components.VideoPlayer"),a}_loadAudioSourceComponent(e,t,n,i){const r=n.data,s=new c.a({loop:r[f.loop],sound:i.TryGet(r[f.clip+1]),playOnAwake:r[f.playOnAwake],volume:r[f.volume],pitch:r[f.pitch]}),a=s.code,o=i.TryGet(r[f.outputAudioMixerGroup+1]);return a.UpdateOutputGroup(o),t.addUnityComponentFromDeserialization("audiosourceunity",s),s.enabled=!!r[f.enabled],s}_loadLightComponent(e,t,n,i){const s=n.data;return t.addComponent("light",{type:["spot","directional","point",null][s[_.type]],color:new r.d(s[_.color+0],s[_.color+1],s[_.color+2],s[_.color+3]),intensity:s[_.intensity],outerConeAngle:s[_.spotAngle],range:s[_.range],cullingMask:s[_.cullingMask],castShadows:s[_.shadows]!==UnityEngine.LightShadows.None,shadowType:l.c.SHADOW_VSM32,affectDynamic:s[_.lightmapBakeType]!==UnityEngine.LightmapBakeType.Baked,affectLightmapped:s[_.lightmapBakeType]<=UnityEngine.LightmapBakeType.Baked,enabled:!!s[_.enabled],renderMode:s[_.renderMode],cookie:i.TryGet(s[_.cookie+1]),cookieScale:new r.l(s[_.cookieSize],s[_.cookieSize]),shadowsMode:s[_.shadows],shadowStrength:s[_.shadowStrength],shadowBias:s[_.shadowBias],shadowNormalBias:s[_.shadowNormalBias],shadowResolution:s[_.shadowResolution]}),t.light}_loadMeshFilterComponent(e,t,n,i){const r=n.data,a=new s.e;t.addUnityComponentFromDeserialization("meshFilter",a),a.id=n.id;const o=r[S.sharedMesh+1];return a.mesh=i.TryGet(o),o&&!a.mesh&&UnityEngine.Debug.LogWarning$1(`GameObject ${t.name} is missing mesh. Check force excluded assets if it got excluded.`,null,void 0),a}_loadMeshRendererComponent(e,t,n,i){const r=n.data,a=this._loadRendererComponent(b,new s.f,e,t,n,i),o=a.code;return o.lightProbeUsage=r[b.lightProbeUsage],o.reflectionProbeUsage=r[b.reflectionProbeUsage],a}_loadSkinnedMeshRendererComponent(e,t,n,i){const a=n.data,o=a[E.sharedMesh+1];if(!o)return UnityEngine.Debug.LogWarning$1("Missing mesh on skinned mesh. GameObject : "+t.name,null,void 0),null;const l=i.TryGet(o);if(!l)return UnityEngine.Debug.LogWarning$1("Missing mesh on skinned mesh. Please check that it wasn't excluded from build. GameObject : "+t.name,null,void 0),null;const c=this._loadRendererComponent(E,new s.m,e,t,n,i),u=c.model;u.mesh=l;const h=c.code;h.lightProbeUsage=a[E.lightProbeUsage],h.reflectionProbeUsage=a[E.reflectionProbeUsage];const d=a[E.bones];if(0!==d.length){const t=Array(d.length/2),n=[];for(let i=0;i<d.length;i+=2)e.r(!0,d[i+1],2,n),t.push(d[i+1]);c.model.bones=n,c.model.skin=new s.n(this.graphicsDevice,l.bindposes,t),c.__renderer="skinned-mesh";const i=a[E.localBounds];c.model.skin.localBounds=new r.b(new r.m(i[0],i[1],i[2]),new r.m(i[3],i[4],i[5])),c.model.skin.updateWhenOffscreen=!!a[E.updateWhenOffscreen],e.r(!0,a[E.rootBone+1],0,c.model.skin,"rootBone")}const m=a[E.blendShapesWeights];if(0!==m.length){const e=new s.h(l.morph);e._setBaseMesh(l);for(let t=0;t<m.length;t++)e.setWeight(t,m[t][0]);u.morphInstance=e}return c}_loadSpriteRendererComponent(e,t,n,i){const a=n.data,o=this._loadRendererComponent(T,new s.t,e,t,n,i),l=o.code,c=i.TryGet(a[T.sprite+1]);return l.sortingLayerIndex=UnityEngine.SortingLayer.GetLayerValueFromID(a[T.sortingLayerID]),l.sortingOrder=a[T.sortingOrder],l.color=new r.d(a[T.color+0],a[T.color+1],a[T.color+2],a[T.color+3]),l.flipX=a[T.flipX],l.flipY=a[T.flipY],l.drawMode=a[T.drawMode],l.size=new r.l(a[T.size],a[T.size+1]),l.tileMode=a[T.tileMode],l.adaptiveModeThreshold=a[T.adaptiveModeThreshold],l.maskInteraction=a[T.maskInteraction],l.spriteSortPoint=a[T.spriteSortPoint],c&&(l.sprite=UnityEngine.Object.FromHandle(UnityEngine.Sprite,c)),o.__renderer="sprite",o}_loadSpriteMaskComponent(e,t,n,i){const r=n.data,a=this._loadRendererComponent(v,new s.s,e,t,n,i);a._frontSortingLayerID=r[v.frontSortingLayerID],a._frontSortingOrder=r[v.frontSortingOrder],a._backSortingLayerID=r[v.backSortingLayerID],a._backSortingOrder=r[v.backSortingOrder],a._alphaCutoff=r[v.alphaCutoff],a._isCustomRangeActive=r[v.isCustomRangeActive],a._spriteSortPoint=r[v.spriteSortPoint];const o=i.TryGet(r[v.sprite+1]);return o&&(a.sprite=o),a}_loadRigidbodyComponent(e,t,n,i){const r=n.data,s=new pc.RigidbodyComponent({enabled:!0,maxAngularVelocity:r[I.maxAngularVelocity],mass:r[I.mass],drag:r[I.drag],angularDrag:r[I.angularDrag],useGravity:!!r[I.useGravity],isKinematic:!!r[I.isKinematic],constraints:r[I.constraints],collisionDetectionMode:r[I.collisionDetectionMode],interpolation:r[I.interpolation]});return t.addUnityComponentFromDeserialization("rigidbody",s),s}_loadBoxColliderComponent(e,t,n,i){const s=n.data,a=new pc.BoxColliderComponent({enabled:!!s[x.enabled],size:new r.m(s[x.size+0],s[x.size+1],s[x.size+2]),material:i.TryGet(s[x.material+1]),center:new r.m(s[x.center+0],s[x.center+1],s[x.center+2]),isTrigger:!!s[x.isTrigger]});return t.addUnityComponentFromDeserialization("collider",a),a}_loadSphereColliderComponent(e,t,n,i){const s=n.data,a=new pc.SphereColliderComponent({enabled:!!s[A.enabled],radius:s[A.radius],material:i.TryGet(s[A.material+1]),center:new r.m(s[A.center+0],s[A.center+1],s[A.center+2]),isTrigger:!!s[A.isTrigger]});return t.addUnityComponentFromDeserialization("collider",a),a}_loadMeshColliderComponent(e,t,n,i){const r=n.data,s=new pc.MeshColliderComponent({enabled:!!r[w.enabled],mesh:i.TryGet(r[w.sharedMesh+1]),material:i.TryGet(r[w.material+1]),isTrigger:!!r[w.isTrigger],convex:!!r[w.convex]});return t.addUnityComponentFromDeserialization("collider",s),s}_loadCapsuleColliderComponent(e,t,n,i){const s=n.data,a=new pc.CapsuleColliderComponent({enabled:!!s[D.enabled],radius:s[D.radius],material:i.TryGet(s[D.material+1]),center:new r.m(s[D.center+0],s[D.center+1],s[D.center+2]),height:s[D.height],direction:s[D.direction],isTrigger:!!s[D.isTrigger]});return t.addUnityComponentFromDeserialization("collider",a),a}_loadWheelColliderComponent(e,t,n,i){const r=n.data,s=new pc.WheelColliderComponent,a=UnityEngine.Object.FromHandle(Bridge._getTypeByName(Deserializers.types[n.type]),s);return t.addUnityComponentFromDeserialization("collider",s),e.deserializeTo(r,a,"Luna.Unity.DTO.UnityEngine.Components.WheelCollider"),s}_loadCharacterControllerComponent(e,t,n,i){const r=new pc.CharacterControllerComponent,s=UnityEngine.Object.FromHandle(Bridge._getTypeByName(Deserializers.types[n.type]),r);return t.addUnityComponentFromDeserialization("collider",r),e.deserializeTo(n.data,s,"Luna.Unity.DTO.UnityEngine.Components.CharacterController"),r}_loadRigidbody2DComponent(e,t,n,i){const r=n.data,s=new pc.Rigidbody2DComponent({entity:t,enabled:!0,simulated:r[M.simulated],useAutoMass:r[M.useAutoMass],type:r[M.bodyType],mass:r[M.mass],drag:r[M.drag],angularDrag:r[M.angularDrag],gravityScale:r[M.gravityScale],collisionDetectionMode:r[M.collisionDetectionMode],constraints:r[M.constraints],material:i.TryGet(r[M.material+1])});return t.addUnityComponentFromDeserialization("rigidbody2D",s),s}_loadBoxCollider2DComponent(e,t,n,i){const s=n.data,a=new pc.BoxCollider2DComponent({enabled:!!s[P.enabled],isTrigger:s[P.isTrigger],usedByEffector:s[P.usedByEffector],density:s[P.density],size:new r.l(s[P.size+0],s[P.size+1]),center:new r.l(s[P.offset+0],s[P.offset+1]),radius:s[P.edgeRadius],material:i.TryGet(s[P.material+1])});return t.addUnityComponentFromDeserialization("collider2D",a),a}_loadCircleCollider2DComponent(e,t,n,i){const s=n.data,a=new pc.CircleCollider2DComponent({enabled:!!s[U.enabled],isTrigger:s[U.isTrigger],usedByEffector:s[U.usedByEffector],density:s[U.density],radius:s[U.radius],center:new r.l(s[U.offset+0],s[U.offset+1]),material:i.TryGet(s[U.material+1])});return t.addUnityComponentFromDeserialization("collider2D",a),a}_loadCapsuleCollider2DComponent(e,t,n,i){const s=n.data,a=new pc.CapsuleCollider2DComponent({enabled:!!s[B.enabled],isTrigger:s[B.isTrigger],usedByEffector:s[B.usedByEffector],density:s[B.density],center:new r.l(s[B.offset+0],s[B.offset+1]),material:i.TryGet(s[B.material+1]),direction:s[B.direction],size:new r.l(s[B.size+0],s[B.size+1])});return t.addUnityComponentFromDeserialization("collider2D",a),a}_loadEdgeCollider2DComponent(e,t,n,i){const s=n.data,a=new pc.EdgeCollider2DComponent({enabled:!!s[O.enabled],isTrigger:s[O.isTrigger],usedByEffector:s[O.usedByEffector],density:s[O.density],points:s[O.points],offset:new r.l(s[O.offset+0],s[O.offset+1]),radius:s[O.edgeRadius],material:i.TryGet(s[O.material+1]),useAdjacentStartPoint:!!s[O.useAdjacentStartPoint],useAdjacentEndPoint:!!s[O.useAdjacentEndPoint],adjacentStartPoint:new r.l(s[O.adjacentStartPoint],s[O.adjacentStartPoint+1]),adjacentEndPoint:new r.l(s[O.adjacentEndPoint],s[O.adjacentEndPoint+1])});return t.addUnityComponentFromDeserialization("collider2D",a),a}_loadPolygonCollider2DComponent(e,t,n,i){const s=n.data,a=new pc.PolygonCollider2DComponent({enabled:!!s[L.enabled],isTrigger:s[L.isTrigger],usedByEffector:s[L.usedByEffector],density:s[L.density],points:s[L.points],offset:new r.l(s[L.offset+0],s[L.offset+1]),material:i.TryGet(s[L.material+1])});return t.addUnityComponentFromDeserialization("collider2D",a),a}_loadSpringJoint2DComponent(e,t,n,i){const s=n.data;return this._loadJoint2DComponent(e,t,n,R,new pc.SpringJoint2DComponent({enabled:!!s[R.enabled],autoConfigureDistance:!!s[R.autoConfigureDistance],enableCollision:!!s[R.enableCollision],breakForce:s[R.breakForce],breakTorque:s[R.breakTorque],frequency:s[R.frequency],dampingRatio:s[R.dampingRatio],distance:s[R.distance],autoConfigureConnectedAnchor:!!s[R.autoConfigureConnectedAnchor],anchor:new r.l(s[R.anchor+0],s[R.anchor+1]),connectedAnchor:new r.l(s[R.connectedAnchor+0],s[R.connectedAnchor+1])}))}_loadDistanceJoint2DComponent(e,t,n,i){const s=n.data;return this._loadJoint2DComponent(e,t,n,F,new pc.DistanceJoint2DComponent({enabled:!!s[F.enabled],enableCollision:!!s[F.enableCollision],breakForce:s[F.breakForce],breakTorque:s[F.breakTorque],maxDistanceOnly:s[F.maxDistanceOnly],distance:s[F.distance],autoConfigureDistance:!!s[F.autoConfigureDistance],autoConfigureConnectedAnchor:!!s[F.autoConfigureConnectedAnchor],anchor:new r.l(s[F.anchor+0],s[F.anchor+1]),connectedAnchor:new r.l(s[F.connectedAnchor+0],s[F.connectedAnchor+1])}))}_loadFixedJoint2DComponent(e,t,n,i){const s=n.data;return this._loadJoint2DComponent(e,t,n,G,new pc.FixedJoint2DComponent({enabled:!!s[G.enabled],enableCollision:!!s[G.enableCollision],breakForce:s[G.breakForce],breakTorque:s[G.breakTorque],frequency:s[G.frequency],dampingRatio:s[G.dampingRatio],autoConfigureConnectedAnchor:!!s[G.autoConfigureConnectedAnchor],anchor:new r.l(s[G.anchor+0],s[G.anchor+1]),connectedAnchor:new r.l(s[G.connectedAnchor+0],s[G.connectedAnchor+1])}))}_loadHingeJoint2DComponent(e,t,n,i){return e.deserializeTo(s[k.limits],a),e.deserializeTo(s[k.motor],o),this._loadJoint2DComponent(e,t,n,k,new pc.HingeJoint2DComponent({enabled:!!s[k.enabled],enableCollision:!!s[k.enableCollision],breakForce:s[k.breakForce],breakTorque:s[k.breakTorque],autoConfigureConnectedAnchor:!!s[k.autoConfigureConnectedAnchor],anchor:new r.l(s[k.anchor+0],s[k.anchor+1]),connectedAnchor:new r.l(s[k.connectedAnchor+0],s[k.connectedAnchor+1]),useLimits:!!s[k.useLimits],limits:a,useMotor:!!s[k.useMotor],motor:o}))}_loadWheelJoint2DComponent(e,t,n,i){return e.deserializeTo(s[V.suspension],a),e.deserializeTo(s[V.motor],o),this._loadJoint2DComponent(e,t,n,V,new pc.WheelJoint2DComponent({enabled:!!s[V.enabled],enableCollision:!!s[V.enableCollision],breakForce:s[V.breakForce],breakTorque:s[V.breakTorque],autoConfigureConnectedAnchor:!!s[V.autoConfigureConnectedAnchor],anchor:new r.l(s[V.anchor+0],s[V.anchor+1]),connectedAnchor:new r.l(s[V.connectedAnchor+0],s[V.connectedAnchor+1]),suspension:a,useMotor:!!s[V.useMotor],motor:o}))}_loadFrictionJoint2DComponent(e,t,n,i){const s=n.data;return this._loadJoint2DComponent(e,t,n,N,new pc.FrictionJoint2DComponent({enabled:!!s[N.enabled],enableCollision:!!s[N.enableCollision],breakForce:s[N.breakForce],breakTorque:s[N.breakTorque],autoConfigureConnectedAnchor:!!s[N.autoConfigureConnectedAnchor],anchor:new r.l(s[N.anchor+0],s[N.anchor+1]),connectedAnchor:new r.l(s[N.connectedAnchor+0],s[N.connectedAnchor+1]),maxForce:s[N.maxForce],maxTorque:s[N.maxTorque]}))}_loadRelativeJoint2DComponent(e,t,n,i){const s=n.data;return this._loadJoint2DComponent(e,t,n,z,new pc.RelativeJoint2DComponent({enabled:!!s[z.enabled],enableCollision:s[z.enableCollision],breakForce:s[z.breakForce],breakTorque:s[z.breakTorque],autoConfigureOffset:s[z.autoConfigureOffset],linearOffset:new r.l(s[z.linearOffset+0],s[z.linearOffset+1]),angularOffset:s[z.angularOffset],maxForce:s[z.maxForce],maxTorque:s[z.maxTorque],correctionScale:s[z.correctionScale]}))}_loadSliderJoint2DComponent(e,t,n,i){return e.deserializeTo(s[H.limits],a),e.deserializeTo(s[H.motor],o),this._loadJoint2DComponent(e,t,n,H,new pc.SliderJoint2DComponent({enabled:!!s[H.enabled],enableCollision:!!s[H.enableCollision],breakForce:s[H.breakForce],breakTorque:s[H.breakTorque],autoConfigureConnectedAnchor:!!s[H.autoConfigureConnectedAnchor],anchor:new r.l(s[H.anchor+0],s[H.anchor+1]),connectedAnchor:new r.l(s[H.connectedAnchor+0],s[H.connectedAnchor+1]),autoConfigureAngle:!!s[H.autoConfigureAngle],angle:s[H.angle],useLimits:!!s[H.useLimits],limits:a,useMotor:!!s[H.useMotor],motor:o}))}_loadTargetJoint2DComponent(e,t,n,i){const s=n.data;return this._loadJoint2DComponent(e,t,n,j,new pc.TargetJoint2DComponent({enabled:!!s[j.enabled],enableCollision:s[j.enableCollision],breakForce:s[j.breakForce],breakTorque:s[j.breakTorque],autoConfigureTarget:s[j.autoConfigureTarget],target:new r.l(s[j.target+0],s[j.target+1]),anchor:new r.l(s[j.anchor+0],s[j.anchor+1]),maxForce:s[j.maxForce],dampingRatio:s[j.dampingRatio],frequency:s[j.frequency]}))}_loadPlatformEffector2DComponent(e,t,n,i){const r=n.data,s=new pc.PlatformEffector2DComponent({enabled:!!r[K.enabled],useColliderMask:!!r[K.useColliderMask],colliderMask:r[K.colliderMask]});return t.addUnityComponentFromDeserialization("effector2D",s),s}_loadJoint2DComponent(e,t,n,i,r){const s=n.data,a=Deserializers.types[n.type],o=UnityEngine.Object.FromHandle(Bridge._getTypeByName(a),r);return e.r(s[i.connectedBody+0],s[i.connectedBody+1],0,o,"connectedBody"),t.addUnityComponentFromDeserialization("joint2D",r),r}_loadParticleSystemComponent(e,t,n,i){const r=new pc.ParticleSystem,s=new pc.ParticleSystemComponent({particleSystem:r});return e.deserializeTo(n.data,r,"Luna.Unity.DTO.UnityEngine.Components.ParticleSystem"),t.addUnityComponentFromDeserialization("particlesystem",s),s}_loadParticleSystemRendererComponent(e,t,n,i){return this._loadParticlesRendererComponent(C,new pc.ParticleSystemRendererComponent,e,t,n,i)}_loadJointComponent(e,t,n,i){const r=n.data,s=new pc.JointComponent({type:Deserializers.types[n.type]}),a=UnityEngine.Object.FromHandle(Bridge._getTypeByName(Deserializers.types[n.type]),s);return e.deserializeTo(r,a,Deserializers.types[n.type].replace("UnityEngine.","Luna.Unity.DTO.UnityEngine.Components.")),t.addUnityComponentFromDeserialization("joint",s),s}_loadMonoBehaviourComponent(e,t,n,r){const s=Deserializers.types[n.class],a=i.h.create(t,s,!!n.enabled);return a?(e.deserializeTo(n.data,a.code),t.addUnityComponentFromDeserialization("monoBehaviour",a),a):null}_loadRendererComponent(e,t,n,i,s,a){const o=s.data,l=t;i.addUnityComponentFromDeserialization("renderer",l);const c=o[e.sharedMaterials],u=[];for(let e=0;e<c.length;e+=2){let t=a.TryGet(c[e+1]);t||(t=UnityEngine.Graphics.InternalErrorShaderMaterial.handle),u.push(t)}return l.model.materials=u,l.model.sortingLayerIndex=UnityEngine.SortingLayer.GetLayerValueFromID(o[e.sortingLayerID]),l.model.sortingOrder=o[e.sortingOrder],l.model.cullingLayer=i.cullingLayer,l.enabled=!!o[e.enabled],l.castShadows=o[e.shadowCastingMode]>UnityEngine.Rendering.ShadowCastingMode.Off,l.receiveShadows=!!o[e.receiveShadows],l.id=s.id,l.model._lightmapSceneIndex=o[e.lightmapSceneIndex],l.model._lightmapIndex=o[e.lightmapIndex],l.model.lightmapScaleOffset=new r.n(o[e.lightmapScaleOffset+0],o[e.lightmapScaleOffset+1],o[e.lightmapScaleOffset+2],o[e.lightmapScaleOffset+3]),l}_loadParticlesRendererComponent(e,t,n,i,s,a){const o=s.data,l=t;i.addUnityComponentFromDeserialization("particleSystemRenderer",l);const c=o[e.sharedMaterials],u=[];for(let e=0;e<c.length;e+=2){if(2===e)continue;let t=a.TryGet(c[e+1]);t||(t=UnityEngine.Graphics.InternalErrorShaderMaterial.handle),u.push(t)}return l.model.materials=u,l.model.sortingLayerIndex=UnityEngine.SortingLayer.GetLayerValueFromID(o[e.sortingLayerID]),l.model.sortingOrder=o[e.sortingOrder],l.model.cullingLayer=i.cullingLayer,l.enabled=!!o[e.enabled],l.castShadows=o[e.shadowCastingMode]>UnityEngine.Rendering.ShadowCastingMode.Off,l.receiveShadows=!!o[e.receiveShadows],l.id=s.id,l.model._lightmapSceneIndex=o[e.lightmapSceneIndex],l.model._lightmapIndex=o[e.lightmapIndex],l.model.lightmapScaleOffset=new r.n(o[e.lightmapScaleOffset+0],o[e.lightmapScaleOffset+1],o[e.lightmapScaleOffset+2],o[e.lightmapScaleOffset+3]),l.mesh=a.TryGet(o[C.mesh+1]),l.meshCount=o[C.meshCount],l.activeVertexStreamsCount=o[C.activeVertexStreamsCount],l.alignment=o[C.alignment],l.renderMode=o[C.renderMode],l.sortMode=o[C.sortMode],l.lengthScale=o[C.lengthScale],l.velocityScale=o[C.velocityScale],l.cameraVelocityScale=o[C.cameraVelocityScale],l.normalDirection=o[C.normalDirection],l.sortingFudge=o[C.sortingFudge],l.minParticleSize=o[C.minParticleSize],l.maxParticleSize=o[C.maxParticleSize],l.pivot.x=o[C.pivot],l.pivot.y=o[C.pivot+1],l.pivot.z=o[C.pivot+2],l}_loadLineRendererComponent(e,t,n,i){const r=this._loadRendererComponent(Z,new s.d,e,t,n,i),a=r.code;return e.deserializeTo(n.data,a,"Luna.Unity.DTO.UnityEngine.Components.LineRenderer"),r}_loadCanvasRendererComponent(e,t,n,i){const r=new s.a;return e.deserializeTo(n.data,r.code,"Luna.Unity.DTO.UnityEngine.Components.CanvasRenderer"),t.addUnityComponentFromDeserialization("canvasRenderer",r),r}_loadTrailRendererComponent(e,t,n,i){const r=this._loadRendererComponent(q,new s.w,e,t,n,i),a=r.code;return e.deserializeTo(n.data,a,"Luna.Unity.DTO.UnityEngine.Components.TrailRenderer"),r}_loadReflectionProbeComponent(e,t,n,i){return e.deserializeTo(r,o,"Luna.Unity.DTO.UnityEngine.Components.ReflectionProbe"),t.addUnityComponentFromDeserialization("reflectionprobe",a),a}_loadSortingGroupComponent(e,t,n){const i=t.data,r=!!i[W.enabled],a=UnityEngine.SortingLayer.GetLayerValueFromID(i[W.sortingLayerIndex]),o=i[W.sortingOrder],l=i[W.sortingLayerName],c=new s.q(r,a,o,l);return e.addUnityComponentFromDeserialization("sortingGroup",c),c.configureForEntity(e),c}_loadSkyboxComponent(e,t,n){return e.deserializeTo(n.data,r,"Luna.Unity.DTO.UnityEngine.Components.Skybox"),t.addUnityComponentFromDeserialization("skybox",i),i.configureForEntity(t),i}}class Q extends a{loadAsync(e,t,n){this.registry.Put(t.id,r);for(let e=0;e<r.groups.length;e++)this.registry.Put(r.groups[e].id,r.groups[e]);return r}unloadAsync(e){this.registry.Release(e.id)}}class X extends a{loadAsync(e,t,n){return this.registry.Put(t.id,r),r}unloadAsync(e){this.registry.Release(e.id)}}var Y=n(13);const ee=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings"],te=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+ScriptsExecutionOrder"],ne=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+SortingLayer"],ie=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+CullingLayer"],re=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+TimeSettings"],se=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings"],ae=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+PhysicsSettings+CollisionMask"],oe=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.ProjectSettings+Physics2DSettings"];class le extends a{loadAsync(e,t,n){const i=t.data,r=Y.c.instance;return r.enableRealtimeShadows=!!i[ee.enableRealtimeShadows],r.enableAutoInstancing=!!i[ee.enableAutoInstancing],r.enableDynamicBatching=!!i[ee.enableDynamicBatching],r.allTagsInProject=i[ee.allTags],this.loadScriptsExecutionOrderSettings(i,r),this.loadSortingLayerSettings(i,r),this.loadCullingLayerSettings(i,r),this.loadTimeSettings(i,r),this.loadPhysicsSettings(i,r),this.loadPhysics2DSettings(i,r,e),this.loadQualitySettings(i,r,e),this.loadLightmapSettings(i,r),null}unloadAsync(e){this.registry.Release(e.id)}loadScriptsExecutionOrderSettings(e,t){const n=e[ee.scriptsExecutionOrder],i=[];for(let e=0;e<n.length;e++){const t=n[e],r=new Y.d;r.name=t[te.name],r.value=t[te.value],i.push(r)}t.scriptsExecutionOrder=i}loadSortingLayerSettings(e,t){const n=e[ee.sortingLayers],i=[];for(let e=0;e<n.length;e++){const t=n[e],r=new Y.e;r.id=t[ne.id],r.name=t[ne.name],r.value=t[ne.value],i.push(r)}t.sortingLayers=i;for(let e=0;e<i.length;e++){const t=i[e],n=new UnityEngine.SortingLayer;n.id=t.id,n.name=t.name,n.value=t.value,UnityEngine.SortingLayer.layers.push(n)}}loadCullingLayerSettings(e,t){const n=e[ee.cullingLayers],i=[];for(let e=0;e<n.length;e++){const t=n[e],r=new Y.a;r.id=t[ie.id],r.name=t[ie.name],i.push(r)}t.cullingLayers=i;for(let e=0;e<i.length;e++){const t=i[e],n=new UnityEngine.LayerMask.CullingLayer;n.id=t.id,n.name=t.name,UnityEngine.LayerMask.layers.push(n)}}loadTimeSettings(e,t){const n=e[ee.timeSettings];t.timeSettings.fixedDeltaTime=n[re.fixedDeltaTime],t.timeSettings.miximumDeltaTime=n[re.maximumDeltaTime],t.timeSettings.timeScale=n[re.timeScale],t.timeSettings.maximumParticleTimestep=n[re.maximumParticleTimestep]}loadPhysicsSettings(e,t){const n=e[ee.physicsSettings];t.physicsSettings.gravity=new r.m(n[se.gravity+0],n[se.gravity+1],n[se.gravity+2]),t.physicsSettings.defaultSolverIterations=n[se.defaultSolverIterations],t.physicsSettings.bounceThreshold=n[se.bounceThreshold],t.physicsSettings.autoSyncTransforms=!!n[se.autoSyncTransforms],t.physicsSettings.autoSimulation=!!n[se.autoSimulation];const i=n[se.collisionMatrix],s=[];for(let e=0;e<i.length;e++){const t=i[e],n=new Y.b;n.enabled=!!t[ae.enabled],n.layerId=t[ae.layerId],n.otherLayerId=t[ae.otherLayerId],s.push(n)}t.physicsSettings.collisionMatrix=s}loadPhysics2DSettings(e,t,n){const i=e[ee.physics2DSettings];t.physics2DSettings.gravity=new r.l(i[oe.gravity+0],i[oe.gravity+1]),t.physics2DSettings.autoSyncTransforms=!!i[oe.autoSyncTransforms],t.physics2DSettings.positionIterations=i[oe.positionIterations],t.physics2DSettings.velocityIterations=i[oe.velocityIterations],t.physics2DSettings.angularSleepTolerance=i[oe.angularSleepTolerance],t.physics2DSettings.autoSimulation=!!i[oe.autoSimulation],t.physics2DSettings.baumgarteScale=i[oe.baumgarteScale],t.physics2DSettings.baumgarteTOIScale=i[oe.baumgarteTOIScale],t.physics2DSettings.callbacksOnDisable=!!i[oe.callbacksOnDisable],t.physics2DSettings.defaultContactOffset=i[oe.defaultContactOffset],t.physics2DSettings.linearSleepTolerance=i[oe.linearSleepTolerance],t.physics2DSettings.maxAngularCorrection=i[oe.maxAngularCorrection],t.physics2DSettings.maxLinearCorrection=i[oe.maxLinearCorrection],t.physics2DSettings.maxRotationSpeed=i[oe.maxRotationSpeed],t.physics2DSettings.maxTranslationSpeed=i[oe.maxTranslationSpeed],t.physics2DSettings.timeToSleep=i[oe.timeToSleep],t.physics2DSettings.velocityThreshold=i[oe.velocityThreshold],t.physics2DSettings.queriesHitTriggers=!!i[oe.queriesHitTriggers],t.physics2DSettings.queriesStartInColliders=!!i[oe.queriesStartInColliders],n.r(!0,i[oe.material+1],0,t.physics2DSettings,"material");const s=i[oe.collisionMatrix],a=[];for(let e=0;e<s.length;e++){const t=s[e],n=new Y.b;n.enabled=!!t[ae.enabled],n.layerId=t[ae.layerId],n.otherLayerId=t[ae.otherLayerId],a.push(n)}t.physics2DSettings.collisionMatrix=a}loadQualitySettings(e,t,n){const i=e[ee.qualitySettings];n.deserializeTo(i,t.qualitySettings,"Luna.Unity.DTO.UnityEngine.Assets.QualitySettings")}loadLightmapSettings(e,t){t.lightmapEncodingQuality=e[ee.lightmapEncodingQuality],t.desiredColorSpace=e[ee.desiredColorSpace]}}const ce=/\+/g;class ue{constructor(){this.referenceQueue=[],this.pendingQueue=[],this.onAfterDeserialize=[],this.root=null,this.goHandler=new J(window.$application)}r(e,t,n,i,r=null){const s={type:null==e?null:"boolean"==typeof e?e:Deserializers.types[e],id:t,targetType:n,targetObject:i,targetProperty:r};this.referenceQueue.push(s)}resolveReferences(e){for(let t=0;t<this.referenceQueue.length;t++)this.resolveInstruction(e,this.referenceQueue[t]);this.referenceQueue=this.pendingQueue,this.pendingQueue=[],this._fireSerializationCallbacks()}resolveInstruction(e,t){if(null===t.type||null===t.id)return void this.applyObject(t,null);const n=e.TryGet(t.id);if(!n)return void this.pendingQueue.push(t);const i=!0===t.type?null:this._getTypeByName(t.type);let r=n;!i||r.$kind||r.isPrefabProxy||(r=UnityEngine.Object.FromHandle(i,n)),r.isPrefabProxy&&(r=this.createPrefabProxy(r,e,t,i),this.connectProxy(r)),this.applyObject(t,r)}createPrefabProxy(e,t,n,i){return new Proxy(e,{get:(e,r)=>{if(e[r])return e[r];if("__proxyInstance"===r)return e;if("__setupPrefab"===r)return()=>this.setupPrefab(e,t,n,i);const s=(e=this.loadProxyPrefab(e,n))[r];return s instanceof Function?s.bind(e):s},set:(e,t,i)=>{if("__sameConnectedProxies"===t){const t=ue.connectedPrefabProxies[e.prefabId||e.$id];for(let n=0;n<t.length;n++)t[n].__proxyInstance.$id===e.$id&&(t[n].__value=i);return!0}return"__value"===t?(this.applyObject(n,i),!0):e[t]?(e[t]=i,!0):((e=this.loadProxyPrefab(e,n))[t]=i,!0)}})}loadProxyPrefab(e,t){let n=null;const i=e.prefabId||e.$id,r=ue.connectedPrefabProxies[i];if(!r)return t.targetObject[t.targetProperty];for(let t=0;t<r.length;t++)if(r[t].__proxyInstance===e){if(n){r[t].__value=n;continue}n=r[t].__setupPrefab()}else r[t].__setupPrefab();return delete ue.connectedPrefabProxies[i],n}connectProxy(e){const t=e.__proxyInstance.prefabId||e.__proxyInstance.$id;ue.connectedPrefabProxies[t]||(ue.connectedPrefabProxies[t]=[]),ue.connectedPrefabProxies[t].push(e)}setupPrefab(e,t,n,i){if(e.componentId){const r=t.Get(e.prefabId).prefab;r&&this.goHandler._loadObject(this,null,r,t,!0);const s=t.Get(e.componentId),a=UnityEngine.Object.FromHandle(i,s);return this.applyObject(n,a),a.isPrefab=!0,a}{const r=e.prefab,s=this.goHandler._loadObject(this,null,r,t),a=UnityEngine.Object.FromHandle(i,s);return this.applyObject(n,a),a.handle.isPrefab=!0,a.handle.objectJson=r,a}}applyObject(e,t){0===e.targetType?e.targetObject[e.targetProperty]=t:1===e.targetType?(e.targetProperty=e.targetObject.Count,e.targetObject.add(t),e.targetObject=e.targetObject._items):(e.targetProperty=e.targetObject.length,e.targetObject.push(t)),e.targetType=0}d(e,t,n=null){if(!t)return null;const i=Deserializers[e](this,t,n);return this._tryRegisterAsSerializationCallbackReceiver(i),i}deserializeTo(e,t,n=null){const i=Deserializers[n||t.$$fullname](this,e,t);return this._tryRegisterAsSerializationCallbackReceiver(i),i}c(e){const t=this._getTypeByName(e);if(!t||!t.$$fullname)return{};if(t.ctor&&0===t.ctor.length)return new t.ctor;{const e=Object.create(t.prototype);return e.$initialize&&e.$initialize(),e}}_getTypeByName(e){const t=ue.typeCache;if(!t.hasOwnProperty(e)){let n=Bridge.ns(e.replace(ce,"."));n.$$fullname||(n=pc.stubProxy.generateConstructorFor(e)),t[e]=n}return t[e]}_tryRegisterAsSerializationCallbackReceiver(e){void 0!==e.UnityEngine$ISerializationCallbackReceiver$OnAfterDeserialize&&this.onAfterDeserialize.push(e)}_fireSerializationCallbacks(){this.onAfterDeserialize.reverse();for(let e=0;e<this.onAfterDeserialize.length;e++)this.onAfterDeserialize[e].UnityEngine$ISerializationCallbackReceiver$OnAfterDeserialize();this.onAfterDeserialize=[]}}ue.typeCache={};class he extends ue{constructor(e){super(),this.registry=e}r(e,t,n,i,r=null){if(null===e||null===t)return;const s={type:"boolean"==typeof e?e:Deserializers.types[e],id:t,targetType:n,targetObject:i,targetProperty:r};this.resolveInstruction(this.registry,s)}}ue.connectedPrefabProxies={};const de=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.Material"];class me extends a{constructor(e){super(e),this.request=new he(null)}loadAsync(e,t,n){this.request.registry=this.registry;const i=this.request.d("Luna.Unity.DTO.UnityEngine.Assets.Material",t.data);return i.shader=this.registry.TryGet(t.data[de.shader+1]),i.setup(),"Default UI Material"===i.name&&(UnityEngine.Canvas.DefaultCanvasMaterial=UnityEngine.Object.FromHandle(UnityEngine.Material,i)),"Sprites-Default"===i.name&&(UnityEngine.Material.SpritesDefault=UnityEngine.Object.FromHandle(UnityEngine.Material,i)),"Sprites-Mask"===i.name&&(UnityEngine.Material.SpriteMasksDefault=UnityEngine.Object.FromHandle(UnityEngine.Material,i)),"Font Material"===i.name&&(UnityEngine.Material.FontDefault=UnityEngine.Object.FromHandle(UnityEngine.Material,i)),"Default-Material"!==i.name&&"Lit"!==i.name||(UnityEngine.Material.MeshDefault=UnityEngine.Object.FromHandle(UnityEngine.Material,i)),this.registry.Put(t.id,i),i}unloadAsync(e){this.registry.Release(e.id)}}class ge extends a{loadAsync(e,t,n){const i=e.d("Luna.Unity.DTO.UnityEngine.Assets.PhysicMaterial",t.data),r=new Goblin.PhysicMaterial(i);return this.registry.Put(t.id,r),r}unloadAsync(e){this.registry.Release(e.id)}}class $e extends a{loadAsync(e,t,n){const i=e.d("Luna.Unity.DTO.UnityEngine.Assets.PhysicsMaterial2D",t.data);return this.registry.Put(t.id,i),i}unloadAsync(e){this.registry.Release(e.id)}}const pe=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.Mesh"],ye=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.Mesh+SubMesh"],fe=new Blob;class _e extends a{loadAsync(e,t,n){const i=t.data,a=new s.g(!0),o=n.find((e=>e.manifest.id===t.assetBundleId)).blob||fe;a.name=i[pe.name];const c=i[pe.vertices];let u=o.slice(c[0],c[0]+c[1]);const h=i[pe.halfPrecision]?(0,l.d)(new Uint16Array(u)):new Float32Array(u),d=a.defaultVertexBuffer(i[pe.streams],i[pe.vertexCount],h.buffer);i[pe.vertices]=null,a.vertexBuffer=d,a.subMeshes=[];const m=i[pe.subMeshes],g=i[pe.aabb];for(let e=0;e<m.length;e++){const n=m[e][ye.triangles],i=new Uint16Array(o.slice(n[0],n[0]+n[1])),c=new s.g;c.aabb=new r.b(new r.m(g[0],g[1],g[2]),new r.m(g[3],g[4],g[5])),c.$id=t.id;const u=a.defaultIndexBuffer(i.length,i.buffer);c.vertexBuffer=d,c.indexBuffer[0]=u,c.primitive[0].type=l.c.PRIMITIVE_TRIANGLES,c.primitive[0].base=0,c.primitive[0].count=i.length,c.primitive[0].indexed=!0,a.subMeshes.push(c)}a.indexBuffer=a.subMeshes[0].indexBuffer,a.primitive[0].type=l.c.PRIMITIVE_TRIANGLES,a.primitive[0].base=0,a.primitive[0].count=m[0].length,a.primitive[0].indexed=!0,a.aabb=new r.b(new r.m(g[0],g[1],g[2]),new r.m(g[3],g[4],g[5]));const $=i[pe.bindposes];for(let e=0;e<$.length;e+=16)a.bindposes.push((new r.i).setData($[e+0],$[e+1],$[e+2],$[e+3],$[e+4],$[e+5],$[e+6],$[e+7],$[e+8],$[e+9],$[e+10],$[e+11],$[e+12],$[e+13],$[e+14],$[e+15]));const p=i[pe.blendShapes];if(0!==p.length){a.morph=new s.k([]);for(let e=0;e<p.length;e++){const t=p[e],n=t[1],r={};r.name=t[0],r.frames=[];for(let e=0;e<n.length;e++){const n={};n.weight=t[1][e][0],u=o.slice(t[1][e][1][0],t[1][e][1][0]+t[1][e][1][1]),n.deltaPositions=i[pe.halfPrecision]?(0,l.d)(new Uint16Array(u)):t[1][e][1],u=o.slice(t[1][e][2][0],t[1][e][2][0]+t[1][e][2][1]),n.deltaNormals=i[pe.halfPrecision]?(0,l.d)(new Uint16Array(u)):t[1][e][2],u=o.slice(t[1][e][3][0],t[1][e][3][0]+t[1][e][3][1]),n.deltaTangents=i[pe.halfPrecision]?(0,l.d)(new Uint16Array(u)):t[1][e][3];const a=new s.i(n);r.frames[e]=a}const c=new s.j(r);a.morph.addTarget(c),a.morph._setBaseMesh(a)}}return this.registry.Put(t.id,a),a}unloadAsync(e){const t=this.registry.Release(e.id);t&&t.destroy()}}const Se=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Scene.Scene"],be=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.RenderSettings"],Ce=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.RenderSettings+LightProbes"];class Ee extends a{loadAsync(e,t,n){const i=t.data,r=(new st).initializeAsTemplate({renderSettings:e.d("Luna.Unity.DTO.UnityEngine.Assets.RenderSettings",t.render_settings.data),rootJsons:t.objects,name:i[Se.name],index:i[Se.index]}),s=n.find((e=>e.manifest.id===t.assetBundleId)).blob,a=t.render_settings.data[be.lightProbes];return this.parseLightProbeData(s,a,r.renderSettings.lightProbes),UnityEngine.SceneManagement.SceneManager.scenes.push(r),r}parseLightProbeData(e,t,n){const i=[],a=this.getTypedArrayFromBlobAndMarker(Float32Array,e,t[Ce.bakedProbes]);for(let e=0;e<a.length;e+=27)i.push(s.r.fromArray(a.subarray(e,e+27)));n.bakedProbes=i;const o=[],l=this.getTypedArrayFromBlobAndMarker(Float32Array,e,t[Ce.positions]);for(let e=0;e<l.length;e+=3)o.push(new r.m(l[e+0],l[e+1],l[e+2]));n.positions=o;const c=[],u=this.getTypedArrayFromBlobAndMarker(Float32Array,e,t[Ce.hullRays]);for(let e=0;e<u.length;e+=3)c.push(new r.m(u[e+0],u[e+1],u[e+2]));n.hullRays=c;const h=[],d=this.getTypedArrayFromBlobAndMarker(Float32Array,e,t[Ce.matrices]);for(let e=0;e<d.length;e+=16)h.push(r.i.fromArray(d.subarray(e,e+16)));n.matrices=h,n.tetrahedra=this.getTypedArrayFromBlobAndMarker(Int16Array,e,t[Ce.tetrahedra]),n.neighbours=this.getTypedArrayFromBlobAndMarker(Int16Array,e,t[Ce.neighbours])}getTypedArrayFromBlobAndMarker(e,t,n){return new e(t?t.slice(n[0],n[0]+n[1]):0)}unloadAsync(e){this.registry.Release(e.id)}}class Te extends a{constructor(e){super(e),this.shaders=[]}loadAsync(e,t,n){const i=new s.x(this.graphicsDevice);return e.d("Luna.Unity.DTO.UnityEngine.Assets.Shader",t.data,i),i.setup(),this.registry.Put(t.id,i),this.shaders.push(i),UnityEngine.Shader.shaderIndex[i.name]=i,i}unloadAsync(e){this.registry.Release(e.id)}onAfterDeserialize(){for(let e=0;e<this.shaders.length;e++)this.shaders[e].onAfterDeserialize()}}const ve=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.VideoClip"];class Ie extends a{constructor(e){super(e),this.playgroundAssetOverrides=window.playgroundAssetOverrides||{}}loadAsync(e,t,n){const i=t.data,r={name:i[ve.name],width:i[ve.width],height:i[ve.height],frameRate:i[ve.frameRate],frameCount:i[ve.frameCount]},a=new s.B(this.app.graphicsDevice,r);return this.registry.Put(t.id,a),new Promise(((e,n)=>{try{this.network.GetVideoAsync(this._getVideoUrl(t)).continueWith((t=>{if(t.status===System.Threading.Tasks.TaskStatus.ranToCompletion){const n=t.result;a.setSource(n),e(a)}else(t.exception&&t.exception.innerException?t.exception.innerException.message:null)===LunaUnity.Utils.Network.ERR_ABORTED||n(t.error||t.exception)}))}catch(e){n(e)}}))}_getVideoUrl(e){return"external"===this.network.resourceConfig.video&&e.id in this.playgroundAssetOverrides?this.playgroundAssetOverrides[e.id]:"assets/bundles/"+e.assetBundleId+"/"+e.id+(e.ext||".mp4")}unloadAsync(e){const t=this.registry.Release(e.id);t&&t.destroy()}}const xe=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.AudioClip"];class Ae extends a{constructor(e){super(e),this.playgroundAssetOverrides=window.playgroundAssetOverrides||{}}loadAsync(e,t,n){const i=new c.b(null);i.name=t.data[xe.name];const r=this._getSoundUrl(t);return new Promise(((e,n)=>{try{const n=function(t){i.buffer=t,e(i)},s=function(t){const n=t.innerException?t.innerException.message:t.message||t;n!==LunaUnity.Utils.Network.ERR_ABORTED&&console.error(n||"Error loading audio url: "+r),i.buffer=null,e(i)},a=this.app._audioManager;this.registry.Put(t.id,i),this.network.GetSoundAsync(this._getSoundUrl(t)).continueWith((e=>{e.status===System.Threading.Tasks.TaskStatus.ranToCompletion?a.context.decodeAudioData(e.result,n,s):s(e.error||e.exception)}))}catch(e){n(e)}}))}_getSoundUrl(e){return"external"===this.network.resourceConfig.sound&&e.id in this.playgroundAssetOverrides?this.playgroundAssetOverrides[e.id]:"assets/bundles/"+e.assetBundleId+"/"+e.id+(e.ext||".mp3")}unloadAsync(e){const t=this.registry.Release(e.id);t&&(t.buffer=null)}}const we=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Textures.Sprite"];class De extends a{loadAsync(e,t,n){const i=t.data,a=this.registry.Get(i[we.texture+1]),o=new s.u({}),l=i[we.textureWidth]/a.width;return o.attributes.transparency=new r.n((i[we.packedRect+0]-i[we.textureRect+0])*a.width,(i[we.packedRect+1]-i[we.textureRect+1])*a.height,(i[we.textureRect+2]-i[we.packedRect+2])*a.width,(i[we.textureRect+3]-i[we.packedRect+3])*a.height),o.attributes.textureRectBeforeResize=new r.n(0,0,i[we.nativeSize],i[we.nativeSize+1]),o.attributes.textureRect=new r.n(i[we.packedRect+0]*a.width,i[we.packedRect+1]*a.height,i[we.packedRect+2]*a.width,i[we.packedRect+3]*a.height),o.attributes.graphicsDevice=this.graphicsDevice,o.attributes.texture=a,o.attributes.border=new r.n(Math.max(0,i[we.border+0]*a.width-o.attributes.transparency.x),Math.max(0,i[we.border+1]*a.height-o.attributes.transparency.y),Math.max(0,i[we.border+2]*a.width-o.attributes.transparency.z),Math.max(0,i[we.border+3]*a.height-o.attributes.transparency.w)),o.attributes.name=i[we.name],o.attributes.bounds=i[we.bounds],o.attributes.pixelsPerUnit=i[we.pixelsPerUnit]/l,o.attributes.aabb=i[we.aabb],o.attributes.vertices=i[we.vertices],o.attributes.triangles=i[we.triangles],o.attributes.nativeSize=new r.l(i[we.nativeSize],i[we.nativeSize+1]),o.attributes.pivot=new r.l(i[we.pivot+0],i[we.pivot+1]),o.attributes.textureRectOffset=new r.l(i[we.textureRectOffset+0],i[we.textureRectOffset+1]),this.registry.Put(t.id,o),o}unloadAsync(e){const t=this.registry.Release(e.id);t&&t.mesh&&t.mesh.destroy()}}const Me=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Textures.Texture2D"],Pe=(Deserializers.fields["Luna.Unity.DTO.UnityEngine.Textures.RenderTexture"],[l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_A8,l.c.PIXELFORMAT_R4_G4_B4_A4,l.c.PIXELFORMAT_R8_G8_B8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R5_G6_B5,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_RGBA32F,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_PVRTC_2BPP_RGBA_1,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8,l.c.PIXELFORMAT_R8_G8_B8_A8]);class Ue extends a{constructor(e){super(e),this.playgroundAssetOverrides=window.playgroundAssetOverrides||{},this._dummyTexture=null}loadAsync(e,t,n){if(0===t.type)return this._loadTexture2dAsync(t);if(1===t.type)return this._loadTexture3dAsync(t);if(2===t.type)return Promise.resolve(null);if(3===t.type)return this._loadRenderTextureAsync(t);throw Error('Unknown texture type: "'+t.type+'"')}_loadRenderTextureAsync(e){return this.registry.Put(e.id,t.handle),Promise.resolve(t.handle)}_loadTexture3dAsync(e){throw Error("Not Implemented")}_getDummyTexture(){if(this._dummyTexture)return this._dummyTexture;this._dummyTexture=new s.v(this.app.graphicsDevice,{name:"DummyTexture",width:16,height:16,format:l.c.PIXELFORMAT_R8_G8_B8_A8});const e=this._dummyTexture.lock();for(let t=0;t<e.length;t+=3)e[t+0]=255,e[t+1]=0,e[t+2]=255,e[t+4]=127;return this._dummyTexture.unlock(),this._dummyTexture}_loadTexture2dAsync(e){const t=e.data,n=t[Me.filterMode],i=t[Me.mipmapCount]>1;let r=i?l.c.FILTER_NEAREST_MIPMAP_NEAREST:l.c.FILTER_NEAREST,a=l.c.FILTER_NEAREST;n===UnityEngine.FilterMode.Bilinear?(r=i?l.c.FILTER_LINEAR_MIPMAP_NEAREST:l.c.FILTER_LINEAR,a=l.c.FILTER_LINEAR):n===UnityEngine.FilterMode.Trilinear&&(r=i?l.c.FILTER_LINEAR_MIPMAP_LINEAR:l.c.FILTER_LINEAR,a=l.c.FILTER_LINEAR);const o=t[Me.wrapMode]===UnityEngine.TextureWrapMode.Repeat?l.c.ADDRESS_REPEAT:l.c.ADDRESS_CLAMP_TO_EDGE,c={name:t[Me.name]||"",width:t[Me.width],height:t[Me.height],addressU:o,addressV:o,mipmaps:i,minFilter:r,magFilter:a,autoMipmap:i,rgbm:!!t[Me.hdr],anisotropy:Math.min(this.graphicsDevice.maxAnisotropy,t[Me.anisoLevel]),format:Pe[t[Me.format]]};if(e.dummy){const t=this._getDummyTexture();return this.registry.Put(e.id,t),Promise.resolve(t)}const u=new s.v(this.app.graphicsDevice,c);return this.registry.Put(e.id,u),new Promise(((t,n)=>{this.network.GetImageAsync(this._getTextureUrl(e)).continueWith((e=>{try{if(e.status===System.Threading.Tasks.TaskStatus.ranToCompletion){const n=e.result;u.setSource(n),n.remove(),u.mipmaps=c.mipmaps,u.minFilter=c.minFilter,u.magFilter=c.magFilter,u.anisotropy=c.anisotropy,t(u)}else(e.exception&&e.exception.innerException?e.exception.innerException.message:null)===LunaUnity.Utils.Network.ERR_ABORTED||n(e.error||e.exception)}catch(e){n(e)}}))}))}_getTextureUrl(e){return"external"===this.network.resourceConfig.image&&e.id in this.playgroundAssetOverrides?this.playgroundAssetOverrides[e.id]:"assets/bundles/"+e.assetBundleId+"/"+e.id+(e.ext||".png")}unloadAsync(e){const t=this.registry.Release(e.id);t&&t.destroy()}}const Be=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Textures.Cubemap"];class Oe extends a{loadAsync(e,t,n){return 2===t.type?this._loadCubemapAsync(t):null}_loadCubemapAsync(e){const t=e.data,n=t[Be.size],i=t[Be.filterMode],r=t[Be.mipmapCount]>0,a=t[Be.name];let o=r?l.c.FILTER_NEAREST_MIPMAP_NEAREST:l.c.FILTER_NEAREST,c=l.c.FILTER_NEAREST;i===UnityEngine.FilterMode.Bilinear?(o=r?l.c.FILTER_LINEAR_MIPMAP_NEAREST:l.c.FILTER_LINEAR,c=l.c.FILTER_LINEAR):i===UnityEngine.FilterMode.Trilinear&&(o=r?l.c.FILTER_LINEAR_MIPMAP_LINEAR:l.c.FILTER_LINEAR,c=l.c.FILTER_LINEAR);const u=t[Be.wrapMode]===UnityEngine.TextureWrapMode.Repeat?l.c.ADDRESS_REPEAT:l.c.ADDRESS_CLAMP_TO_EDGE,h=new s.v(this.graphicsDevice,{name:a,width:n,height:n,minFilter:o,magFilter:c,addressU:u,addressV:u,anisotropy:Math.min(this.graphicsDevice.maxAnisotropy,t[Be.anisoLevel]),cubemap:!0,mipmaps:r,rgbm:!!t[Be.hdr],flipY:!0,atlas:this.registry.Get(t[Be.atlasId]),rects:t[Be.rects]});return h.upload(),this.registry.Put(e.id,h),h}unloadAsync(e){const t=this.registry.Release(e.id);t&&t.destroy()}}let Le=null;pc.waitForMecanim.then((e=>{Le=e}));const Re=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Animation.Data.AnimationClip"],Fe=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Animation.Data.AnimationCurve"],Ge=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Animation.Data.AnimationEvent"];class ke extends a{loadAsync(e,t,n){s.name=i[Re.name],s.frameRate=i[Re.frameRate],s.length=i[Re.length],s.wrapMode=i[Re.wrapMode],s.isLooping=!!i[Re.isLooping];const o=!!i[Re.hasMuscleCurves];Le&&o&&this.setupNativeAssets(s,a,t);const c=i[Re.localBounds];s.localBounds=new r.b(new r.m(c[0],c[1],c[2]),new r.m(c[3]/2,c[4]/2,c[5]/2));const u=i[Re.curves];s.curves=Array(u.length);for(let t=0;t<u.length;t++){const n=u[t],o=n[Fe.keys],c=a.slice(o[0],o[0]+o[1]),h=i[Re.halfPrecision]?(0,l.d)(new Uint16Array(c)):new Float32Array(c),d=n[Fe.objectReferenceKeys]||[],m=Array(Math.floor(h.length/7)+d.length);for(let e=0;e<h.length;e+=7)m[e/7]=new r.g(h[e],h[e+1],h[e+2],h[e+3],h[e+4],h[e+5],h[e+6]);for(let t=0;t<d.length;t++){const n=d[t];m[t+h.length/7]=e.deserializeTo(n,new r.g,"Luna.Unity.DTO.UnityEngine.Animation.Data.AnimationCurve+ObjectReferenceKey")}const g={path:n[Fe.path],componentType:n[Fe.componentType],property:n[Fe.property],keyframes:m};s.curves[t]=new r.a(g),d.length>0&&(s.curves[t].objectCurve=!0)}const h=i[Re.events];s.events=Array(h.length);for(let t=0;t<h.length;t++)i.functionName=n[Ge.functionName],i.floatParameter=n[Ge.floatParameter],i.intParameter=n[Ge.intParameter],i.stringParameter=n[Ge.stringParameter],i.time=n[Ge.time],e.r(n[Ge.objectReferenceParameter],n[Ge.objectReferenceParameter+1],0,i,"objectReferenceParameter"),s.events[t]=i;return this.registry.Put(t.id,s),s}setupNativeAssets(e,t,n){const i=n.data,r=e.native=new Le.AnimationClip(e.name,n.id);let s=null;s=i[Re.clipMuscleConstant],s&&this.setupNativeAsset(r,t,s,r.setClipMuscleConstant);const a=i[Re.clipBindingConstant];s=a[0],s&&this.setupNativeAsset(r,t,s,r.setClipGenericBindings),s=a[1],s&&this.setupNativeAsset(r,t,s,r.setClipPPtrCurveMapping)}setupNativeAsset(e,t,n,i){const r=new Uint8Array(t.slice(n[0],n[0]+n[1])),s=Le._malloc(r.byteLength);Le.HEAPU8.set(r,s),i.call(e,s,r.byteLength)}unloadAsync(e){this.registry.Release(e.id)}}const Ve=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Animations.BlendTree"],Ne=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Animations.ChildMotion"];class ze extends a{loadAsync(e,t,n){s.name=i[Ve.name],s.blendParameter=i[Ve.blendParameter],s.blendParameterY=i[Ve.blendParameterY],s.blendType=i[Ve.blendType],s.children=i[Ve.children],s.useAutomaticThresholds=i[Ve.useAutomaticThresholds],s.minThreshold=i[Ve.minThreshold],s.maxThreshold=i[Ve.maxThreshold];const a=i[Ve.children];s.children=Array(a.length);for(let t=0;t<a.length;++t)e.r(!0,i[Ne.motion+1],0,n,"motion"),n.position=new r.l,n.position.x=i[Ne.position+0],n.position.y=i[Ne.position+1],n.threshold=i[Ne.threshold],n.timeScale=i[Ne.timeScale],n.cycleOffset=i[Ne.cycleOffset],n.directBlendParameter=i[Ne.directBlendParameter],n.mirror=i[Ne.mirror],s.children[t]=n;return this.registry.Put(t.id,s),s}unloadAsync(e){this.registry.Release(e.id)}}class He extends a{loadAsync(e,t,n){return this.registry.Put(t.id,r),r}unloadAsync(e){this.registry.Release(e.id)}}class je extends a{loadAsync(e,t,n){return e.d("Luna.Unity.DTO.UnityEngine.Animation.Mecanim.AnimatorOverrideController",t.data,i),this.registry.Put(t.id,i),i}unloadAsync(e){this.registry.Release(e.id)}}let Ze=null;pc.waitForMecanim.then((e=>{Ze=e}));class qe extends a{loadAsync(e,t,n){if(e.d("Luna.Unity.DTO.UnityEngine.Animation.Mecanim.Avatar",t.data,i),this.registry.Put(t.id,i),Ze&&i.isValid){const e=i.native=new Ze.Avatar(i.name,t.id),n=Ze._malloc(i.constant.length);Ze.HEAPU8.set(i.constant,n),e.setAsset(n,i.constant.length)}return i}unloadAsync(e){this.registry.Release(e.id)}}const Ke=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.Font"];class We extends a{loadAsync(e,t,n){const i=t.data,r={name:i[Ke.name],ascent:i[Ke.ascent],originalLineHeight:i[Ke.originalLineHeight],fontSize:i[Ke.fontSize],originalFontSize:i[Ke.originalFontSize],characterInfo:i[Ke.characterInfo],texture:this.registry.TryGet(t.data[Ke.texture+1])},a=new s.b(t.font,r);return this.registry.Put(t.id,a),s.b.fonts=s.b.fonts||{},s.b.fonts[t.data[Ke.name]]=a,s.b.fonts[t.data[Ke.name].replace("-Regular","")]=a,UnityEngine.Font.FontDefault&&"Arial"!==t.data[Ke.name]||(UnityEngine.Font.FontDefault=new UnityEngine.Font(a)),a}unloadAsync(e){this.registry.Release(e.id)}}class Je extends a{loadAsync(e,t,n){return e.deserializeTo(t.data,UnityEngine.Resources,"Luna.Unity.DTO.UnityEngine.Assets.Resources"),rt.handlers.prefab_component.load(),null}unloadAsync(e){this.registry.Release(e.id)}}class Qe extends a{loadAsync(e,t,n){try{const n=Deserializers.types[t.class],i=e.d(n,t.data);return i.name=t.name,i?(this.registry.Put(t.id,i),i):(UnityEngine.Debug.LogWarning$1("Failed to instantiate ScriptableObject of type "+n),null)}catch(e){return UnityEngine.Debug.LogWarning$1("Cannot put scriptable object with id "+t.id+": "+e),null}}unloadAsync(e){this.registry.Release(e.id)}}const Xe=Deserializers.fields["Luna.Unity.DTO.UnityEngine.Assets.TextAsset"];class Ye extends a{loadAsync(e,t,n){const i=new UnityEngine.TextAsset;return i.data=t.data[Xe.data],i.name=t.data[Xe.name],i.bytes64=t.data[Xe.bytes64],this.registry.Put(t.id,i),i}unloadAsync(e){this.registry.Release(e.id)}}class et extends a{load(){const e=UnityEngine.Resources.componentToPrefabIds;for(let t=0;t<e.length;t+=2){const n=e[t],i=e[t+1];this.registry.Put(n,{isPrefabProxy:!0,componentId:n,prefabId:i})}}}var tt=n(17);class nt extends a{loadAsync(e,t,n){}unloadAsync(e){this.registry.Release(e.id)}}class it extends a{loadAsync(e,t,n){return e.d("Luna.Unity.DTO.UnityEngine.Assets.SpriteAtlas",t.data,i),this.registry.Put(t.id,i),i}unloadAsync(e){this.registry.Release(e.id)}}class rt{constructor(e){this.objectSpace=e.objectSpace,this.manifest=e.manifest,this.network=e.network,this.namesToId={},this.downloadPromise=null,this.dowloadBlobPromise=null,this.progress={total:0,loaded:0,progress:0},this.onProgress=null,this.blob=null,this.json=null}_tickResource(){this.progress.loaded++,this.progress.progress=.25+this.progress.loaded/this.progress.total*.75,this.onProgress&&this.onProgress(this.progress.progress)}_collectDependencies(e,t){let n=[];if(!e[t]){e[t]=!0,n.push(t);const i=rt.bundles[t].dependencies;for(let t=0;t<i.length;t++)n=n.concat(this._collectDependencies(e,i[t]))}return n}_loadAsync(){if(this.loadCompletionSource)return this.loadCompletionSource.task;this.loadCompletionSource=new System.Threading.Tasks.TaskCompletionSource,this.loadCompletionSource.task.setSynchronous(!0);const e=this._collectDependencies({},this.manifest.id),t=[],n=[],i=new ue;for(let i=0;i<e.length;i++){const r=rt.new(e[i]);n.push(r),t.push(r._downloadBundleDataAsync(),r._downloadBlobDataAsync())}return Promise.all(t).then((()=>{window.dispatchEvent(new Event("luna:startup:bundlesLoad")),this.progress.progress=.25,this.progress.total=0;for(const e of n)for(const t in e.json)this.progress.total+=(e.json[t]||[]).length;return this.progress.loaded=-1,this._tickResource(),console.info("%cBundle chain loaded successfully","background-color: black; color: white; padding: 1em;"),this._loadSimpleAssetsAsync(i,n).then((()=>(console.info("%cSimple assets loaded successfully","background-color: black; color: white; padding: 1em;"),window.dispatchEvent(new Event("luna:startup:loadSimpleAssetsAsync")),this._compileShaders(),window.dispatchEvent(new Event("luna:startup:shaderReady")),this._loadComplexAssetsAsync(i,n).then((()=>(console.info("%cComplex assets loaded successfully","background-color: black; color: white; padding: 1em;"),i.resolveReferences(this.objectSpace.getRegistry()),this._postProcessShaders(),window.dispatchEvent(new Event("luna:startup:loadComplexAssetsAsync")),this._loadPrefabsAsync(i,n).then((()=>(console.info("%cPrefabs loaded successfully","background-color: black; color: white; padding: 1em;"),i.resolveReferences(this.objectSpace.getRegistry()),window.dispatchEvent(new Event("luna:startup:loadPrefabsAsync")),this._loadScenesAsync(i,n).then((()=>{console.info("%cScenes loaded successfully","background-color: black; color: white; padding: 1em;"),i.resolveReferences(this.objectSpace.getRegistry()),window.dispatchEvent(new Event("luna:startup:loadScenesAsync")),this.loadCompletionSource.setResult(this)})))))))))))})).catch((e=>{console.error(e)})),this.loadCompletionSource.task}_postProcessShaders(){const e=rt.handlers.shader.shaders;for(let t=0;t<e.length;t++)e[t].onAfterDeserialize()}_compileShaders(){const e=pc.Application.getApplication().graphicsDevice,t=e.shaders;for(let n=0;n<t.length;n++){const i=t[n];e.compileShaderAndBindAttributes(i)}for(let n=0;n<t.length;n++){const i=t[n];e.linkShader(i)}if(window.lunaStartup)for(let n=0;n<t.length;n++){const i=t[n];i.ready||e.postLink(i)}}_downloadBlobDataAsync(){return this.dowloadBlobPromise||(this.dowloadBlobPromise=new Promise((e=>{this.network.GetBlobAsync("assets/bundles/"+this.manifest.id+"/data.blob").continueWith((t=>{t.status===System.Threading.Tasks.TaskStatus.ranToCompletion?(this.blob=t.result,rt.tickResource(),e()):(t.exception&&t.exception.innerException?t.exception.innerException.message:null)===LunaUnity.Utils.Network.ERR_ABORTED||e()}))}))),this.dowloadBlobPromise}_downloadBundleDataAsync(){return this.downloadPromise||(this.downloadPromise=new Promise(((e,t)=>{this.network.GetJsonAsync("assets/bundles/"+this.manifest.id+"/bundle.json").continueWith((n=>{n.status===System.Threading.Tasks.TaskStatus.ranToCompletion?(this.json=n.result,rt.tickResource(),e()):t(n.error||n.exception)}))}))),this.downloadPromise}_loadSimpleAssetsAsync(e,t){return this._loadAssetsFromBundlesAsync(e,t,[{handler:"urp_asset",json:"urp-assets"},{handler:"shader",json:"shaders"},{handler:"texture",json:"textures"},{handler:"mesh",json:"meshes"},{handler:"video",json:"videos"},{handler:"sound",json:"sounds"},{handler:"animation_clip",json:"animation-clips"},{handler:"blend_tree",json:"blend-trees"},{handler:"text_asset",json:"text-assets"},{handler:"audio_mixer",json:"audio-mixers"},{handler:"physic_material",json:"physic-materials"},{handler:"physics_material_2d",json:"physics-materials-2d"},{handler:"audio_mixer_snapshot",json:"audio-mixer-snapshots"},{handler:"avatar",json:"avatars"}])}_loadComplexAssetsAsync(e,t){return this._loadAssetsFromBundlesAsync(e,t,[{handler:"cubemap",json:"cubemaps"},{handler:"material",json:"materials"},{handler:"sprite",json:"sprites"},{handler:"font",json:"fonts"},{handler:"animator_controller",json:"animator-controllers"},{handler:"animator_override_controller",json:"animator-override-controllers"},{handler:"sprite_atlas",json:"sprite-atlases"}])}_loadPrefabsAsync(e,t){let n=[],i=[];for(let e=0;e<t.length;e++){const r=t[e];r._guardAssetType("prefabs",(()=>{n=n.concat(r.json.prefabs||[])})),r._guardAssetType("scriptable-objects",(()=>{i=i.concat(r.json["scriptable-objects"]||[])}))}const r=rt.handlers.game_object,s=rt.handlers.scriptable_object,a=tt.a.getApplication().systems.list;for(let e=0;e<a.length;e++)a[e].creatingPrefabs=!0;for(let i=0;i<n.length;i++)r.loadAsync(e,n[i],t),this._tickResource();for(let e=0;e<a.length;e++)a[e].creatingPrefabs=!1;const o=[];for(let t=0;t<i.length;t++){const n=s.loadAsync(e,i[t],[]);o.push(n),this._tickResource()}for(let e=0;e<o.length;e++){const t=o[e];t.CallAwake&&t.CallAwake(),t.CallOnEnable&&t.CallOnEnable()}return Promise.resolve(null)}_loadScenesAsync(e,t){return this._loadAssetsFromBundlesAsync(e,t,[{handler:"resources",json:"resources"},{handler:"scene",json:"scenes"}])}_loadAssetsFromBundlesAsync(e,t,n){const i=[],r={};for(let s=0;s<n.length;s++){const a=n[s].handler,o=n[s].json,l=rt.handlers[a];let c=[];for(let e=0;e<t.length;e++){const n=t[e];r[n.manifest.id]=n,n._guardAssetType(o,(()=>{c=c.concat(n.json[o]||[])}))}for(let n=0;n<c.length;n++){let s=c[n];window.playgroundBundlesOverrides&&(s=window.playgroundBundlesOverrides[s.id]||s);const a=l.loadAsync(e,s,t);this._tickResource(),a instanceof Promise&&i.push(a.then((()=>rt.tickResource()))),r[s.assetBundleId].namesToId[(s.name||"").toLowerCase()]=c[n].id||s.$id}}return Promise.all(i)}_remove(){console.warn("Requested removal of asset bundle id = "+this.manifest.id+" - this is no-op for now")}_guardAssetType(e,t){this._guardAssetTypes=this._guardAssetTypes||{},this._guardAssetTypes[e]||t(),this._guardAssetTypes[e]=!0}}rt.handlers=null,rt.bundles=null,rt._bundles={},rt.objectSpace=null,rt.network=null,rt.configure=(e,t)=>{rt.objectSpace=e.objectSpace,rt.network=e.network,rt.bundles=t,rt.handlers={game_object:new J(e),audio_mixer:new Q(e),audio_mixer_snapshot:new X(e),project_settings:new le(e),material:new me(e),physic_material:new ge(e),physics_material_2d:new $e(e),mesh:new _e(e),scene:new Ee(e),shader:new Te(e),video:new Ie(e),sound:new Ae(e),sprite:new De(e),texture:new Ue(e),cubemap:new Oe(e),animation_clip:new ke(e),blend_tree:new ze(e),animator_controller:new He(e),animator_override_controller:new je(e),font:new We(e),resources:new Je(e),scriptable_object:new Qe(e),text_asset:new Ye(e),sprite_atlas:new it(e),urp_asset:new nt(e),prefab_component:new et(e),avatar:new qe(e)}},rt._resources=0,rt.tickResource=()=>{rt._resources++},rt.loadAsync=e=>rt.new(e)._loadAsync(),rt.loadProjectSettingsAsync=(e,t)=>{const n=new System.Threading.Tasks.TaskCompletionSource;rt.configure(e,t);const i=new ue,r=rt.new(-2),s=[{handler:"project_settings",json:"project-settings"}];return r._downloadBundleDataAsync().then((()=>r._loadAssetsFromBundlesAsync(i,[r],s))).then((()=>{console.info("%cProject Settings loaded successfully","background-color: black; color: white; padding: 1em;"),i.resolveReferences(r.objectSpace.getRegistry()),n.setResult(void 0)})).catch((e=>{console.error(e)})),n.task},rt.checkIsObjectAlreadyLoadedFromResources=e=>!e.isPrefabProxy,rt.loadObject=e=>{const t=new ue,n=rt.handlers.game_object.loadAsync(t,e.prefab,[]);return t.resolveReferences(rt.objectSpace.getRegistry()),n},rt.new=e=>{const t=rt.bundles[e];return rt._bundles[e]=rt._bundles[e]||new rt({manifest:t,objectSpace:rt.objectSpace,network:rt.network}),rt._bundles[e]},rt.cleanup=()=>{Object.keys(rt._bundles).forEach((e=>{const t=rt._bundles[e];t.blob=null,t.json=null})),window.blobs=null,window.jsons=null,window.sounds=null};class st{constructor(){this.$id=0,this.isLoaded=!1,this.index=-1,this.name="",this.template=null,this.renderSettings=null,this.root=null,this.rootJsons=null,this.projectSettings=i.i.instance}initializeAsTemplate(e){return this.rootJsons=e.rootJsons,this.renderSettings=e.renderSettings,this.name=e.name,this.index=e.index,this}_createRoot(){this.root=new i.f,this.root.scene=this,this.root.name="SceneRoot: "+this.name,i.a.getApplication().root.addChild(this.root)}initializeAsDontDestroyOnLoad(){this.name="DontDestroyOnLoad",this.isLoaded=!0,this._createRoot()}isValid(){return!0}_load(e){this.isLoaded=!0,this._createRoot(),UnityEngine.LightmapSettings.reflectionProbes||(UnityEngine.LightmapSettings.reflectionProbes=new UnityEngine.ReflectionProbes),this._installLightProbes(),this._installLightmaps(),this.disableCallbacks(),this._loadObjects(),e!==UnityEngine.SceneManagement.LoadSceneMode.Instant&&e!==UnityEngine.SceneManagement.LoadSceneMode.Single||(window.$scene=this,this._applyRenderSettings(),this._updateEnvironmentLighting()),this.invokeCallbacks(this.root),this.root.syncHierarchy()}loadAsync(e){return this._load(e)}unload(){this._unload()}_unload(){const e=this.root.children.slice();for(let t=0;t<e.length;t++)new i.e(e[t],0).execute();this.root.destroy(),this.root=null,this.isLoaded=!1,this._uninstallLightProbes()}findChild(e,t){if(t.id===e)return t;{let n=null;for(let i=0;i<t.children.length&&(n=this.findChild(e,t.children[i]),!n);i++);return n}}_instantiate(e,t,n,i,r,s){const a=rt.handlers.game_object.fork(),o=new ue;let l;o.root=r||this.root;let c=!1;if(e.handle&&!e.handle.isPrefab){const n=e.gameObject.handle.$id;t.handle.$id===n?l=t.handle.objectJson:(t=t.handle.objectJson,l=this.findChild(n,t)),t=e.handle}else if(t.isPrefabProxy)l=t.prefab||a.registry.Get(t.prefabId).prefab,l||(l=a.registry.Get(t.prefabId).objectJson);else if(l=(t=t.handle).objectJson,c=!0,!l)throw Error("Unable to instantiate a non-prefab object");this.disableCallbacks();const u=a.loadAsync(o,l,[]);if(u.isPrefab=!1,e.handle&&!e.handle.isPrefab&&this._copyTransformsFromSource(e.handle,u),u.name=(t.name||u.name)+"(Clone)",c&&(u.enabled=t.activeSelf),o.resolveReferences(a.registry),n&&i)u.muteTransformModificationCallback(),u.setRotation(i),u.setPosition(n),u.unmuteTransformModificationCallback();else if(s){u.muteTransformModificationCallback();const e=u.getLocalRotationAndScale();u.setRotation(u.getLocalRotation().clone()),u.setPosition(u.getLocalPosition().clone()),u.setWorldRotationAndScale(e),u.unmuteTransformModificationCallback()}this.invokeCallbacks(u);const h=a.registry.Get(t.isPrefabProxy?t.componentId||l.id:e.handle.$id);if(h.code)return h.code;if(t.isPrefabProxy)return UnityEngine.Object.FromHandle(e,h);if(Bridge.Reflection.isAssignableFrom(UnityEngine.Transform,Bridge.getType(e)))return UnityEngine.Object.FromHandle(UnityEngine.GameObject,h).transform;if("GameObject"===Bridge.Reflection.getTypeName(Bridge.getType(e)))return UnityEngine.Object.FromHandle(UnityEngine.GameObject,h);throw Error("Don't know what should be instantiated")}_copyTransformsFromSource(e,t){this._copyTransformFromSource(e,t),this._copyRectTransformFromSource(e,t)}_copyTransformFromSource(e,t){const n=e["__UnityEngine.Transform"],i=t["__UnityEngine.Transform"];n&&i&&(i.setlocalPosition(n.localPosition),i.setlocalRotation(n.localRotation),i.setlocalScale(n.localScale));const r=e.children?e.children.length:0,s=t.children?t.children.length:0,a=r<s?r:s;for(let n=0;n<a;n++)this._copyTransformFromSource(e.children[n],t.children[n])}_copyRectTransformFromSource(e,t){const n=e["__UnityEngine.RectTransform"],i=t["__UnityEngine.RectTransform"];n&&i&&(i.setpivot(n.pivot),i.setanchorMin(n.anchorMin),i.setanchorMax(n.anchorMax),i.setanchoredPosition(n.anchoredPosition),i.setsizeDelta(n.sizeDelta));const r=e.children?e.children.length:0,s=t.children?t.children.length:0,a=r<s?r:s;for(let n=0;n<a;n++)this._copyRectTransformFromSource(e.children[n],t.children[n])}_applyRenderSettings(){const e=i.a.getApplication(),t=UnityEngine.RenderSettings,n=this.renderSettings;e.scene.ambientLight=(new r.d).copy(n.ambientLight),t._ambientMode=n.ambientMode,t._pixelLightCount=e.isUrp?4:n.pixelLightCount,t._ambientLight=n.ambientLight.clone(),t._ambientSkyColor=n.ambientSkyColor.clone(),t._ambientEquatorColor=n.ambientEquatorColor.clone(),t._ambientGroundColor=n.ambientGroundColor.clone(),t._ambientIntensity=n.ambientIntensity,t._reflectionIntensity=n.reflectionIntensity,t._defaultReflectionMode=n.defaultReflectionMode,t._defaultReflectionResolution=n.defaultReflectionResolution,t.sun=n.sun,t._skybox=n.skybox,t.mixedBakeMode=n.mixedBakeMode,t.fogDensity=n.fogDensity,t.fogColor=n.fogColor.clone(),t.fogStartDistance=n.fogStartDistance,t.fogEndDistance=n.fogEndDistance,t.fogMode=n.fogMode,t.fog=n.fog,t.hasLightDataAsset=n.hasLightDataAsset,t.hasManualGenerate=n.hasManualGenerate,t.ambientProbe.clear(),this._installSkybox(),t._customReflection=n.customReflection}_updateEnvironmentLighting(){const e=UnityEngine.RenderSettings,t=i.a.getApplication();t.scene.skybox.update(),t.scene.skybox.environmentCubemap||e.defaultReflectionMode!==UnityEngine.Rendering.DefaultReflectionMode.Skybox&&e.defaultReflectionMode!==UnityEngine.Rendering.DefaultReflectionMode.Custom?(t.scene.skybox.computeIndirectSpecular(),t.scene.skybox.updateReflectionIntensity()):UnityEngine.DynamicGI.BakeReflectionsCubemap(),this.handleAmbientLight()}handleAmbientLight(){UnityEngine.RenderSettings.ambientProbe.copy(this.renderSettings.ambientProbe)}_installSkybox(){const e=i.a.getApplication();e.scene.skybox||(e.scene.skybox=new s.p(e,e.scene,this.renderSettings),e.scene.skybox.install(),e.scene.skybox.environmentCubemap=this.renderSettings.defaultReflection?this.renderSettings.defaultReflection.handle:null)}_installLightmaps(){this.renderSettings.lightmaps&&0!==this.renderSettings.lightmaps.length&&(UnityEngine.LightmapSettings.lightmapEncodingQuality=this.projectSettings.lightmapEncodingQuality,UnityEngine.LightmapSettings.bakedColorSpace=this.projectSettings.desiredColorSpace,UnityEngine.LightmapSettings.lightmapsMode=this.renderSettings.lightmapsMode,UnityEngine.LightmapSettings.environmentLightingMode=this.renderSettings.environmentLightingMode,UnityEngine.LightmapSettings.manager.loadSceneLightmaps(this.index,this.renderSettings.lightmaps))}_installLightProbes(){if(UnityEngine.LightmapSettings.lightProbes||(UnityEngine.LightmapSettings.lightProbes=this.renderSettings.lightProbes),!this.renderSettings.lightProbes||!this.renderSettings.lightProbes.HasProbes)return;const e=UnityEngine.SceneManagement.SceneManager.currentLightProbeProvider;e&&e.index===this.index||(UnityEngine.LightmapSettings.lightProbes&&UnityEngine.LightmapSettings.lightProbes.HasProbes&&UnityEngine.Debug.LogWarning$1("Another scene with light probes was loaded. Previous light probes were unloaded."),UnityEngine.LightmapSettings.lightProbes=this.renderSettings.lightProbes),UnityEngine.SceneManagement.SceneManager.currentLightProbeProvider=this}_uninstallLightProbes(){if(UnityEngine.SceneManagement.SceneManager.currentLightProbeProvider!==this)return;const e=this.getClosestLoadedSceneMatch((e=>e._containsLightProbes()));e&&e._installLightProbes()}getClosestLoadedSceneMatch(e){const t=UnityEngine.SceneManagement.SceneManager,n=t.GetSceneIndex(this);if(n<0)return null;const i=t.loadedScenes._items,r=t.loadedScenes.Count;for(let t=n-1;t>=0;t--){const n=i[t];if(n&&n.isLoaded&&(!e||e(n)))return n}for(let t=n+1;t<r;t++){const n=i[t];if(n&&n.isLoaded&&(!e||e(n)))return n}return null}_containsLightProbes(){return this.renderSettings.lightProbes&&this.renderSettings.lightProbes.HasProbes}_loadObjects(){const e=rt.handlers.game_object.fork(),t=new ue;t.root=this.root;const n=i.a.getApplication().systems;for(let n=0;n<this.rootJsons.length;n++)e.loadAsync(t,this.rootJsons[n],[]);n.physics.syncTransforms(this.root),n.physics2D.syncTransforms(this.root),n.physics.syncHierarchyRecursive(this.root),n.physics2D.syncHierarchyRecursive(this.root);const r=e.registry.TryGet(this.renderSettings.sunLightObjectId);this.renderSettings.sun=UnityEngine.Object.FromHandle(UnityEngine.Light,r),t.resolveReferences(e.registry)}invokeCallbacks(e){i.a.getApplication().systems.unitymanager.invokeCallbacks(e)}disableCallbacks(){i.a.getApplication().systems.unitymanager.disableCallbacks()}getRootGameObjects(){if(!this.root)return System.Array.init([],UnityEngine.GameObject);const e=this.root.children,t=e.length,n=Array(t);for(let i=0;i<t;++i)n[i]=UnityEngine.Object.FromHandle(UnityEngine.GameObject,e[i]);return System.Array.init(n,UnityEngine.GameObject)}createInstance(){const e=new st;return e.template=this,e.index=this.index,e.name=this.name,e.rootJsons=this.rootJsons,e.renderSettings=this.renderSettings,e}setActive(e){e&&window.$scene!==this&&(this._applyRenderSettings(),this._updateEnvironmentLighting(),window.$scene=this)}addGameObjectToRoot(e){const t=e.handle;let n=null;if(t.parent&&(n=t.parent.scene),n&&n===this)return;const i=t.getWorldTransform().clone();t.reparent(this.root,-1),t.setLocalTransform(i)}}window.LunaUnity=window.LunaUnity||{},window.LunaUnity.Objects=window.LunaUnity.Objects||{},window.LunaUnity.Objects.Scene=st,window.LunaUnity.Objects.Request=ue,window.LunaUnity.Objects.ImmediateRequest=he,window.LunaUnity.Objects.LightmapManager=class{constructor(){this.lightmaps=[]}getLightmap(e,t){const n=this.lightmaps[e];return n?n.lightmaps[t]:null}loadSceneLightmaps(e,t){this.lightmaps[e]=this.lightmaps[e]||{lightmaps:[],custom:!1},this.lightmaps[e].lightmaps=t,this.lightmaps[e].custom=!1}setManagedLightmaps(e){const t=UnityEngine.SceneManagement.SceneManager.loadedScenes._items,n=UnityEngine.SceneManagement.SceneManager.loadedScenes.Count;for(let i=0;i<n;i++){const r=t[i],s=this.lightmaps[r.index];if(s){const r=[];let a=s.lightmaps.length,o=!0;for(let e=i+1;e<n;e++)if(this.lightmaps[t[e].index]){o=!1;break}o&&(a=e.length-0);for(let e=0;e<a;e++);s.custom=!0,s.lightmaps=r}}}getManagedLightmaps(){this.lightmaps.length;const e=UnityEngine.SceneManagement.SceneManager.loadedScenes._items,t=UnityEngine.SceneManagement.SceneManager.loadedScenes.Count;for(let n=0;n<t;n++){const t=e[n],i=this.lightmaps[t.index];if(i){const e=i.lightmaps;for(let t=0;t<e.length;t++);}}}},window.LunaUnity.Objects.Bundle=rt}},e=>{e.O(0,[1],(()=>e(e.s=57))),e.O()}]),function(){const e=function(e,t){this.o=e,this.n=t};Object.defineProperty(e.prototype,"v",{get:function(){return null===this.n||void 0===this.n?this.o:this.o[this.n]},set:function(e){null!==this.n&&void 0!==this.n||(e&&e.$clone?e.$clone(this.o):this.o=e),this.o[this.n]=e}}),Bridge.ref=function(t,n){return Bridge.isArray(n)&&(n=System.Array.toIndex(t,n)),new e(t,n)},Bridge._getTypeByName=LunaUnity.Objects.Request.prototype._getTypeByName}(),window.System$Collections$Generic$ICollection$1$Function$contains="contains",window.System$Collections$Generic$ICollection$1$Function$getItem="getItem",window.System$Collections$Generic$ICollection$1$Function$setItem="setItem",window.System$Collections$Generic$ICollection$1$Function$removeItem="removeItem",window.System$Collections$Generic$IDictionary$2$Function$Function$add="add",window.System$Collections$Generic$IDictionary$2$Function$Function$containsKey="containsKey",window.System$Collections$Generic$IDictionary$2$Function$Function$getItem="getItem",window.System$Collections$Generic$IDictionary$2$Function$Function$setItem="setItem",window.System$Collections$Generic$IDictionary$2$Function$Function$removeItem="removeItem",Bridge.ns=function(e,t){const n=e.split(".");let i=0;if(t||(t=Bridge.global),t===Bridge.global&&(window.$typeCache=window.$typeCache||{},window.$typeCache[e]))return window.$typeCache[e];for(i=0;i<n.length;i++)void 0===t[n[i]]&&(t[n[i]]={}),t=t[n[i]];return t===Bridge.global&&(window.$typeCache[e]=t),t};"use strict";(self.webpackChunkluna=self.webpackChunkluna||[]).push([[12],{52:(e,t,n)=>{var i=n(31),r=n(11),s=n(2),a=(n(26),n(38),n(0));const o=256,l=new Float32Array(o),c=new Float32Array(o),u=new Float32Array(o),h=new Float32Array(o),d=new Float32Array(o),m=new Float32Array(4),g=new Float32Array([4,0,0,0]),$=new Float32Array([0,0,0,0]),p=new Float32Array([0,0,0,0]),y=new Float32Array([0,0,0,0]),f=new Float32Array(16),_=new Float32Array([0,0,0,0]),S=new pc.Vec4,b=new pc.Vec4(-1,1,-1,-1),C=new a.i,E=[],T=[],v=[],I=[],x=new r.a,A=new r.a;let w=null;class D extends i.a{constructor(e,t,n){const i=this.device.scope;this.unityUrpIds={mainLightColor:i.resolve("_MainLightColor"),mainLightPosition:i.resolve("_MainLightPosition"),lightDirection:i.resolve("_LightDirection"),unityLightData:i.resolve("unity_LightData"),lightIndices:i.resolve("unity_LightIndices[0]"),additionalLightsCount:i.resolve("_AdditionalLightsCount"),occlusionProbes:i.resolve("unity_ProbesOcclusion"),glossyEnvironmentColor:i.resolve("_GlossyEnvironmentColor"),additionalLightsPosition:i.resolve("_AdditionalLightsPosition[0]"),additionalLightsColor:i.resolve("_AdditionalLightsColor[0]"),additionalLightsAttenuation:i.resolve("_AdditionalLightsAttenuation[0]"),additionalLightsSpotDir:i.resolve("_AdditionalLightsSpotDir[0]"),additionalLightsOcclusionProbe:i.resolve("_AdditionalLightsOcclusionProbes[0]"),cameraOpaqueTexture:i.resolve("_CameraOpaqueTexture"),scaledScreenParamsId:i.resolve("_ScaledScreenParams"),invCameraViewProj:i.resolve("hlslcc_mtx4x4_InvCameraViewProj[0]")}}setCamera(e,t,n=!1){C.copy(e.invViewProjMat),this.unityUrpIds.invCameraViewProj.setValue(C.data),super.setCamera(e,t,n)}processClear(e){if(e.additionalCameraData.renderType===s.c.URP_CAMERA_RENDER_TYPE_BASE)this.device.clear(e.camera._clearOptions);else if(e.additionalCameraData.renderType===s.c.URP_CAMERA_RENDER_TYPE_OVERLAY&&e.additionalCameraData.clearDepth){const e={depth:1,flags:s.c.CLEARFLAG_DEPTH};this.device.clear(e)}}renderCameras(e){for(let t=0;t<e.length;t++){const n=e[t];this.renderCamera(n);const i=n.additionalCameraData;if(i&&i.cameraStack)for(const e of i.cameraStack._items)e&&this.renderCamera(e.handle)}}getCameras(){return this.scene._urpBaseCameras}renderMeshInstance(e,t,n,i,a){const o=this.device,l=i.material,c=(i._shaderDefs&s.c.SHADERDEF_LM)>0;if(!l||0===i.mesh.primitive.length||0===i.mesh.primitive[0].count)return;this.getPassesFromMaterial(l);const u=E.length>0,h=I.length>0,d=v.length>0;if(!u&&!h&&!d)return;c&&i.configureLightmap(),this.updateScissor();const m=i.morphInstance&&i.morphInstance._vertexBuffer||i.mesh.vertexBuffer;if(this.device.setVertexBuffer(m,0),this.device.setIndexBuffer(i.mesh.indexBuffer[0]),this.app.counters.recordDrawCall(),i.mesh.meshInstance){const e=i.mesh.meshInstance.instancingData;this.app.counters.recordVertices(e&&e.count>0?m.numVertices*e.count:m.numVertices)}else this.app.counters.recordVertices(m.numVertices);if(this.setSkinning(this.device,i),this.setMaterial(this.device,i.material),this.pushUniforms(this.device,i.parameters),this.setDrawCall(this.device,i),o.setDepthRange((i._shaderDefs&s.c.SHADERDEF_RENDERTYPE_BACKGROUND)>0?1:0,1),e.merge(l.keywords),e.merge(x),c&&e.enableKeywordId(r.b.LIGHTMAP_ON),(i._shaderDefs&s.c.SHADERDEF_DIRLM)>0&&e.enableKeywordId(r.b.DIRLIGHTMAP_COMBINED),!d||u||h||this.renderMeshInstancePasses(v,e,i),!u&&!h)return this.popUniforms(this.device,i.parameters),void this.setDrawCall(this.device,null);u&&(T[0]=E[0],this.drawUrpForwardLitPass(T,i,a,e,c,t,n)),h&&this.renderMeshInstancePasses(I,e,i),this.restoreScissorTest(),this.popUniforms(o,i.parameters),this.setDrawCall(o,null)}setupGlobalKeywordsForCamera(e,t){let n=!1,i=!1;for(let e=0;e<t.length;e++){if(t[e]._type===s.c.LIGHTTYPE_POINT||t[e]._type===s.c.LIGHTTYPE_DIRECTIONAL&&n){i=!0;break}t[e]._type===s.c.LIGHTTYPE_DIRECTIONAL&&(n=!0)}this.additionalLightsRenderingMode!==UnityEngine.Rendering.Universal.LightRenderingMode.Disabled&&i&&(this.additionalLightsRenderingMode===UnityEngine.Rendering.Universal.LightRenderingMode.PerPixel?x.enableKeywordId(r.b._ADDITIONAL_LIGHTS):this.additionalLightsRenderingMode===UnityEngine.Rendering.Universal.LightRenderingMode.PerVertex&&x.enableKeywordId(r.b._ADDITIONAL_LIGHTS_VERTEX))}drawUrpForwardLitPass(e,t,n,i,a,o,l){const c=this.setupLightProbe(a,o);this.setupGlossyEnvColor(),this.dispatchLightProbe(c,A,a),this.dispatchMainLightUrp(this.lightData.mainLight),this.dispatchLights(this.lightData,a),t._material._shader.isCreatedByShaderGraph&&!n.find((e=>e._type===s.c.LIGHTTYPE_POINT))&&n.filter((e=>e._type===s.c.LIGHTTYPE_DIRECTIONAL)).length<=1&&A.enableKeywordId(r.b._ADDITIONAL_LIGHTS_VERTEX),this.renderMeshInstancePasses(e,A,t)}dispatchLights(e,t){const n=e.vertexLights.length>0?e.vertexLights.length:e.pixelLights.length;!t||e.mainLight&&!e.mainLight.affectLightmapped?($[1]=0===n&&e.mainLight?1:n,$[2]=e.mainLight?1:0):($[1]=0===n&&e.mainLight&&0===UnityEngine.RenderSettings.mixedBakeMode?1:n,$[2]=e.mainLight&&0===UnityEngine.RenderSettings.mixedBakeMode?1:0),this.unityUrpIds.unityLightData.setValue($),this.unityUrpIds.occlusionProbes.setValue([1,1,1,1]),this.dispatchAdditionalLights(e)}dispatchMainLightUrp(e){null===e?(p[0]=0,p[1]=0,p[2]=0,p[3]=1,y[0]=0,y[1]=0,y[2]=-1,y[3]=0,f.set(pc.Mat4.IDENTITY.data)):(p.set(e._finalColor),y[0]=e._directionToLight.x,y[1]=e._directionToLight.y,y[2]=e._directionToLight.z,y[3]=0,f.set(e._worldToLightMatrix.data)),this.unityUrpIds.mainLightColor.setValue(p),this.unityUrpIds.mainLightPosition.setValue(y),this.unityUrpIds.lightDirection.setValue(y),this.lightIds.matrix.setValue(f)}dispatchAdditionalLights(e){const t=this.additionalLightsRenderingMode===UnityEngine.Rendering.Universal.LightRenderingMode.PerPixel?e.pixelLights:e.vertexLights,n=Math.min(t.length,UnityEngine.RenderSettings._pixelLightCount);for(let e=0;e<n;e++){const n=t[e];this.dispatchAdditionalLight(n,e)}this.unityUrpIds.additionalLightsPosition.setValue(l),this.unityUrpIds.additionalLightsColor.setValue(c),this.unityUrpIds.additionalLightsAttenuation.setValue(u),this.unityUrpIds.additionalLightsSpotDir.setValue(h),this.unityUrpIds.additionalLightsOcclusionProbe.setValue(d),g[0]=n,this.unityUrpIds.additionalLightsCount.setValue(g);for(let e=0;e<4;e++)m[e]=e;this.unityUrpIds.lightIndices.setValue(m)}dispatchAdditionalLight(e,t){const n=4*t,i=e._type===s.c.LIGHTTYPE_DIRECTIONAL?e._directionToLight:e._position;if(l[n+0]=i.x,l[n+1]=i.y,l[n+2]=i.z,l[n+3]=e._type===s.c.LIGHTTYPE_DIRECTIONAL?0:1,c[n+0]=e._finalColor[0],c[n+1]=e._finalColor[1],c[n+2]=e._finalColor[2],c[n+3]=e._finalColor[3],e._type===s.c.LIGHTTYPE_DIRECTIONAL)S.set(0,1,0,1);else{const t=e.range*e._attenuationEnd,n=-t/(.8*.8*t-t);S.set(1/Math.max(1e-4,e._attenuationEnd*e._attenuationEnd),n,0,1)}u[n+0]=S.x,u[n+1]=S.y,u[n+2]=S.z,u[n+3]=S.w,h[n+0]=0,h[n+1]=0,h[n+2]=1,h[n+3]=0;const r=b;r.x=0,r.y=1,d[n+0]=r.x,d[n+1]=r.y,d[n+2]=r.z,d[n+3]=r.w}setupGlossyEnvColor(){const e=UnityEngine.RenderSettings.ambientProbe,t=UnityEngine.RenderSettings._reflectionIntensity;_[0]=UnityEngine.Mathf.LinearToGammaSpace(e.data[0]*t),_[1]=UnityEngine.Mathf.LinearToGammaSpace(e.data[9]*t),_[2]=UnityEngine.Mathf.LinearToGammaSpace(e.data[18]*t),_[3]=t,this.unityUrpIds.glossyEnvironmentColor.setValue(_)}getPassesFromMaterial(e){e.getPass(s.c.SHADER_PASS_UNIVERSAL_FORWARD_LIT,E),e.getPass(s.c.SHADER_PASS_SRP_DEFAULT_UNLIT,I),e.getPass(s.c.SHADER_PASS_ALWAYS,v)}dispatchLightProbe(e,t,n){e.updateUniforms();for(let t=0;t<this.unityIds.lightProbeIds.length;t++)this.unityIds.lightProbeIds[t].setValue(e.uniforms[t]._data)}needToRenderDepth(){return this.urpAsset.RequireDepthTexture&&this.scene.hasVisibleDepthConsumers()}onOpaqueRendered(e){super.onOpaqueRendered(e),this.urpAsset.RequireOpaqueTexture&&this.drawCameraOpaqueTexture(e)}drawCameraOpaqueTexture(e){const t=this.device,n=e?e._screenParams:[this.device.width,this.device.height];null===w&&(w=this.createTexture(n[0],n[1]),w.name="_CameraOpaqueTexture"),t.setTexture(w,0),t.activeTexture(0),t.gl.copyTexSubImage2D(t.gl.TEXTURE_2D,0,0,0,0,0,w._width,w._height),this.unityUrpIds.cameraOpaqueTexture.setValue(w)}needToDrawSkybox(e,t){return e&&t.clearSkybox&&t._component.additionalCameraData.renderType===s.c.URP_CAMERA_RENDER_TYPE_BASE}}pc.ForwardRendererUrp=D}},e=>{e.O(0,[1],(()=>e(e.s=52))),e.O()}]),function(){class e{constructor(){Goblin.warnOnce()}}pc.PhysicsSystem=class extends pc.UnityComponentSystem{constructor(e){super(e),this.id="physics",this.performanceSamplerSection=pc.Counters.PHYSICS,this._world=Goblin.World.initialize();const t=pc.ProjectSettings.instance.physicsSettings;this.gravity=t.gravity.clone(),this.autoSyncTransforms=t.autoSyncTransforms,this.defaultSolverIterations=t.defaultSolverIterations,this.bounceThreshold=t.bounceThreshold,this.autoSimulation=t.autoSimulation,this.adapter={_colliders:[]}}setIgnoreCollisionBetweenLayers(){}syncHierarchyRecursive(){}syncHierarchy(){}syncTransforms(){}},pc.RigidbodySystem=class extends pc.UnityComponentSystem{constructor(e){super(e),this.id="rigidbody",this.performanceSamplerSection=pc.Counters.PHYSICS}},pc.RigidbodyComponent=e,pc.JointSystem=class extends pc.UnityComponentSystem{constructor(e){super(e),this.id="joint",this.performanceSamplerSection=pc.Counters.PHYSICS}},pc.JointComponent=e,pc.ColliderSystem=class extends pc.UnityComponentSystem{constructor(e){super(e),this.id="collider",this.performanceSamplerSection=pc.Counters.PHYSICS}},pc.ColliderComponent=e,pc.BoxColliderComponent=e,pc.SphereColliderComponent=e,pc.MeshColliderComponent=e,pc.CapsuleColliderComponent=e,pc.WheelColliderComponent=e,pc.CharacterControllerComponent=e}(),(self.webpackChunkluna=self.webpackChunkluna||[]).push([[7],{54:(e,t,n)=>{var i=n(0);class r{constructor(){this._seed=1,this._initialSeed=this._seed}randomizeSeed(){const e=Math.floor(2147483647*Math.random());this.setSeed(e)}reset(){this._seed=this._initialSeed}setSeed(e){0===e&&(e=1),this._seed=e,this._initialSeed=this._seed}nextInteger(){return this._seed=16807*this._seed%2147483647}nextFloat(){return this.nextInteger()/2147483647}nextGFloat(){return(this.nextFloat()+this.nextFloat()+this.nextFloat()+this.nextFloat()+this.nextFloat()+this.nextFloat())/6}get initialSeed(){return this._initialSeed}set initialSeed(e){this._initialSeed=e}get seed(){return this._seed}set seed(e){this._seed=e}}var s=n(21),a=n(35);const o=new s.a,l=new s.a;class c{constructor(e,t){this._evaluateInplace=this._evaluateColorInplace,e instanceof s.a&&t instanceof s.a?this.init(e,t,new a.a(null,null,null),new a.a(null,null,null),2):e instanceof a.a&&t instanceof a.a?this.init(new s.a,new s.a,e,t,3):e instanceof s.a?this.init(new s.a,e,new a.a(null,null,null),new a.a(null,null,null),0):e instanceof a.a?this.init(new s.a,new s.a,new a.a(null,null,null),e,1):this.init(new s.a,new s.a,new a.a(null,null,null),new a.a(null,null,null),0),pc.markParticleSystemModuleAsUsed()}init(e,t,n,i,r){return this._colorMax=t,this._colorMin=e,this._gradientMax=i,this._gradientMin=n,this._mode=r,this.applyMode(),this}evaluate(e){const t=new s.a(1,1,1,1);return this._evaluateInplace(t,e,0),t}applyMode(){switch(this._mode){case 0:this._evaluateInplace=this._evaluateColorInplace;break;case 1:this._evaluateInplace=this._evaluateGradientInplace;break;case 2:this._evaluateInplace=this._evaluateTwoColorsInplace;break;case 3:this._evaluateInplace=this._evaluateTwoGradientsInplace;break;case 4:this._evaluateInplace=this._evaluateGradientRandomInplace}}_evaluateColorInplace(e,t,n){e.copy(this._colorMax)}_evaluateGradientInplace(e,t,n){this.gradient.sampleInplace(t,e)}_evaluateGradientRandomInplace(e,t,n){this.gradient.sampleInplace(n,e)}_evaluateTwoGradientsInplace(e,t,n){this.gradientMin.sampleInplace(t,o),this.gradientMax.sampleInplace(t,l),e.copy(o).lerpTo(l,n)}_evaluateTwoColorsInplace(e,t,n){e.copy(this.colorMin).lerpTo(this._colorMax,n)}get mode(){return this._mode}set mode(e){this._mode=e,this.applyMode()}get isRandom(){return 2===this._mode||3===this._mode||4===this._mode}get color(){return this._colorMax}set color(e){this._colorMax=e}get colorMin(){return this._colorMin}set colorMin(e){this._colorMin=e}get colorMax(){return this._colorMax}set colorMax(e){this._colorMax=e}get gradient(){return this._gradientMax}set gradient(e){this._gradientMax=e}get gradientMax(){return this._gradientMax}set gradientMax(e){this._gradientMax=e}get gradientMin(){return this._gradientMin}set gradientMin(e){this._gradientMin=e}get evaluateInplace(){return this._evaluateInplace}get internalMode(){return this._mode}set internalMode(e){switch(this.mode=e,e){case 0:case 2:break;case 1:this._gradientMax=this._gradientMax||new a.a(null,null,null);break;case 3:this._gradientMax=this._gradientMax||new a.a(null,null,null),this._gradientMin=this._gradientMin||new a.a(null,null,null)}}get internalGradientMax(){return this._gradientMax=this._gradientMax||new a.a(null,null,null),this._gradientMax}set internalGradientMax(e){this._gradientMax=e}get internalGradientMin(){return this._gradientMin=this._gradientMin||new a.a(null,null,null),this._gradientMin}set internalGradientMin(e){this._gradientMin=e}}var u=n(1);const h=new i.d,d=new r;class m{constructor(e){this._ps=e,this._enabled=!1,this._range=new i.l,this._color=new c(null,null),pc.markParticleSystemModuleAsUsed()}processInplace(e){if(this.range.x>this.range.y){const e=this.range.x;this.range.x=this.range.y,this.range.y=e}const t=e.aliveCount,n=e.color,i=e.animatedVelocity,r=e.velocity,s=e.seed;let a=0,o=0,l=0,c=0,u=0,m=0,g=0;if(this._color.isRandom)for(let e=0;e<t;e++)a=3*e,o=4*e,d.setSeed(s[e]),l=i[a]+r[a],c=i[a+1]+r[a+1],u=i[a+2]+r[a+2],m=Math.sqrt(l*l+c*c+u*u),g=m>this.range.y?1:m<this.range.x?0:(m-this.range.x)/(this.range.y-this.range.x),this._color.evaluateInplace(h,g,d.nextFloat()),n[o]*=h.r,n[o+1]*=h.g,n[o+2]*=h.b,n[o+3]*=h.a;else for(let e=0;e<t;e++)a=3*e,o=4*e,l=i[a]+r[a],c=i[a+1]+r[a+1],u=i[a+2]+r[a+2],m=Math.sqrt(l*l+c*c+u*u),g=m>this.range.y?1:m<this.range.x?0:(m-this.range.x)/(this.range.y-this.range.x),this._color.evaluateInplace(h,g,0),n[o]*=h.r,n[o+1]*=h.g,n[o+2]*=h.b,n[o+3]*=h.a}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get color(){return this._color}set color(e){this._color=e}get range(){return this._range}set range(e){this._range=e}get counterName(){return u.d.PARTICLES_COLOR_BY_SPEED}}const g=new r,$=g;class p{constructor(){this._t=new i.m,this._r=new i.j,this._s=new i.m,this._rotation3D=new i.m,this._tmpScale=new i.m,this._animatedVelocity=new i.m,this._velocity=new i.m,this._startSize3D=new i.m,this._angularVelocity=new i.m,this._startRotationAxis=new i.m(0,0,1),this._color=new i.d(1,1,1,1),this._startColor=new i.d(1,1,1,1),this._texSheetAnimationInitialized=!1,this._startFrame=0,this._texSheetOffsetX=0,this._texSheetOffsetY=0,this._texSheetScaleX=0,this._texSheetScaleY=0,this._lifetime=0,this._elapsedTime=0,this._birthTimeOffset=0,this._cacheIndex=0,this._dt=0,this._birthTime=0,this._seed=1,pc.markParticleSystemModuleAsUsed()}initialize(e,t,n){this._t.copy(e.translation),this._r.copy(e.rotation),this._rotation3D.copy(e.rotation3D),this._startSize3D.copy(e.scale),this._s.copy(e.scale),e.startRotationAxis&&this._startRotationAxis.copy(e.startRotationAxis),this._color.copy(e.color),this._startColor.copy(e.color),this._lifetime=e.lifetime,this._tmpScale.set(1,1,1),this._birthTimeOffset=e.birthTimeOffset,this._startFrame=e.startFrame,this._texSheetOffsetX=e.texSheetOffsetX,this._texSheetOffsetY=e.texSheetOffsetY,this._texSheetScaleX=e.texSheetScaleX,this._texSheetScaleY=e.texSheetScaleY;const i=n,r=3*i,s=4*i;t.t[r]=this._t.x,t.t[r+1]=this._t.y,t.t[r+2]=this._t.z,t.r[s]=this._r.x,t.r[s+1]=this._r.y,t.r[s+2]=this._r.z,t.r[s+3]=this._r.w,t.rotation3D[r]=this._rotation3D.x,t.rotation3D[r+1]=this._rotation3D.y,t.rotation3D[r+2]=this._rotation3D.z,t.s[r]=this._s.x,t.s[r+1]=this._s.y,t.s[r+2]=this._s.z,t.startSize3D[r]=this._startSize3D.x,t.startSize3D[r+1]=this._startSize3D.y,t.startSize3D[r+2]=this._startSize3D.z,t.startRotationAxis[r]=this._startRotationAxis.x,t.startRotationAxis[r+1]=this._startRotationAxis.y,t.startRotationAxis[r+2]=this._startRotationAxis.z,t.angularVelocity[r]=this._angularVelocity.x,t.angularVelocity[r+1]=this._angularVelocity.y,t.angularVelocity[r+2]=this._angularVelocity.z,t._totalVelocity[r]=0,t._totalVelocity[r+1]=0,t._totalVelocity[r+2]=0,t.velocity[r]=this._velocity.x,t.velocity[r+1]=this._velocity.y,t.velocity[r+2]=this._velocity.z,t.animatedVelocity[r]=0,t.animatedVelocity[r+1]=0,t.animatedVelocity[r+2]=0,t.color[s]=this._color.r,t.color[s+1]=this._color.g,t.color[s+2]=this._color.b,t.color[s+3]=this._color.a,t.startColor[s]=this._startColor.r,t.startColor[s+1]=this._startColor.g,t.startColor[s+2]=this._startColor.b,t.startColor[s+3]=this._startColor.a,t.elapsedTime[i]=0,t.lifetime[i]=this._lifetime,t.dt[i]=0,t.birthTime[i]=this._birthTimeOffset,t.startFrame[i]=this._startFrame,t.texSheetOffsetX[i]=this.texSheetOffsetX,t.texSheetOffsetY[i]=this.texSheetOffsetY,t.texSheetScaleX[i]=this.texSheetScaleX,t.texSheetScaleY[i]=this.texSheetScaleY,t.seed[i]=g.nextInteger()}copy(e){this._t.copy(e._t),this._r.copy(e._r),this._s.copy(e._s),this._rotation3D.copy(e._rotation3D),this._startSize3D.copy(e._startSize3D),this._startRotationAxis.copy(e._startRotationAxis),this._animatedVelocity.copy(e._animatedVelocity),this._velocity.copy(e._velocity),this._tmpScale.copy(e._tmpScale),this._angularVelocity.copy(e._angularVelocity),this._color.copy(e._color),this._startColor.copy(e._startColor),this._texSheetAnimationInitialized=e._texSheetAnimationInitialized,this._elapsedTime=e._elapsedTime,this._lifetime=e._lifetime,this._dt=e._dt,this._birthTime=e._birthTime,this._birthTimeOffset=e._birthTimeOffset,this._startFrame=e._startFrame,this._texSheetOffsetX=e._texSheetOffsetX,this._texSheetOffsetY=e._texSheetOffsetY,this._texSheetScaleX=e._texSheetScaleX,this._texSheetScaleY=e._texSheetScaleY,this._seed=e._seed}get lifePart(){return this._elapsedTime/this._lifetime}get isAlive(){return this._elapsedTime<this._lifetime}get seed(){return this._seed}set seed(e){this._seed=e}get texSheetOffsetX(){return this._texSheetOffsetX}set texSheetOffsetX(e){this._texSheetOffsetX=e}get texSheetOffsetY(){return this._texSheetOffsetY}set texSheetOffsetY(e){this._texSheetOffsetY=e}get startFrame(){return this._startFrame}set startFrame(e){this._startFrame=e}get startColor(){return this._startColor}set startColor(e){this._startColor=e}get color(){return this._color}set color(e){this._color=e}get birthTime(){return this._birthTime}set birthTime(e){this._birthTime=e}get dt(){return this._dt}set dt(e){this._dt=e}get lifetime(){return this._lifetime}set lifetime(e){this._lifetime=e}get elapsedTime(){return this._elapsedTime}set elapsedTime(e){this._elapsedTime=e}get animatedVelocity(){return this._animatedVelocity}get velocity(){return this._velocity}set velocity(e){this._velocity=e}get angularVelocity(){return this._angularVelocity}set angularVelocity(e){this._angularVelocity=e}get startRotationAxis(){return this._startRotationAxis}set startRotationAxis(e){this._startRotationAxis=e}get startSize3D(){return this._startSize3D}set startSize3D(e){this._startSize3D=e}get rotation3D(){return this._rotation3D}set rotation3D(e){this._rotation3D=e}get s(){return this._s}set s(e){this._s=e}get r(){return this._r}set r(e){this._r=e}get t(){return this._t}set t(e){this._t=e}get texSheetScaleY(){return this._texSheetScaleY}set texSheetScaleY(e){this._texSheetScaleY=e}get texSheetScaleX(){return this._texSheetScaleX}set texSheetScaleX(e){this._texSheetScaleX=e}}class y{constructor(e){this._shapeModule=e,this._curValue=0,this._prevTime=0}roundToSpread(e,t){return 0===t?e%1:Math.floor(e/t)*t%1}pingPong(e,t){const n=Math.floor(e/t),i=e-t*n;return n%2==0?i:1-i}getNextPosition(){const e=$,t=1/this._shapeModule._ps.emission.rateOverTime.evaluate(this._shapeModule._ps.lifePart,0);let n=this._shapeModule._ps.lifetime;this._prevTime>n&&(n+=this._shapeModule._ps.main.duration);let i=n-this._prevTime,r=0;i>t&&(r=i-t,i=t),this._prevTime=this._shapeModule._ps.lifetime-r;const s=this._shapeModule._shapeType===UnityEngine.ParticleSystemShapeType.SingleSidedEdge;let a=0;const o=this._shapeModule._ps.lifePart,l=s?this.radiusMode:this.arcMode,c=s?1:this.arcSpeed.evaluate(o,0)*(360/this._shapeModule.arc),u=s?this.radiusSpread:this.arcSpread;switch(l){case UnityEngine.ParticleSystemShapeMultiModeValue.Loop:this._curValue+=i*c,a=this.roundToSpread(this._curValue,u);break;case UnityEngine.ParticleSystemShapeMultiModeValue.PingPong:this._curValue+=i*c,a=this.pingPong(this._curValue,1),a=this.roundToSpread(a,u);break;case UnityEngine.ParticleSystemShapeMultiModeValue.BurstSpread:case UnityEngine.ParticleSystemShapeMultiModeValue.Random:default:a=e.nextFloat(),a=this.roundToSpread(a,u)}return a}reset(){this._curValue=0,this._prevTime=0}get radius(){return this._shapeModule._radius}get arcMode(){return this._shapeModule._arcMode}get arcSpread(){return this._shapeModule._arcSpread}get arcSpeed(){return this._shapeModule._arcSpeed}get arcSpeedMultiplier(){return this._shapeModule.arcSpeedMultiplier}get radiusMode(){return this._shapeModule._radiusMode}get radiusSpread(){return this._shapeModule._radiusSpread}get radiusSpeed(){return this._shapeModule._radiusSpeed}}class f{constructor(e,t){this._shapeModule=e,this._useVolume=t||!1}applyTransformations(e,t,n){const r=this._shapeModule._ps._random,s=this._shapeModule.circularSpawner.getNextPosition()*this._shapeModule.arc*i.e;e.x=Math.cos(s),e.y=Math.sin(s),e.z=0;const a=1-this._shapeModule.radiusThickness,o=a+(1-a)*r.nextFloat(),l=o*this._shapeModule.radius,c=this._shapeModule.angle*o*i.e;if(0===c?(t.x=0,t.y=0,t.z=1):(t.x=e.x,t.y=e.y,t.z=Math.sqrt(e.x*e.x+e.y*e.y)/Math.tan(c),t.normalize()),e.scale(l),this._useVolume){const n=this._shapeModule.length*r.nextFloat();e.add(t.clone().scale(n))}n.x=r.nextFloat()-.5,n.y=r.nextFloat()-.5,n.z=0,n.normalize()}}class _{constructor(e,t,n){this._shapeModule=e,this._hemisphereMode=t,this._circleMode=n}applyTransformations(e,t,n){const r=this._shapeModule._ps._random,s=this._shapeModule.circularSpawner.getNextPosition()*this._shapeModule.arc*i.e,a=180*r.nextFloat()*i.e;e.x=Math.sin(a)*Math.cos(s),e.y=Math.sin(a)*Math.sin(s),e.z=Math.cos(a),this._hemisphereMode&&(e.z=Math.abs(e.z)),this._circleMode&&(e.z=0),e.normalize(),t.copy(e);const o=this._shapeModule.getPointInRadius(this._shapeModule.radius);e.scale(o),this._circleMode?(n.x=0,n.y=1):(n.x=r.nextFloat()-.5,n.y=r.nextFloat()-.5),n.z=0,n.normalize()}}const S=new i.m,b=new i.m;class C{constructor(e){this._shapeModule=e}applyTransformations(e,t,n){const r=this._shapeModule._ps._random,s=this._shapeModule.circularSpawner.getNextPosition()*this._shapeModule.arc*i.e,a=360*r.nextFloat()*i.e,o=this._shapeModule.radius,l=this._shapeModule.getPointInRadius(this._shapeModule.donutRadius);S.x=o*Math.cos(s),S.y=o*Math.sin(s),S.z=0,b.x=(o+l*Math.cos(a))*Math.cos(s),b.y=(o+l*Math.cos(a))*Math.sin(s),b.z=l*Math.sin(a),t.copy(b).sub(S),e.copy(b),n.x=r.nextFloat()-.5,n.y=r.nextFloat()-.5,n.z=0,n.normalize()}}const E=[,,,];class T{constructor(e){this._shapeModule=e}applyTransformations(e,t,n){const i=this._shapeModule._ps._random;switch(this._shapeModule.shapeType){case UnityEngine.ParticleSystemShapeType.Box:e.x=i.nextFloat()-.5,e.y=i.nextFloat()-.5,e.z=i.nextFloat()-.5,t.set(0,0,1),n.x=i.nextFloat()-.5,n.y=i.nextFloat()-.5,n.z=0,n.normalize();break;case UnityEngine.ParticleSystemShapeType.BoxShell:{E[0]=i.nextFloat()-.5,E[1]=i.nextFloat()-.5,E[2]=i.nextFloat()-.5;const r=i.nextInteger()%3;E[r]=Math.round(i.nextFloat())-.5,e.x=E[0],e.y=E[1],e.z=E[2],t.set(0,0,1),n.x=i.nextFloat()-.5,n.y=i.nextFloat()-.5,n.z=0,n.normalize();break}case UnityEngine.ParticleSystemShapeType.Rectangle:e.x=i.nextFloat()-.5,e.y=i.nextFloat()-.5,e.z=0,t.set(0,0,1),n.set(0,0,1);break;case UnityEngine.ParticleSystemShapeType.BoxEdge:{E[0]=i.nextFloat()-.5,E[1]=i.nextFloat()-.5,E[2]=i.nextFloat()-.5;const r=Math.floor(3*i.nextFloat());for(let e=0;e<3;e++)e!==r&&(E[e]=Math.round(i.nextFloat())-.5);e.x=E[0],e.y=E[1],e.z=E[2],t.set(0,0,1),n.x=i.nextFloat()-.5,n.y=i.nextFloat()-.5,n.z=0,n.normalize();break}case UnityEngine.ParticleSystemShapeType.SingleSidedEdge:{const i=2*(this._shapeModule.circularSpawner.getNextPosition()-.5);e.x=i*this._shapeModule.radius,e.y=0,e.z=0,t.set(0,1,0),n.set(-1,0,0);break}}}}var v=n(22),I=n(4);const x={Constant:0,Curve:1,TwoCurves:2,TwoConstants:3},A=x;class w{constructor(e,t,n){this._constantMax=-0,this._constantMin=-0,this._curveMax=null,this._curveMin=null,this._curveMultiplier=-0,this._mode=0,"number"==typeof e&&t instanceof v.a&&n instanceof v.a?this.init(0,0,t,n,x.TwoCurves,e):"number"==typeof e&&"number"==typeof t?this.init(e,t,new v.a({}),new v.a({}),x.TwoConstants,1):"number"==typeof e&&t instanceof v.a?this.init(0,0,new v.a({}),t,x.Constant,e):"number"==typeof e?this.init(0,e,new v.a({}),new v.a({}),x.Constant,1):this.init(0,0,new v.a({}),new v.a({}),x.Constant,1),pc.markParticleSystemModuleAsUsed()}init(e,t,n,i,r,s){this._constantMax=t,this._constantMin=e,this._curveMax=i,this._curveMin=n,this._curveMultiplier=s,this._mode=r,this.applyMode()}applyMode(){switch(this._mode){case x.Constant:this._evaluate=this._evaluateConstant;break;case x.Curve:this._evaluate=this._evaluateCurve;break;case x.TwoConstants:this._evaluate=this._evaluateTwoConstants;break;case x.TwoCurves:this._evaluate=this._evaluateTwoCurves}}_evaluateConstant(e,t){return this._constantMax}_evaluateCurve(e,t){return this._curveMax.value(e)*this._curveMultiplier}_evaluateTwoCurves(e,t){const n=this._curveMin.value(e)*this._curveMultiplier,i=this._curveMax.value(e)*this._curveMultiplier;return(0,I.g)(n,i,t)}_evaluateTwoConstants(e,t){return(0,I.g)(this._constantMin,this.constantMax,t)}integrate(e,t){if(e=e||.01,t=t||0,this._mode===x.Constant)return this._constantMax;let n=0;for(let i=0;i<=1;i+=e)n+=this._evaluate(i,t)*e;return n}getMaxValue(e=null){e=e||1;let t=-Number.MAX_VALUE;for(let n=0;n<=1;n+=.01)t=Math.max(this._evaluate(n,e),t);return t}get isRandom(){return this._mode===x.TwoConstants||this._mode===x.TwoCurves}get mode(){return this._mode}set mode(e){this._mode=e,this.applyMode()}get constant(){return this._constantMax}set constant(e){this._constantMax=e}get constantMax(){return this._constantMax}set constantMax(e){this._constantMax=e}get constantMin(){return this._constantMin}set constantMin(e){this._constantMin=e}get curve(){return this._curveMax}set curve(e){this._curveMax=e}get curveMax(){return this._curveMax}set curveMax(e){this._curveMax=e}get curveMin(){return this._curveMin}set curveMin(e){this._curveMin=e}get curveMultiplier(){return this._curveMultiplier}set curveMultiplier(e){this._curveMultiplier=e}get evaluate(){return this._evaluate}get scalar(){return this._constantMax}set scalar(e){this._constantMax=e,this._curveMultiplier=e}}const D=new i.j,M=new i.m,P=new i.m,U=new i.m,B=new i.j,O=new i.m,L=new i.m,R=new i.m,F=new i.m,G=new i.m,k=new i.j,V=new i.m;class N{constructor(e){this._ps=e,this._TRS=i.i.IDENTITY,this._TR=i.i.IDENTITY,this._enabled=!1,this._radiusSpeed=new w(null,null,null),this._arcSpeed=new w(null,null,null),this._circularSpawner=new y(this),this._shapeType=UnityEngine.ParticleSystemShapeType.Cone,this._alignToDirection=!1,this._randomDirectionAmount=0,this._sphericalDirectionAmount=0,this._randomPositionAmount=0,this._radius=0,this._radiusMode=UnityEngine.ParticleSystemShapeMultiModeValue.Loop,this._radiusSpread=0,this._radiusSpeed=new w(null,null,null),this._radiusThickness=0,this._angle=0,this._length=0,this._boxThickness=new i.m,this._arc=0,this._arcMode=UnityEngine.ParticleSystemShapeMultiModeValue.Loop,this._arcSpread=0,this._arcSpeed=new w(null,null,null),this._donutRadius=0,this._position=new i.m,this._rotation=new i.m,this._scale=new i.m,this._trsDirty=!1,this._trDirty=!1,this._meshShapeType=UnityEngine.ParticleSystemMeshShapeType.Vertex,this._mesh=null,this._meshRenderer=null,this._skinnedMeshRenderer=null,this._useMeshMaterialIndex=!1,this._meshMaterialIndex=0,this._useMeshColors=!1,this._normalOffset=0,this._impl=null,pc.markParticleSystemModuleAsUsed()}applyNextTransform(e,t,n,r){this.impl.applyTransformations(P,U,r),this.randomizePosition(P),this._shapeType===UnityEngine.ParticleSystemShapeType.Cone?(this.impl.applyTransformations(O,L,r),this.randomizeDirection(U,L)):this.randomizeDirection(U,null),this.TRS.transformPoint(P,e),this.TRS.transformVector(U,n),n.normalize(),0===n.x&&0===n.y&&0===n.z&&(n.z=1);const s=Math.sign(this._ps.main.startSpeed.evaluate(this._ps.lifePart,this._ps._random.nextFloat()))||1;this.spherizeDirection(e,n,this.position),n.scale(s),B.copy(this.rotationBetweenVectors(i.m.UP,n));const a=this._ps.renderer.renderMode;switch(a){case UnityEngine.ParticleSystemRenderMode.Stretch:D.setLookAt(n,new i.m(0,1,0)),D.getEulerAngles_Unity(M),t.add(M);break;case UnityEngine.ParticleSystemRenderMode.Billboard:case UnityEngine.ParticleSystemRenderMode.HorizontalBillboard:case UnityEngine.ParticleSystemRenderMode.VerticalBillboard:case UnityEngine.ParticleSystemRenderMode.Mesh:case UnityEngine.ParticleSystemRenderMode.None:if(this._alignToDirection){let e=n.clone().scale(-1);e=this.TRS.clone().invert().transformVector(e);const r=i.m.UP.clone();0===e.x&&0===e.z&&r.copy(new i.m(1,1,0));const s=(new i.m).cross(e,r),a=(new i.m).cross(s,e);D.setLookAt(e,a),D.getEulerAngles_Unity(M),t.add(M)}break;default:throw Error('Render mode "'+a+'" not Implemented')}}randomizePosition(e){const t=this._ps._random;this.randomPositionAmount>0&&(R.x=t.nextFloat()-.5,R.y=t.nextFloat()-.5,R.z=t.nextFloat()-.5,R.scale(this.randomPositionAmount),e.add(R))}randomizeDirection(e,t){const n=this._ps._random;this.randomDirectionAmount>0&&(t?F.copy(t):(F.x=n.nextFloat()-.5,F.y=n.nextFloat()-.5,F.z=n.nextFloat()-.5),F.normalize(),e.lerp(e,F,this.randomDirectionAmount)),e.normalize()}spherizeDirection(e,t,n){this.sphericalDirectionAmount>0&&(G.copy(e).sub(n).normalize(),t.lerp(t,G,this.sphericalDirectionAmount)),t.normalize()}rotationBetweenVectors(e,t){return V.cross(e,t),k.x=V.x,k.y=V.y,k.z=V.z,k.w=Math.sqrt(e.lengthSq()*t.lengthSq())+e.dot(t),k.normalize()}getPointInRadius(e){const t=this._ps._random,n=1-this.radiusThickness;return(n+(1-n)*t.nextFloat())*e}get enabled(){return this._enabled}set enabled(e){this._enabled=e}get shapeType(){return this._shapeType}set shapeType(e){switch(this._shapeType=e,e){case UnityEngine.ParticleSystemShapeType.Cone:this.impl=new f(this,!1);break;case UnityEngine.ParticleSystemShapeType.ConeVolume:this.impl=new f(this,!0);break;case UnityEngine.ParticleSystemShapeType.Sphere:this.impl=new _(this,!1,!1);break;case UnityEngine.ParticleSystemShapeType.Hemisphere:this.impl=new _(this,!0,!1);break;case UnityEngine.ParticleSystemShapeType.Circle:this.impl=new _(this,!1,!0);break;case UnityEngine.ParticleSystemShapeType.Donut:this.impl=new C(this);break;case UnityEngine.ParticleSystemShapeType.Box:case UnityEngine.ParticleSystemShapeType.BoxShell:case UnityEngine.ParticleSystemShapeType.BoxEdge:case UnityEngine.ParticleSystemShapeType.Rectangle:case UnityEngine.ParticleSystemShapeType.SingleSidedEdge:default:this.impl=new T(this)}}get randomDirectionAmount(){return this._randomDirectionAmount}set randomDirectionAmount(e){this._randomDirectionAmount=e}get sphericalDirectionAmount(){return this._sphericalDirectionAmount}set sphericalDirectionAmount(e){this._sphericalDirectionAmount=e}get randomPositionAmount(){return this._randomPositionAmount}set randomPositionAmount(e){this._randomPositionAmount=e}get alignToDirection(){return this._alignToDirection}set alignToDirection(e){this._alignToDirection=e}get radius(){return this._radius}set radius(e){this._radius=e}get radiusMode(){return this._radiusMode}set radiusMode(e){this._radiusMode=e}get radiusSpread(){return this._radiusSpread}set radiusSpread(e){this._radiusSpread=e}get radiusSpeed(){return this._radiusSpeed}set radiusSpeed(e){this._radiusSpeed=e}get radiusSpeedMultiplier(){return this._radiusSpeed.curveMultiplier}set radiusSpeedMultiplier(e){this._radiusSpeed.curveMultiplier=e}get radiusThickness(){return this._radiusThickness}set radiusThickness(e){this._radiusThickness=e}get angle(){return this._angle}set angle(e){this._angle=e}get length(){return this._length}set length(e){this._length=e}get boxThickness(){return this._boxThickness}set boxThickness(e){this._boxThickness=e}get arc(){return this._arc}set arc(e){this._arc=e}get arcMode(){return this._arcMode}set arcMode(e){this._arcMode=e}get arcSpread(){return this._arcSpread}set arcSpread(e){this._arcSpread=e}get arcSpeed(){return this._arcSpeed}set arcSpeed(e){this._arcSpeed=e}get arcSpeedMultiplier(){return this._arcSpeed.curveMultiplier}set arcSpeedMultiplier(e){this._arcSpeed.curveMultiplier=e}get donutRadius(){return this._donutRadius}set donutRadius(e){this._donutRadius=e}get position(){return this._position}set position(e){this.trsDirty=!0,this.trDirty=!0,this._position=e}get rotation(){return this._rotation}set rotation(e){this.trsDirty=!0,this.trDirty=!0,this._rotation=e}get scale(){return this._scale}set scale(e){this.trsDirty=!0,this._scale=e}get TRS(){if(this.trsDirty){const e=new i.j;e.setFromEulerAngles_Unity(this.rotation.x,this.rotation.y,this.rotation.z),this._TRS=(new i.i).setTRS(this.position,e,this.scale),this.trsDirty=!1}return this._TRS}get TR(){if(this.trDirty){const e=new i.j;e.setFromEulerAngles_Unity(this.rotation.x,this.rotation.y,this.rotation.z),this._TR=(new i.i).setTRS(this.position,e,new i.m(1,1,1)),this.trDirty=!1}return this._TR}get trsDirty(){return this._trsDirty}set trsDirty(e){this._trsDirty=e}get trDirty(){return this._trDirty}set trDirty(e){this._trDirty=e}get impl(){return this._impl}set impl(e){this._impl=e}get circularSpawner(){return this._circularSpawner}set circularSpawner(e){this._circularSpawner=e}get meshShapeType(){return this._meshShapeType}set meshShapeType(e){this._meshShapeType=e}get useMeshMaterialIndex(){return this._useMeshMaterialIndex}set useMeshMaterialIndex(e){this._useMeshMaterialIndex=e}get meshMaterialIndex(){return this._meshMaterialIndex}set meshMaterialIndex(e){this._meshMaterialIndex=e}get useMeshColors(){return this._useMeshColors}set useMeshColors(e){this._useMeshColors=e}get normalOffset(){return this._normalOffset}set normalOffset(e){this._normalOffset=e}get skinnedMeshRenderer(){return this._skinnedMeshRenderer}set skinnedMeshRenderer(e){this._skinnedMeshRenderer=e}get meshRenderer(){return this._meshRenderer}set meshRenderer(e){this._meshRenderer=e}get mesh(){return this._mesh}set mesh(e){this._mesh=e}get arcParameters(){return{value:this._arc,spread:this._arcSpread,speed:this._arcSpeed,mode:this._arcMode}}set arcParameters(e){this._arc=e.value,this._arcSpread=e.spread,this._arcSpeed=e.speed,this._arcMode=e.mode}get radiusParameters(){return{value:this._radius,spread:this._radiusSpread,speed:this._radiusSpeed,mode:this._radiusMode}}set radiusParameters(e){this._radius=e.value,this._radiusSpread=e.spread,this._radiusSpeed=e.speed,this._radiusMode=e.mode}get counterName(){return u.d.PARTICLES_SHAPE}}const z=new i.d,H=new r;class j{constructor(e){this._ps=e,this._enabled=!1,this._color=new c(null,null),pc.markParticleSystemModuleAsUsed()}processInplace(e){const t=e.aliveCount,n=e.color,i=e.lifePart,r=e.seed;let s=0;if(this._color.isRandom)for(let e=0;e<t;e++)s=4*e,H.setSeed(r[e]),this._color.evaluateInplace(z,i[e],H.nextFloat()),n[s]*=z.r,n[s+1]*=z.g,n[s+2]*=z.b,n[s+3]*=z.a;else for(let e=0;e<t;e++)s=4*e,this._color.evaluateInplace(z,i[e],0),n[s]*=z.r,n[s+1]*=z.g,n[s+2]*=z.b,n[s+3]*=z.a}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get color(){return this._color}set color(e){this._color=e}get counterName(){return u.d.PARTICLES_COLOR_OVER_LIFETIME}}class Z{constructor(){this._value=0}update(e){this._value+=e}take(e){this._value>=e&&(this._value-=e)}get accumulated(){return Math.floor(this._value)}}class q{constructor(e){this._ps=e,this._accumulator=new Z,this._enabled=!0,this._rateOverTime=new w(10,null,null),this._rateOverDistance=new w(null,null,null),this._bursts=[],this._burstCount=0,this._lastSpawnTime_rate=0,this._ps.events.on("ParticleSystemNewLoop",this.handleParticleSystemLoop),this._emission=null,this._previousPosition=new i.m}setBursts(e){this._bursts=e}getBursts(e){for(let t=0;t<this._burstCount;++t)e[t]=this._bursts[t];return this._burstCount}getBurst(e){return this._bursts[e]}handleParticleSystemLoop(){const e=this._emission;for(let t=0;t<e.bursts.length;++t)e.bursts[t].recalculateRepeatCount(),e.bursts[t].resetTimeToFire()}recalculateBurstData(){for(let e=0;e<this._bursts.length;++e){const t=this._bursts[e];null!==t.timeToFire&&void 0!==t.timeToFire||(t.recalculateRepeatCount(),t.timeToFire=t.time)}}reinitBurstData(){for(let e=0;e<this._bursts.length;++e){const t=this._bursts[e];t.recalculateRepeatCount(),t.timeToFire=t.time}}getParticlesFromBursts(e){let t=0;for(let n=0;n<this._bursts.length;++n){const i=this._bursts[n];i.timeToFire-=e,i.shouldFire&&i.timeToFire<0&&(t+=i.count.evaluate(this._ps.lifePart,0),i.timeToFire=i.repeatInterval,i.repeatCount-=1)}return t}update(e,t){this.recalculateBurstData();const n=this.getParticlesFromBursts(e),i=this._ps._entity.worldTransform.getTranslation();this.previousPosition||(this.previousPosition=i.clone());const r=i.clone().sub(this.previousPosition).length();this.previousPosition=i;const s=n+this.rateOverDistance.evaluate(e,0)*r;if(this._accumulator.update(s),this._ps.main.maxParticles<=this._ps.particleCount)return this._lastSpawnTime_rate=this._ps._playTime,0;const a=Math.min(this._accumulator.accumulated,this._ps.main.maxParticles-this._ps.particleCount);this._accumulator.take(a);for(let e=0;e<a;++e)this._ps.createParticle(t,0);const o=1/this.rateOverTime.evaluate(this._ps.lifePart,0);for(;this._lastSpawnTime_rate+o<this._ps._playTime;){if(this._ps.main.maxParticles<=this._ps.particleCount)return this._lastSpawnTime_rate+=e,0;const n=this._ps._playTime-this._lastSpawnTime_rate-o;this._lastSpawnTime_rate+=o,this._ps.createParticle(t,n)}return 0}get enabled(){return this._enabled}set enabled(e){this._enabled=e}get rateOverTime(){return this._rateOverTime}set rateOverTime(e){this._rateOverTime=e}get rateOverTimeMultiplier(){return this._rateOverTime.curveMultiplier}set rateOverTimeMultiplier(e){this._rateOverTime.curveMultiplier=e}get rateOverDistance(){return this._rateOverDistance}set rateOverDistance(e){this._rateOverDistance=e}get rateOverDistanceMultiplier(){return this._rateOverDistance.curveMultiplier}set rateOverDistanceMultiplier(e){this._rateOverDistance.curveMultiplier=e}get burstCount(){return this._burstCount}set burstCount(e){this._burstCount=e}get bursts(){return this._bursts}set bursts(e){this._bursts=e}get lastSpawnTime_rate(){return this._lastSpawnTime_rate}set lastSpawnTime_rate(e){this._lastSpawnTime_rate=e}get accumulator(){return this._accumulator}set accumulator(e){this._accumulator=e}get emission(){return this._emission}set emission(e){this._emission=e}get previousPosition(){return this._previousPosition}set previousPosition(e){this._previousPosition=e}get m_Bursts(){return this._bursts}set m_Bursts(e){this._burstCount=e.length,this._bursts=e}get counterName(){return u.d.PARTICLES_EMITTER}}const K=new i.m,W=new r;class J{constructor(e){this._ps=e,this._enabled=!1,this._mode=UnityEngine.ParticleSystemInheritVelocityMode.Initial,this._curve=new w(null,null,null),pc.markParticleSystemModuleAsUsed()}processInplace(e){if(this._ps.main.simulationSpace!==UnityEngine.ParticleSystemSimulationSpace.World)return;if(this._mode===UnityEngine.ParticleSystemInheritVelocityMode.Initial)return;const t=e.aliveCount,n=e.animatedVelocity,i=e.lifePart,r=e.seed;let s=0,a=0,o=0;K.copy(this._ps.currentVelocity);for(let e=0;e<t;e++)s=3*e,a=i[e],W.setSeed(r[e]),o=this._curve.evaluate(a,W.nextFloat()),n[s]+=K.x*o,n[s+1]+=K.y*o,n[s+2]+=K.z*o}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get mode(){return this._mode}set mode(e){this._mode=e}get curve(){return this._curve}set curve(e){this._curve=e}get curveMultiplier(){return this._curve.curveMultiplier}set curveMultiplier(e){this._curve.curveMultiplier=e}get counterName(){return u.d.PARTICLES_INHERIT_VELOCITY}}const Q=new i.m,X=new i.m,Y=new i.m,ee=new i.m;class te{constructor(e){this._ps=e,this._enabled=!1,this._separateAxes=!1,this._limit=new w(null,null,null),this._limitX=new w(null,null,null),this._limitY=new w(null,null,null),this._limitZ=new w(null,null,null),this._space=0,this._dampen=0,this._drag=new w(null,null,null),this._multiplyDragByParticleSize=!1,this._multiplyDragByParticleVelocity=!1,pc.markParticleSystemModuleAsUsed()}applyDamp(e,t){const n=Math.sign(e);let r=Math.abs(e);return r>t&&(r=(0,i.p)(r,t,this._dampen)),r*n}applyDragInplace(e){const t=this._ps._random,n=e.aliveCount,i=e.animatedVelocity,r=e.velocity,s=e.dt,a=e.lifePart,o=e.s,l=e.seed;let c=0,u=0,h=0,d=0,m=0,g=0,$=0,p=0,y=0;for(let e=0;e<n;e++)c=3*e,u=a[e],t.setSeed(l[e]),h=1,d=i[c]+r[c],m=i[c+1]+r[c+1],g=i[c+2]+r[c+2],$=Math.sqrt(d*d+m*m+g*g),X.x=r[c],X.y=r[c+1],X.z=r[c+2],Y.x=o[c],Y.y=o[c+1],Y.z=o[c+2],p=s[e],u=a[e],y=this._drag.evaluate(u,t.nextFloat()),this._multiplyDragByParticleSize&&this._multiplyDragByParticleVelocity?(h=this.getScaleModifier(Y),X.scale(1-y*h*$*p)):this._multiplyDragByParticleSize?(h=this.getScaleModifier(Y),X.x=Math.sign(X.x)*Math.max(Math.abs(X.x)-y*h*p,0),X.y=Math.sign(X.y)*Math.max(Math.abs(X.y)-y*h*p,0),X.z=Math.sign(X.z)*Math.max(Math.abs(X.z)-y*h*p,0)):this._multiplyDragByParticleVelocity?X.scale(1-y*$*p):(X.x=Math.sign(X.x)*Math.max(Math.abs(X.x)-y*p,0),X.y=Math.sign(X.y)*Math.max(Math.abs(X.y)-y*p,0),X.z=Math.sign(X.z)*Math.max(Math.abs(X.z)-y*p,0)),r[c]=X.x,r[c+1]=X.y,r[c+2]=X.z}getScaleModifier(e){const t=Math.max(e.x,e.y,e.z);return Math.PI*t*t/4}processInplace(e){this.applyDragInplace(e);const t=e.aliveCount,n=e.animatedVelocity,i=e.velocity,r=e.lifePart,s=e.seed;let a=0,o=0;const l=this._ps._random,c=UnityEngine.ParticleSystemSimulationSpace.World,u=this._ps.entity.worldTransformInverse;for(let e=0;e<t;e++){if(a=3*e,o=r[e],l.setSeed(s[e]),ee.x=n[a]+i[a],ee.y=n[a+1]+i[a+1],ee.z=n[a+2]+i[a+2],this._separateAxes)Q.x=this._limitX.evaluate(o,l.nextFloat()),Q.y=this._limitY.evaluate(o,l.nextFloat()),Q.z=this._limitZ.evaluate(o,l.nextFloat());else{const e=this._limit.evaluate(o,l.nextFloat());Q.x=e,Q.y=e,Q.z=e}if(this._space===c&&u.transformVector(Q,Q),this._separateAxes)Math.abs(ee.x)>Q.x&&(ee.x=this.applyDamp(ee.x,Q.x)),Math.abs(ee.y)>Q.y&&(ee.y=this.applyDamp(ee.y,Q.y)),Math.abs(ee.z)>Q.z&&(ee.z=this.applyDamp(ee.z,Q.z));else{const e=ee.length(),t=this.applyDamp(e,Q.z);ee.normalize().scale(t)}i[a]=ee.x-n[a],i[a+1]=ee.y-n[a+1],i[a+2]=ee.z-n[a+2]}}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get limit(){return this._limit}set limit(e){this._limit=e}get limitMultiplier(){return this._limitX.curveMultiplier}set limitMultiplier(e){this._limitX.curveMultiplier=e}get separateAxes(){return this._separateAxes}set separateAxes(e){this._separateAxes=e}get limitX(){return this._limitX}set limitX(e){this._limitX=e}get limitY(){return this._limitY}set limitY(e){this._limitY=e}get limitZ(){return this._limitZ}set limitZ(e){this.limitY=e}get limitXMultiplier(){return this._limitX.curveMultiplier}set limitXMultiplier(e){this._limitX.curveMultiplier=e}get limitYMultiplier(){return this._limitY.curveMultiplier}set limitYMultiplier(e){this._limitY.curveMultiplier=e}get limitZMultiplier(){return this._limitZ.curveMultiplier}set limitZMultiplier(e){this._limitZ.curveMultiplier=e}get space(){return this._space}set space(e){this._space=e}get dampen(){return this._dampen}set dampen(e){this._dampen=e}get drag(){return this._drag}set drag(e){this._drag=e}get dragMultiplier(){return this._drag.curveMultiplier}set dragMultiplier(e){this._drag.curveMultiplier=e}get multiplyDragByParticleSize(){return this._multiplyDragByParticleSize}set multiplyDragByParticleSize(e){this._multiplyDragByParticleSize=e}get multiplyDragByParticleVelocity(){return this._multiplyDragByParticleVelocity}set multiplyDragByParticleVelocity(e){this._multiplyDragByParticleVelocity=e}get counterName(){return u.d.PARTICLES_LIMIT_VELOCITY_OVER_LIFETIME}}class ne{constructor(e){this._ps=e,this._duration=5,this._loop=!0,this._prewarm=!0,this._startDelay=new w(null,null,null),this._startLifetime=new w(5,null,null),this._startSpeed=new w(5,null,null),this._startSize3D=!1,this._startSizeX=new w(null,null,null),this._startSizeY=new w(null,null,null),this._startSizeZ=new w(null,null,null),this._startRotation3D=!1,this._startRotationX=new w(null,null,null),this._startRotationY=new w(null,null,null),this._startRotationZ=new w(null,null,null),this._flipRotation=!1,this._startColor=new c(null,null),this._gravityModifier=new w(null,null,null),this._simulationSpace=UnityEngine.ParticleSystemSimulationSpace.Local,this._customSimulationSpace=null,this._simulationSpeed=1,this._useUnscaledTime=!0,this._scalingMode=UnityEngine.ParticleSystemScalingMode.Local,this._playOnAwake=!0,this.maxParticles=10,this._emitterVelocityMode=UnityEngine.ParticleSystemEmitterVelocityMode.Transform,this._stopAction=UnityEngine.ParticleSystemStopAction.None,pc.markParticleSystemModuleAsUsed()}get duration(){return this._duration}set duration(e){this._duration=e}get loop(){return this._loop}set loop(e){this._loop=e}get prewarm(){return this._prewarm}set prewarm(e){this._prewarm=e}get startDelay(){return this._startDelay}set startDelay(e){this._startDelay=e}get startDelayMultiplier(){return this._startDelay.curveMultiplier}set startDelayMultiplier(e){this._startDelay.curveMultiplier=e}get startLifetime(){return this._startLifetime}set startLifetime(e){this._startLifetime=e}get startLifetimeMultiplier(){return this._startLifetime.curveMultiplier}set startLifetimeMultiplier(e){this._startLifetime.curveMultiplier=e}get startSpeed(){return this._startSpeed}set startSpeed(e){this._startSpeed=e}get startSpeedMultiplier(){return this._startSpeed.curveMultiplier}set startSpeedMultiplier(e){this._startSpeed.curveMultiplier=e}get startSize3D(){return this._startSize3D}set startSize3D(e){this._startSize3D=e}get startSize(){return this._startSizeX}set startSize(e){this._startSizeX=e}get startSizeX(){return this._startSizeX}set startSizeX(e){this._startSizeX=e}get startSizeY(){return this._startSizeY}set startSizeY(e){this._startSizeY=e}get startSizeZ(){return this._startSizeZ}set startSizeZ(e){this._startSizeZ=e}get startSizeMultiplier(){return this._startSizeX.curveMultiplier}set startSizeMultiplier(e){this._startSizeX.curveMultiplier=e}get startSizeXMultiplier(){return this._startSizeX.curveMultiplier}set startSizeXMultiplier(e){this._startSizeX.curveMultiplier=e}get startSizeYMultiplier(){return this._startSizeY.curveMultiplier}set startSizeYMultiplier(e){this._startSizeY.curveMultiplier=e}get startSizeZMultiplier(){return this._startSizeZ.curveMultiplier}set startSizeZMultiplier(e){this._startSizeZ.curveMultiplier=e}get startRotation3D(){return this._startRotation3D}set startRotation3D(e){this._startRotation3D=e}get startRotation(){return this._startRotationZ}set startRotation(e){this._startRotationZ=e}get startRotationX(){return this._startRotationX}set startRotationX(e){this._startRotationX=e}get startRotationY(){return this._startRotationY}set startRotationY(e){this._startRotationY=e}get startRotationZ(){return this._startRotationZ}set startRotationZ(e){this._startRotationZ=e}get startRotationMultiplier(){return this._startRotationZ.curveMultiplier}set startRotationMultiplier(e){this._startRotationZ.curveMultiplier=e}get startRotationXMultiplier(){return this._startRotationX.curveMultiplier}set startRotationXMultiplier(e){this._startRotationX.curveMultiplier=e}get startRotationYMultiplier(){return this._startRotationY.curveMultiplier}set startRotationYMultiplier(e){this._startRotationY.curveMultiplier=e}get startRotationZMultiplier(){return this._startRotationZ.curveMultiplier}set startRotationZMultiplier(e){this._startRotationZ.curveMultiplier=e}get flipRotation(){return this._flipRotation}set flipRotation(e){this._flipRotation=e}get startColor(){return this._startColor}set startColor(e){this._startColor=e}get gravityModifier(){return this._gravityModifier}set gravityModifier(e){this._gravityModifier=e}get gravityModifierMultiplier(){return this._gravityModifier.curveMultiplier}set gravityModifierMultiplier(e){this._gravityModifier.curveMultiplier=e}get simulationSpace(){return this._simulationSpace}set simulationSpace(e){this._simulationSpace=e}get customSimulationSpace(){return this._customSimulationSpace}set customSimulationSpace(e){this._customSimulationSpace=e}get simulationSpeed(){return this._simulationSpeed}set simulationSpeed(e){this._simulationSpeed=e}get useUnscaledTime(){return this._useUnscaledTime}set useUnscaledTime(e){this._useUnscaledTime=e}get scalingMode(){return this._scalingMode}set scalingMode(e){this._scalingMode=e}get playOnAwake(){return this._playOnAwake}set playOnAwake(e){this._playOnAwake=e}get maxParticles(){return this._ps._cache.maxParticles}set maxParticles(e){this._ps._cache.maxParticles=e}get emitterVelocityMode(){return this._emitterVelocityMode}set emitterVelocityMode(e){this._emitterVelocityMode=e}get stopAction(){return this._stopAction}set stopAction(e){this._stopAction=e}}const ie=new i.m(0,0,0);class re{constructor(e){this._ps=e,this._enabled=!1,this._separateAxes=!1,this._strengthX=new w(null,null,null),this._strengthY=new w(null,null,null),this._strengthZ=new w(null,null,null),this._frequency=1,this._damping=!1,this._octaveCount=1,this._octaveMultiplier=1,this._octaveScale=1,this._quality=UnityEngine.ParticleSystemNoiseQuality.Low,this._scrollSpeed=new w(null,null,null),this._remapEnabled=!1,this._remapX=new w(null,null,null),this._remapY=new w(null,null,null),this._remapZ=new w(null,null,null),this._positionAmount=new w(null,null,null),this._rotationAmount=new w(null,null,null),this._sizeAmount=new w(null,null,null),this._scrollValue=0,pc.markParticleSystemModuleAsUsed()}processInplace(e){const t=this._ps._random,n=e.aliveCount,r=e.dt,s=e.lifePart,a=e.s,o=e.animatedVelocity,l=e.seed;let c=0,u=0,h=0,d=0,m=0,g=0,$=1;for(let e=0;e<n;e++){if(c=3*e,u=s[e],h=r[e],t.setSeed(l[e]),this._scrollValue+=h*this._scrollSpeed.evaluate(u,t.nextFloat()),d=4*(0,i.q)(0,5*u/this.frequency%255),m=4*(0,i.q)(.33,5*u/this.frequency%255),g=4*(0,i.q)(.66,5*u/this.frequency%255),ie.set(0,0,0),$=this._positionAmount.evaluate(u,t.nextFloat()),this.separateAxes)ie.x=this._strengthX.evaluate(u,t.nextFloat()),ie.y=this._strengthY.evaluate(u,t.nextFloat()),ie.z=this._strengthZ.evaluate(u,t.nextFloat());else{const e=this._strengthX.evaluate(u,t.nextFloat());ie.x=e,ie.y=e,ie.z=e}ie.x*=d*$,ie.y*=m*$,ie.z*=g*$,this.damping&&ie.scale(1/this.frequency),o[c]+=ie.x,o[c+1]+=ie.y,o[c+2]+=ie.z;const n=1+.5*(this.damping?d*this.sizeAmount.evaluate(u,t.nextFloat())/this.frequency:d*this.sizeAmount.evaluate(u,t.nextFloat()));a[c]*=n,a[c+1]*=n,a[c+2]*=n}}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get separateAxes(){return this._separateAxes}set separateAxes(e){this._separateAxes=e}get strength(){return this._strengthX}set strength(e){this._strengthX=e}get strengthX(){return this._strengthX}set strengthX(e){this._strengthX=e}get strengthY(){return this._strengthY}set strengthY(e){this._strengthY=e}get strengthZ(){return this._strengthZ}set strengthZ(e){this._strengthZ=e}get strengthMultiplier(){return this._strengthX.curveMultiplier}set strengthMultiplier(e){this._strengthX.curveMultiplier=e}get strengthXMultiplier(){return this._strengthX.curveMultiplier}set strengthXMultiplier(e){this._strengthX.curveMultiplier=e}get strengthYMultiplier(){return this._strengthY.curveMultiplier}set strengthYMultiplier(e){this._strengthY.curveMultiplier=e}get strengthZMultiplier(){return this._strengthZ.curveMultiplier}set strengthZMultiplier(e){this._strengthZ.curveMultiplier=e}get frequency(){return this._frequency}set frequency(e){this._frequency=e}get damping(){return this._damping}set damping(e){this._damping=e}get octaveCount(){return this._octaveCount}set octaveCount(e){this._octaveCount=e}get octaveMultiplier(){return this._octaveMultiplier}set octaveMultiplier(e){this._octaveMultiplier=e}get octaveScale(){return this._octaveScale}set octaveScale(e){this._octaveScale=e}get quality(){return this._quality}set quality(e){this._quality=e}get scrollSpeed(){return this._scrollSpeed}set scrollSpeed(e){this._scrollSpeed=e}get scrollSpeedMultiplier(){return this._scrollSpeed.curveMultiplier}set scrollSpeedMultiplier(e){this._scrollSpeed.curveMultiplier=e}get remapEnabled(){return this._remapEnabled}set remapEnabled(e){this._remapEnabled=e}get remap(){return this._remapX}set remap(e){this._remapX=e}get remapX(){return this._remapX}set remapX(e){this._remapX=e}get remapY(){return this._remapY}set remapY(e){this._remapY=e}get remapZ(){return this._remapZ}set remapZ(e){this._remapZ=e}get remapMultiplier(){return this._remapX.curveMultiplier}set remapMultiplier(e){this._remapX.curveMultiplier=e}get remapXMultiplier(){return this._remapX.curveMultiplier}set remapXMultiplier(e){this._remapX.curveMultiplier=e}get remapYMultiplier(){return this._remapY.curveMultiplier}set remapYMultiplier(e){this._remapY.curveMultiplier=e}get remapZMultiplier(){return this._remapZ.curveMultiplier}set remapZMultiplier(e){this._remapZ.curveMultiplier=e}get positionAmount(){return this._positionAmount}set positionAmount(e){this._positionAmount=e}get rotationAmount(){return this._rotationAmount}set rotationAmount(e){this._rotationAmount=e}get sizeAmount(){return this._sizeAmount}set sizeAmount(e){this._sizeAmount=e}get scrollValue(){return this._scrollValue}set scrollValue(e){this._scrollValue=e}get counterName(){return u.d.PARTICLES_NOISE}}const se=new i.m,ae=new r,oe=new i.m;class le{constructor(e){this._ps=e,this._enabled=!1,this._x=new w(null,null,null),this._y=new w(null,null,null),this._z=new w(null,null,null),this._separateAxes=!1,this._range=new i.l,pc.markParticleSystemModuleAsUsed()}getRotationAmountConst(e,t,n,i){return t.evaluate(0,i)}getRotationAmount(e,t,n,i){let r=0;return n>e.range.y?r=1:n<e.range.x?r=0:n>=e.range.x&&n<=e.range.y&&(r=(n-e.range.x)/(e.range.y-e.range.x)),t.evaluate(r,i)}processInplace(e){const t=e.aliveCount,n=e.angularVelocity,r=e.animatedVelocity,s=e.velocity,a=e.seed;let o=0,l=0;const c=this.x._mode===A.Constant||this.x.mode===A.TwoConstants?this.getRotationAmountConst:this.getRotationAmount;for(let e=0;e<t;e++)o=3*e,ae.setSeed(a[e]),se.x=r[o]+s[o],se.y=r[o+1]+s[o+1],se.z=r[o+2]+s[o+2],l=se.length(),this._separateAxes?(oe.x=c(this,this._x,l,ae.nextFloat())*i.k,oe.y=c(this,this._y,l,ae.nextFloat())*i.k,oe.z=c(this,this._z,l,ae.nextFloat())*i.k):(oe.x=0,oe.y=0,oe.z=c(this,this._z,l,ae.nextFloat())*i.k),n[o]+=oe.x,n[o+1]+=oe.y,n[o+2]+=oe.z}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get x(){return this._x}set x(e){this._x=e}get y(){return this._y}set y(e){this._y=e}get z(){return this._z}set z(e){this._z=e}get xMultiplier(){return this._x.curveMultiplier}set xMultiplier(e){this._x.curveMultiplier=e}get yMultiplier(){return this._y.curveMultiplier}set yMultiplier(e){this._y.curveMultiplier=e}get zMultiplier(){return this._z.curveMultiplier}set zMultiplier(e){this._z.curveMultiplier=e}get separateAxes(){return this._separateAxes}set separateAxes(e){this._separateAxes=e}get range(){return this._range}set range(e){this._range=e}get counterName(){return u.d.PARTICLES_ROTATION_BY_SPEED}}const ce=new i.m;class ue{constructor(e){this._ps=e,this._enabled=!1,this._x=new w(null,null,null),this._y=new w(null,null,null),this._z=new w(null,null,null),this._separateAxes=!1,this._range=new i.l,pc.markParticleSystemModuleAsUsed()}processInplace(e){if(this.range.x>this.range.y){const e=this.range.x;this.range.x=this.range.y,this.range.y=e}const t=this._ps._random,n=e.aliveCount,i=e.s,r=e.velocity,s=e.animatedVelocity,a=e.seed;let o=0,l=0,c=0,u=0,h=0,d=0,m=0;for(let e=0;e<n;e++)o=3*e,t.setSeed(a[e]),c=r[o]+s[o+1],u=r[o+1]+s[o+2],h=r[o+2]+s[o+3],d=Math.sqrt(c*c+u*u+h*h),m=d>this._range.y?1:d<this._range.x?0:(d-this._range.x)/(this._range.y-this._range.x),this._separateAxes?(ce.x=this._x.evaluate(m,t.nextFloat()),ce.y=this._y.evaluate(m,t.nextFloat()),ce.z=this._z.evaluate(m,t.nextFloat())):(l=this._x.evaluate(m,t.nextFloat()),ce.x=l,ce.y=l,ce.z=l),i[o]*=ce.x,i[o+1]*=ce.y,i[o+2]*=ce.z}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get size(){return this._x}set size(e){this._x=e}get sizeMultiplier(){return this._x.curveMultiplier}set sizeMultiplier(e){this._x.curveMultiplier=e}get x(){return this._x}set x(e){this._x=e}get y(){return this._y}set y(e){this._y=e}get z(){return this._z}set z(e){this._z=e}get xMultiplier(){return this._x.curveMultiplier}set xMultiplier(e){this._x.curveMultiplier=e}get yMultiplier(){return this._y.curveMultiplier}set yMultiplier(e){this._y.curveMultiplier=e}get zMultiplier(){return this._z.curveMultiplier}set zMultiplier(e){this._z.curveMultiplier=e}get range(){return this._range}set range(e){this._range=e}get separateAxes(){return this._separateAxes}set separateAxes(e){this._separateAxes=e}get counterName(){return u.d.PARTICLES_SIZE_BY_SPEED}}const he=new i.m;class de{constructor(e){this._ps=e,this._enabled=!1,this._x=new w(null,null,null),this._y=new w(null,null,null),this._z=new w(null,null,null),this._separateAxes=!1,pc.markParticleSystemModuleAsUsed()}processInplace(e){const t=this._ps._random,n=e.aliveCount,i=e.lifePart,r=e.s,s=e.seed;let a=0,o=0,l=0;for(let e=0;e<n;e++)a=3*e,o=i[e],t.setSeed(s[e]),this._separateAxes?(he.x=this._x.evaluate(o,t.nextFloat()),he.y=this._y.evaluate(o,t.nextFloat()),he.z=this._z.evaluate(o,t.nextFloat())):(l=this._x.evaluate(o,t.nextFloat()),he.x=l,he.y=l,he.z=l),r[a]*=he.x,r[a+1]*=he.y,r[a+2]*=he.z}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get size(){return this._x}set size(e){this._x=e}get sizeMultiplier(){return this._x.curveMultiplier}set sizeMultiplier(e){this._x.curveMultiplier=e}get separateAxes(){return this._separateAxes}set separateAxes(e){this._separateAxes=e}get x(){return this._x}set x(e){this._x=e}get y(){return this._y}set y(e){this._y=e}get z(){return this._z}set z(e){this._z=e}get xMultiplier(){return this._x.curveMultiplier}set xMultiplier(e){this._x.curveMultiplier=e}get yMultiplier(){return this._y.curveMultiplier}set yMultiplier(e){this._y.curveMultiplier=e}get zMultiplier(){return this._z.curveMultiplier}set zMultiplier(e){this._z.curveMultiplier=e}get counterName(){return u.d.PARTICLES_SIZE_OVER_LIFETIME}}class me{constructor(e){this._ps=e,this._enabled=!1,this._mode=UnityEngine.ParticleSystemAnimationMode.Grid,this._frameOverTime=new w(null,null,null),this._animation=UnityEngine.ParticleSystemAnimationType.SingleRow,this._numTilesX=0,this._numTilesY=0,this._cycleCount=0,this._flipU=0,this._flipV=0,this._rowIndex=0,this._spriteCount=0,this._useRandomRow=!1,this._startFrame=new w(null,null,null),this._sprites=null,pc.markParticleSystemModuleAsUsed()}processGridMode(e){const t=this._ps._random,n=this.getFramesCount(),i=e.aliveCount,r=e.startFrame,s=e.texSheetOffsetX,a=e.texSheetOffsetY,o=e.lifePart,l=e.seed;let c=0,u=0,h=0;const d=UnityEngine.ParticleSystemAnimationType.SingleRow;for(let e=0;e<i;e++)c=o[e],u=r[e],t.setSeed(l[e]),h=Math.floor(this._frameOverTime.evaluate(c,t.nextFloat())*n*this._cycleCount)+u,this._animation===d||(h%=this._numTilesX*this._numTilesY,a[e]=Math.floor(h/this._numTilesX)),s[e]=h%this._numTilesX}processSpriteMode(e){const t=this._ps._random,n=this.sprites.length,i=e.aliveCount,r=e.startFrame,s=e.lifePart,a=e.seed;let o=0,l=0,c=0;const u=e.texSheetOffsetX,h=e.texSheetOffsetY,d=e.texSheetScaleX,m=e.texSheetScaleY,g=e.s;for(let e=0;e<i;e++){o=s[e],l=r[e],t.setSeed(a[e]),c=Math.floor((this._frameOverTime.evaluate(o,t.nextFloat())*n*this._cycleCount+l)%n);const i=this.getSprite(c);if(null===i)break;const $=i.handle.getTextureRectWithTransparency(),p=i.handle.getTextureRectWithoutTransparency(),y=i.texture;d[e]=p.size.x/y.width,m[e]=p.size.y/y.height,u[e]=p.position.x/(y.width*d[e]),h[e]=p.position.y/(y.height*m[e]),g[3*e]*=p.size.x/$.m_Width,g[3*e+1]*=p.size.y/$.m_Height}}processInplace(e){this._mode===UnityEngine.ParticleSystemAnimationMode.Grid?this.processGridMode(e):this._mode===UnityEngine.ParticleSystemAnimationMode.Sprites&&this.processSpriteMode(e)}checkIsSpriteFromSameAtlas(e,t){const n=e[0];return!(!n||!n)&&n.texture.name===t.texture.name}addSprite(e){this._sprites.length>0?this.checkIsSpriteFromSameAtlas(this._sprites,e)&&this._sprites.push(e):this._sprites.push(e)}getSprite(e){return this._sprites[e]}getAtlasTexture(){return null===this._sprites[0]?null:this._sprites[0].texture}getFramesCount(){return this._animation===UnityEngine.ParticleSystemAnimationType.WholeSheet?this._numTilesX*this._numTilesY:this._numTilesX}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get animation(){return this._animation}set animation(e){this._animation=e}get cycleCount(){return this._cycleCount}set cycleCount(e){this._cycleCount=e}get flipU(){return this._flipU}set flipU(e){this._flipU=e}get flipV(){return this._flipV}set flipV(e){this._flipV=e}get frameOverTime(){return this._frameOverTime}set frameOverTime(e){this._frameOverTime=e}get frameOverTimeMultiplier(){return this._frameOverTime.curveMultiplier}set frameOverTimeMultiplier(e){this._frameOverTime.curveMultiplier=e}get mode(){return this._mode}set mode(e){this._mode=e}get numTilesX(){return this._numTilesX}set numTilesX(e){this._numTilesX=e}get numTilesY(){return this._numTilesY}set numTilesY(e){this._numTilesY=e}get rowIndex(){return this._rowIndex}set rowIndex(e){this._rowIndex=e}get spriteCount(){return this._spriteCount}set spriteCount(e){this._spriteCount=e}get startFrame(){return this._startFrame}set startFrame(e){this._startFrame=e}get startFrameMultiplier(){return this._startFrame.curveMultiplier}set startFrameMultiplier(e){this._startFrame.curveMultiplier=e}get useRandomRow(){return this._useRandomRow}set useRandomRow(e){this._useRandomRow=e}get sprites(){return this._sprites}set sprites(e){let t=!0;if(e.length>1){const n=e[0].texture.name;for(let i=1;i<e.length;i++)if(t=n===e[i].texture.name,!t)return void console.error("Sprites you trying to add are from different sprite atlases")}this._sprites=e}get counterName(){return u.d.PARTICLES_TEXTURE_SHEET_ANIMATION}}var ge=n(3);const $e=new i.m,pe=new i.m,ye=new i.m,fe=new r;class _e{constructor(e){this._ps=e,this._enabled=!1,this._x=new w(null,null,null),this._y=new w(null,null,null),this._z=new w(null,null,null),this._orbitalX=new w(null,null,null),this._orbitalY=new w(null,null,null),this._orbitalZ=new w(null,null,null),this._orbitalOffsetX=new w(null,null,null),this._orbitalOffsetY=new w(null,null,null),this._orbitalOffsetZ=new w(null,null,null),this._radial=new w(null,null,null),this._speedModifier=new w(null,null,null),this._space=UnityEngine.ParticleSystemSimulationSpace.World,pc.markParticleSystemModuleAsUsed()}processInplace(e){$e.x=$e.y=$e.z=0,this._ps.shape&&this._ps.shape.enabled&&$e.copy(this._ps.shape.position);const t=e.aliveCount,n=e.animatedVelocity,r=e.lifePart,s=e.t,a=e.seed;let o=0,l=0;const c=e.dt,u=new i.m,h=new i.m,d=new i.m;let m=0;const g=new i.m,$=new i.m,p=new i.h,y=UnityEngine.ParticleSystemSimulationSpace.World,f=this._ps.entity.worldTransformInverse;for(let e=0;e<t;e++){o=3*e,l=r[e],fe.setSeed(a[e]),g.set(this.orbitalX.evaluate(l,fe.nextFloat()),this.orbitalY.evaluate(l,fe.nextFloat()),this.orbitalZ.evaluate(l,fe.nextFloat())),0===g.x&&0===g.y&&0===g.z||($.set(this.orbitalOffsetX.evaluate(l,fe.nextFloat()),this.orbitalOffsetY.evaluate(l,fe.nextFloat()),this.orbitalOffsetZ.evaluate(l,fe.nextFloat())),g.scale(c[e]),p.setFromEulerAngles(g.x,g.y,g.z),u.set(s[o],s[o+1],s[o+2]),u.sub($),p.transformVector(u,h),d.set(h.x-u.x,h.y-u.y,h.z-u.z),m=c[e]>ge.b?1/c[e]:0,d.scale(m),n[o]+=d.x,n[o+1]+=d.y,n[o+2]+=d.z),pe.x=this._x.evaluate(l,fe.nextFloat()),pe.y=this._y.evaluate(l,fe.nextFloat()),pe.z=this._z.evaluate(l,fe.nextFloat()),this._space===y&&f.transformVector(pe,pe);const t=this._radial.evaluate(l,fe.nextFloat());0!==t&&(ye.set(s[o],s[o+1],s[o+2]),ye.sub($e).normalize().scale(t),pe.add(ye)),n[o]+=pe.x,n[o+1]+=pe.y,n[o+2]+=pe.z}}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get x(){return this._x}set x(e){this._x=e}get y(){return this._y}set y(e){this._y=e}get z(){return this._z}set z(e){this._z=e}get xMultiplier(){return this._x.curveMultiplier}set xMultiplier(e){this._x.curveMultiplier=e}get yMultiplier(){return this._y.curveMultiplier}set yMultiplier(e){this._y.curveMultiplier=e}get zMultiplier(){return this._z.curveMultiplier}set zMultiplier(e){this._z.curveMultiplier=e}get orbitalX(){return this._orbitalX}set orbitalX(e){this._orbitalX=e}get orbitalY(){return this._orbitalY}set orbitalY(e){this._orbitalY=e}get orbitalZ(){return this._orbitalZ}set orbitalZ(e){this._orbitalZ=e}get orbitalXMultiplier(){return this._orbitalX.curveMultiplier}set orbitalXMultiplier(e){this._orbitalX.curveMultiplier=e}get orbitalYMultiplier(){return this._orbitalY.curveMultiplier}set orbitalYMultiplier(e){this._orbitalY.curveMultiplier=e}get orbitalZMultiplier(){return this._orbitalZ.curveMultiplier}set orbitalZMultiplier(e){this._orbitalZ.curveMultiplier=e}get orbitalOffsetX(){return this._orbitalOffsetX}set orbitalOffsetX(e){this._orbitalOffsetX=e}get orbitalOffsetY(){return this._orbitalOffsetY}set orbitalOffsetY(e){this._orbitalOffsetY=e}get orbitalOffsetZ(){return this._orbitalOffsetZ}set orbitalOffsetZ(e){this._orbitalOffsetZ=e}get orbitalOffsetXMultiplier(){return this._orbitalOffsetX.curveMultiplier}set orbitalOffsetXMultiplier(e){this._orbitalOffsetX.curveMultiplier=e}get orbitalOffsetYMultiplier(){return this._orbitalOffsetY.curveMultiplier}set orbitalOffsetYMultiplier(e){this._orbitalOffsetY.curveMultiplier=e}get orbitalOffsetZMultiplier(){return this._orbitalOffsetZ.curveMultiplier}set orbitalOffsetZMultiplier(e){this._orbitalOffsetZ.curveMultiplier=e}get radial(){return this._radial}set radial(e){this._radial=e}get radialMultiplier(){return this._radial.curveMultiplier}set radialMultiplier(e){this._radial.curveMultiplier=e}get speedModifier(){return this._speedModifier}set speedModifier(e){this._speedModifier=e}get speedModifierMultiplier(){return this._speedModifier.curveMultiplier}set speedModifierMultiplier(e){this._speedModifier.curveMultiplier=e}get space(){return this._space}set space(e){this._space=e}get counterName(){return u.d.PARTICLES_VELOCITY_OVER_LIFETIME}}class Se{constructor(e,t){this._ps=e,this._decomposedToObjects=!1,this._particles=[],this._capacity=0,this._aliveCount=0,this._maxParticles=t||0,this._t=new Float32Array(0),this._r=new Float32Array(0),this._s=new Float32Array(0),this._rotation3D=new Float32Array(0),this._startSize3D=new Float32Array(0),this._startRotationAxis=new Float32Array(0),this._angularVelocity=new Float32Array(0),this._velocity=new Float32Array(0),this._animatedVelocity=new Float32Array(0),this._totalVelocity=new Float32Array(0),this._color=new Float32Array(0),this._startColor=new Float32Array(0),this._elapsedTime=new Float32Array(0),this._lifetime=new Float32Array(0),this._lifePart=new Float32Array(0),this._dt=new Float32Array(0),this._birthTime=new Float32Array(0),this._startFrame=new Uint8Array(0),this._texSheetOffsetX=new Float32Array(0),this._texSheetOffsetY=new Float32Array(0),this._texSheetScaleX=new Float32Array(0),this._texSheetScaleY=new Float32Array(0),this._seed=new Uint32Array(0)}initializeNewParticle(e,t){const n=t,i=3*n,r=4*n;this._t[i]=e.translation.x,this._t[i+1]=e.translation.y,this._t[i+2]=e.translation.z,this._r[r]=e.rotation.x,this._r[r+1]=e.rotation.y,this._r[r+2]=e.rotation.z,this._r[r+3]=e.rotation.w,this._rotation3D[i]=e.rotation3D.x,this._rotation3D[i+1]=e.rotation3D.y,this._rotation3D[i+2]=e.rotation3D.z,this._s[i]=e.scale.x,this._s[i+1]=e.scale.y,this._s[i+2]=e.scale.z,this._startSize3D[i]=e.scale.x,this._startSize3D[i+1]=e.scale.y,this._startSize3D[i+2]=e.scale.z,this._startRotationAxis[i]=e.startRotationAxis.x,this._startRotationAxis[i+1]=e.startRotationAxis.y,this._startRotationAxis[i+2]=e.startRotationAxis.z,this._angularVelocity[i]=0,this._angularVelocity[i+1]=0,this._angularVelocity[i+2]=0,this._velocity[i]=e.velocity.x,this._velocity[i+1]=e.velocity.y,this._velocity[i+2]=e.velocity.z,this._animatedVelocity[i]=0,this._animatedVelocity[i+1]=0,this._animatedVelocity[i+2]=0,this._totalVelocity[i]=0,this._totalVelocity[i+1]=0,this._totalVelocity[i+2]=0,this._color[r]=e.color.r,this._color[r+1]=e.color.g,this._color[r+2]=e.color.b,this._color[r+3]=e.color.a,this._startColor[r]=e.color.r,this._startColor[r+1]=e.color.g,this._startColor[r+2]=e.color.b,this._startColor[r+3]=e.color.a,this._elapsedTime[n]=0,this._lifetime[n]=e.lifetime,this._lifePart[n]=0,this._dt[n]=0,this._birthTime[n]=e.birthTimeOffset,this._startFrame[n]=e.startFrame,this._texSheetOffsetX[n]=e.texSheetOffsetX,this._texSheetOffsetY[n]=e.texSheetOffsetY,this._texSheetScaleX[n]=e.texSheetScaleX,this._texSheetScaleY[n]=e.texSheetScaleY,this._seed[n]=$.nextInteger()}resizeRaw(e){e=Math.min(Math.max(e,1),this.maxParticles),this._capacity=e,this._t=this.getTypedArray(Float32Array,this._t,e,4),this._r=this.getTypedArray(Float32Array,this._r,e,4),this._s=this.getTypedArray(Float32Array,this._s,e,3),this._rotation3D=this.getTypedArray(Float32Array,this._rotation3D,e,3),this._startSize3D=this.getTypedArray(Float32Array,this._startSize3D,e,3),this._startRotationAxis=this.getTypedArray(Float32Array,this._startRotationAxis,e,3),this._angularVelocity=this.getTypedArray(Float32Array,this._angularVelocity,e,3),this._velocity=this.getTypedArray(Float32Array,this._velocity,e,3),this._animatedVelocity=this.getTypedArray(Float32Array,this._animatedVelocity,e,3),this._totalVelocity=this.getTypedArray(Float32Array,this._totalVelocity,e,3),this._color=this.getTypedArray(Float32Array,this._color,e,4),this._startColor=this.getTypedArray(Float32Array,this._startColor,e,4),this._elapsedTime=this.getTypedArray(Float32Array,this._elapsedTime,e,1),this._lifetime=this.getTypedArray(Float32Array,this._lifetime,e,1),this._lifePart=this.getTypedArray(Float32Array,this._lifePart,e,1),this._dt=this.getTypedArray(Float32Array,this._dt,e,1),this._birthTime=this.getTypedArray(Float32Array,this._birthTime,e,1),this._startFrame=this.getTypedArray(Uint8Array,this._startFrame,e,1),this._texSheetOffsetX=this.getTypedArray(Float32Array,this._texSheetOffsetX,e,1),this._texSheetOffsetY=this.getTypedArray(Float32Array,this._texSheetOffsetY,e,1),this._texSheetScaleX=this.getTypedArray(Float32Array,this._texSheetScaleX,e,1),this._texSheetScaleY=this.getTypedArray(Float32Array,this._texSheetScaleY,e,1),this._seed=this.getTypedArray(Uint32Array,this._seed,e,1)}getTypedArray(e,t,n,i){const r=new e(n*i);let s=0;for(s=0;s<t.length;++s)r[s]=t[s];return r}get(e){return this._particles.length<=e&&this._particles.length<this.maxParticles?null:this._particles[e]}acquire(){if(this.aliveCount>this.maxParticles)return null;this.aliveCount>=this._capacity&&(0===this._capacity?this.resizeRaw(this.estimateParticlesCount()):this.resizeRaw(2*this._capacity));const e=this.aliveCount;return this.aliveCount++,e}release(e){const t=this.aliveCount-1;if(--this.aliveCount,0===t)return;const n=3*e,i=4*e,r=3*t,s=4*t;this._t[n]=this._t[r],this._t[n+1]=this._t[r+1],this._t[n+2]=this._t[r+2],this._r[i]=this._r[s],this._r[i+1]=this._r[s+1],this._r[i+2]=this._r[s+2],this._r[i+3]=this._r[s+3],this._s[n]=this._s[r],this._s[n+1]=this._s[r+1],this._s[n+2]=this._s[r+2],this._rotation3D[n]=this._rotation3D[r],this._rotation3D[n+1]=this._rotation3D[r+1],this._rotation3D[n+2]=this._rotation3D[r+2],this._startSize3D[n]=this._startSize3D[r],this._startSize3D[n+1]=this._startSize3D[r+1],this._startSize3D[n+2]=this._startSize3D[r+2],this._startRotationAxis[n]=this._startRotationAxis[r],this._startRotationAxis[n+1]=this._startRotationAxis[r+1],this._startRotationAxis[n+2]=this._startRotationAxis[r+2],this._angularVelocity[n]=this._angularVelocity[r],this._angularVelocity[n+1]=this._angularVelocity[r+1],this._angularVelocity[n+2]=this._angularVelocity[r+2],this._velocity[n]=this._velocity[r],this._velocity[n+1]=this._velocity[r+1],this._velocity[n+2]=this._velocity[r+2],this._animatedVelocity[n+0]=this._animatedVelocity[r],this._animatedVelocity[n+1]=this._animatedVelocity[r+1],this._animatedVelocity[n+2]=this._animatedVelocity[r+2],this._totalVelocity[n+0]=this._totalVelocity[r],this._totalVelocity[n+1]=this._totalVelocity[r+1],this._totalVelocity[n+2]=this._totalVelocity[r+2],this._elapsedTime[e]=this._elapsedTime[t],this._lifetime[e]=this._lifetime[t],this._lifePart[e]=this._lifePart[t],this._dt[e]=this._dt[t],this._birthTime[e]=this._birthTime[t],this._color[i]=this._color[s],this._color[i+1]=this._color[s+1],this._color[i+2]=this._color[s+2],this._color[i+3]=this._color[s+3],this._startColor[i]=this._startColor[s],this._startColor[i+1]=this._startColor[s+1],this._startColor[i+2]=this._startColor[s+2],this._startColor[i+3]=this._startColor[s+3],this._startFrame[e]=this._startFrame[t],this._texSheetOffsetX[e]=this._texSheetOffsetX[t],this._texSheetOffsetY[e]=this._texSheetOffsetY[t],this._texSheetScaleX[e]=this._texSheetScaleX[t],this._texSheetScaleY[e]=this._texSheetScaleY[t],this._seed[e]=this._seed[t]}clear(){this.aliveCount=0}dispose(){this._particles=null,this.aliveCount=0,this.maxParticles=0}estimateParticlesCount(){const e=this._ps.emission,t=this._ps.main.startLifetime.getMaxValue(),n=e.rateOverTime.getMaxValue()*t*1.03,i=10*e.rateOverDistance.getMaxValue();let r=0;const s=e.bursts;for(let e=0;e<s.length;e++){const n=s[e],i=n.count.getMaxValue();r+=0===n.cycleCount?Math.max(i*(1/n.repeatInterval)*t,i):Math.min(i*(1/n.repeatInterval)*t,i*n.cycleCount)}let a=n+i+r;return a=Math.ceil(a),a}decompose(){if(this._decomposedToObjects)return;this.resizeDecomposed(this._capacity);let e=0,t=0,n=0,i=null;for(e=0;e<this._aliveCount;e++)t=3*e,n=4*e,i=this._particles[e],i._cacheIndex=e,i.t.x=this._t[t],i.t.y=this._t[t+1],i.t.z=this._t[t+2],i.r.x=this._r[n],i.r.y=this._r[n+1],i.r.z=this._r[n+2],i.r.w=this._r[n+3],i.s.x=this._s[t],i.s.y=this._s[t+1],i.s.z=this._s[t+2],i.rotation3D.x=this._rotation3D[t],i.rotation3D.y=this._rotation3D[t+1],i.rotation3D.z=this._rotation3D[t+2],i.startSize3D.x=this._startSize3D[t],i.startSize3D.y=this._startSize3D[t+1],i.startSize3D.z=this._startSize3D[t+2],i.startRotationAxis.x=this._startRotationAxis[t],i.startRotationAxis.y=this._startRotationAxis[t+1],i.startRotationAxis.z=this._startRotationAxis[t+2],i.angularVelocity.x=this._angularVelocity[t],i.angularVelocity.y=this._angularVelocity[t+1],i.angularVelocity.z=this._angularVelocity[t+2],i.velocity.x=this._velocity[t],i.velocity.y=this._velocity[t+1],i.velocity.z=this._velocity[t+2],i.animatedVelocity.x=this._animatedVelocity[t],i.animatedVelocity.y=this._animatedVelocity[t+1],i.animatedVelocity.z=this._animatedVelocity[t+2],i.elapsedTime=this._elapsedTime[e],i.lifetime=this._lifetime[e],i.dt=this._dt[e],i.birthTime=this._birthTime[e],i.color.r=this._color[n],i.color.g=this._color[n+1],i.color.b=this._color[n+2],i.color.a=this._color[n+3],i.startColor.r=this._startColor[n],i.startColor.g=this._startColor[n+1],i.startColor.b=this._startColor[n+2],i.startColor.a=this._startColor[n+3],i.startFrame=this._startFrame[e],i.texSheetOffsetX=this._texSheetOffsetX[e],i.texSheetOffsetY=this._texSheetOffsetY[e],i.texSheetScaleX=this._texSheetScaleX[e],i.texSheetScaleY=this._texSheetScaleY[e],i.seed=this._seed[e];for(let e=this._aliveCount;e<this._particles.length;e++)this._particles[e].elapsedTime=this._particles[e].lifetime;this._decomposedToObjects=!0}recompose(){let e=0,t=0,n=0,i=null;for(e=0;e<this._aliveCount;e++)t=3*e,n=4*e,i=this._particles[e],i._cacheIndex=e,this._t[t]=i.t.x,this._t[t+1]=i.t.y,this._t[t+2]=i.t.z,this._r[n]=i.r.x,this._r[n+1]=i.r.y,this._r[n+2]=i.r.z,this._r[n+3]=i.r.w,this._s[t]=i.s.x,this._s[t+1]=i.s.y,this._s[t+2]=i.s.z,this._rotation3D[t]=i.rotation3D.x,this._rotation3D[t+1]=i.rotation3D.y,this._rotation3D[t+2]=i.rotation3D.z,this._startSize3D[t]=i.startSize3D.x,this._startSize3D[t+1]=i.startSize3D.y,this._startSize3D[t+2]=i.startSize3D.z,this._startRotationAxis[t]=i.startRotationAxis.x,this._startRotationAxis[t+1]=i.startRotationAxis.y,this._startRotationAxis[t+2]=i.startRotationAxis.z,this._angularVelocity[t]=i.angularVelocity.x,this._angularVelocity[t+1]=i.angularVelocity.y,this._angularVelocity[t+2]=i.angularVelocity.z,this._velocity[t]=i.velocity.x,this._velocity[t+1]=i.velocity.y,this._velocity[t+2]=i.velocity.z,this._animatedVelocity[t]=i.animatedVelocity.x,this._animatedVelocity[t+1]=i.animatedVelocity.y,this._animatedVelocity[t+2]=i.animatedVelocity.z,this._elapsedTime[e]=i.elapsedTime,this._lifetime[e]=i.lifetime,this._lifePart[e]=i.lifePart,this._dt[e]=i.dt,this._birthTime[e]=i.birthTime,this._color[n]=i.color.r,this._color[n+1]=i.color.g,this._color[n+2]=i.color.b,this._color[n+3]=i.color.a,this._startColor[n]=i.startColor.r,this._startColor[n+1]=i.startColor.g,this._startColor[n+2]=i.startColor.b,this._startColor[n+3]=i.startColor.a,this._startFrame[e]=i.startFrame,this._texSheetOffsetX[e]=i.texSheetOffsetX,this._texSheetOffsetY[e]=i.texSheetOffsetY,this._texSheetScaleX[e]=i.texSheetScaleX,this._texSheetScaleY[e]=i.texSheetScaleY,this._seed[e]=i.seed}resizeDecomposed(e){if(e=Math.min(Math.max(e,1),this.maxParticles),this._particles.length<e){const t=Array(e);let n=0;for(n=0;n<this._particles.length;++n)t[n]=this._particles[n];for(n=0;n<e;++n)t[n]=new p;this._particles=t}}get maxParticles(){return this._maxParticles}set maxParticles(e){this._maxParticles=e}get aliveCount(){return this._aliveCount}set aliveCount(e){this._aliveCount=e}get seed(){return this._seed}set seed(e){this._seed=e}get texSheetOffsetX(){return this._texSheetOffsetX}set texSheetOffsetX(e){this._texSheetOffsetX=e}get texSheetOffsetY(){return this._texSheetOffsetY}set texSheetOffsetY(e){this._texSheetOffsetY=e}get startFrame(){return this._startFrame}set startFrame(e){this._startFrame=e}get birthTime(){return this._birthTime}set birthTime(e){this._birthTime=e}get dt(){return this._dt}set dt(e){this._dt=e}get lifetime(){return this._lifetime}set lifetime(e){this._lifetime=e}get elapsedTime(){return this._elapsedTime}set elapsedTime(e){this._elapsedTime=e}get startColor(){return this._startColor}set startColor(e){this._startColor=e}get color(){return this._color}set color(e){this._color=e}get animatedVelocity(){return this._animatedVelocity}set animatedVelocity(e){this._animatedVelocity=e}get velocity(){return this._velocity}set velocity(e){this._velocity=e}get angularVelocity(){return this._angularVelocity}set angularVelocity(e){this._angularVelocity=e}get startRotationAxis(){return this._startRotationAxis}set startRotationAxis(e){this._startRotationAxis=e}get startSize3D(){return this._startSize3D}set startSize3D(e){this._startSize3D=e}get rotation3D(){return this._rotation3D}set rotation3D(e){this._rotation3D=e}get s(){return this._s}set s(e){this._s=e}get r(){return this._r}set r(e){this._r=e}get t(){return this._t}set t(e){this._t=e}get lifePart(){return this._lifePart}set lifePart(e){this._lifePart=e}get decomposedToObjects(){return this._decomposedToObjects}set decomposedToObjects(e){this._decomposedToObjects=e}get texSheetScaleY(){return this._texSheetScaleY}set texSheetScaleY(e){this._texSheetScaleY=e}get texSheetScaleX(){return this._texSheetScaleX}set texSheetScaleX(e){this._texSheetScaleX=e}}const be=new i.m,Ce=new r,Ee=new i.m;class Te{constructor(e){this._ps=e,this._enabled=!1,this._x=new w(null,null,null),this._y=new w(null,null,null),this._z=new w(null,null,null),this._separateAxes=!1,pc.markParticleSystemModuleAsUsed()}processInplace(e){const t=e.aliveCount,n=e.angularVelocity,r=e.startRotationAxis,s=e.lifePart,a=e.seed;let o=0,l=0;for(let e=0;e<t;e++)o=3*e,l=s[e],Ce.setSeed(a[e]),be.x=r[o],be.y=r[o+1],be.z=r[o+2],this._separateAxes?(Ee.x=this._x.evaluate(l,Ce.nextFloat())*i.k,Ee.y=this._y.evaluate(l,Ce.nextFloat())*i.k,Ee.z=this._z.evaluate(l,Ce.nextFloat())*i.k):(Ee.x=0,Ee.y=0,Ee.z=this._z.evaluate(l,Ce.nextFloat())*i.k),n[o]+=Ee.x,n[o+1]+=Ee.y,n[o+2]+=Ee.z}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get x(){return this._x}set x(e){this._x=e}get y(){return this._y}set y(e){this._y=e}get z(){return this._z}set z(e){this._z=e}get xMultiplier(){return this._x.curveMultiplier}set xMultiplier(e){this._x.curveMultiplier=e}get yMultiplier(){return this._y.curveMultiplier}set yMultiplier(e){this._y.curveMultiplier=e}get zMultiplier(){return this._z.curveMultiplier}set zMultiplier(e){this._z.curveMultiplier=e}get separateAxes(){return this._separateAxes}set separateAxes(e){this._separateAxes=e}get counterName(){return u.d.PARTICLES_ROTATION_OVER_LIFETIME}}const ve=new i.m,Ie=new r;class xe{constructor(e){this._ps=e,this._enabled=!1,this._x=new w(null,null,null),this._y=new w(null,null,null),this._z=new w(null,null,null),this._space=0,this._randomized=!1,pc.markParticleSystemModuleAsUsed()}processInplace(e){const t=e.aliveCount,n=e.velocity,i=e.lifePart,r=e.dt;let s=0,a=0,o=0;const l=UnityEngine.ParticleSystemSimulationSpace.World;for(let c=0;c<t;c++){s=3*c,a=i[c],o=r[c];const t=this._randomized?this._ps._random.nextInteger():e.seed[c];Ie.setSeed(t),ve.x=this._x.evaluate(a,Ie.nextFloat()),ve.y=this._y.evaluate(a,Ie.nextFloat()),ve.z=this._z.evaluate(a,Ie.nextFloat()),this._space===l&&this._ps.entity.worldTransformInverse.transformVector(ve,ve),ve.scale(o),n[s]+=ve.x,n[s+1]+=ve.y,n[s+2]+=ve.z}}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._ps.setActiveModule(this,e)}get x(){return this._x}set x(e){this._x=e}get y(){return this._y}set y(e){this._y=e}get z(){return this._z}set z(e){this._z=e}get xMultiplier(){return this._x.curveMultiplier}set xMultiplier(e){this._x.curveMultiplier=e}get yMultiplier(){return this._y.curveMultiplier}set yMultiplier(e){this._y.curveMultiplier=e}get zMultiplier(){return this._z.curveMultiplier}set zMultiplier(e){this._z.curveMultiplier=e}get space(){return this._space}set space(e){this._space=e}get randomized(){return this._randomized}set randomized(e){this._randomized=e}get counterName(){return u.d.PARTICLES_FORCE_OVER_LIFETIME}}var Ae=n(2);const we=new r,De={translation:new i.m,rotation:new i.j,rotation3D:new i.m,startRotationAxis:new i.m,scale:new i.m,direction:new i.m,velocity:new i.m,lifetime:0,color:new i.d,birthTimeOffset:0,startFrame:0,texSheetOffsetX:0,texSheetOffsetY:0,texSheetScaleX:1,texSheetScaleY:1},Me={res:!1,withChildren:!1,restart:!1,fixedTimeStep:!1,time:0},Pe=new i.j,Ue=new i.m,Be=new i.i,Oe=new i.m,Le=new i.m,Re=new i.m,Fe=new i.m,Ge=new i.j,ke=new i.m;let Ve=null;function Ne(e,t){return Ve.get(Object.getPrototypeOf(e))-Ve.get(Object.getPrototypeOf(t))}function ze(e,t){t.res=t.res&&e.isAlive(!1)}function He(e){e.stop(!1,!1)}function je(e){e.play(!1)}function Ze(e,t){e.simulate(t.time,t.withChildren,t.restart,t.fixedTimeStep)}var qe=n(5);let Ke=null,We=null;const Je=new i.m;let Qe=new i.m;const Xe=new i.m,Ye=new i.m,et=new Float32Array([-.5,-.5,0,1,1,1,1,0,0,-.5,.5,0,1,1,1,1,0,1,.5,.5,0,1,1,1,1,1,1,.5,-.5,0,1,1,1,1,1,0]),tt=new Float32Array([-.5,-1,0,1,1,1,1,1,0,-.5,0,0,1,1,1,1,0,0,.5,0,0,1,1,1,1,0,1,.5,-1,0,1,1,1,1,1,1]),nt=new Uint16Array([0,1,2,2,3,0]),it=[{semantic:Ae.c.SEMANTIC_POSITION,components:3,type:Ae.c.TYPE_FLOAT32},{semantic:Ae.c.SEMANTIC_COLOR,components:4,type:Ae.c.TYPE_FLOAT32},{semantic:Ae.c.SEMANTIC_TEXCOORD0,components:2,type:Ae.c.TYPE_FLOAT32}],rt=[{semantic:Ae.c.SEMANTIC_TEXCOORD5,components:3,type:Ae.c.TYPE_FLOAT32},{semantic:Ae.c.SEMANTIC_TEXCOORD6,components:4,type:Ae.c.TYPE_FLOAT32},{semantic:Ae.c.SEMANTIC_TEXCOORD7,components:3,type:Ae.c.TYPE_FLOAT32},{semantic:Ae.c.SEMANTIC_ATTR0,components:4,type:Ae.c.TYPE_FLOAT32},{semantic:Ae.c.SEMANTIC_ATTR1,components:4,type:Ae.c.TYPE_FLOAT32}];class st extends u.j{constructor(e){super(e),this.id="particleSystemRenderer"}}var at=n(12);class ot extends at.a{constructor(){super(),this.code=UnityEngine.Object.FromHandle(UnityEngine.ParticleSystemRenderer,this),this._particleSystemRenderer=new pc.ParticleSystemRenderer,this._particleSystemRenderer._model=this._model,this._meshCount=0,this._activeVertexStreamsCount=0,this._cameraVelocityScale=0,this._normalDirection=0,this._sortingFudge=0,this._minParticleSize=0,this._maxParticleSize=.5,this._pivot=new i.m,this["__UnityEngine.ParticleSystemRenderer"]=null,pc.markParticleSystemModuleAsUsed()}update(e,t){this.particleSystemRenderer.render(e,t)}onEnable(){return!!super.onEnable()&&(u.a.getApplication().scene.addRenderer(this),!0)}onDisable(){return!!super.onDisable()&&(u.a.getApplication().scene.removeRenderer(this),!0)}get meshInstances(){return this.model.meshInstances}get particleSystemRenderer(){return this._particleSystemRenderer}set particleSystemRenderer(e){this._particleSystemRenderer=e}get renderMode(){return this.particleSystemRenderer.renderMode}set renderMode(e){this.particleSystemRenderer.renderMode=e}get alignment(){return this.particleSystemRenderer.alignment}set alignment(e){this.particleSystemRenderer.alignment=e}set mesh(e){this.particleSystemRenderer.mesh=e}get mesh(){return this.particleSystemRenderer.mesh}set lengthScale(e){this.particleSystemRenderer.lengthScale=e}set velocityScale(e){this.particleSystemRenderer.velocityScale=e}set sortMode(e){this.particleSystemRenderer.sortMode=e}get pivot(){return this._pivot}set pivot(e){this._pivot=e}get maxParticleSize(){return this._maxParticleSize}set maxParticleSize(e){this._maxParticleSize=e}get minParticleSize(){return this._minParticleSize}set minParticleSize(e){this._minParticleSize=e}get sortingFudge(){return this._sortingFudge}set sortingFudge(e){this._sortingFudge=e}get normalDirection(){return this._normalDirection}set normalDirection(e){this._normalDirection=e}get cameraVelocityScale(){return this._cameraVelocityScale}set cameraVelocityScale(e){this._cameraVelocityScale=e}get activeVertexStreamsCount(){return this._activeVertexStreamsCount}set activeVertexStreamsCount(e){this._activeVertexStreamsCount=e}get meshCount(){return this._meshCount}set meshCount(e){this._meshCount=e}}class lt extends u.k{constructor(e){super(),this.counters=u.d.instance,this._particleSystem=e.particleSystem,this._renderer=null,this["__UnityEngine.ParticleSystem"]=null,pc.markParticleSystemModuleAsUsed()}_fetchRenderer(){const e=this.entity._unityComponents.particleSystemRenderer[0];return e?(this._particleSystem.renderer=e,e):null}_queuesToSubscribe(){return["onUpdate"]}onAttached(){super.onAttached(),this._particleSystem._entity=this.entity,this._renderer||(this._renderer=this._fetchRenderer())}onAwake(){super.onAwake(),this._particleSystem._entity=this.entity,this._renderer||(this._renderer=this._fetchRenderer())}onEnable(){return!!super.onEnable()&&(this._particleSystem.main.playOnAwake&&this._particleSystem.play(!0),!0)}onDestroy(){return this._particleSystem._cache.dispose(),!!super.onDestroy()&&(this._renderer&&!this._renderer._destroyed&&(this._renderer.enabled&&(this._renderer.enabled=!1),this._renderer.destroy(),this._renderer=null),!0)}onUpdate(e){this._renderer||(this._renderer=this._fetchRenderer()),this._particleSystem.update(e,this.entity.getWorldTransform()),this._renderer&&this._renderer.enabled&&(this.counters.startSubSection(u.d.PARTICLES_RENDERER),this._renderer.update(this._particleSystem,e),this.counters.endSubSection(u.d.PARTICLES_RENDERER))}onDisable(){return!!super.onDisable()&&(this._particleSystem.stop(!0,UnityEngine.ParticleSystemStopBehavior.StopEmittingAndClear),!0)}}class ct extends u.j{constructor(e){super(e),this.id="particlesystem",this.performanceSamplerSection=u.d.PARTICLES}}pc.ParticleSystem=class{constructor(){this._entity=null,this._renderer=null,this._useAutoRandomSeed=!0,this._randomSeed=0,this._random=new r,this._cache=new Se(this,0),this._shouldEmit=!1,this._paused=!1,this._lifetime=0,this._playTime=0,this._delayTimer=0,this._emittedCount=0,this._previousPosition=new i.m,this._currentVelocity=new i.m,this._scaleFactor=new i.m,this._events=new Ae.a(this),this._colorBySpeed=new m(this),this._colorOverLifetime=new j(this),this._emission=new q(this),this._main=new ne(this),this._rotationBySpeed=new le(this),this._rotationOverLifetime=new Te(this),this._shape=new N(this),this._sizeBySpeed=new ue(this),this._sizeOverLifetime=new de(this),this._textureSheetAnimation=new me(this),this._velocityOverLifetime=new _e(this),this._noise=new re(this),this._inheritVelocity=new J(this),this._forceOverLifetime=new xe(this),this._limitVelocityOverLifetime=new te(this),this._activeModulesSet=new Set,this._activeModules=[],Ve||(Ve=new Map,Ve.set(J.prototype,0),Ve.set(xe.prototype,1),Ve.set(_e.prototype,2),Ve.set(j.prototype,3),Ve.set(m.prototype,4),Ve.set(Te.prototype,5),Ve.set(le.prototype,6),Ve.set(de.prototype,7),Ve.set(ue.prototype,8),Ve.set(me.prototype,9),Ve.set(re.prototype,10),Ve.set(te.prototype,11)),pc.markParticleSystemModuleAsUsed()}setActiveModule(e,t){t?this._activeModulesSet.add(e):this._activeModulesSet.delete(e),e._enabled=t,this._activeModules.length=0;for(const e of this._activeModulesSet)this._activeModules.push(e);this._activeModules.sort(Ne)}isAlive(e){return Me.res=this.isActive,this.doOnChildren(e,ze,Me),Me.res}clear(){this._cache.clear()}stop(e,t){if(this.isActive){switch(e=void 0===e||e,t=void 0===t?UnityEngine.ParticleSystemStopBehavior.StopEmitting:t){case UnityEngine.ParticleSystemStopBehavior.StopEmittingAndClear:this._shouldEmit=!1,this.clear();break;case UnityEngine.ParticleSystemStopBehavior.StopEmitting:default:this._shouldEmit=!1}this.doOnChildren(e,He,Me),this.checkStopAction()}}pause(){this._paused=!0}play(e){this._paused?this._paused=!1:(this._shouldEmit=!0,this._paused=!1,this._lifetime=0,this._delayTimer=0,this._playTime=0,this._cache.aliveCount=0,this.emission.lastSpawnTime_rate=0,this.emission.reinitBurstData(),e=void 0===e||e,this.doOnChildren(e,je,Me),this.main.prewarm&&this.prewarm())}prewarm(){u.d.instance.startSection(u.d.PARTICLES);const e=this.main.startLifetime.evaluate(this.lifePart,0);this.runSimulation(e,!0),u.d.instance.endSection(u.d.PARTICLES)}simulate(e,t,n,i){u.d.instance.startSection(u.d.PARTICLES),n&&this.stop(t,UnityEngine.ParticleSystemStopBehavior.StopEmittingAndClear),this._paused=!1,this.isActive||this.play(!1),this.runSimulation(e,i),this.pause(),Me.time=e,Me.withChildren=t,Me.restart=n,Me.fixedTimeStep=i,this.doOnChildren(t,Ze,Me),u.d.instance.endSection(u.d.PARTICLES)}runSimulation(e,t){const n=t?UnityEngine.Time.fixedDeltaTime:1/30,i=this.entity.getWorldTransform();let r=0,s=0;for(;r<e;)s=Math.min(e-r,n),this.update(s,i),r+=s}updateCurrentVelocity(e){const t=this.entity._unityComponents.rigidbody[0];this.main.emitterVelocityMode===UnityEngine.ParticleSystemEmitterVelocityMode.Rigidbody&&t?this._currentVelocity.copy(t.velocity):(Oe.copy(this.entity.getPosition()),this._currentVelocity.copy(Oe).sub(this._previousPosition).scale(1/e),this._previousPosition.copy(Oe))}createParticle(e,t){De.translation.copy(i.m.ZERO),De.rotation.copy(i.j.IDENTITY),De.rotation3D.copy(i.m.ZERO),De.scale.copy(i.m.ONE);const n=this._cache.acquire();if(null===n)return;++this._emittedCount;const r=this.lifePart;this.shape&&this.shape.enabled?(this.startModuleCounter(this.shape.counterName),this.shape.applyNextTransform(De.translation,De.rotation3D,De.direction,De.startRotationAxis),this.endModuleCounter(this.shape.counterName)):(De.direction.set(0,0,1),De.startRotationAxis.set(0,0,1)),this.main.simulationSpace===UnityEngine.ParticleSystemSimulationSpace.World&&(e.transformPoint(De.translation,De.translation),e.transformVector(De.direction,De.direction),De.direction.normalize());const s=this.renderer.renderMode;s!==UnityEngine.ParticleSystemRenderMode.Stretch&&(this.main.startRotation3D?(De.rotation3D.x+=this.main.startRotationX.evaluate(r,we.nextFloat())*i.k,De.rotation3D.y+=this.main.startRotationY.evaluate(r,we.nextFloat())*i.k,De.rotation3D.z+=this.main.startRotationZ.evaluate(r,we.nextFloat())*i.k):(De.rotation3D.x+=0,De.rotation3D.y+=0,De.rotation3D.z+=this.main.startRotationZ.evaluate(r,we.nextFloat())*i.k,s===UnityEngine.ParticleSystemRenderMode.Billboard?De.startRotationAxis.copy(De.rotation.transformVector(i.m.FORWARD)).normalize():De.startRotationAxis.normalize(),Pe.setFromAxisAngle(De.startRotationAxis,De.rotation3D.z))),this.main.startSize3D?(De.scale.x=this.main.startSizeX.evaluate(r,we.nextFloat()),De.scale.y=this.main.startSizeY.evaluate(r,we.nextFloat()),De.scale.z=this.main.startSizeZ.evaluate(r,we.nextFloat())):De.scale.copy(i.m.ONE).scale(this.main.startSize.evaluate(r,we.nextFloat()));const a=Math.abs(this.main.startSpeed.evaluate(r,we.nextFloat()));De.velocity.copy(De.direction).scale(a);const o=this._inheritVelocity;if(o.enabled&&o.mode===UnityEngine.ParticleSystemInheritVelocityMode.Initial){const e=o.curve.evaluate(0,we.nextFloat());Le.copy(this.currentVelocity).scale(e),De.velocity.add(Le)}this.main.startColor.evaluateInplace(De.color,r,we.nextFloat()),De.lifetime=this.main.startLifetime.evaluate(r,we.nextFloat()),De.birthTimeOffset=t;const l=this.textureSheetAnimation;l.enabled&&(De.startFrame=l.startFrame.evaluate(r,0)*l.getFramesCount(),l.animation===UnityEngine.ParticleSystemAnimationType.SingleRow&&(De.texSheetOffsetY=l.useRandomRow?we.nextInteger()%l.numTilesY:l.rowIndex)),this._cache.initializeNewParticle(De,n)}_updateParticles(e,t){const n=this._cache.aliveCount;if(0===n)return;this._cache.decomposedToObjects=!1,this.main.simulationSpace===UnityEngine.ParticleSystemSimulationSpace.Local?Be.copy(t).invert():Be.copy(i.i.IDENTITY),this._updateScaleFactor(),this._updateGravityDelta(e,Be,Ue);const r=this._cache.dt,s=this._cache.birthTime,a=this._cache.velocity,o=this._cache.animatedVelocity;let l=0,c=0,u=0;for(u=0;u<n;u++){const t=s[u];0!==t?(r[u]=t,s[u]=0):r[u]=e,l=3*u,o[l]=0,o[l+1]=0,o[l+2]=0}const h=this._cache.s,d=this._cache.startSize3D;if(this.sizeBySpeed.enabled||this.sizeOverLifetime.enabled||this._noise.enabled||this._textureSheetAnimation&&this._textureSheetAnimation._mode===UnityEngine.ParticleSystemAnimationMode.Sprites)for(u=0;u<n;u++)l=3*u,h[l]=d[l],h[l+1]=d[l+1],h[l+2]=d[l+2];const m=this._cache.angularVelocity;for((this.rotationOverLifetime.enabled||this.rotationBySpeed.enabled)&&m.fill(0),u=0;u<n;u++)l=3*u,a[l]+=Ue.x,a[l+1]+=Ue.y,a[l+2]+=Ue.z;const g=this._cache._totalVelocity,$=this._cache.color,p=this._cache.startColor;for(u=0;u<n;u++)c=4*u,$[c]=p[c],$[c+1]=p[c+1],$[c+2]=p[c+2],$[c+3]=p[c+3];for(let e=0;e<this._activeModules.length;e++){const t=this._activeModules[e],n=t.counterName;this.startModuleCounter(n),t.processInplace(this._cache),this.endModuleCounter(n)}for(u=0;u<n;u++)l=3*u,g[l]=a[l]+o[l],g[l+1]=a[l+1]+o[l+1],g[l+2]=a[l+2]+o[l+2];if(this.velocityOverLifetime.enabled){const e=this.velocityOverLifetime._speedModifier,t=this._cache.lifePart;let i=0,r=0;for(u=0;u<n;u++)r=t[u],i=e.evaluate(r,we.nextFloat()),l=3*u,g[l]*=i,g[l+1]*=i,g[l+2]*=i}const y=this._scaleFactor;for(u=0;u<n;u++)l=3*u,g[l]*=y.x,g[l+1]*=y.y,g[l+2]*=y.z;const f=this._cache.t;for(u=0;u<n;u++)l=3*u,f[l]+=g[l]*r[u],f[l+1]+=g[l+1]*r[u],f[l+2]+=g[l+2]*r[u];const _=this.renderer.renderMode,S=UnityEngine.Camera.main,b=new i.m,C=S?S.handle.entity.forward:new i.m(0,0,1);C.normalize();const E=new i.m,T=this._cache.r,v=this._cache.rotation3D,I=this._cache.startRotationAxis;for(u=0;u<n;u++){l=3*u,c=4*u,Re.x=v[l],Re.y=v[l+1],Re.z=v[l+2];const e=r[u];ke.x=m[l]*e,ke.y=m[l+1]*e,ke.z=m[l+2]*e,Re.add(ke),v[l]=Re.x,v[l+1]=Re.y,v[l+2]=Re.z,Fe.x=I[l],Fe.y=I[l+1],Fe.z=I[l+2],_===UnityEngine.ParticleSystemRenderMode.Stretch?(E.x=g[l],E.y=g[l+1],E.z=g[l+2],E.normalize(),b.cross(E,C),b.cross(b,E),Ge.setLookAt(C,E)):_===UnityEngine.ParticleSystemRenderMode.Billboard?this.renderer.alignment===UnityEngine.ParticleSystemRenderSpace.View?Ge.setFromEulerAngles_Unity(Re.x,Re.y,-Re.z):Ge.setFromEulerAngles_Unity(-Re.x,-Re.y,-Re.z):_===UnityEngine.ParticleSystemRenderMode.Mesh&&(this.rotationBySpeed.enabled&&this.rotationBySpeed.separateAxes||this.rotationOverLifetime.enabled&&this.rotationOverLifetime.separateAxes||this.main.startRotation3D||this.shape.alignToDirection?Ge.setFromEulerAngles_Unity(Re.x,Re.y,Re.z):Ge.setFromAxisAngle(Fe,Re.z)),T[c]=Ge.x,T[c+1]=Ge.y,T[c+2]=Ge.z,T[c+3]=Ge.w}const x=this._cache.elapsedTime,A=this._cache.lifePart,w=this._cache.lifetime;for(u=0;u<n;u++)x[u]+=r[u],A[u]=x[u]/w[u]}_updateGravityDelta(e,t,n){this.main.gravityModifier.evaluate(this.lifePart,0)}_updateScaleFactor(){this._scaleFactor.copy(i.m.ONE),this.main.scalingMode===UnityEngine.ParticleSystemScalingMode.Hierarchy?this._scaleFactor.copy(this.entity.getLossyScale()):this.main.scalingMode===UnityEngine.ParticleSystemScalingMode.Local&&this._scaleFactor.copy(this.entity.getLocalScale())}emit(e){u.d.instance.startSection(u.d.PARTICLES);const t=(0,i.o)(e,0,this.main.maxParticles-this._cache.aliveCount);if(t>0){const e=this.entity.getWorldTransform();for(let n=0;n<t;++n)this.createParticle(e,0)}u.d.instance.endSection(u.d.PARTICLES)}update(e,t){if(!this.isActive||this._paused)return;u.d.instance.recordParticleSystem(),u.d.instance.recordParticles(this._cache.aliveCount);let n=e;n*=this.main.simulationSpeed,this.main.useUnscaledTime||(n*=UnityEngine.Time.timeScale),this._delayTimer<this.main.startDelay.evaluate(0,0)?this._delayTimer+=n:(this._lifetime+=n,this._playTime+=n,this._lifetime>this.main.duration&&this.main.loop&&(this._lifetime-=this.main.duration,this._events.fire("ParticleSystemNewLoop")),this.lifetime>this.main.duration&&!this.main.loop&&(this._shouldEmit=!1),this.updateCurrentVelocity(e),this.cleanupOldParticles(e),this._shouldEmit&&this.emission&&this.emission.enabled&&(this.startModuleCounter(this.emission.counterName),this.emission.update(n,t),this.endModuleCounter(this.emission.counterName)),this._updateParticles(n,t),this.checkStopAction())}cleanupOldParticles(e){const t=this._cache.aliveCount,n=this._cache.elapsedTime,i=this._cache.lifetime;for(let r=t-1;r>=0;--r)n[r]+e>i[r]&&this._cache.release(r)}doOnChildren(e,t,n){if(e&&this.entity){const e=this.entity.allChildren();for(let i=0;i<e.length;i++){const r=e[i]._unityComponents.particlesystem[0];r&&t(r._particleSystem,n)}}}getParticles(e){if(!e)return null;this._cache.decompose();const t=Math.min(this._cache.aliveCount,e.length);for(let n=0;n<t;n++)e[n].Handle.copy(this._cache.get(n));return t}setParticles(e,t){if(!e)return;u.d.instance.startSection(u.d.PARTICLES),this._cache.decompose();const n=Math.min(this.main.maxParticles,t,e.length);for(let t=0;t<n;t++){const n=this._cache.get(t);n.copy(e[t].Handle),n.s=e[t].startSize3D}const r=this.entity.getWorldTransform();this.main.simulationSpace===UnityEngine.ParticleSystemSimulationSpace.Local?Be.copy(r).invert():Be.copy(i.i.IDENTITY),this._updateGravityDelta(0,Be,Ue),this._cache.recompose(),this._updateParticles(0,r),u.d.instance.endSection(u.d.PARTICLES)}checkStopAction(){if(!this.isActive)switch(this.main.stopAction){case UnityEngine.ParticleSystemStopAction.None:break;case UnityEngine.ParticleSystemStopAction.Disable:this.entity.enabled=!1;break;case UnityEngine.ParticleSystemStopAction.Destroy:new pc.DestroyEntityTask(this.entity,0).execute();break;case UnityEngine.ParticleSystemStopAction.Callback:for(let e=0;e<this.entity._unityComponents.monoBehaviour.length;e++)this.entity._unityComponents.monoBehaviour[e].onParticleSystemStopped();break;default:throw Error('Stop action "'+this.main.stopAction+'" not supported')}}get renderer(){return this._renderer||(this._renderer=this.entity._unityComponents.particleSystemRenderer[0]),this._renderer}set renderer(e){this._renderer=e}get isActive(){return this._shouldEmit||this._cache.aliveCount>0}get entity(){return this._entity}get lifePart(){return this._lifetime/this.main.duration}get lifetime(){return this._lifetime}set lifetime(e){this._lifetime=e}get particleCount(){return this._cache.aliveCount}get emittedParticlesCount(){return this._emittedCount}get main(){return this._main}set main(e){this._main=e}get emission(){return this._emission}set emission(e){this._emission=e}get shape(){return this._shape}set shape(e){this._shape=e}get velocityOverLifetime(){return this._velocityOverLifetime}set velocityOverLifetime(e){this._velocityOverLifetime=e}get colorOverLifetime(){return this._colorOverLifetime}set colorOverLifetime(e){this._colorOverLifetime=e}get colorBySpeed(){return this._colorBySpeed}set colorBySpeed(e){this._colorBySpeed=e}get sizeOverLifetime(){return this._sizeOverLifetime}set sizeOverLifetime(e){this._sizeOverLifetime=e}get sizeBySpeed(){return this._sizeBySpeed}set sizeBySpeed(e){this._sizeBySpeed=e}get rotationOverLifetime(){return this._rotationOverLifetime}set rotationOverLifetime(e){this._rotationOverLifetime=e}get rotationBySpeed(){return this._rotationBySpeed}set rotationBySpeed(e){this._rotationBySpeed=e}get textureSheetAnimation(){return this._textureSheetAnimation}set textureSheetAnimation(e){this._textureSheetAnimation=e}get time(){return this._playTime}get currentVelocity(){return this._currentVelocity}get isPaused(){return this._paused}get isPlaying(){return this.isActive&&!this._paused}get isStopped(){return!this._shouldEmit}get isEmitting(){return this._shouldEmit}get useAutoRandomSeed(){return this._useAutoRandomSeed}set useAutoRandomSeed(e){!this._useAutoRandomSeed&&e&&this._random.randomizeSeed(),this._useAutoRandomSeed=e}get randomSeed(){return this._randomSeed}set randomSeed(e){this._randomSeed=e,this.useAutoRandomSeed||this._random.setSeed(e)}get events(){return this._events}set events(e){this._events=e}get noise(){return this._noise}set noise(e){this._noise=e}get forceOverLifetime(){return this._forceOverLifetime}set forceOverLifetime(e){this._forceOverLifetime=e}get limitVelocityOverLifetime(){return this._limitVelocityOverLifetime}set limitVelocityOverLifetime(e){this._limitVelocityOverLifetime=e}get inheritVelocity(){return this._inheritVelocity}set inheritVelocity(e){this._inheritVelocity=e}startModuleCounter(e){e&&u.d.instance.startSubSection(e)}endModuleCounter(e){e&&u.d.instance.endSubSection(e)}},pc.Particle=p,pc.ParticleSystemSystem=ct,pc.ParticleSystemRenderer=class{constructor(){this._model=null,this._mesh=null,this._instancingVertexFormat=null,this._instancingData=null,this._worldRotationTransform=new i.i,this._worldTranslationTransform=new i.i,this._alignment=UnityEngine.ParticleSystemRenderSpace.World,this._renderMode=UnityEngine.ParticleSystemRenderMode.Billboard,this._lengthScale=1,this._velocityScale=1,this._sortMode=UnityEngine.ParticleSystemSortMode.None,pc.markParticleSystemModuleAsUsed()}_updateInstancingData(e,t){const n=this.model.meshInstances;if(0===n.length)return;const r=this._instancingData._buffer,s=new Float32Array(r.lock());Xe.set(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),Ye.set(-Number.MAX_SAFE_INTEGER,-Number.MAX_SAFE_INTEGER,-Number.MAX_SAFE_INTEGER);const a=this.renderMode===UnityEngine.ParticleSystemRenderMode.Stretch,o=!!e.textureSheetAnimation&&e.textureSheetAnimation.enabled,l=this._instancingVertexFormat.size/4,c=e.textureSheetAnimation,u=1/c.numTilesX,h=1/c.numTilesY;let d=0,m=0,g=0,$=0,p=0,y=0,f=0;const _=t.aliveCount;for(d=0;d<_;d++){const e=l*d;m=3*d,$=t.t[m],p=t.t[m+1],y=t.t[m+2];const n=t.s[m],i=t.s[m+1],r=t.s[m+2],a=Math.sqrt(n*n+i*i+r*r);Xe.x=Math.min(Xe.x,$-a),Xe.y=Math.min(Xe.y,p-a),Xe.z=Math.min(Xe.z,y-a),Ye.x=Math.max(Ye.x,$+a),Ye.y=Math.max(Ye.y,p+a),Ye.z=Math.max(Ye.z,y+a),s[e+0]=$,s[e+1]=p,s[e+2]=y}for(d=0;d<_;d++){const e=l*d;g=4*d,s[e+3]=t.r[g],s[e+4]=t.r[g+1],s[e+5]=t.r[g+2],s[e+6]=t.r[g+3]}if(a)for(d=0;d<_;d++){const e=l*d;m=3*d,$=t.velocity[m]+t.animatedVelocity[m],p=t.velocity[m+1]+t.animatedVelocity[m+1],y=t.velocity[m+2]+t.animatedVelocity[m+2],f=Math.sqrt($*$+p*p+y*y),s[e+7]=t.s[m],s[e+8]=t.s[m+1]*this.lengthScale+f*this.velocityScale,s[e+9]=t.s[m+2]}else for(d=0;d<_;d++){const e=l*d;m=3*d,s[e+7]=t.s[m],s[e+8]=t.s[m+1],s[e+9]=t.s[m+2]}for(d=0;d<_;d++){const e=l*d;g=4*d,s[e+10]=t.color[g],s[e+11]=t.color[g+1],s[e+12]=t.color[g+2],s[e+13]=t.color[g+3]}if(o)for(d=0;d<_;d++){const e=l*d;c.mode===UnityEngine.ParticleSystemAnimationMode.Grid?(s[e+14]=u,s[e+15]=h,s[e+16]=t.texSheetOffsetX[d],s[e+17]=c.numTilesY-t.texSheetOffsetY[d]-1):(s[e+14]=t.texSheetScaleX[d],s[e+15]=t.texSheetScaleY[d],s[e+16]=t.texSheetOffsetX[d],s[e+17]=t.texSheetOffsetY[d])}else for(d=0;d<_;d++){const e=l*d;s[e+14]=1,s[e+15]=1,s[e+16]=0,s[e+17]=0}for(let t=0;t<n.length;t++){const r=n[t];let s=null;switch(e.main.scalingMode){case UnityEngine.ParticleSystemScalingMode.Hierarchy:s=r.node.getLossyScale();break;case UnityEngine.ParticleSystemScalingMode.Local:s=r.node.getLocalScale();break;case UnityEngine.ParticleSystemScalingMode.Shape:s=i.m.ONE}if(o&&c.mode===UnityEngine.ParticleSystemAnimationMode.Sprites){const e=c.getAtlasTexture();if(null===e)break;this.model.setParameter("_MainTex",e.handle)}this.worldRotationTransform.setTRS(i.m.ZERO,r.node.getRotation(),i.m.ONE),this.worldTranslationTransform.setTRS(r.node.getPosition(),i.j.IDENTITY,i.m.ONE),r.setParameter("matrix_modelRotation",this.worldRotationTransform.data),r.setParameter("matrix_modelTranslation",this.worldTranslationTransform.data),r.setParameter("system_scale",[s.x,s.y,s.z]),r.setParameter("localToWorldMatrix",i.i.IDENTITY.data),this.renderMode===UnityEngine.ParticleSystemRenderMode.Stretch?r.setParameter("renderer_alignment",UnityEngine.ParticleSystemRenderSpace.World):e.shape.enabled&&e.shape.alignToDirection?r.setParameter("renderer_alignment",UnityEngine.ParticleSystemRenderSpace.Local):r.setParameter("renderer_alignment",this.alignment),r.setParameter("worldSimulationSpace",e.main.simulationSpace===UnityEngine.ParticleSystemSimulationSpace.World?1:0),r.parameters._TintColor||!r.material||r.material.parameters._TintColor||r.setParameter("_TintColor",[1,1,1,1]),r.worldAabbOverride||(r.worldAabbOverride=new i.b);const a=r.worldAabbOverride;a.setMinMax(Xe,Ye),e.main.simulationSpace!==UnityEngine.ParticleSystemSimulationSpace.World&&(this._worldTranslationTransform.setTRS(r.node.getPosition(),r.node.getRotation(),i.m.ONE),a.setFromTransformedAabb(a,this._worldTranslationTransform))}r.unlock()}changeRenderMode(){switch(this.renderMode){case UnityEngine.ParticleSystemRenderMode.Billboard:case UnityEngine.ParticleSystemRenderMode.Stretch:case UnityEngine.ParticleSystemRenderMode.HorizontalBillboard:case UnityEngine.ParticleSystemRenderMode.VerticalBillboard:this.model.mesh=this._prepareBillboardMesh();break;case UnityEngine.ParticleSystemRenderMode.Mesh:this.model.mesh=this._mesh?this._mesh:null;break;case UnityEngine.ParticleSystemRenderMode.None:this.model.mesh=null}}prepareInstances(){const e=this.model.meshInstances,t=u.a.getApplication();for(let n=0;n<e.length;n++){const i=e[n];i.instancingData=this._prepareInstancingData(),i.constAttributes.COLOR=[1,1,1,1],t.isUrp&&(i.constAttributes.NORMAL=[0,0,-1,1]),i._shaderDefs|=Ae.c.SHADERDEF_PARTICLES_INSTANCING}}updateRenderMode(){this.changeRenderMode(),this.updateMeshInstances()}updateMeshInstances(){this.model.update(),this.prepareInstances()}_prepareInstancingData(){if(!this._instancingData){const e=u.a.getApplication();this._instancingVertexFormat=new qe.z(e.graphicsDevice,rt),this._instancingData={_buffer:new qe.y(e.graphicsDevice,this._instancingVertexFormat,0,Ae.c.BUFFER_DYNAMIC,new Float32Array(0)),count:0,offset:0}}return this._instancingData}_prepareQuad(e){const t=u.a.getApplication(),n=new qe.g,i=new qe.z(t.graphicsDevice,it);return n.vertexBuffer=new qe.y(t.graphicsDevice,i,4,Ae.c.BUFFER_STATIC,e),n.indexBuffer[0]=new qe.c(t.graphicsDevice,Ae.c.INDEXFORMAT_UINT16,6,Ae.c.BUFFER_STATIC,nt),n.primitive[0].type=Ae.c.PRIMITIVE_TRIANGLES,n.primitive[0].base=0,n.primitive[0].count=6,n.primitive[0].indexed=!0,n.subMeshes=[n],n}_prepareBillboardMesh(){return null===Ke&&(Ke=this._prepareQuad(et)),null===We&&(We=this._prepareQuad(tt)),this.renderMode===UnityEngine.ParticleSystemRenderMode.Stretch?We:Ke}_resizeInstancingBuffer(e){this._instancingData&&(e>this._instancingData._buffer.numVertices&&this._instancingData._buffer.resize(e),this._instancingData.count=e)}_sortParticles(e,t){const n=this.sortMode;if(0===n)return;e.decompose();const i=e._particles;switch(Qe=this.model.entity.getPosition(),n){case UnityEngine.ParticleSystemSortMode.Distance:i.sort(this.sortByDistance);break;case UnityEngine.ParticleSystemSortMode.OldestInFront:i.sort(this.sortOldestInFront);break;case UnityEngine.ParticleSystemSortMode.YoungestInFront:i.sort(this.sortYoungestInFront);case UnityEngine.ParticleSystemSortMode.None:}for(let e=0;e<t;e++)i[e]._cacheIndex=e;e.recompose()}sortByDistance(e,t){if(!e.isAlive)return 1;if(!t.isAlive)return-1;const n=u.a.getApplication().getMainCamera().node.position;Je.copy(e.t).sub(n).add(Qe);const i=Je.lengthSq();return Je.copy(t.t).sub(n).add(Qe),i-Je.lengthSq()}sortOldestInFront(e,t){return e.isAlive?t.isAlive?e.elapsedTime-t.elapsedTime:-1:1}sortYoungestInFront(e,t){return e.isAlive?t.isAlive?t.elapsedTime-e.elapsedTime:-1:1}render(e,t){const n=e._cache;n.aliveCount>0&&this._sortParticles(n,n.aliveCount),this._resizeInstancingBuffer(n.aliveCount),this._updateInstancingData(e,n)}get mesh(){return this.model.mesh}set mesh(e){this._mesh=e,this.renderMode===UnityEngine.ParticleSystemRenderMode.Mesh&&(this.model.mesh=e,this.updateMeshInstances())}get alignment(){return this._alignment}set alignment(e){this._alignment=e}get renderMode(){return this._renderMode}set renderMode(e){this._renderMode=e,this.updateRenderMode()}get lengthScale(){return this._lengthScale}set lengthScale(e){this._lengthScale=e}get velocityScale(){return this._velocityScale}set velocityScale(e){this._velocityScale=e}get sortMode(){return this._sortMode}set sortMode(e){this._sortMode=e}get model(){return this._model}set model(e){this._model=e}get worldRotationTransform(){return this._worldRotationTransform}set worldRotationTransform(e){this._worldRotationTransform=e}get worldTranslationTransform(){return this._worldTranslationTransform}set worldTranslationTransform(e){this._worldTranslationTransform=e}},pc.ParticleSystemRendererSystem=st,pc.ParticleSystemRendererComponent=ot,pc.ParticleSystemComponent=lt,pc.ParticleSystemBurst=class{constructor(){this._timeToFire=0,this._repeatInterval=0,this._repeatCount=1/0,this._time=0,this._count=new w(null,null,null),this._cycleCount=0,this._enabled=!1,pc.markParticleSystemModuleAsUsed()}recalculateRepeatCount(){this._repeatCount=this.cycleCount>0?this.cycleCount:1/0}resetTimeToFire(){this._timeToFire=this._time}get time(){return this._time}set time(e){this._time=e}get count(){return this._count}set count(e){this._count=e}get maxCount(){return this._count.constantMax}set maxCount(e){this._count.constantMax=e}get minCount(){return this._count.constantMin}set minCount(e){this._count.constantMin=e}get cycleCount(){return this._cycleCount}set cycleCount(e){this._cycleCount=e}get repeatInterval(){return this._repeatInterval}set repeatInterval(e){this._repeatInterval=e}get shouldFire(){return this._repeatCount>0}get repeatCount(){return this._repeatCount}set repeatCount(e){this._repeatCount=e}get timeToFire(){return this._timeToFire}set timeToFire(e){this._timeToFire=e}},pc.MinMaxGradient=c,pc.MinMaxCurve=w,pc.markParticleSystemModuleAsUsed=()=>{}}},e=>{e.O(0,[1],(()=>e(e.s=54))),e.O()}]),function(){let e=!1;class t{constructor(){e||(e=!0,console.error("You have excluded Physics 2D from your build but your game is still using it. Consider including it back if you are experiencing any issues."))}}pc.Physics2DSystem=class extends pc.UnityComponentSystem{constructor(e){super(e),this.id="physics2D",this.performanceSamplerSection=pc.Counters.PHYSICS2D;const t=pc.ProjectSettings.instance.physics2DSettings;this.gravity=t.gravity.clone(),this.autoSyncTransforms=t.autoSyncTransforms,this.positionIterations=t.positionIterations,this.velocityIterations=t.velocityIterations,this.defaultMaterial=t.material}setIgnoreCollisionBetweenLayers(){}syncHierarchyRecursive(){}syncHierarchy(){}syncTransforms(){}},pc.Collider2DSystem=class extends pc.UnityComponentSystem{constructor(e){super(e),this.id="collider2D",this.performanceSamplerSection=pc.Counters.PHYSICS2D}},pc.Rigidbody2DSystem=class extends pc.UnityComponentSystem{constructor(e){super(e),this.id="rigidbody2D",this.performanceSamplerSection=pc.Counters.PHYSICS2D}},pc.Joint2DSystem=class extends pc.UnityComponentSystem{constructor(e){super(e),this.id="joint2D",this.performanceSamplerSection=pc.Counters.PHYSICS2D}},pc.Effector2DSystem=class extends pc.UnityComponentSystem{constructor(e){super(e),this.id="effector2D",this.performanceSamplerSection=pc.Counters.PHYSICS2D}},pc.Collider2DComponent=t,pc.CapsuleCollider2DComponent=t,pc.CircleCollider2DComponent=t,pc.BoxCollider2DComponent=t,pc.EdgeCollider2DComponent=t,pc.PolygonCollider2DComponent=t,pc.Rigidbody2DComponent=t,pc.Joint2DComponent=t,pc.AnchoredJoint2DComponent=t,pc.DistanceJoint2DComponent=t,pc.FixedJoint2DComponent=t,pc.FrictionJoint2DComponent=t,pc.HingeJoint2DComponent=t,pc.RelativeJoint2DComponent=t,pc.SliderJoint2DComponent=t,pc.SpringJoint2DComponent=t,pc.TargetJoint2DComponent=t,pc.WheelJoint2DComponent=t,pc.Effector2DComponent=t,pc.PlatformEffector2DComponent=t}(),Bridge.merge(new System.Globalization.CultureInfo("en-US",!0),{englishName:"English (United States)",nativeName:"English (United States)",numberFormat:Bridge.merge(new System.Globalization.NumberFormatInfo,{nanSymbol:"NaN",negativeSign:"-",positiveSign:"+",negativeInfinitySymbol:"-∞",positiveInfinitySymbol:"∞",percentSymbol:"%",percentGroupSizes:[3],percentDecimalDigits:2,percentDecimalSeparator:".",percentGroupSeparator:",",percentPositivePattern:0,percentNegativePattern:0,currencySymbol:"$",currencyGroupSizes:[3],currencyDecimalDigits:2,currencyDecimalSeparator:".",currencyGroupSeparator:",",currencyNegativePattern:0,currencyPositivePattern:0,numberGroupSizes:[3],numberDecimalDigits:2,numberDecimalSeparator:".",numberGroupSeparator:",",numberNegativePattern:1}),dateTimeFormat:Bridge.merge(new System.Globalization.DateTimeFormatInfo,{abbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],abbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],amDesignator:"AM",dateSeparator:"/",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],firstDayOfWeek:0,fullDateTimePattern:"dddd, MMMM d, yyyy h:mm:ss tt",longDatePattern:"dddd, MMMM d, yyyy",longTimePattern:"h:mm:ss tt",monthDayPattern:"MMMM d",monthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],pmDesignator:"PM",rfc1123:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"M/d/yyyy",shortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],shortTimePattern:"h:mm tt",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",sortableDateTimePattern1:"yyyy'-'MM'-'dd",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"MMMM yyyy",roundtripFormat:"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffzzz"}),TextInfo:Bridge.merge(new System.Globalization.TextInfo,{ANSICodePage:1252,CultureName:"en-US",EBCDICCodePage:37,IsRightToLeft:!1,LCID:1033,listSeparator:",",MacCodePage:1e4,OEMCodePage:437,IsReadOnly:!0})}),Bridge.merge(new System.Globalization.CultureInfo("pt-BR",!0),{englishName:"Portuguese (Brazil)",nativeName:"português (Brasil)",numberFormat:Bridge.merge(new System.Globalization.NumberFormatInfo,{nanSymbol:"NaN",negativeSign:"-",positiveSign:"+",negativeInfinitySymbol:"-∞",positiveInfinitySymbol:"∞",percentSymbol:"%",percentGroupSizes:[3],percentDecimalDigits:2,percentDecimalSeparator:",",percentGroupSeparator:".",percentPositivePattern:1,percentNegativePattern:1,currencySymbol:"R$",currencyGroupSizes:[3],currencyDecimalDigits:2,currencyDecimalSeparator:",",currencyGroupSeparator:".",currencyNegativePattern:1,currencyPositivePattern:0,numberGroupSizes:[3],numberDecimalDigits:2,numberDecimalSeparator:",",numberGroupSeparator:".",numberNegativePattern:1}),dateTimeFormat:Bridge.merge(new System.Globalization.DateTimeFormatInfo,{abbreviatedDayNames:["dom","seg","ter","qua","qui","sex","sáb"],abbreviatedMonthGenitiveNames:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez",""],abbreviatedMonthNames:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez",""],amDesignator:"",dateSeparator:"/",dayNames:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],firstDayOfWeek:0,fullDateTimePattern:"dddd, d' de 'MMMM' de 'yyyy HH:mm:ss",longDatePattern:"dddd, d' de 'MMMM' de 'yyyy",longTimePattern:"HH:mm:ss",monthDayPattern:"d 'de' MMMM",monthGenitiveNames:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],monthNames:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro",""],pmDesignator:"",rfc1123:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"dd/MM/yyyy",shortestDayNames:["D","S","T","Q","Q","S","S"],shortTimePattern:"HH:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",sortableDateTimePattern1:"yyyy'-'MM'-'dd",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"MMMM' de 'yyyy",roundtripFormat:"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffzzz"}),TextInfo:Bridge.merge(new System.Globalization.TextInfo,{ANSICodePage:1252,CultureName:"pt-BR",EBCDICCodePage:500,IsRightToLeft:!1,LCID:1046,listSeparator:";",MacCodePage:1e4,OEMCodePage:850,IsReadOnly:!0})}),Bridge.merge(new System.Globalization.CultureInfo("ru-RU",!0),{englishName:"Russian (Russia)",nativeName:"русский (Россия)",numberFormat:Bridge.merge(new System.Globalization.NumberFormatInfo,{nanSymbol:"не число",negativeSign:"-",positiveSign:"+",negativeInfinitySymbol:"-∞",positiveInfinitySymbol:"∞",percentSymbol:"%",percentGroupSizes:[3],percentDecimalDigits:2,percentDecimalSeparator:",",percentGroupSeparator:" ",percentPositivePattern:1,percentNegativePattern:1,currencySymbol:"₽",currencyGroupSizes:[3],currencyDecimalDigits:2,currencyDecimalSeparator:",",currencyGroupSeparator:" ",currencyNegativePattern:8,currencyPositivePattern:3,numberGroupSizes:[3],numberDecimalDigits:2,numberDecimalSeparator:",",numberGroupSeparator:" ",numberNegativePattern:1}),dateTimeFormat:Bridge.merge(new System.Globalization.DateTimeFormatInfo,{abbreviatedDayNames:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],abbreviatedMonthGenitiveNames:["янв","фев","мар","апр","мая","июн","июл","авг","сен","окт","ноя","дек",""],abbreviatedMonthNames:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек",""],amDesignator:"",dateSeparator:".",dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],firstDayOfWeek:1,fullDateTimePattern:"d MMMM yyyy 'г.' H:mm:ss",longDatePattern:"d MMMM yyyy 'г.'",longTimePattern:"H:mm:ss",monthDayPattern:"d MMMM",monthGenitiveNames:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря",""],monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь",""],pmDesignator:"",rfc1123:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",shortDatePattern:"dd.MM.yyyy",shortestDayNames:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],shortTimePattern:"H:mm",sortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",sortableDateTimePattern1:"yyyy'-'MM'-'dd",timeSeparator:":",universalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",yearMonthPattern:"MMMM yyyy",roundtripFormat:"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffzzz"}),TextInfo:Bridge.merge(new System.Globalization.TextInfo,{ANSICodePage:1251,CultureName:"ru-RU",EBCDICCodePage:20880,IsRightToLeft:!1,LCID:1049,listSeparator:";",MacCodePage:10007,OEMCodePage:866,IsReadOnly:!0})});var tmp461cb26b_tmp_UnityEngine_mapping=JSON.parse('{"Z$":{"n":"System","c":{"c$":{"n":"Reflection","c":{"b$":{"n":"Emit","c":{}}}},"d$":{"n":"Resources","c":{}},"f$":{"n":"Globalization","c":{"e$":{"n":"DateTimeFormatInfoScanner","c":{}}}},"h$":{"n":"Text","c":{"g$":{"n":"RegularExpressions","c":{}}}},"l$":{"n":"Diagnostics","c":{"i$":{"n":"Debug","c":{}},"j$":{"n":"Contracts","c":{}},"k$":{"n":"SymbolStore","c":{}}}},"C$":{"n":"Collections","c":{"w$":{"n":"Generic","c":{"m$":{"n":"SortedList$2","c":{}},"n$":{"n":"SortedSet$1","c":{}},"o$":{"n":"LinkedList$1","c":{}},"r$":{"n":"Dictionary$2","c":{"p$":{"n":"KeyCollection","c":{}},"q$":{"n":"ValueCollection","c":{}}}},"s$":{"n":"HashSet$1","c":{}},"t$":{"n":"List$1","c":{}},"u$":{"n":"Queue$1","c":{}},"v$":{"n":"Stack$1","c":{}}}},"x$":{"n":"SortedList","c":{}},"z$":{"n":"ObjectModel","c":{"y$":{"n":"ReadOnlyDictionary$2","c":{}}}},"A$":{"n":"BitArray","c":{}},"B$":{"n":"Hashtable","c":{}}}},"E$":{"n":"Threading","c":{"D$":{"n":"Tasks","c":{}}}},"F$":{"n":"ComponentModel","c":{}},"H$":{"n":"Net","c":{"G$":{"n":"WebSockets","c":{}}}},"I$":{"n":"Linq","c":{}},"N$":{"n":"Runtime","c":{"J$":{"n":"Serialization","c":{}},"L$":{"n":"CompilerServices","c":{"K$":{"n":"FormattableStringFactory","c":{}}}},"M$":{"n":"InteropServices","c":{}}}},"R$":{"n":"Security","c":{"O$":{"n":"AccessControl","c":{}},"P$":{"n":"Cryptography","c":{}},"Q$":{"n":"Permissions","c":{}}}},"IO":{"n":"IO","c":{"S$":{"n":"Stream","c":{}},"T$":{"n":"StreamReader","c":{}},"U$":{"n":"TextReader","c":{}},"V$":{"n":"TextWriter","c":{}}}},"W$":{"n":"Version","c":{}},"Y$":{"n":"Xml","c":{"X$":{"n":"Linq","c":{}}}}}},"Bridge":{"n":"Bridge","c":{"aa$":{"n":"Utils","c":{}},"ba$":{"n":"Collections","c":{}}}},"ca$":{"n":"AppsFlyerSDK","c":{"Pf$":{"n":"DeepLinkError","c":{}},"Qf$":{"n":"DeepLinkStatus","c":{}},"Rf$":{"n":"EmailCryptType","c":{}}}},"da$":{"n":"AudienceNetwork","c":{"Sf$":{"n":"AdPosition","c":{}},"Tf$":{"n":"AdSize","c":{}}}},"Lb$":{"n":"UnityEngine","c":{"ea$":{"n":"Advertisements","c":{"Uh$":{"n":"BannerPosition","c":{}},"Vh$":{"n":"ShowResult","c":{}},"Wh$":{"n":"UnityAdsCompletionState","c":{}},"Xh$":{"n":"UnityAdsInitializationError","c":{}},"Yh$":{"n":"UnityAdsLoadError","c":{}},"Zh$":{"n":"UnityAdsShowCompletionState","c":{}},"ai$":{"n":"UnityAdsShowError","c":{}}}},"AI":{"n":"AI","c":{"bi$":{"n":"NavMeshBuildDebugFlags","c":{}},"ci$":{"n":"NavMeshBuildSourceShape","c":{}},"di$":{"n":"NavMeshCollectGeometry","c":{}},"ei$":{"n":"NavMeshObstacleShape","c":{}},"fi$":{"n":"NavMeshPathStatus","c":{}},"gi$":{"n":"ObstacleAvoidanceType","c":{}},"hi$":{"n":"OffMeshLinkType","c":{}},"sB$":{"n":"NavMeshAgent","c":{}}}},"fa$":{"n":"Analytics","c":{"ii$":{"n":"AnalyticsEventPriority","c":{}},"ji$":{"n":"AnalyticsResult","c":{}},"ki$":{"n":"AnalyticsSessionState","c":{}},"li$":{"n":"Gender","c":{}},"GC$":{"n":"Analytics","c":{}}}},"ga$":{"n":"Android","c":{"mi$":{"n":"AndroidAssetPackError","c":{}},"ni$":{"n":"AndroidAssetPackStatus","c":{}},"oi$":{"n":"AndroidHardwareType","c":{}}}},"ha$":{"n":"Animations","c":{"ui$":{"n":"AnimatorBindingsVersion","c":{}},"vi$":{"n":"Axis","c":{}},"wi$":{"n":"BindType","c":{}},"xi$":{"n":"CustomStreamPropertyType","c":{}},"yi$":{"n":"JobMethodIndex","c":{}}}},"ia$":{"n":"AnimationState","c":{"NH$":{"n":"FadeType","c":{}}}},"ja$":{"n":"Animator","c":{"OH$":{"n":"MotionSet","c":{}},"PH$":{"n":"ParameterState","c":{},"sm":[],"sp":[],"m":[],"p":["a$","parameters","b$","triggers"]}},"sm":[],"sp":["Xgb$","_hashToStringContainer","Ygb$","_stringToHashContainer"],"m":["Nfb$","UpdateAnimatorController"],"p":["ogb$","_speed","pgb$","applyRootMotion","qgb$","_avatar","rgb$","hasTransformHierarchy","sgb$","m_AnimationController","tgb$","stateMachines","ugb$","animatorRestarted","vgb$","parameterState","wgb$","updateMode","xgb$","isPlaying","ygb$","motionSet","zgb$","humanBones","Agb$","isHuman","Bgb$","hasRootMotion","Cgb$","avatar","Dgb$","speed","Egb$","animatorController","Fgb$","angularVelocity","Ggb$","bodyPosition","Hgb$","bodyRotation","Igb$","deltaPosition","Jgb$","deltaRotation","Kgb$","gravityWeight","Lgb$","pivotPosition","Mgb$","pivotWeight","Ngb$","targetPosition","Ogb$","targetRotation","Pgb$","velocity","Qgb$","layerCount","Rgb$","isInitialized","Sgb$","runtimeAnimatorController","Tgb$","hasBoundPlayables"]},"ka$":{"n":"Animators","c":{"SH$":{"n":"StateMachine","c":{},"sm":[],"sp":[],"m":[],"p":["i$","layer","j$","LayerIndex","k$","animator","l$","controller","m$","state","n$","nextState","o$","stateMotion","p$","nextStateMotion","q$","transition","r$","animationSampler","s$","OnStateChanged"]}}},"la$":{"n":"Apple","c":{"Ei$":{"n":"FrameCaptureDestination","c":{}}}},"ma$":{"n":"Assertions","c":{"XH$":{"n":"Assert","c":{}}}},"na$":{"n":"Audio","c":{"Li$":{"n":"AudioMixerUpdateMode","c":{}},"DC$":{"n":"AudioMixer","c":{}},"eD$":{"n":"AudioMixerGroup","c":{}},"fD$":{"n":"AudioMixerSnapshot","c":{}}}},"oa$":{"n":"Bindings","c":{"aj$":{"n":"CodegenOptions","c":{}},"bj$":{"n":"PreventExecutionSeverity","c":{}},"cj$":{"n":"StaticAccessorType","c":{}},"dj$":{"n":"TargetType","c":{}}}},"pa$":{"n":"Camera","c":{"sI$":{"n":"GateFitMode","c":{}},"tI$":{"n":"GateFitParameters","c":{}}},"sm":["Mkb$","TriggerOnPreRender","Nkb$","TriggerOnPostRender","Okb$","TriggerOnPreCull"],"sp":["Pkb$","OpenGLCorrection","KKa$","current","Qkb$","allCameras"],"m":["Rjb$","WorldToScreenPoint","Sjb$","ScreenToWorldPoint","Vjb$","ScreenPointToRay","Xjb$","ScreenToViewportPoint"],"p":["fkb$","m_RenderTexture","gkb$","_worldToCameraMatrix","hkb$","_cameraToWorldMatrix","ikb$","useOcclusionCulling","jkb$","allowMSAA","kkb$","usePhysicalProperties","lkb$","focalLength","mkb$","sensorSize","nkb$","lensShift","okb$","gateFit","pkb$","renderingPath","qkb$","actualRenderingPath","rkb$","depthTextureMode","skb$","clearFlags","tkb$","fieldOfView","ukb$","nearClipPlane","vkb$","farClipPlane","wkb$","layerCullDistances","xkb$","pixelWidth","ykb$","pixelHeight","zkb$","_aspect","Akb$","aspect","Bkb$","orthographicSize","Ckb$","orthographic","Dkb$","cullingMask","Ekb$","projectionMatrix","Fkb$","targetTexture","Gkb$","activeTexture","Hkb$","depth","Ikb$","backgroundColor","Jkb$","pixelRect","Kkb$","cameraToWorldMatrix","Lkb$","worldToCameraMatrix","Yeb$","targetDisplay"]},"qa$":{"n":"CompositeCollider2D","c":{"xI$":{"n":"GenerationType","c":{}},"yI$":{"n":"GeometryType","c":{}}}},"ra$":{"n":"Debugger","c":{"HI$":{"n":"Console","c":{}},"II$":{"n":"CrashDetector","c":{}}}},"sa$":{"n":"Diagnostics","c":{"Kj$":{"n":"ForcedCrashCategory","c":{}}}},"ta$":{"n":"Events","c":{"LI$":{"n":"PersistentCall","c":{},"sm":[],"sp":[],"m":["a$","Invoke"],"p":["b$","m_Target","c$","m_MethodName","d$","m_Mode","e$","m_CallState","f$","m_Arguments","g$","callback","h$","mode","i$","target","j$","methodName"]},"MI$":{"n":"PersistentCallGroup","c":{},"sm":[],"sp":[],"m":[],"p":["b$","m_Calls","c$","Count"]},"Sj$":{"n":"PersistentListenerMode","c":{},"sm":[],"sp":["EF$","EventDefined","FF$","Void","Kg$","Float","fl$","Bool"],"m":[],"p":[]},"NI$":{"n":"UnityEventBase","c":{},"sm":[],"sp":[],"m":["d$","UnsafeAddListener"],"p":["g$","m_PersistentCalls","h$","m_TypeName"]},"Tj$":{"n":"UnityEventCallState","c":{},"sm":[],"sp":["GF$","EditorAndRuntime","HF$","RuntimeOnly"],"m":[],"p":[]},"OI$":{"n":"UnityEvent","c":{},"sm":[],"sp":[],"m":["i$","Invoke","k$","AddListener"],"p":["m$","actions"]},"PI$":{"n":"UnityEvent$1","c":{},"sm":[],"sp":[],"m":["i$","Invoke","k$","AddListener"],"p":[]},"QI$":{"n":"UnityEvent$2","c":{},"sm":[],"sp":[],"m":[],"p":[]},"RI$":{"n":"UnityEvent$3","c":{},"sm":[],"sp":[],"m":[],"p":[]},"SI$":{"n":"UnityEvent$4","c":{},"sm":[],"sp":[],"m":[],"p":[]}}},"ua$":{"n":"EventSystems","c":{"Uj$":{"n":"EventHandle","c":{}}}},"ya$":{"n":"Experimental","c":{"AI":{"n":"AI","c":{"Wj$":{"n":"NavMeshPolyTypes","c":{}},"Xj$":{"n":"PathQueryStatus","c":{}}}},"va$":{"n":"Animations","c":{"Yj$":{"n":"AnimationStreamSource","c":{}}}},"wa$":{"n":"GlobalIllumination","c":{"Zj$":{"n":"AngularFalloffType","c":{}},"ak$":{"n":"FalloffType","c":{}},"bk$":{"n":"LightMode","c":{}},"ck$":{"n":"LightType","c":{}}}},"xa$":{"n":"Rendering","c":{"dk$":{"n":"DefaultFormat","c":{}},"ek$":{"n":"FormatUsage","c":{}},"fk$":{"n":"GraphicsFormat","c":{}},"gk$":{"n":"GraphicsJobsSyncPoint","c":{}},"hk$":{"n":"RayTracingMode","c":{}},"ik$":{"n":"RayTracingSubMeshFlags","c":{}},"jk$":{"n":"TextureCreationFlags","c":{}},"kk$":{"n":"WaitForPresentSyncPoint","c":{}}}},"XR":{"n":"XR","c":{"lk$":{"n":"DeleteMe","c":{}}}}}},"GUI":{"n":"GUI","c":{"XI$":{"n":"Scope","c":{}},"cJ$":{"n":"ToolbarButtonSize","c":{}}}},"za$":{"n":"GUILayout","c":{"dJ$":{"n":"LayoutedWindow","c":{}},"YI$":{"n":"AreaScope","c":{}},"ZI$":{"n":"HorizontalScope","c":{}},"aJ$":{"n":"ScrollViewScope","c":{}},"bJ$":{"n":"VerticalScope","c":{}}}},"Ba$":{"n":"Internal","c":{"Aa$":{"n":"Physics","c":{"hJ$":{"n":"Transform","c":{}}}}}},"IO":{"n":"IO","c":{"Kk$":{"n":"ThreadIORestrictionMode","c":{}}}},"iOS":{"n":"iOS","c":{"Lk$":{"n":"ActivityIndicatorStyle","c":{}},"Mk$":{"n":"CalendarIdentifier","c":{}},"Nk$":{"n":"CalendarUnit","c":{}},"Ok$":{"n":"DeviceGeneration","c":{}},"Pk$":{"n":"NotificationType","c":{}},"Qk$":{"n":"SystemGestureDeferMode","c":{}}}},"Ca$":{"n":"LayerMask","c":{"rJ$":{"n":"CullingLayer","c":{},"sm":[],"sp":[],"m":[],"p":[]}},"sm":["e$","FromIntegerValue","j$","op_Implicit$1"],"sp":["o$","layers"],"m":[],"p":["c$","m_Mask","d$","value"]},"Da$":{"n":"LineRenderer","c":{"vJ$":{"n":"Parameters","c":{}}}},"Ga$":{"n":"Networking","c":{"Ea$":{"n":"PlayerConnection","c":{"Hl$":{"n":"ConnectionTarget","c":{}}}},"Fa$":{"n":"Types","c":{"Kl$":{"n":"HostPriority","c":{}},"Ll$":{"n":"NetworkAccessLevel","c":{}},"Ml$":{"n":"NodeID","c":{}}}},"xJ$":{"n":"Caching","c":{}},"El$":{"n":"ConnectionAcksType","c":{}},"yJ$":{"n":"DownloadHandler","c":{}},"Fl$":{"n":"NetworkError","c":{}},"Gl$":{"n":"NetworkEventType","c":{}},"Il$":{"n":"QosType","c":{}},"Jl$":{"n":"ReactorModel","c":{}},"DJ$":{"n":"UnityWebRequest","c":{}},"EJ$":{"n":"UnityWebRequestAssetBundle","c":{}},"FJ$":{"n":"UploadHandler","c":{}},"zJ$":{"n":"DownloadHandlerAssetBundle","c":{}},"AJ$":{"n":"DownloadHandlerBuffer","c":{}},"BJ$":{"n":"DownloadHandlerScript","c":{}},"CJ$":{"n":"DownloadHandlerTexture","c":{}},"GJ$":{"n":"UploadHandlerRaw","c":{}},"cI$":{"n":"UnityWebRequestAsyncOperation","c":{}}}},"Ha$":{"n":"NVIDIA","c":{"Sl$":{"n":"DLSSFeatureFlags","c":{}},"Tl$":{"n":"DLSSQuality","c":{}},"Ul$":{"n":"GraphicsDeviceFeature","c":{}},"Vl$":{"n":"PluginEvent","c":{}}}},"Ia$":{"n":"ParticleSystem","c":{"HJ$":{"n":"Particle","c":{}}}},"Ka$":{"n":"Playables","c":{"Ja$":{"n":"FrameData","c":{"MJ$":{"n":"EvaluationType","c":{}}}},"Pm$":{"n":"DataStreamType","c":{}},"Qm$":{"n":"DirectorUpdateMode","c":{}},"Rm$":{"n":"DirectorWrapMode","c":{}},"NJ$":{"n":"PlayableExtensions","c":{}},"OJ$":{"n":"PlayableGraph","c":{}},"PJ$":{"n":"PlayableHandle","c":{}},"QJ$":{"n":"PlayableOutput","c":{},"sm":[],"sp":[],"m":["tGb$","System$IEquatable$1$UnityEngine$Playables$PlayableOutput$equalsT"],"p":[]},"Sm$":{"n":"PlayableTraversalMode","c":{}},"Tm$":{"n":"PlayState","c":{}},"mL$":{"n":"Playable","c":{},"sm":[],"sp":[],"m":["a$","UnityEngine$Playables$IPlayable$GetHandle","RGb$","System$IEquatable$1$UnityEngine$Playables$Playable$equalsT"],"p":[]},"nL$":{"n":"PlayableBehaviour","c":{}},"oL$":{"n":"ScriptPlayable$1","c":{},"sm":[],"sp":[],"m":["a$","UnityEngine$Playables$IPlayable$GetHandle"],"p":[]},"iD$":{"n":"PlayableAsset","c":{}},"JB$":{"n":"PlayableDirector","c":{}},"je$":{"n":"IPlayable","c":{},"sm":[],"sp":[],"m":["a$","UnityEngine$Playables$IPlayable$GetHandle","b$","GetHandle"],"p":[]},"ke$":{"n":"IPlayableBehaviour","c":{}}}},"La$":{"n":"PlayerPrefs","c":{"RJ$":{"n":"IProvider","c":{},"sm":[],"sp":[],"m":[],"p":[]},"TJ$":{"n":"SessionStorageWrapper","c":{},"sm":[],"sp":[],"m":[],"p":["e$","isSessionStorageAvailable"]},"SJ$":{"n":"SessionStorageProvider","c":{},"sm":[],"sp":[],"m":["g$","UnityEngine$PlayerPrefs$IProvider$Get","h$","UnityEngine$PlayerPrefs$IProvider$Set","i$","UnityEngine$PlayerPrefs$IProvider$Remove","j$","UnityEngine$PlayerPrefs$IProvider$Clear","k$","UnityEngine$PlayerPrefs$IProvider$Save","l$","UnityEngine$PlayerPrefs$IProvider$Has"],"p":["m$","storage","n$","sessionStorage"]}},"sm":["a$","HasKey","b$","DeleteKey","c$","GetString","d$","SetString","e$","GetInt","f$","SetInt","g$","GetFloat","h$","SetFloat","i$","DeleteAll","j$","Save"],"sp":["k$","provider"],"m":[],"p":[]},"Ma$":{"n":"PolygonCollider2D","c":{"UJ$":{"n":"Points","c":{}}}},"Pa$":{"n":"Profiling","c":{"Oa$":{"n":"Memory","c":{"Na$":{"n":"Experimental","c":{"cn$":{"n":"CaptureFlags","c":{}}}}}},"VJ$":{"n":"Profiler","c":{}},"dn$":{"n":"ProfilerArea","c":{}}}},"Ta$":{"n":"Purchasing","c":{"Qa$":{"n":"Models","c":{"pn$":{"n":"GoogleBillingResponseCode","c":{}},"qn$":{"n":"GoogleRetrieveProductsFailureReason","c":{}}}},"Ra$":{"n":"Security","c":{"wn$":{"n":"GooglePurchaseState","c":{}}}},"Sa$":{"n":"Telemetry","c":{"zn$":{"n":"TelemetryMetricTypes","c":{}}}},"en$":{"n":"AndroidStore","c":{}},"fn$":{"n":"AndroidStoreMeta","c":{}},"gn$":{"n":"AppleStoreProductType","c":{}},"hn$":{"n":"AppleStorePromotionVisibility","c":{}},"in$":{"n":"AppStore","c":{}},"jn$":{"n":"AppStoreMeta","c":{}},"kn$":{"n":"CodelessButtonType","c":{}},"ln$":{"n":"FakeStoreUIMode","c":{}},"mn$":{"n":"GoogleBillingConnectionState","c":{}},"nn$":{"n":"GooglePlayProrationMode","c":{}},"on$":{"n":"InitializationFailureReason","c":{}},"rn$":{"n":"PayoutType","c":{}},"sn$":{"n":"ProductType","c":{}},"tn$":{"n":"PurchaseFailureReason","c":{}},"un$":{"n":"PurchaseProcessingResult","c":{}},"vn$":{"n":"Result","c":{}},"xn$":{"n":"StoreSpecificPurchaseErrorCode","c":{}},"yn$":{"n":"SubscriptionPeriodUnit","c":{}},"An$":{"n":"TranslationLocale","c":{}}}},"Ua$":{"n":"RectTransform","c":{"eK$":{"n":"Axis","c":{}},"fK$":{"n":"Edge","c":{},"sm":[],"sp":["a$","Left","b$","Right","c$","Top","d$","Bottom"],"m":[],"p":[]}},"sm":[],"sp":[],"m":["Ltb$","SetSizeWithCurrentAnchors","Mtb$","GetParentSize","Ntb$","GetWorldCorners","Otb$","GetLocalCorners","Ptb$","SetInsetAndSizeFromParentEdge"],"p":["Zw$","Element","Rtb$","anchorMax","Stb$","anchorMin","Ttb$","offsetMin","Utb$","offsetMax","gpb$","pivot","Vtb$","anchoredPosition","Wtb$","sizeDelta","Xtb$","cachedRect","Ytb$","anchoredPosition3D"]},"ab$":{"n":"Rendering","c":{"Wa$":{"n":"Lines","c":{"Va$":{"n":"LineHelper","c":{"kK$":{"n":"LineCache","c":{}}}},"lK$":{"n":"LineMesh","c":{}},"mK$":{"n":"LineNormals","c":{}},"nK$":{"n":"LinePoints","c":{}},"oK$":{"n":"LineProperties","c":{}}}},"Xa$":{"n":"RendererUtils","c":{"zo$":{"n":"RendererListStatus","c":{}}}},"Ya$":{"n":"Universal","c":{"Vo$":{"n":"CameraRenderType","c":{}},"vC$":{"n":"UniversalAdditionalCameraData","c":{}}}},"Za$":{"n":"VirtualTexturing","c":{"ap$":{"n":"FilterMode","c":{}}}},"Gn$":{"n":"AmbientMode","c":{},"sm":[],"sp":["cD$","Skybox","Hba$","Trilight","ki$","Custom"],"m":[],"p":[]},"Hn$":{"n":"BlendMode","c":{}},"In$":{"n":"BlendOp","c":{},"sm":[],"sp":["Rba$","Subtract","Sba$","ReverseSubtract","Tba$","LogicalClear","Uba$","LogicalSet","Vba$","LogicalCopy","Wba$","LogicalCopyInverted","Xba$","LogicalNoop","Yba$","LogicalInvert","Zba$","LogicalAnd","aca$","LogicalNand","bca$","LogicalOr","cca$","LogicalNor","dca$","LogicalXor","eca$","LogicalEquivalence","fca$","LogicalAndReverse","gca$","LogicalAndInverted","hca$","LogicalOrReverse","ica$","LogicalOrInverted","hY$","Multiply","jca$","Screen","kca$","Overlay","lca$","Darken","mca$","Lighten","nca$","ColorDodge","oca$","ColorBurn","pca$","HardLight","qca$","SoftLight","rca$","Difference","sca$","Exclusion","tca$","HSLHue","uca$","HSLSaturation","vca$","HSLColor","wca$","HSLLuminosity"],"m":[],"p":[]},"Jn$":{"n":"BuiltinRenderTextureType","c":{}},"Kn$":{"n":"BuiltinShaderDefine","c":{}},"Ln$":{"n":"BuiltinShaderMode","c":{}},"Mn$":{"n":"BuiltinShaderType","c":{}},"Nn$":{"n":"CameraEvent","c":{}},"On$":{"n":"CameraHDRMode","c":{}},"Pn$":{"n":"CameraLateLatchMatrixType","c":{}},"Qn$":{"n":"ColorWriteMask","c":{},"sm":[],"sp":["SW$","Alpha","RW$","Blue","QW$","Green"],"m":[],"p":["Ia$","$flags"]},"Rn$":{"n":"CommandBufferExecutionFlags","c":{}},"Sn$":{"n":"CompareFunction","c":{},"sm":[],"sp":["qq$","Disabled","jea$","Never","tx$","Less","kea$","Equal","lea$","LessEqual","sx$","Greater","vx$","NotEqual","mea$","GreaterEqual","nea$","Always"],"m":[],"p":[]},"Tn$":{"n":"ComputeQueueType","c":{}},"Un$":{"n":"CopyTextureSupport","c":{}},"Vn$":{"n":"CullingOptions","c":{}},"Wn$":{"n":"CullMode","c":{}},"Xn$":{"n":"DefaultReflectionMode","c":{},"sm":[],"sp":["cD$","Skybox","ki$","Custom"],"m":[],"p":[]},"Yn$":{"n":"DistanceMetric","c":{}},"Zn$":{"n":"DrawRendererFlags","c":{}},"ao$":{"n":"FastMemoryFlags","c":{}},"bo$":{"n":"FormatSwizzle","c":{}},"co$":{"n":"GizmoSubset","c":{}},"do$":{"n":"GraphicsDeviceType","c":{}},"eo$":{"n":"GraphicsFenceType","c":{}},"jK$":{"n":"GraphicsSettings","c":{}},"fo$":{"n":"GraphicsTier","c":{}},"go$":{"n":"IndexFormat","c":{}},"ho$":{"n":"LightEvent","c":{}},"io$":{"n":"LightProbeUsage","c":{},"sm":[],"sp":["xfa$","BlendProbes","yfa$","UseProxyVolume","zfa$","CustomProvided"],"m":[],"p":[]},"jo$":{"n":"MeshUpdateFlags","c":{}},"ko$":{"n":"OpaqueSortMode","c":{}},"lo$":{"n":"OpenGLESVersion","c":{}},"mo$":{"n":"PassType","c":{}},"no$":{"n":"PerObjectData","c":{}},"oo$":{"n":"RealtimeGICPUUsage","c":{}},"po$":{"n":"ReflectionCubemapCompression","c":{}},"qo$":{"n":"ReflectionProbeClearFlags","c":{}},"ro$":{"n":"ReflectionProbeMode","c":{}},"so$":{"n":"ReflectionProbeRefreshMode","c":{}},"to$":{"n":"ReflectionProbeSortingCriteria","c":{}},"uo$":{"n":"ReflectionProbeTimeSlicingMode","c":{}},"vo$":{"n":"ReflectionProbeType","c":{}},"wo$":{"n":"ReflectionProbeUsage","c":{},"sm":[],"sp":["xfa$","BlendProbes","nga$","BlendProbesAndSkybox","yba$","Simple"],"m":[],"p":[]},"xo$":{"n":"RenderBufferLoadAction","c":{}},"yo$":{"n":"RenderBufferStoreAction","c":{}},"Ao$":{"n":"RenderingThreadingMode","c":{}},"Bo$":{"n":"RenderQueue","c":{}},"Co$":{"n":"RenderStateMask","c":{}},"Do$":{"n":"RenderTargetFlags","c":{}},"Eo$":{"n":"RenderTextureSubElement","c":{}},"Fo$":{"n":"RTClearFlags","c":{}},"Go$":{"n":"ShaderConstantType","c":{}},"Ho$":{"n":"ShaderHardwareTier","c":{}},"Io$":{"n":"ShaderKeywordType","c":{}},"Jo$":{"n":"ShaderParamType","c":{}},"Ko$":{"n":"ShaderPropertyFlags","c":{}},"Lo$":{"n":"ShaderPropertyType","c":{}},"Mo$":{"n":"ShadowCastingMode","c":{},"sm":[],"sp":["Yga$","TwoSided","Zga$","ShadowsOnly"],"m":[],"p":[]},"No$":{"n":"ShadowMapPass","c":{}},"Oo$":{"n":"ShadowSamplingMode","c":{}},"Po$":{"n":"SinglePassStereoMode","c":{}},"Qo$":{"n":"SortingCriteria","c":{}},"Ro$":{"n":"StencilOp","c":{},"sm":[],"sp":["Aha$","Replace","Bha$","IncrementSaturate","Cha$","DecrementSaturate","Dha$","Invert","Eha$","IncrementWrap","Fha$","DecrementWrap"],"m":[],"p":[]},"So$":{"n":"SynchronisationStage","c":{}},"To$":{"n":"SynchronisationStageFlags","c":{}},"Uo$":{"n":"TextureDimension","c":{}},"Wo$":{"n":"UVChannelFlags","c":{}},"Xo$":{"n":"VertexAttribute","c":{}},"Yo$":{"n":"VertexAttributeFormat","c":{}},"Zo$":{"n":"VideoShadersIncludeMode","c":{}},"bp$":{"n":"VisibleLightFlags","c":{}},"XC$":{"n":"CommandBuffer","c":{}},"jD$":{"n":"RenderPipelineAsset","c":{}},"YC$":{"n":"RenderTargetIdentifier","c":{},"sm":[],"sp":[],"m":["YCb$","System$IEquatable$1$UnityEngine$Rendering$RenderTargetIdentifier$equalsT"],"p":[]},"pC$":{"n":"SortingGroup","c":{}}}},"bb$":{"n":"Resources","c":{"gv$":{"n":"PrefabNotFoundException","c":{}}},"sm":["a$","Load$1","b$","Load","c$","Load$2","d$","UpdateUnityObject","e$","LoadObjectFromResources","r$","NormalizeResourcePath"],"sp":["s$","NONE_RESOURCES_WERE_EXPORTED","t$","ITEM_MISSING_IN_RESOURCES","u$","componentToPrefabIds","v$","files"],"m":[],"p":[]},"cb$":{"n":"Scripting","c":{"rx$":{"n":"PreserveAttribute","c":{},"sm":[],"sp":[],"m":[],"p":[]},"uK$":{"n":"CachedAssetBundle","c":{}}}},"db$":{"n":"SceneManagement","c":{"up$":{"n":"LoadSceneMode","c":{},"sm":[],"sp":["Wa$","Single","xx$","Additive","Rja$","Instant"],"m":[],"p":[]},"vp$":{"n":"LocalPhysicsMode","c":{}},"sK$":{"n":"SceneManager","c":{},"sm":["e$","GetSceneTemplateByNameInternal","h$","ProcessAsync","o$","LoadSceneAsync$3","q$","LoadSceneAsyncInternal","B$","SetActiveSceneInternal","F$","DontDestroyOnLoad"],"sp":["G$","dontDestroyOnLoadScene","H$","currentLightProbeProvider","I$","invalidScene","J$","currentScene","K$","loadedScenes","L$","noAsyncThisProcessing","M$","asyncOperations","N$","scenes","O$","sceneCountInBuildSettings","P$","sceneCount"],"m":[],"p":[]},"wp$":{"n":"UnloadSceneOptions","c":{}},"eI$":{"n":"SceneAsyncOperation","c":{},"sm":[],"sp":[],"m":[],"p":["jFb$","sceneInstance","kFb$","loadMode","lFb$","unload"]}}},"eb$":{"n":"Search","c":{"yp$":{"n":"SearchViewFlags","c":{}}}},"fb$":{"n":"Serialization","c":{"tx$":{"n":"FormerlySerializedAsAttribute","c":{}},"vK$":{"n":"UnitySurrogateSelector","c":{}}}},"gb$":{"n":"SocialPlatforms","c":{"Jp$":{"n":"TimeScope","c":{}},"Kp$":{"n":"UserScope","c":{}},"Lp$":{"n":"UserState","c":{}},"le$":{"n":"IAchievement","c":{}},"me$":{"n":"IAchievementDescription","c":{}},"ne$":{"n":"ILeaderboard","c":{}},"oe$":{"n":"ILocalUser","c":{}},"pe$":{"n":"IScore","c":{}},"qe$":{"n":"ISocialPlatform","c":{}},"re$":{"n":"IUserProfile","c":{}}}},"hb$":{"n":"Sprites","c":{"AK$":{"n":"DataUtility","c":{}}}},"ib$":{"n":"TerrainTools","c":{"cq$":{"n":"TerrainBuiltinPaintMaterialPasses","c":{}}}},"jb$":{"n":"TerrainUtils","c":{"dq$":{"n":"TerrainMapStatusCode","c":{}}}},"kb$":{"n":"TestTools","c":{"EK$":{"n":"LogAssert","c":{}},"eq$":{"n":"TestPlatform","c":{}},"vx$":{"n":"UnityTestAttribute","c":{}}}},"nb$":{"n":"TextCore","c":{"lb$":{"n":"LowLevel","c":{"JK$":{"n":"FontEngine","c":{}},"kq$":{"n":"FontEngineError","c":{}},"KK$":{"n":"FontEngineUtilities","c":{}},"lq$":{"n":"FontFeatureLookupFlags","c":{}},"LK$":{"n":"GlyphAdjustmentRecord","c":{}},"mq$":{"n":"GlyphLoadFlags","c":{}},"MK$":{"n":"GlyphMarshallingStruct","c":{}},"nq$":{"n":"GlyphPackingMode","c":{}},"NK$":{"n":"GlyphPairAdjustmentRecord","c":{}},"oq$":{"n":"GlyphRasterModes","c":{}},"pq$":{"n":"GlyphRenderMode","c":{}},"OK$":{"n":"GlyphValueRecord","c":{}},"qq$":{"n":"OTFLayoutTableType","c":{}},"rq$":{"n":"OTFLookupTableType","c":{}},"sq$":{"n":"OTL_LookupType","c":{}},"tq$":{"n":"OTL_TableType","c":{}}}},"mb$":{"n":"Text","c":{"uq$":{"n":"AtlasPopulationMode","c":{}},"vq$":{"n":"ColorGradientMode","c":{}},"wq$":{"n":"FontStyles","c":{}},"xq$":{"n":"HorizontalAlignment","c":{}},"yq$":{"n":"MarkupTag","c":{}},"zq$":{"n":"TagUnitType","c":{}},"Aq$":{"n":"TagValueType","c":{}},"Bq$":{"n":"TextAlignment","c":{}},"Cq$":{"n":"TextElementType","c":{}},"Dq$":{"n":"TextFontWeight","c":{}},"Eq$":{"n":"TextOverflowMode","c":{}},"Fq$":{"n":"TextureMapping","c":{}},"Gq$":{"n":"VertexSortingOrder","c":{}},"Hq$":{"n":"VerticalAlignment","c":{}}}},"FK$":{"n":"FaceInfo","c":{}},"GK$":{"n":"Glyph","c":{}},"jq$":{"n":"GlyphClassDefinitionType","c":{}},"HK$":{"n":"GlyphMetrics","c":{},"sm":[],"sp":[],"m":["uGb$","System$IEquatable$1$UnityEngine$TextCore$GlyphMetrics$equalsT"],"p":["Dwb$","m_Width","Ewb$","m_Height","vGb$","m_HorizontalBearingX","wGb$","m_HorizontalBearingY","xGb$","m_HorizontalAdvance","Gsb$","width","Xhb$","height","yGb$","horizontalBearingX","zGb$","horizontalBearingY","AGb$","horizontalAdvance"]},"IK$":{"n":"GlyphRect","c":{},"sm":[],"sp":["CGb$","s_ZeroGlyphRect"],"m":["BGb$","System$IEquatable$1$UnityEngine$TextCore$GlyphRect$equalsT"],"p":["Dwb$","m_Width","Ewb$","m_Height","Gsb$","width","Xhb$","height"]}}},"ob$":{"n":"Tilemaps","c":{"Oq$":{"n":"TileFlags","c":{}}}},"rb$":{"n":"Timeline","c":{"pb$":{"n":"TimeFieldAttribute","c":{"RK$":{"n":"UseEditMode","c":{}}}},"qb$":{"n":"TimelineAsset","c":{"SK$":{"n":"MediaType","c":{}}}},"Pq$":{"n":"AppliedOffsetMode","c":{}},"Qq$":{"n":"ClipCaps","c":{}},"wx$":{"n":"CustomStyleAttribute","c":{}},"xx$":{"n":"HideInMenuAttribute","c":{}},"yx$":{"n":"IgnoreOnPlayableTrackAttribute","c":{}},"Rq$":{"n":"MatchTargetFields","c":{}},"Sq$":{"n":"NotificationFlags","c":{}},"zx$":{"n":"NotKeyableAttribute","c":{}},"Tq$":{"n":"StandardFrameRates","c":{}},"Ax$":{"n":"SupportsChildTracksAttribute","c":{}},"TK$":{"n":"TimelineClip","c":{}},"UK$":{"n":"TrackAsset","c":{}},"Uq$":{"n":"TrackBindingFlags","c":{}},"Bx$":{"n":"TrackBindingTypeAttribute","c":{}},"Cx$":{"n":"TrackClipTypeAttribute","c":{}},"Dx$":{"n":"TrackColorAttribute","c":{}},"Ex$":{"n":"TrackMediaType","c":{}},"Vq$":{"n":"TrackOffset","c":{}},"se$":{"n":"IPropertyCollector","c":{}},"te$":{"n":"IPropertyPreview","c":{}}}},"sb$":{"n":"Tools","c":{"VK$":{"n":"GeometryUtility","c":{}},"vB$":{"n":"DummyScript","c":{}}}},"tb$":{"n":"TouchScreenKeyboard","c":{"XK$":{"n":"Status","c":{},"sm":[],"sp":["a$","Visible","b$","Done","c$","Canceled","d$","LostFocus"],"m":[],"p":[]}}},"ub$":{"n":"TrailRenderer","c":{"ZK$":{"n":"Parameters","c":{}}}},"vb$":{"n":"tvOS","c":{"br$":{"n":"DeviceGeneration","c":{}}}},"U2D":{"n":"U2D","c":{"cr$":{"n":"Light2DType","c":{}},"dr$":{"n":"SpriteShapeDataType","c":{}},"oD$":{"n":"SpriteAtlas","c":{}}}},"UI":{"n":"UI","c":{"er$":{"n":"CanvasUpdate","c":{},"sm":[],"sp":["ata$","Prelayout","RF$","Layout","bta$","PostLayout","cta$","PreRender","dta$","LatePreRender","eta$","MaxUpdateValue"],"m":[],"p":[]}}},"zb$":{"n":"UIElements","c":{"xb$":{"n":"StyleSheets","c":{"wb$":{"n":"Syntax","c":{"as$":{"n":"DataType","c":{}},"bs$":{"n":"ExpressionCombinator","c":{}},"cs$":{"n":"ExpressionMultiplierType","c":{}},"ds$":{"n":"ExpressionType","c":{}},"es$":{"n":"StyleSyntaxTokenType","c":{}}}},"Vr$":{"n":"MatchResultErrorCode","c":{}},"Wr$":{"n":"StyleEnumType","c":{}},"Xr$":{"n":"StylePropertyGroup","c":{}},"Yr$":{"n":"StylePropertyId","c":{}},"Zr$":{"n":"StyleValidationStatus","c":{}}}},"UIR":{"n":"UIR","c":{"yb$":{"n":"Implementation","c":{"ps$":{"n":"ClipMethod","c":{}}}},"os$":{"n":"CommandType","c":{}},"qs$":{"n":"OwnedState","c":{}},"rs$":{"n":"RenderDataDirtyTypeClasses","c":{}},"ss$":{"n":"RenderDataDirtyTypes","c":{}},"ts$":{"n":"VertexFlags","c":{}}}},"fr$":{"n":"AddressMode","c":{}},"gr$":{"n":"Align","c":{}},"hr$":{"n":"AlternatingRowBackground","c":{}},"ir$":{"n":"AngleUnit","c":{}},"jr$":{"n":"CallbackPhase","c":{}},"kr$":{"n":"CollectionVirtualizationMethod","c":{}},"lr$":{"n":"ContextType","c":{}},"mr$":{"n":"DispatchMode","c":{}},"nr$":{"n":"DisplayStyle","c":{}},"or$":{"n":"DragAndDropPosition","c":{}},"pr$":{"n":"DragVisualMode","c":{}},"qr$":{"n":"DynamicAtlasFilters","c":{}},"rr$":{"n":"DynamicAtlasFiltersInternal","c":{}},"sr$":{"n":"EasingMode","c":{}},"tr$":{"n":"FlexDirection","c":{}},"ur$":{"n":"GradientType","c":{}},"vr$":{"n":"HelpBoxMessageType","c":{}},"wr$":{"n":"HierarchyChangeType","c":{}},"xr$":{"n":"InvokePolicy","c":{}},"yr$":{"n":"Justify","c":{}},"zr$":{"n":"KeyboardNavigationOperation","c":{}},"Ar$":{"n":"LengthUnit","c":{}},"Br$":{"n":"ListViewReorderMode","c":{}},"Cr$":{"n":"MouseButton","c":{}},"Dr$":{"n":"Overflow","c":{}},"Er$":{"n":"OverflowClipBox","c":{}},"Fr$":{"n":"OverflowInternal","c":{}},"Gr$":{"n":"PanelClearFlags","c":{}},"Hr$":{"n":"PanelScaleMode","c":{}},"Ir$":{"n":"PanelScreenMatchMode","c":{}},"Jr$":{"n":"PickingMode","c":{}},"Kr$":{"n":"Position","c":{}},"Lr$":{"n":"PropagationPhase","c":{}},"Mr$":{"n":"PseudoStates","c":{}},"Nr$":{"n":"RenderHints","c":{}},"Or$":{"n":"ScrollerVisibility","c":{}},"Pr$":{"n":"ScrollViewMode","c":{}},"Qr$":{"n":"SelectionType","c":{}},"Rr$":{"n":"SliderDirection","c":{}},"Sr$":{"n":"StyleKeyword","c":{}},"Tr$":{"n":"StyleSelectorRelationship","c":{}},"Ur$":{"n":"StyleSelectorType","c":{}},"fs$":{"n":"StyleValueFunction","c":{}},"gs$":{"n":"StyleValueKeyword","c":{}},"hs$":{"n":"StyleValueType","c":{}},"is$":{"n":"TextOverflow","c":{}},"js$":{"n":"TextOverflowPosition","c":{}},"ks$":{"n":"TimeUnit","c":{}},"ls$":{"n":"TransformOriginOffset","c":{}},"ms$":{"n":"TrickleDown","c":{}},"ns$":{"n":"TwoPaneSplitViewOrientation","c":{}},"us$":{"n":"UsageHints","c":{}},"vs$":{"n":"VersionChangeType","c":{}},"ws$":{"n":"Visibility","c":{}},"xs$":{"n":"VisualElementFlags","c":{}},"ys$":{"n":"VisualTreeEditorUpdatePhase","c":{}},"zs$":{"n":"VisualTreeUpdatePhase","c":{}},"As$":{"n":"WhiteSpace","c":{}},"Bs$":{"n":"Wrap","c":{}}}},"VFX":{"n":"VFX","c":{"Fs$":{"n":"VFXCameraBufferTypes","c":{}},"Gs$":{"n":"VFXCullingFlags","c":{}},"Hs$":{"n":"VFXExpressionOperation","c":{}},"Is$":{"n":"VFXMainCameraBufferFallback","c":{}},"Js$":{"n":"VFXSpawnerLoopState","c":{}},"Ks$":{"n":"VFXSystemFlag","c":{}},"Ls$":{"n":"VFXSystemType","c":{}},"Ms$":{"n":"VFXTaskType","c":{}},"Ns$":{"n":"VFXUpdateMode","c":{}},"Os$":{"n":"VFXValueType","c":{}}}},"Ab$":{"n":"Video","c":{"Ps$":{"n":"Video3DLayout","c":{}},"Qs$":{"n":"VideoAspectRatio","c":{}},"Rs$":{"n":"VideoAudioOutputMode","c":{}},"Ss$":{"n":"VideoRenderMode","c":{}},"Ts$":{"n":"VideoSource","c":{}},"Us$":{"n":"VideoTimeReference","c":{}},"Vs$":{"n":"VideoTimeSource","c":{}},"cD$":{"n":"VideoClip","c":{}},"sC$":{"n":"VideoPlayer","c":{}}}},"Bb$":{"n":"WheelCollider","c":{"eL$":{"n":"FrictionController","c":{}},"fL$":{"n":"SpringController","c":{}},"gL$":{"n":"WheelController","c":{}}}},"Eb$":{"n":"Windows","c":{"Cb$":{"n":"Speech","c":{"at$":{"n":"ConfidenceLevel","c":{}},"bt$":{"n":"DictationCompletionCause","c":{}},"ct$":{"n":"DictationTopicConstraint","c":{}},"dt$":{"n":"SpeechError","c":{}},"et$":{"n":"SpeechSystemStatus","c":{}}}},"Db$":{"n":"WebCam","c":{"ft$":{"n":"CapturePixelFormat","c":{}},"gt$":{"n":"PhotoCaptureFileOutputFormat","c":{}},"ht$":{"n":"WebCamMode","c":{}}}}}},"WSA":{"n":"WSA","c":{"kt$":{"n":"Folder","c":{}},"lt$":{"n":"TileForegroundText","c":{}},"mt$":{"n":"TileTemplate","c":{}},"nt$":{"n":"ToastTemplate","c":{}},"ot$":{"n":"WindowActivationState","c":{}}}},"XR":{"n":"XR","c":{"Fb$":{"n":"Tango","c":{"Bt$":{"n":"PoseStatus","c":{}}}},"WSA":{"n":"WSA","c":{"Gb$":{"n":"Input","c":{"Et$":{"n":"DeleteMe","c":{}}}},"Ft$":{"n":"RemoteDeviceVersion","c":{}}}},"pt$":{"n":"AvailableTrackingData","c":{}},"qt$":{"n":"ConnectionChangeType","c":{}},"rt$":{"n":"EyeSide","c":{}},"st$":{"n":"GameViewRenderMode","c":{}},"tt$":{"n":"HandFinger","c":{}},"ut$":{"n":"InputDeviceCharacteristics","c":{}},"vt$":{"n":"InputDeviceRole","c":{}},"wt$":{"n":"InputTrackingState","c":{}},"xt$":{"n":"MeshChangeState","c":{}},"yt$":{"n":"MeshGenerationOptions","c":{}},"zt$":{"n":"MeshGenerationStatus","c":{}},"At$":{"n":"MeshVertexAttributes","c":{}},"Ct$":{"n":"TrackingOriginModeFlags","c":{}},"Dt$":{"n":"TrackingSpaceType","c":{}},"Gt$":{"n":"XRNode","c":{}}}},"Hb$":{"n":"Yoga","c":{"Ht$":{"n":"YogaAlign","c":{}},"It$":{"n":"YogaDimension","c":{}},"Jt$":{"n":"YogaDirection","c":{}},"Kt$":{"n":"YogaDisplay","c":{}},"Lt$":{"n":"YogaEdge","c":{}},"Mt$":{"n":"YogaExperimentalFeature","c":{}},"Nt$":{"n":"YogaFlexDirection","c":{}},"Ot$":{"n":"YogaJustify","c":{}},"Pt$":{"n":"YogaLogLevel","c":{}},"Qt$":{"n":"YogaMeasureMode","c":{}},"Rt$":{"n":"YogaNodeType","c":{}},"St$":{"n":"YogaOverflow","c":{}},"Tt$":{"n":"YogaPositionType","c":{}},"Ut$":{"n":"YogaPrintOptions","c":{}},"Vt$":{"n":"YogaUnit","c":{}},"Wt$":{"n":"YogaWrap","c":{}}}},"Ib$":{"n":"AnimatorStateInfo","c":{"TH$":{"n":"NoStateInfo","c":{}}}},"Jb$":{"n":"AnimatorTransitionInfo","c":{"UH$":{"n":"NoTransitionInfo","c":{}}}},"Kb$":{"n":"StyleSheets","c":{"lD$":{"n":"StyleSheet","c":{}}}},"Object":{"n":"Object","c":{},"sm":["Abb$","FromHandle","Bbb$","SetHandle","Cbb$","DestroyImmediate","Dbb$","DestroyImmediate$1","Ebb$","DestroyObject","Fbb$","DestroyObject$1","bX$","Destroy","Gbb$","Destroy$1","Hbb$","DontDestroyOnLoad","Ibb$","FindObjectsOfType$1","Jbb$","FindObjectsOfType","Kbb$","FindObjectOfType$1","Lbb$","FindObjectOfType","Mbb$","Instantiate$4","Nbb$","Instantiate$5","Obb$","Instantiate$6","Pbb$","Instantiate$7","Qbb$","Instantiate$8","Rbb$","Instantiate","Sbb$","Instantiate$1","Tbb$","Instantiate$2","Ubb$","Instantiate$3","Vbb$","InstantiateInternal","jSa$","op_Implicit"],"sp":["Wbb$","instanceIdCounter"],"m":["vbb$","GetInstanceID","wbb$","CheckDestroyed"],"p":["xbb$","instanceId","ybb$","hideFlags","zbb$","Destroyed"]},"Rw$":{"n":"AddComponentMenu","c":{}},"Th$":{"n":"AdditionalCanvasShaderChannels","c":{},"sm":[],"sp":["Ja$","None","Cx$","TexCoord1","Dx$","TexCoord2","Ex$","TexCoord3","jj$","Normal","Fx$","Tangent"],"m":[],"p":[]},"pi$":{"n":"AndroidActivityIndicatorStyle","c":{}},"qi$":{"n":"AnimationBlendMode","c":{}},"LH$":{"n":"AnimationClipPair","c":{}},"ri$":{"n":"AnimationCullingType","c":{}},"MH$":{"n":"AnimationEvent","c":{}},"si$":{"n":"AnimationEventSource","c":{}},"ti$":{"n":"AnimationPlayMode","c":{}},"QH$":{"n":"AnimatorClipInfo","c":{}},"RH$":{"n":"AnimatorControllerParameter","c":{}},"zi$":{"n":"AnimatorControllerParameterType","c":{}},"Ai$":{"n":"AnimatorCullingMode","c":{}},"Bi$":{"n":"AnimatorRecorderMode","c":{}},"Ci$":{"n":"AnimatorUpdateMode","c":{}},"Di$":{"n":"AnisotropicFiltering","c":{}},"VH$":{"n":"Application","c":{},"sm":["a$","focusChange","b$","OpenURL","c$","LoadLevel","d$","LoadLevel$1","e$","LoadLevelAsync","f$","LoadLevelAsync$1","g$","GetStackTraceLogType","h$","HasProLicense","i$","HasUserAuthorization","j$","RequestUserAuthorization","k$","SetBuildTags","l$","Unload","m$","CanStreamedLevelBeLoaded","n$","CanStreamedLevelBeLoaded$1","o$","RequestAdvertisingIdentifierAsync","p$","ExternalCall","q$","ExternalEval","r$","Quit","s$","SetStackTraceLogType","t$","LogDebugInfo"],"sp":["u$","systemLanguage","v$","backgroundLoadingPriority","w$","_runInBackground","x$","focusChanged","y$","isPlaying","z$","streamingAssetsPath","A$","targetFrameRate","B$","buildGUID","C$","cloudProjectId","D$","consoleLogPath","E$","genuine","F$","genuineCheckAvailable","G$","installerName","H$","isConsolePlatform","I$","isMobilePlatform","J$","isBatchMode","K$","isFocused","L$","runInBackground","M$","sandboxType","N$","version","O$","unityVersion","P$","productName","Q$","buildID","R$","companyName","S$","lunaInitializationTime","T$","lunaDaysSinceInstall","U$","lunaVersion","V$","lunaSHA","W$","packagesInfo","X$","externalJsLibraries","Y$","buildPlatform","Z$","base64enabled","aa$","minifyEnabled","ba$","isForceUncompressed","ca$","isAntiAliasingEnabled","da$","isRuntimeAnalysisEnabledForCode","ea$","runtimeAnalysisExcludedClassesCount","fa$","runtimeAnalysisExcludedMethodsCount","ga$","runtimeAnalysisExcludedModules","ha$","isRuntimeAnalysisEnabledForShaders","ia$","isRealtimeShadowsEnabled","ja$","isReferenceAmbientProbeBaked","ka$","isLunaCompilerV2Used","la$","loadedLevel","ma$","loadedLevelName","na$","deepLinkActivated","oa$","onBeforeRender","pa$","quitting","qa$","unloading","ra$","wantsToQuit","sa$","isEditor","ta$","absoluteURL","ua$","identifier","va$","lunaAppID","wa$","creativeName","xa$","projectId","ya$","androidStoreLink","za$","iosStoreLink","Aa$","platform","Ba$","internetReachability","Ca$","GetBuildTags","Da$","installMode"],"m":[],"p":[]},"Fi$":{"n":"ApplicationInstallMode","c":{}},"Gi$":{"n":"ApplicationSandboxType","c":{}},"WH$":{"n":"ArgumentCache","c":{},"sm":[],"sp":[],"m":[],"p":["a$","m_ObjectArgument","b$","m_IntArgument","c$","m_FloatArgument","d$","m_StringArgument","e$","m_BoolArgument"]},"Hi$":{"n":"ArmDof","c":{}},"Ii$":{"n":"ArticulationDofLock","c":{}},"Ji$":{"n":"ArticulationJointType","c":{}},"YH$":{"n":"YieldInstruction","c":{},"sm":[],"sp":[],"m":[],"p":["VEb$","isDone"]},"Ki$":{"n":"AssetBundleLoadResult","c":{}},"Mi$":{"n":"AudioClipLoadType","c":{}},"Ni$":{"n":"AudioCompressionFormat","c":{}},"Oi$":{"n":"AudioDataLoadState","c":{}},"Pi$":{"n":"AudioReverbPreset","c":{}},"Qi$":{"n":"AudioRolloffMode","c":{}},"nI$":{"n":"AudioSettings","c":{}},"Ri$":{"n":"AudioSourceCurveType","c":{}},"Si$":{"n":"AudioSpeakerMode","c":{}},"Ti$":{"n":"AudioType","c":{}},"Ui$":{"n":"AudioVelocityUpdateMode","c":{}},"Vi$":{"n":"AvatarIKGoal","c":{}},"Wi$":{"n":"AvatarIKHint","c":{}},"Xi$":{"n":"AvatarMaskBodyPart","c":{}},"Yi$":{"n":"AvatarTarget","c":{}},"Zi$":{"n":"BatteryStatus","c":{}},"ej$":{"n":"BlendWeights","c":{}},"fj$":{"n":"BodyDof","c":{}},"oI$":{"n":"BoneWeight","c":{}},"pI$":{"n":"BoundingSphere","c":{}},"Bounds":{"n":"Bounds","c":{},"sm":["NFa$","getDefaultValue"],"sp":[],"m":["dGa$","getHashCode","H$","equals"],"p":["Vhb$","center"]},"qI$":{"n":"CachedAssetBundle","c":{}},"rI$":{"n":"Caching","c":{}},"gj$":{"n":"CalendarIdentifier","c":{}},"hj$":{"n":"CalendarUnit","c":{}},"ij$":{"n":"CameraClearFlags","c":{},"sm":[],"sp":["cD$","Skybox","Ow$","Color","dD$","SolidColor","eD$","Depth","Yw$","Nothing"],"m":[],"p":[]},"jj$":{"n":"CameraType","c":{}},"kj$":{"n":"CapsuleDirection2D","c":{}},"lj$":{"n":"ClusterInputType","c":{}},"uI$":{"n":"ColliderDistance2D","c":{}},"mj$":{"n":"ColliderErrorState2D","c":{}},"nj$":{"n":"CollisionDetectionMode","c":{}},"oj$":{"n":"CollisionDetectionMode2D","c":{}},"pj$":{"n":"CollisionFlags","c":{}},"Color":{"n":"Color","c":{},"sm":[],"sp":[],"m":[],"p":[]},"vI$":{"n":"Color32","c":{},"sm":["l$","op_Implicit","o$","getDefaultValue"],"sp":["p$","zero"],"m":[],"p":[]},"qj$":{"n":"ColorGamut","c":{}},"rj$":{"n":"ColorSpace","c":{},"sm":[],"sp":["CD$","Uninitialized","DD$","Gamma","uB$","Linear"],"m":[],"p":[]},"Sw$":{"n":"ColorUsageAttribute","c":{}},"wI$":{"n":"ColorUtility","c":{}},"sj$":{"n":"CompressionLevel","c":{}},"tj$":{"n":"CompressionType","c":{}},"zI$":{"n":"ComputeBuffer","c":{}},"uj$":{"n":"ComputeBufferMode","c":{}},"vj$":{"n":"ComputeBufferType","c":{}},"AI$":{"n":"ConeLimitHelper","c":{}},"wj$":{"n":"ConfigurableJointMotion","c":{}},"xj$":{"n":"ConnectionTesterStatus","c":{}},"BI$":{"n":"ContactFilter2D","c":{}},"CI$":{"n":"ContactPoint2D","c":{}},"Tw$":{"n":"ContextMenu","c":{}},"DI$":{"n":"ControllerColliderHit","c":{}},"Uw$":{"n":"CreateAssetMenuAttribute","c":{}},"yj$":{"n":"CubemapFace","c":{}},"zj$":{"n":"CullingQueryOptions","c":{}},"EI$":{"n":"Cursor","c":{},"sm":["a$","SetCursor"],"sp":["b$","visible","c$","lockState"],"m":[],"p":[]},"Aj$":{"n":"CursorLockMode","c":{},"sm":[],"sp":["Ja$","None","QD$","Locked","bE$","Confined"],"m":[],"p":[]},"Bj$":{"n":"CursorMode","c":{},"sm":[],"sp":["KB$","Auto","cE$","ForceSoftware"],"m":[],"p":[]},"Cj$":{"n":"CustomRenderTextureInitializationSource","c":{}},"Dj$":{"n":"CustomRenderTextureUpdateMode","c":{}},"Ej$":{"n":"CustomRenderTextureUpdateZoneSpace","c":{}},"FI$":{"n":"CustomYieldInstruction","c":{},"sm":[],"sp":[],"m":["IKa$","System$Collections$IEnumerator$moveNext","JKa$","System$Collections$IEnumerator$reset"],"p":["Fh$","Current","OKa$","System$Collections$IEnumerator$Current"]},"Fj$":{"n":"D3DHDRDisplayBitDepth","c":{}},"GI$":{"n":"Debug","c":{},"sm":["a$","Log","b$","Log$1","c$","LogWarning$1","d$","LogWarning","e$","LogError$2","f$","LogError$1","g$","LogError","h$","Assert$1","i$","Assert","j$","LogException","k$","LogFormat","l$","LogWarningFormat","m$","LogWarningFormat$1","n$","LogErrorFormat","o$","LogErrorFormat$1","p$","DrawLine$3","q$","DrawLine","r$","DrawLine$1","s$","DrawLine$2","t$","DrawRay","u$","DrawRay$1","v$","DrawRay$2","w$","DrawRay$3","x$","Break"],"sp":["y$","NotImplementedMethodTemplate","z$","NotImplementedAccessorTemplate","A$","NotSupportedMethodTemplate","B$","NotSupportedAccessorTemplate","C$","s_Logger","D$","NotImplementedMessage","E$","NotSupportedMessage","F$","isDebugBuild","G$","unityLogger"],"m":[],"p":[]},"Vw$":{"n":"DefaultExecutionOrder","c":{}},"Gj$":{"n":"DepthTextureMode","c":{},"sm":[],"sp":["Ja$","None","eD$","Depth","mE$","DepthNormals","nE$","MotionVectors"],"m":[],"p":["Ia$","$flags"]},"Hj$":{"n":"DetailRenderMode","c":{}},"Ij$":{"n":"DeviceOrientation","c":{}},"Jj$":{"n":"DeviceType","c":{}},"Lj$":{"n":"DisableBatchingType","c":{}},"Ww$":{"n":"DisallowMultipleComponent","c":{}},"JI$":{"n":"Display","c":{},"sm":["p$","RelativeMouseAt"],"sp":["A$","displays","B$","_mainDisplay","C$","main"],"m":[],"p":["e$","nativeDisplay","f$","renderingWidth","g$","renderingHeight","h$","systemWidth","i$","systemHeight","j$","colorBuffer","k$","depthBuffer","l$","active","m$","requiresBlitToBackbuffer","n$","requiresSrgbBlitToBackbuffer"]},"Dof":{"n":"Dof","c":{}},"Mj$":{"n":"DrivenTransformProperties","c":{}},"Nj$":{"n":"DurationUnit","c":{}},"KI$":{"n":"DynamicGI","c":{},"sm":["b$","BakeReflectionsCubemap"],"sp":[],"m":[],"p":[]},"Oj$":{"n":"EffectorForceMode2D","c":{}},"Pj$":{"n":"EffectorSelection2D","c":{}},"Qj$":{"n":"EnabledOrientation","c":{}},"Rj$":{"n":"EventModifiers","c":{}},"Vj$":{"n":"EventType","c":{}},"Xw$":{"n":"ExcludeFromPresetAttribute","c":{}},"Yw$":{"n":"ExecuteAlwaysAttribute","c":{}},"Zw$":{"n":"ExecuteInEditModeAttribute","c":{}},"mk$":{"n":"FFTWindow","c":{}},"nk$":{"n":"FilterMode","c":{},"sm":[],"sp":["GG$","Point","OJ$","Bilinear","PJ$","Trilinear"],"m":[],"p":[]},"ok$":{"n":"FindObjectsInactive","c":{}},"pk$":{"n":"FindObjectsSortMode","c":{}},"qk$":{"n":"FingerDof","c":{}},"rk$":{"n":"FocusType","c":{}},"sk$":{"n":"FogMode","c":{}},"tk$":{"n":"FontStyle","c":{},"sm":[],"sp":["jj$","Normal","dK$","Bold","eK$","Italic","fK$","BoldAndItalic"],"m":[],"p":[]},"uk$":{"n":"ForceMode","c":{}},"vk$":{"n":"ForceMode2D","c":{}},"TI$":{"n":"FrustumPlanes","c":{}},"wk$":{"n":"FullScreenMode","c":{}},"xk$":{"n":"FullScreenMovieControlMode","c":{}},"yk$":{"n":"FullScreenMovieScalingMode","c":{}},"zk$":{"n":"GamepadSpeakerOutputType","c":{}},"GL":{"n":"GL","c":{}},"UI$":{"n":"GradientAlphaKey","c":{}},"VI$":{"n":"GradientColorKey","c":{}},"Ak$":{"n":"GradientMode","c":{}},"WI$":{"n":"Graphics","c":{},"sm":[],"sp":["p$","graphicsDevice","q$","currentRenderTarget","r$","blitMaterial","s$","internalErrorShaderMaterial","t$","IdentityMaterial","u$","BlitMaterial","v$","InternalErrorShaderMaterial"],"m":[],"p":[]},"eJ$":{"n":"GUILayoutUtility","c":{}},"fJ$":{"n":"Hash128","c":{}},"Bk$":{"n":"HDRDisplaySupportFlags","c":{}},"Ck$":{"n":"HeadDof","c":{}},"ax$":{"n":"PropertyAttribute","c":{}},"gx$":{"n":"HelpURLAttribute","c":{}},"Dk$":{"n":"HideFlags","c":{},"sm":[],"sp":["Ja$","None","LK$","HideInHierarchy","MK$","HideInInspector","NK$","DontSaveInEditor","OK$","NotEditable","PK$","DontSaveInBuild","QK$","DontUnloadUnusedAsset","RK$","DontSave","SK$","HideAndDontSave"],"m":[],"p":["Ia$","$flags"]},"hx$":{"n":"HideInInspector","c":{}},"Ek$":{"n":"HorizontalWrapMode","c":{},"sm":[],"sp":["TK$","Wrap","UK$","Overflow"],"m":[],"p":[]},"Fk$":{"n":"HumanBodyBones","c":{}},"Gk$":{"n":"HumanParameter","c":{}},"Hk$":{"n":"HumanPartDof","c":{}},"ix$":{"n":"ImageEffectOpaque","c":{}},"jx$":{"n":"ImageEffectTransformsToLDR","c":{}},"Ik$":{"n":"ImagePosition","c":{}},"Jk$":{"n":"IMECompositionMode","c":{}},"gJ$":{"n":"Input","c":{},"sm":["a$","GetKeyUp","b$","GetKeyDown","c$","GetKey","d$","GetMouseButton","e$","GetMouseButtonUp","f$","GetMouseButtonDown","g$","GetAxis","h$","GetAxisRaw","i$","GetButton","j$","GetButtonUp","k$","GetButtonDown","l$","GetTouch","m$","ConnectPhysicsEvents","n$","OnMouseUpdate","o$","OnMouseDown","p$","OnMouseUp","q$","OnMouseMove","r$","GetTargetObject","s$","OnTouchStart","t$","OnTouchMoved","u$","OnTouchEnd","v$","GetTouchIndex","w$","UpdateTouches","x$","RemoveTouch","y$","Update"],"sp":["z$","mouseButtons","A$","mouseButtonsDown","B$","mouseButtonsUp","C$","axes","D$","keyboard","E$","mousePosition","F$","acceleration","G$","touchCount","H$","_touches","I$","compositionString","J$","mouseScrollDelta","K$","touchSupported","L$","mousePresent","M$","_multiTouchEnabled","N$","pointedObject","O$","clickedObject","P$","NearClipMousePoint","Q$","FarClipMousePoint","R$","rayIntersection","S$","simulateMouseWithTouches","T$","anyKey","U$","anyKeyDown","V$","imeCompositionMode","W$","compositionCursorPos","X$","touches","Y$","multiTouchEnabled","Z$","World","aa$","deviceOrientation"],"m":[],"p":[]},"Rk$":{"n":"iOSActivityIndicatorStyle","c":{}},"Sk$":{"n":"iPhoneGeneration","c":{}},"Tk$":{"n":"iPhoneKeyboardType","c":{}},"Uk$":{"n":"iPhoneMovieControlMode","c":{}},"Vk$":{"n":"iPhoneMovieScalingMode","c":{}},"Wk$":{"n":"iPhoneNetworkReachability","c":{}},"Xk$":{"n":"iPhoneOrientation","c":{}},"Yk$":{"n":"iPhoneScreenOrientation","c":{}},"Zk$":{"n":"iPhoneTouchPhase","c":{}},"iJ$":{"n":"JointAngleLimits2D","c":{}},"jJ$":{"n":"JointDrive","c":{}},"al$":{"n":"JointDriveMode","c":{}},"kJ$":{"n":"JointLimits","c":{}},"bl$":{"n":"JointLimitState2D","c":{}},"lJ$":{"n":"JointMotor","c":{}},"mJ$":{"n":"JointMotor2D","c":{}},"cl$":{"n":"JointProjectionMode","c":{}},"nJ$":{"n":"JointSpring","c":{}},"oJ$":{"n":"JointSuspension2D","c":{}},"pJ$":{"n":"JointTranslationLimits2D","c":{}},"qJ$":{"n":"JsonUtility","c":{}},"dl$":{"n":"KeyCode","c":{}},"el$":{"n":"LegDof","c":{}},"fl$":{"n":"LightmapBakeType","c":{}},"gl$":{"n":"LightmapCompression","c":{}},"sJ$":{"n":"LightmapData","c":{}},"hl$":{"n":"LightmappingMode","c":{}},"tJ$":{"n":"LightmapSettings","c":{},"sm":[],"sp":["a$","manager","b$","lightmapsMode","c$","bakedColorSpace","d$","lightmapEncodingQuality","e$","lightProbes","f$","reflectionProbes","g$","lightmaps"],"m":[],"p":[]},"il$":{"n":"LightmapsMode","c":{},"sm":[],"sp":["XT$","NonDirectional","YT$","CombinedDirectional","ZT$","SeparateDirectional","Wa$","Single","aU$","Dual","FG$","Directional"],"m":[],"p":[]},"jl$":{"n":"LightmapsModeLegacy","c":{}},"uJ$":{"n":"LightProbes","c":{},"sm":[],"sp":[],"m":[],"p":["g$","bakedProbes","h$","positions","i$","hullRays","j$","matrices","k$","tetrahedra","l$","neighbours","m$","visited","n$","queryId","o$","biasedPosition","p$","faceNormal","q$","tv1","r$","tv2","s$","tv3","t$","polynomialCoefficients","u$","weights","v$","HasProbes"]},"kl$":{"n":"LightRenderMode","c":{}},"ll$":{"n":"LightShadowCasterMode","c":{}},"ml$":{"n":"LightShadowResolution","c":{}},"nl$":{"n":"LightShadows","c":{}},"ol$":{"n":"LightShape","c":{}},"pl$":{"n":"LightType","c":{}},"ql$":{"n":"LineAlignment","c":{}},"rl$":{"n":"LineTextureMode","c":{}},"sl$":{"n":"LocationServiceStatus","c":{}},"tl$":{"n":"LODFadeMode","c":{}},"ul$":{"n":"LogOption","c":{}},"vl$":{"n":"LogType","c":{},"sm":[],"sp":["Bl$","Error","cp$","Assert","bp$","Warning","yU$","Exception"],"m":[],"p":[]},"kx$":{"n":"LunaPlaygroundAssetAttribute","c":{},"sm":[],"sp":[],"m":[],"p":["ua$","FieldTitle","va$","FieldSection","wa$","FieldOrder"]},"lx$":{"n":"LunaPlaygroundFieldArrayLengthAttribute","c":{},"sm":[],"sp":[],"m":[],"p":["xa$","MinLength","ya$","MaxLength"]},"mx$":{"n":"LunaPlaygroundFieldAttribute","c":{},"sm":[],"sp":[],"m":[],"p":["ua$","FieldTitle","va$","FieldSection","wa$","FieldOrder","za$","EnableLocalization","Aa$","FieldTooltip"]},"nx$":{"n":"LunaPlaygroundFieldStepAttribute","c":{},"sm":[],"sp":[],"m":[],"p":["Ba$","Step"]},"ox$":{"n":"LunaPlaygroundSectionAttribute","c":{},"sm":[],"sp":[],"m":[],"p":["Ca$","SectionTitle","Da$","SectionOrder"]},"wl$":{"n":"MasterServerEvent","c":{}},"xl$":{"n":"MaterialGlobalIlluminationFlags","c":{}},"wJ$":{"n":"Mathf","c":{},"sm":["h$","SmoothDamp$1","q$","LerpUnclamped","r$","Approximately"],"sp":["w$","Deg2Rad","x$","Rad2Deg","y$","EllipseClampToMaxIterations","z$","EllipseClampToConvergenceThreshold","A$","EllipseClampToTinyEpsilon","B$","EllipseClampTo_q","C$","EllipseClampTo_denom","D$","EllipseClampTo_denom2","E$","EllipseClampTo_e2","F$","EllipseClampTo_eq","G$","EllipseClampTo_fv"],"m":[],"p":[]},"Matrix4x4":{"n":"Matrix4x4","c":{},"sm":[],"sp":[],"m":[],"p":[]},"yl$":{"n":"MeshColliderCookingOptions","c":{}},"zl$":{"n":"MeshTopology","c":{},"sm":[],"sp":["IU$","Triangles","JU$","Quads","KU$","Lines","LU$","LineStrip","MU$","Points","NU$","TriangleStrip"],"m":[],"p":[]},"ev$":{"n":"MissingReferenceException","c":{}},"Al$":{"n":"MixedLightingMode","c":{}},"Bl$":{"n":"MotionVectorGenerationMode","c":{}},"fv$":{"n":"NativeFallbackException","c":{}},"Cl$":{"n":"NetworkConnectionError","c":{}},"Dl$":{"n":"NetworkDisconnection","c":{}},"Nl$":{"n":"NetworkLogLevel","c":{}},"Ol$":{"n":"NetworkPeerType","c":{}},"Pl$":{"n":"NetworkReachability","c":{}},"Ql$":{"n":"NetworkStateSynchronization","c":{}},"Rl$":{"n":"NPOTSupport","c":{}},"Wl$":{"n":"OperatingSystemFamily","c":{}},"Xl$":{"n":"ParticleSystemAnimationMode","c":{},"sm":[],"sp":["SV$","Grid","TV$","Sprites"],"m":[],"p":[]},"Yl$":{"n":"ParticleSystemAnimationRowMode","c":{}},"Zl$":{"n":"ParticleSystemAnimationTimeMode","c":{}},"am$":{"n":"ParticleSystemAnimationType","c":{},"sm":[],"sp":["YV$","WholeSheet","ZV$","SingleRow"],"m":[],"p":[]},"bm$":{"n":"ParticleSystemColliderQueryMode","c":{}},"cm$":{"n":"ParticleSystemCollisionMode","c":{}},"dm$":{"n":"ParticleSystemCollisionQuality","c":{}},"em$":{"n":"ParticleSystemCollisionType","c":{}},"fm$":{"n":"ParticleSystemCullingMode","c":{}},"gm$":{"n":"ParticleSystemCurveMode","c":{}},"hm$":{"n":"ParticleSystemCustomData","c":{}},"im$":{"n":"ParticleSystemCustomDataMode","c":{}},"jm$":{"n":"ParticleSystemEmissionType","c":{}},"km$":{"n":"ParticleSystemEmitterVelocityMode","c":{},"sm":[],"sp":["oW$","Transform","uF$","Rigidbody"],"m":[],"p":[]},"lm$":{"n":"ParticleSystemForceFieldShape","c":{}},"mm$":{"n":"ParticleSystemGameObjectFilter","c":{}},"nm$":{"n":"ParticleSystemGradientMode","c":{}},"om$":{"n":"ParticleSystemInheritVelocityMode","c":{},"sm":[],"sp":["yW$","Initial","Fh$","Current"],"m":[],"p":[]},"pm$":{"n":"ParticleSystemMeshDistribution","c":{}},"qm$":{"n":"ParticleSystemMeshShapeType","c":{},"sm":[],"sp":["BW$","Vertex","CW$","Edge","JJ$","Triangle"],"m":[],"p":[]},"rm$":{"n":"ParticleSystemNoiseQuality","c":{},"sm":[],"sp":["xs$","Medium","Bx$","High"],"m":[],"p":[]},"sm$":{"n":"ParticleSystemOverlapAction","c":{}},"tm$":{"n":"ParticleSystemRenderMode","c":{},"sm":[],"sp":["FW$","Billboard","oU$","Stretch","GW$","HorizontalBillboard","HW$","VerticalBillboard","Dv$","Mesh","Ja$","None"],"m":[],"p":[]},"um$":{"n":"ParticleSystemRenderSpace","c":{},"sm":[],"sp":["mU$","View","dW$","World","nc$","Local","IW$","Facing","wO$","Velocity"],"m":[],"p":[]},"vm$":{"n":"ParticleSystemRingBufferMode","c":{}},"wm$":{"n":"ParticleSystemScalingMode","c":{},"sm":[],"sp":["LW$","Hierarchy","nc$","Local","MW$","Shape"],"m":[],"p":[]},"xm$":{"n":"ParticleSystemShapeMultiModeValue","c":{},"sm":[],"sp":["UV$","Random","NW$","Loop","OW$","PingPong","PW$","BurstSpread"],"m":[],"p":[]},"ym$":{"n":"ParticleSystemShapeTextureChannel","c":{}},"zm$":{"n":"ParticleSystemShapeType","c":{},"sm":[],"sp":["jy$","Sphere","pW$","Hemisphere","jU$","Cone","TW$","ConeVolume","UW$","Circle","VW$","SingleSidedEdge","WW$","BoxShell","XW$","BoxEdge","YW$","Donut","IG$","Rectangle"],"m":[],"p":[]},"Am$":{"n":"ParticleSystemSimulationSpace","c":{},"sm":[],"sp":["nc$","Local","dW$","World","ki$","Custom"],"m":[],"p":[]},"Bm$":{"n":"ParticleSystemSortMode","c":{},"sm":[],"sp":["Ja$","None","nW$","Distance","ZW$","OldestInFront","aX$","YoungestInFront"],"m":[],"p":[]},"Cm$":{"n":"ParticleSystemStopAction","c":{},"sm":[],"sp":["Ja$","None","Sz$","Disable","bX$","Destroy","EW$","Callback"],"m":[],"p":[]},"Dm$":{"n":"ParticleSystemStopBehavior","c":{}},"Em$":{"n":"ParticleSystemSubEmitterProperties","c":{}},"Fm$":{"n":"ParticleSystemSubEmitterType","c":{}},"Gm$":{"n":"ParticleSystemTrailMode","c":{}},"Hm$":{"n":"ParticleSystemTrailTextureMode","c":{}},"Im$":{"n":"ParticleSystemTriggerEventType","c":{}},"Jm$":{"n":"ParticleSystemVertexStream","c":{}},"Km$":{"n":"ParticleSystemVertexStreams","c":{}},"Lm$":{"n":"PersistentListenerMode","c":{}},"Mm$":{"n":"PhysicMaterialCombine","c":{}},"IJ$":{"n":"Physics","c":{}},"JJ$":{"n":"Physics2D","c":{}},"KJ$":{"n":"PhysicsMaterial2D","c":{},"sm":[],"sp":[],"m":[],"p":["a$","bounciness","b$","friction"]},"Nm$":{"n":"PhysicsShapeType2D","c":{}},"LJ$":{"n":"Plane","c":{},"sm":[],"sp":[],"m":["c$","Raycast","f$","SetNormalAndPosition"],"p":["i$","distance","j$","m_Normal","k$","normal"]},"Om$":{"n":"PlatformSelection","c":{}},"Um$":{"n":"PlayMode","c":{}},"Vm$":{"n":"PointerType","c":{}},"Wm$":{"n":"PrimitiveType","c":{}},"Xm$":{"n":"ProceduralCacheSize","c":{}},"Ym$":{"n":"ProceduralLoadingBehavior","c":{}},"Zm$":{"n":"ProceduralOutputType","c":{}},"an$":{"n":"ProceduralProcessorUsage","c":{}},"bn$":{"n":"ProceduralPropertyType","c":{}},"WJ$":{"n":"PropertyHelper","c":{}},"XJ$":{"n":"PropertyName","c":{}},"Bn$":{"n":"QualityLevel","c":{}},"Quaternion":{"n":"Quaternion","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Cn$":{"n":"QueryTriggerInteraction","c":{}},"Dn$":{"n":"QueueMode","c":{}},"YJ$":{"n":"Random","c":{}},"px$":{"n":"RangeAttribute","c":{}},"ZJ$":{"n":"RangeInt","c":{}},"Ray":{"n":"Ray","c":{},"sm":[],"sp":[],"m":["a$","GetPoint"],"p":["d$","m_Direction","e$","m_Origin","f$","direction","g$","origin"]},"aK$":{"n":"RaycastHit","c":{}},"bK$":{"n":"RaycastHit2D","c":{}},"En$":{"n":"ReceiveGI","c":{}},"cK$":{"n":"Rect","c":{},"sm":["C$","SetupFieldAliases"],"sp":["K$","zero"],"m":[],"p":["j$","m_XMin","k$","m_YMin","l$","m_Height","m$","m_Width","n$","bottom","o$","center","p$","height","q$","left","r$","max","s$","min","t$","position","u$","right","v$","size","w$","top","x$","width","y$","xMax","z$","xMin","A$","yMax","B$","yMin"]},"dK$":{"n":"RectOffset","c":{},"sm":["g$","FromPaddings"],"sp":[],"m":[],"p":["a$","bottom","b$","left","c$","right","d$","top","e$","vertical","f$","horizontal"]},"gK$":{"n":"RectTransformUtility","c":{},"sm":["g$","PointInRectangle","h$","ScreenPointToLocalPointInRectangle","i$","ScreenPointToWorldPointInRectangle","j$","ScreenPointToRay"],"sp":["m$","s_Corners","n$","tempVector"],"m":[],"p":[]},"hK$":{"n":"ReflectionProbes","c":{},"sm":[],"sp":[],"m":["g$","InitializeEnvironmentProbe"],"p":["j$","runtimeProbes","k$","temporaryProbes","l$","environmentProbe","m$","blankProbe","n$","worldBounds"]},"Fn$":{"n":"RemoteNotificationType","c":{}},"iK$":{"n":"RenderBuffer","c":{}},"cp$":{"n":"RenderingPath","c":{}},"dp$":{"n":"RenderMode","c":{},"sm":[],"sp":["lia$","ScreenSpaceOverlay","mia$","ScreenSpaceCamera","nia$","WorldSpace"],"m":[],"p":[]},"pK$":{"n":"RenderSettings","c":{},"sm":[],"sp":["a$","fog","b$","fogStartDistance","c$","fogEndDistance","d$","fogMode","e$","fogDensity","f$","fogColor","g$","_skybox","h$","_sun","i$","ambientProbe","j$","_customReflection","k$","_defaultReflectionMode","l$","_defaultReflectionResolution","m$","_ambientMode","n$","_mixedBakeMode","o$","_ambientIntensity","p$","_reflectionIntensity","q$","_ambientLight","r$","_ambientSkyColor","s$","_ambientGroundColor","t$","_ambientEquatorColor","u$","Scene","v$","skybox","w$","sun","x$","customReflection","y$","defaultReflectionMode","z$","defaultReflectionResolution","A$","ambientMode","B$","mixedBakeMode","C$","ambientIntensity","D$","reflectionIntensity","E$","ambientLight","F$","ambientSkyColor","G$","ambientGroundColor","H$","ambientEquatorColor"],"m":[],"p":[]},"ep$":{"n":"RenderTextureCreationFlags","c":{}},"fp$":{"n":"RenderTextureFormat","c":{}},"gp$":{"n":"RenderTextureMemoryless","c":{}},"hp$":{"n":"RenderTextureReadWrite","c":{}},"qx$":{"n":"RequireComponent","c":{}},"qK$":{"n":"Resolution","c":{},"sm":[],"sp":[],"m":[],"p":["c$","height","d$","refreshRate","e$","width"]},"ip$":{"n":"RigidbodyConstraints","c":{}},"jp$":{"n":"RigidbodyConstraints2D","c":{}},"kp$":{"n":"RigidbodyInterpolation","c":{}},"lp$":{"n":"RigidbodyInterpolation2D","c":{}},"mp$":{"n":"RigidbodySleepMode2D","c":{}},"np$":{"n":"RigidbodyType2D","c":{}},"rK$":{"n":"RootMotionData","c":{}},"op$":{"n":"RotationDriveMode","c":{}},"pp$":{"n":"RotationOrder","c":{}},"qp$":{"n":"RPCMode","c":{}},"rp$":{"n":"RuntimeInitializeLoadType","c":{}},"sp$":{"n":"RuntimePlatform","c":{}},"tp$":{"n":"ScaleMode","c":{}},"tK$":{"n":"Screen","c":{},"sm":[],"sp":["a$","res","b$","width","c$","height","d$","safeArea","e$","currentResolution","f$","fullScreen","g$","dpi","h$","orientation","i$","sleepTimeout","j$","autorotateToLandscapeLeft","k$","autorotateToLandscapeRight","l$","autorotateToPortrait","m$","autorotateToPortraitUpsideDown"],"m":[],"p":[]},"xp$":{"n":"ScreenOrientation","c":{}},"zp$":{"n":"SendMessageOptions","c":{}},"ux$":{"n":"SerializeFieldAttribute","c":{}},"Ap$":{"n":"ShadowmaskMode","c":{}},"Bp$":{"n":"ShadowObjectsFilter","c":{}},"Cp$":{"n":"ShadowProjection","c":{}},"Dp$":{"n":"ShadowQuality","c":{}},"Ep$":{"n":"ShadowResolution","c":{}},"Fp$":{"n":"SimulationMode2D","c":{}},"Gp$":{"n":"SkinQuality","c":{}},"Hp$":{"n":"SkinWeights","c":{}},"wK$":{"n":"SleepTimeout","c":{}},"Ip$":{"n":"SnapAxis","c":{}},"xK$":{"n":"SoftJointLimit","c":{}},"yK$":{"n":"SoftJointLimitSpring","c":{}},"zK$":{"n":"SortingLayer","c":{},"sm":["b$","GetLayerValueFromID","c$","GetLayerIDFromValue","d$","GetLayerValueFromName"],"sp":["g$","layers"],"m":[],"p":["a$","value"]},"Mp$":{"n":"Space","c":{}},"Np$":{"n":"SpriteAlignment","c":{}},"Op$":{"n":"SpriteDrawMode","c":{}},"Pp$":{"n":"SpriteMaskInteraction","c":{}},"Qp$":{"n":"SpriteMeshType","c":{}},"Rp$":{"n":"SpritePackingMode","c":{}},"Sp$":{"n":"SpritePackingRotation","c":{}},"Tp$":{"n":"SpriteSortPoint","c":{}},"Up$":{"n":"SpriteTileMode","c":{}},"Vp$":{"n":"StackTraceLogType","c":{}},"BK$":{"n":"StackTraceUtility","c":{}},"Wp$":{"n":"StateInfoIndex","c":{}},"CK$":{"n":"StaticBatchingUtility","c":{}},"Xp$":{"n":"StereoTargetEyeMask","c":{}},"DK$":{"n":"SystemInfo","c":{}},"Yp$":{"n":"SystemLanguage","c":{},"sm":[],"sp":["Xka$","Afrikaans","Yka$","Arabic","Zka$","Basque","ala$","Belarusian","bla$","Bulgarian","cla$","Catalan","dla$","Chinese","ela$","Czech","fla$","Danish","gla$","Dutch","hla$","English","ila$","Estonian","jla$","Faroese","kla$","Finnish","lla$","French","mla$","German","nla$","Greek","ola$","Hebrew","pla$","Hugarian","qla$","Icelandic","rla$","Indonesian","sla$","Italian","tla$","Japanese","ula$","Korean","vla$","Latvian","wla$","Lithuanian","xla$","Norwegian","yla$","Polish","zla$","Portuguese","Ala$","Romanian","Bla$","Russian","Cla$","SerboCroatian","Dla$","Slovak","Ela$","Slovenian","Fla$","Spanish","Gla$","Swedish","Hla$","Turkish","Ila$","Ukrainian","Jla$","Vietnamese","Kla$","ChineseSimplified","Lla$","ChineseTraditional","Nf$","Unknown","Mla$","Hungarian"],"m":[],"p":[]},"Zp$":{"n":"TerrainChangedFlags","c":{}},"aq$":{"n":"TerrainHeightmapSyncControl","c":{}},"bq$":{"n":"TerrainRenderFlags","c":{}},"fq$":{"n":"TexGenMode","c":{}},"gq$":{"n":"TextAlignment","c":{}},"hq$":{"n":"TextAnchor","c":{},"sm":[],"sp":["sma$","UpperLeft","tma$","UpperCenter","uma$","UpperRight","vma$","MiddleLeft","wma$","MiddleCenter","xma$","MiddleRight","yma$","LowerLeft","zma$","LowerCenter","Ama$","LowerRight"],"m":[],"p":[]},"iq$":{"n":"TextClipping","c":{}},"Iq$":{"n":"TextGenerationError","c":{}},"PK$":{"n":"TextGenerationSettings","c":{}},"Jq$":{"n":"TextureColorSpace","c":{}},"Kq$":{"n":"TextureFormat","c":{}},"Lq$":{"n":"TextureImporterAlphaSource","c":{}},"Mq$":{"n":"TextureWrapMode","c":{},"sm":[],"sp":["Tu$","Repeat","Rra$","Clamp"],"m":[],"p":[]},"Nq$":{"n":"ThreadPriority","c":{},"sm":[],"sp":["Gl$","BelowNormal","jj$","Normal","Bx$","High"],"m":[],"p":[]},"QK$":{"n":"Time","c":{},"sm":["a$","FixedUpdate","b$","Update","c$","Reset","d$","SetActiveFixedTime"],"sp":["e$","SMOOTH_FACTOR","f$","_startTime","g$","_time","h$","_unscaledTime","i$","_smoothDeltaTime","j$","fixedTime","k$","frameCount","l$","previousDeltaTime","m$","deltaTime","n$","unscaledDeltaTime","o$","inFixedTimeStep","p$","_fixedUnscaledTime","q$","fixedUnscaledDeltaTime","r$","time","s$","timeAsDouble","t$","unscaledTime","u$","unscaledTimeAsDouble","v$","fixedTimeAsDouble","w$","fixedDeltaTime","x$","maximumParticleDeltaTime","y$","maximumDeltaTime","z$","timeScale","A$","smoothDeltaTime","B$","realtimeSinceStartup","C$","realtimeSinceStartupAsDouble","D$","timeSinceLevelLoad","E$","timeSinceLevelLoadAsDouble","F$","renderedFrameCount","G$","captureDeltaTime","H$","captureFramerate","I$","fixedUnscaledTime","J$","fixedUnscaledTimeAsDouble"],"m":[],"p":[]},"WK$":{"n":"Touch","c":{},"sm":["x$","getDefaultValue"],"sp":[],"m":["a$","UpdateStart","b$","UpdateMove","c$","UpdateEnd","d$","Update","e$","IsEnded","f$","getHashCode","g$","equals"],"p":["h$","lastPosition","i$","lastTimeEvent","j$","altitudeAngle","k$","azimuthAngle","l$","fingerId","m$","maximumPossiblePressure","n$","phase","o$","position","p$","pressure","q$","radius","r$","radiusVariance","s$","tapCount","t$","type","u$","deltaPosition","v$","deltaTime","w$","rawPosition"]},"Wq$":{"n":"TouchPhase","c":{},"sm":[],"sp":["sO$","Began","Hj$","Moved","tO$","Stationary","uO$","Ended","Uv$","Canceled"],"m":[],"p":[]},"Xq$":{"n":"TouchScreenKeyboardType","c":{}},"Yq$":{"n":"TouchType","c":{},"sm":[],"sp":["zr$","Direct","Hsa$","Indirect","Isa$","Stylus"],"m":[],"p":[]},"YK$":{"n":"TrailModule","c":{}},"Zq$":{"n":"TransitionType","c":{}},"ar$":{"n":"TransparencySortMode","c":{}},"aL$":{"n":"UIVertex","c":{},"sm":["i$","getDefaultValue"],"sp":["j$","s_DefaultTangent","k$","s_DefaultColor","l$","simpleVert"],"m":[],"p":["c$","position","d$","tangent","e$","uv1","f$","uv0","g$","color","h$","normal"]},"Cs$":{"n":"UnityEventCallState","c":{}},"hv$":{"n":"UnityException","c":{}},"bL$":{"n":"UnityVersion","c":{}},"Ds$":{"n":"UserAuthorization","c":{}},"Vector2":{"n":"Vector2","c":{},"sm":[],"sp":[],"m":[],"p":[]},"cL$":{"n":"Vector2Int","c":{}},"Vector3":{"n":"Vector3","c":{},"sm":[],"sp":[],"m":[],"p":[]},"dL$":{"n":"Vector3Int","c":{},"sm":[],"sp":["LGb$","s_Zero","MGb$","s_One","NGb$","s_Down","OGb$","s_Left","PGb$","s_Right","ttb$","right"],"m":["DGb$","System$IEquatable$1$UnityEngine$Vector3Int$equalsT"],"p":["EGb$","magnitude","FGb$","sqrMagnitude"]},"Vector4":{"n":"Vector4","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Es$":{"n":"VerticalWrapMode","c":{},"sm":[],"sp":["rh$","Truncate","UK$","Overflow"],"m":[],"p":[]},"Ws$":{"n":"VRTextureUsage","c":{}},"Xs$":{"n":"WebCamFlags","c":{}},"Ys$":{"n":"WebCamKind","c":{}},"Zs$":{"n":"WeightedMode","c":{}},"hL$":{"n":"WheelFrictionCurve","c":{}},"iL$":{"n":"WheelHit","c":{}},"it$":{"n":"WindZoneMode","c":{}},"jt$":{"n":"WrapMode","c":{},"sm":[],"sp":["NW$","Loop","OW$","PingPong","Gh$","Default","MCa$","ClampForever","Rra$","Clamp"],"m":[],"p":[]},"jL$":{"n":"WWWForm","c":{}},"mB$":{"n":"Component","c":{},"sm":["CGa$","op_Equality","DGa$","op_Inequality"],"sp":[],"m":["Xbb$","CompareTag","Ybb$","EnqueueDestroy","Zbb$","ConfigureForEntity","acb$","BroadcastMessage","bcb$","SendMessage","ccb$","GetComponentsInChildren","dcb$","GetComponentsInChildren$1","ecb$","GetComponentsInChildren$3","fcb$","GetComponentsInChildren$4","gcb$","GetComponentsInChildren$2","hcb$","GetComponentInChildren","icb$","GetComponentInChildren$1","jcb$","GetComponent","kcb$","GetComponent$1","lcb$","GetComponents","mcb$","GetComponents$3","ncb$","GetComponents$2","ocb$","GetComponents$1","pcb$","GetComponentInParent","qcb$","GetComponentInParents","rcb$","GetComponentsInParent","scb$","GetComponentsInParent$2","tcb$","GetComponentsInParent$1","ucb$","GetComponentsInParent$3","vcb$","TryGetComponent","wcb$","TryGetComponent$1","H$","equals","dGa$","getHashCode"],"p":["xcb$","entity","ycb$","m_GameObject","zcb$","transform","Acb$","gameObject","Bcb$","enabled"]},"xC$":{"n":"RuntimeAnimatorController","c":{}},"AC$":{"n":"Motion","c":{}},"FC$":{"n":"Object$1","c":{},"sm":[],"sp":[],"m":[],"p":["Ccb$","handle"]},"ZH$":{"n":"AsyncOperation","c":{},"sm":[],"sp":[],"m":["YEb$","MarkCompleted"],"p":["ZEb$","allowSceneActivation","aFb$","isDone$1","bFb$","priority","cFb$","progress","dFb$","m_completeCallback"]},"dD$":{"n":"AssetBundleManifest","c":{}},"gD$":{"n":"Avatar","c":{}},"gI$":{"n":"Coroutine","c":{},"sm":[],"sp":[],"m":["dua$","Cancel","uka$","Update","VQa$","MoveNext"],"p":["rFb$","enumeratorStack","Ccb$","handle","sFb$","waitsForFixedUpdate","tFb$","waitsForEndOfFrame","uFb$","firedThisFrameBeforeUpdate"]},"kL$":{"n":"DebugLogHandler","c":{},"sm":[],"sp":[],"m":["d$","LogException","b$","LogFormat","c$","UnityEngine$ILogHandler$LogException","a$","UnityEngine$ILogHandler$LogFormat"],"p":[]},"lL$":{"n":"ExposedReference$1","c":{},"sm":[],"sp":[],"m":[],"p":["d$","exposedName","e$","defaultValue"]},"bx$":{"n":"HeaderAttribute","c":{}},"cx$":{"n":"MultilineAttribute","c":{}},"hD$":{"n":"ScriptableObject","c":{},"sm":[],"sp":[],"m":["wEb$","CallAwake","xEb$","CallOnEnable"],"p":["AEb$","notAnAsset","BEb$","_destroyed","zbb$","Destroyed"]},"sx$":{"n":"RuntimeInitializeOnLoadMethodAttribute","c":{}},"dx$":{"n":"SpaceAttribute","c":{}},"ex$":{"n":"TextAreaAttribute","c":{}},"nD$":{"n":"TextAsset","c":{},"sm":[],"sp":[],"m":[],"p":["LEb$","bytes64","MEb$","bytesCache","Cd$","text","NEb$","bytes"]},"fx$":{"n":"TooltipAttribute","c":{}},"hI$":{"n":"WaitForEndOfFrame","c":{},"sm":[],"sp":[],"m":[],"p":[]},"iI$":{"n":"WaitForFixedUpdate","c":{},"sm":[],"sp":[],"m":[],"p":[]},"jI$":{"n":"WaitForSeconds","c":{},"sm":[],"sp":[],"m":["uka$","Update","WMa$","Reset"],"p":["vFb$","waitTime"]},"kI$":{"n":"WaitForSecondsRealtime","c":{}},"lI$":{"n":"WaitUntil","c":{}},"mI$":{"n":"WaitWhile","c":{}},"WWW":{"n":"WWW","c":{}},"nB$":{"n":"Component$1","c":{},"sm":[],"sp":[],"m":[],"p":["Ccb$","handle"]},"CC$":{"n":"AnimationClip","c":{}},"zC$":{"n":"AnimatorOverrideController","c":{}},"HC$":{"n":"AssetBundle","c":{}},"aI$":{"n":"AssetBundleCreateRequest","c":{}},"bI$":{"n":"AssetBundleRequest","c":{}},"IC$":{"n":"AudioClip","c":{}},"tC$":{"n":"AudioListener","c":{}},"JC$":{"n":"Collision","c":{}},"KC$":{"n":"Collision2D","c":{}},"LC$":{"n":"ContactPoint","c":{}},"MC$":{"n":"Texture","c":{},"sm":[],"sp":[],"m":[],"p":["lwb$","wrapModeW","Gsb$","width","Xhb$","height","mwb$","filterMode","ohb$","wrapMode","nwb$","wrapModeU","owb$","wrapModeV","pwb$","anisoLevel","qwb$","texelSize","rwb$","isReadable"]},"RC$":{"n":"Font","c":{},"sm":[],"sp":["pxb$","FontDefault"],"m":[],"p":["lxb$","dynamic","Kdb$","fontSize","mxb$","ascent","nxb$","lineHeight","oxb$","texture"]},"SC$":{"n":"GameObject","c":{},"sm":["Rxb$","FindWithTag","Sxb$","FindGameObjectWithTag","Txb$","FindGameObjectsWithTag","Uxb$","CreatePrimitive","CGa$","op_Equality","DGa$","op_Inequality"],"sp":["Vxb$","MonoBehaviourSystemId","Wxb$","RigidbodySystemId","Xxb$","ColliderSystemId","Yxb$","JointSystemId","Zxb$","Rigidbody2DSystemId","ayb$","Collider2DSystemId","byb$","Joint2DSystemId","cyb$","Effector2DSystemId","dyb$","CanvasRendererSystemId","eyb$","AnimatorSystemId","fyb$","AnimationSystemId","gyb$","ParticleSystemSystemId","hyb$","ParticleSystemRendererSystemId","iyb$","VideoPlayerSystemId","jyb$","AudioSourceSystemId","kyb$","RendererSystemId","lyb$","MeshFilterSystemId","myb$","SortingGroupSystemId","nyb$","SkyboxId"],"m":["qxb$","ParentToActiveSceneRoot","lcb$","GetComponents","ncb$","GetComponents$2","ocb$","GetComponents$1","mcb$","GetComponents$3","rxb$","GetAllComponents","sxb$","GetAllComponentsInternal","txb$","GetComponentsInternal","ccb$","GetComponentsInChildren","dcb$","GetComponentsInChildren$1","uxb$","GetComponentsInChildrenInternal","hcb$","GetComponentInChildren","icb$","GetComponentInChildren$1","jcb$","GetComponent","kcb$","GetComponent$1","vcb$","TryGetComponent","wcb$","TryGetComponent$1","vxb$","TryGetRectTransformOrTransform","wxb$","IsPlaycanvasComponentUnityObjectOfType","xxb$","GetComponentOfType","yxb$","SetActive","pcb$","GetComponentInParent","qcb$","GetComponentInParents","tcb$","GetComponentsInParent$1","rcb$","GetComponentsInParent","scb$","GetComponentsInParent$2","zxb$","GetComponentsInParentInternal","acb$","BroadcastMessage","bcb$","SendMessage","Axb$","SendMessage$1","Bxb$","AddComponent$1","Cxb$","AddComponent","Dxb$","Infer3DColliderBounds","Exb$","AddJoint","Fxb$","AddAsCustomComponent","Gxb$","AddAsPlaycanvasComponent","Xbb$","CompareTag","Ybb$","EnqueueDestroy","H$","equals","dGa$","getHashCode"],"p":["Hxb$","tmpVec1","fjb$","tmpVec2","Ixb$","m_Transform","Jxb$","m_RectTransform","Kxb$","isStatic","zcb$","transform","Acb$","gameObject","Lxb$","scene","Mxb$","activeSelf","Nxb$","activeInHierarchy","Oxb$","BeingDestroyed","Pxb$","layer","VB$","Root","Qxb$","PrefabRoot"]},"pL$":{"n":"Logger","c":{},"sm":["M$","GetString"],"sp":["N$","kNoTagFormat","O$","kTagFormat"],"m":["f$","IsLogTypeAllowed","h$","Log$3","j$","Log$4","l$","Log$5","n$","Log$6","p$","Log","r$","Log$1","t$","Log$2","v$","LogWarning","x$","LogWarning$1","z$","LogError","B$","LogError$1","D$","LogFormat$1","b$","LogFormat","F$","LogException$1","d$","LogException","e$","UnityEngine$ILogger$IsLogTypeAllowed","g$","UnityEngine$ILogger$Log$3","i$","UnityEngine$ILogger$Log$4","k$","UnityEngine$ILogger$Log$5","m$","UnityEngine$ILogger$Log$6","o$","UnityEngine$ILogger$Log","q$","UnityEngine$ILogger$Log$1","s$","UnityEngine$ILogger$Log$2","u$","UnityEngine$ILogger$LogWarning","w$","UnityEngine$ILogger$LogWarning$1","y$","UnityEngine$ILogger$LogError","A$","UnityEngine$ILogger$LogError$1","C$","UnityEngine$ILogger$LogFormat$1","E$","UnityEngine$ILogger$LogException$1","a$","UnityEngine$ILogHandler$LogFormat","c$","UnityEngine$ILogHandler$LogException"],"p":["J$","logHandler","K$","logEnabled","L$","filterLogType","G$","UnityEngine$ILogger$logHandler","H$","UnityEngine$ILogger$logEnabled","I$","UnityEngine$ILogger$filterLogType"]},"TC$":{"n":"Material","c":{},"sm":[],"sp":["uzb$","SpritesDefault","vzb$","SpriteMasksDefault","pxb$","FontDefault","wzb$","MeshDefault"],"m":["pyb$","HasProperty$1","ufb$","SetFloat$1","uyb$","SetInt$1","Fyb$","GetTexture$1","Gyb$","SetTexture$1","izb$","EnableKeyword","jzb$","DisableKeyword"],"p":["mzb$","enableInstancing","nzb$","mainTexture","Jdb$","color","ozb$","shader","pzb$","passCount","qzb$","renderQueue","rzb$","mainTextureOffset","szb$","mainTextureScale","tzb$","shaderKeywords"]},"UC$":{"n":"MaterialPropertyBlock","c":{}},"VC$":{"n":"Mesh","c":{},"sm":[],"sp":[],"m":[],"p":["IAb$","vertices","JAb$","normals","KAb$","tangents","LAb$","colors","MAb$","colors32","NAb$","bindposes","OAb$","boneWeights","Rhb$","bounds","PAb$","triangles","QAb$","vertexCount","RAb$","subMeshCount","SAb$","blendShapeCount","TAb$","indexFormat"]},"WC$":{"n":"PhysicMaterial","c":{}},"uC$":{"n":"Transform","c":{},"sm":[],"sp":["Gtb$","TempQuaternion1","Htb$","TempQuaternion2","Itb$","TempQuaternion3","Jtb$","TempQuaternion4","Ktb$","TempVector"],"m":["Lsb$","InverseTransformPoint","Xsb$","SetParent","ftb$","GetSiblingIndex","gtb$","SetSiblingIndex","HJa$","System$Collections$IEnumerable$GetEnumerator"],"p":["ktb$","m_hasChanged","Ccb$","handle","ltb$","parent","Pnb$","worldToLocalMatrix","Onb$","localToWorldMatrix","mtb$","localPosition","Erb$","position","ntb$","localScale","otb$","lossyScale","ptb$","localEulerAngles","qtb$","eulerAngles","rtb$","localRotation","Frb$","rotation","stb$","forward","ttb$","right","utb$","childCount","vtb$","hasChanged","wtb$","cachedLocalPosition","xtb$","cachedPosition","ytb$","cachedLocalScale","ztb$","cachedLossyScale","Atb$","cachedLocalEulerAngles","Btb$","cachedEulerAngles","Ctb$","cachedRotation","Dtb$","cachedLocalRotation","Etb$","cachedWorldToLocalMatrix","Ftb$","cachedLocalToWorldMatrix"]},"dI$":{"n":"ResourceRequest","c":{}},"ZC$":{"n":"Shader","c":{},"sm":[],"sp":["sDb$","shaderIndex","tDb$","propertyIdCounter","uDb$","propertyToIds","vDb$","idToProperties"],"m":[],"p":["cDb$","isSupported"]},"wC$":{"n":"Skybox","c":{}},"aD$":{"n":"Sprite","c":{},"sm":[],"sp":[],"m":[],"p":["DDb$","pixelsPerUnit","EDb$","packed","FDb$","packingMode","GDb$","packingRotation","HDb$","border","IDb$","textureRect","Rhb$","bounds","JDb$","textureRectOffset","IAb$","vertices","PAb$","triangles","oxb$","texture","gpb$","pivot","KDb$","associatedAlphaSplitTexture"]},"kD$":{"n":"StateMachineBehaviour","c":{}},"bD$":{"n":"TextGenerator","c":{}},"fI$":{"n":"WaitForNextFrame","c":{}},"oB$":{"n":"Behaviour$1","c":{},"sm":[],"sp":[],"m":[],"p":["Dcb$","isActiveAndEnabled"]},"MB$":{"n":"Animation","c":{}},"NB$":{"n":"AudioSource","c":{},"sm":["Nhb$","PlayClipAtPoint"],"sp":[],"m":["phb$","UpdateVolume","qhb$","UpdatePitch","rhb$","PlayDelayed","shb$","PlayOneShot","thb$","PlayOneShot$1","uhb$","PlayScheduled","ffb$","Play$1","Bz$","Stop","vhb$","GetFreeSoundInstance","GO$","Pause","whb$","UnPause","xhb$","UpdateOutputGroup","yhb$","OnOutputGroupVolumeChanged","zhb$","OnOutputGroupPitchChanged"],"p":["Ahb$","backups","Bhb$","_mute","Chb$","volumeMultiplier","Dhb$","_volume","Ehb$","pitchMultiplier","Fhb$","_pitch","Ghb$","rolloffMode","Hhb$","outputGroup","Ihb$","volume","pfb$","playOnAwake","Jhb$","pitch","xgb$","isPlaying","Khb$","outputAudioMixerGroup","Lhb$","timeSamples","Mhb$","spatialBlend"]},"OB$":{"n":"Collider","c":{}},"UB$":{"n":"Collider2D","c":{}},"ZB$":{"n":"CanvasRenderer","c":{},"sm":[],"sp":[],"m":["Tkb$","GetColor","Ukb$","SetColor","Wkb$","SetTexture","Ykb$","SetMaterial","blb$","SetMesh","dlb$","SetPopMaterial"],"p":["elb$","materialCount","flb$","hasMoved","glb$","absoluteDepth","hlb$","popMaterialCount","ilb$","hasPopInstruction","jlb$","cullTransparentMesh"]},"aC$":{"n":"Joint","c":{}},"NC$":{"n":"Cubemap","c":{},"sm":[],"sp":["twb$","blackCube","uwb$","defaultCube"],"m":[],"p":[]},"gC$":{"n":"Light","c":{},"sm":[],"sp":[],"m":[],"p":["Jdb$","color","lnb$","intensity","mnb$","shadowStrength","nnb$","shadowBias","onb$","shadowNormalBias","pnb$","shadowResolution","qnb$","shadows"]},"hC$":{"n":"Renderer","c":{},"sm":[],"sp":[],"m":[],"p":["Anb$","_cachedLightProbe","Bnb$","_cachedTetrahedronIndex","fXa$","_position","Cnb$","_reflectionProbes","Dnb$","_material","Enb$","_localToWorldMatrix","Fnb$","_worldToLocalMatrix","Gnb$","_materials","Hnb$","_lightProbeUsage","Inb$","_reflectionProbeUsage","Ccb$","handle","Jnb$","receiveShadows","Knb$","shadowCastingMode","Lnb$","motionVectorGenerationMode","Mnb$","probeAnchor","Thb$","material","Djb$","sharedMaterial","Nnb$","sharedMaterials","Onb$","localToWorldMatrix","Pnb$","worldToLocalMatrix","Qnb$","materials","Rhb$","bounds","Ueb$","sortingOrder","Neb$","sortingLayerID","Rnb$","sortingLayerIndex","Veb$","sortingLayerName","Snb$","isVisible","Tnb$","forceRenderingOff","Unb$","lightProbeUsage","Vnb$","reflectionProbeUsage"]},"nC$":{"n":"MeshFilter","c":{}},"oC$":{"n":"ReflectionProbe","c":{}},"OC$":{"n":"RenderTexture","c":{}},"qC$":{"n":"Rigidbody","c":{}},"rC$":{"n":"Rigidbody2D","c":{}},"PC$":{"n":"Texture2D","c":{},"sm":[],"sp":["gxb$","whiteTexture","hxb$","redTexture","ixb$","bumpTexture","jxb$","blackTexture"],"m":[],"p":["fxb$","mipMapBias","B$","format"]},"QC$":{"n":"Texture3D","c":{}},"pB$":{"n":"Behaviour","c":{},"sm":[],"sp":[],"m":[],"p":[]},"PB$":{"n":"BoxCollider","c":{}},"VB$":{"n":"BoxCollider2D","c":{}},"QB$":{"n":"CapsuleCollider","c":{}},"WB$":{"n":"CapsuleCollider2D","c":{}},"RB$":{"n":"CharacterController","c":{}},"bC$":{"n":"CharacterJoint","c":{}},"XB$":{"n":"CircleCollider2D","c":{}},"cC$":{"n":"ConfigurableJoint","c":{}},"YB$":{"n":"EdgeCollider2D","c":{}},"KB$":{"n":"Effector2D","c":{}},"dC$":{"n":"FixedJoint","c":{}},"eC$":{"n":"HingeJoint","c":{}},"SB$":{"n":"MeshCollider","c":{}},"iC$":{"n":"MeshRenderer","c":{}},"kC$":{"n":"ParticleSystemRenderer","c":{},"sm":[],"sp":[],"m":[],"p":["Vob$","particleSystemRendererHandle","Wob$","meshCount","Xob$","activeVertexStreamsCount","Ldb$","alignment","Seb$","renderMode","Yob$","sortMode","Zob$","lengthScale","apb$","velocityScale","bpb$","cameraVelocityScale","cpb$","normalDirection","dpb$","sortingFudge","epb$","minParticleSize","fpb$","maxParticleSize","gpb$","pivot","hpb$","trailMaterial"]},"TB$":{"n":"SphereCollider","c":{}},"fC$":{"n":"SpringJoint","c":{}},"lC$":{"n":"SpriteMask","c":{}},"mC$":{"n":"SpriteRenderer","c":{},"sm":[],"sp":[],"m":[],"p":["spb$","m_FlipX","tpb$","m_FlipY","Cdb$","m_Color","upb$","m_Sprite","vpb$","m_CurrentSprite","wpb$","_drawMode","ZJa$","_size","xpb$","_tileMode","ypb$","_adaptiveModeThreshold","zpb$","_maskInteraction","Apb$","_spriteSortPoint","Bpb$","sizeDirty","Cpb$","flipX","Dpb$","flipY","Jdb$","color","npb$","sprite","Epb$","drawMode","Fpb$","tileMode","Gpb$","adaptiveModeThreshold","Hpb$","maskInteraction","ppb$","spriteSortPoint"]},"qB$":{"n":"MonoBehaviour","c":{},"sm":["Ucb$","print","bX$","Destroy","Hbb$","DontDestroyOnLoad","Vcb$","MethodCallbackForName","CGa$","op_Equality","DGa$","op_Inequality"],"sp":[],"m":["Ecb$","StartCoroutine$2","Fcb$","StartCoroutine$1","Gcb$","StartCoroutine","Hcb$","StopCoroutine$1","Icb$","StopCoroutine$2","Jcb$","StopCoroutine","Kcb$","StopAllCoroutines","bX$","Destroy","Lcb$","DestroyInternal","Mcb$","InvokeRepeating","Ncb$","Invoke","Ocb$","CancelInvoke","Pcb$","CancelInvoke$1","Qcb$","IsInvoking","H$","equals","dGa$","getHashCode"],"p":["Rcb$","timers","Scb$","methodCoroutines","Tcb$","MonoHandle"]},"wB$":{"n":"Joint2D","c":{}},"HB$":{"n":"Canvas","c":{},"sm":["Zeb$","TriggerWillRenderCanvases","bfb$","GetDefaultCanvasMaterial","cfb$","ForceUpdateCanvases"],"sp":["dfb$","DefaultCanvasMaterial"],"m":["Zbb$","ConfigureForEntity","adb$","Awake","bdb$","OnEnable"],"p":["Ceb$","m_ScaleFactor","Deb$","m_OverrideSorting","Eeb$","m_PlaneDistance","Feb$","m_WorldCamera","Geb$","m_ReferencePixelsPerUnit","Heb$","m_SortingOrder","Ieb$","m_isFallbackOverlay","Jeb$","pixelPerfect","Keb$","m_additionalShaderChannels","Leb$","scaleFactor","Meb$","overrideSorting","Neb$","sortingLayerID","Bcb$","enabled","jca$","Screen","Oeb$","planeDistance","Peb$","isRootCanvas","Qeb$","rootCanvas","Reb$","worldCamera","Seb$","renderMode","Teb$","referencePixelsPerUnit","Ueb$","sortingOrder","Veb$","sortingLayerName","Web$","isFallbackOverlay","Xeb$","additionalShaderChannels","Yeb$","targetDisplay"]},"IB$":{"n":"FlareLayer","c":{}},"LB$":{"n":"PlatformEffector2D","c":{}},"jC$":{"n":"SkinnedMeshRenderer","c":{}},"xB$":{"n":"AnchoredJoint2D","c":{}},"tB$":{"n":"CanvasGroup","c":{},"sm":["sdb$","ExtractAlpha","tdb$","ExtractInteractable","udb$","ExtractBlocksRaycast"],"sp":[],"m":[],"p":["gdb$","lastAlpha","hdb$","lastInteractable","idb$","lastBlocksRaycasts","jdb$","lastIgnoreParentGroups","kdb$","m_Alpha","ldb$","m_Interactable","mdb$","m_BlocksRaycasts","ndb$","m_IgnoreParentGroups","odb$","alpha","pdb$","interactable","qdb$","blocksRaycasts","rdb$","ignoreParentGroups"]},"FB$":{"n":"RelativeJoint2D","c":{}},"GB$":{"n":"TargetJoint2D","c":{}},"uB$":{"n":"TextMesh","c":{}},"yB$":{"n":"DistanceJoint2D","c":{}},"zB$":{"n":"FixedJoint2D","c":{}},"AB$":{"n":"FrictionJoint2D","c":{}},"BB$":{"n":"HingeJoint2D","c":{}},"CB$":{"n":"SliderJoint2D","c":{}},"DB$":{"n":"SpringJoint2D","c":{}},"EB$":{"n":"WheelJoint2D","c":{}},"fe$":{"n":"ILogHandler","c":{},"sm":[],"sp":[],"m":["a$","UnityEngine$ILogHandler$LogFormat","b$","LogFormat","c$","UnityEngine$ILogHandler$LogException","d$","LogException"],"p":[]},"he$":{"n":"IExposedPropertyTable","c":{}},"ie$":{"n":"ISerializationCallbackReceiver","c":{}},"ge$":{"n":"ILogger","c":{},"sm":[],"sp":[],"m":["e$","UnityEngine$ILogger$IsLogTypeAllowed","f$","IsLogTypeAllowed","g$","UnityEngine$ILogger$Log$3","h$","Log$3","i$","UnityEngine$ILogger$Log$4","j$","Log$4","k$","UnityEngine$ILogger$Log$5","l$","Log$5","m$","UnityEngine$ILogger$Log$6","n$","Log$6","o$","UnityEngine$ILogger$Log","p$","Log","q$","UnityEngine$ILogger$Log$1","r$","Log$1","s$","UnityEngine$ILogger$Log$2","t$","Log$2","u$","UnityEngine$ILogger$LogWarning","v$","LogWarning","w$","UnityEngine$ILogger$LogWarning$1","x$","LogWarning$1","y$","UnityEngine$ILogger$LogError","z$","LogError","A$","UnityEngine$ILogger$LogError$1","B$","LogError$1","C$","UnityEngine$ILogger$LogFormat$1","D$","LogFormat$1","E$","UnityEngine$ILogger$LogException$1","F$","LogException$1"],"p":["G$","UnityEngine$ILogger$logHandler","H$","UnityEngine$ILogger$logEnabled","I$","UnityEngine$ILogger$filterLogType"]}}},"Mb$":{"n":"Facebook","c":{"Unity":{"n":"Unity","c":{"Uf$":{"n":"FacebookUnityPlatform","c":{}},"Vf$":{"n":"HttpMethod","c":{}},"Wf$":{"n":"LoginTracking","c":{}},"Xf$":{"n":"OGActionType","c":{}},"Yf$":{"n":"ShareDialogMode","c":{}}}}}},"Pb$":{"n":"Firebase","c":{"Nb$":{"n":"Analytics","c":{"Zf$":{"n":"ConsentStatus","c":{}},"ag$":{"n":"ConsentType","c":{}}}},"Ob$":{"n":"Platform","c":{"gg$":{"n":"PlatformLogLevel","c":{}}}},"bg$":{"n":"DependencyStatus","c":{}},"cg$":{"n":"FutureStatus","c":{}},"dg$":{"n":"GooglePlayServicesAvailability","c":{}},"eg$":{"n":"InitResult","c":{}},"fg$":{"n":"LogLevel","c":{}}}},"Qb$":{"n":"Fyber","c":{"hg$":{"n":"BannerRefreshMode","c":{}},"ig$":{"n":"Gender","c":{}},"jg$":{"n":"LossNotificationReason","c":{}},"kg$":{"n":"MediatedNetwork","c":{}}}},"Sb$":{"n":"GameAnalyticsSDK","c":{"Rb$":{"n":"Editor","c":{"lg$":{"n":"EPlatform","c":{}}}},"mg$":{"n":"GAAdAction","c":{}},"ng$":{"n":"GAAdError","c":{}},"og$":{"n":"GAAdType","c":{}},"pg$":{"n":"GAErrorSeverity","c":{}},"qg$":{"n":"GAProgressionStatus","c":{}},"rg$":{"n":"GAResourceFlowType","c":{}}}},"Ub$":{"n":"GoogleMobileAds","c":{"Api":{"n":"Api","c":{"sg$":{"n":"AdapterState","c":{}},"tg$":{"n":"AdPosition","c":{}},"ug$":{"n":"Gender","c":{}},"vg$":{"n":"Orientation","c":{}},"wg$":{"n":"TagForChildDirectedTreatment","c":{}},"xg$":{"n":"TagForUnderAgeOfConsent","c":{}}}},"Tb$":{"n":"Common","c":{"yg$":{"n":"AppState","c":{}},"zg$":{"n":"ResponseInfoClientType","c":{}}}},"Ump":{"n":"Ump","c":{"Api":{"n":"Api","c":{"Ag$":{"n":"ConsentStatus","c":{}},"Bg$":{"n":"DebugGeography","c":{}},"Cg$":{"n":"PrivacyOptionsRequirementStatus","c":{}}}}}}}},"Yb$":{"n":"InMobiAds","c":{"Api":{"n":"Api","c":{"Dg$":{"n":"InitializationStatusCodes","c":{}},"Eg$":{"n":"InMobiAdPosition","c":{}}}},"Xb$":{"n":"Editor","c":{"Wb$":{"n":"ThirdParty","c":{"Vb$":{"n":"xcodeapi","c":{"PBX":{"n":"PBX","c":{"Fg$":{"n":"PBXFileType","c":{}},"Gg$":{"n":"TokenType","c":{}}}},"Hg$":{"n":"PBXSourceTree","c":{}}}}}}}}}},"Fc$":{"n":"Luna","c":{"Unity":{"n":"Unity","c":{"Zb$":{"n":"Analytics","c":{"pD$":{"n":"EventType","c":{},"sm":[],"sp":["a$","TutorialStarted","b$","TutorialComplete","c$","EndCardShown","d$","LevelStart","e$","LevelWon","f$","LevelFailed","g$","LevelRetry","h$","Score"],"m":[],"p":[]}},"sm":["a$","LogEvent","b$","LogEvent$1"],"sp":[],"m":[],"p":[]},"DTO":{"n":"DTO","c":{"ac$":{"n":"Attributes","c":{"Ow$":{"n":"DeserializeAsAttribute","c":{}},"Pw$":{"n":"SkipStaticDeserializerAttribute","c":{}}}},"a$":{"n":"UnityEngine","c":{"gc$":{"n":"Animation","c":{"dc$":{"n":"Data","c":{"bc$":{"n":"AnimationClip","c":{"UE$":{"n":"AnimationClipBindingConstant","c":{}}}},"cc$":{"n":"AnimationCurve","c":{"Key":{"n":"Key","c":{"VE$":{"n":"TangentMode","c":{}}}},"WE$":{"n":"ObjectReferenceKey","c":{}}}},"Lg$":{"n":"AnimatorUpdateMode","c":{}},"qD$":{"n":"AnimationEvent","c":{}},"rD$":{"n":"Bounds","c":{}}}},"fc$":{"n":"Mecanim","c":{"ec$":{"n":"Avatar","c":{"fF$":{"n":"TOSPair","c":{}}}},"XE$":{"n":"AnimatorCondition","c":{}},"YE$":{"n":"AnimatorControllerLayer","c":{}},"ZE$":{"n":"AnimatorControllerParameter","c":{}},"aF$":{"n":"AnimatorState","c":{}},"bF$":{"n":"AnimatorStateMachine","c":{}},"cF$":{"n":"AnimatorTransitionBase","c":{}},"gF$":{"n":"Motion","c":{}},"Mg$":{"n":"UnsupportedAnimatorFeatures","c":{}},"sD$":{"n":"AnimatorController","c":{}},"tD$":{"n":"AnimatorOverrideController","c":{}},"dF$":{"n":"AnimatorStateTransition","c":{}},"eF$":{"n":"AnimatorTransition","c":{}}}}}},"hc$":{"n":"Animations","c":{"Ng$":{"n":"BlendTreeType","c":{}},"uD$":{"n":"BlendTree","c":{}},"vD$":{"n":"ChildMotion","c":{}}}},"sc$":{"n":"Assets","c":{"ic$":{"n":"Font","c":{"jF$":{"n":"CharacterInfo","c":{}}}},"jc$":{"n":"Material","c":{"mF$":{"n":"ColorParameter","c":{},"sm":[],"sp":[],"m":[],"p":["a$","value"]},"nF$":{"n":"FloatParameter","c":{},"sm":[],"sp":[],"m":[],"p":["a$","value"]},"oF$":{"n":"MaterialFlag","c":{},"sm":[],"sp":[],"m":[],"p":["a$","enabled"]},"pF$":{"n":"TextureParameter","c":{},"sm":[],"sp":[],"m":[],"p":["a$","value"]},"qF$":{"n":"VectorParameter","c":{},"sm":[],"sp":[],"m":[],"p":["a$","value"]}},"sm":[],"sp":[],"m":[],"p":["ga$","shader","ha$","renderQueue","ia$","enableInstancing","ja$","floatParameters","ka$","colorParameters","la$","vectorParameters","ma$","textureParameters","na$","materialFlags"]},"kc$":{"n":"Mesh","c":{"rF$":{"n":"BlendShape","c":{}},"sF$":{"n":"BlendShapeFrame","c":{}},"tF$":{"n":"SubMesh","c":{}}}},"nc$":{"n":"ProjectSettings","c":{"lc$":{"n":"Physics2DSettings","c":{"wF$":{"n":"CollisionMask","c":{}}}},"mc$":{"n":"PhysicsSettings","c":{"xF$":{"n":"CollisionMask","c":{}}}},"vF$":{"n":"CullingLayer","c":{}},"yF$":{"n":"ScriptsExecutionOrder","c":{}},"zF$":{"n":"SortingLayer","c":{}},"AF$":{"n":"TimeSettings","c":{}}}},"oc$":{"n":"RenderSettings","c":{"CF$":{"n":"Lightmap","c":{}},"DF$":{"n":"LightProbes","c":{}}},"sm":[],"sp":[],"m":[],"p":["jb$","ambientIntensity","kb$","reflectionIntensity","lb$","ambientMode","mb$","ambientLight","nb$","ambientSkyColor","ob$","ambientGroundColor","pb$","ambientEquatorColor","qb$","fogColor","rb$","fogEndDistance","sb$","fogStartDistance","tb$","fogDensity","ub$","skybox","vb$","fogMode","wb$","lightmaps","xb$","lightProbes","yb$","lightmapsMode","zb$","mixedBakeMode","Ab$","environmentLightingMode","Bb$","ambientProbe","Cb$","referenceAmbientProbe","Db$","useReferenceAmbientProbe","Eb$","customReflection","Fb$","defaultReflection","Gb$","defaultReflectionMode","Hb$","defaultReflectionResolution","Ib$","sunLightObjectId","Jb$","pixelLightCount","Kb$","defaultReflectionHDR","Lb$","hasLightDataAsset","Mb$","hasManualGenerate"]},"pc$":{"n":"Resources","c":{"FF$":{"n":"File","c":{},"sm":[],"sp":[],"m":[],"p":["a$","path","b$","unityObject"]}},"sm":[],"sp":["Pb$","ResourcesFolderPathName"],"m":[],"p":["Nb$","files","Ob$","componentToPrefabIds"]},"rc$":{"n":"Shader","c":{"qc$":{"n":"Pass","c":{"HF$":{"n":"Blending","c":{},"sm":[],"sp":[],"m":[],"p":["a$","src","b$","dst"]},"IF$":{"n":"KeywordGroup","c":{},"sm":[],"sp":[],"m":[],"p":["a$","keywords","b$","hasDiscard"]},"JF$":{"n":"StencilOp","c":{},"sm":[],"sp":[],"m":[],"p":["a$","pass","b$","fail","c$","zFail","d$","comp"]},"Tag":{"n":"Tag","c":{},"sm":[],"sp":[],"m":[],"p":["a$","value"]},"KF$":{"n":"Value","c":{},"sm":[],"sp":[],"m":[],"p":["a$","val"]},"LF$":{"n":"Variant","c":{},"sm":[],"sp":[],"m":[],"p":["a$","passType","b$","passId","c$","subShaderIndex","d$","keywords","e$","vertexProgram","f$","fragmentProgram","g$","readDepth"]}},"sm":[],"sp":[],"m":[],"p":["a$","subShaderIndex","b$","passType","c$","grabPassTextureName","d$","usePass","e$","zTest","f$","zWrite","g$","culling","h$","blending","i$","alphaBlending","j$","colorWriteMask","k$","offsetUnits","l$","offsetFactor","m$","stencilRef","n$","stencilReadMask","o$","stencilWriteMask","p$","stencilOp","q$","stencilOpFront","r$","stencilOpBack","s$","tags","t$","passDefinedKeywords","u$","passDefinedKeywordGroups","v$","variants","w$","excludedVariants","x$","hasDepthReader"]},"GF$":{"n":"DefaultParameterValue","c":{},"sm":[],"sp":[],"m":[],"p":["a$","type","b$","value","c$","textureValue"]},"MF$":{"n":"ShaderCompilationError","c":{}},"NF$":{"n":"ShaderParameterType","c":{},"sm":[],"sp":["a$","Color","b$","Vector","c$","Scalar","d$","Texture"],"m":[],"p":[]},"OF$":{"n":"UsePass","c":{}}},"sm":[],"sp":["ac$","ExcludeFromWarningShaders"],"m":[],"p":["Qb$","ShaderCompilationErrors","Rb$","guid","Sb$","shaderDefinedKeywords","Tb$","passes","Ub$","usePasses","Vb$","defaultParameterValues","Wb$","unityFallbackShader","Xb$","readDepth","Yb$","isCreatedByShaderGraph","Zb$","usedBatchUniforms"]},"hF$":{"n":"ColorGradingMode","c":{}},"iF$":{"n":"Downsampling","c":{}},"kF$":{"n":"GraphicsSettings","c":{}},"lF$":{"n":"LightRenderingMode","c":{}},"uF$":{"n":"MsaaQuality","c":{}},"BF$":{"n":"QualitySettings","c":{},"sm":[],"sp":[],"m":[],"p":["a$","qualityLevels","b$","names","c$","shadows","d$","anisotropicFiltering","e$","antiAliasing","f$","lodBias","g$","shadowCascades","h$","shadowDistance","i$","shadowmaskMode","j$","shadowProjection","k$","shadowResolution","l$","softParticles","m$","softVegetation","n$","activeColorSpace","o$","desiredColorSpace","p$","masterTextureLimit","q$","maxQueuedFrames","r$","particleRaycastBudget","s$","pixelLightCount","t$","realtimeReflectionProbes","u$","shadowCascade2Split","v$","shadowCascade4Split","w$","streamingMipmapsActive","x$","vSyncCount","y$","asyncUploadBufferSize","z$","asyncUploadTimeSlice","A$","billboardsFaceCameraPosition","B$","shadowNearPlaneOffset","C$","streamingMipmapsMemoryBudget","D$","maximumLODLevel","E$","streamingMipmapsAddAllCameras","F$","streamingMipmapsMaxLevelReduction","G$","streamingMipmapsRenderersPerFrame","H$","resolutionScalingFixedDPIFactor","I$","streamingMipmapsMaxFileIORequests","J$","currentQualityLevel"]},"EF$":{"n":"RenderType","c":{}},"PF$":{"n":"ShaderVariantLogLevel","c":{}},"wD$":{"n":"AudioClip","c":{}},"xD$":{"n":"PhysicMaterial","c":{}},"yD$":{"n":"PhysicsMaterial2D","c":{}},"zD$":{"n":"RenderPipelineAsset","c":{}},"BD$":{"n":"SpriteAtlas","c":{}},"CD$":{"n":"TextAsset","c":{}},"DD$":{"n":"VideoClip","c":{}},"AD$":{"n":"UniversalRenderPipelineAsset","c":{}}}},"uc$":{"n":"Audio","c":{"tc$":{"n":"AudioMixerSnapshot","c":{"QF$":{"n":"Parameter","c":{}}}},"ED$":{"n":"AudioMixer","c":{}},"FD$":{"n":"AudioMixerGroup","c":{}}}},"xc$":{"n":"Components","c":{"vc$":{"n":"SkinnedMeshRenderer","c":{"SF$":{"n":"BlendShapeWeight","c":{}}}},"wc$":{"n":"TrailRenderer","c":{"TF$":{"n":"LineAlignment","c":{}},"UF$":{"n":"LineTextureMode","c":{}}}},"RF$":{"n":"ParticleSystem","c":{}},"GD$":{"n":"Component","c":{}},"HD$":{"n":"Behaviour","c":{}},"dE$":{"n":"Collider","c":{}},"iE$":{"n":"Collider2D","c":{}},"pE$":{"n":"CanvasGroup","c":{}},"qE$":{"n":"CanvasRenderer","c":{}},"rE$":{"n":"CharacterController","c":{}},"sE$":{"n":"Joint","c":{}},"yE$":{"n":"Renderer","c":{}},"EE$":{"n":"MeshFilter","c":{}},"FE$":{"n":"RectTransform","c":{}},"GE$":{"n":"ReflectionProbe","c":{}},"HE$":{"n":"Rigidbody","c":{}},"IE$":{"n":"Rigidbody2D","c":{}},"JE$":{"n":"Skybox","c":{}},"KE$":{"n":"TextMesh","c":{}},"LE$":{"n":"Transform","c":{}},"ME$":{"n":"WheelCollider","c":{}},"ID$":{"n":"Joint2D","c":{}},"TD$":{"n":"Animation","c":{}},"UD$":{"n":"Animator","c":{}},"VD$":{"n":"AudioSource","c":{}},"eE$":{"n":"BoxCollider","c":{}},"jE$":{"n":"BoxCollider2D","c":{}},"WD$":{"n":"Camera","c":{}},"XD$":{"n":"Canvas","c":{}},"fE$":{"n":"CapsuleCollider","c":{}},"kE$":{"n":"CapsuleCollider2D","c":{}},"tE$":{"n":"CharacterJoint","c":{}},"lE$":{"n":"CircleCollider2D","c":{}},"mE$":{"n":"CompositeCollider2D","c":{}},"uE$":{"n":"ConfigurableJoint","c":{}},"nE$":{"n":"EdgeCollider2D","c":{}},"YD$":{"n":"Effector2D","c":{}},"vE$":{"n":"FixedJoint","c":{}},"wE$":{"n":"HingeJoint","c":{}},"aE$":{"n":"Light","c":{}},"zE$":{"n":"LineRenderer","c":{}},"gE$":{"n":"MeshCollider","c":{}},"AE$":{"n":"MeshRenderer","c":{}},"BE$":{"n":"ParticleSystemRenderer","c":{}},"oE$":{"n":"PolygonCollider2D","c":{}},"bE$":{"n":"SortingGroup","c":{}},"hE$":{"n":"SphereCollider","c":{}},"xE$":{"n":"SpringJoint","c":{}},"CE$":{"n":"SpriteMask","c":{}},"DE$":{"n":"SpriteRenderer","c":{}},"cE$":{"n":"VideoPlayer","c":{}},"JD$":{"n":"AnchoredJoint2D","c":{}},"ZD$":{"n":"PlatformEffector2D","c":{}},"RD$":{"n":"RelativeJoint2D","c":{}},"SD$":{"n":"TargetJoint2D","c":{}},"KD$":{"n":"DistanceJoint2D","c":{}},"LD$":{"n":"FixedJoint2D","c":{}},"MD$":{"n":"FrictionJoint2D","c":{}},"ND$":{"n":"HingeJoint2D","c":{}},"OD$":{"n":"SliderJoint2D","c":{}},"PD$":{"n":"SpringJoint2D","c":{}},"QD$":{"n":"WheelJoint2D","c":{}}}},"yc$":{"n":"ParticleSystemModules","c":{"VF$":{"n":"ColorBySpeedModule","c":{}},"WF$":{"n":"ColorOverLifetimeModule","c":{}},"XF$":{"n":"EmissionModule","c":{}},"YF$":{"n":"ForceOverLifetimeModule","c":{}},"ZF$":{"n":"InheritVelocityModule","c":{}},"aG$":{"n":"LimitVelocityOverLifetimeModule","c":{}},"bG$":{"n":"MainModule","c":{}},"cG$":{"n":"NoiseModule","c":{}},"dG$":{"n":"RotationBySpeedModule","c":{}},"eG$":{"n":"RotationOverLifetimeModule","c":{}},"fG$":{"n":"ShapeModule","c":{}},"gG$":{"n":"SizeBySpeedModule","c":{}},"hG$":{"n":"SizeOverLifetimeModule","c":{}},"iG$":{"n":"TextureSheetAnimationModule","c":{}},"jG$":{"n":"VelocityOverLifetimeModule","c":{}}}},"Ac$":{"n":"ParticleSystemTypes","c":{"zc$":{"n":"Data","c":{"lG$":{"n":"GradientAlphaKey","c":{},"sm":[],"sp":[],"m":[],"p":["a$","alpha","b$","time"]},"mG$":{"n":"GradientColorKey","c":{},"sm":[],"sp":[],"m":[],"p":["a$","color","b$","time"]}}},"kG$":{"n":"Burst","c":{}},"nG$":{"n":"Gradient","c":{}},"oG$":{"n":"MinMaxCurve","c":{}},"pG$":{"n":"MinMaxGradient","c":{}}}},"Bc$":{"n":"Scene","c":{"NE$":{"n":"GameObject","c":{}},"OE$":{"n":"Scene","c":{}}}},"Cc$":{"n":"Textures","c":{"PE$":{"n":"Cubemap","c":{}},"QE$":{"n":"RenderTexture","c":{}},"RE$":{"n":"Sprite","c":{}},"SE$":{"n":"Texture2D","c":{}},"TE$":{"n":"Texture3D","c":{}}}},"Object":{"n":"Object","c":{},"sm":[],"sp":[],"m":[],"p":[]}}}}},"Dc$":{"n":"FacebookInstantGames","c":{"qG$":{"n":"AddToGamingSquadPayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","squadTerm"]},"rG$":{"n":"AdInstance","c":{},"sm":[],"sp":[],"m":["a$","GetPlacementID","b$","LoadAsync","c$","ShowAsync"],"p":[]},"bv$":{"n":"APIError","c":{},"sm":[],"sp":[],"m":[],"p":["ba$","code","ca$","message"]},"sG$":{"n":"Arena","c":{},"sm":[],"sp":[],"m":["a$","GetID","b$","GetTitle","c$","GetNumUsersRegistered","d$","GetStatus","e$","GetCreationTime","f$","GetContextIDForPlayer"],"p":[]},"tG$":{"n":"Arenas","c":{},"sm":[],"sp":[],"m":["a$","RegisterAsync","b$","GetArenasAsync"],"p":[]},"uG$":{"n":"CameraEffectArgs","c":{},"sm":[],"sp":[],"m":[],"p":["a$","effectID"]},"vG$":{"n":"CameraEffects","c":{},"sm":[],"sp":[],"m":["a$","GetID"],"p":[]},"wG$":{"n":"Community","c":{},"sm":[],"sp":[],"m":["a$","CanGetLiveStreamsAsync","b$","CanFollowOfficialPageAsync","c$","CanJoinOfficialGroupASync","d$","GetLiveStreamsAsync","e$","LiveStreamsOverlayAsync","f$","FollowOfficialPageAsync","g$","JoinOfficialGroupAsync"],"p":[]},"xG$":{"n":"ConnectedPlayer","c":{},"sm":[],"sp":[],"m":["a$","GetID","b$","GetName","c$","GetPhoto"],"p":[]},"yG$":{"n":"Context","c":{},"sm":[],"sp":[],"m":["a$","GetID","b$","GetContextType","c$","IsSizeBetween","d$","SwitchAsync","e$","ChooseAsync","f$","CreateAsync","g$","GetPlayersAsync"],"p":[]},"Og$":{"n":"ContextFilter","c":{},"sm":[],"sp":["Ar$","NEW_CONTEXT_ONLY","Br$","INCLUDE_EXISTING_CHALLENGES","Cr$","NEW_PLAYERS_ONLY"],"m":[],"p":[]},"zG$":{"n":"ContextOptions","c":{},"sm":[],"sp":[],"m":[],"p":["a$","filters","b$","maxSize","c$","minSize"]},"AG$":{"n":"ContextPlayer","c":{},"sm":[],"sp":[],"m":["a$","GetID","b$","GetName","c$","GetPhoto"],"p":[]},"BG$":{"n":"ContextSizeResponse","c":{},"sm":[],"sp":[],"m":[],"p":["a$","answer","b$","minSize","c$","maxSize"]},"Pg$":{"n":"ContextType","c":{},"sm":[],"sp":["po$","POST","Dr$","THREAD","Er$","GROUP","Fr$","SOLO"],"m":[],"p":[]},"CG$":{"n":"CreateGamingSquadPayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","Name","b$","Image","c$","SquadTerm"]},"DG$":{"n":"CreateTournamentConfig","c":{},"sm":[],"sp":[],"m":[],"p":["a$","title","b$","image","c$","sortOrder","d$","scoreFormat","e$","endTime"]},"EG$":{"n":"CreateTournamentPayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","initialScore","b$","config","c$","data"]},"FG$":{"n":"CustomUpdatePayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","action","b$","template","c$","ctaString","d$","ctaContent","e$","image","f$","textString","g$","textContent","h$","data","i$","strategy","j$","notification"]},"Xv$":{"n":"DataObject","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Qg$":{"n":"ErrorCodeType","c":{},"sm":[],"sp":["xn$","UNKNOWN","Gr$","ADS_FREQUENT_LOAD","Hr$","ADS_NOT_LOADED","Ir$","ADS_NO_FILL","Jr$","ADS_TOO_MANY_INSTANCES","Kr$","ARENAS_NOT_FOUND","Lr$","CAMERA_EFFECT_NOT_FOUND","Mr$","CLIENT_REQUIRES_UPDATE","Nr$","CLIENT_UNSUPPORTED_OPERATION","Or$","DUPLICATE_POST","Pr$","GAMING_SQUAD_NOT_FOUND","Qr$","GROUP_NOT_LINKED","Rr$","INVALID_OPERATION","Sr$","INVALID_PARAM","Tr$","LEADERBOARD_NOT_FOUND","Ur$","LEADERBOARD_WRONG_CONTEXT","Vr$","LIVE_MATCH_NOT_FOUND","Wr$","LIVE_STREAMS_NOT_FOUND","Xr$","NETWORK_FAILURE","Yr$","PAGE_NOT_LINKED","Zr$","PAYMENTS_NOT_INITIALIZED","as$","PENDING_REQUEST","bs$","RATE_LIMITED","cs$","SAME_CONTEXT","ds$","TOURNAMENT_NOT_FOUND","es$","USER_INPUT","fs$","VIDEO_NOT_FOUND"],"m":[],"p":[]},"GG$":{"n":"FBInstant","c":{},"sm":["a$","GetLocale","b$","GetPlatform","c$","GetSDKVersion","d$","InitializeAsync","e$","SetLoadingProgress","f$","GetSupportedAPIs","g$","GetEntryPointData","h$","GetEntryPointAsync","i$","SetSessionData","j$","StartGameAsync","k$","InviteAsync","l$","ShareAsync","m$","UpdateAsync","n$","UpdateAsync$1","o$","SwitchGameAsync","p$","CanCreateShortcutAsync","q$","CreateShortcutAsync","r$","Quit","s$","LogEvent","t$","OnPause","u$","LoadBannerAdAsync","v$","HideBannerAdAsync","w$","GetInterstitialAdAsync","x$","GetRewardedVideoAsync","y$","MatchPlayerAsync","z$","CheckCanPlayerMatchAsync","A$","GetLeaderboardAsync","B$","PostSessionScore","C$","GetTournamentAsync","D$","PerformHapticFeedbackAsync"],"sp":["E$","player","F$","context","G$","payments","H$","tournaments","I$","arenas","J$","squads","K$","community","L$","videoplayer","M$","room","N$","graphApi"],"m":[],"p":[]},"HG$":{"n":"GamingSquad","c":{},"sm":[],"sp":[],"m":["a$","GetID","b$","GetName","c$","GetImage","d$","GetContextID"],"p":[]},"IG$":{"n":"GraphApi","c":{},"sm":[],"sp":[],"m":["a$","RequestAsync"],"p":[]},"Yv$":{"n":"IncrementObject","c":{},"sm":[],"sp":[],"m":[],"p":[]},"Rg$":{"n":"Intent","c":{},"sm":[],"sp":["gs$","INVITE","hs$","REQUEST","is$","CHALLENGE","js$","SHARE"],"m":[],"p":[]},"JG$":{"n":"InvitePayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","image","b$","text","c$","data"]},"KG$":{"n":"JoinGamingSquadPayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","squadTerm"]},"LG$":{"n":"Leaderboard","c":{},"sm":[],"sp":[],"m":["a$","GetName","b$","GetContextID","c$","GetEntryCountAsync","d$","SetScoreAsync","e$","GetPlayerEntryAsync","f$","GetEntriesAsync","g$","GetConnectedPlayerEntriesAsync"],"p":[]},"MG$":{"n":"LeaderboardEntry","c":{},"sm":[],"sp":[],"m":["a$","GetScore","b$","GetFormattedScore","c$","GetTimestamp","d$","GetRank","e$","GetExtraData","f$","GetPlayer"],"p":[]},"NG$":{"n":"LeaderboardPlayer","c":{},"sm":[],"sp":[],"m":["a$","GetName","b$","GetPhoto","c$","GetID"],"p":[]},"OG$":{"n":"LeaderboardUpdatePayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","action","b$","text"]},"PG$":{"n":"LeaveGamingSquadPayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","squadTerm"]},"QG$":{"n":"LiveMatch","c":{},"sm":[],"sp":[],"m":["a$","GetID","b$","GetContextID","c$","GetStatusAsync","d$","GetActiveParticipantsAsync"],"p":[]},"RG$":{"n":"LiveMatchPlayer","c":{},"sm":[],"sp":[],"m":["a$","GetID","b$","GetName","c$","GetPhoto"],"p":[]},"Sg$":{"n":"LiveMatchStatusType","c":{},"sm":[],"sp":["ks$","PENDING","ls$","RUNNING","ms$","CONCLUDED","ns$","ABANDONED"],"m":[],"p":[]},"SG$":{"n":"LiveStream","c":{},"sm":[],"sp":[],"m":["a$","GetName","b$","GetCVC","c$","GetThumbnailURL","d$","GetAuthorName","e$","GetAuthorPictureURL","f$","GetCustomPayload","g$","WatchAsync"],"p":[]},"TG$":{"n":"LocalizableContent","c":{},"sm":[],"sp":[],"m":[],"p":["a$","default","b$","localizations"]},"Zv$":{"n":"LocalizationsDict","c":{},"sm":[],"sp":[],"m":[],"p":[]},"UG$":{"n":"Payments","c":{},"sm":[],"sp":[],"m":["a$","GetCatalogAsync","b$","PurchaseAsync","c$","GetPurchasesAsync","d$","ConsumePurchaseAsync","e$","OnReady"],"p":[]},"Tg$":{"n":"Platform","c":{},"sm":[],"sp":["os$","ANDROID","ps$","MOBILE_WEB"],"m":[],"p":[]},"VG$":{"n":"Player","c":{},"sm":[],"sp":[],"m":["a$","GetID","b$","GetSignedPlayerInfoAsync","c$","CanSubscribeBotAsync","d$","SubscribeBotAsync","e$","GetName","f$","GetPhoto","g$","GetDataAsync","h$","SetDataAsync","i$","FlushDataAsync","j$","GetStatsAsync","k$","SetStatsAsync","l$","IncrementStatsAsync","m$","GetConnectedPlayersAsync"],"p":[]},"WG$":{"n":"Product","c":{},"sm":[],"sp":[],"m":[],"p":["a$","title","b$","productID","c$","description","d$","imageURI","e$","price","f$","priceCurrencyCode"]},"XG$":{"n":"Purchase","c":{},"sm":[],"sp":[],"m":[],"p":["a$","developerPayload","b$","paymentID","c$","productID","d$","purchaseTime","e$","purchaseToken","f$","signedRequest"]},"YG$":{"n":"PurchaseConfig","c":{},"sm":[],"sp":[],"m":[],"p":["a$","productID","b$","developerPayload"]},"ZG$":{"n":"Room","c":{},"sm":[],"sp":[],"m":["a$","ShowAsync","b$","GetCurrentMatchAsync","c$","LoadCameraEffectAsync","d$","ClearCameraEffectAsync"],"p":[]},"aH$":{"n":"SharePayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","intent","b$","image","c$","text","d$","data"]},"bH$":{"n":"ShareTournamentPayload","c":{},"sm":[],"sp":[],"m":[],"p":["a$","score","b$","data"]},"cH$":{"n":"SignedPlayerInfo","c":{},"sm":[],"sp":[],"m":["a$","GetPlayerID","b$","GetSignature"],"p":[]},"dH$":{"n":"Squads","c":{},"sm":[],"sp":[],"m":["a$","JoinAsync","b$","LeaveAsync","c$","AddToSquadAsync","d$","CreateAsync","e$","GetAsync","f$","GetPlayerSquadsAsync","g$","CanUseSquadsAsync"],"p":[]},"aw$":{"n":"StatsObject","c":{},"sm":[],"sp":[],"m":[],"p":[]},"eH$":{"n":"Tournament","c":{},"sm":[],"sp":[],"m":["a$","GetContextID","b$","GetID","c$","GetEndTime","d$","GetTitle","e$","GetPayload"],"p":[]},"fH$":{"n":"Tournaments","c":{},"sm":[],"sp":[],"m":["a$","PostScoreAsync","b$","CreateAsync","c$","ShareAsync","d$","JoinAsync","e$","GetTournamentsAsync"],"p":[]},"Ug$":{"n":"UpdateAction","c":{},"sm":[],"sp":["io$","CUSTOM","qs$","LEADERBOARD"],"m":[],"p":[]},"Vg$":{"n":"UpdateStrategy","c":{},"sm":[],"sp":["rs$","IMMEDIATE","ss$","LAST","ts$","IMMEDIATE_CLEAR"],"m":[],"p":[]},"gH$":{"n":"VideoPlayer","c":{},"sm":[],"sp":[],"m":["a$","CreateAsync"],"p":[]},"hH$":{"n":"VideoPlayerInstance","c":{},"sm":[],"sp":[],"m":["a$","GetVideoID","b$","GetStateAsync","c$","SetState","d$","Destroy","e$","GetCurrentTimestamp","f$","JumpToTimestamp"],"p":[]},"iH$":{"n":"VideoPlayerInstanceState","c":{},"sm":[],"sp":[],"m":[],"p":["a$","mute","b$","show","c$","play","d$","loop","e$","xPosition","f$","yPosition","g$","width","h$","height","i$","placement"]},"Wg$":{"n":"VideoPlayerPlacement","c":{},"sm":[],"sp":["us$","BACK","vs$","FRONT"],"m":[],"p":[]}}},"Ec$":{"n":"Nucleo","c":{"lH$":{"n":"EventTypes","c":{},"sm":[],"sp":["a$","Ready","b$","Autoplay","c$","Interaction","d$","EndLevel","e$","StartLevel","f$","MidwayProgress","g$","EndGame","h$","TryAgain"],"m":[],"p":[]}},"sm":["a$","SendEvent","b$","SendEvent$1"],"sp":[],"m":[],"p":[]},"Jg$":{"n":"BuildPlatforms","c":{},"sm":[],"sp":["Mq$","Develop","Nq$","Facebook","Oq$","FacebookInstantGames","Pq$","Aarki","Qq$","Snapchat","Rq$","AdColony","Sq$","AppLovin","Tq$","Appreciate","Uq$","IronSource","Vq$","GoogleAds","Wq$","GoogleAdManager","Xq$","Liftoff","Yq$","Mintegral","Zq$","MraidHosted","ar$","Mraid","br$","Tencent","cr$","TikTok","dr$","UnityAds","er$","Vungle","Nf$","Unknown"],"m":[],"p":[]},"Kg$":{"n":"CallbackTypes","c":{},"sm":[],"sp":["fr$","onStart","gr$","onPause","hr$","onResume","ir$","onResize","jr$","onMute","kr$","onUnmute","lr$","onDeviceData"],"m":[],"p":[]},"Xg$":{"n":"HapticFeedbackType","c":{},"sm":[],"sp":["ws$","Light","xs$","Medium","ys$","Heavy"],"m":[],"p":[]},"jH$":{"n":"LifeCycle","c":{},"sm":["a$","addOnLevelLoad","b$","removeOnLevelLoad","c$","LevelLoadSubscribed","d$","GameLoaded","e$","GameStarted","f$","GameUpdated","g$","GamePaused","h$","GameResumed","i$","GameEnded","j$","LevelChanged","k$","HapticTriggered"],"sp":["l$","OnLevelLoadHandler"],"m":[],"p":[]},"kH$":{"n":"NativeShare","c":{},"sm":["a$","Share"],"sp":["b$","IsShareAvailable"],"m":[],"p":[]},"mH$":{"n":"Playable","c":{},"sm":["a$","InstallFullGame","b$","Callback","c$","Callback$1"],"sp":["d$","Platform"],"m":[],"p":[]},"Yg$":{"n":"TriggerTypes","c":{},"sm":[],"sp":["zs$","ready","As$","autoplay","Bs$","interaction","Cs$","endLevel","Ds$","startLevel","Es$","midwayProgress","Fs$","endGame","Gs$","tryAgain","Hs$","convert"],"m":[],"p":[]}}}}},"Lc$":{"n":"LunaUnity","c":{"Gc$":{"n":"Application","c":{"nH$":{"n":"StartupScene","c":{},"sm":[],"sp":["f$","Default"],"m":[],"p":["a$","AssetBundleId","b$","SceneName","c$","FixedResolution","d$","TargetAspect","e$","MinimumResolution"]}},"sm":[],"sp":["q$","Instance"],"m":["a$","InitializeSystems","b$","GetApplicationOptions","c$","InitializeAsync","d$","StartWithJSCallback","e$","Start","f$","LoadInitialScene","h$","LoadProjectSettingsAsync"],"p":["i$","app","j$","graphicsDevice","k$","canvas","l$","objectSpace","m$","network","n$","startupScene","o$","AudioManager","p$","LoadingCompleted"]},"Hc$":{"n":"Audio","c":{"oH$":{"n":"Manager","c":{},"sm":[],"sp":[],"m":["a$","TriggerMasterVolumeChange"],"p":["b$","masterVolume","c$","MasterVolume"]}}},"Jc$":{"n":"Objects","c":{"Ic$":{"n":"Registry","c":{"cv$":{"n":"ItemAlreadyExistsException","c":{}},"dv$":{"n":"ItemNotFoundException","c":{},"sm":[],"sp":[],"m":[],"p":[]}},"sm":[],"sp":[],"m":["a$","Put","b$","Get","c$","Release","d$","TryGet","e$","Has","f$","Clone","g$","AllowUpdate","h$","Clear","i$","ReportRegistryUsageForPrefabs"],"p":["j$","registry","k$","parent","l$","updatesAllowed"]},"pH$":{"n":"Space","c":{},"sm":[],"sp":[],"m":[],"p":["a$","application","b$","registry","c$","Registry"]}}},"Kc$":{"n":"Utils","c":{"qH$":{"n":"ArrayUtils","c":{}},"rH$":{"n":"CompressedResources","c":{},"sm":[],"sp":[],"m":["a$","GetBlobAsync","b$","GetSoundAsync"],"p":[]},"sH$":{"n":"Timer","c":{},"sm":[],"sp":[],"m":[],"p":[]},"vH$":{"n":"ExternalResources","c":{},"sm":[],"sp":["j$","domainPattern","k$","domainCount"],"m":["a$","GetJsonAsync","b$","GetBlobAsync","c$","GetImageAsync","d$","GetSoundAsync","e$","GetVideoAsync","f$","CombineUrl","g$","FormatUrl"],"p":["h$","BaseUrl","i$","currentDomainIndex"]},"wH$":{"n":"InlineResources","c":{},"sm":["f$","Base64Buffer"],"sp":[],"m":["a$","GetJsonAsync","b$","GetBlobAsync","c$","GetImageAsync","d$","GetSoundAsync","e$","GetVideoAsync"],"p":[]},"xH$":{"n":"Network","c":{},"sm":[],"sp":["k$","ERR_NOT_FOUND","l$","ERR_ABORTED","m$","ERR_UNKNOWN"],"m":["a$","GetJsonAsync","b$","GetBlobAsync","c$","GetImageAsync","d$","GetSoundAsync","e$","GetVideoAsync"],"p":["f$","BaseUrl","g$","inline","h$","external","i$","compress","j$","resourceConfig"]},"yH$":{"n":"PrefabUtil","c":{},"sm":["a$","IsPrefabProxy"],"sp":[],"m":[],"p":[]},"zH$":{"n":"TaskEnumerator","c":{}},"AH$":{"n":"TaskExtensions","c":{}},"tH$":{"n":"Delay","c":{}},"uH$":{"n":"Interval","c":{}}}}}},"Mc$":{"n":"Playcanvas","c":{"Zg$":{"n":"KeyCodes","c":{}},"BH$":{"n":"KeyCodesConversions","c":{}},"ah$":{"n":"PixelFormat","c":{}},"CH$":{"n":"PixelFormatHelper","c":{}},"bh$":{"n":"TextureAddressing","c":{}},"ee$":{"n":"IAttributes","c":{}}}},"Unity":{"n":"Unity","c":{"Pc$":{"n":"Collections","c":{"Oc$":{"n":"LowLevel","c":{"Nc$":{"n":"Unsafe","c":{"gh$":{"n":"AtomicSafetyErrorType","c":{}},"hh$":{"n":"EnforceJobResult","c":{}}}}}},"eh$":{"n":"Allocator","c":{}},"fh$":{"n":"LeakCategory","c":{}},"ih$":{"n":"NativeArrayOptions","c":{}},"jh$":{"n":"NativeLeakDetectionMode","c":{}}}},"Qc$":{"n":"Curl","c":{"kh$":{"n":"BufferOwnership","c":{}},"lh$":{"n":"CurlEasyHandleFlags","c":{}}}},"IO":{"n":"IO","c":{"Sc$":{"n":"LowLevel","c":{"Rc$":{"n":"Unsafe","c":{"mh$":{"n":"AssetLoadingSubsystem","c":{}},"nh$":{"n":"FileReadType","c":{}},"oh$":{"n":"FileState","c":{}},"ph$":{"n":"FileStatus","c":{}},"qh$":{"n":"Priority","c":{}},"rh$":{"n":"ProcessingState","c":{}},"sh$":{"n":"ReadStatus","c":{}}}}}}}},"Vc$":{"n":"Jobs","c":{"Uc$":{"n":"LowLevel","c":{"Tc$":{"n":"Unsafe","c":{"th$":{"n":"JobType","c":{}},"uh$":{"n":"ScheduleMode","c":{}}}}}}}},"Yc$":{"n":"Profiling","c":{"Wc$":{"n":"Editor","c":{"vh$":{"n":"ProfilerModuleChartType","c":{}}}},"Xc$":{"n":"LowLevel","c":{"wh$":{"n":"MarkerFlags","c":{}},"xh$":{"n":"ProfilerMarkerDataType","c":{}}}},"yh$":{"n":"ProfilerCategoryColor","c":{}},"zh$":{"n":"ProfilerCategoryFlags","c":{}},"Ah$":{"n":"ProfilerCounterOptions","c":{}},"Bh$":{"n":"ProfilerFlowEventType","c":{}},"Ch$":{"n":"ProfilerMarkerDataUnit","c":{}},"Dh$":{"n":"ProfilerRecorderOptions","c":{}}}},"ad$":{"n":"Rendering","c":{"Zc$":{"n":"HybridV2","c":{"Eh$":{"n":"DOTSInstancingPropertyType","c":{}}}}}},"UI":{"n":"UI","c":{"bd$":{"n":"Builder","c":{"Fh$":{"n":"BuilderCanvasBackgroundMode","c":{}},"Gh$":{"n":"BuilderElementStyle","c":{}},"Hh$":{"n":"BuilderHierarchyChangeType","c":{}},"Ih$":{"n":"BuilderSelectionType","c":{}},"Jh$":{"n":"BuilderStylingChangeType","c":{}},"Kh$":{"n":"OverlayContent","c":{}},"Lh$":{"n":"TransitionChangeType","c":{}},"Mh$":{"n":"TwoPaneSplitViewOrientation","c":{}}}}}}}},"ed$":{"n":"UnityEditor","c":{"cd$":{"n":"Animations","c":{"DH$":{"n":"AnimatorCondition","c":{}},"Nh$":{"n":"AnimatorConditionMode","c":{}},"EH$":{"n":"AnimatorControllerLayer","c":{}},"Oh$":{"n":"AnimatorLayerBlendingMode","c":{}},"FH$":{"n":"AnimatorState","c":{}},"GH$":{"n":"AnimatorStateMachine","c":{}},"HH$":{"n":"AnimatorTransitionBase","c":{}},"Ph$":{"n":"AnimatorUpdateMode","c":{}},"Qh$":{"n":"BlendTreeType","c":{}},"KH$":{"n":"ChildMotion","c":{}},"Rh$":{"n":"TransitionInterruptionSource","c":{}},"IH$":{"n":"AnimatorStateTransition","c":{}},"JH$":{"n":"AnimatorTransition","c":{}},"yC$":{"n":"AnimatorController","c":{}},"BC$":{"n":"BlendTree","c":{}}}},"dd$":{"n":"Audio","c":{"EC$":{"n":"AudioMixerController","c":{}}}},"Sh$":{"n":"LightmapEncodingQuality","c":{}}}},"gd$":{"n":"YandexMobileAds","c":{"fd$":{"n":"Base","c":{"Xt$":{"n":"AdPosition","c":{}},"Yt$":{"n":"AdTheme","c":{}},"Zt$":{"n":"BannerAdSizeType","c":{}}}}}},"hd$":{"n":"UnityTest","c":{"mD$":{"n":"IntegrationTestsRunnerSettings","c":{}}}},"Hf$":{"n":"AdFormat","c":{}},"If$":{"n":"AdGender","c":{}},"Jf$":{"n":"AdHorizontalPosition","c":{}},"Kf$":{"n":"AdMockupStyle","c":{}},"Lf$":{"n":"AdMonth","c":{}},"Mf$":{"n":"AdOrientation","c":{}},"Nf$":{"n":"AdSize","c":{}},"Of$":{"n":"AdVerticalPosition","c":{}},"Ig$":{"n":"IronSourceBannerPosition","c":{}},"Qw$":{"n":"SelectionBase","c":{}},"ch$":{"n":"TournamentScoreFormat","c":{}},"dh$":{"n":"TournamentSortOrder","c":{}},"rB$":{"n":"DummyScript","c":{}}}'),$$aa=function(e,t){const n=e.statics||e.$statics;if(n){let e=n.$config||n.config;e||(e=n.$config={});const i=e.alias=e.alias||[];i.push(...t.sp||[]),i.push(...t.sm||[]),i.push(...(t.sp||[]).map((e=>"get"+e))),i.push(...(t.sp||[]).map((e=>"set"+e)))}let i=e.$config||e.config;i||(i=e.$config={});const r=i.alias=e.alias||i.alias||[];r.push(...t.p||[]),r.push(...t.m||[]),r.push(...(t.p||[]).map((e=>r.includes("get"+e)?"$$get"+e:"get"+e))),r.push(...(t.p||[]).map((e=>r.includes("set"+e)?"$$set"+e:"set"+e)))},$$sd=function(e,t,n=!1){const i=e.split("."),r=[...i],s=[...i],a=s.pop();let o=Bridge.global,l=tmp461cb26b_tmp_UnityEngine_mapping;if(l[s[0]])for(let e=0;e<s.length;e++){const t=s[e],n=l[t].n;r[e]=n;const i=o[n]||o[t]||{};o[t]&&!o[n]?Object.defineProperty(o,n,{get:()=>o[t],set(e){o[t]=e},configurable:!0,enumerable:!0}):o[n]=o[t]=i,o=o[n],l=l[t].c}const c=l[a];c&&(t&&("object"==typeof t?$$aa(t,c):t.$aliasInit=e=>$$aa(e,c)),r[r.length-1]=c.n,c.n!==a&&Object.defineProperty(o,a,{get:()=>o[c.n],set(e){o[c.n]=e},enumerable:!0}));const u=r.join(".");return n?Bridge.definei(u,t):Bridge.define(u,t)},$$sdi=(e,t)=>$$sd(e,t,!0);function getLanguage(e){let t=navigator.language.toLowerCase();switch(t){case"zh-hk":case"zh-tw":return e.ChineseTraditional;case"zh-sg":case"zh-cn":return e.ChineseSimplified}switch(t=t.split("-")[0],t){case"af":return e.Afrikaans;case"ar":return e.Arabic;case"eu":return e.Basque;case"be":return e.Belarusian;case"bg":return e.Bulgarian;case"ca":return e.Catalan;case"zh":return e.Chinese;case"cs":return e.Czech;case"da":return e.Danish;case"nl":return e.Dutch;case"en":return e.English;case"et":return e.Estonian;case"fo":return e.Faroese;case"fi":return e.Finnish;case"fr":return e.French;case"de":return e.German;case"el":return e.Greek;case"he":return e.Hebrew;case"is":return e.Icelandic;case"id":return e.Indonesian;case"it":return e.Italian;case"ja":return e.Japanese;case"ko":return e.Korean;case"lv":return e.Latvian;case"lt":return e.Lithuanian;case"no":return e.Norwegian;case"pl":return e.Polish;case"pt":return e.Portuguese;case"ro":return e.Romanian;case"ru":return e.Russian;case"sh":return e.SerboCroatian;case"sk":return e.Slovak;case"sl":return e.Slovenian;case"es":return e.Spanish;case"sv":return e.Swedish;case"th":return e.Thai;case"tr":return e.Turkish;case"uk":return e.Ukrainian;case"vi":return e.Vietnamese;case"zn":return e.ChineseSimplified;case"hu":return e.Hungarian;default:return e.Unknown}}function getBuildPlatform(e){switch(window.$environment.targetPlatform){case"develop":return e.Develop;case"facebook":return e.Facebook;case"facebook-instant-games":return e.FacebookInstantGames;case"aarki":return e.Aarki;case"snap":return e.Snapchat;case"adcolony":return e.AdColony;case"applovin":return e.AppLovin;case"appreciate":return e.Appreciate;case"ironsource":return e.IronSource;case"google":return e.GoogleAds;case"google-manager":return e.GoogleAdManager;case"liftoff":return e.Liftoff;case"mintegral":return e.Mintegral;case"mraid-hosted":return e.MraidHosted;case"mraid":return e.Mraid;case"tencent":return e.Tencent;case"tiktok":return e.TikTok;case"unityads":return e.UnityAds;case"vungle":return e.Vungle;default:return e.Unknown}}Bridge.assembly("UnityEngine",(function($asm,globals){$$sd("Lb$.Object",{statics:{fields:{Wbb$:0},methods:{Abb$:function(e,t){if(null==t)return null;var n="__"+(e.$$fullname||""),i=t[n];return null!=i?i:null!=(i=Bridge.as(t.code,e))?(t[n]=i,i.handle=t,i):(i=Bridge.createInstance(e,[t]),t[n]=i,i.handle=t,i)},Bbb$:function(e,t){var n=Bridge.getType(t);e["__"+(Bridge.Reflection.getTypeFullName(n)||"")]=t},Cbb$:function(e){if(Bridge.is(e,Lb$.uC$)){var t=Bridge.cast(e,Lb$.uC$).gameObject.handle._guid;Lb$.GI$.e$("Can`t destroy "+(Bridge.Reflection.getTypeName(Bridge.getType(e))||"")+' component of "'+(e.name||"")+'"',null,[new(Z$.cz$(Z$.String,Z$.String).$ctor1)(Z$.String.B$('"{0}"',[e.name]),Z$.String.B$("[{0}](gameobject://{1})",e.name,t))])}else Bridge.is(e,Lb$.SC$)?new pc.DestroyEntityTask(e.handle,0).execute():Bridge.is(e,Lb$.NB$)?Bridge.as(e,Lb$.NB$).Stop():Lb$.Object.Ebb$(e)},Dbb$:function(e,t){Lb$.Object.Cbb$(e)},Ebb$:function(e){Lb$.Object.Fbb$(e,0)},Fbb$:function(e,t){do{if(Bridge.is(e,Lb$.uC$)){var n=Bridge.cast(e,Lb$.uC$),i=n.gameObject.name,r=n.gameObject.handle._guid;return void Lb$.GI$.e$("Can`t destroy "+(Bridge.Reflection.getTypeName(Bridge.getType(n))||"")+' component of "'+(n.gameObject.name||"")+'"',null,[new(Z$.cz$(Z$.String,Z$.String).$ctor1)(Z$.String.B$('"{0}"',[i]),Z$.String.B$("[{0}](gameobject://{1})",i,r))])}if(Bridge.is(e,Lb$.mB$)){Bridge.cast(e,Lb$.mB$).EnqueueDestroy(t);break}if(Bridge.is(e,Lb$.SC$)){Bridge.cast(e,Lb$.SC$).EnqueueDestroy(t);break}if(Bridge.is(e,Lb$.hD$)){Bridge.cast(e,Lb$.hD$).EnqueueDestroy(t);break}}while(0)},bX$:function(e){Lb$.Object.Ebb$(e)},Gbb$:function(e,t){Lb$.Object.Fbb$(e,t)},Hbb$:function(e){Lb$.db$.sK$.F$(e)},Ibb$:function(e){for(var t=Z$.Array.init([],Lb$.Object),n=Bridge.referenceEquals(e,Lb$.SC$),i=pc.Application.getApplication().getRootObjects(),r=0;r<i.length;r++)for(var s=i[r].children,a=0;a<s.length;a++){var o=s[a],l=Lb$.Object.Abb$(Lb$.SC$,o);if(l.Nxb$)if(n){t.push(l);var c=Z$.I$.Enumerable.from(o.allChildren(),pc.Entity).select((function(e){return Lb$.Object.Abb$(Lb$.SC$,e)})).where((function(e){return e.activeInHierarchy}));t=t.concat(c)}else{var u=l.dcb$(e,!1);t=t.concat(u)}}return t},Jbb$:function(e){return Lb$.Object.Ibb$(e)},Kbb$:function(e){for(var t=Bridge.referenceEquals(e,Lb$.SC$),n=pc.Application.getApplication().getRootObjects(),i=0;i<n.length;i++)for(var r=n[i].children,s=0;s<r.length;s++){var a=Lb$.Object.Abb$(Lb$.SC$,r[s]);if(a.Nxb$){if(t)return a;var o=a.icb$(e,!1);if(Lb$.mB$.DGa$(o,null))return o}}return null},Lbb$:function(e){return Bridge.as(Lb$.Object.Kbb$(e),e)},Mbb$:function(e){return Lb$.Object.Rbb$(Lb$.Object,e,null)},Nbb$:function(e,t){return Lb$.Object.Rbb$(Lb$.Object,e,t)},Obb$:function(e,t,n){return Lb$.Object.Sbb$(Lb$.Object,e,t,n)},Pbb$:function(e,t,n){return Lb$.Object.Tbb$(Lb$.Object,e,t.$clone(),n.$clone())},Qbb$:function(e,t,n,i){return Lb$.Object.Ubb$(Lb$.Object,e,t.$clone(),n.$clone(),i)},Rbb$:function(e,t,n){return void 0===n&&(n=null),Lb$.Object.Vbb$(e,t,null,null,n,!1)},Sbb$:function(e,t,n,i){return Lb$.Object.Vbb$(e,t,null,null,n,i)},Tbb$:function(e,t,n,i){return Lb$.Object.Vbb$(e,t,n.$clone(),i.$clone(),null,!1)},Ubb$:function(e,t,n,i,r){return Lb$.Object.Vbb$(e,t,n.$clone(),i.$clone(),r,!1)},Vbb$:function(e,t,n,i,r,s){if(null==t)throw new Z$.ou$.$ctor1("The Object you want to instantiate is null.");var a=Lb$.mB$.DGa$(r,null)?r.Ccb$:null,o=null,l=null;if(Lc$.Kc$.yH$.a$(t))o=Bridge.getType(t,e),l=t;else{var c=Bridge.as(t,Lb$.mB$),u=Lb$.mB$.DGa$(c,null)?c.gameObject:Bridge.as(t,Lb$.SC$);Lb$.SC$.DGa$(u,null)&&(o=t,l=u.PrefabRoot)}return null!=o&&null!=l?$scene._instantiate(o,l,n,i,a,s):Bridge.referenceEquals(e,Lb$.TC$)?Bridge.as(new Lb$.TC$.$ctor1(Bridge.as(t,Lb$.TC$)),e):Bridge.referenceEquals(e,Lb$.PC$)?Bridge.as(new Lb$.PC$.$ctor3(Bridge.as(t,Lb$.PC$)),e):Bridge.referenceEquals(e,Lb$.VC$)?Bridge.as(new Lb$.VC$.$ctor1(Bridge.as(t,Lb$.VC$).handle),e):void 0},jSa$:function(e){return null!=e&&!e.zbb$}}},fields:{xbb$:0,name:null,ybb$:0},props:{zbb$:{get:function(){return null!=(this.handle||this.Handle)&&(this.handle||this.Handle)._destroyed}}},ctors:{init:function(){this.xbb$=-1}},methods:{vbb$:function(){return this.xbb$<0&&(this.xbb$=Lb$.Object.Wbb$++),this.xbb$},wbb$:function(){return!!this.zbb$}}}),$$sd("Fc$.Unity.Zb$",{statics:{methods:{a$:function(e,t){void 0===t&&(t=0),Fc$.Unity.Zb$.b$(Z$.ze$.toString(Fc$.Unity.Zb$.pD$,e),t)},b$:function(e,t){Lb$.GI$.b$(Z$.String.B$("[Analytics] {0}({1})\nLogEvent method is Not Implemented on this platform",e,t))}}}}),$$sd("Fc$.Unity.Zb$.pD$",{$kind:1006,statics:{fields:{a$:0,b$:1,c$:2,d$:3,e$:4,f$:5,g$:6,h$:7}}}),$$sd("Fc$.Unity.Jg$",{$kind:6,statics:{fields:{Mq$:0,Nq$:1,Oq$:2,Pq$:3,Qq$:4,Rq$:5,Sq$:6,Tq$:7,Uq$:8,Vq$:9,Wq$:10,Xq$:11,Yq$:12,Zq$:13,ar$:14,br$:15,cr$:16,dr$:17,er$:18,Nf$:19}}}),$$sd("Fc$.Unity.Kg$",{$kind:6,statics:{fields:{fr$:0,gr$:1,hr$:2,ir$:3,jr$:4,kr$:5,lr$:6}}}),$$sd("Fc$.Unity.DTO.a$.Object"),$$sd("Fc$.Unity.DTO.a$.sc$.jc$.mF$",{$kind:1002,fields:{name:null,a$:null},ctors:{init:function(){this.a$=new Lb$.Color}}}),$$sd("Fc$.Unity.DTO.a$.sc$.jc$.nF$",{$kind:1002,fields:{name:null,a$:0}}),$$sd("Fc$.Unity.DTO.a$.sc$.jc$.oF$",{$kind:1002,fields:{name:null,a$:!1}}),$$sd("Fc$.Unity.DTO.a$.sc$.jc$.pF$",{$kind:1002,fields:{name:null,a$:null}}),$$sd("Fc$.Unity.DTO.a$.sc$.jc$.qF$",{$kind:1002,fields:{name:null,a$:null},ctors:{init:function(){this.a$=new Lb$.Vector4}}}),$$sd("Fc$.Unity.DTO.a$.sc$.BF$",{fields:{a$:null,b$:null,c$:0,d$:0,e$:0,f$:0,g$:0,h$:0,i$:0,j$:0,k$:0,l$:!1,m$:!1,n$:0,o$:0,p$:0,q$:0,r$:0,s$:0,t$:!1,u$:0,v$:null,w$:!1,x$:0,y$:0,z$:0,A$:!1,B$:0,C$:0,D$:0,E$:!1,F$:0,G$:0,H$:0,I$:0,J$:0},ctors:{init:function(){this.v$=new Lb$.Vector3}}}),$$sd("Fc$.Unity.DTO.a$.sc$.pc$.FF$",{$kind:1002,fields:{a$:null,b$:null}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$.GF$",{$kind:1002,fields:{name:null,a$:0,b$:null,c$:null},ctors:{init:function(){this.b$=new Lb$.Vector4}}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$.qc$",{$kind:1002,fields:{id:0,a$:0,name:null,b$:0,c$:null,d$:!1,e$:null,f$:null,g$:null,h$:null,i$:null,j$:null,k$:null,l$:null,m$:null,n$:null,o$:null,p$:null,q$:null,r$:null,s$:null,t$:null,u$:null,v$:null,w$:null,x$:!1}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$.qc$.HF$",{$kind:1002,fields:{a$:null,b$:null,op:null},ctors:{ctor:function(){this.$initialize(),this.a$=new Fc$.Unity.DTO.a$.sc$.rc$.qc$.KF$,this.b$=new Fc$.Unity.DTO.a$.sc$.rc$.qc$.KF$,this.op=new Fc$.Unity.DTO.a$.sc$.rc$.qc$.KF$}}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$.qc$.IF$",{$kind:1002,fields:{a$:null,b$:!1}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$.qc$.JF$",{$kind:1002,fields:{a$:null,b$:null,c$:null,d$:null},ctors:{ctor:function(){this.$initialize(),this.a$=new Fc$.Unity.DTO.a$.sc$.rc$.qc$.KF$,this.b$=new Fc$.Unity.DTO.a$.sc$.rc$.qc$.KF$,this.c$=new Fc$.Unity.DTO.a$.sc$.rc$.qc$.KF$,this.d$=new Fc$.Unity.DTO.a$.sc$.rc$.qc$.KF$}}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$.qc$.Tag",{$kind:1002,fields:{name:null,a$:null}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$.qc$.KF$",{$kind:1002,fields:{a$:0,name:null}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$.qc$.LF$",{$kind:1002,fields:{a$:0,b$:0,c$:0,d$:null,e$:null,f$:null,g$:!1}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$.NF$",{$kind:1006,statics:{fields:{a$:0,b$:1,c$:2,d$:4}}}),$$sd("Fc$.Unity.DTO.a$.Ac$.zc$.lG$",{fields:{a$:0,b$:0}}),$$sd("Fc$.Unity.DTO.a$.Ac$.zc$.mG$",{fields:{a$:null,b$:0},ctors:{init:function(){this.a$=new Lb$.Color}}}),$$sd("Fc$.Unity.Dc$.qG$",{fields:{a$:null}}),$$sd("Fc$.Unity.Dc$.rG$",{methods:{a$:function(){return"ad"},b$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},c$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)}}}),$$sd("Fc$.Unity.Dc$.bv$",{inherits:[Z$.fu$],fields:{ba$:0,ca$:null},ctors:{ctor:function(e,t){this.$initialize(),Z$.fu$.ctor.call(this,t),this.ba$=e,this.ca$=t}}}),$$sd("Fc$.Unity.Dc$.sG$",{methods:{a$:function(){return"0"},b$:function(){return"Title"},c$:function(){return 0},d$:function(){return"Status"},e$:function(){return 0},f$:function(){return"0"}}}),$$sd("Fc$.Unity.Dc$.tG$",{methods:{a$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},b$:function(){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.sG$),Z$.Array.type(Fc$.Unity.Dc$.sG$))}}}),$$sd("Fc$.Unity.Dc$.uG$",{fields:{a$:null}}),$$sd("Fc$.Unity.Dc$.vG$",{methods:{a$:function(){return"CameraEffectID"}}}),$$sd("Fc$.Unity.Dc$.wG$",{methods:{a$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},b$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},c$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},d$:function(e){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.SG$),Z$.Array.type(Fc$.Unity.Dc$.SG$))},e$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},f$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},g$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)}}}),$$sd("Fc$.Unity.Dc$.xG$",{methods:{a$:function(){return"2"},b$:function(){return"Sarah Connor"},c$:function(){return"https://via.placeholder.com/128"}}}),$$sd("Fc$.Unity.Dc$.yG$",{methods:{a$:function(){return"1"},b$:function(){return Fc$.Unity.Dc$.Pg$.Fr$},c$:function(e,t){return new Fc$.Unity.Dc$.BG$},d$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},e$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},f$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},g$:function(){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.AG$),Z$.Array.type(Fc$.Unity.Dc$.AG$))}}}),$$sd("Fc$.Unity.Dc$.Og$",{$kind:6,statics:{fields:{Ar$:0,Br$:1,Cr$:2}}}),$$sd("Fc$.Unity.Dc$.zG$",{fields:{a$:null,b$:null,c$:0}}),$$sd("Fc$.Unity.Dc$.AG$",{methods:{a$:function(){return"2"},b$:function(){return"Sarah Connor"},c$:function(){return"https://via.placeholder.com/128"}}}),$$sd("Fc$.Unity.Dc$.BG$",{fields:{a$:!1,b$:0,c$:0}}),$$sd("Fc$.Unity.Dc$.Pg$",{$kind:6,statics:{fields:{po$:0,Dr$:1,Er$:2,Fr$:3}}}),$$sd("Fc$.Unity.Dc$.CG$",{fields:{a$:null,b$:null,c$:null}}),$$sd("Fc$.Unity.Dc$.DG$",{fields:{a$:null,b$:null,c$:null,d$:null,e$:null}}),$$sd("Fc$.Unity.Dc$.EG$",{fields:{a$:0,b$:null,c$:null}}),$$sd("Fc$.Unity.Dc$.FG$",{fields:{a$:0,b$:null,c$:null,d$:null,e$:null,f$:null,g$:null,h$:null,i$:0,j$:null}}),$$sd("Fc$.Unity.Dc$.Xv$",{inherits:[Z$.C$.w$.r$(Z$.String,Z$.String)]}),$$sd("Fc$.Unity.Dc$.Qg$",{$kind:6,statics:{fields:{xn$:0,Gr$:1,Hr$:2,Ir$:3,Jr$:4,Kr$:5,Lr$:6,Mr$:7,Nr$:8,Or$:9,Pr$:10,Qr$:11,Rr$:12,Sr$:13,Tr$:14,Ur$:15,Vr$:16,Wr$:17,Xr$:18,Yr$:19,Zr$:20,as$:21,bs$:22,cs$:23,ds$:24,es$:25,fs$:26}}}),$$sd("Fc$.Unity.Dc$.GG$",{statics:{fields:{E$:null,F$:null,G$:null,H$:null,I$:null,J$:null,K$:null,L$:null,M$:null,N$:null},ctors:{init:function(){this.E$=new Fc$.Unity.Dc$.VG$,this.F$=new Fc$.Unity.Dc$.yG$,this.G$=new Fc$.Unity.Dc$.UG$,this.H$=new Fc$.Unity.Dc$.fH$,this.I$=new Fc$.Unity.Dc$.tG$,this.J$=new Fc$.Unity.Dc$.dH$,this.K$=new Fc$.Unity.Dc$.wG$,this.L$=new Fc$.Unity.Dc$.gH$,this.M$=new Fc$.Unity.Dc$.ZG$,this.N$=new Fc$.Unity.Dc$.IG$}},methods:{a$:function(){return"en-US"},b$:function(){return Fc$.Unity.Dc$.Tg$.WEB},c$:function(){return""},d$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},e$:function(e){},f$:function(){return Z$.Array.init([],Z$.String)},g$:function(){return null},h$:function(){return Z$.E$.D$.tw$.dPa$(null,Z$.String)},i$:function(e){},j$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},k$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},l$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},m$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},n$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},o$:function(e,t){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},p$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},q$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},r$:function(){},s$:function(e,t,n){return null},t$:function(e){},u$:function(e){throw new Z$.ou$.$ctor1(Z$.ze$.toString(Fc$.Unity.Dc$.Qg$,Fc$.Unity.Dc$.Qg$.bs$))},v$:function(){throw new Z$.ou$.$ctor1(Z$.ze$.toString(Fc$.Unity.Dc$.Qg$,Fc$.Unity.Dc$.Qg$.Nr$))},w$:function(e){throw new Z$.ou$.$ctor1(Z$.ze$.toString(Fc$.Unity.Dc$.Qg$,Fc$.Unity.Dc$.Qg$.Jr$))},x$:function(e){throw new Z$.ou$.$ctor1(Z$.ze$.toString(Fc$.Unity.Dc$.Qg$,Fc$.Unity.Dc$.Qg$.Jr$))},y$:function(e,t,n){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},z$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},A$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.LG$,Fc$.Unity.Dc$.LG$)},B$:function(e){},C$:function(){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.eH$,Fc$.Unity.Dc$.eH$)},D$:function(){var e,t,n=0,i=new Z$.E$.D$.vw$,r=Bridge.fn.bind(this,(function(){try{for(;;)switch(n=Z$.Array.min([0,1],n)){case 0:if(e=Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean),n=1,e.isCompleted())continue;return void e.continue(r);case 1:return e.getAwaitedResult(),void i.b$(null);default:return void i.b$(null)}}catch(e){t=Z$.fu$.create(e),i.c$(t)}}),arguments);return r(),i.task}}}}),$$sd("Fc$.Unity.Dc$.HG$",{methods:{a$:function(){return"Squad ID"},b$:function(){return"John Doe"},c$:function(){return"Image URI"},d$:function(){return"Context ID"}}}),$$sd("Fc$.Unity.Dc$.IG$",{methods:{a$:function(e,t,n){return Z$.E$.D$.tw$.dPa$(n,Fc$.Unity.Dc$.Xv$)}}}),$$sd("Fc$.Unity.Dc$.Yv$",{inherits:[Z$.C$.w$.r$(Z$.String,System.Int32)]}),$$sd("Fc$.Unity.Dc$.Rg$",{$kind:6,statics:{fields:{gs$:0,hs$:1,is$:2,js$:3}}}),$$sd("Fc$.Unity.Dc$.JG$",{fields:{a$:null,b$:null,c$:null}}),$$sd("Fc$.Unity.Dc$.KG$",{fields:{a$:null}}),$$sd("Fc$.Unity.Dc$.LG$",{methods:{a$:function(){return"Leaderboard"},b$:function(){return"1"},c$:function(){return Z$.E$.D$.tw$.dPa$(0,Z$.Int32)},d$:function(e,t){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.MG$,Fc$.Unity.Dc$.MG$)},e$:function(){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.MG$,Fc$.Unity.Dc$.MG$)},f$:function(e,t){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.MG$),Z$.Array.type(Fc$.Unity.Dc$.MG$))},g$:function(e,t){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.MG$),Z$.Array.type(Fc$.Unity.Dc$.MG$))}}}),$$sd("Fc$.Unity.Dc$.MG$",{methods:{a$:function(){return 0},b$:function(){return"0"},c$:function(){return 1},d$:function(){return 1},e$:function(){return null},f$:function(){return new Fc$.Unity.Dc$.NG$}}}),$$sd("Fc$.Unity.Dc$.NG$",{methods:{a$:function(){return"John Doe"},b$:function(){return"https://via.placeholder.com/128"},c$:function(){return"0"}}}),$$sd("Fc$.Unity.Dc$.OG$",{fields:{a$:0,name:null,b$:null}}),$$sd("Fc$.Unity.Dc$.PG$",{fields:{a$:null}}),$$sd("Fc$.Unity.Dc$.QG$",{methods:{a$:function(){return"ID"},b$:function(){return"ContextID"},c$:function(){return Z$.E$.D$.tw$.dPa$(0,Fc$.Unity.Dc$.Sg$)},d$:function(){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.RG$),Z$.Array.type(Fc$.Unity.Dc$.RG$))}}}),$$sd("Fc$.Unity.Dc$.RG$",{methods:{a$:function(){return"ID"},b$:function(){return"Player Name"},c$:function(){return"Photo String"}}}),$$sd("Fc$.Unity.Dc$.Sg$",{$kind:6,statics:{fields:{ks$:0,ls$:1,ms$:2,ns$:3}}}),$$sd("Fc$.Unity.Dc$.SG$",{methods:{a$:function(){return"John Doe"},b$:function(){return 0},c$:function(){return"URL"},d$:function(){return"AuthorName"},e$:function(){return"Author Picture URL"},f$:function(){return"Custom Payload"},g$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)}}}),$$sd("Fc$.Unity.Dc$.TG$",{fields:{a$:null,b$:null}}),$$sd("Fc$.Unity.Dc$.Zv$",{inherits:[Z$.C$.w$.r$(Z$.String,Z$.String)]}),$$sd("Fc$.Unity.Dc$.UG$",{methods:{a$:function(){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.WG$),Z$.Array.type(Fc$.Unity.Dc$.WG$))},b$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.XG$,Fc$.Unity.Dc$.XG$)},c$:function(){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.XG$),Z$.Array.type(Fc$.Unity.Dc$.XG$))},d$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},e$:function(e){}}}),$$sd("Fc$.Unity.Dc$.Tg$",{$kind:6,statics:{fields:{IOS:0,os$:1,WEB:2,ps$:3}}}),$$sd("Fc$.Unity.Dc$.VG$",{methods:{a$:function(){return"0"},b$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.cH$,Fc$.Unity.Dc$.cH$)},c$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},d$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},e$:function(){return"John Doe"},f$:function(){return"https://via.placeholder.com/128"},g$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.Xv$,Fc$.Unity.Dc$.Xv$)},h$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},i$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},j$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.aw$,Fc$.Unity.Dc$.aw$)},k$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},l$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.aw$,Fc$.Unity.Dc$.aw$)},m$:function(){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.xG$),Z$.Array.type(Fc$.Unity.Dc$.xG$))}}}),$$sd("Fc$.Unity.Dc$.WG$",{fields:{a$:null,b$:null,c$:null,d$:null,e$:null,f$:null}}),$$sd("Fc$.Unity.Dc$.XG$",{fields:{a$:null,b$:null,c$:null,d$:null,e$:null,f$:null}}),$$sd("Fc$.Unity.Dc$.YG$",{fields:{a$:null,b$:null}}),$$sd("Fc$.Unity.Dc$.ZG$",{methods:{a$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},b$:function(){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.QG$,Fc$.Unity.Dc$.QG$)},c$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.vG$,Fc$.Unity.Dc$.vG$)},d$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)}}}),$$sd("Fc$.Unity.Dc$.aH$",{fields:{a$:0,b$:null,c$:null,d$:null}}),$$sd("Fc$.Unity.Dc$.bH$",{fields:{a$:0,b$:null}}),$$sd("Fc$.Unity.Dc$.cH$",{methods:{a$:function(){return"0"},b$:function(){return""}}}),$$sd("Fc$.Unity.Dc$.dH$",{methods:{a$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},b$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},c$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},d$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.HG$,Fc$.Unity.Dc$.HG$)},e$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.HG$,Fc$.Unity.Dc$.HG$)},f$:function(){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.HG$),Z$.Array.type(Fc$.Unity.Dc$.HG$))},g$:function(){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)}}}),$$sd("Fc$.Unity.Dc$.aw$",{inherits:[Z$.C$.w$.r$(Z$.String,System.Int32)]}),$$sd("Fc$.Unity.Dc$.eH$",{methods:{a$:function(){return"0"},b$:function(){return"0"},c$:function(){return 0},d$:function(){return"TitleID"},e$:function(){return null}}}),$$sd("Fc$.Unity.Dc$.fH$",{methods:{a$:function(e){return Z$.E$.D$.tw$.dPa$(0,Z$.Int32)},b$:function(e){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.eH$,Fc$.Unity.Dc$.eH$)},c$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},d$:function(e){return Z$.E$.D$.tw$.dPa$(!0,Z$.Boolean)},e$:function(){return Z$.E$.D$.tw$.dPa$(Z$.Array.init([],Fc$.Unity.Dc$.eH$),Z$.Array.type(Fc$.Unity.Dc$.eH$))}}}),$$sd("Fc$.Unity.Dc$.Ug$",{$kind:6,statics:{fields:{io$:0,qs$:1}}}),$$sd("Fc$.Unity.Dc$.Vg$",{$kind:6,statics:{fields:{rs$:0,ss$:1,ts$:2}}}),$$sd("Fc$.Unity.Dc$.gH$",{methods:{a$:function(e,t){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.hH$,Fc$.Unity.Dc$.hH$)}}}),$$sd("Fc$.Unity.Dc$.hH$",{methods:{a$:function(){return"ID"},b$:function(){return Z$.E$.D$.tw$.dPa$(new Fc$.Unity.Dc$.iH$,Fc$.Unity.Dc$.iH$)},c$:function(e){Lb$.GI$.b$("State")},d$:function(){Lb$.GI$.b$("Destroys Video")},e$:function(){return 0},f$:function(e){Lb$.GI$.b$(" Jump To TimeStamp")}}}),$$sd("Fc$.Unity.Dc$.iH$",{fields:{a$:null,b$:null,c$:null,d$:null,e$:null,f$:null,g$:null,h$:null,i$:null}}),$$sd("Fc$.Unity.Dc$.Wg$",{$kind:6,statics:{fields:{us$:0,vs$:1}}}),$$sd("Fc$.Unity.Xg$",{$kind:6,statics:{fields:{ws$:0,xs$:1,ys$:2}}}),$$sd("Fc$.Unity.jH$",{statics:{fields:{l$:null},events:{OnStart:null,OnPause:null,OnResume:null,OnResize:null,OnMute:null,OnUnmute:null,OnDeviceData:null},ctors:{init:function(){this.l$=function(){},Bridge.event(this,"OnStart",(function(){})),Bridge.event(this,"OnPause",(function(){})),Bridge.event(this,"OnResume",(function(){})),Bridge.event(this,"OnResize",(function(){})),Bridge.event(this,"OnMute",(function(){})),Bridge.event(this,"OnUnmute",(function(){})),Bridge.event(this,"OnDeviceData",(function(){}))}},methods:{a$:function(e){Fc$.Unity.jH$.l$=Bridge.fn.combine(Fc$.Unity.jH$.l$,e),Fc$.Unity.jH$.c$()},b$:function(e){Fc$.Unity.jH$.l$=Bridge.fn.remove(Fc$.Unity.jH$.l$,e)},c$:function(){},d$:function(){Lb$.GI$.b$("GameLoaded event is Not Implemented on this platform")},e$:function(){Lb$.GI$.b$("GameStarted event is Not Implemented on this platform")},f$:function(e){void 0===e&&(e=null),Lb$.GI$.b$("GameUpdated event is Not Implemented on this platform")},g$:function(){Lb$.GI$.b$("GamePaused event is Not Implemented on this platform")},h$:function(){Lb$.GI$.b$("GameResumed event is Not Implemented on this platform")},i$:function(e){void 0===e&&(e=null),Lb$.GI$.b$("GameEnded event is Not Implemented on this platform")},j$:function(e){void 0===e&&(e=null),Lb$.GI$.b$("LevelChanged event is Not Implemented on this platform")},k$:function(e){Lb$.GI$.b$("HapticTriggered event is Not Implemented on this platform")}}}}),$$sd("Fc$.Unity.kH$",{statics:{props:{b$:{get:function(){return!!navigator.share}}},methods:{a$:function(e,t,n){navigator.share({title:e,text:t,url:n})}}}}),$$sd("Fc$.Unity.Ec$",{statics:{methods:{a$:function(e,t){void 0===t&&(t=null),Lb$.GI$.k$("${0} event is Not Implemented on this platform",[Z$.ze$.toString(Fc$.Unity.Ec$.lH$,e)])},b$:function(e,t,n){void 0===n&&(n=null),Lb$.GI$.k$("Custom event ${0} is Not Implemented on this platform",[t])}}}}),$$sd("Fc$.Unity.Ec$.lH$",{$kind:1006,statics:{fields:{a$:0,b$:1,c$:2,d$:3,e$:4,f$:5,g$:6,h$:7}}}),$$sd("Fc$.Unity.mH$",{statics:{fields:{d$:0},methods:{a$:function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),Lb$.GI$.b$("InstallFullGame is Not Implemented on this platform")},b$:function(e,t){switch(e){case Fc$.Unity.Kg$.gr$:Fc$.Unity.jH$.addOnPause(t);break;case Fc$.Unity.Kg$.hr$:Fc$.Unity.jH$.addOnResume(t);break;case Fc$.Unity.Kg$.ir$:Fc$.Unity.jH$.addOnResize(t);break;case Fc$.Unity.Kg$.jr$:Fc$.Unity.jH$.addOnMute(t);break;case Fc$.Unity.Kg$.kr$:Fc$.Unity.jH$.addOnUnmute(t)}},c$:function(e,t){switch(e){case Fc$.Unity.Kg$.fr$:Fc$.Unity.jH$.addOnStart(t);break;case Fc$.Unity.Kg$.lr$:Fc$.Unity.jH$.addOnDeviceData(t)}}}}}),$$sd("Fc$.Unity.Yg$",{$kind:6,statics:{fields:{zs$:0,As$:1,Bs$:2,Cs$:3,Ds$:4,Es$:5,Fs$:6,Gs$:7,Hs$:8}}}),$$sd("Lc$.Gc$",{statics:{props:{q$:{get:function(){return window.$application}}}},fields:{i$:null,j$:null,k$:null,l$:null,m$:null,n$:null,o$:null,p$:!1},events:{OnLoadProgress:null},ctors:{init:function(){this.o$=new Lc$.Hc$.oH$,Bridge.event(this,"OnLoadProgress",(function(){}))},ctor:function(e,t,n){this.$initialize(),window.$application=this,this.k$=e,this.n$=n,this.l$=new Lc$.Jc$.pH$(this),this.m$=new Lc$.Kc$.xH$(Bridge.toString(t.baseUrl),t.resourceConfig),Lb$.db$.sK$.N$=Z$.Array.init([],Lc$.Jc$.Scene);var i=t.playerPrefs;null==i||Bridge.cast(i,Z$.Boolean)||Lb$.La$.i$()}},methods:{a$:function(e){e.systems.add(new pc.CameraComponentSystem(e)),e.systems.add(new pc.LightComponentSystem(e)),e.systems.add(new pc.ScreenComponentSystem(e)),e.systems.add(new pc.ElementComponentSystem(e)),e.systems.add(new pc.UnityComponentSystemManagerSystem(e)),e.systems.add(new pc.MeshFilterComponentSystem(e)),e.systems.add(new pc.RendererComponentSystem(e)),e.systems.add(new pc.AudioSourceUnitySystem(e)),e.systems.add(new pc.MonoBehaviourSystem(e)),e.systems.add(new pc.PhysicsSystem(e)),e.systems.add(new pc.RigidbodySystem(e)),e.systems.add(new pc.ColliderSystem(e)),e.systems.add(new pc.JointSystem(e)),e.systems.add(new pc.Physics2DSystem(e)),e.systems.add(new pc.Rigidbody2DSystem(e)),e.systems.add(new pc.Collider2DSystem(e)),e.systems.add(new pc.Joint2DSystem(e)),e.systems.add(new pc.Effector2DSystem(e)),e.systems.add(new pc.ParticleSystemSystem(e)),e.systems.add(new pc.ParticleSystemRendererSystem(e)),e.systems.add(new pc.AnimatorSystem(e)),e.systems.add(new pc.ReflectionProbeSystem(e)),e.systems.add(new pc.AnimationSystem(e)),e.systems.add(new pc.VideoPlayerSystem(e)),e.systems.add(new pc.CanvasRendererSystem(e)),e.systems.add(new pc.SortingGroupComponentSystem(e)),e.systems.add(new pc.SkyboxComponentSystem(e))},b$:function(e){var t={},n=new pc.Keyboard(document.body);return t.keyboard=n,t.graphicsDevice=new pc.GraphicsDevice(e,{disableAntiAliasing:Deserializers.disableAntiAliasing,enableAutoInstancing:pc.ProjectSettings.instance.enableAutoInstancing,preferWebGl2:Deserializers.preferWebGl2}),t.audioManager=new pc.SoundManager(e),Lb$.gJ$.D$=n,t},c$:function(){var e,t,n,i=0,r=new Z$.E$.D$.vw$,s=Bridge.fn.bind(this,(function(){try{for(;;)switch(i=Z$.Array.min([1,2,3,4],i)){case 1:if(e=this.LoadProjectSettingsAsync(),i=2,e.isCompleted())continue;return void e.continue(s);case 2:e.getAwaitedResult(),this.app=new pc.Application(this.canvas,this.GetApplicationOptions(this.canvas)),this.InitializeSystems(this.app),this.graphicsDevice=this.app.graphicsDevice,Lb$.WI$.p$=this.graphicsDevice,this.graphicsDevice.gl.frontFace(this.graphicsDevice.gl.CW),this.graphicsDevice.gl.depthFunc(this.graphicsDevice.gl.LEQUAL),i=4;continue;case 3:throw Lb$.GI$.g$(t),t;default:return void r.b$(null)}}catch(e){if(n=Z$.fu$.create(e),i>=1&&i<=2)return t=n,i=3,void s();r.c$(n)}}),arguments);return s(),r.task},d$:function(e){var t,n=0,i=Bridge.fn.bind(this,(function(){for(;;)switch(n=Z$.Array.min([0,1],n)){case 0:if(this.app.installPlayroundOverrides(),t=this.Start(),n=1,t.isCompleted())continue;return void t.continue(i);case 1:return t.getAwaitedResult(),void e();default:return}}),arguments);i()},e$:function(){var e,t,n,i,r,s,a,o,l,c,u,h,d=0,m=new Z$.E$.D$.vw$,g=Bridge.fn.bind(this,(function(){try{for(;;)switch(d=Z$.Array.min([1,2,3,4,5,6],d)){case 1:if(Lb$.QK$.c$(),this.app.start(),this.app.mimicUnityMouse(),this.app.initializeBuiltInTextures(),pc.Vec2.equals(this.startupScene.FixedResolution,null)||(s=Z$.Nullable.getValue(this.startupScene.FixedResolution).$clone(),this.app.setCanvasFillMode(pc.FILLMODE_NONE,s.x,s.y),this.app.setCanvasResolution(pc.RESOLUTION_FIXED,s.x,s.y)),null!=this.startupScene.TargetAspect?(pc.Vec2.equals(this.startupScene.MinimumResolution,null)||(this.app.minimumResolution=Z$.Nullable.getValue(this.startupScene.MinimumResolution).$clone()),this.app.setCanvasFillMode(pc.FILLMODE_KEEP_ASPECT,window.innerWidth,window.innerHeight),this.app.targetAspect=Z$.Nullable.getValue(this.startupScene.TargetAspect)):(this.app.setCanvasFillMode(pc.FILLMODE_FILL_WINDOW),this.app.setCanvasResolution(pc.RESOLUTION_AUTO)),window.onresize=Bridge.fn.bind(this,(function(e){this.app._fillMode!==pc.FILLMODE_NONE&&(this.app.setCanvasFillMode(this.app._fillMode,window.innerWidth,window.innerHeight),window.requestAnimationFrame(Bridge.fn.bind(this,(function(){this.app.setCanvasFillMode(this.app._fillMode,window.innerWidth,window.innerHeight)}))))})),window.onfocus=Bridge.fn.bind(this,(function(e){this.app.events.fire("focus")})),window.onblur=Bridge.fn.bind(this,(function(e){this.app.events.fire("blur")})),Lb$.gJ$.m$(this.app),e=this.network.GetJsonAsync("assets/shaders.json"),d=2,e.isCompleted())continue;return void e.continue(g);case 2:if(t=e.getAwaitedResult(),window.ShaderProgramsLibrary=t,n=this.network.GetJsonAsync("assets/bundles.json"),d=3,n.isCompleted())continue;return void n.continue(g);case 3:if(i=n.getAwaitedResult(),a=i,Lc$.Jc$.Bundle.configure(this,a),(o=Lc$.Jc$.Bundle.new(this.startupScene.AssetBundleId)).onProgress=Bridge.fn.bind(this,(function(e){this.OnLoadProgress(e)})),r=o._loadAsync(),d=4,r.isCompleted())continue;return void r.continue(g);case 4:if(r.getAwaitedResult(),0===(l=Lb$.db$.sK$.N$).length||null==l[0])throw new Z$.ou$.$ctor1("No scenes in build settings");this.app.initializeRenderer(),this.LoadInitialScene(null!=(c=this.startupScene.SceneName)?c:l[0].name),Lc$.Jc$.Bundle.cleanup(),this.LoadingCompleted=!0,d=6;continue;case 5:Lb$.GI$.g$(u),h=null,d=6;continue;default:return void m.b$(null)}}catch(e){if(h=Z$.fu$.create(e),d>=1&&d<=4)return u=h,d=5,void g();m.c$(h)}}),arguments);return g(),m.task},f$:function(e){Lb$.db$.sK$.o$(e,Lb$.db$.up$.Rja$)},h$:function(){var e,t,n,i,r,s=0,a=new Z$.E$.D$.vw$,o=Bridge.fn.bind(this,(function(){try{for(;;)switch(s=Z$.Array.min([0,1,2],s)){case 0:if(e=this.network.GetJsonAsync("assets/bundles.json"),s=1,e.isCompleted())continue;return void e.continue(o);case 1:if(t=e.getAwaitedResult(),i=t,n=Lc$.Jc$.Bundle.loadProjectSettingsAsync(this,i),s=2,n.isCompleted())continue;return void n.continue(o);case 2:return n.getAwaitedResult(),void a.b$(null);default:return void a.b$(null)}}catch(e){r=Z$.fu$.create(e),a.c$(r)}}),arguments);return o(),a.task}}}),$$sd("Lc$.Gc$.nH$",{$kind:1002,statics:{props:{}},fields:{a$:null,b$:null,c$:null,d$:null,e$:null},ctors:{ctor:function(e,t,n,i,r){void 0===n&&(n=null),void 0===i&&(i=null),void 0===r&&(r=null),this.$initialize(),this.a$=e,this.b$=t,this.c$=Z$.Nullable.lift1("$clone",n),this.e$=Z$.Nullable.lift1("$clone",i),this.d$=r}}}),$$sd("Lc$.Hc$.oH$",{fields:{b$:0},events:{MasterVolumeChanged:null},props:{c$:{get:function(){return this.b$}}},ctors:{init:function(){this.b$=1,Bridge.event(this,"MasterVolumeChanged",(function(){}))}},methods:{a$:function(e){this.b$=e,this.MasterVolumeChanged(this.b$)}}}),$$sd("Lc$.Jc$.Ic$",{fields:{j$:null,k$:null,l$:!1},ctors:{init:function(){this.j$={},this.l$=!1}},methods:{a$:function(e,t){if(!e)throw new Z$.fu$("Trying to store an object without id");return this.l$||this.d$(e),this.j$[e]=t,t.$id=e,t},b$:function(e){if(!e)throw new Lc$.Jc$.Ic$.dv$;Lc$.Gc$.q$.p$&&this.i$();var t=this.j$[e]||null;if(null!=t)return t;if(null==this.k$)throw new Lc$.Jc$.Ic$.dv$;return this.k$.b$(e)},c$:function(e){if(!e)throw new Z$.fu$("Trying to release an object without id");Lc$.Gc$.q$.p$&&this.i$();var t=this.j$[e]||null;return this.j$[e]=null,t},d$:function(e){if(!e)return null;Lc$.Gc$.q$.p$&&this.i$();var t=this.j$[e]||null;return null!=t?t:null!=this.k$?this.k$.d$(e):null},e$:function(e){return!!e&&(Lc$.Gc$.q$.p$&&this.i$(),!!this.j$[e]||null!=this.k$&&this.k$.e$(e))},f$:function(){var e;return(e=new Lc$.Jc$.Ic$).parent=this,e},g$:function(){return this.l$=!0,this},h$:function(){this.j$={}},i$:function(){}}}),$$sd("Lc$.Jc$.Ic$.dv$",{inherits:[Z$.fu$],$kind:1002}),$$sd("Lc$.Jc$.pH$",{fields:{a$:null,b$:null},props:{c$:{get:function(){return this.b$}}},ctors:{ctor:function(e){this.$initialize(),this.a$=e,this.b$=new Lc$.Jc$.Ic$}}}),$$sd("Lc$.Kc$.rH$",{methods:{a$:function(e){var t=new Z$.E$.D$.vw$,n=Bridge.global.blobs[e];return t.b$(null==n?new ArrayBuffer:n),t.task},b$:function(e){var t=new Z$.E$.D$.vw$,n=Bridge.global.sounds[e];return t.b$(null==n?new ArrayBuffer:n),t.task}}}),$$sd("Lc$.Kc$.sH$",{fields:{name:null}}),$$sd("Lc$.Kc$.vH$",{statics:{fields:{j$:null,k$:0},ctors:{init:function(){this.j$="(assets[\\-staging|\\-uat]*)(\\.lunalabs\\.io)",this.k$=32}}},fields:{h$:null,i$:0},ctors:{ctor:function(e){this.$initialize(),this.h$=e}},methods:{a$:function(e){var t,n=new Z$.E$.D$.vw$,i=((t=new XMLHttpRequest).responseType="json",t);return i.onload=function(e){i.onload=null,i.onerror=null,i.onabort=null,i.status>=200&&i.status<400?n.b$(i.response):n.c$(new Z$.fu$(404===i.status?Lc$.Kc$.xH$.k$:Lc$.Kc$.xH$.m$))},i.onerror=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.m$))},i.onabort=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.l$))},i.open("GET",this.f$(e)),i.send(),n.task},b$:function(e){var t,n=new Z$.E$.D$.vw$,i=((t=new XMLHttpRequest).responseType="arraybuffer",t);return i.onload=function(e){i.onload=null,i.onerror=null,i.onabort=null,i.status>=200&&i.status<400?n.b$(i.response):n.c$(new Z$.fu$(404===i.status?Lc$.Kc$.xH$.k$:Lc$.Kc$.xH$.m$))},i.onerror=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.m$))},i.onabort=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.l$))},i.open("GET",this.f$(e)),i.send(),n.task},c$:function(e){var t,n=new Z$.E$.D$.vw$,i=((t=new XMLHttpRequest).responseType="arraybuffer",t),r=new Image;return r.crossOrigin="anonymous",i.onload=function(e){var t=i.getResponseHeader("Content-Type");if(Z$.String.iJa$(t)&&(t="image/jpeg"),Z$.String.pJa$(t,";")&&(t=t.substr(0,Z$.String.indexOf(t,";"))),i.onload=null,i.onerror=null,i.onabort=null,i.status>=200&&i.status<400){var s=new Blob(Z$.Array.init([i.response],Z$.Object),{type:t});r.src=URL.createObjectURL(s)}else n.c$(new Z$.fu$(404===i.status?Lc$.Kc$.xH$.k$:Lc$.Kc$.xH$.m$))},i.onerror=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.m$))},i.onabort=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.l$))},i.open("GET",this.f$(e)),i.send(),r.onload=function(e){r.onload=null,n.b$(r)},n.task},d$:function(e){var t,n=new Z$.E$.D$.vw$,i=((t=new XMLHttpRequest).responseType="arraybuffer",t);return i.onload=function(e){i.onload=null,i.onerror=null,i.onabort=null,i.status>=200&&i.status<400?n.b$(i.response):n.c$(new Z$.fu$(404===i.status?Lc$.Kc$.xH$.k$:Lc$.Kc$.xH$.m$))},i.onerror=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.m$))},i.onabort=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.l$))},i.open("GET",this.f$(e)),i.send(),n.task},e$:function(e){var t,n=new Z$.E$.D$.vw$,i=((t=new XMLHttpRequest).responseType="arraybuffer",t),r=document.createElement("video");return i.onload=function(e){var t=i.getResponseHeader("Content-Type");if(Z$.String.iJa$(t)&&(t="video/mp4"),Z$.String.pJa$(t,";")&&(t=t.substr(0,Z$.String.indexOf(t,";"))),i.onload=null,i.onerror=null,i.onabort=null,i.status>=200&&i.status<400){var s=new Blob(Z$.Array.init([i.response],Z$.Object),{type:t});r.src=URL.createObjectURL(s),r.autoplay=!1,r.loop=!1,r.muted=!0,r.crossOrigin="anonymous",r.setAttribute("playsinline",""),r.setAttribute("type",t),r.setAttribute("muted",""),r.readyState>=2?n.b$(r):(r.load(),r.onloadeddata=function(e){r.onloadeddata=null,n.b$(r)})}else n.c$(new Z$.fu$(404===i.status?Lc$.Kc$.xH$.k$:Lc$.Kc$.xH$.m$))},i.onerror=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.m$))},i.onabort=function(e){i.onload=null,i.onerror=null,i.onabort=null,n.c$(new Z$.fu$(Lc$.Kc$.xH$.l$))},i.open("GET",this.f$(e)),i.send(),n.task},f$:function(e){var t=window.location.href,n=Bridge.referenceEquals(this.h$,"./")?(t.substr(0,Z$.String.lastIndexOf(t,"/",this.length-1,this.length,4))||"")+"/":this.h$,i=Z$.String.startsWith(e,"http://")||Z$.String.startsWith(e,"https://")?e:(n||"")+(e||"");return this.g$(i)},g$:function(e){return this.i$=(this.i$+1)%Lc$.Kc$.vH$.k$,e.replace(Lc$.Kc$.vH$.j$,Z$.String.B$("$1-{0}$2",[this.i$]))}}}),$$sd("Lc$.Kc$.wH$",{statics:{methods:{f$:function(e){for(var t=(e=window.atob(e)).length,n=new Uint8Array(t),i=0;i<t;i++)n[i]=e.charCodeAt(i);return n.buffer}}},methods:{a$:function(e){var t=new Z$.E$.D$.vw$;return t.b$(Bridge.global.jsons[e]),t.task},b$:function(e){var t=new Z$.E$.D$.vw$,n=Bridge.global.blobs[e];return t.b$(null==n?new ArrayBuffer:Lc$.Kc$.wH$.f$(Bridge.toString(n))),t.task},c$:function(e){var t=new Z$.E$.D$.vw$,n=document.getElementById(e);return n.complete?t.b$(n):n.onload=function(e){t.b$(n)},t.task},d$:function(e){var t=new Z$.E$.D$.vw$,n=Bridge.global.sounds[e];return t.b$(null==n?new ArrayBuffer:Lc$.Kc$.wH$.f$(Bridge.toString(n))),t.task},e$:function(e){var t=new Z$.E$.D$.vw$,n=document.getElementById(e);return n.onloadeddata=function(e){t.b$(n)},n.load(),t.task}}}),$$sd("Lc$.Kc$.xH$",{statics:{fields:{k$:null,l$:null,m$:null},ctors:{init:function(){this.k$="NOT_FOUND",this.l$="ABORTED",this.m$="UNKNOWN_ERROR"}}},fields:{f$:null,g$:null,h$:null,i$:null,j$:null},ctors:{ctor:function(e,t){this.$initialize(),this.f$=e,this.j$=t,this.h$=new Lc$.Kc$.vH$(e),this.g$=new Lc$.Kc$.wH$,this.i$=new Lc$.Kc$.rH$}},methods:{a$:function(e){return"inline"===this.j$.json?this.g$.a$(e):this.h$.a$(e)},b$:function(e){switch(this.j$.blob){case"inline":return this.g$.b$(e);case"compress":return this.i$.a$(e);default:return this.h$.b$(e)}},c$:function(e){switch(this.j$.image){case"compressed":case"inline":return this.g$.c$(e);default:return this.h$.c$(e)}},d$:function(e){switch(this.j$.sound){case"inline":return this.g$.d$(e);case"compress":return this.i$.b$(e);default:return this.h$.d$(e)}},e$:function(e){switch(this.j$.video){case"compress":case"inline":return this.g$.e$(e);default:return this.h$.e$(e)}}}}),$$sd("Lc$.Kc$.yH$",{statics:{methods:{a$:function(e){return e.isPrefabProxy}}}}),$$sd("Lb$.Th$",{$kind:6,statics:{fields:{Ja$:0,Cx$:1,Dx$:2,Ex$:4,jj$:8,Fx$:16}}}),$$sd("Lb$.ja$.PH$",{$kind:1002,fields:{a$:null,b$:null},ctors:{init:function(){this.a$={},this.b$={}}}}),$$sd("Lb$.ka$.SH$",{fields:{i$:null,j$:0,k$:null,l$:null,m$:null,n$:null,o$:null,p$:null,q$:null,r$:null,s$:null},ctors:{},methods:{}}),$$sd("Lb$.VH$",{statics:{fields:{u$:0,v$:0,w$:!1,x$:null,y$:!1,z$:null},events:{logMessageReceivedThreaded:null,logMessageReceived:null,lowMemory:null},props:{A$:{get:function(){return 60},set:function(e){60!==e&&Lb$.GI$.c$(Z$.String.B$("Application asks for {0} FPS - Luna only runs at 60",[e]))}},B$:{get:function(){}},C$:{get:function(){}},D$:{get:function(){return""}},E$:{get:function(){}},F$:{get:function(){}},G$:{get:function(){}},H$:{get:function(){return!1}},I$:{get:function(){return!0}},J$:{get:function(){return!1}},K$:{get:function(){return pc.Application.getApplication().isFocused()}},L$:{get:function(){return Lb$.VH$.w$},set:function(e){Lb$.VH$.w$=!1}},M$:{get:function(){}},N$:{get:function(){var e=Z$.I$.Enumerable.from(document.getElementsByTagName("meta"),HTMLElement).where((function(e){return Bridge.referenceEquals(e.getAttribute("name"),"version")})).firstOrDefault(null,null);return null!=e?e.getAttribute("value"):null}},O$:{get:function(){return Deserializers.unityVersion}},P$:{get:function(){return Deserializers.productName}},Q$:{get:function(){return Deserializers.buildID}},R$:{get:function(){return Deserializers.companyName}},S$:{get:function(){return Deserializers.lunaInitializationTime}},T$:{get:function(){return Deserializers.lunaDaysRunning}},U$:{get:function(){return Deserializers.lunaVersion}},V$:{get:function(){return Deserializers.lunaSHA}},W$:{get:function(){return Deserializers.packagesInfo}},X$:{get:function(){return Deserializers.externalJsLibraries}},Y$:{get:function(){return Deserializers.buildPlatform}},Z$:{get:function(){return Deserializers.base64Enabled}},aa$:{get:function(){return Deserializers.minifyEnabled}},ba$:{get:function(){return Deserializers.isForceUncompressed}},ca$:{get:function(){return Deserializers.isAntiAliasingEnabled}},da$:{get:function(){return Deserializers.isRuntimeAnalysisEnabledForCode}},ea$:{get:function(){return Deserializers.runtimeAnalysisExcludedClassesCount}},fa$:{get:function(){return Deserializers.runtimeAnalysisExcludedMethodsCount}},ga$:{get:function(){return Deserializers.runtimeAnalysisExcludedModules}},ha$:{get:function(){return Deserializers.isRuntimeAnalysisEnabledForShaders}},ia$:{get:function(){return Deserializers.isRealtimeShadowsEnabled}},ja$:{get:function(){return Deserializers.isReferenceAmbientProbeBaked}},ka$:{get:function(){return Deserializers.isLunaCompilerV2Used}},la$:{get:function(){}},ma$:{get:function(){}},na$:{get:function(){},set:function(e){}},oa$:{get:function(){},set:function(e){}},pa$:{get:function(){},set:function(e){}},qa$:{get:function(){},set:function(e){}},ra$:{get:function(){},set:function(e){}},sa$:{get:function(){return!1}},ta$:{get:function(){return window.location.href}},ua$:{get:function(){return Deserializers.applicationIdentifier}},va$:{get:function(){return Deserializers.lunaAppID}},wa$:{get:function(){return Deserializers.creativeName}},xa$:{get:function(){return Deserializers.projectId}},ya$:{get:function(){return Deserializers.androidLink}},za$:{get:function(){return Deserializers.iosLink}},Aa$:{get:function(){}},Ba$:{get:function(){}},Ca$:{get:function(){}},Da$:{get:function(){}}},ctors:{init:function(){this.v$=Lb$.Nq$.jj$,this.w$=!1,this.y$=!0,this.z$=window.$environment.baseUrl+"StreamingAssets"},ctor:function(){document.addEventListener("focusChange",(e=>{this.a$(e.detail.isFocused)}))}},methods:{a$:function(e){Bridge.staticEquals(Lb$.VH$.x$,null)||Lb$.VH$.x$(e)},b$:function(e){var t=window.open(e,"_blank");t&&t.focus()},c$:function(e){Lb$.db$.sK$.k$(e)},d$:function(e){Lb$.db$.sK$.i$(e)},e$:function(e){return Lb$.db$.sK$.p$(e,Lb$.db$.up$.Wa$)},f$:function(e){return Lb$.db$.sK$.o$(e,Lb$.db$.up$.Wa$)},g$:function(e){},h$:function(){},i$:function(e){},j$:function(e){},k$:function(e){},l$:function(){},m$:function(e){return null!=Lb$.db$.sK$.f$(e)},n$:function(e){return null!=Lb$.db$.sK$.e$(e)},o$:function(e){},p$:function(functionName,args){void 0===args&&(args=[]);var contexts=functionName.split("."),self=contexts.slice(0,contexts.length-1).join(".");eval(functionName).apply(eval(self),args)},q$:function(script){eval(script)},r$:function(){},s$:function(e,t){},t$:function(){console.log("%c ProductName: %c"+Lb$.VH$.P$,"color: #bada55","color: #ffaa80"),console.log("%c CompanyName: %c"+Lb$.VH$.R$,"color: #bada55","color: #ffaa80"),console.log("%c ApplicationID: %c"+Lb$.VH$.va$,"color: #bada55","color: #ffaa80"),console.log("%c CreativeName: %c"+Lb$.VH$.wa$,"color: #bada55","color: #ffaa80"),console.log("%c UnityVersion: %c"+Lb$.VH$.O$,"color: #bada55","color: #ffaa80"),console.log("%c BuildPlatform: %c"+Lb$.VH$.Y$,"color: #bada55","color: #ffaa80"),console.log(`%c LunaPackage: %c${Lb$.VH$.U$} (${Lb$.VH$.V$})`,"color: #bada55","color: #ffaa80"),console.log(`%c LunaInitializationTime: %c${Lb$.VH$.S$} ${Lb$.VH$.T$} day(s) running`,"color: #bada55","color: #ffaa80");const e="ironsource"===window.$environment.targetPlatform;console.log(`%c AdNetworkPlatform: %c${window.$environment.targetPlatform} API: ${e?0===window.$environment.packageConfig.apiType?"DAPI":"Nucleo":"MRAID"}`,"color: #bada55","color: #ffaa80"),console.log("%c ProjectID: %c"+Lb$.VH$.xa$,"color: #bada55","color: #ffaa80"),console.log("%c BuildID: %c"+Lb$.VH$.Q$,"color: #bada55","color: #ffaa80"),console.log("%c AndroidStoreLink: %c"+Lb$.VH$.ya$,"color: #bada55","color: #ffaa80"),console.log("%c IosStoreLink: %c"+Lb$.VH$.za$,"color: #bada55","color: #ffaa80"),console.log("%c ColorSpace: %c"+Z$.ze$.D$(Lb$.rj$,pc.ProjectSettings.instance.desiredColorSpace),"color: #bada55","color: #ffaa80"),window.lunaStartup?console.log(`%c AverageStartup: %c${window.lunaStartup.measuredTime.avgStartupTime}ms`,"color: #bada55","color: #ffaa80"):console.log("%c AverageStartup: %cWorks only with /?startup key","color: #bada55","color: #ffaa80"),console.log("%c BaseEncoding: %c"+("True"===Lb$.VH$.Z$?"Base64":"Base122"),"color: #bada55","color: #ffaa80"),console.log("%c MinifyEnabled: %c"+Lb$.VH$.aa$,"color: #bada55","color: #ffaa80"),console.log("%c ForceUncompressed: %c"+Lb$.VH$.ba$,"color: #bada55","color: #ffaa80"),console.log("%c AntiAliasingEnabled: %c"+Lb$.VH$.ca$,"color: #bada55","color: #ffaa80"),console.log("%c LunaCompilerV2: %c"+Lb$.VH$.ka$,"color: #bada55","color: #ffaa80"),console.log("%c ---RuntimeAnalysis---","color: #bada55"),console.log("%c CodeStrippingEnabled: %c"+Lb$.VH$.da$,"color: #bada55","color: #ffaa80"),console.log("%c ExcludedClassesCount: %c"+Lb$.VH$.ea$,"color: #bada55","color: #ffaa80"),console.log("%c ExcludedMethodsCount: %c"+Lb$.VH$.fa$,"color: #bada55","color: #ffaa80"),console.log("%c ExcludedModules: %c"+Lb$.VH$.ga$,"color: #bada55","color: #ffaa80"),console.log("%c ShaderStrippingEnabled: %c"+Lb$.VH$.ha$,"color: #bada55","color: #ffaa80");var t=pc.UnityShader.generateReport();console.log("%c ShadersCount: %c"+t.unityShadersCount,"color: #bada55","color: #ffaa80"),console.log("%c VariantsCount: %c"+t.totalVariantsCount,"color: #bada55","color: #ffaa80"),console.log(`%c ShaderProgramsCount: %cVertex: ${t.vertexShadersCount} Fragment: ${t.fragmentShadersCount}`,"color: #bada55","color: #ffaa80"),console.log("%c ---TechnicalPerformance---","color: #bada55");var n=window.app.app.counters.previous,i=n.times.frame;console.log("%c RealtimeShadowsEnabled: %c"+Lb$.VH$.ia$,"color: #bada55","color: #ffaa80"),console.log("%c BakeReferenceAmbientProbe: %c"+Lb$.VH$.ja$,"color: #bada55","color: #ffaa80"),console.log("%c DrawCalls: %c"+n.drawCalls,"color: #bada55","color: #ffaa80"),console.log(`%c FrameTime: %c${i.toFixed(2)}ms`,"color: #bada55","color: #ffaa80"),console.log(`%c RenderTime: %c${n.times.render.toFixed(2)}ms ${(n.times.render/i*100).toFixed(2)}% of frame time`,"color: #bada55","color: #ffaa80"),console.log(`%c ScriptsTime: %c${n.times.scripts.toFixed(2)}ms ${(n.times.scripts/i*100).toFixed(2)}% of frame time`,"color: #bada55","color: #ffaa80"),console.log(`%c AnimationsTime: %c${n.times.animations.toFixed(2)}ms ${(n.times.animations/i*100).toFixed(2)}% of frame time`,"color: #bada55","color: #ffaa80"),console.log(`%c AnimatorsTime: %c${n.times.animators.toFixed(2)}ms ${(n.times.animators/i*100).toFixed(2)}% of frame time`,"color: #bada55","color: #ffaa80"),console.log(`%c Physics2DTime: %c${n.times.physics2d.toFixed(2)}ms ${(n.times.physics2d/i*100).toFixed(2)}% of frame time`,"color: #bada55","color: #ffaa80"),console.log(`%c PhysicsTime: %c${n.times.physics.toFixed(2)}ms ${(n.times.physics/i*100).toFixed(2)}% of frame time`,"color: #bada55","color: #ffaa80"),console.log("%c ---MemoryUsage---","color: #bada55");try{console.log(`%c HeapLimit: %c${(performance.memory.jsHeapSizeLimit/1e6).toFixed(2)} MB`,"color: #bada55","color: #ffaa80"),console.log(`%c TotalHeapSize: %c${(performance.memory.totalJSHeapSize/1e6).toFixed(2)} MB`,"color: #bada55","color: #ffaa80"),console.log(`%c UsedHeapSize: %c${(performance.memory.usedJSHeapSize/1e6).toFixed(2)} MB`,"color: #bada55","color: #ffaa80")}catch(e){console.log("Memory measurements are supported for Chrome (v7+, v18+ android), Edge (v79+), Opera (v15+, v14+ android), Samsung Internet (v1.0+), WebView Android (v37+) ")}console.log("%c ---DebugInfo---","color: #bada55"),console.log("%c WebglVersion used: %c"+window.app.graphicsDevice.gl.getParameter(window.app.graphicsDevice.gl.VERSION),"color: #bada55","color: #ffaa80"),console.log("%c Webgl supported: %c"+window.app.app.counters.webglVersion,"color: #bada55","color: #ffaa80");var r=window.app.app.counters.webglExtensions.toString().replaceAll(",","\n ");console.log("%c WebglExtensions:\n %c"+r,"color: #bada55","color: #ffaa80"),console.log("%c PackagesInfo:\n%c"+Lb$.VH$.W$,"color: #bada55","color: #ffaa80"),console.log("%c ExternalJSLibraries:\n %c"+Lb$.VH$.X$,"color: #bada55","color: #ffaa80"),console.log("%c CDN: %c"+window.$environment.baseUrl,"color: #bada55","color: #ffaa80")}}}}),$$sd("Lb$.WH$",{fields:{a$:null,b$:0,c$:0,d$:null,e$:!1},ctors:{init:function(){this.b$=0,this.c$=0,this.e$=!1}}}),$$sd("Lb$.YH$",{fields:{VEb$:!1},methods:{}}),$$sd("UnityEngine.Bounds",{inherits:function(){return[Z$.nd$(Lb$.Bounds)]},$kind:4,statics:{methods:{}},fields:{center:null,halfExtents:null,max:null,min:null},ctors:{},methods:{}}),$$sd("Lb$.ij$",{$kind:6,statics:{fields:{cD$:1,Ow$:2,dD$:2,eD$:3,Yw$:4}}}),$$sd("UnityEngine.Color",{$kind:4,statics:{methods:{}},fields:{r:0,g:0,b:0,a:0,data:null},ctors:{},methods:{}}),$$sd("Lb$.vI$",{$kind:4,statics:{props:{},methods:{l$:function(e){return new pc.Color(e.r/255,e.g/255,e.b/255,e.a/255)},o$:function(){return new Lb$.vI$}}},fields:{r:0,a:0,b:0,g:0},ctors:{$ctor1:function(e,t,n,i){this.$initialize(),this.r=e,this.g=t,this.b=n,this.a=i},ctor:function(){this.$initialize()}},methods:{},overloads:{"ToString()":"toString"}}),$$sd("Lb$.rj$",{$kind:6,statics:{fields:{CD$:-1,DD$:0,uB$:1}}}),$$sd("Lb$.EI$",{statics:{fields:{b$:!1},props:{c$:{get:function(){return Lb$.Aj$.Ja$},set:function(e){Lb$.GI$.d$(Lb$.GI$.E$)}}},methods:{a$:function(e,t){Lb$.EI$.a$(e,pc.Vec2.ZERO.clone(),t)}}}}),$$sd("Lb$.Aj$",{$kind:6,statics:{fields:{Ja$:0,QD$:1,bE$:2}}}),$$sd("Lb$.Bj$",{$kind:6,statics:{fields:{KB$:0,cE$:1}}}),$$sd("Lb$.FI$",{inherits:[Z$.C$.Id$],props:{},alias:["Fh$","OKa$"],methods:{},overloads:{"MoveNext()":"moveNext","Reset()":"reset"}}),$$sd("Lb$.GI$",{statics:{fields:{y$:null,z$:null,A$:null,B$:null,C$:null,D$:null,E$:null},props:{F$:{get:function(){return!1}},G$:{get:function(){return Lb$.GI$.C$}}},ctors:{init:function(){this.y$="DEVELOP ? `The method \"${ this.$$fullname.split( '.' ).pop() }.{methodName:raw}(${ ( {paramTypes} || [] ).map( t => t.$$name.split( '.' ).pop() ).join( ', ' ) })\" is not implemented` : UnityEngine.Debug.NotImplementedMessage",this.z$='DEVELOP ? `The accessor "${ this.$$fullname.split( \'.\' ).pop() }.{propName:raw}.${ {getAccessor} ? "get" : "set" }" is not implemented` : UnityEngine.Debug.NotImplementedMessage',this.A$="DEVELOP ? `The method \"${ this.$$fullname.split( '.' ).pop() }.{methodName:raw}(${ ( {paramTypes} || [] ).map( t => t.$$name.split( '.' ).pop() ).join( ', ' ) })\" is not supported` : UnityEngine.Debug.NotSupportedMessage",this.B$='DEVELOP ? `The accessor "${ this.$$fullname.split( \'.\' ).pop() }.{propName:raw}.${ {getAccessor} ? "get" : "set" }" is not supported` : UnityEngine.Debug.NotSupportedMessage',this.C$=Bridge.cast(new Lb$.pL$.$ctor1(Bridge.cast(new Lb$.kL$,Lb$.ILogHandler)),Lb$.ILogger),this.D$="Not Implemented in Luna",this.E$="Not Supported in Luna"}},methods:{a$:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=[]),console.log(e),pc.Debugger.Console.info(null!=e?Bridge.toString(e):"null",n.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2)},b$:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=[]),console.log(e),pc.Debugger.Console.info(e,n.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2)},c$:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=[]),console.warn(e),pc.Debugger.Console.warn(e,n.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2)},d$:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=[]),console.warn(e),pc.Debugger.Console.warn(null!=e?Bridge.toString(e):"null",n.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2)},e$:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=[]),console.error(e),pc.Debugger.Console.error(e,n.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2)},f$:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=[]),console.error(e),pc.Debugger.Console.error(null!=e?Bridge.toString(e):"null",n.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2)},g$:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=[]),console.error(e),pc.Debugger.Console.error(e.b$,n.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2),pc.crashDetector.reportError(e)},h$:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=[]),console.assert(e),pc.Debugger.Console.assert(e,null,n.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2)},i$:function(e,t,n,i){void 0===n&&(n=null),void 0===i&&(i=[]),console.assert(e,t),pc.Debugger.Console.assert(e,t,i.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2)},j$:function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=[]),console.error(e),pc.Debugger.Console.exception(e,n.reduce(((e,t)=>(e[t.Item1]=t.Item2,e)),{}),2),pc.crashDetector.reportError(e)},k$:function(e,t){void 0===t&&(t=[]),Lb$.GI$.b$(Z$.String.B$.apply(Z$.String,[e].concat(t)))},l$:function(e,t){void 0===t&&(t=[]),Lb$.GI$.c$(Z$.String.B$.apply(Z$.String,[e].concat(t)))},m$:function(e,t,n){void 0===n&&(n=[]),Lb$.GI$.G$.a$(Lb$.vl$.bp$,e,t,n)},n$:function(e,t){void 0===t&&(t=[]),Lb$.GI$.e$(Z$.String.B$.apply(Z$.String,[e].concat(t)))},o$:function(e,t,n){void 0===n&&(n=[]),Lb$.GI$.e$(Z$.String.B$.apply(Z$.String,[t].concat(n)))},p$:function(e,t,n,i,r){},q$:function(e,t){Lb$.GI$.p$(e.$clone(),t.$clone(),new pc.Color(1,1,1,1),0,!0)},r$:function(e,t,n){Lb$.GI$.p$(e.$clone(),t.$clone(),n.$clone(),0,!0)},s$:function(e,t,n,i){Lb$.GI$.p$(e.$clone(),t.$clone(),n.$clone(),i,!0)},t$:function(e,t){Lb$.GI$.w$(e.$clone(),t.$clone(),new pc.Color(1,1,1,1),0,!0)},u$:function(e,t,n){Lb$.GI$.w$(e.$clone(),t.$clone(),n.$clone(),0,!0)},v$:function(e,t,n,i){Lb$.GI$.w$(e.$clone(),t.$clone(),n.$clone(),i,!0)},w$:function(e,t,n,i,r){var s=e.$clone().add(t);Lb$.GI$.p$(e.$clone(),s.$clone(),n.$clone(),i,r)},x$:function(){}}}}),$$sd("Lb$.fe$",{$kind:3}),$$sd("Lb$.Gj$",{$kind:6,statics:{fields:{Ja$:0,eD$:1,mE$:2,nE$:4}},Ia$:!0}),$$sd("Lb$.JI$",{statics:{fields:{A$:null,B$:null},events:{onDisplaysUpdated:null},props:{},ctors:{init:function(){this.A$=Z$.Array.init([new Lb$.JI$.ctor],Lb$.JI$),this.B$=Lb$.JI$.A$[0]}},methods:{p$:function(e){return pc.Vec3.ZERO.clone()}}},fields:{e$:0},props:{},ctors:{ctor:function(){this.$initialize(),this.e$=0}},methods:{},overloads:{"Activate(int, int, int)":"Activate$1"}}),$$sd("Lb$.KI$",{statics:{methods:{b$:function(){var e=pc.Application.getApplication().scene;null!=e&&e.skybox.bakeEnvironmentReflections()}}}}),$$sd("Lb$.ta$.LI$",{fields:{b$:null,c$:null,d$:0,e$:0,f$:null,g$:null},props:{},ctors:{init:function(){this.d$=Lb$.ta$.Sj$.EF$,this.e$=Lb$.ta$.Tj$.HF$,this.f$=new Lb$.WH$}},methods:{a$:function(e,t,n,i){var r,s,a,o,l;if(void 0===t&&(t=null),void 0===n&&(n=null),void 0===i&&(i=null),this.e$!==Lb$.ta$.Tj$.Off){var c="";switch(this.d$){case Lb$.ta$.Sj$.EF$:case Lb$.ta$.Sj$.FF$:break;case Lb$.ta$.Sj$.Object:c="("+(e=null!=(r=e)?r:this.f$.a$).__proto__.$$fullname+")";break;case Lb$.ta$.Sj$.Int:e=null!=(s=e)?s:this.f$.b$,c="(int)";break;case Lb$.ta$.Sj$.Kg$:e=null!=(a=e)?a:this.f$.c$,c="(float)";break;case Lb$.ta$.Sj$.String:e=null!=(o=e)?o:this.f$.d$,c="(string)";break;case Lb$.ta$.Sj$.fl$:e=null!=(l=e)?l:this.f$.e$,c="(bool)"}if(Bridge.staticEquals(this.g$,null)){if(null==this.b$)return void Lb$.GI$.c$("Attempting to invoke event without a target.");if(Z$.String.hJa$(this.c$))Lb$.GI$.c$("Attempting to invoke event without a method.");else if(Z$.String.startsWith(this.c$,"set_"))this.b$[this.c$.substr(4)]=e;else{let r=this.b$.overloads[this.c$+c];r||(r=this.b$.overloads[this.c$+c.replace("UnityEngine.","")]),r||(r=this.c$),this.b$[r].call(this.b$,e,t,n,i)}}else this.g$(e,t,n,i)}}}}),$$sd("Lb$.ta$.MI$",{fields:{b$:null},props:{},ctors:{init:function(){this.b$=new(Z$.C$.w$.t$(Lb$.ta$.LI$).ctor)}},methods:{}}),$$sd("Lb$.ta$.Sj$",{$kind:6,statics:{fields:{EF$:0,FF$:1,Object:2,Int:3,Kg$:4,String:5,fl$:6}}}),$$sd("Lb$.ta$.NI$",{fields:{g$:null,h$:null},ctors:{init:function(){this.g$=new Lb$.ta$.MI$},ctor:function(){this.$initialize(),this.g$=new Lb$.ta$.MI$,this.h$=Bridge.Reflection.getTypeQName(Bridge.getType(this))}},methods:{d$:function(e){var t;this.g$.b$.add(((t=new Lb$.ta$.LI$).callback=e,t))}}}),$$sd("Lb$.ta$.Tj$",{$kind:6,statics:{fields:{Off:0,GF$:1,HF$:2}}}),$$sd("Lb$.nk$",{$kind:6,statics:{fields:{GG$:0,OJ$:1,PJ$:2}}}),$$sd("Lb$.tk$",{$kind:6,statics:{fields:{jj$:0,dK$:1,eK$:2,fK$:3}}}),$$sd("Lb$.WI$",{statics:{fields:{p$:null,q$:null,r$:null,s$:null},props:{},methods:{}}}),$$sd("Lb$.Dk$",{$kind:6,statics:{fields:{Ja$:0,LK$:1,MK$:2,NK$:4,OK$:8,PK$:16,QK$:32,RK$:52,SK$:61}},Ia$:!0}),$$sd("Lb$.Ek$",{$kind:6,statics:{fields:{TK$:0,UK$:1}}}),$$sd("Lb$.gJ$",{statics:{fields:{z$:null,A$:null,B$:null,C$:null,D$:null,E$:null,F$:null,G$:0,H$:null,I$:null,J$:null,K$:!1,L$:!1,M$:!1,N$:null,O$:null,P$:null,Q$:null,R$:null,S$:!1},props:{T$:{get:function(){for(var e=0;e<Lb$.gJ$.z$.length;e++)if(Lb$.gJ$.z$[e])return!0;return null!=Lb$.gJ$.D$&&Lb$.gJ$.D$.anyKey()}},U$:{get:function(){for(var e=0;e<Lb$.gJ$.A$.length;e++)if(Lb$.gJ$.A$[e])return!0;return null!=Lb$.gJ$.D$&&Lb$.gJ$.D$.anyKeyDown()}},V$:{get:function(){},set:function(e){}},W$:{get:function(){return new pc.Vec2.ctor},set:function(e){}},X$:{get:function(){for(var e=Z$.Array.init(Lb$.gJ$.G$,(function(){return new Lb$.WK$}),Lb$.WK$),t=0;t<Lb$.gJ$.G$;t++)e[t]=Lb$.gJ$.H$[t].$clone();return e}},Y$:{get:function(){return Lb$.gJ$.M$},set:function(e){Lb$.gJ$.M$=e}},Z$:{get:function(){return pc.Application.getApplication().systems.physics._world}},aa$:{get:function(){return pc.DeviceOrientation.getOrientation()}}},ctors:{init:function(){this.E$=new Lb$.Vector3,this.F$=new Lb$.Vector3,this.J$=new Lb$.Vector2,this.P$=new Lb$.Vector3,this.Q$=new Lb$.Vector3,this.z$=Z$.Array.init([!1,!1,!1],Z$.Boolean),this.A$=Z$.Array.init([!1,!1,!1],Z$.Boolean),this.B$=Z$.Array.init([!1,!1,!1],Z$.Boolean),this.C$=new(Z$.C$.w$.r$(Z$.String,Z$.vv$).ctor),this.F$=pc.Vec3.ZERO.clone(),this.H$=Z$.Array.init(8,(function(){return new Lb$.WK$}),Lb$.WK$),this.I$="",this.K$=!1,this.L$=!0,this.M$=!1,this.P$=pc.Vec3.ZERO.clone(),this.Q$=pc.Vec3.ZERO.clone(),this.S$=!0}},methods:{a$:function(e){if(null==Lb$.gJ$.D$)return!1},b$:function(e){if(null==Lb$.gJ$.D$)return!1},c$:function(e){if(null==Lb$.gJ$.D$)return!1},d$:function(e){return Lb$.gJ$.z$[e]},e$:function(e){return Lb$.gJ$.B$[e]},f$:function(e){return Lb$.gJ$.A$[e]},g$:function(e){var t={v:0};return Lb$.gJ$.C$.bLa$(e,t),t.v},h$:function(e){var t={v:0};return Lb$.gJ$.C$.bLa$(e,t),t.v},i$:function(e){return!!Bridge.referenceEquals(e,"Fire1")&&Lb$.gJ$.d$(0)},j$:function(e){return!!Bridge.referenceEquals(e,"Fire1")&&Lb$.gJ$.e$(0)},k$:function(e){return!!Bridge.referenceEquals(e,"Fire1")&&Lb$.gJ$.f$(0)},l$:function(e){return Lb$.gJ$.H$[e].$clone()},m$:function(e){null!=e.touch?(e.touch.events.on(pc.EVENT_TOUCHSTART,(function(e){Lb$.gJ$.o$()})),e.touch.events.on(pc.EVENT_TOUCHEND,(function(e){Lb$.gJ$.p$()})),e.touch.events.on(pc.EVENT_TOUCHMOVE,(function(e){Lb$.gJ$.q$()})),e.touch.events.on(pc.EVENT_TOUCHCANCEL,(function(e){Lb$.gJ$.p$()}))):null!=e.mouse&&(e.mouse.events.on(pc.EVENT_MOUSEDOWN,(function(e){Lb$.gJ$.o$()})),e.mouse.events.on(pc.EVENT_MOUSEUP,(function(e){Lb$.gJ$.p$()})),e.mouse.events.on(pc.EVENT_MOUSEMOVE,(function(e){Lb$.gJ$.q$()})))},n$:function(){null!=Lb$.gJ$.N$&&Lb$.gJ$.N$.sendPhysicsEvent("OnMouseOver")},o$:function(){var e=Lb$.gJ$.r$();null!=e&&(e.sendPhysicsEvent("OnMouseDown"),Lb$.gJ$.O$=e)},p$:function(){if(null!=Lb$.gJ$.O$){Lb$.gJ$.O$.sendPhysicsEvent("OnMouseUp");var e=Lb$.gJ$.r$();Bridge.referenceEquals(e,Lb$.gJ$.O$)&&e.sendPhysicsEvent("OnMouseUpAsButton"),Lb$.gJ$.O$=null}},q$:function(){var e=Lb$.gJ$.r$();null!=e?null==Lb$.gJ$.N$?(e.sendPhysicsEvent("OnMouseEnter"),Lb$.gJ$.N$=e):Bridge.referenceEquals(Lb$.gJ$.N$,e)||(Lb$.gJ$.N$.sendPhysicsEvent("OnMouseExit"),e.sendPhysicsEvent("OnMouseEnter"),Lb$.gJ$.N$=e):null!=Lb$.gJ$.N$&&(Lb$.gJ$.N$.sendPhysicsEvent("OnMouseExit"),Lb$.gJ$.N$=null),null!=Lb$.gJ$.O$&&Lb$.gJ$.O$.sendPhysicsEvent("OnMouseDrag")},r$:function(){return Lb$.Object.jSa$(Lb$.pa$.main)?0===pc.Application.getApplication().systems.physics.adapter._colliders.length?null:(Lb$.pa$.main.Ccb$.screenToWorld(Lb$.gJ$.E$.x,Lb$.gJ$.E$.y,Lb$.pa$.main.ukb$,Lb$.gJ$.P$),Lb$.pa$.main.Ccb$.screenToWorld(Lb$.gJ$.E$.x,Lb$.gJ$.E$.y,Lb$.pa$.main.vkb$,Lb$.gJ$.Q$),null!=Lb$.gJ$.R$&&Lb$.gJ$.R$.dispose(),null!=Lb$.gJ$.R$&&null!=Lb$.gJ$.R$.shape._component?Lb$.gJ$.R$.shape._component.entity:null):null},s$:function(e,t,n){var i=Lb$.gJ$.v$(e);if(i>=0)Lb$.gJ$.H$[i].UpdateStart(e,t,n);else{if(Lb$.gJ$.H$.length===Lb$.gJ$.G$){var r=new Lb$.WK$;r.a$(e,t,n),Lb$.gJ$.H$.push(r.$clone())}else Lb$.gJ$.H$[Lb$.gJ$.G$].UpdateStart(e,t,n);Lb$.gJ$.G$++}},t$:function(e,t,n){0!==Lb$.gJ$.G$&&Lb$.gJ$.H$[Lb$.gJ$.v$(e)].UpdateMove(t,n)},u$:function(e,t,n){0!==Lb$.gJ$.G$&&Lb$.gJ$.H$[Lb$.gJ$.v$(e)].UpdateEnd(t,n)},v$:function(e){for(var t=0;t<Lb$.gJ$.G$;t++)if(Lb$.gJ$.H$[t].fingerId===e)return t;return-1},w$:function(){const e=Lb$.gJ$.H$;for(var t=0;t<Lb$.gJ$.G$;t++)e[t].IsEnded()?(Lb$.gJ$.x$(t),t--):e[t].Update()},x$:function(e){const t=Lb$.gJ$.H$,n=t[e];t[e]=t[Lb$.gJ$.G$-1],t[Lb$.gJ$.G$-1]=n,Lb$.gJ$.G$--},y$:function(){Lb$.gJ$.w$()}}}}),$$sd("Lb$.Ca$",{$kind:4,statics:{fields:{o$:null},ctors:{init:function(){this.o$=Z$.Array.init([],Lb$.Ca$.rJ$)}},methods:{e$:function(e){return Lb$.Ca$.j$(e)},j$:function(e){var t=new Lb$.Ca$;return t.c$=e,t.$clone()}}},fields:{c$:0},props:{},ctors:{ctor:function(){this.$initialize()}},methods:{$clone:function(e){var t=e||new Lb$.Ca$;return t.c$=this.c$,t}}}),$$sd("Lb$.Ca$.rJ$",{$kind:1002,fields:{id:0,name:null},ctors:{init:function(){this.id=0}}}),$$sd("Lb$.tJ$",{statics:{fields:{a$:null,b$:0,c$:0,d$:0,e$:null,f$:null},props:{},ctors:{init:function(){this.a$=new Lc$.Jc$.LightmapManager,this.e$=new Lb$.uJ$}}}}),$$sd("Lb$.il$",{$kind:6,statics:{fields:{XT$:0,YT$:1,ZT$:2,Wa$:0,aU$:1,FG$:2}}}),$$sd("Lb$.uJ$",{statics:{methods:{}},fields:{g$:null,h$:null,i$:null,j$:null,k$:null,l$:null,m$:null,n$:0,o$:null,p$:null,v1:null,v2:null,v3:null,q$:null,r$:null,s$:null,t$:null,u$:null},props:{v$:{get:function(){return null!=this.h$&&this.h$.length>0}}},ctors:{init:function(){this.o$=new Lb$.Vector3,this.p$=new Lb$.Vector3,this.v1=new Lb$.Vector3,this.v2=new Lb$.Vector3,this.v3=new Lb$.Vector3,this.q$=new Lb$.Vector3,this.r$=new Lb$.Vector3,this.s$=new Lb$.Vector3,this.t$=new Lb$.Vector3,this.m$=Z$.Array.init([],Z$.Int32),this.u$=Z$.Array.init([0,0,0,0],Z$.vv$)}},methods:{}}),$$sd("Lb$.vl$",{$kind:6,statics:{fields:{Bl$:0,cp$:1,bp$:2,Log:3,yU$:4}}}),$$sd("Lb$.kx$",{inherits:[Z$.zw$],fields:{ua$:null,va$:null,wa$:0},ctors:{ctor:function(e,t,n){void 0===e&&(e=null),void 0===t&&(t=0),void 0===n&&(n=null),this.$initialize(),Z$.zw$.ctor.call(this),this.ua$=e,this.va$=n,this.wa$=t}}}),$$sd("Lb$.lx$",{inherits:[Z$.zw$],fields:{xa$:0,ya$:0},ctors:{ctor:function(e,t){this.$initialize(),Z$.zw$.ctor.call(this),this.xa$=e,this.ya$=t}}}),$$sd("Lb$.mx$",{inherits:[Z$.zw$],fields:{ua$:null,va$:null,wa$:0,za$:!1,Aa$:null},ctors:{ctor:function(e,t,n,i,r){void 0===e&&(e=null),void 0===t&&(t=-1),void 0===n&&(n=null),void 0===i&&(i=!1),void 0===r&&(r=null),this.$initialize(),Z$.zw$.ctor.call(this),this.ua$=e,this.va$=n,this.wa$=t,this.za$=i,this.Aa$=r}}}),$$sd("Lb$.nx$",{inherits:[Z$.zw$],fields:{Ba$:0},ctors:{ctor:function(e){this.$initialize(),Z$.zw$.ctor.call(this),this.Ba$=e}}}),$$sd("Lb$.ox$",{inherits:[Z$.zw$],fields:{Ca$:null,Da$:0},ctors:{ctor:function(e,t){void 0===t&&(t=0),this.$initialize(),Z$.zw$.ctor.call(this),this.Ca$=e,this.Da$=t}}}),$$sd("Lb$.wJ$",{statics:{fields:{PI:0,w$:0,x$:0,y$:0,z$:0,A$:0,B$:null,C$:null,D$:null,E$:null,F$:null,G$:null},ctors:{init:function(){this.B$=new Lb$.Vector3,this.C$=new Lb$.Vector3,this.D$=new Lb$.Vector3,this.E$=new Lb$.Vector3,this.F$=new Lb$.Vector3,this.G$=new Lb$.Vector3,this.PI=3.14159274,this.w$=.01745329,this.x$=57.29578,this.y$=20,this.z$=1e-4,this.A$=1e-4,this.B$=pc.Vec3.ZERO.clone(),this.C$=pc.Vec3.ZERO.clone(),this.D$=pc.Vec3.ZERO.clone(),this.E$=pc.Vec3.ZERO.clone(),this.F$=pc.Vec3.ZERO.clone(),this.G$=pc.Vec3.ZERO.clone()}},methods:{h$:function(e,t,n,i,r,s){var a=2/(i=Lb$.wJ$.Max(1e-4,i)),o=a*s,l=1/(1+o+.48*o*o+.235*o*o*o),c=e-t,u=t,h=r*i;t=e-(c=Math.max(0-h,Math.min(c,h)));var d=(n.v+a*c)*s;n.v=(n.v-a*d)*l;var m=t+(c+d)*l;return u-e>0==m>u&&(m=u,n.v=(m-u)/s),m},q$:function(e,t,n){return e+(t-e)*n},r$:function(e,t){return Math.abs(t-e)<Lb$.wJ$.Max(1e-6*Lb$.wJ$.Max(Math.abs(e),Math.abs(t)),8*Number.EPSILON)}}}}),$$sd("UnityEngine.Matrix4x4",{$kind:4,statics:{methods:{}},fields:{e00:0,e10:0,e20:0,e30:0,e01:0,e11:0,e21:0,e31:0,e02:0,e12:0,e22:0,e32:0,e03:0,e13:0,e23:0,e33:0,data:null},ctors:{},methods:{}}),$$sd("Lb$.zl$",{$kind:6,statics:{fields:{IU$:0,JU$:2,KU$:3,LU$:4,MU$:5,NU$:6}}}),$$sd("Lb$.Xl$",{$kind:6,statics:{fields:{SV$:0,TV$:1}}}),$$sd("Lb$.am$",{$kind:6,statics:{fields:{YV$:0,ZV$:1}}}),$$sd("Lb$.km$",{$kind:6,statics:{fields:{oW$:0,uF$:1}}}),$$sd("Lb$.om$",{$kind:6,statics:{fields:{yW$:0,Fh$:1}}}),$$sd("Lb$.qm$",{$kind:6,statics:{fields:{BW$:0,CW$:1,JJ$:2}}}),$$sd("Lb$.rm$",{$kind:6,statics:{fields:{Low:0,xs$:1,Bx$:2}}}),$$sd("Lb$.tm$",{$kind:6,statics:{fields:{FW$:0,oU$:1,GW$:2,HW$:3,Dv$:4,Ja$:5}}}),$$sd("Lb$.um$",{$kind:6,statics:{fields:{mU$:0,dW$:1,nc$:2,IW$:3,wO$:4}}}),$$sd("Lb$.wm$",{$kind:6,statics:{fields:{LW$:0,nc$:1,MW$:2}}}),$$sd("Lb$.xm$",{$kind:6,statics:{fields:{UV$:0,NW$:1,OW$:2,PW$:3}}}),$$sd("Lb$.zm$",{$kind:6,statics:{fields:{jy$:0,pW$:2,jU$:4,Box:5,TW$:8,UW$:10,VW$:12,WW$:15,XW$:16,YW$:17,IG$:18}}}),$$sd("Lb$.Am$",{$kind:6,statics:{fields:{nc$:0,dW$:1,ki$:2}}}),$$sd("Lb$.Bm$",{$kind:6,statics:{fields:{Ja$:0,nW$:1,ZW$:2,aX$:3}}}),$$sd("Lb$.Cm$",{$kind:6,statics:{fields:{Ja$:0,Sz$:1,bX$:2,EW$:3}}}),$$sd("Lb$.KJ$",{fields:{a$:0,b$:0}}),$$sd("Lb$.LJ$",{$kind:4,statics:{methods:{}},fields:{i$:0,j$:null},props:{},ctors:{init:function(){this.j$=new Lb$.Vector3},$ctor2:function(e,t){this.$initialize(),this.j$=new pc.Vec3.ctor,this.j$.copy(e).normalize(),this.i$=-e.dot(t)},ctor:function(){this.$initialize()}},methods:{c$:function(e,t){var n=e.d$.dot(this.j$),i=-e.e$.dot(this.j$)-this.i$;return Lb$.wJ$.r$(n,0)?(t.v=0,!1):(t.v=i/n,!0)},f$:function(e,t){this.j$.copy(e).normalize(),this.i$=-e.dot(t)}}}),$$sd("Lb$.Ka$.je$",{$kind:3}),$$sd("Lb$.Ka$.QJ$",{inherits:function(){return[Z$.nd$(Lb$.Ka$.QJ$)]},$kind:4,statics:{methods:{}},alias:[],ctors:{},methods:{},overloads:{"Equals(PlayableOutput)":"equalsT"}}),$$sd("Lb$.La$",{statics:{fields:{k$:null},ctors:{init:function(){this.k$=new Lb$.La$.SJ$}},methods:{a$:function(e){return Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Has(e)},b$:function(e){Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Remove(e)},c$:function(e,t){var n;return void 0===t&&(t=""),null!=(n=Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Get(e))?n:t},d$:function(e,t){Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Set(e,t)},e$:function(e,t){void 0===t&&(t=0);var n=Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Get(e);if(Z$.String.iJa$(n))return t;var i={};return Z$.Int32.tryParse(n,i)?i.v:t},f$:function(e,t){Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Set(e,Bridge.toString(t))},g$:function(e,t){void 0===t&&(t=0);var n=Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Get(e);if(Z$.String.iJa$(n))return t;var i={};return Z$.vv$.G$(n,null,i)?i.v:t},h$:function(e,t){Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Set(e,Z$.vv$.B$(t))},i$:function(){Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Clear()},j$:function(){Lb$.La$.k$.UnityEngine$PlayerPrefs$IProvider$Save()}}}}),$$sd("Lb$.La$.RJ$",{$kind:1003}),$$sd("Lb$.La$.TJ$",{$kind:1002,fields:{e$:!1},ctors:{ctor:function(){this.$initialize();try{window.sessionStorage.setItem("__test__","__test__"),window.sessionStorage.removeItem("__test__"),this.e$=!0}catch(e){e=Z$.fu$.create(e)}}},methods:{}}),$$sd("UnityEngine.Quaternion",{$kind:4,statics:{methods:{}},fields:{x:0,y:0,z:0,w:0,Data:null},ctors:{},methods:{}}),$$sd("Lb$.Ray",{$kind:4,statics:{methods:{}},fields:{d$:null,e$:null},props:{f$:{get:function(){return this.d$.$clone()}},g$:{get:function(){return this.e$.$clone()}}},ctors:{init:function(){this.d$=new Lb$.Vector3,this.e$=new Lb$.Vector3},$ctor1:function(e,t){this.$initialize(),this.d$=new pc.Vec3.ctor,this.e$=new pc.Vec3.ctor,this.e$.copy(e),this.d$.copy(t).normalize()},ctor:function(){this.$initialize()}},methods:{a$:function(e,t){return void 0===t&&(t=new Lb$.Vector3),t.copy(this.d$),t.scale(e),t.add(this.e$),t}}}),$$sd("Lb$.cK$",{$kind:4,statics:{props:{},methods:{C$:function(){Object.defineProperty(Lb$.cK$.prototype,"x",{get:function(){return this.m_XMin},set:function(e){this.m_XMin=e}}),Object.defineProperty(Lb$.cK$.prototype,"y",{get:function(){return this.m_YMin},set:function(e){this.m_YMin=e}})}}},fields:{j$:0,k$:0,l$:0,m$:0},props:{o$:{get:function(){return new pc.Vec2(this.x+this.m$/2,this.y+this.l$/2)}},v$:{get:function(){return new pc.Vec2(this.m$,this.l$)}},y$:{get:function(){return this.m$+this.j$}},A$:{get:function(){return this.l$+this.k$}}},ctors:{$ctor1:function(e,t,n,i){this.$initialize(),this.j$=e,this.k$=t,this.m$=n,this.l$=i},ctor:function(){this.$initialize()}},methods:{$clone:function(e){var t=e||new Lb$.cK$;return t.j$=this.j$,t.k$=this.k$,t.l$=this.l$,t.m$=this.m$,t}},overloads:{"Contains(Vector3, bool)":"Contains$2","Contains(Vector3)":"Contains$1","Equals(object)":"equals","GetHashCode()":"getHashCode","Overlaps(Rect, bool)":"Overlaps$1","ToString()":"toString"}}),Bridge.init((function(){Lb$.cK$.C$()})),$$sd("Lb$.dK$",{statics:{methods:{g$:function(e,t,n,i){return new Lb$.dK$.$ctor1(e,t,n,i)}}},fields:{a$:0,b$:0,c$:0,d$:0},props:{e$:{get:function(){return this.d$+this.a$}},f$:{get:function(){return this.b$+this.c$}}},ctors:{ctor:function(){this.$initialize()},$ctor1:function(e,t,n,i){this.$initialize(),this.b$=e,this.c$=t,this.d$=n,this.a$=i}}}),$$sd("Lb$.Ua$.fK$",{$kind:1006,statics:{fields:{a$:0,b$:1,c$:2,d$:3}}}),$$sd("Lb$.gK$",{statics:{fields:{m$:null,n$:null},ctors:{init:function(){this.n$=new Lb$.Vector3,this.m$=Z$.Array.init(4,(function(){return new Lb$.Vector3}),Lb$.Vector3)}},methods:{g$:function(e,t,n){var i=new pc.Vec3,r=new Lb$.LJ$,s=new Lb$.LJ$,a=new Lb$.Ray,o=new pc.Vec3,l=new pc.Vec3,c={v:0};const u=t.transformDirection(pc.Vec3.BACK);o.copy(u).scale(-1);const h=t.getPosition();if(r.f$(u,h),s.f$(o,h),null!==n?(l.set(e.x,e.y,0),a=n.Vjb$(l)):(a.e$.set(e.x,e.y,-1000100),a.d$.set(0,0,1)),r.c$(a,c))a.a$(c.v,i);else{if(!s.c$(a,c))return!1;a.a$(c.v,i)}t.transformPointInverse(i,i);var d=t.element.cachedRect;return d.m_XMax>i.x&&d.m_YMax>i.y&&d.m_XMin<i.x&&d.m_YMin<i.y},h$:function(e,t,n,i){i.v=pc.Vec2.ZERO.clone();var r,s={v:Lb$.gK$.n$};return Lb$.gK$.i$(e,t,n,s)?(i.v=Lb$.Vector2.FromVector3(e.Lsb$(s.v)),r=!0):r=!1,r},i$:function(e,t,n,i){i.v=pc.Vec3.ZERO.clone();var r=Lb$.gK$.j$(n,t),s={};return!!new Lb$.LJ$.$ctor2(e.Frb$.transformVector(new pc.Vec3(0,0,-1)),e.Erb$).Raycast(r,s)&&(r.a$(s.v,i.v),!0)},j$:function(e,t){if(Lb$.mB$.DGa$(e,null))return e.Vjb$(Lb$.Vector3.FromVector2(t.$clone()));var n=Lb$.Vector3.FromVector2(t.$clone());return n.z-=100,new Lb$.Ray.$ctor1(n,new pc.Vec3(0,0,1))}}},ctors:{}}),$$sd("Lb$.hK$",{statics:{methods:{}},fields:{j$:null,k$:null,l$:null,m$:null,n$:null},ctors:{init:function(){this.n$=new Lb$.Bounds,this.j$=Z$.Array.init([],pc.ReflectionProbeData),this.k$=Z$.Array.init([null,null],pc.ReflectionProbeData),this.l$=new pc.ReflectionProbeData,this.m$=new pc.ReflectionProbeData},ctor:function(){this.$initialize(),this.g$()}},methods:{g$:function(){this.l$.position.set(0,0,0,0),this.l$.min.set(-Infinity,-Infinity,-Infinity,0),this.l$.max.set(Infinity,Infinity,Infinity,1),this.m$.cubemap=Lb$.NC$.twb$.Ccb$,this.m$.position.set(0,0,0,0),this.m$.min.set(-Infinity,-Infinity,-Infinity,1),this.m$.max.set(Infinity,Infinity,Infinity,1)}}}),$$sd("Lb$.ab$.Gn$",{$kind:6,statics:{fields:{cD$:0,Hba$:1,Flat:3,ki$:4}}}),$$sd("Lb$.ab$.In$",{$kind:6,statics:{fields:{Add:0,Rba$:1,Sba$:2,Min:3,Max:4,Tba$:5,Uba$:6,Vba$:7,Wba$:8,Xba$:9,Yba$:10,Zba$:11,aca$:12,bca$:13,cca$:14,dca$:15,eca$:16,fca$:17,gca$:18,hca$:19,ica$:20,hY$:21,jca$:22,kca$:23,lca$:24,mca$:25,nca$:26,oca$:27,pca$:28,qca$:29,rca$:30,sca$:31,tca$:32,uca$:33,vca$:34,wca$:35}}}),$$sd("Lb$.ab$.Qn$",{$kind:6,statics:{fields:{SW$:1,RW$:2,QW$:4,Red:8,All:15}},Ia$:!0}),$$sd("Lb$.ab$.Sn$",{$kind:6,statics:{fields:{qq$:0,jea$:1,tx$:2,kea$:3,lea$:4,sx$:5,vx$:6,mea$:7,nea$:8}}}),$$sd("Lb$.ab$.Xn$",{$kind:6,statics:{fields:{cD$:0,ki$:1}}}),$$sd("Lb$.ab$.io$",{$kind:6,statics:{fields:{Off:0,xfa$:1,yfa$:2,zfa$:4}}}),$$sd("Lb$.ab$.wo$",{$kind:6,statics:{fields:{Off:0,xfa$:1,nga$:2,yba$:3}}}),$$sd("Lb$.ab$.Mo$",{$kind:6,statics:{fields:{Off:0,On:1,Yga$:2,Zga$:3}}}),$$sd("Lb$.ab$.Ro$",{$kind:6,statics:{fields:{Keep:0,Zero:1,Aha$:2,Bha$:3,Cha$:4,Dha$:5,Eha$:6,Fha$:7}}}),$$sd("Lb$.dp$",{$kind:6,statics:{fields:{lia$:0,mia$:1,nia$:2}}}),$$sd("Lb$.pK$",{statics:{fields:{a$:!1,b$:0,c$:0,d$:0,e$:0,f$:null,g$:null,h$:null,i$:null,j$:null,k$:0,l$:0,m$:0,n$:0,o$:0,p$:0,q$:null,r$:null,s$:null,t$:null},props:{w$:{set:function(e){if(Lb$.mB$.CGa$(e,null)){const t=pc.Application.getApplication().systems.light.store,n=Object.keys(t);for(let i=0;i<n.length;i++){const r=t[n[i]],s=r.data;if(s.enabled&&r.entity.enabled&&"directional"===s.type){e=Lb$.Object.Abb$(Lb$.gC$,s.component);break}}}Lb$.pK$.h$=e}},y$:{get:function(){return Lb$.pK$.k$}},B$:{set:function(e){Lb$.pK$.n$=e}},F$:{get:function(){return Lb$.pK$.r$.$clone()}},G$:{get:function(){return Lb$.pK$.s$.$clone()}},H$:{get:function(){return Lb$.pK$.t$.$clone()}}},ctors:{init:function(){this.f$=new Lb$.Color,this.q$=new Lb$.Color,this.r$=new Lb$.Color,this.s$=new Lb$.Color,this.t$=new Lb$.Color,this.i$=new pc.SphericalHarmonicsL2,this.k$=Lb$.ab$.Xn$.cD$,this.l$=128,this.m$=Lb$.ab$.Gn$.ki$,this.o$=1,this.p$=1,this.q$=new pc.Color(0,0,0,1),this.r$=new pc.Color(0,0,0,1),this.s$=new pc.Color(0,0,0,1),this.t$=new pc.Color(0,0,0,1)}}}}),$$sd("Lb$.qK$",{$kind:4,statics:{methods:{}},fields:{c$:0,d$:0,e$:0},ctors:{ctor:function(){this.$initialize()}},methods:{}}),$$sd("Lb$.bb$",{statics:{fields:{s$:null,t$:null,u$:null,v$:null},ctors:{init:function(){this.s$="No Resources were exported. Loading {0} failed.",this.t$="{0} missing in exported Resources"}},methods:{a$:function(e){return Lb$.bb$.c$(e,null)},b$:function(e,t){var n=e,i=Lb$.mB$;return Bridge.referenceEquals(n,i)||n.prototype instanceof i?Bridge.as(Lb$.bb$.f$(t,e),e):Bridge.as(Lb$.bb$.c$(t,n),e)},c$:function(e,t){var n;if(Z$.String.iJa$(e))return null;e=Lb$.bb$.r$(e);var i=null;if(null==Lb$.bb$.v$||0===Lb$.bb$.v$.length)return Lb$.GI$.c$(Z$.String.B$(Lb$.bb$.s$,[e])),null;n=Bridge.getEnumerator(Lb$.bb$.v$);try{for(;n.moveNext();){var r=n.Current;if(null!=r.unityObject&&Bridge.referenceEquals(r.path,e)){if(null==(i=Lb$.bb$.e$(r.unityObject,t)))continue;if(Lb$.bb$.d$(r,i),null==t)break;if(Bridge.Reflection.isAssignableFrom(t,Bridge.getType(i)))break}}}finally{Bridge.is(n,Z$.IDisposable)&&n.System$IDisposable$Dispose()}return null==i&&Lb$.GI$.c$(Z$.String.B$(Lb$.bb$.t$,[e])),i},d$:function(e,t){Lc$.Kc$.yH$.a$(e.b$)?e.b$.__sameConnectedProxies=t:e.b$=t},e$:function(e,t){if(Lc$.Jc$.Bundle.checkIsObjectAlreadyLoadedFromResources(e)){if(null==t||Bridge.referenceEquals(Bridge.getType(e),t)||Bridge.Reflection.isAssignableFrom(t,Bridge.getType(e)))return e;var n;if(Lb$.SC$.DGa$(n=Bridge.as(e,Lb$.SC$),null)){var i=n.GetComponent$1(t);if(Lb$.mB$.DGa$(i,null))return i}return e}var r=Lc$.Jc$.Bundle.loadObject(e);if(Bridge.is(r,pc.Entity)){var s=Lb$.Object.Abb$(Lb$.SC$,r);if(null!=t){var a=s.kcb$(t);if(Lb$.mB$.DGa$(a,null))return a}return s}return null},r$:function(e){return Z$.String.replaceAll(e.toLowerCase(),"\\","/")}}}}),$$sd("Lb$.cb$.rx$",{inherits:[Z$.zw$]}),$$sd("Lb$.db$.up$",{$kind:6,statics:{fields:{Wa$:0,xx$:1,Rja$:99}}}),$$sd("Lb$.db$.sK$",{statics:{fields:{G$:null,H$:null,I$:null,J$:null,K$:null,L$:!1,M$:null,N$:null},events:{sceneUnloaded:null,sceneLoaded:null,activeSceneChanged:null},props:{},ctors:{init:function(){this.K$=new(Z$.C$.w$.t$(Lc$.Jc$.Scene).ctor),this.L$=!1,this.M$=new(Z$.C$.w$.u$(Lb$.db$.eI$).ctor)}},methods:{e$:function(e){var t=e.toLowerCase();return Z$.I$.Enumerable.from(Lb$.db$.sK$.N$,Lc$.Jc$.Scene).firstOrDefault(Bridge.fn.bind(this,(function(e){return Bridge.referenceEquals(e.name.toLowerCase(),t)})),null)},h$:function(){var e=Lb$.db$.sK$.L$;if(Lb$.db$.sK$.L$=!1,0!==Lb$.db$.sK$.M$.Cw$)for(;Lb$.db$.sK$.M$.Cw$>0;){var t=Lb$.db$.sK$.M$.Peek();if(t.unload)Lb$.db$.sK$.M$.SQa$(),Lb$.db$.sK$.v$(t.sceneInstance),t.MarkCompleted(!0);else{if(!e&&!1===t.allowSceneActivation)return void(t.progress=.9);Lb$.db$.sK$.M$.SQa$();var n=t.sceneInstance,i=t.loadMode;if(i===Lb$.db$.up$.Wa$){null!=Lb$.db$.sK$.J$&&Lb$.db$.sK$.J$.setActive(!1),Lb$.db$.sK$.J$=null;for(var r=Lb$.db$.sK$.K$.indexOf(n);r>0;r--)Lb$.db$.sK$.v$(Lb$.db$.sK$.K$.zJa$(0))}if(n.loadAsync(i),i===Lb$.db$.up$.Wa$&&Lb$.db$.sK$.B$(n),Bridge.staticEquals(Lb$.db$.sK$.sceneLoaded,null)||Lb$.db$.sK$.sceneLoaded(n,i),t.MarkCompleted(!0),!e)return}}},o$:function(e,t){var n=Lb$.db$.sK$.e$(e);return null==n?(Lb$.GI$.e$("Scene '"+(e||"")+"' couldn't be loaded because it has not been added to the build settings or the AssetBundle has not been loaded."),null):Lb$.db$.sK$.q$(n,t)},q$:function(e,t){var n=e.createInstance();if(t===Lb$.db$.up$.Rja$){Lb$.db$.sK$.K$.add(n);for(var i=Lb$.db$.sK$.K$.Cw$-1;i>0;i--)Lb$.db$.sK$.v$(Lb$.db$.sK$.K$.zJa$(0));n.loadAsync(t),Lb$.db$.sK$.B$(n);var r=new Lb$.db$.eI$.$ctor1(n,Lb$.db$.up$.Rja$);return r.MarkCompleted(!0),r}var s=new Lb$.db$.eI$.$ctor1(n,t);return Lb$.db$.sK$.M$.RQa$(s),Lb$.db$.sK$.K$.add(n),s},B$:function(e){var t=Lb$.db$.sK$.J$;Lb$.db$.sK$.J$=e,null!=t&&t.setActive(!1),Lb$.db$.sK$.J$.setActive(!0),Bridge.staticEquals(Lb$.db$.sK$.activeSceneChanged,null)||Lb$.db$.sK$.activeSceneChanged(t||Lb$.db$.sK$.D$(),Lb$.db$.sK$.J$)},F$:function(e){var t=e.gameObject;Lb$.SC$.DGa$(t,null)&&Lb$.mB$.DGa$(t.transform.parent,null)||(null==Lb$.db$.sK$.G$&&(Lb$.db$.sK$.G$=new Lc$.Jc$.Scene,Lb$.db$.sK$.G$.initializeAsDontDestroyOnLoad()),Lb$.db$.sK$.G$.addGameObjectToRoot(t))}}}}),$$sd("Lb$.tK$",{statics:{fields:{a$:null},props:{b$:{get:function(){return pc.Application.getApplication().graphicsDevice._width}},c$:{get:function(){return pc.Application.getApplication().graphicsDevice._height}}},ctors:{init:function(){var e;this.a$=new Lb$.qK$,this.a$=((e=new Lb$.qK$).height=Lb$.tK$.c$,e.width=Lb$.tK$.b$,e)}}}}),$$sd("Lb$.zK$",{statics:{fields:{g$:null},ctors:{init:function(){this.g$=Z$.Array.init([],Lb$.zK$)}},methods:{b$:function(e){for(var t=0;t<Lb$.zK$.g$.length;t++)if(Lb$.zK$.g$[t].id===e)return Lb$.zK$.g$[t].value;return-1},c$:function(e){for(var t=0;t<Lb$.zK$.g$.length;t++)if(Lb$.zK$.g$[t].value===e)return Lb$.zK$.g$[t].id;return-1},d$:function(e){for(var t=0;t<Lb$.zK$.g$.length;t++)if(Bridge.referenceEquals(Lb$.zK$.g$[t].name,e))return Lb$.zK$.g$[t].value;return 0}}},fields:{name:null,a$:0,id:0}}),$$sd("Lb$.Yp$",{$kind:6,statics:{fields:{Xka$:0,Yka$:1,Zka$:2,ala$:3,bla$:4,cla$:5,dla$:6,ela$:7,fla$:8,gla$:9,hla$:10,ila$:11,jla$:12,kla$:13,lla$:14,mla$:15,nla$:16,ola$:17,pla$:18,qla$:19,rla$:20,sla$:21,tla$:22,ula$:23,vla$:24,wla$:25,xla$:26,yla$:27,zla$:28,Ala$:29,Bla$:30,Cla$:31,Dla$:32,Ela$:33,Fla$:34,Gla$:35,Thai:36,Hla$:37,Ila$:38,Jla$:39,Kla$:40,Lla$:41,Nf$:42,Mla$:18}}}),$$sd("Lb$.hq$",{$kind:6,statics:{fields:{sma$:0,tma$:1,uma$:2,vma$:3,wma$:4,xma$:5,yma$:6,zma$:7,Ama$:8}}}),$$sd("Lb$.nb$.HK$",{inherits:function(){return[Z$.nd$(Lb$.nb$.HK$)]},$kind:4,statics:{methods:{}},fields:{Dwb$:0,Ewb$:0,vGb$:0,wGb$:0,xGb$:0},props:{},alias:[],ctors:{},methods:{},overloads:{"GetHashCode()":"getHashCode","Equals(object)":"equals","Equals(GlyphMetrics)":"equalsT"}}),$$sd("Lb$.nb$.IK$",{inherits:function(){return[Z$.nd$(Lb$.nb$.IK$)]},$kind:4,statics:{fields:{CGb$:null},props:{},ctors:{init:function(){this.CGb$=new Lb$.nb$.IK$,this.CGb$=new Lb$.nb$.IK$.$ctor1(0,0,0,0)}},methods:{}},fields:{m_X:0,m_Y:0,Dwb$:0,Ewb$:0},props:{},alias:[],ctors:{$ctor1:function(e,t,n,i){this.$initialize(),this.m_X=e,this.m_Y=t,this.Dwb$=n,this.Ewb$=i},ctor:function(){this.$initialize()}},methods:{},overloads:{"GetHashCode()":"getHashCode","Equals(object)":"equals","Equals(GlyphRect)":"equalsT"}}),$$sd("Lb$.Mq$",{$kind:6,statics:{fields:{Tu$:0,Rra$:1}}}),$$sd("Lb$.Nq$",{$kind:6,statics:{fields:{Low:0,Gl$:1,jj$:2,Bx$:4}}}),$$sd("Lb$.QK$",{statics:{fields:{e$:0,f$:0,g$:0,h$:0,i$:0,j$:0,k$:0,l$:0,m$:0,n$:0,o$:!1,p$:0,q$:0},props:{r$:{get:function(){return(Lb$.QK$.g$-Lb$.QK$.f$)/1e3}},t$:{get:function(){return Lb$.QK$.o$?Lb$.QK$.I$:(Lb$.QK$.h$-Lb$.QK$.f$)/1e3}},w$:{get:function(){return pc.Application.getApplication().systems.unitymanager.fixedTimeStep}},z$:{get:function(){return pc.Application.getApplication().systems.unitymanager.timeScale}},A$:{get:function(){return Lb$.QK$.i$}},B$:{get:function(){return(pc.time.now()-Lb$.QK$.f$)/1e3}}},ctors:{init:function(){this.e$=.2,this.f$=0,this.g$=0,this.h$=0,this.i$=0,this.p$=pc.time.now()/1e3}},methods:{a$:function(e){Lb$.QK$.p$+=Lb$.QK$.q$,Lb$.QK$.j$+=e},b$:function(e){Lb$.QK$.n$=e,Lb$.QK$.h$+=1e3*Lb$.QK$.n$,e*=Lb$.QK$.z$,Lb$.QK$.i$=Lb$.QK$.e$*e+.8*Lb$.QK$.i$,Lb$.QK$.m$=e,Lb$.QK$.l$=Lb$.QK$.m$,Lb$.QK$.g$+=1e3*e,Lb$.QK$.k$++},c$:function(){Lb$.QK$.f$=pc.time.now(),Lb$.QK$.g$=Lb$.QK$.f$,Lb$.QK$.h$=Lb$.QK$.f$,Lb$.QK$.j$=Math.floor(Lb$.QK$.r$/Lb$.QK$.w$)*Lb$.QK$.w$},d$:function(e){Lb$.QK$.o$=e,Lb$.QK$.m$=e?Lb$.QK$.w$:Lb$.QK$.l$}}}}),$$sd("Lb$.WK$",{$kind:4,statics:{methods:{x$:function(){return new Lb$.WK$}}},fields:{h$:null,i$:0,j$:0,k$:0,l$:0,m$:0,n$:0,o$:null,p$:0,q$:0,r$:0,s$:0,t$:0},props:{u$:{get:function(){return this.o$.$clone().sub(this.h$)}},v$:{get:function(){return Lb$.QK$.t$-this.i$}},w$:{get:function(){return this.o$.$clone()}}},ctors:{init:function(){this.h$=new Lb$.Vector2,this.o$=new Lb$.Vector2},ctor:function(){this.$initialize()}},methods:{a$:function(e,t,n){this.l$=e,this.n$=Lb$.Wq$.sO$,this.i$=Lb$.QK$.t$,this.o$=new pc.Vec2(t,n),this.h$=this.o$.$clone()},b$:function(e,t){this.n$=Lb$.Wq$.Hj$,this.i$=Lb$.QK$.t$,this.h$=this.o$.$clone(),this.o$=new pc.Vec2(e,t)},c$:function(e,t){this.n$=Lb$.Wq$.uO$,this.i$=Lb$.QK$.t$,this.o$=new pc.Vec2(e,t)},d$:function(){this.n$=Lb$.Wq$.tO$},e$:function(){return this.n$===Lb$.Wq$.uO$||this.n$===Lb$.Wq$.Uv$},f$:function(){return Bridge.addHash([1668640700,this.h$,this.i$,this.j$,this.k$,this.l$,this.m$,this.n$,this.o$,this.p$,this.q$,this.r$,this.s$,this.t$])},g$:function(e){return!!Bridge.is(e,Lb$.WK$)&&Bridge.equals(this.h$,e.h$)&&Bridge.equals(this.i$,e.i$)&&Bridge.equals(this.j$,e.j$)&&Bridge.equals(this.k$,e.k$)&&Bridge.equals(this.l$,e.l$)&&Bridge.equals(this.m$,e.m$)&&Bridge.equals(this.n$,e.n$)&&Bridge.equals(this.o$,e.o$)&&Bridge.equals(this.p$,e.p$)&&Bridge.equals(this.q$,e.q$)&&Bridge.equals(this.r$,e.r$)&&Bridge.equals(this.s$,e.s$)&&Bridge.equals(this.t$,e.t$)},$clone:function(e){var t=e||new Lb$.WK$;return t.h$=this.h$.$clone(),t.i$=this.i$,t.j$=this.j$,t.k$=this.k$,t.l$=this.l$,t.m$=this.m$,t.n$=this.n$,t.o$=this.o$.$clone(),t.p$=this.p$,t.q$=this.q$,t.r$=this.r$,t.s$=this.s$,t.t$=this.t$,t}}}),$$sd("Lb$.Wq$",{$kind:6,statics:{fields:{sO$:0,Hj$:1,tO$:2,uO$:3,Uv$:4}}}),$$sd("Lb$.tb$.XK$",{$kind:1006,statics:{fields:{a$:0,b$:1,c$:2,d$:3}}}),$$sd("Lb$.Yq$",{$kind:6,statics:{fields:{zr$:0,Hsa$:1,Isa$:2}}}),$$sd("Lb$.UI.er$",{$kind:6,statics:{fields:{ata$:0,RF$:1,bta$:2,cta$:3,dta$:4,eta$:5}}}),$$sd("Lb$.aL$",{$kind:4,statics:{fields:{j$:null,k$:null},props:{},ctors:{init:function(){this.j$=new Lb$.Vector4,this.k$=new Lb$.vI$,this.j$=new pc.Vec4(1,0,0,-1),this.k$=new Lb$.vI$.$ctor1(255,255,255,255)}},methods:{i$:function(){return new Lb$.aL$}}},fields:{c$:null,d$:null,e$:null,f$:null,g$:null,h$:null},ctors:{init:function(){this.c$=new Lb$.Vector3,this.d$=new Lb$.Vector4,this.e$=new Lb$.Vector2,this.f$=new Lb$.Vector2,this.g$=new Lb$.vI$,this.h$=new Lb$.Vector3},ctor:function(){this.$initialize()}},methods:{}}),$$sd("UnityEngine.Vector2",{$kind:4,statics:{fields:{kEpsilon:0,kEpsilonNormalSqrt:0},ctors:{init:function(){pc.Vec2.kEpsilon=1e-5,pc.Vec2.kEpsilonNormalSqrt=1e-15}},methods:{}},fields:{x:0,y:0,data:null},ctors:{},methods:{}}),$$sd("UnityEngine.Vector3",{$kind:4,statics:{fields:{kEpsilon:0,kEpsilonNormalSqrt:0},ctors:{init:function(){pc.Vec3.kEpsilon=1e-5,pc.Vec3.kEpsilonNormalSqrt=1e-15}},methods:{}},fields:{x:0,y:0,z:0,data:null},ctors:{},methods:{}}),$$sd("Lb$.dL$",{inherits:function(){return[Z$.nd$(Lb$.dL$)]},$kind:4,statics:{fields:{LGb$:null,MGb$:null,s_Up:null,NGb$:null,OGb$:null,PGb$:null},props:{},ctors:{init:function(){this.LGb$=new Lb$.dL$,this.MGb$=new Lb$.dL$,this.s_Up=new Lb$.dL$,this.NGb$=new Lb$.dL$,this.OGb$=new Lb$.dL$,this.PGb$=new Lb$.dL$,this.LGb$=new Lb$.dL$.$ctor1(0,0,0),this.MGb$=new Lb$.dL$.$ctor1(1,1,1),this.s_Up=new Lb$.dL$.$ctor1(0,1,0),this.NGb$=new Lb$.dL$.$ctor1(0,-1,0),this.OGb$=new Lb$.dL$.$ctor1(-1,0,0),this.PGb$=new Lb$.dL$.$ctor1(1,0,0)}},methods:{}},fields:{m_X:0,m_Y:0,m_Z:0},props:{},alias:[],ctors:{$ctor1:function(e,t,n){this.$initialize(),this.m_X=e,this.m_Y=t,this.m_Z=n},ctor:function(){this.$initialize()}},methods:{},overloads:{"Equals(object)":"equals","Equals(Vector3Int)":"equalsT","GetHashCode()":"getHashCode","ToString()":"toString"}}),$$sd("UnityEngine.Vector4",{$kind:4,statics:{methods:{}},fields:{x:0,y:0,z:0,w:0,data:null},ctors:{},methods:{}}),$$sd("Lb$.Es$",{$kind:6,statics:{fields:{rh$:0,UK$:1}}}),$$sd("Lb$.jt$",{$kind:6,statics:{fields:{Once:1,NW$:2,OW$:4,Gh$:0,MCa$:8,Rra$:1}}}),$$sd("Lb$.mB$",{inherits:[Lb$.Object],statics:{methods:{CGa$:function(e,t){return null==e&&null==t||(null==e&&null!=t?t.zbb$:null!=e&&null==t?e.zbb$:Bridge.referenceEquals(e,t))},DGa$:function(e,t){return!Lb$.mB$.CGa$(e,t)}}},fields:{xcb$:null,ycb$:null},props:{zcb$:{get:function(){return this.Acb$.zcb$}},name:{get:function(){return Lb$.SC$.DGa$(this.Acb$,null)?this.Acb$.name:""},set:function(e){Lb$.SC$.DGa$(this.Acb$,null)&&(this.Acb$.name=e)}},Acb$:{get:function(){return null===this.ycb$&&(this.ycb$=Lb$.Object.Abb$(Lb$.SC$,(this.handle||this.Handle).entity||(this.handle||this.Handle)._entity||this.handle)),this.ycb$}},Bcb$:{get:function(){var e=this.handle||this.Handle;return!(!e||!e.enabled)},set:function(e){var t=this.handle||this.Handle;null!=t&&!!e!=!!t.enabled&&(t.enabled=e)}},tag:{get:function(){return this.Acb$.tag},set:function(e){this.Acb$.tag=e}}},methods:{Xbb$:function(e){return this.Acb$.Xbb$(e)},Ybb$:function(e){this.wbb$()||window.$application.app.systems.unitymanager.enqueueDestroy(new pc.DestroyTask(this.handle||this.Handle,e))},Zbb$:function(e){this.xcb$=e},acb$:function(e,t){void 0===t&&(t=1),this.Acb$.acb$(e,t)},bcb$:function(e,t){void 0===t&&(t=1),this.Acb$.Axb$(e,t)},ccb$:function(e){return this.dcb$(e,!1)},dcb$:function(e,t){return void 0===t&&(t=!1),this.Acb$.ccb$(e,t)},ecb$:function(e,t){this.gcb$(e,!1,t)},fcb$:function(e,t){return this.Acb$.dcb$(e,t)},gcb$:function(e,t,n){n.aOa$(this.Acb$.ccb$(e,t))},hcb$:function(e,t){return void 0===t&&(t=!1),this.Acb$.hcb$(e,t)},icb$:function(e,t){return this.Acb$.icb$(e,t)},jcb$:function(e){return this.Acb$.jcb$(e)},kcb$:function(e){return this.Acb$.kcb$(e)},lcb$:function(e){return this.Acb$.lcb$(e)},mcb$:function(e){return this.Acb$.mcb$(e)},ncb$:function(e,t){this.Acb$.ncb$(e,t)},ocb$:function(e,t){this.Acb$.ocb$(e,t)},pcb$:function(e){return this.qcb$(e)},qcb$:function(e){return this.Acb$.qcb$(e)},rcb$:function(e){return this.tcb$(e,!1)},scb$:function(e,t,n){this.Acb$.tcb$(e,t,n)},tcb$:function(e,t){return void 0===t&&(t=!1),this.Acb$.rcb$(e,t)},ucb$:function(e,t){return this.Acb$.scb$(e,t)},vcb$:function(e,t){return t.v=this.kcb$(e),Lb$.mB$.DGa$(t.v,null)},wcb$:function(e,t){return t.v=this.jcb$(e),null!=t.v},H$:function(e){return Bridge.equals(this,e)},dGa$:function(){return Bridge.getHashCode(this)}},overloads:{"GetComponentsInChildren(bool)":"GetComponentsInChildren$1","GetComponentsInChildren(List<TComponent>)":"GetComponentsInChildren$3","GetComponentsInChildren(Type, bool)":"GetComponentsInChildren$4","GetComponentsInChildren(bool, List<TComponent>)":"GetComponentsInChildren$2","GetComponentInChildren(Type, bool)":"GetComponentInChildren$1","GetComponent(Type)":"GetComponent$1","GetComponents(Type)":"GetComponents$3","GetComponents(List<TComponent>)":"GetComponents$2","GetComponents(Type, List<Component>)":"GetComponents$1","GetComponentsInParent(bool, List<TComponent>)":"GetComponentsInParent$2","GetComponentsInParent(bool)":"GetComponentsInParent$1","GetComponentsInParent(Type, bool)":"GetComponentsInParent$3","TryGetComponent(T)":"TryGetComponent$1","Equals(object)":"equals","GetHashCode()":"getHashCode"}}),$$sd("Fc$.Unity.DTO.a$.sc$.jc$",{inherits:[Fc$.Unity.DTO.a$.Object],fields:{name:null,ga$:null,ha$:0,ia$:!1,ja$:null,ka$:null,la$:null,ma$:null,na$:null}}),$$sd("Fc$.Unity.DTO.a$.sc$.oc$",{inherits:[Fc$.Unity.DTO.a$.Object],fields:{jb$:0,kb$:0,lb$:0,mb$:null,nb$:null,ob$:null,pb$:null,qb$:null,rb$:0,sb$:0,tb$:0,fog:!1,ub$:null,vb$:0,wb$:null,xb$:null,yb$:0,zb$:0,Ab$:0,Bb$:null,Cb$:null,Db$:!1,Eb$:null,Fb$:null,Gb$:0,Hb$:0,Ib$:0,Jb$:0,Kb$:!1,Lb$:!1,Mb$:!1},ctors:{init:function(){this.mb$=new Lb$.Color,this.nb$=new Lb$.Color,this.ob$=new Lb$.Color,this.pb$=new Lb$.Color,this.qb$=new Lb$.Color,this.Db$=!1}}}),$$sd("Fc$.Unity.DTO.a$.sc$.pc$",{inherits:[Fc$.Unity.DTO.a$.Object],statics:{fields:{Pb$:null},ctors:{init:function(){this.Pb$="resources"}}},fields:{Nb$:null,Ob$:null}}),$$sd("Fc$.Unity.DTO.a$.sc$.rc$",{inherits:[Fc$.Unity.DTO.a$.Object],statics:{fields:{ac$:null},ctors:{init:function(){var e;this.ac$=((e=new(Z$.C$.w$.t$(Z$.String).ctor)).add("Hidden/InternalErrorShader"),e.add("GUI/Text"),e)}}},fields:{Qb$:null,name:null,Rb$:null,Sb$:null,Tb$:null,Ub$:null,Vb$:null,Wb$:null,Xb$:!1,Yb$:!1,Zb$:0},ctors:{init:function(){this.Zb$=0}}}),$$sd("Lb$.FC$",(function(e){return{inherits:[Lb$.Object],fields:{Ccb$:Bridge.getDefaultValue(e)},ctors:{init:function(){this.Ccb$=Bridge.getDefaultValue(e)},ctor:function(e){this.$initialize(),Lb$.Object.ctor.call(this),this.Ccb$=e,null!=e&&(e["__"+(this.$$fullname||"")]=this)}}}})),$$sd("Lb$.ZH$",{inherits:[Lb$.YH$],fields:{ZEb$:!1,aFb$:!1,bFb$:0,cFb$:0,dFb$:null},ctors:{ctor:function(){this.$initialize(),Lb$.YH$.ctor.call(this)}},methods:{YEb$:function(e){this.aFb$=!0,this.cFb$=1,Bridge.staticEquals(this.dFb$,null)||(this.dFb$(this),this.dFb$=null)}}}),$$sd("Lb$.gI$",{inherits:[Lb$.YH$],fields:{rFb$:null,Ccb$:null,sFb$:!1,tFb$:!1,uFb$:!1},ctors:{init:function(){this.rFb$=new(Z$.C$.w$.v$(Z$.C$.IEnumerator).ctor)},ctor:function(e,t){this.$initialize(),Lb$.YH$.ctor.call(this),this.rFb$.Push(e),this.Ccb$=t,t.addCoroutine(this),this.VQa$(),this.uFb$=!0}},methods:{dua$:function(){this.VEb$=!0},uka$:function(e){if(this.rFb$.Cw$<=0&&(this.VEb$=!0),!(this.VEb$||this.sFb$||this.tFb$))if(this.uFb$)this.uFb$=!1;else try{var t=Bridge.as(this.rFb$.Peek().System$Collections$IEnumerator$Current,Lb$.YH$);if(null==t){var n=Bridge.as(this.rFb$.Peek().System$Collections$IEnumerator$Current,Z$.C$.IEnumerator);null!=n&&(this.rFb$.Push(n),t=Bridge.as(n.System$Collections$IEnumerator$Current,Lb$.YH$))}var i=null==t;if(null!=t)Bridge.is(t,Lb$.gI$)||t.isDone||t.Update(e),i=t.isDone;else{var r=Bridge.as(this.rFb$.Peek().System$Collections$IEnumerator$Current,Lb$.FI$);i=null==r||!r.moveNext()}i&&this.VQa$()}catch(e){e=Z$.fu$.create(e),Lb$.GI$.g$(e)}},VQa$:function(){if(!this.rFb$.Peek().System$Collections$IEnumerator$moveNext()||this.VEb$){if(this.rFb$.Pop(),this.rFb$.Cw$<=0)return void(this.VEb$=!0);this.VEb$=!this.rFb$.Peek().System$Collections$IEnumerator$moveNext()||this.VEb$}if(!this.VEb$){var e=this.rFb$.Peek().System$Collections$IEnumerator$Current;Bridge.is(e,Lb$.iI$)?(this.sFb$=!0,this.Ccb$.addFixedUpdateCoroutine(this)):Bridge.is(e,Lb$.hI$)&&(this.tFb$=!0,this.Ccb$.addEndOfFrameCoroutine(this));var t=Bridge.as(e,Lb$.YH$);null!=t&&t.Reset();var n=Bridge.as(e,Lb$.FI$);null!=n&&n.reset()}}}}),$$sd("Lb$.kL$",{inherits:[Lb$.fe$],alias:["d$","c$","b$","a$"],methods:{d$:function(e,t){Lb$.GI$.j$(e,t)},b$:function(e,t,n,i){void 0===i&&(i=[]),Lb$.GI$.k$(n,i)}}}),$$sd("Lb$.ta$.OI$",{inherits:[Lb$.ta$.NI$],fields:{m$:null},ctors:{init:function(){this.m$=new(Z$.C$.w$.t$(Function).ctor)}},methods:{i$:function(){for(var e=this.g$.b$,t=0;t<e.Cw$;++t)e.zJa$(t).Invoke(null,null,null,null)},k$:function(e){this.d$(e)}},overloads:{"Invoke(object, object, object, object)":"Invoke$1"}}),$$sd("Lb$.ta$.PI$",(function(e){return{inherits:[Lb$.ta$.NI$],methods:{i$:function(e){var t;t=Bridge.getEnumerator(this.g$.b$);try{for(;t.moveNext();)t.Current.Invoke(e)}finally{Bridge.is(t,Z$.IDisposable)&&t.System$IDisposable$Dispose()}},k$:function(e){this.d$(e)}}}})),$$sd("Lb$.ta$.QI$",(function(e,t){return{inherits:[Lb$.ta$.NI$],methods:{}}})),$$sd("Lb$.ta$.RI$",(function(e,t,n){return{inherits:[Lb$.ta$.NI$],methods:{}}})),$$sd("Lb$.ta$.SI$",(function(e,t,n,i){return{inherits:[Lb$.ta$.NI$],methods:{}}})),$$sd("Lb$.lL$",(function(e){return{$kind:4,statics:{methods:{}},fields:{d$:null,e$:null},ctors:{},methods:{}}})),$$sd("Lb$.ge$",{inherits:[Lb$.fe$],$kind:3}),$$sd("Lb$.Ka$.mL$",{inherits:function(){return[Lb$.Ka$.je$,Z$.nd$(Lb$.Ka$.mL$)]},$kind:4,statics:{methods:{}},alias:[],ctors:{},methods:{},overloads:{"Equals(Playable)":"equalsT"}}),$$sd("Lb$.hD$",{inherits:[Lb$.Object],statics:{methods:{}},fields:{AEb$:!1,BEb$:!1},props:{},ctors:{ctor:function(){this.$initialize(),Lb$.Object.ctor.call(this)}},methods:{wEb$:function(){this.Awake&&this.Awake()},xEb$:function(){this.OnEnable&&this.OnEnable()}}}),$$sd("Lb$.Ka$.oL$",(function(e){return{inherits:[Lb$.Ka$.je$],$kind:4,statics:{methods:{}},alias:[],ctors:{},methods:{}}})),$$sd("Lb$.La$.SJ$",{inherits:[Lb$.La$.RJ$],$kind:1002,fields:{m$:null,n$:null},alias:[],ctors:{init:function(){this.m$=new(Z$.C$.w$.r$(Z$.String,Z$.String).ctor),this.n$=new Lb$.La$.TJ$}},methods:{}}),$$sd("Lb$.nD$",{inherits:[Lb$.Object],fields:{data:null,LEb$:null,MEb$:null},props:{Cd$:{get:function(){return this.data}}},methods:{},overloads:{"ToString()":"toString"}}),$$sd("Lb$.hI$",{inherits:[Lb$.YH$]}),$$sd("Lb$.iI$",{inherits:[Lb$.YH$]}),$$sd("Lb$.jI$",{inherits:[Lb$.YH$],fields:{vFb$:0,time:0},ctors:{ctor:function(e){this.$initialize(),Lb$.YH$.ctor.call(this),this.vFb$=e,this.WMa$()}},methods:{uka$:function(e){this.time-=e*Lb$.QK$.z$,this.VEb$=this.time<=0},WMa$:function(){this.time=this.vFb$,this.VEb$=!1}}}),$$sd("Lb$.nB$",(function(e){return{inherits:[Lb$.mB$],fields:{Ccb$:Bridge.getDefaultValue(e)},ctors:{init:function(){this.Ccb$=Bridge.getDefaultValue(e)},$ctor1:function(e){this.$initialize(),Lb$.mB$.ctor.call(this),this.Ccb$=e},ctor:function(){throw this.$initialize(),Lb$.mB$.ctor.call(this),new Z$.fu$("This is a parameterless constructor to make Luna's Component compatible with Unity's one. Added to make stubs compile")}}}})),$$sd("Lb$.MC$",{inherits:[Lb$.FC$(pc.Texture)],statics:{methods:{}},fields:{lwb$:0},props:{},ctors:{$ctor1:function(e){this.$initialize(),Lb$.FC$(pc.Texture).ctor.call(this,e)}}}),$$sd("Lb$.RC$",{inherits:[Lb$.FC$(pc.Font)],statics:{fields:{pxb$:null}},props:{},ctors:{ctor:function(e){this.$initialize(),Lb$.FC$(pc.Font).ctor.call(this,e)}},methods:{}}),$$sd("Lb$.SC$",{inherits:[Lb$.FC$(pc.Entity)],statics:{fields:{Vxb$:null,Wxb$:null,Xxb$:null,Yxb$:null,Zxb$:null,ayb$:null,byb$:null,cyb$:null,dyb$:null,eyb$:null,fyb$:null,gyb$:null,hyb$:null,iyb$:null,jyb$:null,kyb$:null,lyb$:null,myb$:null,nyb$:null},ctors:{init:function(){this.Vxb$="monoBehaviour",this.Wxb$="rigidbody",this.Xxb$="collider",this.Yxb$="joint",this.Zxb$="rigidbody2D",this.ayb$="collider2D",this.byb$="joint2D",this.cyb$="effector2D",this.dyb$="canvasRenderer",this.eyb$="animator",this.fyb$="animation",this.gyb$="particlesystem",this.hyb$="particleSystemRenderer",this.iyb$="videoPlayer",this.jyb$="audiosourceunity",this.kyb$="renderer",this.lyb$="meshFilter",this.myb$="sortingGroup",this.nyb$="skybox"}},methods:{Find:function(e){return Lb$.Object.Abb$(Lb$.SC$,pc.Application.getApplication().root.findByNameEnabled(e))},Rxb$:function(e){return Lb$.SC$.Sxb$(e)},Sxb$:function(e){var t=Z$.I$.Enumerable.from(pc.Application.getApplication().root.findByTag(e),pc.GraphNode).firstOrDefault(null,null);return Lb$.Object.Abb$(Lb$.SC$,t)},Txb$:function(e){return Z$.I$.Enumerable.from(pc.Application.getApplication().root.findByTag(e),pc.GraphNode).select((function(e){return Lb$.Object.Abb$(Lb$.SC$,e)})).ToArray(Lb$.SC$)},Uxb$:function(e){var t=new Lb$.SC$.ctor;switch(t.SetActive(!1),e){case Lb$.Wm$.jy$:case Lb$.Wm$.ky$:case Lb$.Wm$.qW$:case Lb$.Wm$.wY$:case Lb$.Wm$.xY$:case Lb$.Wm$.BB$:}return i.material=Lb$.TC$.wzb$,t.SetActive(!0),t},CGa$:function(e,t){return null==e&&null==t||(null==e&&null!=t?t.zbb$:null!=e&&null==t?e.zbb$:Bridge.referenceEquals(e,t))},DGa$:function(e,t){return!Lb$.SC$.CGa$(e,t)}}},fields:{Hxb$:null,fjb$:null,Ixb$:null,Jxb$:null,Kxb$:!1},props:{name:{get:function(){return this.Ccb$.name},set:function(e){this.Ccb$.name=e}},tag:{get:function(){return this.Ccb$.tag},set:function(e){this.Ccb$.tag=e}},zcb$:{get:function(){return null!=this.Ccb$.element?(null===this.Jxb$&&(this.Jxb$=Lb$.Object.Abb$(Lb$.Ua$,this.Ccb$)),this.Jxb$):(null===this.Ixb$&&(this.Ixb$=Lb$.Object.Abb$(Lb$.uC$,this.Ccb$)),this.Ixb$)}},Acb$:{get:function(){return this}},Lxb$:{get:function(){return this.Ccb$.getScene()||Lb$.db$.sK$.D$()}},Mxb$:{get:function(){return this.Ccb$._activeSelf}},Nxb$:{get:function(){return!this.Ccb$.isPivotGraphUntitledNode&&this.Ccb$._enabledInHierarchy}},Oxb$:{get:function(){return this.Ccb$._beingDestroyed}},Pxb$:{get:function(){return this.Ccb$.cullingLayer},set:function(e){this.Ccb$.cullingLayer=e}},VB$:{get:function(){for(var e=this.zcb$;Lb$.mB$.DGa$(e.ltb$,null);)e=e.ltb$;return e.Acb$}},Qxb$:{get:function(){for(var e=this.zcb$;Lb$.mB$.DGa$(e.ltb$,null);){if(e.Ccb$.isPrefab||null!=e.Ccb$.objectJson)return e.Acb$;e=e.ltb$}return e.Acb$}}},ctors:{init:function(){this.Hxb$=new Lb$.Vector3,this.fjb$=new Lb$.Vector3},$ctor1:function(e){this.$initialize(),Lb$.FC$(pc.Entity).ctor.call(this,e)},ctor:function(){this.$initialize(),Lb$.FC$(pc.Entity).ctor.call(this,new pc.Entity),this.qxb$()},$ctor2:function(e){this.$initialize(),Lb$.FC$(pc.Entity).ctor.call(this,new pc.Entity),this.name=e,this.qxb$()},$ctor3:function(e,t){this.$initialize(),Lb$.FC$(pc.Entity).ctor.call(this,new pc.Entity),this.name=e,this.qxb$(),this.Bxb$(t)},$ctor4:function(e,t){void 0===t&&(t=[]),this.$initialize(),Lb$.FC$(pc.Entity).ctor.call(this,new pc.Entity),this.name=e,this.qxb$();for(var n=0;n<t.length;++n)this.Bxb$(t[n])}},methods:{qxb$:function(){this.Ccb$.reparent($scene.root,-1)},lcb$:function(e){return this.mcb$(e)},ncb$:function(e,t,n){void 0===n&&(n=!0),n&&t.BJa$(),t.aOa$(this.lcb$(e))},ocb$:function(e,t,n){void 0===n&&(n=!0),n&&t.BJa$(),t.aOa$(this.mcb$(e))},mcb$:function(e){var t=Z$.Array.init(0,null,Lb$.mB$);return this.txb$(e,t),t},rxb$:function(){var e=Z$.Array.init(0,null,Lb$.mB$);return this.sxb$(e),e},sxb$:function(e){e.push(this.zcb$);for(var t=this.Ccb$.getComponents(),n=0;n<t.length;n++){var i=t[n].toUnityObject();Lb$.mB$.DGa$(i,null)&&e.push(i)}},txb$:function(e,t){if(Bridge.referenceEquals(e,Lb$.mB$))this.sxb$(t);else{var n={};if(this.vxb$(e,n))Lb$.mB$.DGa$(n.v,null)&&t.push(n.v);else for(var i=this.Ccb$.getComponents(),r=0;r<i.length;r++){var s=i[r];this.wxb$(s,e)&&t.push(s.toUnityObject())}}},ccb$:function(e,t){return void 0===t&&(t=!1),this.dcb$(e,t)},dcb$:function(e,t){var n=Z$.Array.init(0,null,Lb$.mB$);return this.uxb$(e,t,n),n},uxb$:function(e,t,n){this.txb$(e,n);for(var i=this.Ccb$.children,r=0;r<i.length;r++)null!=i[r]&&(i[r].activeSelf||t)&&Lb$.Object.Abb$(Lb$.SC$,i[r]).uxb$(e,t,n)},hcb$:function(e,t){void 0===t&&(t=!1);var n=this.icb$(e,t);return Bridge.is(n,e)?n:Bridge.getDefaultValue(e)},icb$:function(e,t){void 0===t&&(t=!1);var n=this.kcb$(e);if(Lb$.mB$.DGa$(n,null))return n;for(var i=this.Ccb$.children,r=0;r<i.length;++r){var s=i[r];if(null!=s&&(s.activeSelf||t)){var a=Lb$.Object.Abb$(Lb$.SC$,s).icb$(e,t);if(Lb$.mB$.DGa$(a,null))return a}}return null},jcb$:function(e){return Bridge.cast(this.xxb$(e),e)},kcb$:function(e){return Bridge.cast(this.xxb$(e),Lb$.mB$)},vcb$:function(e,t){return t.v=this.kcb$(e),Lb$.mB$.DGa$(t.v,null)},wcb$:function(e,t){return t.v=this.jcb$(e),null!=t.v},vxb$:function(e,t){return t.v=null,Bridge.referenceEquals(e,Lb$.mB$)||Bridge.referenceEquals(e,Lb$.uC$)?(t.v=this.zcb$,!0):!!Bridge.referenceEquals(e,Lb$.Ua$)&&(null!=this.Ccb$.element&&(t.v=this.zcb$),!0)},wxb$:function(e,t){var n=e.unityClass;return null!=n&&Bridge.Reflection.isAssignableFrom(t,n)},xxb$:function(e){var t={};if(this.vxb$(e,t))return t.v;for(var n=this.Ccb$.getComponents(),i=0;i<n.length;i++){var r=n[i];if(this.wxb$(r,e))return r.toUnityObject()}return null},yxb$:function(e){!!e!=!!this.Mxb$&&(this.Oxb$&&e?Lb$.GI$.e$("GameObjects can not be made active when they are being destroyed."):e?(this.Ccb$._app.systems.unitymanager.disableCallbacks(),this.Ccb$.enabled=!0,this.Ccb$._app.systems.unitymanager.invokeCallbacks(this.Ccb$)):this.Ccb$.enabled=!1)},pcb$:function(e){return this.qcb$(e)},qcb$:function(e){for(var t=this.zcb$;Lb$.mB$.DGa$(t,null);){var n=t.jcb$(e);if(null!=n)return n;t=t.ltb$}return Bridge.getDefaultValue(e)},tcb$:function(e,t,n){var i=n.DOa$;0===n.Cw$&&(i.length=0),this.zxb$(e,t,i),n.ZJa$=i.length,n.EOa$++},rcb$:function(e,t){return void 0===t&&(t=!1),this.scb$(e,t)},scb$:function(e,t){void 0===t&&(t=!1);var n=Z$.Array.init(0,null,Lb$.mB$);return this.zxb$(e,t,n),n},zxb$:function(e,t,n){var i=this.zcb$;do{(t||i.Acb$.Nxb$)&&i.Acb$.txb$(e,n),i=i.ltb$}while(Lb$.mB$.DGa$(i,null))},acb$:function(e,t){void 0===t&&(t=1),this.Ccb$.sendMessageToScripts(e,Z$.Array.init([],Z$.Object))},bcb$:function(e,t,n){void 0===n&&(n=1),this.Ccb$.sendMessageToScripts(e,Z$.Array.init([t],Z$.Object))},Axb$:function(e,t){void 0===t&&(t=1),this.Ccb$.sendMessageToScripts(e,Z$.Array.init([],Z$.Object))},Bxb$:function(e){if(this.Oxb$)return Lb$.GI$.b$("Can't add component to object that is being destroyed."),null;if(Bridge.Reflection.isAssignableFrom(Lb$.qB$,e)){var t=new pc.MonoBehaviourComponent(this.Ccb$,Bridge.Reflection.getTypeFullName(e));return this.Ccb$.addUnityComponent(Lb$.SC$.Vxb$,t),Lb$.Object.Abb$(Lb$.qB$,t)}if(Bridge.referenceEquals(e,Lb$.ab$.Ya$.vC$),Bridge.referenceEquals(e,Lb$.Ua$))return Lb$.mB$.DGa$(this.jcb$(Lb$.Ua$),null)?(Lb$.GI$.c$(Z$.String.B$('Can\'t add component "RectTransform" to {0} because such a component is already added to the game object!',[this.name]),null,[new(Z$.cz$(Z$.String,Z$.String).$ctor1)(" "+(this.name||""),Z$.String.B$("[ {0}](gameobject://{1})",this.name,this.Ccb$._guid))]),null):new Lb$.Ua$(this.Ccb$);if(Bridge.referenceEquals(e,Lb$.ZB$))return this.Fxb$(Lb$.ZB$,pc.CanvasRendererComponent,Lb$.SC$.dyb$);if(Bridge.Reflection.isAssignableFrom(Lb$.Ab$.sC$,e),Bridge.referenceEquals(e,Lb$.NB$))return this.Fxb$(Lb$.NB$,pc.AudioSourceUnityComponent,Lb$.SC$.jyb$);if(Bridge.referenceEquals(e,Lb$.nC$))return i;if(Bridge.referenceEquals(e,Lb$.iC$))return $;if(Bridge.referenceEquals(e,Lb$.mC$)){var n=this.Fxb$(Lb$.mC$,pc.SpriteRendererComponent,Lb$.SC$.kyb$);return n.Thb$=Lb$.TC$.uzb$,n.Jdb$=new pc.Color(1,1,1,1),n.Cpb$=!1,n.Dpb$=!1,n.Rnb$=0,n.Ueb$=0,n}if(Bridge.referenceEquals(e,Lb$.lC$))return r.Thb$=Lb$.TC$.vzb$,r;if(Bridge.referenceEquals(e,Lb$.Da$),Bridge.referenceEquals(e,Lb$.ub$),Bridge.referenceEquals(e,Lb$.Ia$)){var s=new pc.ParticleSystemRenderer,a=new pc.ParticleSystemRendererComponent({particleSystemRenderer:s});this.Ccb$.addUnityComponent(Lb$.SC$.hyb$,a),Lb$.Object.Abb$(Lb$.kC$,a);var o=new pc.ParticleSystem,l=new pc.ParticleSystemComponent({particleSystem:o});this.Ccb$.addUnityComponent(Lb$.SC$.gyb$,l)}if(Bridge.referenceEquals(e,Lb$.wC$))return u;if(Bridge.Reflection.isAssignableFrom(Lb$.qC$,e),Bridge.referenceEquals(e,Lb$.PB$)&&this.Dxb$(this.Hxb$,this.fjb$)&&(this.Hxb$,this.fjb$),Bridge.referenceEquals(e,Lb$.TB$)&&this.Dxb$(this.Hxb$,this.fjb$)&&(this.Hxb$.x,this.Hxb$.y,this.Hxb$.z,this.fjb$),Bridge.referenceEquals(e,Lb$.QB$)&&this.Dxb$(this.Hxb$,this.fjb$)&&(this.Hxb$.x,this.Hxb$.y,this.Hxb$.z,this.Hxb$.y,this.fjb$),Bridge.referenceEquals(e,Lb$.SB$)&&Lb$.mB$.DGa$(p,null)&&null!=p.mesh&&p.mesh.Ccb$,Bridge.referenceEquals(e,Lb$.Bb$),Bridge.referenceEquals(e,Lb$.RB$),Bridge.referenceEquals(e,Lb$.dC$),Bridge.referenceEquals(e,Lb$.eC$),Bridge.referenceEquals(e,Lb$.bC$),Bridge.referenceEquals(e,Lb$.fC$),Bridge.referenceEquals(e,Lb$.cC$),Bridge.Reflection.isAssignableFrom(Lb$.rC$,e),Bridge.Reflection.isAssignableFrom(Lb$.VB$,e),Bridge.Reflection.isAssignableFrom(Lb$.XB$,e),Bridge.Reflection.isAssignableFrom(Lb$.WB$,e),Bridge.Reflection.isAssignableFrom(Lb$.YB$,e),Bridge.Reflection.isAssignableFrom(Lb$.Ma$,e),Bridge.Reflection.isAssignableFrom(Lb$.DB$,e),Bridge.Reflection.isAssignableFrom(Lb$.yB$,e),Bridge.Reflection.isAssignableFrom(Lb$.zB$,e),Bridge.Reflection.isAssignableFrom(Lb$.BB$,e),Bridge.Reflection.isAssignableFrom(Lb$.EB$,e),Bridge.Reflection.isAssignableFrom(Lb$.AB$,e),Bridge.Reflection.isAssignableFrom(Lb$.FB$,e),Bridge.Reflection.isAssignableFrom(Lb$.CB$,e),Bridge.Reflection.isAssignableFrom(Lb$.GB$,e),Bridge.Reflection.isAssignableFrom(Lb$.LB$,e),Bridge.referenceEquals(e,Lb$.pa$))return this.Gxb$(Lb$.pa$,pc.CameraComponent,"camera");if(Bridge.referenceEquals(e,Lb$.gC$))return this.Gxb$(Lb$.gC$,pc.LightComponent,"light",pc.Light.LightDefaults);if(Bridge.referenceEquals(e,Lb$.MB$),Bridge.referenceEquals(e,Lb$.ja$))return this.Fxb$(Lb$.ja$,pc.AnimatorComponent,Lb$.SC$.eyb$);if(Bridge.Reflection.isAssignableFrom(Lb$.Ab$.sC$,e),Bridge.referenceEquals(e,Lb$.HB$)){if(Lb$.mB$.DGa$(this.jcb$(Lb$.HB$),null))return Lb$.GI$.c$(Z$.String.B$('Can\'t add component "Canvas" to {0} because such a component is already added to the game object!',[this.name]),null,[new(Z$.cz$(Z$.String,Z$.String).$ctor1)(" "+(this.name||""),Z$.String.B$("[ {0}](gameobject://{1})",this.name,this.Ccb$._guid))]),null;Lb$.mB$.CGa$(this.jcb$(Lb$.Ua$),null)&&this.Cxb$(Lb$.Ua$);const e=pc.MonoBehaviourComponent.create(this.Ccb$,"UnityEngine.Canvas",!0);return e.code.ConfigureForEntity(this.Ccb$),this.Ccb$.element._updateScreen(this.Ccb$.screen),this.Ccb$.screen.$id=-1,this.Ccb$.addUnityComponentFromDeserialization("monoBehaviour",e),e.code.enabled=!0,e.code.internalExecutionOrder=0,e.code}Bridge.referenceEquals(e,Lb$.ab$.pC$)},Cxb$:function(e){var t=this.Bxb$(e);return Bridge.is(t,e)?t:null},Dxb$:function(e,t){var n=this.jcb$(Lb$.hC$);if(Lb$.mB$.CGa$(n,null)&&!Bridge.is(n,Lb$.iC$))return!1;if(Lb$.mB$.CGa$(i,null)||null==i.uib$)return!1;var r=i.uib$;return!(r.PAb$.length<=0||(e.set(2*r.Rhb$.halfExtents.x,2*r.Rhb$.halfExtents.y,2*r.Rhb$.halfExtents.z),t.copy(r.Rhb$.center),0))},Exb$:function(e,t){var n=this.Fxb$(e,pc.JointComponent,Lb$.SC$.Yxb$,{type:Bridge.Reflection.getTypeFullName(t)});return n.handle.type=Bridge.Reflection.getTypeFullName(t),n},Fxb$:function(e,t,n,i){void 0===i&&(i=null);var r=new t(i),s=Lb$.Object.Abb$(e,r);return this.Ccb$.addUnityComponent(n,r),s},Gxb$:function(e,t,n,i){void 0===i&&(i=null),this.Ccb$[n]||this.Ccb$.addComponent(n,i);var r=this.Ccb$[n];return Lb$.Object.Abb$(e,r)},Xbb$:function(e){return Bridge.referenceEquals(this.tag,e)},Ybb$:function(e){this.wbb$()||this.Ccb$._app.systems.unitymanager.enqueueDestroy(new pc.DestroyEntityTask(this.Ccb$,e))},H$:function(e){return Bridge.equals(this,e)},dGa$:function(){return Bridge.getHashCode(this)}},overloads:{"GetComponents(List<T>, bool)":"GetComponents$2","GetComponents(Type, List<Component>, bool)":"GetComponents$1","GetComponents(Type)":"GetComponents$3","GetComponentsInChildren(Type, bool)":"GetComponentsInChildren$1","GetComponentInChildren(Type, bool)":"GetComponentInChildren$1","GetComponent(Type)":"GetComponent$1","TryGetComponent(T)":"TryGetComponent$1","GetComponentsInParent(bool, List<T>)":"GetComponentsInParent$1","GetComponentsInParent(Type, bool)":"GetComponentsInParent$2","SendMessage(string, SendMessageOptions)":"SendMessage$1","AddComponent(Type)":"AddComponent$1","Equals(object)":"equals","GetHashCode()":"getHashCode"}}),$$sd("Lb$.pL$",{inherits:[Lb$.ge$,Lb$.fe$],statics:{fields:{N$:null,O$:null},ctors:{init:function(){this.N$="{0}",this.O$="{0}: {1}"}},methods:{M$:function(e){if(null==e)return"Null";var t=Bridge.as(e,Z$.IFormattable);return null!=t?Bridge.format(t,null,Bridge.cast(Z$.f$.ov$.invariantCulture,Z$.IFormatProvider)):Bridge.toString(e)}}},fields:{J$:null,K$:!1,L$:0},alias:["J$","G$","K$","H$","L$","I$","f$","e$","h$","g$","j$","i$","l$","k$","n$","m$","p$","o$","r$","q$","t$","s$","v$","u$","x$","w$","z$","y$","B$","A$","D$","C$","F$","E$","b$","a$","d$","c$"],ctors:{ctor:function(){this.$initialize()},$ctor1:function(e){this.$initialize(),this.J$=e,this.K$=!0,this.L$=Lb$.vl$.Log}},methods:{f$:function(e){if(this.K$){if(e===Lb$.vl$.yU$)return!0;if(this.L$!==Lb$.vl$.yU$)return e<=this.L$}return!1},h$:function(e,t){this.f$(e)&&this.J$.a$(e,null,"{0}",[Lb$.pL$.M$(t)])},j$:function(e,t,n){this.f$(e)&&this.J$.a$(e,n,"{0}",[Lb$.pL$.M$(t)])},l$:function(e,t,n){this.f$(e)&&this.J$.a$(e,null,"{0}: {1}",[t,Lb$.pL$.M$(n)])},n$:function(e,t,n,i){this.f$(e)&&this.J$.a$(e,i,"{0}: {1}",[t,Lb$.pL$.M$(n)])},p$:function(e){this.f$(Lb$.vl$.Log)&&this.J$.a$(Lb$.vl$.Log,null,"{0}",[Lb$.pL$.M$(e)])},r$:function(e,t){this.f$(Lb$.vl$.Log)&&this.J$.a$(Lb$.vl$.Log,null,"{0}: {1}",[e,Lb$.pL$.M$(t)])},t$:function(e,t,n){this.f$(Lb$.vl$.Log)&&this.J$.a$(Lb$.vl$.Log,n,"{0}: {1}",[e,Lb$.pL$.M$(t)])},v$:function(e,t){this.f$(Lb$.vl$.bp$)&&this.J$.a$(Lb$.vl$.bp$,null,"{0}: {1}",[e,Lb$.pL$.M$(t)])},x$:function(e,t,n){this.f$(Lb$.vl$.bp$)&&this.J$.a$(Lb$.vl$.bp$,n,"{0}: {1}",[e,Lb$.pL$.M$(t)])},z$:function(e,t){this.f$(Lb$.vl$.Bl$)&&this.J$.a$(Lb$.vl$.Bl$,null,"{0}: {1}",[e,Lb$.pL$.M$(t)])},B$:function(e,t,n){this.f$(Lb$.vl$.Bl$)&&this.J$.a$(Lb$.vl$.Bl$,n,"{0}: {1}",[e,Lb$.pL$.M$(t)])},D$:function(e,t,n){void 0===n&&(n=[]),this.f$(e)&&this.J$.a$(e,null,t,n)},b$:function(e,t,n,i){void 0===i&&(i=[]),this.f$(e)&&this.J$.a$(e,t,n,i)},F$:function(e){this.K$&&this.J$.c$(e,null)},d$:function(e,t){this.K$&&this.J$.c$(e,t)}},overloads:{"Log(LogType, object)":"Log$3","Log(LogType, object, Object)":"Log$4","Log(LogType, string, object)":"Log$5","Log(LogType, string, object, Object)":"Log$6","Log(string, object)":"Log$1","Log(string, object, Object)":"Log$2","LogWarning(string, object, Object)":"LogWarning$1","LogError(string, object, Object)":"LogError$1","LogFormat(LogType, string, object[])":"LogFormat$1","LogException(Exception)":"LogException$1"}}),$$sd("Lb$.TC$",{inherits:[Lb$.FC$(pc.UnityMaterial)],statics:{fields:{uzb$:null,vzb$:null,pxb$:null,wzb$:null}},fields:{mzb$:!1},props:{name:{get:function(){return this.Ccb$.name},set:function(e){this.Ccb$.name=e}},nzb$:{get:function(){return this.Fyb$("_MainTex")}},ozb$:{get:function(){return Lb$.Object.Abb$(Lb$.ZC$,this.Ccb$.shader)},set:function(e){this.Ccb$.shader=null!=e?e.Ccb$:null}},tzb$:{get:function(){return this.Ccb$.shaderKeywords},set:function(e){this.Ccb$.shaderKeywords=e}}},ctors:{ctor:function(e){this.$initialize(),Lb$.FC$(pc.UnityMaterial).ctor.call(this,e)},$ctor1:function(e){this.$initialize(),Lb$.FC$(pc.UnityMaterial).ctor.call(this,e.handle.clone())},$ctor2:function(e){this.$initialize(),Lb$.FC$(pc.UnityMaterial).ctor.call(this,new pc.UnityMaterial),this.ozb$=e,this.Ccb$.setParametersFromShaderDefaults()}},methods:{pyb$:function(e){return this.Ccb$.hasProperty(e)},ufb$:function(e,t){this.Ccb$.setParameter(e,t)},uyb$:function(e,t){this.Ccb$.setParameter(e,t)},Fyb$:function(e){return Lb$.Object.Abb$(Lb$.MC$,this.Ccb$.getParameter(e))},Gyb$:function(e,t){this.Ccb$.setParameter(e,null!=t?t.Ccb$:null)},izb$:function(e){if(null!=this.ozb$&&this.ozb$.Ccb$.supportsKeyword(e)||Lb$.GI$.e$((Z$.String.B$("Material '{0}' with shader '{1}' doesn't support '{2}' keyword.\n",this.name,null!=this.ozb$?this.ozb$.Ccb$.name:null,e)||"")+(Z$.String.B$("Check that shader variant with '{0}' keywords exists and is compiled or placed to shader variants collection",[e])||"")),!Z$.Array.contains(this.tzb$,e,Z$.String)){var t=this.tzb$;t.push(e),this.tzb$=t}},jzb$:function(e){var t=this.tzb$,n=t.indexOf(e);n>=0&&(t.splice(n,1),this.tzb$=t)}},overloads:{"HasProperty(string)":"HasProperty$1","GetFloat(string)":"GetFloat$1","SetFloat(string, float)":"SetFloat$1","GetInt(string)":"GetInt$1","SetInt(string, int)":"SetInt$1","GetVector(string)":"GetVector$1","SetVector(string, Vector4)":"SetVector$1","GetColor(string)":"GetColor$1","SetColor(string, Color)":"SetColor$1","GetMatrix(string)":"GetMatrix$1","SetMatrix(string, Matrix4x4)":"SetMatrix$1","GetTexture(string)":"GetTexture$1","SetTexture(string, Texture)":"SetTexture$1","GetTextureScale(string)":"GetTextureScale$1","SetTextureScale(string, Vector2)":"SetTextureScale$1","GetTextureOffset(string)":"GetTextureOffset$1","SetTextureOffset(string, Vector2)":"SetTextureOffset$1","GetBuffer(string)":"GetBuffer$1","SetBuffer(string, ComputeBuffer)":"SetBuffer$1","GetFloatArray(string)":"GetFloatArray$1","SetFloatArray(string, float[])":"SetFloatArray$1","GetMatrixArray(string)":"GetMatrixArray$1","SetMatrixArray(string, Matrix4x4[])":"SetMatrixArray$1","GetVectorArray(string)":"GetVectorArray$1","SetVectorArray(string, Vector4[])":"SetVectorArray$1","GetColorArray(string)":"GetColorArray$1","SetColorArray(string, Color[])":"SetColorArray$1"}}),$$sd("Lb$.VC$",{inherits:[Lb$.FC$(pc.Mesh)],fields:{box:null},props:{},ctors:{init:function(){this.box=new Lb$.Bounds},$ctor1:function(e){this.$initialize(),Lb$.FC$(pc.Mesh).ctor.call(this,e)},ctor:function(){this.$initialize(),Lb$.FC$(pc.Mesh).ctor.call(this,new pc.Mesh),this.Ccb$.initializeBuffers(),this.Ccb$.subMeshes.push(this.Ccb$)}},methods:{},overloads:{"Clear(bool)":"Clear$1","GetUVs(int, List<Vector3>)":"GetUVs$1","GetUVs(int, List<Vector4>)":"GetUVs$2","SetUVs(int, List<Vector3>)":"SetUVs$1","SetUVs(int, List<Vector4>)":"SetUVs$2","SetUVs(int, Vector2[])":"SetUVs$3","SetUVs(int, Vector3[])":"SetUVs$4","SetUVs(int, Vector4[])":"SetUVs$5","GetColors(List<Color32>)":"GetColors$1","SetColors(List<Color32>)":"SetColors$1","GetIndices(List<int>, int)":"GetIndices$2","GetIndices(int, bool)":"GetIndices$1","SetIndices(int[], MeshTopology, int, bool)":"SetIndices$1","SetIndices(int[], MeshTopology, int, bool, int)":"SetIndices$2","SetTriangles(int[], int, bool, int)":"SetTriangles$3","SetTriangles(int[], int)":"SetTriangles$2","SetTriangles(List<int>, int, bool, int)":"SetTriangles$1","SetTriangles(int[], int, int, int, bool, int)":"SetTriangles$4","GetTriangles(int, bool)":"GetTriangles$1","GetTriangles(List<int>, int, bool)":"GetTriangles$3","GetTriangles(List<int>, int)":"GetTriangles$2"}}),$$sd("Lb$.uC$",{inherits:[Lb$.mB$,Z$.C$.vd$],statics:{fields:{Gtb$:null,Htb$:null,Itb$:null,Jtb$:null,Ktb$:null},ctors:{init:function(){this.Gtb$=new Lb$.Quaternion,this.Htb$=new Lb$.Quaternion,this.Itb$=new Lb$.Quaternion,this.Jtb$=new Lb$.Quaternion,this.Ktb$=new Lb$.Vector3}},methods:{}},fields:{ktb$:!1},props:{Ccb$:{get:function(){return this.xcb$},set:function(e){this.xcb$=e}},ltb$:{get:function(){return null==this.Ccb$.parent||this.Ccb$.parent.scene?null:Lb$.Object.Abb$(Lb$.SC$,this.Ccb$.parent).zcb$}},Pnb$:{get:function(){return this.Ccb$.getWorldTransformInverse().$clone()}},mtb$:{get:function(){return this.Ccb$.getLocalPosition().$clone()},set:function(e){this.Ccb$.setLocalPosition(e)}},Erb$:{get:function(){return this.Ccb$.getPosition().$clone()},set:function(e){this.Ccb$.setPosition(e)}},ntb$:{get:function(){return this.Ccb$.getLocalScale().$clone()},set:function(e){this.Ccb$.setLocalScale(e)}},rtb$:{get:function(){return this.Ccb$.getLocalRotation().$clone()},set:function(e){this.Ccb$.setLocalRotation(e)}},Frb$:{get:function(){return this.Ccb$.getRotation().$clone()}},stb$:{get:function(){return this.Ccb$.getWorldTransform().getZ().normalize()}},utb$:{get:function(){return this.Ccb$.children.length}},Ftb$:{get:function(){return this.Ccb$.getWorldTransform()}}},alias:[],ctors:{init:function(){this.ktb$=!0},ctor:function(e){this.$initialize(),Lb$.mB$.ctor.call(this),this.xcb$=e}},methods:{Lsb$:function(e,t){return void 0===t&&(t=new Lb$.Vector3),this.Ccb$.transformPointInverse(e,t)},Xsb$:function(e,t){if(void 0===t&&(t=!0),!(Lb$.mB$.DGa$(e,null)&&e.Acb$.Oxb$||Lb$.mB$.CGa$(e,this))){if(Lb$.mB$.DGa$(e,null))for(var n=e.ltb$;Lb$.mB$.DGa$(n,null);){if(Lb$.mB$.CGa$(n,this))return void Lb$.GI$.e$(Z$.String.B$('Cannot set parent object "{0}" as child to it\'s child object "{1}"!',this.name,e.name),null,[new(Z$.cz$(Z$.String,Z$.String).$ctor1)(Z$.String.B$('"{0}"',[this.name]),Z$.String.B$("[{0}](gameobject://{1})",this.name,this.xcb$._guid)),new(Z$.cz$(Z$.String,Z$.String).$ctor1)(Z$.String.B$('"{0}"',[e.name]),Z$.String.B$("[{0}](gameobject://{1})",e.name,e.xcb$._guid))]);n=n.ltb$}this.zcb$.Ccb$.setParent(e?e.Ccb$:null,t)}},ftb$:function(){for(var e=this.Ccb$.parent.children,t=0;t<e.length;t++)if(Bridge.referenceEquals(e[t],this.Ccb$))return t;return 0},gtb$:function(e){this.Ccb$.reparent(this.Ccb$.parent,e)},Find:function(e){for(var t=Z$.String.split(e,Z$.Array.init([47],Z$.bu$).map((function(e){return String.fromCharCode(e)}))),n=this.Ccb$,i=0;i<t.length;i++){if(null==n)return null;n=n.findByName(t[i])}return Lb$.Object.Abb$(Lb$.uC$,n)}},overloads:{"TransformPoint(Vector3, Vector3)":"TransformPoint$1","Translate(Vector3, Space)":"Translate$1","Translate(Vector3, Transform)":"Translate$2","Rotate(Vector3, float, Space)":"Rotate$1","Rotate(Vector3, Space)":"Rotate$2","TransformDirection(Vector3)":"TransformDirection$1","LookAt(Transform, Vector3)":"LookAt$1","LookAt(Vector3)":"LookAt$2","LookAt(Vector3, Vector3)":"LookAt$3"}}),$$sd("Lb$.ab$.YC$",{inherits:function(){return[Lb$.FC$(pc.RenderTargetIdentifier),Z$.nd$(Lb$.ab$.YC$)]},statics:{methods:{}},alias:[],ctors:{},methods:{},overloads:{"ToString()":"toString","GetHashCode()":"getHashCode","Equals(RenderTargetIdentifier)":"equalsT","Equals(object)":"equals"}}),$$sd("Lb$.db$.eI$",{inherits:[Lb$.ZH$],fields:{jFb$:null,kFb$:0,lFb$:!1},ctors:{$ctor1:function(e,t){this.$initialize(),Lb$.ZH$.ctor.call(this),this.jFb$=e,this.kFb$=t,this.ZEb$=!0}}}),$$sd("Lb$.ZC$",{inherits:[Lb$.FC$(pc.UnityShader)],statics:{fields:{sDb$:null,tDb$:0,uDb$:null,vDb$:null},ctors:{init:function(){this.sDb$={},this.tDb$=0,this.uDb$={},this.vDb$={}}},methods:{Find:function(e){var t=Lb$.ZC$.sDb$[e];return Lb$.Object.Abb$(Lb$.ZC$,t)}}},props:{},ctors:{ctor:function(e){this.$initialize(),Lb$.FC$(pc.UnityShader).ctor.call(this,e)}}}),$$sd("Lb$.aD$",{inherits:[Lb$.FC$(pc.Sprite)],statics:{methods:{}},props:{DDb$:{get:function(){return this.Ccb$.getPixelsPerUnit()}},rect:{get:function(){var e=this.Ccb$.getTextureRectBeforeResize().$clone(),t=this.Ccb$.getTransparency().$clone();return new Lb$.cK$.$ctor1(0,0,e.getitem(2)-e.getitem(0)+t.x+t.z,e.getitem(3)-e.getitem(1)+t.y+t.w)}},oxb$:{get:function(){return Lb$.Object.Abb$(Lb$.PC$,this.Ccb$.getTexture())}}},ctors:{ctor:function(e){this.$initialize(),Lb$.FC$(pc.Sprite).ctor.call(this,e)}},methods:{}}),$$sd("Lb$.oB$",(function(e){return{inherits:[Lb$.nB$(e)],props:{Dcb$:{get:function(){return this.Ccb$.enabled&&this.Acb$.Mxb$}}},ctors:{ctor:function(t){this.$initialize(),Lb$.nB$(e).$ctor1.call(this,t)}}}})),$$sd("Lb$.NB$",{inherits:[Lb$.nB$(pc.AudioSourceUnityComponent)],statics:{fields:{EPSILON:0},ctors:{init:function(){this.EPSILON=.001}},methods:{Nhb$:function(e,t,n){void 0===n&&(n=1);var i=new Lb$.SC$.$ctor2("One shot audio");i.transform.position=t.$clone();var r=Bridge.cast(i.AddComponent$1(Lb$.NB$),Lb$.NB$);r.clip=e,r.volume=n,r.Play(),Lb$.Object.Fbb$(i,e.length*(Lb$.QK$.z$>=.01?Lb$.QK$.z$:.01))}}},fields:{Ahb$:null,Bhb$:!1,Chb$:0,Dhb$:0,Ehb$:0,Fhb$:0,Ghb$:0,Hhb$:null},props:{mute:{get:function(){return this.Bhb$},set:function(e){this.Bhb$=e,this.phb$()}},Ihb$:{get:function(){return this.Dhb$},set:function(e){this.Dhb$=e,this.phb$()}},pfb$:{get:function(){return this.Ccb$.playOnAwake},set:function(e){this.Ccb$.playOnAwake=e}},Jhb$:{get:function(){return this.Fhb$},set:function(e){this.Fhb$=e,this.qhb$()}},clip:{get:function(){},set:function(e){this.Ccb$.sound=null!=e?e.Ccb$:null}},loop:{get:function(){return this.Ccb$.loop},set:function(e){this.Ccb$.loop=e}},xgb$:{get:function(){return this.Ccb$.isPlaying}},Khb$:{get:function(){return this.Hhb$},set:function(e){this.xhb$(e)}},Lhb$:{get:function(){return 0}},time:{get:function(){return this.Ccb$.time},set:function(e){this.Ccb$.time=e}},Mhb$:{get:function(){},set:function(e){}}},ctors:{init:function(){this.Ahb$=new(Z$.C$.w$.t$(pc.SoundInstance).ctor),this.Bhb$=!1,this.Chb$=1,this.Dhb$=1,this.Ehb$=1,this.Fhb$=1},ctor:function(e){this.$initialize(),Lb$.nB$(pc.AudioSourceUnityComponent).$ctor1.call(this,e)}},methods:{phb$:function(){this.Ccb$.volume=this.Bhb$?0:this.Chb$*this.Dhb$},qhb$:function(){this.Ccb$.pitch=this.Ehb$*this.Fhb$},rhb$:function(e){this.Ccb$.sound=this.Ccb$.sound},shb$:function(e){this.thb$(e,1)},thb$:function(e,t){Lb$.Object.jSa$(e)?this.vhb$().playOneShot(e,t):Lb$.GI$.c$("PlayOneShot was called with a null AudioClip.")},uhb$:function(e){this.rhb$(e)},Play:function(){this.Ccb$.play()},ffb$:function(e){this.Ccb$.play()},Bz$:function(){var e;e=Bridge.getEnumerator(this.Ahb$);try{for(;e.moveNext();){var t=e.Current;t.isPlaying&&t.stop()}}finally{Bridge.is(e,Z$.IDisposable)&&e.System$IDisposable$Dispose()}this.Ccb$.stop()},vhb$:function(){var e;if(!this.Ccb$.isPlaying)return this.Ccb$._soundInstance;e=Bridge.getEnumerator(this.Ahb$);try{for(;e.moveNext();){var t=e.Current;if(!t.isPlaying)return t}}finally{Bridge.is(e,Z$.IDisposable)&&e.System$IDisposable$Dispose()}var n=new pc.SoundInstance(pc.Application.getApplication()._audioManager,null,{});return this.Ahb$.add(n),n},GO$:function(){var e;e=Bridge.getEnumerator(this.Ahb$);try{for(;e.moveNext();){var t=e.Current;t.isPlaying&&t.pause()}}finally{Bridge.is(e,Z$.IDisposable)&&e.System$IDisposable$Dispose()}this.Ccb$.pause()},whb$:function(){var e;e=Bridge.getEnumerator(this.Ahb$);try{for(;e.moveNext();)e.Current.resume()}finally{Bridge.is(e,Z$.IDisposable)&&e.System$IDisposable$Dispose()}this.Ccb$.resume()},xhb$:function(e){null!=this.Hhb$&&(this.Hhb$.removeVolumeChanged(Bridge.fn.cacheBind(this,this.yhb$)),this.Hhb$.removePitchChanged(Bridge.fn.cacheBind(this,this.zhb$))),this.Hhb$=e,null!=this.Hhb$&&(this.Hhb$.addVolumeChanged(Bridge.fn.cacheBind(this,this.yhb$)),this.Hhb$.addPitchChanged(Bridge.fn.cacheBind(this,this.zhb$)),this.yhb$(this.Hhb$.dEb$),this.zhb$(this.Hhb$.eEb$))},yhb$:function(e){this.Chb$=Math.pow(10,e/20),this.phb$()},zhb$:function(e){this.Ehb$=Math.pow(10,e/20),this.qhb$()}},overloads:{"PlayOneShot(AudioClip, float)":"PlayOneShot$1","Play(float)":"Play$1"}}),$$sd("Lb$.pa$",{inherits:[Lb$.nB$(pc.CameraComponent)],statics:{fields:{Pkb$:null},events:{onPreCull:null,onPreRender:null,onPostRender:null},props:{main:{get:function(){var e=pc.Application.getApplication().getMainCamera();return Lb$.Object.Abb$(Lb$.pa$,e)}}},ctors:{init:function(){this.Pkb$=new Lb$.Matrix4x4,this.Pkb$=(new pc.Mat4).setColumn(0,new pc.Vec4(1,0,0,0)).setColumn(1,new pc.Vec4(0,1,0,0)).setColumn(2,new pc.Vec4(0,0,-1,0)).setColumn(3,new pc.Vec4(0,0,0,1)),Bridge.event(this,"onPreCull",(function(){})),Bridge.event(this,"onPreRender",(function(){})),Bridge.event(this,"onPostRender",(function(){}))}},methods:{Mkb$:function(e){Lb$.pa$.onPreRender(e)},Nkb$:function(e){Lb$.pa$.onPostRender(e)},Okb$:function(e){Lb$.pa$.onPreCull(e)}}},fields:{fkb$:null,gkb$:null,hkb$:null,ikb$:!1,jkb$:!1},props:{ukb$:{get:function(){return this.Ccb$.nearClip}},vkb$:{get:function(){return this.Ccb$.farClip}},Ckb$:{get:function(){return this.Ccb$.projection==pc.PROJECTION_ORTHOGRAPHIC}},Yeb$:{get:function(){return 0}}},ctors:{ctor:function(e){this.$initialize(),Lb$.nB$(pc.CameraComponent).$ctor1.call(this,e)}},methods:{Rjb$:function(e){return this.Ccb$.worldToScreen(e)},Sjb$:function(e){return this.Ccb$.screenToWorld(e.x,e.y,e.z)},Vjb$:function(e){var t=this.Sjb$(new pc.Vec3(e.x,e.y,this.ukb$)),n=this.Ckb$?this.zcb$.stb$.$clone():t.$clone().sub(this.zcb$.Erb$).clone().normalize().$clone();return new Lb$.Ray.$ctor1(t,n)},Xjb$:function(e){return new pc.Vec3(e.x/pc.Application.getApplication().graphicsDevice._width,e.y/pc.Application.getApplication().graphicsDevice._height,e.z)}}}),$$sd("Lb$.ZB$",{inherits:[Lb$.nB$(pc.CanvasRendererComponent)],props:{elb$:{get:function(){return this.Ccb$.getMaterialCount()},set:function(e){this.Ccb$.setMaterialCount(e)}},cull:{get:function(){return this.Ccb$.cull}},glb$:{get:function(){return this.Ccb$.absoluteDepth}},hlb$:{set:function(e){this.Ccb$.popMaterialCount=e}},jlb$:{set:function(e){this.Ccb$.cullTransparentMesh=e}}},ctors:{ctor:function(e){this.$initialize(),Lb$.nB$(pc.CanvasRendererComponent).$ctor1.call(this,e)}},methods:{Tkb$:function(){return this.Ccb$.getColor()},Ukb$:function(e){this.Ccb$.setColor(e)},Wkb$:function(e){this.Ccb$.setTexture(null!=e?e.Ccb$:null)},Ykb$:function(e,t){this.Ccb$.setMaterial(null!=e?e.Ccb$:null,t)},blb$:function(e){this.Ccb$.setMesh(null!=e?e.Ccb$:null)},dlb$:function(e,t){this.Ccb$.setPopMaterial(e,t)}},overloads:{"SetMaterial(Material, Texture)":"SetMaterial$1"}}),$$sd("Lb$.NC$",{inherits:[Lb$.MC$],statics:{fields:{twb$:null,uwb$:null}},ctors:{ctor:function(e){this.$initialize(),Lb$.MC$.$ctor1.call(this,e)}}}),$$sd("Lb$.gC$",{inherits:[Lb$.nB$(pc.LightComponent)],props:{},ctors:{}}),$$sd("Lb$.hC$",{inherits:[Lb$.nB$(pc.RendererComponent)],fields:{Anb$:null,Bnb$:0,fXa$:null,Cnb$:null,Dnb$:null,Enb$:null,Fnb$:null,Gnb$:null,box:null,Hnb$:0,Inb$:0},props:{Ccb$:{set:function(e){Bridge.ensureBaseProperty(this,"handle").$UnityEngine$Component$1$pc$RendererComponent$handle=e,null!=e&&(e.unityClass=Bridge.getType(this))}}},ctors:{init:function(){this.fXa$=new Lb$.Vector3,this.box=new Lb$.Bounds,this.Bnb$=0,this.Hnb$=Lb$.ab$.io$.xfa$,this.Inb$=Lb$.ab$.wo$.xfa$},$ctor1:function(e){this.$initialize(),Lb$.nB$(pc.RendererComponent).$ctor1.call(this,e),null!=e&&(e["__UnityEngine.Renderer"]=this,e["__"+(this.$$fullname||"")]=this)}},methods:{},overloads:{"GetPropertyBlock(MaterialPropertyBlock, int)":"GetPropertyBlock$1","SetPropertyBlock(MaterialPropertyBlock, int)":"SetPropertyBlock$1"}}),$$sd("Lb$.Ua$",{inherits:[Lb$.uC$],props:{Zw$:{get:function(){return this.Ccb$.element}},Rtb$:{get:function(){return new pc.Vec2(this.Zw$.anchor.z,this.Zw$.anchor.w)},set:function(e){this.Zw$.anchor=new pc.Vec4(this.Zw$.anchor.x,this.Zw$.anchor.y,e.x,e.y)}},Stb$:{get:function(){return new pc.Vec2(this.Zw$.anchor.x,this.Zw$.anchor.y)},set:function(e){this.Zw$.anchor=new pc.Vec4(e.x,e.y,this.Zw$.anchor.z,this.Zw$.anchor.w)}},gpb$:{get:function(){return this.Zw$.pivot.$clone()},set:function(e){this.Zw$.pivot=e.$clone()}},Vtb$:{get:function(){return this.Zw$.anchoredPosition.$clone()},set:function(e){this.Zw$.anchoredPosition=e.$clone()}},Wtb$:{get:function(){return this.Zw$.sizeDelta.$clone()},set:function(e){this.Zw$.sizeDelta=e.$clone()}},rect:{get:function(){return this.Zw$.rect.$clone()}},Xtb$:{get:function(){return this.Zw$.rect}}},ctors:{ctor:function(e){this.$initialize(),Lb$.uC$.ctor.call(this,e),null==e.element&&this.Ccb$.addComponent("element")}},methods:{Ltb$:function(e,t){var n=new pc.Vec2,i=new pc.Vec4,r=this.Mtb$();n.copy(this.Ccb$.element._sizeDelta),i.copy(this.Ccb$.element._anchors),0===e?n.x=t-r.x*(i.z-i.x):n.y=t-r.y*(i.w-i.y),this.Ccb$.element.sizeDelta=n},Mtb$:function(){var e=Bridge.as(this.ltb$,Lb$.Ua$);return Lb$.mB$.CGa$(e,null)?pc.Vec2.ZERO.clone():new pc.Vec2(e.handle.element._width||0,e.handle.element._height||0)},Ntb$:function(e){if(null==e||e.length<4)Lb$.GI$.e$("Calling GetWorldCorners with an array that is null or has less than 4 elements.");else{this.Otb$(e);for(var t=this.zcb$.Ftb$,n=0;n<4;n++)e[n]=t.multiplyPoint(e[n])}},Otb$:function(e){if(null==e||e.length<4)Lb$.GI$.e$("Calling GetLocalCorners with an array that is null or has less than 4 elements.");else{var t=this.Xtb$,n=t.x,i=t.y,r=t.y$,s=t.A$;e[0].set(n,i,0),e[1].set(n,s,0),e[2].set(r,s,0),e[3].set(r,i,0)}},Ptb$:function(e,t,n){var i=new pc.Vec2,r=new pc.Vec2,s=new pc.Vec2,a=new pc.Vec4,o=e!==Lb$.Ua$.fK$.c$&&e!==Lb$.Ua$.fK$.d$?0:1,l=e===Lb$.Ua$.fK$.c$||e===Lb$.Ua$.fK$.b$,c=l?1:0;i.copy(this.Ccb$.element._sizeDelta),r.copy(this.Ccb$.element._anchoredPosition),s.copy(this.Ccb$.element._pivot),a.copy(this.Ccb$.element._anchors),0===o?(a.x=c,a.z=c,i.x=n,r.x=l?-t-n*(1-s.x):t+n*s.x):(a.y=c,a.w=c,i.y=n,r.y=l?-t-n*(1-s.y):t+n*s.y),this.Ccb$.element.anchoredPosition=r,this.Ccb$.element.sizeDelta=i,this.Ccb$.element.anchor=a}}}),$$sd("Lb$.PC$",{inherits:[Lb$.MC$],statics:{fields:{gxb$:null,hxb$:null,ixb$:null,jxb$:null}},fields:{fxb$:0},props:{},ctors:{ctor:function(e){this.$initialize(),Lb$.MC$.$ctor1.call(this,e),e["__UnityEngine.Texture"]=this}},methods:{},overloads:{"GetPixels(int)":"GetPixels$1","GetPixels(int, int, int, int, int)":"GetPixels$2","SetPixels(Color[], int)":"SetPixels$1","SetPixels32(Color32[])":"SetPixels32$1","SetPixels32(Color32[], int)":"SetPixels32$2","Apply(bool, bool)":"Apply$1","LoadImage(byte[], bool)":"LoadImage$1","Resize(int, int, TextureFormat, bool)":"Resize$1"}}),$$sd("Lb$.pB$",{inherits:[Lb$.oB$(pc.Component)],ctors:{ctor:function(){throw this.$initialize(),Lb$.oB$(pc.Component).ctor.call(this,null),new Z$.fu$("This is a parameterless constructor to make Luna's Behaviour compatible with Unity's one. Added to make stubs compile")},$ctor1:function(e){this.$initialize(),Lb$.oB$(pc.Component).ctor.call(this,e)}}}),$$sd("Lb$.ja$",{inherits:[Lb$.oB$(pc.AnimatorComponent)],statics:{fields:{Xgb$:null,Ygb$:null},ctors:{init:function(){this.Xgb$={},this.Ygb$={}}},methods:{}},fields:{ogb$:0,pgb$:!1,qgb$:null,rgb$:!1,sgb$:null,tgb$:null,ugb$:!1,vgb$:null,wgb$:0,xgb$:!1,ygb$:null,zgb$:null},props:{Cgb$:{set:function(e){Bridge.referenceEquals(this.qgb$,e)||(this.qgb$=e,null!=this.qgb$&&this.lgb$(),pc.AnimatorComponent.isMecanimWASMModuleProvided()&&this.Ccb$.hasWASMSampler()&&(this.qgb$.uEb$?this.Ccb$.updateAvatar(this.qgb$):this.Ccb$.updateAvatar(null)))}},Egb$:{set:function(e){null!=this.sgb$&&this.sgb$.removeOnControllerDirty(Bridge.fn.cacheBind(this,this.Nfb$)),this.sgb$=e,null!=e&&this.sgb$.addOnControllerDirty(Bridge.fn.cacheBind(this,this.Nfb$)),this.Nfb$()}}},ctors:{init:function(){this.ogb$=1,this.ugb$=!0,this.vgb$=new Lb$.ja$.PH$,this.xgb$=!0,this.zgb$=Z$.Array.init(0,null,Lb$.uC$)},ctor:function(e){this.$initialize(),Lb$.oB$(pc.AnimatorComponent).ctor.call(this,e),e["__"+(Bridge.Reflection.getTypeFullName(Lb$.ja$)||"")]=this,this.rgb$=!0}},methods:{Nfb$:function(){if(this.vgb$=new Lb$.ja$.PH$,null!=this.tgb$)for(var e=0;e<this.tgb$.length;e++){var t=this.tgb$[e];t.OnStateChanged=Bridge.fn.remove(t.OnStateChanged,Bridge.fn.cacheBind(this,this.Ofb$))}if(this.tgb$=Z$.Array.init([],Lb$.ka$.SH$),null!=this.sgb$){for(var n=0;n<this.sgb$.nub$.length;n++){var i=this.sgb$.nub$[n];i.type===Lb$.zi$.fl$&&(this.vgb$.a$[i.name]=i.defaultBool),i.type===Lb$.zi$.Int&&(this.vgb$.a$[i.name]=i.defaultInt),i.type===Lb$.zi$.Kg$&&(this.vgb$.a$[i.name]=i.defaultFloat),i.type===Lb$.zi$.Nz$&&(this.vgb$.b$[i.name]=i.defaultBool),Lb$.ja$.Wgb$(i.name,i.nameHash)}for(var r=0;r<this.sgb$.oub$.length;r++){var s=this.sgb$.oub$[r],a=new Lb$.ka$.SH$(s,this);a.s$=Bridge.fn.combine(a.s$,Bridge.fn.cacheBind(this,this.Ofb$)),this.tgb$.push(a),a.j$=r}pc.AnimatorComponent.isMecanimWASMModuleProvided()&&this.Ccb$.updateAnimatorController()}}},overloads:{"SetTrigger(string)":"SetTrigger$1","SetFloat(string, float)":"SetFloat$1","SetFloat(string, float, float, float)":"SetFloat$2","SetInteger(string, int)":"SetInteger$1","SetBool(string, bool)":"SetBool$1","Play(string, int, float)":"Play$4","Play(int, int, float)":"Play$1","Play(string, int)":"Play$3","Play(string)":"Play$2","GetCurrentAnimatorClipInfo(int)":"GetCurrentAnimatorClipInfo$1"}}),$$sd("Lb$.kC$",{inherits:[Lb$.hC$],fields:{Vob$:null},props:{},ctors:{ctor:function(e){this.$initialize(),Lb$.hC$.$ctor1.call(this,e),this.Vob$=e}},methods:{}}),$$sd("Lb$.mC$",{inherits:[Lb$.hC$],fields:{spb$:!1,tpb$:!1,Cdb$:null,upb$:null,vpb$:null,wpb$:0,ZJa$:null,xpb$:0,ypb$:0,zpb$:0,Apb$:0,Bpb$:!1},props:{},ctors:{},methods:{}}),$$sd("Lb$.qB$",{inherits:[Lb$.pB$],statics:{methods:{Ucb$:function(e){Lb$.GI$.b$(Bridge.toString(e))},bX$:function(e){Lb$.Object.bX$(e)},Hbb$:function(e){Lb$.Object.Hbb$(e.Acb$)},Vcb$:function(e,t){return void 0===t&&(t=null),Bridge.fn.bind(t,t[e])},CGa$:function(e,t){return null==e&&null==t||(null==e&&null!=t?t.zbb$:null!=e&&null==t?e.zbb$:Bridge.referenceEquals(e,t))},DGa$:function(e,t){return!Lb$.qB$.CGa$(e,t)}}},fields:{Rcb$:null,Scb$:null},props:{Tcb$:{get:function(){return Bridge.as(this.Ccb$,pc.MonoBehaviourComponent)}}},ctors:{init:function(){this.Rcb$=new(Z$.C$.w$.t$(Lc$.Kc$.sH$).ctor),this.Scb$=new(Z$.C$.w$.r$(Z$.String,Lb$.gI$).ctor)},ctor:function(e){void 0===e&&(e=null),this.$initialize(),Lb$.pB$.$ctor1.call(this,e)}},methods:{Ecb$:function(e,t){void 0===t&&(t=[]);var n=this[e].apply(this,t);if(null!=n){var i=new Lb$.gI$(n,this.Tcb$);return this.Scb$.AJa$(e,i),i}return null},Fcb$:function(e){return new Lb$.gI$(e,this.Tcb$)},Gcb$:function(e){return e},Hcb$:function(e){var t={v:null};this.Scb$.bLa$(e,t)&&(this.Scb$.wJa$(e),this.Icb$(t.v))},Icb$:function(e){e.dua$()},Jcb$:function(e){this.Tcb$.stopCoroutine(e)},Kcb$:function(){this.Tcb$.stopAllCoroutines()},bX$:function(e,t){Lb$.Object.Gbb$(e,t)},Lcb$:function(){var e;e=Bridge.getEnumerator(this.Rcb$);try{for(;e.moveNext();)e.Current.Stop()}finally{Bridge.is(e,Z$.IDisposable)&&e.System$IDisposable$Dispose()}},Mcb$:function(e,t,n){this.Rcb$.add(i)},Ncb$:function(t,n){this.Rcb$.add(e)},Ocb$:function(){var e;e=Bridge.getEnumerator(this.Rcb$);try{for(;e.moveNext();)e.Current.Stop()}finally{Bridge.is(e,Z$.IDisposable)&&e.System$IDisposable$Dispose()}},Pcb$:function(e){var t;t=Bridge.getEnumerator(this.Rcb$);try{for(;t.moveNext();){var n=t.Current;Bridge.referenceEquals(n.name,e)&&n.Stop()}}finally{Bridge.is(t,Z$.IDisposable)&&t.System$IDisposable$Dispose()}},Qcb$:function(e){},H$:function(e){return Lb$.pB$.prototype.H$.call(this,e)},dGa$:function(){return Lb$.pB$.prototype.dGa$.call(this)}},overloads:{"StartCoroutine(string, object[])":"StartCoroutine$2","StartCoroutine(IEnumerator)":"StartCoroutine$1","StopCoroutine(string)":"StopCoroutine$1","StopCoroutine(Coroutine)":"StopCoroutine$2","CancelInvoke(string)":"CancelInvoke$1","Equals(object)":"equals","GetHashCode()":"getHashCode"}}),$$sd("Lb$.HB$",{inherits:[Lb$.pB$],statics:{fields:{dfb$:null},events:{willRenderCanvases:null},ctors:{init:function(){Bridge.event(this,"willRenderCanvases",(function(){}))}},methods:{Zeb$:function(){Lb$.HB$.willRenderCanvases()},bfb$:function(){return Lb$.HB$.dfb$},cfb$:function(){}}},fields:{Ceb$:0,Deb$:!1,Eeb$:0,Feb$:null,Geb$:0,Heb$:0,Ieb$:!1,Jeb$:!1,Keb$:0},props:{Leb$:{set:function(e){this.Ccb$.entity.screen.scaleFactor=e}},Meb$:{get:function(){return this.Deb$},set:function(e){this.Deb$=e}},Neb$:{get:function(){return Lb$.zK$.c$(this.jca$.sortingLayerIndex)}},Bcb$:{get:function(){return this.jca$.enabled},set:function(e){this.jca$.enabled=e}},jca$:{get:function(){return Bridge.cast(this.Ccb$,pc.ScreenComponent)}},Oeb$:{set:function(e){this.Eeb$=e,this.jca$.screenDistance=e}},Reb$:{get:function(){return null==this.jca$.camera?null:Lb$.Object.Abb$(Lb$.pa$,this.jca$.camera._component)},set:function(e){this.Feb$=e,this.jca$.camera=Lb$.mB$.DGa$(e,null)?e.Ccb$.data.camera:null}},Seb$:{get:function(){switch(this.jca$.screenType){case pc.SCREEN_TYPE_CAMERA:return Lb$.dp$.mia$;case pc.SCREEN_TYPE_SCREEN:return Lb$.dp$.lia$;case pc.SCREEN_TYPE_WORLD:return Lb$.dp$.nia$}return Lb$.dp$.lia$},set:function(e){switch(e){case Lb$.dp$.mia$:this.jca$.screenType=pc.SCREEN_TYPE_CAMERA;break;case Lb$.dp$.lia$:this.jca$.screenType=pc.SCREEN_TYPE_SCREEN;break;case Lb$.dp$.nia$:this.jca$.screenType=pc.SCREEN_TYPE_WORLD}}},Teb$:{get:function(){return this.Geb$},set:function(e){this.Geb$=e,this.jca$.referencePixelsPerUnit=e}},Ueb$:{get:function(){return this.Heb$},set:function(e){this.Heb$=e,this.jca$.sortingOrder=e,this.jca$.syncDrawOrder()}},Veb$:{set:function(e){this.jca$.sortingLayerIndex=Lb$.zK$.d$(e),this.jca$.syncDrawOrder()}},Web$:{set:function(e){this.Ieb$=e,this.jca$.isFallbackOverlay=e}},Yeb$:{set:function(e){}}},ctors:{init:function(){this.Ceb$=1,this.Deb$=!1,this.Eeb$=0,this.Geb$=0,this.Heb$=0,this.Keb$=Lb$.Th$.Ja$},ctor:function(e){this.$initialize(),Lb$.pB$.$ctor1.call(this,e)}},methods:{Zbb$:function(e){Lb$.pB$.prototype.Zbb$.call(this,e),null==e.screen&&e.addComponent("screen"),this.Ccb$=e.screen,this.Ccb$["__UnityEngine.Canvas"]=this},adb$:function(){this.jca$._rootPointerEventReceiver=!0},bdb$:function(){}}}),$$sd("Lb$.tB$",{inherits:[Lb$.qB$],statics:{methods:{sdb$:function(e){if(null==e||0===e.length)return 1;for(var t=1,n=0;n<e.length;n++){var i=e[n];if(t*=i.alpha,i.ignoreParentGroups)break}return t},tdb$:function(e){if(null==e||0===e.length)return!0;for(var t=!0,n=0;n<e.length;n++){var i=e[n];if(t=t&&i.interactable,i.ignoreParentGroups||!t)break}return t},udb$:function(e){if(null==e||0===e.length)return!0;for(var t=!0,n=0;n<e.length;n++){var i=e[n];if(t=t&&i.blocksRaycasts,i.ignoreParentGroups||!t)break}return t}}},fields:{gdb$:0,hdb$:!1,idb$:!1,jdb$:!1,kdb$:0,ldb$:!1,mdb$:!1,ndb$:!1},props:{},ctors:{},methods:{}});var $m=Bridge.setMetadata,$n=["System","UnityEngine","UnityEngine.Events","System.Collections.Generic","UnityEngine.TextCore","UnityEngine.TextCore.LowLevel","Goblin"];$m("Luna.Unity.DTO.UnityEngine.Assets.Material.ColorParameter",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Material.FloatParameter",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Material.MaterialFlag",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Material.TextureParameter",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Material.VectorParameter",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.QualitySettings",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Resources.File",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Shader.DefaultParameterValue",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Shader.Pass",(function(){}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Shader.Pass.Blending",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Shader.Pass.KeywordGroup",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Shader.Pass.StencilOp",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Shader.Pass.Tag",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Shader.Pass.Value",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Shader.Pass.Variant",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientAlphaKey",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.ParticleSystemTypes.Data.GradientColorKey",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("UnityEngine.ArgumentCache",(function(){}),$n),$m("UnityEngine.Events.PersistentCall",(function(){}),$n),$m("UnityEngine.Events.PersistentCallGroup",(function(){}),$n),$m("UnityEngine.Scripting.PreserveAttribute",(function(){return{ni:!0}}),$n),$m("UnityEngine.TextCore.GlyphMetrics",(function(){}),$n),$m("UnityEngine.TextCore.GlyphRect",(function(){}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Material",(function(){}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.RenderSettings",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Resources",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("Luna.Unity.DTO.UnityEngine.Assets.Shader",(function(){return{at:[new System.SerializableAttribute]}}),$n),$m("UnityEngine.ExposedReference$1",(function(e){}),$n),$m("UnityEngine.Bounds",(function(){return{att:1048841,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,def:function(){return new pc.BoundingBox}},{a:2,n:".ctor",t:1,p:[$n[1].Vector3,$n[1].Vector3],pi:[{n:"center",pt:$n[1].Vector3,ps:0},{n:"size",pt:$n[1].Vector3,ps:1}],def:function(e,t){return new pc.BoundingBox(e,t.scale(.5))}},{a:2,n:"ClosestPoint",t:8,pi:[{n:"point",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.closestPoint(e)},rt:$n[1].Vector3,p:[$n[1].Vector3]},{a:2,n:"Contains",t:8,pi:[{n:"point",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.containsPoint(e)},rt:$n[0].Boolean,p:[$n[1].Vector3],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"Encapsulate",t:8,pi:[{n:"bounds",pt:$n[1].Bounds,ps:0}],tpc:0,def:function(e){return this.add(e)},rt:$n[0].Void,p:[$n[1].Bounds]},{a:2,n:"Encapsulate",t:8,pi:[{n:"point",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.expandToPoint(e)},rt:$n[0].Void,p:[$n[1].Vector3]},{ov:!0,a:2,n:"Equals",t:8,pi:[{n:"other",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.strictEquals(e)},rt:$n[0].Boolean,p:[$n[0].Object],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"Equals",t:8,pi:[{n:"other",pt:$n[1].Bounds,ps:0}],tpc:0,def:function(e){return this.equals(e)},rt:$n[0].Boolean,p:[$n[1].Bounds],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"Expand",t:8,pi:[{n:"amount",pt:$n[0].Single,ps:0}],tpc:0,def:function(e){return this.expand(new pc.Vec3(e,e,e))},rt:$n[0].Void,p:[$n[0].Single]},{a:2,n:"Expand",t:8,pi:[{n:"amount",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.expand(e)},rt:$n[0].Void,p:[$n[1].Vector3]},{ov:!0,a:2,n:"GetHashCode",t:8,tpc:0,def:function(){return this.getHashCode()},rt:$n[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"IntersectRay",t:8,pi:[{n:"ray",pt:$n[1].Ray,ps:0}],tpc:0,def:function(e){return this.intersectsRay(e)},rt:$n[0].Boolean,p:[$n[1].Ray],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"IntersectRay",t:8,pi:[{n:"ray",pt:$n[1].Ray,ps:0},{n:"distance",out:!0,pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return this.intersectRayDistance(e,t)},rt:$n[0].Boolean,p:[$n[1].Ray,$n[0].Single],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"Intersects",t:8,pi:[{n:"bounds",pt:$n[1].Bounds,ps:0}],tpc:0,def:function(e){return this.intersects(e)},rt:$n[0].Boolean,p:[$n[1].Bounds],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"SetMinMax",t:8,pi:[{n:"min",pt:$n[1].Vector3,ps:0},{n:"max",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.setMinMax(e,t)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"SqrDistance",t:8,pi:[{n:"point",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.sqrDistance(e)},rt:$n[0].Single,p:[$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"op_Equality",is:!0,t:8,pi:[{n:"lhs",pt:$n[1].Bounds,ps:0},{n:"rhs",pt:$n[1].Bounds,ps:1}],tpc:0,def:function(e,t){return pc.BoundingBox.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Bounds,$n[1].Bounds],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Inequality",is:!0,t:8,pi:[{n:"lhs",pt:$n[1].Bounds,ps:0},{n:"rhs",pt:$n[1].Bounds,ps:1}],tpc:0,def:function(e,t){return!pc.BoundingBox.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Bounds,$n[1].Bounds],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"center",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_center",t:8,rt:$n[1].Vector3,fg:"center"},s:{a:2,n:"set_center",t:8,p:[$n[1].Vector3],rt:$n[0].Void,fs:"center"},fn:"center"},{a:2,n:"extents",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_extents",t:8,rt:$n[1].Vector3,fg:"halfExtents"},s:{a:2,n:"set_extents",t:8,p:[$n[1].Vector3],rt:$n[0].Void,fs:"halfExtents"},fn:"halfExtents"},{a:2,n:"max",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_max",t:8,rt:$n[1].Vector3,fg:"max"},s:{a:2,n:"set_max",t:8,p:[$n[1].Vector3],rt:$n[0].Void,fs:"max"},fn:"max"},{a:2,n:"min",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_min",t:8,rt:$n[1].Vector3,fg:"min"},s:{a:2,n:"set_min",t:8,p:[$n[1].Vector3],rt:$n[0].Void,fs:"min"},fn:"min"},{a:2,n:"size",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_size",t:8,tpc:0,def:function(){return this.halfExtents.$clone().scale(2)},rt:$n[1].Vector3},s:{a:2,n:"set_size",t:8,pi:[{n:"value",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.halfExtents=e.$clone().scale(.5)},rt:$n[0].Void,p:[$n[1].Vector3]}},{a:1,backing:!0,n:"<center>k__BackingField",t:4,rt:$n[1].Vector3,sn:"center"},{a:1,backing:!0,n:"<extents>k__BackingField",t:4,rt:$n[1].Vector3,sn:"halfExtents"},{a:1,backing:!0,n:"<max>k__BackingField",t:4,rt:$n[1].Vector3,sn:"max"},{a:1,backing:!0,n:"<min>k__BackingField",t:4,rt:$n[1].Vector3,sn:"min"},{a:1,backing:!0,n:"<size>k__BackingField",t:4,rt:$n[1].Vector3,sn:"size"}]}}),$n),$m("UnityEngine.Color",(function(){return{att:1048841,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,def:function(){return new pc.Color}},{a:2,n:".ctor",t:1,p:[$n[0].Single,$n[0].Single,$n[0].Single],pi:[{n:"r",pt:$n[0].Single,ps:0},{n:"g",pt:$n[0].Single,ps:1},{n:"b",pt:$n[0].Single,ps:2}],def:function(e,t,n){return new pc.Color(e,t,n,1)}},{a:2,n:".ctor",t:1,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single],pi:[{n:"r",pt:$n[0].Single,ps:0},{n:"g",pt:$n[0].Single,ps:1},{n:"b",pt:$n[0].Single,ps:2},{n:"a",pt:$n[0].Single,ps:3}],def:function(e,t,n,i){return new pc.Color(e,t,n,i)}},{ov:!0,a:2,n:"Equals",t:8,pi:[{n:"o",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.strictEquals(e)},rt:$n[0].Boolean,p:[$n[0].Object],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{ov:!0,a:2,n:"GetHashCode",t:8,sn:"getHashCode",rt:$n[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"HSVToRGB",is:!0,t:8,pi:[{n:"h",pt:$n[0].Single,ps:0},{n:"s",pt:$n[0].Single,ps:1},{n:"v",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return pc.Color.hsvToRGB(e,t,n,!0)},rt:$n[1].Color,p:[$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"HSVToRGB",is:!0,t:8,pi:[{n:"h",pt:$n[0].Single,ps:0},{n:"s",pt:$n[0].Single,ps:1},{n:"v",pt:$n[0].Single,ps:2},{n:"hdr",pt:$n[0].Boolean,ps:3}],tpc:0,def:function(e,t,n,i){return pc.Color.hsvToRGB(e,t,n,i)},rt:$n[1].Color,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Boolean]},{a:2,n:"Lerp",is:!0,t:8,pi:[{n:"a",pt:$n[1].Color,ps:0},{n:"b",pt:$n[1].Color,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return pc.Color.lerp(e,t,n)},rt:$n[1].Color,p:[$n[1].Color,$n[1].Color,$n[0].Single]},{a:2,n:"LerpUnclamped",is:!0,t:8,pi:[{n:"a",pt:$n[1].Color,ps:0},{n:"b",pt:$n[1].Color,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return pc.Color.lerpUnclamped(e,t,n)},rt:$n[1].Color,p:[$n[1].Color,$n[1].Color,$n[0].Single]},{a:2,n:"RGBToHSV",is:!0,t:8,pi:[{n:"rgbColor",pt:$n[1].Color,ps:0},{n:"h",out:!0,pt:$n[0].Single,ps:1},{n:"s",out:!0,pt:$n[0].Single,ps:2},{n:"v",out:!0,pt:$n[0].Single,ps:3}],tpc:0,def:function(e,t,n,i){return pc.Color.rgbToHSV(e,t,n,i)},rt:$n[0].Void,p:[$n[1].Color,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"Set",t:8,pi:[{n:"r",pt:$n[0].Single,ps:0},{n:"g",pt:$n[0].Single,ps:1},{n:"b",pt:$n[0].Single,ps:2},{n:"a",pt:$n[0].Single,ps:3}],tpc:0,def:function(e,t,n,i){return this.set(e,t,n,i)},rt:$n[1].Color,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"SetFrom",t:8,pi:[{n:"other",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.copy(e)},rt:$n[1].Color,p:[$n[0].Object]},{a:2,n:"SetFromArray",t:8,pi:[{n:"data",pt:Array,ps:0},{n:"offset",pt:$n[0].Int32,ps:1}],tpc:0,def:function(e,t){return this.setFromArray(e,t)},rt:$n[0].Void,p:[Array,$n[0].Int32]},{a:2,n:"op_Addition",is:!0,t:8,pi:[{n:"a",pt:$n[1].Color,ps:0},{n:"b",pt:$n[1].Color,ps:1}],tpc:0,def:function(e,t){return new pc.Color(e.r+t.r,e.g+t.g,e.b+t.b,e.a+t.a)},rt:$n[1].Color,p:[$n[1].Color,$n[1].Color]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"a",pt:$n[1].Color,ps:0},{n:"b",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return new pc.Color(e.r/t,e.g/t,e.b/t,e.a/t)},rt:$n[1].Color,p:[$n[1].Color,$n[0].Single]},{a:2,n:"op_Equality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Color,ps:0},{n:"b",pt:$n[1].Color,ps:1}],tpc:0,def:function(e,t){return pc.Color.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Color,$n[1].Color],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Implicit",is:!0,t:8,pi:[{n:"v",pt:$n[1].Vector4,ps:0}],sn:"op_Implicit",rt:$n[1].Color,p:[$n[1].Vector4]},{a:2,n:"op_Inequality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Color,ps:0},{n:"b",pt:$n[1].Color,ps:1}],tpc:0,def:function(e,t){return!pc.Color.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Color,$n[1].Color],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"t",pt:$n[0].Single,ps:0},{n:"a",pt:$n[1].Color,ps:1}],tpc:0,def:function(e,t){return new pc.Color(t.r*e,t.g*e,t.b*e,t.a*e)},rt:$n[1].Color,p:[$n[0].Single,$n[1].Color]},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"a",pt:$n[1].Color,ps:0},{n:"t",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return new pc.Color(e.r*t,e.g*t,e.b*t,e.a*t)},rt:$n[1].Color,p:[$n[1].Color,$n[0].Single]},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"a",pt:$n[1].Color,ps:0},{n:"b",pt:$n[1].Color,ps:1}],tpc:0,def:function(e,t){return new pc.Color(e.r*t.r,e.g*t.g,e.b*t.b,e.a*t.a)},rt:$n[1].Color,p:[$n[1].Color,$n[1].Color]},{a:2,n:"op_Subtraction",is:!0,t:8,pi:[{n:"a",pt:$n[1].Color,ps:0},{n:"b",pt:$n[1].Color,ps:1}],tpc:0,def:function(e,t){return new pc.Color(e.r-t.r,e.g-t.g,e.b-t.b,e.a-t.a)},rt:$n[1].Color,p:[$n[1].Color,$n[1].Color]},{a:2,n:"Data",t:16,rt:$n[0].Array.type(System.Single),g:{a:2,n:"get_Data",t:8,rt:$n[0].Array.type(System.Single),fg:"data"},s:{a:2,n:"set_Data",t:8,p:[$n[0].Array.type(System.Single)],rt:$n[0].Void,fs:"data"},fn:"data"},{a:2,n:"Item",t:16,rt:$n[0].Single,p:[$n[0].Int32],i:!0,ipi:[{n:"index",pt:$n[0].Int32,ps:0}],g:{a:2,n:"get_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0}],sn:"getitem",rt:$n[0].Single,p:[$n[0].Int32],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0},{n:"value",pt:$n[0].Single,ps:1}],sn:"setitem",rt:$n[0].Void,p:[$n[0].Int32,$n[0].Single]}},{a:2,n:"black",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_black",is:!0,t:8,tpc:0,def:function(){return new pc.Color(0,0,0,1)},rt:$n[1].Color}},{a:2,n:"blue",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_blue",is:!0,t:8,tpc:0,def:function(){return new pc.Color(0,0,1,1)},rt:$n[1].Color}},{a:2,n:"clear",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_clear",is:!0,t:8,tpc:0,def:function(){return new pc.Color(0,0,0,0)},rt:$n[1].Color}},{a:2,n:"cyan",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_cyan",is:!0,t:8,tpc:0,def:function(){return new pc.Color(0,1,1,1)},rt:$n[1].Color}},{a:2,n:"gamma",t:16,rt:$n[1].Color,g:{a:2,n:"get_gamma",t:8,tpc:0,def:function(){return this.gamma()},rt:$n[1].Color}},{a:2,n:"gray",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_gray",is:!0,t:8,tpc:0,def:function(){return new pc.Color(.5,.5,.5,1)},rt:$n[1].Color}},{a:2,n:"grayscale",t:16,rt:$n[0].Single,g:{a:2,n:"get_grayscale",t:8,tpc:0,def:function(){return this.grayscale()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"green",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_green",is:!0,t:8,tpc:0,def:function(){return new pc.Color(0,1,0,1)},rt:$n[1].Color}},{a:2,n:"grey",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_grey",is:!0,t:8,tpc:0,def:function(){return new pc.Color(.5,.5,.5,1)},rt:$n[1].Color}},{a:2,n:"linear",t:16,rt:$n[1].Color,g:{a:2,n:"get_linear",t:8,tpc:0,def:function(){return this.linear()},rt:$n[1].Color}},{a:2,n:"magenta",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_magenta",is:!0,t:8,tpc:0,def:function(){return new pc.Color(1,0,1,1)},rt:$n[1].Color}},{a:2,n:"maxColorComponent",t:16,rt:$n[0].Single,g:{a:2,n:"get_maxColorComponent",t:8,tpc:0,def:function(){return this.maxColorComponent},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"red",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_red",is:!0,t:8,tpc:0,def:function(){return new pc.Color(1,0,0,1)},rt:$n[1].Color}},{a:2,n:"white",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_white",is:!0,t:8,tpc:0,def:function(){return new pc.Color(1,1,1,1)},rt:$n[1].Color}},{a:2,n:"yellow",is:!0,t:16,rt:$n[1].Color,g:{a:2,n:"get_yellow",is:!0,t:8,tpc:0,def:function(){return new pc.Color(1,1,0,1)},rt:$n[1].Color}},{a:2,n:"a",t:4,rt:$n[0].Single,sn:"a",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"b",t:4,rt:$n[0].Single,sn:"b",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"g",t:4,rt:$n[0].Single,sn:"g",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"r",t:4,rt:$n[0].Single,sn:"r",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<Data>k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"<Item>k__BackingField",t:4,rt:$n[0].Single,sn:"item",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<black>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"black"},{a:1,backing:!0,n:"<blue>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"blue"},{a:1,backing:!0,n:"<clear>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"clear"},{a:1,backing:!0,n:"<cyan>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"cyan"},{a:1,backing:!0,n:"<gamma>k__BackingField",t:4,rt:$n[1].Color,sn:"gamma"},{a:1,backing:!0,n:"<gray>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"gray"},{a:1,backing:!0,n:"<grayscale>k__BackingField",t:4,rt:$n[0].Single,sn:"grayscale",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<green>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"green"},{a:1,backing:!0,n:"<grey>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"grey"},{a:1,backing:!0,n:"<linear>k__BackingField",t:4,rt:$n[1].Color,sn:"linear"},{a:1,backing:!0,n:"<magenta>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"magenta"},{a:1,backing:!0,n:"<maxColorComponent>k__BackingField",t:4,rt:$n[0].Single,sn:"maxColorComponent",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<red>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"red"},{a:1,backing:!0,n:"<white>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"white"},{a:1,backing:!0,n:"<yellow>k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"yellow"}]}}),$n),$m("UnityEngine.Matrix4x4",(function(){return{att:1048841,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,def:function(){return new pc.Mat4}},{a:2,n:".ctor",t:1,p:[$n[1].Vector4,$n[1].Vector4,$n[1].Vector4,$n[1].Vector4],pi:[{n:"column0",pt:$n[1].Vector4,ps:0},{n:"column1",pt:$n[1].Vector4,ps:1},{n:"column2",pt:$n[1].Vector4,ps:2},{n:"column3",pt:$n[1].Vector4,ps:3}],def:function(e,t,n,i){return(new pc.Mat4).setColumn(0,e).setColumn(1,t).setColumn(2,n).setColumn(3,i)}},{a:2,n:"Determinant",is:!0,t:8,pi:[{n:"m",pt:$n[1].Matrix4x4,ps:0}],tpc:0,def:function(e){return e.determinant()},rt:$n[0].Single,p:[$n[1].Matrix4x4],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{ov:!0,a:2,n:"Equals",t:8,pi:[{n:"other",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.strictEquals(e)},rt:$n[0].Boolean,p:[$n[0].Object],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"Equals",t:8,pi:[{n:"other",pt:$n[1].Matrix4x4,ps:0}],tpc:0,def:function(e){return this.strictEquals(e)},rt:$n[0].Boolean,p:[$n[1].Matrix4x4],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"EqualsWithEpsilon",t:8,pi:[{n:"other",pt:$n[1].Matrix4x4,ps:0},{n:"eps",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return this.equalsWithEpsilon(e,t)},rt:$n[0].Boolean,p:[$n[1].Matrix4x4,$n[0].Single],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"Frustum",is:!0,t:8,pi:[{n:"fp",pt:$n[1].FrustumPlanes,ps:0}],sn:"Frustum",rt:$n[1].Matrix4x4,p:[$n[1].FrustumPlanes]},{a:2,n:"Frustum",is:!0,t:8,pi:[{n:"left",pt:$n[0].Single,ps:0},{n:"right",pt:$n[0].Single,ps:1},{n:"bottom",pt:$n[0].Single,ps:2},{n:"top",pt:$n[0].Single,ps:3},{n:"zNear",pt:$n[0].Single,ps:4},{n:"zFar",pt:$n[0].Single,ps:5}],tpc:0,def:function(e,t,n,i,r,s){return pc.Mat4.setFrustumUnity(e,t,n,i,r,s)},rt:$n[1].Matrix4x4,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"GetColumn",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0}],tpc:0,def:function(e){return this.getColumn(e)},rt:$n[1].Vector4,p:[$n[0].Int32]},{a:2,n:"GetEulerAnglesTo",t:8,pi:[{n:"v",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.getEulerAngles(e)},rt:$n[0].Void,p:[$n[1].Vector3]},{ov:!0,a:2,n:"GetHashCode",t:8,tpc:0,def:function(){return this.getHashCode()},rt:$n[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"GetReference",is:!0,t:8,pi:[{n:"matrix",pt:$n[1].Matrix4x4,ps:0}],tpc:0,def:function(e){return e},rt:$n[1].Matrix4x4,p:[$n[1].Matrix4x4]},{a:2,n:"GetRotationTo",t:8,pi:[{n:"q",pt:$n[1].Quaternion,ps:0}],tpc:0,def:function(e){return this.getRotation(e)},rt:$n[0].Void,p:[$n[1].Quaternion]},{a:2,n:"GetRow",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0}],tpc:0,def:function(e){return this.getRow(e)},rt:$n[1].Vector4,p:[$n[0].Int32]},{a:2,n:"GetTranslationTo",t:8,pi:[{n:"v",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.getTranslation(e)},rt:$n[0].Void,p:[$n[1].Vector3]},{a:2,n:"Inverse",t:8,tpc:0,def:function(){return this.clone().invert()},rt:$n[1].Matrix4x4},{a:2,n:"Inverse",is:!0,t:8,pi:[{n:"source",pt:$n[1].Matrix4x4,ps:0}],tpc:0,def:function(e){return e.clone().invert()},rt:$n[1].Matrix4x4,p:[$n[1].Matrix4x4]},{a:2,n:"Inverse3DAffine",is:!0,t:8,pi:[{n:"input",pt:$n[1].Matrix4x4,ps:0},{n:"result",ref:!0,pt:$n[1].Matrix4x4,ps:1}],tpc:0,def:function(e,t){return pc.Mat4.inverse3DAffine(e,t)},rt:$n[0].Boolean,p:[$n[1].Matrix4x4,$n[1].Matrix4x4],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"Invert",t:8,tpc:0,def:function(){return this.invert()},rt:$n[0].Void},{a:2,n:"LookAt",is:!0,t:8,pi:[{n:"from",pt:$n[1].Vector3,ps:0},{n:"to",pt:$n[1].Vector3,ps:1},{n:"up",pt:$n[1].Vector3,ps:2}],tpc:0,def:function(e,t,n){return pc.Mat4.setLookAtUnity(e,t,n)},rt:$n[1].Matrix4x4,p:[$n[1].Vector3,$n[1].Vector3,$n[1].Vector3]},{a:2,n:"MultiplyInverse",t:8,pi:[{n:"rhs",pt:$n[1].Matrix4x4,ps:0}],tpc:0,def:function(e){return this.multiplyInverse(e)},rt:$n[1].Matrix4x4,p:[$n[1].Matrix4x4]},{a:2,n:"MultiplyPoint",t:8,pi:[{n:"p",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.multiplyPoint(e)},rt:$n[1].Vector3,p:[$n[1].Vector3]},{a:2,n:"MultiplyPoint3x4",t:8,pi:[{n:"p",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.transformPoint(e)},rt:$n[1].Vector3,p:[$n[1].Vector3]},{a:2,n:"MultiplyPointTo",t:8,pi:[{n:"p",pt:$n[1].Vector3,ps:0},{n:"r",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.transformPoint(e,t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"MultiplyVector",t:8,pi:[{n:"v",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.transformVector(e)},rt:$n[1].Vector3,p:[$n[1].Vector3]},{a:2,n:"MultiplyVector4To",t:8,pi:[{n:"p",pt:$n[1].Vector4,ps:0},{n:"r",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return this.transformVec4(e,t)},rt:$n[0].Void,p:[$n[1].Vector4,$n[1].Vector4]},{a:2,n:"MultiplyVectorTo",t:8,pi:[{n:"v",pt:$n[1].Vector3,ps:0},{n:"r",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.transformVector(e,t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"Ortho",is:!0,t:8,pi:[{n:"left",pt:$n[0].Single,ps:0},{n:"right",pt:$n[0].Single,ps:1},{n:"bottom",pt:$n[0].Single,ps:2},{n:"top",pt:$n[0].Single,ps:3},{n:"zNear",pt:$n[0].Single,ps:4},{n:"zFar",pt:$n[0].Single,ps:5}],tpc:0,def:function(e,t,n,i,r,s){return(new pc.Mat4).setOrtho(e,t,n,i,r,s)},rt:$n[1].Matrix4x4,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"Perspective",is:!0,t:8,pi:[{n:"fov",pt:$n[0].Single,ps:0},{n:"aspect",pt:$n[0].Single,ps:1},{n:"zNear",pt:$n[0].Single,ps:2},{n:"zFar",pt:$n[0].Single,ps:3}],tpc:0,def:function(e,t,n,i){return(new pc.Mat4).setPerspective(e,t,n,i,!1)},rt:$n[1].Matrix4x4,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"Rotate",is:!0,t:8,pi:[{n:"q",pt:$n[1].Quaternion,ps:0}],tpc:0,def:function(e){return(new pc.Mat4).setTRS(pc.Vec3.ZERO,e,pc.Vec3.ONE)},rt:$n[1].Matrix4x4,p:[$n[1].Quaternion]},{a:2,n:"Scale",is:!0,t:8,pi:[{n:"vector",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return(new pc.Mat4).setTRS(pc.Vec3.ZERO,pc.Quat.IDENTITY,e)},rt:$n[1].Matrix4x4,p:[$n[1].Vector3]},{a:2,n:"Set",t:8,pi:[{n:"other",pt:Array,ps:0}],tpc:0,def:function(e){return this.set(e)},rt:$n[0].Boolean,p:[Array],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"SetColumn",t:8,pi:[{n:"row",pt:$n[0].Int32,ps:0},{n:"data",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return this.setColumn(e,t)},rt:$n[0].Void,p:[$n[0].Int32,$n[1].Vector4]},{a:2,n:"SetFrom",t:8,pi:[{n:"other",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.copy(e)},rt:$n[1].Matrix4x4,p:[$n[0].Object]},{a:2,n:"SetFromArray",t:8,pi:[{n:"other",pt:Array,ps:0},{n:"offset",pt:$n[0].Int32,ps:1}],tpc:0,def:function(e,t){return this.setFromArray(e,t)},rt:$n[0].Boolean,p:[Array,$n[0].Int32],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"SetFromMultiplication",t:8,pi:[{n:"a",pt:$n[1].Matrix4x4,ps:0},{n:"b",pt:$n[1].Matrix4x4,ps:1}],tpc:0,def:function(e,t){return this.mul2(e,t)},rt:$n[1].Matrix4x4,p:[$n[1].Matrix4x4,$n[1].Matrix4x4]},{a:2,n:"SetOrtho",t:8,pi:[{n:"left",pt:$n[0].Single,ps:0},{n:"right",pt:$n[0].Single,ps:1},{n:"bottom",pt:$n[0].Single,ps:2},{n:"top",pt:$n[0].Single,ps:3},{n:"znear",pt:$n[0].Single,ps:4},{n:"zfar",pt:$n[0].Single,ps:5}],tpc:0,def:function(e,t,n,i,r,s){return this.setOrtho(e,t,n,i,r,s)},rt:$n[1].Matrix4x4,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"SetPerspective",t:8,pi:[{n:"fovY",pt:$n[0].Single,ps:0},{n:"aspect",pt:$n[0].Single,ps:1},{n:"zNear",pt:$n[0].Single,ps:2},{n:"zFar",pt:$n[0].Single,ps:3}],tpc:0,def:function(e,t,n,i){return this.setPerspective_Unity(e,t,n,i)},rt:$n[1].Matrix4x4,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"SetRow",t:8,pi:[{n:"row",pt:$n[0].Int32,ps:0},{n:"data",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.setRow(e,new pc.Vec4(t.x,t.y,t.z,0))},rt:$n[0].Void,p:[$n[0].Int32,$n[1].Vector3]},{a:2,n:"SetRow",t:8,pi:[{n:"row",pt:$n[0].Int32,ps:0},{n:"data",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return this.setRow(e,t)},rt:$n[0].Void,p:[$n[0].Int32,$n[1].Vector4]},{a:2,n:"SetTRS",t:8,pi:[{n:"t",pt:$n[1].Vector3,ps:0},{n:"r",pt:$n[1].Quaternion,ps:1},{n:"s",pt:$n[1].Vector3,ps:2}],tpc:0,def:function(e,t,n){return this.setTRS(e,t,n)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Quaternion,$n[1].Vector3]},{a:2,n:"SetToIdentity",t:8,tpc:0,def:function(){return this.setTRS(pc.Vec3.ZERO,pc.Quat.IDENTITY,pc.Vec3.ONE)},rt:$n[1].Matrix4x4},{a:2,n:"TRS",is:!0,t:8,pi:[{n:"t",pt:$n[1].Vector3,ps:0},{n:"r",pt:$n[1].Quaternion,ps:1},{n:"s",pt:$n[1].Vector3,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Mat4).setTRS(e,t,n)},rt:$n[1].Matrix4x4,p:[$n[1].Vector3,$n[1].Quaternion,$n[1].Vector3]},{a:2,n:"TransformPlane",t:8,pi:[{n:"plane",pt:$n[1].Plane,ps:0}],tpc:0,def:function(e){return this.transformPlane(e)},rt:$n[1].Plane,p:[$n[1].Plane]},{a:2,n:"TransformVectorInPlace",t:8,pi:[{n:"v",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.transformVector(e,e)},rt:$n[0].Void,p:[$n[1].Vector3]},{a:2,n:"TransformVectorInverseInPlace",t:8,pi:[{n:"v",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.transformVectorInverse(e,e)},rt:$n[0].Void,p:[$n[1].Vector3]},{a:2,n:"Translate",is:!0,t:8,pi:[{n:"vector",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return(new pc.Mat4).setTranslate(e.x,e.y,e.z)},rt:$n[1].Matrix4x4,p:[$n[1].Vector3]},{a:2,n:"Transpose",is:!0,t:8,pi:[{n:"m",pt:$n[1].Matrix4x4,ps:0}],tpc:0,def:function(e){return e.transpose()},rt:$n[1].Matrix4x4,p:[$n[1].Matrix4x4]},{a:2,n:"ValidTRS",t:8,tpc:0,def:function(){return this.validTRS()},rt:$n[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Equality",is:!0,t:8,pi:[{n:"lhs",pt:$n[1].Matrix4x4,ps:0},{n:"rhs",pt:$n[1].Matrix4x4,ps:1}],tpc:0,def:function(e,t){return pc.Mat4.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Matrix4x4,$n[1].Matrix4x4],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Inequality",is:!0,t:8,pi:[{n:"lhs",pt:$n[1].Matrix4x4,ps:0},{n:"rhs",pt:$n[1].Matrix4x4,ps:1}],tpc:0,def:function(e,t){return!pc.Mat4.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Matrix4x4,$n[1].Matrix4x4],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"a",pt:$n[1].Matrix4x4,ps:0},{n:"b",pt:$n[1].Matrix4x4,ps:1}],tpc:0,def:function(e,t){return(new pc.Mat4).mul2(e,t)},rt:$n[1].Matrix4x4,p:[$n[1].Matrix4x4,$n[1].Matrix4x4]},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"matrix",pt:$n[1].Matrix4x4,ps:0},{n:"vector",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return e.multiplyPoint(t)},rt:$n[1].Vector3,p:[$n[1].Matrix4x4,$n[1].Vector3]},{a:2,n:"Data",t:16,rt:$n[0].Array.type(System.Single),g:{a:2,n:"get_Data",t:8,rt:$n[0].Array.type(System.Single),fg:"data"},s:{a:2,n:"set_Data",t:8,p:[$n[0].Array.type(System.Single)],rt:$n[0].Void,fs:"data"},fn:"data"},{a:2,n:"Item",t:16,rt:$n[0].Single,p:[$n[0].Int32],i:!0,ipi:[{n:"index",pt:$n[0].Int32,ps:0}],g:{a:2,n:"get_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0}],sn:"getitem",rt:$n[0].Single,p:[$n[0].Int32],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0},{n:"value",pt:$n[0].Single,ps:1}],sn:"setitem",rt:$n[0].Void,p:[$n[0].Int32,$n[0].Single]}},{a:2,n:"Item",t:16,rt:$n[0].Single,p:[$n[0].Int32,$n[0].Int32],i:!0,ipi:[{n:"a",pt:$n[0].Int32,ps:0},{n:"b",pt:$n[0].Int32,ps:1}],g:{a:2,n:"get_Item",t:8,pi:[{n:"a",pt:$n[0].Int32,ps:0},{n:"b",pt:$n[0].Int32,ps:1}],sn:"getitem$1",rt:$n[0].Single,p:[$n[0].Int32,$n[0].Int32],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_Item",t:8,pi:[{n:"a",pt:$n[0].Int32,ps:0},{n:"b",pt:$n[0].Int32,ps:1},{n:"value",pt:$n[0].Single,ps:2}],sn:"setitem$1",rt:$n[0].Void,p:[$n[0].Int32,$n[0].Int32,$n[0].Single]}},{a:2,n:"decomposeProjection",t:16,rt:$n[1].FrustumPlanes,g:{a:2,n:"get_decomposeProjection",t:8,tpc:0,def:function(){return this.decomposeProjection()},rt:$n[1].FrustumPlanes}},{a:2,n:"determinant",t:16,rt:$n[0].Single,g:{a:2,n:"get_determinant",t:8,tpc:0,def:function(){return this.determinant()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"eulerAngles",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_eulerAngles",t:8,tpc:0,def:function(){return this.getEulerAngles()},rt:$n[1].Vector3}},{a:2,n:"identity",is:!0,t:16,rt:$n[1].Matrix4x4,g:{a:2,n:"get_identity",is:!0,t:8,tpc:0,def:function(){return pc.Mat4.IDENTITY.clone()},rt:$n[1].Matrix4x4}},{a:2,n:"inverse",t:16,rt:$n[1].Matrix4x4,g:{a:2,n:"get_inverse",t:8,tpc:0,def:function(){return this.clone().invert()},rt:$n[1].Matrix4x4}},{a:2,n:"isIdentity",t:16,rt:$n[0].Boolean,g:{a:2,n:"get_isIdentity",t:8,tpc:0,def:function(){return this.strictEquals(pc.Mat4.IDENTITY)},rt:$n[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}}},{a:2,n:"lossyScale",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_lossyScale",t:8,tpc:0,def:function(){return this.getScale()},rt:$n[1].Vector3}},{a:2,n:"rotation",t:16,rt:$n[1].Quaternion,g:{a:2,n:"get_rotation",t:8,tpc:0,def:function(){return this.getRotation()},rt:$n[1].Quaternion}},{a:2,n:"translation",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_translation",t:8,tpc:0,def:function(){return this.getTranslation()},rt:$n[1].Vector3}},{a:2,n:"transpose",t:16,rt:$n[1].Matrix4x4,g:{a:2,n:"get_transpose",t:8,tpc:0,def:function(){return this.clone().transpose()},rt:$n[1].Matrix4x4}},{a:2,n:"zero",is:!0,t:16,rt:$n[1].Matrix4x4,g:{a:2,n:"get_zero",is:!0,t:8,tpc:0,def:function(){return pc.Mat4.ZERO},rt:$n[1].Matrix4x4}},{a:2,n:"m00",t:4,rt:$n[0].Single,sn:"e00",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m01",t:4,rt:$n[0].Single,sn:"e01",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m02",t:4,rt:$n[0].Single,sn:"e02",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m03",t:4,rt:$n[0].Single,sn:"e03",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m10",t:4,rt:$n[0].Single,sn:"e10",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m11",t:4,rt:$n[0].Single,sn:"e11",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m12",t:4,rt:$n[0].Single,sn:"e12",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m13",t:4,rt:$n[0].Single,sn:"e13",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m20",t:4,rt:$n[0].Single,sn:"e20",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m21",t:4,rt:$n[0].Single,sn:"e21",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m22",t:4,rt:$n[0].Single,sn:"e22",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m23",t:4,rt:$n[0].Single,sn:"e23",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m30",t:4,rt:$n[0].Single,sn:"e30",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m31",t:4,rt:$n[0].Single,sn:"e31",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m32",t:4,rt:$n[0].Single,sn:"e32",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"m33",t:4,rt:$n[0].Single,sn:"e33",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<Data>k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"<Item>k__BackingField",t:4,rt:$n[0].Single,sn:"item",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<Item>k__BackingField",t:4,rt:$n[0].Single,sn:"item$1",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<decomposeProjection>k__BackingField",t:4,rt:$n[1].FrustumPlanes,sn:"decomposeProjection"},{a:1,backing:!0,n:"<determinant>k__BackingField",t:4,rt:$n[0].Single,sn:"determinant",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<eulerAngles>k__BackingField",t:4,rt:$n[1].Vector3,sn:"eulerAngles"},{a:1,backing:!0,n:"<identity>k__BackingField",is:!0,t:4,rt:$n[1].Matrix4x4,sn:"identity"},{a:1,backing:!0,n:"<inverse>k__BackingField",t:4,rt:$n[1].Matrix4x4,sn:"inverse"},{a:1,backing:!0,n:"<isIdentity>k__BackingField",t:4,rt:$n[0].Boolean,sn:"isIdentity",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,backing:!0,n:"<lossyScale>k__BackingField",t:4,rt:$n[1].Vector3,sn:"lossyScale"},{a:1,backing:!0,n:"<rotation>k__BackingField",t:4,rt:$n[1].Quaternion,sn:"rotation"},{a:1,backing:!0,n:"<translation>k__BackingField",t:4,rt:$n[1].Vector3,sn:"translation"},{a:1,backing:!0,n:"<transpose>k__BackingField",t:4,rt:$n[1].Matrix4x4,sn:"transpose"},{a:1,backing:!0,n:"<zero>k__BackingField",is:!0,t:4,rt:$n[1].Matrix4x4,sn:"zero"}]}}),$n),$m("UnityEngine.Quaternion",(function(){return{att:1048841,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,def:function(){return new pc.Quat}},{a:2,n:".ctor",t:1,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single],pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1},{n:"z",pt:$n[0].Single,ps:2},{n:"w",pt:$n[0].Single,ps:3}],def:function(e,t,n,i){return new pc.Quat(e,t,n,i)}},{a:2,n:"Angle",is:!0,t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Quaternion,ps:1}],tpc:0,def:function(e,t){return pc.Quat.angle(e,t)},rt:$n[0].Single,p:[$n[1].Quaternion,$n[1].Quaternion],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"AngleAxis",is:!0,t:8,pi:[{n:"angle",pt:$n[0].Single,ps:0},{n:"axis",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return(new pc.Quat).setFromAxisAngle(t,e)},rt:$n[1].Quaternion,p:[$n[0].Single,$n[1].Vector3]},{a:2,n:"Conjugate",t:8,tpc:0,def:function(){return this.conjugate()},rt:$n[0].Void},{a:2,n:"Dot",is:!0,t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Quaternion,ps:1}],tpc:0,def:function(e,t){return e.dot(t)},rt:$n[0].Single,p:[$n[1].Quaternion,$n[1].Quaternion],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{ov:!0,a:2,n:"Equals",t:8,pi:[{n:"o",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.strictEquals(e)},rt:$n[0].Boolean,p:[$n[0].Object],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"Euler",is:!0,t:8,pi:[{n:"eulerAngles",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return(new pc.Quat).setFromEulerAngles_Unity(e.x,e.y,e.z)},rt:$n[1].Quaternion,p:[$n[1].Vector3]},{a:2,n:"Euler",is:!0,t:8,pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1},{n:"z",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Quat).setFromEulerAngles_Unity(e,t,n)},rt:$n[1].Quaternion,p:[$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"ExtractAxes",t:8,pi:[{n:"ax",pt:$n[1].Vector3,ps:0},{n:"ay",pt:$n[1].Vector3,ps:1},{n:"az",pt:$n[1].Vector3,ps:2}],tpc:0,def:function(e,t,n){return this.extractAxes(e,t,n)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Vector3,$n[1].Vector3]},{a:2,n:"FromToRotation",is:!0,t:8,pi:[{n:"f",pt:$n[1].Vector3,ps:0},{n:"t",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return(new pc.Quat).fromTo(e,t)},rt:$n[1].Quaternion,p:[$n[1].Vector3,$n[1].Vector3]},{ov:!0,a:2,n:"GetHashCode",t:8,tpc:0,def:function(){return this.hash()},rt:$n[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"GetNearestTo",t:8,pi:[{n:"target",pt:$n[1].Quaternion,ps:0},{n:"result",pt:$n[1].Quaternion,ps:1}],tpc:0,def:function(e,t){return this.nearest(e,t)},rt:$n[0].Void,p:[$n[1].Quaternion,$n[1].Quaternion]},{a:2,n:"GetReference",is:!0,t:8,pi:[{n:"quaternion",pt:$n[1].Quaternion,ps:0}],tpc:0,def:function(e){return e},rt:$n[1].Quaternion,p:[$n[1].Quaternion]},{a:2,n:"Inverse",is:!0,t:8,pi:[{n:"rotation",pt:$n[1].Quaternion,ps:0}],tpc:0,def:function(e){return e.clone().invert()},rt:$n[1].Quaternion,p:[$n[1].Quaternion]},{a:2,n:"Invert",t:8,tpc:0,def:function(){return this.invert()},rt:$n[0].Void},{a:2,n:"Lerp",is:!0,t:8,pi:[{n:"q0",pt:$n[1].Quaternion,ps:0},{n:"q1",pt:$n[1].Quaternion,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Quat).slerp(e,t,n)},rt:$n[1].Quaternion,p:[$n[1].Quaternion,$n[1].Quaternion,$n[0].Single]},{a:2,n:"LerpUnclamped",is:!0,t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Quaternion,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Quat).slerp(e,t,n)},rt:$n[1].Quaternion,p:[$n[1].Quaternion,$n[1].Quaternion,$n[0].Single]},{a:2,n:"LookRotation",is:!0,t:8,pi:[{n:"target",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return(new pc.Quat).setLookAt(e,pc.Vec3.UP)},rt:$n[1].Quaternion,p:[$n[1].Vector3]},{a:2,n:"LookRotation",is:!0,t:8,pi:[{n:"forward",pt:$n[1].Vector3,ps:0},{n:"upwards",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return(new pc.Quat).setLookAt(e,t)},rt:$n[1].Quaternion,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"Multiply",t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0}],tpc:0,def:function(e){return this.mul(e)},rt:$n[0].Void,p:[$n[1].Quaternion]},{a:2,n:"MultiplyVectorInverseTo",t:8,pi:[{n:"vector",pt:$n[1].Vector3,ps:0},{n:"to",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.transformVectorInverse(e,t)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"MultiplyVectorTo",t:8,pi:[{n:"vector",pt:$n[1].Vector3,ps:0},{n:"to",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.transformVector(e,t)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"Negate",t:8,tpc:0,def:function(){return this.negate()},rt:$n[0].Void},{a:2,n:"Normalize",t:8,tpc:0,def:function(){return this.normalize()},rt:$n[0].Void},{a:2,n:"Normalize",is:!0,t:8,pi:[{n:"q",pt:$n[1].Quaternion,ps:0}],tpc:0,def:function(e){return e.normalize()},rt:$n[1].Quaternion,p:[$n[1].Quaternion]},{a:2,n:"RotateTowards",is:!0,t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Quaternion,ps:1},{n:"maxRotationDelta",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return pc.Quat.rotateTowards(e,t,n)},rt:$n[1].Quaternion,p:[$n[1].Quaternion,$n[1].Quaternion,$n[0].Single]},{a:2,n:"Set",t:8,pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1},{n:"z",pt:$n[0].Single,ps:2},{n:"w",pt:$n[0].Single,ps:3}],tpc:0,def:function(e,t,n,i){return this.set(e,t,n,i)},rt:$n[1].Quaternion,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"SetAngleAxis",t:8,pi:[{n:"angle",pt:$n[0].Single,ps:0},{n:"axis",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.setFromAxisAngle(t,e)},rt:$n[1].Quaternion,p:[$n[0].Single,$n[1].Vector3]},{a:2,n:"SetFrom",t:8,pi:[{n:"other",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.copy(e)},rt:$n[1].Quaternion,p:[$n[0].Object]},{a:2,n:"SetFromAxisAngle",t:8,pi:[{n:"axis",pt:$n[1].Vector3,ps:0},{n:"angle",pt:$n[0].Double,ps:1}],tpc:0,def:function(e,t){return this.setFromAxisAngle(e,t)},rt:$n[1].Quaternion,p:[$n[1].Vector3,$n[0].Double]},{a:2,n:"SetFromMultiplication",t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Quaternion,ps:1}],tpc:0,def:function(e,t){return this.mul2(e,t)},rt:$n[1].Quaternion,p:[$n[1].Quaternion,$n[1].Quaternion]},{a:2,n:"SetFromToRotation",t:8,pi:[{n:"f",pt:$n[1].Vector3,ps:0},{n:"t",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.fromTo(e,t)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"SetLookRotation",t:8,pi:[{n:"view",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.setLookAt(e,pc.Vec3.UP)},rt:$n[0].Void,p:[$n[1].Vector3]},{a:2,n:"SetLookRotation",t:8,pi:[{n:"view",pt:$n[1].Vector3,ps:0},{n:"up",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.setLookAt(e,t)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"Slerp",is:!0,t:8,pi:[{n:"q0",pt:$n[1].Quaternion,ps:0},{n:"q1",pt:$n[1].Quaternion,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Quat).slerp(e,t,n)},rt:$n[1].Quaternion,p:[$n[1].Quaternion,$n[1].Quaternion,$n[0].Single]},{a:2,n:"SlerpUnclamped",is:!0,t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Quaternion,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Quat).slerpUnclamped(e,t,n)},rt:$n[1].Quaternion,p:[$n[1].Quaternion,$n[1].Quaternion,$n[0].Single]},{a:2,n:"ToAngleAxis",t:8,pi:[{n:"angle",out:!0,pt:$n[0].Single,ps:0},{n:"axis",out:!0,pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.toAngleAxis(e,t)},rt:$n[0].Void,p:[$n[0].Single,$n[1].Vector3]},{a:2,n:"TransformVector",t:8,pi:[{n:"vec",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.transformVector(e)},rt:$n[1].Vector3,p:[$n[1].Vector3]},{a:2,n:"TransformVector",t:8,pi:[{n:"vec",pt:$n[1].Vector3,ps:0},{n:"res",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.transformVector(e,t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"op_Equality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Quaternion,ps:1}],tpc:0,def:function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.equals(t)},rt:$n[0].Boolean,p:[$n[1].Quaternion,$n[1].Quaternion],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Inequality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Quaternion,ps:1}],tpc:0,def:function(e,t){return null==e&&null!=t||null!=e&&null==t||null!=e&&!e.equals(t)},rt:$n[0].Boolean,p:[$n[1].Quaternion,$n[1].Quaternion],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Quaternion,ps:1}],tpc:0,def:function(e,t){return e.clone().mul(t)},rt:$n[1].Quaternion,p:[$n[1].Quaternion,$n[1].Quaternion]},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"a",pt:$n[1].Quaternion,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return e.transformVector(t)},rt:$n[1].Vector3,p:[$n[1].Quaternion,$n[1].Vector3]},{a:2,n:"Data",t:16,rt:$n[0].Array.type(System.Single),g:{a:2,n:"get_Data",t:8,rt:$n[0].Array.type(System.Single),fg:"Data"},s:{a:2,n:"set_Data",t:8,p:[$n[0].Array.type(System.Single)],rt:$n[0].Void,fs:"Data"},fn:"Data"},{a:2,n:"Item",t:16,rt:$n[0].Single,p:[$n[0].Int32],i:!0,ipi:[{n:"index",pt:$n[0].Int32,ps:0}],g:{a:2,n:"get_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0}],sn:"getitem",rt:$n[0].Single,p:[$n[0].Int32],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0},{n:"value",pt:$n[0].Single,ps:1}],sn:"setitem",rt:$n[0].Void,p:[$n[0].Int32,$n[0].Single]}},{a:2,n:"conjugate",t:16,rt:$n[1].Quaternion,g:{a:2,n:"get_conjugate",t:8,tpc:0,def:function(){return this.clone().conjugate()},rt:$n[1].Quaternion}},{a:2,n:"eulerAngles",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_eulerAngles",t:8,tpc:0,def:function(){return this.getPositiveEulerAngles()},rt:$n[1].Vector3},s:{a:2,n:"set_eulerAngles",t:8,pi:[{n:"value",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.setFromEulerAngles_Unity(e.x,e.y,e.z)},rt:$n[0].Void,p:[$n[1].Vector3]}},{a:2,n:"identity",is:!0,t:16,rt:$n[1].Quaternion,g:{a:2,n:"get_identity",is:!0,t:8,tpc:0,def:function(){return pc.Quat.IDENTITY.clone()},rt:$n[1].Quaternion}},{a:2,n:"magnitude",t:16,rt:$n[0].Single,g:{a:2,n:"get_magnitude",t:8,tpc:0,def:function(){return this.length()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"normalized",t:16,rt:$n[1].Quaternion,g:{a:2,n:"get_normalized",t:8,tpc:0,def:function(){return this.clone().normalize()},rt:$n[1].Quaternion}},{a:2,n:"w",t:16,rt:$n[0].Single,g:{a:2,n:"get_w",t:8,rt:$n[0].Single,fg:"w",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_w",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"w"},fn:"w"},{a:2,n:"x",t:16,rt:$n[0].Single,g:{a:2,n:"get_x",t:8,rt:$n[0].Single,fg:"x",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_x",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"x"},fn:"x"},{a:2,n:"y",t:16,rt:$n[0].Single,g:{a:2,n:"get_y",t:8,rt:$n[0].Single,fg:"y",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_y",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"y"},fn:"y"},{a:2,n:"z",t:16,rt:$n[0].Single,g:{a:2,n:"get_z",t:8,rt:$n[0].Single,fg:"z",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_z",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"z"},fn:"z"},{a:1,backing:!0,n:"<Data>k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"Data"},{a:1,backing:!0,n:"<Item>k__BackingField",t:4,rt:$n[0].Single,sn:"item",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<conjugate>k__BackingField",t:4,rt:$n[1].Quaternion,sn:"conjugate"},{a:1,backing:!0,n:"<eulerAngles>k__BackingField",t:4,rt:$n[1].Vector3,sn:"eulerAngles"},{a:1,backing:!0,n:"<identity>k__BackingField",is:!0,t:4,rt:$n[1].Quaternion,sn:"identity"},{a:1,backing:!0,n:"<magnitude>k__BackingField",t:4,rt:$n[0].Single,sn:"magnitude",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<normalized>k__BackingField",t:4,rt:$n[1].Quaternion,sn:"normalized"},{a:1,backing:!0,n:"<w>k__BackingField",t:4,rt:$n[0].Single,sn:"w",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<x>k__BackingField",t:4,rt:$n[0].Single,sn:"x",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<y>k__BackingField",t:4,rt:$n[0].Single,sn:"y",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<z>k__BackingField",t:4,rt:$n[0].Single,sn:"z",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}]}}),$n),$m("UnityEngine.Vector2",(function(){return{att:1048841,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,def:function(){return new pc.Vec2}},{a:2,n:".ctor",t:1,p:[$n[0].Single,$n[0].Single],pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1}],def:function(e,t){return new pc.Vec2(e,t)}},{a:2,n:"Add",t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0}],tpc:0,def:function(e){return this.add(e)},rt:$n[0].Void,p:[$n[1].Vector2]},{a:2,n:"Angle",is:!0,t:8,pi:[{n:"from",pt:$n[1].Vector2,ps:0},{n:"to",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return pc.Vec2.angle(e,t)},rt:$n[0].Single,p:[$n[1].Vector2,$n[1].Vector2],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"ClampMagnitude",is:!0,t:8,pi:[{n:"vector",pt:$n[1].Vector2,ps:0},{n:"maxLength",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return pc.Vec2.lengthClamp(e,t)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[0].Single]},{a:2,n:"Distance",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return e.sub(t).length()},rt:$n[0].Single,p:[$n[1].Vector2,$n[1].Vector2],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"Dot",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return e.dot(t)},rt:$n[0].Single,p:[$n[1].Vector2,$n[1].Vector2],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{ov:!0,a:2,n:"Equals",t:8,pi:[{n:"o",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.strictEquals(e)},rt:$n[0].Boolean,p:[$n[0].Object],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{ov:!0,a:2,n:"GetHashCode",t:8,sn:"getHashCode",rt:$n[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"GetReference",is:!0,t:8,pi:[{n:"vector",pt:$n[1].Vector2,ps:0}],tpc:0,def:function(e){return e},rt:$n[1].Vector2,p:[$n[1].Vector2]},{a:2,n:"Lerp",is:!0,t:8,pi:[{n:"v0",pt:$n[1].Vector2,ps:0},{n:"v1",pt:$n[1].Vector2,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Vec2).lerp(e,t,n)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2,$n[0].Single]},{a:2,n:"LerpUnclamped",is:!0,t:8,pi:[{n:"v0",pt:$n[1].Vector2,ps:0},{n:"v1",pt:$n[1].Vector2,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Vec2).lerpUnclamped(e,t,n)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2,$n[0].Single]},{a:2,n:"Max",is:!0,t:8,pi:[{n:"lhs",pt:$n[1].Vector2,ps:0},{n:"rhs",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return new pc.Vec2(Math.max(e.x,t.x),Math.max(e.y,t.y))},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2]},{a:2,n:"Min",is:!0,t:8,pi:[{n:"lhs",pt:$n[1].Vector2,ps:0},{n:"rhs",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return new pc.Vec2(Math.min(e.x,t.x),Math.min(e.y,t.y))},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2]},{a:2,n:"MoveTowards",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector2,ps:0},{n:"target",pt:$n[1].Vector2,ps:1},{n:"deltaTime",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return pc.Vec2.moveTowards(e,t,n)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2,$n[0].Single]},{a:2,n:"Normalize",t:8,tpc:0,def:function(){return this.normalize()},rt:$n[0].Void},{a:2,n:"Perpendicular",is:!0,t:8,pi:[{n:"inDirection",pt:$n[1].Vector2,ps:0}],tpc:0,def:function(e){return new pc.Vec2(-e.y,e.x)},rt:$n[1].Vector2,p:[$n[1].Vector2]},{a:2,n:"Reflect",is:!0,t:8,pi:[{n:"inDirection",pt:$n[1].Vector2,ps:0},{n:"inNormal",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return pc.Vec2.reflect(e,t)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2]},{a:2,n:"Scale",t:8,pi:[{n:"a",pt:$n[0].Single,ps:0}],tpc:0,def:function(e){return this.scale(e)},rt:$n[0].Void,p:[$n[0].Single]},{a:2,n:"Scale",t:8,pi:[{n:"scale",pt:$n[1].Vector2,ps:0}],tpc:0,def:function(e){return this.mul(e)},rt:$n[0].Void,p:[$n[1].Vector2]},{a:2,n:"Scale",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return new pc.Vec2(e.x*t.x,e.y*t.y)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2]},{a:2,n:"Set",t:8,pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return this.set(e,t)},rt:$n[1].Vector2,p:[$n[0].Single,$n[0].Single]},{a:2,n:"SetFrom",t:8,pi:[{n:"other",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.copy(e)},rt:$n[1].Vector2,p:[$n[0].Object]},{a:2,n:"SignedAngle",is:!0,t:8,pi:[{n:"from",pt:$n[1].Vector2,ps:0},{n:"to",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return pc.Vec2.signedAngle(e,t)},rt:$n[0].Single,p:[$n[1].Vector2,$n[1].Vector2],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"SmoothDamp",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector2,ps:0},{n:"target",pt:$n[1].Vector2,ps:1},{n:"currentVelocity",ref:!0,pt:$n[1].Vector2,ps:2},{n:"smoothTime",pt:$n[0].Single,ps:3}],tpc:0,def:function(e,t,n,i){return pc.Vec2.smoothDamp(e,t,n,i,Infinity,UnityEngine.Time.deltaTime)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2,$n[1].Vector2,$n[0].Single]},{a:2,n:"SmoothDamp",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector2,ps:0},{n:"target",pt:$n[1].Vector2,ps:1},{n:"currentVelocity",ref:!0,pt:$n[1].Vector2,ps:2},{n:"smoothTime",pt:$n[0].Single,ps:3},{n:"maxSpeed",pt:$n[0].Single,ps:4}],tpc:0,def:function(e,t,n,i,r){return pc.Vec2.smoothDamp(e,t,n,i,r,UnityEngine.Time.deltaTime)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2,$n[1].Vector2,$n[0].Single,$n[0].Single]},{a:2,n:"SmoothDamp",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector2,ps:0},{n:"target",pt:$n[1].Vector2,ps:1},{n:"currentVelocity",ref:!0,pt:$n[1].Vector2,ps:2},{n:"smoothTime",pt:$n[0].Single,ps:3},{n:"maxSpeed",pt:$n[0].Single,ps:4},{n:"deltaTime",pt:$n[0].Single,ps:5}],tpc:0,def:function(e,t,n,i,r,s){return pc.Vec2.smoothDamp(e,t,n,i,r,s)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2,$n[1].Vector2,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"SqrMagnitude",t:8,tpc:0,def:function(){return this.lengthSq()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"SqrMagnitude",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0}],tpc:0,def:function(e){return e.lengthSq()},rt:$n[0].Single,p:[$n[1].Vector2],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"op_Addition",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return e.add(t)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"d",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return e.scale(1/t)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[0].Single]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return e.div(t)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2]},{a:2,n:"op_Equality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return pc.Vec2.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Vector2,$n[1].Vector2],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Implicit",is:!0,t:8,pi:[{n:"source",pt:$n[1].Vector3,ps:0}],sn:"FromVector3",rt:$n[1].Vector2,p:[$n[1].Vector3]},{a:2,n:"op_Implicit",is:!0,t:8,pi:[{n:"source",pt:$n[1].Vector4,ps:0}],sn:"FromVector4",rt:$n[1].Vector2,p:[$n[1].Vector4]},{a:2,n:"op_Inequality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return!pc.Vec2.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Vector2,$n[1].Vector2],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"t",pt:$n[0].Single,ps:0},{n:"a",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return t.scale(e)},rt:$n[1].Vector2,p:[$n[0].Single,$n[1].Vector2]},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"t",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return e.scale(t)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[0].Single]},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return e.mul(t)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2]},{a:2,n:"op_Subtraction",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return e.sub(t)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector2]},{a:2,n:"op_Subtraction",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return e.sub(t)},rt:$n[1].Vector2,p:[$n[1].Vector2,$n[1].Vector3]},{a:2,n:"op_UnaryNegation",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector2,ps:0}],tpc:0,def:function(e){return e.scale(-1)},rt:$n[1].Vector2,p:[$n[1].Vector2]},{a:2,n:"Data",t:16,rt:$n[0].Array.type(System.Single),g:{a:2,n:"get_Data",t:8,rt:$n[0].Array.type(System.Single),fg:"data"},s:{a:2,n:"set_Data",t:8,p:[$n[0].Array.type(System.Single)],rt:$n[0].Void,fs:"data"},fn:"data"},{a:2,n:"Item",t:16,rt:$n[0].Single,p:[$n[0].Int32],i:!0,ipi:[{n:"index",pt:$n[0].Int32,ps:0}],g:{a:2,n:"get_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0}],sn:"getitem",rt:$n[0].Single,p:[$n[0].Int32],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0},{n:"value",pt:$n[0].Single,ps:1}],sn:"setitem",rt:$n[0].Void,p:[$n[0].Int32,$n[0].Single]}},{a:2,n:"down",is:!0,t:16,rt:$n[1].Vector2,g:{a:2,n:"get_down",is:!0,t:8,tpc:0,def:function(){return new pc.Vec2(pc.Vec2.UP.x,-pc.Vec2.UP.y)},rt:$n[1].Vector2}},{a:2,n:"left",is:!0,t:16,rt:$n[1].Vector2,g:{a:2,n:"get_left",is:!0,t:8,tpc:0,def:function(){return new pc.Vec2(-pc.Vec2.RIGHT.x,pc.Vec2.RIGHT.y)},rt:$n[1].Vector2}},{a:2,n:"magnitude",t:16,rt:$n[0].Single,g:{a:2,n:"get_magnitude",t:8,tpc:0,def:function(){return this.length()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"negativeInfinity",is:!0,t:16,rt:$n[1].Vector2,g:{a:2,n:"get_negativeInfinity",is:!0,t:8,tpc:0,def:function(){return new pc.Vec2(-Infinity,-Infinity)},rt:$n[1].Vector2}},{a:2,n:"normalized",t:16,rt:$n[1].Vector2,g:{a:2,n:"get_normalized",t:8,tpc:0,def:function(){return this.clone().normalize()},rt:$n[1].Vector2}},{a:2,n:"one",is:!0,t:16,rt:$n[1].Vector2,g:{a:2,n:"get_one",is:!0,t:8,tpc:0,def:function(){return pc.Vec2.ONE.clone()},rt:$n[1].Vector2}},{a:2,n:"positiveInfinity",is:!0,t:16,rt:$n[1].Vector2,g:{a:2,n:"get_positiveInfinity",is:!0,t:8,tpc:0,def:function(){return new pc.Vec2(Infinity,Infinity)},rt:$n[1].Vector2}},{a:2,n:"right",is:!0,t:16,rt:$n[1].Vector2,g:{a:2,n:"get_right",is:!0,t:8,tpc:0,def:function(){return pc.Vec2.RIGHT.clone()},rt:$n[1].Vector2}},{a:2,n:"sqrMagnitude",t:16,rt:$n[0].Single,g:{a:2,n:"get_sqrMagnitude",t:8,tpc:0,def:function(){return this.lengthSq()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"up",is:!0,t:16,rt:$n[1].Vector2,g:{a:2,n:"get_up",is:!0,t:8,tpc:0,def:function(){return pc.Vec2.UP.clone()},rt:$n[1].Vector2}},{a:2,n:"zero",is:!0,t:16,rt:$n[1].Vector2,g:{a:2,n:"get_zero",is:!0,t:8,tpc:0,def:function(){return pc.Vec2.ZERO.clone()},rt:$n[1].Vector2}},{a:2,n:"kEpsilon",is:!0,t:4,rt:$n[0].Single,sn:"kEpsilon",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"kEpsilonNormalSqrt",is:!0,t:4,rt:$n[0].Single,sn:"kEpsilonNormalSqrt",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"x",t:4,rt:$n[0].Single,sn:"x",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"y",t:4,rt:$n[0].Single,sn:"y",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<Data>k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"<Item>k__BackingField",t:4,rt:$n[0].Single,sn:"item",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<down>k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"down"},{a:1,backing:!0,n:"<left>k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"left"},{a:1,backing:!0,n:"<magnitude>k__BackingField",t:4,rt:$n[0].Single,sn:"magnitude",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<negativeInfinity>k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"negativeInfinity"},{a:1,backing:!0,n:"<normalized>k__BackingField",t:4,rt:$n[1].Vector2,sn:"normalized"},{a:1,backing:!0,n:"<one>k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"one"},{a:1,backing:!0,n:"<positiveInfinity>k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"positiveInfinity"},{a:1,backing:!0,n:"<right>k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"right"},{a:1,backing:!0,n:"<sqrMagnitude>k__BackingField",t:4,rt:$n[0].Single,sn:"sqrMagnitude",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<up>k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"up"},{a:1,backing:!0,n:"<zero>k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"zero"}]}}),$n),$m("UnityEngine.Vector3",(function(){return{att:1048841,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,def:function(){return new pc.Vec3}},{a:2,n:".ctor",t:1,p:[$n[0].Single,$n[0].Single],pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1}],def:function(e,t){return new pc.Vec3(e,t,0)}},{a:2,n:".ctor",t:1,p:[$n[0].Single,$n[0].Single,$n[0].Single],pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1},{n:"z",pt:$n[0].Single,ps:2}],def:function(e,t,n){return new pc.Vec3(e,t,n)}},{a:2,n:"Add",t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.add(e)},rt:$n[0].Void,p:[$n[1].Vector3]},{a:2,n:"Angle",is:!0,t:8,pi:[{n:"from",pt:$n[1].Vector3,ps:0},{n:"to",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return Math.acos(pc.math.clamp(e.clone().normalize().dot(t.clone().normalize()),-1,1))*pc.math.RAD_TO_DEG},rt:$n[0].Single,p:[$n[1].Vector3,$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"AngleBetween",is:!0,t:8,pi:[{n:"from",pt:$n[1].Vector3,ps:0},{n:"to",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return Math.acos(pc.math.clamp(e.clone().normalize().dot(t.clone().normalize()),-1,1))},rt:$n[0].Single,p:[$n[1].Vector3,$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"ClampMagnitude",is:!0,t:8,pi:[{n:"vector",pt:$n[1].Vector3,ps:0},{n:"maxLength",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return pc.Vec3.clampMagnitude(e,t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[0].Single]},{a:2,n:"Cross",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return(new pc.Vec3).cross(e,t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"Distance",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return pc.Vec3.distance(e,t)},rt:$n[0].Single,p:[$n[1].Vector3,$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"Dot",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return e.dot(t)},rt:$n[0].Single,p:[$n[1].Vector3,$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"EnsureInitialized",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return void 0===e?new pc.Vec3:e},rt:$n[1].Vector3,p:[$n[1].Vector3]},{ov:!0,a:2,n:"Equals",t:8,pi:[{n:"o",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.strictEquals(e)},rt:$n[0].Boolean,p:[$n[0].Object],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"EqualsWithEpsilon",t:8,pi:[{n:"other",pt:$n[1].Vector3,ps:0},{n:"eps",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return this.equalsWithEpsilon(e,t)},rt:$n[0].Boolean,p:[$n[1].Vector3,$n[0].Single],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"Exclude",is:!0,t:8,pi:[{n:"excludeThis",pt:$n[1].Vector3,ps:0},{n:"fromThat",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return pc.Vec3.projectOnPlane(t,e)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{ov:!0,a:2,n:"GetHashCode",t:8,sn:"getHashCode",rt:$n[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"GetReference",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return e},rt:$n[1].Vector3,p:[$n[1].Vector3]},{a:2,n:"Lerp",is:!0,t:8,pi:[{n:"v0",pt:$n[1].Vector3,ps:0},{n:"v1",pt:$n[1].Vector3,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Vec3).lerp(e,t,n)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[0].Single]},{a:2,n:"Lerp",is:!0,t:8,pi:[{n:"v0",pt:$n[1].Vector3,ps:0},{n:"v1",pt:$n[1].Vector3,ps:1},{n:"t",pt:$n[0].Single,ps:2},{n:"result",pt:$n[1].Vector3,ps:3}],tpc:0,def:function(e,t,n,i){return i.lerp(e,t,n)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[0].Single,$n[1].Vector3]},{a:2,n:"LerpUnclamped",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Vec3).lerpUnclamped(e,t,n)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[0].Single]},{a:2,n:"Magnitude",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return e.length()},rt:$n[0].Single,p:[$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"Max",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return new pc.Vec3(Math.max(e.x,t.x),Math.max(e.y,t.y),Math.max(e.z,t.z))},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"Min",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return new pc.Vec3(Math.min(e.x,t.x),Math.min(e.y,t.y),Math.min(e.z,t.z))},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"MoveTowards",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector3,ps:0},{n:"target",pt:$n[1].Vector3,ps:1},{n:"maxDistanceDelta",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return pc.Vec3.moveTowards(e,t,n)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[0].Single]},{a:2,n:"Normalize",t:8,tpc:0,def:function(){return this.normalize()},rt:$n[0].Void},{a:2,n:"Normalize",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return e.normalize()},rt:$n[1].Vector3,p:[$n[1].Vector3]},{a:2,n:"OrthoNormalize",is:!0,t:8,pi:[{n:"normal",ref:!0,pt:$n[1].Vector3,ps:0},{n:"tangent",ref:!0,pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return pc.Vec3.orthoNormalize(e.v,t.v,new pc.Vec3(1,1))},rt:$n[0].Single,p:[$n[1].Vector3,$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"OrthoNormalize",is:!0,t:8,pi:[{n:"normal",ref:!0,pt:$n[1].Vector3,ps:0},{n:"tangent",ref:!0,pt:$n[1].Vector3,ps:1},{n:"binormal",ref:!0,pt:$n[1].Vector3,ps:2}],tpc:0,def:function(e,t,n){return pc.Vec3.orthoNormalize(e.v,t.v,n.v)},rt:$n[0].Single,p:[$n[1].Vector3,$n[1].Vector3,$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"Project",t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.project(e)},rt:$n[0].Void,p:[$n[1].Vector3]},{a:2,n:"Project",is:!0,t:8,pi:[{n:"vector",pt:$n[1].Vector3,ps:0},{n:"onNormal",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return e.project(t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"ProjectOnPlane",is:!0,t:8,pi:[{n:"vector",pt:$n[1].Vector3,ps:0},{n:"planeNormal",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return pc.Vec3.projectOnPlane(e,t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"ProjectOnPlane",is:!0,t:8,pi:[{n:"vector",pt:$n[1].Vector3,ps:0},{n:"planeNormal",pt:$n[1].Vector3,ps:1},{n:"result",pt:$n[1].Vector3,ps:2}],tpc:0,def:function(e,t,n){return pc.Vec3.projectOnPlane(e,t,n)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[1].Vector3]},{a:2,n:"Reflect",is:!0,t:8,pi:[{n:"inDirection",pt:$n[1].Vector3,ps:0},{n:"inNormal",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return pc.Vec3.reflect(e,t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"RotateTowards",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector3,ps:0},{n:"target",pt:$n[1].Vector3,ps:1},{n:"maxRadiansDelta",pt:$n[0].Single,ps:2},{n:"maxMagnitudeDelta",pt:$n[0].Single,ps:3}],tpc:0,def:function(e,t,n,i){return pc.Vec3.rotateTowards(e,t,n,i)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[0].Single,$n[0].Single]},{a:2,n:"Scale",t:8,pi:[{n:"a",pt:$n[0].Single,ps:0}],tpc:0,def:function(e){return this.scale(e)},rt:$n[0].Void,p:[$n[0].Single]},{a:2,n:"Scale",t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.mul(e)},rt:$n[0].Void,p:[$n[1].Vector3]},{a:2,n:"Scale",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return(new pc.Vec3).mul2(e,t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"Set",t:8,pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1},{n:"z",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return this.set(e,t,n)},rt:$n[1].Vector3,p:[$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"SetFrom",t:8,pi:[{n:"other",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.copy(e)},rt:$n[1].Vector3,p:[$n[0].Object]},{a:2,n:"SetFromAddition",t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.add2(e,t)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"SetFromCrossProduct",t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.cross(e,t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"SetFromScale",t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.mul2(e,t)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"SetFromSubtraction",t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return this.sub2(e,t)},rt:$n[0].Void,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"SignedAngle",is:!0,t:8,pi:[{n:"from",pt:$n[1].Vector3,ps:0},{n:"to",pt:$n[1].Vector3,ps:1},{n:"axis",pt:$n[1].Vector3,ps:2}],tpc:0,def:function(e,t,n){return pc.Vec3.signedAngle(e,t,n)},rt:$n[0].Single,p:[$n[1].Vector3,$n[1].Vector3,$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"Slerp",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Vec3).slerp(e,t,n)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[0].Single]},{a:2,n:"SlerpUnclamped",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Vec3).slerpUnclamped(e,t,n)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[0].Single]},{a:2,n:"SmoothDamp",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector3,ps:0},{n:"target",pt:$n[1].Vector3,ps:1},{n:"currentVelocity",ref:!0,pt:$n[1].Vector3,ps:2},{n:"smoothTime",pt:$n[0].Single,ps:3}],tpc:0,def:function(e,t,n,i){return pc.Vec3.smoothDamp(e,t,n,i,Infinity,UnityEngine.Time.deltaTime)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[1].Vector3,$n[0].Single]},{a:2,n:"SmoothDamp",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector3,ps:0},{n:"target",pt:$n[1].Vector3,ps:1},{n:"currentVelocity",ref:!0,pt:$n[1].Vector3,ps:2},{n:"smoothTime",pt:$n[0].Single,ps:3},{n:"maxSpeed",pt:$n[0].Single,ps:4}],tpc:0,def:function(e,t,n,i,r){return pc.Vec3.smoothDamp(e,t,n,i,r,UnityEngine.Time.deltaTime)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[1].Vector3,$n[0].Single,$n[0].Single]},{a:2,n:"SmoothDamp",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector3,ps:0},{n:"target",pt:$n[1].Vector3,ps:1},{n:"currentVelocity",ref:!0,pt:$n[1].Vector3,ps:2},{n:"smoothTime",pt:$n[0].Single,ps:3},{n:"maxSpeed",pt:$n[0].Single,ps:4},{n:"deltaTime",pt:$n[0].Single,ps:5}],tpc:0,def:function(e,t,n,i,r,s){return pc.Vec3.smoothDamp(e,t,n,i,r,s)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3,$n[1].Vector3,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"SqrMagnitude",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return e.lengthSq()},rt:$n[0].Single,p:[$n[1].Vector3],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"Subtract",t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return this.sub(e)},rt:$n[0].Void,p:[$n[1].Vector3]},{a:2,n:"op_Addition",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return e.addScalars(t.x,t.y,0)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector2]},{a:2,n:"op_Addition",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return e.add(t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"t",pt:$n[0].Int32,ps:0},{n:"a",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return t.scale(1/e)},rt:$n[1].Vector3,p:[$n[0].Int32,$n[1].Vector3]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"t",pt:$n[0].Single,ps:0},{n:"a",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return t.scale(1/e)},rt:$n[1].Vector3,p:[$n[0].Single,$n[1].Vector3]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"t",pt:$n[0].Int32,ps:1}],tpc:0,def:function(e,t){return e.scale(1/t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[0].Int32]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"t",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return e.scale(1/t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[0].Single]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return e.mulScalars(1/t.x,1/t.y,0)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector2]},{a:2,n:"op_Equality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return pc.Vec3.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Vector3,$n[1].Vector3],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Implicit",is:!0,t:8,pi:[{n:"source",pt:$n[1].Vector2,ps:0}],sn:"FromVector2",rt:$n[1].Vector3,p:[$n[1].Vector2]},{a:2,n:"op_Implicit",is:!0,t:8,pi:[{n:"source",pt:$n[1].Vector4,ps:0}],sn:"FromVector4",rt:$n[1].Vector3,p:[$n[1].Vector4]},{a:2,n:"op_Inequality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return!pc.Vec3.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Vector3,$n[1].Vector3],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"t",pt:$n[0].Single,ps:0},{n:"a",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return t.clone().scale(e)},rt:$n[1].Vector3,p:[$n[0].Single,$n[1].Vector3]},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"t",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return e.clone().scale(t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[0].Single]},{a:2,n:"op_Subtraction",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector2,ps:1}],tpc:0,def:function(e,t){return e.subScalars(t.x,t.y,0)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector2]},{a:2,n:"op_Subtraction",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0},{n:"b",pt:$n[1].Vector3,ps:1}],tpc:0,def:function(e,t){return e.sub(t)},rt:$n[1].Vector3,p:[$n[1].Vector3,$n[1].Vector3]},{a:2,n:"op_UnaryNegation",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector3,ps:0}],tpc:0,def:function(e){return e.scale(-1)},rt:$n[1].Vector3,p:[$n[1].Vector3]},{a:2,n:"Data",t:16,rt:$n[0].Array.type(System.Single),g:{a:2,n:"get_Data",t:8,rt:$n[0].Array.type(System.Single),fg:"data"},s:{a:2,n:"set_Data",t:8,p:[$n[0].Array.type(System.Single)],rt:$n[0].Void,fs:"data"},fn:"data"},{a:2,n:"Item",t:16,rt:$n[0].Single,p:[$n[0].Int32],i:!0,ipi:[{n:"index",pt:$n[0].Int32,ps:0}],g:{a:2,n:"get_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0}],sn:"getitem",rt:$n[0].Single,p:[$n[0].Int32],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0},{n:"value",pt:$n[0].Single,ps:1}],sn:"setitem",rt:$n[0].Void,p:[$n[0].Int32,$n[0].Single]}},{a:2,n:"back",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_back",is:!0,t:8,tpc:0,def:function(){return new pc.Vec3(0,0,-1)},rt:$n[1].Vector3}},{a:2,n:"cachedBack",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedBack",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.cachedBack},rt:$n[1].Vector3}},{a:2,n:"cachedDown",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedDown",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.DOWN},rt:$n[1].Vector3}},{a:2,n:"cachedForward",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedForward",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.cachedForward},rt:$n[1].Vector3}},{a:2,n:"cachedLeft",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedLeft",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.LEFT},rt:$n[1].Vector3}},{a:2,n:"cachedNegativeInfinity",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedNegativeInfinity",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.cachedNegativeInfinity},rt:$n[1].Vector3}},{a:2,n:"cachedOne",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedOne",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.cachedOne},rt:$n[1].Vector3}},{a:2,n:"cachedPositiveInfinity",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedPositiveInfinity",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.cachedPositiveInfinity},rt:$n[1].Vector3}},{a:2,n:"cachedRight",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedRight",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.RIGHT},rt:$n[1].Vector3}},{a:2,n:"cachedUp",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedUp",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.UP},rt:$n[1].Vector3}},{a:2,n:"cachedZero",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_cachedZero",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.ZERO},rt:$n[1].Vector3}},{a:2,n:"down",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_down",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.DOWN.clone()},rt:$n[1].Vector3}},{a:2,n:"forward",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_forward",is:!0,t:8,tpc:0,def:function(){return new pc.Vec3(0,0,1)},rt:$n[1].Vector3}},{a:2,n:"fwd",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_fwd",is:!0,t:8,tpc:0,def:function(){return new pc.Vec3(0,0,1)},rt:$n[1].Vector3}},{a:2,n:"left",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_left",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.LEFT.clone()},rt:$n[1].Vector3}},{a:2,n:"magnitude",t:16,rt:$n[0].Single,g:{a:2,n:"get_magnitude",t:8,tpc:0,def:function(){return this.length()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"negativeInfinity",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_negativeInfinity",is:!0,t:8,tpc:0,def:function(){return new pc.Vec3(-Infinity,-Infinity,-Infinity)},rt:$n[1].Vector3}},{a:2,n:"normalized",t:16,rt:$n[1].Vector3,g:{a:2,n:"get_normalized",t:8,tpc:0,def:function(){return this.clone().normalize()},rt:$n[1].Vector3}},{a:2,n:"one",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_one",is:!0,t:8,tpc:0,def:function(){return new pc.Vec3(1,1,1)},rt:$n[1].Vector3}},{a:2,n:"positiveInfinity",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_positiveInfinity",is:!0,t:8,tpc:0,def:function(){return new pc.Vec3(Infinity,Infinity,Infinity)},rt:$n[1].Vector3}},{a:2,n:"right",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_right",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.RIGHT.clone()},rt:$n[1].Vector3}},{a:2,n:"sqrMagnitude",t:16,rt:$n[0].Single,g:{a:2,n:"get_sqrMagnitude",t:8,tpc:0,def:function(){return this.lengthSq()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"up",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_up",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.UP.clone()},rt:$n[1].Vector3}},{a:2,n:"zero",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_zero",is:!0,t:8,tpc:0,def:function(){return pc.Vec3.ZERO.clone()},rt:$n[1].Vector3}},{a:2,n:"kEpsilon",is:!0,t:4,rt:$n[0].Single,sn:"kEpsilon",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"kEpsilonNormalSqrt",is:!0,t:4,rt:$n[0].Single,sn:"kEpsilonNormalSqrt",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"x",t:4,rt:$n[0].Single,sn:"x",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"y",t:4,rt:$n[0].Single,sn:"y",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"z",t:4,rt:$n[0].Single,sn:"z",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<Data>k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"<Item>k__BackingField",t:4,rt:$n[0].Single,sn:"item",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<back>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"back"},{a:1,backing:!0,n:"<cachedBack>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedBack"},{a:1,backing:!0,n:"<cachedDown>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedDown"},{a:1,backing:!0,n:"<cachedForward>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedForward"},{a:1,backing:!0,n:"<cachedLeft>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedLeft"},{a:1,backing:!0,n:"<cachedNegativeInfinity>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedNegativeInfinity"},{a:1,backing:!0,n:"<cachedOne>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedOne"},{a:1,backing:!0,n:"<cachedPositiveInfinity>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedPositiveInfinity"},{a:1,backing:!0,n:"<cachedRight>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedRight"},{a:1,backing:!0,n:"<cachedUp>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedUp"},{a:1,backing:!0,n:"<cachedZero>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedZero"},{a:1,backing:!0,n:"<down>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"down"},{a:1,backing:!0,n:"<forward>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"forward"},{a:1,backing:!0,n:"<fwd>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"fwd"},{a:1,backing:!0,n:"<left>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"left"},{a:1,backing:!0,n:"<magnitude>k__BackingField",t:4,rt:$n[0].Single,sn:"magnitude",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<negativeInfinity>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"negativeInfinity"},{a:1,backing:!0,n:"<normalized>k__BackingField",t:4,rt:$n[1].Vector3,sn:"normalized"},{a:1,backing:!0,n:"<one>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"one"},{a:1,backing:!0,n:"<positiveInfinity>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"positiveInfinity"},{a:1,backing:!0,n:"<right>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"right"},{a:1,backing:!0,n:"<sqrMagnitude>k__BackingField",t:4,rt:$n[0].Single,sn:"sqrMagnitude",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<up>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"up"},{a:1,backing:!0,n:"<zero>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"zero"}]}}),$n),$m("UnityEngine.Vector4",(function(){return{att:1048841,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,def:function(){return new pc.Vec4}},{a:2,n:".ctor",t:1,p:[$n[0].Single,$n[0].Single],pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1}],def:function(e,t){return new pc.Vec4(e,t,0,0)}},{a:2,n:".ctor",t:1,p:[$n[0].Single,$n[0].Single,$n[0].Single],pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1},{n:"z",pt:$n[0].Single,ps:2}],def:function(e,t,n){return new pc.Vec4(e,t,n,0)}},{a:2,n:".ctor",t:1,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single],pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1},{n:"z",pt:$n[0].Single,ps:2},{n:"w",pt:$n[0].Single,ps:3}],def:function(e,t,n,i){return new pc.Vec4(e,t,n,i)}},{a:2,n:"Distance",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"b",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return pc.Vec4.distance(e,t)},rt:$n[0].Single,p:[$n[1].Vector4,$n[1].Vector4],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"Dot",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"b",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return e.dot(t)},rt:$n[0].Single,p:[$n[1].Vector4,$n[1].Vector4],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{ov:!0,a:2,n:"Equals",t:8,pi:[{n:"o",pt:$n[0].Object,ps:0}],tpc:0,def:function(e){return this.strictEquals(e)},rt:$n[0].Boolean,p:[$n[0].Object],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{ov:!0,a:2,n:"GetHashCode",t:8,sn:"getHashCode",rt:$n[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"Lerp",is:!0,t:8,pi:[{n:"v0",pt:$n[1].Vector4,ps:0},{n:"v1",pt:$n[1].Vector4,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Vec4).lerp(e,t,n)},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[1].Vector4,$n[0].Single]},{a:2,n:"LerpUnclamped",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"b",pt:$n[1].Vector4,ps:1},{n:"t",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return(new pc.Vec4).lerpUnclamped(e,t,n)},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[1].Vector4,$n[0].Single]},{a:2,n:"Magnitude",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0}],tpc:0,def:function(e){return e.length()},rt:$n[0].Single,p:[$n[1].Vector4],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"Max",is:!0,t:8,pi:[{n:"lhs",pt:$n[1].Vector4,ps:0},{n:"rhs",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return new pc.Vec4(Math.max(e.x,t.x),Math.max(e.y,t.y),Math.max(e.z,t.z),Math.max(e.w,t.w))},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[1].Vector4]},{a:2,n:"Min",is:!0,t:8,pi:[{n:"lhs",pt:$n[1].Vector4,ps:0},{n:"rhs",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return new pc.Vec4(Math.min(e.x,t.x),Math.min(e.y,t.y),Math.min(e.z,t.z),Math.min(e.w,t.w))},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[1].Vector4]},{a:2,n:"MoveTowards",is:!0,t:8,pi:[{n:"current",pt:$n[1].Vector4,ps:0},{n:"target",pt:$n[1].Vector4,ps:1},{n:"maxDistanceDelta",pt:$n[0].Single,ps:2}],tpc:0,def:function(e,t,n){return pc.Vec4.moveTowards(e,t,n)},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[1].Vector4,$n[0].Single]},{a:2,n:"Normalize",t:8,tpc:0,def:function(){return this.normalize()},rt:$n[1].Vector4},{a:2,n:"Normalize",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0}],tpc:0,def:function(e){return e.normalize()},rt:$n[1].Vector4,p:[$n[1].Vector4]},{a:2,n:"Project",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"b",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return e.project(t)},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[1].Vector4]},{a:2,n:"Scale",t:8,pi:[{n:"scale",pt:$n[1].Vector4,ps:0}],tpc:0,def:function(e){return this.mul(e)},rt:$n[0].Void,p:[$n[1].Vector4]},{a:2,n:"Scale",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"b",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return(new pc.Vec4).mul2(e,t)},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[1].Vector4]},{a:2,n:"Set",t:8,pi:[{n:"x",pt:$n[0].Single,ps:0},{n:"y",pt:$n[0].Single,ps:1},{n:"z",pt:$n[0].Single,ps:2},{n:"w",pt:$n[0].Single,ps:3}],tpc:0,def:function(e,t,n,i){return this.set(e,t,n,i)},rt:$n[0].Void,p:[$n[0].Single,$n[0].Single,$n[0].Single,$n[0].Single]},{a:2,n:"SetFromArray",t:8,pi:[{n:"data",pt:Array,ps:0},{n:"offset",pt:$n[0].Int32,ps:1}],tpc:0,def:function(e,t){return this.setFromArray(e,t)},rt:$n[0].Void,p:[Array,$n[0].Int32]},{a:2,n:"SqrMagnitude",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0}],tpc:0,def:function(e){return e.lengthSq()},rt:$n[0].Single,p:[$n[1].Vector4],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"op_Addition",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"b",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return e.add(t)},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[1].Vector4]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"t",pt:$n[0].Single,ps:0},{n:"a",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return t.clone().scale(1/e)},rt:$n[1].Vector4,p:[$n[0].Single,$n[1].Vector4]},{a:2,n:"op_Division",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"t",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return e.scale(1/t)},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[0].Single]},{a:2,n:"op_Equality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"b",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return pc.Vec4.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Vector4,$n[1].Vector4],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Implicit",is:!0,t:8,pi:[{n:"source",pt:$n[1].Color,ps:0}],tpc:0,def:function(e){return new pc.Vec4(e.r,e.g,e.b,e.a)},rt:$n[1].Vector4,p:[$n[1].Color]},{a:2,n:"op_Implicit",is:!0,t:8,pi:[{n:"v",pt:$n[1].Vector2,ps:0}],sn:"FromVector2",rt:$n[1].Vector4,p:[$n[1].Vector2]},{a:2,n:"op_Implicit",is:!0,t:8,pi:[{n:"v",pt:$n[1].Vector3,ps:0}],sn:"FromVector3",rt:$n[1].Vector4,p:[$n[1].Vector3]},{a:2,n:"op_Inequality",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"b",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return!pc.Vec4.equals(e,t)},rt:$n[0].Boolean,p:[$n[1].Vector4,$n[1].Vector4],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"t",pt:$n[0].Single,ps:0},{n:"a",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return t.clone().scale(e)},rt:$n[1].Vector4,p:[$n[0].Single,$n[1].Vector4]},{a:2,n:"op_Multiply",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"t",pt:$n[0].Single,ps:1}],tpc:0,def:function(e,t){return e.scale(t)},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[0].Single]},{a:2,n:"op_Subtraction",is:!0,t:8,pi:[{n:"a",pt:$n[1].Vector4,ps:0},{n:"b",pt:$n[1].Vector4,ps:1}],tpc:0,def:function(e,t){return e.sub(t)},rt:$n[1].Vector4,p:[$n[1].Vector4,$n[1].Vector4]},{a:2,n:"Data",t:16,rt:$n[0].Array.type(System.Single),g:{a:2,n:"get_Data",t:8,rt:$n[0].Array.type(System.Single),fg:"data"},s:{a:2,n:"set_Data",t:8,p:[$n[0].Array.type(System.Single)],rt:$n[0].Void,fs:"data"},fn:"data"},{a:2,n:"Item",t:16,rt:$n[0].Single,p:[$n[0].Int32],i:!0,ipi:[{n:"index",pt:$n[0].Int32,ps:0}],g:{a:2,n:"get_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0}],sn:"getitem",rt:$n[0].Single,p:[$n[0].Int32],box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_Item",t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0},{n:"value",pt:$n[0].Single,ps:1}],sn:"setitem",rt:$n[0].Void,p:[$n[0].Int32,$n[0].Single]}},{a:2,n:"magnitude",t:16,rt:$n[0].Single,g:{a:2,n:"get_magnitude",t:8,tpc:0,def:function(){return this.length()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"negativeInfinity",is:!0,t:16,rt:$n[1].Vector4,g:{a:2,n:"get_negativeInfinity",is:!0,t:8,tpc:0,def:function(){return new pc.Vec4(-Infinity,-Infinity,-Infinity,-Infinity)},rt:$n[1].Vector4}},{a:2,n:"normalized",t:16,rt:$n[1].Vector4,g:{a:2,n:"get_normalized",t:8,tpc:0,def:function(){return this.clone().normalize()},rt:$n[1].Vector4}},{a:2,n:"one",is:!0,t:16,rt:$n[1].Vector4,g:{a:2,n:"get_one",is:!0,t:8,tpc:0,def:function(){return new pc.Vec4(1,1,1,1)},rt:$n[1].Vector4}},{a:2,n:"positiveInfinity",is:!0,t:16,rt:$n[1].Vector4,g:{a:2,n:"get_positiveInfinity",is:!0,t:8,tpc:0,def:function(){return new pc.Vec4(Infinity,Infinity,Infinity,Infinity)},rt:$n[1].Vector4}},{a:2,n:"sqrMagnitude",t:16,rt:$n[0].Single,g:{a:2,n:"get_sqrMagnitude",t:8,tpc:0,def:function(){return this.lengthSq()},rt:$n[0].Single,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}}},{a:2,n:"zero",is:!0,t:16,rt:$n[1].Vector4,g:{a:2,n:"get_zero",is:!0,t:8,tpc:0,def:function(){return pc.Vec4.ZERO.clone()},rt:$n[1].Vector4}},{a:2,n:"w",t:4,rt:$n[0].Single,sn:"w",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"x",t:4,rt:$n[0].Single,sn:"x",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"y",t:4,rt:$n[0].Single,sn:"y",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"z",t:4,rt:$n[0].Single,sn:"z",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<Data>k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"<Item>k__BackingField",t:4,rt:$n[0].Single,sn:"item",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<magnitude>k__BackingField",t:4,rt:$n[0].Single,sn:"magnitude",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<negativeInfinity>k__BackingField",is:!0,t:4,rt:$n[1].Vector4,sn:"negativeInfinity"},{a:1,backing:!0,n:"<normalized>k__BackingField",t:4,rt:$n[1].Vector4,sn:"normalized"},{a:1,backing:!0,n:"<one>k__BackingField",is:!0,t:4,rt:$n[1].Vector4,sn:"one"},{a:1,backing:!0,n:"<positiveInfinity>k__BackingField",is:!0,t:4,rt:$n[1].Vector4,sn:"positiveInfinity"},{a:1,backing:!0,n:"<sqrMagnitude>k__BackingField",t:4,rt:$n[0].Single,sn:"sqrMagnitude",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<zero>k__BackingField",is:!0,t:4,rt:$n[1].Vector4,sn:"zero"}]}}),$n),$m("pc.QualitySettings.instance",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"DecreaseLevel",is:!0,t:8,pi:[{n:"applyExpensiveChanges",dv:!1,o:!0,pt:$n[0].Boolean,ps:0}],sn:"decreaseLevel",rt:$n[0].Void,p:[$n[0].Boolean]},{a:2,n:"GetQualityLevel",is:!0,t:8,sn:"getQualityLevel",rt:$n[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"IncreaseLevel",is:!0,t:8,pi:[{n:"applyExpensiveChanges",dv:!1,o:!0,pt:$n[0].Boolean,ps:0}],sn:"increaseLevel",rt:$n[0].Void,p:[$n[0].Boolean]},{a:2,n:"SetQualityLevel",is:!0,t:8,pi:[{n:"index",pt:$n[0].Int32,ps:0},{n:"applyExpensiveChanges",dv:!0,o:!0,pt:$n[0].Boolean,ps:1}],sn:"setQualityLevel",rt:$n[0].Void,p:[$n[0].Int32,$n[0].Boolean]},{a:2,n:"activeColorSpace",is:!0,t:16,rt:$n[1].ColorSpace,g:{a:2,n:"get_activeColorSpace",t:8,rt:$n[1].ColorSpace,fg:"activeColorSpace",is:!0,box:function(e){return Bridge.box(e,UnityEngine.ColorSpace,System.Enum.toStringFn(UnityEngine.ColorSpace))}},fn:"activeColorSpace"},{a:2,n:"anisotropicFiltering",is:!0,t:16,rt:$n[1].AnisotropicFiltering,g:{a:2,n:"get_anisotropicFiltering",t:8,rt:$n[1].AnisotropicFiltering,fg:"anisotropicFiltering",is:!0,box:function(e){}},s:{a:2,n:"set_anisotropicFiltering",t:8,p:[$n[1].AnisotropicFiltering],rt:$n[0].Void,fs:"anisotropicFiltering",is:!0},fn:"anisotropicFiltering"},{a:2,n:"antiAliasing",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_antiAliasing",t:8,rt:$n[0].Int32,fg:"antiAliasing",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_antiAliasing",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"antiAliasing",is:!0},fn:"antiAliasing"},{a:2,n:"asyncUploadBufferSize",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_asyncUploadBufferSize",t:8,rt:$n[0].Int32,fg:"asyncUploadBufferSize",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_asyncUploadBufferSize",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"asyncUploadBufferSize",is:!0},fn:"asyncUploadBufferSize"},{a:2,n:"asyncUploadTimeSlice",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_asyncUploadTimeSlice",t:8,rt:$n[0].Int32,fg:"asyncUploadTimeSlice",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_asyncUploadTimeSlice",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"asyncUploadTimeSlice",is:!0},fn:"asyncUploadTimeSlice"},{a:2,n:"billboardsFaceCameraPosition",is:!0,t:16,rt:$n[0].Boolean,g:{a:2,n:"get_billboardsFaceCameraPosition",t:8,rt:$n[0].Boolean,fg:"billboardsFaceCameraPosition",is:!0,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},s:{a:2,n:"set_billboardsFaceCameraPosition",t:8,p:[$n[0].Boolean],rt:$n[0].Void,fs:"billboardsFaceCameraPosition",is:!0},fn:"billboardsFaceCameraPosition"},{a:2,n:"desiredColorSpace",is:!0,t:16,rt:$n[1].ColorSpace,g:{a:2,n:"get_desiredColorSpace",t:8,rt:$n[1].ColorSpace,fg:"desiredColorSpace",is:!0,box:function(e){return Bridge.box(e,UnityEngine.ColorSpace,System.Enum.toStringFn(UnityEngine.ColorSpace))}},fn:"desiredColorSpace"},{a:2,n:"lodBias",is:!0,t:16,rt:$n[0].Single,g:{a:2,n:"get_lodBias",t:8,rt:$n[0].Single,fg:"lodBias",is:!0,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_lodBias",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"lodBias",is:!0},fn:"lodBias"},{a:2,n:"masterTextureLimit",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_masterTextureLimit",t:8,rt:$n[0].Int32,fg:"masterTextureLimit",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_masterTextureLimit",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"masterTextureLimit",is:!0},fn:"masterTextureLimit"},{a:2,n:"maxQueuedFrames",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_maxQueuedFrames",t:8,rt:$n[0].Int32,fg:"maxQueuedFrames",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_maxQueuedFrames",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"maxQueuedFrames",is:!0},fn:"maxQueuedFrames"},{a:2,n:"maximumLODLevel",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_maximumLODLevel",t:8,rt:$n[0].Int32,fg:"maximumLODLevel",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_maximumLODLevel",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"maximumLODLevel",is:!0},fn:"maximumLODLevel"},{a:2,n:"names",is:!0,t:16,rt:$n[0].Array.type(System.String),g:{a:2,n:"get_names",t:8,rt:$n[0].Array.type(System.String),fg:"names",is:!0},fn:"names"},{a:2,n:"particleRaycastBudget",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_particleRaycastBudget",t:8,rt:$n[0].Int32,fg:"particleRaycastBudget",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_particleRaycastBudget",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"particleRaycastBudget",is:!0},fn:"particleRaycastBudget"},{a:2,n:"pixelLightCount",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_pixelLightCount",t:8,rt:$n[0].Int32,fg:"pixelLightCount",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_pixelLightCount",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"pixelLightCount",is:!0},fn:"pixelLightCount"},{a:2,n:"realtimeReflectionProbes",is:!0,t:16,rt:$n[0].Boolean,g:{a:2,n:"get_realtimeReflectionProbes",t:8,rt:$n[0].Boolean,fg:"realtimeReflectionProbes",is:!0,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},s:{a:2,n:"set_realtimeReflectionProbes",t:8,p:[$n[0].Boolean],rt:$n[0].Void,fs:"realtimeReflectionProbes",is:!0},fn:"realtimeReflectionProbes"},{a:2,n:"resolutionScalingFixedDPIFactor",is:!0,t:16,rt:$n[0].Single,g:{a:2,n:"get_resolutionScalingFixedDPIFactor",t:8,rt:$n[0].Single,fg:"resolutionScalingFixedDPIFactor",is:!0,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_resolutionScalingFixedDPIFactor",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"resolutionScalingFixedDPIFactor",is:!0},fn:"resolutionScalingFixedDPIFactor"},{a:2,n:"shadowCascade2Split",is:!0,t:16,rt:$n[0].Single,g:{a:2,n:"get_shadowCascade2Split",t:8,rt:$n[0].Single,fg:"shadowCascade2Split",is:!0,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_shadowCascade2Split",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"shadowCascade2Split",is:!0},fn:"shadowCascade2Split"},{a:2,n:"shadowCascade4Split",is:!0,t:16,rt:$n[1].Vector3,g:{a:2,n:"get_shadowCascade4Split",t:8,rt:$n[1].Vector3,fg:"shadowCascade4Split",is:!0},s:{a:2,n:"set_shadowCascade4Split",t:8,p:[$n[1].Vector3],rt:$n[0].Void,fs:"shadowCascade4Split",is:!0},fn:"shadowCascade4Split"},{a:2,n:"shadowCascades",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_shadowCascades",t:8,rt:$n[0].Int32,fg:"shadowCascades",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_shadowCascades",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"shadowCascades",is:!0},fn:"shadowCascades"},{a:2,n:"shadowDistance",is:!0,t:16,rt:$n[0].Single,g:{a:2,n:"get_shadowDistance",t:8,rt:$n[0].Single,fg:"shadowDistance",is:!0,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_shadowDistance",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"shadowDistance",is:!0},fn:"shadowDistance"},{a:2,n:"shadowNearPlaneOffset",is:!0,t:16,rt:$n[0].Single,g:{a:2,n:"get_shadowNearPlaneOffset",t:8,rt:$n[0].Single,fg:"shadowNearPlaneOffset",is:!0,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_shadowNearPlaneOffset",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"shadowNearPlaneOffset",is:!0},fn:"shadowNearPlaneOffset"},{a:2,n:"shadowProjection",is:!0,t:16,rt:$n[1].ShadowProjection,g:{a:2,n:"get_shadowProjection",t:8,rt:$n[1].ShadowProjection,fg:"shadowProjection",is:!0,box:function(e){}},s:{a:2,n:"set_shadowProjection",t:8,p:[$n[1].ShadowProjection],rt:$n[0].Void,fs:"shadowProjection",is:!0},fn:"shadowProjection"},{a:2,n:"shadowResolution",is:!0,t:16,rt:$n[1].ShadowResolution,g:{a:2,n:"get_shadowResolution",t:8,rt:$n[1].ShadowResolution,fg:"shadowResolution",is:!0,box:function(e){}},s:{a:2,n:"set_shadowResolution",t:8,p:[$n[1].ShadowResolution],rt:$n[0].Void,fs:"shadowResolution",is:!0},fn:"shadowResolution"},{a:2,n:"shadowmaskMode",is:!0,t:16,rt:$n[1].ShadowmaskMode,g:{a:2,n:"get_shadowmaskMode",t:8,rt:$n[1].ShadowmaskMode,fg:"shadowmaskMode",is:!0,box:function(e){}},s:{a:2,n:"set_shadowmaskMode",t:8,p:[$n[1].ShadowmaskMode],rt:$n[0].Void,fs:"shadowmaskMode",is:!0},fn:"shadowmaskMode"},{a:2,n:"shadows",is:!0,t:16,rt:$n[1].ShadowQuality,g:{a:2,n:"get_shadows",t:8,rt:$n[1].ShadowQuality,fg:"shadows",is:!0,box:function(e){}},s:{a:2,n:"set_shadows",t:8,p:[$n[1].ShadowQuality],rt:$n[0].Void,fs:"shadows",is:!0},fn:"shadows"},{a:2,n:"softParticles",is:!0,t:16,rt:$n[0].Boolean,g:{a:2,n:"get_softParticles",t:8,rt:$n[0].Boolean,fg:"softParticles",is:!0,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},s:{a:2,n:"set_softParticles",t:8,p:[$n[0].Boolean],rt:$n[0].Void,fs:"softParticles",is:!0},fn:"softParticles"},{a:2,n:"softVegetation",is:!0,t:16,rt:$n[0].Boolean,g:{a:2,n:"get_softVegetation",t:8,rt:$n[0].Boolean,fg:"softVegetation",is:!0,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},s:{a:2,n:"set_softVegetation",t:8,p:[$n[0].Boolean],rt:$n[0].Void,fs:"softVegetation",is:!0},fn:"softVegetation"},{a:2,n:"streamingMipmapsActive",is:!0,t:16,rt:$n[0].Boolean,g:{a:2,n:"get_streamingMipmapsActive",t:8,rt:$n[0].Boolean,fg:"streamingMipmapsActive",is:!0,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},s:{a:2,n:"set_streamingMipmapsActive",t:8,p:[$n[0].Boolean],rt:$n[0].Void,fs:"streamingMipmapsActive",is:!0},fn:"streamingMipmapsActive"},{a:2,n:"streamingMipmapsAddAllCameras",is:!0,t:16,rt:$n[0].Boolean,g:{a:2,n:"get_streamingMipmapsAddAllCameras",t:8,rt:$n[0].Boolean,fg:"streamingMipmapsAddAllCameras",is:!0,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},s:{a:2,n:"set_streamingMipmapsAddAllCameras",t:8,p:[$n[0].Boolean],rt:$n[0].Void,fs:"streamingMipmapsAddAllCameras",is:!0},fn:"streamingMipmapsAddAllCameras"},{a:2,n:"streamingMipmapsMaxFileIORequests",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_streamingMipmapsMaxFileIORequests",t:8,rt:$n[0].Int32,fg:"streamingMipmapsMaxFileIORequests",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_streamingMipmapsMaxFileIORequests",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"streamingMipmapsMaxFileIORequests",is:!0},fn:"streamingMipmapsMaxFileIORequests"},{a:2,n:"streamingMipmapsMaxLevelReduction",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_streamingMipmapsMaxLevelReduction",t:8,rt:$n[0].Int32,fg:"streamingMipmapsMaxLevelReduction",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_streamingMipmapsMaxLevelReduction",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"streamingMipmapsMaxLevelReduction",is:!0},fn:"streamingMipmapsMaxLevelReduction"},{a:2,n:"streamingMipmapsMemoryBudget",is:!0,t:16,rt:$n[0].Single,g:{a:2,n:"get_streamingMipmapsMemoryBudget",t:8,rt:$n[0].Single,fg:"streamingMipmapsMemoryBudget",is:!0,box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},s:{a:2,n:"set_streamingMipmapsMemoryBudget",t:8,p:[$n[0].Single],rt:$n[0].Void,fs:"streamingMipmapsMemoryBudget",is:!0},fn:"streamingMipmapsMemoryBudget"},{a:2,n:"streamingMipmapsRenderersPerFrame",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_streamingMipmapsRenderersPerFrame",t:8,rt:$n[0].Int32,fg:"streamingMipmapsRenderersPerFrame",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_streamingMipmapsRenderersPerFrame",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"streamingMipmapsRenderersPerFrame",is:!0},fn:"streamingMipmapsRenderersPerFrame"},{a:2,n:"vSyncCount",is:!0,t:16,rt:$n[0].Int32,g:{a:2,n:"get_vSyncCount",t:8,rt:$n[0].Int32,fg:"vSyncCount",is:!0,box:function(e){return Bridge.box(e,System.Int32)}},s:{a:2,n:"set_vSyncCount",t:8,p:[$n[0].Int32],rt:$n[0].Void,fs:"vSyncCount",is:!0},fn:"vSyncCount"},{a:1,backing:!0,n:"<activeColorSpace>k__BackingField",is:!0,t:4,rt:$n[1].ColorSpace,sn:"activeColorSpace",box:function(e){return Bridge.box(e,UnityEngine.ColorSpace,System.Enum.toStringFn(UnityEngine.ColorSpace))}},{a:1,backing:!0,n:"<anisotropicFiltering>k__BackingField",is:!0,t:4,rt:$n[1].AnisotropicFiltering,sn:"anisotropicFiltering",box:function(e){}},{a:1,backing:!0,n:"<antiAliasing>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"antiAliasing",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<asyncUploadBufferSize>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"asyncUploadBufferSize",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<asyncUploadTimeSlice>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"asyncUploadTimeSlice",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<billboardsFaceCameraPosition>k__BackingField",is:!0,t:4,rt:$n[0].Boolean,sn:"billboardsFaceCameraPosition",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,backing:!0,n:"<desiredColorSpace>k__BackingField",is:!0,t:4,rt:$n[1].ColorSpace,sn:"desiredColorSpace",box:function(e){return Bridge.box(e,UnityEngine.ColorSpace,System.Enum.toStringFn(UnityEngine.ColorSpace))}},{a:1,backing:!0,n:"<lodBias>k__BackingField",is:!0,t:4,rt:$n[0].Single,sn:"lodBias",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<masterTextureLimit>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"masterTextureLimit",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<maxQueuedFrames>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"maxQueuedFrames",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<maximumLODLevel>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"maximumLODLevel",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<names>k__BackingField",is:!0,t:4,rt:$n[0].Array.type(System.String),sn:"names"},{a:1,backing:!0,n:"<particleRaycastBudget>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"particleRaycastBudget",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<pixelLightCount>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"pixelLightCount",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<realtimeReflectionProbes>k__BackingField",is:!0,t:4,rt:$n[0].Boolean,sn:"realtimeReflectionProbes",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,backing:!0,n:"<resolutionScalingFixedDPIFactor>k__BackingField",is:!0,t:4,rt:$n[0].Single,sn:"resolutionScalingFixedDPIFactor",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<shadowCascade2Split>k__BackingField",is:!0,t:4,rt:$n[0].Single,sn:"shadowCascade2Split",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<shadowCascade4Split>k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"shadowCascade4Split"},{a:1,backing:!0,n:"<shadowCascades>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"shadowCascades",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<shadowDistance>k__BackingField",is:!0,t:4,rt:$n[0].Single,sn:"shadowDistance",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<shadowNearPlaneOffset>k__BackingField",is:!0,t:4,rt:$n[0].Single,sn:"shadowNearPlaneOffset",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<shadowProjection>k__BackingField",is:!0,t:4,rt:$n[1].ShadowProjection,sn:"shadowProjection",box:function(e){}},{a:1,backing:!0,n:"<shadowResolution>k__BackingField",is:!0,t:4,rt:$n[1].ShadowResolution,sn:"shadowResolution",box:function(e){}},{a:1,backing:!0,n:"<shadowmaskMode>k__BackingField",is:!0,t:4,rt:$n[1].ShadowmaskMode,sn:"shadowmaskMode",box:function(e){}},{a:1,backing:!0,n:"<shadows>k__BackingField",is:!0,t:4,rt:$n[1].ShadowQuality,sn:"shadows",box:function(e){}},{a:1,backing:!0,n:"<softParticles>k__BackingField",is:!0,t:4,rt:$n[0].Boolean,sn:"softParticles",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,backing:!0,n:"<softVegetation>k__BackingField",is:!0,t:4,rt:$n[0].Boolean,sn:"softVegetation",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,backing:!0,n:"<streamingMipmapsActive>k__BackingField",is:!0,t:4,rt:$n[0].Boolean,sn:"streamingMipmapsActive",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,backing:!0,n:"<streamingMipmapsAddAllCameras>k__BackingField",is:!0,t:4,rt:$n[0].Boolean,sn:"streamingMipmapsAddAllCameras",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,backing:!0,n:"<streamingMipmapsMaxFileIORequests>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"streamingMipmapsMaxFileIORequests",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<streamingMipmapsMaxLevelReduction>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"streamingMipmapsMaxLevelReduction",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<streamingMipmapsMemoryBudget>k__BackingField",is:!0,t:4,rt:$n[0].Single,sn:"streamingMipmapsMemoryBudget",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<streamingMipmapsRenderersPerFrame>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"streamingMipmapsRenderersPerFrame",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<vSyncCount>k__BackingField",is:!0,t:4,rt:$n[0].Int32,sn:"vSyncCount",box:function(e){return Bridge.box(e,System.Int32)}}]}}),$n)})),pc.Vec2.$metadata=UnityEngine.Vector2.$metadata,pc.Vec3.$metadata=UnityEngine.Vector3.$metadata,pc.Vec4.$metadata=UnityEngine.Vector4.$metadata,pc.Color.$metadata=UnityEngine.Color.$metadata,pc.Mat4.$metadata=UnityEngine.Matrix4x4.$metadata,pc.Quat.$metadata=UnityEngine.Quaternion.$metadata,pc.BoundingBox.$metadata=UnityEngine.Bounds.$metadata,pc.Vec2.$getMetadata=UnityEngine.Vector2.$getMetadata,pc.Vec3.$getMetadata=UnityEngine.Vector3.$getMetadata,pc.Vec4.$getMetadata=UnityEngine.Vector4.$getMetadata,pc.Color.$getMetadata=UnityEngine.Color.$getMetadata,pc.Mat4.$getMetadata=UnityEngine.Matrix4x4.$getMetadata,pc.Quat.$getMetadata=UnityEngine.Quaternion.$getMetadata,pc.BoundingBox.$getMetadata=UnityEngine.Bounds.$getMetadata,Bridge.Class.set(UnityEngine,"Vector2",pc.Vec2),Bridge.Class.set(UnityEngine,"Vector3",pc.Vec3),Bridge.Class.set(UnityEngine,"Vector4",pc.Vec4),Bridge.Class.set(UnityEngine,"Color",pc.Color),Bridge.Class.set(UnityEngine,"Matrix4x4",pc.Mat4),Bridge.Class.set(UnityEngine,"Quaternion",pc.Quat),Bridge.Class.set(UnityEngine,"Bounds",pc.BoundingBox),pc.Vec2.ctor=pc.Vec2,pc.Vec3.ctor=pc.Vec3,pc.Vec4.ctor=pc.Vec4,pc.Color.ctor=pc.Color,pc.Mat4.ctor=pc.Mat4,pc.Quat.ctor=pc.Quat,pc.BoundingBox.ctor=pc.BoundingBox,Bridge.assembly("UnityEngine.UI",(function(e,t){Bridge.define("UnityEngine.EventSystems.AbstractEventData",{fields:{m_Used:!1},props:{used:{get:function(){return this.m_Used}}},methods:{Reset:function(){this.m_Used=!1},Use:function(){this.m_Used=!0}}}),Bridge.define("UnityEngine.EventSystems.UIBehaviour",{inherits:[UnityEngine.MonoBehaviour],ctors:{ctor:function(){this.$initialize(),UnityEngine.MonoBehaviour.ctor.call(this)},$ctor1:function(e){this.$initialize(),UnityEngine.MonoBehaviour.ctor.call(this,e)}},methods:{IsActive:function(){return this.handle.enabled},Awake:function(){},OnEnable:function(){},OnDisable:function(){},OnRectTransformDimensionsChange:function(){},OnTransformParentChanged:function(){},OnDestroy:function(){},Start:function(){},OnDidApplyAnimationProperties:function(){},ConfigureForEntity:function(e){UnityEngine.MonoBehaviour.prototype.ConfigureForEntity.call(this,e),null==e.element&&e.addComponent("element"),this.UnityEngine$UI$ILayoutElement$CalculateLayoutInputHorizontal&&e._layoutElements.push(this),this.UnityEngine$UI$ICanvasElement$LayoutComplete&&e._canvasElements.push(this),this.OnRectTransformDimensionsChange!==UnityEngine.EventSystems.UIBehaviour.prototype.OnRectTransformDimensionsChange&&e._dimensionListeners.push(this),this.UnityEngine$UI$ILayoutController$SetLayoutHorizontal&&(Bridge.is(this,UnityEngine.UI.ILayoutSelfController)?e._layoutSelfControllers.push(this):e._layoutControllers.push(this))},OnCanvasHierarchyChanged:function(){},OnCanvasGroupChanged:function(){},IsDestroyed:function(){return Bridge.referenceEquals(Bridge.cast(this,UnityEngine.Object),null)}}}),Bridge.define("UnityEngine.EventSystems.IEventSystemHandler",{$kind:3}),Bridge.define("UnityEngine.EventSystems.ExecuteEvents",{statics:{fields:{_pointerEnterHandler:null,_pointerExitHandler:null,_pointerDownHandler:null,_pointerUpHandler:null,_pointerClickHandler:null,_initializePotentialDragHandler:null,_beginDragHandler:null,_dragHandler:null,_endDragHandler:null,_dropHandler:null,_scrollHandler:null,_updateSelectedHandler:null,_selectHandler:null,_deselectHandler:null,_moveHandler:null,_submitHandler:null,_cancelHandler:null,_handlerListPool:null,_internalTransformList:null},props:{pointerEnterHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._pointerEnterHandler}},pointerExitHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._pointerExitHandler}},pointerDownHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._pointerDownHandler}},pointerUpHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._pointerUpHandler}},pointerClickHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._pointerClickHandler}},initializePotentialDrag:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._initializePotentialDragHandler}},beginDragHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._beginDragHandler}},dragHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._dragHandler}},endDragHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._endDragHandler}},dropHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._dropHandler}},scrollHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._scrollHandler}},updateSelectedHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._updateSelectedHandler}},selectHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._selectHandler}},deselectHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._deselectHandler}},moveHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._moveHandler}},submitHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._submitHandler}},cancelHandler:{get:function(){return UnityEngine.EventSystems.ExecuteEvents._cancelHandler}}},ctors:{init:function(){this._pointerEnterHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$11,this._pointerExitHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$12,this._pointerDownHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$10,this._pointerUpHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$13,this._pointerClickHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$9,this._initializePotentialDragHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$7,this._beginDragHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$1,this._dragHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$4,this._endDragHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$6,this._dropHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$5,this._scrollHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$14,this._updateSelectedHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$17,this._selectHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$15,this._deselectHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$3,this._moveHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$8,this._submitHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$16,this._cancelHandler=UnityEngine.EventSystems.ExecuteEvents.Execute$2,this._handlerListPool=new(UnityEngine.UI.ObjectPool$1(System.Collections.Generic.List$1(UnityEngine.EventSystems.IEventSystemHandler)))(null,(function(e){e.clear()})),this._internalTransformList=new(System.Collections.Generic.List$1(UnityEngine.Transform).$ctor2)(30)}},methods:{ValidateEventData:function(e,t){if(null==Bridge.as(t,e))throw new System.ArgumentException.$ctor1(System.String.format("Invalid type: {0} passed to event expecting {1}",Bridge.getType(t),e));return Bridge.as(t,e)},Execute$11:function(e,t){e.UnityEngine$EventSystems$IPointerEnterHandler$OnPointerEnter(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$12:function(e,t){e.UnityEngine$EventSystems$IPointerExitHandler$OnPointerExit(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$10:function(e,t){e.UnityEngine$EventSystems$IPointerDownHandler$OnPointerDown(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$13:function(e,t){e.UnityEngine$EventSystems$IPointerUpHandler$OnPointerUp(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$9:function(e,t){e.UnityEngine$EventSystems$IPointerClickHandler$OnPointerClick(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$7:function(e,t){e.UnityEngine$EventSystems$IInitializePotentialDragHandler$OnInitializePotentialDrag(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$1:function(e,t){e.UnityEngine$EventSystems$IBeginDragHandler$OnBeginDrag(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$4:function(e,t){e.UnityEngine$EventSystems$IDragHandler$OnDrag(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$6:function(e,t){e.UnityEngine$EventSystems$IEndDragHandler$OnEndDrag(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$5:function(e,t){e.UnityEngine$EventSystems$IDropHandler$OnDrop(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$14:function(e,t){e.UnityEngine$EventSystems$IScrollHandler$OnScroll(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.PointerEventData,t))},Execute$17:function(e,t){e.UnityEngine$EventSystems$IUpdateSelectedHandler$OnUpdateSelected(t)},Execute$15:function(e,t){e.UnityEngine$EventSystems$ISelectHandler$OnSelect(t)},Execute$3:function(e,t){e.UnityEngine$EventSystems$IDeselectHandler$OnDeselect(t)},Execute$8:function(e,t){e.UnityEngine$EventSystems$IMoveHandler$OnMove(UnityEngine.EventSystems.ExecuteEvents.ValidateEventData(UnityEngine.EventSystems.AxisEventData,t))},Execute$16:function(e,t){e.UnityEngine$EventSystems$ISubmitHandler$OnSubmit(t)},Execute$2:function(e,t){e.UnityEngine$EventSystems$ICancelHandler$OnCancel(t)},Execute:function(e,t,n,i){var r=UnityEngine.EventSystems.ExecuteEvents._handlerListPool.Get();UnityEngine.EventSystems.ExecuteEvents.GetEventList(e,t,r);for(var s=0;s<r.Count;s++){var a;try{a=Bridge.cast(r.getItem(s),e)}catch(t){t=System.Exception.create(t);var o=r.getItem(s);UnityEngine.Debug.LogException(new System.Exception(System.String.format("Type {0} expected {1} received.",Bridge.Reflection.getTypeName(e),Bridge.Reflection.getTypeName(Bridge.getType(o))),t));continue}try{i(Bridge.rValue(a),n)}catch(e){e=System.Exception.create(e),UnityEngine.Debug.LogException(e)}}var l=r.Count;return UnityEngine.EventSystems.ExecuteEvents._handlerListPool.Release(r),l>0},GetEventChain:function(e,t){if(System.Array.clear(t,UnityEngine.Transform),!UnityEngine.GameObject.op_Equality(e,null))for(var n=e.transform;UnityEngine.Component.op_Inequality(n,null);)System.Array.add(t,n,UnityEngine.Transform),n=n.parent},ExecuteHierarchy:function(e,t,n,i){UnityEngine.EventSystems.ExecuteEvents.GetEventChain(t,UnityEngine.EventSystems.ExecuteEvents._internalTransformList);for(var r=0;r<UnityEngine.EventSystems.ExecuteEvents._internalTransformList.Count;r++){var s=UnityEngine.EventSystems.ExecuteEvents._internalTransformList.getItem(r);if(UnityEngine.EventSystems.ExecuteEvents.Execute(e,s.gameObject,n,i))return s.gameObject}return null},ShouldSendToComponent:function(e,t){if(!Bridge.is(t,e))return!1;var n=Bridge.as(t,UnityEngine.Behaviour);return!UnityEngine.Component.op_Inequality(n,null)||n.isActiveAndEnabled},GetEventList:function(e,t,n){if(null==n)throw new System.ArgumentException.$ctor3("Results array is null","results");var i=t?t.handle:null;if(null!==i&&!i._destroyed&&i.enabled)for(var r=UnityEngine.EventSystems.ExecuteEvents.ShouldSendToComponent,s=UnityEngine.EventSystems.IEventSystemHandler,a=i._unityComponents.monoBehaviour,o=0;o<a.length;o++){var l=a[o].code;r(e,l)&&System.Array.add(n,Bridge.as(l,s),s)}},CanHandleEvent:function(e,t){var n=UnityEngine.EventSystems.ExecuteEvents._handlerListPool.Get();UnityEngine.EventSystems.ExecuteEvents.GetEventList(e,t,n);var i=n.Count;return UnityEngine.EventSystems.ExecuteEvents._handlerListPool.Release(n),0!==i},GetEventHandler:function(e,t){if(UnityEngine.GameObject.op_Equality(t,null))return null;for(var n=t.transform;UnityEngine.Component.op_Inequality(n,null);){if(UnityEngine.EventSystems.ExecuteEvents.CanHandleEvent(e,n.gameObject))return n.gameObject;n=n.parent}return null}}}}),Bridge.define("UnityEngine.EventSystems.PointerEventData.FramePressState",{$kind:1006,statics:{fields:{Pressed:0,Released:1,PressedAndReleased:2,NotChanged:3}}}),Bridge.define("UnityEngine.EventSystems.PointerEventData.InputButton",{$kind:1006,statics:{fields:{Left:0,Right:1,Middle:2}}}),Bridge.define("UnityEngine.EventSystems.PointerInputModule.ButtonState",{$kind:1002,fields:{m_Button:0,m_EventData:null},props:{eventData:{get:function(){return this.m_EventData},set:function(e){this.m_EventData=e}},button:{get:function(){return this.m_Button},set:function(e){this.m_Button=e}}},ctors:{init:function(){this.m_Button=UnityEngine.EventSystems.PointerEventData.InputButton.Left}}}),Bridge.define("UnityEngine.EventSystems.PointerInputModule.MouseButtonEventData",{$kind:1002,fields:{buttonState:0,buttonData:null},methods:{PressedThisFrame:function(){return this.buttonState===UnityEngine.EventSystems.PointerEventData.FramePressState.Pressed||this.buttonState===UnityEngine.EventSystems.PointerEventData.FramePressState.PressedAndReleased},ReleasedThisFrame:function(){return this.buttonState===UnityEngine.EventSystems.PointerEventData.FramePressState.Released||this.buttonState===UnityEngine.EventSystems.PointerEventData.FramePressState.PressedAndReleased}}}),Bridge.define("UnityEngine.EventSystems.PointerInputModule.MouseState",{$kind:1002,fields:{m_TrackedButtons:null},ctors:{init:function(){this.m_TrackedButtons=new(System.Collections.Generic.List$1(UnityEngine.EventSystems.PointerInputModule.ButtonState).ctor)}},methods:{AnyPressesThisFrame:function(){for(var e=0;e<this.m_TrackedButtons.Count;e++)if(this.m_TrackedButtons.getItem(e).eventData.PressedThisFrame())return!0;return!1},AnyReleasesThisFrame:function(){for(var e=0;e<this.m_TrackedButtons.Count;e++)if(this.m_TrackedButtons.getItem(e).eventData.ReleasedThisFrame())return!0;return!1},GetButtonState:function(e){for(var t,n=null,i=0;i<this.m_TrackedButtons.Count;i++)if(this.m_TrackedButtons.getItem(i).button===e){n=this.m_TrackedButtons.getItem(i);break}return null==n&&((t=new UnityEngine.EventSystems.PointerInputModule.ButtonState).button=e,t.eventData=new UnityEngine.EventSystems.PointerInputModule.MouseButtonEventData,n=t,this.m_TrackedButtons.add(n)),n},SetButtonState:function(e,t,n){var i=this.GetButtonState(e);i.eventData.buttonState=t,i.eventData.buttonData=n}}}),Bridge.define("UnityEngine.EventSystems.RaycasterManager",{statics:{fields:{s_Raycasters:null},ctors:{init:function(){this.s_Raycasters=new(System.Collections.Generic.List$1(UnityEngine.EventSystems.BaseRaycaster).ctor)}},methods:{AddRaycaster:function(e){UnityEngine.EventSystems.RaycasterManager.s_Raycasters.contains(e)||UnityEngine.EventSystems.RaycasterManager.s_Raycasters.add(e)},GetRaycasters:function(){return UnityEngine.EventSystems.RaycasterManager.s_Raycasters}}}}),Bridge.define("UnityEngine.EventSystems.RaycastResult",{$kind:4,statics:{methods:{getDefaultValue:function(){return new UnityEngine.EventSystems.RaycastResult}}},fields:{screenPosition:null,worldNormal:null,worldPosition:null,sortingOrder:0,distance:0,index:0,depth:0,sortingLayer:0,module:null,gameObject:null},props:{},ctors:{init:function(){this.screenPosition=new UnityEngine.Vector2,this.worldNormal=new UnityEngine.Vector3,this.worldPosition=new UnityEngine.Vector3},ctor:function(){this.$initialize()}},methods:{SetFrom:function(e){return this.gameObject=e.gameObject,this.module=e.module,this.distance=e.distance,this.index=e.index,this.depth=e.depth,this.sortingLayer=e.sortingLayer,this.sortingOrder=e.sortingOrder,this.worldNormal.copy(e.worldNormal),this.worldPosition.copy(e.worldPosition),this.screenPosition.copy(e.screenPosition),this},$clone:function(e){var t=e||new UnityEngine.EventSystems.RaycastResult;return t.screenPosition=this.screenPosition.$clone(),t.worldNormal=this.worldNormal.$clone(),t.worldPosition=this.worldPosition.$clone(),t.sortingOrder=this.sortingOrder,t.distance=this.distance,t.index=this.index,t.depth=this.depth,t.sortingLayer=this.sortingLayer,t.module=this.module,t.gameObject=this.gameObject,t}}}),Bridge.define("UnityEngine.ICanvasRaycastFilter",{$kind:3}),Bridge.define("UnityEngine.UI.AnimationTriggers",{statics:{fields:{DefaultNormalAnimName:null,DefaultHighlightedAnimName:null,DefaultPressedAnimName:null,DefaultSelectedAnimName:null,DefaultDisabledAnimName:null},ctors:{init:function(){this.DefaultNormalAnimName="Normal",this.DefaultHighlightedAnimName="Highlighted",this.DefaultPressedAnimName="Pressed",this.DefaultSelectedAnimName="Selected",this.DefaultDisabledAnimName="Disabled"}}},fields:{m_NormalTrigger:null,m_HighlightedTrigger:null,m_PressedTrigger:null,m_SelectedTrigger:null,m_DisabledTrigger:null},props:{normalTrigger:{get:function(){return this.m_NormalTrigger}},highlightedTrigger:{get:function(){return this.m_HighlightedTrigger}},pressedTrigger:{get:function(){return this.m_PressedTrigger}},selectedTrigger:{get:function(){return this.m_SelectedTrigger}},disabledTrigger:{get:function(){return this.m_DisabledTrigger}}},ctors:{init:function(){this.m_NormalTrigger="Normal",this.m_HighlightedTrigger="Highlighted",this.m_PressedTrigger="Pressed",this.m_SelectedTrigger="Selected",this.m_DisabledTrigger="Disabled"}}}),Bridge.define("UnityEngine.UI.Button.ButtonClickedEvent",{inherits:[UnityEngine.Events.UnityEvent],$kind:1002}),Bridge.define("UnityEngine.UI.CanvasScaler.ScaleMode",{$kind:1006,statics:{fields:{ConstantPixelSize:0,ScaleWithScreenSize:1,ConstantPhysicalSize:2}}}),Bridge.define("UnityEngine.UI.CanvasScaler.ScreenMatchMode",{$kind:1006,statics:{fields:{MatchWidthOrHeight:0,Expand:1,Shrink:2}}}),Bridge.define("UnityEngine.UI.CanvasUpdateRegistry",{statics:{fields:{s_Instance:null},props:{instance:{get:function(){return UnityEngine.UI.CanvasUpdateRegistry.s_Instance=UnityEngine.UI.CanvasUpdateRegistry.s_Instance||new UnityEngine.UI.CanvasUpdateRegistry,UnityEngine.UI.CanvasUpdateRegistry.s_Instance}}},methods:{RegisterCanvasElementForLayoutRebuild:function(e){if(!e.entity||!e.entity.isPrefab){var t=UnityEngine.UI.CanvasUpdateRegistry.instance,n=UnityEngine.UI.CanvasUpdateRegistry.GetKey(e);t.layoutRebuildIndex.has(n)||(t.layoutRebuildQueue.push(e),t.layoutRebuildIndex.add(n))}},RegisterCanvasElementForGraphicRebuild:function(e){if(!e.entity||!e.entity.isPrefab){var t=UnityEngine.UI.CanvasUpdateRegistry.instance,n=UnityEngine.UI.CanvasUpdateRegistry.GetKey(e);t.graphicsRebuildIndex.has(n)||(t.graphicsRebuildQueue.push(e),t.graphicsRebuildIndex.add(n))}},UnRegisterCanvasElementForRebuild:function(e){var t=UnityEngine.UI.CanvasUpdateRegistry.GetKey(e);UnityEngine.UI.CanvasUpdateRegistry.instance.layoutRebuildIndex.delete(t),UnityEngine.UI.CanvasUpdateRegistry.instance.graphicsRebuildIndex.delete(t)},IsRebuildingLayout:function(){return UnityEngine.UI.CanvasUpdateRegistry.instance.m_PerformingLayoutUpdate},GetKey:function(e){return"UnityEngine.UI.ScrollRect"===e.$$fullname?e:e.transform}}},fields:{m_PerformingLayoutUpdate:!1,m_PerformingGraphicUpdate:!1,layoutRebuildQueue:null,layoutRebuildIndex:null,graphicsRebuildQueue:null,graphicsRebuildIndex:null},ctors:{init:function(){this.m_PerformingLayoutUpdate=!1,this.m_PerformingGraphicUpdate=!1,this.layoutRebuildQueue=System.Array.init(0,null,UnityEngine.UI.ICanvasElement),this.graphicsRebuildQueue=System.Array.init(0,null,UnityEngine.UI.ICanvasElement)},ctor:function(){this.$initialize(),UnityEngine.Canvas.addwillRenderCanvases(Bridge.fn.cacheBind(this,this.PerformUpdate)),this.layoutRebuildIndex=new Set,this.graphicsRebuildIndex=new Set}},methods:{PerformUpdate:function(){this.m_PerformingLayoutUpdate=!0,this.PerformLayoutRebuildPhases(),this.m_PerformingLayoutUpdate=!1,this.m_PerformingGraphicUpdate=!0,this.PerformGraphicsRebuildPhases(),this.m_PerformingGraphicUpdate=!1},PerformLayoutRebuildPhases:function(){var e=this.layoutRebuildQueue;e.sort((function(e,t){return e.transform.handle._graphDepth-t.transform.handle._graphDepth}));for(var t=0;t<=UnityEngine.UI.CanvasUpdate.PostLayout;t++)for(var n=0;n<e.length;n++){var i=e[n];this.layoutRebuildIndex.has(i.transform)&&i.Rebuild(t)}for(n=0;n<e.length;n++)e[n].LayoutComplete();this.layoutRebuildIndex.clear(),this.layoutRebuildQueue.length=0},PerformGraphicsRebuildPhases:function(){for(var e=this.graphicsRebuildQueue,t=UnityEngine.UI.CanvasUpdate.PreRender;t<=UnityEngine.UI.CanvasUpdate.MaxUpdateValue;t++)for(var n=0;n<e.length;n++){var i=e[n];this.graphicsRebuildIndex.has(i.transform)&&i.Rebuild(t)}for(n=0;n<e.length;n++)e[n].GraphicUpdateComplete();this.graphicsRebuildIndex.clear(),this.graphicsRebuildQueue.length=0}}}),Bridge.define("UnityEngine.UI.Collections.IndexedSet$1",(function(e){return{inherits:[System.Collections.Generic.IList$1(e)],fields:{m_List:null,m_Dictionary:null},props:{Count:{},IsReadOnly:{}},alias:["add","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$add","remove","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$remove","GetEnumerator",["System$Collections$Generic$IEnumerable$1$"+Bridge.getTypeAlias(e)+"$GetEnumerator","System$Collections$Generic$IEnumerable$1$GetEnumerator"],"clear","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$clear","contains","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$contains","copyTo","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$copyTo","Count","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$Count","IsReadOnly","System$Collections$Generic$ICollection$1$"+Bridge.getTypeAlias(e)+"$IsReadOnly","indexOf","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$indexOf","insert","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$insert","removeAt","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$removeAt","getItem","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$getItem","setItem","System$Collections$Generic$IList$1$"+Bridge.getTypeAlias(e)+"$setItem"],ctors:{},methods:{},overloads:{"Add(T)":"add","Remove(T)":"remove","Clear()":"clear","Contains(T)":"contains","CopyTo(T[], int)":"copyTo","IndexOf(T)":"indexOf","Insert(int, T)":"insert","RemoveAt(int)":"removeAt"}}})),Bridge.define("UnityEngine.UI.ColorBlock",{inherits:function(){return[System.IEquatable$1(UnityEngine.UI.ColorBlock)]},$kind:4,statics:{props:{defaultColorBlock:{get:function(){var e;return((e=new UnityEngine.UI.ColorBlock).m_NormalColor=UnityEngine.Color32.op_Implicit(new UnityEngine.Color32.$ctor1(255,255,255,255)),e.m_HighlightedColor=UnityEngine.Color32.op_Implicit(new UnityEngine.Color32.$ctor1(245,245,245,255)),e.m_PressedColor=UnityEngine.Color32.op_Implicit(new UnityEngine.Color32.$ctor1(200,200,200,255)),e.m_SelectedColor=UnityEngine.Color32.op_Implicit(new UnityEngine.Color32.$ctor1(245,245,245,255)),e.m_DisabledColor=UnityEngine.Color32.op_Implicit(new UnityEngine.Color32.$ctor1(200,200,200,128)),e.colorMultiplier=1,e.fadeDuration=.1,e).$clone()}}},methods:{}},fields:{m_ColorMultiplier:0,m_DisabledColor:null,m_FadeDuration:0,m_HighlightedColor:null,m_NormalColor:null,m_PressedColor:null,m_SelectedColor:null},props:{normalColor:{get:function(){return this.m_NormalColor.$clone()}},highlightedColor:{get:function(){return this.m_HighlightedColor.$clone()}},pressedColor:{get:function(){return this.m_PressedColor.$clone()}},selectedColor:{get:function(){return this.m_SelectedColor.$clone()}},disabledColor:{get:function(){return this.m_DisabledColor.$clone()}},colorMultiplier:{get:function(){return this.m_ColorMultiplier},set:function(e){this.m_ColorMultiplier=e}},fadeDuration:{get:function(){return this.m_FadeDuration},set:function(e){this.m_FadeDuration=e}}},alias:[],ctors:{init:function(){this.m_DisabledColor=new UnityEngine.Color,this.m_HighlightedColor=new UnityEngine.Color,this.m_NormalColor=new UnityEngine.Color,this.m_PressedColor=new UnityEngine.Color,this.m_SelectedColor=new UnityEngine.Color},ctor:function(){this.$initialize()}},methods:{$clone:function(e){var t=e||new UnityEngine.UI.ColorBlock;return t.m_ColorMultiplier=this.m_ColorMultiplier,t.m_DisabledColor=this.m_DisabledColor.$clone(),t.m_FadeDuration=this.m_FadeDuration,t.m_HighlightedColor=this.m_HighlightedColor.$clone(),t.m_NormalColor=this.m_NormalColor.$clone(),t.m_PressedColor=this.m_PressedColor.$clone(),t.m_SelectedColor=this.m_SelectedColor.$clone(),t}},overloads:{"Equals(ColorBlock)":"equalsT","Equals(object)":"equals","GetHashCode()":"getHashCode"}}),Bridge.define("UnityEngine.UI.ILayoutController",{$kind:3}),Bridge.define("UnityEngine.UI.ContentSizeFitter.FitMode",{$kind:1006,statics:{fields:{Unconstrained:0,MinSize:1,PreferredSize:2}}}),Bridge.define("UnityEngine.UI.CoroutineTween.ITweenValue",{$kind:3}),Bridge.define("UnityEngine.UI.CoroutineTween.ColorTween.ColorTweenCallback",{inherits:[UnityEngine.Events.UnityEvent$1(UnityEngine.Color)],$kind:1002}),Bridge.define("UnityEngine.UI.CoroutineTween.ColorTween.ColorTweenMode",{$kind:1006,statics:{fields:{All:0,RGB:1,Alpha:2}}}),Bridge.define("UnityEngine.UI.FontData",{statics:{props:{defaultFontData:{get:function(){var e;return(e=new UnityEngine.UI.FontData).m_FontSize=14,e.m_LineSpacing=1,e.m_FontStyle=UnityEngine.FontStyle.Normal,e.m_BestFit=!1,e.m_MinSize=10,e.m_MaxSize=40,e.m_Alignment=UnityEngine.TextAnchor.UpperLeft,e.m_HorizontalOverflow=UnityEngine.HorizontalWrapMode.Wrap,e.m_VerticalOverflow=UnityEngine.VerticalWrapMode.Truncate,e.m_RichText=!0,e.m_AlignByGeometry=!1,e}}}},fields:{m_Font:null,m_FontSize:0,m_FontStyle:0,m_BestFit:!1,m_MinSize:0,m_MaxSize:0,m_Alignment:0,m_AlignByGeometry:!1,m_RichText:!1,m_HorizontalOverflow:0,m_VerticalOverflow:0,m_LineSpacing:0},props:{font:{get:function(){return this.m_Font}},fontSize:{get:function(){return this.m_FontSize}},bestFit:{get:function(){return this.m_BestFit}},minSize:{get:function(){return this.m_MinSize}},maxSize:{get:function(){return this.m_MaxSize}},alignment:{get:function(){return this.m_Alignment}},horizontalOverflow:{get:function(){return this.m_HorizontalOverflow}},verticalOverflow:{get:function(){return this.m_VerticalOverflow}},lineSpacing:{get:function(){return this.m_LineSpacing}}}}),Bridge.define("UnityEngine.UI.ICanvasElement",{$kind:3}),Bridge.define("UnityEngine.UI.GraphicRaycaster.BlockingObjects",{$kind:1006,statics:{fields:{None:0,TwoD:1,ThreeD:2,All:3}}}),Bridge.define("UnityEngine.UI.GraphicRegistry",{statics:{fields:{s_EmptyList:null,instance:null},ctors:{init:function(){this.s_EmptyList=new(System.Collections.Generic.List$1(UnityEngine.UI.Graphic).ctor),this.instance=new UnityEngine.UI.GraphicRegistry}},methods:{RegisterGraphicForCanvas:function(e,t){if(UnityEngine.Component.op_Inequality(e,null)){var n={v:null};UnityEngine.UI.GraphicRegistry.instance.m_Graphics.tryGetValue(e,n),null!=n.v?n.v.add(t):(n.v=new Set,n.v.add(t),UnityEngine.UI.GraphicRegistry.instance.m_Graphics.add(e,n.v))}},UnregisterGraphicForCanvas:function(e,t){var n={v:null};UnityEngine.Component.op_Inequality(e,null)&&UnityEngine.UI.GraphicRegistry.instance.m_Graphics.tryGetValue(e,n)&&(n.v.delete(t),0===n.v.size&&UnityEngine.UI.GraphicRegistry.instance.m_Graphics.remove(e))},GetGraphicsForCanvasInternal:function(e){var t={v:null};return e.enabled&&UnityEngine.UI.GraphicRegistry.instance.m_Graphics.tryGetValue(e,t)?t.v:null}}},fields:{m_Graphics:null},ctors:{init:function(){this.m_Graphics=new(System.Collections.Generic.Dictionary$2(UnityEngine.Canvas,Set).ctor)},ctor:function(){this.$initialize()}}}),Bridge.define("UnityEngine.UI.ILayoutElement",{$kind:3}),Bridge.define("UnityEngine.UI.IClippable",{$kind:3}),Bridge.define("UnityEngine.UI.IClipper",{$kind:3}),Bridge.define("UnityEngine.UI.ILayoutIgnorer",{$kind:3}),Bridge.define("UnityEngine.UI.IMaterialModifier",{$kind:3}),Bridge.define("UnityEngine.UI.IMaskable",{$kind:3}),Bridge.define("UnityEngine.UI.Image.Type",{$kind:1006,statics:{fields:{Simple:0,Sliced:1,Tiled:2,Filled:3}}}),Bridge.define("UnityEngine.UI.LayoutUtility",{statics:{methods:{GetPreferredSize:function(e,t){if(0===e.handle._layoutElements.length)return 0;if(1===e.handle._layoutElements.length&&e.handle._layoutElements[0].enabled){var n=Bridge.as(e.handle._layoutElements[0],UnityEngine.UI.ILayoutElement),i=0===t?UnityEngine.Mathf.Max(n.UnityEngine$UI$ILayoutElement$preferredWidth,n.UnityEngine$UI$ILayoutElement$minWidth):UnityEngine.Mathf.Max(n.UnityEngine$UI$ILayoutElement$preferredHeight,n.UnityEngine$UI$ILayoutElement$minHeight);return UnityEngine.Mathf.Max(i,0)}return 0===t?UnityEngine.UI.LayoutUtility.GetPreferredWidth(e):UnityEngine.UI.LayoutUtility.GetPreferredHeight(e)}}}}),Bridge.define("UnityEngine.UI.ListPool$1",(function(e){return{statics:{fields:{s_ListPool:null},ctors:{init:function(){this.s_ListPool=new(UnityEngine.UI.ObjectPool$1(System.Collections.Generic.List$1(e)))(null,UnityEngine.UI.ListPool$1(e).Clear)}},methods:{Clear:function(e){e.clear()},Get:function(){return UnityEngine.UI.ListPool$1(e).s_ListPool.Get()},Release:function(t){UnityEngine.UI.ListPool$1(e).s_ListPool.Release(t)}}}}})),Bridge.define("UnityEngine.UI.MaskableGraphic.CullStateChangedEvent",{inherits:[UnityEngine.Events.UnityEvent$1(System.Boolean)],$kind:1002}),Bridge.define("UnityEngine.UI.MaskUtilities",{statics:{methods:{NotifyStencilStateChanged:function(e){var t=UnityEngine.UI.ListPool$1(UnityEngine.Component).Get();e.GetComponentsInChildren$3(UnityEngine.Component,t);for(var n=0;n<t.Count;n++)if(!UnityEngine.Component.op_Equality(t.getItem(n),null)&&!UnityEngine.GameObject.op_Equality(t.getItem(n).gameObject,e.gameObject)){var i=Bridge.as(t.getItem(n),UnityEngine.UI.IMaskable);null!=i&&i.UnityEngine$UI$IMaskable$RecalculateMasking()}UnityEngine.UI.ListPool$1(UnityEngine.Component).Release(t)},FindRootSortOverrideCanvas:function(e){var t=UnityEngine.UI.ListPool$1(UnityEngine.Canvas).Get();e.GetComponentsInParent$2(UnityEngine.Canvas,!1,t);for(var n=null,i=0;i<t.Count&&!(n=t.getItem(i)).overrideSorting;++i);return UnityEngine.UI.ListPool$1(UnityEngine.Canvas).Release(t),UnityEngine.Component.op_Inequality(n,null)?n.transform:null},GetStencilDepth:function(e,t){var n=0;if(UnityEngine.Component.op_Equality(e,t))return n;for(var i=e.parent,r=UnityEngine.UI.ListPool$1(UnityEngine.UI.Mask).Get();UnityEngine.Component.op_Inequality(i,null);){i.GetComponents$2(UnityEngine.UI.Mask,r);for(var s=0;s<r.Count;++s)if(UnityEngine.MonoBehaviour.op_Inequality(r.getItem(s),null)&&r.getItem(s).MaskEnabled()&&r.getItem(s).graphic.IsActive()){++n;break}if(UnityEngine.Component.op_Equality(i,t))break;i=i.parent}return UnityEngine.UI.ListPool$1(UnityEngine.UI.Mask).Release(r),n},GetRectMaskForClippable:function(e){var t=UnityEngine.UI.ListPool$1(UnityEngine.UI.RectMask2D).Get(),n=UnityEngine.UI.ListPool$1(UnityEngine.Canvas).Get(),i=null;if(e.UnityEngine$UI$IClippable$gameObject.GetComponentsInParent$1(UnityEngine.UI.RectMask2D,!1,t),t.Count>0)for(var r=0;r<t.Count;r++)if(i=t.getItem(r),UnityEngine.GameObject.op_Equality(i.gameObject,e.UnityEngine$UI$IClippable$gameObject))i=null;else{if(i.isActiveAndEnabled){e.UnityEngine$UI$IClippable$gameObject.GetComponentsInParent$1(UnityEngine.Canvas,!1,n);for(var s=n.Count-1;s>=0;s--)if(!UnityEngine.UI.MaskUtilities.IsDescendantOrSelf(n.getItem(s).transform,i.transform)&&n.getItem(s).overrideSorting){i=null;break}break}i=null}return UnityEngine.UI.ListPool$1(UnityEngine.UI.RectMask2D).Release(t),UnityEngine.UI.ListPool$1(UnityEngine.Canvas).Release(n),i}}}}),Bridge.define("UnityEngine.UI.Navigation",{inherits:function(){return[System.IEquatable$1(UnityEngine.UI.Navigation)]},$kind:4,statics:{props:{defaultNavigation:{get:function(){var e=Bridge.getDefaultValue(UnityEngine.UI.Navigation);return e.m_Mode=UnityEngine.UI.Navigation.Mode.Automatic,e.$clone()}}},methods:{getDefaultValue:function(){return new UnityEngine.UI.Navigation}}},fields:{m_Mode:0,m_SelectOnUp:null,m_SelectOnDown:null,m_SelectOnLeft:null,m_SelectOnRight:null},props:{mode:{get:function(){return this.m_Mode}}},alias:[],ctors:{ctor:function(){this.$initialize()}},methods:{$clone:function(e){var t=e||new UnityEngine.UI.Navigation;return t.m_Mode=this.m_Mode,t.m_SelectOnUp=this.m_SelectOnUp,t.m_SelectOnDown=this.m_SelectOnDown,t.m_SelectOnLeft=this.m_SelectOnLeft,t.m_SelectOnRight=this.m_SelectOnRight,t}},overloads:{"Equals(Navigation)":"equalsT"}}),Bridge.define("UnityEngine.UI.Navigation.Mode",{$kind:1006,statics:{fields:{None:0,Horizontal:1,Vertical:2,Automatic:3,Explicit:4}},$flags:!0}),Bridge.define("UnityEngine.UI.ObjectPool$1",(function(e){return{fields:{m_Stack:null,m_ActionOnGet:null,m_ActionOnRelease:null,countAll:0},props:{countActive:{},countInactive:{}},ctors:{init:function(){this.m_Stack=new(System.Collections.Generic.Stack$1(e).ctor)},ctor:function(e,t){this.$initialize(),this.m_ActionOnGet=e,this.m_ActionOnRelease=t}},methods:{Get:function(){var t;return 0===this.m_Stack.Count?(t=Bridge.createInstance(e),this.countAll++):t=Bridge.rValue(this.m_Stack.Pop()),Bridge.staticEquals(this.m_ActionOnGet,null)||this.m_ActionOnGet(Bridge.rValue(t)),Bridge.rValue(t)},Release:function(e){this.m_Stack.Count>0&&Bridge.referenceEquals(Bridge.rValue(this.m_Stack.Peek()),Bridge.rValue(e))&&UnityEngine.Debug.LogError$2("Internal error. Trying to destroy object that is already released to pool."),Bridge.staticEquals(this.m_ActionOnRelease,null)||this.m_ActionOnRelease(Bridge.rValue(e)),this.m_Stack.Push(Bridge.rValue(e))}}}})),Bridge.define("UnityEngine.UI.ScrollRect.MovementType",{$kind:1006,statics:{fields:{Unrestricted:0,Elastic:1,Clamped:2}}}),Bridge.define("UnityEngine.UI.ScrollRect.ScrollRectEvent",{inherits:[UnityEngine.Events.UnityEvent$1(UnityEngine.Vector2)],$kind:1002}),Bridge.define("UnityEngine.UI.Selectable.SelectionState",{$kind:1006,statics:{fields:{Normal:0,Highlighted:1,Pressed:2,Selected:3,Disabled:4}}}),Bridge.define("UnityEngine.UI.Selectable.Transition",{$kind:1006,statics:{fields:{None:0,ColorTint:1,SpriteSwap:2,Animation:3}}}),Bridge.define("UnityEngine.UI.Slider.Axis",{$kind:1006,statics:{fields:{Horizontal:0,Vertical:1}}}),Bridge.define("UnityEngine.UI.Slider.Direction",{$kind:1006,statics:{fields:{LeftToRight:0,RightToLeft:1,BottomToTop:2,TopToBottom:3}}}),Bridge.define("UnityEngine.UI.Slider.SliderEvent",{inherits:[UnityEngine.Events.UnityEvent$1(System.Single)],$kind:1002}),Bridge.define("UnityEngine.UI.SpriteState",{inherits:function(){return[System.IEquatable$1(UnityEngine.UI.SpriteState)]},$kind:4,statics:{methods:{}},fields:{m_HighlightedSprite:null,m_PressedSprite:null,m_SelectedSprite:null,m_DisabledSprite:null},props:{highlightedSprite:{get:function(){return this.m_HighlightedSprite}},pressedSprite:{get:function(){return this.m_PressedSprite}},selectedSprite:{get:function(){return this.m_SelectedSprite}},disabledSprite:{get:function(){return this.m_DisabledSprite}}},alias:[],ctors:{ctor:function(){this.$initialize()}},methods:{},overloads:{"Equals(SpriteState)":"equalsT"}}),Bridge.define("UnityEngine.UI.StencilMaterial",{statics:{fields:{m_List:null},ctors:{init:function(){this.m_List=new(System.Collections.Generic.List$1(UnityEngine.UI.StencilMaterial.MatEntry).ctor)}},methods:{Add$1:function(e,t,n,i,r){return UnityEngine.UI.StencilMaterial.Add$2(e,t,n,i,r,255,255)},Add$2:function(e,t,n,i,r,s,a){if(t<=0&&r===UnityEngine.Rendering.ColorWriteMask.All||null==e)return e;if(!e.HasProperty$1("_Stencil"))return UnityEngine.Debug.LogWarning$1("Material "+(e.name||"")+" doesn't have _Stencil property",e),e;if(!e.HasProperty$1("_StencilOp"))return UnityEngine.Debug.LogWarning$1("Material "+(e.name||"")+" doesn't have _StencilOp property",e),e;if(!e.HasProperty$1("_StencilComp"))return UnityEngine.Debug.LogWarning$1("Material "+(e.name||"")+" doesn't have _StencilComp property",e),e;if(!e.HasProperty$1("_StencilReadMask"))return UnityEngine.Debug.LogWarning$1("Material "+(e.name||"")+" doesn't have _StencilReadMask property",e),e;if(!e.HasProperty$1("_StencilWriteMask"))return UnityEngine.Debug.LogWarning$1("Material "+(e.name||"")+" doesn't have _StencilWriteMask property",e),e;if(!e.HasProperty$1("_ColorMask"))return UnityEngine.Debug.LogWarning$1("Material "+(e.name||"")+" doesn't have _ColorMask property",e),e;for(var o=0;o<UnityEngine.UI.StencilMaterial.m_List.Count;++o){var l=UnityEngine.UI.StencilMaterial.m_List.getItem(o);if(Bridge.referenceEquals(l.baseMat,e)&&l.stencilId===t&&l.operation===n&&l.compareFunction===i&&l.readMask===s&&l.writeMask===a&&l.colorMask===r)return++l.count,l.customMat}var c=new UnityEngine.UI.StencilMaterial.MatEntry;return c.count=1,c.baseMat=e,c.customMat=new UnityEngine.Material.$ctor1(e),c.customMat.hideFlags=UnityEngine.HideFlags.HideAndDontSave,c.stencilId=t,c.operation=n,c.compareFunction=i,c.readMask=s,c.writeMask=a,c.colorMask=r,c.useAlphaClip=n!==UnityEngine.Rendering.StencilOp.Keep&&a>0,c.customMat.name=System.String.format("Stencil Id:{0}, Op:{1}, Comp:{2}, WriteMask:{3}, ReadMask:{4}, ColorMask:{5} AlphaClip:{6} ({7})",t,n,i,a,s,r,c.useAlphaClip,e.name),c.customMat.SetInt$1("_Stencil",t),c.customMat.SetInt$1("_StencilOp",n),c.customMat.SetInt$1("_StencilComp",i),c.customMat.SetInt$1("_StencilReadMask",s),c.customMat.SetInt$1("_StencilWriteMask",a),c.customMat.SetInt$1("_ColorMask",r),c.customMat.SetInt$1("_UseUIAlphaClip",c.useAlphaClip?1:0),c.useAlphaClip?c.customMat.EnableKeyword("UNITY_UI_ALPHACLIP"):c.customMat.DisableKeyword("UNITY_UI_ALPHACLIP"),UnityEngine.UI.StencilMaterial.m_List.add(c),c.customMat},Remove:function(e){if(null!=e)for(var t=0;t<UnityEngine.UI.StencilMaterial.m_List.Count;++t){var n=UnityEngine.UI.StencilMaterial.m_List.getItem(t);if(Bridge.referenceEquals(n.customMat,e))return void(0==--n.count&&(n.baseMat=null,UnityEngine.UI.StencilMaterial.m_List.removeAt(t)))}}}}}),Bridge.define("UnityEngine.UI.StencilMaterial.MatEntry",{$kind:1002,fields:{baseMat:null,customMat:null,count:0,stencilId:0,operation:0,compareFunction:0,readMask:0,writeMask:0,useAlphaClip:!1,colorMask:0},ctors:{init:function(){this.operation=UnityEngine.Rendering.StencilOp.Keep,this.compareFunction=UnityEngine.Rendering.CompareFunction.Always}}}),Bridge.define("UnityEngine.UI.VertexHelper",{inherits:[System.IDisposable],fields:{vertices:null,triangles:null},props:{},alias:[],ctors:{init:function(){this.vertices=new(System.Collections.Generic.List$1(UnityEngine.UIVertex).ctor),this.triangles=new(System.Collections.Generic.List$1(System.Int32).ctor)},ctor:function(){this.$initialize()}},methods:{Clear:function(){this.vertices.clear(),this.triangles.clear()},FillMesh:function(e){e.handle.setUIVertexStream(this.vertices,this.triangles)}},overloads:{"AddVert(Vector3, Color32, Vector2)":"AddVert$1","AddVert(Vector3, Color32, Vector2, Vector2, Vector3, Vector4)":"AddVert$2"}}),Bridge.define("UnityEngine.EventSystems.BaseEventData",{inherits:[UnityEngine.EventSystems.AbstractEventData],fields:{currentInputModule:null,selectedObject:null},ctors:{ctor:function(e){this.$initialize(),UnityEngine.EventSystems.AbstractEventData.ctor.call(this)}}}),Bridge.define("UnityEngine.EventSystems.BaseInput",{inherits:[UnityEngine.EventSystems.UIBehaviour],props:{compositionString:{get:function(){return UnityEngine.Input.compositionString}},imeCompositionMode:{get:function(){return UnityEngine.Input.imeCompositionMode},set:function(e){UnityEngine.Input.imeCompositionMode=e}},compositionCursorPos:{get:function(){return UnityEngine.Input.compositionCursorPos.$clone()},set:function(e){UnityEngine.Input.compositionCursorPos=e.$clone()}},mousePresent:{get:function(){return UnityEngine.Input.mousePresent}},mousePosition:{get:function(){return UnityEngine.Input.mousePosition.$clone()}},mouseScrollDelta:{get:function(){return UnityEngine.Input.mouseScrollDelta.$clone()}},touchSupported:{get:function(){return UnityEngine.Input.touchSupported}},touchCount:{get:function(){return UnityEngine.Input.touchCount}}},methods:{GetMouseButtonDown:function(e){return UnityEngine.Input.GetMouseButtonDown(e)},GetMouseButtonUp:function(e){return UnityEngine.Input.GetMouseButtonUp(e)},GetMouseButton:function(e){return UnityEngine.Input.GetMouseButton(e)},GetTouch:function(e){return UnityEngine.Input.GetTouch(e)},GetAxisRaw:function(e){return UnityEngine.Input.GetAxisRaw(e)},GetButtonDown:function(e){return UnityEngine.Input.GetButtonDown(e)}}}),Bridge.define("UnityEngine.EventSystems.BaseInputModule",{inherits:[UnityEngine.EventSystems.UIBehaviour],statics:{methods:{FindFirstRaycast:function(e){for(var t=0;t<e.Count;++t)if(!UnityEngine.GameObject.op_Equality(e.getItem(t).$clone().gameObject,null))return e.getItem(t).$clone();return new UnityEngine.EventSystems.RaycastResult},DetermineMoveDirection:function(e,t){return UnityEngine.EventSystems.BaseInputModule.DetermineMoveDirection$1(e,t,.6)},DetermineMoveDirection$1:function(e,t,n){new pc.Vec2(e,t).lengthSq()},FindCommonRoot:function(e,t){if(UnityEngine.GameObject.op_Equality(e,null)||UnityEngine.GameObject.op_Equality(t,null))return null;for(var n=e.transform;UnityEngine.Component.op_Inequality(n,null);){for(var i=t.transform;UnityEngine.Component.op_Inequality(i,null);){if(UnityEngine.Component.op_Equality(n,i))return n.gameObject;i=i.parent}n=n.parent}return null}}},fields:{m_RaycastResultCache:null,m_AxisEventData:null,m_EventSystem:null,m_BaseEventData:null,m_InputOverride:null,m_DefaultInput:null},props:{input:{get:function(){var e;if(UnityEngine.MonoBehaviour.op_Inequality(this.m_InputOverride,null))return this.m_InputOverride;if(UnityEngine.MonoBehaviour.op_Equality(this.m_DefaultInput,null)){var t=this.GetComponents(UnityEngine.EventSystems.BaseInput);e=Bridge.getEnumerator(t);try{for(;e.moveNext();){var n=e.Current;if(UnityEngine.MonoBehaviour.op_Inequality(n,null)&&Bridge.referenceEquals(Bridge.getType(n),UnityEngine.EventSystems.BaseInput)){this.m_DefaultInput=n;break}}}finally{Bridge.is(e,System.IDisposable)&&e.System$IDisposable$Dispose()}UnityEngine.MonoBehaviour.op_Equality(this.m_DefaultInput,null)&&(this.m_DefaultInput=this.gameObject.AddComponent(UnityEngine.EventSystems.BaseInput))}return this.m_DefaultInput}},inputOverride:{get:function(){return this.m_InputOverride},set:function(e){this.m_InputOverride=e}},eventSystem:{get:function(){return this.m_EventSystem}}},ctors:{init:function(){this.m_RaycastResultCache=new(System.Collections.Generic.List$1(UnityEngine.EventSystems.RaycastResult).ctor)}},methods:{OnEnable:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnEnable.call(this),this.m_EventSystem=this.GetComponent(UnityEngine.EventSystems.EventSystem),this.m_EventSystem.UpdateModules()},OnDisable:function(){this.m_EventSystem.UpdateModules(),UnityEngine.EventSystems.UIBehaviour.prototype.OnDisable.call(this)},HandlePointerExitAndEnter:function(e,t){if(UnityEngine.GameObject.op_Equality(t,null)||UnityEngine.GameObject.op_Equality(e.pointerEnter,null)){for(var n=0;n<e.hovered.Count;++n)UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IPointerExitHandler,e.hovered.getItem(n),e,UnityEngine.EventSystems.ExecuteEvents.pointerExitHandler);if(e.hovered.clear(),UnityEngine.GameObject.op_Equality(t,null))return void(e.pointerEnter=null)}if(!UnityEngine.GameObject.op_Equality(e.pointerEnter,t)||!UnityEngine.Object.op_Implicit(t)){var i=UnityEngine.EventSystems.BaseInputModule.FindCommonRoot(e.pointerEnter,t);if(UnityEngine.GameObject.op_Inequality(e.pointerEnter,null))for(var r=e.pointerEnter.transform;UnityEngine.Component.op_Inequality(r,null)&&(!UnityEngine.GameObject.op_Inequality(i,null)||!UnityEngine.Component.op_Equality(i.transform,r));)UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IPointerExitHandler,r.gameObject,e,UnityEngine.EventSystems.ExecuteEvents.pointerExitHandler),e.hovered.remove(r.gameObject),r=r.parent;if(e.pointerEnter=t,UnityEngine.GameObject.op_Inequality(t,null))for(var s=t.transform;UnityEngine.Component.op_Inequality(s,null)&&UnityEngine.GameObject.op_Inequality(s.gameObject,i);)UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IPointerEnterHandler,s.gameObject,e,UnityEngine.EventSystems.ExecuteEvents.pointerEnterHandler),e.hovered.add(s.gameObject),s=s.parent}},GetAxisEventData:function(e,t,n){return null==this.m_AxisEventData&&(this.m_AxisEventData=new UnityEngine.EventSystems.AxisEventData(this.eventSystem)),this.m_AxisEventData.Reset(),this.m_AxisEventData.moveVector=new pc.Vec2(e,t),this.m_AxisEventData.moveDir=UnityEngine.EventSystems.BaseInputModule.DetermineMoveDirection$1(e,t,n),this.m_AxisEventData},GetBaseEventData:function(){return null==this.m_BaseEventData&&(this.m_BaseEventData=new UnityEngine.EventSystems.BaseEventData(this.eventSystem)),this.m_BaseEventData.Reset(),this.m_BaseEventData},IsPointerOverGameObject:function(e){return!1},ShouldActivateModule:function(){return this.enabled&&this.gameObject.activeInHierarchy},DeactivateModule:function(){},ActivateModule:function(){},UpdateModule:function(){},IsModuleSupported:function(){return!0}}}),Bridge.define("UnityEngine.EventSystems.BaseRaycaster",{inherits:[UnityEngine.EventSystems.UIBehaviour],fields:{_rootRaycaster:null},props:{rootRaycaster:{get:function(){if(UnityEngine.MonoBehaviour.op_Equality(this._rootRaycaster,null)){var e=this.GetComponentsInParent(UnityEngine.EventSystems.BaseRaycaster);0!==e.length&&(this._rootRaycaster=e[e.length-1])}return this._rootRaycaster}}},methods:{ConfigureForEntity:function(e){this.entity=e},OnEnable:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnEnable.call(this),UnityEngine.EventSystems.RaycasterManager.AddRaycaster(this)}}}),Bridge.define("UnityEngine.EventSystems.EventSystem",{inherits:[UnityEngine.EventSystems.UIBehaviour],statics:{fields:{eventSystems:null,raycastComparer:null},props:{current:{get:function(){return UnityEngine.EventSystems.EventSystem.eventSystems.Count>0?UnityEngine.EventSystems.EventSystem.eventSystems.getItem(0):null},set:function(e){var t=UnityEngine.EventSystems.EventSystem.eventSystems.indexOf(e);t>=0&&(UnityEngine.EventSystems.EventSystem.eventSystems.removeAt(t),UnityEngine.EventSystems.EventSystem.eventSystems.insert(0,e))}}},ctors:{init:function(){this.eventSystems=new(System.Collections.Generic.List$1(UnityEngine.EventSystems.EventSystem).ctor),this.raycastComparer=UnityEngine.EventSystems.EventSystem.RaycastComparer}},methods:{RaycastComparer:function(e,t){if(UnityEngine.MonoBehaviour.op_Inequality(e.module,t.module)){var n=e.module.eventCamera,i=t.module.eventCamera;if(UnityEngine.Component.op_Inequality(n,null)&&UnityEngine.Component.op_Inequality(i,null)&&n.depth!==i.depth)return n.depth<i.depth?1:n.depth===i.depth?0:-1;if(e.module.sortOrderPriority!==t.module.sortOrderPriority)return Bridge.compare(t.module.sortOrderPriority,e.module.sortOrderPriority);if(e.module.renderOrderPriority!==t.module.renderOrderPriority)return Bridge.compare(t.module.renderOrderPriority,e.module.renderOrderPriority)}if(e.sortingLayer!==t.sortingLayer){var r=UnityEngine.SortingLayer.GetLayerValueFromID(t.sortingLayer),s=UnityEngine.SortingLayer.GetLayerValueFromID(e.sortingLayer);return Bridge.compare(r,s)}return e.sortingOrder!==t.sortingOrder?Bridge.compare(t.sortingOrder,e.sortingOrder):e.depth!==t.depth&&UnityEngine.MonoBehaviour.op_Equality(e.module.rootRaycaster,t.module.rootRaycaster)?Bridge.compare(t.depth,e.depth):e.distance!==t.distance?Bridge.compare(e.distance,t.distance):Bridge.compare(e.index,t.index)}}},fields:{systemInputModules:null,_currentInputModule:null,firstSelected:null,_sendNavigationEvents:!1,dragThreshold:0,currentSelected:null,hasFocus:!1,selectionGuard:!1,dummyData:null},props:{sendNavigationEvents:{get:function(){return this._sendNavigationEvents},set:function(e){this._sendNavigationEvents=e}},pixelDragThreshold:{get:function(){return this.dragThreshold},set:function(e){this.dragThreshold=e}},currentInputModule:{get:function(){return this._currentInputModule}},firstSelectedGameObject:{get:function(){return this.firstSelected},set:function(e){this.firstSelected=e}},currentSelectedGameObject:{get:function(){return this.currentSelected}},lastSelectedGameObject:{get:function(){return null}},isFocused:{get:function(){return this.hasFocus}},alreadySelecting:{get:function(){return this.selectionGuard}},baseEventDataCache:{get:function(){return null==this.dummyData&&(this.dummyData=new UnityEngine.EventSystems.BaseEventData(this)),this.dummyData}}},ctors:{init:function(){this.systemInputModules=new(System.Collections.Generic.List$1(UnityEngine.EventSystems.BaseInputModule).ctor),this._sendNavigationEvents=!0,this.dragThreshold=10,this.hasFocus=!0},ctor:function(){this.$initialize(),UnityEngine.EventSystems.UIBehaviour.ctor.call(this)}},methods:{UpdateModules:function(){this.GetComponents$2(UnityEngine.EventSystems.BaseInputModule,this.systemInputModules);for(var e=this.systemInputModules.Count-1;e>=0;e--)UnityEngine.Object.op_Implicit(this.systemInputModules.getItem(e))&&this.systemInputModules.getItem(e).IsActive()||this.systemInputModules.removeAt(e)},SetSelectedGameObject$1:function(e,t){this.selectionGuard?UnityEngine.Debug.LogError$2(System.String.concat("Attempting to select ",e)+"while already selecting an object."):(this.selectionGuard=!0,UnityEngine.GameObject.op_Equality(e,this.currentSelected)||(UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IDeselectHandler,this.currentSelected,t,UnityEngine.EventSystems.ExecuteEvents.deselectHandler),this.currentSelected=e,UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.ISelectHandler,this.currentSelected,t,UnityEngine.EventSystems.ExecuteEvents.selectHandler)),this.selectionGuard=!1)},SetSelectedGameObject:function(e){this.SetSelectedGameObject$1(e,this.baseEventDataCache)},RaycastAll:function(e,t){t.clear();for(var n=UnityEngine.EventSystems.RaycasterManager.GetRaycasters(),i=0;i<n.Count;++i){var r=n.getItem(i);!UnityEngine.MonoBehaviour.op_Equality(r,null)&&r.IsActive()&&r.Raycast(e,t)}t.Sort$2(UnityEngine.EventSystems.EventSystem.raycastComparer)},IsPointerOverGameObject:function(){return this.IsPointerOverGameObject$1(UnityEngine.EventSystems.PointerInputModule.kMouseLeftId)},IsPointerOverGameObject$1:function(e){return!UnityEngine.MonoBehaviour.op_Equality(this._currentInputModule,null)&&this._currentInputModule.IsPointerOverGameObject(e)},OnEnable:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnEnable.call(this),UnityEngine.EventSystems.EventSystem.eventSystems.add(this)},OnDisable:function(){UnityEngine.MonoBehaviour.op_Inequality(this._currentInputModule,null)&&(this._currentInputModule.DeactivateModule(),this._currentInputModule=null),UnityEngine.EventSystems.EventSystem.eventSystems.remove(this),UnityEngine.EventSystems.UIBehaviour.prototype.OnDisable.call(this)},TickModules:function(){for(var e=0;e<this.systemInputModules.Count;e++)UnityEngine.MonoBehaviour.op_Inequality(this.systemInputModules.getItem(e),null)&&this.systemInputModules.getItem(e).UpdateModule()},OnApplicationFocus:function(e){this.hasFocus=e},Update:function(){if(!UnityEngine.MonoBehaviour.op_Inequality(UnityEngine.EventSystems.EventSystem.current,this)){this.TickModules();for(var e=!1,t=0;t<this.systemInputModules.Count;t++){var n=this.systemInputModules.getItem(t);if(n.IsModuleSupported()&&n.ShouldActivateModule()){UnityEngine.MonoBehaviour.op_Inequality(this._currentInputModule,n)&&(this.ChangeEventModule(n),e=!0);break}}if(UnityEngine.MonoBehaviour.op_Equality(this._currentInputModule,null))for(var i=0;i<this.systemInputModules.Count;i++){var r=this.systemInputModules.getItem(i);if(r.IsModuleSupported()){this.ChangeEventModule(r),e=!0;break}}!e&&UnityEngine.MonoBehaviour.op_Inequality(this._currentInputModule,null)&&this._currentInputModule.Process()}},ChangeEventModule:function(e){UnityEngine.MonoBehaviour.op_Equality(this._currentInputModule,e)||(UnityEngine.MonoBehaviour.op_Inequality(this._currentInputModule,null)&&this._currentInputModule.DeactivateModule(),UnityEngine.MonoBehaviour.op_Inequality(e,null)&&e.ActivateModule(),this._currentInputModule=e)},toString:function(){return sb.appendLine(System.String.concat("<b>Selected:</b>",this.currentSelectedGameObject)),sb.appendLine(),sb.appendLine(),sb.appendLine(UnityEngine.MonoBehaviour.op_Inequality(this._currentInputModule,null)?Bridge.toString(this._currentInputModule):"No module"),sb.toString()}},overloads:{"SetSelectedGameObject(GameObject, BaseEventData)":"SetSelectedGameObject$1","IsPointerOverGameObject(int)":"IsPointerOverGameObject$1","ToString()":"toString"}}),Bridge.define("UnityEngine.EventSystems.ISubmitHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IMoveHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IDeselectHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.ISelectHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IUpdateSelectedHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IScrollHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IDropHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IEndDragHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IDragHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IBeginDragHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IInitializePotentialDragHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IPointerClickHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IPointerUpHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IPointerDownHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IPointerExitHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.EventSystems.IPointerEnterHandler",{inherits:[UnityEngine.EventSystems.IEventSystemHandler],$kind:3}),Bridge.define("UnityEngine.UI.CanvasScaler",{inherits:[UnityEngine.EventSystems.UIBehaviour],fields:{m_MatchWidthOrHeight:0,m_ReferencePixelsPerUnit:0,m_ReferenceResolution:null,m_ScaleFactor:0,m_ScreenMatchMode:0,m_UiScaleMode:0},props:{},ctors:{init:function(){this.m_ReferenceResolution=new UnityEngine.Vector2,this.m_ReferenceResolution=pc.Vec2.ZERO.clone(),this.m_ScaleFactor=1,this.m_ScreenMatchMode=UnityEngine.UI.CanvasScaler.ScreenMatchMode.MatchWidthOrHeight,this.m_UiScaleMode=UnityEngine.UI.CanvasScaler.ScaleMode.ConstantPhysicalSize}},methods:{Awake:function(){UnityEngine.EventSystems.UIBehaviour.prototype.Awake.call(this),this.handle.entity.screen.referenceResolution=this.m_ReferenceResolution.$clone(),this.handle.entity.screen.referencePixelsPerUnit=this.m_ReferencePixelsPerUnit,this.handle.entity.screen.scaleBlend=this.m_ScreenMatchMode===UnityEngine.UI.CanvasScaler.ScreenMatchMode.MatchWidthOrHeight?this.m_MatchWidthOrHeight:0,this.handle.entity.screen.scaleFactor=this.m_ScaleFactor,this.UpdateScreenMatchMode()},ConfigureForEntity:function(e){UnityEngine.EventSystems.UIBehaviour.prototype.ConfigureForEntity.call(this,e),this.entity.element["__UnityEngine.UI.CanvasScaler"]=this},UpdateScreenMatchMode:function(){if(this.m_UiScaleMode===UnityEngine.UI.CanvasScaler.ScaleMode.ScaleWithScreenSize)switch(this.m_ScreenMatchMode){case UnityEngine.UI.CanvasScaler.ScreenMatchMode.MatchWidthOrHeight:this.handle.entity.screen.scaleMode=pc.ScreenComponent.SCALEMODE_BLEND;break;case UnityEngine.UI.CanvasScaler.ScreenMatchMode.Expand:this.handle.entity.screen.scaleMode=pc.ScreenComponent.SCALEMODE_EXPAND;break;case UnityEngine.UI.CanvasScaler.ScreenMatchMode.Shrink:this.handle.entity.screen.scaleMode=pc.ScreenComponent.SCALEMODE_SHRINK}else this.handle.entity.screen.scaleMode=pc.ScreenComponent.SCALEMODE_NONE}}}),Bridge.define("UnityEngine.UI.ILayoutSelfController",{inherits:[UnityEngine.UI.ILayoutController],$kind:3}),Bridge.define("UnityEngine.UI.CoroutineTween.ColorTween",{inherits:[UnityEngine.UI.CoroutineTween.ITweenValue],$kind:4,statics:{methods:{}},fields:{m_Target:null,m_StartColor:null,m_TargetColor:null,m_TweenMode:0,m_Duration:0,m_IgnoreTimeScale:!1},props:{startColor:{set:function(e){this.m_StartColor=e.$clone()}},targetColor:{set:function(e){this.m_TargetColor=e.$clone()}},tweenMode:{set:function(e){this.m_TweenMode=e}},duration:{get:function(){return this.m_Duration},set:function(e){this.m_Duration=e}},ignoreTimeScale:{get:function(){return this.m_IgnoreTimeScale},set:function(e){this.m_IgnoreTimeScale=e}}},alias:["duration","UnityEngine$UI$CoroutineTween$ITweenValue$duration","ignoreTimeScale","UnityEngine$UI$CoroutineTween$ITweenValue$ignoreTimeScale","TweenValue","UnityEngine$UI$CoroutineTween$ITweenValue$TweenValue","ValidTarget","UnityEngine$UI$CoroutineTween$ITweenValue$ValidTarget"],ctors:{init:function(){this.m_StartColor=new UnityEngine.Color,this.m_TargetColor=new UnityEngine.Color},ctor:function(){this.$initialize()}},methods:{TweenValue:function(e){if(this.ValidTarget()){var t=pc.Color.lerp(this.m_StartColor,this.m_TargetColor,e);this.m_TweenMode===UnityEngine.UI.CoroutineTween.ColorTween.ColorTweenMode.Alpha?(t.r=this.m_StartColor.r,t.g=this.m_StartColor.g,t.b=this.m_StartColor.b):this.m_TweenMode===UnityEngine.UI.CoroutineTween.ColorTween.ColorTweenMode.RGB&&(t.a=this.m_StartColor.a),this.m_Target.Invoke(t.$clone())}},AddOnChangedCallback:function(e){null==this.m_Target&&(this.m_Target=new UnityEngine.UI.CoroutineTween.ColorTween.ColorTweenCallback),this.m_Target.AddListener(e)},ValidTarget:function(){return null!=this.m_Target},$clone:function(e){var t=e||new UnityEngine.UI.CoroutineTween.ColorTween;return t.m_Target=this.m_Target,t.m_StartColor=this.m_StartColor.$clone(),t.m_TargetColor=this.m_TargetColor.$clone(),t.m_TweenMode=this.m_TweenMode,t.m_Duration=this.m_Duration,t.m_IgnoreTimeScale=this.m_IgnoreTimeScale,t}}}),Bridge.define("UnityEngine.UI.CoroutineTween.TweenRunner$1",(function(e){return{statics:{methods:{Start:function(e){var t,n,i=0,r=new Bridge.GeneratorEnumerator(Bridge.fn.bind(this,(function(){try{for(;;)switch(i){case 0:if(!Bridge.rValue(e).UnityEngine$UI$CoroutineTween$ITweenValue$ValidTarget()){i=1;continue}i=2;continue;case 1:return!1;case 2:t=0,i=3;continue;case 3:if(t<Bridge.rValue(e).UnityEngine$UI$CoroutineTween$ITweenValue$duration){i=4;continue}i=6;continue;case 4:return t+=Bridge.rValue(e).UnityEngine$UI$CoroutineTween$ITweenValue$ignoreTimeScale?UnityEngine.Time.unscaledDeltaTime:UnityEngine.Time.deltaTime,n=Math.max(0,Math.min(1,t/Bridge.rValue(e).UnityEngine$UI$CoroutineTween$ITweenValue$duration)),Bridge.rValue(e).UnityEngine$UI$CoroutineTween$ITweenValue$TweenValue(n),r.current=null,i=5,!0;case 5:i=3;continue;case 6:Bridge.rValue(e).UnityEngine$UI$CoroutineTween$ITweenValue$TweenValue(1);default:return!1}}catch(e){throw System.Exception.create(e)}})));return r}}},fields:{m_CoroutineContainer:null,m_Tween:null},methods:{Init:function(e){this.m_CoroutineContainer=e},StartTween:function(t){UnityEngine.MonoBehaviour.op_Equality(this.m_CoroutineContainer,null)?UnityEngine.Debug.LogWarning$1("Coroutine container not configured... did you forget to call Init?"):(this.StopTween(),this.m_CoroutineContainer.gameObject.activeInHierarchy?(this.m_Tween=UnityEngine.UI.CoroutineTween.TweenRunner$1(e).Start(Bridge.rValue(t)),this.m_CoroutineContainer.StartCoroutine$1(this.m_Tween)):Bridge.rValue(t).UnityEngine$UI$CoroutineTween$ITweenValue$TweenValue(1))},StopTween:function(){null!=this.m_Tween&&(this.m_CoroutineContainer.StopCoroutine(this.m_Tween),this.m_Tween=null)}}}})),Bridge.define("UnityEngine.UI.Graphic",{inherits:[UnityEngine.EventSystems.UIBehaviour,UnityEngine.UI.ICanvasElement],statics:{fields:{s_DefaultUI:null,s_WhiteTexture:null,s_VertexHelper:null},props:{defaultGraphicMaterial:{get:function(){return null===this.s_DefaultUI&&(UnityEngine.UI.Graphic.s_DefaultUI=UnityEngine.Canvas.GetDefaultCanvasMaterial()),UnityEngine.UI.Graphic.s_DefaultUI}}},ctors:{init:function(){this.s_DefaultUI=null,this.s_WhiteTexture=null,this.s_VertexHelper=new UnityEngine.UI.VertexHelper.ctor}},methods:{}},fields:{m_CanvasRenderer:null,m_ColorTweenRunner:null,m_OnDirtyMaterialCallback:null,m_OnDirtyVertsCallback:null,m_OnDirtyLayoutCallback:null,m_SkipLayoutUpdate:!1,m_SkipMaterialUpdate:!1,m_VertsDirty:!1,m_MaterialDirty:!1,useLegacyMeshGeneration:!1,m_Material:null,m_RaycastTarget:!1,groupBlocksRaycasts:!1,m_Color:null,lastSetColor:null,modifiedMesh:null},props:{canvas:{get:function(){return UnityEngine.Object.FromHandle(UnityEngine.Canvas,this.handle.entity.element._nearestScreen)}},materialForRendering:{get:function(){var e=this.material,t=this.gameObject.handle._magicMethods?this.gameObject.handle._magicMethods.UnityEngine$UI$IMaterialModifier$GetModifiedMaterial:null;if(t)for(var n=0;n<t.length;n++)e=t[n].code.UnityEngine$UI$IMaterialModifier$GetModifiedMaterial(e);return e}},defaultMaterial:{get:function(){return UnityEngine.UI.Graphic.defaultGraphicMaterial}},canvasRenderer:{get:function(){return null===this.m_CanvasRenderer&&(this.m_CanvasRenderer=this.GetComponent(UnityEngine.CanvasRenderer)),this.m_CanvasRenderer}},rectTransform:{get:function(){return UnityEngine.Object.FromHandle(UnityEngine.RectTransform,this.handle.entity)}},mainTexture:{get:function(){return this.defaultMaterial.mainTexture}},depth:{get:function(){return this.canvasRenderer.absoluteDepth}},material:{set:function(e){Bridge.referenceEquals(this.m_Material,e)||(this.m_Material=e,this.handle.entity.element.material=null!=e?e.handle:null,this.SetMaterialDirty())}},raycastTarget:{get:function(){return this.m_RaycastTarget&&this.groupBlocksRaycasts}},color:{get:function(){return this.m_Color.$clone()},set:function(e){this.lastSetColor.copy(e.$clone()),this.m_Color.copy(e.$clone()),this.entity.element.color=this.m_Color.$clone(),this.SetVerticesDirty()}}},alias:["Rebuild","UnityEngine$UI$ICanvasElement$Rebuild","GraphicUpdateComplete","UnityEngine$UI$ICanvasElement$GraphicUpdateComplete","IsDestroyed","UnityEngine$UI$ICanvasElement$IsDestroyed","transform","UnityEngine$UI$ICanvasElement$transform"],ctors:{init:function(){this.m_Color=new UnityEngine.Color,this.lastSetColor=new UnityEngine.Color,this.m_VertsDirty=!1,this.m_MaterialDirty=!1,this.m_RaycastTarget=!0,this.groupBlocksRaycasts=!0,this.m_Color=new pc.Color(1,1,1,1),this.lastSetColor=new pc.Color(1,1,1,1)},$ctor1:function(e){this.$initialize(),UnityEngine.EventSystems.UIBehaviour.$ctor1.call(this,e),null==this.m_ColorTweenRunner&&(this.m_ColorTweenRunner=new(UnityEngine.UI.CoroutineTween.TweenRunner$1(UnityEngine.UI.CoroutineTween.ColorTween))),this.m_ColorTweenRunner.Init(this),this.useLegacyMeshGeneration=!0}},methods:{Awake:function(){if(UnityEngine.EventSystems.UIBehaviour.prototype.Awake.call(this),!this.entity.element._image&&!this.entity.element._text){this.OnPopulateMesh(UnityEngine.UI.Graphic.s_VertexHelper);var e=new UnityEngine.Mesh.ctor;UnityEngine.UI.Graphic.s_VertexHelper.FillMesh(e),this.canvasRenderer.SetMesh(e)}},SetMaterialDirty:function(){this.IsActive()&&(this.m_MaterialDirty=!0,UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this),Bridge.staticEquals(this.m_OnDirtyMaterialCallback,null)||this.m_OnDirtyMaterialCallback())},SetAllDirty:function(){this.m_SkipLayoutUpdate?this.m_SkipLayoutUpdate=!1:this.SetLayoutDirty(),this.m_SkipMaterialUpdate?this.m_SkipMaterialUpdate=!1:this.SetMaterialDirty(),this.SetVerticesDirty()},Rebuild:function(e){UnityEngine.Component.op_Equality(this.canvasRenderer,null)||this.canvasRenderer.cull||e!==UnityEngine.UI.CanvasUpdate.PreRender||e!==UnityEngine.UI.CanvasUpdate.PreRender||(this.m_VertsDirty&&(this.UpdateGeometry(),this.m_VertsDirty=!1),this.m_MaterialDirty&&(this.UpdateMaterial(),this.m_MaterialDirty=!1))},ConfigureForEntity:function(e){UnityEngine.EventSystems.UIBehaviour.prototype.ConfigureForEntity.call(this,e),e.element["UnityEngine.UI.Graphic"]=this},CrossFadeColor:function(e,t,n,i){this.CrossFadeColor$1(e.$clone(),t,n,i,!0)},CrossFadeColor$1:function(e,t,n,i,r){var s;if(!UnityEngine.Component.op_Equality(this.canvasRenderer,null)&&(r||i))if(this.canvasRenderer.GetColor().strictEquals(e))this.m_ColorTweenRunner.StopTween();else{var a=r&&i?UnityEngine.UI.CoroutineTween.ColorTween.ColorTweenMode.All:r?UnityEngine.UI.CoroutineTween.ColorTween.ColorTweenMode.RGB:UnityEngine.UI.CoroutineTween.ColorTween.ColorTweenMode.Alpha,o=((s=new UnityEngine.UI.CoroutineTween.ColorTween).duration=t,s.startColor=this.canvasRenderer.GetColor(),s.targetColor=e.$clone(),s);o.AddOnChangedCallback(Bridge.fn.cacheBind(this.canvasRenderer,this.canvasRenderer.SetColor)),o.ignoreTimeScale=n,o.tweenMode=a,this.m_ColorTweenRunner.StartTween(o.$clone())}},SetLayoutDirty:function(){this.IsActive()&&(UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(this.rectTransform),Bridge.staticEquals(this.m_OnDirtyLayoutCallback,null)||this.m_OnDirtyLayoutCallback())},SetVerticesDirty:function(){this.IsActive()&&(this.m_VertsDirty=!0,UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this),Bridge.staticEquals(this.m_OnDirtyVertsCallback,null)||this.m_OnDirtyVertsCallback())},UpdateGeometry:function(){this.handle.entity.element.setVerticesDirty();var e=this.gameObject.handle._magicMethods?this.gameObject.handle._magicMethods.UnityEngine$UI$IMeshModifier$ModifyMesh$1:null,t=this.OnPopulateMesh!==UnityEngine.UI.Graphic.prototype.OnPopulateMesh;if(e||t){var n=UnityEngine.Object.FromHandle(UnityEngine.Mesh,this.entity.element._image?this.entity.element._image._mesh:this.entity.element._text?this.entity.element._text._mesh:null)||new UnityEngine.Mesh.ctor;if(t?this.OnPopulateMesh(UnityEngine.UI.Graphic.s_VertexHelper):UnityEngine.UI.Graphic.s_VertexHelper.FromMesh(n),this.modifiedMesh=this.modifiedMesh||new UnityEngine.Mesh.ctor,e)for(var i=0;i<e.length;i++)e[i].code.UnityEngine$UI$IMeshModifier$ModifyMesh$1(UnityEngine.UI.Graphic.s_VertexHelper);UnityEngine.UI.Graphic.s_VertexHelper.FillMesh(this.modifiedMesh),this.canvasRenderer.SetMesh(this.modifiedMesh),0===this.canvasRenderer.materialCount&&this.canvasRenderer.SetMaterial(UnityEngine.UI.Graphic.defaultGraphicMaterial,0)}},UpdateMaterial:function(){this.canvasRenderer.materialCount=1,this.canvasRenderer.SetMaterial(this.materialForRendering,0),this.canvasRenderer.SetTexture(this.mainTexture)},OnCanvasGroupChanged:function(){this.groupBlocksRaycasts=UnityEngine.CanvasGroup.ExtractBlocksRaycast(this.handle.entity.element._canvasGroups),this.SetVerticesDirty()},Raycast:function(e,t){if(!this.isActiveAndEnabled)return!1;for(var n=new pc.Vec2,i=this.entity,r=!1,s=!0;i;){var a=i.element,o=a?a._nearestScreen:null,l=i._canvasGroups,c=i._magicMethods&&i._magicMethods.UnityEngine$ICanvasRaycastFilter$IsRaycastLocationValid||[];if(o&&!o.enabled)return!1;o&&o.overrideSorting&&(s=!1);for(var u=0;u<c.length;u++){var h=c[u],d=!0;n.copy(e);var m=0===l.length?null:l[0];if((m=m&&m.gameObject.handle===i?m:null)?!1===r&&m.ignoreParentGroups?(r=!0,d=h.code.IsRaycastLocationValid(n,t)):r||(d=h.code.IsRaycastLocationValid(n,t)):d=h.code.IsRaycastLocationValid(n,t),!d)return!1}i=s?i.parent:null}return!0},GraphicUpdateComplete:function(){},OnRectTransformDimensionsChange:function(){this.gameObject.activeInHierarchy&&(UnityEngine.UI.CanvasUpdateRegistry.IsRebuildingLayout()?this.SetVerticesDirty():(this.SetVerticesDirty(),this.SetLayoutDirty()))},OnTransformParentChanged:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnTransformParentChanged.call(this),this.IsActive()&&(UnityEngine.UI.GraphicRegistry.RegisterGraphicForCanvas(this.canvas,this),this.SetAllDirty())},OnEnable:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnEnable.call(this),UnityEngine.UI.GraphicRegistry.RegisterGraphicForCanvas(this.canvas,this),this.SetAllDirty()},OnDisable:function(){UnityEngine.UI.GraphicRegistry.UnregisterGraphicForCanvas(this.canvas,this),UnityEngine.UI.CanvasUpdateRegistry.UnRegisterCanvasElementForRebuild(this),UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(this.rectTransform),UnityEngine.EventSystems.UIBehaviour.prototype.OnDisable.call(this)},OnCanvasChanged:function(e,t){UnityEngine.UI.GraphicRegistry.UnregisterGraphicForCanvas(e,this),UnityEngine.UI.GraphicRegistry.RegisterGraphicForCanvas(t,this),this.OnCanvasHierarchyChanged()}},overloads:{"CrossFadeColor(Color, float, bool, bool, bool)":"CrossFadeColor$1"}}),Bridge.define("UnityEngine.UI.ILayoutGroup",{inherits:[UnityEngine.UI.ILayoutController],$kind:3}),Bridge.define("UnityEngine.UI.LayoutElement",{inherits:[UnityEngine.EventSystems.UIBehaviour,UnityEngine.UI.ILayoutElement,UnityEngine.UI.ILayoutIgnorer],fields:{m_FlexibleHeight:0,m_FlexibleWidth:0,m_IgnoreLayout:!1,m_MinHeight:0,m_MinWidth:0,m_PreferredHeight:0,m_PreferredWidth:0},props:{},alias:["minWidth","UnityEngine$UI$ILayoutElement$minWidth","minHeight","UnityEngine$UI$ILayoutElement$minHeight","preferredWidth","UnityEngine$UI$ILayoutElement$preferredWidth","preferredHeight","UnityEngine$UI$ILayoutElement$preferredHeight","flexibleWidth","UnityEngine$UI$ILayoutElement$flexibleWidth","flexibleHeight","UnityEngine$UI$ILayoutElement$flexibleHeight","layoutPriority","UnityEngine$UI$ILayoutElement$layoutPriority","ignoreLayout","UnityEngine$UI$ILayoutIgnorer$ignoreLayout"],ctors:{init:function(){this.m_FlexibleHeight=-1,this.m_FlexibleWidth=-1,this.m_MinHeight=-1,this.m_MinWidth=-1,this.m_PreferredHeight=-1,this.m_PreferredWidth=-1}},methods:{}}),Bridge.define("UnityEngine.UI.LayoutRebuilder",{inherits:[UnityEngine.UI.ICanvasElement],statics:{fields:{rebuilderPool:null},ctors:{init:function(){this.rebuilderPool=System.Array.init(0,null,UnityEngine.UI.LayoutRebuilder)}},methods:{MarkLayoutForRebuild:function(e){if(!UnityEngine.Component.op_Equality(e,null)){for(var t=e,n=!0,i=UnityEngine.Component.op_Equality(e.parent,null)?null:UnityEngine.UI.LayoutRebuilder.GetRectTransform(e.parent);n&&!UnityEngine.Component.op_Equality(i,null);)n=!1,UnityEngine.UI.LayoutRebuilder.HasValidLayoutController(i)&&(n=!0,t=i),i=UnityEngine.UI.LayoutRebuilder.GetRectTransform(i.parent);UnityEngine.Component.op_Equality(t,e)&&!UnityEngine.UI.LayoutRebuilder.HasValidLayoutController(t)||UnityEngine.UI.LayoutRebuilder.MarkLayoutRootForRebuild(t)}},Allocate:function(e){var t=UnityEngine.UI.LayoutRebuilder.rebuilderPool.length>0?UnityEngine.UI.LayoutRebuilder.rebuilderPool[UnityEngine.UI.LayoutRebuilder.rebuilderPool.length-1]:new UnityEngine.UI.LayoutRebuilder;return UnityEngine.UI.LayoutRebuilder.rebuilderPool.length=Math.max(0,UnityEngine.UI.LayoutRebuilder.rebuilderPool.length-1),t.transform=e,t},MarkLayoutRootForRebuild:function(e){var t=UnityEngine.UI.LayoutRebuilder.Allocate(e);UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForLayoutRebuild(t)},HasValidLayoutController:function(e){for(var t=e.handle._layoutSelfControllers,n=e.handle._layoutControllers,i=0;i<t.length;i++)if(t[i].m_Enabled)return!0;for(var r=0;r<n.length;r++)if(n[r].m_Enabled)return!0;return!1},GetRectTransform:function(e){return e&&e.handle.element?e:null}}},fields:{transform:null},alias:["transform","UnityEngine$UI$ICanvasElement$transform","LayoutComplete","UnityEngine$UI$ICanvasElement$LayoutComplete","Rebuild","UnityEngine$UI$ICanvasElement$Rebuild"],methods:{LayoutComplete:function(){this.transform=null,UnityEngine.UI.LayoutRebuilder.rebuilderPool.push(this)},Rebuild:function(e){if(e===UnityEngine.UI.CanvasUpdate.Layout){var t=this.transform.handle;this.PerformCalculateLayoutInputHorizontal(t),this.PerformSetLayoutHorizontal(t),this.PerformCalculateLayoutInputVertical(t),this.PerformSetLayoutVertical(t),t.syncHierarchy()}},PerformCalculateLayoutInputHorizontal:function(e){if(e.enabled&&0!==e._layoutElements.length){for(var t=e._children,n=0;n<t.length;n++)this.PerformCalculateLayoutInputHorizontal(t[n]);var i=e._layoutElements;for(n=0;n<i.length;n++){var r=i[n];r.m_Enabled&&r.CalculateLayoutInputHorizontal()}}},PerformCalculateLayoutInputVertical:function(e){if(e.enabled&&0!==e._layoutElements.length){for(var t=e._children,n=0;n<t.length;n++)this.PerformCalculateLayoutInputVertical(t[n]);var i=e._layoutElements;for(n=0;n<i.length;n++){var r=i[n];r.m_Enabled&&r.CalculateLayoutInputVertical()}}},PerformSetLayoutHorizontal:function(e){if(e.enabled&&e._layoutSelfControllers.length+e._layoutControllers.length!==0){for(var t=e._layoutSelfControllers,n=0;n<t.length;n++)null!=(i=t[n])&&i.m_Enabled&&i.SetLayoutHorizontal();for(t=e._layoutControllers,n=0;n<t.length;n++){var i;null!=(i=t[n])&&i.m_Enabled&&i.SetLayoutHorizontal()}var r=e._children;for(n=0;n<r.length;n++)this.PerformSetLayoutHorizontal(r[n])}},PerformSetLayoutVertical:function(e){if(e.enabled&&e._layoutSelfControllers.length+e._layoutControllers.length!==0){for(var t=e._layoutSelfControllers,n=0;n<t.length;n++)null!=(i=t[n])&&i.m_Enabled&&i.SetLayoutVertical();for(t=e._layoutControllers,n=0;n<t.length;n++){var i;null!=(i=t[n])&&i.m_Enabled&&i.SetLayoutVertical()}var r=e._children;for(n=0;n<r.length;n++)this.PerformSetLayoutVertical(r[n])}}}}),Bridge.define("UnityEngine.UI.Mask",{inherits:[UnityEngine.EventSystems.UIBehaviour,UnityEngine.ICanvasRaycastFilter,UnityEngine.UI.IMaterialModifier],fields:{m_RectTransform:null,m_Graphic:null,m_MaskMaterial:null,m_UnmaskMaterial:null,m_ShowMaskGraphic:!1},props:{graphic:{get:function(){return this.m_Graphic||(this.m_Graphic=this.GetComponent(UnityEngine.UI.Graphic))}}},alias:["GetModifiedMaterial","UnityEngine$UI$IMaterialModifier$GetModifiedMaterial"],ctors:{init:function(){this.m_ShowMaskGraphic=!1},ctor:function(){this.$initialize(),UnityEngine.EventSystems.UIBehaviour.$ctor1.call(this,null)}},methods:{MaskEnabled:function(){return this.IsActive()&&UnityEngine.MonoBehaviour.op_Inequality(this.graphic,null)},Awake:function(){if(UnityEngine.EventSystems.UIBehaviour.prototype.Awake.call(this),this.handle._activeSelf){if(null==this.handle.entity.element._image)return;this.handle.entity.element.masksChildren=!0,this.UpdateMaskGraphicSettings()}},OnEnable:function(){if(UnityEngine.EventSystems.UIBehaviour.prototype.OnEnable.call(this),null!=this.handle.entity.element){if(null==this.handle.entity.element._image&&null==this.handle.entity.element._text)return;this.handle.entity.element.masksChildren=!0,this.UpdateMaskGraphicSettings()}UnityEngine.UI.MaskUtilities.NotifyStencilStateChanged(this)},UpdateMaskGraphicSettings:function(){this.handle.entity.element.showMaskGraphics=this.m_ShowMaskGraphic,UnityEngine.MonoBehaviour.op_Inequality(this.graphic,null)&&this.graphic.SetMaterialDirty()},GetModifiedMaterial:function(e){if(!this.MaskEnabled())return e;var t=UnityEngine.UI.MaskUtilities.FindRootSortOverrideCanvas(this.transform),n=UnityEngine.UI.MaskUtilities.GetStencilDepth(this.transform,t);if(n>=8)return UnityEngine.Debug.LogWarning$1("Attempting to use a stencil mask with depth > 8",this.gameObject),e;var i=1<<n;if(1===i){var r=UnityEngine.UI.StencilMaterial.Add$1(e,1,UnityEngine.Rendering.StencilOp.Replace,UnityEngine.Rendering.CompareFunction.Always,this.m_ShowMaskGraphic?UnityEngine.Rendering.ColorWriteMask.All:0);UnityEngine.UI.StencilMaterial.Remove(this.m_MaskMaterial),this.m_MaskMaterial=r;var s=UnityEngine.UI.StencilMaterial.Add$1(e,1,UnityEngine.Rendering.StencilOp.Zero,UnityEngine.Rendering.CompareFunction.Always,0);return UnityEngine.UI.StencilMaterial.Remove(this.m_UnmaskMaterial),this.m_UnmaskMaterial=s,this.graphic.canvasRenderer.popMaterialCount=1,this.graphic.canvasRenderer.SetPopMaterial(this.m_UnmaskMaterial,0),this.m_MaskMaterial}var a=UnityEngine.UI.StencilMaterial.Add$2(e,i|i-1,UnityEngine.Rendering.StencilOp.Replace,UnityEngine.Rendering.CompareFunction.Equal,this.m_ShowMaskGraphic?UnityEngine.Rendering.ColorWriteMask.All:0,i-1,i|i-1);UnityEngine.UI.StencilMaterial.Remove(this.m_MaskMaterial),this.m_MaskMaterial=a,this.graphic.canvasRenderer.hasPopInstruction=!0;var o=UnityEngine.UI.StencilMaterial.Add$2(e,i-1,UnityEngine.Rendering.StencilOp.Replace,UnityEngine.Rendering.CompareFunction.Equal,0,i-1,i|i-1);return UnityEngine.UI.StencilMaterial.Remove(this.m_UnmaskMaterial),this.m_UnmaskMaterial=o,this.graphic.canvasRenderer.popMaterialCount=1,this.graphic.canvasRenderer.SetPopMaterial(this.m_UnmaskMaterial,0),this.m_MaskMaterial}}}),Bridge.define("UnityEngine.UI.RectMask2D",{inherits:[UnityEngine.EventSystems.UIBehaviour,UnityEngine.UI.IClipper,UnityEngine.ICanvasRaycastFilter],fields:{m_VertexClipper:null,m_RectTransform:null,m_MaskableTargets:null,m_ClipTargets:null,m_ShouldRecalculateClipRects:!1,m_Clippers:null,m_LastClipRectCanvasSpace:null,m_ForceClip:!1,m_Canvas:null,m_Corners:null},props:{},alias:[],ctors:{},methods:{}}),Bridge.define("UnityEngine.EventSystems.AxisEventData",{inherits:[UnityEngine.EventSystems.BaseEventData],fields:{moveDir:0,moveVector:null},ctors:{init:function(){this.moveVector=new UnityEngine.Vector2},ctor:function(e){this.$initialize(),UnityEngine.EventSystems.BaseEventData.ctor.call(this,e)}}}),Bridge.define("UnityEngine.EventSystems.PointerEventData",{inherits:[UnityEngine.EventSystems.BaseEventData],fields:{pointerEnter:null,_pointerPress:null,lastPress:null,rawPointerPress:null,pointerDrag:null,pointerCurrentRaycast:null,pointerPressRaycast:null,hovered:null,eligibleForClick:!1,pointerId:0,position:null,delta:null,pressPosition:null,worldPosition:null,worldNormal:null,clickTime:0,clickCount:0,scrollDelta:null,useDragThreshold:!1,dragging:!1,button:0},props:{enterEventCamera:{get:function(){return UnityEngine.MonoBehaviour.op_Equality(this.pointerCurrentRaycast.module,null)?null:this.pointerCurrentRaycast.module.eventCamera}},pressEventCamera:{get:function(){return UnityEngine.MonoBehaviour.op_Equality(this.pointerPressRaycast.module,null)?null:this.pointerPressRaycast.module.eventCamera}},pointerPress:{get:function(){return this._pointerPress},set:function(e){UnityEngine.GameObject.op_Equality(this._pointerPress,e)||(this.lastPress=this._pointerPress,this._pointerPress=e)}}},ctors:{init:function(){this.pointerCurrentRaycast=new UnityEngine.EventSystems.RaycastResult,this.pointerPressRaycast=new UnityEngine.EventSystems.RaycastResult,this.position=new UnityEngine.Vector2,this.delta=new UnityEngine.Vector2,this.pressPosition=new UnityEngine.Vector2,this.worldPosition=new UnityEngine.Vector3,this.worldNormal=new UnityEngine.Vector3,this.scrollDelta=new UnityEngine.Vector2,this.hovered=new(System.Collections.Generic.List$1(UnityEngine.GameObject).ctor)},ctor:function(e){this.$initialize(),UnityEngine.EventSystems.BaseEventData.ctor.call(this,e),this.eligibleForClick=!1,this.pointerId=-1,this.position=pc.Vec2.ZERO.clone(),this.delta=pc.Vec2.ZERO.clone(),this.pressPosition=pc.Vec2.ZERO.clone(),this.clickTime=0,this.clickCount=0,this.scrollDelta=pc.Vec2.ZERO.clone(),this.useDragThreshold=!0,this.dragging=!1,this.button=UnityEngine.EventSystems.PointerEventData.InputButton.Left}},methods:{IsPointerMoving:function(){return this.delta.lengthSq()>0},IsScrolling:function(){return this.scrollDelta.lengthSq()>0},toString:function(){return sb.appendLine("<b>Position</b>: "+this.position),sb.appendLine("<b>delta</b>: "+this.delta),sb.appendLine("<b>eligibleForClick</b>: "+System.Boolean.toString(this.eligibleForClick)),sb.appendLine(System.String.concat("<b>pointerEnter</b>: ",this.pointerEnter)),sb.appendLine(System.String.concat("<b>pointerPress</b>: ",this.pointerPress)),sb.appendLine(System.String.concat("<b>lastPointerPress</b>: ",this.lastPress)),sb.appendLine(System.String.concat("<b>pointerDrag</b>: ",this.pointerDrag)),sb.appendLine("<b>Use Drag Threshold</b>: "+System.Boolean.toString(this.useDragThreshold)),sb.appendLine("<b>Current Raycast:</b>"),sb.appendLine(Bridge.toString(this.pointerCurrentRaycast)),sb.appendLine("<b>Press Raycast:</b>"),sb.appendLine(Bridge.toString(this.pointerPressRaycast)),sb.toString()}},overloads:{"ToString()":"toString"}}),Bridge.define("UnityEngine.EventSystems.PointerInputModule",{inherits:[UnityEngine.EventSystems.BaseInputModule],statics:{fields:{kMouseLeftId:0,kMouseRightId:0,kMouseMiddleId:0,kFakeTouchesId:0},ctors:{init:function(){this.kMouseLeftId=-1,this.kMouseRightId=-2,this.kMouseMiddleId=-3,this.kFakeTouchesId=-4}},methods:{ShouldStartDrag:function(e,t,n,i){return!i||e.$clone().sub(t).lengthSq()>=n*n}}},fields:{m_PointerData:null,m_MouseState:null},ctors:{init:function(){this.m_PointerData=new(System.Collections.Generic.Dictionary$2(System.Int32,UnityEngine.EventSystems.PointerEventData).ctor),this.m_MouseState=new UnityEngine.EventSystems.PointerInputModule.MouseState}},methods:{GetPointerData:function(e,t,n){var i;return!(this.m_PointerData.tryGetValue(e,t)||!n||(t.v=((i=new UnityEngine.EventSystems.PointerEventData(this.eventSystem)).pointerId=e,i),this.m_PointerData.add(e,t.v),0))},RemovePointerData:function(e){this.m_PointerData.remove(e.pointerId)},GetTouchPointerEventData:function(e,t,n){var i={},r=this.GetPointerData(e.fingerId,i,!0);if(i.v.Reset(),t.v=r||e.phase===UnityEngine.TouchPhase.Began,n.v=e.phase===UnityEngine.TouchPhase.Canceled||e.phase===UnityEngine.TouchPhase.Ended,r&&(i.v.position=e.position.$clone()),t.v?i.v.delta=pc.Vec2.ZERO.clone():i.v.delta=e.position.$clone().sub(i.v.position),i.v.position=e.position.$clone(),i.v.button=UnityEngine.EventSystems.PointerEventData.InputButton.Left,e.phase===UnityEngine.TouchPhase.Canceled)i.v.pointerCurrentRaycast=new UnityEngine.EventSystems.RaycastResult;else{this.eventSystem.RaycastAll(i.v,this.m_RaycastResultCache);var s=UnityEngine.EventSystems.BaseInputModule.FindFirstRaycast(this.m_RaycastResultCache);i.v.pointerCurrentRaycast=s.$clone(),this.m_RaycastResultCache.clear()}return i.v},CopyFromTo:function(e,t){t.position.copy(e.position),t.delta.copy(e.delta),t.scrollDelta.copy(e.scrollDelta),t.pointerCurrentRaycast=e.pointerCurrentRaycast.$clone(),t.pointerEnter=e.pointerEnter},StateForMouseButton:function(e){var t=this.input.GetMouseButtonDown(e),n=this.input.GetMouseButtonUp(e);return t&&n?UnityEngine.EventSystems.PointerEventData.FramePressState.PressedAndReleased:t?UnityEngine.EventSystems.PointerEventData.FramePressState.Pressed:n?UnityEngine.EventSystems.PointerEventData.FramePressState.Released:UnityEngine.EventSystems.PointerEventData.FramePressState.NotChanged},GetMousePointerEventData:function(){return this.GetMousePointerEventData$1(0)},GetMousePointerEventData$1:function(e){var t,n={},i=this.GetPointerData(UnityEngine.EventSystems.PointerInputModule.kMouseLeftId,n,!0);n.v.Reset(),i&&(n.v.position=UnityEngine.Vector2.FromVector3(this.input.mousePosition.$clone()));var r=this.input.mousePosition.$clone();UnityEngine.Cursor.lockState===UnityEngine.CursorLockMode.Locked?(n.v.position=new pc.Vec2(-1,-1),n.v.delta=pc.Vec2.ZERO.clone()):(n.v.delta=UnityEngine.Vector2.FromVector3((t=n.v.position,r.$clone().subScalars(t.x,t.y,0))),n.v.position=UnityEngine.Vector2.FromVector3(r.$clone())),n.v.scrollDelta=this.input.mouseScrollDelta.$clone(),n.v.button=UnityEngine.EventSystems.PointerEventData.InputButton.Left,this.eventSystem.RaycastAll(n.v,this.m_RaycastResultCache);var s=UnityEngine.EventSystems.BaseInputModule.FindFirstRaycast(this.m_RaycastResultCache);n.v.pointerCurrentRaycast=s.$clone(),this.m_RaycastResultCache.clear();var a={};this.GetPointerData(UnityEngine.EventSystems.PointerInputModule.kMouseRightId,a,!0),this.CopyFromTo(n.v,a.v),a.v.button=UnityEngine.EventSystems.PointerEventData.InputButton.Right;var o={};return this.GetPointerData(UnityEngine.EventSystems.PointerInputModule.kMouseMiddleId,o,!0),this.CopyFromTo(n.v,o.v),o.v.button=UnityEngine.EventSystems.PointerEventData.InputButton.Middle,this.m_MouseState.SetButtonState(UnityEngine.EventSystems.PointerEventData.InputButton.Left,this.StateForMouseButton(0),n.v),this.m_MouseState.SetButtonState(UnityEngine.EventSystems.PointerEventData.InputButton.Right,this.StateForMouseButton(1),a.v),this.m_MouseState.SetButtonState(UnityEngine.EventSystems.PointerEventData.InputButton.Middle,this.StateForMouseButton(2),o.v),this.m_MouseState},GetLastPointerEventData:function(e){var t={};return this.GetPointerData(e,t,!1),t.v},ProcessMove:function(e){var t=UnityEngine.Cursor.lockState===UnityEngine.CursorLockMode.Locked?null:e.pointerCurrentRaycast.gameObject;this.HandlePointerExitAndEnter(e,t)},ProcessDrag:function(e){e.IsPointerMoving()&&UnityEngine.Cursor.lockState!==UnityEngine.CursorLockMode.Locked&&!UnityEngine.GameObject.op_Equality(e.pointerDrag,null)&&(!e.dragging&&UnityEngine.EventSystems.PointerInputModule.ShouldStartDrag(e.pressPosition.$clone(),e.position.$clone(),this.eventSystem.pixelDragThreshold,e.useDragThreshold)&&(UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IBeginDragHandler,e.pointerDrag,e,UnityEngine.EventSystems.ExecuteEvents.beginDragHandler),e.dragging=!0),e.dragging&&(UnityEngine.GameObject.op_Inequality(e.pointerPress,e.pointerDrag)&&(UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IPointerUpHandler,e.pointerPress,e,UnityEngine.EventSystems.ExecuteEvents.pointerUpHandler),e.eligibleForClick=!1,e.pointerPress=null,e.rawPointerPress=null),UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IDragHandler,e.pointerDrag,e,UnityEngine.EventSystems.ExecuteEvents.dragHandler)))},IsPointerOverGameObject:function(e){var t=this.GetLastPointerEventData(e);return null!=t&&UnityEngine.GameObject.op_Inequality(t.pointerEnter,null)},ClearSelection:function(){var e,t=this.GetBaseEventData();e=Bridge.getEnumerator(this.m_PointerData.Values);try{for(;e.moveNext();){var n=e.Current;this.HandlePointerExitAndEnter(n,null)}}finally{Bridge.is(e,System.IDisposable)&&e.System$IDisposable$Dispose()}this.m_PointerData.clear(),this.eventSystem.SetSelectedGameObject$1(null,t)},toString:function(){var e;sb.appendLine(),e=Bridge.getEnumerator(this.m_PointerData);try{for(;e.moveNext();){var t=e.Current;null!=t.value&&(sb.appendLine("<B>Pointer:</b> "+t.key),sb.appendLine(t.value.toString()))}}finally{Bridge.is(e,System.IDisposable)&&e.System$IDisposable$Dispose()}return sb.toString()},DeselectIfSelectionChanged:function(e,t){var n=UnityEngine.EventSystems.ExecuteEvents.GetEventHandler(UnityEngine.EventSystems.ISelectHandler,e);UnityEngine.GameObject.op_Inequality(n,this.eventSystem.currentSelectedGameObject)&&this.eventSystem.SetSelectedGameObject$1(null,t)}},overloads:{"GetMousePointerEventData(int)":"GetMousePointerEventData$1","ToString()":"toString"}}),Bridge.define("UnityEngine.UI.Selectable",{inherits:[UnityEngine.EventSystems.UIBehaviour,UnityEngine.EventSystems.IMoveHandler,UnityEngine.EventSystems.IPointerDownHandler,UnityEngine.EventSystems.IPointerUpHandler,UnityEngine.EventSystems.IPointerEnterHandler,UnityEngine.EventSystems.IPointerExitHandler,UnityEngine.EventSystems.ISelectHandler,UnityEngine.EventSystems.IDeselectHandler],statics:{fields:{selectables:null,selectableCount:0,isDirty:!1},props:{allSelectablesArray:{get:function(){UnityEngine.UI.Selectable.isDirty&&UnityEngine.UI.Selectable.RemoveInvalidSelectables();var e=System.Array.init(UnityEngine.UI.Selectable.selectableCount,null,UnityEngine.UI.Selectable);return System.Array.copy(UnityEngine.UI.Selectable.selectables,0,e,0,UnityEngine.UI.Selectable.selectableCount),e}},allSelectableCount:{get:function(){return UnityEngine.UI.Selectable.selectableCount}},allSelectables:{get:function(){return new(System.Collections.Generic.List$1(UnityEngine.UI.Selectable).$ctor1)(UnityEngine.UI.Selectable.allSelectablesArray)}}},ctors:{init:function(){this.selectables=System.Array.init(10,null,UnityEngine.UI.Selectable),this.selectableCount=0,this.isDirty=!1}},methods:{AllSelectablesNoAlloc:function(e){UnityEngine.UI.Selectable.isDirty&&UnityEngine.UI.Selectable.RemoveInvalidSelectables();var t=e.length<UnityEngine.UI.Selectable.selectableCount?e.length:UnityEngine.UI.Selectable.selectableCount;return System.Array.copy(UnityEngine.UI.Selectable.selectables,0,e,0,t),t},RemoveInvalidSelectables:function(){for(var e=UnityEngine.UI.Selectable.selectableCount-1;e>=0;--e)(UnityEngine.MonoBehaviour.op_Equality(UnityEngine.UI.Selectable.selectables[e],null)||UnityEngine.UI.Selectable.selectables[e]._willRemove)&&(UnityEngine.UI.Selectable.selectables[e]=UnityEngine.UI.Selectable.selectables[--UnityEngine.UI.Selectable.selectableCount]);UnityEngine.UI.Selectable.isDirty=!1},GetPointOnRectEdge:function(e,t){var n,i;return UnityEngine.Component.op_Equality(e,null)?pc.Vec3.ZERO.clone():(pc.Vec2.equals(t,pc.Vec2.ZERO.clone())||(t=t.$clone().scale(1/UnityEngine.Mathf.Max(Math.abs(t.x),Math.abs(t.y)))),t=e.rect.center.$clone().add((n=e.rect.size,i=t.$clone().scale(.5),new pc.Vec2(n.x*i.x,n.y*i.y))),UnityEngine.Vector3.FromVector2(t.$clone()))}}},fields:{m_Navigation:null,m_Transition:0,m_Colors:null,m_SpriteState:null,m_AnimationTriggers:null,m_Interactable:!1,m_TargetGraphic:null,_groupsAllowInteraction:!1,_willRemove:!1,isPointerInside:!1,isPointerDown:!1,hasSelection:!1},props:{navigation:{get:function(){return this.m_Navigation.$clone()},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(UnityEngine.UI.Navigation,Bridge.ref(this,"m_Navigation"),e.$clone())&&this.OnSetProperty()}},transition:{get:function(){return this.m_Transition},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(UnityEngine.UI.Selectable.Transition,Bridge.ref(this,"m_Transition"),e)&&this.OnSetProperty()}},colors:{get:function(){return this.m_Colors.$clone()},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(UnityEngine.UI.ColorBlock,Bridge.ref(this,"m_Colors"),e.$clone())&&this.OnSetProperty()}},spriteState:{get:function(){return this.m_SpriteState.$clone()},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(UnityEngine.UI.SpriteState,Bridge.ref(this,"m_SpriteState"),e.$clone())&&this.OnSetProperty()}},animationTriggers:{get:function(){return this.m_AnimationTriggers},set:function(e){UnityEngine.UI.SetPropertyUtility.SetClass(UnityEngine.UI.AnimationTriggers,Bridge.ref(this,"m_AnimationTriggers"),e)&&this.OnSetProperty()}},targetGraphic:{get:function(){return this.m_TargetGraphic},set:function(e){UnityEngine.UI.SetPropertyUtility.SetClass(UnityEngine.UI.Graphic,Bridge.ref(this,"m_TargetGraphic"),e)&&this.OnSetProperty()}},interactable:{get:function(){return this.IsInteractable()},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(System.Boolean,Bridge.ref(this,"m_Interactable"),e)&&(!this.m_Interactable&&UnityEngine.MonoBehaviour.op_Inequality(UnityEngine.EventSystems.EventSystem.current,null)&&UnityEngine.GameObject.op_Equality(UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject,this.gameObject)&&UnityEngine.EventSystems.EventSystem.current.SetSelectedGameObject(null),this.OnSetProperty())}},image:{get:function(){return Bridge.as(this.m_TargetGraphic,UnityEngine.UI.Image)},set:function(e){this.m_TargetGraphic=e}},animator:{get:function(){return this.GetComponent(UnityEngine.Animator)}},currentSelectionState:{get:function(){return this.IsInteractable()?this.isPointerDown?UnityEngine.UI.Selectable.SelectionState.Pressed:this.hasSelection?UnityEngine.UI.Selectable.SelectionState.Selected:this.isPointerInside?UnityEngine.UI.Selectable.SelectionState.Highlighted:UnityEngine.UI.Selectable.SelectionState.Normal:UnityEngine.UI.Selectable.SelectionState.Disabled}}},alias:["OnMove","UnityEngine$EventSystems$IMoveHandler$OnMove","OnPointerDown","UnityEngine$EventSystems$IPointerDownHandler$OnPointerDown","OnPointerUp","UnityEngine$EventSystems$IPointerUpHandler$OnPointerUp","OnPointerEnter","UnityEngine$EventSystems$IPointerEnterHandler$OnPointerEnter","OnPointerExit","UnityEngine$EventSystems$IPointerExitHandler$OnPointerExit","OnSelect","UnityEngine$EventSystems$ISelectHandler$OnSelect","OnDeselect","UnityEngine$EventSystems$IDeselectHandler$OnDeselect"],ctors:{init:function(){this.m_Navigation=new UnityEngine.UI.Navigation,this.m_Colors=new UnityEngine.UI.ColorBlock,this.m_SpriteState=new UnityEngine.UI.SpriteState,this.m_Navigation=UnityEngine.UI.Navigation.defaultNavigation.$clone(),this.m_Transition=UnityEngine.UI.Selectable.Transition.ColorTint,this.m_Colors=UnityEngine.UI.ColorBlock.defaultColorBlock.$clone(),this.m_AnimationTriggers=new UnityEngine.UI.AnimationTriggers,this.m_Interactable=!0,this._groupsAllowInteraction=!0,this._willRemove=!1},ctor:function(){this.$initialize(),UnityEngine.EventSystems.UIBehaviour.ctor.call(this)},$ctor1:function(e){this.$initialize(),UnityEngine.EventSystems.UIBehaviour.$ctor1.call(this,e)}},methods:{Awake:function(){UnityEngine.MonoBehaviour.op_Equality(this.m_TargetGraphic,null)&&(this.m_TargetGraphic=this.GetComponent(UnityEngine.UI.Graphic)),this._groupsAllowInteraction=UnityEngine.CanvasGroup.ExtractInteractable(this.GetComponentsInParent(UnityEngine.CanvasGroup))},OnCanvasGroupChanged:function(){var e=UnityEngine.CanvasGroup.ExtractInteractable(this.handle.entity.element._canvasGroups);e!==this._groupsAllowInteraction&&(this._groupsAllowInteraction=e,this.OnSetProperty())},IsInteractable:function(){return this._groupsAllowInteraction&&this.m_Interactable},OnDidApplyAnimationProperties:function(){this.OnSetProperty()},OnEnable:function(){if(UnityEngine.EventSystems.UIBehaviour.prototype.OnEnable.call(this),UnityEngine.UI.Selectable.isDirty&&UnityEngine.UI.Selectable.RemoveInvalidSelectables(),this._willRemove=!1,UnityEngine.UI.Selectable.selectableCount===UnityEngine.UI.Selectable.selectables.length){var e=System.Array.init(2*UnityEngine.UI.Selectable.selectables.length,null,UnityEngine.UI.Selectable);System.Array.copy(UnityEngine.UI.Selectable.selectables,0,e,0,UnityEngine.UI.Selectable.selectables.length),UnityEngine.UI.Selectable.selectables=e}UnityEngine.UI.Selectable.selectables[UnityEngine.UI.Selectable.selectableCount++]=this,this.isPointerDown=!1,this.DoStateTransition(this.currentSelectionState,!0)},OnTransformParentChanged:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnTransformParentChanged.call(this),this.OnCanvasGroupChanged()},OnSetProperty:function(){this.DoStateTransition(this.currentSelectionState,!1)},OnDisable:function(){this._willRemove=!0,UnityEngine.UI.Selectable.isDirty=!0,this.InstantClearState(),UnityEngine.EventSystems.UIBehaviour.prototype.OnDisable.call(this)},InstantClearState:function(){var e=this.m_AnimationTriggers.normalTrigger;switch(this.isPointerInside=!1,this.isPointerDown=!1,this.hasSelection=!1,this.m_Transition){case UnityEngine.UI.Selectable.Transition.ColorTint:this.StartColorTween(new pc.Color(1,1,1,1),!0);break;case UnityEngine.UI.Selectable.Transition.SpriteSwap:this.DoSpriteSwap(null);break;case UnityEngine.UI.Selectable.Transition.Animation:this.TriggerAnimation(e)}},DoStateTransition:function(e,t){var n;if(this.gameObject.activeInHierarchy){var i,r,s=new pc.Color.ctor;switch(System.String.contains(UnityEngine.Application.unityVersion,"2018")&&e===UnityEngine.UI.Selectable.SelectionState.Selected&&(e=UnityEngine.UI.Selectable.SelectionState.Highlighted),e){case UnityEngine.UI.Selectable.SelectionState.Normal:s=this.m_Colors.normalColor.$clone(),i=null,r=this.m_AnimationTriggers.normalTrigger;break;case UnityEngine.UI.Selectable.SelectionState.Highlighted:s=this.m_Colors.highlightedColor.$clone(),i=this.m_SpriteState.highlightedSprite,r=this.m_AnimationTriggers.highlightedTrigger;break;case UnityEngine.UI.Selectable.SelectionState.Pressed:s=this.m_Colors.pressedColor.$clone(),i=this.m_SpriteState.pressedSprite,r=this.m_AnimationTriggers.pressedTrigger;break;case UnityEngine.UI.Selectable.SelectionState.Selected:s=this.m_Colors.selectedColor.$clone(),i=this.m_SpriteState.selectedSprite,r=this.m_AnimationTriggers.selectedTrigger;break;case UnityEngine.UI.Selectable.SelectionState.Disabled:s=this.m_Colors.disabledColor.$clone(),i=this.m_SpriteState.disabledSprite,r=this.m_AnimationTriggers.disabledTrigger;break;default:s=new pc.Color(0,0,0,1),i=null,r=""}switch(this.m_Transition){case UnityEngine.UI.Selectable.Transition.ColorTint:this.StartColorTween((n=this.m_Colors.colorMultiplier,new pc.Color(s.r*n,s.g*n,s.b*n,s.a*n)),t);break;case UnityEngine.UI.Selectable.Transition.SpriteSwap:this.DoSpriteSwap(i);break;case UnityEngine.UI.Selectable.Transition.Animation:this.TriggerAnimation(r)}}},FindSelectable:function(e){e=e.clone().normalize().$clone();var t=this.transform.rotation.clone().invert().transformVector(e),n=this.transform.TransformPoint$1(UnityEngine.UI.Selectable.GetPointOnRectEdge(Bridge.as(this.transform,UnityEngine.RectTransform),UnityEngine.Vector2.FromVector3(t.$clone()))),i=-window.Infinity,r=null;UnityEngine.UI.Selectable.isDirty&&UnityEngine.UI.Selectable.RemoveInvalidSelectables();for(var s=0;s<UnityEngine.UI.Selectable.selectableCount;++s){var a=UnityEngine.UI.Selectable.selectables[s];if(!UnityEngine.MonoBehaviour.op_Equality(a,this)&&a.IsInteractable()&&a.navigation.mode!==UnityEngine.UI.Navigation.Mode.None){var o=Bridge.as(a.transform,UnityEngine.RectTransform),l=UnityEngine.Component.op_Inequality(o,null)?UnityEngine.Vector3.FromVector2(o.rect.center):pc.Vec3.ZERO.clone(),c=a.transform.TransformPoint$1(l).sub(n),u=e.dot(c);if(!(u<=0)){var h=u/c.lengthSq();h>i&&(i=h,r=a)}}}return r},Navigate:function(e,t){UnityEngine.MonoBehaviour.op_Inequality(t,null)&&t.IsActive()&&(e.selectedObject=t.gameObject)},FindSelectableOnLeft:function(){return this.m_Navigation.mode===UnityEngine.UI.Navigation.Mode.Explicit?this.m_Navigation.selectOnLeft:0!=(this.m_Navigation.mode&UnityEngine.UI.Navigation.Mode.Horizontal)?this.FindSelectable(this.transform.rotation.transformVector(pc.Vec3.LEFT.clone())):null},FindSelectableOnRight:function(){return this.m_Navigation.mode===UnityEngine.UI.Navigation.Mode.Explicit?this.m_Navigation.selectOnRight:0!=(this.m_Navigation.mode&UnityEngine.UI.Navigation.Mode.Horizontal)?this.FindSelectable(this.transform.rotation.transformVector(pc.Vec3.RIGHT.clone())):null},FindSelectableOnUp:function(){return this.m_Navigation.mode===UnityEngine.UI.Navigation.Mode.Explicit?this.m_Navigation.selectOnUp:0!=(this.m_Navigation.mode&UnityEngine.UI.Navigation.Mode.Vertical)?this.FindSelectable(this.transform.rotation.transformVector(pc.Vec3.UP.clone())):null},FindSelectableOnDown:function(){return this.m_Navigation.mode===UnityEngine.UI.Navigation.Mode.Explicit?this.m_Navigation.selectOnDown:0!=(this.m_Navigation.mode&UnityEngine.UI.Navigation.Mode.Vertical)?this.FindSelectable(this.transform.rotation.transformVector(pc.Vec3.DOWN.clone())):null},OnMove:function(e){switch(e.moveDir){case UnityEngine.EventSystems.MoveDirection.Right:this.Navigate(e,this.FindSelectableOnRight());break;case UnityEngine.EventSystems.MoveDirection.Up:this.Navigate(e,this.FindSelectableOnUp());break;case UnityEngine.EventSystems.MoveDirection.Left:this.Navigate(e,this.FindSelectableOnLeft());break;case UnityEngine.EventSystems.MoveDirection.Down:this.Navigate(e,this.FindSelectableOnDown())}},StartColorTween:function(e,t){UnityEngine.MonoBehaviour.op_Equality(this.m_TargetGraphic,null)||this.m_TargetGraphic.CrossFadeColor(e.$clone(),t?0:this.m_Colors.fadeDuration,!0,!0)},DoSpriteSwap:function(e){UnityEngine.MonoBehaviour.op_Equality(this.image,null)||(this.image.overrideSprite=e)},TriggerAnimation:function(e){this.transition===UnityEngine.UI.Selectable.Transition.Animation&&!UnityEngine.Component.op_Equality(this.animator,null)&&this.animator.isActiveAndEnabled&&this.animator.hasBoundPlayables&&!System.String.isNullOrEmpty(e)&&(this.animator.ResetTrigger(this.m_AnimationTriggers.normalTrigger),this.animator.ResetTrigger(this.m_AnimationTriggers.highlightedTrigger),this.animator.ResetTrigger(this.m_AnimationTriggers.pressedTrigger),this.animator.ResetTrigger(this.m_AnimationTriggers.selectedTrigger),this.animator.ResetTrigger(this.m_AnimationTriggers.disabledTrigger),this.animator.SetTrigger$1(e))},IsHighlighted:function(){return!(!this.IsActive()||!this.IsInteractable())&&this.isPointerInside&&!this.isPointerDown&&!this.hasSelection},IsPressed:function(){return!(!this.IsActive()||!this.IsInteractable())&&this.isPointerDown},EvaluateAndTransitionToSelectionState:function(){this.IsActive()&&this.IsInteractable()&&this.DoStateTransition(this.currentSelectionState,!1)},OnPointerDown:function(e){e.button===UnityEngine.EventSystems.PointerEventData.InputButton.Left&&(this.IsInteractable()&&this.navigation.mode!==UnityEngine.UI.Navigation.Mode.None&&UnityEngine.MonoBehaviour.op_Inequality(UnityEngine.EventSystems.EventSystem.current,null)&&UnityEngine.EventSystems.EventSystem.current.SetSelectedGameObject$1(this.gameObject,e),this.isPointerDown=!0,this.EvaluateAndTransitionToSelectionState())},OnPointerUp:function(e){e.button===UnityEngine.EventSystems.PointerEventData.InputButton.Left&&(this.isPointerDown=!1,this.EvaluateAndTransitionToSelectionState())},OnPointerEnter:function(e){this.isPointerInside=!0,this.EvaluateAndTransitionToSelectionState()},OnPointerExit:function(e){this.isPointerInside=!1,this.EvaluateAndTransitionToSelectionState()},OnSelect:function(e){this.hasSelection=!0,this.EvaluateAndTransitionToSelectionState()},OnDeselect:function(e){this.hasSelection=!1,this.EvaluateAndTransitionToSelectionState()},Select:function(){UnityEngine.MonoBehaviour.op_Equality(UnityEngine.EventSystems.EventSystem.current,null)||UnityEngine.EventSystems.EventSystem.current.alreadySelecting||UnityEngine.EventSystems.EventSystem.current.SetSelectedGameObject(this.gameObject)}}}),Bridge.define("UnityEngine.UI.ContentSizeFitter",{inherits:[UnityEngine.EventSystems.UIBehaviour,UnityEngine.UI.ILayoutSelfController],fields:{m_HorizontalFit:0,m_VerticalFit:0,m_Rect:null,m_Tracker:null},props:{horizontalFit:{get:function(){return this.m_HorizontalFit}},verticalFit:{get:function(){return this.m_VerticalFit}},rectTransform:{get:function(){return UnityEngine.Component.op_Equality(this.m_Rect,null)&&(this.m_Rect=this.GetComponent(UnityEngine.RectTransform)),this.m_Rect}}},alias:["SetLayoutHorizontal","UnityEngine$UI$ILayoutController$SetLayoutHorizontal","SetLayoutVertical","UnityEngine$UI$ILayoutController$SetLayoutVertical"],ctors:{init:function(){this.m_Tracker=new(pc.stubProxy.generateConstructorFor("UnityEngine.DrivenRectTransformTracker")),this.m_HorizontalFit=UnityEngine.UI.ContentSizeFitter.FitMode.Unconstrained,this.m_VerticalFit=UnityEngine.UI.ContentSizeFitter.FitMode.Unconstrained},ctor:function(){this.$initialize(),UnityEngine.EventSystems.UIBehaviour.ctor.call(this)}},methods:{OnEnable:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnEnable.call(this),this.SetDirty()},OnRectTransformDimensionsChange:function(){this.SetDirty()},HandleSelfFittingAlongAxis:function(e){var t=0===e?this.horizontalFit:this.verticalFit;t!==UnityEngine.UI.ContentSizeFitter.FitMode.Unconstrained&&(t===UnityEngine.UI.ContentSizeFitter.FitMode.MinSize?this.rectTransform.SetSizeWithCurrentAnchors(e,UnityEngine.UI.LayoutUtility.GetMinSize(this.m_Rect,e)):this.rectTransform.SetSizeWithCurrentAnchors(e,UnityEngine.UI.LayoutUtility.GetPreferredSize(this.m_Rect,e)))},SetLayoutHorizontal:function(){this.HandleSelfFittingAlongAxis(0)},SetLayoutVertical:function(){this.HandleSelfFittingAlongAxis(1)},SetDirty:function(){this.IsActive()&&UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(this.rectTransform)}}}),Bridge.define("UnityEngine.UI.GraphicRaycaster",{inherits:[UnityEngine.EventSystems.BaseRaycaster],statics:{fields:{kNoEventMaskSet:0,sortedGraphics:null},ctors:{init:function(){this.kNoEventMaskSet=-1,this.sortedGraphics=new(System.Collections.Generic.List$1(UnityEngine.UI.Graphic).ctor)}},methods:{Raycast:function(e,t,n,i,r){var s=null!==t,a=UnityEngine.UI.GraphicRaycaster.sortedGraphics,o=s?t.farClipPlane:0;const l=UnityEngine.RectTransformUtility.PointInRectangle;for(var c of i){var u=c.entity,h=c.canvasRenderer;if(!u._enabledInHierarchy||!c.raycastTarget||h.absoluteDepth<0||h.cull)continue;if(u.getLossyScale().lengthSq()<1e-7)continue;if(!l(n,u,t))continue;const e=u.getPosition();s&&t.WorldToScreenPoint(e).z>o||c.Raycast(n,t)&&a.add(c)}a.Sort$2((function(e,t){return t.depth-e.depth})),r.AddRange(a),a.clear()}}},fields:{_blockingObjects:0,_ignoreReversedGraphics:!1,m_BlockingMask:null,_raycastResults:null,_canvas:null,cachedMainCamera:null},props:{canvas:{get:function(){return UnityEngine.Component.op_Inequality(this._canvas,null)||(this._canvas=this.GetComponent(UnityEngine.Canvas)),this._canvas}},ignoreReversedGraphics:{get:function(){return this._ignoreReversedGraphics}},blockingObjects:{get:function(){return this._blockingObjects}},eventCamera:{get:function(){return 0===this.canvas.renderMode||1===this.canvas.renderMode&&UnityEngine.Component.op_Equality(this.canvas.worldCamera,null)?null:UnityEngine.Component.op_Inequality(this.canvas.worldCamera,null)?this.canvas.worldCamera:this.GetMainCamera()}}},ctors:{init:function(){this.m_BlockingMask=new UnityEngine.LayerMask,this._blockingObjects=UnityEngine.UI.GraphicRaycaster.BlockingObjects.None,this._ignoreReversedGraphics=!0,this.m_BlockingMask=UnityEngine.LayerMask.op_Implicit$1(-1),this._raycastResults=new(System.Collections.Generic.List$1(UnityEngine.UI.Graphic).ctor)},ctor:function(){this.$initialize(),UnityEngine.EventSystems.BaseRaycaster.ctor.call(this)}},methods:{Raycast:function(e,t){var n,i=this.canvas;if(!UnityEngine.Component.op_Equality(i,null)){var r=UnityEngine.UI.GraphicRegistry.GetGraphicsForCanvasInternal(i);if(null!=r&&0!==r.size){var s,a=this.eventCamera;s=0===i.renderMode||UnityEngine.Component.op_Equality(a,null)?i.targetDisplay:a.targetDisplay;var o=UnityEngine.Display.RelativeMouseAt(UnityEngine.Vector3.FromVector2(e.position.$clone()));if(pc.Vec3.equals(o,pc.Vec3.ZERO.clone()))o=UnityEngine.Vector3.FromVector2(e.position.$clone());else if(o.z!==s)return;var l=new pc.Vec2.ctor;if(UnityEngine.Component.op_Equality(a,null)){var c=UnityEngine.Screen.width,u=UnityEngine.Screen.height;s>0&&s<UnityEngine.Display.displays.length&&(c=UnityEngine.Display.displays[s].systemWidth,u=UnityEngine.Display.displays[s].systemHeight),l.set(o.x/c,o.y/u)}else l=UnityEngine.Vector2.FromVector3(a.ScreenToViewportPoint(o.$clone()));if(!(l.x<0||l.x>1||l.y<0||l.y>1)){var h=340282347e30,d=new UnityEngine.Ray.ctor;if(UnityEngine.Component.op_Inequality(a,null)&&(d=a.ScreenPointToRay(o.$clone())),0!==i.renderMode&&0!==this.blockingObjects){if(UnityEngine.Component.op_Inequality(a,null)){var m=d.direction.z;UnityEngine.Mathf.Approximately(0,m)?window.Infinity:(a.farClipPlane,a.nearClipPlane)}this.blockingObjects!==UnityEngine.UI.GraphicRaycaster.BlockingObjects.ThreeD&&this.blockingObjects!==UnityEngine.UI.GraphicRaycaster.BlockingObjects.All||Bridge.staticEquals(UnityEngine.UI.ReflectionMethodsCache.Singleton.raycast3D,null)||hits.length>0&&(h=hits[0].distance),this.blockingObjects!==UnityEngine.UI.GraphicRaycaster.BlockingObjects.TwoD&&this.blockingObjects!==UnityEngine.UI.GraphicRaycaster.BlockingObjects.All||Bridge.staticEquals(UnityEngine.UI.ReflectionMethodsCache.Singleton.raycast2D,null)||hits1.length>0&&(h=hits1[0].distance)}this._raycastResults.clear(),UnityEngine.UI.GraphicRaycaster.Raycast(i,a,UnityEngine.Vector2.FromVector3(o),r,this._raycastResults);for(var g=this._raycastResults.Count,$=0;$<g;$++){var p=this._raycastResults.getItem($).gameObject,y=!0;if(this.ignoreReversedGraphics)if(UnityEngine.Component.op_Equality(a,null)){var f=p.transform.rotation.transformVector(new pc.Vec3(0,0,1));y=new pc.Vec3(0,0,1).dot(f)>0}else{var _=a.transform.rotation.transformVector(new pc.Vec3(0,0,1)),S=p.transform.rotation.transformVector(new pc.Vec3(0,0,1));y=_.dot(S)>0}if(y){var b=0,C=p.transform,E=C.forward.$clone();if(UnityEngine.Component.op_Equality(a,null)||0===i.renderMode)b=0;else if((b=E.dot(C.position.$clone().sub(d.m_Origin))/E.dot(d.m_Direction))<0)continue;if(b>=h)continue;var T=((n=new UnityEngine.EventSystems.RaycastResult).gameObject=p,n.module=this,n.distance=b,n.screenPosition=UnityEngine.Vector2.FromVector3(o.$clone()),n.index=t.Count,n.depth=this._raycastResults.getItem($).depth,n.sortingLayer=i.sortingLayerID,n.sortingOrder=i.sortingOrder,n.worldPosition=d.origin.$clone().add(d.direction.$clone().clone().scale(b)),n.worldNormal=E.$clone().scale(-1),n);t.add(T.$clone())}}}}}}}}),Bridge.define("UnityEngine.UI.LayoutGroup",{inherits:[UnityEngine.EventSystems.UIBehaviour,UnityEngine.UI.ILayoutElement,UnityEngine.UI.ILayoutGroup],fields:{m_Tracker:null,m_TotalMinSize:null,m_TotalPreferredSize:null,m_TotalFlexibleSize:null,m_Rect:null,m_ChildAlignment:0,m_Padding:null,m_RectChildren:null},props:{padding:{get:function(){return this.m_Padding}},minWidth:{get:function(){return this.GetTotalMinSize(0)}},preferredWidth:{get:function(){return this.GetTotalPreferredSize(0)}},rectTransform:{get:function(){return Bridge.referenceEquals(Bridge.cast(this.m_Rect,UnityEngine.Object),null)&&(this.m_Rect=this.GetComponent(UnityEngine.RectTransform)),this.m_Rect}},isRootLayoutGroup:{get:function(){var e=this.transform.parent;if(UnityEngine.Component.op_Equality(e,null))return!0;var t=e.handle;return 0===t._layoutControllers.length&&0===t._layoutSelfControllers.length}}},alias:["minWidth","UnityEngine$UI$ILayoutElement$minWidth","preferredWidth","UnityEngine$UI$ILayoutElement$preferredWidth","flexibleWidth","UnityEngine$UI$ILayoutElement$flexibleWidth","minHeight","UnityEngine$UI$ILayoutElement$minHeight","preferredHeight","UnityEngine$UI$ILayoutElement$preferredHeight","flexibleHeight","UnityEngine$UI$ILayoutElement$flexibleHeight","layoutPriority","UnityEngine$UI$ILayoutElement$layoutPriority","CalculateLayoutInputHorizontal","UnityEngine$UI$ILayoutElement$CalculateLayoutInputHorizontal"],ctors:{init:function(){this.m_Tracker=new(pc.stubProxy.generateConstructorFor("UnityEngine.DrivenRectTransformTracker")),this.m_TotalMinSize=new UnityEngine.Vector2,this.m_TotalPreferredSize=new UnityEngine.Vector2,this.m_TotalFlexibleSize=new UnityEngine.Vector2,this.m_TotalMinSize=pc.Vec2.ZERO.clone(),this.m_TotalPreferredSize=pc.Vec2.ZERO.clone(),this.m_TotalFlexibleSize=pc.Vec2.ZERO.clone(),this.m_ChildAlignment=UnityEngine.TextAnchor.UpperLeft,this.m_Padding=new UnityEngine.RectOffset.ctor,this.m_RectChildren=System.Array.init([],UnityEngine.RectTransform)}},methods:{OnEnable:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnEnable.call(this),this.SetDirty()},CalculateLayoutInputHorizontal:function(){this.m_RectChildren.length=0;for(var e=this.handle.entity.children,t=0;t<e.length;t++){var n=e[t];if(null!=n.element&&n.enabled){var i=n._layoutElements;if(0!==i.length){for(var r=!1,s=0;s<i.length&&!(r=i[s].getignoreLayout&&i[s].getignoreLayout());s++);r||this.m_RectChildren.push(UnityEngine.Object.FromHandle(UnityEngine.RectTransform,n))}else this.m_RectChildren.push(UnityEngine.Object.FromHandle(UnityEngine.RectTransform,n))}}},SetChildAlongAxis:function(e,t,n){UnityEngine.Component.op_Equality(e,null)||e.SetInsetAndSizeFromParentEdge(0===t?UnityEngine.RectTransform.Edge.Left:UnityEngine.RectTransform.Edge.Top,n,e.sizeDelta.getitem(t))},SetLayoutInputForAxis:function(e,t,n,i){this.m_TotalMinSize.setitem(i,e),this.m_TotalPreferredSize.setitem(i,t),this.m_TotalFlexibleSize.setitem(i,n)},GetStartOffset:function(e,t){var n=t+(0===e?this.padding.horizontal:this.padding.vertical),i=this.rectTransform.rect.size.getitem(e)-n,r=this.GetAlignmentOnAxis(e);return(0===e?this.padding.left:this.padding.top)+i*r},GetAlignmentOnAxis:function(e){return 0===e?this.m_ChildAlignment%3*.5:.5*Math.floor(this.m_ChildAlignment/3)},GetTotalMinSize:function(e){return this.m_TotalMinSize.getitem(e)},GetTotalPreferredSize:function(e){return this.m_TotalPreferredSize.getitem(e)},GetTotalFlexibleSize:function(e){return this.m_TotalFlexibleSize.getitem(e)},OnRectTransformDimensionsChange:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnRectTransformDimensionsChange.call(this),this.isRootLayoutGroup&&this.SetDirty()},SetDirty:function(){this.IsActive()&&(UnityEngine.UI.CanvasUpdateRegistry.IsRebuildingLayout()?this.StartCoroutine$1(this.DelayedSetDirty(this.rectTransform)):(this.m_RectChildren.length=0,UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(this.rectTransform)))},DelayedSetDirty:function(e){var t=0,n=new Bridge.GeneratorEnumerator(Bridge.fn.bind(this,(function(){try{for(;;)switch(t){case 0:return n.current=null,t=1,!0;case 1:UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(e);default:return!1}}catch(e){throw System.Exception.create(e)}})));return n}},overloads:{"SetChildAlongAxis(RectTransform, int, float, float)":"SetChildAlongAxis$1"}}),Bridge.define("UnityEngine.UI.MaskableGraphic",{inherits:[UnityEngine.UI.Graphic,UnityEngine.UI.IClippable,UnityEngine.UI.IMaskable,UnityEngine.UI.IMaterialModifier],fields:{m_ShouldRecalculateStencil:!1,m_MaskMaterial:null,m_ParentMask:null,m_Maskable:!1,m_IncludeForMasking:!1,m_OnCullStateChanged:null,m_ShouldRecalculate:!1,m_StencilValue:0,m_Corners:null},props:{maskable:{get:function(){return this.m_Maskable}}},alias:["GetModifiedMaterial","UnityEngine$UI$IMaterialModifier$GetModifiedMaterial","RecalculateMasking","UnityEngine$UI$IMaskable$RecalculateMasking","gameObject","UnityEngine$UI$IClippable$gameObject","rectTransform","UnityEngine$UI$IClippable$rectTransform"],ctors:{init:function(){this.m_ShouldRecalculateStencil=!0,this.m_Maskable=!0,this.m_IncludeForMasking=!1,this.m_OnCullStateChanged=new UnityEngine.UI.MaskableGraphic.CullStateChangedEvent,this.m_ShouldRecalculate=!0,this.m_Corners=System.Array.init(4,(function(){return new UnityEngine.Vector3}),UnityEngine.Vector3)},$ctor1:function(e){this.$initialize(),UnityEngine.UI.Graphic.$ctor1.call(this,e)}},methods:{GetModifiedMaterial:function(e){var t=e;if(this.m_ShouldRecalculateStencil){var n=UnityEngine.UI.MaskUtilities.FindRootSortOverrideCanvas(this.transform);this.m_StencilValue=this.maskable?UnityEngine.UI.MaskUtilities.GetStencilDepth(this.transform,n):0,this.m_ShouldRecalculateStencil=!1}var i=this.GetComponent(UnityEngine.UI.Mask);if(this.m_StencilValue>0&&(UnityEngine.MonoBehaviour.op_Equality(i,null)||!i.IsActive())){var r=UnityEngine.UI.StencilMaterial.Add$2(t,(1<<this.m_StencilValue)-1,UnityEngine.Rendering.StencilOp.Keep,UnityEngine.Rendering.CompareFunction.Equal,UnityEngine.Rendering.ColorWriteMask.All,(1<<this.m_StencilValue)-1,0);UnityEngine.UI.StencilMaterial.Remove(this.m_MaskMaterial),this.m_MaskMaterial=r,t=this.m_MaskMaterial}return t},OnEnable:function(){UnityEngine.UI.Graphic.prototype.OnEnable.call(this),this.m_ShouldRecalculateStencil=!0,this.UpdateClipParent(),this.SetMaterialDirty(),UnityEngine.MonoBehaviour.op_Inequality(this.GetComponent(UnityEngine.UI.Mask),null)&&UnityEngine.UI.MaskUtilities.NotifyStencilStateChanged(this)},OnDisable:function(){UnityEngine.UI.Graphic.prototype.OnDisable.call(this),this.m_ShouldRecalculateStencil=!0,this.SetMaterialDirty(),this.UpdateClipParent(),UnityEngine.UI.StencilMaterial.Remove(this.m_MaskMaterial),this.m_MaskMaterial=null,UnityEngine.MonoBehaviour.op_Inequality(this.GetComponent(UnityEngine.UI.Mask),null)&&UnityEngine.UI.MaskUtilities.NotifyStencilStateChanged(this)},OnTransformParentChanged:function(){UnityEngine.UI.Graphic.prototype.OnTransformParentChanged.call(this),this.isActiveAndEnabled&&(this.m_ShouldRecalculateStencil=!0,this.UpdateClipParent(),this.SetMaterialDirty())},OnCanvasHierarchyChanged:function(){UnityEngine.UI.Graphic.prototype.OnCanvasHierarchyChanged.call(this),this.isActiveAndEnabled&&(this.m_ShouldRecalculateStencil=!0,this.UpdateClipParent(),this.SetMaterialDirty())},UpdateClipParent:function(){var e=this.maskable&&this.IsActive()?UnityEngine.UI.MaskUtilities.GetRectMaskForClippable(this):null;!UnityEngine.MonoBehaviour.op_Inequality(this.m_ParentMask,null)||!UnityEngine.MonoBehaviour.op_Inequality(e,this.m_ParentMask)&&e.IsActive()||(this.m_ParentMask.RemoveClippable(this),this.UpdateCull(!1)),UnityEngine.MonoBehaviour.op_Inequality(e,null)&&e.IsActive()&&e.AddClippable(this),this.m_ParentMask=e},RecalculateMasking:function(){UnityEngine.UI.StencilMaterial.Remove(this.m_MaskMaterial),this.m_MaskMaterial=null,this.m_ShouldRecalculateStencil=!0,this.SetMaterialDirty()}}}),Bridge.define("UnityEngine.UI.ScrollRect",{inherits:[UnityEngine.EventSystems.UIBehaviour,UnityEngine.EventSystems.IInitializePotentialDragHandler,UnityEngine.EventSystems.IBeginDragHandler,UnityEngine.EventSystems.IEndDragHandler,UnityEngine.EventSystems.IDragHandler,UnityEngine.EventSystems.IScrollHandler,UnityEngine.UI.ICanvasElement,UnityEngine.UI.ILayoutElement,UnityEngine.UI.ILayoutGroup],statics:{methods:{RubberDelta:function(e,t){return(1-1/(.55*Math.abs(e)/t+1))*t*(0===e?1:Math.sign(e))},UpdateOneScrollbarVisibility:function(e,t,n,i){UnityEngine.Object.op_Implicit(i)&&(n===UnityEngine.UI.ScrollRect.ScrollbarVisibility.Permanent?i.gameObject.activeSelf!==t&&i.gameObject.SetActive(t):i.gameObject.activeSelf!==e&&i.gameObject.SetActive(e))},AdjustBounds:function(e,t,n,i){var r=e.halfExtents.$clone().scale(2).$clone().sub(n.v);r.x>0&&(i.v.x-=r.x*(t.x-.5),n.v.x=e.halfExtents.$clone().scale(2).x),r.y>0&&(i.v.y-=r.y*(t.y-.5),n.v.y=e.halfExtents.$clone().scale(2).y)},InternalGetBounds:function(e,t,n){for(var i=new pc.Vec3(340282347e30,340282347e30,340282347e30),r=new pc.Vec3(-340282347e30,-340282347e30,-340282347e30),s=0;s<4;s++){var a=t.v.transformPoint(e[s]);i=new pc.Vec3(Math.min(a.x,i.x),Math.min(a.y,i.y),Math.min(a.z,i.z)),r=new pc.Vec3(Math.max(a.x,r.x),Math.max(a.y,r.y),Math.max(a.z,r.z))}return n.center=i.$clone(),n.halfExtents=pc.Vec3.ZERO.clone().$clone().scale(.5),n.expandToPoint(r.$clone()),n},InternalCalculateOffset:function(e,t,n,i,r,s){var a=pc.Vec2.ZERO.clone();if(r===UnityEngine.UI.ScrollRect.MovementType.Unrestricted)return a;var o=t.v.min,l=t.v.max;if(n){o.x+=s.v.x,l.x+=s.v.x;var c=e.v.max.x-l.x,u=e.v.min.x-o.x;u<-.001?a.x=u:c>.001&&(a.x=c)}if(i){o.y+=s.v.y,l.y+=s.v.y;var h=e.v.max.y-l.y,d=e.v.min.y-o.y;h>.001?a.y=h:d<-.001&&(a.y=d)}return a}}},fields:{m_Content:null,m_Horizontal:!1,m_Vertical:!1,m_MovementType:0,m_Elasticity:0,m_Inertia:!1,m_DecelerationRate:0,m_ScrollSensitivity:0,m_Viewport:null,m_HorizontalScrollbar:null,m_VerticalScrollbar:null,m_HorizontalScrollbarVisibility:0,m_VerticalScrollbarVisibility:0,m_HorizontalScrollbarSpacing:0,m_VerticalScrollbarSpacing:0,m_OnValueChanged:null,_pointerStartLocalCursor:null,m_ContentStartPosition:null,_viewRect:null,m_ContentBounds:null,_viewBounds:null,_velocity:null,_dragging:!1,_scrolling:!1,_prevPosition:null,_prevContentBounds:null,_prevViewBounds:null,_hasRebuiltLayout:!1,_hSliderExpand:!1,_vSliderExpand:!1,_hSliderHeight:0,_vSliderWidth:0,_rect:null,_horizontalScrollbarRect:null,_verticalScrollbarRect:null,_tracker:null,m_Corners:null},props:{content:{get:function(){return this.m_Content},set:function(e){this.m_Content=e}},horizontal:{get:function(){return this.m_Horizontal},set:function(e){this.m_Horizontal=e}},vertical:{get:function(){return this.m_Vertical},set:function(e){this.m_Vertical=e}},movementType:{get:function(){return this.m_MovementType},set:function(e){this.m_MovementType=e}},elasticity:{get:function(){return this.m_Elasticity},set:function(e){this.m_Elasticity=e}},inertia:{get:function(){return this.m_Inertia},set:function(e){this.m_Inertia=e}},decelerationRate:{get:function(){return this.m_DecelerationRate},set:function(e){this.m_DecelerationRate=e}},scrollSensitivity:{get:function(){return this.m_ScrollSensitivity},set:function(e){this.m_ScrollSensitivity=e}},viewport:{get:function(){return this.m_Viewport},set:function(e){this.m_Viewport=e,this.SetDirtyCaching()}},horizontalScrollbar:{get:function(){return this.m_HorizontalScrollbar},set:function(e){UnityEngine.Object.op_Implicit(this.m_HorizontalScrollbar)&&this.m_HorizontalScrollbar.onValueChanged.RemoveListener(Bridge.fn.cacheBind(this,this.SetHorizontalNormalizedPosition)),this.m_HorizontalScrollbar=e,UnityEngine.Object.op_Implicit(this.m_HorizontalScrollbar)&&this.m_HorizontalScrollbar.onValueChanged.AddListener(Bridge.fn.cacheBind(this,this.SetHorizontalNormalizedPosition)),this.SetDirtyCaching()}},verticalScrollbar:{get:function(){return this.m_VerticalScrollbar},set:function(e){UnityEngine.Object.op_Implicit(this.m_VerticalScrollbar)&&this.m_VerticalScrollbar.onValueChanged.RemoveListener(Bridge.fn.cacheBind(this,this.SetVerticalNormalizedPosition)),this.m_VerticalScrollbar=e,UnityEngine.Object.op_Implicit(this.m_VerticalScrollbar)&&this.m_VerticalScrollbar.onValueChanged.AddListener(Bridge.fn.cacheBind(this,this.SetVerticalNormalizedPosition)),this.SetDirtyCaching()}},horizontalScrollbarVisibility:{get:function(){return this.m_HorizontalScrollbarVisibility},set:function(e){this.m_HorizontalScrollbarVisibility=e,this.SetDirtyCaching()}},verticalScrollbarVisibility:{get:function(){return this.m_VerticalScrollbarVisibility},set:function(e){this.m_VerticalScrollbarVisibility=e,this.SetDirtyCaching()}},horizontalScrollbarSpacing:{get:function(){return this.m_HorizontalScrollbarSpacing},set:function(e){this.m_HorizontalScrollbarSpacing=e,this.SetDirty()}},verticalScrollbarSpacing:{get:function(){return this.m_VerticalScrollbarSpacing},set:function(e){this.m_VerticalScrollbarSpacing=e,this.SetDirty()}},onValueChanged:{get:function(){return this.m_OnValueChanged},set:function(e){this.m_OnValueChanged=e}},viewRect:{get:function(){return UnityEngine.Component.op_Equality(this._viewRect,null)&&(this._viewRect=this.m_Viewport),UnityEngine.Component.op_Equality(this._viewRect,null)&&(this._viewRect=Bridge.cast(this.transform,UnityEngine.RectTransform)),this._viewRect}},velocity:{get:function(){return this._velocity.$clone()},set:function(e){this._velocity=e.$clone()}},rectTransform:{get:function(){return UnityEngine.Component.op_Equality(this._rect,null)&&(this._rect=this.GetComponent(UnityEngine.RectTransform)),this._rect}},normalizedPosition:{get:function(){return new pc.Vec2(this.horizontalNormalizedPosition,this.verticalNormalizedPosition)},set:function(e){this.SetNormalizedPosition(e.x,0),this.SetNormalizedPosition(e.y,1)}},horizontalNormalizedPosition:{get:function(){return this.UpdateBounds(),this.m_ContentBounds.halfExtents.$clone().scale(2).x<=this._viewBounds.halfExtents.$clone().scale(2).x||UnityEngine.Mathf.Approximately(this.m_ContentBounds.halfExtents.$clone().scale(2).x,this._viewBounds.halfExtents.$clone().scale(2).x)?this._viewBounds.min.x>this.m_ContentBounds.min.x?1:0:(this._viewBounds.min.x-this.m_ContentBounds.min.x)/(this.m_ContentBounds.halfExtents.$clone().scale(2).x-this._viewBounds.halfExtents.$clone().scale(2).x)},set:function(e){this.SetNormalizedPosition(e,0)}},verticalNormalizedPosition:{get:function(){return this.UpdateBounds(),this.m_ContentBounds.halfExtents.$clone().scale(2).y<=this._viewBounds.halfExtents.$clone().scale(2).y||UnityEngine.Mathf.Approximately(this.m_ContentBounds.halfExtents.$clone().scale(2).y,this._viewBounds.halfExtents.$clone().scale(2).y)?this._viewBounds.min.y>this.m_ContentBounds.min.y?1:0:(this._viewBounds.min.y-this.m_ContentBounds.min.y)/(this.m_ContentBounds.halfExtents.$clone().scale(2).y-this._viewBounds.halfExtents.$clone().scale(2).y)},set:function(e){this.SetNormalizedPosition(e,1)}},hScrollingNeeded:{get:function(){return!UnityEngine.Application.isPlaying||this.m_ContentBounds.halfExtents.$clone().scale(2).x>this._viewBounds.halfExtents.$clone().scale(2).x+.01}},vScrollingNeeded:{get:function(){return!UnityEngine.Application.isPlaying||this.m_ContentBounds.halfExtents.$clone().scale(2).y>this._viewBounds.halfExtents.$clone().scale(2).y+.01}},minWidth:{get:function(){return-1}},preferredWidth:{get:function(){return-1}},flexibleWidth:{get:function(){return-1}},minHeight:{get:function(){return-1}},preferredHeight:{get:function(){return-1}},flexibleHeight:{get:function(){return-1}},layoutPriority:{get:function(){return-1}}},alias:["Rebuild","UnityEngine$UI$ICanvasElement$Rebuild","LayoutComplete","UnityEngine$UI$ICanvasElement$LayoutComplete","GraphicUpdateComplete","UnityEngine$UI$ICanvasElement$GraphicUpdateComplete","OnScroll","UnityEngine$EventSystems$IScrollHandler$OnScroll","OnInitializePotentialDrag","UnityEngine$EventSystems$IInitializePotentialDragHandler$OnInitializePotentialDrag","OnBeginDrag","UnityEngine$EventSystems$IBeginDragHandler$OnBeginDrag","OnEndDrag","UnityEngine$EventSystems$IEndDragHandler$OnEndDrag","OnDrag","UnityEngine$EventSystems$IDragHandler$OnDrag","CalculateLayoutInputHorizontal","UnityEngine$UI$ILayoutElement$CalculateLayoutInputHorizontal","CalculateLayoutInputVertical","UnityEngine$UI$ILayoutElement$CalculateLayoutInputVertical","minWidth","UnityEngine$UI$ILayoutElement$minWidth","preferredWidth","UnityEngine$UI$ILayoutElement$preferredWidth","flexibleWidth","UnityEngine$UI$ILayoutElement$flexibleWidth","minHeight","UnityEngine$UI$ILayoutElement$minHeight","preferredHeight","UnityEngine$UI$ILayoutElement$preferredHeight","flexibleHeight","UnityEngine$UI$ILayoutElement$flexibleHeight","layoutPriority","UnityEngine$UI$ILayoutElement$layoutPriority","SetLayoutHorizontal","UnityEngine$UI$ILayoutController$SetLayoutHorizontal","SetLayoutVertical","UnityEngine$UI$ILayoutController$SetLayoutVertical","IsDestroyed","UnityEngine$UI$ICanvasElement$IsDestroyed","transform","UnityEngine$UI$ICanvasElement$transform"],ctors:{init:function(){this._pointerStartLocalCursor=new UnityEngine.Vector2,this.m_ContentStartPosition=new UnityEngine.Vector2,this.m_ContentBounds=new UnityEngine.Bounds,this._viewBounds=new UnityEngine.Bounds,this._velocity=new UnityEngine.Vector2,this._prevPosition=new UnityEngine.Vector2,this._prevContentBounds=new UnityEngine.Bounds,this._prevViewBounds=new UnityEngine.Bounds,this._tracker=new(pc.stubProxy.generateConstructorFor("UnityEngine.DrivenRectTransformTracker")),this.m_Horizontal=!0,this.m_Vertical=!0,this.m_MovementType=UnityEngine.UI.ScrollRect.MovementType.Elastic,this.m_Elasticity=.1,this.m_Inertia=!0,this.m_DecelerationRate=.135,this.m_ScrollSensitivity=1,this.m_OnValueChanged=new UnityEngine.UI.ScrollRect.ScrollRectEvent,this._pointerStartLocalCursor=pc.Vec2.ZERO.clone(),this.m_ContentStartPosition=pc.Vec2.ZERO.clone(),this._prevPosition=pc.Vec2.ZERO.clone(),this._hasRebuiltLayout=!1,this.m_Corners=System.Array.init(4,(function(){return new UnityEngine.Vector3}),UnityEngine.Vector3)},ctor:function(){this.$initialize(),UnityEngine.EventSystems.UIBehaviour.ctor.call(this)}},methods:{Rebuild:function(e){e===UnityEngine.UI.CanvasUpdate.Prelayout&&this.UpdateCachedData(),e===UnityEngine.UI.CanvasUpdate.PostLayout&&(this.UpdateBounds(),this.UpdateScrollbars(pc.Vec2.ZERO.clone()),this.UpdatePrevData(),this._hasRebuiltLayout=!0)},LayoutComplete:function(){},GraphicUpdateComplete:function(){},UpdateCachedData:function(){var e=this.transform;this._horizontalScrollbarRect=UnityEngine.MonoBehaviour.op_Equality(this.m_HorizontalScrollbar,null)?null:Bridge.as(this.m_HorizontalScrollbar.transform,UnityEngine.RectTransform),this._verticalScrollbarRect=UnityEngine.MonoBehaviour.op_Equality(this.m_VerticalScrollbar,null)?null:Bridge.as(this.m_VerticalScrollbar.transform,UnityEngine.RectTransform);var t=UnityEngine.Component.op_Equality(this.viewRect.parent,e),n=!UnityEngine.Object.op_Implicit(this._horizontalScrollbarRect)||UnityEngine.Component.op_Equality(this._horizontalScrollbarRect.parent,e),i=!UnityEngine.Object.op_Implicit(this._verticalScrollbarRect)||UnityEngine.Component.op_Equality(this._verticalScrollbarRect.parent,e),r=t&&n&&i;this._hSliderExpand=r&&UnityEngine.Object.op_Implicit(this._horizontalScrollbarRect)&&this.horizontalScrollbarVisibility===UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport,this._vSliderExpand=r&&UnityEngine.Object.op_Implicit(this._verticalScrollbarRect)&&this.verticalScrollbarVisibility===UnityEngine.UI.ScrollRect.ScrollbarVisibility.AutoHideAndExpandViewport,this._hSliderHeight=UnityEngine.Component.op_Equality(this._horizontalScrollbarRect,null)?0:this._horizontalScrollbarRect.rect.height,this._vSliderWidth=UnityEngine.Component.op_Equality(this._verticalScrollbarRect,null)?0:this._verticalScrollbarRect.rect.width},OnEnable:function(){UnityEngine.EventSystems.UIBehaviour.prototype.OnEnable.call(this),UnityEngine.Object.op_Implicit(this.m_HorizontalScrollbar)&&this.m_HorizontalScrollbar.onValueChanged.AddListener(Bridge.fn.cacheBind(this,this.SetHorizontalNormalizedPosition)),UnityEngine.Object.op_Implicit(this.m_VerticalScrollbar)&&this.m_VerticalScrollbar.onValueChanged.AddListener(Bridge.fn.cacheBind(this,this.SetVerticalNormalizedPosition)),UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForLayoutRebuild(this),this.SetDirty()},OnDisable:function(){UnityEngine.UI.CanvasUpdateRegistry.UnRegisterCanvasElementForRebuild(this),UnityEngine.Object.op_Implicit(this.m_HorizontalScrollbar)&&this.m_HorizontalScrollbar.onValueChanged.RemoveListener(Bridge.fn.cacheBind(this,this.SetHorizontalNormalizedPosition)),UnityEngine.Object.op_Implicit(this.m_VerticalScrollbar)&&this.m_VerticalScrollbar.onValueChanged.RemoveListener(Bridge.fn.cacheBind(this,this.SetVerticalNormalizedPosition)),this._dragging=!1,this._scrolling=!1,this._hasRebuiltLayout=!1,this._tracker.reportMethod("UnityEngine.DrivenRectTransformTracker.Clear",null),this._velocity=pc.Vec2.ZERO.clone(),UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(this.rectTransform),UnityEngine.EventSystems.UIBehaviour.prototype.OnDisable.call(this)},IsActive:function(){return UnityEngine.EventSystems.UIBehaviour.prototype.IsActive.call(this)&&UnityEngine.Component.op_Inequality(this.m_Content,null)},EnsureLayoutHasRebuilt:function(){this._hasRebuiltLayout||UnityEngine.UI.CanvasUpdateRegistry.IsRebuildingLayout()||UnityEngine.Canvas.ForceUpdateCanvases()},StopMovement:function(){this._velocity=pc.Vec2.ZERO.clone()},OnScroll:function(e){if(this.IsActive()){this.EnsureLayoutHasRebuilt(),this.UpdateBounds();var t=e.scrollDelta.$clone();t.y*=-1,this.vertical&&!this.horizontal&&(Math.abs(t.x)>Math.abs(t.y)&&(t.y=t.x),t.x=0),this.horizontal&&!this.vertical&&(Math.abs(t.y)>Math.abs(t.x)&&(t.x=t.y),t.y=0),e.IsScrolling()&&(this._scrolling=!0);var n=this.m_Content.anchoredPosition.$clone();n=n.$clone().add(t.$clone().scale(this.m_ScrollSensitivity)),this.m_MovementType===UnityEngine.UI.ScrollRect.MovementType.Clamped&&(n=n.$clone().add(this.CalculateOffset(n.$clone().sub(this.m_Content.anchoredPosition)))),this.SetContentAnchoredPosition(n.$clone()),this.UpdateBounds()}},OnInitializePotentialDrag:function(e){e.button===UnityEngine.EventSystems.PointerEventData.InputButton.Left&&(this._velocity=pc.Vec2.ZERO.clone())},OnBeginDrag:function(e){e.button===UnityEngine.EventSystems.PointerEventData.InputButton.Left&&this.IsActive()&&(this.UpdateBounds(),this._pointerStartLocalCursor=pc.Vec2.ZERO.clone(),UnityEngine.RectTransformUtility.ScreenPointToLocalPointInRectangle(this.viewRect,e.position,e.pressEventCamera,Bridge.ref(this,"_pointerStartLocalCursor")),this.m_ContentStartPosition=this.m_Content.anchoredPosition.$clone(),this._dragging=!0)},OnEndDrag:function(e){e.button===UnityEngine.EventSystems.PointerEventData.InputButton.Left&&(this._dragging=!1)},OnDrag:function(e){if(this._dragging&&e.button===UnityEngine.EventSystems.PointerEventData.InputButton.Left&&this.IsActive()){var t={v:new UnityEngine.Vector2};if(UnityEngine.RectTransformUtility.ScreenPointToLocalPointInRectangle(this.viewRect,e.position,e.pressEventCamera,t)){this.UpdateBounds();var n=t.v.$clone().sub(this._pointerStartLocalCursor),i=this.m_ContentStartPosition.$clone().add(n),r=this.CalculateOffset(i.$clone().sub(this.m_Content.anchoredPosition));i=i.$clone().add(r.$clone()),this.m_MovementType===UnityEngine.UI.ScrollRect.MovementType.Elastic&&(0!==r.x&&(i.x=i.x-UnityEngine.UI.ScrollRect.RubberDelta(r.x,this._viewBounds.halfExtents.$clone().scale(2).x)),0!==r.y&&(i.y=i.y-UnityEngine.UI.ScrollRect.RubberDelta(r.y,this._viewBounds.halfExtents.$clone().scale(2).y))),this.SetContentAnchoredPosition(i.$clone())}}},SetContentAnchoredPosition:function(e){this.m_Horizontal||(e.x=this.m_Content.anchoredPosition.x),this.m_Vertical||(e.y=this.m_Content.anchoredPosition.y),pc.Vec2.equals(e,this.m_Content.anchoredPosition)||(this.m_Content.anchoredPosition=e.$clone(),this.UpdateBounds())},LateUpdate:function(){if(UnityEngine.Object.op_Implicit(this.m_Content)){this.EnsureLayoutHasRebuilt(),this.UpdateBounds();var e=UnityEngine.Time.unscaledDeltaTime,t=this.CalculateOffset(pc.Vec2.ZERO.clone());if(!(this._dragging||pc.Vec2.equals(t,pc.Vec2.ZERO.clone())&&pc.Vec2.equals(this._velocity,pc.Vec2.ZERO.clone()))){for(var n=this.m_Content.anchoredPosition.$clone(),i=0;i<2;i++)if(this.m_MovementType===UnityEngine.UI.ScrollRect.MovementType.Elastic&&0!==t.getitem(i)){var r={v:this._velocity.getitem(i)},s=this.m_Elasticity;this._scrolling&&(s*=3),n.setitem(i,UnityEngine.Mathf.SmoothDamp$1(this.m_Content.anchoredPosition.getitem(i),this.m_Content.anchoredPosition.getitem(i)+t.getitem(i),r,s,window.Infinity,e)),Math.abs(r.v)<1&&(r.v=0),this._velocity.setitem(i,r.v)}else this.m_Inertia?(this._velocity.setitem(i,this._velocity.getitem(i)*Math.pow(this.m_DecelerationRate,e)),Math.abs(this._velocity.getitem(i))<1&&this._velocity.setitem(i,0),n.setitem(i,n.getitem(i)+this._velocity.getitem(i)*e)):this._velocity.setitem(i,0);this.m_MovementType===UnityEngine.UI.ScrollRect.MovementType.Clamped&&(t=this.CalculateOffset(n.$clone().sub(this.m_Content.anchoredPosition)),n=n.$clone().add(t.$clone())),this.SetContentAnchoredPosition(n.$clone())}if(this._dragging&&this.m_Inertia){var a=UnityEngine.Vector3.FromVector2(this.m_Content.anchoredPosition.$clone().sub(this._prevPosition).scale(1/e));this._velocity=UnityEngine.Vector2.FromVector3((new pc.Vec3).lerp(UnityEngine.Vector3.FromVector2(this._velocity),a,10*e))}pc.BoundingBox.equals(this._viewBounds,this._prevViewBounds)&&pc.BoundingBox.equals(this.m_ContentBounds,this._prevContentBounds)&&pc.Vec2.equals(this.m_Content.anchoredPosition,this._prevPosition)||(this.UpdateScrollbars(t.$clone()),this.m_OnValueChanged.Invoke(this.normalizedPosition.$clone()),this.UpdatePrevData()),this.UpdateScrollbarVisibility(),this._scrolling=!1}},UpdatePrevData:function(){UnityEngine.Component.op_Equality(this.m_Content,null)?this._prevPosition=pc.Vec2.ZERO.clone():this._prevPosition=this.m_Content.anchoredPosition.$clone(),this._prevViewBounds=this._viewBounds,this._prevContentBounds=this.m_ContentBounds},UpdateScrollbars:function(e){UnityEngine.Object.op_Implicit(this.m_HorizontalScrollbar)&&(this.m_ContentBounds.halfExtents.$clone().scale(2).x>0?this.m_HorizontalScrollbar.size=Math.max(0,Math.min(1,(this._viewBounds.halfExtents.$clone().scale(2).x-Math.abs(e.x))/this.m_ContentBounds.halfExtents.$clone().scale(2).x)):this.m_HorizontalScrollbar.size=1,this.m_HorizontalScrollbar.value=this.horizontalNormalizedPosition),UnityEngine.Object.op_Implicit(this.m_VerticalScrollbar)&&(this.m_ContentBounds.halfExtents.$clone().scale(2).y>0?this.m_VerticalScrollbar.size=Math.max(0,Math.min(1,(this._viewBounds.halfExtents.$clone().scale(2).y-Math.abs(e.y))/this.m_ContentBounds.halfExtents.$clone().scale(2).y)):this.m_VerticalScrollbar.size=1,this.m_VerticalScrollbar.value=this.verticalNormalizedPosition)},SetHorizontalNormalizedPosition:function(e){this.SetNormalizedPosition(e,0)},SetVerticalNormalizedPosition:function(e){this.SetNormalizedPosition(e,1)},SetNormalizedPosition:function(e,t){this.EnsureLayoutHasRebuilt(),this.UpdateBounds();var n=this.m_ContentBounds.halfExtents.$clone().scale(2).getitem(t)-this._viewBounds.halfExtents.$clone().scale(2).getitem(t),i=this._viewBounds.min.getitem(t)-e*n,r=this.m_Content.localPosition.getitem(t)+i-this.m_ContentBounds.min.getitem(t),s=this.m_Content.localPosition.$clone();Math.abs(s.getitem(t)-r)>.01&&(s.setitem(t,r),this.m_Content.localPosition=s.$clone(),this._velocity.setitem(t,0),this.UpdateBounds())},OnRectTransformDimensionsChange:function(){this.SetDirty()},CalculateLayoutInputHorizontal:function(){},CalculateLayoutInputVertical:function(){},SetLayoutHorizontal:function(){this._tracker.reportMethod("UnityEngine.DrivenRectTransformTracker.Clear",null),pc.BoundingBox.equals(this.m_ContentBounds,null)&&(this.m_ContentBounds=new pc.BoundingBox.ctor),pc.BoundingBox.equals(this._viewBounds,null)&&(this._viewBounds=new pc.BoundingBox.ctor),(this._hSliderExpand||this._vSliderExpand)&&(this._tracker.reportMethod("UnityEngine.DrivenRectTransformTracker.Add",null),this.viewRect.anchorMin.copy(pc.Vec2.ZERO.clone()),this.viewRect.anchorMax.copy(pc.Vec2.ZERO.clone()),this.viewRect.sizeDelta.copy(pc.Vec2.ZERO.clone()),this.viewRect.anchoredPosition.copy(pc.Vec2.ZERO.clone()),UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate(this.content),this._viewBounds=new pc.BoundingBox(UnityEngine.Vector3.FromVector2(this.viewRect.rect.center.$clone()),UnityEngine.Vector3.FromVector2(this.viewRect.rect.size.$clone()).scale(.5)),this.m_ContentBounds=this.GetBounds(this.m_ContentBounds)),this._vSliderExpand&&this.vScrollingNeeded&&(this.viewRect.sizeDelta=new pc.Vec2(-(this._vSliderWidth+this.m_VerticalScrollbarSpacing),this.viewRect.sizeDelta.y),UnityEngine.UI.LayoutRebuilder.ForceRebuildLayoutImmediate(this.content),this._viewBounds=new pc.BoundingBox(UnityEngine.Vector3.FromVector2(this.viewRect.rect.center.$clone()),UnityEngine.Vector3.FromVector2(this.viewRect.rect.size.$clone()).scale(.5)),this.m_ContentBounds=this.GetBounds(this.m_ContentBounds)),this._hSliderExpand&&this.hScrollingNeeded&&(this.viewRect.sizeDelta=new pc.Vec2(this.viewRect.sizeDelta.x,-(this._hSliderHeight+this.m_HorizontalScrollbarSpacing)),this._viewBounds=new pc.BoundingBox(UnityEngine.Vector3.FromVector2(this.viewRect.rect.center.$clone()),UnityEngine.Vector3.FromVector2(this.viewRect.rect.size.$clone()).scale(.5)),this.m_ContentBounds=this.GetBounds(this.m_ContentBounds)),this._vSliderExpand&&this.vScrollingNeeded&&0===this.viewRect.sizeDelta.x&&this.viewRect.sizeDelta.y<0&&(this.viewRect.sizeDelta=new pc.Vec2(-(this._vSliderWidth+this.m_VerticalScrollbarSpacing),this.viewRect.sizeDelta.y))},SetLayoutVertical:function(){this.UpdateScrollbarLayout(),this._viewBounds=new pc.BoundingBox(UnityEngine.Vector3.FromVector2(this.viewRect.rect.center.$clone()),UnityEngine.Vector3.FromVector2(this.viewRect.rect.size.$clone()).scale(.5)),pc.BoundingBox.equals(this.m_ContentBounds,null)&&(this.m_ContentBounds=new pc.BoundingBox.ctor),this.m_ContentBounds=this.GetBounds(this.m_ContentBounds)},UpdateScrollbarVisibility:function(){UnityEngine.UI.ScrollRect.UpdateOneScrollbarVisibility(this.vScrollingNeeded,this.m_Vertical,this.m_VerticalScrollbarVisibility,this.m_VerticalScrollbar),UnityEngine.UI.ScrollRect.UpdateOneScrollbarVisibility(this.hScrollingNeeded,this.m_Horizontal,this.m_HorizontalScrollbarVisibility,this.m_HorizontalScrollbar)},UpdateScrollbarLayout:function(){this._vSliderExpand&&UnityEngine.Object.op_Implicit(this.m_HorizontalScrollbar)&&(this._tracker.reportMethod("UnityEngine.DrivenRectTransformTracker.Add",null),this._horizontalScrollbarRect.anchorMin=new pc.Vec2(0,this._horizontalScrollbarRect.anchorMin.y),this._horizontalScrollbarRect.anchorMax=new pc.Vec2(1,this._horizontalScrollbarRect.anchorMax.y),this._horizontalScrollbarRect.anchoredPosition=new pc.Vec2(0,this._horizontalScrollbarRect.anchoredPosition.y),this.vScrollingNeeded?this._horizontalScrollbarRect.sizeDelta=new pc.Vec2(-(this._vSliderWidth+this.m_VerticalScrollbarSpacing),this._horizontalScrollbarRect.sizeDelta.y):this._horizontalScrollbarRect.sizeDelta=new pc.Vec2(0,this._horizontalScrollbarRect.sizeDelta.y)),this._hSliderExpand&&UnityEngine.Object.op_Implicit(this.m_VerticalScrollbar)&&(this._tracker.reportMethod("UnityEngine.DrivenRectTransformTracker.Add",null),this._verticalScrollbarRect.anchorMin=new pc.Vec2(this._verticalScrollbarRect.anchorMin.x,0),this._verticalScrollbarRect.anchorMax=new pc.Vec2(this._verticalScrollbarRect.anchorMax.x,1),this._verticalScrollbarRect.anchoredPosition=new pc.Vec2(this._verticalScrollbarRect.anchoredPosition.x,0),this.hScrollingNeeded?this._verticalScrollbarRect.sizeDelta=new pc.Vec2(this._verticalScrollbarRect.sizeDelta.x,-(this._hSliderHeight+this.m_HorizontalScrollbarSpacing)):this._verticalScrollbarRect.sizeDelta=new pc.Vec2(this._verticalScrollbarRect.sizeDelta.x,0))},UpdateBounds:function(){pc.BoundingBox.equals(this._viewBounds,null)&&(this._viewBounds=new pc.BoundingBox.ctor);var e=this.viewRect.cachedRect.$clone();if(this._viewBounds.center=UnityEngine.Vector3.FromVector2(e.center.$clone()),this._viewBounds.halfExtents=UnityEngine.Vector3.FromVector2(e.size.$clone()).$clone().scale(.5),pc.BoundingBox.equals(this.m_ContentBounds,null)&&(this.m_ContentBounds=new pc.BoundingBox.ctor),this.m_ContentBounds=this.GetBounds(this.m_ContentBounds),!UnityEngine.Component.op_Equality(this.m_Content,null)){var t={v:this.m_ContentBounds.halfExtents.$clone().scale(2).$clone()},n={v:this.m_ContentBounds.center.$clone()},i=this.m_Content.pivot.$clone();if(UnityEngine.UI.ScrollRect.AdjustBounds(this._viewBounds,i,t,n),this.m_ContentBounds.halfExtents=t.v.$clone().$clone().scale(.5),this.m_ContentBounds.center=n.v.$clone(),this.movementType===UnityEngine.UI.ScrollRect.MovementType.Clamped){var r=pc.Vec2.ZERO.clone();this._viewBounds.max.x>this.m_ContentBounds.max.x?r.x=Math.min(this._viewBounds.min.x-this.m_ContentBounds.min.x,this._viewBounds.max.x-this.m_ContentBounds.max.x):this._viewBounds.min.x<this.m_ContentBounds.min.x&&(r.x=Math.max(this._viewBounds.min.x-this.m_ContentBounds.min.x,this._viewBounds.max.x-this.m_ContentBounds.max.x)),this._viewBounds.min.y<this.m_ContentBounds.min.y?r.y=Math.max(this._viewBounds.min.y-this.m_ContentBounds.min.y,this._viewBounds.max.y-this.m_ContentBounds.max.y):this._viewBounds.max.y>this.m_ContentBounds.max.y&&(r.y=Math.min(this._viewBounds.min.y-this.m_ContentBounds.min.y,this._viewBounds.max.y-this.m_ContentBounds.max.y)),r.lengthSq()>1401298e-51&&(n.v=UnityEngine.Vector3.FromVector2(this.m_Content.anchoredPosition.$clone().add(r)),this.m_Horizontal||(n.v.x=this.m_Content.anchoredPosition.x),this.m_Vertical||(n.v.y=this.m_Content.anchoredPosition.y),UnityEngine.UI.ScrollRect.AdjustBounds(this._viewBounds,i,t,n))}}},GetBounds:function(e){if(UnityEngine.Component.op_Equality(this.m_Content,null))return new pc.BoundingBox.ctor;this.m_Content.GetWorldCorners(this.m_Corners);var t={v:this.viewRect.worldToLocalMatrix.$clone()};return UnityEngine.UI.ScrollRect.InternalGetBounds(this.m_Corners,t,e)},CalculateOffset:function(e){return e={v:e},UnityEngine.UI.ScrollRect.InternalCalculateOffset(Bridge.ref(this,"_viewBounds"),Bridge.ref(this,"m_ContentBounds"),this.m_Horizontal,this.m_Vertical,this.m_MovementType,e)},SetDirty:function(){this.IsActive()&&UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(this.rectTransform)},SetDirtyCaching:function(){this.IsActive()&&(UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForLayoutRebuild(this),UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(this.rectTransform))}}}),Bridge.define("UnityEngine.EventSystems.StandaloneInputModule",{inherits:[UnityEngine.EventSystems.PointerInputModule],fields:{prevActionTime:0,lastMoveVector:null,consecutiveMoveCount:0,lastMousePosition:null,mousePosition:null,currentFocusedGameObject:null,inputPointerEvent:null,_horizontalAxis:null,_verticalAxis:null,_submitButton:null,_cancelButton:null,_inputActionsPerSecond:0,_repeatDelay:0,_forceModuleActive:!1},props:{inputMode:{get:function(){}},allowActivationOnMobileDevice:{get:function(){return this._forceModuleActive},set:function(e){this._forceModuleActive=e}},forceModuleActive:{get:function(){return this._forceModuleActive},set:function(e){this._forceModuleActive=e}},inputActionsPerSecond:{get:function(){return this._inputActionsPerSecond},set:function(e){this._inputActionsPerSecond=e}},repeatDelay:{get:function(){return this._repeatDelay},set:function(e){this._repeatDelay=e}},horizontalAxis:{get:function(){return this._horizontalAxis},set:function(e){this._horizontalAxis=e}},verticalAxis:{get:function(){return this._verticalAxis},set:function(e){this._verticalAxis=e}},submitButton:{get:function(){return this._submitButton},set:function(e){this._submitButton=e}},cancelButton:{get:function(){return this._cancelButton},set:function(e){this._cancelButton=e}}},ctors:{init:function(){this.lastMoveVector=new UnityEngine.Vector3,this.lastMousePosition=new UnityEngine.Vector3,this.mousePosition=new UnityEngine.Vector3,this.consecutiveMoveCount=0,this._horizontalAxis="Horizontal",this._verticalAxis="Vertical",this._submitButton="Submit",this._cancelButton="Cancel",this._inputActionsPerSecond=10,this._repeatDelay=.5},ctor:function(){this.$initialize(),UnityEngine.EventSystems.PointerInputModule.ctor.call(this)}},methods:{ShouldIgnoreEventsOnNoFocus:function(){return!0},UpdateModule:function(){if(!this.eventSystem.isFocused&&this.ShouldIgnoreEventsOnNoFocus())return null!=this.inputPointerEvent&&UnityEngine.GameObject.op_Inequality(this.inputPointerEvent.pointerDrag,null)&&this.inputPointerEvent.dragging&&this.ReleaseMouse(this.inputPointerEvent,this.inputPointerEvent.pointerCurrentRaycast.gameObject),void(this.inputPointerEvent=null);this.lastMousePosition=this.mousePosition.$clone(),this.mousePosition=this.input.mousePosition.$clone()},ReleaseMouse:function(e,t){UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IPointerUpHandler,e.pointerPress,e,UnityEngine.EventSystems.ExecuteEvents.pointerUpHandler);var n=UnityEngine.EventSystems.ExecuteEvents.GetEventHandler(UnityEngine.EventSystems.IPointerClickHandler,t);UnityEngine.GameObject.op_Equality(e.pointerPress,n)&&e.eligibleForClick?UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IPointerClickHandler,e.pointerPress,e,UnityEngine.EventSystems.ExecuteEvents.pointerClickHandler):UnityEngine.GameObject.op_Inequality(e.pointerDrag,null)&&e.dragging&&UnityEngine.EventSystems.ExecuteEvents.ExecuteHierarchy(UnityEngine.EventSystems.IDropHandler,t,e,UnityEngine.EventSystems.ExecuteEvents.dropHandler),e.eligibleForClick=!1,e.pointerPress=null,e.rawPointerPress=null,UnityEngine.GameObject.op_Inequality(e.pointerDrag,null)&&e.dragging&&UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IEndDragHandler,e.pointerDrag,e,UnityEngine.EventSystems.ExecuteEvents.endDragHandler),e.dragging=!1,e.pointerDrag=null,UnityEngine.GameObject.op_Inequality(t,e.pointerEnter)&&(this.HandlePointerExitAndEnter(e,null),this.HandlePointerExitAndEnter(e,t)),this.inputPointerEvent=e},IsModuleSupported:function(){return this._forceModuleActive||this.input.mousePresent||this.input.touchSupported},ShouldActivateModule:function(){if(!UnityEngine.EventSystems.PointerInputModule.prototype.ShouldActivateModule.call(this))return!1;var e=this._forceModuleActive;return e=!!((e=!!((e=!!((e=!!((e=!!((e=!!(e|this.input.GetButtonDown(this._submitButton)))|this.input.GetButtonDown(this._cancelButton)))|!UnityEngine.Mathf.Approximately(this.input.GetAxisRaw(this._horizontalAxis),0)))|!UnityEngine.Mathf.Approximately(this.input.GetAxisRaw(this._verticalAxis),0)))|this.mousePosition.$clone().sub(this.lastMousePosition).lengthSq()>0))|this.input.GetMouseButtonDown(0)),this.input.touchCount>0&&(e=!0),e},ActivateModule:function(){if(this.eventSystem.isFocused||!this.ShouldIgnoreEventsOnNoFocus()){UnityEngine.EventSystems.PointerInputModule.prototype.ActivateModule.call(this),this.mousePosition=this.input.mousePosition.$clone(),this.lastMousePosition=this.input.mousePosition.$clone();var e=this.eventSystem.currentSelectedGameObject;UnityEngine.GameObject.op_Equality(e,null)&&(e=this.eventSystem.firstSelectedGameObject),this.eventSystem.SetSelectedGameObject$1(e,this.GetBaseEventData())}},DeactivateModule:function(){UnityEngine.EventSystems.PointerInputModule.prototype.DeactivateModule.call(this),this.ClearSelection()},Process:function(){if(this.eventSystem.isFocused||!this.ShouldIgnoreEventsOnNoFocus()){var e=this.SendUpdateEventToSelectedObject();!this.ProcessTouchEvents()&&this.input.mousePresent&&this.ProcessMouseEvent(),this.eventSystem.sendNavigationEvents&&(e||(e=!!(e|this.SendMoveEventToSelectedObject())),e||this.SendSubmitEventToSelectedObject())}},ProcessTouchEvents:function(){for(var e=0;e<this.input.touchCount;++e){var t=this.input.GetTouch(e);if(t.type!==UnityEngine.TouchType.Indirect){var n={},i={},r=this.GetTouchPointerEventData(t.$clone(),i,n);this.ProcessTouchPress(r,i.v,n.v),n.v?this.RemovePointerData(r):(this.ProcessMove(r),this.ProcessDrag(r))}}return this.input.touchCount>0},ProcessTouchPress:function(e,t,n){var i=e.pointerCurrentRaycast.gameObject;if(t){e.eligibleForClick=!0,e.delta.copy(pc.Vec2.ZERO.clone()),e.dragging=!1,e.useDragThreshold=!0,e.pressPosition.copy(e.position),e.pointerPressRaycast.SetFrom(e.pointerCurrentRaycast.$clone()),this.DeselectIfSelectionChanged(i,e),UnityEngine.GameObject.op_Inequality(e.pointerEnter,i)&&(this.HandlePointerExitAndEnter(e,i),e.pointerEnter=i);var r=UnityEngine.EventSystems.ExecuteEvents.ExecuteHierarchy(UnityEngine.EventSystems.IPointerDownHandler,i,e,UnityEngine.EventSystems.ExecuteEvents.pointerDownHandler);UnityEngine.GameObject.op_Equality(r,null)&&(r=UnityEngine.EventSystems.ExecuteEvents.GetEventHandler(UnityEngine.EventSystems.IPointerClickHandler,i));var s=UnityEngine.Time.unscaledTime;UnityEngine.GameObject.op_Equality(r,e.lastPress)?(s-e.clickTime<.3?++e.clickCount:e.clickCount=1,e.clickTime=s):e.clickCount=1,e.pointerPress=r,e.rawPointerPress=i,e.clickTime=s,e.pointerDrag=UnityEngine.EventSystems.ExecuteEvents.GetEventHandler(UnityEngine.EventSystems.IDragHandler,i),UnityEngine.GameObject.op_Inequality(e.pointerDrag,null)&&UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IInitializePotentialDragHandler,e.pointerDrag,e,UnityEngine.EventSystems.ExecuteEvents.initializePotentialDrag),this.inputPointerEvent=e}if(n){UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IPointerUpHandler,e.pointerPress,e,UnityEngine.EventSystems.ExecuteEvents.pointerUpHandler);var a=UnityEngine.EventSystems.ExecuteEvents.GetEventHandler(UnityEngine.EventSystems.IPointerClickHandler,i);UnityEngine.GameObject.op_Equality(e.pointerPress,a)&&e.eligibleForClick?UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IPointerClickHandler,e.pointerPress,e,UnityEngine.EventSystems.ExecuteEvents.pointerClickHandler):UnityEngine.GameObject.op_Inequality(e.pointerDrag,null)&&e.dragging&&UnityEngine.EventSystems.ExecuteEvents.ExecuteHierarchy(UnityEngine.EventSystems.IDropHandler,i,e,UnityEngine.EventSystems.ExecuteEvents.dropHandler),e.eligibleForClick=!1,e.pointerPress=null,e.rawPointerPress=null,UnityEngine.GameObject.op_Inequality(e.pointerDrag,null)&&e.dragging&&UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IEndDragHandler,e.pointerDrag,e,UnityEngine.EventSystems.ExecuteEvents.endDragHandler),e.dragging=!1,e.pointerDrag=null,UnityEngine.EventSystems.ExecuteEvents.ExecuteHierarchy(UnityEngine.EventSystems.IPointerExitHandler,e.pointerEnter,e,UnityEngine.EventSystems.ExecuteEvents.pointerExitHandler),e.pointerEnter=null,this.inputPointerEvent=e}},SendSubmitEventToSelectedObject:function(){if(UnityEngine.GameObject.op_Equality(this.eventSystem.currentSelectedGameObject,null))return!1;var e=this.GetBaseEventData();return this.input.GetButtonDown(this._submitButton)&&UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.ISubmitHandler,this.eventSystem.currentSelectedGameObject,e,UnityEngine.EventSystems.ExecuteEvents.submitHandler),this.input.GetButtonDown(this._cancelButton),e.used},GetRawMoveVector:function(){var e=pc.Vec2.ZERO.clone();return e.x=this.input.GetAxisRaw(this._horizontalAxis),e.y=this.input.GetAxisRaw(this._verticalAxis),this.input.GetButtonDown(this._horizontalAxis)&&(e.x<0&&(e.x=-1),e.x>0&&(e.x=1)),this.input.GetButtonDown(this._verticalAxis)&&(e.y<0&&(e.y=-1),e.y>0&&(e.y=1)),e.$clone()},SendMoveEventToSelectedObject:function(){var e=UnityEngine.Time.unscaledTime,t=this.GetRawMoveVector();if(UnityEngine.Mathf.Approximately(t.x,0)&&UnityEngine.Mathf.Approximately(t.y,0))return this.consecutiveMoveCount=0,!1;var n=t.dot(UnityEngine.Vector2.FromVector3(this.lastMoveVector))>0;if(n&&1===this.consecutiveMoveCount){if(e<=this.prevActionTime+this._repeatDelay)return!1}else if(e<=this.prevActionTime+1/this._inputActionsPerSecond)return!1;var i=this.GetAxisEventData(t.x,t.y,.6);return i.moveDir!==UnityEngine.EventSystems.MoveDirection.None?(UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IMoveHandler,this.eventSystem.currentSelectedGameObject,i,UnityEngine.EventSystems.ExecuteEvents.moveHandler),n||(this.consecutiveMoveCount=0),this.consecutiveMoveCount++,this.prevActionTime=e,this.lastMoveVector=UnityEngine.Vector3.FromVector2(t.$clone())):this.consecutiveMoveCount=0,i.used},ProcessMouseEvent:function(){this.ProcessMouseEvent$1(0)},ProcessMouseEvent$1:function(e){var t=this.GetMousePointerEventData$1(e),n=t.GetButtonState(UnityEngine.EventSystems.PointerEventData.InputButton.Left).eventData;if(this.currentFocusedGameObject=n.buttonData.pointerCurrentRaycast.gameObject,this.ProcessMousePress(n),this.ProcessMove(n.buttonData),this.ProcessDrag(n.buttonData),this.ProcessMousePress(t.GetButtonState(UnityEngine.EventSystems.PointerEventData.InputButton.Right).eventData),this.ProcessDrag(t.GetButtonState(UnityEngine.EventSystems.PointerEventData.InputButton.Right).eventData.buttonData),this.ProcessMousePress(t.GetButtonState(UnityEngine.EventSystems.PointerEventData.InputButton.Middle).eventData),this.ProcessDrag(t.GetButtonState(UnityEngine.EventSystems.PointerEventData.InputButton.Middle).eventData.buttonData),!UnityEngine.Mathf.Approximately(n.buttonData.scrollDelta.lengthSq(),0)){var i=UnityEngine.EventSystems.ExecuteEvents.GetEventHandler(UnityEngine.EventSystems.IScrollHandler,n.buttonData.pointerCurrentRaycast.gameObject);UnityEngine.EventSystems.ExecuteEvents.ExecuteHierarchy(UnityEngine.EventSystems.IScrollHandler,i,n.buttonData,UnityEngine.EventSystems.ExecuteEvents.scrollHandler)}},ForceAutoSelect:function(){return!1},SendUpdateEventToSelectedObject:function(){if(UnityEngine.GameObject.op_Equality(this.eventSystem.currentSelectedGameObject,null))return!1;var e=this.GetBaseEventData();return UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IUpdateSelectedHandler,this.eventSystem.currentSelectedGameObject,e,UnityEngine.EventSystems.ExecuteEvents.updateSelectedHandler),e.used},ProcessMousePress:function(e){var t=e.buttonData,n=t.pointerCurrentRaycast.gameObject;if(e.PressedThisFrame()){t.eligibleForClick=!0,t.delta=pc.Vec2.ZERO.clone(),t.dragging=!1,t.useDragThreshold=!0,t.pressPosition=t.position.$clone(),t.pointerPressRaycast=t.pointerCurrentRaycast.$clone(),this.DeselectIfSelectionChanged(n,t);var i=UnityEngine.EventSystems.ExecuteEvents.ExecuteHierarchy(UnityEngine.EventSystems.IPointerDownHandler,n,t,UnityEngine.EventSystems.ExecuteEvents.pointerDownHandler);UnityEngine.GameObject.op_Equality(i,null)&&(i=UnityEngine.EventSystems.ExecuteEvents.GetEventHandler(UnityEngine.EventSystems.IPointerClickHandler,n));var r=UnityEngine.Time.unscaledTime;UnityEngine.GameObject.op_Equality(i,t.lastPress)?(r-t.clickTime<.3?++t.clickCount:t.clickCount=1,t.clickTime=r):t.clickCount=1,t.pointerPress=i,t.rawPointerPress=n,t.clickTime=r,t.pointerDrag=UnityEngine.EventSystems.ExecuteEvents.GetEventHandler(UnityEngine.EventSystems.IDragHandler,n),UnityEngine.GameObject.op_Inequality(t.pointerDrag,null)&&UnityEngine.EventSystems.ExecuteEvents.Execute(UnityEngine.EventSystems.IInitializePotentialDragHandler,t.pointerDrag,t,UnityEngine.EventSystems.ExecuteEvents.initializePotentialDrag),this.inputPointerEvent=t}e.ReleasedThisFrame()&&this.ReleaseMouse(t,n)},GetCurrentFocusedGameObject:function(){return this.currentFocusedGameObject}},overloads:{"ProcessMouseEvent(int)":"ProcessMouseEvent$1"}}),Bridge.define("UnityEngine.UI.Button",{inherits:[UnityEngine.UI.Selectable,UnityEngine.EventSystems.IPointerClickHandler,UnityEngine.EventSystems.ISubmitHandler],fields:{m_OnClick:null},props:{onClick:{get:function(){return this.m_OnClick}}},alias:["OnPointerClick","UnityEngine$EventSystems$IPointerClickHandler$OnPointerClick"],ctors:{init:function(){this.m_OnClick=new UnityEngine.UI.Button.ButtonClickedEvent},ctor:function(){this.$initialize(),UnityEngine.UI.Selectable.ctor.call(this)}},methods:{OnPointerClick:function(e){e.button===UnityEngine.EventSystems.PointerEventData.InputButton.Left&&this.Press()},Press:function(){this.IsActive()&&this.IsInteractable()&&this.m_OnClick.Invoke()},ConfigureForEntity:function(e){UnityEngine.UI.Selectable.prototype.ConfigureForEntity.call(this,e),e.element["UnityEngine.UI.Button"]=this}}}),Bridge.define("UnityEngine.UI.HorizontalOrVerticalLayoutGroup",{inherits:[UnityEngine.UI.LayoutGroup],fields:{m_ChildControlHeight:!1,m_ChildControlWidth:!1,m_ChildForceExpandHeight:!1,m_ChildForceExpandWidth:!1,m_Spacing:0},props:{spacing:{get:function(){return this.m_Spacing}},childForceExpandWidth:{get:function(){return this.m_ChildForceExpandWidth}},childForceExpandHeight:{get:function(){return this.m_ChildForceExpandHeight}}},ctors:{init:function(){this.m_ChildControlHeight=!0,this.m_ChildControlWidth=!0,this.m_ChildForceExpandHeight=!0,this.m_ChildForceExpandWidth=!0}},methods:{CalcAlongAxis:function(e,t){for(var n=0===e?this.padding.horizontal:this.padding.vertical,i=0===e?this.m_ChildControlWidth:this.m_ChildControlHeight,r=0===e?this.childForceExpandWidth:this.childForceExpandHeight,s=n,a=n,o=0,l=t!=(1===e),c=0;c<this.m_RectChildren.length;c++){var u=this.m_RectChildren[c],h={v:0},d={v:0},m={v:0};this.GetChildSizes(u,e,i,r,h,d,m),l?(s=UnityEngine.Mathf.Max(h.v+n,s),a=UnityEngine.Mathf.Max(d.v+n,a),o=UnityEngine.Mathf.Max(m.v,o)):(s+=h.v+this.spacing,a+=d.v+this.spacing,o+=m.v)}!l&&this.m_RectChildren.length>0&&(s-=this.spacing,a-=this.spacing),a=UnityEngine.Mathf.Max(s,a),this.SetLayoutInputForAxis(s,a,o,e)},SetChildrenAlongAxis:function(e,t){var n=this.rectTransform.rect.size.getitem(e),i=0===e?this.m_ChildControlWidth:this.m_ChildControlHeight,r=0===e?this.childForceExpandWidth:this.childForceExpandHeight,s=this.GetAlignmentOnAxis(e);if(t!=(1===e))for(var a=n-(0===e?this.padding.horizontal:this.padding.vertical),o=0;o<this.m_RectChildren.length;o++){var l=this.m_RectChildren[o],c={v:0},u={v:0},h={v:0};this.GetChildSizes(l,e,i,r,c,u,h);var d=Math.max(c.v,Math.min(a,h.v>0?n:u.v)),m=this.GetStartOffset(e,d);if(i)this.SetChildAlongAxis$1(l,e,m,d);else{var g=(d-l.sizeDelta.getitem(e))*s;this.SetChildAlongAxis(l,e,m+g)}}else{var $=0===e?this.padding.left:this.padding.top;0===this.GetTotalFlexibleSize(e)&&this.GetTotalPreferredSize(e)<n&&($=this.GetStartOffset(e,this.GetTotalPreferredSize(e)-(0===e?this.padding.horizontal:this.padding.vertical)));var p=0;this.GetTotalMinSize(e)!==this.GetTotalPreferredSize(e)&&(p=Math.max(0,Math.min(1,(n-this.GetTotalMinSize(e))/(this.GetTotalPreferredSize(e)-this.GetTotalMinSize(e)))));var y=0;n>this.GetTotalPreferredSize(e)&&this.GetTotalFlexibleSize(e)>0&&(y=(n-this.GetTotalPreferredSize(e))/this.GetTotalFlexibleSize(e));for(var f=0;f<this.m_RectChildren.length;f++){var _=this.m_RectChildren[f],S={v:0},b={v:0},C={v:0};this.GetChildSizes(_,e,i,r,S,b,C);var E=pc.math.lerp(S.v,b.v,p);if(E+=C.v*y,i)this.SetChildAlongAxis$1(_,e,$,E);else{var T=(E-_.sizeDelta.getitem(e))*s;this.SetChildAlongAxis(_,e,$+T)}$+=E+this.spacing}}},GetChildSizes:function(e,t,n,i,r,s,a){n?(r.v=UnityEngine.UI.LayoutUtility.GetMinSize(e,t),s.v=UnityEngine.UI.LayoutUtility.GetPreferredSize(e,t),a.v=UnityEngine.UI.LayoutUtility.GetFlexibleSize(e,t)):(r.v=e.sizeDelta.getitem(t),s.v=r.v,a.v=0),i&&(a.v=UnityEngine.Mathf.Max(a.v,1))}}}),Bridge.define("UnityEngine.UI.Image",{inherits:[UnityEngine.UI.MaskableGraphic,UnityEngine.UI.ILayoutElement,UnityEngine.ICanvasRaycastFilter],fields:{m_Sprite:null,m_OverrideSprite:null,m_Type:0,m_FillMethod:0,m_FillCenter:!1,m_FillOrigin:0,m_FillClockwise:!1,m_FillAmount:0,m_PreserveAspect:!1,m_CachedReferencePixelsPerUnit:0,m_PixelsPerUnitMultiplier:0,m_AlphaHitTestMinimumThreshold:0},props:{sprite:{get:function(){return this.m_Sprite},set:function(e){Bridge.referenceEquals(this.m_Sprite,e)||(null!=this.m_Sprite?Bridge.referenceEquals(this.m_Sprite,e)||(this.m_SkipLayoutUpdate=this.m_Sprite.rect.size.strictEquals(UnityEngine.Object.op_Implicit(e)?e.rect.size.$clone():pc.Vec2.ZERO.clone()),this.m_SkipMaterialUpdate=Bridge.referenceEquals(this.m_Sprite.texture,UnityEngine.Object.op_Implicit(e)?e.texture:null),this.m_Sprite=e,this.SetAllDirty()):null!=e&&(this.m_SkipLayoutUpdate=pc.Vec2.equals(e.rect.size,pc.Vec2.ZERO.clone()),this.m_SkipMaterialUpdate=null==e.texture,this.m_Sprite=e,this.SetAllDirty()),this.m_Sprite=e,this.handle.entity.element._image.sprite=null!=(null!=e?e.handle:null)?e.handle:null,this.SetAllDirty())}},activeSprite:{get:function(){return Bridge.referenceEquals(Bridge.cast(this.m_OverrideSprite,UnityEngine.Object),null)?this.sprite:this.m_OverrideSprite}},type:{get:function(){return this.m_Type}},material:{get:function(){return null!=this.m_Material?this.m_Material:this.defaultMaterial},set:function(e){Bridge.ensureBaseProperty(this,"material").$UnityEngine$UI$Graphic$material=e}},mainTexture:{get:function(){return null==this.activeSprite?null!=this.material&&null!=this.material.mainTexture?this.material.mainTexture:UnityEngine.UI.Graphic.s_WhiteTexture:this.activeSprite.texture}},alphaHitTestMinimumThreshold:{get:function(){return this.m_AlphaHitTestMinimumThreshold}}},alias:["CalculateLayoutInputHorizontal","UnityEngine$UI$ILayoutElement$CalculateLayoutInputHorizontal","CalculateLayoutInputVertical","UnityEngine$UI$ILayoutElement$CalculateLayoutInputVertical","minWidth","UnityEngine$UI$ILayoutElement$minWidth","preferredWidth","UnityEngine$UI$ILayoutElement$preferredWidth","flexibleWidth","UnityEngine$UI$ILayoutElement$flexibleWidth","minHeight","UnityEngine$UI$ILayoutElement$minHeight","preferredHeight","UnityEngine$UI$ILayoutElement$preferredHeight","flexibleHeight","UnityEngine$UI$ILayoutElement$flexibleHeight","layoutPriority","UnityEngine$UI$ILayoutElement$layoutPriority","IsRaycastLocationValid","UnityEngine$ICanvasRaycastFilter$IsRaycastLocationValid"],ctors:{init:function(){this.m_Type=UnityEngine.UI.Image.Type.Sliced,this.m_FillMethod=0,this.m_FillCenter=!0,this.m_FillOrigin=0,this.m_FillClockwise=!0,this.m_FillAmount=1,this.m_PreserveAspect=!1,this.m_CachedReferencePixelsPerUnit=100,this.m_PixelsPerUnitMultiplier=1,this.m_AlphaHitTestMinimumThreshold=0},ctor:function(){this.$initialize(),UnityEngine.UI.MaskableGraphic.$ctor1.call(this,null)}},methods:{Awake:function(){UnityEngine.UI.MaskableGraphic.prototype.Awake.call(this),this.handle.entity.element.setupParametersFromImage(this,null!=this.m_Sprite?this.m_Sprite.handle:null,this.m_Type,this.m_FillMethod,this.m_FillOrigin,this.m_FillAmount,this.m_FillCenter,this.m_PixelsPerUnitMultiplier,this.m_PreserveAspect,this._dontMask,this.handle.enabled,null!=this.m_Material?this.m_Material.handle:null)},OnEnable:function(){UnityEngine.UI.MaskableGraphic.prototype.OnEnable.call(this),null!=this.handle.entity.element&&(this.handle.entity.element._image.enabled=!0)},OnDisable:function(){UnityEngine.UI.MaskableGraphic.prototype.OnDisable.call(this),null!=this.handle.entity.element&&(this.handle.entity.element._image.enabled=!1)},ConfigureForEntity:function(e){UnityEngine.UI.MaskableGraphic.prototype.ConfigureForEntity.call(this,e),e.element.type="image"},CalculateLayoutInputHorizontal:function(){},CalculateLayoutInputVertical:function(){},SetNativeSize:function(){if(null!=this.sprite){(Math.abs(this.rectTransform.anchorMin.x-this.rectTransform.anchorMax.x)>1e-5||Math.abs(this.rectTransform.anchorMin.y-this.rectTransform.anchorMax.y)>1e-5)&&(this.rectTransform.anchorMin=pc.Vec2.ZERO.clone(),this.rectTransform.anchorMax=pc.Vec2.ZERO.clone());var e=this.canvas.referencePixelsPerUnit/this.sprite.pixelsPerUnit;this.rectTransform.sizeDelta=new pc.Vec2(this.sprite.handle.getTexture().width*e,this.sprite.handle.getTexture().height*e)}else UnityEngine.Debug.LogWarning$1("Missing sprite, can't set size to native.")},IsRaycastLocationValid:function(e,t){if(this.alphaHitTestMinimumThreshold<=0)return!0;if(this.alphaHitTestMinimumThreshold>1)return!1;if(null==this.activeSprite)return!0;var n={v:new UnityEngine.Vector2};if(!UnityEngine.RectTransformUtility.ScreenPointToLocalPointInRectangle(this.rectTransform,e,t,n))return!1;var i=this.GetPixelAdjustedRect();n.v.x+=this.rectTransform.pivot.x*i.width,n.v.y+=this.rectTransform.pivot.y*i.height,n.v=this.MapCoordinate(n.v.$clone(),i.$clone());var r=this.activeSprite.textureRect.$clone(),s=(r.x+n.v.x)/this.activeSprite.texture.width,a=(r.y+n.v.y)/this.activeSprite.texture.height;try{return this.activeSprite.texture.GetPixelBilinear(s,a).a>=this.alphaHitTestMinimumThreshold}catch(e){var o;if(e=System.Exception.create(e),Bridge.is(e,UnityEngine.UnityException))return o=e,UnityEngine.Debug.LogError$2("Using alphaHitTestMinimumThreshold greater than 0 on Image whose sprite texture cannot be read. "+(o.Message||"")+" Also make sure to disable sprite packing for this sprite.",this),!0;throw e}}}}),Bridge.define("UnityEngine.UI.InputField",{inherits:[UnityEngine.UI.Selectable,UnityEngine.EventSystems.IUpdateSelectedHandler,UnityEngine.EventSystems.IBeginDragHandler,UnityEngine.EventSystems.IDragHandler,UnityEngine.EventSystems.IEndDragHandler,UnityEngine.EventSystems.IPointerClickHandler,UnityEngine.EventSystems.ISubmitHandler,UnityEngine.UI.ICanvasElement,UnityEngine.UI.ILayoutElement],statics:{fields:{StyleDisplayBlock:null,StyleDisplayNone:null,kHScrollSpeed:0,kVScrollSpeed:0,kEmailSpecialCharacters:null,k_MaxTextLength:0,kSeparators:null,isStyleInitialized:!1},props:{clipboard:{get:function(){return pc.generateStubProxy("UnityEngine.GUIUtility",!0).reportProperty("UnityEngine.GUIUtility.systemCopyBuffer","")},set:function(e){pc.generateStubProxy("UnityEngine.GUIUtility",!0).systemCopyBuffer=e}}},ctors:{init:function(){this.StyleDisplayBlock="block",this.StyleDisplayNone="none",this.kHScrollSpeed=.05,this.kVScrollSpeed=.1,this.kEmailSpecialCharacters="!#$%&'*+-/=?^_`{|}~",this.k_MaxTextLength=16382,this.kSeparators=System.Array.init([32,46,44,9,13,10],System.Char)}},methods:{GetLineStartPosition:function(e,t){return t=Math.max(0,Math.min(t,e.lines.Count-1)),e.lines.getItem(t).startCharIdx},GetLineEndPosition:function(e,t){return(t=UnityEngine.Mathf.Max(t,0))+1<e.lines.Count?e.lines.getItem(t+1).startCharIdx-1:e.characterCountVisible}}},fields:{m_Keyboard:null,shouldBeShown:!1,m_TextComponent:null,m_Placeholder:null,m_ContentType:0,m_InputType:0,m_AsteriskChar:0,m_KeyboardType:0,m_LineType:0,m_HideMobileInput:!1,m_CharacterValidation:0,m_CharacterLimit:0,m_OnEndEdit:null,m_OnValueChanged:null,m_OnValidateInput:null,m_CaretColor:null,m_CustomCaretColor:!1,m_SelectionColor:null,m_Text:null,m_CaretBlinkRate:0,m_CaretWidth:0,m_ReadOnly:!1,m_CaretPosition:0,m_CaretSelectPosition:0,caretRectTrans:null,m_CursorVerts:null,m_InputTextCache:null,m_CachedInputRenderer:null,m_PreventFontCallback:!1,m_Mesh:null,m_AllowInput:!1,m_ShouldActivateNextUpdate:!1,m_UpdateDrag:!1,m_DragPositionOutOfBounds:!1,m_CaretVisible:!1,m_BlinkCoroutine:null,m_BlinkStartTime:0,m_DrawStart:0,m_DrawEnd:0,m_DragCoroutine:null,m_OriginalText:null,m_WasCanceled:!1,m_HasDoneFocusTransition:!1,m_WaitForSecondsRealtime:null,m_ProcessingEvent:null,rt:null,corners:null,cornersScreen:null,webInput:null,canvases:null},props:{input:{get:function(){return UnityEngine.Object.op_Implicit(UnityEngine.EventSystems.EventSystem.current)&&UnityEngine.Object.op_Implicit(UnityEngine.EventSystems.EventSystem.current.currentInputModule)?UnityEngine.EventSystems.EventSystem.current.currentInputModule.input:null}},compositionString:{get:function(){return UnityEngine.MonoBehaviour.op_Inequality(this.input,null)?this.input.compositionString:UnityEngine.Input.compositionString}},mesh:{get:function(){return null==this.m_Mesh&&(this.m_Mesh=new UnityEngine.Mesh.ctor),this.m_Mesh}},cachedInputTextGenerator:{get:function(){return this.m_InputTextCache,this.m_InputTextCache}},shouldHideMobileInput:{get:function(){return!0},set:function(e){}},shouldActivateOnSelect:{get:function(){return UnityEngine.Application.platform!==UnityEngine.RuntimePlatform.tvOS}},text:{get:function(){return this.m_Text},set:function(e){if(!Bridge.referenceEquals(this.text,e)){if(null==e&&(e=""),e=System.String.replaceAll(e,"\0",""),this.m_LineType===UnityEngine.UI.InputField.LineType.SingleLine&&(e=System.String.replaceAll(System.String.replaceAll(e,"\n",""),"\t","")),Bridge.staticEquals(this.onValidateInput,null)&&this.characterValidation===UnityEngine.UI.InputField.CharacterValidation.None)this.m_Text=this.characterLimit>0&&e.length>this.characterLimit?e.substr(0,this.characterLimit):e;else{this.m_Text="";var t=this.onValidateInput||Bridge.fn.cacheBind(this,this.Validate);this.m_CaretPosition=this.m_CaretSelectPosition=e.length;for(var n=this.characterLimit>0?Math.min(this.characterLimit,e.length):e.length,i=0;i<n;++i){var r=t(this.m_Text,this.m_Text.length,e.charCodeAt(i));0!==r&&(this.m_Text=(this.m_Text||"")+String.fromCharCode(r))}}null!=this.m_Keyboard&&(this.m_Keyboard.text=this.m_Text),this.m_CaretPosition>this.m_Text.length?this.m_CaretPosition=this.m_CaretSelectPosition=this.m_Text.length:this.m_CaretSelectPosition>this.m_Text.length&&(this.m_CaretSelectPosition=this.m_Text.length),this.SendOnValueChangedAndUpdateLabel()}}},isFocused:{get:function(){return this.m_AllowInput}},caretBlinkRate:{get:function(){return this.m_CaretBlinkRate},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(System.Single,Bridge.ref(this,"m_CaretBlinkRate"),e)&&this.m_AllowInput&&this.SetCaretActive()}},caretWidth:{get:function(){return this.m_CaretWidth},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(System.Int32,Bridge.ref(this,"m_CaretWidth"),e)&&this.MarkGeometryAsDirty()}},textComponent:{get:function(){return this.m_TextComponent},set:function(e){UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)&&(this.m_TextComponent.UnregisterDirtyVerticesCallback(Bridge.fn.cacheBind(this,this.MarkGeometryAsDirty)),this.m_TextComponent.UnregisterDirtyVerticesCallback(Bridge.fn.cacheBind(this,this.UpdateLabel)),this.m_TextComponent.UnregisterDirtyMaterialCallback(Bridge.fn.cacheBind(this,this.UpdateCaretMaterial))),UnityEngine.UI.SetPropertyUtility.SetClass(UnityEngine.UI.Text,Bridge.ref(this,"m_TextComponent"),e)&&(this.EnforceTextHOverflow(),UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)&&(this.m_TextComponent.RegisterDirtyVerticesCallback(Bridge.fn.cacheBind(this,this.MarkGeometryAsDirty)),this.m_TextComponent.RegisterDirtyVerticesCallback(Bridge.fn.cacheBind(this,this.UpdateLabel)),this.m_TextComponent.RegisterDirtyMaterialCallback(Bridge.fn.cacheBind(this,this.UpdateCaretMaterial))))}},placeholder:{get:function(){return this.m_Placeholder},set:function(e){}},caretColor:{get:function(){return this.customCaretColor?this.m_CaretColor.$clone():this.textComponent.color.$clone()},set:function(e){UnityEngine.UI.SetPropertyUtility.SetColor(Bridge.ref(this,"m_CaretColor"),e.$clone())&&this.MarkGeometryAsDirty()}},customCaretColor:{get:function(){return this.m_CustomCaretColor},set:function(e){this.m_CustomCaretColor!==e&&(this.m_CustomCaretColor=e,this.MarkGeometryAsDirty())}},selectionColor:{get:function(){return this.m_SelectionColor.$clone()},set:function(e){UnityEngine.UI.SetPropertyUtility.SetColor(Bridge.ref(this,"m_SelectionColor"),e.$clone())&&this.MarkGeometryAsDirty()}},onEndEdit:{get:function(){return this.m_OnEndEdit},set:function(e){}},onValueChange:{get:function(){return this.onValueChanged},set:function(e){this.onValueChanged=e}},onValueChanged:{get:function(){return this.m_OnValueChanged},set:function(e){}},onValidateInput:{get:function(){return this.m_OnValidateInput},set:function(e){}},characterLimit:{get:function(){return this.m_CharacterLimit},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(System.Int32,Bridge.ref(this,"m_CharacterLimit"),Math.max(0,e))&&(this.UpdateLabel(),null!=this.m_Keyboard&&(this.m_Keyboard.characterLimit=e))}},contentType:{get:function(){return this.m_ContentType},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(UnityEngine.UI.InputField.ContentType,Bridge.ref(this,"m_ContentType"),e)&&this.EnforceContentType()}},lineType:{get:function(){return this.m_LineType},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(UnityEngine.UI.InputField.LineType,Bridge.ref(this,"m_LineType"),e)&&this.EnforceTextHOverflow()}},inputType:{get:function(){return this.m_InputType},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(UnityEngine.UI.InputField.InputType,Bridge.ref(this,"m_InputType"),e)&&this.SetToCustom()}},touchScreenKeyboard:{get:function(){return this.m_Keyboard}},keyboardType:{get:function(){return this.m_KeyboardType},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(UnityEngine.TouchScreenKeyboardType,Bridge.ref(this,"m_KeyboardType"),e)&&this.SetToCustom()}},characterValidation:{get:function(){return this.m_CharacterValidation},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(UnityEngine.UI.InputField.CharacterValidation,Bridge.ref(this,"m_CharacterValidation"),e)&&this.SetToCustom()}},readOnly:{get:function(){return this.m_ReadOnly},set:function(e){this.m_ReadOnly=e}},multiLine:{get:function(){return this.m_LineType===UnityEngine.UI.InputField.LineType.MultiLineNewline||this.lineType===UnityEngine.UI.InputField.LineType.MultiLineSubmit}},asteriskChar:{get:function(){return this.m_AsteriskChar},set:function(e){UnityEngine.UI.SetPropertyUtility.SetStruct(System.Char,Bridge.ref(this,"m_AsteriskChar"),e)&&this.UpdateLabel()}},wasCanceled:{get:function(){return this.m_WasCanceled}},caretPositionInternal:{get:function(){return this.m_CaretPosition+this.compositionString.length},set:function(e){this.m_CaretPosition=e,this.ClampPos(Bridge.ref(this,"m_CaretPosition"))}},caretSelectPositionInternal:{get:function(){return this.m_CaretSelectPosition+this.compositionString.length},set:function(e){this.m_CaretSelectPosition=e,this.ClampPos(Bridge.ref(this,"m_CaretSelectPosition"))}},hasSelection$1:{get:function(){return this.caretPositionInternal!==this.caretSelectPositionInternal}},caretPosition:{get:function(){return this.m_CaretSelectPosition+this.compositionString.length},set:function(e){this.selectionAnchorPosition=e,this.selectionFocusPosition=e}},selectionAnchorPosition:{get:function(){return this.m_CaretPosition+this.compositionString.length},set:function(e){0===this.compositionString.length&&(this.m_CaretPosition=e,this.ClampPos(Bridge.ref(this,"m_CaretPosition")))}},selectionFocusPosition:{get:function(){return this.m_CaretSelectPosition+this.compositionString.length},set:function(e){0===this.compositionString.length&&(this.m_CaretSelectPosition=e,this.ClampPos(Bridge.ref(this,"m_CaretSelectPosition")))}},minWidth:{get:function(){return 0}},preferredWidth:{get:function(){return Bridge.getDefaultValue(System.Single)}},flexibleWidth:{get:function(){return-1}},minHeight:{get:function(){return 0}},preferredHeight:{get:function(){return Bridge.getDefaultValue(System.Single)}},flexibleHeight:{get:function(){return-1}},layoutPriority:{get:function(){return 1}}},alias:["OnBeginDrag","UnityEngine$EventSystems$IBeginDragHandler$OnBeginDrag","OnDrag","UnityEngine$EventSystems$IDragHandler$OnDrag","OnEndDrag","UnityEngine$EventSystems$IEndDragHandler$OnEndDrag","OnPointerDown","UnityEngine$EventSystems$IPointerDownHandler$OnPointerDown","OnUpdateSelected","UnityEngine$EventSystems$IUpdateSelectedHandler$OnUpdateSelected","Rebuild","UnityEngine$UI$ICanvasElement$Rebuild","LayoutComplete","UnityEngine$UI$ICanvasElement$LayoutComplete","GraphicUpdateComplete","UnityEngine$UI$ICanvasElement$GraphicUpdateComplete","OnSelect","UnityEngine$EventSystems$ISelectHandler$OnSelect","OnPointerClick","UnityEngine$EventSystems$IPointerClickHandler$OnPointerClick","OnDeselect","UnityEngine$EventSystems$IDeselectHandler$OnDeselect","OnSubmit","UnityEngine$EventSystems$ISubmitHandler$OnSubmit","CalculateLayoutInputHorizontal","UnityEngine$UI$ILayoutElement$CalculateLayoutInputHorizontal","CalculateLayoutInputVertical","UnityEngine$UI$ILayoutElement$CalculateLayoutInputVertical","minWidth","UnityEngine$UI$ILayoutElement$minWidth","preferredWidth","UnityEngine$UI$ILayoutElement$preferredWidth","flexibleWidth","UnityEngine$UI$ILayoutElement$flexibleWidth","minHeight","UnityEngine$UI$ILayoutElement$minHeight","preferredHeight","UnityEngine$UI$ILayoutElement$preferredHeight","flexibleHeight","UnityEngine$UI$ILayoutElement$flexibleHeight","layoutPriority","UnityEngine$UI$ILayoutElement$layoutPriority","IsDestroyed","UnityEngine$UI$ICanvasElement$IsDestroyed","transform","UnityEngine$UI$ICanvasElement$transform"],ctors:{init:function(){this.m_CaretColor=new UnityEngine.Color,this.m_SelectionColor=new UnityEngine.Color,this.m_AsteriskChar=42,this.m_HideMobileInput=!1,this.m_CharacterLimit=0,this.m_CaretColor=new pc.Color(.196078435,.196078435,.196078435,1),this.m_CustomCaretColor=!1,this.m_SelectionColor=new pc.Color(.65882355,.807843149,1,.7529412),this.m_Text="",this.m_CaretBlinkRate=.85,this.m_CaretWidth=1,this.m_ReadOnly=!1,this.m_CaretPosition=0,this.m_CaretSelectPosition=0,this.m_PreventFontCallback=!1,this.m_AllowInput=!1,this.m_ShouldActivateNextUpdate=!1,this.m_UpdateDrag=!1,this.m_DragPositionOutOfBounds=!1,this.m_BlinkStartTime=0,this.m_DrawStart=0,this.m_DrawEnd=0,this.m_OriginalText="",this.m_WasCanceled=!1,this.m_HasDoneFocusTransition=!1,this.m_ProcessingEvent=pc.generateStubProxy("UnityEngine.Event"),this.corners=System.Array.init(4,(function(){return new UnityEngine.Vector3}),UnityEngine.Vector3),this.cornersScreen=System.Array.init(4,(function(){return new UnityEngine.Vector3}),UnityEngine.Vector3)},ctor:function(){this.$initialize(),UnityEngine.UI.Selectable.ctor.call(this),this.EnforceTextHOverflow()}},methods:{ClampPos:function(e){e.v<0?e.v=0:e.v>this.text.length&&(e.v=this.text.length)},OnEnable:function(){UnityEngine.UI.Selectable.prototype.OnEnable.call(this),null==this.m_Text&&(this.m_Text=""),this.m_DrawStart=0,this.m_DrawEnd=this.m_Text.length,UnityEngine.Component.op_Inequality(this.m_CachedInputRenderer,null)&&this.m_CachedInputRenderer.SetMaterial$1(this.m_TextComponent.GetModifiedMaterial(UnityEngine.UI.Graphic.defaultGraphicMaterial),UnityEngine.Texture2D.whiteTexture),UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)&&(this.m_TextComponent.RegisterDirtyVerticesCallback(Bridge.fn.cacheBind(this,this.MarkGeometryAsDirty)),this.m_TextComponent.RegisterDirtyVerticesCallback(Bridge.fn.cacheBind(this,this.UpdateLabel)),this.m_TextComponent.RegisterDirtyMaterialCallback(Bridge.fn.cacheBind(this,this.UpdateCaretMaterial)),this.UpdateLabel()),this.OnEnableWebInput()},OnDisable:function(){this.m_BlinkCoroutine=null,this.DeactivateInputField(),UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)&&(this.m_TextComponent.UnregisterDirtyVerticesCallback(Bridge.fn.cacheBind(this,this.MarkGeometryAsDirty)),this.m_TextComponent.UnregisterDirtyVerticesCallback(Bridge.fn.cacheBind(this,this.UpdateLabel)),this.m_TextComponent.UnregisterDirtyMaterialCallback(Bridge.fn.cacheBind(this,this.UpdateCaretMaterial))),UnityEngine.UI.CanvasUpdateRegistry.UnRegisterCanvasElementForRebuild(this),UnityEngine.Component.op_Inequality(this.m_CachedInputRenderer,null)&&this.m_CachedInputRenderer.Clear(),null!=this.m_Mesh&&UnityEngine.Object.DestroyImmediate(this.m_Mesh),this.m_Mesh=null,UnityEngine.UI.Selectable.prototype.OnDisable.call(this),this.OnDisableWebInput()},CaretBlink:function(){var e,t,n=0,i=new Bridge.GeneratorEnumerator(Bridge.fn.bind(this,(function(){try{for(;;)switch(n){case 0:return this.m_CaretVisible=!0,i.current=null,n=1,!0;case 1:if(this.isFocused&&this.m_CaretBlinkRate>0){n=2;continue}n=4;continue;case 2:return e=1/this.m_CaretBlinkRate,t=(UnityEngine.Time.unscaledTime-this.m_BlinkStartTime)%e<e/2,this.m_CaretVisible!==t&&(this.m_CaretVisible=t,this.hasSelection$1||this.MarkGeometryAsDirty()),i.current=null,n=3,!0;case 3:n=1;continue;case 4:this.m_BlinkCoroutine=null;default:return!1}}catch(e){throw System.Exception.create(e)}})));return i},SetCaretVisible:function(){this.m_AllowInput&&(this.m_CaretVisible=!0,this.m_BlinkStartTime=UnityEngine.Time.unscaledTime,this.SetCaretActive())},SetCaretActive:function(){this.m_AllowInput&&(this.m_CaretBlinkRate>0?null==this.m_BlinkCoroutine&&(this.m_BlinkCoroutine=this.StartCoroutine$1(this.CaretBlink())):this.m_CaretVisible=!0)},UpdateCaretMaterial:function(){UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)&&UnityEngine.Component.op_Inequality(this.m_CachedInputRenderer,null)&&this.m_CachedInputRenderer.SetMaterial$1(this.m_TextComponent.GetModifiedMaterial(UnityEngine.UI.Graphic.defaultGraphicMaterial),UnityEngine.Texture2D.whiteTexture)},OnFocus:function(){this.SelectAll()},SelectAll:function(){this.caretPositionInternal=this.text.length,this.caretSelectPositionInternal=0},MoveTextEnd:function(e){var t=this.text.length;e?this.caretSelectPositionInternal=t:(this.caretPositionInternal=t,this.caretSelectPositionInternal=this.caretPositionInternal),this.UpdateLabel()},MoveTextStart:function(e){e?this.caretSelectPositionInternal=0:(this.caretPositionInternal=0,this.caretSelectPositionInternal=this.caretPositionInternal),this.UpdateLabel()},InPlaceEditing:function(){return!UnityEngine.TouchScreenKeyboard.isSupported},UpdateCaretFromKeyboard:function(){var e=this.m_Keyboard.selection.$clone(),t=e.start,n=e.end,i=!1;this.caretPositionInternal!==t&&(i=!0,this.caretPositionInternal=t),this.caretSelectPositionInternal!==n&&(this.caretSelectPositionInternal=n,i=!0),i&&(this.m_BlinkStartTime=UnityEngine.Time.unscaledTime,this.UpdateLabel())},LateUpdate:function(){var e;if(this.m_ShouldActivateNextUpdate){if(!this.isFocused)return this.ActivateInputFieldInternal(),void(this.m_ShouldActivateNextUpdate=!1);this.m_ShouldActivateNextUpdate=!1}if(!this.InPlaceEditing()&&this.isFocused){if(this.AssignPositioningIfNeeded(),null==this.m_Keyboard||this.m_Keyboard.status!==UnityEngine.TouchScreenKeyboard.Status.Visible)return null!=this.m_Keyboard&&(this.m_ReadOnly||(this.text=this.m_Keyboard.text),this.m_Keyboard.status===UnityEngine.TouchScreenKeyboard.Status.Canceled&&(this.m_WasCanceled=!0)),void this.OnDeselect(null);this.m_Keyboard.Update();var t=this.m_Keyboard.text;if(Bridge.referenceEquals(this.m_Text,t))this.m_HideMobileInput&&this.m_Keyboard.canSetSelection||this.m_Keyboard.canGetSelection&&this.UpdateCaretFromKeyboard();else if(this.m_ReadOnly)this.m_Keyboard.text=this.m_Text;else{this.m_Text="";for(var n=0;n<t.length;++n){var i=t.charCodeAt(n);if(13!==i&&3!==i||(i=10),Bridge.staticEquals(this.onValidateInput,null)?this.characterValidation!==UnityEngine.UI.InputField.CharacterValidation.None&&(i=this.Validate(this.m_Text,this.m_Text.length,i)):i=this.onValidateInput(this.m_Text,this.m_Text.length,i),this.lineType===UnityEngine.UI.InputField.LineType.MultiLineSubmit&&10===i)return this.m_Keyboard.text=this.m_Text,void this.OnDeselect(null);0!==i&&(this.m_Text=(this.m_Text||"")+String.fromCharCode(i))}this.characterLimit>0&&this.m_Text.length>this.characterLimit&&(this.m_Text=this.m_Text.substr(0,this.characterLimit)),this.m_Keyboard.canGetSelection?this.UpdateCaretFromKeyboard():this.caretPositionInternal=(e=this.m_Text.length,this.caretSelectPositionInternal=e,e),Bridge.referenceEquals(this.m_Text,t)||(this.m_Keyboard.text=this.m_Text),this.SendOnValueChangedAndUpdateLabel()}this.m_Keyboard.status!==UnityEngine.TouchScreenKeyboard.Status.Visible&&(this.m_Keyboard.status===UnityEngine.TouchScreenKeyboard.Status.Canceled&&(this.m_WasCanceled=!0),this.OnDeselect(null))}},GetUnclampedCharacterLineFromPosition:function(e,t){if(!this.multiLine)return 0;for(var n=e.y*this.m_TextComponent.pixelsPerUnit,i=0,r=0;r<t.lineCount;++r){var s=t.lines.getItem(r).topY,a=s-t.lines.getItem(r).height;if(n>s)return n>s-.5*(s-i)?r-1:r;if(n>a)return r;i=a}return t.lineCount},GetCharacterIndexFromPosition:function(e){var t=this.m_TextComponent.cachedTextGenerator;if(0===t.lineCount)return 0;var n=this.GetUnclampedCharacterLineFromPosition(e.$clone(),t);if(n<0)return 0;if(n>=t.lineCount)return t.characterCountVisible;for(var i=t.lines.getItem(n).startCharIdx,r=UnityEngine.UI.InputField.GetLineEndPosition(t,n),s=i;s<r&&!(s>=t.characterCountVisible);s++){var a=t.characters.getItem(s),o=a.cursorPos.$clone().scale(1/this.m_TextComponent.pixelsPerUnit);if(e.x-o.x<o.x+a.charWidth/this.m_TextComponent.pixelsPerUnit-e.x)return s}return r},MayDrag:function(e){return this.IsActive()&&this.IsInteractable()&&e.button===UnityEngine.EventSystems.PointerEventData.InputButton.Left&&UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)&&(null==this.m_Keyboard||this.m_HideMobileInput)},OnBeginDrag:function(e){this.MayDrag(e)&&(this.m_UpdateDrag=!0)},OnDrag:function(e){if(this.MayDrag(e)){var t={v:new UnityEngine.Vector2};UnityEngine.RectTransformUtility.ScreenPointToLocalPointInRectangle(this.textComponent.rectTransform,e.position,e.pressEventCamera,t),this.caretSelectPositionInternal=this.GetCharacterIndexFromPosition(t.v.$clone())+this.m_DrawStart,this.MarkGeometryAsDirty(),this.m_DragPositionOutOfBounds=!UnityEngine.RectTransformUtility.RectangleContainsScreenPoint$1(this.textComponent.rectTransform,e.position,e.pressEventCamera),this.m_DragPositionOutOfBounds&&null==this.m_DragCoroutine&&(this.m_DragCoroutine=this.StartCoroutine$1(this.MouseDragOutsideRect(e))),e.Use()}},MouseDragOutsideRect:function(e){var t,n,i,r=0,s=new Bridge.GeneratorEnumerator(Bridge.fn.bind(this,(function(){try{for(;;)switch(r){case 0:if(this.m_UpdateDrag&&this.m_DragPositionOutOfBounds){r=1;continue}r=3;continue;case 1:return t={v:new UnityEngine.Vector2},UnityEngine.RectTransformUtility.ScreenPointToLocalPointInRectangle(this.textComponent.rectTransform,e.position,e.pressEventCamera,t),n=this.textComponent.rectTransform.rect.$clone(),this.multiLine?t.v.y>n.yMax?this.MoveUp$1(!0,!0):t.v.y<n.yMin&&this.MoveDown$1(!0,!0):t.v.x<n.xMin?this.MoveLeft(!0,!1):t.v.x>n.xMax&&this.MoveRight(!0,!1),this.UpdateLabel(),i=this.multiLine?UnityEngine.UI.InputField.kVScrollSpeed:UnityEngine.UI.InputField.kHScrollSpeed,null==this.m_WaitForSecondsRealtime||(this.m_WaitForSecondsRealtime.waitTime=i),s.current=this.m_WaitForSecondsRealtime,r=2,!0;case 2:r=0;continue;case 3:this.m_DragCoroutine=null;default:return!1}}catch(e){throw System.Exception.create(e)}})));return s},OnEndDrag:function(e){this.MayDrag(e)&&(this.m_UpdateDrag=!1)},OnPointerDown:function(e){var t;if(this.MayDrag(e)){UnityEngine.EventSystems.EventSystem.current.SetSelectedGameObject$1(this.gameObject,e);var n=this.m_AllowInput;if(UnityEngine.UI.Selectable.prototype.OnPointerDown.call(this,e),this.InPlaceEditing()||null!=this.m_Keyboard&&this.m_Keyboard.active){if(n){var i={v:new UnityEngine.Vector2};UnityEngine.RectTransformUtility.ScreenPointToLocalPointInRectangle(this.textComponent.rectTransform,e.position,e.pressEventCamera,i),this.caretSelectPositionInternal=(t=this.GetCharacterIndexFromPosition(i.v.$clone())+this.m_DrawStart,this.caretPositionInternal=t,t)}this.UpdateLabel(),e.Use()}else this.OnSelect(e)}},KeyPressed:function(e){var t=e.reportProperty("UnityEngine.Event.modifiers",0);UnityEngine.Debug.LogWarning$1("Not Implemented In Luna");var n=!1,i=0!=(t&UnityEngine.EventModifiers.Shift);UnityEngine.EventModifiers.Alt;switch(e.reportProperty("UnityEngine.Event.keyCode",0)){case UnityEngine.KeyCode.Backspace:this.Backspace();case UnityEngine.KeyCode.Delete:this.ForwardSpace();case UnityEngine.KeyCode.Home:this.MoveTextStart(i);case UnityEngine.KeyCode.End:this.MoveTextEnd(i);case UnityEngine.KeyCode.A:case UnityEngine.KeyCode.C:case UnityEngine.KeyCode.V:case UnityEngine.KeyCode.X:break;case UnityEngine.KeyCode.LeftArrow:this.MoveLeft(i,n);case UnityEngine.KeyCode.RightArrow:this.MoveRight(i,n);case UnityEngine.KeyCode.UpArrow:this.MoveUp(i);case UnityEngine.KeyCode.DownArrow:this.MoveDown(i);case UnityEngine.KeyCode.Return:case UnityEngine.KeyCode.KeypadEnter:this.lineType,UnityEngine.UI.InputField.LineType.MultiLineNewline;break;case UnityEngine.KeyCode.Escape:this.m_WasCanceled=!0}var r=e.reportProperty("UnityEngine.Event.character",null);this.multiLine,13!==r&&3!==r||(r=10),this.IsValidChar(r)&&this.Append(r),0===r&&this.compositionString.length>0&&this.UpdateLabel()},IsValidChar:function(e){return 127!==e},ProcessEvent:function(e){this.KeyPressed(e)},OnUpdateSelected:function(e){if(this.isFocused){for(var t=!1;pc.stubProxy.reportMethod("UnityEngine.Event.PopEvent",!1);){if(this.m_ProcessingEvent.reportProperty("UnityEngine.Event.rawType",0)===UnityEngine.EventType.KeyDown&&(t=!0,this.KeyPressed(this.m_ProcessingEvent)===UnityEngine.UI.InputField.EditState.Finish)){this.DeactivateInputField();break}switch(this.m_ProcessingEvent.reportProperty("UnityEngine.Event.type",0)){case UnityEngine.EventType.ValidateCommand:case UnityEngine.EventType.ExecuteCommand:"SelectAll"===this.m_ProcessingEvent.reportProperty("UnityEngine.Event.commandName","")&&(this.SelectAll(),t=!0)}}t&&this.UpdateLabel(),e.Use()}},GetSelectedString:function(){if(!this.hasSelection$1)return"";var e=this.caretPositionInternal,t=this.caretSelectPositionInternal;if(e>t){var n=e;e=t,t=n}return this.text.substr(e,t-e)},FindtNextWordBegin:function(){if(this.caretSelectPositionInternal+1>=this.text.length)return this.text.length;var e=System.String.indexOfAny(this.text,UnityEngine.UI.InputField.kSeparators,this.caretSelectPositionInternal+1);return-1===e?e=this.text.length:e++,e},MoveRight:function(e,t){var n,i;!this.hasSelection$1||e?(i=t?this.FindtNextWordBegin():this.caretSelectPositionInternal+1,this.caretSelectPositionInternal=(e||(this.caretPositionInternal=i),i)):this.caretPositionInternal=(n=UnityEngine.Mathf.Max(this.caretPositionInternal,this.caretSelectPositionInternal),this.caretSelectPositionInternal=n,n)},FindtPrevWordBegin:function(){if(this.caretSelectPositionInternal-2<0)return 0;var e=System.String.lastIndexOfAny(this.text,UnityEngine.UI.InputField.kSeparators,this.caretSelectPositionInternal-2);return-1===e?e=0:e++,e},MoveLeft:function(e,t){var n,i;!this.hasSelection$1||e?(i=t?this.FindtPrevWordBegin():this.caretSelectPositionInternal-1,this.caretSelectPositionInternal=(e||(this.caretPositionInternal=i),i)):this.caretPositionInternal=(n=UnityEngine.Mathf.Min(this.caretPositionInternal,this.caretSelectPositionInternal),this.caretSelectPositionInternal=n,n)},DetermineCharacterLine:function(e,t){for(var n=0;n<t.lineCount-1;++n)if(t.lines.getItem(n+1).startCharIdx>e)return n;return t.lineCount-1},LineUpCharacterPosition:function(e,t){if(e>=this.cachedInputTextGenerator.characters.Count)return 0;var n=this.cachedInputTextGenerator.characters.getItem(e),i=this.DetermineCharacterLine(e,this.cachedInputTextGenerator);if(i<=0)return t?0:e;for(var r=this.cachedInputTextGenerator.lines.getItem(i).startCharIdx-1,s=this.cachedInputTextGenerator.lines.getItem(i-1).startCharIdx;s<r;++s)if(this.cachedInputTextGenerator.characters.getItem(s).cursorPos.x>=n.cursorPos.x)return s;return r},LineDownCharacterPosition:function(e,t){if(e>=this.cachedInputTextGenerator.characterCountVisible)return this.text.length;var n=this.cachedInputTextGenerator.characters.getItem(e),i=this.DetermineCharacterLine(e,this.cachedInputTextGenerator);if(i+1>=this.cachedInputTextGenerator.lineCount)return t?this.text.length:e;for(var r=UnityEngine.UI.InputField.GetLineEndPosition(this.cachedInputTextGenerator,i+1),s=this.cachedInputTextGenerator.lines.getItem(i+1).startCharIdx;s<r;++s)if(this.cachedInputTextGenerator.characters.getItem(s).cursorPos.x>=n.cursorPos.x)return s;return r},MoveDown:function(e){this.MoveDown$1(e,!0)},MoveDown$1:function(e,t){var n;this.hasSelection$1&&!e&&(this.caretPositionInternal=(n=UnityEngine.Mathf.Max(this.caretPositionInternal,this.caretSelectPositionInternal),this.caretSelectPositionInternal=n,n));var i=this.multiLine?this.LineDownCharacterPosition(this.caretSelectPositionInternal,t):this.text.length;e?this.caretSelectPositionInternal=i:this.caretPositionInternal=(this.caretSelectPositionInternal=i,i)},MoveUp:function(e){this.MoveUp$1(e,!0)},MoveUp$1:function(e,t){var n;this.hasSelection$1&&!e&&(this.caretPositionInternal=(n=UnityEngine.Mathf.Min(this.caretPositionInternal,this.caretSelectPositionInternal),this.caretSelectPositionInternal=n,n));var i=this.multiLine?this.LineUpCharacterPosition(this.caretSelectPositionInternal,t):0;this.caretSelectPositionInternal=(e||(this.caretPositionInternal=i),i)},Delete:function(){this.m_ReadOnly||this.caretPositionInternal!==this.caretSelectPositionInternal&&(this.caretPositionInternal<this.caretSelectPositionInternal?(this.m_Text=(this.text.substr(0,this.caretPositionInternal)||"")+(this.text.substr(this.caretSelectPositionInternal,this.text.length-this.caretSelectPositionInternal)||""),this.caretSelectPositionInternal=this.caretPositionInternal):(this.m_Text=(this.text.substr(0,this.caretSelectPositionInternal)||"")+(this.text.substr(this.caretPositionInternal,this.text.length-this.caretPositionInternal)||""),this.caretPositionInternal=this.caretSelectPositionInternal))},ForwardSpace:function(){this.m_ReadOnly||(this.hasSelection$1?(this.Delete(),this.SendOnValueChangedAndUpdateLabel()):this.caretPositionInternal<this.text.length&&(this.m_Text=System.String.remove(this.text,this.caretPositionInternal,1),this.SendOnValueChangedAndUpdateLabel()))},Backspace:function(){var e;this.m_ReadOnly||(this.hasSelection$1?(this.Delete(),this.SendOnValueChangedAndUpdateLabel()):this.caretPositionInternal>0&&(this.m_Text=System.String.remove(this.text,this.caretPositionInternal-1,1),this.caretSelectPositionInternal=(e=this.caretPositionInternal-1,this.caretPositionInternal=e,e),this.SendOnValueChangedAndUpdateLabel()))},Insert:function(e){var t;if(!this.m_ReadOnly){var n=String.fromCharCode(e);this.Delete(),this.characterLimit>0&&this.text.length>=this.characterLimit||(this.m_Text=System.String.insert(this.m_CaretPosition,this.text,n),this.caretSelectPositionInternal=(t=this.caretPositionInternal+n.length,this.caretPositionInternal=t,t),this.SendOnValueChanged())}},SendOnValueChangedAndUpdateLabel:function(){this.SendOnValueChanged(),this.UpdateLabel()},SendOnValueChanged:function(){null!=this.onValueChanged&&this.onValueChanged.Invoke(this.text)},SendOnSubmit:function(){null!=this.onEndEdit&&this.onEndEdit.Invoke(this.m_Text)},Append$1:function(e){if(!this.m_ReadOnly&&this.InPlaceEditing())for(var t=0,n=e.length;t<n;++t){var i=e.charCodeAt(t);(i>=32||9===i||13===i||10===i||10===i)&&this.Append(i)}},Append:function(e){if(!System.Char.isSurrogate(e)&&!(this.m_ReadOnly||this.text.length>=UnityEngine.UI.InputField.k_MaxTextLength)&&this.InPlaceEditing()){var t=Math.min(this.selectionFocusPosition,this.selectionAnchorPosition);Bridge.staticEquals(this.onValidateInput,null)?this.characterValidation!==UnityEngine.UI.InputField.CharacterValidation.None&&(e=this.Validate(this.text,t,e)):e=this.onValidateInput(this.text,t,e),0!==e&&this.Insert(e)}},UpdateLabel:function(){if(UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)&&null!=this.m_TextComponent.font&&!this.m_PreventFontCallback){var e,t;this.m_PreventFontCallback=!0,e=this.compositionString.length>0?(this.text.substr(0,this.m_CaretPosition)||"")+(this.compositionString||"")+(this.text.substr(this.m_CaretPosition)||""):this.text,t=this.inputType===UnityEngine.UI.InputField.InputType.Password?System.String.fromCharCount(this.asteriskChar,e.length):e;var n=System.String.isNullOrEmpty(e);if(UnityEngine.MonoBehaviour.op_Inequality(this.m_Placeholder,null)&&(this.m_Placeholder.enabled=n),this.m_AllowInput||(this.m_DrawStart=0,this.m_DrawEnd=this.m_Text.length),!n){var i=this.m_TextComponent.rectTransform.rect.size.$clone(),r=this.m_TextComponent.GetGenerationSettings(i.$clone());r.generateOutOfBounds=!0,this.cachedInputTextGenerator.PopulateWithErrors(t,r.$clone(),this.gameObject),this.SetDrawRangeToContainCaretPosition(this.caretSelectPositionInternal),t=t.substr(this.m_DrawStart,UnityEngine.Mathf.Min(this.m_DrawEnd,t.length)-this.m_DrawStart),this.SetCaretVisible()}this.m_TextComponent.text=t,this.MarkGeometryAsDirty(),this.m_PreventFontCallback=!1}},IsSelectionVisible:function(){return!(this.m_DrawStart>this.caretPositionInternal||this.m_DrawStart>this.caretSelectPositionInternal||this.m_DrawEnd<this.caretPositionInternal||this.m_DrawEnd<this.caretSelectPositionInternal)},SetDrawRangeToContainCaretPosition:function(e){if(!(this.cachedInputTextGenerator.lineCount<=0)){var t=this.cachedInputTextGenerator.rectExtents.size.$clone();if(this.multiLine){var n=this.cachedInputTextGenerator.lines,i=this.DetermineCharacterLine(e,this.cachedInputTextGenerator);if(e>this.m_DrawEnd){this.m_DrawEnd=UnityEngine.UI.InputField.GetLineEndPosition(this.cachedInputTextGenerator,i);var r=n.getItem(i).topY-n.getItem(i).height;i===n.Count-1&&(r+=n.getItem(i).leading);for(var s=i;s>0&&!(n.getItem(s-1).topY-r>t.y);)s--;this.m_DrawStart=UnityEngine.UI.InputField.GetLineStartPosition(this.cachedInputTextGenerator,s)}else{e<this.m_DrawStart&&(this.m_DrawStart=UnityEngine.UI.InputField.GetLineStartPosition(this.cachedInputTextGenerator,i));var a=this.DetermineCharacterLine(this.m_DrawStart,this.cachedInputTextGenerator),o=a,l=n.getItem(a).topY,c=n.getItem(o).topY-n.getItem(o).height;for(o===n.Count-1&&(c+=n.getItem(o).leading);o<n.Count-1&&(c=n.getItem(o+1).topY-n.getItem(o+1).height,o+1===n.Count-1&&(c+=n.getItem(o+1).leading),!(l-c>t.y));)++o;for(this.m_DrawEnd=UnityEngine.UI.InputField.GetLineEndPosition(this.cachedInputTextGenerator,o);a>0&&!((l=n.getItem(a-1).topY)-c>t.y);)a--;this.m_DrawStart=UnityEngine.UI.InputField.GetLineStartPosition(this.cachedInputTextGenerator,a)}}else{var u=this.cachedInputTextGenerator.characters;this.m_DrawEnd>this.cachedInputTextGenerator.characterCountVisible&&(this.m_DrawEnd=this.cachedInputTextGenerator.characterCountVisible);var h=0;if(e>this.m_DrawEnd||e===this.m_DrawEnd&&this.m_DrawStart>0){for(this.m_DrawEnd=e,this.m_DrawStart=this.m_DrawEnd-1;this.m_DrawStart>=0&&!(h+u.getItem(this.m_DrawStart).charWidth>t.x);--this.m_DrawStart)h+=u.getItem(this.m_DrawStart).charWidth;++this.m_DrawStart}else e<this.m_DrawStart&&(this.m_DrawStart=e),this.m_DrawEnd=this.m_DrawStart;for(;this.m_DrawEnd<this.cachedInputTextGenerator.characterCountVisible&&!((h+=u.getItem(this.m_DrawEnd).charWidth)>t.x);++this.m_DrawEnd);}}},ForceLabelUpdate:function(){this.UpdateLabel()},MarkGeometryAsDirty:function(){UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this)},Rebuild:function(e){e===UnityEngine.UI.CanvasUpdate.LatePreRender&&this.UpdateGeometry()},LayoutComplete:function(){},GraphicUpdateComplete:function(){},UpdateGeometry:function(){if(this.shouldHideMobileInput){if(UnityEngine.Component.op_Equality(this.m_CachedInputRenderer,null)&&UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)){var e=new UnityEngine.GameObject.$ctor4((this.transform.name||"")+" Input Caret",[UnityEngine.RectTransform,UnityEngine.CanvasRenderer]);e.hideFlags=UnityEngine.HideFlags.DontSave,e.transform.SetParent(this.m_TextComponent.transform.parent),e.transform.SetAsFirstSibling(),e.layer=this.gameObject.layer,this.caretRectTrans=e.GetComponent(UnityEngine.RectTransform),this.m_CachedInputRenderer=e.GetComponent(UnityEngine.CanvasRenderer),this.m_CachedInputRenderer.SetMaterial$1(this.m_TextComponent.GetModifiedMaterial(UnityEngine.UI.Graphic.defaultGraphicMaterial),UnityEngine.Texture2D.whiteTexture),e.AddComponent(UnityEngine.UI.LayoutElement).ignoreLayout=!0,this.AssignPositioningIfNeeded()}UnityEngine.Component.op_Equality(this.m_CachedInputRenderer,null)||(this.OnFillVBO(this.mesh),this.m_CachedInputRenderer.SetMesh(this.mesh))}},AssignPositioningIfNeeded:function(){var e,t;!UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)||!UnityEngine.Component.op_Inequality(this.caretRectTrans,null)||pc.Vec3.equals(this.caretRectTrans.localPosition,this.m_TextComponent.rectTransform.localPosition)&&(e=this.caretRectTrans.localRotation,t=this.m_TextComponent.rectTransform.localRotation,!(null==e&&null!=t||null!=e&&null==t||null!=e&&!e.equals(t)))&&pc.Vec3.equals(this.caretRectTrans.localScale,this.m_TextComponent.rectTransform.localScale)&&pc.Vec2.equals(this.caretRectTrans.anchorMin,this.m_TextComponent.rectTransform.anchorMin)&&pc.Vec2.equals(this.caretRectTrans.anchorMax,this.m_TextComponent.rectTransform.anchorMax)&&pc.Vec2.equals(this.caretRectTrans.anchoredPosition,this.m_TextComponent.rectTransform.anchoredPosition)&&pc.Vec2.equals(this.caretRectTrans.sizeDelta,this.m_TextComponent.rectTransform.sizeDelta)&&pc.Vec2.equals(this.caretRectTrans.pivot,this.m_TextComponent.rectTransform.pivot)||(this.caretRectTrans.localPosition=this.m_TextComponent.rectTransform.localPosition.$clone(),this.caretRectTrans.localRotation=this.m_TextComponent.rectTransform.localRotation.$clone(),this.caretRectTrans.localScale=this.m_TextComponent.rectTransform.localScale.$clone(),this.caretRectTrans.anchorMin=this.m_TextComponent.rectTransform.anchorMin.$clone(),this.caretRectTrans.anchorMax=this.m_TextComponent.rectTransform.anchorMax.$clone(),this.caretRectTrans.anchoredPosition=this.m_TextComponent.rectTransform.anchoredPosition.$clone(),this.caretRectTrans.sizeDelta=this.m_TextComponent.rectTransform.sizeDelta.$clone(),this.caretRectTrans.pivot=this.m_TextComponent.rectTransform.pivot.$clone())},OnFillVBO:function(e){var t=new UnityEngine.UI.VertexHelper.ctor;try{if(!this.isFocused)return void t.FillMesh(e);var n=this.m_TextComponent.PixelAdjustPoint(pc.Vec2.ZERO.clone());this.hasSelection$1?this.GenerateHightlight(t,n.$clone()):this.GenerateCaret(t,n.$clone()),t.FillMesh(e)}finally{Bridge.hasValue(t)&&t.System$IDisposable$Dispose()}},GenerateCaret:function(e,t){if(this.m_CaretVisible){null==this.m_CursorVerts&&this.CreateCursorVerts();var n=this.m_CaretWidth,i=UnityEngine.Mathf.Max(0,this.caretPositionInternal-this.m_DrawStart),r=this.m_TextComponent.cachedTextGenerator;if(null!=r&&0!==r.lineCount){var s=pc.Vec2.ZERO.clone(),a=this.textComponent.rectTransform.handle.element._pivotPoint.$clone(),o=new pc.Vec3(-a.x,-a.y,0).add(r.handle.offset);if(i<r.characters.Count){var l=r.characters.getItem(i);s.x=l.cursorPos.x}else if(0!==r.characters.Count){var c=r.characters.getItem(r.characters.Count-1);s.x=c.cursorPos.x+c.charWidth}else s.x=o.x;s.x/=this.m_TextComponent.pixelsPerUnit,s.x>this.m_TextComponent.rectTransform.rect.xMax&&(s.x=this.m_TextComponent.rectTransform.rect.xMax);var u=this.DetermineCharacterLine(i,r);s.y=(0!==r.characters.Count?r.lines.getItem(u).topY:o.y+r.lines.getItem(u).height)/this.m_TextComponent.pixelsPerUnit;for(var h=r.lines.getItem(u).height/this.m_TextComponent.pixelsPerUnit,d=0;d<this.m_CursorVerts.length;d++)this.m_CursorVerts[d].color=UnityEngine.Color32.op_Implicit$1(this.caretColor.$clone());if(this.m_CursorVerts[0].position=new pc.Vec3(s.x,s.y-h,0),this.m_CursorVerts[1].position=new pc.Vec3(s.x+n,s.y-h,0),this.m_CursorVerts[2].position=new pc.Vec3(s.x+n,s.y,0),this.m_CursorVerts[3].position=new pc.Vec3(s.x,s.y,0),!pc.Vec2.equals(t,pc.Vec2.ZERO.clone()))for(var m=0;m<this.m_CursorVerts.length;m++){var g=this.m_CursorVerts[m].$clone();g.position.x+=t.x,g.position.y+=t.y}e.AddUIVertexQuad(this.m_CursorVerts);var $=UnityEngine.Screen.height,p=this.m_TextComponent.canvas.targetDisplay;p>0&&p<UnityEngine.Display.displays.length&&($=UnityEngine.Display.displays[p].renderingHeight),s.y=$-s.y}}},CreateCursorVerts:function(){this.m_CursorVerts=System.Array.init(4,(function(){return new UnityEngine.UIVertex}),UnityEngine.UIVertex);for(var e=0;e<this.m_CursorVerts.length;e++)this.m_CursorVerts[e]=UnityEngine.UIVertex.simpleVert.$clone(),this.m_CursorVerts[e].uv0=pc.Vec2.ZERO.clone()},GenerateHightlight:function(e,t){var n=UnityEngine.Mathf.Max(0,this.caretPositionInternal-this.m_DrawStart),i=UnityEngine.Mathf.Max(0,this.caretSelectPositionInternal-this.m_DrawStart);if(n>i){var r=n;n=i,i=r}i-=1;var s=this.m_TextComponent.cachedTextGenerator;if(!(s.lineCount<=0)){var a=this.DetermineCharacterLine(n,s),o=UnityEngine.UI.InputField.GetLineEndPosition(s,a),l=UnityEngine.UIVertex.simpleVert.$clone();l.uv0=pc.Vec2.ZERO.clone(),l.color=UnityEngine.Color32.op_Implicit$1(this.selectionColor.$clone());for(var c=n;c<=i&&c<s.characterCount;){if(c===o||c===i){var u=s.characters.getItem(n),h=s.characters.getItem(c),d=new pc.Vec2(u.cursorPos.x/this.m_TextComponent.pixelsPerUnit,s.lines.getItem(a).topY/this.m_TextComponent.pixelsPerUnit),m=new pc.Vec2((h.cursorPos.x+h.charWidth)/this.m_TextComponent.pixelsPerUnit,d.y-s.lines.getItem(a).height/this.m_TextComponent.pixelsPerUnit);(m.x>this.m_TextComponent.rectTransform.rect.xMax||m.x<this.m_TextComponent.rectTransform.rect.xMin)&&(m.x=this.m_TextComponent.rectTransform.rect.xMax);var g=e.currentVertCount;l.position=new pc.Vec3(d.x,m.y,0).add(UnityEngine.Vector3.FromVector2(t)),e.AddVert(l.$clone()),l.position=new pc.Vec3(m.x,m.y,0).add(UnityEngine.Vector3.FromVector2(t)),e.AddVert(l.$clone()),l.position=new pc.Vec3(m.x,d.y,0).add(UnityEngine.Vector3.FromVector2(t)),e.AddVert(l.$clone()),l.position=new pc.Vec3(d.x,d.y,0).add(UnityEngine.Vector3.FromVector2(t)),e.AddVert(l.$clone()),e.AddTriangle(g,g+1,g+2),e.AddTriangle(g+2,g+3,g+0),n=c+1,a++,o=UnityEngine.UI.InputField.GetLineEndPosition(s,a)}c++}}},Validate:function(e,t,n){if(this.characterValidation===UnityEngine.UI.InputField.CharacterValidation.None||!this.enabled)return n;if(this.characterValidation===UnityEngine.UI.InputField.CharacterValidation.Integer||this.characterValidation===UnityEngine.UI.InputField.CharacterValidation.Decimal){var i=0===t&&e.length>0&&45===e.charCodeAt(0),r=e.length>0&&45===e.charCodeAt(0)&&(0===this.caretPositionInternal&&this.caretSelectPositionInternal>0||0===this.caretSelectPositionInternal&&this.caretPositionInternal>0),s=0===this.caretPositionInternal||0===this.caretSelectPositionInternal;if(!i||r){if(n>=48&&n<=57)return n;if(45===n&&(0===t||s))return n;if(46===n&&this.characterValidation===UnityEngine.UI.InputField.CharacterValidation.Decimal&&!System.String.contains(e,"."))return n}}else if(this.characterValidation===UnityEngine.UI.InputField.CharacterValidation.Alphanumeric){if(n>=65&&n<=90)return n;if(n>=97&&n<=122)return n;if(n>=48&&n<=57)return n}else if(this.characterValidation===UnityEngine.UI.InputField.CharacterValidation.Name){if(System.Char.isLetter(n))return!Bridge.isLower(n)||0!==t&&32!==e.charCodeAt(t-1)?Bridge.isUpper(n)&&t>0&&32!==e.charCodeAt(t-1)&&39!==e.charCodeAt(t-1)?String.fromCharCode(n).toLowerCase().charCodeAt(0):n:String.fromCharCode(n).toUpperCase().charCodeAt(0);if(39===n&&!System.String.contains(e,"'")&&!(t>0&&(32===e.charCodeAt(t-1)||39===e.charCodeAt(t-1))||t<e.length&&(32===e.charCodeAt(t)||39===e.charCodeAt(t))))return n;if(32===n&&!(t>0&&(32===e.charCodeAt(t-1)||39===e.charCodeAt(t-1))||t<e.length&&(32===e.charCodeAt(t)||39===e.charCodeAt(t))))return n}else if(this.characterValidation===UnityEngine.UI.InputField.CharacterValidation.EmailAddress){if(n>=65&&n<=90)return n;if(n>=97&&n<=122)return n;if(n>=48&&n<=57)return n;if(64===n&&-1===System.String.indexOf(e,"@"))return n;if(-1!==System.String.indexOf(UnityEngine.UI.InputField.kEmailSpecialCharacters,String.fromCharCode(n)))return n;if(46===n){var a=e.length>0?e.charCodeAt(Math.max(0,Math.min(t,e.length-1))):32,o=e.length>0?e.charCodeAt(Math.max(0,Math.min(t+1,e.length-1))):10;if(46!==a&&46!==o)return n}}return 0},ActivateInputField:function(){!UnityEngine.MonoBehaviour.op_Equality(this.m_TextComponent,null)&&null!=this.m_TextComponent.font&&this.IsActive()&&this.IsInteractable()&&(this.isFocused&&(null==this.m_Keyboard||this.m_Keyboard.active||(this.m_Keyboard.active=!0,this.m_Keyboard.text=this.m_Text)),this.m_ShouldActivateNextUpdate=!0)},ActivateInputFieldInternal:function(){UnityEngine.MonoBehaviour.op_Equality(UnityEngine.EventSystems.EventSystem.current,null)||(UnityEngine.GameObject.op_Inequality(UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject,this.gameObject)&&UnityEngine.EventSystems.EventSystem.current.SetSelectedGameObject(this.gameObject),UnityEngine.TouchScreenKeyboard.isSupported?(this.input.touchSupported&&(UnityEngine.TouchScreenKeyboard.hideInput=this.shouldHideMobileInput),this.m_Keyboard=this.inputType===UnityEngine.UI.InputField.InputType.Password?UnityEngine.TouchScreenKeyboard.Open$7(this.m_Text,this.keyboardType,!1,this.multiLine,!0,!1,"",this.characterLimit):UnityEngine.TouchScreenKeyboard.Open$7(this.m_Text,this.keyboardType,this.inputType===UnityEngine.UI.InputField.InputType.AutoCorrect,this.multiLine,!1,!1,"",this.characterLimit),this.m_Keyboard.AttachWebInput(this.webInput),this.MoveTextEnd(!1)):this.OnFocus(),this.m_AllowInput=!0,this.m_OriginalText=this.text,this.m_WasCanceled=!1,this.SetCaretVisible(),this.UpdateLabel())},OnSelect:function(e){UnityEngine.UI.Selectable.prototype.OnSelect.call(this,e),this.shouldActivateOnSelect&&this.ActivateInputField()},OnPointerClick:function(e){e.button===UnityEngine.EventSystems.PointerEventData.InputButton.Left&&this.ActivateInputField()},DeactivateInputField:function(){this.m_AllowInput&&(this.m_HasDoneFocusTransition=!1,this.m_AllowInput=!1,UnityEngine.MonoBehaviour.op_Inequality(this.m_Placeholder,null)&&(this.m_Placeholder.enabled=System.String.isNullOrEmpty(this.m_Text)),UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)&&this.IsInteractable()&&(this.m_WasCanceled&&(this.text=this.m_OriginalText),this.SendOnSubmit(),null!=this.m_Keyboard&&(this.m_Keyboard.active=!1,this.m_Keyboard.DetachWebInput(this.webInput),this.m_Keyboard=null),this.m_CaretPosition=this.m_CaretSelectPosition=0),this.MarkGeometryAsDirty())},OnDeselect:function(e){},OnSubmit:function(e){this.IsActive()&&this.IsInteractable()&&(this.isFocused||(this.m_ShouldActivateNextUpdate=!0))},EnforceContentType:function(){switch(this.contentType){case UnityEngine.UI.InputField.ContentType.Standard:case UnityEngine.UI.InputField.ContentType.Autocorrected:case UnityEngine.UI.InputField.ContentType.IntegerNumber:case UnityEngine.UI.InputField.ContentType.DecimalNumber:case UnityEngine.UI.InputField.ContentType.Alphanumeric:case UnityEngine.UI.InputField.ContentType.Name:case UnityEngine.UI.InputField.ContentType.EmailAddress:case UnityEngine.UI.InputField.ContentType.Password:case UnityEngine.UI.InputField.ContentType.Pin:}this.EnforceTextHOverflow()},EnforceTextHOverflow:function(){UnityEngine.MonoBehaviour.op_Inequality(this.m_TextComponent,null)&&(this.multiLine?this.m_TextComponent.horizontalOverflow=UnityEngine.HorizontalWrapMode.Wrap:this.m_TextComponent.horizontalOverflow=UnityEngine.HorizontalWrapMode.Overflow)},SetToCustomIfContentTypeIsNot:function(e){if(void 0===e&&(e=[]),this.contentType!==UnityEngine.UI.InputField.ContentType.Custom)for(var t=0;t<e.length;t++)if(this.contentType===e[t])return},SetToCustom:function(){this.contentType,UnityEngine.UI.InputField.ContentType.Custom},DoStateTransition:function(e,t){this.m_HasDoneFocusTransition?e=UnityEngine.UI.Selectable.SelectionState.Highlighted:e===UnityEngine.UI.Selectable.SelectionState.Pressed&&(this.m_HasDoneFocusTransition=!0),UnityEngine.UI.Selectable.prototype.DoStateTransition.call(this,e,t)},CalculateLayoutInputHorizontal:function(){},CalculateLayoutInputVertical:function(){},Awake:function(){switch(UnityEngine.UI.Selectable.prototype.Awake.call(this),this.rt=Bridge.as(this.m_TextComponent.transform,UnityEngine.RectTransform),this.webInput=document.createElement("input"),this.webInput.style.position="absolute",this.webInput.style.background="transparent",this.webInput.style.backgroundColor="#00000000",this.webInput.style.color="#00000000",this.webInput.style.resize="none",this.webInput.style.overflow="hidden",this.webInput.style.border="0 none",this.webInput.style.outline="none",this.webInput.style.padding="0",this.webInput.style.margin="0",this.webInput.style.left="0px",this.webInput.style.top="0px",this.webInput.style.fontSize=System.String.format("{0}px",[this.textComponent.fontSize]),this.webInput.spellcheck=!1,this.webInput.style["-webkit-tap-highlight-color"]="initial",this.webInput.style["-webkit-touch-callout"]="initial",this.webInput.style["-webkit-user-select"]="initial",this.webInput.style["user-select"]="initial",this.webInput.style.zIndex=Bridge.toString(2147483647),this.webInput.autocomplete="one-time-code",this.webInput.maxLength=0===this.characterLimit?524288:this.characterLimit,this.webInput.readOnly=this.readOnly,this.EnforceContentType(),this.keyboardType){case UnityEngine.TouchScreenKeyboardType.NumbersAndPunctuation:case UnityEngine.TouchScreenKeyboardType.NumberPad:this.webInput.type="text",this.webInput.inputMode="numeric";break;case UnityEngine.TouchScreenKeyboardType.URL:this.webInput.type="url";break;case UnityEngine.TouchScreenKeyboardType.PhonePad:this.webInput.type="tel";break;case UnityEngine.TouchScreenKeyboardType.EmailAddress:this.webInput.type="email";break;case UnityEngine.TouchScreenKeyboardType.Search:this.webInput.type="search";break;case UnityEngine.TouchScreenKeyboardType.Default:case UnityEngine.TouchScreenKeyboardType.ASCIICapable:case UnityEngine.TouchScreenKeyboardType.NamePhonePad:case UnityEngine.TouchScreenKeyboardType.NintendoNetworkAccount:case UnityEngine.TouchScreenKeyboardType.Social:default:this.webInput.type="text"}if((Bridge.Browser.isiPad||Bridge.Browser.isiPhone)&&(this.selectionColor=new pc.Color(0,0,0,0)),this.webInput.addEventListener("focus",Bridge.fn.bind(this,(function(e){this.OnFocus(),this.ActivateInputField(),null!=this.m_Keyboard&&(UnityEngine.TouchScreenKeyboard.visible=!0,this.m_Keyboard.active=!0,this.m_Keyboard.status=UnityEngine.TouchScreenKeyboard.Status.Visible)}))),this.webInput.addEventListener("focusout",Bridge.fn.bind(this,(function(e){this.DeactivateInputField(),UnityEngine.UI.Selectable.prototype.OnDeselect.call(this,null),null!=this.m_Keyboard&&(UnityEngine.TouchScreenKeyboard.visible=!1,this.m_Keyboard.active=!1,this.m_Keyboard.status=UnityEngine.TouchScreenKeyboard.Status.LostFocus)}))),!UnityEngine.UI.InputField.isStyleInitialized){UnityEngine.UI.InputField.isStyleInitialized=!0;var e=document.createElement("style");e.type="text/css",e.textContent=' "\r\n input::-moz-selection {\r\n background:rgba(0, 0, 0, 0);\r\n color:#00000000;\r\n }\r\n input::-webkit-selection {\r\n background:rgba(0, 0, 0, 0);\r\n color:#00000000;\r\n }\r\n input::selection {\r\n background:rgba(0, 0, 0, 0);\r\n color:#00000000;\r\n }\r\n input::-webkit-outer-spin-button,\r\n input::-webkit-inner-spin-button {\r\n -webkit-appearance: none;\r\n margin: 0;\r\n }\r\n /* Firefox */\r\n input[type=number] {\r\n -moz-appearance: textfield;\r\n }\r\n * {\r\n -webkit-tap-highlight-color: rgba(0,0,0,0);\r\n caret-color: rgba(0,0,0,0);\r\n }\r\n html { -webkit-tap-highlight-color: rgba(0,0,0,0); }\r\n "',document.head.appendChild(e)}this.webInput.style.display=UnityEngine.UI.InputField.StyleDisplayNone,this.webInput.addEventListener("mousedown",(function(e){pc.Application.getApplication()._onMouseDown(e)})),this.webInput.addEventListener("mouseup",(function(e){pc.Application.getApplication()._onMouseUp(e)})),this.webInput.addEventListener("touchstart",(function(e){var t=document.getElementById("application-canvas");pc.Application.getApplication()._onTouchStart(new pc.TouchEvent(e,t))})),this.webInput.addEventListener("touchend",(function(e){var t=document.getElementById("application-canvas");pc.Application.getApplication()._onTouchEnd(new pc.TouchEvent(e,t))})),document.body.appendChild(this.webInput)},OnCanvasHierarchyChanged:function(){UnityEngine.UI.Selectable.prototype.OnCanvasHierarchyChanged.call(this);var e=this.AllCanvasedEnabled();this.webInput.style.display=e?UnityEngine.UI.InputField.StyleDisplayBlock:UnityEngine.UI.InputField.StyleDisplayNone},OnEnableWebInput:function(){this.canvases=this.GetComponentsInParent$1(UnityEngine.Canvas,!0);var e=this.AllCanvasedEnabled();this.shouldBeShown=e,this.webInput.style.display=e?UnityEngine.UI.InputField.StyleDisplayBlock:UnityEngine.UI.InputField.StyleDisplayNone,this.ResizeWebInput()},OnRectTransformDimensionsChange:function(){this.ResizeWebInput()},AllCanvasedEnabled:function(){for(var e=0!==this.canvases.length,t=0;t<this.canvases.length;t++)if(!this.canvases[t].enabled){e=!1;break}return e},Update:function(){var e=this.AllCanvasedEnabled();this.shouldBeShown!==e&&(this.shouldBeShown=e,this.webInput.style.display=e?UnityEngine.UI.InputField.StyleDisplayBlock:UnityEngine.UI.InputField.StyleDisplayNone),e&&this.ResizeWebInput()},OnDisableWebInput:function(){this.webInput.style.display=UnityEngine.UI.InputField.StyleDisplayNone},ResizeWebInput:function(){if(!UnityEngine.Component.op_Equality(this.rt,null)&&null!=this.webInput){var e=new pc.Vec2(UnityEngine.Screen.width,UnityEngine.Screen.height);this.rt.GetWorldCorners(this.corners);for(var t=0;t<4;t++)this.cornersScreen[t]=UnityEngine.Vector3.FromVector2(UnityEngine.RectTransformUtility.WorldToScreenPoint(null,this.corners[t].$clone()));var n=this.cornersScreen[1].$clone(),i=this.cornersScreen[2].x-this.cornersScreen[1].x,r=this.cornersScreen[1].y-this.cornersScreen[0].y,s=e.y-n.y,a=n.x;this.webInput.style.left=System.String.format("{0}px",[a]),this.webInput.style.top=System.String.format("{0}px",[s]),this.webInput.style.width=System.String.format("{0}px",[i]),this.webInput.style.height=System.String.format("{0}px",[r])}}},overloads:{"MoveDown(bool, bool)":"MoveDown$1","MoveUp(bool, bool)":"MoveUp$1","Append(string)":"Append$1"}}),Bridge.define("UnityEngine.UI.RawImage",{inherits:[UnityEngine.UI.MaskableGraphic],fields:{m_Texture:null,m_UVRect:null},props:{},ctors:{},methods:{}}),Bridge.define("UnityEngine.UI.Slider",{inherits:[UnityEngine.UI.Selectable,UnityEngine.EventSystems.IDragHandler,UnityEngine.EventSystems.IInitializePotentialDragHandler,UnityEngine.UI.ICanvasElement],fields:{m_FillRect:null,m_HandleRect:null,m_Direction:0,m_MinValue:0,m_MaxValue:0,m_WholeNumbers:!1,m_Value:0,m_OnValueChanged:null,_fillImage:null,_fillTransform:null,_fillContainerRect:null,_handleTransform:null,_handleContainerRect:null,_offset:null,_tracker:null,_delayedUpdateVisuals:!1},props:{minValue:{get:function(){return this.m_MinValue}},maxValue:{get:function(){return this.m_MaxValue}},wholeNumbers:{get:function(){return this.m_WholeNumbers}},value:{get:function(){return this.wholeNumbers?Math.round(this.m_Value):this.m_Value},set:function(e){this.Set(e)}},normalizedValue:{get:function(){return UnityEngine.Mathf.Approximately(this.minValue,this.maxValue)?0:pc.math.inverseLerp(this.minValue,this.maxValue,this.value)}},axis:{get:function(){return this.m_Direction===UnityEngine.UI.Slider.Direction.LeftToRight||this.m_Direction===UnityEngine.UI.Slider.Direction.RightToLeft?UnityEngine.UI.Slider.Axis.Horizontal:UnityEngine.UI.Slider.Axis.Vertical}},reverseValue:{get:function(){return this.m_Direction===UnityEngine.UI.Slider.Direction.RightToLeft||this.m_Direction===UnityEngine.UI.Slider.Direction.TopToBottom}}},alias:["IsDestroyed","UnityEngine$UI$ICanvasElement$IsDestroyed","transform","UnityEngine$UI$ICanvasElement$transform"],ctors:{init:function(){this._offset=new UnityEngine.Vector2,this._tracker=new(pc.stubProxy.generateConstructorFor("UnityEngine.DrivenRectTransformTracker")),this.m_Direction=UnityEngine.UI.Slider.Direction.LeftToRight,this.m_MinValue=0,this.m_MaxValue=1,this.m_WholeNumbers=!1,this.m_OnValueChanged=new UnityEngine.UI.Slider.SliderEvent,this._offset=pc.Vec2.ZERO.clone(),this._delayedUpdateVisuals=!1},ctor:function(){this.$initialize(),UnityEngine.UI.Selectable.ctor.call(this)}},methods:{OnEnable:function(){UnityEngine.UI.Selectable.prototype.OnEnable.call(this),this.UpdateCachedReferences(),this.Set(this.m_Value,!1),this.UpdateVisuals()},Update:function(){this._delayedUpdateVisuals&&(this._delayedUpdateVisuals=!1,this.UpdateVisuals())},UpdateCachedReferences:function(){UnityEngine.Object.op_Implicit(this.m_FillRect)&&UnityEngine.Component.op_Inequality(this.m_FillRect,Bridge.cast(this.transform,UnityEngine.RectTransform))?(this._fillTransform=this.m_FillRect.transform,this._fillImage=this.m_FillRect.GetComponent(UnityEngine.UI.Image),UnityEngine.Component.op_Inequality(this._fillTransform.parent,null)&&(this._fillContainerRect=this._fillTransform.parent.GetComponent(UnityEngine.RectTransform))):(this.m_FillRect=null,this._fillContainerRect=null,this._fillImage=null),UnityEngine.Object.op_Implicit(this.m_HandleRect)&&UnityEngine.Component.op_Inequality(this.m_HandleRect,Bridge.cast(this.transform,UnityEngine.RectTransform))?(this._handleTransform=this.m_HandleRect.transform,UnityEngine.Component.op_Inequality(this._handleTransform.parent,null)&&(this._handleContainerRect=this._handleTransform.parent.GetComponent(UnityEngine.RectTransform))):(this.m_HandleRect=null,this._handleContainerRect=null)},ClampValue:function(e){var t=Math.max(this.minValue,Math.min(e,this.maxValue));return this.wholeNumbers&&(t=Math.round(t)),t},Set:function(e,t){void 0===t&&(t=!0);var n=this.ClampValue(e);this.m_Value!==n&&(this.m_Value=n,this.UpdateVisuals(),t&&this.m_OnValueChanged.Invoke(n))},OnRectTransformDimensionsChange:function(){UnityEngine.UI.Selectable.prototype.OnRectTransformDimensionsChange.call(this),this.IsActive()&&this.UpdateVisuals()},UpdateVisuals:function(){var e;if(this._tracker.reportMethod("UnityEngine.DrivenRectTransformTracker.Clear",null),UnityEngine.Component.op_Inequality(this._fillContainerRect,null)){this._tracker.reportMethod("UnityEngine.DrivenRectTransformTracker.Add",null);var t=pc.Vec2.ZERO.clone(),n=pc.Vec2.ONE.clone();UnityEngine.MonoBehaviour.op_Inequality(this._fillImage,null)&&this._fillImage.type===UnityEngine.UI.Image.Type.Filled?this._fillImage.fillAmount=this.normalizedValue:this.reverseValue?t.setitem(this.axis,1-this.normalizedValue):n.setitem(this.axis,this.normalizedValue),this.m_FillRect.anchorMin=t.$clone(),this.m_FillRect.anchorMax=n.$clone()}if(UnityEngine.Component.op_Inequality(this._handleContainerRect,null)){this._tracker.reportMethod("UnityEngine.DrivenRectTransformTracker.Add",null);var i=pc.Vec2.ZERO.clone(),r=pc.Vec2.ONE.clone();i.setitem(this.axis,(e=this.reverseValue?1-this.normalizedValue:this.normalizedValue,r.setitem(this.axis,e),e)),this.m_HandleRect.anchorMin=i.$clone(),this.m_HandleRect.anchorMax=r.$clone()}},ConfigureForEntity:function(e){UnityEngine.UI.Selectable.prototype.ConfigureForEntity.call(this,e),e.element["UnityEngine.UI.Slider"]=this}}}),Bridge.define("UnityEngine.UI.Text",{inherits:[UnityEngine.UI.MaskableGraphic,UnityEngine.UI.ILayoutElement],fields:{m_FontData:null,m_Text:null},props:{material:{get:function(){return null!=this.m_Material?this.m_Material:this.defaultMaterial}},fontData:{get:function(){return this.m_FontData}},mainTexture:{get:function(){return null!=this.fontData&&null!=this.fontData.font&&null!=this.fontData.font.handle?UnityEngine.Object.FromHandle(UnityEngine.Texture,this.fontData.font.handle.texture):null!=this.m_Material?this.m_Material.mainTexture:Bridge.ensureBaseProperty(this,"mainTexture").$UnityEngine$UI$Graphic$mainTexture}},text:{set:function(e){if(System.String.isNullOrEmpty(e)){if(System.String.isNullOrEmpty(this.m_Text))return;this.m_Text="",this.handle.entity.element.text=e,this.SetVerticesDirty()}else Bridge.referenceEquals(this.m_Text,e)||(this.m_Text=e,this.handle.entity.element.text=e,this.SetVerticesDirty(),this.SetLayoutDirty())}}},alias:["flexibleHeight","UnityEngine$UI$ILayoutElement$flexibleHeight","flexibleWidth","UnityEngine$UI$ILayoutElement$flexibleWidth","layoutPriority","UnityEngine$UI$ILayoutElement$layoutPriority","minHeight","UnityEngine$UI$ILayoutElement$minHeight","minWidth","UnityEngine$UI$ILayoutElement$minWidth","preferredWidth","UnityEngine$UI$ILayoutElement$preferredWidth","preferredHeight","UnityEngine$UI$ILayoutElement$preferredHeight"],ctors:{init:function(){this.m_FontData=UnityEngine.UI.FontData.defaultFontData,this.m_Text=""},ctor:function(){this.$initialize(),UnityEngine.UI.MaskableGraphic.$ctor1.call(this,null)}},methods:{ConfigureForEntity:function(e){UnityEngine.UI.MaskableGraphic.prototype.ConfigureForEntity.call(this,e),e.element.type="text"},Awake:function(){UnityEngine.UI.MaskableGraphic.prototype.Awake.call(this),this.handle.entity.element["UnityEngine.UI.Text"]=this,this.handle.entity.element._text.enabled=this.handle.enabled,this.ApplyFontDataChanges()},OnEnable:function(){UnityEngine.UI.MaskableGraphic.prototype.OnEnable.call(this),null!=this.handle.entity.element&&(this.handle.entity.element._text.enabled=!0,this.SetAllDirty())},ApplyFontDataChanges:function(){var e,t=this.handle.entity.element;switch(t._text.font=null!=(e=this.m_FontData.font)?e.handle:null,t.color=this.m_Color.$clone(),t._text.fontSize=this.m_FontData.fontSize,t._text.minFontSize=this.m_FontData.minSize,t._text.maxFontSize=this.m_FontData.maxSize,t._text.bestFit=this.m_FontData.bestFit,t._text.lineSpacing=this.m_FontData.lineSpacing,t._text.horizontalWrap=this.m_FontData.horizontalOverflow===UnityEngine.HorizontalWrapMode.Wrap,t._text.verticalOverflow=this.m_FontData.verticalOverflow===UnityEngine.VerticalWrapMode.Overflow,t.material=null!=this.m_Material?this.m_Material.handle:null,this.m_FontData.alignment){case UnityEngine.TextAnchor.LowerCenter:t._text.align=pc.TEXT_ALIGN_CENTER,t._text.verticalAlign=pc.TEXT_VERTICAL_ALIGN_BOTTOM;break;case UnityEngine.TextAnchor.LowerLeft:t._text.align=pc.TEXT_ALIGN_LEFT,t._text.verticalAlign=pc.TEXT_VERTICAL_ALIGN_BOTTOM;break;case UnityEngine.TextAnchor.LowerRight:t._text.align=pc.TEXT_ALIGN_RIGHT,t._text.verticalAlign=pc.TEXT_VERTICAL_ALIGN_BOTTOM;break;case UnityEngine.TextAnchor.MiddleCenter:t._text.align=pc.TEXT_ALIGN_CENTER,t._text.verticalAlign=pc.TEXT_VERTICAL_ALIGN_MIDDLE;break;case UnityEngine.TextAnchor.MiddleLeft:t._text.align=pc.TEXT_ALIGN_LEFT,t._text.verticalAlign=pc.TEXT_VERTICAL_ALIGN_MIDDLE;break;case UnityEngine.TextAnchor.MiddleRight:t._text.align=pc.TEXT_ALIGN_RIGHT,t._text.verticalAlign=pc.TEXT_VERTICAL_ALIGN_MIDDLE;break;case UnityEngine.TextAnchor.UpperCenter:t._text.align=pc.TEXT_ALIGN_CENTER,t._text.verticalAlign=pc.TEXT_VERTICAL_ALIGN_TOP;break;case UnityEngine.TextAnchor.UpperLeft:t._text.align=pc.TEXT_ALIGN_LEFT,t._text.verticalAlign=pc.TEXT_VERTICAL_ALIGN_TOP;break;case UnityEngine.TextAnchor.UpperRight:t._text.align=pc.TEXT_ALIGN_RIGHT,t._text.verticalAlign=pc.TEXT_VERTICAL_ALIGN_TOP}t.text=this.m_Text,this.SetAllDirty()}}}),Bridge.define("UnityEngine.UI.HorizontalLayoutGroup",{inherits:[UnityEngine.UI.HorizontalOrVerticalLayoutGroup],alias:["CalculateLayoutInputHorizontal","UnityEngine$UI$ILayoutElement$CalculateLayoutInputHorizontal","CalculateLayoutInputVertical","UnityEngine$UI$ILayoutElement$CalculateLayoutInputVertical","SetLayoutHorizontal","UnityEngine$UI$ILayoutController$SetLayoutHorizontal","SetLayoutVertical","UnityEngine$UI$ILayoutController$SetLayoutVertical"],ctors:{ctor:function(){this.$initialize(),UnityEngine.UI.HorizontalOrVerticalLayoutGroup.ctor.call(this)}},methods:{CalculateLayoutInputHorizontal:function(){UnityEngine.UI.HorizontalOrVerticalLayoutGroup.prototype.CalculateLayoutInputHorizontal.call(this),this.CalcAlongAxis(0,!1)},CalculateLayoutInputVertical:function(){this.CalcAlongAxis(1,!1)},SetLayoutHorizontal:function(){this.SetChildrenAlongAxis(0,!1)},SetLayoutVertical:function(){this.SetChildrenAlongAxis(1,!1)}}});var n=Bridge.setMetadata,i=["System","UnityEngine","System.Collections.Generic","UnityEngine.UI"];n("UnityEngine.UI.AnimationTriggers",(function(){}),i),n("UnityEngine.UI.ColorBlock",(function(){}),i),n("UnityEngine.UI.MaskableGraphic.CullStateChangedEvent",(function(){return{at:[new System.SerializableAttribute]}}),i),n("UnityEngine.UI.Navigation",(function(){}),i),n("UnityEngine.UI.ScrollRect.ScrollRectEvent",(function(){return{at:[new System.SerializableAttribute]}}),i),n("UnityEngine.UI.Slider.SliderEvent",(function(){return{at:[new System.SerializableAttribute]}}),i),n("UnityEngine.UI.SpriteState",(function(){}),i),n("UnityEngine.EventSystems.EventSystem",(function(){}),i),n("UnityEngine.UI.CanvasScaler",(function(){}),i),n("UnityEngine.UI.Selectable",(function(){}),i),n("UnityEngine.UI.GraphicRaycaster",(function(){}),i),n("UnityEngine.UI.MaskableGraphic",(function(){}),i),n("UnityEngine.UI.ScrollRect",(function(){}),i),n("UnityEngine.EventSystems.StandaloneInputModule",(function(){}),i),n("UnityEngine.UI.InputField",(function(){}),i),n("UnityEngine.UI.Slider",(function(){}),i)})),Bridge.assembly("UnityEngine.UniversalRenderPipeline",(function(e,t){Bridge.setMetadata})),Bridge.assembly("TextMeshPro",(function(e,t){Bridge.define("TMPro.ColorMode",{$kind:6,statics:{fields:{Single:0,HorizontalGradient:1,VerticalGradient:2,FourCornersGradient:3}}}),Bridge.define("TMPro.Extents",{$kind:4,statics:{fields:{zero:null,uninitialized:null},ctors:{init:function(){this.zero=new TMPro.Extents,this.uninitialized=new TMPro.Extents,this.zero=new TMPro.Extents.$ctor1(pc.Vec2.ZERO.clone(),pc.Vec2.ZERO.clone()),this.uninitialized=new TMPro.Extents.$ctor1(new pc.Vec2(32767,32767),new pc.Vec2(-32767,-32767))}},methods:{OverrideClone:function(){TMPro.Extents.prototype.$clone=function(e){var t=e||new TMPro.Extents;return t.min.copy(this.min),t.max.copy(this.max),t}}}},fields:{min:null,max:null},ctors:{init:function(){this.min=new UnityEngine.Vector2,this.max=new UnityEngine.Vector2},$ctor1:function(e,t){this.$initialize(),this.min=e.$clone(),this.max=t.$clone()},ctor:function(){this.$initialize()}},methods:{},overloads:{"ToString()":"toString"}}),Bridge.init((function(){TMPro.Extents.OverrideClone()})),Bridge.define("TMPro.FastAction$1",(function(e){return{fields:{delegates:null,lookup:null},ctors:{},methods:{}}})),Bridge.define("TMPro.FastAction$2",(function(e,t){return{fields:{delegates:null,lookup:null},ctors:{},methods:{}}})),Bridge.define("TMPro.FastAction$3",(function(e,t,n){return{fields:{delegates:null,lookup:null},ctors:{},methods:{}}})),Bridge.define("TMPro.FontWeight",{$kind:6,statics:{fields:{Thin:100,ExtraLight:200,Light:300,Regular:400,Medium:500,SemiBold:600,Bold:700,Heavy:800,Black:900}}}),Bridge.define("TMPro.HighlightState",{$kind:4,statics:{methods:{getDefaultValue:function(){return new TMPro.HighlightState}}},fields:{color:null,padding:null},ctors:{init:function(){this.color=new UnityEngine.Color32,this.padding=new TMPro.TMP_Offset},ctor:function(){this.$initialize()}},methods:{},overloads:{"GetHashCode()":"getHashCode","Equals(object)":"equals"}}),Bridge.define("TMPro.HorizontalAlignmentOptions",{$kind:6,statics:{fields:{Left:1,Center:2,Right:4,Justified:8,Flush:16,Geometry:32}}}),Bridge.define("TMPro.MaterialReference",{$kind:4,statics:{methods:{getDefaultValue:function(){return new TMPro.MaterialReference}}},fields:{index:0,fontAsset:null,spriteAsset:null,material:null,isDefaultMaterial:!1,isFallbackMaterial:!1,fallbackMaterial:null,padding:0,referenceCount:0},ctors:{ctor:function(){this.$initialize()}},methods:{}}),Bridge.define("TMPro.RichTextTagAttribute",{$kind:4,statics:{methods:{}},fields:{nameHashCode:0,valueHashCode:0,valueType:0,valueStartIndex:0,valueLength:0,unitType:0},ctors:{ctor:function(){this.$initialize()}},methods:{}}),Bridge.define("TMPro.TMP_Text",{inherits:[UnityEngine.UI.MaskableGraphic],statics:{fields:{m_materialReferences:null,m_materialReferenceIndexLookup:null,m_materialReferenceStack:null,s_colorWhite:null,m_htmlTag:null,m_xmlAttribute:null,m_attributeParameterValues:null,m_SavedWordWrapState:null,m_SavedLineState:null,m_SavedEllipsisState:null,m_SavedLastValidState:null,m_SavedSoftLineBreakState:null,m_EllipsisInsertionCandidateStack:null,k_LargePositiveVector2:null,k_LargeNegativeVector2:null,k_LargePositiveFloat:0,k_LargeNegativeFloat:0,k_LargePositiveInt:0,k_LargeNegativeInt:0},events:{OnFontAssetRequest:null,OnSpriteAssetRequest:null},ctors:{init:function(){this.m_materialReferenceStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.MaterialReference)),this.s_colorWhite=new UnityEngine.Color32,this.m_SavedWordWrapState=new TMPro.WordWrapState,this.m_SavedLineState=new TMPro.WordWrapState,this.m_SavedEllipsisState=new TMPro.WordWrapState,this.m_SavedLastValidState=new TMPro.WordWrapState,this.m_SavedSoftLineBreakState=new TMPro.WordWrapState,this.m_EllipsisInsertionCandidateStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.WordWrapState)),this.k_LargePositiveVector2=new UnityEngine.Vector2,this.k_LargeNegativeVector2=new UnityEngine.Vector2,this.m_materialReferences=System.Array.init(4,(function(){return new TMPro.MaterialReference}),TMPro.MaterialReference),this.m_materialReferenceIndexLookup=new(System.Collections.Generic.Dictionary$2(System.Int32,System.Int32).ctor),this.m_materialReferenceStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.MaterialReference).$ctor1)(System.Array.init(16,(function(){return new TMPro.MaterialReference}),TMPro.MaterialReference)),this.s_colorWhite=new UnityEngine.Color32.$ctor1(255,255,255,255),this.m_htmlTag=System.Array.init(128,0,System.Char),this.m_xmlAttribute=System.Array.init(8,(function(){return new TMPro.RichTextTagAttribute}),TMPro.RichTextTagAttribute),this.m_attributeParameterValues=System.Array.init(16,0,System.Single),this.m_EllipsisInsertionCandidateStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.WordWrapState).$ctor3)(8,8),this.k_LargePositiveVector2=new pc.Vec2(TMPro.TMP_Math.INT_MAX,TMPro.TMP_Math.INT_MAX),this.k_LargeNegativeVector2=new pc.Vec2(TMPro.TMP_Math.INT_MIN,TMPro.TMP_Math.INT_MIN),this.k_LargePositiveFloat=32767,this.k_LargeNegativeFloat=-32767,this.k_LargePositiveInt=2147483647,this.k_LargeNegativeInt=-2147483647}}},fields:{m_text:null,m_IsTextBackingStringDirty:!1,m_TextPreprocessor:null,m_isRightToLeft:!1,m_fontAsset:null,m_currentFontAsset:null,m_isSDFShader:!1,m_sharedMaterial:null,m_currentMaterial:null,m_currentMaterialIndex:0,m_fontSharedMaterials:null,m_fontMaterial:null,m_fontMaterials:null,m_isMaterialDirty:!1,m_fontColor32:null,m_fontColor:null,m_underlineColor:null,m_strikethroughColor:null,m_enableVertexGradient:!1,m_colorMode:0,m_fontColorGradient:null,m_fontColorGradientPreset:null,m_spriteAsset:null,m_tintAllSprites:!1,m_tintSprite:!1,m_spriteColor:null,m_StyleSheet:null,m_TextStyle:null,m_TextStyleHashCode:0,m_overrideHtmlColors:!1,m_faceColor:null,m_outlineColor:null,m_outlineWidth:0,m_fontSize:0,m_currentFontSize:0,m_fontSizeBase:0,m_sizeStack:null,m_fontWeight:0,m_FontWeightInternal:0,m_FontWeightStack:null,m_enableAutoSizing:!1,m_maxFontSize:0,m_minFontSize:0,m_AutoSizeIterationCount:0,m_AutoSizeMaxIterationCount:0,m_IsAutoSizePointSizeSet:!1,m_fontSizeMin:0,m_fontSizeMax:0,m_fontStyle:0,m_FontStyleInternal:0,m_fontStyleStack:null,m_isUsingBold:!1,m_HorizontalAlignment:0,m_VerticalAlignment:0,m_textAlignment:0,m_lineJustification:0,m_lineJustificationStack:null,m_textContainerLocalCorners:null,m_characterSpacing:0,m_cSpacing:0,m_monoSpacing:0,m_wordSpacing:0,m_lineSpacing:0,m_lineSpacingDelta:0,m_lineHeight:0,m_IsDrivenLineSpacing:!1,m_lineSpacingMax:0,m_paragraphSpacing:0,m_charWidthMaxAdj:0,m_charWidthAdjDelta:0,m_enableWordWrapping:!1,m_isCharacterWrappingEnabled:!1,m_isNonBreakingSpace:!1,m_isIgnoringAlignment:!1,m_wordWrappingRatios:0,m_overflowMode:0,m_firstOverflowCharacterIndex:0,m_linkedTextComponent:null,parentLinkedComponent:null,m_isTextTruncated:!1,m_enableKerning:!1,m_GlyphHorizontalAdvanceAdjustment:0,m_enableExtraPadding:!1,checkPaddingRequired:!1,m_isRichText:!1,m_parseCtrlCharacters:!1,m_isOverlay:!1,m_isOrthographic:!1,m_isCullingEnabled:!1,m_isMaskingEnabled:!1,isMaskUpdateRequired:!1,m_ignoreCulling:!1,m_horizontalMapping:0,m_verticalMapping:0,m_uvLineOffset:0,m_renderMode:0,m_geometrySortingOrder:0,m_IsTextObjectScaleStatic:!1,m_VertexBufferAutoSizeReduction:!1,m_firstVisibleCharacter:0,m_maxVisibleCharacters:0,m_maxVisibleWords:0,m_maxVisibleLines:0,m_useMaxVisibleDescender:!1,m_pageToDisplay:0,m_isNewPage:!1,m_margin:null,m_marginLeft:0,m_marginRight:0,m_marginWidth:0,m_marginHeight:0,m_width:0,m_textInfo:null,m_havePropertiesChanged:!1,m_isUsingLegacyAnimationComponent:!1,m_transform:null,m_rectTransform:null,m_PreviousRectTransformSize:null,m_PreviousPivotPosition:null,autoSizeTextContainer:!1,m_autoSizeTextContainer:!1,m_mesh:null,m_isVolumetricText:!1,m_spriteAnimator:null,m_flexibleHeight:0,m_flexibleWidth:0,m_minWidth:0,m_minHeight:0,m_maxWidth:0,m_maxHeight:0,m_LayoutElement:null,m_preferredWidth:0,m_renderedWidth:0,m_isPreferredWidthDirty:!1,m_preferredHeight:0,m_renderedHeight:0,m_isPreferredHeightDirty:!1,m_isCalculatingPreferredValues:!1,m_layoutPriority:0,m_isLayoutDirty:!1,m_isAwake:!1,m_isWaitingOnResourceLoad:!1,m_inputSource:0,m_fontScaleMultiplier:0,tag_LineIndent:0,tag_Indent:0,m_indentStack:null,tag_NoParsing:!1,m_isParsingText:!1,m_FXMatrix:null,m_isFXMatrixSet:!1,m_TextProcessingArray:null,m_InternalTextProcessingArraySize:0,m_internalCharacterInfo:null,m_totalCharacterCount:0,m_characterCount:0,m_firstCharacterOfLine:0,m_firstVisibleCharacterOfLine:0,m_lastCharacterOfLine:0,m_lastVisibleCharacterOfLine:0,m_lineNumber:0,m_lineVisibleCharacterCount:0,m_pageNumber:0,m_PageAscender:0,m_maxTextAscender:0,m_maxCapHeight:0,m_ElementAscender:0,m_ElementDescender:0,m_maxLineAscender:0,m_maxLineDescender:0,m_startOfLineAscender:0,m_startOfLineDescender:0,m_lineOffset:0,m_meshExtents:null,m_htmlColor:null,m_colorStack:null,m_underlineColorStack:null,m_strikethroughColorStack:null,m_HighlightStateStack:null,m_colorGradientPreset:null,m_colorGradientStack:null,m_colorGradientPresetIsTinted:!1,m_tabSpacing:0,m_spacing:0,m_TextStyleStacks:null,m_TextStyleStackDepth:0,m_ItalicAngleStack:null,m_ItalicAngle:0,m_actionStack:null,m_padding:0,m_baselineOffset:0,m_baselineOffsetStack:null,m_xAdvance:0,m_textElementType:0,m_cached_TextElement:null,m_Ellipsis:null,m_Underline:null,m_defaultSpriteAsset:null,m_currentSpriteAsset:null,m_spriteCount:0,m_spriteIndex:0,m_spriteAnimationID:0,m_ignoreActiveState:!1,m_TextBackingArray:null,k_Power:null},events:{OnPreRenderText:null},props:{},alias:["transform$1","UnityEngine$UI$ICanvasElement$transform","rectTransform$1","UnityEngine$UI$IClippable$rectTransform"],ctors:{init:function(){this.m_fontColor32=new UnityEngine.Color32,this.m_fontColor=new UnityEngine.Color,this.m_underlineColor=new UnityEngine.Color32,this.m_strikethroughColor=new UnityEngine.Color32,this.m_spriteColor=new UnityEngine.Color32,this.m_faceColor=new UnityEngine.Color32,this.m_outlineColor=new UnityEngine.Color32,this.m_sizeStack=new(TMPro.TMP_TextProcessingStack$1(System.Single)),this.m_FontWeightStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.FontWeight)),this.m_fontStyleStack=new TMPro.TMP_FontStyleStack,this.m_lineJustificationStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.HorizontalAlignmentOptions)),this.m_margin=new UnityEngine.Vector4,this.m_PreviousRectTransformSize=new UnityEngine.Vector2,this.m_PreviousPivotPosition=new UnityEngine.Vector2,this.m_indentStack=new(TMPro.TMP_TextProcessingStack$1(System.Single)),this.m_FXMatrix=new UnityEngine.Matrix4x4,this.m_meshExtents=new TMPro.Extents,this.m_htmlColor=new UnityEngine.Color32,this.m_colorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32)),this.m_underlineColorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32)),this.m_strikethroughColorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32)),this.m_HighlightStateStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.HighlightState)),this.m_colorGradientStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.TMP_ColorGradient)),this.m_ItalicAngleStack=new(TMPro.TMP_TextProcessingStack$1(System.Int32)),this.m_actionStack=new(TMPro.TMP_TextProcessingStack$1(System.Int32)),this.m_baselineOffsetStack=new(TMPro.TMP_TextProcessingStack$1(System.Single)),this.m_isRightToLeft=!1,this.m_fontColor32=UnityEngine.Color32.op_Implicit$1(new pc.Color(1,1,1,1)),this.m_fontColor=new pc.Color(1,1,1,1),this.m_underlineColor=TMPro.TMP_Text.s_colorWhite.$clone(),this.m_strikethroughColor=TMPro.TMP_Text.s_colorWhite.$clone(),this.m_colorMode=TMPro.ColorMode.FourCornersGradient,this.m_overrideHtmlColors=!1,this.m_faceColor=UnityEngine.Color32.op_Implicit$1(new pc.Color(1,1,1,1)),this.m_outlineColor=UnityEngine.Color32.op_Implicit$1(new pc.Color(0,0,0,1)),this.m_outlineWidth=0,this.m_fontSize=-99,this.m_fontSizeBase=36,this.m_sizeStack=new(TMPro.TMP_TextProcessingStack$1(System.Single).$ctor2)(16),this.m_fontWeight=TMPro.FontWeight.Regular,this.m_FontWeightInternal=TMPro.FontWeight.Regular,this.m_FontWeightStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.FontWeight).$ctor2)(8),this.m_AutoSizeMaxIterationCount=100,this.m_fontSizeMin=0,this.m_fontSizeMax=0,this.m_isUsingBold=!1,this.m_HorizontalAlignment=TMPro.HorizontalAlignmentOptions.Left,this.m_lineJustificationStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.HorizontalAlignmentOptions).$ctor1)(System.Array.init(16,0,TMPro.HorizontalAlignmentOptions)),this.m_textContainerLocalCorners=System.Array.init(4,(function(){return new UnityEngine.Vector3}),UnityEngine.Vector3),this.m_characterSpacing=0,this.m_cSpacing=0,this.m_monoSpacing=0,this.m_wordSpacing=0,this.m_lineSpacing=0,this.m_lineSpacingDelta=0,this.m_lineHeight=-32767,this.m_lineSpacingMax=0,this.m_paragraphSpacing=0,this.m_charWidthMaxAdj=0,this.m_charWidthAdjDelta=0,this.m_enableWordWrapping=!1,this.m_isCharacterWrappingEnabled=!1,this.m_isNonBreakingSpace=!1,this.m_wordWrappingRatios=.4,this.m_firstOverflowCharacterIndex=-1,this.m_enableExtraPadding=!1,this.m_isRichText=!0,this.m_parseCtrlCharacters=!0,this.m_isOverlay=!1,this.m_isOrthographic=!1,this.m_isCullingEnabled=!1,this.m_ignoreCulling=!0,this.m_uvLineOffset=0,this.m_VertexBufferAutoSizeReduction=!1,this.m_maxVisibleCharacters=99999,this.m_maxVisibleWords=99999,this.m_maxVisibleLines=99999,this.m_useMaxVisibleDescender=!0,this.m_pageToDisplay=1,this.m_isNewPage=!1,this.m_margin=new pc.Vec4(0,0,0,0),this.m_width=-1,this.m_flexibleHeight=-1,this.m_flexibleWidth=-1,this.m_layoutPriority=0,this.tag_LineIndent=0,this.tag_Indent=0,this.m_indentStack=new(TMPro.TMP_TextProcessingStack$1(System.Single).$ctor1)(System.Array.init(16,0,System.Single)),this.m_htmlColor=UnityEngine.Color32.op_Implicit$1(new pc.Color(255,255,255,128)),this.m_colorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32).$ctor1)(System.Array.init(16,(function(){return new UnityEngine.Color32}),UnityEngine.Color32)),this.m_underlineColorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32).$ctor1)(System.Array.init(16,(function(){return new UnityEngine.Color32}),UnityEngine.Color32)),this.m_strikethroughColorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32).$ctor1)(System.Array.init(16,(function(){return new UnityEngine.Color32}),UnityEngine.Color32)),this.m_HighlightStateStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.HighlightState).$ctor1)(System.Array.init(16,(function(){return new TMPro.HighlightState}),TMPro.HighlightState)),this.m_colorGradientStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.TMP_ColorGradient).$ctor1)(System.Array.init(16,null,TMPro.TMP_ColorGradient)),this.m_tabSpacing=0,this.m_spacing=0,this.m_TextStyleStacks=System.Array.init(8,(function(){return new(TMPro.TMP_TextProcessingStack$1(System.Int32))}),TMPro.TMP_TextProcessingStack$1(System.Int32)),this.m_TextStyleStackDepth=0,this.m_ItalicAngleStack=new(TMPro.TMP_TextProcessingStack$1(System.Int32).$ctor1)(System.Array.init(16,0,System.Int32)),this.m_actionStack=new(TMPro.TMP_TextProcessingStack$1(System.Int32).$ctor1)(System.Array.init(16,0,System.Int32)),this.m_padding=0,this.m_baselineOffsetStack=new(TMPro.TMP_TextProcessingStack$1(System.Single).$ctor1)(System.Array.init(16,0,System.Single)),this.m_spriteCount=0,this.k_Power=System.Array.init([System.Decimal(.5,1),System.Decimal(.05,2),System.Decimal(.005,3),System.Decimal(5e-4,4),System.Decimal(5e-5,5),System.Decimal(5e-6,6),System.Decimal(5e-7,7),System.Decimal(5e-8,8),System.Decimal(5e-9,9),System.Decimal(5e-10,10)],System.Decimal),Bridge.event(this,"OnPreRenderText",(function(){}))}},methods:{},overloads:{"SetTextSortingOrder(VertexSortingOrder)":"SetTextSortingOrder$1","GetPaddingForMaterial(Material)":"GetPaddingForMaterial$1","UpdateGeometry(Mesh, int)":"UpdateGeometry$1","UpdateVertexData(TMP_VertexDataUpdateFlags)":"UpdateVertexData$1","PopulateTextBackingArray(string)":"PopulateTextBackingArray$1","PopulateTextBackingArray(string, int, int)":"PopulateTextBackingArray$2","PopulateTextBackingArray(StringBuilder, int, int)":"PopulateTextBackingArray$3","SetText(string, bool)":"SetText$2","SetText(string, float)":"SetText$3","SetText(string, float, float)":"SetText$4","SetText(string, float, float, float)":"SetText$5","SetText(string, float, float, float, float)":"SetText$6","SetText(string, float, float, float, float, float)":"SetText$7","SetText(string, float, float, float, float, float, float)":"SetText$8","SetText(string, float, float, float, float, float, float, float)":"SetText$9","SetText(string, float, float, float, float, float, float, float, float)":"SetText$10","SetText(StringBuilder)":"SetText$11","SetText(StringBuilder, int, int)":"SetText$12","SetText(char[], int, int)":"SetText$1","SetCharArray(char[], int, int)":"SetCharArray$1","ReplaceOpeningStyleTag(TextBackingContainer, int, int, UnicodeChar[], int)":"ReplaceOpeningStyleTag$1","ReplaceClosingStyleTag(TextBackingContainer, int, UnicodeChar[], int)":"ReplaceClosingStyleTag$1","GetMarkupTagHashCode(TextBackingContainer, int)":"GetMarkupTagHashCode$1","GetStyleHashCode(TextBackingContainer, int, int)":"GetStyleHashCode$1","ResizeInternalArray(T[], int)":"ResizeInternalArray$1","GetPreferredValues(float, float)":"GetPreferredValues$1","GetPreferredValues(string)":"GetPreferredValues$2","GetPreferredValues(string, float, float)":"GetPreferredValues$3","GetPreferredWidth(Vector2)":"GetPreferredWidth$1","GetPreferredHeight(Vector2)":"GetPreferredHeight$1","GetRenderedValues(bool)":"GetRenderedValues$1","GetRenderedWidth()":"GetRenderedWidth$1","GetRenderedHeight()":"GetRenderedHeight$1","GetTextBounds(bool)":"GetTextBounds$1","FillCharacterVertexBuffers(int, int, bool)":"FillCharacterVertexBuffers$1","ClearMesh(bool)":"ClearMesh$1","PackUV(float, float, float)":"PackUV$1","GetUTF16(string, int)":"GetUTF16$2","GetUTF16(int[], int)":"GetUTF16$1","GetUTF16(StringBuilder, int)":"GetUTF16$3","GetUTF16(TextBackingContainer, int)":"GetUTF16$4","GetUTF32(string, int)":"GetUTF32$2","GetUTF32(int[], int)":"GetUTF32$1","GetUTF32(StringBuilder, int)":"GetUTF32$3","GetUTF32(TextBackingContainer, int)":"GetUTF32$4","HexCharsToColor(char[], int, int)":"HexCharsToColor$1","ConvertToFloat(char[], int, int, int)":"ConvertToFloat$1"}}),Bridge.define("TMPro.TMP_ColorGradient",{inherits:[UnityEngine.ScriptableObject],statics:{fields:{k_DefaultColorMode:0,k_DefaultColor:null},ctors:{init:function(){this.k_DefaultColor=new UnityEngine.Color,this.k_DefaultColorMode=TMPro.ColorMode.FourCornersGradient,this.k_DefaultColor=new pc.Color(1,1,1,1)}}},fields:{colorMode:0,topLeft:null,topRight:null,bottomLeft:null,bottomRight:null},ctors:{init:function(){this.topLeft=new UnityEngine.Color,this.topRight=new UnityEngine.Color,this.bottomLeft=new UnityEngine.Color,this.bottomRight=new UnityEngine.Color,this.colorMode=TMPro.ColorMode.FourCornersGradient}}}),Bridge.define("TMPro.TMP_FontStyleStack",{$kind:4,statics:{methods:{}},fields:{bold:0,italic:0,underline:0,strikethrough:0,highlight:0,superscript:0,subscript:0,uppercase:0,lowercase:0,smallcaps:0},ctors:{ctor:function(){this.$initialize()}},methods:{}}),Bridge.define("TMPro.TMP_LineInfo",{$kind:4,statics:{methods:{}},fields:{controlCharacterCount:0,characterCount:0,visibleCharacterCount:0,spaceCount:0,wordCount:0,firstCharacterIndex:0,firstVisibleCharacterIndex:0,lastCharacterIndex:0,lastVisibleCharacterIndex:0,length:0,lineHeight:0,ascender:0,baseline:0,descender:0,maxAdvance:0,width:0,marginLeft:0,marginRight:0,alignment:0,lineExtents:null},ctors:{init:function(){this.lineExtents=new TMPro.Extents},ctor:function(){this.$initialize()}},methods:{}}),Bridge.define("TMPro.TMP_ListPool$1",(function(e){return{statics:{fields:{s_ListPool:null},ctors:{},methods:{}}}})),Bridge.define("TMPro.TMP_Math",{statics:{fields:{FLOAT_MAX:0,FLOAT_MIN:0,INT_MAX:0,INT_MIN:0,FLOAT_UNSET:0,INT_UNSET:0,MAX_16BIT:null,MIN_16BIT:null},ctors:{init:function(){this.MAX_16BIT=new UnityEngine.Vector2,this.MIN_16BIT=new UnityEngine.Vector2,this.FLOAT_MAX=32767,this.FLOAT_MIN=-32767,this.INT_MAX=2147483647,this.INT_MIN=-2147483647,this.FLOAT_UNSET=-32767,this.INT_UNSET=-32767,this.MAX_16BIT=new pc.Vec2(TMPro.TMP_Math.FLOAT_MAX,TMPro.TMP_Math.FLOAT_MAX),this.MIN_16BIT=new pc.Vec2(TMPro.TMP_Math.FLOAT_MIN,TMPro.TMP_Math.FLOAT_MIN)}},methods:{}}}),Bridge.define("TMPro.TMP_ObjectPool$1",(function(e){return{fields:{m_Stack:null,m_ActionOnGet:null,m_ActionOnRelease:null,countAll:0},props:{countActive:{},countInactive:{}},ctors:{},methods:{}}})),Bridge.define("TMPro.TMP_Offset",{$kind:4,statics:{fields:{k_ZeroOffset:null},props:{},ctors:{init:function(){this.k_ZeroOffset=new TMPro.TMP_Offset,this.k_ZeroOffset=new TMPro.TMP_Offset.$ctor2(0,0,0,0)}},methods:{}},fields:{m_Left:0,m_Right:0,m_Top:0,m_Bottom:0},props:{},ctors:{$ctor2:function(e,t,n,i){this.$initialize(),this.m_Left=e,this.m_Right=t,this.m_Top=n,this.m_Bottom=i},ctor:function(){this.$initialize()}},methods:{},overloads:{"GetHashCode()":"getHashCode","Equals(object)":"equals"}}),Bridge.define("TMPro.TMP_TextProcessingStack$1",(function(e){return{$kind:4,statics:{fields:{k_DefaultCapacity:0},ctors:{init:function(){this.k_DefaultCapacity=4}},methods:{}},fields:{itemStack:null,index:0,m_DefaultItem:Bridge.getDefaultValue(e),m_Capacity:0,m_RolloverSize:0,m_Count:0},props:{Count:{},current:{},rolloverSize:{}},ctors:{init:function(){this.m_DefaultItem=Bridge.getDefaultValue(e)},$ctor1:function(t){this.$initialize(),this.itemStack=t,this.m_Capacity=t.length,this.index=0,this.m_RolloverSize=0,this.m_DefaultItem=Bridge.getDefaultValue(e),this.m_Count=0},$ctor3:function(t,n){this.$initialize(),this.itemStack=System.Array.init(t,(function(){return Bridge.getDefaultValue(e)}),e),this.m_Capacity=t,this.index=0,this.m_RolloverSize=n,this.m_DefaultItem=Bridge.getDefaultValue(e),this.m_Count=0},ctor:function(){this.$initialize()}},methods:{}}})),Bridge.define("TMPro.WordWrapState",{$kind:4,statics:{methods:{getDefaultValue:function(){return new TMPro.WordWrapState}}},fields:{previous_WordBreak:0,total_CharacterCount:0,visible_CharacterCount:0,visible_SpriteCount:0,visible_LinkCount:0,firstCharacterIndex:0,firstVisibleCharacterIndex:0,lastCharacterIndex:0,lastVisibleCharIndex:0,lineNumber:0,maxCapHeight:0,maxAscender:0,maxDescender:0,startOfLineAscender:0,maxLineAscender:0,maxLineDescender:0,pageAscender:0,horizontalAlignment:0,marginLeft:0,marginRight:0,xAdvance:0,preferredWidth:0,preferredHeight:0,previousLineScale:0,wordCount:0,fontStyle:0,italicAngle:0,fontScaleMultiplier:0,currentFontSize:0,baselineOffset:0,lineOffset:0,isDrivenLineSpacing:!1,glyphHorizontalAdvanceAdjustment:0,cSpace:0,mSpace:0,textInfo:null,lineInfo:null,vertexColor:null,underlineColor:null,strikethroughColor:null,highlightColor:null,basicStyleStack:null,italicAngleStack:null,colorStack:null,underlineColorStack:null,strikethroughColorStack:null,highlightColorStack:null,highlightStateStack:null,colorGradientStack:null,sizeStack:null,indentStack:null,fontWeightStack:null,styleStack:null,baselineStack:null,actionStack:null,materialReferenceStack:null,lineJustificationStack:null,spriteAnimationID:0,currentFontAsset:null,currentSpriteAsset:null,currentMaterial:null,currentMaterialIndex:0,meshExtents:null,tagNoParsing:!1,isNonBreakingSpace:!1},ctors:{init:function(){this.lineInfo=new TMPro.TMP_LineInfo,this.vertexColor=new UnityEngine.Color32,this.underlineColor=new UnityEngine.Color32,this.strikethroughColor=new UnityEngine.Color32,this.highlightColor=new UnityEngine.Color32,this.basicStyleStack=new TMPro.TMP_FontStyleStack,this.italicAngleStack=new(TMPro.TMP_TextProcessingStack$1(System.Int32)),this.colorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32)),this.underlineColorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32)),this.strikethroughColorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32)),this.highlightColorStack=new(TMPro.TMP_TextProcessingStack$1(UnityEngine.Color32)),this.highlightStateStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.HighlightState)),this.colorGradientStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.TMP_ColorGradient)),this.sizeStack=new(TMPro.TMP_TextProcessingStack$1(System.Single)),this.indentStack=new(TMPro.TMP_TextProcessingStack$1(System.Single)),this.fontWeightStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.FontWeight)),this.styleStack=new(TMPro.TMP_TextProcessingStack$1(System.Int32)),this.baselineStack=new(TMPro.TMP_TextProcessingStack$1(System.Single)),this.actionStack=new(TMPro.TMP_TextProcessingStack$1(System.Int32)),this.materialReferenceStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.MaterialReference)),this.lineJustificationStack=new(TMPro.TMP_TextProcessingStack$1(TMPro.HorizontalAlignmentOptions)),this.meshExtents=new TMPro.Extents},ctor:function(){this.$initialize()}},methods:{}}),Bridge.define("TMPro.TextMeshProUGUI",{inherits:[TMPro.TMP_Text,UnityEngine.UI.ILayoutElement],fields:{m_isRebuildingLayout:!1,m_DelayedGraphicRebuild:null,m_DelayedMaterialRebuild:null,m_ClipRect:null,m_ValidRect:!1,m_hasFontAssetChanged:!1,m_subTextObjects:null,m_previousLossyScaleY:0,m_RectTransformCorners:null,m_canvasRenderer:null,m_canvas:null,m_CanvasScaleFactor:0,m_isFirstAllocation:!1,m_max_characters:0,m_baseMaterial:null,m_isScrollRegionSet:!1,m_maskOffset:null,m_EnvMapMatrix:null,m_isRegisteredForEvents:!1},events:{OnPreRenderText:null},props:{materialForRendering:{get:function(){}},autoSizeTextContainer:{get:function(){return this.m_autoSizeTextContainer},set:function(e){this.m_autoSizeTextContainer!==e&&(this.m_autoSizeTextContainer=e,this.m_autoSizeTextContainer&&(UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForLayoutRebuild(this),this.SetLayoutDirty()))}},mesh:{get:function(){return this.m_mesh}},canvasRenderer$1:{get:function(){return UnityEngine.Component.op_Equality(this.m_canvasRenderer,null)&&(this.m_canvasRenderer=this.GetComponent(UnityEngine.CanvasRenderer)),this.m_canvasRenderer}},maskOffset:{get:function(){return this.m_maskOffset.$clone()},set:function(e){this.m_maskOffset=e.$clone(),this.UpdateMask(),this.m_havePropertiesChanged=!0}}},alias:["CalculateLayoutInputHorizontal","UnityEngine$UI$ILayoutElement$CalculateLayoutInputHorizontal","CalculateLayoutInputVertical","UnityEngine$UI$ILayoutElement$CalculateLayoutInputVertical","Rebuild","UnityEngine$UI$ICanvasElement$Rebuild","GetModifiedMaterial","UnityEngine$UI$IMaterialModifier$GetModifiedMaterial","RecalculateClipping","UnityEngine$UI$IClippable$RecalculateClipping","Cull","UnityEngine$UI$IClippable$Cull","minWidth","UnityEngine$UI$ILayoutElement$minWidth","preferredWidth","UnityEngine$UI$ILayoutElement$preferredWidth","flexibleWidth","UnityEngine$UI$ILayoutElement$flexibleWidth","minHeight","UnityEngine$UI$ILayoutElement$minHeight","preferredHeight","UnityEngine$UI$ILayoutElement$preferredHeight","flexibleHeight","UnityEngine$UI$ILayoutElement$flexibleHeight","layoutPriority","UnityEngine$UI$ILayoutElement$layoutPriority","minWidth","UnityEngine$UI$ILayoutElement$minWidth","preferredWidth","UnityEngine$UI$ILayoutElement$preferredWidth","flexibleWidth","UnityEngine$UI$ILayoutElement$flexibleWidth","minHeight","UnityEngine$UI$ILayoutElement$minHeight","preferredHeight","UnityEngine$UI$ILayoutElement$preferredHeight","flexibleHeight","UnityEngine$UI$ILayoutElement$flexibleHeight","layoutPriority","UnityEngine$UI$ILayoutElement$layoutPriority"],ctors:{init:function(){this.m_ClipRect=new UnityEngine.Rect,this.m_maskOffset=new UnityEngine.Vector4,this.m_EnvMapMatrix=new UnityEngine.Matrix4x4,this.m_isRebuildingLayout=!1,this.m_hasFontAssetChanged=!1,this.m_previousLossyScaleY=-1,this.m_RectTransformCorners=System.Array.init(4,(function(){return new UnityEngine.Vector3}),UnityEngine.Vector3),this.m_max_characters=8}},methods:{CalculateLayoutInputHorizontal:function(){},CalculateLayoutInputVertical:function(){},SetVerticesDirty:function(){!UnityEngine.MonoBehaviour.op_Equality(this,null)&&this.IsActive()&&(UnityEngine.UI.CanvasUpdateRegistry.IsRebuildingGraphics()||(UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this),Bridge.staticEquals(this.m_OnDirtyVertsCallback,null)||this.m_OnDirtyVertsCallback()))},SetLayoutDirty:function(){this.m_isPreferredWidthDirty=!0,this.m_isPreferredHeightDirty=!0,!UnityEngine.MonoBehaviour.op_Equality(this,null)&&this.IsActive()&&(UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(this.rectTransform$1),this.m_isLayoutDirty=!0,Bridge.staticEquals(this.m_OnDirtyLayoutCallback,null)||this.m_OnDirtyLayoutCallback())},SetMaterialDirty:function(){!UnityEngine.MonoBehaviour.op_Equality(this,null)&&this.IsActive()&&(UnityEngine.UI.CanvasUpdateRegistry.IsRebuildingGraphics()||(this.m_isMaterialDirty=!0,UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this),Bridge.staticEquals(this.m_OnDirtyMaterialCallback,null)||this.m_OnDirtyMaterialCallback()))},SetAllDirty:function(){this.SetLayoutDirty(),this.SetVerticesDirty(),this.SetMaterialDirty()},DelayedGraphicRebuild:function(){var e=0,t=new Bridge.GeneratorEnumerator(Bridge.fn.bind(this,(function(){try{for(;;)switch(e){case 0:return t.current=null,e=1,!0;case 1:UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this),Bridge.staticEquals(this.m_OnDirtyVertsCallback,null)||this.m_OnDirtyVertsCallback(),this.m_DelayedGraphicRebuild=null;default:return!1}}catch(e){throw System.Exception.create(e)}})));return t},DelayedMaterialRebuild:function(){var e=0,t=new Bridge.GeneratorEnumerator(Bridge.fn.bind(this,(function(){try{for(;;)switch(e){case 0:return t.current=null,e=1,!0;case 1:this.m_isMaterialDirty=!0,UnityEngine.UI.CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this),Bridge.staticEquals(this.m_OnDirtyMaterialCallback,null)||this.m_OnDirtyMaterialCallback(),this.m_DelayedMaterialRebuild=null;default:return!1}}catch(e){throw System.Exception.create(e)}})));return t},Rebuild:function(e){if(!UnityEngine.MonoBehaviour.op_Equality(this,null))if(e===UnityEngine.UI.CanvasUpdate.Prelayout)this.m_autoSizeTextContainer&&(this.m_rectTransform.sizeDelta=this.GetPreferredValues$1(window.Infinity,window.Infinity));else if(e===UnityEngine.UI.CanvasUpdate.PreRender){if(this.OnPreRenderCanvas(),!this.m_isMaterialDirty)return;this.UpdateMaterial(),this.m_isMaterialDirty=!1}},UpdateSubObjectPivot:function(){if(null!=this.m_textInfo)for(var e=1;e<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[e],null);e++)this.m_subTextObjects[e].SetPivotDirty()},GetModifiedMaterial:function(e){var t=e;if(this.m_ShouldRecalculateStencil){var n=UnityEngine.UI.MaskUtilities.FindRootSortOverrideCanvas(this.transform$1);this.m_StencilValue=this.maskable?UnityEngine.UI.MaskUtilities.GetStencilDepth(this.transform$1,n):0,this.m_ShouldRecalculateStencil=!1}if(this.m_StencilValue>0){var i=UnityEngine.UI.StencilMaterial.Add$2(t,(1<<this.m_StencilValue)-1,UnityEngine.Rendering.StencilOp.Keep,UnityEngine.Rendering.CompareFunction.Equal,UnityEngine.Rendering.ColorWriteMask.All,(1<<this.m_StencilValue)-1,0);UnityEngine.UI.StencilMaterial.Remove(this.m_MaskMaterial),this.m_MaskMaterial=i,t=this.m_MaskMaterial}return t},UpdateMaterial:function(){null==this.m_sharedMaterial||UnityEngine.Component.op_Equality(this.canvasRenderer$1,null)||(this.m_canvasRenderer.materialCount=1,this.m_canvasRenderer.SetMaterial(this.materialForRendering,0))},RecalculateClipping:function(){TMPro.TMP_Text.prototype.RecalculateClipping.call(this)},Cull:function(e,t){if(this.m_isLayoutDirty)return this.m_ClipRect=e.$clone(),void(this.m_ValidRect=t);var n=this.GetCanvasSpaceClippingRect();if(0!==n.width&&0!==n.height){var i=!t||!e.Overlaps$1(n.$clone(),!0);if(this.m_canvasRenderer.cull!==i){this.m_canvasRenderer.cull=i,this.onCullStateChanged.Invoke(i);for(var r=1;r<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[r],null);r++)this.m_subTextObjects[r].canvasRenderer.cull=i}}},UpdateCulling:function(){var e=this.GetCanvasSpaceClippingRect();if(0!==e.width&&0!==e.height){var t=!this.m_ValidRect||!this.m_ClipRect.Overlaps$1(e.$clone(),!0);if(this.m_canvasRenderer.cull!==t){this.m_canvasRenderer.cull=t,this.onCullStateChanged.Invoke(t);for(var n=1;n<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[n],null);n++)this.m_subTextObjects[n].canvasRenderer.cull=t}}},UpdateMeshPadding:function(){if(this.m_havePropertiesChanged=!0,this.checkPaddingRequired=!1,null!=this.m_textInfo)for(var e=1;e<this.m_textInfo.materialCount;e++)this.m_subTextObjects[e].UpdateMeshPadding(this.m_enableExtraPadding,this.m_isUsingBold)},InternalCrossFadeColor:function(e,t,n,i){if(null!=this.m_textInfo)for(var r=this.m_textInfo.materialCount,s=1;s<r;s++)this.m_subTextObjects[s].CrossFadeColor(e.$clone(),t,n,i)},InternalCrossFadeAlpha:function(e,t,n){if(null!=this.m_textInfo)for(var i=this.m_textInfo.materialCount,r=1;r<i;r++)this.m_subTextObjects[r].CrossFadeAlpha(e,t,n)},ForceMeshUpdate:function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1),this.m_havePropertiesChanged=!0,this.m_ignoreActiveState=e,UnityEngine.Component.op_Equality(this.m_canvas,null)&&(this.m_canvas=this.GetComponentInParent(UnityEngine.Canvas)),this.OnPreRenderCanvas()},GetTextInfo:function(e){return this.SetText$2(e),this.SetArraySizes(this.m_TextProcessingArray),this.ComputeMarginSize(),UnityEngine.Component.op_Equality(this.m_canvas,null)&&(this.m_canvas=this.canvas),this.GenerateTextMesh(),this.textInfo},ClearMesh:function(){this.m_canvasRenderer.SetMesh(null);for(var e=1;e<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[e],null);e++)this.m_subTextObjects[e].canvasRenderer.SetMesh(null)},UpdateGeometry$1:function(e,t){e.RecalculateBounds(),0===t?this.m_canvasRenderer.SetMesh(e):this.m_subTextObjects[t].canvasRenderer.SetMesh(e)},UpdateVertexData$1:function(e){for(var t=this.m_textInfo.materialCount,n=0;n<t;n++){var i;i=0===n?this.m_mesh:this.m_subTextObjects[n].mesh,(e&TMPro.TMP_VertexDataUpdateFlags.Vertices)===TMPro.TMP_VertexDataUpdateFlags.Vertices&&(i.vertices=this.m_textInfo.meshInfo[n].vertices),(e&TMPro.TMP_VertexDataUpdateFlags.Uv0)===TMPro.TMP_VertexDataUpdateFlags.Uv0&&(i.uv=this.m_textInfo.meshInfo[n].uvs0),(e&TMPro.TMP_VertexDataUpdateFlags.Uv2)===TMPro.TMP_VertexDataUpdateFlags.Uv2&&(i.uv2=this.m_textInfo.meshInfo[n].uvs2),(e&TMPro.TMP_VertexDataUpdateFlags.Colors32)===TMPro.TMP_VertexDataUpdateFlags.Colors32&&(i.colors32=this.m_textInfo.meshInfo[n].colors32),i.RecalculateBounds(),0===n?this.m_canvasRenderer.SetMesh(i):this.m_subTextObjects[n].canvasRenderer.SetMesh(i)}},UpdateVertexData:function(){for(var e=this.m_textInfo.materialCount,t=0;t<e;t++){var n;0===t?n=this.m_mesh:(this.m_textInfo.meshInfo[t].ClearUnusedVertices(),n=this.m_subTextObjects[t].mesh),n.vertices=this.m_textInfo.meshInfo[t].vertices,n.uv=this.m_textInfo.meshInfo[t].uvs0,n.uv2=this.m_textInfo.meshInfo[t].uvs2,n.colors32=this.m_textInfo.meshInfo[t].colors32,n.RecalculateBounds(),0===t?this.m_canvasRenderer.SetMesh(n):this.m_subTextObjects[t].canvasRenderer.SetMesh(n)}},UpdateFontAsset:function(){this.LoadFontAsset()},Awake:function(){if(this.m_canvas=this.canvas,this.m_isOrthographic=!0,this.m_rectTransform=this.gameObject.GetComponent(UnityEngine.RectTransform),UnityEngine.Component.op_Equality(this.m_rectTransform,null)&&(this.m_rectTransform=this.gameObject.AddComponent(UnityEngine.RectTransform)),this.m_canvasRenderer=this.GetComponent(UnityEngine.CanvasRenderer),UnityEngine.Component.op_Equality(this.m_canvasRenderer,null)&&(this.m_canvasRenderer=this.gameObject.AddComponent(UnityEngine.CanvasRenderer)),null==this.m_mesh&&(this.m_mesh=new UnityEngine.Mesh.ctor,this.m_mesh.hideFlags=UnityEngine.HideFlags.HideAndDontSave),this.LoadDefaultSettings(),this.LoadFontAsset(),this.m_TextProcessingArray,this.m_isFirstAllocation=!0,subTextObjects.length>0){var e=subTextObjects.length;this.m_subTextObjects.length;for(var t=0;t<e;t++)this.m_subTextObjects[t+1]=subTextObjects[t]}this.m_havePropertiesChanged=!0,this.m_isAwake=!0},OnEnable:function(){!1!==this.m_isAwake&&(this.m_isRegisteredForEvents||(this.m_isRegisteredForEvents=!0),this.m_canvas=this.GetCanvas(),this.SetActiveSubMeshes(!0),UnityEngine.UI.GraphicRegistry.RegisterGraphicForCanvas(this.m_canvas,this),this.m_IsTextObjectScaleStatic,this.ComputeMarginSize(),this.SetAllDirty(),this.RecalculateClipping(),this.RecalculateMasking())},OnDisable:function(){!1!==this.m_isAwake&&(UnityEngine.UI.GraphicRegistry.UnregisterGraphicForCanvas(this.m_canvas,this),UnityEngine.UI.CanvasUpdateRegistry.UnRegisterCanvasElementForRebuild(Bridge.cast(this,UnityEngine.UI.ICanvasElement)),UnityEngine.Component.op_Inequality(this.m_canvasRenderer,null)&&this.m_canvasRenderer.Clear(),this.SetActiveSubMeshes(!1),UnityEngine.UI.LayoutRebuilder.MarkLayoutForRebuild(this.m_rectTransform),this.RecalculateClipping(),this.RecalculateMasking())},OnDestroy:function(){UnityEngine.UI.GraphicRegistry.UnregisterGraphicForCanvas(this.m_canvas,this),null!=this.m_mesh&&UnityEngine.Object.DestroyImmediate(this.m_mesh),null!=this.m_MaskMaterial&&(this.m_MaskMaterial=null),this.m_isRegisteredForEvents=!1},LoadFontAsset:function(){if(null==this.m_fontAsset){if(TMPro.TMP_Settings.defaultFontAsset,null==this.m_fontAsset)return void UnityEngine.Debug.LogWarning$1("The LiberationSans SDF Font Asset was not found. There is no Font Asset assigned to "+(this.gameObject.name||"")+".",this);null==this.m_fontAsset.characterLookupTable&&UnityEngine.Debug.Log$1("Dictionary is Null!"),this.m_sharedMaterial=this.m_fontAsset.material}else null==this.m_fontAsset.characterLookupTable&&this.m_fontAsset.ReadFontAssetDefinition(),null==this.m_sharedMaterial&&null!=this.m_baseMaterial&&(this.m_sharedMaterial=this.m_baseMaterial,this.m_baseMaterial=null),null!=this.m_sharedMaterial&&null!=this.m_sharedMaterial.GetTexture(TMPro.ShaderUtilities.ID_MainTex)&&this.m_fontAsset.atlasTexture.GetInstanceID()===this.m_sharedMaterial.GetTexture(TMPro.ShaderUtilities.ID_MainTex).GetInstanceID()||(null==this.m_fontAsset.material?UnityEngine.Debug.LogWarning$1("The Font Atlas Texture of the Font Asset "+(this.m_fontAsset.name||"")+" assigned to "+(this.gameObject.name||"")+" is missing.",this):this.m_sharedMaterial=this.m_fontAsset.material);this.GetSpecialCharacters(this.m_fontAsset),this.m_padding=this.GetPaddingForMaterial(),this.SetMaterialDirty()},GetCanvas:function(){var e=null,t=TMPro.TMP_ListPool$1(UnityEngine.Canvas).Get();if(this.gameObject.GetComponentsInParent$1(UnityEngine.Canvas,!1,t),t.Count>0)for(var n=0;n<t.Count;++n)if(t.getItem(n).isActiveAndEnabled){e=t.getItem(n);break}return TMPro.TMP_ListPool$1(UnityEngine.Canvas).Release(t),e},UpdateEnvMapMatrix:function(){this.m_sharedMaterial.HasProperty(TMPro.ShaderUtilities.ID_EnvMap)&&null!=this.m_sharedMaterial.GetTexture(TMPro.ShaderUtilities.ID_EnvMap)&&(this.m_EnvMapMatrix=(new pc.Mat4).setTRS(pc.Vec3.ZERO.clone(),(new pc.Quat).setFromEulerAngles_Unity(rotation.x,rotation.y,rotation.z),new pc.Vec3(1,1,1)))},EnableMasking:function(){null==this.m_fontMaterial&&(this.m_fontMaterial=this.CreateMaterialInstance(this.m_sharedMaterial)),this.m_sharedMaterial=this.m_fontMaterial,this.m_sharedMaterial.HasProperty(TMPro.ShaderUtilities.ID_ClipRect)&&this.UpdateMask(),this.m_isMaskingEnabled=!0},DisableMasking:function(){},UpdateMask:function(){if(UnityEngine.Component.op_Inequality(this.m_rectTransform,null)){TMPro.ShaderUtilities.isInitialized,this.m_isScrollRegionSet=!0,softnessX=softnessX>0?softnessX:0,softnessY=softnessY>0?softnessY:0;var e=(this.m_rectTransform.rect.width-UnityEngine.Mathf.Max(this.m_margin.x,0)-UnityEngine.Mathf.Max(this.m_margin.z,0))/2+softnessX,t=(this.m_rectTransform.rect.height-UnityEngine.Mathf.Max(this.m_margin.y,0)-UnityEngine.Mathf.Max(this.m_margin.w,0))/2+softnessY,n=UnityEngine.Vector2.FromVector3(this.m_rectTransform.localPosition.$clone().add(new pc.Vec3((.5-this.m_rectTransform.pivot.x)*this.m_rectTransform.rect.width+(UnityEngine.Mathf.Max(this.m_margin.x,0)-UnityEngine.Mathf.Max(this.m_margin.z,0))/2,(.5-this.m_rectTransform.pivot.y)*this.m_rectTransform.rect.height+(-UnityEngine.Mathf.Max(this.m_margin.y,0)+UnityEngine.Mathf.Max(this.m_margin.w,0))/2,0)));new pc.Vec4(n.x,n.y,e,t)}},GetMaterial:function(e){return null!=this.m_fontMaterial&&this.m_fontMaterial.GetInstanceID()===e.GetInstanceID()||(this.m_fontMaterial=this.CreateMaterialInstance(e)),this.m_sharedMaterial=this.m_fontMaterial,this.m_padding=this.GetPaddingForMaterial(),this.m_ShouldRecalculateStencil=!0,this.SetVerticesDirty(),this.SetMaterialDirty(),this.m_sharedMaterial},GetMaterials:function(e){var t=this.m_textInfo.materialCount;null==this.m_fontMaterials?this.m_fontMaterials=System.Array.init(t,null,UnityEngine.Material):this.m_fontMaterials.length;for(var n=0;n<t;n++)this.m_fontMaterials[n]=0===n?this.fontMaterial:this.m_subTextObjects[n].material;return this.m_fontSharedMaterials=this.m_fontMaterials,this.m_fontMaterials},SetSharedMaterial:function(e){this.m_sharedMaterial=e,this.m_padding=this.GetPaddingForMaterial(),this.SetMaterialDirty()},GetSharedMaterials:function(){var e=this.m_textInfo.materialCount;null==this.m_fontSharedMaterials?this.m_fontSharedMaterials=System.Array.init(e,null,UnityEngine.Material):this.m_fontSharedMaterials.length;for(var t=0;t<e;t++)this.m_fontSharedMaterials[t]=0===t?this.m_sharedMaterial:this.m_subTextObjects[t].sharedMaterial;return this.m_fontSharedMaterials},SetSharedMaterials:function(e){var t,n,i=this.m_textInfo.materialCount;null==this.m_fontSharedMaterials?this.m_fontSharedMaterials=System.Array.init(i,null,UnityEngine.Material):this.m_fontSharedMaterials.length;for(var r=0;r<i;r++)if(0===r){if(null==e[r].GetTexture(TMPro.ShaderUtilities.ID_MainTex)||e[r].GetTexture(TMPro.ShaderUtilities.ID_MainTex).GetInstanceID()!==this.m_sharedMaterial.GetTexture(TMPro.ShaderUtilities.ID_MainTex).GetInstanceID())continue;this.m_sharedMaterial=(t=e[r],this.m_fontSharedMaterials[r]=t,t),this.m_padding=this.GetPaddingForMaterial$1(this.m_sharedMaterial)}else{if(null==e[r].GetTexture(TMPro.ShaderUtilities.ID_MainTex)||e[r].GetTexture(TMPro.ShaderUtilities.ID_MainTex).GetInstanceID()!==this.m_subTextObjects[r].sharedMaterial.GetTexture(TMPro.ShaderUtilities.ID_MainTex).GetInstanceID())continue;this.m_subTextObjects[r].isDefaultMaterial&&(this.m_subTextObjects[r].sharedMaterial=(n=e[r],this.m_fontSharedMaterials[r]=n,n))}},SetOutlineThickness:function(e){null!=this.m_fontMaterial&&this.m_sharedMaterial.GetInstanceID()!==this.m_fontMaterial.GetInstanceID()?this.m_sharedMaterial=this.m_fontMaterial:null==this.m_fontMaterial&&(this.m_fontMaterial=this.CreateMaterialInstance(this.m_sharedMaterial),this.m_sharedMaterial=this.m_fontMaterial),e=Math.max(0,Math.min(1,e)),this.m_padding=this.GetPaddingForMaterial()},SetFaceColor:function(e){null==this.m_fontMaterial&&(this.m_fontMaterial=this.CreateMaterialInstance(this.m_sharedMaterial)),this.m_sharedMaterial=this.m_fontMaterial,this.m_padding=this.GetPaddingForMaterial()},SetOutlineColor:function(e){null==this.m_fontMaterial&&(this.m_fontMaterial=this.CreateMaterialInstance(this.m_sharedMaterial)),this.m_sharedMaterial=this.m_fontMaterial,this.m_padding=this.GetPaddingForMaterial()},SetShaderDepth:function(){UnityEngine.Component.op_Equality(this.m_canvas,null)||null==this.m_sharedMaterial||this.m_canvas.renderMode===UnityEngine.RenderMode.ScreenSpaceOverlay||this.m_isOverlay},SetCulling:function(){if(this.m_isCullingEnabled){var e=this.materialForRendering;null!=e&&e.SetFloat$1("_CullMode",2);for(var t=1;t<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[t],null);t++)e=this.m_subTextObjects[t].materialForRendering}else{var n=this.materialForRendering;null!=n&&n.SetFloat$1("_CullMode",0);for(var i=1;i<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[i],null);i++)n=this.m_subTextObjects[i].materialForRendering}},SetPerspectiveCorrection:function(){this.m_isOrthographic},SetMeshArrays:function(e){this.m_textInfo.meshInfo[0].ResizeMeshInfo(e),this.m_canvasRenderer.SetMesh(this.m_textInfo.meshInfo[0].mesh)},SetArraySizes:function(e){var t,n,i=0;if(this.m_totalCharacterCount=0,this.m_isUsingBold=!1,this.m_isParsingText=!1,this.tag_NoParsing=!1,this.m_FontStyleInternal=this.m_fontStyle,this.m_fontStyleStack.Clear(),this.m_FontWeightInternal=(this.m_FontStyleInternal&TMPro.FontStyles.Bold)===TMPro.FontStyles.Bold?TMPro.FontWeight.Bold:this.m_fontWeight,this.m_FontWeightStack.SetDefault(this.m_FontWeightInternal),this.m_currentFontAsset=this.m_fontAsset,this.m_currentMaterial=this.m_sharedMaterial,this.m_currentMaterialIndex=0,TMPro.TMP_Text.m_materialReferenceStack.SetDefault(new TMPro.MaterialReference.$ctor1(this.m_currentMaterialIndex,this.m_currentFontAsset,null,this.m_currentMaterial,this.m_padding)),TMPro.TMP_Text.m_materialReferenceIndexLookup.clear(),TMPro.MaterialReference.AddMaterialReference(this.m_currentMaterial,this.m_currentFontAsset,Bridge.ref(TMPro.TMP_Text,"m_materialReferences"),TMPro.TMP_Text.m_materialReferenceIndexLookup),null==this.m_textInfo||(this.m_textInfo.characterInfo.length,this.m_InternalTextProcessingArraySize),this.m_overflowMode===TMPro.TextOverflowModes.Ellipsis&&(this.GetEllipsisSpecialCharacter(this.m_currentFontAsset),null!=this.m_Ellipsis.character?this.m_Ellipsis.fontAsset.GetInstanceID()!==this.m_currentFontAsset.GetInstanceID()&&(TMPro.TMP_Settings.matchMaterialPreset&&this.m_currentMaterial.GetInstanceID()!==this.m_Ellipsis.fontAsset.material.GetInstanceID()||(this.m_Ellipsis.material=this.m_Ellipsis.fontAsset.material),this.m_Ellipsis.materialIndex=TMPro.MaterialReference.AddMaterialReference(this.m_Ellipsis.material,this.m_Ellipsis.fontAsset,Bridge.ref(TMPro.TMP_Text,"m_materialReferences"),TMPro.TMP_Text.m_materialReferenceIndexLookup),TMPro.TMP_Text.m_materialReferences[this.m_Ellipsis.materialIndex].referenceCount=0):TMPro.TMP_Settings.warningsDisabled||UnityEngine.Debug.LogWarning$1("The character used for Ellipsis is not available in font asset ["+(this.m_currentFontAsset.name||"")+"] or any potential fallbacks. Switching Text Overflow mode to Truncate.",this)),this.m_overflowMode===TMPro.TextOverflowModes.Linked&&UnityEngine.MonoBehaviour.op_Inequality(this.m_linkedTextComponent,null)&&!this.m_isCalculatingPreferredValues)for(var r=this.m_linkedTextComponent;UnityEngine.MonoBehaviour.op_Inequality(r,null);)r.text="",r.ClearMesh(),r.textInfo.Clear(),r=r.linkedTextComponent;for(var s=0;s<e.length&&0!==e[s].unicode;s++){null==this.m_textInfo.characterInfo||(this.m_totalCharacterCount,this.m_textInfo.characterInfo.length);var a=e[s].unicode;if(this.m_isRichText&&60===a){var o=this.m_currentMaterialIndex,l={};if(this.ValidateHtmlTag(e,s+1,l)){var c=e[s].stringIndex;s=l.v,(this.m_FontStyleInternal&TMPro.FontStyles.Bold)===TMPro.FontStyles.Bold&&(this.m_isUsingBold=!0),this.m_textElementType===TMPro.TMP_TextElementType.Sprite&&(TMPro.TMP_Text.m_materialReferences[this.m_currentMaterialIndex].referenceCount+=1,this.m_textInfo.characterInfo[this.m_totalCharacterCount].character=57344+this.m_spriteIndex,this.m_textInfo.characterInfo[this.m_totalCharacterCount].spriteIndex=this.m_spriteIndex,this.m_textInfo.characterInfo[this.m_totalCharacterCount].fontAsset=this.m_currentFontAsset,this.m_textInfo.characterInfo[this.m_totalCharacterCount].spriteAsset=this.m_currentSpriteAsset,this.m_textInfo.characterInfo[this.m_totalCharacterCount].materialReferenceIndex=this.m_currentMaterialIndex,this.m_textInfo.characterInfo[this.m_totalCharacterCount].textElement=this.m_currentSpriteAsset.spriteCharacterTable.getItem(this.m_spriteIndex),this.m_textInfo.characterInfo[this.m_totalCharacterCount].elementType=this.m_textElementType,this.m_textInfo.characterInfo[this.m_totalCharacterCount].index=c,this.m_textInfo.characterInfo[this.m_totalCharacterCount].stringLength=e[s].stringIndex-c+1,this.m_currentMaterialIndex=o,i+=1,this.m_totalCharacterCount+=1);continue}}var u={v:!1},h=!1,d=this.m_currentFontAsset,m=this.m_currentMaterial,g=this.m_currentMaterialIndex;this.m_textElementType===TMPro.TMP_TextElementType.Character&&((this.m_FontStyleInternal&TMPro.FontStyles.UpperCase)===TMPro.FontStyles.UpperCase?Bridge.isLower(a)&&(a=String.fromCharCode(a).toUpperCase().charCodeAt(0)):(this.m_FontStyleInternal&TMPro.FontStyles.LowerCase)===TMPro.FontStyles.LowerCase?Bridge.isUpper(a)&&(a=String.fromCharCode(a).toLowerCase().charCodeAt(0)):(this.m_FontStyleInternal&TMPro.FontStyles.SmallCaps)===TMPro.FontStyles.SmallCaps&&Bridge.isLower(a)&&(a=String.fromCharCode(a).toUpperCase().charCodeAt(0)));var $=this.GetTextElement(a,this.m_currentFontAsset,this.m_FontStyleInternal,this.m_FontWeightInternal,u);if(null==$){var p=a;if(t=0===TMPro.TMP_Settings.missingGlyphCharacter?9633:TMPro.TMP_Settings.missingGlyphCharacter,e[s].unicode=t,a=t,null==$&&null!=TMPro.TMP_Settings.fallbackFontAssets&&TMPro.TMP_Settings.fallbackFontAssets.Count,null==$&&TMPro.TMP_Settings.defaultFontAsset,null==$&&(e[s].unicode=32,a=32),null==$&&(e[s].unicode=3,a=3),!TMPro.TMP_Settings.warningsDisabled){var y=p>65535?System.String.format("The character with Unicode value \\U{0:X8} was not found in the [{1}] font asset or any potential fallbacks. It was replaced by Unicode character \\u{2:X4} in text object [{3}].",p,this.m_fontAsset.name,$.unicode,this.name):System.String.format("The character with Unicode value \\u{0:X4} was not found in the [{1}] font asset or any potential fallbacks. It was replaced by Unicode character \\u{2:X4} in text object [{3}].",p,this.m_fontAsset.name,$.unicode,this.name);UnityEngine.Debug.LogWarning$1(y,this)}}$.elementType===TMPro.TextElementType.Character&&$.textAsset.instanceID!==this.m_currentFontAsset.instanceID&&(h=!0),this.m_textInfo.characterInfo[this.m_totalCharacterCount].textElement=$,this.m_textInfo.characterInfo[this.m_totalCharacterCount].isUsingAlternateTypeface=u.v,this.m_textInfo.characterInfo[this.m_totalCharacterCount].character=a,this.m_textInfo.characterInfo[this.m_totalCharacterCount].index=e[s].stringIndex,this.m_textInfo.characterInfo[this.m_totalCharacterCount].stringLength=e[s].length,this.m_textInfo.characterInfo[this.m_totalCharacterCount].fontAsset=this.m_currentFontAsset,$.elementType!==TMPro.TextElementType.Sprite?(h&&this.m_currentFontAsset.instanceID!==this.m_fontAsset.instanceID&&(TMPro.TMP_Settings.matchMaterialPreset||(this.m_currentMaterial=this.m_currentFontAsset.material),this.m_currentMaterialIndex=TMPro.MaterialReference.AddMaterialReference(this.m_currentMaterial,this.m_currentFontAsset,Bridge.ref(TMPro.TMP_Text,"m_materialReferences"),TMPro.TMP_Text.m_materialReferenceIndexLookup)),null!=$&&$.glyph.atlasIndex>0&&(this.m_currentMaterialIndex=TMPro.MaterialReference.AddMaterialReference(this.m_currentMaterial,this.m_currentFontAsset,Bridge.ref(TMPro.TMP_Text,"m_materialReferences"),TMPro.TMP_Text.m_materialReferenceIndexLookup),h=!0),System.Char.isWhiteSpace(String.fromCharCode(a))||8203===a||(TMPro.TMP_Text.m_materialReferences[this.m_currentMaterialIndex].referenceCount<16383||(this.m_currentMaterialIndex=TMPro.MaterialReference.AddMaterialReference(new UnityEngine.Material.$ctor1(this.m_currentMaterial),this.m_currentFontAsset,Bridge.ref(TMPro.TMP_Text,"m_materialReferences"),TMPro.TMP_Text.m_materialReferenceIndexLookup)),TMPro.TMP_Text.m_materialReferences[this.m_currentMaterialIndex].referenceCount+=1),this.m_textInfo.characterInfo[this.m_totalCharacterCount].material=this.m_currentMaterial,this.m_textInfo.characterInfo[this.m_totalCharacterCount].materialReferenceIndex=this.m_currentMaterialIndex,TMPro.TMP_Text.m_materialReferences[this.m_currentMaterialIndex].isFallbackMaterial=h,h&&(TMPro.TMP_Text.m_materialReferences[this.m_currentMaterialIndex].fallbackMaterial=m,this.m_currentFontAsset=d,this.m_currentMaterial=m,this.m_currentMaterialIndex=g),this.m_totalCharacterCount+=1):(this.m_currentMaterialIndex=TMPro.MaterialReference.AddMaterialReference$1(spriteAssetRef.material,spriteAssetRef,Bridge.ref(TMPro.TMP_Text,"m_materialReferences"),TMPro.TMP_Text.m_materialReferenceIndexLookup),TMPro.TMP_Text.m_materialReferences[this.m_currentMaterialIndex].referenceCount+=1,this.m_textInfo.characterInfo[this.m_totalCharacterCount].materialReferenceIndex=this.m_currentMaterialIndex,this.m_textInfo.characterInfo[this.m_totalCharacterCount].spriteAsset=spriteAssetRef,this.m_textInfo.characterInfo[this.m_totalCharacterCount].spriteIndex=$.glyphIndex,this.m_currentMaterialIndex=g,i+=1,this.m_totalCharacterCount+=1)}if(this.m_isCalculatingPreferredValues)return this.m_isCalculatingPreferredValues=!1,this.m_totalCharacterCount;this.m_textInfo.spriteCount=i;var f=(n=TMPro.TMP_Text.m_materialReferenceIndexLookup.Count,this.m_textInfo.materialCount=n,n);this.m_textInfo.meshInfo.length,this.m_subTextObjects.length,this.m_VertexBufferAutoSizeReduction&&(this.m_textInfo.characterInfo.length,this.m_totalCharacterCount);for(var _=0;_<f;_++){_>0&&(UnityEngine.MonoBehaviour.op_Equality(this.m_subTextObjects[_],null)&&(this.m_textInfo.meshInfo[_].vertices=null),pc.Vec2.equals(this.m_rectTransform.pivot,this.m_subTextObjects[_].rectTransform.pivot)||(this.m_subTextObjects[_].rectTransform.pivot=this.m_rectTransform.pivot.$clone()),null!=this.m_subTextObjects[_].sharedMaterial&&this.m_subTextObjects[_].sharedMaterial.GetInstanceID()===TMPro.TMP_Text.m_materialReferences[_].material.GetInstanceID()||(this.m_subTextObjects[_].sharedMaterial=TMPro.TMP_Text.m_materialReferences[_].material,this.m_subTextObjects[_].fontAsset=TMPro.TMP_Text.m_materialReferences[_].fontAsset,this.m_subTextObjects[_].spriteAsset=TMPro.TMP_Text.m_materialReferences[_].spriteAsset),TMPro.TMP_Text.m_materialReferences[_].isFallbackMaterial&&(this.m_subTextObjects[_].fallbackMaterial=TMPro.TMP_Text.m_materialReferences[_].material,this.m_subTextObjects[_].fallbackSourceMaterial=TMPro.TMP_Text.m_materialReferences[_].fallbackMaterial));var S=TMPro.TMP_Text.m_materialReferences[_].referenceCount;null==this.m_textInfo.meshInfo[_].vertices||this.m_textInfo.meshInfo[_].vertices.length<4*S?null==this.m_textInfo.meshInfo[_].vertices||this.m_textInfo.meshInfo[_].ResizeMeshInfo(S>1024?S+256:UnityEngine.Mathf.NextPowerOfTwo(S+1)):this.m_VertexBufferAutoSizeReduction&&S>0&&this.m_textInfo.meshInfo[_].vertices.length/4-S>256&&this.m_textInfo.meshInfo[_].ResizeMeshInfo(S>1024?S+256:UnityEngine.Mathf.NextPowerOfTwo(S+1)),this.m_textInfo.meshInfo[_].material=TMPro.TMP_Text.m_materialReferences[_].material}for(var b=f;b<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[b],null);b++)b<this.m_textInfo.meshInfo.length&&this.m_subTextObjects[b].canvasRenderer.SetMesh(null);return this.m_totalCharacterCount},ComputeMarginSize:function(){if(UnityEngine.Component.op_Inequality(this.rectTransform$1,null)){var e=this.m_rectTransform.rect.$clone();this.m_marginWidth=e.width-this.m_margin.x-this.m_margin.z,this.m_marginHeight=e.height-this.m_margin.y-this.m_margin.w,this.m_PreviousRectTransformSize=e.size.$clone(),this.m_PreviousPivotPosition=this.m_rectTransform.pivot.$clone(),this.m_RectTransformCorners=this.GetTextContainerLocalCorners()}},OnDidApplyAnimationProperties:function(){this.m_havePropertiesChanged=!0,this.SetVerticesDirty(),this.SetLayoutDirty()},OnCanvasHierarchyChanged:function(){TMPro.TMP_Text.prototype.OnCanvasHierarchyChanged.call(this),this.m_canvas=this.canvas,this.m_isAwake&&this.isActiveAndEnabled&&(UnityEngine.Component.op_Equality(this.m_canvas,null)||!1===this.m_canvas.enabled||this.m_IsTextObjectScaleStatic)},OnTransformParentChanged:function(){TMPro.TMP_Text.prototype.OnTransformParentChanged.call(this),this.m_canvas=this.canvas,this.ComputeMarginSize(),this.m_havePropertiesChanged=!0},OnRectTransformDimensionsChange:function(){if(this.gameObject.activeInHierarchy){var e=!1;UnityEngine.Component.op_Inequality(this.m_canvas,null)&&this.m_CanvasScaleFactor!==this.m_canvas.scaleFactor&&(this.m_CanvasScaleFactor=this.m_canvas.scaleFactor,e=!0),!1===e&&UnityEngine.Component.op_Inequality(this.rectTransform$1,null)&&Math.abs(this.m_rectTransform.rect.width-this.m_PreviousRectTransformSize.x)<1e-4&&Math.abs(this.m_rectTransform.rect.height-this.m_PreviousRectTransformSize.y)<1e-4&&Math.abs(this.m_rectTransform.pivot.x-this.m_PreviousPivotPosition.x)<1e-4&&Math.abs(this.m_rectTransform.pivot.y-this.m_PreviousPivotPosition.y)<1e-4||(this.ComputeMarginSize(),this.UpdateSubObjectPivot(),this.SetVerticesDirty(),this.SetLayoutDirty())}},InternalUpdate:function(){if(!1===this.m_havePropertiesChanged){var e=this.m_rectTransform.lossyScale.y;if(Math.abs(e-this.m_previousLossyScaleY)>1e-4&&0!==this.m_TextProcessingArray[0].unicode){var t=e/this.m_previousLossyScaleY;this.UpdateSDFScale(t),this.m_previousLossyScaleY=e}}this.m_isUsingLegacyAnimationComponent&&(this.m_havePropertiesChanged=!0,this.OnPreRenderCanvas())},OnPreRenderCanvas:function(){if(this.m_isAwake&&(!1!==this.IsActive()||!1!==this.m_ignoreActiveState)&&(!UnityEngine.Component.op_Equality(this.m_canvas,null)||(this.m_canvas=this.canvas,!UnityEngine.Component.op_Equality(this.m_canvas,null))))if(null!=this.m_fontAsset){if(this.m_havePropertiesChanged||this.m_isLayoutDirty)for(this.checkPaddingRequired&&this.UpdateMeshPadding(),this.ParseInputText(),this.m_enableAutoSizing&&(this.m_fontSize=Math.max(this.m_fontSizeMin,Math.min(this.m_fontSizeBase,this.m_fontSizeMax))),this.m_maxFontSize=this.m_fontSizeMax,this.m_minFontSize=this.m_fontSizeMin,this.m_lineSpacingDelta=0,this.m_charWidthAdjDelta=0,this.m_isTextTruncated=!1,this.m_havePropertiesChanged=!1,this.m_isLayoutDirty=!1,this.m_ignoreActiveState=!1,this.m_IsAutoSizePointSizeSet=!1,this.m_AutoSizeIterationCount=0;!1===this.m_IsAutoSizePointSizeSet;)this.GenerateTextMesh(),this.m_AutoSizeIterationCount+=1}else UnityEngine.Debug.LogWarning$1("Please assign a Font Asset to this "+(this.transform$1.name||"")+" gameobject.",this)},GenerateTextMesh:function(){var e,t;if(null==this.m_fontAsset||null==this.m_fontAsset.characterLookupTable)return UnityEngine.Debug.LogWarning$1("Can't Generate Mesh! No Font Asset has been assigned to Object ID: "+this.GetInstanceID()),void(this.m_IsAutoSizePointSizeSet=!0);if(null!=this.m_textInfo&&this.m_textInfo.Clear(),null==this.m_TextProcessingArray||0===this.m_TextProcessingArray.length||0===this.m_TextProcessingArray[0].unicode)return this.ClearMesh(),this.m_preferredWidth=0,this.m_preferredHeight=0,void(this.m_IsAutoSizePointSizeSet=!0);this.m_currentFontAsset=this.m_fontAsset,this.m_currentMaterial=this.m_sharedMaterial,this.m_currentMaterialIndex=0,TMPro.TMP_Text.m_materialReferenceStack.SetDefault(new TMPro.MaterialReference.$ctor1(this.m_currentMaterialIndex,this.m_currentFontAsset,null,this.m_currentMaterial,this.m_padding)),this.m_currentSpriteAsset=this.m_spriteAsset,UnityEngine.MonoBehaviour.op_Inequality(this.m_spriteAnimator,null)&&this.m_spriteAnimator.StopAllAnimations();var n=this.m_totalCharacterCount,i=this.m_fontSize/this.m_fontAsset.m_FaceInfo.pointSize*this.m_fontAsset.m_FaceInfo.scale*(this.m_isOrthographic?1:.1),r=i,s=.01*this.m_fontSize*(this.m_isOrthographic?1:.1);this.m_fontScaleMultiplier=1,this.m_currentFontSize=this.m_fontSize,this.m_sizeStack.SetDefault(this.m_currentFontSize);var a,o=0;this.m_FontStyleInternal=this.m_fontStyle,this.m_FontWeightInternal=(this.m_FontStyleInternal&TMPro.FontStyles.Bold)===TMPro.FontStyles.Bold?TMPro.FontWeight.Bold:this.m_fontWeight,this.m_FontWeightStack.SetDefault(this.m_FontWeightInternal),this.m_fontStyleStack.Clear(),this.m_lineJustification=this.m_HorizontalAlignment,this.m_lineJustificationStack.SetDefault(this.m_lineJustification);var l=0,c=0,u=0;this.m_baselineOffset=0,this.m_baselineOffsetStack.Clear();var h=!1,d=pc.Vec3.ZERO.clone(),m=pc.Vec3.ZERO.clone(),g=!1,$=pc.Vec3.ZERO.clone(),p=pc.Vec3.ZERO.clone(),y=!1,f=pc.Vec3.ZERO.clone(),_=pc.Vec3.ZERO.clone(),S=new UnityEngine.Color32;this.m_fontColor32.Set(1,1,1,1),this.m_fontColor32.MultiplyByColor(this.m_fontColor),this.m_htmlColor.Copy(this.m_fontColor32),this.m_underlineColor.Copy(this.m_htmlColor),this.m_strikethroughColor.Copy(this.m_htmlColor),this.m_colorStack.SetDefault(this.m_htmlColor.$clone()),this.m_underlineColorStack.SetDefault(this.m_htmlColor.$clone()),this.m_strikethroughColorStack.SetDefault(this.m_htmlColor.$clone()),this.m_HighlightStateStack.SetDefault(new TMPro.HighlightState.$ctor1(this.m_htmlColor.$clone(),TMPro.TMP_Offset.zero.$clone())),this.m_colorGradientPreset=null,this.m_colorGradientStack.SetDefault(null),this.m_ItalicAngle=this.m_currentFontAsset.italicStyle,this.m_ItalicAngleStack.SetDefault(this.m_ItalicAngle),this.m_actionStack.Clear(),this.m_isFXMatrixSet=!1,this.m_lineOffset=0,this.m_lineHeight=TMPro.TMP_Math.FLOAT_UNSET;var b=this.m_currentFontAsset.m_FaceInfo.lineHeight-(this.m_currentFontAsset.m_FaceInfo.ascentLine-this.m_currentFontAsset.m_FaceInfo.descentLine);this.m_cSpacing=0,this.m_monoSpacing=0,this.m_xAdvance=0,this.tag_LineIndent=0,this.tag_Indent=0,this.m_indentStack.SetDefault(0),this.tag_NoParsing=!1,this.m_characterCount=0,this.m_firstCharacterOfLine=this.m_firstVisibleCharacter,this.m_lastCharacterOfLine=0,this.m_firstVisibleCharacterOfLine=0,this.m_lastVisibleCharacterOfLine=0,this.m_maxLineAscender=TMPro.TMP_Text.k_LargeNegativeFloat,this.m_maxLineDescender=TMPro.TMP_Text.k_LargePositiveFloat,this.m_lineNumber=0,this.m_startOfLineAscender=0,this.m_startOfLineDescender=0,this.m_lineVisibleCharacterCount=0;var C=!0;this.m_IsDrivenLineSpacing=!1,this.m_firstOverflowCharacterIndex=-1,this.m_pageNumber=0;var E=Math.max(0,Math.min(this.m_pageToDisplay-1,this.m_textInfo.pageInfo.length-1));this.m_textInfo.ClearPageInfo();var T=this.m_margin.$clone(),v=this.m_marginWidth>0?this.m_marginWidth:0,I=this.m_marginHeight>0?this.m_marginHeight:0;this.m_marginLeft=0,this.m_marginRight=0,this.m_width=-1;var x=v+1e-4-this.m_marginLeft-this.m_marginRight;this.m_meshExtents.min=TMPro.TMP_Text.k_LargePositiveVector2.$clone(),this.m_meshExtents.max=TMPro.TMP_Text.k_LargeNegativeVector2.$clone(),this.m_textInfo.ClearLineInfo(),this.m_maxCapHeight=0,this.m_maxTextAscender=0,this.m_ElementDescender=0,this.m_PageAscender=0;var A={v:0},w={v:!1};this.m_isNewPage=!1;var D=!0;this.m_isNonBreakingSpace=!1;var M=!1,P=0,U=!1;this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState"),-1,-1),this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLineState"),-1,-1),this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedEllipsisState"),-1,-1),this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLastValidState"),-1,-1),this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedSoftLineBreakState"),-1,-1),TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Clear();for(var B=0,O=new TMPro.TMP_LineInfo,L=pc.Vec3.ZERO.clone(),R=pc.Vec3.ZERO.clone(),F=pc.Vec3.ZERO.clone(),G=pc.Vec3.ZERO.clone(),k=pc.Vec3.ZERO.clone(),V=pc.Vec3.ZERO.clone(),N=pc.Vec3.ZERO.clone(),z=0;z<this.m_TextProcessingArray.length&&0!==this.m_TextProcessingArray[z].unicode;z++){if(o=this.m_TextProcessingArray[z].unicode,characterInfo=this.m_textInfo.characterInfo[this.m_characterCount],B>5&&(UnityEngine.Debug.LogError$2("Line breaking recursion max threshold hit... Character ["+o+"] index: "+z),characterToSubstitute.index=this.m_characterCount,characterToSubstitute.unicode=3),this.m_isRichText&&60===o){this.m_isParsingText=!0;var H={};if(this.ValidateHtmlTag(this.m_TextProcessingArray,z+1,H)&&(z=H.v,this.m_textElementType===TMPro.TMP_TextElementType.Character))continue}else this.m_textElementType=this.m_textInfo.characterInfo[this.m_characterCount].elementType,this.m_currentMaterialIndex=this.m_textInfo.characterInfo[this.m_characterCount].materialReferenceIndex,this.m_currentFontAsset=this.m_textInfo.characterInfo[this.m_characterCount].fontAsset;var j=this.m_currentMaterialIndex,Z=this.m_textInfo.characterInfo[this.m_characterCount].isUsingAlternateTypeface;this.m_isParsingText=!1;var q=!1;if(characterToSubstitute.index===this.m_characterCount)switch(q=!0,o=characterToSubstitute.unicode){case 3:characterInfo.textElement=this.m_currentFontAsset.characterLookupTable.getItem(3),this.m_isTextTruncated=!0;break;case 45:break;case 8230:characterInfo.textElement=this.m_Ellipsis.character,characterInfo.fontAsset=this.m_Ellipsis.fontAsset,characterInfo.material=this.m_Ellipsis.material,characterInfo.materialReferenceIndex=this.m_Ellipsis.materialIndex,this.m_isTextTruncated=!0,characterToSubstitute.index=this.m_characterCount+1,characterToSubstitute.unicode=3}if(this.m_characterCount<this.m_firstVisibleCharacter&&3!==o)characterInfo.isVisible=!1,characterInfo.character=8203,characterInfo.lineNumber=0,this.m_characterCount+=1;else{var K=1;this.m_textElementType===TMPro.TMP_TextElementType.Character&&((this.m_FontStyleInternal&TMPro.FontStyles.UpperCase)===TMPro.FontStyles.UpperCase?Bridge.isLower(o)&&(o=String.fromCharCode(o).toUpperCase().charCodeAt(0)):(this.m_FontStyleInternal&TMPro.FontStyles.LowerCase)===TMPro.FontStyles.LowerCase?Bridge.isUpper(o)&&(o=String.fromCharCode(o).toLowerCase().charCodeAt(0)):(this.m_FontStyleInternal&TMPro.FontStyles.SmallCaps)===TMPro.FontStyles.SmallCaps&&Bridge.isLower(o)&&(K=.8,o=String.fromCharCode(o).toUpperCase().charCodeAt(0)));var W=0,J=0,Q=0;if(this.m_textElementType===TMPro.TMP_TextElementType.Sprite){this.m_currentSpriteAsset=characterInfo.spriteAsset,this.m_spriteIndex=characterInfo.spriteIndex;var X=this.m_currentSpriteAsset.spriteCharacterTable.getItem(this.m_spriteIndex);if(null==X)continue;60===o?o=57344+this.m_spriteIndex:this.m_spriteColor=TMPro.TMP_Text.s_colorWhite.$clone();var Y=this.m_currentFontSize/this.m_currentFontAsset.faceInfo.pointSize*this.m_currentFontAsset.faceInfo.scale*(this.m_isOrthographic?1:.1);if(this.m_currentSpriteAsset.m_FaceInfo.pointSize>0){var ee=this.m_currentFontSize/this.m_currentSpriteAsset.m_FaceInfo.pointSize*this.m_currentSpriteAsset.m_FaceInfo.scale*(this.m_isOrthographic?1:.1);r=X.m_Scale*X.m_Glyph.scale*ee,J=this.m_currentSpriteAsset.m_FaceInfo.ascentLine,W=this.m_currentSpriteAsset.m_FaceInfo.baseline*Y*this.m_fontScaleMultiplier*this.m_currentSpriteAsset.m_FaceInfo.scale,Q=this.m_currentSpriteAsset.m_FaceInfo.descentLine}else{var te=this.m_currentFontSize/this.m_currentFontAsset.m_FaceInfo.pointSize*this.m_currentFontAsset.m_FaceInfo.scale*(this.m_isOrthographic?1:.1),ne=te/(r=this.m_currentFontAsset.m_FaceInfo.ascentLine/X.m_Glyph.metrics.height*X.m_Scale*X.m_Glyph.scale*te);J=this.m_currentFontAsset.m_FaceInfo.ascentLine*ne,W=this.m_currentFontAsset.m_FaceInfo.baseline*Y*this.m_fontScaleMultiplier*this.m_currentFontAsset.m_FaceInfo.scale,Q=this.m_currentFontAsset.m_FaceInfo.descentLine*ne}this.m_cached_TextElement=X,characterInfo.scale=r,characterInfo.spriteAsset=this.m_currentSpriteAsset,characterInfo.fontAsset=this.m_currentFontAsset,characterInfo.materialReferenceIndex=this.m_currentMaterialIndex,this.m_currentMaterialIndex=j,l=0}else if(this.m_textElementType===TMPro.TMP_TextElementType.Character){if(this.m_cached_TextElement=this.m_textInfo.characterInfo[this.m_characterCount].textElement,null==this.m_cached_TextElement)continue;var ie;this.m_currentFontAsset=characterInfo.fontAsset,this.m_currentMaterial=characterInfo.material,this.m_currentMaterialIndex=characterInfo.materialReferenceIndex,ie=q&&10===this.m_TextProcessingArray[z].unicode&&this.m_characterCount!==this.m_firstCharacterOfLine?characterInfo.pointSize*K/this.m_currentFontAsset.m_FaceInfo.pointSize*this.m_currentFontAsset.m_FaceInfo.scale*(this.m_isOrthographic?1:.1):this.m_currentFontSize*K/this.m_currentFontAsset.m_FaceInfo.pointSize*this.m_currentFontAsset.m_FaceInfo.scale*(this.m_isOrthographic?1:.1),q&&8230===o?(J=0,Q=0):(J=this.m_currentFontAsset.m_FaceInfo.ascentLine,Q=this.m_currentFontAsset.m_FaceInfo.descentLine),r=ie*this.m_fontScaleMultiplier*this.m_cached_TextElement.m_Scale*this.m_cached_TextElement.m_Glyph.scale,W=this.m_currentFontAsset.m_FaceInfo.baseline*ie*this.m_fontScaleMultiplier*this.m_currentFontAsset.m_FaceInfo.scale,characterInfo.scale=r,l=0===this.m_currentMaterialIndex?this.m_padding:this.m_subTextObjects[this.m_currentMaterialIndex].padding}var re=r;173!==o&&3!==o||(r=0),characterInfo.character=o,characterInfo.pointSize=this.m_currentFontSize,characterInfo.style=this.m_FontStyleInternal,characterInfo.color.Copy(this.m_htmlColor),characterInfo.underlineColor.Copy(this.m_underlineColor),characterInfo.strikethroughColor.Copy(this.m_strikethroughColor),characterInfo.highlightState.Copy(this.m_HighlightStateStack.current);var se=this.m_cached_TextElement.m_Glyph.metrics.$clone(),ae=o<=65535&&System.Char.isWhiteSpace(String.fromCharCode(o)),oe=this.m_characterSpacing;if(this.m_GlyphHorizontalAdvanceAdjustment=0,this.m_enableKerning){var le={},ce=this.m_cached_TextElement.m_GlyphIndex;if(this.m_characterCount<n-1){var ue=this.m_textInfo.characterInfo[this.m_characterCount+1].textElement.m_GlyphIndex<<16|ce;this.m_currentFontAsset.m_FontFeatureTable.m_GlyphPairAdjustmentRecordLookupDictionary.tryGetValue(ue,le)&&(glyphAdjustments=le.v.m_FirstAdjustmentRecord.m_GlyphValueRecord.$clone(),oe=(le.v.m_FeatureLookupFlags&TMPro.FontFeatureLookupFlags.IgnoreSpacingAdjustments)===TMPro.FontFeatureLookupFlags.IgnoreSpacingAdjustments?0:oe)}if(this.m_characterCount>=1){var he=ce<<16|this.m_textInfo.characterInfo[this.m_characterCount-1].textElement.m_GlyphIndex;this.m_currentFontAsset.m_FontFeatureTable.m_GlyphPairAdjustmentRecordLookupDictionary.tryGetValue(he,le)&&(oe=(le.v.m_FeatureLookupFlags&TMPro.FontFeatureLookupFlags.IgnoreSpacingAdjustments)===TMPro.FontFeatureLookupFlags.IgnoreSpacingAdjustments?0:oe)}this.m_GlyphHorizontalAdvanceAdjustment=glyphAdjustments.xAdvance}this.m_isRightToLeft&&(this.m_xAdvance-=se.horizontalAdvance*(1-this.m_charWidthAdjDelta)*r,(ae||8203===o)&&(this.m_xAdvance-=this.m_wordSpacing*s));var de=0;if(0!==this.m_monoSpacing&&(de=(this.m_monoSpacing/2-(se.width/2+se.horizontalBearingX)*r)*(1-this.m_charWidthAdjDelta),this.m_xAdvance+=de),this.m_textElementType!==TMPro.TMP_TextElementType.Character||Z||(this.m_FontStyleInternal&TMPro.FontStyles.Bold)!==TMPro.FontStyles.Bold?(null!=this.m_currentMaterial&&this.m_currentMaterial.HasProperty(TMPro.ShaderUtilities.ID_GradientScale)&&this.m_currentMaterial.HasProperty(TMPro.ShaderUtilities.ID_ScaleRatio_A)?(c=this.m_currentFontAsset.normalStyle/4*gradientScale1*this.m_currentMaterial.GetFloat(TMPro.ShaderUtilities.ID_ScaleRatio_A))+l>gradientScale1&&(l=gradientScale1-c):c=0,u=0):(null!=this.m_currentMaterial&&this.m_currentMaterial.HasProperty(TMPro.ShaderUtilities.ID_GradientScale)?(c=this.m_currentFontAsset.boldStyle/4*gradientScale*this.m_currentMaterial.GetFloat(TMPro.ShaderUtilities.ID_ScaleRatio_A))+l>gradientScale&&(l=gradientScale-c):c=0,u=this.m_currentFontAsset.boldSpacing),L.x=this.m_xAdvance+(se.horizontalBearingX-l-c+glyphAdjustments.m_XPlacement)*r*(1-this.m_charWidthAdjDelta),L.y=W+(se.horizontalBearingY+l+glyphAdjustments.m_YPlacement)*r-this.m_lineOffset+this.m_baselineOffset,L.z=0,R.x=L.x,R.y=L.y-(se.height+2*l)*r,R.z=0,F.x=R.x+(se.width+2*l+2*c)*r*(1-this.m_charWidthAdjDelta),F.y=L.y,F.z=0,G.x=F.x,G.y=R.y,G.z=0,this.m_textElementType===TMPro.TMP_TextElementType.Character&&!Z&&(this.m_FontStyleInternal&TMPro.FontStyles.Italic)===TMPro.FontStyles.Italic){var me=.01*this.m_ItalicAngle;k.set(me*((se.horizontalBearingY+l+c)*r),0,0),V.set(me*((se.horizontalBearingY-se.height-l-c)*r),0,0),N.set((k.x-V.x)/2,0,0),L.add(k),L.sub(N),R.add(V),R.sub(N),F.add(k),F.sub(N),G.add(V),G.sub(N)}if(this.m_isFXMatrixSet){this.m_FXMatrix.getScale().x;var ge=F.$clone().add(R).scale(.5);L=this.m_FXMatrix.transformPoint(L.$clone().sub(ge)).add(ge),R=this.m_FXMatrix.transformPoint(R.$clone().sub(ge)).add(ge),F=this.m_FXMatrix.transformPoint(F.$clone().sub(ge)).add(ge),G=this.m_FXMatrix.transformPoint(G.$clone().sub(ge)).add(ge)}characterInfo.bottomLeft.copy(R),characterInfo.topLeft.copy(L),characterInfo.topRight.copy(F),characterInfo.bottomRight.copy(G),characterInfo.origin=this.m_xAdvance,characterInfo.baseLine=W-this.m_lineOffset+this.m_baselineOffset,characterInfo.aspectRatio=(F.x-R.x)/(L.y-R.y);var $e=this.m_textElementType===TMPro.TMP_TextElementType.Character?J*r/K+this.m_baselineOffset:J*r+this.m_baselineOffset,pe=this.m_textElementType===TMPro.TMP_TextElementType.Character?Q*r/K+this.m_baselineOffset:Q*r+this.m_baselineOffset,ye=$e,fe=pe,_e=this.m_characterCount===this.m_firstCharacterOfLine;(_e||!1===ae)&&(0!==this.m_baselineOffset&&(ye=UnityEngine.Mathf.Max(($e-this.m_baselineOffset)/this.m_fontScaleMultiplier,ye),fe=UnityEngine.Mathf.Min((pe-this.m_baselineOffset)/this.m_fontScaleMultiplier,fe)),this.m_maxLineAscender=UnityEngine.Mathf.Max(ye,this.m_maxLineAscender),this.m_maxLineDescender=UnityEngine.Mathf.Min(fe,this.m_maxLineDescender)),_e||!1===ae?(characterInfo.adjustedAscender=ye,characterInfo.adjustedDescender=fe,this.m_ElementAscender=characterInfo.ascender=$e-this.m_lineOffset,this.m_ElementDescender=characterInfo.descender=pe-this.m_lineOffset):(characterInfo.adjustedAscender=this.m_maxLineAscender,characterInfo.adjustedDescender=this.m_maxLineDescender,this.m_ElementAscender=characterInfo.ascender=this.m_maxLineAscender-this.m_lineOffset,this.m_ElementDescender=characterInfo.descender=this.m_maxLineDescender-this.m_lineOffset),(0===this.m_lineNumber||this.m_isNewPage)&&(_e||!1===ae)&&(this.m_maxTextAscender=this.m_maxLineAscender,this.m_maxCapHeight=UnityEngine.Mathf.Max(this.m_maxCapHeight,this.m_currentFontAsset.m_FaceInfo.capLine*r/K)),0===this.m_lineOffset&&(_e||!1===ae)&&(this.m_PageAscender=this.m_PageAscender>$e?this.m_PageAscender:$e),this.m_textInfo.characterInfo[this.m_characterCount].isVisible=!1;var Se=(this.m_lineJustification&TMPro.HorizontalAlignmentOptions.Flush)===TMPro.HorizontalAlignmentOptions.Flush||(this.m_lineJustification&TMPro.HorizontalAlignmentOptions.Justified)===TMPro.HorizontalAlignmentOptions.Justified;if(9===o||!1===ae&&8203!==o&&173!==o&&3!==o||173===o&&!1===U||this.m_textElementType===TMPro.TMP_TextElementType.Sprite){this.m_textInfo.characterInfo[this.m_characterCount].isVisible=!0;var be=this.m_marginLeft,Ce=this.m_marginRight;q&&(be=this.m_textInfo.lineInfo[this.m_lineNumber].marginLeft,Ce=this.m_textInfo.lineInfo[this.m_lineNumber].marginRight),x=-1!==this.m_width?UnityEngine.Mathf.Min(v+1e-4-be-Ce,this.m_width):v+1e-4-be-Ce;var Ee=Math.abs(this.m_xAdvance)+(this.m_isRightToLeft?0:se.horizontalAdvance)*(1-this.m_charWidthAdjDelta)*(173===o?re:r),Te=this.m_maxTextAscender-(this.m_maxLineDescender-this.m_lineOffset)+(this.m_lineOffset>0&&!1===this.m_IsDrivenLineSpacing?this.m_maxLineAscender-this.m_startOfLineAscender:0),ve=this.m_characterCount;if(Te>I+1e-4){if(-1===this.m_firstOverflowCharacterIndex&&(this.m_firstOverflowCharacterIndex=this.m_characterCount),this.m_enableAutoSizing){if(this.m_lineSpacingDelta>this.m_lineSpacingMax&&this.m_lineOffset>0&&this.m_AutoSizeIterationCount<this.m_AutoSizeMaxIterationCount){var Ie=(I-Te)/this.m_lineNumber;return void(this.m_lineSpacingDelta=UnityEngine.Mathf.Max(this.m_lineSpacingDelta+Ie/i,this.m_lineSpacingMax))}if(this.m_fontSize>this.m_fontSizeMin&&this.m_AutoSizeIterationCount<this.m_AutoSizeMaxIterationCount){this.m_maxFontSize=this.m_fontSize;var xe=UnityEngine.Mathf.Max((this.m_fontSize-this.m_minFontSize)/2,.05);return this.m_fontSize-=xe,void(this.m_fontSize=UnityEngine.Mathf.Max((20*this.m_fontSize+.5)/20,this.m_fontSizeMin))}}switch(this.m_overflowMode){case TMPro.TextOverflowModes.Overflow:case TMPro.TextOverflowModes.ScrollRect:case TMPro.TextOverflowModes.Masking:break;case TMPro.TextOverflowModes.Truncate:z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLastValidState")),characterToSubstitute.index=ve,characterToSubstitute.unicode=3;continue;case TMPro.TextOverflowModes.Ellipsis:if(0===TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Count){z=-1,this.m_characterCount=0,characterToSubstitute.index=0,characterToSubstitute.unicode=3,this.m_firstCharacterOfLine=0;continue}var Ae={v:TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Pop().$clone()};z=this.RestoreWordWrappingState(Ae),z-=1,this.m_characterCount-=1,characterToSubstitute.index=this.m_characterCount,characterToSubstitute.unicode=8230,B+=1;continue;case TMPro.TextOverflowModes.Linked:z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLastValidState")),UnityEngine.MonoBehaviour.op_Inequality(this.m_linkedTextComponent,null)&&(this.m_linkedTextComponent.text=this.text,this.m_linkedTextComponent.m_inputSource=this.m_inputSource,this.m_linkedTextComponent.firstVisibleCharacter=this.m_characterCount,this.m_linkedTextComponent.ForceMeshUpdate(),this.m_isTextTruncated=!0),characterToSubstitute.index=ve,characterToSubstitute.unicode=3;continue;case TMPro.TextOverflowModes.Page:if(z<0||0===ve){z=-1,this.m_characterCount=0,characterToSubstitute.index=0,characterToSubstitute.unicode=3;continue}if(this.m_maxLineAscender-this.m_maxLineDescender>I+1e-4){z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLineState")),characterToSubstitute.index=ve,characterToSubstitute.unicode=3;continue}z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLineState")),this.m_isNewPage=!0,this.m_firstCharacterOfLine=this.m_characterCount,this.m_maxLineAscender=TMPro.TMP_Text.k_LargeNegativeFloat,this.m_maxLineDescender=TMPro.TMP_Text.k_LargePositiveFloat,this.m_startOfLineAscender=0,this.m_xAdvance=0+this.tag_Indent,this.m_lineOffset=0,this.m_maxTextAscender=0,this.m_PageAscender=0,this.m_lineNumber+=1,this.m_pageNumber+=1;continue}}if(Ee>x*(Se?1.05:1))if(this.m_enableWordWrapping&&this.m_characterCount!==this.m_firstCharacterOfLine){z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState"));var we=0;if(this.m_lineHeight===TMPro.TMP_Math.FLOAT_UNSET){var De=characterInfo.adjustedAscender;we=(this.m_lineOffset>0&&!1===this.m_IsDrivenLineSpacing?this.m_maxLineAscender-this.m_startOfLineAscender:0)-this.m_maxLineDescender+De+(b+this.m_lineSpacingDelta)*i+this.m_lineSpacing*s}else we=this.m_lineHeight+this.m_lineSpacing*s,this.m_IsDrivenLineSpacing=!0;var Me=this.m_maxTextAscender+we+this.m_lineOffset-characterInfo.adjustedDescender;if(173===this.m_textInfo.characterInfo[this.m_characterCount-1].character&&!1===U&&(this.m_overflowMode===TMPro.TextOverflowModes.Overflow||Me<I+1e-4)){characterToSubstitute.index=this.m_characterCount-1,characterToSubstitute.unicode=45,z-=1,this.m_characterCount-=1;continue}if(U=!1,173===characterInfo.character){U=!0;continue}if(this.m_enableAutoSizing&&D){if(this.m_charWidthAdjDelta<this.m_charWidthMaxAdj/100&&this.m_AutoSizeIterationCount<this.m_AutoSizeMaxIterationCount){var Pe=Ee;this.m_charWidthAdjDelta>0&&(Pe/=1-this.m_charWidthAdjDelta);var Ue=Ee-(x-1e-4)*(Se?1.05:1);return this.m_charWidthAdjDelta+=Ue/Pe,void(this.m_charWidthAdjDelta=UnityEngine.Mathf.Min(this.m_charWidthAdjDelta,this.m_charWidthMaxAdj/100))}if(this.m_fontSize>this.m_fontSizeMin&&this.m_AutoSizeIterationCount<this.m_AutoSizeMaxIterationCount){this.m_maxFontSize=this.m_fontSize;var Be=UnityEngine.Mathf.Max((this.m_fontSize-this.m_minFontSize)/2,.05);return this.m_fontSize-=Be,void(this.m_fontSize=UnityEngine.Mathf.Max((20*this.m_fontSize+.5)/20,this.m_fontSizeMin))}}var Oe=TMPro.TMP_Text.m_SavedSoftLineBreakState.previous_WordBreak;if(D&&-1!==Oe&&Oe!==P&&(z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedSoftLineBreakState")),P=Oe,173===this.m_textInfo.characterInfo[this.m_characterCount-1].character)){characterToSubstitute.index=this.m_characterCount-1,characterToSubstitute.unicode=45,z-=1,this.m_characterCount-=1;continue}if(!(Me>I+1e-4)){this.InsertNewLine(z,i,r,s,this.m_GlyphHorizontalAdvanceAdjustment,u,oe,x,b,w,A),C=!0,D=!0;continue}if(-1===this.m_firstOverflowCharacterIndex&&(this.m_firstOverflowCharacterIndex=this.m_characterCount),this.m_enableAutoSizing){if(this.m_lineSpacingDelta>this.m_lineSpacingMax&&this.m_AutoSizeIterationCount<this.m_AutoSizeMaxIterationCount){var Le=(I-Me)/(this.m_lineNumber+1);return void(this.m_lineSpacingDelta=UnityEngine.Mathf.Max(this.m_lineSpacingDelta+Le/i,this.m_lineSpacingMax))}if(this.m_charWidthAdjDelta<this.m_charWidthMaxAdj/100&&this.m_AutoSizeIterationCount<this.m_AutoSizeMaxIterationCount){var Re=Ee;this.m_charWidthAdjDelta>0&&(Re/=1-this.m_charWidthAdjDelta);var Fe=Ee-(x-1e-4)*(Se?1.05:1);return this.m_charWidthAdjDelta+=Fe/Re,void(this.m_charWidthAdjDelta=UnityEngine.Mathf.Min(this.m_charWidthAdjDelta,this.m_charWidthMaxAdj/100))}if(this.m_fontSize>this.m_fontSizeMin&&this.m_AutoSizeIterationCount<this.m_AutoSizeMaxIterationCount){this.m_maxFontSize=this.m_fontSize;var Ge=UnityEngine.Mathf.Max((this.m_fontSize-this.m_minFontSize)/2,.05);return this.m_fontSize-=Ge,void(this.m_fontSize=UnityEngine.Mathf.Max((20*this.m_fontSize+.5)/20,this.m_fontSizeMin))}}switch(this.m_overflowMode){case TMPro.TextOverflowModes.Overflow:case TMPro.TextOverflowModes.ScrollRect:case TMPro.TextOverflowModes.Masking:this.InsertNewLine(z,i,r,s,this.m_GlyphHorizontalAdvanceAdjustment,u,oe,x,b,w,A),C=!0,D=!0;continue;case TMPro.TextOverflowModes.Truncate:z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLastValidState")),characterToSubstitute.index=ve,characterToSubstitute.unicode=3;continue;case TMPro.TextOverflowModes.Ellipsis:if(0===TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Count){z=-1,this.m_characterCount=0,characterToSubstitute.index=0,characterToSubstitute.unicode=3,this.m_firstCharacterOfLine=0;continue}var ke={v:TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Pop().$clone()};z=this.RestoreWordWrappingState(ke),z-=1,this.m_characterCount-=1,characterToSubstitute.index=this.m_characterCount,characterToSubstitute.unicode=8230,B+=1;continue;case TMPro.TextOverflowModes.Linked:UnityEngine.MonoBehaviour.op_Inequality(this.m_linkedTextComponent,null)&&(this.m_linkedTextComponent.text=this.text,this.m_linkedTextComponent.m_inputSource=this.m_inputSource,this.m_linkedTextComponent.firstVisibleCharacter=this.m_characterCount,this.m_linkedTextComponent.ForceMeshUpdate(),this.m_isTextTruncated=!0),characterToSubstitute.index=this.m_characterCount,characterToSubstitute.unicode=3;continue;case TMPro.TextOverflowModes.Page:this.m_isNewPage=!0,this.InsertNewLine(z,i,r,s,this.m_GlyphHorizontalAdvanceAdjustment,u,oe,x,b,w,A),this.m_startOfLineAscender=0,this.m_lineOffset=0,this.m_maxTextAscender=0,this.m_PageAscender=0,this.m_pageNumber+=1,C=!0,D=!0;continue}}else{if(this.m_enableAutoSizing&&this.m_AutoSizeIterationCount<this.m_AutoSizeMaxIterationCount){if(this.m_charWidthAdjDelta<this.m_charWidthMaxAdj/100){var Ve=Ee;this.m_charWidthAdjDelta>0&&(Ve/=1-this.m_charWidthAdjDelta);var Ne=Ee-(x-1e-4)*(Se?1.05:1);return this.m_charWidthAdjDelta+=Ne/Ve,void(this.m_charWidthAdjDelta=UnityEngine.Mathf.Min(this.m_charWidthAdjDelta,this.m_charWidthMaxAdj/100))}if(this.m_fontSize>this.m_fontSizeMin){this.m_maxFontSize=this.m_fontSize;var ze=UnityEngine.Mathf.Max((this.m_fontSize-this.m_minFontSize)/2,.05);return this.m_fontSize-=ze,void(this.m_fontSize=UnityEngine.Mathf.Max((20*this.m_fontSize+.5)/20,this.m_fontSizeMin))}}switch(this.m_overflowMode){case TMPro.TextOverflowModes.Overflow:case TMPro.TextOverflowModes.ScrollRect:case TMPro.TextOverflowModes.Masking:break;case TMPro.TextOverflowModes.Truncate:z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState")),characterToSubstitute.index=ve,characterToSubstitute.unicode=3;continue;case TMPro.TextOverflowModes.Ellipsis:if(0===TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Count){z=-1,this.m_characterCount=0,characterToSubstitute.index=0,characterToSubstitute.unicode=3,this.m_firstCharacterOfLine=0;continue}var He={v:TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Pop().$clone()};z=this.RestoreWordWrappingState(He),z-=1,this.m_characterCount-=1,characterToSubstitute.index=this.m_characterCount,characterToSubstitute.unicode=8230,B+=1;continue;case TMPro.TextOverflowModes.Linked:z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState")),UnityEngine.MonoBehaviour.op_Inequality(this.m_linkedTextComponent,null)&&(this.m_linkedTextComponent.text=this.text,this.m_linkedTextComponent.m_inputSource=this.m_inputSource,this.m_linkedTextComponent.firstVisibleCharacter=this.m_characterCount,this.m_linkedTextComponent.ForceMeshUpdate(),this.m_isTextTruncated=!0),characterToSubstitute.index=this.m_characterCount,characterToSubstitute.unicode=3;continue}}9===o?(characterInfo.isVisible=!1,this.m_lastVisibleCharacterOfLine=this.m_characterCount,this.m_textInfo.lineInfo[this.m_lineNumber].spaceCount+=1,this.m_textInfo.spaceCount+=1):173===o?characterInfo.isVisible=!1:(S=this.m_overrideHtmlColors?this.m_fontColor32.$clone():this.m_htmlColor.$clone(),this.m_textElementType===TMPro.TMP_TextElementType.Character?this.SaveGlyphVertexInfo(l,c,S.$clone()):this.m_textElementType===TMPro.TMP_TextElementType.Sprite&&this.SaveSpriteVertexInfo(S.$clone()),C&&(C=!1,this.m_firstVisibleCharacterOfLine=this.m_characterCount),this.m_lineVisibleCharacterCount+=1,this.m_lastVisibleCharacterOfLine=this.m_characterCount,this.m_textInfo.lineInfo[this.m_lineNumber].marginLeft=be,this.m_textInfo.lineInfo[this.m_lineNumber].marginRight=Ce)}else{if(this.m_overflowMode===TMPro.TextOverflowModes.Linked&&(10===o||11===o)){var je=this.m_maxTextAscender-(this.m_maxLineDescender-this.m_lineOffset)+(this.m_lineOffset>0&&!1===this.m_IsDrivenLineSpacing?this.m_maxLineAscender-this.m_startOfLineAscender:0),Ze=this.m_characterCount;if(je>I+1e-4){-1===this.m_firstOverflowCharacterIndex&&(this.m_firstOverflowCharacterIndex=this.m_characterCount),z=this.RestoreWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLastValidState")),UnityEngine.MonoBehaviour.op_Inequality(this.m_linkedTextComponent,null)&&(this.m_linkedTextComponent.text=this.text,this.m_linkedTextComponent.m_inputSource=this.m_inputSource,this.m_linkedTextComponent.firstVisibleCharacter=this.m_characterCount,this.m_linkedTextComponent.ForceMeshUpdate(),this.m_isTextTruncated=!0),characterToSubstitute.index=Ze,characterToSubstitute.unicode=3;continue}}10!==o&&11!==o&&160!==o&&8199!==o&&8232!==o&&8233!==o&&!System.Char.isSeparator(o)||173===o||8203===o||8288===o||(this.m_textInfo.lineInfo[this.m_lineNumber].spaceCount+=1,this.m_textInfo.spaceCount+=1),160===o&&(this.m_textInfo.lineInfo[this.m_lineNumber].controlCharacterCount+=1)}if(this.m_overflowMode===TMPro.TextOverflowModes.Ellipsis&&(!1===q||45===o)){var qe=this.m_currentFontSize/this.m_Ellipsis.fontAsset.m_FaceInfo.pointSize*this.m_Ellipsis.fontAsset.m_FaceInfo.scale*(this.m_isOrthographic?1:.1),Ke=qe*this.m_fontScaleMultiplier*this.m_Ellipsis.character.m_Scale*this.m_Ellipsis.character.m_Glyph.scale,We=this.m_marginLeft,Je=this.m_marginRight;10===o&&this.m_characterCount!==this.m_firstCharacterOfLine&&(Ke=(qe=this.m_textInfo.characterInfo[this.m_characterCount-1].pointSize/this.m_Ellipsis.fontAsset.m_FaceInfo.pointSize*this.m_Ellipsis.fontAsset.m_FaceInfo.scale*(this.m_isOrthographic?1:.1))*this.m_fontScaleMultiplier*this.m_Ellipsis.character.m_Scale*this.m_Ellipsis.character.m_Glyph.scale,We=this.m_textInfo.lineInfo[this.m_lineNumber].marginLeft,Je=this.m_textInfo.lineInfo[this.m_lineNumber].marginRight);var Qe=this.m_maxTextAscender-(this.m_maxLineDescender-this.m_lineOffset)+(this.m_lineOffset>0&&!1===this.m_IsDrivenLineSpacing?this.m_maxLineAscender-this.m_startOfLineAscender:0);Math.abs(this.m_xAdvance)+(this.m_isRightToLeft?0:this.m_Ellipsis.character.m_Glyph.metrics.horizontalAdvance)*(1-this.m_charWidthAdjDelta)*Ke<(-1!==this.m_width?UnityEngine.Mathf.Min(v+1e-4-We-Je,this.m_width):v+1e-4-We-Je)*(Se?1.05:1)&&Qe<I+1e-4&&(this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedEllipsisState"),z,this.m_characterCount),TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Push(TMPro.TMP_Text.m_SavedEllipsisState.$clone()))}if(characterInfo.lineNumber=this.m_lineNumber,characterInfo.pageNumber=this.m_pageNumber,(10!==o&&11!==o&&13!==o&&!1===q||1===this.m_textInfo.lineInfo[this.m_lineNumber].characterCount)&&(this.m_textInfo.lineInfo[this.m_lineNumber].alignment=this.m_lineJustification),9===o){var Xe=this.m_currentFontAsset.m_FaceInfo.tabWidth*this.m_currentFontAsset.tabSize*r,Ye=Math.ceil(this.m_xAdvance/Xe)*Xe;this.m_xAdvance=Ye>this.m_xAdvance?Ye:this.m_xAdvance+Xe}else if(0!==this.m_monoSpacing)this.m_xAdvance+=(this.m_monoSpacing-de+(this.m_currentFontAsset.normalSpacingOffset+oe)*s+this.m_cSpacing)*(1-this.m_charWidthAdjDelta),(ae||8203===o)&&(this.m_xAdvance+=this.m_wordSpacing*s);else if(this.m_isRightToLeft)this.m_xAdvance-=(glyphAdjustments.m_XAdvance*r+(this.m_currentFontAsset.normalSpacingOffset+oe+u)*s+this.m_cSpacing)*(1-this.m_charWidthAdjDelta),(ae||8203===o)&&(this.m_xAdvance-=this.m_wordSpacing*s);else{var et=1;this.m_isFXMatrixSet&&(et=this.m_FXMatrix.getScale().x),this.m_xAdvance+=((se.horizontalAdvance*et+glyphAdjustments.m_XAdvance)*r+(this.m_currentFontAsset.normalSpacingOffset+oe+u)*s+this.m_cSpacing)*(1-this.m_charWidthAdjDelta),(ae||8203===o)&&(this.m_xAdvance+=this.m_wordSpacing*s)}if(characterInfo.xAdvance=this.m_xAdvance,13===o&&(this.m_xAdvance=0+this.tag_Indent),10===o||11===o||3===o||8232===o||8233===o||45===o&&q||this.m_characterCount===n-1){var tt=this.m_maxLineAscender-this.m_startOfLineAscender;this.m_lineOffset>0&&Math.abs(tt)>.01&&!1===this.m_IsDrivenLineSpacing&&!this.m_isNewPage&&(this.AdjustLineOffset(this.m_firstCharacterOfLine,this.m_characterCount,tt),this.m_ElementDescender-=tt,this.m_lineOffset+=tt,TMPro.TMP_Text.m_SavedEllipsisState.lineNumber===this.m_lineNumber&&(TMPro.TMP_Text.m_SavedEllipsisState=TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Pop().$clone(),TMPro.TMP_Text.m_SavedEllipsisState.startOfLineAscender+=tt,TMPro.TMP_Text.m_SavedEllipsisState.lineOffset+=tt,TMPro.TMP_Text.m_EllipsisInsertionCandidateStack.Push(TMPro.TMP_Text.m_SavedEllipsisState.$clone()))),this.m_isNewPage=!1;var nt=this.m_maxLineAscender-this.m_lineOffset,it=this.m_maxLineDescender-this.m_lineOffset;this.m_ElementDescender=this.m_ElementDescender<it?this.m_ElementDescender:it,w.v||(A.v=this.m_ElementDescender),this.m_useMaxVisibleDescender&&(this.m_characterCount>=this.m_maxVisibleCharacters||this.m_lineNumber>=this.m_maxVisibleLines)&&(w.v=!0),(O=this.m_textInfo.lineInfo[this.m_lineNumber]).firstCharacterIndex=this.m_firstCharacterOfLine,O.firstVisibleCharacterIndex=this.m_firstVisibleCharacterOfLine=this.m_firstCharacterOfLine>this.m_firstVisibleCharacterOfLine?this.m_firstCharacterOfLine:this.m_firstVisibleCharacterOfLine,O.lastCharacterIndex=this.m_lastCharacterOfLine=this.m_characterCount,O.lastVisibleCharacterIndex=this.m_lastVisibleCharacterOfLine=this.m_lastVisibleCharacterOfLine<this.m_firstVisibleCharacterOfLine?this.m_firstVisibleCharacterOfLine:this.m_lastVisibleCharacterOfLine,O.characterCount=this.m_textInfo.lineInfo[this.m_lineNumber].lastCharacterIndex-this.m_textInfo.lineInfo[this.m_lineNumber].firstCharacterIndex+1,O.visibleCharacterCount=this.m_lineVisibleCharacterCount,O.lineExtents.min.set(this.m_textInfo.characterInfo[this.m_firstVisibleCharacterOfLine].bottomLeft.x,it),O.lineExtents.max.set(this.m_textInfo.characterInfo[this.m_lastVisibleCharacterOfLine].topRight.x,nt),O.length=O.lineExtents.max.x-l*r,O.width=x,1===O.characterCount&&(O.alignment=this.m_lineJustification);var rt=(u*r+(this.m_currentFontAsset.normalSpacingOffset+oe)*s-this.m_cSpacing)*(1-this.m_charWidthAdjDelta);if(this.m_textInfo.characterInfo[this.m_lastVisibleCharacterOfLine].isVisible?O.maxAdvance=this.m_textInfo.characterInfo[this.m_lastVisibleCharacterOfLine].xAdvance+(this.m_isRightToLeft?rt:-rt):O.maxAdvance=this.m_textInfo.characterInfo[this.m_lastCharacterOfLine].xAdvance+(this.m_isRightToLeft?rt:-rt),O.baseline=0-this.m_lineOffset,O.ascender=nt,O.descender=it,O.lineHeight=nt-it+b*i,10===o||11===o||45===o||8232===o||8233===o){this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLineState"),z,this.m_characterCount),this.m_lineNumber+=1,C=!0,M=!1,D=!0,this.m_firstCharacterOfLine=this.m_characterCount+1,this.m_lineVisibleCharacterCount=0,this.m_lineNumber>=this.m_textInfo.lineInfo.length&&this.ResizeLineExtents(this.m_lineNumber);var st=this.m_textInfo.characterInfo[this.m_characterCount].adjustedAscender;if(this.m_lineHeight===TMPro.TMP_Math.FLOAT_UNSET){var at=0-this.m_maxLineDescender+st+(b+this.m_lineSpacingDelta)*i+(this.m_lineSpacing+(10===o||8233===o?this.m_paragraphSpacing:0))*s;this.m_lineOffset+=at,this.m_IsDrivenLineSpacing=!1}else this.m_lineOffset+=this.m_lineHeight+(this.m_lineSpacing+(10===o||8233===o?this.m_paragraphSpacing:0))*s,this.m_IsDrivenLineSpacing=!0;this.m_maxLineAscender=TMPro.TMP_Text.k_LargeNegativeFloat,this.m_maxLineDescender=TMPro.TMP_Text.k_LargePositiveFloat,this.m_startOfLineAscender=st,this.m_xAdvance=0+this.tag_LineIndent+this.tag_Indent,this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState"),z,this.m_characterCount),this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLastValidState"),z,this.m_characterCount),this.m_characterCount+=1;continue}3===o&&(z=this.m_TextProcessingArray.length)}if(this.m_textInfo.characterInfo[this.m_characterCount].isVisible&&(this.m_meshExtents.min.x=UnityEngine.Mathf.Min(this.m_meshExtents.min.x,this.m_textInfo.characterInfo[this.m_characterCount].bottomLeft.x),this.m_meshExtents.min.y=UnityEngine.Mathf.Min(this.m_meshExtents.min.y,this.m_textInfo.characterInfo[this.m_characterCount].bottomLeft.y),this.m_meshExtents.max.x=UnityEngine.Mathf.Max(this.m_meshExtents.max.x,this.m_textInfo.characterInfo[this.m_characterCount].topRight.x),this.m_meshExtents.max.y=UnityEngine.Mathf.Max(this.m_meshExtents.max.y,this.m_textInfo.characterInfo[this.m_characterCount].topRight.y)),this.m_overflowMode===TMPro.TextOverflowModes.Page&&10!==o&&11!==o&&13!==o&&8232!==o&&8233!==o&&(this.m_pageNumber,this.m_textInfo.pageInfo.length,this.m_textInfo.pageInfo[this.m_pageNumber].ascender=this.m_PageAscender,this.m_textInfo.pageInfo[this.m_pageNumber].descender=this.m_ElementDescender<this.m_textInfo.pageInfo[this.m_pageNumber].descender?this.m_ElementDescender:this.m_textInfo.pageInfo[this.m_pageNumber].descender,0===this.m_pageNumber&&0===this.m_characterCount?this.m_textInfo.pageInfo[this.m_pageNumber].firstCharacterIndex=this.m_characterCount:this.m_characterCount>0&&this.m_pageNumber!==this.m_textInfo.characterInfo[this.m_characterCount-1].pageNumber?(this.m_textInfo.pageInfo[this.m_pageNumber-1].lastCharacterIndex=this.m_characterCount-1,this.m_textInfo.pageInfo[this.m_pageNumber].firstCharacterIndex=this.m_characterCount):this.m_characterCount===n-1&&(this.m_textInfo.pageInfo[this.m_pageNumber].lastCharacterIndex=this.m_characterCount)),this.m_enableWordWrapping||this.m_overflowMode===TMPro.TextOverflowModes.Truncate||this.m_overflowMode===TMPro.TextOverflowModes.Ellipsis||this.m_overflowMode===TMPro.TextOverflowModes.Linked)if(!ae&&8203!==o&&45!==o&&173!==o||this.m_isNonBreakingSpace&&!M||160===o||8199===o||8209===o||8239===o||8288===o)if(!1===this.m_isNonBreakingSpace&&((o>4352&&o<4607||o>43360&&o<43391||o>44032&&o<55295)&&!1===TMPro.TMP_Settings.useModernHangulLineBreakingRules||o>11904&&o<40959||o>63744&&o<64255||o>65072&&o<65103||o>65280&&o<65519)){var ot=this.m_characterCount<n-1&&TMPro.TMP_Settings.linebreakingRules.followingCharacters.containsKey(this.m_textInfo.characterInfo[this.m_characterCount+1].character);!1===isCurrentLeadingCharacter?(!1===ot&&(this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState"),z,this.m_characterCount),D=!1),D&&(ae&&this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedSoftLineBreakState"),z,this.m_characterCount),this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState"),z,this.m_characterCount))):D&&_e&&(ae&&this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedSoftLineBreakState"),z,this.m_characterCount),this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState"),z,this.m_characterCount))}else D&&((ae||173===o&&!1===U)&&this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedSoftLineBreakState"),z,this.m_characterCount),this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState"),z,this.m_characterCount));else this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedWordWrapState"),z,this.m_characterCount),D=!1,TMPro.TMP_Text.m_SavedSoftLineBreakState.previous_WordBreak=-1;this.SaveWordWrappingState(Bridge.ref(TMPro.TMP_Text,"m_SavedLastValidState"),z,this.m_characterCount),this.m_characterCount+=1}}if(a=this.m_maxFontSize-this.m_minFontSize,this.m_enableAutoSizing&&a>.051&&this.m_fontSize<this.m_fontSizeMax&&this.m_AutoSizeIterationCount<this.m_AutoSizeMaxIterationCount){this.m_charWidthAdjDelta<this.m_charWidthMaxAdj/100&&(this.m_charWidthAdjDelta=0),this.m_minFontSize=this.m_fontSize;var lt=UnityEngine.Mathf.Max((this.m_maxFontSize-this.m_fontSize)/2,.05);return this.m_fontSize+=lt,void(this.m_fontSize=UnityEngine.Mathf.Min((20*this.m_fontSize+.5)/20,this.m_fontSizeMax))}if(this.m_IsAutoSizePointSizeSet=!0,this.m_AutoSizeIterationCount>=this.m_AutoSizeMaxIterationCount&&UnityEngine.Debug.Log$1("Auto Size Iteration Count: "+this.m_AutoSizeIterationCount+". Final Point Size: "+System.Single.format(this.m_fontSize)),0===this.m_characterCount||1===this.m_characterCount&&3===o)this.ClearMesh();else{var ct={v:4*TMPro.TMP_Text.m_materialReferences[this.m_Underline.materialIndex].referenceCount};this.m_textInfo.meshInfo[0].Clear$1(!1);var ut=pc.Vec3.ZERO.clone(),ht=this.m_RectTransformCorners;switch(this.m_VerticalAlignment){case TMPro.VerticalAlignmentOptions.Top:ut=this.m_overflowMode!==TMPro.TextOverflowModes.Page?ht[1].$clone().add(new pc.Vec3(0+T.x,0-this.m_maxTextAscender-T.y,0)):ht[1].$clone().add(new pc.Vec3(0+T.x,0-this.m_textInfo.pageInfo[E].ascender-T.y,0));break;case TMPro.VerticalAlignmentOptions.Middle:ut=this.m_overflowMode!==TMPro.TextOverflowModes.Page?ht[0].$clone().add(ht[1]).scale(.5).add(new pc.Vec3(0+T.x,0-(this.m_maxTextAscender+T.y+A.v-T.w)/2,0)):ht[0].$clone().add(ht[1]).scale(.5).add(new pc.Vec3(0+T.x,0-(this.m_textInfo.pageInfo[E].ascender+T.y+this.m_textInfo.pageInfo[E].descender-T.w)/2,0));break;case TMPro.VerticalAlignmentOptions.Bottom:ut=this.m_overflowMode!==TMPro.TextOverflowModes.Page?ht[0].$clone().add(new pc.Vec3(0+T.x,0-A.v+T.w,0)):ht[0].$clone().add(new pc.Vec3(0+T.x,0-this.m_textInfo.pageInfo[E].descender+T.w,0));break;case TMPro.VerticalAlignmentOptions.Baseline:ut=ht[0].$clone().add(ht[1]).scale(.5).add(new pc.Vec3(0+T.x,0,0));break;case TMPro.VerticalAlignmentOptions.Geometry:ut=ht[0].$clone().add(ht[1]).scale(.5).add(new pc.Vec3(0+T.x,0-(this.m_meshExtents.max.y+T.y+this.m_meshExtents.min.y-T.w)/2,0));break;case TMPro.VerticalAlignmentOptions.Capline:ut=ht[0].$clone().add(ht[1]).scale(.5).add(new pc.Vec3(0+T.x,0-(this.m_maxCapHeight-T.y-T.w)/2,0))}for(var dt=pc.Vec3.ZERO.clone(),mt=pc.Vec3.ZERO.clone(),gt=0,$t=0,pt=0,yt=!1,ft=!1,_t=0,St=0,bt=!UnityEngine.Component.op_Equality(this.m_canvas.worldCamera,null),Ct=this.m_previousLossyScaleY=this.transform$1.lossyScale.y,Et=this.m_canvas.renderMode,Tt=this.m_canvas.scaleFactor,vt=UnityEngine.Color32.op_Implicit$1(new pc.Color(1,1,1,1)),It=UnityEngine.Color32.op_Implicit$1(new pc.Color(1,1,1,1)),xt=new TMPro.HighlightState.$ctor1(new UnityEngine.Color32.$ctor1(255,255,0,64),TMPro.TMP_Offset.zero.$clone()),At=0,wt=0,Dt=0,Mt=0,Pt=0,Ut=TMPro.TMP_Text.k_LargePositiveFloat,Bt=0,Ot=0,Lt=0,Rt=0,Ft=this.m_textInfo.characterInfo,Gt=0;Gt<this.m_characterCount;Gt++){characterInfo=Ft[Gt];var kt=Ft[Gt].fontAsset,Vt=Ft[Gt].character,Nt=Ft[Gt].lineNumber;$t=Nt+1;var zt=(O=this.m_textInfo.lineInfo[Nt]).alignment;switch(zt){case TMPro.HorizontalAlignmentOptions.Left:this.m_isRightToLeft?dt.set(0-O.maxAdvance,0,0):dt.set(0+O.marginLeft,0,0);break;case TMPro.HorizontalAlignmentOptions.Center:dt.set(O.marginLeft+O.width/2-O.maxAdvance/2,0,0);break;case TMPro.HorizontalAlignmentOptions.Geometry:dt.set(O.marginLeft+O.width/2-(O.lineExtents.min.x+O.lineExtents.max.x)/2,0,0);break;case TMPro.HorizontalAlignmentOptions.Right:this.m_isRightToLeft?dt.set(O.marginLeft+O.width,0,0):dt.set(O.marginLeft+O.width-O.maxAdvance,0,0);break;case TMPro.HorizontalAlignmentOptions.Justified:case TMPro.HorizontalAlignmentOptions.Flush:if(10===Vt||173===Vt||8203===Vt||8288===Vt||3===Vt)break;var Ht=Ft[O.lastCharacterIndex].character,jt=(zt&TMPro.HorizontalAlignmentOptions.Flush)===TMPro.HorizontalAlignmentOptions.Flush;if(!1===System.Char.isControl(Ht)&&Nt<this.m_lineNumber||jt||O.maxAdvance>O.width)if(Nt!==pt||0===Gt||Gt===this.m_firstVisibleCharacter)this.m_isRightToLeft?dt.set(O.marginLeft+O.width,0,0):dt.set(O.marginLeft,0,0),yt=!!System.Char.isSeparator(Vt);else{var Zt=this.m_isRightToLeft?O.width+O.maxAdvance:O.width-O.maxAdvance,qt=O.visibleCharacterCount-1+O.controlCharacterCount,Kt=(Ft[O.lastCharacterIndex].isVisible?O.spaceCount:O.spaceCount-1)-O.controlCharacterCount;yt&&(Kt-=1,qt+=1);var Wt=Kt>0?this.m_wordWrappingRatios:1;Kt<1&&(Kt=1),160===Vt||9!==Vt&&!System.Char.isSeparator(Vt)?this.m_isRightToLeft?dt.x-=Zt*Wt/qt:dt.x+=Zt*Wt/qt:this.m_isRightToLeft?dt.x-=Zt*(1-Wt)/Kt:dt.x+=Zt*(1-Wt)/Kt}else this.m_isRightToLeft?dt.set(O.marginLeft+O.width,0,0):dt.set(O.marginLeft,0,0)}if(mt.copy(ut).add(dt),Ft[Gt].isVisible){var Jt=Ft[Gt].elementType;switch(Jt){case TMPro.TMP_TextElementType.Character:var Qt=O.lineExtents.$clone(),Xt=this.m_uvLineOffset*Nt%1;switch(this.m_horizontalMapping){case TMPro.TextureMappingOptions.Character:Ft[Gt].vertex_BL.uv2.x=0,Ft[Gt].vertex_TL.uv2.x=0,Ft[Gt].vertex_TR.uv2.x=1,Ft[Gt].vertex_BR.uv2.x=1;break;case TMPro.TextureMappingOptions.Line:if(this.m_textAlignment!==TMPro.TextAlignmentOptions.Justified){Ft[Gt].vertex_BL.uv2.x=(Ft[Gt].vertex_BL.position.x-Qt.min.x)/(Qt.max.x-Qt.min.x)+Xt,Ft[Gt].vertex_TL.uv2.x=(Ft[Gt].vertex_TL.position.x-Qt.min.x)/(Qt.max.x-Qt.min.x)+Xt,Ft[Gt].vertex_TR.uv2.x=(Ft[Gt].vertex_TR.position.x-Qt.min.x)/(Qt.max.x-Qt.min.x)+Xt,Ft[Gt].vertex_BR.uv2.x=(Ft[Gt].vertex_BR.position.x-Qt.min.x)/(Qt.max.x-Qt.min.x)+Xt;break}Ft[Gt].vertex_BL.uv2.x=(Ft[Gt].vertex_BL.position.x+dt.x-this.m_meshExtents.min.x)/(this.m_meshExtents.max.x-this.m_meshExtents.min.x)+Xt,Ft[Gt].vertex_TL.uv2.x=(Ft[Gt].vertex_TL.position.x+dt.x-this.m_meshExtents.min.x)/(this.m_meshExtents.max.x-this.m_meshExtents.min.x)+Xt,Ft[Gt].vertex_TR.uv2.x=(Ft[Gt].vertex_TR.position.x+dt.x-this.m_meshExtents.min.x)/(this.m_meshExtents.max.x-this.m_meshExtents.min.x)+Xt,Ft[Gt].vertex_BR.uv2.x=(Ft[Gt].vertex_BR.position.x+dt.x-this.m_meshExtents.min.x)/(this.m_meshExtents.max.x-this.m_meshExtents.min.x)+Xt;break;case TMPro.TextureMappingOptions.Paragraph:Ft[Gt].vertex_BL.uv2.x=(Ft[Gt].vertex_BL.position.x+dt.x-this.m_meshExtents.min.x)/(this.m_meshExtents.max.x-this.m_meshExtents.min.x)+Xt,Ft[Gt].vertex_TL.uv2.x=(Ft[Gt].vertex_TL.position.x+dt.x-this.m_meshExtents.min.x)/(this.m_meshExtents.max.x-this.m_meshExtents.min.x)+Xt,Ft[Gt].vertex_TR.uv2.x=(Ft[Gt].vertex_TR.position.x+dt.x-this.m_meshExtents.min.x)/(this.m_meshExtents.max.x-this.m_meshExtents.min.x)+Xt,Ft[Gt].vertex_BR.uv2.x=(Ft[Gt].vertex_BR.position.x+dt.x-this.m_meshExtents.min.x)/(this.m_meshExtents.max.x-this.m_meshExtents.min.x)+Xt;break;case TMPro.TextureMappingOptions.MatchAspect:switch(this.m_verticalMapping){case TMPro.TextureMappingOptions.Character:Ft[Gt].vertex_BL.uv2.y=0,Ft[Gt].vertex_TL.uv2.y=1,Ft[Gt].vertex_TR.uv2.y=0,Ft[Gt].vertex_BR.uv2.y=1;break;case TMPro.TextureMappingOptions.Line:Ft[Gt].vertex_BL.uv2.y=(Ft[Gt].vertex_BL.position.y-Qt.min.y)/(Qt.max.y-Qt.min.y)+Xt,Ft[Gt].vertex_TL.uv2.y=(Ft[Gt].vertex_TL.position.y-Qt.min.y)/(Qt.max.y-Qt.min.y)+Xt,Ft[Gt].vertex_TR.uv2.y=Ft[Gt].vertex_BL.uv2.y,Ft[Gt].vertex_BR.uv2.y=Ft[Gt].vertex_TL.uv2.y;break;case TMPro.TextureMappingOptions.Paragraph:Ft[Gt].vertex_BL.uv2.y=(Ft[Gt].vertex_BL.position.y-this.m_meshExtents.min.y)/(this.m_meshExtents.max.y-this.m_meshExtents.min.y)+Xt,Ft[Gt].vertex_TL.uv2.y=(Ft[Gt].vertex_TL.position.y-this.m_meshExtents.min.y)/(this.m_meshExtents.max.y-this.m_meshExtents.min.y)+Xt,Ft[Gt].vertex_TR.uv2.y=Ft[Gt].vertex_BL.uv2.y,Ft[Gt].vertex_BR.uv2.y=Ft[Gt].vertex_TL.uv2.y;break;case TMPro.TextureMappingOptions.MatchAspect:UnityEngine.Debug.Log$1("ERROR: Cannot Match both Vertical & Horizontal.")}var Yt=(1-(Ft[Gt].vertex_BL.uv2.y+Ft[Gt].vertex_TL.uv2.y)*Ft[Gt].aspectRatio)/2;Ft[Gt].vertex_BL.uv2.x=Ft[Gt].vertex_BL.uv2.y*Ft[Gt].aspectRatio+Yt+Xt,Ft[Gt].vertex_TL.uv2.x=Ft[Gt].vertex_BL.uv2.x,Ft[Gt].vertex_TR.uv2.x=Ft[Gt].vertex_TL.uv2.y*Ft[Gt].aspectRatio+Yt+Xt,Ft[Gt].vertex_BR.uv2.x=Ft[Gt].vertex_TR.uv2.x}switch(this.m_verticalMapping){case TMPro.TextureMappingOptions.Character:Ft[Gt].vertex_BL.uv2.y=0,Ft[Gt].vertex_TL.uv2.y=1,Ft[Gt].vertex_TR.uv2.y=1,Ft[Gt].vertex_BR.uv2.y=0;break;case TMPro.TextureMappingOptions.Line:Ft[Gt].vertex_BL.uv2.y=(Ft[Gt].vertex_BL.position.y-O.descender)/(O.ascender-O.descender),Ft[Gt].vertex_TL.uv2.y=(Ft[Gt].vertex_TL.position.y-O.descender)/(O.ascender-O.descender),Ft[Gt].vertex_TR.uv2.y=Ft[Gt].vertex_TL.uv2.y,Ft[Gt].vertex_BR.uv2.y=Ft[Gt].vertex_BL.uv2.y;break;case TMPro.TextureMappingOptions.Paragraph:Ft[Gt].vertex_BL.uv2.y=(Ft[Gt].vertex_BL.position.y-this.m_meshExtents.min.y)/(this.m_meshExtents.max.y-this.m_meshExtents.min.y),Ft[Gt].vertex_TL.uv2.y=(Ft[Gt].vertex_TL.position.y-this.m_meshExtents.min.y)/(this.m_meshExtents.max.y-this.m_meshExtents.min.y),Ft[Gt].vertex_TR.uv2.y=Ft[Gt].vertex_TL.uv2.y,Ft[Gt].vertex_BR.uv2.y=Ft[Gt].vertex_BL.uv2.y;break;case TMPro.TextureMappingOptions.MatchAspect:var en=(1-(Ft[Gt].vertex_BL.uv2.x+Ft[Gt].vertex_TR.uv2.x)/Ft[Gt].aspectRatio)/2;Ft[Gt].vertex_BL.uv2.y=en+Ft[Gt].vertex_BL.uv2.x/Ft[Gt].aspectRatio,Ft[Gt].vertex_TL.uv2.y=en+Ft[Gt].vertex_TR.uv2.x/Ft[Gt].aspectRatio,Ft[Gt].vertex_BR.uv2.y=Ft[Gt].vertex_BL.uv2.y,Ft[Gt].vertex_TR.uv2.y=Ft[Gt].vertex_TL.uv2.y}switch(At=Ft[Gt].scale*(1-this.m_charWidthAdjDelta),Ft[Gt].isUsingAlternateTypeface||(Ft[Gt].style&TMPro.FontStyles.Bold)!==TMPro.FontStyles.Bold||(At*=-1),Et){case UnityEngine.RenderMode.ScreenSpaceOverlay:At*=Math.abs(Ct)/Tt;break;case UnityEngine.RenderMode.ScreenSpaceCamera:At*=bt?Math.abs(Ct):1;break;case UnityEngine.RenderMode.WorldSpace:At*=Math.abs(Ct)}var tn=Ft[Gt].vertex_BL.uv2.x,nn=Ft[Gt].vertex_BL.uv2.y,rn=Ft[Gt].vertex_TR.uv2.x,sn=Ft[Gt].vertex_TR.uv2.y,an=tn,on=nn;tn-=an,rn-=an,nn-=on,sn-=on,Ft[Gt].vertex_BL.uv2.x=this.PackUV(tn,nn),Ft[Gt].vertex_BL.uv2.y=At,Ft[Gt].vertex_TL.uv2.x=this.PackUV(tn,sn),Ft[Gt].vertex_TL.uv2.y=At,Ft[Gt].vertex_TR.uv2.x=this.PackUV(rn,sn),Ft[Gt].vertex_TR.uv2.y=At,Ft[Gt].vertex_BR.uv2.x=this.PackUV(rn,nn),Ft[Gt].vertex_BR.uv2.y=At;case TMPro.TMP_TextElementType.Sprite:}Gt<this.m_maxVisibleCharacters&><this.m_maxVisibleWords&&Nt<this.m_maxVisibleLines&&this.m_overflowMode!==TMPro.TextOverflowModes.Page||Gt<this.m_maxVisibleCharacters&><this.m_maxVisibleWords&&Nt<this.m_maxVisibleLines&&this.m_overflowMode===TMPro.TextOverflowModes.Page&&characterInfo.pageNumber===E?(characterInfo.vertex_BL.position.add(mt),characterInfo.vertex_TL.position.add(mt),characterInfo.vertex_TR.position.add(mt),characterInfo.vertex_BR.position.add(mt)):(characterInfo.vertex_BL.position.set(0,0,0),characterInfo.vertex_TL.position.set(0,0,0),characterInfo.vertex_TR.position.set(0,0,0),characterInfo.vertex_BR.position.set(0,0,0),characterInfo.isVisible=!1),Jt===TMPro.TMP_TextElementType.Character?this.FillCharacterVertexBuffers(Gt,0):Jt===TMPro.TMP_TextElementType.Sprite&&this.FillSpriteVertexBuffers(Gt,0)}if(characterInfo.bottomLeft.add(mt),characterInfo.topLeft.add(mt),characterInfo.topRight.add(mt),characterInfo.bottomRight.add(mt),characterInfo.origin+=mt.x,characterInfo.xAdvance+=mt.x,characterInfo.ascender+=mt.y,characterInfo.descender+=mt.y,characterInfo.baseLine+=mt.y,Nt===pt&&Gt!==this.m_characterCount-1||(Nt!==pt&&(this.m_textInfo.lineInfo[pt].baseline+=mt.y,this.m_textInfo.lineInfo[pt].ascender+=mt.y,this.m_textInfo.lineInfo[pt].descender+=mt.y,this.m_textInfo.lineInfo[pt].maxAdvance+=mt.x,this.m_textInfo.lineInfo[pt].lineExtents.min.set(this.m_textInfo.characterInfo[this.m_textInfo.lineInfo[pt].firstCharacterIndex].bottomLeft.x,this.m_textInfo.lineInfo[pt].descender),this.m_textInfo.lineInfo[pt].lineExtents.max.set(this.m_textInfo.characterInfo[this.m_textInfo.lineInfo[pt].lastVisibleCharacterIndex].topRight.x,this.m_textInfo.lineInfo[pt].ascender)),Gt===this.m_characterCount-1&&(this.m_textInfo.lineInfo[Nt].baseline+=mt.y,this.m_textInfo.lineInfo[Nt].ascender+=mt.y,this.m_textInfo.lineInfo[Nt].descender+=mt.y,this.m_textInfo.lineInfo[Nt].maxAdvance+=mt.x,this.m_textInfo.lineInfo[Nt].lineExtents.min.set(this.m_textInfo.characterInfo[this.m_textInfo.lineInfo[Nt].firstCharacterIndex].bottomLeft.x,this.m_textInfo.lineInfo[Nt].descender),this.m_textInfo.lineInfo[Nt].lineExtents.max.set(this.m_textInfo.characterInfo[this.m_textInfo.lineInfo[Nt].lastVisibleCharacterIndex].topRight.x,this.m_textInfo.lineInfo[Nt].ascender))),System.Char.isDigit(Vt)||System.Char.isLetter(Vt)||45===Vt||173===Vt||8208===Vt||8209===Vt){if(!1===ft&&(ft=!0,_t=Gt),ft&&Gt===this.m_characterCount-1){this.m_textInfo.wordInfo.length;var ln=this.m_textInfo.wordCount;this.m_textInfo.wordCount,St=Gt,this.m_textInfo.wordInfo[ln].firstCharacterIndex=_t,this.m_textInfo.wordInfo[ln].lastCharacterIndex=St,this.m_textInfo.wordInfo[ln].characterCount=St-_t+1,this.m_textInfo.wordInfo[ln].textComponent=this,gt+=1,this.m_textInfo.wordCount+=1,this.m_textInfo.lineInfo[Nt].wordCount+=1}}else if(ft||0===Gt&&(!System.Char.isPunctuation(Vt)||System.Char.isWhiteSpace(String.fromCharCode(Vt))||8203===Vt||Gt===this.m_characterCount-1))if(Gt>0&&Gt<Ft.length-1&&Gt<this.m_characterCount&&(39===Vt||8217===Vt)&&(e=Ft[Gt-1].character,System.Char.isDigit(e)||System.Char.isLetter(e))&&(t=Ft[Gt+1].character,System.Char.isDigit(t)||System.Char.isLetter(t)));else{St=Gt===this.m_characterCount-1&&(System.Char.isDigit(Vt)||System.Char.isLetter(Vt))?Gt:Gt-1,ft=!1,this.m_textInfo.wordInfo.length;var cn=this.m_textInfo.wordCount;this.m_textInfo.wordCount,this.m_textInfo.wordInfo[cn].firstCharacterIndex=_t,this.m_textInfo.wordInfo[cn].lastCharacterIndex=St,this.m_textInfo.wordInfo[cn].characterCount=St-_t+1,this.m_textInfo.wordInfo[cn].textComponent=this,gt+=1,this.m_textInfo.wordCount+=1,this.m_textInfo.lineInfo[Nt].wordCount+=1}if(isUnderline){var un=!0,hn=this.m_textInfo.characterInfo[Gt].pageNumber;if(this.m_textInfo.characterInfo[Gt].underlineVertexIndex=ct.v,(Gt>this.m_maxVisibleCharacters||Nt>this.m_maxVisibleLines||this.m_overflowMode===TMPro.TextOverflowModes.Page&&hn+1!==this.m_pageToDisplay)&&(un=!1),System.Char.isWhiteSpace(String.fromCharCode(Vt))||8203===Vt||(Pt=UnityEngine.Mathf.Max(Pt,this.m_textInfo.characterInfo[Gt].scale),wt=UnityEngine.Mathf.Max(wt,Math.abs(At)),Ut=UnityEngine.Mathf.Min(hn===Bt?Ut:TMPro.TMP_Text.k_LargePositiveFloat,this.m_textInfo.characterInfo[Gt].baseLine+this.font.m_FaceInfo.underlineOffset*Pt),Bt=hn),!1===h&&!0===un&&Gt<=O.lastVisibleCharacterIndex&&10!==Vt&&11!==Vt&&13!==Vt&&(Gt===O.lastVisibleCharacterIndex&&System.Char.isSeparator(Vt)||(h=!0,Dt=this.m_textInfo.characterInfo[Gt].scale,0===Pt&&(Pt=Dt,wt=At),d=new pc.Vec3(this.m_textInfo.characterInfo[Gt].bottomLeft.x,Ut,0),vt=this.m_textInfo.characterInfo[Gt].underlineColor.$clone())),h&&1===this.m_characterCount)h=!1,m=new pc.Vec3(this.m_textInfo.characterInfo[Gt].topRight.x,Ut,0),Mt=this.m_textInfo.characterInfo[Gt].scale,this.DrawUnderlineMesh(d.$clone(),m.$clone(),ct,Dt,Mt,Pt,wt,vt.$clone()),Pt=0,wt=0,Ut=TMPro.TMP_Text.k_LargePositiveFloat;else if(h&&(Gt===O.lastCharacterIndex||Gt>=O.lastVisibleCharacterIndex)){if(System.Char.isWhiteSpace(String.fromCharCode(Vt))||8203===Vt){var dn=O.lastVisibleCharacterIndex;m=new pc.Vec3(this.m_textInfo.characterInfo[dn].topRight.x,Ut,0),Mt=this.m_textInfo.characterInfo[dn].scale}else m=new pc.Vec3(this.m_textInfo.characterInfo[Gt].topRight.x,Ut,0),Mt=this.m_textInfo.characterInfo[Gt].scale;h=!1,this.DrawUnderlineMesh(d.$clone(),m.$clone(),ct,Dt,Mt,Pt,wt,vt.$clone()),Pt=0,wt=0,Ut=TMPro.TMP_Text.k_LargePositiveFloat}else h&&!un?(h=!1,m=new pc.Vec3(this.m_textInfo.characterInfo[Gt-1].topRight.x,Ut,0),Mt=this.m_textInfo.characterInfo[Gt-1].scale,this.DrawUnderlineMesh(d.$clone(),m.$clone(),ct,Dt,Mt,Pt,wt,vt.$clone()),Pt=0,wt=0,Ut=TMPro.TMP_Text.k_LargePositiveFloat):h&&Gt<this.m_characterCount-1&&!TMPro.TMPro_ExtensionMethods.Compare$1(vt,this.m_textInfo.characterInfo[Gt+1].underlineColor.$clone())&&(h=!1,m=new pc.Vec3(this.m_textInfo.characterInfo[Gt].topRight.x,Ut,0),Mt=this.m_textInfo.characterInfo[Gt].scale,this.DrawUnderlineMesh(d.$clone(),m.$clone(),ct,Dt,Mt,Pt,wt,vt.$clone()),Pt=0,wt=0,Ut=TMPro.TMP_Text.k_LargePositiveFloat)}else!0===h&&(h=!1,m=new pc.Vec3(this.m_textInfo.characterInfo[Gt-1].topRight.x,Ut,0),Mt=this.m_textInfo.characterInfo[Gt-1].scale,this.DrawUnderlineMesh(d.$clone(),m.$clone(),ct,Dt,Mt,Pt,wt,vt.$clone()),Pt=0,wt=0,Ut=TMPro.TMP_Text.k_LargePositiveFloat);var mn=kt.m_FaceInfo.strikethroughOffset;if(isStrikethrough){var gn=!0;if(this.m_textInfo.characterInfo[Gt].strikethroughVertexIndex=ct.v,(Gt>this.m_maxVisibleCharacters||Nt>this.m_maxVisibleLines||this.m_overflowMode===TMPro.TextOverflowModes.Page&&this.m_textInfo.characterInfo[Gt].pageNumber+1!==this.m_pageToDisplay)&&(gn=!1),!1===g&&gn&&Gt<=O.lastVisibleCharacterIndex&&10!==Vt&&11!==Vt&&13!==Vt&&(Gt===O.lastVisibleCharacterIndex&&System.Char.isSeparator(Vt)||(g=!0,Ot=this.m_textInfo.characterInfo[Gt].pointSize,Lt=this.m_textInfo.characterInfo[Gt].scale,$=new pc.Vec3(this.m_textInfo.characterInfo[Gt].bottomLeft.x,this.m_textInfo.characterInfo[Gt].baseLine+mn*Lt,0),It=this.m_textInfo.characterInfo[Gt].strikethroughColor.$clone(),Rt=this.m_textInfo.characterInfo[Gt].baseLine)),g&&1===this.m_characterCount)g=!1,p=new pc.Vec3(this.m_textInfo.characterInfo[Gt].topRight.x,this.m_textInfo.characterInfo[Gt].baseLine+mn*Lt,0),this.DrawUnderlineMesh($.$clone(),p.$clone(),ct,Lt,Lt,Lt,At,It.$clone());else if(g&&Gt===O.lastCharacterIndex){if(System.Char.isWhiteSpace(String.fromCharCode(Vt))||8203===Vt){var $n=O.lastVisibleCharacterIndex;p=new pc.Vec3(this.m_textInfo.characterInfo[$n].topRight.x,this.m_textInfo.characterInfo[$n].baseLine+mn*Lt,0)}else p=new pc.Vec3(this.m_textInfo.characterInfo[Gt].topRight.x,this.m_textInfo.characterInfo[Gt].baseLine+mn*Lt,0);g=!1,this.DrawUnderlineMesh($.$clone(),p.$clone(),ct,Lt,Lt,Lt,At,It.$clone())}else if(g&&Gt<this.m_characterCount&&(this.m_textInfo.characterInfo[Gt+1].pointSize!==Ot||!TMPro.TMP_Math.Approximately(this.m_textInfo.characterInfo[Gt+1].baseLine+mt.y,Rt))){g=!1;var pn=O.lastVisibleCharacterIndex;p=Gt>pn?new pc.Vec3(this.m_textInfo.characterInfo[pn].topRight.x,this.m_textInfo.characterInfo[pn].baseLine+mn*Lt,0):new pc.Vec3(this.m_textInfo.characterInfo[Gt].topRight.x,this.m_textInfo.characterInfo[Gt].baseLine+mn*Lt,0),this.DrawUnderlineMesh($.$clone(),p.$clone(),ct,Lt,Lt,Lt,At,It.$clone())}else g&&Gt<this.m_characterCount&&kt.GetInstanceID()!==Ft[Gt+1].fontAsset.GetInstanceID()?(g=!1,p=new pc.Vec3(this.m_textInfo.characterInfo[Gt].topRight.x,this.m_textInfo.characterInfo[Gt].baseLine+mn*Lt,0),this.DrawUnderlineMesh($.$clone(),p.$clone(),ct,Lt,Lt,Lt,At,It.$clone())):g&&!gn&&(g=!1,p=new pc.Vec3(this.m_textInfo.characterInfo[Gt-1].topRight.x,this.m_textInfo.characterInfo[Gt-1].baseLine+mn*Lt,0),this.DrawUnderlineMesh($.$clone(),p.$clone(),ct,Lt,Lt,Lt,At,It.$clone()))}else!0===g&&(g=!1,p=new pc.Vec3(this.m_textInfo.characterInfo[Gt-1].topRight.x,this.m_textInfo.characterInfo[Gt-1].baseLine+mn*Lt,0),this.DrawUnderlineMesh($.$clone(),p.$clone(),ct,Lt,Lt,Lt,At,It.$clone()));if(isHighlight){var yn=!0,fn=this.m_textInfo.characterInfo[Gt].pageNumber;if((Gt>this.m_maxVisibleCharacters||Nt>this.m_maxVisibleLines||this.m_overflowMode===TMPro.TextOverflowModes.Page&&fn+1!==this.m_pageToDisplay)&&(yn=!1),!1===y&&!0===yn&&Gt<=O.lastVisibleCharacterIndex&&10!==Vt&&11!==Vt&&13!==Vt&&(Gt===O.lastVisibleCharacterIndex&&System.Char.isSeparator(Vt)||(y=!0,f=UnityEngine.Vector3.FromVector2(TMPro.TMP_Text.k_LargePositiveVector2.$clone()),_=UnityEngine.Vector3.FromVector2(TMPro.TMP_Text.k_LargeNegativeVector2.$clone()),xt=this.m_textInfo.characterInfo[Gt].highlightState.$clone())),y){var _n=this.m_textInfo.characterInfo[Gt].$clone(),Sn=_n.highlightState.$clone(),bn=!1;TMPro.HighlightState.op_Inequality(xt.$clone(),_n.highlightState.$clone())&&(_.x=(_.x-xt.padding.right+_n.bottomLeft.x)/2,f.y=UnityEngine.Mathf.Min(f.y,_n.descender),_.y=UnityEngine.Mathf.Max(_.y,_n.ascender),this.DrawTextHighlight(f.$clone(),_.$clone(),ct,xt.color.$clone()),y=!0,f.set(_.x,_n.descender-Sn.padding.bottom,0),_.set(_n.topRight.x+Sn.padding.right,_n.ascender+Sn.padding.top,0),xt=_n.highlightState.$clone(),bn=!0),bn||(f.x=UnityEngine.Mathf.Min(f.x,_n.bottomLeft.x-xt.padding.left),f.y=UnityEngine.Mathf.Min(f.y,_n.descender-xt.padding.bottom),_.x=UnityEngine.Mathf.Max(_.x,_n.topRight.x+xt.padding.right),_.y=UnityEngine.Mathf.Max(_.y,_n.ascender+xt.padding.top))}(y&&1===this.m_characterCount||y&&(Gt===O.lastCharacterIndex||Gt>=O.lastVisibleCharacterIndex)||y&&!yn)&&(y=!1,this.DrawTextHighlight(f.$clone(),_.$clone(),ct,xt.color.$clone()))}else!0===y&&(y=!1,this.DrawTextHighlight(f.$clone(),_.$clone(),ct,xt.color.$clone()));pt=Nt}if(this.m_textInfo.characterCount=this.m_characterCount,this.m_textInfo.spriteCount=this.m_spriteCount,this.m_textInfo.lineCount=$t,this.m_textInfo.wordCount=0!==gt&&this.m_characterCount>0?gt:1,this.m_textInfo.pageCount=this.m_pageNumber+1,this.m_renderMode===TMPro.TextRenderFlags.Render&&this.IsActive()){!Bridge.staticEquals(this.OnPreRenderText,null)&&this.OnPreRenderText(this.m_textInfo),25!==this.m_canvas.additionalShaderChannels&&(this.m_canvas.additionalShaderChannels|=25),this.m_geometrySortingOrder,TMPro.VertexSortingOrder.Normal,this.m_mesh.MarkDynamic(),this.m_mesh.vertices=this.m_textInfo.meshInfo[0].vertices,this.m_mesh.uv=this.m_textInfo.meshInfo[0].uvs0,this.m_mesh.uv2=this.m_textInfo.meshInfo[0].uvs2,this.m_mesh.colors32=this.m_textInfo.meshInfo[0].colors32,this.m_mesh.RecalculateBounds(),this.m_canvasRenderer.SetMesh(this.m_mesh);for(var Cn=this.m_canvasRenderer.GetColor(),En=this.m_canvasRenderer.cullTransparentMesh,Tn=1;Tn<this.m_textInfo.materialCount;Tn++)this.m_textInfo.meshInfo[Tn].ClearUnusedVertices(),UnityEngine.MonoBehaviour.op_Equality(this.m_subTextObjects[Tn],null)||(this.m_geometrySortingOrder,TMPro.VertexSortingOrder.Normal,this.m_subTextObjects[Tn].mesh.vertices=this.m_textInfo.meshInfo[Tn].vertices,this.m_subTextObjects[Tn].mesh.uv=this.m_textInfo.meshInfo[Tn].uvs0,this.m_subTextObjects[Tn].mesh.uv2=this.m_textInfo.meshInfo[Tn].uvs2,this.m_subTextObjects[Tn].mesh.colors32=this.m_textInfo.meshInfo[Tn].colors32,this.m_subTextObjects[Tn].mesh.RecalculateBounds(),this.m_subTextObjects[Tn].canvasRenderer.SetMesh(this.m_subTextObjects[Tn].mesh),this.m_subTextObjects[Tn].canvasRenderer.SetColor(Cn.$clone()),this.m_subTextObjects[Tn].canvasRenderer.cullTransparentMesh=En,this.m_subTextObjects[Tn].raycastTarget=this.raycastTarget)}}},GetTextContainerLocalCorners:function(){return UnityEngine.Component.op_Equality(this.m_rectTransform,null)&&(this.m_rectTransform=this.rectTransform$1),this.m_rectTransform.GetLocalCorners(this.m_RectTransformCorners),this.m_RectTransformCorners},SetActiveSubMeshes:function(e){for(var t=1;t<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[t],null);t++)this.m_subTextObjects[t].enabled!==e&&(this.m_subTextObjects[t].enabled=e)},DestroySubMeshObjects:function(){for(var e=1;e<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[e],null);e++)UnityEngine.Object.DestroyImmediate(this.m_subTextObjects[e])},GetCompoundBounds:function(){for(var e=this.m_mesh.bounds,t=e.min.$clone(),n=e.max.$clone(),i=1;i<this.m_subTextObjects.length&&UnityEngine.MonoBehaviour.op_Inequality(this.m_subTextObjects[i],null);i++){var r=this.m_subTextObjects[i].mesh.bounds;t.x=t.x<r.min.x?t.x:r.min.x,t.y=t.y<r.min.y?t.y:r.min.y,n.x=n.x>r.max.x?n.x:r.max.x,n.y=n.y>r.max.y?n.y:r.max.y}var s=t.$clone().add(n).scale(.5),a=UnityEngine.Vector2.FromVector3(n.$clone().sub(t));return new pc.BoundingBox(s.$clone(),UnityEngine.Vector3.FromVector2(a.$clone()).scale(.5))},GetCanvasSpaceClippingRect:function(){if(UnityEngine.Component.op_Equality(this.m_canvas,null)||UnityEngine.Component.op_Equality(this.m_canvas.rootCanvas,null)||null==this.m_mesh)return UnityEngine.Rect.zero.$clone();var e=this.m_canvas.rootCanvas.transform,t=this.GetCompoundBounds(),n=UnityEngine.Vector2.FromVector3(e.InverseTransformPoint(this.m_rectTransform.position)),i=UnityEngine.Vector2.FromVector3(e.lossyScale.$clone()),r=UnityEngine.Vector2.FromVector3(this.m_rectTransform.lossyScale.$clone().mulScalars(1/i.x,1/i.y,0));return new UnityEngine.Rect.$ctor3(n.$clone().add(UnityEngine.Vector2.FromVector3(t.min.$clone()).mul(r)),UnityEngine.Vector2.FromVector3(t.halfExtents.$clone().scale(2).$clone()).mul(r))},UpdateSDFScale:function(e){if(0===e||Infinity===e||-Infinity===e)return this.m_havePropertiesChanged=!0,void this.OnPreRenderCanvas();for(var t=0;t<this.m_textInfo.materialCount;t++)for(var n=this.m_textInfo.meshInfo[t].$clone(),i=0;i<n.uvs2.length;i++)n.uvs2[i].y*=Math.abs(e);for(var r=0;r<this.m_textInfo.materialCount;r++)0===r?(this.m_mesh.uv2=this.m_textInfo.meshInfo[0].uvs2,this.m_canvasRenderer.SetMesh(this.m_mesh)):(this.m_subTextObjects[r].mesh.uv2=this.m_textInfo.meshInfo[r].uvs2,this.m_subTextObjects[r].canvasRenderer.SetMesh(this.m_subTextObjects[r].mesh))}},overloads:{"UpdateGeometry(Mesh, int)":"UpdateGeometry$1","UpdateVertexData(TMP_VertexDataUpdateFlags)":"UpdateVertexData$1"}}),Bridge.define("TMPro.TweenRunner$1",(function(e){return{statics:{methods:{}},fields:{m_CoroutineContainer:null,m_Tween:null},methods:{}}}));var n=Bridge.setMetadata,i=["System","TMPro","UnityEngine","UnityEngine.UI","System.Collections.Generic","UnityEngine.TextCore.LowLevel","UnityEngine.TextCore"];n("TMPro.TMP_Text",(function(){}),i),n("TMPro.TMP_ColorGradient",(function(){}),i),n("TMPro.TextMeshProUGUI",(function(){}),i)})),Bridge.assembly("Newtonsoft.Json",(function($asm,globals){Bridge.define("Newtonsoft.Json.DefaultValueHandling",{$kind:6,statics:{fields:{Include:0,Ignore:1,Populate:2,IgnoreAndPopulate:3}},$flags:!0}),Bridge.define("Newtonsoft.Json.JsonIgnoreAttribute",{inherits:[System.Attribute]}),Bridge.define("Newtonsoft.Json.JsonPropertyAttribute",{inherits:[System.Attribute],fields:{_nullValueHandling:null,_defaultValueHandling:null,_objectCreationHandling:null,_typeNameHandling:null,_required:null,_order:null},props:{PropertyName:null},ctors:{}}),Bridge.define("Newtonsoft.Json.ObjectCreationHandling",{$kind:6,statics:{fields:{Auto:0,Reuse:1,Replace:2}}}),Bridge.define("Newtonsoft.Json.Required",{$kind:6,statics:{fields:{Default:0,AllowNull:1,Always:2,DisallowNull:3}}}),Bridge.define("Newtonsoft.Json.Serialization.IContractResolver",{$kind:3}),Bridge.define("Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver",{inherits:[Newtonsoft.Json.Serialization.IContractResolver]}),Bridge.define("Newtonsoft.Json.JsonConvert",{statics:{methods:{parse:function(value){try{return JSON.parse(value)}catch(e){if(e instanceof SyntaxError)try{return eval("("+value+")")}catch(e){}}},getValue:function(e,t){for(var n in t=t.toLowerCase(),e)if(n.toLowerCase()==t)return e[n]},getCacheByType:function(e){for(var t=0;t<Newtonsoft.Json.$cache.length;t++){var n=Newtonsoft.Json.$cache[t];if(n.type===e)return n}var i={type:e};return Newtonsoft.Json.$cache.push(i),i},getMembers:function(e,t){var n=Newtonsoft.Json.JsonConvert.getCacheByType(e);if(n[t])return n[t];var i=Bridge.Reflection.getMembers(e,t,52),r=!1;return i=i.map((function(e){var t=System.Attribute.getCustomAttributes(e,Newtonsoft.Json.JsonPropertyAttribute),n=System.Attribute.getCustomAttributes(e,System.ComponentModel.DefaultValueAttribute);return{member:e,attr:t&&t.length>0?t[0]:null,defaultValue:n&&n.length>0?n[0].Value:Bridge.getDefaultValue(e.rt)}})).filter((function(e){return!r&&e.attr&&e.attr.Order&&(r=!0),(e.attr||2===e.member.a)&&0===System.Attribute.getCustomAttributes(e.member,Newtonsoft.Json.JsonIgnoreAttribute).length})),r&&i.sort((function(e,t){return(e.attr&&e.attr.Order||0)-(t.attr&&t.attr.Order||0)})),n[t]=i,i},preRawProcess:function(e,t,n,i){var r=e.attr,s=r&&null!=r._defaultValueHandling?r._defaultValueHandling:i.DefaultValueHandling,a=r&&r.Required;return void 0!==n||s!==Newtonsoft.Json.DefaultValueHandling.Populate&&s!==Newtonsoft.Json.DefaultValueHandling.IgnoreAndPopulate||(n=e.defaultValue),a===Newtonsoft.Json.Required.AllowNull||Newtonsoft.Json.Required.Always,Newtonsoft.Json.Required.Always,Newtonsoft.Json.Required.DisallowNull,{value:n}},preProcess:function(e,t,n,i){var r=e.attr,s=r&&null!=r._defaultValueHandling?r._defaultValueHandling:i.DefaultValueHandling,a=r&&null!=r._nullValueHandling?r._nullValueHandling:i.NullValueHandling;if(null==n&&a===Newtonsoft.Json.NullValueHandling.Ignore)return!1;var o=Bridge.unbox(n,!0),l=e.defaultValue;return!(null!=o&&(null!=l||null==o&&null==l)&&Bridge.equals(o,l)&&(s===Newtonsoft.Json.DefaultValueHandling.Ignore||s===Newtonsoft.Json.DefaultValueHandling.IgnoreAndPopulate))&&{value:n}},getInstanceBuilder:function(e,t,n){var i=Bridge.isArray(t),r=i&&Bridge.Reflection.isAssignableFrom(System.Collections.IEnumerable,e),s=!1;if(r||"object"==typeof t&&!i){var a=Bridge.Reflection.getMembers(e,1,54),o=[],l=!1,c=null;if(e===System.Version)a=[Bridge.Reflection.getMembers(e,1,284,null,[System.Int32,System.Int32,System.Int32,System.Int32])],c=a[0];else if(a.length>0){a=a.filter((function(e){return!e.isSynthetic}));for(var u=0;u<a.length;u++){var h=a[u],d=System.Attribute.getCustomAttributes(h,Newtonsoft.Json.JsonConstructorAttribute).length>0;0===(h.pi||[]).length&&(l=!0),d&&(c=h),2===h.a&&o.push(h)}}if(!l&&!c&&4===e.$kind){var m=!0;if(o.length>0){m=!1;for(var g=(c=o[0]).pi||[],$=Newtonsoft.Json.JsonConvert.getMembers(e,4),p=Newtonsoft.Json.JsonConvert.getMembers(e,16),y=0;y<g.length;y++){for(var f=g[y],_=f.sn||f.n,S=0;S<p.length;S++){var b=(C=p[y]).member;if(_===(E=C.attr&&C.attr.PropertyName||b.n)||_.toLowerCase()===E.toLowerCase()&&C.s){m=!0;break}}if(!m)for(S=0;S<$.length;S++){var C,E,T=(C=$[y]).member;if(_===(E=C.attr&&C.attr.PropertyName||T.n)||_.toLowerCase()===E.toLowerCase()&&!C.ro){m=!0;break}}if(m)break}}m&&(c={td:e})}if(!l&&a.length>0)return o.length,null==c&&(c=o[0]),g=c.pi||[],r?function(t){var i=[];if(Bridge.Reflection.isAssignableFrom(System.Collections.IEnumerable,g[0].pt)){var r,a=[],o=Bridge.Reflection.getGenericArguments(g[0].pt)[0]||Bridge.Reflection.getGenericArguments(e)[0]||System.Object;if(n&&n._typeNameHandling&&t.length>0&&t[0]){var l=!0,u=t[0].$type;if(u)for(var h=1;h<t.length;h++){var d=t[h]?t[h].$type:null;if(!d||d!==u){l=!1;break}}else l=!1;r=l?Newtonsoft.Json.JsonConvert.getInstanceBuilder(o,t[0],n):null}else r=null;for(h=0;h<t.length;h++){var m,$,p=t[h],y=r&&!r.default;y&&(m=r(p),a[h]=m.value,$=m.names),a[h]=Newtonsoft.Json.JsonConvert.DeserializeObject(p,o,n,!0,y?a[h]:void 0,$)}i.push(a),s=!0}var f=Bridge.Reflection.invokeCI(c,i);return s?{$list:!0,names:[],value:f}:{names:[],value:f}}:function(e){for(var t=[],i=[],r=Object.getOwnPropertyNames(e),s=0;s<g.length;s++){for(var a=g[s],o=a.sn||a.n,l=null,u=0;u<r.length;u++)if(o===r[u]){l=r[u];break}if(!l)for(o=o.toLowerCase(),u=0;u<r.length;u++)if(o===r[u].toLowerCase()){l=r[u];break}(o=l)?(t[s]=Newtonsoft.Json.JsonConvert.DeserializeObject(e[o],a.pt,n,!0),i.push(o)):t[s]=Bridge.getDefaultValue(a.pt)}return{names:i,value:Bridge.Reflection.invokeCI(c,t)}}}var v=function(){return{names:[],value:Bridge.createInstance(e),default:!0}};return v.default=!0,v},createInstance:function(e,t,n){return this.getInstanceBuilder(e,t,n)(t)},needReuse:function(e,t,n,i){return!(e!==Newtonsoft.Json.ObjectCreationHandling.Reuse&&(e!==Newtonsoft.Json.ObjectCreationHandling.Auto||null==t)||!i||4===n.$kind||6===n.$kind||n===System.String||n===System.Boolean||n===System.Int64||n===System.UInt64||n===System.Int32||n===System.UInt32||n===System.Int16||n===System.UInt16||n===System.Byte||n===System.SByte||n===System.Single||n===System.Double||n===System.Decimal)},DeserializeObject:function(e,t,n,i,r,s){if(n=n||{},3===t.$kind)if(System.Collections.IDictionary===t)t=System.Collections.Generic.Dictionary$2(System.Object,System.Object);else if(Bridge.Reflection.isGenericType(t)&&Bridge.Reflection.isAssignableFrom(System.Collections.Generic.IDictionary$2,Bridge.Reflection.getGenericTypeDefinition(t))){var a=System.Collections.Generic.Dictionary$2.getTypeParameters(t);t=System.Collections.Generic.Dictionary$2(a[0]||System.Object,a[1]||System.Object)}else t===System.Collections.IList||t===System.Collections.ICollection?t=System.Collections.Generic.List$1(System.Object):Bridge.Reflection.isGenericType(t)&&(Bridge.Reflection.isAssignableFrom(System.Collections.Generic.IList$1,Bridge.Reflection.getGenericTypeDefinition(t))||Bridge.Reflection.isAssignableFrom(System.Collections.Generic.ICollection$1,Bridge.Reflection.getGenericTypeDefinition(t)))&&(t=System.Collections.Generic.List$1(System.Collections.Generic.List$1.getElementType(t)||System.Object));if(!i&&"string"==typeof e){var o=Newtonsoft.Json.JsonConvert.parse(e);("object"==typeof o||Bridge.isArray(o)||t===System.Array.type(System.Byte,1)||t===Function||t==System.Type||t===System.Guid||t===System.Globalization.CultureInfo||t===System.Uri||t===System.DateTime||t===System.DateTimeOffset||t===System.Char||Bridge.Reflection.isEnum(t))&&(e=o)}var l=t===Object||t===System.Object,c=Bridge.isObject(e);if(l&&c&&e&&e.$type&&(t=Newtonsoft.Json.JsonConvert.BindToType(n,e.$type,t),l=!1),l&&c||t.$literal&&!Bridge.getMetadata(t))return Bridge.merge(l?{}:r||Bridge.createInstance(t),e);var u=Bridge.getDefaultValue(t);if(t.$nullable&&(t=t.$nullableType),null===e)return u;if(!1===e)return t!==System.Boolean&&(t===System.String?"false":(f=Newtonsoft.Json.JsonConvert.tryToGetCastOperator(e,t))?f(e):l?Bridge.box(e,System.Boolean,System.Boolean.toString):u);if(!0===e){if(t===System.Boolean)return!0;if(t===System.Int64)return System.Int64(1);if(t===System.UInt64)return System.UInt64(1);if(t===System.Decimal)return System.Decimal(1);if(t===String.String)return"true";if(t===System.DateTime)return System.DateTime.create$2(1,0);if(t===System.DateTimeOffset)return System.DateTimeOffset.MinValue.$clone();if(Bridge.Reflection.isEnum(t))return Bridge.unbox(System.Enum.parse(t,1));if("number"==typeof u)return u+1;if(f=Newtonsoft.Json.JsonConvert.tryToGetCastOperator(e,t))return f(e);if(l)return Bridge.box(e,System.Boolean,System.Boolean.toString);throw new System.ArgumentException(System.String.format("Could not cast or convert from {0} to {1}",Bridge.getTypeName(e),Bridge.getTypeName(t)))}if("number"==typeof e){if(t.$number&&!t.$is(e)&&(t===System.Decimal&&t.tryParse(e,null,{})||System.Int64.is64BitType(t)&&t.tryParse(e.toString(),{})),t===System.Boolean)return 0!==e;if(Bridge.Reflection.isEnum(t))return Bridge.unbox(System.Enum.parse(t,e));if(t===System.SByte)return 0|e;if(t===System.Byte)return e>>>0;if(t===System.Int16)return 0|e;if(t===System.UInt16)return e>>>0;if(t===System.Int32)return 0|e;if(t===System.UInt32)return e>>>0;if(t===System.Int64)return System.Int64(e);if(t===System.UInt64)return System.UInt64(e);if(t===System.Single)return e;if(t===System.Double)return e;if(t===System.Decimal)return System.Decimal(e);if(t===System.Char)return 0|e;if(t===System.String)return e.toString();if(t===System.DateTime)return System.DateTime.create$2(0|e,0);if(t===System.TimeSpan)return System.TimeSpan.fromTicks(e);if(t===System.DateTimeOffset)return new System.DateTimeOffset.$ctor5(System.Int64(0|e),(new System.DateTimeOffset.ctor).Offset);if(f=Newtonsoft.Json.JsonConvert.tryToGetCastOperator(e,t))return f(e);if(l)return Bridge.box(e,Bridge.getType(e));throw new System.ArgumentException(System.String.format("Could not cast or convert from {0} to {1}",Bridge.getTypeName(e),Bridge.getTypeName(t)))}if("string"==typeof e){var h=t===System.Decimal,d=h||System.Int64.is64BitType(t);d&&(h?t.tryParse(e,null,{}):t.tryParse(e,{}));var m=t==System.Double||t==System.Single;if(!d&&t.$number&&(m?t.tryParse(e,null,{}):t.tryParse(e,{})),t===Function||t==System.Type)return Bridge.Reflection.getType(e);if(t===System.Globalization.CultureInfo)return new System.Globalization.CultureInfo(e);if(t===System.Uri)return new System.Uri(e);if(t===System.Guid)return System.Guid.Parse(e);if(t===System.Boolean){var g={v:!1};return!(System.String.isNullOrWhiteSpace(e)||!System.Boolean.tryParse(e,g))&&g.v}if(t===System.SByte)return 0|e;if(t===System.Byte)return e>>>0;if(t===System.Int16)return 0|e;if(t===System.UInt16)return e>>>0;if(t===System.Int32)return 0|e;if(t===System.UInt32)return e>>>0;if(t===System.Int64)return System.Int64(e);if(t===System.UInt64)return System.UInt64(e);if(t===System.Single)return parseFloat(e);if(t===System.Double)return parseFloat(e);if(t!==System.Decimal){if(t===System.Char)return 0===e.length?0:e.charCodeAt(0);if(t===System.String)return i?e:JSON.parse(e);if(t===System.TimeSpan)return System.TimeSpan.parse('"'==e[0]?JSON.parse(e):e);if(t===System.DateTime){var $="yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFF"+((p=System.String.endsWith(e,"Z"))?"'Z'":"K");return y=null!=(y=System.DateTime.parseExact(e,$,null,!0,!0))?y:System.DateTime.parse(e,void 0,!0),p&&1!==y.kind&&(y=System.DateTime.specifyKind(y,1)),y}var p,y,f;if(t===System.DateTimeOffset)return $="yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFF"+((p=System.String.endsWith(e,"Z"))?"'Z'":"K"),y=null!=(y=System.DateTime.parseExact(e,$,null,!0,!0))?y:System.DateTime.parse(e,void 0,!0),p&&1!==y.kind&&(y=System.DateTime.specifyKind(y,1)),new System.DateTimeOffset.$ctor1(y);if(Bridge.Reflection.isEnum(t))return Bridge.unbox(System.Enum.parse(t,e));if(t===System.Array.type(System.Byte,1))return System.Convert.fromBase64String(e);if(f=Newtonsoft.Json.JsonConvert.tryToGetCastOperator(e,t))return f(e);if(l)return e;throw new System.ArgumentException(System.String.format("Could not cast or convert from {0} to {1}",Bridge.getTypeName(e),Bridge.getTypeName(t)))}try{return System.Decimal(e)}catch(e){return System.Decimal(0)}}else if("object"==typeof e){if(null!==u&&4!==t.$kind)return u;if(Bridge.isArray(null,t)){if(null!=(w=e.$type)&&(t=Newtonsoft.Json.JsonConvert.BindToType(n,w,t),e=e.$values),void 0===e.length)return[];var _=[];System.Array.type(t.$elementType,t.$rank||1,_);for(var S=0;S<e.length;S++)_[S]=Newtonsoft.Json.JsonConvert.DeserializeObject(e[S],t.$elementType,n,!0);return _}if(Bridge.Reflection.isAssignableFrom(System.Collections.IList,t)){null!=(w=e.$type)&&(t=Newtonsoft.Json.JsonConvert.BindToType(n,w,t),e=e.$values);var b=System.Collections.Generic.List$1.getElementType(t)||System.Object,C=r?{value:r}:Newtonsoft.Json.JsonConvert.createInstance(t,e,n);if(C&&C.$list)return C.value;if(C=C.value,void 0===e.length)return C;for(S=0;S<e.length;S++)C.add(Newtonsoft.Json.JsonConvert.DeserializeObject(e[S],b,n,!0));return C}if(Bridge.Reflection.isAssignableFrom(System.Collections.IDictionary,t)){var E=System.Collections.Generic.Dictionary$2.getTypeParameters(t),T=E[0]||System.Object,v=E[1]||System.Object,I=!1;null!=(w=e.$type)&&(t=Newtonsoft.Json.JsonConvert.BindToType(n,w,t),I=!0);var x=r?{value:r}:Newtonsoft.Json.JsonConvert.createInstance(t,e,n);if(x&&x.$list)return x.value;for(var A in M=x.names||[],x=x.value,e)!e.hasOwnProperty(A)||I&&"$type"===A||M.indexOf(A)<0&&x.add(Newtonsoft.Json.JsonConvert.DeserializeObject(A,T,n,!0),Newtonsoft.Json.JsonConvert.DeserializeObject(e[A],v,n,!0));return x}var w;if(null!=(w=e.$type)&&(t=Newtonsoft.Json.JsonConvert.BindToType(n,w,t)),!Bridge.getMetadata(t))return Bridge.merge(l?{}:r||Bridge.createInstance(t),e);var D,M,P=r?{value:r,names:s,default:!0}:Newtonsoft.Json.JsonConvert.createInstance(t,e,n);M=P.names||[],D=P.default,P=P.value;var U=Bridge.Reflection.getMembers(t,8,54);if(U.length>0)for(var B=0;B<U.length;B++)System.Attribute.isDefined(U[B],System.Runtime.Serialization.OnDeserializingAttribute,!1)&&Bridge.Reflection.midel(U[B],P)(null);var O,L,R,F,G,k,V=n&&Bridge.is(n.ContractResolver,Newtonsoft.Json.Serialization.CamelCasePropertyNamesContractResolver),N=Newtonsoft.Json.JsonConvert.getMembers(t,4);for(S=0;S<N.length;S++)if(!(R=(L=N[S]).member,G=L.attr&&L.attr.PropertyName||(V?R.n.charAt(0).toLowerCase()+R.n.substr(1):R.n),M.indexOf(G)>-1||(void 0===(O=e[G])&&(O=Newtonsoft.Json.JsonConvert.getValue(e,G)),void 0===(O=(q=Newtonsoft.Json.JsonConvert.preRawProcess(L,e,O,n)).value)))){var z=Bridge.Reflection.fieldAccess(R,P),H=Newtonsoft.Json.ObjectCreationHandling.Auto;k=void 0,L.attr&&null!=L.attr._objectCreationHandling?H=L.attr._objectCreationHandling:null!=n._objectCreationHandling&&(H=n._objectCreationHandling),Newtonsoft.Json.JsonConvert.needReuse(H,z,R.rt,D)&&(k=Bridge.unbox(z,!0)),L.attr&&(K=L.attr._typeNameHandling),null!=K&&(W=n._typeNameHandling,n._typeNameHandling=K);var j=Newtonsoft.Json.JsonConvert.DeserializeObject(O,R.rt,n,!0,k);null!=K&&(n._typeNameHandling=W),!1!==(q=Newtonsoft.Json.JsonConvert.preProcess(L,P,j,n))&&void 0===k&&Bridge.Reflection.fieldAccess(R,P,q.value)}var Z=Newtonsoft.Json.JsonConvert.getMembers(t,16);for(S=0;S<Z.length;S++){var q,K,W;if(!(F=(L=Z[S]).member,G=L.attr&&L.attr.PropertyName||(V?F.n.charAt(0).toLowerCase()+F.n.substr(1):F.n),M.indexOf(G)>-1||(void 0===(O=e[G])&&(O=Newtonsoft.Json.JsonConvert.getValue(e,G)),void 0===(O=(q=Newtonsoft.Json.JsonConvert.preRawProcess(L,e,O,n)).value))))k=void 0,F.g&&(z=Bridge.Reflection.midel(F.g,P)(),H=Newtonsoft.Json.ObjectCreationHandling.Auto,L.attr&&null!=L.attr._objectCreationHandling?H=L.attr._objectCreationHandling:null!=n._objectCreationHandling&&(H=n._objectCreationHandling),Newtonsoft.Json.JsonConvert.needReuse(H,z,F.rt,D)&&(k=Bridge.unbox(z,!0))),L.attr&&(K=L.attr._typeNameHandling),null!=K&&(W=n._typeNameHandling,n._typeNameHandling=K),j=Newtonsoft.Json.JsonConvert.DeserializeObject(O,F.rt,n,!0,k),null!=K&&(n._typeNameHandling=W),!1!==(q=Newtonsoft.Json.JsonConvert.preProcess(L,P,j,n))&&void 0===k&&(F.s?Bridge.Reflection.midel(F.s,P)(q.value):17===t.$kind&&(P[F.n]=q.value))}if(U.length>0)for(B=0;B<U.length;B++)System.Attribute.isDefined(U[B],System.Runtime.Serialization.OnDeserializedAttribute,!1)&&Bridge.Reflection.midel(U[B],P)(null);return P}}}}}),Newtonsoft.Json.$cache=[]})),Bridge.assembly("DOTween",(function(e,t){Bridge.define("DG.Tweening.AutoPlay",{$kind:6,statics:{fields:{None:0,AutoPlaySequences:1,AutoPlayTweeners:2,All:3}}}),Bridge.define("DG.Tweening.AxisConstraint",{$kind:6,statics:{fields:{None:0,X:2,Y:4,Z:8,W:16}},$flags:!0}),Bridge.define("DG.Tweening.Color2",{$kind:4,statics:{methods:{}},fields:{ca:null,cb:null},ctors:{},methods:{}}),Bridge.define("DG.Tweening.Core.ABSSequentiable",{fields:{onStart:null,sequencedEndPosition:0,sequencedPosition:0,tweenType:0}}),Bridge.define("DG.Tweening.Core.Debugger",{statics:{fields:{_LogPrefix:null,logPriority:0},ctors:{init:function(){this._LogPrefix="<color=#0099bc><b>DOTWEEN ► </b></color>"}},methods:{LogSafeModeCapturedError:function(e,t){var n;if(void 0===t&&(t=null),n=DG.Tweening.DOTween.debugMode?System.String.concat(DG.Tweening.Core.Debugger._LogPrefix+DG.Tweening.Core.Debugger.GetDebugDataMessage(t),e):System.String.concat(DG.Tweening.Core.Debugger._LogPrefix,e),Bridge.staticEquals(DG.Tweening.DOTween.onWillLog,null)||DG.Tweening.DOTween.onWillLog(UnityEngine.LogType.Log,n))switch(DG.Tweening.DOTween.safeModeLogBehaviour){case DG.Tweening.Core.Enums.SafeModeLogBehaviour.Normal:UnityEngine.Debug.Log$1(n);break;case DG.Tweening.Core.Enums.SafeModeLogBehaviour.Warning:UnityEngine.Debug.LogWarning$1(n);break;case DG.Tweening.Core.Enums.SafeModeLogBehaviour.Error:UnityEngine.Debug.LogError$2(n)}},SetLogPriority:function(e){switch(e){case DG.Tweening.LogBehaviour.Default:DG.Tweening.Core.Debugger.logPriority=1;break;case DG.Tweening.LogBehaviour.Verbose:DG.Tweening.Core.Debugger.logPriority=2;break;default:DG.Tweening.Core.Debugger.logPriority=0}},ShouldLogSafeModeCapturedError:function(){switch(DG.Tweening.DOTween.safeModeLogBehaviour){case DG.Tweening.Core.Enums.SafeModeLogBehaviour.None:return!1;case DG.Tweening.Core.Enums.SafeModeLogBehaviour.Normal:case DG.Tweening.Core.Enums.SafeModeLogBehaviour.Warning:return DG.Tweening.Core.Debugger.logPriority>=1;default:return!0}}}}}),Bridge.define("DG.Tweening.IDOTweenInit",{$kind:3}),Bridge.define("DG.Tweening.Core.DOTweenExternalCommand",{statics:{events:{SetOrientationOnPath:null},methods:{}}}),Bridge.define("DG.Tweening.Core.DOTweenSettings",{inherits:[UnityEngine.ScriptableObject],statics:{fields:{AssetName:null,AssetFullFilename:null},ctors:{init:function(){this.AssetName="DOTweenSettings",this.AssetFullFilename="DOTweenSettings.asset"}}},fields:{useSafeMode:!1,safeModeOptions:null,timeScale:0,unscaledTimeScale:0,useSmoothDeltaTime:!1,maxSmoothUnscaledTime:0,rewindCallbackMode:0,showUnityEditorReport:!1,logBehaviour:0,drawGizmos:!1,defaultRecyclable:!1,defaultAutoPlay:0,defaultUpdateType:0,defaultTimeScaleIndependent:!1,defaultEaseType:0,defaultEaseOvershootOrAmplitude:0,defaultEasePeriod:0,defaultAutoKill:!1,defaultLoopType:0,debugMode:!1,debugStoreTargetId:!1,showPreviewPanel:!1,storeSettingsLocation:0,modules:null,createASMDEF:!1,showPlayingTweens:!1,showPausedTweens:!1},ctors:{init:function(){this.useSafeMode=!0,this.safeModeOptions=new DG.Tweening.Core.DOTweenSettings.SafeModeOptions,this.timeScale=1,this.unscaledTimeScale=1,this.maxSmoothUnscaledTime=.15,this.rewindCallbackMode=DG.Tweening.Core.Enums.RewindCallbackMode.FireIfPositionChanged,this.logBehaviour=DG.Tweening.LogBehaviour.Default,this.drawGizmos=!0,this.defaultAutoPlay=DG.Tweening.AutoPlay.All,this.defaultEaseType=DG.Tweening.Ease.OutQuad,this.defaultEaseOvershootOrAmplitude=1.70158,this.defaultAutoKill=!0,this.defaultLoopType=DG.Tweening.LoopType.Restart,this.debugStoreTargetId=!0,this.showPreviewPanel=!0,this.storeSettingsLocation=DG.Tweening.Core.DOTweenSettings.SettingsLocation.AssetsDirectory,this.modules=new DG.Tweening.Core.DOTweenSettings.ModulesSetup}}}),Bridge.define("DG.Tweening.Core.DOTweenSettings.ModulesSetup",{$kind:1002,fields:{showPanel:!1,audioEnabled:!1,physicsEnabled:!1,physics2DEnabled:!1,spriteEnabled:!1,uiEnabled:!1,textMeshProEnabled:!1,tk2DEnabled:!1,deAudioEnabled:!1,deUnityExtendedEnabled:!1,epoOutlineEnabled:!1},ctors:{init:function(){this.audioEnabled=!0,this.physicsEnabled=!0,this.physics2DEnabled=!0,this.spriteEnabled=!0,this.uiEnabled=!0}}}),Bridge.define("DG.Tweening.Core.DOTweenSettings.SafeModeOptions",{$kind:1002,fields:{logBehaviour:0,nestedTweenFailureBehaviour:0},ctors:{init:function(){this.logBehaviour=DG.Tweening.Core.Enums.SafeModeLogBehaviour.Warning,this.nestedTweenFailureBehaviour=DG.Tweening.Core.Enums.NestedTweenFailureBehaviour.TryToPreserveSequence}}}),Bridge.define("DG.Tweening.Core.DOTweenSettings.SettingsLocation",{$kind:1006,statics:{fields:{AssetsDirectory:0,DOTweenDirectory:1,DemigiantDirectory:2}}}),Bridge.define("DG.Tweening.Core.DOTweenUtils",{statics:{fields:{_loadedAssemblies:null,_defAssembliesToQuery:null},ctors:{init:function(){this._defAssembliesToQuery=System.Array.init(["DOTween.Modules","Assembly-CSharp","Assembly-CSharp-firstpass"],System.String)}},methods:{GetLooseScriptType:function(e){for(var t=0;t<DG.Tweening.Core.DOTweenUtils._defAssembliesToQuery.length;++t){var n=Bridge.Reflection.getType(System.String.format("{0}, {1}",e,DG.Tweening.Core.DOTweenUtils._defAssembliesToQuery[t]));if(null!=n)return n}null==DG.Tweening.Core.DOTweenUtils._loadedAssemblies&&(DG.Tweening.Core.DOTweenUtils._loadedAssemblies=System.AppDomain.getAssemblies());for(var i=0;i<DG.Tweening.Core.DOTweenUtils._loadedAssemblies.length;++i){var r=Bridge.Reflection.getType(System.String.format("{0}, {1}",e,DG.Tweening.Core.DOTweenUtils._loadedAssemblies[i].getName()));if(null!=r)return r}return null}}}}),Bridge.define("DG.Tweening.Core.Easing.EaseManager",{statics:{fields:{_PiOver2:0,_TwoPi:0},ctors:{init:function(){this._PiOver2=1.57079637,this._TwoPi=6.28318548}},methods:{Evaluate:function(e,t,n,i,r,s){switch(e){case DG.Tweening.Ease.Linear:return n/i;case DG.Tweening.Ease.InSine:return 1-Math.cos(n/i*DG.Tweening.Core.Easing.EaseManager._PiOver2);case DG.Tweening.Ease.OutSine:return Math.sin(n/i*DG.Tweening.Core.Easing.EaseManager._PiOver2);case DG.Tweening.Ease.InOutSine:return-.5*(Math.cos(UnityEngine.Mathf.PI*n/i)-1);case DG.Tweening.Ease.InQuad:return(n/=i)*n;case DG.Tweening.Ease.OutQuad:return-(n/=i)*(n-2);case DG.Tweening.Ease.InOutQuad:return(n/=.5*i)<1?.5*n*n:-.5*(--n*(n-2)-1);case DG.Tweening.Ease.InCubic:return(n/=i)*n*n;case DG.Tweening.Ease.OutCubic:return(n=n/i-1)*n*n+1;case DG.Tweening.Ease.InOutCubic:return(n/=.5*i)<1?.5*n*n*n:.5*((n-=2)*n*n+2);case DG.Tweening.Ease.InQuart:return(n/=i)*n*n*n;case DG.Tweening.Ease.OutQuart:return-((n=n/i-1)*n*n*n-1);case DG.Tweening.Ease.InOutQuart:return(n/=.5*i)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2);case DG.Tweening.Ease.InQuint:return(n/=i)*n*n*n*n;case DG.Tweening.Ease.OutQuint:return(n=n/i-1)*n*n*n*n+1;case DG.Tweening.Ease.InOutQuint:return(n/=.5*i)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2);case DG.Tweening.Ease.InExpo:return 0===n?0:Math.pow(2,10*(n/i-1));case DG.Tweening.Ease.OutExpo:return n===i?1:1-Math.pow(2,-10*n/i);case DG.Tweening.Ease.InOutExpo:return 0===n?0:n===i?1:(n/=.5*i)<1?.5*Math.pow(2,10*(n-1)):.5*(2-Math.pow(2,-10*--n));case DG.Tweening.Ease.InCirc:return-(Math.sqrt(1-(n/=i)*n)-1);case DG.Tweening.Ease.OutCirc:return Math.sqrt(1-(n=n/i-1)*n);case DG.Tweening.Ease.InOutCirc:return(n/=.5*i)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1);case DG.Tweening.Ease.InElastic:var a;return 0===n?0:1==(n/=i)?1:(0===s&&(s=.3*i),r<1?(r=1,a=s/4):a=s/DG.Tweening.Core.Easing.EaseManager._TwoPi*Math.asin(1/r),-r*Math.pow(2,10*(n-=1))*Math.sin((n*i-a)*DG.Tweening.Core.Easing.EaseManager._TwoPi/s));case DG.Tweening.Ease.OutElastic:var o;return 0===n?0:1==(n/=i)?1:(0===s&&(s=.3*i),r<1?(r=1,o=s/4):o=s/DG.Tweening.Core.Easing.EaseManager._TwoPi*Math.asin(1/r),r*Math.pow(2,-10*n)*Math.sin((n*i-o)*DG.Tweening.Core.Easing.EaseManager._TwoPi/s)+1);case DG.Tweening.Ease.InOutElastic:var l;return 0===n?0:2==(n/=.5*i)?1:(0===s&&(s=.450000018*i),r<1?(r=1,l=s/4):l=s/DG.Tweening.Core.Easing.EaseManager._TwoPi*Math.asin(1/r),n<1?r*Math.pow(2,10*(n-=1))*Math.sin((n*i-l)*DG.Tweening.Core.Easing.EaseManager._TwoPi/s)*-.5:r*Math.pow(2,-10*(n-=1))*Math.sin((n*i-l)*DG.Tweening.Core.Easing.EaseManager._TwoPi/s)*.5+1);case DG.Tweening.Ease.InBack:return(n/=i)*n*((r+1)*n-r);case DG.Tweening.Ease.OutBack:return(n=n/i-1)*n*((r+1)*n+r)+1;case DG.Tweening.Ease.InOutBack:return(n/=.5*i)<1?n*n*((1+(r*=1.525))*n-r)*.5:.5*((n-=2)*n*((1+(r*=1.525))*n+r)+2);case DG.Tweening.Ease.InBounce:case DG.Tweening.Ease.OutBounce:case DG.Tweening.Ease.InOutBounce:case DG.Tweening.Ease.INTERNAL_Custom:return t(n,i,r,s);case DG.Tweening.Ease.INTERNAL_Zero:return 1;case DG.Tweening.Ease.Flash:case DG.Tweening.Ease.InFlash:case DG.Tweening.Ease.OutFlash:case DG.Tweening.Ease.InOutFlash:default:return-(n/=i)*(n-2)}}}}}),Bridge.define("DG.Tweening.Core.Enums.FilterType",{$kind:6,statics:{fields:{All:0,TargetOrId:1,TargetAndId:2,AllExceptTargetsOrIds:3,DOGetter:4}}}),Bridge.define("DG.Tweening.Core.Enums.NestedTweenFailureBehaviour",{$kind:6,statics:{fields:{TryToPreserveSequence:0,KillWholeSequence:1}}}),Bridge.define("DG.Tweening.Core.Enums.OperationType",{$kind:6,statics:{fields:{Complete:0,Despawn:1,Flip:2,Goto:3,Pause:4,Play:5,PlayForward:6,PlayBackwards:7,Rewind:8,SmoothRewind:9,Restart:10,TogglePause:11,IsTweening:12}}}),Bridge.define("DG.Tweening.Core.Enums.RewindCallbackMode",{$kind:6,statics:{fields:{FireIfPositionChanged:0,FireAlwaysWithRewind:1,FireAlways:2}}}),Bridge.define("DG.Tweening.Core.Enums.SafeModeLogBehaviour",{$kind:6,statics:{fields:{None:0,Normal:1,Warning:2,Error:3}}}),Bridge.define("DG.Tweening.Core.Enums.SpecialStartupMode",{$kind:6,statics:{fields:{None:0,SetLookAt:1,SetShake:2,SetPunch:3,SetCameraShakePosition:4}}}),Bridge.define("DG.Tweening.Core.Enums.UpdateMode",{$kind:6,statics:{fields:{Update:0,Goto:1,IgnoreOnUpdate:2,IgnoreOnComplete:3}}}),Bridge.define("DG.Tweening.Core.Enums.UpdateNotice",{$kind:6,statics:{fields:{None:0,RewindStep:1}}}),Bridge.define("DG.Tweening.Core.SafeModeReport",{$kind:4,statics:{methods:{}},fields:{totMissingTargetOrFieldErrors:0,totCallbackErrors:0,totStartupErrors:0,totUnsetErrors:0},ctors:{ctor:function(){this.$initialize()}},methods:{Add:function(e){switch(e){case DG.Tweening.Core.SafeModeReport.SafeModeReportType.TargetOrFieldMissing:this.totMissingTargetOrFieldErrors++;break;case DG.Tweening.Core.SafeModeReport.SafeModeReportType.Callback:this.totCallbackErrors++;break;case DG.Tweening.Core.SafeModeReport.SafeModeReportType.StartupFailure:this.totStartupErrors++;break;default:this.totUnsetErrors++}}}}),Bridge.define("DG.Tweening.Core.SafeModeReport.SafeModeReportType",{$kind:1006,statics:{fields:{Unset:0,TargetOrFieldMissing:1,Callback:2,StartupFailure:3}}}),Bridge.define("DG.Tweening.Plugins.Options.IPlugOptions",{$kind:3}),Bridge.define("DG.Tweening.Core.TweenLink",{fields:{behaviour:0,target:null,lastSeenActive:!1},ctors:{}}),Bridge.define("DG.Tweening.Core.TweenManager",{statics:{fields:{_DefaultMaxTweeners:0,_DefaultMaxSequences:0,_MaxTweensReached:null,_EpsilonVsTimeCheck:0,isUnityEditor:!1,isDebugBuild:!1,maxActive:0,maxTweeners:0,maxSequences:0,hasActiveTweens:!1,hasActiveDefaultTweens:!1,hasActiveLateTweens:!1,hasActiveFixedTweens:!1,hasActiveManualTweens:!1,totActiveTweens:0,totActiveDefaultTweens:0,totActiveLateTweens:0,totActiveFixedTweens:0,totActiveManualTweens:0,totActiveTweeners:0,totActiveSequences:0,totPooledTweeners:0,totPooledSequences:0,totTweeners:0,totSequences:0,isUpdateLoop:!1,_activeTweens:null,_pooledTweeners:null,_PooledSequences:null,_KillList:null,_TweenLinks:null,_totTweenLinks:0,_maxActiveLookupId:0,_requiresActiveReorganization:!1,_reorganizeFromId:0,_minPooledTweenerId:0,_maxPooledTweenerId:0,_despawnAllCalledFromUpdateLoopCallback:!1},ctors:{init:function(){this._DefaultMaxTweeners=200,this._DefaultMaxSequences=50,this._MaxTweensReached="Max Tweens reached: capacity has automatically been increased from #0 to #1. Use DOTween.SetTweensCapacity to set it manually at startup",this._EpsilonVsTimeCheck=1e-6,this.maxActive=250,this.maxTweeners=200,this.maxSequences=50,this._activeTweens=System.Array.init(250,null,DG.Tweening.Tween),this._pooledTweeners=System.Array.init(DG.Tweening.Core.TweenManager._DefaultMaxTweeners,null,DG.Tweening.Tween),this._PooledSequences=new(System.Collections.Generic.Stack$1(DG.Tweening.Tween).ctor),this._KillList=new(System.Collections.Generic.List$1(DG.Tweening.Tween).$ctor2)(250),this._TweenLinks=new(System.Collections.Generic.Dictionary$2(DG.Tweening.Tween,DG.Tweening.Core.TweenLink).$ctor4)(250),this._maxActiveLookupId=-1,this._reorganizeFromId=-1,this._minPooledTweenerId=-1,this._maxPooledTweenerId=-1},ctor:function(){DG.Tweening.Core.TweenManager.isUnityEditor=UnityEngine.Application.isEditor}},methods:{GetTweener:function(e,t,n){var i;if(DG.Tweening.Core.TweenManager.totPooledTweeners>0){for(var r=e,s=t,a=n,o=DG.Tweening.Core.TweenManager._maxPooledTweenerId;o>DG.Tweening.Core.TweenManager._minPooledTweenerId-1;--o){var l=DG.Tweening.Core.TweenManager._pooledTweeners[o];if(null!=l&&Bridge.referenceEquals(l.typeofT1,r)&&Bridge.referenceEquals(l.typeofT2,s)&&Bridge.referenceEquals(l.typeofTPlugOptions,a))return i=Bridge.cast(l,DG.Tweening.Core.TweenerCore$3(e,t,n)),DG.Tweening.Core.TweenManager.AddActiveTween(i),DG.Tweening.Core.TweenManager._pooledTweeners[o]=null,DG.Tweening.Core.TweenManager._maxPooledTweenerId!==DG.Tweening.Core.TweenManager._minPooledTweenerId&&(o===DG.Tweening.Core.TweenManager._maxPooledTweenerId?DG.Tweening.Core.TweenManager._maxPooledTweenerId--:o===DG.Tweening.Core.TweenManager._minPooledTweenerId&&DG.Tweening.Core.TweenManager._minPooledTweenerId++),DG.Tweening.Core.TweenManager.totPooledTweeners--,i}DG.Tweening.Core.TweenManager.totTweeners>=DG.Tweening.Core.TweenManager.maxTweeners&&(DG.Tweening.Core.TweenManager._pooledTweeners[DG.Tweening.Core.TweenManager._maxPooledTweenerId]=null,DG.Tweening.Core.TweenManager._maxPooledTweenerId--,DG.Tweening.Core.TweenManager.totPooledTweeners--,DG.Tweening.Core.TweenManager.totTweeners--)}else if(DG.Tweening.Core.TweenManager.totTweeners>=DG.Tweening.Core.TweenManager.maxTweeners-1){var c=DG.Tweening.Core.TweenManager.maxTweeners,u=DG.Tweening.Core.TweenManager.maxSequences;DG.Tweening.Core.Debugger.logPriority>=1&&DG.Tweening.Core.Debugger.LogWarning(System.String.replaceAll(System.String.replaceAll(DG.Tweening.Core.TweenManager._MaxTweensReached,"#0",c+"/"+u),"#1",DG.Tweening.Core.TweenManager.maxTweeners+"/"+DG.Tweening.Core.TweenManager.maxSequences))}return i=new(DG.Tweening.Core.TweenerCore$3(e,t,n)),DG.Tweening.Core.TweenManager.totTweeners++,DG.Tweening.Core.TweenManager.AddActiveTween(i),i},GetSequence:function(){var e;if(DG.Tweening.Core.TweenManager.totPooledSequences>0)return e=Bridge.cast(DG.Tweening.Core.TweenManager._PooledSequences.Pop(),DG.Tweening.Sequence),DG.Tweening.Core.TweenManager.AddActiveTween(e),DG.Tweening.Core.TweenManager.totPooledSequences--,e;if(DG.Tweening.Core.TweenManager.totSequences>=DG.Tweening.Core.TweenManager.maxSequences-1){var t=DG.Tweening.Core.TweenManager.maxTweeners,n=DG.Tweening.Core.TweenManager.maxSequences;DG.Tweening.Core.Debugger.logPriority>=1&&DG.Tweening.Core.Debugger.LogWarning(System.String.replaceAll(System.String.replaceAll(DG.Tweening.Core.TweenManager._MaxTweensReached,"#0",t+"/"+n),"#1",DG.Tweening.Core.TweenManager.maxTweeners+"/"+DG.Tweening.Core.TweenManager.maxSequences))}return e=new DG.Tweening.Sequence,DG.Tweening.Core.TweenManager.totSequences++,DG.Tweening.Core.TweenManager.AddActiveTween(e),e},AddActiveTweenToSequence:function(e){DG.Tweening.Core.TweenManager.RemoveActiveTween(e)},Despawn:function(e,t){if(void 0===t&&(t=!0),Bridge.staticEquals(e.onKill,null)||DG.Tweening.Tween.OnTweenCallback(e.onKill,e),t&&DG.Tweening.Core.TweenManager.RemoveActiveTween(e),e.isRecyclable)switch(e.tweenType){case DG.Tweening.TweenType.Sequence:DG.Tweening.Core.TweenManager._PooledSequences.Push(e),DG.Tweening.Core.TweenManager.totPooledSequences++;for(var n=Bridge.cast(e,DG.Tweening.Sequence),i=n.sequencedTweens.Count,r=0;r<i;++r)DG.Tweening.Core.TweenManager.Despawn(n.sequencedTweens.getItem(r),!1);break;case DG.Tweening.TweenType.Tweener:if(-1===DG.Tweening.Core.TweenManager._maxPooledTweenerId&&(DG.Tweening.Core.TweenManager._maxPooledTweenerId=DG.Tweening.Core.TweenManager.maxTweeners-1,DG.Tweening.Core.TweenManager._minPooledTweenerId=DG.Tweening.Core.TweenManager.maxTweeners-1),DG.Tweening.Core.TweenManager._maxPooledTweenerId<DG.Tweening.Core.TweenManager.maxTweeners-1)DG.Tweening.Core.TweenManager._pooledTweeners[DG.Tweening.Core.TweenManager._maxPooledTweenerId+1]=e,DG.Tweening.Core.TweenManager._maxPooledTweenerId++,DG.Tweening.Core.TweenManager._minPooledTweenerId>DG.Tweening.Core.TweenManager._maxPooledTweenerId&&(DG.Tweening.Core.TweenManager._minPooledTweenerId=DG.Tweening.Core.TweenManager._maxPooledTweenerId);else for(var s=DG.Tweening.Core.TweenManager._maxPooledTweenerId;s>-1;--s)if(null==DG.Tweening.Core.TweenManager._pooledTweeners[s]){DG.Tweening.Core.TweenManager._pooledTweeners[s]=e,s<DG.Tweening.Core.TweenManager._minPooledTweenerId&&(DG.Tweening.Core.TweenManager._minPooledTweenerId=s),DG.Tweening.Core.TweenManager._maxPooledTweenerId<DG.Tweening.Core.TweenManager._minPooledTweenerId&&(DG.Tweening.Core.TweenManager._maxPooledTweenerId=DG.Tweening.Core.TweenManager._minPooledTweenerId);break}DG.Tweening.Core.TweenManager.totPooledTweeners++}else switch(e.tweenType){case DG.Tweening.TweenType.Sequence:DG.Tweening.Core.TweenManager.totSequences--;for(var a=Bridge.cast(e,DG.Tweening.Sequence),o=a.sequencedTweens.Count,l=0;l<o;++l)DG.Tweening.Core.TweenManager.Despawn(a.sequencedTweens.getItem(l),!1);break;case DG.Tweening.TweenType.Tweener:DG.Tweening.Core.TweenManager.totTweeners--}e.active=!1,e.Reset()},Update$1:function(e,t,n){DG.Tweening.Core.TweenManager._requiresActiveReorganization&&DG.Tweening.Core.TweenManager.ReorganizeActiveTweens(),DG.Tweening.Core.TweenManager.isUpdateLoop=!0;for(var i=!1,r=DG.Tweening.Core.TweenManager._maxActiveLookupId+1,s=0;s<r;++s){var a=DG.Tweening.Core.TweenManager._activeTweens[s];null!=a&&a.updateType===e&&DG.Tweening.Core.TweenManager.Update(a,t,n,!1)&&(i=!0)}i&&(DG.Tweening.Core.TweenManager._despawnAllCalledFromUpdateLoopCallback?DG.Tweening.Core.TweenManager._despawnAllCalledFromUpdateLoopCallback=!1:DG.Tweening.Core.TweenManager.DespawnActiveTweens(DG.Tweening.Core.TweenManager._KillList),DG.Tweening.Core.TweenManager._KillList.clear()),DG.Tweening.Core.TweenManager.isUpdateLoop=!1},Update:function(e,t,n,i){if(DG.Tweening.Core.TweenManager._totTweenLinks>0&&DG.Tweening.Core.TweenManager.EvaluateTweenLink(e),!e.active)return DG.Tweening.Core.TweenManager.MarkForKilling(e,i),!0;if(!e.isPlaying)return!1;e.creationLocked=!0;var r=(e.isIndependentUpdate?n:t)*e.timeScale;if(r<DG.Tweening.Core.TweenManager._EpsilonVsTimeCheck&&r>-1e-6)return!1;if(!e.delayComplete){if((r=e.UpdateDelay(e.elapsedDelay+r))<=-1)return DG.Tweening.Core.TweenManager.MarkForKilling(e,i),!0;if(r<=0)return!1;e.playedOnce&&!Bridge.staticEquals(e.onPlay,null)&&DG.Tweening.Tween.OnTweenCallback(e.onPlay,e)}if(!e.startupDone&&!e.Startup())return DG.Tweening.Core.TweenManager.MarkForKilling(e,i),!0;var s=e.position,a=s>=e.duration,o=e.completedLoops;if(e.duration<=0)s=0,o=-1===e.loops?e.completedLoops+1:e.loops;else{if(e.isBackwards){for(s-=r;s<0&&o>-1;)s+=e.duration,o--;(o<0||a&&o<1)&&(s=0,o=a?1:0)}else for(s+=r;s>=e.duration&&(-1===e.loops||o<e.loops);)s-=e.duration,o++;a&&o--,-1!==e.loops&&o>=e.loops&&(s=e.duration)}return!!DG.Tweening.Tween.DoGoto(e,s,o,DG.Tweening.Core.Enums.UpdateMode.Update)&&(DG.Tweening.Core.TweenManager.MarkForKilling(e,i),!0)},FilteredOperation:function(e,t,n,i,r,s,a){void 0===s&&(s=null),void 0===a&&(a=null);var o=0,l=!1,c=null==a?0:a.length,u=!1,h=null,d=!1,m=0;switch(t){case DG.Tweening.Core.Enums.FilterType.TargetOrId:case DG.Tweening.Core.Enums.FilterType.TargetAndId:Bridge.is(n,System.String)?(u=!0,h=Bridge.cast(n,System.String)):Bridge.is(n,System.Int32)&&(d=!0,m=Bridge.cast(n,System.Int32))}for(var g=DG.Tweening.Core.TweenManager._maxActiveLookupId;g>-1;--g){var $=DG.Tweening.Core.TweenManager._activeTweens[g];if(null!=$&&$.active){var p=!1;switch(t){case DG.Tweening.Core.Enums.FilterType.All:p=!0;break;case DG.Tweening.Core.Enums.FilterType.TargetOrId:p=u?null!=$.stringId&&Bridge.referenceEquals($.stringId,h):d?$.intId===m:null!=$.id&&Bridge.equals(n,$.id)||null!=$.target&&Bridge.equals(n,$.target);break;case DG.Tweening.Core.Enums.FilterType.TargetAndId:p=u?null!=$.target&&Bridge.referenceEquals($.stringId,h)&&null!=s&&Bridge.equals(s,$.target):d?null!=$.target&&$.intId===m&&null!=s&&Bridge.equals(s,$.target):null!=$.id&&null!=$.target&&null!=s&&Bridge.equals(n,$.id)&&Bridge.equals(s,$.target);break;case DG.Tweening.Core.Enums.FilterType.AllExceptTargetsOrIds:p=!0;for(var y=0;y<c;++y){var f=a[y];if(Bridge.is(f,System.String)?(u=!0,h=Bridge.cast(f,System.String)):Bridge.is(f,System.Int32)&&(d=!0,m=Bridge.cast(f,System.Int32)),u&&Bridge.referenceEquals($.stringId,h)){p=!1;break}if(d&&$.intId===m){p=!1;break}if(null!=$.id&&Bridge.equals(f,$.id)||null!=$.target&&Bridge.equals(f,$.target)){p=!1;break}}}if(p)switch(e){case DG.Tweening.Core.Enums.OperationType.Despawn:if(o++,$.active=!1,DG.Tweening.Core.TweenManager.isUpdateLoop)break;DG.Tweening.Core.TweenManager.Despawn($,!1),l=!0,DG.Tweening.Core.TweenManager._KillList.add($);break;case DG.Tweening.Core.Enums.OperationType.Complete:var _=$.autoKill;$.startupDone||DG.Tweening.Core.TweenManager.ForceInit($),DG.Tweening.Core.TweenManager.Complete($,!1,r>0?DG.Tweening.Core.Enums.UpdateMode.Update:DG.Tweening.Core.Enums.UpdateMode.Goto)&&(o+=i?_?1:0:1,_&&(DG.Tweening.Core.TweenManager.isUpdateLoop?$.active=!1:(l=!0,DG.Tweening.Core.TweenManager._KillList.add($))));break;case DG.Tweening.Core.Enums.OperationType.Flip:DG.Tweening.Core.TweenManager.Flip($)&&o++;break;case DG.Tweening.Core.Enums.OperationType.Goto:$.startupDone||DG.Tweening.Core.TweenManager.ForceInit($),DG.Tweening.Core.TweenManager.Goto($,r,i),o++;break;case DG.Tweening.Core.Enums.OperationType.Pause:DG.Tweening.Core.TweenManager.Pause($)&&o++;break;case DG.Tweening.Core.Enums.OperationType.Play:DG.Tweening.Core.TweenManager.Play($)&&o++;break;case DG.Tweening.Core.Enums.OperationType.PlayBackwards:DG.Tweening.Core.TweenManager.PlayBackwards($)&&o++;break;case DG.Tweening.Core.Enums.OperationType.PlayForward:DG.Tweening.Core.TweenManager.PlayForward($)&&o++;break;case DG.Tweening.Core.Enums.OperationType.Restart:DG.Tweening.Core.TweenManager.Restart($,i,r)&&o++;break;case DG.Tweening.Core.Enums.OperationType.Rewind:DG.Tweening.Core.TweenManager.Rewind($,i)&&o++;break;case DG.Tweening.Core.Enums.OperationType.SmoothRewind:DG.Tweening.Core.TweenManager.SmoothRewind($)&&o++;break;case DG.Tweening.Core.Enums.OperationType.TogglePause:DG.Tweening.Core.TweenManager.TogglePause($)&&o++;break;case DG.Tweening.Core.Enums.OperationType.IsTweening:$.isComplete&&$.autoKill||i&&!$.isPlaying||o++}}}if(l){for(var S=DG.Tweening.Core.TweenManager._KillList.Count-1;S>-1;--S){var b=DG.Tweening.Core.TweenManager._KillList.getItem(S);-1!==b.activeId&&DG.Tweening.Core.TweenManager.RemoveActiveTween(b)}DG.Tweening.Core.TweenManager._KillList.clear()}return o},Goto:function(e,t,n,i){void 0===n&&(n=!1),void 0===i&&(i=1);var r=e.isPlaying;e.isPlaying=n,e.delayComplete=!0,e.elapsedDelay=e.delay;var s=e.duration<=0?1:Math.floor(t/e.duration),a=t%e.duration;-1!==e.loops&&s>=e.loops?(s=e.loops,a=e.duration):a>=e.duration&&(a=0);var o=DG.Tweening.Tween.DoGoto(e,a,s,i);return n||!r||o||Bridge.staticEquals(e.onPause,null)||DG.Tweening.Tween.OnTweenCallback(e.onPause,e),o},MarkForKilling:function(e,t){void 0===t&&(t=!1),t&&!DG.Tweening.Core.TweenManager.isUpdateLoop?DG.Tweening.Core.TweenManager.Despawn(e):(e.active=!1,DG.Tweening.Core.TweenManager._KillList.add(e))},AddActiveTween:function(e){var t;if(DG.Tweening.Core.TweenManager._requiresActiveReorganization&&DG.Tweening.Core.TweenManager.ReorganizeActiveTweens(),DG.Tweening.Core.TweenManager.totActiveTweens<0&&(DG.Tweening.Core.Debugger.LogAddActiveTweenError("totActiveTweens < 0",e),DG.Tweening.Core.TweenManager.totActiveTweens=0),e.active=!0,e.updateType=DG.Tweening.DOTween.defaultUpdateType,e.isIndependentUpdate=DG.Tweening.DOTween.defaultTimeScaleIndependent,e.activeId=(t=DG.Tweening.Core.TweenManager.totActiveTweens,DG.Tweening.Core.TweenManager._maxActiveLookupId=t,t),DG.Tweening.Core.TweenManager._activeTweens[DG.Tweening.Core.TweenManager.totActiveTweens]=e,e.updateType===DG.Tweening.UpdateType.Normal)DG.Tweening.Core.TweenManager.totActiveDefaultTweens++,DG.Tweening.Core.TweenManager.hasActiveDefaultTweens=!0;else switch(e.updateType){case DG.Tweening.UpdateType.Fixed:DG.Tweening.Core.TweenManager.totActiveFixedTweens++,DG.Tweening.Core.TweenManager.hasActiveFixedTweens=!0;break;case DG.Tweening.UpdateType.Late:DG.Tweening.Core.TweenManager.totActiveLateTweens++,DG.Tweening.Core.TweenManager.hasActiveLateTweens=!0;break;default:DG.Tweening.Core.TweenManager.totActiveManualTweens++,DG.Tweening.Core.TweenManager.hasActiveManualTweens=!0}DG.Tweening.Core.TweenManager.totActiveTweens++,e.tweenType===DG.Tweening.TweenType.Tweener?DG.Tweening.Core.TweenManager.totActiveTweeners++:DG.Tweening.Core.TweenManager.totActiveSequences++,DG.Tweening.Core.TweenManager.hasActiveTweens=!0},ReorganizeActiveTweens:function(){var e;if(DG.Tweening.Core.TweenManager.totActiveTweens<=0)return DG.Tweening.Core.TweenManager._maxActiveLookupId=-1,DG.Tweening.Core.TweenManager._requiresActiveReorganization=!1,void(DG.Tweening.Core.TweenManager._reorganizeFromId=-1);if(DG.Tweening.Core.TweenManager._reorganizeFromId===DG.Tweening.Core.TweenManager._maxActiveLookupId)return DG.Tweening.Core.TweenManager._maxActiveLookupId--,DG.Tweening.Core.TweenManager._requiresActiveReorganization=!1,void(DG.Tweening.Core.TweenManager._reorganizeFromId=-1);var t=1,n=DG.Tweening.Core.TweenManager._maxActiveLookupId+1;DG.Tweening.Core.TweenManager._maxActiveLookupId=DG.Tweening.Core.TweenManager._reorganizeFromId-1;for(var i=DG.Tweening.Core.TweenManager._reorganizeFromId+1;i<n;++i){var r=DG.Tweening.Core.TweenManager._activeTweens[i];null!=r?(r.activeId=(e=i-t,DG.Tweening.Core.TweenManager._maxActiveLookupId=e,e),DG.Tweening.Core.TweenManager._activeTweens[i-t]=r,DG.Tweening.Core.TweenManager._activeTweens[i]=null):t++}DG.Tweening.Core.TweenManager._requiresActiveReorganization=!1,DG.Tweening.Core.TweenManager._reorganizeFromId=-1},DespawnActiveTweens:function(e){for(var t=e.Count-1;t>-1;--t)DG.Tweening.Core.TweenManager.Despawn(e.getItem(t))},RemoveActiveTween:function(e){var t=e.activeId;if(DG.Tweening.Core.TweenManager._totTweenLinks>0&&DG.Tweening.Core.TweenManager.RemoveTweenLink(e),e.activeId=-1,DG.Tweening.Core.TweenManager._requiresActiveReorganization=!0,(-1===DG.Tweening.Core.TweenManager._reorganizeFromId||DG.Tweening.Core.TweenManager._reorganizeFromId>t)&&(DG.Tweening.Core.TweenManager._reorganizeFromId=t),DG.Tweening.Core.TweenManager._activeTweens[t]=null,e.updateType===DG.Tweening.UpdateType.Normal)DG.Tweening.Core.TweenManager.totActiveDefaultTweens>0?(DG.Tweening.Core.TweenManager.totActiveDefaultTweens--,DG.Tweening.Core.TweenManager.hasActiveDefaultTweens=DG.Tweening.Core.TweenManager.totActiveDefaultTweens>0):DG.Tweening.Core.Debugger.LogRemoveActiveTweenError("totActiveDefaultTweens < 0",e);else switch(e.updateType){case DG.Tweening.UpdateType.Fixed:DG.Tweening.Core.TweenManager.totActiveFixedTweens>0?(DG.Tweening.Core.TweenManager.totActiveFixedTweens--,DG.Tweening.Core.TweenManager.hasActiveFixedTweens=DG.Tweening.Core.TweenManager.totActiveFixedTweens>0):DG.Tweening.Core.Debugger.LogRemoveActiveTweenError("totActiveFixedTweens < 0",e);break;case DG.Tweening.UpdateType.Late:DG.Tweening.Core.TweenManager.totActiveLateTweens>0?(DG.Tweening.Core.TweenManager.totActiveLateTweens--,DG.Tweening.Core.TweenManager.hasActiveLateTweens=DG.Tweening.Core.TweenManager.totActiveLateTweens>0):DG.Tweening.Core.Debugger.LogRemoveActiveTweenError("totActiveLateTweens < 0",e);break;default:DG.Tweening.Core.TweenManager.totActiveManualTweens>0?(DG.Tweening.Core.TweenManager.totActiveManualTweens--,DG.Tweening.Core.TweenManager.hasActiveManualTweens=DG.Tweening.Core.TweenManager.totActiveManualTweens>0):DG.Tweening.Core.Debugger.LogRemoveActiveTweenError("totActiveManualTweens < 0",e)}DG.Tweening.Core.TweenManager.totActiveTweens--,DG.Tweening.Core.TweenManager.hasActiveTweens=DG.Tweening.Core.TweenManager.totActiveTweens>0,e.tweenType===DG.Tweening.TweenType.Tweener?DG.Tweening.Core.TweenManager.totActiveTweeners--:DG.Tweening.Core.TweenManager.totActiveSequences--,DG.Tweening.Core.TweenManager.totActiveTweens<0&&(DG.Tweening.Core.TweenManager.totActiveTweens=0,DG.Tweening.Core.Debugger.LogRemoveActiveTweenError("totActiveTweens < 0",e)),DG.Tweening.Core.TweenManager.totActiveTweeners<0&&(DG.Tweening.Core.TweenManager.totActiveTweeners=0,DG.Tweening.Core.Debugger.LogRemoveActiveTweenError("totActiveTweeners < 0",e)),DG.Tweening.Core.TweenManager.totActiveSequences<0&&(DG.Tweening.Core.TweenManager.totActiveSequences=0,DG.Tweening.Core.Debugger.LogRemoveActiveTweenError("totActiveSequences < 0",e))}}}}),Bridge.define("DG.Tweening.Plugins.Core.ITweenPlugin",{$kind:3}),Bridge.define("DG.Tweening.DOTween",{statics:{fields:{Version:null,useSafeMode:!1,safeModeLogBehaviour:0,nestedTweenFailureBehaviour:0,showUnityEditorReport:!1,timeScale:0,unscaledTimeScale:0,useSmoothDeltaTime:!1,maxSmoothUnscaledTime:0,rewindCallbackMode:0,_logBehaviour:0,onWillLog:null,drawGizmos:!1,debugMode:!1,_fooDebugStoreTargetId:!1,defaultUpdateType:0,defaultTimeScaleIndependent:!1,defaultAutoPlay:0,defaultAutoKill:!1,defaultLoopType:0,defaultRecyclable:!1,defaultEaseType:0,defaultEaseOvershootOrAmplitude:0,defaultEasePeriod:0,instance:null,_foo_isQuitting:!1,maxActiveTweenersReached:0,maxActiveSequencesReached:0,safeModeReport:null,GizmosDelegates:null,initialized:!1,_isQuittingFrame:0},props:{logBehaviour:{set:function(e){DG.Tweening.DOTween._logBehaviour=e,DG.Tweening.Core.Debugger.SetLogPriority(DG.Tweening.DOTween._logBehaviour)}},debugStoreTargetId:{get:function(){return DG.Tweening.DOTween.debugMode&&DG.Tweening.DOTween.useSafeMode&&DG.Tweening.DOTween._fooDebugStoreTargetId},set:function(e){DG.Tweening.DOTween._fooDebugStoreTargetId=e}},isQuitting:{get:function(){return!(!DG.Tweening.DOTween._foo_isQuitting||UnityEngine.Time.frameCount>=0&&DG.Tweening.DOTween._isQuittingFrame!==UnityEngine.Time.frameCount&&(DG.Tweening.DOTween._foo_isQuitting=!1,1))}}},ctors:{init:function(){this.safeModeReport=new DG.Tweening.Core.SafeModeReport,this.Version="1.2.705",this.useSafeMode=!0,this.safeModeLogBehaviour=DG.Tweening.Core.Enums.SafeModeLogBehaviour.Warning,this.nestedTweenFailureBehaviour=DG.Tweening.Core.Enums.NestedTweenFailureBehaviour.TryToPreserveSequence,this.timeScale=1,this.unscaledTimeScale=1,this.maxSmoothUnscaledTime=.15,this.rewindCallbackMode=DG.Tweening.Core.Enums.RewindCallbackMode.FireIfPositionChanged,this._logBehaviour=DG.Tweening.LogBehaviour.ErrorsOnly,this.drawGizmos=!0,this._fooDebugStoreTargetId=!0,this.defaultUpdateType=DG.Tweening.UpdateType.Normal,this.defaultAutoPlay=DG.Tweening.AutoPlay.All,this.defaultAutoKill=!0,this.defaultLoopType=DG.Tweening.LoopType.Restart,this.defaultEaseType=DG.Tweening.Ease.OutQuad,this.defaultEaseOvershootOrAmplitude=1.70158,this.GizmosDelegates=new(System.Collections.Generic.List$1(Function).ctor),this._isQuittingFrame=-1}},methods:{To$12:function(e,t,n,i){return DG.Tweening.DOTween.ApplyTo(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions,e,t,n.$clone(),i)},InitCheck:function(){DG.Tweening.DOTween.initialized||!UnityEngine.Application.isPlaying||DG.Tweening.DOTween.isQuitting||DG.Tweening.DOTween.AutoInit()},ApplyTo:function(e,t,n,i,r,s,a,o){void 0===o&&(o=null),DG.Tweening.DOTween.InitCheck();var l=DG.Tweening.Core.TweenManager.GetTweener(e,t,n);return DG.Tweening.Tweener.Setup(e,t,n,l,i,r,Bridge.rValue(s),a,o)?l:(DG.Tweening.Core.TweenManager.Despawn(l),null)},Init$1:function(e,t,n,i){return DG.Tweening.DOTween.initialized=!0,null!=t&&(DG.Tweening.DOTween.defaultRecyclable=System.Nullable.getValue(t)),null!=n&&(DG.Tweening.DOTween.useSafeMode=System.Nullable.getValue(n)),null!=i&&(DG.Tweening.DOTween.logBehaviour=System.Nullable.getValue(i)),DG.Tweening.Core.DOTweenComponent.Create(),null!=e&&(null==n&&(DG.Tweening.DOTween.useSafeMode=e.useSafeMode),null==i&&(DG.Tweening.DOTween.logBehaviour=e.logBehaviour),null==t&&(DG.Tweening.DOTween.defaultRecyclable=e.defaultRecyclable),DG.Tweening.DOTween.safeModeLogBehaviour=e.safeModeOptions.logBehaviour,DG.Tweening.DOTween.nestedTweenFailureBehaviour=e.safeModeOptions.nestedTweenFailureBehaviour,DG.Tweening.DOTween.timeScale=e.timeScale,DG.Tweening.DOTween.unscaledTimeScale=e.unscaledTimeScale,DG.Tweening.DOTween.useSmoothDeltaTime=e.useSmoothDeltaTime,DG.Tweening.DOTween.maxSmoothUnscaledTime=e.maxSmoothUnscaledTime,DG.Tweening.DOTween.rewindCallbackMode=e.rewindCallbackMode,DG.Tweening.DOTween.defaultRecyclable=null==t?e.defaultRecyclable:System.Nullable.getValue(t),DG.Tweening.DOTween.showUnityEditorReport=e.showUnityEditorReport,DG.Tweening.DOTween.drawGizmos=e.drawGizmos,DG.Tweening.DOTween.defaultAutoPlay=e.defaultAutoPlay,DG.Tweening.DOTween.defaultUpdateType=e.defaultUpdateType,DG.Tweening.DOTween.defaultTimeScaleIndependent=e.defaultTimeScaleIndependent,DG.Tweening.DOTween.defaultEaseType=e.defaultEaseType,DG.Tweening.DOTween.defaultEaseOvershootOrAmplitude=e.defaultEaseOvershootOrAmplitude,DG.Tweening.DOTween.defaultEasePeriod=e.defaultEasePeriod,DG.Tweening.DOTween.defaultAutoKill=e.defaultAutoKill,DG.Tweening.DOTween.defaultLoopType=e.defaultLoopType,DG.Tweening.DOTween.debugMode=e.debugMode,DG.Tweening.DOTween.debugStoreTargetId=e.debugStoreTargetId),DG.Tweening.Core.Debugger.logPriority>=2&&DG.Tweening.Core.Debugger.Log("DOTween initialization (useSafeMode: "+System.Boolean.toString(DG.Tweening.DOTween.useSafeMode)+", recycling: "+((DG.Tweening.DOTween.defaultRecyclable?"ON":"OFF")||"")+", logBehaviour: "+System.Enum.toString(DG.Tweening.LogBehaviour,DG.Tweening.DOTween.logBehaviour)+")"),DG.Tweening.DOTween.instance},AutoInit:function(){if(UnityEngine.Application.isPlaying&&!DG.Tweening.DOTween.isQuitting){var e=Bridge.as(UnityEngine.Resources.Load$1(DG.Tweening.Core.DOTweenSettings.AssetName),DG.Tweening.Core.DOTweenSettings);DG.Tweening.DOTween.Init$1(e,null,null,null)}},ToAlpha:function(e,t,n,i){var r=DG.Tweening.DOTween.ApplyTo(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions,e,t,new pc.Color(0,0,0,n),i);return DG.Tweening.TweenSettingsExtensions.SetOptions$4(r,!0),r},Sequence:function(){DG.Tweening.DOTween.InitCheck();var e=DG.Tweening.Core.TweenManager.GetSequence();return DG.Tweening.Sequence.Setup(e),e},CompleteAndReturnKilledTot$1:function(e){return null==e?0:DG.Tweening.Core.TweenManager.FilteredOperation(DG.Tweening.Core.Enums.OperationType.Complete,DG.Tweening.Core.Enums.FilterType.TargetOrId,e,!0,0)},Kill:function(e,t){return void 0===t&&(t=!1),null==e?0:(t?DG.Tweening.DOTween.CompleteAndReturnKilledTot$1(e):0)+DG.Tweening.Core.TweenManager.FilteredOperation(DG.Tweening.Core.Enums.OperationType.Despawn,DG.Tweening.Core.Enums.FilterType.TargetOrId,e,!1,0)}}}}),Bridge.define("DG.Tweening.Ease",{$kind:6,statics:{fields:{Unset:0,Linear:1,InSine:2,OutSine:3,InOutSine:4,InQuad:5,OutQuad:6,InOutQuad:7,InCubic:8,OutCubic:9,InOutCubic:10,InQuart:11,OutQuart:12,InOutQuart:13,InQuint:14,OutQuint:15,InOutQuint:16,InExpo:17,OutExpo:18,InOutExpo:19,InCirc:20,OutCirc:21,InOutCirc:22,InElastic:23,OutElastic:24,InOutElastic:25,InBack:26,OutBack:27,InOutBack:28,InBounce:29,OutBounce:30,InOutBounce:31,Flash:32,InFlash:33,OutFlash:34,InOutFlash:35,INTERNAL_Zero:36,INTERNAL_Custom:37}}}),Bridge.define("DG.Tweening.LogBehaviour",{$kind:6,statics:{fields:{Default:0,Verbose:1,ErrorsOnly:2}}}),Bridge.define("DG.Tweening.LoopType",{$kind:6,statics:{fields:{Restart:0,Yoyo:1,Incremental:2}}}),Bridge.definei("DG.Tweening.Plugins.Core.IPlugSetter$4",(function(e,t,n,i){return{$kind:3,$variance:[0,1,0,1]}})),Bridge.definei("DG.Tweening.Plugins.Core.ITPlugin$4",(function(e,t,n,i){return{$kind:3,$variance:[0,1,1,0]}})),Bridge.define("DG.Tweening.Plugins.Core.PathCore.Path",{statics:{fields:{_catmullRomDecoder:null,_linearDecoder:null,_cubicBezierDecoder:null},methods:{}},fields:{wpLengths:null,wps:null,_changed:!1,_decoder:null,_incrementalClone:null,_incrementalIndex:0,addedExtraStartWp:!1,addedExtraEndWp:!1,controlPoints:null,gizmoColor:null,isFinalized:!1,length:0,lengthsTable:null,linearWPIndex:0,lookAtPosition:null,nonLinearDrawWps:null,plugOptions:null,subdivisions:0,subdivisionsXSegment:0,targetPosition:null,timesTable:null,type:0},props:{},ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Core.PluginsManager",{statics:{fields:{_MaxCustomPlugins:0,_floatPlugin:null,_doublePlugin:null,_intPlugin:null,_uintPlugin:null,_longPlugin:null,_ulongPlugin:null,_vector2Plugin:null,_vector3Plugin:null,_vector4Plugin:null,_quaternionPlugin:null,_colorPlugin:null,_rectPlugin:null,_rectOffsetPlugin:null,_stringPlugin:null,_vector3ArrayPlugin:null,_color2Plugin:null,_customPlugins:null},ctors:{init:function(){this._MaxCustomPlugins=20}},methods:{GetDefaultPlugin:function(e,t,n){var i=e,r=t,s=null;return Bridge.referenceEquals(i,UnityEngine.Vector3)&&Bridge.referenceEquals(i,r)?(null==DG.Tweening.Plugins.Core.PluginsManager._vector3Plugin&&(DG.Tweening.Plugins.Core.PluginsManager._vector3Plugin=new DG.Tweening.Plugins.Vector3Plugin),s=DG.Tweening.Plugins.Core.PluginsManager._vector3Plugin):Bridge.referenceEquals(i,UnityEngine.Vector3)&&Bridge.referenceEquals(r,System.Array.type(UnityEngine.Vector3))?(DG.Tweening.Plugins.Core.PluginsManager._vector3ArrayPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._vector3ArrayPlugin):Bridge.referenceEquals(i,UnityEngine.Quaternion)?Bridge.referenceEquals(r,UnityEngine.Quaternion)?DG.Tweening.Core.Debugger.LogError("Quaternion tweens require a Vector3 endValue"):(DG.Tweening.Plugins.Core.PluginsManager._quaternionPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._quaternionPlugin):Bridge.referenceEquals(i,UnityEngine.Vector2)?(DG.Tweening.Plugins.Core.PluginsManager._vector2Plugin,s=DG.Tweening.Plugins.Core.PluginsManager._vector2Plugin):Bridge.referenceEquals(i,System.Single)?(DG.Tweening.Plugins.Core.PluginsManager._floatPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._floatPlugin):Bridge.referenceEquals(i,UnityEngine.Color)?(null==DG.Tweening.Plugins.Core.PluginsManager._colorPlugin&&(DG.Tweening.Plugins.Core.PluginsManager._colorPlugin=new DG.Tweening.Plugins.ColorPlugin),s=DG.Tweening.Plugins.Core.PluginsManager._colorPlugin):Bridge.referenceEquals(i,System.Int32)?(DG.Tweening.Plugins.Core.PluginsManager._intPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._intPlugin):Bridge.referenceEquals(i,UnityEngine.Vector4)?(DG.Tweening.Plugins.Core.PluginsManager._vector4Plugin,s=DG.Tweening.Plugins.Core.PluginsManager._vector4Plugin):Bridge.referenceEquals(i,UnityEngine.Rect)?(DG.Tweening.Plugins.Core.PluginsManager._rectPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._rectPlugin):Bridge.referenceEquals(i,UnityEngine.RectOffset)?(DG.Tweening.Plugins.Core.PluginsManager._rectOffsetPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._rectOffsetPlugin):Bridge.referenceEquals(i,System.UInt32)?(DG.Tweening.Plugins.Core.PluginsManager._uintPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._uintPlugin):Bridge.referenceEquals(i,System.String)?(DG.Tweening.Plugins.Core.PluginsManager._stringPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._stringPlugin):Bridge.referenceEquals(i,DG.Tweening.Color2)?(DG.Tweening.Plugins.Core.PluginsManager._color2Plugin,s=DG.Tweening.Plugins.Core.PluginsManager._color2Plugin):Bridge.referenceEquals(i,System.Int64)?(DG.Tweening.Plugins.Core.PluginsManager._longPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._longPlugin):Bridge.referenceEquals(i,System.UInt64)?(DG.Tweening.Plugins.Core.PluginsManager._ulongPlugin,s=DG.Tweening.Plugins.Core.PluginsManager._ulongPlugin):Bridge.referenceEquals(i,System.Double)&&(DG.Tweening.Plugins.Core.PluginsManager._doublePlugin,s=DG.Tweening.Plugins.Core.PluginsManager._doublePlugin),null!=s?Bridge.as(s,DG.Tweening.Plugins.Core.ABSTweenPlugin$3(e,t,n)):null}}}}),Bridge.define("DG.Tweening.ShortcutExtensions",{statics:{methods:{DOLocalMove:function(e,t,n,i){void 0===i&&(i=!1);var r=DG.Tweening.DOTween.To$12((function(){return e.localPosition}),(function(t){e.localPosition=t.$clone()}),t.$clone(),n);return DG.Tweening.TweenSettingsExtensions.SetTarget(DG.Tweening.Tweener,DG.Tweening.TweenSettingsExtensions.SetOptions$13(r,i),e),r},DOLocalMoveY:function(e,t,n,i){void 0===i&&(i=!1);var r=DG.Tweening.DOTween.To$12((function(){return e.localPosition}),(function(t){e.localPosition=t.$clone()}),new pc.Vec3(0,t,0),n);return DG.Tweening.TweenSettingsExtensions.SetTarget(DG.Tweening.Tweener,DG.Tweening.TweenSettingsExtensions.SetOptions$12(r,DG.Tweening.AxisConstraint.Y,i),e),r},DOScale$1:function(e,t,n){var i=DG.Tweening.DOTween.To$12((function(){return e.localScale}),(function(t){e.localScale=t.$clone()}),t.$clone(),n);return DG.Tweening.TweenSettingsExtensions.SetTarget(DG.Tweening.Core.TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),i,e),i},DOScale:function(e,t,n){var i=new pc.Vec3(t,t,t),r=DG.Tweening.DOTween.To$12((function(){return e.localScale}),(function(t){e.localScale=t.$clone()}),i.$clone(),n);return DG.Tweening.TweenSettingsExtensions.SetTarget(DG.Tweening.Core.TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),r,e),r},DOKill:function(e,t){return void 0===t&&(t=!1),DG.Tweening.DOTween.Kill(e,t)}}}}),Bridge.define("DG.Tweening.TweenExtensions",{statics:{methods:{Kill:function(e,t){void 0===t&&(t=!1),DG.Tweening.DOTween.initialized&&null!=e&&e.active&&(e.isSequenced?DG.Tweening.Core.Debugger.logPriority>1&&DG.Tweening.Core.Debugger.LogNestedTween(e):t&&(DG.Tweening.Core.TweenManager.Complete(e),e.autoKill&&e.loops>=0)||(DG.Tweening.Core.TweenManager.isUpdateLoop?e.active=!1:DG.Tweening.Core.TweenManager.Despawn(e)))}}}}),Bridge.define("DG.Tweening.TweenSettingsExtensions",{statics:{methods:{SetTarget:function(e,t,n){if(null==Bridge.rValue(t)||!Bridge.rValue(t).active)return Bridge.rValue(t);if(DG.Tweening.DOTween.debugStoreTargetId){var i=Bridge.as(n,UnityEngine.Component);Bridge.rValue(t).debugTargetId=UnityEngine.Component.op_Inequality(i,null)?i.name:Bridge.toString(n)}return Bridge.rValue(t).target=n,Bridge.rValue(t)},SetLoops:function(e,t,n){return null==Bridge.rValue(t)||!Bridge.rValue(t).active||Bridge.rValue(t).creationLocked||(n<-1?n=-1:0===n&&(n=1),Bridge.rValue(t).loops=n,Bridge.rValue(t).tweenType===DG.Tweening.TweenType.Tweener&&(Bridge.rValue(t).fullDuration=n>-1?Bridge.rValue(t).duration*n:window.Infinity)),Bridge.rValue(t)},SetRecyclable:function(e,t){return null!=Bridge.rValue(t)&&Bridge.rValue(t).active?(Bridge.rValue(t).isRecyclable=!0,Bridge.rValue(t)):Bridge.rValue(t)},OnComplete:function(e,t,n){return null!=Bridge.rValue(t)&&Bridge.rValue(t).active?(Bridge.rValue(t).onComplete=n,Bridge.rValue(t)):Bridge.rValue(t)},Append:function(e,t){return DG.Tweening.TweenSettingsExtensions.ValidateAddToSequence(e,t)?(DG.Tweening.Sequence.DoInsert(e,t,e.duration),e):e},Join:function(e,t){return DG.Tweening.TweenSettingsExtensions.ValidateAddToSequence(e,t)?(DG.Tweening.Sequence.DoInsert(e,t,e.lastTweenInsertTime),e):e},PrependInterval:function(e,t){return DG.Tweening.TweenSettingsExtensions.ValidateAddToSequence(e,null,!0)?(DG.Tweening.Sequence.DoPrependInterval(e,t),e):e},ValidateAddToSequence:function(e,t,n){if(void 0===n&&(n=!1),null==e)return!1;if(!e.active)return!1;if(e.creationLocked)return!1;if(!n){if(null==t)return!1;if(!t.active)return!1;if(t.isSequenced)return!1}return!0},SetDelay:function(e,t,n){return null==Bridge.rValue(t)||!Bridge.rValue(t).active||Bridge.rValue(t).creationLocked||(Bridge.rValue(t).tweenType===DG.Tweening.TweenType.Sequence?DG.Tweening.TweenSettingsExtensions.PrependInterval(Bridge.as(Bridge.rValue(t),DG.Tweening.Sequence),n):(Bridge.rValue(t).delay=n,Bridge.rValue(t).delayComplete=n<=0)),Bridge.rValue(t)},SetOptions$13:function(e,t){return null!=e&&e.active?(e.plugOptions.snapping=t,e):e},SetOptions$12:function(e,t,n){return void 0===n&&(n=!1),null!=e&&e.active?(e.plugOptions.axisConstraint=t,e.plugOptions.snapping=n,e):e},SetOptions$4:function(e,t){return null!=e&&e.active?(e.plugOptions.alphaOnly=t,e):e}}}}),Bridge.define("DG.Tweening.TweenType",{$kind:6,statics:{fields:{Tweener:0,Sequence:1,Callback:2}}}),Bridge.define("DG.Tweening.UpdateType",{$kind:6,statics:{fields:{Normal:0,Late:1,Fixed:2,Manual:3}}}),Bridge.define("DG.Tweening.Core.DOTweenComponent",{inherits:[UnityEngine.MonoBehaviour,DG.Tweening.IDOTweenInit],statics:{methods:{Create:function(){if(!UnityEngine.MonoBehaviour.op_Inequality(DG.Tweening.DOTween.instance,null)){var e=new UnityEngine.GameObject.$ctor2("[DOTween]");UnityEngine.Object.DontDestroyOnLoad(e),DG.Tweening.DOTween.instance=e.AddComponent(DG.Tweening.Core.DOTweenComponent)}}}},fields:{inspectorUpdater:0,_duplicateToDestroy:!1,_isQuitting:!1,_paused:!1,_pausedTime:0,_unscaledDeltaTime:0,_unscaledTime:0},alias:[],methods:{Awake:function(){if(!UnityEngine.MonoBehaviour.op_Equality(DG.Tweening.DOTween.instance,null))return DG.Tweening.Core.Debugger.logPriority>=1&&DG.Tweening.Core.Debugger.LogWarning("Duplicate DOTweenComponent instance found in scene: destroying it"),void UnityEngine.MonoBehaviour.Destroy(this.gameObject);DG.Tweening.DOTween.instance=this,this.inspectorUpdater=0,this._unscaledTime=UnityEngine.Time.realtimeSinceStartup;var e=DG.Tweening.Core.DOTweenUtils.GetLooseScriptType("DG.Tweening.DOTweenModuleUtils");if(null!=e){var t=Bridge.Reflection.getMembers(e,8,280,"Init");Bridge.Reflection.midel(t,null,null)(null)}else DG.Tweening.Core.Debugger.LogError("Couldn't load Modules system")},Start:function(){UnityEngine.MonoBehaviour.op_Inequality(DG.Tweening.DOTween.instance,this)&&(this._duplicateToDestroy=!0,UnityEngine.MonoBehaviour.Destroy(this.gameObject))},Update:function(){this._unscaledDeltaTime=UnityEngine.Time.realtimeSinceStartup-this._unscaledTime,DG.Tweening.DOTween.useSmoothDeltaTime&&this._unscaledDeltaTime>DG.Tweening.DOTween.maxSmoothUnscaledTime&&(this._unscaledDeltaTime=DG.Tweening.DOTween.maxSmoothUnscaledTime),DG.Tweening.Core.TweenManager.hasActiveDefaultTweens&&DG.Tweening.Core.TweenManager.Update$1(DG.Tweening.UpdateType.Normal,(DG.Tweening.DOTween.useSmoothDeltaTime?UnityEngine.Time.smoothDeltaTime:UnityEngine.Time.deltaTime)*DG.Tweening.DOTween.timeScale,this._unscaledDeltaTime*DG.Tweening.DOTween.unscaledTimeScale*DG.Tweening.DOTween.timeScale),this._unscaledTime=UnityEngine.Time.realtimeSinceStartup,DG.Tweening.Core.TweenManager.isUnityEditor&&(this.inspectorUpdater++,DG.Tweening.DOTween.showUnityEditorReport&&DG.Tweening.Core.TweenManager.hasActiveTweens&&(DG.Tweening.Core.TweenManager.totActiveTweeners>DG.Tweening.DOTween.maxActiveTweenersReached&&(DG.Tweening.DOTween.maxActiveTweenersReached=DG.Tweening.Core.TweenManager.totActiveTweeners),DG.Tweening.Core.TweenManager.totActiveSequences>DG.Tweening.DOTween.maxActiveSequencesReached&&(DG.Tweening.DOTween.maxActiveSequencesReached=DG.Tweening.Core.TweenManager.totActiveSequences)))},LateUpdate:function(){DG.Tweening.Core.TweenManager.hasActiveLateTweens&&DG.Tweening.Core.TweenManager.Update$1(DG.Tweening.UpdateType.Late,(DG.Tweening.DOTween.useSmoothDeltaTime?UnityEngine.Time.smoothDeltaTime:UnityEngine.Time.deltaTime)*DG.Tweening.DOTween.timeScale,this._unscaledDeltaTime*DG.Tweening.DOTween.unscaledTimeScale*DG.Tweening.DOTween.timeScale)},FixedUpdate:function(){DG.Tweening.Core.TweenManager.hasActiveFixedTweens&&UnityEngine.Time.timeScale>0&&DG.Tweening.Core.TweenManager.Update$1(DG.Tweening.UpdateType.Fixed,(DG.Tweening.DOTween.useSmoothDeltaTime?UnityEngine.Time.smoothDeltaTime:UnityEngine.Time.deltaTime)*DG.Tweening.DOTween.timeScale,(DG.Tweening.DOTween.useSmoothDeltaTime?UnityEngine.Time.smoothDeltaTime:UnityEngine.Time.deltaTime)/UnityEngine.Time.timeScale*DG.Tweening.DOTween.unscaledTimeScale*DG.Tweening.DOTween.timeScale)}}}),Bridge.define("DG.Tweening.Tween",{inherits:[DG.Tweening.Core.ABSSequentiable],statics:{methods:{DoGoto:function(e,t,n,i){if(!e.startupDone&&!e.Startup())return!0;if(!e.playedOnce&&i===DG.Tweening.Core.Enums.UpdateMode.Update){if(e.playedOnce=!0,!Bridge.staticEquals(e.onStart,null)&&(DG.Tweening.Tween.OnTweenCallback(e.onStart,e),!e.active))return!0;if(!Bridge.staticEquals(e.onPlay,null)&&(DG.Tweening.Tween.OnTweenCallback(e.onPlay,e),!e.active))return!0}var r=e.position,s=e.completedLoops;e.completedLoops=n;var a=e.position<=0&&s<=0,o=e.isComplete;-1!==e.loops&&(e.isComplete=e.completedLoops===e.loops);var l=0;i===DG.Tweening.Core.Enums.UpdateMode.Update?e.isBackwards?(l=e.completedLoops<s?s-e.completedLoops:t<=0&&!a?1:0,o&&l--):l=e.completedLoops>s?e.completedLoops-s:0:e.tweenType===DG.Tweening.TweenType.Sequence&&(l=s-n)<0&&(l=-l),e.position=t,e.position>e.duration?e.position=e.duration:e.position<=0&&(e.completedLoops>0||e.isComplete?e.position=e.duration:e.position=0);var c=e.isPlaying;e.isPlaying&&(e.isBackwards?e.isPlaying=!(0===e.completedLoops&&e.position<=0):e.isPlaying=!e.isComplete);var u=e.hasLoops&&e.loopType===DG.Tweening.LoopType.Yoyo&&(e.position<e.duration?e.completedLoops%2!=0:e.completedLoops%2==0),h=!a&&(e.loopType===DG.Tweening.LoopType.Restart&&e.completedLoops!==s&&(-1===e.loops||e.completedLoops<e.loops)||e.position<=0&&e.completedLoops<=0)?DG.Tweening.Core.Enums.UpdateNotice.RewindStep:DG.Tweening.Core.Enums.UpdateNotice.None;if(e.ApplyTween(r,s,l,u,i,h))return!0;if(Bridge.staticEquals(e.onUpdate,null)||i===DG.Tweening.Core.Enums.UpdateMode.IgnoreOnUpdate||DG.Tweening.Tween.OnTweenCallback(e.onUpdate,e),e.position<=0&&e.completedLoops<=0&&!a&&!Bridge.staticEquals(e.onRewind,null)&&DG.Tweening.Tween.OnTweenCallback(e.onRewind,e),l>0&&i===DG.Tweening.Core.Enums.UpdateMode.Update&&!Bridge.staticEquals(e.onStepComplete,null))for(var d=0;d<l&&(DG.Tweening.Tween.OnTweenCallback(e.onStepComplete,e),e.active);++d);return!e.isComplete||o||i===DG.Tweening.Core.Enums.UpdateMode.IgnoreOnComplete||Bridge.staticEquals(e.onComplete,null)||DG.Tweening.Tween.OnTweenCallback(e.onComplete,e),e.isPlaying||!c||e.isComplete&&e.autoKill||Bridge.staticEquals(e.onPause,null)||DG.Tweening.Tween.OnTweenCallback(e.onPause,e),e.autoKill&&e.isComplete},OnTweenCallback:function(e,t){if(DG.Tweening.DOTween.useSafeMode)try{e()}catch(e){return e=System.Exception.create(e),DG.Tweening.Core.Debugger.ShouldLogSafeModeCapturedError()&&DG.Tweening.Core.Debugger.LogSafeModeCapturedError(System.String.format("An error inside a tween callback was taken care of ({0}) ► {1}\n\n{2}\n\n",e.TargetSite,e.Message,e.StackTrace),t),DG.Tweening.DOTween.safeModeReport.Add(DG.Tweening.Core.SafeModeReport.SafeModeReportType.Callback),!1}else e();return!0}}},fields:{activeId:0,autoKill:!1,completedLoops:0,creationLocked:!1,customEase:null,debugTargetId:null,delay:0,delayComplete:!1,duration:0,easeType:0,elapsedDelay:0,fullDuration:0,id:null,intId:0,isBackwards:!1,isBlendable:!1,isComplete:!1,isFrom:!1,isIndependentUpdate:!1,isInverted:!1,isPlaying:!1,isRecyclable:!1,isSequenced:!1,isSpeedBased:!1,loops:0,loopType:0,miscInt:0,onComplete:null,onKill:null,onPause:null,onPlay:null,onRewind:null,onStepComplete:null,onUpdate:null,onWaypointChange:null,sequenceParent:null,specialStartupMode:0,startupDone:!1,stringId:null,target:null,timeScale:0,typeofT1:null,typeofT2:null,typeofTPlugOptions:null,updateType:0,isRelative:!1,active:!1,playedOnce:!1,position:0,easeOvershootOrAmplitude:0,easePeriod:0},props:{hasLoops:{get:function(){return-1===this.loops||this.loops>1}}},ctors:{init:function(){this.activeId=-1,this.delayComplete=!0,this.intId=-999,this.miscInt=-1}},methods:{Reset:function(){this.timeScale=1,this.isBackwards=!1,this.id=null,this.stringId=null,this.intId=-999,this.isIndependentUpdate=!1,this.onStart=this.onPlay=this.onRewind=this.onUpdate=this.onComplete=this.onStepComplete=this.onKill=null,this.onWaypointChange=null,this.debugTargetId=null,this.target=null,this.isFrom=!1,this.isBlendable=!1,this.isSpeedBased=!1,this.duration=0,this.loops=1,this.delay=0,this.isRelative=!1,this.customEase=null,this.isSequenced=!1,this.sequenceParent=null,this.specialStartupMode=DG.Tweening.Core.Enums.SpecialStartupMode.None,this.creationLocked=this.startupDone=(this.playedOnce=!1,!1),this.position=this.fullDuration=this.completedLoops=0,this.isPlaying=this.isComplete=!1,this.elapsedDelay=0,this.delayComplete=!0,this.miscInt=-1}}}),Bridge.define("DG.Tweening.Plugins.Core.ABSTweenPlugin$3",(function(e,t,n){return{inherits:[DG.Tweening.Plugins.Core.ITweenPlugin],methods:{},overloads:{"EvaluateAndApply(TPlugOptions, Tween, bool, DOGetter<T1>, DOSetter<T1>, float, T2, T2, float, bool, int, UpdateNotice)":"EvaluateAndApply$1"}}})),Bridge.define("DG.Tweening.Plugins.CircleOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},fields:{endValueDegrees:0,relativeCenter:!1,snapping:!1,center:null,radius:0,startValueDegrees:0,initialized:!1},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Options.PathOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},fields:{mode:0,orientType:0,lockPositionAxis:0,lockRotationAxis:0,isClosedPath:!1,lookAtPosition:null,lookAtTransform:null,lookAhead:0,hasCustomForwardDirection:!1,forward:null,useLocalPosition:!1,parent:null,isRigidbody:!1,isRigidbody2D:!1,stableZRotation:!1,startupRot:null,startupZRot:0,addedExtraStartWp:!1,addedExtraEndWp:!1},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Options.QuaternionOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},fields:{rotateMode:0,axisConstraint:0,up:null,dynamicLookAt:!1,dynamicLookAtWorldPosition:null},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Options.RectOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},fields:{snapping:!1},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Options.StringOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},fields:{richTextEnabled:!1,scrambleMode:0,scrambledChars:null,startValueStrippedLength:0,changeValueStrippedLength:0},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Options.UintOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},fields:{isNegativeChangeValue:!1},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Options.Vector3ArrayOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},fields:{axisConstraint:0,snapping:!1,durations:null},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Options.VectorOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{getDefaultValue:function(){return new DG.Tweening.Plugins.Options.VectorOptions}}},fields:{axisConstraint:0,snapping:!1},alias:["Reset","DG$Tweening$Plugins$Options$IPlugOptions$Reset"],ctors:{ctor:function(){this.$initialize()}},methods:{Reset:function(){this.axisConstraint=DG.Tweening.AxisConstraint.None,this.snapping=!1},$clone:function(e){var t=e||new DG.Tweening.Plugins.Options.VectorOptions;return t.axisConstraint=this.axisConstraint,t.snapping=this.snapping,t}}}),Bridge.define("DG.Tweening.Plugins.SpiralOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},fields:{depth:0,frequency:0,speed:0,mode:0,snapping:!1,unit:0,axisQ:null},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Tweener",{inherits:[DG.Tweening.Tween],statics:{methods:{Setup:function(e,t,n,i,r,s,a,o,l){if(void 0===l&&(l=null),null!=l)i.tweenPlugin=l;else if(null==i.tweenPlugin&&(i.tweenPlugin=DG.Tweening.Plugins.Core.PluginsManager.GetDefaultPlugin(e,t,n)),null==i.tweenPlugin)return DG.Tweening.Core.Debugger.LogError("No suitable plugin found for this type"),!1;return i.getter=r,i.setter=s,i.endValue=Bridge.rValue(a),i.duration=o,i.autoKill=DG.Tweening.DOTween.defaultAutoKill,i.isRecyclable=DG.Tweening.DOTween.defaultRecyclable,i.easeType=DG.Tweening.DOTween.defaultEaseType,i.easeOvershootOrAmplitude=DG.Tweening.DOTween.defaultEaseOvershootOrAmplitude,i.easePeriod=DG.Tweening.DOTween.defaultEasePeriod,i.loopType=DG.Tweening.DOTween.defaultLoopType,i.isPlaying=DG.Tweening.DOTween.defaultAutoPlay===DG.Tweening.AutoPlay.All||DG.Tweening.DOTween.defaultAutoPlay===DG.Tweening.AutoPlay.AutoPlayTweeners,!0},DoUpdateDelay:function(e,t,n,i,r){var s=i.delay;return r>s?(i.elapsedDelay=s,i.delayComplete=!0,r-s):(i.elapsedDelay=r,0)},DoStartup:function(e,t,n,i){if(i.startupDone=!0,i.specialStartupMode!==DG.Tweening.Core.Enums.SpecialStartupMode.None&&!DG.Tweening.Tweener.DOStartupSpecials(e,t,n,i))return!1;if(!i.hasManuallySetStartValue)if(DG.Tweening.DOTween.useSafeMode)try{i.isFrom?(i.SetFrom(i.isRelative&&!i.isBlendable),i.isRelative=!1):i.startValue=Bridge.rValue(i.tweenPlugin.ConvertToStartValue(i,Bridge.rValue(i.getter())))}catch(e){return e=System.Exception.create(e),DG.Tweening.Core.Debugger.ShouldLogSafeModeCapturedError()&&DG.Tweening.Core.Debugger.LogSafeModeCapturedError(System.String.format("Tween startup failed (NULL target/property - {0}): the tween will now be killed ► {1}",e.TargetSite,e.Message),i),DG.Tweening.DOTween.safeModeReport.Add(DG.Tweening.Core.SafeModeReport.SafeModeReportType.StartupFailure),!1}else i.isFrom?(i.SetFrom(i.isRelative&&!i.isBlendable),i.isRelative=!1):i.startValue=Bridge.rValue(i.tweenPlugin.ConvertToStartValue(i,Bridge.rValue(i.getter())));return i.isRelative&&i.tweenPlugin.SetRelativeEndValue(i),i.tweenPlugin.SetChangeValue(i),DG.Tweening.Tweener.DOStartupDurationBased(e,t,n,i),i.duration<=0&&(i.easeType=DG.Tweening.Ease.INTERNAL_Zero),!0},DOStartupDurationBased:function(e,t,n,i){i.isSpeedBased&&(i.duration=i.tweenPlugin.GetSpeedBasedDuration(Bridge.rValue(i.plugOptions),i.duration,Bridge.rValue(i.changeValue))),i.fullDuration=i.loops>-1?i.duration*i.loops:window.Infinity}}},fields:{hasManuallySetStartValue:!1,isFromAllowed:!1},ctors:{init:function(){this.isFromAllowed=!0},ctor:function(){this.$initialize(),DG.Tweening.Tween.ctor.call(this)}}}),Bridge.define("DG.Tweening.Plugins.Options.NoOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Options.ColorOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{getDefaultValue:function(){return new DG.Tweening.Plugins.Options.ColorOptions}}},fields:{alphaOnly:!1},alias:["Reset","DG$Tweening$Plugins$Options$IPlugOptions$Reset"],ctors:{ctor:function(){this.$initialize()}},methods:{Reset:function(){this.alphaOnly=!1},$clone:function(e){var t=e||new DG.Tweening.Plugins.Options.ColorOptions;return t.alphaOnly=this.alphaOnly,t}}}),Bridge.define("DG.Tweening.Plugins.Options.FloatOptions",{inherits:[DG.Tweening.Plugins.Options.IPlugOptions],$kind:4,statics:{methods:{}},fields:{snapping:!1},alias:[],ctors:{},methods:{}}),Bridge.define("DG.Tweening.Plugins.Vector3Plugin",{inherits:[DG.Tweening.Plugins.Core.ABSTweenPlugin$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions)],methods:{Reset:function(e){},ConvertToStartValue:function(e,t){return t.$clone()},SetChangeValue:function(e){switch(e.plugOptions.axisConstraint){case DG.Tweening.AxisConstraint.X:e.changeValue=new pc.Vec3(e.endValue.x-e.startValue.x,0,0);break;case DG.Tweening.AxisConstraint.Y:e.changeValue=new pc.Vec3(0,e.endValue.y-e.startValue.y,0);break;case DG.Tweening.AxisConstraint.Z:e.changeValue=new pc.Vec3(0,0,e.endValue.z-e.startValue.z);break;default:e.changeValue=e.endValue.$clone().sub(e.startValue)}},EvaluateAndApply:function(e,t,n,i,r,s,a,o,l,c,u){t.loopType===DG.Tweening.LoopType.Incremental&&(a=a.$clone().add(o.$clone().clone().scale(t.isComplete?t.completedLoops-1:t.completedLoops))),t.isSequenced&&t.sequenceParent.loopType===DG.Tweening.LoopType.Incremental&&(a=a.$clone().add(o.$clone().clone().scale(t.loopType===DG.Tweening.LoopType.Incremental?t.loops:1).clone().scale(t.sequenceParent.isComplete?t.sequenceParent.completedLoops-1:t.sequenceParent.completedLoops)));var h=DG.Tweening.Core.Easing.EaseManager.Evaluate(t.easeType,t.customEase,s,l,t.easeOvershootOrAmplitude,t.easePeriod);switch(e.axisConstraint){case DG.Tweening.AxisConstraint.X:var d=i().$clone();d.x=a.x+o.x*h,e.snapping&&(d.x=Bridge.Math.round(d.x,0,6)),r(d.$clone());break;case DG.Tweening.AxisConstraint.Y:var m=i().$clone();m.y=a.y+o.y*h,e.snapping&&(m.y=Bridge.Math.round(m.y,0,6)),r(m.$clone());break;case DG.Tweening.AxisConstraint.Z:var g=i().$clone();g.z=a.z+o.z*h,e.snapping&&(g.z=Bridge.Math.round(g.z,0,6)),r(g.$clone());break;default:a.x+=o.x*h,a.y+=o.y*h,a.z+=o.z*h,e.snapping&&(a.x=Bridge.Math.round(a.x,0,6),a.y=Bridge.Math.round(a.y,0,6),a.z=Bridge.Math.round(a.z,0,6)),r(a.$clone())}}},overloads:{"SetFrom(TweenerCore<Vector3, Vector3, VectorOptions>, bool)":"SetFrom$1"}}),Bridge.define("DG.Tweening.Sequence",{inherits:[DG.Tweening.Tween],statics:{methods:{Setup:function(e){e.autoKill=DG.Tweening.DOTween.defaultAutoKill,e.isRecyclable=DG.Tweening.DOTween.defaultRecyclable,e.isPlaying=DG.Tweening.DOTween.defaultAutoPlay===DG.Tweening.AutoPlay.All||DG.Tweening.DOTween.defaultAutoPlay===DG.Tweening.AutoPlay.AutoPlaySequences,e.loopType=DG.Tweening.DOTween.defaultLoopType,e.easeType=DG.Tweening.Ease.Linear,e.easeOvershootOrAmplitude=DG.Tweening.DOTween.defaultEaseOvershootOrAmplitude,e.easePeriod=DG.Tweening.DOTween.defaultEasePeriod},DoStartup:function(e){var t=e._sequencedObjs.Count;if(0===e.sequencedTweens.Count&&0===t&&!DG.Tweening.Sequence.IsAnyCallbackSet(e))return!1;if(e.startupDone=!0,e.fullDuration=e.loops>-1?e.duration*e.loops:window.Infinity,DG.Tweening.Sequence.StableSortSequencedObjs(e._sequencedObjs),e.isRelative)for(var n=e.sequencedTweens.Count,i=0;i<n;++i)e.sequencedTweens.getItem(i),e.isBlendable||(e.sequencedTweens.getItem(i).isRelative=!0);if(e.isInverted)for(var r=0;r<t;r++){var s=e._sequencedObjs.getItem(r);if(s.tweenType===DG.Tweening.TweenType.Tweener){var a=Bridge.cast(s,DG.Tweening.Tween);DG.Tweening.Core.TweenManager.Goto(a,a.duration*a.loops,!1,DG.Tweening.Core.Enums.UpdateMode.IgnoreOnComplete),a.isInverted=!0}}return!0},DoApplyTween:function(e,t,n,i,r,s){var a=t,o=e.position;e.isInverted&&(r=!r),e.easeType!==DG.Tweening.Ease.Linear&&(a=e.duration*DG.Tweening.Core.Easing.EaseManager.Evaluate(e.easeType,e.customEase,a,e.duration,e.easeOvershootOrAmplitude,e.easePeriod),o=e.duration*DG.Tweening.Core.Easing.EaseManager.Evaluate(e.easeType,e.customEase,o,e.duration,e.easeOvershootOrAmplitude,e.easePeriod));var l,c=0,u=(-1===e.loops||e.loops>1)&&e.loopType===DG.Tweening.LoopType.Yoyo&&(a<e.duration?n%2!=0:n%2==0);if(e.isBackwards&&(u=!u),e.isInverted&&(u=!u),i>0){var h=e.completedLoops,d=e.position,m=i,g=0;if(l=a,s===DG.Tweening.Core.Enums.UpdateMode.Update){for(;g<m;){if(g>0?l=c:u&&!e.isBackwards&&(l=e.duration-l),c=u?0:e.duration,DG.Tweening.Sequence.ApplyInternalCycle(e,l,c,s,r,u,!0))return!0;g++,e.hasLoops&&e.loopType===DG.Tweening.LoopType.Yoyo&&(u=!u)}if(h!==e.completedLoops||Math.abs(d-e.position)>1401298e-51)return!e.active}else e.hasLoops&&e.loopType===DG.Tweening.LoopType.Yoyo&&i%2!=0&&(u=!u,a=e.duration-a),i=0}return(1!==i||!e.isComplete)&&(i>0&&!e.isComplete?(l=r?e.duration:0,e.loopType===DG.Tweening.LoopType.Restart&&c>0&&DG.Tweening.Sequence.ApplyInternalCycle(e,e.duration,0,DG.Tweening.Core.Enums.UpdateMode.Goto,!1,!1)):l=r?e.duration-a:a,DG.Tweening.Sequence.ApplyInternalCycle(e,l,r?e.duration-o:o,s,r,u))},ApplyInternalCycle:function(e,t,n,i,r,s,a){void 0===a&&(a=!1);var o=e.isPlaying;if(n<t)for(var l=e._sequencedObjs.Count-1,c=l;c>-1;--c){if(!e.active)return!0;if(!e.isPlaying&&o)return!1;var u=e._sequencedObjs.getItem(c);if(!(u.sequencedEndPosition<n||u.sequencedPosition>t))if(u.tweenType===DG.Tweening.TweenType.Callback)i===DG.Tweening.Core.Enums.UpdateMode.Update&&s&&DG.Tweening.Tween.OnTweenCallback(u.onStart,e);else{var h=n-u.sequencedPosition;h<0&&(h=0);var d=Bridge.cast(u,DG.Tweening.Tween);if(!d.startupDone)continue;if(d.isBackwards=!0,e.isInverted&&(h=d.fullDuration-h),DG.Tweening.Core.TweenManager.Goto(d,h,!1,i)){if(DG.Tweening.DOTween.nestedTweenFailureBehaviour===DG.Tweening.Core.Enums.NestedTweenFailureBehaviour.KillWholeSequence)return!0;if(1===e.sequencedTweens.Count&&1===e._sequencedObjs.Count&&!DG.Tweening.Sequence.IsAnyCallbackSet(e))return!0;DG.Tweening.Core.TweenManager.Despawn(d,!1),e._sequencedObjs.removeAt(c),e.sequencedTweens.remove(d),--c,--l;continue}if(a&&d.tweenType===DG.Tweening.TweenType.Sequence)if(e.position<=0&&0===e.completedLoops)d.position=0;else{var m=0===e.completedLoops||e.isBackwards&&(e.completedLoops<e.loops||-1===e.loops);d.isBackwards&&(m=!m),r&&(m=!m),!e.isBackwards||r||s||(m=!m),d.position=m?0:d.duration}}}else for(var g=e._sequencedObjs.Count,$=0;$<g;++$){if(!e.active)return!0;if(!e.isPlaying&&o)return!1;var p=e._sequencedObjs.getItem($);if(!(p.sequencedPosition>n||p.sequencedPosition>0&&p.sequencedEndPosition<=t||p.sequencedPosition<=0&&p.sequencedEndPosition<t))if(p.tweenType===DG.Tweening.TweenType.Callback)i===DG.Tweening.Core.Enums.UpdateMode.Update&&(!e.isBackwards&&!r&&!s||e.isBackwards&&r&&!s)&&DG.Tweening.Tween.OnTweenCallback(p.onStart,e);else{var y=n-p.sequencedPosition;y<0&&(y=0);var f=Bridge.cast(p,DG.Tweening.Tween);if(n>=p.sequencedEndPosition&&(f.startupDone||DG.Tweening.Core.TweenManager.ForceInit(f,!0),y<f.fullDuration&&(y=f.fullDuration)),f.isBackwards=!1,e.isInverted&&(y=f.fullDuration-y),DG.Tweening.Core.TweenManager.Goto(f,y,!1,i)){if(DG.Tweening.DOTween.nestedTweenFailureBehaviour===DG.Tweening.Core.Enums.NestedTweenFailureBehaviour.KillWholeSequence)return!0;if(1===e.sequencedTweens.Count&&1===e._sequencedObjs.Count&&!DG.Tweening.Sequence.IsAnyCallbackSet(e))return!0;DG.Tweening.Core.TweenManager.Despawn(f,!1),e._sequencedObjs.removeAt($),e.sequencedTweens.remove(f),--$,--g;continue}if(a&&f.tweenType===DG.Tweening.TweenType.Sequence)if(e.position<=0&&0===e.completedLoops)f.position=0;else{var _=0===e.completedLoops||!e.isBackwards&&(e.completedLoops<e.loops||-1===e.loops);f.isBackwards&&(_=!_),r&&(_=!_),!e.isBackwards||r||s||(_=!_),f.position=_?0:f.duration}}}return!1},StableSortSequencedObjs:function(e){for(var t=e.Count,n=1;n<t;n++){for(var i=n,r=e.getItem(n);i>0&&e.getItem(i-1).sequencedPosition>r.sequencedPosition;)e.setItem(i,e.getItem(i-1)),i-=1;e.setItem(i,r)}},DoInsert:function(e,t,n){DG.Tweening.Core.TweenManager.AddActiveTweenToSequence(t),n+=t.delay,e.lastTweenInsertTime=n,t.isSequenced=t.creationLocked=!0,t.sequenceParent=e,-1===t.loops&&(t.loops=2147483647,DG.Tweening.Core.Debugger.LogWarning("Infinite loops aren't allowed inside a Sequence (only on the Sequence itself) and will be changed to int.MaxValue",t));var i=t.duration*t.loops;return t.autoKill=!1,t.delay=t.elapsedDelay=0,t.delayComplete=!0,t.isSpeedBased&&(t.isSpeedBased=!1,DG.Tweening.Core.Debugger.LogWarning("SpeedBased tweens are not allowed inside a Sequence: interpreting speed as duration",t)),t.sequencedPosition=n,t.sequencedEndPosition=n+i,t.sequencedEndPosition>e.duration&&(e.duration=t.sequencedEndPosition),e._sequencedObjs.add(t),e.sequencedTweens.add(t),e},DoPrependInterval:function(e,t){e.lastTweenInsertTime=0,e.duration+=t;for(var n=e._sequencedObjs.Count,i=0;i<n;++i){var r=e._sequencedObjs.getItem(i);r.sequencedPosition+=t,r.sequencedEndPosition+=t}return e}}},fields:{_sequencedObjs:null,sequencedTweens:null,lastTweenInsertTime:0},ctors:{init:function(){this._sequencedObjs=new(System.Collections.Generic.List$1(DG.Tweening.Core.ABSSequentiable).ctor),this.sequencedTweens=new(System.Collections.Generic.List$1(DG.Tweening.Tween).ctor)},ctor:function(){this.$initialize(),DG.Tweening.Tween.ctor.call(this),this.tweenType=DG.Tweening.TweenType.Sequence,this.Reset()}},methods:{Reset:function(){DG.Tweening.Tween.prototype.Reset.call(this),this.sequencedTweens.clear(),this._sequencedObjs.clear(),this.lastTweenInsertTime=0},Startup:function(){return DG.Tweening.Sequence.DoStartup(this)},ApplyTween:function(e,t,n,i,r,s){return DG.Tweening.Sequence.DoApplyTween(this,e,t,n,i,r)}}}),Bridge.define("DG.Tweening.Core.TweenerCore$3",(function(e,t,n){return{inherits:[DG.Tweening.Tweener],statics:{fields:{_TxtCantChangeSequencedValues:null},ctors:{init:function(){this._TxtCantChangeSequencedValues="You cannot change the values of a tween contained inside a Sequence"}}},fields:{startValue:Bridge.getDefaultValue(t),endValue:Bridge.getDefaultValue(t),changeValue:Bridge.getDefaultValue(t),plugOptions:Bridge.getDefaultValue(n),getter:null,setter:null,tweenPlugin:null,_colorType:null,_color32Type:null},ctors:{init:function(){this.startValue=Bridge.getDefaultValue(t),this.endValue=Bridge.getDefaultValue(t),this.changeValue=Bridge.getDefaultValue(t),this.plugOptions=Bridge.getDefaultValue(n),this._colorType=UnityEngine.Color,this._color32Type=UnityEngine.Color32},ctor:function(){this.$initialize(),DG.Tweening.Tweener.ctor.call(this),this.typeofT1=e,this.typeofT2=t,this.typeofTPlugOptions=n,this.tweenType=DG.Tweening.TweenType.Tweener,this.Reset()}},methods:{Reset:function(){DG.Tweening.Tweener.prototype.Reset.call(this),null!=this.tweenPlugin&&this.tweenPlugin.Reset(this),Bridge.rValue(this.plugOptions).DG$Tweening$Plugins$Options$IPlugOptions$Reset(),this.getter=null,this.setter=null,this.hasManuallySetStartValue=!1,this.isFromAllowed=!0},UpdateDelay:function(i){return DG.Tweening.Tweener.DoUpdateDelay(e,t,n,this,i)},Startup:function(){return DG.Tweening.Tweener.DoStartup(e,t,n,this)},ApplyTween:function(e,t,n,i,r,s){this.isInverted&&(i=!i);var a=i?this.duration-this.position:this.position;if(DG.Tweening.DOTween.useSafeMode)try{this.tweenPlugin.EvaluateAndApply(Bridge.rValue(this.plugOptions),this,this.isRelative,this.getter,this.setter,a,Bridge.rValue(this.startValue),Bridge.rValue(this.changeValue),this.duration,i,s)}catch(e){return e=System.Exception.create(e),DG.Tweening.Core.Debugger.ShouldLogSafeModeCapturedError()&&DG.Tweening.Core.Debugger.LogSafeModeCapturedError(System.String.format("Target or field is missing/null ({0}) ► {1}\n\n{2}\n\n",e.TargetSite,e.Message,e.StackTrace),this),DG.Tweening.DOTween.safeModeReport.Add(DG.Tweening.Core.SafeModeReport.SafeModeReportType.TargetOrFieldMissing),!0}else this.tweenPlugin.EvaluateAndApply(Bridge.rValue(this.plugOptions),this,this.isRelative,this.getter,this.setter,a,Bridge.rValue(this.startValue),Bridge.rValue(this.changeValue),this.duration,i,s);return!1}},overloads:{"ChangeStartValue(T2, float)":"ChangeStartValue$1","ChangeEndValue(object, float, bool)":"ChangeEndValue$1","ChangeEndValue(T2, bool)":"ChangeEndValue$2","ChangeEndValue(T2, float, bool)":"ChangeEndValue$3","ChangeValues(T2, T2, float)":"ChangeValues$1","SetFrom(T2, bool, bool)":"SetFrom$1"}}})),Bridge.define("DG.Tweening.Plugins.ColorPlugin",{inherits:[DG.Tweening.Plugins.Core.ABSTweenPlugin$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions)],methods:{Reset:function(e){},ConvertToStartValue:function(e,t){return t.$clone()},SetChangeValue:function(e){e.changeValue=new pc.Color(e.endValue.r-e.startValue.r,e.endValue.g-e.startValue.g,e.endValue.b-e.startValue.b,e.endValue.a-e.startValue.a)},EvaluateAndApply:function(e,t,n,i,r,s,a,o,l,c,u){var h,d,m,g,$,p;t.loopType===DG.Tweening.LoopType.Incremental&&(h=t.isComplete?t.completedLoops-1:t.completedLoops,d=new pc.Color(o.r*h,o.g*h,o.b*h,o.a*h),a=new pc.Color(a.$clone().r+d.r,a.$clone().g+d.g,a.$clone().b+d.b,a.$clone().a+d.a)),t.isSequenced&&t.sequenceParent.loopType===DG.Tweening.LoopType.Incremental&&(m=t.loopType===DG.Tweening.LoopType.Incremental?t.loops:1,g=new pc.Color(o.r*m,o.g*m,o.b*m,o.a*m),$=t.sequenceParent.isComplete?t.sequenceParent.completedLoops-1:t.sequenceParent.completedLoops,p=new pc.Color(g.r*$,g.g*$,g.b*$,g.a*$),a=new pc.Color(a.$clone().r+p.r,a.$clone().g+p.g,a.$clone().b+p.b,a.$clone().a+p.a));var y=DG.Tweening.Core.Easing.EaseManager.Evaluate(t.easeType,t.customEase,s,l,t.easeOvershootOrAmplitude,t.easePeriod);if(!e.alphaOnly)return a.r+=o.r*y,a.g+=o.g*y,a.b+=o.b*y,a.a+=o.a*y,void r(a.$clone());var f=i().$clone();f.a=a.a+o.a*y,r(f.$clone())}},overloads:{"SetFrom(TweenerCore<Color, Color, ColorOptions>, bool)":"SetFrom$1"}});var n=Bridge.setMetadata,i=["System","DG.Tweening"];n("DG.Tweening.Core.DOTweenSettings.ModulesSetup",(function(){return{at:[new System.SerializableAttribute]}}),i),n("DG.Tweening.Core.DOTweenSettings.SafeModeOptions",(function(){return{at:[new System.SerializableAttribute]}}),i),n("DG.Tweening.Plugins.Core.PathCore.Path",(function(){}),i),n("DG.Tweening.Core.DOTweenComponent",(function(){}),i)})),Bridge.assembly("UnityScriptsCompiler",(function(e,t){Bridge.define("AutoOrientation",{inherits:[UnityEngine.MonoBehaviour],methods:{Start:function(){UnityEngine.Debug.Log$1(System.String.format("Screen.width = {0}",[Bridge.box(UnityEngine.Screen.width,System.Int32)])),UnityEngine.Debug.Log$1(System.String.format("Screen.width = {0}",[Bridge.box(UnityEngine.Screen.height,System.Int32)])),UnityEngine.Screen.width>UnityEngine.Screen.height?UnityEngine.Debug.Log$1("这是横屏"):UnityEngine.Debug.Log$1("这是竖屏")},Update:function(){}}}),Bridge.define("DG.Tweening.DOTweenModuleUI",{statics:{methods:{DOFade$2:function(e,t,n){var i=DG.Tweening.DOTween.ToAlpha((function(){return e.color}),(function(t){e.color=t.$clone()}),t,n);return DG.Tweening.TweenSettingsExtensions.SetTarget(DG.Tweening.Core.TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),i,e),i},DOFade$4:function(e,t,n){var i=DG.Tweening.DOTween.ToAlpha((function(){return e.color}),(function(t){e.color=t.$clone()}),t,n);return DG.Tweening.TweenSettingsExtensions.SetTarget(DG.Tweening.Core.TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),i,e),i}}}}),Bridge.define("DG.Tweening.DOTweenModuleUtils",{statics:{fields:{_initialized:!1},methods:{Init:function(){DG.Tweening.DOTweenModuleUtils._initialized||(DG.Tweening.DOTweenModuleUtils._initialized=!0,DG.Tweening.Core.DOTweenExternalCommand.addSetOrientationOnPath(DG.Tweening.DOTweenModuleUtils.Physics.SetOrientationOnPath))}}}}),Bridge.define("DG.Tweening.DOTweenModuleUtils.Physics",{$kind:1002,statics:{methods:{}}}),Bridge.define("GuruClient.ALevel",{fields:{level:0,type:0,psdID:null,gameGeneration:null,gameHash:null,thumbnailBadGeneration:null,thumbnailFinishGeneration:null,dateTime:null,pass:!1,unlockStar:0,unlockCoin:0,animType:0,tags:null},ctors:{init:function(){this.animType=2}},methods:{}}),Bridge.define("GuruClient.APatch",{fields:{name:null,pos1:null,pos:null,stage:0,sub_stage:0,tag:null},ctors:{init:function(){this.pos1=new UnityEngine.Vector2}},methods:{isValid:function(){return!System.String.isNullOrEmpty(this.name)&&!System.String.isNullOrEmpty(this.tag)},SetName:function(e){this.name=e},IsPatch:function(){return Bridge.referenceEquals(this.tag,"patch")},IsLine:function(){return Bridge.referenceEquals(this.tag,"line")}}}),Bridge.define("GuruClient.ConfigManager",{statics:{fields:{_instance:null},props:{Instance:{get:function(){return null==GuruClient.ConfigManager._instance&&(GuruClient.ConfigManager._instance=new GuruClient.ConfigManager),GuruClient.ConfigManager._instance}}}},fields:{_levelPoolList:null,_levelPoolDict:null,_dailyLevelPoolList:null,_dailyLevelPoolDict:null,_mainlineDBList:null,_mainlineDBDict:null,_dailyLevelsDBList:null,_dailyLevelsDBDict:null,_dailyDT2Level:null,version:null,challengeConfigLoaded:!1},ctors:{init:function(){this._levelPoolList=new(System.Collections.Generic.List$1(GuruClient.ALevel).ctor),this._levelPoolDict=new(System.Collections.Generic.Dictionary$2(System.String,GuruClient.ALevel).ctor),this._dailyLevelPoolList=new(System.Collections.Generic.List$1(GuruClient.ALevel).ctor),this._dailyLevelPoolDict=new(System.Collections.Generic.Dictionary$2(System.String,GuruClient.ALevel).ctor),this._mainlineDBList=new(System.Collections.Generic.List$1(GuruClient.ALevel).ctor),this._mainlineDBDict=new(System.Collections.Generic.Dictionary$2(System.String,GuruClient.ALevel).ctor),this._dailyLevelsDBList=new(System.Collections.Generic.List$1(GuruClient.ALevel).ctor),this._dailyLevelsDBDict=new(System.Collections.Generic.Dictionary$2(System.String,GuruClient.ALevel).ctor),this._dailyDT2Level=new(System.Collections.Generic.Dictionary$2(System.String,GuruClient.ALevel).ctor),this.version="",this.challengeConfigLoaded=!1}},methods:{GetLevel:function(e,t,n,i){void 0===n&&(n=""),void 0===i&&(i=!1);var r=new GuruClient.ALevel;return r.psdID="395",r.level=1,r.type=GuruClient.LevelType.MainLine,r.tags="",UnityEngine.Debug.Log$1((System.String.format("获取 GetLevel 失败,未找到 psd_id=",null)||"")+(e||"")),r},ParsePatches:function(e){var t;new(System.Collections.Generic.Dictionary$2(System.String,GuruClient.APatch).ctor),UnityEngine.Debug.Log$1(e);var n=GuruClient.Utility.Json.Deserialize(System.Collections.Generic.Dictionary$2(System.String,GuruClient.APatch),e);t=Bridge.getEnumerator(n);try{for(;t.moveNext();){var i=t.Current;i.value.SetName(i.key)}}finally{Bridge.is(t,System.IDisposable)&&t.System$IDisposable$Dispose()}return n}}}),Bridge.define("GuruClient.Coroutiner",{inherits:[UnityEngine.MonoBehaviour],statics:{fields:{_instance:null},props:{Instance:{get:function(){return GuruClient.Coroutiner._instance}}},methods:{Start:function(e){return GuruClient.Coroutiner.Instance.StartCoroutine$1(e)}}},methods:{Start:function(){GuruClient.Coroutiner._instance=this}}}),Bridge.define("GuruClient.EmptyImage",{inherits:[UnityEngine.UI.Image],methods:{OnPopulateMesh:function(e){e.Clear()}}}),Bridge.define("GuruClient.EventManager",{statics:{fields:{_instance:null},ctors:{init:function(){this._instance=new GuruClient.EventManager}},methods:{AddListenner:function(e,t){GuruClient.EventManager._instance.AddEventHandler(e,t)},Dispatch$1:function(e,t){GuruClient.EventManager._instance.FireEvent(e,t)},Dispatch:function(e){GuruClient.EventManager.Dispatch$1(e,null)}}},fields:{_handlerDict:null},ctors:{init:function(){this._handlerDict=new(System.Collections.Generic.Dictionary$2(System.String,Function).ctor)}},methods:{AddEventHandler:function(e,t){Bridge.staticEquals(t,null)||(this._handlerDict.containsKey(e)?this._handlerDict.setItem(e,Bridge.fn.combine(this._handlerDict.getItem(e),t)):this._handlerDict.add(e,t))},FireEvent:function(e,t){if(this._handlerDict.containsKey(e)){var n=this._handlerDict.getItem(e);Bridge.staticEquals(n,null)||n(t)}}}}),Bridge.define("GuruClient.GameDefine.Game",{$kind:1002,statics:{fields:{PATCH_SIZE_MAX:null,PATCH_SIZE_MIN:null,PATCH_SPAN:0,PATCH_PADDING:0,FINGER_OFFSET:0,ANIMATION_DURATION:0,DAILY_FIRST_TIME:null},ctors:{init:function(){this.PATCH_SIZE_MAX=new UnityEngine.Vector2,this.PATCH_SIZE_MIN=new UnityEngine.Vector2,this.DAILY_FIRST_TIME=System.DateTime.getDefaultValue(),this.PATCH_SIZE_MAX=new pc.Vec2(300,148),this.PATCH_SIZE_MIN=new pc.Vec2(150,74),this.PATCH_SPAN=34,this.PATCH_PADDING=20,this.FINGER_OFFSET=50,this.ANIMATION_DURATION=.5,this.DAILY_FIRST_TIME=System.DateTime.create(2023,1,1)}}}}),Bridge.define("GuruClient.GameManager",{inherits:[UnityEngine.MonoBehaviour],statics:{fields:{_instance:null},props:{Instance:{get:function(){return GuruClient.GameManager._instance}}}},fields:{maxLives1:0,maxLives2:0,maxLives3:0,UICamera:null,PatchPool:null,_poolInited:!1,_model:null,uiGameView:null,uiGameWin:null,patchTemplate:null,_stageAllPatch:null,_stageAllLine:null,_stageCompletePatch:null,_needAutoPatch:null,_finishAutoPatch:null,_recoverPatch:null,_canDragging:!1,_isStageCross:!1,_isGameWin:!1,curStartMode:0,_curBPlay:0,Operator:null,_levelDuration:0,_levelDurationStep:0,isOrientationPortrait:!1},ctors:{init:function(){this.maxLives1=3,this.maxLives2=3,this.maxLives3=3,this._poolInited=!1,this._stageAllPatch=new(System.Collections.Generic.List$1(GuruClient.APatch).ctor),this._stageAllLine=new(System.Collections.Generic.List$1(GuruClient.APatch).ctor),this._stageCompletePatch=new(System.Collections.Generic.List$1(GuruClient.APatch).ctor),this._needAutoPatch=new(System.Collections.Generic.List$1(GuruClient.APatch).ctor),this._finishAutoPatch=new(System.Collections.Generic.List$1(GuruClient.APatch).ctor),this._recoverPatch=new(System.Collections.Generic.List$1(GuruClient.APatch).ctor),this._canDragging=!1,this._isStageCross=!1,this._isGameWin=!1,this.isOrientationPortrait=!0}},methods:{Start:function(){GuruClient.GameManager._instance=this,UnityEngine.Screen.width>UnityEngine.Screen.height?(UnityEngine.Debug.Log$1("这是横屏"),this.isOrientationPortrait=!0):(UnityEngine.Debug.Log$1("这是竖屏"),this.isOrientationPortrait=!1),GuruClient.GameManager.Instance.InitPatchPool(),this._model=new GuruClient.GameModel,this._model.InitializeLevel("395",GuruClient.StartMode.Continue,GuruClient.LevelType.MainLine)&&(UnityEngine.Debug.Log$1("关卡初始化成功"),this._model.LoadAllPatches(),UnityEngine.Debug.Log$1("关卡拼图加载成功"),this.uiGameView.StartGame())},InitPatchPool:function(){this._poolInited||(this.PatchPool=GuruClient.GameObjectPool.CreatePool(this.patchTemplate,50,!1),this._poolInited=!0)},GetModel:function(){return this._model},StartStage:function(){this._model.GetCurrentStage()>1||this._model.GetCurrentStep()>0||this._stageCompletePatch.Count>0?this.ToNextLevel(!0):this.ToNextLevel(!1)},ToNextLevel$1:function(){this.ToNextLevel(!1)},ToNextLevel:function(e){e?this.uiGameView.LoadAutoPatches(this._recoverPatch,!1,!0):(this._model.SetCurrentStage(this._model.GetCurrentStage()+1|0),this._model.SetCurrentStep(0),this._stageCompletePatch.clear()),this._stageAllPatch.clear(),this._stageAllLine.clear(),this._needAutoPatch.clear(),this._finishAutoPatch.clear();var t=this._model.GetCurrentStage(),n=this._model.GetStageAllPatch(t);null!=n&&(this._stageAllPatch=n),null!=(n=this._model.GetLineAllPatch(t))&&(this._stageAllLine=n),null!=(n=this._model.GetAutoAllPatch(t))&&(this._needAutoPatch=n),this._finishAutoPatch.add(this._model.GetFinishPatch()),this._stageAllPatch.Count>0?this.LoadLevel(e,null):this.CompletePage(null),this._isStageCross=!1},CompletePage:function(e){if(UnityEngine.MonoBehaviour.op_Inequality(this.uiGameView,null))try{this.uiGameView.LoadRole(!0,!1,e),GuruClient.Timer.Instance.SetTimeoutAsync(2,Bridge.fn.bind(this,(function(){this.GameWin()})))}catch(e){e=System.Exception.create(e),UnityEngine.Debug.Log(e)}},GameWin:function(){this._isGameWin||(this._isGameWin=!0,this.uiGameWin.SetActive(!0),this.uiGameWin.GetComponent(GuruClient.UIGameWin).OnBeforStart(this._model.GetCurrentLevel()))},LoadLevel:function(e,t){this._canDragging=!1,UnityEngine.MonoBehaviour.op_Inequality(this.uiGameView,null)&&(e||GuruClient.Timer.Instance.SetTimeoutAsync(.5,t),UnityEngine.MonoBehaviour.op_Inequality(this.uiGameView,null)&&((1===this._model.GetCurrentStage()||e)&&this.uiGameView.LoadBg(t),this.LoadLevelInner(e,t)))},LoadLevelInner:function(e,t){this.uiGameView.LoadRole(e,!1,t),this.LoadLineTemplate(e,null)},LoadLineTemplate:function(e,t){UnityEngine.MonoBehaviour.op_Inequality(this.uiGameView,null)&&(this.uiGameView.LoadLineTemplate(t),this.InitPatches(e))},CanDragging:function(){return this._canDragging},InitPatches:function(e){var t=this._model.IsShowCurrentPatche();1===this._model.GetCurrentStage()||e||t?UnityEngine.MonoBehaviour.op_Inequality(this.uiGameView,null)&&this.uiGameView.InitPatches(t?this._model.GetCurrentStage():-1,Bridge.fn.bind(this,(function(){this._canDragging=!0,this.uiGameView.ShowTips(!0)}))):this._canDragging=!0,e&&this.CheckNextLevel(),GuruClient.EventManager.Dispatch("START_NEXT_LEVEL")},AddScore:function(e){return this.LevelDurationStepUpdate(),this._model.SetCurrentStep(this._model.GetCurrentStep()+1|0),this._model.AddTotalStep(),this._model.AddCompletePatchCount(1),this._stageCompletePatch.add(e),this._stageCompletePatch.Count},IsCompleteStage:function(){return this._stageAllPatch.Count===this._stageCompletePatch.Count&&0!==this._stageAllPatch.Count},LevelDurationStepUpdate:function(){this._levelDurationStep=this._levelDurationStep+1|0},GetOneUnCompletePatch:function(){var e,t=System.Linq.Enumerable.from(this._stageAllPatch,GuruClient.APatch).except(this._stageCompletePatch);e=Bridge.getEnumerator(t,GuruClient.APatch);try{for(;e.moveNext();)return e.Current}finally{Bridge.is(e,System.IDisposable)&&e.System$IDisposable$Dispose()}return new GuruClient.APatch},IsCompletedPatch:function(e){return this._stageCompletePatch.contains(e)},GetCurrentStageLineData:function(){return this._stageAllLine},CheckNextLevel:function(e){if(void 0===e&&(e=-1),!this._isStageCross&&(-1===e?this._model.GetCurrentStep():e)>=this._stageAllPatch.Count)if(this._isStageCross=!0,UnityEngine.MonoBehaviour.op_Inequality(this.uiGameView,null)&&this.uiGameView.RemoveLineTemplate(null),this._needAutoPatch.Count>0){if(UnityEngine.MonoBehaviour.op_Inequality(this.uiGameView,null)&&UnityEngine.MonoBehaviour.op_Inequality(this.uiGameView,null)){var t=this._model.GetCurrentStage();null==this._model.GetStageAllPatch(t+1|0)?this.uiGameView.LoadAutoPatches(this._needAutoPatch,!1,!1,Bridge.fn.bind(this,(function(){this.ToNextLevel$1()}))):(this.uiGameView.LoadAutoPatches(this._needAutoPatch),this.ToNextLevel$1())}}else this.ToNextLevel$1()}},overloads:{"ToNextLevel()":"ToNextLevel$1"}}),Bridge.define("GuruClient.GameModel",{fields:{_aLevel:null,_startMode:0,_patchDB:null,_operablePatch:null,_stageAllPatch:null,_autoAllPatch:null,_lineAllPatch:null,_finishPatch:null,_completePatchCount:0,_currStage:0,_currStep:0,_totalStep:0},ctors:{init:function(){this._patchDB=new(System.Collections.Generic.Dictionary$2(System.String,GuruClient.APatch).ctor),this._operablePatch=new(System.Collections.Generic.List$1(GuruClient.APatch).ctor),this._stageAllPatch=new(System.Collections.Generic.Dictionary$2(System.String,System.Collections.Generic.List$1(GuruClient.APatch)).ctor),this._autoAllPatch=new(System.Collections.Generic.Dictionary$2(System.String,System.Collections.Generic.List$1(GuruClient.APatch)).ctor),this._lineAllPatch=new(System.Collections.Generic.Dictionary$2(System.String,System.Collections.Generic.List$1(GuruClient.APatch)).ctor),this._finishPatch=new GuruClient.APatch,this._currStage=0,this._currStep=0,this._totalStep=0}},methods:{InitializeLevel:function(e,t,n){return this._aLevel=GuruClient.ConfigManager.Instance.GetLevel(e,n),null!=this._aLevel&&(this._startMode=t,!0)},LoadAllPatches:function(){var e=UnityEngine.Resources.Load(UnityEngine.TextAsset,"Levels/395/PatchDB");return null!=e&&(this._patchDB=GuruClient.ConfigManager.Instance.ParsePatches(e.text),this.ParsePatches(),this.FilterOperablePatch(),!0)},ParsePatches:function(){var e;this._stageAllPatch.clear(),this._autoAllPatch.clear(),this._lineAllPatch.clear(),this._finishPatch=new GuruClient.APatch;var t=this.GetPatchDB();e=Bridge.getEnumerator(t);try{for(;e.moveNext();){var n={v:e.Current};switch(n.v.value.tag){case"patch":var i={};this._stageAllPatch.tryGetValue(Bridge.toString(n.v.value.stage),i)?i.v.add(n.v.value):(i.v=function(e,t){return function(e){return e.add(t.v.value),e}}(0,n)(new(System.Collections.Generic.List$1(GuruClient.APatch).ctor)),this._stageAllPatch.setItem(Bridge.toString(n.v.value.stage),i.v));break;case"auto":var r={};this._autoAllPatch.tryGetValue(Bridge.toString(n.v.value.stage),r)?r.v.add(n.v.value):(r.v=function(e,t){return function(e){return e.add(t.v.value),e}}(0,n)(new(System.Collections.Generic.List$1(GuruClient.APatch).ctor)),this._autoAllPatch.setItem(Bridge.toString(n.v.value.stage),r.v));break;case"line":var s={};this._lineAllPatch.tryGetValue(Bridge.toString(n.v.value.stage),s)?s.v.add(n.v.value):(s.v=function(e,t){return function(e){return e.add(t.v.value),e}}(0,n)(new(System.Collections.Generic.List$1(GuruClient.APatch).ctor)),this._lineAllPatch.setItem(Bridge.toString(n.v.value.stage),s.v));break;case"finish":this._finishPatch=n.v.value}}}finally{Bridge.is(e,System.IDisposable)&&e.System$IDisposable$Dispose()}},GetPatchDB:function(){return this._patchDB},FilterOperablePatch:function(){var e,t;if(this._operablePatch.clear(),1===this._aLevel.level&&this._aLevel.type===GuruClient.LevelType.MainLine){e=Bridge.getEnumerator(this._patchDB);try{for(;e.moveNext();){var n=e.Current;System.String.contains(n.key,"patch_")&&this._operablePatch.add(n.value)}}finally{Bridge.is(e,System.IDisposable)&&e.System$IDisposable$Dispose()}}else{t=Bridge.getEnumerator(this._patchDB);try{for(;t.moveNext();){var i=t.Current;System.String.contains(i.key,"patch_")&&this._operablePatch.insert(idx,i.value)}}finally{Bridge.is(t,System.IDisposable)&&t.System$IDisposable$Dispose()}}},GetCurrentStage:function(){return this._currStage},GetCurrentStep:function(){return this._currStep},GetCurrentLevel:function(){return this._aLevel},SetCurrentStage:function(e){this._currStage=e,GuruClient.EventManager.Dispatch("UPDATE_PROGRESS_DOT")},SetCurrentStep:function(e){this._currStep=e},GetStageAllPatch:function(e){var t={};return this._stageAllPatch.tryGetValue(Bridge.toString(e),t)?t.v:null},GetLineAllPatch:function(e){var t={};return this._lineAllPatch.tryGetValue(Bridge.toString(e),t)?t.v:null},GetAutoAllPatch:function(e){var t={};return this._autoAllPatch.tryGetValue(Bridge.toString(e),t)?t.v:null},GetFinishPatch:function(){return this._finishPatch},IsHideLineWhenPatched:function(){return!0},IsShowCurrentPatche:function(){return!1},AddTotalStep:function(){this._totalStep=this._totalStep+1|0},AddCompletePatchCount:function(e){this._completePatchCount=this._completePatchCount+e|0,GuruClient.EventManager.Dispatch("UPDATE_PROGRESS")},IsCompleteByPatch:function(){return this._operablePatch.Count===this._totalStep&&0!==this._totalStep},GetOperablePatch:function(){return this._operablePatch},GetTotalPatchCount:function(){return this._operablePatch.Count},GetCompletePatchCount:function(){return this._completePatchCount},GetStageProgress:function(){return{Item1:0===this._currStage?1:this._currStage,Item2:this._stageAllPatch.Count}}}}),Bridge.define("GuruClient.GameObjectPool",{statics:{methods:{CreatePool:function(e,t,n){void 0===t&&(t=10),void 0===n&&(n=!1);var i=new GuruClient.GameObjectPool;return i._prefab=e,i._capacity=t,i._cache=new(System.Collections.Generic.Stack$1(UnityEngine.GameObject).$ctor2)(t),i._tmpList=new(System.Collections.Generic.List$1(UnityEngine.GameObject).ctor),i._activeObj=new(System.Collections.Generic.Dictionary$2(System.Int32,UnityEngine.GameObject).ctor),i._root=new UnityEngine.GameObject.$ctor2((e.name||"")+" [Pool]").transform,i._root.gameObject.SetActive(!1),n&&GuruClient.GameObjectPool.PreLoad(i),i}}},fields:{_capacity:0,_prefab:null,_root:null,_cache:null,_activeObj:null,_tmpList:null,_onInit:null,_onRecycle:null},ctors:{init:function(){this._capacity=10},ctor:function(){this.$initialize()}},methods:{OnInit:function(e){this._onInit=e},GetObj:function(e,t){void 0===e&&(e=null),void 0===t&&(t=!0);var n=null;this._cache.Count<=0?n=UnityEngine.Object.Instantiate(UnityEngine.GameObject,this._prefab):(n=this._cache.Pop(),UnityEngine.GameObject.op_Equality(n,null)&&(n=UnityEngine.Object.Instantiate(UnityEngine.GameObject,this._prefab)));var i=n.getHashCode();return this._activeObj.setItem(i,n),n.transform.SetParent(e,t),n.activeSelf||n.SetActive(!0),n.transform.localScale=new pc.Vec3(1,1,1),!Bridge.staticEquals(this._onInit,null)&&this._onInit(n),n},RecycleObj:function(e){if(UnityEngine.GameObject.op_Equality(e,null))return!1;var t=e.getHashCode();return this._activeObj.containsKey(t)&&this._activeObj.remove(t),this._cache.Count<this._capacity?(!Bridge.staticEquals(this._onRecycle,null)&&this._onRecycle(e),this._cache.Push(e),e.transform.SetParent(this._root),!0):(UnityEngine.Object.Destroy(e),!1)}}}),Bridge.define("GuruClient.GuruScrollRect",{inherits:[UnityEngine.UI.ScrollRect],fields:{onBeginDrag:null},alias:["OnBeginDrag","UnityEngine$EventSystems$IBeginDragHandler$OnBeginDrag"],methods:{OnBeginDrag:function(e){UnityEngine.UI.ScrollRect.prototype.OnBeginDrag.call(this,e),Bridge.staticEquals(this.onBeginDrag,null)||this.onBeginDrag()}}}),Bridge.define("GuruClient.LevelType",{$kind:6,statics:{fields:{None:0,MainLine:1,Daily:2,Story:3,UA:4,Activity:5}}}),Bridge.define("GuruClient.Patche",{inherits:[UnityEngine.MonoBehaviour,UnityEngine.EventSystems.IBeginDragHandler,UnityEngine.EventSystems.IDragHandler,UnityEngine.EventSystems.IEndDragHandler],fields:{imgBody:null,_scale:0,_sizeDelta:null,originalPos:null,originalOrder:0,originalDataOrder:0,_targetPos:null,_targetPosConverted:null,isMatch:!1,mouseWorld:null,threshold:0,state:0,step:0,tnthreshold:0,_uiGameView:null,_aPatch:null,_touchOriginPos:null,_isShow:!1,dragDXScale:0,dragDYScale:0,_moveTime:0,_mat:null,_effectTimerCoroutine:null},alias:["OnBeginDrag","UnityEngine$EventSystems$IBeginDragHandler$OnBeginDrag","OnDrag","UnityEngine$EventSystems$IDragHandler$OnDrag","OnEndDrag","UnityEngine$EventSystems$IEndDragHandler$OnEndDrag"],ctors:{init:function(){this._sizeDelta=new UnityEngine.Vector2,this.originalPos=new UnityEngine.Vector3,this._targetPos=new UnityEngine.Vector3,this._targetPosConverted=new UnityEngine.Vector3,this.mouseWorld=new UnityEngine.Vector3,this._touchOriginPos=new UnityEngine.Vector3,this.isMatch=!1,this.threshold=40,this.state=GuruClient.PatchStatus.None,this.step=1.5,this.tnthreshold=120,this._moveTime=.5}},methods:{Init:function(){this.isMatch=!1,this.state=GuruClient.PatchStatus.None,this.tnthreshold=120,this.imgBody.transform.localScale=new pc.Vec3(1,1,1),this.imgBody.transform.localPosition=pc.Vec3.ZERO.clone(),this.imgBody.GetComponent(UnityEngine.RectTransform).sizeDelta=new pc.Vec2(300,148);var e=this.imgBody.GetComponent(UnityEngine.UI.Image);e.color=new pc.Color(e.color.r,e.color.g,e.color.b,1),this.dragDXScale=1.5,this.dragDYScale=1.7},SetData:function(e,t,n){this._uiGameView=e,this._aPatch=t,this._targetPos=new pc.Vec3(t.pos[0],t.pos[1],0),this.gameObject.name=t.name;var i=this.imgBody.GetComponent(UnityEngine.UI.Image),r=UnityEngine.Resources.Load(UnityEngine.Sprite,n);i.sprite=r,i.SetNativeSize(),this._sizeDelta=this.imgBody.GetComponent(UnityEngine.RectTransform).sizeDelta.$clone();var s=GuruClient.GameDefine.Game.PATCH_SIZE_MAX.x/this._sizeDelta.x,a=GuruClient.GameDefine.Game.PATCH_SIZE_MAX.y/this._sizeDelta.y,o=UnityEngine.Mathf.Min(s,a);o=Math.min(o,1),this._scale=o,this.imgBody.transform.localScale=new pc.Vec3(this._scale,this._scale,1);var l=this._uiGameView.puzzleBaseImg.gameObject.GetComponent(UnityEngine.RectTransform);this._targetPosConverted=new pc.Vec3(this._targetPos.x-l.sizeDelta.x/2,this._targetPos.y-l.sizeDelta.y/2,0)},GetData:function(){return this._aPatch},PositionedFinal:function(e){if(this.isMatch=!0,this._aPatch.IsLine()?this.transform.SetParent(this._uiGameView.puzzleBaseImgLines):this.transform.SetParent(this._uiGameView.puzzleBaseImg),this.imgBody.transform.localScale=new pc.Vec3(1,1,1),this.transform.localPosition=this._targetPosConverted.$clone(),!Bridge.referenceEquals(this._aPatch.tag,"role")&&e){var t=DG.Tweening.DOTween.Sequence();DG.Tweening.TweenSettingsExtensions.Append(t,DG.Tweening.ShortcutExtensions.DOScale$1(this.transform,new pc.Vec3(1.1,1.1,1.1),.1)),DG.Tweening.TweenSettingsExtensions.Append(t,DG.Tweening.ShortcutExtensions.DOScale$1(this.transform,new pc.Vec3(1,1,1),.1))}Bridge.referenceEquals(this._aPatch.tag,"line")||this._uiGameView.AddCompletePatche(this),this._uiGameView.SortPatched(),this._uiGameView.RemoveLine(this._aPatch)},GetConvertedTargetPos:function(){return this._targetPosConverted.$clone()},Update:function(){this.CheckComplete(!1)},CheckDrag:function(e,t){var n=!1;if(!this.isMatch)if(this._uiGameView.StopTips(),Math.abs(e.delta.y)-Math.abs(e.delta.x)>0&&e.position.y-e.pressPosition.y>25){if(this.originalDataOrder=this._uiGameView.OriginPatchObjs.indexOf(this.gameObject),-1===this.originalDataOrder)return!1;this.state=GuruClient.PatchStatus.Dragging;var i=this._uiGameView.puzzleBaseImg.gameObject.GetComponent(UnityEngine.RectTransform),r=GuruClient.Utility.ScreenPointToUILocalPoint(i,UnityEngine.Vector2.FromVector3(UnityEngine.Input.mousePosition.$clone()));this.originalOrder=this.transform.GetSiblingIndex(),this.transform.SetParent(this._uiGameView.puzzleWhole),this._uiGameView.OriginPatchObjs.removeAt(this.originalDataOrder),this.gameObject.transform.localPosition=new pc.Vec3(r.x,r.y+this._sizeDelta.y/2+GuruClient.GameDefine.Game.FINGER_OFFSET,0);var s=this.transform.position.$clone();this._touchOriginPos=UnityEngine.Vector3.FromVector2(r.$clone()),DG.Tweening.ShortcutExtensions.DOScale(this.imgBody.transform,1,this._moveTime),this._uiGameView.SortPatches(!0,null,!1),n=!0,DG.Tweening.ShortcutExtensions.DOKill(this.transform,!0),this.transform.position=s.$clone()}else t&&this._uiGameView.patchesScrollView.gameObject.GetComponent(UnityEngine.UI.ScrollRect).OnBeginDrag(e);return n},OnBeginDrag:function(e){this.CheckDrag(e,!0)},OnDrag:function(e){if(!this.isMatch){if(this.state===GuruClient.PatchStatus.Dragging){var t=this._uiGameView.puzzleBaseImg.gameObject.GetComponent(UnityEngine.RectTransform),n=GuruClient.Utility.ScreenPointToUILocalPoint(t,UnityEngine.Vector2.FromVector3(UnityEngine.Input.mousePosition.$clone())),i=(n.x-this._touchOriginPos.x)*this.dragDXScale,r=(n.y-this._touchOriginPos.y)*this.dragDYScale;this.gameObject.transform.localPosition=new pc.Vec3(this._touchOriginPos.x+i,this._touchOriginPos.y+r+this._sizeDelta.y/2+GuruClient.GameDefine.Game.FINGER_OFFSET,0)}this.state===GuruClient.PatchStatus.None&&(this.CheckDrag(e,!1)||this._uiGameView.patchesScrollView.gameObject.GetComponent(UnityEngine.UI.ScrollRect).OnDrag(e))}},OnEndDrag:function(e){this.isMatch?(this._uiGameView.ResizePatchesPool(),this._uiGameView.patchesScrollView.gameObject.GetComponent(UnityEngine.UI.ScrollRect).OnEndDrag(e)):this.state===GuruClient.PatchStatus.Dragging?(this.CheckComplete(!0),this._uiGameView.SortPatches(!0,null,!1)):this._uiGameView.patchesScrollView.gameObject.GetComponent(UnityEngine.UI.ScrollRect).OnEndDrag(e)},CheckComplete:function(e){if(!this.isMatch&&this.state===GuruClient.PatchStatus.Dragging){this._uiGameView.puzzleBaseImg.gameObject.GetComponent(UnityEngine.RectTransform);var t=UnityEngine.Vector2.FromVector3(this.transform.localPosition.$clone());if(GuruClient.GameManager.Instance.CanDragging()&&this._aPatch.stage===GuruClient.GameManager.Instance.GetModel().GetCurrentStage()&&Math.abs(t.x-this._targetPosConverted.x)<this.threshold&&Math.abs(t.y-this._targetPosConverted.y)<this.threshold){this.PositionedFinal(!0),this.state=GuruClient.PatchStatus.ShowEffect;var n=GuruClient.GameManager.Instance.AddScore(this._aPatch);GuruClient.EventManager.Dispatch("MATCH_ITEM_SUCCESS");var i=GuruClient.GameManager.Instance.IsCompleteStage(),r=GuruClient.GameManager.Instance.GetModel().IsCompleteByPatch();i&&!r&&GuruClient.EventManager.Dispatch("MATCH_STAGE_SUCCESS"),this.ShowEffect(!0,!1,(function(){GuruClient.GameManager.Instance.CheckNextLevel(n)}))}else e&&(DG.Tweening.ShortcutExtensions.DOScale(this.imgBody.transform,this._scale,this._moveTime),this.gameObject.transform.SetParent(this._uiGameView.patchesPool.transform),this.gameObject.transform.SetSiblingIndex(this.originalOrder),this.originalDataOrder>this._uiGameView.OriginPatchObjs.Count&&(this.originalDataOrder=this._uiGameView.OriginPatchObjs.Count),this._uiGameView.OriginPatchObjs.insert(this.originalDataOrder,this.gameObject),this.state=GuruClient.PatchStatus.None)}},GetOrder:function(){var e=0;switch(this._aPatch.tag){case"line":e=1e4;break;case"base":e=0;break;case"role":var t=GuruClient.GameManager.Instance.GetModel().GetCurrentStage();e=Bridge.Int.mul(t,100)+this._aPatch.sub_stage|0;break;default:e=Bridge.Int.mul(this._aPatch.stage,100)+this._aPatch.sub_stage|0}return e},EffecTimer:function(e,t,n){var i,r,s,a=0,o=new Bridge.GeneratorEnumerator(Bridge.fn.bind(this,(function(){try{for(;;)switch(a){case 0:void 0===t&&(t=null),void 0===n&&(n=1),i=this._aPatch.IsPatch()&&!e?120:100,r=-20,this.tnthreshold=this._isShow?i:r,a=1;continue;case 1:a=2;continue;case 2:if(null==this._mat){a=4;continue}if(this._mat.SetFloat$1("_Threshold",this.tnthreshold%120/100),this._isShow?this.tnthreshold=this.tnthreshold-this.step*n:this.tnthreshold=this.tnthreshold+this.step*n,this._isShow&&this.tnthreshold<r||!this._isShow&&this.tnthreshold>=100){s=this.imgBody.GetComponent(UnityEngine.UI.Image),UnityEngine.Object.op_Implicit(s)&&(s.material=null),this.DestroyMat(),this.state=GuruClient.PatchStatus.Matched,a=4;continue}return o.current=null,a=3,!0;case 3:a=1;continue;case 4:!Bridge.staticEquals(t,null)&&t();default:return!1}}catch(e){throw System.Exception.create(e)}})));return o},ShowEffect:function(e,t,n,i,r){void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),void 0===i&&(i=1),void 0===r&&(r=null),this._isShow=e,this.ShowFadeInner(e,t,Bridge.fn.bind(this,(function(){this.state=GuruClient.PatchStatus.Matched,!Bridge.staticEquals(n,null)&&n(),!Bridge.staticEquals(r,null)&&r()})))},DestroyMat:function(){null!=this._mat&&(UnityEngine.Object.Destroy(this._mat),this._mat=null)},ShowFade:function(e,t,n){void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),this.ShowFadeInner(e,t,null,n)},ShowFadeInner:function(e,t,n,i){void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),void 0===i&&(i=null);var r=this.imgBody.GetComponent(UnityEngine.UI.Image);r.color=new pc.Color(r.color.r,r.color.g,r.color.b,e?0:1),DG.Tweening.TweenSettingsExtensions.OnComplete(DG.Tweening.Core.TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),DG.Tweening.DOTweenModuleUI.DOFade$2(r,e?1:0,.75),(function(){!Bridge.staticEquals(n,null)&&n(),!Bridge.staticEquals(i,null)&&i()}))}}}),Bridge.define("GuruClient.PatchStatus",{$kind:6,statics:{fields:{None:0,Dragging:1,ShowEffect:2,Matched:3}}}),Bridge.define("GuruClient.StartMode",{$kind:6,statics:{fields:{Continue:0,Replay:1,View:2}}}),Bridge.define("GuruClient.Timer",{statics:{fields:{_instance:null},props:{Instance:{get:function(){return null==GuruClient.Timer._instance&&(GuruClient.Timer._instance=new GuruClient.Timer),GuruClient.Timer._instance}}}},fields:{id:0,timerMap:null},ctors:{init:function(){this.id=0,this.timerMap=new(System.Collections.Generic.Dictionary$2(System.Int32,UnityEngine.Coroutine).ctor)}},methods:{SetTimeout:function(e,t){this.id=this.id+1|0;var n=GuruClient.Coroutiner.Start(this.TimeoutCallback(e,t));return this.timerMap.setItem(this.id,n),this.id},SetTimeoutAsync:function(e,t){var n=this.SetTimeout(e,(function(){!Bridge.staticEquals(t,null)&&t()}));Bridge.fn.bind(this,(function(){this.Stop(n)}))},TimeoutCallback:function(e,t){var n=0,i=new Bridge.GeneratorEnumerator(Bridge.fn.bind(this,(function(){try{for(;;)switch(n){case 0:return i.current=new UnityEngine.WaitForSeconds(e),n=1,!0;case 1:!Bridge.staticEquals(t,null)&&t();default:return!1}}catch(e){throw System.Exception.create(e)}})));return i}},overloads:{"SetInterval(WaitForSeconds, Action)":"SetInterval$1","IntervalCallback(WaitForSeconds, Action)":"IntervalCallback$1"}}),Bridge.define("GuruClient.UIGameView",{inherits:[UnityEngine.MonoBehaviour],fields:{patchesScrollView:null,sldLevelProgress:null,tipsFinger:null,sr:null,txtProgress:null,patchTemplate:null,puzzleWhole:null,puzzleBaseImg:null,puzzleBaseImgLines:null,patchesPool:null,btnBack:null,btnTips:null,btnDebugDrag:null,noiseTexture:null,objStageWinFx:null,objDotProgress:null,_gameModel:null,_myTipsSequence:null,_completePatche:null,_roleTemplate:null,_fingerUpTime:0,_autoTipsTimer:0,_levelDurationTimer:0,_autoPlayTimer:0,_lastMatchTime:0,_hasGuide:!1,_isFirstRefresh:!1,_hasStartDownloadNextLevel:!1,_patchObjs:null,OriginPatchObjs:null,_moveTime:0},ctors:{init:function(){this._completePatche=new(System.Collections.Generic.List$1(GuruClient.Patche).ctor),this._fingerUpTime=0,this._autoPlayTimer=0,this._hasGuide=!1,this._isFirstRefresh=!0,this._hasStartDownloadNextLevel=!1,this._patchObjs=new(System.Collections.Generic.Dictionary$2(System.String,UnityEngine.GameObject).ctor),this.OriginPatchObjs=new(System.Collections.Generic.List$1(UnityEngine.GameObject).ctor),this._moveTime=.5}},methods:{Awake:function(){GuruClient.EventManager.AddListenner("UPDATE_PROGRESS",Bridge.fn.cacheBind(this,this.UpdateProgress)),GuruClient.EventManager.AddListenner("START_NEXT_LEVEL",Bridge.fn.cacheBind(this,this.OnNextLevel)),GuruClient.EventManager.AddListenner("UPDATE_PROGRESS_DOT",Bridge.fn.cacheBind(this,this.UpdateProgressDot)),this.btnTips.GetComponent(UnityEngine.UI.Button).onClick.AddListener(Bridge.fn.bind(this,(function(){this.ShowTips(!0)})))},Start:function(){},StartGame:function(){this._gameModel=GuruClient.GameManager.Instance.GetModel(),GuruClient.GameManager.Instance.PatchPool.OnInit((function(e){var t=e.GetComponent(GuruClient.Patche);UnityEngine.MonoBehaviour.op_Inequality(t,null)&&t.Init()})),GuruClient.GameManager.Instance.StartStage(),this.UpdateProgress()},AddCompletePatche:function(e){this._completePatche.add(e)},GetPsdID:function(){if(null!=this._gameModel){var e=this._gameModel.GetCurrentLevel();if(null!=e)return e.psdID}return""},SortPatched:function(){if(this._completePatche.Count>1){this._completePatche.getItem(this._completePatche.Count-1|0).transform.SetSiblingIndex(this._completePatche.Count);for(var e=this._completePatche.Count-1|0;e>=0;e=e-1|0){var t=this._completePatche.getItem(e),n=null;if((e-1|0)>=0&&(n=this._completePatche.getItem(e-1|0)),UnityEngine.MonoBehaviour.op_Inequality(n,null)){if(!(n.GetOrder()>t.GetOrder()))break;var i=n;this._completePatche.setItem(e-1|0,t),this._completePatche.setItem(e,i)}}}for(var r=0;r<this._completePatche.Count;r=r+1|0)this._completePatche.getItem(r).transform.SetSiblingIndex(this._completePatche.getItem(r).GetOrder())},RemoveLine:function(e){if(this._gameModel.IsHideLineWhenPatched()&&e.IsPatch()){var t=System.String.replaceAll(e.name,"patch","line"),n=this.puzzleBaseImgLines.Find(t);this.RemoveALine(n)}},UpdateProgress:function(e){void 0===e&&(e=null),this.txtProgress.text=this._gameModel.GetCompletePatchCount()+"/"+this._gameModel.GetTotalPatchCount(),this.sldLevelProgress.value=this._gameModel.GetCurrentStep()},UpdateProgressDot:function(e){void 0===e&&(e=null);var t=this._gameModel.GetStageProgress();if(!(t.Item2<=1))for(var n=this.objDotProgress.transform.childCount,i=this.objDotProgress.transform.GetChild(0).gameObject,r=0;r<t.Item2;r=r+1|0){var s;(s=r<n?this.objDotProgress.transform.GetChild(r).gameObject:UnityEngine.Object.Instantiate(UnityEngine.GameObject,i,this.objDotProgress.transform)).SetActive(!0),r<(t.Item1-1|0)?s.transform.Find("Dot").gameObject.SetActive(!0):s.transform.Find("Dot").gameObject.SetActive(!1)}},LoadAutoPatches:function(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===i&&(i=null);for(var r=0;r<e.Count;r=r+1|0){var s=e.getItem(r),a=GuruClient.GameManager.Instance.PatchPool.GetObj(this.puzzleBaseImg).GetComponent(GuruClient.Patche),o=t?"Texture":"Atlas",l=System.String.format("Levels/{0}/{1}/{2}",this.GetPsdID(),o,s.name);a.SetData(this,s,l),a.PositionedFinal(!1),0===r?a.ShowEffect(!0,n,null,1,i):a.ShowEffect(!0,n,null,1,null)}0===e.Count&&GuruClient.Timer.Instance.SetTimeout(.05,(function(){!Bridge.staticEquals(i,null)&&i()}))},LoadBg:function(e){UnityEngine.Debug.Log$1("加载背景 开始");var t=this._gameModel.GetPatchDB().getItem(System.String.format("base",null));UnityEngine.Debug.Log$1("加载背景 step 1");var n=GuruClient.GameManager.Instance.PatchPool.GetObj(this.puzzleBaseImg);n.transform.SetSiblingIndex(0),UnityEngine.Debug.Log$1("加载背景 step 2");var i=n.GetComponent(GuruClient.Patche),r=System.String.format("Levels/{0}/Texture/{1}",this.GetPsdID(),t.name);UnityEngine.Debug.Log$1("加载背景 step 3"),i.SetData(this,t,r),UnityEngine.Debug.Log$1("加载背景 step 4"),i.PositionedFinal(!1),UnityEngine.Debug.Log$1("加载背景 step 5"),i.ShowEffect(!0,!1,null,1,e),UnityEngine.Debug.Log$1("加载背景 成功")},LoadRole:function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=null);var i=this._gameModel.GetPatchDB(),r={v:new GuruClient.APatch},s=!1;if(e){for(var a=this._gameModel.GetCurrentStage();a>=0;a=a-1|0)if(i.tryGetValue(System.String.format("role_{0}",[Bridge.box(a-1|0,System.Int32)]),r)){s=!0;break}}else i.tryGetValue(System.String.format("role_{0}",[Bridge.box(this._gameModel.GetCurrentStage()-1|0,System.Int32)]),r)&&(s=!0);if(s){if(UnityEngine.GameObject.op_Inequality(this._roleTemplate,null)){var o=this._roleTemplate;this.ShowEffectInner(o,null)}var l=GuruClient.GameManager.Instance.PatchPool.GetObj(this.puzzleBaseImg);this._roleTemplate=l;var c=l.GetComponent(GuruClient.Patche);l.transform.SetSiblingIndex(r.v.sub_stage);var u=System.String.format("Levels/{0}/Texture/{1}_{2}",this.GetPsdID(),r.v.name,Bridge.box(r.v.sub_stage,System.Int32));c.SetData(this,r.v,u),c.PositionedFinal(!1),c.ShowFade(!0,!1,n)}!Bridge.staticEquals(n,null)&&n()},ShowEffectInner:function(e,t){e.GetComponent(GuruClient.Patche).ShowFade(!1,!1,Bridge.fn.bind(this,(function(){this._completePatche.remove(e.GetComponent(GuruClient.Patche)),GuruClient.GameManager.Instance.PatchPool.RecycleObj(e),!Bridge.staticEquals(t,null)&&t()})))},LoadLineTemplate:function(e){var t,n=GuruClient.GameManager.Instance.GetCurrentStageLineData();t=Bridge.getEnumerator(n);try{for(;t.moveNext();){var i=t.Current,r=this.puzzleBaseImg.Find(System.String.replaceAll(i.name,"line","patch"));if(UnityEngine.Component.op_Equality(r,null)){var s=GuruClient.GameManager.Instance.PatchPool.GetObj(this.puzzleBaseImgLines),a=s.GetComponent(GuruClient.Patche);s.transform.SetSiblingIndex(1e4);var o=System.String.format("Levels/{0}/Lines/{1}",this.GetPsdID(),i.name);a.SetData(this,i,o),a.PositionedFinal(!1),a.ShowEffect(!0,!1,null,1)}}}finally{Bridge.is(t,System.IDisposable)&&t.System$IDisposable$Dispose()}GuruClient.Timer.Instance.SetTimeoutAsync(1,e)},RemoveLineTemplate:function(e){if(this.puzzleBaseImgLines.childCount>0){for(var t=this.puzzleBaseImgLines.childCount-1|0;t>=0;t=t-1|0)this.RemoveALine(this.puzzleBaseImgLines.GetChild(t));GuruClient.Timer.Instance.SetTimeout(2,(function(){!Bridge.staticEquals(e,null)&&e()}))}else!Bridge.staticEquals(e,null)&&e()},RemoveALine:function(e){UnityEngine.Component.op_Inequality(e,null)&&this.RemoveALineInner(e,null)},RemoveALineInner:function(e,t){e.GetComponent(GuruClient.Patche).ShowEffect(!1,!1,null,1,t),UnityEngine.Object.DestroyImmediate(e.gameObject)},ShowTips:function(e){this.GetPsdID();var t=GuruClient.GameManager.Instance.GetOneUnCompletePatch();if(t.isValid()){for(var n=null,i=this.patchesPool.transform,r=this.OriginPatchObjs.Count,s=0;s<r;s=s+1|0){var a=this.OriginPatchObjs.getItem(s).transform,o=a.GetComponent(GuruClient.Patche).GetData();if(Bridge.equals(o,t)){n=a;break}}if(UnityEngine.Component.op_Inequality(n,null)){this.sr.StopMovement();var l=-n.localPosition.x+(0|Bridge.Int.div(UnityEngine.Screen.width,2));l=UnityEngine.Mathf.Min(l,0),i.parent.GetComponent(UnityEngine.RectTransform).sizeDelta.x>0&&(l=UnityEngine.Mathf.Max(l,-i.parent.GetComponent(UnityEngine.RectTransform).sizeDelta.x)),i.parent.localPosition=new pc.Vec3(l,i.parent.localPosition.y,i.parent.localPosition.z),this.StopTips();var c=n.GetComponent(GuruClient.Patche),u=(c.GetData(),UnityEngine.Vector2.FromVector3(this.puzzleWhole.localPosition.$clone().add(c.GetConvertedTargetPos())));this.tipsFinger.position=n.position.$clone(),this.tipsFinger.gameObject.SetActive(!0),this._myTipsSequence=DG.Tweening.DOTween.Sequence(),DG.Tweening.TweenSettingsExtensions.SetLoops(DG.Tweening.Sequence,this._myTipsSequence,-1),DG.Tweening.TweenSettingsExtensions.Append(this._myTipsSequence,DG.Tweening.DOTweenModuleUI.DOFade$2(this.tipsFinger.GetComponent(UnityEngine.UI.Image),1,.5)),DG.Tweening.TweenSettingsExtensions.Append(this._myTipsSequence,DG.Tweening.TweenSettingsExtensions.SetDelay(DG.Tweening.Core.TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),DG.Tweening.ShortcutExtensions.DOLocalMove(this.tipsFinger,UnityEngine.Vector3.FromVector2(u.$clone()),1),.5)),DG.Tweening.TweenSettingsExtensions.Append(this._myTipsSequence,DG.Tweening.TweenSettingsExtensions.OnComplete(DG.Tweening.Core.TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),DG.Tweening.TweenSettingsExtensions.SetDelay(DG.Tweening.Core.TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),DG.Tweening.DOTweenModuleUI.DOFade$2(this.tipsFinger.GetComponent(UnityEngine.UI.Image),0,.5),.5),(function(){})))}}},StopTips:function(){null!=this._myTipsSequence&&(DG.Tweening.TweenExtensions.Kill(this._myTipsSequence),this._myTipsSequence=null,this.tipsFinger.localPosition=new pc.Vec3(3e3,3e4,0),this.tipsFinger.gameObject.SetActive(!1))},InitPatches:function(e,t){var n,i=this._gameModel.GetOperablePatch();this._patchObjs.clear(),this.OriginPatchObjs.clear();var r=new(System.Collections.Generic.List$1(GuruClient.APatch).ctor),s=1;n=Bridge.getEnumerator(i);try{for(;n.moveNext();){var a=n.Current;(-1===e&&a.stage>=this._gameModel.GetCurrentStage()||e===a.stage)&&!GuruClient.GameManager.Instance.IsCompletedPatch(a)&&(r.add(a),this.CreatePatch(a,s),s=s+1|0)}}finally{Bridge.is(n,System.IDisposable)&&n.System$IDisposable$Dispose()}this.SetPatchIndex(r),this.SortPatches(!0,t,!0,.05)},SetPatchIndex:function(e){e.Sort$2((function(e,t){return e.stage<t.stage?-1:e.stage>t.stage?1:e.sub_stage<t.sub_stage?-1:(e.sub_stage,t.sub_stage,1)}));for(var t=0;t<e.Count;t=t+1|0){var n={};this._patchObjs.tryGetValue(e.getItem(t).name,n)?n.v.transform.SetSiblingIndex(t):UnityEngine.Debug.Log$1("index不存在")}},CreatePatch:function(e,t){var n=GuruClient.GameManager.Instance.PatchPool.GetObj(this.patchesPool.transform),i=n.GetComponent(GuruClient.Patche);this._patchObjs.setItem(e.name,n),this.OriginPatchObjs.add(n);var r=System.String.format("Levels/{0}/Atlas/{1}",this.GetPsdID(),e.name);i.SetData(this,e,r),n.transform.localPosition=new pc.Vec3(GuruClient.GameDefine.Game.PATCH_PADDING+(GuruClient.GameDefine.Game.PATCH_SIZE_MAX.x+GuruClient.GameDefine.Game.PATCH_SPAN)*t+1500,0,0)},SortPatches:function(e,t,n,i){void 0===e&&(e=!1),void 0===t&&(t=null),void 0===n&&(n=!0),void 0===i&&(i=0);var r=0;n&&this.ResizePatchesPool();for(var s=i,a=this.OriginPatchObjs.Count,o=0;o<a;o=o+1|0){var l=this.OriginPatchObjs.getItem(o).transform;if(e){var c=DG.Tweening.TweenSettingsExtensions.SetRecyclable(DG.Tweening.Core.TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),DG.Tweening.TweenSettingsExtensions.OnComplete(DG.Tweening.Core.TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),DG.Tweening.ShortcutExtensions.DOLocalMove(l,new pc.Vec3(GuruClient.GameDefine.Game.PATCH_PADDING+(GuruClient.GameDefine.Game.PATCH_SIZE_MAX.x+GuruClient.GameDefine.Game.PATCH_SPAN)*o+GuruClient.GameDefine.Game.PATCH_SIZE_MAX.x/2,0,0),this._moveTime),(function(){(r=r+1|0)===a&&!Bridge.staticEquals(t,null)&&t()})));o<=5&&(DG.Tweening.TweenSettingsExtensions.SetDelay(DG.Tweening.Tweener,c,s),s+=i)}else l.localPosition=new pc.Vec3(GuruClient.GameDefine.Game.PATCH_PADDING+(GuruClient.GameDefine.Game.PATCH_SIZE_MAX.x+GuruClient.GameDefine.Game.PATCH_SPAN)*o+GuruClient.GameDefine.Game.PATCH_SIZE_MAX.x/2,0,0)}e||!Bridge.staticEquals(t,null)&&t()},ResizePatchesPool:function(){var e=this.patchesPool.GetComponent(UnityEngine.RectTransform);e.sizeDelta=new pc.Vec2(e.childCount*(GuruClient.GameDefine.Game.PATCH_SIZE_MAX.x+GuruClient.GameDefine.Game.PATCH_SPAN)+Bridge.Int.mul(2,GuruClient.GameDefine.Game.PATCH_PADDING)-GuruClient.GameDefine.Game.PATCH_SPAN,e.sizeDelta.y)}}}),Bridge.define("GuruClient.UIGameWin",{inherits:[UnityEngine.MonoBehaviour],fields:{btnContinue:null,puzzleWhole:null,txtTitle:null,btnMain:null,imgFlag:null,imgLight:null,winPFX:null,imgBg1:null,imgBg2:null,btnTestPass:null,btnTestFail:null,txtPassCount:null,pnlPuzzleBase:null,btnPuzzleBase:null,bigBG:null,objBGClose:null,btnBGClose:null,objReward:null,slider:null,btnRewardClaim:null,btnRewardContinue:null,btnRewardContinueOld:null,rewardCurve:null,objTitle:null,objMidNode:null,canvasGroupNode:null,txtUp:null,txtCurCoin:null,txtContinueCoin:null,imgClaim:null,txtMultList:null,_sequence:null,_curLevel:null,_bgTimer:0,_bigAnimDuration:0,_sliderSq:null,_rewardObjSq:null,_animCoinNum:0,_initScale:null,_timerId:0,_mulSpeed:0,_hasADColor:null,_noADColor:null,_hasAD:!1,_isDrop:!1,_removeTimerId:0,_model:null,_rewardMult:null,_rewardTimerId:0,_isClose:!1,_canTouch:!1,clickToDownload:null,objNormalUI:null,flyAnimComp:null},ctors:{init:function(){this._initScale=new UnityEngine.Vector3,this._hasADColor=new UnityEngine.Color,this._noADColor=new UnityEngine.Color,this._bgTimer=-1,this._bigAnimDuration=.6,this._animCoinNum=10,this._initScale=new pc.Vec3(.8,.8,.8),this._timerId=-1,this._hasADColor=new pc.Color(.2156863,.5254902,.9490196,1),this._noADColor=new pc.Color(1,1,1,.3),this._hasAD=!1,this._removeTimerId=-1,this._rewardTimerId=-1,this._isClose=!1,this._canTouch=!0}},methods:{OnBeforStart:function(e){this.clickToDownload.GetComponent(UnityEngine.UI.Button).onClick.AddListener((function(){Luna.Unity.Analytics.LogEvent$1("ClickInstall",0),Luna.Unity.Playable.InstallFullGame()})),this._isClose=!1,this._canTouch=!0,this._curLevel=e,this._model=GuruClient.GameManager.Instance.GetModel(),this.bigBG.SetActive(!1),this.objBGClose.SetActive(!1),this.btnBGClose.SetActive(!1),this.btnPuzzleBase.enabled=!1;var t=this.pnlPuzzleBase.GetComponent(UnityEngine.UI.Image),n=System.String.format("Levels/{0}/Texture/finish",[e.psdID]);try{var i=UnityEngine.Resources.Load(UnityEngine.Sprite,n);null!=i&&(t.sprite=i)}catch(e){e=System.Exception.create(e),UnityEngine.Debug.Log$1(System.String.format("Load Sprite Error: {0}",[n]))}this.imgBg1.SetActive(!0),this.imgBg2.SetActive(!1),this._bgTimer=GuruClient.Timer.Instance.SetTimeout(3,Bridge.fn.bind(this,(function(){this.imgBg1.SetActive(!1),this.imgBg2.SetActive(!0)}))),this.pnlPuzzleBase.transform.localScale=new pc.Vec3(1.044,1.044,1),DG.Tweening.TweenSettingsExtensions.OnComplete(DG.Tweening.Core.TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),DG.Tweening.ShortcutExtensions.DOScale$1(this.pnlPuzzleBase,new pc.Vec3(1.094,1.094,1),3),Bridge.fn.bind(this,(function(){DG.Tweening.ShortcutExtensions.DOScale$1(this.pnlPuzzleBase,new pc.Vec3(.95,.95,1),1)})));var r=DG.Tweening.DOTween.Sequence();DG.Tweening.TweenSettingsExtensions.PrependInterval(r,3),DG.Tweening.TweenSettingsExtensions.Append(r,DG.Tweening.TweenSettingsExtensions.OnComplete(DG.Tweening.Core.TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),DG.Tweening.ShortcutExtensions.DOScale$1(this.puzzleWhole,new pc.Vec3(.475,.475,.475),1),Bridge.fn.bind(this,(function(){this.clickToDownload.SetActive(!0)})))),DG.Tweening.TweenSettingsExtensions.Join(r,DG.Tweening.ShortcutExtensions.DOLocalMoveY(this.puzzleWhole,this.puzzleWhole.localPosition.y-144,1)),DG.Tweening.TweenSettingsExtensions.SetDelay(DG.Tweening.Core.TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),DG.Tweening.DOTweenModuleUI.DOFade$4(this.txtTitle.GetComponent(UnityEngine.UI.Text),1,.5),4),DG.Tweening.TweenSettingsExtensions.SetDelay(DG.Tweening.Core.TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),DG.Tweening.DOTweenModuleUI.DOFade$2(this.imgFlag.GetComponent(UnityEngine.UI.Image),1,.5),4)}}}),Bridge.define("GuruClient.Utility",{statics:{methods:{ScreenPointToUILocalPoint:function(e,t){var n={v:new UnityEngine.Vector2},i=GuruClient.GameManager.Instance.UICamera;return UnityEngine.RectTransformUtility.ScreenPointToLocalPointInRectangle(e,t,i,n),n.v.$clone()}}}}),Bridge.define("GuruClient.Utility.Json",{$kind:1002,statics:{methods:{Deserialize:function(e,t){var n=Bridge.rValue(Newtonsoft.Json.JsonConvert.DeserializeObject(t,e));return Bridge.rValue(n)}}}});var n=Bridge.setMetadata,i=["System","GuruClient","UnityEngine","System.Collections.Generic","System.Collections","UnityEngine.UI","UnityEngine.EventSystems","DG.Tweening","DG.Tweening.Core","System.Globalization","DG.Tweening.Plugins.Core.PathCore","DG.Tweening.Plugins.Options"];n("AutoOrientation",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:1,n:"Start",t:8,sn:"Start",rt:i[0].Void},{a:1,n:"Update",t:8,sn:"Update",rt:i[0].Void}]}}),i),n("GuruClient.StartMode",(function(){return{att:257,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"Continue",is:!0,t:4,rt:i[1].StartMode,sn:"Continue",box:function(e){return Bridge.box(e,GuruClient.StartMode,System.Enum.toStringFn(GuruClient.StartMode))}},{a:2,n:"Replay",is:!0,t:4,rt:i[1].StartMode,sn:"Replay",box:function(e){return Bridge.box(e,GuruClient.StartMode,System.Enum.toStringFn(GuruClient.StartMode))}},{a:2,n:"View",is:!0,t:4,rt:i[1].StartMode,sn:"View",box:function(e){return Bridge.box(e,GuruClient.StartMode,System.Enum.toStringFn(GuruClient.StartMode))}}]}}),i),n("GuruClient.LevelType",(function(){return{att:257,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"Activity",is:!0,t:4,rt:i[1].LevelType,sn:"Activity",box:function(e){return Bridge.box(e,GuruClient.LevelType,System.Enum.toStringFn(GuruClient.LevelType))}},{a:2,n:"Daily",is:!0,t:4,rt:i[1].LevelType,sn:"Daily",box:function(e){return Bridge.box(e,GuruClient.LevelType,System.Enum.toStringFn(GuruClient.LevelType))}},{a:2,n:"MainLine",is:!0,t:4,rt:i[1].LevelType,sn:"MainLine",box:function(e){return Bridge.box(e,GuruClient.LevelType,System.Enum.toStringFn(GuruClient.LevelType))}},{a:2,n:"None",is:!0,t:4,rt:i[1].LevelType,sn:"None",box:function(e){return Bridge.box(e,GuruClient.LevelType,System.Enum.toStringFn(GuruClient.LevelType))}},{a:2,n:"Story",is:!0,t:4,rt:i[1].LevelType,sn:"Story",box:function(e){return Bridge.box(e,GuruClient.LevelType,System.Enum.toStringFn(GuruClient.LevelType))}},{a:2,n:"UA",is:!0,t:4,rt:i[1].LevelType,sn:"UA",box:function(e){return Bridge.box(e,GuruClient.LevelType,System.Enum.toStringFn(GuruClient.LevelType))}}]}}),i),n("GuruClient.ALevel",(function(){return{att:1056769,a:2,at:[new System.SerializableAttribute],m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"GameABName",t:8,sn:"GameABName",rt:i[0].String},{a:2,n:"GetLevelName",t:8,sn:"GetLevelName",rt:i[0].String},{a:2,n:"GetTypeName",t:8,sn:"GetTypeName",rt:i[0].String},{a:2,n:"ThumbanilBadABName",t:8,sn:"ThumbanilBadABName",rt:i[0].String},{a:2,n:"ThumbanilFinishABName",t:8,sn:"ThumbanilFinishABName",rt:i[0].String},{a:2,n:"animType",t:4,rt:i[0].Int32,sn:"animType",box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"dateTime",t:4,rt:i[0].String,sn:"dateTime"},{a:2,n:"gameGeneration",t:4,rt:i[0].String,sn:"gameGeneration"},{a:2,n:"gameHash",t:4,rt:i[0].String,sn:"gameHash"},{a:2,n:"level",t:4,rt:i[0].Int32,sn:"level",box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"pass",t:4,rt:i[0].Boolean,sn:"pass",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"psdID",t:4,rt:i[0].String,sn:"psdID"},{a:2,n:"tags",t:4,rt:i[0].String,sn:"tags"},{a:2,n:"thumbnailBadGeneration",t:4,rt:i[0].String,sn:"thumbnailBadGeneration"},{a:2,n:"thumbnailFinishGeneration",t:4,rt:i[0].String,sn:"thumbnailFinishGeneration"},{a:2,n:"type",t:4,rt:i[1].LevelType,sn:"type",box:function(e){return Bridge.box(e,GuruClient.LevelType,System.Enum.toStringFn(GuruClient.LevelType))}},{a:2,n:"unlockCoin",t:4,rt:i[0].Int32,sn:"unlockCoin",box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"unlockStar",t:4,rt:i[0].Int32,sn:"unlockStar",box:function(e){return Bridge.box(e,System.Int32)}}]}}),i),n("GuruClient.APatch",(function(){return{att:1056769,a:2,at:[new System.SerializableAttribute],m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"IsAuto",t:8,sn:"IsAuto",rt:i[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"IsFinish",t:8,sn:"IsFinish",rt:i[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"IsLine",t:8,sn:"IsLine",rt:i[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"IsPatch",t:8,sn:"IsPatch",rt:i[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"SetName",t:8,pi:[{n:"nameIn",pt:i[0].String,ps:0}],sn:"SetName",rt:i[0].Void,p:[i[0].String]},{a:2,n:"isValid",t:8,sn:"isValid",rt:i[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"name",t:4,rt:i[0].String,sn:"name"},{a:2,n:"pos",t:4,rt:i[0].Array.type(System.Single),sn:"pos"},{a:2,n:"pos1",t:4,rt:i[2].Vector2,sn:"pos1"},{a:2,n:"stage",t:4,rt:i[0].Int32,sn:"stage",box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"sub_stage",t:4,rt:i[0].Int32,sn:"sub_stage",box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"tag",t:4,rt:i[0].String,sn:"tag"}]}}),i),n("GuruClient.ConfigManager",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"GetDailyLevelByDT",t:8,pi:[{n:"dt",pt:i[0].String,ps:0}],sn:"GetDailyLevelByDT",rt:i[1].ALevel,p:[i[0].String]},{a:2,n:"GetDailyLevelPoolFirst",t:8,sn:"GetDailyLevelPoolFirst",rt:i[1].ALevel},{a:2,n:"GetLevel",t:8,pi:[{n:"psdID",pt:i[0].String,ps:0},{n:"levelType",pt:i[1].LevelType,ps:1},{n:"dateTime",dv:"",o:!0,pt:i[0].String,ps:2},{n:"readOnly",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"GetLevel",rt:i[1].ALevel,p:[i[0].String,i[1].LevelType,i[0].String,i[0].Boolean]},{a:2,n:"GetLevelPoolFirst",t:8,sn:"GetLevelPoolFirst",rt:i[1].ALevel},{a:2,n:"GetPSDIDByLevelName",t:8,pi:[{n:"name",pt:i[0].String,ps:0}],sn:"GetPSDIDByLevelName",rt:i[0].Tuple$2(System.String,GuruClient.LevelType),p:[i[0].String]},{a:2,n:"GetTypeNameByType",t:8,pi:[{n:"type",pt:i[1].LevelType,ps:0}],sn:"GetTypeNameByType",rt:i[0].String,p:[i[1].LevelType]},{a:2,n:"Initialize",t:8,sn:"Initialize",rt:i[0].Void},{a:2,n:"OnDestroy",t:8,sn:"OnDestroy",rt:i[0].Void},{a:2,n:"ParsePatches",t:8,pi:[{n:"txt",pt:i[0].String,ps:0}],sn:"ParsePatches",rt:i[3].Dictionary$2(System.String,GuruClient.APatch),p:[i[0].String]},{a:2,n:"Instance",is:!0,t:16,rt:i[1].ConfigManager,g:{a:2,n:"get_Instance",t:8,rt:i[1].ConfigManager,fg:"Instance",is:!0},fn:"Instance"},{a:1,n:"_dailyDT2Level",t:4,rt:i[3].Dictionary$2(System.String,GuruClient.ALevel),sn:"_dailyDT2Level"},{a:1,n:"_dailyLevelPoolDict",t:4,rt:i[3].Dictionary$2(System.String,GuruClient.ALevel),sn:"_dailyLevelPoolDict"},{a:1,n:"_dailyLevelPoolList",t:4,rt:i[3].List$1(GuruClient.ALevel),sn:"_dailyLevelPoolList"},{a:1,n:"_dailyLevelsDBDict",t:4,rt:i[3].Dictionary$2(System.String,GuruClient.ALevel),sn:"_dailyLevelsDBDict"},{a:1,n:"_dailyLevelsDBList",t:4,rt:i[3].List$1(GuruClient.ALevel),sn:"_dailyLevelsDBList"},{a:1,n:"_instance",is:!0,t:4,rt:i[1].ConfigManager,sn:"_instance"},{a:1,n:"_levelPoolDict",t:4,rt:i[3].Dictionary$2(System.String,GuruClient.ALevel),sn:"_levelPoolDict"},{a:1,n:"_levelPoolList",t:4,rt:i[3].List$1(GuruClient.ALevel),sn:"_levelPoolList"},{a:1,n:"_mainlineDBDict",t:4,rt:i[3].Dictionary$2(System.String,GuruClient.ALevel),sn:"_mainlineDBDict"},{a:1,n:"_mainlineDBList",t:4,rt:i[3].List$1(GuruClient.ALevel),sn:"_mainlineDBList"},{a:2,n:"challengeConfigLoaded",t:4,rt:i[0].Boolean,sn:"challengeConfigLoaded",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"version",t:4,rt:i[0].String,sn:"version"}]}}),i),n("GuruClient.Coroutiner",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:1,n:"OnDestroy",t:8,sn:"OnDestroy",rt:i[0].Void},{a:1,n:"Start",t:8,sn:"Start",rt:i[0].Void},{a:2,n:"Start",is:!0,t:8,pi:[{n:"result",pt:i[4].IEnumerator,ps:0}],sn:"Start",rt:i[2].Coroutine,p:[i[4].IEnumerator]},{a:2,n:"Stop",is:!0,t:8,pi:[{n:"result",pt:i[4].IEnumerator,ps:0}],sn:"Stop",rt:i[0].Void,p:[i[4].IEnumerator]},{a:2,n:"Stop",is:!0,t:8,pi:[{n:"routine",pt:i[2].Coroutine,ps:0}],sn:"Stop$1",rt:i[0].Void,p:[i[2].Coroutine]},{a:2,n:"StopAll",is:!0,t:8,sn:"StopAll",rt:i[0].Void},{a:2,n:"Instance",is:!0,t:16,rt:i[1].Coroutiner,g:{a:2,n:"get_Instance",t:8,rt:i[1].Coroutiner,fg:"Instance",is:!0},fn:"Instance"},{a:1,n:"_instance",is:!0,t:4,rt:i[1].Coroutiner,sn:"_instance"}]}}),i),n("GuruClient.EmptyImage",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{ov:!0,a:3,n:"OnPopulateMesh",t:8,pi:[{n:"toFill",pt:i[5].VertexHelper,ps:0}],sn:"OnPopulateMesh",rt:i[0].Void,p:[i[5].VertexHelper]}]}}),i),n("GuruClient.EventManager",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:1,n:"AddEventHandler",t:8,pi:[{n:"eventName",pt:i[0].String,ps:0},{n:"handler",pt:Function,ps:1}],sn:"AddEventHandler",rt:i[0].Void,p:[i[0].String,Function]},{a:2,n:"AddListenner",is:!0,t:8,pi:[{n:"eventName",pt:i[0].String,ps:0},{n:"handler",pt:Function,ps:1}],sn:"AddListenner",rt:i[0].Void,p:[i[0].String,Function]},{a:4,n:"AddListenner",is:!0,t:8,pi:[{n:"uI_SignIn_SignHandler1",pt:i[0].String,ps:0},{n:"uI_SignIn_SignHandler2",pt:i[0].String,ps:1}],sn:"AddListenner$1",rt:i[0].Void,p:[i[0].String,i[0].String]},{a:2,n:"Clear",is:!0,t:8,sn:"Clear",rt:i[0].Void},{a:1,n:"ClearAllEvent",t:8,sn:"ClearAllEvent",rt:i[0].Void},{a:2,n:"ClearEvent",is:!0,t:8,pi:[{n:"eventName",pt:i[0].String,ps:0}],sn:"ClearEvent",rt:i[0].Void,p:[i[0].String]},{a:1,n:"ClearEventHandler",t:8,pi:[{n:"eventName",pt:i[0].String,ps:0}],sn:"ClearEventHandler",rt:i[0].Void,p:[i[0].String]},{a:2,n:"Dispatch",is:!0,t:8,pi:[{n:"eventName",pt:i[0].String,ps:0}],sn:"Dispatch",rt:i[0].Void,p:[i[0].String]},{a:2,n:"Dispatch",is:!0,t:8,pi:[{n:"eventName",pt:i[0].String,ps:0},{n:"data",pt:i[1].IEventData,ps:1}],sn:"Dispatch$1",rt:i[0].Void,p:[i[0].String,i[1].IEventData]},{a:1,n:"FireEvent",t:8,pi:[{n:"eventName",pt:i[0].String,ps:0},{n:"data",pt:i[1].IEventData,ps:1}],sn:"FireEvent",rt:i[0].Void,p:[i[0].String,i[1].IEventData]},{a:1,n:"RemoveEventHandler",t:8,pi:[{n:"eventName",pt:i[0].String,ps:0},{n:"handler",pt:Function,ps:1}],sn:"RemoveEventHandler",rt:i[0].Void,p:[i[0].String,Function]},{a:2,n:"RemoveListenner",is:!0,t:8,pi:[{n:"eventName",pt:i[0].String,ps:0},{n:"handler",pt:Function,ps:1}],sn:"RemoveListenner",rt:i[0].Void,p:[i[0].String,Function]},{a:1,n:"_handlerDict",t:4,rt:i[3].Dictionary$2(System.String,Function),sn:"_handlerDict",ro:!0},{a:1,n:"_instance",is:!0,t:4,rt:i[1].EventManager,sn:"_instance",ro:!0}]}}),i),n("GuruClient.GameDefine.Game",(function(){return{td:i[1].GameDefine,att:1048578,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"ANIMATION_DURATION",is:!0,t:4,rt:i[0].Single,sn:"ANIMATION_DURATION",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"DAILY_FIRST_TIME",is:!0,t:4,rt:i[0].DateTime,sn:"DAILY_FIRST_TIME",box:function(e){return Bridge.box(e,System.DateTime,System.DateTime.format)}},{a:2,n:"FINGER_OFFSET",is:!0,t:4,rt:i[0].Int32,sn:"FINGER_OFFSET",box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"PATCH_PADDING",is:!0,t:4,rt:i[0].Int32,sn:"PATCH_PADDING",box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"PATCH_SIZE_MAX",is:!0,t:4,rt:i[2].Vector2,sn:"PATCH_SIZE_MAX"},{a:2,n:"PATCH_SIZE_MIN",is:!0,t:4,rt:i[2].Vector2,sn:"PATCH_SIZE_MIN"},{a:2,n:"PATCH_SPAN",is:!0,t:4,rt:i[0].Int32,sn:"PATCH_SPAN",box:function(e){return Bridge.box(e,System.Int32)}}]}}),i),n("GuruClient.GameManager",(function(){}),i),n("GuruClient.GameModel",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"AddCompletePatchCount",t:8,pi:[{n:"count",pt:i[0].Int32,ps:0}],sn:"AddCompletePatchCount",rt:i[0].Void,p:[i[0].Int32]},{a:2,n:"AddTotalStep",t:8,sn:"AddTotalStep",rt:i[0].Void},{a:1,n:"FilterOperablePatch",t:8,sn:"FilterOperablePatch",rt:i[0].Void},{a:2,n:"GetAutoAllPatch",t:8,pi:[{n:"stage",pt:i[0].Int32,ps:0}],sn:"GetAutoAllPatch",rt:i[3].List$1(GuruClient.APatch),p:[i[0].Int32]},{a:2,n:"GetCompletePatchCount",t:8,sn:"GetCompletePatchCount",rt:i[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"GetCurrentLevel",t:8,sn:"GetCurrentLevel",rt:i[1].ALevel},{a:2,n:"GetCurrentStage",t:8,sn:"GetCurrentStage",rt:i[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"GetCurrentStep",t:8,sn:"GetCurrentStep",rt:i[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"GetFinishPatch",t:8,sn:"GetFinishPatch",rt:i[1].APatch},{a:2,n:"GetLineAllPatch",t:8,pi:[{n:"stage",pt:i[0].Int32,ps:0}],sn:"GetLineAllPatch",rt:i[3].List$1(GuruClient.APatch),p:[i[0].Int32]},{a:2,n:"GetOperablePatch",t:8,sn:"GetOperablePatch",rt:i[3].List$1(GuruClient.APatch)},{a:2,n:"GetPatchDB",t:8,sn:"GetPatchDB",rt:i[3].Dictionary$2(System.String,GuruClient.APatch)},{a:2,n:"GetStageAllPatch",t:8,pi:[{n:"stage",pt:i[0].Int32,ps:0}],sn:"GetStageAllPatch",rt:i[3].List$1(GuruClient.APatch),p:[i[0].Int32]},{a:2,n:"GetStageProgress",t:8,sn:"GetStageProgress",rt:i[0].Tuple$2(System.Int32,System.Int32)},{a:2,n:"GetTotalPatchCount",t:8,sn:"GetTotalPatchCount",rt:i[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"InitializeLevel",t:8,pi:[{n:"psdID",pt:i[0].String,ps:0},{n:"startMode",pt:i[1].StartMode,ps:1},{n:"levelType",pt:i[1].LevelType,ps:2}],sn:"InitializeLevel",rt:i[0].Boolean,p:[i[0].String,i[1].StartMode,i[1].LevelType],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"IsCompleteByPatch",t:8,sn:"IsCompleteByPatch",rt:i[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"IsHideLineWhenPatched",t:8,sn:"IsHideLineWhenPatched",rt:i[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"IsShowCurrentPatche",t:8,sn:"IsShowCurrentPatche",rt:i[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"LoadAllPatches",t:8,sn:"LoadAllPatches",rt:i[0].Boolean,box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"ParsePatches",t:8,sn:"ParsePatches",rt:i[0].Void},{a:2,n:"SetCurrentStage",t:8,pi:[{n:"stage",pt:i[0].Int32,ps:0}],sn:"SetCurrentStage",rt:i[0].Void,p:[i[0].Int32]},{a:2,n:"SetCurrentStep",t:8,pi:[{n:"step",pt:i[0].Int32,ps:0}],sn:"SetCurrentStep",rt:i[0].Void,p:[i[0].Int32]},{a:1,n:"_aLevel",t:4,rt:i[1].ALevel,sn:"_aLevel"},{a:1,n:"_autoAllPatch",t:4,rt:i[3].Dictionary$2(System.String,System.Collections.Generic.List$1(GuruClient.APatch)),sn:"_autoAllPatch"},{a:1,n:"_completePatchCount",t:4,rt:i[0].Int32,sn:"_completePatchCount",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_currStage",t:4,rt:i[0].Int32,sn:"_currStage",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_currStep",t:4,rt:i[0].Int32,sn:"_currStep",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_finishPatch",t:4,rt:i[1].APatch,sn:"_finishPatch"},{a:1,n:"_lineAllPatch",t:4,rt:i[3].Dictionary$2(System.String,System.Collections.Generic.List$1(GuruClient.APatch)),sn:"_lineAllPatch"},{a:1,n:"_operablePatch",t:4,rt:i[3].List$1(GuruClient.APatch),sn:"_operablePatch"},{a:1,n:"_patchDB",t:4,rt:i[3].Dictionary$2(System.String,GuruClient.APatch),sn:"_patchDB"},{a:1,n:"_stageAllPatch",t:4,rt:i[3].Dictionary$2(System.String,System.Collections.Generic.List$1(GuruClient.APatch)),sn:"_stageAllPatch"},{a:1,n:"_startMode",t:4,rt:i[1].StartMode,sn:"_startMode",box:function(e){return Bridge.box(e,GuruClient.StartMode,System.Enum.toStringFn(GuruClient.StartMode))}},{a:1,n:"_totalStep",t:4,rt:i[0].Int32,sn:"_totalStep",box:function(e){return Bridge.box(e,System.Int32)}}]}}),i),n("GuruClient.GameObjectPool",(function(){return{att:1048577,a:2,m:[{a:1,n:".ctor",t:1,sn:"ctor"},{a:2,n:"CreatePool",is:!0,t:8,pi:[{n:"prefab",pt:i[2].GameObject,ps:0},{n:"capacity",dv:10,o:!0,pt:i[0].Int32,ps:1},{n:"isPreLoad",dv:!1,o:!0,pt:i[0].Boolean,ps:2}],sn:"CreatePool",rt:i[1].GameObjectPool,p:[i[2].GameObject,i[0].Int32,i[0].Boolean]},{a:2,n:"Destroy",t:8,sn:"Destroy",rt:i[0].Void},{a:2,n:"GetObj",t:8,pi:[{n:"parent",dv:null,o:!0,pt:i[2].Transform,ps:0},{n:"worldPositionStays",dv:!0,o:!0,pt:i[0].Boolean,ps:1}],sn:"GetObj",rt:i[2].GameObject,p:[i[2].Transform,i[0].Boolean]},{a:2,n:"OnInit",t:8,pi:[{n:"action",pt:Function,ps:0}],sn:"OnInit",rt:i[0].Void,p:[Function]},{a:2,n:"OnRecycle",t:8,pi:[{n:"action",pt:Function,ps:0}],sn:"OnRecycle",rt:i[0].Void,p:[Function]},{a:1,n:"PreLoad",is:!0,t:8,pi:[{n:"pool",pt:i[1].GameObjectPool,ps:0},{n:"worldPositionStays",dv:!0,o:!0,pt:i[0].Boolean,ps:1}],sn:"PreLoad",rt:i[0].Void,p:[i[1].GameObjectPool,i[0].Boolean]},{a:2,n:"RecycleAll",t:8,sn:"RecycleAll",rt:i[0].Void},{a:2,n:"RecycleObj",t:8,pi:[{n:"obj",pt:i[2].GameObject,ps:0}],sn:"RecycleObj",rt:i[0].Boolean,p:[i[2].GameObject],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"_activeObj",t:4,rt:i[3].Dictionary$2(System.Int32,UnityEngine.GameObject),sn:"_activeObj"},{a:1,n:"_cache",t:4,rt:i[3].Stack$1(UnityEngine.GameObject),sn:"_cache"},{a:1,n:"_capacity",t:4,rt:i[0].Int32,sn:"_capacity",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_onInit",t:4,rt:Function,sn:"_onInit"},{a:1,n:"_onRecycle",t:4,rt:Function,sn:"_onRecycle"},{a:1,n:"_prefab",t:4,rt:i[2].GameObject,sn:"_prefab"},{a:1,n:"_root",t:4,rt:i[2].Transform,sn:"_root"},{a:1,n:"_tmpList",t:4,rt:i[3].List$1(UnityEngine.GameObject),sn:"_tmpList"}]}}),i),n("GuruClient.GuruScrollRect",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{ov:!0,a:2,n:"OnBeginDrag",t:8,pi:[{n:"eventData",pt:i[6].PointerEventData,ps:0}],sn:"OnBeginDrag",rt:i[0].Void,p:[i[6].PointerEventData]},{a:2,n:"onBeginDrag",t:4,rt:Function,sn:"onBeginDrag"}]}}),i),n("GuruClient.PatchStatus",(function(){return{att:257,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"Dragging",is:!0,t:4,rt:i[1].PatchStatus,sn:"Dragging",box:function(e){return Bridge.box(e,GuruClient.PatchStatus,System.Enum.toStringFn(GuruClient.PatchStatus))}},{a:2,n:"Matched",is:!0,t:4,rt:i[1].PatchStatus,sn:"Matched",box:function(e){return Bridge.box(e,GuruClient.PatchStatus,System.Enum.toStringFn(GuruClient.PatchStatus))}},{a:2,n:"None",is:!0,t:4,rt:i[1].PatchStatus,sn:"None",box:function(e){return Bridge.box(e,GuruClient.PatchStatus,System.Enum.toStringFn(GuruClient.PatchStatus))}},{a:2,n:"ShowEffect",is:!0,t:4,rt:i[1].PatchStatus,sn:"ShowEffect",box:function(e){return Bridge.box(e,GuruClient.PatchStatus,System.Enum.toStringFn(GuruClient.PatchStatus))}}]}}),i),n("GuruClient.Patche",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"CheckComplete",t:8,pi:[{n:"endDrag",pt:i[0].Boolean,ps:0}],sn:"CheckComplete",rt:i[0].Void,p:[i[0].Boolean]},{a:1,n:"CheckDrag",t:8,pi:[{n:"eventData",pt:i[6].PointerEventData,ps:0},{n:"isBegan",pt:i[0].Boolean,ps:1}],sn:"CheckDrag",rt:i[0].Boolean,p:[i[6].PointerEventData,i[0].Boolean],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"DestroyMat",t:8,sn:"DestroyMat",rt:i[0].Void},{a:2,n:"Dispose",t:8,sn:"Dispose",rt:i[0].Void},{a:2,n:"EffecTimer",t:8,pi:[{n:"isRecover",pt:i[0].Boolean,ps:0},{n:"onCallback",dv:null,o:!0,pt:Function,ps:1},{n:"scale",dv:1,o:!0,pt:i[0].Single,ps:2}],sn:"EffecTimer",rt:i[4].IEnumerator,p:[i[0].Boolean,Function,i[0].Single]},{a:2,n:"GetConvertedTargetPos",t:8,sn:"GetConvertedTargetPos",rt:i[2].Vector3},{a:2,n:"GetData",t:8,sn:"GetData",rt:i[1].APatch},{a:2,n:"GetOrder",t:8,sn:"GetOrder",rt:i[0].Int32,box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"Init",t:8,sn:"Init",rt:i[0].Void},{a:2,n:"OnBeginDrag",t:8,pi:[{n:"eventData",pt:i[6].PointerEventData,ps:0}],sn:"OnBeginDrag",rt:i[0].Void,p:[i[6].PointerEventData]},{a:2,n:"OnDrag",t:8,pi:[{n:"eventData",pt:i[6].PointerEventData,ps:0}],sn:"OnDrag",rt:i[0].Void,p:[i[6].PointerEventData]},{a:2,n:"OnEndDrag",t:8,pi:[{n:"eventData",pt:i[6].PointerEventData,ps:0}],sn:"OnEndDrag",rt:i[0].Void,p:[i[6].PointerEventData]},{a:2,n:"PositionedFinal",t:8,pi:[{n:"hasScaleAnim",pt:i[0].Boolean,ps:0}],sn:"PositionedFinal",rt:i[0].Void,p:[i[0].Boolean]},{a:2,n:"SetData",t:8,pi:[{n:"uiGameView",pt:i[1].UIGameView,ps:0},{n:"aPatch",pt:i[1].APatch,ps:1},{n:"imgPath",pt:i[0].String,ps:2}],sn:"SetData",rt:i[0].Void,p:[i[1].UIGameView,i[1].APatch,i[0].String]},{a:2,n:"SetState",t:8,pi:[{n:"ps",pt:i[1].PatchStatus,ps:0}],sn:"SetState",rt:i[0].Void,p:[i[1].PatchStatus]},{a:2,n:"ShowEffect",t:8,pi:[{n:"isShow",dv:!0,o:!0,pt:i[0].Boolean,ps:0},{n:"isRecover",dv:!1,o:!0,pt:i[0].Boolean,ps:1},{n:"onCallback",dv:null,o:!0,pt:Function,ps:2},{n:"scale",dv:1,o:!0,pt:i[0].Single,ps:3},{n:"callback",dv:null,o:!0,pt:Function,ps:4}],sn:"ShowEffect",rt:i[0].Void,p:[i[0].Boolean,i[0].Boolean,Function,i[0].Single,Function]},{a:2,n:"ShowFade",t:8,pi:[{n:"isShow",dv:!0,o:!0,pt:i[0].Boolean,ps:0},{n:"isRecover",dv:!1,o:!0,pt:i[0].Boolean,ps:1},{n:"callback",dv:null,o:!0,pt:Function,ps:2}],sn:"ShowFade",rt:i[0].Void,p:[i[0].Boolean,i[0].Boolean,Function]},{a:2,n:"ShowFadeInner",t:8,pi:[{n:"isShow",dv:!0,o:!0,pt:i[0].Boolean,ps:0},{n:"isRecover",dv:!1,o:!0,pt:i[0].Boolean,ps:1},{n:"onCallback",dv:null,o:!0,pt:Function,ps:2},{n:"callback",dv:null,o:!0,pt:Function,ps:3}],sn:"ShowFadeInner",rt:i[0].Void,p:[i[0].Boolean,i[0].Boolean,Function,Function]},{a:1,n:"Update",t:8,sn:"Update",rt:i[0].Void},{a:2,n:"_targetPos",t:16,rt:i[2].Vector3,g:{a:2,n:"get__targetPos",t:8,rt:i[2].Vector3,fg:"_targetPos"},s:{a:2,n:"set__targetPos",t:8,p:[i[2].Vector3],rt:i[0].Void,fs:"_targetPos"},fn:"_targetPos"},{a:1,n:"originalDataOrder",t:16,rt:i[0].Int32,g:{a:1,n:"get_originalDataOrder",t:8,rt:i[0].Int32,fg:"originalDataOrder",box:function(e){return Bridge.box(e,System.Int32)}},s:{a:1,n:"set_originalDataOrder",t:8,p:[i[0].Int32],rt:i[0].Void,fs:"originalDataOrder"},fn:"originalDataOrder"},{a:1,n:"originalOrder",t:16,rt:i[0].Int32,g:{a:1,n:"get_originalOrder",t:8,rt:i[0].Int32,fg:"originalOrder",box:function(e){return Bridge.box(e,System.Int32)}},s:{a:1,n:"set_originalOrder",t:8,p:[i[0].Int32],rt:i[0].Void,fs:"originalOrder"},fn:"originalOrder"},{a:2,n:"originalPos",t:16,rt:i[2].Vector3,g:{a:2,n:"get_originalPos",t:8,rt:i[2].Vector3,fg:"originalPos"},s:{a:2,n:"set_originalPos",t:8,p:[i[2].Vector3],rt:i[0].Void,fs:"originalPos"},fn:"originalPos"},{a:1,n:"_aPatch",t:4,rt:i[1].APatch,sn:"_aPatch"},{a:1,n:"_effectTimerCoroutine",t:4,rt:i[2].Coroutine,sn:"_effectTimerCoroutine"},{a:1,n:"_isShow",t:4,rt:i[0].Boolean,sn:"_isShow",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"_mat",t:4,rt:i[2].Material,sn:"_mat"},{a:1,n:"_moveTime",t:4,rt:i[0].Single,sn:"_moveTime",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,n:"_scale",t:4,rt:i[0].Single,sn:"_scale",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,n:"_sizeDelta",t:4,rt:i[2].Vector2,sn:"_sizeDelta"},{a:1,n:"_targetPosConverted",t:4,rt:i[2].Vector3,sn:"_targetPosConverted"},{a:1,n:"_touchOriginPos",t:4,rt:i[2].Vector3,sn:"_touchOriginPos"},{a:1,n:"_uiGameView",t:4,rt:i[1].UIGameView,sn:"_uiGameView"},{a:1,n:"dragDXScale",t:4,rt:i[0].Single,sn:"dragDXScale",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,n:"dragDYScale",t:4,rt:i[0].Single,sn:"dragDYScale",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:2,n:"imgBody",t:4,rt:i[2].GameObject,sn:"imgBody"},{a:1,n:"isMatch",t:4,rt:i[0].Boolean,sn:"isMatch",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"mouseWorld",t:4,rt:i[2].Vector3,sn:"mouseWorld"},{a:1,n:"state",t:4,rt:i[1].PatchStatus,sn:"state",box:function(e){return Bridge.box(e,GuruClient.PatchStatus,System.Enum.toStringFn(GuruClient.PatchStatus))}},{a:1,n:"step",t:4,rt:i[0].Single,sn:"step",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,n:"threshold",t:4,rt:i[0].Single,sn:"threshold",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,n:"tnthreshold",t:4,rt:i[0].Single,sn:"tnthreshold",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,backing:!0,n:"<_targetPos>k__BackingField",t:4,rt:i[2].Vector3,sn:"_targetPos"},{a:1,backing:!0,n:"<originalDataOrder>k__BackingField",t:4,rt:i[0].Int32,sn:"originalDataOrder",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<originalOrder>k__BackingField",t:4,rt:i[0].Int32,sn:"originalOrder",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"<originalPos>k__BackingField",t:4,rt:i[2].Vector3,sn:"originalPos"}]}}),i),n("GuruClient.Timer",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:1,n:"IntervalCallback",t:8,pi:[{n:"sec",pt:i[0].Single,ps:0},{n:"complete",pt:Function,ps:1}],sn:"IntervalCallback",rt:i[4].IEnumerator,p:[i[0].Single,Function]},{a:1,n:"IntervalCallback",t:8,pi:[{n:"wfs",pt:i[2].WaitForSeconds,ps:0},{n:"complete",pt:Function,ps:1}],sn:"IntervalCallback$1",rt:i[4].IEnumerator,p:[i[2].WaitForSeconds,Function]},{a:2,n:"SetInterval",t:8,pi:[{n:"sec",pt:i[0].Single,ps:0},{n:"complete",pt:Function,ps:1}],sn:"SetInterval",rt:i[0].Int32,p:[i[0].Single,Function],box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"SetInterval",t:8,pi:[{n:"wfs",pt:i[2].WaitForSeconds,ps:0},{n:"complete",pt:Function,ps:1}],sn:"SetInterval$1",rt:i[0].Int32,p:[i[2].WaitForSeconds,Function],box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"SetTimeout",t:8,pi:[{n:"sec",pt:i[0].Single,ps:0},{n:"complete",pt:Function,ps:1}],sn:"SetTimeout",rt:i[0].Int32,p:[i[0].Single,Function],box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"SetTimeoutAsync",t:8,pi:[{n:"sec",pt:i[0].Single,ps:0},{n:"callback",pt:Function,ps:1}],sn:"SetTimeoutAsync",rt:i[0].Void,p:[i[0].Single,Function]},{a:2,n:"Stop",t:8,pi:[{n:"id",pt:i[0].Int32,ps:0}],sn:"Stop",rt:i[0].Void,p:[i[0].Int32]},{a:1,n:"TimeoutCallback",t:8,pi:[{n:"sec",pt:i[0].Single,ps:0},{n:"complete",pt:Function,ps:1}],sn:"TimeoutCallback",rt:i[4].IEnumerator,p:[i[0].Single,Function]},{a:2,n:"WaitFrame",t:8,pi:[{n:"complete",pt:Function,ps:0}],sn:"WaitFrame",rt:i[0].Int32,p:[Function],box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"WaitFrameInner",t:8,pi:[{n:"complete",pt:Function,ps:0}],sn:"WaitFrameInner",rt:i[4].IEnumerator,p:[Function]},{a:2,n:"Instance",is:!0,t:16,rt:i[1].Timer,g:{a:2,n:"get_Instance",t:8,rt:i[1].Timer,fg:"Instance",is:!0},fn:"Instance"},{a:1,n:"_instance",is:!0,t:4,rt:i[1].Timer,sn:"_instance"},{a:1,n:"id",t:4,rt:i[0].Int32,sn:"id",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"timerMap",t:4,rt:i[3].Dictionary$2(System.Int32,UnityEngine.Coroutine),sn:"timerMap"}]}}),i),n("GuruClient.UIGameView",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:2,n:"AddCompletePatche",t:8,pi:[{n:"patche",pt:i[1].Patche,ps:0}],sn:"AddCompletePatche",rt:i[0].Void,p:[i[1].Patche]},{a:1,n:"Awake",t:8,sn:"Awake",rt:i[0].Void},{a:1,n:"CreatePatch",t:8,pi:[{n:"aPatch",pt:i[1].APatch,ps:0},{n:"index",pt:i[0].Int32,ps:1}],sn:"CreatePatch",rt:i[0].Void,p:[i[1].APatch,i[0].Int32]},{a:2,n:"GameWin",t:8,pi:[{n:"isDrop",pt:i[0].Boolean,ps:0}],sn:"GameWin",rt:i[0].Void,p:[i[0].Boolean]},{a:1,n:"GetPsdID",t:8,sn:"GetPsdID",rt:i[0].String},{a:2,n:"InitPatches",t:8,pi:[{n:"stage",pt:i[0].Int32,ps:0},{n:"complete",pt:Function,ps:1}],sn:"InitPatches",rt:i[0].Void,p:[i[0].Int32,Function]},{a:2,n:"LoadAutoPatches",t:8,pi:[{n:"patches",pt:i[3].List$1(GuruClient.APatch),ps:0},{n:"isTexture",dv:!1,o:!0,pt:i[0].Boolean,ps:1},{n:"isRecover",dv:!1,o:!0,pt:i[0].Boolean,ps:2},{n:"callback",dv:null,o:!0,pt:Function,ps:3}],sn:"LoadAutoPatches",rt:i[0].Void,p:[i[3].List$1(GuruClient.APatch),i[0].Boolean,i[0].Boolean,Function]},{a:2,n:"LoadBg",t:8,pi:[{n:"callback",pt:Function,ps:0}],sn:"LoadBg",rt:i[0].Void,p:[Function]},{a:2,n:"LoadLineTemplate",t:8,pi:[{n:"callback",pt:Function,ps:0}],sn:"LoadLineTemplate",rt:i[0].Void,p:[Function]},{a:2,n:"LoadRole",t:8,pi:[{n:"isRecover",dv:!1,o:!0,pt:i[0].Boolean,ps:0},{n:"isFinish",dv:!1,o:!0,pt:i[0].Boolean,ps:1},{n:"callback",dv:null,o:!0,pt:Function,ps:2}],sn:"LoadRole",rt:i[0].Void,p:[i[0].Boolean,i[0].Boolean,Function]},{a:1,n:"OnDestroy",t:8,sn:"OnDestroy",rt:i[0].Void},{a:2,n:"OnNextLevel",t:8,pi:[{n:"data",dv:null,o:!0,pt:i[1].IEventData,ps:0}],sn:"OnNextLevel",rt:i[0].Void,p:[i[1].IEventData]},{a:1,n:"RemoveALine",t:8,pi:[{n:"line",pt:i[2].Transform,ps:0}],sn:"RemoveALine",rt:i[0].Void,p:[i[2].Transform]},{a:1,n:"RemoveALineInner",t:8,pi:[{n:"line",pt:i[2].Transform,ps:0},{n:"callback",pt:Function,ps:1}],sn:"RemoveALineInner",rt:i[0].Void,p:[i[2].Transform,Function]},{a:2,n:"RemoveLine",t:8,pi:[{n:"aPatch",pt:i[1].APatch,ps:0}],sn:"RemoveLine",rt:i[0].Void,p:[i[1].APatch]},{a:2,n:"RemoveLineTemplate",t:8,pi:[{n:"callback",pt:Function,ps:0}],sn:"RemoveLineTemplate",rt:i[0].Void,p:[Function]},{a:2,n:"ResizePatchesPool",t:8,sn:"ResizePatchesPool",rt:i[0].Void},{a:1,n:"SetPatchIndex",t:8,pi:[{n:"patchDB",pt:i[3].List$1(GuruClient.APatch),ps:0}],sn:"SetPatchIndex",rt:i[0].Void,p:[i[3].List$1(GuruClient.APatch)]},{a:1,n:"ShowEffectInner",t:8,pi:[{n:"go",pt:i[2].GameObject,ps:0},{n:"callback",pt:Function,ps:1}],sn:"ShowEffectInner",rt:i[0].Void,p:[i[2].GameObject,Function]},{a:2,n:"ShowTips",t:8,pi:[{n:"isFree",pt:i[0].Boolean,ps:0}],sn:"ShowTips",rt:i[0].Void,p:[i[0].Boolean]},{a:2,n:"SortPatched",t:8,sn:"SortPatched",rt:i[0].Void},{a:2,n:"SortPatches",t:8,pi:[{n:"hasAnimation",dv:!1,o:!0,pt:i[0].Boolean,ps:0},{n:"complete",dv:null,o:!0,pt:Function,ps:1},{n:"isResize",dv:!0,o:!0,pt:i[0].Boolean,ps:2},{n:"delay",dv:0,o:!0,pt:i[0].Single,ps:3}],sn:"SortPatches",rt:i[0].Void,p:[i[0].Boolean,Function,i[0].Boolean,i[0].Single]},{a:1,n:"Start",t:8,sn:"Start",rt:i[0].Void},{a:2,n:"StartGame",t:8,sn:"StartGame",rt:i[0].Void},{a:2,n:"StopTips",t:8,sn:"StopTips",rt:i[0].Void},{a:2,n:"StopTipsTimer",t:8,sn:"StopTipsTimer",rt:i[0].Void},{a:2,n:"UpdateProgress",t:8,pi:[{n:"data",dv:null,o:!0,pt:i[1].IEventData,ps:0}],sn:"UpdateProgress",rt:i[0].Void,p:[i[1].IEventData]},{a:2,n:"UpdateProgressDot",t:8,pi:[{n:"data",dv:null,o:!0,pt:i[1].IEventData,ps:0}],sn:"UpdateProgressDot",rt:i[0].Void,p:[i[1].IEventData]},{a:2,n:"OriginPatchObjs",t:16,rt:i[3].List$1(UnityEngine.GameObject),g:{a:2,n:"get_OriginPatchObjs",t:8,rt:i[3].List$1(UnityEngine.GameObject),fg:"OriginPatchObjs"},s:{a:2,n:"set_OriginPatchObjs",t:8,p:[i[3].List$1(UnityEngine.GameObject)],rt:i[0].Void,fs:"OriginPatchObjs"},fn:"OriginPatchObjs"},{a:1,n:"__Property__Initializer__OriginPatchObjs",t:4,rt:i[3].List$1(UnityEngine.GameObject),sn:"__Property__Initializer__OriginPatchObjs"},{a:1,n:"_autoPlayTimer",t:4,rt:i[0].Int32,sn:"_autoPlayTimer",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_autoTipsTimer",t:4,rt:i[0].Int32,sn:"_autoTipsTimer",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_completePatche",t:4,rt:i[3].List$1(GuruClient.Patche),sn:"_completePatche"},{a:1,n:"_fingerUpTime",t:4,rt:i[0].Double,sn:"_fingerUpTime",box:function(e){return Bridge.box(e,System.Double,System.Double.format,System.Double.getHashCode)}},{a:1,n:"_gameModel",t:4,rt:i[1].GameModel,sn:"_gameModel"},{a:1,n:"_hasGuide",t:4,rt:i[0].Boolean,sn:"_hasGuide",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"_hasStartDownloadNextLevel",t:4,rt:i[0].Boolean,sn:"_hasStartDownloadNextLevel",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"_isFirstRefresh",t:4,rt:i[0].Boolean,sn:"_isFirstRefresh",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"_lastMatchTime",t:4,rt:i[0].Single,sn:"_lastMatchTime",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,n:"_levelDurationTimer",t:4,rt:i[0].Int32,sn:"_levelDurationTimer",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_moveTime",t:4,rt:i[0].Single,sn:"_moveTime",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,n:"_myTipsSequence",t:4,rt:i[7].Sequence,sn:"_myTipsSequence"},{a:1,n:"_patchObjs",t:4,rt:i[3].Dictionary$2(System.String,UnityEngine.GameObject),sn:"_patchObjs"},{a:1,n:"_roleTemplate",t:4,rt:i[2].GameObject,sn:"_roleTemplate"},{a:2,n:"btnBack",t:4,rt:i[2].GameObject,sn:"btnBack"},{a:2,n:"btnDebugDrag",t:4,rt:i[2].GameObject,sn:"btnDebugDrag"},{a:2,n:"btnTips",t:4,rt:i[2].GameObject,sn:"btnTips"},{a:2,n:"noiseTexture",t:4,rt:i[2].Texture,sn:"noiseTexture"},{a:2,n:"objDotProgress",t:4,rt:i[2].GameObject,sn:"objDotProgress"},{a:2,n:"objStageWinFx",t:4,rt:i[2].GameObject,sn:"objStageWinFx"},{a:2,n:"patchTemplate",t:4,rt:i[2].GameObject,sn:"patchTemplate"},{a:2,n:"patchesPool",t:4,rt:i[2].GameObject,sn:"patchesPool"},{a:2,n:"patchesScrollView",t:4,rt:i[2].Transform,sn:"patchesScrollView"},{a:2,n:"puzzleBaseImg",t:4,rt:i[2].Transform,sn:"puzzleBaseImg"},{a:2,n:"puzzleBaseImgLines",t:4,rt:i[2].Transform,sn:"puzzleBaseImgLines"},{a:2,n:"puzzleWhole",t:4,rt:i[2].Transform,sn:"puzzleWhole"},{a:2,n:"sldLevelProgress",t:4,rt:i[5].Slider,sn:"sldLevelProgress"},{a:2,n:"sr",t:4,rt:i[1].GuruScrollRect,sn:"sr"},{a:2,n:"tipsFinger",t:4,rt:i[2].Transform,sn:"tipsFinger"},{a:2,n:"txtProgress",t:4,rt:i[5].Text,sn:"txtProgress"},{a:1,backing:!0,n:"<OriginPatchObjs>k__BackingField",t:4,rt:i[3].List$1(UnityEngine.GameObject),sn:"OriginPatchObjs"}]}}),i),n("GuruClient.UIGameWin",(function(){return{att:1048577,a:2,m:[{a:2,isSynthetic:!0,n:".ctor",t:1,sn:"ctor"},{a:3,n:"AddEvent",t:8,sn:"AddEvent",rt:i[0].Void},{a:1,n:"BtnRewardContinueCallback",t:8,sn:"BtnRewardContinueCallback",rt:i[0].Void},{a:1,n:"ChangeReward",t:8,sn:"ChangeReward",rt:i[0].Void},{a:2,n:"OnBeforStart",t:8,pi:[{n:"aLevel",pt:i[1].ALevel,ps:0}],sn:"OnBeforStart",rt:i[0].Void,p:[i[1].ALevel]},{a:1,n:"OnDestroy",t:8,sn:"OnDestroy",rt:i[0].Void},{a:2,n:"PlayCoinAnim",t:8,pi:[{n:"hasMul",pt:i[0].Boolean,ps:0}],sn:"PlayCoinAnim",rt:i[0].Void,p:[i[0].Boolean]},{a:1,n:"ShowNormalUI",t:8,sn:"ShowNormalUI",rt:i[0].Void},{a:1,n:"_animCoinNum",t:4,rt:i[0].Int32,sn:"_animCoinNum",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_bgTimer",t:4,rt:i[0].Int32,sn:"_bgTimer",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_bigAnimDuration",t:4,rt:i[0].Single,sn:"_bigAnimDuration",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,n:"_canTouch",t:4,rt:i[0].Boolean,sn:"_canTouch",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"_curLevel",t:4,rt:i[1].ALevel,sn:"_curLevel"},{a:1,n:"_hasAD",t:4,rt:i[0].Boolean,sn:"_hasAD",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"_hasADColor",t:4,rt:i[2].Color,sn:"_hasADColor"},{a:1,n:"_initScale",t:4,rt:i[2].Vector3,sn:"_initScale"},{a:1,n:"_isClose",t:4,rt:i[0].Boolean,sn:"_isClose",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"_isDrop",t:4,rt:i[0].Boolean,sn:"_isDrop",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:1,n:"_model",t:4,rt:i[1].GameModel,sn:"_model"},{a:1,n:"_mulSpeed",t:4,rt:i[0].Single,sn:"_mulSpeed",box:function(e){return Bridge.box(e,System.Single,System.Single.format,System.Single.getHashCode)}},{a:1,n:"_noADColor",t:4,rt:i[2].Color,sn:"_noADColor"},{a:1,n:"_removeTimerId",t:4,rt:i[0].Int32,sn:"_removeTimerId",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_rewardMult",t:4,rt:i[3].List$1(System.Int32),sn:"_rewardMult"},{a:1,n:"_rewardObjSq",t:4,rt:i[7].Sequence,sn:"_rewardObjSq"},{a:1,n:"_rewardTimerId",t:4,rt:i[0].Int32,sn:"_rewardTimerId",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,n:"_sequence",t:4,rt:i[7].Sequence,sn:"_sequence"},{a:1,n:"_sliderSq",t:4,rt:i[7].Sequence,sn:"_sliderSq"},{a:1,n:"_timerId",t:4,rt:i[0].Int32,sn:"_timerId",box:function(e){return Bridge.box(e,System.Int32)}},{a:2,n:"bigBG",t:4,rt:i[2].GameObject,sn:"bigBG"},{a:2,n:"btnBGClose",t:4,rt:i[2].GameObject,sn:"btnBGClose"},{a:2,n:"btnContinue",t:4,rt:i[2].GameObject,sn:"btnContinue"},{a:2,n:"btnMain",t:4,rt:i[2].Transform,sn:"btnMain"},{a:2,n:"btnPuzzleBase",t:4,rt:i[5].Button,sn:"btnPuzzleBase"},{a:2,n:"btnRewardClaim",t:4,rt:i[5].Button,sn:"btnRewardClaim"},{a:2,n:"btnRewardContinue",t:4,rt:i[5].Button,sn:"btnRewardContinue"},{a:2,n:"btnRewardContinueOld",t:4,rt:i[5].Button,sn:"btnRewardContinueOld"},{a:2,n:"btnTestFail",t:4,rt:i[2].GameObject,sn:"btnTestFail"},{a:2,n:"btnTestPass",t:4,rt:i[2].GameObject,sn:"btnTestPass"},{a:2,n:"canvasGroupNode",t:4,rt:i[2].CanvasGroup,sn:"canvasGroupNode"},{a:2,n:"clickToDownload",t:4,rt:i[2].GameObject,sn:"clickToDownload"},{a:2,n:"flyAnimComp",t:4,rt:i[1].FlyAnimComp,sn:"flyAnimComp"},{a:2,n:"imgBg1",t:4,rt:i[2].GameObject,sn:"imgBg1"},{a:2,n:"imgBg2",t:4,rt:i[2].GameObject,sn:"imgBg2"},{a:2,n:"imgClaim",t:4,rt:i[5].Image,sn:"imgClaim"},{a:2,n:"imgFlag",t:4,rt:i[2].GameObject,sn:"imgFlag"},{a:2,n:"imgLight",t:4,rt:i[2].GameObject,sn:"imgLight"},{a:2,n:"objBGClose",t:4,rt:i[2].GameObject,sn:"objBGClose"},{a:2,n:"objMidNode",t:4,rt:i[2].GameObject,sn:"objMidNode"},{a:2,n:"objNormalUI",t:4,rt:i[2].GameObject,sn:"objNormalUI"},{a:2,n:"objReward",t:4,rt:i[2].GameObject,sn:"objReward"},{a:2,n:"objTitle",t:4,rt:i[2].GameObject,sn:"objTitle"},{a:2,n:"pnlPuzzleBase",t:4,rt:i[2].Transform,sn:"pnlPuzzleBase"},{a:2,n:"puzzleWhole",t:4,rt:i[2].Transform,sn:"puzzleWhole"},{a:2,n:"rewardCurve",t:4,rt:pc.AnimationCurve,sn:"rewardCurve"},{a:2,n:"slider",t:4,rt:i[5].Slider,sn:"slider"},{a:2,n:"txtContinueCoin",t:4,rt:i[5].Text,sn:"txtContinueCoin"},{a:2,n:"txtCurCoin",t:4,rt:i[5].Text,sn:"txtCurCoin"},{a:2,n:"txtMultList",t:4,rt:i[3].List$1(UnityEngine.UI.Text),sn:"txtMultList"},{a:2,n:"txtPassCount",t:4,rt:i[5].Text,sn:"txtPassCount"},{a:2,n:"txtTitle",t:4,rt:i[2].Transform,sn:"txtTitle"},{a:2,n:"txtUp",t:4,rt:i[5].Text,sn:"txtUp"},{a:2,n:"winPFX",t:4,rt:i[2].GameObject,sn:"winPFX"}]}}),i),n("GuruClient.Utility",(function(){return{nested:[i[1].Utility.Json],att:1048961,a:2,s:!0,m:[{a:2,n:"ScreenPointToUILocalPoint",is:!0,t:8,pi:[{n:"parentRT",pt:i[2].RectTransform,ps:0},{n:"screenPoint",pt:i[2].Vector2,ps:1}],sn:"ScreenPointToUILocalPoint",rt:i[2].Vector2,p:[i[2].RectTransform,i[2].Vector2]},{a:2,n:"ScreenPointToUIPoint",is:!0,t:8,pi:[{n:"rt",pt:i[2].RectTransform,ps:0},{n:"screenPoint",pt:i[2].Vector2,ps:1}],sn:"ScreenPointToUIPoint",rt:i[2].Vector3,p:[i[2].RectTransform,i[2].Vector2]},{a:2,n:"ScreenPointToWorldPoint",is:!0,t:8,pi:[{n:"screenPoint",pt:i[2].Vector2,ps:0},{n:"planeZ",pt:i[0].Single,ps:1}],sn:"ScreenPointToWorldPoint",rt:i[2].Vector3,p:[i[2].Vector2,i[0].Single]},{a:2,n:"UIPointToScreenPoint",is:!0,t:8,pi:[{n:"worldPoint",pt:i[2].Vector3,ps:0}],sn:"UIPointToScreenPoint",rt:i[2].Vector2,p:[i[2].Vector3]},{a:2,n:"WorldPointToScreenPoint",is:!0,t:8,pi:[{n:"worldPoint",pt:i[2].Vector3,ps:0}],sn:"WorldPointToScreenPoint",rt:i[2].Vector2,p:[i[2].Vector3]}]}}),i),n("GuruClient.Utility.Json",(function(){return{td:i[1].Utility,att:1048962,a:2,s:!0,m:[{a:2,n:"Deserialize",is:!0,t:8,pi:[{n:"value",pt:i[0].String,ps:0}],tpc:1,tprm:["T"],sn:"Deserialize",rt:System.Object,p:[i[0].String]},{a:2,n:"Serialize",is:!0,t:8,pi:[{n:"value",pt:i[0].Object,ps:0}],sn:"Serialize",rt:i[0].String,p:[i[0].Object]}]}}),i),n("DG.Tweening.DOTweenModuleUI",(function(){return{nested:[i[7].DOTweenModuleUI.Utils],att:1048961,a:2,s:!0,m:[{a:2,n:"DOAnchorMax",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOAnchorMax",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[2].Vector2,i[0].Single,i[0].Boolean]},{a:2,n:"DOAnchorMin",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOAnchorMin",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[2].Vector2,i[0].Single,i[0].Boolean]},{a:2,n:"DOAnchorPos",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOAnchorPos",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[2].Vector2,i[0].Single,i[0].Boolean]},{a:2,n:"DOAnchorPos3D",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[2].Vector3,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOAnchorPos3D",rt:i[8].TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[2].Vector3,i[0].Single,i[0].Boolean]},{a:2,n:"DOAnchorPos3DX",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOAnchorPos3DX",rt:i[8].TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[0].Single,i[0].Single,i[0].Boolean]},{a:2,n:"DOAnchorPos3DY",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOAnchorPos3DY",rt:i[8].TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[0].Single,i[0].Single,i[0].Boolean]},{a:2,n:"DOAnchorPos3DZ",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOAnchorPos3DZ",rt:i[8].TweenerCore$3(UnityEngine.Vector3,UnityEngine.Vector3,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[0].Single,i[0].Single,i[0].Boolean]},{a:2,n:"DOAnchorPosX",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOAnchorPosX",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[0].Single,i[0].Single,i[0].Boolean]},{a:2,n:"DOAnchorPosY",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOAnchorPosY",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[0].Single,i[0].Single,i[0].Boolean]},{a:2,n:"DOBlendableColor",is:!0,t:8,pi:[{n:"target",pt:i[5].Graphic,ps:0},{n:"endValue",pt:i[2].Color,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOBlendableColor",rt:i[7].Tweener,p:[i[5].Graphic,i[2].Color,i[0].Single]},{a:2,n:"DOBlendableColor",is:!0,t:8,pi:[{n:"target",pt:i[5].Image,ps:0},{n:"endValue",pt:i[2].Color,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOBlendableColor$1",rt:i[7].Tweener,p:[i[5].Image,i[2].Color,i[0].Single]},{a:2,n:"DOBlendableColor",is:!0,t:8,pi:[{n:"target",pt:i[5].Text,ps:0},{n:"endValue",pt:i[2].Color,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOBlendableColor$2",rt:i[7].Tweener,p:[i[5].Text,i[2].Color,i[0].Single]},{a:2,n:"DOColor",is:!0,t:8,pi:[{n:"target",pt:i[5].Graphic,ps:0},{n:"endValue",pt:i[2].Color,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOColor",rt:i[8].TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),p:[i[5].Graphic,i[2].Color,i[0].Single]},{a:2,n:"DOColor",is:!0,t:8,pi:[{n:"target",pt:i[5].Image,ps:0},{n:"endValue",pt:i[2].Color,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOColor$1",rt:i[8].TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),p:[i[5].Image,i[2].Color,i[0].Single]},{a:2,n:"DOColor",is:!0,t:8,pi:[{n:"target",pt:i[5].Outline,ps:0},{n:"endValue",pt:i[2].Color,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOColor$2",rt:i[8].TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),p:[i[5].Outline,i[2].Color,i[0].Single]},{a:2,n:"DOColor",is:!0,t:8,pi:[{n:"target",pt:i[5].Text,ps:0},{n:"endValue",pt:i[2].Color,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOColor$3",rt:i[8].TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),p:[i[5].Text,i[2].Color,i[0].Single]},{a:2,n:"DOCounter",is:!0,t:8,pi:[{n:"target",pt:i[5].Text,ps:0},{n:"fromValue",pt:i[0].Int32,ps:1},{n:"endValue",pt:i[0].Int32,ps:2},{n:"duration",pt:i[0].Single,ps:3},{n:"addThousandsSeparator",dv:!0,o:!0,pt:i[0].Boolean,ps:4},{n:"culture",dv:null,o:!0,pt:i[9].CultureInfo,ps:5}],sn:"DOCounter",rt:i[8].TweenerCore$3(System.Int32,System.Int32,DG.Tweening.Plugins.Options.NoOptions),p:[i[5].Text,i[0].Int32,i[0].Int32,i[0].Single,i[0].Boolean,i[9].CultureInfo]},{a:2,n:"DOFade",is:!0,t:8,pi:[{n:"target",pt:i[2].CanvasGroup,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOFade",rt:i[8].TweenerCore$3(System.Single,System.Single,DG.Tweening.Plugins.Options.FloatOptions),p:[i[2].CanvasGroup,i[0].Single,i[0].Single]},{a:2,n:"DOFade",is:!0,t:8,pi:[{n:"target",pt:i[5].Graphic,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOFade$1",rt:i[8].TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),p:[i[5].Graphic,i[0].Single,i[0].Single]},{a:2,n:"DOFade",is:!0,t:8,pi:[{n:"target",pt:i[5].Image,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOFade$2",rt:i[8].TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),p:[i[5].Image,i[0].Single,i[0].Single]},{a:2,n:"DOFade",is:!0,t:8,pi:[{n:"target",pt:i[5].Outline,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOFade$3",rt:i[8].TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),p:[i[5].Outline,i[0].Single,i[0].Single]},{a:2,n:"DOFade",is:!0,t:8,pi:[{n:"target",pt:i[5].Text,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOFade$4",rt:i[8].TweenerCore$3(UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions),p:[i[5].Text,i[0].Single,i[0].Single]},{a:2,n:"DOFillAmount",is:!0,t:8,pi:[{n:"target",pt:i[5].Image,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOFillAmount",rt:i[8].TweenerCore$3(System.Single,System.Single,DG.Tweening.Plugins.Options.FloatOptions),p:[i[5].Image,i[0].Single,i[0].Single]},{a:2,n:"DOFlexibleSize",is:!0,t:8,pi:[{n:"target",pt:i[5].LayoutElement,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOFlexibleSize",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[5].LayoutElement,i[2].Vector2,i[0].Single,i[0].Boolean]},{a:2,n:"DOGradientColor",is:!0,t:8,pi:[{n:"target",pt:i[5].Image,ps:0},{n:"gradient",pt:pc.ColorGradient,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOGradientColor",rt:i[7].Sequence,p:[i[5].Image,pc.ColorGradient,i[0].Single]},{a:2,n:"DOHorizontalNormalizedPos",is:!0,t:8,pi:[{n:"target",pt:i[5].ScrollRect,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOHorizontalNormalizedPos",rt:i[7].Tweener,p:[i[5].ScrollRect,i[0].Single,i[0].Single,i[0].Boolean]},{a:2,n:"DOJumpAnchorPos",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"jumpPower",pt:i[0].Single,ps:2},{n:"numJumps",pt:i[0].Int32,ps:3},{n:"duration",pt:i[0].Single,ps:4},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:5}],sn:"DOJumpAnchorPos",rt:i[7].Sequence,p:[i[2].RectTransform,i[2].Vector2,i[0].Single,i[0].Int32,i[0].Single,i[0].Boolean]},{a:2,n:"DOMinSize",is:!0,t:8,pi:[{n:"target",pt:i[5].LayoutElement,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOMinSize",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[5].LayoutElement,i[2].Vector2,i[0].Single,i[0].Boolean]},{a:2,n:"DONormalizedPos",is:!0,t:8,pi:[{n:"target",pt:i[5].ScrollRect,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DONormalizedPos",rt:i[7].Tweener,p:[i[5].ScrollRect,i[2].Vector2,i[0].Single,i[0].Boolean]},{a:2,n:"DOPivot",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOPivot",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[2].Vector2,i[0].Single]},{a:2,n:"DOPivotX",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOPivotX",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[0].Single,i[0].Single]},{a:2,n:"DOPivotY",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOPivotY",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[0].Single,i[0].Single]},{a:2,n:"DOPreferredSize",is:!0,t:8,pi:[{n:"target",pt:i[5].LayoutElement,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOPreferredSize",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[5].LayoutElement,i[2].Vector2,i[0].Single,i[0].Boolean]},{a:2,n:"DOPunchAnchorPos",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"punch",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"vibrato",dv:10,o:!0,pt:i[0].Int32,ps:3},{n:"elasticity",dv:1,o:!0,pt:i[0].Single,ps:4},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:5}],sn:"DOPunchAnchorPos",rt:i[7].Tweener,p:[i[2].RectTransform,i[2].Vector2,i[0].Single,i[0].Int32,i[0].Single,i[0].Boolean]},{a:2,n:"DOScale",is:!0,t:8,pi:[{n:"target",pt:i[5].Outline,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2}],sn:"DOScale",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[5].Outline,i[2].Vector2,i[0].Single]},{a:2,n:"DOShakeAnchorPos",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"duration",pt:i[0].Single,ps:1},{n:"strength",dv:100,o:!0,pt:i[0].Single,ps:2},{n:"vibrato",dv:10,o:!0,pt:i[0].Int32,ps:3},{n:"randomness",dv:90,o:!0,pt:i[0].Single,ps:4},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:5},{n:"fadeOut",dv:!0,o:!0,pt:i[0].Boolean,ps:6},{n:"randomnessMode",dv:0,o:!0,pt:i[7].ShakeRandomnessMode,ps:7}],sn:"DOShakeAnchorPos",rt:i[7].Tweener,p:[i[2].RectTransform,i[0].Single,i[0].Single,i[0].Int32,i[0].Single,i[0].Boolean,i[0].Boolean,i[7].ShakeRandomnessMode]},{a:2,n:"DOShakeAnchorPos",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"duration",pt:i[0].Single,ps:1},{n:"strength",pt:i[2].Vector2,ps:2},{n:"vibrato",dv:10,o:!0,pt:i[0].Int32,ps:3},{n:"randomness",dv:90,o:!0,pt:i[0].Single,ps:4},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:5},{n:"fadeOut",dv:!0,o:!0,pt:i[0].Boolean,ps:6},{n:"randomnessMode",dv:0,o:!0,pt:i[7].ShakeRandomnessMode,ps:7}],sn:"DOShakeAnchorPos$1",rt:i[7].Tweener,p:[i[2].RectTransform,i[0].Single,i[2].Vector2,i[0].Int32,i[0].Single,i[0].Boolean,i[0].Boolean,i[7].ShakeRandomnessMode]},{a:2,n:"DOShapeCircle",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"center",pt:i[2].Vector2,ps:1},{n:"endValueDegrees",pt:i[0].Single,ps:2},{n:"duration",pt:i[0].Single,ps:3},{n:"relativeCenter",dv:!1,o:!0,pt:i[0].Boolean,ps:4},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:5}],sn:"DOShapeCircle",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.CircleOptions),p:[i[2].RectTransform,i[2].Vector2,i[0].Single,i[0].Single,i[0].Boolean,i[0].Boolean]},{a:2,n:"DOSizeDelta",is:!0,t:8,pi:[{n:"target",pt:i[2].RectTransform,ps:0},{n:"endValue",pt:i[2].Vector2,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOSizeDelta",rt:i[8].TweenerCore$3(UnityEngine.Vector2,UnityEngine.Vector2,DG.Tweening.Plugins.Options.VectorOptions),p:[i[2].RectTransform,i[2].Vector2,i[0].Single,i[0].Boolean]},{a:2,n:"DOText",is:!0,t:8,pi:[{n:"target",pt:i[5].Text,ps:0},{n:"endValue",pt:i[0].String,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"richTextEnabled",dv:!0,o:!0,pt:i[0].Boolean,ps:3},{n:"scrambleMode",dv:0,o:!0,pt:i[7].ScrambleMode,ps:4},{n:"scrambleChars",dv:null,o:!0,pt:i[0].String,ps:5}],sn:"DOText",rt:i[8].TweenerCore$3(System.String,System.String,DG.Tweening.Plugins.Options.StringOptions),p:[i[5].Text,i[0].String,i[0].Single,i[0].Boolean,i[7].ScrambleMode,i[0].String]},{a:2,n:"DOValue",is:!0,t:8,pi:[{n:"target",pt:i[5].Slider,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOValue",rt:i[8].TweenerCore$3(System.Single,System.Single,DG.Tweening.Plugins.Options.FloatOptions),p:[i[5].Slider,i[0].Single,i[0].Single,i[0].Boolean]},{a:2,n:"DOVerticalNormalizedPos",is:!0,t:8,pi:[{n:"target",pt:i[5].ScrollRect,ps:0},{n:"endValue",pt:i[0].Single,ps:1},{n:"duration",pt:i[0].Single,ps:2},{n:"snapping",dv:!1,o:!0,pt:i[0].Boolean,ps:3}],sn:"DOVerticalNormalizedPos",rt:i[7].Tweener,p:[i[5].ScrollRect,i[0].Single,i[0].Single,i[0].Boolean]}]}}),i),n("DG.Tweening.DOTweenModuleUtils",(function(){return{nested:[i[7].DOTweenModuleUtils.Physics],att:1048961,a:2,s:!0,m:[{at:[new UnityEngine.Scripting.PreserveAttribute],a:2,n:"Init",is:!0,t:8,sn:"Init",rt:i[0].Void},{at:[new UnityEngine.Scripting.PreserveAttribute],a:1,n:"Preserver",is:!0,t:8,sn:"Preserver",rt:i[0].Void},{a:1,n:"_initialized",is:!0,t:4,rt:i[0].Boolean,sn:"_initialized",box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}}]}}),i),n("DG.Tweening.DOTweenModuleUtils.Physics",(function(){return{td:i[7].DOTweenModuleUtils,att:1048962,a:2,s:!0,m:[{at:[new UnityEngine.Scripting.PreserveAttribute],a:2,n:"CreateDOTweenPathTween",is:!0,t:8,pi:[{n:"target",pt:i[2].MonoBehaviour,ps:0},{n:"tweenRigidbody",pt:i[0].Boolean,ps:1},{n:"isLocal",pt:i[0].Boolean,ps:2},{n:"path",pt:i[10].Path,ps:3},{n:"duration",pt:i[0].Single,ps:4},{n:"pathMode",pt:i[7].PathMode,ps:5}],sn:"CreateDOTweenPathTween",rt:i[8].TweenerCore$3(UnityEngine.Vector3,DG.Tweening.Plugins.Core.PathCore.Path,DG.Tweening.Plugins.Options.PathOptions),p:[i[2].MonoBehaviour,i[0].Boolean,i[0].Boolean,i[10].Path,i[0].Single,i[7].PathMode]},{at:[new UnityEngine.Scripting.PreserveAttribute],a:2,n:"HasRigidbody",is:!0,t:8,pi:[{n:"target",pt:i[2].Component,ps:0}],sn:"HasRigidbody",rt:i[0].Boolean,p:[i[2].Component],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"HasRigidbody2D",is:!0,t:8,pi:[{n:"target",pt:i[2].Component,ps:0}],sn:"HasRigidbody2D",rt:i[0].Boolean,p:[i[2].Component],box:function(e){return Bridge.box(e,System.Boolean,System.Boolean.toString)}},{a:2,n:"SetOrientationOnPath",is:!0,t:8,pi:[{n:"options",pt:i[11].PathOptions,ps:0},{n:"t",pt:i[7].Tween,ps:1},{n:"newRot",pt:i[2].Quaternion,ps:2},{n:"trans",pt:i[2].Transform,ps:3}],sn:"SetOrientationOnPath",rt:i[0].Void,p:[i[11].PathOptions,i[7].Tween,i[2].Quaternion,i[2].Transform]}]}}),i)})),Luna.Unity.Playable.GetPreferredLanguage=function(){return navigator.language},Luna.Unity.Playable.GetPreferredLanguages=function(){return navigator.languages},UnityEngine.Application.systemLanguage=getLanguage(UnityEngine.SystemLanguage),Luna.Unity.Playable.Platform=getBuildPlatform(Luna.Unity.BuildPlatforms),UnityEngine.Mathf.Max=Math.max,UnityEngine.Mathf.Min=Math.min,function(){function e(e,t){Object.defineProperty(e.prototype,"unityClass",{get:()=>t(),configurable:!0})}e(pc.ScreenComponent,(()=>UnityEngine.Canvas)),e(pc.CanvasRendererComponent,(()=>UnityEngine.CanvasRenderer)),e(pc.CameraComponent,(()=>UnityEngine.Camera)),e(pc.LightComponent,(()=>UnityEngine.Light)),e(pc.AnimationComponent,(()=>UnityEngine.Animation)),e(pc.AnimatorComponent,(()=>UnityEngine.Animator)),e(pc.VideoPlayerComponent,(()=>UnityEngine.Video.VideoPlayer)),e(pc.ReflectionProbeComponent,(()=>UnityEngine.ReflectionProbe)),e(pc.ParticleSystemComponent,(()=>UnityEngine.ParticleSystem)),e(pc.AudioSourceUnityComponent,(()=>UnityEngine.AudioSource)),e(pc.MeshFilterComponent,(()=>UnityEngine.MeshFilter)),e(pc.Rigidbody2DComponent,(()=>UnityEngine.Rigidbody2D)),e(pc.SpringJoint2DComponent,(()=>UnityEngine.SpringJoint2D)),e(pc.DistanceJoint2DComponent,(()=>UnityEngine.DistanceJoint2D)),e(pc.FixedJoint2DComponent,(()=>UnityEngine.FixedJoint2D)),e(pc.HingeJoint2DComponent,(()=>UnityEngine.HingeJoint2D)),e(pc.WheelJoint2DComponent,(()=>UnityEngine.WheelJoint2D)),e(pc.FrictionJoint2DComponent,(()=>UnityEngine.FrictionJoint2D)),e(pc.RelativeJoint2DComponent,(()=>UnityEngine.RelativeJoint2D)),e(pc.SliderJoint2DComponent,(()=>UnityEngine.SliderJoint2D)),e(pc.TargetJoint2DComponent,(()=>UnityEngine.TargetJoint2D)),e(pc.BoxCollider2DComponent,(()=>UnityEngine.BoxCollider2D)),e(pc.CircleCollider2DComponent,(()=>UnityEngine.CircleCollider2D)),e(pc.CapsuleCollider2DComponent,(()=>UnityEngine.CapsuleCollider2D)),e(pc.EdgeCollider2DComponent,(()=>UnityEngine.EdgeCollider2D)),e(pc.PolygonCollider2DComponent,(()=>UnityEngine.PolygonCollider2D)),e(pc.PlatformEffector2DComponent,(()=>UnityEngine.PlatformEffector2D)),e(pc.RigidbodyComponent,(()=>UnityEngine.Rigidbody)),e(pc.BoxColliderComponent,(()=>UnityEngine.BoxCollider)),e(pc.SphereColliderComponent,(()=>UnityEngine.SphereCollider)),e(pc.MeshColliderComponent,(()=>UnityEngine.MeshCollider)),e(pc.CapsuleColliderComponent,(()=>UnityEngine.CapsuleCollider)),e(pc.WheelColliderComponent,(()=>UnityEngine.WheelCollider)),e(pc.CharacterControllerComponent,(()=>UnityEngine.CharacterController)),e(pc.SortingGroupComponent,(()=>UnityEngine.Rendering.SortingGroup)),e(pc.SkyboxComponent,(()=>UnityEngine.Skybox))}(),Bridge.ready((()=>{if(!window.hasOwnProperty("Newtonsoft")||!Newtonsoft.hasOwnProperty("Json"))return;function e(e){this.raw=e}e.prototype.toString=function(){return JSON.stringify(this.raw)};const t=Newtonsoft.Json.JsonConvert.DeserializeObject;Newtonsoft.Json.JsonConvert.DeserializeObject=function(n,i,r,s,a,o){if(null===n)return null;if(Bridge.isArray(null,i)&&2===i.$rank){const e="string"==typeof n?JSON.parse(n):n,t=e.length,r=e[0].length;return System.Array.create(0,e,i.$elementType,[t,r])}return"object"==typeof n&&"System.Object"===i.$$fullname?new e(n):t.call(Newtonsoft.Json.JsonConvert,n,i,r,s,a,o)}})),function(){const e=function(e,t){return this.vector=e,this.offset=t,this};Object.defineProperty(e.prototype,"x",{set:function(e){this.vector.iset(0+this.offset,e)},get:function(){return this.vector.iget(0+this.offset)}}),Object.defineProperty(e.prototype,"y",{set:function(e){this.vector.iset(1+this.offset,e)},get:function(){return this.vector.iget(1+this.offset)}}),Object.defineProperty(UnityEngine.Camera.prototype,"orthographic size",{set:function(e){this.orthographicSize=e},get:function(){return this.orthographicSize}}),Object.defineProperty(UnityEngine.Object.prototype,"m_Enabled",{set:function(e){this.handle.enabled=e>0},get:function(){return this.handle.enabled},configurable:!0}),Object.defineProperty(UnityEngine.UI.RawImage.prototype,"m_Enabled",{set:function(e){this.handle.entity.element._image.enabled=e>0},get:function(){return this.handle.entity.element._image.enabled}}),Object.defineProperty(UnityEngine.UI.Image.prototype,"m_Enabled",{set:function(e){this.handle.entity.element._image.enabled=e>0},get:function(){return this.handle.entity.element._image.enabled}}),Object.defineProperty(UnityEngine.UI.Text.prototype,"m_Enabled",{set:function(e){this.handle.entity.element._text.enabled=e>0},get:function(){return this.handle.entity.element._text.enabled}}),Object.defineProperty(UnityEngine.GameObject.prototype,"m_IsActive",{set:function(e){this.SetActive(e>0)},get:function(){return this.handle._activeSelf}}),Object.defineProperty(UnityEngine.Transform.prototype,"m_LocalPosition",{get:function(){return this.handle.hijackLocalPosition()}}),Object.defineProperty(UnityEngine.Transform.prototype,"m_LocalScale",{get:function(){return this.handle.hijackLocalScale()}}),Object.defineProperty(UnityEngine.Transform.prototype,"localEulerAnglesRaw",{get:function(){return this.handle.hijackLocalEulerAngles()}}),Object.defineProperty(UnityEngine.Transform.prototype,"m_LocalRotation",{get:function(){return this.handle.hijackLocalRotation()}}),Object.defineProperty(UnityEngine.Light.prototype,"m_Intensity",{set:function(e){this.handle.intensity=e},get:function(){return this.handle.intensity}}),Object.defineProperty(UnityEngine.Light.prototype,"m_Color",{get:function(){return this.handle.light.dirtyColor=!0,this.handle.light._color}}),Object.defineProperty(UnityEngine.RectTransform.prototype,"m_AnchoredPosition",{get:function(){if(!this.handle.element._dirtyAnimatedAnchoredPosition){const e=this.handle.element._anchoredPosition;this.handle.element._anchoredPositionAnimated.set(e.x,e.y,e.z)}return this.handle.element._dirtyAnimatedAnchoredPosition=!0,this.handle.element._anchoredPositionAnimated}}),Object.defineProperty(UnityEngine.RectTransform.prototype,"m_LocalPosition",{get:function(){return this.handle.element._dirtyAnimatedLocalPosition||this.handle.element._localPositionAnimated.copy(this.handle.localPosition),this.handle.element._dirtyAnimatedLocalPosition=!0,this.handle.element._localPositionAnimated}}),Object.defineProperty(UnityEngine.RectTransform.prototype,"m_AnchorMin",{get:function(){return this.handle.element.dirtifyRect(),this._anchorMin=this._anchorMin||new e(this.handle.element._anchors,0),this._anchorMin}}),Object.defineProperty(UnityEngine.RectTransform.prototype,"m_AnchorMax",{get:function(){return this.handle.element.dirtifyRect(),this._anchorMax=this._anchorMax||new e(this.handle.element._anchors,2),this._anchorMax}}),Object.defineProperty(UnityEngine.RectTransform.prototype,"m_SizeDelta",{get:function(){return this.handle.element.dirtifyRect(),this.handle.element._sizeDelta}}),Object.defineProperty(UnityEngine.RectTransform.prototype,"m_Pivot",{get:function(){return this.handle.element.dirtifyRect(),this.handle.element._pivot}}),Object.defineProperty(UnityEngine.SpriteRenderer.prototype,"m_Size",{get:function(){return this.sizeDirty=!0,this._size}})}(); |