diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 76a0452a..21168559 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,7 @@ +# Contribution Guidelines + +[Back to documentation](/README.md?id=banter-sdk-contributions) + ### Introduction You can contribute by submitting your own components to be added to the Banter SDK so you can use them in your spaces. There are two types of components diff --git a/Editor/Components/BanterGrabHandleEditor.cs b/Editor/Components/BanterGrabHandleEditor.cs new file mode 100644 index 00000000..2fed3973 --- /dev/null +++ b/Editor/Components/BanterGrabHandleEditor.cs @@ -0,0 +1,55 @@ +using UnityEditor; +using UnityEngine; +using UnityEngine.UIElements; +using Banter.SDK; + +namespace Banter.SDKEditor +{ + [CustomEditor(typeof(BanterGrabHandle))] + public class BanterGrabHandleEditor : Editor + { + void OnEnable() + { + if (target is BanterGrabHandle) + { + var script = (BanterGrabHandle)target; + // script.gameObject.GetComponent().hideFlags = HideFlags.HideInInspector; + var path = AssetDatabase.GetAssetPath(script); + } + } + public override bool UseDefaultMargins() => false; + public override VisualElement CreateInspectorGUI() + { + var script = (BanterGrabHandle)target; + Editor editor = Editor.CreateEditor(script); + // script.gameObject.GetComponent().hideFlags = HideFlags.HideInInspector; + VisualElement myInspector = new VisualElement(); + + var _mainWindowStyleSheet = Resources.Load("BanterCustomInspector"); + myInspector.styleSheets.Add(_mainWindowStyleSheet); + + var title = new Label("PROPERTIES SEEN BY JS"); + title.style.fontSize = 14; + myInspector.Add(title); + var seeFields = new Label("grabType, grabRadius, "); + seeFields.style.unityFontStyleAndWeight = FontStyle.Bold; + seeFields.style.flexWrap = Wrap.Wrap; + seeFields.style.whiteSpace = WhiteSpace.Normal; + seeFields.style.marginBottom = 10; + seeFields.style.marginTop = 10; + seeFields.style.color = Color.gray; + myInspector.Add(seeFields); + + //#if BANTER_EDITOR + var foldout = new Foldout(); + foldout.text = "Available Properties"; + IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); + foldout.value = false; + foldout.Add(inspectorIMGUI); + myInspector.Add(foldout); + //#endif + + return myInspector; + } + } +} diff --git a/Editor/Components/BanterGrabHandleEditor.cs.meta b/Editor/Components/BanterGrabHandleEditor.cs.meta new file mode 100644 index 00000000..1983907e --- /dev/null +++ b/Editor/Components/BanterGrabHandleEditor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d5e9847ba3137344b8f1d383de5fce46 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/Components/BanterHeldEventsEditor.cs b/Editor/Components/BanterHeldEventsEditor.cs new file mode 100644 index 00000000..5016039b --- /dev/null +++ b/Editor/Components/BanterHeldEventsEditor.cs @@ -0,0 +1,55 @@ +using UnityEditor; +using UnityEngine; +using UnityEngine.UIElements; +using Banter.SDK; + +namespace Banter.SDKEditor +{ + [CustomEditor(typeof(BanterHeldEvents))] + public class BanterHeldEventsEditor : Editor + { + void OnEnable() + { + if (target is BanterHeldEvents) + { + var script = (BanterHeldEvents)target; + // script.gameObject.GetComponent().hideFlags = HideFlags.HideInInspector; + var path = AssetDatabase.GetAssetPath(script); + } + } + public override bool UseDefaultMargins() => false; + public override VisualElement CreateInspectorGUI() + { + var script = (BanterHeldEvents)target; + Editor editor = Editor.CreateEditor(script); + // script.gameObject.GetComponent().hideFlags = HideFlags.HideInInspector; + VisualElement myInspector = new VisualElement(); + + var _mainWindowStyleSheet = Resources.Load("BanterCustomInspector"); + myInspector.styleSheets.Add(_mainWindowStyleSheet); + + var title = new Label("PROPERTIES SEEN BY JS"); + title.style.fontSize = 14; + myInspector.Add(title); + var seeFields = new Label("sensitivity, fireRate, auto, blockThumbstick, blockPrimary, blockSecondary, blockThumbstickClick, "); + seeFields.style.unityFontStyleAndWeight = FontStyle.Bold; + seeFields.style.flexWrap = Wrap.Wrap; + seeFields.style.whiteSpace = WhiteSpace.Normal; + seeFields.style.marginBottom = 10; + seeFields.style.marginTop = 10; + seeFields.style.color = Color.gray; + myInspector.Add(seeFields); + + //#if BANTER_EDITOR + var foldout = new Foldout(); + foldout.text = "Available Properties"; + IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); + foldout.value = false; + foldout.Add(inspectorIMGUI); + myInspector.Add(foldout); + //#endif + + return myInspector; + } + } +} diff --git a/Editor/Components/BanterHeldEventsEditor.cs.meta b/Editor/Components/BanterHeldEventsEditor.cs.meta new file mode 100644 index 00000000..63655868 --- /dev/null +++ b/Editor/Components/BanterHeldEventsEditor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ac026a26dc8681d4c9afad33129e8b15 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/Components/BanterWorldObjectEditor.cs b/Editor/Components/BanterWorldObjectEditor.cs new file mode 100644 index 00000000..1acaeccc --- /dev/null +++ b/Editor/Components/BanterWorldObjectEditor.cs @@ -0,0 +1,44 @@ +using UnityEditor; +using UnityEngine; +using UnityEngine.UIElements; +using Banter.SDK; + +namespace Banter.SDKEditor +{ + [CustomEditor(typeof(BanterWorldObject))] + public class BanterWorldObjectEditor : Editor + { + void OnEnable() + { + if (target is BanterWorldObject) + { + var script = (BanterWorldObject)target; + // script.gameObject.GetComponent().hideFlags = HideFlags.HideInInspector; + var path = AssetDatabase.GetAssetPath(script); + } + } + public override bool UseDefaultMargins() => false; + public override VisualElement CreateInspectorGUI() + { + var script = (BanterWorldObject)target; + Editor editor = Editor.CreateEditor(script); + // script.gameObject.GetComponent().hideFlags = HideFlags.HideInInspector; + VisualElement myInspector = new VisualElement(); + + var _mainWindowStyleSheet = Resources.Load("BanterCustomInspector"); + myInspector.styleSheets.Add(_mainWindowStyleSheet); + + + //#if BANTER_EDITOR + var foldout = new Foldout(); + foldout.text = "Available Properties"; + IMGUIContainer inspectorIMGUI = new IMGUIContainer(() => { editor.OnInspectorGUI(); }); + foldout.value = false; + foldout.Add(inspectorIMGUI); + myInspector.Add(foldout); + //#endif + + return myInspector; + } + } +} diff --git a/Editor/Components/BanterWorldObjectEditor.cs.meta b/Editor/Components/BanterWorldObjectEditor.cs.meta new file mode 100644 index 00000000..702c342c --- /dev/null +++ b/Editor/Components/BanterWorldObjectEditor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 27eb1a30ccdeeff42b6411f82c9d65ae +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/InitialiseOnLoad.cs b/Editor/InitialiseOnLoad.cs index dc461553..3c9f6c30 100644 --- a/Editor/InitialiseOnLoad.cs +++ b/Editor/InitialiseOnLoad.cs @@ -112,7 +112,7 @@ public static void SetupLayersAndTags() if (ulayer == null || ulayer.stringValue != layer.Value) { isMissing = true; - missingLayers.Add("L" + layer.Key + ": " + layer.Value); + missingLayers.Add(layer.Value); } } @@ -124,11 +124,11 @@ public static void SetupLayersAndTags() if (utag == null || utag.stringValue != tag.Value) { isMissing = true; - missingTags.Add("T" + tag.Key + ": " + tag.Value); + missingTags.Add(tag.Value); } } - if (isMissing && EditorUtility.DisplayDialog("Missing Banter Layers/Tags", "Do you want to setup Banter layers and tags automatically?\nThese are required when using Banter specific features.\n Please back up your project first!" + (missingLayers.Count > 0 ? "\nLayers:\n" : "") + string.Join("\n", missingLayers) + (missingTags.Count > 0 ? "\nTags:\n" : "") + string.Join("\n", missingTags), "Yes", "No")) + if (isMissing && EditorUtility.DisplayDialog("Missing Banter Layers/Tags", "Do you want to setup Banter layers and tags automatically?\nThese are required when using Banter specific features.\n Please back up your project first!" + (missingLayers.Count > 0 ? "\n\nLayers:\n" : "") + string.Join(", ", missingLayers) + (missingTags.Count > 0 ? "\n\nTags:\n" : "") + string.Join(", ", missingTags), "Yes", "No")) { foreach (var layer in layersToAdd) { diff --git a/Editor/Scripts/VisualScripting/VsStubsAllowed.cs b/Editor/Scripts/VisualScripting/VsStubsAllowed.cs index 208d31cb..5da148b9 100644 --- a/Editor/Scripts/VisualScripting/VsStubsAllowed.cs +++ b/Editor/Scripts/VisualScripting/VsStubsAllowed.cs @@ -7016,6 +7016,845 @@ public struct VsStubsAllowed "TMPro.TextMeshPro.tag", "TMPro.TextMeshPro.name", "TMPro.TextMeshPro.hideFlags", + "TMPro.TextMeshProUGUI.CalculateLayoutInputHorizontal", + "TMPro.TextMeshProUGUI.CalculateLayoutInputVertical", + "TMPro.TextMeshProUGUI.SetVerticesDirty", + "TMPro.TextMeshProUGUI.SetLayoutDirty", + "TMPro.TextMeshProUGUI.SetMaterialDirty", + "TMPro.TextMeshProUGUI.SetAllDirty", + "TMPro.TextMeshProUGUI.Rebuild", + "TMPro.TextMeshProUGUI.GetModifiedMaterial", + "TMPro.TextMeshProUGUI.RecalculateClipping", + "TMPro.TextMeshProUGUI.Cull", + "TMPro.TextMeshProUGUI.UpdateMeshPadding", + "TMPro.TextMeshProUGUI.ForceMeshUpdate", + "TMPro.TextMeshProUGUI.GetTextInfo", + "TMPro.TextMeshProUGUI.ClearMesh", + "TMPro.TextMeshProUGUI.UpdateGeometry", + "TMPro.TextMeshProUGUI.UpdateVertexData", + "TMPro.TextMeshProUGUI.UpdateFontAsset", + "TMPro.TextMeshProUGUI.ComputeMarginSize", + "TMPro.TextMeshProUGUI.SetVertices", + "TMPro.TextMeshProUGUI.CrossFadeColor", + "TMPro.TextMeshProUGUI.CrossFadeAlpha", + "TMPro.TextMeshProUGUI.SetText", + "TMPro.TextMeshProUGUI.SetCharArray", + "TMPro.TextMeshProUGUI.GetPreferredValues", + "TMPro.TextMeshProUGUI.GetRenderedValues", + "TMPro.TextMeshProUGUI.GetParsedText", + "TMPro.TextMeshProUGUI.SetClipRect", + "TMPro.TextMeshProUGUI.SetClipSoftness", + "TMPro.TextMeshProUGUI.RecalculateMasking", + "TMPro.TextMeshProUGUI.SetRaycastDirty", + "TMPro.TextMeshProUGUI.OnCullingChanged", + "TMPro.TextMeshProUGUI.LayoutComplete", + "TMPro.TextMeshProUGUI.GraphicUpdateComplete", + "TMPro.TextMeshProUGUI.SetNativeSize", + "TMPro.TextMeshProUGUI.Raycast", + "TMPro.TextMeshProUGUI.PixelAdjustPoint", + "TMPro.TextMeshProUGUI.GetPixelAdjustedRect", + "TMPro.TextMeshProUGUI.RegisterDirtyLayoutCallback", + "TMPro.TextMeshProUGUI.UnregisterDirtyLayoutCallback", + "TMPro.TextMeshProUGUI.RegisterDirtyVerticesCallback", + "TMPro.TextMeshProUGUI.UnregisterDirtyVerticesCallback", + "TMPro.TextMeshProUGUI.RegisterDirtyMaterialCallback", + "TMPro.TextMeshProUGUI.UnregisterDirtyMaterialCallback", + "TMPro.TextMeshProUGUI.IsActive", + "TMPro.TextMeshProUGUI.IsDestroyed", + "TMPro.TextMeshProUGUI.IsInvoking", + "TMPro.TextMeshProUGUI.CancelInvoke", + "TMPro.TextMeshProUGUI.Invoke", + "TMPro.TextMeshProUGUI.InvokeRepeating", + "TMPro.TextMeshProUGUI.StartCoroutine", + "TMPro.TextMeshProUGUI.StopCoroutine", + "TMPro.TextMeshProUGUI.StopAllCoroutines", + "TMPro.TextMeshProUGUI.print", + "TMPro.TextMeshProUGUI.GetComponent", + "TMPro.TextMeshProUGUI.GetComponentInChildren", + "TMPro.TextMeshProUGUI.GetComponentsInChildren", + "TMPro.TextMeshProUGUI.GetComponentInParent", + "TMPro.TextMeshProUGUI.GetComponentsInParent", + "TMPro.TextMeshProUGUI.GetComponents", + "TMPro.TextMeshProUGUI.GetComponentIndex", + "TMPro.TextMeshProUGUI.CompareTag", + "TMPro.TextMeshProUGUI.Equals", + "TMPro.TextMeshProUGUI.op_Implicit", + "TMPro.TextMeshProUGUI.Instantiate", + "TMPro.TextMeshProUGUI.Destroy", + "TMPro.TextMeshProUGUI.FindObjectsByType", + "TMPro.TextMeshProUGUI.FindFirstObjectByType", + "TMPro.TextMeshProUGUI.FindAnyObjectByType", + "TMPro.TextMeshProUGUI.ToString", + "TMPro.TextMeshProUGUI.ReferenceEquals", + "TMPro.TextMeshProUGUI.materialForRendering", + "TMPro.TextMeshProUGUI.autoSizeTextContainer", + "TMPro.TextMeshProUGUI.mesh", + "TMPro.TextMeshProUGUI.canvasRenderer", + "TMPro.TextMeshProUGUI.maskOffset", + "TMPro.TextMeshProUGUI.text", + "TMPro.TextMeshProUGUI.textPreprocessor", + "TMPro.TextMeshProUGUI.isRightToLeftText", + "TMPro.TextMeshProUGUI.font", + "TMPro.TextMeshProUGUI.fontSharedMaterial", + "TMPro.TextMeshProUGUI.fontSharedMaterials", + "TMPro.TextMeshProUGUI.fontMaterial", + "TMPro.TextMeshProUGUI.fontMaterials", + "TMPro.TextMeshProUGUI.color", + "TMPro.TextMeshProUGUI.alpha", + "TMPro.TextMeshProUGUI.enableVertexGradient", + "TMPro.TextMeshProUGUI.colorGradient", + "TMPro.TextMeshProUGUI.colorGradientPreset", + "TMPro.TextMeshProUGUI.spriteAsset", + "TMPro.TextMeshProUGUI.tintAllSprites", + "TMPro.TextMeshProUGUI.styleSheet", + "TMPro.TextMeshProUGUI.textStyle", + "TMPro.TextMeshProUGUI.overrideColorTags", + "TMPro.TextMeshProUGUI.faceColor", + "TMPro.TextMeshProUGUI.outlineColor", + "TMPro.TextMeshProUGUI.outlineWidth", + "TMPro.TextMeshProUGUI.fontSize", + "TMPro.TextMeshProUGUI.fontWeight", + "TMPro.TextMeshProUGUI.pixelsPerUnit", + "TMPro.TextMeshProUGUI.enableAutoSizing", + "TMPro.TextMeshProUGUI.fontSizeMin", + "TMPro.TextMeshProUGUI.fontSizeMax", + "TMPro.TextMeshProUGUI.fontStyle", + "TMPro.TextMeshProUGUI.isUsingBold", + "TMPro.TextMeshProUGUI.horizontalAlignment", + "TMPro.TextMeshProUGUI.verticalAlignment", + "TMPro.TextMeshProUGUI.alignment", + "TMPro.TextMeshProUGUI.characterSpacing", + "TMPro.TextMeshProUGUI.wordSpacing", + "TMPro.TextMeshProUGUI.lineSpacing", + "TMPro.TextMeshProUGUI.lineSpacingAdjustment", + "TMPro.TextMeshProUGUI.paragraphSpacing", + "TMPro.TextMeshProUGUI.characterWidthAdjustment", + "TMPro.TextMeshProUGUI.enableWordWrapping", + "TMPro.TextMeshProUGUI.wordWrappingRatios", + "TMPro.TextMeshProUGUI.overflowMode", + "TMPro.TextMeshProUGUI.isTextOverflowing", + "TMPro.TextMeshProUGUI.firstOverflowCharacterIndex", + "TMPro.TextMeshProUGUI.linkedTextComponent", + "TMPro.TextMeshProUGUI.isTextTruncated", + "TMPro.TextMeshProUGUI.enableKerning", + "TMPro.TextMeshProUGUI.extraPadding", + "TMPro.TextMeshProUGUI.richText", + "TMPro.TextMeshProUGUI.parseCtrlCharacters", + "TMPro.TextMeshProUGUI.isOverlay", + "TMPro.TextMeshProUGUI.isOrthographic", + "TMPro.TextMeshProUGUI.enableCulling", + "TMPro.TextMeshProUGUI.ignoreVisibility", + "TMPro.TextMeshProUGUI.horizontalMapping", + "TMPro.TextMeshProUGUI.verticalMapping", + "TMPro.TextMeshProUGUI.mappingUvLineOffset", + "TMPro.TextMeshProUGUI.renderMode", + "TMPro.TextMeshProUGUI.geometrySortingOrder", + "TMPro.TextMeshProUGUI.isTextObjectScaleStatic", + "TMPro.TextMeshProUGUI.vertexBufferAutoSizeReduction", + "TMPro.TextMeshProUGUI.firstVisibleCharacter", + "TMPro.TextMeshProUGUI.maxVisibleCharacters", + "TMPro.TextMeshProUGUI.maxVisibleWords", + "TMPro.TextMeshProUGUI.maxVisibleLines", + "TMPro.TextMeshProUGUI.useMaxVisibleDescender", + "TMPro.TextMeshProUGUI.pageToDisplay", + "TMPro.TextMeshProUGUI.margin", + "TMPro.TextMeshProUGUI.textInfo", + "TMPro.TextMeshProUGUI.havePropertiesChanged", + "TMPro.TextMeshProUGUI.isUsingLegacyAnimationComponent", + "TMPro.TextMeshProUGUI.transform", + "TMPro.TextMeshProUGUI.rectTransform", + "TMPro.TextMeshProUGUI.isVolumetricText", + "TMPro.TextMeshProUGUI.bounds", + "TMPro.TextMeshProUGUI.textBounds", + "TMPro.TextMeshProUGUI.flexibleHeight", + "TMPro.TextMeshProUGUI.flexibleWidth", + "TMPro.TextMeshProUGUI.minWidth", + "TMPro.TextMeshProUGUI.minHeight", + "TMPro.TextMeshProUGUI.maxWidth", + "TMPro.TextMeshProUGUI.maxHeight", + "TMPro.TextMeshProUGUI.preferredWidth", + "TMPro.TextMeshProUGUI.preferredHeight", + "TMPro.TextMeshProUGUI.renderedWidth", + "TMPro.TextMeshProUGUI.renderedHeight", + "TMPro.TextMeshProUGUI.layoutPriority", + "TMPro.TextMeshProUGUI.onCullStateChanged", + "TMPro.TextMeshProUGUI.maskable", + "TMPro.TextMeshProUGUI.isMaskingGraphic", + "TMPro.TextMeshProUGUI.defaultGraphicMaterial", + "TMPro.TextMeshProUGUI.raycastTarget", + "TMPro.TextMeshProUGUI.raycastPadding", + "TMPro.TextMeshProUGUI.depth", + "TMPro.TextMeshProUGUI.canvas", + "TMPro.TextMeshProUGUI.defaultMaterial", + "TMPro.TextMeshProUGUI.material", + "TMPro.TextMeshProUGUI.mainTexture", + "TMPro.TextMeshProUGUI.destroyCancellationToken", + "TMPro.TextMeshProUGUI.useGUILayout", + "TMPro.TextMeshProUGUI.enabled", + "TMPro.TextMeshProUGUI.isActiveAndEnabled", + "TMPro.TextMeshProUGUI.gameObject", + "TMPro.TextMeshProUGUI.tag", + "TMPro.TextMeshProUGUI.name", + "TMPro.TextMeshProUGUI.hideFlags", + "TMPro.TMP_Asset.CreateInstance", + "TMPro.TMP_Asset.Equals", + "TMPro.TMP_Asset.op_Implicit", + "TMPro.TMP_Asset.Instantiate", + "TMPro.TMP_Asset.Destroy", + "TMPro.TMP_Asset.FindObjectsByType", + "TMPro.TMP_Asset.FindFirstObjectByType", + "TMPro.TMP_Asset.FindAnyObjectByType", + "TMPro.TMP_Asset.ToString", + "TMPro.TMP_Asset.ReferenceEquals", + "TMPro.TMP_Asset.instanceID", + "TMPro.TMP_Asset.name", + "TMPro.TMP_Asset.hideFlags", + "TMPro.TMP_Asset.hashCode", + "TMPro.TMP_Asset.material", + "TMPro.TMP_Asset.materialHashCode", + "TMPro.TMP_ColorGradient.CreateInstance", + "TMPro.TMP_ColorGradient.Equals", + "TMPro.TMP_ColorGradient.op_Implicit", + "TMPro.TMP_ColorGradient.Instantiate", + "TMPro.TMP_ColorGradient.Destroy", + "TMPro.TMP_ColorGradient.FindObjectsByType", + "TMPro.TMP_ColorGradient.FindFirstObjectByType", + "TMPro.TMP_ColorGradient.FindAnyObjectByType", + "TMPro.TMP_ColorGradient.ToString", + "TMPro.TMP_ColorGradient.ReferenceEquals", + "TMPro.TMP_ColorGradient.name", + "TMPro.TMP_ColorGradient.hideFlags", + "TMPro.TMP_ColorGradient.colorMode", + "TMPro.TMP_ColorGradient.topLeft", + "TMPro.TMP_ColorGradient.topRight", + "TMPro.TMP_ColorGradient.bottomLeft", + "TMPro.TMP_ColorGradient.bottomRight", + "TMPro.TMP_Dropdown.SetValueWithoutNotify", + "TMPro.TMP_Dropdown.RefreshShownValue", + "TMPro.TMP_Dropdown.AddOptions", + "TMPro.TMP_Dropdown.ClearOptions", + "TMPro.TMP_Dropdown.OnPointerClick", + "TMPro.TMP_Dropdown.OnSubmit", + "TMPro.TMP_Dropdown.OnCancel", + "TMPro.TMP_Dropdown.Show", + "TMPro.TMP_Dropdown.Hide", + "TMPro.TMP_Dropdown.AllSelectablesNoAlloc", + "TMPro.TMP_Dropdown.IsInteractable", + "TMPro.TMP_Dropdown.FindSelectable", + "TMPro.TMP_Dropdown.FindSelectableOnLeft", + "TMPro.TMP_Dropdown.FindSelectableOnRight", + "TMPro.TMP_Dropdown.FindSelectableOnUp", + "TMPro.TMP_Dropdown.FindSelectableOnDown", + "TMPro.TMP_Dropdown.OnMove", + "TMPro.TMP_Dropdown.OnPointerDown", + "TMPro.TMP_Dropdown.OnPointerUp", + "TMPro.TMP_Dropdown.OnPointerEnter", + "TMPro.TMP_Dropdown.OnPointerExit", + "TMPro.TMP_Dropdown.OnSelect", + "TMPro.TMP_Dropdown.OnDeselect", + "TMPro.TMP_Dropdown.Select", + "TMPro.TMP_Dropdown.IsActive", + "TMPro.TMP_Dropdown.IsDestroyed", + "TMPro.TMP_Dropdown.IsInvoking", + "TMPro.TMP_Dropdown.CancelInvoke", + "TMPro.TMP_Dropdown.Invoke", + "TMPro.TMP_Dropdown.InvokeRepeating", + "TMPro.TMP_Dropdown.StartCoroutine", + "TMPro.TMP_Dropdown.StopCoroutine", + "TMPro.TMP_Dropdown.StopAllCoroutines", + "TMPro.TMP_Dropdown.print", + "TMPro.TMP_Dropdown.GetComponent", + "TMPro.TMP_Dropdown.GetComponentInChildren", + "TMPro.TMP_Dropdown.GetComponentsInChildren", + "TMPro.TMP_Dropdown.GetComponentInParent", + "TMPro.TMP_Dropdown.GetComponentsInParent", + "TMPro.TMP_Dropdown.GetComponents", + "TMPro.TMP_Dropdown.GetComponentIndex", + "TMPro.TMP_Dropdown.CompareTag", + "TMPro.TMP_Dropdown.Equals", + "TMPro.TMP_Dropdown.op_Implicit", + "TMPro.TMP_Dropdown.Instantiate", + "TMPro.TMP_Dropdown.Destroy", + "TMPro.TMP_Dropdown.FindObjectsByType", + "TMPro.TMP_Dropdown.FindFirstObjectByType", + "TMPro.TMP_Dropdown.FindAnyObjectByType", + "TMPro.TMP_Dropdown.ToString", + "TMPro.TMP_Dropdown.ReferenceEquals", + "TMPro.TMP_Dropdown.template", + "TMPro.TMP_Dropdown.captionText", + "TMPro.TMP_Dropdown.captionImage", + "TMPro.TMP_Dropdown.placeholder", + "TMPro.TMP_Dropdown.itemText", + "TMPro.TMP_Dropdown.itemImage", + "TMPro.TMP_Dropdown.options", + "TMPro.TMP_Dropdown.onValueChanged", + "TMPro.TMP_Dropdown.alphaFadeSpeed", + "TMPro.TMP_Dropdown.value", + "TMPro.TMP_Dropdown.IsExpanded", + "TMPro.TMP_Dropdown.allSelectablesArray", + "TMPro.TMP_Dropdown.allSelectableCount", + "TMPro.TMP_Dropdown.navigation", + "TMPro.TMP_Dropdown.transition", + "TMPro.TMP_Dropdown.colors", + "TMPro.TMP_Dropdown.spriteState", + "TMPro.TMP_Dropdown.animationTriggers", + "TMPro.TMP_Dropdown.targetGraphic", + "TMPro.TMP_Dropdown.interactable", + "TMPro.TMP_Dropdown.image", + "TMPro.TMP_Dropdown.animator", + "TMPro.TMP_Dropdown.destroyCancellationToken", + "TMPro.TMP_Dropdown.useGUILayout", + "TMPro.TMP_Dropdown.enabled", + "TMPro.TMP_Dropdown.isActiveAndEnabled", + "TMPro.TMP_Dropdown.transform", + "TMPro.TMP_Dropdown.gameObject", + "TMPro.TMP_Dropdown.tag", + "TMPro.TMP_Dropdown.name", + "TMPro.TMP_Dropdown.hideFlags", + "TMPro.TMP_FontAsset.CreateFontAsset", + "TMPro.TMP_FontAsset.ReadFontAssetDefinition", + "TMPro.TMP_FontAsset.HasCharacter", + "TMPro.TMP_FontAsset.HasCharacters", + "TMPro.TMP_FontAsset.GetCharacters", + "TMPro.TMP_FontAsset.GetCharactersArray", + "TMPro.TMP_FontAsset.TryAddCharacters", + "TMPro.TMP_FontAsset.ClearFontAssetData", + "TMPro.TMP_FontAsset.CreateInstance", + "TMPro.TMP_FontAsset.Equals", + "TMPro.TMP_FontAsset.op_Implicit", + "TMPro.TMP_FontAsset.Instantiate", + "TMPro.TMP_FontAsset.Destroy", + "TMPro.TMP_FontAsset.FindObjectsByType", + "TMPro.TMP_FontAsset.FindFirstObjectByType", + "TMPro.TMP_FontAsset.FindAnyObjectByType", + "TMPro.TMP_FontAsset.ToString", + "TMPro.TMP_FontAsset.ReferenceEquals", + "TMPro.TMP_FontAsset.version", + "TMPro.TMP_FontAsset.sourceFontFile", + "TMPro.TMP_FontAsset.atlasPopulationMode", + "TMPro.TMP_FontAsset.faceInfo", + "TMPro.TMP_FontAsset.glyphTable", + "TMPro.TMP_FontAsset.glyphLookupTable", + "TMPro.TMP_FontAsset.characterTable", + "TMPro.TMP_FontAsset.characterLookupTable", + "TMPro.TMP_FontAsset.atlasTexture", + "TMPro.TMP_FontAsset.atlasTextures", + "TMPro.TMP_FontAsset.atlasTextureCount", + "TMPro.TMP_FontAsset.isMultiAtlasTexturesEnabled", + "TMPro.TMP_FontAsset.atlasWidth", + "TMPro.TMP_FontAsset.atlasHeight", + "TMPro.TMP_FontAsset.atlasPadding", + "TMPro.TMP_FontAsset.atlasRenderMode", + "TMPro.TMP_FontAsset.fontFeatureTable", + "TMPro.TMP_FontAsset.fallbackFontAssetTable", + "TMPro.TMP_FontAsset.creationSettings", + "TMPro.TMP_FontAsset.fontWeightTable", + "TMPro.TMP_FontAsset.instanceID", + "TMPro.TMP_FontAsset.name", + "TMPro.TMP_FontAsset.hideFlags", + "TMPro.TMP_FontAsset.atlas", + "TMPro.TMP_FontAsset.normalStyle", + "TMPro.TMP_FontAsset.normalSpacingOffset", + "TMPro.TMP_FontAsset.boldStyle", + "TMPro.TMP_FontAsset.boldSpacing", + "TMPro.TMP_FontAsset.italicStyle", + "TMPro.TMP_FontAsset.tabSize", + "TMPro.TMP_FontAsset.hashCode", + "TMPro.TMP_FontAsset.material", + "TMPro.TMP_FontAsset.materialHashCode", + "TMPro.TMP_InputField.SetTextWithoutNotify", + "TMPro.TMP_InputField.MoveTextEnd", + "TMPro.TMP_InputField.MoveTextStart", + "TMPro.TMP_InputField.MoveToEndOfLine", + "TMPro.TMP_InputField.MoveToStartOfLine", + "TMPro.TMP_InputField.OnBeginDrag", + "TMPro.TMP_InputField.OnDrag", + "TMPro.TMP_InputField.OnEndDrag", + "TMPro.TMP_InputField.OnPointerDown", + "TMPro.TMP_InputField.ProcessEvent", + "TMPro.TMP_InputField.OnUpdateSelected", + "TMPro.TMP_InputField.OnScroll", + "TMPro.TMP_InputField.ForceLabelUpdate", + "TMPro.TMP_InputField.Rebuild", + "TMPro.TMP_InputField.LayoutComplete", + "TMPro.TMP_InputField.GraphicUpdateComplete", + "TMPro.TMP_InputField.ActivateInputField", + "TMPro.TMP_InputField.OnSelect", + "TMPro.TMP_InputField.OnPointerClick", + "TMPro.TMP_InputField.OnControlClick", + "TMPro.TMP_InputField.ReleaseSelection", + "TMPro.TMP_InputField.DeactivateInputField", + "TMPro.TMP_InputField.OnDeselect", + "TMPro.TMP_InputField.OnSubmit", + "TMPro.TMP_InputField.CalculateLayoutInputHorizontal", + "TMPro.TMP_InputField.CalculateLayoutInputVertical", + "TMPro.TMP_InputField.SetGlobalPointSize", + "TMPro.TMP_InputField.SetGlobalFontAsset", + "TMPro.TMP_InputField.AllSelectablesNoAlloc", + "TMPro.TMP_InputField.IsInteractable", + "TMPro.TMP_InputField.FindSelectable", + "TMPro.TMP_InputField.FindSelectableOnLeft", + "TMPro.TMP_InputField.FindSelectableOnRight", + "TMPro.TMP_InputField.FindSelectableOnUp", + "TMPro.TMP_InputField.FindSelectableOnDown", + "TMPro.TMP_InputField.OnMove", + "TMPro.TMP_InputField.OnPointerUp", + "TMPro.TMP_InputField.OnPointerEnter", + "TMPro.TMP_InputField.OnPointerExit", + "TMPro.TMP_InputField.Select", + "TMPro.TMP_InputField.IsActive", + "TMPro.TMP_InputField.IsDestroyed", + "TMPro.TMP_InputField.IsInvoking", + "TMPro.TMP_InputField.CancelInvoke", + "TMPro.TMP_InputField.Invoke", + "TMPro.TMP_InputField.InvokeRepeating", + "TMPro.TMP_InputField.StartCoroutine", + "TMPro.TMP_InputField.StopCoroutine", + "TMPro.TMP_InputField.StopAllCoroutines", + "TMPro.TMP_InputField.print", + "TMPro.TMP_InputField.GetComponent", + "TMPro.TMP_InputField.GetComponentInChildren", + "TMPro.TMP_InputField.GetComponentsInChildren", + "TMPro.TMP_InputField.GetComponentInParent", + "TMPro.TMP_InputField.GetComponentsInParent", + "TMPro.TMP_InputField.GetComponents", + "TMPro.TMP_InputField.GetComponentIndex", + "TMPro.TMP_InputField.CompareTag", + "TMPro.TMP_InputField.Equals", + "TMPro.TMP_InputField.op_Implicit", + "TMPro.TMP_InputField.Instantiate", + "TMPro.TMP_InputField.Destroy", + "TMPro.TMP_InputField.FindObjectsByType", + "TMPro.TMP_InputField.FindFirstObjectByType", + "TMPro.TMP_InputField.FindAnyObjectByType", + "TMPro.TMP_InputField.ToString", + "TMPro.TMP_InputField.ReferenceEquals", + "TMPro.TMP_InputField.shouldHideMobileInput", + "TMPro.TMP_InputField.shouldHideSoftKeyboard", + "TMPro.TMP_InputField.text", + "TMPro.TMP_InputField.isFocused", + "TMPro.TMP_InputField.caretBlinkRate", + "TMPro.TMP_InputField.caretWidth", + "TMPro.TMP_InputField.textViewport", + "TMPro.TMP_InputField.textComponent", + "TMPro.TMP_InputField.placeholder", + "TMPro.TMP_InputField.verticalScrollbar", + "TMPro.TMP_InputField.scrollSensitivity", + "TMPro.TMP_InputField.caretColor", + "TMPro.TMP_InputField.customCaretColor", + "TMPro.TMP_InputField.selectionColor", + "TMPro.TMP_InputField.onEndEdit", + "TMPro.TMP_InputField.onSubmit", + "TMPro.TMP_InputField.onSelect", + "TMPro.TMP_InputField.onDeselect", + "TMPro.TMP_InputField.onTextSelection", + "TMPro.TMP_InputField.onEndTextSelection", + "TMPro.TMP_InputField.onValueChanged", + "TMPro.TMP_InputField.onTouchScreenKeyboardStatusChanged", + "TMPro.TMP_InputField.onValidateInput", + "TMPro.TMP_InputField.characterLimit", + "TMPro.TMP_InputField.pointSize", + "TMPro.TMP_InputField.fontAsset", + "TMPro.TMP_InputField.onFocusSelectAll", + "TMPro.TMP_InputField.resetOnDeActivation", + "TMPro.TMP_InputField.restoreOriginalTextOnEscape", + "TMPro.TMP_InputField.isRichTextEditingAllowed", + "TMPro.TMP_InputField.contentType", + "TMPro.TMP_InputField.lineType", + "TMPro.TMP_InputField.lineLimit", + "TMPro.TMP_InputField.inputType", + "TMPro.TMP_InputField.keyboardType", + "TMPro.TMP_InputField.characterValidation", + "TMPro.TMP_InputField.inputValidator", + "TMPro.TMP_InputField.readOnly", + "TMPro.TMP_InputField.richText", + "TMPro.TMP_InputField.multiLine", + "TMPro.TMP_InputField.asteriskChar", + "TMPro.TMP_InputField.wasCanceled", + "TMPro.TMP_InputField.caretPosition", + "TMPro.TMP_InputField.selectionAnchorPosition", + "TMPro.TMP_InputField.selectionFocusPosition", + "TMPro.TMP_InputField.stringPosition", + "TMPro.TMP_InputField.selectionStringAnchorPosition", + "TMPro.TMP_InputField.selectionStringFocusPosition", + "TMPro.TMP_InputField.minWidth", + "TMPro.TMP_InputField.preferredWidth", + "TMPro.TMP_InputField.flexibleWidth", + "TMPro.TMP_InputField.minHeight", + "TMPro.TMP_InputField.preferredHeight", + "TMPro.TMP_InputField.flexibleHeight", + "TMPro.TMP_InputField.layoutPriority", + "TMPro.TMP_InputField.allSelectablesArray", + "TMPro.TMP_InputField.allSelectableCount", + "TMPro.TMP_InputField.navigation", + "TMPro.TMP_InputField.transition", + "TMPro.TMP_InputField.colors", + "TMPro.TMP_InputField.spriteState", + "TMPro.TMP_InputField.animationTriggers", + "TMPro.TMP_InputField.targetGraphic", + "TMPro.TMP_InputField.interactable", + "TMPro.TMP_InputField.image", + "TMPro.TMP_InputField.animator", + "TMPro.TMP_InputField.destroyCancellationToken", + "TMPro.TMP_InputField.useGUILayout", + "TMPro.TMP_InputField.enabled", + "TMPro.TMP_InputField.isActiveAndEnabled", + "TMPro.TMP_InputField.transform", + "TMPro.TMP_InputField.gameObject", + "TMPro.TMP_InputField.tag", + "TMPro.TMP_InputField.name", + "TMPro.TMP_InputField.hideFlags", + "TMPro.TMP_InputValidator.CreateInstance", + "TMPro.TMP_InputValidator.Equals", + "TMPro.TMP_InputValidator.op_Implicit", + "TMPro.TMP_InputValidator.Instantiate", + "TMPro.TMP_InputValidator.Destroy", + "TMPro.TMP_InputValidator.FindObjectsByType", + "TMPro.TMP_InputValidator.FindFirstObjectByType", + "TMPro.TMP_InputValidator.FindAnyObjectByType", + "TMPro.TMP_InputValidator.ToString", + "TMPro.TMP_InputValidator.ReferenceEquals", + "TMPro.TMP_InputValidator.name", + "TMPro.TMP_InputValidator.hideFlags", + "TMPro.TMP_ScrollbarEventHandler.OnPointerClick", + "TMPro.TMP_ScrollbarEventHandler.OnSelect", + "TMPro.TMP_ScrollbarEventHandler.OnDeselect", + "TMPro.TMP_ScrollbarEventHandler.IsInvoking", + "TMPro.TMP_ScrollbarEventHandler.CancelInvoke", + "TMPro.TMP_ScrollbarEventHandler.Invoke", + "TMPro.TMP_ScrollbarEventHandler.InvokeRepeating", + "TMPro.TMP_ScrollbarEventHandler.StartCoroutine", + "TMPro.TMP_ScrollbarEventHandler.StopCoroutine", + "TMPro.TMP_ScrollbarEventHandler.StopAllCoroutines", + "TMPro.TMP_ScrollbarEventHandler.print", + "TMPro.TMP_ScrollbarEventHandler.GetComponent", + "TMPro.TMP_ScrollbarEventHandler.GetComponentInChildren", + "TMPro.TMP_ScrollbarEventHandler.GetComponentsInChildren", + "TMPro.TMP_ScrollbarEventHandler.GetComponentInParent", + "TMPro.TMP_ScrollbarEventHandler.GetComponentsInParent", + "TMPro.TMP_ScrollbarEventHandler.GetComponents", + "TMPro.TMP_ScrollbarEventHandler.GetComponentIndex", + "TMPro.TMP_ScrollbarEventHandler.CompareTag", + "TMPro.TMP_ScrollbarEventHandler.Equals", + "TMPro.TMP_ScrollbarEventHandler.op_Implicit", + "TMPro.TMP_ScrollbarEventHandler.Instantiate", + "TMPro.TMP_ScrollbarEventHandler.Destroy", + "TMPro.TMP_ScrollbarEventHandler.FindObjectsByType", + "TMPro.TMP_ScrollbarEventHandler.FindFirstObjectByType", + "TMPro.TMP_ScrollbarEventHandler.FindAnyObjectByType", + "TMPro.TMP_ScrollbarEventHandler.ToString", + "TMPro.TMP_ScrollbarEventHandler.ReferenceEquals", + "TMPro.TMP_ScrollbarEventHandler.destroyCancellationToken", + "TMPro.TMP_ScrollbarEventHandler.useGUILayout", + "TMPro.TMP_ScrollbarEventHandler.enabled", + "TMPro.TMP_ScrollbarEventHandler.isActiveAndEnabled", + "TMPro.TMP_ScrollbarEventHandler.transform", + "TMPro.TMP_ScrollbarEventHandler.gameObject", + "TMPro.TMP_ScrollbarEventHandler.tag", + "TMPro.TMP_ScrollbarEventHandler.name", + "TMPro.TMP_ScrollbarEventHandler.hideFlags", + "TMPro.TMP_ScrollbarEventHandler.isSelected", + "TMPro.TMP_SelectionCaret.Cull", + "TMPro.TMP_SelectionCaret.GetModifiedMaterial", + "TMPro.TMP_SelectionCaret.SetClipRect", + "TMPro.TMP_SelectionCaret.SetClipSoftness", + "TMPro.TMP_SelectionCaret.RecalculateClipping", + "TMPro.TMP_SelectionCaret.RecalculateMasking", + "TMPro.TMP_SelectionCaret.SetAllDirty", + "TMPro.TMP_SelectionCaret.SetLayoutDirty", + "TMPro.TMP_SelectionCaret.SetVerticesDirty", + "TMPro.TMP_SelectionCaret.SetMaterialDirty", + "TMPro.TMP_SelectionCaret.SetRaycastDirty", + "TMPro.TMP_SelectionCaret.OnCullingChanged", + "TMPro.TMP_SelectionCaret.Rebuild", + "TMPro.TMP_SelectionCaret.LayoutComplete", + "TMPro.TMP_SelectionCaret.GraphicUpdateComplete", + "TMPro.TMP_SelectionCaret.SetNativeSize", + "TMPro.TMP_SelectionCaret.Raycast", + "TMPro.TMP_SelectionCaret.PixelAdjustPoint", + "TMPro.TMP_SelectionCaret.GetPixelAdjustedRect", + "TMPro.TMP_SelectionCaret.CrossFadeColor", + "TMPro.TMP_SelectionCaret.CrossFadeAlpha", + "TMPro.TMP_SelectionCaret.RegisterDirtyLayoutCallback", + "TMPro.TMP_SelectionCaret.UnregisterDirtyLayoutCallback", + "TMPro.TMP_SelectionCaret.RegisterDirtyVerticesCallback", + "TMPro.TMP_SelectionCaret.UnregisterDirtyVerticesCallback", + "TMPro.TMP_SelectionCaret.RegisterDirtyMaterialCallback", + "TMPro.TMP_SelectionCaret.UnregisterDirtyMaterialCallback", + "TMPro.TMP_SelectionCaret.IsActive", + "TMPro.TMP_SelectionCaret.IsDestroyed", + "TMPro.TMP_SelectionCaret.IsInvoking", + "TMPro.TMP_SelectionCaret.CancelInvoke", + "TMPro.TMP_SelectionCaret.Invoke", + "TMPro.TMP_SelectionCaret.InvokeRepeating", + "TMPro.TMP_SelectionCaret.StartCoroutine", + "TMPro.TMP_SelectionCaret.StopCoroutine", + "TMPro.TMP_SelectionCaret.StopAllCoroutines", + "TMPro.TMP_SelectionCaret.print", + "TMPro.TMP_SelectionCaret.GetComponent", + "TMPro.TMP_SelectionCaret.GetComponentInChildren", + "TMPro.TMP_SelectionCaret.GetComponentsInChildren", + "TMPro.TMP_SelectionCaret.GetComponentInParent", + "TMPro.TMP_SelectionCaret.GetComponentsInParent", + "TMPro.TMP_SelectionCaret.GetComponents", + "TMPro.TMP_SelectionCaret.GetComponentIndex", + "TMPro.TMP_SelectionCaret.CompareTag", + "TMPro.TMP_SelectionCaret.Equals", + "TMPro.TMP_SelectionCaret.op_Implicit", + "TMPro.TMP_SelectionCaret.Instantiate", + "TMPro.TMP_SelectionCaret.Destroy", + "TMPro.TMP_SelectionCaret.FindObjectsByType", + "TMPro.TMP_SelectionCaret.FindFirstObjectByType", + "TMPro.TMP_SelectionCaret.FindAnyObjectByType", + "TMPro.TMP_SelectionCaret.ToString", + "TMPro.TMP_SelectionCaret.ReferenceEquals", + "TMPro.TMP_SelectionCaret.onCullStateChanged", + "TMPro.TMP_SelectionCaret.maskable", + "TMPro.TMP_SelectionCaret.isMaskingGraphic", + "TMPro.TMP_SelectionCaret.defaultGraphicMaterial", + "TMPro.TMP_SelectionCaret.color", + "TMPro.TMP_SelectionCaret.raycastTarget", + "TMPro.TMP_SelectionCaret.raycastPadding", + "TMPro.TMP_SelectionCaret.depth", + "TMPro.TMP_SelectionCaret.rectTransform", + "TMPro.TMP_SelectionCaret.canvas", + "TMPro.TMP_SelectionCaret.canvasRenderer", + "TMPro.TMP_SelectionCaret.defaultMaterial", + "TMPro.TMP_SelectionCaret.material", + "TMPro.TMP_SelectionCaret.materialForRendering", + "TMPro.TMP_SelectionCaret.mainTexture", + "TMPro.TMP_SelectionCaret.destroyCancellationToken", + "TMPro.TMP_SelectionCaret.useGUILayout", + "TMPro.TMP_SelectionCaret.enabled", + "TMPro.TMP_SelectionCaret.isActiveAndEnabled", + "TMPro.TMP_SelectionCaret.transform", + "TMPro.TMP_SelectionCaret.gameObject", + "TMPro.TMP_SelectionCaret.tag", + "TMPro.TMP_SelectionCaret.name", + "TMPro.TMP_SelectionCaret.hideFlags", + "TMPro.TMP_SpriteAnimator.StopAllAnimations", + "TMPro.TMP_SpriteAnimator.DoSpriteAnimation", + "TMPro.TMP_SpriteAnimator.IsInvoking", + "TMPro.TMP_SpriteAnimator.CancelInvoke", + "TMPro.TMP_SpriteAnimator.Invoke", + "TMPro.TMP_SpriteAnimator.InvokeRepeating", + "TMPro.TMP_SpriteAnimator.StartCoroutine", + "TMPro.TMP_SpriteAnimator.StopCoroutine", + "TMPro.TMP_SpriteAnimator.StopAllCoroutines", + "TMPro.TMP_SpriteAnimator.print", + "TMPro.TMP_SpriteAnimator.GetComponent", + "TMPro.TMP_SpriteAnimator.GetComponentInChildren", + "TMPro.TMP_SpriteAnimator.GetComponentsInChildren", + "TMPro.TMP_SpriteAnimator.GetComponentInParent", + "TMPro.TMP_SpriteAnimator.GetComponentsInParent", + "TMPro.TMP_SpriteAnimator.GetComponents", + "TMPro.TMP_SpriteAnimator.GetComponentIndex", + "TMPro.TMP_SpriteAnimator.CompareTag", + "TMPro.TMP_SpriteAnimator.Equals", + "TMPro.TMP_SpriteAnimator.op_Implicit", + "TMPro.TMP_SpriteAnimator.Instantiate", + "TMPro.TMP_SpriteAnimator.Destroy", + "TMPro.TMP_SpriteAnimator.FindObjectsByType", + "TMPro.TMP_SpriteAnimator.FindFirstObjectByType", + "TMPro.TMP_SpriteAnimator.FindAnyObjectByType", + "TMPro.TMP_SpriteAnimator.ToString", + "TMPro.TMP_SpriteAnimator.ReferenceEquals", + "TMPro.TMP_SpriteAnimator.destroyCancellationToken", + "TMPro.TMP_SpriteAnimator.useGUILayout", + "TMPro.TMP_SpriteAnimator.enabled", + "TMPro.TMP_SpriteAnimator.isActiveAndEnabled", + "TMPro.TMP_SpriteAnimator.transform", + "TMPro.TMP_SpriteAnimator.gameObject", + "TMPro.TMP_SpriteAnimator.tag", + "TMPro.TMP_SpriteAnimator.name", + "TMPro.TMP_SpriteAnimator.hideFlags", + "TMPro.TMP_SpriteAsset.UpdateLookupTables", + "TMPro.TMP_SpriteAsset.GetSpriteIndexFromHashcode", + "TMPro.TMP_SpriteAsset.GetSpriteIndexFromUnicode", + "TMPro.TMP_SpriteAsset.GetSpriteIndexFromName", + "TMPro.TMP_SpriteAsset.SortGlyphTable", + "TMPro.TMP_SpriteAsset.CreateInstance", + "TMPro.TMP_SpriteAsset.Equals", + "TMPro.TMP_SpriteAsset.op_Implicit", + "TMPro.TMP_SpriteAsset.Instantiate", + "TMPro.TMP_SpriteAsset.Destroy", + "TMPro.TMP_SpriteAsset.FindObjectsByType", + "TMPro.TMP_SpriteAsset.FindFirstObjectByType", + "TMPro.TMP_SpriteAsset.FindAnyObjectByType", + "TMPro.TMP_SpriteAsset.ToString", + "TMPro.TMP_SpriteAsset.ReferenceEquals", + "TMPro.TMP_SpriteAsset.version", + "TMPro.TMP_SpriteAsset.faceInfo", + "TMPro.TMP_SpriteAsset.spriteCharacterTable", + "TMPro.TMP_SpriteAsset.spriteCharacterLookupTable", + "TMPro.TMP_SpriteAsset.spriteGlyphTable", + "TMPro.TMP_SpriteAsset.instanceID", + "TMPro.TMP_SpriteAsset.name", + "TMPro.TMP_SpriteAsset.hideFlags", + "TMPro.TMP_SpriteAsset.spriteSheet", + "TMPro.TMP_SpriteAsset.spriteInfoList", + "TMPro.TMP_SpriteAsset.fallbackSpriteAssets", + "TMPro.TMP_SpriteAsset.hashCode", + "TMPro.TMP_SpriteAsset.material", + "TMPro.TMP_SpriteAsset.materialHashCode", + "TMPro.TMP_StyleSheet.GetStyle", + "TMPro.TMP_StyleSheet.RefreshStyles", + "TMPro.TMP_StyleSheet.CreateInstance", + "TMPro.TMP_StyleSheet.Equals", + "TMPro.TMP_StyleSheet.op_Implicit", + "TMPro.TMP_StyleSheet.Instantiate", + "TMPro.TMP_StyleSheet.Destroy", + "TMPro.TMP_StyleSheet.FindObjectsByType", + "TMPro.TMP_StyleSheet.FindFirstObjectByType", + "TMPro.TMP_StyleSheet.FindAnyObjectByType", + "TMPro.TMP_StyleSheet.ToString", + "TMPro.TMP_StyleSheet.ReferenceEquals", + "TMPro.TMP_StyleSheet.name", + "TMPro.TMP_StyleSheet.hideFlags", + "TMPro.TMP_SubMesh.AddSubTextObject", + "TMPro.TMP_SubMesh.DestroySelf", + "TMPro.TMP_SubMesh.GetPaddingForMaterial", + "TMPro.TMP_SubMesh.UpdateMeshPadding", + "TMPro.TMP_SubMesh.SetVerticesDirty", + "TMPro.TMP_SubMesh.SetMaterialDirty", + "TMPro.TMP_SubMesh.IsInvoking", + "TMPro.TMP_SubMesh.CancelInvoke", + "TMPro.TMP_SubMesh.Invoke", + "TMPro.TMP_SubMesh.InvokeRepeating", + "TMPro.TMP_SubMesh.StartCoroutine", + "TMPro.TMP_SubMesh.StopCoroutine", + "TMPro.TMP_SubMesh.StopAllCoroutines", + "TMPro.TMP_SubMesh.print", + "TMPro.TMP_SubMesh.GetComponent", + "TMPro.TMP_SubMesh.GetComponentInChildren", + "TMPro.TMP_SubMesh.GetComponentsInChildren", + "TMPro.TMP_SubMesh.GetComponentInParent", + "TMPro.TMP_SubMesh.GetComponentsInParent", + "TMPro.TMP_SubMesh.GetComponents", + "TMPro.TMP_SubMesh.GetComponentIndex", + "TMPro.TMP_SubMesh.CompareTag", + "TMPro.TMP_SubMesh.Equals", + "TMPro.TMP_SubMesh.op_Implicit", + "TMPro.TMP_SubMesh.Instantiate", + "TMPro.TMP_SubMesh.Destroy", + "TMPro.TMP_SubMesh.FindObjectsByType", + "TMPro.TMP_SubMesh.FindFirstObjectByType", + "TMPro.TMP_SubMesh.FindAnyObjectByType", + "TMPro.TMP_SubMesh.ToString", + "TMPro.TMP_SubMesh.ReferenceEquals", + "TMPro.TMP_SubMesh.fontAsset", + "TMPro.TMP_SubMesh.spriteAsset", + "TMPro.TMP_SubMesh.material", + "TMPro.TMP_SubMesh.sharedMaterial", + "TMPro.TMP_SubMesh.fallbackMaterial", + "TMPro.TMP_SubMesh.fallbackSourceMaterial", + "TMPro.TMP_SubMesh.isDefaultMaterial", + "TMPro.TMP_SubMesh.padding", + "TMPro.TMP_SubMesh.renderer", + "TMPro.TMP_SubMesh.meshFilter", + "TMPro.TMP_SubMesh.mesh", + "TMPro.TMP_SubMesh.textComponent", + "TMPro.TMP_SubMesh.destroyCancellationToken", + "TMPro.TMP_SubMesh.useGUILayout", + "TMPro.TMP_SubMesh.enabled", + "TMPro.TMP_SubMesh.isActiveAndEnabled", + "TMPro.TMP_SubMesh.transform", + "TMPro.TMP_SubMesh.gameObject", + "TMPro.TMP_SubMesh.tag", + "TMPro.TMP_SubMesh.name", + "TMPro.TMP_SubMesh.hideFlags", + "TMPro.TMP_SubMeshUI.AddSubTextObject", + "TMPro.TMP_SubMeshUI.GetModifiedMaterial", + "TMPro.TMP_SubMeshUI.GetPaddingForMaterial", + "TMPro.TMP_SubMeshUI.UpdateMeshPadding", + "TMPro.TMP_SubMeshUI.SetAllDirty", + "TMPro.TMP_SubMeshUI.SetVerticesDirty", + "TMPro.TMP_SubMeshUI.SetLayoutDirty", + "TMPro.TMP_SubMeshUI.SetMaterialDirty", + "TMPro.TMP_SubMeshUI.SetPivotDirty", + "TMPro.TMP_SubMeshUI.Cull", + "TMPro.TMP_SubMeshUI.Rebuild", + "TMPro.TMP_SubMeshUI.RefreshMaterial", + "TMPro.TMP_SubMeshUI.RecalculateClipping", + "TMPro.TMP_SubMeshUI.SetClipRect", + "TMPro.TMP_SubMeshUI.SetClipSoftness", + "TMPro.TMP_SubMeshUI.RecalculateMasking", + "TMPro.TMP_SubMeshUI.SetRaycastDirty", + "TMPro.TMP_SubMeshUI.OnCullingChanged", + "TMPro.TMP_SubMeshUI.LayoutComplete", + "TMPro.TMP_SubMeshUI.GraphicUpdateComplete", + "TMPro.TMP_SubMeshUI.SetNativeSize", + "TMPro.TMP_SubMeshUI.Raycast", + "TMPro.TMP_SubMeshUI.PixelAdjustPoint", + "TMPro.TMP_SubMeshUI.GetPixelAdjustedRect", + "TMPro.TMP_SubMeshUI.CrossFadeColor", + "TMPro.TMP_SubMeshUI.CrossFadeAlpha", + "TMPro.TMP_SubMeshUI.RegisterDirtyLayoutCallback", + "TMPro.TMP_SubMeshUI.UnregisterDirtyLayoutCallback", + "TMPro.TMP_SubMeshUI.RegisterDirtyVerticesCallback", + "TMPro.TMP_SubMeshUI.UnregisterDirtyVerticesCallback", + "TMPro.TMP_SubMeshUI.RegisterDirtyMaterialCallback", + "TMPro.TMP_SubMeshUI.UnregisterDirtyMaterialCallback", + "TMPro.TMP_SubMeshUI.IsActive", + "TMPro.TMP_SubMeshUI.IsDestroyed", + "TMPro.TMP_SubMeshUI.IsInvoking", + "TMPro.TMP_SubMeshUI.CancelInvoke", + "TMPro.TMP_SubMeshUI.Invoke", + "TMPro.TMP_SubMeshUI.InvokeRepeating", + "TMPro.TMP_SubMeshUI.StartCoroutine", + "TMPro.TMP_SubMeshUI.StopCoroutine", + "TMPro.TMP_SubMeshUI.StopAllCoroutines", + "TMPro.TMP_SubMeshUI.print", + "TMPro.TMP_SubMeshUI.GetComponent", + "TMPro.TMP_SubMeshUI.GetComponentInChildren", + "TMPro.TMP_SubMeshUI.GetComponentsInChildren", + "TMPro.TMP_SubMeshUI.GetComponentInParent", + "TMPro.TMP_SubMeshUI.GetComponentsInParent", + "TMPro.TMP_SubMeshUI.GetComponents", + "TMPro.TMP_SubMeshUI.GetComponentIndex", + "TMPro.TMP_SubMeshUI.CompareTag", + "TMPro.TMP_SubMeshUI.Equals", + "TMPro.TMP_SubMeshUI.op_Implicit", + "TMPro.TMP_SubMeshUI.Instantiate", + "TMPro.TMP_SubMeshUI.Destroy", + "TMPro.TMP_SubMeshUI.FindObjectsByType", + "TMPro.TMP_SubMeshUI.FindFirstObjectByType", + "TMPro.TMP_SubMeshUI.FindAnyObjectByType", + "TMPro.TMP_SubMeshUI.ToString", + "TMPro.TMP_SubMeshUI.ReferenceEquals", + "TMPro.TMP_SubMeshUI.fontAsset", + "TMPro.TMP_SubMeshUI.spriteAsset", + "TMPro.TMP_SubMeshUI.mainTexture", + "TMPro.TMP_SubMeshUI.material", + "TMPro.TMP_SubMeshUI.sharedMaterial", + "TMPro.TMP_SubMeshUI.fallbackMaterial", + "TMPro.TMP_SubMeshUI.fallbackSourceMaterial", + "TMPro.TMP_SubMeshUI.materialForRendering", + "TMPro.TMP_SubMeshUI.isDefaultMaterial", + "TMPro.TMP_SubMeshUI.padding", + "TMPro.TMP_SubMeshUI.mesh", + "TMPro.TMP_SubMeshUI.textComponent", + "TMPro.TMP_SubMeshUI.onCullStateChanged", + "TMPro.TMP_SubMeshUI.maskable", + "TMPro.TMP_SubMeshUI.isMaskingGraphic", + "TMPro.TMP_SubMeshUI.defaultGraphicMaterial", + "TMPro.TMP_SubMeshUI.color", + "TMPro.TMP_SubMeshUI.raycastTarget", + "TMPro.TMP_SubMeshUI.raycastPadding", + "TMPro.TMP_SubMeshUI.depth", + "TMPro.TMP_SubMeshUI.rectTransform", + "TMPro.TMP_SubMeshUI.canvas", + "TMPro.TMP_SubMeshUI.canvasRenderer", + "TMPro.TMP_SubMeshUI.defaultMaterial", + "TMPro.TMP_SubMeshUI.destroyCancellationToken", + "TMPro.TMP_SubMeshUI.useGUILayout", + "TMPro.TMP_SubMeshUI.enabled", + "TMPro.TMP_SubMeshUI.isActiveAndEnabled", + "TMPro.TMP_SubMeshUI.transform", + "TMPro.TMP_SubMeshUI.gameObject", + "TMPro.TMP_SubMeshUI.tag", + "TMPro.TMP_SubMeshUI.name", + "TMPro.TMP_SubMeshUI.hideFlags", "TMPro.TMP_Text.ForceMeshUpdate", "TMPro.TMP_Text.UpdateGeometry", "TMPro.TMP_Text.UpdateVertexData", diff --git a/Editor/banter-link/inject.txt b/Editor/banter-link/inject.txt index bf2fc464..b091824e 100644 --- a/Editor/banter-link/inject.txt +++ b/Editor/banter-link/inject.txt @@ -1 +1 @@ -var BS;(()=>{var t={72:()=>{!function(){if(document.registerElement=()=>{},void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}()},217:(t,e,s)=>{"use strict";s.r(e),s.d(e,{isValidDefaultCoordinate:()=>A,isValidDefaultValue:()=>f,propertyTypes:()=>h,registerPropertyType:()=>d,setComponentProperty:()=>k}),console.warn.bind(console);var i=["x","y","z","w"],n=/\s+/g;function r(t){var e;return"object"!=typeof t?t:(e=t.x+" "+t.y,null!=t.z&&(e+=" "+t.z),null!=t.w&&(e+=" "+t.w),e)}function o(t){return null!=t&&t.constructor===String?parseFloat(t.toString()):t}const a=console.error.bind(console),c=console.warn.bind(console);var h={},l=/[,> .[\]:]/,u=/\url\((.+)\)/;function d(t,e,s,i){"type"in h?a("Property type "+t+" is already registered."):h[t]={default:e,parse:s||m,stringify:i||g}}function p(t){var e,s;return"string"!=typeof t?t:(s=t.match(u))?s[1]:"#"===t.charAt(0)?(e=document.getElementById(t.substring(1)))?"CANVAS"===e.tagName||"VIDEO"===e.tagName||"IMG"===e.tagName?e:e.getAttribute("src"):void c('"'+t+'" asset not found.'):t}function m(t){return t}function g(t){return null===t?"null":t.toString()}function y(t){return parseInt(t,10)}function b(t){return function(t,e){var s,r,a,c,h,l,u,d,p;if(t&&t instanceof Object)return l=void 0===t.x?e&&e.x:t.x,u=void 0===t.y?e&&e.y:t.y,d=void 0===t.z?e&&e.z:t.z,p=void 0===t.w?e&&e.w:t.w,null!=l&&(t.x=o(l)),null!=u&&(t.y=o(u)),null!=d&&(t.z=o(d)),null!=p&&(t.w=o(p)),t;if(null==t)return"object"==typeof e?Object.assign({},e):e;for(s=t.trim().split(n),h={},c=0;c2&&"number"!=typeof n||e>3&&"number"!=typeof r)}d("audio","",p),d("array",[],(function(t){return Array.isArray(t)?t:t&&"string"==typeof t?t.split(",").map((function(t){return t.trim()})):[]}),(function(t){return t.join(", ")})),d("asset","",p),d("boolean",!1,(function(t){return"false"!==t&&!1!==t})),d("color","#FFF",m,g),d("int",0,y),d("number",0,(function(t){return parseFloat(t)})),d("map","",p),d("model","",p),d("selector",null,(function(t){return t?"string"!=typeof t?t:"#"!==t[0]||l.test(t)?document.querySelector(t):document.getElementById(t.substring(1)):null}),(function(t){return t.getAttribute?"#"+t.getAttribute("id"):g(t)})),d("selectorAll",null,(function(t){return t?"string"!=typeof t?t:Array.prototype.slice.call(document.querySelectorAll(t),0):null}),(function(t){return t instanceof Array?t.map((function(t){return"#"+t.getAttribute("id")})).join(", "):g(t)})),d("src","",(function(t){return c("`src` property type is deprecated. Use `asset` instead."),p(t)})),d("string","",m,g),d("time",0,y),d("vec2",{x:0,y:0},b,r),d("vec3",{x:0,y:0,z:0},b,r),d("vec4",{x:0,y:0,z:0,w:1},b,r);const v=(_={},function(t,e){return e in _||(_[e]={}),t in _[e]||(_[e][t]=t.split(e)),_[e][t]});var _;const k=function(t,e,s,i){var n;i=i||".",-1===e.indexOf(i)?t.setAttribute(e,s):(n=function(t,e){var s=v(t,e=e||".");return 1===s.length?s[0]:s}(e,i)).constructor===String?t.setAttribute(n,s):t.setAttribute(n[0],n[1],s)}}},e={};function s(i){var n=e[i];if(void 0!==n)return n.exports;var r=e[i]={exports:{}};return t[i](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};(()=>{"use strict";s.r(i),s.d(i,{AFRAME:()=>Ds,BanterAssetBundle:()=>k,BanterAttachedObject:()=>O,BanterAudioSource:()=>T,BanterBillboard:()=>M,BanterBrowser:()=>x,BanterColliderEvents:()=>L,BanterGLTF:()=>Y,BanterGeometry:()=>D,BanterInvertedMesh:()=>j,BanterKitItem:()=>z,BanterMaterial:()=>G,BanterMirror:()=>U,BanterPhysicMaterial:()=>q,BanterPortal:()=>V,BanterRigidbody:()=>H,BanterScene:()=>St,BanterStreetView:()=>K,BanterSyncedObject:()=>Z,BanterText:()=>X,BanterVideoPlayer:()=>$,BoxCollider:()=>N,ButtonType:()=>t,CapsuleCollider:()=>I,Color:()=>ys,Component:()=>_,ComponentQuery:()=>lt,ComponentType:()=>e,ConfigurableJoint:()=>J,ConfigurableJointMotion:()=>c,CreateGameObject:()=>nt,ForceMode:()=>n,GameObject:()=>it,GeometryType:()=>Ut,GetComponentType:()=>tt,HandSide:()=>r,HorizontalAlignment:()=>fs,IS_DEV:()=>Vs,KeyCode:()=>o,LegacyAttachmentPosition:()=>Es,LoadSceneBundles:()=>wt,MeshCollider:()=>F,ParametricGeometryType:()=>qt,PropertyName:()=>a,Quaternion:()=>B,SceneSettings:()=>dt,SphereCollider:()=>W,Transform:()=>Q,Vector2:()=>S,Vector3:()=>E,Vector4:()=>C,VerticalAlignment:()=>As});var t,e,n,r,o,a,c,h,l,u={};s.r(u),s.d(u,{parseStyle:()=>Dt,stringify:()=>Yt,toCamelCase:()=>jt,transformKeysToCamelCase:()=>zt}),function(t){t[t.TRIGGER=0]="TRIGGER",t[t.GRIP=1]="GRIP",t[t.PRIMARY=2]="PRIMARY",t[t.SECONDARY=3]="SECONDARY"}(t||(t={})),function(t){t[t.BanterAssetBundle=0]="BanterAssetBundle",t[t.BanterAttachedObject=1]="BanterAttachedObject",t[t.BanterAudioSource=2]="BanterAudioSource",t[t.BanterBillboard=3]="BanterBillboard",t[t.BoxCollider=4]="BoxCollider",t[t.BanterBrowser=5]="BanterBrowser",t[t.CapsuleCollider=6]="CapsuleCollider",t[t.BanterColliderEvents=7]="BanterColliderEvents",t[t.ConfigurableJoint=8]="ConfigurableJoint",t[t.BanterGeometry=9]="BanterGeometry",t[t.BanterGLTF=10]="BanterGLTF",t[t.BanterInvertedMesh=11]="BanterInvertedMesh",t[t.BanterKitItem=12]="BanterKitItem",t[t.BanterMaterial=13]="BanterMaterial",t[t.MeshCollider=14]="MeshCollider",t[t.BanterMirror=15]="BanterMirror",t[t.BanterPhysicMaterial=16]="BanterPhysicMaterial",t[t.BanterPortal=17]="BanterPortal",t[t.BanterRigidbody=18]="BanterRigidbody",t[t.SphereCollider=19]="SphereCollider",t[t.BanterStreetView=20]="BanterStreetView",t[t.BanterSyncedObject=21]="BanterSyncedObject",t[t.BanterText=22]="BanterText",t[t.Transform=23]="Transform",t[t.BanterVideoPlayer=24]="BanterVideoPlayer"}(e||(e={})),function(t){t[t.Force=0]="Force",t[t.Impulse=1]="Impulse",t[t.VelocityChange=2]="VelocityChange",t[t.Acceleration=3]="Acceleration"}(n||(n={})),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT"}(r||(r={})),function(t){t[t.None=0]="None",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Clear=3]="Clear",t[t.Return=4]="Return",t[t.Pause=5]="Pause",t[t.Escape=6]="Escape",t[t.Space=7]="Space",t[t.Exclaim=8]="Exclaim",t[t.DoubleQuote=9]="DoubleQuote",t[t.Hash=10]="Hash",t[t.Dollar=11]="Dollar",t[t.Percent=12]="Percent",t[t.Ampersand=13]="Ampersand",t[t.Quote=14]="Quote",t[t.LeftParen=15]="LeftParen",t[t.RightParen=16]="RightParen",t[t.Asterisk=17]="Asterisk",t[t.Plus=18]="Plus",t[t.Comma=19]="Comma",t[t.Minus=20]="Minus",t[t.Period=21]="Period",t[t.Slash=22]="Slash",t[t.Alpha0=23]="Alpha0",t[t.Alpha1=24]="Alpha1",t[t.Alpha2=25]="Alpha2",t[t.Alpha3=26]="Alpha3",t[t.Alpha4=27]="Alpha4",t[t.Alpha5=28]="Alpha5",t[t.Alpha6=29]="Alpha6",t[t.Alpha7=30]="Alpha7",t[t.Alpha8=31]="Alpha8",t[t.Alpha9=32]="Alpha9",t[t.Colon=33]="Colon",t[t.Semicolon=34]="Semicolon",t[t.Less=35]="Less",t[t.Equals=36]="Equals",t[t.Greater=37]="Greater",t[t.Question=38]="Question",t[t.At=39]="At",t[t.LeftBracket=40]="LeftBracket",t[t.Backslash=41]="Backslash",t[t.RightBracket=42]="RightBracket",t[t.Caret=43]="Caret",t[t.Underscore=44]="Underscore",t[t.BackQuote=45]="BackQuote",t[t.A=46]="A",t[t.B=47]="B",t[t.C=48]="C",t[t.D=49]="D",t[t.E=50]="E",t[t.F=51]="F",t[t.G=52]="G",t[t.H=53]="H",t[t.I=54]="I",t[t.J=55]="J",t[t.K=56]="K",t[t.L=57]="L",t[t.M=58]="M",t[t.N=59]="N",t[t.O=60]="O",t[t.P=61]="P",t[t.Q=62]="Q",t[t.R=63]="R",t[t.S=64]="S",t[t.T=65]="T",t[t.U=66]="U",t[t.V=67]="V",t[t.W=68]="W",t[t.X=69]="X",t[t.Y=70]="Y",t[t.Z=71]="Z",t[t.LeftCurlyBracket=72]="LeftCurlyBracket",t[t.Pipe=73]="Pipe",t[t.RightCurlyBracket=74]="RightCurlyBracket",t[t.Tilde=75]="Tilde",t[t.Delete=76]="Delete",t[t.Keypad0=77]="Keypad0",t[t.Keypad1=78]="Keypad1",t[t.Keypad2=79]="Keypad2",t[t.Keypad3=80]="Keypad3",t[t.Keypad4=81]="Keypad4",t[t.Keypad5=82]="Keypad5",t[t.Keypad6=83]="Keypad6",t[t.Keypad7=84]="Keypad7",t[t.Keypad8=85]="Keypad8",t[t.Keypad9=86]="Keypad9",t[t.KeypadPeriod=87]="KeypadPeriod",t[t.KeypadDivide=88]="KeypadDivide",t[t.KeypadMultiply=89]="KeypadMultiply",t[t.KeypadMinus=90]="KeypadMinus",t[t.KeypadPlus=91]="KeypadPlus",t[t.KeypadEnter=92]="KeypadEnter",t[t.KeypadEquals=93]="KeypadEquals",t[t.UpArrow=94]="UpArrow",t[t.DownArrow=95]="DownArrow",t[t.RightArrow=96]="RightArrow",t[t.LeftArrow=97]="LeftArrow",t[t.Insert=98]="Insert",t[t.Home=99]="Home",t[t.End=100]="End",t[t.PageUp=101]="PageUp",t[t.PageDown=102]="PageDown",t[t.F1=103]="F1",t[t.F2=104]="F2",t[t.F3=105]="F3",t[t.F4=106]="F4",t[t.F5=107]="F5",t[t.F6=108]="F6",t[t.F7=109]="F7",t[t.F8=110]="F8",t[t.F9=111]="F9",t[t.F10=112]="F10",t[t.F11=113]="F11",t[t.F12=114]="F12",t[t.F13=115]="F13",t[t.F14=116]="F14",t[t.F15=117]="F15",t[t.Numlock=118]="Numlock",t[t.CapsLock=119]="CapsLock",t[t.ScrollLock=120]="ScrollLock",t[t.RightShift=121]="RightShift",t[t.LeftShift=122]="LeftShift",t[t.RightControl=123]="RightControl",t[t.LeftControl=124]="LeftControl",t[t.RightAlt=125]="RightAlt",t[t.LeftAlt=126]="LeftAlt",t[t.RightMeta=127]="RightMeta",t[t.LeftApple=128]="LeftApple",t[t.LeftWindows=129]="LeftWindows",t[t.RightWindows=130]="RightWindows",t[t.AltGr=131]="AltGr",t[t.Help=132]="Help",t[t.Print=133]="Print",t[t.SysReq=134]="SysReq",t[t.Break=135]="Break",t[t.Menu=136]="Menu",t[t.Mouse0=137]="Mouse0",t[t.Mouse1=138]="Mouse1",t[t.Mouse2=139]="Mouse2",t[t.Mouse3=140]="Mouse3",t[t.Mouse4=141]="Mouse4",t[t.Mouse5=142]="Mouse5",t[t.Mouse6=143]="Mouse6",t[t.JoystickButton0=144]="JoystickButton0",t[t.JoystickButton1=145]="JoystickButton1",t[t.JoystickButton2=146]="JoystickButton2",t[t.JoystickButton3=147]="JoystickButton3",t[t.JoystickButton4=148]="JoystickButton4",t[t.JoystickButton5=149]="JoystickButton5",t[t.JoystickButton6=150]="JoystickButton6",t[t.JoystickButton7=151]="JoystickButton7",t[t.JoystickButton8=152]="JoystickButton8",t[t.JoystickButton9=153]="JoystickButton9",t[t.JoystickButton10=154]="JoystickButton10",t[t.JoystickButton11=155]="JoystickButton11",t[t.JoystickButton12=156]="JoystickButton12",t[t.JoystickButton13=157]="JoystickButton13",t[t.JoystickButton14=158]="JoystickButton14",t[t.JoystickButton15=159]="JoystickButton15",t[t.JoystickButton16=160]="JoystickButton16",t[t.JoystickButton17=161]="JoystickButton17",t[t.JoystickButton18=162]="JoystickButton18",t[t.JoystickButton19=163]="JoystickButton19",t[t.Joystick1Button0=164]="Joystick1Button0",t[t.Joystick1Button1=165]="Joystick1Button1",t[t.Joystick1Button2=166]="Joystick1Button2",t[t.Joystick1Button3=167]="Joystick1Button3",t[t.Joystick1Button4=168]="Joystick1Button4",t[t.Joystick1Button5=169]="Joystick1Button5",t[t.Joystick1Button6=170]="Joystick1Button6",t[t.Joystick1Button7=171]="Joystick1Button7",t[t.Joystick1Button8=172]="Joystick1Button8",t[t.Joystick1Button9=173]="Joystick1Button9",t[t.Joystick1Button10=174]="Joystick1Button10",t[t.Joystick1Button11=175]="Joystick1Button11",t[t.Joystick1Button12=176]="Joystick1Button12",t[t.Joystick1Button13=177]="Joystick1Button13",t[t.Joystick1Button14=178]="Joystick1Button14",t[t.Joystick1Button15=179]="Joystick1Button15",t[t.Joystick1Button16=180]="Joystick1Button16",t[t.Joystick1Button17=181]="Joystick1Button17",t[t.Joystick1Button18=182]="Joystick1Button18",t[t.Joystick1Button19=183]="Joystick1Button19",t[t.Joystick2Button0=184]="Joystick2Button0",t[t.Joystick2Button1=185]="Joystick2Button1",t[t.Joystick2Button2=186]="Joystick2Button2",t[t.Joystick2Button3=187]="Joystick2Button3",t[t.Joystick2Button4=188]="Joystick2Button4",t[t.Joystick2Button5=189]="Joystick2Button5",t[t.Joystick2Button6=190]="Joystick2Button6",t[t.Joystick2Button7=191]="Joystick2Button7",t[t.Joystick2Button8=192]="Joystick2Button8",t[t.Joystick2Button9=193]="Joystick2Button9",t[t.Joystick2Button10=194]="Joystick2Button10",t[t.Joystick2Button11=195]="Joystick2Button11",t[t.Joystick2Button12=196]="Joystick2Button12",t[t.Joystick2Button13=197]="Joystick2Button13",t[t.Joystick2Button14=198]="Joystick2Button14",t[t.Joystick2Button15=199]="Joystick2Button15",t[t.Joystick2Button16=200]="Joystick2Button16",t[t.Joystick2Button17=201]="Joystick2Button17",t[t.Joystick2Button18=202]="Joystick2Button18",t[t.Joystick2Button19=203]="Joystick2Button19",t[t.Joystick3Button0=204]="Joystick3Button0",t[t.Joystick3Button1=205]="Joystick3Button1",t[t.Joystick3Button2=206]="Joystick3Button2",t[t.Joystick3Button3=207]="Joystick3Button3",t[t.Joystick3Button4=208]="Joystick3Button4",t[t.Joystick3Button5=209]="Joystick3Button5",t[t.Joystick3Button6=210]="Joystick3Button6",t[t.Joystick3Button7=211]="Joystick3Button7",t[t.Joystick3Button8=212]="Joystick3Button8",t[t.Joystick3Button9=213]="Joystick3Button9",t[t.Joystick3Button10=214]="Joystick3Button10",t[t.Joystick3Button11=215]="Joystick3Button11",t[t.Joystick3Button12=216]="Joystick3Button12",t[t.Joystick3Button13=217]="Joystick3Button13",t[t.Joystick3Button14=218]="Joystick3Button14",t[t.Joystick3Button15=219]="Joystick3Button15",t[t.Joystick3Button16=220]="Joystick3Button16",t[t.Joystick3Button17=221]="Joystick3Button17",t[t.Joystick3Button18=222]="Joystick3Button18",t[t.Joystick3Button19=223]="Joystick3Button19",t[t.Joystick4Button0=224]="Joystick4Button0",t[t.Joystick4Button1=225]="Joystick4Button1",t[t.Joystick4Button2=226]="Joystick4Button2",t[t.Joystick4Button3=227]="Joystick4Button3",t[t.Joystick4Button4=228]="Joystick4Button4",t[t.Joystick4Button5=229]="Joystick4Button5",t[t.Joystick4Button6=230]="Joystick4Button6",t[t.Joystick4Button7=231]="Joystick4Button7",t[t.Joystick4Button8=232]="Joystick4Button8",t[t.Joystick4Button9=233]="Joystick4Button9",t[t.Joystick4Button10=234]="Joystick4Button10",t[t.Joystick4Button11=235]="Joystick4Button11",t[t.Joystick4Button12=236]="Joystick4Button12",t[t.Joystick4Button13=237]="Joystick4Button13",t[t.Joystick4Button14=238]="Joystick4Button14",t[t.Joystick4Button15=239]="Joystick4Button15",t[t.Joystick4Button16=240]="Joystick4Button16",t[t.Joystick4Button17=241]="Joystick4Button17",t[t.Joystick4Button18=242]="Joystick4Button18",t[t.Joystick4Button19=243]="Joystick4Button19",t[t.Joystick5Button0=244]="Joystick5Button0",t[t.Joystick5Button1=245]="Joystick5Button1",t[t.Joystick5Button2=246]="Joystick5Button2",t[t.Joystick5Button3=247]="Joystick5Button3",t[t.Joystick5Button4=248]="Joystick5Button4",t[t.Joystick5Button5=249]="Joystick5Button5",t[t.Joystick5Button6=250]="Joystick5Button6",t[t.Joystick5Button7=251]="Joystick5Button7",t[t.Joystick5Button8=252]="Joystick5Button8",t[t.Joystick5Button9=253]="Joystick5Button9",t[t.Joystick5Button10=254]="Joystick5Button10",t[t.Joystick5Button11=255]="Joystick5Button11",t[t.Joystick5Button12=256]="Joystick5Button12",t[t.Joystick5Button13=257]="Joystick5Button13",t[t.Joystick5Button14=258]="Joystick5Button14",t[t.Joystick5Button15=259]="Joystick5Button15",t[t.Joystick5Button16=260]="Joystick5Button16",t[t.Joystick5Button17=261]="Joystick5Button17",t[t.Joystick5Button18=262]="Joystick5Button18",t[t.Joystick5Button19=263]="Joystick5Button19",t[t.Joystick6Button0=264]="Joystick6Button0",t[t.Joystick6Button1=265]="Joystick6Button1",t[t.Joystick6Button2=266]="Joystick6Button2",t[t.Joystick6Button3=267]="Joystick6Button3",t[t.Joystick6Button4=268]="Joystick6Button4",t[t.Joystick6Button5=269]="Joystick6Button5",t[t.Joystick6Button6=270]="Joystick6Button6",t[t.Joystick6Button7=271]="Joystick6Button7",t[t.Joystick6Button8=272]="Joystick6Button8",t[t.Joystick6Button9=273]="Joystick6Button9",t[t.Joystick6Button10=274]="Joystick6Button10",t[t.Joystick6Button11=275]="Joystick6Button11",t[t.Joystick6Button12=276]="Joystick6Button12",t[t.Joystick6Button13=277]="Joystick6Button13",t[t.Joystick6Button14=278]="Joystick6Button14",t[t.Joystick6Button15=279]="Joystick6Button15",t[t.Joystick6Button16=280]="Joystick6Button16",t[t.Joystick6Button17=281]="Joystick6Button17",t[t.Joystick6Button18=282]="Joystick6Button18",t[t.Joystick6Button19=283]="Joystick6Button19",t[t.Joystick7Button0=284]="Joystick7Button0",t[t.Joystick7Button1=285]="Joystick7Button1",t[t.Joystick7Button2=286]="Joystick7Button2",t[t.Joystick7Button3=287]="Joystick7Button3",t[t.Joystick7Button4=288]="Joystick7Button4",t[t.Joystick7Button5=289]="Joystick7Button5",t[t.Joystick7Button6=290]="Joystick7Button6",t[t.Joystick7Button7=291]="Joystick7Button7",t[t.Joystick7Button8=292]="Joystick7Button8",t[t.Joystick7Button9=293]="Joystick7Button9",t[t.Joystick7Button10=294]="Joystick7Button10",t[t.Joystick7Button11=295]="Joystick7Button11",t[t.Joystick7Button12=296]="Joystick7Button12",t[t.Joystick7Button13=297]="Joystick7Button13",t[t.Joystick7Button14=298]="Joystick7Button14",t[t.Joystick7Button15=299]="Joystick7Button15",t[t.Joystick7Button16=300]="Joystick7Button16",t[t.Joystick7Button17=301]="Joystick7Button17",t[t.Joystick7Button18=302]="Joystick7Button18",t[t.Joystick7Button19=303]="Joystick7Button19",t[t.Joystick8Button0=304]="Joystick8Button0",t[t.Joystick8Button1=305]="Joystick8Button1",t[t.Joystick8Button2=306]="Joystick8Button2",t[t.Joystick8Button3=307]="Joystick8Button3",t[t.Joystick8Button4=308]="Joystick8Button4",t[t.Joystick8Button5=309]="Joystick8Button5",t[t.Joystick8Button6=310]="Joystick8Button6",t[t.Joystick8Button7=311]="Joystick8Button7",t[t.Joystick8Button8=312]="Joystick8Button8",t[t.Joystick8Button9=313]="Joystick8Button9",t[t.Joystick8Button10=314]="Joystick8Button10",t[t.Joystick8Button11=315]="Joystick8Button11",t[t.Joystick8Button12=316]="Joystick8Button12",t[t.Joystick8Button13=317]="Joystick8Button13",t[t.Joystick8Button14=318]="Joystick8Button14",t[t.Joystick8Button15=319]="Joystick8Button15",t[t.Joystick8Button16=320]="Joystick8Button16",t[t.Joystick8Button17=321]="Joystick8Button17",t[t.Joystick8Button18=322]="Joystick8Button18",t[t.Joystick8Button19=323]="Joystick8Button19"}(o||(o={})),function(t){t[t.hasUnity=0]="hasUnity",t[t.windowsUrl=1]="windowsUrl",t[t.osxUrl=2]="osxUrl",t[t.linuxUrl=3]="linuxUrl",t[t.androidUrl=4]="androidUrl",t[t.iosUrl=5]="iosUrl",t[t.vosUrl=6]="vosUrl",t[t.isScene=7]="isScene",t[t.legacyShaderFix=8]="legacyShaderFix",t[t.uid=9]="uid",t[t.attachmentPosition=10]="attachmentPosition",t[t.attachmentRotation=11]="attachmentRotation",t[t.attachmentType=12]="attachmentType",t[t.avatarAttachmentType=13]="avatarAttachmentType",t[t.avatarAttachmentPoint=14]="avatarAttachmentPoint",t[t.attachmentPoint=15]="attachmentPoint",t[t.autoSync=16]="autoSync",t[t.jointAvatar=17]="jointAvatar",t[t.volume=18]="volume",t[t.pitch=19]="pitch",t[t.mute=20]="mute",t[t.loop=21]="loop",t[t.bypassEffects=22]="bypassEffects",t[t.bypassListenerEffects=23]="bypassListenerEffects",t[t.bypassReverbZones=24]="bypassReverbZones",t[t.playOnAwake=25]="playOnAwake",t[t.spatialBlend=26]="spatialBlend",t[t.smoothing=27]="smoothing",t[t.enableXAxis=28]="enableXAxis",t[t.enableYAxis=29]="enableYAxis",t[t.enableZAxis=30]="enableZAxis",t[t.isTrigger=31]="isTrigger",t[t.center=32]="center",t[t.size=33]="size",t[t.url=34]="url",t[t.mipMaps=35]="mipMaps",t[t.pixelsPerUnit=36]="pixelsPerUnit",t[t.pageWidth=37]="pageWidth",t[t.pageHeight=38]="pageHeight",t[t.actions=39]="actions",t[t.radius=40]="radius",t[t.height=41]="height",t[t.targetPosition=42]="targetPosition",t[t.autoConfigureConnectedAnchor=43]="autoConfigureConnectedAnchor",t[t.xMotion=44]="xMotion",t[t.yMotion=45]="yMotion",t[t.zMotion=46]="zMotion",t[t.geometryType=47]="geometryType",t[t.parametricType=48]="parametricType",t[t.width=49]="width",t[t.depth=50]="depth",t[t.widthSegments=51]="widthSegments",t[t.heightSegments=52]="heightSegments",t[t.depthSegments=53]="depthSegments",t[t.segments=54]="segments",t[t.thetaStart=55]="thetaStart",t[t.thetaLength=56]="thetaLength",t[t.phiStart=57]="phiStart",t[t.phiLength=58]="phiLength",t[t.radialSegments=59]="radialSegments",t[t.openEnded=60]="openEnded",t[t.radiusTop=61]="radiusTop",t[t.radiusBottom=62]="radiusBottom",t[t.innerRadius=63]="innerRadius",t[t.outerRadius=64]="outerRadius",t[t.thetaSegments=65]="thetaSegments",t[t.phiSegments=66]="phiSegments",t[t.tube=67]="tube",t[t.tubularSegments=68]="tubularSegments",t[t.arc=69]="arc",t[t.p=70]="p",t[t.q=71]="q",t[t.stacks=72]="stacks",t[t.slices=73]="slices",t[t.detail=74]="detail",t[t.parametricPoints=75]="parametricPoints",t[t.generateMipMaps=76]="generateMipMaps",t[t.addColliders=77]="addColliders",t[t.nonConvexColliders=78]="nonConvexColliders",t[t.slippery=79]="slippery",t[t.climbable=80]="climbable",t[t.legacyRotate=81]="legacyRotate",t[t.path=82]="path",t[t.shaderName=83]="shaderName",t[t.texture=84]="texture",t[t.color=85]="color",t[t.side=86]="side",t[t.convex=87]="convex",t[t.renderTextureSize=88]="renderTextureSize",t[t.cameraClear=89]="cameraClear",t[t.backgroundColor=90]="backgroundColor",t[t.dynamicFriction=91]="dynamicFriction",t[t.staticFriction=92]="staticFriction",t[t.instance=93]="instance",t[t.mass=94]="mass",t[t.drag=95]="drag",t[t.angularDrag=96]="angularDrag",t[t.isKinematic=97]="isKinematic",t[t.useGravity=98]="useGravity",t[t.centerOfMass=99]="centerOfMass",t[t.collisionDetectionMode=100]="collisionDetectionMode",t[t.freezePositionX=101]="freezePositionX",t[t.freezePositionY=102]="freezePositionY",t[t.freezePositionZ=103]="freezePositionZ",t[t.freezeRotationX=104]="freezeRotationX",t[t.freezeRotationY=105]="freezeRotationY",t[t.freezeRotationZ=106]="freezeRotationZ",t[t.velocity=107]="velocity",t[t.angularVelocity=108]="angularVelocity",t[t.panoId=109]="panoId",t[t.syncPosition=110]="syncPosition",t[t.syncRotation=111]="syncRotation",t[t.takeOwnershipOnCollision=112]="takeOwnershipOnCollision",t[t.takeOwnershipOnGrab=113]="takeOwnershipOnGrab",t[t.kinematicIfNotOwned=114]="kinematicIfNotOwned",t[t.doIOwn=115]="doIOwn",t[t.text=116]="text",t[t.horizontalAlignment=117]="horizontalAlignment",t[t.verticalAlignment=118]="verticalAlignment",t[t.fontSize=119]="fontSize",t[t.richText=120]="richText",t[t.enableWordWrapping=121]="enableWordWrapping",t[t.rectTransformSizeDelta=122]="rectTransformSizeDelta",t[t.lerpPosition=123]="lerpPosition",t[t.lerpRotation=124]="lerpRotation",t[t.position=125]="position",t[t.localPosition=126]="localPosition",t[t.rotation=127]="rotation",t[t.localRotation=128]="localRotation",t[t.localScale=129]="localScale",t[t.eulerAngles=130]="eulerAngles",t[t.localEulerAngles=131]="localEulerAngles",t[t.up=132]="up",t[t.forward=133]="forward",t[t.right=134]="right",t[t.skipOnDrop=135]="skipOnDrop",t[t.waitForFirstFrame=136]="waitForFirstFrame",t[t.isPlaying=137]="isPlaying",t[t.isLooping=138]="isLooping",t[t.isPrepared=139]="isPrepared",t[t.isMuted=140]="isMuted",t[t.duration=141]="duration",t[t.time=142]="time"}(a||(a={})),function(t){t[t.Locked=0]="Locked",t[t.Limited=1]="Limited",t[t.Free=2]="Free"}(c||(c={})),function(t){t.REQUEST_ID="!i!",t.UPDATE="!u!",t.DOM_READY="!dr!",t.LOAD_FAILED="!lf!",t.ONLOAD="!ol!",t.RELOAD="!r!",t.SCENE_READY="!sr!",t.SCENE_START="!sst!",t.SCENE_SETTINGS="!ss!",t.NOTHING_20S="!no20s!",t.NOTHING="!no!",t.OBJECT_ADDED="!oa!",t.COMPONENT_ADDED="!ca!",t.OBJECT_UPDATE_REQUEST="!our!",t.QUERY_COMPONENTS="!qc!",t.WATCH_PROPERTIES="!wp!",t.SET_PARENT="!sp!",t.COMPONENT_REMOVED="!cr!",t.SET_ACTIVE="!sa!",t.OBJECT_REMOVED="!or!",t.COMPONENT_UPDATED="!cu!",t.INSTANTIATE="!inst!",t.WAIT_FOR_END_OF_FRAME="!weof!",t.CALL_METHOD="!cm!",t.METHOD_RETURN="!mr!",t.RAYCAST="!rc!",t.SET_PUBLIC_SPACE_PROPS="!spsp!",t.SET_PROTECTED_SPACE_PROPS="!sprsp!",t.SET_USER_PROPS="!sup!",t.TELEPORT="!t!",t.ATTACH="!at!",t.DETACH="!dt!",t.LOAD_URL="!lu!",t.TOGGLE_DEV_TOOLS="!tdt!",t.HIDE_DEV_TOOLS="!hdt!",t.ENABLE_LEGACY="!el!",t.SET_LAYER="!sl!",t.OPEN_PAGE="!op!",t.START_TTS="!stts!",t.STOP_TTS="!otts!",t.GRAVITY="!gv!",t.TIME_SCALE="!ts!",t.PLAYER_SPEED="!ps!",t.DEEP_LINK="!dl!",t.ONE_SHOT="!ons!",t.SEND_MENU_BROWSER_MESSAGE="!smbm!",t.INJECT_JS="!ijs!",t.INJECT_JS_CALLBACK="!ijc!",t.YT_INFO="!yti!",t.LOCK_TELEPORT="!lt!",t.LOCK_SPIDERMAN="!ls!",t.EVENT="!e!",t.LOADED="l!",t.UNITY_LOADED="ulo!",t.CLICKED="c!",t.GRABBED="g!",t.RELEASED="r!",t.BUTTON_PRESSED="bp!",t.BUTTON_RELEASED="br!",t.KEY="k!",t.ONE_SHOT_RECIEVED="on!",t.COLLISION_ENTER="ce!",t.COLLISION_EXIT="cx!",t.COLLISION_STAY="cs!",t.TRIGGER_ENTER="te!",t.TRIGGER_EXIT="tx!",t.TRIGGER_STAY="ts!",t.USER_JOINED="uj!",t.USER_LEFT="ul!",t.USER_STATE_CHANGED="upc!",t.SPACE_STATE_CHANGED="spc!",t.AFRAME_TRIGGER="at!",t.MENU_BROWSER_MESSAGE="mbm!",t.BROWSER_MESSAGE="bm!",t.SEND_TRANSCRIPTION="st!",t.BANTER_VERSION="bv!",t.SEND_USER="su!",t.FULL_SPACE_STATE="fss!",t.VOICE_STARTED="vs!",t.PLAY_AVATAR="pa!",t.LEGACY="!le",t.LEGACY_SEND_TO_AFRAME="sta!",t.LEGACY_SET_CHILD_COLOR="scc!",t.LEGACY_LOCK_PLAYER="lp!",t.LEGACY_UNLOCK_PLAYER="up!",t.LEGACY_SIT_PLAYER="sp!",t.LEGACY_UNSIT_PLAYER="usp!",t.LEGACY_GORILLA_PLAYER="gp!",t.LEGACY_UNGORILLA_PLAYER="ugp!",t.LEGACY_ENABLE_CONTROLLER_EXTRAS="ece!",t.LEGACY_ENABLE_QUATERNION_POSE="eqp!",t.LEGACY_SET_VIDEO_URL="svu!",t.LEGACY_SET_REFRESH_RATE="srr!",t.LEGACY_SEND_AFRAME_EVENT="sae!",t.LEGACY_PLAY_AVATAR="lpa!",t.LEGACY_REQUEST_OWNERSHIP="ro!",t.LEGACY_RESET_NETWORK_OBJECT="rno!",t.LEGACY_DO_I_OWN="dio!",t.LEGACY_ATTACH_OBJECT="ao!"}(h||(h={})),function(t){t.PRIMARY="|",t.SECONDARY="~~",t.TERTIARY="~:~",t.REQUEST_ID=":"}(l||(l={}));class d{createDelegate(){this.listeners||(this.listeners=new Map)}On(t,e){this.addEventListener.call(this,t,e)}Off(t,e){this.removeEventListener.call(this,t,e)}addEventListener(t,e){this.createDelegate();var s=this.listeners.get(t);s||(s=new Set,this.listeners.set(t,s)),s.add(e)}dispatchEvent(t){this.createDelegate();var e=this.listeners.get(t.type);if(e)for(const s of e)s(t);return!0}removeEventListener(t,e){this.createDelegate();var s=this.listeners.get(t);s&&(s.delete(e),0===s.size&&this.listeners.delete(t))}removeAllEventListeners(){this.createDelegate(),this.listeners||this.listeners.clear()}}function p(t,e,s){if(t[e])return void(s&&s());const i=(t,e,s)=>{t[e]?s():setTimeout((()=>i(t,e,s)),100)};return s?i(t,e,s):new Promise((s=>i(t,e,s)))}function m(e,s=""){let i="LeftTrigger";switch(e.detail.side){case r.LEFT:switch(e.detail.button){case t.TRIGGER:i="LeftTrigger"+s;break;case t.GRIP:i="LeftGrip"+s;break;case t.PRIMARY:i="LeftPrimary"+s;break;case t.SECONDARY:i="LeftSecondary"+s}break;case r.RIGHT:switch(e.detail.button){case t.TRIGGER:i="RightTrigger"+s;break;case t.GRIP:i="RightGrip"+s;break;case t.PRIMARY:i="RightPrimary"+s;break;case t.SECONDARY:i="RightSecondary"+s}}return i}for(var g,y=[],b=0;b<256;b++)y[b]=(b+256).toString(16).substring(1);function f(){(!g||b+16>4096)&&(4096,g=crypto.getRandomValues(new Uint8Array(4096)),b=0);for(var t,e=0,s="";e<16;e++)t=g[b+e],s+=6==e?y[15&t|64]:8==e?y[63&t|128]:y[t],1&e&&e>1&&e<11&&(s+="-");return b+=16,s}var A=function(t,e,s,i){return new(s||(s=Promise))((function(n,r){function o(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}))};const v=["reqId","linkId","active","parent","oid","type"];class _ extends d{constructor(){super(),this.id=f(),this.scene=St.GetInstance()}Clone(t){t&&Object.keys(t).filter((t=>!v.includes(t))).forEach((e=>{this[e]=t[e]}))}Q(t){return A(this,void 0,void 0,(function*(){yield this.Async();const e=(new lt).Add(this,t);return this.scene.QueryComponents(e)}))}SetProperties(t){return A(this,void 0,void 0,(function*(){yield this.Async();const e=(new lt).Add(this,t);return this.scene.SetComponents(e)}))}Deserialise(t){}Serialise(t){}WatchProperties(t){const e=new ut;e.id=this.id,e.properties=t,this.scene.WatchProperties(e)}Destroy(t=!1){this.scene.RemoveComponent(this,t)}Async(){return A(this,void 0,void 0,(function*(){return yield this.scene.WaitForUnity(this),this}))}}class k extends _{get windowsUrl(){return this._windowsUrl}set windowsUrl(t){this._windowsUrl=t,this.service.SetComponents((new lt).Add(this,[a.windowsUrl]))}get osxUrl(){return this._osxUrl}set osxUrl(t){this._osxUrl=t,this.service.SetComponents((new lt).Add(this,[a.osxUrl]))}get linuxUrl(){return this._linuxUrl}set linuxUrl(t){this._linuxUrl=t,this.service.SetComponents((new lt).Add(this,[a.linuxUrl]))}get androidUrl(){return this._androidUrl}set androidUrl(t){this._androidUrl=t,this.service.SetComponents((new lt).Add(this,[a.androidUrl]))}get iosUrl(){return this._iosUrl}set iosUrl(t){this._iosUrl=t,this.service.SetComponents((new lt).Add(this,[a.iosUrl]))}get vosUrl(){return this._vosUrl}set vosUrl(t){this._vosUrl=t,this.service.SetComponents((new lt).Add(this,[a.vosUrl]))}get isScene(){return this._isScene}set isScene(t){this._isScene=t,this.service.SetComponents((new lt).Add(this,[a.isScene]))}get legacyShaderFix(){return this._legacyShaderFix}set legacyShaderFix(t){this._legacyShaderFix=t,this.service.SetComponents((new lt).Add(this,[a.legacyShaderFix]))}constructor(t=new String,s=new String,i=new String,n=new String,r=new String,o=new String,a=!1,c=!1){super(),this.service=St.GetInstance(),this.type=e.BanterAssetBundle,this._windowsUrl=t,this._osxUrl=s,this._linuxUrl=i,this._androidUrl=n,this._iosUrl=r,this._vosUrl=o,this._isScene=a,this._legacyShaderFix=c}Serialise(t){const e=[];for(let s=0;s{t.parent&&this.scene.objects[t.parent]?t.path=this.scene.objects[t.parent].path+"/"+t.name:t.path=t.name}))}Traverse(t,e=!1){t(this);const s=Object.keys(this.scene.objects);if(e&&this.parent&&this.scene.objects[this.parent])this.scene.objects[this.parent].Traverse(t,!0);else for(let e=0;e{e.id==t.id&&(s=!0)})),s)throw new Error("Cannot set parent from a child object");return this.scene.SetParent(this,t,e)}))}AddComponent(t){return st(this,void 0,void 0,(function*(){return this.scene.AddComponent(this,t)}))}Async(){return st(this,void 0,void 0,(function*(){return yield this.scene.WaitForUnity(this),this}))}}function nt(t){return st(this,void 0,void 0,(function*(){return new it(t).Async()}))}class rt extends d{constructor(){super(),this.props={},this.scene=St.GetInstance()}Attach(t,e){return s=this,i=void 0,r=function*(){},new((n=void 0)||(n=Promise))((function(t,e){function o(t){try{c(r.next(t))}catch(t){e(t)}}function a(t){try{c(r.throw(t))}catch(t){e(t)}}function c(e){var s;e.done?t(e.value):(s=e.value,s instanceof n?s:new n((function(t){t(s)}))).then(o,a)}c((r=r.apply(s,i||[])).next())}));var s,i,n,r}}function ot(t){const e=St.GetInstance();switch(t.type){case"AvatarPlaybackCompleted":{const s=e.objects[t.id];s&&s.meta&&s.meta.el?s.meta.el.emit("avatar-playback-complete",t,!1):s.dispatchEvent(new CustomEvent("avatar-playback-complete",{detail:t}))}break;case"UserPose":window.userpose=t.pose,window.userPoseCallback&&window.userPoseCallback(t.pose),window.legacyPoseEnabled&&e.dispatchEvent(new CustomEvent("legacy-user-pose",{detail:t.pose}));break;case"VideoPrepareComplete":const s=e.objects[t.id];s&&s.meta&&s.meta.el?s.meta.el.emit("video-prepare-complete",t,!1):s.dispatchEvent(new CustomEvent("video-prepare-complete",{detail:t}));break;case"DoIOwn":window.doIOwnCallback&&window.doIOwnCallback(t.objectId,t.owned);break;default:console.log("Unknown message: "),console.log(t)}}class at{constructor(t){this.totalCount=0,this.firstStartStamp=0,this.lastStamp=0,this.lastCount=0,this.started=!1,this.name=t,this.startTime=0}dumpLog(t){const e=t-this.lastStamp,s=`Counter ${this.name}: ${this.lastCount} in ${e.toFixed(2)} (${(this.lastCount/e).toFixed(2)}/sec), ${this.totalCount} total`;this.lastCount=0,this.lastStamp=t,console.log(s)}add(t=1){try{this.totalCount+=t,this.lastCount+=t,this.started||(this.started=!0,this.startTime=performance.now(),this.firstStartStamp=0,this.lastStamp=0);const e=(performance.now()-this.startTime)/1e3;e-this.lastStamp>=at.LOG_INTERVAL_SEC&&this.dumpLog(e)}catch(t){throw console.error("Exception",t),t}}}at.LOG_INTERVAL_SEC=1;class ct{constructor(t){this.emitCounter=new at("ApiWrapper: Web -> Unity"),this.onCounter=new at("ApiWrapper: Unity -> Web"),this.api=t}emit(t){this.api.emit(t)}on(t){this.api.on((e=>{t(e)}))}}var ht=function(t,e,s,i){return new(s||(s=Promise))((function(n,r){function o(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}))};class lt{constructor(){this.components={}}Add(t,e){return this.components[t.id]={comp:t,props:e},this}}class ut{constructor(){this.properties=[]}}class dt{constructor(){this.EnableDevTools=!0,this.EnableTeleport=!0,this.EnableForceGrab=!1,this.EnableSpiderMan=!1,this.EnablePortals=!0,this.EnableGuests=!0,this.EnableQuaternionPose=!1,this.EnableControllerExtras=!1,this.EnableFriendPositionJoin=!0,this.EnableDefaultTextures=!0,this.EnableAvatars=!0,this.MaxOccupancy=20,this.RefreshRate=72,this.ClippingPlane=new S(.02,1500),this.SpawnPoint=new C}Serialize(){return Object.keys(this).map((t=>{if(this[t].Serialize)return t+l.SECONDARY+this[t].Serialize();switch(t){case"MaxOccupancy":case"RefreshRate":return t+l.SECONDARY+this[t];default:return t+l.SECONDARY+(this[t]?1:0)}})).join(l.PRIMARY)}Deserialize(t){t.split(l.PRIMARY).map((t=>t.split(l.SECONDARY))).forEach((t=>{const e=t[0];if(this[e].Deserialize)this[e].Deserialize(t[1]);else switch(e){case"RefreshRate":case"MaxOccupancy":this[e]=Number(t[1]);default:this[e]="1"==t[1]}}))}}const pt={},mt={},gt=new class{constructor(){this._updates=[],this._api=new ct(window._api),this._interval=setInterval((()=>this.tick()),11)}emit(t){this._updates.push(t)}tick(){this._updates.length>0&&(this._api.emit(l.PRIMARY+l.SECONDARY+l.TERTIARY+Array.from(this._updates).join(l.PRIMARY+l.SECONDARY+l.TERTIARY)),this._updates=[])}on(t){this._api.on(t)}},yt={};let bt,ft,At,vt=0;var _t=t=>{ft||gt.emit(t)};setTimeout((()=>_t(h.NOTHING_20S)),3e4),setTimeout((()=>_t(h.NOTHING)),26e4);let kt=new class extends d{};function wt(t,e,s=!1){return ht(this,void 0,void 0,(function*(){const i=yield new it("AssetBundleLoader").Async(),n=location.protocol+"//"+location.host;return console.log("Loading asset bundle from HTML: ",e||n+"/windows.banter",t||n+"/android.banter"),yield i.AddComponent(new k(e||n+"/windows.banter",null,null,t||n+"/android.banter",null,null,!0,s)),i}))}new class{constructor(){document.addEventListener("DOMContentLoaded",(()=>{this.html=document.querySelector("html"),this.hasAndroid=this.html.hasAttribute("android-bundle"),this.hasWindows=this.html.hasAttribute("windows-bundle"),this.setup()}))}setup(){return t=this,e=void 0,i=function*(){(this.hasAndroid||this.hasWindows)&&wt(this.html.getAttribute("android-bundle"),this.html.getAttribute("windows-bundle"))},new((s=void 0)||(s=Promise))((function(n,r){function o(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?n(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}));var t,e,s,i}};class St extends d{constructor(){super(),this.objects={},this.components={},this.users={},this.spaceState={public:{},protected:{}},gt.emit(h.SCENE_START),this.FireUnityLoaded(),gt.on((t=>this.ParseMessage(t)))}FireUnityLoaded(){return ht(this,void 0,void 0,(function*(){yield this.WaitForUnityLoaded(),yield this.WaitForEndOfFrame(),this.dispatchEvent(new CustomEvent(et.UNITY_LOADED))}))}SetLoadPromise(t){return ht(this,void 0,void 0,(function*(){At?console.warn("Load promise already set."):(At=t,yield At,this.SetSceneLoaded())}))}SetSettings(t){return ht(this,void 0,void 0,(function*(){yield this.Send(h.SCENE_SETTINGS,t.Serialize())}))}SetSceneLoaded(){ft=!0,console.log("Banter Scene Loaded."),gt.emit(h.SCENE_READY),this.dispatchEvent(new CustomEvent(et.LOADED))}DebounceLoad(){ft||At||(clearTimeout(bt),bt=setTimeout((()=>{this.SetSceneLoaded()}),500))}Find(t){return ht(this,void 0,void 0,(function*(){const e=Object.values(this.objects);for(let s=0;st+l.TERTIARY+e[t])).join(l.SECONDARY)+(s?l.PRIMARY+s:""))}WaitForEndOfFrame(){return ht(this,void 0,void 0,(function*(){yield this.Send(h.WAIT_FOR_END_OF_FRAME,"")}))}Instantiate(t){return ht(this,void 0,void 0,(function*(){yield t.Async();const e=t.active;e||(yield t.SetActive(!0));const s=yield this.Send(h.INSTANTIATE,t.id);return e||t.SetActive(!1),yield this.WaitForEndOfFrame(),this.objects[s.split(l.PRIMARY)[1]]}))}SetLayer(t,e){return ht(this,void 0,void 0,(function*(){yield t.Async(),yield this.Send(h.SET_LAYER,t.id+l.PRIMARY+e)}))}SetActive(t,e){return ht(this,void 0,void 0,(function*(){yield this.WaitForUnityLoaded(),yield this.Send(h.SET_ACTIVE,t.id+l.PRIMARY+(e?1:0)),t.active=e}))}AddObject(t,e=!1){return ht(this,void 0,void 0,(function*(){this.DebounceLoad(),e?(mt[t.id]=t,yield this.Send(h.OBJECT_ADDED,t.id+l.PRIMARY+(t.active?1:0)+l.PRIMARY+t.name)):this.objects[t.id]?Object.assign(this.objects[t.id],t):this.objects[t.id]=t}))}Raycast(t,e,s=1e3,i=-1){return this.Send(h.RAYCAST,t.x+l.PRIMARY+t.y+l.PRIMARY+t.z+l.PRIMARY+e.x+l.PRIMARY+e.y+l.PRIMARY+e.z+l.PRIMARY+s+l.PRIMARY+i)}OneShot(t,e=!0){return ht(this,void 0,void 0,(function*(){yield this.Send(h.ONE_SHOT,(e?"1":"0")+l.PRIMARY+t)}))}CallMethod(t,e,s){return ht(this,void 0,void 0,(function*(){yield t.Async(),yield this.Send(h.CALL_METHOD,t.id+l.PRIMARY+e+l.PRIMARY+s.join(l.SECONDARY))}))}AddComponent(t,e){return ht(this,void 0,void 0,(function*(){yield t.Async(),e.gameObject=t,e.oid=t.id,pt[e.id]=e;const s=e.Serialise(Object.keys(a).filter((t=>!isNaN(Number(t)))).map((t=>parseInt(t))));return yield this.Send(h.COMPONENT_ADDED,t.id+l.PRIMARY+e.id+l.PRIMARY+e.type+l.PRIMARY+s),e}))}RemoveComponent(t,e=!1){return ht(this,void 0,void 0,(function*(){t.removeAllEventListeners(),delete t.gameObject.components[t.id],delete this.components[t.id],e||(yield this.Send(h.COMPONENT_REMOVED,t.id))}))}RemoveObject(t,e=!1){return ht(this,void 0,void 0,(function*(){this.objects[t.id]&&(this.objects[t.id].removeAllEventListeners(),Object.keys(this.objects[t.id].components).forEach((t=>{this.components[t].Destroy(e)})),delete this.objects[t.id]),e||(yield this.Send(h.OBJECT_REMOVED,t.id))}))}Send(t,e){return ht(this,void 0,void 0,(function*(){return new Promise((s=>{vt>9999&&(vt=0);const i=h.REQUEST_ID+l.REQUEST_ID+ ++vt;yt[vt]=s,gt.emit(i+l.PRIMARY+t+l.PRIMARY+e)}))}))}EnableLegacy(){gt.emit(h.ENABLE_LEGACY)}WaitForUnity(t){return ht(this,void 0,void 0,(function*(){if(!t.hasUnity)return new Promise((e=>{t.addEventListener(et.UNITY_LINKED,(t=>{e()}))}))}))}QueryComponents(t){return ht(this,void 0,void 0,(function*(){const e=Object.values(t.components),s=e.map((t=>t.comp.id+l.SECONDARY+t.props.join(l.TERTIARY)));return yield this.Send(h.QUERY_COMPONENTS,s.join(l.PRIMARY)),e.map((t=>t.comp))}))}WatchProperties(t){return ht(this,void 0,void 0,(function*(){this.components[t.id]&&(yield this.Send(h.WATCH_PROPERTIES,t.id+l.PRIMARY+t.properties.join(l.SECONDARY)))}))}SetComponents(t,e=!1){return ht(this,void 0,void 0,(function*(){const s=Object.values(t.components);yield Promise.all(s.map((t=>t.comp.Async())));const i=s.map((t=>t.comp.oid+l.PRIMARY+t.comp.id+l.PRIMARY+t.comp.Serialise(t.props))),n=(e?1:0)+l.TERTIARY+i.join(l.TERTIARY);return e?yield this.Send(h.COMPONENT_UPDATED,n):gt.emit(h.REQUEST_ID+l.REQUEST_ID+1e4+l.PRIMARY+h.COMPONENT_UPDATED+l.PRIMARY+n),s.map((t=>t.comp))}))}WaitForUnityLoaded(){return ht(this,void 0,void 0,(function*(){yield p(this,"unityLoaded")}))}ProcessUpdates(t){var e={};t.forEach((t=>{const s=t.split(l.PRIMARY),i=Number(s[0]);this.objects[i]||this.AddUnexpectedObject(i);const n=Number(s[1]),r=Number(s[2]);if(n){if(!this.components[n]){const t=tt(r);this.components[n]=new t,this.components[n].gameObject=this.objects[i],this.components[n].oid=i,this.components[n].id=n,this.components[n].hasUnity=!0,this.objects[i].components[n]=this.components[n],this.components[n].Deserialise(s[3])}this.components[n].Deserialise(s[3]),e[i]=e[i]||{cids:[]},e[i].cids.includes(n)||e[i].cids.push(n)}}));var s=Object.keys(e);for(let t=0;tthis.ParseMessage(t)));break;case t.startsWith(h.UPDATE):this.ProcessUpdates(t.substring(h.UPDATE.length).split(l.TERTIARY));break;case t.startsWith(h.EVENT):this.ProcessEvent(t)}}}ProcessEvent(t){var e,s;const i=t.substring(h.EVENT.length,t.indexOf(l.PRIMARY,h.EVENT.length)),n=t.substring(t.indexOf(l.PRIMARY,h.EVENT.length)+1).split(l.SECONDARY);switch(i){case h.SEND_TRANSCRIPTION:{const t=n[0],e=n[1];this.dispatchEvent(new CustomEvent("transcription",{detail:{message:e,id:t}}))}break;case h.CLICKED:if(this.objects[n[0]]){const t=this.objects[n[0]],e=new E(Number(n[1]),Number(n[2]),Number(n[3])),s=new E(Number(n[4]),Number(n[5]),Number(n[6]));t.dispatchEvent(new CustomEvent("click",{detail:{point:e,normal:s}}))}break;case h.GRABBED:if(this.objects[n[0]]){const t=this.objects[n[0]],e=new E(Number(n[1]),Number(n[2]),Number(n[3])),s=new E(Number(n[4]),Number(n[5]),Number(n[6])),i=Number(n[7]);t.dispatchEvent(new CustomEvent("grab",{detail:{point:e,normal:s,side:i}}))}break;case h.RELEASED:if(this.objects[n[0]]){const t=this.objects[n[0]],e=Number(n[1]);t.dispatchEvent(new CustomEvent("drop",{detail:{side:e}}))}break;case h.BUTTON_PRESSED:case h.BUTTON_RELEASED:const t=Number(n[0]),r=Number(n[1]);this.dispatchEvent(new CustomEvent(i===h.BUTTON_PRESSED?"button-pressed":"button-released",{detail:{button:t,side:r}}));break;case h.LOADED:const o=n[0];this.components[o]&&this.components[o].dispatchEvent(new CustomEvent(et.LOADED));break;case h.MENU_BROWSER_MESSAGE:this.dispatchEvent(new CustomEvent("menu-browser-message",{detail:n[0]}));break;case h.USER_LEFT:case h.USER_JOINED:const a=i===h.USER_JOINED,c=n[0],u=n[1],d="1"==n[2],p=n[3],m=n[4];a&&!this.users[c]?(this.users[c]=new rt,this.users[c].id=p,this.users[c].uid=c,this.users[c].color=m,this.users[c].isLocal=d,this.users[c].name=u,d&&(this.localUser=this.users[c]),console.warn("user joined: ",this.users[c]),this.dispatchEvent(new CustomEvent("user-joined",{detail:this.users[c]}))):a&&this.users[c]?(console.warn("got user-joined event for user that already joined: ",this.users[c]),this.users[c].id=p,this.users[c].uid=c,this.users[c].color=m,this.users[c].isLocal=d,this.users[c].name=u,d&&(this.localUser=this.users[c])):!a&&this.users[c]&&(console.warn("user left: ",this.users[c]),this.dispatchEvent(new CustomEvent("user-left",{detail:this.users[c]})),delete this.users[c]);break;case h.FULL_SPACE_STATE:let g=JSON.parse(n[0]);const y=(null===(e=this.spaceState)||void 0===e?void 0:e.protected)||{},b=(null===(s=this.spaceState)||void 0===s?void 0:s.public)||{};this.spaceState={public:{},protected:{}},this.spaceState.public=(null==g?void 0:g.public)||{},this.spaceState.protected=(null==g?void 0:g.protected)||{};const f=[],A=Object.keys(this.spaceState.protected),v=Object.keys(y),_=Object.keys(this.spaceState.public),k=Object.keys(b);_.filter((t=>!k.includes(t))).forEach((t=>{f.push({type:"public",property:t,oldValue:null,newValue:this.spaceState.public[t]})})),k.filter((t=>!_.includes(t))).forEach((t=>{f.push({type:"public",property:t,oldValue:b[t],newValue:null})})),_.filter((t=>k.includes(t))).forEach((t=>{f.push({type:"public",property:t,oldValue:b[t],newValue:this.spaceState.public[t]})})),A.filter((t=>!v.includes(t))).forEach((t=>{f.push({type:"protected",property:t,oldValue:null,newValue:this.spaceState.protected[t]})})),v.filter((t=>!A.includes(t))).forEach((t=>{f.push({type:"protected",property:t,oldValue:y[t],newValue:null})})),A.filter((t=>v.includes(t))).forEach((t=>{f.push({type:"protected",property:t,oldValue:y[t],newValue:this.spaceState.protected[t]})})),f.length&&this.dispatchEvent(new CustomEvent("space-state-changed",{detail:{changes:f}}));break;case h.SPACE_STATE_CHANGED:const w=n[0],S=n[1],C=n[2],R="1"==n[3];R?this.spaceState.public[w]=S:this.spaceState.protected[w]=S,this.dispatchEvent(new CustomEvent("space-state-changed",{detail:{changes:[{property:w,newValue:S,oldValue:C,isPublic:R}]}}));break;case h.BANTER_VERSION:{const t=n[0],e=n[1],s=n[2],i=n[3];window.VERSION_NAME||(console.log("Banter Version:",e,"("+t+"), Space Instance: "+i),console.log("Unity Version:",s)),window.VERSION_NAME=e,window.VERSION_CODE=t,window.UNITY_VERSION=s,window.SPACE_INSTANCE=i}break;case h.BROWSER_MESSAGE:const P=this.objects[n[0]];P&&P.dispatchEvent(new CustomEvent("browser-message",{detail:n[1]}));break;case h.USER_STATE_CHANGED:{const t=n.shift();if(!this.users[t])return void console.log("got user-state-changed event for user that doesn't exist?",t);const e=this.users[t],s=n.map((t=>{const e=t.split(l.TERTIARY);return{key:e[0],newValue:e[1],oldValue:null}}));Object.keys(e.props).forEach((t=>{s.forEach((s=>{s.key===t&&(e.props[t]=s.newValue)}))})),e.dispatchEvent(new CustomEvent("state-changed",{detail:{id:p,changes:s}})),this.dispatchEvent(new CustomEvent("user-state-changed",{detail:{user:e,changes:s}}))}break;case h.ONE_SHOT_RECIEVED:{const t=n[0],e="1"==n[1],s=n[2];this.dispatchEvent(new CustomEvent("one-shot",{detail:{fromId:t,fromAdmin:e,data:s}}))}break;case h.AFRAME_TRIGGER:const B=n[0];this.dispatchEvent(new CustomEvent("aframe-trigger",{detail:{data:B}}));break;case h.KEY:const O=Number(n[0]);this.dispatchEvent(new CustomEvent("key-press",{detail:{key:O}}));break;case h.UNITY_LOADED:console.log("Unity Scene Loaded."),this.unityLoaded=!0;break;case h.VOICE_STARTED:this.dispatchEvent(new CustomEvent("voice-started",{detail:{}}));break;case h.COLLISION_ENTER:if(this.objects[n[0]]){const t=this.objects[n[0]],e=this.objects[n[1]]||n[1],s=new E(Number(n[2]),Number(n[3]),Number(n[4])),i=new E(Number(n[5]),Number(n[6]),Number(n[7])),r=n[8],o=n[9],a=n[10];let c;a&&this.users[a]&&(c=this.users[a],this.users[a].dispatchEvent(new CustomEvent("collision-enter",{detail:{name:o,tag:r,collider:e,point:s,normal:i,object:t}}))),t.dispatchEvent(new CustomEvent("collision-enter",{detail:{name:o,tag:r,collider:e,point:s,normal:i,user:c}}))}break;case h.COLLISION_EXIT:case h.TRIGGER_EXIT:case h.TRIGGER_ENTER:const T=i===h.COLLISION_EXIT?"collision-exit":i===h.TRIGGER_ENTER?"trigger-enter":"trigger-exit";if(this.objects[n[0]]){const t=this.objects[n[0]],e=this.objects[n[1]]||n[1],s=n[2],i=n[3],r=n[4];let o;r&&this.users[r]&&(o=this.users[r],this.users[r].dispatchEvent(new CustomEvent(T,{detail:{name:i,tag:s,collider:e,object:t}}))),t.dispatchEvent(new CustomEvent(T,{detail:{name:i,tag:s,collider:e,user:o}}))}}}SetComponent(t,e,s){this.components[t].type=e,this.components[t].id=t,this.components[t].oid=s,this.components[t].hasUnity=!0}SetObject(t,e,s,i,n){this.objects[t].name=e,this.objects[t].active=s,this.objects[t].parent=i,this.objects[t].layer=n,this.objects[t].hasUnity=!0,this.objects[t].UpdatePath()}SetParent(t,e,s=!0){return ht(this,void 0,void 0,(function*(){return this.Send(h.SET_PARENT,e.id+l.PRIMARY+t.id+l.PRIMARY+(s?1:0))}))}UpdateObject(t){return this.Send(h.OBJECT_UPDATE_REQUEST,t)}static GetInstance(){return St.instance||(St.instance=new St),St.instance.DebounceLoad(),St.instance}static getInstance(){return console.warn("BS.BanterScene.getInstance is deprecated, use BS.BanterScene.GetInstance instead..."),this.GetInstance()}LegacyAttachObject(t,e,s){return ht(this,void 0,void 0,(function*(){yield t.Async(),gt.emit(h.LEGACY+h.LEGACY_ATTACH_OBJECT+l.PRIMARY+t.id+l.PRIMARY+e+l.PRIMARY+s)}))}LegacySetChildColor(t,e,s){return ht(this,void 0,void 0,(function*(){yield t.Async(),gt.emit(h.LEGACY+h.LEGACY_SET_CHILD_COLOR+l.PRIMARY+t.id+l.PRIMARY+e.x+l.PRIMARY+e.y+l.PRIMARY+e.z+l.PRIMARY+s)}))}LegacyLockPlayer(){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_LOCK_PLAYER+l.PRIMARY)}))}LegacyUnlockPlayer(){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_UNLOCK_PLAYER+l.PRIMARY)}))}LegacySetRefreshRate(t){gt.emit(h.LEGACY+h.LEGACY_SET_REFRESH_RATE+l.PRIMARY+t)}LegacySitPlayer(t){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_SIT_PLAYER+l.PRIMARY+t.id)}))}LegacyUnsitPlayer(){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_UNSIT_PLAYER+l.PRIMARY)}))}LegacyGorillaPlayer(){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_GORILLA_PLAYER+l.PRIMARY)}))}LegacyUngorillaPlayer(){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_UNGORILLA_PLAYER+l.PRIMARY)}))}LegacyEnableControllerExtras(){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_ENABLE_CONTROLLER_EXTRAS+l.PRIMARY)}))}LegacyEnableQuaternionPose(){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_ENABLE_QUATERNION_POSE+l.PRIMARY)}))}LegacySetVideoUrl(t,e){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_SET_VIDEO_URL+l.PRIMARY+t.id+l.PRIMARY+e)}))}LegacySendAframeEvent(t,e,s){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_SEND_AFRAME_EVENT+l.PRIMARY+t+l.PRIMARY+(e?"1":"0")+l.PRIMARY+(s||""))}))}PlayAvatar(t,e,s,i){return ht(this,void 0,void 0,(function*(){yield t.Async(),gt.emit(h.LEGACY+h.PLAY_AVATAR+l.PRIMARY+t.id+l.PRIMARY+e+l.PRIMARY+s+l.PRIMARY+i)}))}LegacyPlayAvatar(t,e,s,i){return ht(this,void 0,void 0,(function*(){yield t.Async(),gt.emit(h.LEGACY+h.LEGACY_PLAY_AVATAR+l.PRIMARY+t.id+l.PRIMARY+e+l.PRIMARY+s+l.PRIMARY+i)}))}LegacyRequestOwnership(t){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_REQUEST_OWNERSHIP+l.PRIMARY+t)}))}LegacyDoIOwn(t){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_DO_I_OWN+l.PRIMARY+t)}))}LegacyResetNetworkObject(t){return ht(this,void 0,void 0,(function*(){gt.emit(h.LEGACY+h.LEGACY_RESET_NETWORK_OBJECT+l.PRIMARY+t)}))}}s(72);const Et={};var Ct=s(217),Rt=Ct.isValidDefaultValue,Pt=Ct.propertyTypes,Bt=console.warn.bind(console);function Ot(t){return"type"in t?"string"==typeof t.type:"default"in t}const Tt=function(t,e){var s;if(Ot(t))return Mt(t,e);for(s in t)t[s]=Mt(t[s],e);return t};function Mt(t,e){var s,i,n=t.default,r=t.type;return t.type?"bool"===t.type?r="boolean":"float"===t.type&&(r="number"):r=void 0===n||"boolean"!=typeof n&&"number"!=typeof n?Array.isArray(n)?"array":"string":typeof n,(i=Pt[r])||Bt("Unknown property type for component `"+e+"`: "+r),s=!!t.parse,t.parse=t.parse||i.parse,t.stringify=t.stringify||i.stringify,t.type=r,"default"in t?s||Rt(r,n)||Bt("Default value `"+n+"` does not match type `"+r+"` in component `"+e+"`"):t.default=i.default,t}const Nt=(xt=[],function(t,e,s=!0,i=null,n=!0){var r,o,a,c;for(o in xt.length=0,s?t:e)s&&void 0===t[o]||xt.push(o);if(null===t||"object"!=typeof t)return t;for(o in t)try{void 0===t[o]||e[o]||n||Bt("Unknown property `"+o+"` for component/system `"+i+"`.")}catch(e){console.log(i,o,t[o])}for(r=0;r",quot:'"',amp:"&",apos:"'"},Jt=/-([a-z])/g;const Dt=function(t,e){var s;return"string"!=typeof t?t:(s=function(t,e){var s,i,n,r,o,a;for(e=e||{},s=Vt(t),i=0;i-1}function te(t,e){return t.apply(null,e)}var ee={arr:function(t){return Array.isArray(t)},obj:function(t){return $t(Object.prototype.toString.call(t),"Object")},pth:function(t){return ee.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||ee.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return ee.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return ee.hex(t)||ee.rgb(t)||ee.hsl(t)},key:function(t){return!Wt.hasOwnProperty(t)&&!Kt.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function se(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function ie(t,e){var s=se(t),i=Qt(ee.und(s[0])?1:s[0],.1,100),n=Qt(ee.und(s[1])?100:s[1],.1,100),r=Qt(ee.und(s[2])?10:s[2],.1,100),o=Qt(ee.und(s[3])?0:s[3],.1,100),a=Math.sqrt(n/i),c=r/(2*Math.sqrt(n*i)),h=c<1?a*Math.sqrt(1-c*c):0,l=c<1?(c*a-o)/h:-o+a;function u(t){var s=e?e*t/1e3:t;return s=c<1?Math.exp(-s*c*a)*(1*Math.cos(h*s)+l*Math.sin(h*s)):(1+l*s)*Math.exp(-s*a),0===t||1===t?t:1-s}return e?u:function(){var e=Xt.springs[t];if(e)return e;for(var s=1/6,i=0,n=0;;)if(1===u(i+=s)){if(++n>=16)break}else n=0;var r=i*s*1e3;return Xt.springs[t]=r,r}}function ne(t){return void 0===t&&(t=10),function(e){return Math.ceil(Qt(e,1e-6,1)*t)*(1/t)}}var re,oe,ae=function(){var t=.1;function e(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function i(t){return 3*t}function n(t,n,r){return((e(n,r)*t+s(n,r))*t+i(n))*t}function r(t,n,r){return 3*e(n,r)*t*t+2*s(n,r)*t+i(n)}return function(e,s,i,o){if(0<=e&&e<=1&&0<=i&&i<=1){var a=new Float32Array(11);if(e!==s||i!==o)for(var c=0;c<11;++c)a[c]=n(c*t,e,i);return function(c){return e===s&&i===o||0===c||1===c?c:n(function(s){for(var o=0,c=1;10!==c&&a[c]<=s;++c)o+=t;--c;var h=o+(s-a[c])/(a[c+1]-a[c])*t,l=r(h,e,i);return l>=.001?function(t,e,s,i){for(var o=0;o<4;++o){var a=r(e,s,i);if(0===a)return e;e-=(n(e,s,i)-t)/a}return e}(s,h,e,i):0===l?h:function(t,e,s,i,r){var o,a,c=0;do{(o=n(a=e+(s-e)/2,i,r)-t)>0?s=a:e=a}while(Math.abs(o)>1e-7&&++c<10);return a}(s,o,o+t,e,i)}(c),s,o)}}}}(),ce=(re={linear:function(){return function(t){return t}}},oe={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Expo:function(){return function(t){return t?Math.pow(2,10*t-10):0}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,s=4;t<((e=Math.pow(2,--s))-1)/11;);return 1/Math.pow(4,3-s)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var s=Qt(t,1,10),i=Qt(e,.1,2);return function(t){return 0===t||1===t?t:-s*Math.pow(2,10*(t-1))*Math.sin((t-1-i/(2*Math.PI)*Math.asin(1/s))*(2*Math.PI)/i)}}},["Quad","Cubic","Quart","Quint"].forEach((function(t,e){oe[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(oe).forEach((function(t){var e=oe[t];re["easeIn"+t]=e,re["easeOut"+t]=function(t,s){return function(i){return 1-e(t,s)(1-i)}},re["easeInOut"+t]=function(t,s){return function(i){return i<.5?e(t,s)(2*i)/2:1-e(t,s)(-2*i+2)/2}},re["easeOutIn"+t]=function(t,s){return function(i){return i<.5?(1-e(t,s)(1-2*i))/2:(e(t,s)(2*i-1)+1)/2}}})),re);function he(t,e){if(ee.fnc(t))return t;var s=t.split("(")[0],i=ce[s],n=se(t);switch(s){case"spring":return ie(t,e);case"cubicBezier":return te(ae,n);case"steps":return te(ne,n);default:return te(i,n)}}function le(t){try{return document.querySelectorAll(t)}catch(t){return}}function ue(t,e){for(var s=t.length,i=arguments.length>=2?arguments[1]:void 0,n=[],r=0;r1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t}if(0==o)e=s=i=a;else{var l=a<.5?a*(1+o):a+o-a*o,u=2*a-l;e=h(u,l,r+1/3),s=h(u,l,r),i=h(u,l,r-1/3)}return"rgba("+255*e+","+255*s+","+255*i+","+c+")"}(t):void 0;var e,s}(t);if(/\s/g.test(t))return t;var s=fe(t),i=s?t.substr(0,t.length-s.length):t;return e?i+e:i}function Pe(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Be(t){for(var e,s=t.points,i=0,n=0;n0&&(i+=Pe(e,r)),e=r}return i}function Oe(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*ve(t,"r")}(t);case"rect":return function(t){return 2*ve(t,"width")+2*ve(t,"height")}(t);case"line":return function(t){return Pe({x:ve(t,"x1"),y:ve(t,"y1")},{x:ve(t,"x2"),y:ve(t,"y2")})}(t);case"polyline":return Be(t);case"polygon":return function(t){var e=t.points;return Be(t)+Pe(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function Te(t,e){var s=e||{},i=s.el||function(t){for(var e=t.parentNode;ee.svg(e)&&ee.svg(e.parentNode);)e=e.parentNode;return e}(t),n=i.getBoundingClientRect(),r=ve(i,"viewBox"),o=n.width,a=n.height,c=s.viewBox||(r?r.split(" "):[0,0,o,a]);return{el:i,viewBox:c,x:c[0]/1,y:c[1]/1,w:o,h:a,vW:c[2],vH:c[3]}}function Me(t,e,s){function i(s){void 0===s&&(s=0);var i=e+s>=1?e+s:0;return t.el.getPointAtLength(i)}var n=Te(t.el,t.svg),r=i(),o=i(-1),a=i(1),c=s?1:n.w/n.vW,h=s?1:n.h/n.vH;switch(t.property){case"x":return(r.x-n.x)*c;case"y":return(r.y-n.y)*h;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function Ne(t,e){var s=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=Re(ee.pth(t)?t.totalLength:t,e)+"";return{original:i,numbers:i.match(s)?i.match(s).map(Number):[0],strings:ee.str(t)||e?i.split(s):[]}}function xe(t){return ue(t?de(ee.arr(t)?t.map(pe):pe(t)):[],(function(t,e,s){return s.indexOf(t)===e}))}function Ie(t){var e=xe(t);return e.map((function(t,s){return{target:t,id:s,total:e.length,transforms:{list:Se(t)}}}))}function Le(t,e){var s=ge(e);if(/^spring/.test(s.easing)&&(s.duration=ie(s.easing)),ee.arr(t)){var i=t.length;2!==i||ee.obj(t[0])?ee.fnc(e.duration)||(s.duration=e.duration/i):t={value:t}}var n=ee.arr(t)?t:[t];return n.map((function(t,s){var i=ee.obj(t)&&!ee.pth(t)?t:{value:t};return ee.und(i.delay)&&(i.delay=s?0:e.delay),ee.und(i.endDelay)&&(i.endDelay=s===n.length-1?e.endDelay:0),i})).map((function(t){return be(t,s)}))}var Je={css:function(t,e,s){return t.style[e]=s},attribute:function(t,e,s){return t.setAttribute(e,s)},object:function(t,e,s){return t[e]=s},transform:function(t,e,s,i,n){if(i.list.set(e,s),e===i.last||n){var r="";i.list.forEach((function(t,e){r+=e+"("+t+") "})),t.style.transform=r}}};function De(t,e){Ie(t).forEach((function(t){for(var s in e){var i=Ae(e[s],t),n=t.target,r=fe(i),o=Ee(n,s,r,t),a=Ce(Re(i,r||fe(o)),o),c=we(n,s);Je[c](n,s,a,t.transforms,!0)}}))}function Ye(t,e){return ue(de(t.map((function(t){return e.map((function(e){return function(t,e){var s=we(t.target,e.name);if(s){var i=function(t,e){var s;return t.tweens.map((function(i){var n=function(t,e){var s={};for(var i in t){var n=Ae(t[i],e);ee.arr(n)&&1===(n=n.map((function(t){return Ae(t,e)}))).length&&(n=n[0]),s[i]=n}return s.duration=parseFloat(s.duration),s.delay=parseFloat(s.delay),s}(i,e),r=n.value,o=ee.arr(r)?r[1]:r,a=fe(o),c=Ee(e.target,t.name,a,e),h=s?s.to.original:c,l=ee.arr(r)?r[0]:h,u=fe(l)||fe(c),d=a||u;return ee.und(o)&&(o=h),n.from=Ne(l,d),n.to=Ne(Ce(o,l),d),n.start=s?s.end:0,n.end=n.start+n.delay+n.duration+n.endDelay,n.easing=he(n.easing,n.duration),n.isPath=ee.pth(r),n.isPathTargetInsideSVG=n.isPath&&ee.svg(e.target),n.isColor=ee.col(n.from.original),n.isColor&&(n.round=1),s=n,n}))}(e,t),n=i[i.length-1];return{type:s,property:e.name,animatable:t,tweens:i,duration:n.end,delay:i[0].delay,endDelay:n.endDelay}}}(t,e)}))}))),(function(t){return!ee.und(t)}))}function je(t,e){var s=t.length,i=function(t){return t.timelineOffset?t.timelineOffset:0},n={};return n.duration=s?Math.max.apply(Math,t.map((function(t){return i(t)+t.duration}))):e.duration,n.delay=s?Math.min.apply(Math,t.map((function(t){return i(t)+t.delay}))):e.delay,n.endDelay=s?n.duration-Math.max.apply(Math,t.map((function(t){return i(t)+t.duration-t.endDelay}))):e.endDelay,n}var ze=0,Ge=[],Fe=function(){var t;function e(s){for(var i=Ge.length,n=0;n0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){qe.suspendWhenDocumentHidden&&(Ue()?t=cancelAnimationFrame(t):(Ge.forEach((function(t){return t._onDocumentVisibility()})),Fe()))})),function(){t||Ue()&&qe.suspendWhenDocumentHidden||!(Ge.length>0)||(t=requestAnimationFrame(e))}}();function Ue(){return!!document&&document.hidden}function qe(t){void 0===t&&(t={});var e,s=0,i=0,n=0,r=0,o=null;function a(t){var e=window.Promise&&new Promise((function(t){return o=t}));return t.finished=e,e}var c=function(t){var e=ye(Wt,t),s=ye(Kt,t),i=function(t,e){var s=[],i=e.keyframes;for(var n in i&&(e=be(function(t){for(var e=ue(de(t.map((function(t){return Object.keys(t)}))),(function(t){return ee.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),s={},i=function(i){var n=e[i];s[n]=t.map((function(t){var e={};for(var s in t)ee.key(s)?s==n&&(e.value=t[s]):e[s]=t[s];return e}))},n=0;n2||(f=Math.round(f*p)/p)),m.push(f)}var _=d.length;if(_){y=d[0];for(var k=0;k<_;k++){d[k];var w=d[k+1],S=m[k];isNaN(S)||(y+=w?S+w:S+" ")}}else y=m[0];Je[n.type](r.target,n.property,y,r.transforms),n.currentValue=y,e++}}function m(t){c[t]&&!c.passThrough&&c[t](c)}function g(t){var u=c.duration,g=c.delay,y=u-c.endDelay,b=l(t);c.progress=Qt(b/u*100,0,100),c.reversePlayback=b0&&(c.began=!0,m("begin")),!c.loopBegan&&c.currentTime>0&&(c.loopBegan=!0,m("loopBegin")),b<=g&&0!==c.currentTime&&p(0),(b>=y&&c.currentTime!==u||!u)&&p(u),b>g&&b=u&&(i=0,c.remaining&&!0!==c.remaining&&c.remaining--,c.remaining?(s=n,m("loopComplete"),c.loopBegan=!1,"alternate"===c.direction&&h()):(c.paused=!0,c.completed||(c.completed=!0,m("loopComplete"),m("complete"),!c.passThrough&&"Promise"in window&&(o(),a(c)))))}return a(c),c.reset=function(){var t=c.direction;c.passThrough=!1,c.currentTime=0,c.progress=0,c.paused=!0,c.began=!1,c.loopBegan=!1,c.changeBegan=!1,c.completed=!1,c.changeCompleted=!1,c.reversePlayback=!1,c.reversed="reverse"===t,c.remaining=c.loop,e=c.children;for(var s=r=e.length;s--;)c.children[s].reset();(c.reversed&&!0!==c.loop||"alternate"===t&&1===c.loop)&&c.remaining++,p(c.reversed?c.duration:0)},c._onDocumentVisibility=u,c.set=function(t,e){return De(t,e),c},c.tick=function(t){n=t,s||(s=n),g((n+(i-s))*qe.speed)},c.seek=function(t){g(l(t))},c.pause=function(){c.paused=!0,u()},c.play=function(){c.paused&&(c.completed&&c.reset(),c.paused=!1,Ge.push(c),u(),Fe())},c.reverse=function(){h(),c.completed=!c.reversed,u()},c.restart=function(){c.reset(),c.play()},c.remove=function(t){He(xe(t),c)},c.reset(),c.autoplay&&c.play(),c}function Ve(t,e){for(var s=e.length;s--;)me(t,e[s].animatable.target)&&e.splice(s,1)}function He(t,e){var s=e.animations,i=e.children;Ve(t,s);for(var n=i.length;n--;){var r=i[n],o=r.animations;Ve(t,o),o.length||r.children.length||i.splice(n,1)}s.length||i.length||e.pause()}qe.version="3.2.1",qe.speed=1,qe.suspendWhenDocumentHidden=!0,qe.running=Ge,qe.remove=function(t){for(var e=xe(t),s=Ge.length;s--;)He(e,Ge[s])},qe.get=Ee,qe.set=De,qe.convertPx=_e,qe.path=function(t,e){var s=ee.str(t)?le(t)[0]:t,i=e||100;return function(t){return{property:t,el:s,svg:Te(s),totalLength:Oe(s)*(i/100)}}},qe.setDashoffset=function(t){var e=Oe(t);return t.setAttribute("stroke-dasharray",e),e},qe.stagger=function(t,e){void 0===e&&(e={});var s=e.direction||"normal",i=e.easing?he(e.easing):null,n=e.grid,r=e.axis,o=e.from||0,a="first"===o,c="center"===o,h="last"===o,l=ee.arr(t),u=l?parseFloat(t[0]):parseFloat(t),d=l?parseFloat(t[1]):0,p=fe(l?t[1]:t)||0,m=e.start||0+(l?u:0),g=[],y=0;return function(t,e,b){if(a&&(o=0),c&&(o=(b-1)/2),h&&(o=b-1),!g.length){for(var f=0;f-1&&Ge.splice(n,1);for(var a=0;at,fromReference:t=>t},[Ke]:{transfer:$e,primaries:ts,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[Xe]:{transfer:Qe,primaries:"p3",toReference:t=>t.applyMatrix3(ns),fromReference:t=>t.applyMatrix3(is)},"display-p3":{transfer:$e,primaries:"p3",toReference:t=>t.convertSRGBToLinear().applyMatrix3(ns),fromReference:t=>t.applyMatrix3(is).convertLinearToSRGB()}},os=new Set([Ze,Xe]),as={enabled:!0,_workingColorSpace:Ze,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!os.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,s){if(!1===this.enabled||e===s||!e||!s)return t;const i=rs[e].toReference;return(0,rs[s].fromReference)(i(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return rs[t].primaries},getTransfer:function(t){return""===t?Qe:rs[t].transfer}};function cs(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function hs(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}function ls(t,e,s){return Math.max(e,Math.min(s,t))}function us(t,e,s){return(1-s)*t+s*e}const ds={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ps={h:0,s:0,l:0},ms={h:0,s:0,l:0};function gs(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+6*(e-t)*(2/3-s):t}class ys{constructor(t,e,s){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,s)}set(t,e,s){if(void 0===e&&void 0===s){const e=t;e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e)}else this.setRGB(t,e,s);return this}asVector4(t=1){return new C(this.r,this.g,this.b,t)}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=Ze){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,as.toWorkingColorSpace(this,e),this}setRGB(t,e,s,i=as.workingColorSpace){return this.r=t,this.g=e,this.b=s,as.toWorkingColorSpace(this,i),this}setHSL(t,e,s,i=as.workingColorSpace){if(t=(t%1+1)%1,e=ls(e,0,1),s=ls(s,0,1),0===e)this.r=this.g=this.b=s;else{const i=s<=.5?s*(1+e):s+e-s*e,n=2*s-i;this.r=gs(n,i,t+1/3),this.g=gs(n,i,t),this.b=gs(n,i,t-1/3)}return as.toWorkingColorSpace(this,i),this}setStyle(t,e=Ze){function s(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(t)){let n;const r=i[1],o=i[2];switch(r){case"rgb":case"rgba":if(n=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return s(n[4]),this.setRGB(Math.min(255,parseInt(n[1],10))/255,Math.min(255,parseInt(n[2],10))/255,Math.min(255,parseInt(n[3],10))/255,e);if(n=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return s(n[4]),this.setRGB(Math.min(100,parseInt(n[1],10))/100,Math.min(100,parseInt(n[2],10))/100,Math.min(100,parseInt(n[3],10))/100,e);break;case"hsl":case"hsla":if(n=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return s(n[4]),this.setHSL(parseFloat(n[1])/360,parseFloat(n[2])/100,parseFloat(n[3])/100,e);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(t)){const s=i[1],n=s.length;if(3===n)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,e);if(6===n)return this.setHex(parseInt(s,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=Ze){const s=ds[t.toLowerCase()];return void 0!==s?this.setHex(s,e):console.warn("THREE.Color: Unknown color "+t),this}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=cs(t.r),this.g=cs(t.g),this.b=cs(t.b),this}copyLinearToSRGB(t){return this.r=hs(t.r),this.g=hs(t.g),this.b=hs(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Ze){return as.fromWorkingColorSpace(bs.copy(this),t),65536*Math.round(ls(255*bs.r,0,255))+256*Math.round(ls(255*bs.g,0,255))+Math.round(ls(255*bs.b,0,255))}getHexString(t=Ze){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=as.workingColorSpace){as.fromWorkingColorSpace(bs.copy(this),e);const s=bs.r,i=bs.g,n=bs.b,r=Math.max(s,i,n),o=Math.min(s,i,n);let a,c;const h=(o+r)/2;if(o===r)a=0,c=0;else{const t=r-o;switch(c=h<=.5?t/(r+o):t/(2-r-o),r){case s:a=(i-n)/t+(it.setupMaterialAfterGeometry())))}}),{get position(){let e=t.transform?new E(1,1,-1).MultiplyVectors(t.transform.localPosition):new E;return e.set=function(e,s,i){t.transform.localPosition=new E(e,s,-i)},e},get scale(){let e=t.transform?t.transform.localScale:new E;return e.set=function(e,s,i){t.transform.localScale=new E(e,s,i)},e},get rotation(){let e=t.transform?new E(-1,-1,1).MultiplyVectors(t.transform.localEulerAngles):new E;return e.set=function(e,s,i){t.transform.localEulerAngles=new E(-e*P,-s*P,i*P)},e},get quaternion(){let e=t.transform?(new B).SetFromEuler(new E(-t.transform.localEulerAngles.x,-t.transform.localEulerAngles.y,t.transform.localEulerAngles.z)):new C;return e.set=function(e,s,i,n){t.transform.localRotation=new B(-e,-s,i,n)},e},visible:!t.gameObject||t.gameObject.active,id:t.gameObject?t.gameObject.id:"",get userData(){return t.gameObject?t.gameObject.meta._legacy:null},get children(){return[t.object3D]},getWorldPosition:e=>{var s=new E;if(t.watchEulerAndPosition(),t.transform&&(s=new E(1,1,-1).MultiplyVectors(t.transform.position)),!e)return s;e.set(s.x,s.y,s.z)},getWorldQuaternion:e=>{let s=new B;if(t.watchEulerAndPosition(),t.transform&&(s=(new B).SetFromEuler(new E(-t.transform.eulerAngles.x,-t.transform.eulerAngles.y,t.transform.eulerAngles.z))),!e)return s;e.set(s.x,s.y,s.z,s.w)},remove(){t.parentElement.removeChild(t)}}}watchEulerAndPosition(){this.gameObject&&!this.hasEnabledTransformWatch&&(this.hasEnabledTransformWatch=!0,this.transform.WatchProperties([a.eulerAngles,a.position]))}onReadyStateChange(){"complete"===document.readyState&&this.doConnectedCallback()}connectedCallback(){"complete"===document.readyState?this.doConnectedCallback():document.addEventListener("readystatechange",this.onReadyStateChange.bind(this))}doConnectedCallback(){return Cs(this,void 0,void 0,(function*(){this.tagName.toLocaleLowerCase()===Rs&&function(){vs(this,void 0,void 0,(function*(){const t=St.GetInstance(),s=s=>t.objects[s].GetComponent(e.BanterRigidbody);_s.banter={movePlayer:(e,s)=>t.TeleportTo(new E(e.x,e.y,e.z),0,s),openPage:e=>t.OpenPage(e),setChildColor:(e,s,i)=>t.LegacySetChildColor(t.objects[e],new E(i.r,i.g,i.b),s),setText:(s,i,n)=>t.objects[s].GetComponent(e.BanterText).text=i,lockPlayer:()=>t.LegacyLockPlayer(),unlockPlayer:()=>t.LegacyUnlockPlayer(),sitPlayer:e=>t.LegacySitPlayer(t.objects[e]),unsitPlayer:()=>t.LegacyUnsitPlayer(),gorillaPlayer:()=>t.LegacyGorillaPlayer(),ungorillaPlayer:()=>t.LegacyUngorillaPlayer(),startSTT:e=>t.StartTTS(e),stopSTT:e=>t.StopTTS(e),enableControllerExtras:()=>t.LegacyEnableControllerExtras(),enableQuaternionPose:()=>t.LegacyEnableQuaternionPose(),setVisible:(e,s)=>vs(this,void 0,void 0,(function*(){return t.objects[s].SetActive(e)})),addForce:(t,e,i)=>{let r=n.Force;switch(e){case"force":r=n.Force;break;case"impulse":r=n.Impulse;break;case"acceleration":r=n.Acceleration;break;case"velocitychange":r=n.VelocityChange}return s(i).AddForce(new E(t.x,t.y,t.z),r)},rigidBodySetKinematic:(t,e)=>setTimeout((()=>s(e).isKinematic=t),100),addExplosionForce:(t,e,i,r)=>s(r).AddExplosionForce(t,new E(e.x,e.y,-e.z),i,0,n.Force),movePosition:(t,e)=>{s(e).MovePosition(new E(t.x||0,t.y||0,-t.z||0))},moveRotation:(t,e)=>{const i=s(e);if(i){const e=new E(-t.x||0,-t.y||0,t.z||0),s=(new B).SetFromEuler(e);i.MoveRotation(s)}},timeScale:e=>t.TimeScale(e),gravity:e=>t.Gravity(e),playerSpeed:e=>t.PlayerSpeed(e),deeplink:(e,s)=>t.DeepLink(e,s),setVideoUrl:(e,s)=>t.LegacySetVideoUrl(t.objects[e],s),generateParametric:(t,e,s)=>{for(var i=[],n=0;n<=e;n++)for(var r=n/e,o=0;o<=t;o++){var a=s(o/t,r);i.push(a)}return i},sendMenuBrowserMessage:e=>t.SendBrowserMessage(e),setRefreshRate:e=>t.LegacySetRefreshRate(e),sendAframeEvent:(e,s,i)=>t.LegacySendAframeEvent(e,s,i),playAvatar:(e,s,i,n)=>t.LegacyPlayAvatar(t.objects[e],s,i,n),requestOwnership:e=>t.LegacyRequestOwnership(e),doIOwn:e=>t.LegacyDoIOwn(e),resetNetworkObject:e=>t.LegacyResetNetworkObject(e),oneShot:(e,s)=>e?t.OneShot(JSON.stringify(e),s||!1):null,setPublicSpaceProp:(e,s)=>{const i={};i[e]=s,t.SetPublicSpaceProps(i)},setProtectedSpaceProp:(e,s)=>{const i={};i[e]=s,t.SetProtectedSpaceProps(i)},rigidBodySleep:t=>{const e=s(t);e&&(e.velocity=new E(0,0,0),e.Sleep())}},_s.userinputs={head:{position:{get x(){return _s.userpose?_s.userpose[0]:0},get y(){return _s.userpose?_s.userpose[1]:0},get z(){return _s.userpose?-_s.userpose[2]:0}},rotation:{get x(){return _s.userpose?-_s.userpose[3]:0},get y(){return _s.userpose?-_s.userpose[4]:0},get z(){return _s.userpose?_s.userpose[5]:0},get w(){return _s.userpose&&ks()?_s.userpose[6]:0}}},lefthand:{position:{get x(){return _s.userpose?_s.userpose[6+(ks()?1:0)]:0},get y(){return _s.userpose?_s.userpose[7+(ks()?1:0)]:0},get z(){return _s.userpose?-_s.userpose[8+(ks()?1:0)]:0}},rotation:{get x(){return _s.userpose?-_s.userpose[9+(ks()?1:0)]:0},get y(){return _s.userpose?-_s.userpose[10+(ks()?1:0)]:0},get z(){return _s.userpose?_s.userpose[11+(ks()?1:0)]:0},get w(){return _s.userpose&&ks()?_s.userpose[13]:0}}},righthand:{position:{get x(){return _s.userpose?_s.userpose[12+(ks()?2:0)]:0},get y(){return _s.userpose?_s.userpose[13+(ks()?2:0)]:0},get z(){return _s.userpose?-_s.userpose[14+(ks()?2:0)]:0}},rotation:{get x(){return _s.userpose?-_s.userpose[15+(ks()?2:0)]:0},get y(){return _s.userpose?-_s.userpose[16+(ks()?2:0)]:0},get z(){return _s.userpose?_s.userpose[17+(ks()?2:0)]:0},get w(){return _s.userpose&&ks()?_s.userpose[20]:0}}},cockpit:{position:{get x(){return _s.userpose?_s.userpose[18+(ks()?3:0)]:0},get y(){return _s.userpose?_s.userpose[19+(ks()?3:0)]:0},get z(){return _s.userpose?-_s.userpose[20+(ks()?3:0)]:0}},rotation:{get x(){return _s.userpose?-_s.userpose[21+(ks()?3:0)]:0},get y(){return _s.userpose?-_s.userpose[22+(ks()?3:0)]:0},get z(){return _s.userpose?_s.userpose[23+(ks()?3:0)]:0},get w(){return _s.userpose&&ks()?_s.userpose[26]:0}}},get voiceVolume(){return _s.userpose?_s.userpose[24+(ks()?4:0)]:0},controllers:{left:{get trigger(){return _s.userpose&&_s.userpose[25+(ks()?4:0)]||0},joystick:{get x(){return _s.userpose&&_s.userpose[27+(ks()?4:0)]||0},get y(){return _s.userpose&&_s.userpose[28+(ks()?4:0)]||0}}},right:{get trigger(){return _s.userpose&&_s.userpose[26+(ks()?4:0)]||0},joystick:{get x(){return _s.userpose&&_s.userpose[29+(ks()?4:0)]||0},get y(){return _s.userpose&&_s.userpose[30+(ks()?4:0)]||0}}}}},Object.keys(_s.banter).forEach((t=>{window[t]=_s.banter[t]})),t.On("button-pressed",(t=>{_s.buttonPressCallback&&_s.buttonPressCallback(m(t))})),t.On("user-joined",(t=>vs(this,void 0,void 0,(function*(){t.detail.isLocal?(_s.user={id:t.detail.uid,sid:t.detail.id,uid:t.detail.uid,name:t.detail.name,color:t.detail.color,instance:window.SPACE_INSTANCE},_s.userCallback&&_s.userCallback(_s.user),Ts.objs.concat(Ns.objs).forEach((e=>vs(this,void 0,void 0,(function*(){Is(e.object,t.detail.uid,e.position)}))))):(yield p(_s,"AFRAME"),yield new Promise((t=>setTimeout(t,1e3))),_s.userJoinedCallback&&_s.userJoinedCallback({id:t.detail.uid,sid:t.detail.id,uid:t.detail.uid,name:t.detail.name,color:t.detail.color,instance:window.SPACE_INSTANCE}),Ts.objs.concat(Ms.objs).forEach((e=>vs(this,void 0,void 0,(function*(){Is(e.object,t.detail.uid,e.position)})))))})))),t.On("user-left",(t=>vs(this,void 0,void 0,(function*(){yield p(_s,"AFRAME"),_s.userLeftCallback&&_s.userLeftCallback(t.detail),xs.objs.filter((e=>e.uid===t.detail.uid)).forEach((t=>vs(this,void 0,void 0,(function*(){yield t.obj.Destroy()})))),xs.objs=xs.objs.filter((e=>e.uid!==t.detail.uid))})))),t.On("button-released",(t=>{_s.buttonPressCallback&&_s.buttonPressCallback(m(t,"Release"))})),t.On("transcription",(t=>{_s.transcriptionCallback&&_s.transcriptionCallback(t.detail.id,t.detail.message)})),t.On("menu-browser-message",(t=>{window.dispatchEvent(new CustomEvent("menubrowsermessage",{detail:{message:t.detail}}))})),t.On("aframe-trigger",(t=>{_s.aframeTriggerCallback&&_s.aframeTriggerCallback(t.detail.data)})),t.On("voice-started",(t=>{_s.voiceStartedCallback&&_s.voiceStartedCallback()})),t.On("one-shot",(t=>{_s.AframeInjection.dispatchEvent(new CustomEvent("oneShot",{detail:{data:JSON.parse(t.detail.data),fromId:t.detail.fromId,fromAdmin:t.detail.fromAdmin}}))})),t.On("space-state-changed",(t=>{_s.AframeInjection.dispatchEvent(new CustomEvent("spaceStateChange",{detail:t.detail}))})),yield t.WaitForUnityLoaded(),_s.loadDoneCallback&&(_s.loadDoneCallback(),_s.loadDone=!0),t.EnableLegacy()}))}(),this.sceneEl=yield this.closestScene(),this.sceneEl||console.warn("You are attempting to attach <"+this.tagName+"> outside of an A-Frame scene. Append this element to `` instead."),this.hasLoaded=!1,this.emit("nodeready",void 0,!1),this.tagName.toLocaleLowerCase()===Rs?(this.getSceneSettings(),this.sceneEl=this,this.sceneEl.components["vr-mode-ui"]={updateEnterInterfaces(){}},this.load((()=>{console.log("Banter AFRAME shim loaded, errors above may be safely ignored (Failed to execute 'define', Cannot read properties of undefined (reading 'prototype')).")}))):(this.sceneEl=this.parentElement.sceneEl,this.load())}))}makeGameObject(){return Cs(this,void 0,void 0,(function*(){this.gameObject=new it(this.tagName+(this.id?"#"+this.id:"")),this.gameObject.meta.el=this,yield this.gameObject.Async(),this.transform=yield this.gameObject.AddComponent(new Q),this.unityReady=!0,this.emit("unityready",void 0,!1)}))}getBoolValue(t){return t.enabled||!1===t.enabled?t.enabled:!!t}getSceneSettings(){if(this.hasAttribute("sq-forcegrabenabled")&&(Os.EnableForceGrab=!0),this.hasAttribute("sq-spawnpoint")){let t=this.parseAttributeValue("sq-spawnpoint",this.getAttribute("sq-spawnpoint"));Os.SpawnPoint=new C(t.position.x||0,t.position.y||0,-t.position.z||0,t.position.w||0)}if(this.hasAttribute("sq-clippingplane")){let t=this.parseAttributeValue("sq-clippingplane",this.getAttribute("sq-clippingplane"));Os.ClippingPlane=new S(t.near||.015,t.far||1500)}if(this.hasAttribute("sq-maxoccupancy")){let t=this.parseAttributeValue("sq-maxoccupancy",this.getAttribute("sq-maxoccupancy"));Os.MaxOccupancy=t.number||20}if(this.hasAttribute("sq-refreshrate")){let t=this.parseAttributeValue("sq-refreshrate",this.getAttribute("sq-refreshrate"));Os.RefreshRate=t.rate||72}if(this.hasAttribute("sq-enablespiderman")&&(Os.EnableSpiderMan=!0),this.hasAttribute("sq-disableteleport")&&(Os.EnableTeleport=!1),this.hasAttribute("sq-hideavatars")&&(Os.EnableAvatars=!1),this.hasAttribute("sq-devtoolsenabled")){let t=this.parseAttributeValue("sq-devtoolsenabled",this.getAttribute("sq-devtoolsenabled"));Os.EnableDevTools=this.getBoolValue(t)}if(this.hasAttribute("sq-portalsenabled")){let t=this.parseAttributeValue("sq-portalsenabled",this.getAttribute("sq-portalsenabled"));Os.EnablePortals=this.getBoolValue(t)}if(this.hasAttribute("sq-hidedefaulttextures")&&(Os.EnableDefaultTextures=!1),this.hasAttribute("sq-guestsallowed")){let t=this.parseAttributeValue("sq-guestsallowed",this.getAttribute("sq-guestsallowed"));Os.EnableGuests=this.getBoolValue(t)}if(this.hasAttribute("sq-friendpositionjoinallowed")){let t=this.parseAttributeValue("sq-friendpositionjoinallowed",this.getAttribute("sq-friendpositionjoinallowed"));Os.EnableFriendPositionJoin=!!t.enabled}this.hasAttribute("sq-spawnpoint")||St.GetInstance().TeleportTo(new E(0,0,0),0,!1,!0),St.GetInstance().SetSettings(Os)}closestScene(){return Cs(this,void 0,void 0,(function*(){let t=this;for(;t&&t.tagName.toLocaleLowerCase()!==Rs;)yield p(t,"parentElement"),t=t.parentElement;return t}))}disconnectedCallback(){this.hasLoaded=!1,this.gameObject&&(this.gameObject.meta.originals&&this.gameObject.meta.originals.length&&this.gameObject.meta.originals.forEach((t=>{t.Destroy()})),this.gameObject.Destroy(),Ts.objs=Ts.objs.filter((t=>t.object!==this.gameObject)),Ns.objs=Ns.objs.filter((t=>t.object!==this.gameObject)),Ms.objs=Ms.objs.filter((t=>t.object!==this.gameObject)),delete this.gameObject)}loadMe(){var t;return Cs(this,void 0,void 0,(function*(){yield this.makeGameObject();const e=null===(t=this.parentElement)||void 0===t?void 0:t.gameObject;e&&this.gameObject.SetParent(e,!1),this.gameObject.On("click",(t=>{t.detail.point=new E(t.detail.point.x,t.detail.point.y,-t.detail.point.z),t.detail.normal=new E(t.detail.normal.x,t.detail.normal.y,-t.detail.normal.z),this.gameObject.meta._legacy=t.detail,this.emit("click",t.detail)})),this.gameObject.On("grab",(t=>{t.detail.position=new E(t.detail.point.x,t.detail.point.y,-t.detail.point.z),t.detail.side=t.detail.side===r.LEFT?"left":"right",this.gameObject.meta._legacy=t.detail,this.emit("grab",t.detail)})),this.gameObject.On("drop",(t=>{this.emit("drop",t.detail)})),this.gameObject.On("collision-enter",(t=>{this.emit("collision-enter",t.detail)})),this.gameObject.On("collision-exit",(t=>{this.emit("collision-exit",t.detail)})),this.gameObject.On("trigger-enter",(t=>{this.gameObject.meta.el&&(t.detail.other=this.gameObject.meta.el),t.detail.isLocalPlayer=!!t.detail.user&&t.detail.user.uid===window.user.id,this.gameObject.meta._legacy=t.detail,this.emit("trigger-enter",t.detail)})),this.gameObject.On("trigger-exit",(t=>{this.gameObject.meta.el&&(t.detail.other=this.gameObject.meta.el),t.detail.isLocalPlayer=!!t.detail.user&&t.detail.user.uid===window.user.id,this.gameObject.meta._legacy=t.detail,this.emit("trigger-exit",t.detail)})),this.gameObject.On("browser-message",(t=>{this.emit("browsermessage",t.detail)}))}))}load(t,e){return Cs(this,void 0,void 0,(function*(){let s,i;const n=this;this.hasLoaded||(this.loadMe(),this.getAttributeNames().forEach((t=>Cs(this,void 0,void 0,(function*(){const e=this.getAttribute(t),s=yield this.parseAttributes(t,null,e);Et[t]&&Et[t].init&&Et[t].init.bind({el:this,sceneEl:this.sceneEl,data:s})()})))),this.setupMutationObserver(),e=e||(t=>t.isNode),s=this.getChildren(),i=s.filter(e).map((function(t){return new Promise((function(e,s){if(t.hasLoaded)return e();t.addEventListener("loaded",e),t.addEventListener("error",s)}))})),Promise.allSettled(i).then((function(e){e.forEach((function(t){"rejected"===t.status&&console.warn("Rendering scene with errors on node: ",t.reason.target)})),n.hasLoaded=!0,t&&t(),n.emit("loaded",void 0,!1)})))}))}getMaterialSide(t){return"back"===t?ws.Back:"double"===t?ws.Double:ws.Front}getAssetSrc(t){return t&&"string"==typeof t?t.startsWith("#")?document.querySelector(t).getAttribute("src"):t:t&&t instanceof HTMLImageElement?t.currentSrc:""}colorValToFull(t){let e=t.replace(/^#/,"");return 3===e.length&&(e=e.split("").map((function(t){return t+t})).join("")),e}setupMaterialAfterGeometry(){return Cs(this,void 0,void 0,(function*(){let t;!this.invertedMesh&&this.hasAttribute("sq-invertedcollider")&&(this.invertedMesh=new j,yield this.gameObject.AddComponent(this.invertedMesh)),this.hasAttribute("material")&&(t=this.parseAttributeValue("material",this.getAttribute("material")));const e=this.getAssetSrc(this.hasAttribute("src")?this.getAttribute("src"):t&&t.src?t.src:"");let s=this.hasAttribute("opacity")?+this.getAttribute("opacity"):t&&(t.opacity||0===t.opacity)?t.opacity:1,i=!!this.hasAttribute("transparent")||t&&t.transparent,n=this.hasAttribute("side")?this.getAttribute("side"):t&&t.side?t.side:"front";Number.isNaN(s)&&(s=1);let r="Unlit/Diffuse";(i||1!=s)&&(r="Unlit/DiffuseTransparent");var o=this.hasAttribute("color")?this.getAttribute("color"):t&&t.color?t.color:"";o&&o.startsWith("#")&&(o=parseInt(this.colorValToFull(o).replace(/^#/,""),16)),this.material=new G(r,e,new ys(o).asVector4(s),this.getMaterialSide(n),!0),yield this.gameObject.AddComponent(this.material),this.collider||!this.hasAttribute("sq-collider")&&!this.hasAttribute("sq-climbable")||(this.collider=new F(!0,this.hasAttribute("sq-triggercollider")),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new L)),(!this.collider&&this.hasAttribute("sq-nonconvexcollider")||this.hasAttribute("sq-invertedcollider"))&&(this.collider=new F(!1,this.hasAttribute("sq-triggercollider")),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new L))}))}setRotationFromEuler(t,e,s){const i=new E(t,e,s),n=(new B).SetFromEuler(i);this.transform.localRotation=n}processAttributes(t,e,s){return Cs(this,void 0,void 0,(function*(){switch(t){case"position":yield p(this,"unityReady"),this.transform.localPosition=new E(e.x||0,e.y||0,-e.z||0);break;case"scale":yield p(this,"unityReady"),this.transform.localScale=new E(e.x||1e-5,e.y||1e-5,e.z||1e-5);break;case"rotation":yield p(this,"unityReady"),this.transform.localEulerAngles=new E(-e.x||0,-e.y||0,e.z||0);break;case"sq-parametric":case"geometry":this.geometry||("sq-parametric"===t&&(e.primitive="parametric"),this.geometry=new D(Ps[e.primitive],Bs[e.type],e.width,e.height,e.depth,e.segmentsWidth,e.segmentsHeight,e.segmentsDepth,e.radius,e.segments,e.thetaStart*R,e.thetaLength*R,e.phiStart*R,e.phiLength*R,e.segmentsRadial,e.openEnded,e.radiusTop,e.radiusBottom,e.radiusInner,e.radiusOuter,e.segmentsTheta,e.segmentsPhi,e.tube,e.segmentsTubular,e.arc*R,e.p,e.q,e.stacks,e.slices,e.detail),yield this.gameObject.AddComponent(this.geometry),yield this.setupMaterialAfterGeometry());break;case"sq-playavatar":yield p(this,"unityReady"),window.playAvatar(this.gameObject.id,e.tracking,e.audio,e.avatar);break;case"sq-streetview":this.streetview||(this.streetview=new K(e.panoId),yield this.gameObject.AddComponent(this.streetview));break;case"material":this.material&&(e.color&&(e.color&&e.color.startsWith("#")&&(e.color=parseInt(this.colorValToFull(e.color).replace(/^#/,""),16)),this.material.color=new ys(e.color).asVector4(e.opacity||1)),e.side&&(this.material.side=this.getMaterialSide(e.side)),e.src&&(this.material.texture=this.getAssetSrc(e.src)));break;case"color":this.material&&(this.material.color=new ys(e).asVector4());break;case"side":this.material&&(this.material.side=this.getMaterialSide(e));break;case"src":this.material&&(this.material.texture=this.getAssetSrc(e));break;case"animation":if(yield p(this,"unityReady"),yield this.gameObject.scene.WaitForUnityLoaded(),this.animations.includes(e.property))return;this.animations.push(e.property);const i=e.property.split(".").filter((t=>"object3D"!==t));switch(i[0]){case"scale":i[1]&&this.animateIt(e,"localScale",i[1],(()=>this.transform.localScale=this.transform.localScale));break;case"position":i[1]&&this.animateIt(e,"localPosition",i[1],(()=>this.transform.localPosition=this.transform.localPosition));break;case"rotation":i[1]&&this.animateIt(e,"localEulerAngles",i[1],(()=>{this.setRotationFromEuler(this.transform.localEulerAngles.x,this.transform.localEulerAngles.y,this.transform.localEulerAngles.z)}))}break;case"link":this.portal||(this.portal=new V(e.href),yield this.gameObject.AddComponent(this.portal));break;case"sound":this.sound||(this.sound=new Audio(e.src),this.sound.loop=e.loop,this.sound.volume=e.volume,e.autoplay&&this.sound.play());break;case"text":if(!this.text){let t=fs.Left;switch(e.align){case"center":t=fs.Center;break;case"left":t=fs.Left;break;case"right":t=fs.Right}let s=As.Bottom;switch(e.baseline){case"center":s=As.Center;break;case"top":s=As.Top;break;case"bottom":s=As.Bottom}this.text=new X(e.value.split("\\n").join("\n"),new ys(e.color).asVector4(),t,s,2,!1,!1,new S(0,0)),yield this.gameObject.AddComponent(this.text)}break;case"gltf-model":if(!this.gltf){let t=this.hasAttribute("sq-collider"),s=this.hasAttribute("sq-nonconvexcollider"),i=this.hasAttribute("sq-slippery"),n=this.hasAttribute("sq-climbable")||this.hasAttribute("sq-grabbable");this.gltf=new Y(this.getAssetSrc(e),this.hasAttribute("sq-generatemipmaps"),t,s,i,n,!0),this.gltf.On("loaded",(()=>{this.gltfLoaded=!0,this.colorOverrides.length&&(this.colorOverrides.forEach((t=>{window.setChildColor(this.gameObject.id,t.path,t.color)})),this.colorOverrides=[])})),yield this.gameObject.AddComponent(this.gltf)}break;case"sq-overridecolor":this.colorOverrides.push({path:e.path,color:{r:e.color.x,g:e.color.y,b:e.color.z}}),this.gltf&&this.gltfLoaded&&window.setChildColor(this.gameObject.id,e.path,{r:e.color.x,g:e.color.y,b:e.color.z});break;case"sq-billboard":this.billboard||(this.billboard=new M(0,!1,!0,!1),yield this.gameObject.AddComponent(this.billboard));break;case"sq-clickurl":this.addEventListener("click",(()=>{this.gameObject.scene.OpenPage(e.url)}));break;case"sq-deeplink":this.addEventListener("click",(()=>{this.gameObject.scene.DeepLink(e.url,"")}));break;case"sq-interactable":this.gameObject.SetLayer(5);break;case"sq-syncloop":{let t;t=setInterval((()=>{if(this.gameObject){if(e.interval&&!this.hasRun){let t=(new Date).getTime(),s=t/1e3-Math.floor(t/(1e3*e.interval))*e.interval;s>e.interval-1&&!this.readyToTrigger&&(this.readyToTrigger=!0),s<1&&this.readyToTrigger&&(this.readyToTrigger=!1,this.emit(e.eventName,null,!1),e.runOnce&&(this.hasRun=!0))}}else clearInterval(t)}),50)}break;case"sq-lefthand":yield p(this,"unityReady"),yield p(this,"transform"),yield this.transform.Q([a.localEulerAngles]),yield new Promise((t=>setTimeout(t,200))),this.handleAttachements(e.whoToShow,Es.LEFT_HAND);break;case"sq-righthand":yield p(this,"unityReady"),yield p(this,"transform"),yield this.transform.Q([a.localEulerAngles]),yield new Promise((t=>setTimeout(t,200))),this.handleAttachements(e.whoToShow,Es.RIGHT_HAND);break;case"sq-head":yield p(this,"unityReady"),yield p(this,"transform"),yield this.transform.Q([a.localEulerAngles]),yield new Promise((t=>setTimeout(t,200))),this.handleAttachements(e.whoToShow,Es.HEAD);break;case"sq-cockpit":console.warn("sq-cockpit is no longer supported!");break;case"sq-body":yield p(this,"unityReady"),yield p(this,"transform"),yield this.transform.Q([a.localEulerAngles]),yield new Promise((t=>setTimeout(t,200))),this.handleAttachements(e.whoToShow,Es.BODY);break;case"visible":this.gameObject.SetActive(e);break;case"sq-trackpose":Ls.legacyPoseEnabled=!0;let n=null;const r=this.gameObject.scene;n=t=>{try{if(this.transform){if(this.hasLoaded)switch(e.type){case"lefthand":this.transform.localPosition=new E(Ls.userinputs.lefthand.position.x,Ls.userinputs.lefthand.position.y,-Ls.userinputs.lefthand.position.z),ks()?this.transform.localRotation=new B(Ls.userinputs.lefthand.rotation.x,Ls.userinputs.lefthand.rotation.y,Ls.userinputs.lefthand.rotation.z,Ls.userinputs.lefthand.rotation.w):this.transform.localEulerAngles=new E(-Ls.userinputs.lefthand.rotation.x*P,-Ls.userinputs.lefthand.rotation.y*P,Ls.userinputs.lefthand.rotation.z*P);break;case"righthand":this.transform.localPosition=new E(Ls.userinputs.righthand.position.x,Ls.userinputs.righthand.position.y,-Ls.userinputs.righthand.position.z),ks()?this.transform.localRotation=new B(Ls.userinputs.righthand.rotation.x,Ls.userinputs.righthand.rotation.y,Ls.userinputs.righthand.rotation.z,Ls.userinputs.righthand.rotation.w):this.transform.localEulerAngles=new E(-Ls.userinputs.righthand.rotation.x*P,-Ls.userinputs.righthand.rotation.y*P,Ls.userinputs.righthand.rotation.z*P);break;case"head":this.transform.localPosition=new E(Ls.userinputs.head.position.x,Ls.userinputs.head.position.y,-Ls.userinputs.head.position.z),ks()?this.transform.localRotation=new B(Ls.userinputs.head.rotation.x,Ls.userinputs.head.rotation.y,Ls.userinputs.head.rotation.z,Ls.userinputs.head.rotation.w):this.transform.localEulerAngles=new E(-Ls.userinputs.head.rotation.x*P,-Ls.userinputs.head.rotation.y*P,Ls.userinputs.head.rotation.z*P);break;case"cockpit":this.transform.localPosition=new E(Ls.userinputs.cockpit.position.x,Ls.userinputs.cockpit.position.y,-Ls.userinputs.cockpit.position.z),ks()?this.transform.localRotation=new B(Ls.userinputs.cockpit.rotation.x,Ls.userinputs.cockpit.rotation.y,Ls.userinputs.cockpit.rotation.z,Ls.userinputs.cockpit.rotation.w):this.transform.localEulerAngles=new E(-Ls.userinputs.cockpit.rotation.x*P,-Ls.userinputs.cockpit.rotation.y*P,Ls.userinputs.cockpit.rotation.z*P)}this.gameObject||r.Off("legacy-user-pose",n)}}catch(t){console.error(t)}},r.On("legacy-user-pose",n);break;case"sq-slippery":case"sq-sticky":if(yield new Promise((t=>setTimeout(t))),!this.physicMaterial){var s="sq-sticky"===t?15:e.friction;this.physicMaterial=new q(s,s),yield this.gameObject.AddComponent(this.physicMaterial)}this.rigidBody||"sq-sticky"!==t||(this.rigidBody=new H(1,0,.05,!0,!0,new E,Ss.Discrete,!1,!1,!1,!1,!1,!1,new E,new E),yield this.gameObject.AddComponent(this.rigidBody));break;case"sq-climbable":case"sq-grabbable":this.gameObject.SetLayer(20);break;case"sq-gravityfield":this.gameObject.On("trigger-enter",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.gravity(e.gravity)})),this.gameObject.On("trigger-exit",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.gravity({x:0,y:-9.8,z:0})})),this.collider||(yield p(Ls,"user"),this.collider=new N(!0),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new L));break;case"sq-timedilationfield":this.gameObject.On("trigger-enter",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.timeScale(e.scale)})),this.gameObject.On("trigger-exit",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.timeScale(1)})),this.collider||(yield p(Ls,"user"),this.collider=new N(!0),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new L));break;case"sq-speedfield":this.gameObject.On("trigger-enter",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.playerSpeed(!0)})),this.gameObject.On("trigger-exit",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.playerSpeed(!1)})),this.collider||(yield p(Ls,"user"),this.collider=new N(!0),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new L));break;case"sq-browser":yield p(this,"unityReady"),this.browser?e.url&&(this.browser.url=e.url):(this.browser=new x(e.url,e.mipMaps,e.pixelsPerUnit,1024,576,JSON.stringify({actions:e.afterLoadActions})),yield this.gameObject.AddComponent(this.browser));break;case"sq-assetbundle":this.assetbundle||(this.assetbundle=new k(e.desktop,null,null,e.android,null,null,!0,!0),yield this.gameObject.AddComponent(this.assetbundle));break;case"sq-kitbundle":this.kitbundle||(this.kitbundle=new k(e.desktop,null,null,e.android,null,null,!1),yield this.gameObject.AddComponent(this.kitbundle));break;case"sq-kititem":this.kititem||(this.kititem=new z(e.item),yield this.gameObject.AddComponent(this.kititem));break;case"sq-boxcollider":this.collider||(this.collider=new N(this.hasAttribute("sq-triggercollider"),e.center,e.size),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new L));break;case"sq-spherecollider":this.collider||(this.collider=new W(this.hasAttribute("sq-triggercollider"),e.radius),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new L));break;case"sq-capsulecollider":this.collider||(this.collider=new I(this.hasAttribute("sq-triggercollider"),e.radius,e.height),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new L));break;case"sq-mirror":this.mirror||(this.mirror=new U,yield this.gameObject.AddComponent(this.mirror));break;case"sq-smoothposition":yield p(this,"unityReady"),this.transform.lerpPosition=!0;break;case"sq-smoothrotation":yield p(this,"unityReady"),this.transform.lerpRotation=!0;break;case"sq-rigidbody":if(!this.rigidBody){let t=Ss.Discrete;switch(e.collisionDetectionMode){case"discrete":t=Ss.Discrete;break;case"continuous":t=Ss.Continuous;break;case"continuousdynamic":t=Ss.ContinuousDynamic;break;case"continuousspeculative":t=Ss.ContinuousSpeculative}this.rigidBody=new H(e.mass,e.drag,e.angularDrag,e.isKinematic,e.useGravity,e.centerOfMass,t,e.freezePosX,e.freezePosY,e.freezePosZ,e.freezeRotX,e.freezeRotY,e.freezeRotZ,e.velocity,e.angularVelocity),yield this.gameObject.AddComponent(this.rigidBody)}}}))}parseAttributeValue(t,e){let s;this.components[t]={data:Dt(e)},"sq-browser"===t&&(this.components[t].runActions=t=>{var e;return null===(e=this.browser)||void 0===e?void 0:e.RunActions(JSON.stringify({actions:t}))});try{if("geometry"===t){const e=this.components[t].data.primitive;e&&(Gs(e,"segmentsWidth",!0),Gs(e,"segmentsHeight",!0),Gs(e,"thetaLength",!0),Gs(e,"radiusTop",!0))}const i=Tt(Et[t].schema,t);s=Ot(Et[t].schema)?It(e,i):Nt(this.components[t].data,Et[t].schema,!1,t)}catch(s){console.warn(s,t,e)}return s}handleAttachements(t,s){return Cs(this,void 0,void 0,(function*(){if("everyone"===t)Ts.objs.push({position:s,object:this.gameObject}),this.gameObject.SetActive(!1),Object.values(St.GetInstance().users).forEach((t=>Cs(this,void 0,void 0,(function*(){Is(this.gameObject,t.uid,s)}))));else if("everyoneelse"===t)Ms.objs.push({position:s,object:this.gameObject}),this.gameObject.SetActive(!1),Object.values(St.GetInstance().users).forEach((t=>Cs(this,void 0,void 0,(function*(){t.isLocal||Is(this.gameObject,t.uid,s)}))));else if("onlyme"===t)Ns.objs.push({position:s,object:this.gameObject}),this.gameObject.SetActive(!1),Is(this.gameObject,window.user.id,s);else{var i=yield this.gameObject.GetComponent(e.Transform);yield i.Q([a.localEulerAngles]),i.localEulerAngles=new E(i.localEulerAngles.x,i.localEulerAngles.y+270,i.localEulerAngles.z),yield i.Q([a.localEulerAngles]),St.GetInstance().LegacyAttachObject(this.gameObject,t,s)}}))}parseAttributes(t,e,s){return Cs(this,void 0,void 0,(function*(){if(t=t.split("__")[0],!Et[t])return;let e=this.parseAttributeValue(t,s);return this.processAttributes(t,e,s),e}))}invertCoordinates(t,e){var s="eulerAngles"===t||"localEulerAngles"===t;return("position"===t||"localPosition"===t)&&"z"===e||s&&"x"===e||s&&"y"===e?-1:1}animateIt(t,e,s,i){const n={};"string"==typeof s&&(n[s]=this.transform[e][s]*this.invertCoordinates(e,s));const r={targets:n,duration:t.dur||0,delay:t.delay||0,easing:t.easing||"linear",elasticity:t.elasticity||0,loop:t.loop||!1,direction:t.dir||"normal",autoplay:t.autoplay||!0,round:t.round||1e7,change:t=>{"string"==typeof s&&(this.transform[e][s]=t.animatables[0].target[s]*this.invertCoordinates(e,s)),i()}};"string"==typeof s&&(r[s]=t.from||0===t.from?[t.from,t.to]:[this.transform[e][s]*this.invertCoordinates(e,s),t.to]),t.startEvents&&t.startEvents.length?t.startEvents.forEach((t=>{this.addEventListener(t,(()=>{We(r)}))})):We(r)}attributeChangedCallback(t,e,s){var i=t.split("__");t=i[0],this.parseAttributes(t,e,s).then((e=>{"object"==typeof e&&i[1]&&(e._event="_"+i[1]),Et[t]&&Et[t].update&&Et[t].update.bind({el:this,sceneEl:this.sceneEl,data:e})()}))}setupMutationObserver(){const t=this;new MutationObserver((function(e){return Cs(this,void 0,void 0,(function*(){let s;for(s=0;s{window.AFRAME.scenes=Array.from(document.querySelectorAll("a-scene"))}));const Ys=(t,e)=>{Object.keys(e).forEach((t=>{Ds.registerComponent(t,{schema:e[t]})})),Ds.registerComponent(t,{schema:e})};Ds.registerComponent("gltf-model",{schema:{type:"model"}}),Ds.registerComponent("position",{schema:{type:"vec3",default:{x:0,y:0,z:0}}}),Ds.registerComponent("scale",{schema:{type:"vec3",default:{x:1,y:1,z:1}}}),Ds.registerComponent("rotation",{schema:{type:"vec3",default:{x:0,y:0,z:0}}}),Ds.registerComponent("rotation",{schema:{type:"vec3",default:{x:0,y:0,z:0}}}),Ds.registerComponent("visible",{schema:{type:"bool",default:!0}}),Ds.registerComponent("vr-mode-ui",{schema:{}}),Ys("sound",{autoplay:{default:!1},loop:{default:!1},src:{type:"audio"},volume:{default:1}});const js={primitive:{type:"string",default:""},depth:{type:"number",default:1,min:0},height:{type:"number",default:1,min:0},width:{type:"number",default:1,min:0},segmentsHeight:{type:"int",default:1,min:1},segmentsWidth:{type:"int",default:1,min:1},segmentsDepth:{type:"int",default:1,min:1},radius:{type:"number",default:1,min:0},segments:{type:"int",default:32,min:3},thetaStart:{type:"number",default:0},openEnded:{type:"bool",default:!1},radiusBottom:{type:"number",default:1,min:0},radiusTop:{type:"number",default:.01,min:0},segmentsRadial:{type:"int",default:36,min:3},radiusInner:{type:"number",default:.8,min:0},radiusOuter:{type:"number",default:1.2,min:0},segmentsPhi:{type:"int",default:10,min:1},segmentsTheta:{type:"int",default:32,min:3},phiLength:{type:"number",default:360},phiStart:{type:"number",default:0,min:0},arc:{type:"number",default:360},radiusTubular:{type:"number",default:.2,min:0},segmentsTubular:{type:"int",default:32,min:3},thetaLength:{default:180,min:0},p:{type:"number",default:2,min:1},q:{type:"number",default:3,min:1}};function zs(t,e,s){t?Et.geometry.schema[e].default=s:Et[e].schema.default=s}function Gs(t,e,s=!1){js[e]&&("sphere"===t?"segmentsWidth"===e?zs(s,e,32):"segmentsHeight"===e&&zs(s,e,16):"segmentsWidth"!==e&&"segmentsHeight"!==e||zs(s,e,1),"ring"!==t&&"cone"!==t&&"circle"!==t&&"cylinder"!==t||"thetaLength"!==e?"thetaLength"===e&&zs(s,e,180):zs(s,e,360),"cylinder"===t&&"radiusTop"===e?zs(s,e,1):"cone"===t&&"radiusTop"===e&&zs(s,e,.01))}Ys("geometry",js),Ys("material",{color:{type:"color",default:"#FFF"},opacity:{type:"number",default:1,min:0},transparent:{type:"bool",default:!1},src:{type:"asset",default:""}}),Ys("link",{href:{type:"asset",default:""},src:{type:"asset",default:""},title:{type:"string",default:""}}),Ys("animation",{autoplay:{default:!0},delay:{default:0},dir:{default:""},dur:{default:1e3},easing:{default:"easeInQuad"},elasticity:{default:400},enabled:{default:!0},from:{default:""},loop:{default:0,parse:function(t){return!0===t||"true"===t||!1!==t&&"false"!==t&&parseInt(t,10)}},property:{default:""},startEvents:{type:"array"},pauseEvents:{type:"array"},resumeEvents:{type:"array"},round:{default:!1},to:{default:""},type:{default:""},isRawProperty:{default:!1}}),Ys("text",{align:{type:"string",default:"left"},baseline:{type:"string",default:"center"},color:{type:"string",default:"#FFF"},value:{type:"string",default:""}}),["climbable","collider","invertedcollider","triggercollider","nonconvexcollider","sticky","clickable","interactable","grabbable","billboard","generatemipmaps"].forEach((t=>{Ds.registerComponent("sq-"+t,{schema:{recursive:{type:"bool",default:!1}}})})),Ds.registerComponent("sq-deeplink",{schema:{url:{type:"string",default:""}}}),Ds.registerComponent("sq-playavatar",{schema:{tracking:{type:"string",default:""},audio:{type:"string",default:""},avatar:{type:"string",default:""}}}),Ds.registerComponent("sq-slippery",{schema:{friction:{type:"number",default:0},recursive:{type:"bool",default:!1}}}),["hidenametags","hideavatars","mirror","hidedefaulttextures","smoothposition","smoothrotation","disableteleport","enablespiderman"].forEach((t=>{Ds.registerComponent("sq-"+t,{schema:{enabled:{type:"bool",default:!1}}})})),["lefthand","righthand","head","body","cockpit"].forEach((t=>{Ds.registerComponent("sq-"+t,{schema:{whoToShow:{type:"string",default:"everyone"}}})})),Ds.registerComponent("sq-movingplatform",{schema:{end:{type:"vec3",default:{x:0,y:0,z:0}},speed:{type:"number",default:5},delay:{type:"number",default:5},timeToMaxSpeed:{type:"number",default:2},maxIterations:{type:"number",default:-1}}}),Ds.registerComponent("sq-parametric",{schema:{stacks:{type:"number",default:10},slices:{type:"number",default:10},type:{type:"string",default:"klein"},inverted:{type:"bool",default:!1}}}),Ds.registerComponent("sq-livestream",{schema:{type:{type:"string",default:"youtube"},url:{type:"string",default:""},muted:{type:"bool",default:!1},volume:{type:"number",default:.5},allowPause:{type:"bool",default:!1}}}),Ds.registerComponent("sq-boxcollider",{schema:{center:{type:"vec3",default:{x:0,y:0,z:0}},size:{type:"vec3",default:{x:1,y:1,z:1}}}}),Ds.registerComponent("sq-spherecollider",{schema:{center:{type:"vec3",default:{x:0,y:0,z:0}},radius:{type:"number",default:.5}}}),Ds.registerComponent("sq-capsulecollider",{schema:{center:{type:"vec3",default:{x:0,y:0,z:0}},radius:{type:"number",default:.5},height:{type:"number",default:1},direction:{type:"string",default:"y"}}}),Ds.registerComponent("sq-raycaster",{schema:{startEvent:{type:"string",default:"click"},continuous:{type:"bool",default:!1},distance:{type:"number",default:100}}}),Ds.registerComponent("sq-destructable",{schema:{randomSeed:{type:"number",default:0},fractureType:{type:"string",default:"shatter"},numFracturePieces:{type:"number",default:10},numInterations:{type:"number",default:1},numGenerations:{type:"number",default:1},evenlySizedPieces:{type:"bool",default:!1},forceThreshold:{type:"number",default:10},forceRolloffRadius:{type:"number",default:1}}}),Ds.registerComponent("sq-rigidbody",{schema:{angularDrag:{type:"number",default:.05},collisionDetectionMode:{type:"string",default:"discrete"},angularVelocity:{type:"vec3",default:{x:0,y:0,z:0}},centerOfMass:{type:"vec3",default:{x:0,y:0,z:0}},drag:{type:"number",default:0},isKinematic:{type:"bool",default:!1},useGravity:{type:"bool",default:!0},mass:{type:"number",default:1},toChild:{type:"bool",default:!1},velocity:{type:"vec3",default:{x:0,y:0,z:0}},freezePosX:{type:"bool",default:!1},freezePosY:{type:"bool",default:!1},freezePosZ:{type:"bool",default:!1},freezeRotX:{type:"bool",default:!1},freezeRotY:{type:"bool",default:!1},freezeRotZ:{type:"bool",default:!1}}}),Ds.registerComponent("sq-particlesystem",{schema:{duration:{type:"number",default:5},startColor:{type:"string",default:"#ffffff"},startDelay:{type:"number",default:0},startDelayMultiplier:{type:"number",default:1},startLifetime:{type:"number",default:5},startLifetimeMultiplier:{type:"number",default:1},startSize:{type:"number",default:1},startSpeed:{type:"number",default:5},startRotation:{type:"number",default:0},simulationSpace:{type:"string",default:"local"},particleTexture:{type:"string",default:"https://cdn.sidequestvr.com/file/297264/new-project-1.png"},emitterVelocity:{type:"vec3",default:{x:0,y:0,z:0}},emitterVelocityMode:{type:"string",default:"rigid-body"},maxParticles:{type:"number",default:1e3},flipRotation:{type:"number",default:0},scalingMode:{type:"string",default:"local"},loop:{type:"bool",default:!0},playOnAwake:{type:"bool",default:!0},prewarm:{type:"bool",default:!1}}}),Ds.registerComponent("sq-clippingplane",{schema:{near:{type:"number",default:.02},far:{type:"number",default:1500}}}),Ds.registerComponent("sq-maxoccupancy",{schema:{number:{type:"number",default:20}}}),Ds.registerComponent("sq-spawnpoint",{schema:{position:{type:"vec4",default:{x:0,y:0,z:0,w:0}}}}),Ds.registerComponent("sq-refreshrate",{schema:{rate:{type:"number",default:90}}}),Ds.registerComponent("sq-devtoolsenabled",{schema:{enabled:{type:"bool",default:!0}}}),Ds.registerComponent("sq-portalsenabled",{schema:{enabled:{type:"bool",default:!0}}}),Ds.registerComponent("sq-guestsallowed",{schema:{enabled:{type:"bool",default:!0}}}),Ds.registerComponent("sq-friendpositionjoinallowed",{schema:{enabled:{type:"bool",default:!0}}}),Ds.registerComponent("sq-clickurl",{schema:{url:{type:"string",default:"https://sidequestvr.com"}}}),Ds.registerComponent("sq-overridecolor",{multiple:!0,schema:{path:{type:"string",default:""},color:{type:"vec3",default:{x:1,y:1,z:1}}}}),Ds.registerComponent("sq-trackpose",{schema:{type:{type:"string",default:"lefthand"}}}),Ds.registerComponent("sq-streetview",{schema:{panoId:{type:"string",default:"EusXB0g8G1DOvaPV56X51g"}},update:function(t){const e=this.el.object3D;e&&(e.userData.streetView=this.data.panoId)}}),Ds.registerComponent("sq-customhome",{schema:{customHome:{type:"string",default:"https://cdn.sidequestvr.com/file/167567/canyon_environment.apk"}}}),Ds.registerComponent("sq-assetbundle",{schema:{android:{type:"string",default:""},androidShaders:{type:"string",default:""},desktop:{type:"string",default:""},desktopShaders:{type:"string",default:""}}}),Ds.registerComponent("sq-questhome",{schema:{url:{type:"string",default:"https://cdn.sidequestvr.com/file/167567/canyon_environment.apk"}}}),Ds.registerComponent("sq-syncloop",{schema:{interval:{type:"number",default:0},runOnce:{type:"bool",default:!1},eventName:{type:"string",default:"startAnimation"},remote:{type:"string",default:""}}}),Ds.registerComponent("sq-timedilationfield",{schema:{scale:{type:"number",default:1}}}),Ds.registerComponent("sq-gravityfield",{schema:{gravity:{type:"vec3",default:{x:0,y:-9.8,z:0}}}}),Ds.registerComponent("sq-kitbundle",{schema:{android:{type:"string",default:""},desktop:{type:"string",default:""}}}),Ds.registerComponent("sq-custommaterial",{schema:{materialName:{type:"string",default:null},shaderName:{type:"string",default:null},shaderParamNames:{type:"array",default:null},shaderParamValues:{type:"array",default:null}}}),Ds.registerComponent("sq-kititem",{schema:{item:{type:"string",default:""}}}),Ds.registerComponent("sq-browser",{schema:{url:{type:"asset",default:""},remote:{type:"boolean",default:!0},mode:{type:"string",default:"local"},pixelsPerUnit:{type:"number",default:1200},mipMaps:{type:"number",default:4},afterLoadActions:{default:null,parse:function(t){var e;if(Array.isArray(t))return t;if(!t||!(null===(e=null==t?void 0:t.trim())||void 0===e?void 0:e.length))return[];try{return JSON.parse(t)}catch(e){console.error("Invalid browser input: ",t),console.error(e)}}}}}),Ds.registerComponent("sq-browser-interaction",{schema:{url:{type:"asset",default:""}}}),Object.defineProperty(window,"AframeInjection",{value:new class extends d{waitFor(t,e){return vs(this,void 0,void 0,(function*(){return p(t,e)}))}},writable:!1}),Object.defineProperty(window,"isBanter",{value:!0,writable:!1}),Object.defineProperty(window,"AFRAME",{value:Ds,writable:!1});const Fs=(t,e,s=!0,i="")=>{const n={};return e.forEach((e=>{const r=jt(e);if((s||js[r])&&Et[r]){Gs(i,r);var o=Tt(Et[r].schema,r),a=t.getAttribute(e),c=Dt(a);Ot(Et[r].schema)?n[r]=It(a,o):n[r]=Nt(c,o,!0,r)}})),n},Us=(t,e,s)=>Yt(Object.assign({primitive:e},Fs(t,s,!1,e))),qs=(t,e)=>t.hasAttribute(e)?";"+t.getAttribute(e):"";customElements.define("a-node",Js),customElements.define("a-entity",class extends Js{}),customElements.define("a-scene",class extends Js{}),customElements.define("a-link",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("link",Yt(Fs(this,["href","title","src"]))+qs(this,"link"))}))}}),customElements.define("a-text",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("text",Yt(Fs(this,["value","color","align","baseline"]))+qs(this,"text"))}))}}),customElements.define("a-image",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Us(this,"plane",["width","height","segments-width","segments-height"])+qs(this,"geometry"))}))}}),customElements.define("a-plane",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Us(this,"plane",["width","height","segments-width","segments-height"])+qs(this,"geometry"))}))}}),customElements.define("a-box",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Us(this,"box",["width","height","depth","segments-width","segments-height","segments-depth"])+qs(this,"geometry"))}))}}),customElements.define("a-sphere",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Us(this,"sphere",["radius","segments-width","segments-height","phi-start","phi-length","theta-start","theta-length"])+qs(this,"geometry"))}))}}),customElements.define("a-sky",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("radius","500"),this.setAttribute("geometry",Us(this,"sphere",["radius","segments-width","segments-height","phi-start","phi-length","theta-start","theta-length"])+qs(this,"geometry")),this.setAttribute("side","back")}))}}),customElements.define("a-cylinder",class extends Js{constructor(){super(),this.addEventListener("unityready",(()=>{this.hasAttribute("radius")&&!this.hasAttribute("radius-bottom")&&this.setAttribute("radius-bottom",this.getAttribute("radius")),this.hasAttribute("radius")&&!this.hasAttribute("radius-top")&&this.setAttribute("radius-top",this.getAttribute("radius")),this.setAttribute("geometry",Us(this,"cylinder",["radius-top","radius-bottom","height","segments-radial","segments-height","open-ended","theta-start","theta-length","radius"])+qs(this,"geometry"))}))}}),customElements.define("a-cone",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Us(this,"cone",["radius","height","segments-radial","segments-height","open-ended","theta-start","theta-length"])+qs(this,"geometry"))}))}}),customElements.define("a-ring",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Us(this,"ring",["radius-inner","radius-outer","segments-theta","segments-phi","theta-start","theta-length"])+qs(this,"geometry"))}))}}),customElements.define("a-circle",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Us(this,"circle",["radius","segments","theta-start","theta-length"])+qs(this,"geometry"))}))}}),customElements.define("a-torus",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Us(this,"torus",["tube","segments-radial","segments-tubular","arc"])+qs(this,"geometry"))}))}}),customElements.define("a-sound",class extends Js{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("sound",Yt(Fs(this,["src","loop","volume","autoplay"]))+qs(this,"sound"))}))}});const Vs=!0})(),BS=i})(); \ No newline at end of file +var BS;(()=>{var t={72:()=>{!function(){if(document.registerElement=()=>{},void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}()},217:(t,e,s)=>{"use strict";s.r(e),s.d(e,{isValidDefaultCoordinate:()=>A,isValidDefaultValue:()=>f,propertyTypes:()=>h,registerPropertyType:()=>d,setComponentProperty:()=>k}),console.warn.bind(console);var i=["x","y","z","w"],r=/\s+/g;function n(t){var e;return"object"!=typeof t?t:(e=t.x+" "+t.y,null!=t.z&&(e+=" "+t.z),null!=t.w&&(e+=" "+t.w),e)}function o(t){return null!=t&&t.constructor===String?parseFloat(t.toString()):t}const a=console.error.bind(console),c=console.warn.bind(console);var h={},l=/[,> .[\]:]/,u=/\url\((.+)\)/;function d(t,e,s,i){"type"in h?a("Property type "+t+" is already registered."):h[t]={default:e,parse:s||m,stringify:i||y}}function p(t){var e,s;return"string"!=typeof t?t:(s=t.match(u))?s[1]:"#"===t.charAt(0)?(e=document.getElementById(t.substring(1)))?"CANVAS"===e.tagName||"VIDEO"===e.tagName||"IMG"===e.tagName?e:e.getAttribute("src"):void c('"'+t+'" asset not found.'):t}function m(t){return t}function y(t){return null===t?"null":t.toString()}function g(t){return parseInt(t,10)}function b(t){return function(t,e){var s,n,a,c,h,l,u,d,p;if(t&&t instanceof Object)return l=void 0===t.x?e&&e.x:t.x,u=void 0===t.y?e&&e.y:t.y,d=void 0===t.z?e&&e.z:t.z,p=void 0===t.w?e&&e.w:t.w,null!=l&&(t.x=o(l)),null!=u&&(t.y=o(u)),null!=d&&(t.z=o(d)),null!=p&&(t.w=o(p)),t;if(null==t)return"object"==typeof e?Object.assign({},e):e;for(s=t.trim().split(r),h={},c=0;c2&&"number"!=typeof r||e>3&&"number"!=typeof n)}d("audio","",p),d("array",[],(function(t){return Array.isArray(t)?t:t&&"string"==typeof t?t.split(",").map((function(t){return t.trim()})):[]}),(function(t){return t.join(", ")})),d("asset","",p),d("boolean",!1,(function(t){return"false"!==t&&!1!==t})),d("color","#FFF",m,y),d("int",0,g),d("number",0,(function(t){return parseFloat(t)})),d("map","",p),d("model","",p),d("selector",null,(function(t){return t?"string"!=typeof t?t:"#"!==t[0]||l.test(t)?document.querySelector(t):document.getElementById(t.substring(1)):null}),(function(t){return t.getAttribute?"#"+t.getAttribute("id"):y(t)})),d("selectorAll",null,(function(t){return t?"string"!=typeof t?t:Array.prototype.slice.call(document.querySelectorAll(t),0):null}),(function(t){return t instanceof Array?t.map((function(t){return"#"+t.getAttribute("id")})).join(", "):y(t)})),d("src","",(function(t){return c("`src` property type is deprecated. Use `asset` instead."),p(t)})),d("string","",m,y),d("time",0,g),d("vec2",{x:0,y:0},b,n),d("vec3",{x:0,y:0,z:0},b,n),d("vec4",{x:0,y:0,z:0,w:1},b,n);const _=(v={},function(t,e){return e in v||(v[e]={}),t in v[e]||(v[e][t]=t.split(e)),v[e][t]});var v;const k=function(t,e,s,i){var r;i=i||".",-1===e.indexOf(i)?t.setAttribute(e,s):(r=function(t,e){var s=_(t,e=e||".");return 1===s.length?s[0]:s}(e,i)).constructor===String?t.setAttribute(r,s):t.setAttribute(r[0],r[1],s)}}},e={};function s(i){var r=e[i];if(void 0!==r)return r.exports;var n=e[i]={exports:{}};return t[i](n,n.exports,s),n.exports}s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};(()=>{"use strict";s.r(i),s.d(i,{AFRAME:()=>Gs,BanterAssetBundle:()=>S,BanterAttachedObject:()=>O,BanterAudioSource:()=>M,BanterBillboard:()=>N,BanterBrowser:()=>I,BanterColliderEvents:()=>D,BanterGLTF:()=>j,BanterGeometry:()=>Y,BanterGrabHandle:()=>z,BanterHeldEvents:()=>G,BanterInvertedMesh:()=>U,BanterKitItem:()=>F,BanterLayers:()=>a,BanterMaterial:()=>q,BanterMirror:()=>H,BanterPhysicMaterial:()=>W,BanterPortal:()=>K,BanterRigidbody:()=>Z,BanterScene:()=>Pt,BanterStreetView:()=>Q,BanterSyncedObject:()=>$,BanterText:()=>tt,BanterVideoPlayer:()=>st,BanterWorldObject:()=>it,BoxCollider:()=>x,ButtonType:()=>t,CapsuleCollider:()=>L,Color:()=>_s,Component:()=>k,ComponentQuery:()=>mt,ComponentType:()=>e,ConfigurableJoint:()=>J,ConfigurableJointMotion:()=>h,CreateGameObject:()=>ct,ForceMode:()=>r,GameObject:()=>at,GeometryType:()=>Wt,GetComponentType:()=>rt,HandSide:()=>n,HorizontalAlignment:()=>ks,IS_DEV:()=>Zs,KeyCode:()=>o,LegacyAttachmentPosition:()=>Ts,LoadSceneBundles:()=>Rt,MaterialSide:()=>Rs,MeshCollider:()=>V,ParametricGeometryType:()=>Kt,PropertyName:()=>c,Quaternion:()=>B,SceneSettings:()=>gt,SphereCollider:()=>X,Transform:()=>et,Vector2:()=>E,Vector3:()=>C,Vector4:()=>R,VerticalAlignment:()=>Ss});var t,e,r,n,o,a,c,h,l,u,d={};s.r(d),s.d(d,{parseStyle:()=>Gt,stringify:()=>Ut,toCamelCase:()=>Ft,transformKeysToCamelCase:()=>qt}),function(t){t[t.TRIGGER=0]="TRIGGER",t[t.GRIP=1]="GRIP",t[t.PRIMARY=2]="PRIMARY",t[t.SECONDARY=3]="SECONDARY"}(t||(t={})),function(t){t[t.BanterAssetBundle=0]="BanterAssetBundle",t[t.BanterAttachedObject=1]="BanterAttachedObject",t[t.BanterAudioSource=2]="BanterAudioSource",t[t.BanterBillboard=3]="BanterBillboard",t[t.BoxCollider=4]="BoxCollider",t[t.BanterBrowser=5]="BanterBrowser",t[t.CapsuleCollider=6]="CapsuleCollider",t[t.BanterColliderEvents=7]="BanterColliderEvents",t[t.ConfigurableJoint=8]="ConfigurableJoint",t[t.BanterGeometry=9]="BanterGeometry",t[t.BanterGLTF=10]="BanterGLTF",t[t.BanterGrabHandle=11]="BanterGrabHandle",t[t.BanterHeldEvents=12]="BanterHeldEvents",t[t.BanterInvertedMesh=13]="BanterInvertedMesh",t[t.BanterKitItem=14]="BanterKitItem",t[t.BanterMaterial=15]="BanterMaterial",t[t.MeshCollider=16]="MeshCollider",t[t.BanterMirror=17]="BanterMirror",t[t.BanterPhysicMaterial=18]="BanterPhysicMaterial",t[t.BanterPortal=19]="BanterPortal",t[t.BanterRigidbody=20]="BanterRigidbody",t[t.SphereCollider=21]="SphereCollider",t[t.BanterStreetView=22]="BanterStreetView",t[t.BanterSyncedObject=23]="BanterSyncedObject",t[t.BanterText=24]="BanterText",t[t.Transform=25]="Transform",t[t.BanterVideoPlayer=26]="BanterVideoPlayer",t[t.BanterWorldObject=27]="BanterWorldObject"}(e||(e={})),function(t){t[t.Force=0]="Force",t[t.Impulse=1]="Impulse",t[t.VelocityChange=2]="VelocityChange",t[t.Acceleration=3]="Acceleration"}(r||(r={})),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT"}(n||(n={})),function(t){t[t.None=0]="None",t[t.Backspace=1]="Backspace",t[t.Tab=2]="Tab",t[t.Clear=3]="Clear",t[t.Return=4]="Return",t[t.Pause=5]="Pause",t[t.Escape=6]="Escape",t[t.Space=7]="Space",t[t.Exclaim=8]="Exclaim",t[t.DoubleQuote=9]="DoubleQuote",t[t.Hash=10]="Hash",t[t.Dollar=11]="Dollar",t[t.Percent=12]="Percent",t[t.Ampersand=13]="Ampersand",t[t.Quote=14]="Quote",t[t.LeftParen=15]="LeftParen",t[t.RightParen=16]="RightParen",t[t.Asterisk=17]="Asterisk",t[t.Plus=18]="Plus",t[t.Comma=19]="Comma",t[t.Minus=20]="Minus",t[t.Period=21]="Period",t[t.Slash=22]="Slash",t[t.Alpha0=23]="Alpha0",t[t.Alpha1=24]="Alpha1",t[t.Alpha2=25]="Alpha2",t[t.Alpha3=26]="Alpha3",t[t.Alpha4=27]="Alpha4",t[t.Alpha5=28]="Alpha5",t[t.Alpha6=29]="Alpha6",t[t.Alpha7=30]="Alpha7",t[t.Alpha8=31]="Alpha8",t[t.Alpha9=32]="Alpha9",t[t.Colon=33]="Colon",t[t.Semicolon=34]="Semicolon",t[t.Less=35]="Less",t[t.Equals=36]="Equals",t[t.Greater=37]="Greater",t[t.Question=38]="Question",t[t.At=39]="At",t[t.LeftBracket=40]="LeftBracket",t[t.Backslash=41]="Backslash",t[t.RightBracket=42]="RightBracket",t[t.Caret=43]="Caret",t[t.Underscore=44]="Underscore",t[t.BackQuote=45]="BackQuote",t[t.A=46]="A",t[t.B=47]="B",t[t.C=48]="C",t[t.D=49]="D",t[t.E=50]="E",t[t.F=51]="F",t[t.G=52]="G",t[t.H=53]="H",t[t.I=54]="I",t[t.J=55]="J",t[t.K=56]="K",t[t.L=57]="L",t[t.M=58]="M",t[t.N=59]="N",t[t.O=60]="O",t[t.P=61]="P",t[t.Q=62]="Q",t[t.R=63]="R",t[t.S=64]="S",t[t.T=65]="T",t[t.U=66]="U",t[t.V=67]="V",t[t.W=68]="W",t[t.X=69]="X",t[t.Y=70]="Y",t[t.Z=71]="Z",t[t.LeftCurlyBracket=72]="LeftCurlyBracket",t[t.Pipe=73]="Pipe",t[t.RightCurlyBracket=74]="RightCurlyBracket",t[t.Tilde=75]="Tilde",t[t.Delete=76]="Delete",t[t.Keypad0=77]="Keypad0",t[t.Keypad1=78]="Keypad1",t[t.Keypad2=79]="Keypad2",t[t.Keypad3=80]="Keypad3",t[t.Keypad4=81]="Keypad4",t[t.Keypad5=82]="Keypad5",t[t.Keypad6=83]="Keypad6",t[t.Keypad7=84]="Keypad7",t[t.Keypad8=85]="Keypad8",t[t.Keypad9=86]="Keypad9",t[t.KeypadPeriod=87]="KeypadPeriod",t[t.KeypadDivide=88]="KeypadDivide",t[t.KeypadMultiply=89]="KeypadMultiply",t[t.KeypadMinus=90]="KeypadMinus",t[t.KeypadPlus=91]="KeypadPlus",t[t.KeypadEnter=92]="KeypadEnter",t[t.KeypadEquals=93]="KeypadEquals",t[t.UpArrow=94]="UpArrow",t[t.DownArrow=95]="DownArrow",t[t.RightArrow=96]="RightArrow",t[t.LeftArrow=97]="LeftArrow",t[t.Insert=98]="Insert",t[t.Home=99]="Home",t[t.End=100]="End",t[t.PageUp=101]="PageUp",t[t.PageDown=102]="PageDown",t[t.F1=103]="F1",t[t.F2=104]="F2",t[t.F3=105]="F3",t[t.F4=106]="F4",t[t.F5=107]="F5",t[t.F6=108]="F6",t[t.F7=109]="F7",t[t.F8=110]="F8",t[t.F9=111]="F9",t[t.F10=112]="F10",t[t.F11=113]="F11",t[t.F12=114]="F12",t[t.F13=115]="F13",t[t.F14=116]="F14",t[t.F15=117]="F15",t[t.Numlock=118]="Numlock",t[t.CapsLock=119]="CapsLock",t[t.ScrollLock=120]="ScrollLock",t[t.RightShift=121]="RightShift",t[t.LeftShift=122]="LeftShift",t[t.RightControl=123]="RightControl",t[t.LeftControl=124]="LeftControl",t[t.RightAlt=125]="RightAlt",t[t.LeftAlt=126]="LeftAlt",t[t.RightMeta=127]="RightMeta",t[t.LeftApple=128]="LeftApple",t[t.LeftWindows=129]="LeftWindows",t[t.RightWindows=130]="RightWindows",t[t.AltGr=131]="AltGr",t[t.Help=132]="Help",t[t.Print=133]="Print",t[t.SysReq=134]="SysReq",t[t.Break=135]="Break",t[t.Menu=136]="Menu",t[t.Mouse0=137]="Mouse0",t[t.Mouse1=138]="Mouse1",t[t.Mouse2=139]="Mouse2",t[t.Mouse3=140]="Mouse3",t[t.Mouse4=141]="Mouse4",t[t.Mouse5=142]="Mouse5",t[t.Mouse6=143]="Mouse6",t[t.JoystickButton0=144]="JoystickButton0",t[t.JoystickButton1=145]="JoystickButton1",t[t.JoystickButton2=146]="JoystickButton2",t[t.JoystickButton3=147]="JoystickButton3",t[t.JoystickButton4=148]="JoystickButton4",t[t.JoystickButton5=149]="JoystickButton5",t[t.JoystickButton6=150]="JoystickButton6",t[t.JoystickButton7=151]="JoystickButton7",t[t.JoystickButton8=152]="JoystickButton8",t[t.JoystickButton9=153]="JoystickButton9",t[t.JoystickButton10=154]="JoystickButton10",t[t.JoystickButton11=155]="JoystickButton11",t[t.JoystickButton12=156]="JoystickButton12",t[t.JoystickButton13=157]="JoystickButton13",t[t.JoystickButton14=158]="JoystickButton14",t[t.JoystickButton15=159]="JoystickButton15",t[t.JoystickButton16=160]="JoystickButton16",t[t.JoystickButton17=161]="JoystickButton17",t[t.JoystickButton18=162]="JoystickButton18",t[t.JoystickButton19=163]="JoystickButton19",t[t.Joystick1Button0=164]="Joystick1Button0",t[t.Joystick1Button1=165]="Joystick1Button1",t[t.Joystick1Button2=166]="Joystick1Button2",t[t.Joystick1Button3=167]="Joystick1Button3",t[t.Joystick1Button4=168]="Joystick1Button4",t[t.Joystick1Button5=169]="Joystick1Button5",t[t.Joystick1Button6=170]="Joystick1Button6",t[t.Joystick1Button7=171]="Joystick1Button7",t[t.Joystick1Button8=172]="Joystick1Button8",t[t.Joystick1Button9=173]="Joystick1Button9",t[t.Joystick1Button10=174]="Joystick1Button10",t[t.Joystick1Button11=175]="Joystick1Button11",t[t.Joystick1Button12=176]="Joystick1Button12",t[t.Joystick1Button13=177]="Joystick1Button13",t[t.Joystick1Button14=178]="Joystick1Button14",t[t.Joystick1Button15=179]="Joystick1Button15",t[t.Joystick1Button16=180]="Joystick1Button16",t[t.Joystick1Button17=181]="Joystick1Button17",t[t.Joystick1Button18=182]="Joystick1Button18",t[t.Joystick1Button19=183]="Joystick1Button19",t[t.Joystick2Button0=184]="Joystick2Button0",t[t.Joystick2Button1=185]="Joystick2Button1",t[t.Joystick2Button2=186]="Joystick2Button2",t[t.Joystick2Button3=187]="Joystick2Button3",t[t.Joystick2Button4=188]="Joystick2Button4",t[t.Joystick2Button5=189]="Joystick2Button5",t[t.Joystick2Button6=190]="Joystick2Button6",t[t.Joystick2Button7=191]="Joystick2Button7",t[t.Joystick2Button8=192]="Joystick2Button8",t[t.Joystick2Button9=193]="Joystick2Button9",t[t.Joystick2Button10=194]="Joystick2Button10",t[t.Joystick2Button11=195]="Joystick2Button11",t[t.Joystick2Button12=196]="Joystick2Button12",t[t.Joystick2Button13=197]="Joystick2Button13",t[t.Joystick2Button14=198]="Joystick2Button14",t[t.Joystick2Button15=199]="Joystick2Button15",t[t.Joystick2Button16=200]="Joystick2Button16",t[t.Joystick2Button17=201]="Joystick2Button17",t[t.Joystick2Button18=202]="Joystick2Button18",t[t.Joystick2Button19=203]="Joystick2Button19",t[t.Joystick3Button0=204]="Joystick3Button0",t[t.Joystick3Button1=205]="Joystick3Button1",t[t.Joystick3Button2=206]="Joystick3Button2",t[t.Joystick3Button3=207]="Joystick3Button3",t[t.Joystick3Button4=208]="Joystick3Button4",t[t.Joystick3Button5=209]="Joystick3Button5",t[t.Joystick3Button6=210]="Joystick3Button6",t[t.Joystick3Button7=211]="Joystick3Button7",t[t.Joystick3Button8=212]="Joystick3Button8",t[t.Joystick3Button9=213]="Joystick3Button9",t[t.Joystick3Button10=214]="Joystick3Button10",t[t.Joystick3Button11=215]="Joystick3Button11",t[t.Joystick3Button12=216]="Joystick3Button12",t[t.Joystick3Button13=217]="Joystick3Button13",t[t.Joystick3Button14=218]="Joystick3Button14",t[t.Joystick3Button15=219]="Joystick3Button15",t[t.Joystick3Button16=220]="Joystick3Button16",t[t.Joystick3Button17=221]="Joystick3Button17",t[t.Joystick3Button18=222]="Joystick3Button18",t[t.Joystick3Button19=223]="Joystick3Button19",t[t.Joystick4Button0=224]="Joystick4Button0",t[t.Joystick4Button1=225]="Joystick4Button1",t[t.Joystick4Button2=226]="Joystick4Button2",t[t.Joystick4Button3=227]="Joystick4Button3",t[t.Joystick4Button4=228]="Joystick4Button4",t[t.Joystick4Button5=229]="Joystick4Button5",t[t.Joystick4Button6=230]="Joystick4Button6",t[t.Joystick4Button7=231]="Joystick4Button7",t[t.Joystick4Button8=232]="Joystick4Button8",t[t.Joystick4Button9=233]="Joystick4Button9",t[t.Joystick4Button10=234]="Joystick4Button10",t[t.Joystick4Button11=235]="Joystick4Button11",t[t.Joystick4Button12=236]="Joystick4Button12",t[t.Joystick4Button13=237]="Joystick4Button13",t[t.Joystick4Button14=238]="Joystick4Button14",t[t.Joystick4Button15=239]="Joystick4Button15",t[t.Joystick4Button16=240]="Joystick4Button16",t[t.Joystick4Button17=241]="Joystick4Button17",t[t.Joystick4Button18=242]="Joystick4Button18",t[t.Joystick4Button19=243]="Joystick4Button19",t[t.Joystick5Button0=244]="Joystick5Button0",t[t.Joystick5Button1=245]="Joystick5Button1",t[t.Joystick5Button2=246]="Joystick5Button2",t[t.Joystick5Button3=247]="Joystick5Button3",t[t.Joystick5Button4=248]="Joystick5Button4",t[t.Joystick5Button5=249]="Joystick5Button5",t[t.Joystick5Button6=250]="Joystick5Button6",t[t.Joystick5Button7=251]="Joystick5Button7",t[t.Joystick5Button8=252]="Joystick5Button8",t[t.Joystick5Button9=253]="Joystick5Button9",t[t.Joystick5Button10=254]="Joystick5Button10",t[t.Joystick5Button11=255]="Joystick5Button11",t[t.Joystick5Button12=256]="Joystick5Button12",t[t.Joystick5Button13=257]="Joystick5Button13",t[t.Joystick5Button14=258]="Joystick5Button14",t[t.Joystick5Button15=259]="Joystick5Button15",t[t.Joystick5Button16=260]="Joystick5Button16",t[t.Joystick5Button17=261]="Joystick5Button17",t[t.Joystick5Button18=262]="Joystick5Button18",t[t.Joystick5Button19=263]="Joystick5Button19",t[t.Joystick6Button0=264]="Joystick6Button0",t[t.Joystick6Button1=265]="Joystick6Button1",t[t.Joystick6Button2=266]="Joystick6Button2",t[t.Joystick6Button3=267]="Joystick6Button3",t[t.Joystick6Button4=268]="Joystick6Button4",t[t.Joystick6Button5=269]="Joystick6Button5",t[t.Joystick6Button6=270]="Joystick6Button6",t[t.Joystick6Button7=271]="Joystick6Button7",t[t.Joystick6Button8=272]="Joystick6Button8",t[t.Joystick6Button9=273]="Joystick6Button9",t[t.Joystick6Button10=274]="Joystick6Button10",t[t.Joystick6Button11=275]="Joystick6Button11",t[t.Joystick6Button12=276]="Joystick6Button12",t[t.Joystick6Button13=277]="Joystick6Button13",t[t.Joystick6Button14=278]="Joystick6Button14",t[t.Joystick6Button15=279]="Joystick6Button15",t[t.Joystick6Button16=280]="Joystick6Button16",t[t.Joystick6Button17=281]="Joystick6Button17",t[t.Joystick6Button18=282]="Joystick6Button18",t[t.Joystick6Button19=283]="Joystick6Button19",t[t.Joystick7Button0=284]="Joystick7Button0",t[t.Joystick7Button1=285]="Joystick7Button1",t[t.Joystick7Button2=286]="Joystick7Button2",t[t.Joystick7Button3=287]="Joystick7Button3",t[t.Joystick7Button4=288]="Joystick7Button4",t[t.Joystick7Button5=289]="Joystick7Button5",t[t.Joystick7Button6=290]="Joystick7Button6",t[t.Joystick7Button7=291]="Joystick7Button7",t[t.Joystick7Button8=292]="Joystick7Button8",t[t.Joystick7Button9=293]="Joystick7Button9",t[t.Joystick7Button10=294]="Joystick7Button10",t[t.Joystick7Button11=295]="Joystick7Button11",t[t.Joystick7Button12=296]="Joystick7Button12",t[t.Joystick7Button13=297]="Joystick7Button13",t[t.Joystick7Button14=298]="Joystick7Button14",t[t.Joystick7Button15=299]="Joystick7Button15",t[t.Joystick7Button16=300]="Joystick7Button16",t[t.Joystick7Button17=301]="Joystick7Button17",t[t.Joystick7Button18=302]="Joystick7Button18",t[t.Joystick7Button19=303]="Joystick7Button19",t[t.Joystick8Button0=304]="Joystick8Button0",t[t.Joystick8Button1=305]="Joystick8Button1",t[t.Joystick8Button2=306]="Joystick8Button2",t[t.Joystick8Button3=307]="Joystick8Button3",t[t.Joystick8Button4=308]="Joystick8Button4",t[t.Joystick8Button5=309]="Joystick8Button5",t[t.Joystick8Button6=310]="Joystick8Button6",t[t.Joystick8Button7=311]="Joystick8Button7",t[t.Joystick8Button8=312]="Joystick8Button8",t[t.Joystick8Button9=313]="Joystick8Button9",t[t.Joystick8Button10=314]="Joystick8Button10",t[t.Joystick8Button11=315]="Joystick8Button11",t[t.Joystick8Button12=316]="Joystick8Button12",t[t.Joystick8Button13=317]="Joystick8Button13",t[t.Joystick8Button14=318]="Joystick8Button14",t[t.Joystick8Button15=319]="Joystick8Button15",t[t.Joystick8Button16=320]="Joystick8Button16",t[t.Joystick8Button17=321]="Joystick8Button17",t[t.Joystick8Button18=322]="Joystick8Button18",t[t.Joystick8Button19=323]="Joystick8Button19"}(o||(o={})),function(t){t[t.UserLayer1=3]="UserLayer1",t[t.UserLayer2=6]="UserLayer2",t[t.UserLayer3=7]="UserLayer3",t[t.UserLayer4=8]="UserLayer4",t[t.UserLayer5=9]="UserLayer5",t[t.UserLayer6=10]="UserLayer6",t[t.UserLayer7=11]="UserLayer7",t[t.UserLayer8=12]="UserLayer8",t[t.UserLayer9=13]="UserLayer9",t[t.UserLayer10=14]="UserLayer10",t[t.UserLayer11=15]="UserLayer11",t[t.UserLayer12=16]="UserLayer12",t[t.NetworkPlayer=17]="NetworkPlayer",t[t.RPMAvatarHead=18]="RPMAvatarHead",t[t.RPMAvatarBody=19]="RPMAvatarBody",t[t.Grabbable=20]="Grabbable",t[t.HandColliders=21]="HandColliders",t[t.Menu=22]="Menu",t[t.PhysicsPlayer=23]="PhysicsPlayer",t[t.BanterInternal1_DONTUSE=24]="BanterInternal1_DONTUSE",t[t.BanterInternal2_DONTUSE=25]="BanterInternal2_DONTUSE",t[t.BanterInternal3_DONTUSE=26]="BanterInternal3_DONTUSE",t[t.BanterInternal4_DONTUSE=27]="BanterInternal4_DONTUSE",t[t.BanterInternal5_DONTUSE=28]="BanterInternal5_DONTUSE",t[t.BanterInternal6_DONTUSE=29]="BanterInternal6_DONTUSE",t[t.BanterInternal7_DONTUSE=30]="BanterInternal7_DONTUSE",t[t.BanterInternal8_DONTUSE=31]="BanterInternal8_DONTUSE"}(a||(a={})),function(t){t[t.hasUnity=0]="hasUnity",t[t.windowsUrl=1]="windowsUrl",t[t.osxUrl=2]="osxUrl",t[t.linuxUrl=3]="linuxUrl",t[t.androidUrl=4]="androidUrl",t[t.iosUrl=5]="iosUrl",t[t.vosUrl=6]="vosUrl",t[t.isScene=7]="isScene",t[t.legacyShaderFix=8]="legacyShaderFix",t[t.uid=9]="uid",t[t.attachmentPosition=10]="attachmentPosition",t[t.attachmentRotation=11]="attachmentRotation",t[t.attachmentType=12]="attachmentType",t[t.avatarAttachmentType=13]="avatarAttachmentType",t[t.avatarAttachmentPoint=14]="avatarAttachmentPoint",t[t.attachmentPoint=15]="attachmentPoint",t[t.autoSync=16]="autoSync",t[t.jointAvatar=17]="jointAvatar",t[t.volume=18]="volume",t[t.pitch=19]="pitch",t[t.mute=20]="mute",t[t.loop=21]="loop",t[t.bypassEffects=22]="bypassEffects",t[t.bypassListenerEffects=23]="bypassListenerEffects",t[t.bypassReverbZones=24]="bypassReverbZones",t[t.playOnAwake=25]="playOnAwake",t[t.spatialBlend=26]="spatialBlend",t[t.smoothing=27]="smoothing",t[t.enableXAxis=28]="enableXAxis",t[t.enableYAxis=29]="enableYAxis",t[t.enableZAxis=30]="enableZAxis",t[t.isTrigger=31]="isTrigger",t[t.center=32]="center",t[t.size=33]="size",t[t.url=34]="url",t[t.mipMaps=35]="mipMaps",t[t.pixelsPerUnit=36]="pixelsPerUnit",t[t.pageWidth=37]="pageWidth",t[t.pageHeight=38]="pageHeight",t[t.actions=39]="actions",t[t.radius=40]="radius",t[t.height=41]="height",t[t.targetPosition=42]="targetPosition",t[t.autoConfigureConnectedAnchor=43]="autoConfigureConnectedAnchor",t[t.xMotion=44]="xMotion",t[t.yMotion=45]="yMotion",t[t.zMotion=46]="zMotion",t[t.geometryType=47]="geometryType",t[t.parametricType=48]="parametricType",t[t.width=49]="width",t[t.depth=50]="depth",t[t.widthSegments=51]="widthSegments",t[t.heightSegments=52]="heightSegments",t[t.depthSegments=53]="depthSegments",t[t.segments=54]="segments",t[t.thetaStart=55]="thetaStart",t[t.thetaLength=56]="thetaLength",t[t.phiStart=57]="phiStart",t[t.phiLength=58]="phiLength",t[t.radialSegments=59]="radialSegments",t[t.openEnded=60]="openEnded",t[t.radiusTop=61]="radiusTop",t[t.radiusBottom=62]="radiusBottom",t[t.innerRadius=63]="innerRadius",t[t.outerRadius=64]="outerRadius",t[t.thetaSegments=65]="thetaSegments",t[t.phiSegments=66]="phiSegments",t[t.tube=67]="tube",t[t.tubularSegments=68]="tubularSegments",t[t.arc=69]="arc",t[t.p=70]="p",t[t.q=71]="q",t[t.stacks=72]="stacks",t[t.slices=73]="slices",t[t.detail=74]="detail",t[t.parametricPoints=75]="parametricPoints",t[t.generateMipMaps=76]="generateMipMaps",t[t.addColliders=77]="addColliders",t[t.nonConvexColliders=78]="nonConvexColliders",t[t.slippery=79]="slippery",t[t.climbable=80]="climbable",t[t.legacyRotate=81]="legacyRotate",t[t.grabType=82]="grabType",t[t.grabRadius=83]="grabRadius",t[t.sensitivity=84]="sensitivity",t[t.fireRate=85]="fireRate",t[t.auto=86]="auto",t[t.blockThumbstick=87]="blockThumbstick",t[t.blockPrimary=88]="blockPrimary",t[t.blockSecondary=89]="blockSecondary",t[t.blockThumbstickClick=90]="blockThumbstickClick",t[t.path=91]="path",t[t.shaderName=92]="shaderName",t[t.texture=93]="texture",t[t.color=94]="color",t[t.side=95]="side",t[t.convex=96]="convex",t[t.renderTextureSize=97]="renderTextureSize",t[t.cameraClear=98]="cameraClear",t[t.backgroundColor=99]="backgroundColor",t[t.dynamicFriction=100]="dynamicFriction",t[t.staticFriction=101]="staticFriction",t[t.instance=102]="instance",t[t.mass=103]="mass",t[t.drag=104]="drag",t[t.angularDrag=105]="angularDrag",t[t.isKinematic=106]="isKinematic",t[t.useGravity=107]="useGravity",t[t.centerOfMass=108]="centerOfMass",t[t.collisionDetectionMode=109]="collisionDetectionMode",t[t.freezePositionX=110]="freezePositionX",t[t.freezePositionY=111]="freezePositionY",t[t.freezePositionZ=112]="freezePositionZ",t[t.freezeRotationX=113]="freezeRotationX",t[t.freezeRotationY=114]="freezeRotationY",t[t.freezeRotationZ=115]="freezeRotationZ",t[t.velocity=116]="velocity",t[t.angularVelocity=117]="angularVelocity",t[t.panoId=118]="panoId",t[t.syncPosition=119]="syncPosition",t[t.syncRotation=120]="syncRotation",t[t.takeOwnershipOnCollision=121]="takeOwnershipOnCollision",t[t.takeOwnershipOnGrab=122]="takeOwnershipOnGrab",t[t.kinematicIfNotOwned=123]="kinematicIfNotOwned",t[t.doIOwn=124]="doIOwn",t[t.text=125]="text",t[t.horizontalAlignment=126]="horizontalAlignment",t[t.verticalAlignment=127]="verticalAlignment",t[t.fontSize=128]="fontSize",t[t.richText=129]="richText",t[t.enableWordWrapping=130]="enableWordWrapping",t[t.rectTransformSizeDelta=131]="rectTransformSizeDelta",t[t.lerpPosition=132]="lerpPosition",t[t.lerpRotation=133]="lerpRotation",t[t.position=134]="position",t[t.localPosition=135]="localPosition",t[t.rotation=136]="rotation",t[t.localRotation=137]="localRotation",t[t.localScale=138]="localScale",t[t.eulerAngles=139]="eulerAngles",t[t.localEulerAngles=140]="localEulerAngles",t[t.up=141]="up",t[t.forward=142]="forward",t[t.right=143]="right",t[t.skipOnDrop=144]="skipOnDrop",t[t.waitForFirstFrame=145]="waitForFirstFrame",t[t.isPlaying=146]="isPlaying",t[t.isLooping=147]="isLooping",t[t.isPrepared=148]="isPrepared",t[t.isMuted=149]="isMuted",t[t.duration=150]="duration",t[t.time=151]="time"}(c||(c={})),function(t){t[t.Locked=0]="Locked",t[t.Limited=1]="Limited",t[t.Free=2]="Free"}(h||(h={})),function(t){t.REQUEST_ID="!i!",t.UPDATE="!u!",t.DOM_READY="!dr!",t.LOAD_FAILED="!lf!",t.ONLOAD="!ol!",t.RELOAD="!r!",t.SCENE_READY="!sr!",t.SCENE_START="!sst!",t.SCENE_SETTINGS="!ss!",t.NOTHING_20S="!no20s!",t.NOTHING="!no!",t.OBJECT_ADDED="!oa!",t.COMPONENT_ADDED="!ca!",t.OBJECT_UPDATE_REQUEST="!our!",t.QUERY_COMPONENTS="!qc!",t.WATCH_PROPERTIES="!wp!",t.SET_PARENT="!sp!",t.COMPONENT_REMOVED="!cr!",t.SET_ACTIVE="!sa!",t.OBJECT_REMOVED="!or!",t.COMPONENT_UPDATED="!cu!",t.INSTANTIATE="!inst!",t.WAIT_FOR_END_OF_FRAME="!weof!",t.CALL_METHOD="!cm!",t.METHOD_RETURN="!mr!",t.RAYCAST="!rc!",t.SET_PUBLIC_SPACE_PROPS="!spsp!",t.SET_PROTECTED_SPACE_PROPS="!sprsp!",t.SET_USER_PROPS="!sup!",t.TELEPORT="!t!",t.ATTACH="!at!",t.DETACH="!dt!",t.LOAD_URL="!lu!",t.TOGGLE_DEV_TOOLS="!tdt!",t.HIDE_DEV_TOOLS="!hdt!",t.ENABLE_LEGACY="!el!",t.SET_LAYER="!sl!",t.OPEN_PAGE="!op!",t.START_TTS="!stts!",t.STOP_TTS="!otts!",t.GRAVITY="!gv!",t.TIME_SCALE="!ts!",t.PLAYER_SPEED="!ps!",t.DEEP_LINK="!dl!",t.ONE_SHOT="!ons!",t.SEND_MENU_BROWSER_MESSAGE="!smbm!",t.INJECT_JS="!ijs!",t.INJECT_JS_CALLBACK="!ijc!",t.YT_INFO="!yti!",t.LOCK_TELEPORT="!lt!",t.LOCK_SPIDERMAN="!ls!",t.EVENT="!e!",t.LOADED="l!",t.UNITY_LOADED="ulo!",t.CLICKED="c!",t.GRABBED="g!",t.RELEASED="r!",t.BUTTON_PRESSED="bp!",t.BUTTON_RELEASED="br!",t.KEY="k!",t.ONE_SHOT_RECIEVED="on!",t.COLLISION_ENTER="ce!",t.COLLISION_EXIT="cx!",t.COLLISION_STAY="cs!",t.TRIGGER_ENTER="te!",t.TRIGGER_EXIT="tx!",t.TRIGGER_STAY="ts!",t.USER_JOINED="uj!",t.USER_LEFT="ul!",t.USER_STATE_CHANGED="upc!",t.SPACE_STATE_CHANGED="spc!",t.AFRAME_TRIGGER="at!",t.MENU_BROWSER_MESSAGE="mbm!",t.BROWSER_MESSAGE="bm!",t.SEND_TRANSCRIPTION="st!",t.BANTER_VERSION="bv!",t.SEND_USER="su!",t.FULL_SPACE_STATE="fss!",t.VOICE_STARTED="vs!",t.PLAY_AVATAR="pa!",t.LEGACY="!le",t.LEGACY_SEND_TO_AFRAME="sta!",t.LEGACY_SET_CHILD_COLOR="scc!",t.LEGACY_LOCK_PLAYER="lp!",t.LEGACY_UNLOCK_PLAYER="up!",t.LEGACY_SIT_PLAYER="sp!",t.LEGACY_UNSIT_PLAYER="usp!",t.LEGACY_GORILLA_PLAYER="gp!",t.LEGACY_UNGORILLA_PLAYER="ugp!",t.LEGACY_ENABLE_CONTROLLER_EXTRAS="ece!",t.LEGACY_ENABLE_QUATERNION_POSE="eqp!",t.LEGACY_SET_VIDEO_URL="svu!",t.LEGACY_SET_REFRESH_RATE="srr!",t.LEGACY_SEND_AFRAME_EVENT="sae!",t.LEGACY_PLAY_AVATAR="lpa!",t.LEGACY_REQUEST_OWNERSHIP="ro!",t.LEGACY_RESET_NETWORK_OBJECT="rno!",t.LEGACY_DO_I_OWN="dio!",t.LEGACY_ATTACH_OBJECT="ao!"}(l||(l={})),function(t){t.PRIMARY="|",t.SECONDARY="~~",t.TERTIARY="~:~",t.REQUEST_ID=":"}(u||(u={}));class p{createDelegate(){this.listeners||(this.listeners=new Map)}On(t,e){this.addEventListener.call(this,t,e)}Off(t,e){this.removeEventListener.call(this,t,e)}addEventListener(t,e){this.createDelegate();var s=this.listeners.get(t);s||(s=new Set,this.listeners.set(t,s)),s.add(e)}dispatchEvent(t){this.createDelegate();var e=this.listeners.get(t.type);if(e)for(const s of e)s(t);return!0}removeEventListener(t,e){this.createDelegate();var s=this.listeners.get(t);s&&(s.delete(e),0===s.size&&this.listeners.delete(t))}removeAllEventListeners(){this.createDelegate(),this.listeners||this.listeners.clear()}}function m(t,e,s){if(t[e])return void(s&&s());const i=(t,e,s)=>{t[e]?s():setTimeout((()=>i(t,e,s)),100)};return s?i(t,e,s):new Promise((s=>i(t,e,s)))}function y(e,s=""){let i="LeftTrigger";switch(e.detail.side){case n.LEFT:switch(e.detail.button){case t.TRIGGER:i="LeftTrigger"+s;break;case t.GRIP:i="LeftGrip"+s;break;case t.PRIMARY:i="LeftPrimary"+s;break;case t.SECONDARY:i="LeftSecondary"+s}break;case n.RIGHT:switch(e.detail.button){case t.TRIGGER:i="RightTrigger"+s;break;case t.GRIP:i="RightGrip"+s;break;case t.PRIMARY:i="RightPrimary"+s;break;case t.SECONDARY:i="RightSecondary"+s}}return i}for(var g,b=[],f=0;f<256;f++)b[f]=(f+256).toString(16).substring(1);function A(){(!g||f+16>4096)&&(4096,g=crypto.getRandomValues(new Uint8Array(4096)),f=0);for(var t,e=0,s="";e<16;e++)t=g[f+e],s+=6==e?b[15&t|64]:8==e?b[63&t|128]:b[t],1&e&&e>1&&e<11&&(s+="-");return f+=16,s}var _=function(t,e,s,i){return new(s||(s=Promise))((function(r,n){function o(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}))};const v=["reqId","linkId","active","parent","oid","type"];class k extends p{constructor(){super(),this.id=A(),this.scene=Pt.GetInstance()}Clone(t){t&&Object.keys(t).filter((t=>!v.includes(t))).forEach((e=>{this[e]=t[e]}))}Q(t){return _(this,void 0,void 0,(function*(){yield this.Async();const e=(new mt).Add(this,t);return this.scene.QueryComponents(e)}))}SetProperties(t){return _(this,void 0,void 0,(function*(){yield this.Async();const e=(new mt).Add(this,t);return this.scene.SetComponents(e)}))}Deserialise(t){}Serialise(t){}WatchProperties(t){const e=new yt;e.id=this.id,e.properties=t,this.scene.WatchProperties(e)}Destroy(t=!1){this.scene.RemoveComponent(this,t)}Async(){return _(this,void 0,void 0,(function*(){return yield this.scene.WaitForUnity(this),this}))}}class S extends k{get windowsUrl(){return this._windowsUrl}set windowsUrl(t){this._windowsUrl=t,this.service.SetComponents((new mt).Add(this,[c.windowsUrl]))}get osxUrl(){return this._osxUrl}set osxUrl(t){this._osxUrl=t,this.service.SetComponents((new mt).Add(this,[c.osxUrl]))}get linuxUrl(){return this._linuxUrl}set linuxUrl(t){this._linuxUrl=t,this.service.SetComponents((new mt).Add(this,[c.linuxUrl]))}get androidUrl(){return this._androidUrl}set androidUrl(t){this._androidUrl=t,this.service.SetComponents((new mt).Add(this,[c.androidUrl]))}get iosUrl(){return this._iosUrl}set iosUrl(t){this._iosUrl=t,this.service.SetComponents((new mt).Add(this,[c.iosUrl]))}get vosUrl(){return this._vosUrl}set vosUrl(t){this._vosUrl=t,this.service.SetComponents((new mt).Add(this,[c.vosUrl]))}get isScene(){return this._isScene}set isScene(t){this._isScene=t,this.service.SetComponents((new mt).Add(this,[c.isScene]))}get legacyShaderFix(){return this._legacyShaderFix}set legacyShaderFix(t){this._legacyShaderFix=t,this.service.SetComponents((new mt).Add(this,[c.legacyShaderFix]))}constructor(t=new String,s=new String,i=new String,r=new String,n=new String,o=new String,a=!1,c=!1){super(),this.service=Pt.GetInstance(),this.type=e.BanterAssetBundle,this._windowsUrl=t,this._osxUrl=s,this._linuxUrl=i,this._androidUrl=r,this._iosUrl=n,this._vosUrl=o,this._isScene=a,this._legacyShaderFix=c}Serialise(t){const e=[];for(let s=0;s{t.parent&&this.scene.objects[t.parent]?t.path=this.scene.objects[t.parent].path+"/"+t.name:t.path=t.name}))}Traverse(t,e=!1){t(this);const s=Object.keys(this.scene.objects);if(e&&this.parent&&this.scene.objects[this.parent])this.scene.objects[this.parent].Traverse(t,!0);else for(let e=0;e{e.id==t.id&&(s=!0)})),s)throw new Error("Cannot set parent from a child object");return this.scene.SetParent(this,t,e)}))}AddComponent(t){return ot(this,void 0,void 0,(function*(){return this.scene.AddComponent(this,t)}))}Async(){return ot(this,void 0,void 0,(function*(){return yield this.scene.WaitForUnity(this),this}))}}function ct(t){return ot(this,void 0,void 0,(function*(){return new at(t).Async()}))}class ht extends p{constructor(){super(),this.props={},this.scene=Pt.GetInstance()}Attach(t,e){return s=this,i=void 0,n=function*(){},new((r=void 0)||(r=Promise))((function(t,e){function o(t){try{c(n.next(t))}catch(t){e(t)}}function a(t){try{c(n.throw(t))}catch(t){e(t)}}function c(e){var s;e.done?t(e.value):(s=e.value,s instanceof r?s:new r((function(t){t(s)}))).then(o,a)}c((n=n.apply(s,i||[])).next())}));var s,i,r,n}}function lt(t){const e=Pt.GetInstance();switch(t.type){case"AvatarPlaybackCompleted":{const s=e.objects[t.id];s&&s.meta&&s.meta.el?s.meta.el.emit("avatar-playback-complete",t,!1):s.dispatchEvent(new CustomEvent("avatar-playback-complete",{detail:t}))}break;case"UserPose":window.userpose=t.pose,window.userPoseCallback&&window.userPoseCallback(t.pose),window.legacyPoseEnabled&&e.dispatchEvent(new CustomEvent("legacy-user-pose",{detail:t.pose}));break;case"VideoPrepareComplete":const s=e.objects[t.id];s&&s.meta&&s.meta.el?s.meta.el.emit("video-prepare-complete",t,!1):s.dispatchEvent(new CustomEvent("video-prepare-complete",{detail:t}));break;case"DoIOwn":window.doIOwnCallback&&window.doIOwnCallback(t.objectId,t.owned);break;default:console.log("Unknown message: "),console.log(t)}}class ut{constructor(t){this.totalCount=0,this.firstStartStamp=0,this.lastStamp=0,this.lastCount=0,this.started=!1,this.name=t,this.startTime=0}dumpLog(t){const e=t-this.lastStamp,s=`Counter ${this.name}: ${this.lastCount} in ${e.toFixed(2)} (${(this.lastCount/e).toFixed(2)}/sec), ${this.totalCount} total`;this.lastCount=0,this.lastStamp=t,console.log(s)}add(t=1){try{this.totalCount+=t,this.lastCount+=t,this.started||(this.started=!0,this.startTime=performance.now(),this.firstStartStamp=0,this.lastStamp=0);const e=(performance.now()-this.startTime)/1e3;e-this.lastStamp>=ut.LOG_INTERVAL_SEC&&this.dumpLog(e)}catch(t){throw console.error("Exception",t),t}}}ut.LOG_INTERVAL_SEC=1;class dt{constructor(t){this.emitCounter=new ut("ApiWrapper: Web -> Unity"),this.onCounter=new ut("ApiWrapper: Unity -> Web"),this.api=t}emit(t){this.api.emit(t)}on(t){this.api.on((e=>{t(e)}))}}var pt=function(t,e,s,i){return new(s||(s=Promise))((function(r,n){function o(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}))};class mt{constructor(){this.components={}}Add(t,e){return this.components[t.id]={comp:t,props:e},this}}class yt{constructor(){this.properties=[]}}class gt{constructor(){this.EnableDevTools=!0,this.EnableTeleport=!0,this.EnableForceGrab=!1,this.EnableSpiderMan=!1,this.EnablePortals=!0,this.EnableGuests=!0,this.EnableQuaternionPose=!1,this.EnableControllerExtras=!1,this.EnableFriendPositionJoin=!0,this.EnableDefaultTextures=!0,this.EnableAvatars=!0,this.MaxOccupancy=20,this.RefreshRate=72,this.ClippingPlane=new E(.02,1500),this.SpawnPoint=new R}Serialize(){return Object.keys(this).map((t=>{if(this[t].Serialize)return t+u.SECONDARY+this[t].Serialize();switch(t){case"MaxOccupancy":case"RefreshRate":return t+u.SECONDARY+this[t];default:return t+u.SECONDARY+(this[t]?1:0)}})).join(u.PRIMARY)}Deserialize(t){t.split(u.PRIMARY).map((t=>t.split(u.SECONDARY))).forEach((t=>{const e=t[0];if(this[e].Deserialize)this[e].Deserialize(t[1]);else switch(e){case"RefreshRate":case"MaxOccupancy":this[e]=Number(t[1]);default:this[e]="1"==t[1]}}))}}const bt={},ft={},At=new class{constructor(){this._updates=[],this._api=new dt(window._api),this._interval=setInterval((()=>this.tick()),11)}emit(t){this._updates.push(t)}tick(){this._updates.length>0&&(this._api.emit(u.PRIMARY+u.SECONDARY+u.TERTIARY+Array.from(this._updates).join(u.PRIMARY+u.SECONDARY+u.TERTIARY)),this._updates=[])}on(t){this._api.on(t)}},_t={};let vt,kt,St,wt=0;var Et=t=>{kt||At.emit(t)};setTimeout((()=>Et(l.NOTHING_20S)),3e4),setTimeout((()=>Et(l.NOTHING)),26e4);let Ct=new class extends p{};function Rt(t,e,s=!1){return pt(this,void 0,void 0,(function*(){const i=yield new at("AssetBundleLoader").Async(),r=location.protocol+"//"+location.host;return console.log("Loading asset bundle from HTML: ",e||r+"/windows.banter",t||r+"/android.banter"),yield i.AddComponent(new S(e||r+"/windows.banter",null,null,t||r+"/android.banter",null,null,!0,s)),i}))}new class{constructor(){document.addEventListener("DOMContentLoaded",(()=>{this.html=document.querySelector("html"),this.hasAndroid=this.html.hasAttribute("android-bundle"),this.hasWindows=this.html.hasAttribute("windows-bundle"),this.setup()}))}setup(){return t=this,e=void 0,i=function*(){(this.hasAndroid||this.hasWindows)&&Rt(this.html.getAttribute("android-bundle"),this.html.getAttribute("windows-bundle"))},new((s=void 0)||(s=Promise))((function(r,n){function o(t){try{c(i.next(t))}catch(t){n(t)}}function a(t){try{c(i.throw(t))}catch(t){n(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof s?e:new s((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}));var t,e,s,i}};class Pt extends p{constructor(){super(),this.objects={},this.components={},this.users={},this.spaceState={public:{},protected:{}},At.emit(l.SCENE_START),this.FireUnityLoaded(),At.on((t=>this.ParseMessage(t)))}FireUnityLoaded(){return pt(this,void 0,void 0,(function*(){yield this.WaitForUnityLoaded(),yield this.WaitForEndOfFrame(),this.dispatchEvent(new CustomEvent(nt.UNITY_LOADED))}))}SetLoadPromise(t){return pt(this,void 0,void 0,(function*(){St?console.warn("Load promise already set."):(St=t,yield St,this.SetSceneLoaded())}))}SetSettings(t){return pt(this,void 0,void 0,(function*(){yield this.Send(l.SCENE_SETTINGS,t.Serialize())}))}SetSceneLoaded(){kt=!0,console.log("Banter Scene Loaded."),At.emit(l.SCENE_READY),this.dispatchEvent(new CustomEvent(nt.LOADED))}DebounceLoad(){kt||St||(clearTimeout(vt),vt=setTimeout((()=>{this.SetSceneLoaded()}),500))}Find(t){return pt(this,void 0,void 0,(function*(){const e=Object.values(this.objects);for(let s=0;st+u.TERTIARY+e[t])).join(u.SECONDARY)+(s?u.PRIMARY+s:""))}WaitForEndOfFrame(){return pt(this,void 0,void 0,(function*(){yield this.Send(l.WAIT_FOR_END_OF_FRAME,"")}))}Instantiate(t){return pt(this,void 0,void 0,(function*(){yield t.Async();const e=t.active;e||(yield t.SetActive(!0));const s=yield this.Send(l.INSTANTIATE,t.id);return e||t.SetActive(!1),yield this.WaitForEndOfFrame(),this.objects[s.split(u.PRIMARY)[1]]}))}SetLayer(t,e){return pt(this,void 0,void 0,(function*(){yield t.Async(),yield this.Send(l.SET_LAYER,t.id+u.PRIMARY+e)}))}SetActive(t,e){return pt(this,void 0,void 0,(function*(){yield this.WaitForUnityLoaded(),yield this.Send(l.SET_ACTIVE,t.id+u.PRIMARY+(e?1:0)),t.active=e}))}AddObject(t,e=!1){return pt(this,void 0,void 0,(function*(){this.DebounceLoad(),e?(ft[t.id]=t,yield this.Send(l.OBJECT_ADDED,t.id+u.PRIMARY+(t.active?1:0)+u.PRIMARY+t.name)):this.objects[t.id]?Object.assign(this.objects[t.id],t):this.objects[t.id]=t}))}Raycast(t,e,s=1e3,i=-1){return this.Send(l.RAYCAST,t.x+u.PRIMARY+t.y+u.PRIMARY+t.z+u.PRIMARY+e.x+u.PRIMARY+e.y+u.PRIMARY+e.z+u.PRIMARY+s+u.PRIMARY+i)}OneShot(t,e=!0){return pt(this,void 0,void 0,(function*(){yield this.Send(l.ONE_SHOT,(e?"1":"0")+u.PRIMARY+t)}))}CallMethod(t,e,s){return pt(this,void 0,void 0,(function*(){yield t.Async(),yield this.Send(l.CALL_METHOD,t.id+u.PRIMARY+e+u.PRIMARY+s.join(u.SECONDARY))}))}AddComponent(t,e){return pt(this,void 0,void 0,(function*(){yield t.Async(),e.gameObject=t,e.oid=t.id,bt[e.id]=e;const s=e.Serialise(Object.keys(c).filter((t=>!isNaN(Number(t)))).map((t=>parseInt(t))));return yield this.Send(l.COMPONENT_ADDED,t.id+u.PRIMARY+e.id+u.PRIMARY+e.type+u.PRIMARY+s),e}))}RemoveComponent(t,e=!1){return pt(this,void 0,void 0,(function*(){t.removeAllEventListeners(),delete t.gameObject.components[t.id],delete this.components[t.id],e||(yield this.Send(l.COMPONENT_REMOVED,t.id))}))}RemoveObject(t,e=!1){return pt(this,void 0,void 0,(function*(){this.objects[t.id]&&(this.objects[t.id].removeAllEventListeners(),Object.keys(this.objects[t.id].components).forEach((t=>{this.components[t].Destroy(e)})),delete this.objects[t.id]),e||(yield this.Send(l.OBJECT_REMOVED,t.id))}))}Send(t,e){return pt(this,void 0,void 0,(function*(){return new Promise((s=>{wt>9999&&(wt=0);const i=l.REQUEST_ID+u.REQUEST_ID+ ++wt;_t[wt]=s,At.emit(i+u.PRIMARY+t+u.PRIMARY+e)}))}))}EnableLegacy(){At.emit(l.ENABLE_LEGACY)}WaitForUnity(t){return pt(this,void 0,void 0,(function*(){if(!t.hasUnity)return new Promise((e=>{t.addEventListener(nt.UNITY_LINKED,(t=>{e()}))}))}))}QueryComponents(t){return pt(this,void 0,void 0,(function*(){const e=Object.values(t.components),s=e.map((t=>t.comp.id+u.SECONDARY+t.props.join(u.TERTIARY)));return yield this.Send(l.QUERY_COMPONENTS,s.join(u.PRIMARY)),e.map((t=>t.comp))}))}WatchProperties(t){return pt(this,void 0,void 0,(function*(){this.components[t.id]&&(yield this.Send(l.WATCH_PROPERTIES,t.id+u.PRIMARY+t.properties.join(u.SECONDARY)))}))}SetComponents(t,e=!1){return pt(this,void 0,void 0,(function*(){const s=Object.values(t.components);yield Promise.all(s.map((t=>t.comp.Async())));const i=s.map((t=>t.comp.oid+u.PRIMARY+t.comp.id+u.PRIMARY+t.comp.Serialise(t.props))),r=(e?1:0)+u.TERTIARY+i.join(u.TERTIARY);return e?yield this.Send(l.COMPONENT_UPDATED,r):At.emit(l.REQUEST_ID+u.REQUEST_ID+1e4+u.PRIMARY+l.COMPONENT_UPDATED+u.PRIMARY+r),s.map((t=>t.comp))}))}WaitForUnityLoaded(){return pt(this,void 0,void 0,(function*(){yield m(this,"unityLoaded")}))}ProcessUpdates(t){var e={};t.forEach((t=>{const s=t.split(u.PRIMARY),i=Number(s[0]);this.objects[i]||this.AddUnexpectedObject(i);const r=Number(s[1]),n=Number(s[2]);if(r){if(!this.components[r]){const t=rt(n);this.components[r]=new t,this.components[r].gameObject=this.objects[i],this.components[r].oid=i,this.components[r].id=r,this.components[r].hasUnity=!0,this.objects[i].components[r]=this.components[r],this.components[r].Deserialise(s[3])}this.components[r].Deserialise(s[3]),e[i]=e[i]||{cids:[]},e[i].cids.includes(r)||e[i].cids.push(r)}}));var s=Object.keys(e);for(let t=0;tthis.ParseMessage(t)));break;case t.startsWith(l.UPDATE):this.ProcessUpdates(t.substring(l.UPDATE.length).split(u.TERTIARY));break;case t.startsWith(l.EVENT):this.ProcessEvent(t)}}}ProcessEvent(t){var e,s;const i=t.substring(l.EVENT.length,t.indexOf(u.PRIMARY,l.EVENT.length)),r=t.substring(t.indexOf(u.PRIMARY,l.EVENT.length)+1).split(u.SECONDARY);switch(i){case l.SEND_TRANSCRIPTION:{const t=r[0],e=r[1];this.dispatchEvent(new CustomEvent("transcription",{detail:{message:e,id:t}}))}break;case l.CLICKED:if(this.objects[r[0]]){const t=this.objects[r[0]],e=new C(Number(r[1]),Number(r[2]),Number(r[3])),s=new C(Number(r[4]),Number(r[5]),Number(r[6]));t.dispatchEvent(new CustomEvent("click",{detail:{point:e,normal:s}}))}break;case l.GRABBED:if(this.objects[r[0]]){const t=this.objects[r[0]],e=new C(Number(r[1]),Number(r[2]),Number(r[3])),s=new C(Number(r[4]),Number(r[5]),Number(r[6])),i=Number(r[7]);t.dispatchEvent(new CustomEvent("grab",{detail:{point:e,normal:s,side:i}}))}break;case l.RELEASED:if(this.objects[r[0]]){const t=this.objects[r[0]],e=Number(r[1]);t.dispatchEvent(new CustomEvent("drop",{detail:{side:e}}))}break;case l.BUTTON_PRESSED:case l.BUTTON_RELEASED:const t=Number(r[0]),n=Number(r[1]);this.dispatchEvent(new CustomEvent(i===l.BUTTON_PRESSED?"button-pressed":"button-released",{detail:{button:t,side:n}}));break;case l.LOADED:const o=r[0];this.components[o]&&this.components[o].dispatchEvent(new CustomEvent(nt.LOADED));break;case l.MENU_BROWSER_MESSAGE:this.dispatchEvent(new CustomEvent("menu-browser-message",{detail:r[0]}));break;case l.USER_LEFT:case l.USER_JOINED:const a=i===l.USER_JOINED,c=r[0],h=r[1],d="1"==r[2],p=r[3],m=r[4];a&&!this.users[c]?(this.users[c]=new ht,this.users[c].id=p,this.users[c].uid=c,this.users[c].color=m,this.users[c].isLocal=d,this.users[c].name=h,d&&(this.localUser=this.users[c]),console.warn("user joined: ",this.users[c]),this.dispatchEvent(new CustomEvent("user-joined",{detail:this.users[c]}))):a&&this.users[c]?(console.warn("got user-joined event for user that already joined: ",this.users[c]),this.users[c].id=p,this.users[c].uid=c,this.users[c].color=m,this.users[c].isLocal=d,this.users[c].name=h,d&&(this.localUser=this.users[c])):!a&&this.users[c]&&(console.warn("user left: ",this.users[c]),this.dispatchEvent(new CustomEvent("user-left",{detail:this.users[c]})),delete this.users[c]);break;case l.FULL_SPACE_STATE:let y=JSON.parse(r[0]);const g=(null===(e=this.spaceState)||void 0===e?void 0:e.protected)||{},b=(null===(s=this.spaceState)||void 0===s?void 0:s.public)||{};this.spaceState={public:{},protected:{}},this.spaceState.public=(null==y?void 0:y.public)||{},this.spaceState.protected=(null==y?void 0:y.protected)||{};const f=[],A=Object.keys(this.spaceState.protected),_=Object.keys(g),v=Object.keys(this.spaceState.public),k=Object.keys(b);v.filter((t=>!k.includes(t))).forEach((t=>{f.push({type:"public",property:t,oldValue:null,newValue:this.spaceState.public[t]})})),k.filter((t=>!v.includes(t))).forEach((t=>{f.push({type:"public",property:t,oldValue:b[t],newValue:null})})),v.filter((t=>k.includes(t))).forEach((t=>{f.push({type:"public",property:t,oldValue:b[t],newValue:this.spaceState.public[t]})})),A.filter((t=>!_.includes(t))).forEach((t=>{f.push({type:"protected",property:t,oldValue:null,newValue:this.spaceState.protected[t]})})),_.filter((t=>!A.includes(t))).forEach((t=>{f.push({type:"protected",property:t,oldValue:g[t],newValue:null})})),A.filter((t=>_.includes(t))).forEach((t=>{f.push({type:"protected",property:t,oldValue:g[t],newValue:this.spaceState.protected[t]})})),f.length&&this.dispatchEvent(new CustomEvent("space-state-changed",{detail:{changes:f}}));break;case l.SPACE_STATE_CHANGED:const S=r[0],w=r[1],E=r[2],R="1"==r[3];R?this.spaceState.public[S]=w:this.spaceState.protected[S]=w,this.dispatchEvent(new CustomEvent("space-state-changed",{detail:{changes:[{property:S,newValue:w,oldValue:E,isPublic:R}]}}));break;case l.BANTER_VERSION:{const t=r[0],e=r[1],s=r[2],i=r[3];window.VERSION_NAME||(console.log("Banter Version:",e,"("+t+"), Space Instance: "+i),console.log("Unity Version:",s)),window.VERSION_NAME=e,window.VERSION_CODE=t,window.UNITY_VERSION=s,window.SPACE_INSTANCE=i}break;case l.BROWSER_MESSAGE:const P=this.objects[r[0]];P&&P.dispatchEvent(new CustomEvent("browser-message",{detail:r[1]}));break;case l.USER_STATE_CHANGED:{const t=r.shift();if(!this.users[t])return void console.log("got user-state-changed event for user that doesn't exist?",t);const e=this.users[t],s=r.map((t=>{const e=t.split(u.TERTIARY);return{key:e[0],newValue:e[1],oldValue:null}}));Object.keys(e.props).forEach((t=>{s.forEach((s=>{s.key===t&&(e.props[t]=s.newValue)}))})),e.dispatchEvent(new CustomEvent("state-changed",{detail:{id:p,changes:s}})),this.dispatchEvent(new CustomEvent("user-state-changed",{detail:{user:e,changes:s}}))}break;case l.ONE_SHOT_RECIEVED:{const t=r[0],e="1"==r[1],s=r[2];this.dispatchEvent(new CustomEvent("one-shot",{detail:{fromId:t,fromAdmin:e,data:s}}))}break;case l.AFRAME_TRIGGER:const T=r[0];this.dispatchEvent(new CustomEvent("aframe-trigger",{detail:{data:T}}));break;case l.KEY:const B=Number(r[0]);this.dispatchEvent(new CustomEvent("key-press",{detail:{key:B}}));break;case l.UNITY_LOADED:console.log("Unity Scene Loaded."),this.unityLoaded=!0;break;case l.VOICE_STARTED:this.dispatchEvent(new CustomEvent("voice-started",{detail:{}}));break;case l.COLLISION_ENTER:if(this.objects[r[0]]){const t=this.objects[r[0]],e=this.objects[r[1]]||r[1],s=new C(Number(r[2]),Number(r[3]),Number(r[4])),i=new C(Number(r[5]),Number(r[6]),Number(r[7])),n=r[8],o=r[9],a=r[10];let c;a&&this.users[a]&&(c=this.users[a],this.users[a].dispatchEvent(new CustomEvent("collision-enter",{detail:{name:o,tag:n,collider:e,point:s,normal:i,object:t}}))),t.dispatchEvent(new CustomEvent("collision-enter",{detail:{name:o,tag:n,collider:e,point:s,normal:i,user:c}}))}break;case l.COLLISION_EXIT:case l.TRIGGER_EXIT:case l.TRIGGER_ENTER:const O=i===l.COLLISION_EXIT?"collision-exit":i===l.TRIGGER_ENTER?"trigger-enter":"trigger-exit";if(this.objects[r[0]]){const t=this.objects[r[0]],e=this.objects[r[1]]||r[1],s=r[2],i=r[3],n=r[4];let o;n&&this.users[n]&&(o=this.users[n],this.users[n].dispatchEvent(new CustomEvent(O,{detail:{name:i,tag:s,collider:e,object:t}}))),t.dispatchEvent(new CustomEvent(O,{detail:{name:i,tag:s,collider:e,user:o}}))}}}SetComponent(t,e,s){this.components[t].type=e,this.components[t].id=t,this.components[t].oid=s,this.components[t].hasUnity=!0}SetObject(t,e,s,i,r){this.objects[t].name=e,this.objects[t].active=s,this.objects[t].parent=i,this.objects[t].layer=r,this.objects[t].hasUnity=!0,this.objects[t].UpdatePath()}SetParent(t,e,s=!0){return pt(this,void 0,void 0,(function*(){return this.Send(l.SET_PARENT,e.id+u.PRIMARY+t.id+u.PRIMARY+(s?1:0))}))}UpdateObject(t){return this.Send(l.OBJECT_UPDATE_REQUEST,t)}static GetInstance(){return Pt.instance||(Pt.instance=new Pt),Pt.instance.DebounceLoad(),Pt.instance}static getInstance(){return console.warn("BS.BanterScene.getInstance is deprecated, use BS.BanterScene.GetInstance instead..."),this.GetInstance()}LegacyAttachObject(t,e,s){return pt(this,void 0,void 0,(function*(){yield t.Async(),At.emit(l.LEGACY+l.LEGACY_ATTACH_OBJECT+u.PRIMARY+t.id+u.PRIMARY+e+u.PRIMARY+s)}))}LegacySetChildColor(t,e,s){return pt(this,void 0,void 0,(function*(){yield t.Async(),At.emit(l.LEGACY+l.LEGACY_SET_CHILD_COLOR+u.PRIMARY+t.id+u.PRIMARY+e.x+u.PRIMARY+e.y+u.PRIMARY+e.z+u.PRIMARY+s)}))}LegacyLockPlayer(){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_LOCK_PLAYER+u.PRIMARY)}))}LegacyUnlockPlayer(){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_UNLOCK_PLAYER+u.PRIMARY)}))}LegacySetRefreshRate(t){At.emit(l.LEGACY+l.LEGACY_SET_REFRESH_RATE+u.PRIMARY+t)}LegacySitPlayer(t){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_SIT_PLAYER+u.PRIMARY+t.id)}))}LegacyUnsitPlayer(){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_UNSIT_PLAYER+u.PRIMARY)}))}LegacyGorillaPlayer(){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_GORILLA_PLAYER+u.PRIMARY)}))}LegacyUngorillaPlayer(){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_UNGORILLA_PLAYER+u.PRIMARY)}))}LegacyEnableControllerExtras(){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_ENABLE_CONTROLLER_EXTRAS+u.PRIMARY)}))}LegacyEnableQuaternionPose(){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_ENABLE_QUATERNION_POSE+u.PRIMARY)}))}LegacySetVideoUrl(t,e){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_SET_VIDEO_URL+u.PRIMARY+t.id+u.PRIMARY+e)}))}LegacySendAframeEvent(t,e,s){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_SEND_AFRAME_EVENT+u.PRIMARY+t+u.PRIMARY+(e?"1":"0")+u.PRIMARY+(s||""))}))}PlayAvatar(t,e,s,i){return pt(this,void 0,void 0,(function*(){yield t.Async(),At.emit(l.LEGACY+l.PLAY_AVATAR+u.PRIMARY+t.id+u.PRIMARY+e+u.PRIMARY+s+u.PRIMARY+i)}))}LegacyPlayAvatar(t,e,s,i){return pt(this,void 0,void 0,(function*(){yield t.Async(),At.emit(l.LEGACY+l.LEGACY_PLAY_AVATAR+u.PRIMARY+t.id+u.PRIMARY+e+u.PRIMARY+s+u.PRIMARY+i)}))}LegacyRequestOwnership(t){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_REQUEST_OWNERSHIP+u.PRIMARY+t)}))}LegacyDoIOwn(t){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_DO_I_OWN+u.PRIMARY+t)}))}LegacyResetNetworkObject(t){return pt(this,void 0,void 0,(function*(){At.emit(l.LEGACY+l.LEGACY_RESET_NETWORK_OBJECT+u.PRIMARY+t)}))}}s(72);const Tt={};var Bt=s(217),Ot=Bt.isValidDefaultValue,Mt=Bt.propertyTypes,Nt=console.warn.bind(console);function xt(t){return"type"in t?"string"==typeof t.type:"default"in t}const It=function(t,e){var s;if(xt(t))return Lt(t,e);for(s in t)t[s]=Lt(t[s],e);return t};function Lt(t,e){var s,i,r=t.default,n=t.type;return t.type?"bool"===t.type?n="boolean":"float"===t.type&&(n="number"):n=void 0===r||"boolean"!=typeof r&&"number"!=typeof r?Array.isArray(r)?"array":"string":typeof r,(i=Mt[n])||Nt("Unknown property type for component `"+e+"`: "+n),s=!!t.parse,t.parse=t.parse||i.parse,t.stringify=t.stringify||i.stringify,t.type=n,"default"in t?s||Ot(n,r)||Nt("Default value `"+r+"` does not match type `"+n+"` in component `"+e+"`"):t.default=i.default,t}const Dt=(Jt=[],function(t,e,s=!0,i=null,r=!0){var n,o,a,c;for(o in Jt.length=0,s?t:e)s&&void 0===t[o]||Jt.push(o);if(null===t||"object"!=typeof t)return t;for(o in t)try{void 0===t[o]||e[o]||r||Nt("Unknown property `"+o+"` for component/system `"+i+"`.")}catch(e){console.log(i,o,t[o])}for(n=0;n",quot:'"',amp:"&",apos:"'"},zt=/-([a-z])/g;const Gt=function(t,e){var s;return"string"!=typeof t?t:(s=function(t,e){var s,i,r,n,o,a;for(e=e||{},s=Zt(t),i=0;i-1}function re(t,e){return t.apply(null,e)}var ne={arr:function(t){return Array.isArray(t)},obj:function(t){return ie(Object.prototype.toString.call(t),"Object")},pth:function(t){return ne.obj(t)&&t.hasOwnProperty("totalLength")},svg:function(t){return t instanceof SVGElement},inp:function(t){return t instanceof HTMLInputElement},dom:function(t){return t.nodeType||ne.svg(t)},str:function(t){return"string"==typeof t},fnc:function(t){return"function"==typeof t},und:function(t){return void 0===t},nil:function(t){return ne.und(t)||null===t},hex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},rgb:function(t){return/^rgb/.test(t)},hsl:function(t){return/^hsl/.test(t)},col:function(t){return ne.hex(t)||ne.rgb(t)||ne.hsl(t)},key:function(t){return!Qt.hasOwnProperty(t)&&!$t.hasOwnProperty(t)&&"targets"!==t&&"keyframes"!==t}};function oe(t){var e=/\(([^)]+)\)/.exec(t);return e?e[1].split(",").map((function(t){return parseFloat(t)})):[]}function ae(t,e){var s=oe(t),i=se(ne.und(s[0])?1:s[0],.1,100),r=se(ne.und(s[1])?100:s[1],.1,100),n=se(ne.und(s[2])?10:s[2],.1,100),o=se(ne.und(s[3])?0:s[3],.1,100),a=Math.sqrt(r/i),c=n/(2*Math.sqrt(r*i)),h=c<1?a*Math.sqrt(1-c*c):0,l=c<1?(c*a-o)/h:-o+a;function u(t){var s=e?e*t/1e3:t;return s=c<1?Math.exp(-s*c*a)*(1*Math.cos(h*s)+l*Math.sin(h*s)):(1+l*s)*Math.exp(-s*a),0===t||1===t?t:1-s}return e?u:function(){var e=ee.springs[t];if(e)return e;for(var s=1/6,i=0,r=0;;)if(1===u(i+=s)){if(++r>=16)break}else r=0;var n=i*s*1e3;return ee.springs[t]=n,n}}function ce(t){return void 0===t&&(t=10),function(e){return Math.ceil(se(e,1e-6,1)*t)*(1/t)}}var he,le,ue=function(){var t=.1;function e(t,e){return 1-3*e+3*t}function s(t,e){return 3*e-6*t}function i(t){return 3*t}function r(t,r,n){return((e(r,n)*t+s(r,n))*t+i(r))*t}function n(t,r,n){return 3*e(r,n)*t*t+2*s(r,n)*t+i(r)}return function(e,s,i,o){if(0<=e&&e<=1&&0<=i&&i<=1){var a=new Float32Array(11);if(e!==s||i!==o)for(var c=0;c<11;++c)a[c]=r(c*t,e,i);return function(c){return e===s&&i===o||0===c||1===c?c:r(function(s){for(var o=0,c=1;10!==c&&a[c]<=s;++c)o+=t;--c;var h=o+(s-a[c])/(a[c+1]-a[c])*t,l=n(h,e,i);return l>=.001?function(t,e,s,i){for(var o=0;o<4;++o){var a=n(e,s,i);if(0===a)return e;e-=(r(e,s,i)-t)/a}return e}(s,h,e,i):0===l?h:function(t,e,s,i,n){var o,a,c=0;do{(o=r(a=e+(s-e)/2,i,n)-t)>0?s=a:e=a}while(Math.abs(o)>1e-7&&++c<10);return a}(s,o,o+t,e,i)}(c),s,o)}}}}(),de=(he={linear:function(){return function(t){return t}}},le={Sine:function(){return function(t){return 1-Math.cos(t*Math.PI/2)}},Expo:function(){return function(t){return t?Math.pow(2,10*t-10):0}},Circ:function(){return function(t){return 1-Math.sqrt(1-t*t)}},Back:function(){return function(t){return t*t*(3*t-2)}},Bounce:function(){return function(t){for(var e,s=4;t<((e=Math.pow(2,--s))-1)/11;);return 1/Math.pow(4,3-s)-7.5625*Math.pow((3*e-2)/22-t,2)}},Elastic:function(t,e){void 0===t&&(t=1),void 0===e&&(e=.5);var s=se(t,1,10),i=se(e,.1,2);return function(t){return 0===t||1===t?t:-s*Math.pow(2,10*(t-1))*Math.sin((t-1-i/(2*Math.PI)*Math.asin(1/s))*(2*Math.PI)/i)}}},["Quad","Cubic","Quart","Quint"].forEach((function(t,e){le[t]=function(){return function(t){return Math.pow(t,e+2)}}})),Object.keys(le).forEach((function(t){var e=le[t];he["easeIn"+t]=e,he["easeOut"+t]=function(t,s){return function(i){return 1-e(t,s)(1-i)}},he["easeInOut"+t]=function(t,s){return function(i){return i<.5?e(t,s)(2*i)/2:1-e(t,s)(-2*i+2)/2}},he["easeOutIn"+t]=function(t,s){return function(i){return i<.5?(1-e(t,s)(1-2*i))/2:(e(t,s)(2*i-1)+1)/2}}})),he);function pe(t,e){if(ne.fnc(t))return t;var s=t.split("(")[0],i=de[s],r=oe(t);switch(s){case"spring":return ae(t,e);case"cubicBezier":return re(ue,r);case"steps":return re(ce,r);default:return re(i,r)}}function me(t){try{return document.querySelectorAll(t)}catch(t){return}}function ye(t,e){for(var s=t.length,i=arguments.length>=2?arguments[1]:void 0,r=[],n=0;n1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t}if(0==o)e=s=i=a;else{var l=a<.5?a*(1+o):a+o-a*o,u=2*a-l;e=h(u,l,n+1/3),s=h(u,l,n),i=h(u,l,n-1/3)}return"rgba("+255*e+","+255*s+","+255*i+","+c+")"}(t):void 0;var e,s}(t);if(/\s/g.test(t))return t;var s=ke(t),i=s?t.substr(0,t.length-s.length):t;return e?i+e:i}function Me(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ne(t){for(var e,s=t.points,i=0,r=0;r0&&(i+=Me(e,n)),e=n}return i}function xe(t){if(t.getTotalLength)return t.getTotalLength();switch(t.tagName.toLowerCase()){case"circle":return function(t){return 2*Math.PI*we(t,"r")}(t);case"rect":return function(t){return 2*we(t,"width")+2*we(t,"height")}(t);case"line":return function(t){return Me({x:we(t,"x1"),y:we(t,"y1")},{x:we(t,"x2"),y:we(t,"y2")})}(t);case"polyline":return Ne(t);case"polygon":return function(t){var e=t.points;return Ne(t)+Me(e.getItem(e.numberOfItems-1),e.getItem(0))}(t)}}function Ie(t,e){var s=e||{},i=s.el||function(t){for(var e=t.parentNode;ne.svg(e)&&ne.svg(e.parentNode);)e=e.parentNode;return e}(t),r=i.getBoundingClientRect(),n=we(i,"viewBox"),o=r.width,a=r.height,c=s.viewBox||(n?n.split(" "):[0,0,o,a]);return{el:i,viewBox:c,x:c[0]/1,y:c[1]/1,w:o,h:a,vW:c[2],vH:c[3]}}function Le(t,e,s){function i(s){void 0===s&&(s=0);var i=e+s>=1?e+s:0;return t.el.getPointAtLength(i)}var r=Ie(t.el,t.svg),n=i(),o=i(-1),a=i(1),c=s?1:r.w/r.vW,h=s?1:r.h/r.vH;switch(t.property){case"x":return(n.x-r.x)*c;case"y":return(n.y-r.y)*h;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function De(t,e){var s=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,i=Oe(ne.pth(t)?t.totalLength:t,e)+"";return{original:i,numbers:i.match(s)?i.match(s).map(Number):[0],strings:ne.str(t)||e?i.split(s):[]}}function Je(t){return ye(t?ge(ne.arr(t)?t.map(be):be(t)):[],(function(t,e,s){return s.indexOf(t)===e}))}function Ye(t){var e=Je(t);return e.map((function(t,s){return{target:t,id:s,total:e.length,transforms:{list:Pe(t)}}}))}function je(t,e){var s=Ae(e);if(/^spring/.test(s.easing)&&(s.duration=ae(s.easing)),ne.arr(t)){var i=t.length;2!==i||ne.obj(t[0])?ne.fnc(e.duration)||(s.duration=e.duration/i):t={value:t}}var r=ne.arr(t)?t:[t];return r.map((function(t,s){var i=ne.obj(t)&&!ne.pth(t)?t:{value:t};return ne.und(i.delay)&&(i.delay=s?0:e.delay),ne.und(i.endDelay)&&(i.endDelay=s===r.length-1?e.endDelay:0),i})).map((function(t){return ve(t,s)}))}var ze={css:function(t,e,s){return t.style[e]=s},attribute:function(t,e,s){return t.setAttribute(e,s)},object:function(t,e,s){return t[e]=s},transform:function(t,e,s,i,r){if(i.list.set(e,s),e===i.last||r){var n="";i.list.forEach((function(t,e){n+=e+"("+t+") "})),t.style.transform=n}}};function Ge(t,e){Ye(t).forEach((function(t){for(var s in e){var i=Se(e[s],t),r=t.target,n=ke(i),o=Te(r,s,n,t),a=Be(Oe(i,n||ke(o)),o),c=Re(r,s);ze[c](r,s,a,t.transforms,!0)}}))}function Ue(t,e){return ye(ge(t.map((function(t){return e.map((function(e){return function(t,e){var s=Re(t.target,e.name);if(s){var i=function(t,e){var s;return t.tweens.map((function(i){var r=function(t,e){var s={};for(var i in t){var r=Se(t[i],e);ne.arr(r)&&1===(r=r.map((function(t){return Se(t,e)}))).length&&(r=r[0]),s[i]=r}return s.duration=parseFloat(s.duration),s.delay=parseFloat(s.delay),s}(i,e),n=r.value,o=ne.arr(n)?n[1]:n,a=ke(o),c=Te(e.target,t.name,a,e),h=s?s.to.original:c,l=ne.arr(n)?n[0]:h,u=ke(l)||ke(c),d=a||u;return ne.und(o)&&(o=h),r.from=De(l,d),r.to=De(Be(o,l),d),r.start=s?s.end:0,r.end=r.start+r.delay+r.duration+r.endDelay,r.easing=pe(r.easing,r.duration),r.isPath=ne.pth(n),r.isPathTargetInsideSVG=r.isPath&&ne.svg(e.target),r.isColor=ne.col(r.from.original),r.isColor&&(r.round=1),s=r,r}))}(e,t),r=i[i.length-1];return{type:s,property:e.name,animatable:t,tweens:i,duration:r.end,delay:i[0].delay,endDelay:r.endDelay}}}(t,e)}))}))),(function(t){return!ne.und(t)}))}function Fe(t,e){var s=t.length,i=function(t){return t.timelineOffset?t.timelineOffset:0},r={};return r.duration=s?Math.max.apply(Math,t.map((function(t){return i(t)+t.duration}))):e.duration,r.delay=s?Math.min.apply(Math,t.map((function(t){return i(t)+t.delay}))):e.delay,r.endDelay=s?r.duration-Math.max.apply(Math,t.map((function(t){return i(t)+t.duration-t.endDelay}))):e.endDelay,r}var qe=0,Ve=[],He=function(){var t;function e(s){for(var i=Ve.length,r=0;r0?requestAnimationFrame(e):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Ke.suspendWhenDocumentHidden&&(We()?t=cancelAnimationFrame(t):(Ve.forEach((function(t){return t._onDocumentVisibility()})),He()))})),function(){t||We()&&Ke.suspendWhenDocumentHidden||!(Ve.length>0)||(t=requestAnimationFrame(e))}}();function We(){return!!document&&document.hidden}function Ke(t){void 0===t&&(t={});var e,s=0,i=0,r=0,n=0,o=null;function a(t){var e=window.Promise&&new Promise((function(t){return o=t}));return t.finished=e,e}var c=function(t){var e=_e(Qt,t),s=_e($t,t),i=function(t,e){var s=[],i=e.keyframes;for(var r in i&&(e=ve(function(t){for(var e=ye(ge(t.map((function(t){return Object.keys(t)}))),(function(t){return ne.key(t)})).reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[]),s={},i=function(i){var r=e[i];s[r]=t.map((function(t){var e={};for(var s in t)ne.key(s)?s==r&&(e.value=t[s]):e[s]=t[s];return e}))},r=0;r2||(f=Math.round(f*p)/p)),m.push(f)}var v=d.length;if(v){g=d[0];for(var k=0;k0&&(c.began=!0,m("begin")),!c.loopBegan&&c.currentTime>0&&(c.loopBegan=!0,m("loopBegin")),b<=y&&0!==c.currentTime&&p(0),(b>=g&&c.currentTime!==u||!u)&&p(u),b>y&&b=u&&(i=0,c.remaining&&!0!==c.remaining&&c.remaining--,c.remaining?(s=r,m("loopComplete"),c.loopBegan=!1,"alternate"===c.direction&&h()):(c.paused=!0,c.completed||(c.completed=!0,m("loopComplete"),m("complete"),!c.passThrough&&"Promise"in window&&(o(),a(c)))))}return a(c),c.reset=function(){var t=c.direction;c.passThrough=!1,c.currentTime=0,c.progress=0,c.paused=!0,c.began=!1,c.loopBegan=!1,c.changeBegan=!1,c.completed=!1,c.changeCompleted=!1,c.reversePlayback=!1,c.reversed="reverse"===t,c.remaining=c.loop,e=c.children;for(var s=n=e.length;s--;)c.children[s].reset();(c.reversed&&!0!==c.loop||"alternate"===t&&1===c.loop)&&c.remaining++,p(c.reversed?c.duration:0)},c._onDocumentVisibility=u,c.set=function(t,e){return Ge(t,e),c},c.tick=function(t){r=t,s||(s=r),y((r+(i-s))*Ke.speed)},c.seek=function(t){y(l(t))},c.pause=function(){c.paused=!0,u()},c.play=function(){c.paused&&(c.completed&&c.reset(),c.paused=!1,Ve.push(c),u(),He())},c.reverse=function(){h(),c.completed=!c.reversed,u()},c.restart=function(){c.reset(),c.play()},c.remove=function(t){Xe(Je(t),c)},c.reset(),c.autoplay&&c.play(),c}function Ze(t,e){for(var s=e.length;s--;)fe(t,e[s].animatable.target)&&e.splice(s,1)}function Xe(t,e){var s=e.animations,i=e.children;Ze(t,s);for(var r=i.length;r--;){var n=i[r],o=n.animations;Ze(t,o),o.length||n.children.length||i.splice(r,1)}s.length||i.length||e.pause()}Ke.version="3.2.1",Ke.speed=1,Ke.suspendWhenDocumentHidden=!0,Ke.running=Ve,Ke.remove=function(t){for(var e=Je(t),s=Ve.length;s--;)Xe(e,Ve[s])},Ke.get=Te,Ke.set=Ge,Ke.convertPx=Ee,Ke.path=function(t,e){var s=ne.str(t)?me(t)[0]:t,i=e||100;return function(t){return{property:t,el:s,svg:Ie(s),totalLength:xe(s)*(i/100)}}},Ke.setDashoffset=function(t){var e=xe(t);return t.setAttribute("stroke-dasharray",e),e},Ke.stagger=function(t,e){void 0===e&&(e={});var s=e.direction||"normal",i=e.easing?pe(e.easing):null,r=e.grid,n=e.axis,o=e.from||0,a="first"===o,c="center"===o,h="last"===o,l=ne.arr(t),u=l?parseFloat(t[0]):parseFloat(t),d=l?parseFloat(t[1]):0,p=ke(l?t[1]:t)||0,m=e.start||0+(l?u:0),y=[],g=0;return function(t,e,b){if(a&&(o=0),c&&(o=(b-1)/2),h&&(o=b-1),!y.length){for(var f=0;f-1&&Ve.splice(r,1);for(var a=0;at,fromReference:t=>t},[$e]:{transfer:is,primaries:rs,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[es]:{transfer:ss,primaries:"p3",toReference:t=>t.applyMatrix3(cs),fromReference:t=>t.applyMatrix3(as)},"display-p3":{transfer:is,primaries:"p3",toReference:t=>t.convertSRGBToLinear().applyMatrix3(cs),fromReference:t=>t.applyMatrix3(as).convertLinearToSRGB()}},ls=new Set([ts,es]),us={enabled:!0,_workingColorSpace:ts,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!ls.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,s){if(!1===this.enabled||e===s||!e||!s)return t;const i=hs[e].toReference;return(0,hs[s].fromReference)(i(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return hs[t].primaries},getTransfer:function(t){return""===t?ss:hs[t].transfer}};function ds(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function ps(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}function ms(t,e,s){return Math.max(e,Math.min(s,t))}function ys(t,e,s){return(1-s)*t+s*e}const gs={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},bs={h:0,s:0,l:0},fs={h:0,s:0,l:0};function As(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+6*(e-t)*(2/3-s):t}class _s{constructor(t,e,s){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,e,s)}set(t,e,s){if(void 0===e&&void 0===s){const e=t;e&&e.isColor?this.copy(e):"number"==typeof e?this.setHex(e):"string"==typeof e&&this.setStyle(e)}else this.setRGB(t,e,s);return this}asVector4(t=1){return new R(this.r,this.g,this.b,t)}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=ts){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,us.toWorkingColorSpace(this,e),this}setRGB(t,e,s,i=us.workingColorSpace){return this.r=t,this.g=e,this.b=s,us.toWorkingColorSpace(this,i),this}setHSL(t,e,s,i=us.workingColorSpace){if(t=(t%1+1)%1,e=ms(e,0,1),s=ms(s,0,1),0===e)this.r=this.g=this.b=s;else{const i=s<=.5?s*(1+e):s+e-s*e,r=2*s-i;this.r=As(r,i,t+1/3),this.g=As(r,i,t),this.b=As(r,i,t-1/3)}return us.toWorkingColorSpace(this,i),this}setStyle(t,e=ts){function s(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(t)){let r;const n=i[1],o=i[2];switch(n){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return s(r[4]),this.setRGB(Math.min(255,parseInt(r[1],10))/255,Math.min(255,parseInt(r[2],10))/255,Math.min(255,parseInt(r[3],10))/255,e);if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return s(r[4]),this.setRGB(Math.min(100,parseInt(r[1],10))/100,Math.min(100,parseInt(r[2],10))/100,Math.min(100,parseInt(r[3],10))/100,e);break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return s(r[4]),this.setHSL(parseFloat(r[1])/360,parseFloat(r[2])/100,parseFloat(r[3])/100,e);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(t)){const s=i[1],r=s.length;if(3===r)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,e);if(6===r)return this.setHex(parseInt(s,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=ts){const s=gs[t.toLowerCase()];return void 0!==s?this.setHex(s,e):console.warn("THREE.Color: Unknown color "+t),this}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=ds(t.r),this.g=ds(t.g),this.b=ds(t.b),this}copyLinearToSRGB(t){return this.r=ps(t.r),this.g=ps(t.g),this.b=ps(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=ts){return us.fromWorkingColorSpace(vs.copy(this),t),65536*Math.round(ms(255*vs.r,0,255))+256*Math.round(ms(255*vs.g,0,255))+Math.round(ms(255*vs.b,0,255))}getHexString(t=ts){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=us.workingColorSpace){us.fromWorkingColorSpace(vs.copy(this),e);const s=vs.r,i=vs.g,r=vs.b,n=Math.max(s,i,r),o=Math.min(s,i,r);let a,c;const h=(o+n)/2;if(o===n)a=0,c=0;else{const t=n-o;switch(c=h<=.5?t/(n+o):t/(2-n-o),n){case s:a=(i-r)/t+(it.setupMaterialAfterGeometry())))}}),{get position(){let e=t.transform?new C(1,1,-1).MultiplyVectors(t.transform.localPosition):new C;return e.set=function(e,s,i){t.transform.localPosition=new C(e,s,-i)},e},get scale(){let e=t.transform?t.transform.localScale:new C;return e.set=function(e,s,i){t.transform.localScale=new C(e,s,i)},e},get rotation(){let e=t.transform?new C(-1,-1,1).MultiplyVectors(t.transform.localEulerAngles):new C;return e.set=function(e,s,i){t.transform.localEulerAngles=new C(-e*T,-s*T,i*T)},e},get quaternion(){let e=t.transform?(new B).SetFromEuler(new C(-t.transform.localEulerAngles.x,-t.transform.localEulerAngles.y,t.transform.localEulerAngles.z)):new R;return e.set=function(e,s,i,r){t.transform.localRotation=new B(-e,-s,i,r)},e},visible:!t.gameObject||t.gameObject.active,id:t.gameObject?t.gameObject.id:"",get userData(){return t.gameObject?t.gameObject.meta._legacy:null},get children(){return[t.object3D]},getWorldPosition:e=>{var s=new C;if(t.watchEulerAndPosition(),t.transform&&(s=new C(1,1,-1).MultiplyVectors(t.transform.position)),!e)return s;e.set(s.x,s.y,s.z)},getWorldQuaternion:e=>{let s=new B;if(t.watchEulerAndPosition(),t.transform&&(s=(new B).SetFromEuler(new C(-t.transform.eulerAngles.x,-t.transform.eulerAngles.y,t.transform.eulerAngles.z))),!e)return s;e.set(s.x,s.y,s.z,s.w)},remove(){t.parentElement.removeChild(t)}}}watchEulerAndPosition(){this.gameObject&&!this.hasEnabledTransformWatch&&(this.hasEnabledTransformWatch=!0,this.transform.WatchProperties([c.eulerAngles,c.position]))}onReadyStateChange(){"complete"===document.readyState&&this.doConnectedCallback()}connectedCallback(){"complete"===document.readyState?this.doConnectedCallback():document.addEventListener("readystatechange",this.onReadyStateChange.bind(this))}doConnectedCallback(){return Bs(this,void 0,void 0,(function*(){this.tagName.toLocaleLowerCase()===Os&&function(){ws(this,void 0,void 0,(function*(){const t=Pt.GetInstance(),s=s=>t.objects[s].GetComponent(e.BanterRigidbody);Es.banter={movePlayer:(e,s)=>t.TeleportTo(new C(e.x,e.y,e.z),0,s),openPage:e=>t.OpenPage(e),setChildColor:(e,s,i)=>t.LegacySetChildColor(t.objects[e],new C(i.r,i.g,i.b),s),setText:(s,i,r)=>t.objects[s].GetComponent(e.BanterText).text=i,lockPlayer:()=>t.LegacyLockPlayer(),unlockPlayer:()=>t.LegacyUnlockPlayer(),sitPlayer:e=>t.LegacySitPlayer(t.objects[e]),unsitPlayer:()=>t.LegacyUnsitPlayer(),gorillaPlayer:()=>t.LegacyGorillaPlayer(),ungorillaPlayer:()=>t.LegacyUngorillaPlayer(),startSTT:e=>t.StartTTS(e),stopSTT:e=>t.StopTTS(e),enableControllerExtras:()=>t.LegacyEnableControllerExtras(),enableQuaternionPose:()=>t.LegacyEnableQuaternionPose(),setVisible:(e,s)=>ws(this,void 0,void 0,(function*(){return t.objects[s].SetActive(e)})),addForce:(t,e,i)=>{let n=r.Force;switch(e){case"force":n=r.Force;break;case"impulse":n=r.Impulse;break;case"acceleration":n=r.Acceleration;break;case"velocitychange":n=r.VelocityChange}return s(i).AddForce(new C(t.x,t.y,t.z),n)},rigidBodySetKinematic:(t,e)=>setTimeout((()=>s(e).isKinematic=t),100),addExplosionForce:(t,e,i,n)=>s(n).AddExplosionForce(t,new C(e.x,e.y,-e.z),i,0,r.Force),movePosition:(t,e)=>{s(e).MovePosition(new C(t.x||0,t.y||0,-t.z||0))},moveRotation:(t,e)=>{const i=s(e);if(i){const e=new C(-t.x||0,-t.y||0,t.z||0),s=(new B).SetFromEuler(e);i.MoveRotation(s)}},timeScale:e=>t.TimeScale(e),gravity:e=>t.Gravity(e),playerSpeed:e=>t.PlayerSpeed(e),deeplink:(e,s)=>t.DeepLink(e,s),setVideoUrl:(e,s)=>t.LegacySetVideoUrl(t.objects[e],s),generateParametric:(t,e,s)=>{for(var i=[],r=0;r<=e;r++)for(var n=r/e,o=0;o<=t;o++){var a=s(o/t,n);i.push(a)}return i},sendMenuBrowserMessage:e=>t.SendBrowserMessage(e),setRefreshRate:e=>t.LegacySetRefreshRate(e),sendAframeEvent:(e,s,i)=>t.LegacySendAframeEvent(e,s,i),playAvatar:(e,s,i,r)=>t.LegacyPlayAvatar(t.objects[e],s,i,r),requestOwnership:e=>t.LegacyRequestOwnership(e),doIOwn:e=>t.LegacyDoIOwn(e),resetNetworkObject:e=>t.LegacyResetNetworkObject(e),oneShot:(e,s)=>e?t.OneShot(JSON.stringify(e),s||!1):null,setPublicSpaceProp:(e,s)=>{const i={};i[e]=s,t.SetPublicSpaceProps(i)},setProtectedSpaceProp:(e,s)=>{const i={};i[e]=s,t.SetProtectedSpaceProps(i)},rigidBodySleep:t=>{const e=s(t);e&&(e.velocity=new C(0,0,0),e.Sleep())}},Es.userinputs={head:{position:{get x(){return Es.userpose?Es.userpose[0]:0},get y(){return Es.userpose?Es.userpose[1]:0},get z(){return Es.userpose?-Es.userpose[2]:0}},rotation:{get x(){return Es.userpose?-Es.userpose[3]:0},get y(){return Es.userpose?-Es.userpose[4]:0},get z(){return Es.userpose?Es.userpose[5]:0},get w(){return Es.userpose&&Cs()?Es.userpose[6]:0}}},lefthand:{position:{get x(){return Es.userpose?Es.userpose[6+(Cs()?1:0)]:0},get y(){return Es.userpose?Es.userpose[7+(Cs()?1:0)]:0},get z(){return Es.userpose?-Es.userpose[8+(Cs()?1:0)]:0}},rotation:{get x(){return Es.userpose?-Es.userpose[9+(Cs()?1:0)]:0},get y(){return Es.userpose?-Es.userpose[10+(Cs()?1:0)]:0},get z(){return Es.userpose?Es.userpose[11+(Cs()?1:0)]:0},get w(){return Es.userpose&&Cs()?Es.userpose[13]:0}}},righthand:{position:{get x(){return Es.userpose?Es.userpose[12+(Cs()?2:0)]:0},get y(){return Es.userpose?Es.userpose[13+(Cs()?2:0)]:0},get z(){return Es.userpose?-Es.userpose[14+(Cs()?2:0)]:0}},rotation:{get x(){return Es.userpose?-Es.userpose[15+(Cs()?2:0)]:0},get y(){return Es.userpose?-Es.userpose[16+(Cs()?2:0)]:0},get z(){return Es.userpose?Es.userpose[17+(Cs()?2:0)]:0},get w(){return Es.userpose&&Cs()?Es.userpose[20]:0}}},cockpit:{position:{get x(){return Es.userpose?Es.userpose[18+(Cs()?3:0)]:0},get y(){return Es.userpose?Es.userpose[19+(Cs()?3:0)]:0},get z(){return Es.userpose?-Es.userpose[20+(Cs()?3:0)]:0}},rotation:{get x(){return Es.userpose?-Es.userpose[21+(Cs()?3:0)]:0},get y(){return Es.userpose?-Es.userpose[22+(Cs()?3:0)]:0},get z(){return Es.userpose?Es.userpose[23+(Cs()?3:0)]:0},get w(){return Es.userpose&&Cs()?Es.userpose[26]:0}}},get voiceVolume(){return Es.userpose?Es.userpose[24+(Cs()?4:0)]:0},controllers:{left:{get trigger(){return Es.userpose&&Es.userpose[25+(Cs()?4:0)]||0},joystick:{get x(){return Es.userpose&&Es.userpose[27+(Cs()?4:0)]||0},get y(){return Es.userpose&&Es.userpose[28+(Cs()?4:0)]||0}}},right:{get trigger(){return Es.userpose&&Es.userpose[26+(Cs()?4:0)]||0},joystick:{get x(){return Es.userpose&&Es.userpose[29+(Cs()?4:0)]||0},get y(){return Es.userpose&&Es.userpose[30+(Cs()?4:0)]||0}}}}},Object.keys(Es.banter).forEach((t=>{window[t]=Es.banter[t]})),t.On("button-pressed",(t=>{Es.buttonPressCallback&&Es.buttonPressCallback(y(t))})),t.On("user-joined",(t=>ws(this,void 0,void 0,(function*(){t.detail.isLocal?(Es.user={id:t.detail.uid,sid:t.detail.id,uid:t.detail.uid,name:t.detail.name,color:t.detail.color,instance:window.SPACE_INSTANCE},Es.userCallback&&Es.userCallback(Es.user),Is.objs.concat(Ds.objs).forEach((e=>ws(this,void 0,void 0,(function*(){Ys(e.object,t.detail.uid,e.position)}))))):(yield m(Es,"AFRAME"),yield new Promise((t=>setTimeout(t,1e3))),Es.userJoinedCallback&&Es.userJoinedCallback({id:t.detail.uid,sid:t.detail.id,uid:t.detail.uid,name:t.detail.name,color:t.detail.color,instance:window.SPACE_INSTANCE}),Is.objs.concat(Ls.objs).forEach((e=>ws(this,void 0,void 0,(function*(){Ys(e.object,t.detail.uid,e.position)})))))})))),t.On("user-left",(t=>ws(this,void 0,void 0,(function*(){yield m(Es,"AFRAME"),Es.userLeftCallback&&Es.userLeftCallback(t.detail),Js.objs.filter((e=>e.uid===t.detail.uid)).forEach((t=>ws(this,void 0,void 0,(function*(){yield t.obj.Destroy()})))),Js.objs=Js.objs.filter((e=>e.uid!==t.detail.uid))})))),t.On("button-released",(t=>{Es.buttonPressCallback&&Es.buttonPressCallback(y(t,"Release"))})),t.On("transcription",(t=>{Es.transcriptionCallback&&Es.transcriptionCallback(t.detail.id,t.detail.message)})),t.On("menu-browser-message",(t=>{window.dispatchEvent(new CustomEvent("menubrowsermessage",{detail:{message:t.detail}}))})),t.On("aframe-trigger",(t=>{Es.aframeTriggerCallback&&Es.aframeTriggerCallback(t.detail.data)})),t.On("voice-started",(t=>{Es.voiceStartedCallback&&Es.voiceStartedCallback()})),t.On("one-shot",(t=>{Es.AframeInjection.dispatchEvent(new CustomEvent("oneShot",{detail:{data:JSON.parse(t.detail.data),fromId:t.detail.fromId,fromAdmin:t.detail.fromAdmin}}))})),t.On("space-state-changed",(t=>{Es.AframeInjection.dispatchEvent(new CustomEvent("spaceStateChange",{detail:t.detail}))})),yield t.WaitForUnityLoaded(),Es.loadDoneCallback&&(Es.loadDoneCallback(),Es.loadDone=!0),t.EnableLegacy()}))}(),this.sceneEl=yield this.closestScene(),this.sceneEl||console.warn("You are attempting to attach <"+this.tagName+"> outside of an A-Frame scene. Append this element to `` instead."),this.hasLoaded=!1,this.emit("nodeready",void 0,!1),this.tagName.toLocaleLowerCase()===Os?(this.getSceneSettings(),this.sceneEl=this,this.sceneEl.components["vr-mode-ui"]={updateEnterInterfaces(){}},this.load((()=>{console.log("Banter AFRAME shim loaded, errors above may be safely ignored (Failed to execute 'define', Cannot read properties of undefined (reading 'prototype')).")}))):(this.sceneEl=this.parentElement.sceneEl,this.load())}))}makeGameObject(){return Bs(this,void 0,void 0,(function*(){this.gameObject=new at(this.tagName+(this.id?"#"+this.id:"")),this.gameObject.meta.el=this,yield this.gameObject.Async(),this.transform=yield this.gameObject.AddComponent(new et),this.unityReady=!0,this.emit("unityready",void 0,!1)}))}getBoolValue(t){return t.enabled||!1===t.enabled?t.enabled:!!t}getSceneSettings(){if(this.hasAttribute("sq-forcegrabenabled")&&(xs.EnableForceGrab=!0),this.hasAttribute("sq-spawnpoint")){let t=this.parseAttributeValue("sq-spawnpoint",this.getAttribute("sq-spawnpoint"));xs.SpawnPoint=new R(t.position.x||0,t.position.y||0,-t.position.z||0,t.position.w||0)}if(this.hasAttribute("sq-clippingplane")){let t=this.parseAttributeValue("sq-clippingplane",this.getAttribute("sq-clippingplane"));xs.ClippingPlane=new E(t.near||.015,t.far||1500)}if(this.hasAttribute("sq-maxoccupancy")){let t=this.parseAttributeValue("sq-maxoccupancy",this.getAttribute("sq-maxoccupancy"));xs.MaxOccupancy=t.number||20}if(this.hasAttribute("sq-refreshrate")){let t=this.parseAttributeValue("sq-refreshrate",this.getAttribute("sq-refreshrate"));xs.RefreshRate=t.rate||72}if(this.hasAttribute("sq-enablespiderman")&&(xs.EnableSpiderMan=!0),this.hasAttribute("sq-disableteleport")&&(xs.EnableTeleport=!1),this.hasAttribute("sq-hideavatars")&&(xs.EnableAvatars=!1),this.hasAttribute("sq-devtoolsenabled")){let t=this.parseAttributeValue("sq-devtoolsenabled",this.getAttribute("sq-devtoolsenabled"));xs.EnableDevTools=this.getBoolValue(t)}if(this.hasAttribute("sq-portalsenabled")){let t=this.parseAttributeValue("sq-portalsenabled",this.getAttribute("sq-portalsenabled"));xs.EnablePortals=this.getBoolValue(t)}if(this.hasAttribute("sq-hidedefaulttextures")&&(xs.EnableDefaultTextures=!1),this.hasAttribute("sq-guestsallowed")){let t=this.parseAttributeValue("sq-guestsallowed",this.getAttribute("sq-guestsallowed"));xs.EnableGuests=this.getBoolValue(t)}if(this.hasAttribute("sq-friendpositionjoinallowed")){let t=this.parseAttributeValue("sq-friendpositionjoinallowed",this.getAttribute("sq-friendpositionjoinallowed"));xs.EnableFriendPositionJoin=!!t.enabled}this.hasAttribute("sq-spawnpoint")||Pt.GetInstance().TeleportTo(new C(0,0,0),0,!1,!0),Pt.GetInstance().SetSettings(xs)}closestScene(){return Bs(this,void 0,void 0,(function*(){let t=this;for(;t&&t.tagName.toLocaleLowerCase()!==Os;)yield m(t,"parentElement"),t=t.parentElement;return t}))}disconnectedCallback(){this.hasLoaded=!1,this.gameObject&&(this.gameObject.meta.originals&&this.gameObject.meta.originals.length&&this.gameObject.meta.originals.forEach((t=>{t.Destroy()})),this.gameObject.Destroy(),Is.objs=Is.objs.filter((t=>t.object!==this.gameObject)),Ds.objs=Ds.objs.filter((t=>t.object!==this.gameObject)),Ls.objs=Ls.objs.filter((t=>t.object!==this.gameObject)),delete this.gameObject)}loadMe(){var t;return Bs(this,void 0,void 0,(function*(){yield this.makeGameObject();const e=null===(t=this.parentElement)||void 0===t?void 0:t.gameObject;e&&this.gameObject.SetParent(e,!1),this.gameObject.On("click",(t=>{t.detail.point=new C(t.detail.point.x,t.detail.point.y,-t.detail.point.z),t.detail.normal=new C(t.detail.normal.x,t.detail.normal.y,-t.detail.normal.z),this.gameObject.meta._legacy=t.detail,this.emit("click",t.detail)})),this.gameObject.On("grab",(t=>{t.detail.position=new C(t.detail.point.x,t.detail.point.y,-t.detail.point.z),t.detail.side=t.detail.side===n.LEFT?"left":"right",this.gameObject.meta._legacy=t.detail,this.emit("grab",t.detail)})),this.gameObject.On("drop",(t=>{this.emit("drop",t.detail)})),this.gameObject.On("collision-enter",(t=>{this.emit("collision-enter",t.detail)})),this.gameObject.On("collision-exit",(t=>{this.emit("collision-exit",t.detail)})),this.gameObject.On("trigger-enter",(t=>{this.gameObject.meta.el&&(t.detail.other=this.gameObject.meta.el),t.detail.isLocalPlayer=!!t.detail.user&&t.detail.user.uid===window.user.id,this.gameObject.meta._legacy=t.detail,this.emit("trigger-enter",t.detail)})),this.gameObject.On("trigger-exit",(t=>{this.gameObject.meta.el&&(t.detail.other=this.gameObject.meta.el),t.detail.isLocalPlayer=!!t.detail.user&&t.detail.user.uid===window.user.id,this.gameObject.meta._legacy=t.detail,this.emit("trigger-exit",t.detail)})),this.gameObject.On("browser-message",(t=>{this.emit("browsermessage",t.detail)}))}))}load(t,e){return Bs(this,void 0,void 0,(function*(){let s,i;const r=this;this.hasLoaded||(this.loadMe(),this.getAttributeNames().forEach((t=>Bs(this,void 0,void 0,(function*(){const e=this.getAttribute(t),s=yield this.parseAttributes(t,null,e);Tt[t]&&Tt[t].init&&Tt[t].init.bind({el:this,sceneEl:this.sceneEl,data:s})()})))),this.setupMutationObserver(),e=e||(t=>t.isNode),s=this.getChildren(),i=s.filter(e).map((function(t){return new Promise((function(e,s){if(t.hasLoaded)return e();t.addEventListener("loaded",e),t.addEventListener("error",s)}))})),Promise.allSettled(i).then((function(e){e.forEach((function(t){"rejected"===t.status&&console.warn("Rendering scene with errors on node: ",t.reason.target)})),r.hasLoaded=!0,t&&t(),r.emit("loaded",void 0,!1)})))}))}getMaterialSide(t){return"back"===t?Rs.Back:"double"===t?Rs.Double:Rs.Front}getAssetSrc(t){return t&&"string"==typeof t?t.startsWith("#")?document.querySelector(t).getAttribute("src"):t:t&&t instanceof HTMLImageElement?t.currentSrc:""}colorValToFull(t){let e=t.replace(/^#/,"");return 3===e.length&&(e=e.split("").map((function(t){return t+t})).join("")),e}setupMaterialAfterGeometry(){return Bs(this,void 0,void 0,(function*(){let t;!this.invertedMesh&&this.hasAttribute("sq-invertedcollider")&&(this.invertedMesh=new U,yield this.gameObject.AddComponent(this.invertedMesh)),this.hasAttribute("material")&&(t=this.parseAttributeValue("material",this.getAttribute("material")));const e=this.getAssetSrc(this.hasAttribute("src")?this.getAttribute("src"):t&&t.src?t.src:"");let s=this.hasAttribute("opacity")?+this.getAttribute("opacity"):t&&(t.opacity||0===t.opacity)?t.opacity:1,i=!!this.hasAttribute("transparent")||t&&t.transparent,r=this.hasAttribute("side")?this.getAttribute("side"):t&&t.side?t.side:"front";Number.isNaN(s)&&(s=1);let n="Unlit/Diffuse";(i||1!=s)&&(n="Unlit/DiffuseTransparent");var o=this.hasAttribute("color")?this.getAttribute("color"):t&&t.color?t.color:"";o&&o.startsWith("#")&&(o=parseInt(this.colorValToFull(o).replace(/^#/,""),16)),this.material=new q(n,e,new _s(o).asVector4(s),this.getMaterialSide(r),!0),yield this.gameObject.AddComponent(this.material),this.collider||!this.hasAttribute("sq-collider")&&!this.hasAttribute("sq-climbable")||(this.collider=new V(!0,this.hasAttribute("sq-triggercollider")),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new D)),(!this.collider&&this.hasAttribute("sq-nonconvexcollider")||this.hasAttribute("sq-invertedcollider"))&&(this.collider=new V(!1,this.hasAttribute("sq-triggercollider")),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new D))}))}setRotationFromEuler(t,e,s){const i=new C(t,e,s),r=(new B).SetFromEuler(i);this.transform.localRotation=r}processAttributes(t,e,s){return Bs(this,void 0,void 0,(function*(){switch(t){case"position":yield m(this,"unityReady"),this.transform.localPosition=new C(e.x||0,e.y||0,-e.z||0);break;case"scale":yield m(this,"unityReady"),this.transform.localScale=new C(e.x||1e-5,e.y||1e-5,e.z||1e-5);break;case"rotation":yield m(this,"unityReady"),this.transform.localEulerAngles=new C(-e.x||0,-e.y||0,e.z||0);break;case"sq-parametric":case"geometry":this.geometry||("sq-parametric"===t&&(e.primitive="parametric"),this.geometry=new Y(Ms[e.primitive],Ns[e.type],e.width,e.height,e.depth,e.segmentsWidth,e.segmentsHeight,e.segmentsDepth,e.radius,e.segments,e.thetaStart*P,e.thetaLength*P,e.phiStart*P,e.phiLength*P,e.segmentsRadial,e.openEnded,e.radiusTop,e.radiusBottom,e.radiusInner,e.radiusOuter,e.segmentsTheta,e.segmentsPhi,e.tube,e.segmentsTubular,e.arc*P,e.p,e.q,e.stacks,e.slices,e.detail),yield this.gameObject.AddComponent(this.geometry),yield this.setupMaterialAfterGeometry());break;case"sq-playavatar":yield m(this,"unityReady"),window.playAvatar(this.gameObject.id,e.tracking,e.audio,e.avatar);break;case"sq-streetview":this.streetview||(this.streetview=new Q(e.panoId),yield this.gameObject.AddComponent(this.streetview));break;case"material":this.material&&(e.color&&(e.color&&e.color.startsWith("#")&&(e.color=parseInt(this.colorValToFull(e.color).replace(/^#/,""),16)),this.material.color=new _s(e.color).asVector4(e.opacity||1)),e.side&&(this.material.side=this.getMaterialSide(e.side)),e.src&&(this.material.texture=this.getAssetSrc(e.src)));break;case"color":this.material&&(this.material.color=new _s(e).asVector4());break;case"side":this.material&&(this.material.side=this.getMaterialSide(e));break;case"src":this.material&&(this.material.texture=this.getAssetSrc(e));break;case"animation":if(yield m(this,"unityReady"),yield this.gameObject.scene.WaitForUnityLoaded(),this.animations.includes(e.property))return;this.animations.push(e.property);const i=e.property.split(".").filter((t=>"object3D"!==t));switch(i[0]){case"scale":i[1]&&this.animateIt(e,"localScale",i[1],(()=>this.transform.localScale=this.transform.localScale));break;case"position":i[1]&&this.animateIt(e,"localPosition",i[1],(()=>this.transform.localPosition=this.transform.localPosition));break;case"rotation":i[1]&&this.animateIt(e,"localEulerAngles",i[1],(()=>{this.setRotationFromEuler(this.transform.localEulerAngles.x,this.transform.localEulerAngles.y,this.transform.localEulerAngles.z)}))}break;case"link":this.portal||(this.portal=new K(e.href),yield this.gameObject.AddComponent(this.portal));break;case"sound":this.sound||(this.sound=new Audio(e.src),this.sound.loop=e.loop,this.sound.volume=e.volume,e.autoplay&&this.sound.play());break;case"text":if(!this.text){let t=ks.Left;switch(e.align){case"center":t=ks.Center;break;case"left":t=ks.Left;break;case"right":t=ks.Right}let s=Ss.Bottom;switch(e.baseline){case"center":s=Ss.Center;break;case"top":s=Ss.Top;break;case"bottom":s=Ss.Bottom}this.text=new tt(e.value.split("\\n").join("\n"),new _s(e.color).asVector4(),t,s,2,!1,!1,new E(0,0)),yield this.gameObject.AddComponent(this.text)}break;case"gltf-model":if(!this.gltf){let t=this.hasAttribute("sq-collider"),s=this.hasAttribute("sq-nonconvexcollider"),i=this.hasAttribute("sq-slippery"),r=this.hasAttribute("sq-climbable")||this.hasAttribute("sq-grabbable");this.gltf=new j(this.getAssetSrc(e),this.hasAttribute("sq-generatemipmaps"),t,s,i,r,!0),this.gltf.On("loaded",(()=>{this.gltfLoaded=!0,this.colorOverrides.length&&(this.colorOverrides.forEach((t=>{window.setChildColor(this.gameObject.id,t.path,t.color)})),this.colorOverrides=[])})),yield this.gameObject.AddComponent(this.gltf)}break;case"sq-overridecolor":this.colorOverrides.push({path:e.path,color:{r:e.color.x,g:e.color.y,b:e.color.z}}),this.gltf&&this.gltfLoaded&&window.setChildColor(this.gameObject.id,e.path,{r:e.color.x,g:e.color.y,b:e.color.z});break;case"sq-billboard":this.billboard||(this.billboard=new N(0,!1,!0,!1),yield this.gameObject.AddComponent(this.billboard));break;case"sq-clickurl":this.addEventListener("click",(()=>{this.gameObject.scene.OpenPage(e.url)}));break;case"sq-deeplink":this.addEventListener("click",(()=>{this.gameObject.scene.DeepLink(e.url,"")}));break;case"sq-interactable":this.gameObject.SetLayer(5);break;case"sq-syncloop":{let t;t=setInterval((()=>{if(this.gameObject){if(e.interval&&!this.hasRun){let t=(new Date).getTime(),s=t/1e3-Math.floor(t/(1e3*e.interval))*e.interval;s>e.interval-1&&!this.readyToTrigger&&(this.readyToTrigger=!0),s<1&&this.readyToTrigger&&(this.readyToTrigger=!1,this.emit(e.eventName,null,!1),e.runOnce&&(this.hasRun=!0))}}else clearInterval(t)}),50)}break;case"sq-lefthand":yield m(this,"unityReady"),yield m(this,"transform"),yield this.transform.Q([c.localEulerAngles]),yield new Promise((t=>setTimeout(t,200))),this.handleAttachements(e.whoToShow,Ts.LEFT_HAND);break;case"sq-righthand":yield m(this,"unityReady"),yield m(this,"transform"),yield this.transform.Q([c.localEulerAngles]),yield new Promise((t=>setTimeout(t,200))),this.handleAttachements(e.whoToShow,Ts.RIGHT_HAND);break;case"sq-head":yield m(this,"unityReady"),yield m(this,"transform"),yield this.transform.Q([c.localEulerAngles]),yield new Promise((t=>setTimeout(t,200))),this.handleAttachements(e.whoToShow,Ts.HEAD);break;case"sq-cockpit":console.warn("sq-cockpit is no longer supported!");break;case"sq-body":yield m(this,"unityReady"),yield m(this,"transform"),yield this.transform.Q([c.localEulerAngles]),yield new Promise((t=>setTimeout(t,200))),this.handleAttachements(e.whoToShow,Ts.BODY);break;case"visible":this.gameObject.SetActive(e);break;case"sq-trackpose":js.legacyPoseEnabled=!0;let r=null;const n=this.gameObject.scene;r=t=>{try{if(this.transform){if(this.hasLoaded)switch(e.type){case"lefthand":this.transform.localPosition=new C(js.userinputs.lefthand.position.x,js.userinputs.lefthand.position.y,-js.userinputs.lefthand.position.z),Cs()?this.transform.localRotation=new B(js.userinputs.lefthand.rotation.x,js.userinputs.lefthand.rotation.y,js.userinputs.lefthand.rotation.z,js.userinputs.lefthand.rotation.w):this.transform.localEulerAngles=new C(-js.userinputs.lefthand.rotation.x*T,-js.userinputs.lefthand.rotation.y*T,js.userinputs.lefthand.rotation.z*T);break;case"righthand":this.transform.localPosition=new C(js.userinputs.righthand.position.x,js.userinputs.righthand.position.y,-js.userinputs.righthand.position.z),Cs()?this.transform.localRotation=new B(js.userinputs.righthand.rotation.x,js.userinputs.righthand.rotation.y,js.userinputs.righthand.rotation.z,js.userinputs.righthand.rotation.w):this.transform.localEulerAngles=new C(-js.userinputs.righthand.rotation.x*T,-js.userinputs.righthand.rotation.y*T,js.userinputs.righthand.rotation.z*T);break;case"head":this.transform.localPosition=new C(js.userinputs.head.position.x,js.userinputs.head.position.y,-js.userinputs.head.position.z),Cs()?this.transform.localRotation=new B(js.userinputs.head.rotation.x,js.userinputs.head.rotation.y,js.userinputs.head.rotation.z,js.userinputs.head.rotation.w):this.transform.localEulerAngles=new C(-js.userinputs.head.rotation.x*T,-js.userinputs.head.rotation.y*T,js.userinputs.head.rotation.z*T);break;case"cockpit":this.transform.localPosition=new C(js.userinputs.cockpit.position.x,js.userinputs.cockpit.position.y,-js.userinputs.cockpit.position.z),Cs()?this.transform.localRotation=new B(js.userinputs.cockpit.rotation.x,js.userinputs.cockpit.rotation.y,js.userinputs.cockpit.rotation.z,js.userinputs.cockpit.rotation.w):this.transform.localEulerAngles=new C(-js.userinputs.cockpit.rotation.x*T,-js.userinputs.cockpit.rotation.y*T,js.userinputs.cockpit.rotation.z*T)}this.gameObject||n.Off("legacy-user-pose",r)}}catch(t){console.error(t)}},n.On("legacy-user-pose",r);break;case"sq-slippery":case"sq-sticky":if(yield new Promise((t=>setTimeout(t))),!this.physicMaterial){var s="sq-sticky"===t?15:e.friction;this.physicMaterial=new W(s,s),yield this.gameObject.AddComponent(this.physicMaterial)}this.rigidBody||"sq-sticky"!==t||(this.rigidBody=new Z(1,0,.05,!0,!0,new C,Ps.Discrete,!1,!1,!1,!1,!1,!1,new C,new C),yield this.gameObject.AddComponent(this.rigidBody));break;case"sq-climbable":case"sq-grabbable":this.gameObject.SetLayer(20);break;case"sq-gravityfield":this.gameObject.On("trigger-enter",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.gravity(e.gravity)})),this.gameObject.On("trigger-exit",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.gravity({x:0,y:-9.8,z:0})})),this.collider||(yield m(js,"user"),this.collider=new x(!0),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new D));break;case"sq-timedilationfield":this.gameObject.On("trigger-enter",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.timeScale(e.scale)})),this.gameObject.On("trigger-exit",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.timeScale(1)})),this.collider||(yield m(js,"user"),this.collider=new x(!0),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new D));break;case"sq-speedfield":this.gameObject.On("trigger-enter",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.playerSpeed(!0)})),this.gameObject.On("trigger-exit",(t=>{t.detail.user&&"__BA_PlayerHead"===t.detail.tag&&t.detail.user.uid===window.user.id&&window.playerSpeed(!1)})),this.collider||(yield m(js,"user"),this.collider=new x(!0),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new D));break;case"sq-browser":yield m(this,"unityReady"),this.browser?e.url&&(this.browser.url=e.url):(this.browser=new I(e.url,e.mipMaps,e.pixelsPerUnit,1024,576,JSON.stringify({actions:e.afterLoadActions})),yield this.gameObject.AddComponent(this.browser));break;case"sq-assetbundle":this.assetbundle||(this.assetbundle=new S(e.desktop,null,null,e.android,null,null,!0,!0),yield this.gameObject.AddComponent(this.assetbundle));break;case"sq-kitbundle":this.kitbundle||(this.kitbundle=new S(e.desktop,null,null,e.android,null,null,!1),yield this.gameObject.AddComponent(this.kitbundle));break;case"sq-kititem":this.kititem||(this.kititem=new F(e.item),yield this.gameObject.AddComponent(this.kititem));break;case"sq-boxcollider":this.collider||(this.collider=new x(this.hasAttribute("sq-triggercollider"),e.center,e.size),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new D));break;case"sq-spherecollider":this.collider||(this.collider=new X(this.hasAttribute("sq-triggercollider"),e.radius),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new D));break;case"sq-capsulecollider":this.collider||(this.collider=new L(this.hasAttribute("sq-triggercollider"),e.radius,e.height),yield this.gameObject.AddComponent(this.collider),yield this.gameObject.AddComponent(new D));break;case"sq-mirror":this.mirror||(this.mirror=new H,yield this.gameObject.AddComponent(this.mirror));break;case"sq-smoothposition":yield m(this,"unityReady"),this.transform.lerpPosition=!0;break;case"sq-smoothrotation":yield m(this,"unityReady"),this.transform.lerpRotation=!0;break;case"sq-rigidbody":if(!this.rigidBody){let t=Ps.Discrete;switch(e.collisionDetectionMode){case"discrete":t=Ps.Discrete;break;case"continuous":t=Ps.Continuous;break;case"continuousdynamic":t=Ps.ContinuousDynamic;break;case"continuousspeculative":t=Ps.ContinuousSpeculative}this.rigidBody=new Z(e.mass,e.drag,e.angularDrag,e.isKinematic,e.useGravity,e.centerOfMass,t,e.freezePosX,e.freezePosY,e.freezePosZ,e.freezeRotX,e.freezeRotY,e.freezeRotZ,e.velocity,e.angularVelocity),yield this.gameObject.AddComponent(this.rigidBody)}}}))}parseAttributeValue(t,e){let s;this.components[t]={data:Gt(e)},"sq-browser"===t&&(this.components[t].runActions=t=>{var e;return null===(e=this.browser)||void 0===e?void 0:e.RunActions(JSON.stringify({actions:t}))});try{if("geometry"===t){const e=this.components[t].data.primitive;e&&(Vs(e,"segmentsWidth",!0),Vs(e,"segmentsHeight",!0),Vs(e,"thetaLength",!0),Vs(e,"radiusTop",!0))}const i=It(Tt[t].schema,t);s=xt(Tt[t].schema)?Yt(e,i):Dt(this.components[t].data,Tt[t].schema,!1,t)}catch(s){console.warn(s,t,e)}return s}handleAttachements(t,s){return Bs(this,void 0,void 0,(function*(){if("everyone"===t)Is.objs.push({position:s,object:this.gameObject}),this.gameObject.SetActive(!1),Object.values(Pt.GetInstance().users).forEach((t=>Bs(this,void 0,void 0,(function*(){Ys(this.gameObject,t.uid,s)}))));else if("everyoneelse"===t)Ls.objs.push({position:s,object:this.gameObject}),this.gameObject.SetActive(!1),Object.values(Pt.GetInstance().users).forEach((t=>Bs(this,void 0,void 0,(function*(){t.isLocal||Ys(this.gameObject,t.uid,s)}))));else if("onlyme"===t)Ds.objs.push({position:s,object:this.gameObject}),this.gameObject.SetActive(!1),Ys(this.gameObject,window.user.id,s);else{var i=yield this.gameObject.GetComponent(e.Transform);yield i.Q([c.localEulerAngles]),i.localEulerAngles=new C(i.localEulerAngles.x,i.localEulerAngles.y+270,i.localEulerAngles.z),yield i.Q([c.localEulerAngles]),Pt.GetInstance().LegacyAttachObject(this.gameObject,t,s)}}))}parseAttributes(t,e,s){return Bs(this,void 0,void 0,(function*(){if(t=t.split("__")[0],!Tt[t])return;let e=this.parseAttributeValue(t,s);return this.processAttributes(t,e,s),e}))}invertCoordinates(t,e){var s="eulerAngles"===t||"localEulerAngles"===t;return("position"===t||"localPosition"===t)&&"z"===e||s&&"x"===e||s&&"y"===e?-1:1}animateIt(t,e,s,i){const r={};"string"==typeof s&&(r[s]=this.transform[e][s]*this.invertCoordinates(e,s));const n={targets:r,duration:t.dur||0,delay:t.delay||0,easing:t.easing||"linear",elasticity:t.elasticity||0,loop:t.loop||!1,direction:t.dir||"normal",autoplay:t.autoplay||!0,round:t.round||1e7,change:t=>{"string"==typeof s&&(this.transform[e][s]=t.animatables[0].target[s]*this.invertCoordinates(e,s)),i()}};"string"==typeof s&&(n[s]=t.from||0===t.from?[t.from,t.to]:[this.transform[e][s]*this.invertCoordinates(e,s),t.to]),t.startEvents&&t.startEvents.length?t.startEvents.forEach((t=>{this.addEventListener(t,(()=>{Qe(n)}))})):Qe(n)}attributeChangedCallback(t,e,s){var i=t.split("__");t=i[0],this.parseAttributes(t,e,s).then((e=>{"object"==typeof e&&i[1]&&(e._event="_"+i[1]),Tt[t]&&Tt[t].update&&Tt[t].update.bind({el:this,sceneEl:this.sceneEl,data:e})()}))}setupMutationObserver(){const t=this;new MutationObserver((function(e){return Bs(this,void 0,void 0,(function*(){let s;for(s=0;s{window.AFRAME.scenes=Array.from(document.querySelectorAll("a-scene"))}));const Us=(t,e)=>{Object.keys(e).forEach((t=>{Gs.registerComponent(t,{schema:e[t]})})),Gs.registerComponent(t,{schema:e})};Gs.registerComponent("gltf-model",{schema:{type:"model"}}),Gs.registerComponent("position",{schema:{type:"vec3",default:{x:0,y:0,z:0}}}),Gs.registerComponent("scale",{schema:{type:"vec3",default:{x:1,y:1,z:1}}}),Gs.registerComponent("rotation",{schema:{type:"vec3",default:{x:0,y:0,z:0}}}),Gs.registerComponent("rotation",{schema:{type:"vec3",default:{x:0,y:0,z:0}}}),Gs.registerComponent("visible",{schema:{type:"bool",default:!0}}),Gs.registerComponent("vr-mode-ui",{schema:{}}),Us("sound",{autoplay:{default:!1},loop:{default:!1},src:{type:"audio"},volume:{default:1}});const Fs={primitive:{type:"string",default:""},depth:{type:"number",default:1,min:0},height:{type:"number",default:1,min:0},width:{type:"number",default:1,min:0},segmentsHeight:{type:"int",default:1,min:1},segmentsWidth:{type:"int",default:1,min:1},segmentsDepth:{type:"int",default:1,min:1},radius:{type:"number",default:1,min:0},segments:{type:"int",default:32,min:3},thetaStart:{type:"number",default:0},openEnded:{type:"bool",default:!1},radiusBottom:{type:"number",default:1,min:0},radiusTop:{type:"number",default:.01,min:0},segmentsRadial:{type:"int",default:36,min:3},radiusInner:{type:"number",default:.8,min:0},radiusOuter:{type:"number",default:1.2,min:0},segmentsPhi:{type:"int",default:10,min:1},segmentsTheta:{type:"int",default:32,min:3},phiLength:{type:"number",default:360},phiStart:{type:"number",default:0,min:0},arc:{type:"number",default:360},radiusTubular:{type:"number",default:.2,min:0},segmentsTubular:{type:"int",default:32,min:3},thetaLength:{default:180,min:0},p:{type:"number",default:2,min:1},q:{type:"number",default:3,min:1}};function qs(t,e,s){t?Tt.geometry.schema[e].default=s:Tt[e].schema.default=s}function Vs(t,e,s=!1){Fs[e]&&("sphere"===t?"segmentsWidth"===e?qs(s,e,32):"segmentsHeight"===e&&qs(s,e,16):"segmentsWidth"!==e&&"segmentsHeight"!==e||qs(s,e,1),"ring"!==t&&"cone"!==t&&"circle"!==t&&"cylinder"!==t||"thetaLength"!==e?"thetaLength"===e&&qs(s,e,180):qs(s,e,360),"cylinder"===t&&"radiusTop"===e?qs(s,e,1):"cone"===t&&"radiusTop"===e&&qs(s,e,.01))}Us("geometry",Fs),Us("material",{color:{type:"color",default:"#FFF"},opacity:{type:"number",default:1,min:0},transparent:{type:"bool",default:!1},src:{type:"asset",default:""}}),Us("link",{href:{type:"asset",default:""},src:{type:"asset",default:""},title:{type:"string",default:""}}),Us("animation",{autoplay:{default:!0},delay:{default:0},dir:{default:""},dur:{default:1e3},easing:{default:"easeInQuad"},elasticity:{default:400},enabled:{default:!0},from:{default:""},loop:{default:0,parse:function(t){return!0===t||"true"===t||!1!==t&&"false"!==t&&parseInt(t,10)}},property:{default:""},startEvents:{type:"array"},pauseEvents:{type:"array"},resumeEvents:{type:"array"},round:{default:!1},to:{default:""},type:{default:""},isRawProperty:{default:!1}}),Us("text",{align:{type:"string",default:"left"},baseline:{type:"string",default:"center"},color:{type:"string",default:"#FFF"},value:{type:"string",default:""}}),["climbable","collider","invertedcollider","triggercollider","nonconvexcollider","sticky","clickable","interactable","grabbable","billboard","generatemipmaps"].forEach((t=>{Gs.registerComponent("sq-"+t,{schema:{recursive:{type:"bool",default:!1}}})})),Gs.registerComponent("sq-deeplink",{schema:{url:{type:"string",default:""}}}),Gs.registerComponent("sq-playavatar",{schema:{tracking:{type:"string",default:""},audio:{type:"string",default:""},avatar:{type:"string",default:""}}}),Gs.registerComponent("sq-slippery",{schema:{friction:{type:"number",default:0},recursive:{type:"bool",default:!1}}}),["hidenametags","hideavatars","mirror","hidedefaulttextures","smoothposition","smoothrotation","disableteleport","enablespiderman"].forEach((t=>{Gs.registerComponent("sq-"+t,{schema:{enabled:{type:"bool",default:!1}}})})),["lefthand","righthand","head","body","cockpit"].forEach((t=>{Gs.registerComponent("sq-"+t,{schema:{whoToShow:{type:"string",default:"everyone"}}})})),Gs.registerComponent("sq-movingplatform",{schema:{end:{type:"vec3",default:{x:0,y:0,z:0}},speed:{type:"number",default:5},delay:{type:"number",default:5},timeToMaxSpeed:{type:"number",default:2},maxIterations:{type:"number",default:-1}}}),Gs.registerComponent("sq-parametric",{schema:{stacks:{type:"number",default:10},slices:{type:"number",default:10},type:{type:"string",default:"klein"},inverted:{type:"bool",default:!1}}}),Gs.registerComponent("sq-livestream",{schema:{type:{type:"string",default:"youtube"},url:{type:"string",default:""},muted:{type:"bool",default:!1},volume:{type:"number",default:.5},allowPause:{type:"bool",default:!1}}}),Gs.registerComponent("sq-boxcollider",{schema:{center:{type:"vec3",default:{x:0,y:0,z:0}},size:{type:"vec3",default:{x:1,y:1,z:1}}}}),Gs.registerComponent("sq-spherecollider",{schema:{center:{type:"vec3",default:{x:0,y:0,z:0}},radius:{type:"number",default:.5}}}),Gs.registerComponent("sq-capsulecollider",{schema:{center:{type:"vec3",default:{x:0,y:0,z:0}},radius:{type:"number",default:.5},height:{type:"number",default:1},direction:{type:"string",default:"y"}}}),Gs.registerComponent("sq-raycaster",{schema:{startEvent:{type:"string",default:"click"},continuous:{type:"bool",default:!1},distance:{type:"number",default:100}}}),Gs.registerComponent("sq-destructable",{schema:{randomSeed:{type:"number",default:0},fractureType:{type:"string",default:"shatter"},numFracturePieces:{type:"number",default:10},numInterations:{type:"number",default:1},numGenerations:{type:"number",default:1},evenlySizedPieces:{type:"bool",default:!1},forceThreshold:{type:"number",default:10},forceRolloffRadius:{type:"number",default:1}}}),Gs.registerComponent("sq-rigidbody",{schema:{angularDrag:{type:"number",default:.05},collisionDetectionMode:{type:"string",default:"discrete"},angularVelocity:{type:"vec3",default:{x:0,y:0,z:0}},centerOfMass:{type:"vec3",default:{x:0,y:0,z:0}},drag:{type:"number",default:0},isKinematic:{type:"bool",default:!1},useGravity:{type:"bool",default:!0},mass:{type:"number",default:1},toChild:{type:"bool",default:!1},velocity:{type:"vec3",default:{x:0,y:0,z:0}},freezePosX:{type:"bool",default:!1},freezePosY:{type:"bool",default:!1},freezePosZ:{type:"bool",default:!1},freezeRotX:{type:"bool",default:!1},freezeRotY:{type:"bool",default:!1},freezeRotZ:{type:"bool",default:!1}}}),Gs.registerComponent("sq-particlesystem",{schema:{duration:{type:"number",default:5},startColor:{type:"string",default:"#ffffff"},startDelay:{type:"number",default:0},startDelayMultiplier:{type:"number",default:1},startLifetime:{type:"number",default:5},startLifetimeMultiplier:{type:"number",default:1},startSize:{type:"number",default:1},startSpeed:{type:"number",default:5},startRotation:{type:"number",default:0},simulationSpace:{type:"string",default:"local"},particleTexture:{type:"string",default:"https://cdn.sidequestvr.com/file/297264/new-project-1.png"},emitterVelocity:{type:"vec3",default:{x:0,y:0,z:0}},emitterVelocityMode:{type:"string",default:"rigid-body"},maxParticles:{type:"number",default:1e3},flipRotation:{type:"number",default:0},scalingMode:{type:"string",default:"local"},loop:{type:"bool",default:!0},playOnAwake:{type:"bool",default:!0},prewarm:{type:"bool",default:!1}}}),Gs.registerComponent("sq-clippingplane",{schema:{near:{type:"number",default:.02},far:{type:"number",default:1500}}}),Gs.registerComponent("sq-maxoccupancy",{schema:{number:{type:"number",default:20}}}),Gs.registerComponent("sq-spawnpoint",{schema:{position:{type:"vec4",default:{x:0,y:0,z:0,w:0}}}}),Gs.registerComponent("sq-refreshrate",{schema:{rate:{type:"number",default:90}}}),Gs.registerComponent("sq-devtoolsenabled",{schema:{enabled:{type:"bool",default:!0}}}),Gs.registerComponent("sq-portalsenabled",{schema:{enabled:{type:"bool",default:!0}}}),Gs.registerComponent("sq-guestsallowed",{schema:{enabled:{type:"bool",default:!0}}}),Gs.registerComponent("sq-friendpositionjoinallowed",{schema:{enabled:{type:"bool",default:!0}}}),Gs.registerComponent("sq-clickurl",{schema:{url:{type:"string",default:"https://sidequestvr.com"}}}),Gs.registerComponent("sq-overridecolor",{multiple:!0,schema:{path:{type:"string",default:""},color:{type:"vec3",default:{x:1,y:1,z:1}}}}),Gs.registerComponent("sq-trackpose",{schema:{type:{type:"string",default:"lefthand"}}}),Gs.registerComponent("sq-streetview",{schema:{panoId:{type:"string",default:"EusXB0g8G1DOvaPV56X51g"}},update:function(t){const e=this.el.object3D;e&&(e.userData.streetView=this.data.panoId)}}),Gs.registerComponent("sq-customhome",{schema:{customHome:{type:"string",default:"https://cdn.sidequestvr.com/file/167567/canyon_environment.apk"}}}),Gs.registerComponent("sq-assetbundle",{schema:{android:{type:"string",default:""},androidShaders:{type:"string",default:""},desktop:{type:"string",default:""},desktopShaders:{type:"string",default:""}}}),Gs.registerComponent("sq-questhome",{schema:{url:{type:"string",default:"https://cdn.sidequestvr.com/file/167567/canyon_environment.apk"}}}),Gs.registerComponent("sq-syncloop",{schema:{interval:{type:"number",default:0},runOnce:{type:"bool",default:!1},eventName:{type:"string",default:"startAnimation"},remote:{type:"string",default:""}}}),Gs.registerComponent("sq-timedilationfield",{schema:{scale:{type:"number",default:1}}}),Gs.registerComponent("sq-gravityfield",{schema:{gravity:{type:"vec3",default:{x:0,y:-9.8,z:0}}}}),Gs.registerComponent("sq-kitbundle",{schema:{android:{type:"string",default:""},desktop:{type:"string",default:""}}}),Gs.registerComponent("sq-custommaterial",{schema:{materialName:{type:"string",default:null},shaderName:{type:"string",default:null},shaderParamNames:{type:"array",default:null},shaderParamValues:{type:"array",default:null}}}),Gs.registerComponent("sq-kititem",{schema:{item:{type:"string",default:""}}}),Gs.registerComponent("sq-browser",{schema:{url:{type:"asset",default:""},remote:{type:"boolean",default:!0},mode:{type:"string",default:"local"},pixelsPerUnit:{type:"number",default:1200},mipMaps:{type:"number",default:4},afterLoadActions:{default:null,parse:function(t){var e;if(Array.isArray(t))return t;if(!t||!(null===(e=null==t?void 0:t.trim())||void 0===e?void 0:e.length))return[];try{return JSON.parse(t)}catch(e){console.error("Invalid browser input: ",t),console.error(e)}}}}}),Gs.registerComponent("sq-browser-interaction",{schema:{url:{type:"asset",default:""}}}),Object.defineProperty(window,"AframeInjection",{value:new class extends p{waitFor(t,e){return ws(this,void 0,void 0,(function*(){return m(t,e)}))}},writable:!1}),Object.defineProperty(window,"isBanter",{value:!0,writable:!1}),Object.defineProperty(window,"AFRAME",{value:Gs,writable:!1});const Hs=(t,e,s=!0,i="")=>{const r={};return e.forEach((e=>{const n=Ft(e);if((s||Fs[n])&&Tt[n]){Vs(i,n);var o=It(Tt[n].schema,n),a=t.getAttribute(e),c=Gt(a);xt(Tt[n].schema)?r[n]=Yt(a,o):r[n]=Dt(c,o,!0,n)}})),r},Ws=(t,e,s)=>Ut(Object.assign({primitive:e},Hs(t,s,!1,e))),Ks=(t,e)=>t.hasAttribute(e)?";"+t.getAttribute(e):"";customElements.define("a-node",zs),customElements.define("a-entity",class extends zs{}),customElements.define("a-scene",class extends zs{}),customElements.define("a-link",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("link",Ut(Hs(this,["href","title","src"]))+Ks(this,"link"))}))}}),customElements.define("a-text",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("text",Ut(Hs(this,["value","color","align","baseline"]))+Ks(this,"text"))}))}}),customElements.define("a-image",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Ws(this,"plane",["width","height","segments-width","segments-height"])+Ks(this,"geometry"))}))}}),customElements.define("a-plane",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Ws(this,"plane",["width","height","segments-width","segments-height"])+Ks(this,"geometry"))}))}}),customElements.define("a-box",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Ws(this,"box",["width","height","depth","segments-width","segments-height","segments-depth"])+Ks(this,"geometry"))}))}}),customElements.define("a-sphere",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Ws(this,"sphere",["radius","segments-width","segments-height","phi-start","phi-length","theta-start","theta-length"])+Ks(this,"geometry"))}))}}),customElements.define("a-sky",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("radius","500"),this.setAttribute("geometry",Ws(this,"sphere",["radius","segments-width","segments-height","phi-start","phi-length","theta-start","theta-length"])+Ks(this,"geometry")),this.setAttribute("side","back")}))}}),customElements.define("a-cylinder",class extends zs{constructor(){super(),this.addEventListener("unityready",(()=>{this.hasAttribute("radius")&&!this.hasAttribute("radius-bottom")&&this.setAttribute("radius-bottom",this.getAttribute("radius")),this.hasAttribute("radius")&&!this.hasAttribute("radius-top")&&this.setAttribute("radius-top",this.getAttribute("radius")),this.setAttribute("geometry",Ws(this,"cylinder",["radius-top","radius-bottom","height","segments-radial","segments-height","open-ended","theta-start","theta-length","radius"])+Ks(this,"geometry"))}))}}),customElements.define("a-cone",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Ws(this,"cone",["radius","height","segments-radial","segments-height","open-ended","theta-start","theta-length"])+Ks(this,"geometry"))}))}}),customElements.define("a-ring",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Ws(this,"ring",["radius-inner","radius-outer","segments-theta","segments-phi","theta-start","theta-length"])+Ks(this,"geometry"))}))}}),customElements.define("a-circle",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Ws(this,"circle",["radius","segments","theta-start","theta-length"])+Ks(this,"geometry"))}))}}),customElements.define("a-torus",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("geometry",Ws(this,"torus",["tube","segments-radial","segments-tubular","arc"])+Ks(this,"geometry"))}))}}),customElements.define("a-sound",class extends zs{constructor(){super(),this.addEventListener("nodeready",(()=>{this.setAttribute("sound",Ut(Hs(this,["src","loop","volume","autoplay"]))+Ks(this,"sound"))}))}});const Zs=!0})(),BS=i})(); \ No newline at end of file diff --git a/README.md b/README.md index 0f718efd..e934379f 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,10 @@ Here you will find all the information you need to start building spaces and avatars in Banter. You should also [join our discord server](https://discord.gg/bantaverse) to interact with others interested in building spaces in Banter. +## Avatar Creation + +We have a new avatar system out in beta, including an extension for blender to make building avatars as easy as possible. +
Click Here For More Info Get your avatar ready for the Bantaverse. This plugin will help you set up your avatars with the correct LOD levels, prepare materials, and upload directly to your Banter account. @@ -115,7 +119,7 @@ For more guides and tutorials, please see some of these third party resources. Since our SDK is going to be open source, there are two ways that new functionality can be added. The first way is that we add functionality when we need it in Banter, which makes sense. The second is if a creator wants to add functionality to Banter. In that case we have a process for accepting contributions. -To find out more, check out our [Contribution Guidelines](/CONTRIBUTING) page. +To find out more, check out our [Contribution Guidelines](/CONTRIBUTING.md) page.