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"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;eo[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;n0&&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;s0)for(;r1?"$"+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=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=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=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-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 et?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 et?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=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()-n2147483647););},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;l0)for(var n=0;n=0;o--)if(c[o].name===t){a=c[o];break}for(var l=Array.isArray(n)?n:[n],h=0;h=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;d0)for(var h=0;h0)for(h=0;h0)for(var d=0;d=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;n0)for(var s=0;s0){Bridge.Reflection.deferredMeta=[];for(var i=0;i1?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-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"})));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;s1)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=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;a1);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=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=0;m--){for(var u=o[m].trim(),h=!1,d=0;d=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;dt},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: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;e0|-(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)=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&&p0?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.lengthi&&(h=h.substr(0,i+1))):n>0&&(h=_[a+"DecimalSeparator"]+Array(n+1).join("0")),u=S[c=0],o.lengthi)&&(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)||36l?(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>>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;0this.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>>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<>>32-e,this.unsigned):s(0,this.low<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>>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;t0){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;in-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.e0?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)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;++s17)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.e0?(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[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;ea;)(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<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]0;--i)h[l++]=0;for(i=g.length;i>a;){if(h[--i]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||n0?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]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++=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=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;t0&&m>0){for(r=m%o||o,u=d.substr(0,r);r0&&(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>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;a3?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=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=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=0;)n[i+r]=e[t+r];else for(var s=0;s-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;tr){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>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;on||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;ie.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=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&&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;n65535?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-te.length&&(n=e.length-t);for(var r=0;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=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=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;r0?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;ie.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, 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)":"unionWith","IntersectWith(IEnumerable)":"intersectWith","ExceptWith(IEnumerable)":"exceptWith","SymmetricExceptWith(IEnumerable)":"symmetricExceptWith","SymmetricExceptWithSameEC(ISet)":"SymmetricExceptWithSameEC$1","IsSubsetOf(IEnumerable)":"isSubsetOf","IsProperSubsetOf(IEnumerable)":"isProperSubsetOf","IsSupersetOf(IEnumerable)":"isSupersetOf","IsProperSupersetOf(IEnumerable)":"isProperSupersetOf","SetEquals(IEnumerable)":"setEquals","Overlaps(IEnumerable)":"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, SortedSet)":"equals2","Equals(Object)":"equals","GetHashCode(SortedSet)":"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, 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, LinkedListNode)":"AddAfter$1","AddBefore(LinkedListNode, LinkedListNode)":"AddBefore$1","AddFirst(LinkedListNode)":"AddFirst$1","AddLast(LinkedListNode)":"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=0},DJa$:function(e){if(null==e){for(var n=0;n=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=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=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=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;r0?(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=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>>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>>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.index0){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)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>>0>2146435071&&(n=2146435071),n>>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=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;nthis.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>>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$)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$)return 0;for(var i=n+1|0;i>>0>=this.ZJa$>>>0)throw new Z$.qu$.ctor;this.ZJa$=this.ZJa$-1|0,t0&&(this.ZJa$,this.ZJa$=this.ZJa$-n|0,t0)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$0&&Z$.Array.copy(this.DOa$,0,t,0,this.ZJa$),t}},overloads:{"Add(T)":"add","BinarySearch(int, int, T, IComparer)":"BinarySearch$2","BinarySearch(T, IComparer)":"BinarySearch$1","Clear()":"clear","Contains(T)":"contains","CopyTo(int, T[], int, int)":"CopyTo$1","CopyTo(T[], int)":"copyTo","FindIndex(Predicate)":"FindIndex$2","FindIndex(int, Predicate)":"FindIndex$1","FindLastIndex(Predicate)":"FindLastIndex$2","FindLastIndex(int, Predicate)":"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)":"Sort$1","Sort(int, int, IComparer)":"Sort$3","Sort(Comparison)":"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;i0?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;i0?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=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;t0?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;r0}}}),$$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=$&&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;h0;)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:ee||s.toNumber()e||s.toNumber()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.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>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>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")){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(.*)/);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=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++")}))},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 r0: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&&e0?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 i0&&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>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=0&&e=0&&e"9"||n<"0")return-1;r*=10,r+=n-"0"}return r>=0&&r0&&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;n0&&-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=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&&e0}}),$$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());at.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;s0&&(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=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.index1){for(a=0;at.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;o0&&(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;sg);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(s0&&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;n0},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;n0&&!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;i1&&(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":i.isNonbacktracking=!0;break;case"?<=":i.isPositiveLookbehind=!0;break;case"?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=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;oe.length)throw new Z$.qu$.$ctor1("startIndex");if(ie.length)throw new Z$.qu$.$ctor1("endIndex");var r,s,a,o=Z$.h$.g$.oy$,l=o.W$,c=[];for(a=n;a=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":"'",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="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;gy){$=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;ti);n++);h.splice(n,0,{n:i,m:r})}else h.push({n:i,m:r})}for(t=0;t1+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;_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":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=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;n0&&(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);ot&&(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=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)":"unionWith","IntersectWith(IEnumerable)":"intersectWith","ExceptWith(IEnumerable)":"exceptWith","SymmetricExceptWith(IEnumerable)":"symmetricExceptWith","IsSubsetOf(IEnumerable)":"isSubsetOf","IsProperSubsetOf(IEnumerable)":"isProperSubsetOf","IsSupersetOf(IEnumerable)":"isSupersetOf","IsProperSupersetOf(IEnumerable)":"isProperSupersetOf","Overlaps(IEnumerable)":"overlaps","SetEquals(IEnumerable)":"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>>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=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)":"equalsT","CompareTo(ValueTuple)":"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)":"equalsT","CompareTo(ValueTuple)":"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)":"equalsT","CompareTo(ValueTuple)":"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)":"equalsT","CompareTo(ValueTuple)":"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)":"equalsT","CompareTo(ValueTuple)":"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)":"equalsT","CompareTo(ValueTuple)":"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)":"equalsT","CompareTo(ValueTuple)":"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)":"equalsT","CompareTo(ValueTuple)":"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;t0?this.innerExceptions.getItem(0):null)},X$:function(e){Bridge.hasValue(e);for(var t=this.innerExceptions.Count,n=[],i=0;i0)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;en;)for(var i=t.getItem(n++).innerExceptions,r=i.Count,s=0;s>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>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;rnew 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{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=s)&&Object.keys(i.O).every((e=>i.O[e](n[l])))?n.splice(l--,1):(o=!1,s0&&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{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?(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{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)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()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=1)return this.copy(e).normalize().scale(a*r+n*s);const l=Math.acos(o);if(l=1)return this.copy(e).normalize().scale(s*i+n*r);const o=Math.acos(a);if(o_.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;Eu&&(u=T),vd&&(d=I),xg&&(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.xn.x||e.yn.y||e.zn.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;si.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;iNumber.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;tt.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=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;e0&&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{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>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.")||e.includes("Class.")));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;it?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;ee.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=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;e0){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;so&&(w.x=o),w.y>l&&(w.y=l),w.z>c&&(w.z=c),D.xthis.weights[e]));this._vertexData.set(this.morph._baseData);for(let e=0;e1){if(is[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;n0?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=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;it.maxVertexAttributes?t.maxVertexAttributes:this.attributes.length;for(let r=0;r=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;tt||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{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{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{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;e4&&(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,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;e0&&l.push(t);const n=t.model.meshInstances;for(let e=0;e=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;n0?this.scene.addCanvasDepthConsumer(this):this.scene.removeCanvasDepthConsumer(this)}checkDirtyAndUpdateHierarchy(){this.updateModel();for(let e=0;e]*>/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;i0?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;t0){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._fontSizeo&&(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;r0&&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;e0&&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;n0&&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;hi){const e=this._splitWord(d,t,n,i);for(let t=0;ts[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>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;e0&&t++,this._canvasGroups.splice(t,0,e);const n=this.entity.children;for(let i=0;i-1&&this._canvasGroups.splice(t,1);const n=this.entity.children;for(let t=0;t1||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;e0,r&&(t.maskingDepth++,t.ref=(1<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=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;se.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-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;s4||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;r1&&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;tthis.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;uc.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;nt&&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;e0&&(this.attributesInvalidated=!0),this.setBuffers(t,i),this.geometryStateManager.applyState(this.activeDrawCall);let h=0;for(let e=0,t=o.length;e0?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{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.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<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{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=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;e2&&(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=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=0)return;const i=new Float32Array(t.storage),r=[];for(let e=0;ee.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.x0?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;nb?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;e0&&(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;s0&&(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{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{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=s.nextId||e<0)return;const t=Math.floor(e/i),n=1<=s.nextId||e<0)return;const t=Math.floor(e/i),n=1<=s.nextId||e<0)return!1;const t=Math.floor(e/i),n=1<>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{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{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{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;e0&&(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;t0?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;ee.name.toLowerCase()===t.pass.toLowerCase()));n&&this.passes.push(n)}}setupDefaultParameters(){this.defaultParameterNames={};for(let e=0;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;ee+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;e0?`\tVariants:\n ${n.variants.map((t=>`\t(${e})${i.c.shaderPassToLightmode[n.lightMode]}: `+(t.keywords.getEnabledKeywords().toString()||"")+(n.isVariantExcluded(t)?" (excluded)":""))).join("\n")}\n`:`\t(${e})${i.c.shaderPassToLightmode[n.lightMode]}: \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{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{const n=Deserializers.requiredComponents[e];if(n&&0!==n.length)for(let e=0;e=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)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=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.timee.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].timee||this.keys[n+1].timee)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=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;te)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;n0&&this._invokeQueue(e,t,n),r||(this.queues[e].processing=!1)}_onComponentEnabled(e){const t=e._queuesToSubscribe();for(let n=0;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{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=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;e0;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="+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;i2500&&n.push(r)}},uiElementsSort:(e,t)=>e.drawOrder-t.drawOrder,calculateSortDistances(e,t,n){for(let i=0;ie.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.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{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")+", 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;re.material.$id-t.material.$id)),n}renderDrawCalls(e){let t=null,n=null;const i=b.keywords;for(let r=0;r0?1:0,1);for(let i=0;ia)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=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"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;n0&&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=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;n1?(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;t0;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"),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?"":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=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;e1){for(l.instancingData={count:h-o,offset:4*i,_buffer:gt},l._shaderDefs|=r.c.SHADERDEF_INSTANCING,s=o;s0){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;e0?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.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=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;te&&(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<=0&&(h[o]=h[h.length-1],h.length-=1),h.sort(c);let f=0;for(f=0;f=s)break;if(e._renderMode===UnityEngine.LightRenderMode.ForceVertex||a)break;n.pixelLights.push(e)}for(;f=4)break;e._type===i.c.LIGHTTYPE_DIRECTIONAL?n.otherLights.push(e):n.vertexLights.push(e)}}for(;fe-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;i200?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.byteCapacity0){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{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+this._target.clientWidth||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;twindow.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._graphDepth||null===e.parent)return!1;let n=e;for(let e=0;e=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{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=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{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{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=0;e--)null!==this.bones[e]&&e=0;t--)if(t{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{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;tthis.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;a0?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;t0&&(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{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{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;t1&&([c[1],c[e]]=[c[e],c[1]]);for(let t=0;tUnityEngine.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;eUnityEngine.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{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;ne.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;ee.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{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;t1;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;t0&&(s.curves[t].objectCurve=!0)}const h=i[Re.events];s.events=Array(h.length);for(let t=0;t{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{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{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{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{c=c.concat(n.json[o]||[])}))}for(let n=0;nrt.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;te._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{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{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;t0;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;ee._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{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;ethis.range.y?1:mthis.range.y?1:mn&&(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=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;tt&&(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;eQ.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;ee.range.y?r=1: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;ethis.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;ethis._range.y?1:d0?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;ige.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;sthis.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;e0){const e=this.entity.getWorldTransform();for(let n=0;nthis.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;i0}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;tthis._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;e0&&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;eo[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=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{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=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;t0}}},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)i.x&&d.m_YMax>i.y&&d.m_XMin0;){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)":"GetComponentsInChildren$3","GetComponentsInChildren(Type, bool)":"GetComponentsInChildren$4","GetComponentsInChildren(bool, List)":"GetComponentsInChildren$2","GetComponentInChildren(Type, bool)":"GetComponentInChildren$1","GetComponent(Type)":"GetComponent$1","GetComponents(Type)":"GetComponents$3","GetComponents(List)":"GetComponents$2","GetComponents(Type, List)":"GetComponents$1","GetComponentsInParent(bool, List)":"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, bool)":"GetComponents$2","GetComponents(Type, List, 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)":"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)":"GetUVs$1","GetUVs(int, List)":"GetUVs$2","SetUVs(int, List)":"SetUVs$1","SetUVs(int, List)":"SetUVs$2","SetUVs(int, Vector2[])":"SetUVs$3","SetUVs(int, Vector3[])":"SetUVs$4","SetUVs(int, Vector4[])":"SetUVs$5","GetColors(List)":"GetColors$1","SetColors(List)":"SetColors$1","GetIndices(List, 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, bool, int)":"SetTriangles$1","SetTriangles(int[], int, int, int, bool, int)":"SetTriangles$4","GetTriangles(int, bool)":"GetTriangles$1","GetTriangles(List, int, bool)":"GetTriangles$3","GetTriangles(List, 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=.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;ek__BackingField",t:4,rt:$n[1].Vector3,sn:"center"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Vector3,sn:"halfExtents"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Vector3,sn:"max"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Vector3,sn:"min"},{a:1,backing:!0,n:"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:"k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"black"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"blue"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"clear"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"cyan"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Color,sn:"gamma"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"gray"},{a:1,backing:!0,n:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"green"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"grey"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Color,sn:"linear"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"magenta"},{a:1,backing:!0,n:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"red"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Color,sn:"white"},{a:1,backing:!0,n:"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:"k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"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:"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:"k__BackingField",t:4,rt:$n[1].FrustumPlanes,sn:"decomposeProjection"},{a:1,backing:!0,n:"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:"k__BackingField",t:4,rt:$n[1].Vector3,sn:"eulerAngles"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Matrix4x4,sn:"identity"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Matrix4x4,sn:"inverse"},{a:1,backing:!0,n:"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:"k__BackingField",t:4,rt:$n[1].Vector3,sn:"lossyScale"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Quaternion,sn:"rotation"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Vector3,sn:"translation"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Matrix4x4,sn:"transpose"},{a:1,backing:!0,n:"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:"k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"Data"},{a:1,backing:!0,n:"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:"k__BackingField",t:4,rt:$n[1].Quaternion,sn:"conjugate"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Vector3,sn:"eulerAngles"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Quaternion,sn:"identity"},{a:1,backing:!0,n:"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:"k__BackingField",t:4,rt:$n[1].Quaternion,sn:"normalized"},{a:1,backing:!0,n:"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:"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:"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:"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:"k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"down"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"left"},{a:1,backing:!0,n:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"negativeInfinity"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Vector2,sn:"normalized"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"one"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"positiveInfinity"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"right"},{a:1,backing:!0,n:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Vector2,sn:"up"},{a:1,backing:!0,n:"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:"k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"back"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedBack"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedDown"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedForward"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedLeft"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedNegativeInfinity"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedOne"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedPositiveInfinity"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedRight"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedUp"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"cachedZero"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"down"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"forward"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"fwd"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"left"},{a:1,backing:!0,n:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"negativeInfinity"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Vector3,sn:"normalized"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"one"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"positiveInfinity"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"right"},{a:1,backing:!0,n:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"up"},{a:1,backing:!0,n:"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:"k__BackingField",t:4,rt:$n[0].Array.type(System.Single),sn:"data"},{a:1,backing:!0,n:"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:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Vector4,sn:"negativeInfinity"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:$n[1].Vector4,sn:"normalized"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector4,sn:"one"},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].Vector4,sn:"positiveInfinity"},{a:1,backing:!0,n:"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:"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:"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:"k__BackingField",is:!0,t:4,rt:$n[1].AnisotropicFiltering,sn:"anisotropicFiltering",box:function(e){}},{a:1,backing:!0,n:"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:"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:"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:"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:"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:"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:"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:"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:"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:"k__BackingField",is:!0,t:4,rt:$n[0].Array.type(System.String),sn:"names"},{a:1,backing:!0,n:"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:"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:"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:"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:"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:"k__BackingField",is:!0,t:4,rt:$n[1].Vector3,sn:"shadowCascade4Split"},{a:1,backing:!0,n:"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:"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:"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:"k__BackingField",is:!0,t:4,rt:$n[1].ShadowProjection,sn:"shadowProjection",box:function(e){}},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].ShadowResolution,sn:"shadowResolution",box:function(e){}},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].ShadowmaskMode,sn:"shadowmaskMode",box:function(e){}},{a:1,backing:!0,n:"k__BackingField",is:!0,t:4,rt:$n[1].ShadowQuality,sn:"shadows",box:function(e){}},{a:1,backing:!0,n:"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:"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:"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:"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:"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:"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:"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:"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:"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;s0},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;r0)for(var r=0;r=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;o0,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;t0?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=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;iSelected:",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(t0?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=8)return UnityEngine.Debug.LogWarning$1("Attempting to use a stencil mask with depth > 8",this.gameObject),e;var i=1<0},IsScrolling:function(){return this.scrollDelta.lengthSq()>0},toString:function(){return sb.appendLine("Position: "+this.position),sb.appendLine("delta: "+this.delta),sb.appendLine("eligibleForClick: "+System.Boolean.toString(this.eligibleForClick)),sb.appendLine(System.String.concat("pointerEnter: ",this.pointerEnter)),sb.appendLine(System.String.concat("pointerPress: ",this.pointerPress)),sb.appendLine(System.String.concat("lastPointerPress: ",this.lastPress)),sb.appendLine(System.String.concat("pointerDrag: ",this.pointerDrag)),sb.appendLine("Use Drag Threshold: "+System.Boolean.toString(this.useDragThreshold)),sb.appendLine("Current Raycast:"),sb.appendLine(Bridge.toString(this.pointerCurrentRaycast)),sb.appendLine("Press Raycast:"),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("Pointer: "+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=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;si&&(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&&s1||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;$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;t0&&(UnityEngine.MonoBehaviour.op_Equality(i,null)||!i.IsActive())){var r=UnityEngine.UI.StencilMaterial.Add$2(t,(1<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.xthis.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;e0},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;c0&&(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;o0?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)this.GetTotalPreferredSize(e)&&this.GetTotalFlexibleSize(e)>0&&(y=(n-this.GetTotalPreferredSize(e))/this.GetTotalFlexibleSize(e));for(var f=0;f1e-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))+10&&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;ithis.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)%e0?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;n0&&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;rs)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=t.characterCountVisible);s++){var a=t.characters.getItem(s),o=a.cursorPos.$clone().scale(1/this.m_TextComponent.pixelsPerUnit);if(e.x-o.xn.yMax?this.MoveUp$1(!0,!0):t.v.yn.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;ne)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=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=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.caretPositionInternal0&&(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=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_DrawEndthis.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{et.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 et.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(ithis.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;d0&&pi){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&&cthis.m_TextComponent.rectTransform.rect.xMax||m.x0&&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))||t0&&(32===e.charCodeAt(t-1)||39===e.charCodeAt(t-1))||t=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;t0){var i=UnityEngine.UI.StencilMaterial.Add$2(t,(1<0){var e=subTextObjects.length;this.m_subTextObjects.length;for(var t=0;t0)for(var n=0;n0?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;n65535?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;_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;b1e-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;z5&&(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_characterCount0){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=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_AutoSizeIterationCountthis.m_fontSizeMin&&this.m_AutoSizeIterationCountI+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||Me0&&(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_AutoSizeIterationCountI+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_AutoSizeIterationCount0&&(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_AutoSizeIterationCount0&&(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)&&Qethis.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=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_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_ElementDescender0&&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.051&&this.m_fontSize=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;GtO.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:}Gt0&&Gtthis.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&&Gtthis.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&&Gtpn?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&&Gtthis.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;Tnr.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;t0?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;u0;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;y0)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>>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;S0)for(var B=0;B-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-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;BDOTWEEN ► "}},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;t0){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;rDG.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,s0&&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-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)}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;y0?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-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.completedLoopss?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.position0&&i===DG.Tweening.Core.Enums.UpdateMode.Update&&!Bridge.staticEquals(e.onStepComplete,null))for(var d=0;d1}}},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, DOSetter, 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, 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;i1)&&e.loopType===DG.Tweening.LoopType.Yoyo&&(a0){var h=e.completedLoops,d=e.position,m=i,g=0;if(l=a,s===DG.Tweening.Core.Enums.UpdateMode.Update){for(;g0?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-1;--c){if(!e.active)return!0;if(!e.isPlaying&&o)return!1;var u=e._sequencedObjs.getItem(c);if(!(u.sequencedEndPositiont))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.completedLoopsn||p.sequencedPosition>0&&p.sequencedEndPosition<=t||p.sequencedPosition<=0&&p.sequencedEndPosition=p.sequencedEndPosition&&(f.startupDone||DG.Tweening.Core.TweenManager.ForceInit(f,!0),y0&&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, 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.Count0&&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._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=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=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;s0&&(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.staget.stage?1:e.sub_stagek__BackingField",t:4,rt:i[2].Vector3,sn:"_targetPos"},{a:1,backing:!0,n:"k__BackingField",t:4,rt:i[0].Int32,sn:"originalDataOrder",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"k__BackingField",t:4,rt:i[0].Int32,sn:"originalOrder",box:function(e){return Bridge.box(e,System.Int32)}},{a:1,backing:!0,n:"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:"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}})}();