(self.webpackChunkmp_webgl=self.webpackChunkmp_webgl||[]).push([[6784],{72909:(e,t,i)=>{"use strict";i.d(t,{A:()=>a,F:()=>o});var n=i(96540),s=i(28913);function a(e){if(!e.prototype||!e.prototype.render)return e.__scuWrap||(e.__scuWrap=r(e,u));e.prototype.shouldComponentUpdate=d}function o(e){if(!e.prototype||!e.prototype.render)return e.__scuWrap||(e.__scuWrap=r(e,s.E7));e.prototype.shouldComponentUpdate=c}function r(e,t){class i extends l{}return i.prototype.renderChild=e,i.prototype.diffFunc=t,i}class l extends n.Component{shouldComponentUpdate(e){return this.diffFunc(e,this.props)}render(){return this.renderChild(this.props,this.context)}}function d(e,t){return u(e,this.props)||u(t,this.state)}function c(e,t){return u(e,this.props)||(0,s.E7)(t,this.state)}function u(e,t){for(const i in e)if(e[i]!==t[i])return!0;for(const i in t)if(!(i in e))return!0;return!1}},17246:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteExternalAttachment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attachmentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ParentType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteExternalAttachment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"attachmentId"},value:{kind:"Variable",name:{kind:"Name",value:"attachmentId"}}},{kind:"Argument",name:{kind:"Name",value:"parentType"},value:{kind:"Variable",name:{kind:"Name",value:"parentType"}}},{kind:"Argument",name:{kind:"Name",value:"parentId"},value:{kind:"Variable",name:{kind:"Name",value:"parentId"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveFileAttachment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attachmentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ParentType"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"parentId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"removeFileAttachment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"attachmentId"},value:{kind:"Variable",name:{kind:"Name",value:"attachmentId"}}},{kind:"Argument",name:{kind:"Name",value:"parentType"},value:{kind:"Variable",name:{kind:"Name",value:"parentType"}}},{kind:"Argument",name:{kind:"Name",value:"parentId"},value:{kind:"Variable",name:{kind:"Name",value:"parentId"}}}],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FileAttachmentDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FileAttachment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bytes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mimeType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadUrl"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageFileAttachment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageWidth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageHeight"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ExternalAttachmentDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ExternalAttachment"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mediaType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parentDetails"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]}]}}],loc:{start:0,end:1139}};t.loc.source={body:"\n# Deletes a single external attachment\nmutation DeleteExternalAttachment($modelId: ID!, $attachmentId: ID!, $parentType: ParentType!, $parentId: ID!) {\n deleteExternalAttachment(modelId: $modelId, , attachmentId: $attachmentId, parentType: $parentType, parentId: $parentId)\n}\n\n# Removes a file attachment association from the annotation it is attached to.\n# Can delete the file attachment completely if the 'cascadeDelete' flag is set to true (not currently used)\nmutation RemoveFileAttachment($modelId: ID!, $attachmentId: ID!, $parentType: ParentType!, $parentId: ID!) {\n removeFileAttachment(modelId: $modelId, , attachmentId: $attachmentId, parentType: $parentType, parentId: $parentId)\n}\n\nfragment FileAttachmentDetails on FileAttachment {\n id\n created\n filename\n url\n validUntil\n bytes\n mimeType\n downloadUrl\n ...on ImageFileAttachment {\n imageWidth\n imageHeight\n }\n}\n\n# common External Attachment properties\nfragment ExternalAttachmentDetails on ExternalAttachment {\n id\n created\n modified\n thumbnailUrl\n url\n mediaType\n width\n height\n parentDetails { type, parent { id } }\n category\n validUntil\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.DeleteExternalAttachment=a(t,"DeleteExternalAttachment"),e.exports.RemoveFileAttachment=a(t,"RemoveFileAttachment"),e.exports.FileAttachmentDetails=a(t,"FileAttachmentDetails"),e.exports.ExternalAttachmentDetails=a(t,"ExternalAttachmentDetails")},98585:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetFloors"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelFloors"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelFloors"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"floors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FloorDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FloorDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelFloor"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classification"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sequence"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dimensions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"areaFloor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"units"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PatchFloor"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"floorId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FloorPatch"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchFloor"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"floorId"},value:{kind:"Variable",name:{kind:"Name",value:"floorId"}}},{kind:"Argument",name:{kind:"Name",value:"patch"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:442}};t.loc.source={body:"query GetFloors($modelId: ID!) {\n model(id: $modelId) {\n id\n ...ModelFloors\n }\n}\n\nfragment ModelFloors on Model {\n floors { ...FloorDetails }\n}\n\nfragment FloorDetails on ModelFloor {\n id\n meshId\n classification\n label\n sequence\n dimensions {\n areaFloor\n units\n }\n}\n\nmutation PatchFloor($modelId: ID!, $floorId: ID!, $data: FloorPatch!) {\n patchFloor(modelId: $modelId, , floorId: $floorId, patch: $data) {\n id\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetFloors=a(t,"GetFloors"),e.exports.ModelFloors=a(t,"ModelFloors"),e.exports.FloorDetails=a(t,"FloorDetails"),e.exports.PatchFloor=a(t,"PatchFloor")},96069:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetLabels"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LabelDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddLabel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"labelId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LabelDetails"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addLabel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"labelId"},value:{kind:"Variable",name:{kind:"Name",value:"labelId"}}},{kind:"Argument",name:{kind:"Name",value:"label"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LabelDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PatchLabel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"labelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LabelPatch"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchLabel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"labelId"},value:{kind:"Variable",name:{kind:"Name",value:"labelId"}}},{kind:"Argument",name:{kind:"Name",value:"patch"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LabelDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteLabel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"labelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteLabel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"labelId"},value:{kind:"Variable",name:{kind:"Name",value:"labelId"}}}],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LabelDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Label"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"room"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}}],loc:{start:0,end:1042}};t.loc.source={body:"# Read all labels for the given model\nquery GetLabels($modelId: ID!, $includeDisabled: Boolean!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n labels (includeDisabled: $includeDisabled) {\n ...LabelDetails\n }\n }\n}\n\n# Create a new label\nmutation AddLabel ($modelId: ID!, $labelId: ID, $data: LabelDetails!, $includeLayers: Boolean!) {\n addLabel(modelId: $modelId, labelId: $labelId, label: $data) {\n ...LabelDetails\n }\n}\n\n# Update a single label\nmutation PatchLabel ($modelId: ID!, $labelId: ID!, $data: LabelPatch!, $includeLayers: Boolean!) {\n patchLabel(modelId: $modelId, , labelId: $labelId, patch: $data) {\n ...LabelDetails\n }\n}\n\n# Deletes a single label\nmutation DeleteLabel ($modelId: ID!, ,$labelId: ID!) {\n deleteLabel(modelId: $modelId, labelId: $labelId)\n}\n\n# Default Label properties used by Showcase and Workshop\nfragment LabelDetails on Label {\n id\n position { x y z }\n floor { id meshId }\n room { id meshId }\n layer @include(if: $includeLayers) { id }\n label\n enabled\n created\n modified\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetLabels=a(t,"GetLabels"),e.exports.AddLabel=a(t,"AddLabel"),e.exports.PatchLabel=a(t,"PatchLabel"),e.exports.DeleteLabel=a(t,"DeleteLabel"),e.exports.LabelDetails=a(t,"LabelDetails")},92711:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetOrderedLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderedLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"ListValue",values:[]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetOrderedListByName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"label"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderedLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"label"},value:{kind:"Variable",name:{kind:"Name",value:"label"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddOrderedList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"label"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"entries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"EntryInput"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addOrderedList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"label"},value:{kind:"Variable",name:{kind:"Name",value:"label"}}},{kind:"Argument",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"Argument",name:{kind:"Name",value:"entries"},value:{kind:"Variable",name:{kind:"Name",value:"entries"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddOrderedListWithLayer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"label"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"layerId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"entries"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"EntryInput"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addOrderedList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"label"},value:{kind:"Variable",name:{kind:"Name",value:"label"}}},{kind:"Argument",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"Argument",name:{kind:"Name",value:"layerId"},value:{kind:"Variable",name:{kind:"Name",value:"layerId"}}},{kind:"Argument",name:{kind:"Name",value:"entries"},value:{kind:"Variable",name:{kind:"Name",value:"entries"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"OrderedListDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OrderedList"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"entries"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EntryDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"EntryDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}}],loc:{start:0,end:1324}};t.loc.source={body:"\n# get the ordered lists for the specified model\nquery GetOrderedLists($modelId: ID!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n orderedLists(ids: []) {\n ...OrderedListDetails\n }\n }\n}\n\n# get an ordered list by name for the specified view\nquery GetOrderedListByName($modelId: ID!, $label: String!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n orderedLists(label: $label) {\n ...OrderedListDetails\n }\n }\n}\n\n# add a new ordered list\nmutation AddOrderedList($modelId: ID!, $label: String!, $description: String!, $entries: [EntryInput!], $includeLayers: Boolean!) {\n addOrderedList(modelId: $modelId, , label: $label, description: $description, entries: $entries) {\n ...OrderedListDetails\n }\n}\n\nmutation AddOrderedListWithLayer($modelId: ID!, $label: String!, $description: String!, $layerId: ID!, $entries: [EntryInput!], $includeLayers: Boolean!) {\n addOrderedList(modelId: $modelId, , label: $label, description: $description, layerId: $layerId, entries: $entries) {\n ...OrderedListDetails\n }\n}\n\n# Default OrderedList properties used by Showcase and Workshop\nfragment OrderedListDetails on OrderedList {\n id\n label\n layer @include(if: $includeLayers) { id }\n entries {\n ...EntryDetails\n }\n}\n\n# Default Entry properties\nfragment EntryDetails on Entry {\n id\n type\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetOrderedLists=a(t,"GetOrderedLists"),e.exports.GetOrderedListByName=a(t,"GetOrderedListByName"),e.exports.AddOrderedList=a(t,"AddOrderedList"),e.exports.AddOrderedListWithLayer=a(t,"AddOrderedListWithLayer"),e.exports.OrderedListDetails=a(t,"OrderedListDetails"),e.exports.EntryDetails=a(t,"EntryDetails")},27140:(e,t,i)=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMattertags"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mattertags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MattertagDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"RefreshTagFileAttachments"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mattertags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fileAttachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileAttachmentDetails"},directives:[]}]}}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddMattertag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mattertagId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MattertagDetails"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addMattertag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"mattertagId"},value:{kind:"Variable",name:{kind:"Name",value:"mattertagId"}}},{kind:"Argument",name:{kind:"Name",value:"mattertag"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMattertag"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mattertagId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteMattertag"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"mattertagId"},value:{kind:"Variable",name:{kind:"Name",value:"mattertagId"}}}],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MattertagDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Mattertag"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"room"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"anchorPosition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"stemEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stemNormal"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"stemLength"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"media"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mediaType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalAttachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ExternalAttachmentDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"fileAttachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileAttachmentDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"objectAnnotation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classification"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultKeywords"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"keywords"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]}]}}],loc:{start:0,end:1529}};n.loc.source={body:'#import "./attachments.gql"\n\n# read all mattertags for the specified model\nquery GetMattertags($modelId: ID!, $includeDisabled: Boolean!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n id,\n mattertags(includeDisabled: $includeDisabled) {\n ...MattertagDetails\n }\n }\n}\n\n# refresh file attachment expiring resources for all mattertags\nquery RefreshTagFileAttachments($modelId: ID!, $includeDisabled: Boolean!) {\n model(id: $modelId) {\n id,\n mattertags(includeDisabled: $includeDisabled) {\n id\n fileAttachments { ...FileAttachmentDetails }\n }\n }\n}\n\n# add a new mattertag\nmutation AddMattertag($modelId:ID!, $mattertagId: ID, $data: MattertagDetails!) {\n addMattertag(modelId: $modelId, mattertagId: $mattertagId, mattertag: $data) {\n id\n created\n modified\n }\n}\n\n# delete an existing tag by id\nmutation DeleteMattertag($modelId: ID!, $mattertagId: ID!) {\n deleteMattertag(modelId: $modelId, mattertagId: $mattertagId)\n}\n\n# common Mattertag properties used by Showcase and Workshop\nfragment MattertagDetails on Mattertag {\n id\n label\n description\n color\n enabled\n floor { id, meshId }\n room { id, meshId }\n layer @include(if: $includeLayers) { id } \n anchorPosition { x y z }\n stemEnabled\n stemNormal { x, y, z }\n stemLength\n media\n mediaType\n created\n modified\n externalAttachments { ...ExternalAttachmentDetails }\n fileAttachments { ...FileAttachmentDetails }\n objectAnnotation {\n id\n classification {\n defaultKeywords\n }\n }\n keywords\n icon\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}n.definitions=n.definitions.concat(i(17246).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!s[t]&&(s[t]=!0,!0)})));var o={};function r(e,t){for(var i=0;i0;){var l=a;a=new Set,l.forEach((function(e){s.has(e)||(s.add(e),(o[e]||new Set).forEach((function(e){a.add(e)})))}))}return s.forEach((function(t){var n=r(e,t);n&&i.definitions.push(n)})),i}n.definitions.forEach((function(e){if(e.name){var t=new Set;a(e,t),o[e.name.value]=t}})),e.exports=n,e.exports.GetMattertags=l(n,"GetMattertags"),e.exports.RefreshTagFileAttachments=l(n,"RefreshTagFileAttachments"),e.exports.AddMattertag=l(n,"AddMattertag"),e.exports.DeleteMattertag=l(n,"DeleteMattertag"),e.exports.MattertagDetails=l(n,"MattertagDetails")},64639:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMeasurements"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"measurementPaths"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"Variable",name:{kind:"Name",value:"includeDisabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeasurementDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddMeasurement"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MeasurementPathDetails"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addMeasurementPath"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PatchMeasurement"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pathId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MeasurementPathPatch"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchMeasurementPath"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"pathId"},value:{kind:"Variable",name:{kind:"Name",value:"pathId"}}},{kind:"Argument",name:{kind:"Name",value:"patch"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMeasurement"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pathId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteMeasurementPath"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"pathId"},value:{kind:"Variable",name:{kind:"Name",value:"pathId"}}}],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MeasurementDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MeasurementPath"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lineType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"points"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"room"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}}],loc:{start:0,end:903}};t.loc.source={body:"\nquery GetMeasurements($modelId: ID!, $includeDisabled: Boolean!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n id,\n measurementPaths(includeDisabled: $includeDisabled) {\n ...MeasurementDetails\n }\n }\n}\n\nmutation AddMeasurement($modelId: ID!, $data: MeasurementPathDetails!) {\n addMeasurementPath(modelId: $modelId, path: $data) {\n id\n }\n}\n\nmutation PatchMeasurement($modelId: ID!, $pathId: ID!, $data: MeasurementPathPatch!) {\n patchMeasurementPath(modelId: $modelId, , pathId: $pathId, patch: $data) {\n id\n }\n}\n\nmutation DeleteMeasurement($modelId: ID!, $pathId: ID!) {\n deleteMeasurementPath(modelId: $modelId, , pathId: $pathId)\n}\n\nfragment MeasurementDetails on MeasurementPath {\n id\n lineType\n label\n enabled\n points {\n position { x y z }\n floor { id meshId }\n room { id meshId }\n }\n layer @include(if: $includeLayers) { id }\n created\n modified\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetMeasurements=a(t,"GetMeasurements"),e.exports.AddMeasurement=a(t,"AddMeasurement"),e.exports.PatchMeasurement=a(t,"PatchMeasurement"),e.exports.DeleteMeasurement=a(t,"DeleteMeasurement"),e.exports.MeasurementDetails=a(t,"MeasurementDetails")},14991:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rootModelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visibility"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discoverable"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelStatus"},directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PhotoDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"publication"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"urlBrandingEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"socialSharingEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vrEnabled"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelPublicationDetails"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"published"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastPublished"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"presentedBy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"summary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultViewId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contact"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneNumber"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelAvailableAssets"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rootModelId"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelStatus"},directives:[]},{kind:"Field",name:{kind:"Name",value:"assets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"meshes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"formats"},value:{kind:"StringValue",value:"dam",block:!1}},{kind:"Argument",name:{kind:"Name",value:"resolutions"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"50k",block:!1},{kind:"StringValue",value:"500k",block:!1}]}},{kind:"Argument",name:{kind:"Name",value:"compressions"},value:{kind:"EnumValue",value:"none"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeshDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"textures"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TextureDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tilesets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TilesetDetails"},directives:[]}]}}]}},{kind:"Field",alias:{kind:"Name",value:"lod"},name:{kind:"Name",value:"policy"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"StringValue",value:"spaces.chunked.mesh.lod",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyOptions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelStatus"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MeshDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Mesh"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resolution"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TextureDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Texture"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resolution"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quality"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TilesetDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Tileset"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tilesetVersion"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tilesetDepth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tilesetPreset"},arguments:[],directives:[]}]}}],loc:{start:0,end:1289}};t.loc.source={body:'# Publicly available model details. Must not contain any private fields.\nfragment ModelDetails on Model {\n id\n rootModelId\n name\n visibility\n discoverable\n ...ModelStatus\n image { ...PhotoDetails }\n publication { ...PublicationDetails }\n options {\n urlBrandingEnabled\n socialSharingEnabled\n vrEnabled\n }\n}\n\nfragment PublicationDetails on ModelPublicationDetails {\n address\n published\n lastPublished\n presentedBy\n summary\n defaultViewId\n description\n externalUrl\n contact {\n name\n email\n phoneNumber\n }\n}\n\nfragment ModelAvailableAssets on Model {\n id\n rootModelId\n ...ModelStatus\n assets {\n meshes(formats: "dam", resolutions: ["50k", "500k"], compressions: none) { ...MeshDetails }\n textures { ...TextureDetails }\n tilesets { ...TilesetDetails }\n }\n lod: policy(name: "spaces.chunked.mesh.lod") {\n ... on PolicyOptions {\n options\n }\n }\n}\n\nfragment ModelStatus on Model {\n state\n}\n\nfragment MeshDetails on Mesh {\n id\n status\n filename\n format\n resolution\n url\n validUntil\n}\n\nfragment TextureDetails on Texture {\n id\n status\n format\n resolution\n quality\n urlTemplate\n validUntil\n}\n\nfragment TilesetDetails on Tileset {\n status\n tilesetVersion\n url\n urlTemplate\n validUntil\n tilesetDepth\n tilesetPreset\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.ModelDetails=a(t,"ModelDetails"),e.exports.PublicationDetails=a(t,"PublicationDetails"),e.exports.ModelAvailableAssets=a(t,"ModelAvailableAssets"),e.exports.ModelStatus=a(t,"ModelStatus"),e.exports.MeshDetails=a(t,"MeshDetails"),e.exports.TextureDetails=a(t,"TextureDetails"),e.exports.TilesetDetails=a(t,"TilesetDetails")},82038:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelPlayerOptions"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publication"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationOptions"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ModelOptions"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelOptions"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelOptions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"backgroundColor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defurnishViewEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dollhouseEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dollhouseLabelsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floorSelectEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floorplanEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"highlightReelEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"labelsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"measurements"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"roomBoundsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"socialSharingEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"spaceSearchEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourButtonsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourDollhousePanSpeed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourFastTransitionsEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourPanAngle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourPanDirection"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourPanSpeed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourTransitionSpeed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourTransitionTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tourZoomDuration"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unitType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlBrandingEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vrEnabled"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicationOptions"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelPublicationOptions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contactEmail"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contactName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"contactPhone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modelName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modelSummary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"presentedBy"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"externalUrl"},arguments:[],directives:[]}]}}],loc:{start:0,end:854}};t.loc.source={body:"# Model fields to populate PlayerOptions\nfragment ModelPlayerOptions on Model {\n publication {\n options { ...PublicationOptions }\n }\n options { ...ModelOptions }\n}\n\nfragment ModelOptions on ModelOptions {\n backgroundColor\n defurnishViewEnabled\n dollhouseEnabled\n dollhouseLabelsEnabled\n floorSelectEnabled\n floorplanEnabled\n highlightReelEnabled\n labelsEnabled\n measurements\n roomBoundsEnabled\n socialSharingEnabled\n spaceSearchEnabled\n tourButtonsEnabled\n tourDollhousePanSpeed\n tourFastTransitionsEnabled\n tourPanAngle\n tourPanDirection\n tourPanSpeed\n tourTransitionSpeed\n tourTransitionTime\n tourZoomDuration\n unitType\n urlBrandingEnabled\n vrEnabled\n}\n\nfragment PublicationOptions on ModelPublicationOptions {\n contactEmail\n contactName\n contactPhone\n modelName\n modelSummary\n presentedBy\n address\n externalUrl\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.ModelPlayerOptions=a(t,"ModelPlayerOptions"),e.exports.ModelOptions=a(t,"ModelOptions"),e.exports.PublicationOptions=a(t,"PublicationOptions")},25e3:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"OverlayLayerExists"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"overlayLayers"},name:{kind:"Name",value:"layers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"types"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"matterport.overlay.assets",block:!1}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"OverlayViewIds"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rootModelId"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"defurnishViews"},name:{kind:"Name",value:"views"},arguments:[{kind:"Argument",name:{kind:"Name",value:"types"},value:{kind:"StringValue",value:"matterport.model.defurnished",block:!1}}],directives:[{kind:"Directive",name:{kind:"Name",value:"onError"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"StringValue",value:"not.found",block:!1}},{kind:"Argument",name:{kind:"Name",value:"null"},value:{kind:"BooleanValue",value:!0}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:529}};t.loc.source={body:'\n# presence of overlay layers hints the current loaded view has alternate sweeps (Defunrnish)\nfragment OverlayLayerExists on Model {\n overlayLayers: layers(types: ["matterport.overlay.assets"]) {\n id\n }\n}\n\n# we need both base and defurnish view id\'s in order to manually sync position/placement writes across\nfragment OverlayViewIds on Model {\n rootModelId\n # defurnish view, if exists\n defurnishViews: views(types: "matterport.model.defurnished") @onError(id: "not.found", null: true) {\n model {\n id\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.OverlayLayerExists=a(t,"OverlayLayerExists"),e.exports.OverlayViewIds=a(t,"OverlayViewIds")},10600:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PhotoDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Photo"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"classification"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rootModelId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"downloadUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resolutions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"origin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"thumbnailUrl"},name:{kind:"Name",value:"resizeUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"resolution"},value:{kind:"EnumValue",value:"thumbnail"}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"presentationUrl"},name:{kind:"Name",value:"resizeUrl"},arguments:[{kind:"Argument",name:{kind:"Name",value:"resolution"},value:{kind:"EnumValue",value:"presentation"}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"snapshotLocation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewMode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"rotation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"w"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"zoom"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floorVisibility"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sequence"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"anchor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pano"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"placement"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:586}};t.loc.source={body:"\nfragment PhotoDetails on Photo {\n id\n label\n classification\n category\n model {\n id\n rootModelId\n }\n height\n width\n created\n modified\n status\n filename\n format\n url\n downloadUrl\n resolutions\n type\n origin\n validUntil\n thumbnailUrl: resizeUrl(resolution: thumbnail)\n presentationUrl: resizeUrl(resolution: presentation)\n snapshotLocation {\n viewMode\n position { x y z }\n rotation { x y z w }\n zoom\n floorVisibility {\n id\n meshId\n sequence\n }\n anchor {\n id\n pano {\n id\n placement\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}(t,"PhotoDetails")},9192:(e,t,i)=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlugins"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sdkPlugins"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PluginDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeletePlugin"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteSdkPlugin"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlugin"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"patch"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SdkPluginPatch"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateSdkPlugin"},arguments:[{kind:"Argument",name:{kind:"Name",value:"modelId"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"patch"},value:{kind:"Variable",name:{kind:"Name",value:"patch"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PluginDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PluginDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SdkPlugin"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currentVersion"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"versions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"requiredPolicies"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"fileAttachments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FileAttachmentDetails"},directives:[]}]}}]}}],loc:{start:0,end:764}};n.loc.source={body:'#import "./attachments.gql"\n\n# read all plugins for the specified model\nquery GetPlugins($modelId: ID!) {\n model(id: $modelId) {\n id\n sdkPlugins {\n ...PluginDetails\n }\n }\n}\n\n# delete an existing plugin by id\nmutation DeletePlugin($modelId: ID!, $name: String!) {\n deleteSdkPlugin(modelId: $modelId, name: $name)\n}\n\nmutation UpdatePlugin($modelId: ID!, $name: String!, $patch: SdkPluginPatch!) {\n updateSdkPlugin(\n modelId: $modelId\n name: $name\n patch: $patch\n ) {\n ...PluginDetails\n }\n}\n\n# common Plugin properties used by Showcase and Workshop\nfragment PluginDetails on SdkPlugin {\n id\n name\n currentVersion\n description\n versions {\n version\n requiredPolicies\n }\n fileAttachments {\n ...FileAttachmentDetails\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,t)})),e.definitions&&e.definitions.forEach((function(e){a(e,t)}))}n.definitions=n.definitions.concat(i(17246).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!s[t]&&(s[t]=!0,!0)})));var o={};function r(e,t){for(var i=0;i0;){var l=a;a=new Set,l.forEach((function(e){s.has(e)||(s.add(e),(o[e]||new Set).forEach((function(e){a.add(e)})))}))}return s.forEach((function(t){var n=r(e,t);n&&i.definitions.push(n)})),i}n.definitions.forEach((function(e){if(e.name){var t=new Set;a(e,t),o[e.name.value]=t}})),e.exports=n,e.exports.GetPlugins=l(n,"GetPlugins"),e.exports.DeletePlugin=l(n,"DeletePlugin"),e.exports.UpdatePlugin=l(n,"UpdatePlugin"),e.exports.PluginDetails=l(n,"PluginDetails")},3718:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetModelPolicies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelPolicies"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelPolicies"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"policies"},arguments:[{kind:"Argument",name:{kind:"Name",value:"names"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"spaces.tours_v2",block:!1},{kind:"StringValue",value:"spaces.notes",block:!1},{kind:"StringValue",value:"spaces.visitor.subscriber.prompt",block:!1},{kind:"StringValue",value:"spaces.webgl.layers.mode",block:!1},{kind:"StringValue",value:"spaces.elements",block:!1},{kind:"StringValue",value:"spaces.chunked.mesh.lod",block:!1},{kind:"StringValue",value:"spaces.aws.twinmaker.sdk.access",block:!1},{kind:"StringValue",value:"spaces.sdk.qa",block:!1},{kind:"StringValue",value:"spaces.plugins",block:!1},{kind:"StringValue",value:"spaces.plugins.config",block:!1},{kind:"StringValue",value:"spaces.plugins.debug",block:!1},{kind:"StringValue",value:"spaces.plugins.groups",block:!1},{kind:"StringValue",value:"org.spaces.importtags",block:!1},{kind:"StringValue",value:"perm.spaces.workshop.edit",block:!1},{kind:"StringValue",value:"spaces.bundles.mp.defurnish",block:!1}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"type"},name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyFlag"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyOptions"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"options"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyValue"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PolicyFeature"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1175}};t.loc.source={body:'\n# get model policies available to all users\nquery GetModelPolicies($modelId: ID!) {\n model(id: $modelId) {\n id\n ...ModelPolicies\n }\n}\n\nfragment ModelPolicies on Model {\n # Subset of policies used by our apps\n # NOTE: in Showcase these will be prefetched as anonymous, so user-specific\n # policy values cannot be used there unless you explicitly requery them.\n policies(names: [\n # Model-level:\n "spaces.tours_v2",\n "spaces.notes",\n "spaces.visitor.subscriber.prompt",\n "spaces.webgl.layers.mode",\n "spaces.elements",\n "spaces.chunked.mesh.lod",\n\n # SDK/Plugins:\n "spaces.aws.twinmaker.sdk.access",\n "spaces.sdk.qa",\n "spaces.plugins",\n "spaces.plugins.config",\n "spaces.plugins.debug",\n "spaces.plugins.groups",\n\n # workshop plugin enablement\n "org.spaces.importtags",\n\n # Known to vary by user - only use in Workshop!\n "perm.spaces.workshop.edit",\n "spaces.bundles.mp.defurnish"\n ]) {\n name\n type: __typename\n ...on PolicyFlag {\n enabled\n }\n ...on PolicyOptions {\n options\n }\n ...on PolicyValue {\n value\n }\n ...on PolicyFeature {\n availability\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetModelPolicies=a(t,"GetModelPolicies"),e.exports.ModelPolicies=a(t,"ModelPolicies")},3073:(e,t,i)=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetModelPrefetch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sweepTags"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},defaultValue:{kind:"ListValue",values:[{kind:"StringValue",value:"showcase",block:!1}]},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"view"},value:{kind:"EnumValue",value:"default"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ModelAvailableAssets"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"OverlayLayerExists"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"OverlayViewIds"},directives:[]},{kind:"Field",name:{kind:"Name",value:"locations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"tags"},value:{kind:"Variable",name:{kind:"Name",value:"sweepTags"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AnchorLocationDetails"},directives:[]}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"PublicModelViews"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRootPrefetch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewLookup"}},type:{kind:"NamedType",name:{kind:"Name",value:"ViewLookupMode"}},defaultValue:{kind:"EnumValue",value:"root"},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"view"},value:{kind:"Variable",name:{kind:"Name",value:"viewLookup"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ModelDetails"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelPlayerOptions"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelFloors"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelRooms"},directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelPolicies"},directives:[]}]}}]}}],loc:{start:0,end:1747}};n.loc.source={body:'# Make sure the following imports do not import files themselves, it seems\n# to mess up the platform side parsing. That is why you see these\n# -fragment.gql files below.\n\n#import "./model-fragments.gql"\n#import "./model-options-fragments.gql"\n#import "./photo-fragments.gql"\n#import "./floors.gql"\n#import "./rooms.gql"\n#import "./overlay-fragments.gql"\n#import "./sweeps-fragments.gql"\n#import "./view-fragments.gql"\n#import "./policy.gql"\n\n# Preloaded model data to be embedded into Showcase HTML page,\n# only load data that is required for Showcase to start,\n# not varied by user, and safe for long-term-cache type behavior.\n# Includes the default view.\n# (ie. NO Mattertags)\nquery GetModelPrefetch($modelId: ID!, $sweepTags: [String!] = ["showcase"]) {\n model(id: $modelId, view: default) {\n # MdsModelAssetsStore\n ...ModelAvailableAssets\n ...OverlayLayerExists\n ...OverlayViewIds\n\n # MdsSweepStore\n # an alternative that lets me pass $sweepTags: null to get all sweeps\n # in a workshop context\n locations(tags: $sweepTags) {\n ...AnchorLocationDetails\n }\n\n # LayersData.views - filtered to public only\n ...PublicModelViews\n }\n}\n\nquery GetRootPrefetch($modelId: ID!, $viewLookup: ViewLookupMode = root) {\n model(id: $modelId, view: $viewLookup) {\n # MdsModelStore\n ...ModelDetails\n\n # MdsPlayerOptionsStore\n # adds to the subset from the ModelDetails fragment\n ...ModelPlayerOptions\n\n # MdsFloorStore\n ...ModelFloors\n\n # MdsRoomStore\n ...ModelRooms\n\n # MdsPolicyStore\n # Policy values here will always be those for anonymous users; if any of them vary by\n # user and we care about them in Showcase, they\'ll need to be explicitly requeried.\n ...ModelPolicies\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!s[t]&&(s[t]=!0,!0)}))}function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}n.definitions=n.definitions.concat(a(i(14991).definitions)),n.definitions=n.definitions.concat(a(i(82038).definitions)),n.definitions=n.definitions.concat(a(i(10600).definitions)),n.definitions=n.definitions.concat(a(i(98585).definitions)),n.definitions=n.definitions.concat(a(i(26172).definitions)),n.definitions=n.definitions.concat(a(i(25e3).definitions)),n.definitions=n.definitions.concat(a(i(77583).definitions)),n.definitions=n.definitions.concat(a(i(31595).definitions)),n.definitions=n.definitions.concat(a(i(3718).definitions));var r={};function l(e,t){for(var i=0;i0;){var o=a;a=new Set,o.forEach((function(e){s.has(e)||(s.add(e),(r[e]||new Set).forEach((function(e){a.add(e)})))}))}return s.forEach((function(t){var n=l(e,t);n&&i.definitions.push(n)})),i}n.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),r[e.name.value]=t}})),e.exports=n,e.exports.GetModelPrefetch=d(n,"GetModelPrefetch"),e.exports.GetRootPrefetch=d(n,"GetRootPrefetch")},32126:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRoomBounds"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"floors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeUsed"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"vertices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"centerLineBias"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"thickness"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"relativeCenter"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lowerElevation"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"rooms"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"classifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"confidence"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"boundary"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"holes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"dimensionEstimates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"area"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"areaIndoor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"areaIndoorWithWalls"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"units"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ceiling"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"planes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"measurements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bottom"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"maxHeight"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minHeight"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"keywords"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRoomClassifications"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RoomClassifications"},directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RoomClassifications"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Query"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"roomClassifications"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"defaultKeywords"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1205}};t.loc.source={body:"query GetRoomBounds($modelId: ID!) {\n model(id: $modelId) {\n floors {\n id\n layer { id }\n edges(includeUsed: true) {\n id\n layer { id }\n type\n vertices { id layer { id } position { x y }}\n centerLineBias\n thickness\n openings {\n id\n width\n relativeCenter\n type\n height\n lowerElevation\n layer { id }\n }\n }\n }\n rooms {\n id\n layer { id }\n floor { id }\n classifications {\n id\n confidence\n label\n }\n boundary {\n edges { id }\n }\n holes {\n edges { id }\n }\n dimensionEstimates {\n area\n areaIndoor\n areaIndoorWithWalls\n width\n depth\n height\n units\n }\n ceiling {\n planes {\n measurements {\n bottom { x y z }\n height\n }\n }\n maxHeight\n minHeight\n }\n label\n keywords\n }\n }\n}\n\nquery GetRoomClassifications {\n ...RoomClassifications\n}\n\nfragment RoomClassifications on Query {\n roomClassifications {\n id\n label\n defaultKeywords\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetRoomBounds=a(t,"GetRoomBounds"),e.exports.GetRoomClassifications=a(t,"GetRoomClassifications"),e.exports.RoomClassifications=a(t,"RoomClassifications")},26172:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetRooms"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"FragmentSpread",name:{kind:"Name",value:"ModelRooms"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ModelRooms"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rooms"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RoomDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RoomDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelRoom"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dimensions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"depth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"areaFloor"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]}]}}],loc:{start:0,end:312}};t.loc.source={body:"\nquery GetRooms ($modelId: ID!) {\n model(id: $modelId) {\n id\n ...ModelRooms\n }\n}\n\nfragment ModelRooms on Model {\n rooms {\n ...RoomDetails\n }\n}\n\nfragment RoomDetails on ModelRoom {\n id\n meshId\n floor {\n id\n meshId\n }\n dimensions {\n height\n width\n depth\n areaFloor\n }\n tags\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.GetRooms=a(t,"GetRooms"),e.exports.ModelRooms=a(t,"ModelRooms"),e.exports.RoomDetails=a(t,"RoomDetails")},77583:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"SkyboxDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SkyboxPanorama"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"resolution"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"urlTemplate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tileResolution"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tileCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tileUrlTemplate"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"validUntil"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"SkyboxUrlDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PanoramicImageLocation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"resolutions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"skyboxes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SkyboxDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AnchorLocationDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AnchorLocation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"index"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"floor"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"room"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"meshId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"neighbors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pano"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sweepUuid"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"placement"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"source"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"rotation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"z"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"w"},arguments:[],directives:[]}]}},{kind:"FragmentSpread",name:{kind:"Name",value:"SkyboxUrlDetails"},directives:[]}]}}]}}],loc:{start:0,end:542}};t.loc.source={body:"fragment SkyboxDetails on SkyboxPanorama {\n resolution\n status\n urlTemplate\n tileResolution\n tileCount\n tileUrlTemplate\n validUntil\n}\n\nfragment SkyboxUrlDetails on PanoramicImageLocation {\n id\n resolutions\n skyboxes { ...SkyboxDetails }\n}\n\nfragment AnchorLocationDetails on AnchorLocation {\n id\n index\n floor { id, meshId }\n room { id, meshId }\n neighbors\n tags\n position { x y z }\n pano {\n id\n sweepUuid\n label\n placement\n source\n position { x y z }\n rotation { x y z w }\n ...SkyboxUrlDetails\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.SkyboxDetails=a(t,"SkyboxDetails"),e.exports.SkyboxUrlDetails=a(t,"SkyboxUrlDetails"),e.exports.AnchorLocationDetails=a(t,"AnchorLocationDetails")},31595:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PublicModelViews"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Model"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"views"},arguments:[{kind:"Argument",name:{kind:"Name",value:"types"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"matterport.model.default",block:!1},{kind:"StringValue",value:"matterport.model.layered",block:!1},{kind:"StringValue",value:"matterport.model.defurnished",block:!1},{kind:"StringValue",value:"matterport.user.view",block:!1}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ViewDetails"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ModelView"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rootModelId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"layers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"layer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"created"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"position"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visible"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:544}};t.loc.source={body:'# Subset of view types that are available to public users, i.e. safe for prefetch\nfragment PublicModelViews on Model {\n views(types: [\n "matterport.model.default",\n "matterport.model.layered",\n "matterport.model.defurnished",\n "matterport.user.view"\n ]) {\n ...ViewDetails\n }\n}\n\nfragment ViewDetails on ModelView {\n id\n type\n name\n enabled\n created\n modified\n model {\n rootModelId\n }\n layers {\n layer {\n id\n created\n modified\n type\n name\n label\n }\n position\n visible\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,t)})),e.definitions&&e.definitions.forEach((function(e){i(e,t)}))}var n={};function s(e,t){for(var i=0;i0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(n[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(t){var n=s(e,t);n&&i.definitions.push(n)})),i}t.definitions.forEach((function(e){if(e.name){var t=new Set;i(e,t),n[e.name.value]=t}})),e.exports=t,e.exports.PublicModelViews=a(t,"PublicModelViews"),e.exports.ViewDetails=a(t,"ViewDetails")},43066:(e,t,i)=>{var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetMergeDiff"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mergeDiff"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"src"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dest"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"typesModified"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetViews"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"viewId"}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AddUserView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"userDataLayer"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"masks"},value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"HighlightReel"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Label"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Mattertag"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"MeasurementPath"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Note"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"ObjectAnnotation"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"OrderedList"}}]}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"deleteLayersIfOrphaned"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"deleteLayersIfOrphaned"},value:{kind:"Variable",name:{kind:"Name",value:"deleteLayersIfOrphaned"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RenameView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SetViewEnabled"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"enabled"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"patchView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"enabled"},value:{kind:"Variable",name:{kind:"Name",value:"enabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ConvertRootViewToLayered"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"convertRootViewToLayered"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ConvertRootViewToLegacy"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"convertRootViewToLegacy"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"deleteLayersIfOrphaned"},value:{kind:"BooleanValue",value:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"MoveViewDataToLayer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"layerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewSelections"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LayeredViewSelection"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"moveViewData"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"srcViewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"destLayerId"},value:{kind:"Variable",name:{kind:"Name",value:"layerId"}}},{kind:"Argument",name:{kind:"Name",value:"viewSelections"},value:{kind:"Variable",name:{kind:"Name",value:"viewSelections"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteFromView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewSelections"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"LayeredViewSelection"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteFromView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"Argument",name:{kind:"Name",value:"viewSelections"},value:{kind:"Variable",name:{kind:"Name",value:"viewSelections"}}}],directives:[]}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DuplicateView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"enabled"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"addView"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"enabled"},value:{kind:"Variable",name:{kind:"Name",value:"enabled"}}},{kind:"Argument",name:{kind:"Name",value:"userDataLayer"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"masks"},value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"HighlightReel"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Label"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Mattertag"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"MeasurementPath"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Note"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"ObjectAnnotation"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"OrderedList"}}]}]}}]}},{kind:"Argument",name:{kind:"Name",value:"copyDataFrom"},value:{kind:"ListValue",values:[{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"HighlightReel"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Label"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Mattertag"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"MeasurementPath"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"Note"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"ObjectAnnotation"}}]},{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"viewId"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}},{kind:"ObjectField",name:{kind:"Name",value:"type"},value:{kind:"EnumValue",value:"OrderedList"}}]}]}},{kind:"Argument",name:{kind:"Name",value:"generateIds"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ViewDetails"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PublishView"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"viewId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"mergeMutator"},arguments:[{kind:"Argument",name:{kind:"Name",value:"src"},value:{kind:"Variable",name:{kind:"Name",value:"viewId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"merge"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSessionDiff"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"modelId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeLayers"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"model"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"modelId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"base"},name:{kind:"Name",value:"view"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"matterport.model.default",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LabelDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mattertags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MattertagDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"measurementPaths"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MeasurementDetails"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"orderedLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"ListValue",values:[]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"view"},name:{kind:"Name",value:"view"},arguments:[{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"matterport.workshop.session",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"model"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mattertags"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"measurementPaths"},arguments:[{kind:"Argument",name:{kind:"Name",value:"includeDisabled"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"modified"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"orderedLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"ListValue",values:[]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"OrderedListDetails"},directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:4185}};n.loc.source={body:'#import "./labels.gql"\n#import "./lists.gql"\n#import "./mattertags.gql"\n#import "./measurements.gql"\n#import "./view-fragments.gql"\n\n# Gets the data types that have changed between a view and the base model\nquery GetMergeDiff($viewId: ID!) {\n model(id: $viewId) {\n id\n mergeDiff {\n src\n dest\n typesModified\n }\n }\n}\n\n# Get available views for a model\nquery GetViews($modelId: ID!) {\n model(id: $modelId) {\n id\n views {\n ...ViewDetails\n }\n }\n}\n\n# Get one view\nquery GetView($viewId: ID!) {\n model(id: $viewId) {\n id\n views(ids: [$viewId]) {\n ...ViewDetails\n }\n }\n}\n\n# Adds a new User View using the base Model ID.\n# By default, it masks view-based data layer items\nmutation AddUserView($modelId: ID!, $name: String!) {\n addView(\n id: $modelId,\n name: $name,\n userDataLayer: {\n masks: [\n { type: HighlightReel },\n { type: Label },\n { type: Mattertag },\n { type: MeasurementPath },\n { type: Note },\n { type: ObjectAnnotation },\n { type: OrderedList },\n ]\n }\n ) {\n ...ViewDetails\n }\n}\n\n# Deletes a View using the base Model ID and the viewId to delete\n# deleteLayersIfOphaned: true will delete the Common layers if orphaned,\n# dedicated layers are deleted in all cases?\nmutation DeleteView($modelId: ID!, $viewId: ID!, $deleteLayersIfOrphaned: Boolean) {\n deleteView(id: $modelId, viewId: $viewId, deleteLayersIfOrphaned: $deleteLayersIfOrphaned)\n}\n\nmutation RenameView($viewId: ID!, $name: String!) {\n patchView(id: $viewId, name: $name) {\n name\n }\n}\n\nmutation SetViewEnabled($viewId: ID!, $enabled: Boolean) {\n patchView(id: $viewId, enabled: $enabled) {\n enabled\n }\n}\n\nmutation ConvertRootViewToLayered($modelId: ID!) {\n convertRootViewToLayered(id: $modelId) {\n ...ViewDetails\n }\n}\n\nmutation ConvertRootViewToLegacy($modelId: ID!) {\n convertRootViewToLegacy(id: $modelId, deleteLayersIfOrphaned: false) {\n ...ViewDetails\n }\n}\n\nmutation MoveViewDataToLayer($viewId: ID!, $layerId: ID, $viewSelections: [LayeredViewSelection!]) {\n moveViewData(\n id: $viewId\n srcViewId: $viewId\n destLayerId: $layerId\n viewSelections: $viewSelections\n )\n}\n\n# Deletes items from view\nmutation DeleteFromView($viewId: ID!, $viewSelections: [LayeredViewSelection!]) {\n deleteFromView(id: $viewId, viewSelections: $viewSelections)\n}\n\nmutation DuplicateView($modelId: ID!, $viewId: ID!, $name: String!, $enabled: Boolean) {\n addView(\n id: $modelId\n name: $name\n enabled: $enabled\n userDataLayer: {\n masks: [\n { type: HighlightReel },\n { type: Label },\n { type: Mattertag },\n { type: MeasurementPath },\n { type: Note },\n { type: ObjectAnnotation },\n { type: OrderedList },\n ]\n },\n copyDataFrom: [\n { viewId: $viewId, type: HighlightReel },\n { viewId: $viewId, type: Label },\n { viewId: $viewId, type: Mattertag },\n { viewId: $viewId, type: MeasurementPath },\n { viewId: $viewId, type: Note },\n { viewId: $viewId, type: ObjectAnnotation },\n { viewId: $viewId, type: OrderedList },\n ]\n generateIds: true,\n ) {\n ...ViewDetails\n }\n}\n\n# Merges the given view into the base model view\nmutation PublishView($viewId: ID!) {\n mergeMutator(src: $viewId) {\n merge {\n id\n }\n }\n}\n\n# Gets the data that has changed between the Workshop session and base model\nquery GetSessionDiff($modelId: ID!, $includeLayers: Boolean!) {\n model(id: $modelId) {\n base: view(type: "matterport.model.default") {\n id\n model {\n labels(includeDisabled: true) { ...LabelDetails }\n mattertags(includeDisabled: true) { ...MattertagDetails }\n measurementPaths(includeDisabled: true) { ...MeasurementDetails }\n orderedLists(ids: []) { ...OrderedListDetails }\n }\n }\n view: view(type: "matterport.workshop.session") {\n id\n model {\n labels(includeDisabled: true) { id modified }\n mattertags(includeDisabled: true) { id modified }\n measurementPaths(includeDisabled: true) { id modified }\n orderedLists(ids: []) { ...OrderedListDetails }\n }\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var s={};function a(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!s[t]&&(s[t]=!0,!0)}))}function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}n.definitions=n.definitions.concat(a(i(96069).definitions)),n.definitions=n.definitions.concat(a(i(92711).definitions)),n.definitions=n.definitions.concat(a(i(27140).definitions)),n.definitions=n.definitions.concat(a(i(64639).definitions)),n.definitions=n.definitions.concat(a(i(31595).definitions));var r={};function l(e,t){for(var i=0;i0;){var o=a;a=new Set,o.forEach((function(e){s.has(e)||(s.add(e),(r[e]||new Set).forEach((function(e){a.add(e)})))}))}return s.forEach((function(t){var n=l(e,t);n&&i.definitions.push(n)})),i}n.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),r[e.name.value]=t}})),e.exports=n,e.exports.GetMergeDiff=d(n,"GetMergeDiff"),e.exports.GetViews=d(n,"GetViews"),e.exports.GetView=d(n,"GetView"),e.exports.AddUserView=d(n,"AddUserView"),e.exports.DeleteView=d(n,"DeleteView"),e.exports.RenameView=d(n,"RenameView"),e.exports.SetViewEnabled=d(n,"SetViewEnabled"),e.exports.ConvertRootViewToLayered=d(n,"ConvertRootViewToLayered"),e.exports.ConvertRootViewToLegacy=d(n,"ConvertRootViewToLegacy"),e.exports.MoveViewDataToLayer=d(n,"MoveViewDataToLayer"),e.exports.DeleteFromView=d(n,"DeleteFromView"),e.exports.DuplicateView=d(n,"DuplicateView"),e.exports.PublishView=d(n,"PublishView"),e.exports.GetSessionDiff=d(n,"GetSessionDiff")},61385:()=>{},45371:()=>{},71865:()=>{},17240:()=>{},36404:(e,t,i)=>{"use strict";i(38630);var n=i(96068),s=(i(47892),i(97084)),a=i(31093),o=i(6539),r=i(27947),l=i(22585),d=i(65537),c=i(25316),u=i(87965),h=i(98239),m=i(24241),p=i(75778),E=i(66726),S=i(48539),O=i(64491),g=i(3249),T=i(45832),_=i(98147),A=i(10843),v=i(3073),N=i(32126),I=i(95386),L=i(47840),f=i(99625);const b=new A.Ay("showcase-prefetch");async function R(e){var t,i,n,s,a,o;const r={initialViewId:e.initialModelSid,rootModelId:e.initialModelSid,caches:[]};let l=f.G.PRELOAD;const d=e.overrideParams.prefetch;d&&Object.values(f.G).includes(d)&&(l=d);const c=new L.B({baseUrl:e.baseUrl,prefetchPolicy:l,initialData:I.P.getQuery("GetRootPrefetch"),query:v.GetRootPrefetch,variables:{modelId:e.initialModelSid,view:"root",sweepTags:e.inWorkshop?null:void 0},mdsContext:e.mdsContext,anonymous:!0}),u=new L.B({baseUrl:e.baseUrl,prefetchPolicy:l,initialData:I.P.getQuery("GetModelPrefetch"),query:v.GetModelPrefetch,variables:{modelId:e.initialModelSid,view:"default",sweepTags:e.inWorkshop?null:void 0},mdsContext:e.mdsContext,anonymous:!0}),h=new L.B({baseUrl:e.baseUrl,prefetchPolicy:l,initialData:I.P.getQuery("GetRoomClassifications"),query:N.GetRoomClassifications,variables:{},mdsContext:e.mdsContext,anonymous:!0});if(r.caches.push(c,u,h),l===f.G.NONE)return r;const m=await Promise.all([c.initialLoadPromise,u.initialLoadPromise,h.initialLoadPromise]);return r.rootModelId=(null===(n=null===(i=null===(t=m[0])||void 0===t?void 0:t.data)||void 0===i?void 0:i.model)||void 0===n?void 0:n.id)||r.rootModelId,r.initialViewId=(null===(o=null===(a=null===(s=m[1])||void 0===s?void 0:s.data)||void 0===a?void 0:a.model)||void 0===o?void 0:o.id)||r.initialViewId,b.debug({result:r,data:m}),r}var y=i(5174),M=i(71224),D=i(55057);var P=i(47737),k=i(65256),w=i(21875),C=i(19702),x=i(66846),H=i(2993),U=i(99583),G=i(73566),F=i(10711);const j=new A.Ay("AB");class V{constructor(e){this.values={};for(const t in e){const i=e[t];if(i&&i.ab)try{this.values[t]=B(i.ab)}catch(e){j.warn(`Skipping key ${t}, could not pick: ${e}`)}}}get(e){return this.values[e]}serialize(){return Object.keys(this.values).map((e=>`${e}:${this.values[e]}`))}}function B(e){if(0===e.length)throw Error("A/B cannot choose from an empty choice array");let t=0;for(const i of e){if(void 0===i.value||void 0===i.weight||i.weight<0)throw Error(`Malformed AB choice: ${i}`);t+=i.weight}const i=Math.random()*t;let n=0;for(const t of e)if(n+=t.weight,i<=n)return t.value}var W=i(90572),K=i(47299),z=i(75522),Y=i(28475),$=i(13767),Q=i(85204),q=i(38039),X=i(23500),Z=i(57811),J=i(60152),ee=i(80303),te=i(90160),ie=i(596);var ne=i(8333),se=i(78763),ae=i(46793),oe=i(9997),re=i(20563),le=i(80519),de=i(9114),ce=i(26482),ue=i(23338),he=i(23339),me=i(57447),pe=i(3645),Ee=i(31863);var Se=i(60818);var Oe=i(35404);async function ge({urlValues:e,settingsData:t,flags:i,loggedIn:n,inWorkshop:s,hasPolicy:a,domainDenylist:o}){const r=null!=(0,ue.un)(),l=e[pe.x$.enabled],d=i.has(pe.jg)?"0"!==l:"1"===l,c=a(pe.td)||"1"===e[pe.x$.forcePolicy],u=!n,h=t.tryGetProperty(Oe.qu,!1),m=e[pe.x$.forceReferrer]||document.referrer,p=await async function(e,t){if(!e)return!0;if(!window.crypto||!window.crypto.subtle)return!1;const i=new URL(e),n=(0,E.SE)(i.hostname),s=await(0,Ee.e8)(n);return!t.includes(s)}(m,o);Se.r.debug("referrer eligible: ",p.toString());const S=!r&&!s,g=function(e){return e.getOverrideParam("lang",(0,O.Ul)())}(t).startsWith("en"),T=d&&!h&&S&&g&&u;return{popupAllowed:T&&c&&p,bannerAllowed:T}}var Te=i(26059),_e=i(87419),Ae=i(70046),ve=i(3066),Ne=i(97171);var Ie=i(60766),Le=i(85281),fe=i(42390),be=i(30278);function Re(e){const t={width:"360",maxwidth:"360",maxheight:"640",url:e,native:"true",autoplay:"true"};if(e.includes("flickr")||e.includes("flic.kr")){const e=Math.max(window.screen.height,window.screen.width);t.maxwidth=t.maxheight=t.width=`${e}`}return{queryParams:new URLSearchParams(t),headers:{responseType:"json"}}}const ye=/^https:\/\/www.instagram.com/;const Me=/^https:\/\/www.facebook.com/,De=/^https:\/\/www.facebook.com\/(.*\/)?(posts\/|activity\/|photo\.php|photos\/|permalink\.php|media\/set|questions\/|notes\/)/,Pe=/^https:\/\/www.facebook.com\/(video\.php|.*\/videos\/)/;const ke=[{testUrl:function(e){return ye.test(e)},request:async function(e,t,i,n){const{queryParams:s,headers:a}=Re(e);i&&n&&s.append("access_token",`${i}|${n}`);const o=new URL(`https://graph.facebook.com/v10.0/instagram_oembed?${s.toString()}`);try{return await t.get(o.toString(),a)}catch(e){const t=e;throw new be.$A(t.error.message,t.status_code,t.error.type)}},apiKeys:["instagramAppId","instagramClientToken"]},{testUrl:function(e){return Me.test(e)},request:async function(e,t,i,n){const{queryParams:s,headers:a}=Re(e);i&&n&&s.append("access_token",`${i}|${n}`);const o=function(e){return De.test(e)?"https://graph.facebook.com/v10.0/oembed_post":Pe.test(e)?"https://graph.facebook.com/v10.0/oembed_video":"https://graph.facebook.com/v10.0/oembed_page"}(e),r=new URL(`${o}?${s.toString()}`);try{return await t.get(r.toString(),a)}catch(e){const t=e;throw new be.$A(t.error.message,t.status_code,t.error.type)}},apiKeys:["instagramAppId","instagramClientToken"]},{testUrl:()=>!0,request:async function(e,t,i){const{queryParams:n,headers:s}=Re(e);i&&n.append("key",i);const a=new URL(`${window.location.origin}/oembed?${n.toString()}`);try{return await t.get(a.toString(),s)}catch(e){const t=e;throw new be.$A(t.error_message,t.status_code,t.type)}},apiKeys:["embedlyKey"]}];var we=i(23716);const Ce={[we.K.GoogleMaps]:function(e,t){return e.thumbnail_url&&(e.thumbnail_url=`${e.thumbnail_url}&key=${t.googleMapsApiKey}`),e}};async function xe(e,t,i){const n=i.embedlyKey;if(n){const i=function(e,t){if(e.includes("i.embed.ly")||e.startsWith("blob:"))return e;const i=Math.max(window.screen.height,window.screen.width),n=`&url=${encodeURIComponent(e)}&width=${i}&height=${i}`;return`${window.location.origin}/1/display/resize?key=${t}${n}`}(e,n);return t.get(i,{responseType:"arraybuffer"}).then((e=>{return t=e,new Promise((e=>{t||Promise.resolve(null);const i=t=>{const i=t.target,n={width:i.naturalWidth,height:i.naturalHeight,url:o,type:fe.n.PHOTO,version:""};e(n)},n=new Uint8Array(t),s=new Blob([n]),a=new Image;a.addEventListener("load",(e=>i(e)));const o=URL.createObjectURL(s);a.src=o}));var t}))}return null}const He={[we.K.Behance]:!1,[we.K.FaceBook]:!1,[we.K.GoogleMaps]:"googleMapsApiKey",[we.K.Instagram]:["instagramAppId","instagramClientToken"],[we.K.LinkedIn]:!1,[we.K.MixCloud]:!1,[we.K.Pinterest]:!1,[we.K.Reddit]:!0,[we.K.TikTok]:!0,[we.K.Twitter]:!0,[we.K.Twitch]:!1};class Ue{constructor(e,t){this.cache={},this.queue=e,this.apiKeys=t}async getOEmbedData(e){const t=this.cache[e];if(t&&t.type!==fe.n.LINK)return Promise.resolve(t);let i,n;try{n=await function(e,t,i){for(const n of ke)if(n.testUrl(e)){const s=n.apiKeys.map((e=>i[e]));return n.request(e,t,...s)}throw new be.i1(e)}(e,this.queue,this.apiKeys)}catch(e){if(![401,404,501].includes(e.status))throw e;i=e}if(!n||n.type===fe.n.PHOTO){const t=(null==n?void 0:n.url)||e;try{const i=await xe(t,this.queue,this.apiKeys);if(i)return this.cache[e]=i,i}catch(e){if(!n)throw i||e}}if(!n)throw i||be.$A;return this.cache[e]=n,this.validate(n)}clearCache(){this.cache={}}validate(e){if(!((e,t)=>{const i=void 0===e.provider_name?void 0:He[e.provider_name.toLowerCase()];return"string"==typeof i?!!t[i]:Array.isArray(i)?i.every((e=>!!t[e])):!1!==i})(e,this.apiKeys))throw new be.aI(e.provider_name);if(e.type===fe.n.LINK)throw new be.Dm(e.provider_name);return function(e,t){if(void 0!==e.provider_name){const i=Ce[e.provider_name.toLowerCase()];if(i)return i(e,t)}return e}(e,this.apiKeys)}}var Ge=i(33156),Fe=i(49953),je=i(87766),Ve=i(91779),Be=i(40186),We=i(7584),Ke=i(62876);const ze="spaces.aws.twinmaker.sdk.access",Ye=new Map([["iot-twinmaker",ze]]);var $e=i(52030),Qe=i(924),qe=i(63282),Xe=i.n(qe),Ze=i(68182),Je=i.n(Ze),et=i(79680);const tt=new m.Vy("showcase");class it{constructor(e,t={},i=!1){var n;this.inWorkshop=e,this.editModePreferred=i,this.bindings=[],this.logLevel=m.$b.INFO,this.storeQueue=new s.L3,this.apiQueue=new s.L3,this.analyticsQueue=new s.L3({concurrency:1}),this.errorPromise=new a.i,this.forceLogin=!1,this.openingTool=null,this.uiLoading=Promise.resolve(),this.prefetchCaches=[],this.sceneLoader=new Ie.LazyLoader,this.modulesLoadedPromise=new a.i,this.jsonSchemaValidator=function(){const e=new(Xe())({strict:!1});return Je()(e),{addSchema(t){e.addSchema(t)},validate:(t,i)=>e.validate(t,i),getSchema:t=>e.getSchema(t),prettify:(e,t)=>(0,et.G)(e,t)}}(),this.stopTourHook=async e=>{const t=e.market.tryGetData(w.R);t&&t.tourPlaying&&(await e.commandBinder.issueCommand(new se.IP),await(0,S.cb)(10))},this.settingOverrides=Object.assign({},t),this.assetBasePath=this.settingOverrides.assetBasePath=function(e){e=e.replace(/\/*$/,"/");const t=new URL(e,document.baseURI),i=[/^https:\/\/static\.matterport\.com(:[0-9]+)?\//,/^https:\/\/static\.matterportvr\.cn(:[0-9]+)?\//,/^https:\/\/[^\/]+\.awsstatic\.com\/([^?#]+\/)?matterport\/.*/,/^http:\/\/(localhost|127\.0\.0\.1)(:[0-9]+)?\/.*/].find((e=>t.href.match(e)))?t.origin:document.baseURI;return new URL(t.pathname,i).toString()}(null!==(n=this.settingOverrides.assetBasePath)&&void 0!==n?n:"./");const{container:o,overrideParams:r=(0,p.EN)()}=this.settingOverrides;this.overrideParams=r,this.quickstart="1"===r.qs||void 0!==r.note||void 0!==r.tag;const l=r.applicationKey||t.applicationKey;(0,ue.pN)(l||null),this.apiHost=((e,t)=>{const i=e.apiHost||t.apiHost;if(i){const e=(0,E.zh)(i);if(e)return e}return window.location.origin})(r,this.settingOverrides),this.oEmbedDeferred=new a.i,this.oEmbedConsumer=this.oEmbedDeferred.nativePromise(),this.apiHost!==window.location.origin&&(this.settingOverrides.apiHost=this.apiHost),this.container=o||document.body,this.modelUrls=(0,E.$j)(r.m||r.model,this.apiHost),this.initialModelSid=this.modelUrls.sid,this.mdsContext=new de._(this.initialModelSid),this.mdsContext.simulateApiOutage="1"===r.simulateApiOutage?f.u.TIMEOUT:f.u.NONE,this.mdsContext.anonymousHeaderEnabled=!e}getManifest(){return[{type:T.nu,promise:()=>Promise.resolve().then(i.bind(i,6995))},{type:_.XT,promise:()=>Promise.resolve().then(i.bind(i,60384))},{type:_.uH,promise:()=>Promise.resolve().then(i.bind(i,60911))},{type:T.Ll,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,28614))},{type:o.WJ,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,3801))},{type:o.ZF,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,98239))},{type:T.aF,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,33183))},{type:o.S1,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,11889))},{type:_.q0,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,25959))},{type:T.Vc,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,80140))},{type:T.qL,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,60379))},{type:T.bj,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,75772))},{type:T.sA,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,39769))},{type:T.di,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,53084))},{type:T.Pn,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,83330))},{type:T.gS,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,95404))},{type:T.Wh,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,35872))},{type:T.$c,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,62303))},{type:T.M7,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,3538))},{type:T.CE,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,22899))},{type:T.mL,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,27474))},{type:_.bW,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,1548))},{type:_._r,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,15318))},{type:T.jh,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,39710))},{type:T.TV,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,63257))},{type:T.az,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,88346))},{type:T.Uu,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,58424))},{type:T.SH,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,21129))},{type:T.T9,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,74565))},{type:T.Z7,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,71927))},{type:T.UN,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,16821))},{type:T.fO,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(2593),i.e(3448),i.e(2713),i.e(1228),i.e(5528),i.e(1452),i.e(5385)]).then(i.bind(i,59906))},{type:T.dC,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,11871))},{type:T.iV,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,98217))},{type:T.SD,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,6002))},{type:T.yT,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,30794))},{type:T.HX,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,43440))},{type:T.kM,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,53028))},{type:T.N7,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,18136))},{type:T.X7,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,79109))},{type:T.TY,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,40742))},{type:T.X$,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,47649))},{type:T.QW,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,25293))},{type:T.PD,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,69325))},{type:T.pR,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,38208))},{type:T.zj,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,79661))},{type:T.dT,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,98842))},{type:T.et,promise:()=>i.e(3907).then(i.bind(i,93907))},{type:_.ur,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,13070))},{type:_.T6,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,6025))},{type:_.K4,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,9120))},{type:T.Kv,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,47167))},{type:T.GR,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,68702))},{type:_.L8,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,29228))},{type:T.PM,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,35396))},{type:T.Ne,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,65051))},{type:T._q,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,74072))},{type:T.JY,promise:()=>Promise.all([i.e(8893),i.e(7888),i.e(7788),i.e(8287),i.e(2593),i.e(3153),i.e(3448),i.e(452),i.e(9114)]).then(i.bind(i,30935))},{type:T.qD,promise:()=>Promise.all([i.e(8893),i.e(1496)]).then(i.bind(i,91496))},{type:T.Et,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,92899))},{type:T.qy,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,96304))},{type:T.rA,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,12797))},{type:T.ep,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,13230))},{type:T.zX,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,33694))},{type:T._v,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,35206))},{type:y.r,promise:()=>i.e(1884).then(i.bind(i,51884))},{type:T.yR,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,24679))},{type:T.Xx,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,88705))},{type:T.ZF,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,40266))},{type:T.N9,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,17160))},{type:T.kd,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,12251))},{type:T.TN,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,46955))},{type:T.gy,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,64496))},{type:T.cy,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,79747))},{type:T.Tx,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,41418))},{type:_.bw,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,10689))},{type:T.kG,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,67589))},{type:T.Yj,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,76039))},{type:T.PJ,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,78854))},{type:T.J$,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,31403))},{type:T.AO,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,43131))},{type:T.Np,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,43887))},{type:T.gk,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,39256))},{type:T.LG,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,64382))},{type:T.f0,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,89499))},{type:T.co,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,26519))},{type:T.wY,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,14288))},{type:T.lN,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(6301),i.e(3448),i.e(7863),i.e(5528),i.e(7475)]).then(i.bind(i,48319))},{type:T.eE,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,49216))},{type:T.Yr,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,83681))},{type:T.aU,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,35460))},{type:T.FI,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,1046))},{type:T.zy,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,8706))},{type:T.QS,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,31993))},{type:T.He,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,33062))},{type:T.se,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,20692))},{type:T.Xf,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,97851))},{type:T.XQ,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,62140))},{type:T.tQ,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,88545))},{type:T.YC,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,25647))},{type:T.Vu,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,33930))},{type:T.rz,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,28391))},{type:T.A5,promise:()=>Promise.all([i.e(8893),i.e(654),i.e(7888),i.e(6301),i.e(9413),i.e(5464),i.e(6888),i.e(1452),i.e(777)]).then(i.bind(i,1892))},{type:T.vM,promise:()=>Promise.all([i.e(8893),i.e(7788),i.e(9589),i.e(5001)]).then(i.bind(i,45667))},{type:T.lf,promise:()=>Promise.all([i.e(8893),i.e(7788),i.e(9589),i.e(5001)]).then(i.bind(i,99460))},{type:T.N4,promise:()=>Promise.all([i.e(7788),i.e(6900)]).then(i.bind(i,378))},{type:T.KT,promise:()=>Promise.all([i.e(7888),i.e(5e3),i.e(7209),i.e(7504),i.e(7177)]).then(i.bind(i,87177))}]}getAppPhases(e){return{[r.Jj.UNINITIALIZED]:[],[r.Jj.WAITING]:[(async()=>{await e.getModuleBySymbol(_.XT)})()],[r.Jj.LOADING]:[(async()=>(await e.getModuleBySymbol(_.XT)).waitForPlaying)()],[r.Jj.STARTING]:[(async()=>(await e.getModuleBySymbol(_.T6)).waitForFirstRender)(),(async()=>(await e.getModuleBySymbol(T.fO)).waitForData)()],[r.Jj.PLAYING]:[(async()=>(await e.getModuleBySymbol(_.T6)).waitForFlyin)()],[r.Jj.ERROR]:[this.errorPromise.nativePromise()]}}stop(){this.engineTick&&this.engineTick.stop()}setError(e){this.errorPromise.reject(e),this.stop()}async load(e,t){var n,s,a;e.diContainer.get(Qe.W8).resolve(),this.engine=e,this.engine.loadModuleBySymbol({type:o.WJ,config:{tasks:this.getAppPhases(e)}});const c=await this.engine.loadModuleBySymbol({type:o.ZF,config:{useGUI:!0,queryScope:this.container.getRootNode(),overrideParams:this.overrideParams}});this.loadAnalytics();const u=(await this.engine.loadModuleBySymbol({type:T.qL,config:{baseUrl:this.modelUrls.urlBase,apiQueue:this.apiQueue,storeQueue:this.storeQueue,preloadConfig:"showcase",mdsContext:this.mdsContext}})).getApi(),p=await u.user,E=p.loggedIn,S=this.setInitialSettings(p,c,t);if(e.getModuleBySymbol(o.WJ).then((i=>{i.updateActiveApp(r.lg.SHOWCASE),t.coldStart||e.broadcast(new l.Fj(r.lg.SHOWCASE))})),e.market.waitForData(r.zH).then((t=>{t.onChanged((async()=>{const i=this.overrideParams.oops;if(i&&t.phase!==r.Jj.ERROR&&(t.phase=r.Jj.ERROR),t.phase===r.Jj.ERROR){const n=t.error,s=await e.getModuleBySymbol(_.bW);throw i?s.showError(i):n instanceof re.X5?s.showError(M.b.MODEL_ARCHIVED):n instanceof re.Q8?s.showError(M.b.MODEL_COMPLIANCE):n instanceof re.a_?s.showError(M.b.MODEL_DELETED):n instanceof re.GI?s.showError(M.b.MODEL_FAILED):n instanceof re.cC?s.showError(M.b.MODEL_PENDING):n instanceof re.Wz?s.showError(M.b.MODEL_PROCESSING):n instanceof F.s?s.showError(M.b.WEBGL_UNSUPPORTED):n instanceof F.y?s.showError(M.b.WEBGL_GENERIC):s.showError(M.b.GENERIC),n}}))})),this.bindings.push((0,Ae.$2)({messageBus:this.engine.msgBus}),function(e){const t=[];return t.push(new Ae.GL({symbol:Ne.D.ModelMesh,callback:()=>Promise.all([i.e(8893),i.e(7888),i.e(8287),i.e(2593),i.e(3153),i.e(452),i.e(2276)]).then(i.bind(i,86465)).then((t=>t.default(e.engine)))})),e.urlValues.debug&&t.push(new Ae.GL({symbol:Ne.D.Navigation,callback:()=>Promise.all([i.e(6301),i.e(9413),i.e(1228),i.e(3745)]).then(i.bind(i,50857)).then((t=>t.default(e.engine)))}),new Ae.GL({symbol:Ne.D.Octree,callback:()=>Promise.all([i.e(6301),i.e(9413),i.e(1228),i.e(3745)]).then(i.bind(i,46317)).then((t=>t.default(e.engine)))}),new Ae.GL({symbol:Ne.D.PanoTiles,callback:()=>Promise.all([i.e(6301),i.e(9413),i.e(1228),i.e(3745)]).then(i.bind(i,2942)).then((t=>t.default(e.engine)))}),new Ae.GL({symbol:Ne.D.Raycaster,callback:()=>Promise.all([i.e(6301),i.e(9413),i.e(1228),i.e(3745)]).then(i.bind(i,12655)).then((t=>t.default(e.engine)))}),new Ae.GL({symbol:Ne.D.Snapping,callback:()=>Promise.all([i.e(6301),i.e(9413),i.e(1228),i.e(3745)]).then(i.bind(i,9831)).then((t=>t.default(e.engine)))}),new Ae.GL({symbol:Ne.D.WebGLRenderer,callback:()=>Promise.all([i.e(6301),i.e(9413),i.e(1228),i.e(3745)]).then(i.bind(i,33796)).then((t=>t.default(e.engine)))})),e.urlValues.tiledmesh&&t.push(new Ae.GL({symbol:Ne.D.StreamingMesh,callback:()=>Promise.all([i.e(8893),i.e(7888),i.e(8287),i.e(2593),i.e(3153),i.e(452),i.e(2276)]).then(i.bind(i,72311)).then((t=>t.default(e.engine)))}),new Ae.GL({symbol:Ne.D.StreamingTexture,callback:()=>Promise.all([i.e(8893),i.e(7888),i.e(8287),i.e(2593),i.e(3153),i.e(452),i.e(2276)]).then(i.bind(i,12850)).then((t=>t.default(e.engine)))})),t.forEach((t=>e.messageBus.broadcast(t))),(0,ve.Sh)((()=>null),(()=>t.forEach((t=>e.messageBus.broadcast(new Ae.nt(t.payload))))))}({engine:this.engine,messageBus:this.engine.msgBus,urlValues:this.overrideParams})),!t.coldStart)return void(this.uiLoading=this.loadUI(!0));tt.info("Showcase app version: 25.3.3_webgl-370-gda98f20035");const{container:A}=this;this.canvas=document.createElement("canvas"),this.canvas.className="webgl-canvas";const v=A.querySelector("#canvas-container"),N=A.querySelector("#app-container"),I=A.querySelector("main")||document.body,L=A.querySelector("#react-render-root")||document.body;this.logLevel=parseInt(this.overrideParams.log,10),this.overrideParams.hasOwnProperty("log")&&!isNaN(this.logLevel)&&(m.Vy.level=this.logLevel),this.quickstart&&tt.info("Quickstart engaged. Hold on to your knickers. "+performance.now()),this.engine.loadModuleBySymbol({type:T.Z7,config:{element:this.container}}),this.engine.loadModuleBySymbol({type:T.gS,config:{isLoggedIn:p.loggedIn,queue:this.apiQueue}}),e.loadModuleBySymbol({type:_.bW,config:{apiHost:this.apiHost,container:this.container}}),e.loadModuleBySymbol({type:T.Ll,config:{container:this.container}}),this.apiConfig=await u.getConfigs("showcase");const f=this.overrideParams.apq;this.mdsContext.apqEnabled=!0===this.apiConfig.apollo_apq?"0"!==f:"1"===f;const b=await R({anonymous:!0,baseUrl:this.apiHost,initialModelSid:this.initialModelSid,inWorkshop:this.inWorkshop,mdsContext:this.mdsContext,overrideParams:this.overrideParams});b.caches.forEach((e=>{this.prefetchCaches.push(e),this.mdsContext.sharedCaches.add(e)})),this.initialViewId=b.initialViewId,this.baseModelId=b.rootModelId;const P=this.overrideParams.applicationKey||this.settingOverrides.applicationKey;await this.startAuthAndPolicyModules(u,P),this.engine.loadModuleBySymbol({type:T.M7,config:{canvas:this.canvas,antialias:"1"===this.overrideParams.aa,useEffectComposer:!(!this.settingOverrides||!this.settingOverrides.hasOwnProperty("useEffectComposer"))&&!!this.settingOverrides.useEffectComposer}}),this.engine.loadModuleBySymbol({type:T.jh}),this.engine.loadModuleBySymbol({type:T.CE,config:{canvas:this.canvas,container:v}}),this.engine.loadModuleBySymbol({type:T.TV}),this.engine.loadModuleBySymbol({type:T.J$});const k=await e.getModuleBySymbol(T.M7);this.engineTick=new d.c(this.engine,k.threeRenderer,(e=>{this.engine.getModuleBySymbol(_.bW).then((t=>{this.setError(e),t.showError(M.b.GENERIC)}))})),this.setupOEmbedConsumer(this.settingOverrides.embedlyKey);const j=p.getFlags("showcase/"),{q:B,qK:K,qF:Y}=this.overrideParams;this.engine.loadModuleBySymbol({type:_._r,config:{notificationDelayFrames:60}});const{settingsData:Q}=c;this.openingTool=(0,x.X)(Q),this.forceLogin=this.openingTool===G.S0.NOTES&&!E&&!(0,O.al)();let q=this.editModePreferred;q&&this.forceLogin&&(tt.warn("Cannot start in edit mode. Need to login to view note."),q=!1);const X={[ne.Oe]:null,quickstart:this.quickstart,lang:this.overrideParams.lang,perf:this.overrideParams.perf,perfInterval:this.overrideParams.perfInterval,[Oe.k5]:(null===(n=this.apiConfig)||void 0===n?void 0:n.discover_space_url)||""};for(const e in X)c.updateSetting(e,X[e]);if(this.settingOverrides)for(const e in this.settingOverrides)c.updateSetting(e,this.settingOverrides[e]);const Z=new V(this.apiConfig),J=null!==(s=null==Z?void 0:Z.serialize())&&void 0!==s?s:[];this.loadInitialAppModules(J,k.gpuInfo);const te=await this.engine.market.waitForData(Fe.L),le=await this.loadViewsAndStorage(this.initialViewId);this.baseModelId=le,await this.engine.loadModuleBySymbol({type:T.SH,config:{baseUrl:this.modelUrls.urlBase,api:u,viewId:this.initialViewId,queue:this.apiQueue,mdsContext:this.mdsContext}}),this.forceLogin&&this.openingTool===G.S0.NOTES&&await this.loginToNote(this.baseModelId),c.hasProperty(z.vg)||c.updateSetting(z.vg,this.apiConfig.embedly_key),this.loadInitialDataModules(S,q);const de=()=>this.stopTourHook(e);e.commandBinder.hookCommand(oe.aj,!0,de),e.commandBinder.hookCommand(ae.S2,!0,de),e.commandBinder.hookCommand(se.OR,!0,de);try{await e.waitForLoadingModules(void 0,[T.Vu])}catch(t){this.setError(t),e.tick()}const[ue,he,Ee]=await Promise.all([e.market.waitForData(D.q),e.market.waitForData(Ge.E),e.market.waitForData(ce.G)]);this.engine.loadModuleBySymbol({type:T.UN,config:{calculateTrimmedBounds:!0}});const{details:_e}=ue.model;A.getRootNode()instanceof ShadowRoot||(document.title=_e.name),this.canvas.setAttribute("aria-label",_e.name);const Ie=Ee.getStartingPose();!this.quickstart||Ie&&(0,H.vy)(Ie.mode)||(tt.warn("Disabling quickstart. No panorama start position."),this.quickstart=!1,c.updateSetting("quickstart",!1));const{maxMeshTextureQuality:Le,textureLODThreshold:fe}=(e=>{let t,i;return(0,O.Fr)()?(0,O.Fr)()&&e?(t=ie.M.ULTRA,i=10):(t=ie.M.MEDIUM,i=6):(t=ie.M.ULTRA,i=20),{maxMeshTextureQuality:t,textureLODThreshold:i}})(k.isHighPerformanceMobileGPU());tt.info({maxMeshTextureQuality:Le,textureLODThreshold:fe,gpuInfo:k.gpuInfo}),this.sceneLoader.setLoader((async()=>{var t;const i=await e.loadModuleBySymbol({type:T.KT});return"1"===(null!==(t=this.overrideParams.loadExamples)&&void 0!==t?t:"1")&&await(0,Ve.q)(),i.startLoading(),i})),await this.engine.loadModuleBySymbol({type:T.qD}),await this.engine.loadModuleBySymbol({type:T.iV}),this.quickstart&&(this.loadPanoControls(q),this.engineTick.start());{const e=this.setPluginPolicySettings(Q,te);this.engine.loadModuleBySymbol({type:T.lf,config:{queue:this.storeQueue,modelId:this.baseModelId,apiHostBaseUrl:this.modelUrls.urlBase,pluginPolicies:e}}),this.engine.loadModuleBySymbol({type:T.vM,config:{mainDiv:I}}),this.engine.loadModuleBySymbol({type:T.JY}),this.engine.loadModuleBySymbol({type:T.N4,config:{pluginPolicies:e,editMode:q,jsonSchemaValidator:this.jsonSchemaValidator}})}await(await e.getModuleBySymbol(_.XT)).waitForPlaying,this.canvas.setAttribute("tabIndex","0"),this.engine.loadModuleBySymbol({type:T.X$,config:{container:this.container}});const be=function(e,{dracoDecoderPath:t,basisTranscoderPath:i}){let n="webgl-vendors/three/0.171.0/";return!/^https?:\/\//.test("webgl-vendors/three/0.171.0/")&&(n=`webgl-vendors/three/0.171.0/`),{dracoDecoderPath:t||`${n}libs/draco/gltf/`,basisTranscoderPath:i||`${n}libs/basis/`}}(this.assetBasePath,{dracoDecoderPath:this.settingOverrides.dracoDecoderPath,basisTranscoderPath:this.settingOverrides.basisTranscoderPath});this.engine.loadModuleBySymbol({type:T.GR,config:{startingMode:this.quickstart?Ie.mode:null,textureLOD:W.R.RAYCAST,colorizeRooms:"1"===this.overrideParams.colorizeRooms,colorizeChunks:"1"===this.overrideParams.colorizeChunks,wireframe:"1"===this.overrideParams.wireframe,gltfConfig:be}}),this.engine.loadModuleBySymbol({type:T.fO,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:_.L8,config:{maxQuality:Le,textureLOD:W.R.RAYCAST,textureLODThreshold:fe}}),this.engine.loadModuleBySymbol({type:T.yT}),this.engine.loadModuleBySymbol({type:T.SD,config:{startingMode:this.quickstart?Ie.mode:null}}),this.engine.loadModuleBySymbol({type:T.PD,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase}}),this.engine.loadModuleBySymbol({type:T.dC}),this.engine.loadModuleBySymbol({type:T.HX,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:T.QW,config:{startingFloorsVisibility:this.quickstart?Ie.floorVisibility:void 0,allowFloorChanges:S.Features[ee.p]}}),this.engine.loadModuleBySymbol({type:T.kM}),this.engine.loadModuleBySymbol({type:T.nu,config:{workshopApp:this.inWorkshop,container:N,mainDiv:I,reactContainer:L,queue:this.apiQueue,apiHost:this.apiHost}}),this.engine.loadModuleBySymbol({type:T.N7}),this.engine.loadModuleBySymbol({type:_.uH}),this.engine.loadModuleBySymbol({type:T.pR}),this.engine.loadModuleBySymbol({type:T.zj}),this.engine.loadModuleBySymbol({type:T.dT}),this.engine.loadModuleBySymbol({type:T._q,config:{allowRotation:!1}}),this.engine.loadModuleBySymbol({type:T.et,config:{enabled:"1"!==this.overrideParams.nozoom}}),this.engine.loadModuleBySymbol({type:_.T6}),this.engine.loadModuleBySymbol({type:T.Kv,config:{enableWheel:"1"===this.overrideParams.nozoom,doubleClickToGoInside:!0}}),this.engine.loadModuleBySymbol({type:T.PM}),this.engine.loadModuleBySymbol({type:T.Xx}),this.engine.loadModuleBySymbol({type:T.Ne}),this.engine.loadModuleBySymbol({type:_.ur}),this.quickstart||(this.engineTick.start(),this.loadPanoControls(q)),await this.engine.waitForLoadingModules(),this.engine.loadModuleBySymbol({type:T.wY}),"0"!==this.overrideParams.portal&&(this.engine.loadModuleBySymbol({type:T.f0}),this.engine.loadModuleBySymbol({type:T.co})),this.engine.loadModuleBySymbol({type:T.gk,config:{showPinsInFloorplanDollhouse:"0"!==this.overrideParams.pin}}),this.engine.loadModuleBySymbol({type:T.LG}),this.engine.loadModuleBySymbol({type:T.se,config:{checkRenderModes:()=>{const t=e.market.tryGetData(w.R);if(t&&t.isTourActive())return!1;const i=e.market.tryGetData(U.X);return!!i&&i.isInside()}}}),this.engine.loadModuleBySymbol({type:T.aU,config:{baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:T.FI});const Re=c.getProperty($.Jr);this.engine.loadModuleBySymbol({type:T.kd,config:{tagIconsEnabled:Re}}),this.engine.loadModuleBySymbol({type:T.Et}),this.engine.loadModuleBySymbol({type:T.qy,config:{oEmbedConsumer:this.oEmbedConsumer,baseUrl:this.modelUrls.urlBase}}),async function(e,t,i,n,s,a,o,r){const l=t.subscriber_prompt_denylist||pe.Z1.domainDenylist,{popupAllowed:d,bannerAllowed:c}=await ge({urlValues:i,settingsData:e.settingsData,flags:n,loggedIn:s,inWorkshop:o,hasPolicy:a.hasPolicy.bind(a),domainDenylist:l});if(Se.r.debug(`popupAllowed: ${d}, bannerAllowed: ${c}`),d||c){e.updateSetting(pe.nt,!0);const n=d&&("1"===i[pe.x$.forcePopup]||!!r.get("subscriber_prompt_a_popup")),s=c||"1"===i[pe.x$.forceBanner],a=t.subscriber_prompt_a_delay_ms||pe.Z1.popupDelay;Se.r.debug(`popupEnabled: ${n}, bannerEnabled: ${s}`),e.registerSetting("Subscriber Prompt",pe.An,{popupDelay:a,popupEnabled:n,bannerEnabled:s},!1,h.SettingPersistence.NONE)}}(c,this.apiConfig,this.overrideParams,j,E,te,this.inWorkshop,Z);const ye=this.overrideParams.stories,Me="1"===ye||"0"!==ye&&te.hasPolicy(C.bp);c.updateSetting(C.AI,Me),this.engine.getModuleBySymbol(T.aF).then((e=>{e.trackFeatures(`${C.nn}:${Me}`),(0,Be.n3)(e,te)})),this.engine.loadModuleBySymbol({type:T.XQ,config:{baseUrl:this.modelUrls.urlBase,readonly:!0,storyToursFeature:Me,looping:"1"===this.overrideParams.lp,queue:this.storeQueue,baseModelId:this.baseModelId}});const De=(0,Ke.FZ)(p,he,te,Q);if(this.engine.loadModuleBySymbol({type:T.lN,config:{objectTagsEnabled:De}}),this.engine.loadModuleBySymbol({type:T.cy,config:{workshop:this.inWorkshop,baseUrl:this.modelUrls.urlBase}}),this.loadUserDependentModules(E,Q,te,j),this.engine.loadModuleBySymbol({type:T.yR,config:{debug:"1"===this.overrideParams.fcdbg}}),this.engine.loadModuleBySymbol({type:T.ZF}),this.engine.loadModuleBySymbol({type:T.N9,config:{baseUrl:this.modelUrls.urlBase,readonly:!0,objectTagsEnabled:De,inferMeshIds:!0,parserOptions:{supportLinks:!this.overrideParams.mls||"0"===this.overrideParams.mls,keepLinkLabels:!0},queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:T.Np}),this.engine.loadModuleBySymbol({type:T.Xf}),this.engine.loadModuleBySymbol({type:T.Tx}),this.engine.loadModuleBySymbol({type:T.ep}),this.engine.loadModuleBySymbol({type:T.zX}),this.engine.loadModuleBySymbol({type:T._v}),this.engine.loadModuleBySymbol({type:T.He,config:{baseUrl:this.modelUrls.urlBase}}),this.engine.loadModuleBySymbol({type:y.r}),this.engine.loadModuleBySymbol({type:_.bw}),this.engine.loadModuleBySymbol({type:T.rA}),this.engine.loadModuleBySymbol({type:T.PJ}),this.engine.loadModuleBySymbol({type:T.tQ}),this.engine.loadModuleBySymbol({type:T.zy,config:{baseUrl:this.modelUrls.urlBase,readonly:!0}}),this.engine.loadModuleBySymbol({type:T.AO}),this.engine.loadModuleBySymbol({type:T.Yr}),this.engine.loadModuleBySymbol({type:T.Yj,config:{urlQuery:B||((0,O.w2)()?"":B),urlQueryKeywords:K,urlQueryFilters:Y,workshop:this.inWorkshop}}),De){const e=this.overrideParams.minConfidence?(0,g.qE)(parseFloat(this.overrideParams.minConfidence),.01,1):void 0;this.engine.loadModuleBySymbol({type:T.gy,config:{debug:!!this.overrideParams.debug,baseUrl:this.modelUrls.urlBase,baseModelId:this.baseModelId,minConfidence:e}})}const Pe=c.getProperty(Te.F7);this.engine.loadModuleBySymbol({type:T.YC,config:{framebufferScaling:Math.min(this.overrideParams.xrframebuffer?parseFloat(this.overrideParams.xrframebuffer):0,1),webxr:null!==(a=this.overrideParams.webxr)&&void 0!==a?a:"mono",xrBrowsersUnlocked:Pe,xrHandTracking:"1"===this.overrideParams["xr.hands"],xrMesh:"1"===this.overrideParams["xr.mesh"],xrDebug:"1"===this.overrideParams["xr.debug"]}});if(c.getProperty(me.n)){const e=c.getProperty(me.s);this.engine.loadModuleBySymbol({type:T.QS,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,queue:this.storeQueue,promptEnabled:e,debug:"1"===this.overrideParams.modelRatingDebug}})}await this.isRoomBoundsEnabled()&&(this.engine.loadModuleBySymbol({type:T.A5}),this.engine.loadModuleBySymbol({type:T.rz})),this.engine.loadModuleBySymbol({type:T.eE}),this.engine.loadModuleBySymbol({type:T.kG}),await this.engine.waitForLoadingModules(),this.modulesLoadedPromise.resolve()}async isRoomBoundsEnabled(){const[e,t]=await Promise.all([this.engine.market.waitForData(Fe.L),this.engine.market.waitForData(c.o)]);return await this.engine.getModuleBySymbol(_.K4),(0,We.m2)(e,t,this.inWorkshop)}setInitialSettings(e,t,i){const n=e.getFlags("showcase/"),s=(0,te.A0)(parseFloat(this.overrideParams.wts)),{labels:a,mt:o,allowRating:r,tiledmesh:l,tagIcons:d}=this.overrideParams,c=n.has(q.Z),m=(0,he.B)(navigator.language),p=n.has(me.n)?"0"!==r:"1"===r,E=this.inWorkshop&&e.loggedIn&&p,S=E&&n.has(me.s)?"0"!==r:"1"===r,O=n.has($.Jr)?"0"!==d:"1"===d,g=n.has(K.sz)?"0"!==l:"1"===l,T="0"===this.overrideParams.ad,_=n.has(Te.F7)?"0"!==this.overrideParams[Te.RN]:"1"===this.overrideParams[Te.RN],A=null!=this.overrideParams.showCeilings?"1"===this.overrideParams.showCeilings:n.has($e.VS),v=n.has($e.AU),N={Features:{[Z.f]:!0,[X.s]:!0,[K.sz]:g,[_e.cB]:!T,[Y.RP]:"0"!==a,[z.qE]:"0"!==o,[ee.p]:"0"!==this.overrideParams.f,[J._V]:s,[q.Z]:c,[Le.e]:!1,[Le.n]:!1,[me.n]:E,[me.s]:S,[pe.nt]:!1,[$.Jr]:O,[$.GK]:!0,[$.AM]:!0,[$e.VS]:A,[$e.AU]:v,[Te.F7]:_},"User Preferences":{[u.Y.UnitType]:m,[u.Y.MeasurementSnapping]:!0,[u.Y.MeasurementContinuousLines]:!0,[u.Y.MeasurementUserNudgeSeen]:!1,[u.Y.DollhouseUserNudgeSeen]:!1,[u.Y.NotesModeNudgeSeen]:!1,[u.Y.LastRatingPromptTime]:null,[u.Y.SubscriberPromptDismissed]:!1,[u.Y.TourTextNudgeDismissed]:!1,[u.Y.TourMobileNavigationPromptSeen]:!1}};for(const e in N)for(const i in N[e]){if(void 0===N[e][i])continue;const n="User Preferences"===e?h.SettingPersistence.LOCAL_STORAGE:h.SettingPersistence.NONE;t.registerSetting(e,i,N[e][i],!0,n)}return t.updateSetting("assetBasePath",this.assetBasePath),N}setPluginPolicySettings(e,t){var i;const n={enabled:t.hasPolicy(je.XX),canConfig:t.hasPolicy(je.p_),canDebug:t.hasPolicy(je._x),groups:(null===(i=t.getPolicy(je.eV))||void 0===i?void 0:i.options)||[]};return e.setProperty(je.p_,n.canConfig&&n.enabled),e.setProperty(je.XX,n.enabled),n}loadUserDependentModules(e,t,i,n){this.engine.market.waitForData(Ge.E).then((s=>{(0,Q.uV)(e,i,s,t,n)&&this.engine.loadModuleBySymbol({type:T.TN,config:{workshop:this.inWorkshop,baseUrl:this.modelUrls.urlBase,readonly:!1}})}))}async unload(e){var t;this.prefetchCaches.forEach((e=>this.mdsContext.sharedCaches.delete(e))),this.prefetchCaches.length=0;try{await e.commandBinder.issueCommand(new se.IP)}catch(e){tt.debug("showcase unload called before tour controls registered, ignoring stopTour",e)}await this.uiLoading,await(null===(t=this.showcaseGui)||void 0===t?void 0:t.unloadUi().catch((e=>{tt.error(e)}))),e.commandBinder.resetHooks(),this.bindings.forEach((e=>e.cancel())),this.bindings.length=0}async loginToModel(e,t){tt.info(`Loading model view: ${e}`);const i=this.forceLogin;await t.modelExists(e,{ignorePrefetch:i}).catch((async t=>{if(i&&(t instanceof re._W||t instanceof re.ZT))await this.showLoginScreen(e);else{if(!(t instanceof re._W))throw t;await this.login()}}))}async loginToNote(e){this.forceLogin&&await this.showLoginScreen(e)}loadInitialAppModules(e,t){this.engine.loadModuleBySymbol({type:T.sA}),this.engine.loadModuleBySymbol({type:T.mL,config:{disableWheel:"0"===this.overrideParams.wh,pointerPreventDefault:!this.settingOverrides||!this.settingOverrides.hasOwnProperty("pointerPreventDefault")||!!this.settingOverrides.pointerPreventDefault,rootNode:this.container.getRootNode()}}),this.engine.getModuleBySymbol(T.aF).then((i=>{i.setOptions({gpu:t}),i.trackFeatures(...e,`${$.jh}:true`)}))}async loadViewsAndStorage(e){await this.engine.loadModuleBySymbol({type:T.az,config:{viewId:e,baseUrl:this.apiHost,readonly:!0,inWorkshop:this.inWorkshop,modulesLoadedPromise:this.modulesLoadedPromise,mdsContext:this.mdsContext}});const t=(await this.engine.market.waitForData(P.P)).getBaseModelId();return this.engine.loadModuleBySymbol({type:T.T9,config:{baseUrl:this.apiHost,mdsContext:this.mdsContext}}),t}async loadAnalytics(){this.engine.loadModuleBySymbol({type:T.aF}),this.engine.loadModuleBySymbol({type:T.$c,config:{appName:this.settingOverrides&&this.settingOverrides.appName||"showcase",provider:this.overrideParams.analytics,apiQueue:this.apiQueue,analyticsQueue:this.analyticsQueue,overrideParams:this.overrideParams}})}loadInitialDataModules(e,t){this.engine.loadModuleBySymbol({type:_.K4,config:{baseUrl:this.modelUrls.urlBase,readonly:!0}}),this.engine.loadModuleBySymbol({type:T.bj,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,readonly:!this.inWorkshop,queue:this.storeQueue,tiledMeshEnabled:e.Features[K.sz]}});const i=this.settingOverrides.disableMobileRedirect,n=!!this.openingTool||void 0,s=!!this.openingTool||void 0,a=!!this.openingTool||void 0;this.engine.loadModuleBySymbol({type:_.XT,config:{disabled:this.forceLogin,openingTool:!!this.openingTool,viewId:this.initialViewId,baseUrl:this.modelUrls.urlBase,quickstart:this.quickstart,editMode:t,allowPlayInIframe:!!i||"1"===this.overrideParams.playsInline,allowAutoPlay:!!i,hideTitle:s,hideBranding:a,hidePoweredBy:n}}),this.engine.loadModuleBySymbol({type:T.Pn,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,initialViewId:this.initialViewId,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:T.Wh,config:{baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:T.di,config:{baseModelId:this.baseModelId,baseUrl:this.modelUrls.urlBase,readonly:!0,queue:this.storeQueue}}),this.engine.loadModuleBySymbol({type:T.Vu,config:{baseUrl:this.modelUrls.urlBase,readonly:!this.inWorkshop,requestQueue:this.storeQueue}})}loadPanoControls(e){this.uiLoading=this.loadUI(!(e||this.forceLogin)),this.engine.loadModuleBySymbol({type:T.X7}),this.engine.loadModuleBySymbol({type:T.TY})}async loadSdkModule(e){const t=this.overrideParams.applicationKey||this.settingOverrides.applicationKey,n=this.engine,s=this.assetBasePath,a=this.overrideParams.localSdkInterface,r=async function(){if(a){const e={client:"showcase-sdk/client/25.3.3_webgl-370-gda98f20035/sdk-client.js",sandbox:"showcase-sdk/sandbox/25.3.3_webgl-370-gda98f20035/sandbox.html",interfaces:["showcase-sdk/interface/25.3.3_webgl-370-gda98f20035/sdk-interface.js"]};return"2"===a&&e.interfaces.push("showcase-sdk/interface/25.3.3_webgl-370-gda98f20035/edit-interface.js"),e}try{const t=await e.getAppKey("showcase","sdk");if(t)return t}catch(e){}return{client:`${s}sdk/sdk-client.js`,interfaces:[`${s}sdk/sdk-interface.js`],sandbox:`${s}sdk/sandbox.html`}}(),l={scene:this.sceneLoader};n.loadModuleBySymbol({type:o.S1,config:{applicationKey:t||"NO_APPLICATION_KEY_SUPPLIED",validationUrl:this.apiHost+"/api/v1/user/",getSdkConfig:r,setupExternalSdk:async e=>{const s=await Promise.resolve().then(i.bind(i,60766));await s.loadInterface(e,n,await r,l,await this.oEmbedConsumer,this.logLevel,t||"",this.apiHost,this.jsonSchemaValidator)},queue:this.apiQueue,validateProvider:e=>this.validateSdkProvider(e)}})}loadUI(e){return Promise.all([this.engine.getModuleBySymbol(T.nu),this.engine.getModuleBySymbol(_.uH)]).then((([t,i])=>{this.guiModule=t,this.showcaseGui=i,e&&t.loadUi(i.loadUi)}))}async startAuthAndPolicyModules(e,t){this.loadSdkModule(e);const i=!!t,n=i?await this.doSdkAuth(t):{accepted:Promise.resolve()};if(n.token){le.u.setToken(n.token);try{await e.modelExists(this.initialViewId,{ignorePrefetch:!0})}catch(e){throw tt.error(e),this.setError(e),e}}else try{await this.loginToModel(this.initialViewId,e)}catch(e){throw this.setError(e),e}if(await this.engine.loadModuleBySymbol({type:T.Uu,config:{baseUrl:this.modelUrls.urlBase,viewId:this.initialViewId,mdsContext:this.mdsContext}}),i)try{await n.accepted}catch(e){return void this.setError(Error("invalid provider specified"))}}async doSdkAuth(e){const t=this.engine,i=await t.getModuleBySymbol(T.Ll);i.show();const n=await t.getModuleBySymbol(o.S1),s=await n.getClientAuth(e);return i.hide(),s}async validateSdkProvider(e){const t=!!(await this.engine.market.waitForData(Fe.L)).getPolicy(ze),i=Ye.get(e)===ze;return!e||!i||t&&i}async showLoginScreen(e){var t,i;return(await this.engine.loadModuleBySymbol({type:T.Vc,config:{loginUrl:(null===(t=this.apiConfig)||void 0===t?void 0:t.authn_login_url)||"",registerUrl:(null===(i=this.apiConfig)||void 0===i?void 0:i.account_register_url)||"",modelId:e,baseUrl:this.modelUrls.urlBase,container:this.container}})).loadUi()}login(){return new Promise((async e=>{const t=await this.engine.loadModuleBySymbol({type:_.q0,config:{modelId:this.initialViewId,baseUrl:this.modelUrls.urlBase,container:this.container}});this.engine.subscribe(k.l,(()=>{t.hidePasswordScreen(),e()})),t.showPasswordScreen()}))}setupOEmbedConsumer(e){const t={embedlyKey:e||this.apiConfig.embedly_key,instagramAppId:this.apiConfig.instagram_app_id,instagramClientToken:this.apiConfig.instagram_client_token,googleMapsApiKey:this.apiConfig.google_maps_key};this.oEmbedDeferred.resolve(new Ue(this.apiQueue,t))}}var nt=i(30877);window.addEventListener("app-start",(e=>{var t,i;const s=function(e){const t=new n.A;t.diContainer.bindConstant(Qe.W8,new a.i);const i=new it(!1,e);t.loadApplication(i,i.setError.bind(i));const s=function(e){class t{constructor(e){this.windowContext=e,this.connectedPromise=new Promise((e=>{this.connectedPromiseResolve=e}))}async connect(...[,t={}]){const i=await e.getModuleBySymbol(o.S1),n=nt.p.connect(new st(i,t),new at,this.windowContext);return n.then((e=>this.connectedPromiseResolve(e))),n}}let i=window;window!==window.top&&(i=window.parent);window.opener&&(i=window.opener);const n=new t(i);return window.MP_SDK=n,n}(t);return{engine:t,showcase:i,sdkBoostrap:s}}(e.detail.config||{});null===(i=(t=e.detail).onStart)||void 0===i||i.call(t,{dispose:()=>{s.engine.dispose(),s.showcase.stop(),s.showcase.unload(s.engine)}}),s.sdkBoostrap.connectedPromise.then((t=>{var i,n;null===(n=(i=e.detail).onSdkConnected)||void 0===n||n.call(i,{mpSdk:t})}))}),!0);class st{constructor(e,t){this.sdk=e,this.options=t}connect(){return this.sdk.connect(`${window.location.protocol}//${window.location.host}`,this.options)}cancelConnecting(){}}class at{getFactory(e){return e.messengerFactory}}},60766:(e,t,i)=>{"use strict";i.r(t),i.d(t,{LazyLoader:()=>Ze,loadInterface:()=>Je});var n=i(244),s=i(6539),a=i(45832),o=i(5174),r=i(50505),l=i(32024),d=i(18821),c=i(40397),u=i(19968),h=i(80519),m=i(36476),p=i(56208),E=i(22585),S=i(13893),O=i(31561),g=i(30101),T=i(89928),_=i(51313),A=i(23272),v=i(96437),N=i(50636),I=i(26655),L=i(80419),f=i(94),b=i(5984),R=i(9997),y=i(79457),M=i(65425),D=i(25727),P=i(33699),k=i(11416),w=i(51274),C=i(49523),x=i(5146),H=i(3956),U=i(50018),G=i(34184),F=i(47004),j=i(17084),V=i(73566),B=i(22937),W=i(38069),K=i(81662),z=i(2993),Y=i(46793),$=i(98309),Q=i(1197),q=i(55141);class X extends q.u{}X.id="DEACTIVATE_IDLE_MODE";class Z extends q.u{constructor(e){super(),this.payload={timeout:e}}}Z.id="SET_IDLE_MODE_TIMEOUT";var J=i(77973),ee=i(78115),te=i(9360),ie=i(27947),ne=i(20599),se=i(37105),ae=i(58229),oe=i(39209),re=i(85182),le=i(43066);const de=function(e,t){return i=>async function(i){var n,s;const a={modelId:i},o=await e.query(le.GetViews,a,{}),r=null===(s=null===(n=null==o?void 0:o.data)||void 0===n?void 0:n.model)||void 0===s?void 0:s.views;if(!r||!Array.isArray(r))return[];const l=[];for(const e of r){const i=t.deserialize(e);i&&l.push(i)}return l}(i)};var ce=i(57186),ue=i(47737),he=i(29479),me=i(41535),pe=i(28454),Ee=i(55057),Se=i(5243),Oe=i(50485),ge=i(6236),Te=i(68387),_e=i(25316),Ae=i(62372),ve=i(4288),Ne=i(21875),Ie=i(99583),Le=i(84522),fe=i(74717),be=i(16653),Re=i(31403),ye=i(41369),Me=i(29543),De=i(39634),Pe=i(96425),ke=i(3795),we=i(80071),Ce=i(41259),xe=i(30926),He=i(99104),Ue=i(55494),Ge=i(68909),Fe=i(22278),je=i(32948),Ve=i(31093),Be=i(61430),We=i(56846),Ke=i(63362),ze=i(53631),Ye=i(81483),$e=i(27140);const Qe=function(e,t){return i=>async function(i){var n,s;const a={modelId:i,includeDisabled:!0,includeLayers:!0},o=await e.query($e.GetMattertags,a,{}),r=null===(s=null===(n=null==o?void 0:o.data)||void 0===n?void 0:n.model)||void 0===s?void 0:s.mattertags;if(!r||!Array.isArray(r))return[];const l=[];for(const e of r){const i=t.deserialize(e);if(i){const e=new Ge.Vector3,t=new Ge.Vector3;e.set(i.anchorPosition.x,i.anchorPosition.y,i.anchorPosition.z),t.set(i.stemVector.x,i.stemVector.y,i.stemVector.z),t.normalize(),l.push(i)}}return l}(i)};var qe=i(28511),Xe=i(73062);class Ze{constructor(){this.module=null,this.loaderReady=new Ve.i,this.loader=null}setLoader(e){this.loader||(this.loader=e,this.loaderReady.resolve())}async getModule(){if(this.module)return this.module;if(await this.loaderReady,this.loader&&(this.module=await this.loader()),this.module)return this.module;throw new Error("There was an error setting up the factory")}}async function Je(e,t,i,n,l,d,c,u,q){const le=new r.o;let de;try{if(Array.isArray(i.interfaces)){const e=i.interfaces.map((e=>{const t=new URL(e);return c&&t.searchParams.append("applicationKey",c),le.load(t.href)}));de=await Promise.all(e)}else{if(!i.interface)throw Error("No sdk interface found in config");{const e=new URL(i.interface);c&&e.searchParams.append("applicationKey",c),de=[await le.load(e.href)]}}}catch(e){throw Error("Unable to fetch the sdk interface. The sdk will be disabled. "+e)}const ce={THREE:Ge,oEmbed:l,jsonSchemaValidator:q},be=(0,ze.H)({baseUrl:u})(),Ve={MpSdkAuthentication:h.u,RenderLayers:m.H,OptionsKey:p.Q$,Application:ie.lg,AppPhase:ie.Jj,AppPhaseChangeMessage:E.uv,CameraTransitionType:S.fl,SetMoveCameraOnViewChange:O.y,GetFloorIntersectCommand:g.X,StartMoveToFloorMessage:T.G,EndMoveToFloorMessage:_.P,MoveToFloorIndexCommand:A.q8,ShowAllFloorsCommand:A.$9,AddInMemoryLayerCommand:J.k,SelectLayerCommand:J.HA,SetActiveModelViewCommand:J.uo,ToggleLayerCommand:J.X_,MattertagMediaType:Be.yg,RemoveMattertagCommand:v.l,CloseAnnotationCommand:Ce.XK,TagDescriptionChunkType:N.q,TagLinkType:I.J,AddMattertagCommand:v.aw,EditMattertagCommand:v.rn,MattertagLinkOpenedMessage:L.Qn,ModelDataLoadedMessage:f.A,ModelColliderTarget:b.r,NavigateToSweepCommand:R.aj,ModelViewChangeCompleteMessage:ee.tj,MeasuringPhase:me.hb,SettingGetCommand:C.y,SettingUpdateCommand:x.h,PuckCollider:H.U,PinClickedMessage:y.oX,PinHoverChangeMessage:y.RG,PinHeadMesh:M.R,InstancedPinHeads:w.k,PinType:D.yY,OpenTagCommand:He.Ki,CloseTagCommand:He.KH,DockAnnotationCommand:Ce.y8,ChangePinOpacityScaleCommand:P.Ct,MovePinCommand:P.Mx,UpdatePinCommand:P.gx,RemovePinCommand:P.z5,FocusOnPinInsideCommand:R.E4,SelectAnnotationCommand:Ce.xo,SweepAlignmentType:U.c$,SweepPlacementType:U.EO,BeginMoveToSweepMessage:G.A,EndMoveToSweepMessage:F.A,SweepNeighborModifyCommand:Ke.WS,ToggleToolCommand:j.yU,Tools:V.S0,TourStartedMessage:B.zM,TourStoppedMessage:B.pT,TourEndedMessage:B.YH,TourSteppedMessage:B.n1,Color:W.V,Vectors:K.B1,Viewmode:z.N3,CommandViewmode:Y.w5,ChangeViewmodeCommand:Y.S2,BeginSwitchViewmodeMessage:$.A,EndSwitchViewmodeMessage:Q.A,GetScreenPositionCommand:Le.R,ZoomInCommand:fe.EG,ZoomResetCommand:fe.i9,ZoomSetCommand:fe.hd,SourceType:Re.SourceType,sensorVolumes:{sphere:ye.I,box:Me.M,cylinder:De.z},TourState:Pe.Ci,MediaType:ke.zu,AddUserLayerCommand:J.ff,SaveNewMattertagCommand:v.Ee,UploadAttachmentsCommand:we.bI,EmbedMediaCommand:we.Bd,DeactivateIdleModeCommand:X,SetIdleModeTimeoutCommand:Z,ToggleDefurnishViewCommand:J.zH,EndToggleDefurnishViewMessage:ee.Yp,EnableInputCommand:te.TY,DisableInputCommand:te.q$},Ye=et(t,be),$e=function(e,t,i){const n=(async()=>(await e.getModuleBySymbol(a.qL)).getApi())(),r=e.getModuleBySymbol(a.qy);return{api:n,applicationData:e.market.waitForData(ie.zH),cameraData:e.market.waitForData(ne.M),canvasData:e.market.waitForData(se.p),cursorController:e.getModuleBySymbol(a._v),deepLinks:e.getModuleBySymbol(o.r),locale:e.getModuleBySymbol(a.gS),externalR3FModule:e.getModuleBySymbol(a.kG),floorData:e.market.waitForData(ae.q),floorViewData:e.market.waitForData(oe.X),labelData:e.market.waitForData(re.B),layersData:e.market.waitForData(ue.P),mattertagData:e.market.waitForData(he.j),measurementModeData:e.market.waitForData(pe.s),modelData:e.market.waitForData(Ee.q),pinViewData:e.market.waitForData(k.U),annotationsViewData:e.market.waitForData(xe.o),tagsViewData:e.market.waitForData(Ue.r),plugin:e.getModuleBySymbol(a.N4),raycasterData:e.market.waitForData(Se.$),roomData:e.market.waitForData(Oe.q),roomBoundData:e.market.waitForData(ge.A),roomBoundViewData:e.market.waitForData(Te.B),settingsData:e.market.waitForData(_e.o),sweepData:e.market.waitForData(Ae.A),sweepViewData:e.market.waitForData(ve.O),tourData:e.market.waitForData(Ne.R),viewmodeData:e.market.waitForData(Ie.X),appPhaseModule:e.getModuleBySymbol(s.WJ),attachmentsModule:r,commonControlsModule:e.getModuleBySymbol(a.X7),floorCasterModule:e.getModuleBySymbol(a.Xx),pinsModule:e.getModuleBySymbol(a.kd),meshQuery:e.getModuleBySymbol(a.PM),modelMeshModule:e.getModuleBySymbol(a.GR),meshData:e.market.waitForData(Fe.U),navigationModule:e.getModuleBySymbol(a.Kv),renderToTextureModule:e.getModuleBySymbol(a.kM),sceneModule:t.scene.getModule(),sensorModule:e.getModuleBySymbol(a.J$),settingsModule:e.getModuleBySymbol(s.ZF),tourControlsModule:e.getModuleBySymbol(a.Xf),webglRendererModule:e.getModuleBySymbol(a.M7),zoomControlModule:e.getModuleBySymbol(a.et),sweepTextureLoader:e.getModuleBySymbol(a.wY),pluginData:e.market.waitForData(je.C),pluginConfigData:e.market.waitForData(We.Y7),modelApiClient:Promise.resolve(i),analytics:e.getModuleBySymbol(a.aF)}}(t,n,be);for(const n of de){const s=new Xe.mc(t.diContainer);await n.setup(e,ce,Ve,Ye,$e,t.getModuleBySymbol(a.qL),{sandboxPath:i.sandbox,logLevel:d},s)}}function et(e,t){return{loadImage:l.y,waitForUpdate:()=>e.after(n.R.End),waitForBegin:()=>e.after(n.R.Begin),subscribe:(t,i)=>e.subscribe(t,i),unsubscribe:(t,i)=>e.unsubscribe(t,i),addBinding:e.commandBinder.addBinding.bind(e.commandBinder),issueCommand:e.commandBinder.issueCommand.bind(e.commandBinder),requestTarget:()=>e.commandBinder.issueCommand(new d.q6),getRenderLayer:t=>e.getRenderLayer(t),jpegAsBase64:be.G8,encodeRenderTarget:be.uz,getXmp:be._h,getOrientedAngleTo:c.Vg,screenPositionToNDC:u.wc,ndcToWorldPosition:u.OG,worldToScreenPosition:u.bz,getTagsQuery:Qe(t,(0,Ye.V)()),isMpFontId:e=>e in qe.J,getModelViewsQuery:de(t,(0,ce.o)())}}},98147:(e,t,i)=>{"use strict";i.d(t,{K4:()=>c,L8:()=>o,T6:()=>u,XT:()=>a,_r:()=>h,bW:()=>n,bw:()=>r,q0:()=>d,uH:()=>s,ur:()=>l});const n=Symbol("error-ui"),s=Symbol("view-ui"),a=(Symbol("idle-actions"),Symbol("init-ui")),o=Symbol("model-mesh-quality"),r=Symbol("quick-menus"),l=Symbol("hotkeys-sc"),d=Symbol("password"),c=Symbol("showcase-settings"),u=Symbol("showcase-start"),h=Symbol("webgl-context-loss")},60911:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>Ts});var n=i(96540),s=i(5338),a=i(75578),o=i(74381),r=i(74848),l=i(22585),d=i(27947),c=i(17084),u=i(8387),h=i(32485),m=i.n(h),p=i(77570),E=i(56147),S=i(48539),O=i(86867),g=i(31875),T=i(18682),_=i(35007),A=i(39869),v=i(96847),N=i(68375);function I({name:e,id:t,active:i,onChange:s}){const a=(0,N.s)(),o=(0,n.useCallback)((()=>{const e=(t||"all").toLowerCase();a.trackGuiEvent(`visibility_toggled_${e}`),s(t,!i)}),[i,t,a,s]),l=(0,n.useCallback)((async e=>{o(),e.stopPropagation(),e.preventDefault()}),[o]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.$n,Object.assign({className:"visibility-p-button",label:e,variant:u.Ak.TERTIARY,size:u.Mp.SMALL,onClick:l,active:!1},{children:(0,r.jsx)("span",Object.assign({className:"toggle-wrapper visibility-p-toggle",onClick:e=>{o(),e.stopPropagation(),e.preventDefault()}},{children:(0,r.jsx)(v.l,{toggled:i,onToggle:o,enabled:!0,onOffLabel:!1,testId:"VisibilityPToggle"})}))}))})}var L=i(30129),f=i(50690);function b(e){const[t,i]=(0,n.useState)(e.visibilityData);(0,n.useEffect)((()=>{i(e.visibilityData)}),[e.visibilityData]);const s=(0,A.Y)(),a=(0,N.s)(),o=Object.entries(t).length>1,l=(0,n.useCallback)((()=>{a.trackGuiEvent("toggle_plugin_visibility_controls")}),[a]),d=s.t(E.A.HELP_MORE_EXTRAS_A),c=m()(),h=()=>Object.values(t).every((e=>!!e)),p=(n,s)=>{const a=h();i((e=>Object.keys(e).reduce(((e,t)=>(e[t]=!a,e)),{}))),e.onToggle(Object.keys(t),!a)},S=(n,s)=>{i((e=>Object.assign(Object.assign({},e),{[n]:!e[n]}))),e.onToggle([n],!t[n])},O=Object.entries(t||{}).map((([e,t])=>(0,r.jsx)(I,{id:e,name:s.T(f.Q._COMMON_.TITLE,e),active:t,onChange:S},e)));return o&&O.push((0,r.jsx)(I,{id:null,name:s.t(E.A.PLUGIN_CHANGE_ALL),active:h(),isHeader:!0,onChange:p},"0-all")),O.push((0,r.jsxs)("div",Object.assign({className:"menu-header",onClick:e=>{e.stopPropagation(),e.preventDefault()}},{children:[(0,r.jsx)("span",Object.assign({className:"title"},{children:s.t(E.A.PLUGIN_VISIBILITY)})),(0,r.jsx)("span",Object.assign({className:"show-hide"},{children:s.t(E.A.PLUGIN_V_TOGGLE_LABEL)}))]}),"1-header")),O.reverse(),(0,r.jsx)(L.y,Object.assign({buttonClassName:c,onClick:l,variant:u.Ak.TERTIARY,ariaLabel:d,tooltip:d,icon:"visibility",theme:"overlay",menuClassName:"visibility-p-controls-menu",menuTheme:"dark",menuPlacement:"top"},{children:O}))}var R=i(91593),y=i(32948),M=i(29020),D=i(78063),P=i(90087);const k=({className:e})=>{const[t,i]=(0,n.useState)({}),[s,a]=(0,n.useState)(!1),o=(0,M.w)(),l=(0,D.B)(),d=(0,P.L)();(0,n.useEffect)((()=>{let e;return(async()=>{if(o){const t=await o.waitForData(y.C),n=()=>{i(t.visibilityData.deepCopy()),a(t.visibilityData.entries().length>0)};e=t.visibilityData.onChanged(n),n()}})(),()=>{null==e||e.cancel()}}),[o,l]);return s?(0,r.jsx)("div",Object.assign({className:m()("feature-p-selector",e)},{children:(0,r.jsx)(b,{visibilityData:t,onToggle:(e,t)=>{d.issueCommand(new R.J(e,t))}})})):null};var w=i(80303),C=i(22213),x=i(81088);function H(){const e=(0,A.Y)(),t=(0,P.L)(),i=(0,n.useCallback)((()=>{t.issueCommand(new x.X(C.a.VR_SELECT,!0))}),[t]),s=e.t(E.A.VIEW_IN_VR);return(0,r.jsx)(u.$n,{className:"view-in-vr",onClick:i,ariaLabel:s,ariaHasPopup:"dialog",tooltip:s,tooltipOptions:{placement:"top"},icon:"vr",theme:"overlay",variant:u.Ak.TERTIARY})}var U=i(45037),G=i(30217),F=i(96425),j=i(35447),V=i(73566),B=i(20246);var W;!function(e){e[e.flash=0]="flash",e[e.expanded=1]="expanded",e[e.collapsed=2]="collapsed"}(W||(W={}));var K=i(91575);var z=i(10843),Y=i(78763);const $=new z.Ay("pause-button");class Q extends n.Component{constructor(e){super(e),this.justEnded=!1,this.stopTour=async e=>{this.context.analytics.trackGuiEvent("tour_stopped");try{this.context.commandBinder.issueCommand(new Y.IP)}catch(e){$.debug(e)}},this.state={justPaused:!1}}componentDidUpdate(){this.state.justPaused&&this.setState({justPaused:!1}),this.justEnded=!1}UNSAFE_componentWillReceiveProps(e){!this.props.tourPlaying||e.tourPlaying||this.justEnded||this.setState({justPaused:!0}),this.props.tourEnded&&(this.justEnded=!0)}render(){const{tourPlaying:e}=this.props,{justPaused:t}=this.state;return(0,r.jsx)("div",Object.assign({id:"pause-button",onClick:this.stopTour,onTouchMove:this.stopTour,onTouchStart:this.stopTour,"data-cy":"pause-button"},{children:!e&&(0,r.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODQiIGhlaWdodD0iODQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNNDIgMEMxOC43OSAwIDAgMTguNzkgMCA0MnMxOC43OSA0MiA0MiA0MiA0Mi0xOC43OSA0Mi00MlM2NS4yMSAwIDQyIDB6IiBmaWxsLW9wYWNpdHk9Ii4yNSIgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTUxLjUgNTdoLTJhLjUuNSAwIDAxLS41LS41di0yOGEuNS41IDAgMDEuNS0uNWgyYS41LjUgMCAwMS41LjV2MjhhLjUuNSAwIDAxLS41LjV6TTM0LjUgNTdoLTJhLjUuNSAwIDAxLS41LS41di0yOGEuNS41IDAgMDEuNS0uNWgyYS41LjUgMCAwMS41LjV2MjhhLjUuNSAwIDAxLS41LjV6IiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",className:m()({justPaused:t}),alt:"","aria-hidden":"true"})}))}}Q.contextType=p.B;var q=i(56208),X=i(46793),Z=i(64491),J=i(79070),ee=i(65780),te=i(48411),ie=i(56810);function ne(){const e=(0,N.s)(),t=(0,P.L)(),i=(0,A.Y)(),n=(0,te.T)()===V.S0.NOTES,s=i.t(E.A.NOTES_MODE);return(0,r.jsx)(ie.Q,{className:"notes-mode-button",icon:"comment-outline",active:n,onClick:()=>{const i=!n;i&&e.trackGuiEvent("notes_mode_click_open"),t.issueCommand(new c.yU(V.S0.NOTES,i))},tooltip:s,nudgeDisabled:!0},"notes-mode-button")}var se=i(87965),ae=i(33177),oe=i(38039);function re(){const e=(0,N.s)(),t=(0,P.L)(),i=(0,A.Y)(),n=(0,te.T)()===V.S0.MEASUREMENTS,s=i.t(E.A.TOOLS.MEASUREMENTS),a=i.t(E.A.MEASUREMENT_NUDGE_TITLE),o=i.t(E.A.MEASUREMENT_NUDGE_MESSAGE),l=se.Y.MeasurementUserNudgeSeen,d=oe.Z,{show:u,dismiss:h}=(0,ae.F)(ae.m.Measurements);return(0,r.jsx)(ie.Q,{className:"measure-mode-button",icon:"tape-measure",active:n,onClick:()=>{const i=!n;i&&e.trackToolGuiEvent("measurements","measure_mode"),t.issueCommand(new c.yU(V.S0.MEASUREMENTS,i))},tooltip:s,nudgeFeatureKey:d,nudgeTitle:a,nudgeMessage:o,nudgeLocalStorage:l,onNudgeDismissed:()=>{e.trackGuiEvent("measurement_nudge_dismissed")},showTimeout:u,dismissTimeout:h},"measure-mode-button")}var le=i(10099),de=i(57447),ce=i(68419),ue=i(5262),he=i(5275),me=i(15498),pe=i(6233);function Ee(){const e=(0,te.T)(),t=(0,ce.t)(),i=(0,ue.i)(de.n,!1),n=(0,he.U)(),s=(0,me.l)(),a=n&&!e&&s===F.cR.LEGACY,o=!e,l=!t||t===C.a.TERMS;return(0,r.jsx)("div",Object.assign({className:m()("footer-ui",{"footer-ui-shaded":a,disabled:!l})},{children:o&&(0,r.jsx)(pe.w,{openModal:t,disabled:!l,modelRatingEnabled:i})}))}var Se=i(15924),Oe=i(41299),ge=i(58480),Te=i(77363),_e=i(87766),Ae=i(83108);class ve extends n.Component{constructor(e,t){super(e,t),this.isUnmounting=!1,this.bindings=[],this.viewmodeToClass={[X.w5.INSIDE]:"inside",[X.w5.OUTSIDE]:"outside",[X.w5.DOLLHOUSE]:"dollhouse",[X.w5.FLOORPLAN]:"floorplan",[X.w5.TRANSITIONING]:"transitioning"},this.checkShowReel=()=>{const{tourState:e}=this.props,{settings:t}=this.context,i=t.tryGetProperty(q.Q$.HighlightReel,!0),{reelSeen:n}=this.state;if(e.totalSteps>0&&i&&!n){const e=this.getHlStartupValue();switch(e){case W.expanded:case W.flash:(0,S.cb)(100).then((()=>this.showReel(e)))}}},this.showReel=e=>{this.isUnmounting||(this.context.commandBinder.issueCommand(new G.CQ(!0)),this.setState({reelSeen:!0}),e===W.flash&&(0,S.cb)(3e3).then(this.dismissReel))},this.dismissReel=()=>{this.isUnmounting||this.context.commandBinder.issueCommand(new G.CQ(!1))},this.onViewingControlsToggle=({show:e})=>{this.setState({autohide:!e})},this.updateViewportSize=e=>{this.isUnmounting||this.setState({viewportHeight:e.height})},this.isReelEnabled=()=>{if(this.props.tourMode===F.cR.STORIES)return!0;return this.state.viewportHeight>=400&&(0,j.cJ)(this.context.settings)},this.isPluginSystemEnabled=()=>{const{settings:e}=this.context;return e.tryGetProperty(_e.XX,!1)},this.isFloorsEnabled=()=>{const{settings:e}=this.context,t=e.tryGetProperty(w.p,!0),i=e.tryGetProperty(q.Q$.FloorSelect,!0);return t&&i},this.toggleShareModal=()=>{const e=this.props.openModal===C.a.SHARE;this.context.analytics.trackGuiEvent("click_share_button"),this.context.commandBinder.issueCommand(new x.X(C.a.SHARE,!e))},this.renderHighlightReel=()=>{const{openTool:e,tourState:t,tourMode:i}=this.props;if(e&&e!==V.S0.SEARCH)return null;const{tourPlaying:n,highlights:s,activeStep:a,transition:o}=t;return(0,r.jsx)(K.F,{openTool:e,tourMode:i,transition:o,activeStep:a,highlights:s,tourPlaying:n})},this.renderRightControls=()=>{const e=[],{vrEnabled:t,shareEnabled:i}=this.props,n=(0,Z.YR)();e.push((0,r.jsx)("span",{className:"divider"},"divider_1"));const s=this.context.locale.t(E.A.SOCIAL_SHARING),a={placement:"top"};return i&&e.push((0,r.jsx)(u.$n,{onClick:this.toggleShareModal,ariaLabel:s,ariaHasPopup:"dialog",tooltip:s,tooltipOptions:a,icon:"share",style:(()=>{if(/[?&]nolink=1/.test(window.location.search)){return{display:"none"};}return {};})(),theme:"overlay",variant:u.Ak.TERTIARY},"toggle_share_modal")),t&&e.push((0,r.jsx)(H,{},"vr_modal_controls")),n&&e.push((0,r.jsx)(U.A,{},"fullscreen_controls")),e},this.state={viewportHeight:(0,Te.J)(t).height,autohide:!1,reelSeen:!1},this.onResize=(0,J.s)(this.updateViewportSize,250)}componentDidMount(){const{messageBus:e,market:t}=this.context;t.waitForData(ge.G).then((e=>{this.isUnmounting||this.bindings.push(e.onPropertyChanged("size",this.onResize))})),this.bindings.push(e.subscribe(B.Vk,this.onViewingControlsToggle)),this.checkShowReel()}componentWillUnmount(){this.isUnmounting=!0,this.bindings.map((e=>e.cancel()))}componentDidUpdate(e){!(e.tourState.totalSteps>0)&&this.props.tourState.totalSteps>0&&this.checkShowReel()}getHlStartupValue(){const{settings:e}=this.context;if(e.getOverrideParam("note","")||e.getOverrideParam("tag",""))return W.collapsed;const t=this.props.tourState.highlights.some((e=>e.snapshot.is360))?W.expanded:W.flash,i=e.getOverrideParam("hl",t);return(0,O.U)(W,i)?i:t}render(){const{measurementsModeEnabled:e,notesEnabled:t,openModal:i,openTool:n,showStoryTour:s,toolPanelLayout:a,tourMode:o,tourState:l,unaligned:d,viewmode:c}=this.props,{tourPlaying:u,tourEnded:h,totalSteps:p,activeStep:E,currentStep:S,highlights:O,hasTours:A}=l,{autohide:v,viewportHeight:N}=this.state,{settings:I}=this.context,L=this.viewmodeToClass[c]||"",f=0===p,b=o===F.cR.STORIES,R=N>=400,y=this.isReelEnabled()&&!f,M=n!==V.S0.MEASUREMENTS,D=this.isFloorsEnabled(),P=this.isPluginSystemEnabled(),w=t&&!d,x=e&&!d,H=I.tryGetProperty(de.n,!1),U=u||s,G=v||!!i&&(i!==C.a.CTA||!b)&&!n,j={"modal-open":!!i,"tour-playing":u,"stories-tour-showing":s,autohide:G};return(0,r.jsxs)("div",Object.assign({id:"bottom-ui",className:m()("bottom-ui",j,L)},{children:[(0,r.jsx)(Q,{tourPlaying:u,tourEnded:h}),(0,r.jsxs)(ee.w,Object.assign({className:m()("bottom-controls",{"faded-out":G}),open:!G},{children:[(0,r.jsxs)(le.T,Object.assign({className:"controls"},{children:[(0,r.jsx)(T.f,{toolPanelLayout:a,activeTool:n,activeStep:E,currentStep:S,highlights:O||[],tourPlaying:u,tourMode:o,hideReel:!R,hasTours:A},"tour_controls"),(0,r.jsx)(ee.w,Object.assign({className:"mode-controls",open:!U},{children:(0,r.jsx)(g.E,{unaligned:d,viewmode:c,className:"showcase-viewmode-controls"},"mode_controls")})),D&&(0,r.jsx)(ee.w,Object.assign({className:"mode-controls",open:!U},{children:(0,r.jsx)(_.D,{viewmode:c,iconStyle:!0,className:"showcase-floor-controls"},"floor_controls")})),P&&(0,r.jsx)(ee.w,Object.assign({className:"mode-controls",open:!U},{children:(0,r.jsx)(k,{viewmode:c,className:"showcase-plugin-controls"},"plugin_visibility_controls")})),w&&(0,r.jsx)(ee.w,Object.assign({className:"mode-controls",open:!U},{children:(0,r.jsx)(ne,{},"notes_mode_button")})),x&&(0,r.jsx)(ee.w,Object.assign({className:"mode-controls",open:!U},{children:(0,r.jsx)(re,{},"measurement_mode_button")})),(0,r.jsx)(ee.w,Object.assign({className:"mode-controls",open:!U},{children:(0,r.jsx)(Ae.Y,{viewmode:c},"defurnish_mode_button")})),M&&this.renderRightControls()]})),H&&(0,r.jsx)(Se.p,{})]})),y&&this.renderHighlightReel(),(0,r.jsx)(Ee,{})]}))}}ve.contextType=p.B;const Ne=(0,Oe.F)(ve);var Ie=i(12103),Le=i(78197),fe=i(64057),be=i(78956),Re=i(72561),ye=i(50747),Me=i(91406),De=i(79723);var Pe=i(35404);var ke=i(55285),we=i(3645);const Ce=()=>{const e=(0,ue.i)(we.An,we.Z1);return(0,n.useMemo)((()=>Object.assign({},we.Z1,e)),[e])};var xe=i(25773),He=i(12554),Ue=i(87805);const Ge=()=>{const e=(0,Ue.Z)(xe.d,"applicationKeys",new He.X);return(0,ue.i)(we.nt,!1)&&0===e.length};var Fe=i(98903),je=i(4717),Ve=i(92996),Be=i(4130),We=i(56547),Ke=i(28577);function ze(e,t,i){const n=i===Be.co;function s(e,t){return e.enabled&&((0,We.xF)(e)||(0,We.V6)(e)||(0,We.XF)(e)||t&&(0,We.AF)(e))}const a=e&&s(e,!0),o=t.slice().filter((e=>s(e,!1)));return!(!a||n||o.length<2)}function Ye(e,t,i){return!ze(e,t,i)&&!!e&&((0,We.xF)(e)||(0,We.V6)(e))}function $e(){const e=(0,ue.i)(Ke.rX,!1),t=(0,je.G)(),i=(0,Ve.h)(),s=(0,Fe.b)(Be.GB),[a,o]=(0,n.useState)(e&&ze(t,i,s));return(0,n.useEffect)((()=>(o(e&&ze(t,i,s)),()=>{})),[e,t,i,s]),a}function Qe(){const e=(0,ue.i)(Ke.rX,!1),t=(0,je.G)(),i=(0,Ve.h)(),s=(0,Fe.b)(Be.GB),[a,o]=(0,n.useState)(e&&Ye(t,i,s));return(0,n.useEffect)((()=>(o(e&&Ye(t,i,s)),()=>{})),[e,t,i,s]),a}var qe=i(47613);function Xe(){const e=(0,ue.i)(Ke.qD,!1),t=(0,qe._)(),[i,s]=(0,n.useState)(e&&(null==t?void 0:t.getCurrentUserLayers())||[]);return(0,n.useEffect)((()=>{if(!t)return()=>{};function i(){s(e&&(null==t?void 0:t.getCurrentUserLayers())||[])}const n=t.onCurrentLayersChanged(i);return i(),()=>n.cancel()}),[t,e]),i}var Ze=i(52622);function Je({toolName:e,showing:t=!0,attached:i=!1}){const n=(0,N.s)(),s=(0,P.L)(),a=(0,A.Y)(),o=(0,Me.M)(e),l=(0,te.T)();if(!o)return null;const{id:d,namePhraseKey:h,icon:p,analytic:E}=o,S=l===o.id,O=a.t(h),g=p.replace("icon-",""),T=i?"dark":"overlay";return(0,r.jsx)(ee.w,Object.assign({open:t,className:m()("top-tool-button",{"faded-out":!t})},{children:(0,r.jsx)(u.$n,{onClick:()=>{s.issueCommand(new c.yU(d,!S)),n.trackToolGuiEvent(E,`click_${E}_button`,{interactionSource:"gui"})},tooltip:O,tooltipOptions:{placement:"bottom"},icon:g,theme:T,variant:u.Ak.FAB,active:S})}))}var et=i(72909),tt=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let it=class extends n.Component{constructor(){super(...arguments),this.handleTitleClick=async e=>{e.stopPropagation();const{commandBinder:t,analytics:i}=this.context;await t.issueCommand(new c.yU(V.S0.SUMMARY,!0)),t.issueCommand(new c.li(!1)),i.trackGuiEvent("click_model_title",{interactionSource:"gui"})}}getFilteredValue(e,t,i,n){return!this.context.settings.tryGetProperty(t,i)||n&&!this.props.brandingEnabled?"":e}render(){const{locale:e}=this.context,{className:t,modelDetails:i}=this.props,{name:n,presentedBy:s}=i,a=this.getFilteredValue(n,q.Q$.DetailsModelName,!0,!1),o=this.getFilteredValue(s,q.Q$.PresentedBy,!1,!0),l=o?`${e.t(E.A.PRESENTED_BY)}${o}`:"",d=`${a} ${l}`;return(0,r.jsx)("div",Object.assign({id:"model-title",onClick:this.handleTitleClick},{children:(0,r.jsx)(u.$n,Object.assign({id:"gui-name",variant:u.Ak.TERTIARY,onClick:this.handleTitleClick,className:m()(t,{"co-branded":!!l}),label:a,ariaLabel:d,theme:"dark",icon:"location",appendChildren:!1},{children:!!l&&(0,r.jsx)("div",Object.assign({className:"co-brand"},{children:(0,r.jsx)("span",Object.assign({className:"title",id:"cobrandTitle"},{children:l}))}))}))}))}};it.contextType=p.B,it=tt([et.A],it);const nt=it;var st=i(38939),at=i(19072);var ot=i(49812);var rt=i(21960),lt=i(77973),dt=i(31561),ct=i(18856);function ut({id:e,name:t,visible:i}){const n=(0,N.s)(),s=(0,P.L)();return(0,r.jsx)(ct.S,{className:"data-layer-menu-item",id:`layer-toggle-${e}`,label:t||"Untitled Layer",defaultChecked:i,onChange:t=>{const i=t.target;if(!i)return;const a=i.checked;s.issueCommand(new lt.X_(e,a)),n.trackToolGuiEvent("layers","layers_toggle_layer")},onClick:e=>{e.stopPropagation()}})}var ht=i(16263);const{SHOWCASE:mt}=E.A;function pt(){const e=function(){const e=(0,ot.h)(),[t,i]=(0,n.useState)((null==e?void 0:e.model.details.name)||"");return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.onChanged((e=>{i(e.model.details.name)}));return i(e.model.details.name),()=>t.cancel()}),[e]),t}(),t=(0,je.G)(),i=(0,rt.x)(null==t?void 0:t.id),s=Xe(),a=(0,ht.s)("viewer"),o=(0,Ve.h)({includeDefurnish:a}),l=$e(),d=Qe(),c=(0,N.s)(),h=(0,P.L)(),p=(0,A.Y)(),[E,S]=(0,n.useState)(!1),O=(0,at.x)().getRootNode()instanceof ShadowRoot,g=async()=>{c.trackToolGuiEvent("layers","layers_view_goto_start_location"),await h.issueCommand(new st.W)},T=e=>{S(e)};if((0,n.useEffect)((()=>{if(!t||O)return;const{name:i}=t;let n;return n=(0,We.xF)(t)||(0,We.V6)(t)?`${e}: ${i}`:e,document.title=n,()=>{}}),[e,t,O]),!t)return null;const _=s.map((e=>{const{id:t,name:i,toggled:n}=e;return(0,r.jsx)(ut,{id:t,name:i,visible:n},t)})),v=p.t(mt.VIEWS.VIEW_SELECTOR_START_LOCATION_TOOLTIP),I=[];return o.forEach((e=>{const{id:i}=e,n=i===t.id,s=n&&_.length>0?_:void 0,a=s?"parent-menu-item":void 0;I.push((0,r.jsx)(Et,{view:e,active:n,className:a},i)),s&&I.push(...s)})),l&&o.length>1?(0,r.jsxs)("div",Object.assign({className:m()("views-layers-toggles","model-view-selector",{open:E})},{children:[(0,r.jsx)(u.$n,{className:"start-location-btn",icon:"start-location",variant:u.Ak.PRIMARY,size:u.Mp.SMALL,onClick:g,tooltip:v}),(0,r.jsx)(L.y,Object.assign({ariaLabel:i,menuClassName:"views-layers-menu",variant:u.Ak.PRIMARY,size:u.Mp.SMALL,label:i,onMenuToggled:T,caret:!0},{children:I}))]})):_.length>0?(0,r.jsx)("div",Object.assign({className:m()("views-layers-toggles",{open:E})},{children:(0,r.jsx)(L.y,Object.assign({ariaLabel:p.t(mt.LAYERS.TOGGLE_LAYERS),menuClassName:m()("views-layers-menu","data-layers-only-menu"),variant:u.Ak.PRIMARY,size:u.Mp.SMALL,label:i,onMenuToggled:T,caret:!0},{children:_}))})):d?(0,r.jsx)("div",Object.assign({className:"model-view-display"},{children:i})):null}function Et({view:e,active:t,className:i}){const n=(0,N.s)(),s=(0,P.L)(),{id:a}=e,o=(0,rt.x)(a);return(0,r.jsx)(u.$n,{className:m()("view-name",i),label:o,size:u.Mp.SMALL,onClick:async()=>{n.trackToolGuiEvent("layers","layers_view_switch"),await s.issueCommand(new dt.y(!1)),await s.issueCommand(new lt.uo(a)),await s.issueCommand(new dt.y(!0))},active:t,variant:u.Ak.TERTIARY},a)}var St=i(60818),Ot=i(53289),gt=i(6909);const Tt=i.p+"images/matterport-app-icon.svg",{SUBSCRIBER_PROMPT:_t}=E.A.SHOWCASE,At=e=>{e.preventDefault()},vt=()=>{const e=(0,N.s)(),t=(0,A.Y)(),{popupDelay:i}=Ce(),[s,a]=(0,n.useState)(0),[o,l]=(0,n.useState)(!1),[d,c]=(0,n.useState)(!0),[h,m]=(0,ke.Mj)(we.ZZ,!1);(0,Ot.J)(gt.h,(e=>{if(o)return;const t=e.durationDollhouse+e.durationFloorplan+e.durationInside,n=s+t;St.r.debug(`Check Visibility: ${n}/${i}ms, User has dismissed popup: ${h.toString()}`),n>=i&&!h&&l(!0),a(n)}));const p=(0,n.useCallback)((()=>{m(!0)}),[m]),E=(0,n.useCallback)((t=>{t.stopPropagation(),e.trackGuiEvent("subscriber_prompt_a_popup_dismissed"),p()}),[p,e]),S=(0,n.useCallback)((t=>{e.trackGuiEvent("subscriber_prompt_a_popup_cta_click"),window.open(we.oZ,"_blank"),p()}),[p,e]);return(0,n.useEffect)((()=>(o&&d&&(e.trackGuiEvent("subscriber_prompt_a_popup_viewed"),c(!1)),()=>{})),[e,o,d]),o?(0,r.jsxs)("div",Object.assign({className:"subscriber-prompt-popup",onClick:S},{children:[(0,r.jsx)("img",{className:"matterport-app-icon",alt:"Matterport App Icon",src:Tt,width:"48",height:"48"}),(0,r.jsxs)("div",Object.assign({className:"subscriber-prompt-body"},{children:[(0,r.jsx)("div",Object.assign({className:"h5 subscriber-prompt-heading"},{children:t.t(_t.POPUP_CTA_HEADING)})),(0,r.jsx)("a",Object.assign({className:"link",target:"_blank",onClick:At,href:we.oZ},{children:t.t(_t.POPUP_CTA_LINK_TEXT)}))]})),(0,r.jsx)(u.$n,{icon:"close",onClick:E})]})):null};var Nt=i(57470),It=(i(17240),i(42967)),Lt=i(43718),ft=i(73943),bt=i(88581);var Rt=i(1932);const{ROOMS:yt}=E.A.SHOWCASE;function Mt(e){const t=(0,A.Y)(),{additionalPanel:i}=e,s=(0,ft.a)()===d.Jj.PLAYING,a=function(){const e=(0,bt.o)(),[t,i]=(0,n.useState)(!1);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=()=>{i(0===e.insideModeTransitionProgress())},n=e.onChanged(t);return t(),()=>n.cancel()}),[e]),t}(),o=null!=(0,Rt.m)(),l=(0,Lt.v)()&&a&&s&&o;if(!i&&!l)return null;const c=i?20:20.01,h=t.t(yt.SETTINGS);return(0,r.jsxs)(Nt.Q,Object.assign({icon:"settings",tooltip:h,theme:"overlay",variant:u.Ak.FAB,tooltipPlacement:"bottom",analytic:"showcase_settings_click",className:"showcase-settings",preventOverflow:{padding:c}},{children:[(0,r.jsx)(It.l,{allowImageryToggle:!0}),i]}))}function Dt(e){const{brandingEnabled:t,modelDetails:i,tourPlaying:s,toolElements:a,toolSettings:o}=e,l=(0,Le.A)(),d=(0,te.T)(),c=(0,ce.t)(),u=(0,Oe.K)(),h=function(){const e=(0,Me.M)(V.S0.SEARCH),t=(0,ye.F)();return!!t&&(0,De.W)(t)&&!!e}(),p=(0,Re.h)(),E=function(){const e=$e(),t=Qe(),[i,s]=(0,n.useState)(e||t);return(0,n.useEffect)((()=>(s(e||t),()=>{})),[e,t]),i}(),S=function(){const e=Xe(),[t,i]=(0,n.useState)(e.length>0);return(0,n.useEffect)((()=>(i(e.length>0),()=>{})),[e.length]),t}(),O=E||S,g=function(){const e=(0,ue.i)(Pe.wx,!0),t=(0,ue.i)(q.Q$.DetailsModelName,!0);return e&&t}()&&i,T=!!g&&!p&&(!O||l.width>Ie.IU),_=(()=>{const e=Ge(),t=Ce(),i=(0,ke.QH)(we.ZZ);return t.popupEnabled&&e&&!i})(),A=(0,fe.J)(),v=(0,be.O)();if(!A&&v===V.L$.BOTTOM_PANEL)return null;if(!(h||g||p||O))return null;const N=s||u,I=d||c||N,L=!T||N||d,f=!!i,b=!f||N;return(0,r.jsxs)(r.Fragment,{children:[_&&!d&&(0,r.jsx)(vt,{}),(0,r.jsxs)("div",Object.assign({className:"top-ui"},{children:[h&&(0,r.jsx)(ee.w,Object.assign({open:!I,className:m()("top-ui-button",{"faded-out":I})},{children:(0,r.jsx)(Je,{toolName:V.S0.SEARCH})})),(0,r.jsxs)("div",Object.assign({className:"child-container"},{children:[(0,r.jsx)(ee.w,Object.assign({open:p&&!N,className:m()("floor-name-container",{collapsed:!p||I})},{children:(0,r.jsxs)("div",{children:[(0,r.jsx)(Ze.P,{}),h&&(0,r.jsx)("div",{className:"search-button-spacer"})]})})),g&&(0,r.jsx)(ee.w,Object.assign({open:T&&!N&&!d,className:m()("title-bar-container",{collapsed:L})},{children:(0,r.jsx)(nt,{modelDetails:i,brandingEnabled:!!t})})),O&&(0,r.jsx)(ee.w,Object.assign({open:O&&!I,className:m()("model-view-container",{collapsed:!O||I})},{children:(0,r.jsx)(pt,{})}))]})),(0,r.jsxs)(ee.w,Object.assign({open:f,className:m()("top-ui-tool-container",{collapsed:b})},{children:[(0,r.jsx)(Mt,{additionalPanel:o}),a]}))]}))]})}var Pt=i(28243),kt=i(50178),wt=i(22937);class Ct extends n.Component{constructor(e){super(e),this.bindings=[],this.onLoadSpinnerMessage=e=>{this.state.loadSpinnerOn!==e.isOpen&&this.setState({loadSpinnerOn:e.isOpen})},this.onLoadSpinnerSuppressMessage=e=>{this.state.loadSpinnerSuppress!==e.suppress&&this.setState({loadSpinnerSuppress:e.suppress})},this.state={loadSpinnerOn:!1,loadSpinnerSuppress:!1}}componentDidMount(){this.bindings.push(this.context.messageBus.subscribe(kt.XR,this.onLoadSpinnerMessage),this.context.messageBus.subscribe(kt.c7,this.onLoadSpinnerSuppressMessage),this.context.messageBus.subscribe(wt.zM,(()=>this.setState({loadSpinnerSuppress:!0}))),this.context.messageBus.subscribe(wt.pT,(()=>this.setState({loadSpinnerSuppress:!1}))))}componentWillUnmount(){this.bindings.forEach((e=>e.cancel())),this.bindings.length=0}render(){const{loadSpinnerOn:e,loadSpinnerSuppress:t}=this.state,i=e&&!t;return(0,r.jsx)("div",Object.assign({className:"overlay-ui"},{children:(0,r.jsx)(Pt.A,{showing:i})}))}}Ct.contextType=p.B;var xt=i(12386),Ht=i(79489),Ut=i(85949),Gt=i(34806),Ft=i(59618),jt=i(77897),Vt=i(27612),Bt=i(43306),Wt=i(72347);const Kt={"en-US":"./terms/terms-en-US.html",es:"./terms/terms-es-MX.html",fr:"./terms/terms-fr-FR.html",de:"./terms/terms-de-DE.html",ru:"./terms/terms-ru-RU.html",ja:"./terms/terms-ja-JP.html","zh-CN":"./terms/terms-zh-CN.html","zh-TW":"./terms/terms-zh-TW.html",ko:"./terms/terms-ko-KR.html",nl:"./terms/terms-nl-NL.html",it:"./terms/terms-it-IT.html",pt:"./terms/terms-pt-BR.html"};class zt extends n.Component{constructor(e,t){super(e,t),this.isUnmounting=!1,this.onScrollPositionChange=()=>{this.scrollbars&&this.setState({scrollClass:this.scrollbars.scrollPosition.vertical})},this.onClose=()=>{this.context.commandBinder.issueCommand(new x.X(C.a.TERMS,!1))},this.setScrollbars=e=>{e&&(this.scrollbars=e)},this.setTermsTextDiv=e=>{e&&(this.termsTextDiv=e)},this.state={termsText:"",hideScrollbar:(0,Vt.c)((0,Te.J)(t)),scrollClass:jt.BB.None}}async componentDidMount(){const e=function(e){if((0,Wt.D)(e)&&e in Kt)return Kt[e]}(this.context.locale?this.context.locale.languageCode:Bt.Nm);let t="";if(e)try{t=await this.context.queue.get(e)}catch(e){t=this.context.locale.t(E.A.TERMS_FAIL)}else t=this.context.locale.t(E.A.TERMS_FAIL);this.context.market.waitForData(ge.G).then((e=>{this.isUnmounting||(this.resizeSubscription=e.onPropertyChanged("size",(e=>{this.setState({hideScrollbar:(0,Vt.c)(e)})})))})),window.requestAnimationFrame((()=>{this.isUnmounting||this.setState({termsText:t})}))}componentWillUnmount(){var e;this.isUnmounting=!0,null===(e=this.resizeSubscription)||void 0===e||e.cancel()}componentDidUpdate(e,t){this.state.termsText!==t.termsText&&(this.termsTextDiv.innerHTML=this.state.termsText,[].slice.call(this.termsTextDiv.querySelectorAll("a")).forEach((e=>{e.setAttribute("target","_blank"),e.classList.add("link")})))}render(){const{hideScrollbar:e,scrollClass:t}=this.state;return(0,r.jsxs)(Ft.l,Object.assign({className:m()("terms-modal","full-modal",t),theme:"dark",onClose:this.onClose},{children:[(0,r.jsx)(Gt.J,{theme:"dark",onClose:this.onClose}),(0,r.jsx)("div",Object.assign({id:"terms-wrapper"},{children:(0,r.jsx)(Ut.A,Object.assign({name:"terms",ref:this.setScrollbars,onScrollPositionChange:this.onScrollPositionChange,forceHidden:e},{children:(0,r.jsx)("div",{ref:this.setTermsTextDiv,id:"terms-text"})}))}))]}))}}zt.contextType=p.B;var Yt,$t=i(4896),Qt=i(21162),qt=i(5174);!function(e){e.MAIL="mail",e.META="meta",e.PINTEREST="pinterest",e.LINKEDIN="linkedin",e.TWITTER="twitter",e.FACEBOOK="facebook",e.COPYLINK="copylink",e.NATIVE="native"}(Yt||(Yt={}));const{FACEBOOK:Xt,TWITTER:Zt,MAIL:Jt,META:ei,PINTEREST:ti,LINKEDIN:ii,COPYLINK:ni,NATIVE:si}=Yt,ai={[Jt]:"em",[ei]:"mt",[ti]:"pn",[ii]:"ln",[Zt]:"tw",[Xt]:"fb",[ni]:"cp",[si]:"os"},oi={[Xt]:{width:626,height:436},[Zt]:{width:550,height:440},[ti]:{width:750,height:749},[ii]:{width:550,height:453},[ni]:{},[Jt]:{},[ei]:{},[si]:{}},ri=async(e,t=!0)=>{let i;const n=await e.engine.getModuleBySymbol(qt.r),s=["ref","gclid","fbclid","cloudEdit","back","note","comment","apiHost","applicationKey","host","sdkKey","tag"],a=e=>!s.includes(e);return i=t?n.creator.createDeepLink({paramFilter:a}):n.creator.createLink({paramFilter:a}),i.searchParams.forEach(((e,t)=>{(s.includes(t)||0===t.indexOf("utm_"))&&i.searchParams.delete(t)})),decodeURIComponent(i.href)},li=e=>new URLSearchParams(e).toString(),di=(e,t,i)=>{const n=e.replace("?",`?ref=${ai[Xt]}&`);return`http://www.facebook.com/sharer.php?${li({display:"popup",u:n})}`},ci=(e,t,i)=>{const n=e.replace("?",`?ref=${ai[Zt]}&`),s={text:i.t(E.A.SHARED_MESSAGE_HASHTAG,{title:t,url:n,hashtag:"#Matterport"})};return`http://twitter.com/intent/tweet?${li(s)}`},ui=(e,t,i)=>{const n=e.replace("?",`?ref=${ai[Jt]}&`),s={subject:i.t(E.A.SHARED_TITLE,{title:t}),body:i.t(E.A.SHARED_MESSAGE,{title:t,url:n})};return`mailto:?${li(s)}`},hi=e=>{const t=e.replace("?",`?ref=${ai[ei]}&qs=1&`);return`https://www.oculus.com/open_url/?${li({url:t})}`},mi=(e,t,i,n)=>{const s={url:e.replace("?",`?ref=${ai[ti]}&`),media:i,description:n.t(E.A.SHARED_TITLE,{title:t})};return`http://pinterest.com/pin/create/link/?${li(s)}`},pi=(e,t,i)=>{const n=e.replace("?",`?ref=${ai[ii]}&`);return`https://www.linkedin.com/shareArticle?${li({mini:"true",url:n})}`},Ei=(e,t,i,n)=>({[Xt]:di(e),[Zt]:ci(e,t,n),[Jt]:ui(e,t,n),[ti]:mi(e,t,i,n),[ii]:pi(e),[ei]:hi(e),[ni]:e,[si]:e});var Si=i(21320),Oi=i(26059),gi=i(86721);const Ti=new z.Ay("vr-select");class _i extends n.Component{constructor(){super(...arguments),this.isUnmounting=!1,this.startWebXR=()=>{const{analytics:e,commandBinder:t}=this.context;t.issueCommand(new gi.X({type:"immersive-vr",features:["local-floor"]})).then((t=>{if(t){e.trackGuiEvent("vr_enter_app");const i=()=>{e.trackGuiEvent("vr_exit_app"),t.removeEventListener("end",i)};t.addEventListener("end",i)}else Ti.error("requestPresent Failed"),e.trackGuiEvent("vr_present_error"),this.updatePlatformState()})).catch((t=>{Ti.error("requestPresent Failed:",t),e.trackGuiEvent("vr_present_error")}))}}async componentDidMount(){var e;Si.A.apiExists()&&(null===(e=navigator.xr)||void 0===e||e.addEventListener("ondevicechange",this.updatePlatformState)),await this.updatePlatformState()}componentWillUnmount(){var e;this.isUnmounting=!0,Si.A.apiExists()&&(null===(e=navigator.xr)||void 0===e||e.removeEventListener("ondevicechange",this.updatePlatformState))}async updatePlatformState(){const{settings:e}=this.context,t=e.tryGetProperty(Oi.F7,Oi.qy),i=await(0,$t.M1)(t);this.isUnmounting||(this.setState({vrPlatform:i}),Ti.debug(this.state))}}_i.contextType=p.B;var Ai=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},vi=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const Ni=new z.Ay("vr-select");let Ii=class extends _i{constructor(e){super(e),this.renderHeadsetHeader=()=>{const{locale:e}=this.context,{vrPlatform:t}=this.state;switch(t){case $t.wc.unsupported:case $t.wc.webxr:return(0,r.jsxs)("div",Object.assign({className:"headset-header dark"},{children:[(0,r.jsxs)("span",Object.assign({className:"headset-titles"},{children:[(0,r.jsx)("p",{children:e.t(E.A.VR_RECOMMENDED)}),(0,r.jsx)("p",{children:e.t(E.A.VR_QUEST)})]})),(0,r.jsx)("img",{className:"headset-quest",src:i(51),height:200,width:342})]}));default:return null}},this.renderBodyText=()=>{const{locale:e}=this.context,{vrPlatform:t}=this.state;switch(t){case $t.wc.unsupported:case $t.wc.webxr:return(0,r.jsx)("div",{children:(0,r.jsx)("p",{children:e.t(E.A.VR_SUPPORTS)})});default:return null}},this.getFooterButtons=()=>{const{locale:e}=this.context,{vrPlatform:t,metaLink:i}=this.state,n=[];n.push((0,r.jsx)(u.$n,{variant:u.Ak.SECONDARY,className:m()("button-inline","cancel"),onClick:this.onLearnMoreClicked,label:e.t(E.A.VR_LEARN_MORE_CAPS),size:"small"},"learn-more"));return t===$t.wc.webxr?n.push((0,r.jsx)(u.$n,{variant:u.Ak.PRIMARY,onClick:this.onActionClicked,label:e.t(E.A.VR_ENTER),size:"small"},"enter-vr")):n.push((0,r.jsx)(u.$n,{variant:u.Ak.PRIMARY,disabled:!i,onClick:this.onMetaDeepLinkClicked,label:e.t(E.A.VR_META_LINK),size:"small"},"enter-vr")),(0,r.jsx)(Qt.e,Object.assign({spacing:"small"},{children:n}))},this.closeModal=()=>{this.context.commandBinder.issueCommand(new x.X(C.a.VR_SELECT,!1))},this.onCloseClicked=()=>{this.context.analytics.trackGuiEvent("vr_modal_close"),this.closeModal()},this.onActionClicked=()=>{if(this.state.vrPlatform===$t.wc.webxr)this.startWebXR(),this.closeModal()},this.onMetaDeepLinkClicked=()=>{this.state.metaLink&&(window.open(this.state.metaLink,"_blank"),this.context.analytics.trackGuiEvent("vr_meta_link"))},this.onLearnMoreClicked=()=>{window.open("https://support.matterport.com/hc/en-us/articles/360050098973-Exploring-Matterport-Spaces-in-VR-","_blank"),this.context.analytics.trackGuiEvent("vr_learn_more")},this.state={vrPlatform:null,metaLink:null}}async componentDidMount(){await super.componentDidMount(),this.updateUrls(),this.context.analytics.trackGuiEvent("click_vr_button")}render(){const{isMobile:e}=this.props,{locale:t}=this.context,i=m()("vr-modal","full-modal",{mobile:e,desktop:!e});return(0,r.jsxs)(Ft.l,Object.assign({className:i,onClose:this.onCloseClicked},{children:[(0,r.jsxs)("header",Object.assign({className:"modal-header"},{children:[(0,r.jsx)("div",Object.assign({className:"modal-title"},{children:t.t(E.A.VR_VIEW_SPACE)})),(0,r.jsx)(Gt.J,{onClose:this.onCloseClicked})]})),this.renderHeadsetHeader(),(0,r.jsx)("div",Object.assign({className:"modal-body"},{children:this.renderBodyText()})),(0,r.jsx)("div",Object.assign({className:"modal-footer"},{children:this.getFooterButtons()}))]}))}async updateUrls(){const[e]=await Promise.all([ri(this.context,!0)]),t=Ei(e,"","",this.context.locale);Ni.debug("Social Share URLs, with current location",t),this.isUnmounting||this.setState({metaLink:t.meta})}};Ii=Ai([et.A,vi("design:paramtypes",[Object])],Ii);const Li=Ii;var fi=i(71555),bi=i(37105);const Ri=(0,fi.v)(bi.p);var yi=i(30741);class Mi extends n.Component{render(){const{isMobile:e}=this.props,{locale:t}=this.context;return(0,r.jsx)("div",Object.assign({className:"cta"},{children:(0,r.jsx)("header",Object.assign({className:m()({mobile:e})},{children:t.t(e?E.A.MOBILE_SHORT_CTA:E.A.DESKTOP_SHORT_CTA)}))}))}}Mi.contextType=p.B;var Di=i(79827);const{HELP:Pi}=E.A.SHOWCASE;class ki extends n.Component{constructor(){super(...arguments),this.keys={header:E.A.DESKTOP_SHORT_CTA,tourHeader:E.A.CTA_TOUR_COMPLETE,tourSubhead:E.A.CTA_EXPLORE_SPACE,restartTour:E.A.CTA_RESTART_TOUR,share:E.A.CTA_SHARE,move:E.A.MOVE,inside:E.A.INSIDE,rotate:E.A.ROTATE,play:E.A.PLAY,zoom:E.A.ZOOM},this.clickInside={Icon:Di.z.mouse.clickInside,Label:this.keys.inside,FooterIcon:Di.z.keyboard.inside,Alt:Pi.ALT_MOUSE_CLICKINSIDE,FooterAlt:Pi.ALT_KEYBOARD_INSIDE},this.clickMove={Icon:Di.z.mouse.positionRight,Label:this.keys.move,FooterIcon:"",Alt:Pi.ALT_MOUSE_POSITIONRIGHT},this.moveUpDown={Icon:Di.z.mouse.click_old,Label:this.keys.move,FooterIcon:Di.z.keyboard.upDown,Alt:Pi.ALT_MOUSE_CLICK,FooterAlt:Pi.ALT_KEYBOARD_UPDOWN},this.play={Icon:Di.z.mouse.play,Label:this.keys.play,FooterIcon:null,Alt:Pi.ALT_MOUSE_PLAY},this.zoom={Icon:Di.z.mouse.zoom_old,Label:this.keys.zoom,FooterIcon:Di.z.keyboard.zoom,Alt:Pi.ALT_MOUSE_ZOOM,FooterAlt:Pi.ALT_KEYBOARD_ZOOM},this.dragMove={Icon:Di.z.mouse.positionLeft_old,Label:this.keys.move,FooterIcon:null,Alt:Pi.ALT_MOUSE_POSITIONLEFT},this.dragRotateLeft={Icon:Di.z.mouse.dragLeft,Label:this.keys.rotate,FooterIcon:Di.z.keyboard.leftRight,Alt:Pi.ALT_MOUSE_DRAGLEFT,FooterAlt:Pi.ALT_KEYBOARD_LEFTRIGHT},this.dragRotateRight={Icon:Di.z.mouse.dragRight,Label:this.keys.rotate,FooterIcon:Di.z.keyboard.leftRight,Alt:Pi.ALT_MOUSE_DRAGRIGHT,FooterAlt:Pi.ALT_KEYBOARD_LEFTRIGHT},this.left=this.clickInside,this.center=this.clickMove,this.right=this.play,this.close=async()=>{const{commandBinder:e}=this.context;await e.issueCommand(new x.X(C.a.CTA,!1))},this.restartTour=async()=>{const{commandBinder:e}=this.context;this.context.analytics.trackGuiEvent("restart_highlights_from_cta"),this.close(),await e.issueCommand(new Y.OR(0,!0)),e.issueCommand(new Y.mT)},this.share=async()=>{const{commandBinder:e}=this.context;this.context.analytics.trackGuiEvent("click_share_button_from_cta"),this.close(),e.issueCommand(new x.X(C.a.SHARE,!0))}}render(){const{viewmode:e,isHelpCta:t,shareEnabled:i}=this.props,{locale:n}=this.context;this.configureViewmodeSpecifics(e);const s=n.t(t?this.keys.header:this.keys.tourHeader),a=t?"":n.t(this.keys.tourSubhead),o=n.t(E.A.CTA_SHARE),l=n.t(E.A.CTA_RESTART_TOUR);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",Object.assign({className:"cta"},{children:[(0,r.jsxs)("header",{children:[s,(0,r.jsx)("div",Object.assign({className:"subhead"},{children:a}))]}),(0,r.jsx)("img",{src:this.left.Icon,alt:n.t(this.left.Alt)}),(0,r.jsx)("h2",{children:n.t(this.left.Label)}),this.left.FooterIcon?(0,r.jsx)("img",{className:"footer-icon",src:this.left.FooterIcon,alt:this.left.FooterAlt&&n.t(this.left.FooterAlt)}):(0,r.jsx)("span",{}),(0,r.jsx)("img",{src:this.center.Icon,alt:n.t(this.center.Alt)}),(0,r.jsx)("h2",{children:n.t(this.center.Label)}),this.center.FooterIcon?(0,r.jsx)("img",{className:"footer-icon",src:this.center.FooterIcon,alt:this.center.FooterAlt&&n.t(this.center.FooterAlt)}):(0,r.jsx)("span",{}),(0,r.jsx)("img",{src:this.right.Icon,alt:n.t(this.right.Alt)}),(0,r.jsx)("h2",{children:n.t(this.right.Label)}),this.right.FooterIcon?(0,r.jsx)("img",{className:"footer-icon",src:this.right.FooterIcon,alt:this.right.FooterAlt&&n.t(this.right.FooterAlt)}):(0,r.jsx)("span",{})]})),(0,r.jsx)(u.$n,{className:"close-button",theme:"dark",icon:"close",variant:u.Ak.TERTIARY,onClick:this.close}),!t&&(0,r.jsxs)("div",Object.assign({className:"footer"},{children:[(0,r.jsx)(u.$n,{onClick:this.restartTour,theme:"dark",label:l,icon:"restart",variant:u.Ak.TERTIARY}),i&&(0,r.jsx)(u.$n,{className:"share",theme:"dark",label:o,icon:"share2",variant:u.Ak.SECONDARY,onClick:this.share})]}))]})}configureViewmodeSpecifics(e){switch(e){case X.w5.INSIDE:this.left=this.dragRotateLeft,this.center=this.moveUpDown,this.right=this.props.isHelpCta?this.play:this.zoom;break;case X.w5.OUTSIDE:this.left=this.dragRotateLeft,this.center=this.clickMove,this.right=this.clickInside;break;case X.w5.FLOORPLAN:this.left=this.dragMove,this.center=this.dragRotateRight,this.right=this.clickInside}}}ki.contextType=p.B;const{HELP:wi}=E.A.SHOWCASE;class Ci extends n.Component{constructor(){super(...arguments),this.keys={shortCta:E.A.MOBILE_SHORT_CTA,tourHeader:E.A.CTA_TOUR_COMPLETE,tourSubhead:E.A.CTA_EXPLORE_SPACE,move:E.A.MOVE,inside:E.A.INSIDE,rotate:E.A.ROTATE,play:E.A.PLAY,zoom:E.A.ZOOM},this.clickInside={Icon:Di.z.gesture.tapInside,Label:this.keys.inside,Alt:wi.ALT_GESTURE_TAPINSIDE},this.clickMove={Icon:Di.z.gesture.tap_old,Label:this.keys.move,Alt:wi.ALT_GESTURE_TAP},this.dragRotate={Icon:Di.z.gesture.drag_old,Label:this.keys.rotate,Alt:wi.ALT_GESTURE_DRAG},this.dragMove={Icon:Di.z.gesture.position,Label:this.keys.move,Alt:wi.ALT_GESTURE_POSITION},this.play={Icon:Di.z.gesture.play,Label:this.keys.play,Alt:wi.ALT_GESTURE_PLAY},this.zoom={Icon:Di.z.gesture.pinch_old,Label:this.keys.zoom,Alt:wi.ALT_GESTURE_PINCH},this.left=this.dragRotate,this.center=this.clickInside,this.right=this.play}render(){const{viewmode:e,isHelpCta:t}=this.props,{locale:i}=this.context;this.configureViewmodeSpecifics(e);const n=i.t(t?this.keys.shortCta:this.keys.tourHeader),s=t?"":i.t(this.keys.tourSubhead);return(0,r.jsxs)("div",Object.assign({className:"cta mobile"},{children:[(0,r.jsxs)("header",Object.assign({className:"mobile"},{children:[n,(0,r.jsx)("div",Object.assign({className:"subhead"},{children:s}))]})),(0,r.jsx)("h2",Object.assign({className:"mobile"},{children:i.t(this.left.Label)})),(0,r.jsx)("img",{src:this.left.Icon,alt:i.t(this.left.Alt)}),(0,r.jsx)("h2",Object.assign({className:"mobile"},{children:i.t(this.center.Label)})),(0,r.jsx)("img",{src:this.center.Icon,alt:i.t(this.center.Alt)}),(0,r.jsx)("h2",Object.assign({className:"mobile"},{children:i.t(this.right.Label)})),(0,r.jsx)("img",{src:this.right.Icon,alt:i.t(this.right.Alt)})]}))}configureViewmodeSpecifics(e){switch(e){case X.w5.INSIDE:this.left=this.dragRotate,this.center=this.clickMove,this.right=this.props.isHelpCta?this.zoom:this.play;break;case X.w5.DOLLHOUSE:case X.w5.OUTSIDE:this.left=this.dragRotate,this.center=this.clickInside,this.right=this.props.isHelpCta?this.zoom:this.play;break;case X.w5.FLOORPLAN:this.left=this.dragMove,this.center=this.clickInside,this.right=this.props.isHelpCta?this.zoom:this.play}}}var xi;Ci.contextType=p.B,function(e){e[e.NONE=0]="NONE",e[e.LARGE=1]="LARGE",e[e.SMALL=2]="SMALL"}(xi||(xi={}));const Hi="cta-seen";function Ui(e){const t=(0,ye.F)(),i=(0,P.L)(),{touchDevice:s,viewmode:a,shareEnabled:o}=e,l=(0,yi.u)(),d=-1!==(0,Fe.b)("ts",-1),c=(0,Fe.b)("tourcta",1),u=(0,O.U)(xi,c)?c:xi.LARGE,h=!!u&&l>0,[p,E]=(0,n.useState)(h&&d),S=(0,Fe.b)("help",0),g=(0,O.U)(xi,S)?S:xi.NONE,T=(0,ue.i)(Hi,!1),_=T?xi.NONE:p?u:g,[A,v]=(0,n.useState)(_),N=(0,ce.t)(),[I,L]=(0,n.useState)(N===C.a.CTA),f=(0,n.useCallback)((()=>{i.issueCommand(new x.X(C.a.CTA,!1)),L(!1)}),[i]),b=function(){const e=Ri();return(null==e?void 0:e.canvas)||null}();if((0,n.useEffect)((()=>(b&&(b.addEventListener("mousedown",f),b.addEventListener("pointerdown",f),b.addEventListener("touchstart",f)),()=>{b&&(b.removeEventListener("mousedown",f),b.removeEventListener("pointerdown",f),b.removeEventListener("touchstart",f))})),[b,f]),(0,Ot.J)(wt.YH,(()=>{!T&&h&&(E(!0),v(u),i.issueCommand(new x.X(C.a.CTA,!0)))})),(0,n.useEffect)((()=>{const e=N===C.a.CTA;L(e),e&&t.setProperty(Hi,!0)}),[N,t]),A===xi.NONE)return null;const R=A===xi.SMALL,y=!R&&!s,M=!R&&s,D={mobile:s,small:R,helpCta:!p};return(0,r.jsx)(ee.w,Object.assign({open:I,className:m()("modal-background","dark-modal-background",{open:I})},{children:(0,r.jsxs)("div",Object.assign({className:m()("modal","ctaContainer",D)},{children:[R&&(0,r.jsx)(Mi,{isMobile:s}),y&&(0,r.jsx)(ki,{viewmode:a,isHelpCta:!p,shareEnabled:o}),M&&(0,r.jsx)(Ci,{viewmode:a,isHelpCta:!p,shareEnabled:o})]}))}))}var Gi,Fi,ji,Vi,Bi,Wi;!function(e){e[e.navigation=0]="navigation",e[e.moreHelp=1]="moreHelp"}(Gi||(Gi={})),function(e){e.left="left",e.middle="middle",e.right="right"}(Fi||(Fi={})),function(e){e.topInfo="topInfo",e.bigImage="bigImage",e.bottomInfo="bottomInfo",e.keyboard="keyboard"}(ji||(ji={})),function(e){e.desktop="desktop",e.mobile="mobile"}(Vi||(Vi={})),function(e){e.hlr="hlr",e.dollhouse="dollhouse",e.floors="floors",e.mattertag="mattertag",e.floorplan="floorplan",e.tour="tour",e.inside="inside",e.vr="vr",e.view360="view360",e.fullscreen="fullscreen"}(Bi||(Bi={})),function(e){e.landscape="landscape",e.portrait="portrait"}(Wi||(Wi={}));var Ki=i(87976);const zi=E.A.SHOWCASE.HELP,Yi={[Vi.desktop]:{title:zi.NAV_DOLLHOUSE_TITLE,items:[{iconSrc:Di.z.mouse.positionLeft,iconAlt:zi.ALT_MOUSE_POSITIONLEFT,header:zi.DESKTOP_DOLLHOUSE_PAN_HEADER,text:zi.DESKTOP_DOLLHOUSE_PAN},{iconSrc:Di.z.mouse.zoom,iconAlt:zi.ALT_MOUSE_ZOOM,header:zi.DESKTOP_DOLLHOUSE_ZOOM_HEADER,text:zi.DESKTOP_DOLLHOUSE_ZOOM},{iconSrc:Di.z.mouse.dragRightHoriz,iconAlt:zi.ALT_MOUSE_DRAGRIGHT_HORIZ,header:zi.DESKTOP_DOLLHOUSE_ROTATE_HEADER,text:zi.DESKTOP_DOLLHOUSE_ROTATE},{iconSrc:Di.z.mouse.dragRightVert,iconAlt:zi.ALT_MOUSE_DRAGRIGHT_VERT,header:zi.DESKTOP_DOLLHOUSE_2D3D_HEADER,text:zi.DESKTOP_DOLLHOUSE_2D3D,badge:E.A.GENERIC.NEW_MESSAGE}]},[Vi.mobile]:{title:zi.NAV_DOLLHOUSE_TITLE,items:[{iconSrc:Di.z.gesture.position,iconAlt:zi.ALT_GESTURE_POSITION,text:zi.TOUCH_DOLLHOUSE_PAN},{iconSrc:Di.z.gesture.dragTwoFingerVert,iconAlt:zi.ALT_GESTURE_DRAGTWOFINGER_VERT,text:zi.TOUCH_DOLLHOUSE_2D3D,badge:E.A.GENERIC.NEW_MESSAGE},{iconSrc:Di.z.gesture.dragTwoFingerRotate,iconAlt:zi.ALT_GESTURE_TOUCH_ROTATE,text:zi.TOUCH_DOLLHOUSE_ROTATE,badge:E.A.GENERIC.NEW_MESSAGE},{iconSrc:Di.z.gesture.pinch,iconAlt:zi.ALT_GESTURE_PINCH,text:zi.TOUCH_DOLLHOUSE_ZOOM}]}},$i={[Vi.desktop]:Object.assign(Object.assign({},Yi[Vi.desktop]),{title:zi.NAV_FLOORPLAN_TITLE}),[Vi.mobile]:Object.assign(Object.assign({},Yi[Vi.mobile]),{title:zi.NAV_FLOORPLAN_TITLE})},Qi={[Vi.desktop]:{title:zi.NAV_INSIDE_TITLE,items:[{iconSrc:Di.z.mouse.positionLeft,iconAlt:zi.ALT_MOUSE_POSITIONLEFT,header:zi.DESKTOP_INSIDE_LOOK_HEADER,text:zi.DESKTOP_INSIDE_LOOK},{iconSrc:Di.z.mouse.zoom,iconAlt:zi.ALT_MOUSE_ZOOM,header:zi.DESKTOP_INSIDE_ZOOM_HEADER,text:zi.DESKTOP_INSIDE_ZOOM},{iconSrc:Di.z.mouse.click,iconAlt:zi.ALT_MOUSE_CLICK,header:zi.DESKTOP_INSIDE_MOVE_HEADER,text:zi.DESKTOP_INSIDE_MOVE}]},[Vi.mobile]:{title:zi.NAV_INSIDE_TITLE,items:[{iconSrc:Di.z.gesture.position,iconAlt:zi.ALT_GESTURE_POSITION,text:zi.TOUCH_INSIDE_LOOK},{iconSrc:Di.z.gesture.tap,iconAlt:zi.ALT_GESTURE_TAP,text:zi.TOUCH_INSIDE_MOVE},{iconSrc:Di.z.gesture.pinch,iconAlt:zi.ALT_GESTURE_PINCH,text:zi.TOUCH_INSIDE_ZOOM}]}},qi=(0,n.memo)((({viewmode:e,device:t})=>{const i=(0,A.Y)(),n=(e===X.w5.FLOORPLAN?$i:e===X.w5.DOLLHOUSE?Yi:Qi)[t];return(0,r.jsx)("div",Object.assign({className:m()("navigation",t)},{children:(0,r.jsx)(Ki.H,Object.assign({disabled:!1,hideThumb:!1},{children:(0,r.jsxs)("section",{children:[n.title&&(0,r.jsx)("h2",{children:i.t(n.title)}),(0,r.jsxs)("ul",{children:[n.items.map((({iconSrc:e,iconAlt:t,header:n,text:s,badge:a},o)=>(0,r.jsxs)("li",{children:[(0,r.jsx)("img",{src:e,alt:i.t(t)}),(n||a)&&(0,r.jsxs)("h3",{children:[n&&i.t(n)+" ",a&&(0,r.jsx)("span",Object.assign({className:"help_badge"},{children:i.t(a)}))]}),(0,r.jsx)("div",{children:i.t(s)})]},o))),n.items.length%2?(0,r.jsx)("li",{children:(0,r.jsx)("div",{style:{width:440}})}):null]})]})}))}))})),Xi={[Bi.hlr]:{[ji.topInfo]:"HELP_MORE_HLR_A",[ji.bigImage]:"icon-hlr",[ji.bottomInfo]:"HELP_DESKTOP_MORE_HLR_B"},[Bi.dollhouse]:{[ji.topInfo]:"HELP_MORE_DOLLHOUSE_A",[ji.bigImage]:"icon-dollhouse",[ji.bottomInfo]:"HELP_MOBILE_MORE_DOLLHOUSE_B"},[Bi.floors]:{[ji.topInfo]:"HELP_MORE_FLOORS_A",[ji.bigImage]:"icon-floor-controls",[ji.bottomInfo]:"HELP_DESKTOP_MORE_FLOORS_B"},[Bi.mattertag]:{[ji.topInfo]:"HELP_MORE_MATTERTAG_A",[ji.bigImage]:Di.z.moreHelp.mattertag,[ji.bottomInfo]:"HELP_MOBILE_MORE_MATTERTAG_B"},[Bi.tour]:{[ji.topInfo]:"HELP_MORE_TOUR_A",[ji.bigImage]:"icon-play",[ji.bottomInfo]:"HELP_DESKTOP_MORE_TOUR_B"},[Bi.inside]:{[ji.topInfo]:"HELP_MORE_INSIDE_A",[ji.bigImage]:"icon-panorama",[ji.bottomInfo]:"HELP_MOBILE_MORE_INSIDE_B"},[Bi.vr]:{[ji.topInfo]:"HELP_MORE_VR_A",[ji.bigImage]:"icon-vr",[ji.bottomInfo]:"HELP_MOBILE_MORE_VR_B"},[Bi.view360]:{[ji.topInfo]:"HELP_MORE_360_A",[ji.bigImage]:Di.z.moreHelp.view360,[ji.bottomInfo]:"HELP_MOBILE_MORE_360_B"},[Bi.floorplan]:{[ji.topInfo]:"HELP_MORE_FLOORPLAN_A",[ji.bigImage]:"icon-floorplan",[ji.bottomInfo]:"HELP_MOBILE_FLOORPLAN_B"}},Zi=JSON.parse(JSON.stringify(Xi));Zi[Bi.fullscreen]={[ji.topInfo]:"HELP_MORE_FULLSCREEN_A",[ji.bigImage]:"icon-fullscreen",[ji.bottomInfo]:"HELP_DESKTOP_MORE_FULLSCREEN_B"},Zi[Bi.dollhouse][ji.bottomInfo]="HELP_DESKTOP_MORE_DOLLHOUSE_B",Zi[Bi.mattertag][ji.bottomInfo]="HELP_DESKTOP_MORE_MATTERTAG_B",Zi[Bi.inside][ji.bottomInfo]="HELP_DESKTOP_MORE_INSIDE_B",Zi[Bi.vr][ji.bottomInfo]="HELP_DESKTOP_MORE_VR_B",Zi[Bi.view360][ji.bottomInfo]="HELP_DESKTOP_MORE_360_B",Zi[Bi.floorplan][ji.bottomInfo]="HELP_DESKTOP_FLOORPLAN_B";const Ji={[Vi.desktop]:Zi,[Vi.mobile]:Xi};var en=i(44879);const tn=[ji.topInfo,ji.bigImage,ji.bottomInfo];class nn extends n.Component{constructor(e){super(e),this.scrollbarsRef=(0,n.createRef)()}componentDidMount(){const e=this.scrollbarsRef.current;e&&e.scrollTo({x:0,y:0})}buildInstructions(){const e=[],t=this.props.device===Vi.desktop?5:this.props.orientation===en.U.LANDSCAPE?3:2,i=Object.keys(Ji[this.props.device]);for(let n=0;n=i.length)continue;const t=Ji[this.props.device][i[n+e]][s],o=m()(s,i[n+e],{noAsset:!t}),l=`${n}_${s}_${e}`;switch(s){case ji.topInfo:a.push((0,r.jsx)("div",Object.assign({className:o},{children:this.context.locale.t(t)}),`${l}_top_info`));break;case ji.bigImage:a.push((0,r.jsx)("div",Object.assign({className:o},{children:t.indexOf(".png")>-1?(0,r.jsx)("img",{src:t}):(0,r.jsx)("span",Object.assign({className:t},{children:"floors"===i[n+e]?(0,r.jsx)("span",{children:"2"}):null}))}),`${l}_big_img`));break;case ji.bottomInfo:a.push((0,r.jsx)("div",Object.assign({className:o},{children:this.context.locale.t(t)}),`${l}_bottom_info`))}}e.push((0,r.jsx)("div",Object.assign({className:m()("innerRow",s)},{children:a}),`${n}_${s}_top_info`))}e.push((0,r.jsx)("div",{className:"rowPadding"},`${n}_row_padding`))}return e.pop(),e}render(){return(0,r.jsx)("div",Object.assign({className:m()("more-help-wrapper",this.props.device)},{children:(0,r.jsx)(Ut.A,Object.assign({name:"more-help-wrapper",ref:this.scrollbarsRef,forceHidden:!1},{children:(0,r.jsx)("div",Object.assign({className:m()("more-help")},{children:this.buildInstructions()}))}))}))}}nn.contextType=p.B;var sn=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},an=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let on=class extends n.Component{constructor(e,t){var i,n;super(e,t),this.isUnmounting=!1,this.handleTabClick=e=>()=>{this.setState({tab:e})},this.closeHelp=()=>{this.context.commandBinder.issueCommand(new x.X(C.a.HELP,!1))},this.device=this.props.isMobile?Vi.mobile:Vi.desktop,this.state={tab:Gi.navigation,orientation:null!==(n=null===(i=t.market.tryGetData(ge.G))||void 0===i?void 0:i.orientation)&&void 0!==n?n:en.U.LANDSCAPE}}componentDidMount(){this.context.market.waitForData(ge.G).then((e=>{this.isUnmounting||(this.orientationSubscription=e.onPropertyChanged("orientation",(e=>{this.setState({orientation:e})})))}))}componentWillUnmount(){var e;this.isUnmounting=!0,null===(e=this.orientationSubscription)||void 0===e||e.cancel()}render(){const{tab:e,orientation:t}=this.state;return(0,r.jsxs)(Ft.l,Object.assign({className:m()("full-modal","help-modal",this.device),theme:"dark",onClose:this.closeHelp},{children:[(0,r.jsx)(Gt.J,{theme:"dark",onClose:this.closeHelp}),(0,r.jsxs)("div",Object.assign({className:m()("tabs",e)},{children:[(0,r.jsx)("div",Object.assign({className:m()("navigation-tab",{active:e===Gi.navigation}),onClick:this.handleTabClick(Gi.navigation)},{children:(0,r.jsx)("span",{children:this.context.locale.t(E.A.HELP_NAVIGATION_TAB)})})),(0,r.jsx)("div",Object.assign({className:m()("more-help-tab",{active:e===Gi.moreHelp}),onClick:this.handleTabClick(Gi.moreHelp)},{children:(0,r.jsx)("span",{children:this.context.locale.t(E.A.HELP_MORE_HELP_TAB)})}))]})),e===Gi.navigation&&(0,r.jsx)(qi,{device:this.device,viewmode:this.props.viewmode}),e===Gi.moreHelp&&(0,r.jsx)(nn,{device:this.device,orientation:t})]}))}};on.contextType=p.B,on=sn([et.A,an("design:paramtypes",[Object,Object])],on);const rn=on;var ln=i(55057),dn=i(62372),cn=i(81609);const un=new z.Ay("share-modal");class hn extends n.Component{constructor(e){super(e),this.isUnmounting=!1,this.copyURL=()=>{const{deeplink:e}=this.state,t=this.urlInputRef;if(t){const i=new URL(t.value);i.hash="",(0,cn.l)(i.toString()),this.setState({copied:!0}),this.context.analytics.track("showcase_share_action",{channel:Yt.COPYLINK,pano_id:this.sweepData.currentSweep,deeplink:e}),window.setTimeout((()=>{this.setState({copied:!1})}),2500)}},this.toggleDeeplinks=()=>{const{deeplink:e}=this.state;this.setState({deeplink:!e})},this.close=()=>{this.context.commandBinder.issueCommand(new x.X(C.a.SHARE,!1))},this.openShareWindow=e=>{const{urls:t,deeplink:i,deeplinkUrls:n}=this.state,{width:s,height:a}=oi[e],o=i?n[e]:t[e];let r;if(s&&a){r="top="+(window.screenY+(window.innerHeight-a)/2)+",left="+(window.screenX+(window.innerWidth-s)/2)+",width="+s+",height="+a}this.context.analytics.track("showcase_share_action",{channel:e,pano_id:this.sweepData.currentSweep,deeplink:i}),window.open(o,"",r)},this.openWebShareApi=e=>{if(!navigator.share)return;const{excerpt:t,title:i,urls:n,deeplinkUrls:s}=this.state,a={url:e?s[Yt.COPYLINK]:n[Yt.COPYLINK],text:t,title:i};un.debug("Launching Web Share API",a),navigator.share(a),this.context.analytics.track("showcase_share_action",{channel:Yt.NATIVE,pano_id:this.sweepData.currentSweep,deeplink:e})},this.onWebShareClick=()=>{this.openWebShareApi(!1)},this.onWebShareDeeplinkClick=()=>{this.openWebShareApi(!0)},this.setUrlInputRef=e=>{this.urlInputRef=e},this.state={urls:{},deeplinkUrls:{},title:"",excerpt:"",image:"",copied:!1,deeplink:!1,webShareEnabled:(0,Z.Yk)()},this.openFacebook=this.openShareWindow.bind(this,Yt.FACEBOOK),this.openTwitter=this.openShareWindow.bind(this,Yt.TWITTER),this.openPinterest=this.openShareWindow.bind(this,Yt.PINTEREST),this.openLinkedIn=this.openShareWindow.bind(this,Yt.LINKEDIN),this.openEmail=this.openShareWindow.bind(this,Yt.MAIL)}async componentDidMount(){const{market:e}=this.context,[t,i]=await Promise.all([e.waitForData(ln.q),e.waitForData(dn.A)]);this.sweepData=i;const n=`${window.location.origin}/api/v1/player/models/${t.model.sid}/thumb`,s=t.model.details.name;this.isUnmounting||this.setState({title:s,image:n},this.updateUrls)}componentWillUnmount(){this.isUnmounting=!0}async updateUrls(){const{title:e,image:t}=this.state,[i,n]=await Promise.all([ri(this.context,!1),ri(this.context,!0)]),s=Ei(i,e,t,this.context.locale),a=Ei(n,e,t,this.context.locale);un.debug("Social Share URLs:",s),un.debug("Social Share URLs, with current location",a),this.isUnmounting||this.setState({urls:s,deeplinkUrls:a})}renderWebShareDialog(){return(0,r.jsxs)("div",Object.assign({className:"share-controls"},{children:[(0,r.jsx)(u.$n,{className:"share-modal-button",variant:u.Ak.PRIMARY,size:u.Mp.LARGE,onClick:this.onWebShareDeeplinkClick,label:this.context.locale.t(E.A.SHARE_CURRENT_LOCATION)}),(0,r.jsx)(u.$n,{className:"share-modal-button",variant:u.Ak.SECONDARY,size:u.Mp.LARGE,onClick:this.onWebShareClick,label:this.context.locale.t(E.A.SHARE_DEFAULT_LOCATION)})]}))}renderShareDialog(){const{copied:e,deeplink:t,urls:i,deeplinkUrls:n}=this.state,{locale:s}=this.context,a=t?n[Yt.COPYLINK]:i[Yt.COPYLINK],o=this.sweepData&&this.sweepData.isSweepDisabled(),l=o?s.t(E.A.SHARE_ERROR_SWEEP_DISABLED):void 0;return(0,r.jsxs)("div",Object.assign({className:"share-controls"},{children:[(0,r.jsxs)("div",Object.assign({className:"social-icons"},{children:[(0,r.jsx)(u.$n,{onClick:this.openFacebook,icon:"facebook",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_FACEBOOK)}),(0,r.jsx)(u.$n,{onClick:this.openTwitter,icon:"twitter",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_TWITTER)}),(0,r.jsx)(u.$n,{onClick:this.openLinkedIn,icon:"linkedin",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_LINKEDIN)}),(0,r.jsx)(u.$n,{onClick:this.openPinterest,icon:"pinterest",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_PINTEREST)}),(0,r.jsx)(u.$n,{onClick:this.openEmail,icon:"email",variant:u.Ak.FAB,size:"large",theme:"dark",ariaLabel:s.t(E.A.SHARE_MAIL)})]})),(0,r.jsxs)("div",Object.assign({className:"input-group"},{children:[(0,r.jsx)("input",{className:"input",type:"text",value:a||"",ref:this.setUrlInputRef,readOnly:!0}),(0,r.jsx)(u.$n,{className:"input-addon",variant:u.Ak.SECONDARY,onClick:this.copyURL,label:this.context.locale.t(E.A.COPY),tooltip:e?this.context.locale.t(E.A.SHARE_COPIED):this.context.locale.t(E.A.COPY_URL)})]})),(0,r.jsx)(ct.S,{defaultChecked:t,disabled:o,label:this.context.locale.t(E.A.SHARE_LINK_TO_LOCATION),onChange:this.toggleDeeplinks}),o&&(0,r.jsx)("p",Object.assign({className:"error-message"},{children:l}))]}))}render(){const{webShareEnabled:e}=this.state,t=m()("share-modal","modal-dialog",{"share-dialog":!e,"web-share-dialog":e}),i=e?this.renderWebShareDialog():this.renderShareDialog();return(0,r.jsxs)(Ft.l,Object.assign({className:t,onClose:this.close},{children:[(0,r.jsxs)("header",Object.assign({className:"modal-header"},{children:[(0,r.jsx)("div",Object.assign({className:"modal-title"},{children:this.context.locale.t(E.A.SHARE_MODAL_TITLE)})),(0,r.jsx)(Gt.J,{onClose:this.close})]})),(0,r.jsx)("div",Object.assign({className:"modal-body"},{children:i}))]}))}}hn.contextType=p.B;class mn extends n.Component{constructor(e,t){super(e),this.closeModal=()=>{this.context.commandBinder.issueCommand(new x.X(C.a.MEASUREMENT_HELP,!1))},this.locale={headerString:t.locale.t(E.A.MEASUREMENT_MODE),subHeaderString:t.locale.t(E.A.MEASUREMENT_HELP_MODAL_SUB_HEADER),body1String:t.locale.t(E.A.MEASUREMENT_HELP_MODAL_BODY_1),body2String:t.locale.t(E.A.MEASUREMENT_HELP_MODAL_BODY_2)}}render(){const{headerString:e,subHeaderString:t,body1String:i,body2String:n}=this.locale,{mobile:s}=this.props;return(0,r.jsxs)(Ft.l,Object.assign({className:m()("full-modal","measurement-mode-help-modal",{mobile:s}),onClose:this.closeModal},{children:[(0,r.jsxs)("header",Object.assign({className:"modal-header"},{children:[(0,r.jsx)("div",Object.assign({className:"modal-title"},{children:e})),(0,r.jsx)(Gt.J,{onClose:this.closeModal})]})),(0,r.jsx)("div",Object.assign({className:"modal-subheader"},{children:t})),(0,r.jsxs)("div",Object.assign({className:"modal-body"},{children:[(0,r.jsx)("p",Object.assign({className:"modal-paragraph"},{children:i})),(0,r.jsx)("p",Object.assign({className:"modal-paragraph"},{children:n}))]}))]}))}}mn.contextType=p.B;var pn=i(95400),En=i(30684),Sn=i(94609),On=i(19968);function gn(){const e=(0,A.Y)(),t=(0,P.L)(),i=(0,n.useCallback)((()=>{t.issueCommand(new x.X(C.a.DEFURNISH_AI,!1))}),[t]);return(0,r.jsxs)(Ft.l,Object.assign({className:m()("defurnish-ai-modal","full-modal"),theme:"dark",onClose:i},{children:[(0,r.jsx)(Gt.J,{theme:"dark",onClose:i}),(0,r.jsxs)("div",Object.assign({className:"modal-body"},{children:[(0,r.jsx)("h6",Object.assign({className:"defurnish-ai-modal-title"},{children:e.t(E.A.SHOWCASE.DEFURNISH_AI_MODAL.TITLE)})),(0,r.jsx)("p",Object.assign({className:"defurnish-ai-modal-content"},{children:e.t(E.A.SHOWCASE.DEFURNISH_AI_MODAL.TEXT1)})),(0,r.jsx)("p",Object.assign({className:"defurnish-ai-modal-content"},{children:e.t(E.A.SHOWCASE.DEFURNISH_AI_MODAL.TEXT2)}))]}))]}))}function Tn(e){const{viewmode:t,shareEnabled:i}=e,s=(0,P.L)(),a=(0,ce.t)(),o=(0,Sn.I)(),l=(0,n.useMemo)((()=>(0,Z.C8)()),[]),d=t===X.w5.DOLLHOUSE&&(0,On.aY)(o)?X.w5.FLOORPLAN:t,c=a===C.a.SHARE,u=a===C.a.TERMS,h=a===C.a.HELP,p=a===C.a.MEASUREMENT_HELP,E=a===C.a.VR_SELECT,S=a===C.a.RATING_THANK_YOU,O=a===C.a.DEFURNISH_AI,g=u||h||O,T=c||g||p||S||E;return(0,r.jsxs)("div",Object.assign({id:"showcase-modals"},{children:[(0,r.jsx)(En.u,{commandBinder:s}),(0,r.jsx)(Ui,{touchDevice:l,viewmode:d,shareEnabled:i}),(0,r.jsxs)(ee.w,Object.assign({className:m()("modal-background",{"dark-modal-background":g,open:T}),open:T,selectChild:!0,childKey:a||void 0,onClick:()=>{s.issueCommand(new x.r)}},{children:[(0,r.jsx)(hn,{},C.a.SHARE),(0,r.jsx)(mn,{mobile:l},C.a.MEASUREMENT_HELP),(0,r.jsx)(Li,{isMobile:l},C.a.VR_SELECT),u&&(0,r.jsx)(zt,{},C.a.TERMS),h&&(0,r.jsx)(rn,{isMobile:l,viewmode:d,allModes:X.w5},C.a.HELP),S&&(0,r.jsx)(pn.y,{},C.a.RATING_THANK_YOU),O&&(0,r.jsx)(gn,{},C.a.DEFURNISH_AI)]}))]}))}var _n=i(75778),An=i(21875),vn=i(44481),Nn=i(1197),In=i(99583),Ln=i(2993),fn=i(85204),bn=i(12596),Rn=i(15105),yn=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},Mn=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let Dn=class extends _i{constructor(e){super(e),this.state={vrPlatform:null}}render(){return this.state.vrPlatform===$t.wc.webxr?this.renderOverlayCta():null}renderOverlayCta(){const{locale:e}=this.context;return(0,r.jsx)("div",Object.assign({id:"vr-overlay-layer",className:"overlay grid-overlay"},{children:(0,r.jsx)(Rn.E,Object.assign({small:!0},{children:(0,r.jsx)(u.$n,{size:u.Mp.SMALL,variant:u.Ak.FAB,theme:"dark",label:e.t(E.A.VR_ENTER),onClick:this.startWebXR})}))}))}};Dn.contextType=p.B,Dn=yn([et.A,Mn("design:paramtypes",[Object])],Dn);var Pn=i(95541);const{TOURS:kn}=E.A.SHOWCASE;function wn(e){const t=(0,A.Y)(),i=(0,D.B)(),s=(0,ye.F)(),a=(0,P.L)(),{highlights:o,tourPlaying:l}=e,d=(0,Pn.H)(),c=t.t(kn.TOUR_CONTROLS_TITLE),u=t.t(kn.TOUR_CONTROLS_CTA),h=0===o.length,[p,E]=(0,n.useState)(!1),S=(0,n.useCallback)((async e=>{h||(e.stopPropagation(),await a.issueCommand(new Y.FU))}),[h,a]),O=(0,n.useCallback)((async e=>{h||(e.stopPropagation(),await a.issueCommand(new Y.jL))}),[h,a]);return(0,n.useEffect)((()=>{const e=[];let t=0;const n=()=>{E(!1)};return e.push(i.subscribe(wt.zM,(()=>{})),i.subscribe(wt.pT,n)),()=>{e.forEach((e=>e.cancel())),clearInterval(t)}}),[i,s,d]),(0,r.jsxs)("div",Object.assign({className:m()("tour-story-controls-mobile",{prompt:p,tourPlaying:l})},{children:[(0,r.jsx)("div",Object.assign({className:"tour-story-help-title"},{children:c})),(0,r.jsx)("div",Object.assign({className:"tour-story-help-cta"},{children:u})),(0,r.jsx)("div",Object.assign({className:"tour-story-prev",onClick:O},{children:(0,r.jsx)("div",{className:"icon icon-dpad-left"})})),(0,r.jsx)("div",Object.assign({className:"tour-story-next",onClick:S},{children:(0,r.jsx)("div",{className:"icon icon-dpad-right"})}))]}))}var Cn=i(7584);const xn=new z.Ay("showcase-ui"),Hn=(0,_n.EN)();class Un extends n.Component{constructor(e,t){super(e,t),this.bindings=[],this.propertiesToRefreshUi=[q.Q$.Measurements,q.Q$.DetailsModelName,w.p,q.Q$.FloorSelect,fn.nc,q.Q$.RoomBounds],this.isUnmounting=!1,this.getModeChange=e=>({viewmode:(0,X.gB)(e.toMode)}),this.updateToolPanelLayout=()=>{const{toolsData:e}=this.context,t=e.toolPanelLayout;this.setState({toolPanelLayout:t})},this.showHelpOnPlaying=e=>{e.phase===d.Jj.PLAYING&&(this.context.commandBinder.issueCommand(new x.X(C.a.CTA,!0)),this.context.messageBus.unsubscribe(l.uv,this.showHelpOnPlaying))},this.updateTools=()=>{const{toolsData:e}=this.context,{toolsLoaded:t}=this.state,i=e.toolsMap;this.setState({toolsCount:i.length}),i.length>0&&!t&&(this.setState({toolsLoaded:!0}),window.setTimeout((()=>{this.context.commandBinder.issueCommand(new c.M_)}),750))},this.updatePerSettings=()=>{const{settings:e,policyData:t}=this.context;this.setState({measurementsModeEnabled:e.tryGetProperty(q.Q$.Measurements,!0)||(0,Cn.m2)(t,e,!1),notesEnabled:e.tryGetProperty(fn.nc,!1)})},this.updateTourState=()=>{this.tourData&&this.setState({tourState:this.tourData.getCurrentTourState()})},this.updateTourMode=()=>{this.toursViewData&&this.setState({tourMode:this.toursViewData.currentTourMode})},this.isVrButtonEnabled=()=>(0,$t.ni)(this.context.settings),this.updateActiveTool=()=>{const{tourState:e}=this.state,{toolsData:t,commandBinder:i}=this.context,n=t.activeToolName;n&&e.tourPlaying&&i.issueCommand(new Y.IP,!1),this.setState({activeToolName:n})},this.openModalChanged=()=>{const{toolsData:e}=this.context,t=e.openModal;this.setState({openModal:t})},this.state={viewmode:X.ty,activeToolName:null,openModal:null,toolsLoaded:!1,toolsCount:0,toolPanelLayout:t.toolsData.toolPanelLayout,tourState:{},tourMode:F.cR.NONE,modelDetails:null,measurementsModeEnabled:!1,notesEnabled:!1,vrEnabled:!1,brandingEnabled:!1,shareEnabled:!1,unaligned:!0,showExternalUrl:!1}}async componentDidMount(){const{settings:e,messageBus:t,market:i,toolsData:n,mainDiv:s}=this.context;s.classList.remove("with-toolbar");for(const t of this.propertiesToRefreshUi)e.onPropertyChanged(t,this.updatePerSettings);try{this.cancelBindings(),this.bindings=[n.onPropertyChanged("activeToolName",this.updateActiveTool),n.onPropertyChanged("openModal",this.openModalChanged),n.onPropertyChanged("toolPanelLayout",this.updateToolPanelLayout),n.toolsMap.onChanged(this.updateTools)],this.handleStartUpHelp();const[e,s,a,o,r]=await Promise.all([i.waitForData(ln.q),i.waitForData(In.X),i.waitForData(dn.A),i.waitForData(An.R),i.waitForData(vn.F)]);if(this.isUnmounting)return;this.bindings.push(t.subscribe(Nn.A,(e=>this.setState(Object.assign(Object.assign({},this.getModeChange(e)),this.getUnalignedSweepState())))),t.subscribe(wt.pT,this.updateTourState),t.subscribe(wt.zM,this.updateTourState),t.subscribe(wt.n1,this.updateTourState),t.subscribe(wt.YH,this.updateTourState),t.subscribe(wt.zb,this.updateTourState),o.getReel().onChanged(this.updateTourState),r.onPropertyChanged("currentTourMode",this.updateTourMode),a.makeSweepChangeSubscription((()=>this.setState(this.getUnalignedSweepState()))));const l=(0,X.gB)(s.currentMode||Ln.N3.Panorama);this.tourData=o,this.toursViewData=r,this.sweepData=a,this.viewmodeData=s,this.setState(Object.assign({viewmode:l,modelDetails:e.model.details,brandingEnabled:this.isBrandingEnabled()&&!this.isMlsEnabled(),shareEnabled:this.isShareEnabled()&&!this.isMlsEnabled(),showExternalUrl:this.isBrandingEnabled()&&!this.isMlsEnabled(),vrEnabled:this.isVrButtonEnabled()},this.getUnalignedSweepState())),this.props.onAppReadyChanged(!0,!1)}catch(e){xn.debug(e)}this.updateTourState(),this.updateTourMode(),this.updateActiveTool(),this.updateToolPanelLayout(),this.updateTools(),this.updatePerSettings()}async componentWillUnmount(){this.isUnmounting=!0;for(const e of this.propertiesToRefreshUi)this.context.settings.removeOnPropertyChanged(e,this.updatePerSettings);this.cancelBindings(),this.props.onAppReadyChanged(!1,!1)}handleStartUpHelp(){const{settings:e,messageBus:t,commandBinder:i}=this.context,n=e.getOverrideParam("help",0);if(1===n||2===n){const n=1===e.getOverrideParam("ts",0),s=!0===e.tryGetProperty("quickstart",!1);n||(s?i.issueCommand(new x.X(C.a.CTA,!0)):t.subscribe(l.uv,this.showHelpOnPlaying))}}getUnalignedSweepState(){if(!this.sweepData||!this.viewmodeData)return{unaligned:this.state.unaligned};return{unaligned:this.viewmodeData.isInside()&&this.sweepData.isSweepUnaligned(this.sweepData.currentSweep)}}cancelBindings(){for(const e of this.bindings)e.cancel()}isShareEnabled(){const{settings:e}=this.context,t=e.tryGetProperty(Pe.wD,!1)&&e.tryGetProperty("is_public",!1),i=(0,Z.sv)()&&"0"===Hn.share;return t&&!i}isMlsEnabled(){return this.context.settings.tryGetProperty(Pe.qu,!1)}isBrandingEnabled(){const{settings:e}=this.context;return e.tryGetProperty(Pe.Lj,!0)}renderActiveToolOverlay(){var e;const{toolsData:t}=this.context,i=t.toolsMap,{activeToolName:n}=this.state,s=n&&(null===(e=i.get(n))||void 0===e?void 0:e.ui),a=null==s?void 0:s.renderOverlay;return(0,r.jsxs)("div",Object.assign({className:"tool-overlay"},{children:[a&&(0,r.jsx)(a,{}),!n&&(0,r.jsx)(Dn,{})]}))}renderPersistentToolOverlay(){const{toolsData:e}=this.context,t=e.toolsMap.values.map((e=>{const t=e.ui.renderPersistentOverlay;return t&&(0,r.jsx)(t,{},e.id)})).filter((e=>!!e));return(0,r.jsx)("div",Object.assign({className:"overlay-ui"},{children:t}))}renderToolTopUI(){var e;const{toolsData:t}=this.context,i=t.toolsMap,{activeToolName:n}=this.state,s=n&&(null===(e=i.get(n))||void 0===e?void 0:e.ui),a=null==s?void 0:s.renderTopUIElements;return a&&(0,r.jsx)(a,{})}renderToolSettingsPanel(){var e;const{toolsData:t}=this.context,i=t.toolsMap,{activeToolName:n}=this.state,s=n&&(null===(e=i.get(n))||void 0===e?void 0:e.ui),a=null==s?void 0:s.renderShowcaseSettingsPanel;return a&&(0,r.jsx)(a,{})}render(){const{viewmode:e,unaligned:t,tourState:i,modelDetails:n,measurementsModeEnabled:s,notesEnabled:a,shareEnabled:o,brandingEnabled:l,vrEnabled:d,openModal:c,toolsLoaded:u,toolPanelLayout:h,activeToolName:m,tourMode:p}=this.state,{tourPlaying:E,activeStep:S,currentStep:O,highlights:g}=i,T=p===F.cR.STORIES,_=this.renderToolTopUI(),A=this.renderToolSettingsPanel();return(0,r.jsxs)("div",Object.assign({id:"gui",className:"showcase-ui"},{children:[(0,r.jsx)(Tn,{viewmode:e,shareEnabled:o}),(0,r.jsx)(bn.s,{children:(0,r.jsxs)(r.Fragment,{children:[!!n&&(0,r.jsx)(Dt,{modelDetails:n,tourPlaying:E,brandingEnabled:l,toolElements:_,toolSettings:A}),T&&(0,r.jsx)(xt.m,{currentStep:O,activeStep:S,highlights:g}),T&&(0,r.jsx)(wn,{highlights:g,tourPlaying:E}),(0,r.jsx)(Ct,{}),(0,r.jsx)(Ht.A,{}),u&&this.renderActiveToolOverlay(),u&&this.renderPersistentToolOverlay(),(0,r.jsx)(Ne,{openModal:c,openTool:m,unaligned:t,viewmode:e,tourState:i,tourMode:p,measurementsModeEnabled:s,notesEnabled:a,shareEnabled:o,vrEnabled:d,toolPanelLayout:h})]})})]}))}}Un.contextType=p.B;var Gn=i(25316),Fn=i(23864),jn=i(52721);var Vn=i(26482),Bn=i(87137);const Wn=i.p+"images/MP-logo_H_lock-RGB_color-black.svg",{SUBSCRIBER_PROMPT:Kn}=E.A.SHOWCASE,zn=e=>{e.preventDefault()},Yn=()=>{const e=(0,N.s)(),t=(0,A.Y)(),[i,s]=(0,n.useState)(!0),a=(0,n.useCallback)((t=>{e.trackGuiEvent("subscriber_prompt_b_banner_click"),window.open(we.oZ,"_blank")}),[e]);return(0,n.useEffect)((()=>(i&&(e.trackGuiEvent("subscriber_prompt_b_banner_viewed"),s(!1)),()=>{})),[e,i]),(0,r.jsxs)("div",Object.assign({className:"subscriber-prompt-banner",onClick:a},{children:[(0,r.jsx)("img",{className:"matterport-logo",alt:"Matterport",src:Wn}),(0,r.jsx)("a",Object.assign({className:"link",target:"_blank",onClick:zn,href:we.oZ},{children:t.t(Kn.BANNER_CTA_LINK_TEXT)}))]}))};const $n=(0,i(61260).c)("isSubscriberBannerVisible",(()=>{const e=Ge();return Ce().bannerEnabled&&e}));var Qn=i(55666),qn=i(95143),Xn=i(39905);const{SUMMARY:Zn}=E.A.SHOWCASE,Jn=Ie._8/1.6,es=new Xn.r({});class ts extends n.Component{constructor(e){super(e),this.getImageURL=e=>{const t=new URL(e);return t.searchParams.set("width",String(Ie._8)),t.searchParams.delete("height"),t.searchParams.delete("fit"),t.searchParams.set("crop","16:10"),t.searchParams.set("dpr",String(window.devicePixelRatio)),t.href},this.onExternalLinkClicked=e=>{this.context.analytics.track("showcase_share_origin_link_clicked")},this.state={thumbnail:void 0}}componentDidMount(){const{market:e}=this.context.engine;e.waitForData(Vn.G).then((e=>{e.thumb&&e.thumb.get().then((e=>{try{this.setState({thumbnail:this.getImageURL(e)})}catch(e){this.setState({thumbnail:void 0})}}))}))}getFilteredValue(e,t,i,n){return!this.context.settings.tryGetProperty(t,i)||n&&!this.props.brandingEnabled?"":e}render(){const{modelDetails:e,showExternalUrl:t,isSubscriberBannerVisible:i}=this.props,{thumbnail:n}=this.state,{locale:s}=this.context,{name:a,presentedBy:o,summary:l,description:d,formattedAddress:c,contact:u,externalUrl:h}=e,m=t?h:"",p=this.getFilteredValue(a,q.Q$.DetailsModelName,!0,!1),S=this.getFilteredValue(c,q.Q$.DetailsAddress,!1,!1),O=this.getFilteredValue(l,q.Q$.DetailsSummary,!1,!1),g=this.getFilteredValue(d,q.Q$.DetailsSummary,!1,!1),T=this.getFilteredValue(o,q.Q$.PresentedBy,!1,!0),_=this.getFilteredValue(u.name,q.Q$.DetailsName,!1,!0),A=this.getFilteredValue(u.email,q.Q$.DetailsEmail,!1,!0),v=this.getFilteredValue(u.phone,q.Q$.DetailsPhone,!1,!0),N=this.getFilteredValue(u.formattedPhone,q.Q$.DetailsPhone,!1,!0),I=N||v;return(0,r.jsx)("div",Object.assign({className:"summary-content"},{children:(0,r.jsxs)(Bn.A,Object.assign({thumbScrollingOnly:!0,direction:jt.OP.vertical},{children:[n?(0,r.jsx)("img",{className:"summary-image",width:Ie._8,height:Jn,src:n,alt:`Photo of "${p}"`}):null,i&&(0,r.jsx)(Yn,{}),(0,r.jsxs)("div",Object.assign({className:"summary-text-content"},{children:[p&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(Zn.LABEL_LOCATION)})),(0,r.jsx)("div",Object.assign({className:"location"},{children:p}))]}),S&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(Zn.LABEL_ADDRESS)})),(0,r.jsx)("div",Object.assign({className:"section-body"},{children:S}))]}),T&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:this.context.locale.t(E.A.PRESENTED_BY)})),(0,r.jsx)("div",Object.assign({className:"section-body"},{children:T}))]}),(_||v||A)&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(Zn.LABEL_CONTACT)})),(0,r.jsxs)("div",Object.assign({className:"section-body"},{children:[_&&(0,r.jsx)("div",{children:_}),A&&(0,r.jsx)("div",{children:(0,r.jsx)("a",Object.assign({className:"link",href:"mailto:"+A},{children:A}))}),I&&(0,r.jsx)("div",{children:I})]}))]}),m&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(Zn.LABEL_LEARN_MORE)})),(0,r.jsxs)("div",Object.assign({className:"external-link-wrapper"},{children:[(0,r.jsx)("i",Object.assign({className:"icon-ext-link"},{children:" "})),(0,r.jsx)("a",Object.assign({className:"section-body link",onClick:this.onExternalLinkClicked,href:m,target:"_blank",rel:"noopener"},{children:m}))]}))]}),O&&!g&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(Zn.LABEL_INFORMATION)})),(0,r.jsx)("div",Object.assign({className:"section-body"},{children:O}))]}),g&&(0,r.jsxs)("div",{children:[(0,r.jsx)("div",Object.assign({className:"section-header"},{children:s.t(Zn.LABEL_DESCRIPTION)})),(0,r.jsx)(Qn.L,{text:g,textParser:es,markers:qn.S8,linksActive:!1,className:"section-body"})]})]}))]}))}))}}ts.contextType=p.B;const is=$n(ts);var ns=i(39301);const{SUMMARY:ss}=E.A.SHOWCASE;function as(){const e=(0,A.Y)(),t=function(){const e=(0,ot.h)(),[t,i]=(0,n.useState)((null==e?void 0:e.model.details)||null);return(0,n.useEffect)((()=>{if(!e)return()=>{};function t(){e&&i(e.model.details)}const n=e.onChanged(t);return t(),()=>n.cancel()}),[e]),t}(),i=(0,ue.i)(Pe.Lj,!0),s=(0,ue.i)(Pe.qu,!1),a=i&&!s,o=i&&!s;return t?(0,r.jsx)(ns.h,Object.assign({toolId:V.S0.SUMMARY,title:e.t(ss.HEADING)},{children:(0,r.jsx)(is,{modelDetails:t,brandingEnabled:a,showExternalUrl:o})})):null}class os{constructor(){this.renderPanel=()=>(0,r.jsx)(as,{})}}var rs=i(60057),ls=i(41535),ds=i(11815);i(45371);function cs(){const e=(0,N.s)(),t=(0,P.L)(),i=(0,A.Y)(),s=(0,ce.t)(),a=(0,ds.W)(),o=s===C.a.MEASUREMENT_HELP,l=(0,n.useCallback)((()=>{t.issueCommand(new x.X(C.a.MEASUREMENT_HELP,!1))}),[t]);(0,n.useEffect)((()=>(a===ls.hb.CLOSED&&l(),()=>{})),[l,a]);const d=i.t(E.A.HELP),h=i.t(E.A.CLOSE),m=(0,r.jsx)(u.$n,{className:"measurement-top-ui-button",variant:u.Ak.FAB,theme:"overlay",icon:"help",active:o,onClick:i=>{i.stopPropagation(),o||e.trackToolGuiEvent("measurements","measure_mode_help_clicked"),t.issueCommand(new x.X(C.a.MEASUREMENT_HELP,!o))},ariaLabel:d,tooltip:!o&&d||void 0,tooltipOptions:{placement:"bottom"}},"measurement-help"),p=(0,r.jsx)(u.$n,{className:"measurement-top-ui-button",icon:"close",variant:u.Ak.FAB,theme:"overlay",tooltip:h,tooltipOptions:{placement:"bottom"},onClick:async e=>{e&&e.stopPropagation(),l(),await t.issueCommand(new c.yU(V.S0.MEASUREMENTS,!1))}},"measurement-close");return(0,r.jsxs)("div",Object.assign({className:"measurement-top-ui-button-container"},{children:[m,p]}))}var us=i(46522);class hs{constructor(){this.renderOverlay=()=>(0,r.jsx)(rs.S,{}),this.renderTopUIElements=()=>(0,r.jsx)(cs,{}),this.renderShowcaseSettingsPanel=()=>(0,r.jsx)(us.e,{})}}var ms=i(45548),ps=i(92637),Es=i(8647),Ss=i(87306),Os=i(99104);const{TOOLS:gs}=E.A;class Ts extends a.n{constructor(){super(),this.name="showcase-gui-module",this.onSaveError=e=>{const{error:t}=e;this.engine.commandBinder.issueCommand(new ps.P(E.A.ERRORS.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE,{throttle:30,timeout:10,type:Es.v.ERROR,error:t}))},this.onForbiddenError=e=>{const{error:t}=e;this.engine.commandBinder.issueCommand(new ps.P(E.A.ERRORS.UNAUTHORIZED_ERROR_MESSAGE,{throttle:0,timeout:0,type:Es.v.ERROR,error:t}))},this.loadUi=this.loadUi.bind(this)}async init(e,t){this.engine=t,[this.settingsData]=await Promise.all([t.market.waitForData(Gn.o)]),this.bindings.push(t.subscribe(ms.xi,this.onSaveError),t.subscribe(ms.xt,this.onForbiddenError))}async loadUi(e,t,i){e.editMode=!1,this.reactRoot=(0,s.createRoot)(t),this.reactRoot.render((0,n.createElement)(p.B.Provider,{value:e},[(0,n.createElement)(Un,{key:"showcase-ui",onAppReadyChanged:i})])),this.initializeTools()}async unloadUi(){return!!this.reactRoot&&(this.reactRoot.unmount(),!0)}initializeTools(){const e=[new Fn.N({id:V.S0.MEASUREMENTS,searchModeType:o.jM.MEASUREMENTPATH,namePhraseKey:gs.MEASUREMENTS,panel:!1,icon:"icon-tape-measure",analytic:"measurements",dimmed:!1,enabled:this.settingsData.tryGetProperty(q.Q$.Measurements,!0),ui:new hs,manager:new jn.R(this.engine,this.settingsData)}),new Fn.N({id:V.S0.SUMMARY,namePhraseKey:gs.SUMMARY,panel:!0,panelLeft:!0,analytic:"summary",dimmed:!1,enabled:!0,hidesAppBar:!0,ui:new os})];this.engine.commandBinder.issueCommand(new c.Kw(e)),this.engine.commandBinder.issueCommandWhenBound(new Os.eo),this.engine.commandBinder.issueCommandWhenBound(new Ss.RJ)}}},11423:(e,t,i)=>{"use strict";i.d(t,{C:()=>a,G:()=>s});var n=i(55141);class s extends n.u{constructor(e,t){super(),this.payload={startup:e,editMode:t}}}s.id="START_APPLICATION";class a extends n.u{constructor(e){super(),this.payload={expand:e}}}a.id="EXPAND_APP"},60384:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var n=i(98002),s=i(75578),a=i(45832),o=i(22585),r=i(25316),l=i(27947),d=i(25773),c=i(58480),u=i(85935),h=i(62372),m=i(55057),p=i(74328),E=i(78711),S=i(56147),O=i(64491),g=i(75778),T=i(48539),_=i(31093),A=i(63083),v=i(39157),N=i(44345);class I{constructor(e,t){this.lastProgress=0,this.currentProgress=0,this.webpackChunks=[],this.meshAlloc={alloc:2e6,loaded:0},this.showingProgress=!1,this.onWebpackChunkProgress=e=>{this.webpackChunks[e.chunkID]?this.webpackChunks[e.chunkID].loaded=e.loaded:this.webpackChunks[e.chunkID]={loaded:e.loaded,total:e.total},this.calcProgress()},this.progressElm=t.querySelector("#bar"),window.addEventListener("WebpackChunkProgress",this.onWebpackChunkProgress),this.engine=e,this.meshProgressBinding=this.onMeshLoadProgress.bind(this),this.engine.subscribe(N.EX,this.meshProgressBinding)}dispose(){window.removeEventListener("WebpackChunkProgress",this.onWebpackChunkProgress)}showProgress(){this.showingProgress=!0,this.setProgress(this.currentProgress)}setDone(){this.currentProgress=100,this.setProgress(this.currentProgress),this.engine.unsubscribe(N.EX,this.meshProgressBinding)}setProgress(e){if(!this.progressElm||isNaN(e))return;this.lastProgress=Math.max(this.lastProgress,e),e=this.lastProgress;const t=Number.parseFloat(this.progressElm.getAttribute("r")||"0"),i=Math.PI*(2*t),n=(100-(e=Math.max(Math.min(e,100),0)))/100*i;this.progressElm.style.strokeDasharray=i.toString(10),this.progressElm.style.strokeDashoffset=n.toString(10)}calcProgress(){let e=0,t=0;this.webpackChunks.forEach((i=>{e+=i.loaded,t+=i.total})),e+=this.meshAlloc.loaded,t+=this.meshAlloc.alloc,this.currentProgress=95*Math.min(e/t,1),this.showingProgress&&this.setProgress(this.currentProgress)}onMeshLoadProgress(e){this.meshAlloc.loaded=e.loaded/e.total*this.meshAlloc.alloc,this.calcProgress()}}var L=i(11423),f=i(27612);function b(e){const{width:t,height:i}=window.screen;return O.al()&&(0,f.c)({width:t,height:i})&&e.height<.6*i}function R(){return O.qL()&&!O.vQ("xr-spatial-tracking")}class y{constructor(e,t,i,n){this.config=e,this.settingsData=t,this.containerData=i,this.sdkData=n,this.bindings=[]}async autoPlayIfWhenAllowed(e){const{editMode:t,openingTool:i,disabled:n,allowAutoPlay:s}=this.config;let a=!1;if(function(e,t,i){return!O.al()||!!(e||i||t)}(this.settingsData.getOverrideParam("play",!1),i,t)&&(a=s||this.sdkConnected,!a)){const t=function(e){return e||O.al()&&R()}(n);t||(a=!b(this.containerData.size),a||(this.bindings.push(this.containerData.onPropertyChanged("size",(t=>{b(t)||(e(),this.bindings.forEach((e=>e.cancel())))}))),this.bindings.push(this.sdkData.onChanged((()=>{this.sdkConnected&&(e(),this.bindings.forEach((e=>e.cancel())))})))))}return a&&e(),a}get sdkConnected(){return this.sdkData.applicationKeys.length>0}dispose(){this.bindings.forEach((e=>e.cancel()))}}var M=i(35404),D=i(83772);function P(e,t){let i=function(e){return document.querySelector(`link[rel=${e}]`)}(e);i||(i=document.createElement("link"),document.head.appendChild(i)),i.setAttribute("rel",e),i.setAttribute("href",t)}class k extends s.n{constructor(){super(...arguments),this.name="loading-ui",this.playPromise=new _.i,this.onClick=()=>{this.resolvePlayPromise(!0,!1)},this.autoPlay=()=>{this.autoPlaying=!0,this.updatePlayAnalytics(),this.resolvePlayPromise(!0,this.config.editMode)},this.resolvePlayPromise=async(e,t)=>{var i,n;null===(i=this.autoPlayer)||void 0===i||i.dispose();const s=this.config.allowPlayInIframe||!O.Fr()&&!R(),a=t&&(0,O.al)()&&(s||1===this.settings.getOverrideParam("expand",0));if(!this.autoPlaying){if(!s&&1===this.settings.getOverrideParam("nt",0)){const e=(0,D.RP)(window.location.href);return void window.open(e,"_blank")}if((0,O.al)()&&!a&&!s){const e=(0,g.DE)();t&&e.set("edit","1"),e.set("back","1"),e.delete("cloudEdit");const i=e.toString(),n=`${window.location.origin}${window.location.pathname}?${i}`;try{return void(window.top&&(window.top.location.href=n))}catch(e){this.log.debug("Couldn't set top window location; was Showcase sandboxed?"),this.log.debug(e)}}}a&&this.toggleIframeExpansion(!0),t&&this.settings.setProperty("quickstart",!0),e&&(this.config.disabled||(null===(n=this.uiRoot)||void 0===n||n.removeEventListener("click",this.onClick),this.playIcon.remove(),this.progressUI.showProgress()),this.playPromise.resolve())},this.toggleIframeExpansion=e=>{const t=e?new n.NS:new n.xI;this.engine.commandBinder.issueCommand(t),this.engine.broadcast(new v.U(e))},this.onAppPhaseChangeMessage=async e=>{var t;e.phase!==l.Jj.STARTING&&e.phase!==l.Jj.PLAYING&&e.phase!==l.Jj.ERROR||(this.progressUI.setDone(),this.config.quickstart?this.showQuickstartUI():null===(t=this.uiRoot)||void 0===t||t.classList.add("faded-out"),this.engine.unsubscribe(o.uv,this.onAppPhaseChangeMessage))}}async init(e,t){this.engine=t,this.config=e;const{market:i,commandBinder:n}=this.engine;[this.locale,this.settings,this.containerData,this.sdkData]=await Promise.all([t.getModuleBySymbol(a.gS),i.waitForData(r.o),i.waitForData(c.G),i.waitForData(d.d)]);const s=await t.market.waitForData(m.q);this.model=s.model.details,this.updateHtmlMetadata(s,this.settings),this.autoPlaying=1===this.settings.getOverrideParam("play",0),this.bindings.push(n.addBinding(L.G,(async e=>{this.resolvePlayPromise(e.startup,e.editMode)})),n.addBinding(L.C,(async e=>{this.toggleIframeExpansion(e.expand)})),this.containerData.onPropertyChanged("size",(e=>{this.updatePlayAnalytics()}))),e.disabled||(this.bindings.push(this.settings.onPropertyChanged(M.ov,(()=>this.renderTitle())),this.settings.onPropertyChanged(M.Lj,(()=>this.renderBranding())),this.settings.onPropertyChanged(M.qu,(()=>this.renderBranding())),t.subscribe(o.uv,this.onAppPhaseChangeMessage)),this.progressUI=new I(t,this.containerData.element),this.loadUi(),this.getLoadingElements(),this.renderSplashScreen())}dispose(e){var t,i;super.dispose(e),null===(t=this.progressUI)||void 0===t||t.dispose(),null===(i=this.autoPlayer)||void 0===i||i.dispose()}get waitForPlaying(){return this.playPromise.nativePromise()}loadUi(){if(this.uiRoot=this.containerData.element.querySelector("#loading-gui"),!this.uiRoot)throw Error("Loading GUI root not found");this.uiRoot.classList.remove("hidden"),this.config.quickstart&&(this.uiRoot.style.pointerEvents="none")}getPresentationOptions(){const{hideTitle:e,hideBranding:t,quickstart:i}=this.config,n=!i&&(void 0!==e?!e:this.settings.tryGetProperty(M.ov,!0)),s=this.settings.tryGetProperty(M.qu,!1),a=this.settings.tryGetProperty(M.Lj,!0);return{title:n,presentedBy:void 0!==t?!t:a&&!s}}getLoadingElements(){const e=this.containerData.element;this.presentedBy=e.querySelector("#loading-presented-by"),this.poweredBy=e.querySelector("#loading-powered-by"),this.mpLogo=e.querySelector("#loading-mp-logo"),this.mpLogo.src=A,this.mpLogo.alt=this.locale.t(S.A.ALT_MATTERPORT_LOGO),this.circleLoader=e.querySelector("#circleLoader"),this.nameHeader=e.querySelector("#loading-header"),this.background=e.querySelector("#loading-background"),this.tint=e.querySelector("#tint"),this.playIcon=e.querySelector("#showcase-play"),this.playIcon.setAttribute("aria-label",this.locale.t(S.A.PLAY)),this.playIcon.setAttribute("alt",this.locale.t(S.A.PLAY))}addCobrand(){var e;if(null===(e=this.model)||void 0===e?void 0:e.presentedBy){const e=this.presentedBy.querySelector(".loading-label");e&&(e.textContent=this.locale.t(S.A.PRESENTED_BY_CAPS));const t=this.presentedBy.querySelector(".subheader");t&&(t.textContent=this.model.presentedBy),this.presentedBy.classList.remove("hidden")}}hidePlayButtonUI(){var e;this.background.style.backgroundImage="none",this.presentedBy.style.transition="none",this.presentedBy.classList.remove("faded-in"),this.poweredBy.style.transition="none",this.poweredBy.classList.remove("faded-in"),this.nameHeader.classList.add("hidden"),this.tint.classList.add("hidden"),this.circleLoader.classList.add("hidden"),null===(e=this.uiRoot)||void 0===e||e.classList.add("quickstart")}async showQuickstartUI(){var e;this.background.classList.add("faded-out"),await(0,T.cb)(500),this.presentedBy.style.transition="",this.presentedBy.classList.add("faded-in"),this.poweredBy.style.transition="",this.poweredBy.classList.add("faded-in"),await(0,T.cb)(2500),this.presentedBy.classList.remove("faded-in"),this.poweredBy.classList.remove("faded-in"),null===(e=this.uiRoot)||void 0===e||e.classList.add("faded-out")}showLoadingUI(e){const t=document.createAttribute("data-status");t.value=this.locale.t(S.A.LOADING);const i=this.containerData.element.querySelector("#loader-cont");i&&(i.attributes.setNamedItem(t),i.classList.add(this.locale.languageCode),i.classList.add("loading")),e.classList.add("faded-out"),this.presentedBy.classList.add("faded-in")}renderTitle(){const{title:e}=this.getPresentationOptions();this.nameHeader.classList.toggle("hidden",!e)}renderBranding(){const{presentedBy:e}=this.getPresentationOptions();e?this.addCobrand():this.presentedBy.classList.add("hidden")}async renderSplashScreen(){var e;const{editMode:t,allowPlayInIframe:i,allowAutoPlay:n,disabled:s,openingTool:a,quickstart:o,hidePoweredBy:r}=this.config;this.renderTitle(),this.renderBranding(),r&&this.poweredBy.classList.add("hidden"),this.nameHeader.textContent=this.model.name,this.poweredBy.classList.add("faded-in"),this.tint.classList.add("faded-in");const l=this.containerData.element.querySelector("#play-prompt");this.playPromise.then((()=>{o?this.hidePlayButtonUI():this.showLoadingUI(l)})),this.autoPlayer=new y({editMode:t,allowPlayInIframe:i,allowAutoPlay:n,disabled:s,openingTool:a},this.settings,this.containerData,this.sdkData),this.autoPlaying=await this.autoPlayer.autoPlayIfWhenAllowed(this.autoPlay),this.autoPlaying||(l.classList.remove("hidden"),l.innerText=this.locale.t(S.A.EXPLORE_3D_SPACE),this.playIcon.classList.remove("hidden"),null===(e=this.uiRoot)||void 0===e||e.addEventListener("click",this.onClick)),this.renderBackground(),i||window.scrollTo(0,0)}async renderBackground(){const e=p.s.deserialize();if(this.autoPlaying&&e){const t=await this.engine.market.waitForData(h.A),i=(0,E.d)(e,t);if(i&&(0,E.X)(i,t))return}const t=window.devicePixelRatio||1,i=Math.max(window.innerWidth,400);this.background.style.backgroundImage=`url(api/v1/player/models/${this.config.viewId}/thumb?width=${i}&dpr=${t}&disable=upscale)`}updatePlayAnalytics(){this.engine.getModuleBySymbol(a.aF).then((e=>{e.setOptions(Object.assign({},(0,u.Q9)(this.autoPlaying)))}))}updateHtmlMetadata(e,t){if("function"==typeof ShadowRoot&&this.containerData.rootNode instanceof ShadowRoot)return;const i=t.tryGetProperty(M.k5,null);if(e.model.hasDiscoverUrl()&&i){const{baseModelId:t,sid:n}=e.model,s=new URL(`${i}${t}`,"https://matterport.com");n&&n!==t&&s.searchParams.set("view",n),P("canonical",s.toString())}}}},39157:(e,t,i)=>{"use strict";i.d(t,{U:()=>s});var n=i(89103);class s extends n.QB{constructor(e){super(),this.expanded=e}}},6909:(e,t,i)=>{"use strict";i.d(t,{h:()=>s});var n=i(89103);class s extends n.QB{constructor(e,t,i,n,s,a,o){super(),this.durationDollhouse=e,this.durationFloorplan=t,this.durationInside=i,this.durationOverlay=n,this.mainMode=s,this.totalBytesDownloaded=a,this.tilesDownloaded=o}}},65256:(e,t,i)=>{"use strict";i.d(t,{G:()=>a,l:()=>s});var n=i(89103);class s extends n.QB{}class a extends n.QB{constructor(e){super(),this.errorType=e}}},38939:(e,t,i)=>{"use strict";i.d(t,{W:()=>a,c:()=>s});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={pose:e}}}s.id="START_LOCATION_FLY_IN_COMMAND";class a extends n.u{}a.id="START_LOCATION_GOTO_COMMAND"},98002:(e,t,i)=>{"use strict";i.d(t,{NS:()=>s,xI:()=>a});var n=i(55141);class s extends n.u{}s.id="SHOWCASE_START";class a extends n.u{}a.id="SHOWCASE_STOP";class o extends n.u{}o.id="SHOWCASE_READY"},46771:(e,t,i)=>{"use strict";i.d(t,{k:()=>a});var n=i(68909);class s{constructor(e){this.elements=[],e?(e=>void 0!==e.elements)(e)?this.elements=e.elements.slice():n.Matrix4.prototype.set.apply(this,e):n.Matrix4.prototype.set.apply(this,s.identity)}equals(e){return n.Matrix4.prototype.equals.call(this,e)}clone(){return new s(this)}}s.identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class a extends s{constructor(e){e instanceof Array||e?super(e):super(),this.threeMatrix=new n.Matrix4}set(e,t,i,s,a,o,r,l,d,c,u,h,m,p,E,S){return n.Matrix4.prototype.set.call(this,e,t,i,s,a,o,r,l,d,c,u,h,m,p,E,S),this}makeScale(e,t,i){return n.Matrix4.prototype.makeScale.call(this,e,t,i),this}copy(e){for(let t=0;t{"use strict";i.d(t,{A:()=>n});const n=Object.freeze({signedUrlDefaultExpireTime:24e4,signedUrlCheckInterval:1e4,signedUrlRefreshBuffer:15e3,visionTilingStartDate:new Date("8/26/2016"),visionTilingStartVersion:"1.1.407.13667",defurnishableStartDate:new Date("03/10/2023"),defurnishableStartVersion:"1.2.29221.4-gcac59bd3ec.REL_1425",epsilon:1e-5,skyboxMeshGroup:"_group_skybox_",skysphereMeshGroup:"_group_skysphere_"})},38069:(e,t,i)=>{"use strict";i.d(t,{V:()=>s});var n=i(68909);class s{}s.MP_BRAND=Object.freeze(new n.Color(16724312)),s.MATTERTAG_BLUE=Object.freeze(new n.Color(223357)),s.WHITE=Object.freeze(new n.Color(16777215)),s.BLACK=Object.freeze(new n.Color(0)),s.RED=Object.freeze(new n.Color(16711680)),s.GREEN=Object.freeze(new n.Color(65280)),s.BLUE=Object.freeze(new n.Color(255)),s.YELLOW=Object.freeze(new n.Color(16776960)),s.SINE=Object.freeze(new n.Color(11908275)),s.NEPTUNE=Object.freeze(new n.Color(4217846)),s.LENS_GRAY=Object.freeze(new n.Color(4473924)),s.MIRROR=Object.freeze(new n.Color(14342874)),s.PORTAL=Object.freeze(new n.Color(2236962)),s.SILVER=Object.freeze(new n.Color(13421772))},37458:(e,t,i)=>{"use strict";var n;i.d(t,{X:()=>n}),function(e){e[e.boundingSkybox=-100]="boundingSkybox",e[e.default=0]="default",e[e.panoMarker=4]="panoMarker",e[e.reticule=5]="reticule",e[e.grid=5]="grid",e[e.meshTrims=5]="meshTrims",e[e.pins360=6]="pins360",e[e.roomBounds=7]="roomBounds",e[e.portals=9]="portals",e[e.rotators=10]="rotators",e[e.pins=14]="pins",e[e.pinSelectedHalo=15]="pinSelectedHalo",e[e.lines=20]="lines",e[e.endpoints=21]="endpoints",e[e.labels=22]="labels",e[e.gizmos=23]="gizmos",e[e.ghostFloorDepthPrepass=50]="ghostFloorDepthPrepass",e[e.ghostFloor=51]="ghostFloor",e[e.transformGizmo=999]="transformGizmo",e[e.colorOverlay=1e3]="colorOverlay"}(n||(n={}))},75742:(e,t,i)=>{"use strict";var n;i.d(t,{n:()=>n}),function(e){e.TEXT="text",e.LINK="link",e.HASH="hash",e.USER="user"}(n||(n={}))},81662:(e,t,i)=>{"use strict";i.d(t,{B1:()=>a,YF:()=>o,os:()=>n});var n,s=i(68909);class a{}a.UP=Object.freeze(new s.Vector3(0,1,0)),a.DOWN=Object.freeze(new s.Vector3(0,-1,0)),a.LEFT=Object.freeze(new s.Vector3(-1,0,0)),a.RIGHT=Object.freeze(new s.Vector3(1,0,0)),a.FORWARD=Object.freeze(new s.Vector3(0,0,-1)),a.BACK=Object.freeze(new s.Vector3(0,0,1)),a.ZERO=Object.freeze(new s.Vector3(0,0,0)),a.UNIT=Object.freeze(new s.Vector3(1,1,1)),a.HORIZONTAL_PLANE=Object.freeze(new s.Vector3(1,0,1)),function(e){e.NONE="NONE",e.UP="UP",e.DOWN="DOWN",e.LEFT="LEFT",e.RIGHT="RIGHT",e.FORWARD="FORWARD",e.BACK="BACK",e.ZERO="ZERO",e.UNIT="UNIT",e.HORIZONTAL_PLANE="HORIZONTAL_PLANE"}(n||(n={}));class o{}o.DOWNWARD=new s.Quaternion(-Math.SQRT1_2,0,0,Math.SQRT1_2)},52018:(e,t,i)=>{"use strict";i.d(t,{t:()=>s});var n=i(80610);class s extends Error{constructor(e,t){super(e instanceof Error?e.message:e),this.name="BaseException",t&&(this.code=t),e instanceof Error&&(this.originalError=e,(0,n.zi)(e)&&(this.isMock=!0))}}},23775:(e,t,i)=>{"use strict";i.d(t,{E:()=>s});var n=i(52018);class s extends n.t{constructor(e="Not implemented"){super(e),this.name="NotImplemented"}}},46147:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(52018);class s extends n.t{constructor(e="Out of range"){super(e),this.name="OutOfRangeException"}}},80610:(e,t,i)=>{"use strict";function n(e){return!!(e&&e instanceof Error&&e.code)}function s(e){return!!(e&&e instanceof Error&&e.originalError)}function a(e){return!!(e&&e instanceof Error&&e.isMock)}function o(e){return n(e)?e.code:""}function r(e){const t=[];let i=e;for(;i;)n(i)&&t.push(i.code),i=s(i)?i.originalError:void 0;return t}i.d(t,{E2:()=>o,Ue:()=>n,fS:()=>r,zi:()=>a})},9114:(e,t,i)=>{"use strict";i.d(t,{_:()=>a});var n=i(99625),s=i(24790);class a{constructor(e){this.apqEnabled=!1,this.anonymousHeaderEnabled=!1,this.simulateApiOutage=n.u.NONE,this.nonBaseLayerWriteEnabled=!1,this.startedInPrivateSession=!1,this.refreshableStores=new Set,this.sharedCaches=new Set,this.updateForAutoProvisionedLayer=async e=>{if(this.autoProvisionLayerCheckCallback)return this.autoProvisionLayerCheckCallback(e)},this.baseViewId=null!=e?e:null}toggleNonBaseLayeredWrites(e){this.nonBaseLayerWriteEnabled=e}get isPrivateSession(){return this.startedInPrivateSession}togglePrivateSession(e){this.startedInPrivateSession=e}shouldWriteLayerId(e){return!!this.nonBaseLayerWriteEnabled&&(""!==e&&e!==s.qw)}async setCurrentViewId(e){const t=Array.from(this.refreshableStores.values());this.currentViewId=e,await Promise.all(t.map((e=>e.refresh())))}async refreshLayeredStores(e){const t=Array.from(this.refreshableStores.values()).filter((t=>e.includes(t.layeredType)));await Promise.all(t.map((e=>e.refresh())))}getViewLookupMode({firstLoad:e=!1}){return e&&!this.startedInPrivateSession?"default":"self"}}},20968:(e,t,i)=>{"use strict";i.d(t,{g:()=>l});var n=i(3066),s=i(23775),a=i(75778),o=i(53631),r=i(96276);class l{constructor(e){this.viewId=null,this.newDataCallbacks=new Set,this.refreshPromiseMap=new Map;const{baseUrl:t,viewId:i,server:n}=e;this.config=e,this.context=e.context,this.client=new o.t({baseUrl:t,server:n,mdsContext:e.context}),i&&(this.viewId=i)}dispose(){this.context.refreshableStores.delete(this)}async create(...e){throw new s.E}async read(e={}){throw new s.E}async update(...e){throw new s.E}async delete(...e){throw new s.E}onNewData(e){this.context.refreshableStores.add(this);return(0,n.Sh)((()=>this.newDataCallbacks.add(e)),(()=>this.newDataCallbacks.delete(e)))}async refresh(e){const t=(null==e?void 0:e.modelId)||"default";let i=this.refreshPromiseMap.get(t);return i||(i=this.read(e).then((e=>this.newDataCallbacks.size>0?Promise.all(Array.from(this.newDataCallbacks.values()).map((t=>(t(e),e)))):[e])).then((([e])=>e)).finally((()=>{this.refreshPromiseMap.set(t,null)})),this.refreshPromiseMap.set(t,i)),i}async query(e,t,i={}){if(!this.getViewId())throw new r.V("No model view specified for query");const n=Object.assign({fetchPolicy:"cache-first",prefetchKey:this.prefetchKey},i);return this.client.query(e,t,n)}async mutate(e,t,i){const{readonly:n}=this.config;if(n)throw new r.n8("Cannot mutate in read-only mode");if(!this.getViewId())throw new r.V("Cannot mutate, no view was specified");return this.client.mutate(e,t,i).then((e=>{const t="53100"===(0,a.P3)("error","");if(!o.t.isOk(e)||t){const i=new r.YA(o.t.getErrorMessage(e));throw t&&(i.isMock=!0),i}return e}))}setStoreViewId(e){this.viewId=e}getViewId(){const e=this.viewId||this.context.currentViewId||this.context.baseViewId;if(!e)throw new Error("Invalid view id!");return e}getBaseViewId(){const e=this.context.baseViewId;if(!e)throw new Error("MdsStore baseViewId invalid!");return e}readLayerId(){return!!this.context.readLayerId}writeLayerId(e){return this.context.shouldWriteLayerId(e)}}},53631:(e,t,i)=>{"use strict";i.d(t,{H:()=>E,t:()=>O});var n=i(80788),s=i(8955),a=i(82768),o=i(31863),r=i(11751),l=i(50380),d=i(70516),c=i(10843),u=i(96276),h=i(24790),m=i(99625);const p=new c.Ay("model-api-client");const E=(e={})=>()=>new O(e);let S=!1;class O{constructor(e={}){var t,i,r;const d=e.baseUrl||window.location.origin,c=e.server||h.wD;this.graphUrl=e.url||`${d}${c}`,this.mdsContext=e.mdsContext,p.debug(`Initialized Model API client for ${this.graphUrl}`);let u=(0,s.o)(((e,{headers:t={}})=>((0,l.v)(this.graphUrl,t),{headers:t})));if(null===(t=e.mdsContext)||void 0===t?void 0:t.apqEnabled)if(null===(r=null===(i=window.crypto)||void 0===i?void 0:i.subtle)||void 0===r?void 0:r.digest){const e=(0,a.e)({useGETForHashedQueries:!0,sha256:o.sc});u=u.concat(new n.ApolloLink(((t,i)=>t.query.definitions.some((e=>"OperationDefinition"===e.kind&&"mutation"===e.operation))?i(t):e.request(t,i))))}else S||(p.warn("Crypto API not available in non-secure context; disabling APQ graphql optimization"),S=!0);u=u.concat((0,n.createHttpLink)({uri:this.graphUrl,fetch:(e,t)=>{if("POST"===t.method){const{operationName:i}=JSON.parse(t.body);return fetch(`${e}?operation=${i}`,t)}return fetch(e,t)}})),this.apollo=new n.ApolloClient({link:u,cache:new n.InMemoryCache({addTypename:!1})})}async query(e,t,i={}){var n,s,a,o,r,l;if("no-cache"!==i.fetchPolicy&&(null===(n=this.mdsContext)||void 0===n?void 0:n.sharedCaches))for(const n of this.mdsContext.sharedCaches){const s=await n.read(e,t,i);if(void 0!==s)return p.debug(`Using cached response for ${i.prefetchKey}`),s}const d=Object.assign(Object.assign({errorPolicy:"all"},i),{query:e,variables:t,fetchPolicy:"no-cache"});if((null===(s=this.mdsContext)||void 0===s?void 0:s.anonymousHeaderEnabled)&&i.anonymous){(null!==(o=(l=null!==(a=d.context)&&void 0!==a?a:d.context={}).headers)&&void 0!==o?o:l.headers={})["x-apiauthmode"]="PUBLIC"}else if((null===(r=this.mdsContext)||void 0===r?void 0:r.simulateApiOutage)===m.u.TIMEOUT)return g(e);return this.apollo.query(d).then((e=>{const{data:t,errors:i}=e;return{data:t,errors:i}})).catch((e=>{throw p.error(e),new u.tW(e,this.getApolloErrorCode(e))}))}async mutate(e,t,i={}){var n;if((null===(n=this.mdsContext)||void 0===n?void 0:n.simulateApiOutage)===m.u.TIMEOUT)return g(e);const s=Object.assign(Object.assign({errorPolicy:"all"},i),{mutation:e,variables:t});return this.apollo.mutate(s).then((e=>{const{data:t,errors:i}=e;return{data:t,errors:i}})).catch((e=>{throw p.error(e),new u.YA(e,this.getApolloErrorCode(e))}))}async upload(e,t,i,n,s){const a={};let o=0;(0,d.S)(i,((e,t,i)=>{if(e&&((n=e).filename&&n.blob&&n.blob instanceof Blob)){const n="file"+o++;a[n]=e,i[t]=`multipart:${n}`}var n}));const c=new FormData;for(const[e,t]of Object.entries(a))c.append(e,t.blob,t.filename);c.append("query",(0,r.y)(e)),c.append("operation",t),c.append("variables",JSON.stringify(i));const h=(0,l.v)(this.graphUrl,{});return this.uploadFormData(c,h,n,s).then((e=>{if(!O.isOk(e)){const t=O.getErrorCode(e)||"54200";throw new u.yr(O.getErrorMessage(e),t)}return e}))}getApolloErrorCode(e){var t;if(e instanceof n.ApolloError){const i=null===(t=e.networkError)||void 0===t?void 0:t.statusCode;if(i)return`61${i}`}return"61000"}async uploadFormData(e,t,i,n=new XMLHttpRequest){const s=`${this.graphUrl}${e.has("operation")?`?operation=${e.get("operation")}`:""}`;n.open("POST",s,!0),n.responseType="json",n.setRequestHeader("Accept","application/json"),i&&(n.upload.onprogress=i);for(const e in t)n.setRequestHeader(e,t[e]);return new Promise(((t,i)=>{n.onreadystatechange=()=>{4===n.readyState&&(200===n.status?t(n.response):0!==n.status&&i(new u.yr(`${n.status} ${n.statusText}`,`54${n.status}`)))},n.onerror=()=>{i(new u.yr("Network error","54002"))},n.onabort=()=>{p.info("upload canceled!")},n.send(e)}))}static isOk(e,t){if(t){const i=t.split(".");return 0===(e.errors||[]).filter((e=>{if(!e.path)return!0;for(let t=0;t1&&(t+=` (+${e.length-1})`)),t}}function g(e){var t;const i=null===(t=e.definitions.find((e=>"OperationDefinition"===e.kind)).name)||void 0===t?void 0:t.value;return p.warn(`Simulating hang of API query: ${i}`),new Promise((()=>{}))}O.version="2020.05.28"},99625:(e,t,i)=>{"use strict";var n,s;i.d(t,{G:()=>n,u:()=>s}),function(e){e.CACHE="cache",e.PRELOAD="preload",e.NONE="none"}(n||(n={})),function(e){e[e.NONE=0]="NONE",e[e.TIMEOUT=1]="TIMEOUT"}(s||(s={}))},96276:(e,t,i)=>{"use strict";i.d(t,{V:()=>r,YA:()=>a,n8:()=>l,tW:()=>s,yr:()=>o});var n=i(52018);n.t;class s extends n.t{constructor(e,t="62001"){super(e),this.name="MdsReadError",this.code=t}}class a extends n.t{constructor(e,t="63001"){super(e),this.name="MdsWriteError",this.code=t}}class o extends n.t{constructor(e,t="63002"){super(e),this.name="MdsUploadError",this.code=t}}class r extends n.t{constructor(e,t="52404"){super(e),this.name="InvalidView",this.code=t}}class l extends n.t{constructor(e,t="53001"){super(e),this.name="ReadOnly",this.code=t}}},61430:(e,t,i)=>{"use strict";var n,s,a,o;i.d(t,{fd:()=>o,pi:()=>s,yg:()=>n}),function(e){e.PHOTO="photo",e.RICH="rich",e.VIDEO="video"}(n||(n={})),function(e){e.COMMENT="comment",e.MATTERTAG="mattertag"}(s||(s={})),function(e){e.ALPHA="alpha",e.COLORED_ROOMS="colored_rooms",e.MEASUREMENTS="measurements",e.PHOTOGRAMY="photogramy",e.SCHEMATIC="schematic"}(a||(a={})),function(e){e.AVAILABLE="available",e.LOCKED="locked",e.UNAVAILABLE="unavailable"}(o||(o={}))},74381:(e,t,i)=>{"use strict";var n,s,a,o,r,l,d,c,u,h,m,p,E,S,O,g,T,_,A,v,N,I,L,f,b,R,y,M,D,P,k,w,C,x,H,U,G,F,j,V,B,W,K,z,Y,$,Q,q,X,Z,J,ee,te,ie,ne,se,ae,oe,re,le,de,ce,ue,he,me,pe,Ee,Se,Oe,ge,Te,_e,Ae,ve,Ne,Ie,Le,fe,be,Re,ye,Me,De,Pe,ke,we,Ce,xe,He,Ue,Ge,Fe,je,Ve,Be,We,Ke,ze,Ye,$e,Qe,qe,Xe,Ze,Je,et,tt,it,nt,st;i.d(t,{$X:()=>Ce,$h:()=>Ne,D6:()=>Be,ES:()=>Xe,I$:()=>S,K7:()=>Te,OQ:()=>ee,UR:()=>z,UY:()=>x,WU:()=>Je,Zw:()=>ve,_f:()=>X,gP:()=>P,hL:()=>Re,jG:()=>Z,jM:()=>$,n:()=>Ie,nE:()=>it,pi:()=>fe,pu:()=>ye,ve:()=>Se,w0:()=>xe,xx:()=>De,zf:()=>se}),function(e){e.NAME="NAME",e.ROLE="ROLE",e.TYPE="TYPE",e.USER_EMAIL="USER_EMAIL",e.USER_GROUP_NAME="USER_GROUP_NAME"}(n||(n={})),function(e){e.EMPTY="empty",e.PARSED="parsed",e.RAW="raw",e.VERIFIED="verified"}(s||(s={})),function(e){e.FULL="full",e.NONE="none",e.PARTIAL="partial"}(a||(a={})),function(e){e.FOREVER="FOREVER",e.LAST_7_DAYS="LAST_7_DAYS",e.LAST_30_DAYS="LAST_30_DAYS"}(o||(o={})),function(e){e.ESTIMATE="estimate",e.EXACT="exact",e.TRUNCATED="truncated"}(r||(r={})),function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.OPENED="OPENED",e.PENDING="PENDING"}(l||(l={})),function(e){e.IMPRESSION="impression",e.MODELLOADED="modelLoaded"}(d||(d={})),function(e){e.LAST7DAYS="last7Days",e.LAST30DAYS="last30Days",e.LIFETIME="lifetime"}(c||(c={})),function(e){e.CREATED="created",e.IMPRESSIONS="impressions",e.NAME="name",e.UNIQUE_VISITORS="unique_visitors",e.VIEWS="views"}(u||(u={})),function(e){e.CAPTURE="capture",e.WORKSHOP="workshop"}(h||(h={})),function(e){e.LZMA="lzma",e.NONE="none"}(m||(m={})),function(e){e.AVAILABLE="available",e.LOCKED="locked",e.UNAVAILABLE="unavailable"}(p||(p={})),function(e){e.EXTERNAL="external",e.UPLOAD="upload"}(E||(E={})),function(e){e.IMAGE="image",e.PDF="pdf",e.RICH="rich",e.VIDEO="video",e.ZIP="zip"}(S||(S={})),function(e){e.PROVISIONED="provisioned",e.UPLOADED="uploaded"}(O||(O={})),function(e){e.LOCKED="locked",e.UNAVAILABLE="unavailable",e.UNLOCKED="unlocked"}(g||(g={})),function(e){e.V1="v1",e.V2="v2"}(T||(T={})),function(e){e.COMPLETED="completed",e.FAILED="failed",e.INPROGRESS="inprogress",e.ORDERED="ordered",e.PLACED="placed",e.PREVIEWABLE="previewable"}(_||(_={})),function(e){e.UNAVAILABLE="unavailable",e.UNKNOWN="unknown",e.UNLOCKED="unlocked",e.UNLOCKING="unlocking"}(A||(A={})),function(e){e.DOLLHOUSE="dollhouse",e.FLOORPLAN="floorplan",e.OUTDOOR="outdoor",e.PANORAMA="panorama",e.TRANSITION="transition",e.UNKNOWN="unknown"}(v||(v={})),function(e){e.CAP_SVCS="CAP_SVCS",e.DIGI_EXPRESS="DIGI_EXPRESS",e.DIGI_PRO="DIGI_PRO"}(N||(N={})),function(e){e.WALL="wall",e.WINDOW="window"}(I||(I={})),function(e){e.HANDHELD="handheld",e.OTHER="other",e.PRO="pro",e.SPHERICAL="spherical"}(L||(L={})),function(e){e.BUNDLE="bundle",e.USER="user",e.VISION="vision"}(f||(f={})),function(e){e.DUPLICATE="duplicate",e.FAIL="fail",e.REPLACE="replace",e.SKIP="skip"}(b||(b={})),function(e){e.CREATED="created",e.MODIFIED="modified"}(R||(R={})),function(e){e.FAST="fast",e.NORMAL="normal",e.URGENT="urgent"}(y||(y={})),function(e){e.ASPIRATIONAL="aspirational",e.CONVERSATIONAL="conversational",e.INFORMATIVE="informative"}(M||(M={})),function(e){e.KILOMETERS="kilometers",e.MILES="miles"}(D||(D={})),function(e){e.INVISIBLE="invisible",e.WALL="wall"}(P||(P={})),function(e){e.CSV="CSV"}(k||(k={})),function(e){e.MATTERTAGS="Mattertags",e.NOTECOMMENTS="NoteComments",e.NOTES="Notes"}(w||(w={})),function(e){e.ACCOUNT_DELETED="ACCOUNT_DELETED",e.ACCOUNT_INACTIVE="ACCOUNT_INACTIVE",e.ACTIVE="ACTIVE",e.ARCHIVED="ARCHIVED",e.CORRUPT_MODEL="CORRUPT_MODEL",e.DELETED="DELETED",e.FAILED_PROCESSING="FAILED_PROCESSING",e.FLAGGED="FLAGGED",e.PENDING="PENDING",e.PROCESSING="PROCESSING",e.UNRECOVERABLE_ERRORS="UNRECOVERABLE_ERRORS"}(C||(C={})),function(e){e.BLOCKED="blocked",e.DISABLED="disabled",e.GATED="gated",e.UNLOCKED="unlocked"}(x||(x={})),function(e){e.MAY="may",e.MUST="must",e.MUST_NOT="must_not"}(H||(H={})),function(e){e.ALPHA="alpha",e.COLORED_ROOMS="colored_rooms",e.MEASUREMENTS="measurements",e.PHOTOGRAMY="photogramy",e.SCHEMATIC="schematic"}(U||(U={})),function(e){e.ADMIN="Admin",e.FOLDERCREATOR="FolderCreator",e.FOLDERSHARES="FolderShares",e.USERGROUPFOLDERSHARES="UserGroupFolderShares"}(G||(G={})),function(e){e.ADDRESS="address",e.INTERNALID="internalId",e.MLSID="mlsId",e.MLSNAME="mlsName",e.STANDARD="standard"}(F||(F={})),function(e){e.USEREMAIL="UserEmail",e.USERGROUPID="UserGroupId",e.USERID="UserId"}(j||(j={})),function(e){e.ALL="all",e.ID="id",e.NAME="name"}(V||(V={})),function(e){e.CREATED="created",e.MODIFIED="modified",e.NAME="name"}(B||(B={})),function(e){e.CLIENT="client",e.GSV="gsv",e.PROCESSING="processing",e.UNKNOWN="unknown"}(W||(W={})),function(e){e.COMPLETE="COMPLETE",e.ERROR="ERROR",e.PENDING="PENDING"}(K||(K={})),function(e){e.REEL="reel",e.STORY="story"}(z||(z={})),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.CREATED="created",e.FAILED="failed",e.INPROGRESS="inprogress"}(Y||(Y={})),function(e){e.ANCHORLOCATION="AnchorLocation",e.HIGHLIGHTREEL="HighlightReel",e.LABEL="Label",e.MATTERTAG="Mattertag",e.MEASUREMENTPATH="MeasurementPath",e.MODELFLOOR="ModelFloor",e.MODELROOM="ModelRoom",e.NOTE="Note",e.OBJECTANNOTATION="ObjectAnnotation",e.ORDEREDLIST="OrderedList",e.PANORAMICIMAGELOCATION="PanoramicImageLocation",e.PHOTO="Photo"}($||($={})),function(e){e.SHOWCASE="showcase"}(Q||(Q={})),function(e){e.PHOTO="photo",e.RICH="rich",e.VIDEO="video"}(q||(q={})),function(e){e.LINETYPE_2D="linetype_2D",e.LINETYPE_3D="linetype_3D"}(X||(X={})),function(e){e.DISABLED="disabled",e.MEASURE="measure",e.MEASUREANDVIEW="measureAndView"}(Z||(Z={})),function(e){e.FLOORS="floors",e.HIGHLIGHTREEL="highlightReel",e.IMAGE="image",e.LABELS="labels",e.MATTERTAGS="mattertags",e.MEASUREMENTPATHS="measurementPaths",e.ORDEREDLISTS="orderedLists",e.PLAYEROPTIONS="playerOptions",e.SWEEPS="sweeps"}(J||(J={})),function(e){e.FULL="full",e.PUBLIC="public",e.VIEWER="viewer"}(ee||(ee={})),function(e){e.ADMIN="Admin",e.MODELCREATOR="ModelCreator",e.MODELSHARES="ModelShares",e.USERGROUPMODELSHARES="UserGroupModelShares"}(te||(te={})),function(e){e.PASSWORD="password",e.PRIVATE="private",e.PUBLIC="public",e.UNLISTED="unlisted"}(ie||(ie={})),function(e){e.ACTIVE="active",e.ARCHIVED="archived",e.FLAGGED="flagged",e.PENDING="pending"}(ne||(ne={})),function(e){e.BLACK="black",e.GREY="grey",e.WHITE="white"}(se||(se={})),function(e){e.DEFAULT="default",e.MLS="mls",e.UNBRANDED="unbranded"}(ae||(ae={})),function(e){e.DESCRIPTION="description",e.SUMMARY="summary"}(oe||(oe={})),function(e){e.ACTIVATION_STATE_CHANGED="activation_state_changed",e.BUNDLE_COMPLETED="bundle_completed",e.BUNDLE_REQUESTED="bundle_requested",e.BUNDLE_UPDATED="bundle_updated",e.CREATED="created",e.DELETED="deleted",e.DETAILS_CHANGED="details_changed",e.INSERTED="inserted",e.PROCESSED="processed",e.REPLACED="replaced",e.RESTORED="restored",e.TRANSFERRED_IN="transferred_in",e.TRANSFERRED_OUT="transferred_out",e.UPDATED="updated",e.UPLOADED="uploaded",e.VISIBILITY_CHANGED="visibility_changed"}(re||(re={})),function(e){e.ACTIVE="active",e.ARCHIVED="archived"}(le||(le={})),function(e){e.ID="id",e.INTERNALID="internalId",e.MLSID="mlsId"}(de||(de={})),function(e){e.DEFAULT="default",e.VR="vr"}(ce||(ce={})),function(e){e.COMPLETED="completed",e.FAILED="failed",e.PROCESSING="processing",e.STAGING="staging"}(ue||(ue={})),function(e){e.USEREMAIL="UserEmail",e.USERGROUPID="UserGroupId",e.USERID="UserId"}(he||(he={})),function(e){e.ACCESSVISIBILITY="accessVisibility",e.ADDRESS="address",e.CAMERA="camera",e.CAMERAMANUFACTURER="cameraManufacturer",e.CAMERAMODEL="cameraModel",e.DESCRIPTION="description",e.EXTENSIONTAG="extensiontag",e.GEODISTANCE="geoDistance",e.GEOREGION="geoRegion",e.ID="id",e.INTERNALID="internalId",e.MLSID="mlsId",e.MLSNAME="mlsName",e.NAME="name",e.STANDARD="standard",e.SUMMARY="summary",e.VISIONVERSION="visionVersion"}(me||(me={})),function(e){e.CREATED="created",e.INTERNALID="internalId",e.LAST7IMPRESSIONSEVENTCOUNT="last7ImpressionsEventCount",e.LAST7MODELSLOADEDEVENTCOUNT="last7ModelsLoadedEventCount",e.LAST7MODELSLOADEDUSERCOUNT="last7ModelsLoadedUserCount",e.LAST30IMPRESSIONSEVENTCOUNT="last30ImpressionsEventCount",e.LAST30MODELSLOADEDEVENTCOUNT="last30ModelsLoadedEventCount",e.LAST30MODELSLOADEDUSERCOUNT="last30ModelsLoadedUserCount",e.LIFETIMEIMPRESSIONSEVENTCOUNT="lifetimeImpressionsEventCount",e.LIFETIMEMODELSLOADEDEVENTCOUNT="lifetimeModelsLoadedEventCount",e.LIFETIMEMODELSLOADEDUSERCOUNT="lifetimeModelsLoadedUserCount",e.MLSID="mlsId",e.MODIFIED="modified",e.NAME="name",e.POSTALCODE="postalCode",e.SCORE="score"}(pe||(pe={})),function(e){e.COPY="copy",e.DEMO="demo",e.PROCESSING="processing",e.TRANSFER="transfer",e.UNKNOWN="unknown"}(Ee||(Ee={})),function(e){e.ACTIVATING="activating",e.ACTIVATION_PENDING="activation_pending",e.ACTIVE="active",e.FAILED="failed",e.INACTIVATING="inactivating",e.INACTIVATION_PENDING="inactivation_pending",e.INACTIVE="inactive",e.PENDING="pending",e.PROCESSING="processing",e.STAGING="staging"}(Se||(Se={})),function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(Oe||(Oe={})),function(e){e.COPY="copy",e.DEMO="demo",e.ORIGINAL="original"}(ge||(ge={})),function(e){e.PRIVATE="private",e.PUBLIC="public"}(Te||(Te={})),function(e){e.SERIAL="serial"}(_e||(_e={})),function(e){e.DOORWAY="doorway",e.OPENING="opening"}(Ae||(Ae={})),function(e){e.AUTO="auto",e.LEFT="left",e.RIGHT="right"}(ve||(ve={})),function(e){e.AUTO="auto",e.MANUAL="manual",e.UNPLACED="unplaced"}(Ne||(Ne={})),function(e){e.UPLOAD="upload",e.VISION="vision"}(Ie||(Ie={})),function(e){e.CYLINDRICAL="cylindrical",e.EQUIRECTANGULAR="equirectangular",e.SKYBOX="skybox"}(Le||(Le={})),function(e){e.COMMENT="comment",e.MATTERTAG="mattertag"}(fe||(fe={})),function(e){e.DISCOVER="discover",e.FOLDER="folder",e.GRANT="grant",e.JOB="job",e.MODEL="model",e.ORDER="order",e.ORGANIZATION="organization",e.USAGE="usage",e.USER="user"}(be||(be={})),function(e){e.SNAPSHOT="snapshot",e.TOUR="tour"}(Re||(Re={})),function(e){e.BUNDLE="bundle",e.USER="user",e.VISION="vision"}(ye||(ye={})),function(e){e.ICON="icon",e.ORIGINAL="original",e.PRESENTATION="presentation",e.PREVIEW="preview",e.THUMBNAIL="thumbnail",e.WEB="web"}(Me||(Me={})),function(e){e.EQUIRECTANGULAR="equirectangular",e.PHOTO2D="photo2D"}(De||(De={})),function(e){e.AVAILABILITY="availability",e.FLAG="flag",e.QUOTA="quota",e.VALUE="value"}(Pe||(Pe={})),function(e){e.COMPLETE="complete",e.FAILED="failed",e.INPROGRESS="inprogress",e.STAGING="staging"}(ke||(ke={})),function(e){e.FLOORPLAN="FLOORPLAN",e.PHOTO="PHOTO",e.VIDEO="VIDEO"}(we||(we={})),function(e){e.OPEN="open",e.RESOLVED="resolved"}(Ce||(Ce={})),function(e){e.BOUNDARYEDGE="boundaryEdge",e.BOUNDARYVERTEX="boundaryVertex",e.ROOM="room"}(xe||(xe={})),function(e){e.ABORTED="aborted",e.ALIGNED="aligned",e.DELETED="deleted",e.FAILED="failed",e.UNALIGNED="unaligned"}(He||(He={})),function(e){e.ANCHOR="anchor",e.ID="id",e.LOCATION="location"}(Ue||(Ue={})),function(e){e.MESH="mesh",e.PANO="pano",e.UNKNOWN="unknown"}(Ge||(Ge={})),function(e){e.FACE_BLURRING="face_blurring",e.FIDUCIAL_DETECTION="fiducial_detection",e.FIDUCIAL_REMOVAL="fiducial_removal"}(Fe||(Fe={})),function(e){e.ADDRESS="ADDRESS",e.ALL="ALL",e.CREATED_BY="CREATED_BY",e.INTERNAL_ID="INTERNAL_ID",e.MLS_ID="MLS_ID",e.MLS_NAME="MLS_NAME"}(je||(je={})),function(e){e.DEMO="demo",e.DISCOVERABLE="discoverable",e.FLAGGED="flagged",e.INACTIVE="inactive"}(Ve||(Ve={})),function(e){e.DEFAULT="default",e.DISABLED="disabled",e.ENABLED="enabled"}(Be||(Be={})),function(e){e.FOLDER="Folder",e.MODEL="Model",e.ORGANIZATION="Organization"}(We||(We={})),function(e){e.USER="USER",e.USER_GROUP="USER_GROUP"}(Ke||(Ke={})),function(e){e.ASC="asc",e.DESC="desc"}(ze||(ze={})),function(e){e.ACCEPTED="accepted",e.DISMISSED="dismissed",e.REJECTED="rejected",e.UNREVIEWED="unreviewed"}(Ye||(Ye={})),function(e){e.HIGH="high",e.LOW="low"}($e||($e={})),function(e){e.AFTERNOON="afternoon",e.DAWN="dawn",e.DUSK="dusk",e.MORNING="morning",e.NIGHT="night"}(Qe||(Qe={})),function(e){e.ACCEPTED="accepted",e.CANCELLED="cancelled",e.INVALID="invalid",e.PENDING="pending",e.REJECTED="rejected"}(qe||(qe={})),function(e){e.FADE_TO_BLACK="fade_to_black",e.INSTANT="instant",e.INTERPOLATE="interpolate"}(Xe||(Xe={})),function(e){e.CAMERAUNSUPPORTED="cameraUnsupported",e.ENABLEMENTEXPIRED="enablementExpired",e.FEATUREBLOCKED="featureBlocked",e.ORGSETTINGSDISABLED="orgSettingsDisabled",e.PERMISSIONMISSINGUNLOCK="permissionMissingUnlock",e.PERMISSIONMISSINGVIEW="permissionMissingView",e.QUOTAEXCEEDED="quotaExceeded"}(Ze||(Ze={})),function(e){e.IMPERIAL="imperial",e.METRIC="metric"}(Je||(Je={})),function(e){e.CREATED="created",e.EMAIL="email",e.FIRST_NAME="first_name",e.LAST_NAME="last_name",e.MODIFIED="modified"}(et||(et={})),function(e){e.DEFAULT="default",e.ROOT="root",e.SELF="self"}(tt||(tt={})),function(e){e.DOLLHOUSE="dollhouse",e.FLOORPLAN="floorplan",e.MESH="mesh",e.PANORAMA="panorama"}(it||(it={})),function(e){e.BASIC="basic",e.NONE="none",e.TOKEN="token"}(nt||(nt={})),function(e){e.CANCELED="Canceled",e.COMPLETED="Completed",e.CONTINUEDASNEW="ContinuedAsNew",e.FAILED="Failed",e.RUNNING="Running",e.TERMINATED="Terminated",e.TIMEDOUT="TimedOut",e.UNRECOGNIZED="Unrecognized",e.UNSPECIFIED="Unspecified"}(st||(st={}))},24790:(e,t,i)=>{"use strict";i.d(t,{l9:()=>a,qw:()=>o,vE:()=>s,wD:()=>n});const n=`${window.location.pathname}`+"api/mp/models/graph",s=`${window.location.pathname}`+"api/mp/attachments/graph",a="data.model.views",o="aaaaaaaaaaaaaaaaaaaaaaaaa"},44094:(e,t,i)=>{"use strict";function n(e){return null!=e}i.d(t,{s:()=>n})},45832:(e,t,i)=>{"use strict";i.d(t,{$c:()=>o,A5:()=>re,AO:()=>ge,CE:()=>u,Et:()=>s,FI:()=>D,GR:()=>V,HX:()=>I,He:()=>de,J$:()=>Ee,JY:()=>Se,KT:()=>ce,Kv:()=>K,LG:()=>fe,Ll:()=>me,M7:()=>Fe,N4:()=>X,N7:()=>we,N9:()=>x,Ne:()=>G,Np:()=>Ie,PD:()=>le,PJ:()=>he,PM:()=>U,Pn:()=>Te,QS:()=>B,QW:()=>L,SD:()=>He,SH:()=>Ce,T9:()=>_e,TN:()=>z,TV:()=>ue,TY:()=>S,Tx:()=>te,UN:()=>Ge,Uu:()=>ee,Vc:()=>C,Vu:()=>oe,Wh:()=>Ae,X$:()=>W,X7:()=>m,XQ:()=>ke,Xf:()=>Pe,Xx:()=>f,YC:()=>je,Yj:()=>pe,Yr:()=>v,Z7:()=>h,ZF:()=>k,_q:()=>Q,_v:()=>T,aF:()=>n,aU:()=>M,az:()=>P,bj:()=>j,co:()=>Re,cy:()=>$,dC:()=>Me,dT:()=>E,di:()=>c,eE:()=>l,ep:()=>_,et:()=>O,f0:()=>be,fO:()=>F,gS:()=>w,gk:()=>Le,gy:()=>Y,iV:()=>Oe,jh:()=>d,kG:()=>ie,kM:()=>se,kd:()=>q,lN:()=>De,lf:()=>Z,mL:()=>R,nu:()=>b,pR:()=>y,qD:()=>ve,qL:()=>a,qy:()=>r,rA:()=>g,rz:()=>ae,sA:()=>ne,se:()=>Ne,tQ:()=>Ue,vM:()=>J,wY:()=>ye,yR:()=>N,yT:()=>xe,zX:()=>A,zj:()=>p,zy:()=>H});const n=Symbol("analytics"),s=Symbol("annotations"),a=Symbol("apiv2"),o=Symbol("app-analytics"),r=Symbol("attachments"),l=Symbol("automation-support"),d=(Symbol("blur-data"),Symbol("camera")),c=Symbol("camera-start"),u=Symbol("canvas"),h=Symbol("container-data"),m=Symbol("controls-common"),p=Symbol("controls-dh"),E=Symbol("controls-fp"),S=Symbol("controls-inside"),O=Symbol("controls-zoom"),g=Symbol("current-pano"),T=Symbol("cursor-controller"),_=Symbol("cursors"),A=Symbol("cursor-mesh"),v=Symbol("dwell-analytics"),N=Symbol("raycast-fat"),I=Symbol("floors"),L=Symbol("floors-state"),f=Symbol("raycast-floor"),b=Symbol("gui"),R=Symbol("input"),y=Symbol("interaction"),M=(Symbol("json-schema-validator"),Symbol("label-data")),D=Symbol("label-render"),P=Symbol("layers"),k=Symbol("lines"),w=Symbol("locale"),C=Symbol("login-redirect"),x=Symbol("mattertag-data"),H=Symbol("measurement-mode"),U=Symbol("mesh-query"),G=Symbol("mesh-api-fixup"),F=Symbol("mesh-trim-data"),j=Symbol("model-data"),V=Symbol("model-mesh"),B=Symbol("model-rating"),W=Symbol("mouse"),K=Symbol("navigation"),z=Symbol("notes"),Y=Symbol("object-tag-suggestions-data"),$=Symbol("ordered-lists"),Q=Symbol("orthographic-controls"),q=Symbol("pins"),X=Symbol("plugin"),Z=Symbol("plugin-config-data-module"),J=Symbol("plugin-ui"),ee=Symbol("policy"),te=Symbol("pre-renderer"),ie=Symbol("react-three-fiber-external"),ne=Symbol("raycaster"),se=Symbol("rtt"),ae=Symbol("room-bound"),oe=Symbol("room-bound-data"),re=Symbol("room-bound-renderer"),le=Symbol("rooms"),de=(Symbol("room-selector"),Symbol("scan-info")),ce=Symbol("scene"),ue=Symbol("scheduler"),he=Symbol("screenshots"),me=Symbol("sdk-landing"),pe=Symbol("search"),Ee=Symbol("sensors"),Se=Symbol("ses"),Oe=Symbol("skybox"),ge=Symbol("snapshots-editor"),Te=Symbol("snapshots-data"),_e=Symbol("storage"),Ae=Symbol("sweep-data"),ve=Symbol("pano"),Ne=Symbol("pucks"),Ie=Symbol("path"),Le=Symbol("sweep-pin-mesh"),fe=Symbol("sweep-pin"),be=Symbol("portal"),Re=Symbol("portal-nav"),ye=Symbol("sweep-textures"),Me=Symbol("sweep-viewdata"),De=Symbol("tags"),Pe=Symbol("tours-controls"),ke=Symbol("tours-data"),we=Symbol("tools"),Ce=(Symbol("transform-gizmo"),Symbol("users")),xe=Symbol("mode-change"),He=Symbol("mode"),Ue=Symbol("video"),Ge=Symbol("visible-mesh-bounds"),Fe=Symbol("webgl-renderer"),je=Symbol("webxr")},68375:(e,t,i)=>{"use strict";i.d(t,{s:()=>a});var n=i(96540),s=i(77570);function a(){return(0,n.useContext)(s.B).analytics}},85935:(e,t,i)=>{"use strict";i.d(t,{$E:()=>p,BX:()=>O,Q9:()=>E,oA:()=>l,uo:()=>m});var n=i(77232),s=i(54882),a=i(64491),o=i(96824);const r=e=>`${e}_3.0`,l=e=>e,d=e=>{var t,i;return{pme:null!==(i=(null!==(t=window.MP_PLATFORM_METADATA)&&void 0!==t?t:{}).pme)&&void 0!==i&&i}},c=e=>({height:e.innerHeight,width:e.innerWidth}),u=e=>({width:e.screen.width,height:e.screen.height,density:e.devicePixelRatio}),h=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){return""}},m=()=>{const e=(new n.UAParser).getResult();let t=e.os.name,i=e.browser.name;const s=Object.assign({},e.device);return(0,a.J0)()&&(t="iPadOS",s.vendor="Apple",s.model="iPad",s.type="tablet","Safari"===i&&(i="Mobile Safari")),{browser:{name:i,major:e.browser.major,version:e.browser.version,language:navigator.language||"",languages:navigator.languages?navigator.languages.join(", "):""},os:{name:t,version:e.os.version},device:{vendor:s.vendor,model:s.model,type:s.type}}};function p(e){var t;const i=window,n=i.parent!==i,s="1"===e.play||"true"===e.play;return Object.assign({model_id:e.model||e.m||"",language_tag:null!==(t=e.lang)&&void 0!==t?t:null,quickstart:"1"===e.qs,is_mobile:(0,a.Fr)(),iframe:n,session_id:(0,o.e)(),platform:m(),pme:d(i),authTokenProvided:!!e.auth||!!e.connectauth},E(s))}function E(e){const t=window,i=t.innerWidth/t.innerHeight,n=t.parent!==t;return{start_source:e?"autoplay":n?"click":"fullpage",autoplay:e,aspect_ratio:isFinite(i)?i:1,window:c(t)}}function S(e,t){const i=window;return{app:{name:r(t),version:"25.3.3_webgl-370-gda98f20035"},locale:e,screen:u(i),timezone:h(),location:{}}}function O(e,t,i){const n=S(t,i);return(0,s.A)(e).then((e=>{n.location={city:e.city,country:e.country_name,region:e.region}})),n}},30926:(e,t,i)=>{"use strict";i.d(t,{o:()=>o});var n=i(84710),s=i(71415),a=i(95330);class o extends n.B{constructor(){super(),this.name="annotations-view-data",this.dockedAnnotationObservable=(0,a.p)(null),this.billboardAnnotationObservable=(0,a.p)(null),this.billboardSelectedObservable=(0,a.p)(!1),this.capabilities=new Map}setDockedAnnotation(e,t){const i=e&&t?{id:e,annotationType:t}:null;this.isEqual(i,this.dockedAnnotation)||this.atomic((()=>{this.dockedAnnotationObservable.value=i,i&&this.billboardSelected&&(this.billboardSelectedObservable.value=!1)}))}get dockedAnnotation(){return this.dockedAnnotationObservable.value}onDockedAnnotationChanged(e){return this.dockedAnnotationObservable.onChanged(e)}setBillboardAnnotation(e,t,i){const n=e&&t?{id:e,annotationType:t}:null;this.atomic((()=>{this.isEqual(n,this.billboardAnnotation)||(this.billboardAnnotationObservable.value=n),void 0===i&&n||(this.billboardSelectedObservable.value=!!i,i&&this.dockedAnnotation&&(this.dockedAnnotationObservable.value=null))}))}get billboardAnnotation(){return this.billboardAnnotationObservable.value}get billboardSelected(){return this.billboardSelectedObservable.value}get selectedAnnotation(){return this.billboardSelected?this.billboardAnnotation:null}updateCapabilities(e,t){const i=this.getCapabilities(e);i.atomic((()=>{i.dock=t.dock,i.preview=t.preview,i.share=t.share}))}getCapabilities(e){const t={dock:!0,preview:!0,select:!0,share:!0};this.capabilities.has(e)||this.capabilities.set(e,(0,s.c)(t));return this.capabilities.get(e)||(0,s.c)(t)}isEqual(e,t){return(null==e?void 0:e.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.annotationType)===(null==t?void 0:t.annotationType)}}},41259:(e,t,i)=>{"use strict";i.d(t,{Tj:()=>l,XK:()=>c,ZR:()=>r,Zx:()=>o,mS:()=>d,xo:()=>a,y8:()=>s});var n=i(55141);class s extends n.u{constructor(e,t,i=!1){super(),this.payload={id:e,annotationType:t,force:i}}}s.id="ANNOTATION_DOCK";class a extends n.u{constructor(e,t,i=!1){super(),this.payload={id:e,annotationType:t,force:i}}}a.id="ANNOTATION_SELECT";class o extends n.u{constructor(e,t){super(),this.payload={id:e,annotationType:t}}}o.id="ANNOTATION_PREVIEW";class r extends n.u{}r.id="ANNOTATIONS_CLOSE_BILLBOARD";class l extends n.u{}l.id="ANNOTATIONS_CLOSE_DOCKED_ANNOTATION";class d extends n.u{constructor(e,t){super(),this.payload={exceptType:e,exceptId:t}}}d.id="ANNOTATIONS_CLOSE_ALL";class c extends n.u{constructor(e,t){super(),this.payload={id:e,annotationType:t}}}c.id="ANNOTATION_CLOSE"},52678:(e,t,i)=>{"use strict";var n;i.d(t,{c:()=>n}),function(e){e.ACCESS_TOKEN_REQUIRED="object.access.token.required",e.FORBIDDEN="spaces.public.access.password.forbidden",e.INVALID_PASSWORD="spaces.public.access.invalid_password",e.TOO_MANY_ATTEMPTS="spaces.public.access.too_many_attempts",e.UNAUTHORIZED="user.unauthorized",e.NOT_FOUND="not.found",e.PASSWORD_REQUIRED="model.unauthorized"}(n||(n={}))},30716:(e,t,i)=>{"use strict";var n;i.d(t,{L:()=>n}),function(e){e.INVALID_CREDENTIALS="invalidcredentials",e.TOO_MANY_ATTEMPTS="toomanyattempts",e.UNKNOWN="unknown"}(n||(n={}))},68137:(e,t,i)=>{"use strict";i.d(t,{e:()=>s});var n=i(75778);class s{constructor(){const e=(0,n.P3)("auth","");this.authenticate(e)}isAuthenticated(){return!!s.token}authenticate(e){return!(!e||"string"!=typeof e)&&(s.token=e.replace(","," "),!0)}getAuthorizationHeader(){return s.token?s.token:""}}},55066:(e,t,i)=>{"use strict";i.d(t,{l:()=>l});var n=i(10843),s=i(30716),a=i(52678),o=i(50380);const r=new n.Ay("mp-password-authentication");class l{constructor(e=window.location.origin){this.baseUrl=e,this.errorType=s.L.UNKNOWN}async authenticate(e,t){if(!e.match(/[a-zA-Z0-9]+/))return r.error(`Invalid Model ID ${e}`),!1;const i=`${window.location.origin}${window.location.pathname}/api/v2/models/${e}/public-access/`;return this.fetchToken(i,t).then((async e=>{let t={};return e&&(t=await e.json(),e.ok&&t.token)?(this.login(t.token),!0):(this.errorType=l.getErrorType(t.code),this.logout(),!1)}))}isAuthenticated(){return void 0!==l.token}login(e){l.token=e}logout(){l.token=void 0}getAuthorizationHeader(){return l.token?`Matterport-Object-Access ${l.token}`:""}async fetchToken(e,t){const i=JSON.stringify({password:t}),n={"Content-Type":"application/json"};return(0,o.v)(e,n),fetch(e,{method:"POST",cache:"no-cache",headers:n,body:i})}static getErrorType(e){switch(e){case a.c.TOO_MANY_ATTEMPTS:return s.L.TOO_MANY_ATTEMPTS;case a.c.INVALID_PASSWORD:return s.L.INVALID_CREDENTIALS}return s.L.UNKNOWN}}},80519:(e,t,i)=>{"use strict";i.d(t,{u:()=>n});class n{static setToken(e){n.token="Bearer "+e}isAuthenticated(){return!!n.token}authenticate(e){return!(!e||"string"!=typeof e)}getAuthorizationHeader(){return n.token?n.token:""}}},76318:(e,t,i)=>{"use strict";var n,s;i.d(t,{MF:()=>n,Mo:()=>o,c5:()=>s,oY:()=>a}),function(e){e.BASE="base",e.STANDARD="standard",e.HIGH="high",e.ULTRAHIGH="ultrahigh"}(n||(n={})),function(e){e[e.BASE=512]="BASE",e[e.STANDARD=1024]="STANDARD",e[e.HIGH=2048]="HIGH",e[e.ULTRAHIGH=4096]="ULTRAHIGH"}(s||(s={}));const a={[n.BASE]:s.BASE,[n.STANDARD]:s.STANDARD,[n.HIGH]:s.HIGH,[n.ULTRAHIGH]:s.ULTRAHIGH},o={[s.BASE]:n.BASE,[s.STANDARD]:n.STANDARD,[s.HIGH]:n.HIGH,[s.ULTRAHIGH]:n.ULTRAHIGH}},56208:(e,t,i)=>{"use strict";i.d(t,{EY:()=>d,Q$:()=>n});var n,s=i(84710),a=i(85616),o=i(5601),r=i(23339),l=i(88664);class d extends s.B{constructor(e={}){super(),this.name="player-options",this.options=new c(e)}copy(e){e&&(this.modified=e.modified,this.options.copy(e.options),this.options.commit(),this.commit())}resetDefaultTourOptions(){this.options.fast_transitions=l.m7,this.options.transition_speed=l.iw,this.options.transition_time=l.SM,this.options.pan_speed=l.u7,this.options.dollhouse_pan_speed=l.qr,this.options.zoom_duration=l.R4,this.options.pan_angle=l.s8,this.options.pan_direction=l.ek,this.options.commit()}}class c extends a.v{constructor(e){super(),this.defurnish_view=!0,this.presented_by=!1,this.highlight_reel=!0,this.floor_plan=!0,this.tour_buttons=!0,this.room_bounds=!1,this.labels=!0,this.labels_dh=!0,this.floor_select=!0,this.space_search=!0,this.measurements=!0,this.measurements_saved=!0,this.dollhouse=!0,this.contact_email=!1,this.address=!1,this.contact_name=!1,this.model_summary=!1,this.contact_phone=!1,this.model_name=!1,this.external_url=!1,this.unit_type=r.t.IMPERIAL,this.background_color=o.v.default,this.fast_transitions=l.m7,this.transition_speed=l.iw,this.transition_time=l.SM,this.pan_speed=l.u7,this.dollhouse_pan_speed=l.qr,this.zoom_duration=l.R4,this.pan_angle=l.s8,this.pan_direction=l.ek,e&&this.copy(e)}copy(e){this.presented_by=!!e.presented_by,this.highlight_reel=!!e.highlight_reel,this.floor_plan=!!e.floor_plan,this.room_bounds=!!e.room_bounds,this.tour_buttons=!!e.tour_buttons,this.labels=!!e.labels,this.space_search=!!e.space_search,this.dollhouse=!!e.dollhouse,this.fast_transitions=!!e.fast_transitions,this.contact_email=!!e.contact_email,this.address=!!e.address,this.contact_name=!!e.contact_name,this.model_summary=!!e.model_summary,this.contact_phone=!!e.contact_phone,this.model_name=!!e.model_name,this.external_url=!!e.external_url,this.defurnish_view=!!e.defurnish_view,void 0!==e.measurements&&(this.measurements=e.measurements),void 0!==e.labels_dh&&(this.labels_dh=e.labels_dh),void 0!==e.floor_select&&(this.floor_select=e.floor_select),void 0!==e.measurements_saved&&(this.measurements_saved=e.measurements_saved),void 0!==e.unit_type&&(this.unit_type=e.unit_type),void 0!==e.background_color&&void 0!==o.v[e.background_color]&&(this.background_color=e.background_color),void 0!==e.transition_speed&&(this.transition_speed=e.transition_speed),void 0!==e.transition_time&&(this.transition_time=e.transition_time),void 0!==e.pan_speed&&(this.pan_speed=e.pan_speed),void 0!==e.dollhouse_pan_speed&&(this.dollhouse_pan_speed=e.dollhouse_pan_speed),void 0!==e.zoom_duration&&(this.zoom_duration=e.zoom_duration),void 0!==e.pan_angle&&(this.pan_angle=e.pan_angle),void 0!==e.pan_direction&&(this.pan_direction=e.pan_direction)}}!function(e){e.DefurnishView="defurnish_view",e.PresentedBy="presented_by",e.HighlightReel="highlight_reel",e.FloorPlan="floor_plan",e.RoomBounds="room_bounds",e.TourButtons="tour_buttons",e.Labels="labels",e.LabelsDollhouse="labels_dh",e.Measurements="measurements",e.FloorSelect="floor_select",e.SavedMeasurements="measurements_saved",e.Dollhouse="dollhouse",e.InstantTransitions="fast_transitions",e.TransitionSpeed="transition_speed",e.TransitionTime="transition_time",e.PanSpeed="pan_speed",e.DollhousePanSpeed="dollhouse_pan_speed",e.ZoomDuration="zoom_duration",e.PanAngle="pan_angle",e.PanDirection="pan_direction",e.Units="unit_type",e.DetailsEmail="contact_email",e.DetailsAddress="address",e.DetailsName="contact_name",e.DetailsSummary="model_summary",e.DetailsPhone="contact_phone",e.DetailsModelName="model_name",e.DetailsExternalUrl="external_url",e.BackgroundColor="background_color",e.SpaceSearch="space_search"}(n||(n={}))},5601:(e,t,i)=>{"use strict";i.d(t,{t:()=>s,v:()=>a});const n={bgPrimary:"#0F1011",bgSecondary:"#1e2023",gridPrimary:"#2d3035",gridSecondary:"#171a1c"},s={black:n,grey:{bgPrimary:"#c9cbcc",bgSecondary:"#9d9d9e",gridPrimary:"#c9cbcc",gridSecondary:"#b0b1b1"},white:{bgPrimary:"#fcfdff",bgSecondary:"#ced0d3",gridPrimary:"#fcfdff",gridSecondary:"#e2e3e5"},default:n};var a;!function(e){e.black="black",e.grey="grey",e.white="white",e.default="black"}(a||(a={}))},20563:(e,t,i)=>{"use strict";i.d(t,{GI:()=>d,Q8:()=>m,Wz:()=>l,X5:()=>c,X6:()=>r,ZT:()=>o,_W:()=>a,a_:()=>h,cC:()=>u});var n=i(52018);class s extends n.t{constructor(e="Api Exception"){super(e),this.name="ApiException"}}class a extends s{constructor(e="Unauthorized"){super(e),this.name="Unauthorized"}}class o extends s{constructor(e="Forbidden"){super(e),this.name="Forbidden"}}class r extends s{constructor(e="Not Found"){super(e),this.name="NotFound"}}class l extends s{constructor(e="Model Processing"){super(e),this.name="ModelProcessing",this.code="unavailable.processing"}}class d extends s{constructor(e="Model Failed"){super(e),this.name="ModelFailed",this.code="model.failed"}}class c extends s{constructor(e="Model Archived"){super(e),this.name="ModelArchived",this.code="unavailable.archived"}}class u extends s{constructor(e="Model Pending"){super(e),this.name="ModelPending",this.code="unavailable.pending"}}class h extends s{constructor(e="Model Deleted"){super(e),this.name="ModelDeleted",this.code="unavailable.gone"}}class m extends s{constructor(e="Model Compliance"){super(e),this.name="ModelCompliance",this.code="unavailable.compliance"}}},54882:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(97084),s=i(66726);async function a(e){return{ city: '', country_code: '', country_name: '', region: '' };return(0,s.Jt)(window.location.href)?e.get("geoip/",{responseType:"json",priority:n.QK.LOW}):{city:"",country_code:"",country_name:"",region:""}}},23338:(e,t,i)=>{"use strict";i.d(t,{Tw:()=>r,pN:()=>a,un:()=>o});var n=i(62366);let s=null;const a=e=>{s=e},o=()=>s,r=(e,t)=>(s&&(0,n.E)(e)&&(t["x-matterport-application-key"]=s),t)},20916:(e,t,i)=>{"use strict";i.d(t,{F:()=>o,x:()=>a});var n=i(62366);let s=null;const a=e=>{s=e},o=(e,t)=>(s&&(0,n.E)(e)&&(t["x-matterport-application-name"]=s),t)},84217:(e,t,i)=>{"use strict";i.d(t,{_:()=>a,k:()=>o});var n=i(62366);let s=null;const a=e=>{s=e},o=(e,t)=>(s&&(0,n.E)(e)&&(t["x-matterport-application-version"]=s),t)},50380:(e,t,i)=>{"use strict";i.d(t,{v:()=>h});var n=i(20916),s=i(84217),a=i(23338),o=i(55066),r=i(68137),l=i(80519);const d=[new r.e,new l.u,new o.l];var c=i(62366);const u=[(e,t,i=d)=>{const n=i.map((e=>e.getAuthorizationHeader())).find(Boolean);return n&&(0,c.E)(e)&&(t.authorization=n),t},n.F,s.k,a.Tw],h=(e,t,i=u)=>(i.forEach((i=>i(e,t))),t)},62366:(e,t,i)=>{"use strict";i.d(t,{E:()=>a});const n=["matterport.com","matterportvr.cn","localhost"],s=["/api/"],a=e=>{let t;try{t=new URL(e.toLowerCase())}catch(e){return!1}const{hostname:i,pathname:a}=t,o=n.some((e=>i===e||i.endsWith(`.${e}`))),r=s.some((e=>a.startsWith(e)));return o&&r}},88664:(e,t,i)=>{"use strict";i.d(t,{R4:()=>u,SM:()=>l,ek:()=>m,iw:()=>r,m7:()=>o,qr:()=>c,s8:()=>h,u7:()=>d,zk:()=>a});var n=i(1333),s=i(60152);const a="TransitionType",o=!0,r=s.Dj,l=s.VD,d=s.BU,c=s.lo,u=s.cS,h=s.V4,m=n.ND.Auto},30740:(e,t,i)=>{"use strict";i.d(t,{o:()=>a});var n=i(85616),s=i(3795);class a extends n.v{constructor(e){super(),this.category=s._A.EXTERNAL,this.mediaType=s.zu.IMAGE,this.mimeType="",this.src="",this.height=0,this.width=0,e&&Object.assign(this,e)}copy(e){return this.id=e.id,this.src=e.src,this.url=e.url,this.thumbnailUrl=e.thumbnailUrl,this.downloadUrl=e.downloadUrl,this.height=e.height,this.width=e.width,this.created=e.created,this.category=e.category,this.mediaType=e.mediaType,this.parentId=e.parentId||"",this.parentType=e.parentType,this.filename=e.filename,this.bytes=e.bytes,this.mimeType=e.mimeType||"",this}}},80071:(e,t,i)=>{"use strict";i.d(t,{Bd:()=>s,OK:()=>d,Yr:()=>l,bI:()=>o,c4:()=>m,dX:()=>c,fz:()=>h,ht:()=>u,ib:()=>a,of:()=>p,ov:()=>r});var n=i(55141);class s extends n.u{constructor(e,t,i){super(),this.payload={parentId:e,parentType:t,src:i}}}s.id="EMBED_MEDIA";class a extends n.u{constructor(e){super(),this.payload={attachment:e}}}a.id="LOAD_ATTACHMENT_EMBED";class o extends n.u{constructor(e,t,i){super(),this.payload={parentId:e,parentType:t,files:i}}}o.id="UPLOAD_ATTACHMENTS";class r extends n.u{constructor(e,t,i){super(),this.payload={parentId:e,parentType:t,prevParentId:i}}}r.id="CONFIRM_ATTACHMENT_CHANGES";class l extends n.u{constructor(e){super(),this.payload={uploadId:e}}}l.id="CANCEL_ATTACHMENT_UPLOAD";class d extends n.u{}d.id="CANCEL_ATTACHMENT_CHANGES";class c extends n.u{constructor(){super()}}c.id="ATTACHMENTS_RESET_DATA";class u extends n.u{constructor(e,t,i){super(),this.payload={open:e,attachments:t,attachmentId:i}}}u.id="TOGGLE_VIEW_ATTACHMENTS";class h extends n.u{constructor(e){super(),this.payload={attachment:e}}}h.id="ATTACHMENT_REMOVE";class m extends n.u{constructor(e){super(),this.payload={id:e}}}m.id="ATTACHMENT_REMOVE_FAILED_UPLOAD";class p extends n.u{constructor(e){super(),this.payload={id:e}}}p.id="ATTACHMENT_DELETE"},3795:(e,t,i)=>{"use strict";var n,s,a,o;i.d(t,{_A:()=>o,d3:()=>s,t2:()=>n,zu:()=>a}),function(e){e.FILE_TOO_LARGE="oversize",e.EMPTY_FILE="empty",e.OVER_QUOTA="overQuota",e.UPLOAD_FAILED="failed",e.PERMISSION_DENIED="permission"}(n||(n={})),function(e){e.EMBED_FAIL="embedFail",e.EMBED_SUCCESS="success"}(s||(s={})),function(e){e.IMAGE="image",e.PDF="pdf",e.VIDEO="video",e.RICH="rich",e.ZIP="zip",e.TEXT="text",e.AUDIO="audio",e.MODEL="model",e.APPLICATION="application"}(a||(a={})),function(e){e.EXTERNAL="external",e.UPLOAD="upload",e.SANDBOX="sandbox"}(o||(o={}))},15684:(e,t,i)=>{"use strict";i.d(t,{Bo:()=>a,LY:()=>s,iS:()=>n});const n=25,s=524288e3,a=["image/gif","image/png","image/jpeg","image/webp","image/bmp"]},87314:(e,t,i)=>{"use strict";i.d(t,{Y:()=>u,g:()=>c});var n=i(10843),s=i(2803),a=i(81587),o=i(3101),r=i(30740),l=i(3795);const d=new n.Ay("external-attachment-deserializer");class c{constructor(){}deserialize(e){if(!e||!this.validate(e))return d.debug("Deserialized invalid external attachment data from MDS",e),null;const t=new r.o;return t.id=e.id,t.created=(0,a.X)(e.created),t.src=e.url||"",t.thumbnailUrl=new s.f(e.thumbnailUrl||"",(0,a.X)(e.validUntil,null)),t.url=new s.f(e.url||"",(0,a.X)(e.validUntil,null)),e.mediaType&&(t.mediaType=(0,o.P4)(e.mediaType)),t.category=l._A.EXTERNAL,e.width&&(t.width=e.width),e.height&&(t.height=e.height),t.parentType=e.parentDetails.type,t.parentId=e.parentDetails.parent.id,t}validate(e){if(!e)return!1;const t=["id","created","modified","mediaType","parentDetails"].filter((t=>!(t in e))),i=0===t.length;return i||d.debug("Attachment invalid:",{missingFields:t}),i}}const u=function(){return new c}},85275:(e,t,i)=>{"use strict";i.d(t,{V:()=>u,x:()=>c});var n=i(10843),s=i(81587),a=i(3101),o=i(30740),r=i(3795),l=i(2803);const d=new n.Ay("file-attachment-deserializer");class c{constructor(){}deserialize(e){if(!e||!this.validate(e))return d.debug("Deserialized invalid file attachment data from MDS",e),null;const t=new o.o;return t.id=e.id,t.created=(0,s.X)(e.created),e.mimeType&&(t.mimeType=e.mimeType,t.mediaType=(0,a.uc)(e.mimeType)),t.category=r._A.UPLOAD,t.downloadUrl=new l.f(e.downloadUrl||"",(0,s.X)(e.validUntil,null)),t.url=new l.f(e.url||"",(0,s.X)(e.validUntil,null)),t.filename=e.filename||"",t.bytes=e.bytes||0,t.width=e.imageWidth||0,t.height=e.imageHeight||0,(0,a.L7)(t)&&(t.thumbnailUrl=t.url),t}validate(e){if(!e)return!1;return["id","created","url","mimeType","filename"].every((t=>t in e))}}const u=function(){return new c}},3101:(e,t,i)=>{"use strict";i.d(t,{L7:()=>o,P4:()=>u,X6:()=>m,c9:()=>l,ft:()=>h,rV:()=>r,rg:()=>d,uc:()=>c});var n=i(3795),s=i(15684),a=i(74381);function o(e){return e.category===n._A.EXTERNAL?e.mediaType===n.zu.IMAGE:!!e.mimeType&&s.Bo.includes(e.mimeType)}function r(e){return e.category===n._A.EXTERNAL||e.category===n._A.SANDBOX||!!e.mimeType&&s.Bo.includes(e.mimeType)}function l(e){return e.filter((e=>r(e)))}function d(e){return e.filter((e=>!r(e)))}function c(e){return e.startsWith("image")?n.zu.IMAGE:e.startsWith("video")?n.zu.VIDEO:e.startsWith("audio")?n.zu.AUDIO:e.startsWith("model")?n.zu.MODEL:e.startsWith("text")?n.zu.TEXT:"application/pdf"===e?n.zu.PDF:n.zu.APPLICATION}function u(e){switch(e){case a.I$.IMAGE:return n.zu.IMAGE;case a.I$.PDF:return n.zu.PDF;case a.I$.VIDEO:return n.zu.VIDEO;case a.I$.RICH:return n.zu.RICH;case a.I$.ZIP:return n.zu.ZIP;default:throw Error(`Unknown attachment media type ${e}`)}}function h(e){switch(e){case n.zu.IMAGE:return a.I$.IMAGE;case n.zu.PDF:return a.I$.PDF;case n.zu.VIDEO:return a.I$.VIDEO;case n.zu.RICH:return a.I$.RICH;case n.zu.ZIP:return a.I$.ZIP;default:throw Error(`Unknown media type ${e}`)}}function m(e){if(!e)return"0";const t=Math.min(Math.floor(Math.log(e)/Math.log(1e3)),3),i=["B","kB","MB","GB"][t];return`${Number((e/Math.pow(1e3,t)).toFixed(1))}${i}`}},28995:(e,t,i)=>{"use strict";i.d(t,{J:()=>p});var n=i(12767),s=i(40397),a=i(68909),o=i(85616),r=i(81662),l=i(53172),d=i(52885),c=i(94814),u=i(19968),h=i(31036),m=i(62568);class p extends o.v{constructor(e){super(),this.position=new a.Vector3,this.rotation=new a.Quaternion,this.focalDistance=-1,this._autoOrthoApplied=!1,this._shouldAutoOrtho=!1,this._frustum=new a.Frustum,this.fovCorrectedPosition=(()=>{const e=new a.Vector3;return()=>(e.copy(r.B1.FORWARD).applyQuaternion(this.rotation).multiplyScalar(this.fovCorrectionOffset()).add(this.position),e)})(),this.fovCorrectionOffsetVec=(()=>{const e=new a.Vector3;return()=>(e.copy(r.B1.FORWARD).applyQuaternion(this.rotation).multiplyScalar(-this.fovCorrectionOffset()),e)})(),this.focalPoint=(()=>{const e=new a.Vector3,t=new a.Vector3;return()=>(e.copy(r.B1.FORWARD).applyQuaternion(this.rotation).multiplyScalar(this.focalDistance),t.copy(this.position).add(e),t)})(),this.forward=(()=>{const e=new a.Vector3;return()=>(e.copy(r.B1.FORWARD).applyQuaternion(this.rotation),e)})(),this.pitchFactor=(()=>{const e=(0,c.Bo)(.6,0,.88,.5);return()=>{const t=(0,l.H)(this.phi()),i=(0,l.H)(m.oO),n=Math.max((t-i)/(90-i),0),s=e(n),a=1-s,o=1-Math.round(s);return Math.abs(a-o)<=.001?o:a}})(),this.projection=(0,n.hn)(e),this.isPitchFactorOrtho=new h.r((()=>(0,u.aY)(this.pitchFactor())),[this.onChanged.bind(this)]),this.isProjectionOrtho=new h.r((()=>(0,s.Gp)(this.projection)),[this.onChanged.bind(this)]),this.worldspaceFrustum=new h.r((()=>(0,u.tF)(this,this._frustum)),[this.onChanged.bind(this)]),this.isPitchFactorTransitionActive=new h.r((()=>{const e=Math.abs(this.pitchFactor());return e>0&&e<1}),[this.onChanged.bind(this)])}setAutoOrtho(e){this._shouldAutoOrtho=e}get autoOrtho(){return this._shouldAutoOrtho}get autoOrthoApplied(){return this._autoOrthoApplied}fovCorrectedFocalDistance(){return this.focalDistance/this.fovDistanceScale()}fovCorrectionOffset(){return this.focalDistance-this.fovCorrectedFocalDistance()}aspect(){return this.projection.elements[5]/this.projection.elements[0]}halfHeight(){return this.fovCorrectedFocalDistance()*Math.tan((0,l.pu)(n.Bv.fov/2))}fovDistanceScale(e){const{minFov:t}=n.Bv,i=null!=e?Math.max(e,t):this.isOrtho()?t:(0,l.H)(this.fovY());return Math.tan((0,l.pu)(n.Bv.fov/2))/Math.tan((0,l.pu)(i)/2)}phi(){return(0,u.rC)(this.rotation)}clone(e=new p(this.aspect())){return e.position.copy(this.position),e.rotation.copy(this.rotation),e.focalDistance=this.focalDistance,e.projection.copy(this.projection),e._autoOrthoApplied=this.autoOrthoApplied,e._shouldAutoOrtho=this.autoOrtho,e}applyPhiBasedFovSquish(){if(!this._shouldAutoOrtho)return;const e=(0,d.C)(0,n.Bv.fov,this.pitchFactor()),t=this.aspect(),i=this.fovCorrectedFocalDistance()*this.fovDistanceScale(e),{near:s,far:a}=(0,n.Li)(i);if(e>n.Bv.minFov)this.projection.makePerspectiveFov(e,t,s,a);else{const e=this.halfHeight(),t=this.aspect()*e;this.projection.makeOrthographic(-t,t,e,-e,s,a)}this.focalDistance=i,this.position.add(this.fovCorrectionOffsetVec()),this._autoOrthoApplied=!0}unapplyPhiBasedFovSquish(){if(!this._autoOrthoApplied)return;const e=this.fovCorrectedPosition().clone(),t=this.fovCorrectedFocalDistance();this.position.copy(e),this.focalDistance=t,this.resetProjMatrix(),this._autoOrthoApplied=!1}copy(e){return this.position.copy(e.position),this.rotation.copy(e.rotation),this.focalDistance=e.focalDistance,this.projection.copy(e.projection),this._autoOrthoApplied=e.autoOrthoApplied,this._shouldAutoOrtho=e.autoOrtho,this.commit(),this}isOrtho(){return(0,s.Gp)(this.projection)}fovX(){return 2*Math.atan(1*this.aspect()/this.projection.elements[5])}fovY(){return 2*Math.atan(1/this.projection.elements[5])}resetProjMatrix(){this.projection.makePerspectiveFov(n.Bv.fov,this.aspect(),n.Bv.near,n.Bv.far)}}},20599:(e,t,i)=>{"use strict";i.d(t,{M:()=>O,q:()=>E});var n=i(12767),s=i(84710);const a=(e,t)=>e&&t?e.equals(t):e===t;var o=i(40397),r=i(46771),l=i(53172),d=i(28995),c=i(13893),u=i(92237),h=i(68909),m=i(85616);class p extends m.v{constructor(){super(...arguments),this.startTime=0,this.duration=0,this.active=!1,this.autoOrtho=!1,this.type=null,this.progress=new u.z(0),this.blackoutProgress=new u.z(0),this.from={position:new h.Vector3,rotation:new h.Quaternion,projection:new r.k},this.to={position:new h.Vector3,rotation:new h.Quaternion,projection:new r.k},this.rotationDelay=0,this.rotationDuration=1,this.matrixDelay=0,this.matrixDuration=1,this.activeInternal=!1,this.promise=null,this.orbitTarget=null,this.orbitStartPhi=0,this.orbitStartDistance=0,this.instantOrbit=!1,this.fadeToBlackSubType=c.pw.Full}}const E=(e,t,i=!0)=>{t.position=S(e.position,t.position,i),t.rotation=S(e.rotation,t.rotation,i),t.projection=S(e.projection,t.projection,i),t.focalDistance=e.focalDistance},S=(e,t,i=!0)=>(e&&!t?t=e.clone():e&&t?t.copy(e):i&&(t=void 0),t);class O extends s.B{constructor(e,t){super(),this._width=e,this._height=t,this.name="camera",this._baseProjection=new r.k,this._orthoMatrix=new r.k,this._lastOrthoZoom=1,this._perspectiveMatrix=new r.k,this._metersPerPx=null,this.pose=new d.J(e/t),this.transition=new p,this.setCameraDimensions(e,t),this._baseFovY=l.fy*n.Bv.fov,this.pose.onChanged((()=>this._metersPerPx=null))}setCameraDimensions(e,t){if(isNaN(e)||0===e||isNaN(t)||0===t)return;this._width=e,this._height=t,this._metersPerPx=null;const i=e/t,{near:s,far:a}=(0,n.Li)(this.pose.focalDistance),r=this.isOrtho()?(0,n.Ei)(e,t,t/(2*this.orthoZoom()),1,s,a,this._orthoMatrix):this._perspectiveMatrix.makePerspectiveFov(l.tm*this.fovY(),i,s,a);if(this.pose.projection.copy(r),this.transition.active&&this.transition.to.projection)if((0,o.Gp)(this.transition.to.projection)){const i=(0,o.BN)(this.transition.to.projection);this.transition.to.projection.copy((0,n.Ei)(e,t,t/(2*i),1))}else{const e=2*l.tm*Math.atan(1/this.transition.to.projection.elements[5]);this.transition.to.projection.makePerspectiveFov(e,i,n.Bv.near,n.Bv.far)}this.pose.commit()}setAutoOrtho(e){e!==this.pose.autoOrtho&&(this.pose.setAutoOrtho(e),e?this.pose.applyPhiBasedFovSquish():this.pose.unapplyPhiBasedFovSquish(),this.pose.commit())}setBaseProjection(e){this._baseProjection=e}get width(){return this._width}get height(){return this._height}get screenDiagonalPx(){return Math.sqrt(this.width*this.width+this.height*this.height)}get baseFovY(){return this._baseFovY}aspect(){return this.pose.aspect()}fovY(){return this.pose.fovY()}fovX(){return this.pose.fovX()}isOrtho(){return this.pose.isOrtho()}baseZoom(){return this.pose.projection.elements[0]/2}defaultZoom(){return(0,o.Gp)(this._baseProjection)?(0,o.BN)(this._baseProjection):this.perspectiveZoom()}zoom(){return this.isOrtho()?this.orthoZoom():this.perspectiveZoom()}orthoZoom(){const e=(0,o.BN)(this.pose.projection);return isNaN(e)?this._lastOrthoZoom:(this._lastOrthoZoom=e,e)}perspectiveZoom(){return this.baseFovY/this.fovY()}metersPerPx(){return null==this._metersPerPx?(this._metersPerPx=(0,o.ff)(this.pose.focalDistance,this.pose.projection.asThreeMatrix4(),this.width),this._metersPerPx):this._metersPerPx}copyTransition(e){this.transition.active=e.active,this.transition.activeInternal=e.activeInternal,this.transition.type=e.type,this.transition.startTime=e.startTime,this.transition.duration=e.duration,this.transition.rotationDelay=e.rotationDelay,this.transition.rotationDuration=e.rotationDuration,this.transition.matrixDelay=e.matrixDelay,this.transition.matrixDuration=e.matrixDuration,this.transition.fadeToBlackSubType=e.fadeToBlackSubType,e.progress&&this.transition.progress.copy(e.progress),e.blackoutProgress&&this.transition.blackoutProgress.copy(e.blackoutProgress),e.from&&E(e.from,this.transition.from),e.to&&E(e.to,this.transition.to),this.transition.promise=e.promise}canTransition(){return!this.transition.active}clone(){const e=new O(this.width,this.height);return e.copy(this),e}copy(e){this.pose.copy(e.pose),this.pose.commit(),this._baseFovY=e.baseFovY,this.copyTransition(e.transition),this.transition.commit(),this._width=e.width,this._height=e.height}shallowIsEqual(e){return this.pose.position.equals(e.pose.position)&&this.pose.rotation.equals(e.pose.rotation)&&this.pose.projection.equals(e.pose.projection)&&this.pose.focalDistance===e.pose.focalDistance&&this.baseFovY===e.baseFovY}isEqual(e){return this.shallowIsEqual(e)&&this.transitionIsEqual(e.transition)}transitionIsEqual(e){return this.transition.active===e.active&&this.transition.type===e.type&&this.transition.progress.equals(e.progress)&&this.transition.blackoutProgress.equals(e.blackoutProgress)&&this.transition.rotationDelay===e.rotationDelay&&this.transition.rotationDuration===e.rotationDuration&&this.transition.matrixDelay===e.matrixDelay&&this.transition.matrixDuration===e.matrixDuration&&this.transition.activeInternal===e.activeInternal&&a(this.transition.from.position,e.from.position)&&a(this.transition.from.rotation,e.from.rotation)&&a(this.transition.from.projection,e.from.projection)&&a(this.transition.to.position,e.to.position)&&a(this.transition.to.rotation,e.to.rotation)&&a(this.transition.to.projection,e.to.projection)&&this.transition.startTime===e.startTime&&this.transition.duration===e.duration}}},12767:(e,t,i)=>{"use strict";i.d(t,{Bv:()=>s,Ei:()=>r,Li:()=>a,hn:()=>o});var n=i(46771);const s={fov:75,near:.1,far:3e3,minFov:1},a=e=>{const t=s.far-s.near,i=Math.max(s.near,e-t/2);return{near:i,far:i+t}},o=(e,t)=>(t||(t=new n.k),t.makePerspectiveFov(s.fov,e,s.near,s.far)),r=(e,t,i=1,a=1,o=s.near,r=s.far,l)=>{l||(l=new n.k);const d=e/2,c=t/2,u=l.makeOrthographic(-d,d,c,-c,o*a,r*a);return u.elements[0]*=i,u.elements[5]*=i,u}},642:(e,t,i)=>{"use strict";i.d(t,{R:()=>a});var n=i(71555),s=i(20599);const a=(0,n.v)(s.M)},94609:(e,t,i)=>{"use strict";i.d(t,{I:()=>a});var n=i(96540),s=i(642);function a(){const e=(0,s.R)(),[t,i]=(0,n.useState)(e?e.pose.pitchFactor():1);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.onChanged((()=>{i(e.pose.pitchFactor())}));return i(e.pose.pitchFactor()),()=>{t.cancel()}}),[e]),t}},13893:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{fl:()=>n,mG:()=>a,pw:()=>s}),function(e){e[e.Instant=0]="Instant",e[e.FadeToBlack=1]="FadeToBlack",e[e.Interpolate=2]="Interpolate",e[e.MoveToBlack=3]="MoveToBlack",e[e.OrbitTo=4]="OrbitTo"}(n||(n={})),function(e){e[e.Full=0]="Full",e[e.ClearToBlack=1]="ClearToBlack",e[e.BlackToClear=2]="BlackToClear"}(s||(s={})),function(e){e[e.Top=1]="Top",e[e.Bottom=2]="Bottom"}(a||(a={}))},62568:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>o,oO:()=>d,xl:()=>r});var n=i(44351),s=i(13893),a=i(53172);const o=Object.freeze({camera:{transitionBlackoutTime:300,transitionFadeTime:800,baseTransitionTime:200,transitionSpeed:3,autoOrbitMinVelocity:.002,autoOrbitMaxVelocity:.08,autoOrbitTransitionTIme:1e3,autoOrbitLowerPhiLimit:30*a.fy,autoOrbitUpperPhiLimit:90*a.fy}});function r(e){return e in l?l[e]:s.fl.FadeToBlack}const l={[n.o.Desktop]:s.fl.Interpolate,[n.o.Mobile]:s.fl.Interpolate,[n.o.VrOrientOnly]:s.fl.FadeToBlack,[n.o.VrWithController]:s.fl.FadeToBlack,[n.o.VrWithTrackedController]:s.fl.FadeToBlack,[n.o.VrTransientPointer]:s.fl.FadeToBlack,[n.o.VrUnknown]:s.fl.FadeToBlack},d=75*a.fy},19968:(e,t,i)=>{"use strict";i.d(t,{Ft:()=>S,OG:()=>E,aY:()=>g,bA:()=>u,bz:()=>c,jn:()=>h,n4:()=>A,rC:()=>T,tF:()=>_,wc:()=>p,zH:()=>O});var n=i(68909),s=i(81662),a=i(28995),o=i(3249),r=i(52885),l=i(62568),d=i(13893);const c=(()=>{const e=new n.Matrix4,t=new n.Matrix4;return(i,s,a,o)=>(a=a||new n.Vector2,o=o||new n.Vector3,m(i.pose,t),e.copy(t),e.invert(),o.set(s.x,s.y,s.z).applyMatrix4(e).applyMatrix4(i.pose.projection.asThreeMatrix4()),O(i.width,i.height,o,a),{screenPosition:a,ndcPosition:o})})(),u=(()=>{const e=new n.Vector3,t=new n.Vector2;return(i,n,s,a,o,r)=>(e.copy(h(i,n,s,r)),O(a,o,e,t),t)})(),h=(()=>{const e=new n.Matrix4,t=new n.Matrix4,i=new n.Vector3;return(n,a,o,r)=>(e.compose(a,o,s.B1.UNIT),t.copy(e),t.invert(),i.copy(n).applyMatrix4(t).applyMatrix4(r),i)})(),m=(e,t)=>(t=t||new n.Matrix4).compose(e.position,e.rotation,s.B1.UNIT),p=(e,t,i,s,a)=>((a=a||new n.Vector2).x=e/i*2-1,a.y=-t/s*2+1,a),E=(e,t,i=.5,s)=>((s=s||new n.Vector3).x=t.x,s.y=t.y,s.z=i,S(e.pose,s)),S=(()=>{const e=new n.Matrix4,t=new n.Matrix4;return(i,s,a)=>((a=a||new n.Vector3).copy(s),t.copy(i.projection.asThreeMatrix4()),t.invert(),m(i,e),a.applyMatrix4(t).applyMatrix4(e))})(),O=(e,t,i,s)=>((s=s||new n.Vector2).set((i.x+1)*e/2,(1-i.y)*t/2),s),g=e=>Math.abs(e)<.1,T=(()=>{const e=new n.Vector3,t=new n.Vector3,i=new n.Vector3;return n=>{e.copy(s.B1.FORWARD).applyQuaternion(n).multiplyScalar(-1),t.copy(s.B1.UP).applyQuaternion(n);const a=t.dot(s.B1.UP)<=0;i.set(e.x,0,e.z);const o=a?-i.length():i.length(),r=e.y;return Math.atan2(r,o)}})(),_=(()=>{const e=new n.Vector3(-1,-1,-1),t=new n.Vector3,i=new n.Vector3(1,-1,-1),s=new n.Vector3,a=new n.Vector3(1,1,-1),o=new n.Vector3,r=new n.Vector3(-1,1,-1),l=new n.Vector3,d=new n.Vector3(-1,-1,1),c=new n.Vector3,u=new n.Vector3(1,-1,1),h=new n.Vector3,p=new n.Vector3(1,1,1),E=new n.Vector3,S=new n.Vector3(-1,1,1),O=new n.Vector3,g=new n.Matrix4,T=new n.Matrix4;return(_,A)=>(A=A||new n.Frustum,T.copy(_.projection.asThreeMatrix4()),T.invert(),m(_,g),t.copy(e),t.applyMatrix4(T).applyMatrix4(g),s.copy(i),s.applyMatrix4(T).applyMatrix4(g),o.copy(a),o.applyMatrix4(T).applyMatrix4(g),l.copy(r),l.applyMatrix4(T).applyMatrix4(g),c.copy(d),c.applyMatrix4(T).applyMatrix4(g),h.copy(u),h.applyMatrix4(T).applyMatrix4(g),E.copy(p),E.applyMatrix4(T).applyMatrix4(g),O.copy(S),O.applyMatrix4(T).applyMatrix4(g),A.planes[0].setFromCoplanarPoints(t,l,o),A.planes[1].setFromCoplanarPoints(c,h,E),A.planes[2].setFromCoplanarPoints(t,c,O),A.planes[3].setFromCoplanarPoints(t,s,h),A.planes[4].setFromCoplanarPoints(s,o,E),A.planes[5].setFromCoplanarPoints(o,l,O),A)})(),A=(()=>{const e=new n.Vector3,t=new n.Vector3,i=new n.Quaternion,r=new n.Vector3,c=new n.Quaternion;let u=null;return(n,h,m,p,E,S)=>{null==u&&(u=new a.J(1));const O=l.Ay.camera.autoOrbitUpperPhiLimit,g=l.Ay.camera.autoOrbitLowerPhiLimit,_=n;u.copy(_),u.unapplyPhiBasedFovSquish();const A=_.phi(),I=g-A,L=O-A,f=h===d.mG.Top?L:I,b=E?f:v(A,m,h),R=(0,o.qE)(b,I,L),y=O-A<1e-10,M=A-g<1e-10;if(h===d.mG.Top?y:M)return 1;const D=p;e.copy(s.B1.FORWARD).applyQuaternion(_.rotation),e.setLength(D),e.addVectors(_.fovCorrectedPosition(),e),t.copy(s.B1.RIGHT),i.setFromAxisAngle(t.applyQuaternion(_.rotation),-R),r.copy(_.fovCorrectedPosition()).sub(e).applyQuaternion(i),c.copy(_.rotation).premultiply(i),r.add(e),c.normalize(),T(c)>=O&&N(c),u.position.copy(r),u.rotation.copy(c),u.focalDistance=D,u.applyPhiBasedFovSquish(),S.copy(u);const P=h===d.mG.Top?O:g,k=Math.abs((S.phi()-m)/(P-m));return(0,o.qE)(k,0,1)}})(),v=(e,t,i)=>{const n=i===d.mG.Top?1:-1,s=i===d.mG.Top?l.Ay.camera.autoOrbitUpperPhiLimit:l.Ay.camera.autoOrbitLowerPhiLimit,a=Math.abs((s-e)/(s-t));return n*(0,r.C)(l.Ay.camera.autoOrbitMinVelocity,l.Ay.camera.autoOrbitMaxVelocity,a)*2},N=(()=>{const e=s.B1.RIGHT.clone(),t=s.B1.UP.clone(),i=s.B1.BACK.clone(),a=new n.Matrix4;return n=>{e.copy(s.B1.RIGHT),t.copy(s.B1.UP),i.copy(s.B1.BACK),e.applyQuaternion(n),e.y=0,t.applyQuaternion(n),t.y=0,i.applyQuaternion(n),i.x=0,i.y=1,i.z=0,a.makeBasis(e,t,i),n.setFromRotationMatrix(a)}})()},26482:(e,t,i)=>{"use strict";i.d(t,{G:()=>a,n:()=>o});var n=i(2993),s=i(84710);class a extends s.B{constructor(e,t,i){super(),this.name="cam-start",this.moveCameraOnViewChange=!0,this.icon=e,this.thumb=t,this.pose=new o,i&&this.pose.copy(i)}copy(e,t=!1){var i;return this.icon=e.icon,t?e.thumb&&(null===(i=this.thumb)||void 0===i||i.refreshFrom(e.thumb)):this.thumb=e.thumb,this.pose.copy(e.pose),this}getStartingPose(){return this.deepLinkPose||this.pose}get hasCameraPose(){return this.pose&&this.pose.camera&&void 0!==this.pose.camera.position}}class o{constructor(e=n.N3.Panorama,t,i,s,a,o){this.mode=e,this.camera={position:t||void 0,rotation:i||void 0,zoom:s||void 0},this.pano=a||{uuid:void 0},this.floorVisibility=o||void 0}copy(e){return this.camera.position=r(e.camera.position,this.camera.position),this.camera.rotation=r(e.camera.rotation,this.camera.rotation),this.camera.zoom=e.camera.zoom,this.pano.uuid=e.pano.uuid?e.pano.uuid.slice():void 0,this.mode=e.mode,this.floorVisibility=e.floorVisibility?e.floorVisibility.slice():void 0,this}}const r=(e,t)=>e&&t?t.copy(e):e&&!t?e.clone():void 0},74328:(e,t,i)=>{"use strict";i.d(t,{s:()=>h});var n=i(68909),s=i(2993),a=i(75778),o=i(10843),r=i(86866),l=i(44455),d=i(97696);const c=new o.Ay("navurl");class u extends Error{constructor(e,t){super(`view mode ${e} is invalid${t?` when ${t}`:""}`)}}class h{static encodeVector3(e,t=2){const{x:i,y:n,z:s}=e;return h.packFloats([i,n,s],t)}static decodeVector3(e){const t=h.unpackFloats(e,3);return t?new n.Vector3(...t):null}static encodeQuaternion(e,t=2){return h.packFloats([e.x,e.y,e.z,e.w],t)}static decodeQuaternion(e){const t=h.unpackFloats(e,4);return t&&!(0,l.PH)(t)?new n.Quaternion(...t):null}static encodeEuler(e,t=2){return h.packFloats([e.x,e.y,e.z],t)}static decodeEuler(e){const t=h.unpackFloats(e,3);return t?new n.Euler(t[0],t[1],t[2],"XYZ"):void 0}static packFloats(e,t=2){let i=e.map((e=>{const i=parseFloat(e.toFixed(t)).toString().replace(/^(\-)?0+.(\d+)/,"$1.$2");return"0"===i?"":i})).join(",");return i=i.replace(/,+$/,""),i}static unpackFloats(e,t=0){const i=e.split(",").map((e=>""===e?0:parseFloat(e)));if(!i||i.includes(NaN))return[];for(;i.length1&&(l.sf=r),a===s.N3.Floorplan&&(l.sz=parseFloat(e.zoom().toFixed(2)))}return l.sq=h.encodeQuaternion(e.pose.rotation),c.debug(`Short URL params for current location ${JSON.stringify(l)}`),delete l.sq,l}static getStartPose({cameraData:e,viewmodeData:t,floorsViewData:i,sweepData:n}){const a={x:0,y:0,z:0,w:1};a.x=e.pose.rotation.x,a.y=e.pose.rotation.y,a.z=e.pose.rotation.z,a.w=e.pose.rotation.w;const{position:o,viewmode:r}=(0,d.nF)(e,i,t),l={x:0,y:0,z:0};l.x=o.x,l.y=o.y,l.z=o.z;const c={camera_mode:h.validateViewmode(r),camera_position:l,camera_quaternion:a};return t.isInside()?c.scan_id=n.currentSweep:c.floor_visibility=i.getFloorsVisibility(),r===s.N3.Floorplan&&(c.ortho_zoom=e.zoom()),c}static parseViewmode(e){let t=h.DEFAULT_VIEW_MODE;return null!=e&&(t=parseInt(e,10)),h.validateViewmode(t)}static validateViewmode(e){if(null===e||!h.VALID_URL_VIEW_MODES.includes(e))throw new u(e);return e}}h.DEFAULT_VIEW_MODE=s.N3.Panorama,h.VALID_URL_VIEW_MODES=[s.N3.Panorama,s.N3.Dollhouse,s.N3.Floorplan,s.N3.Outdoor,s.N3.Mesh]},31561:(e,t,i)=>{"use strict";i.d(t,{f:()=>s,y:()=>a});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={snapshotSid:e}}}s.id="SET_CAMERA_START";class a extends n.u{constructor(e){super(),this.payload={moveCamera:e}}}a.id="SET_MOVE_CAMERA_ON_VIEW_CHANGE"},78711:(e,t,i)=>{"use strict";i.d(t,{X:()=>o,d:()=>a});var n=i(2993);const s=new(i(10843).Ay)("camera-start-util");function a(e,t){const{mode:i,quaternion:n,position:a,floorVisibility:o,sweepIndex:r,zoom:l}=e;let{panoId:d}=e;if(d&&!t.containsSweep(d)){const e=t.getSweepByUuid(d);e&&(d=e.id)}if(!d&&void 0!==r){const e=t.getSweepByIndex(r);e?d=e.id:s.debug(`Failed to load sweep index ${r}`)}return{mode:i,camera:{position:a,rotation:n,zoom:l},pano:{uuid:d},floorVisibility:o}}function o(e,t){return!!e&&(!(0,n.nI)(e.mode)||!!e.pano.uuid&&t.containsSweep(e.pano.uuid))}},37105:(e,t,i)=>{"use strict";i.d(t,{p:()=>s});var n=i(84710);class s extends n.B{constructor(e,t,i){super(),this.name="canvas",this.x=0,this.y=0,this.width=e||0,this.height=t||0,this.canvas=i||null}get aspectRatio(){const e=this.width/this.height;return isFinite(e)?e:1}}},58480:(e,t,i)=>{"use strict";i.d(t,{G:()=>o});var n=i(84710),s=i(44879),a=i(95330);class o extends n.B{get size(){return this.sizeObservable.value}set size(e){this.sizeObservable.value=e}constructor(e){super(),this.name="container",this.sizeObservable=new a.L({width:0,height:0}),this.orientation=s.U.LANDSCAPE,this.element=e,this.mainElement=e.querySelector("main")||e,this.rootNode=e.getRootNode()}onPropertyChanged(e,t){return"size"===e?this.sizeObservable.onChanged(t):super.onPropertyChanged(e,t)}}},78197:(e,t,i)=>{"use strict";i.d(t,{A:()=>r,B:()=>l});var n=i(87805),s=i(58480),a=i(61260);const o={width:0,height:0};function r(e){return(0,n.Z)(s.G,"size",e||o)}const l=(0,a.c)("containerSize",r)},19072:(e,t,i)=>{"use strict";i.d(t,{x:()=>a});var n=i(77570),s=i(96540);function a(){return(0,s.useContext)(n.B).mainDiv}},44879:(e,t,i)=>{"use strict";var n;i.d(t,{U:()=>n}),function(e){e[e.PORTRAIT=1]="PORTRAIT",e[e.LANDSCAPE=2]="LANDSCAPE"}(n||(n={}))},87419:(e,t,i)=>{"use strict";i.d(t,{NT:()=>s,bx:()=>a,cB:()=>n});const n="features/auto-defurnish",s="spaces.bundles.mp.defurnish";const a="overlayViews"},83108:(e,t,i)=>{"use strict";i.d(t,{Y:()=>N});var n=i(74848),s=i(96540),a=i(95541),o=i(8387),r=i(56547),l=i(4717),d=i(56147),c=i(39869),u=i(67246),h=i(16263),m=i(87965),p=i(33177),E=i(56810),S=i(88581);var O=i(46793),g=i(77973),T=i(38731),_=i(90087),A=i(68375);const{DEFURNISH:v}=d.A.WORKSHOP;function N({viewmode:e}){const t=(0,T.B)(),i=(0,A.s)(),d=(0,_.L)(),N=(0,c.Y)(),I=(0,h.s)("viewer"),L=(0,a.H)(),f=(0,u.L)(),b=(0,l.G)(),R=!!b&&(0,r.AF)(b),y=function(){const e=(0,S.o)(),[t,i]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{if(!e)return()=>{};const t=e.viewmodeChangeEnabledObservable.onChanged(i);return i(e.viewmodeChangeEnabled),()=>t.cancel()}),[e]),t}(),{show:M,dismiss:D}=(0,p.F)(p.m.Defurnish),P=(0,s.useCallback)((async()=>{i.trackGuiEvent("click_defurnish_mode_button"),await d.issueCommand(new g.zH)}),[i,d]);if(!I||!f)return null;const k=L&&t,w=!(null==f?void 0:f.enabled)||!y||e===O.w5.TRANSITIONING,C=R,x=C?"furniture":"furniture-slash",H=k&&C?void 0:o.Ak.TERTIARY,U=k&&C?"light":"overlay",G=k?o.Mp.LARGE:void 0,F={placement:k?"bottom":"top",offset:k?[0,10]:void 0},j=C?N.t(v.DEFURN_MODE_BUTTON_ACTIVE):N.t(v.DEFURN_MODE_BUTTON),V=N.t(v.DEFURN_NUDGE_TITLE),B=N.t(v.DEFURN_NUDGE_TEXT);return(0,n.jsx)("div",Object.assign({className:"mode-button mode-buttons mode-defurnish viewmode-controls"},{children:(0,n.jsx)(E.Q,{onClick:P,className:"mode-defurnish-glow",icon:x,variant:H,theme:U,size:G,active:C,disabled:w,tooltip:j,ariaLabel:j,nudgeDisabled:w,nudgeTitle:V,nudgeMessage:B,nudgeLocalStorage:m.Y.DefurnishNudgeSeen,nudgeSessionKey:B,tooltipOptions:F,showTimeout:M,dismissTimeout:D})}))}},67246:(e,t,i)=>{"use strict";i.d(t,{L:()=>o});var n=i(56547),s=i(92996),a=i(38731);function o(){const e=(0,a.B)(),t=(0,s.h)({includeDefurnish:!0,editMode:e}).filter((e=>(0,n.AF)(e)))||[];return t.sort(((e,t)=>t.created.getTime()-e.created.getTime())),t[0]}},27394:(e,t,i)=>{"use strict";i.d(t,{m:()=>a});var n=i(84710),s=i(31093);class a extends n.B{constructor(){super(...arguments),this.name="dollhouse-control-data",this.autoOrbitPromise=null,this._autoOrbitTarget="top"}get isAutoOrbitting(){return null!==this.autoOrbitPromise}get autoOrbitTarget(){return this._autoOrbitTarget}get targetState(){return this.isAutoOrbitting?this.autoOrbitTarget:null}startAutoOrbit(e="top"){return this._autoOrbitTarget=e,this.autoOrbitPromise=new s.i,this.commit(),this.autoOrbitPromise.nativePromise()}stopAutoOrbit(){const e=this.autoOrbitPromise;this.autoOrbitPromise=null,this.commit(),null==e||e.resolve()}}},78649:(e,t,i)=>{"use strict";i.d(t,{i:()=>s});var n=i(89103);class s extends n.QB{}},30101:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload=Object.assign({},e)}}s.id="GET_FLOOR_INTERSECT"},51313:(e,t,i)=>{"use strict";i.d(t,{P:()=>s});var n=i(89103);class s extends n.QB{constructor(e,t){super(),this.floorId=e,this.floorName=t}}},89928:(e,t,i)=>{"use strict";i.d(t,{G:()=>s});var n=i(89103);class s extends n.QB{constructor(e,t){super(),this.from=e,this.to=t}}},58229:(e,t,i)=>{"use strict";i.d(t,{q:()=>r});var n=i(84710),s=i(3066),a=i(56413),o=i(79875);class r extends n.B{constructor(e){super(),this.name="floors",this.floors=(0,a.y)(e)}onNameChange(e){let t=[];return(0,s.Sh)((()=>{this.getOrderedValues().forEach(((i,n)=>{t.push(i.onPropertyChanged("name",e))}))}),(()=>{t.forEach((e=>e.cancel())),t=[]}),!0)}addFloor(e){this.floors.set(e.id,e)}getFloor(e){if(!this.floors.has(e))throw new o.v;return this.floors.get(e)}hasFloor(e){return this.floors.has(e)}getFloorAtIndex(e){return this.floors.values.find((t=>t.index===e))}getFloorByMeshGroup(e){return this.floors.values.find((t=>t.meshGroup===e))}getFloorCount(){return this.floors.length}getCollection(){return this.floors}iterate(e){return this.getOrderedValues().forEach(e)}getTopFloor(){const e=this.getOrderedValues();if(!e.length)throw new o.v("Cannot get top floor, model has no floors");return e[e.length-1]}getBottomFloor(){const e=this.getOrderedValues();if(!e.length)throw new o.v("Cannot get bottom floor, model has no floors");return e[0]}getFloorAtHeight(e,t=!1){const i=this.getOrderedValues();t&&i.reverse();for(const t of i){const i=t.boundingBox;if(i.min.y<=e&&e<=i.max.y)return t}const n=this.getBottomFloor();return es&&(i=s,t=n)}return t}rename(e,t){if(!this.floors.has(e))return;const i=this.floors.get(e);i.name=t,i.commit()}getOrderedValues(){return this.floors.values.sort(((e,t)=>e.index-t.index))}getFloorIdMap(e){const t={};for(const i of this.floors.values)e?t[String(i.index)]=i.id:t[i.id]=String(i.index);return t}}},79875:(e,t,i)=>{"use strict";i.d(t,{v:()=>s});var n=i(52018);class s extends n.t{constructor(e="Invalid Floor"){super(e),this.name="InvalidFloorException"}}},39209:(e,t,i)=>{"use strict";i.d(t,{X:()=>g});var n=i(92237),s=i(84710),a=i(56147),o=i(95330),r=i(50018),l=i(85616);class d extends l.v{constructor(){super(...arguments),this.hidden=!1,this.navigable=!0,this.hasEnabledAlignedSweeps=!1,this.hasEnabledUnalignedSweeps=!1}}var c=i(56413),u=i(12554),h=i(27947);class m{constructor(e,t,i,n,s){this.floors=e,this.viewmodeData=t,this.sweepData=i,this.applicationData=n,this.currentFloorObservable=s,this.bindings=[],this.states=new c.E,this._navigableFloorIds=new u.X,this.hasEnabledAlignedSweeps=!1,this.updateFloorSweepData=()=>{const e=this.sweepData;this.isEditMode()||(this.states.values.forEach((e=>{e.hasEnabledAlignedSweeps=!1,e.hasEnabledUnalignedSweeps=!1})),e.iterate((e=>{if(null!==e.floorId){let t=this.getState(e.floorId);t||(t=this.initializeFloorState(e.floorId)),e.alignmentType===r.c$.ALIGNED?t.hasEnabledAlignedSweeps||(t.hasEnabledAlignedSweeps=e.enabled):t.hasEnabledUnalignedSweeps||(t.hasEnabledUnalignedSweeps=e.enabled),t.commit(),this.hasEnabledAlignedSweeps||(this.hasEnabledAlignedSweeps=e.enabled)}}))),this.updateNavigable()},this.updateHidden=()=>{const e=!this.currentFloorId,t=this.isViewingAlignedPano();this.states.keys.forEach((i=>{const n=!!i&&i===this.currentFloorId,s=this.getState(i);s.hidden=!(e||n||t),s.commit()}))},this.updateNavigable=()=>{const e=this.isEditMode(),t=this.isViewingAlignedPano(),i=this.viewmodeData.isDollhouse()||this.viewmodeData.isFloorplan();this.states.keys.forEach((n=>{const s=this.getState(n);s.navigable=!!e||(t?s.hasEnabledAlignedSweeps:!!i||(s.hasEnabledAlignedSweeps||s.hasEnabledUnalignedSweeps)),s.commit()}));const n=[];this.floors.iterate((e=>{this.getState(e.id).navigable&&n.push(e.id)})),this._navigableFloorIds.replace(n)},this.bindings.push(t.makeModeChangeSubscription(this.updateHidden),i.makeSweepChangeSubscription(this.updateHidden),s.onChanged(this.updateHidden),t.makeModeChangeSubscription(this.updateNavigable),i.makeSweepChangeSubscription(this.updateNavigable),n.onPropertyChanged("application",this.updateFloorSweepData)),this.initializeFloorStates(),this.updateFloorSweepData(),this.updateHidden()}getState(e){return this.states.get(e)}get navigableFloorIds(){return this._navigableFloorIds.values()}onNavigableFloorIdsChanged(e){return this._navigableFloorIds.onChanged(e)}isViewingAlignedPano(){return this.viewmodeData.isInside()&&void 0!==this.sweepData.currentAlignedSweepObject}isEditMode(){return this.applicationData.application===h.lg.WORKSHOP}get currentFloorId(){return this.currentFloorObservable.value?this.currentFloorObservable.value.id:null}initializeFloorStates(){this.floors.iterate((e=>this.initializeFloorState(e.id)))}initializeFloorState(e){const t=new d;return this.states.set(e,t),t}}var p=i(72773),E=i(31036);function S(e,t){return e}const O={floorChangesEnabled:()=>!0};class g extends s.B{constructor(e,t,i,s,a,r){super(),this.name="floors-view",this.floorSelectable=!1,this.currentFloorObservable=new o.L(null),this.transitionObservable=new o.L({from:null,to:null,progress:new n.z(0),promise:Promise.resolve()}),this._observableFloorsSelectMode=new o.L(!1),this._observableRoomSelectMode=new o.L(!1),this._showFloorSelection=new o.L(!1),this.onlyShowActiveFloor=new o.L(!1),this.showAllFloorsOption=!0,this.floorSelectHoverEnabled=!0,this.getFloorMin=e=>{const t=e||(this.currentFloorId||this.bottomFloorId);return this.floors.getFloor(t).bottom},this.getFloorMinPlane=e=>{const t=e||(this.currentFloorId||this.bottomFloorId);return this.floors.getFloor(t).groundPlane},this.getFloorCentroid=(e,t)=>{const i=t||(this.currentFloorId||this.bottomFloorId);return this.floors.getFloor(i).boundingBox.getCenter(e)},this.isHidden=e=>"string"==typeof e&&this.stateHelper.getState(e).hidden,this.isNavigable=e=>"string"==typeof e&&this.stateHelper.getState(e).navigable,this.updateViewData=()=>{this.floors.iterate((e=>{this.derivedData[e.id]={id:e.id,index:e.index,name:this.getFloorName(e.id)}})),this.commit()},this.getViewData=e=>{if(!this.derivedData[e]){const t=this.floors.getFloor(e);this.derivedData[e]={id:t.id,index:t.index,name:this.getFloorName(t.id)}}return this.derivedData[e]},this.getAllViewData=()=>{const e=[];return this.floors.iterate((t=>{e.push(this.getViewData(t.id))})),e},this.getFloor=e=>this.floors.getFloor(e),this.floors=e,this.config=null!=r?r:O,this.localize=null!=a?a:S,this.derivedData={},this.stateHelper=new m(e,t,i,s,this.currentFloorObservable),this.updateViewData(),this.currentFloorNoTransitionObservable=new E.r((()=>this.transitionActive?null:this.currentFloorId),[e=>this.currentFloorObservable.onChanged(e),e=>this.transitionObservable.onChanged(e)])}isCurrentOrAllFloors(e){return!e||!this.currentFloorId||e===this.currentFloorId}isCurrentMeshGroupOrAllFloors(e){return this.currentFloorMeshGroup===p.nT||this.currentFloorMeshGroup===e}isCurrentFloorIndexOrAllFloors(e){return this.currentFloorIndex===e||this.currentFloorIndex===p.Zu}makeFloorChangeSubscription(e){return this.currentFloorObservable.onChanged(e)}get currentFloor(){return this.currentFloorObservable.value}get currentFloorId(){var e;return(null===(e=this.currentFloorObservable.value)||void 0===e?void 0:e.id)||null}get currentFloorIndex(){return this.currentFloorObservable.value?this.currentFloorObservable.value.index:p.Zu}get currentFloorMeshGroup(){return this.currentFloorObservable.value?this.currentFloorObservable.value.meshGroup:p.nT}getFloorIndexForMeshGroup(e){if(e===p.nT)return p.Zu;const t=this.floors.getFloorByMeshGroup(e);return t?t.index:p.Zu}get bottomFloorId(){return this.floors.getBottomFloor().id}get topFloorId(){return this.floors.getTopFloor().id}get singleFloor(){if(1===this.floors.getFloorCount())return this.floors.getFloorAtIndex(0)}isMultifloor(){return this.floors.getFloorCount()>1}get nearestFloorId(){return this.transitionActive?this.transition.progress.value>.5?this.transition.to:this.transition.from:this.currentFloorId}get nearestFloor(){const e=this.nearestFloorId;return e?this.floors.getFloor(e):void 0}get transitionActive(){return this.transition.progress.active}get transition(){return this.transitionObservable.value}transitionToFloorInstant(e){this.currentFloorObservable.value=e?this.floors.getFloor(e):null,this.commit()}transitionToFloor(e,t,i,n){const s=this.transitionObservable.value.progress;s.modifyAnimation(0,1,i),this.transitionObservable.value={from:e,to:t,progress:s,promise:n},this.commit(),n.then((()=>{this.transitionToFloorInstant(t)}))}get totalFloors(){return this.floorsEnabled?this.floors.getFloorCount():1}hasEnabledAlignedSweeps(e){return null!==e?this.stateHelper.getState(e).hasEnabledAlignedSweeps:this.stateHelper.hasEnabledAlignedSweeps}getNavigableFloorIds(){return this.stateHelper.navigableFloorIds}onNavigableFloorIdsChanged(e){return this.stateHelper.onNavigableFloorIdsChanged(e)}getHighestVisibleFloor(){return this.currentFloor?this.currentFloor:this.floors.getTopFloor()}getHighestVisibleFloorId(){return this.getHighestVisibleFloor().id}getFloorIdMap(){const e={};return this.iterate((t=>{e[t.id]={id:t.id,name:t.name,items:[]}})),e}iterate(e){this.floors.iterate((t=>{const i=this.getViewData(t.id);i&&e(i)}))}getFloorNames(){const e=[];return this.floorsEnabled?(this.floors.iterate((t=>{e[t.index]=this.getFloorName(t.id)})),e):e}getFloorName(e){if(!e)return this.localize(a.A.FLOOR_ALL);const t=this.floors.getFloor(e);return void 0!==t.name&&""!==t.name?t.name:this.getDefaultFloorName(e)}getDefaultFloorName(e){const t=this.floors.getFloor(e);return this.localize(a.A.SHOWCASE.FLOORS.DEFAULT_NAME,t.index+1)}getFloorsVisibility(){if(this.currentFloorId){const e=[];return this.floors.iterate((t=>{e[t.index]=t.id===this.currentFloorId?1:0})),e}return[]}get floorsEnabled(){return this.config.floorChangesEnabled()}get floorSelectModeActive(){return this._observableFloorsSelectMode.value}set floorSelectModeActive(e){const t=e&&this.floorsEnabled;t!==this._observableFloorsSelectMode.value&&(this._observableFloorsSelectMode.value=t,this.commit())}onFloorSelectModeChange(e){return this._observableFloorsSelectMode.onChanged(e)}get showFloorSelection(){return this._showFloorSelection.value}set showFloorSelection(e){e!==this._showFloorSelection.value&&(this._showFloorSelection.value=e,this.commit())}onShowFloorSelectionChanged(e){return this._showFloorSelection.onChanged(e)}get roomSelectModeActive(){return this._observableRoomSelectMode.value}set roomSelectModeActive(e){const t=e;t!==this._observableRoomSelectMode.value&&(this._observableRoomSelectMode.value=t,this.commit())}onRoomSelectModeChange(e){return this._observableRoomSelectMode.onChanged(e)}get isInAllFloorsMode(){return this.isMultifloor()&&this.currentFloorIndex===p.Zu}}},23272:(e,t,i)=>{"use strict";i.d(t,{$9:()=>o,Qd:()=>l,V6:()=>c,i1:()=>s,q8:()=>a,uh:()=>d,vr:()=>r});var n=i(55141);class s extends n.u{constructor(e,t=!1,i,n){super(),this.payload={floorId:e,suppressCameraMovement:t,transitionTime:i,focusPoint:n}}}s.id="MOVETO_FLOOR";class a extends n.u{constructor(e,t=!1,i,n){super(),this.payload={floorIndex:e,suppressCameraMovement:t,transitionTime:i,focusPoint:n}}}a.id="MOVETO_FLOOR_NUMBER";class o extends n.u{constructor(e){super(),this.payload=e}}o.id="SHOW_ALL_FLOORS";class r extends n.u{}r.id="DISABLE_ALL_FLOORS_OPTION";class l extends n.u{}l.id="ENABLE_ALL_FLOORS_OPTION";class d extends n.u{}d.id="LOCK_FLOOR_NAV";class c extends n.u{}c.id="UNLOCK_FLOOR_NAV"},72773:(e,t,i)=>{"use strict";i.d(t,{Zu:()=>n,nT:()=>s,t$:()=>a});const n=-1,s=-1,a=500},39833:(e,t,i)=>{"use strict";i.d(t,{X:()=>a});var n=i(1932),s=i(38253);function a(){const e=(0,n.m)();return(0,s.P)(e)}},1932:(e,t,i)=>{"use strict";i.d(t,{m:()=>a});var n=i(96540),s=i(99438);function a(){const e=(0,s._)(),[t,i]=(0,n.useState)(e?e.currentFloorId:null);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=()=>{const t=e.currentFloorId;i(t)},n=e.makeFloorChangeSubscription(t);return t(),()=>n.cancel()}),[e]),t}(0,i(61260).c)("currentFloorId",a)},38253:(e,t,i)=>{"use strict";i.d(t,{P:()=>a});var n=i(96540),s=i(99438);function a(e){const t=(0,s._)(),[i,a]=(0,n.useState)(t&&null!==e?t.getViewData(e):null);return(0,n.useEffect)((()=>{if(!t)return()=>{};if(e){const i=t.getViewData(e);a(i)}else a(null);return()=>{}}),[t,e]),i}},99438:(e,t,i)=>{"use strict";i.d(t,{_:()=>o});var n=i(71555),s=i(61260),a=i(39209);const o=(0,n.v)(a.X);(0,s.c)("floorsViewData",o)},39188:(e,t,i)=>{"use strict";i.d(t,{m:()=>a});var n=i(87805),s=i(39209);const a=(0,n.r)(s.X,"showAllFloorsOption",!0)},72561:(e,t,i)=>{"use strict";i.d(t,{h:()=>a});var n=i(96540),s=i(99438);function a(){const e=(0,s._)(),[t,i]=(0,n.useState)(!!e&&e.showFloorSelection);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.onShowFloorSelectionChanged(i);return i(e.showFloorSelection),()=>t.cancel()}),[e]),t}},80303:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});const n="features/floorselect"},92637:(e,t,i)=>{"use strict";i.d(t,{P:()=>s});var n=i(55141);class s extends n.u{constructor(e,t){super(),this.payload={messagePhraseKey:e,options:t}}}s.id="DEFAULT_ERROR"},37062:(e,t,i)=>{"use strict";i.d(t,{J:()=>a});var n=i(84710),s=i(56413);class a extends n.B{constructor(){super(),this.name="gui-view-data",this.collapsedAccordionGroupsObservable=(0,s.y)()}isAccordionGroupCollapsed(e){return this.collapsedAccordionGroupsObservable.get(e)}setAccordionGroupCollapsed(e,t){this.collapsedAccordionGroupsObservable.set(e,t)}getAccordionGroupCollapsedStates(){return this.collapsedAccordionGroupsObservable.deepCopy()}onAccordionCollapsedGroupsChanged(e){return this.collapsedAccordionGroupsObservable.onChanged(e)}}},81088:(e,t,i)=>{"use strict";i.d(t,{X:()=>s,r:()=>a});var n=i(55141);class s extends n.u{constructor(e,t){super(),this.payload={modal:e,open:t}}}s.id="TOGGLE_MODAL";class a extends n.u{constructor(){super()}}a.id="CLOSE_MODAL"},15105:(e,t,i)=>{"use strict";i.d(t,{E:()=>u});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(40936);const l=55,d=40,c=10;function u({className:e,outerLeft:t,children:i,outerRight:a,small:u=!1}){const h=(0,s.useRef)(null);(0,r.A)({ref:h});let m=!!t!=!!a;if(m&&h.current){const e=h.current.offsetWidth,t=h.current.children[1],i=u?d:l;t.offsetWidth+2*i+(2+c)>e&&(m=!1)}const p=o()("action-bar",e,{"fill-outer-space":m}),E=o()("action-bar-outer","action-bar-outer-left",{"action-bar-outer-large":!u}),S=o()("action-bar-outer","action-bar-outer-right",{"action-bar-outer-large":!u});return(0,n.jsx)("div",Object.assign({className:"overlay-action-bar"},{children:(0,n.jsxs)("div",Object.assign({ref:h,className:p},{children:[(0,n.jsx)("div",Object.assign({className:E},{children:t})),(0,n.jsx)("div",Object.assign({className:"action-bar-cta"},{children:i})),(0,n.jsx)("div",Object.assign({className:S},{children:a}))]}))}))}},12596:(e,t,i)=>{"use strict";i.d(t,{s:()=>w});var n=i(74848),s=i(96540),a=i(73566),o=i(76853),r=i(59760),l=i(68419),d=i(64057),c=i(78956);const u=function(e,t){const i=e.classList;switch(t){case a.L$.NORMAL:case a.L$.SIDE_PANEL:i.replace("narrow-layout","standard-layout")||i.add("standard-layout");break;case a.L$.NARROW:case a.L$.BOTTOM_PANEL:i.replace("standard-layout","narrow-layout")||i.add("narrow-layout")}};var h=i(78763),m=i(32485),p=i.n(m),E=i(77570),S=i(72909),O=i(95439),g=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},T=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let _=class extends s.Component{constructor(e){super(e),this.getInitialState=()=>({messagePhraseKey:"",active:!1,ctaPhraseKey:"",timeout:0,multiline:!1,dismissesOnAction:!1,actionHandler:()=>{}}),this.triggerAction=e=>{e.stopPropagation(),this.state.actionHandler&&this.state.actionHandler(),this.state.dismissesOnAction&&this.hide()},this.hide=async()=>{window.clearTimeout(this.timeout),this.setState({active:!1})},this.show=async e=>{const t=Object.assign(this.getInitialState(),e,{active:!0});this.setState(t),window.clearTimeout(this.timeout),t.timeout>0&&(this.timeout=window.setTimeout((()=>{this.setState({active:!1})}),t.timeout))},this.state=this.getInitialState()}componentDidMount(){this.context.commandBinder.addBinding(O.Q,this.show),this.context.commandBinder.addBinding(O.v,this.hide)}componentWillUnmount(){window.clearTimeout(this.timeout),this.context.commandBinder.removeBinding(O.Q,this.show),this.context.commandBinder.removeBinding(O.v,this.hide)}render(){const{locale:e}=this.context,t=this.props.className||"",{active:i,multiline:s,messagePhraseKey:a,ctaPhraseKey:o,dismissesOnAction:r}=this.state,l={active:i,multiline:s},d=a?e.t(a):null,c=o?e.t(o):null;return(0,n.jsx)("div",Object.assign({className:"toastr-wrapper",onClick:r?this.hide:void 0},{children:(0,n.jsxs)("div",Object.assign({className:p()("toastr-contents",`${t}`,l)},{children:[(0,n.jsx)("div",Object.assign({className:"toastr-text"},{children:d})),c&&(0,n.jsx)("a",Object.assign({className:"link",onClick:this.triggerAction},{children:c}))]}))}))}};_.contextType=E.B,_=g([S.F,T("design:paramtypes",[Object])],_);var A=i(56147),v=i(17084),N=i(95541),I=i(39869),L=i(65780),f=i(90087),b=i(68375);const{PANELS:R}=A.A;function y({children:e,className:t,sidePanelCollapsible:i}){const a=(0,b.s)(),o=(0,f.L)(),l=(0,d.J)(),c=(0,r.O)(),u=(0,I.Y)(),h=(0,N.H)(),m=c&&c.panel;let E=null;m&&e&&Array.isArray(e)&&(E=e.find((e=>e&&e.key===(null==c?void 0:c.id)))||!1);const S=(0,s.useCallback)((()=>{E&&!h&&(a.track("showcase_gui",{gui_action:"toggle_side_panel"}),o.issueCommand(new v.li(!l)))}),[E,h,a,o,l]);(0,s.useEffect)((()=>{E&&!h&&l&&!i&&o.issueCommand(new v.li(!1))}),[E,h,l,i,o]);const O=l?u.t(R.EXPAND_PANEL):u.t(R.COLLAPSE_PANEL),g=l?"icon-dpad-left":"icon-dpad-right",T=!!(c&&E&&c.panel),_=E&&!!(null==c?void 0:c.panelLeft)&&!h,A=E&&!_&&!h,y={"panel-open":T&&!l,"panel-collapsed":T&&l,"panel-bottom":h,"panel-side":!h,"panel-left":_,"panel-right":A};return(0,n.jsxs)(n.Fragment,{children:[T&&A&&i&&(0,n.jsx)("div",Object.assign({className:"panel-track"},{children:(0,n.jsx)("div",Object.assign({className:"panel-track-thumb right","data-balloon":O,"data-balloon-pos":"left",onClick:S},{children:(0,n.jsx)("span",{className:`icon ${g}`})}))})),(0,n.jsx)(L.w,Object.assign({className:p()("panels",y,t),open:T,selectChild:!0,childKey:null==c?void 0:c.id},{children:e}))]})}var M=i(38731),D=i(19072);const P=e=>{var t;return!!(null===(t=e.ui)||void 0===t?void 0:t.renderPanel)&&!e.panelLeft},k=e=>{var t;return!!(null===(t=e.ui)||void 0===t?void 0:t.renderPanel)&&!!e.panelLeft};function w({children:e,className:t}){const i=(0,o.v)(),m=(0,M.B)(),E=(0,D.x)(),S=(0,f.L)(),O=(0,r.O)(),g=(0,l.t)(),T=(0,d.J)(),A=(0,c.O)(),v=A===a.L$.BOTTOM_PANEL;return(0,s.useEffect)((()=>{u(E,A)}),[E,A]),(0,s.useEffect)((()=>{T?E.classList.add("tool-collapsed"):E.classList.remove("tool-collapsed"),x(E,O,v)}),[E,T,O,v]),(0,s.useEffect)((()=>{E.classList.remove("bottom-panel","left-panel","right-panel"),O&&O.panel&&E.classList.add(v?"bottom-panel":O.panelLeft?"left-panel":"right-panel"),x(E,O,v)}),[E,O,v]),(0,s.useEffect)((()=>{g?E.classList.add("modal-open"):E.classList.remove("modal-open"),g&&S.issueCommand(new h.IP,!1)}),[S,E,g]),(0,n.jsxs)("div",Object.assign({className:p()("app-ui",t)},{children:[(0,n.jsx)(y,Object.assign({sidePanelCollapsible:!1},{children:i.toolsMap.values.filter(k).map((e=>(0,n.jsx)(C,{tool:e},e.id)))})),(0,n.jsx)("div",Object.assign({className:"scene-overlay"},{children:e})),(0,n.jsx)(y,Object.assign({sidePanelCollapsible:m},{children:i.toolsMap.values.filter(P).map((e=>(0,n.jsx)(C,{tool:e},e.id)))})),(0,n.jsx)(_,{})]}))}function C({tool:e}){var t;const i=null===(t=e.ui)||void 0===t?void 0:t.renderPanel;return i?(0,n.jsx)("div",Object.assign({className:"tool-panel"},{children:(0,n.jsx)(i,{})})):null}function x(e,t,i){i&&!0===(null==t?void 0:t.searchModeType)?e.classList.add("with-search-bar"):e.classList.remove("with-search-bar")}},35007:(e,t,i)=>{"use strict";i.d(t,{D:()=>N});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(46793),l=i(77570),d=i(39209),c=i(56147),u=i(39869),h=i(87743),m=i(11180),p=i(2993),E=i(53289),S=i(98197),O=i(30129),g=i(8387),T=i(39188),_=i(68375);function A(e){const{currentFloor:t,floors:i}=e,a=(0,u.Y)(),r=(0,_.s)(),l=(0,m.x)(),d=(0,T.m)(),A=l!==p.N3.Panorama&&d,v=(0,s.useRef)(null);(0,E.J)(h.e0,(()=>{var e;null===(e=v.current)||void 0===e||e.closeMenu()}));const N=(0,s.useCallback)((()=>{r.trackGuiEvent("floor_controls")}),[r]),I=t&&t.index+1,L=a.t(c.A.HELP_MORE_FLOORS_A),f=o()("floor-controls",{"two-digit":void 0!==I&&I>=10}),b=I?"floor-controls":"floor-controls-all",R=i.map((e=>{const{id:i,name:s}=e,a=(null==t?void 0:t.id)===i;return(0,n.jsx)(S.b,{id:i,name:s,active:a},i)}));return A&&R.push((0,n.jsx)(S.b,{name:a.t(c.A.FLOOR_ALL),active:!t},"all")),R.reverse(),(0,n.jsx)(O.y,Object.assign({buttonClassName:f,buttonDataAttribute:I,onClick:N,variant:g.Ak.TERTIARY,ariaLabel:L,tooltip:L,icon:b,theme:"overlay",menuClassName:"floor-controls-menu",menuTheme:"dark",menuPlacement:"top",ref:v},{children:R}))}var v=i(35865);class N extends s.Component{constructor(e){super(e),this.bindings=[],this.isUnmounting=!1,this.onCurrentFloorChanged=()=>{var e,t;const i=(null===(e=this.floorsViewData)||void 0===e?void 0:e.currentFloor)||void 0,n=i&&(null===(t=this.floorsViewData)||void 0===t?void 0:t.getViewData(i.id));this.setState({currentFloor:n})},this.onFloorsChanged=()=>{var e,t;const i=(null===(e=this.floorsViewData)||void 0===e?void 0:e.getNavigableFloorIds()).map(null===(t=this.floorsViewData)||void 0===t?void 0:t.getViewData);this.setState({floors:i})},this.state={currentFloorIndicator:!0,floors:[]}}componentDidMount(){const{market:e}=this.context;e&&e.waitForData(d.X).then((e=>{this.isUnmounting||(this.floorsViewData=e,this.bindings.push(this.floorsViewData.makeFloorChangeSubscription(this.onCurrentFloorChanged),this.floorsViewData.floors.onNameChange(this.onFloorsChanged),this.floorsViewData.onNavigableFloorIdsChanged(this.onFloorsChanged)),this.onCurrentFloorChanged(),this.onFloorsChanged())}))}componentWillUnmount(){this.isUnmounting=!0,this.bindings.forEach((e=>{e.cancel()}))}render(){const{className:e,viewmode:t,iconStyle:i}=this.props,{currentFloor:s,floors:a}=this.state;return a.length>1&&t!==r.w5.OUTSIDE?(0,n.jsxs)("div",Object.assign({className:o()("floor-selector",e)},{children:[i&&(0,n.jsx)(A,{floors:a,currentFloor:s}),!i&&(0,n.jsx)("span",{className:"divider"}),!i&&(0,n.jsx)(v.b,{})]})):null}}N.contextType=l.B},98197:(e,t,i)=>{"use strict";i.d(t,{b:()=>h});var n=i(74848),s=i(96540),a=i(8387),o=i(10843),r=i(78763),l=i(23272);const d=new o.Ay("floor-controls-switch-floor");var c=i(68375),u=i(90087);function h({name:e,id:t,active:i,theme:o="dark"}){const h=(0,u.L)(),m=(0,c.s)(),p=(0,s.useCallback)((async()=>{m.trackGuiEvent("floor_clicked"),async function(e,t,i){try{await i.issueCommand(new r.IP);const n=null===e?"click_toggle_all_floors_button":"click_floor_select_button";t.trackGuiEvent(n);const s=new l.i1(e);await i.issueCommand(s)}catch(e){d.debug(e)}}(t||null,m,h)}),[m,h,t]);return(0,n.jsx)(a.$n,{className:"floor-button",label:e,variant:a.Ak.TERTIARY,size:a.Mp.SMALL,theme:o,onClick:p,active:i})}},35865:(e,t,i)=>{"use strict";i.d(t,{b:()=>T});var n=i(74848),s=i(32485),a=i.n(s),o=i(56147),r=i(2993),l=i(30129),d=i(8387),c=i(96540),u=i(68986),h=i(99438);function m(e){return e?e.getNavigableFloorIds().map(e.getViewData):[]}var p=i(39833),E=i(11180),S=i(98197),O=i(39869),g=i(39188);function T(e){const t=function(){const e=(0,h._)(),[t,i]=(0,c.useState)(m(e));return(0,c.useEffect)((()=>{if(!e)return()=>{};const t=()=>i(m(e)),n=new u.P(e.floors.onNameChange(t),e.onNavigableFloorIdsChanged(t));return t(),()=>n.cancel()}),[e]),t}(),i=(0,E.x)(),s=(0,p.X)(),T=(0,g.m)(),_=(0,O.Y)(),A=t.map((e=>{const{id:t,name:i}=e,a=(null==s?void 0:s.id)===t;return(0,n.jsx)(S.b,{id:t,name:i,active:a,theme:"light"},t)})).reverse();i!==r.N3.Panorama&&T&&A.unshift((0,n.jsx)(S.b,{name:_.t(o.A.FLOOR_ALL),active:!s,theme:"light"},"all"));const v=a()("floor-menu-selector",e.className),N=(null==s?void 0:s.name)||_.t(o.A.FLOOR_ALL);return(0,n.jsx)(l.y,Object.assign({buttonClassName:v,variant:d.Ak.TERTIARY,label:N,ariaLabel:N,tooltip:N,theme:"overlay",menuClassName:"floor-controls-menu",menuPlacement:"top",caret:!0},{children:A}))}},6233:(e,t,i)=>{"use strict";i.d(t,{w:()=>R});var n=i(74848),s=i(56147),a=i(21162),o=i(8387),r=i(22213),l=i(81088),d=i(26432),c=i(5262),u=i(87805),h=i(12554),m=i(25773);var p=i(39869),E=i(35404),S=i(49812),O=i(47982),g=i(53282);var T=i(96540),_=i(41834);const A="https://matterport.com",v=()=>{const e=(0,p.Y)(),t=!(0,c.i)(E.qu,!1),i=(()=>{const e=(0,S.h)(),t=(0,g.t)(),i=(0,O.j)(),n=(0,c.i)(E.k5,"");if(n&&(null==e?void 0:e.model.hasDiscoverUrl())){const e=new URL(`${n}${i}`,"https://matterport.com");return t&&t!==i&&e.searchParams.set("view",t),e.toString()}return null})(),a=(0,u.Z)(m.d,"applicationKeys",new h.X).values(),o=e.t(s.A.ALT_MATTERPORT_LOGO),r=(0,n.jsx)("img",{className:"footer-logo",alt:o,src:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjAiIHZpZXdCb3g9IjAgMCAyMzAuMDUgNDkuNzUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxzdHlsZT4uc3Qwe2ZpbGw6I2Y1ZjRmM30uc3Qye2ZpbGw6I2ZmZn0uc3Qze2ZpbGw6Izk5OX08L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02MS4yOCAzNi4xNHYtOC44MmwtLjI0LTUuMDkuMTktLjA0IDIuMDUgNC41NCA0LjgyIDguODYgNC44Mi04Ljg2IDIuMDYtNC41NC4xOC4wNC0uMjQgNS4wOXY4LjgyaDUuMTRWMTQuNGgtNS44MWwtNi4xMSAxMS43N2gtLjA3TDYxLjk1IDE0LjRoLTUuODF2MjEuNzR6TTIxMi42OSAzMC42M2MwIDMuNiAxLjk0IDUuNSA1LjYxIDUuNWgzLjE3di00LjQ1aC0zLjQ1di05LjQ5aDMuNzR2LTQuMzZoLTQuMTV2LTQuMjFoLTQuOTF2MTcuMDF6TTIxMS4yNiAxNy44M2gtLjg3Yy0zLjAxIDAtNC40NCAyLjAzLTQuODkgMy40M2gtLjE4di0zLjQzSDIwMHYxOC4zMWg1LjMyVjI1LjcyYzAtMS4wOC40MS0xLjg0LjkzLTIuMzMuODktLjg2IDIuNzktMS4xMSA1LjAxLTEuMTF2LTQuNDV6TTE1OC42MyAxNy44M2gtLjg3Yy0zLjAxIDAtNC40NCAyLjAzLTQuODkgMy40M2gtLjE4di0zLjQzaC01LjMydjE4LjMxaDUuMzJWMjUuNzJjMC0xLjA4LjQxLTEuODQuOTMtMi4zMy44OS0uODYgMi43OS0xLjExIDUuMDEtMS4xMXYtNC40NXpNMTI3LjQ4IDI3LjI1YzAtNS45NyAzLjE3LTkuODYgOC44NS05Ljg2IDYuMjYgMCA4Ljc4IDQuNTMgOC43OCA5LjY0djEuNThoLTEyLjEydi4xOGMwIDIuMTIgMS4xNCAzLjYgNC4xNyAzLjYgMi4yMyAwIDMuNDUtMS4wNCA0LjY0LTIuMjdsMi42NiAzLjMxYy0xLjY5IDEuOTQtNC40NiAzLjEzLTcuOTEgMy4xMy01LjguMDEtOS4wNy0zLjI3LTkuMDctOS4zMXptNS41LTIuMDV2LjI5aDYuNjJ2LS4zMmMwLTIuMy0xLjA0LTMuODUtMy4xNy0zLjg1cy0zLjQ1IDEuNTQtMy40NSAzLjg4ek0xODAuMDQgMjcuMjVjMC02LjA4IDMuMzEtOS44NiA4Ljg1LTkuODYgNS41NCAwIDguODUgMy43OCA4Ljg1IDkuODZzLTMuMzEgOS4zMi04Ljg1IDkuMzJjLTUuNTUgMC04Ljg1LTMuMjQtOC44NS05LjMyem0xMi4xNSAxLjM3di0zLjI3YzAtMi4zNy0xLjIyLTMuNzQtMy4zMS0zLjc0cy0zLjMxIDEuMzctMy4zMSAzLjc0djMuMjdjMCAyLjM3IDEuMjIgMy43NCAzLjMxIDMuNzRzMy4zMS0xLjM3IDMuMzEtMy43NHpNMTIyLjQyIDEzLjYyaC00Ljc4djIuMTljMCAxLjMtLjQzIDIuMDEtMS44NyAyLjAxaC0xLjMzdjQuMzZoMi42NnY4LjQ0YzAgMy42IDEuOTQgNS41IDUuNjEgNS41aDMuMTd2LTQuNDVoLTMuNDV2LTkuNDloMy43NHYtNC4zNmgtMy43NHYtNC4yek0xMDkuMTcgMTMuNjJoLTQuNzh2Mi4xOWMwIDEuMy0uNDMgMi4wMS0xLjg3IDIuMDFoLTEuMzN2NC4zNmgyLjY2djguNDRjMCAzLjYgMS45NCA1LjUgNS42MSA1LjVoMy4xN3YtNC40NWgtMy40NXYtOS40OWgzLjc0di00LjM2aC0zLjc0di00LjJ6TTE3MC45IDE3LjM5Yy0yLjQ1IDAtNC41MyAxLjUxLTUuMDcgMy42aC0uMTh2LTMuMTdoLTUuMzJ2MjMuODJoNS4zMnYtOC42N2guMThjLjU0IDIuMDUgMi42MyAzLjYgNS4wNyAzLjYgNC43OCAwIDcuMjctMi45MSA3LjI3LTkuMzItLjAxLTYuNC0yLjQ5LTkuODYtNy4yNy05Ljg2em0xLjcyIDExLjUyYzAgMi4zNy0xLjQ4IDMuMzUtMy40OSAzLjM1LTIuMDEgMC0zLjQ5LTEuMDQtMy40OS0yLjc3di01YzAtMS43MyAxLjQ4LTIuNzcgMy40OS0yLjc3IDIuMDEgMCAzLjQ5IDEuNTUgMy40OSAzLjkydjMuMjd6TTk3LjgzIDM2LjE0Yy0xLjkxIDAtMy4yNy0xLjMtMy42LTMuMzFoLS4yMmMtLjU4IDIuNDUtMi42NiAzLjc0LTUuNTQgMy43NC0zLjc4IDAtNS44Ni0yLjIzLTUuODYtNS41IDAtMy45OSAzLjA5LTUuOSA4LjA5LTUuOWgyLjk5di0uNjFjMC0xLjgzLS45LTIuOTktMy4xMy0yLjk5LTIuMTIgMC0zLjI0IDEuMDgtNC4wNiAyLjIzbC0zLjE3LTIuODFjMS41MS0yLjIzIDMuNjctMy42IDcuNjMtMy42IDUuMzIgMCA4LjA2IDIuNDUgOC4wNiA2LjkxdjcuMzhoMS43NnY0LjQ1aC0yLjk1em0tNC4xMy01Ljcydi0yLjIzaC0yLjU5Yy0yLjA1IDAtMy4xMy43Ni0zLjEzIDIuMTJ2LjU0YzAgMS4zNy45IDIuMDEgMi40OCAyLjAxIDEuNzYgMCAzLjI0LS43MiAzLjI0LTIuNDR6Ii8+PGc+PHBhdGggZD0iTTM5LjA1IDYuOTFMMjYuMjQgMTAuNSAxMy40MiA2LjkxIDguMyA4LjM1djMzLjA2bDUuMTMgMS40NCAxMi44Mi0zLjU5IDEyLjgyIDMuNTkgNS4xMy0xLjQ0VjguMzVsLTUuMTUtMS40NHptLTUuMTIgMjQuNjdsLTcuNjktMi4xNS03LjY5IDIuMTV2LTEzLjRsNy42OSAyLjE1IDcuNjktMi4xNXYxMy40eiIgZmlsbD0iI2I3YmFiYiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0yNi4yNCAxMy4zN3Y2Ljk2bC0xMi44Mi0zLjU5djI2LjFMOC4zIDQxLjQxVjguMzV6TTMzLjkzIDM0LjQ1bC03LjY5LTIuMTZ2Ni45NmwxMi44MSAzLjU5di0yNi4xbC01LjEyIDEuNDR6Ii8+PGc+PHBhdGggY2xhc3M9InN0MyIgZD0iTTM5LjA1IDYuOTFsNS4xMyAxLjQ0LTE3Ljk0IDUuMDJMOC4zIDguMzVsNS4xMi0xLjQ0IDEyLjgyIDMuNTl6TTI2LjI0IDI5LjQybDcuNjkgMi4xNnYyLjg3bC03LjY5LTIuMTYtNy42OSAyLjE2di0yLjg3eiIvPjwvZz48L2c+PC9zdmc+"}),l=(0,T.useMemo)((()=>a.some((({sdkType:e})=>e===_.p.Type.BUNDLE||e===_.p.Type.EMBED))?A:i||A),[a,i]);return t?(0,n.jsx)("a",Object.assign({className:"link logo-link",href:l,target:"_blank","data-testid":"footer-logo-link"},{children:r})):r};var N=i(4717),I=i(56547),L=i(90087),f=i(68375);const b="gui";function R(e){const t=(0,p.Y)(),i=(0,f.s)(),c=(0,L.L)(),u=(0,N.G)(),h=!!u&&(0,I.AF)(u),{isWorkshop:m=!1,modelRatingEnabled:E,disabled:S}=e;return m&&!E?null:(0,n.jsxs)(a.e,Object.assign({className:"showcase-footer","data-testid":"showcase-footer"},{children:[!S&&h&&!m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.$n,{variant:o.Ak.TERTIARY,size:"small",theme:"overlay",onClick:()=>{const t=e.openModal===r.a.DEFURNISH_AI;c.issueCommand(new l.X(r.a.DEFURNISH_AI,!t)),i.trackGuiEvent("click_defurnish_ai_warning",{interactionSource:b})},className:"defurnish-ai-warning",ariaRole:"link",ariaHasPopup:"dialog",disabled:S,label:t.t(s.A.DEFURN_AI_WARNING)}),(0,n.jsx)("span",{children:" | "})]}),!S&&E&&(0,n.jsx)(o.$n,{variant:o.Ak.TERTIARY,size:"small",theme:"overlay",onClick:()=>{c.issueCommand(new d.c),i.trackGuiEvent("click_feedback_button",{interactionSource:b})},className:"model-feedback-link",ariaRole:"link",ariaHasPopup:"dialog",disabled:S,label:t.t(s.A.FEEDBACK)}),!S&&!m&&E&&(0,n.jsx)("span",{children:" | "}),!S&&!m&&(0,n.jsx)(o.$n,{variant:o.Ak.TERTIARY,size:"small",theme:"overlay",onClick:()=>{const t=e.openModal===r.a.HELP;c.issueCommand(new l.X(r.a.HELP,!t)),i.trackGuiEvent("click_help_button",{interactionSource:b})},ariaRole:"link",disabled:S,ariaHasPopup:"dialog",label:t.t(s.A.HELP)}),!S&&!m&&(0,n.jsx)("span",{children:" | "}),!S&&!m&&(0,n.jsx)(o.$n,{variant:o.Ak.TERTIARY,size:"small",theme:"overlay",onClick:()=>{const t=e.openModal===r.a.TERMS;c.issueCommand(new l.X(r.a.TERMS,!t)),i.trackGuiEvent("click_terms_button",{interactionSource:b})},ariaRole:"link",disabled:S,ariaHasPopup:"dialog",label:t.t(s.A.TERMS)}),!S&&!m&&(0,n.jsx)(v,{})]}))}},45037:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var n=i(74848),s=i(96540),a=i(64491),o=i(56147),r=i(77570),l=i(8387);class d extends s.Component{constructor(e){super(e),this.handleButtonClick=()=>{const{analytics:e}=this.context;a.aS()?(e.trackGuiEvent("click_exit_fullscreen",{interactionSource:"gui"}),a.Eh()):(e.trackGuiEvent("click_enter_fullscreen",{interactionSource:"gui"}),a.lh(document.body))},this.onFullScreenChange=e=>{const{mainDiv:t}=this.context,i=a.aS();i?t.classList.add("full-screen"):t.classList.remove("full-screen"),this.setState({fullscreen:i})},this.state={fullscreen:a.aS()},document.addEventListener("fullscreenchange",this.onFullScreenChange),document.addEventListener("webkitfullscreenchange",this.onFullScreenChange),document.addEventListener("MSFullscreenChange",this.onFullScreenChange),document.addEventListener("mozfullscreenchange",this.onFullScreenChange)}componentWillUnmount(){document.removeEventListener("fullscreenchange",this.onFullScreenChange),document.removeEventListener("webkitfullscreenchange",this.onFullScreenChange),document.removeEventListener("MSFullscreenChange",this.onFullScreenChange),document.removeEventListener("mozfullscreenchange",this.onFullScreenChange)}render(){const{fullscreen:e}=this.state,t=e?this.context.locale.t(o.A.EXIT_FULLSCREEN):this.context.locale.t(o.A.VIEW_FULLSCREEN),i=e?"fullscreen-exit":"fullscreen";return(0,n.jsx)("div",Object.assign({className:"fullscreen-mode"},{children:(0,n.jsx)(l.$n,{onClick:this.handleButtonClick,ariaLabel:t,tooltip:t,tooltipOptions:{placement:"top"},icon:i,theme:"overlay",variant:l.Ak.TERTIARY})}))}}d.contextType=r.B},95864:(e,t,i)=>{"use strict";i.d(t,{X:()=>m});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(27612),l=i(87137),d=i(77897),c=i(77570),u=i(58480),h=i(77363);class m extends s.Component{constructor(e,t){super(e,t),this.scrollbarRef=(0,s.createRef)(),this.elementRef=(0,s.createRef)(),this.isUnmounting=!1,this.onScrollableChanged=e=>{this.setState({scrollable:e})},this.onScrollPositionChange=e=>{this.setState({scrollPosition:e})},this.getScrollableContainer=()=>{const e=this.scrollbarRef.current;return(null==e?void 0:e.getScrollableContainer())||void 0},this.handleHighlightClickable=()=>{this.props.highlightClickable(!0)},this.state={scrollLeft:0,hideScrollbar:(0,r.c)((0,h.J)(t)),scrollPosition:d.BB.None,scrollable:!1}}componentDidMount(){this.context.market.waitForData(u.G).then((e=>{this.isUnmounting||(this.resizeSubscription=e.onPropertyChanged("size",(e=>{this.setState({hideScrollbar:(0,r.c)(e)})})))})),this.onScrollableChanged(!0),this.onScrollPositionChange(d.BB.Beginning)}componentWillUnmount(){var e;this.isUnmounting=!0,null===(e=this.resizeSubscription)||void 0===e||e.cancel()}componentDidUpdate(e){const{activeElement:t}=this.props;if(null!==t&&e.activeElement!==t){const e=this.scrollbarRef.current;e&&e.scrollToElement(t)}}setSorting(e){const t=this.elementRef.current;if(t)if(e){if(t.classList.add("sorting"),this.props.mobile){const e=this.scrollbarRef.current;e&&e.pauseScrollHandling()}}else t.classList.remove("sorting")}render(){const{thumbScrollingOnly:e,children:t,totalSteps:i}=this.props,{hideScrollbar:s,scrollPosition:a,scrollable:r}=this.state,c=o()({scrollable:r,[a]:!0});return(0,n.jsx)("div",Object.assign({id:"reel",className:c,ref:this.elementRef},{children:(0,n.jsx)(l.A,Object.assign({direction:d.OP.horizontal,ref:this.scrollbarRef,hideScrollbar:s,thumbScrollingOnly:e,waitToUpdate:0===i,handleClick:this.handleHighlightClickable,onScrollableChanged:this.onScrollableChanged,onScrollPositionChange:this.onScrollPositionChange},{children:t}))}))}}m.contextType=c.B},82679:(e,t,i)=>{"use strict";i.d(t,{f:()=>E});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(77570),l=i(13893),d=i(1333),c=i(2993),u=i(87912),h=i(8387),m=i(56147);const{HLR:p}=m.A.WORKSHOP;class E extends s.Component{constructor(){super(...arguments),this.editHighlight=e=>{e.stopPropagation(),this.props.onClickHighlight(this.props.index,!0)},this.removeHighlight=e=>{e.stopPropagation(),this.props.onRemoveHighlight&&this.props.onRemoveHighlight(this.props.highlight.snapshot.sid)},this.onClickHighlight=e=>{e.preventDefault(),this.props.onClickHighlight(this.props.index,!1)},this.setContainerRef=e=>{const{index:t,getRef:i}=this.props;this.element=e,i&&i(t,this.element)}}renderTransitionSettings(){const{locale:e}=this.context,{transitionType:t,panDirection:i,transitionCondition:s,index:a}=this.props,o=i!==d.ND.Auto;let r="pan-auto",c=e.t(p.PAN_DIRECTION_SETTING_AUTO);i===d.ND.Left?(r="icon icon-rotate-left",c=e.t(p.PAN_DIRECTION_SETTING_LEFT)):i===d.ND.Right&&(r="icon icon-rotate-right",c=e.t(p.PAN_DIRECTION_SETTING_RIGHT));let u="";return t===l.fl.FadeToBlack?u=e.t(p.TRANSITION_SETTING_SLIDESHOW):t===l.fl.Interpolate&&(u=e.t(p.TRANSITION_SETTING_WALKTHROUGH)),(0,n.jsxs)("div",Object.assign({className:"transition-settings"},{children:[(0,n.jsxs)("span",Object.assign({className:"transition-type"},{children:[a+1," - ",u,s&&(0,n.jsx)("span",{children:"*"})]})),(0,n.jsx)("span",Object.assign({className:"pan-direction-type"},{children:c})),o&&(0,n.jsx)("span",{className:`pan-icon ${r}`})]}))}renderImageBar(){var e;const{locale:t}=this.context,{highlight:i,editable:s}=this.props,a=i.snapshot.is360,r=i.snapshot.metadata.cameraMode,l="string"==typeof i.snapshot.sourceViewId,d=null!==(e=this.getMarker(r,a,l))&&void 0!==e?e:"",c=t.t(p.REMOVE_HIGHLIGHT_TOOLTIP_MESSAGE),u=t.t(p.EDIT_HIGHLIGHT_TOOLTIP_MESSAGE);return(0,n.jsxs)("div",Object.assign({className:"image-bar"},{children:[(0,n.jsx)("span",{className:o()("highlight-marker",{[d]:!s})}),s&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.$n,{className:"highlight-remove",onClick:this.removeHighlight,tooltip:c,ariaLabel:c,icon:"delete",theme:"overlay",variant:h.Ak.FAB}),(0,n.jsx)(h.$n,{className:"highlight-edit",onClick:this.editHighlight,tooltip:u,ariaLabel:u,icon:"toggle-pencil",theme:"overlay",variant:h.Ak.FAB})]})]}))}getMarker(e,t,i){return i?"icon-furniture-slash":e===c.N3.Dollhouse||e===c.N3.Floorplan?null:t?"icon-360":"icon-panorama"}render(){const{highlight:e,active:t,editable:i}=this.props,{name:s}=e.snapshot,a=!!s||i;return(0,n.jsxs)("div",Object.assign({className:o()("highlight-box",{active:t,editable:i}),onClick:this.onClickHighlight,ref:this.setContainerRef},{children:[(0,n.jsx)(u.q,{aspectRatio:e.snapshot.aspectRatio,resource:e.snapshot.thumbnailUrl,className:"highlight-image"}),this.renderImageBar(),i&&this.renderTransitionSettings(),(0,n.jsx)("div",Object.assign({className:o()("image-name",{shadowed:a})},{children:(0,n.jsx)("span",Object.assign({className:"static-text",role:"listitem","aria-label":s||"highlight"},{children:s}))}))]}))}}E.contextType=r.B},31875:(e,t,i)=>{"use strict";i.d(t,{E:()=>V});var n,s,a=i(74848),o=i(96540),r=i(32485),l=i.n(r),d=i(77570),c=i(99583),u=i(39209),h=i(46793),m=i(15580),p=i(56147),E=i(10843);!function(e){e.Inside="panorama",e.InsideMesh="mesh",e.Dollhouse="dollhouse",e.Floorplan="floorplan",e.None="none"}(n||(n={})),function(e){e.Inside="click_inside_mode_button",e.InsideMesh="click_mesh_mode_button",e.Dollhouse="click_dollhouse_mode_button",e.Floorplan="click_floorplan_mode_button"}(s||(s={}));var S=i(39869),O=i(95541),g=i(8387),T=i(56810),_=i(64491);function A(e,t){const i=(0,o.useMemo)((()=>!(0,_.C8)()),[]),n=(0,S.Y)(),s=n.t(e);return i&&void 0!==t?`${s} ${n.t(t)}`:s}var v=i(33177),N=i(68375),I=i(38731);function L(e){const{disabled:t,active:i,buttonId:n,onClick:s,analyticsName:r,tooltipPhraseKey:l,nudge:d,hotkeyPhraseKey:c}=e,u=(0,S.Y)(),h=(0,O.H)(),m=(0,I.B)(),p=(0,N.s)(),E=A(l,c),_=h&&m,L={placement:_?"bottom":"top",offset:_?[0,10]:void 0},f=_&&i?void 0:g.Ak.TERTIARY,b=_&&i?"light":"overlay",R=n,y=_?g.Mp.LARGE:void 0,M=(0,o.useCallback)((()=>{s(n,r)}),[s,n,r]),{show:D,dismiss:P}=(0,v.F)(null==d?void 0:d.nudgeType);if(d){const{featureKey:e,titleKey:s,messageKey:o,localStorageKey:r,dismissAnalytic:l}=d;return(0,a.jsx)(T.Q,{className:`mode-button mode-${n}`,icon:R,variant:f,theme:b,size:y,active:i,disabled:t,onClick:M,tooltip:E,nudgeFeatureKey:e,nudgeTitle:u.t(s),nudgeMessage:u.t(o),nudgeLocalStorage:r,onNudgeDismissed:l?()=>{p.trackGuiEvent(l)}:void 0,showTimeout:D,dismissTimeout:P})}return(0,a.jsx)("div",Object.assign({className:`mode-button mode-${n}`},{children:(0,a.jsx)(g.$n,{onClick:M,icon:R,variant:f,theme:b,size:y,active:i,disabled:t,tooltip:E,tooltipOptions:L,ariaLabel:E})}))}var f=i(87965),b=i(85281),R=i(94609),y=i(11180),M=i(2993),D=i(71555),P=i(27394);const k=(0,D.v)(P.m),w=(0,D.v)(c.X);function C(e){const{disabled:t,buttonId:i,onClick:r}=e,l=(0,O.H)(),d=(0,I.B)(),c=(0,R.I)(),u=w(),h=(0,y.x)(),m=function(){const e=k(),[t,i]=(0,o.useState)(null);return(0,o.useEffect)((()=>{if(!e)return()=>{};const t=e.onChanged((()=>{i(e.targetState)}));return i(e.targetState),()=>{t.cancel()}}),[e]),t}(),E=l&&d,S={placement:E?"bottom":"top",offset:E?[0,10]:void 0},T=h===M.N3.Dollhouse||h===M.N3.Floorplan,_=E&&T,v=E&&_?void 0:g.Ak.TERTIARY;let N=M.N3.Dollhouse;N=null!=m?"top"===m?M.N3.Dollhouse:M.N3.Floorplan:T&&c>.5?M.N3.Floorplan:M.N3.Dollhouse,(null==u?void 0:u.isFloorplanDisabled())&&(N=M.N3.Dollhouse),(null==u?void 0:u.isDollhouseDisabled())&&(N=M.N3.Floorplan);const L=N===M.N3.Floorplan?n.Floorplan:n.Dollhouse,f=N===M.N3.Floorplan?s.Floorplan:s.Dollhouse;let b=p.A.VIEW_DOLLHOUSE,D=p.A.HOTKEY_VIEW_DOLLHOUSE;N===M.N3.Floorplan&&(b=p.A.VIEW_FLOORPLAN,D=p.A.HOTKEY_VIEW_FLOORPLAN);const P=A(b,D),C=E?g.Mp.LARGE:void 0,x=(0,o.useCallback)((()=>{r(L,f)}),[r,L,f]);return u&&(u.isDollhouseDisabled()&&u.isFloorplanDisabled()||u.isDollhouseDisabled()&&T||u.isFloorplanDisabled()&&T)?null:(0,a.jsx)("div",Object.assign({className:`mode-button mode-${i}`},{children:(0,a.jsx)(g.$n,{onClick:x,icon:L,variant:v,theme:"overlay",size:C,active:_,disabled:t,tooltip:P,tooltipOptions:S,ariaLabel:P})}))}function x(e,t,i){const n=!t&&!e.tryGetProperty(m._z,!1),s=!t&&!e.tryGetProperty(m.n9,!1);return i!==M.N3.Panorama||(!!s||n)}function H(e,t){return!t&&!e}function U(e,t,i){const s=e===t;switch(e){case n.Dollhouse:case n.Floorplan:return i||!s;case n.Inside:return i?t!==n.InsideMesh:!s;case n.InsideMesh:return i?s:t===n.Inside}return!1}const G=new E.Ay("mode-buttons"),F={featureKey:b.n,titleKey:p.A.GENERIC.NEW_MESSAGE,messageKey:p.A.FLOOR_PLAN_NUDGE_MESSAGE,localStorageKey:f.Y.FloorplanRoomsUserNudgeSeen,dismissAnalytic:"floorplan_rooms_nudge",nudgeType:v.m.FloorplanMode};class j extends o.Component{constructor(e){super(e),this.onClick=async(e,t)=>{const{transitioning:i}=this.props;if(i)return;const s=function(e){switch(e){case n.Dollhouse:return h.w5.DOLLHOUSE;case n.Floorplan:return h.w5.FLOORPLAN;case n.Inside:return h.w5.INSIDE;case n.InsideMesh:return h.w5.MESH;default:throw new Error(`cannot get viewmode for mode buttonId ${e}`)}}(e),{analytics:a,commandBinder:o}=this.context;a.trackGuiEvent(t);try{await o.issueCommand(new h.S2(s))}catch(e){G.warn(e)}}}render(){const{activeButtonId:e,activeStateDisplay:t,className:i,floorplanPrevented:o,insidePrevented:r,meshPrevented:d,transitioning:c,viewmodeChangeEnabled:u}=this.props,h=!u||c,m=!d&&U(n.InsideMesh,e,!!t),E=!r&&U(n.Inside,e,!!t),S=!o&&U(n.Floorplan,e,!!t);return(0,a.jsxs)("div",Object.assign({className:l()("mode-buttons",i)},{children:[m&&(0,a.jsx)(L,{tooltipPhraseKey:p.A.VIEW_INSIDE_MESH,analyticsName:s.InsideMesh,buttonId:n.InsideMesh,active:e===n.InsideMesh,onClick:this.onClick,disabled:h}),E&&(0,a.jsx)(L,{tooltipPhraseKey:p.A.VIEW_INSIDE,hotkeyPhraseKey:p.A.HOTKEY_VIEW_INSIDE,analyticsName:s.Inside,buttonId:n.Inside,active:e===n.Inside,onClick:this.onClick,disabled:h}),(0,a.jsx)(C,{buttonId:n.Dollhouse,onClick:this.onClick,disabled:h}),S&&(0,a.jsx)(L,{tooltipPhraseKey:p.A.VIEW_FLOORPLAN,hotkeyPhraseKey:p.A.HOTKEY_VIEW_FLOORPLAN,analyticsName:s.Floorplan,buttonId:n.Floorplan,active:e===n.Floorplan,onClick:this.onClick,disabled:h,nudge:F})]}))}}j.contextType=d.B;class V extends o.Component{constructor(e){super(e),this.bindings=[],this.isUnmounting=!1,this.updateFloorplanState=()=>{const{editMode:e,settings:t}=this.context,i=this.viewmodeData.currentMode;this.setState({floorplanPrevented:x(t,e,i)})},this.onCurrentFloorChanged=()=>{const{editMode:e}=this.context,t=this.floorsViewData.currentFloor,i=this.floorsViewData.hasEnabledAlignedSweeps(t&&t.id);this.setState({insidePrevented:H(i,e)})},this.onViewmodeChangeLockUpdate=()=>{const{market:e}=this.context,t=e.tryGetData(c.X);if(!t)return;const i=t.viewmodeChangeEnabled;this.setState({viewmodeChangeEnabled:i})},this.state={floorplanPrevented:!1,insidePrevented:!1,viewmodeChangeEnabled:!0}}componentDidMount(){const{market:e,settings:t}=this.context;Promise.all([e.waitForData(c.X),e.waitForData(u.X)]).then((([e,i])=>{this.isUnmounting||(this.viewmodeData=e,this.floorsViewData=i,this.bindings.push(e.onPropertyChanged("viewmodeChangeEnabled",this.onViewmodeChangeLockUpdate),e.makeModeChangeSubscription(this.updateFloorplanState),i.makeFloorChangeSubscription(this.onCurrentFloorChanged),t.onPropertyChanged(m._z,this.updateFloorplanState)),this.onCurrentFloorChanged(),this.updateFloorplanState(),this.onViewmodeChangeLockUpdate())}))}componentWillUnmount(){this.isUnmounting=!0;for(const e of this.bindings)e.cancel();this.bindings=[]}render(){const{editMode:e}=this.context,{className:t,unaligned:i,viewmode:s,activeStateDisplay:o}=this.props,{viewmodeChangeEnabled:r,floorplanPrevented:d,insidePrevented:c}=this.state,u=s===h.w5.TRANSITIONING;u||(this.activeButtonId=function(e,t){if(e)return n.None;switch(t){case h.w5.DOLLHOUSE:return n.Dollhouse;case h.w5.FLOORPLAN:return n.Floorplan;case h.w5.INSIDE:return n.Inside;case h.w5.MESH:return n.InsideMesh}return n.None}(i,s));const m=function(e){return!e}(e);return(0,a.jsx)(j,{className:l()("viewmode-controls",t),activeStateDisplay:o,activeButtonId:this.activeButtonId,transitioning:u,floorplanPrevented:d,insidePrevented:c,meshPrevented:m,viewmodeChangeEnabled:r})}}V.contextType=d.B},91593:(e,t,i)=>{"use strict";i.d(t,{J:()=>s});var n=i(55141);class s extends n.u{constructor(e,t){super(),this.ids=e,this.value=t,this.payload={ids:e,value:t}}}s.id="CHANGE_PLUGIN_VISIBILITY_COMMAND"},18682:(e,t,i)=>{"use strict";i.d(t,{f:()=>Z});var n=i(74848),s=i(96540),a=i(55285),o=i(71397),r=i(73566),l=i(78763),d=i(96425),c=i(1763),u=i(32485),h=i.n(u),m=i(8387),p=i(90087),E=i(53289),S=i(42107),O=i(22937),g=i(65780),T=i(56147),_=i(87965),A=i(75622),v=i(5262),N=i(38731),I=i(87743);const L=3e3;var f=i(39869),b=i(50747);const{HLR:R}=T.A.WORKSHOP;function y(e){const t=!(0,v.i)(_.Y.TourTextNudgeDismissed,!1),i=(0,A.F)(),a=function(){const[e,t]=(0,s.useState)(!1),i=(0,s.useRef)();(0,E.J)(I.lz,(()=>{t(!0),n(),i.current=setTimeout((()=>{t(!1),i.current=void 0}),L)}));const n=()=>{i.current&&(clearTimeout(i.current),i.current=void 0)};return e}(),{highlights:o,currentStep:r,activeStep:d,tourPlaying:c}=e,u=(0,f.Y)(),S=(0,b.F)(),O=(0,N.B)(),T=(0,p.L)(),y=(0,s.useCallback)(((e,t=!0)=>{S.setLocalStorageProperty(_.Y.TourTextNudgeDismissed,!0),t&&e.stopPropagation()}),[S]),M=(0,s.useCallback)((async e=>{await T.issueCommand(new l.IP),y(e,!1)}),[T,y]),D=o[r],P=(null==D?void 0:D.title)||(null==D?void 0:D.description),k=O&&!P&&t,w=(null==D?void 0:D.title)||(k?u.t(R.HIGHLIGHT_TITLE_PLACEHOLDER):""),C=(null==D?void 0:D.description)||(k?u.t(R.HIGHLIGHT_DESCRIPTION_PLACEHOLDER):""),x=i&&!(d!==r)&&c||a,H=h()("tour-story",{active:x,prompt:k});return(0,n.jsxs)(g.w,Object.assign({open:i&&c||a,className:H,onClick:x?M:void 0,"aria-live":"polite","aria-atomic":"true"},{children:[k&&(0,n.jsx)(m.$n,{className:"tour-story-dismiss",theme:"dark",variant:m.Ak.TERTIARY,icon:"close",onClick:y}),(0,n.jsx)("div",Object.assign({className:"tour-story-title"},{children:w})),(0,n.jsx)("div",Object.assign({className:"tour-story-description"},{children:C}))]}))}var M=i(34184),D=i(68375);const{TOURS:P}=T.A.SHOWCASE,k=[S.X.FastForwarding,S.X.Rewinding,S.X.Skipping];function w(e){const{activeStep:t,currentStep:i,handlePlayPause:a,highlights:o,tourPlaying:d,toolPanelLayout:c}=e,[u,g]=(0,s.useState)(!1),[_,A]=(0,s.useState)(!1),v=(0,S.I)(),N=(0,f.Y)(),I=(0,D.s)(),L=(0,p.L)(),b=(0,s.useCallback)((()=>{g(!0)}),[]),R=(0,s.useCallback)((()=>{t===i&&g(!1)}),[t,i]);(0,E.J)(O.n1,b),(0,E.J)(M.A,R);const w=0===o.length,C=c===r.L$.NARROW||c===r.L$.BOTTOM_PANEL,x=d?N.t(T.A.PAUSE):N.t(T.A.PLAY),H=N.t(T.A.PREVIOUS),U=N.t(T.A.NEXT),G=w||!d?"play-unicode":"pause",F=w||k.includes(v),j=o[t];let V=(null==j?void 0:j.snapshot.name)||"";u||(V=d||_?"":N.t(P.TOUR_BUTTON_LABEL));const B=(0,s.useCallback)((()=>{A(!0),a()}),[a]),W=(0,s.useCallback)((async e=>{w||(e.stopPropagation(),A(!0),I.trackGuiEvent("skip_foward_highlights"),await L.issueCommand(new l.FU))}),[I,w,L]),K=(0,s.useCallback)((async e=>{w||(e.stopPropagation(),A(!0),I.trackGuiEvent("skip_backward_highlights"),await L.issueCommand(new l.jL))}),[I,w,L]);return(0,n.jsxs)("div",Object.assign({className:"tour-story-controls"},{children:[(0,n.jsx)(y,{tourPlaying:d,currentStep:i,activeStep:t,highlights:o}),(0,n.jsx)(m.$n,{icon:"dpad-left",className:"story-tour-previous-cta",variant:m.Ak.TERTIARY,size:m.Mp.SMALL,disabled:F,ariaLabel:H,tooltip:H,onClick:K}),(0,n.jsx)(m.$n,{className:"tour-story-play-pause",icon:G,variant:m.Ak.TERTIARY,size:m.Mp.SMALL,disabled:F,ariaLabel:x,tooltip:x,onClick:w?void 0:B}),(0,n.jsx)(m.$n,{icon:"dpad-right",className:"story-tour-next-cta",variant:m.Ak.TERTIARY,size:m.Mp.SMALL,disabled:F,ariaLabel:U,tooltip:U,onClick:W}),V&&d&&!C&&(0,n.jsx)("span",Object.assign({className:h()("tour-control-label",{active:d})},{children:V}))]}))}var C=i(30217),x=i(5275);function H(e){const{reelEnabled:t,activeTool:i,disabled:a,tourMode:o}=e,l=(0,f.Y)(),c=(0,D.s)(),u=(0,p.L)(),E=(0,x.U)(),S=(0,s.useCallback)((()=>{const e=E?"hide_":"show_";c.trackToolGuiEvent("hlr",e+"highlight_reel"),u.issueCommand(new C.CQ(!E))}),[E,c,u]),O=o===d.cR.STORIES;if(!t||O&&i!==r.S0.HLR)return null;const g=E?l.t(T.A.CLOSE_HIGHLIGHTS):l.t(T.A.OPEN_HIGHLIGHTS),_=E?"dpad-down":"dpad-up",A=h()("highlight-button",{"hlr-expanded":E});return(0,n.jsx)(m.$n,{disabled:a,className:A,onClick:S,tooltip:g,ariaLabel:g,"aria-expanded":E?"true":"false",icon:_,theme:"overlay",variant:m.Ak.TERTIARY})}var U=i(98903),G=i(56208),F=i(61260),j=i(19702);function V(){const e=(0,v.i)(G.Q$.HighlightReel,!0),t=(0,U.b)(j.D,j.np);return e&&t!==j.g}(0,F.c)("reelEnabled",V);function B(){const e=(0,v.i)(G.Q$.TourButtons,!0),t=(0,U.b)(j.no,j.XJ),i=(0,U.b)(j.Cs,j.ky);return e&&t!==j.wo&&i!==j.NN}(0,F.c)("tourEnabled",B);function W(e){const{activeTool:t,handlePlayPause:i,highlights:s,hideReel:a,tourPlaying:o}=e,r=(0,f.Y)(),l=(0,N.B)(),c=V()&&!a||l,u=B()||l;if(!c&&!u)return null;const h=0===s.length,p=l||!h,E=o?r.t(T.A.PAUSE):r.t(T.A.PLAY),S=o?"pause-outline":"play";return(0,n.jsxs)("div",Object.assign({className:"highlight-tour-controls"},{children:[c&&(0,n.jsx)(H,{disabled:!p,activeTool:t,reelEnabled:c,tourMode:d.cR.LEGACY}),u&&(0,n.jsx)(m.$n,{disabled:h,active:o,onClick:i,variant:m.Ak.TERTIARY,theme:"overlay",className:"tour-controls",ariaLabel:E,icon:S,tooltip:E})]}))}var K=i(95541),z=i(30741),Y=i(10843);const $=new Y.Ay("preview-tour"),{HLR:Q}=T.A.WORKSHOP;function q(){const e=(0,p.L)(),t=(0,f.Y)(),i=(0,K.H)(),a=0===(0,z.u)(),o=(0,s.useCallback)((async()=>{if(!a)try{await e.issueCommand(new l.mT)}catch(e){$.debug(e)}}),[e,a]),r=t.t(Q.PREVIEW_SETTINGS_CTA),d=i?void 0:r,c=i?r:void 0;return(0,n.jsx)(m.$n,{icon:"play-unicode",label:d,tooltip:c,disabled:a,size:m.Mp.LARGE,theme:"dark",className:"preview-tour-button",variant:m.Ak.FAB,onClick:o})}const X=new Y.Ay("tour-controls");function Z(e){const{activeStep:t,activeTool:i,currentStep:u,hideReel:h,toolPanelLayout:m,tourMode:E,tourPlaying:S,highlights:O,hasTours:g}=e,T=(0,N.B)(),_=(0,D.s)(),A=(0,p.L)(),{outOfScope:v}=(0,s.useContext)(c.i),I=async()=>{if(0===O.length)return;const e=S?"pause_highlights":"play_highlights";_.trackGuiEvent(e);try{S?await A.issueCommand(new l.IP):await A.issueCommand(new l.mT)}catch(e){X.debug(e)}},L=i===r.S0.HLR,f=i===r.S0.SEARCH,b=i===r.S0.LAYERS,R=E===d.cR.NONE,y=!!i&&!(L||f||b),M=()=>{if(T){const e=m===r.L$.BOTTOM_PANEL||m===r.L$.NARROW;if(i===r.S0.MESH_TRIM)return!1;if(e&&y)return!1}else{if(0===O.length&&!g||R||y)return!1}return!0};return(0,a.ML)("keydown",(e=>{const t=e.target;v||!M()||"CANVAS"!==t.tagName&&"BODY"!==t.tagName||(S||e.keyCode===o.D.SPACE)&&(e.stopPropagation(),I())})),L&&!S?(0,n.jsx)(q,{}):M()?E===d.cR.STORIES?(0,n.jsx)(w,{activeStep:t,currentStep:u,highlights:O,toolPanelLayout:m,tourPlaying:S,handlePlayPause:I}):(0,n.jsx)(W,{activeTool:i,handlePlayPause:I,highlights:O,hideReel:h,tourPlaying:S}):null}},52721:(e,t,i)=>{"use strict";i.d(t,{R:()=>m});var n=i(78849),s=i(81459),a=i(53641),o=i(23500),r=i(28475),l=i(75522),d=i(57811),c=i(28454),u=i(3071),h=i(87951);class m{constructor(e,t){this.engine=e,this.disabledAssets={[d.f]:!1,[o.s]:!1,[r.RP]:!1,[l.qE]:!1,[a.nH]:!1},this.settingsToggler=new s.U(t,this.disabledAssets),this.initPromise=this.init()}async init(){const{market:e}=this.engine;[this.measurementModeData,this.searchData]=await Promise.all([e.waitForData(c.s),e.waitForData(n.L)])}async activate(){this.settingsToggler.toggle(!0),await this.engine.commandBinder.issueCommandWhenBound(new u.S(!0,!0))}async deactivate(){this.settingsToggler.toggle(!1),this.engine.commandBinder.issueCommand(new h.y(-1)),await this.engine.commandBinder.issueCommand(new u.S(!1))}async dispose(){await this.initPromise}}},46522:(e,t,i)=>{"use strict";i.d(t,{e:()=>p});var n=i(74848),s=i(96540),a=i(56147),o=i(87965),r=i(39869),l=i(5262),d=i(88487),c=i(56209),u=i(82361),h=i(48535),m=i(50747);function p(){const e=(0,m.F)(),t=(0,r.Y)(),i=(0,l.i)(o.Y.MeasurementSnapping,!1),p=(0,l.i)(o.Y.MeasurementContinuousLines,!1),E=(0,h.g)(),S=(0,s.useCallback)((()=>{e.setLocalStorageProperty(o.Y.MeasurementSnapping,!i)}),[e,i]),O=(0,s.useCallback)((()=>{e.setLocalStorageProperty(o.Y.MeasurementContinuousLines,!p)}),[e,p]),g=t.t(a.A.MEASUREMENT_CONTINUOUS_LINES),T=t.t(a.A.MEASUREMENT_SNAPPING),_=t.t(a.A.TOOLS.MEASUREMENTS_SETTINGS);return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",Object.assign({className:"floorplan-overlay-title"},{children:_})),(0,n.jsxs)(d.t,Object.assign({className:"floorplan-overlay-tooltip"},{children:[E&&(0,n.jsx)(c.A,{label:T,onToggle:S,enabled:!0,toggled:i})," ",E&&(0,n.jsx)(c.A,{label:g,onToggle:O,enabled:!0,toggled:p}),(0,n.jsx)(u.m,{})]}))]})}},60057:(e,t,i)=>{"use strict";i.d(t,{S:()=>_e});var n=i(74848),s=i(96540),a=i(90087),o=i(87635),r=i(5262),l=i(43327),d=i(87965),c=i(64491),u=i(81088),h=i(22213),m=i(41535),p=i(48535),E=i(27947),S=i(86e3),O=i(52030),g=i(43718),T=i(99325);var _=i(11815),A=i(89395),v=i(95846);function N(){const e=(0,A.E)();return(0,v.B)(e||"")}var I=i(95221);var L=i(87805),f=i(28454);const b=(0,L.r)(f.s,"pressProgress",-1);var R=i(23339),y=i(26348);const M=(e,t)=>{if(t===R.t.METRIC)return`${e.toFixed(2)}m`;const{feet:i,inches:n}=(0,y.A4)(e);return i>0?`${i}' ${n}"`:`${n}"`};var D=i(33837);const P={addEnabled:{[m.hb.CREATING]:!0,[m.hb.CONFIRMING_POINT]:!0},deleteVisible:{[m.hb.IDLE]:!0,[m.hb.CREATING]:!0,[m.hb.CREATING_NEXT_POINT]:!0}},k={addEnabled:{[m.hb.CREATING]:!0,[m.hb.CONFIRMING_POINT]:!0},deleteVisible:{[m.hb.IDLE]:!0,[m.hb.CREATING]:!0,[m.hb.CREATING_NEXT_POINT]:!0}};var w=i(85938),C=i(56147),x=i(32485),H=i.n(x),U=i(32617),G=i(39869),F=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{if(!e)return;const t=new AbortController;return e.addEventListener("click",(()=>a((e=>!e))),{signal:t.signal}),()=>t.abort()}),[e]),i?(0,n.jsx)(U.m,Object.assign({sticky:!0,title:o,offset:[-6,24],target:e,trigger:"static"},B)):null}var z=i(95541);function Y({grossArea:e,noTooltip:t=!1}){const i=(0,z.H)(),a=(0,s.useRef)(null);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",Object.assign({ref:a,className:H()("gross-area-info",{clickable:!t})},{children:e})),t?null:(0,n.jsx)(j,{target:a.current,narrowLayout:i})]})}var $=i(51469);const{UNITS_DISPLAY:Q}=C.A;var q=i(18160);function X(){const e=function(){const e=(0,q.G)(),[t,i]=(0,s.useState)((null==e?void 0:e.currentSweepObject)||null);return(0,s.useEffect)((()=>{if(!e)return()=>{};function t(){e&&i(e.currentSweepObject||null)}const n=e.makeSweepChangeSubscription(t);return t(),()=>n.cancel()}),[e]),t}(),t=(0,$.N)();return(0,s.useMemo)((()=>{if(!e||!t)return null;let i=null;for(const n of t.rooms.values())if(n.floorId===e.floorId&&n.containsPoint(e.floorPosition.x,e.floorPosition.z)){i=n;break}return i}),[e,t])}var Z=i(39833),J=i(2993),ee=i(11180),te=i(30169);const{TRIM:ie}=C.A.WORKSHOP;function ne(){const e=(0,G.Y)(),t=(0,Z.X)(),i=(0,$.N)(),s=(0,ee.x)(),a=X(),r={formatAreaValue:!0,floorId:t?t.id:null};(0,J.vy)(s)&&a&&(r.roomId=a.id);const l=function({floorId:e,roomId:t,formatAreaValue:i=!1}){var n;const s=(0,G.Y)(),a=(0,o.J)(),r=(0,$.N)(),l={[R.t.METRIC]:e=>`${e} ${s.t(Q.SQUARE_METERS)}`,[R.t.IMPERIAL]:e=>`${e} ${s.t(Q.SQUARE_FEET)}`}[a],d=null!==(n=t?null==r?void 0:r.getRoomArea(t,a):null==r?void 0:r.getGrossFloorArea(e,a))&&void 0!==n?n:0;return i?l(d):d.toString()}(r);let d=e.t(ie.ALL_FLOORS);return(0,J.vy)(s)&&a?d=(0,te.Ay)(a.id,e,i):t&&(d=t.name),(0,n.jsx)("div",Object.assign({className:"measurements-gross-area"},{children:(0,n.jsx)(w.Z,{title:d,content:(0,n.jsx)(Y,{grossArea:l,noTooltip:(0,J.vy)(s)&&!!a})})}))}var se=i(98159),ae=i(8774),oe=i(5320),re=i(8387),le=i(58338),de=i(92254),ce=i(15105);const ue="Measurement-Help",he="measurement-mode-add-tooltip",me="measurement-mode-help";var pe=i(38731);function Ee({touchDevice:e,unaligned:t,phase:i,confirming:o,selectedGroup:r}){const l=(0,pe.B)(),d=(0,a.L)(),c=(0,s.useRef)(null),u=(0,G.Y)();function h(){c.current&&c.current.dismissNudge()}const p=i===m.hb.CREATING&&(!r||0===r.count),E=i===m.hb.CREATING_NEXT_POINT&&!!r&&2===r.count,S=!o&&(p||E),O=i===m.hb.EDITING,g=S||o,T=t||O;let _=le.R.ADD,A=u.t(C.A.MEASUREMENT_ADD_LABEL);o?(_=le.R.CONFIRM,A=u.t(C.A.MEASUREMENT_SAVE_LABEL)):S&&(_=le.R.CANCEL,A=u.t(C.A.MEASUREMENT_CANCEL_LABEL));const v=r&&_!==le.R.CANCEL&&(e?!!P.deleteVisible[i]:!!k.deleteVisible[i]),N=u.t(C.A.MEASUREMENT_START_ADDING),I=l,L=v?(0,n.jsx)(re.$n,{className:"action-button-outer",icon:"delete",variant:re.Ak.FAB,theme:"overlay",onClick:e=>{h(),e.stopPropagation(),d.issueCommand(new se.SH)}}):void 0;return(0,n.jsx)(ce.E,Object.assign({outerRight:L},{children:(0,n.jsx)(de.A,{ref:c,disabled:T,addIcon:_,ariaLabel:A,ariaDescribedBy:ue,allowLayerChange:g,onChangeLayer:()=>{h()},nudgeDisabled:I,nudgeMessage:N,nudgeSessionKey:he,onClick:e=>{h(),e.stopPropagation(),i===m.hb.IDLE?d.issueCommand(new ae.X):d.issueCommand(new oe.R)}})}))}var Se=i(50747);const Oe=i(8241);function ge(e){const{touchDevice:t,phase:i,groupCount:a}=e,o=(0,Se.F)(),l=(0,G.Y)(),d=(0,r.i)(me,!1),[c,u]=(0,s.useState)(!1);if((0,s.useEffect)((()=>()=>{c&&o.setProperty(me,!0)}),[c,o]),d)return null;const h=l.t(C.A.MEASUREMENT_HELP_CLICK_ANYWHERE),p=l.t(C.A.MEASUREMENT_HELP_ESCAPE),E=l.t(C.A.MEASUREMENT_HELP_PRESS_START),S=l.t(C.A.MEASUREMENT_HELP_DRAG_EDIT),O=l.t(C.A.MEASUREMENT_HELP_PRESS_END);let g,T,_;if(t)switch(i){case m.hb.CREATING:g=(0,n.jsx)("div",{className:"icon icon-press-hold"}),T=E;break;case m.hb.CREATING_NEXT_POINT:g=(0,n.jsx)("div",{className:"icon icon-drag-edit"}),T=O,c||u(!0);break;case m.hb.EDITING:case m.hb.POINT_PLACED:g=(0,n.jsx)("div",{className:"icon icon-finger-drag"}),T=S;break;default:return null}else switch(i){case m.hb.CREATING:g=(0,n.jsx)("div",{className:"icon icon-draw-lines"}),T=h;break;case m.hb.CREATING_NEXT_POINT:a>=3&&(g=(0,n.jsx)("div",Object.assign({className:"escape-key"},{children:(0,n.jsx)("img",{src:Oe})})),T=p,_="escape-message",c||u(!0));break;default:return null}return(0,n.jsxs)("div",Object.assign({className:"overlay-message"},{children:[g,T&&(0,n.jsx)("span",Object.assign({id:ue,className:H()("message",_)},{children:T}))]}))}var Te=i(8517);i(45371);function _e(){var e;const t=(0,a.L)(),i=(0,o.J)(),A=(0,r.i)(d.Y.MeasurementContinuousLines,!1),v=(0,p.g)(),L=function(){const e=(0,S.F)(),t=(0,g.v)(),{roomDimensionsVisible:i}=(0,T.W)(),n=(0,r.i)(O.AU,!1);return e===E.lg.SHOWCASE&&n&&i&&t}(),f=(0,_.W)(),R=N(),y=(0,s.useMemo)((()=>(0,c.C8)()),[]),k=function(){var e;const t=(0,I.g)(),[i,n]=(0,s.useState)(null!==(e=null==t?void 0:t.pointPosition)&&void 0!==e?e:null);return(0,s.useEffect)((()=>{if(!t)return()=>{};function e(){t&&n(t.pointPosition)}const i=t.onPointPositionChanged(e);return e(),()=>i.cancel()}),[t]),i}(),w=b(),C=function(){const e=N(),t=(0,r.i)(d.Y.MeasurementContinuousLines,!1),i=(null==e?void 0:e.count)||0;return t?i>2:2===i}(),x=(0,l.f)(),H=!!R&&(C&&(A?f===m.hb.CREATING_NEXT_POINT:f===m.hb.CREATING));(0,s.useEffect)((()=>(f===m.hb.CLOSED&&t.issueCommand(new u.X(h.a.MEASUREMENT_HELP,!1)),()=>{})),[t,f]);const U=P.addEnabled[f],G=(null==R?void 0:R.info.text)?` ${R.info.text}`:"",F=R?`${M(R.length,i)} ${G}`:void 0;return(0,n.jsxs)("div",Object.assign({className:"overlay grid-overlay measurements-overlay"},{children:[R&&(0,n.jsx)(Te.L,{children:F}),(0,n.jsx)(ge,{phase:f,touchDevice:y,groupCount:null!==(e=null==R?void 0:R.count)&&void 0!==e?e:0}),U&&(0,n.jsx)(D.z,{progress:w,screenPosition:k}),L?(0,n.jsx)(ne,{}):null,v&&(0,n.jsx)(Ee,{unaligned:x,phase:f,touchDevice:y,selectedGroup:R,confirming:H})]}))}},30684:(e,t,i)=>{"use strict";i.d(t,{u:()=>S});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(65780),l=i(39869),d=i(81088),c=i(31093),u=i(59618),h=i(8387),m=i(21162),p=i(22213),E=i(64421);function S({commandBinder:e}){const[t,i]=(0,s.useState)(!1),[a,S]=(0,s.useState)(),[O,g]=(0,s.useState)(),T=(0,l.Y)(),_=(0,s.useCallback)((async t=>{null==a||a.resolve(t),i(!1),e.issueCommand(new d.r)}),[e,a]),A=(0,s.useCallback)((()=>{_(E.$t.CLOSE)}),[_]),v=(0,s.useCallback)((()=>{_(E.$t.CONFIRM)}),[_]),N=(0,s.useCallback)((async n=>{switch(n.action){case E.YE.DISPLAY:if(t){if(!(null==O?void 0:O.cancellable))return Promise.reject("Cannot close non-cancellable modal");await _(E.$t.CLOSE)}i(!0),e.issueCommand(new d.X(p.a.CONFIRM,!0)),g(n.properties);const s=new c.i;return S(s),s.nativePromise();case E.YE.UPDATE:return g(n.properties),null==a?void 0:a.nativePromise();case E.YE.CLOSE:return t?(_(E.$t.CLOSE),null==a?void 0:a.nativePromise()):Promise.reject("Cannot cancel a closed modal")}}),[_,e,O,t,a]);(0,s.useEffect)((()=>(e.addBinding(E.nX,N),()=>{e.removeBinding(E.nX,N)})),[e,N]);const I=(0,s.useCallback)((e=>e.stopPropagation()),[]);if(!O)return null;const{title:L,titleLocalizationOptions:f,message:b,messageLocalizationOptions:R,confirmPhraseKey:y,cancelPhraseKey:M,closeButton:D,modalClass:P,confirmDisabled:k,cancelVariant:w}=O;let C=L;if("string"==typeof L&&0!==L.length){const e=void 0===f?{}:f,t=T.t(L,e);C=(0,n.jsx)("span",{children:t})}let x=b;if("string"==typeof b){const e=void 0===R?{}:R,t=T.t(b,e);x=(0,n.jsx)("p",Object.assign({className:"modal-message"},{children:t}))}return(0,n.jsx)(r.w,Object.assign({open:t,className:o()("modal-background","confirm-modal-background",{open:t}),onClick:I,onPointerDown:I,onPointerUp:I},{children:(0,n.jsxs)(u.l,Object.assign({testId:"confirm-modal",className:o()("confirm-modal",P),onClose:A},{children:[(0,n.jsxs)("header",Object.assign({className:"modal-header"},{children:[(0,n.jsx)("div",Object.assign({className:"modal-title"},{children:C})),D&&(0,n.jsx)(h.$n,{icon:"close",onClick:A})]})),(0,n.jsx)("div",Object.assign({className:"modal-body"},{children:x})),(0,n.jsxs)(m.e,Object.assign({spacing:"small"},{children:[M&&(0,n.jsx)(h.$n,Object.assign({size:"large",onClick:A,variant:w||h.Ak.SECONDARY},{children:T.t(M)})),y&&(0,n.jsx)(h.$n,Object.assign({disabled:k,variant:h.Ak.PRIMARY,size:"large",onClick:v},{children:T.t(y)}))]}))]}))}))}},64421:(e,t,i)=>{"use strict";i.d(t,{$t:()=>n,YE:()=>s,nX:()=>r});var n,s,a=i(55141);!function(e){e[e.CONFIRM=0]="CONFIRM",e[e.CLOSE=1]="CLOSE"}(n||(n={})),function(e){e[e.CLOSE=0]="CLOSE",e[e.DISPLAY=1]="DISPLAY",e[e.UPDATE=2]="UPDATE"}(s||(s={}));const o={message:"",title:"",modalClass:"",cancellable:!0,closeButton:!0,confirmDisabled:!1};class r extends a.u{constructor(e,t){if(super(),e&&!t)throw new Error("Cannot open empty modal");this.payload={action:e,properties:Object.assign(Object.assign({},o),t)}}}r.id="CONFIRM_MODAL"},28243:(e,t,i)=>{"use strict";i.d(t,{A:()=>m});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(72909),l=i(234),d=i(65780),c=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let h=class extends s.Component{constructor(e){super(e)}render(){const{showing:e}=this.props;return(0,n.jsx)(d.w,Object.assign({open:e,className:o()("load-indicator",{"fade-in":e,"fade-out":!e})},{children:(0,n.jsx)("div",Object.assign({className:"center-container"},{children:(0,n.jsx)(l.A,{progress:33,barWidth:4,progressColor:"#ffffff"})}))}))}};h=c([r.A,u("design:paramtypes",[Object])],h);const m=h},22213:(e,t,i)=>{"use strict";var n;i.d(t,{a:()=>n}),function(e){e.ADD_FROM_PHOTOS="add_from_photos",e.ATTACHMENT="attachmentViewer",e.CONFIRM="confirm",e.CTA="cta",e.DEFURNISH_AI="defunish_ai",e.HELP="help",e.HIGHLIGHT_EDITOR="highlight_editor",e.LAYER_ADD="layer_add",e.LINK_EDITOR="link_editor",e.MEASUREMENT_HELP="measurementModeHelp",e.MEDIA_EMBED_POPUP="mediaEmbedPopup",e.MODEL_VIEW_ADD="model_view_add",e.MODEL_VIEW_EDITOR="model_view_editor",e.MODEL_VIEW_DUPLICATE="model_view_duplicate",e.PHOTO_VIEWER="photo_viewer",e.RATING_THANK_YOU="rating_thank_you",e.SETTINGS="settings",e.SHARE="share",e.TERMS="terms",e.TOUR_SETTINGS="hlr_settings",e.VIEWS_INFO="views_info",e.VR_SELECT="vrSelect"}(n||(n={}))},15924:(e,t,i)=>{"use strict";i.d(t,{p:()=>I});var n=i(74848),s=i(87805),a=i(77489);const o=(0,s.r)(a.G,"isDialogVisible",!1);var r=i(48411),l=i(96540),d=i(32485),c=i.n(d),u=i(77570),h=i(56147),m=i(34806),p=i(13584),E=i(1724),S=i(59618),O=i(8387),g=i(26432),T=i(79187),_=i(55093);const{MODEL_RATING:A}=h.A.WORKSHOP,v=Object.values(T.zm);class N extends l.Component{constructor(e){super(e),this.submitCurrentRating=(e=!1)=>{const{currentQuestionId:t}=this.state;let i={};switch(t){case T.zm.QUALITY:i={quality:this.state.quality};break;case T.zm.NAVIGATION:i={navigation:this.state.navigation};break;case T.zm.FEEDBACK:i={feedback:this.state.feedback},this.resetValues()}i&&this.context.commandBinder.issueCommand(new g.i(i,e))},this.resetValues=()=>{this.setState({happiness:void 0,quality:void 0,navigation:void 0,feedback:void 0})},this.hasPerfectHappinessRating=()=>this.state.happiness===T.kk,this.handleButtonClick=()=>{const{currentQuestionId:e}=this.state;let t;switch(this.submitCurrentRating(e===T.zm.FEEDBACK),e){case T.zm.QUALITY:t=T.zm.NAVIGATION;break;case T.zm.NAVIGATION:t=T.zm.FEEDBACK;case T.zm.FEEDBACK:}t&&this.setState({currentQuestionId:t})},this.handleHappinessClick=e=>{this.context.commandBinder.issueCommand(new g.i({happiness:e})),e!==T.kk?this.setState({happiness:e,currentQuestionId:T.zm.QUALITY}):this.submitCurrentRating(!0)},this.handleCheckboxChange=(e,t,i)=>{const n=i.value,s={},a=(this.state[t]||[]).slice();a.includes(n)?a.splice(a.indexOf(n),1):a.push(n),s[t]=a,this.setState(s)},this.handleFeedbackChange=e=>{this.setState({feedback:e})},this.handleClose=()=>{this.context.commandBinder.issueCommand(new g.c(!1))},this.renderProgress=()=>{const{locale:e}=this.context,{currentQuestionId:t}=this.state;if(!t)return null;if(t===T.zm.HAPPINESS||this.hasPerfectHappinessRating())return;const i=v.indexOf(t);return(0,n.jsx)("span",Object.assign({className:"model-rating-progress"},{children:e.t(A.PROGRESS,{"current-question-number":i,"max-question-number":v.length-1})}))},this.state={currentQuestionId:T.zj}}componentWillUnmount(){this.submitCurrentRating(),this.context.commandBinder.issueCommand(new g.c(!1))}renderCurrentQuestion(){const{locale:e}=this.context,{currentQuestionId:t,happiness:i}=this.state;if(t===T.zm.FEEDBACK)return(0,n.jsx)("div",Object.assign({className:"question-type text-entry"},{children:(0,n.jsx)(E.A,{text:this.state.feedback||"",label:e.t(A.FEEDBACK_LABEL),onInput:this.handleFeedbackChange,onDone:this.handleFeedbackChange,maxLength:200,rows:3,focusOnMount:!0,scrollIntoViewOnMount:!0})}));if(t===T.zm.HAPPINESS)return(0,n.jsx)(_.w,{happiness:i,setHappiness:this.handleHappinessClick});if(t===T.zm.QUALITY||t===T.zm.NAVIGATION){const i=(t===T.zm.QUALITY?this.state.quality:this.state.navigation)||[],s=T.ot[t];return(0,n.jsx)("div",Object.assign({className:"question-type multi-select"},{children:s.map((s=>(0,n.jsx)(p.S,{enabled:!0,checkboxStyle:p.x.FILTER,onChange:this.handleCheckboxChange,onChangeArgs:[t,s],checked:i.includes(s.value),label:e.t(s.text)},s.text)))}))}return null}render(){const{locale:e}=this.context,{currentQuestionId:t}=this.state,i=t===T.zj,s=T.dW[t],a=T.SN[t],o=t===T.zm.FEEDBACK?A.SAVE:A.NEXT;return(0,n.jsxs)(S.l,Object.assign({className:c()("model-rating-dialog",{"in-progress":!i}),onClose:this.handleClose},{children:[(0,n.jsx)(m.J,{onClose:this.handleClose}),(0,n.jsxs)("div",Object.assign({className:"model-rating-form"},{children:[(0,n.jsxs)("div",Object.assign({className:"model-rating-question"},{children:[(0,n.jsx)("h3",Object.assign({className:"question-title"},{children:e.t(s)})),a&&(0,n.jsx)("p",Object.assign({className:"question-body"},{children:e.t(a)})),this.renderCurrentQuestion()]})),(0,n.jsxs)("footer",Object.assign({className:"model-rating-footer"},{children:[(0,n.jsx)("div",{children:t!==T.zm.HAPPINESS&&(0,n.jsx)(O.$n,{onClick:this.handleButtonClick,variant:O.Ak.TERTIARY,label:e.t(o)})}),this.renderProgress()]}))]}))]}))}}function I(){const e=o(),t=(0,r.T)();return!e||t?null:(0,n.jsx)(N,{})}N.contextType=u.B},95400:(e,t,i)=>{"use strict";i.d(t,{y:()=>u});var n=i(74848),s=i(96540),a=i(77570),o=i(81088),r=i(22213),l=i(34806),d=i(59618),c=i(77464);class u extends s.Component{constructor(){super(...arguments),this.onClose=()=>{this.context.commandBinder.issueCommand(new o.X(r.a.RATING_THANK_YOU,!1))}}render(){return(0,n.jsxs)(d.l,Object.assign({className:"model-rating-thank-you open",onClose:this.onClose},{children:[(0,n.jsx)(l.J,{onClose:this.onClose}),(0,n.jsx)(c.z,{onSupportClicked:this.onClose})]}))}}u.contextType=a.B},79187:(e,t,i)=>{"use strict";i.d(t,{SN:()=>d,dW:()=>l,kk:()=>a,ot:()=>c,zj:()=>r,zm:()=>o});var n=i(56147);const{MODEL_RATING:s}=n.A.WORKSHOP,a=5,o={HAPPINESS:"happiness",QUALITY:"quality",NAVIGATION:"navigation",FEEDBACK:"feedback"},r=o.HAPPINESS,l={[o.HAPPINESS]:s.HAPPINESS_TITLE,[o.QUALITY]:s.QUALITY_ISSUES_TITLE,[o.NAVIGATION]:s.NAVIGATION_ISSUES_TITLE,[o.FEEDBACK]:s.FEEDBACK_TITLE},d={[o.HAPPINESS]:s.HAPPINESS_BODY},c={[o.QUALITY]:[{text:s.QUALITY_ISSUES_LIGHTING,value:"lighting"},{text:s.QUALITY_ISSUES_3D_MESH,value:"3d_mesh"},{text:s.QUALITY_ISSUES_COLORING,value:"coloring"},{text:s.QUALITY_ISSUES_IMAGE_QUALITY,value:"image_quality"}],[o.NAVIGATION]:[{text:s.NAVIGATION_ISSUES_BLOCKED_DOORWAYS,value:"blocked_doorways"},{text:s.NAVIGATION_ISSUES_OBSTRUCTIONS,value:"obstructions"},{text:s.NAVIGATION_ISSUES_MISALIGNED_SCANS,value:"misaligned_scans"},{text:s.NAVIGATION_ISSUES_FLOOR_SEPARATION,value:"floor_separation"},{text:s.NAVIGATION_ISSUES_DISAPPEARING_FLOORS,value:"disappearing_floors"}]}},8517:(e,t,i)=>{"use strict";i.d(t,{L:()=>o});var n=i(74848),s=i(32485),a=i.n(s);function o({children:e,className:t}){return(0,n.jsx)("div",Object.assign({className:a()("overlay-top-center",t)},{children:(0,n.jsx)("div",Object.assign({className:"overlay-info"},{children:e}))}))}},52622:(e,t,i)=>{"use strict";i.d(t,{P:()=>A});var n=i(74848),s=i(32485),a=i.n(s),o=i(96540),r=i(23272),l=i(34806),d=i(27947),c=i(73943),u=i(39833),h=i(95330),m=i(22044),p=i(92237),E=i(99438);const S=new h.L({from:null,to:null,progress:new p.z(0),promise:Promise.resolve()});var O=i(38253);function g(){const e=function(){const e=(0,E._)();return(0,m.A)(e?e.transitionObservable:S)}();return(0,O.P)((null==e?void 0:e.to)||null)}var T=i(39188),_=i(90087);function A(e){const t=(0,_.L)(),i=(0,c.a)(),s=function(){const e=(0,u.X)(),t=g(),[i,n]=(0,o.useState)(e?e.name:"");return(0,o.useEffect)((()=>(e?n(e.name):t&&n(t.name),()=>{})),[e,t]),i}(),h=(0,T.m)(),m=(0,o.useCallback)((()=>{t.issueCommand(new r.i1(null,!1))}),[t]);if(i!==d.Jj.PLAYING)return null;const p=a()("floor-container",e.className);return(0,n.jsxs)("div",Object.assign({className:p},{children:[(0,n.jsx)("div",Object.assign({className:"floor-title h4"},{children:s||""})),h&&(0,n.jsx)(l.J,{theme:"dark",onClose:m,tooltip:""})]}))}},79489:(e,t,i)=>{"use strict";i.d(t,{A:()=>_});var n=i(74848),s=i(96540),a=i(34806),o=i(64491),r=i(79827),l=i(55285),d=i(11180),c=i(2993),u=i(78649),h=i(65780),m=i(32485),p=i.n(m),E=i(39869),S=i(56147),O=i(59760),g=i(78063);const T={rotate:{desktop:{icon:[r.z.mouse.ctrlClick,r.z.mouse.dragRight],phrase:S.A.SHOWCASE.DOLLHOUSE.ROTATE_PROMPT.DESKTOP},touch:{icon:[r.z.gesture.dragTwoFingerRotate],phrase:S.A.SHOWCASE.HELP.TOUCH_DOLLHOUSE_ROTATE}},inside:{desktop:{icon:[r.z.mouse.clickInside],phrase:S.A.SHOWCASE.DOLLHOUSE.INSIDE_PROMPT.DESKTOP},touch:{icon:[r.z.gesture.tapInside],phrase:S.A.SHOWCASE.DOLLHOUSE.INSIDE_PROMPT.TOUCH}}},_=()=>{const e=(0,g.B)(),t=(0,E.Y)(),i=(0,o.C8)(),[r,m]=(0,l.Mj)("peekaboo_dh_prompt_dismissed",0),[_,A]=(0,s.useState)(!1),[v,N]=(0,s.useState)(!1),[I,L]=(0,s.useState)(T.rotate),f=(0,d.x)(),b=(0,O.O)(),R=t.t(S.A.SHOWCASE.DOLLHOUSE.ROTATE_PROMPT.OR),y=f===c.N3.Dollhouse&&!b&&!_&&r<3;(0,s.useEffect)((()=>{let e;return y&&(L(T.rotate),e=setTimeout((()=>{N(!0)}),1e4)),()=>{e&&clearTimeout(e)}}),[y]),(0,s.useEffect)((()=>{const t=y&&I===T.rotate?e.subscribe(u.i,(()=>{L(T.inside)})):null;return()=>{null==t||t.cancel()}}),[y,e,I]);const M=(0,s.useCallback)((()=>{m(r+1),A(!0),N(!1)}),[r,m]);(0,s.useEffect)((()=>{!y&&v&&M()}),[y,v,M]);const{icon:D,phrase:P}=I[i?"touch":"desktop"],k=D.length>0&&D[0],w=D.length>1&&D[1],C=(0,n.jsx)("svg",Object.assign({width:"2",height:"16",viewBox:"0 0 2 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:(0,n.jsx)("path",{d:"M1 0L1 16",stroke:"white"})}));return(0,n.jsxs)(h.w,Object.assign({open:v,className:p()("peekaboo-dh-prompt",!v&&"unloading")},{children:[k&&(0,n.jsx)("img",{src:D[0],alt:"",height:i?26:50}),w&&(0,n.jsxs)("div",Object.assign({className:"separator"},{children:[C,(0,n.jsx)("span",{children:R}),C]})),w&&(0,n.jsx)("img",{src:D[1],alt:"",height:i?26:50}),(0,n.jsx)("span",Object.assign({className:"text"},{children:t.t(P)})),(0,n.jsx)(a.J,{theme:"dark",onClose:M,tooltip:""})]}))}},39301:(e,t,i)=>{"use strict";i.d(t,{h:()=>g});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(20246),l=i(17084),d=i(73566),c=i(65780),u=i(64057),h=i(78956),m=i(91406),p=i(12103),E=i(44067),S=i(90087),O=i(53289);function g(e){const{closed:t,toolId:i,children:a,className:g,filmstrip:T,title:_,titleNode:A,subheader:v,hideHelp:N,hideBadge:I,footer:L,controls:f,subheaderCollapsedHeight:b}=e,R=(0,S.L)(),y=(0,u.J)(),M=(0,h.O)(),D=(0,m.M)(i),[P,k]=(0,s.useState)(y),[w,C]=(0,s.useState)(!1),x=(0,s.useRef)(void 0),H=(0,s.useCallback)((e=>{if(e){if(w||P)return;window.clearTimeout(x.current),C(!0),x.current=window.setTimeout((()=>{C(!1),k(!0)}),p.zu)}else k(!1),window.clearTimeout(x.current)}),[C,k,w,P,x]);(0,s.useEffect)((()=>{!y&&P&&H(y)}),[H,y,P]),(0,s.useEffect)((()=>()=>{window.clearTimeout(x.current)}),[]),(0,O.J)(r.rP,(({collapsed:e})=>H(e)));const U=!!D&&!t,G=M===d.L$.BOTTOM_PANEL,F=!(P&&!w),j={closed:t,collapsed:P,collapsing:w,"filmstrip-panel":T},V=b&&(G&&P)?{height:b+p.Zn}:void 0,B=v&&(b||!P),W=T||G;return(0,n.jsxs)(c.w,Object.assign({open:U,className:o()("list-panel",j,g),style:V,onKeyDown:function(e){"Escape"===e.code&&(e.stopPropagation(),R.issueCommand(new l.u3(i)))},focus:!0},{children:[D&&(0,n.jsx)(E.a,Object.assign({tool:D,title:_,titleNode:A,hideHelp:N,hideBadge:I,expandable:W,onTogglePanel:H},{children:f})),B&&v,F&&a,F&&L||null]}))}},44067:(e,t,i)=>{"use strict";i.d(t,{a:()=>T});var n=i(74848),s=i(45056),a=i(96540),o=i(56147),r=i(39869),l=i(17084),d=i(64057),c=i(8387),u=i(21162),h=i(32485),m=i.n(h);const p=({children:e,className:t})=>{if(!e)return null;const i=m()("panel-title",t);return(0,n.jsx)("div",Object.assign({className:i},{children:e}))};var E=i(34806),S=i(90087);const{COLLAPSE_PANEL:O,EXPAND_PANEL:g}=o.A.PANELS;function T(e){const{tool:t,title:i,titleNode:o,children:h,expandable:m,hideHelp:T,hideBadge:_,onTogglePanel:A}=e,v=(0,r.Y)(),N=(0,d.J)(),I=(0,S.L)(),L=!T,f=(0,a.useCallback)((()=>{I.issueCommand(new l.u3(t.id))}),[I,t]),b=(0,a.useCallback)((e=>{e&&e.stopPropagation();const t=!N;A&&A(t),I.issueCommand(new l.li(t))}),[I,N,A]),R=N?"dpad-up":"dpad-down",y=N?v.t(g):v.t(O);return(0,n.jsxs)("div",Object.assign({className:"panel-header",onClick:m?b:void 0},{children:[(0,n.jsxs)(p,{children:[(0,n.jsxs)("div",Object.assign({className:"panel-name"},{children:[m&&(0,n.jsx)(c.$n,{icon:R,label:i,tooltip:y,tooltipOptions:{placement:"bottom-start"},variant:c.Ak.TERTIARY,onClick:b}),!m&&i]})),t.badgePhraseKey&&!_&&(0,n.jsx)("span",Object.assign({className:"word-badge"},{children:v.t(t.badgePhraseKey)})),o||null]}),(0,n.jsxs)(u.e,Object.assign({className:"panel-header-controls"},{children:[h,L&&(0,n.jsx)(s.k,{tool:t}),(0,n.jsx)(E.J,{tooltipOptions:{placement:"bottom"},onClose:f})]}))]}))}},12386:(e,t,i)=>{"use strict";i.d(t,{m:()=>r});var n=i(74848),s=i(32485),a=i.n(s),o=i(75622);function r(e){const t=(0,o.F)(),{activeStep:i,currentStep:s,highlights:r}=e,l=r[s],d=i!==s,c=((null==l?void 0:l.title)||(null==l?void 0:l.description))&&t&&!d;return(0,n.jsx)("div",Object.assign({className:"overlay-layer"},{children:(0,n.jsx)("div",{className:a()("tour-story-scrim",{active:c})})}))}},91575:(e,t,i)=>{"use strict";i.d(t,{F:()=>W});var n=i(74848),s=i(32485),a=i.n(s),o=i(73566),r=i(96425),l=i(5275),d=i(65780),c=i(96540),u=i(77570),h=i(10843),m=i(72909),p=i(64491),E=i(78763),S=i(68930),O=i(95864),g=i(82679);class T extends c.Component{constructor(e){super(e),this.highlights=[],this.highlightList=e=>{const{currentStep:t,onHighlightClicked:i}=this.props;return(0,n.jsx)("div",Object.assign({className:"hlr-container"},{children:(0,n.jsx)("div",Object.assign({className:"highlights",role:"list"},{children:e.items.map(((e,s)=>(0,n.jsx)(g.f,{highlight:e,index:s,active:s===t,editable:!1,onClickHighlight:i,getRef:this.addHighlightRef},`${e.id}_${s}`)))}))}))},this.addHighlightRef=(e,t)=>{this.highlights[e]=t,e===this.props.currentStep&&this.props.setActiveElement&&this.props.setActiveElement(t)}}componentDidUpdate(e){e.currentStep!==this.props.currentStep&&this.props.setActiveElement(this.highlights[this.props.currentStep])}render(){const{highlights:e}=this.props;return e&&e.length?(0,n.jsx)(this.highlightList,{items:e}):null}}i(61385);var _=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},A=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};const v=new h.Ay("highlight-reel");let N=class extends c.Component{constructor(e){super(e),this.bindings=[],this.mobile=(0,p.Fr)(),this.setActiveElement=e=>{this.setState({activeElement:e})},this.setHighlightClickable=(e=>this.highlightClickable=e).bind(this),this.onHighlightClicked=async e=>{const{commandBinder:t,analytics:i}=this.context;if(this.highlightClickable)try{this.props.tourPlaying&&await t.issueCommand(new E.IP),this.props.transition.active||(i.trackToolGuiEvent("hlr","click_highlight"),await t.issueCommand(new E.OR(e)).catch((e=>{if(!(e instanceof S.K))throw e;v.warn(e.message)})),this.setHighlightClickable(!1))}catch(e){v.debug(e)}},this.state={activeElement:null}}componentWillUnmount(){this.bindings.forEach((e=>{e.cancel()}))}render(){const{activeStep:e,highlights:t,totalSteps:i}=this.props;return(0,n.jsx)("div",Object.assign({id:"reel-container"},{children:(0,n.jsx)(O.X,Object.assign({totalSteps:i,activeElement:this.state.activeElement,mobile:this.mobile,highlightClickable:this.setHighlightClickable,thumbScrollingOnly:!1},{children:(0,n.jsx)(T,{highlights:t,currentStep:e,onHighlightClicked:this.onHighlightClicked,setActiveElement:this.setActiveElement})}))}))}};N.contextType=u.B,N=_([m.A,A("design:paramtypes",[Object])],N);var I=i(56147);const{HLR:L}=I.A.SHOWCASE;class f extends c.Component{render(){const{locale:e}=this.context,t=e.t(L.EMPTY_REEL_LEARN_MORE),i=e.t(L.EMPTY_REEL_TITLE),s=e.t(L.EMPTY_REEL_MESSAGE);return(0,n.jsx)("div",Object.assign({className:"empty-reel"},{children:(0,n.jsxs)("div",Object.assign({className:"no-highlights-message"},{children:[(0,n.jsx)("p",{children:i}),(0,n.jsxs)("p",{children:[s,(0,n.jsx)("a",Object.assign({className:"link",target:"_blank",href:"https://support.matterport.com/hc/en-us/articles/360019401733"},{children:t}))]})]}))}))}}f.contextType=u.B;var b=i(30741),R=i(1333),y=i(96282),M=i(42107);function D(){const e=(0,y.t)(),t=(0,M.I)(),i=t===M.X.Paused,n=t===M.X.Idle,s=(0,c.useRef)(null),a=(0,c.useRef)(0);if(n)return a.current=0,a.current;if(!i)return a.current;if(e===s.current)return a.current;if(!R.h9.includes(e.type))return a.current;const{started:o,stopped:r,duration:l}=e,d=(r-o)/l,u=a.current+d*(1-a.current);return s.current=e,a.current=u,u}var P=i(45202),k=i(67491);function w({index:e}){const t=(0,b.u)(),i=D(),s=(0,M.I)(),o=(0,P.v)(),r=(0,k.I)(),l=function(){var e,t;const i=(0,y.t)(),n=(0,c.useRef)(null);return R.h9.includes(i.type)?i.toIndex===(null===(t=n.current)||void 0===t?void 0:t.toIndex)?n.current.duration:(n.current=i,i.duration):(null===(e=n.current)||void 0===e?void 0:e.duration)||0}(),d=r.duration,u=r.toIndex,h=u===e,m=o===e,p=["story-tour-progress-bar"];if(s===M.X.Skipping)e>=u?p.push("story-tour-progress-bar--incomplete"):p.push("story-tour-progress-bar--complete");else if(m)switch(s){case M.X.Completed:p.push("story-tour-progress-bar--complete");break;case M.X.Playing:p.push("story-tour-progress-bar--playing");break;case M.X.Paused:p.push("story-tour-progress-bar--paused");break;case M.X.Rewinding:p.push("story-tour-progress-bar--rewinding");break;case M.X.FastForwarding:p.push("story-tour-progress-bar--fast-forwarding");break;case M.X.Idle:p.push("story-tour-progress-bar--incomplete")}else o===t-1&&0===u?p.push("story-tour-progress-bar--complete"):h&&s===M.X.Rewinding?p.push("story-tour-progress-bar--full-rewinding"):eo&&p.push("story-tour-progress-bar--incomplete");const E={};if(m&&(s===M.X.Playing||s===M.X.Paused?E.animationDuration=`${l}ms`:s===M.X.FastForwarding&&(E.animationDuration=`${d}ms`)),s===M.X.Rewinding){const e=i/(i+1);m&&h?E.animationDuration=`${d}ms`:m?E.animationDuration=e*d+"ms":h&&(E.animationDuration=(1-e)*d+"ms",E.animationDelay=e*d+"ms")}return(0,n.jsx)("div",{className:a()(...p),style:E})}function C(){const e=D();return(0,c.useEffect)((()=>{document.documentElement.style.setProperty("--currentTourScenePosition",100*e+"%")}),[e]),null}var x=i(87137),H=i(77897),U=i(87912);function G(e){const{snapshot:t,numberOfHighlights:i,currentIndex:s,xOffset:o}=e,{name:r}=t,l=s===i-1,d={};0===s?(d.left="15px",d.transform="none"):l?(d.right="10px",d.transform="none"):d.left=`${o}px`;const c=a()("highlight-box","active"),u=a()("image-name",{shadowed:!!r});return(0,n.jsxs)("div",Object.assign({style:d,className:c},{children:[(0,n.jsx)(U.q,{aspectRatio:t.aspectRatio,resource:t.thumbnailUrl,className:"highlight-image"}),(0,n.jsx)("div",Object.assign({className:u},{children:(0,n.jsx)("span",Object.assign({className:"static-text"},{children:r}))}))]}))}class F extends c.Component{constructor(e){super(e),this.scrollbarRef=(0,c.createRef)(),this.reelRef=(0,c.createRef)(),this.onClickSceneBar=async e=>{e.preventDefault();const t=e.target.getAttribute("data-index");if(t){const e=parseInt(t,10),{tourPlaying:i,transition:n}=this.props,{commandBinder:s,analytics:a}=this.context;try{i&&await s.issueCommand(new E.IP({willResume:!0})),n.active||(a.track("showcase_gui",{gui_action:"click_scene_bar"}),await s.issueCommand(new E.OR(e)),i&&await s.issueCommand(new E.mT({index:e})))}catch(e){}}},this.onEnterSceneBar=e=>{const t=e.target.getAttribute("data-index");if(t){const i=parseInt(t,10);this.setState({focusedIndex:i,xOffset:e.clientX})}},this.onLeaveSceneBar=e=>{const t=e.target.getAttribute("data-index");if(t){parseInt(t,10)===this.state.focusedIndex&&this.setState({focusedIndex:-1})}},this.onScrollableChanged=e=>{this.setState({scrollable:e})},this.onScrollPositionChange=e=>{this.setState({scrollPosition:e})},this.state={focusedIndex:-1,xOffset:0,scrollLeft:0,scrollPosition:H.BB.None,scrollable:!1}}componentDidUpdate(){var e;const{activeStep:t,tourPlaying:i}=this.props,n=this.scrollbarRef.current;if(n&&!n.isDragging&&i){const i=null===(e=this.reelRef.current)||void 0===e?void 0:e.querySelector(`#highlightbar_${t}`);i&&n.scrollToElement(i)}}renderSceneBar(e,t){const{focusedIndex:i}=this.state,s=a()("highlight-bar",{"highlight-bar-hover":t<=i});return(0,n.jsx)("div",Object.assign({id:`highlightbar_${t}`,className:"highlight-compacted","data-index":t,onClick:this.onClickSceneBar,onMouseEnter:this.onEnterSceneBar,onMouseLeave:this.onLeaveSceneBar,onMouseMove:this.onEnterSceneBar},{children:(0,n.jsx)("div",Object.assign({className:s},{children:(0,n.jsx)(w,{index:t})}))}),`${e.id}_bar_${t}`)}renderHighlightBox(){const{focusedIndex:e,xOffset:t}=this.state;if(-1===e)return null;const{highlights:i}=this.props,s=i[e];return(0,n.jsx)(G,{snapshot:s.snapshot,numberOfHighlights:i.length,currentIndex:e,xOffset:t})}render(){const{highlights:e,tourPlaying:t}=this.props;return(0,n.jsxs)("div",Object.assign({className:a()("tour-story-reel",{"tour-playing":t}),ref:this.reelRef},{children:[(0,n.jsx)(C,{}),(0,n.jsx)(x.A,Object.assign({direction:H.OP.horizontal,ref:this.scrollbarRef,hideScrollbar:!0,thumbScrollingOnly:!1,waitToUpdate:0===e.length,handleClick:this.onClickSceneBar,onScrollableChanged:this.onScrollableChanged,onScrollPositionChange:this.onScrollPositionChange},{children:(0,n.jsx)("div",Object.assign({className:"highlights"},{children:e.map(((e,t)=>this.renderSceneBar(e,t)))}))})),this.renderHighlightBox()]}))}}F.contextType=u.B;var j=i(30217),V=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let B=class extends c.Component{constructor(){super(...arguments),this.handleClick=()=>{this.context.analytics.trackToolGuiEvent("hlr","tour_progress");const{reelOpen:e}=this.props;e||this.context.commandBinder.issueCommand(new j.CQ(!0))}}getTourSteps(){const{totalSteps:e,activeStep:t}=this.props,i=[];for(let s=0;s0?(0,n.jsxs)("div",Object.assign({id:"tour-progress",className:a()({"faded-in":t,"full-width":e}),onClick:this.handleClick,"data-balloon":r,"data-balloon-pos":"right","data-balloon-size":"xs"},{children:[l&&(0,n.jsx)("div",Object.assign({className:"progress-number"},{children:o})),-1!==i&&(0,n.jsx)("div",Object.assign({className:"progress-bar"},{children:this.getTourSteps()}))]})):null}};function W(e){const{activeStep:t,highlights:i,openTool:s,tourMode:c,tourPlaying:u,transition:h}=e,m=(0,l.U)(),p=s===o.S0.HLR;if(c===r.cR.STORIES)return p&&!u?null:(0,n.jsx)(F,{highlights:i,tourPlaying:u,activeStep:t,transition:h});{const e=m&&(!p||u),s=(null==i?void 0:i.length)||0,o=0===s;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.w,Object.assign({className:a()("highlight-reel",{"reel-empty":o,closed:!e}),open:e},{children:o?(0,n.jsx)(f,{}):(0,n.jsx)(N,{highlights:i,tourPlaying:u,activeStep:t,totalSteps:s,transition:h})})),u&&(0,n.jsx)(B,{activeStep:t,tourPlaying:u,totalSteps:s,reelOpen:m})]})}}B.contextType=u.B,B=V([m.A],B)},12786:(e,t,i)=>{"use strict";i.d(t,{T:()=>z});var n=i(97084);const s=()=>{},a=()=>null,o=()=>!1,r=()=>Promise.reject(),l=()=>Promise.resolve(),d=()=>({}),c=()=>[],u=()=>({renew:s,cancel:s}),h={register:s,unregister:s,waitForData:r,tryGetData:a,getModuleNameFromData:()=>""},m={subscribe:u,unsubscribe:s,broadcast:s};var p=i(79849);class E extends p.w{constructor(){super(...arguments),this.addBinding=u,this.removeBinding=s,this.issueCommand=r,this.issueCommandWhenBound=r,this.hookCommand=u,this.resetHooks=s}}const S=new E;var O=i(43787),g=i(13777);const T={mask:0,addLayers:s,removeLayers:s,clone:()=>T},_=()=>T;const A={market:h,msgBus:m,commandBinder:S,generatorSpreader:new g.Ay,uniqueId:-1,diContainer:O.oV,getModuleBySymbol:r,getModuleBySymbolSync:function(){throw new Error("getModuleBySymbolSync not supported")},tryGetModuleBySymbolSync:a,addComponent:l,removeComponent:l,getComponentByType:a,getComponents:function*(){},claimRenderLayer:_,getRenderLayer:_,subscribe:u,unsubscribe:s,broadcast:s,disposeRenderLayer:s,startGenerator:s,stopGenerator:s,after:l,toggleRendering:s,tick:s};const v=new class{constructor(){this.track=s,this.trackGuiEvent=s,this.trackToolGuiEvent=s}};var N=i(95404);class I extends N.default{constructor(){super(...arguments),this.t=(e,t)=>`${e}${t&&Object.keys(t).length?JSON.stringify(t):""}`,this.T=e=>e,this.has=e=>!0}get languageCode(){return"en"}}const L=new I;var f=i(33156);const b=(0,i(33895).A)(""),R=()=>b;class y extends f.E{constructor(){super(...arguments),this.getUserInfoByEmail=a,this.getUserInfoById=a,this.getUserDisplay=R,this.iterate=s,this.getUsersWhoMayNeedAccess=d,this.getKnownUsers=c,this.getCurrentUser=R,this.isLoggedIn=o,this.isOrgAdmin=o,this.isInviter=o,this.isEditor=o,this.isCommenter=o,this.getCurrentUserId=()=>b.id,this.onUsersChanged=u}}const M=new y(b,!1,!1);var D=i(96319),P=i(56413),k=i(23864),w=i(73566);const C={activate:l,deactivate:l},x=new k.N({id:w.S0.LABELS,namePhraseKey:"",panel:!1,panelLeft:!1,hidesAppBar:!1,icon:"",analytic:"labels",dimmed:!1,enabled:!1,manager:C,ui:{}}),H=new P.E;class U extends D.M{constructor(){super(...arguments),this.addTools=s,this.iterate=s,this.getTool=()=>x,this.removeTool=s,this.removeAllTools=s,this.setOpenAsset=s,this.onOpenAssetChanged=u,this.getActiveTool=a,this.activeToolName=null,this.previousToolName=null,this.openModal=null,this.toolChangeInProgress=!1,this.isPanelOpen=o,this.isToolCollapsedToBottom=o,this.toolPanelLayout=w.L$.NORMAL,this.softOpening=!1,this.toolCollapsed=!1}get toolsMap(){return H}get openAsset(){return null}}const G=new U;var F=i(25316);class j extends F.o{constructor(){super(...arguments),this.setProperty=s,this.setLocalStorageProperty=s,this.hasProperty=o,this.tryGetProperty=s,this.getProperty=s,this.getOverrideParam=s,this.iterate=s}}const V=new j;var B=i(49953);class W extends B.L{constructor(){super(...arguments),this.hasPolicy=o,this.getPolicy=()=>null}}const K=new W,z={editMode:!1,mainDiv:document.createElement("div"),queue:new n.L3,messageBus:m,userData:M,toolsData:G,settings:V,policyData:K,analytics:v,engine:A,market:h,commandBinder:S,locale:L,apiHost:"default"}},77570:(e,t,i)=>{"use strict";i.d(t,{B:()=>a});var n=i(96540),s=i(12786);const a=(0,n.createContext)(s.T)},71555:(e,t,i)=>{"use strict";i.d(t,{V:()=>o,v:()=>a});var n=i(96540),s=i(29020);function a(e){return()=>o(e)}function o(e){const t=(0,s.w)(),[i,a]=(0,n.useState)(t.tryGetData(e));return(0,n.useEffect)((()=>{let n=!1;return i||t.waitForData(e).then((e=>{n||a(e)})),()=>{n=!0}}),[t,e,i]),i}},61260:(e,t,i)=>{"use strict";i.d(t,{c:()=>a});var n=i(74848),s=i(96540);function a(e,t){return i=>(0,s.forwardRef)(((s,a)=>{const o=t(),r=Object.assign(Object.assign({},s),{[e]:o});return(0,n.jsx)(i,Object.assign({},r,{ref:a}))}))}},90087:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});var n=i(93702);function s(){return(0,n.K)().commandBinder}},29020:(e,t,i)=>{"use strict";i.d(t,{w:()=>a});var n=i(77570),s=i(96540);function a(){return(0,s.useContext)(n.B).market}},87805:(e,t,i)=>{"use strict";i.d(t,{Z:()=>o,r:()=>a});var n=i(96540),s=i(71555);function a(e,t,i){return()=>o(e,t,i)}function o(e,t,i){const a=(0,s.V)(e),[o,r]=(0,n.useState)(a?a[t]:i);return(0,n.useEffect)((()=>{if(!a)return()=>{};const e=a.onPropertyChanged(t,r);return r(a[t]),()=>{e&&e.cancel()}}),[a,t]),o}},38731:(e,t,i)=>{"use strict";i.d(t,{B:()=>a});var n=i(96540),s=i(77570);function a(){return(0,n.useContext)(s.B).editMode}},93702:(e,t,i)=>{"use strict";i.d(t,{K:()=>a});var n=i(96540),s=i(77570);function a(){return(0,n.useContext)(s.B).engine}},6336:(e,t,i)=>{"use strict";i.d(t,{i:()=>s});var n=i(96540);function s(e){var t;const[i,s]=(0,n.useState)(e.getCurrentValue()),[a,o]=(0,n.useState)(null===(t=e.validUntil)||void 0===t?void 0:t.getTime()),r=!!a&&a-Date.now()<=0;return(0,n.useEffect)((()=>{if(void 0===a)return()=>{};let t=!1;const i=a-Date.now(),n=()=>{e.get().then((i=>{var n;t||(s(i),o(null===(n=e.validUntil)||void 0===n?void 0:n.getTime()))}))};if(i<=0)return n(),()=>t=!0;const r=window.setTimeout(n,i);return()=>{t=!0,window.clearTimeout(r)}}),[e,a]),(0,n.useEffect)((()=>{s(e.getCurrentValue())}),[e]),[i,r]}},43327:(e,t,i)=>{"use strict";i.d(t,{f:()=>d});var n=i(96540),s=i(18160),a=i(88581),o=i(53289),r=i(1197);function l(e,t){return!(!e||!t)&&(e.isInside()&&t.isSweepUnaligned(t.currentSweep))}function d(){const e=(0,s.G)(),t=(0,a.o)(),[i,d]=(0,n.useState)(l(t||void 0,e||void 0)),c=(0,n.useCallback)((()=>{e&&t&&d(l(t,e))}),[e,t]);return(0,o.J)(r.A,c),(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.makeSweepChangeSubscription(c);return c(),()=>t.cancel()}),[e,c]),i}},53289:(e,t,i)=>{"use strict";i.d(t,{J:()=>a});var n=i(96540),s=i(78063);function a(e,t){const i=(0,s.B)();(0,n.useEffect)((()=>{const n=i.subscribe(e,t);return()=>n.cancel()}),[i,e,t])}},78063:(e,t,i)=>{"use strict";i.d(t,{B:()=>s});var n=i(93702);function s(){return(0,n.K)().msgBus}},17904:(e,t,i)=>{"use strict";i.d(t,{S:()=>a});var n=i(96540),s=i(93702);function a(e){const t=(0,s.K)(),[i,a]=(0,n.useState)(t.tryGetModuleBySymbolSync(e));return(0,n.useEffect)((()=>{let i=!1;return t.getModuleBySymbol(e).then((e=>{i||a(e)})),()=>{i=!0}}),[e,t]),i}},22044:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(96540);function s(e){const[t,i]=(0,n.useState)(e.value);return(0,n.useEffect)((()=>{const t=e.onChanged(i);return i(e.value),()=>t.cancel()}),[e]),t}},98903:(e,t,i)=>{"use strict";i.d(t,{b:()=>s});var n=i(50747);function s(e,t=null){return(0,n.F)().getOverrideParam(e,t)}},5262:(e,t,i)=>{"use strict";i.d(t,{i:()=>a});var n=i(96540),s=i(50747);function a(e,t){const i=(0,s.F)(),[a,o]=(0,n.useState)(i.tryGetProperty(e,t));return(0,n.useEffect)((()=>{const n=()=>{o(i.tryGetProperty(e,t))},s=i.onPropertyChanged(e,n);return n(),()=>null==s?void 0:s.cancel()}),[i,e,t]),a}},87635:(e,t,i)=>{"use strict";i.d(t,{J:()=>o});var n=i(87965),s=i(5262),a=i(23339);function o(){return(0,s.i)(n.Y.UnitType,a.t.METRIC)}},79827:(e,t,i)=>{"use strict";i.d(t,{z:()=>n});const n={mouse:{click_old:i(16391),click:i(11400),clickInside:i(53228),dragLeft:i(46997),dragRight:i(2710),ctrlClick:i(61273),dragRightHoriz:i(38826),dragRightVert:i(5293),play:i(54322),positionLeft_old:i(56048),positionLeft:i(45663),positionRight:i(85893),zoom_old:i(93582),zoom:i(713)},gesture:{drag_old:i(99713),drag:i(45894),dragTwoFinger:i(99484),dragTwoFingerVert:i(40783),pinch_old:i(13179),pinch:i(58780),dragTwoFingerRotate:i(62979),position:i(96558),positionTwoFinger:i(60497),tap_old:i(50968),tap:i(64727),tapInside:i(68117),play:i(23672)},keyboard:{all:i(64268),inside:i(34715),leftRight:i(31873),spaceBar:i(28301),upDown:i(88691),zoom:i(35235)},moreHelp:{view360:i(94246),mattertag:i(65224)}}},6995:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>b});var n=i(75578),s=i(45832),a=i(96540),o=i(5338),r=i(12786),l=i(77570),d=i(74848),c=i(92637),u=i(32485),h=i.n(u),m=i(10843),p=i(89103);class E extends p.QB{constructor(e){super(),this.open=e}}var S=i(34806),O=i(8647);const g=new m.Ay("alert-notification");class T extends a.Component{constructor(e){super(e),this.throttledMessages=new Map,this.onClose=()=>{clearTimeout(this.alertTimer),this.setState({open:!1})},this.state={open:!1}}componentDidMount(){this.update()}componentWillUnmount(){this.state.open&&this.props.messageBus.broadcast(new E(!1))}UNSAFE_componentWillReceiveProps(e){this.update(e)}componentDidUpdate(e,t){this.state.open!==t.open&&this.props.messageBus.broadcast(new E(this.state.open))}update(e=this.props){const{show:t,timeout:i,message:n,throttle:s,type:a}=e,{analytics:o}=this.context;if(t){if(s>0){if(this.throttledMessages.has(n)&&this.throttledMessages.get(n)>Date.now())return void g.debug(`Suppressed alert dialog due to message throttling: ${n}`);this.throttledMessages.set(n,Date.now()+1e3*s)}clearTimeout(this.alertTimer),this.setState({open:!0}),i>0&&(this.alertTimer=window.setTimeout(this.onClose,1e3*i)),o&&o.track("alert_gui",{alert_action:"show",alert_type:a,alert_message:n})}}render(){const{title:e,message:t,type:i}=this.props,{open:n}=this.state,s={active:n,[`notification-${i}`]:!0};return(0,d.jsxs)("aside",Object.assign({className:h()("alert-notification",s)},{children:[(0,d.jsxs)("div",Object.assign({className:"notification-body"},{children:[e&&(0,d.jsx)("h3",Object.assign({className:"notification-title"},{children:e})),(0,d.jsx)("p",Object.assign({className:"notification-text"},{children:t}))]})),n&&(0,d.jsx)(S.J,{theme:"dark",tooltip:"",onClose:this.onClose})]}))}}T.contextType=l.B,T.defaultProps={type:O.v.INFO,show:!1,timeout:10,throttle:0};var _=i(80610);class A extends a.Component{constructor(e){super(e),this.bindings=[],this.state={guiError:!1,errorMessagePhraseKey:""}}componentDidMount(){const{commandBinder:e}=this.context;this.bindings.push(e.addBinding(c.P,(async e=>{this.showErrorMessage(e.messagePhraseKey,e.options)})))}componentWillUnmount(){this.bindings.forEach((e=>e.cancel())),this.bindings.length=0}componentDidUpdate(e,t){const{guiError:i}=this.state;i&&this.setState({guiError:!1})}showErrorMessage(e,t){this.setState({guiError:!0,errorMessagePhraseKey:e,errorOptions:t})}render(){const{messageBus:e,locale:t}=this.context,{guiError:i,errorMessagePhraseKey:n,errorOptions:s}=this.state;let a=n&&t.t(n);const{error:o}=s||{};return o&&(0,_.Ue)(o)&&(a=`${a} (${o.code})`),(0,d.jsx)(T,Object.assign({messageBus:e,show:i,message:a},s))}}A.contextType=l.B;var v=i(49953),N=i(25316),I=i(96319),L=i(33156),f=i(37062);class b extends n.n{constructor(){super(...arguments),this.name="gui",this.workshopApp=!1,this.onAppReadyChanged=(e,t)=>{this.workshopApp&&(t&&e?this.mainDiv.classList.add("edit-mode"):this.mainDiv.classList.remove("edit-mode"))}}async init(e,t){this.workshopApp=e.workshopApp,this.mainDiv=e.mainDiv,this.reactContainer=e.reactContainer,this.market=t.market;const i=t.getModuleBySymbol(s.gS),n=t.getModuleBySymbol(s.$c),a=t.market.waitForData(L.E),o=t.market.waitForData(N.o);this.mainArgs=await Promise.all([i,n,o,a]),this.context={apiHost:e.apiHost,editMode:!1,mainDiv:e.mainDiv,analytics:this.mainArgs[1],locale:this.mainArgs[0],settings:this.mainArgs[2],userData:this.mainArgs[3],policyData:await this.market.waitForData(v.L),toolsData:await this.market.waitForData(I.M),engine:t,messageBus:t.msgBus,market:t.market,commandBinder:t.commandBinder,queue:e.queue},this.loadErrorBar(Object.assign({appContainer:this.reactContainer},this.context)),this.guiViewData=new f.J,this.market.register(this,f.J,this.guiViewData)}getAppContext(){return Object.assign({},this.context)}async loadUi(e){return e.apply(this,[this.getAppContext(),this.reactContainer,this.onAppReadyChanged])}loadErrorBar({messageBus:e,commandBinder:t,market:i,appContainer:n,analytics:s,settings:d,locale:c}){const{dispose:u}=((e,t,i,n,s,d,c)=>{const u=document.createElement("div");u.className="error-bar",n.insertBefore(u,n.firstElementChild);const h=Object.assign(Object.assign({},r.T),{messageBus:e,commandBinder:t,market:i,analytics:s,settings:d,locale:c}),m=(0,o.createRoot)(u);return m.render((0,a.createElement)(l.B.Provider,{value:h},[(0,a.createElement)(A,{key:"error-bar"})])),{dispose:()=>{m.unmount(),u.remove()}}})(e,t,i,n,s,d,c);this.bindings.push({renew:()=>{},cancel:u})}}},50178:(e,t,i)=>{"use strict";i.d(t,{XR:()=>a,Yl:()=>r,c7:()=>o,rn:()=>s});var n=i(89103);class s extends n.QB{constructor(e,t){super(),this.modal=e,this.open=t}}n.QB;class a extends n.QB{constructor(e){super(),this.isOpen=e}}class o extends n.QB{constructor(e){super(),this.suppress=e}}class r extends n.QB{constructor(e,t){super(),this.textElement=e,this.focused=t}}},33177:(e,t,i)=>{"use strict";i.d(t,{F:()=>a,m:()=>n});var n,s=i(16263);function a(e=n.Default){const t=(0,s.s)("viewer");if(e===n.Default)return{show:5e3,dismiss:1e4};const i=[n.Defurnish,n.Measurements,n.FloorplanMode,n.DollhouseMode],a=new Map;let o=5e3;return i.forEach((e=>{(e=>e!==n.Defurnish||t)(e)&&(a.set(e,{show:o,dismiss:1e4}),o+=2e4)})),a.has(e)?a.get(e):{show:Number.MAX_SAFE_INTEGER,dismiss:1}}!function(e){e[e.Default=0]="Default",e[e.DollhouseMode=1]="DollhouseMode",e[e.FloorplanMode=2]="FloorplanMode",e[e.Measurements=3]="Measurements",e[e.Defurnish=4]="Defurnish"}(n||(n={}))},58338:(e,t,i)=>{"use strict";i.d(t,{M:()=>u,R:()=>n});var n,s=i(74848),a=i(96540),o=i(32485),r=i.n(o),l=i(8387),d=i(13730),c=(i(71865),function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{var{addIcon:i,className:o}=e,u=c(e,["addIcon","className"]);const h=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,(()=>({dismissNudge:()=>{h.current&&h.current.dismissNudge()}})),[]);const m=i===n.CANCEL,p=m?n.ADD:i,E=r()("add-button",o,{"add-cancel":m});return(0,s.jsx)(d.Y,Object.assign({},u,{ref:h,className:E,variant:l.Ak.FAB,icon:p,theme:"dark",featured:!0}))}))},92254:(e,t,i)=>{"use strict";i.d(t,{A:()=>I});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(56147),l=i(39869),d=i(5262),c=i(38731),u=i(90087),h=i(28577),m=i(77973),p=i(58024),E=i(4717),S=i(12621),O=i(2716),g=i(79535),T=i(58338),_=i(8387),A=i(30129),v=(i(71865),function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{var{allowLayerChange:i,onChangeLayer:a}=e,r=v(e,["allowLayerChange","onChangeLayer"]);const I=(0,s.useRef)(null),L=(0,s.useRef)(null),f=(0,d.i)(h.qD,!1),b=(0,c.B)(),R=(0,u.L)(),y=(0,p.z0)(),M=(0,E.G)(),D=(0,S._)(null==y?void 0:y.id,M),P=(0,O.z)(),k=(0,p.z0)(),w=(0,l.Y)();(0,s.useImperativeHandle)(t,(()=>({dismissNudge:()=>{I.current&&I.current.dismissNudge()}})),[]);const C=(0,n.jsx)(T.M,Object.assign({ref:I},r));if(!f||!b||P.length<2)return C;const x=e=>{e!==(null==y?void 0:y.id)&&(R.issueCommand(new m.HA(e,!0)),a&&a(e))},H=y?D:w.t(N.UNLAYERED_LAYER_LABEL),U=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",Object.assign({className:"button-menu-label"},{children:w.t(N.LAYER_ADDING_TO_LABEL)})),(0,n.jsx)("div",Object.assign({className:"active-layer-name"},{children:H}))]}),G=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",Object.assign({className:"menu-title",onClick:e=>e.stopPropagation()},{children:w.t(N.LAYER_ADDING_TO_CHOICE_LABEL)})),(0,n.jsx)(_.$n,{icon:"close",variant:_.Ak.TERTIARY,size:_.Mp.SMALL,onClick:()=>{L.current&&L.current.closeMenu()}})]});return(0,n.jsxs)("div",Object.assign({className:o()("layered-add-button",{"with-layer-menu":i})},{children:[C,(0,n.jsxs)(A.y,Object.assign({ref:L,label:U,className:"add-menu-button",menuClassName:"add-button-layer-menu",menuPlacement:"top",variant:_.Ak.FAB,size:_.Mp.SMALL,theme:"dark",caret:!0},{children:[G,P.map((e=>{const{id:t}=e,i=(null==k?void 0:k.id)===t;return(0,n.jsx)(g.$,{layer:e,onClick:x,active:i},t)}))]}))]}))}))},8647:(e,t,i)=>{"use strict";var n;i.d(t,{v:()=>n}),function(e){e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(n||(n={}))},13584:(e,t,i)=>{"use strict";i.d(t,{S:()=>u,x:()=>n});var n,s=i(74848),a=i(96540),o=i(32485),r=i.n(o),l=i(72909),d=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.FILTER=1]="FILTER"}(n||(n={}));let u=class extends a.Component{constructor(e){super(e),this.onChange=e=>{this.props.stopPropagation&&e.stopPropagation(),this.setState((e=>({checkedValue:!e.checkedValue})),(()=>{this.props.onChange&&this.props.onChange(this.checkboxElement,...this.props.onChangeArgs||[])}))},this.setCheckboxRef=e=>{this.checkboxElement=e},this.state={checkedValue:e.checked}}UNSAFE_componentWillReceiveProps(e){this.setState({checkedValue:e.checked})}render(){const{checkboxStyle:e=n.DEFAULT,className:t,dataValue:i,enabled:a,error:o,helpText:l,id:d,label:c}=this.props,{checkedValue:u}=this.state,h=!a;return(0,s.jsxs)("div",Object.assign({ref:this.setCheckboxRef,id:d,role:"checkbox","aria-checked":u?"true":"false","aria-disabled":h,"data-value":i,className:r()("checkbox-element",`checkbox-style-${n[e].toLowerCase()}`,{checked:u,disabled:h,error:o},t),onClick:this.onChange,tabIndex:0},{children:[e!==n.FILTER&&(0,s.jsx)("div",{className:"checkbox icon-checkmark"}),(0,s.jsx)("div",Object.assign({className:"checkbox-text"},{children:c})),l&&(0,s.jsx)("span",Object.assign({className:"help-text"},{children:l}))]}))}};u.defaultProps={enabled:!0,error:!1},u=d([l.A,c("design:paramtypes",[Object])],u)},234:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n,s=i(74848),a=i(96540),o=i(32485),r=i.n(o),l=i(72909),d=i(3249),c=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let h=n=class extends a.Component{constructor(e){super(e),this.strokePattern=[0,100],this.strokeOffset=0,this.innerRadius=15.92,this.strokeWidth=1,this.drawRadius=this.innerRadius+this.strokeWidth/2,this.updateSvgAttributes(e),this.elementId=this.props.id||"circle-progress-"+n.id++}UNSAFE_componentWillReceiveProps(e){this.updateSvgAttributes(e)}updateSvgAttributes(e){this.strokeWidth=e.barWidth||this.strokeWidth,this.innerRadius=e.innerRadius||this.innerRadius,this.drawRadius=this.innerRadius+this.strokeWidth/2;const t=2*this.drawRadius*Math.PI;this.strokeOffset=t*(e.startPosition||this.strokeOffset),this.strokePattern[0]=t*(0,d.qE)(e.progress,0,100)/100,this.strokePattern[1]=t-this.strokePattern[0]}render(){const{progressColor:e}=this.props,t=2*(this.innerRadius+this.strokeWidth),i=t/2;return(0,s.jsxs)("svg",Object.assign({id:this.elementId,className:r()("circular-progress",this.props.className),viewBox:`${-i} ${-i} ${t} ${t}`},{children:[(0,s.jsx)("circle",{className:"bar-bg",cx:"0",cy:"0",r:this.drawRadius,transform:"rotate(-90) "+(this.props.ccw?"scale(-1 1)":""),strokeDasharray:`${this.strokePattern[1]} ${this.strokePattern[0]}`,strokeDashoffset:this.strokeOffset-this.strokePattern[0],strokeWidth:this.strokeWidth,fill:"none"}),(0,s.jsx)("circle",{className:e?void 0:"progress",cx:"0",cy:"0",r:this.drawRadius,transform:"rotate(-90) "+(this.props.ccw?"scale(-1 1)":""),strokeDasharray:`${this.strokePattern[0]} ${this.strokePattern[1]}`,strokeWidth:this.strokeWidth,stroke:e,fill:"none"}),this.props.children]}))}};h.id=0,h=n=c([l.A,u("design:paramtypes",[Object])],h)},10099:(e,t,i)=>{"use strict";i.d(t,{T:()=>v});var n=i(74848),s=i(43591),a=i(32485),o=i.n(a),r=i(96540),l=i(36220),d=i(72909),c=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{this.toggleDropdown(!1)},this.onToggleClick=e=>{e.stopPropagation(),this.toggleDropdown()},this.onTransitionEnd=e=>{e&&e.target!==e.currentTarget||(window.clearTimeout(this.transitionTimeout),this.setState({transitioning:!1}))},this.toggleDropdown=e=>{const{open:t}=this.state,i=void 0!==e?e:!t;i?window.addEventListener("click",this.onOutsideClick):window.removeEventListener("click",this.onOutsideClick),this.transitionTimeout=window.setTimeout(this.onTransitionEnd,1e3),this.setState({open:i,transitioning:!0})},this.state={open:!1,transitioning:!1}}componentWillUnmount(){window.removeEventListener("click",this.onOutsideClick)}render(){const{open:e,transitioning:t}=this.state,i=this.props,{children:s,className:a,direction:r}=i,d=h(i,["children","className","direction"]),c={up:r===m.UP,open:e,transitioning:t};return(0,n.jsxs)("div",Object.assign({ref:this.elementRef,className:o()("dropdown",c,a)},d,{children:[(0,n.jsx)("div",Object.assign({className:"dropdown-mask"},{children:(0,n.jsx)("div",Object.assign({className:"dropdown-menu",onTransitionEnd:this.onTransitionEnd},{children:s}))})),(0,n.jsx)("div",Object.assign({className:"dropdown-toggle"},{children:(0,n.jsx)(l.K0,{iconClass:"icon-toolbar-more-horiz",onClick:this.onToggleClick,className:"dropdown-toggle"})}))]}))}};p.defaultProps={direction:m.DOWN},p=c([d.A,u("design:paramtypes",[Object])],p);var E=i(79243),S=i(1763),O=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},g=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},T=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{this.update()},this.update=(0,E.n)((()=>{var e;const t=null===(e=this.toggleRef.current)||void 0===e?void 0:e.elementRef.current,i=this.contentRef.current,n=this.collapsedRef.current;if(!i||!n||!t)return;const s=i.children,a=n.children;if(!s||s.length!==a.length)return;const o=i[_],r=t[_]||0;let l=0,d=0;for(let e=0;ee.classList.remove(A)))}getExpandedChildren(){const{children:e}=this.props,{collapsedCount:t}=this.state,i=r.Children.count(e)-t,s=[];return r.Children.forEach(e,((e,t)=>{t{t>=i&&s.push((0,n.jsx)(r.Fragment,{children:e},t))})),s}render(){const e=this.props,{children:t,className:i}=e,s=T(e,["children","className"]),{collapsedCount:a}=this.state,r=`collapsible-list ${i}`,l={hidden:0===a};if(!t||!Array.isArray(t))return t;const d=this.getExpandedChildren(),c=this.getCollapsedChildren();return(0,n.jsxs)("div",Object.assign({className:o()(r)},s,{children:[(0,n.jsxs)("div",Object.assign({ref:this.contentRef,className:"collapsible-list-items"},{children:[(0,n.jsx)(S.i.Provider,Object.assign({value:{outOfScope:!1}},{children:d})),(0,n.jsx)(S.i.Provider,Object.assign({value:{outOfScope:!0}},{children:c}))]})),(0,n.jsx)(p,Object.assign({ref:this.toggleRef,direction:m.UP,className:o()(l)},{children:(0,n.jsxs)("div",Object.assign({ref:this.collapsedRef,className:"collapsible-list-menu"},{children:[(0,n.jsx)(S.i.Provider,Object.assign({value:{outOfScope:!0}},{children:d})),(0,n.jsx)(S.i.Provider,Object.assign({value:{outOfScope:!1}},{children:c}))]}))}))]}))}};v.defaultProps={},v=O([d.A,g("design:paramtypes",[Object])],v)},1763:(e,t,i)=>{"use strict";i.d(t,{i:()=>n});const n=(0,i(96540).createContext)({outOfScope:!1})},87912:(e,t,i)=>{"use strict";i.d(t,{q:()=>c});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(6336),l=i(95300),d=i(86866);function c({resource:e,className:t,children:i,onClick:a,aspectRatio:c}){const[u]=(0,r.i)(e),h=(0,s.useMemo)((()=>{if(!u)return{};if(c){const e=(0,l.s1)(u,c);return{minWidth:"fit-content",aspectRatio:`${(0,d.QX)(c,2)} / 1`,backgroundImage:`url('${e.toString()}')`}}return{backgroundImage:`url('${u}')`}}),[u,c]);return(0,n.jsx)("div",Object.assign({className:o()(t),style:h,onClick:a},{children:i}))}},36220:(e,t,i)=>{"use strict";i.d(t,{Df:()=>s,K0:()=>S,Tp:()=>a,zt:()=>o});var n,s,a,o,r=i(74848),l=i(96540),d=i(32485),c=i.n(d),u=i(72909),h=i(64491),m=i(77570),p=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},E=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e.ENABLED="enabled",e.DISABLED="disabled",e.DECORATIVE="decorative",e.DIMMED="dimmed",e.ACTIVE="active",e.BUSY="busy"}(s||(s={})),function(e){e[e.STANDARD=0]="STANDARD",e[e.MINI=1]="MINI",e[e.SMALL=2]="SMALL",e[e.LARGE=3]="LARGE"}(a||(a={})),function(e){e.CLEAR="clear",e.PLAIN="plain",e.OVERLAY="overlay",e.PRIMARY="primary",e.SOCIAL="social",e.TOOLBAR="toolbar"}(o||(o={}));let S=n=class extends l.Component{constructor(e){super(e),this.onClick=e=>{const t=this.props.buttonState;t!==s.BUSY&&t!==s.DISABLED&&this.props.onClick&&this.props.onClick(e)},this.onMouseDown=e=>{const{onMouseDown:t,onClick:i,buttonState:a}=this.props;if(t)t(e);else if(n.iMobile&&i&&a!==s.BUSY&&a!==s.DISABLED){const t=this.context.mainDiv.getRootNode().activeElement;t&&e.cancelable&&(t.blur(),e.preventDefault())}}}render(){const{ariaLabel:e,breakoutTooltip:t,buttonSize:i,buttonState:n,buttonStyle:l,children:d,className:u,dataValue:h,iconClass:m,id:p,onClick:E,onMouseUp:S,tooltipMsg:O,tooltipPersist:g,tooltipPreformatted:T}=this.props,_=n===s.DISABLED,A=n===s.BUSY,v=n===s.DECORATIVE,N=!_&&!A&&!v,I=O?!!T:void 0,L={"button-small":i===a.SMALL,"button-large":i===a.LARGE,"button-disabled":_,"button-dimmed":n===s.DIMMED,"button-active":n===s.ACTIVE,"button-busy":A,"button-interactive":N,"icon-button-primary":l===o.PRIMARY,"icon-button-overlay":l===o.OVERLAY,"icon-button-plain":l===o.PLAIN,"icon-button-social":l===o.SOCIAL,"icon-button-toolbar":l===o.TOOLBAR,"icon-button-breakout-tooltip":t},f={id:p,role:"button","aria-label":e||O,"aria-disabled":_,"data-value":h,className:c()("icon-button",L,u),onClick:E?this.onClick:void 0,onMouseUp:S,onMouseDown:this.onMouseDown},b={"data-balloon-pre":I,"data-balloon-persist":g};return t||Object.assign(f,b),(0,r.jsxs)("div",Object.assign({},f,{children:[t&&(0,r.jsx)("div",Object.assign({className:"icon-button-breakout-tooltip-container"},{children:(0,r.jsx)("div",Object.assign({className:"icon-button-breakout-tooltip-trigger"},b))})),m&&(0,r.jsx)("span",{className:`icon ${m}`}),d]}))}};S.contextType=m.B,S.iMobile=(0,h.OF)()||(0,h.J0)(),S=n=p([u.A,E("design:paramtypes",[Object])],S)},87243:(e,t,i)=>{"use strict";i.d(t,{N:()=>r});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a);class r extends s.Component{render(){const{className:e,href:t,children:i,onClick:s}=this.props;return(0,n.jsx)("a",Object.assign({className:o()("link",{className:e}),href:t,target:"_blank",onClick:s},{children:i}))}}},33837:(e,t,i)=>{"use strict";i.d(t,{z:()=>d});var n=i(74848),s=i(96540),a=i(64491),o=i(234);const r=132,l=8;function d({progress:e,screenPosition:t}){if(!(0,s.useMemo)((()=>(0,a.C8)()),[])||!t||0===e)return null;const i={left:t.x-r/2+"px",top:t.y-r/2+"px"};return(0,n.jsx)("div",Object.assign({className:"point-button-wrapper",style:i},{children:(0,n.jsx)(o.A,Object.assign({progress:100*e,innerRadius:r,barWidth:l},{children:(0,n.jsx)("circle",{className:"point",cx:"0",cy:"0",r:"22",transform:"rotate(-90)",fill:"#fff"})}))}))}},56810:(e,t,i)=>{"use strict";i.d(t,{Q:()=>h});var n=i(74848),s=i(96540),a=i(1763),o=i(48411),r=i(78956),l=i(73566),d=i(8387),c=i(13730),u=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{"use strict";i.d(t,{c:()=>l});var n=i(74848),s=i(32485),a=i.n(s),o=i(34806),r=i(8387);function l({title:e,message:t,children:i,closeButton:s=!1,className:l,onClose:d}){return(0,n.jsxs)("div",Object.assign({className:a()("nudge",l)},{children:[(0,n.jsxs)("div",Object.assign({className:a()("nudge-header",{"nudge-with-title":!!e})},{children:[e&&(0,n.jsx)("div",Object.assign({className:"nudge-title"},{children:e})),s&&(0,n.jsx)(o.J,{className:"nudge-close-button",size:r.Mp.SMALL,onClose:d})]})),t&&(0,n.jsx)("div",Object.assign({className:a()("nudge-message",{"nudge-message-with-title":e})},{children:t})),i]}))}},13730:(e,t,i)=>{"use strict";i.d(t,{Y:()=>E});var n=i(96540),s=i(74848),a=i(32485),o=i.n(a),r=i(55285),l=i(5262),d=i(8387),c=i(54642),u=i(73943),h=i(27947),m=i(50747),p=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{var{className:i,tooltip:a,children:E,onClick:S,closeButton:O,nudgeTitle:g,nudgeMessage:T,nudgeSize:_="medium",nudgeDisabled:A=!1,showTimeout:v=5e3,dismissTimeout:N=5e3,nudgeFeatureKey:I="",nudgeLocalStorage:L="",nudgeSessionKey:f="",onNudgeDismissed:b,featured:R=!1,tooltipOptions:y={},nudgeClassName:M}=e,D=p(e,["className","tooltip","children","onClick","closeButton","nudgeTitle","nudgeMessage","nudgeSize","nudgeDisabled","showTimeout","dismissTimeout","nudgeFeatureKey","nudgeLocalStorage","nudgeSessionKey","onNudgeDismissed","featured","tooltipOptions","nudgeClassName"]);const P=(0,m.F)(),[k,w]=(0,n.useState)(!1),[C,x]=(0,r.Mj)(L,!1),H=(0,l.i)(f,!1),U=(0,l.i)(I,!1),G=(0,n.useRef)(0),F=(0,n.useRef)(0),j=!(!g&&!T),V=(0,n.useCallback)((()=>{if(!j||k||A)return!1;return(!I||U)&&!(!!L&&C)&&!(!!f&&H)}),[j,k,A,I,U,L,C,f,H]),[B,W]=(0,r.Lh)(),K=(0,u.a)(),z=(0,n.useCallback)((()=>{window.clearTimeout(G.current),G.current=0,window.clearTimeout(F.current),F.current=0}),[]),Y=(0,n.useCallback)((()=>{z(),k&&(L&&x(!0),f&&P.setProperty(f,!0),b&&b(),w(!1))}),[z,k,L,f,b,x,P]),$=(0,n.useCallback)((()=>{if(!j)return;const e=G.current||F.current;V()&&!e&&(G.current=window.setTimeout((()=>{G.current=0,V()&&w(!0)}),v))}),[v,j,V]);(0,n.useImperativeHandle)(t,(()=>({dismissNudge:()=>{Y()}})),[Y]),(0,n.useEffect)((()=>(A||K!==h.Jj.PLAYING||0===W.height||0===W.width?z():$(),()=>{z()})),[A,W,$,z,K]),(0,n.useEffect)((()=>(k&&(F.current=window.setTimeout(Y,N)),()=>{z()})),[k,Y,N,z]);let Q;if(j){const e=void 0!==O?O:!!g;Q=(0,s.jsx)(c.c,{title:g,message:T,closeButton:e,className:R?"nudge-featured":void 0})}const q=k?Q:a,X=k?"static":"hover",Z=Object.assign(Object.assign({},y),{trigger:X,onToggle:e=>{j&&(e||Y())},theme:k?"light":"dark",size:k?_:"small",className:k&&M?M:"nudge-button-tooltip"}),J=o()("nudge-button",i);return(0,n.createElement)(d.$n,Object.assign({},D,{key:`nudge-button-${a}`,onClick:e=>{Y(),S&&S(e)},className:J,tooltip:q,tooltipOptions:Z,ref:B}),E)}))},10110:(e,t,i)=>{"use strict";i.d(t,{a:()=>c});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(72909),l=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},d=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let c=class extends s.Component{constructor(e){super(e),this.onChange=e=>{this.props.onChange(e)}}render(){const{id:e,name:t,value:i,checked:s,children:a,enabled:r}=this.props,l=!r;return(0,n.jsxs)("div",Object.assign({className:o()("radio-element","radio-button",{disabled:l})},{children:[(0,n.jsx)("input",{type:"radio",id:e,name:t,value:i,checked:s,onChange:this.onChange}),(0,n.jsx)("label",Object.assign({className:"radio-button-label",htmlFor:e},{children:a}))]}))}};c=l([r.A,d("design:paramtypes",[Object])],c)},55093:(e,t,i)=>{"use strict";i.d(t,{w:()=>S});var n,s=i(74848),a=i(21162),o=i(8387),r=i(96540),l=i(72909);!function(e){e[e.Disappointed=0]="Disappointed",e[e.Unsatisfied=1]="Unsatisfied",e[e.Neutral=2]="Neutral",e[e.Satisfied=3]="Satisfied",e[e.Happy=4]="Happy"}(n||(n={}));var d=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o};let c=class extends r.Component{render(){switch(this.props.icon){case n.Disappointed:return(0,s.jsxs)("svg",Object.assign({width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5 28C21.9557 28 28 21.9557 28 14.5C28 7.04503 21.9557 1 14.5 1C7.04506 1 1 7.04506 1 14.5C1 21.9557 7.04503 28 14.5 28ZM14.5 29C22.508 29 29 22.508 29 14.5C29 6.49278 22.508 0 14.5 0C6.49278 0 0 6.49278 0 14.5C0 22.508 6.49278 29 14.5 29Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M9.26389 16.1111C10.3761 16.1111 11.2778 14.8488 11.2778 13.2917C11.2778 11.7345 10.3761 10.4722 9.26389 10.4722C8.15165 10.4722 7.25 11.7345 7.25 13.2917C7.25 14.8488 8.15165 16.1111 9.26389 16.1111Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M19.7361 16.1111C20.8484 16.1111 21.75 14.8488 21.75 13.2917C21.75 11.7345 20.8484 10.4722 19.7361 10.4722C18.6239 10.4722 17.7222 11.7345 17.7222 13.2917C17.7222 14.8488 18.6239 16.1111 19.7361 16.1111Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M4.83253 9.66666C4.66497 9.66666 4.495 9.6143 4.35 9.50555C3.99394 9.23891 3.92225 8.73383 4.18889 8.37777C6.81661 4.87361 10.324 4.83333 10.4722 4.83333C10.9169 4.83333 11.2778 5.19422 11.2778 5.63888C11.2778 6.08274 10.9193 6.44283 10.4754 6.44444C10.3506 6.44605 7.60122 6.51372 5.47778 9.34444C5.31989 9.5555 5.07742 9.66666 4.83253 9.66666ZM24.1675 9.66666C23.9218 9.66666 23.6809 9.5555 23.5222 9.34444C21.3956 6.50808 18.6397 6.44605 18.5229 6.44444C18.0799 6.43961 17.7222 6.07711 17.7246 5.63486C17.7271 5.19099 18.0847 4.83333 18.5278 4.83333C18.676 4.83333 22.1826 4.87361 24.8111 8.37777C25.0786 8.73383 25.0061 9.23891 24.65 9.50555C24.505 9.6143 24.3358 9.66666 24.1675 9.66666V9.66666ZM18.9185 22.4581C18.9096 22.4226 17.9961 18.9306 14.5 18.9306C11.0039 18.9306 10.0904 22.4226 10.0815 22.4581C10.0388 22.6297 10.117 22.8053 10.2684 22.8963C10.4199 22.9865 10.6172 22.9656 10.7485 22.848C10.7558 22.8415 11.5646 22.1528 14.5 22.1528C17.3919 22.1528 18.2192 22.8214 18.2507 22.848C18.3272 22.9205 18.4271 22.9583 18.5278 22.9583C18.5954 22.9583 18.6639 22.9414 18.7259 22.9068C18.8838 22.8166 18.9628 22.6337 18.9185 22.4581V22.4581Z",fill:"#222222"})]}));case n.Unsatisfied:return(0,s.jsxs)("svg",Object.assign({width:"30",height:"29",viewBox:"0 0 30 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.125 28C22.5808 28 28.625 21.9558 28.625 14.5C28.625 7.04416 22.5808 1 15.125 1C7.66916 1 1.625 7.04416 1.625 14.5C1.625 21.9558 7.66916 28 15.125 28ZM29.625 14.5C29.625 22.5081 23.1331 29 15.125 29C7.11687 29 0.625 22.5081 0.625 14.5C0.625 6.49187 7.11687 0 15.125 0C23.1331 0 29.625 6.49187 29.625 14.5Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M21.1546 22.0553C21.1183 21.9111 20.2137 18.5278 15.125 18.5278C10.0355 18.5278 9.13167 21.9111 9.09542 22.0553C9.05111 22.2301 9.13006 22.4114 9.28633 22.5016C9.44342 22.591 9.63997 22.5644 9.76967 22.4395C9.78497 22.4242 11.3437 20.9444 15.125 20.9444C18.9063 20.9444 20.4658 22.4242 20.4803 22.4387C20.5577 22.5153 20.6608 22.5555 20.7639 22.5555C20.8316 22.5555 20.9 22.5386 20.9621 22.504C21.1199 22.4138 21.1989 22.2309 21.1546 22.0553Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M10.2917 13.6944C11.4039 13.6944 12.3055 12.4321 12.3055 10.875C12.3055 9.31787 11.4039 8.05556 10.2917 8.05556C9.17942 8.05556 8.27777 9.31787 8.27777 10.875C8.27777 12.4321 9.17942 13.6944 10.2917 13.6944Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M19.9583 13.6944C21.0706 13.6944 21.9722 12.4321 21.9722 10.875C21.9722 9.31787 21.0706 8.05556 19.9583 8.05556C18.8461 8.05556 17.9444 9.31787 17.9444 10.875C17.9444 12.4321 18.8461 13.6944 19.9583 13.6944Z",fill:"#222222"})]}));case n.Neutral:return(0,s.jsxs)("svg",Object.assign({width:"30",height:"29",viewBox:"0 0 30 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.75 28C22.2057 28 28.25 21.9557 28.25 14.5C28.25 7.04503 22.2057 1 14.75 1C7.29506 1 1.25 7.04506 1.25 14.5C1.25 21.9557 7.29503 28 14.75 28ZM14.75 29C22.758 29 29.25 22.508 29.25 14.5C29.25 6.49278 22.758 0 14.75 0C6.74278 0 0.25 6.49278 0.25 14.5C0.25 22.508 6.74278 29 14.75 29Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M9.51389 16.1111C10.6261 16.1111 11.5278 14.8488 11.5278 13.2917C11.5278 11.7345 10.6261 10.4722 9.51389 10.4722C8.40165 10.4722 7.5 11.7345 7.5 13.2917C7.5 14.8488 8.40165 16.1111 9.51389 16.1111Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M19.9861 16.1111C21.0984 16.1111 22 14.8488 22 13.2917C22 11.7345 21.0984 10.4722 19.9861 10.4722C18.8739 10.4722 17.9722 11.7345 17.9722 13.2917C17.9722 14.8488 18.8739 16.1111 19.9861 16.1111Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M20.3889 20.9444H9.11111C8.66645 20.9444 8.30556 20.5844 8.30556 20.1389C8.30556 19.6934 8.66645 19.3333 9.11111 19.3333H20.3889C20.8344 19.3333 21.1944 19.6934 21.1944 20.1389C21.1944 20.5844 20.8344 20.9444 20.3889 20.9444Z",fill:"#222222"})]}));case n.Satisfied:return(0,s.jsxs)("svg",Object.assign({width:"30",height:"29",viewBox:"0 0 30 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.375 28C22.8308 28 28.875 21.9558 28.875 14.5C28.875 7.04416 22.8308 1 15.375 1C7.91916 1 1.875 7.04416 1.875 14.5C1.875 21.9558 7.91916 28 15.375 28ZM29.875 14.5C29.875 22.5081 23.3831 29 15.375 29C7.36687 29 0.875 22.5081 0.875 14.5C0.875 6.49187 7.36687 0 15.375 0C23.3831 0 29.875 6.49187 29.875 14.5Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M9.34541 19.028C9.38166 19.1722 10.2863 22.5555 15.375 22.5555C20.4645 22.5555 21.3683 19.1722 21.4046 19.028C21.4489 18.8532 21.3699 18.672 21.2137 18.5817C21.0566 18.4923 20.86 18.5189 20.7303 18.6438C20.715 18.6591 19.1563 20.1389 15.375 20.1389C11.5937 20.1389 10.0342 18.6591 10.0197 18.6446C9.94233 18.568 9.83922 18.5278 9.73611 18.5278C9.66844 18.5278 9.59997 18.5447 9.53794 18.5793C9.38005 18.6695 9.30111 18.8524 9.34541 19.028V19.028Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M10.5417 13.6944C11.6539 13.6944 12.5556 12.4321 12.5556 10.875C12.5556 9.31787 11.6539 8.05556 10.5417 8.05556C9.42943 8.05556 8.52778 9.31787 8.52778 10.875C8.52778 12.4321 9.42943 13.6944 10.5417 13.6944Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M20.2083 13.6944C21.3206 13.6944 22.2222 12.4321 22.2222 10.875C22.2222 9.31787 21.3206 8.05556 20.2083 8.05556C19.0961 8.05556 18.1944 9.31787 18.1944 10.875C18.1944 12.4321 19.0961 13.6944 20.2083 13.6944Z",fill:"#222222"})]}));case n.Happy:return(0,s.jsxs)("svg",Object.assign({width:"30",height:"29",viewBox:"0 0 30 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 28C22.4558 28 28.5 21.9558 28.5 14.5C28.5 7.04416 22.4558 1 15 1C7.54416 1 1.5 7.04416 1.5 14.5C1.5 21.9558 7.54416 28 15 28ZM29.5 14.5C29.5 22.5081 23.0081 29 15 29C6.99187 29 0.5 22.5081 0.5 14.5C0.5 6.49187 6.99187 0 15 0C23.0081 0 29.5 6.49187 29.5 14.5Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M8.97042 19.028C9.00667 19.1722 9.9113 22.5555 15 22.5555C20.0895 22.5555 20.9933 19.1722 21.0296 19.028C21.0739 18.8532 20.9949 18.672 20.8387 18.5817C20.6816 18.4923 20.485 18.5189 20.3553 18.6438C20.34 18.6591 18.7813 20.1389 15 20.1389C11.2187 20.1389 9.65917 18.6591 9.64467 18.6446C9.56733 18.568 9.46422 18.5278 9.36111 18.5278C9.29344 18.5278 9.22497 18.5447 9.16294 18.5793C9.00505 18.6695 8.92611 18.8524 8.97042 19.028V19.028Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M15 17.6006C12.6107 17.6006 11.0246 17.3218 9.06388 16.9408C8.61519 16.8554 7.74438 16.9408 7.74438 18.2603C7.74438 20.8985 10.7757 24.1965 15 24.1965C19.2244 24.1965 22.2557 20.8985 22.2557 18.2603C22.2557 16.9408 21.3841 16.8546 20.9362 16.9408C18.9754 17.3218 17.3901 17.6006 15 17.6006Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M10.1667 13.6944C11.2789 13.6944 12.1806 12.4321 12.1806 10.875C12.1806 9.31787 11.2789 8.05556 10.1667 8.05556C9.05443 8.05556 8.15278 9.31787 8.15278 10.875C8.15278 12.4321 9.05443 13.6944 10.1667 13.6944Z",fill:"#222222"}),(0,s.jsx)("path",{d:"M19.8333 13.6944C20.9456 13.6944 21.8472 12.4321 21.8472 10.875C21.8472 9.31787 20.9456 8.05556 19.8333 8.05556C18.7211 8.05556 17.8194 9.31787 17.8194 10.875C17.8194 12.4321 18.7211 13.6944 19.8333 13.6944Z",fill:"#222222"})]}))}}};function u({emoji:e,label:t,active:i,onClick:n}){return(0,s.jsx)(o.$n,Object.assign({ariaLabel:t,active:i,variant:o.Ak.TERTIARY,size:"small",onClick:()=>n(e.value)},{children:(0,s.jsx)(c,{icon:e.icon})}))}c=d([l.A],c);var h=i(39869),m=i(56147),p=i(79187);const E=[{value:1,altText:m.A.REUSABLES.EMOJI_ALT_DISAPPOINTED,icon:n.Disappointed},{value:2,altText:m.A.REUSABLES.EMOJI_ALT_UNSATISFIED,icon:n.Unsatisfied},{value:3,altText:m.A.REUSABLES.EMOJI_ALT_NEUTRAL,icon:n.Neutral},{value:4,altText:m.A.REUSABLES.EMOJI_ALT_SATISFIED,icon:n.Satisfied},{value:p.kk,altText:m.A.REUSABLES.EMOJI_ALT_HAPPY,icon:n.Happy}];function S({happiness:e,setHappiness:t}){const i=(0,h.Y)();return(0,s.jsx)("div",Object.assign({className:"rating-picker"},{children:(0,s.jsx)(a.e,{children:E.map((n=>(0,s.jsx)(u,{emoji:n,onClick:t,label:i.t(n.altText),active:e===n.value},n.value)))})}))}},77464:(e,t,i)=>{"use strict";i.d(t,{z:()=>c});var n=i(74848),s=i(79339),a=i(56948),o=i(87243),r=i(39869),l=i(56147).A.WORKSHOP.MODEL_RATING;const d="//matterport.com/resources/support";function c({onSupportClicked:e,showSupportCTA:t=!0}){const i=(0,r.Y)();return(0,n.jsxs)("div",Object.assign({className:"rating-thank-you"},{children:[(0,n.jsx)("h4",{children:i.t(l.THANK_YOU_HEADING)}),(0,n.jsx)(s.Ay,{animation:a.a.HandsRaised}),(0,n.jsx)("p",Object.assign({className:"p4"},{children:i.t(l.THANK_YOU_BODY)})),t&&(0,n.jsxs)("small",Object.assign({className:"model-rating-cta"},{children:[i.t(l.THANK_YOU_CTA)," ",(0,n.jsx)(o.N,Object.assign({href:d,onClick:e},{children:i.t(l.THANK_YOU_CTA_LINK_TEXT)}))]}))]}))}},88487:(e,t,i)=>{"use strict";i.d(t,{t:()=>r});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a);function r({children:e,className:t}){const i=(0,s.useCallback)((e=>{e.stopPropagation()}),[]);return(0,n.jsx)("div",Object.assign({className:o()("settings-container settings-box",t),onClick:i},{children:e}))}},56209:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=i(74848),s=i(32485),a=i.n(s),o=i(96847),r=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{t(!l.toggled)}}))]}))}},87137:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var n=i(74848),s=i(96540),a=i(32485),o=i.n(a),r=i(43591),l=i(56147),d=i(3249),c=i(82769),u=i(77897),h=i(90053),m=i(76191),p=i(97191),E=i(94814),S=i(8387),O=i(77570);class g extends s.Component{constructor(e,t){super(e,t),this.outerWrapperRef=(0,s.createRef)(),this.innerWrapperRef=(0,s.createRef)(),this.contentContainerRef=(0,s.createRef)(),this.dragStartScroll=0,this.listening=!1,this.animation=null,this.handlingPaused=!1,this.isDragging=!1,this.isUnmounting=!1,this.handleEvent=e=>{"mousedown"!==e.type&&"pointerdown"!==e.type&&"touchstart"!==e.type||(this.handlingPaused=!1),this.props.suppressDrag||this.handlingPaused||this.inputFilter.handleEvent(e)},this.getScrolledOffset=()=>{if(!this.innerWrapperRef.current||0===this.state.contentSize)return 0;const e=this.props.direction===u.OP.vertical?"scrollTop":"scrollLeft";return this.innerWrapperRef.current[e]/this.state.contentSize},this.getScrollableContainer=()=>this.innerWrapperRef.current||void 0,this.pauseScrollHandling=()=>{this.handlingPaused=!0,this.toggleDownEventListening(!1)},this.scrollWithScrollBar=e=>{if(!this.props.suppressDrag){const t=this.getAxis();e.hasOwnProperty(t)&&this.scrollTo(e[t])}},this.scrollTo=e=>{void 0===e||isNaN(e)||(this.setScrollPosition(Math.max(Math.min(1,e)*this.state.contentSize,0)),this.setState({scrollOffset:this.getScrollPosition()}))},this.handleDragStart=()=>{this.setState({scrollCenter:null}),this.isDragging=!0},this.handlePressStart=()=>{this.dragStartScroll=this.getScrollPosition()},this.handlePressMove=e=>{if(!this.props.suppressDrag){const t=(e[this.getAxis()]+this.dragStartScroll)/this.state.contentSize;this.scrollTo(t)}},this.handleWheelEvent=e=>{if(this.props.suppressDrag)return void e.preventDefault();this.props.direction===u.OP.horizontal&&0===e.deltaX&&0!==e.deltaY?(this.handlePressStart(),this.handlePressMove({x:e.deltaY,y:0})):(this.setState({scrollCenter:null}),this.handleExternalChange())},this.handleClick=e=>{this.props.handleClick&&this.props.handleClick(e)},this.handleDragEnd=(e,t)=>{this.isDragging=!1;const i=e[this.getAxis()]/t,n=Math.min(u.RL,Math.abs(u.RL*i)),s=this.getScrollPosition(),a=i*n/2;this.animation=new m.A({duration:n,startValue:s/this.state.contentSize,endValue:Math.max(0,Math.min((s+a)/this.state.contentSize,1)),easingFunction:E.WD})},this.handleResize=()=>{!this.isUnmounting&&this.innerWrapperRef.current&&this.contentContainerRef.current&&this.state.scrollCenter&&this.scrollToElement(this.state.scrollCenter)},this.debouncedSetState=e=>{new URL(`${document.location}`).searchParams.get("temp-disable-debounce-scroll")?this.setState(e):(cancelAnimationFrame(this.rAFHandle),this.rAFHandle=requestAnimationFrame((()=>{this.isUnmounting||this.setState(e)})))},this.onManualScroll=()=>{this.props.onScrolled&&this.props.onScrolled()},this.onButtonScroll=e=>{if(this.contentContainerRef.current&&this.props.steps){const t=this.props.direction===u.OP.vertical?"offsetHeight":"offsetWidth",i=this.contentContainerRef.current[t]/this.props.steps,n=this.getScrollPosition();let s;s=e?(n+i)/this.state.contentSize:(n-i)/this.state.contentSize,this.scrollTo((0,d.qE)(s,0,1))}},this.onScrollBack=()=>{this.onButtonScroll(!1)},this.onScrollForward=()=>{this.onButtonScroll(!0)},this.onHoldScrollBack=()=>{this.mouseInterval=window.setInterval(this.onScrollBack,300)},this.onHoldScrollForward=()=>{this.mouseInterval=window.setInterval(this.onScrollForward,300)},this.onScrollButtonUp=()=>{window.clearInterval(this.mouseInterval)},this.renderScrollBackButton=()=>{const e=this.getScrollPosition(),t=this.props.direction===u.OP.vertical?"dpad-up":"dpad-left",i=this.context.locale.t(l.A.SCROLLING.SCROLL_BUTTON_LABEL),s=0===e;return(0,n.jsx)(S.$n,{className:o()("scroll-button","scroll-back"),icon:t,ariaLabel:i,variant:S.Ak.TERTIARY,theme:"dark",disabled:s,onClick:this.onScrollBack,onPointerDown:this.onHoldScrollBack,onPointerUp:this.onScrollButtonUp})},this.renderScrollForwardButton=()=>{const e=this.contentContainerRef.current,t=this.innerWrapperRef.current;if(!e||!t)return null;const i=this.getScrollPosition(),s=this.props.direction===u.OP.vertical?"offsetHeight":"offsetWidth",a=this.props.direction===u.OP.vertical?"dpad-down":"dpad-right",r=this.context.locale.t(l.A.SCROLLING.SCROLL_BUTTON_LABEL),d=e[s]-t[s]-i<=0;return(0,n.jsx)(S.$n,{className:o()("scroll-button","scroll-forward"),icon:a,ariaLabel:r,variant:S.Ak.TERTIARY,theme:"dark",disabled:d,onClick:this.onScrollForward,onPointerDown:this.onHoldScrollForward,onPointerUp:this.onScrollButtonUp})},this.state={scrollCenter:null,scrollOffset:0,innerSize:0,contentSize:0},this.resizeObserver=new r.A(this.handleResize),this.inputFilter=new p.A({handlePressStart:this.handlePressStart,handlePressMove:this.handlePressMove,handleDragStart:this.handleDragStart,handleDragEnd:this.handleDragEnd,handleClick:this.handleClick})}componentDidMount(){this.outerWrapperRef.current&&this.resizeObserver.observe(this.outerWrapperRef.current),this.props.thumbScrollingOnly?this.innerWrapperRef.current&&this.innerWrapperRef.current.addEventListener("click",this.handleClick):this.toggleDownEventListening(!0),this.toggleDragHandling(!0),this.innerWrapperRef.current&&this.innerWrapperRef.current.addEventListener("wheel",this.handleWheelEvent),this.inputFilter.setEnabled(!this.props.suppressDrag),this.handleExternalChange(!0)}componentWillUnmount(){this.isUnmounting=!0,this.resizeObserver.disconnect(),this.innerWrapperRef.current&&this.innerWrapperRef.current.removeEventListener("wheel",this.handleWheelEvent),this.toggleDragHandling(!1),this.props.thumbScrollingOnly?this.innerWrapperRef.current&&this.innerWrapperRef.current.removeEventListener("click",this.handleClick):this.toggleDownEventListening(!1)}UNSAFE_componentWillReceiveProps(e){e.thumbScrollingOnly&&!this.props.thumbScrollingOnly?(this.innerWrapperRef.current&&this.innerWrapperRef.current.addEventListener("click",this.handleClick),this.toggleDownEventListening(!1)):!e.thumbScrollingOnly&&this.props.thumbScrollingOnly&&(this.toggleDownEventListening(!0),this.innerWrapperRef.current&&this.innerWrapperRef.current.removeEventListener("click",this.handleClick)),e.suppressDrag!==this.props.suppressDrag&&this.inputFilter.setEnabled(!e.suppressDrag)}componentDidUpdate(e,t){this.props.waitToUpdate||this.handleExternalChange();const i=this.animation;if(i)if(i.isAnimating){const e=i.getUpdatedValue();window.requestAnimationFrame((()=>{this.innerWrapperRef.current&&this.scrollTo(e)}))}else this.animation=null;t.scrollOffset!==this.state.scrollOffset&&this.props.onScrolled&&this.props.onScrolled()}toggleDownEventListening(e){const t=this.handleEvent;this.innerWrapperRef.current&&(e?window.PointerEvent?this.innerWrapperRef.current.addEventListener("pointerdown",t):(this.innerWrapperRef.current.addEventListener("mousedown",t),this.innerWrapperRef.current.addEventListener("touchstart",t)):window.PointerEvent?this.innerWrapperRef.current.removeEventListener("pointerdown",t):(this.innerWrapperRef.current.removeEventListener("mousedown",t),this.innerWrapperRef.current.removeEventListener("touchstart",t)))}toggleDragHandling(e){const t=this.handleEvent;!this.listening&&e?(this.listening=!0,window.PointerEvent?(window.addEventListener("pointermove",t),window.addEventListener("pointerup",t)):(window.addEventListener("mousemove",t),window.addEventListener("mouseleave",t),window.addEventListener("mouseup",t),window.addEventListener("touchmove",t),window.addEventListener("touchend",t),window.addEventListener("touchcancel",t))):this.listening&&!e&&(this.listening=!1,window.PointerEvent?(window.removeEventListener("pointermove",t),window.removeEventListener("pointerup",t)):(window.removeEventListener("mousemove",t),window.removeEventListener("mouseleave",t),window.removeEventListener("mouseup",t),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",t),window.removeEventListener("touchcancel",t)))}getScrollPosition(){if(!this.innerWrapperRef.current)return 0;const e=this.props.direction===u.OP.vertical?"scrollTop":"scrollLeft";return this.innerWrapperRef.current[e]}setScrollPosition(e){if(!this.innerWrapperRef.current)return;const t=this.props.direction===u.OP.vertical?"scrollTop":"scrollLeft";this.innerWrapperRef.current[t]=e}getAxis(){return this.props.direction===u.OP.vertical?"y":"x"}scrollToPercentage(e,t){this.animation=new m.A({duration:t,startValue:this.getScrolledOffset(),endValue:Math.max(0,Math.min(1,e))})}scrollToElement(e){const t=this.innerWrapperRef.current,i=this.outerWrapperRef.current;if(!e||!t||!i)return;if(!(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINS))return;const n=i.parentElement;if(!n)return;const s=this.props.direction===u.OP.vertical;this.setState({scrollCenter:e});const a=s?"offsetTop":"offsetLeft",o=s?"offsetHeight":"offsetWidth";let r=e[a]+e[o]/2,l=e,d=l.parentElement;for(;d&&l!==t;)l=d,d=l.parentElement,r+=l[a];const c=(r-n[o]/2)/this.state.contentSize;this.animation=new m.A({duration:u.RL,startValue:this.getScrollPosition()/this.state.contentSize,endValue:Math.max(0,Math.min(1,c))})}handleExternalChange(e){if(this.isUnmounting||!this.innerWrapperRef.current||!this.contentContainerRef.current)return;const t=this.props.direction===u.OP.vertical?"clientHeight":"clientWidth",i={innerSize:Number(this.innerWrapperRef.current&&this.innerWrapperRef.current[t])||1,contentSize:Number(this.contentContainerRef.current&&this.contentContainerRef.current[t])||1,scrollOffset:this.innerWrapperRef.current&&this.getScrollPosition()};(0,c._)(this.state,i)&&(e?this.setState(i):this.debouncedSetState(i))}needScrolling(){if(!this.contentContainerRef.current||!this.outerWrapperRef.current)return!1;const e=this.props.direction===u.OP.vertical?"offsetHeight":"offsetWidth";return this.contentContainerRef.current[e]>this.outerWrapperRef.current[e]}render(){const{hideScrollbar:e,children:t,onScrollableChanged:i,scrollButtons:s,steps:a,onScrollPositionChange:r,direction:l,className:d}=this.props,{innerSize:c,contentSize:u,scrollOffset:m}=this.state,p=s&&!!a&&this.needScrolling();return(0,n.jsxs)("div",Object.assign({className:o()("outerScrollbarWrapper",[l],[d],{"button-scrolling":p}),ref:this.outerWrapperRef},{children:[p&&this.renderScrollBackButton(),(0,n.jsx)("div",Object.assign({className:"innerScrollbarWrapper",ref:this.innerWrapperRef},{children:(0,n.jsx)("div",Object.assign({className:"paddingScrollbarWrapper",ref:this.contentContainerRef},{children:t}))})),(0,n.jsx)(h.Z,{direction:l,wrapperLength:c,childLength:u,scrollOffset:m,scrollTo:this.scrollWithScrollBar,forceHidden:!!e,onVisibilityChange:i,onScrollPositionChange:r,onThumbDrag:this.onManualScroll}),p&&this.renderScrollForwardButton()]}))}}g.contextType=O.B},1724:(e,t,i)=>{"use strict";i.d(t,{A:()=>S});var n,s=i(74848),a=i(96540),o=i(72909),r=i(32485),l=i.n(r),d=i(77570),c=i(71397),u=i(50178),h=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e[e.OUTLINED=0]="OUTLINED",e[e.ADJUSTABLE=1]="ADJUSTABLE"}(n||(n={}));const p=function*(){let e=0;for(;;)yield e++}();let E=class extends a.Component{constructor(e){super(e),this.elementRef=(0,a.createRef)(),this.onInput=e=>{if(this.props.onInput){const t=e.target;this.props.onInput(t.value)}},this.onKeyPress=e=>{e.stopPropagation();const t=e.which||e.keyCode,i=[c.D.RETURN];if("keydown"===e.type&&!i.includes(t))return!1;const n=e.target;if(this.props.maxLength&&n.value.length>this.props.maxLength&&e.preventDefault(),t===c.D.RETURN)e.shiftKey||(e.preventDefault(),this.blur(),this.props.onDone(n.value));return!1},this.stopPropagation=e=>e.stopPropagation(),this.onChange=e=>{this.updateHeight()},this.onFocus=e=>{this.context.messageBus.broadcast(new u.Yl(this.input,!0)),this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0})},this.onBlur=e=>{this.context.messageBus.broadcast(new u.Yl(this.input,!1)),this.props.onBlur&&this.props.onBlur(e),this.setState({isFocused:!1})},this.setRef=e=>this.input=e,this.instanceId=`textarea-${p.next().value}`,this.state={currentText:e.text,isFocused:!1}}componentDidMount(){this.props.focusOnMount&&this.input&&this.input.focus(),this.props.scrollIntoViewOnMount&&this.input&&this.input.scrollIntoView(),this.updateHeight()}componentWillUnmount(){this.input&&this.input.blur()}UNSAFE_componentWillReceiveProps(e){e.text!==this.props.text&&this.setState({currentText:e.text})}componentDidUpdate(e,t){t.currentText!==this.state.currentText&&this.updateHeight()}getText(){return this.input?this.input.value:""}focus(){this.input.focus()}blur(){this.input.blur()}updateHeight(){if(this.props.inputStyle===n.ADJUSTABLE){const e=this.elementRef.current;if(!this.input||!e)return;e.style.height="",this.input.style.overflowY="";const t=this.input.scrollHeight;e.style.height=`${t}px`,t>e.scrollHeight&&(this.input.style.overflowY="auto")}}render(){const{placeholder:e,tabIndex:t,maxLength:i,inputStyle:a=n.OUTLINED,label:o,name:r,readOnly:d,rows:c}=this.props,{currentText:u,isFocused:h}=this.state,m=r||this.instanceId,p=""===u,E=o&&(a!==n.ADJUSTABLE||h||!p),S=a===n.ADJUSTABLE?1:c;return(0,s.jsxs)("div",Object.assign({className:l()("textarea-container",`textarea-style-${n[a].toLowerCase()}`,{focused:h,readonly:d,placeholder:p}),ref:this.elementRef},{children:[E&&(0,s.jsx)("label",Object.assign({className:"label",htmlFor:m},{children:o})),(0,s.jsx)("textarea",{className:"textarea",value:u,ref:this.setRef,name:m,placeholder:e,maxLength:i,onInput:this.onInput,onChange:this.onChange,onKeyPress:this.onKeyPress,onKeyDown:this.onKeyPress,onKeyUp:this.stopPropagation,onBlur:this.onBlur,onFocus:this.onFocus,rows:S,tabIndex:t,readOnly:d})]}))}};E.contextType=d.B,E=h([o.A,m("design:paramtypes",[Object])],E);const S=E},95439:(e,t,i)=>{"use strict";i.d(t,{Q:()=>s,v:()=>a});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload=e}}s.id="SHOW_TOASTR";class a extends n.u{}a.id="HIDE_TOASTR"},96847:(e,t,i)=>{"use strict";i.d(t,{l:()=>l});var n=i(74848),s=i(32485),a=i.n(s),o=i(56147),r=i(39869);function l(e){const{id:t,onToggle:i,labelledBy:s,className:l,onOffLabel:d=!1,enabled:c=!0,toggled:u,testId:h}=e,m=(0,r.Y)(),p=m.t(o.A.GENERIC.SETTING_ON),E=m.t(o.A.GENERIC.SETTING_OFF),S=u?p:E;return(0,n.jsxs)("div",Object.assign({className:a()("reusable-toggle",l,{"toggle-on":u,"has-labels":d,enabled:c}),id:t,onClick:e=>{e.stopPropagation(),c&&i&&i(e,!u)},role:"checkbox","aria-checked":u,"aria-labelledby":s,"data-testid":h},{children:[d&&(0,n.jsx)("span",Object.assign({className:"toggle-label"},{children:S})),(0,n.jsx)("div",Object.assign({className:"track"},{children:(0,n.jsx)("div",{className:"thumb"})}))]}))}},23028:(e,t,i)=>{"use strict";i.d(t,{a:()=>l});var n=i(74848),s=i(56147),a=i(39869),o=i(87243);const{EDIT_BAR:r}=s.A.WORKSHOP;function l({tool:e}){const{helpHref:t,helpMessagePhraseKey:i}=e,s=(0,a.Y)(),l=s.t(r.HELP_LINK);return(0,n.jsxs)("div",Object.assign({className:"tool-help"},{children:[i&&s.t(i),t&&(0,n.jsx)(o.N,Object.assign({href:t},{children:l}))]}))}},45056:(e,t,i)=>{"use strict";i.d(t,{k:()=>h});var n=i(74848),s=i(32485),a=i.n(s),o=i(39869),r=i(56147),l=i(57470),d=i(8387);function c({analytic:e,children:t,className:i}){const s=(0,o.Y)().t(r.A.REUSABLES.HELP_BUTTON_TOOLTIP_MESSAGE);return(0,n.jsx)(l.Q,Object.assign({icon:"help",tooltip:s,popupSize:"medium",analytic:`${e}_help_click`,className:a()("help-button",i),variant:d.Ak.TERTIARY},{children:t}))}var u=i(23028);function h({tool:e}){const{analytic:t,helpMessagePhraseKey:i}=e;return i?(0,n.jsx)(c,Object.assign({analytic:t,className:"tool-help-button"},{children:(0,n.jsx)(u.a,{tool:e})})):null}},57470:(e,t,i)=>{"use strict";i.d(t,{Q:()=>u});var n=i(96540),s=i(64491),a=i(28479),o=i(78956),r=i(8387),l=i(68375),d=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{T(!1)}),[A]);const v=!(!g||!m),N=c||v?"static":"hover";let I;v?I=m:c&&!g||(I=i);const L={placement:s,preventOverflow:v?u:void 0,onToggle:e=>{e||T(e)},trigger:N,theme:v?"light":"dark",size:v?p:"small"},f=`button-tooltip-${i}-${N}`,b=t||S.label||i;return(0,n.createElement)(r.$n,Object.assign({},S,{key:f,ariaLabel:b,onClick:e=>{e.stopPropagation(),g||(h&&O.trackGuiEvent(h,{tool:_}),E&&E()),T(!g)},tooltip:I,tooltipOptions:L}))}},65780:(e,t,i)=>{"use strict";i.d(t,{w:()=>u});var n,s=i(74848),a=i(96540),o=i(32485),r=i.n(o),l=i(72909),d=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},c=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};!function(e){e.OPEN="open",e.UNLOADING="unloading",e.CLOSED="closed"}(n||(n={}));let u=class extends a.Component{constructor(e){super(e),this.ref=(0,a.createRef)(),this.closeTimeout=0,this.onTransitionCancel=e=>{e.target===e.currentTarget&&this.state.phase===n.UNLOADING&&(window.clearTimeout(this.closeTimeout),this.setState({phase:n.CLOSED,activeChild:null}))},this.onTransitionEnd=e=>{e.target===e.currentTarget&&this.state.phase===n.UNLOADING&&(window.clearTimeout(this.closeTimeout),this.setState({phase:n.CLOSED,activeChild:null}))},this.state={phase:e.open?n.OPEN:n.CLOSED,activeChild:e.selectChild&&e.childKey||null}}componentDidMount(){this.ref.current&&this.ref.current.addEventListener("transitioncancel",this.onTransitionCancel),this.props.focus&&this.focus()}componentWillUnmount(){window.clearTimeout(this.closeTimeout),this.ref.current&&this.ref.current.removeEventListener("transitioncancel",this.onTransitionCancel)}UNSAFE_componentWillReceiveProps(e){const{open:t,childKey:i}=this.props;t&&!e.open?(this.setState({phase:n.UNLOADING}),window.clearTimeout(this.closeTimeout),this.closeTimeout=window.setTimeout((()=>{this.state.phase===n.UNLOADING&&this.setState({phase:n.CLOSED,activeChild:null})}),1e3)):!t&&e.open?(window.clearTimeout(this.closeTimeout),this.setState({phase:n.OPEN,activeChild:e.selectChild&&e.childKey||null})):i!==e.childKey&&this.setState({activeChild:e.selectChild&&e.childKey||null})}focus(){this.ref.current&&this.ref.current.focus()}renderChildren(){const{children:e,selectChild:t}=this.props,{phase:i,activeChild:s}=this.state;return i===n.CLOSED||t&&!s?null:t?e&&Array.isArray(e)&&e.length&&e.find((e=>e&&e.key===s))||null:e}render(){const{className:e,firstChild:t,style:i,onKeyDown:a,onPointerDown:o,onPointerUp:l,onClick:d,focus:c}=this.props,{phase:u}=this.state,h=r()({unloading:u===n.UNLOADING},e);return(0,s.jsxs)("div",Object.assign({ref:this.ref,className:h,style:i,onTransitionEnd:this.onTransitionEnd,onClick:d,onPointerDown:o,onPointerUp:l,onKeyDown:a,tabIndex:c?0:void 0,"aria-live":this.props["aria-live"],"aria-atomic":this.props["aria-atomic"]},{children:[t||null,this.renderChildren()]}))}};u=d([l.A,c("design:paramtypes",[Object])],u)},82361:(e,t,i)=>{"use strict";i.d(t,{m:()=>m});var n=i(74848),s=i(56147),a=i(23339),o=i(87965),r=i(39869),l=i(87635),d=i(28479),c=i(10110),u=i(68375),h=i(50747);function m(){const e=(0,h.F)(),t=(0,u.s)(),i=(0,r.Y)(),m=(0,l.J)(),p=(0,d.L)(),E=i=>{i.stopPropagation();const n=m===a.t.IMPERIAL?a.t.METRIC:a.t.IMPERIAL;t.trackGuiEvent(`units_click_${n}`,{tool:p}),e.setLocalStorageProperty(o.Y.UnitType,n)},S=i.t(s.A.MEASUREMENT_UNITS),O=i.t(s.A.MEASUREMENT_IMPERIAL),g=i.t(s.A.MEASUREMENT_METRIC),T=m===a.t.METRIC;return(0,n.jsxs)("div",Object.assign({className:"settings-toggle units-setting"},{children:[(0,n.jsx)("div",Object.assign({className:"settings-label"},{children:S})),(0,n.jsxs)("div",Object.assign({className:"radio-group radio-buttons"},{children:[(0,n.jsx)(c.a,Object.assign({name:"unit",value:a.t.IMPERIAL,id:"unit-imperial",enabled:!0,checked:!T,onChange:E},{children:O})),(0,n.jsx)(c.a,Object.assign({name:"unit",value:a.t.METRIC,id:"unit-metric",enabled:!0,checked:T,onChange:E},{children:g}))]}))]}))}},34806:(e,t,i)=>{"use strict";i.d(t,{J:()=>u});var n=i(74848),s=i(32485),a=i.n(s),o=i(56147),r=i(39869),l=i(8387),d=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s{"use strict";var n;i.d(t,{X:()=>s,a:()=>n}),function(e){e.HandsRaised="hands-raised",e.RotatePhone="rotate-phone"}(n||(n={}));const s=new Map;s.set(n.HandsRaised,{alt:"Hands Raised",json:i(32244),fallback:i(10086)}),s.set(n.RotatePhone,{alt:"Rotate your device to portrait orientation",json:i(2377),fallback:i(28659)})},79339:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>c});var n=i(74848),s=i(96540),a=i(72909),o=i(56948),r=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},l=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let d=class extends s.Component{constructor(e){super(e),this.lottieTargetRef=(0,s.createRef)(),this.isUnmounting=!1,this.loadLottie=async()=>this.lottieLib?this.lottieLib:await i.e(4456).then(i.t.bind(i,49891,23)),this.updateAnimation=async()=>{const{animation:e,loop:t=!1}=this.props;let i;this.setState({fallbackActive:!1});try{i=await this.loadLottie()}catch(e){if(this.isUnmounting)return;return void this.setState({fallbackActive:!0})}const n=o.X.get(e);if(i&&n&&this.lottieTargetRef.current){const e=i.loadAnimation({loop:t,container:this.lottieTargetRef.current,renderer:"svg",autoplay:!1,animationData:n.json});e.addEventListener("data_failed",(()=>{this.isUnmounting||this.setState({fallbackActive:!0})})),setTimeout((()=>{this.isUnmounting||e.play()}),50)}},this.renderFallback=()=>{const{animation:e}=this.props,t=o.X.get(e);return t?(0,n.jsx)("img",{className:"lottie-fallback",src:t.fallback,alt:t.alt}):null},this.state={fallbackActive:!1}}componentDidMount(){this.updateAnimation()}componentDidUpdate(e){e.animation===this.props.animation&&e.loop===this.props.loop||this.updateAnimation()}componentWillUnmount(){this.isUnmounting=!0}render(){return(0,n.jsxs)("div",Object.assign({className:"lottie"},{children:[(0,n.jsx)("div",{className:"lottie-animation",ref:this.lottieTargetRef}),this.state.fallbackActive&&this.renderFallback()]}))}};d=r([a.A,l("design:paramtypes",[Object])],d);const c=d},85949:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var n=i(74848),s=i(96540),a=i(77897),o=i(90053),r=i(82769),l=i(76191),d=i(97191),c=i(94814),u=i(32485),h=i.n(u),m=i(43591);class p extends s.Component{constructor(e){super(e),this.horizontal=(0,a.O$)(),this.vertical=(0,a.O$)(),this.prevSuppressDrag=!1,this.manuallyMoved=!1,this.isUnmounting=!1,this.scrollPosition={horizontal:a.BB.Beginning,vertical:a.BB.End},this.handleEvent=e=>{this.inputFilter.handleEvent(e)},this.getScrollableContainer=()=>this.innerWrapper,this.getScrolledOffset=e=>{const t=a.RX[e].scrollOffset;return this.innerWrapper[t]/this.state[e].childLength},this.debouncedSetState=e=>{new URL(`${document.location}`).searchParams.get("temp-disable-debounce-scroll")?this.setState(e):(cancelAnimationFrame(this.rAFHandle),this.rAFHandle=requestAnimationFrame((()=>{this.isUnmounting||this.setState(e)})))},this.state={horizontal:(0,a.XU)(),vertical:(0,a.XU)()},this.scrollTo=this.scrollTo.bind(this),this.handlePressStart=this.handlePressStart.bind(this),this.handlePressMove=this.handlePressMove.bind(this),this.handleDragEnd=this.handleDragEnd.bind(this),this.handleDragStart=this.handleDragStart.bind(this),this.handleWheelEvent=this.handleWheelEvent.bind(this),this.handleClick=this.handleClick.bind(this),this.toggleVisibility=this.toggleVisibility.bind(this),this.hasManuallyMoved=this.hasManuallyMoved.bind(this),this.prevSuppressDrag=!!e.suppressDrag,this.inputFilter=new d.A({handlePressStart:this.handlePressStart,handlePressMove:this.handlePressMove,handleDragStart:this.handleDragStart,handleDragEnd:this.handleDragEnd,handleClick:this.handleClick});const t=this.handleEvent;window.PointerEvent||(window.addEventListener("mousemove",t),window.addEventListener("mouseleave",t),window.addEventListener("mouseup",t)),window.addEventListener("pointermove",t),window.addEventListener("pointerup",t),window.addEventListener("touchmove",t),window.addEventListener("touchend",t),window.addEventListener("touchcancel",t)}componentDidMount(){if(this.resizeObserver=new m.A((()=>this.handleResize())),this.resizeObserver.observe(this.outerWrapper),this.innerWrapper.addEventListener("wheel",this.handleWheelEvent,!0),this.props.thumbScrollingOnly)this.innerWrapper.addEventListener("click",this.handleClick);else{const e=this.handleEvent;this.innerWrapper.addEventListener("mousedown",e),this.innerWrapper.addEventListener("pointerdown",e),this.innerWrapper.addEventListener("touchstart",e)}this.firstChild=this.innerWrapper.firstElementChild,this.props.onScrollPositionChange&&this.props.onScrollPositionChange(),this.props.hasOwnProperty("suppressDrag")&&this.inputFilter.setEnabled(!!this.props.suppressDrag)}componentWillUnmount(){var e;this.isUnmounting=!0;const t=this.handleEvent;null===(e=this.resizeObserver)||void 0===e||e.disconnect(),window.PointerEvent||(window.removeEventListener("mousemove",t),window.removeEventListener("mouseleave",t),window.removeEventListener("mouseup",t)),window.removeEventListener("pointermove",t),window.removeEventListener("touchmove",t),window.removeEventListener("pointerup",t),window.removeEventListener("touchend",t),window.removeEventListener("touchcancel",t),this.innerWrapper.removeEventListener("wheel",this.handleWheelEvent,!0),this.props.thumbScrollingOnly?this.innerWrapper.removeEventListener("click",this.handleClick):(this.innerWrapper.removeEventListener("mousedown",t),this.innerWrapper.removeEventListener("pointerdown",t),this.innerWrapper.removeEventListener("touchstart",t))}componentDidUpdate(){if(this.props.waitToUpdate||this.handleExternalChange(),this.prevSuppressDrag!==this.props.suppressDrag&&(this.inputFilter.setEnabled(!!this.props.suppressDrag),this.props.suppressDrag&&(this.manuallyMoved=!1),this.prevSuppressDrag=!!this.props.suppressDrag),!this.horizontal.animation&&!this.vertical.animation)return;const e={};for(const t in this.state){const i=t,n=this[i].animation;if(n)if(n.isAnimating){const t=(0,a.s4)(i);e[t]=n.getUpdatedValue()}else this[i].animation=null}Object.keys(e).length>0&&window.requestAnimationFrame((()=>{this.innerWrapper&&this.scrollTo(e)}))}scrollTo(e){if(!e.hasOwnProperty(a._0.x)&&!e.hasOwnProperty(a._0.y))return;const t={};for(const i of this.getVisibleAxes(e)){const n=(0,a.mn)(i),s=a.RX[n].scrollOffset,o=e[i];if(void 0!==o){if(isNaN(o))return;this.innerWrapper[s]=Math.max(Math.min(1,o)*this.state[n].childLength,0),t[n]=Object.assign(Object.assign({},this.state[n]),{scrollOffset:this.innerWrapper[s]})}}this.setState(t)}animatedScrollTo(e,t){if(e.hasOwnProperty(a._0.x)||e.hasOwnProperty(a._0.y))for(const i of this.getVisibleAxes(e)){const n=(0,a.mn)(i),s=a.RX[n].scrollOffset;this[n].animation=new l.A({duration:t||a.RL,startValue:this.innerWrapper[s]/this.state[n].childLength,endValue:Math.max(0,Math.min(1,e[i]))})}}setScrollCenter(e){if(!(e&&e.compareDocumentPosition(this.innerWrapper)&Node.DOCUMENT_POSITION_CONTAINS))return;this.scrollCenter=e;const t={},i={};for(const n of this.getVisibleAxes(this.state)){const s=(0,a.s4)(n);t[s]=e[a.RX[n].positionOffset]+e[a.RX[n].offsetLength]/2;let o=e;const r=t[s];for(;o.parentElement&&o!==this.innerWrapper;)o=o.parentElement,r&&(t[s]=r+o[a.RX[n].positionOffset]);if(this.outerWrapper.parentElement){const e=this.outerWrapper.parentElement[a.RX[n].offsetLength];r&&(i[s]=(r-e/2)/this.state[n].childLength)}}Object.keys(i).length>0&&this.animatedScrollTo(i)}getVisibleAxes(e){const t=[];for(const i in e)(e[i]||"number"==typeof e[i])&&(i in a._0&&this.state[(0,a.mn)(i)].isVisible||i in a.OP&&this.state[i].isVisible)&&t.push(i);return t}handleDragStart(){delete this.scrollCenter,this.hasManuallyMoved()}handlePressStart(){this.horizontal.dragStartScroll=this.innerWrapper.scrollLeft,this.vertical.dragStartScroll=this.innerWrapper.scrollTop}handlePressMove(e){const t={};for(const i of this.getVisibleAxes(e)){const n=(0,a.mn)(i);t[i]=(e[i]+this[n].dragStartScroll)/this.state[n].childLength}this.scrollTo(t)}handleWheelEvent(e){this.props.singleScrollDirection===a.OP.horizontal&&0===e.deltaX&&0!==e.deltaY?(this.handlePressStart(),this.handlePressMove({x:e.deltaY,y:0})):(this.hasManuallyMoved(),this.handleExternalChange())}handleClick(e){this.props.handleClick&&this.props.handleClick(e)}toggleVisibility(e){return t=>{const i=Object.assign(Object.assign({},this.state[e]),{isVisible:t});if((0,r._)(this.state[e],i)){const t={};t[e]=i,this.setState(t),this.props.onScrollbarVisibilityChange&&this.props.onScrollbarVisibilityChange()}}}toggleScrollPosition(e){return t=>{this.scrollPosition[e]=t,this.props.onScrollPositionChange&&this.props.onScrollPositionChange(t)}}handleDragEnd(e,t){for(const i of this.getVisibleAxes(e)){const n=(0,a.mn)(i),s=e[i]/t,o=Math.min(a.RL,Math.abs(a.RL*s)),r=this.innerWrapper[a.RX[n].scrollOffset],d=s*o/2;this[n].animation=new l.A({duration:o,startValue:r/this.state[n].childLength,endValue:Math.max(0,Math.min((r+d)/this.state[n].childLength,1)),easingFunction:c.WD})}this.setState({})}handleResize(){this.isUnmounting||(this.scrollCenter&&this.setScrollCenter(this.scrollCenter),this.handleExternalChange())}handleExternalChange(){if(this.isUnmounting)return;const e={};for(const t in this.state){const i=t,n=a.RX[i].clientLength,s=Object.assign(Object.assign({},this.state[i]),{wrapperLength:Number(this.innerWrapper&&this.innerWrapper[n])||1,childLength:Number(this.firstChild&&this.firstChild[n])||1,scrollOffset:this.innerWrapper&&this.innerWrapper[a.RX[i].scrollOffset]});(0,r._)(this.state[i],s)&&(e[i]=s)}Object.keys(e).length>0&&this.debouncedSetState(e)}hasManuallyMoved(){this.manuallyMoved=!0,this.props.onScrolled&&this.props.onScrolled()}resetManuallyMoved(){this.manuallyMoved=!1}renderScrollbar(e,t){const{forceHidden:i}=this.props,{wrapperLength:s,childLength:a,scrollOffset:r}=t;return(0,n.jsx)(o.Z,{direction:e,ref:e=>{this.horizontal.scrollbar=e},wrapperLength:s,childLength:a,scrollOffset:r,scrollTo:this.scrollTo,onVisibilityChange:this.toggleVisibility(e),onScrollPositionChange:this.toggleScrollPosition(e),forceHidden:i,onThumbDrag:this.hasManuallyMoved})}render(){const{scrollbarHeight:e,singleScrollDirection:t,name:i,children:s}=this.props,o={maxHeight:e||""},r=t||`${a.OP.vertical} ${a.OP.horizontal}`;return(0,n.jsxs)("div",Object.assign({className:h()("outerScrollbarWrapper",r,`scrollbar-${i}`),ref:e=>{e&&(this.outerWrapper=e)},style:o},{children:[(0,n.jsx)("div",Object.assign({className:"innerScrollbarWrapper",ref:e=>{e&&(this.innerWrapper=e)}},{children:(0,n.jsx)("div",Object.assign({className:"paddingScrollbarWrapper"},{children:s}))})),t!==a.OP.vertical&&this.renderScrollbar(a.OP.horizontal,this.state.horizontal),t!==a.OP.horizontal&&this.renderScrollbar(a.OP.vertical,this.state.vertical)]}))}}},77897:(e,t,i)=>{"use strict";i.d(t,{BB:()=>u,J5:()=>h,O$:()=>a,OP:()=>o,RL:()=>n,RX:()=>c,XU:()=>s,_0:()=>r,mn:()=>d,s4:()=>l});const n=250,s=()=>({wrapperLength:1,childLength:1,scrollOffset:1,isVisible:!1}),a=()=>({scrollbar:null,animation:null,dragStartScroll:0});var o,r;!function(e){e.horizontal="horizontal",e.vertical="vertical"}(o||(o={})),function(e){e.x="x",e.y="y"}(r||(r={}));const l=e=>{switch(e){case o.horizontal:return r.x;case o.vertical:return r.y}throw Error()},d=e=>{switch(e){case r.x:return o.horizontal;case r.y:return o.vertical}throw Error()},c={[o.horizontal]:{scrollOffset:"scrollLeft",offsetLength:"offsetWidth",clientLength:"clientWidth",positionOffset:"offsetLeft",lengthName:"width",offsetName:"left",eventPosition:"clientX",delta:r.x},[o.vertical]:{scrollOffset:"scrollTop",offsetLength:"offsetHeight",clientLength:"clientHeight",positionOffset:"offsetTop",lengthName:"height",offsetName:"top",eventPosition:"clientY",delta:r.y}};var u;!function(e){e.Beginning="Beginning",e.Middle="Middle",e.End="End",e.None="None"}(u||(u={}));const h=(e,t)=>t?e<.01?u.Beginning:1-e<.01?u.End:u.Middle:u.None},90053:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});var n=i(74848),s=i(96540),a=i(82769),o=i(97191),r=i(77897),l=i(78197);class d extends s.Component{constructor(e){super(e),this.state={visible:!1,trackLength:1,thumbLength:1,thumbOffset:0},this.direction=r.RX[e.direction],this.handlePressStart=this.handlePressStart.bind(this),this.handlePressMove=this.handlePressMove.bind(this),this.handleTrackClick=this.handleTrackClick.bind(this),this.inputFilter=new o.A({handlePressStart:this.handlePressStart,handlePressMove:this.handlePressMove}),window.PointerEvent||(window.addEventListener("mousemove",this.inputFilter.handleEvent),window.addEventListener("mouseleave",this.inputFilter.handleEvent),window.addEventListener("mouseup",this.inputFilter.handleEvent)),window.addEventListener("pointermove",this.inputFilter.handleEvent),window.addEventListener("pointerup",this.inputFilter.handleEvent)}componentWillUnmount(){window.PointerEvent||(window.removeEventListener("mousemove",this.inputFilter.handleEvent),window.removeEventListener("mouseleave",this.inputFilter.handleEvent),window.removeEventListener("mouseup",this.inputFilter.handleEvent)),window.removeEventListener("pointermove",this.inputFilter.handleEvent),window.removeEventListener("pointerup",this.inputFilter.handleEvent)}getTrackLength(){return Number(this.thumbTrack&&this.thumbTrack[this.direction.clientLength]||this.props.containerSize.width)}handleTrackClick(e){if(e.target!==this.thumbTrack)return;const t=this.direction.eventPosition,i=this.thumbTrack.getBoundingClientRect()[this.direction.offsetName],n=e[t]0&&t>0){const n=this.getTrackLength(),s=e/t*n,o={thumbLength:s,visible:t>e,thumbOffset:Math.min(i/t*n,n-s)};if((0,a._)(this.state,o)){const e=this.state.visible!==o.visible;e&&this.props.onVisibilityChange&&this.props.onVisibilityChange(o.visible);const t=(0,r.J5)(o.thumbOffset/(n-s),o.visible);(t!==this.scrollPosition||e)&&(this.scrollPosition=t,this.props.onScrollPositionChange&&this.props.onScrollPositionChange(t)),this.setState(o)}}}render(){const e={[`${this.direction.lengthName}`]:this.state.thumbLength+"px",[`${this.direction.offsetName}`]:this.state.thumbOffset+"px"},t=this.inputFilter.handleEvent,i=window.PointerEvent,s=i?t:void 0,a=i?void 0:t,o=i?void 0:t;return(0,n.jsx)("div",{children:this.state.visible&&!this.props.forceHidden&&(0,n.jsx)("div",Object.assign({className:"scrollbarTrack "+this.props.direction,onClick:this.handleTrackClick,ref:e=>{e&&(this.thumbTrack=e)}},{children:(0,n.jsx)("div",{className:"scrollbarThumb",style:e,onPointerDown:s,onMouseDown:o,onTouchStart:a})}))})}}const c=(0,l.B)(d)},87976:(e,t,i)=>{"use strict";i.d(t,{H:()=>p});var n=i(74848),s=i(96540),a=i(72909),o=i(32485),r=i.n(o),l=i(43591),d=i(97610),c=i(97191),u=i(94814),h=function(e,t,i,n){var s,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,n);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(a<3?s(o):a>3?s(t,i,o):s(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},m=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};let p=class extends s.Component{constructor(e){super(e),this.usePointerEvents=window.PointerEvent,this.scrollerRef=(0,s.createRef)(),this.trackRef=(0,s.createRef)(),this.thumbRef=(0,s.createRef)(),this.focusedSelector=null,this.listening=!1,this.startY=0,this.onThumb=!1,this.scrollTop=0,this.isUnmounting=!1,this.handleResize=()=>{this.isUnmounting||(this.computeStateValues(),this.focusedSelector&&this.scrollToSelector(this.focusedSelector))},this.handleWheelEvent=e=>{this.props.disabled||(this.onThumb=!1,this.focusedSelector=null,this.scrollBy(e.deltaY))},this.handleEvent=e=>{if(this.scrollerRef.current&&!this.props.disabled){this.scrollVelocityPixelsMS=0;if("mousedown"===e.type||"pointerdown"===e.type||"touchstart"===e.type){const t=e.target;this.onThumb=t&&t.classList.contains("scroller-thumb")}this.focusedSelector=null,this.inputFilter.handleEvent(e)}},this.handlePressStart=e=>{this.onThumb?this.startY=this.getThumbTop():this.startY=this.getScrollTop()},this.handlePressMove=e=>{const{trackHeight:t,contentsHeight:i}=this.state;let n;this.onThumb?(n=(this.startY-e.y)/t,this.scrollToPercent(n)):(n=(e.y+this.startY)/i,this.scrollToPercent(n))},this.handleDragStart=()=>{},this.handleDragEnd=(e,t)=>{this.scrollVelocityPixelsMS=e.y/t,this.lastScrollTimeMS=void 0,Math.abs(this.scrollVelocityPixelsMS)<1?this.scrollVelocityPixelsMS=0:this.animateScroll()},this.onTrackClick=e=>{const t=this.trackRef.current;if(e.target!==t||!t)return;const i=this.getThumbHeight(),n=this.getThumbTop(),s=t.getBoundingClientRect().top,a=this.state.trackHeight;let o;o=e.clientY{this.isOverflowing()&&this.scrollerRef.current&&!isNaN(e)&&this.setScrollPosition(Math.max(Math.min(1,e)*this.state.contentsHeight,0))},this.scrollBy=e=>{this.isOverflowing()&&this.scrollerRef.current&&!isNaN(e)&&this.setScrollPosition(Math.max(this.scrollerRef.current.scrollTop+e,0))},this.computeStateValues=()=>{if(this.props.disabled)return;const e=this.scrollerRef.current,t=this.trackRef.current,i=Number(e&&e.clientHeight)||1,n=Number(t&&t.clientHeight)||i,s=Number(this.contents&&this.contents.clientHeight)||1,a=Number(this.contents&&this.contents.offsetTop)||0;this.debouncedSetState({scrollerHeight:i,contentsHeight:s,trackHeight:n,offsetTop:a})},this.debouncedSetState=e=>{new URL(`${document.location}`).searchParams.get("temp-disable-debounce-scroll")?this.setState(e):(cancelAnimationFrame(this.rAFHandle),this.rAFHandle=requestAnimationFrame((()=>{this.isUnmounting||this.setState(e)})))},this.setContentsRef=e=>{e?(this.contents=e,this.resizeObserver.observe(this.contents)):this.contents&&this.resizeObserver.unobserve(this.contents)},this.setContainerRef=e=>{e?(this.container=e,this.resizeObserver.observe(e)):this.container&&this.resizeObserver.unobserve(this.container)},this.state={scrollerHeight:1,contentsHeight:1,trackHeight:1,offsetTop:0},this.resizeObserver=new l.A(this.handleResize),this.inputFilter=new c.A({handlePressStart:this.handlePressStart,handlePressMove:this.handlePressMove,handleDragStart:this.handleDragStart,handleDragEnd:this.handleDragEnd})}componentDidMount(){this.toggleEventHandling(!0),this.computeStateValues()}componentWillUnmount(){this.isUnmounting=!0,this.toggleEventHandling(!1),this.resizeObserver&&this.resizeObserver.disconnect()}componentDidUpdate(e,t){this.scrollerRef.current&&e.disabled!==this.props.disabled&&(this.props.disabled?this.toggleEventHandling(!1):this.toggleEventHandling(!0))}resetScrollTop(){this.focusedSelector=null,this.setScrollPosition(0)}getScroller(){return this.scrollerRef.current}getScrollHeight(){return Number(this.contents&&this.contents.clientHeight)||0}scrollToElement(e,t="center",i){const n=this.scrollerRef.current;if(!e||!n)return;if(!(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINS))return;if(!this.isOverflowing())return;const{contentsHeight:s,scrollerHeight:a,offsetTop:o}=this.state;let r=e.offsetTop;if(!i){let t=e;for(;t.parentElement&&(t=t.parentElement,r+=t.offsetTop,t.offsetParent!==this.contents););}let l=o+r;"center"===t&&(l+=e.offsetHeight/2-a/2),l=Math.max(Math.min(s,l),0);const d=n.scrollTop,c=l-d;let h=0;const m=e=>{h||(h=e);const t=e-h,i=(0,u.e2)(t,d,c,500);n.scrollTo(0,i),t<500?window.requestAnimationFrame(m):this.setScrollPosition(l)};window.requestAnimationFrame(m)}scrollToSelector(e,t="center",i){const n=this.scrollerRef.current;if(!n)return;const s=n.querySelector(e);s?(this.focusedSelector=e,this.scrollToElement(s,t,i)):this.focusedSelector=null}setScrollPosition(e){const t=this.scrollerRef.current;if(t){const i=t.scrollTop;t.scrollTop=e,this.scrollTop=this.getScrollTop(),this.props.onScrolled&&i!==this.scrollTop&&this.props.onScrolled(this.scrollTop);const n=this.thumbRef.current;n&&(n.style.height=`${this.getThumbHeight()}px`,n.style.top=`${this.getThumbTop()}px`)}}toggleEventHandling(e){const t=this.scrollerRef.current,i=this.handleEvent,n=d.u?{passive:!0}:void 0;!this.listening&&e&&t?(t.addEventListener("wheel",this.handleWheelEvent,n),this.usePointerEvents?(t.addEventListener("pointerdown",i,n),window.addEventListener("pointermove",i,n),window.addEventListener("pointerup",i,n)):(t.addEventListener("touchstart",i,n),t.addEventListener("mousedown",i,n),window.addEventListener("mousemove",i,n),window.addEventListener("mouseleave",i,n),window.addEventListener("mouseup",i,n),window.addEventListener("touchmove",i,n),window.addEventListener("touchend",i,n),window.addEventListener("touchcancel",i,n))):this.listening&&!e&&t&&(t.removeEventListener("wheel",this.handleWheelEvent),this.usePointerEvents?(t.removeEventListener("pointerdown",i),window.removeEventListener("pointermove",i),window.removeEventListener("pointerup",i)):(t.removeEventListener("touchstart",i),t.removeEventListener("mousedown",i),window.removeEventListener("mousemove",i),window.removeEventListener("mouseleave",i),window.removeEventListener("mouseup",i),window.removeEventListener("touchmove",i),window.removeEventListener("touchend",i),window.removeEventListener("touchcancel",i)))}animateScroll(){window.requestAnimationFrame((e=>{void 0===this.lastScrollTimeMS&&(this.lastScrollTimeMS=e);let t=e-this.lastScrollTimeMS;if(t>0){this.scrollBy(this.scrollVelocityPixelsMS*t);const e=this.scrollVelocityPixelsMS>0?-1:1;for(;t>0;)this.scrollVelocityPixelsMS+=this.scrollVelocityPixelsMS*this.scrollVelocityPixelsMS*.01*e,t-=1}Math.abs(this.scrollVelocityPixelsMS)>.001&&this.animateScroll()}))}getThumbTop(){const{contentsHeight:e,trackHeight:t}=this.state;return Math.min(this.scrollTop/e*t,t-this.getThumbHeight())}getThumbHeight(){const{scrollerHeight:e,contentsHeight:t,trackHeight:i}=this.state;return e/t*i}getScrollTop(){return this.scrollerRef.current?this.scrollerRef.current.scrollTop:0}isOverflowing(){const{contentsHeight:e,scrollerHeight:t,offsetTop:i}=this.state;return e+i>t}renderTrack(){const e={height:`${this.getThumbHeight()}px`,top:`${this.getThumbTop()}px`};return(0,n.jsx)("div",Object.assign({ref:this.trackRef,className:"scroller-track",onClick:this.onTrackClick},{children:(0,n.jsx)("div",{ref:this.thumbRef,className:"scroller-thumb",style:e,onPointerDown:this.usePointerEvents?this.handleEvent:void 0,onMouseDown:this.usePointerEvents?void 0:this.handleEvent,onTouchStart:this.usePointerEvents?void 0:this.handleEvent})}))}render(){const{children:e,className:t,hideThumb:i,disabled:s}=this.props,a=!s&&this.isOverflowing();return(0,n.jsxs)("div",Object.assign({ref:this.setContainerRef,className:r()("scroller-container",t)},{children:[(0,n.jsx)("div",Object.assign({className:"scroller-scroller",ref:this.scrollerRef},{children:(0,n.jsx)("div",Object.assign({className:"scroller-contents",ref:this.setContentsRef},{children:e}))})),!i&&a&&this.renderTrack()]}))}};p=h([a.A,m("design:paramtypes",[Object])],p)},55666:(e,t,i)=>{"use strict";i.d(t,{L:()=>p});var n=i(74848),s=i(32485),a=i.n(s),o=i(75742),r=i(39905),l=i(96540);function d(e){const{text:t,keyPrefix:i,markers:s}=e,[a,o]=s,r=[];let d=t,c=d.search(`${a}|${o}`),u=d.search(a);for(;c>-1;){const e=c===u,s=d.slice(0,c),h=t.length-d.length,m=`${i},${h}-${h+c}`;e?r.push((0,n.jsx)(l.Fragment,{children:s},m)):r.push((0,n.jsx)("span",Object.assign({"data-blocktype":"marker"},{children:s}),m)),d=d.slice(c+(e?a.length:o.length),d.length),c=d.search(`${a}|${o}`),u=d.search(a)}if(d.length){const e=`${i},${t.length-d.length}-${t.length}`;r.push((0,n.jsx)(l.Fragment,{children:d},e))}return 0===r.length?(0,n.jsx)(n.Fragment,{children:t}):(0,n.jsx)(n.Fragment,{children:r})}function c(e){const{block:t,children:i,onClick:s}=e;return s?(0,n.jsx)("a",Object.assign({className:`link-annotation ${r.H.USER}`,onClick:s,"data-id":t.id||void 0,"data-value":t.value||void 0,"data-blocktype":t.blockType},{children:i})):(0,n.jsx)("span",Object.assign({"data-blocktype":t.blockType},{children:i}))}function u(e){const{block:t,children:i,onClick:s}=e;return s?(0,n.jsx)("a",Object.assign({className:`link-annotation ${r.H.USER}`,onClick:s,"data-blocktype":t.blockType},{children:i})):(0,n.jsx)("span",Object.assign({"data-blocktype":t.blockType},{children:i}))}function h(e){const{block:t,children:i,linksActive:s,onClick:a}=e;return a||s?(0,n.jsx)("a",Object.assign({href:`${t.value}`,target:"_blank",className:`link-annotation ${r.H.LINK}`,onClick:a,"data-blocktype":t.blockType,"data-value":t.value},{children:i})):(0,n.jsx)("span",Object.assign({"data-blocktype":t.blockType,"data-value":t.value},{children:i}))}function m(e){const{block:t,keyPrefix:i,markers:s}=e,{blockType:a,text:r}=t,l=s?(0,n.jsx)(d,{keyPrefix:i,text:r,markers:s}):(0,n.jsx)(n.Fragment,{children:r});return a===o.n.USER?(0,n.jsx)(c,Object.assign({},e,{children:l})):a===o.n.HASH?(0,n.jsx)(u,Object.assign({},e,{children:l})):a===o.n.LINK&&t.value?(0,n.jsx)(h,Object.assign({},e,{children:l})):l}function p(e){const t=e.textParser.parse(e.text),i=a()("text-box-text",e.className);return(0,n.jsx)("div",Object.assign({className:i},{children:t.map(((t,i)=>(0,n.jsx)(m,{keyPrefix:`${t.blockType}${i}`,block:t,linksActive:!!e.linksActive,onClick:e.onClick,markers:e.markers},`${t.blockType}${i}`)))}))}},39905:(e,t,i)=>{"use strict";i.d(t,{H:()=>n,r:()=>o});var n,s=i(75742),a=i(64491);!function(e){e.TEXT="",e.LINK="link-url",e.HASH="link-hashtag",e.USER="link-user"}(n||(n={}));class o{constructor(e){this.serialize=e=>{const t=[],i=[].slice.call(e.childNodes);for(const e of i)switch(e.nodeName){case"#text":t.push(this.serializeText(e));break;case"A":t.push(this.serializeAnchor(e));break;case"P":case"DIV":t.push(this.serializeElement(e,!0));break;case"SPAN":t.push(this.serializeElement(e,!1));break;case"BR":break;default:t.push(this.serialize(e))}return t.join("")},this.deserialize=(e,t,i,n=this.markers)=>{const s=this.parse(e).map((e=>this.createNode(e,t,i)));return n?this.parseMarkers(s,n):s},this.serializeText=e=>{let t=this.sanitizeText(e.textContent||"");if(this.links){const e=new RegExp(/https?:\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?/gi),i=document.createElement("a");t=t.replace(e,(e=>(i.href=e,`[${e}](${i.href})`))),i.remove()}return this.hashtags&&(t=t.replace(/(#\w*)/,(e=>`[${e}]`))),t.replace(/\<\s*br\s*\/?>/gi,"\n")},this.serializeAnchor=e=>{const t=e.dataset.blocktype,i=this.sanitizeText(e.innerText||e.textContent||"");let n=i;switch(t){case s.n.HASH:n=`[${i}]`;break;case s.n.USER:if(this.users){let t=e.dataset.id||"",i=e.dataset.value||"";if(!t&&!i&&(i="@"===n[0]?n.substr(1):n,i)){const e=this.users.getUserInfoByEmail(i);e&&(t=e.id)}(t||this.validateEmail(i))&&(n=`[@${t}](${i})`)}break;case s.n.LINK:const t=e.dataset.value||e.href;t&&(n=`[${i}](${t})`);break;default:e.href&&(n=`[${i}](${e.href})`)}return n},this.serializeElement=(e,t)=>{let i=t?"\n":" ";return e.childNodes.length>0&&(i+=this.serialize(e)),i},this.validateEmail=(()=>{const e=/\S+@\S+\.\S+/,t=document.createElement("input");return t.type="email",t.required=!0,i=>(t.value=i,"function"==typeof t.checkValidity?t.checkValidity():e.test(i))})();const{links:t,hashtags:i,users:n,markers:a}=e;this.links=t||!1,this.hashtags=i||!1,this.users=n,this.markers=a}parseMarkers(e,t){const[i,n]=t;let s=!1;const a=new RegExp(i+"|"+n);for(let t=0;t{if(""!==n){let a;if(s){const e=document.createElement("span");e.setAttribute("data-blocktype","marker"),a=e,a.textContent=n}else a=document.createTextNode(n);r?e.splice(t++,0,a):i.appendChild(a)}a0===t?e:"["+e));let n=0;for(;ne.text)).join("")}searchMarkdown(e,t){let i=-1,n=0,s=0;const a=this.parse(e).map((e=>{let a;return this.matchTextBlock(e,t)?(s++,-1===i&&(i=n),a=e.markdown):a=e.text,n+=e.text.length,a}));return-1===i?null:{markdown:a.join(""),matchIndex:i,textLength:n,numMatches:s}}getUserMentions(e){return this.parse(e).filter((e=>e.blockType===s.n.USER&&e.value)).map((e=>e.value||""))}matchTextBlock(e,t){if(e.blockType===t.blockType)if(e.blockType===s.n.USER){if(e.id===t.id)return!0;if(e.value===t.value)return!0}else if(e.blockType===s.n.HASH)return e.text===t.text;return!1}parseIntoBlocks(e,t){if(this.users){const i=this.getUserBlock(e);if(i)return t.push(i),e.slice(i.markdown.length)}if(this.links){const i=this.getLinkBlock(e);if(i&&i.value&&!/javascript:/i.test(i.value))return t.push(i),e.slice(i.markdown.length)}if(this.hashtags){const i=this.getHashBlock(e);if(i)return t.push(i),e.slice(i.markdown.length)}const i=this.getTextBlock(e);return i&&t.push(i),null}getTextBlock(e){return 0===e.length?null:{blockType:s.n.TEXT,text:e,markdown:e}}getHashBlock(e){const t=e.match(o.hashRegex);return!t||t.length<2?null:{blockType:s.n.HASH,markdown:t[0],text:t[1]}}getUserBlock(e){if(!this.users)return null;const t=e.match(o.userRegex);if(!t||t.length<3)return null;let i=t[1].substr(1),n=t[2];const a=n?this.users.getUserInfoByEmail(n):this.users.getUserInfoById(i),r=a?a.name:"";return i=a?a.id:i,n=a?a.email:n,{blockType:s.n.USER,markdown:t[0],id:i,value:n,text:`@${r||n}`}}getLinkBlock(e){const t=e.match(o.linkRegEx);if(!t)return null;const i=t[2];let n=1,a=0;for(;a{"use strict";i.d(t,{IU:()=>s,JO:()=>c,K$:()=>a,Zn:()=>r,_2:()=>o,_8:()=>n,on:()=>l,p8:()=>u,zu:()=>d});const n=767,s=576,a=992,o=375,r=55,l=70,d=250,c=750,u=3},76191:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(94814);class s{constructor(e){this.isAnimating=!0,this.duration=e.duration,this.startValue=e.startValue,this.changeValue=e.endValue-this.startValue,this.easingFunction=e.easingFunction||n.dV}getUpdatedValue(){this.startTime||(this.startTime=Date.now());const e=Date.now()-this.startTime;return e>this.duration&&(this.isAnimating=!1),this.easingFunction(Math.min(e,this.duration),this.startValue,this.changeValue,this.duration)}}},82769:(e,t,i)=>{"use strict";i.d(t,{_:()=>n});const n=(e,t)=>{for(const i in t)if(e[i]!==t[i])return!0;return!1}},77363:(e,t,i)=>{"use strict";i.d(t,{J:()=>s});var n=i(58480);function s(e){var t,i;return(null===(t=e.market.tryGetData(n.G))||void 0===t?void 0:t.size)||(null===(i=e.mainDiv)||void 0===i?void 0:i.getBoundingClientRect())||{width:window.innerWidth,height:window.innerHeight}}},97191:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(20819),s=i(71828);class a{constructor(e){this.couldBeDrag=!1,this.isDragging=!1,this.shouldHandleEvents=!0,this.handleEvent=e=>{if(this.shouldHandleEvents)switch(e.stopPropagation(),e.type){case"mousedown":case"touchstart":case"pointerdown":this.onPressStart(e);break;case"mousemove":case"pointermove":case"touchmove":this.onPressMove(e);break;case"mouseup":case"pointerup":case"mouseleave":case"touchend":case"touchcancel":case"pointercancel":case"pointerleave":this.onPressEnd(e)}},this.callbacks=e}setEnabled(e){this.shouldHandleEvents=e,this.couldBeDrag=this.couldBeDrag&&e}getPosition(e){return(0,n.kH)(e)?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:{x:e.clientX,y:e.clientY}}onPressStart(e){this.couldBeDrag=!0,this.dragEvents=[],this.dragStart=this.getPosition(e),this.callbacks.handlePressStart&&this.callbacks.handlePressStart(this.getPosition(e))}onPressMove(e){if(!this.couldBeDrag)return;const t=this.getPosition(e);this.addDragEvent(t),this.isDragging||Math.sqrt(Math.pow(t.x-this.dragStart.x,2)+Math.pow(t.y-this.dragStart.y,2))>s.b7&&(this.isDragging=!0,this.callbacks.handleDragStart&&this.callbacks.handleDragStart()),this.callbacks.handlePressMove&&this.callbacks.handlePressMove({x:this.dragStart.x-t.x,y:this.dragStart.y-t.y})}onPressEnd(e){if(this.couldBeDrag){if(this.couldBeDrag=!1,this.isDragging){if(!this.dragEvents||!this.dragEvents[0])return;const e=this.dragEvents[0],t=this.dragEvents[this.dragEvents.length-1];if(this.callbacks.handleDragEnd){const i={x:0,y:0};Date.now()-t.timestamp10&&this.dragEvents.shift()}}a.dragMoveTimeout=100},27612:(e,t,i)=>{"use strict";i.d(t,{c:()=>n});const n=({width:e,height:t})=>e<487||t<487},81544:(e,t,i)=>{"use strict";i.d(t,{L:()=>s,q:()=>a});var n=i(49586);class s extends n.T{constructor(e){super(),this.nativeEvent=e,this.type="hover"}}class a extends n.T{constructor(e){super(),this.nativeEvent=e,this.type="unhover"}}},49586:(e,t,i)=>{"use strict";i.d(t,{T:()=>n});class n{constructor(){this.eventType="input",this._propagationStopped=!1,this._defaultPrevented=!1}stopPropagation(){this._propagationStopped=!0}get propagationStopped(){return this._propagationStopped}preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}}},9360:(e,t,i)=>{"use strict";i.d(t,{RK:()=>a,TY:()=>o,WH:()=>s,q$:()=>r});var n=i(55141);class s extends n.u{}s.id="GUTTER_TOUCH_SCROLL_DISABLE";class a extends n.u{}a.id="GUTTER_TOUCH_SCROLL_ENABLE";class o extends n.u{}o.id="INPUT_ENABLE";class r extends n.u{}r.id="INPUT_DISABLE"},31002:(e,t,i)=>{"use strict";i.d(t,{Ds:()=>s,rX:()=>o,wR:()=>r});var n=i(92475);class s extends n.E{constructor(e,t){super(),this.position=e,this.buttons=t}}class a extends n.E{constructor(e,t){super(),this.position=e,this.button=t}}class o extends a{}class r extends a{}},92475:(e,t,i)=>{"use strict";i.d(t,{E:()=>s});var n=i(49586);class s extends n.T{}},44351:(e,t,i)=>{"use strict";var n,s;i.d(t,{m:()=>s,o:()=>n}),function(e){e.Desktop="desktop",e.Mobile="mobile",e.VrOrientOnly="xr.orientonly",e.VrWithController="xr.controller",e.VrWithTrackedController="xr.trackedcontroller",e.VrTransientPointer="xr.transient-pointer",e.VrUnknown="xr."}(n||(n={})),function(e){e.None="interaction.none",e.Direct="interaction.direct",e.Key="interaction.key",e.Gui="interaction.gui",e.Mouse="interaction.mouse",e.Touch="interaction.touch",e.Pen="interaction.pen",e.XRController="interaction.xr.controller",e.XRGaze="interaction.xr.gaze",e.XRScreen="interaction.xr.screen"}(s||(s={}))},85182:(e,t,i)=>{"use strict";i.d(t,{B:()=>r});var n=i(84710),s=i(56413),a=i(45205);const o=new(i(10843).Ay)("label-data");class r extends n.B{constructor(e){super(),this.name="label",this.has=e=>this.map.has(e),this.getLabel=e=>this.map.get(e),this.map=(0,s.y)(e||{})}getCount(){return this.map.length}add(e){let t=e.sid;return this.map.has(t)&&o.warn("Label already tracked:",{sid:t,label:e,existing:this.getLabel(t)}),t=t||this.generateSid(),e.sid=t,e.commit(),this.map.set(e.sid,e),t}generateSid(){let e="";for(;!e||this.map.has(e);)e=(0,a.D)(11);return e}remove(e){return!!this.map.has(e)&&(this.map.delete(e),!0)}clear(){this.map.clear()}replace(e){this.map.replace(e)}getCollection(){return this.map}iterate(e){for(const t of this.map.keys)e(this.map.get(t),t)}isEqual(e){if(this.map.length!==e.map.length)return!1;for(const t of this.map){const i=e.map.get(t.sid);if(!i||!r.labelsAreEqual(t,i))return!1}return!0}static labelsAreEqual(e,t){return e.floorId===t.floorId&&e.roomId===t.roomId&&e.position.x===t.position.x&&e.position.y===t.position.y&&e.position.z===t.position.z&&e.sid===t.sid&&e.text===t.text&&e.floorId===t.floorId&&e.roomId===t.roomId&&e.visible===t.visible}getLabelsForRoom(e){const t=[];return this.iterate((i=>{i.roomId===e&&t.push(i)})),t}}},28475:(e,t,i)=>{"use strict";i.d(t,{LZ:()=>s,RP:()=>n});const n="features/labels",s="features/3d_labels_enabled"},96858:(e,t,i)=>{"use strict";i.d(t,{q:()=>s});var n=i(85616);class s extends n.v{constructor(e={}){super(),this.transactions=new Set,Object.assign(this,e)}onApply(e){return this.transactions.add(e),{delete:()=>{this.transactions.delete(e)}}}async applyTransactions(){for(const e of this.transactions)await e()}}},47737:(e,t,i)=>{"use strict";i.d(t,{P:()=>O});var n=i(84710),s=i(10843),a=i(12554),o=i(96276),r=i(24790),l=i(9114),d=i(93877),c=i(4130),u=i(96858),h=i(56547),m=i(68986),p=i(3066),E=i(45205);const S=new s.Ay("layers-data");class O extends n.B{constructor(e,t){super(),this.commonInMemoryLayers=new a.X,this.inMemoryLayers=new a.X,this.layerObservers=new Set,this.layerVisibilityCache=new Map,this.layerToggledCache=new Map,this.currentViewId="",this.initialViewId="",this.layersEnabled=!1,this.initialViewId=t.id,this.viewsObservable=(0,a.Z)([t]),this.mdsContext=e||new l._,this.mdsContext.initialViewId=t.id,this.mdsContext.togglePrivateSession(t.isPrivateView())}setCurrentView(e){if(e===this.currentViewId)return;const t=this.getView(e);if(!t)throw new o.V("Model View not found");this.aggregateLayerObserver&&this.aggregateLayerObserver.cancel(),S.debug(`Active view set to ${e} (${t.viewType})`),this.currentViewId=e,this.commit();const i=()=>{this.refreshLayerCaches(),this.layerObservers.forEach((e=>e()))};this.aggregateLayerObserver=new m.P(this.getCurrentView().layers.onChanged(i),this.inMemoryLayers.onChanged(i)),i()}getCurrentView(){const e=this.getView(this.currentViewId);if(!e)throw new o.V("Missing current model view");return e}getInitialView(){const e=this.getView(this.initialViewId);if(!e)throw new o.V("Missing initial model view");return e}hasView(e){return void 0!==this.viewsObservable.values().find((t=>t.id===e))}addView(e){if(this.hasView(e.id))throw new o.V("Model View already exists");this.viewsObservable.push(e)}canDeleteView(e){const t=this.getView(e);return!!t&&((0,h.xF)(t)||(0,h.V6)(t))}canDisableView(e){const t=this.getView(e);return!!t&&((0,h.xF)(t)||(0,h.V6)(t)||(0,h.AF)(t))}canDuplicateView(e){const t=this.getView(e);return!!t&&((0,h.xF)(t)||(0,h.XF)(t))}canBatchDeleteInActiveView(){return this.isModelLayered()||!(0,h.XF)(this.getCurrentView())}validateViewName(e){return e.length>0&&e.length<=c.cp}setViews(e){return this.viewsObservable.replace(e),this}getView(e){const t=this.viewsObservable.find((t=>t.id===e));if(!t)throw new o.V(`Model View not found: ${e}`);return t}deleteView(e){const t=this.viewsObservable.findIndex((t=>t.id===e));-1!==t&&this.viewsObservable.remove(t)}hasUserViews(){return!!this.viewsObservable.find((e=>(0,h.xF)(e)))}getOrderedModelViews({includeDefurnish:e=!1,includeDisabled:t=!1,includeInsights:i=!1}={}){const n=this.viewsObservable.values().slice(),s=n.filter((n=>(t||n.enabled)&&((0,h.xF)(n)||i&&(0,h.V6)(n)||e&&(0,h.AF)(n)))).sort(((e,t)=>e.name.localeCompare(t.name,void 0,{numeric:!0}))),a=n.filter((e=>(0,h.XF)(e)));return a&&s.unshift(...a),s}onModelViewsChanged(e){return this.viewsObservable.onChanged(e)}onCurrentLayersChanged(e){return(0,p.Sh)((()=>this.layerObservers.add(e)),(()=>this.layerObservers.delete(e)))}currentLayers(){return this.getCurrentView().layers.values().concat(this.commonInMemoryLayers.values())}viewLayers(){const e=this.currentLayers();return this.filterUserFacingLayers(e)}filterUserFacingLayers(e){const t=[d.ku.VIEW_DATA_LAYER,d.ku.USER_LAYER,d.ku.IN_MEMORY,d.ku.COMMON_USER_LAYER,d.ku.OTHER];return!!e.find((e=>e.layerType===d.ku.VIEW_DATA_LAYER))||t.push(d.ku.BASE_LAYER),e.filter((e=>t.includes(e.layerType)))}getLayer(e){return this.currentLayers().find((t=>t.id===e))}findLayer(e){return[...this.getCurrentView().layers.values(),...this.inMemoryLayers.values()].find((t=>t.id===e))}getActiveLayer(){return this.getLayer(this.activeLayerId)}getBaseLayerId(){const e=this.currentLayers().find((e=>e.layerType===d.ku.BASE_LAYER));return(null==e?void 0:e.id)||r.qw}getViewLayerId(){const e=this.currentLayers().find((e=>e.layerType===d.ku.VIEW_DATA_LAYER));return null==e?void 0:e.id}getProxyLayerId(){const e=this.currentLayers().find((e=>e.layerType===d.ku.PROXY_LAYER));return null==e?void 0:e.id}getViewLayerIdForBaseView(){const e=this.getBaseModelView();let t;return e&&(t=e.layers.find((e=>e.layerType===d.ku.VIEW_DATA_LAYER))),null==t?void 0:t.id}getCurrentUserLayers(){return this.currentLayers().filter((e=>e.visible&&[d.ku.USER_LAYER,d.ku.COMMON_USER_LAYER].includes(e.layerType)))}setActiveCurrentLayer(e){if(e===this.activeLayerId)return;if(!this.currentLayers().find((t=>t.id===e)))throw new Error("Invalid layer id!");this.activeLayerId=e,this.commit()}layerVisible(e){return!e||!this.layersEnabled||!!this.layerVisibilityCache.get(e)}layerToggled(e){return!e||!this.layersEnabled||!!this.layerVisible(e)&&!!this.layerToggledCache.get(e)}toggleLayer(e,t){const i=this.getLayer(e);if(!i)throw new Error("Attempt to toggle unknown layer!");this.layerToggledCache.set(e,t),i.toggled=t,i.commit()}isInMemoryLayer(e){return this.layersEnabled&&(!e||!!this.inMemoryLayers.find((t=>t.id===e)))}addInMemoryLayer(e){var t,i;let n=(0,E.D)(11);for(;this.inMemoryLayers.find((e=>e.id===n));)n=(0,E.D)(11);const s=new u.q(Object.assign(Object.assign({},e),{id:n,layerType:d.ku.IN_MEMORY,toggled:null!==(t=e.toggled)&&void 0!==t&&t,visible:null!==(i=e.visible)&&void 0!==i&&i}));return e.common&&this.commonInMemoryLayers.push(s),this.inMemoryLayers.push(s),s}removeInMemoryLayer(e){const t=this.inMemoryLayers.findIndex((t=>t.id===e));if(-1===t)throw new Error("In memory layer not found!");this.inMemoryLayers.splice(t,1);const i=this.inMemoryLayers.findIndex((t=>t.id===e));t>-1&&this.commonInMemoryLayers.splice(i,1)}validateLayerName(e){return e.length>0&&e.length<=c.s5}replaceBackendLayers(e,t){for(const t of e.keys)this.isInMemoryLayer(e.get(t).layerId)||e.delete(t);for(const i of Object.keys(t))e.set(i,t[i])}setBaseLayerOnly(){this.commonInMemoryLayers.push(new u.q({id:r.qw,layerType:d.ku.BASE_LAYER}))}getWorkshopSessionView(){return this.viewsObservable.find((e=>e.viewType===d.jK.SESSION))}isWorkshopSessionView(){var e;return(null===(e=this.getWorkshopSessionView())||void 0===e?void 0:e.id)===this.currentViewId}isWorkshopSessionViewEnabled(){var e;return(null===(e=this.getWorkshopSessionView())||void 0===e?void 0:e.enabled)||!1}getBaseModelView(){return this.viewsObservable.find((e=>(0,h.XF)(e)))}getBaseModelId(){var e;return(null===(e=this.getBaseModelView())||void 0===e?void 0:e.id)||this.initialViewId}isModelLayered(){const e=this.getBaseModelView();return!!e&&(0,h.r0)(e)}isCurrentViewLayered(){const e=this.getCurrentView(),{viewType:t}=e;return t===d.jK.LAYERED_BASE||t===d.jK.USER||t===d.jK.INSIGHTS}getNonworkshopViewId(){const e=this.getCurrentView();return e.viewType!==d.jK.SESSION?e.id:this.getBaseModelId()}getWorkshopOrBaseId(){const e=this.getCurrentView();return e.viewType===d.jK.SESSION?e.id:this.getBaseModelId()}getDefurnishOrBaseId(e){const t=null!=e?e:this.getCurrentView();return t.viewType===d.jK.DEFURNISH?t.id:this.getBaseModelId()}getDefurnishView(){return this.viewsObservable.find((e=>e.viewType===d.jK.DEFURNISH))}getNotesLayerId(e){if(e&&this.layersEnabled)return this.activeLayerId;const t=this.getViewLayerId();if(t)return t;const i=this.getCurrentView();if((0,h.XF)(i))return this.getBaseLayerId();if(this.layersEnabled)throw new Error("No View Layer in User View");return this.activeLayerId}getOrderedListsLayerId(){if(!this.layersEnabled)return;const e=this.getViewLayerId();if(e)return e;const t=this.getCurrentView();if((0,h.XF)(t))return this.getBaseLayerId();throw new Error("No View Layer in User View")}refreshLayerCaches(){this.layerToggledCache.clear(),this.layerVisibilityCache.clear();const e=this.currentLayers();for(const t of e)this.layerToggledCache.set(t.id,t.toggled),this.layerVisibilityCache.set(t.id,t.visible)}}},25095:(e,t,i)=>{"use strict";i.d(t,{j:()=>o});var n=i(12554),s=i(85616),a=i(93877);class o extends s.v{constructor(e={}){super(),this.name="",this.viewType=null,this.rawViewType="",this.enabled=!0,this.layers=new n.X,this.hasOverlayAssets=()=>this.layers.some((e=>e.layerType===a.ku.OVERLAY_ASSETS_LAYER)),this.isDefurnishView=()=>this.viewType===a.jK.DEFURNISH,this.isPrivateView=()=>this.viewType===a.jK.DIGIPRO_SESSION||this.viewType===a.jK.TRUEPLAN||this.viewType===a.jK.SESSION||this.viewType===a.jK.PRIVATE_SESSION,Object.assign(this,e)}}},77973:(e,t,i)=>{"use strict";i.d(t,{B7:()=>T,BC:()=>R,C6:()=>I,FX:()=>l,HA:()=>D,KQ:()=>r,Py:()=>c,SG:()=>L,SL:()=>E,X_:()=>P,Xj:()=>S,Zl:()=>h,cf:()=>m,ey:()=>M,ff:()=>v,gq:()=>O,i:()=>y,iM:()=>p,ie:()=>u,jC:()=>g,k:()=>N,nl:()=>b,pB:()=>_,uo:()=>d,wd:()=>A,xI:()=>o,zH:()=>k});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={viewId:e}}}class a extends n.u{constructor(e,t){super(),this.payload={viewId:e,name:t}}}class o extends n.u{}o.id="MODEL_TO_LAYERED_COMMAND";class r extends n.u{}r.id="CHECK_FOR_PROXY_LAYER_COMMAND";class l extends n.u{}l.id="DISABLE_WORKSHOP_SESSION_COMMAND";class d extends s{}d.id="MODEL_VIEW_SET_COMMAND";class c extends n.u{constructor(e){super(),this.payload={name:e}}}c.id="USER_VIEW_ADD_COMMAND";class u extends s{}u.id="VIEW_DELETE_COMMAND";class h extends a{}h.id="VIEW_RENAME_COMMAND";class m extends n.u{constructor(e,t){super(),this.payload={viewId:e,enabled:t}}}m.id="VIEW_TOGGLE_ENABLE_COMMAND";class p extends a{}p.id="VIEW_DUPLICATE_COMMAND";class E extends n.u{constructor(e){super(),this.payload={confirmViewChange:e}}}E.id="REGISTER_CONFIRM_VIEW_CHANGE";class S extends n.u{constructor(e){super(),this.payload=e}}S.id="REGISTER_DUPLICATE_VIEW_HELPER_COMMAND";class O extends n.u{constructor(e){super(),this.payload=e}}O.id="UNREGISTER_DUPLICATE_VIEW_HELPER_COMMAND";class g extends n.u{constructor(e,t){super(),this.payload={layerId:e,items:t}}}g.id="LAYER_ITEMS_COPY_COMMAND";class T extends n.u{constructor(e,t){super(),this.payload={name:e,items:t}}}T.id="LAYER_ITEMS_COPY_NEW_COMMAND";class _ extends n.u{constructor(e,t){super(),this.payload={layerId:e,items:t}}}_.id="LAYER_ITEMS_MOVE_COMMAND";class A extends n.u{constructor(e){super(),this.payload={items:e}}}A.id="VIEW_ITEMS_DELETE_COMMAND";class v extends n.u{constructor(e,t){super(),this.payload={label:e,common:t}}}v.id="ADD_LAYER_COMMAND";class N extends n.u{constructor(e){super(),this.payload={layerProps:e}}}N.id="ADD_INMEMORY_LAYER_COMMAND";class I extends n.u{constructor(e,t){super(),this.payload={layerId:e,label:t}}}I.id="DATA_LAYER_DUPLICATE_COMMAND";class L extends n.u{constructor(e){super(),this.payload={layerId:e}}}L.id="DELETE_LAYER_COMMAND";class f extends n.u{constructor(e){super(),this.payload={layerId:e}}}f.id="REMOVE_LAYER_COMMAND";class b extends n.u{constructor(e,t){super(),this.payload={layerId:e,label:t}}}b.id="RENAME_LAYER_COMMAND";class R extends n.u{constructor(e,t){super(),this.payload={layerId:e,visible:t}}}R.id="LAYER_TOGGLE_VISIBLE_COMMAND";class y extends n.u{constructor(e,t){super(),this.payload={layerId:e,common:t}}}y.id="LAYER_TOGGLE_COMMON_COMMAND";class M extends n.u{constructor(e,t){super(),this.payload={layerId:e,position:t}}}M.id="SET_LAYER_POSITION_COMMAND";class D extends n.u{constructor(e,t){super(),this.payload={layerId:e,selected:t}}}D.id="LAYER_SELECT_COMMAND";class P extends n.u{constructor(e,t){super(),this.payload={layerId:e,on:t}}}P.id="LAYER_TOGGLE_COMMAND";class k extends n.u{constructor(e=!1){super(),this.payload={syncWithSweepTransition:e}}}k.id="TOGGLE_DEFURNISH_COMMAND"},93877:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{Hj:()=>a,jK:()=>n,ku:()=>s}),function(e){e.BASE="base",e.LAYERED_BASE="layered-base",e.INSIGHTS="insights",e.USER="user",e.DEFURNISH="defurnish",e.SESSION="session",e.DIGIPRO_SESSION="digipro-session",e.TRUEPLAN="trueplan",e.PRIVATE_SESSION="bundle-session",e.OTHER="other"}(n||(n={})),function(e){e.BASE_LAYER="matterport.base",e.VIEW_DATA_LAYER="matterport.user.data",e.USER_LAYER="matterport.user.data.ext",e.OVERLAY_ASSETS_LAYER="matterport.overlay.assets",e.COMMON_USER_LAYER="matterport.user.data.common",e.PROXY_LAYER="matterport.proxy.common",e.IN_MEMORY="matterport.in-memory.common",e.WORKSHOP="matterport.workshop.jsonstore",e.OTHER="other layer type"}(s||(s={})),function(e){e.TYPE="type",e.FLOOR="floor",e.ROOM="room",e.LAYER="layer",e.DATE="date"}(a||(a={}))},28577:(e,t,i)=>{"use strict";i.d(t,{AH:()=>a,H6:()=>r,T5:()=>d,Tl:()=>h,qD:()=>o,rX:()=>s});var n=i(75778);const s="model-views-feature",a="views",o="data-layers-feature",r="layers",l="spaces.webgl.layers.mode";var d;!function(e){e.DISABLED="disabled",e.VIEWS_OPTIONAL_OPT_IN="user_views",e.VIEWS_ENABLED="views_enabled",e.VIEWS_AND_LAYERS="views_layers",e.LAYERS_ONLY="layers"}(d||(d={}));const c="layers";var u;function h(e){const t=function(){switch((0,n.EN)()[c]){case u.DISABLED:return d.DISABLED;case u.VIEWS_ENABLED:return d.VIEWS_ENABLED;case u.VIEWS_AND_LAYERS:return d.VIEWS_AND_LAYERS;case u.LAYERS_ONLY:return d.LAYERS_ONLY}}();if(void 0!==t)return t;const i=e.getPolicy(l);return i&&i.value?i.value===d.VIEWS_OPTIONAL_OPT_IN?d.VIEWS_AND_LAYERS:i.value:d.DISABLED}!function(e){e.DISABLED="0",e.VIEWS_ENABLED="2",e.VIEWS_AND_LAYERS="3",e.LAYERS_ONLY="4"}(u||(u={}))},79535:(e,t,i)=>{"use strict";i.d(t,{$:()=>r});var n=i(74848),s=i(4717),a=i(12621),o=i(8387);function r({layer:e,active:t,onClick:i}){const{id:r}=e,l=(0,s.G)(),d=(0,a._)(r,l),c=t?"checkmark":void 0;return(0,n.jsx)(o.$n,{className:"layer-item",label:d,icon:c,active:t,variant:o.Ak.TERTIARY,size:o.Mp.SMALL,onClick:()=>{i(r)}})}},58024:(e,t,i)=>{"use strict";i.d(t,{z0:()=>r});var n=i(87805),s=i(96540),a=i(47613),o=i(47737);(0,n.r)(o.P,"activeLayerId","");function r(){const e=(0,a._)(),[t,i]=(0,s.useState)(null==e?void 0:e.getActiveLayer());return(0,s.useEffect)((()=>{if(!e)return()=>{};function t(){i(null==e?void 0:e.getActiveLayer())}const n=e.onPropertyChanged("activeLayerId",t);return t(),()=>n.cancel()}),[e]),t}},4717:(e,t,i)=>{"use strict";i.d(t,{G:()=>a});var n=i(96540),s=i(47613);function a(){const e=(0,s._)(),[t,i]=(0,n.useState)((null==e?void 0:e.getCurrentView())||void 0);return(0,n.useEffect)((()=>{if(!e)return()=>{};function t(){i((null==e?void 0:e.getCurrentView())||void 0)}const n=e.onPropertyChanged("currentViewId",t);return t(),()=>n.cancel()}),[e]),t}(0,i(61260).c)("activeModelView",a)},47982:(e,t,i)=>{"use strict";i.d(t,{j:()=>a});var n=i(96540),s=i(47613);function a(){const e=(0,s._)(),[t,i]=(0,n.useState)(null==e?void 0:e.getBaseModelId());return(0,n.useEffect)((()=>{if(!e)return()=>{};function t(){i(null==e?void 0:e.getBaseModelId())}const n=e.onModelViewsChanged(t);return t(),()=>null==n?void 0:n.cancel()}),[e]),t}},53282:(e,t,i)=>{"use strict";i.d(t,{t:()=>a});var n=i(87805),s=i(47737);const a=(0,n.r)(s.P,"currentViewId","")},12621:(e,t,i)=>{"use strict";i.d(t,{_:()=>h});var n=i(96540),s=i(56147),a=i(39869),o=i(48539),r=i(93877),l=i(47613),d=i(4130);const{LAYERS:c}=s.A.WORKSHOP;function u(e,t,i,n){const s=i?null==e?void 0:e.getLayer(i):null;let a=null==s?void 0:s.name;if(!a){a=t.t(c.UNTITLED_LAYER_PLACEHOLDER);const e=null==s?void 0:s.layerType;(null==n?void 0:n.viewType)===r.jK.TRUEPLAN&&e===r.ku.OTHER?a=t.t(c.TRUEPLAN_LAYER_LABEL):e!==r.ku.BASE_LAYER&&e!==r.ku.VIEW_DATA_LAYER||(a=t.t(c.UNLAYERED_LAYER_LABEL))}return(0,o.W5)(a,d.s5)}function h(e,t){const i=(0,l._)(),s=(0,a.Y)(),[o,r]=(0,n.useState)(u(i,s,e,t));return(0,n.useEffect)((()=>{if(!i)return()=>{};function n(){r(u(i,s,e,t))}const a=i.onCurrentLayersChanged(n);return n(),()=>a.cancel()}),[i,e,t,s]),o}},47613:(e,t,i)=>{"use strict";i.d(t,{_:()=>a});var n=i(71555),s=i(47737);const a=(0,n.v)(s.P)},21960:(e,t,i)=>{"use strict";i.d(t,{x:()=>h});var n=i(96540),s=i(56147),a=i(39869),o=i(48539),r=i(93877),l=i(47613),d=i(4130);const{LAYERS:c}=s.A.WORKSHOP;function u(e,t,i){let n;try{n=i?null==e?void 0:e.getView(i):null}catch(e){}let s=null==n?void 0:n.name;if(!s)switch(null==n?void 0:n.viewType){case r.jK.INSIGHTS:s=t.t(c.DEFAULT_INSIGHTS_VIEW_NAME);break;case r.jK.TRUEPLAN:s=t.t(c.DEFAULT_TRUEPLAN_VIEW_NAME);break;case r.jK.DIGIPRO_SESSION:s=t.t(c.DEFAULT_DIGIPRO_VIEW_NAME);break;case r.jK.DEFURNISH:s=t.t(c.DEFAULT_DEFURNISH_VIEW_NAME);break;default:s=t.t(c.DEFAULT_VIEW_NAME)}return(0,o.W5)(s,d.cp)}function h(e){const t=(0,l._)(),i=(0,a.Y)(),[s,o]=(0,n.useState)(u(t,i,e));return(0,n.useEffect)((()=>{if(!t)return()=>{};function n(){o(u(t,i,e))}const s=t.onModelViewsChanged(n);return n(),()=>s.cancel()}),[t,e,i]),s}},2716:(e,t,i)=>{"use strict";i.d(t,{z:()=>r});var n=i(96540),s=i(93877),a=i(47613);function o(e,t=!0){if(!e)return[];const i=e.viewLayers();if(i.length>1&&i.unshift(i.splice(i.length-1,1)[0]),t){return i.filter((e=>e.layerType!==s.ku.IN_MEMORY))}return i}function r(e=!0){const t=(0,a._)(),[i,s]=(0,n.useState)(o(t,e));return(0,n.useEffect)((()=>{if(!t)return()=>{};function i(){s(o(t,e))}const n=t.onCurrentLayersChanged(i);return i(),()=>n.cancel()}),[t,e]),i}},92996:(e,t,i)=>{"use strict";i.d(t,{h:()=>d});var n=i(96540),s=i(5262),a=i(98903),o=i(62876),r=i(47613),l=i(87419);function d({editMode:e=!1,includeDefurnish:t=!1,includeDisabled:i=!1}={}){const d=(0,r._)(),c=(0,s.i)(o._H,!1),u=!!(0,a.b)(l.bx,!1),[h,m]=(0,n.useState)([]);return(0,n.useEffect)((()=>{if(!d)return()=>{};function n(){e&&(null==d?void 0:d.mdsContext.isPrivateSession)?m([d.getInitialView()]):m((null==d?void 0:d.getOrderedModelViews({includeDefurnish:t||u,includeInsights:c,includeDisabled:i||e}))||[])}const s=d.onModelViewsChanged(n),a=d.onPropertyChanged("currentViewId",n);return n(),()=>{null==s||s.cancel(),null==a||a.cancel()}}),[e,t,i,u,c,d]),h}},78115:(e,t,i)=>{"use strict";i.d(t,{MT:()=>s,NX:()=>o,V7:()=>r,Yp:()=>d,tj:()=>a,uU:()=>l});var n=i(89103);class s extends n.QB{}class a extends n.QB{}class o extends n.QB{constructor(e){super(),this.items=e}}class r extends n.QB{constructor(e){super(),this.layerId=e}}class l extends n.QB{}class d extends n.QB{}},56707:(e,t,i)=>{"use strict";i.d(t,{F:()=>d});var n=i(81587),s=i(10843),a=i(93877),o=i(96858),r=i(86867);const l=new s.Ay("mds-modelview-deserializer");class d{deserialize(e){return e&&e.layer.id&&e.layer.type?new o.q({id:e.layer.id,name:e.layer.label||"",visible:e.visible,position:e.position,toggled:!0,layerType:this.getLayerType(e.layer.type),created:(0,n.X)(e.layer.created),modified:(0,n.X)(e.layer.modified)}):(l.debug("Invalid layer data from MDS"),null)}getLayerType(e){return(0,r.U)(a.ku,e)?e:a.ku.OTHER}}},57186:(e,t,i)=>{"use strict";i.d(t,{K:()=>d,o:()=>c});var n=i(10843),s=i(81587),a=i(25095),o=i(93877),r=i(56707);const l=new n.Ay("mds-modelview-deserializer");class d{constructor(){this.deserializer=new r.F}deserialize(e){var t;if(!e||!e.id||!e.type)return l.debug("Deserialized invalid ModelView data from MDS",e),null;const i=new a.j({viewType:this.getModelViewType(e),rawViewType:e.type,name:e.name||"",enabled:!!e.enabled,created:(0,s.X)(e.created),modified:(0,s.X)(e.modified),id:e.id,rootModelId:(null===(t=e.model)||void 0===t?void 0:t.rootModelId)||""});return this.getDataLayers(e).forEach((e=>i.layers.push(e))),i}getModelViewType(e){const t={"matterport.model.default":o.jK.BASE,"matterport.model.layered":o.jK.LAYERED_BASE,"matterport.user.insights":o.jK.INSIGHTS,"matterport.user.view":o.jK.USER,"matterport.model.defurnished":o.jK.DEFURNISH,"matterport.workshop.session":o.jK.SESSION,"trueplan.session":o.jK.TRUEPLAN,"capsvcs.digitalpro.session":o.jK.DIGIPRO_SESSION};return e.type in t?t[e.type]:e.type.endsWith(".session")?o.jK.PRIVATE_SESSION:o.jK.OTHER}getDataLayers(e){const t=[];for(const i of e.layers||[]){const e=this.deserializer.deserialize(i);e&&t.push(e)}return t}}const c=function(){return new d}},4130:(e,t,i)=>{"use strict";i.d(t,{GB:()=>a,co:()=>o,cp:()=>n,s5:()=>s});const n=50,s=50,a="views",o="0"},56547:(e,t,i)=>{"use strict";i.d(t,{AF:()=>l,V6:()=>r,XF:()=>a,r0:()=>s,xF:()=>o});var n=i(93877);function s(e){return e.viewType===n.jK.LAYERED_BASE}function a(e){return s(e)||e.viewType===n.jK.BASE}function o(e){return e.viewType===n.jK.USER}function r(e){return e.viewType===n.jK.INSIGHTS}function l(e){return e.viewType===n.jK.DEFURNISH}},56147:(e,t,i)=>{"use strict";var n;i.d(t,{A:()=>s}),function(e){e.LOADING="LOADING",e.PRESENTED_BY_CAPS="PRESENTED_BY_CAPS",e.EXPLORE_3D_SPACE="EXPLORE_3D_SPACE",e.POWERED_BY="POWERED_BY",e.SC_LOCKOUT_MESSAGE="SC_LOCKOUT_MESSAGE",e.SC_LOCKOUT_TITLE="SC_LOCKOUT_TITLE",e.SC_PASSWORD_TITLE="SC_PASSWORD_TITLE",e.SC_PASSWORD_INVALID="SC_PASSWORD_INVALID",e.SC_PASSWORD_PLACEHOLDER="SC_PASSWORD_PLACEHOLDER",e.SC_PASSWORD_SUBMIT="SC_PASSWORD_SUBMIT",e.VIEW_INSIDE="VIEW_INSIDE",e.VIEW_INSIDE_MESH="VIEW_INSIDE_MESH",e.VIEW_DOLLHOUSE="VIEW_DOLLHOUSE",e.VIEW_FLOORPLAN="VIEW_FLOORPLAN",e.VIEW_FULLSCREEN="VIEW_FULLSCREEN",e.EXIT_FULLSCREEN="EXIT_FULLSCREEN",e.OPEN_HIGHLIGHTS="OPEN_HIGHLIGHTS",e.CLOSE_HIGHLIGHTS="CLOSE_HIGHLIGHTS",e.PAUSE="PAUSE",e.SOCIAL_SHARING="SOCIAL_SHARING",e.VIEW_IN_VR="VIEW_IN_VR",e.HOTKEY_VIEW_INSIDE="HOTKEY_VIEW_INSIDE",e.HOTKEY_VIEW_DOLLHOUSE="HOTKEY_VIEW_DOLLHOUSE",e.HOTKEY_VIEW_FLOORPLAN="HOTKEY_VIEW_FLOORPLAN",e.FLOOR_NAME="FLOOR_NAME",e.FLOOR_ALL="FLOOR_ALL",e.PLUGIN_VISIBILITY="PLUGIN_VISIBILITY",e.PLUGIN_CHANGE_ALL="PLUGIN_CHANGE_ALL",e.PLUGIN_V_TOGGLE_LABEL="PLUGIN_V_TOGGLE_LABEL",e.PRESENTED_BY="PRESENTED_BY",e.MORE="MORE",e.LESS="LESS",e.LEARN_MORE="LEARN_MORE",e.DEFURN_AI_WARNING="DEFURN_AI_WARNING",e.FEEDBACK="FEEDBACK",e.TERMS="TERMS",e.HELP="HELP",e.ALT_MATTERPORT_LOGO="ALT_MATTERPORT_LOGO",e.TERMS_FAIL="TERMS_FAIL",e.HELP_NAVIGATION_TAB="HELP_NAVIGATION_TAB",e.HELP_MORE_HELP_TAB="HELP_MORE_HELP_TAB",e.HELP_DESKTOP_360_2A="HELP_DESKTOP_360_2A",e.HELP_DESKTOP_360_2B="HELP_DESKTOP_360_2B",e.HELP_DESKTOP_DOLLHOUSE_1A="HELP_DESKTOP_DOLLHOUSE_1A",e.HELP_DESKTOP_DOLLHOUSE_1B="HELP_DESKTOP_DOLLHOUSE_1B",e.HELP_DESKTOP_DOLLHOUSE_2A="HELP_DESKTOP_DOLLHOUSE_2A",e.HELP_DESKTOP_DOLLHOUSE_3A="HELP_DESKTOP_DOLLHOUSE_3A",e.HELP_DESKTOP_FLOORPLAN_1A="HELP_DESKTOP_FLOORPLAN_1A",e.HELP_DESKTOP_FLOORPLAN_2A="HELP_DESKTOP_FLOORPLAN_2A",e.HELP_DESKTOP_FLOORPLAN_2B="HELP_DESKTOP_FLOORPLAN_2B",e.HELP_DESKTOP_FLOORPLAN_3A="HELP_DESKTOP_FLOORPLAN_3A",e.HELP_DESKTOP_FLOORPLAN_3B="HELP_DESKTOP_FLOORPLAN_3B",e.HELP_DESKTOP_MORE_360_B="HELP_DESKTOP_MORE_360_B",e.HELP_DESKTOP_MORE_DOLLHOUSE_B="HELP_DESKTOP_MORE_DOLLHOUSE_B",e.HELP_DESKTOP_MORE_FLOORS_B="HELP_DESKTOP_MORE_FLOORS_B",e.HELP_DESKTOP_MORE_FULLSCREEN_B="HELP_DESKTOP_MORE_FULLSCREEN_B",e.HELP_DESKTOP_MORE_HLR_B="HELP_DESKTOP_MORE_HLR_B",e.HELP_DESKTOP_MORE_INSIDE_B="HELP_DESKTOP_MORE_INSIDE_B",e.HELP_DESKTOP_MORE_MATTERTAG_B="HELP_DESKTOP_MORE_MATTERTAG_B",e.HELP_DESKTOP_MORE_TOUR_B="HELP_DESKTOP_MORE_TOUR_B",e.HELP_DESKTOP_MORE_VR_B="HELP_DESKTOP_MORE_VR_B",e.HELP_DESKTOP_MORE_ZOOM_B="HELP_DESKTOP_MORE_ZOOM_B",e.HELP_DESKTOP_PANORAMA_1A="HELP_DESKTOP_PANORAMA_1A",e.HELP_DESKTOP_PANORAMA_1B="HELP_DESKTOP_PANORAMA_1B",e.HELP_DESKTOP_PANORAMA_2A="HELP_DESKTOP_PANORAMA_2A",e.HELP_DESKTOP_PANORAMA_2B="HELP_DESKTOP_PANORAMA_2B",e.HELP_DESKTOP_PANORAMA_3A="HELP_DESKTOP_PANORAMA_3A",e.HELP_DESKTOP_PANORAMA_3B="HELP_DESKTOP_PANORAMA_3B",e.HELP_MOBILE_3="HELP_MOBILE_3",e.HELP_MOBILE_360_2="HELP_MOBILE_360_2",e.HELP_MOBILE_DOLLHOUSE_1="HELP_MOBILE_DOLLHOUSE_1",e.HELP_MOBILE_DOLLHOUSE_2="HELP_MOBILE_DOLLHOUSE_2",e.HELP_MOBILE_FLOORPLAN_1="HELP_MOBILE_FLOORPLAN_1",e.HELP_MOBILE_FLOORPLAN_2="HELP_MOBILE_FLOORPLAN_2",e.HELP_MOBILE_MORE_360_B="HELP_MOBILE_MORE_360_B",e.HELP_MOBILE_MORE_DOLLHOUSE_B="HELP_MOBILE_MORE_DOLLHOUSE_B",e.HELP_MOBILE_MORE_INSIDE_B="HELP_MOBILE_MORE_INSIDE_B",e.HELP_MOBILE_MORE_MATTERTAG_B="HELP_MOBILE_MORE_MATTERTAG_B",e.HELP_MOBILE_MORE_VR_B="HELP_MOBILE_MORE_VR_B",e.HELP_MOBILE_PANORAMA_1="HELP_MOBILE_PANORAMA_1",e.HELP_MOBILE_PANORAMA_2="HELP_MOBILE_PANORAMA_2",e.HELP_MORE_360_A="HELP_MORE_360_A",e.HELP_MORE_DOLLHOUSE_A="HELP_MORE_DOLLHOUSE_A",e.HELP_MORE_FLOORS_A="HELP_MORE_FLOORS_A",e.HELP_MORE_FLOORPLAN_A="HELP_MORE_FLOORPLAN_A",e.HELP_MORE_FULLSCREEN_A="HELP_MORE_FULLSCREEN_A",e.HELP_MORE_HLR_A="HELP_MORE_HLR_A",e.HELP_MORE_INSIDE_A="HELP_MORE_INSIDE_A",e.HELP_MORE_MATTERTAG_A="HELP_MORE_MATTERTAG_A",e.HELP_MORE_TOUR_A="HELP_MORE_TOUR_A",e.HELP_MORE_VR_A="HELP_MORE_VR_A",e.HELP_MORE_ZOOM_A="HELP_MORE_ZOOM_A",e.HELP_MORE_EXTRAS_A="HELP_MORE_EXTRAS_A",e.VR_ENTER="VR_ENTER",e.VR_LEARN_MORE_CAPS="VR_LEARN_MORE_CAPS",e.VR_QUEST="VR_QUEST",e.VR_META_LINK="VR_META_LINK",e.VR_RECOMMENDED="VR_RECOMMENDED",e.VR_SUPPORTS="VR_SUPPORTS",e.VR_VIEW_SPACE="VR_VIEW_SPACE",e.CTA_TOUR_COMPLETE="CTA_TOUR_COMPLETE",e.CTA_EXPLORE_SPACE="CTA_EXPLORE_SPACE",e.CTA_RESTART_TOUR="CTA_RESTART_TOUR",e.CTA_SHARE="CTA_SHARE",e.DESKTOP_SHORT_CTA="DESKTOP_SHORT_CTA",e.MOBILE_SHORT_CTA="MOBILE_SHORT_CTA",e.ROTATE="ROTATE",e.MOVE="MOVE",e.PLAY="PLAY",e.NEXT="NEXT",e.PREVIOUS="PREVIOUS",e.INSIDE="INSIDE",e.ZOOM="ZOOM",e.MEASUREMENT="MEASUREMENT",e.MEASUREMENT_START_ADDING="MEASUREMENT_START_ADDING",e.MEASUREMENT_CONTINUOUS_LINES="MEASUREMENT_CONTINUOUS_LINES",e.MEASUREMENT_SNAPPING="MEASUREMENT_SNAPPING",e.MEASUREMENT_UNITS="MEASUREMENT_UNITS",e.MEASUREMENT_IMPERIAL="MEASUREMENT_IMPERIAL",e.MEASUREMENT_METRIC="MEASUREMENT_METRIC",e.MEASUREMENT_SETTINGS="MEASUREMENT_SETTINGS",e.MEASUREMENT_HELP_CLICK_ANYWHERE="MEASUREMENT_HELP_CLICK_ANYWHERE",e.MEASUREMENT_HELP_ESCAPE="MEASUREMENT_HELP_ESCAPE",e.MEASUREMENT_HELP_PRESS_START="MEASUREMENT_HELP_PRESS_START",e.MEASUREMENT_HELP_DRAG_EDIT="MEASUREMENT_HELP_DRAG_EDIT",e.MEASUREMENT_HELP_PRESS_END="MEASUREMENT_HELP_PRESS_END",e.MEASUREMENT_MODE="MEASUREMENT_MODE",e.MEASUREMENT_HELP_MODAL_SUB_HEADER="MEASUREMENT_HELP_MODAL_SUB_HEADER",e.MEASUREMENT_HELP_MODAL_BODY_1="MEASUREMENT_HELP_MODAL_BODY_1",e.MEASUREMENT_HELP_MODAL_BODY_2="MEASUREMENT_HELP_MODAL_BODY_2",e.MEASUREMENT_NUDGE_TITLE="MEASUREMENT_NUDGE_TITLE",e.MEASUREMENT_NUDGE_MESSAGE="MEASUREMENT_NUDGE_MESSAGE",e.MEASUREMENT_ADD_LABEL="MEASUREMENT_ADD_LABEL",e.MEASUREMENT_CANCEL_LABEL="MEASUREMENT_CANCEL_LABEL",e.MEASUREMENT_SAVE_LABEL="MEASUREMENT_SAVE_LABEL",e.NOTES_MODE="NOTES_MODE",e.NOTES_NUDGE_TITLE="NOTES_NUDGE_TITLE",e.NOTES_NUDGE_MESSAGE="NOTES_NUDGE_MESSAGE",e.CLOSE="CLOSE",e.SHOW="SHOW",e.HIDE="HIDE",e.MORE_OPTIONS="MORE_OPTIONS",e.COPY="COPY",e.COPY_URL="COPY_URL",e.COPY_LINK="COPY_LINK",e.SHARE="SHARE",e.SHARE_COPIED="SHARE_COPIED",e.SHARE_CURRENT_LOCATION="SHARE_CURRENT_LOCATION",e.SHARE_DEFAULT_LOCATION="SHARE_DEFAULT_LOCATION",e.SHARE_ERROR_SWEEP_DISABLED="SHARE_ERROR_SWEEP_DISABLED",e.SHARE_EXPLORE="SHARE_EXPLORE",e.SHARE_LINK_TO_LOCATION="SHARE_LINK_TO_LOCATION",e.SHARE_AT="SHARE_AT",e.SHARE_WITH="SHARE_WITH",e.SHARE_3D="SHARE_3D",e.SHARE_MODAL_TITLE="SHARE_MODAL_TITLE",e.SHARE_MAIL="SHARE_MAIL",e.SHARE_FACEBOOK="SHARE_FACEBOOK",e.SHARE_TWITTER="SHARE_TWITTER",e.SHARE_LINKEDIN="SHARE_LINKEDIN",e.SHARE_PINTEREST="SHARE_PINTEREST",e.SHARED_TITLE="SHARED_TITLE",e.SHARED_MESSAGE="SHARED_MESSAGE",e.SHARED_MESSAGE_HASHTAG="SHARED_MESSAGE_HASHTAG",e.DOLLHOUSE_NUDGE_TITLE="DOLLHOUSE_NUDGE_TITLE",e.DOLLHOUSE_NUDGE_MESSAGE="DOLLHOUSE_NUDGE_MESSAGE",e.FLOOR_PLAN_NUDGE_MESSAGE="FLOOR_PLAN_NUDGE_MESSAGE"}(n||(n={})),function(e){let t,i,n,s,a,o,r,l,d,c,u,h,m,p,E,S;!function(e){e.NEW_MESSAGE="GENERIC.NEW_MESSAGE",e.READ_MORE="GENERIC.READ_MORE",e.SETTING_OFF="GENERIC.SETTING_OFF",e.SETTING_ON="GENERIC.SETTING_ON"}(t=e.GENERIC||(e.GENERIC={})),function(e){e.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE="ERRORS.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE",e.UNAUTHORIZED_ERROR_MESSAGE="ERRORS.UNAUTHORIZED_ERROR_MESSAGE"}(i=e.ERRORS||(e.ERRORS={})),function(e){e.COLLAPSE="ACCORDIONS.COLLAPSE",e.EXPAND="ACCORDIONS.EXPAND"}(n=e.ACCORDIONS||(e.ACCORDIONS={})),function(e){e.INVITED_MESSAGE="LOGIN.INVITED_MESSAGE",e.CREATE_ACCOUNT="LOGIN.CREATE_ACCOUNT",e.HAVE_ACCOUNT="LOGIN.HAVE_ACCOUNT",e.SIGN_IN="LOGIN.SIGN_IN"}(s=e.LOGIN||(e.LOGIN={})),function(e){e.COLLAPSE_PANEL="PANELS.COLLAPSE_PANEL",e.EXPAND_PANEL="PANELS.EXPAND_PANEL"}(a=e.PANELS||(e.PANELS={})),function(e){e.CLOSE_BUTTON_TOOLTIP_MESSAGE="REUSABLES.CLOSE_BUTTON_TOOLTIP_MESSAGE",e.HELP_BUTTON_TOOLTIP_MESSAGE="REUSABLES.HELP_BUTTON_TOOLTIP_MESSAGE",e.EMOJI_ALT_DISAPPOINTED="REUSABLES.EMOJI_ALT_DISAPPOINTED",e.EMOJI_ALT_UNSATISFIED="REUSABLES.EMOJI_ALT_UNSATISFIED",e.EMOJI_ALT_NEUTRAL="REUSABLES.EMOJI_ALT_NEUTRAL",e.EMOJI_ALT_SATISFIED="REUSABLES.EMOJI_ALT_SATISFIED",e.EMOJI_ALT_HAPPY="REUSABLES.EMOJI_ALT_HAPPY",e.FEEDBACK_LINK_LABEL="REUSABLES.FEEDBACK_LINK_LABEL",e.BETA_FEEDBACK_LINK_LABEL="REUSABLES.BETA_FEEDBACK_LINK_LABEL"}(o=e.REUSABLES||(e.REUSABLES={})),function(e){e.SCROLL_BUTTON_LABEL="SCROLLING.SCROLL_BUTTON_LABEL"}(r=e.SCROLLING||(e.SCROLLING={})),function(e){e.PINK="COLORS.PINK",e.PLUM="COLORS.PLUM",e.PURPLE="COLORS.PURPLE",e.COBALT="COLORS.COBALT",e.CERULEAN="COLORS.CERULEAN",e.TEAL="COLORS.TEAL",e.FOG="COLORS.FOG",e.IRON="COLORS.IRON",e.FOREST="COLORS.FOREST",e.EMERALD="COLORS.EMERALD",e.MINT="COLORS.MINT",e.OCEAN="COLORS.OCEAN",e.LIME="COLORS.LIME",e.CANARY="COLORS.CANARY",e.SUNFLOWER="COLORS.SUNFLOWER",e.TANGERINE="COLORS.TANGERINE",e.SUNSET="COLORS.SUNSET",e.SIERRA="COLORS.SIERRA",e.MAGENTA="COLORS.MAGENTA"}(l=e.COLORS||(e.COLORS={})),function(e){e.GENERIC_HELPTEXT="OOPS.GENERIC.HELPTEXT",e.GENERIC_TITLE="OOPS.GENERIC.TITLE",e.MODEL_ARCHIVED_TITLE="OOPS.MODEL_ARCHIVED.TITLE",e.MODEL_ARCHIVED_HELPTEXT="OOPS.MODEL_ARCHIVED.HELPTEXT",e.MODEL_COMPLIANCE_TITLE="OOPS.MODEL_COMPLIANCE.TITLE",e.MODEL_COMPLIANCE_HELPTEXT="OOPS.MODEL_COMPLIANCE.HELPTEXT",e.MODEL_DELETED_TITLE="OOPS.MODEL_DELETED.TITLE",e.MODEL_FAILED_TITLE="OOPS.MODEL_FAILED.TITLE",e.MODEL_FAILED_HELPTEXT="OOPS.MODEL_FAILED.HELPTEXT",e.MODEL_PENDING_TITLE="OOPS.MODEL_PENDING.TITLE",e.MODEL_PENDING_HELPTEXT="OOPS.MODEL_PENDING.HELPTEXT",e.MODEL_PROCESSING_TITLE="OOPS.MODEL_PROCESSING.TITLE",e.MODEL_PROCESSING_HELPTEXT="OOPS.MODEL_PROCESSING.HELPTEXT",e.SIGNED_IN_AS="OOPS.SIGNED_IN_AS",e.WEBGL_CONTEXT_LOST_HELPTEXT="OOPS.WEBGL_CONTEXT_LOST.HELPTEXT",e.WEBGL_CONTEXT_LOST_TITLE="OOPS.WEBGL_CONTEXT_LOST.TITLE",e.WEBGL_GENERIC_HELPTEXT="OOPS.WEBGL_GENERIC.HELPTEXT",e.WEBGL_GENERIC_TITLE="OOPS.WEBGL_GENERIC.TITLE",e.WEBGL_UNSUPPORTED_HELPTEXT="OOPS.WEBGL_UNSUPPORTED.HELPTEXT",e.WEBGL_UNSUPPORTED_TITLE="OOPS.WEBGL_UNSUPPORTED.TITLE"}(d=e.OOPS||(e.OOPS={})),function(e){e.AWAITING="SDK.AWAITING"}(c=e.SDK||(e.SDK={})),function(e){let t,i,n,s,a,o,r,l,d,c,u,h,m,p,E,S,O,g;!function(e){e.UPLOAD_TOOLTIP="SHOWCASE.ANNOTATIONS.UPLOAD_TOOLTIP",e.EMBED_TOOLTIP="SHOWCASE.ANNOTATIONS.EMBED_TOOLTIP",e.MAX_ATTACHMENTS_TOOLTIP="SHOWCASE.ANNOTATIONS.MAX_ATTACHMENTS_TOOLTIP",e.LINK_TOOLTIP="SHOWCASE.ANNOTATIONS.LINK_TOOLTIP",e.ADD_CTA="SHOWCASE.ANNOTATIONS.ADD_CTA",e.SAVE_CTA="SHOWCASE.ANNOTATIONS.SAVE_CTA",e.CANCEL_CTA="SHOWCASE.ANNOTATIONS.CANCEL_CTA",e.CONTENT_DELETED="SHOWCASE.ANNOTATIONS.CONTENT_DELETED",e.READ_MORE_MESSAGE="SHOWCASE.ANNOTATIONS.READ_MORE_MESSAGE"}(t=e.ANNOTATIONS||(e.ANNOTATIONS={})),function(e){e.ERROR_UPLOAD_FAIL="SHOWCASE.ATTACHMENTS.ERROR_UPLOAD_FAIL",e.ERROR_FILE_TOO_LARGE="SHOWCASE.ATTACHMENTS.ERROR_FILE_TOO_LARGE",e.ERROR_EMPTY_FILE="SHOWCASE.ATTACHMENTS.ERROR_EMPTY_FILE",e.ERROR_OVER_QUOTA="SHOWCASE.ATTACHMENTS.ERROR_OVER_QUOTA",e.ERROR_PERMISSION_DENIED="SHOWCASE.ATTACHMENTS.ERROR_PERMISSION_DENIED",e.REMOVE_TOOLTIP="SHOWCASE.ATTACHMENTS.REMOVE_TOOLTIP",e.CLOSE_TOOLTIP="SHOWCASE.ATTACHMENTS.CLOSE_TOOLTIP",e.DELETE_ATTACHMENT_TOOLTIP="SHOWCASE.ATTACHMENTS.DELETE_ATTACHMENT_TOOLTIP",e.DOWNLOAD_TOOLTIP="SHOWCASE.ATTACHMENTS.DOWNLOAD_TOOLTIP",e.EXPAND_ATTACHMENT_TOOLTIP="SHOWCASE.ATTACHMENTS.EXPAND_ATTACHMENT_TOOLTIP",e.VIEWER_INDEX_COUNT="SHOWCASE.ATTACHMENTS.VIEWER_INDEX_COUNT",e.FAILED_TO_LOAD_MESSAGE="SHOWCASE.ATTACHMENTS.FAILED_TO_LOAD_MESSAGE",e.MORE_ATTACHMENT="SHOWCASE.ATTACHMENTS.MORE_ATTACHMENT",e.ERROR_200_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_200_MESSAGE",e.ERROR_401_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_401_MESSAGE",e.ERROR_403_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_403_MESSAGE",e.ERROR_404_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_404_MESSAGE",e.ERROR_429_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_429_MESSAGE",e.ERROR_4XX_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_4XX_MESSAGE",e.ERROR_5XX_MESSAGE="SHOWCASE.ATTACHMENTS.ERROR_5XX_MESSAGE"}(i=e.ATTACHMENTS||(e.ATTACHMENTS={})),function(e){e.TITLE="SHOWCASE.DEFURNISH_AI_MODAL.TITLE",e.TEXT1="SHOWCASE.DEFURNISH_AI_MODAL.TEXT1",e.TEXT2="SHOWCASE.DEFURNISH_AI_MODAL.TEXT2"}(n=e.DEFURNISH_AI_MODAL||(e.DEFURNISH_AI_MODAL={})),function(e){let t,i;!function(e){e.OR="SHOWCASE.DOLLHOUSE.ROTATE_PROMPT.OR",e.DESKTOP="SHOWCASE.DOLLHOUSE.ROTATE_PROMPT.DESKTOP"}(t=e.ROTATE_PROMPT||(e.ROTATE_PROMPT={})),function(e){e.DESKTOP="SHOWCASE.DOLLHOUSE.INSIDE_PROMPT.DESKTOP",e.TOUCH="SHOWCASE.DOLLHOUSE.INSIDE_PROMPT.TOUCH"}(i=e.INSIDE_PROMPT||(e.INSIDE_PROMPT={}))}(s=e.DOLLHOUSE||(e.DOLLHOUSE={})),function(e){e.DEFAULT_NAME="SHOWCASE.FLOORS.DEFAULT_NAME"}(a=e.FLOORS||(e.FLOORS={})),function(e){e.ALT_GESTURE_DRAG="SHOWCASE.HELP.ALT_GESTURE_DRAG",e.ALT_GESTURE_DRAGTWOFINGER="SHOWCASE.HELP.ALT_GESTURE_DRAGTWOFINGER",e.ALT_GESTURE_DRAGTWOFINGER_VERT="SHOWCASE.HELP.ALT_GESTURE_DRAGTWOFINGER_VERT",e.ALT_GESTURE_POSITION="SHOWCASE.HELP.ALT_GESTURE_POSITION",e.ALT_GESTURE_PINCH="SHOWCASE.HELP.ALT_GESTURE_PINCH",e.ALT_GESTURE_TOUCH_ROTATE="SHOWCASE.HELP.ALT_GESTURE_TOUCH_ROTATE",e.ALT_GESTURE_PLAY="SHOWCASE.HELP.ALT_GESTURE_PLAY",e.ALT_GESTURE_POSITIONTWOFINGER="SHOWCASE.HELP.ALT_GESTURE_POSITIONTWOFINGER",e.ALT_GESTURE_TAP="SHOWCASE.HELP.ALT_GESTURE_TAP",e.ALT_GESTURE_TAPINSIDE="SHOWCASE.HELP.ALT_GESTURE_TAPINSIDE",e.ALT_KEYBOARD_ALL="SHOWCASE.HELP.ALT_KEYBOARD_ALL",e.ALT_KEYBOARD_INSIDE="SHOWCASE.HELP.ALT_KEYBOARD_INSIDE",e.ALT_KEYBOARD_LEFTRIGHT="SHOWCASE.HELP.ALT_KEYBOARD_LEFTRIGHT",e.ALT_KEYBOARD_UPDOWN="SHOWCASE.HELP.ALT_KEYBOARD_UPDOWN",e.ALT_KEYBOARD_ZOOM="SHOWCASE.HELP.ALT_KEYBOARD_ZOOM",e.ALT_MOUSE_CLICK="SHOWCASE.HELP.ALT_MOUSE_CLICK",e.ALT_MOUSE_CLICKINSIDE="SHOWCASE.HELP.ALT_MOUSE_CLICKINSIDE",e.ALT_MOUSE_DRAGLEFT="SHOWCASE.HELP.ALT_MOUSE_DRAGLEFT",e.ALT_MOUSE_DRAGRIGHT="SHOWCASE.HELP.ALT_MOUSE_DRAGRIGHT",e.ALT_MOUSE_DRAGRIGHT_HORIZ="SHOWCASE.HELP.ALT_MOUSE_DRAGRIGHT_HORIZ",e.ALT_MOUSE_DRAGRIGHT_VERT="SHOWCASE.HELP.ALT_MOUSE_DRAGRIGHT_VERT",e.ALT_MOUSE_PLAY="SHOWCASE.HELP.ALT_MOUSE_PLAY",e.ALT_MOUSE_POSITIONLEFT="SHOWCASE.HELP.ALT_MOUSE_POSITIONLEFT",e.ALT_MOUSE_POSITIONRIGHT="SHOWCASE.HELP.ALT_MOUSE_POSITIONRIGHT",e.ALT_MOUSE_ZOOM="SHOWCASE.HELP.ALT_MOUSE_ZOOM",e.NAV_DOLLHOUSE_TITLE="SHOWCASE.HELP.NAV_DOLLHOUSE_TITLE",e.NAV_FLOORPLAN_TITLE="SHOWCASE.HELP.NAV_FLOORPLAN_TITLE",e.NAV_INSIDE_TITLE="SHOWCASE.HELP.NAV_INSIDE_TITLE",e.DESKTOP_DOLLHOUSE_PAN_HEADER="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_PAN_HEADER",e.DESKTOP_DOLLHOUSE_PAN="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_PAN",e.DESKTOP_DOLLHOUSE_ROTATE_HEADER="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_ROTATE_HEADER",e.DESKTOP_DOLLHOUSE_ROTATE="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_ROTATE",e.DESKTOP_DOLLHOUSE_ZOOM_HEADER="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_ZOOM_HEADER",e.DESKTOP_DOLLHOUSE_ZOOM="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_ZOOM",e.DESKTOP_DOLLHOUSE_2D3D_HEADER="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_2D3D_HEADER",e.DESKTOP_DOLLHOUSE_2D3D="SHOWCASE.HELP.DESKTOP_DOLLHOUSE_2D3D",e.DESKTOP_INSIDE_LOOK_HEADER="SHOWCASE.HELP.DESKTOP_INSIDE_LOOK_HEADER",e.DESKTOP_INSIDE_LOOK="SHOWCASE.HELP.DESKTOP_INSIDE_LOOK",e.DESKTOP_INSIDE_MOVE_HEADER="SHOWCASE.HELP.DESKTOP_INSIDE_MOVE_HEADER",e.DESKTOP_INSIDE_MOVE="SHOWCASE.HELP.DESKTOP_INSIDE_MOVE",e.DESKTOP_INSIDE_ZOOM_HEADER="SHOWCASE.HELP.DESKTOP_INSIDE_ZOOM_HEADER",e.DESKTOP_INSIDE_ZOOM="SHOWCASE.HELP.DESKTOP_INSIDE_ZOOM",e.TOUCH_DOLLHOUSE_PAN="SHOWCASE.HELP.TOUCH_DOLLHOUSE_PAN",e.TOUCH_DOLLHOUSE_ROTATE="SHOWCASE.HELP.TOUCH_DOLLHOUSE_ROTATE",e.TOUCH_DOLLHOUSE_ZOOM="SHOWCASE.HELP.TOUCH_DOLLHOUSE_ZOOM",e.TOUCH_DOLLHOUSE_2D3D="SHOWCASE.HELP.TOUCH_DOLLHOUSE_2D3D",e.TOUCH_INSIDE_LOOK="SHOWCASE.HELP.TOUCH_INSIDE_LOOK",e.TOUCH_INSIDE_MOVE="SHOWCASE.HELP.TOUCH_INSIDE_MOVE",e.TOUCH_INSIDE_ZOOM="SHOWCASE.HELP.TOUCH_INSIDE_ZOOM"}(o=e.HELP||(e.HELP={})),function(e){e.EMPTY_REEL_TITLE="SHOWCASE.HLR.EMPTY_REEL_TITLE",e.EMPTY_REEL_MESSAGE="SHOWCASE.HLR.EMPTY_REEL_MESSAGE",e.EMPTY_REEL_LEARN_MORE="SHOWCASE.HLR.EMPTY_REEL_LEARN_MORE"}(r=e.HLR||(e.HLR={})),function(e){e.SEARCH_GROUP_HEADER="SHOWCASE.LABELS.SEARCH_GROUP_HEADER"}(l=e.LABELS||(e.LABELS={})),function(e){e.TOGGLE_LAYERS="SHOWCASE.LAYERS.TOGGLE_LAYERS"}(d=e.LAYERS||(e.LAYERS={})),function(e){e.SEARCH_GROUP_HEADER="SHOWCASE.MEASUREMENTS.SEARCH_GROUP_HEADER"}(c=e.MEASUREMENTS||(e.MEASUREMENTS={})),function(e){e.TODAY="SHOWCASE.NOTES.TODAY",e.YESTERDAY="SHOWCASE.NOTES.YESTERDAY",e.THIS_WEEK="SHOWCASE.NOTES.THIS_WEEK",e.ONE_WEEK_AGO="SHOWCASE.NOTES.ONE_WEEK_AGO",e.TWO_WEEKS_AGO="SHOWCASE.NOTES.TWO_WEEKS_AGO",e.THREE_WEEKS_AGO="SHOWCASE.NOTES.THREE_WEEKS_AGO",e.OLDER="SHOWCASE.NOTES.OLDER",e.NO_MATCHES="SHOWCASE.NOTES.NO_MATCHES",e.HAVE_NONE="SHOWCASE.NOTES.HAVE_NONE",e.HAVE_NONE_OPEN="SHOWCASE.NOTES.HAVE_NONE_OPEN",e.HAVE_NONE_RESOLVED="SHOWCASE.NOTES.HAVE_NONE_RESOLVED",e.CONTENT_DELETED="SHOWCASE.NOTES.CONTENT_DELETED",e.RESULTS="SHOWCASE.NOTES.RESULTS",e.NUM_ATTACHMENTS="SHOWCASE.NOTES.ATTACHMENTS",e.COMMENTS="SHOWCASE.NOTES.COMMENTS",e.NOTES="SHOWCASE.NOTES.NOTES",e.REPLIES="SHOWCASE.NOTES.REPLIES",e.FILTER="SHOWCASE.NOTES.FILTER",e.FILTER_RESOLVED="SHOWCASE.NOTES.FILTER_RESOLVED",e.FILTER_UNRESOLVED="SHOWCASE.NOTES.FILTER_UNRESOLVED",e.FILTER_ALL="SHOWCASE.NOTES.FILTER_ALL",e.FILTER_BY="SHOWCASE.NOTES.FILTER_BY",e.CANCEL="SHOWCASE.NOTES.CANCEL",e.DELETE="SHOWCASE.NOTES.DELETE",e.EDIT="SHOWCASE.NOTES.EDIT",e.ADD_NOTE_MESSAGE="SHOWCASE.NOTES.ADD_NOTE_MESSAGE",e.MARK_AS_RESOLVED="SHOWCASE.NOTES.MARK_AS_RESOLVED",e.UNRESOLVE="SHOWCASE.NOTES.UNRESOLVE",e.FEEDBACK="SHOWCASE.NOTES.FEEDBACK",e.NAV_BACK="SHOWCASE.NOTES.NAV_BACK",e.NAV_CLOSE="SHOWCASE.NOTES.NAV_CLOSE",e.REPLY_PLACEHOLDER="SHOWCASE.NOTES.REPLY_PLACEHOLDER",e.EDIT_LIST_ITEM_OPTION_CTA="SHOWCASE.NOTES.EDIT_LIST_ITEM_OPTION_CTA",e.DELETE_LIST_ITEM_OPTION_CTA="SHOWCASE.NOTES.DELETE_LIST_ITEM_OPTION_CTA",e.MISSING_MESSAGE="SHOWCASE.NOTES.MISSING_MESSAGE",e.ADD_CTA_TOOLTIP="SHOWCASE.NOTES.ADD_CTA_TOOLTIP",e.ADD_TOOLTIP="SHOWCASE.NOTES.ADD_TOOLTIP",e.CANCEL_TOOLTIP="SHOWCASE.NOTES.CANCEL_TOOLTIP",e.COLOR_STEM_TOOLTIP="SHOWCASE.NOTES.COLOR_STEM_TOOLTIP",e.DELETE_TOOLTIP="SHOWCASE.NOTES.DELETE_TOOLTIP",e.OVERLAY_ADD_TOUCH="SHOWCASE.NOTES.OVERLAY_ADD_TOUCH",e.OVERLAY_ADD_CLICK="SHOWCASE.NOTES.OVERLAY_ADD_CLICK",e.OVERLAY_PLACE_TOUCH="SHOWCASE.NOTES.OVERLAY_PLACE_TOUCH",e.OVERLAY_PLACE_CLICK="SHOWCASE.NOTES.OVERLAY_PLACE_CLICK",e.SEARCH_GROUP_HEADER="SHOWCASE.NOTES.SEARCH_GROUP_HEADER",e.SEARCH_GROUP_HEADER_NOTES="SHOWCASE.NOTES.SEARCH_GROUP_HEADER_NOTES",e.SELECTED_NOTES="SHOWCASE.NOTES.SELECTED_NOTES",e.SELECTED_COMMENTS="SHOWCASE.NOTES.SELECTED_COMMENTS"}(u=e.NOTES||(e.NOTES={})),function(e){e.BACK="SHOWCASE.ROOMS.BACK",e.CLOSE="SHOWCASE.ROOMS.CLOSE",e.DEFAULT_NAME="SHOWCASE.ROOMS.DEFAULT_NAME",e.DEFAULT_ROOM="SHOWCASE.ROOMS.DEFAULT_ROOM",e.DOORWAY_TYPE="SHOWCASE.ROOMS.DOORWAY_TYPE",e.DOORWAY_TYPE_DOOR="SHOWCASE.ROOMS.DOORWAY_TYPE_DOOR",e.DOORWAY_TYPE_OPENING="SHOWCASE.ROOMS.DOORWAY_TYPE_OPENING",e.LIST_PANEL_TITLE="SHOWCASE.ROOMS.LIST_PANEL_TITLE",e.LIST_PANEL_EDIT="SHOWCASE.ROOMS.LIST_PANEL_EDIT",e.QUANTITY_IN_UNITS="SHOWCASE.ROOMS.QUANTITY_IN_UNITS",e.ROOM_AREA="SHOWCASE.ROOMS.ROOM_AREA",e.ROOM_BOUNDS_TOGGLES_TITLE="SHOWCASE.ROOMS.ROOM_BOUNDS_TOGGLES_TITLE",e.ROOM_BOUNDS_WALL_TOGGLE_LABEL="SHOWCASE.ROOMS.ROOM_BOUNDS_WALL_TOGGLE_LABEL",e.ROOM_BOUNDS_ROOM_TOGGLE_LABEL="SHOWCASE.ROOMS.ROOM_BOUNDS_ROOM_TOGGLE_LABEL",e.ROOM_BOUNDS_DIMENSION_TOGGLE_LABEL="SHOWCASE.ROOMS.ROOM_BOUNDS_DIMENSION_TOGGLE_LABEL",e.ROOM_BOUNDS_MODEL_TOGGLE_LABEL="SHOWCASE.ROOMS.ROOM_BOUNDS_MODEL_TOGGLE_LABEL",e.ROOM_DIMENSIONS="SHOWCASE.ROOMS.ROOM_DIMENSIONS",e.ROOM_HEIGHT="SHOWCASE.ROOMS.ROOM_HEIGHT",e.ROOM_INFORMATION="SHOWCASE.ROOMS.ROOM_INFORMATION",e.ROOM_PERIMETER="SHOWCASE.ROOMS.ROOM_PERIMETER",e.ROOM_TYPE="SHOWCASE.ROOMS.ROOM_TYPE",e.SEARCH_GROUP_HEADER="SHOWCASE.ROOMS.SEARCH_GROUP_HEADER",e.SETTINGS="SHOWCASE.ROOMS.SETTINGS",e.WALL_THICKNESS="SHOWCASE.ROOMS.WALL_THICKNESS",e.WALL_TYPE="SHOWCASE.ROOMS.WALL_TYPE",e.WALL_TYPE_SOLID="SHOWCASE.ROOMS.WALL_TYPE_SOLID",e.WALL_TYPE_DIVIDER="SHOWCASE.ROOMS.WALL_TYPE_DIVIDER"}(h=e.ROOMS||(e.ROOMS={})),function(e){e.CLOSE_TAG_LABEL="SHOWCASE.TAGS.CLOSE_TAG_LABEL",e.DOCK_TAG_LABEL="SHOWCASE.TAGS.DOCK_TAG_LABEL",e.EDIT_TAG_LABEL="SHOWCASE.TAGS.EDIT_TAG_LABEL",e.MISSING_MESSAGE="SHOWCASE.TAGS.MISSING_MESSAGE",e.SEARCH_GROUP_HEADER="SHOWCASE.TAGS.SEARCH_GROUP_HEADER",e.SHARE_TAG_LABEL="SHOWCASE.TAGS.SHARE_TAG_LABEL",e.UNDOCK_TAG_LABEL="SHOWCASE.TAGS.UNDOCK_TAG_LABEL",e.NAV_BACK_LABEL="SHOWCASE.TAGS.NAV_BACK_LABEL",e.OVERLAY_ADD_TOUCH="SHOWCASE.TAGS.OVERLAY_ADD_TOUCH",e.OVERLAY_ADD_CLICK="SHOWCASE.TAGS.OVERLAY_ADD_CLICK",e.OVERLAY_PLACE_TOUCH="SHOWCASE.TAGS.OVERLAY_PLACE_TOUCH",e.OVERLAY_PLACE_CLICK="SHOWCASE.TAGS.OVERLAY_PLACE_CLICK"}(m=e.TAGS||(e.TAGS={})),function(e){e.QUERY_PLACEHOLDER="SHOWCASE.SEARCH.QUERY_PLACEHOLDER",e.SEARCH_IN_TOOL_PLACEHOLDER="SHOWCASE.SEARCH.SEARCH_IN_TOOL_PLACEHOLDER",e.CLEAR_SEARCH="SHOWCASE.SEARCH.CLEAR_SEARCH",e.FILTER_SEARCH="SHOWCASE.SEARCH.FILTER_SEARCH",e.FILTER_SEARCH_LABEL="SHOWCASE.SEARCH.FILTER_SEARCH_LABEL",e.FILTER_SEARCH_ALL="SHOWCASE.SEARCH.FILTER_SEARCH_ALL",e.FILTER_SEARCH_REMOVE="SHOWCASE.SEARCH.FILTER_SEARCH_REMOVE",e.FILTER_SEARCH_SELECTED="SHOWCASE.SEARCH.FILTER_SEARCH_SELECTED",e.GROUP_DATE="SHOWCASE.SEARCH.GROUP_DATE",e.GROUP_DATE_SELECTED="SHOWCASE.SEARCH.GROUP_DATE_SELECTED",e.GROUP_FLOOR="SHOWCASE.SEARCH.GROUP_FLOOR",e.GROUP_FLOOR_SELECTED="SHOWCASE.SEARCH.GROUP_FLOOR_SELECTED",e.GROUP_LAYER="SHOWCASE.SEARCH.GROUP_LAYER",e.GROUP_LAYER_SELECTED="SHOWCASE.SEARCH.GROUP_LAYER_SELECTED",e.GROUP_ROOM="SHOWCASE.SEARCH.GROUP_ROOM",e.GROUP_ROOM_SELECTED="SHOWCASE.SEARCH.GROUP_ROOM_SELECTED",e.GROUP_TYPE="SHOWCASE.SEARCH.GROUP_TYPE",e.GROUP_TYPE_SELECTED="SHOWCASE.SEARCH.GROUP_TYPE_SELECTED",e.ITEMS="SHOWCASE.SEARCH.ITEMS",e.EMPTY_LIST_MESSAGE="SHOWCASE.SEARCH.EMPTY_LIST_MESSAGE",e.VALIDATION_MESSAGE="SHOWCASE.SEARCH.VALIDATION_MESSAGE"}(p=e.SEARCH||(e.SEARCH={})),function(e){e.BANNER_CTA_LINK_TEXT="SHOWCASE.SUBSCRIBER_PROMPT.BANNER_CTA_LINK_TEXT",e.POPUP_CTA_HEADING="SHOWCASE.SUBSCRIBER_PROMPT.POPUP_CTA_HEADING",e.POPUP_CTA_LINK_TEXT="SHOWCASE.SUBSCRIBER_PROMPT.POPUP_CTA_LINK_TEXT"}(E=e.SUBSCRIBER_PROMPT||(e.SUBSCRIBER_PROMPT={})),function(e){e.HEADING="SHOWCASE.SUMMARY.HEADING",e.LABEL_ADDRESS="SHOWCASE.SUMMARY.LABEL_ADDRESS",e.LABEL_CONTACT="SHOWCASE.SUMMARY.LABEL_CONTACT",e.LABEL_DESCRIPTION="SHOWCASE.SUMMARY.LABEL_DESCRIPTION",e.LABEL_INFORMATION="SHOWCASE.SUMMARY.LABEL_INFORMATION",e.LABEL_LOCATION="SHOWCASE.SUMMARY.LABEL_LOCATION",e.LABEL_LEARN_MORE="SHOWCASE.SUMMARY.LABEL_LEARN_MORE"}(S=e.SUMMARY||(e.SUMMARY={})),function(e){e.TOUR_BUTTON_LABEL="SHOWCASE.TOURS.TOUR_BUTTON_LABEL",e.TOUR_CONTROLS_TITLE="SHOWCASE.TOURS.TOUR_CONTROLS_TITLE",e.TOUR_CONTROLS_CTA="SHOWCASE.TOURS.TOUR_CONTROLS_CTA"}(O=e.TOURS||(e.TOURS={})),function(e){e.VIEW_SELECTOR_START_LOCATION_TOOLTIP="SHOWCASE.VIEWS.VIEW_SELECTOR_START_LOCATION_TOOLTIP"}(g=e.VIEWS||(e.VIEWS={}))}(u=e.SHOWCASE||(e.SHOWCASE={})),function(e){e.AD_DEFURNISH="TOOLS.AD_DEFURNISH",e.AD_DEFURNISH_HELP_MESSAGE="TOOLS.AD_DEFURNISH_HELP_MESSAGE",e.BLUR="TOOLS.BLUR",e.BLUR_HELP_MESSAGE="TOOLS.BLUR_HELP_MESSAGE",e.HLR="TOOLS.HLR",e.HLR_HELP_MESSAGE="TOOLS.HLR_HELP_MESSAGE",e.LABELS="TOOLS.LABELS",e.LABELS_HELP_MESSAGE="TOOLS.LABELS_HELP_MESSAGE",e.LAYERS="TOOLS.LAYERS",e.LAYERS_HELP_MESSAGE="TOOLS.LAYERS_HELP_MESSAGE",e.MATTERTAGS="TOOLS.MATTERTAGS",e.MATTERTAGS_HELP_MESSAGE="TOOLS.MATTERTAGS_HELP_MESSAGE",e.MEASUREMENTS="TOOLS.MEASUREMENTS",e.MEASUREMENTS_SETTINGS="TOOLS.MEASUREMENTS_SETTINGS",e.MEASUREMENTS_HELP_MESSAGE="TOOLS.MEASUREMENTS_HELP_MESSAGE",e.MESH_TRIM="TOOLS.MESH_TRIM",e.MESH_TRIM_HELP_MESSAGE="TOOLS.MESH_TRIM_HELP_MESSAGE",e.NOTES="TOOLS.NOTES",e.NOTES_HELP_MESSAGE="TOOLS.NOTES_HELP_MESSAGE",e.PHOTOS="TOOLS.PHOTOS",e.PHOTOS_HELP_MESSAGE="TOOLS.PHOTOS_HELP_MESSAGE",e.PLUGIN_CONFIG="TOOLS.PLUGIN_CONFIG",e.PLUGIN_CONFIG_HELP_MESSAGE="TOOLS.PLUGIN_CONFIG_HELP_MESSAGE",e.PLUGIN_CONFIG_MISSING="TOOLS.PLUGIN_CONFIG_MISSING",e.ROOMPLAN="TOOLS.ROOMPLAN",e.ROOMPLAN_HELP_MESSAGE="TOOLS.ROOMPLAN_HELP_MESSAGE",e.SCANS_3D="TOOLS.SCANS_3D",e.SCANS_3D_HELP_MESSAGE="TOOLS.SCANS_3D_HELP_MESSAGE",e.SETTINGS_PANEL="TOOLS.SETTINGS_PANEL",e.START_LOCATION="TOOLS.START_LOCATION",e.START_LOCATION_HELP_MESSAGE="TOOLS.START_LOCATION_HELP_MESSAGE",e.SUMMARY="TOOLS.SUMMARY",e.TAGS="TOOLS.TAGS",e.TAGS_HELP_MESSAGE="TOOLS.TAGS_HELP_MESSAGE",e.TOURS="TOOLS.TOURS",e.TOURS_HELP_MESSAGE="TOOLS.TOURS_HELP_MESSAGE",e.VIEW_360="TOOLS.VIEW_360",e.VIEW_360_HELP_MESSAGE="TOOLS.VIEW_360_HELP_MESSAGE",e.VR_PATH="TOOLS.VR_PATH",e.VR_PATH_HELP_MESSAGE="TOOLS.VR_PATH_HELP_MESSAGE",e.SEARCH="TOOLS.SEARCH",e.UNSAVED_CHANGES_TITLE="TOOLS.UNSAVED_CHANGES_TITLE",e.UNSAVED_CHANGES_MESSAGE="TOOLS.UNSAVED_CHANGES_MESSAGE",e.UNSAVED_CHANGES_CONFIRM="TOOLS.UNSAVED_CHANGES_CONFIRM",e.UNSAVED_CHANGES_CANCEL="TOOLS.UNSAVED_CHANGES_CANCEL"}(h=e.TOOLS||(e.TOOLS={})),function(e){e.INVITE_USER="USERS.INVITE_USER",e.INVITE_USER_FAILED="USERS.INVITE_USER_FAILED",e.INVITE_BUTTON="USERS.INVITE_BUTTON",e.INVITE_USERS="USERS.INVITE_USERS",e.INVITE_USERS_FAILED="USERS.INVITE_USERS_FAILED",e.INVITE_VISIBLE_MSG="USERS.INVITE_VISIBLE_MSG",e.UNKNOWN_USER="USERS.UNKNOWN_USER",e.UNKNOWN_USERS="USERS.UNKNOWN_USERS"}(m=e.USERS||(e.USERS={})),function(e){e.FEET_SYMBOL="UNITS_DISPLAY.FEET_SYMBOL",e.INCHES_SYMBOL="UNITS_DISPLAY.INCHES_SYMBOL",e.HALF_SPACE="UNITS_DISPLAY.HALF_SPACE",e.FEET="UNITS_DISPLAY.FEET",e.INCHES="UNITS_DISPLAY.INCHES",e.METERS="UNITS_DISPLAY.METERS",e.SQUARE_FEET="UNITS_DISPLAY.SQUARE_FEET",e.SQUARE_METERS="UNITS_DISPLAY.SQUARE_METERS",e.DIMENSIONS_SEPARATOR="UNITS_DISPLAY.DIMENSIONS_SEPARATOR"}(p=e.UNITS_DISPLAY||(e.UNITS_DISPLAY={})),function(e){let t,i,n,s,a,o,r,l,d,c,u,h,m,p,E,S,O,g,T,_,A,v,N,I,L,f;!function(e){e.DELETE_SELECTED_CTA="WORKSHOP.ACCORDION.DELETE_SELECTED_CTA",e.SELECT_ALL_CTA="WORKSHOP.ACCORDION.SELECT_ALL_CTA",e.ENTER_SELECT_MODE_CTA="WORKSHOP.ACCORDION.ENTER_SELECT_MODE_CTA",e.EXIT_SELECT_MODE_CTA="WORKSHOP.ACCORDION.EXIT_SELECT_MODE_CTA",e.DELETE_FOOTER_CTA="WORKSHOP.ACCORDION.DELETE_FOOTER_CTA",e.TOGGLE_VISIBILITY_FOOTER_CTA="WORKSHOP.ACCORDION.TOGGLE_VISIBILITY_FOOTER_CTA",e.BATCH_DELETE_MODAL_TITLE="WORKSHOP.ACCORDION.BATCH_DELETE_MODAL_TITLE",e.BATCH_DELETE_MODAL_MESSAGE="WORKSHOP.ACCORDION.BATCH_DELETE_MODAL_MESSAGE",e.BATCH_ITEMS_TYPE="WORKSHOP.ACCORDION.BATCH_ITEMS_TYPE",e.BATCH_COPY_LABEL="WORKSHOP.ACCORDION.BATCH_COPY_LABEL",e.BATCH_MOVE_LABEL="WORKSHOP.ACCORDION.BATCH_MOVE_LABEL",e.BATCH_DELETE_LABEL="WORKSHOP.ACCORDION.BATCH_DELETE_LABEL",e.RENAME_HEADER_OPTION_CTA="WORKSHOP.ACCORDION.RENAME_HEADER_OPTION_CTA"}(t=e.ACCORDION||(e.ACCORDION={})),function(e){e.CHANGES_SAVED_MESSAGE="WORKSHOP.APP_SWITCH.CHANGES_SAVED_MESSAGE",e.SAVING_CHANGES_MESSAGE="WORKSHOP.APP_SWITCH.SAVING_CHANGES_MESSAGE",e.PROCESSING_MESSAGE="WORKSHOP.APP_SWITCH.PROCESSING_MESSAGE",e.CHANGES_SAVED_AUTOSAVE_MESSAGE="WORKSHOP.APP_SWITCH.CHANGES_SAVED_AUTOSAVE_MESSAGE",e.EDIT_CTA="WORKSHOP.APP_SWITCH.EDIT_CTA",e.UNSUPPORTED_TOOLTIP_MESSAGE="WORKSHOP.APP_SWITCH.UNSUPPORTED_TOOLTIP_MESSAGE",e.UNSUPPORTED_TOOLTIP_TITLE="WORKSHOP.APP_SWITCH.UNSUPPORTED_TOOLTIP_TITLE",e.FLOORS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.FLOORS_CHECKBOX_LABEL",e.MEASUREMENTS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.MEASUREMENTS_CHECKBOX_LABEL",e.MATTERTAGS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.MATTERTAGS_CHECKBOX_LABEL",e.TAGS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.TAGS_CHECKBOX_LABEL",e.LABELS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.LABELS_CHECKBOX_LABEL",e.HIGHLIGHTS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.HIGHLIGHTS_CHECKBOX_LABEL",e.START_LOCATION_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.START_LOCATION_CHECKBOX_LABEL",e.SETTINGS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.SETTINGS_CHECKBOX_LABEL",e.SWEEPS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.SWEEPS_CHECKBOX_LABEL",e.BLURS_CHECKBOX_LABEL="WORKSHOP.APP_SWITCH.BLURS_CHECKBOX_LABEL",e.EXIT_EDIT_MODE_CTA="WORKSHOP.APP_SWITCH.EXIT_EDIT_MODE_CTA",e.EXIT_EDIT_MODE_TOOLTIP_MESSAGE="WORKSHOP.APP_SWITCH.EXIT_EDIT_MODE_TOOLTIP_MESSAGE",e.PREVIEW_CHANGES_CTA="WORKSHOP.APP_SWITCH.PREVIEW_CHANGES_CTA",e.NO_EDIT_PERMS_TITLE="WORKSHOP.APP_SWITCH.NO_EDIT_PERMS_TITLE",e.NO_EDIT_PERMS_MESSAGE="WORKSHOP.APP_SWITCH.NO_EDIT_PERMS_MESSAGE"}(i=e.APP_SWITCH||(e.APP_SWITCH={})),function(e){e.ACCEPT_ALL_SUGGESTIONS="WORKSHOP.BLURS.ACCEPT_ALL_SUGGESTIONS",e.ACCEPT_SUGGESTION_TOOLTIP="WORKSHOP.BLURS.ACCEPT_SUGGESTION_TOOLTIP",e.ALREADY_PROCESSING_ALERT_MESSAGE="WORKSHOP.BLURS.ALREADY_PROCESSING_ALERT_MESSAGE",e.ALREADY_PROCESSING_ALERT_TITLE="WORKSHOP.BLURS.ALREADY_PROCESSING_ALERT_TITLE",e.APPLY_BLURS_CTA="WORKSHOP.BLURS.APPLY_BLURS_CTA",e.APPLYING="WORKSHOP.BLURS.APPLYING",e.APPLY_MODAL_CONFIRM="WORKSHOP.BLURS.APPLY_MODAL_CONFIRM",e.APPLY_MODAL_NUDGE_CANCEL="WORKSHOP.BLURS.APPLY_MODAL_NUDGE_CANCEL",e.APPLY_MODAL_MESSAGE="WORKSHOP.BLURS.APPLY_MODAL_MESSAGE",e.APPLY_MODAL_NUDGE_MESSAGE="WORKSHOP.BLURS.APPLY_MODAL_NUDGE_MESSAGE",e.APPLY_MODAL_RETRY="WORKSHOP.BLURS.APPLY_MODAL_RETRY",e.APPLY_MODAL_TITLE="WORKSHOP.BLURS.APPLY_MODAL_TITLE",e.APPLY_MODAL_NUDGE_TITLE="WORKSHOP.BLURS.APPLY_MODAL_NUDGE_TITLE",e.APPLY_MODAL_TRUNCATED="WORKSHOP.BLURS.APPLY_MODAL_TRUNCATED",e.APPLY_MODAL_WARNING="WORKSHOP.BLURS.APPLY_MODAL_WARNING",e.BANNER_WARNING="WORKSHOP.BLURS.BANNER_WARNING",e.DEFURNISH_WARNING="WORKSHOP.BLURS.DEFURNISH_WARNING",e.BATCH_SELECT="WORKSHOP.BLURS.BATCH_SELECT",e.BLUR_STATUS="WORKSHOP.BLURS.BLUR_STATUS",e.BLUR_STATUS_ALL="WORKSHOP.BLURS.BLUR_STATUS_ALL",e.BLUR_STATUS_APPLIED="WORKSHOP.BLURS.BLUR_STATUS_APPLIED",e.BLUR_STATUS_FAILED="WORKSHOP.BLURS.BLUR_STATUS_FAILED",e.BLUR_STATUS_PENDING="WORKSHOP.BLURS.BLUR_STATUS_PENDING",e.BLUR_STATUS_PROCESSING="WORKSHOP.BLURS.BLUR_STATUS_PROCESSING",e.BLUR_STATUS_SUGGESTED="WORKSHOP.BLURS.BLUR_STATUS_SUGGESTED",e.BRUSH_TOOLTIP_MESSAGE="WORKSHOP.BLURS.BRUSH_TOOLTIP_MESSAGE",e.BRUSH_TOOLTIP_TITLE="WORKSHOP.BLURS.BRUSH_TOOLTIP_TITLE",e.CLOSE_SUGGESTIONS="WORKSHOP.BLURS.CLOSE_SUGGESTIONS",e.CREATE_TOOLTIP_MESSAGE="WORKSHOP.BLURS.CREATE_TOOLTIP_MESSAGE",e.CREATE_TOOLTIP_TITLE="WORKSHOP.BLURS.CREATE_TOOLTIP_TITLE",e.DEFAULT_ALERT_CONFIRMATION="WORKSHOP.BLURS.DEFAULT_ALERT_CONFIRMATION",e.DEFAULT_ALERT_TITLE="WORKSHOP.BLURS.DEFAULT_ALERT_TITLE",e.DEFAULT_BLUR_NAME="WORKSHOP.BLURS.DEFAULT_BLUR_NAME",e.DELETE_BLUR_CTA="WORKSHOP.BLURS.DELETE_BLUR_CTA",e.GROUP_BY="WORKSHOP.BLURS.GROUP_BY",e.GROUP_BY_FLOOR="WORKSHOP.BLURS.GROUP_BY_FLOOR",e.GROUP_BY_SCAN="WORKSHOP.BLURS.GROUP_BY_SCAN",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.BLURS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.MULTI_FLOOR_EMPTY_MESSAGE="WORKSHOP.BLURS.MULTI_FLOOR_EMPTY_MESSAGE",e.NO_BLURS="WORKSHOP.BLURS.NO_BLURS",e.NO_SUGGESTIONS="WORKSHOP.BLURS.NO_SUGGESTIONS",e.NO_SUGGESTIONS_ON_FLOOR="WORKSHOP.BLURS.NO_SUGGESTIONS_ON_FLOOR",e.NUM_BLUR_SUGGESTIONS="WORKSHOP.BLURS.NUM_BLUR_SUGGESTIONS",e.NUM_TYPE="WORKSHOP.BLURS.NUM_TYPE",e.OTHER_GROUP_LABEL="WORKSHOP.BLURS.OTHER_GROUP_LABEL",e.OVERLAY_MESSAGE="WORKSHOP.BLURS.OVERLAY_MESSAGE",e.OVERLAY_MESSAGE_TOUCH="WORKSHOP.BLURS.OVERLAY_MESSAGE_TOUCH",e.REJECT_ALL_SUGGESTIONS="WORKSHOP.BLURS.REJECT_ALL_SUGGESTIONS",e.REJECT_SUGGESTION_TOOLTIP="WORKSHOP.BLURS.REJECT_SUGGESTION_TOOLTIP",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.BLURS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.SINGLE_FLOOR_EMPTY_MESSAGE="WORKSHOP.BLURS.SINGLE_FLOOR_EMPTY_MESSAGE",e.SORT="WORKSHOP.BLURS.SORT",e.SORT_CREATED_ASC="WORKSHOP.BLURS.SORT_CREATED_ASC",e.SORT_CREATED_DESC="WORKSHOP.BLURS.SORT_CREATED_DESC",e.STATUS="WORKSHOP.BLURS.STATUS",e.SUGGESTED_BLUR="WORKSHOP.BLURS.SUGGESTED_BLUR",e.SUGGESTIONS_AVAILABLE_MESSAGE="WORKSHOP.BLURS.SUGGESTIONS_AVAILABLE_MESSAGE",e.SUGGESTIONS_FOUND_MESSAGE="WORKSHOP.BLURS.SUGGESTIONS_FOUND_MESSAGE",e.TYPE="WORKSHOP.BLURS.TYPE",e.VIEW_SUGGESTIONS="WORKSHOP.BLURS.VIEW_SUGGESTIONS"}(n=e.BLURS||(e.BLURS={})),function(e){e.TYPE="WORKSHOP.SUGGESTIONS.TYPE"}(s=e.SUGGESTIONS||(e.SUGGESTIONS={})),function(e){e.HELP_LINK="WORKSHOP.EDIT_BAR.HELP_LINK",e.BETA_TAG="WORKSHOP.EDIT_BAR.BETA_TAG",e.COLLAPSE_LIST_TOOLTIP_MESSAGE="WORKSHOP.EDIT_BAR.COLLAPSE_LIST_TOOLTIP_MESSAGE",e.EXPAND_LIST_TOOLTIP_MESSAGE="WORKSHOP.EDIT_BAR.EXPAND_LIST_TOOLTIP_MESSAGE",e.NEW_BADGE="WORKSHOP.EDIT_BAR.NEW_BADGE"}(a=e.EDIT_BAR||(e.EDIT_BAR={})),function(e){e.APPLY_CTA="WORKSHOP.EMBED.APPLY_CTA",e.HELP_CTA="WORKSHOP.EMBED.HELP_CTA",e.ERROR_MESSAGE="WORKSHOP.EMBED.ERROR_MESSAGE",e.LOADING_MESSAGE="WORKSHOP.EMBED.LOADING_MESSAGE",e.INVALID_URL_MESSAGE="WORKSHOP.EMBED.INVALID_URL_MESSAGE",e.SUPPORTED_FORMATS_MESSAGE="WORKSHOP.EMBED.SUPPORTED_FORMATS_MESSAGE",e.MEDIA_LINK_LABEL="WORKSHOP.EMBED.MEDIA_LINK_LABEL",e.PROVIDER_NOT_SUPPORTED_MESSAGE="WORKSHOP.EMBED.PROVIDER_NOT_SUPPORTED_MESSAGE",e.LINK_TYPE_NOT_SUPPORTED_MESSAGE="WORKSHOP.EMBED.LINK_TYPE_NOT_SUPPORTED_MESSAGE",e.MEDIA_EMBED_PLACEHOLDER="WORKSHOP.EMBED.MEDIA_EMBED_PLACEHOLDER"}(o=e.EMBED||(e.EMBED={})),function(e){e.ADD_FROM_PHOTOS_TOOLTIP_MESSAGE="WORKSHOP.HLR.ADD_FROM_PHOTOS_TOOLTIP_MESSAGE",e.ADD_HIGHLIGHT_CTA="WORKSHOP.HLR.ADD_HIGHLIGHT_CTA",e.ADD_HIGHLIGHT_DISABLED_CTA="WORKSHOP.HLR.ADD_HIGHLIGHT_DISABLED_CTA",e.ADD_HIGHLIGHT_INSTRUCTIONS="WORKSHOP.HLR.ADD_HIGHLIGHT_INSTRUCTIONS",e.APPLY_TO_ALL_CTA="WORKSHOP.HLR.APPLY_TO_ALL_CTA",e.CLEAR_HLR_MODAL_MESSAGE="WORKSHOP.HLR.CLEAR_HLR_MODAL_MESSAGE",e.CLEAR_HLR_MODAL_TITLE="WORKSHOP.HLR.CLEAR_HLR_MODAL_TITLE",e.CLEAR_REEL_CTA="WORKSHOP.HLR.CLEAR_REEL_CTA",e.CLOSE_SETTINGS_CTA="WORKSHOP.HLR.CLOSE_SETTINGS_CTA",e.DELETE_HIGHLIGHT_TOOLTIP_MESSAGE="WORKSHOP.HLR.DELETE_HIGHLIGHT_TOOLTIP_MESSAGE",e.DISMISS_TOOLTIP_CTA="WORKSHOP.HLR.DISMISS_TOOLTIP_CTA",e.DOLLHOUSE_ROTATION_SPEED_SETTING_LABEL="WORKSHOP.HLR.DOLLHOUSE_ROTATION_SPEED_SETTING_LABEL",e.EDIT_HIGHLIGHT_TOOLTIP_MESSAGE="WORKSHOP.HLR.EDIT_HIGHLIGHT_TOOLTIP_MESSAGE",e.EDIT_SETTINGS_TOOLTIP_MESSAGE="WORKSHOP.HLR.EDIT_SETTINGS_TOOLTIP_MESSAGE",e.HIGHLIGHT_CAPTION_HINT="WORKSHOP.HLR.HIGHLIGHT_CAPTION_HINT",e.HIGHLIGHT_CAPTION_PLACEHOLDER="WORKSHOP.HLR.HIGHLIGHT_CAPTION_PLACEHOLDER",e.HIGHLIGHT_DESCRIPTION_HINT="WORKSHOP.HLR.HIGHLIGHT_DESCRIPTION_HINT",e.HIGHLIGHT_DESCRIPTION_PLACEHOLDER="WORKSHOP.HLR.HIGHLIGHT_DESCRIPTION_PLACEHOLDER",e.HIGHLIGHT_SCENE_HINT="WORKSHOP.HLR.HIGHLIGHT_SCENE_HINT",e.HIGHLIGHT_SCENE_PLACEHOLDER="WORKSHOP.HLR.HIGHLIGHT_SCENE_PLACEHOLDER",e.HIGHLIGHT_TITLE_HINT="WORKSHOP.HLR.HIGHLIGHT_TITLE_HINT",e.HIGHLIGHT_TITLE_PLACEHOLDER="WORKSHOP.HLR.HIGHLIGHT_TITLE_PLACEHOLDER",e.INDIVIDUAL_PAN_DIRECTION_SETTING_LABEL="WORKSHOP.HLR.INDIVIDUAL_PAN_DIRECTION_SETTING_LABEL",e.INDIVIDUAL_TRANSITION_SETTING_LABEL="WORKSHOP.HLR.INDIVIDUAL_TRANSITION_SETTING_LABEL",e.NUM_TYPE="WORKSHOP.HLR.NUM_TYPE",e.PANNING_SETTINGS_TAB_TITLE="WORKSHOP.HLR.PANNING_SETTINGS_TAB_TITLE",e.PAN_DIRECTION_SETTING_AUTO="WORKSHOP.HLR.PAN_DIRECTION_SETTING_AUTO",e.PAN_DIRECTION_SETTING_LABEL="WORKSHOP.HLR.PAN_DIRECTION_SETTING_LABEL",e.PAN_DIRECTION_SETTING_LEFT="WORKSHOP.HLR.PAN_DIRECTION_SETTING_LEFT",e.PAN_DIRECTION_SETTING_RIGHT="WORKSHOP.HLR.PAN_DIRECTION_SETTING_RIGHT",e.PANEL_COLLAPSE="WORKSHOP.HLR.PANEL_COLLAPSE",e.PANEL_EXPAND="WORKSHOP.HLR.PANEL_EXPAND",e.PREVIEW_SETTINGS_CTA="WORKSHOP.HLR.PREVIEW_SETTINGS_CTA",e.PRESENTATION_SETTINGS_TAB_TITLE="WORKSHOP.HLR.PRESENTATION_SETTINGS_TAB_TITLE",e.REMOVE_HIGHLIGHT_TOOLTIP_MESSAGE="WORKSHOP.HLR.REMOVE_HIGHLIGHT_TOOLTIP_MESSAGE",e.RESTORE_DEFAULTS_CTA="WORKSHOP.HLR.RESTORE_DEFAULTS_CTA",e.ROTATION_ANGLE_SETTING_LABEL="WORKSHOP.HLR.ROTATION_ANGLE_SETTING_LABEL",e.ROTATION_SPEED_SETTING_LABEL="WORKSHOP.HLR.ROTATION_SPEED_SETTING_LABEL",e.SCAN_GENERIC_HIDDEN_TOOLTIP_TITLE="WORKSHOP.HLR.SCAN_GENERIC_HIDDEN_TOOLTIP_TITLE",e.SCAN_NOT_HIDDEN_TOOLTIP_TITLE="WORKSHOP.HLR.SCAN_NOT_HIDDEN_TOOLTIP_TITLE",e.SCAN_NUMBER_HIDDEN_TOOLTIP_TITLE="WORKSHOP.HLR.SCAN_NUMBER_HIDDEN_TOOLTIP_TITLE",e.SEARCH_HIGHLIGHT_DEFAULTNAME="WORKSHOP.HLR.SEARCH_HIGHLIGHT_DEFAULTNAME",e.SEARCH_ITEM_DELETE="WORKSHOP.HLR.SEARCH_ITEM_DELETE",e.SEARCH_ITEM_EDIT="WORKSHOP.HLR.SEARCH_ITEM_EDIT",e.SEARCH_TOUR_HEADER="WORKSHOP.HLR.SEARCH_TOUR_HEADER",e.SETTINGS_MODAL_TITLE="WORKSHOP.HLR.SETTINGS_MODAL_TITLE",e.SLIDESHOW_SPEED_SETTING_LABEL="WORKSHOP.HLR.SLIDESHOW_SPEED_SETTING_LABEL",e.SPEED_SETTING_FAST="WORKSHOP.HLR.SPEED_SETTING_FAST",e.SPEED_SETTING_MEDIUM="WORKSHOP.HLR.SPEED_SETTING_MEDIUM",e.SPEED_SETTING_SLOW="WORKSHOP.HLR.SPEED_SETTING_SLOW",e.TOAST_ERROR_CTA="WORKSHOP.HLR.TOAST_ERROR_CTA",e.TOAST_ERROR_MESSAGE="WORKSHOP.HLR.TOAST_ERROR_MESSAGE",e.TOUR_EDITOR_BEHAVIORS_TAB="WORKSHOP.HLR.TOUR_EDITOR_BEHAVIORS_TAB",e.TOUR_EDITOR_LABELS_TAB="WORKSHOP.HLR.TOUR_EDITOR_LABELS_TAB",e.TOUR_EDITOR_EMPTY_MESSAGE="WORKSHOP.HLR.TOUR_EDITOR_EMPTY_MESSAGE",e.TOUR_EDITOR_EMPTY_TITLE="WORKSHOP.HLR.TOUR_EDITOR_EMPTY_TITLE",e.TOUR_EDITOR_TITLE_DESCRIPTION_HELPER="WORKSHOP.HLR.TOUR_EDITOR_TITLE_DESCRIPTION_HELPER",e.TOUR_EDITOR_TITLE_DESCRIPTION_TIP="WORKSHOP.HLR.TOUR_EDITOR_TITLE_DESCRIPTION_TIP",e.TOUR_EDITOR_TITLE_DESCRIPTION_TIP_LINK="WORKSHOP.HLR.TOUR_EDITOR_TITLE_DESCRIPTION_TIP_LINK",e.TOUR_SETTINGS_LABEL="WORKSHOP.HLR.TOUR_SETTINGS_LABEL",e.TOUR_SETTINGS_MOVED_HEADER="WORKSHOP.HLR.TOUR_SETTINGS_MOVED_HEADER",e.TOUR_SETTINGS_MOVED_MESSAGE="WORKSHOP.HLR.TOUR_SETTINGS_MOVED_MESSAGE",e.TRANSITION_AFTER_360_DISABLED_MESSAGE="WORKSHOP.HLR.TRANSITION_AFTER_360_DISABLED_MESSAGE",e.TRANSITION_EDITOR_TITLE="WORKSHOP.HLR.TRANSITION_EDITOR_TITLE",e.TRANSITION_IS_360_DISABLED_MESSAGE="WORKSHOP.HLR.TRANSITION_IS_360_DISABLED_MESSAGE",e.TRANSITION_NO_ROTATION_DISABLED_MESSAGE="WORKSHOP.HLR.TRANSITION_NO_ROTATION_DISABLED_MESSAGE",e.TRANSITION_SAME_SWEEP_DISABLED_MESSAGE="WORKSHOP.HLR.TRANSITION_SAME_SWEEP_DISABLED_MESSAGE",e.TRANSITION_SETTINGS_TAB_TITLE="WORKSHOP.HLR.TRANSITION_SETTINGS_TAB_TITLE",e.TRANSITION_SETTING_LABEL="WORKSHOP.HLR.TRANSITION_SETTING_LABEL",e.TRANSITION_SETTING_SLIDESHOW="WORKSHOP.HLR.TRANSITION_SETTING_SLIDESHOW",e.TRANSITION_SETTING_WALKTHROUGH="WORKSHOP.HLR.TRANSITION_SETTING_WALKTHROUGH",e.TYPE="WORKSHOP.HLR.TYPE",e.WALKTHROUGH_SPEED_SETTING_LABEL="WORKSHOP.HLR.WALKTHROUGH_SPEED_SETTING_LABEL",e.ZOOM_SPEED_SETTING_LABEL="WORKSHOP.HLR.ZOOM_SPEED_SETTING_LABEL"}(r=e.HLR||(e.HLR={})),function(e){e.TYPE="WORKSHOP.LABELS.TYPE",e.NUM_TYPE="WORKSHOP.LABELS.NUM_TYPE",e.SELECTED_LABELS="WORKSHOP.LABELS.SELECTED_LABELS",e.EDIT_TEXT_CANCEL_CTA="WORKSHOP.LABELS.EDIT_TEXT_CANCEL_CTA",e.EDIT_TEXT_DONE_CTA="WORKSHOP.LABELS.EDIT_TEXT_DONE_CTA",e.INPUT_PLACEHOLDER="WORKSHOP.LABELS.INPUT_PLACEHOLDER",e.MOBILE_OVERLAY_MESSAGE="WORKSHOP.LABELS.MOBILE_OVERLAY_MESSAGE",e.ADD_LABEL_TOOLTIP_MESSAGE="WORKSHOP.LABELS.ADD_LABEL_TOOLTIP_MESSAGE",e.RENAME_LIST_ITEM_OPTION_CTA="WORKSHOP.LABELS.RENAME_LIST_ITEM_OPTION_CTA",e.DELETE_LIST_ITEM_OPTION_CTA="WORKSHOP.LABELS.DELETE_LIST_ITEM_OPTION_CTA",e.DEPRECATION_WARNING="WORKSHOP.LABELS.DEPRECATION_WARNING",e.OPEN_PROPERTY_TOOL_LABEL="WORKSHOP.LABELS.OPEN_PROPERTY_TOOL_LABEL",e.BOTH_LABELS_AND_RB_ENABLED="WORKSHOP.LABELS.BOTH_LABELS_AND_RB_ENABLED",e.TURN_OFF_LABELS="WORKSHOP.LABELS.TURN_OFF_LABELS",e.LIST_ITEM_INPUT_PLACEHOLDER="WORKSHOP.LABELS.LIST_ITEM_INPUT_PLACEHOLDER",e.MULTI_FLOOR_EMPTY_MESSAGE="WORKSHOP.LABELS.MULTI_FLOOR_EMPTY_MESSAGE",e.SINGLE_FLOOR_EMPTY_MESSAGE="WORKSHOP.LABELS.SINGLE_FLOOR_EMPTY_MESSAGE",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.LABELS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.LABELS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.EDIT_LABEL="WORKSHOP.LABELS.EDIT_LABEL"}(l=e.LABELS||(e.LABELS={})),function(e){e.BACKYARD="WORKSHOP.LABEL_SUGGESTIONS.BACKYARD",e.BALCONY="WORKSHOP.LABEL_SUGGESTIONS.BALCONY",e.BASEMENT="WORKSHOP.LABEL_SUGGESTIONS.BASEMENT",e.BATHROOM="WORKSHOP.LABEL_SUGGESTIONS.BATHROOM",e.BEDROOM="WORKSHOP.LABEL_SUGGESTIONS.BEDROOM",e.BONUS_ROOM="WORKSHOP.LABEL_SUGGESTIONS.BONUS_ROOM",e.BREAK_ROOM="WORKSHOP.LABEL_SUGGESTIONS.BREAK_ROOM",e.CLOSET="WORKSHOP.LABEL_SUGGESTIONS.CLOSET",e.CONFERENCE_ROOM="WORKSHOP.LABEL_SUGGESTIONS.CONFERENCE_ROOM",e.DEN="WORKSHOP.LABEL_SUGGESTIONS.DEN",e.DINING_ROOM="WORKSHOP.LABEL_SUGGESTIONS.DINING_ROOM",e.DRIVEWAY="WORKSHOP.LABEL_SUGGESTIONS.DRIVEWAY",e.ELEVATOR="WORKSHOP.LABEL_SUGGESTIONS.ELEVATOR",e.ENTRANCE="WORKSHOP.LABEL_SUGGESTIONS.ENTRANCE",e.ESCALATOR="WORKSHOP.LABEL_SUGGESTIONS.ESCALATOR",e.EXERCISE_ROOM="WORKSHOP.LABEL_SUGGESTIONS.EXERCISE_ROOM",e.EXTERIOR="WORKSHOP.LABEL_SUGGESTIONS.EXTERIOR",e.FACADE="WORKSHOP.LABEL_SUGGESTIONS.FACADE",e.FAMILY_ROOM="WORKSHOP.LABEL_SUGGESTIONS.FAMILY_ROOM",e.FRONT_YARD="WORKSHOP.LABEL_SUGGESTIONS.FRONT_YARD",e.GAME_ROOM="WORKSHOP.LABEL_SUGGESTIONS.GAME_ROOM",e.GARAGE="WORKSHOP.LABEL_SUGGESTIONS.GARAGE",e.GARDEN="WORKSHOP.LABEL_SUGGESTIONS.GARDEN",e.GREAT_ROOM="WORKSHOP.LABEL_SUGGESTIONS.GREAT_ROOM",e.GYM="WORKSHOP.LABEL_SUGGESTIONS.GYM",e.HALLWAY="WORKSHOP.LABEL_SUGGESTIONS.HALLWAY",e.KITCHEN="WORKSHOP.LABEL_SUGGESTIONS.KITCHEN",e.LAUNDRY="WORKSHOP.LABEL_SUGGESTIONS.LAUNDRY",e.LIBRARY="WORKSHOP.LABEL_SUGGESTIONS.LIBRARY",e.LIVING_ROOM="WORKSHOP.LABEL_SUGGESTIONS.LIVING_ROOM",e.LOBBY="WORKSHOP.LABEL_SUGGESTIONS.LOBBY",e.LOFT="WORKSHOP.LABEL_SUGGESTIONS.LOFT",e.LUNCH_ROOM="WORKSHOP.LABEL_SUGGESTIONS.LUNCH_ROOM",e.MEDIA_ROOM="WORKSHOP.LABEL_SUGGESTIONS.MEDIA_ROOM",e.MEETING_ROOM="WORKSHOP.LABEL_SUGGESTIONS.MEETING_ROOM",e.OFFICE="WORKSHOP.LABEL_SUGGESTIONS.OFFICE",e.OTHER="WORKSHOP.LABEL_SUGGESTIONS.OTHER",e.PANTRY="WORKSHOP.LABEL_SUGGESTIONS.PANTRY",e.PATIO="WORKSHOP.LABEL_SUGGESTIONS.PATIO",e.POOL="WORKSHOP.LABEL_SUGGESTIONS.POOL",e.PRIMARY_BATHROOM="WORKSHOP.LABEL_SUGGESTIONS.PRIMARY_BATHROOM",e.PRIMARY_BEDROOM="WORKSHOP.LABEL_SUGGESTIONS.PRIMARY_BEDROOM",e.RECEPTION="WORKSHOP.LABEL_SUGGESTIONS.RECEPTION",e.SAUNA="WORKSHOP.LABEL_SUGGESTIONS.SAUNA",e.SPA="WORKSHOP.LABEL_SUGGESTIONS.SPA",e.STAIRCASE="WORKSHOP.LABEL_SUGGESTIONS.STAIRCASE",e.STAIRWAY="WORKSHOP.LABEL_SUGGESTIONS.STAIRWAY",e.STORAGE="WORKSHOP.LABEL_SUGGESTIONS.STORAGE",e.STUDY="WORKSHOP.LABEL_SUGGESTIONS.STUDY",e.UNFURNISHED="WORKSHOP.LABEL_SUGGESTIONS.UNFURNISHED",e.UTILITY_ROOM="WORKSHOP.LABEL_SUGGESTIONS.UTILITY_ROOM",e.VOID="WORKSHOP.LABEL_SUGGESTIONS.VOID",e.WORKSHOP_ROOM="WORKSHOP.LABEL_SUGGESTIONS.WORKSHOP_ROOM"}(d=e.LABEL_SUGGESTIONS||(e.LABEL_SUGGESTIONS={})),function(e){e.ADD_LAYER_BUTTON_LABEL="WORKSHOP.LAYERS.ADD_LAYER_BUTTON_LABEL",e.ADD_VIEW_ITEM="WORKSHOP.LAYERS.ADD_VIEW_ITEM",e.ADD_VIEW_MODAL_TITLE="WORKSHOP.LAYERS.ADD_VIEW_MODAL_TITLE",e.APPLY_TO_ALL_VIEWS_BLURS="WORKSHOP.LAYERS.APPLY_TO_ALL_VIEWS_BLURS",e.APPLY_TO_ALL_VIEWS_SCANS_3D="WORKSHOP.LAYERS.APPLY_TO_ALL_VIEWS_SCANS_3D",e.APPLY_TO_ALL_VIEWS_TRIM="WORKSHOP.LAYERS.APPLY_TO_ALL_VIEWS_TRIM",e.APPLY_TO_ALL_VIEWS_VIEW_360="WORKSHOP.LAYERS.APPLY_TO_ALL_VIEWS_VIEW_360",e.BATCH_NEW_LAYER="WORKSHOP.LAYERS.BATCH_NEW_LAYER",e.COMMON_LAYER="WORKSHOP.LAYERS.COMMON_LAYER",e.COMMON_LAYER_DESCRIPTION="WORKSHOP.LAYERS.COMMON_LAYER_DESCRIPTION",e.COMMON_LAYER_ITEM="WORKSHOP.LAYERS.COMMON_LAYER_ITEM",e.COPY_LAYER_ITEM="WORKSHOP.LAYERS.COPY_LAYER_ITEM",e.DEDICATED_LAYER="WORKSHOP.LAYERS.DEDICATED_LAYER",e.DEDICATED_LAYER_DESCRIPTION="WORKSHOP.LAYERS.DEDICATED_LAYER_DESCRIPTION",e.DEDICATED_LAYER_ITEM="WORKSHOP.LAYERS.DEDICATED_LAYER_ITEM",e.DEFAULT_VIEW_NAME="WORKSHOP.LAYERS.DEFAULT_VIEW_NAME",e.DEFAULT_INSIGHTS_VIEW_NAME="WORKSHOP.LAYERS.DEFAULT_INSIGHTS_VIEW_NAME",e.DEFAULT_TRUEPLAN_VIEW_NAME="WORKSHOP.LAYERS.DEFAULT_TRUEPLAN_VIEW_NAME",e.DEFAULT_DIGIPRO_VIEW_NAME="WORKSHOP.LAYERS.DEFAULT_DIGIPRO_VIEW_NAME",e.DEFAULT_DEFURNISH_VIEW_NAME="WORKSHOP.LAYERS.DEFAULT_DEFURNISH_VIEW_NAME",e.DELETE_COMMON_LAYER_CONFIRMATION_MESSAGE="WORKSHOP.LAYERS.DELETE_COMMON_LAYER_CONFIRMATION_MESSAGE",e.DELETE_COMMON_LAYER_MODAL_TITLE="WORKSHOP.LAYERS.DELETE_COMMON_LAYER_MODAL_TITLE",e.DELETE_LAYER_CONFIRMATION_MESSAGE="WORKSHOP.LAYERS.DELETE_LAYER_CONFIRMATION_MESSAGE",e.DELETE_LAYER_ITEM="WORKSHOP.LAYERS.DELETE_LAYER_ITEM",e.DELETE_LAYER_MODAL_TITLE="WORKSHOP.LAYERS.DELETE_LAYER_MODAL_TITLE",e.DELETE_VIEW_ITEM="WORKSHOP.LAYERS.DELETE_VIEW_ITEM",e.DELETE_VIEW_MODAL_MESSAGE="WORKSHOP.LAYERS.DELETE_VIEW_MODAL_MESSAGE",e.DELETE_VIEW_MODAL_TITLE="WORKSHOP.LAYERS.DELETE_VIEW_MODAL_TITLE",e.DUPLICATE_LAYER_ITEM="WORKSHOP.LAYERS.DUPLICATE_LAYER_ITEM",e.DUPLICATE_LAYER_PLACEHOLDER="WORKSHOP.LAYERS.DUPLICATE_LAYER_PLACEHOLDER",e.DUPLICATE_LAYER_TITLE="WORKSHOP.LAYERS.DUPLICATE_LAYER_TITLE",e.DUPLICATE_VIEW_MODAL_TITLE="WORKSHOP.LAYERS.DUPLICATE_VIEW_MODAL_TITLE",e.EDIT_LAYER_TITLE="WORKSHOP.LAYERS.EDIT_LAYER_TITLE",e.EDIT_VIEW_MODAL_TITLE="WORKSHOP.LAYERS.EDIT_VIEW_MODAL_TITLE",e.HIDDEN_LAYER_ITEM_TOOLTIP="WORKSHOP.LAYERS.HIDDEN_LAYER_ITEM_TOOLTIP",e.HIDE_LAYER="WORKSHOP.LAYERS.HIDE_LAYER",e.LAYER_ADDING_TO_CHOICE_LABEL="WORKSHOP.LAYERS.LAYER_ADDING_TO_CHOICE_LABEL",e.LAYER_ADDING_TO_LABEL="WORKSHOP.LAYERS.LAYER_ADDING_TO_LABEL",e.LAYER_TYPE_LABEL="WORKSHOP.LAYERS.LAYER_TYPE_LABEL",e.LAYER_NAME_PLACEHOLDER="WORKSHOP.LAYERS.LAYER_NAME_PLACEHOLDER",e.MOVE_LAYER_ITEM="WORKSHOP.LAYERS.MOVE_LAYER_ITEM",e.NEW_LAYER_LABEL="WORKSHOP.LAYERS.NEW_LAYER_LABEL",e.NEW_LAYER_TITLE="WORKSHOP.LAYERS.NEW_LAYER_TITLE",e.NEW_VIEW_NAME_PLACEHOLDER="WORKSHOP.LAYERS.NEW_VIEW_NAME_PLACEHOLDER",e.SHARE_THIS_VIEW="WORKSHOP.LAYERS.SHARE_THIS_VIEW",e.SHARED_ENABLED_VIEWS="WORKSHOP.LAYERS.SHARED_ENABLED_VIEWS",e.SHOW_LAYER="WORKSHOP.LAYERS.SHOW_LAYER",e.SWITCH_TO_VIEWS_LEARN_MORE="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LEARN_MORE",e.SWITCH_TO_VIEWS_LIST_HEADER="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_HEADER",e.SWITCH_TO_VIEWS_LIST_ITEM_1="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_ITEM_1",e.SWITCH_TO_VIEWS_LIST_ITEM_2="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_ITEM_2",e.SWITCH_TO_VIEWS_LIST_ITEM_3="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_ITEM_3",e.SWITCH_TO_VIEWS_LIST_ITEM_4="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_LIST_ITEM_4",e.SWITCH_TO_VIEWS_TITLE="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_TITLE",e.SWITCH_TO_VIEWS_USE="WORKSHOP.LAYERS.SWITCH_TO_VIEWS_USE",e.SELECTED_ITEMS="WORKSHOP.LAYERS.SELECTED_ITEMS",e.UNLAYERED_LAYER_LABEL="WORKSHOP.LAYERS.UNLAYERED_LAYER_LABEL",e.TRUEPLAN_LAYER_LABEL="WORKSHOP.LAYERS.TRUEPLAN_LAYER_LABEL",e.UNTITLED_LAYER_PLACEHOLDER="WORKSHOP.LAYERS.UNTITLED_LAYER_PLACEHOLDER",e.VIEW_DISABLED_MESSAGE="WORKSHOP.LAYERS.VIEW_DISABLED_MESSAGE",e.VIEW_DUPLICATE="WORKSHOP.LAYERS.VIEW_DUPLICATE",e.VIEW_DUPLICATE_NAME_SUFFIX="WORKSHOP.LAYERS.VIEW_DUPLICATE_NAME_SUFFIX",e.VIEW_ENABLED_MESSAGE="WORKSHOP.LAYERS.VIEW_ENABLED_MESSAGE",e.VIEW_HIDE_MESSAGE="WORKSHOP.LAYERS.VIEW_HIDE_MESSAGE",e.VIEW_PLACEHOLDER="WORKSHOP.LAYERS.VIEW_PLACEHOLDER",e.VIEW_PREVIEW="WORKSHOP.LAYERS.VIEW_PREVIEW",e.VIEW_PREVIEW_NARROW="WORKSHOP.LAYERS.VIEW_PREVIEW_NARROW",e.VIEW_SET_AS_DEFAULT="WORKSHOP.LAYERS.VIEW_SET_AS_DEFAULT",e.VIEW_IS_DEFAULT="WORKSHOP.LAYERS.VIEW_IS_DEFAULT",e.VIEW_RENAME="WORKSHOP.LAYERS.VIEW_RENAME",e.VIEW_SHOW_MESSAGE="WORKSHOP.LAYERS.VIEW_SHOW_MESSAGE",e.VIEWS_HELP="WORKSHOP.LAYERS.VIEWS_HELP"}(c=e.LAYERS||(e.LAYERS={})),function(e){e.ADD="WORKSHOP.MATTERTAGS.ADD",e.ADD_FILE="WORKSHOP.MATTERTAGS.ADD_FILE",e.ADD_MATTERTAG_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.ADD_MATTERTAG_TOOLTIP_MESSAGE",e.ADD_TAG_NUDGE="WORKSHOP.MATTERTAGS.ADD_TAG_NUDGE",e.ADD_TAG_TOOLTIP="WORKSHOP.MATTERTAGS.ADD_TAG_TOOLTIP",e.ATTACHMENTS_LABEL="WORKSHOP.MATTERTAGS.ATTACHMENTS_LABEL",e.APPEARANCE_LABEL="WORKSHOP.MATTERTAGS.APPEARANCE_LABEL",e.BACK="WORKSHOP.MATTERTAGS.BACK",e.CANCEL_TAG_TOOLTIP="WORKSHOP.MATTERTAGS.CANCEL_TAG_TOOLTIP",e.COLOR_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.COLOR_TOOLTIP_MESSAGE",e.DEFAULT_LIST_ITEM_TEXT="WORKSHOP.MATTERTAGS.DEFAULT_LIST_ITEM_TEXT",e.DEFAULT_TAG_TITLE="WORKSHOP.MATTERTAGS.DEFAULT_TAG_TITLE",e.DELETE_LIST_ITEM_OPTION_CTA="WORKSHOP.MATTERTAGS.DELETE_LIST_ITEM_OPTION_CTA",e.DELETE_MATTERTAGS_MODAL_MESSAGE="WORKSHOP.MATTERTAGS.DELETE_MATTERTAGS_MODAL_MESSAGE",e.DELETE_MATTERTAGS_MODAL_TITLE="WORKSHOP.MATTERTAGS.DELETE_MATTERTAGS_MODAL_TITLE",e.DELETE_TAG_TOOLTIP="WORKSHOP.MATTERTAGS.DELETE_TAG_TOOLTIP",e.DELETE_TAGS_MODAL_MESSAGE="WORKSHOP.MATTERTAGS.DELETE_TAGS_MODAL_MESSAGE",e.DELETE_TAGS_MODAL_TITLE="WORKSHOP.MATTERTAGS.DELETE_TAGS_MODAL_TITLE",e.DESCRIPTION_PLACEHOLDER="WORKSHOP.MATTERTAGS.DESCRIPTION_PLACEHOLDER",e.DISCARD_MATTERTAG_MODAL_MESSAGE="WORKSHOP.MATTERTAGS.DISCARD_MATTERTAG_MODAL_MESSAGE",e.DISCARD_MATTERTAG_MODAL_TITLE="WORKSHOP.MATTERTAGS.DISCARD_MATTERTAG_MODAL_TITLE",e.DROP_FILES_MESSAGE="WORKSHOP.MATTERTAGS.DROP_FILES_MESSAGE",e.EDIT_BILLBOARD_CANCEL_CTA="WORKSHOP.MATTERTAGS.EDIT_BILLBOARD_CANCEL_CTA",e.EDIT_BILLBOARD_DONE_CTA="WORKSHOP.MATTERTAGS.EDIT_BILLBOARD_DONE_CTA",e.EDIT_LIST_ITEM_OPTION_CTA="WORKSHOP.MATTERTAGS.EDIT_LIST_ITEM_OPTION_CTA",e.EDIT_TAG_TOOLTIP="WORKSHOP.MATTERTAGS.EDIT_TAG_TOOLTIP",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.HIDE_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.HIDE_TOOLTIP_MESSAGE",e.KEYWORDS_HELP_MESSAGE="WORKSHOP.MATTERTAGS.KEYWORDS_HELP_MESSAGE",e.KEYWORDS_LABEL="WORKSHOP.MATTERTAGS.KEYWORDS_LABEL",e.KEYWORDS_MAXIMUM_TOKENS_MESSAGE="WORKSHOP.MATTERTAGS.KEYWORDS_MAXIMUM_TOKENS_MESSAGE",e.KEYWORDS_PLACEHOLDER="WORKSHOP.MATTERTAGS.KEYWORDS_PLACEHOLDER",e.LINK_DISABLED_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.LINK_DISABLED_TOOLTIP_MESSAGE",e.LINK_EDITOR_APPLY_CTA="WORKSHOP.MATTERTAGS.LINK_EDITOR_APPLY_CTA",e.LINK_EDITOR_INVALID_TIP="WORKSHOP.MATTERTAGS.LINK_EDITOR_INVALID_TIP",e.LINK_EDITOR_LINK_ADD_LABEL="WORKSHOP.MATTERTAGS.LINK_EDITOR_LINK_ADD_LABEL",e.LINK_EDITOR_LINK_EDIT_LABEL="WORKSHOP.MATTERTAGS.LINK_EDITOR_LINK_EDIT_LABEL",e.LINK_EDITOR_MAX_LENGTH_TIP="WORKSHOP.MATTERTAGS.LINK_EDITOR_MAX_LENGTH_TIP",e.LINK_EDITOR_PREVIEW_TIP="WORKSHOP.MATTERTAGS.LINK_EDITOR_PREVIEW_TIP",e.LINK_EDITOR_REMOVE_TIP="WORKSHOP.MATTERTAGS.LINK_EDITOR_REMOVE_TIP",e.LINK_EDITOR_TEXT_LABEL="WORKSHOP.MATTERTAGS.LINK_EDITOR_TEXT_LABEL",e.LINK_EDITOR_TEXT_PLACEHOLDER="WORKSHOP.MATTERTAGS.LINK_EDITOR_TEXT_PLACEHOLDER",e.LINK_EDITOR_TIP_TEXT="WORKSHOP.MATTERTAGS.LINK_EDITOR_TIP_TEXT",e.LINK_EDITOR_URL_LABEL="WORKSHOP.MATTERTAGS.LINK_EDITOR_URL_LABEL",e.LINK_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.LINK_TOOLTIP_MESSAGE",e.LIST_BY_FLOOR_ALPHABETICAL_LABEL="WORKSHOP.MATTERTAGS.LIST_BY_FLOOR_ALPHABETICAL_LABEL",e.LIST_BY_FLOOR_ORDERED_LABEL="WORKSHOP.MATTERTAGS.LIST_BY_FLOOR_ORDERED_LABEL",e.LIST_IN_TAG_ORDER_LABEL="WORKSHOP.MATTERTAGS.LIST_IN_TAG_ORDER_LABEL",e.LIST_IN_TAG_TITLE_ORDER_LABEL="WORKSHOP.MATTERTAGS.LIST_IN_TAG_TITLE_ORDER_LABEL",e.LIST_SORT_TAG_ORDER="WORKSHOP.MATTERTAGS.LIST_SORT_TAG_ORDER",e.LIST_SORT_TAG_TITLE="WORKSHOP.MATTERTAGS.LIST_SORT_TAG_TITLE",e.MAX_ATTACHMENTS_MESSAGE="WORKSHOP.MATTERTAGS.MAX_ATTACHMENTS_MESSAGE",e.MEDIA_LINK_APPLY_CTA="WORKSHOP.MATTERTAGS.MEDIA_LINK_APPLY_CTA",e.MEDIA_LINK_ERROR_MESSAGE="WORKSHOP.MATTERTAGS.MEDIA_LINK_ERROR_MESSAGE",e.MEDIA_LINK_HELP_LINK="WORKSHOP.MATTERTAGS.MEDIA_LINK_HELP_LINK",e.MEDIA_LINK_INVALID_URL_MESSAGE="WORKSHOP.MATTERTAGS.MEDIA_LINK_INVALID_URL_MESSAGE",e.MEDIA_LINK_LABEL="WORKSHOP.MATTERTAGS.MEDIA_LINK_LABEL",e.MEDIA_LINK_LOADING_MESSAGE="WORKSHOP.MATTERTAGS.MEDIA_LINK_LOADING_MESSAGE",e.MEDIA_LINK_SUPPORTED_FORMATS_LINK="WORKSHOP.MATTERTAGS.MEDIA_LINK_SUPPORTED_FORMATS_LINK",e.MEDIA_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.MEDIA_TOOLTIP_MESSAGE",e.MOBILE_OVERLAY_MESSAGE="WORKSHOP.MATTERTAGS.MOBILE_OVERLAY_MESSAGE",e.MOBILE_REORDER_MODAL_MESSAGE="WORKSHOP.MATTERTAGS.MOBILE_REORDER_MODAL_MESSAGE",e.MOBILE_REORDER_MODAL_TITLE="WORKSHOP.MATTERTAGS.MOBILE_REORDER_MODAL_TITLE",e.MULTI_FLOOR_EMPTY_MESSAGE="WORKSHOP.MATTERTAGS.MULTI_FLOOR_EMPTY_MESSAGE",e.NUM_TYPE="WORKSHOP.MATTERTAGS.NUM_TYPE",e.SAVE="WORKSHOP.MATTERTAGS.SAVE",e.SAVE_PROCESSING="WORKSHOP.MATTERTAGS.SAVE_PROCESSING",e.SAVE_INVALID="WORKSHOP.MATTERTAGS.SAVE_INVALID",e.SELECTED_TAGS="WORKSHOP.MATTERTAGS.SELECTED_TAGS",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_STEM_LABEL="WORKSHOP.MATTERTAGS.SHOW_STEM_LABEL",e.SHOW_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.SHOW_TOOLTIP_MESSAGE",e.SINGLE_FLOOR_EMPTY_MESSAGE="WORKSHOP.MATTERTAGS.SINGLE_FLOOR_EMPTY_MESSAGE",e.STEM_SLIDER_RESET_CTA="WORKSHOP.MATTERTAGS.STEM_SLIDER_RESET_CTA",e.STEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.STEM_TOOLTIP_MESSAGE",e.SUPPORTED_FORMATS_MESSAGE="WORKSHOP.MATTERTAGS.SUPPORTED_FORMATS_MESSAGE",e.TAG_NUM_TYPE="WORKSHOP.MATTERTAGS.TAG_NUM_TYPE",e.TAG_REORDER_ENTER_LABEL="WORKSHOP.MATTERTAGS.TAG_REORDER_ENTER_LABEL",e.TAG_REORDER_EXIT_LABEL="WORKSHOP.MATTERTAGS.TAG_REORDER_EXIT_LABEL",e.TAG_RESET_ORDER="WORKSHOP.MATTERTAGS.TAG_RESET_ORDER",e.TAG_TYPE="WORKSHOP.MATTERTAGS.TAG_TYPE",e.TAGS_EMPTY_MULTI_FLOOR_MESSAGE="WORKSHOP.MATTERTAGS.TAGS_EMPTY_MULTI_FLOOR_MESSAGE",e.TAGS_EMPTY_SINGLE_FLOOR_MESSAGE="WORKSHOP.MATTERTAGS.TAGS_EMPTY_SINGLE_FLOOR_MESSAGE",e.TAGS_HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.TAGS_HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.TAGS_ORDERED_BY_CUSTOM_LABEL="WORKSHOP.MATTERTAGS.TAGS_ORDERED_BY_CUSTOM_LABEL",e.TAGS_ORDERED_BY_LOCATION_LABEL="WORKSHOP.MATTERTAGS.TAGS_ORDERED_BY_LOCATION_LABEL",e.TAGS_RESET_MODAL_BODY="WORKSHOP.MATTERTAGS.TAGS_RESET_MODAL_BODY",e.TAGS_RESET_MODAL_TITLE="WORKSHOP.MATTERTAGS.TAGS_RESET_MODAL_TITLE",e.TAGS_SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MATTERTAGS.TAGS_SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.TITLE_DESC_LABEL="WORKSHOP.MATTERTAGS.TITLE_DESC_LABEL",e.TITLE_PLACEHOLDER="WORKSHOP.MATTERTAGS.TITLE_PLACEHOLDER",e.TYPE="WORKSHOP.MATTERTAGS.TYPE",e.UPLOAD_FILE="WORKSHOP.MATTERTAGS.UPLOAD_FILE",e.UPLOAD_IN_PROGRESS="WORKSHOP.MATTERTAGS.UPLOAD_IN_PROGRESS"}(u=e.MATTERTAGS||(e.MATTERTAGS={})),function(e){e.TYPE="WORKSHOP.MEASUREMENTS.TYPE",e.NUM_TYPE="WORKSHOP.MEASUREMENTS.NUM_TYPE",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MEASUREMENTS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.MEASUREMENTS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.OTHER_GROUP_LABEL="WORKSHOP.MEASUREMENTS.OTHER_GROUP_LABEL",e.RENAME_LIST_ITEM_OPTION_CTA="WORKSHOP.MEASUREMENTS.RENAME_LIST_ITEM_OPTION_CTA",e.DELETE_LIST_ITEM_OPTION_CTA="WORKSHOP.MEASUREMENTS.DELETE_LIST_ITEM_OPTION_CTA",e.LIST_ITEM_INPUT_PLACEHOLDER="WORKSHOP.MEASUREMENTS.LIST_ITEM_INPUT_PLACEHOLDER",e.MULTI_FLOOR_EMPTY_MESSAGE="WORKSHOP.MEASUREMENTS.MULTI_FLOOR_EMPTY_MESSAGE",e.SINGLE_FLOOR_EMPTY_MESSAGE="WORKSHOP.MEASUREMENTS.SINGLE_FLOOR_EMPTY_MESSAGE",e.SELECTED_MEASUREMENTS="WORKSHOP.MEASUREMENTS.SELECTED_MEASUREMENTS",e.GROSS_AREA_TOOLTIP_MESSAGE="WORKSHOP.MEASUREMENTS.GROSS_AREA_TOOLTIP_MESSAGE"}(h=e.MEASUREMENTS||(e.MEASUREMENTS={})),function(e){e.ERROR_TITLE="WORKSHOP.MODAL.ERROR_TITLE",e.SAVING_ERROR_TITLE="WORKSHOP.MODAL.SAVING_ERROR_TITLE",e.SAVING_ERROR_MESSAGE="WORKSHOP.MODAL.SAVING_ERROR_MESSAGE",e.NO="WORKSHOP.MODAL.NO",e.YES="WORKSHOP.MODAL.YES",e.CANCEL="WORKSHOP.MODAL.CANCEL",e.OK="WORKSHOP.MODAL.OK",e.DISCARD="WORKSHOP.MODAL.DISCARD",e.DELETE="WORKSHOP.MODAL.DELETE",e.SAVE="WORKSHOP.MODAL.SAVE"}(m=e.MODAL||(e.MODAL={})),function(e){e.HAPPINESS_TITLE="WORKSHOP.MODEL_RATING.HAPPINESS_TITLE",e.HAPPINESS_BODY="WORKSHOP.MODEL_RATING.HAPPINESS_BODY",e.QUALITY_ISSUES_TITLE="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_TITLE",e.QUALITY_ISSUES_LIGHTING="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_LIGHTING",e.QUALITY_ISSUES_3D_MESH="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_3D_MESH",e.QUALITY_ISSUES_COLORING="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_COLORING",e.QUALITY_ISSUES_IMAGE_QUALITY="WORKSHOP.MODEL_RATING.QUALITY_ISSUES_IMAGE_QUALITY",e.NAVIGATION_ISSUES_TITLE="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_TITLE",e.NAVIGATION_ISSUES_BLOCKED_DOORWAYS="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_BLOCKED_DOORWAYS",e.NAVIGATION_ISSUES_OBSTRUCTIONS="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_OBSTRUCTIONS",e.NAVIGATION_ISSUES_MISALIGNED_SCANS="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_MISALIGNED_SCANS",e.NAVIGATION_ISSUES_FLOOR_SEPARATION="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_FLOOR_SEPARATION",e.NAVIGATION_ISSUES_DISAPPEARING_FLOORS="WORKSHOP.MODEL_RATING.NAVIGATION_ISSUES_DISAPPEARING_FLOORS",e.FEEDBACK_TITLE="WORKSHOP.MODEL_RATING.FEEDBACK_TITLE",e.FEEDBACK_LABEL="WORKSHOP.MODEL_RATING.FEEDBACK_LABEL",e.THANK_YOU_HEADING="WORKSHOP.MODEL_RATING.THANK_YOU_HEADING",e.THANK_YOU_BODY="WORKSHOP.MODEL_RATING.THANK_YOU_BODY",e.THANK_YOU_CTA="WORKSHOP.MODEL_RATING.THANK_YOU_CTA",e.THANK_YOU_CTA_LINK_TEXT="WORKSHOP.MODEL_RATING.THANK_YOU_CTA_LINK_TEXT",e.SAVE="WORKSHOP.MODEL_RATING.SAVE",e.NEXT="WORKSHOP.MODEL_RATING.NEXT",e.PROGRESS="WORKSHOP.MODEL_RATING.PROGRESS"}(p=e.MODEL_RATING||(e.MODEL_RATING={})),function(e){e.SEARCH_GROUP_HEADER="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_GROUP_HEADER",e.SEARCH_GROUP_HIDE_ALL="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_GROUP_HIDE_ALL",e.SEARCH_GROUP_SHOW_ALL="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_GROUP_SHOW_ALL",e.SEARCH_GROUP_DELETE_ALL="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_GROUP_DELETE_ALL",e.SEARCH_ITEM_HIDE_TOOLTIP="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_ITEM_HIDE_TOOLTIP",e.SEARCH_ITEM_SHOW_TOOLTIP="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_ITEM_SHOW_TOOLTIP",e.SEARCH_ITEM_EDIT="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_ITEM_EDIT",e.SEARCH_ITEM_DELETE="WORKSHOP.OBJECT_TAG_SUGGESTION.SEARCH_ITEM_DELETE",e.SHOW_ONLY_IN_SEARCH="WORKSHOP.OBJECT_TAG_SUGGESTION.SHOW_ONLY_IN_SEARCH"}(E=e.OBJECT_TAG_SUGGESTION||(e.OBJECT_TAG_SUGGESTION={})),function(e){e.TYPE="WORKSHOP.PHOTOS.TYPE",e.NUM_TYPE="WORKSHOP.PHOTOS.NUM_TYPE",e.ADD_PHOTOS_CTA="WORKSHOP.PHOTOS.ADD_PHOTOS_CTA",e.ADDING_PHOTOS_CTA="WORKSHOP.PHOTOS.ADDING_PHOTOS_CTA",e.CATURE_PHOTO="WORKSHOP.PHOTOS.CATURE_PHOTO",e.BACK_TO_PHOTOS="WORKSHOP.PHOTOS.BACK_TO_PHOTOS",e.MODAL_TITLE="WORKSHOP.PHOTOS.MODAL_TITLE",e.NUM_SELECTED="WORKSHOP.PHOTOS.NUM_SELECTED",e.SELECT_ALL_CTA="WORKSHOP.PHOTOS.SELECT_ALL_CTA",e.UNSELECT_ALL_CTA="WORKSHOP.PHOTOS.UNSELECT_ALL_CTA",e.UPDATED_TOAST_MESSAGE="WORKSHOP.PHOTOS.UPDATED_TOAST_MESSAGE",e.SAVING_TOAST_MESSAGE="WORKSHOP.PHOTOS.SAVING_TOAST_MESSAGE",e.SAVED_TOAST_MESSAGE="WORKSHOP.PHOTOS.SAVED_TOAST_MESSAGE",e.SAVED_TOAST_CTA="WORKSHOP.PHOTOS.SAVED_TOAST_CTA",e.ERROR_MODAL_TITLE="WORKSHOP.PHOTOS.ERROR_MODAL_TITLE",e.ERROR_MODAL_MESSAGE="WORKSHOP.PHOTOS.ERROR_MODAL_MESSAGE",e.CAMERA_PITCH_RESET_MESSAGE="WORKSHOP.PHOTOS.CAMERA_PITCH_RESET_MESSAGE",e.ZOOM_RESET_MESSAGE="WORKSHOP.PHOTOS.ZOOM_RESET_MESSAGE",e.ZOOM_IN_MESSAGE="WORKSHOP.PHOTOS.ZOOM_IN_MESSAGE",e.ZOOM_OUT_MESSAGE="WORKSHOP.PHOTOS.ZOOM_OUT_MESSAGE",e.CANNOT_SAVE_TOOLTIP_MESSAGE="WORKSHOP.PHOTOS.CANNOT_SAVE_TOOLTIP_MESSAGE",e.CANNOT_SAVE_SCAN_NUMBER_TOOLTIP_MESSAGE="WORKSHOP.PHOTOS.CANNOT_SAVE_SCAN_NUMBER_TOOLTIP_MESSAGE",e.CANNOT_SAVE_TOOLTIP_TITLE="WORKSHOP.PHOTOS.CANNOT_SAVE_TOOLTIP_TITLE",e.CANNOT_SAVE_TOOLTIP_CTA="WORKSHOP.PHOTOS.CANNOT_SAVE_TOOLTIP_CTA",e.SETTINGS_TOOLTIP_MESSAGE="WORKSHOP.PHOTOS.SETTINGS_TOOLTIP_MESSAGE",e.ASSETS_SETTING_LABEL="WORKSHOP.PHOTOS.ASSETS_SETTING_LABEL",e.SHOW_GRID_SETTING_LABEL="WORKSHOP.PHOTOS.SHOW_GRID_SETTING_LABEL",e.SNAPSHOT_ERROR_TOAST_MESSAGE="WORKSHOP.PHOTOS.SNAPSHOT_ERROR_TOAST_MESSAGE",e.SNAPSHOT_ERROR_TOAST_CTA="WORKSHOP.PHOTOS.SNAPSHOT_ERROR_TOAST_CTA",e.PHOTO_VIEWER="WORKSHOP.PHOTOS.PHOTO_VIEWER",e.PHOTO_MODES="WORKSHOP.PHOTOS.PHOTO_MODES",e.NO_PHOTOS="WORKSHOP.PHOTOS.NO_PHOTOS",e.VIEW_PHOTOS="WORKSHOP.PHOTOS.VIEW_PHOTOS",e.UPDATE_NAME="WORKSHOP.PHOTOS.UPDATE_NAME",e.PHOTO_NAME="WORKSHOP.PHOTOS.PHOTO_NAME"}(S=e.PHOTOS||(e.PHOTOS={})),function(e){e.COLOR_NO_SELECTION_TEXT="WORKSHOP.PINS.COLOR_NO_SELECTION_TEXT",e.COLOR_STEM_EDITOR_TITLE="WORKSHOP.PINS.COLOR_STEM_EDITOR_TITLE",e.ICON_GROUP_RECENT="WORKSHOP.PINS.ICON_GROUP_RECENT",e.ICON_GROUP_IN_SPACE="WORKSHOP.PINS.ICON_GROUP_IN_SPACE",e.ICON_GROUP_PEOPLE="WORKSHOP.PINS.ICON_GROUP_PEOPLE",e.ICON_GROUP_FURNITURE="WORKSHOP.PINS.ICON_GROUP_FURNITURE",e.ICON_GROUP_BUILDINGS="WORKSHOP.PINS.ICON_GROUP_BUILDINGS",e.ICON_GROUP_OBJECTS="WORKSHOP.PINS.ICON_GROUP_OBJECTS",e.ICON_GROUP_SYMBOLS="WORKSHOP.PINS.ICON_GROUP_SYMBOLS",e.ICON_GROUP_CHARACTERS="WORKSHOP.PINS.ICON_GROUP_CHARACTERS",e.ICON_PLACEHOLDER="WORKSHOP.PINS.ICON_PLACEHOLDER",e.SEARCH_NO_RESULTS="WORKSHOP.PINS.SEARCH_NO_RESULTS",e.SEARCH_PLACEHOLDER="WORKSHOP.PINS.SEARCH_PLACEHOLDER"}(O=e.PINS||(e.PINS={})),function(e){e.NUM_TYPE="WORKSHOP.PLUGINS.NUM_TYPE",e.PANEL_TITLE="WORKSHOP.PLUGINS.PANEL_TITLE",e.SAVE_CONFIG="WORKSHOP.PLUGINS.SAVE_CONFIG",e.BACK_TO_ALL="WORKSHOP.PLUGINS.BACK_TO_ALL",e.ENABLED="WORKSHOP.PLUGINS.ENABLED",e.SAVE="WORKSHOP.PLUGINS.SAVE",e.CLOSE="WORKSHOP.PLUGINS.CLOSE"}(g=e.PLUGINS||(e.PLUGINS={})),function(e){e.ADD_LABEL="WORKSHOP.ROOMS.ADD_LABEL",e.APPLY_TO_ALL_VIEWS_ROOMS="WORKSHOP.ROOMS.APPLY_TO_ALL_VIEWS_ROOMS",e.DELETE="WORKSHOP.ROOMS.DELETE",e.AREA_IS_OUTDOORS="WORKSHOP.ROOMS.AREA_IS_OUTDOORS",e.AREA_IS_OUTDOORS_TOOLTIP="WORKSHOP.ROOMS.AREA_IS_OUTDOORS_TOOLTIP",e.ROOM_BOUNDS_SETTINGS="WORKSHOP.ROOMS.ROOM_BOUNDS_SETTINGS",e.ROOM_INACCESSIBLE_INFO="WORKSHOP.ROOMS.ROOM_INACCESSIBLE_INFO",e.ROOM_INCLUDE_IN_AREA="WORKSHOP.ROOMS.ROOM_INCLUDE_IN_AREA",e.ROOM_INCLUDE_IN_AREA_TOOLTIP="WORKSHOP.ROOMS.ROOM_INCLUDE_IN_AREA_TOOLTIP",e.ROOM_MISSING_DIMENSIONS="WORKSHOP.ROOMS.ROOM_MISSING_DIMENSIONS",e.ROOM_MISSING_HEIGHT="WORKSHOP.ROOMS.ROOM_MISSING_HEIGHT",e.ROOM_MISSING_INFO="WORKSHOP.ROOMS.ROOM_MISSING_INFO",e.LABEL="WORKSHOP.ROOMS.LABEL",e.RESET_TO_DEFAULT="WORKSHOP.ROOMS.RESET_TO_DEFAULT",e.SELECT="WORKSHOP.ROOMS.SELECT",e.UNDO="WORKSHOP.ROOMS.UNDO"}(T=e.ROOMS||(e.ROOMS={})),function(e){e.TYPE="WORKSHOP.SCANS.TYPE",e.NUM_TYPE="WORKSHOP.SCANS.NUM_TYPE",e.BATCH_SHOW_CTA="WORKSHOP.SCANS.BATCH_SHOW_CTA",e.BATCH_HIDE_CTA="WORKSHOP.SCANS.BATCH_HIDE_CTA",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.LIST_ITEM_TEXT="WORKSHOP.SCANS.LIST_ITEM_TEXT",e.FLOOR_EMPTY_MESSAGE="WORKSHOP.SCANS.FLOOR_EMPTY_MESSAGE",e.NO_HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.NO_HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.HLR_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.HLR_LIST_ITEM_TOOLTIP_MESSAGE",e.HLR_IN_OTHER_VIEWS="WORKSHOP.SCANS.HLR_IN_OTHER_VIEWS",e.START_LOCATION_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.SCANS.START_LOCATION_LIST_ITEM_TOOLTIP_MESSAGE",e.START_LOCATION_SCAN_IN_OTHER_VIEWS="WORKSHOP.SCANS.START_LOCATION_SCAN_IN_OTHER_VIEWS",e.OVERLAY_HIDE_CTA="WORKSHOP.SCANS.OVERLAY_HIDE_CTA",e.OVERLAY_SHOW_CTA="WORKSHOP.SCANS.OVERLAY_SHOW_CTA",e.OVERLAY_HIDE_SCAN_CTA="WORKSHOP.SCANS.OVERLAY_HIDE_SCAN_CTA",e.OVERLAY_SHOW_SCAN_CTA="WORKSHOP.SCANS.OVERLAY_SHOW_SCAN_CTA",e.OVERLAY_PANORAMA_INFO="WORKSHOP.SCANS.OVERLAY_PANORAMA_INFO",e.OVERLAY_INFO="WORKSHOP.SCANS.OVERLAY_INFO",e.START_LOCATION_TOOLTIP_TITLE="WORKSHOP.SCANS.START_LOCATION_TOOLTIP_TITLE",e.START_LOCATION_TOOLTIP_MESSAGE="WORKSHOP.SCANS.START_LOCATION_TOOLTIP_MESSAGE",e.START_LOCATION_TOOLTIP_CTA="WORKSHOP.SCANS.START_LOCATION_TOOLTIP_CTA",e.REMOVE_HLR_MODAL_TITLE="WORKSHOP.SCANS.REMOVE_HLR_MODAL_TITLE",e.REMOVE_HLR_MODAL_MESSAGE="WORKSHOP.SCANS.REMOVE_HLR_MODAL_MESSAGE",e.REMOVE_HLR_MODAL_BATCH_MESSAGE="WORKSHOP.SCANS.REMOVE_HLR_MODAL_BATCH_MESSAGE",e.REMOVE_HLR_MODAL_WARNING="WORKSHOP.SCANS.REMOVE_HLR_MODAL_WARNING",e.REMOVE_SCANS_FROM_HLR_MODAL_TITLE="WORKSHOP.SCANS.REMOVE_SCANS_FROM_HLR_MODAL_TITLE",e.REMOVE_SCAN_FROM_HLR_MODAL_MESSAGE="WORKSHOP.SCANS.REMOVE_SCAN_FROM_HLR_MODAL_MESSAGE",e.REMOVE_BATCH_FROM_HLR_MODAL_SCANS_MESSAGE="WORKSHOP.SCANS.REMOVE_BATCH_FROM_HLR_MODAL_SCANS_MESSAGE",e.REMOVE_BATCH_FROM_HLR_MODAL_HIGHLIGHTS_MESSAGE="WORKSHOP.SCANS.REMOVE_BATCH_FROM_HLR_MODAL_HIGHLIGHTS_MESSAGE"}(_=e.SCANS||(e.SCANS={})),function(e){e.ADVANCED_SPACE_SEARCH_LABEL="WORKSHOP.SETTINGS.ADVANCED_SPACE_SEARCH_LABEL",e.ADVANCED_SPACE_SEARCH_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_SPACE_SEARCH_MESSAGE",e.ADVANCED_DOLLHOUSE_LABEL="WORKSHOP.SETTINGS.ADVANCED_DOLLHOUSE_LABEL",e.ADVANCED_DOLLHOUSE_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_DOLLHOUSE_MESSAGE",e.ADVANCED_FLOORPLAN_LABEL="WORKSHOP.SETTINGS.ADVANCED_FLOORPLAN_LABEL",e.ADVANCED_FLOORPLAN_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_FLOORPLAN_MESSAGE",e.ADVANCED_FLOOR_SELECTION_LABEL="WORKSHOP.SETTINGS.ADVANCED_FLOOR_SELECTION_LABEL",e.ADVANCED_FLOOR_SELECTION_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_FLOOR_SELECTION_MESSAGE",e.ADVANCED_HEADER="WORKSHOP.SETTINGS.ADVANCED_HEADER",e.ADVANCED_MEASUREMENT_MODE_LABEL="WORKSHOP.SETTINGS.ADVANCED_MEASUREMENT_MODE_LABEL",e.ADVANCED_MEASUREMENT_MODE_MENU_LABEL="WORKSHOP.SETTINGS.ADVANCED_MEASUREMENT_MODE_MENU_LABEL",e.ADVANCED_MEASUREMENT_MODE_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_MEASUREMENT_MODE_MESSAGE",e.ADVANCED_ROOM_LABELS_LABEL="WORKSHOP.SETTINGS.ADVANCED_ROOM_LABELS_LABEL",e.ADVANCED_ROOM_LABELS_MESSAGE="WORKSHOP.SETTINGS.ADVANCED_ROOM_LABELS_MESSAGE",e.ADVANCED_ROOM_LABELS_MENU_LABEL="WORKSHOP.SETTINGS.ADVANCED_ROOM_LABELS_MENU_LABEL",e.HIDE_LABELS_IN_DOLLHOUSE_OPTION="WORKSHOP.SETTINGS.HIDE_LABELS_IN_DOLLHOUSE_OPTION",e.HIDE_SAVED_MEASUREMENTS_OPTION="WORKSHOP.SETTINGS.HIDE_SAVED_MEASUREMENTS_OPTION",e.HLR_OPTION_LABEL="WORKSHOP.SETTINGS.HLR_OPTION_LABEL",e.HLR_OPTION_MESSAGE="WORKSHOP.SETTINGS.HLR_OPTION_MESSAGE",e.NAV_OPTION_ADVANCED="WORKSHOP.SETTINGS.NAV_OPTION_ADVANCED",e.NAV_OPTION_PRESENTATION="WORKSHOP.SETTINGS.NAV_OPTION_PRESENTATION",e.NAV_OPTION_TOUR_HLR="WORKSHOP.SETTINGS.NAV_OPTION_TOUR_HLR",e.NAV_OPTION_UNITS="WORKSHOP.SETTINGS.NAV_OPTION_UNITS",e.SHOW_SAVED_MEASUREMENTS_OPTION="WORKSHOP.SETTINGS.SHOW_SAVED_MEASUREMENTS_OPTION",e.SHOW_LABELS_IN_DOLLHOUSE_OPTION="WORKSHOP.SETTINGS.SHOW_LABELS_IN_DOLLHOUSE_OPTION",e.PRESENTATION_BACKGROUND_BLACK_LABEL="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_BLACK_LABEL",e.PRESENTATION_BACKGROUND_GREY_LABEL="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_GREY_LABEL",e.PRESENTATION_BACKGROUND_HEADER="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_HEADER",e.PRESENTATION_BACKGROUND_SUBHEADER="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_SUBHEADER",e.PRESENTATION_BACKGROUND_WHITE_LABEL="WORKSHOP.SETTINGS.PRESENTATION_BACKGROUND_WHITE_LABEL",e.PRESENTATION_HEADER="WORKSHOP.SETTINGS.PRESENTATION_HEADER",e.PRESENTATION_INFORMATION_EVERYTHING_LABEL="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_EVERYTHING_LABEL",e.PRESENTATION_INFORMATION_EVERYTHING_MESSAGE="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_EVERYTHING_MESSAGE",e.PRESENTATION_INFORMATION_COMPACT_LABEL="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_COMPACT_LABEL",e.PRESENTATION_INFORMATION_COMPACT_MESSAGE="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_COMPACT_MESSAGE",e.PRESENTATION_INFORMATION_HEADER="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_HEADER",e.PRESENTATION_INFORMATION_NONE_LABEL="WORKSHOP.SETTINGS.PRESENTATION_INFORMATION_NONE_LABEL",e.ROOM_BOUNDS_TOGGLE_LABEL="WORKSHOP.SETTINGS.ROOM_BOUNDS_TOGGLE_LABEL",e.ROOM_BOUNDS_TOGGLE_MESSAGE_INFO="WORKSHOP.SETTINGS.ROOM_BOUNDS_TOGGLE_MESSAGE_INFO",e.ROOM_BOUNDS_TOGGLE_MESSAGE_DISCOVER="WORKSHOP.SETTINGS.ROOM_BOUNDS_TOGGLE_MESSAGE_DISCOVER",e.ROOM_BOUND_TOGGLE_IN_TOOL="WORKSHOP.SETTINGS.ROOM_BOUND_TOGGLE_IN_TOOL",e.TOUR_AND_HLR_HEADER="WORKSHOP.SETTINGS.TOUR_AND_HLR_HEADER",e.TOUR_DEFAULT_SETTING_LOCATION="WORKSHOP.SETTINGS.TOUR_DEFAULT_SETTING_LOCATION",e.TOUR_MODE_LEGACY_LABEL="WORKSHOP.SETTINGS.TOUR_MODE_LEGACY_LABEL",e.TOUR_MODE_LEGACY_MESSAGE="WORKSHOP.SETTINGS.TOUR_MODE_LEGACY_MESSAGE",e.TOUR_MODE_NONE_LABEL="WORKSHOP.SETTINGS.TOUR_MODE_NONE_LABEL",e.TOUR_MODE_STORY_LABEL="WORKSHOP.SETTINGS.TOUR_MODE_STORY_LABEL",e.TOUR_MODE_STORY_MESSAGE="WORKSHOP.SETTINGS.TOUR_MODE_STORY_MESSAGE",e.TOUR_OPTION_LABEL="WORKSHOP.SETTINGS.TOUR_OPTION_LABEL",e.TOUR_OPTION_MESSAGE="WORKSHOP.SETTINGS.TOUR_OPTION_MESSAGE",e.UNITS_HEADER="WORKSHOP.SETTINGS.UNITS_HEADER",e.UNITS_SUBHEADER="WORKSHOP.SETTINGS.UNITS_SUBHEADER"}(A=e.SETTINGS||(e.SETTINGS={})),function(e){e.ENABLED_TOOLTIP_TITLE="WORKSHOP.START_LOCATION.ENABLED_TOOLTIP_TITLE",e.DISABLED_TOOLTIP_TITLE="WORKSHOP.START_LOCATION.DISABLED_TOOLTIP_TITLE",e.HIDDEN_SWEEP_MESSAGE="WORKSHOP.START_LOCATION.HIDDEN_SWEEP_MESSAGE",e.UNPLACED_360_MESSAGE="WORKSHOP.START_LOCATION.UNPLACED_360_MESSAGE",e.ENABLED_MESSAGE="WORKSHOP.START_LOCATION.ENABLED_MESSAGE",e.TOOLTIP_CTA="WORKSHOP.START_LOCATION.TOOLTIP_CTA",e.SET_NEW_LOCATION_CTA="WORKSHOP.START_LOCATION.SET_NEW_LOCATION_CTA",e.SETTING_NEW_LOCATION_CTA="WORKSHOP.START_LOCATION.SETTING_NEW_LOCATION_CTA",e.THUMBNAIL_PREVIEW_CTA="WORKSHOP.START_LOCATION.THUMBNAIL_PREVIEW_CTA",e.TAG_ORDER_RESET_TITLE="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_TITLE",e.TAG_ORDER_RESET_MESSAGE="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_MESSAGE",e.TAG_ORDER_RESET_HELP_LINK="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_HELP_LINK",e.TAG_ORDER_RESET_CONFIRM="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_CONFIRM",e.TAG_ORDER_RESET_CANCEL="WORKSHOP.START_LOCATION.TAG_ORDER_RESET_CANCEL"}(v=e.START_LOCATION||(e.START_LOCATION={})),function(e){e.NUM_TYPE="WORKSHOP.TRIM.NUM_TYPE",e.HIDE_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.TRIM.HIDE_LIST_ITEM_TOOLTIP_MESSAGE",e.SHOW_LIST_ITEM_TOOLTIP_MESSAGE="WORKSHOP.TRIM.SHOW_LIST_ITEM_TOOLTIP_MESSAGE",e.DELETE_LIST_ITEM_OPTION_CTA="WORKSHOP.TRIM.DELETE_LIST_ITEM_OPTION_CTA",e.RENAME_LIST_ITEM_OPTION_CTA="WORKSHOP.TRIM.RENAME_LIST_ITEM_OPTION_CTA",e.LIST_ITEM_INPUT_PLACEHOLDER="WORKSHOP.TRIM.LIST_ITEM_INPUT_PLACEHOLDER",e.DEFAULT_NAME="WORKSHOP.TRIM.DEFAULT_NAME",e.ALL_FLOORS="WORKSHOP.TRIM.ALL_FLOORS",e.EMPTY_FLOOR_MESSAGE="WORKSHOP.TRIM.EMPTY_FLOOR_MESSAGE",e.SIDE_POSE_CTA="WORKSHOP.TRIM.SIDE_POSE_CTA",e.TOP_POSE_CTA="WORKSHOP.TRIM.TOP_POSE_CTA",e.PERSPECTIVE_POSE_CTA="WORKSHOP.TRIM.PERSPECTIVE_POSE_CTA",e.SIDE_POSE_TOOLTIP="WORKSHOP.TRIM.SIDE_POSE_TOOLTIP",e.LEFT_SIDE_POSE_TOOLTIP="WORKSHOP.TRIM.LEFT_SIDE_POSE_TOOLTIP",e.RIGHT_SIDE_POSE_TOOLTIP="WORKSHOP.TRIM.RIGHT_SIDE_POSE_TOOLTIP",e.TOP_POSE_TOOLTIP="WORKSHOP.TRIM.TOP_POSE_TOOLTIP",e.PERSPECTIVE_POSE_TOOLTIP="WORKSHOP.TRIM.PERSPECTIVE_POSE_TOOLTIP",e.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE="WORKSHOP.TRIM.UNABLE_TO_SAVE_CHANGES_ERROR_MESSAGE",e.ADD_INDIVIDUAL_FLOOR_TRIM_TOOLTIP="WORKSHOP.TRIM.ADD_INDIVIDUAL_FLOOR_TRIM_TOOLTIP",e.ADD_ALL_FLOORS_TRIM_TOOLTIP="WORKSHOP.TRIM.ADD_ALL_FLOORS_TRIM_TOOLTIP",e.MAX_INDIVIDUAL_FLOOR_TRIMS_TOOLTIP="WORKSHOP.TRIM.MAX_INDIVIDUAL_FLOOR_TRIMS_TOOLTIP",e.MAX_ALL_FLOORS_TRIMS_TOOLTIP="WORKSHOP.TRIM.MAX_ALL_FLOORS_TRIMS_TOOLTIP",e.MAX_TRIMS_ERROR_MESSAGE="WORKSHOP.TRIM.MAX_TRIMS_ERROR_MESSAGE",e.KEEP_TOGGLE="WORKSHOP.TRIM.KEEP_TOGGLE",e.REMOVE_TOGGLE="WORKSHOP.TRIM.REMOVE_TOGGLE",e.TOOL_ROTATION_CTA="WORKSHOP.TRIM.TOOL_ROTATION_CTA",e.TOOL_POSITION_CTA="WORKSHOP.TRIM.TOOL_POSITION_CTA",e.TOOL_SCALE_CTA="WORKSHOP.TRIM.TOOL_SCALE_CTA",e.TOOL_ROTATION_TOOLTIP="WORKSHOP.TRIM.TOOL_ROTATION_TOOLTIP",e.TOOL_POSITION_TOOLTIP="WORKSHOP.TRIM.TOOL_POSITION_TOOLTIP",e.TOOL_SCALE_TOOLTIP="WORKSHOP.TRIM.TOOL_SCALE_TOOLTIP",e.DELETE_TRIM="WORKSHOP.TRIM.DELETE_TRIM",e.COMPLETE_TRIM="WORKSHOP.TRIM.COMPLETE_TRIM",e.ADD_TRIM="WORKSHOP.TRIM.ADD_TRIM",e.RESET_ROTATION="WORKSHOP.TRIM.RESET_ROTATION",e.HIDE_PANO_LIST_ITEM_TOOLTIP="WORKSHOP.TRIM.HIDE_PANO_LIST_ITEM_TOOLTIP",e.SHOW_PANO_LIST_ITEM_TOOLTIP="WORKSHOP.TRIM.SHOW_PANO_LIST_ITEM_TOOLTIP",e.MOVE_TRIM_ALL_FLOORS="WORKSHOP.TRIM.MOVE_TRIM_ALL_FLOORS"}(N=e.TRIM||(e.TRIM={})),function(e){e.NUM_TYPE="WORKSHOP.VIEWS_360.NUM_TYPE",e.START_LOCATION_REMOVAL_MESSAGE="WORKSHOP.VIEWS_360.START_LOCATION_REMOVAL_MESSAGE",e.START_LOCATION_MARKER_MESSAGE="WORKSHOP.VIEWS_360.START_LOCATION_MARKER_MESSAGE",e.START_LOCATION_IN_OTHER_VIEWS="WORKSHOP.VIEWS_360.START_LOCATION_IN_OTHER_VIEWS",e.DEFAULT_NAME="WORKSHOP.VIEWS_360.DEFAULT_NAME",e.OVERLAY_MESSAGE="WORKSHOP.VIEWS_360.OVERLAY_MESSAGE",e.OVERLAY_INFO_MISSING_SWEEP="WORKSHOP.VIEWS_360.OVERLAY_INFO_MISSING_SWEEP",e.OVERLAY_INFO_CURRENT_SWEEP="WORKSHOP.VIEWS_360.OVERLAY_INFO_CURRENT_SWEEP",e.OVERLAY_INFO_SELECTED_SWEEP="WORKSHOP.VIEWS_360.OVERLAY_INFO_SELECTED_SWEEP",e.ROTATE_TOOLTIP_TITLE="WORKSHOP.VIEWS_360.ROTATE_TOOLTIP_TITLE",e.ROTATE_TOOLTIP_MESSAGE="WORKSHOP.VIEWS_360.ROTATE_TOOLTIP_MESSAGE",e.ROTATE_TOOLTIP_CTA="WORKSHOP.VIEWS_360.ROTATE_TOOLTIP_CTA",e.UNPLACED_CARD_MESSAGE="WORKSHOP.VIEWS_360.UNPLACED_CARD_MESSAGE",e.RENAME_ITEM_OPTION_CTA="WORKSHOP.VIEWS_360.RENAME_ITEM_OPTION_CTA",e.REMOVE_ITEM_OPTION_CTA="WORKSHOP.VIEWS_360.REMOVE_ITEM_OPTION_CTA",e.NO_VIEWS_MESSAGE="WORKSHOP.VIEWS_360.NO_VIEWS_MESSAGE"}(I=e.VIEWS_360||(e.VIEWS_360={})),function(e){e.TOAST_MESSAGE="WORKSHOP.VR.TOAST_MESSAGE",e.TOAST_CTA="WORKSHOP.VR.TOAST_CTA"}(L=e.VR||(e.VR={})),function(e){e.DEFURN_BULLET1="DEFURN_BULLET1",e.DEFURN_BULLET2="DEFURN_BULLET2",e.DEFURN_BULLET3="DEFURN_BULLET3",e.DEFURN_BULLET4="DEFURN_BULLET4",e.DEFURN_COMPLETE_TEXT1="DEFURN_COMPLETE_TEXT1",e.DEFURN_COMPLETE_TEXT2="DEFURN_COMPLETE_TEXT2",e.DEFURN_COMPLETE_TITLE="DEFURN_COMPLETE_TITLE",e.DEFURN_CONTACT_SUPPORT="DEFURN_CONTACT_SUPPORT",e.DEFURN_ERR_CONTACT="DEFURN_ERR_CONTACT",e.DEFURN_ERR_PERMS="DEFURN_ERR_PERMS",e.DEFURN_ERR_QUOTA="DEFURN_ERR_QUOTA",e.DEFURN_ERR_SETTINGS="DEFURN_ERR_SETTINGS",e.DEFURN_ERR_TITLE="DEFURN_ERR_TITLE",e.DEFURN_ERR_UNKNOWN="DEFURN_ERR_UNKNOWN",e.DEFURN_ERR_MODEL_VERSION_UNSUPPORTED="DEFURN_ERR_MODEL_VERSION_UNSUPPORTED",e.DEFURN_FEEDBACK="DEFURN_FEEDBACK",e.DEFURN_RATING_TITLE="DEFURN_RATING_TITLE",e.DEFURN_RATING_CONTENT="DEFURN_RATING_CONTENT",e.DEFURN_LOCKED_CTA="DEFURN_LOCKED_CTA",e.DEFURN_LOCKED_QUOTA="DEFURN_LOCKED_QUOTA",e.DEFURN_LOCKED_QUOTA2="DEFURN_LOCKED_QUOTA2",e.DEFURN_MODE_BUTTON="DEFURN_MODE_BUTTON",e.DEFURN_MODE_BUTTON_ACTIVE="DEFURN_MODE_BUTTON_ACTIVE",e.DEFURN_MORE="DEFURN_MORE",e.DEFURN_NEXT_TEXT1="DEFURN_NEXT_TEXT1",e.DEFURN_NEXT_TEXT2="DEFURN_NEXT_TEXT2",e.DEFURN_NEXT_TEXT3="DEFURN_NEXT_TEXT3",e.DEFURN_NEXT_TEXT4="DEFURN_NEXT_TEXT4",e.DEFURN_NEXT_TEXT5="DEFURN_NEXT_TEXT5",e.DEFURN_NEXT_TITLE="DEFURN_NEXT_TITLE",e.DEFURN_NUDGE_NEW="DEFURN_NUDGE_NEW",e.DEFURN_NUDGE_TEXT="DEFURN_NUDGE_TEXT",e.DEFURN_NUDGE_TITLE="DEFURN_NUDGE_TITLE",e.DEFURN_SETTINGS="DEFURN_SETTINGS",e.DEFURN_SETTINGS_VIEW="DEFURN_SETTINGS_VIEW",e.DEFURN_SETTINGS_DEFAULT_VIEW="DEFURN_SETTINGS_DEFAULT_VIEW",e.DEFURN_TEXT1="DEFURN_TEXT1",e.DEFURN_TEXT2="DEFURN_TEXT2",e.DEFURN_TITLE="DEFURN_TITLE",e.DEFURN_TOOL_HEADER="DEFURN_TOOL_HEADER",e.DEFURN_UNLOCKED_CANCEL="DEFURN_UNLOCKED_CANCEL",e.DEFURN_UNLOCKED_CTA="DEFURN_UNLOCKED_CTA",e.DEFURN_UNLOCKED_NOTIFY="DEFURN_UNLOCKED_NOTIFY"}(f=e.DEFURNISH||(e.DEFURNISH={}))}(E=e.WORKSHOP||(e.WORKSHOP={})),function(e){let t,i,n,s,a;!function(e){e.BETA_LABEL="GIZMO.PROJECT_PANEL.BETA_LABEL",e.BETA_FEEDBACK_LABEL="GIZMO.PROJECT_PANEL.BETA_FEEDBACK_LABEL",e.HEADER_LABEL="GIZMO.PROJECT_PANEL.HEADER_LABEL",e.HELP_LABEL="GIZMO.PROJECT_PANEL.HELP_LABEL",e.MODELS_HEADER_LABEL="GIZMO.PROJECT_PANEL.MODELS_HEADER_LABEL"}(t=e.PROJECT_PANEL||(e.PROJECT_PANEL={})),function(e){e.LOCK="GIZMO.MODEL_ACTIONS.LOCK",e.UNLOCK="GIZMO.MODEL_ACTIONS.UNLOCK",e.HIDE="GIZMO.MODEL_ACTIONS.HIDE",e.SHOW="GIZMO.MODEL_ACTIONS.SHOW",e.GROUP="GIZMO.MODEL_ACTIONS.GROUP",e.UNGROUP="GIZMO.MODEL_ACTIONS.UNGROUP",e.SNAP="GIZMO.MODEL_ACTIONS.SNAP"}(i=e.MODEL_ACTIONS||(e.MODEL_ACTIONS={})),function(e){e.ZOOM_IN_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_IN_LABEL",e.ZOOM_OUT_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_OUT_LABEL",e.ZOOM_FIT_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_FIT_LABEL",e.ZOOM_100_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_100_LABEL",e.ZOOM_50_LABEL="GIZMO.ZOOM_CONTROL.ZOOM_50_LABEL"}(n=e.ZOOM_CONTROL||(e.ZOOM_CONTROL={})),function(e){e.ADD_TOOLTIP="GIZMO.TOOLBAR.ADD_TOOLTIP",e.MANUAL_ALIGN_TOOLTIP="GIZMO.TOOLBAR.MANUAL_ALIGN_TOOLTIP",e.WALL_MAGNET_TOOLTIP="GIZMO.TOOLBAR.WALL_MAGNET_TOOLTIP",e.FLOOR_MAGNET_TOOLTIP="GIZMO.TOOLBAR.FLOOR_MAGNET_TOOLTIP",e.MERGE_BUTTON_LABEL="GIZMO.TOOLBAR.MERGE_BUTTON_LABEL",e.MERGE_TOOLTIP="GIZMO.TOOLBAR.MERGE_TOOLTIP",e.MERGING_BUTTON_LABEL="GIZMO.TOOLBAR.MERGING_BUTTON_LABEL",e.MERGE_ERROR_BUTTON_LABEL="GIZMO.TOOLBAR.MERGE_ERROR_BUTTON_LABEL",e.REDO_TOOLTIP="GIZMO.TOOLBAR.REDO_TOOLTIP",e.SNAP_TOOLTIP="GIZMO.TOOLBAR.SNAP_TOOLTIP",e.SNAP_LABEL="GIZMO.TOOLBAR.SNAP_LABEL",e.THREE_POINT_ALIGN_TOOLTIP="GIZMO.TOOLBAR.THREE_POINT_ALIGN_TOOLTIP",e.UNDO_TOOLTIP="GIZMO.TOOLBAR.UNDO_TOOLTIP"}(s=e.TOOLBAR||(e.TOOLBAR={})),function(e){e.COMMENT_LABEL="GIZMO.FEEDBACK.COMMENT_LABEL",e.HEADER="GIZMO.FEEDBACK.HEADER",e.SUBMIT="GIZMO.FEEDBACK.SUBMIT",e.RATING_LABEL="GIZMO.FEEDBACK.RATING_LABEL",e.COMMENT_PROMPT="GIZMO.FEEDBACK.COMMENT_PROMPT"}(a=e.FEEDBACK||(e.FEEDBACK={}))}(S=e.GIZMO||(e.GIZMO={}))}(n||(n={}));const s=n},50690:(e,t,i)=>{"use strict";var n;i.d(t,{Q:()=>n}),n||(n={}),function(e){let t;!function(e){e.TITLE="TITLE"}(t=e._COMMON_||(e._COMMON_={})),e.COMPASS=Object.assign({},t),e.ROOMPLAN_MINIMAP=Object.assign({},t),e.MINIMAP=Object.assign({},t),e.SALESPERSON_INFO=Object.assign({},t),e.QUICK_LINK=Object.assign({},t)}(n||(n={}))},23339:(e,t,i)=>{"use strict";var n;function s(e){return e.match(/us|mm|lr$/i)?n.IMPERIAL:n.METRIC}i.d(t,{B:()=>s,t:()=>n}),function(e){e.IMPERIAL="imperial",e.METRIC="metric"}(n||(n={}))},72347:(e,t,i)=>{"use strict";i.d(t,{D:()=>a,z:()=>s});var n=i(43306);function s(e){if(!e)return n.Nm;if(a(e))return e;const t=e.toLocaleLowerCase();if(t in n.e4)return n.e4[t];const[i]=t.split("-");return i in n.e4?n.e4[i]:(n.Fc.find((e=>e.startsWith(t))),n.Nm)}function a(e){return n.Fc.includes(e)}},39869:(e,t,i)=>{"use strict";i.d(t,{Y:()=>a});var n=i(96540),s=i(77570);function a(){return(0,n.useContext)(s.B).locale}},95404:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>O});var n=i(75578),s=i(6539),a=i(14682),o=i.n(a),r=i(43306);async function l(e,t,i="./",n="json"){const s=function(e,t="./",i="json"){return e===r.Nm?`${t}locale/strings.${i}`:`${t}locale/messages/strings_${e}.${i}`}(e,i,n),a=await t.get(s);if("json"===n)return JSON.parse(a);throw new Error(`${n} not implemented`)}var d=i(64491),c=i(91669),u=i(75778),h=i(72347);var m=i(25316);var p=i(93818),E=i(56147);const S=e=>e.replace(/-/g,"_").toUpperCase();class O extends n.n{constructor(){super(...arguments),this.name="locale"}async init(e,t){const i=await t.market.waitForData(m.o);this._languageCode=function(e,t=(0,u.P3)("lang","")){const i=(0,d.Ul)(),n=(0,c.G)("SESSvl",""),s=null!=n?n:"",a=""===s||-1!==s.search(/^en/),o=t||(e?a?i:s:i);return(0,h.z)(o)}(e.isLoggedIn,i.getOverrideParam("lang",""));const n=this._languageCode.substr(0,2);this.polyglot=new(o())({locale:n,interpolation:{prefix:"%{",suffix:"}"},onMissingKey:e=>(this.log.warn("Missing phrase key:"+e),O.missingPrefix+e)});const a=(await t.getModuleBySymbol(s.ZF)).getProperty("assetBasePath"),p=await async function(e,t,i="./",n="json"){const s=await l(e,t,i,n);if(e===r.Nm)return s;const a=await l(r.Nm,t,i,n);return Object.assign(Object.assign({},a),s)}(this._languageCode,e.queue,a);this.polyglot.extend(p),this.localizeUnitsDisplay(),this.registerSettings(t)}t(e,t){return this.polyglot.t(e,t)}T(e,t,i="PLUGIN_KEYS",n){const s=t?`${i}.${S(t)}.${e}`:`${i}.${S(e)}`;return this.has(s)?this.t(s,n):t?t.replace(/-/g," ").split(" ").filter((e=>e.length>0)).map((e=>e[0].toUpperCase()+e.substr(1).toLowerCase())).join(" "):this.t(s,n)}has(e){return this.polyglot.has(e)}get languageCode(){return this._languageCode}localizeUnitsDisplay(){(0,p.LB)({unitsDisplayFeetSymbol:this.t(E.A.UNITS_DISPLAY.FEET_SYMBOL),unitsDisplayInchesSymbol:this.t(E.A.UNITS_DISPLAY.INCHES_SYMBOL),unitsDisplayHalfSpace:this.t(E.A.UNITS_DISPLAY.HALF_SPACE),unitsDisplayFeet:this.t(E.A.UNITS_DISPLAY.FEET),unitsDisplayInches:this.t(E.A.UNITS_DISPLAY.INCHES),unitsDisplayMeters:this.t(E.A.UNITS_DISPLAY.METERS),unitsDisplaySquareFeet:this.t(E.A.UNITS_DISPLAY.SQUARE_FEET),unitsDisplaySquareMeters:this.t(E.A.UNITS_DISPLAY.SQUARE_METERS),dimensionsSeparator:this.t(E.A.UNITS_DISPLAY.DIMENSIONS_SEPARATOR)})}async registerSettings(e){(await e.getModuleBySymbol(s.ZF)).registerSetting("Locale",r.cU,this.languageCode,!1)}}O.missingPrefix="FIX-"},43306:(e,t,i)=>{"use strict";i.d(t,{Fc:()=>n,Nm:()=>s,cU:()=>o,e4:()=>a});const n=["en-US","es","fr","de","ru","ja","zh-CN","zh-TW","ko","nl","it","pt"],s="en-US",a=Object.assign(Object.assign({},n.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.toLowerCase()]:t})),{})),{en:"en-US",zh:"zh-CN",cn:"zh-CN",jp:"ja"}),o="language_code"},26655:(e,t,i)=>{"use strict";var n;i.d(t,{J:()=>n}),function(e){e[e.NAVIGATION=0]="NAVIGATION",e[e.MODEL=1]="MODEL",e[e.EXT_LINK=2]="EXT_LINK"}(n||(n={}));n.NAVIGATION,n.MODEL,n.EXT_LINK},35956:(e,t,i)=>{"use strict";i.d(t,{Q:()=>c});var n=i(68909),s=i(38069),a=i(50636),o=i(26348),r=i(85616),l=i(12554),d=i(57416);class c extends r.v{constructor(e){super(),this.sid="",this.layerId="",this.created=new Date,this.modified=new Date,this.enabled=!0,this.label="",this.description="",this.parsedDescription=[],this.anchorPosition=new n.Vector3,this.anchorNormal=new n.Vector3(0,1,0),this.stemVector=new n.Vector3(0,0,(0,o.hV)(1)),this.stemHeight=(0,o.hV)(1),this.stemVisible=!0,this.fileAttachments=new l.X,this.externalAttachments=new l.X,this.sandboxAttachments=new l.X,this.color=(new d.I).setFromLinearColor(s.V.MATTERTAG_BLUE),this.mediaType=a.q.none,this.mediaSrc="",this.keywords=new l.X,e&&Object.assign(this,e)}copy(e){var t;this.anchorNormal.copy(e.anchorNormal),this.anchorPosition.copy(e.anchorPosition),this.color.copy(e.color),this.created.setTime(e.created.getTime()),this.description=e.description,this.enabled=e.enabled,this.layerId=e.layerId,this.floorId=e.floorId,this.roomId=e.roomId,this.label=e.label,this.mediaType=e.mediaType,this.mediaSrc=e.mediaSrc,this.modified.setTime(e.modified.getTime()),this.sid=e.sid,this.stemVector.copy(e.stemVector),this.stemHeight=e.stemHeight,this.stemVisible=e.stemVisible,this.fileAttachments=e.fileAttachments,this.externalAttachments=e.externalAttachments,this.sandboxAttachments=e.sandboxAttachments,this.objectAnnotationId=e.objectAnnotationId,this.keywords.replace(e.keywords.values()),this.icon=e.icon,this.scanLinks=null===(t=e.scanLinks)||void 0===t?void 0:t.slice(),this.parsedDescription=[];for(const t of e.parsedDescription)this.parsedDescription.push({link:t.link&&{label:t.link.label.slice(),url:t.link.url.slice(),type:t.link.type,navigationData:t.link.navigationData&&{floorVisibility:t.link.navigationData.floorVisibility,mode:t.link.navigationData.mode,sweepIndex:t.link.navigationData.sweepIndex,panoId:t.link.navigationData.panoId,position:t.link.navigationData.position&&t.link.navigationData.position.clone(),quaternion:t.link.navigationData.quaternion.clone(),zoom:t.link.navigationData.zoom}},text:t.text,type:t.type});return this.commit(),this}clone(){return(new c).copy(this)}refresh(e){this.fileAttachments.forEach((t=>{var i,n;const s=e[t.id];s&&(null===(i=t.thumbnailUrl)||void 0===i||i.refreshFrom(s.thumbnailUrl),t.url.refreshFrom(s.url),null===(n=t.downloadUrl)||void 0===n||n.refreshFrom(s.downloadUrl))}))}getPin(){const{anchorPosition:e,color:t,stemVisible:i,floorId:n,roomId:s,stemVector:a,stemHeight:o,icon:r}=this;return{anchorPosition:e,color:t.getHexString(),icon:r,floorId:n,roomId:s,stemEnabled:i,stemNormal:a,stemLength:o}}updateFromOptions(e,t,i){void 0!==e.color&&(this.color=(new d.I).copy(e.color)),void 0!==e.enabled&&(this.enabled=e.enabled),void 0!==e.stemHeight&&(this.stemHeight=e.stemHeight,this.stemVector.copy(this.anchorNormal).setLength(e.stemHeight)),void 0!==e.stemVisible&&(this.stemVisible=e.stemVisible),void 0!==e.label&&(this.label=e.label.slice()),void 0!==e.description&&(this.description=e.description,this.parsedDescription=t.parse(this.description,i)),void 0!==e.floorId&&(this.floorId=e.floorId),void 0!==e.roomId&&(this.roomId=e.roomId),void 0!==e.normal&&(this.anchorNormal.copy(e.normal).normalize(),this.stemVector.copy(e.normal).setLength(this.stemHeight)),void 0!==e.position&&this.anchorPosition.copy(e.position),void 0!==e.keywords&&this.keywords.replace(e.keywords),Object.prototype.hasOwnProperty.call(e,"icon")&&(this.icon=e.icon),void 0!==e.objectAnnotationId&&(this.objectAnnotationId=e.objectAnnotationId)}}},50636:(e,t,i)=>{"use strict";var n;i.d(t,{q:()=>n}),function(e){e.text="text",e.link="link",e.photo="photo",e.video="video",e.rich="rich",e.none="none",e.error="error"}(n||(n={})),function(e){e.parse=t=>null!==t&&t in e?e[t]:e.none}(n||(n={}))},96437:(e,t,i)=>{"use strict";i.d(t,{Ee:()=>d,HI:()=>s,aw:()=>a,l:()=>o,nO:()=>l,rn:()=>r,vZ:()=>c});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={tags:e}}}s.id="MATTERTAG_DISC_POSITIONS";class a extends n.u{constructor(e){super(),this.payload=e}}a.id="ADD_MATTERTAG";class o extends n.u{constructor(e){super(),this.payload={sid:e}}}o.id="DELETE_MATTERTAG";class r extends n.u{constructor(e,t,i,n){super(),this.payload={sid:e,standardOptions:t,mediaOptions:i,positionOptions:n}}}r.id="MATTERTAG_EDIT";class l extends n.u{constructor(e,t,i){super(),this.payload={sid:e,attachmentOptions:t,operation:i}}}l.id="MATTERTAG_EDIT_ATTACHMENTS",function(e){let t;!function(e){e[e.ADD=1]="ADD",e[e.REPLACE=2]="REPLACE"}(t=e.Operation||(e.Operation={}))}(l||(l={}));class d extends n.u{constructor(e,t,i=[],n){super(),this.payload={id:e,properties:t,fileAttachments:i,embed:n}}}d.id="MATTERTAG_NEW_SAVE";class c extends n.u{constructor(e,t,i=[],n=[],s){super(),this.payload={id:e,properties:t,pendingAttachments:i,removedAttachments:n,embed:s}}}c.id="MATTERTAG_SAVE"},29479:(e,t,i)=>{"use strict";i.d(t,{j:()=>o});var n=i(84710),s=i(56413),a=i(2803);class o extends n.B{constructor(e){if(super(),this.name="tag",this.mattertags=(0,s.y)(),e)for(const t of e)this.mattertags.set(t.sid,t);this.commit()}clear(){for(const e of this.mattertags.keys)this.removeTag(e)}clone(){return(new o).copy(this)}copy(e){return o.copyTagCollection(this,e),this}static copyTagCollection(e,t){const i=e.mattertags,n=t.mattertags;for(const t of i.keys)n.has(t)||e.removeTag(t);for(const t of n)e.addTag(t)}get collection(){return this.mattertags}addTag(e){this.mattertags.has(e.sid)?this.mattertags.get(e.sid).copy(e):this.mattertags.set(e.sid,e.clone())}removeTag(e){return this.mattertags.delete(e)}getTag(e){return this.mattertags.get(e)}getTagList(){return this.mattertags.keys}getTagCount(){return this.mattertags.length}getTagKeywords(){let e=[];return this.iterate((t=>{t.enabled&&t.keywords.length&&(e=e.concat(t.keywords.values()))})),e}iterate(e){for(const t of this.mattertags)e(t)}*[Symbol.iterator](){for(const e of this.mattertags)yield e}set onStale(e){this.hydrate=e}updateOnStaleCallbacks(e){if(!this.hydrate)return;const t=e?this.getTag(e):this.mattertags;(0,a._)(t,(async()=>{const e=await this.hydrate();this.iterate((t=>{t.refresh(e)}))}))}}},80419:(e,t,i)=>{"use strict";i.d(t,{Qn:()=>a,T8:()=>o,Yt:()=>s});var n=i(89103);class s extends n.QB{constructor(e){super(),this.sid=e}}class a extends n.QB{constructor(e){super(),this.url=e}}class o extends n.QB{constructor(e,t){super(),this.sid=e,this.view=t}}},75522:(e,t,i)=>{"use strict";i.d(t,{qE:()=>n,vg:()=>s});const n="features/mattertags",s="embedlyKey"},57416:(e,t,i)=>{"use strict";i.d(t,{I:()=>o});var n=i(3249),s=i(68909);const a=new s.Color;class o{constructor(e=0,t=0,i=0){this.r=e,this.g=t,this.b=i}set(e,t,i){return this.r=e,this.g=i,this.b=t,this}setHex(e){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,this}setHexString(e){if("string"!=typeof(t=e)||4!==t.length&&7!==t.length||!/^#([0-9a-f]{3}){1,2}$/i.test(t))throw new Error("Invalid hex color");var t;const i=e.substring(1);return 3===i.length?this.set(parseInt(i.charAt(0),16)/15,parseInt(i.charAt(1),16)/15,parseInt(i.charAt(2),16)/15):6===i.length?this.setHex(parseInt(i,16)):this}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}getHexString(){return"#"+("000000"+this.getHex().toString(16)).slice(-6)}getHex(){return 65536*Math.round((0,n.qE)(255*this.r,0,255))+256*Math.round((0,n.qE)(255*this.g,0,255))+Math.round((0,n.qE)(255*this.b,0,255))}setFromLinearColor(e){return a.copy(e).convertLinearToSRGB(),this.r=a.r,this.g=a.g,this.b=a.b,this}}},81483:(e,t,i)=>{"use strict";i.d(t,{P:()=>E,V:()=>S});var n=i(74381),s=i(81587),a=i(10843),o=i(86866),r=i(68909),l=i(24675),d=i(35956),c=i(25481),u=i(44094),h=i(85275),m=i(87314);const p=new a.Ay("mds-mattertag-serializer");class E{constructor(e,t){this.fileAttachmentDeserializer=e,this.externalAttachmentDeserializer=t}deserialize(e){var t,i;if(!e||!this.validate(e))return p.debug("Deserialized invalid Mattertag data from MDS",e),null;const n=e.anchorPosition?o.U$.fromVisionVector(e.anchorPosition):void 0,a=e.stemNormal?o.U$.fromVisionVector(e.stemNormal):void 0,h=new d.Q;if(h.sid=e.id,h.layerId=(null===(t=e.layer)||void 0===t?void 0:t.id)||"",h.label=e.label||"",h.description=e.description||"",h.enabled=!!e.enabled,e.color&&h.color.setHexString(e.color),h.created=(0,s.X)(e.created),h.modified=(0,s.X)(e.modified),e.floor&&e.floor.id&&(h.floorId=e.floor.id),e.room&&e.room.id&&(h.roomId=e.room.id),n&&(h.anchorPosition=n),e.media&&(h.mediaSrc=e.media),e.mediaType&&(h.mediaType=(0,l.og)(e.mediaType)),h.fileAttachments.replace(this.getFileAttachments(h,e)),h.externalAttachments.replace(this.getExternalAttachments(h,e)),(0,c.Et)(e.stemLength)&&(h.stemHeight=e.stemLength),a&&a instanceof r.Vector3){const t=a.clone().setLength(h.stemHeight);h.anchorNormal=a,h.stemVector=t,h.stemVisible=!!e.stemEnabled}else h.stemVector=new r.Vector3(0,0,0),h.stemVisible=!!e.stemEnabled;return h.objectAnnotationId=null===(i=e.objectAnnotation)||void 0===i?void 0:i.id,h.keywords.replace(e.keywords||[]),(0,u.s)(e.icon)&&(h.icon=e.icon),h}validate(e){if(!e)return!1;return["id","created","modified","enabled"].every((t=>t in e))}getFileAttachments(e,t){return this.fileAttachmentDeserializer?this.deserializeFileAttachments(t).sort(((e,t)=>e.created.getTime()-t.created.getTime())):[]}getExternalAttachments(e,t){if(!this.externalAttachmentDeserializer)return[];const i=this.deserializeExternalAttachments(t);if(t.media&&t.mediaType){const n=(0,l.sM)(e.sid,t.media,t.mediaType);n&&i.push(n)}return i.sort(((e,t)=>e.created.getTime()-t.created.getTime()))}deserializeExternalAttachments(e){const t=e.externalAttachments||[],i=[];return t.forEach((t=>{var s;const a=null===(s=this.externalAttachmentDeserializer)||void 0===s?void 0:s.deserialize(t);a&&(a.parentId=e.id,a.parentType=n.pi.MATTERTAG,i.push(a))})),i}deserializeFileAttachments(e){const t=e.fileAttachments||[],i=[];return t.forEach((t=>{var s;const a=null===(s=this.fileAttachmentDeserializer)||void 0===s?void 0:s.deserialize(t);a&&(a.parentId=e.id,a.parentType=n.pi.MATTERTAG,i.push(a))})),i}}const S=function(){const e=(0,h.V)(),t=(0,m.Y)();return new E(e,t)}},24675:(e,t,i)=>{"use strict";i.d(t,{KP:()=>c,n4:()=>u,og:()=>d,sM:()=>m});var n=i(50636),s=i(3795),a=i(30740),o=i(25712),r=i(2803),l=i(61430);function d(e){const t={[l.yg.VIDEO]:n.q.video,[l.yg.PHOTO]:n.q.photo,[l.yg.RICH]:n.q.rich};return e in t?t[e]:n.q.none}function c(e){switch(e){case s.zu.VIDEO:return n.q.video;case s.zu.IMAGE:return n.q.photo;case s.zu.RICH:return n.q.rich}return n.q.none}function u(e){switch(e){case n.q.video:return l.yg.VIDEO;case n.q.photo:return l.yg.PHOTO;case n.q.rich:return l.yg.RICH}return null}function h(e){return{[l.yg.VIDEO]:s.zu.VIDEO,[l.yg.PHOTO]:s.zu.IMAGE,[l.yg.RICH]:s.zu.RICH}[e]}function m(e,t,i){return t?new a.o({id:(0,o.W0)(),created:new Date,parentId:e,parentType:l.pi.MATTERTAG,mediaType:h(i),src:t,url:new r.f(t,null),thumbnailUrl:new r.f(t,null),category:s._A.EXTERNAL}):null}},28454:(e,t,i)=>{"use strict";i.d(t,{s:()=>r});var n=i(84710),s=i(41535),a=i(95330),o=i(3066);class r extends n.B{constructor(){super(...arguments),this.name="measure-mode",this._groups=[],this._groupMap={},this.onDataChangedCallbacks=new Set,this._editingGroupId=null,this._creatingGroupId=null,this.phase=s.hb.CLOSED,this.pressProgress=-1,this.selectedGroupIndexObservable=new a.L(-1),this.pointPositionObservable=new a.L(null),this.idVisibility=new Set}onPhaseChanged(e){return this.onPropertyChanged("phase",e)}onDataChanged(e){return(0,o.Sh)((()=>this.onDataChangedCallbacks.add(e)),(()=>this.onDataChangedCallbacks.delete(e)),!0)}onPointPositionChanged(e){return this.pointPositionObservable.onChanged(e)}onSelectedGroupIndexChanged(e){return this.selectedGroupIndexObservable.onChanged(e)}modeActive(){return this.phase!==s.hb.CLOSED}isEditingOrCreating(){return this.phase>=s.hb.EDITING}*groups(){for(const e of this._groups)yield e}get selectedGroupSid(){const e=this.selectedGroupInfo;return e&&e.info.sid?e.info.sid:null}get selectedGroupInfo(){return-1===this.selectedGroupIndex?null:this.getGroupInfo(this.selectedGroupIndex)}get creatingGroupId(){return this._creatingGroupId}set creatingGroupId(e){this._creatingGroupId=e}get editingGroupId(){return this._editingGroupId}set editingGroupId(e){this._editingGroupId=e}get groupCount(){return this._groups.length}get pointPosition(){return this.pointPositionObservable.value}get selectedGroupIndex(){return this.selectedGroupIndexObservable.value}getGroupInfo(e){return e<0||e>=this._groups.length?null:this._groups[e]}getGroupInfoBySid(e){return e?this._groupMap[e]:null}setPhase(e){this.phase!==e&&(this.phase=e,this.commit())}notifyDataChanged(){this.onDataChangedCallbacks.forEach((e=>e()))}setPointPosition(e){this.pointPositionObservable.value=e}setSelectedGroupIndex(e){this.selectedGroupIndexObservable.value=e}repopulate(e){this.clear();for(const t of e){const e=t.clone();this._groups.push(e),this._groupMap[t.info.sid]=e}this.notifyDataChanged()}clear(){this._groups=[],this._groupMap={}}}},41535:(e,t,i)=>{"use strict";var n;i.d(t,{TI:()=>s,Vk:()=>a,hb:()=>n,nm:()=>r,y_:()=>o}),function(e){e[e.CLOSED=0]="CLOSED",e[e.IDLE=1]="IDLE",e[e.EDITING=2]="EDITING",e[e.CREATING=3]="CREATING",e[e.POINT_PLACED=4]="POINT_PLACED",e[e.CREATING_NEXT_POINT=5]="CREATING_NEXT_POINT",e[e.CONFIRMING_POINT=6]="CONFIRMING_POINT"}(n||(n={}));const s={mobile:{[n.POINT_PLACED]:!0,[n.EDITING]:!0},desktop:{[n.CREATING]:!0,[n.CREATING_NEXT_POINT]:!0,[n.EDITING]:!0}},a={mobile:{[n.CREATING_NEXT_POINT]:!0,[n.POINT_PLACED]:!0,[n.EDITING]:!0},desktop:{[n.CREATING]:!0,[n.CREATING_NEXT_POINT]:!0,[n.EDITING]:!0}},o={[n.IDLE]:!0,[n.EDITING]:!0},r={[n.IDLE]:!0,[n.EDITING]:!0}},98159:(e,t,i)=>{"use strict";i.d(t,{CN:()=>o,SH:()=>s,tm:()=>a});var n=i(55141);class s extends n.u{}s.id="MEASUREMENT_DELETE_SELECTED";class a extends n.u{constructor(e){super(),this.payload={index:e}}}a.id="MEASUREMENT_DELETE";class o extends n.u{constructor(...e){super(),this.payload={sids:e}}}o.id="MEASUREMENT_LIST_DELETION"},3071:(e,t,i)=>{"use strict";i.d(t,{S:()=>s});var n=i(55141);class s extends n.u{constructor(e,t,i=!0){super(),this.payload={on:e,dimWhileActive:void 0!==t?t:e,editable:i}}}s.id="MEASURE_MODE_TOGGLE"},8774:(e,t,i)=>{"use strict";i.d(t,{X:()=>s});var n=i(55141);class s extends n.u{}s.id="MEASURE_START"},87951:(e,t,i)=>{"use strict";i.d(t,{y:()=>s});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={index:e}}}s.id="MEASUREMENT_SELECT"},5320:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var n=i(55141);class s extends n.u{}s.id="MEASURE_STOP"},48535:(e,t,i)=>{"use strict";i.d(t,{g:()=>r});var n=i(27947),s=i(86e3),a=i(56208),o=i(5262);function r(){const e=(0,o.i)(a.Q$.Measurements,!0);return(0,s.F)()!==n.lg.SHOWCASE||e}},95221:(e,t,i)=>{"use strict";i.d(t,{g:()=>a});var n=i(71555),s=i(28454);const a=(0,n.v)(s.s)},95846:(e,t,i)=>{"use strict";i.d(t,{B:()=>a});var n=i(96540),s=i(95221);function a(e){const t=(0,s.g)(),[i,a]=(0,n.useState)((null==t?void 0:t.getGroupInfoBySid(e))||null);return(0,n.useEffect)((()=>{if(!t)return()=>{};function i(){a((null==t?void 0:t.getGroupInfoBySid(e))||null)}const n=t.onDataChanged(i);return i(),()=>n.cancel()}),[t,e]),i}},11815:(e,t,i)=>{"use strict";i.d(t,{W:()=>o});var n=i(87805),s=i(28454),a=i(41535);const o=(0,n.r)(s.s,"phase",a.hb.CLOSED)},89395:(e,t,i)=>{"use strict";i.d(t,{E:()=>a});var n=i(96540),s=i(95221);function a(){const e=(0,s.g)(),[t,i]=(0,n.useState)(e?e.selectedGroupSid:null);return(0,n.useEffect)((()=>{if(!e)return()=>{};function t(){e&&i(e.selectedGroupSid)}const n=e.onSelectedGroupIndexChanged(t);return t(),()=>n.cancel()}),[e]),t}},38039:(e,t,i)=>{"use strict";i.d(t,{Z:()=>n});const n="features/measurements-nudge"},94:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(89103);class s extends n.QB{constructor(e,t){super(),this.sid=e,this.vrSupported=t}}},55057:(e,t,i)=>{"use strict";i.d(t,{q:()=>a});var n=i(84710),s=i(56413);class a extends n.B{constructor(){super(),this.name="model",this.assetsMap=new s.E}get model(){return this._model}setModel(e){this._model=e}addModelAssets(e,t){this.activeAssetsId||(this.activeAssetsId=e),this.assetsMap.set(e,t)}getModelAssets(e=this.activeAssetsId){return this.assetsMap.get(e)}hasModelAssets(e){return this.assetsMap.has(e)}}},49812:(e,t,i)=>{"use strict";i.d(t,{h:()=>a});var n=i(71555),s=i(55057);const a=(0,n.v)(s.q)},35404:(e,t,i)=>{"use strict";i.d(t,{Lj:()=>a,k5:()=>d,ov:()=>r,qu:()=>o,tQ:()=>c,wD:()=>s,wx:()=>l});var n=i(75778);const s="social_sharing",a="branding_enabled",o="presentation_mls_mode",r="presentation_title",l="presentation_about",d="discover_space_url",c={urlTemplateToken:"",urlTemplateOverride:(0,n.P3)("tiledtemplate",null)}},5984:(e,t,i)=>{"use strict";i.d(t,{r:()=>a});var n=i(37458),s=i(68909);class a extends s.Mesh{constructor(){super(...arguments),this.isModelMesh=!0,this.raycastEnabled=!0}get picking2DPriority(){return n.X.default}}},90572:(e,t,i)=>{"use strict";var n;i.d(t,{R:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.RAYCAST=1]="RAYCAST"}(n||(n={}))},22278:(e,t,i)=>{"use strict";i.d(t,{U:()=>o});var n=i(68909),s=i(84710);const a=[-5,-5,-5,5,5,5];class o extends s.B{get meshGroups(){return this._meshGroups}constructor(e=a,t=a,i=new n.Vector3){super(),this.name="mesh-data",this.extendedBounds=new n.Box3,this.extendedSize=new n.Vector3,this.meshBounds=new n.Box3,this.meshCenter=new n.Vector3,this.centerOfMass=new n.Vector3,this.meshSize=new n.Vector3,this.meshRadius=0,this.maxPlacementRadius=0,this._meshGroups={floors:new Map,rooms:new Map,roomsByFloor:new Map},this.meshSubGroupsFromPoint=e=>{const t=[];for(const[i,n]of this.meshGroups.rooms)n.boundingBox.containsPoint(e)&&t.push(i);return t},this.meshBounds.setFromArray(e),this.meshBounds.getCenter(this.meshCenter),this.meshBounds.getSize(this.meshSize),this.meshRadius=this.meshSize.clone().multiplyScalar(.5).length(),this.maxPlacementRadius=3*this.meshRadius,this.extendedBounds.setFromArray(t),this.extendedBounds.getSize(this.extendedSize),this.centerOfMass.copy(i)}}},596:(e,t,i)=>{"use strict";var n;i.d(t,{M:()=>n}),function(e){e[e.LOW=1]="LOW",e[e.MEDIUM=2]="MEDIUM",e[e.HIGH=3]="HIGH",e[e.ULTRA=4]="ULTRA"}(n||(n={}))},44345:(e,t,i)=>{"use strict";i.d(t,{EX:()=>s,Gf:()=>o,Ny:()=>r,qZ:()=>a});var n=i(89103);class s extends n.QB{constructor(e,t){super(),this.loaded=e,this.total=t}}class a extends n.QB{}class o extends n.QB{}class r extends n.QB{}},47299:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>a,Vp:()=>l,_Z:()=>o,lg:()=>d,sz:()=>r,u7:()=>c,xT:()=>s});var n=i(75778);const s={debugLOD:(0,n.P3)("debuglod",!1),debugRttQuality:(0,n.P3)("debugQuality",!1),debugRttScores:(0,n.P3)("debugScores",!1),debugRttClear:(0,n.P3)("debuglodrtt",!0),debugPauseTexStream:(0,n.P3)("textureStreamPause",!1),sightingMaxAge:(0,n.P3)("meshSightingMaxAge",600),textureTileSize:(0,n.P3)("chunkTileSize",512)},a=s,o="wireframeEnabled",r="features/tiled_mesh",l="Trim floor by(%)",d=0,c={FADE_OPAQUE:1,FADE_ABOVE:.05,FADE_BELOW:.2,FADE_TILE_VISIBLE_THRESHOLD:.6,FADE_CLICKABLE_THRESHOLD:.051,FADE_IN_VALUE:.2,FADE_IN_END_ANGLE:55,FADE_IN_START_ANGLE:35,FADE_IN_HOVER_BOOST_VALUE:.3,FADE_BELOW_START:0,FADE_BELOW_MULT:1}},77489:(e,t,i)=>{"use strict";i.d(t,{G:()=>s});var n=i(84710);class s extends n.B{constructor(){super(),this.name="model-rating-view-data",this.isDialogVisible=!1,this.setDialogVisible=e=>{this.isDialogVisible=void 0!==e?e:!this.isDialogVisible,this.commit()}}}},26432:(e,t,i)=>{"use strict";i.d(t,{c:()=>s,i:()=>a});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={toVisible:e}}}s.id="TOGGLE_MODEL_RATING_DIALOG";class a extends n.u{constructor(e,t=!1){super(),this.payload={rating:e,didFinish:t}}}a.id="SUBMIT_MODEL_RATING"},57447:(e,t,i)=>{"use strict";i.d(t,{n:()=>n,s:()=>s});const n="features/model-rating-dialog",s="features/model-rating-dialog-prompt"},9997:(e,t,i)=>{"use strict";i.d(t,{Dd:()=>c,E4:()=>r,Jq:()=>s,UZ:()=>d,aj:()=>l,r:()=>u,rH:()=>o,sD:()=>a});var n=i(55141);class s extends n.u{constructor(){super()}}s.id="LOCK_NAVIGATION";class a extends n.u{constructor(){super()}}a.id="UNLOCK_NAVIGATION";class o extends n.u{constructor(e){super(),this.payload=e}}o.id="FOCUS_ON_POINT_INSIDE";class r extends n.u{constructor(e){super(),this.payload=e}}r.id="FOCUS_ON_PIN_INSIDE";class l extends n.u{constructor(e){super(),this.payload=Object.assign({},e)}}l.id="MOVE_TO_SWEEP";class d extends n.u{constructor(e){super(),this.payload=e}}d.id="NAVIGATE_TO_LABEL";class c extends n.u{constructor(e){super(),this.payload={room:e}}}c.id="NAVIGATE_TO_ROOM";class u extends n.u{constructor(e){super(),this.payload={pose:e}}}u.id="NAVIGATE_TO_POSE"},87306:(e,t,i)=>{"use strict";i.d(t,{$l:()=>g,C0:()=>l,FV:()=>r,I8:()=>o,IN:()=>v,RJ:()=>a,T0:()=>O,Xc:()=>E,Xt:()=>N,YC:()=>_,dz:()=>p,e3:()=>I,eg:()=>c,er:()=>A,iT:()=>h,kr:()=>S,lf:()=>T,sL:()=>u,up:()=>m,x7:()=>d});var n=i(55141),s=i(13893);class a extends n.u{}a.id="REGISTER_NOTES_TOOLS";class o extends n.u{constructor(e){super(),this.payload={opened:e}}}o.id="NOTES_MODE_TOGGLE";class r extends n.u{constructor(e,t,i,n,a=s.fl.FadeToBlack){super(),this.payload={noteId:e,dock:t,edit:i,commentId:n,transition:a}}}r.id="NOTES_OPEN_NOTE_COMMENT";class l extends n.u{constructor(){super()}}l.id="NOTE_START_ADD";class d extends n.u{constructor(e){super(),this.payload={text:e}}}d.id="NOTE_ADD";class c extends n.u{constructor(){super()}}c.id="NOTE_CANCEL_ADD";class u extends n.u{constructor(){super()}}u.id="NOTE_CLOSE";class h extends n.u{constructor(e,t){super(),this.payload={noteId:e,text:t}}}h.id="NOTE_SAVE_CHANGES";class m extends n.u{}m.id="COMMENT_CANCEL_CHANGES";class p extends n.u{constructor(e){super(),this.payload={opened:e}}}p.id="NOTE_POPUP_EDITOR_TOGGLE";class E extends n.u{constructor(e,t){super(),this.payload={noteId:e,properties:t}}}E.id="NOTE_APPEARANCE_SAVE";class S extends n.u{constructor(e,t){super(),this.payload={noteId:e,resolved:t}}}S.id="NOTE_RESOLVE";class O extends n.u{constructor(e){super(),this.payload={noteId:e}}}O.id="NOTE_DELETE";class g extends n.u{constructor(e,t){super(),this.payload={filter:e,enabled:t}}}g.id="NOTES_TOGGLE_FILTER";class T extends n.u{constructor(e){super(),this.payload={id:e}}}T.id="NOTE_COMMENT_EDIT";class _ extends n.u{constructor(e,t,i){super(),this.payload={noteId:e,text:t,replyId:i}}}_.id="COMMENT_ADD";class A extends n.u{constructor(e,t,i){super(),this.payload={noteId:e,commentId:t,text:i}}}A.id="COMMENT_UPDATE";class v extends n.u{constructor(e,t){super(),this.payload={noteId:e,commentId:t}}}v.id="COMMENT_DELETE";class N extends n.u{constructor(e){super(),this.payload={ids:e}}}N.id="FILTER_VISIBLE_NOTES_COMMAND";class I extends n.u{constructor(e){super(),this.payload={enabled:e}}}I.id="NOTES_VISIBILITY_FILTER_ENABLED"},85204:(e,t,i)=>{"use strict";i.d(t,{nc:()=>s,uV:()=>o});var n=i(53641);const s="features/notes-mode",a="spaces.notes";function o(e,t,i,o,r){if(!e)return!1;let l=!1;const d=t.hasPolicy(a),c=i.isCommenter();return l=d&&c,l&&(o.setProperty(s,l),o.setProperty(n.nH,l)),l}},53641:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>u,Jz:()=>c,KZ:()=>l,NB:()=>r,RU:()=>a,_d:()=>o,nH:()=>s,u4:()=>d});var n=i(74381);const s="features/notes",a=30,o=15,r=n.OQ.VIEWER,l=500,d=500,c="#5c7fff",u=Object.freeze({noteMesh:{scale:{nearBound:1.5,farBound:4.8,maxSize:80,minSize:40,baseViewportSize:800,responsiveness:100}},colors:["#d44441","#f44336","#e91e63","#f78da7","#9c4b92","#673ab7","#5c7fff","#03a9f4","#417505","#00bcd4","#51a868","#37d67a","#cddc39","#fbcd00","#ffac17","#ff6900","#abb8c3","#607d8b"],stem:{length:.23,width:1,opacity:1,transparent:!1,color:"white",alphaTest:.05},anchor:{size:.1},navigation:{anyDistance:!0,visibleDistance:8,cameraClearance:.1,tiltTolerance:25}})},62876:(e,t,i)=>{"use strict";i.d(t,{FZ:()=>r,_H:()=>s});var n=i(40186);const s="object-insights-feature",a="showcase/objects_beta_access",o="objectAnnotations";function r(e,t,i,r){const l=t.getModelOrganizationId(),d=(0,n.NW)(i),c=(0,n.LT)(e,null!=l?l:null),u=!!l&&e.hasMembershipFlag(l,a),h=r.getOverrideParam(o,-1),m=!(0===h)&&(d&&c&&u||1===h);return r.setProperty(s,m),m}},71828:(e,t,i)=>{"use strict";i.d(t,{$6:()=>E,Dw:()=>o,SO:()=>d,Tv:()=>p,WU:()=>c,aY:()=>m,b7:()=>l,bI:()=>r,g1:()=>a,mK:()=>h,pz:()=>u,qD:()=>s});var n=i(64491);const s=1e3/60,a=.05,o=.1/60,r=.02,l=25,d=3,c=3,u=.16,h=(0,n.cX)()?45:(0,n.Zm)()?20:35,m=.01,p=2,E=Math.PI/2/1e3},51274:(e,t,i)=>{"use strict";i.d(t,{k:()=>d});var n=i(37458),s=i(10843),a=i(68909),o=i(17340),r=i(86224);const l=new s.Ay("InstancedPinHeads");class d extends a.InstancedMesh{constructor(e,t,i,s){const l=new a.PlaneGeometry(r.N,r.N),d=new a.InstancedBufferAttribute(new Float32Array(e),1);l.setAttribute("instanceAlpha",d);const c=new a.InstancedBufferAttribute(new Float32Array(4*e),4),u=new a.InstancedBufferAttribute(new Float32Array(e),1);l.setAttribute("instanceMaskRect",c),l.setAttribute("instanceStrokeWidth",u);const h=s&&i?new o.ce(t,i):new o.GS(t,!0);super(l,h,e),this.updateMaskTexture=e=>{if(this.material&&this.material instanceof o.ce){const t=this.material.uniforms;t.mask.value!==e&&(t.mask.value=e,this.material.uniformsNeedUpdate=!0)}},this.material=h,this.maxCount=e,this.opacityAttrib=d,this.maskRectAttrib=c,this.strokeWidthAttrib=u,this.setColorAt(0,new a.Color),this.renderedPins=[],this.renderOrder=n.X.pins}update(e){let t=0;this.renderedPins.length=0;for(const i of e){if(!i.visible)continue;if(t>=this.maxCount){l.error("Instance count is too small!");continue}this.setMatrixAt(t,i.pinHeadMatrix),this.setColorAt(t,i.pinColor),this.opacityAttrib.setX(t,i.opacity*i.opacityAnimation.value*i.opacityScale),this.strokeWidthAttrib.setX(t,i.pinStrokeWidth);const e=i.pinIconUVRect;e&&this.maskRectAttrib.setXYZW(t,e.minU,e.minV,e.maxU,e.maxV),t++,this.renderedPins.push(i)}this.count=t,this.visible=this.count>0,this.instanceMatrix.needsUpdate=!0,this.opacityAttrib.needsUpdate=!0,this.maskRectAttrib.needsUpdate=!0,this.strokeWidthAttrib.needsUpdate=!0,this.instanceColor?(this.instanceColor.needsUpdate=!0,this.computeBoundingSphere()):l.error("Instance color should be defined")}}},65425:(e,t,i)=>{"use strict";i.d(t,{R:()=>r});var n=i(37458),s=i(68909),a=i(86224),o=i(40397);class r extends s.Mesh{constructor(e,t,i,a){super(t,i),this.geomScale=new s.Vector3(1,1,1),this.userData.sid=e,this.worldPosition=new s.Vector3,this.layers.mask=a.mask,this.renderOrder=n.X.pins,this.scale.set(.01,.01,.01)}dispose(){this.material.dispose(),this.geometry.dispose()}updatePosition(e){this.position.copy(e.stemNormal).setLength(Math.max(e.stemLength,.01))}update(e,t,i){this.quaternion.copy(e.quaternion);const n=a.A.pinHeadMesh.scale;this.getWorldPosition(this.worldPosition);const s=(0,o.cv)(this.worldPosition,e,t,i,n);this.scale.set(s*this.geomScale.x,s*this.geomScale.y,s*this.geomScale.z)}}},17340:(e,t,i)=>{"use strict";i.d(t,{ce:()=>_,Zo:()=>T,GS:()=>A,Kg:()=>v});var n=i(68909),s=i(86224),a=i(59039),o=i.n(a),r=i(94857),l=i.n(r),d=i(65388),c=i.n(d),u=i(2834),h=i.n(u),m=i(98840),p=i.n(m),E=i(45550),S=i.n(E);const O={pinHead:{uniforms:{alpha:{value:1},color:{value:new n.Color},bg:{value:null},mask:{value:null}},vertexShader:o(),fragmentShader:l()},pinStem:{uniforms:{pinHeadMatrix:{value:new n.Matrix4},resolution:{value:new n.Vector2},alpha:{value:1}},vertexShader:c(),fragmentShader:h()},pinSelected:{uniforms:{},vertexShader:p(),fragmentShader:S()}};var g=i(59155);n.ShaderMaterial;n.ShaderMaterial;class T extends n.ShaderMaterial{constructor(){const e=n.UniformsUtils.clone(O.pinStem.uniforms);super({defines:{INSTANCED:!0},fragmentShader:O.pinStem.fragmentShader,vertexShader:O.pinStem.vertexShader,uniforms:e,name:"InstancedPinStemMaterial",linewidth:s.A.stem.width,opacity:s.A.stem.opacity,transparent:s.A.stem.transparent,alphaTest:s.A.stem.opacity*s.A.stem.alphaTest})}}class _ extends n.ShaderMaterial{constructor(e,t){const i=n.UniformsUtils.clone(O.pinHead.uniforms);i.bg.value=e,i.mask.value=t,super({defines:{INSTANCED:!0},fragmentShader:O.pinHead.fragmentShader,vertexShader:O.pinHead.vertexShader,uniforms:i,name:"InstancedPinHeadMaterial",transparent:!0})}}class A extends n.ShaderMaterial{constructor(e,t){super({defines:{INSTANCED:t},vertexShader:g.A.basicTextured.vertexShader,fragmentShader:g.A.basicTextured.fragmentShader,uniforms:{alpha:{value:1},tDiffuse:{value:e}},name:"InstancedPinHeadCustomMaterial",transparent:!0})}}class v extends n.ShaderMaterial{constructor(){super({depthTest:!0,depthWrite:!1,transparent:!0,side:n.DoubleSide,vertexShader:O.pinSelected.vertexShader,fragmentShader:O.pinSelected.fragmentShader})}}},11416:(e,t,i)=>{"use strict";i.d(t,{U:()=>r});var n=i(84710),s=i(95330),a=i(25727),o=i(56413);class r extends n.B{constructor(){super(),this.name="pins-view-data",this.pins=new o.E,this.creatingPin=!1,this.pinEditorStateObservable=(0,s.p)(a.ce.IDLE),this.selectedPinObservable=(0,s.p)(null),this.focusedPinObservable=(0,s.p)(null),this.editableObservable=(0,s.p)(!1),this.progressObservable=(0,s.p)(-1),this.screenPositionObservable=(0,s.p)(null),this.canPlaceObservable=(0,s.p)(!0),this.canAddObservable=(0,s.p)(!0),this.iteratePins=e=>{this.pins.forEach(e)}}onPinUpdate(e){return this.pins.onElementChanged(e)}updatePin(e){this.pins.set(e.id,e)}getPin(e){return this.pins.get(e)}removePin(e){this.pins.get(e)&&this.pins.delete(e)}removePinsByType(e){this.pins.forEach(((t,i)=>{t.pinType===e&&this.pins.delete(t.id)}))}get creatingNewPin(){return this.creatingPin}setSelectedPinId(e){this.selectedPinObservable.value=e}get selectedPinId(){return this.selectedPinObservable.value}onSelectedPinChanged(e){return this.selectedPinObservable.onChanged(e)}setFocusedPin(e){this.focusedPinObservable.value=e}get focusedPin(){return this.focusedPinObservable.value}onFocusedPinChanged(e){return this.focusedPinObservable.onChanged(e)}setPinEditorState(e){switch(e){case a.ce.IDLE:this.creatingPin=!1;break;case a.ce.CREATING:this.creatingPin=!0}this.pinEditorStateObservable.value=e}get pinEditorState(){return this.pinEditorStateObservable.value}onPinEditorStateChanged(e){return this.pinEditorStateObservable.onChanged(e)}setProgress(e){this.progressObservable.value=e}get progress(){return this.progressObservable.value}onProgressChanged(e){const t=this.progressObservable.onChanged(e);return t.renew(),t}get screenPosition(){return this.screenPositionObservable.value}setScreenPosition(e){this.screenPositionObservable.value=e}onScreenPositionChanged(e){return this.screenPositionObservable.onChanged(e)}get isPinEditable(){return this.editableObservable.value}setEditablePin(e){this.editableObservable.value=e}onPinEditableChanged(e){return this.editableObservable.onChanged(e)}get canAdd(){return this.canAddObservable.value}setCanAdd(e){this.canAddObservable.value=e}onCanAddChanged(e){return this.canAddObservable.onChanged(e)}get canPlace(){return this.canPlaceObservable.value}setCanPlace(e){this.canPlaceObservable.value=e}onCanPlaceChanged(e){return this.canPlaceObservable.onChanged(e)}}},33699:(e,t,i)=>{"use strict";i.d(t,{Ct:()=>O,FI:()=>g,HR:()=>m,Mx:()=>v,Ni:()=>c,Rg:()=>a,Zs:()=>r,f5:()=>p,fZ:()=>s,g4:()=>E,gx:()=>h,hd:()=>l,mP:()=>o,mf:()=>T,uf:()=>S,wd:()=>_,wn:()=>u,yq:()=>A,z5:()=>d});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={enabled:e}}}s.id="ENABLE_PIN_CREATION";class a extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,editable:i}}}a.id="SELECT_PIN";class o extends n.u{constructor(e,t){super(),this.payload={id:e,pinType:t}}}o.id="UNSELECT_PIN";class r extends n.u{constructor(e,t,i,n){super(),this.payload={id:e,pin:t,pinType:i,backgroundTexture:n}}}r.id="CREATE_PIN";class l extends n.u{constructor(e,t){super(),this.payload={id:e,pinType:t}}}l.id="PIN_CREATION_CANCEL";class d extends n.u{constructor(e,t){super(),this.payload={id:e,pinType:t}}}d.id="REMOVE_PIN";class c extends n.u{constructor(e){super(),this.payload={pinType:e}}}c.id="REMOVE_PIN_TYPE";class u extends n.u{constructor(e){super(),this.payload={pinViews:e}}}u.id="UPDATE_PIN_VIEWS";class h extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,properties:i}}}h.id="UPDATE_PIN";class m extends n.u{constructor(e,t=!1){super(),this.payload={id:e,editable:t}}}m.id="TOGGLE_PIN_EDITING";class p extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,visible:i}}}p.id="CHANGE_PIN_VISIBILITY";class E extends n.u{constructor(e,t){super(),this.payload={pinType:e,visible:t}}}E.id="CHANGE_PIN_TYPE_VISIBILITY";class S extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,opacity:i}}}S.id="CHANGE_PIN_OPACITY";class O extends n.u{constructor(e,t,i){super(),this.payload={id:e,pinType:t,scale:i}}}O.id="CHANGE_PIN_OPACITY_SCALE";class g extends n.u{constructor(e,t,i=[]){super(),this.payload={pinType:e,opacity:t,skipIds:i}}}g.id="CHANGE_PIN_TYPE_OPACITY";class T extends n.u{}T.id="PIN_SELECTION_CLEAR";class _ extends n.u{constructor(){super()}}_.id="PIN_CLICK_ELSEWHERE";class A extends n.u{constructor(){super()}}A.id="PLACE_PIN";class v extends n.u{constructor(e,t,i){super(),this.payload={id:e,pos:t,previousPos:i}}}v.id="MOVE_PIN"},25727:(e,t,i)=>{"use strict";var n;i.d(t,{DH:()=>r,ce:()=>o,ob:()=>a,tf:()=>s,yY:()=>n}),function(e){e.MATTERTAG="mattertag",e.NOTE="note",e.OBJECT="object"}(n||(n={}));const s={[n.MATTERTAG]:"simple-tag-pin",[n.NOTE]:"comment-large",[n.OBJECT]:"simple-tag-small"};var a,o,r;!function(e){e.DEFAULT="default",e.HIGHLIGHTED="highlighted",e.DIMMED="dimmed"}(a||(a={})),function(e){e.IDLE="idle",e.CREATING="creating",e.PRESSING="pressing",e.PLACING="placing",e.PLACED="placed"}(o||(o={})),function(e){e.UP="up",e.UP_LEFT="up-left",e.UP_RIGHT="up-right",e.DOWN="down",e.DOWN_LEFT="down-left",e.DOWN_RIGHT="down-right",e.LEFT="left",e.RIGHT="right"}(r||(r={}))},79457:(e,t,i)=>{"use strict";i.d(t,{RG:()=>s,cC:()=>d,fD:()=>l,lY:()=>c,oX:()=>a,wk:()=>r,yi:()=>o});var n=i(89103);class s extends n.QB{constructor(e,t,i){super(),this.id=e,this.hovering=t,this.pinType=i}}class a extends n.QB{constructor(e,t){super(),this.id=e,this.pinType=t}}class o extends n.QB{constructor(e,t,i){super(),this.id=e,this.pinType=t,this.pinPos=i}}class r extends n.QB{}class l extends n.QB{}class d extends n.QB{constructor(e,t,i,n){super(),this.id=e,this.pinType=t,this.pinPos=i,this.previousPos=n}}class c extends n.QB{constructor(e,t){super(),this.id=e,this.pinType=t}}},86224:(e,t,i)=>{"use strict";i.d(t,{A:()=>s,N:()=>n});const n=1,s=Object.freeze({anchor:{size:1},selection:{size:1},stem:{length:.23,width:1,opacity:1,transparent:!0,color:"white",alphaTest:.05},pinHeadMesh:{scale:{nearBound:1.5,farBound:4.8,maxSize:80,minSize:40,baseViewportSize:800,responsiveness:100}}})},13586:(e,t,i)=>{"use strict";var n;i.d(t,{D:()=>n}),function(e){e[e.None=0]="None",e[e.AnonymousFetch=1]="AnonymousFetch",e[e.UserFetch=2]="UserFetch"}(n||(n={}))},56846:(e,t,i)=>{"use strict";i.d(t,{L$:()=>O,Y7:()=>g,TR:()=>S});var n=i(95330),s=i(12554),a=i(56413),o=i(84710),r=i(20968),l=i(9192),d=i(85275);const c=new(i(10843).Ay)("mds-plugin-config-deserializer");class u{constructor(){this.fileAttachmentDeserializer=new d.x}deserialize(e){if(!e)return c.debug("Deserialized invalid Plugin data from MDS",e),null;const t=e.fileAttachments.map((e=>this.fileAttachmentDeserializer.deserialize(e))).filter((e=>null!==e));return{name:e.name,id:e.id,attachments:t}}}class h extends r.g{constructor(e){super(e),this.deserializer=new u}async read(e){const t={modelId:this.getViewId(),prefetchKey:this.prefetchKey,includeLayers:this.readLayerId()};return this.query(l.GetPlugins,t,e).then((e=>{var t,i;const n=null===(i=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.model)||void 0===i?void 0:i.sdkPlugins;if(!n||!Array.isArray(n))return[];return n.map((e=>this.deserializer.deserialize(e))).filter((e=>null!==e))}))}async update(e){const t={};void 0!==e.version&&(t.currentVersion=e.version),void 0!==e.attachments&&(t.fileAttachments=e.attachments);const i={modelId:this.getViewId(),name:e.name,patch:t};await this.mutate(l.UpdatePlugin,i).catch((e=>{e.message.includes("Version for plugin does not exist")}))}async delete(e){if(!e)return;const t={modelId:this.getViewId(),name:e};return this.mutate(l.DeletePlugin,t).then((()=>{}))}}var m=i(75778),p=i(31093),E=i(13586);const S=`${window.location.pathname}`+"api/v1/plugins",O="listEditOnly";class g extends o.B{get mdsIsSetup(){return this._isSetup}constructor(){super(),this.name="available-plugin-data",this.availablePlugins=new a.E,this.lastSavedConfiguration=new s.X,this.currentlyConfiguring=new n.L(null),this.pluginConfigReady=new p.i,this.defaultStrict=(0,m.P3)("sesStrict",null,"boolean"),this.defaultFetchLevel=E.D.None,this.disabled=(0,m.P3)("noPlugins",!1),this.manifestUrl=(0,m.P3)("manifestUrl"),this.pluginVersion=(0,m.P3)("pluginVersion"),this.preventLiveEdit=(0,m.P3)("preventWorkshopPluginPreview",!1),this.eventTarget=new a.E,this._isSetup=!1}add(e){if(/[?&]nolink=1/.test(window.location.search)){const name=e.name??null;if(name!==null){if(name.indexOf('quick-link')!==-1||name.indexOf('salesperson-info')!==-1){e.applicationKey=null;}}}this.availablePlugins.set(e.name,e)}setupConfigStore(e,t,i){this._mdsStore=new h({context:e,readonly:t,includeDisabled:!t,baseUrl:i}),this._isSetup=!0,this.commit()}getMdsResult(){var e,t;return null!==(t=null===(e=this._mdsStore)||void 0===e?void 0:e.read())&&void 0!==t?t:Promise.resolve([])}updateMds(e){var t;null===(t=this._mdsStore)||void 0===t||t.update(e)}deleteMdsById(e){var t;null===(t=this._mdsStore)||void 0===t||t.delete(e)}}},87766:(e,t,i)=>{"use strict";i.d(t,{XX:()=>n,_x:()=>a,eV:()=>o,p_:()=>s});const n="spaces.plugins",s="spaces.plugins.config",a="spaces.plugins.debug",o="spaces.plugins.groups"},32948:(e,t,i)=>{"use strict";i.d(t,{C:()=>o});var n=i(84710),s=i(56413);const a=function(e){return`${e.applicationKey}.${e.id}`};class o extends n.B{constructor(){super(),this.plugins=(0,s.y)(),this.visibilityData=new s.E}get(e){const t=a(e);return this.plugins.get(t)}set(e,t,i){const n=a(e);this.plugins.set(n,{applicationKey:e.applicationKey,module:t,id:e.id,dispose:i})}delete(e){const t=a(e);this.plugins.delete(t)}}},49953:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});var n=i(84710);class s extends n.B{constructor(e=[]){super(),this.policies=e,this.name="policy-data"}hasPolicy(e){return!!this.getPolicy(e)}getPolicy(e){return this.policies.find((t=>t.name===e))||null}}},81277:(e,t,i)=>{"use strict";i.d(t,{y:()=>a});var n=i(96540),s=i(5013);function a(e){const t=(0,s.M)(),[i,a]=(0,n.useState)((null==t?void 0:t.getPolicy(e))||null);return(0,n.useEffect)((()=>{if(!t)return()=>{};function i(){a((null==t?void 0:t.getPolicy(e))||null)}const n=t.onChanged(i);return i(),()=>null==n?void 0:n.cancel()}),[t,e]),i}},5013:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var n=i(71555),s=i(49953);const a=(0,n.v)(s.L)},40186:(e,t,i)=>{"use strict";i.d(t,{LT:()=>r,NW:()=>o,n3:()=>l});const n="spaces.elements",s="cloud_ui/elements_beta_access",a="elements";function o(e){return!!e.getPolicy(n)}function r(e,t){return!!t&&e.hasMembershipFlag(t,s)}function l(e,t){e.trackFeatures(`${a}:${o(t)}`)}},5243:(e,t,i)=>{"use strict";i.d(t,{$:()=>a,t:()=>o});var n=i(68909),s=i(84710);class a extends s.B{constructor(){super(...arguments),this.name="pointer",this.hit=null,this.hits=[],this.pointerNdcPosition=new n.Vector2,this.pointerScreenPosition=new n.Vector2,this.pointerOrigin=new n.Vector3,this.pointerDirection=new n.Vector3,this.pointerRay=new n.Ray}}class o{constructor(e,t,i,n){this.point=e,this.normal=t,this.object=i,this.intersection=n,this.face={normal:t}}}},18821:(e,t,i)=>{"use strict";i.d(t,{Is:()=>o,X7:()=>a,aD:()=>r,cl:()=>l,q6:()=>s});var n=i(55141);class s extends n.u{}s.id="RequestRenderTargetCommand";class a extends n.u{constructor(e,t){super(),this.payload={renderTarget:e,context:t}}}a.id="CONTEXT2D_CAPTURE";class o extends n.u{constructor(e,t,i){super(),this.payload={renderTarget:e,sceneObject:t,camera:i}}}o.id="SCREEN_CAPTURE";class r extends n.u{constructor(e,t,i){super(),this.payload={renderTarget:e,sceneObject:t,camera:i}}}r.id="RENDER_TO_CUBEMAP";class l extends n.u{constructor(e,t,i=0){super(),this.payload={renderTarget:e,texture:t,heading:i}}}l.id="EQUIRECTANGULAR_CAPTURE"},16653:(e,t,i)=>{"use strict";i.d(t,{uz:()=>s,G8:()=>o,y:()=>a,_h:()=>r});let n=null;const s=async(e,t)=>{const s=new Uint8Array(e.width*e.height*4);e.readRenderTargetData(s);for(let e=0;enew Blob([e],{type:"image/jpeg"}),o=e=>"data:image/jpg;base64,"+(e=>{const t=[];for(let i=0;i'http://ns.adobe.com/xap/1.0/\0'+t+""+e+"00"+t+""+e+"equirectangularTrue"+i+""+n+'Matterport CameraMatterport Cloud'},6236:(e,t,i)=>{"use strict";i.d(t,{A:()=>ae});var n=i(92788),s=i(25712),a=i(98720),o=i(42968),r=i(29376),l=i(3066),d=i(10843),c=i(68909),u=i(99380),h=i(34914);class m{constructor(){this.data=new Map,this.addedObservers=new Set,this.updatedObservers=new Set,this.childUpdatedObservers=new Set,this.deletedObservers=new Set}clear(){this.data.clear()}get(e){return this.data.get(e)}set(e,t){this.data.set(e,t)}delete(e){this.data.delete(e)}has(e){return this.data.has(e)}get size(){return this.data.size}onChanged(e){return(0,l.Sh)((()=>{e.onAdded&&this.addedObservers.add(e.onAdded),e.onUpdated&&this.updatedObservers.add(e.onUpdated),e.onChildUpdated&&this.childUpdatedObservers.add(e.onChildUpdated),e.onRemoved&&this.deletedObservers.add(e.onRemoved)}),(()=>{e.onAdded&&this.addedObservers.delete(e.onAdded),e.onUpdated&&this.updatedObservers.delete(e.onUpdated),e.onChildUpdated&&this.childUpdatedObservers.delete(e.onChildUpdated),e.onRemoved&&this.deletedObservers.delete(e.onRemoved)}),!0)}}var p=i(54664),E=i(35341),S=i.n(E),O=i(75083);class g extends O.x{onRun(e){const t=this.data.getNode(e.nodeId),i={x:t.x,z:t.z};return this.data._updateNode(e.nodeId,e.newPos),this.data._updateDependentsForNodes(t),{prevPos:i}}onInvert(e,t){this.data._updateNode(t.nodeId,e.prevPos);const i=this.data.getNode(t.nodeId);this.data._updateDependentsForNodes(i)}merge(e){return e instanceof g&&e.inputs.nodeId===this.inputs.nodeId&&(this.inputs.newPos=e.inputs.newPos,!0)}name(){return"MoveNode"}}class T extends O.x{onRun(e){const t=this.data._createNode(e.from,e.floorId),i=this.data._createNode(e.to,e.floorId),n=this.data._createWall(e.type,t,i,e.width,[],.5);return{fromId:t.id,toId:i.id,wall:n.id}}onInvert(e,t){this.data._deleteWall(e.wall),this.data._deleteNode(e.fromId),this.data._deleteNode(e.toId)}merge(e){return!!(e instanceof g&&this._outputCache&&e.inputs.nodeId===this._outputCache.toId)&&(this.inputs.to=e.inputs.newPos,!0)}name(){return"AddFloatingEdge"}}class _ extends O.x{onRun(e){const t=this.data.getWall(e.wallId),i=t.from.getPoint(),n=t.to.getPoint();return this.data._updateNode(t.from.id,e.newFromPos),this.data._updateNode(t.to.id,e.newToPos),this.data._updateDependentsForNodes(t.from,t.to),{prevFromPos:i,prevToPos:n}}onInvert(e,t){const i=this.data.getWall(t.wallId);this.data._updateNode(i.from.id,e.prevFromPos),this.data._updateNode(i.to.id,e.prevToPos),this.data._updateDependentsForNodes(i.from,i.to)}merge(e){return e instanceof _&&e.inputs.wallId===this.inputs.wallId&&(this.inputs.newFromPos=e.inputs.newFromPos,this.inputs.newToPos=e.inputs.newToPos,!0)}name(){return"MoveEdge"}}class A extends O.x{onRun(e){const t=this.data.getNode(e.fromId),i=this.data._createNode(e.to,t.floorId),n=this.data._createWall(e.type,t,i,e.width,[],.5);return{toId:i.id,wall:n.id}}onInvert(e,t){this.data._deleteWall(e.wall),this.data._deleteNode(e.toId)}merge(e){return!!(e instanceof g&&this._outputCache&&e.inputs.nodeId===this._outputCache.toId)&&(this.inputs.to=e.inputs.newPos,!0)}name(){return"AddTrailingEdgeToNode"}}var v=i(47503),N=i(86773);class I extends O.x{run(){super.run(),this.computeRooms(),this._outputCache&&this._outputCache.updateNodeDependencies.length&&this.data._updateDependentsForNodes(...this._outputCache.updateNodeDependencies.map((e=>this.data.getNode(e))))}onInvert(e,t){throw new Error("Method not implemented.")}invert(){let e;if(!this._outputCache)throw new Error("Attempted to inverse a data action before running it");e=this.onInvert(this._outputCache,this.inputs),this._outputCache=null;for(const e of this.modificationRecord.createdRooms)this.data._deleteRoom(e.id);const t=e=>({points:e.points.map((e=>this.data.getNode(e.id))),walls:new Set(Array.from(e.walls.values()).map((e=>this.data.getWall(e.id)))),holesCW:e.holesCW.map((e=>e.map((e=>this.data.getNode(e.id))))),holes:e.holes.map((e=>new Set(Array.from(e.values()).map((e=>this.data.getWall(e.id))))))});for(const e of this.modificationRecord.updatedRooms){const{points:i,walls:s,holesCW:a,holes:o}=t(e),r=new n.pQ({id:e.id,name:e.name,points:i,walls:s,holesCW:a,holes:o,location:e.location,includeInAreaCalc:e.includeInAreaCalc,hide:e.hide,keywords:e.keywords.slice(),classifications:e.classifications.slice(),height:e.height,ceiling:e.ceiling});this.data._updateRoom(e.id,r)}for(const e of this.modificationRecord.deletedRooms){const{points:i,walls:n,holesCW:s,holes:a}=t(e);this.data._createRoom({id:e.id,name:"",points:i,walls:n,holesCW:s,holes:a,location:e.location,includeInAreaCalc:e.includeInAreaCalc,hide:e.hide,keywords:e.keywords.slice(),classifications:e.classifications.slice(),height:e.height,ceiling:e.ceiling})}if(e){const t=e.map((e=>this.data.getNode(e)));this.data._updateDependentsForNodes(...t)}}wallsForLoop(e){const t=new Set;for(let i=0;ie.map((e=>this.wallsForLoop(e))))),r=t.map((e=>new Set(this.wallsForLoop(e)))),l=new Array;for(const e of this.data.rooms.values())for(let t=0;ti.has(t)?e+1:e),0);n>0&&l.push({score:n/Math.max(i.size,e.walls.size),newWalls:i.size-n,oldRoomId:e.id,oldRoomClassifications:e.classifications,newRoomIndex:t})}const d=new Set,c=new Array(t.length),u=new Array(t.length);l.sort(((e,t)=>{var i,n;return t.score-e.score||((null===(i=this.data.rooms.get(t.oldRoomId))||void 0===i?void 0:i.area)||0)-((null===(n=this.data.rooms.get(e.oldRoomId))||void 0===n?void 0:n.area)||0)}));for(const{oldRoomId:e,newRoomIndex:t,oldRoomClassifications:i,newWalls:n}of l)d.has(e)||c[t]||(c[t]=e,d.add(e)),!u[t]&&n<=2&&(u[t]=i);for(let e=0;e{const o=`${s.id}/${a.id}`,r=this.data.traceWallsFromTo(s,a),l=e=>{if(e.has(o))return!0;for(let t=0;t=.01?l(i)||e.push((0,u.N5)(r)):d<=-.01&&(l(n)||t.push((0,u.N5)(r).reverse()))};for(const e of this.data.walls.values())s(e.from,e.to),s(e.to,e.from);return{regions:e,holes:t}}mapHolesToRegions(e,t){const i=t.map((e=>[])),n=t.map((e=>(0,u.eW)(e))),s=t.map((e=>e.map((e=>[e.x,e.z]))));for(const a of e){const e=(0,u.eW)(a);let o=9999999,r=-1;const l=a.map((e=>[e.x,e.z]));for(let i=0;i=d||a[0].floorId!==t[i][0].floorId||(0,N.Q)(l,s[i])&&d=0&&i[r].push(a)}return i}}function L(e,t){const i=e.getWall(t.wallId).clone(),n=e.getEdgeCountForNode(i.from),s=e.getEdgeCountForNode(i.to);e._deleteWall(t.wallId);let a="none";1===n&&1===s?(a="both",e._deleteNode(i.from.id),e._deleteNode(i.to.id)):1===n?(a="from",e._deleteNode(i.from.id)):1===s?(a="to",e._deleteNode(i.to.id)):a="none";const o=[];switch(a){case"from":o.push(i.to.id);break;case"to":o.push(i.from.id);break;case"none":o.push(i.from.id,i.to.id)}return{deletedWall:i,deletedNodes:a,updateNodeDependencies:o}}function f(e,t){const i=t.deletedWall;let n,s;switch(t.deletedNodes){case"both":n=e._createNode({x:i.from.x,z:i.from.z},i.floorId,i.from.id),s=e._createNode({x:i.to.x,z:i.to.z},i.floorId,i.to.id),e._createWall(i.type,n,s,i.width,i.openings,i.bias,i.id);break;case"none":e._createWall(i.type,i.from,i.to,i.width,i.openings,i.bias,i.id);break;case"from":n=e._createNode({x:i.from.x,z:i.from.z},i.floorId,i.from.id),e._createWall(i.type,n,i.to,i.width,i.openings,i.bias,i.id);break;case"to":s=e._createNode({x:i.to.x,z:i.to.z},i.floorId,i.to.id),e._createWall(i.type,i.from,s,i.width,i.openings,i.bias,i.id);break;default:throw new Error(`${t.deletedNodes} is an invalid value`)}switch(t.deletedNodes){case"from":return[i.to.id];case"to":return[i.from.id];case"none":return[i.from.id,i.to.id];case"both":return[]}}class b extends I{onRun(e){return L(this.data,e)}onInvert(e,t){return f(this.data,e)}name(){return"DeleteEdge"}}function R(e,t,i){if(0===e.openings.length)return;const n=new c.Line3(e.from.getVec3(),e.to.getVec3()),s=t.map((e=>({wall:e,line:new c.Line3(e.from.getVec3(),e.to.getVec3())}))),a=(e,t)=>{const i=e.closestPointToPointParameter(t,!1);if(!(i<0||i>1))return i};for(const t of e.openings){const{type:e,width:o,relativePos:r,id:l}=t,d=n.at(r,new c.Vector3);for(const{wall:t,line:n}of s){const s=a(n,d);if(void 0!==s){i._createWallOpening(t,e,s,o,l);break}}}}function y(e,t){return t._createWall(e.type,e.from,e.to,e.width,e.openings,e.bias,e.id)}class M extends I{onRun(e){const t=this.data.getWall(e.fromWallId).clone(),i=t.getDirection().normalize().multiplyScalar(e.along),n=t.from.getVec3().add(i);this.data._deleteWall(e.fromWallId);const s=this.data._createNode({x:n.x,z:n.z},t.floorId),a=this.data._createNode(e.to,t.floorId),o=this.data._createWall(e.type,s,a,e.width,[],.5),r=this.data._createWall(t.type,t.from,s,t.width,[],t.bias),l=this.data._createWall(t.type,s,t.to,t.width,[],t.bias);return R(t,[r,l],this.data),{deletedWall:t,newTrailingWall:o,newLeftWall:r,newRightWall:l,newNodeToId:a.id,updateNodeDependencies:[]}}onInvert(e,t){const{deletedWall:i,newTrailingWall:n,newLeftWall:s,newRightWall:a}=e;return this.data._deleteWall(n.id),this.data._deleteWall(s.id),this.data._deleteWall(a.id),this.data._deleteNode(n.from.id),this.data._deleteNode(n.to.id),y(i,this.data),[]}merge(e){return!!(e instanceof g&&this._outputCache&&e.inputs.nodeId===this._outputCache.newTrailingWall.to.id)&&(this.inputs.to=e.inputs.newPos,!0)}name(){return"AddTrailingEdgeToEdge"}}class D extends O.x{onRun({wallId:e,props:t}){const i=this.data.getWall(e),n={};for(const e of Object.keys(t))n[e]=i[e];return this.data._setEdgeProps(e,t),{wallId:e,props:n}}onInvert({wallId:e,props:t},i){this.data._setEdgeProps(e,t)}merge(e){return e instanceof D&&e.inputs.wallId===this.inputs.wallId&&(this.inputs.props.width=e.inputs.props.width,this.inputs.props.bias=e.inputs.props.bias,!0)}name(){return"SetEdgeProps"}}class P extends I{onRun(e){const t=this.data.getWall(e.wallId),i=[],n=[],s=[],a={originalFromPos:t.from.getPoint(),originalToPos:t.to.getPoint(),deletedWalls:n,createdWalls:i,originalWallId:e.wallId,createdNodes:s,updateNodeDependencies:[]};return e.fromNode&&this.createJoint(t.from,t,n,i,s),e.toNode&&this.createJoint(t.to,t,n,i,s),a}onInvert(e,t){for(const t of e.createdWalls)this.data._deleteWall(t.id);for(const t of e.deletedWalls)y(t,this.data);for(const t of e.createdNodes)this.data._deleteNode(t.id);const i=this.data.getWall(this.inputs.wallId);return this.data._updateNode(i.from.id,e.originalFromPos),this.data._updateNode(i.to.id,e.originalToPos),[i.from.id,i.to.id]}merge(e){return e instanceof _&&e.inputs.wallId===this.inputs.wallId&&(this.inputs.fromPos=e.inputs.newFromPos,this.inputs.toPos=e.inputs.newToPos,!0)}createJoint(e,t,i,n,s){const a=this.data._createNode({x:e.x,z:e.z},e.floorId),o=this.data.getWallsForNode(e);for(const s of o){const o=s.clone();if(o.id!==t.id){const t=o.getOtherNode(e);i.push(o),this.data._deleteWall(o.id);const s=o.from===t?this.data._createWall(o.type,t,a,o.width,[],o.bias):this.data._createWall(o.type,a,t,o.width,[],o.bias);R(o,[s],this.data),n.push(s)}}s.push(a);const r=t.from===e?this.data._createWall(t.type,a,t.from,t.width,[],t.bias):this.data._createWall(t.type,t.to,a,t.width,[],t.bias);n.push(r)}name(){return"AddJointToNode"}}class k extends I{onRun(e){const t=this.data.getNode(e.nodeId),i=Array.from(this.data.getWallsForNode(t).values());if(2!==i.length)throw new Error("Can only delete nodes with two edges on it");const n=i[0].clone(),s=n.getOtherNode(t),a=i[1].clone(),o=a.getOtherNode(t);this.data._deleteWall(n.id),this.data._deleteWall(a.id),this.data._deleteNode(t.id);const r=this.data.newWallWouldIntersect({n0:s,n1:o})?null:this.data._createWall(n.type,s,o,(n.width+a.width)/2,[],(n.bias+a.bias)/2);return r&&(R(n,[r],this.data),R(a,[r],this.data)),{deletedNode:t,deletedWall1:n,deletedWall2:a,createdWall:r,updateNodeDependencies:[]}}onInvert(e,t){const{createdWall:i,deletedNode:n,deletedWall1:s,deletedWall2:a}=e;i&&this.data._deleteWall(i.id),this.data._createNode(n.getPoint(),n.floorId,n.id);for(const e of[s,a])y(e,this.data);return[]}name(){return"DeleteNode"}}class w extends I{onRun(e){const t=this.data.getNode(e.fromId),i=this.data.getNode(e.toId);return{wall:this.data._createWall(e.type,t,i,e.width,[],.5).id,updateNodeDependencies:[]}}onInvert(e,t){return this.data._deleteWall(e.wall),[]}name(){return"AddBridgingEdge"}}class C extends O.x{onRun(e){const{id:t}=e,i=this.data.getOpening(t),{type:n,relativePos:s,width:a}=i;return this.data._setOpeningDetails(t,e),{id:t,type:n,relativePos:s,width:a}}onInvert(e,t){const{id:i}=e;this.data._setOpeningDetails(i,e)}name(){return"EditOpeningDetails"}}class x extends O.x{onRun(e){const{openingId:t}=e,i=this.data.getOpening(t);return this.data._deleteWallOpening(t),{deletedOpening:i}}onInvert(e,t){const{id:i,wallId:n,type:s,relativePos:a,width:o}=e.deletedOpening,r=this.data.getWall(n);this.data._createWallOpening(r,s,a,o,i)}name(){return"DeleteWallOpening"}}class H extends O.x{onRun(e){const{wallId:t,type:i,relativePos:n,width:s}=e,a=this.data.getWall(t);return{openingId:this.data._createWallOpening(a,i,n,s).id}}onInvert(e,t){const{openingId:i}=e;this.data._deleteWallOpening(i)}name(){return"AddOpeningAction"}}function U(e,t,i,n){const s=t.getOtherNode(i);return s!==n&&!e.hasWallBetween(s,n)}function G(e,t){const i=[],n=[],s=[],a=[],o=new Set;for(const r of t){const t=[],{mergeId:l,keepId:d}=r;o.add(d);const c=e.getNode(l),u=e.getNode(d),h=e.getWallsForNode(u),m=u.getPoint();n.push(c),s.push(d),a.push(m),e._updateNode(u.id,c.getPoint());const p=e.getWallsForNode(c);for(const i of p){const n=i.clone(),s=i.getOtherNode(c),a=i.width;e._deleteWall(i.id);let o=null;U(e,i,c,u)&&(e.hasWallBetween(s,u)||(o=e._createWall(i.type,s,u,a,[],i.bias),R(n,[o],e),h.add(o))),t.push({deleted:n,created:o}),h.delete(i)}e._deleteNode(c.id),0===h.size&&(e._deleteNode(u.id),n.push(u)),i.push(t)}return{deletedNodes:n,wallDiffs:i,oldKeepNodeIds:s,oldKeepNodePositions:a,updateNodeDependencies:o}}function F(e,t){const i=[];for(let n=t.deletedNodes.length-1;n>=0;n--){const s=t.deletedNodes[n],a=t.wallDiffs[n],o=e._createNode(s.getPoint(),s.floorId,s.id);i.push(o.id);for(const t of a){t.created&&e._deleteWall(t.created.id);let i=o,n=t.deleted.getOtherNode(s);if(o.id!==t.deleted.from.id){const e=i;i=n,n=e}e._createWall(t.deleted.type,i,n,t.deleted.width,t.deleted.openings,t.deleted.bias,t.deleted.id)}e._updateNode(t.oldKeepNodeIds[n],t.oldKeepNodePositions[n])}return t.oldKeepNodeIds}function j(e,t){const i=[],n=new Set;for(const s of t){const t=e.getNode(s),o=e.getAttachedEntities(t),r=e.findNodeOrWallForPosition(t.getVec3(),t.floorId,o);if(r&&r instanceof a.j){const a=r.getProjection(t.getVec3()),o=r.clone(),l={x:t.x,z:t.z},d=o.getDirection().normalize().multiplyScalar(a),c=o.from.getVec3().add(d);e._deleteWall(o.id),e._updateNode(s,{x:c.x,z:c.z});const u=e.hasWallBetween(o.from,t)?null:e._createWall(o.type,o.from,t,o.width,[],o.bias),h=e.hasWallBetween(t,o.to)?null:e._createWall(o.type,t,o.to,o.width,[],o.bias);R(o,[u,h].filter((e=>!!e)),e),i.push({deletedWall:o,newLeftWall:u,newRightWall:h,prevNodePos:l,nodeId:t.id}),n.add(t.id)}}return{splitDiffs:i,updateNodeDependencies:n}}function V(e,t){for(let i=t.splitDiffs.length-1;i>=0;i--){const{newLeftWall:n,newRightWall:s,deletedWall:a,prevNodePos:o,nodeId:r}=t.splitDiffs[i];n&&e._deleteWall(n.id),s&&e._deleteWall(s.id),e._updateNode(r,o),y(a,e)}return t.splitDiffs.map((e=>e.nodeId))}function B(e,t){const i=[],n=function(e){const t=[];for(const i of e){if(2!==i.length)throw new Error("Can only merge co-linear overlaps");if(0===t.length){t.push(i);continue}const e=t[t.length-1],n=e[1];if(i[0].t=n.t&&(t[t.length-1]=[e[0],s])}else t.push(i)}return t}(t);if(n[0][0].t>0){const t=n[0][0].entity;i.push([e.from,t])}for(let e=0;e0){const s=Array.from(n.values())[0],a=this.data.findOverlappingEntities(s);if(a){const n=z({movedEntity:s,nodeOverlaps:a.nodeOverlaps,nodeWallOverlaps:a.nodeWallOverlaps,collinearWall:a.collinearWall,intersectingWall:a.intersectingWall},this.data);t[e]=n,i.push(...n.updateNodeDependencies)}}}return{overlapsByFloor:t,updateNodeDependencies:i}}onInvert(e,t){const i=[];for(const t in e.overlapsByFloor){const n=Y(e.overlapsByFloor[t],this.data);i.push(...n)}return i}name(){return"ValidateGraphAndComputeRooms"}}function z(e,t){const i=function(e,t,i){const n=[],s=new Set;let a=t,o=0;for(;(a.nodeOverlaps.length>0||a.nodeWallOverlaps.length>0)&&o<10;){const t=G(e,a.nodeOverlaps);for(const e of t.updateNodeDependencies)s.add(e);const r=j(e,a.nodeWallOverlaps);for(const e of r.updateNodeDependencies)s.add(e);n.push({nodeMergeInvertInfo:t,nodeWallInvertInfo:r}),a=e.findOverlappingNodePairs(i),o++}for(const e of n){const t=e.nodeMergeInvertInfo.deletedNodes;for(const e of t)s.delete(e.id)}return{nodeMergeBatches:n,updateNodeDependencies:Array.from(s)}}(t,{nodeOverlaps:e.nodeOverlaps,nodeWallOverlaps:e.nodeWallOverlaps},e.movedEntity);let n=[];e.collinearWall&&(n=function(e,t){const i=[];let n=e.findWallWithWorstOverlaps(t,"colinear"),s=0;for(;null!=n&&s<10;){const a=n.wall;e._deleteWall(a.id);const o=B(n.wall,n.overlaps).filter((t=>!e.hasWallBetween(t[0],t[1]))).map((t=>e._createWall(a.type,t[0],t[1],a.width,[],a.bias)));i.push({deletedWall:a,createdWalls:o}),n=e.findWallWithWorstOverlaps(t,"colinear"),s++}return i}(t,e.collinearWall.floorId));let s=[];return e.intersectingWall&&(s=function(e,t){const i=[];let n=e.findWallWithWorstOverlaps(t,"intersection"),s=0;for(;null!=n&&s<10;){const a=[],o=[],r=[],l=n.wall.clone();if(a.push(l),e._deleteWall(n.wall.id),null!=n){let s=n.wall.from;const d=n.wall.getDirection();for(const i of n.overlaps){if(1!==i.length)throw new Error("possible bug in RoomBoundData.findWallWithWorstOverlaps, it should only return walls intersecting at ONE point");const c=i[0],u=c.entity.clone();a.push(u),e._deleteWall(c.entity.id);const h=n.wall.from.getVec3().addScaledVector(d,i[0].t),m=i[0].entity,p=e._createNode(h,t);o.push(p);const E=e._createWall(n.wall.type,s,p,n.wall.width,[],n.wall.bias);s=p,r.push(E),R(l,[E],e);const S=e._createWall(m.type,m.from,p,m.width,[],m.bias);r.push(S);const O=e._createWall(m.type,m.to,p,m.width,[],m.bias);r.push(O),R(u,[S,O],e)}const c=e._createWall(n.wall.type,s,n.wall.to,n.wall.width,[],n.wall.bias);r.push(c),R(l,[c],e),i.push({createdWalls:r,createdNodes:o,deletedWalls:a})}n=e.findWallWithWorstOverlaps(t,"intersection"),s++}return i}(t,e.intersectingWall.floorId)),{nodeOverlapInvertInfo:i,intersectionSplitInvertInfo:s,collinearOverlapInvertInfo:n,updateNodeDependencies:i.updateNodeDependencies}}function Y(e,t){!function(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i];for(const t of n.createdWalls)e._deleteWall(t.id);for(const t of n.createdNodes)e._deleteNode(t.id);for(const t of n.deletedWalls)y(t,e)}}(t,e.intersectionSplitInvertInfo),function(e,t){for(let i=t.length-1;i>=0;i--){const n=t[i],s=n.deletedWall;n.createdWalls.forEach((t=>e._deleteWall(t.id))),y(s,e)}}(t,e.collinearOverlapInvertInfo);const i=function(e,t){const i=[];for(let n=t.nodeMergeBatches.length-1;n>=0;n--){const{nodeMergeInvertInfo:s,nodeWallInvertInfo:a}=t.nodeMergeBatches[n],o=V(e,a),r=F(e,s);i.push(...o,...r)}return i}(t,e.nodeOverlapInvertInfo);return i}var $=i(74634),Q=i(74381),q=i(941);class X extends O.x{onRun({roomId:e,name:t,roomTypeIds:i,location:n,includeInAreaCalc:s,hide:a,keywords:o,showDimensions:r,showHeight:l}){const d=this.data.getRoom(e),c={roomId:e,name:d.name,roomTypeIds:d.roomTypeIds.slice(),includeInAreaCalc:d.includeInAreaCalc,hide:d.hide,keywords:d.keywords.slice(),showDimensions:d.showDimensions,showHeight:d.showHeight};return this.data._updateRoomDetails(e,{name:t,roomTypeIds:i,location:n,includeInAreaCalc:s,hide:a,keywords:o,showDimensions:r,showHeight:l}),c}onInvert({roomId:e,name:t,roomTypeIds:i,location:n,includeInAreaCalc:s,hide:a,showDimensions:o,showHeight:r},l){this.data._updateRoomDetails(e,{name:t,roomTypeIds:i,location:n,includeInAreaCalc:s,hide:a,showDimensions:o,showHeight:r})}name(){return"SetRoomDetails"}}var Z=i(30169),J=i(35336);class ee extends I{onRun({roomId:e}){const t={deletedEdges:[],updateNodeDependencies:[]},i=this.data.getRoom(e);for(const e of i.walls){if(1===Array.from(this.data.getRoomsForWall(e)).filter((t=>t.walls.has(e))).length){const i=L(this.data,{wallId:e.id});t.deletedEdges.push(i),t.updateNodeDependencies.push(...i.updateNodeDependencies)}}for(const e of t.deletedEdges){const i=[];switch(e.deletedNodes){case"from":i.push(e.deletedWall.from.id);break;case"to":i.push(e.deletedWall.to.id);break;case"both":i.push(e.deletedWall.from.id,e.deletedWall.to.id)}t.updateNodeDependencies=t.updateNodeDependencies.filter((e=>-1===i.indexOf(e)))}return t}onInvert(e,t){let i=[];for(const t of e.deletedEdges.reverse())i=i.concat(f(this.data,t));return i}name(){return"DeleteRoom"}}var te=i(93818),ie=i(48539);const ne=new Set;var se;!function(e){e[e.CREATE=0]="CREATE",e[e.UPDATE=1]="UPDATE",e[e.DELETE=2]="DELETE"}(se||(se={}));class ae{constructor(e,t={},i=()=>{}){this.roomClassifications=t,this.broadcast=i,this.name="wall-graph",this.version=0,this.legacyRoomIds=[],this.raycast=null,this.calcCeilings=null,this.onActionError=e=>{this.logger.error(e)},this._nodes=new m,this._walls=new m,this._rooms=new m,this._wallOpenings=new m,this.undoBuffer=new r.Z(this.commit.bind(this)),this._nodeToWallMap=new Map,this._nodesByFloor=new Map,this._wallToRoomMap=new Map,this._wallsByFloor=new Map,this._wallsByCompositeKey=new Map,this._observerQueue=[],this._deleteSet=new Set,this._anythingChangeObservers=new Set,this._afterFinalizeObservers=new Set,this.logger=new d.Ay("wall-graph"),this.isLoading=!1,this.spatialIndex=new Map,this.actionList=[],this._roomsNeedingCeilingCalc=new Set,this._inFlightRoomCeilingsCalc=new Set,this.getRelativeAngle=(()=>{const e=new c.Vector2,t=new c.Vector2,i=new c.Vector2,n=(t,i)=>{if(0===t.lengthSq()){const n=this.getNodeNeighbors(i);if(0===n.size)return;const s=Array.from(n.values())[0];t.set(s.x,s.z).sub(e)}};return(s,a,o)=>{if(a===o)return 2*Math.PI;e.set(s.x,s.z),t.set(a.x,a.z).sub(e),n(t,a),i.set(o.x,o.z).sub(e),n(i,o);const r=Math.atan2(t.y,t.x);let l=-(Math.atan2(i.y,i.x)-r);return l<0&&(l+=2*Math.PI),l}})(),this.newWallWouldIntersect=(()=>{const e=new c.Vector2,t=new c.Vector2,i=new c.Vector2,n=new c.Vector2,s=new c.Vector2,a=new c.Vector2,o=new c.Vector2,r=new c.Vector2;return({n0:l,n1:d,n0OverridePos:c,n1OverridePos:h,wallToIgnore:m})=>{if(this.hasWallBetween(l,d)){if(!m)return!0;if(this.getWallForNodes(l.id,d.id)!==m)return!0}const p=e=>Math.round(1e3*e)/1e3,E=(e,t)=>{e===l&&c?t.copy(c):e===d&&h?t.copy(h):e.getVec2(t)};if(E(l,e),E(d,t),i.subVectors(e,t).length()<1e-4)return!1;const S=[[p(e.x),p(e.y)],[p(t.x),p(t.y)]],O=[[0,0],[0,0]];for(const e of this._walls.data.values()){if(l.floorId!==e.floorId||e===m)continue;if(E(e.from,n),E(e.to,s),i.subVectors(n,s).length()<1e-4)continue;if(O[0][0]=p(n.x),O[0][1]=p(n.y),O[1][0]=p(s.x),O[1][1]=p(s.y),(0,u.vo)(S,O))return!0;const t=e.to===l||e.from===l?l:e.to===d||e.from===d?d:void 0;if(t){const i=e.getOtherNode(t),n=t===l?d:l;E(t,a),E(i,o),E(n,r),o.sub(a),r.sub(a);const s=Math.atan2(o.y,o.x);let c=-(Math.atan2(r.y,r.x)-s);c<0&&(c+=2*Math.PI);const u=c,h=2*Math.PI/180;if(u2*Math.PI-h)return!0}}return!1}})(),this._updateDependentsForNodes=(()=>{const e=new Set,t=new Set;return(...i)=>{e.clear(),t.clear();const n=i=>{if(!e.has(i)){this.removeFromSpatialIndex(i),this.insertIntoSpatialIndex(i),this._scheduleUpdate(this._walls,i,!0);const n=this._wallToRoomMap.get(i);if(n)for(const e of n.values())t.has(e)||(this._scheduleUpdate(this._rooms,e,!0),e.pointsMoved(),this.calculateRoomInsights(e),t.add(e));for(const e of i.openings)this._scheduleUpdate(this._wallOpenings,e,!0);e.add(i)}};for(const e of i){const t=this._nodeToWallMap.get(e);if(null!=t)for(const i of t){n(i);const t=i.getOtherNode(e),s=this._nodeToWallMap.get(t);if(null!=s)for(const e of s)n(e)}}}})(),e&&(this.version=e.version,this.load(e))}load(e){var t,i;this.isLoading=!0;for(const e of Array.from(this.rooms.values()))this._deleteRoom(e.id);for(const e of Array.from(this.walls.values()))this._deleteWall(e.id);for(const e of Array.from(this.nodes.values()))this._deleteNode(e.id);for(const[e,t]of this.spatialIndex)t.clear();this.commit();for(const s in e.floors){const o=e.floors[s],r=o.vertices,l=new(S());this.spatialIndex.set(s,l);const d=[];for(const e in r){const t=r[e],i=this._createNode({x:t.x,z:-t.y},s,e);i.updateRBushBBox(),d.push(i)}l.load(d);const c=[];for(const e in o.edges){const n=o.edges[e],[s,r]=null!==(t=n.vertices)&&void 0!==t?t:e.split(":"),l=n.thickness,d=this.getNode(s),u=this.getNode(r),h=n.type===Q.gP.INVISIBLE,m=this._createWall(h?a.b.DIVIDER:a.b.SOLID,d,u,h?q.VG:l,[],null!==(i=n.bias)&&void 0!==i?i:.5,e);if(m.bias=1-m.bias,m.updateRBushBBox(),c.push(m),!h)for(const e in n.openings){const{relativePos:t,type:i,width:s}=n.openings[e];this._createWallOpening(m,i,t,s,e)}}if(l.load(c),o.rooms)for(const e in o.rooms){const t=o.rooms[e],i=t.edges||[],s=t.holes||[];if(!i.length&&t.vertices)for(let e=0;ethis.getWall(e)))),l=this.traceWallsFromTo(a.from,a.to,r),d=this.traceWallsFromTo(a.to,a.from,r),c=l.length>d.length?l:d;if(0===c.length){this.logger.warn("No node loop found for room: ",e);continue}(0,u.N5)(c);const h=new Set;for(const e of r)h.add(e.from),h.add(e.to);(0,v.c5)(new Set(c),h)||this.logger.warn("Traced room does not match edge list!",e,c,h);const m=[],p=[];for(const e of s){if(0===e.length)continue;const t=new Set(e.map((e=>this.getWall(e))));p.push(t);const i=this.getWall(e[0]),n=this.traceWallsFromTo(i.from,i.to,t);(0,u.N5)(n).reverse(),m.push(n)}const{location:E,includeInAreaCalc:S,hide:O,keywords:g}=(0,n.rO)(t.keywords||[]),T=this._createRoom({id:e,name:t.label||"",points:c,walls:r,holesCW:m,holes:p,classifications:this.translateClassificationLabels(t.classifications),location:E,includeInAreaCalc:S,hide:O,keywords:g,height:t.height||NaN,ceiling:t.ceiling||null}),_=null!=t.width&&0===t.width;null!=t.length&&0===t.length&&_&&(T.showDimensions=!1),T.showHeight=null===t.height||0!==t.height,t.width&&!Number.isNaN(t.width)&&Math.abs(t.width-T.width)>.001&&this.logger.debug(`Room ${e} has width of ${t.width} on MDS but calculated as ${T.width} locally`),t.length&&!Number.isNaN(t.length)&&Math.abs(t.length-T.length)>.001&&this.logger.debug(`Room ${e} has length of ${t.length} on MDS but calculated as ${T.length} locally`),t.area&&!Number.isNaN(t.area)&&Math.abs(t.area-T.area)>=.01&&this.logger.debug(`Room ${e} has area of ${t.area} on MDS but calculated as ${T.area} locally`)}}this.lastSolidWallWidth=void 0,this.isLoading=!1}get walls(){return this._walls.data}get nodes(){return this._nodes.data}get rooms(){return this._rooms.data}get wallOpenings(){return this._wallOpenings.data}getNode(e){const t=this._nodes.get(e);if(t)return t;this.logAndThrow(new Error("WallNode does not exist in WallGraphData"))}getWall(e){const t=this._walls.get(e);if(t)return t;this.logAndThrow(new Error("Wall does not exist in WallGraphData"))}hasRoom(e){return!!this._rooms.get(e)}hasRooms(){return this._rooms.size>0}getRoom(e){const t=this._rooms.get(e);return t||this.logAndThrow(new Error("Room id is invalid!")),t}getOpening(e){const t=this._wallOpenings.get(e);return t||this.logAndThrow(new Error("Opening id is invalid")),t}getEntity(e){const t=this._walls.get(e)||this._nodes.get(e)||this._rooms.get(e)||this._wallOpenings.get(e);return t||this.logAndThrow(new Error("No entity for id.")),t}tryGetEntity(e){return this._walls.get(e)||this._nodes.get(e)||this._rooms.get(e)||this._wallOpenings.get(e)||null}getEdgeCountForNode(e){var t;return(null===(t=this._nodeToWallMap.get(e))||void 0===t?void 0:t.size)||0}getWallsForNode(e){const t=this._nodeToWallMap.get(e);if(t&&t.size>0)return t;this.logAndThrow(new Error("WallNode has no associate walls, this should not happen unless inside an action"))}getFloorsWithNodes(){return Array.from(this._nodesByFloor.keys())}getWallsForFloor(e){const t=this._wallsByFloor.get(e);return t&&t.size>0?t:null}getNodesByFloor(e){const t=this._nodesByFloor.get(e),i=new Set;return t||(this._nodesByFloor.set(e,i),i)}getRoomsForWall(e){return this._wallToRoomMap.get(e)||new Set}isExteriorWall(e){const t=this._wallToRoomMap.get(e);if(t){if(t.size>0){if(1===t.size)return!0;for(const e of t.values())if(e.location===n.Vc.OUTDOOR)return!0;return!1}return!0}return!0}getWallNeighbors(e,t){const i=e[t],n=this.getEdgeCountForNode(i);if(1===n)return null;if(2!==n){const n=(()=>{const e=new c.Vector2;return(t,i)=>{const n=i.getOtherNode(t);e.set(n.x-t.x,n.z-t.z).normalize();return e.angle()}})(),s=this._nodeToWallMap.get(i);if(!s||0===s.size)return null;const a=Array.from(s).sort(((e,t)=>n(i,e)-n(i,t))),o=a.indexOf(e);let r=(o+1)%a.length,l=o-1<0?a.length-1:o-1;if("from"===t){const e=l;l=r,r=e}return{left:a[r],right:a[l]}}{const t=this._nodeToWallMap.get(i);if(!t||0===t.size)return null;for(const i of t)if(i.id!==e.id)return{left:i,right:i}}this.logAndThrow(new Error("Not finding both neighbors should never happen"))}getLastWallWidth(e){return e===a.b.SOLID&&this.lastSolidWallWidth?this.lastSolidWallWidth:this.getMostCommonWallWidth(e)}getMostCommonWallWidth(e){if(e===a.b.DIVIDER)return q.VG;const t={};for(const e of this._walls.data.values()){const i=e.width.toFixed(2);t[i]=t[i]?t[i]+1:1}let i=q.$h,n=0;for(const[e,s]of Object.entries(t))s>n&&Number(e)>q.VG&&(n=s,i=Number(e));return i}findRoomIdForPosition(e,t,i){const n={x:e.x,y:e.z},s=this._rooms.get(i||"");if(s&&i){const e=s.points.map((e=>({x:e.x,y:e.z})));if((0,$.L)(n,e))return i}for(const e of this._rooms.data.values()){if(e.floorId!==t)continue;const i=e.points.map((e=>({x:e.x,y:e.z})));if((0,$.L)(n,i))return e.id}return null}findNodeOrWallForPosition(e,t,i,n=q.w_){const s=this.spatialIndex.get(t);if(s){const t=s.search({minX:e.x-n,minY:e.z-n,maxX:e.x+n,maxY:e.z+n});let r=null,l=null,d=Number.MAX_VALUE,c=Number.MAX_VALUE;for(const s of t){const t=s.overlapsCircle(e,n);null==t||i.has(s.id)||(s instanceof a.j&&t!0){const s=this.spatialIndex.get(i),a=.05,o=[];if(s){const i=s.search({minX:Math.min(e.x,t.x)-a,minY:Math.min(e.z,t.z)-a,maxX:Math.max(e.x,t.x)+a,maxY:Math.max(e.z,t.z)+a});for(const s of i)if(n(s)){const i=s.overlapsLine(e,t);i.length>0&&o.push(i)}}return o}findOverlappingNodePairs(e){const t=e.floorId,i=[],n=new Set,s=new Set,r=[],l=this.getNodesByFloor(t);for(const d of l){const l=this.getAttachedEntities(d),c=this.findNodeOrWallForPosition(d.getVec3(),t,l);if(c)if(c instanceof o.D){const t=[d.id,c.id].sort().join(":");if(!n.has(t)){let a=d.id,o=c.id;if(o===e.id){const e=o;o=a,a=e}s.has(o)||s.has(a)||(i.push({keepId:a,mergeId:o}),n.add(t),s.add(o))}}else c instanceof a.j&&(s.has(d.id)||r.push(d.id))}return{nodeOverlaps:i,nodeWallOverlaps:r}}findWallWithWorstOverlaps(e,t){let i=[],n=null;const s=this.getWallsForFloor(e),o="colinear"===t?2:1;if(s)for(const e of s){const s="intersection"===t?this.getAttachedEntities(e.from):ne,r="intersection"===t?this.getAttachedEntities(e.to):ne,l=this.findNodeAndWallsOverlappingLine(e.from.getVec3(),e.to.getVec3(),e.floorId,(t=>t instanceof a.j&&t.id!==e.id&&!s.has(t.id)&&!r.has(t.id))).filter((e=>e.length===o));l.length>0&&l.length>i.length&&(i=l,n=e)}return null!=n?{wall:n,overlaps:i.sort(((e,t)=>e[0].t-t[0].t))}:null}findOverlappingEntities(e){const t=e.floorId,{nodeOverlaps:i,nodeWallOverlaps:n}=this.findOverlappingNodePairs(e),s=this.findWallWithWorstOverlaps(t,"colinear"),a=this.findWallWithWorstOverlaps(t,"intersection");if(i.length>0||n.length>0||a||s){return{nodeOverlaps:i,nodeWallOverlaps:n,intersectingWall:a?a.wall:void 0,collinearWall:s?s.wall:void 0}}return null}getSortedRoomClassifications(){return Object.values(this.roomClassifications).sort(((e,t)=>e.label.localeCompare(t.label)))}hasWallBetween(e,t){const i=a.j.getCompositeKey(e.id,t.id);return this._wallsByCompositeKey.has(i)}getWallForNodes(e,t){const i=a.j.getCompositeKey(e,t),n=this._wallsByCompositeKey.get(i);return n||this.logAndThrow(new Error("getWallForNodes: No wall exists for these nodes!")),n}canDeleteEntity(e){if(null!=e){const t=this.getEntity(e);if(t instanceof o.D){if(2!==this.getEdgeCountForNode(t))return!1;let e;for(const i of this.getWallsForNode(t).values()){if(void 0!==e&&i.type!==e)return!1;e=i.type}return!0}if(t instanceof n.pQ){return!!Array.from(t.walls).find((e=>1===Array.from(this.getRoomsForWall(e)).filter((t=>t.walls.has(e))).length))}return t instanceof a.j||t instanceof h.$}return!1}undo(){const e=this.undoBuffer.pop();if(e){try{this.actionList.push(e.logInfo()),e.invert()}catch(e){return void this.onActionError(e)}this.commit(),this._triggerFinalizeObservers()}}availableUndos(){return this.undoBuffer.length.value}clearUndoBuffer(){this.undoBuffer.clear()}resetHistory(){this.clearUndoBuffer(),this._observerQueue.length=0,this._deleteSet.clear()}finalizeHistory(){this.undoBuffer.finalize(),this._triggerFinalizeObservers()}getAndClearActionList(){const e=this.actionList.slice();return this.actionList.length=0,e}triggerAction(e){var t,i;try{e.run()}catch(e){return this._observerQueue.length=0,this._deleteSet.clear(),void this.onActionError(e)}const n=null===(t=this.undoBuffer.peek())||void 0===t?void 0:t.lastAction();this.undoBuffer.push(e),n!==(null===(i=this.undoBuffer.peek())||void 0===i?void 0:i.lastAction())&&this.actionList.push(e.logInfo()),this.commit()}onNodesChanged(e){return this._nodes.onChanged(e)}onWallsChanged(e){return this._walls.onChanged(e)}onRoomsChanged(e){return this._rooms.onChanged(e)}onOpeningsChanged(e){return this._wallOpenings.onChanged(e)}validateGraph(){this._recomputeRooms()&&(this.commit(),this.finalizeHistory())}commit(){const e=this._observerQueue.length;if(this._flushObserverQueue(),e>0)for(const e of this._anythingChangeObservers)e(void 0)}onPropertyChanged(e,t){const i=this["_"+e];if(i instanceof m){const n=i,s=()=>{n.addedObservers.add(t),n.updatedObservers.add(t),n.deletedObservers.add(t)},a=()=>this.removeOnPropertyChanged(e,t);return(0,l.Sh)(s,a,!0,e)}this.logAndThrow(new Error(`Property: ${e} does not exist on wall-data`))}removeOnPropertyChanged(e,t){const i=this["_"+e];if(i instanceof m){const e=i;e.addedObservers.delete(t),e.updatedObservers.delete(t),e.deletedObservers.delete(t)}else this.logAndThrow(new Error(`Property: ${e} does not exist on wall-data`))}onChanged(e){if(this._anythingChangeObservers.has(e))throw new Error("This observer function is already observing this Observable, and double subscriptions are not supported.");return(0,l.Sh)((()=>this._anythingChangeObservers.add(e)),(()=>this.removeOnChanged(e)),!0)}removeOnChanged(e){this._anythingChangeObservers.delete(e)}afterFinalize(e){this._afterFinalizeObservers.has(e)&&this.logAndThrow(new Error("Already subscribed!"));return(0,l.Sh)((()=>this._afterFinalizeObservers.add(e)),(()=>this._afterFinalizeObservers.delete(e)),!0)}addFloatingEdge(e,t,i,n,s){const a=new T(this,{from:t,to:i,width:n,floorId:s,type:e});return this.triggerAction(a),a.output}addBridgingEdge(e,t,i,n){const s=new w(this,{fromId:t,toId:i,width:n,type:e});return this.triggerAction(s),s.output}addTrailingEdgeToNode(e,t,i,n){const s=new A(this,{fromId:t,to:i,width:n,type:e});return this.triggerAction(s),s.output}addTrailingEdgeToEdge(e,t,i,n,s){const a=new M(this,{fromWallId:t,along:i,to:n,width:s,type:e});return this.triggerAction(a),a.output}canMoveNode(e,t){const i=this.getNode(e),n=this.getWallsForNode(i);for(const e of n){if(0===e.openings.length)continue;const n=e.getOtherNode(i),s=n.x-t.x,a=n.z-t.z,o=Math.sqrt(s*s+a*a);if(!(o>e.length))for(const t of e.openings){const e=t.relativePos*o,i=.5*t.width;if(e+i>o||e-i<0)return!1}}return!0}moveNode(e,t){const i={nodeId:e,newPos:t};this.triggerAction(new g(this,i))}moveWall(e,t,i){const n={wallId:e,newFromPos:t,newToPos:i};this.triggerAction(new _(this,n))}deleteEntity(e){if(this.canDeleteEntity(e)){const t=this.getEntity(e);if(t instanceof o.D){const t={nodeId:e};this.triggerAction(new k(this,t))}else if(t instanceof a.j){const t={wallId:e};this.triggerAction(new b(this,t))}else if(t instanceof h.$){const t={openingId:e};this.triggerAction(new x(this,t))}else if(t instanceof n.pQ){const t={roomId:e};this.triggerAction(new ee(this,t))}}}setEdgeProperties(e,t){const i={wallId:e,props:t};this.triggerAction(new D(this,i))}addWallOpening(e){const t=new H(this,e);return this.triggerAction(t),t.output.openingId}editWallOpeningDetails(e,t){this.triggerAction(new C(this,Object.assign(Object.assign({},t),{id:e})))}addWallJoint(e,t,i){const n={wallId:e,fromNode:t,toNode:i};this.triggerAction(new P(this,n))}setRoomDetails(e,t){this.triggerAction(new X(this,Object.assign({roomId:e},t)))}mergeOverlappingEntities(e,t,i,n,s){const a={movedEntity:e,nodeOverlaps:t,nodeWallOverlaps:i,collinearWall:n,intersectingWall:s};this.triggerAction(new W(this,a))}getRoomTypeName(e,t){var i;const n=this.getRoom(e);if(n||this.logAndThrow(new Error("Room does not exist")),n.classifications&&n.classifications.length>0){return(0,Z.Kq)(n.classifications.map((e=>e.id))).map((e=>{var i;return(null===(i=this.roomClassifications[e])||void 0===i?void 0:i.label)||t})).join(q.Ae)}return(null===(i=this.roomClassifications[q.YV])||void 0===i?void 0:i.label)||t}getRoomLabel(e,t){const i=this.getRoom(e);return i||this.logAndThrow(new Error("Room does not exist")),i.name?i.name:this.getRoomTypeName(e,t)}getGrossFloorArea(e,t){let i=0;for(const t of this.rooms.values()){(null==e||t.floorId===e)&&t.includeInAreaCalc&&t.location===n.Vc.INDOOR&&!isNaN(t.areaWithWalls)&&(i+=t.areaWithWalls)}return(0,u.g6)(i,t)}getRoomArea(e,t){try{return this.getRoom(e).getArea(t)}catch(t){return this.logger.error(`Error getting room area for room '${e}'`,t),0}}getPotentialRoomCanvasLabels(e,t,i,n,s){const a=(...e)=>e.filter((e=>e.length>0)).join("\n"),o=this.getRoom(e),r=n&&(!o.isOther()||o.name),l=s&&!o.hide;if(!r&&!l)return[];const d=r?this.getRoomLabel(e,t):"",c=l?(0,te.JE)(i,o.getArea(i)).area:"",u=l?o.getMeasurementText(i):"",h=[a(d,c,u)],m=[];for(let e=d.length-4;e>0&&d.length>0;e--)m.push((0,ie.W5)(d,e));return c.length>0&&u.length>0&&h.push(...m.map((e=>a(e,c,u)))),c.length>0&&(h.push(a(d,c)),h.push(...m.map((e=>a(e,c))))),h.push(...m),h}getAttachedEntities(e){const t=new Set;t.add(e.id);const i=this.getNode(e.id),n=this.getWallsForNode(i);for(const e of n){t.add(e.id);const n=e.getOtherNode(i);1===this.getEdgeCountForNode(i)&&1===this.getEdgeCountForNode(n)&&t.add(n.id)}return t}translateClassificationLabels(e){return e?e.map((e=>{const t=this.roomClassifications[e.id];return t?Object.assign(Object.assign({},e),{label:t.label}):e})):[]}traceWallsFromTo(e,t,i){const n=[e,t];let s=!1;for(;s=!this.hasLoop(n);){const e=n[n.length-1],t=n[n.length-2],s=this.getNodeNeighbors(e,i);let a,o=4*Math.PI;for(const i of s){const n=this.getRelativeAngle(e,t,i);n=0;i--){t.unshift(e[i]);const n=e.length-2*t.length;if(n<0)return!1;let s=!0;for(let i=0;ie.id)),"in sequence",e.map((e=>e.id))),!0}return!1}_createNode(e,t,i){const n=new o.D(i||(0,s.hA)(),t,e.x,e.z);return this._nodes.set(n.id,n),this._addToDictHelper(t,n,this._nodesByFloor),this.insertIntoSpatialIndex(n),this._scheduleObserver({observers:this._nodes.addedObservers,param:n,type:se.CREATE}),n}_updateNode(e,t){const i=this._nodes.get(e);i?(this.removeFromSpatialIndex(i),i.x=t.x,i.z=t.z,this.insertIntoSpatialIndex(i),this._scheduleUpdate(this._nodes,i)):this.logAndThrow(new Error("Attempted to update WallNode that does not exist"))}_deleteNode(e){const t=this._nodes.get(e);t?(this.getEdgeCountForNode(t)>0&&this.logAndThrow(new Error("Attempted to delete a node which has wall references still!")),this._nodes.delete(e),this._removeFromDictHelper(t.floorId,t,this._nodesByFloor),this.removeFromSpatialIndex(t),this._scheduleDelete(this._nodes,t)):this.logAndThrow(new Error("Attempted to delete WallNode that does not exist"))}_createRoom(e){this._validateRoomDetails(e.points,e.holesCW,e.walls,e.holes);const t=new n.pQ(e);this.rooms.set(t.id,t);for(const e of t.allWalls()){const i=this._wallToRoomMap.get(e)||new Set;i.add(t),this._wallToRoomMap.set(e,i)}return this._scheduleObserver({observers:this._rooms.addedObservers,param:t,type:se.CREATE}),this.calculateRoomInsights(t),t}_updateRoom(e,t,i=!0){this._validateRoomDetails(t.points,t.holesCW,t.walls,t.holes),this._inFlightRoomCeilingsCalc.has(e)&&this._roomsNeedingCeilingCalc.add(e);const n=this._rooms.get(e);if(n){for(const e of n.allWalls()){const t=this._wallToRoomMap.get(e);t&&t.delete(n)}t.name=n.name,t.classifications=n.classifications?[...n.classifications]:[],this.rooms.set(e,t);for(const e of t.allWalls().values()){const i=this._wallToRoomMap.get(e)||new Set;i.add(t),this._wallToRoomMap.set(e,i)}this._scheduleUpdate(this._rooms,t),i&&this.calculateRoomInsights(t)}else this.logAndThrow(new Error("Attempted to update Room that does not exist"))}_validateRoomDetails(e,t,i,n){const s=e[0].floorId;for(const i of e.concat(t.flat()))i.floorId!==s&&this.logAndThrow(new Error("Room nodes have mismatching floor ids!"))}logAndThrow(e){throw this.broadcast(new J.t(e)),e}_updateRoomDetails(e,t){const{name:i,roomTypeIds:n,location:s,includeInAreaCalc:a,hide:o,keywords:r,showDimensions:l,showHeight:d}=t,c=this.getRoom(e);c.name=null!=i?i:c.name,n&&(c.classifications=n.map((e=>({id:e,label:this.roomClassifications[e].label})))),c.location=null!=s?s:c.location,c.includeInAreaCalc=null!=a?a:c.includeInAreaCalc,c.hide=null!=o?o:c.hide,c.keywords=null!=r?r:c.keywords,c.showDimensions=null!=l?l:c.showDimensions,c.showHeight=null!=d?d:c.showHeight,this._scheduleUpdate(this._rooms,c)}_deleteRoom(e){const t=this._rooms.get(e);if(t){this._rooms.delete(t.id);for(const e of t.allWalls().values()){const i=this._wallToRoomMap.get(e);null==i||i.delete(t)}this._scheduleDelete(this._rooms,t)}else this.logAndThrow(new Error("Attempted to delete Room that does not exist"))}_createWall(e,t,i,n,o,r,l=(0,s.hA)()){t.id===i.id&&this.logAndThrow(new Error("Cannot create wall where the from node is the same as the to node.")),t.floorId!==i.floorId&&this.logAndThrow(new Error("Cannot create a wall between nodes on different floors.")),this.hasWallBetween(t,i)&&this.logAndThrow(new Error("Wall already exists between start and end nodes.")),this._walls.has(l)&&this.logAndThrow(new Error("Wall already exists!"));const d=this.getNode(t.id),c=this.getNode(i.id),u=new a.j(l,e,d,c,n,r);this._walls.set(u.id,u),this._addToWallDicts(u),this._scheduleObserver({observers:this._walls.addedObservers,param:u,type:se.CREATE});for(const e of o){const{type:t,relativePos:i,width:n,id:s}=e;this._createWallOpening(u,t,i,n,s)}return this.insertIntoSpatialIndex(u),u}_deleteWall(e){const t=this.getWall(e);for(const e of t.openings.slice())this._deleteWallOpening(e.id);this._walls.delete(e),this._removeFromWallDicts(t),this.removeFromSpatialIndex(t),this._scheduleDelete(this._walls,t)}_setEdgeProps(e,t){const{width:i,bias:n,type:s}=t,o=this.getWall(e);void 0!==s&&(o.type=s),void 0!==i&&(o.width=i,o.type===a.b.SOLID&&(this.lastSolidWallWidth=i)),void 0!==n&&(o.bias=n),this._scheduleUpdate(this._walls,o),this._updateDependentsForNodes(o.from,o.to)}_createWallOpening(e,t,i,n,a=(0,s.hA)()){const o=new h.$(a,e.id,e.floorId,t,i,n);return this._wallOpenings.set(o.id,o),e.openings.push(o),this._scheduleObserver({observers:this._wallOpenings.addedObservers,param:o,type:se.CREATE}),o}_setOpeningDetails(e,t){var i,n,s;const a=this.getOpening(e);a.type=null!==(i=t.type)&&void 0!==i?i:a.type,a.relativePos=null!==(n=t.relativePos)&&void 0!==n?n:a.relativePos,a.width=null!==(s=t.width)&&void 0!==s?s:a.width,this._scheduleUpdate(this._wallOpenings,a)}_deleteWallOpening(e){const t=this.getOpening(e),i=this.getWall(t.wallId),n=i.openings.findIndex((t=>t.id===e));-1!==n?i.openings.splice(n,1):this.logAndThrow(new Error("Expected opening to exist in wall array!")),this._wallOpenings.delete(e),this._scheduleDelete(this._wallOpenings,t)}_addToWallDicts(e){this._addToDictHelper(e.from,e,this._nodeToWallMap),this._addToDictHelper(e.to,e,this._nodeToWallMap),this._addToDictHelper(e.floorId,e,this._wallsByFloor),this._wallsByCompositeKey.set(a.j.getCompositeKey(e.from.id,e.to.id),e)}_addToDictHelper(e,t,i){let n=i.get(e);null!=n?n.add(t):(n=new Set,n.add(t),i.set(e,n))}_removeFromDictHelper(e,t,i){const n=i.get(e);null!=n&&(n.delete(t),0===n.size&&i.delete(e))}_removeFromWallDicts(e){this._removeFromDictHelper(e.from,e,this._nodeToWallMap),this._removeFromDictHelper(e.to,e,this._nodeToWallMap),this._removeFromDictHelper(e.floorId,e,this._wallsByFloor),this._wallToRoomMap.delete(e),this._wallsByCompositeKey.delete(a.j.getCompositeKey(e.from.id,e.to.id))}_scheduleObserver(e){this._observerQueue.push(e)}_scheduleUpdate(e,t,i=!1){this._observerQueue.find((i=>i.observers===e.addedObservers&&i.param===t))||this._scheduleObserver({observers:i?e.childUpdatedObservers:e.updatedObservers,param:t,type:se.UPDATE})}_scheduleDelete(e,t){this._scheduleObserver({observers:e.deletedObservers,param:t,type:se.DELETE}),this._deleteSet.add(t)}_flushObserverQueue(){const e=new Set;for(const t of this._observerQueue)if(t.type!==se.UPDATE||!this._deleteSet.has(t.param))if(t.type===se.CREATE&&this._deleteSet.has(t.param))e.add(t.param);else if(t.type!==se.DELETE||!e.has(t.param))for(const e of t.observers){const i=t.param;e(i,i.id)}this._observerQueue.length=0,this._deleteSet.clear()}_triggerFinalizeObservers(){for(const e of this._afterFinalizeObservers.values())e()}getSnapshot(){const e={version:this.version,floors:{}},t=t=>{e.floors[t]||(e.floors[t]={edges:{},vertices:{},rooms:{}})};for(const[i,n]of this._nodes.data){t(n.floorId);e.floors[n.floorId].vertices[n.id]=n.getSnapshot()}for(const[i,n]of this._walls.data){t(n.floorId);e.floors[n.floorId].edges[n.id]=n.getSnapshot()}for(const[i,n]of this._rooms.data){t(n.floorId);e.floors[n.floorId].rooms[n.id]=n.getSnapshot()}return e}insertIntoSpatialIndex(e){if(this.isLoading)return;this.spatialIndex.has(e.floorId)||this.spatialIndex.set(e.floorId,new(S()));const t=this.spatialIndex.get(e.floorId);e.updateRBushBBox(),t.insert(e)}removeFromSpatialIndex(e){if(this.isLoading)return;const t=this.spatialIndex.get(e.floorId);null!=t&&t.remove(e)}_recomputeRooms(){return new K(this,{}).run(),this._observerQueue.length>0}calculateRoomInsights(e){this.calculateRoomArea(e),this.calculateRoomAreaWithWalls(e),this.calculateRoomPerimeter(e),this.calculateRoomMeasurements(e),this.isLoading||this.scheduleCeilingComputation(e)}calculateRoomArea(e){const t=new Array(new c.Vector3,new c.Vector3,new c.Vector3,new c.Vector3);t.push(t[0]);const i=e=>{let i=0;for(let n=0;n[e.x,e.z])))}return i},n=i(e.getCWPoints());let s=0;for(const t of e.holesCW)s+=(0,u.eW)(t),s+=i(t.slice().reverse());const a=(0,u.eW)(e.points);e.area=Math.max(a-n-s,0)}calculateRoomPerimeter(e){let t=0;for(const i of e.minimalInnerEdges)t+=i.start.distanceTo(i.end);e.perimeter=t}calculateRoomAreaWithWalls(e){const t=new Array(new c.Vector3,new c.Vector3,new c.Vector3,new c.Vector3);t.push(t[0]);const i=e=>{let i=0;for(let n=0;n[e.x,e.z])))}return i},n=(0,u.eW)(e.points);let s=0;for(const t of e.holesCW)s+=(0,u.eW)(t);const a=Math.max(n-s,0);if(a>0){const t=i(e.points);let n=0;for(const t of e.holesCW)n+=i(t.slice().reverse());e.areaWithWalls=a+t+n}else e.areaWithWalls=0}calculateRoomMeasurements(e){const{edges:t,thickness:i}=(0,u.I0)(e,this);let n=0,s=[new c.Vector2,new c.Vector2],a=[new c.Vector2,new c.Vector2],o=new c.Vector2(0,0);for(let e=0;e<2;e++){let r=0;for(let l=0;lMath.cos(Math.PI-q.Mg))continue;const g=(new c.Vector2).subVectors(S,O).normalize();if(e>0&&Math.abs(g.dot(o))>Math.cos(Math.PI/2-q.Bg))continue;const T=(new c.Vector2).addVectors(p.getVec2(),E.getVec2()).multiplyScalar(.5);if((0,u.mN)(S,d.getVec2(),T)<0)continue;const _=new c.Vector2,A=new c.Vector2,v=(0,u.m_)([d.getVec2().addScaledVector(S,i[l]),h.getVec2().addScaledVector(S,i[l])],[p.getVec2().addScaledVector(O,i[m]),E.getVec2().addScaledVector(O,i[m])],_,A);v>r&&(r=v,0===e?(s=[_,A],o=S,n=1):(a=[_,A],n=2))}}}if(2===n){const e=(s[1].y-s[0].y)/(s[1].x-s[0].x),t=(a[1].y-a[0].y)/(a[1].x-a[0].x);if(Math.abs(e)=2&&(e.length=(new c.Vector2).subVectors(s[0],s[1]).length(),e.l1=s[0].clone(),e.l2=s[1].clone(),e.width=(new c.Vector2).subVectors(a[0],a[1]).length(),e.w1=a[0].clone(),e.w2=a[1].clone(),this.isRectangularIsh(e)||(e.length=NaN,e.width=NaN))}isRectangularIsh(e){if(isNaN(e.length)||isNaN(e.width))return!1;const t=e.getCWPoints();return(0,u.fZ)(t,[e.l1,e.l2],[e.w1,e.w2],this)>.9}async calculateRoomCeilings(e){const t=this.tryGetEntity(e);if(t&&t instanceof n.pQ)return!this.calcCeilings||t.area<=1e-4?Promise.resolve():(this._inFlightRoomCeilingsCalc.add(t.id),this.calcCeilings(t).then((e=>{this._inFlightRoomCeilingsCalc.delete(t.id),!this._roomsNeedingCeilingCalc.has(t.id)&&this.rooms.has(t.id)&&(t.ceiling=e,this._scheduleUpdate(this._rooms,t))})))}clearAllCeilings(){for(const e of this.rooms.values())e.ceiling=null,this._scheduleUpdate(this._rooms,e);this._flushObserverQueue()}markAllRoomsDirty(){for(const e of this.rooms.values())this._scheduleUpdate(this._rooms,e);this._flushObserverQueue()}scheduleCeilingComputation(e){this._roomsNeedingCeilingCalc.add(e.id)}async recalculateCeilings(e=!1){if(e)for(const e of this.rooms.keys())this._roomsNeedingCeilingCalc.add(e);for(;;){const e=[];for(const t of this._roomsNeedingCeilingCalc)e.push(this.calculateRoomCeilings(t));if(this._roomsNeedingCeilingCalc.clear(),await Promise.all(e),0===this._roomsNeedingCeilingCalc.size)break}return this._flushObserverQueue(),Promise.resolve()}}},92788:(e,t,i)=>{"use strict";i.d(t,{GZ:()=>s,Vc:()=>n,pO:()=>g,pQ:()=>O,rO:()=>_,vQ:()=>A});var n,s,a=i(89955),o=i.n(a),r=i(82807),l=i(68909),d=i(93818),c=i(47503),u=i(98720),h=i(941),m=i(25601),p=i(54664),E=i(15854),S=i(99380);!function(e){e.INDOOR="indoor",e.OUTDOOR="outdoor"}(n||(n={})),function(e){e.INDOOR="indoor",e.OUTDOOR="outdoor",e.NON_AREA="nonArea",e.HIDE="hide"}(s||(s={}));class O{constructor(e){this.area=NaN,this.areaWithWalls=NaN,this.length=NaN,this.l1=new l.Vector2,this.l2=new l.Vector2,this.width=NaN,this.w1=new l.Vector2,this.w2=new l.Vector2,this.height=NaN,this.ceiling=null,this._minimalInnerEdges=null,this._minimalInnerLoop=null,this.classifications=[],this.showDimensions=!0,this.showHeight=!0,this._viewCenterCache={},this._containsPointCache=new r.A({maxSize:10}),this.wallsCCW=[],this.holeWallsCW=[],this.cornerStraight=(()=>{const e=new l.Vector3,t=new l.Vector3;return(i,n)=>{const s=i.end.distanceTo(n.start)<.02;e.subVectors(i.start,i.end).normalize(),t.subVectors(n.end,n.start).normalize();const a=Math.abs(Math.abs(e.dot(t))-1)<.01;return s&&a}})(),Object.assign(this,e),this.initCCWWalls()}getEntityAnalytic(){return"room"}get roomTypeIds(){return 0===this.classifications.length?[h.YV]:this.classifications.map((e=>e.id))}get floorHeight(){if(null!=this.ceiling&&this.ceiling.planes.length>0){const e=this.ceiling.planes[0].measurements;if(e.length>0)return e[0].bottom.y}return NaN}accessible(){return!(this.hide&&!this.includeInAreaCalc)}isOther(){const e=this.roomTypeIds;return 1===e.length&&e[0]===h.YV}get floorId(){return this.points[0].floorId}getMaxCeilingDatum(){if(this.isFlatCeiling())return null;let e=Number.MIN_SAFE_INTEGER,t=null;const i=new l.Vector3;if(null!=this.ceiling)for(const n of this.ceiling.planes)for(const s of n.measurements)s.height>=e&&(e=s.height,t=i.set(s.bottom.x,s.bottom.y,s.bottom.z));return null!=t?{position:t,height:e}:null}getMinCeilingHeight(){let e=Number.MAX_SAFE_INTEGER,t=!1;if(null!=this.ceiling)for(const i of this.ceiling.planes)for(const n of i.measurements)n.height=h.lD&&(e=n.height,t=!0);return t?e:isNaN(this.height)?NaN:this.height}isFlatCeiling(){return null!=this.ceiling&&Math.abs(this.ceiling.maxHeight-this.ceiling.minHeight)<=1e-8}getSnapshot(){return{height:this.height,source:"frontend",vertices:this.points.map((e=>e.id)),holes:this.holesCW.map((e=>e.map((e=>e.id)))),label:this.name}}pointsMoved(){this._bbox=null,this._geometry=null,this._viewCenterCache={},this._containsPointCache.clear(),this._minimalInnerLoop=null,this._minimalInnerEdges=null}get minimalInnerLoop(){return null==this._minimalInnerLoop&&(this._minimalInnerLoop=this.calculateMinimalInnerLoop()),this._minimalInnerLoop}get minimalInnerEdges(){return null==this._minimalInnerEdges&&(this._minimalInnerEdges=this.calculateMinimalInnerEdges()),this._minimalInnerEdges}get bbox(){return this._bbox||(this._bbox=(new l.Box2).setFromPoints(this.points.map((e=>e.getVec2())))),this._bbox}getViewCenter(e=new l.Vector3,t=1){const i=t.toFixed(1),n=this._viewCenterCache[i];if(null!=n)return e.copy(n.center),e;{const n=this.points.map((e=>[e.x/t,e.z]));n.push([this.points[0].x/t,this.points[0].z]);const s=[n].concat(this.holesCW.map((e=>e.map((e=>[e.x/t,e.z])).reverse()))),a=o()(s,.1),r=a.distance,d=new l.Vector3(a[0]*t,0,a[1]);return this._viewCenterCache[i]={center:d,distance:r},e.copy(d),e}}getViewCenterDistance(e=1){this.getViewCenter(void 0,e);const t=e.toFixed(1);if(null==this._viewCenterCache[t])throw new Error("View center should have been precached");return this._viewCenterCache[t].distance}getArea(e){return(0,S.g6)(this.area,e)}getMeasurementText(e){return this.canDisplayDimensions()?[(0,d.R5)(this.width,e),(0,d.R5)(this.length,e)].join(` ${d.ac} `):""}canDisplayDimensions(){return!(isNaN(this.length)||isNaN(this.width)||this.length<=0||this.width<=0||!this.showDimensions)}canDisplayHeight(){return(!isNaN(this.height)||null!=this.ceiling)&&this.showHeight}getPerimeterText(e){return(0,d.R5)(this.perimeter,e)}getCWPoints(){return this.points.slice().reverse()}allWalls(){return(0,c.LX)(this.walls,...this.holes)}allKeywords(){const e=this.keywords.slice();return this.hide&&e.push(s.HIDE),this.includeInAreaCalc||e.push(s.NON_AREA),e.push(this.location===n.OUTDOOR?s.OUTDOOR:s.INDOOR),e}initCCWWalls(){const e=new Map;for(const t of this.allWalls())e.set(u.j.getCompositeKey(t.from.id,t.to.id),t);const t=t=>{const i=[],n=t.length;for(let s=0;snew l.Vector2(e.x,e.z))),i=e.slice(1).map((e=>e.map((e=>new l.Vector2(e.x,e.z))))),n=l.ShapeUtils.triangulateShape(t,i).map((e=>[e[0],e[2],e[1]]));this._geometry={faces:n,points:t.concat(i.flat(1))}}return this._geometry}calculateInnerLoop(e=0){const t=[],i=i=>{t.push([]);const n=i.length;for(let s=0;s.01)&&d.push(u),d.push(l.end.clone())}};i(this.wallsCCW);for(const e of this.holeWallsCW)i(e);return t}calculateMinimalInnerLoop(e=0){const t=[],i=this.calculateInnerLoop(e);let n=0;for(const e of i){const i=e.length,s=[];for(let t=0;t0){const e=s.map((e=>[e.x,e.z]));(0,p.A)(e,!0)>0||s.reverse()}t.push(s),n++}return t}calculateMinimalInnerEdges(){const e=[],t=this.minimalInnerLoop;for(const i of t){const t=i.length;for(let n=0;n[e.x,e.z])),s=this.minimalInnerLoop.slice(1,this.minimalInnerLoop.length).map((e=>e.reverse().map((e=>[e.x,e.z])))),a=(0,E.s)([e,t],n)&&!s.some((i=>(0,E.s)([e,t],i)));return this._containsPointCache.set(i,a),a}}}function g(e,t){var i;return e.length>0&&(null!==(i=e[0].defaultKeywords)&&void 0!==i?i:[]).includes(t)}function T(e){return e.filter((e=>!Object.values(s).includes(e)))}function _(e){return{location:e.includes(s.OUTDOOR)?n.OUTDOOR:n.INDOOR,includeInAreaCalc:!e.includes(s.NON_AREA),hide:e.includes(s.HIDE),keywords:T(e)}}function A(e){const t=new Set;for(const i of e)(0,c.s1)(t,i.defaultKeywords||[]);return t.has(s.INDOOR)&&t.has(s.OUTDOOR)&&t.delete(s.OUTDOOR),Array.from(t.values())}},98720:(e,t,i)=>{"use strict";i.d(t,{b:()=>n,j:()=>l});var n,s=i(68909),a=i(74381),o=i(941),r=i(86866);!function(e){e.SOLID="solid-wall",e.DIVIDER="invisible-wall"}(n||(n={}));class l{static getCompositeKey(e,t){const i=[e,t].sort();return`${i[0]}:${i[1]}`}constructor(e,t,i,n,a,o){this.bias=.5,this.openings=[],this._t1=new s.Vector3,this._t2=new s.Vector3,this._rbushBbox={minX:0,minY:0,maxX:1,maxY:1},this.overlapsCircle=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3,a=new s.Vector3;return(s,o)=>{const r=this.getBiasAdjustmentVec(e),l=this.from.getVec3(t).add(r),d=this.to.getVec3(i).add(r),c=n.subVectors(d,l),u=c.length(),h=a.subVectors(s,l),m=h.length(),p=c.dot(h)/u,E=Math.sqrt(Math.max(m*m-p*p,0));return E<=this.width/2+o&&p>=-o&&p<=u+o?Math.min(p,E):null}})(),this.overlapsLine=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3,a=new s.Vector3,o=new s.Vector3,l=new s.Vector3,d=new s.Vector3,c=new s.Vector3,u=1e-4;function h(e,t,i){return c.subVectors(t,e).dot(i)/i.lengthSq()}return(s,c)=>{const m=this.getBiasAdjustmentVec(e),p=this.from.getVec3(t).add(m),E=this.to.getVec3(i).add(m),S=n.subVectors(E,p),O=o.copy(S).normalize(),g=a.subVectors(c,s),T=l.copy(g).normalize(),_=O.dot(T);if(Math.abs(Math.abs(_)-1)t&&n>t))return[{entity:this.from,t:i},{entity:this.to,t:n}].sort(((e,t)=>e.t-t.t))}}else{const e=(0,r.eB)(s.x,s.z,c.x,c.z,p.x,p.z,E.x,E.z,u);if(null!=e)return[{entity:this,t:e}]}return[]}})(),this.id=e,this.type=t,this.from=i,this.to=n,this.width=a,this.bias=o}getEntityAnalytic(){return this.type}get floorId(){return this.from.floorId}get compositeKey(){return l.getCompositeKey(this.from.id,this.to.id)}getOtherNode(e){if(e===this.from)return this.to;if(e===this.to)return this.from;throw new Error("WallNode does not belong to edge.")}hasNodes(e,t){const{from:i,to:n}=this;return!(e!==i&&e!==n||t!==i&&t!==n)}getBiasAdjustmentVec(e=new s.Vector3){this.getNormal(e);const t=(this.bias-.5)*this.width;return e.multiplyScalar(t),e}getNormal(e=new s.Vector3){return this.getDirection(e),e.normalize(),e.set(-e.z,0,e.x),e}getDirection(e){const t=e||new s.Vector3;return t.set(this.to.x-this.from.x,0,this.to.z-this.from.z),t}getEdgeWidth(e,t){const i=this.from===e&&this.to===t?this.bias:1-this.bias;return this.width*i}getEdgeNormal(e,t,i=new s.Vector3){return this.getNormal(i),this.from===e&&this.to===t||i.multiplyScalar(-1),i}getLine3(e){const t=e||new s.Line3;return this.from.getVec3(t.start),this.to.getVec3(t.end),t}getProjection(e){const t=this._t1.copy(e).sub(this.from.getVec3(this._t2)),i=this.getDirection(this._t2);return t.dot(i)/i.length()}getSnapshot(){const e={thickness:this.width,vertices:[this.from.id,this.to.id],type:this.type===n.SOLID?a.gP.WALL:a.gP.INVISIBLE};if(this.openings.length){const t={};for(const e of this.openings)t[e.id]=e.getSnapshot();e.openings=t}return e}getViewCenter(e=new s.Vector3){return e.addVectors(this.to.getVec3(),this.from.getVec3()).multiplyScalar(.5)}get length(){return this.from.distanceTo(this.to)}get minX(){return this._rbushBbox.minX}get maxX(){return this._rbushBbox.maxX}get minY(){return this._rbushBbox.minY}get maxY(){return this._rbushBbox.maxY}updateRBushBBox(){this._rbushBbox={minX:Math.min(this.from.x,this.to.x)-2*this.width-o.RS,minY:Math.min(this.from.z,this.to.z)-2*this.width-o.RS,maxX:Math.max(this.from.x,this.to.x)+2*this.width+o.RS,maxY:Math.max(this.from.z,this.to.z)+2*this.width+o.RS}}clone(){const e=new l(this.id,this.type,this.from,this.to,this.width,this.bias);return e.openings.push(...this.openings),e}}},42968:(e,t,i)=>{"use strict";i.d(t,{D:()=>a});var n=i(68909),s=i(941);class a{constructor(e,t,i,s){this.rbushBbox={minX:0,minY:0,maxX:1,maxY:1},this.overlapsCircle=(()=>{const e=new n.Vector3;return(t,i)=>{const n=this.getVec3(e).distanceTo(t);return n<=i+.3?n:null}})(),this.overlapsLine=(()=>{const e=new n.Vector3,t=new n.Vector3,i=new n.Vector3;return(n,s)=>{const a=e.subVectors(s,n),o=this.getVec3(i),r=t.subVectors(o,n),l=r.dot(a)/a.length(),d=r.length();return Math.sqrt(d*d-l*l)<.3?[{entity:this,t:l/a.length()}]:[]}})(),this.id=e,this.floorId=t,this.x=i,this.z=s}getEntityAnalytic(){return"node"}getPoint(){return{x:this.x,z:this.z}}getVec3(e){const t=e||new n.Vector3;return t.set(this.x,0,this.z),t}getVec2(e){const t=e||new n.Vector2;return t.set(this.x,this.z),t}getViewCenter(e=new n.Vector3){return this.getVec3(e)}getSnapshot(){return{x:this.x,y:-this.z}}distanceTo(e){const t=this.x-e.x,i=this.z-e.z;return Math.sqrt(t*t+i*i)}updateRBushBBox(){this.rbushBbox={minX:this.x-s.RS,minY:this.z-s.RS,maxX:this.x+s.RS,maxY:this.z+s.RS}}get minX(){return this.rbushBbox.minX}get maxX(){return this.rbushBbox.maxX}get minY(){return this.rbushBbox.minY}get maxY(){return this.rbushBbox.maxY}}},34914:(e,t,i)=>{"use strict";i.d(t,{$:()=>a,v:()=>n});var n,s=i(68909);!function(e){e.DOOR="doorway",e.OPENING="opening"}(n||(n={}));class a{constructor(e,t,i,n,s,a){this.id=e,this.wallId=t,this.floorId=i,this.type=n,this.relativePos=s,this.width=a}getEntityAnalytic(){return this.type}getViewCenter(e=new s.Vector3){return e.set(0,0,0)}getSnapshot(){const{type:e,relativePos:t,width:i}=this;return{lowerElevation:0,height:0,type:e,relativePos:t,width:i}}}},7584:(e,t,i)=>{"use strict";i.d(t,{Yk:()=>a,h4:()=>r,m2:()=>l,qQ:()=>o});var n=i(40186),s=i(56208);const a="room_bounds",o="room_bound_user_view_error";function r(e){return e.tryGetProperty(s.Q$.RoomBounds,!1)}function l(e,t,i){return!!(0,n.NW)(e)&&(!t.tryGetProperty(o,!1)&&(r(t)||i))}},50659:(e,t,i)=>{"use strict";i.d(t,{N:()=>o});var n=i(96540),s=i(51469);function a(e){return e?Array.from(e.rooms.values()):[]}function o(){const e=(0,s.N)(),[t,i]=(0,n.useState)(a(e));return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=()=>i(a(e)),n=e.onRoomsChanged({onRemoved:e=>t,onUpdated:e=>t,onChildUpdated:e=>t,onAdded:e=>t});return t(),()=>{n.cancel()}}),[e]),t}},51469:(e,t,i)=>{"use strict";i.d(t,{N:()=>a});var n=i(71555),s=i(6236);const a=(0,n.v)(s.A)},35336:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a,t:()=>s});var n=i(89103);class s extends n.QB{constructor(e){super(),this.error=e}}class a extends n.QB{constructor(e,t=(new Error).stack){super(),this.message=e,this.stack=t}}},25601:(e,t,i)=>{"use strict";i.d(t,{A:()=>l,I:()=>d});var n=i(81662),s=i(68909),a=i(86866),o=i(53172);class r{constructor(){this.primary=new s.Vector3,this.bevel=new s.Vector3}set(e,t,i){this.primary.set(e,t,i),this.bevel.set(e,t,i)}copy(e,t){this.primary.copy(e),t?this.bevel.copy(t):this.bevel.copy(e)}}const l=(()=>{const e={fromLeft:new r,fromRight:new r,toLeft:new r,toRight:new r};return(t,i)=>{h(t,e);const n=i.getWallNeighbors(t,"from"),s=i.getWallNeighbors(t,"to");return n&&(c(t,n.left,"from","left",e.fromLeft),c(t,n.right,"from","right",e.fromRight)),s&&(c(t,s.left,"to","left",e.toLeft),c(t,s.right,"to","right",e.toRight)),e}})(),d=(()=>{const e={start:new s.Vector3,end:new s.Vector3},t={fromLeft:new r,fromRight:new r,toLeft:new r,toRight:new r};return(i,n,s,a,o=0)=>{let r,l,d,u,m;return a?(r="right",l="to",d="from",u=t.toRight,m=t.fromRight):(r="left",l="from",d="to",u=t.fromLeft,m=t.toLeft),h(i,t,o),i.id!==n.id&&c(i,n,l,r,u,o),c(i,s,d,r,m,o),e.start.copy(u.primary),e.end.copy(m.primary),e}})(),c=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,r=new s.Vector3,l=new s.Vector3,d=new s.Vector3,c=new s.Vector3,h=new s.Vector2,p=new s.Vector2,E=new s.Vector2,S=new s.Vector3,O=new s.Vector3;return(s,g,T,_,A,v=0)=>{const N=s.getDirection(e).normalize(),I=s[T],L="from"===T?-1:1,f=g.getOtherNode(I).getVec3(t).sub(I.getVec3(i)).normalize().multiplyScalar(L),b=N.dot(f);if(Math.acos(b)*o.tm<5)return;s.getBiasAdjustmentVec(S),g.getBiasAdjustmentVec(O);const R="left"===_?Math.PI/2:-Math.PI/2,y=N.applyAxisAngle(n.B1.UP,R).multiplyScalar(s.width/2+v).add(S),M=f.applyAxisAngle(n.B1.UP,R).multiplyScalar(g.width/2+v).add(O);s.from.getVec3(r).add(y),s.to.getVec3(l).add(y),g.from.getVec3(d).add(M),g.to.getVec3(c).add(M);if((0,a.HV)(r.x,r.z,l.x,l.z,d.x,d.z,c.x,c.z,h)){const e=u(I,s,g,h,E),t=e.x>0&&e.y>0,i=e.x<0&&e.y<0;if(e.x1.2*Math.max(s.width,g.width)&&i?m(I,s,g,y,M,A):A.set(h.x,0,h.y)}}}})(),u=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3;return(s,a,o,r,l)=>{let d=a.getOtherNode(s);return s.getVec3(i),d.getVec3(e).sub(i),d=o.getOtherNode(s),d.getVec3(t).sub(i),n.set(r.x,0,r.y).sub(i),l.set(e.dot(n)/e.length(),t.dot(n)/t.length()),l}})(),h=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3;return(s,a,o=0)=>{const r=s.width+2*o;s.getBiasAdjustmentVec(i),s.getNormal(e).multiplyScalar(-r/2).add(i),s.getNormal(t).multiplyScalar(r/2).add(i);const l=s.from.getVec3(n).add(t);a.fromRight.copy(l);const d=s.to.getVec3(n).add(t);a.toRight.copy(d);const c=s.to.getVec3(n).add(e);a.toLeft.copy(c);const u=s.from.getVec3(n).add(e);a.fromLeft.copy(u)}})(),m=(()=>{const e=new s.Vector3,t=new s.Vector3,i=new s.Vector3,n=new s.Vector3,a=new s.Vector3;return(s,o,r,l,d,c)=>{const u=o.getOtherNode(s),h=r.getOtherNode(s);s.getVec3(t),u.getVec3(e).sub(t).normalize().multiplyScalar(-o.width/2),h.getVec3(i).sub(t).normalize().multiplyScalar(-r.width/2),n.copy(t).add(l).add(e),a.copy(t).add(d).add(i),c.copy(n,a)}})()},30169:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>o,Kq:()=>d,TG:()=>r});var n=i(56147),s=i(941);const a={[s.om]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BALCONY,[s.bA]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BASEMENT,[s.i_]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BATHROOM,[s.Cp]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BEDROOM,[s.xI]:n.A.WORKSHOP.LABEL_SUGGESTIONS.BONUS_ROOM,[s.Wr]:n.A.WORKSHOP.LABEL_SUGGESTIONS.CLOSET,[s.ZQ]:n.A.WORKSHOP.LABEL_SUGGESTIONS.DEN,[s.Xq]:n.A.WORKSHOP.LABEL_SUGGESTIONS.DINING_ROOM,[s.TP]:n.A.WORKSHOP.LABEL_SUGGESTIONS.DRIVEWAY,[s.aU]:n.A.WORKSHOP.LABEL_SUGGESTIONS.ENTRANCE,[s.m1]:n.A.WORKSHOP.LABEL_SUGGESTIONS.EXERCISE_ROOM,[s.Er]:n.A.WORKSHOP.LABEL_SUGGESTIONS.EXTERIOR,[s.eA]:n.A.WORKSHOP.LABEL_SUGGESTIONS.FACADE,[s.SE]:n.A.WORKSHOP.LABEL_SUGGESTIONS.FAMILY_ROOM,[s._1]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GAME_ROOM,[s.vS]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GARAGE,[s.pZ]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GARDEN,[s.Hy]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GREAT_ROOM,[s.FI]:n.A.WORKSHOP.LABEL_SUGGESTIONS.GYM,[s.mg]:n.A.WORKSHOP.LABEL_SUGGESTIONS.HALLWAY,[s.YK]:n.A.WORKSHOP.LABEL_SUGGESTIONS.KITCHEN,[s.lz]:n.A.WORKSHOP.LABEL_SUGGESTIONS.LAUNDRY,[s.LX]:n.A.WORKSHOP.LABEL_SUGGESTIONS.LIBRARY,[s.pl]:n.A.WORKSHOP.LABEL_SUGGESTIONS.LIVING_ROOM,[s.v1]:n.A.WORKSHOP.LABEL_SUGGESTIONS.LOFT,[s.SK]:n.A.WORKSHOP.LABEL_SUGGESTIONS.MEDIA_ROOM,[s.u9]:n.A.WORKSHOP.LABEL_SUGGESTIONS.OFFICE,[s.YV]:n.A.WORKSHOP.LABEL_SUGGESTIONS.OTHER,[s.sC]:n.A.WORKSHOP.LABEL_SUGGESTIONS.PANTRY,[s.ny]:n.A.WORKSHOP.LABEL_SUGGESTIONS.PATIO,[s.QN]:n.A.WORKSHOP.LABEL_SUGGESTIONS.POOL,[s.oV]:n.A.WORKSHOP.LABEL_SUGGESTIONS.SAUNA,[s.V5]:n.A.WORKSHOP.LABEL_SUGGESTIONS.STAIRCASE,[s._6]:n.A.WORKSHOP.LABEL_SUGGESTIONS.UTILITY_ROOM,[s.GC]:n.A.WORKSHOP.LABEL_SUGGESTIONS.VOID,[s.x3]:n.A.WORKSHOP.LABEL_SUGGESTIONS.WORKSHOP_ROOM};function o(e,t,i){const s=t.t(n.A.SHOWCASE.ROOMS.DEFAULT_NAME);return i&&e?i.getRoomLabel(e,s):s}function r(e,t){const{id:i,label:a}=e;if(!i)return a||t.t(n.A.WORKSHOP.LABEL_SUGGESTIONS.OTHER);return i.indexOf(s.NZ)>-1?i.split(s.NZ).map((e=>t.t(l({id:i,label:a})))).join(s.Ae):t.t(l({id:i,label:a}))}function l(e){const{id:t,label:i}=e,s=a[t];return s||(i||n.A.WORKSHOP.LABEL_SUGGESTIONS.OTHER)}function d(e){if(e.length<2)return e;for(const t of s.xt)if(t.length===e.length&&t.every((t=>-1!==e.indexOf(t))))return t.slice();return e}},941:(e,t,i)=>{"use strict";i.d(t,{$h:()=>l,Ae:()=>u,Bg:()=>a,Cp:()=>S,Er:()=>N,FI:()=>D,GC:()=>Y,Hy:()=>M,LX:()=>C,Mg:()=>s,NZ:()=>h,QN:()=>B,RS:()=>o,SE:()=>f,SK:()=>U,TP:()=>A,V5:()=>K,VG:()=>d,Wr:()=>g,Xq:()=>_,YK:()=>k,YV:()=>F,ZQ:()=>T,_1:()=>b,_6:()=>z,aU:()=>v,bA:()=>p,eA:()=>L,i_:()=>E,lD:()=>c,lz:()=>w,m1:()=>I,mg:()=>P,ny:()=>V,oV:()=>W,om:()=>m,pZ:()=>y,pl:()=>x,sC:()=>j,u9:()=>G,v1:()=>H,vS:()=>R,w_:()=>r,x3:()=>$,xI:()=>O,xt:()=>Q});var n=i(53172);const s=6*n.fy,a=6*n.fy,o=.01,r=.05,l=.1,d=.02,c=1.5,u=", ",h="-",m="ge0tcan3iztta5mtgsfx99xpb",p="4by2d70b54srbin43t5m0yh9c",E="ua1m0u8pm3yngrhzwec1ue5zc",S="pnf0xzq61xcegack4iai7xppd",O="y3xuprmywgrprnm0273u3pphd",g="zp189tx2hdrry8k5nhaq5x45d",T="4gp8x21ni4i8y19r9pm4rb35a",_="00258k0mqu8750du151be805c",A="91naa1k3hiim9z4mk8352enta",v="rmu8pikcye0n7n9fsu5e4acda",N="cqig2yw0p8q99t5n02w1kf40b",I="66psa4tqgazbnffr9huy2dnpd",L="4qq4e5hz84hcur7ry87uhtmua",f="mx6e2yfk0tg0zbkbzuw5mhkda",b="0gnuunpwx63dmmqeq64aqfiyd",R="izt39gytcbymc0qtd37nrb7xb",y="ei3kmtun2xpspbg3d5ff3t3zc",M="xwhhz63a0hw735qf81knp63ha",D="ywtddu9hagraxhznwinn8t4zb",P="yeh1aa32fwgm72bh0g92ebruc",k="zgh2304w5anu0t25ia06ytfxd",w="pr9h4zy7eak91f3b7un97u42c",C="gqqw1zac1hzg1p8622ducg3zb",x="w4tdggk5i5u2zpiryugktghgb",H="e6md2spaqemc448pmau3azkhd",U="a11d2gi43h0etwedw0mx9pgwd",G="ag5uphha72sak65qazgsp09yd",F="byp7pz2tmt4ff47nhfx0uwzec",j="2nx6maxxpaeut7kx96fuacdzc",V="n07hhs9gky4cgrh7q65s9rp0d",B="s1h0hb8tpcc9i35dmupknsega",W="gba8cq0s2rdfg1zdb1epwty7d",K="0an2rky24gb91fdnpzmbwadib",z="qa21tqcsinnxde9gdmiphacza",Y="k4ww3sk359ntmwgr8s75hq22a",$="nqw75004dcg2bcr41047rhg6c",Q=[[E,w],[k,_],[k,x],[k,x,_],[x,_]]},99380:(e,t,i)=>{"use strict";i.d(t,{I0:()=>p,K$:()=>b,N5:()=>h,bt:()=>y,eW:()=>u,fZ:()=>A,g6:()=>m,ll:()=>E,mN:()=>S,m_:()=>g,vo:()=>M});var n=i(54664),s=i(8004),a=i(68909),o=i(85626),r=i(53172),l=i(941),d=i(23339),c=i(26348);function u(e,t=!1){if(0===e.length)return 0;const i=e.map((e=>[e.x,e.z]));return i.push(i[0]),(0,n.A)(i,t)}function h(e){return u(e,!0)>0&&e.reverse(),e}function m(e,t){let i=1;return t===d.t.IMPERIAL?e=(0,c.Nd)(e):t===d.t.METRIC&&(i=10),Math.round(e*i)/i}const p=(e,t)=>{const i=e.getCWPoints(),n=i.length,s={edges:[],thickness:[]};for(let e=0;e.01)&&(s.edges.push(i[e]),s.thickness.push(d))}return s},E=(e,t)=>{t.set(e[1].x-e[0].x,e[1].z-e[0].z).normalize();const i=t.x,n=t.y;return t.set(-n,i),t},S=(()=>{const e=new a.Vector2;return(t,i,n)=>(e.subVectors(n,i),t.dot(e))})(),O=(()=>{const e=new a.Vector2,t=new a.Vector2,i=new a.Vector2;return(n,s,a,o)=>(e.subVectors(a,s),t.copy(n).multiplyScalar(n.dot(e)),i.subVectors(e,t),o.addVectors(s,i),o)})(),g=(()=>{const e=new a.Vector2,t=new a.Vector2,i=new a.Vector2,n=new a.Vector2,s=new a.Vector2;return(a,o,r,l)=>{e.subVectors(a[1],a[0]).normalize(),t.subVectors(o[1],o[0]).normalize(),i.subVectors(e,t).normalize();const d=S(i,a[0],a[1]);let c=S(i,a[0],o[0]),u=S(i,a[0],o[1]);if(u{const e=new a.Vector2,t=new a.Vector2,i=Math.cos(5*r.fy);return(n,s,a)=>{e.set(n[1].x-n[0].x,n[1].z-n[0].z).normalize(),t.set(s[1].x-s[0].x,s[1].z-s[0].z).normalize();const o=e.dot(t);return o>=i||a&&o<=-i}})(),_=(()=>{const e=new a.Vector2;return(t,i,n)=>{if(!T(t,i,n))return!1;e.set(-(i[1].z-t[0].z),i[1].x-t[0].x).normalize();return!(Math.abs(S(e,t[0].getVec2(),t[1].getVec2()))>.05)}})(),A=(()=>{const e=new a.Vector2,t=new a.Vector2,i=new a.Vector3,n=new a.Vector2,s=new a.Vector2(0,0),o=[new a.Vector2,new a.Vector2],r=[new a.Vector2,new a.Vector2],l=new a.Vector2,d=new a.Vector2;return(a,c,u,h)=>{let m=Math.atan2(u[1].y-u[0].y,u[1].x-u[0].x);m<0&&(m+=2*Math.PI),m%=Math.PI/2;let p=Math.atan2(c[1].y-c[0].y,c[1].x-c[0].x);m<0&&(m+=Math.PI/2),p%=Math.PI/2,Math.abs(p-Math.PI/2-m){const e=new a.Vector2,t=new a.Vector2;return(i,n,s,a)=>{e.subVectors(i[1],i[0]).normalize(),t.subVectors(n[1],n[0]).normalize(),Math.abs(e.y)>Math.abs(t.y)?(s.x=Math.min(n[0].x,n[1].x),a.x=Math.max(n[0].x,n[1].x),s.y=Math.min(i[0].y,i[1].y),a.y=Math.max(i[0].y,i[1].y)):(s.x=Math.min(i[0].x,i[1].x),a.x=Math.max(i[0].x,i[1].x),s.y=Math.min(n[0].y,n[1].y),a.y=Math.max(n[0].y,n[1].y))}})();function N(e){const t=e[1].x-e[0].x,i=e[1].y-e[0].y;return t>0&&i>0?t*i:0}function I(e,t){return N([L(e[0],t[0],new a.Vector2),f(e[1],t[1],new a.Vector2)])}function L(e,t,i){return i.set(Math.max(e.x,t.x),Math.max(e.y,t.y))}function f(e,t,i){return i.set(Math.min(e.x,t.x),Math.min(e.y,t.y))}const b=(()=>{const e=6*r.fy,t=new a.Vector3,i=new a.Vector3;return(n,s,a,o,r,l)=>{const d=n[s],c=n[(s+1)%n.length],u=r.getWallForNodes(d.id,c.id).getEdgeWidth(d,c),h=a?(s+1)%n.length:s,m=(h+1)%n.length,p=(h+n.length-1)%n.length;let E,S;if(o?(E=r.getWallForNodes(n[h].id,n[p].id).getEdgeNormal(n[h],n[p]),S=r.getWallForNodes(n[m].id,n[h].id).getEdgeNormal(n[m],n[h])):(E=r.getWallForNodes(n[p].id,n[h].id).getEdgeNormal(n[p],n[h]),S=r.getWallForNodes(n[h].id,n[m].id).getEdgeNormal(n[h],n[m])),t.copy(a?E:S),E.dot(S)>Math.cos(Math.PI-e)){i.addVectors(E,S).normalize();const e=i.dot(E);Math.abs(e)>1e-6&&(i.multiplyScalar(1/e),t.copy(i))}n[h].getVec3(l).addScaledVector(t,u)}})();function R(e){return`room-${e}`}function y(e){const t=l.YV;return 0===e.length?R(t):e.length>1?R("multi-use"):o.R.includes(R(e[0]))?R(e[0]):R(t)}function M(e,t){const[[i,n],[a,o]]=e,[[r,l],[d,c]]=t,u=((0,s.kW)(e[0],t)?1:0)+((0,s.kW)(e[1],t)?1:0)+((0,s.kW)(t[0],e)?1:0)+((0,s.kW)(t[1],e)?1:0),h=(c-l)*(a-i)-(d-r)*(o-n);if(Math.abs(h)<1e-4)return u>2;const m=n-l,p=i-r,E=((d-r)*m-(c-l)*p)/h,S=((a-i)*m-(o-n)*p)/h,O=1e-8,g=.99999999;return E>O&&EO&&S{"use strict";i.d(t,{B:()=>l});var n=i(84710),s=i(92788),a=i(52030),o=i(27947),r=i(73566);class l extends n.B{constructor(e,t,i){super(),this.data=e,this.applicationData=t,this.toolsData=i,this.name="room-bound-view-data",this.roomBoundsVisible=!1,this._roomNamesVisible=a.vs,this._roomWallsVisible=a.vs,this._roomDimensionsVisible=a.vs,this._forceRoomDimensionVisibility=!1,this.applicationData.onChanged((()=>{this.commit()})),this.toolsData.onPropertyChanged("activeToolName",(()=>{this.commit()}))}getSelectedRoom(e){if(!e)return null;const t=this.data.getEntity(e);return t instanceof s.pQ?t:null}setRoomBoundVisible(e){this.roomBoundsVisible=e,this.commit()}get roomNamesVisible(){return this.applicationData.application!==o.lg.SHOWCASE&&(this.applicationData.application!==o.lg.WORKSHOP||this.toolsData.activeToolName!==r.S0.MEASUREMENTS)||this._roomNamesVisible}toggleRoomNamesVisible(){this._roomNamesVisible=!this._roomNamesVisible,this.commit()}get roomWallsVisible(){return this.applicationData.application!==o.lg.SHOWCASE&&(this.applicationData.application!==o.lg.WORKSHOP||this.toolsData.activeToolName!==r.S0.MEASUREMENTS)||this._roomWallsVisible}toggleRoomWallsVisible(){this._roomWallsVisible=!this._roomWallsVisible,this.commit()}get roomDimensionsVisible(){return this._roomDimensionsVisible&&(this.toolsData.activeToolName===r.S0.MEASUREMENTS||this.toolsData.activeToolName===r.S0.ROOM_BOUNDS)||this._forceRoomDimensionVisibility}get visibleInShowcase(){return this.roomNamesVisible||this.roomDimensionsVisible||this.roomWallsVisible}toggleRoomDimensionsVisible(){this._roomDimensionsVisible=!this._roomDimensionsVisible,this.commit()}forceRoomDimensionVisibility(e){this._forceRoomDimensionVisibility=e,this.commit()}}},42967:(e,t,i)=>{"use strict";i.d(t,{l:()=>I});var n=i(74848),s=i(96540),a=i(56147),o=i(39869),r=i(17904),l=i(22044),d=i(43718),c=i(99325),u=i(56209),h=i(88487),m=(i(17240),i(41519)),p=i(45832),E=i(95330),S=i(48411),O=i(73566),g=i(11180),T=i(88581),_=i(2993),A=i(68375);const{ROOMS:v}=a.A.SHOWCASE,N=new E.L(!0);function I(e){const t=(0,o.Y)(),i=t.t(v.ROOM_BOUNDS_TOGGLES_TITLE),a=(0,A.s)(),{allowImageryToggle:E}=e,I=(0,d.v)(),L=(0,m.g)(),f=(0,r.S)(p.GR),b=function(){var e,t;const i=(0,r.S)(p.GR);return(0,l.A)(null!==(t=null===(e=null==i?void 0:i.getMeshGroupVisuals())||void 0===e?void 0:e.allFloorsVisibleInOrtho)&&void 0!==t?t:N)}(),{roomNamesVisible:R,roomDimensionsVisible:y,roomWallsVisible:M}=(0,c.W)(),D=(0,S.T)(),P=(0,g.x)(),k=(0,T.o)(),w=(0,s.useCallback)((()=>{var e;const t=!b,i=null===(e=null==f?void 0:f.getMeshGroupVisuals())||void 0===e?void 0:e.allFloorsVisibleInOrtho;i&&(i.value=t),t||M||null==L||L.toggleRoomWallsVisible(),a.trackToolGuiEvent("rooms","room_imagery_showcase_toggle_"+(b?"off":"on"))}),[a,f,b,L,M]);if(!I||!L||!f)return null;const C=D&&D===O.S0.MEASUREMENTS,x=t.t(v.ROOM_BOUNDS_WALL_TOGGLE_LABEL),H=t.t(v.ROOM_BOUNDS_ROOM_TOGGLE_LABEL),U=t.t(v.ROOM_BOUNDS_DIMENSION_TOGGLE_LABEL),G=t.t(v.ROOM_BOUNDS_MODEL_TOGGLE_LABEL),F=b,j=!(0,_.nI)(P),V=j&&!(null==k?void 0:k.isFloorplanDisabled()),B=j,W=E&&V;return(0,n.jsxs)("div",{children:[(0,n.jsx)("div",Object.assign({className:"floorplan-overlay-title"},{children:i})),(0,n.jsxs)(h.t,Object.assign({className:"floorplan-overlay-tooltip"},{children:[V&&(0,n.jsx)(u.A,{onToggle:()=>{L.toggleRoomWallsVisible(),a.trackToolGuiEvent("rooms","room_walls_showcase_toggle_"+(M?"off":"on"))},toggled:M,label:x,enabled:F}),B&&(0,n.jsx)(u.A,{onToggle:()=>{L.toggleRoomNamesVisible(),a.trackToolGuiEvent("rooms","room_names_showcase_toggle_"+(R?"off":"on"))},toggled:R,label:H,enabled:!0}),C&&(0,n.jsx)(u.A,{onToggle:()=>{L.toggleRoomDimensionsVisible(),a.trackToolGuiEvent("rooms","room_dimensions_showcase_toggle_"+(y?"off":"on"))},toggled:y,label:U,enabled:!0}),W&&(0,n.jsx)(u.A,{onToggle:w,toggled:b,label:G,enabled:!0})]}))]})}},43718:(e,t,i)=>{"use strict";i.d(t,{v:()=>d});var n=i(56208),s=i(50659),a=i(5262),o=i(41519),r=i(86e3),l=i(27947);function d(){const e=(0,s.N)(),t=(0,r.F)()===l.lg.WORKSHOP,i=(0,a.i)(n.Q$.RoomBounds,!1)||t,d=(0,o.g)();return e.length>0&&i&&!!d}},41519:(e,t,i)=>{"use strict";i.d(t,{g:()=>a});var n=i(71555),s=i(68387);const a=(0,n.v)(s.B)},99325:(e,t,i)=>{"use strict";i.d(t,{W:()=>o});var n=i(96540),s=i(41519);const a=e=>{var t,i,n;return{roomDimensionsVisible:null===(t=null==e?void 0:e.roomDimensionsVisible)||void 0===t||t,roomNamesVisible:null===(i=null==e?void 0:e.roomNamesVisible)||void 0===i||i,roomWallsVisible:null===(n=null==e?void 0:e.roomWallsVisible)||void 0===n||n}},o=()=>{const e=(0,s.g)(),[t,i]=(0,n.useState)(a(e));return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=()=>i(a(e)),n=e.onChanged(t);return t(),()=>{n.cancel()}}),[e]),t}},52030:(e,t,i)=>{"use strict";i.d(t,{AU:()=>a,VS:()=>s,vs:()=>n});const n=!0,s="features/pie-1.1-ceilings",a="features/pie-gross-floor-area"},50485:(e,t,i)=>{"use strict";i.d(t,{q:()=>a});var n=i(84710),s=i(95330);class a extends n.B{constructor(e){if(super(),this.name="rooms",this.selected=new s.L(null),this._rooms={},this.floorToRoomsMap=new Map,e)for(const t of Object.values(e))this.add(t)}add(e){this._rooms[e.id]=e;const t=this.floorToRoomsMap.get(e.floorId);t?t.push(e):this.floorToRoomsMap.set(e.floorId,[e])}remove(e){const t=this.get(e);if(!t)return;const i=this.floorToRoomsMap.get(t.floorId);if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}delete this._rooms[e]}rooms(){const e=this._rooms,t=Object.keys(this._rooms);return function*(){for(const i of t)yield e[i]}()}get roomCount(){return Object.keys(this._rooms).length}get collection(){return this._rooms}getAllRooms(){return Object.values(this.floorToRoomsMap)}get(e){return this._rooms[e]}getByMeshSubgroup(e){return Object.values(this._rooms).find((t=>t.meshSubgroup===e))}roomsByFloor(e){return this.floorToRoomsMap.get(e)||[]}getRoomIdMap(e,t){const i={};for(const n of Object.values(this._rooms)){const s=e.getFloor(n.floorId),a=s?String((s.index<<16)+n.meshSubgroup):"",o=n.id;""===a?console.warn("[WARNING getRoomIdMap]: mapping between room IDs was incomplete!"):t?i[a]=o:i[o]=a}return i}}},91779:(e,t,i)=>{"use strict";i.d(t,{q:()=>c,t:()=>d});var n=i(68909),s=i(3531),a=i(10843),o=i(10032);const r=["FontLoader","Font","ParametricGeometry","TextGeometry"],l=new a.Ay("three-globals"),d=function(e,t){n.DefaultLoadingManager.addHandler(/\.tga$/i,new s.TGALoader(o.A)),n.DefaultLoadingManager.addHandler(/\.jpe?g$/i,e()),n.DefaultLoadingManager.addHandler(/\.png$/i,t()),n.Cache.enabled=!0},c=async function(){const{modules:e}=await Promise.all([i.e(7888),i.e(8287),i.e(3153),i.e(5e3),i.e(7209),i.e(6888),i.e(239)]).then(i.bind(i,76306));for(const t of e){const e=Object.keys(t);for(const i of e){const e=t[i],s=n;if(i in s)if("object"==typeof e)for(const t in e)t in s[i]||(s[i][t]=e[t]);else"function"==typeof e&&(!(i in s)||r.includes(i)?s[i]=e:l.debug(`"${i}" exists in THREE object but has not been listed as overrideable, skipping...`));else s[i]=e}}}},78849:(e,t,i)=>{"use strict";i.d(t,{L:()=>l});var n=i(84710),s=i(12554),a=i(56413),o=i(93877),r=i(93369);class l extends n.B{constructor(){super(...arguments),this.searchMode=!1,this.query="",this.typeFilters=(0,s.Z)(),this.keywordFilters=(0,s.Z)(),this.grouping=l.defaultGrouping,this.results=(0,a.y)(),this.dataTypeGroups={},this.keywordCounts=(0,a.y)({}),this.activeItemId=null,this.selectedType=null}getSearchDataTypeList(){return Object.values(this.dataTypeGroups)}getSearchDataTypeGroup(e){return this.dataTypeGroups[e]}getQuery(){return this.query}getTypeFilters(){return this.typeFilters.values()}setTypeFilters(e){this.typeFilters.replace(e)}setTypeFilter(e){this.setTypeFilters([e])}clearTypeFilters(){this.getTypeFilters().length>0&&this.typeFilters.replace([])}toggleSearchFilter(e,t){t?this.typeFilters.push(e):this.typeFilters.remove(this.typeFilters.indexOf(e))}hasActiveQuery(){return""!==this.query||this.keywordFilters.length>0}setQuery(e){this.query=e}getKeywordFilters(){return this.keywordFilters.values()}setKeywordFilters(e){this.keywordFilters.replace(e)}setKeywordCounts(e){this.keywordCounts.replace(e)}getKeywordSummaries(){const e={};return this.getKeywordFilters().forEach((t=>{e[t]={id:t,text:t,count:0,isSelected:!0}})),this.keywordCounts.keys.forEach((t=>{const i=this.keywordCounts.get(t);e[t]?e[t].count=i:e[t]={id:t,text:t,count:i,isSelected:!1}})),Object.values(e)}hasSearchResultItem(e){const t=(0,r.u)(e);return this.results.has(t)}getSearchResultItem(e){const t=(0,r.u)(e);return this.results.get(t)}getResultsMap(){return this.results}getResults(){return this.results.values}onSearchResultsChanged(e){return this.results.onChanged(e)}setResults(e){this.getResults().forEach((e=>e.cancelBindings()));const t=e.reduce(((e,t)=>(e[(0,r.u)(t)]=t,t.registerBindings(),e)),{});this.atomic((()=>{this.results.replace(t)}))}}l.defaultGrouping=o.Hj.TYPE},79723:(e,t,i)=>{"use strict";i.d(t,{W:()=>a});var n=i(56208);const s="search";function a(e){const t=e.tryGetProperty(n.Q$.SpaceSearch,0),i=e.getOverrideParam(s,1);return t&&!(0===i)}},95143:(e,t,i)=>{"use strict";i.d(t,{A_:()=>l,S8:()=>n,x8:()=>r});const n=["",""],s=20;function a(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function o(e,t){const[i,s]=n,o=`${i}|${s}`;let r=!1;if(e.match(new RegExp(o))&&(e=e.replace(new RegExp(`(${o})`,"g"),((e,t)=>t.split("").join("‌"))),r=!0),t){let n;n=r?t.split("").map(a).join("[‌]?"):a(t),e=e.replace(new RegExp(`(${n})`,"gi"),((e,t)=>`${i}${t}${s}`))}return e}const r=o;function l(e,t){const i=function(e,t){var i;const n=e.toLowerCase(),[o,r,l]=[n.indexOf(t),e.length,(null===(i=n.match(new RegExp(`${a(t)}`,"g")))||void 0===i?void 0:i.length)||1];let d=e,c=o;if(r>s&&c>0){if(1===l){const e=Math.floor((s-t.length)/2);e>0&&c>e&&(c-=e)}d=`...${d.substr(c)}`,d.length0&&(d=`...${e.substr(c)}`))}return d}(e,t);return o(i,t)}},95072:(e,t,i)=>{"use strict";i.d(t,{X$:()=>n,aJ:()=>s,bo:()=>a});const n=75,s=50,a=50},93369:(e,t,i)=>{"use strict";i.d(t,{E:()=>a,u:()=>o});var n=i(93877),s=i(95072);function a(e,t,i){var a;switch(i){case n.Hj.TYPE:return(null===(a=null==e?void 0:e.dataTypeGroups[t])||void 0===a?void 0:a.groupOrder)||s.X$;case n.Hj.FLOOR:return s.bo;case n.Hj.LAYER:return s.aJ}return-1}function o(e){return`${e.id}-${e.typeId}`}},31403:(e,t,i)=>{"use strict";i.r(t),i.d(t,{BoxVolume:()=>M.M,CylinderVolume:()=>D.z,SensorModule:()=>y,SourceType:()=>w,SphereVolume:()=>P.I,default:()=>k});var n=i(75578),s=i(45832),a=i(46771),o=i(81662),r=i(68909);class l{constructor(){this.needsUpdate=!0}notify(){this.needsUpdate=!0}}var d=i(27429);class c{constructor(e){this.observable=new d.y,this.notifier=new class{constructor(e){this.sensorObservable=e}notify(){this.sensorObservable.observable.notify()}}(this),this.dependencySub=e.sub(this.notifier)}dispose(){this.dependencySub.cancel()}observe(e){return this.observable.observe(e)}}class u{constructor(e){this.cameraData=e,this._forward=new r.Vector3,this.frustum=new r.Frustum,this.frustumTransform=new a.k,this.frustumProjection=new a.k,this.forwardObserver=new l,this.frustumObserver=new l,this.frustumObservable=new c(new h(e)),this.frustumObservable.observe(this.forwardObserver),this.frustumObservable.observe(this.frustumObserver)}dispose(){this.frustumObservable.dispose()}get fovx(){return this.cameraData.fovX()}get fovy(){return this.cameraData.fovY()}get forward(){return this.forwardObserver.needsUpdate&&(this.forwardObserver.needsUpdate=!1,this._forward.copy(o.B1.FORWARD),this._forward.applyQuaternion(this.cameraData.pose.rotation)),this._forward}observe(e){return this.frustumObservable.observe(e)}get origin(){return this.cameraData.pose.position}containsPoint(e){return this.updateVolume(),this.frustum.containsPoint(e)}updateVolume(){if(this.frustumObserver.needsUpdate){this.frustumObserver.needsUpdate=!1;const e=this.cameraData.pose;this.frustumTransform.compose(e.position,e.rotation,o.B1.UNIT).getInverse(this.frustumTransform),this.frustumProjection.copy(this.cameraData.pose.projection),this.frustum.setFromProjectionMatrix(this.frustumTransform.multiplyMatrices(this.frustumProjection,this.frustumTransform).asThreeMatrix4())}}}class h{constructor(e){this.cameraData=e}sub(e){return this.cameraData.onChanged((()=>e.notify()))}}var m=i(20599);class p{constructor(){this.sensors=new Set}addSensor(e){this.sensors.add(e)}removeSensor(e){this.sensors.delete(e)}update(){for(const e of this.sensors)e.update()}}class E{constructor(e,t,i){this.frustum=e,this.raycaster=t,this.sensorDisposer=i,this.volumeObserver=new l,this.sources=new Set,this.dirtySources=new Set,this.sourceWatchers=new Map,this.readingsCache=new Map,this.readingObservable=new d.y,this.raycastDirection=new r.Vector3,this.volumeSub=e.observe(this.volumeObserver)}get origin(){return this.frustum.origin}dispose(){this.volumeSub.cancel(),this.sensorDisposer.disposeSensor(this)}addSource(...e){for(const t of e)this.sources.add(t),this.dirtySources.add(t),this.sourceWatchers.set(t,new S(this.dirtySources,t))}get readings(){return this.readingsCache}update(){this.volumeObserver.needsUpdate?(this.volumeObserver.needsUpdate=!1,this.recomputeAllReadings(),this.readingObservable.notify()):this.dirtySources.size>0&&(this.recomputeDirtyReadings(),this.readingObservable.notify())}recomputeAllReadings(){for(const e of this.sources)this.recomputeReading(e);this.dirtySources.clear()}recomputeDirtyReadings(){for(const e of this.dirtySources)this.recomputeReading(e);this.dirtySources.clear()}recomputeReading(e){this.raycastDirection.copy(e.origin).sub(this.frustum.origin).normalize();const t=this.frustum.origin.distanceToSquared(e.origin),i=this.readingsCache.get(e)||{direction:new r.Vector3};i.inRange=function(e,t){return t.volume.containsPoint(e.origin)}(this,e),i.inView=i.inRange&&this.frustum.containsPoint(e.origin)&&!function(e,t){return!!t&&e>t.distance**2}(t,this.raycaster.picking.pick(this.frustum.origin,this.raycastDirection)),i.direction.copy(this.raycastDirection),i.distanceSq=t,this.readingsCache.set(e,i)}onReadingsUpdated(e){return this.readingObservable.observe(e)}}class S{constructor(e,t){this.sub=t.volume.observe({notify(){e.add(t)}})}dispose(){this.sub.cancel()}}var O=i(81544),g=i(31002),T=i(23184);const _=(e,t)=>e.type===w.BOX?v(t):e.type===w.CYLINDER?function(e){const t=new r.CylinderGeometry(.5,.5,1);t.translate(0,.5,0);const i=new r.Mesh(t,new r.MeshBasicMaterial);i.scale.set(.05,.1,.05);const n=new r.MeshBasicMaterial({transparent:!0,opacity:.1,side:r.DoubleSide,depthWrite:!1}),s=new r.Mesh(t,new r.MeshBasicMaterial({wireframe:!0})),a=new r.Mesh(t,n);return a.add(s),e.add(i),e.add(a),{interactionMesh:i,volumeMesh:a,dispose(){e.remove(i),e.remove(a),i.geometry.dispose(),i.material.dispose(),a.geometry.dispose(),a.material.dispose(),s.geometry.dispose(),s.material.dispose()},setColor(e){a.material.color.setHex(e),s.material.color.setHex(e)}}}(t):A(t),A=e=>{const t=new r.SphereGeometry(1,20,20),i=new r.Mesh(t,new r.MeshBasicMaterial);i.scale.set(.5,.5,.5);const n=new r.Mesh(t,new r.MeshBasicMaterial({wireframe:!0})),s=new r.Mesh(t,new r.MeshBasicMaterial({transparent:!0,opacity:.1,side:r.DoubleSide,depthWrite:!1}));return s.add(n),e.add(i),e.add(s),{interactionMesh:i,volumeMesh:s,dispose:()=>{e.remove(i),e.remove(s),i.geometry.dispose(),i.material.dispose(),s.geometry.dispose(),s.material.dispose(),n.geometry.dispose(),n.material.dispose()},setColor:e=>{s.material.color.setHex(e),n.material.color.setHex(e)}}},v=e=>{const t=new r.BoxGeometry(1,1,1),i=new r.Mesh(t,new r.MeshBasicMaterial);i.scale.set(.1,.1,.1);const n=new r.MeshBasicMaterial({transparent:!0,opacity:.1,side:r.DoubleSide,depthWrite:!1}),s=new r.Mesh(t,n),a=new r.LineSegments(new r.EdgesGeometry(t),new r.LineBasicMaterial);return s.add(a),e.add(i),e.add(s),{interactionMesh:i,volumeMesh:s,dispose:()=>{e.remove(i),e.remove(s),i.geometry.dispose(),i.material.dispose(),s.geometry.dispose(),s.material.dispose(),a.geometry.dispose(),a.material.dispose()},setColor:e=>{s.material.color.setHex(e),a.material.color.setHex(e)}}};var N=i(38069);const I=e=>{if(e.type===w.BOX){const t=e;return Object.assign({},t.volume.size)}if(e.type===w.CYLINDER){const t=e;return{x:t.volume.radius,y:t.volume.height,z:t.volume.radius}}{const t=e.volume.radius;return{x:t,y:t,z:t}}},L=(new r.Quaternion).identity();function f(e){if(e.type===w.BOX){return e.volume.orientation}return L}class b{constructor(e,t,i){this.source=e,this.scene=t,this.inputIni=i,this.subs=[],this.stickyHover=!1,this.sourceDirty=!0,this.meshes=_(e,this.scene.scene),this.meshes.interactionMesh.scale.set(.1,.1,.1),this.meshes.interactionMesh.position.copy(this.source.origin),this.meshes.interactionMesh.material.color.copy(N.V.MP_BRAND),this.meshes.volumeMesh.scale.set(0,0,0),this.meshes.volumeMesh.position.copy(this.source.origin),this.meshes.volumeMesh.visible=!1;const n=f(e);this.meshes.volumeMesh.quaternion.copy(n);this.mixer=new r.AnimationMixer(this.meshes.volumeMesh);const s=I(e),a=new r.VectorKeyframeTrack(".scale",[0,.4],[0,0,0,s.x,s.y,s.z],r.InterpolateSmooth),o=new r.AnimationClip(void 0,.4,[a]);this.onHoverAction=this.mixer.clipAction(o),this.onHoverAction.clampWhenFinished=!0,this.onHoverAction.loop=r.LoopOnce;const l=()=>{const e=this.onHoverAction.time;this.onHoverAction.reset(),this.meshes.volumeMesh.visible=!0,this.onHoverAction.timeScale=1,this.onHoverAction.time=e,this.onHoverAction.play()},d=()=>{this.stickyHover=!this.stickyHover,this.stickyHover?this.meshes.interactionMesh.material.color.copy(N.V.LENS_GRAY):this.meshes.interactionMesh.material.color.copy(N.V.MP_BRAND)};this.subs.push(this.inputIni.registerMeshHandler(O.L,T.f.isValue(this.meshes.interactionMesh),l)),this.subs.push(this.inputIni.registerMeshHandler(O.q,T.f.isValue(this.meshes.interactionMesh),(()=>{if(!this.stickyHover){const e=this.onHoverAction.time;this.onHoverAction.reset(),this.onHoverAction.time=e,this.onHoverAction.timeScale=-1,this.onHoverAction.play()}}))),this.subs.push(this.inputIni.registerMeshHandler(g.rX,T.f.isValue(this.meshes.interactionMesh),d)),this.inputIni.registerMesh(this.meshes.interactionMesh,!1),l(),d(),this.subs.push(e.volume.observe(this))}notify(){this.sourceDirty=!0}update(e,t){if(this.sourceDirty){this.sourceDirty=!1,this.meshes.interactionMesh.position.copy(this.source.origin),this.meshes.volumeMesh.position.copy(this.source.origin),this.meshes.volumeMesh.quaternion.copy(f(this.source));const e=I(this.source),t=this.onHoverAction.getClip().tracks[0].values;t[3]=e.x,t[4]=e.y,t[5]=e.z}this.meshes.setColor(t.inRange?65280:16711680),this.mixer.update(e/1e3)}dispose(){this.meshes.dispose(),this.mixer.stopAllAction();for(const e of this.subs)e.cancel()}}class R{constructor(e,t,i){this.sensor=e,this.scene=t,this.inputIni=i,this.subs=[],this.visuals=new Map}init(){this.subs.push(this.sensor.onReadingsUpdated(this))}render(e){for(const[t,i]of this.sensor.readings){let n=this.visuals.get(t);n||(n=new b(t,this.scene,this.inputIni),this.visuals.set(t,n)),n.update(e,i)}}dispose(){}activate(){}deactivate(){for(const e of this.subs)e.cancel();for(const e of this.visuals.values())e.dispose();this.visuals.clear()}notify(){}}class y extends n.n{constructor(){super(...arguments),this.name="sensor-module",this.sensorUpdater=new p,this.debugSensor=null,this.sensorDisposer=new class{constructor(e){this.sensors=e}disposeSensor(e){this.sensors.removeSensor(e)}}(this)}async init(e,t){[this.cameraData,this.raycaster,this.renderer,this.inputIni]=await Promise.all([await t.market.waitForData(m.M),await t.getModuleBySymbol(s.sA),await t.getModuleBySymbol(s.M7),await t.getModuleBySymbol(s.mL)]),this.cameraVolume=new u(this.cameraData);var i,n,a,o;this.sensorDebuggerFactory=(i=e=>{t.addComponent(this,e)},n=e=>{t.removeComponent(this,e)},a=this.renderer.getScene(),o=this.inputIni,e=>{const t=new R(e,a,o);return i(t),{dispose:()=>{n(t)}}})}dispose(){this.cameraVolume.dispose()}createSensor(e){const t=new E(e,this.raycaster,this.sensorDisposer);return this.sensorUpdater.addSensor(t),t}createCameraBoundSensor(){return this.createSensor(this.cameraVolume)}setDebugSensor(e){this.debugSensor&&(this.debugSensor.dispose(),this.debugSensor=null),e&&(this.debugSensor=this.sensorDebuggerFactory(e))}onUpdate(){this.sensorUpdater.update()}removeSensor(e){this.sensorUpdater.removeSensor(e)}}var M=i(29543),D=i(39634),P=i(41369);const k=y;var w;!function(e){e.SPHERE="sourcetype.sphere",e.BOX="sourcetype.box",e.CYLINDER="sourcetype.cylinder"}(w||(w={}))},29543:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var n=i(68909),s=i(27429);class a extends s.y{constructor(){super(),this.box=new n.Box3,this.center=new n.Vector3,this.size=new n.Vector3(1/0,1/0,1/0),this.orientation=new n.Quaternion,this.inverseOrientation=new n.Quaternion,this.pointCache=new n.Vector3,this.transformNeedsUpdate=!1,this.box.setFromCenterAndSize(this.center,this.size)}get origin(){return this.center}updateCenter(e){this.center.copy(e),this.box.setFromCenterAndSize(this.center,this.size),this.transformNeedsUpdate=!0}updateDimensions(e){this.size.copy(e),this.box.setFromCenterAndSize(this.center,this.size)}updateOrientation(e){this.orientation.copy(e),this.transformNeedsUpdate=!0}containsPoint(e){return this.transformNeedsUpdate&&(this.transformNeedsUpdate=!1,this.inverseOrientation.copy(this.orientation).invert()),this.pointCache.copy(e).sub(this.center),this.pointCache.applyQuaternion(this.orientation),this.pointCache.add(this.center),this.box.containsPoint(this.pointCache)}}},39634:(e,t,i)=>{"use strict";i.d(t,{z:()=>a});var n=i(68909),s=i(27429);class a extends s.y{constructor(){super(...arguments),this._basePoint=new n.Vector3,this._height=1/0,this._radius=1/0,this.pointCache=new n.Vector3}get origin(){return this._basePoint}get basePoint(){return this._basePoint}get height(){return this._height}get radius(){return this._radius}updateBasePoint(e){this.basePoint.set(e.x,e.y,e.z)}updateHeight(e){this._height=e}updateRadius(e){this._radius=e}containsPoint(e){return this.pointCache.set(e.x,this._basePoint.y,e.z),this._basePoint.distanceToSquared(this.pointCache)<=this.radius**2&&this._basePoint.y<=e.y&&e.y<=this._basePoint.y+this.height}}},41369:(e,t,i)=>{"use strict";i.d(t,{I:()=>a});var n=i(68909),s=i(27429);class a extends s.y{constructor(){super(...arguments),this.origin=new n.Vector3,this.radius=1/0}updateRadius(e){this.radius=e}updateOrigin(e){this.origin.copy(e)}containsPoint(e){return this.origin.distanceToSquared(e)<=this.radius**2}}},66416:(e,t,i)=>{"use strict";var n;i.d(t,{X:()=>n}),function(e){e.USER="user",e.PANORAMA="panorama",e.UNALIGNED="unaligned",e.AUTO="auto",e.TOUR="tour"}(n||(n={}))},97696:(e,t,i)=>{"use strict";i.d(t,{PN:()=>r,nF:()=>l});var n=i(48539),s=i(66416),a=i(2993),o=i(19968);s.X.PANORAMA,s.X.TOUR,s.X.USER;const r=(e,t)=>{const i=e.name||(0,n.Rt)(e.created),s=t.name||(0,n.Rt)(t.created);return i.localeCompare(s)},l=(e,t,i)=>{var n;let s=null!==(n=i.currentMode)&&void 0!==n?n:a.N3.Panorama;const r=e.pose.position.clone();return(0,a.nI)(s)||((0,o.aY)(e.pose.pitchFactor())?(s=a.N3.Floorplan,r.y=e.pose.fovCorrectedFocalDistance()+t.getFloorMin()):s=a.N3.Dollhouse),{position:r,viewmode:s}}},95386:(e,t,i)=>{"use strict";i.d(t,{P:()=>n});class n{static get hasPassword(){const{model:e}=window.MP_PREFETCHED_MODELDATA||{};return e&&e.has_public_access_password}static get modelErrorCode(){var e,t;return null===(t=null===(e=window.MP_PREFETCHED_MODELDATA)||void 0===e?void 0:e.model)||void 0===t?void 0:t.error_code}static getQuery(e){var t,i,n;const s=(null===(t=window.MP_PREFETCHED_MODELDATA)||void 0===t?void 0:t.queries)||{};if("GetModelPrefetch"===e){const t=s[e];if(!t)return;const a=null===(i=t.data)||void 0===i?void 0:i.model;if(!a)return;if(!(null===(n=a.locations)||void 0===n?void 0:n.length))return;return t}return s[e]}static getQueryErrors(e){var t,i,n;return null===(n=null===(i=null===(t=window.MP_PREFETCHED_MODELDATA)||void 0===t?void 0:t.queries)||void 0===i?void 0:i[e])||void 0===n?void 0:n.errors}static get config(){var e;return null===(e=window.MP_PREFETCHED_MODELDATA)||void 0===e?void 0:e.config}}},47840:(e,t,i)=>{"use strict";i.d(t,{B:()=>l});var n=i(53631),s=i(99625),a=i(10843),o=i(75027);const r=new a.Ay("PrefetchedQueryCache");class l{constructor(e){const{initialData:t,baseUrl:i,mdsContext:a}=e;this.client=new n.t({baseUrl:i,mdsContext:a}),this.config=e,t?(this.data=t,this.initialLoadPromise=Promise.resolve(this.data),this.fixVariablesForDefaultViewIdIfNeeded()):e.prefetchPolicy===s.G.PRELOAD&&this.preload()}async read(e,t,i={}){const{prefetchKey:n,prefetchPolicy:a=this.config.prefetchPolicy}=i;if(!n||a===s.G.NONE)return;if((null==t?void 0:t.modelId)&&(null==t?void 0:t.modelId)!==this.config.variables.modelId)return;a===s.G.PRELOAD&&void 0===this.data&&await this.preload();const o=this.has(n);return r.debug(`Cache ${o?"hit":"miss"} for ${n}`),o?this.data:void 0}clear(){this.data=void 0,this.preloadPromise=void 0}async preload(){var e;return null!==(e=this.preloadPromise)&&void 0!==e?e:this.preloadPromise=(async()=>{const{query:e,variables:t,anonymous:i}=this.config;try{return this.initialLoadPromise=this.client.query(e,t,{anonymous:i}),this.data=await this.initialLoadPromise,this.fixVariablesForDefaultViewIdIfNeeded(),!0}catch(e){return r.info(e),this.data={},!1}})()}has(e){return void 0!==(0,o.L)(this.data,e)}fixVariablesForDefaultViewIdIfNeeded(){const e=(0,o.L)(this.data,"data.model.id"),t=(0,o.L)(this.config,"variables.modelId");void 0!==this.data&&void 0!==e&&void 0!==t&&e!==t&&(r.debug(`Updating cache modelId from it's initial value ${t} to the value returned by platform ${e}`),this.config.variables.modelId=e)}}},45548:(e,t,i)=>{"use strict";i.d(t,{DI:()=>s,ft:()=>o,xi:()=>a,xt:()=>r});var n=i(89103);class s extends n.QB{constructor(e){super(),this.dataTypes=e}}class a extends n.QB{constructor(e,t=[]){super(),this.error=e,this.dataTypes=t}}class o extends n.QB{constructor(e,t=[]){super(),this.error=e,this.dataTypes=t}}class r extends n.QB{constructor(e,t=[]){super(),this.error=e,this.dataTypes=t}}},3645:(e,t,i)=>{"use strict";i.d(t,{An:()=>a,Z1:()=>o,ZZ:()=>d,jg:()=>n,nt:()=>s,oZ:()=>c,td:()=>l,x$:()=>r});const n="subscriber_prompt",s="subscriber-prompt-active",a="subscriber-prompt-active",o=Object.freeze({popupDelay:14500,popupEnabled:!1,bannerEnabled:!1,domainDenylist:["ea4141d5b45bcfce5ac984955a7df9f74b323182","500ef59c0e9bd523a5e102d4b229b85df4c008c2","55d9b1786668eb25ce174aa06d46535054046935","44a68fb615814e263894da681018ed5687527b75","750514616c13561e878f04cd38cedc4bd3028f60","633e98d1f7cf36879e21d642068af2196d67a229","2566065b5d698efd82a16854185501ee2ea8eae6"]}),r={enabled:"spEnabled",forceBanner:"spBanner",forcePopup:"spPopup",forcePolicy:"spPolicy",forceReferrer:"spReferrer"},l="spaces.visitor.subscriber.prompt",d="mp/subscriber-prompt-dismissed",c="https://matterport.page.link/v2s-download"},60818:(e,t,i)=>{"use strict";i.d(t,{r:()=>n});const n=new(i(10843).Ay)("subscriber-prompt")},34184:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(40899);class s extends n.A{}},47004:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(40899);class s extends n.A{constructor(e,t,i,n){super(e,n),this.alignmentType=t,this.placementType=i}}},40899:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(89103);class s extends n.QB{constructor(e,t){super(),this.fromSweep=t,this.toSweep=e,this.timestamp=Date.now()}}},50018:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>c,EO:()=>s,c$:()=>n});var n,s,a=i(68909),o=i(85616),r=i(76318);!function(e){e.ALIGNED="aligned",e.UNALIGNED="unaligned"}(n||(n={})),function(e){e.UNPLACED="unplaced",e.AUTO="auto",e.MANUAL="manual"}(s||(s={}));const l={[r.MF.BASE]:"512",[r.MF.STANDARD]:"1k",[r.MF.HIGH]:"2k",[r.MF.ULTRAHIGH]:"4k"},d={[r.MF.BASE]:"low",[r.MF.STANDARD]:"high",[r.MF.HIGH]:"2k",[r.MF.ULTRAHIGH]:"4k"};class c extends o.v{static formatId(e,t){return t?`${t}:${e}`:e}static parseId(e){const t=e.split(":");return{platformId:t.length>1?t[1]:t[0],sourceViewId:t.length>1?t[0]:null}}get id(){return this._id}get platformId(){return this._platformId}get sourceViewId(){return this._sourceViewId}constructor(e){super(),this._sourceViewId=null,this.floorId=null,this.roomId=null,this.skyboxes={},e&&(null!=e.sourceViewId&&(this._sourceViewId=e.sourceViewId),e.platformId&&(this._platformId=e.platformId),this._id=c.formatId(this._platformId,this._sourceViewId),void 0!==e.index&&(this.index=e.index),this.name=e.name||"",this.position=e.position||new a.Vector3,this.floorPosition=e.floorPosition||new a.Vector3,void 0!==e.floorId&&(this.floorId=e.floorId),this.roomId=e.roomId||null,this.rotation=e.rotation||new a.Quaternion,this.enabled=e.enabled||!1,this.vrenabled=e.vrenabled||!1,this.neighbours=e.neighbours||[],this.alignmentType=e.alignmentType||n.ALIGNED,this.placementType=e.placementType||s.UNPLACED,void 0!==e.uuid&&(this.uuid=e.uuid),e.resolutions&&(this.resolutions=e.resolutions.slice()),e.skyboxes&&(this.skyboxes=Object.assign({},e.skyboxes)))}isAligned(){return this.alignmentType===n.ALIGNED}isUnplaced(){return this.placementType===s.UNPLACED}deepEquals(e){if(!this.equals(e))return!1;for(const t in this.skyboxes)for(const i in e.skyboxes){const n=this.skyboxes[t],s=e.skyboxes[i];if(n&&s&&n.getCurrentValue()!==s.getCurrentValue())return!1}return!0}equals(e){return this.id===e.id&&this.index===e.index&&this.name===e.name&&this.position.equals(e.position)&&this.floorId===e.floorId&&this.roomId===e.roomId&&this.rotation.equals(e.rotation)&&this.enabled===e.enabled&&this.vrenabled===e.vrenabled&&this.alignmentType===e.alignmentType&&this.placementType===e.placementType}copy(e){return this._id=e._id,this._sourceViewId=e._sourceViewId,this._platformId=e._platformId,this.index=e.index,this.name=e.name,this.position=(new a.Vector3).copy(e.position),this.floorPosition=(new a.Vector3).copy(e.floorPosition),this.floorId=e.floorId,this.roomId=e.roomId,this.rotation=(new a.Quaternion).copy(e.rotation),this.enabled=e.enabled,this.vrenabled=e.vrenabled,this.neighbours=e.neighbours.slice(),this.alignmentType=e.alignmentType,this.placementType=e.placementType,this.resolutions=e.resolutions,this.skyboxes=Object.assign({},e.skyboxes),this}clone(){return new c({platformId:this.platformId}).copy(this)}availableResolution(e){if(!e||!this.resolutions)throw new Error("No available resolution found for sweep");return this.resolutions.includes(e)?e:this.availableResolution(this.getLowerResolution(e))}getLowerResolution(e){switch(e){case r.MF.ULTRAHIGH:return r.MF.HIGH;case r.MF.HIGH:return r.MF.STANDARD;case r.MF.STANDARD:return r.MF.BASE}return null}refresh(e){var t;const i=this.equals(e);this.alignmentType=e.alignmentType,this.enabled=e.enabled,this.name=e.name,this.neighbours=e.neighbours.slice(),this.placementType=e.placementType,this.resolutions=e.resolutions,this.vrenabled=e.vrenabled;for(const i in this.skyboxes){const n=i,s=e.skyboxes[n];s&&(null===(t=this.skyboxes[n])||void 0===t||t.refreshFrom(s))}i||this.commit()}async getTileUrl(e,t,i,n){var s;const a=await this.getSkybox(e);return(null!==(s=null==a?void 0:a.tileUrlTemplate)&&void 0!==s?s:`tiles/${this.id}/${l[e]}_face__.jpg`).replace("",`${t}`).replace("",`${i}`).replace("",`${n}`)}async getFaceUrl(e,t){var i;const n=await this.getSkybox(e)||await this.getSkybox(r.MF.BASE);return(null!==(i=null==n?void 0:n.urlTemplate)&&void 0!==i?i:`pan/${d[e]}/${this.id}_skybox.jpg`).replace("",`${t}`)}async getSkybox(e){const t=this.skyboxes[e];return t?t.get():t}}},63362:(e,t,i)=>{"use strict";i.d(t,{HP:()=>s,S2:()=>a,WS:()=>r,WW:()=>o,_p:()=>u,j3:()=>d,tA:()=>c});var n=i(55141);class s extends n.u{constructor(e){super(),this.sweepId=e,this.payload={sweepId:e}}}s.id="SET_CURRENT_SWEEP";class a extends n.u{constructor(e,t,i=500){super(),this.payload={id:e,selected:t,duration:i}}}a.id="SELECT_SWEEP";class o extends n.u{constructor(e,t,i=500){super(),this.payload={id:e,hovered:t,duration:i}}}o.id="HOVER_SWEEP";class r extends n.u{constructor(e,t=[],i=[]){super(),this.payload={id:e,added:t,removed:i}}}r.id="MODIFY_SWEEP_NEIGHBORS";class l extends n.u{constructor(e,t){super(),this.payload={id:e,name:t}}}l.id="RENAME_SWEEP";class d extends n.u{constructor(e){super(),this.payload={visible:e}}}d.id="TOGGLE_NON_PANO_CURRENT_PUCK";class c extends n.u{}c.id="ENABLE_SWEEP_SELECTION";class u extends n.u{}u.id="DISABLE_SWEEP_SELECTION"},62372:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var n=i(50018),s=i(84710),a=i(56413),o=i(42743),r=i(92237),l=i(21440);class d extends s.B{constructor(e){super(),this.name="sweeps",this.transitionActive=!1,this._unfilteredSweepMap=new a.E,this.sweepMap=new o.q(this._unfilteredSweepMap),e&&this.addSweeps(e),this.transition={progress:new r.z(0),active:!1,from:void 0,to:void 0},this.isSweepDisabled=this.isSweepDisabled.bind(this)}addFilter(e,t){return this.sweepMap.setFilter(e,t)}clearFilters(){this.sweepMap.clearFilters()}removeSweeps(e){const t=Object.values(e).map((e=>e.id));return this._unfilteredSweepMap.atomic((()=>{const i=this._unfilteredSweepMap.values;for(const n of i)if(e[n.id])this._unfilteredSweepMap.delete(n.id);else{let e=!1;t.forEach((t=>{(0,l.Nz)(n.neighbours,t)&&(e=!0)})),e&&n.commit()}})),this}addSweeps(e){const t=Object.values(e).sort(((e,t)=>e.index-t.index));return this._unfilteredSweepMap.atomic((()=>{for(const e of t)this._unfilteredSweepMap.has(e.id)?(this._unfilteredSweepMap.get(e.id).copy(e),this._unfilteredSweepMap.get(e.id).commit()):this._unfilteredSweepMap.set(e.id,e)})),this}refresh(e){this._unfilteredSweepMap.forEach(((t,i)=>{e[i]&&t.refresh(e[i])}))}canTransition(){return!this.transition.active}get currentSweepIndex(){if(this.currentSweep)return this.getSweep(this.currentSweep).index}get currentSweepObject(){if(this.currentSweep)return this.getSweep(this.currentSweep)}get currentAlignedSweepObject(){if(this.currentSweep&&!this.isSweepUnaligned(this.currentSweep))return this.getSweep(this.currentSweep)}makeSweepChangeSubscription(e){return this.onPropertyChanged("currentSweep",e)}getSweep(e){let t=this._unfilteredSweepMap.get(null!=e?e:"");if(!t)for(const i of this._unfilteredSweepMap.values)i.platformId!==e||(t=i);return t}getSweepByIndex(e){return this._unfilteredSweepMap.values.find((t=>t.index===e))}getSweepByUuid(e){return this._unfilteredSweepMap.values.find((t=>t.uuid===e))}containsSweep(e,t={unfiltered:!1}){if(!e)return!1;return(t.unfiltered?this._unfilteredSweepMap:this.sweepMap).has(e)}getFirstSweep(e=!1){const t=this.getSweepList().sort(((e,t)=>e.index-t.index));let i=-1;for(;++i{if(a.enabled&&(!t||a.alignmentType===n.c$.ALIGNED)){const t=e.distanceTo(a.position);te.every((e=>e(t))))).map((e=>({sweep:e,score:t.reduce(((t,i)=>t+i(e)),0)}))).sort(((e,t)=>t.score-e.score))}getSweepList(){return this.sweepMap.values}getAlignedSweeps(){return this.getSweepList().filter((e=>e.alignmentType===n.c$.ALIGNED))}onSweepsChanged(e){return this.sweepMap.onChanged(e)}getSweepNeighbours(e){const t=[];for(const i of e.neighbours)t.push(this.getSweep(i));return t}getAlternateSweeps(e,t={unfiltered:!1}){const i=[];if(!e)return i;const n=t.unfiltered?this._unfilteredSweepMap:this.sweepMap;for(const t of n.values)t.platformId===e.platformId&&t.id!==e.id&&i.push(t);return i}getCollection(){return this.sweepMap}getCollectionUnfiltered(){return this._unfilteredSweepMap}}},78229:(e,t,i)=>{"use strict";i.d(t,{AU:()=>o,DJ:()=>S,Eo:()=>m,GS:()=>d,OX:()=>u,Ol:()=>E,Pi:()=>O,Zx:()=>c,f:()=>l,fm:()=>T,jW:()=>p,lp:()=>g,sT:()=>h,xg:()=>r});var n=i(50018),s=i(68909);const a=.25,o=e=>t=>t!==e,r=e=>t=>!!e.neighbours&&-1!==e.neighbours.indexOf(t.id),l=e=>t=>e===t||r(e)(t),d=e=>e&&e.placementType===n.EO.MANUAL,c=()=>e=>e&&e.alignmentType===n.c$.ALIGNED,u=()=>e=>e&&e.alignmentType!==n.c$.ALIGNED,h=e=>t=>t&&e.floorId===t.floorId,m=e=>t=>t&&e===t.floorId,p=(()=>{const e=new s.Vector3,t=new s.Vector3;return(i,n,s=a)=>a=>e.copy(a.position).sub(i).normalize().dot(t.copy(n).normalize())>s})(),E=()=>e=>e&&e.enabled,S=(e,t)=>{const i=new s.Vector3;return t=t.clone(),n=>i.copy(n.position).sub(e).normalize().dot(t)>0},O=(e,t)=>i=>e.distanceTo(i.position)>t,g=(e,t)=>i=>e.distanceTo(i.position)i=>e.distanceToSquared(i.position){"use strict";i.d(t,{G:()=>a});var n=i(71555),s=i(62372);const a=(0,n.v)(s.A)},8333:(e,t,i)=>{"use strict";i.d(t,{Oe:()=>s,RB:()=>o,W0:()=>a});var n=i(75778);const s="settings/tiling/preload_quality",a=Object.freeze({overlayStyle:(0,n.P3)("tileoverlay",0),uploadIntervalDelay:50,highResUploadsPerFrame:2,maxHighResUploadsPerFrame:100,loadIndicatorDelay:300,uploadsPerFrame:6,maxUploadsPerFrame:100,windowHeightHighQualityThreshold:800,windowHeightHighQualityThresholdOverride:(0,n.P3)("threshold2k",void 0),concurrentDownloads:3,maxConcurrentDownloads:12,navigation:{directionFactor:10,distanceFactor:-1}});class o{constructor(){this.reset()}reset(){this.downloadFullPano=!1,this.concurrentDownloads=a.concurrentDownloads,this.uploadsPerFrame=a.uploadsPerFrame,this.highResUploadsPerFrame=a.highResUploadsPerFrame}}},23500:(e,t,i)=>{"use strict";i.d(t,{s:()=>n});const n="features/360_views"},80191:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(89103);class s extends n.QB{constructor(e,t,i){super(),this.sweepId=e,this.sweepIndex=t,this.totalSweeps=i}}},25686:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(89103);class s extends n.QB{constructor(e,t){super(),this.sweepId=e,this.hovered=t}}},3956:(e,t,i)=>{"use strict";i.d(t,{J:()=>v,U:()=>A});var n=i(68909),s=i(63362),a=i(81544),o=i(31002),r=i(80191),l=i(36476),d=i(37458),c=i(50018),u=i(57811),h=i(23184),m=i(25686),p=i(84250),E=i(52885),S=i(81662),O=i(38069);const g=[],T=new n.Sphere;class _ extends p.O{constructor(){super(...arguments),this.bindings=[]}}class A extends n.Mesh{raycast(e,t){if(super.raycast(e,g),g.length){const{geometry:i}=this;i.boundingSphere||i.computeBoundingSphere(),T.copy(i.boundingSphere).applyMatrix4(this.matrixWorld);for(const i of g)e.ray.intersectSphere(T,i.point),i.distance=e.ray.origin.distanceTo(i.point),t.push(i);g.length=0}}}class v{constructor(e,t,i,s,a,o,r,d=O.V.MP_BRAND.clone(),c=O.V.MP_BRAND.clone(),u=.8,h=.8,m=300,p=.4,E=l.H.ALL){this.scene=e,this.input=t,this.settingsData=i,this.sweepViewData=s,this.puckImagery=a,this.onFloor=o,this.checkRenderModes=r,this.idleColor=d,this.selectionColor=c,this.idleOpacity=u,this.editingOpacity=h,this.selectionDuration=m,this.puckSize=p,this.layer=E,this.sweepToMesh={},this.colliderToSweep={},this.editingEnabled=!1,this.dummyMat=new n.MeshBasicMaterial,this.puckOffset=new n.Vector3(0,.05,0),this.bindings=[],this.wasDrawing=!1,this.renderPuckHighlight=(e,t)=>{if(!this.sweepViewData.isSweepAligned(e))return;const i=this.sweepToMesh[e];null==i||i.configure({tint:t?this.selectionColor:this.idleColor})},this.isVisiblePuckCollider=e=>{var t;const i=e.userData.sid;return e instanceof A&&(null===(t=this.sweepViewData.getState(i))||void 0===t?void 0:t.visible)&&this.sweepViewData.getSweepVisibility(this.sweepViewData.getSweep(i))}}init(){if(this.puckGeometry=new n.PlaneGeometry(this.puckSize,this.puckSize),this.onFloor){const e=new n.Matrix4;e.makeRotationFromEuler(new n.Euler(-Math.PI/2,0,0,"XYZ")),this.puckGeometry.applyMatrix4(e)}this.sphereColliderGeometry=new n.SphereGeometry(.5*this.puckSize,10,10);const e=this.sweepViewData.getCollection(),t=(e,t)=>{this.removeSweepFromScene(t);const i=this.sweepToMesh[t];i&&(i.bindings.forEach((e=>e.cancel())),i.bindings.length=0),delete this.sweepToMesh[t],delete this.colliderToSweep[t]},i=(e,t)=>{this.wasDrawing=!1,this.createPuck(this.sweepViewData.getSweep(t))};e.entries().forEach((([e,t])=>i(0,e))),e.onElementsChanged((({removed:e,added:n})=>{e&&e.forEach((([e,i])=>t(0,e))),n&&n.forEach((([e,t])=>i(0,e)))}))}get displayDisabled(){return void 0!==this.puckImagery.disabled}createMesh(e){const t=new _({radius:this.puckSize/2,normal:S.B1.UP});this.onFloor?t.position.copy(e.floorPosition).add(this.puckOffset):(t.position.copy(e.position),t.rotation.setFromQuaternion(e.rotation)),t.name=e.id,t.updateMatrixWorld(!1),t.renderOrder=d.X.panoMarker,t.material.depthWrite=!1;const i=this.sweepViewData.getState(e.id),n=()=>this.updateMesh(e,i,t);return t.bindings.push(i.onChanged(n),e.onPropertyChanged("enabled",n)),n(),t.layers.mask=this.layer.mask,t}updateMesh(e,t,i){if(i.visible=t.visible){const{editingEnabled:s,puckImagery:a}=this,o=t.animation.value,r=s&&o>0,l=e.enabled?r?a.enabledHover:a.enabled:r?a.disabledHover:a.disabled;i.configure({texture:l instanceof n.Texture?l:null,rings:l instanceof n.Texture?void 0:l,tint:this.editingEnabled&&e.id===this.sweepViewData.selectedSweep?this.selectionColor:this.idleColor,opacity:(0,E.C)(s?this.editingOpacity:this.idleOpacity,1,o)})}}createCollider(e,t){let i;return i=this.onFloor?new A(this.puckGeometry,this.dummyMat):new A(this.sphereColliderGeometry,this.dummyMat),i.userData.sid=e.id,i.position.copy(t.position),i.rotation.copy(t.rotation),i.name=e.id,i.updateMatrixWorld(!1),i}createPuck(e){if(e.alignmentType!==c.c$.ALIGNED)return;const t=this.createMesh(e),i=this.createCollider(e,t);t.collider=i,this.sweepToMesh[e.id]=t,this.colliderToSweep[i.id]=e.id}toggleEditingEnabled(e){this.editingEnabled=e;for(const t in this.sweepToMesh){this.sweepToMesh[t].configure({opacity:e?this.editingOpacity:this.idleOpacity})}}getSweepId(e){return this.colliderToSweep[e]}updatePuckImagery(e){let t;this.displayDisabled||void 0===e.disabled?this.displayDisabled&&void 0===e.disabled&&(t=!1):t=!0,this.puckImagery=e,this.sweepViewData.iterate(((e,i)=>{if(e.alignmentType===c.c$.ALIGNED&&(this.updateMesh(e,i,this.sweepToMesh[e.id]),void 0!==t)){if(e.enabled)return;t?this.addSweepToScene(e.id):this.removeSweepFromScene(e.id)}}))}updateCheckRenderModes(e){this.checkRenderModes=e}removeSweepFromScene(e){const t=this.sweepToMesh[e];t&&(this.scene.remove(t),this.input.unregisterMesh(t.collider))}addSweepToScene(e){if(!this.sweepViewData.getSweep(e).enabled&&!this.displayDisabled)return;const t=this.sweepToMesh[e];this.scene.add(t),this.input.registerMesh(t.collider,!0,this.isVisiblePuckCollider)}render(){const e=this.checkRenderModes(),t=this.settingsData.tryGetProperty(u.f,!0);if(e&&t){if(!this.wasDrawing){for(const e in this.sweepToMesh)this.addSweepToScene(e);this.wasDrawing=!0}}else if(this.wasDrawing){for(const e in this.sweepToMesh)this.removeSweepFromScene(e);this.wasDrawing=!1}}dispose(){for(const e in this.sweepToMesh)this.sweepToMesh[e].dispose()}activate(e){this.wasDrawing=!1;const t=h.f.is(this.isVisiblePuckCollider);this.bindings.push(this.input.registerMeshHandler(a.L,t,((t,i)=>{e.commandBinder.issueCommand(new s.WW(this.getSweepId(i.id),!0,this.selectionDuration)),e.broadcast(new m.A(this.getSweepId(i.id),!0))}))),this.bindings.push(this.input.registerMeshHandler(a.q,t,((t,i)=>{e.commandBinder.issueCommand(new s.WW(this.getSweepId(i.id),!1,this.selectionDuration)),e.broadcast(new m.A(this.getSweepId(i.id),!1))}))),this.bindings.push(this.input.registerMeshHandler(o.rX,t,((t,i)=>{const n=this.sweepViewData.getSweep(this.colliderToSweep[i.id]).index,s=this.sweepViewData.getAlignedSweeps(!0).length;e.broadcast(new r.A(this.colliderToSweep[i.id],n,s))})))}deactivate(e){for(const e in this.sweepToMesh)this.removeSweepFromScene(e);for(const e of this.bindings)e.cancel();this.bindings.length=0}}},57811:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});const n="features/sweep_pucks"},4288:(e,t,i)=>{"use strict";i.d(t,{O:()=>h});var n=i(84710),s=i(95330),a=i(50018),o=i(78229),r=i(56413),l=i(85616),d=i(92237);class c extends l.v{constructor(){super(...arguments),this.selected=!1,this.visible=!0,this.animation=new d.z(0)}}var u=i(70819);class h extends n.B{constructor(e){super(),this.data=e,this.name="sweeps-view",this.states=new r.E,this.defaultSweepVisibilityRule=e=>e&&e.enabled,this.sweepVisibilityRule=this.defaultSweepVisibilityRule,this.bindings=[],this.selectCurrentSweep=()=>{this.setSelectedSweep(this.data.currentSweep||null)},this.derivedData={},this.toolStateObservable=new s.L(u.j.CLOSED),this.selectedSweepObservable=new s.L(null);const t=[u.j.MOVING,u.j.PLACING,u.j.PRESSING,u.j.ROTATING],i=(e,t)=>{if(!this.states.has(t)){const i=new c;i.selected=t===this.selectedSweep,i.commit(),this.states.set(t,i),this.derivedData[t]=this.makeViewDataForSweep(e,e.index)}},n=(e,t)=>{if(this.states.has(t)){const e=this.states.get(t);e.selected=!1,e.animation.stop(0),this.states.delete(t),delete this.derivedData[t]}},a=e.getCollection();a.forEach(((e,t)=>i(e,t))),this.bindings.push(a.onElementsChanged((e=>{this.atomic((()=>{var t,s,a;null===(t=e.removed)||void 0===t||t.forEach((([e,t])=>n(0,e))),null===(s=e.added)||void 0===s||s.forEach((([e,t])=>i(t,e))),null===(a=e.updated)||void 0===a||a.forEach((([e,t])=>{this.derivedData[t.id]=this.makeViewDataForSweep(t,t.index)}))})),this.updateViewData()})),e.makeSweepChangeSubscription((()=>{t.includes(this.toolState)||this.selectCurrentSweep()}))),this.updateViewData()}updateViewData(){this.data.iterate(((e,t)=>{this.derivedData[e.id]=this.makeViewDataForSweep(e,t)})),this.commit()}updateSweepVisibilityRule(e){this.sweepVisibilityRule=e||this.defaultSweepVisibilityRule}getSweepVisibility(e){return this.sweepVisibilityRule(e)}get selectedSweep(){return this.selectedSweepObservable.value}setSelectedSweep(e){if(e===this.selectedSweep)return;const t=this.selectedSweep;if(this.selectedSweepObservable.value=e,null!==e){const t=this.getState(e);t&&(t.selected=!0,t.commit())}if(null!==t){const e=this.getState(t);e&&(e.selected=!1,e.commit())}}onSelectedSweepChanged(e){return this.selectedSweepObservable.onChanged(e)}setToolState(e){e===u.j.PLACING&&this.selectedSweep&&this.setSelectedSweep(null),this.toolStateObservable.value=e}get toolState(){return this.toolStateObservable.value}onToolStateChanged(e){return this.toolStateObservable.onChanged(e)}getSweep(e){return this.data.getSweep(e)}makeViewDataForSweep(e,t){const i=this.derivedData[e.id];return i?(i.floorId=e.floorId,i.position=e.position,i.alignmentType=e.alignmentType,i.placed=e.placementType===a.EO.MANUAL,i.enabled=e.enabled,i.name=e.name,i):{id:e.id,floorId:e.floorId,position:e.position,index:e.index,alignmentType:e.alignmentType,dataIndex:t,placed:e.placementType===a.EO.MANUAL,enabled:e.enabled,name:e.name}}getViewData(e){const t=this.data.getSweep(e),i=this.derivedData[e];return t&&!i&&(this.derivedData[e]=this.makeViewDataForSweep(t,t.index)),this.derivedData[e]}isSweepAligned(e){return this.data.isSweepAligned(e)}getCollection(){return this.states}iterate(e){this.states.entries().forEach((([t,i])=>{const n=this.data.getSweep(t);e(n,i,this.derivedData[t])}))}getState(e){return this.states.get(e)}isVisible(e){const t=this.states.get(e);return(null==t?void 0:t.visible)||!1}setVisible(e,t){const i=this.getState(e);i&&i.visible!==t&&(i.visible=t,i.commit())}updateAnimations(e){for(const t of this.states)t.animation.tick(e)}modifySelectAnimation(e,t,i){const n=this.getState(e);if(!n)return;const s=n.animation,a=1===s.endValue;t!==a&&(a?s.modifyAnimation(s.value,0,i):s.modifyAnimation(0,1,i))}getIndexByAlignment(e,t){return this.getAlignedSweeps(e).findIndex((e=>e.id===t))}getAlignedSweeps(e){const t=this.data.getSweepList();return(e?t.filter((0,o.Zx)()):t.filter((0,o.OX)())).map(((e,t)=>this.derivedData[e.id]))}}},70819:(e,t,i)=>{"use strict";var n;i.d(t,{j:()=>n}),function(e){e.CLOSED="closed",e.IDLE="idle",e.PRESSING="pressing",e.PLACING="placing",e.MOVING="moving",e.ROTATING="rotating",e.ROTATED="rotated"}(n||(n={}))},55494:(e,t,i)=>{"use strict";i.d(t,{r:()=>m});var n=i(68909),s=i(84710),a=i(95330),o=i(56413),r=i(42743),l=i(81662),d=i(35826),c=i(77154),u=i(86866),h=i(12767);class m extends s.B{constructor(e,t,i,n,s,l,c,u,h){super(),this.data=e,this.floorsData=t,this.cameraStartData=i,this.textParser=s,this.linkHandler=l,this.tagDefaultTitle=c,this.backgroundTexture=u,this.objectTagsEnabled=h,this.name="tags-view-data",this.tagViewsMap=(0,o.y)(),this.customSortIndexMap=new Map,this.spatialSortOrderMap=new Map,this.openTagViewObservable=(0,a.p)(null),this.tagsMode=d.j.DEFAULT,this.tagOrder=d.k.ORDERED,this.openTagIsDirty=!1,this.creatingTag=!1,this.idVisibilityEnabled=!1,this.idVisibility=new Set,this.capabilities=new Map,this.refreshTagViews=e=>{const t={};this.data.iterate((e=>{t[e.sid]=this.createTagView(e)})),this.updateSortMaps(Object.values(t),e),this.tagViewsMap.atomic((()=>{this.tagViewsMap.replace(t)}))},this.sortByOrder=(e,t)=>{var i,n;const s=(null!==(i=this.customSortIndexMap.get(e.id))&&void 0!==i?i:Number.MAX_SAFE_INTEGER)-(null!==(n=this.customSortIndexMap.get(t.id))&&void 0!==n?n:Number.MAX_SAFE_INTEGER);if(s)return s;const a=this.spatialSortOrderMap.get(e.id),o=this.spatialSortOrderMap.get(t.id);if(void 0===a||void 0===o)throw new Error("All ids should exist in spatialPositions");return a-o},this.sortByText=(e,t)=>{function i(e,t){return(e.label.trim()||e.description||t).toLowerCase()}return i(e,this.tagDefaultTitle)!e.objectAnnotationId)),this.refreshTagViews(n),this.orderedTagViews.sort(this.sortByOrder)}getAlphabeticTagViewMapFilter(){return this.alphabeticalTagViews||(this.alphabeticalTagViews=new r.q(this.tagViewsMap),this.alphabeticalTagViews.priority=r.g.LOW,this.alphabeticalTagViews.setFilter("objectTag",(e=>!e.objectAnnotationId)),this.alphabeticalTagViews.sort(this.sortByText)),this.alphabeticalTagViews}getCollection(){return this.tagViewsMap}getOrderedTagViewMapFilter(){return this.orderedTagViews}getOrderedTags(e){return this.getEnabledTagViewsList(this.orderedTagViews,e)}getTagsByText(e){const t=this.getAlphabeticTagViewMapFilter();return this.getEnabledTagViewsList(t,e)}getEnabledTagViewsList(e,t){const i=e.values;return t?i.filter((e=>e.enabled)):i}getTextParser(){return this.textParser}getLinkHandler(){return this.linkHandler}getCapabilities(e){const t={focus:!0};this.capabilities.has(e)||this.capabilities.set(e,t);const i=this.capabilities.get(e)||t;return Object.assign({},i)}updateCapabilities(e,t){this.capabilities.set(e,Object.assign({},t))}setEmbedErrorTagId(e){this.embedErrorTagId=e,this.commit()}setTagsMode(e){this.tagsMode=e,this.commit()}getTagCount(e){return this.getOrderedTags(e).length}hasCustomSortOrder(){return this.customSortIndexMap.size>0}getTagView(e){return this.tagViewsMap.get(e)}createTagView(e){const t=e.getPin();return Object.assign(Object.assign({},t),{id:e.sid,created:e.created,modified:e.modified,label:e.label,description:e.description,enabled:e.enabled,layerId:e.layerId,attachments:[...e.externalAttachments,...e.fileAttachments,...e.sandboxAttachments],objectAnnotationId:e.objectAnnotationId,keywords:e.keywords.values(),icon:e.icon,backgroundTexture:this.backgroundTexture})}setOpenTagView(e){this.openTagViewObservable.value=e}get openTagView(){return this.openTagViewObservable.value}onOpenTagViewChanged(e){return this.openTagViewObservable.onChanged(e)}getAvailableKeywords(){return Array.from(new Set(this.data.getTagKeywords()))}updateSortMaps(e,t){t&&this.updateCustomSortMap(t),this.updateSpatialSortMap(e),this.orderedTagViews.setDirty(!0)}updateCustomSortMap(e){this.customSortIndexMap.clear(),e.forEach(((e,t)=>this.customSortIndexMap.set(e,t)))}updateSpatialSortMap(e){const{floorsData:t,cameraStartData:i}=this,s=i.pose.camera.position||l.B1.ZERO,a=i.pose.camera.rotation||new n.Quaternion,o=t.getClosestFloorAtHeight(s.y).index,r=(0,u.oA)(s,a,(0,h.hn)(1));this.spatialSortOrderMap.clear();let d=0;for(let i=0;ie.floorId===l.id));if(0===u.length)continue;let h,m=1/0;const p=new n.Vector3,E=(new c.A).x((e=>e.x)).y((e=>e.y)).z((e=>e.z));E.addAll(u.map((e=>{p.copy(e.stemNormal).setLength(e.stemLength).add(e.anchorPosition);const t={id:e.id,x:p.x,y:p.y,z:p.z},i=p.distanceToSquared(s);return i0;)S=E.find(S.x,S.y,S.z),this.spatialSortOrderMap.set(S.id,d++),E.remove(S),O--}}}},99104:(e,t,i)=>{"use strict";i.d(t,{$m:()=>g,Bu:()=>r,J9:()=>d,KH:()=>E,Ki:()=>h,NR:()=>a,OT:()=>m,RL:()=>p,YN:()=>c,aH:()=>o,br:()=>l,eo:()=>s,ir:()=>T,jC:()=>u,kd:()=>A,l7:()=>_,mg:()=>S,wJ:()=>O});var n=i(55141);class s extends n.u{}s.id="REGISTER_TAGS_TOOL";class a extends n.u{constructor(e){super(),this.payload={opened:e}}}a.id="TAGS_TOGGLE";class o extends n.u{constructor(){super()}}o.id="TAG_START_ADD";class r extends n.u{constructor(e,t,i,n,s){super(),this.payload={id:e,properties:t,pendingAttachments:i,removedAttachments:n,embed:s}}}r.id="TAG_SAVE";class l extends n.u{constructor(e,t){super(),this.payload={id:e,visible:t}}}l.id="TAG_VISIBILITY_TOGGLE";class d extends n.u{constructor(){super()}}d.id="TAG_CANCEL_EDITS";class c extends n.u{constructor(e){super(),this.payload={tagId:e}}}c.id="TAG_EDIT";class u extends n.u{constructor(e){super(),this.payload={dirty:e}}}u.id="TAG_DIRTY_TOGGLE";class h extends n.u{constructor(e,t){super();const{transition:i=null,dock:n=null,objectTag:s=!1,forceOpen:a=!1}=t||{};this.payload={tagId:e,transition:i,dock:n,objectTag:s,forceOpen:a}}}h.id="TAG_OPEN";class m extends n.u{constructor(e){super(),this.payload={updates:e}}}m.id="TAG_UPDATE_OPEN_TAGVIEW";class p extends n.u{constructor(e,t){super(),this.payload={id:e,removalMethod:t}}}p.id="TAG_DELETE";class E extends n.u{constructor(){super()}}E.id="TAG_CLOSE";class S extends n.u{constructor(e){super(),this.payload={ids:e}}}S.id="TAG_ORDER_SAVE";class O extends n.u{constructor(e){super(),this.payload={enabled:e}}}O.id="TAGS_VISIBILITY_FILTER_ENABLED";class g extends n.u{constructor(e){super(),this.payload={ids:e}}}g.id="FILTER_VISIBLE_TAGS_COMMAND";class T extends n.u{constructor(e){super(),this.payload={mode:e}}}T.id="SET_REORDERING_MODE";class _ extends n.u{constructor(e){super(),this.payload={order:e}}}_.id="TAG_ORDER_BY_SET";class A extends n.u{constructor(e){super(),this.payload={id:e}}}A.id="SET_EMBED_ERROR_ID"},35826:(e,t,i)=>{"use strict";var n,s;i.d(t,{j:()=>n,k:()=>s}),function(e){e.DEFAULT="default",e.REORDERING="reordering"}(n||(n={})),function(e){e.ORDERED="by-tag-order",e.ALPHABETICAL="by-tag-text",e.FLOOR_ORDERED="by-floor-ordered",e.FLOOR_ALPHABETICAL="by-floor-alphabetical"}(s||(s={}))},13767:(e,t,i)=>{"use strict";i.d(t,{$Q:()=>l,AM:()=>o,GK:()=>a,Jr:()=>r,jh:()=>n,rp:()=>s});const n="tags2",s="TAG_NAV_OVERLAY",a="TAG_BILLBOARD_SHARE",o="TAG_BILLBOARD_DOCK",r="features/tagIcons",l="tagTitleOnTop";Object.freeze({colors:["#d44441","#f44336","#e91e63","#f78da7","#9c4b92","#673ab7","#03687d","#03a9f4","#00bcd4","#417505","#51a868","#37d67a","#cddc39","#fbcd00","#ffac17","#ff6900","#abb8c3","#607d8b"]})},23864:(e,t,i)=>{"use strict";i.d(t,{N:()=>s});var n=i(85616);class s extends n.v{constructor(e){super(),this.order=1e4,this.showModeControls=!0,this.showTourControls=!0,e&&Object.assign(this,e)}}},96319:(e,t,i)=>{"use strict";i.d(t,{M:()=>r});var n=i(84710),s=i(56413),a=i(42743),o=i(73566);class r extends n.B{constructor(){super(),this.name="tools-data",this.tools=(0,s.y)(),this.assetDocked=!1,this.activeToolName=null,this.previousToolName=null,this.openModal=null,this.toolPanelLayout=r.defaultToolPanelLayout,this.softOpening=!1,this.toolCollapsed=!1,this.toolChangeInProgress=!1,this.toolPalettes=new a.q(this.tools),this.toolPalettes.setFilter("enabled",(e=>e.enabled)),this.toolPalettes.setFilter("palette",(e=>!!e.palette)),this.toolPalettes.sort(((e,t)=>e.order-t.order)),this.toolPalettes.priority=a.g.LOW}iterate(e){for(const t of this.tools)e(t)}get toolsMap(){return this.tools}getToolPalettes(){return this.toolPalettes.groupBy("palette")}hasTool(e){return this.toolsMap.has(e)}getTool(e){return this.tools.get(e)}addTool(...e){e.forEach((e=>this.tools.set(e.id,e)))}removeTool(...e){e.forEach((e=>{var t;const i=this.getTool(e);(null===(t=null==i?void 0:i.manager)||void 0===t?void 0:t.dispose)&&i.manager.dispose(),this.tools.delete(e)}))}removeAllTools(){this.iterate((e=>{var t;(null===(t=e.manager)||void 0===t?void 0:t.dispose)&&e.manager.dispose()})),this.tools.clear()}getActiveTool(){return this.activeToolName?this.getTool(this.activeToolName):null}setActiveTool(e){this.previousToolName=e?this.activeToolName:null,this.activeToolName=e,this.commit()}isPanelOpen(){return this.toolPanelLayout===o.L$.SIDE_PANEL||this.toolPanelLayout===o.L$.BOTTOM_PANEL}isToolCollapsedToBottom(){return this.toolPanelLayout===o.L$.BOTTOM_PANEL&&this.toolCollapsed}}r.defaultToolPanelLayout=o.L$.NORMAL},17084:(e,t,i)=>{"use strict";i.d(t,{Kw:()=>l,M_:()=>c,Te:()=>h,Wm:()=>u,_S:()=>r,kC:()=>d,li:()=>s,oe:()=>a,u3:()=>m,yU:()=>o});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={collapse:e}}}s.id="TOOL_PANEL_TOGGLE_COLLAPSE";class a extends n.u{constructor(e){super(),this.payload={collapse:e}}}a.id="TOOL_BOTTOM_PANEL_COLLAPSE";class o extends n.u{constructor(e,t){super(),this.payload={toolName:e,active:t}}}o.id="TOGGLE_TOOL";class r extends n.u{constructor(e){super(),this.payload={checkForEdits:e}}}r.id="CLOSE_REMOVE_TOOLS";class l extends n.u{constructor(e){super(),this.payload={tools:e}}}l.id="REGISTER_TOOLS";class d extends n.u{}d.id="OPEN_PREVIOUS_TOOL";class c extends n.u{}c.id="OPEN_INITIAL_TOOL";class u extends n.u{constructor(e,t=!1){super(),this.payload={toolName:e,softOpening:t}}}u.id="OPEN_TOOL";class h extends n.u{}h.id="CLOSE_CURRENT_TOOL";class m extends n.u{constructor(e){super(),this.payload={toolName:e}}}m.id="CLOSE_TOOL"},73566:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{L$:()=>a,S0:()=>n,o6:()=>s}),function(e){e.START_LOCATION="START_LOCATION",e.SCANS_3D="SCANS_3D",e.VIEW_360="VIEW_360",e.PHOTOS="PHOTOS",e.LABELS="LABELS",e.LAYERS="LAYERS",e.MEASUREMENTS="MEASUREMENTS",e.HLR="HLR",e.SETTINGS_PANEL="SETTINGS_PANEL",e.NOTES="NOTES",e.TAGS="TAGS",e.BLUR="BLUR",e.SEARCH="SEARCH",e.MESH_TRIM="MESH_TRIM",e.SUMMARY="SUMMARY",e.PLUGIN_CONFIG="PLUGIN_CONFIG",e.ROOM_BOUNDS="ROOM_BOUNDS",e.ROOM_VIEW="ROOM_VIEW",e.AD_DEFURNISH="AD_DEFURNISH",e.GIZMO_TRANSFORM="GIZMO_TRANSFORM",e.GIZMO_FLOOR_MAGNET="GIZMO_FLOOR_MAGNET",e.GIZMO_WALL_MAGNET="GIZMO_WALL_MAGNET"}(n||(n={})),function(e){e[e.VIEW_BASED=1]="VIEW_BASED",e[e.MODEL_BASED=2]="MODEL_BASED",e[e.MISC=3]="MISC"}(s||(s={})),function(e){e.NORMAL="normal",e.NARROW="narrow",e.SIDE_PANEL="side-panel",e.BOTTOM_PANEL="bottom-panel"}(a||(a={}))},59760:(e,t,i)=>{"use strict";i.d(t,{O:()=>a});var n=i(76853),s=i(48411);function a(){const e=(0,n.v)(),t=(0,s.T)();return t?e.getTool(t):null}},28479:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});var n=i(59760);function s(){const e=(0,n.O)();return null==e?void 0:e.analytic}},48411:(e,t,i)=>{"use strict";i.d(t,{T:()=>o});var n=i(87805),s=i(61260),a=i(96319);const o=(0,n.r)(a.M,"activeToolName",null);(0,s.c)("activeTool",o)},95541:(e,t,i)=>{"use strict";i.d(t,{H:()=>a});var n=i(73566),s=i(78956);function a(){const e=(0,s.O)();return e===n.L$.NARROW||e===n.L$.BOTTOM_PANEL}},68419:(e,t,i)=>{"use strict";i.d(t,{t:()=>o});var n=i(87805),s=i(61260),a=i(96319);const o=(0,n.r)(a.M,"openModal",null);(0,s.c)("openModal",o)},91406:(e,t,i)=>{"use strict";i.d(t,{M:()=>a});var n=i(96540),s=i(76853);function a(e){const t=(0,s.v)(),[i,a]=(0,n.useState)(t.getTool(e)||null);return(0,n.useEffect)((()=>{const i=t.onChanged((()=>a(t.getTool(e)||null)));return()=>i.cancel()}),[e,t]),i}},64057:(e,t,i)=>{"use strict";i.d(t,{J:()=>a});var n=i(87805),s=i(96319);const a=(0,n.r)(s.M,"toolCollapsed",!1)},78956:(e,t,i)=>{"use strict";i.d(t,{O:()=>o});var n=i(87805),s=i(61260),a=i(96319);const o=(0,n.r)(a.M,"toolPanelLayout",a.M.defaultToolPanelLayout);(0,s.c)("toolPanelLayout",o)},76853:(e,t,i)=>{"use strict";i.d(t,{v:()=>o});var n=i(61260),s=i(96540),a=i(77570);const o=()=>(0,s.useContext)(a.B).toolsData;(0,n.c)("toolsData",o)},66846:(e,t,i)=>{"use strict";i.d(t,{I:()=>o,X:()=>a});var n=i(73566),s=i(66355);function a(e,t){const i=e.tryGetProperty(s.BW,"");if(i)return i;if(t)return null;const a=e.getOverrideParam("tag","")?n.S0.TAGS:e.getOverrideParam("note","")?n.S0.NOTES:null;if(a)return a;const o=e.getOverrideParam("tool","").toUpperCase();return o||null}function o(e,t){return t.deepLinkParam?e.getOverrideParam(t.deepLinkParam,""):""}},20246:(e,t,i)=>{"use strict";i.d(t,{I7:()=>s,Vk:()=>l,_5:()=>r,f1:()=>a,k_:()=>d,rP:()=>o});var n=i(89103);class s extends n.QB{}class a extends n.QB{}class o extends n.QB{constructor(e){super(),this.collapsed=e}}class r extends n.QB{constructor(e,t){super(),this.active=e,this.collapsed=t}}class l extends n.QB{constructor(e){super(),this.show=e}}class d extends n.QB{constructor(e){super(),this.visible=e}}},66355:(e,t,i)=>{"use strict";i.d(t,{BW:()=>a,Cp:()=>s,P6:()=>n});const n=50,s=500,a="cloud_initial_tool"},78763:(e,t,i)=>{"use strict";i.d(t,{FU:()=>l,IP:()=>a,OR:()=>o,Qn:()=>r,jL:()=>d,mT:()=>s});var n=i(55141);class s extends n.u{constructor(e={}){super(),this.payload=e}}s.id="TOUR_START";class a extends n.u{constructor(e={}){super(),this.payload=e}}a.id="TOUR_STOP";class o extends n.u{constructor(e,t=!1){super(),this.payload={index:e,instant:t}}}o.id="TOUR_STEP";class r extends n.u{constructor(e,t=!1){super(),this.payload={forward:e,instant:t}}}r.id="TOUR_RELATIVE";class l extends n.u{constructor(){super()}}l.id="TOUR_NEXT_STEP";class d extends n.u{constructor(){super()}}d.id="TOUR_PREVIOUS_STEP"},68930:(e,t,i)=>{"use strict";i.d(t,{K:()=>s,r:()=>a});var n=i(52018);class s extends n.t{constructor(e="Invalid tour transition"){super(e),this.name="TourTransition"}}class a extends n.t{constructor(e="Cannot start tour"){super(e),this.name="TourStart"}}},1333:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{ND:()=>s,_y:()=>n,gX:()=>a,h9:()=>o}),function(e){e[e.Pan=0]="Pan",e[e.PanDollhouse=1]="PanDollhouse",e[e.Zoom=2]="Zoom",e[e.Delay=3]="Delay",e[e.None=4]="None"}(n||(n={})),function(e){e[e.Left=1]="Left",e[e.Auto=0]="Auto",e[e.Right=-1]="Right"}(s||(s={})),function(e){e[e.Move=0]="Move",e[e.Burns=1]="Burns",e[e.Zoom=2]="Zoom",e[e.Path=3]="Path",e[e.FloorChange=4]="FloorChange",e[e.Delay=5]="Delay",e[e.Nop=6]="Nop"}(a||(a={}));const o=[a.Burns,a.Zoom,a.Delay]},22937:(e,t,i)=>{"use strict";i.d(t,{BW:()=>r,YH:()=>d,ap:()=>c,n1:()=>a,pT:()=>l,zM:()=>s,zb:()=>o});var n=i(89103);class s extends n.QB{}class a extends n.QB{constructor(e){super(),this.index=e}}class o extends n.QB{constructor(e){super(),this.index=e}}class r extends n.QB{constructor(e,t,i){super(),this.index=e,this.transitionType=t,this.duration=i}}class l extends n.QB{constructor(e){super(),this.willResume=e}}class d extends n.QB{}class c extends n.QB{}},60152:(e,t,i)=>{"use strict";i.d(t,{BF:()=>c,BS:()=>N,BU:()=>M,DE:()=>k,Dj:()=>p,Dw:()=>w,H1:()=>G,I5:()=>b,IT:()=>L,Ih:()=>D,Jb:()=>I,K1:()=>S,Lh:()=>U,Md:()=>T,QR:()=>A,R8:()=>y,V4:()=>R,VD:()=>E,W0:()=>j,Yh:()=>f,_V:()=>o,_W:()=>r,aS:()=>d,at:()=>P,cS:()=>x,d6:()=>a,dJ:()=>F,fi:()=>g,g$:()=>m,ht:()=>H,jt:()=>u,lo:()=>C,mf:()=>_,oz:()=>h,qN:()=>l,s$:()=>O,uO:()=>v});var n=i(15930),s=i(76318);const a="TourSpeed &wts",o="ToursMetersPerSecond",r=.4,l=10,d=1.25,c=.8,u=6,h=3,m=1e3*c,p=1e3*d,E=600,S=400,O=1200,g=1200,T=35,_=15,A=120,v=1200,N=75,I=400,L=n.Ou-E,f=(s.MF.BASE,"kb"),b="sspa",R=35,y="st",M=R/3500*1e3,D=2,P=52,k=0,w=2e3,C=.2*M,x=3500,H=e=>1===e.getOverrideParam(f,1),U=e=>e.getOverrideParam(y,3500),G=e=>e.getOverrideParam(b,R),F=e=>e.getOverrideParam("ts",-1),j=Object.freeze({walkingTourIncludeExtraPanosDistance:.4,walkingStageMinimumDistance:.8,maxWalkingSweepsBetweenSnapshots:40})},90160:(e,t,i)=>{"use strict";i.d(t,{A0:()=>o,f7:()=>l,rX:()=>d,wg:()=>r});var n=i(86866),s=i(53172),a=i(60152);const o=e=>{let t=a.aS;if(!isNaN(e)){const i=Math.min(Math.max(a._W,e),a.qN);t=(0,n.OF)(i,a._W,a.qN,a.BF,a.oz)}return t},r=e=>(0,n.OF)(e,a.BF,a.jt,a._W,a.qN),l=e=>Math.min(Math.max(a.BF,e),a.jt),d=e=>(0,s.pu)(e)/1e3},44481:(e,t,i)=>{"use strict";i.d(t,{F:()=>l});var n=i(84710),s=i(56413),a=i(95330),o=i(50018),r=i(96425);class l extends n.B{constructor(e,t,i){super(),this.data=e,this.currentTourMode=i,this.name="tours-view-data",this.reelOpen=!1,this.tourSweepViewMapObservable=(0,s.y)(),this.tourModeSettingObservable=(0,a.p)(t)}getPhotosForTour(e){return this.data.getPhotosForTour(e)}isTourEmpty(){return 0===this.data.getSnapshotCount()}onReelChanged(e){return this.data.getReel().onChanged(e)}getTourStoryMode(){return this.currentTourMode===r.cR.STORIES}get tourModeSetting(){return this.tourModeSettingObservable.value}setTourModeSetting(e){this.tourModeSettingObservable.value=e}onTourModeSettingChanged(e){return this.tourModeSettingObservable.onChanged(e)}getSnapshot(e){return this.data.getSnapshot(e)}setSweepsInToursAcrossViews(e){this.atomic((()=>{this.clearTourSweepViews(),e.forEach((e=>{this.addTourSweepForView(e.sweepId,e.viewId)}))}))}getViewsWithSweepInTour(e){return this.getOrInitializeTourViewIdsForSweep(e)}isSweepInAnyTour(e){return this.getOrInitializeTourViewIdsForSweep(e).length>0}isSweepInTourForView(e,t){return this.getOrInitializeTourViewIdsForSweep(e).includes(t)}onSweepsInToursChanged(e){return this.tourSweepViewMapObservable.onChanged(e)}clearTourSweepViews(){this.tourSweepViewMapObservable.clear()}addTourSweepForView(e,t){const i=this.getOrInitializeTourViewIdsForSweep(e,!0);i.includes(t)||i.push(t)}getOrInitializeTourViewIdsForSweep(e,t=!1){const{platformId:i}=o.Ay.parseId(e);let n=this.tourSweepViewMapObservable.get(i);return void 0===n&&(n=[],t&&this.tourSweepViewMapObservable.set(i,n)),n}}},30217:(e,t,i)=>{"use strict";i.d(t,{CL:()=>d,CQ:()=>l,W2:()=>o,qt:()=>a,w7:()=>r,zd:()=>s});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={tourMode:e}}}s.id="TOUR_SET_TOUR_MODE";class a extends n.u{constructor(e,t){super(),this.payload={sid:e,name:t}}}a.id="TOUR_RENAME";class o extends n.u{constructor(e,t){super(),this.payload={sid:e,title:t}}}o.id="TOUR_CHANGE_TITLE";class r extends n.u{constructor(e,t){super(),this.payload={sid:e,description:t}}}r.id="TOUR_CHANGE_DESCRIPTION";class l extends n.u{constructor(e){super(),this.payload={open:e}}}l.id="HIGHLIGHT_REEL_TOGGLE_OPEN";class d extends n.u{constructor(e){super(),this.payload={show:e}}}d.id="HIGHLIGHT_REEL_SHOW_STORY_TEXT"},21875:(e,t,i)=>{"use strict";i.d(t,{R:()=>c,l:()=>d});var n=i(84710),s=i(1333),a=i(95330),o=i(12554),r=i(96425),l=i(74381);const d={active:!1,type:s.gX.Move,promise:Promise.resolve(),stop:()=>Promise.resolve(),toIndex:-1,duration:0,started:-1,stopped:-1};class c extends n.B{constructor(e={},t,i,n,s,l){super(),this.snapshots=e,this.activeReel=t,this.allowedModes=i,this.isSweepDisabled=n,this.looping=s,this.log=l,this.name="tour",this.tourState=r.Ci.Inactive,this.transitionObservable=(0,a.p)(d),this.tourCurrentSnapshot=-1,this.enabledTourStops=(0,o.Z)([]),this.tourPlaying=!1,this.tourWillResume=!1,this.tourEnded=!1,this.updateEnabledStops=e=>{if(this.enabledTourStops.replace([]),this.activeReel&&this.activeReel.reel)for(const t of this.activeReel.reel)if(t&&t.sid in this.snapshots){const i=this.snapshots[t.sid],n=i.metadata.cameraMode,s=i.metadata.scanId,a=-1!==e.indexOf(n),o=!!s&&!this.isSweepDisabled(s);a&&(!s||o)&&this.enabledTourStops.push(t.sid)}},this.updateEnabledStops(i()),this.looping=s,this.commit()}setHighlightReel(e){this.atomic((()=>{this.activeReel.replace(e),this.updateEnabledStops(this.allowedModes()),this.resetEmptyReel()}));const t=this.getReel().reel.length,i=this.getSnapshotCount();t!==i&&this.log.info(t-i+" highlights disabled and hidden from reel")}addSnapshotToTour(e,t=r.dO.Current){this.snapshots[e.sid]=e;this.allowedModes().includes(e.metadata.cameraMode)&&this.enabledTourStops.push(e.sid);const i=this.tourCurrentSnapshotSid;switch(this.tourCurrentSnapshotSid=e.sid,t){case r.dO.Beginning:this.tourCurrentSnapshot=0,this.activeReel.reel.insert(0,{sid:e.sid});break;case r.dO.End:this.tourCurrentSnapshot=this.enabledTourStops.length-1,this.activeReel.reel.push({sid:e.sid});break;case r.dO.Current:if(void 0===i)this.tourCurrentSnapshot=this.enabledTourStops.length-1,this.activeReel.reel.push({sid:e.sid});else{let t=this.activeReel.reel.findIndex((e=>!!e&&e.sid===i))+1;(t<=0||t>this.activeReel.reel.length)&&(t=this.activeReel.reel.length-1),this.tourCurrentSnapshot=this.tourCurrentSnapshot+1,this.activeReel.reel.insert(t,{sid:e.sid})}break;default:throw new Error(`Tours.addSnapshotToTour not implemented: ${t}`)}this.useTransition(d),this.commit()}clearHighlightOverrides(e,t,i){if(!t&&!i)return;const n={};t&&(n.transitionType=void 0),i&&(n.panDirection=void 0,n.panAngle=void 0),this.applyHighlightOverrides(e,n)}clearAllHighlightOverrides(){this.getReel().reel.forEach((e=>{e&&this.clearHighlightOverrides(e.sid,!0,!0)}))}resetAllTransitionTypeOverrides(){if(this.activeReel&&this.activeReel.reel){let e=!1;this.activeReel.reel.forEach(((t,i)=>{t&&t.overrides&&t.overrides.transitionType&&(delete t.overrides.transitionType,this.activeReel.reel.update(i,t),e=!0)})),e&&this.activeReel.setDirty()}}resetAllPanSettingOverrides(){if(this.activeReel&&this.activeReel.reel){let e=!1;this.activeReel.reel.forEach(((t,i)=>{t&&t.overrides&&(void 0===t.overrides.panAngle&&void 0===t.overrides.panDirection||(delete t.overrides.panAngle,delete t.overrides.panDirection,e=!0,this.activeReel.reel.update(i,t)))})),e&&this.activeReel.setDirty()}}applyHighlightOverrides(e,t){const i=this.activeReel.reel.findIndex((t=>!!t&&t.sid===e));this.setHighlightOverrides(i,t)}setHighlightOverrides(e,t){const i=this.activeReel.reel.get(e);if(!i)throw Error(`Highlight not found for ${e}`);const n={sid:i.sid,title:i.title,description:i.description};i.overrides?(n.overrides=Object.assign({},i.overrides),t.hasOwnProperty("panDirection")&&(n.overrides.panDirection=t.panDirection),t.hasOwnProperty("transitionType")&&(n.overrides.transitionType=t.transitionType),t.hasOwnProperty("panAngle")&&(n.overrides.panAngle=t.panAngle)):n.overrides={transitionType:t.transitionType,panDirection:t.panDirection,panAngle:t.panAngle},this.activeReel.reel.update(e,n)}updateReelEntry(e){const{sid:t}=e,i=this.activeReel.reel.findIndex((e=>!!e&&e.sid===t));if(-1===i)throw Error(`Reel entry not found for ${t}`);const n=this.activeReel.reel.get(i);if(!e)throw Error(`Reel entry not found for ${i}`);const s=Object.assign({},n,e);this.activeReel.reel.update(i,s)}moveTourStop(e,t){const i=this.activeReel.reel.findIndex((t=>!!t&&t.sid===e)),n=this.activeReel.reel.findIndex((e=>!!e&&e.sid===t));this.activeReel.reel.move(i,n)}clear(){this.resetEmptyReel(),this.enabledTourStops.replace([]),this.activeReel.reel.length=0,this.commit()}removeTourStop(e){const t=this.enabledTourStops.indexOf(e),i=this.activeReel.reel.findIndex((t=>!!t&&t.sid===e)),n=this.getTourIndexBySid(e);if(-1!==t&&this.enabledTourStops.splice(t,1),this.enabledTourStops.length>0){const e=n<=this.tourCurrentSnapshot?this.tourCurrentSnapshot-1:this.tourCurrentSnapshot;this.setTourCurrentSnapshotByIndex(Math.max(e,0))}else this.resetEmptyReel();this.activeReel.reel.remove(i)}getReel(){return this.activeReel}isLooping(){return this.looping}setLooping(e){this.looping=e}getActiveReelTourMode(){return this.activeReel.mode||l.UR.REEL}setActiveReelTourMode(e){this.activeReel.mode=e,this.activeReel.commit()}isTourActive(){return this.tourState!==r.Ci.Inactive}getCurrentTourState(){return{currentStep:this.getTourCurrentSnapshotIndex(),tourPlaying:this.tourPlaying||this.tourWillResume,totalSteps:this.getSnapshotCount(),tourEnded:this.tourEnded,activeStep:this.transition&&-1!==this.transition.toIndex?this.transition.toIndex:this.getTourCurrentSnapshotIndex(),highlights:this.getReelHighlights(),transition:this.transition,hasTours:this.tourExistsInAnyView()}}tourExistsInAnyView(){if(this.getSnapshotCount()>0)return!0;for(const e of Object.values(this.snapshots))if("tour"===e.category)return!0;return!1}get transition(){return this.transitionObservable.value}isTourTransitionActive(){return this.transition.active}getTourTransitionType(){return this.transition.type}useTransition(e){this.transitionObservable.value=e}async stopTourTransition(){await this.transition.stop()}iterateSnapshots(e){let t=0;this.activeReel.reel.forEach((i=>{if(i&&this.isEnabled(i.sid)){const n=this.snapshots[i.sid];e(n,t++)}}))}isSnapshotInTour(e){return-1!==this.activeReel.reel.findIndex((t=>!!t&&t.sid===e))}getEnabledSnapshots(){const e=[];return this.iterateSnapshots(((t,i)=>{e.push(t)})),e}updateSnapshots(e){this.snapshots=e}async getPhotosForTour(e){const t=[];for(const i in this.snapshots){const n=this.snapshots[i];"tour"!==n.category&&"panorama"!==n.category&&n.sourceViewId===e&&t.push({name:n.name,sid:n.sid,thumbnailUrl:await n.thumbnailUrl.get(),inReel:this.isSnapshotInTour(i),created:n.created})}return t.sort(((e,t)=>(t.inReel?-10:e.inReel?10:1)*t.created.getTime()-e.created.getTime())),t}getSnapshot(e){return this.snapshots[e]}getTourStop(e){const t=this.activeReel.reel.findIndex((t=>!!t&&t.sid===e)),i=this.activeReel.reel.get(t);return{snapshot:this.getSnapshot(e),reelEntry:i}}getReelHighlights(){const e=[];return this.activeReel.reel.forEach((t=>{if(t&&this.isEnabled(t.sid)){const i=this.snapshots[t.sid];if(i){const n=t.overrides&&t.overrides.panDirection,s=t.overrides&&t.overrides.panAngle;e.push({id:i.sid,snapshot:i,panDirection:n,panAngle:s,transitionType:t.overrides&&t.overrides.transitionType,title:t.title,description:t.description})}}})),e}getSnapshotCount(){return this.enabledTourStops.length}getTourState(){return this.tourState}setTourState(e){this.tourState=e,this.commit()}getTourCurrentSnapshotIndex(){return this.tourCurrentSnapshot}getTourCurrentSnapshotSid(){return this.tourCurrentSnapshotSid}getTourSnapshotSid(e){let t=0;for(const i of this.activeReel.reel)if(i&&this.isEnabled(i.sid)){if(t===e)return i.sid;t++}throw new Error("getTourSnapshotSid() -> Invalid snapshot index.")}getTourSnapshotsWithSweepId(e){const t=[];for(const i of this.activeReel.reel)i&&i.sid in this.snapshots&&this.snapshots[i.sid].metadata.scanId===e&&t.push(i.sid);return t}setTourCurrentSnapshotByIndex(e){if(e<0||e>this.getSnapshotCount())throw new Error("setTourCurrentSnapshotByIndex() -> Invalid tour index.");let t=-1;for(const i of this.activeReel.reel)if(i&&this.isEnabled(i.sid)&&(t++,t===e)){this.tourCurrentSnapshot=e,this.tourCurrentSnapshotSid=i.sid;break}-1===t&&this.resetEmptyReel(),this.commit()}getTourIndexBySid(e){let t=-1;for(const i of this.activeReel.reel)if(i&&this.isEnabled(i.sid)&&(t++,i.sid===e))return t;return-1}isEnabled(e){return-1!==this.enabledTourStops.indexOf(e)}resetEmptyReel(){this.tourCurrentSnapshot=-1,this.tourCurrentSnapshotSid=void 0,this.useTransition(d),this.commit()}}},96425:(e,t,i)=>{"use strict";var n,s,a;i.d(t,{Ci:()=>s,cR:()=>n,dO:()=>a}),function(e){e.NONE="none",e.STORIES="stories",e.LEGACY="legacy"}(n||(n={})),function(e){e[e.Inactive=0]="Inactive",e[e.Active=1]="Active",e[e.StopScheduled=2]="StopScheduled"}(s||(s={})),function(e){e[e.Beginning=0]="Beginning",e[e.Current=1]="Current",e[e.End=2]="End"}(a||(a={}))},5275:(e,t,i)=>{"use strict";i.d(t,{U:()=>a});var n=i(87805),s=i(44481);const a=(0,n.r)(s.F,"reelOpen",!1)},75622:(e,t,i)=>{"use strict";i.d(t,{F:()=>r});var n=i(96540),s=i(22937),a=i(34184),o=i(53289);function r(){const[e,t]=(0,n.useState)(!1),i=(0,n.useCallback)((()=>{t(!0)}),[]),r=(0,n.useCallback)((()=>{t(!1)}),[]);return(0,o.J)(s.n1,i),(0,o.J)(a.A,r),e}},41299:(e,t,i)=>{"use strict";i.d(t,{F:()=>u,K:()=>c});var n=i(96540),s=i(96425),a=i(55285),o=i(61260),r=i(15498),l=i(96282);const d=3e3;function c(){const e=(0,r.l)(),t=(0,l.t)(),i=(0,n.useRef)(0),[o,c]=(0,n.useState)(!1),u=t.active,h=e===s.cR.STORIES;return(0,a.w5)((()=>(c(!0),window.clearTimeout(i.current),u?()=>{}:(i.current=window.setTimeout((()=>{c(!1)}),d),()=>window.clearTimeout(i.current)))),[u]),h&&(u||o)}const u=(0,o.c)("showStoryTour",c)},42107:(e,t,i)=>{"use strict";i.d(t,{I:()=>c,X:()=>n});var n,s=i(96540),a=i(1333),o=i(45202),r=i(67491),l=i(30741);!function(e){e.FastForwarding="fast-forwarding",e.Idle="idle",e.Completed="completed",e.Paused="paused",e.Playing="playing",e.Rewinding="rewinding",e.Skipping="skipping"}(n||(n={}));const d=[n.FastForwarding,n.Playing,n.Rewinding];function c(){var e;const t=(0,s.useRef)(null),i=(0,l.u)(),c=(0,o.v)(),u=(0,r.I)(),h=u.toIndex,m=-1!==h&&h!==c;let p=n.Idle;m?p=0===h&&c===i-1?n.FastForwarding:Math.abs(h-c)>1?n.Skipping:h=.99&&(E=!0,e===n.Rewinding&&(p=n.Idle),e!==n.Playing&&e!==n.FastForwarding||(p=n.Completed))}}return d.includes(p)?t.current={transition:u,animation:p,index:c}:E||(t.current=null),p}},45202:(e,t,i)=>{"use strict";i.d(t,{v:()=>a});var n=i(87805),s=i(21875);const a=(0,n.r)(s.R,"tourCurrentSnapshot",-1)},49865:(e,t,i)=>{"use strict";i.d(t,{o:()=>a});var n=i(71555),s=i(21875);const a=(0,n.v)(s.R)},30741:(e,t,i)=>{"use strict";i.d(t,{u:()=>l});var n=i(96540);var s=i(12554),a=i(49865);const o=(0,s.Z)([]);function r(){const e=(0,a.o)();return function(e){const[t,i]=(0,n.useState)(e.values());return(0,n.useEffect)((()=>{const t=()=>{i(e.values())},n=e.onChanged(t);return t(),()=>n.cancel()}),[e]),t}(e?e.enabledTourStops:o)}function l(){return r().length}},15498:(e,t,i)=>{"use strict";i.d(t,{l:()=>a});var n=i(44481),s=i(96425);const a=(0,i(87805).r)(n.F,"currentTourMode",s.cR.NONE)},96282:(e,t,i)=>{"use strict";i.d(t,{t:()=>l});var n=i(22044),s=i(95330),a=i(49865),o=i(21875);const r=(0,s.p)(o.l);function l(){const e=(0,a.o)();return(0,n.A)(e?e.transitionObservable:r)}},67491:(e,t,i)=>{"use strict";i.d(t,{I:()=>o});var n=i(96540),s=i(1333),a=i(96282);function o(){const e=(0,a.t)(),t=(0,n.useRef)(e);return e.type===s.gX.FloorChange?t.current:(t.current=e,e)}},87743:(e,t,i)=>{"use strict";i.d(t,{Yg:()=>s,e0:()=>a,lz:()=>o});var n=i(89103);class s extends n.QB{constructor(){super()}}class a extends n.QB{constructor(){super()}}class o extends n.QB{constructor(){super()}}},19702:(e,t,i)=>{"use strict";i.d(t,{AI:()=>n,Cs:()=>h,D:()=>d,GO:()=>S,NN:()=>m,XJ:()=>l,bp:()=>s,g:()=>c,ky:()=>p,nn:()=>a,no:()=>o,np:()=>u,wo:()=>r,yL:()=>E});const n="tour-stories",s="spaces.tours_v2",a="tours2",o="gt",r=0,l=1,d="hr",c=0,u=1,h="tour",m=0,p=1,E=2,S=3},35447:(e,t,i)=>{"use strict";i.d(t,{EI:()=>c,Kl:()=>d,cJ:()=>r,v:()=>l});var n=i(74381),s=i(56208),a=i(96425),o=i(19702);function r(e){const t=e.tryGetProperty(s.Q$.HighlightReel,!0),i=e.getOverrideParam(o.D,o.np),n=e.getOverrideParam(o.Cs,o.ky);return t&&i!==o.g&&n!==o.NN}function l(e,t){const i=function(e){const t=e.tryGetProperty(s.Q$.TourButtons,!0),i=e.getOverrideParam(o.no,o.XJ),n=e.getOverrideParam(o.Cs,o.ky);return t&&i!==o.wo&&n!==o.NN}(e),n=r(e);return i||n?d(e,t)?a.cR.STORIES:a.cR.LEGACY:a.cR.NONE}function d(e,t){const i=e.getOverrideParam(o.Cs,o.ky);return i===o.yL||i!==o.GO&&t===n.UR.STORY}function c(e,t){const i=e.tryGetProperty(s.Q$.TourButtons,!0),o=e.tryGetProperty(s.Q$.HighlightReel,!0);return i||o?t===n.UR.STORY?a.cR.STORIES:a.cR.LEGACY:a.cR.NONE}},33156:(e,t,i)=>{"use strict";i.d(t,{E:()=>d});var n=i(84710),s=i(56413),a=i(74381),o=i(45332),r=i(87193),l=i(33895);class d extends n.B{constructor(e,t,i,n,l,d){super(),this.orgAdmin=i,this.modelOrgId=n,this.modelCreated=l,this.isDemo=d,this.name="users-data",this.users=(0,s.y)();const c=e.modelAccess||a.OQ.PUBLIC;this.currentUser=new o.o(Object.assign(Object.assign({},e),{modelAccess:c,userStatus:t?r._.KNOWN:r._.UNKNOWN})),this.addUser(this.currentUser)}loadSearchResults(e,t,i){this.atomic((()=>{e.forEach((e=>{this.loadUser(Object.assign(Object.assign({},e),{userStatus:r._.KNOWN}))})),t.forEach((e=>{this.users.get(e)||this.loadUser({email:e,id:"",userStatus:i,modelAccess:a.OQ.PUBLIC,firstName:null,lastName:null})}))}))}loadKnownUsers(e){this.atomic((()=>{e.forEach((e=>{this.loadKnownUser(e)}))}))}loadKnownUser(e){return this.loadUser(Object.assign(Object.assign({},e),{userStatus:r._.KNOWN}))}loadContributor(e){const t=this.users.get(e.email);return t||this.loadUser(Object.assign(Object.assign({},e),{userStatus:r._.CONTRIBUTOR}))}loadFailedUser(e){return this.loadUser(Object.assign(Object.assign({},e),{userStatus:r._.FAILED}))}loadUser(e){let t=this.users.get(e.email);return e.email===this.currentUser.email||t&&t.userStatus===r._.KNOWN&&t.modelAccess!==a.OQ.PUBLIC||(t=new o.o(e),t?this.users.set(e.email,t):this.addUser(t)),t}getUserInfoByEmail(e){return this.users.has(e)?this.users.get(e):null}getUserInfoById(e){return""===e?null:this.users.values.find((t=>t.id===e))||null}getUserDisplay(e){return this.users.has(e)?this.users.get(e):(0,l.A)(e)}iterate(e){for(const t of this.users)e(t)}getUsersWhoMayNeedAccess(){const e={};return this.users.values.forEach((t=>{t.userStatus===r._.KNOWN&&t.modelAccess!==a.OQ.PUBLIC||(e[t.email]=t)})),e}getKnownUsers(){return this.users.values.filter((e=>e.userStatus===r._.KNOWN))}addUser(e){this.users.has(e.email)||this.users.set(e.email,e)}getCurrentUser(){return this.currentUser}isLoggedIn(){return!!this.currentUser.id}isOrgAdmin(){return this.orgAdmin}isInviter(){return this.orgAdmin}getModelOrganizationId(){return this.modelOrgId}getModelCreatedDate(){return this.modelCreated}isDemoModel(){return!!this.isDemo}isEditor(){return this.currentUser.modelAccess===a.OQ.FULL}isCommenter(){const{modelAccess:e}=this.currentUser;return e===a.OQ.VIEWER||e===a.OQ.FULL}getCurrentUserId(){return this.currentUser.id}onUsersChanged(e){return this.users.onChanged(e)}}},45332:(e,t,i)=>{"use strict";i.d(t,{o:()=>o});var n=i(74381),s=i(87193),a=i(33895);class o{constructor(e){this.email="",this.id="",this.firstName="",this.lastName="",this.modelAccess=n.OQ.PUBLIC,this.userStatus=s._.UNKNOWN,this.name="",this.initials="",this.color="",e&&Object.assign(this,e);const t=this.id?this.getFullName(this.firstName,this.lastName):"";this.name=t||this.email||"",this.initials=this.getInitials(this.name),this.color=(0,a.g)(this.id)}getFullName(e,t){return e&&t?`${e} ${t}`:e||t}getInitials(e){const t=e?e.split(" ").map((e=>e[0])).join(""):"?";return t.length<3?t:`${t[0]}${t[t.length-1]}`}}},87193:(e,t,i)=>{"use strict";var n;i.d(t,{_:()=>n}),function(e){e.UNKNOWN="unknown",e.FAILED="failed",e.MENTIONED="mentioned",e.CONTRIBUTOR="contributor",e.KNOWN="known"}(n||(n={}))},33895:(e,t,i)=>{"use strict";i.d(t,{A:()=>l,g:()=>r});var n=i(25712),s=i(87193),a=i(74381);const o=["#d44441","#f44336","#e91e63","#f78da7","#9c4b92","#673ab7","#5c7fff","#03a9f4","#417505","#00bcd4","#51a868","#37d67a","#cddc39","#fbcd00","#ffac17","#ff6900","#abb8c3","#607d8b"];function r(e){const t=o.length;return o[(0,n.Iy)(e||"",t)]}function l(e){return{email:e,id:"",firstName:"",lastName:"",name:"Unknown",initials:"?",color:r(e),userStatus:s._.UNKNOWN,modelAccess:a.OQ.PUBLIC}}},46793:(e,t,i)=>{"use strict";i.d(t,{De:()=>l,S2:()=>c,gB:()=>d,ty:()=>r,w5:()=>n});var n,s=i(55141),a=i(2993),o=i(13893);!function(e){e.INSIDE="mode.inside",e.OUTSIDE="mode.outside",e.DOLLHOUSE="mode.dollhouse",e.FLOORPLAN="mode.floorplan",e.TRANSITIONING="mode.transitioning",e.ORTHOGRAPHIC="mode.orthographic",e.MESH="mode.mesh"}(n||(n={}));const r=n.INSIDE,l=(n.INSIDE,a.N3.Panorama,n.DOLLHOUSE,a.N3.Dollhouse,n.FLOORPLAN,a.N3.Floorplan,n.TRANSITIONING,a.N3.Transition,n.OUTSIDE,a.N3.Outdoor,n.ORTHOGRAPHIC,a.N3.Orthographic,n.MESH,a.N3.Mesh,{[a.N3.Panorama]:n.INSIDE,[a.N3.Dollhouse]:n.DOLLHOUSE,[a.N3.Floorplan]:n.FLOORPLAN,[a.N3.Transition]:n.TRANSITIONING,[a.N3.Outdoor]:n.OUTSIDE,[a.N3.Orthographic]:n.ORTHOGRAPHIC,[a.N3.Mesh]:n.MESH}),d=e=>{const t=l[e];return void 0!==t?t:n.OUTSIDE};class c extends s.u{constructor(e,t=o.fl.Interpolate,i={},n){super(),this.payload={mode:e,transitionType:t,pose:i,transitionTime:n}}}c.id="CHANGE_VIEWMODE"},15580:(e,t,i)=>{"use strict";i.d(t,{_z:()=>s,cW:()=>d,n9:()=>a,sj:()=>l});var n=i(56208);const s="showcase-floor_plan",a="showcase-dollhouse",o="fp",r="dh";function l(e,t){return c(n.Q$.FloorPlan,s,o,e,t)}function d(e,t){return c(n.Q$.Dollhouse,a,r,e,t)}function c(e,t,i,n,s){const a=n.tryGetProperty(e,!1),o=!s&&0===n.getOverrideParam(i,1),r=a&&!o;return n.setProperty(t,r),r}},85281:(e,t,i)=>{"use strict";i.d(t,{e:()=>n,n:()=>s});const n="features/dollhouse-nudge",s="features/roombounds-floorplan-nudge"},98309:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(45862);class s extends n.Y{}},1197:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(45862);class s extends n.Y{}},45862:(e,t,i)=>{"use strict";i.d(t,{Y:()=>s});var n=i(89103);class s extends n.QB{constructor(e,t){super(),this.fromMode=t,this.toMode=e,this.timestamp=Date.now()}}},2993:(e,t,i)=>{"use strict";var n;i.d(t,{N3:()=>n,Te:()=>s,nI:()=>a,vy:()=>o}),function(e){e[e.Panorama=1]="Panorama",e[e.Dollhouse=2]="Dollhouse",e[e.Floorplan=3]="Floorplan",e[e.Outdoor=4]="Outdoor",e[e.Orthographic=5]="Orthographic",e[e.Mesh=6]="Mesh",e[e.Transition=-1]="Transition"}(n||(n={}));const s=e=>{switch(e){case n.Panorama:return"Panorama";case n.Floorplan:return"Floorplan";case n.Dollhouse:return"Dollhouse";case n.Transition:return"Transition";case n.Orthographic:return"Orthographic";case n.Mesh:return"Mesh"}return"Unknown"};function a(e){return e===n.Panorama||e===n.Mesh}function o(e){return e===n.Panorama}},99583:(e,t,i)=>{"use strict";i.d(t,{X:()=>r});var n=i(84710),s=i(2993),a=i(95330),o=i(19968);class r extends n.B{constructor(){super(),this.name="viewmode",this.modes=s.N3,this.transitionActiveObservable=(0,a.p)(!1),this.isDollhouseDisabled=()=>!1,this.isFloorplanDisabled=()=>!1,this.currentModeObservable=(0,a.p)(null),this.viewmodeChangeEnabledObservable=(0,a.p)(!0),this.transition={active:!1,progress:0,from:null,isFromPitchFactorOrtho:!1,to:null,isToPitchFactorOrtho:!1,startTime:0,transitionTime:0},this.isPano=this.isPano.bind(this),this.isFloorplan=this.isFloorplan.bind(this),this.isInside=this.isInside.bind(this),this.isDollhouse=this.isDollhouse.bind(this),this.isOrthographic=this.isOrthographic.bind(this)}get currentMode(){return this.currentModeObservable.value}set currentMode(e){e!==this.currentModeObservable.value&&(this.currentModeObservable.value=e)}get viewmodeChangeEnabled(){return this.viewmodeChangeEnabledObservable.value}set viewmodeChangeEnabled(e){this.viewmodeChangeEnabledObservable.value=e}peekabooCorrectedMode(e){return this.isDollhouse()&&e.pose.isPitchFactorOrtho.value?s.N3.Floorplan:this.currentMode}get closestMode(){return this.currentMode===s.N3.Transition?this.transition.progress<.5?this.transition.from:this.transition.to:this.currentMode}makeModeChangeSubscription(e){return this.currentModeObservable.onChanged(e)}activateTransition(e,t,i,n,a){this.transition.active=!0,this.transition.progress=0,this.transition.startTime=Date.now(),this.transition.transitionTime=i,this.transition.to=t,this.transition.from=e;const r=null==n?e===s.N3.Floorplan?0:1:n,l=null==a?t===s.N3.Floorplan?0:1:a;this.transition.isFromPitchFactorOrtho=(0,o.aY)(r),this.transition.isToPitchFactorOrtho=(0,o.aY)(l),this.transitionActiveObservable.value=!0}deactivateTransition(){this.transition.active=!1,this.transitionActiveObservable.value=!1}isPano(){return this.currentMode===s.N3.Panorama}isInside(){return(0,s.nI)(this.currentMode)}isMesh(){return this.currentMode===s.N3.Mesh}isFloorplan(){return this.currentMode===s.N3.Floorplan}isDollhouse(){return this.currentMode===s.N3.Dollhouse}isOrthographic(){return this.currentMode===s.N3.Orthographic}insideModeTransitionProgress(){if(this.transition.active){const e=(0,s.nI)(this.transition.to),t=(0,s.nI)(this.transition.from);return e||t?e&&!t?this.transition.progress:!e&&t?1-this.transition.progress:1:0}return this.isInside()?1:0}canStartTransition(){const e=this.transition.active,t=this.currentMode===s.N3.Transition;return!e&&!t}transitionActive(){return!this.canStartTransition()}isTargetMode(e){const t=this.transition.from===this.transition.to,i=this.currentMode===e;return this.transition.active&&t||i}canSwitchViewMode(e){return this.canStartTransition()&&this.viewmodeChangeEnabled&&!this.isTargetMode(e)}}},11180:(e,t,i)=>{"use strict";i.d(t,{x:()=>a});var n=i(96540),s=i(88581);function a(){const e=(0,s.o)(),[t,i]=(0,n.useState)(null);return(0,n.useEffect)((()=>{if(!e)return()=>{};const t=e.currentModeObservable.onChanged(i);return i(e.currentMode),()=>t.cancel()}),[e]),t}},88581:(e,t,i)=>{"use strict";i.d(t,{o:()=>a});var n=i(71555),s=i(99583);const a=(0,n.v)(s.X)},15930:(e,t,i)=>{"use strict";i.d(t,{Ou:()=>s});var n=i(2993);n.N3.Dollhouse,n.N3.Panorama;const s=1e3},84522:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload=Object.assign({},e)}}s.id="GET_SCREEN_POS"},10711:(e,t,i)=>{"use strict";i.d(t,{s:()=>s,y:()=>a});var n=i(52018);class s extends n.t{constructor(e){super(e)}}class a extends n.t{constructor(e){super(e)}}},86721:(e,t,i)=>{"use strict";i.d(t,{P:()=>a,X:()=>s});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload=Object.assign({},e)}}s.id="XR_PRESENT";class a extends n.u{constructor(){super()}}a.id="XR_PRESENT_END"},26059:(e,t,i)=>{"use strict";i.d(t,{F7:()=>n,RN:()=>a,qy:()=>s});const n="features/xr_browser_lock",s=!1,a="xruntested"},4896:(e,t,i)=>{"use strict";i.d(t,{M1:()=>l,ni:()=>r,wc:()=>n});var n,s=i(64491),a=i(21320),o=i(35404);!function(e){e.webxr="webxr",e.unsupported="unsupported"}(n||(n={}));const r=e=>{const t=!!e.tryGetProperty("is_vr",!1),i=e.tryGetProperty(o.qu,!1),n=e.getOverrideParam("vr",1);return t&&!(!n||2===n&&!(0,s.m0)())&&!i},l=async(e=!1)=>{const t=await a.A.isSessionSupported("immersive-vr");return window.isSecureContext&&(e||(0,s.Ap)()||(0,s.qL)()||!(0,s.Fr)())&&t?n.webxr:n.unsupported}},21320:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});const n=new(i(10843).Ay)("vr-platform-select"),s=()=>{const e=void 0!==navigator&&"xr"in navigator&&void 0!==navigator.xr&&"isSessionSupported"in navigator.xr&&"requestSession"in navigator.xr;return window.isSecureContext&&e},a={isSessionSupported:async(e="immersive-vr")=>{var t;let i=!1;if(s())try{i=!!await(null===(t=null===navigator||void 0===navigator?void 0:navigator.xr)||void 0===t?void 0:t.isSessionSupported(e))}catch(e){n.info("WebXR disabled",e)}return n.debug(`WebXR session type: ${e} supported: ${i}`),i},apiExists:s}},74717:(e,t,i)=>{"use strict";i.d(t,{BW:()=>r,De:()=>a,EG:()=>s,hd:()=>l,i9:()=>o});var n=i(55141);class s extends n.u{constructor(e){super(),this.payload={step:e}}}s.id="ZOOM_IN";class a extends n.u{constructor(e){super(),this.payload={step:e}}}a.id="ZOOM_OUT";class o extends n.u{}o.id="ZOOM_RESET";class r extends n.u{}r.id="ZOOM_MAX_VALUE";class l extends n.u{constructor(e){super(),this.payload={value:e}}}l.id="ZOOM_SET"},59155:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var n=i(68909),s=i(8203),a=i.n(s),o=i(74869),r=i.n(o),l=i(87208),d=i.n(l),c=i(67422),u=i.n(c);const h={basicTextured:{uniforms:{tDiffuse:{value:null},alpha:{value:1}},vertexShader:a(),fragmentShader:r()},screenSpaceColored:{uniforms:{color:{value:new n.Vector3(0,0,0)},opacity:{value:1}},vertexShader:d(),fragmentShader:u()}}},97171:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});const n={Navigation:Symbol("nav"),WebGLRenderer:Symbol("webgl-renderer"),ModelMesh:Symbol("model-mesh"),Octree:Symbol("raycast-octree"),PanoTiles:Symbol("pano-tiles-preload"),Raycaster:Symbol("raycast"),Snapping:Symbol("snap"),StreamingTexture:Symbol("stream-textures"),StreamingMesh:Symbol("stream-mesh")}},70046:(e,t,i)=>{"use strict";i.d(t,{$2:()=>u,GL:()=>d,nt:()=>c,sb:()=>l});var n=i(89103),s=i(68986),a=i(3066);const o=new(i(10843).Ay)("symbols"),r=[];class l extends n.QB{constructor(e){super(),this.symbol=e}}class d extends n.QB{constructor(e){super(),this.payload=e}}class c extends n.QB{constructor(e){super(),this.payload=e}}function u(e){return new s.P((0,a.Sh)((()=>null),(()=>r.length=0)),e.messageBus.subscribe(d,(e=>{r.push(e.payload)})),e.messageBus.subscribe(c,(e=>{const t=r.findIndex((t=>t.symbol===e.payload.symbol&&t.callback===e.payload.callback));t>=0&&r.splice(t,1)})),e.messageBus.subscribe(l,(e=>{r.forEach((t=>{if(t.symbol===e.symbol)try{t.callback()}catch(t){o.warn("Error handling SymbolMessage",e,t)}}))})))}},23184:(e,t,i)=>{"use strict";i.d(t,{f:()=>n});class n{static isValue(e){return new n(new s(e))}static isType(e){return new n(new a(e))}static isInstanceOf(e){return new n(new o(e))}static is(e){return new n(new r(e))}static isAny(){return new n(new l)}constructor(e){this.matcher=e}compare(e){return this.matcher.matches(e)}}class s{constructor(e){this.value=e}matches(e){return this.value===e}}class a{constructor(e){this.type=e}matches(e){return Object.getPrototypeOf(e).constructor===this.type}}class o{constructor(e){this.type=e}matches(e){if("object"==typeof e)return e instanceof this.type;const t=this.type;switch(typeof e){case"number":return t===Number;case"string":return t===String;case"boolean":return t===Boolean;case"function":return t===Function}return!1}}class r{constructor(e){this.predicate=e}matches(e){return this.predicate(e)}}class l{constructor(){}matches(){return!0}}},2803:(e,t,i)=>{"use strict";i.d(t,{_:()=>l,f:()=>d});var n=i(10843),s=i(70516),a=i(31093);const o=new n.Ay("expiring-resource"),r=new WeakMap;function l(e,t){(0,s.S)(e,(e=>{e instanceof d&&(e.onStale=t)}))}class d{constructor(e,t){this.value=e,this.validUntil=t}refreshFrom(e){if(!e)return;this.value=e.value,this.validUntil=e.validUntil;const t=r.get(this);t&&(t.resolve(),r.delete(this))}async get(){if(this.validUntil&&this.onStale){const e=Date.now();if(e+6e4+1e4>this.validUntil.getTime()){let t=r.get(this);t||(t=new a.i,r.set(this,t),this.onStale()),e+6e4+1e3>this.validUntil.getTime()&&(o.info("Stale resource, waiting for refresh"),await t.nativePromise(),o.info("Refreshed resource"))}}return this.value}getCurrentValue(){return this.value}}},40397:(e,t,i)=>{"use strict";i.d(t,{BN:()=>L,Gp:()=>p,KK:()=>b,MN:()=>y,Nv:()=>N,Rc:()=>E,Vg:()=>v,bw:()=>O,cv:()=>D,fR:()=>S,ff:()=>I,fg:()=>T,hm:()=>A,kf:()=>g,nk:()=>M,qK:()=>_,xF:()=>f});var n=i(68909),s=i(46771),a=i(81662),o=i(27625),r=i(33007),l=i(86866),d=i(12767),c=i(53172),u=i(19968),h=i(64208),m=i(3249);const p=e=>!!e&&1===e.elements[15],E=e=>!!e&&(e.elements[15]>0&&e.elements[15]<1),S=((()=>{const e=new n.Object3D,t=new n.Vector3})(),(()=>{const e=new n.Vector3})(),(()=>{const e=new n.Vector3})(),(()=>{const e=new n.Vector3,t=new n.Vector3;return(i,n,s,o)=>(e.copy(n).sub(i),o?t.copy(a.B1.UP):t.copy(e).applyAxisAngle(a.B1.UP,-1*Math.PI/2).setY(0).normalize(),e.applyAxisAngle(t,s),n.clone().sub(e))})()),O=(()=>{const e=new n.Vector3,t=new n.Vector3;return(i,s,a)=>(e.copy(i).sub(s).normalize(),t.copy(i).sub(a).normalize(),(new n.Quaternion).setFromUnitVectors(e,t))})(),g=(()=>{const e=new s.k;return(t,i)=>(e.setPosition(t),e.lookAt(t,i,a.B1.UP),(new n.Quaternion).setFromRotationMatrix(e.asThreeMatrix4()))})(),T=(()=>{const e=new n.Vector3;return(t,i,n)=>(e.copy(a.B1.FORWARD).applyQuaternion(t).normalize(),e.clone().multiplyScalar(-1*n).add(i))})(),_=(()=>{const e=new n.Ray,t=new n.Vector3,i=new n.Vector3;return(n,s,o)=>(i.set(0,0,0),t.copy(a.B1.FORWARD).applyQuaternion(s),e.set(n,t),e.intersectPlane(o,i))})(),A=(()=>{const e=new n.Vector3,t=new n.Vector3,i=new n.Vector3,s=new n.Vector3,o=[new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3],r=new n.Vector3,d=new n.Vector3,c=new n.Vector3,u=new n.Vector3,h=new n.Plane,m=new n.Vector3,p=new n.Ray,E=new n.Vector3,S=new n.Vector3;return({targetPosition:O,targetRotation:T,angleDown:_,box:A,fovY:v,aspectRatio:N})=>{const I="number"==typeof _?_:-1*T.angleTo((0,l.Vs)(T,new n.Quaternion));e.copy(a.B1.FORWARD).applyQuaternion(T).setY(0),t.copy(e).setY(I).normalize(),s.copy(t).applyAxisAngle(a.B1.UP,-Math.PI/2).setY(0).normalize(),i.copy(s).cross(t).normalize();let L=0;const f=A.max,b=A.min,R=[f,b];for(let e=0;e<2;e++){const t=R[e].x;for(let e=0;e<2;e++){const i=R[e].y;for(let e=0;e<2;e++){const n=R[e].z;o[L].set(t,i,n),L++}}}r.copy(b),c.copy(O).setY(b.y);let y=d.copy(r).sub(c).dot(t);o.forEach((e=>{if(e.y===f.y)return;const i=d.copy(e).sub(c).dot(t);iP&&(P=t),n>k&&(k=n)}));const w=P/Math.tan(v*N/2),C=k/Math.tan(v/2),x=Math.max(w,C)+Math.abs(D),H=O.clone().add(t.clone().multiplyScalar(1.1*-x));return{position:H,rotation:g(H,O)}}})(),v=((()=>{const e=new n.Matrix4})(),(()=>{const e=new n.Matrix4,t=new n.Vector4})(),(()=>{const e=new n.Vector3;return(t,i,n=a.B1.UP)=>{const s=t.angleTo(i);return Math.sign(e.crossVectors(t,i).dot(n))*s}})()),N=((()=>{const e=new s.k,t=new n.Vector3})(),(e,t,i,n,s=1.5)=>{const a=1/e.elements[5];if(p(e))return s*n/(2*a);const o=t.distanceTo(i),r=Math.atan(a);return n*(s/(2*Math.tan(r)*o))}),I=function(){const e=new n.Vector3,t=new n.Matrix4;return(i,n,s)=>{const a=e.set(0,0,-i).applyMatrix4(n).z;return t.copy(n),t.invert(),e.set(2/s,0,a).applyMatrix4(t),e.x}}(),L=e=>1/e.elements[5],f=(e,t=d.Bv.fov)=>e/Math.tan((0,c.pu)(t/2)),b=(()=>{const e=new n.Vector3;return(t,i,n)=>{const s=n.angleTo(a.B1.UP),o=Math.abs(s-Math.PI);return s<.2||o<.2?(t.quaternion.setFromUnitVectors(a.B1.FORWARD,n),!0):(t.lookAt(e.copy(i).add(n)),!1)}})(),R=((()=>{const e=new n.Vector3,t=new n.Vector3(1e4,1e4,1e4),i=[new n.Line3,new n.Line3,new n.Line3,new n.Line3],s=[new n.Vector3,new n.Vector3,new n.Vector3,new n.Vector3]})(),(()=>{const e=new n.Vector3,t=new n.Vector3(0,1,0);return(i,n)=>{e.set(0,0,-1).applyQuaternion(i);const s=e.angleTo(t),a=Math.abs(s-Math.PI);return s{const e=new n.Vector3(1,0,0);return(t,i=-45)=>{const s=i*(Math.PI/180);return R(t,.1)?(new n.Quaternion).setFromAxisAngle(e,s):t}})(),M=(()=>{const e=new n.Quaternion,t=new n.Euler;return(i,n=35*c.fy)=>{const s=(0,u.rC)(i);if(s{const e=new n.Vector3;return(t,i,s,a,o)=>{const l=i.getWorldPosition(e).distanceTo(t),d=o.maxSize-(o.maxSize-o.minSize)*(0,h.T)(l,o.nearBound,o.farBound),c=t.clone().project(i),u=new n.Vector3(a.width/2,a.height/2,1).multiply(c),p=new n.Vector3(d/2,0,0).add(u),E=new n.Vector3(2/a.width,2/a.height,1).multiply(p).clone().unproject(i).clone().distanceTo(t)*(1+o.responsiveness/100*(s-1));return(0,m.qE)(E,r.A.epsilon,E)}})();(()=>{const e=new n.Vector3,t=new n.Vector3})()},44455:(e,t,i)=>{"use strict";i.d(t,{PH:()=>n});i(68909);const n=e=>!e||!Object.values(e).filter((e=>0!==e)).length},53172:(e,t,i)=>{"use strict";i.d(t,{H:()=>o,fy:()=>n,pu:()=>a,tm:()=>s});const n=Math.PI/180,s=180/Math.PI;function a(e){return e*n}function o(e){return e*s}},3249:(e,t,i)=>{"use strict";i.d(t,{qE:()=>n});const n=function(e,t,i){return Math.max(t,Math.min(e,i))}},27625:(e,t,i)=>{"use strict";i.d(t,{yt:()=>n});const n=(e,t,i=1e-5)=>Math.abs(e-t)<=i},52885:(e,t,i)=>{"use strict";function n(e,t,i){return(1-i)*e+i*t}i.d(t,{C:()=>n})},86866:(e,t,i)=>{"use strict";i.d(t,{$i:()=>A,C:()=>p,HN:()=>u,HV:()=>v,OF:()=>E,QX:()=>d,U$:()=>n,V5:()=>g,Vs:()=>T,cP:()=>c,eB:()=>N,i0:()=>m,jS:()=>_,m9:()=>S,oA:()=>h});var n,s=i(68909),a=i(46771),o=i(81662),r=i(3249),l=i(53172);!function(e){e.fromVisionVector=function(e){return new s.Vector3(e.x,e.z,-e.y)},e.fromVisionVectorInPlace=function(e){const t=e.x,i=e.z,n=-e.y;return e.set(t,i,n)},e.toVisionVector=function(e){return new s.Vector3(e.x,-e.z,e.y)},e.toVisionVectorInPlace=function(e){const t=e.x,i=-e.z,n=e.y;return e.set(t,i,n)},e.fromVisionQuaternion=function(e){return new s.Quaternion(e.x,e.z,-e.y,e.w)},e.fromVisionSweepQuaternion=function(e){return new s.Quaternion(e.x,e.z,-e.y,e.w).multiply((new s.Quaternion).setFromAxisAngle(new s.Vector3(0,1,0),(0,l.pu)(90)))},e.fromVisionCameraQuaternion=function(e){return new s.Quaternion(-e.x,-e.z,e.y,-e.w).multiply((new s.Quaternion).setFromAxisAngle(new s.Vector3(1,0,0),(0,l.pu)(90)))},e.toVisionQuaternion=function(e){return new s.Quaternion(e.x,-e.z,e.y,e.w)},e.toVisionSweepQuaternion=function(e){const t=new s.Quaternion(e.x,e.y,e.z,e.w).multiply((new s.Quaternion).setFromAxisAngle(new s.Vector3(0,1,0),(0,l.pu)(-90)));return t.set(t.x,-t.z,t.y,t.w),t},e.toVisionCameraQuaternion=function(e){return new s.Quaternion(e.x,-e.z,e.y,e.w).multiply(new s.Quaternion(-.70710678118,0,0,.70710678118))}}(n||(n={}));const d=function(e,t){const i=Math.pow(10,t);return Math.round(e*i)/i};function c(e,t,i){return Math.abs(t-e)<=i?t:e+Math.sign(t-e)*i}const u=function(e,t){const i=new s.Vector3(0,0,-1);return i.clone().applyQuaternion(e).angleTo(i.clone().applyQuaternion(t))},h=(()=>{const e=new a.k,t=new s.Frustum;return(i,n,s,a)=>(a=null!=a?a:t,e.identity().makeRotationFromQuaternion(n).setPosition(i),e.getInverse(e),e.premultiply(s.asThreeMatrix4()),a.setFromProjectionMatrix(e.asThreeMatrix4()),a)})(),m=((()=>{const e=new s.Sphere})(),(e,t,i,n)=>h(e,t,i).intersectsBox(n)),p=e=>{const t=e.getSize(new s.Vector3),i=Math.max(t.x,t.y,t.z);return(new s.Box3).setFromCenterAndSize(e.getCenter(new s.Vector3),new s.Vector3(i,i,i))},E=(e,t,i,n,s)=>(s-n)*((e-t)/(i-t))+n,S=(e,t,i,n,s)=>{const a=E(e,t,i,n,s);return(0,r.qE)(a,n,s)};function O(e){return 0===e.x&&0===e.y&&0===e.z}const g=(()=>{const e=new s.Vector3,t=new s.Matrix4;return i=>O(i)?i.clone():(e.copy(o.B1.FORWARD).applyQuaternion(i),t.lookAt(o.B1.ZERO,e,o.B1.UP),(new s.Quaternion).setFromRotationMatrix(t))})(),T=(()=>{const e=new s.Vector3,t=new s.Matrix4;return(i,n)=>O(i)?n.copy(i):(e.copy(o.B1.FORWARD).applyQuaternion(i).setY(0).normalize(),t.lookAt(o.B1.ZERO,e,o.B1.UP),n.setFromRotationMatrix(t))})(),_=(()=>{const e=new s.Vector3,t=new s.Ray;return(i,n,a,o)=>(o=o||new s.Vector3,t.origin.copy(i),t.lookAt(n),o.copy(t.at(a,e)))})(),A=(()=>{const e=new s.Vector3,t=new s.Ray;return(i,n,a,o)=>(o=o||new s.Vector3,t.set(i,n),o.copy(t.at(a,e)))})();function v(e,t,i,n,s,a,o,r,l){if(e===i&&t===n||s===o&&a===r)return!1;const d=(r-a)*(i-e)-(o-s)*(n-t);if(0===d)return!1;const c=((o-s)*(t-a)-(r-a)*(e-s))/d,u=e+c*(i-e),h=t+c*(n-t);return l&&l.set(u,h),!0}function N(e,t,i,n,s,a,o,r,l=0,d){if(e===i&&t===n||s===o&&a===r)return null;const c=(r-a)*(i-e)-(o-s)*(n-t);if(0===c)return null;const u=((o-s)*(t-a)-(r-a)*(e-s))/c,h=((i-e)*(t-a)-(n-t)*(e-s))/c,m=1-l;if(um||hm)return null;const p=e+u*(i-e),E=t+u*(n-t);return d&&d.set(p,E),u}},64208:(e,t,i)=>{"use strict";function n(e,t,i){return e<=t?0:e>=i?1:(e=(e-t)/(i-t))*e*(3-2*e)}i.d(t,{T:()=>n})},92237:(e,t,i)=>{"use strict";i.d(t,{z:()=>l});var n=i(94814),s=i(85616),a=i(10843),o=i(3066);const r=new a.Ay("animation");class l extends s.v{get active(){return this._active}get duration(){return this._duration}get endValue(){return this._endValue}get easing(){return this._easing}get elapsed(){return this._elapsed}get delay(){return this._delay}constructor(e,t,i,s=n.p9,a=0){super(),this._easing=n.p9,void 0===t&&(t=e),void 0===i&&(this._active=!1,i=0,this._elapsed=0,this._duration=0),this.modifyAnimation(e,t,i,s,0,a)}tick(e){if(!this._active)return this.endValue;if(this._delay>0)return this._delay-=e,this.startValue;const t=(this._elapsed+e)/Math.max(this._duration,1e-5);return this.updateProgress(t),this.value}updateProgress(e){if(isNaN(e))return void r.error(`Invalid progress value: ${e}`);const t=Math.max(0,Math.min(e,1)),i=this.active,n=this.value;if(t>=1)return this.activate(!1),this.value=this._easing(1,this.startValue,this._endValue-this.startValue,1),this._elapsed=this.duration,this.commit(),void(this._onComplete&&this._onComplete.forEach((e=>e())));this.activate(!0),this.value=this._easing(t,this.startValue,this._endValue-this.startValue,1),this._elapsed=t*this.duration,n===this.value&&i===this.active||this.commit()}updateAbsolute(e){const t=e/Math.max(this._duration,1e-5);this.updateProgress(t)}modifyAnimation(e,t,i,s=n.p9,a=0,o=0){return this._easing=s,this._endValue=t,this._duration=i,this._elapsed=a,this._delay=o,this.startValue=e,this.value=e,this.activate(this._duration>=0&&e!==t),this.commit(),this}onComplete(e){return this._onComplete||(this._onComplete=[]),(0,o.Sh)((()=>this._onComplete.push(e)),(()=>this._onComplete.splice(this._onComplete.indexOf(e),1)))}onActivate(e){return this._onActivate||(this._onActivate=[]),(0,o.Sh)((()=>this._onActivate.push(e)),(()=>this._onActivate.splice(this._onActivate.indexOf(e),1)))}activate(e){e!==this._active&&this._onActivate&&this._onActivate.forEach((e=>e())),this._active=e}copy(e){this._endValue=e.endValue,this._duration=e.duration,this._active=e.active,this._easing=e.easing,this._elapsed=e.elapsed,this.startValue=e.startValue,this.value=e.value,this.commit()}clone(){const e=new l(0);return e.copy(this),e}stop(e){this._active=!1,this._elapsed=this._duration,this.value=e,this._endValue=e,this.commit()}equals(e){return this._active===e._active&&this.duration===e.duration&&this.easing===e.easing&&this.elapsed===e.elapsed&&this.endValue===e.endValue&&this.startValue===e.startValue&&this.value===e.value}}},95300:(e,t,i)=>{"use strict";i.d(t,{BE:()=>n,s1:()=>s});const n=16/9,s=function(e,t){const i=new URL(`${window.location.origin}${window.location.pathname}` + e);let n=Number(i.searchParams.get("width")),s=Number(i.searchParams.get("height"));n=n&&!Number.isNaN(n)?n:1920,s=s&&!Number.isNaN(s)?s:1080;const a=function(e,t,i){const n=e/t;let s=e,a=t;return n>i?s=t*i:n{"use strict";i.d(t,{E:()=>s,G:()=>a});class n{constructor(e){this.comparator=e,this.nodes=[]}push(e){return this.nodes.push(e),this.siftdown(0,this.nodes.length-1)}pop(){let e,t;return this.nodes.length&&(e=this.nodes.pop(),e)?(this.nodes.length?(t=this.nodes[0],this.nodes[0]=e,this.siftup(0)):t=e,t):null}peek(){return this.nodes[0]}contains(e){return-1!==this.nodes.indexOf(e)}replace(e){if(this.nodes.length){const t=this.nodes[0];return this.nodes[0]=e,this.siftup(0),t}return null}_pushpop(e,t,i){let n;const s=i||this.defaultCompare;return e.length&&s(e[0],t)<0&&(n=[e[0],t],t=n[0],e[0]=n[1],this._siftup(e,0,s)),t}pushpop(e){return this._pushpop(this.nodes,e,this.comparator)}_heapify(e,t){let i,n,s,a,o,r;const l=Math.floor(e.length/2),d=function(){for(r=[],s=0,o=l;0<=o?so;0<=o?s++:s--)r.push(s);return r}.apply(this).reverse(),c=[];for(n=0,a=d.length;ns;0<=s?i++:i--)a.push(i);return a}.apply(this).reverse(),l=[];for(t=0,n=r.length;tt?1:0}_siftdown(e,t,i,n){let s,a;const o=n||this.defaultCompare,r=e[i];for(;i>t&&(a=i-1>>1,s=e[a],o(r,s)<0);)e[i]=s,i=a;return e[i]=r}siftdown(e,t){return this._siftdown(this.nodes,e,t,this.comparator)}_siftup(e,t,i){let n,s;const a=i||this.defaultCompare,o=e.length,r=t,l=e[t];for(n=2*t+1;ne.timeout)return{status:s.Timeout,cost:i.g,path:o(i)};const t=l.pop();if(!t)throw new Error("[astar.ts]: Node must exist in heap");if(d.delete(t.data),t&&e.isEnd(t.data))return{status:s.Success,cost:t.g,path:o(t)};a.add(t.data);const n=e.neighbors(t.data);for(const s of n){if(a.has(s))continue;const n=t.g+e.distance(t.data,s);let o=d.get(s),r=!1;if(void 0===o)o={data:s,g:0,heuristicValue:0,f:0},d.set(s,o);else{if(o.g Property "f" is undefined.')}!function(e){e[e.Success=0]="Success",e[e.NoPath=1]="NoPath",e[e.Timeout=2]="Timeout"}(s||(s={}))},64491:(e,t,i)=>{"use strict";i.d(t,{Ap:()=>N,C8:()=>L,Cv:()=>l,Eh:()=>w,Fr:()=>r,J0:()=>c,OF:()=>u,T:()=>E,Ul:()=>x,YR:()=>P,Yk:()=>f,Zm:()=>m,aS:()=>D,aZ:()=>_,al:()=>b,cX:()=>h,gm:()=>O,lh:()=>k,m0:()=>p,qL:()=>A,sv:()=>R,vQ:()=>C,w2:()=>I,x_:()=>M,yJ:()=>y});var n=i(24241),s=i(75778),a=i(66726);const o=new n.Vy("util-browser"),r=function(){const e=navigator.userAgent||navigator.vendor,t=new RegExp("(android|bbd+|meego).+mobile|android|avantgo|bada/|blackberry|blazer|compal|elaine|fennec|\n hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|\n palm( os)?|phone|p(ixi|re)/|plucker|pocket|psp|series(4|6)0|symbian|treo|up.(browser|link)|vodafone|\n wap|windows ce|xda|xiino|MatterScan","i"),i=new RegExp("1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|\n amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|\n br(e|v)w|bumb|bw-(n|u)|c55/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|\n devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|\n g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|\n a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|\n jemu|jigs|kddi|keji|kgt( |/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|/(k|l|u)|50|54|-[a-w])|libw|lynx|\n m1-w|m3ga|m50/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|\n zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|\n nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|\n po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55/|\n sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|\n sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|\n tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|\n vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|\n zeto|zte-","i");return(t.test(e)||i.test(e.substr(0,4))||c())&&!A()},l=/([\s\{\}\"\']|[^\x00-\x7F]|%[^0-9a-fA-F]{2})+/g,d=(e,t)=>{let i=window.navigator.userAgent.match(e);return i=i?i[1].split(t):[],{major:parseInt(i[0],10)||0,minor:parseInt(i[1],10)||0,patch:parseInt(i[2],10)||0}},c=()=>{const e=window.navigator.userAgent;return/iPad/.test(e)||h()&&navigator.maxTouchPoints>1},u=()=>{const e=window.navigator.userAgent;return/iPod|iPhone/.test(e)||h()&&navigator.maxTouchPoints>1},h=()=>{const e=window.navigator.platform;return/MAC/.test(e.toUpperCase())},m=()=>{const e=window.navigator.platform;return/WIN/.test(e.toUpperCase())},p=()=>-1!==window.navigator.userAgent.indexOf("Android"),E=()=>!N()&&(O()||T());let S=null;const O=()=>{if(null==S){const e=window.navigator.userAgent;S=-1!==e.indexOf("Firefox")}return S};let g=null;const T=()=>{if(null==g){const e=window.navigator?window.navigator.userAgent:null;g=!!window.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return g},_=()=>{if(!O())throw new Error("Not a Firefox browser");return d(/Firefox\/((?:\d+\.?){1,3})/,".")},A=()=>-1!==window.navigator.userAgent.indexOf("OculusBrowser");let v=null;const N=()=>{if(null==v){const e=window.navigator.userAgent.includes("Macintosh"),t=5===window.navigator.maxTouchPoints;v=e&&t}return v},I=()=>{switch((0,s.P3)("bot",2)){case 0:default:return!1;case 1:return!0;case 2:return/googlebot|bingbot|applebot/i.test(navigator.userAgent)}},L=()=>"ontouchstart"in window,f=()=>"share"in navigator&&(r()||c()),b=()=>window.parent!==window,R=()=>b()&&(()=>{const e=new URL(document.referrer);return a.yt.some((t=>t.test(e.hostname)))})(),y=()=>window.location.search.substr(1).split("&"),M=function(){const e=window.URL||window.webkitURL,t=document.createElement("a");return document.body.appendChild(t),t.style.display="none",(i,n)=>{const s=e.createObjectURL(i);t.href=s,t.download=n,t.click(),e.revokeObjectURL(s)}}(),D=(function(){const e=document.createElement("a");document.body.appendChild(e),e.style.display="none"}(),function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)}),P=function(){return!c()&&!u()&&!!(document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled)},k=function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},w=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()};function C(e){try{return document.featurePolicy.allowsFeature(e)}catch(t){return o.warn(t),o.warn(`Feature Policy check failed, defaulting ${e} to false.`),!1}}const x=()=>{var e,t;return(e=>{const t={language:"en",region:void 0,script:void 0,ext:void 0},i=new RegExp([/^([a-z]{2,3})/,/(?:[_-]([ut]{1}[_-][a-z\-\_]+))?/,/(?:[_-]([a-z]{4}))?/,/(?:[_-]([a-z]{2}))?$/].map((e=>e.source)).join(""),"i").exec(e);if(i){const[,e,n,s,a]=i;Object.assign(t,{language:e,ext:n,script:s,region:a})}return t})((null===(t=null===(e=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===e?void 0:e.resolvedOptions())||void 0===t?void 0:t.locale)||navigator.language).language||""}},91669:(e,t,i)=>{"use strict";i.d(t,{G:()=>n});const n=function(e,t){const i=new RegExp(e+"=([^;]+)|$").exec(document.cookie);if(!i)return t;const n=i[1];return"boolean"==typeof t?"true"===n||"1"===n:"number"==typeof t?parseFloat(n):n}},81609:(e,t,i)=>{"use strict";function n(e){const t=document.createElement("input");t.type="text",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}i.d(t,{l:()=>n})},81587:(e,t,i)=>{"use strict";i.d(t,{$:()=>s,X:()=>a});const n=new Object,s=e=>{if(e){const t=e.valueOf();if(!isNaN(t))return e.toISOString()}return(new Date).toISOString()},a=(e,t=n)=>{if(e){const t=new Date(e);if(!isNaN(t.valueOf()))return t}return t===n?new Date:t}},26348:(e,t,i)=>{"use strict";i.d(t,{A4:()=>d,D6:()=>l,Nd:()=>r,hV:()=>o,ld:()=>a});const n=.3048,s=.0929,a=e=>e/n,o=e=>e*n,r=e=>e/s,l=e=>e*s,d=e=>{const t=e/n;let i=Math.floor(t),s=12*t%12;return 12===Math.round(s)?(i+=1,s=0):s=Math.round(s),{feet:i,inches:s}}},94814:(e,t,i)=>{"use strict";i.d(t,{AU:()=>d,Bo:()=>O,Do:()=>o,ME:()=>u,WD:()=>r,dV:()=>l,e2:()=>p,jv:()=>E,lu:()=>m,p9:()=>a,p_:()=>c,rn:()=>h,sP:()=>g,v:()=>S});var n=i(65380),s=i.n(n);const a=function(e,t,i,n){return i*e/n+t},o=function(e,t,i,n){return i*(e/=n)*e+t},r=function(e,t,i,n){return-i*(e/=n)*(e-2)+t},l=function(e,t,i,n){return(e/=n/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},d=function(e,t,i,n){return i*(e/=n)*e*e+t},c=function(e,t,i,n){return e/=n,i*(--e*e*e+1)+t},u=function(e,t,i,n){return(e/=n/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},h=function(e,t,i,n){return-i/2*(Math.cos(Math.PI*e/n)-1)+t},m=function(e,t,i,n){return i*(1-Math.pow(2,-10*e/n))+t},p=function(e,t,i,n){return(e/=n/2)<1?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(2-Math.pow(2,-10*e))+t)},E=(e,t,i,n,s)=>{let a=t;if(s>0){const t=(1-Math.max(s,0))*Math.abs(n);a=i<=t?0:e(i-t,0,1,t)}return a};function S(e,t,i,n){const a=new(s())(e,t,i,n);return(e,t,i,n)=>{const s=e/n;return t+i*a.solve(s)}}function O(e,t,i,n){const a=new(s())(e,t,i,n);return e=>a.solve(e)}const g=function(e,t,i,n){return-4*i*Math.pow(e/n-(.5+t),2)+1}},20819:(e,t,i)=>{"use strict";i.d(t,{EE:()=>n,kH:()=>s});const n=e=>void 0!==e.pointerId,s=e=>void 0!==e.changedTouches},16263:(e,t,i)=>{"use strict";i.d(t,{s:()=>d});var n=i(87419),s=i(81277),a=i(38731),o=i(5262),r=i(67246),l=i(56208);function d(e){const t=!!(0,r.L)(),i=(0,a.B)(),d=(0,o.i)(l.Q$.DefurnishView,!1),c=(0,o.i)(n.cB,!1),u=n.NT,h=!!(0,s.y)(u);return c&&(h||"viewer"===e)&&(d&&t||i)}},74634:(e,t,i)=>{"use strict";function n(e,t){let i,n,s=t[t.length-1],a=0;for(let o=0;oe.y&&s.y>e.y||i.x0?1:0);return a%2==1}i.d(t,{L:()=>n})},48539:(e,t,i)=>{"use strict";i.d(t,{G8:()=>o,Mq:()=>l,Rt:()=>c,Uk:()=>p,W5:()=>m,Ym:()=>d,Z9:()=>h,cb:()=>s,gr:()=>E,ij:()=>r,op:()=>a});var n=i(46147);const s=function(e){return new Promise((t=>{setTimeout(t,e)}))},a=e=>{let t,i=-1;const n=new Promise(((n,s)=>{t=n,i=window.setTimeout(n,e)})).then((()=>{i=-1})),s=e=>{-1!==i&&(window.clearTimeout(i),e&&t(),i=-1)};return{promise:n,resolveEarly:()=>{s(!0)},cancel:()=>{s(!1)}}},o=function(e,t){if(0===e.length)return null;let i=0,n=0;for(let s of e)s=t?s[t]:s,i+=s,n++;return i/n},r=function(e){const t={};for(const i of e)t[i]=i;return t},l=function(e,t){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0},d=function(e,t,i=!0){if(0===e.length)return null;i&&e.sort((function(e,t){return e-t}));const n=t/100;return e[Math.floor(e.length*n)]},c=function(e){return[u(e.getMonth()+1),".",u(e.getDate()),".",e.getFullYear(),"_",u(e.getHours()),".",u(e.getMinutes()),".",u(e.getSeconds())].join("")},u=function(e,t=2,i="0",n=10){const s=e.toString(n),a=t-s.length+1;return a>0?new Array(a).join(i)+s:s},h=(e=[])=>{const t={};for(const i of e)t[i]=!0;return t};const m=(e,t,i="...")=>e.length<=t?e:`${e.substr(0,t)}${i}`,p=(e,t,i)=>{if(!(Math.abs(e)<4294967295)||!(t<32)||!(i<32))throw new n.A("argument out of range");const s=1&(e>>>t^e>>>i);return(e^=s<>>0};function E(e){let t=0;for(;e;)t+=1&e,e>>=1;return t}(()=>{const e={}})()},97610:(e,t,i)=>{"use strict";i.d(t,{u:()=>s});const n=new(i(10843).Ay)("passive-support"),s=(()=>{let e=!1;try{const t=Object.defineProperty({},"passive",{get:()=>{e=!0}});return window.addEventListener("testPassive",(()=>{}),t),window.removeEventListener("testPassive",(()=>{}),t),e}catch(e){return n.warn(`Passive Option for addEventListener is not supported, Safari zoom may not perform as expected: ${e}`),!1}})()},10032:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(68909);const s=new n.LoadingManager},10843:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>n});const n=i(24241).Vy},93818:(e,t,i)=>{"use strict";i.d(t,{JE:()=>g,LB:()=>O,R5:()=>_,ac:()=>p});var n=i(23339),s=i(26348),a=i(75778);let o="′",r="″",l=" ",d="ft",c="in",u="m",h="sq. ft.",m="m²",p="×";var E,S;function O(e){o=e.unitsDisplayFeetSymbol,r=e.unitsDisplayInchesSymbol,l=e.unitsDisplayHalfSpace,d=e.unitsDisplayFeet,c=e.unitsDisplayInches,u=e.unitsDisplayMeters,h=e.unitsDisplaySquareFeet,m=e.unitsDisplaySquareMeters,p=e.dimensionsSeparator}!function(e){e.INCHES="inches",e.FEET="feet"}(E||(E={})),function(e){e.DISTANCE="distance",e.AREA="area"}(S||(S={}));const g=(e,t,i=E.FEET)=>{const s=t.toString();return e===n.t.IMPERIAL?{[S.AREA]:`${s} ${h}`,[S.DISTANCE]:i===E.FEET?`${s}${o}`:`${s}${r}`}:{[S.AREA]:`${s} ${m}`,[S.DISTANCE]:`${s} ${u}`}},T=Number((0,a.P3)("metricPrecision",2)),_=(e,t=n.t.IMPERIAL)=>{const{IMPERIAL:i,METRIC:a}=n.t,{FEET:o,INCHES:r}=E;let d=g(i,0,r).distance;switch(t){case i:const{feet:t,inches:n}=(0,s.A4)(e);let c=g(i,t,o).distance,u=g(i,n,r).distance;t<1&&(c=""),c.length>0&&(c+=l),d=c+u;break;case a:d=g(a,e.toFixed(T)).distance}return d}},70516:(e,t,i)=>{"use strict";function n(e){const t={};for(const i in e)t[e[i]]=i;return t}function s(e,t){if(null!==e&&"object"==typeof e)for(const i in e)t(e[i],i,e),s(e[i],t)}i.d(t,{S:()=>s,h:()=>n})},25712:(e,t,i)=>{"use strict";i.d(t,{Iy:()=>r,W0:()=>a,hA:()=>o,s5:()=>l});const n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s="0123456789abcdefghijklmnopqrstuvwxyz";function a(e=11,t=n){let i="";const s=window.crypto||window.msCrypto;let a;a=s?s.getRandomValues(new Uint8Array(e)):new Uint8Array(e).map((()=>255*Math.random()));for(let n=0;n{"use strict";i.d(t,{D:()=>n});const n=function(e){let t="";const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let n=0;n{"use strict";i.d(t,{G2:()=>o,RP:()=>a});const n="referrer";let s="";function a(e){let t;try{t=new URL(e)}catch(t){return e}return t.searchParams.set(n,o()),t.href}function o(){return(function(){if(!window.document.referrer)return!1;let e;try{e=new URL(window.document.referrer)}catch(e){return!1}return e.origin===window.location.origin}()?function(){const e=new URL(window.location.href);if(!e.searchParams.has(n))return s;const t=e.searchParams.get(n)||"";try{new URL(t),s=t}catch(e){}return e.searchParams.delete(n),window.history.replaceState(null,"",e.href),s}():"")||window.document.referrer}},84250:(e,t,i)=>{"use strict";i.d(t,{O:()=>d});var n=i(68909);const s={defines:{RING_COUNT:0,USE_TEXTURE:!1},uniforms:{discRadius:{value:.2},discNormal:{value:new n.Vector3(0,0,1)},ringRadii:{value:[]},ringColors:{value:[]},opacity:{value:1},tint:{value:new n.Color(1,1,1)},texImg:{value:null},viewMatrixInverse:{value:new n.Matrix4},projectionMatrixInverse:{value:new n.Matrix4}},vertexShader:i(99691),fragmentShader:i(71285),side:n.FrontSide,transparent:!0};var a=i(38069);const o=new n.Color,r=[{outerRadius:1,innerRadius:.75,color:a.V.WHITE.clone(),opacity:1}];class l extends n.ShaderMaterial{constructor(e=r){super(Object.assign(Object.assign({},s),{defines:Object.assign({},s.defines),uniforms:n.UniformsUtils.clone(s.uniforms)})),this.setRings(e),Object.defineProperty(this,"opacity",{set(e){this.uniforms.opacity.value=e},get(){return this.uniforms.opacity.value}})}setDiscNormal(e){this.uniforms.discNormal.value.copy(e)}setDiscRadius(e){this.uniforms.discRadius.value=e}setRings(e){e=e||[],this.defines.RING_COUNT!==e.length&&(this.defines.RING_COUNT=e.length,this.needsUpdate=!0),this.uniforms.ringRadii.value=e.map((({innerRadius:e,outerRadius:t})=>new n.Vector2(e||-1,t))),this.uniforms.ringColors.value=e.map((({color:e,opacity:t})=>(o.copy(e),new n.Vector4(o.r,o.g,o.b,t))))}setTexture(e){this.defines.USE_TEXTURE!==!!e&&(this.defines.USE_TEXTURE=!!e,this.needsUpdate=!0),this.uniforms.texImg.value=e}getTexture(){return this.uniforms.texImg.value}setTint(e){this.uniforms.tint.value.set(null!=e?e:16777215)}getTint(){return this.uniforms.tint.value}onBeforeRender(e,t,i){this.uniforms.projectionMatrixInverse.value.copy(i.projectionMatrixInverse),this.uniforms.viewMatrixInverse.value.copy(i.matrixWorld)}}class d extends n.Mesh{constructor(e){super(new n.SphereGeometry(Math.sqrt(2),8,6),new l),this.onBeforeRender=(e,t,i)=>{this.material.onBeforeRender(e,t,i)},e&&this.configure(e)}configure(e){const{radius:t,normal:i,rings:n,texture:s,opacity:a,tint:o}=e,{material:r}=this;void 0!==t&&(this.scale.setScalar(t),r.setDiscRadius(t)),void 0!==i&&r.setDiscNormal(i),void 0!==n&&r.setRings(n),void 0!==s&&r.setTexture(s),void 0!==o&&r.setTint(o),void 0!==a&&(r.opacity=a)}dispose(){var e;null===(e=this.material.getTexture())||void 0===e||e.dispose(),this.geometry.dispose()}}},47503:(e,t,i)=>{"use strict";function n(e,t){return e.size===t.size&&[...e].every((e=>t.has(e)))}function s(...e){const t=new Set;for(const i of e)for(const e of i.values())t.add(e);return t}function a(e,t){for(const i of t)e.add(i);return e}i.d(t,{LX:()=>s,c5:()=>n,s1:()=>a})},32024:(e,t,i)=>{"use strict";i.d(t,{S:()=>l,y:()=>r});var n=i(68909),s=i(10843),a=i(10032);const o=new s.Ay("texture"),r=(e,t,i,s=n.SRGBColorSpace)=>{const r=new n.TextureLoader(a.A);r.crossOrigin="anonymous";const l=r.load(e,t,void 0,(t=>{o.error(`Failed to load ${e}`),i&&i(t)}));return l.colorSpace=s,l},l=async(e,t=n.SRGBColorSpace)=>{const i=new n.TextureLoader(a.A);i.crossOrigin="anonymous";const s=await i.loadAsync(e);return s.colorSpace=t,s}},79243:(e,t,i)=>{"use strict";i.d(t,{n:()=>n});const n=(e,t)=>{let i,n=Date.now()-t;return(...s)=>{const a=Date.now()-n,o=()=>{e.apply(null,s),n=Date.now()};if(i&&clearTimeout(i),a>=t)o();else{const e=t-a;i=window.setTimeout(o,e)}}}},66726:(e,t,i)=>{"use strict";i.d(t,{$j:()=>n,Cz:()=>c,Gm:()=>s,Jt:()=>r,SE:()=>a,kh:()=>d,yt:()=>o,zh:()=>l});const n=function(e="",t){let i,n,s;if(e.match(/^https?/)){const t=new URL(e);i=t.protocol+"//"+t.host,n=e,s=e.match(/[^/]*$/)[0]}else{if(t.match(/^https?/)){const e=new URL(t);i=e.protocol+"//"+e.host}else i=window.location.protocol+"//"+t;n=i+"/api/player/models/"+e,s=e}return{sid:s,urlBase:i,urlModel:n,urlFiles:n+(n.match(/\/$/)?"files":"/files"),urlThumb:n+(n.match(/\/$/)?"thumb":"/thumb")}},s=function(e,t={}){for(const i in t){const n=t[i];e+=(-1===e.indexOf("?")?"?":"&")+`${i}=${n}`}return e},a=e=>e.replace(/^https?:\/\/(?:www.)?/i,"").replace(/\/(.*)/,""),o=[/^([a-z0-9\-]*\.)*matterhub\.ru$/,/^([a-z0-9\-]*\.)*matterhub\.ru$/,/^localhost$/];function r(e){try{const t=new URL(e).hostname;for(const e of o)if(t.match(e))return!0}catch(e){}return!1}const l=e=>{if(r(e)){return new URL(e).origin}return null};function d(e=window.location.href){let t=e;return r(t)&&(t=t.replace(/\/work\/?(\?.*)?$/,"/show/$1")),new URL(t)}function c(e,t,i){const n=d(),s=new URLSearchParams(window.location.search);var a;a=s,["q","qK","qF","tag","note","comment","pin-pos","cloudEdit"].forEach((e=>a.delete(e)));const o=encodeURIComponent(e);if(o&&s.set("q",o),t.length>0){const e=encodeURIComponent(t.join(","));s.set("qK",e)}if(i.length>0){const e=encodeURIComponent(i.join(","));s.set("qF",e)}return n.search=s.toString(),n.hash="",n.toString()}},5174:(e,t,i)=>{"use strict";i.d(t,{r:()=>n});const n=Symbol("deep-links")},71224:(e,t,i)=>{"use strict";var n;i.d(t,{b:()=>n}),function(e){e.ACCOUNT_INACTIVE="unavailable.account_inactive",e.GENERIC="generic",e.INTERNAL_ERROR="internal.error",e.MODEL_ARCHIVED="unavailable.archived",e.MODEL_COMPLIANCE="unavailable.compliance",e.MODEL_CORRUPT="model.corrupt",e.MODEL_FAILED="model.failed",e.MODEL_DELETED="unavailable.gone",e.MODEL_PENDING="unavailable.pending",e.MODEL_PROCESSING="unavailable.processing",e.MODEL_RESTRICTED="unavailable.restricted",e.NOT_FOUND="not.found",e.PASSWORD_REQUIRED="password.required",e.REQUEST_INVALID="request.invalid",e.WEBGL_CONTEXT_LOST="webgl.context_lost",e.WEBGL_GENERIC="webgl.generic",e.WEBGL_UNSUPPORTED="webgl.unsupported"}(n||(n={}))},87656:(e,t,i)=>{"use strict";i.d(t,{U:()=>o});var n=i(31093);const s=new(i(10843).Ay)("module-loader");var a;!function(e){e[e.Registered=0]="Registered",e[e.Loading=1]="Loading",e[e.Initialized=2]="Initialized",e[e.Unloaded=3]="Unloaded"}(a||(a={}));class o{constructor(){this.symbolMap=new Map}registerModule(e,t){if(this.symbolMap.has(e))throw Error(`Type ${String(e)} already registered`);const i={es6ModulePromise:t,ctorPromise:new n.i,initPromise:new n.i,state:a.Registered};return this.symbolMap.set(e,i),i}moduleRegistered(e){return this.symbolMap.has(e)}moduleLoaded(e){const t=this.symbolMap.get(e);return!!t&&![a.Registered,a.Unloaded].includes(t.state)}getModule(e){const t=this.symbolMap.get(e);if(!t)throw Error(`Trying to get ${String(e)} before it was registered!`);if(t.state===a.Unloaded)throw Error(`${String(e)} module unloaded`);return t.initPromise.nativePromise()}getModuleSync(e){const t=this.symbolMap.get(e);return t?t.state!==a.Initialized?null:t.module:null}loadModule(e,t,i={}){const n=this.symbolMap.get(t);if(!n)throw Error(`${String(t)} not found`);if(n.state===a.Initialized)return n;if(n.state!==a.Registered&&n.state!==a.Unloaded)throw Error(`${String(t)} already loading`);n.state=a.Loading;const o=String(t);return n.es6ModulePromise(o).then((o=>{if(!o.default)throw new Error(`${String(t)} has no default export during module loading`);const r=new o.default;n.ctorPromise.resolve(r).then((()=>{const t=Date.now();let o=!1;setTimeout((()=>{o||s.debug(`${r.name} init took over 2 seconds`)}),2e3),r.init(i,e).then((()=>{s.debug(`${r.name} init took ${(Date.now()-t)/1e3} secs.`),o=!0,n.state=a.Initialized,n.module=r,n.initPromise.resolve(r)})).catch((e=>{n.initPromise.reject(e)}))}))})).catch((e=>{s.error(`Failed to load es6Module for ${String(t)}: ${e}`),n.initPromise.reject(e)})),n}whenQueueEmpties(e,t=[]){const i=[],o=new Map;for(const[e,n]of this.symbolMap)n.state!==a.Loading||t.includes(e)||(i.push(n.initPromise),o.set(e,n.initPromise));for(const[t,i]of o){const n=setTimeout((()=>s.debugInfo("still loading",t)),e);i.then((()=>clearTimeout(n)))}return n.i.all(i).nativePromise()}unloadModule(e){const t=this.symbolMap.get(e);if(!t)throw Error("Attempting to unload unregistered module");if(t.state===a.Unloaded||t.state===a.Registered)throw Error("Attempting to unload not-loaded module");t.state=a.Unloaded,t.ctorPromise=new n.i,t.initPromise=new n.i,t.module=void 0}}},75027:(e,t,i)=>{"use strict";function n(e={},t){return t.split(".").reduce(((e,t)=>e&&e[t]),e)}i.d(t,{L:()=>n})},50505:(e,t,i)=>{"use strict";i.d(t,{o:()=>n});class n{constructor(){this.libraryCache=new Map}load(e,t){const i=this.libraryCache.get(e)||new s(e,t);return this.libraryCache.set(e,i),i.library}}class s{constructor(e,t){this._libraryPromise=new Promise(((e,t)=>{this.libraryResolver=e,this.libraryRejecter=t})),this.fetch(e,t)}async fetch(e,t){try{const i=await import(e),n=Object.assign({},i);if(t&&t in window){const e=window[t]||{};Object.assign(n,e),delete window[t]}this.libraryResolver(n)}catch(e){this.libraryRejecter(e)}}get library(){return this._libraryPromise}}},28511:(e,t,i)=>{"use strict";i.d(t,{J:()=>n});const n={360:"61697","add-link":"61698",arrow:"61699",arrows:"61700",attach:"61701",back:"61702",blocked:"61703","blur-outline":"61704","brush-outline":"61705",checkmark:"61706","chevron-left":"61707","chevron-right":"61708",close:"61709","comment-large":"57344","comment-outline":"61710",comment:"61711",delete:"61712",dock:"61713",dollhouse:"61714",door:"61715",download:"61716","dpad-down":"61717","dpad-left":"61718","dpad-right":"61719","dpad-up":"61720","drag-edit":"61721","draw-lines":"61722","edit-floorplan":"61723",email:"61724",error:"61725","escape-key":"61726",expand:"61727","ext-link":"61728","eye-hide":"61729","eye-show":"61730",facebook:"61731",file:"61732",filter:"61733","finger-drag":"61734","floor-controls-all":"61735","floor-controls":"61736",floorplan:"61737","fullscreen-exit":"61738",fullscreen:"61739",fullscreen2:"61740","furniture-slash":"61741",furniture:"61742","gizmo-add":"61743","gizmo-closed":"61744","gizmo-eye-hide":"61745","gizmo-eye-show":"61746","gizmo-gear":"61747","gizmo-layers":"61748","gizmo-magnet-wall":"61749","gizmo-magnet":"61750","gizmo-model":"61751","gizmo-move":"61752","gizmo-open":"61753","gizmo-orthographic":"61754","gizmo-perspective":"61755","gizmo-redo":"61756","gizmo-snap":"61757","gizmo-undo":"61758",help:"61759","hlr-badge":"61760",hlr:"61761",info:"61762","invisible-wall":"61763",keyboard:"61764",layers:"61765",link:"61766",linkedin:"61767",list:"61768",location:"61769",lock:"61770",logo:"61771","magnifying-glass":"61772","media-mix":"61773","menu-indicator":"61774","mesh-trim":"61775",mesh:"61776",minus:"61777","more-vert":"61778",notes:"61779","object-air-ducts":"61780","object-bathtub":"61781","object-bed":"61782","object-cabinet":"61783","object-ceiling-fan":"61784","object-chair":"61785","object-countertop":"61786","object-dishwasher":"61787","object-door-lock":"61788","object-door":"61789","object-faucet":"61790","object-fireplace":"61791","object-garage-door":"61792","object-kitchen-island":"61793","object-light":"61794","object-microwave":"61795","object-mirror":"61796","object-outlet":"61797","object-oven":"61798","object-range-hood":"61799","object-range":"61800","object-refrigerator":"61801","object-shower":"61802","object-sink":"61803","object-skylight":"61804","object-smoke-detector":"61805","object-sofa":"61806","object-table":"61807","object-television":"61808","object-thermostat":"61809","object-toilet":"61810","object-towel-rack":"61811","object-vanity":"61812","object-wall-switch":"61813","object-washer-dryer":"61814","object-window":"61815",opening:"61816","panorama-disable":"61817",panorama:"61818","paper-clip":"61819","pause-outline":"61820",pause:"61821","photo-2d":"61822","photo-360":"61823","photo-add":"61824",pin:"61825",pinterest:"61826","play-unicode":"61827",play:"61828",plus:"61829","position-3d":"61830","press-hold":"61831",public_buildings_apartment:"61832",public_buildings_archway:"61833","public_buildings_building-circle-arrow-right":"61834","public_buildings_building-circle-check":"61835","public_buildings_building-circle-exclamation":"61836","public_buildings_building-circle-xmark":"61837","public_buildings_building-columns":"61838","public_buildings_building-flag":"61839","public_buildings_building-lock":"61840","public_buildings_building-shield":"61841","public_buildings_building-user":"61842","public_buildings_building-wheat":"61843",public_buildings_building:"61844",public_buildings_buildings:"61845",public_buildings_cabin:"61846",public_buildings_campground:"61847","public_buildings_car-building":"61848",public_buildings_castle:"61849",public_buildings_chimney:"61850",public_buildings_church:"61851",public_buildings_city:"61852",public_buildings_farm:"61853",public_buildings_fence:"61854","public_buildings_ferris-wheel":"61855",public_buildings_fort:"61856",public_buildings_garage:"61857",public_buildings_hospital:"61858",public_buildings_hotel:"61859","public_buildings_house-building":"61860","public_buildings_house-crack":"61861","public_buildings_house-day":"61862","public_buildings_house-fire":"61863","public_buildings_house-flag":"61864","public_buildings_house-flood-water":"61865","public_buildings_house-heart":"61866","public_buildings_house-lock":"61867","public_buildings_house-medical":"61868","public_buildings_house-night":"61869",public_buildings_house:"61870",public_buildings_industry:"61871",public_buildings_landmark:"61872",public_buildings_monument:"61873",public_buildings_mosque:"61874","public_buildings_mountain-city":"61875","public_buildings_place-of-worship":"61876","public_buildings_roller-coaster":"61877",public_buildings_school:"61878",public_buildings_store:"61879",public_buildings_synagogue:"61880",public_buildings_tent:"61881",public_buildings_toilet:"61882","public_buildings_torii-gate":"61883","public_buildings_tower-observation":"61884",public_buildings_tree:"61885",public_buildings_warehouse:"61886",public_characters_0:"61887",public_characters_1:"61888",public_characters_2:"61889",public_characters_3:"61890",public_characters_4:"61891",public_characters_5:"61892",public_characters_6:"61893",public_characters_7:"61894",public_characters_8:"61895",public_characters_9:"61896",public_characters_a:"61897",public_characters_b:"61898",public_characters_c:"61899","public_characters_circle-0":"61900","public_characters_circle-1":"61901","public_characters_circle-2":"61902","public_characters_circle-3":"61903","public_characters_circle-4":"61904","public_characters_circle-5":"61905","public_characters_circle-6":"61906","public_characters_circle-7":"61907","public_characters_circle-8":"61908","public_characters_circle-9":"61909","public_characters_circle-a":"61910","public_characters_circle-b":"61911","public_characters_circle-c":"61912","public_characters_circle-d":"61913","public_characters_circle-e":"61914","public_characters_circle-f":"61915","public_characters_circle-g":"61916","public_characters_circle-h":"61917","public_characters_circle-i":"61918","public_characters_circle-j":"61919","public_characters_circle-k":"61920","public_characters_circle-l":"61921","public_characters_circle-m":"61922","public_characters_circle-n":"61923","public_characters_circle-o":"61924","public_characters_circle-p":"61925","public_characters_circle-q":"61926","public_characters_circle-r":"61927","public_characters_circle-s":"61928","public_characters_circle-t":"61929","public_characters_circle-u":"61930","public_characters_circle-v":"61931","public_characters_circle-w":"61932","public_characters_circle-x":"61933","public_characters_circle-y":"61934","public_characters_circle-z":"61935",public_characters_d:"61936",public_characters_e:"61937",public_characters_f:"61938",public_characters_g:"61939",public_characters_h:"61940",public_characters_i:"61941",public_characters_j:"61942",public_characters_k:"61943",public_characters_l:"61944",public_characters_m:"61945",public_characters_n:"61946",public_characters_o:"61947",public_characters_p:"61948",public_characters_q:"61949",public_characters_r:"61950",public_characters_s:"61951","public_characters_square-0":"61952","public_characters_square-1":"61953","public_characters_square-2":"61954","public_characters_square-3":"61955","public_characters_square-4":"61956","public_characters_square-5":"61957","public_characters_square-6":"61958","public_characters_square-7":"61959","public_characters_square-8":"61960","public_characters_square-9":"61961","public_characters_square-a":"61962","public_characters_square-b":"61963","public_characters_square-c":"61964","public_characters_square-d":"61965","public_characters_square-e":"61966","public_characters_square-f":"61967","public_characters_square-g":"61968","public_characters_square-h":"61969","public_characters_square-i":"61970","public_characters_square-j":"61971","public_characters_square-k":"61972","public_characters_square-l":"61973","public_characters_square-m":"61974","public_characters_square-n":"61975","public_characters_square-o":"61976","public_characters_square-p":"61977","public_characters_square-q":"61978","public_characters_square-r":"61979","public_characters_square-s":"61980","public_characters_square-t":"61981","public_characters_square-u":"61982","public_characters_square-v":"61983","public_characters_square-w":"61984","public_characters_square-x":"61985","public_characters_square-xmark":"61986","public_characters_square-y":"61987","public_characters_square-z":"61988",public_characters_t:"61989",public_characters_u:"61990",public_characters_v:"61991",public_characters_w:"61992",public_characters_x:"61993",public_characters_y:"61994",public_characters_z:"61995",public_furniture_bath:"61996","public_furniture_bed-alt":"61997","public_furniture_bed-bunk":"61998","public_furniture_bed-empty":"61999",public_furniture_bed:"62000",public_furniture_blender:"62001",public_furniture_blinds:"62002","public_furniture_cabinet-filing":"62003","public_furniture_cash-register":"62004","public_furniture_chair-office":"62005",public_furniture_chair:"62006","public_furniture_charging-station":"62007","public_furniture_computer-classic":"62008","public_furniture_computer-speaker":"62009",public_furniture_couch:"62010","public_furniture_dryer-alt":"62011",public_furniture_dryer:"62012",public_furniture_dumbbell:"62013",public_furniture_dumpster:"62014",public_furniture_faucet:"62015",public_furniture_fax:"62016","public_furniture_hot-tub":"62017",public_furniture_inventory:"62018","public_furniture_lamp-desk":"62019","public_furniture_lamp-floor":"62020",public_furniture_lamp:"62021",public_furniture_laptop:"62022","public_furniture_light-ceiling":"62023",public_furniture_loveseat:"62024",public_furniture_microwave:"62025",public_furniture_piano:"62026",public_furniture_podium:"62027",public_furniture_presentation:"62028",public_furniture_projector:"62029",public_furniture_radio:"62030",public_furniture_refrigerator:"62031",public_furniture_shower:"62032",public_furniture_shredder:"62033",public_furniture_sink:"62034","public_furniture_solar-panel":"62035",public_furniture_speaker:"62036",public_furniture_speakers:"62037",public_furniture_toilet:"62038","public_furniture_trash-alt":"62039",public_furniture_turntable:"62040","public_furniture_tv-retro":"62041",public_furniture_tv:"62042",public_furniture_typewriter:"62043",public_objects_abacus:"62044","public_objects_alarm-clock":"62045","public_objects_album-collection":"62046",public_objects_backpack:"62047","public_objects_bags-shopping":"62048",public_objects_bell:"62049",public_objects_bicycle:"62050",public_objects_binoculars:"62051",public_objects_blanket:"62052",public_objects_book:"62053",public_objects_books:"62054",public_objects_boot:"62055",public_objects_box:"62056","public_objects_bread-loaf":"62057","public_objects_briefcase-medical":"62058",public_objects_briefcase:"62059",public_objects_broom:"62060",public_objects_brush:"62061",public_objects_bullhorn:"62062","public_objects_burger-soda":"62063",public_objects_calculator:"62064",public_objects_calendar:"62065",public_objects_camera:"62066",public_objects_car:"62067",public_objects_carrot:"62068","public_objects_cheese-swiss":"62069",public_objects_chess:"62070","public_objects_clipboard-check":"62071","public_objects_clipboard-list":"62072",public_objects_clipboard:"62073","public_objects_coffee-pot":"62074",public_objects_compass:"62075",public_objects_cookie:"62076",public_objects_corn:"62077",public_objects_croissant:"62078",public_objects_dice:"62079",public_objects_drumstick:"62080",public_objects_egg:"62081",public_objects_fish:"62082",public_objects_flask:"62083","public_objects_flower-tulip":"62084",public_objects_gamepad:"62085",public_objects_gem:"62086",public_objects_gift:"62087",public_objects_gifts:"62088","public_objects_glass-citrus":"62089",public_objects_glass:"62090",public_objects_glasses:"62091","public_objects_globe-stand":"62092","public_objects_graduation-cap":"62093",public_objects_guitar:"62094",public_objects_hammer:"62095","public_objects_hat-chef":"62096","public_objects_ice-cream":"62097","public_objects_ice-skate":"62098",public_objects_key:"62099","public_objects_knife-kitchen":"62100","public_objects_lightbulb-on":"62101","public_objects_lightbulb-slash":"62102",public_objects_lightbulb:"62103",public_objects_magnet:"62104",public_objects_mailbox:"62105",public_objects_map:"62106",public_objects_meat:"62107",public_objects_medal:"62108",public_objects_microphone:"62109",public_objects_mobile:"62110","public_objects_money-bill-wave":"62111","public_objects_mug-tea":"62112",public_objects_mug:"62113",public_objects_newspaper:"62114","public_objects_paint-roller":"62115",public_objects_palette:"62116",public_objects_pen:"62117",public_objects_phone:"62118","public_objects_pizza-slice":"62119","public_objects_pump-soap":"62120","public_objects_ruler-triangle":"62121",public_objects_ruler:"62122",public_objects_salad:"62123",public_objects_sandwich:"62124",public_objects_shovel:"62125",public_objects_steak:"62126",public_objects_sunglasses:"62127",public_objects_turkey:"62128",public_objects_utensils:"62129",public_objects_vial:"62130",public_objects_wallet:"62131",public_objects_wrench:"62132",public_people_baby:"62133","public_people_child-dress":"62134","public_people_child-reaching":"62135",public_people_child:"62136",public_people_children:"62137","public_people_circle-user":"62138","public_people_clipboard-user":"62139","public_people_face-angry":"62140","public_people_face-anguished":"62141","public_people_face-astonished":"62142","public_people_face-beam-hand-over-mouth":"62143","public_people_face-confounded":"62144","public_people_face-confused":"62145","public_people_face-diagonal-mouth":"62146","public_people_face-disappointed":"62147","public_people_face-dizzy":"62148","public_people_face-expressionless":"62149","public_people_face-eyes-xmarks":"62150","public_people_face-fearful":"62151","public_people_face-frown-slight":"62152","public_people_face-frown":"62153","public_people_face-glasses":"62154","public_people_face-grimace":"62155","public_people_face-grin-beam-sweat":"62156","public_people_face-grin-beam":"62157","public_people_face-grin-hearts":"62158","public_people_face-grin-squint-tears":"62159","public_people_face-grin-squint":"62160","public_people_face-grin-stars":"62161","public_people_face-grin-tears":"62162","public_people_face-grin-tongue-squint":"62163","public_people_face-grin-tongue-wink":"62164","public_people_face-grin-tongue":"62165","public_people_face-grin-wide":"62166","public_people_face-grin-wink":"62167","public_people_face-grin":"62168","public_people_face-hand-over-mouth":"62169","public_people_face-hushed":"62170","public_people_face-icicles":"62171","public_people_face-kiss":"62172","public_people_face-laugh":"62173","public_people_face-mask":"62174","public_people_face-meh-blank":"62175","public_people_face-meh":"62176","public_people_face-monocle":"62177","public_people_face-nauseated":"62178","public_people_face-party":"62179","public_people_face-pensive":"62180","public_people_face-persevering":"62181","public_people_face-pleading":"62182","public_people_face-pouting":"62183","public_people_face-raised-eyebrow":"62184","public_people_face-relieved":"62185","public_people_face-rolling-eyes":"62186","public_people_face-sad-cry":"62187","public_people_face-sad-sweat":"62188","public_people_face-sad-tear":"62189","public_people_face-scream":"62190","public_people_face-sleeping":"62191","public_people_face-sleepy":"62192","public_people_face-smile-beam":"62193","public_people_face-smile-halo":"62194","public_people_face-smile-hearts":"62195","public_people_face-smile-relaxed":"62196","public_people_face-smile-upside-down":"62197","public_people_face-smile-wink":"62198","public_people_face-smile":"62199","public_people_face-smirking":"62200","public_people_face-spiral-eyes":"62201","public_people_face-sunglasses":"62202","public_people_face-surprise":"62203","public_people_face-thermometer":"62204","public_people_face-thinking":"62205","public_people_face-tired":"62206","public_people_face-tissue":"62207","public_people_face-unamused":"62208","public_people_face-vomit":"62209","public_people_face-weary":"62210","public_people_face-woozy":"62211","public_people_face-worried":"62212","public_people_face-zipper":"62213","public_people_family-dress":"62214","public_people_family-pants":"62215",public_people_family:"62216","public_people_file-user":"62217","public_people_folder-user":"62218","public_people_head-side-brain":"62219","public_people_head-side-cough-slash":"62220","public_people_head-side-cough":"62221","public_people_head-side-goggles":"62222","public_people_head-side-headphones":"62223","public_people_head-side-heart":"62224","public_people_head-side-mask":"62225","public_people_head-side-medical":"62226","public_people_head-side-virus":"62227","public_people_head-side":"62228",public_people_people:"62229","public_people_person-biking":"62230","public_people_person-booth":"62231","public_people_person-breastfeeding":"62232","public_people_person-cane":"62233","public_people_person-carry-box":"62234","public_people_person-digging":"62235","public_people_person-dolly-empty":"62236","public_people_person-dolly":"62237","public_people_person-dress":"62238","public_people_person-drowning":"62239","public_people_person-falling":"62240","public_people_person-half-dress":"62241","public_people_person-hiking":"62242","public_people_person-military-pointing":"62243","public_people_person-pinball":"62244","public_people_person-praying":"62245","public_people_person-pregnant":"62246","public_people_person-running":"62247","public_people_person-seat-reclined":"62248","public_people_person-seat":"62249","public_people_person-shelter":"62250","public_people_person-skating":"62251","public_people_person-skiing":"62252","public_people_person-swimming":"62253","public_people_person-to-door":"62254","public_people_person-walking-luggage":"62255","public_people_person-walking-with-cane":"62256","public_people_person-walking":"62257",public_people_person:"62258",public_people_restroom:"62259","public_people_square-user":"62260","public_people_street-view":"62261","public_people_user-astronaut":"62262","public_people_user-check":"62263","public_people_user-chef":"62264","public_people_user-clock":"62265","public_people_user-cowboy":"62266","public_people_user-crown":"62267","public_people_user-doctor":"62268","public_people_user-gear":"62269","public_people_user-graduate":"62270","public_people_user-group":"62271","public_people_user-headset":"62272","public_people_user-helmet-safety":"62273","public_people_user-injured":"62274","public_people_user-large":"62275","public_people_user-lock":"62276","public_people_user-minus":"62277","public_people_user-music":"62278","public_people_user-nurse":"62279","public_people_user-pen":"62280","public_people_user-pilot":"62281","public_people_user-plus":"62282","public_people_user-police":"62283","public_people_user-shield":"62284","public_people_user-slash":"62285","public_people_user-unlock":"62286",public_people_user:"62287",public_people_users:"62288",public_people_wheelchair:"62289","public_symbols_arrow-alt-circle-down":"62290","public_symbols_arrow-alt-circle-left":"62291","public_symbols_arrow-alt-circle-right":"62292","public_symbols_arrow-alt-circle-up":"62293","public_symbols_arrow-alt-down":"62294","public_symbols_arrow-alt-left":"62295","public_symbols_arrow-alt-right":"62296","public_symbols_arrow-alt-up":"62297",public_symbols_award:"62298","public_symbols_badge-check":"62299","public_symbols_badge-dollar":"62300",public_symbols_badge:"62301",public_symbols_ban:"62302",public_symbols_bell:"62303","public_symbols_bolt-slash":"62304",public_symbols_bolt:"62305",public_symbols_bookmark:"62306","public_symbols_check-circle":"62307",public_symbols_check:"62308",public_symbols_circle:"62309",public_symbols_clock:"62310",public_symbols_club:"62311",public_symbols_cube:"62312",public_symbols_cubes:"62313",public_symbols_deaf:"62314",public_symbols_diamond:"62315","public_symbols_dollar-sign":"62316","public_symbols_exclamation-circle":"62317","public_symbols_exclamation-square":"62318","public_symbols_exclamation-triangle":"62319",public_symbols_exclamation:"62320","public_symbols_eye-slash":"62321",public_symbols_eye:"62322",public_symbols_file:"62323",public_symbols_fingerprint:"62324","public_symbols_fire-alt":"62325","public_symbols_flag-alt":"62326",public_symbols_folder:"62327",public_symbols_genderless:"62328",public_symbols_heart:"62329",public_symbols_hexagon:"62330",public_symbols_hourglass:"62331",public_symbols_image:"62332","public_symbols_info-circle":"62333","public_symbols_info-square":"62334","public_symbols_layer-group":"62335",public_symbols_link:"62336","public_symbols_location-arrow":"62337","public_symbols_lock-open":"62338",public_symbols_lock:"62339","public_symbols_map-marker-alt":"62340","public_symbols_map-marker-check":"62341","public_symbols_map-marker-exclamation":"62342","public_symbols_map-marker-minus":"62343","public_symbols_map-marker-plus":"62344","public_symbols_map-marker-question":"62345","public_symbols_map-marker-smile":"62346",public_symbols_mars:"62347",public_symbols_moon:"62348",public_symbols_octagon:"62349",public_symbols_paperclip:"62350","public_symbols_parking-circle":"62351",public_symbols_parking:"62352",public_symbols_pause:"62353",public_symbols_play:"62354","public_symbols_question-circle":"62355","public_symbols_question-square":"62356",public_symbols_question:"62357",public_symbols_recycle:"62358",public_symbols_redo:"62359",public_symbols_shapes:"62360",public_symbols_shield:"62361","public_symbols_smoking-ban":"62362",public_symbols_smoking:"62363",public_symbols_spade:"62364",public_symbols_square:"62365","public_symbols_star-filled":"62366",public_symbols_star:"62367",public_symbols_tachometer:"62368",public_symbols_tag:"62369","public_symbols_temperature-down":"62370","public_symbols_temperature-frigid":"62371","public_symbols_temperature-high":"62372","public_symbols_temperature-hot":"62373","public_symbols_temperature-low":"62374","public_symbols_temperature-up":"62375",public_symbols_text:"62376","public_symbols_thermometer-empty":"62377","public_symbols_thermometer-full":"62378","public_symbols_thermometer-half":"62379","public_symbols_thermometer-quarter":"62380","public_symbols_thermometer-three-quarters":"62381",public_symbols_thumbtack:"62382",public_symbols_tint:"62383","public_symbols_transgender-alt":"62384",public_symbols_transgender:"62385","public_symbols_trash-alt":"62386",public_symbols_triangle:"62387","public_symbols_usd-circle":"62388","public_symbols_usd-square":"62389","public_symbols_venus-mars":"62390",public_symbols_venus:"62391",public_symbols_video:"62392","public_symbols_volume-down":"62393","public_symbols_volume-mute":"62394","public_symbols_volume-off":"62395","public_symbols_volume-slash":"62396","public_symbols_volume-up":"62397",public_symbols_volume:"62398",public_symbols_water:"62399",public_symbols_waveform:"62400","public_symbols_wifi-slash":"62401",public_symbols_wifi:"62402","public_symbols_yen-sign":"62403",question:"62404",reorder:"62405",reply:"62406",restart:"62407",revert:"62408","room-00258k0mqu8750du151be805c":"62409","room-0an2rky24gb91fdnpzmbwadib":"62410","room-0gnuunpwx63dmmqeq64aqfiyd":"62411","room-2nx6maxxpaeut7kx96fuacdzc":"62412","room-4by2d70b54srbin43t5m0yh9c":"62413","room-4gp8x21ni4i8y19r9pm4rb35a":"62414","room-4qq4e5hz84hcur7ry87uhtmua":"62415","room-66psa4tqgazbnffr9huy2dnpd":"62416","room-91naa1k3hiim9z4mk8352enta":"62417","room-a11d2gi43h0etwedw0mx9pgwd":"62418","room-ag5uphha72sak65qazgsp09yd":"62419","room-byp7pz2tmt4ff47nhfx0uwzec":"62420","room-e6md2spaqemc448pmau3azkhd":"62421","room-ei3kmtun2xpspbg3d5ff3t3zc":"62422","room-gba8cq0s2rdfg1zdb1epwty7d":"62423","room-ge0tcan3iztta5mtgsfx99xpb":"62424","room-gqqw1zac1hzg1p8622ducg3zb":"62425","room-izt39gytcbymc0qtd37nrb7xb":"62426","room-multi-use":"62427","room-mx6e2yfk0tg0zbkbzuw5mhkda":"62428","room-n07hhs9gky4cgrh7q65s9rp0d":"62429","room-nqw75004dcg2bcr41047rhg6c":"62430","room-pnf0xzq61xcegack4iai7xppd":"62431","room-pr9h4zy7eak91f3b7un97u42c":"62432","room-qa21tqcsinnxde9gdmiphacza":"62433","room-rmu8pikcye0n7n9fsu5e4acda":"62434","room-s1h0hb8tpcc9i35dmupknsega":"62435","room-ua1m0u8pm3yngrhzwec1ue5zc":"62436","room-w4tdggk5i5u2zpiryugktghgb":"62437","room-xwhhz63a0hw735qf81knp63ha":"62438","room-y3xuprmywgrprnm0273u3pphd":"62439","room-yeh1aa32fwgm72bh0g92ebruc":"62440","room-ywtddu9hagraxhznwinn8t4zb":"62441","room-zgh2304w5anu0t25ia06ytfxd":"62442","room-zp189tx2hdrry8k5nhaq5x45d":"62443","rotate-left":"62444","rotate-right":"62445",rotate:"62446","rotation-3d":"62447","scale-3d":"62448",settings:"62449",share:"62450",share2:"62451","simple-tag-pin":"62452","simple-tag-small":"62453","simple-tag":"62454",snap:"62455","sparkle-fill":"62456","start-location":"62457","stem-height":"62458","tape-measure":"62459","toggle-pencil":"62460","toolbar-360-view":"62461","toolbar-edit-vr":"62462","toolbar-hlr":"62463","toolbar-labels":"62464","toolbar-mattertags":"62465","toolbar-measurements":"62466","toolbar-more-horiz":"62467","toolbar-photos":"62468","toolbar-plugin-config":"62469","toolbar-scan-mgmt":"62470","toolbar-start-location":"62471",transitions:"62472",trash:"62473","trim-keep":"62474","trim-remove":"62475",twitter:"62476",unlock:"62477",user:"62478",visibility:"62479",vr:"62480",wall:"62481",window:"62482","zoom-reset":"62483"}},85626:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var n=i(28511);const s=Object.keys(n.J).sort(((e,t)=>e.localeCompare(t)))},30278:(e,t,i)=>{"use strict";i.d(t,{$A:()=>n,Dm:()=>o,aI:()=>a,i1:()=>s});class n extends Error{constructor(e,t,i){super(e),this.status=t,this.type=i,Error.captureStackTrace&&Error.captureStackTrace(this,n)}}class s extends n{constructor(e){super(`Cannot request OEmbed data because no configuration matches the url ${e}`,200,"OEmbedUrl")}}class a extends n{constructor(e="unknown provider"){super(`Content from OEmbed provider ${e} is not currently supported`,200,"OEmbedProvider")}}class o extends n{constructor(e="unknown provider"){super(`Content from ${e} is type "link", which Link content is not currently supported`,200,"OEmbedLink")}}},42390:(e,t,i)=>{"use strict";var n;i.d(t,{n:()=>n}),function(e){e.PHOTO="photo",e.VIDEO="video",e.LINK="link",e.RICH="rich"}(n||(n={}))},23716:(e,t,i)=>{"use strict";var n;i.d(t,{K:()=>n}),function(e){e.Behance="behance",e.DailyMotion="dailymotion",e.FaceBook="facebook",e.Flickr="flickr",e.Giphy="giphy",e.GoogleMaps="google maps",e.Instagram="instagram",e.LinkedIn="linkedin",e.Matterport="matterport",e.MixCloud="mixcloud",e.Pinterest="pinterest",e.Reddit="reddit",e.SoundCloud="soundcloud",e.SketchFab="sketchfab",e.Spotify="spotify",e.Tenor="tenor",e.TikTok="tiktok",e.Twitch="twitch",e.Twitter="twitter",e.Tumblr="tumblr",e.Vimeo="vimeo",e.YouTube="youtube"}(n||(n={}))},97084:(e,t,i)=>{"use strict";var n,s;i.d(t,{L3:()=>o,QK:()=>n}),function(e){e[e.LOW=0]="LOW",e[e.MEDIUM=1]="MEDIUM",e[e.HIGH=2]="HIGH",e[e.HIGHEST=3]="HIGHEST"}(n||(n={})),function(e){e[e.PENDING=0]="PENDING",e[e.SENDING=1]="SENDING",e[e.FAILED=2]="FAILED",e[e.DONE=3]="DONE"}(s||(s={}));const a=new WeakMap;class o{constructor({retries:e=0,concurrency:t=6}={}){this.totalBytesDownloaded=0,this.queue=[],this.retries=e,this.concurrency=t}get(e,t){return this.request("GET",e,t)}head(e,t){return this.request("HEAD",e,t)}options(e,t){return this.request("OPTIONS",e,t)}post(e,t){return this.request("POST",e,t)}put(e,t){return this.request("PUT",e,t)}patch(e,t){return this.request("PATCH",e,t)}delete(e,t){return this.request("DELETE",e,t)}request(e,t,i){const n=new r(e,t,i);if(null==i?void 0:i.signal){const e=()=>{this.queue.includes(n)&&(n.status===s.SENDING&&n.abort(),this.dequeue(n),n.onFail(new DOMException("Aborted","AbortError")))};i.signal.addEventListener("abort",e),a.set(n,(()=>{var t;null===(t=i.signal)||void 0===t||t.removeEventListener("abort",e),a.delete(n)}))}return this.enqueue(n),n.promise}update(){let e;for(;e=this.getNextPendingRequest();)this.sendRequest(e);for(;e=this.getNextOverflowingGet();)e.abort(),e.status=s.PENDING;this.updateTimeout=null}enqueue(e){let t=0;for(t=0;t{this.update()}),1))}dequeue(e){var t;null===(t=a.get(e))||void 0===t||t();const i=this.queue.indexOf(e);if(-1===i)throw new Error("Can't dequeue request not in queue");this.queue.splice(i,1),this.update()}getNextPendingRequest(){for(let e=0;e{e.status=s.DONE,this.dequeue(e),e.contentLength&&e.contentLength>0&&(this.totalBytesDownloaded+=Number(e.contentLength)),e.onDone(t)})).catch((t=>{const i=null!==e.maxRetries?e.maxRetries:this.retries;let n=e.sendAttempts{this.onDone=e,this.onFail=t}))}send(){const e=this.xhr=function(e,t,i){let n;if("undefined"!=typeof XMLHttpRequest)n=new XMLHttpRequest,n.withCredentials=i;else{if("undefined"==typeof XDomainRequest)throw new Error("No XMLHTTPRequest or XDomainRequest... are you trying to run me in node? :(");n=new XDomainRequest}return n.open(e,t,!0),n}(this.method,this.url,this.withCredentials);if(this.responseType)if("arraybuffer"===this.responseType||"text"===this.responseType||"json"===this.responseType||"blob"===this.responseType)e.responseType=this.responseType;else{if("image"!==this.responseType)throw new Error('reponseType can only be one of "arraybuffer", "text", "json", "blob", "image"');e.responseType="blob"}"json"===this.responseType&&e.setRequestHeader("Accept","application/json"),this.auth&&"string"==typeof this.auth&&e.setRequestHeader("Authorization",this.auth);for(const t in this.headers)e.setRequestHeader(t,this.headers[t]);return this.body&&"object"==typeof this.body&&(this.body instanceof FormData||(this.body=JSON.stringify(this.body),e.setRequestHeader("Content-Type","application/json"))),this.onProgress&&(e.onprogress=this.onProgress),new Promise(((t,i)=>{e.onreadystatechange=()=>{if(4===e.readyState){if(200===e.status||201===e.status||204===e.status)return this.parseResponse(this.xhr).then((e=>{t(e)}));if(!this.isAborting)return this.parseResponse(this.xhr).then((t=>{i(Object.assign({status_code:e.status},t))})).catch((()=>{i({status_code:e.status})}));this.isAborting=!1}},e.onerror=function(e){i(e)},e.send(this.body),this.sendAttempts++}))}parseResponse(e){return new Promise(((t,i)=>{var n;try{if(!e)throw new Error(`No request received. Trying ${this.method} on ${this.url} and expecting ${this.responseType}, but request was ${this.xhr}`);let i=e.response;if(this.contentLength=parseInt(null!==(n=e.getResponseHeader("Content-Length"))&&void 0!==n?n:"0",10),"json"===this.responseType&&"object"!=typeof i)t(JSON.parse(e.responseText));else if(200!==e.status&&201!==e.status&&204!==e.status||"image"!==this.responseType)t(i);else{const e=URL.createObjectURL(i);i=new Image,i.onload=function(){URL.revokeObjectURL(e),t(i)},i.src=e,i.crossOrigin="Anonymous"}}catch(e){i({error:"Payload was not valid JSON"})}}))}abort(){if(null===this.xhr)throw new Error("Cannot abort unsent Request");this.isAborting=!0,this.xhr.abort()}}},7691:(e,t,i)=>{"use strict";i.d(t,{L:()=>s});var n=i(2807);class s extends Error{constructor(){super(),this.type=n.B.REFUSED,this.name="ConnectionRefusedError"}}},45493:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});var n=i(2807);class s extends Error{constructor(e){super(e),this.type=n.B.INVALID_PROVIDER,this.name="InvalidProviderError"}}},77331:(e,t,i)=>{"use strict";i.d(t,{d:()=>s});var n=i(2807);class s extends Error{constructor(e){super(e),this.type=n.B.KEY_MISMATCH,this.name="KeyReferrerMismatchError"}}},2807:(e,t,i)=>{"use strict";var n;i.d(t,{B:()=>n}),function(e){e.CANCELLED="ConnectionCancelled",e.REFUSED="ConnectionRefused",e.INVALID_PROVIDER="InvalidProvider",e.KEY_MISMATCH="KeyReferrerMismatch"}(n||(n={}))},30877:(e,t,i)=>{"use strict";i.d(t,{p:()=>n});var n,s=i(50505);!function(e){const t=new s.o;e.connect=async function(e,i,n){let s;try{s=await e.connect()}finally{e.cancelConnecting()}return function(e,t,i,n){return new t(i,e).build(n)}(n,await async function(e){if(!e)throw new Error("Unabled to load the sdk");try{const i=await t.load(e,"sdk-client");if(i&&i.SdkBuilder&&"function"==typeof i.SdkBuilder)return i.SdkBuilder}catch(e){}throw Error(`Could not load the sdk from ${e}`)}(s.scriptUrl),i.getFactory(s),s.serializedInterface)}}(n||(n={}))},30530:(e,t,i)=>{"use strict";i.d(t,{F:()=>s});var n=i(99951);class s{constructor(e){this.receiver=e,this.messageType=n.e.ACCEPT}notify(e,t,i){const{sourceId:n,scriptUrl:s,targetId:a,targetOrigin:o}=e,r=e.interface;this.receiver.accept(n,s,r,a,o)}}},75986:(e,t,i)=>{"use strict";i.d(t,{o:()=>s});var n=i(99951);class s{constructor(e){this.receiver=e,this.messageType=n.g.CONNECT}notify(e,t){this.receiver.onConnectionReceived(e,t)}}},72173:(e,t,i)=>{"use strict";i.d(t,{a:()=>d});var n=i(7691),s=i(45493),a=i(77331),o=i(2807);const r={[o.B.REFUSED]:n.L,[o.B.KEY_MISMATCH]:a.d,[o.B.INVALID_PROVIDER]:s.d};var l=i(99951);class d{constructor(e){this.receiver=e,this.messageType=l.e.REJECT}notify(e,t,i){const n=r[e.errorType];if(n){const t=new n(e.reason);this.receiver.reject(t)}}}},99951:(e,t,i)=>{"use strict";var n,s;i.d(t,{e:()=>s,g:()=>n}),function(e){e.CONNECT="postmessage.connect"}(n||(n={})),function(e){e.HANDSHAKE="postmessage.handshake",e.ACCEPT="postmessage.accept",e.REJECT="postmessage.reject"}(s||(s={}))},14895:(e,t,i)=>{"use strict";i.d(t,{g:()=>s});var n=i(99951);class s{constructor(e,t,i,s,a){this.type=n.e.ACCEPT,this.payload={scriptUrl:e,interface:t,sourceId:i,targetId:s,targetOrigin:a},this.interface=t}}},82655:(e,t,i)=>{"use strict";i.d(t,{S:()=>s});var n=i(99951);class s{constructor(e,t={}){this.type=n.g.CONNECT,this.payload={bootstrapVersion:e,options:{auth:t.auth,provider:t.provider,sdkType:t.sdkType},applicationKey:t.applicationKey}}}},15690:(e,t,i)=>{"use strict";i.d(t,{R:()=>s});var n=i(99951);class s{constructor(){this.type=n.e.HANDSHAKE,this.payload={}}}},52294:(e,t,i)=>{"use strict";i.d(t,{v:()=>s});var n=i(99951);class s{constructor(e){this.type=n.e.REJECT,this.payload={reason:e.message,errorType:e.type},this.reason=e.message}}},46867:(e,t,i)=>{"use strict";i.d(t,{L0:()=>k,Vm:()=>w,ET:()=>C,CF:()=>s,Gj:()=>B,r9:()=>W,Bb:()=>x,WN:()=>D,co:()=>G,V_:()=>F,CP:()=>U,dP:()=>j,O0:()=>V,mS:()=>P,gW:()=>a,x$:()=>H,Pv:()=>K,d_:()=>M});var n,s,a,o,r,l,d,c,u,h,m,p,E,S,O,g,T,_,A,v,N,I=i(10843);i(5391);!function(e){e.EVENT="postmessage.event",e.RESPONSE="postmessage.response",e.OBSERVATION="postmessage.observation",e.COLLECTION_UPDATE="collection.updated",e.PRIVATE_MESSAGE="private.message"}(n||(n={})),function(e){e.ITEM_ADDED="collection.item.added",e.ITEM_REMOVED="collection.item.removed",e.ITEM_UPDATED="collection.item.updated",e.COLL_UPDATED="collection.coll.updated"}(s||(s={}));!function(e){e.DISCONNECT="sdk.client.disconnect",e.ACTION="postmessage.action",e.EVENT_SUB="postmessage.subscribe",e.EVENT_UNSUB="postmessage.unsubscribe",e.OBSERVABLE_SUB="postmessage.observe",e.OBSERVABLE_UNSUB="postmessage.unobserve",e.COLLECTION_SUB="collection.sub",e.COLLECTION_UNSUB="collection.unsub",e.PRIVATE_MESSAGE="private.message"}(a||(a={}));!function(e){let t,i,n,s;!function(e){e.PHASE_CHANGE="application.phasechange"}(t=e.Event||(e.Event={})),function(e){e.UNINITIALIZED="appphase.uninitialized",e.WAITING="appphase.waiting",e.LOADING="appphase.loading",e.STARTING="appphase.starting",e.PLAYING="appphase.playing",e.ERROR="appphase.error"}(i=e.Phase||(e.Phase={})),function(e){e.UNKNOWN="application.unknown",e.WEBVR="application.webvr",e.SHOWCASE="application.showcase",e.WORKSHOP="application.workshop"}(n=e.Application||(e.Application={})),function(e){e.RoomBounds="feature.roombounds",e.Defurnish="feature.defurnish"}(s=e.Feature||(e.Feature={}))}(o||(o={})),function(e){let t,i,n;!function(e){e.IMAGE="image",e.PDF="pdf",e.VIDEO="video",e.RICH="rich",e.ZIP="zip",e.TEXT="text",e.AUDIO="audio",e.MODEL="model",e.APPLICATION="application"}(t=e.MediaType||(e.MediaType={})),function(e){e.EXTERNAL="external",e.UPLOAD="upload",e.SANDBOX="sandbox"}(i=e.AttachmentCategory||(e.AttachmentCategory={})),function(e){e.COMMENT="comment",e.MATTERTAG="mattertag"}(n=e.ParentType||(e.ParentType={}))}(r||(r={})),function(e){let t,i;!function(e){e.MOVE="camera.move"}(t=e.Event||(e.Event={})),function(e){e.FORWARD="FORWARD",e.LEFT="LEFT",e.RIGHT="RIGHT",e.BACK="BACK",e.UP="UP",e.DOWN="DOWN"}(i=e.Direction||(e.Direction={}))}(l||(l={})),function(e){let t;!function(e){e.CHANGE_START="floors.changestart",e.CHANGE_END="floors.changeend"}(t=e.Event||(e.Event={}))}(d||(d={})),function(e){let t;!function(e){e.SUCCESS="astar.status.success",e.NO_PATH="astar.status.no_path",e.TIMEOUT="astar.status.timeout",e.NO_START_VERTEX="astar.status.no_start",e.NO_END_VERTEX="astar.status.no_end"}(t=e.AStarStatus||(e.AStarStatus={}))}(c||(c={})),function(e){let t;!function(e){e.POSITION_UPDATED="label.positionupdated"}(t=e.Event||(e.Event={}))}(u||(u={})),function(e){let t,i,n;!function(e){e.WINDOW="link.creationpolicy.window",e.REFERRER="link.creationpolicy.referrer",e.MATTERPORT="link.creationpolicy.matterport"}(t=e.CreationPolicy||(e.CreationPolicy={})),function(e){e.DEFAULT="link.openpolicy.default",e.NEW_WINDOW="link.openpolicy.newwindow",e.SAME_FRAME="link.openpolicy.sameframe",e.CURRENT_WINDOW="link.openpolicy.current"}(i=e.OpenPolicy||(e.OpenPolicy={})),function(e){e.DEFAULT="link.destination.default",e.MATTERPORT="link.destination.matterport"}(n=e.DestinationPolicy||(e.DestinationPolicy={}))}(h||(h={})),function(e){let t,i,n,s,a;!function(e){e.INSTANT="transition.instant",e.FLY="transition.fly",e.FADEOUT="transition.fade"}(t=e.Transition||(e.Transition={})),function(e){e.NAVIGATION="tag.link.nav",e.MODEL="tag.link.model",e.EXT_LINK="tag.link.ext"}(i=e.LinkType||(e.LinkType={})),function(e){e.NONE="tag.chunk.none",e.TEXT="tag.chunk.text",e.LINK="tag.chunk.link"}(n=e.DescriptionChunkType||(e.DescriptionChunkType={})),function(e){e.HOVER="tag.hover",e.CLICK="tag.click",e.LINK_OPEN="tag.linkopen"}(s=e.Event||(e.Event={})),function(e){e.NONE="mattertag.media.none",e.PHOTO="mattertag.media.photo",e.VIDEO="mattertag.media.video",e.RICH="mattertag.media.rich"}(a=e.MediaType||(e.MediaType={}))}(m||(m={})),function(e){let t,i,n;!function(e){e.INSIDE="mode.inside",e.OUTSIDE="mode.outside",e.DOLLHOUSE="mode.dollhouse",e.FLOORPLAN="mode.floorplan",e.TRANSITIONING="mode.transitioning"}(t=e.Mode||(e.Mode={})),function(e){e.CHANGE_START="viewmode.changestart",e.CHANGE_END="viewmode.changeend"}(i=e.Event||(e.Event={})),function(e){e.INSTANT="transition.instant",e.FLY="transition.fly",e.FADEOUT="transition.fade"}(n=e.TransitionType||(e.TransitionType={}))}(p||(p={})),function(e){let t;!function(e){e.MODEL_LOADED="model.loaded"}(t=e.Event||(e.Event={}))}(E||(E={})),function(e){let t;!function(e){e.NONE="intersectedobject.none",e.MODEL="intersectedobject.model",e.TAG="intersectedobject.tag",e.SWEEP="intersectedobject.sweep",e.UNKNOWN="intersectedobject.unknown"}(t=e.Colliders||(e.Colliders={}))}(S||(S={})),O||(O={}),function(e){let t,i;!function(e){e.CAMERA="sensor.sensortype.camera"}(t=e.SensorType||(e.SensorType={})),function(e){e.SPHERE="sensor.sourcetype.sphere",e.BOX="sensor.sourcetype.box",e.CYLINDER="sensor.sourcetype.cylinder"}(i=e.SourceType||(e.SourceType={}))}(g||(g={})),function(e){let t,i,n,s;!function(e){e.ENTER="sweep.enter",e.EXIT="sweep.exit"}(t=e.Event||(e.Event={})),function(e){e.INSTANT="transition.instant",e.FLY="transition.fly",e.FADEOUT="transition.fade"}(i=e.Transition||(e.Transition={})),function(e){e.ALIGNED="aligned",e.UNALIGNED="unaligned"}(n=e.Alignment||(e.Alignment={})),function(e){e.UNPLACED="unplaced",e.AUTO="auto",e.MANUAL="manual"}(s=e.Placement||(e.Placement={}))}(T||(T={})),function(e){let t;!function(e){e.UNKNOWN="tag.attachment.unknown",e.APPLICATION="tag.attachment.application",e.AUDIO="tag.attachment.audio",e.IMAGE="tag.attachment.image",e.MODEL="tag.attachment.model",e.PDF="tag.attachment.pdf",e.RICH="tag.attachment.rich",e.TEXT="tag.attachment.text",e.VIDEO="tag.attachment.video",e.ZIP="tag.attachment.zip",e.SANDBOX="tag.attachment.sandbox"}(t=e.AttachmentType||(e.AttachmentType={}))}(_||(_={})),function(e){let t,i;!function(e){e.STARTED="tour.started",e.STOPPED="tour.stopped",e.ENDED="tour.ended",e.STEPPED="tour.stepped"}(t=e.Event||(e.Event={})),function(e){e.INACTIVE="tour.inactive",e.ACTIVE="tour.active",e.STOP_SCHEDULED="tour.stopscheduled"}(i=e.PlayState||(e.PlayState={}))}(A||(A={})),function(e){let t;!function(e){e.BASE="base",e.DEFURNISH="defurnish",e.OTHER="other"}(t=e.ModelViewType||(e.ModelViewType={}))}(v||(v={})),function(e){let t,i,n;!function(e){e.OBJ_LOADER="mp.objLoader",e.FBX_LOADER="mp.fbxLoader",e.DAE_LOADER="mp.daeLoader",e.GLTF_LOADER="mp.gltfLoader",e.SCROLLING_TUBE="mp.scrollingTube",e.TRANSFORM_CONTROLS="mp.transformControls",e.LIGHTS_COMPONENT="mp.lights",e.POINT_LIGHT="mp.pointLight",e.DIRECTIONAL_LIGHT="mp.directionalLight",e.AMBIENT_LIGHT="mp.ambientLight",e.CAMERA="mp.camera",e.INPUT="mp.input",e.XR="mp.xr"}(t=e.Component||(e.Component={})),function(e){e.CLICK="INTERACTION.CLICK",e.HOVER="INTERACTION.HOVER",e.DRAG="INTERACTION.DRAG",e.DRAG_BEGIN="INTERACTION.DRAG_BEGIN",e.DRAG_END="INTERACTION.DRAG_END",e.POINTER_MOVE="INTERACTION.POINTER_MOVE",e.POINTER_BUTTON="INTERACTION.POINTER_BUTTON",e.SCROLL="INTERACTION.SCROLL",e.KEY="INTERACTION.KEY",e.LONG_PRESS_START="INTERACTION.LONG_PRESS_START",e.LONG_PRESS_END="INTERACTION.LONG_PRESS_END",e.MULTI_SWIPE="INTERACTION.MULTI_SWIPE",e.MULTI_SWIPE_END="INTERACTION.MULTI_SWIPE_END",e.PINCH="INTERACTION.PINCH",e.PINCH_END="INTERACTION.PINCH_END",e.ROTATE="INTERACTION.ROTATE",e.ROTATE_END="INTERACTION.ROTATE_END"}(i=e.InteractionType||(e.InteractionType={})),function(e){e.INPUT="input",e.OUTPUT="output",e.EVENT="event",e.EMIT="emit"}(n=e.PathType||(e.PathType={}))}(N||(N={}));i(71397),i(28337),i(72268);Math.PI;p.Mode.DOLLHOUSE,new Float32Array(16);var L=i(9130);L.E.Success,c.AStarStatus.SUCCESS,L.E.NoPath,c.AStarStatus.NO_PATH,L.E.Timeout,c.AStarStatus.TIMEOUT;Symbol.iterator;var f;!function(e){e.SETUP="sandbox.setup",e.TO_SANDBOX="sandbox.to.sandbox",e.TO_CLIENT="sandbox.to.client"}(f||(f={}));var b;!function(e){e.map=new Map}(b||(b={}));Symbol.iterator;var R;!function(e){e.ADD="view.add.layer",e.REMOVE="view.remove.layer"}(R||(R={}));new WeakMap,new WeakMap,new WeakMap;new WeakMap,new WeakMap,new WeakMap;const y=new I.Ay("SDK client");"undefined"!=typeof __SDK_CLIENT_VERSION__&&y.info("Showcase SDK client version:",__SDK_CLIENT_VERSION__);class M{constructor(e,t,i,s){this.type=n.RESPONSE,this.payload={uid:e,message:t,success:i,error:s},this.uid=e,this.message=t,this.success=i,this.error=s}}class D{constructor(e,t){this.type=n.EVENT,this.payload={eventType:e,eventData:t},this.eventType=e,this.eventData=t}}class P{constructor(e,t){this.type=n.OBSERVATION,this.payload={observableKey:e,observableData:t}}}class k{constructor(e,t,i,s){this.type=n.COLLECTION_UPDATE,this.payload={operation:e,collectionKey:t,collectionIndex:i,item:s}}}class w{constructor(e,t,i){this.type=n.COLLECTION_UPDATE,this.payload={operation:e,collectionKey:t,collectionIndex:i}}}class C{constructor(e,t,i,s){this.type=n.COLLECTION_UPDATE,this.payload={operation:e,collectionKey:t,collectionIndex:i,item:s}}}class x{constructor(e,t){this.type=n.COLLECTION_UPDATE,this.payload={operation:e,collectionKey:t}}}class H{constructor(e,t){this.type=n.PRIVATE_MESSAGE,this.payload={messageType:e,messagePayload:t}}}class U{constructor(e,t){this.receiver=e,this.clientInfo=t,this.messageType=a.ACTION}notify(e){this.receiver.onActionReceived(e,this.clientInfo)}}class G{constructor(e,t){this.observer=e,this.clientInfo=t,this.messageType=a.EVENT_SUB}notify(e){this.observer.onEventSubReceived(e,this.clientInfo)}}class F{constructor(e,t){this.observer=e,this.clientInfo=t,this.messageType=a.EVENT_UNSUB}notify(e){this.observer.onEventUnsubReceived(e,this.clientInfo)}}class j{constructor(e,t){this.observer=e,this.clientInfo=t,this.messageType=a.OBSERVABLE_SUB}notify(e){this.observer.onObservableSubReceived(e,this.clientInfo)}}class V{constructor(e,t){this.observer=e,this.clientInfo=t,this.messageType=a.OBSERVABLE_UNSUB}notify(e){this.observer.onObservableUnsubReceived(e,this.clientInfo)}}class B{constructor(e,t){this.observer=e,this.clientInfo=t,this.messageType=a.COLLECTION_SUB}notify(e){this.observer.onCollectionSubReceived(e,this.clientInfo)}}class W{constructor(e,t){this.observer=e,this.clientInfo=t,this.messageType=a.COLLECTION_UNSUB}notify(e){this.observer.onCollectionUnsubReceived(e,this.clientInfo)}}class K{constructor(e,t){this.observer=e,this.clientInfo=t,this.messageType=a.PRIVATE_MESSAGE}notify(e){this.observer.onPrivateMessageReceived(e,this.clientInfo)}}},41465:(e,t,i)=>{"use strict";i.d(t,{g:()=>n});class n{constructor(e){this.messageReceiver=e}notify(e,t){this.messageReceiver.onMessageReceived(e,t)}}},22519:(e,t,i)=>{"use strict";i.d(t,{e:()=>o});var n=i(41465),s=i(5391);class a{listen(){}stopListening(){}send(){throw Error("The sdk has been disconnected and can't make any new calls")}}class o{constructor(e,t,i){this.sourceId=e,this.targetId=t,this.messageBridge=i,this.observers=new s.k}static toFilteredMessenger(e,t,i){const n=new r(e.sourceId,e.targetId,e,t);for(const t of i)for(const i of e.observers.getValuesAtKey(t))n.addObserver(i);return n}init(){const e=new class{constructor(e){this.messenger=e}onMessageReceived(e,t){this.messenger.onMessageReceived(e,t)}}(this),t=new n.g(e);this.messageBridge.listen(t)}dispose(){this.messageBridge.stopListening(),this.messageBridge=new a}addObserver(e){this.observers.add(e.messageType,e)}removeObserver(e){this.observers.remove(e.messageType,e)}send(e){const t=this.sourceId,i=this.targetId;this.messageBridge.send(Object.assign(Object.assign({},e),{fromId:t,toId:i,timestamp:Date.now()}))}onMessageReceived(e,t){if(!this.filterMessageId(e))return;const i=e.type,n=this.observers.getValuesAtKey(i);if(n)for(const i of n){const n=e.payload||e;i.notify(n,t,e.timestamp)}}filterMessageId(e){const t=e.toId,i=e.fromId;return t instanceof Array?t.indexOf(this.sourceId)>-1:(void 0===t||t===this.sourceId)&&i===this.targetId}}class r extends o{constructor(e,t,i,n){super(e,t,new a),this.messenger=i,this.sendFilter=n,this.errorBridge=new a}send(e){this.sendFilter.includes(e.type)?this.messenger.send(e):this.errorBridge.send()}}},21713:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(41465),s=i(5391);class a{constructor(e,t){this.sourceId=e,this.listenerBridge=t,this.observers=new s.k}init(){const e=new class{constructor(e){this.messenger=e}onMessageReceived(e,t){this.messenger.onMessageReceived(e,t)}}(this),t=new n.g(e);this.listenerBridge.listen(t)}dispose(){this.listenerBridge.stopListening()}addObserver(e){this.observers.add(e.messageType,e)}removeObserver(e){this.observers.remove(e.messageType,e)}send(e,t,i,n){i.send(Object.assign(Object.assign({},e),{fromId:this.sourceId,toId:t,timestamp:Date.now()}),n)}onMessageReceived(e,t){const i=e.type,n=this.observers.getValuesAtKey(i);if(n)for(const i of n){const n=e.payload||e;i.notify(n,t,e.timestamp)}}}},55723:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=i(22519);class s{constructor(e,t){this.source=e,this.target=t,this.messageObserver=null}listen(e){this.messageObserver||(this.messageObserver=e,this.source.addObserver(e))}stopListening(){this.messageObserver&&this.source.removeObserver(this.messageObserver)}send(e){const t=this.target;t&&t.post(Object.assign({},e),this.source)}}class a{constructor(e,t,i,n){this.sourceId=e,this.sourceNode=t,this.targetId=i,this.targetNode=n}createMessenger(){const e=new s(this.sourceNode,this.targetNode);return new n.e(this.sourceId,this.targetId,e)}}},93527:(e,t,i)=>{"use strict";i.d(t,{F:()=>n});class n{constructor(e){this.origin=e,this.observers=new Set}addObserver(e){this.observers.add(e)}removeObserver(e){this.observers.delete(e)}post(e,t){for(const i of this.observers)i.notify(e,t)}}},80279:(e,t,i)=>{"use strict";i.d(t,{d:()=>n});class n{constructor(e){this.targetNode=e,this.messageObserver=null,this.onMessage=(e,t)=>{this.messageObserver&&this.messageObserver.notify({payload:Object.assign({},e.payload),type:e.type},{id:e.fromId,source:t},e.timestamp)}}listen(e){this.messageObserver||(this.messageObserver=e,this.targetNode.addObserver({notify:(e,t)=>{this.onMessage(e,t)}}))}stopListening(){this.messageObserver=null}}},33049:(e,t,i)=>{"use strict";i.d(t,{Y:()=>o});var n=i(22519),s=i(69991);class a{constructor(e,t,i="*"){this.sourceWindow=e,this.listener=new s.m(e),this.sender=new s.d(t,i)}listen(e){this.listener.listen(e)}stopListening(){this.listener.stopListening()}send(e){this.sender.send(e,this.sourceWindow)}}class o{constructor(e,t,i,n,s="*"){this.sourceId=e,this.sourceWindow=t,this.targetId=i,this.targetWindow=n,this.targetOrigin=s}createMessenger(){const e=new a(this.sourceWindow,this.targetWindow,this.targetOrigin);return new n.e(this.sourceId,this.targetId,e)}}},69991:(e,t,i)=>{"use strict";i.d(t,{d:()=>s,m:()=>n});class n{constructor(e){this.targetWindow=e,this.messageObserver=null,this.onMessage=e=>{if(this.messageObserver){const t=e.data;this.messageObserver.notify(Object.assign({},t),{id:t.fromId,origin:e.origin,source:e.source},e.data.timestamp)}}}listen(e){this.messageObserver||(this.messageObserver=e,this.targetWindow.addEventListener("message",this.onMessage))}stopListening(){this.targetWindow.removeEventListener("message",this.onMessage),this.messageObserver=null}}class s{constructor(e,t="*"){this.targetWindow=e,this.targetOrigin=t}send(e,t){this.targetWindow.postMessage(e,this.targetOrigin)}}},28337:(e,t,i)=>{"use strict";var n;i.d(t,{$:()=>n}),function(e){e[e.DOWN=0]="DOWN",e[e.PRESSED=1]="PRESSED",e[e.UP=2]="UP"}(n||(n={}))},71397:(e,t,i)=>{"use strict";var n;i.d(t,{D:()=>n}),function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.RETURN=13]="RETURN",e[e.SHIFT=16]="SHIFT",e[e.CONTROL=17]="CONTROL",e[e.ALT=18]="ALT",e[e.ESCAPE=27]="ESCAPE",e[e.SPACE=32]="SPACE",e[e.HASH=35]="HASH",e[e.LEFTARROW=37]="LEFTARROW",e[e.UPARROW=38]="UPARROW",e[e.RIGHTARROW=39]="RIGHTARROW",e[e.DOWNARROW=40]="DOWNARROW",e[e.DELETE=46]="DELETE",e[e.ZERO=48]="ZERO",e[e.ONE=49]="ONE",e[e.TWO=50]="TWO",e[e.THREE=51]="THREE",e[e.FOUR=52]="FOUR",e[e.FIVE=53]="FIVE",e[e.SIX=54]="SIX",e[e.SEVEN=55]="SEVEN",e[e.EIGHT=56]="EIGHT",e[e.NINE=57]="NINE",e[e.AT=64]="AT",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.L_META=91]="L_META",e[e.R_META=93]="R_META",e[e.SEMICOLON=186]="SEMICOLON",e[e.PLUSEQUALS=187]="PLUSEQUALS",e[e.COMMA=188]="COMMA",e[e.DASHUNDERSCORE=189]="DASHUNDERSCORE",e[e.PERIOD=190]="PERIOD",e[e.OPENBRACKET=219]="OPENBRACKET"}(n||(n={}))},72268:(e,t,i)=>{"use strict";var n,s;i.d(t,{O:()=>s,m:()=>n}),function(e){e[e.PRIMARY=0]="PRIMARY",e[e.MIDDLE=1]="MIDDLE",e[e.SECONDARY=2]="SECONDARY",e[e.BACK=3]="BACK",e[e.FORWARD=4]="FORWARD",e[e.COUNT=5]="COUNT"}(n||(n={})),function(e){e[e.NONE=0]="NONE",e[e.PRIMARY=1]="PRIMARY",e[e.SECONDARY=4]="SECONDARY",e[e.MIDDLE=2]="MIDDLE",e[e.BACK=8]="BACK",e[e.FORWARD=16]="FORWARD",e[e.ALL=31]="ALL"}(s||(s={}))},5391:(e,t,i)=>{"use strict";i.d(t,{k:()=>n,j:()=>s});class n{constructor(){this.values={}}add(e,t){this.getValuesAtKey(e).push(t)}remove(e,t){const i=this.values[e];if(i){const e=i.indexOf(t);e>-1&&i.splice(e,1)}}removeKey(e){delete this.values[e]}getValuesAtKey(e){const t=this.values[e]||[];return this.values[e]=t,t}valuesPerKey(e){return this.getValuesAtKey(e).length}find(e,t){return this.values[e]&&this.values[e].find(t)}get keys(){return Object.keys(this.values)}hasKey(e){return e in this.values}has(e,t){return this.hasKey(e)&&this.values[e].includes(t)}*[Symbol.iterator](){for(const e in this.values)for(const t of this.values[e])yield[e,t]}}class s{constructor(){this.values=new Map}add(e,t){this.getValuesAtKey(e).add(t)}remove(e,t){const i=this.values.get(e);null==i||i.delete(t)}removeKey(e){this.values.delete(e)}getValuesAtKey(e){const t=this.values.get(e)||new Set;return this.values.set(e,t),t}valuesPerKey(e){return this.getValuesAtKey(e).size}get keys(){return this.values.keys()}hasKey(e){return this.values.has(e)}has(e,t){var i;return!!(null===(i=this.values.get(e))||void 0===i?void 0:i.has(t))}*[Symbol.iterator](){for(const[e,t]of this.values)for(const i of t)yield[e,i]}}},25481:(e,t,i)=>{"use strict";function n(e){return"number"==typeof e&&!isNaN(e)}i.d(t,{Et:()=>n})},48059:(e,t,i)=>{"use strict";function n(e){return!!e&&"object"==typeof e}i.d(t,{G:()=>n})},10833:(e,t,i)=>{"use strict";function n(e){return"string"==typeof e}i.d(t,{K:()=>n})},86867:(e,t,i)=>{"use strict";function n(e,t){return Object.values(e).includes(t)}i.d(t,{U:()=>n})},94857:e=>{e.exports="precision highp float;precision highp int;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}\n#ifdef INSTANCED\nvarying float alpha;varying vec3 color;\n#else\nuniform float alpha;uniform vec3 color;\n#endif\nuniform sampler2D bg;uniform sampler2D mask;varying vec2 vUv;varying vec4 vMaskRect;varying float vStrokeWidth;float ring(vec2 pos,float radius,float thick){return mix(1.,0.,smoothstep(thick,thick+(thick*0.5),abs(length(vUv-pos)-radius)));}vec4 crop(vec4 texColor,vec2 xy,float size){texColor*=step(size,1.-xy.x);texColor*=step(size,xy.x);texColor*=step(size,1.-xy.y);texColor*=step(size,xy.y);return texColor;}vec2 center=vec2(0.5,0.5);void main(){vec4 bgColor=texture2D(bg,vUv);if(bgColor.a*alpha<0.1){discard;}float iconScale=1.75;vec2 maskUV=mix(vMaskRect.xy,vMaskRect.zw,(vUv-0.5)*iconScale+0.5);vec4 maskColor=texture2D(mask,maskUV);maskColor.rgb=vec3(1.);float padding=0.22;maskColor=crop(maskColor,vUv,padding);vec3 mappedColor=mix(color,maskColor.rgb,maskColor.a);const vec3 frameColor=vec3(1.,1.,1.);float frame=ring(center,0.5,vStrokeWidth);mappedColor=mix(mappedColor,frameColor,frame);gl_FragColor=linearToOutputTexel(vec4(mappedColor,bgColor.a*alpha));}"},59039:e=>{e.exports="precision highp float;precision highp int;attribute vec4 instanceMaskRect;attribute float instanceStrokeWidth;varying vec2 vUv;varying vec4 vMaskRect;varying float vStrokeWidth;\n#ifdef INSTANCED\nattribute float instanceAlpha;varying float alpha;varying vec3 color;\n#endif\nvoid main(){vUv=uv;vMaskRect=instanceMaskRect;vStrokeWidth=instanceStrokeWidth;\n#ifdef INSTANCED\nalpha=instanceAlpha;color=instanceColor;gl_Position=projectionMatrix*modelViewMatrix*instanceMatrix*vec4(position,1.);\n#else\ngl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);\n#endif\n}"},45550:e=>{e.exports="precision highp float;precision highp int;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}varying vec2 vUv;void main(){float dist=length(vUv);float alpha=(1.-smoothstep(0.95,1.,dist))*0.3;gl_FragColor=linearToOutputTexel(vec4(1.,1.,1.,alpha));}"},98840:e=>{e.exports="precision highp float;precision highp int;varying vec2 vUv;void main(){vUv=(uv*2.)-1.;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);gl_Position.z*=1.00001;}"},2834:e=>{e.exports="precision highp float;precision highp int;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}\n#ifdef INSTANCED\nvarying float alpha;\n#else\nuniform float alpha;\n#endif\nvoid main(){gl_FragColor=linearToOutputTexel(vec4(1.,1.,1.,alpha));}"},65388:e=>{e.exports="precision highp float;precision highp int;uniform vec2 resolution;\n#ifdef INSTANCED\nattribute vec3 stemVector;attribute vec4 pinHeadMatrixCol0;attribute vec4 pinHeadMatrixCol1;attribute vec4 pinHeadMatrixCol2;attribute vec4 pinHeadMatrixCol3;attribute float instanceAlpha;varying float alpha;\n#else\nuniform mat4 pinHeadMatrix;\n#endif\n#define PI 3.1415926538\nvoid main(){\n#ifdef INSTANCED\nvec3 pos=position*stemVector;mat4 modelViewProjMatrix=projectionMatrix*modelViewMatrix*instanceMatrix;mat4 pinHeadMatrix=mat4(pinHeadMatrixCol0,pinHeadMatrixCol1,pinHeadMatrixCol2,pinHeadMatrixCol3);alpha=instanceAlpha;\n#else\nvec3 pos=position;mat4 modelViewProjMatrix=projectionMatrix*modelViewMatrix;\n#endif\nvec3 fromOrigin=(vec3(0.,0.,0.)-pos);if(length(fromOrigin)<1e-6){gl_Position=modelViewProjMatrix*vec4(pos,1.);}else{mat4 noteViewProj=projectionMatrix*viewMatrix*pinHeadMatrix;vec4 noteNDC=noteViewProj*vec4(0.,0.,0.,1.);noteNDC.xyz/=abs(noteNDC.w);vec4 discEdgeNDC=noteViewProj*vec4(0.5,0.,0.,1.);discEdgeNDC.xyz/=abs(discEdgeNDC.w);float noteSizeNDC=length(discEdgeNDC.xy-noteNDC.xy);vec4 anchorNDC=modelViewProjMatrix*vec4(0.,0.,0.,1.);anchorNDC.xyz/=abs(anchorNDC.w);vec4 vectorNDC=modelViewProjMatrix*vec4(pos,1.);vectorNDC.xyz/=abs(vectorNDC.w);vectorNDC-=anchorNDC;float lineLengthNDC=length(vectorNDC.xy);float vertDot=abs(dot(normalize(vectorNDC.xy),vec2(0,1)));float angle=acos(vertDot)/(PI/2.);float aspect=mix(resolution.x/resolution.y,1.,angle);vec2 vector2d=normalize(vectorNDC.xy)*max(lineLengthNDC-noteSizeNDC*aspect,0.);vectorNDC.xy=vector2d.xy;vectorNDC+=anchorNDC;gl_Position=vec4(vectorNDC.xyz,1.);}}"},74869:e=>{e.exports="precision highp float;precision highp int;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}varying vec2 vUv;uniform sampler2D tDiffuse;\n#ifdef INSTANCED\nvarying float alpha;\n#else\nuniform float alpha;\n#endif\nvoid main(){vec4 texColor=texture2D(tDiffuse,vUv);gl_FragColor=linearToOutputTexel(vec4(texColor.rgb,texColor.a*alpha));}"},8203:e=>{e.exports="precision highp float;precision highp int;\n#ifdef INSTANCED\nattribute float instanceAlpha;varying float alpha;\n#endif\nvarying vec2 vUv;void main(){vUv=uv;\n#ifdef INSTANCED\nmat4 mvp=projectionMatrix*modelViewMatrix*instanceMatrix;alpha=instanceAlpha;\n#else\nmat4 mvp=projectionMatrix*modelViewMatrix;\n#endif\ngl_Position=mvp*vec4(position,1.);}"},67422:e=>{e.exports="precision highp float;precision highp int;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}uniform vec3 color;uniform float opacity;void main(){gl_FragColor=linearToOutputTexel(vec4(color,opacity));}"},87208:e=>{e.exports="precision highp float;precision highp int;void main(){gl_Position=vec4(position,1.);}"},71285:e=>{e.exports="precision highp float;precision highp int;vec3 closestPointToRay(vec3 point,vec3 origin,vec3 direction){vec3 d=point-origin;float D=dot(d,direction);return origin+D*direction;}vec3 rayIntersectsSphere(vec3 origin,float radius,vec3 rayOrigin,vec3 rayDirection){vec3 chordPoint=closestPointToRay(origin,rayOrigin,rayDirection);float D1=length(rayOrigin-chordPoint);float D=length(chordPoint-origin);float D2=sqrt(radius*radius-D*D);return rayOrigin+(D1+D2)*rayDirection;}uniform float opacity;uniform vec3 tint;uniform float discRadius;uniform vec3 discNormal;uniform mat4 projectionMatrix;uniform mat4 viewMatrixInverse;uniform mat4 projectionMatrixInverse;varying vec3 vFragWorldPos;varying vec3 vCenterWorldPos;\n#ifdef USE_TEXTURE\nuniform sampler2D texImg;\n#else\nuniform vec2 ringRadii[RING_COUNT];uniform vec4 ringColors[RING_COUNT];\n#endif\nfloat rayDistToPlane(vec3 rayOrigin,vec3 rayDir,vec3 planeOrigin,vec3 planeNormal){float planeConstant=-dot(planeOrigin,planeNormal);float denom=dot(planeNormal,rayDir);return denom==0.?-1e9:-(dot(rayOrigin,planeNormal)+planeConstant)/denom;}vec4 getColorAtRay(vec3 rayOrigin,vec3 rayDir){vec4 color=vec4(0.);float intersectDist=rayDistToPlane(rayOrigin,rayDir,vCenterWorldPos,discNormal);vec3 intersect=rayOrigin+rayDir*intersectDist;\n#ifdef USE_TEXTURE\nif(intersectDist>0.){vec3 cameraDir=normalize((viewMatrixInverse*vec4(0.,0.,-1.,0.)).xyz);vec3 stableDir=abs(dot(cameraDir,discNormal))>0.8?normalize(cameraDir*vec3(1.,0.,1.))*sign(discNormal.y):(viewMatrixInverse*vec4(0.,1.,0.,0.)).xyz;vec3 xAxis=normalize(cross(stableDir,discNormal));vec3 yAxis=normalize(cross(discNormal,xAxis));intersect-=vCenterWorldPos;vec2 uv=vec2(dot(xAxis,intersect),dot(yAxis,intersect))/discRadius/2.+0.5;if(clamp(uv,vec2(0.),vec2(1.))==uv){color=texture2D(texImg,uv);}}\n#else\nfloat fragRadius=intersectDist>0.?distance(intersect,vCenterWorldPos):1e9;if(fragRadius<=discRadius*2.){for(int i=0;i= 300\nfloat delta=length(vec2(dFdx(fragRadius),dFdy(fragRadius)))*0.70710678;ringColor.a*=smoothstep(-delta,delta,ringDist);\n#else\nringColor.a*=step(0.,ringDist);\n#endif\nfloat finalAlpha=color.a+ringColor.a*(1.-color.a);color=finalAlpha>0.?vec4((color.rgb*color.a+ringColor.rgb*ringColor.a*(1.-color.a))/finalAlpha,finalAlpha):color;}}\n#endif\ncolor.rgb*=tint;if(dot(rayDir,discNormal)>=0.){color.a=0.;}return color;}void main(){vec4 fragNDC=projectionMatrix*viewMatrix*vec4(vFragWorldPos,1.);vec4 nearWorldPos=viewMatrixInverse*projectionMatrixInverse*vec4(fragNDC.xy,-1.,1.);nearWorldPos/=nearWorldPos.w;gl_FragColor=linearToOutputTexel(getColorAtRay(nearWorldPos.xyz,normalize(vFragWorldPos-nearWorldPos.xyz)));gl_FragColor.a*=opacity;if(gl_FragColor.a==0.){discard;}}"},99691:e=>{e.exports="precision highp float;precision highp int;varying vec3 vCenterWorldPos;varying vec3 vFragWorldPos;void main(){vCenterWorldPos=(modelMatrix*vec4(0.,0.,0.,1.)).xyz;vFragWorldPos=(modelMatrix*vec4(position,1.)).xyz;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.);}"},10086:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQyIiBoZWlnaHQ9IjE0MiIgdmlld0JveD0iMCAwIDE0MiAxNDIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik04MiA4Mi41MDAxQzg1LjMzMzMgODIuMTY2NyA5Mi4zIDgyLjgwMDEgOTMuNSA4OC4wMDAxTTYwLjUgODIuMDczM0M1Ny4xNjY3IDgxLjc0IDUwLjIgODIuMzczMyA0OSA4Ny41NzMzTTM0Ljc2NjggNjcuMzI3NUMzNC43NjY4IDY3LjMyNzUgMzQuNzczIDY0LjgwOTQgMzcuMjg5IDY0LjgxNTZDMzkuODA5MSA2NC44MjM4IDM5LjgwMDkgNjcuMzQxOSAzOS44MDA5IDY3LjM0MTlMMzkuNzYxOCA3OS4wMjU3QzQwLjE2MjcgNzguODQwNyA0MC41ODIgNzguNjc0MiA0MS4wMjE5IDc4LjUzMDNMNDEuMDczMyA2Mi4zMTRDNDEuMDczMyA2Mi4zMTQgNDEuMDgxNSA1OS43OTYgNDMuNTk1NCA1OS44MDQyQzQ2LjExMTQgNTkuODEwMyA0Ni4xMDUzIDYyLjMzMDUgNDYuMTA1MyA2Mi4zMzA1TDQ2LjA2MjEgNzcuNTgyN0M0Ni40NzEyIDc3LjU0NTcgNDYuODkyNSA3Ny41MTY5IDQ3LjMxNiA3Ny40OTYzTDQ3LjM3MzUgNTkuODE0NUM0Ny4zNzM1IDU5LjgxNDUgNDcuMzc5NyA1Ny4yOTY0IDQ5Ljg5NzggNTcuMzA2N0M1Mi40MTU4IDU3LjMxNDkgNTIuNDA1NSA1OS44MzI5IDUyLjQwNTUgNTkuODMyOUw1Mi4zNDggNzcuNTEwN0M1Mi43Nzk3IDc3LjUzNTQgNTMuMTk0OSA3Ny41Nzg2IDUzLjYxMDEgNzcuNjE3Nkw1My42NjE1IDYxLjA5M0M1My42NjE1IDYxLjA5MyA1My42Njk3IDU4LjU3NDkgNTYuMTgzNyA1OC41ODUyQzU4LjY5OTcgNTguNTkxNCA1OC42ODk0IDYxLjEwNzQgNTguNjg5NCA2MS4xMDc0TDU4LjY0IDc4LjU4MTdMNTguNjMzOSA3OS45ODE1VjgxLjIzNzRMNTkuODg3OCA4Mi41MDM3TDYzLjU4OTggNzMuODk1QzYzLjU4OTggNzMuODk1IDY0LjQwMTggNzEuNTEyNiA2Ni43ODgzIDcyLjMyODdDNjkuMTY4NiA3My4xMzQ0IDY4LjM2MDggNzUuNTIxIDY4LjM2MDggNzUuNTIxTDY2LjUyNTIgODEuOTAzNUM2NS43OTc1IDg0LjQ0IDY1LjExNzEgODYuOTkzIDY0Ljc1OTQgODkuNTk5NEM2My43MzU4IDk2Ljk2NjYgNTcuMzk4NSAxMDIuNjMyIDQ5Ljc1NTkgMTAyLjYxMUM0MS40MjA3IDEwMi41NzYgMzQuNjc4NCA5NS43OTY5IDM0LjcwNTIgODcuNDYxN0MzNC43MDYgODcuMjc4NyAzNC43MDkzIDg2LjE5OTYgMzQuNzA5MyA4Ni4xOTk2TDM0Ljc2NjggNjcuMzI3NVpNMTA3LjIxMyA2Ny4zMjc1QzEwNy4yMTMgNjcuMzI3NSAxMDcuMjA3IDY0LjgwOTQgMTA0LjY5MSA2NC44MTU2QzEwMi4xNzEgNjQuODIzOCAxMDIuMTc3IDY3LjM0MTkgMTAyLjE3NyA2Ny4zNDE5TDEwMi4yMTYgNzkuMDI1N0MxMDEuODE3IDc4Ljg0MDcgMTAxLjM5NiA3OC42NzQyIDEwMC45NTggNzguNTMwM0wxMDAuOTA2IDYyLjMxNEMxMDAuOTA2IDYyLjMxNCAxMDAuODk4IDU5Ljc5NiA5OC4zODQyIDU5LjgwNDJDOTUuODY2MSA1OS44MTAzIDk1Ljg3MjMgNjIuMzMwNSA5NS44NzIzIDYyLjMzMDVMOTUuOTE3NSA3Ny41ODI3Qzk1LjUxMDUgNzcuNTQ1NyA5NS4wODkxIDc3LjUxNjkgOTQuNjYzNiA3Ny40OTYzTDk0LjYwODIgNTkuODE0NUM5NC42MDgyIDU5LjgxNDUgOTQuNTk5OSA1Ny4yOTY0IDkyLjA4MTkgNTcuMzA2N0M4OS41NjM4IDU3LjMxNDkgODkuNTc0MSA1OS44MzI5IDg5LjU3NDEgNTkuODMyOUw4OS42MzE2IDc3LjUxMDdDODkuMiA3Ny41MzU0IDg4Ljc4NDggNzcuNTc4NiA4OC4zNjk1IDc3LjYxNzZMODguMzE4MSA2MS4wOTNDODguMzE4MSA2MS4wOTMgODguMzA3OSA1OC41NzQ5IDg1Ljc5MzkgNTguNTg1MkM4My4yNzc5IDU4LjU5MTQgODMuMjg4MiA2MS4xMDc0IDgzLjI4ODIgNjEuMTA3NEw4My4zMzc1IDc4LjU4MTdMODMuMzQzNyA3OS45ODE1VjgxLjIzNzRMODIuMDkxOSA4Mi41MDM3TDc4LjM4OTggNzMuODk1Qzc4LjM4OTggNzMuODk1IDc3LjU3OTkgNzEuNTEyNiA3NS4xOTE0IDcyLjMyODdDNzIuODEzMSA3My4xMzQ0IDczLjYxODkgNzUuNTIxIDczLjYxODkgNzUuNTIxTDc1LjQ1NDUgODEuOTAzNUM3Ni4xODIxIDg0LjQ0IDc2Ljg2MjUgODYuOTkzIDc3LjIyMDIgODkuNTk5NEM3OC4yNDM5IDk2Ljk2NjYgODQuNTc5MSAxMDIuNjMyIDkyLjIyMzcgMTAyLjYxMUMxMDAuNTU5IDEwMi41NzYgMTA3LjMwMyA5NS43OTY5IDEwNy4yNzQgODcuNDYxN0MxMDcuMjc0IDg3LjI3ODcgMTA3LjI3IDg2LjE5OTYgMTA3LjI3IDg2LjE5OTZMMTA3LjIxMyA2Ny4zMjc1WiIgc3Ryb2tlPSIjMjIyMjIyIiBzdHJva2Utd2lkdGg9IjIiLz4KPHBhdGggZD0iTTgyLjM4OTkgNTYuMjc0OEM4MS45NTIxIDU2LjI3NDggODEuNTA4MSA1Ni4xMzUgODEuMTM2IDU1Ljg0NzJDODAuMjM1NyA1NS4xNTI0IDgwLjA3MTMgNTMuODYxNiA4MC43NjYgNTIuOTYzM0w4Ni44ODk1IDQ1LjAzOTFDODcuNTc4MSA0NC4xNDI5IDg4Ljg3MzEgNDMuOTcwMiA4OS43NzE0IDQ0LjY2OTFDOTAuNjcxOCA0NS4zNjM5IDkwLjgzNjIgNDYuNjU0OCA5MC4xNDE0IDQ3LjU1MzFMODQuMDE3OSA1NS40NzcyQzgzLjYxNSA1Ni4wMDE0IDgzLjAwNjYgNTYuMjc0OCA4Mi4zODk5IDU2LjI3NDhaTTU5LjczNzcgNTYuMjc0OEM1OS4xMjMxIDU2LjI3NDggNTguNTE0NyA1NS45OTkzIDU4LjEwOTcgNTUuNDc1Mkw1MS45ODYyIDQ3LjU1MzFDNTEuMjkzNSA0Ni42NTQ4IDUxLjQ2IDQ1LjM2MzkgNTIuMzU4MyA0NC42NjkxQzUzLjI1NjUgNDMuOTc2NCA1NC41NDU0IDQ0LjE0MDggNTUuMjQyMiA0NS4wMzkxTDYxLjM2NTcgNTIuOTYzM0M2Mi4wNTg0IDUzLjg2MTYgNjEuODk0IDU1LjE1MjQgNjAuOTk1NyA1NS44NDcyQzYwLjYxOTUgNTYuMTM3MSA2MC4xNzc2IDU2LjI3NDggNTkuNzM3NyA1Ni4yNzQ4Wk03MS4wMDAxIDUyLjMzMzNDNjkuODY1NCA1Mi4zMzMzIDY4Ljk0NDUgNTEuNDEyNCA2OC45NDQ1IDUwLjI3NzhWNDIuMDU1NkM2OC45NDQ1IDQwLjkyMDkgNjkuODY1NCA0MCA3MS4wMDAxIDQwQzcyLjEzNjggNDAgNzMuMDU1NiA0MC45MjA5IDczLjA1NTYgNDIuMDU1NlY1MC4yNzc4QzczLjA1NTYgNTEuNDEyNCA3Mi4xMzY4IDUyLjMzMzMgNzEuMDAwMSA1Mi4zMzMzWiIgZmlsbD0iIzIyMjIyMiIvPgo8L3N2Zz4K"},28659:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMTI3Ljk4MzI1bW0iCiAgIGhlaWdodD0iMTI1Ljg3MDg0bW0iCiAgIHZpZXdCb3g9IjAgMCAxMjcuOTgzMjUgMTI1Ljg3MDg0IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczOSIKICAgc29kaXBvZGk6ZG9jbmFtZT0icm90YXRlLXBob25lLWZhbGxiYWNrLnN2ZyIKICAgaW5rc2NhcGU6dmVyc2lvbj0iMS4xLjIgKGI4ZTI1YmU4LCAyMDIyLTAyLTA1KSIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8c29kaXBvZGk6bmFtZWR2aWV3CiAgICAgaWQ9Im5hbWVkdmlldzQxIgogICAgIHBhZ2Vjb2xvcj0iIzUwNTA1MCIKICAgICBib3JkZXJjb2xvcj0iI2VlZWVlZSIKICAgICBib3JkZXJvcGFjaXR5PSIxIgogICAgIGlua3NjYXBlOnBhZ2VzaGFkb3c9IjAiCiAgICAgaW5rc2NhcGU6cGFnZW9wYWNpdHk9IjAiCiAgICAgaW5rc2NhcGU6cGFnZWNoZWNrZXJib2FyZD0iMCIKICAgICBpbmtzY2FwZTpkb2N1bWVudC11bml0cz0ibW0iCiAgICAgc2hvd2dyaWQ9ImZhbHNlIgogICAgIGlua3NjYXBlOnNuYXAtcGFnZT0iZmFsc2UiCiAgICAgaW5rc2NhcGU6em9vbT0iMC4zMTUxMjI4MSIKICAgICBpbmtzY2FwZTpjeD0iMTc5LjI5NTE4IgogICAgIGlua3NjYXBlOmN5PSI4MDcuNjIxNjMiCiAgICAgaW5rc2NhcGU6d2luZG93LXdpZHRoPSIxODY0IgogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9IjEzODciCiAgICAgaW5rc2NhcGU6d2luZG93LXg9IjAiCiAgICAgaW5rc2NhcGU6d2luZG93LXk9IjI1IgogICAgIGlua3NjYXBlOndpbmRvdy1tYXhpbWl6ZWQ9IjAiCiAgICAgaW5rc2NhcGU6Y3VycmVudC1sYXllcj0ibGF5ZXIxIgogICAgIGZpdC1tYXJnaW4tdG9wPSIwIgogICAgIGZpdC1tYXJnaW4tbGVmdD0iMCIKICAgICBmaXQtbWFyZ2luLXJpZ2h0PSIwIgogICAgIGZpdC1tYXJnaW4tYm90dG9tPSIwIiAvPgogIDxkZWZzCiAgICAgaWQ9ImRlZnMzNiIgLz4KICA8ZwogICAgIGlua3NjYXBlOmxhYmVsPSJMYXllciAxIgogICAgIGlua3NjYXBlOmdyb3VwbW9kZT0ibGF5ZXIiCiAgICAgaWQ9ImxheWVyMSIKICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNC4yOTI2NzM1LC00LjM5MzAzMTgpIj4KICAgIDxwYXRoCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZS13aWR0aDowLjI2NDU4MyIKICAgICAgIGQ9Im0gNzIuODIwNTc2LDEyOC4yOTE4IGMgMTEuNzczNzksLTEuMDg5ODggMjEuODgzMTQsLTIuMDUzIDIyLjQ2NTIyLC0yLjE0MDI4IDIuNzI3MzIsLTAuNDA4OTEgNS41ODUwNTQsLTIuNDkxMTIgNi45MzU4NDQsLTUuMDUzNjIgMS42NTQ0MiwtMy4xMzg1MyAxLjkwMTYxLDAuOTY5MTcgLTMuMzYyNTI0LC01NS44NzY4NCAtMi42MjI4MSwtMjguMzIzMTM0IC00Ljg4OTU0LC01Mi4wODEwODggLTUuMDM3MTYsLTUyLjc5NTQ1MyAtMC40MjQwNiwtMi4wNTIwNjEgLTEuMTc3NjcsLTMuNDgzMTc4IC0yLjY1ODk4LC01LjA0OTQ0MyAtMS44Nzk1OCwtMS45ODczNzMgLTMuNzI1MjUsLTIuODM4OTAyIC02LjQ2MDUxLC0yLjk4MDY1NSAtMi4xODE4MiwtMC4xMTMwNyAtNDQuMzU4MzA4LDMuNjc5NjUyIC00Ni42ODc4ODgsNC4xOTg0MTMgLTMuNjY2OSwwLjgxNjU1NCAtNi42MTY4MSw0LjAxNTg5MyAtNy40Mjk1LDguMDU3NjkyIC0wLjI4NjMsMS40MjM4NzEgMC4xMzMwOSw2LjQwNzcwMiA0LjQ4NDkzLDUzLjI5Njc4NiAyLjc3MDM3LDI5Ljg0OTQ4IDQuOTYzNzUsNTIuMjg1NTUgNS4xODYxNCw1My4wNDg5NiAxLjI2OTk5LDQuMzU5NzEgNS4wMDQzNCw3LjI0MjM3IDkuNDEzMzksNy4yNjY0OSAwLjk1OTI4LDAuMDA1IDExLjM3NzI0OCwtMC44ODIxNyAyMy4xNTEwMzgsLTEuOTcyMDUgeiBtIC0yMy43MDQ1NjgsLTAuOTYwNTMgYyAtMC44MDAzNywtMC4wOTQgLTEuNzY5NCwtMC4yOTU5NSAtMi4xNTM0MiwtMC40NDg3NiAtMS42NjUxMiwtMC42NjI1OCAtMy42ODM1LC0zLjEzNTk2IC00LjAzNDA3LC00Ljk0MzQ4IC0wLjA4NDcsLTAuNDM2NTcgLTIuMzA2NDgsLTI0LjA0NCAtNC45MzczNywtNTIuNDYwOTcgLTQuNjUxMjQsLTUwLjIzOTQwNiAtNC43NzIwNCwtNTEuNzA2MzkzIC00LjM3MTI4LC01My4wODQ5NTcgMC41MzgyMSwtMS44NTEzOTUgMi4zMTU1MywtMy44NTE5NDQgNC4xMDY2NywtNC42MjI0NzIgMS4xNTI0MiwtMC40OTU3NTggNC4xNTk3MSwtMC44MzE3MSAyMi45NjAzODgsLTIuNTY0OTY5IDExLjkzMzE4LC0xLjEwMDEzNCAyMi41MzM0MiwtMS45NTc4ODIgMjMuNjM5NDMsLTEuOTEyODUgMS42ODU5NSwwLjA2ODY0IDIuMjEyNDIsMC4yMDkyMjIgMy4zMDcyOSwwLjg4MzEgMS40MjIzMSwwLjg3NTQxNiAyLjg2MzMsMi43NzY4NDQgMy4yNzEwNyw0LjMxNjI4NSAwLjM0Mzk4LDEuMjk4NTg5IDkuNTQwNDY0LDEwMS4yODQzMDMgOS41NDA0NjQsMTAzLjcyNTUwMyAwLDMuMjUwMzcgLTEuMzQxODg0LDUuMzM3MDggLTQuMjYyOTk0LDYuNjI5MjIgLTAuOTk3MjksMC40NDExNSAtNC42OTc5NiwwLjg1MTA3IC0yMi43Mzk2LDIuNTE4ODYgLTExLjg1MTY1LDEuMDk1NTggLTIxLjg0NjEwOCwyLjAyNDQ3IC0yMi4yMDk5MDgsMi4wNjQxOSAtMC4zNjM4MSwwLjAzOTcgLTEuMzE2MzEsLTAuMDA1IC0yLjExNjY3LC0wLjA5ODcgeiBtIDIzLjU0NzkxOCwtOS4xMDY2OSBjIDUuNzQ4MDcsLTAuNTE1OTQgMTAuNzE1NjUsLTEuMDQ4MDcgMTEuMDM5MDUsLTEuMTgyNTEgMC44NzI2MywtMC4zNjI3MyAxLjA2OTAxLC0xLjUwMTExIDAuMzc4MTQsLTIuMTkxOTkgbCAtMC41NTg1LC0wLjU1ODUgLTExLjkxMzY3LDEuMTAzNTIgYyAtNi41NTI1MiwwLjYwNjk0IC0xMi4xNTA4OCwxLjIzMDQ3IC0xMi40NDA4LDEuMzg1NjQgLTAuMzI5ODYsMC4xNzY1MyAtMC41MjU2MiwwLjU1MDkzIC0wLjUyMzA5LDEuMDAwNDEgMC4wMDcsMS4zMjg2NSAwLjU2NDk5LDEuNjgwNDMgMi4zNzcyLDEuNTAwMDQgMC42NTQ4NCwtMC4wNjUyIDUuODkzNTksLTAuNTQwNjYgMTEuNjQxNjcsLTEuMDU2NjEgeiBtIC04Ljc0ODQ5LC05OS4xOTMyMjIgYyAyLjg0NjU2LC0wLjI4NDQ4NyAzLjYyMzk1LC0wLjQ1MDA0NSAzLjkwMjYsLTAuODMxMTI3IDAuNDkzMywtMC42NzQ2MzIgMC40MzE5OCwtMS4yNzUwMzMgLTAuMTg3NSwtMS44MzU2NSAtMC41MDQxMywtMC40NTYyMzIgLTAuNzcxMjMsLTAuNDY1NTY5IC00LjU2NDA2LC0wLjE1OTU0NyAtMi4yMTU3MywwLjE3ODc3NCAtNC40MjIzMiwwLjM5MjkwNyAtNC45MDM1NCwwLjQ3NTg1NCAtMS41OTkzOCwwLjI3NTY3NyAtMi4xMzE1MiwyLjE5MjgxMyAtMC43NTU0MywyLjcyMTYxOCAwLjMxNDYyLDAuMTIwOSAxLjEwNzgyLDAuMTY2NzggMS43NjI2NywwLjEwMTk2IDAuNjU0ODQsLTAuMDY0OCAyLjc5MDIxLC0wLjI3NzcxOCA0Ljc0NTI2LC0wLjQ3MzEwOCB6IE0gMjcuMzI1NjQ4LDEwMC4yMjI2OSBjIDAuNTYyNDUsLTAuODU4NDEgMC4yNDY0LC0xLjkzNzk1IC0wLjcwMjcyLC0yLjQwMDMzIEMgMjYuMjYxMDQ4LDk3LjY0NjA3IDI0LjU5NTc0OCw5Ni44NDc2IDIyLjkyMjI1OCw5Ni4wNDggMTUuMDI1NDQ4LDkyLjI3NDg0IDkuODgwOTc4Miw4NS41NTcyOCA4LjIwMjc2ODIsNzYuODI3NTcgYyAtMC41MDMwOSwtMi42MTY5NyAtMC40ODYzMSwtNy44ODYwMiAwLjAzMzEsLTEwLjQwMDczIDEuMzM1MTUsLTYuNDYzODUgNC45Njk3ODk4LC0xMi4zMzI3ODUgOS45ODc4Mzk4LC0xNi4xMjc1NjUgMy42OTUyNiwtMi43OTQ0NSAzLjYwNDczLC0yLjg3NDE1IDEuNjIzNzgsMS40Mjk1MSAtMi43OTc4Nyw2LjA3ODQ4IC0zLjA2MDU4LDYuNzg0MDcgLTIuNzQ1MjUsNy4zNzMyNiAwLjU3MDI4LDEuMDY1NTg1IDIuMDA4NTMsMS4zODAzMzUgMi43MTMyMSwwLjU5Mzc1NSAwLjU1MTg1LC0wLjYxNTk4NSA3LjA3NTU0LC0xNC44MzcwMTUgNy4wNzU1NCwtMTUuNDI0MDA1IDAsLTAuMjUyMTggLTAuMjA4MzYsLTAuNzAxNzIgLTAuNDYzMDIsLTAuOTk4OTggLTAuNDc1OTcsLTAuNTU1NTY5IC0xNC43MjQ2MywtNy4xOTEwNjkgLTE1LjQ0MTY2LC03LjE5MTA2OSAtMS4yMDEwNTk4LDAgLTIuMDU4NTg5OCwyLjE2NTQzIC0xLjE1NDYyOTgsMi45MTU2NSAwLjIyMTc0OTgsMC4xODQwNCAyLjc5MTUwOTgsMS40MzQ4MiA1LjcxMDU3OTgsMi43Nzk1MSA0LjE3Mzk0LDEuOTIyNzQ5IDUuMjMyMDUsMi41MTAxNzkgNC45NTQ2MiwyLjc1MDYxOSAtMC4xOTQwMiwwLjE2ODE2IC0xLjI1OTUzLDAuODkyODUgLTIuMzY3OCwxLjYxMDQyIC02LjczOTI0LDQuMzYzNDMgLTExLjY0NTcxOTgsMTEuNjUyMjggLTEzLjM2NDg0OTgsMTkuODU0MjU1IC0wLjU3MjkxLDIuNzMzMzggLTAuNjM0OTUsOC4yNTQwNCAtMC4xMjQ3NCwxMS4wOTk5NSAxLjY3Mjg0LDkuMzMwODEgNy43NzI3ODk4LDE3LjYwMDM5IDE2LjEwNTE4OTgsMjEuODMzNDcgNC4yMjAzNywyLjE0NDA1IDUuODE5NDcsMi40NTkyMiA2LjU4MDk1LDEuMjk3MDcgeiBtIDk5LjMxMzI4MiwtNC42MDk3MSBjIDAuNzIwMTIsLTAuNzIwMTEgMC42NjkwNywtMS43NTIwOSAtMC4xMjE2OCwtMi40NjAwMiAtMC4zNTc5NiwtMC4zMjA0OCAtMi44NTgyNywtMS41ODUzMiAtNS41NTYyNSwtMi44MTA3OCAtMi42OTc5NywtMS4yMjU0NSAtNC45MDU0MSwtMi4zMTgzMiAtNC45MDU0MSwtMi40Mjg2IDAsLTAuMTEwMjcgMC45MjI3NCwtMC43NzI0OCAyLjA1MDUzLC0xLjQ3MTU2IDIuNDEyNTQsLTEuNDk1NDYgNy4zOTk2NiwtNi4zMzg2MiA4LjkxMjg3LC04LjY1NTU3IDIuMzI0NTIsLTMuNTU5MiAzLjkxNDQ2LC03LjQxNjc4IDQuODExNzUsLTExLjY3NDUxIDAuNTM4NTcsLTIuNTU1NTUgMC42MDAwMiwtNy45MjM5NTUgMC4xMjExNCwtMTAuNTgzMzI1IC0xLjgwNDAyLC0xMC4wMTgzOSAtNy44NDI5NSwtMTguMDk4ODk5IC0xNi44OTM3NiwtMjIuNjA1MDY5IC0zLjY0Mzg4LC0xLjgxNDIgLTUuMTYwNzcsLTIuMDE5NzEgLTUuODQ3MzksLTAuNzkyMjIgLTAuNzMxNCwxLjMwNzU2IC0wLjI4MDQ4LDEuOTA2OTQgMi4yNzQ2NSwzLjAyMzU1IDYuMTI1NzQsMi42NzY5OCAxMC4wMDMzNCw1LjkwNDc1IDEzLjIxMTM5LDEwLjk5NzMzOSAyLjYwOTc2LDQuMTQyODQgMy43OTcyMyw4LjEyNDU1IDMuOTg3NjYsMTMuMzcxMDcgMC4xOTUxMiw1LjM3NTY2NSAtMC41NzcyLDguODY3NDE1IC0zLjAxNjE2LDEzLjYzNjM4NSAtMS4yMTkzNCwyLjM4NDIxIC00LjYzOTU0LDYuNzQ0OTkgLTYuMjU4OSw3Ljk4MDEzIC0wLjUwOTcsMC4zODg3NiAtMS4wODU4NSwwLjg1NzY4IC0xLjI4MDM1LDEuMDQyMDQgLTAuNjc2NjksMC42NDE0MiAtMi42NTIxMSwxLjgyODE1IC0yLjc5ODg2LDEuNjgxNDEgLTAuMDgxMiwtMC4wODEyIDAuODgxOTEsLTIuMzY2NDcgMi4xNDAzNCwtNS4wNzgyOSAyLjA5Nzg3LC00LjUyMDc1IDIuMjYwNTYsLTQuOTg3OTMgMS45NTczMSwtNS42MjA2NCAtMC40ODk2MywtMS4wMjE1OSAtMS42MTA5MSwtMS4zMzQ1NyAtMi40NjI5OSwtMC42ODc0OSAtMC43NjM0NSwwLjU3OTc4IC03LjI1OTIzLDE0LjUwNDE1IC03LjI1OTIzLDE1LjU2MDkxIDAsMC4zMzc3NCAwLjIyNjIxLDAuODE4NzggMC41MDI2OSwxLjA2ODk4IDAuNzA2NzMsMC42Mzk1OSAxNC41ODE5OCw3LjAwNDc1IDE1LjMwNjE3LDcuMDIxNTkgMC4zMjc0MiwwLjAwOCAwLjgzMzQ0LC0wLjIyNDI4IDEuMTI0NDgsLTAuNTE1MzMgeiIKICAgICAgIGlkPSJwYXRoMTA5IgogICAgICAgc29kaXBvZGk6bm9kZXR5cGVzPSJzc3Nzc3Nzc3NzY2NzY3Nzc3Nzc3Nzc3Nzc3Njc3NzY3NzY3Nzc3Nzc3Nzc3Nzc2NzY3Nzc3Nzc3Nzc3Nzc2Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3Nzc3NzY3MiIC8+CiAgPC9nPgo8L3N2Zz4K"},8241:(e,t,i)=>{"use strict";e.exports=i.p+"images/escape.png"},51:(e,t,i)=>{"use strict";e.exports=i.p+"images/headset-quest-2.png"},54322:(e,t,i)=>{"use strict";e.exports=i.p+"images/Desktop-help-play-button.svg"},28301:(e,t,i)=>{"use strict";e.exports=i.p+"images/Desktop-help-spacebar.png"},63083:(e,t,i)=>{"use strict";e.exports=i.p+"images/matterport-logo-light.svg"},65224:(e,t,i)=>{"use strict";e.exports=i.p+"images/mattertag-disc-128-free.v1.png"},23672:(e,t,i)=>{"use strict";e.exports=i.p+"images/mobile-help-play-button.svg"},94246:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_360.png"},53228:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_click_inside.png"},99713:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag.png"},45894:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag.svg"},99484:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag_two_finger.png"},62979:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag_two_finger_rotate.svg"},40783:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_drag_two_finger_vert.svg"},13179:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_pinch.png"},58780:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_pinch.svg"},96558:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_position.png"},60497:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_position_two_finger.png"},50968:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_tap.png"},64727:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_gesture_tap.svg"},34715:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_inside_key.png"},64268:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_keyboard_all.png"},31873:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_keyboard_left_right.png"},88691:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_keyboard_up_down.png"},16391:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_click.png"},11400:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_click.svg"},61273:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_ctrl_click.png"},46997:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_drag_left.png"},2710:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_drag_right.png"},38826:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_drag_right_horiz.svg"},5293:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_drag_right_vert.svg"},56048:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_position_left.png"},45663:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_position_left.svg"},85893:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_position_right.png"},93582:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_zoom.png"},713:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_mouse_zoom.svg"},68117:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_tap_inside.png"},35235:(e,t,i)=>{"use strict";e.exports=i.p+"images/nav_help_zoom_keys.png"},68909:e=>{"use strict";e.exports=THREE},32244:e=>{"use strict";e.exports=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 1.0.0","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":60,"w":876,"h":744,"nm":"Rating Modal","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Vector 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0]},{"t":4,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[437.969,578.877,0],"to":[0,-8.167,0],"ti":[0,8.167,0]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":18,"s":[437.969,529.877,0],"to":[0,0,0],"ti":[0,0,0]},{"t":25,"s":[437.969,529.877,0]}],"ix":2},"a":{"a":0,"k":[0,51.205,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.83,0.808,0.833],"y":[1.233,0.833,0.35]},"o":{"x":[0.283,0.284,0],"y":[-0.056,-0.064,0]},"t":0,"s":[176.81,195.773,100]},{"i":{"x":[0.564,0.562,0.794],"y":[3.244,0.849,2.131]},"o":{"x":[0.466,0.473,0.167],"y":[-4.295,-0.161,0.141]},"t":23,"s":[207.791,222.842,100]},{"t":28,"s":[207.791,207.791,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.52,0.008],[0,0],[0,0],[0.001,-0.183],[-8.335,-0.035],[-1.024,7.367],[-0.728,2.537],[0,0],[2.38,0.806],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[2.516,0.006],[0,0],[0,0],[0.432,0.025],[0,0],[2.518,0.008],[0,0],[0,0],[0.409,-0.037],[0,0],[2.516,0.006],[0,0],[0,0],[0.401,-0.185],[0,0]],"o":[[-2.516,-0.006],[0,0],[0,0],[-0.027,8.335],[7.643,0.021],[0.358,-2.606],[0,0],[0,0],[-2.387,-0.816],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-2.514,-0.01],[0,0],[-0.415,-0.039],[0,0],[0,0],[-2.518,-0.01],[0,0],[-0.423,0.021],[0,0],[0,0],[-2.514,-0.008],[0,0],[-0.44,0.144],[0,0],[0,0]],"v":[[-33.701,-15.143],[-36.223,-12.631],[-36.281,6.241],[-36.285,7.503],[-21.234,22.652],[-6.23,9.641],[-4.465,1.945],[-2.629,-4.438],[-4.202,-7.63],[-7.4,-6.064],[-11.102,2.545],[-12.356,1.279],[-12.356,0.023],[-12.35,-1.377],[-12.3,-18.852],[-14.806,-21.374],[-17.328,-18.866],[-17.38,-2.341],[-18.642,-2.448],[-18.584,-20.126],[-21.092,-22.652],[-23.616,-20.144],[-23.674,-2.463],[-24.928,-2.376],[-24.885,-17.628],[-27.394,-20.155],[-29.917,-17.645],[-29.968,-1.429],[-31.228,-0.933],[-31.189,-12.617]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[-2.52,0.008],[0,0],[0,0],[-0.001,-0.183],[8.335,-0.035],[1.024,7.367],[0.728,2.537],[0,0],[-2.378,0.806],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-2.516,0.006],[0,0],[0,0],[-0.432,0.025],[0,0],[-2.518,0.008],[0,0],[0,0],[-0.407,-0.037],[0,0],[-2.518,0.006],[0,0],[0,0],[-0.399,-0.185],[0,0]],"o":[[2.516,-0.006],[0,0],[0,0],[0.029,8.335],[-7.645,0.021],[-0.358,-2.606],[0,0],[0,0],[2.389,-0.816],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[2.514,-0.01],[0,0],[0.415,-0.039],[0,0],[0,0],[2.518,-0.01],[0,0],[0.426,0.021],[0,0],[0,0],[2.514,-0.008],[0,0],[0.438,0.144],[0,0],[0,0]],"v":[[33.701,-15.143],[36.223,-12.631],[36.281,6.241],[36.285,7.503],[21.234,22.652],[6.23,9.641],[4.465,1.945],[2.629,-4.438],[4.202,-7.63],[7.4,-6.064],[11.102,2.545],[12.354,1.279],[12.354,0.023],[12.348,-1.377],[12.298,-18.852],[14.804,-21.374],[17.328,-18.866],[17.38,-2.341],[18.642,-2.448],[18.584,-20.126],[21.092,-22.652],[23.618,-20.144],[23.674,-2.463],[24.928,-2.376],[24.882,-17.628],[27.394,-20.155],[29.917,-17.645],[29.968,-1.429],[31.226,-0.933],[31.187,-12.617]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[3.333,-0.333]],"o":[[-1.2,-5.2],[0,0]],"v":[[22.51,8.041],[11.01,2.541]],"c":false},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ind":3,"ty":"sh","ix":4,"ks":{"a":0,"k":{"i":[[0,0],[-3.333,-0.333]],"o":[[1.2,-5.2],[0,0]],"v":[[-21.99,7.614],[-10.49,2.114]],"c":false},"ix":2},"nm":"Path 4","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"st","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":2,"s":[1,0.192156862745,0.345098039216,1]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":19,"s":[1,0.192156862745,0.345098039216,1]},{"t":26,"s":[0.133333333333,0.133333333333,0.133333333333,1]}],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":6,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Vector","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":23,"s":[0]},{"t":27,"s":[100]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[435.195,196.412,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":23,"s":[209.366,209.366,100]},{"i":{"x":[0.833,0.833,0.833],"y":[0.833,0.833,0.833]},"o":{"x":[0.167,0.167,0.167],"y":[0.167,0.167,0.167]},"t":31,"s":[257.214,257.214,100]},{"t":35,"s":[209.366,209.366,100]}],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":23,"s":[{"i":[[33.137,0],[0,-33.137],[-33.137,0],[0,33.137]],"o":[[-33.137,0],[0,33.137],[33.137,0],[0,-33.137]],"v":[[-0.955,14.988],[-60.955,74.988],[-0.955,134.988],[59.045,74.988]],"c":true}]},{"t":31,"s":[{"i":[[47.354,0],[0,-47.354],[-47.354,0],[0,47.354]],"o":[[-47.354,0],[0,47.354],[47.354,0],[0,-47.354]],"v":[[0.906,-36.975],[-84.837,48.768],[0.906,134.511],[86.648,48.768]],"c":true}]}],"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.9,-0.695],[-0.438,0],[-0.403,0.524],[0,0],[0.9,0.695],[0.689,-0.896],[0,0]],"o":[[0.372,0.288],[0.617,0],[0,0],[0.695,-0.898],[-0.898,-0.699],[0,0],[-0.695,0.898]],"v":[[10.071,7.71],[11.325,8.137],[12.953,7.34],[19.076,-0.584],[18.706,-3.468],[15.825,-3.098],[9.701,4.826]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[-0.615,0],[-0.376,0.29],[0.693,0.898],[0,0],[0.898,-0.693],[-0.693,-0.898]],"o":[[0.405,0.524],[0.44,0],[0.898,-0.695],[0,0],[-0.697,-0.898],[-0.898,0.695],[0,0]],"v":[[-12.955,7.338],[-11.327,8.137],[-10.069,7.71],[-9.699,4.826],[-15.823,-3.098],[-18.707,-3.468],[-19.079,-0.584]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ind":2,"ty":"sh","ix":3,"ks":{"a":0,"k":{"i":[[0,0],[-1.135,0],[0,1.135],[0,0],[1.137,0],[0,-1.135]],"o":[[0,1.135],[1.137,0],[0,0],[0,-1.135],[-1.135,0],[0,0]],"v":[[-2.12,2.14],[-0.065,4.196],[1.991,2.14],[1.991,-6.082],[-0.065,-8.137],[-2.12,-6.082]],"c":true},"ix":2},"nm":"Path 3","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[0.131453797221,0.131453797221,0.131453797221,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":5,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":23,"op":253,"st":-47,"bm":0}],"markers":[]}')},2377:e=>{"use strict";e.exports=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 1.0.0","a":"","k":"","d":"","tc":""},"fr":60,"ip":0,"op":120,"w":250,"h":250,"nm":"Comp 1","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":3,"nm":"▽ phone","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[125,106.5,0],"ix":2},"a":{"a":0,"k":[55.5,106.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":3,"nm":"▽ Group 2","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[55.5,20.039,0],"ix":2},"a":{"a":0,"k":[10.091,2.506,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Vector","parent":2,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[10.091,2.506,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.462,0],[0,0],[0,0.459],[0.462,0],[0,0],[0,-0.459]],"o":[[0,0],[0.462,0],[0,-0.459],[0,0],[-0.462,0],[0,0.459]],"v":[[-2.523,0.835],[2.523,0.835],[3.364,0],[2.523,-0.835],[-2.523,-0.835],[-3.364,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":3,"nm":"▽ Group 2","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[55.5,192.952,0],"ix":2},"a":{"a":0,"k":[22.705,2.506,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Vector","parent":4,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[22.705,2.506,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.462,0],[0,0],[0,0.459],[0.462,0],[0,0],[0,-0.459]],"o":[[0,0],[0.462,0],[0,-0.459],[0,0],[-0.462,0],[0,0.459]],"v":[[-6.727,0.835],[6.727,0.835],[7.568,0],[6.727,-0.835],[-6.727,-0.835],[-7.568,0]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":3,"nm":"▽ Group","parent":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[55.5,106.5,0],"ix":2},"a":{"a":0,"k":[55.5,106.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":7,"ty":4,"nm":"Vector","parent":6,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[55.5,106.5,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-3.246,0],[0,0],[0,3.224],[0,0],[3.246,0],[0,0],[0,-3.224],[0,0]],"o":[[0,0],[3.246,0],[0,0],[0,-3.224],[0,0],[-3.246,0],[0,0],[0,3.224]],"v":[[-12.614,35.5],[12.614,35.5],[18.5,29.653],[18.5,-29.653],[12.614,-35.5],[-12.614,-35.5],[-18.5,-29.653],[-18.5,29.653]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ind":1,"ty":"sh","ix":2,"ks":{"a":0,"k":{"i":[[0,0],[-2.321,0],[0,0],[0,-2.305],[0,0],[2.321,0],[0,0],[0,2.305]],"o":[[0,-2.305],[0,0],[2.321,0],[0,0],[0,2.305],[0,0],[-2.321,0],[0,0]],"v":[[-16.818,-29.653],[-12.614,-33.829],[12.614,-33.829],[16.818,-29.653],[16.818,29.653],[12.614,33.829],[-12.614,33.829],[-16.818,29.653]],"c":true},"ix":2},"nm":"Path 2","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","mn":"ADBE Vector Filter - Merge","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Vector","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":3,"ty":4,"nm":"Ellipse 19 (Stroke) 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":1,"s":[0]},{"t":4,"s":[100]}],"ix":11},"r":{"a":0,"k":270,"ix":10},"p":{"a":0,"k":[40.962,100.923,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-3.155,0.911],[-3.096,-1.097],[-1.899,-2.704],[-0.392,-2.375],[0,0],[0.391,-0.391],[-0.391,-0.391],[0,0],[-0.391,0.391],[0,0],[0.391,0.391],[0.391,-0.391],[0,0],[1.7,2.42],[3.49,1.237],[3.557,-1.027],[2.311,-2.91],[-0.432,-0.344],[-0.344,0.432]],"o":[[3.155,-0.911],[3.097,1.097],[1.392,1.982],[0,0],[-0.391,-0.391],[-0.391,0.391],[0,0],[0.391,0.391],[0,0],[0.391,-0.391],[-0.391,-0.391],[0,0],[-0.368,-2.918],[-2.137,-3.042],[-3.49,-1.237],[-3.557,1.027],[-0.344,0.432],[0.432,0.344],[2.054,-2.586]],"v":[[-9.391,-6.883],[0.218,-6.597],[7.898,-0.754],[10.602,5.87],[6.161,1.429],[4.747,1.429],[4.747,2.843],[11.111,9.207],[12.525,9.207],[18.889,2.843],[18.889,1.429],[17.475,1.429],[12.675,6.228],[9.534,-1.904],[0.886,-8.482],[-9.946,-8.805],[-18.965,-2.753],[-18.804,-1.348],[-17.399,-1.509]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":-15,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 19 (Stroke)","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Ellipse 19 (Stroke)","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":1,"s":[0]},{"t":4,"s":[100]}],"ix":11},"r":{"a":0,"k":90,"ix":10},"p":{"a":0,"k":[213.962,108.423,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-3.155,0.911],[-3.096,-1.097],[-1.899,-2.704],[-0.392,-2.375],[0,0],[0.391,-0.391],[-0.391,-0.391],[0,0],[-0.391,0.391],[0,0],[0.391,0.391],[0.391,-0.391],[0,0],[1.7,2.42],[3.49,1.237],[3.557,-1.027],[2.311,-2.91],[-0.432,-0.344],[-0.344,0.432]],"o":[[3.155,-0.911],[3.097,1.097],[1.392,1.982],[0,0],[-0.391,-0.391],[-0.391,0.391],[0,0],[0.391,0.391],[0,0],[0.391,-0.391],[-0.391,-0.391],[0,0],[-0.368,-2.918],[-2.137,-3.042],[-3.49,-1.237],[-3.557,1.027],[-0.344,0.432],[0.432,0.344],[2.054,-2.586]],"v":[[-9.391,-6.883],[0.218,-6.597],[7.898,-0.754],[10.602,5.87],[6.161,1.429],[4.747,1.429],[4.747,2.843],[11.111,9.207],[12.525,9.207],[18.889,2.843],[18.889,1.429],[17.475,1.429],[12.675,6.228],[9.534,-1.904],[0.886,-8.482],[-9.946,-8.805],[-18.965,-2.753],[-18.804,-1.348],[-17.399,-1.509]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[300,300],"ix":3},"r":{"a":0,"k":-15,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 19 (Stroke)","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":300,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Phone","refId":"comp_0","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[5]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":74,"s":[100]},{"t":79,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[-90]},{"t":46,"s":[0]}],"ix":10},"p":{"a":0,"k":[127.49999999999999,131,0],"ix":2},"a":{"a":0,"k":[125,106.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":250,"h":213,"ip":0,"op":80,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Rotate","refId":"comp_1","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":3,"s":[5]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":7,"s":[100]},{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":51,"s":[100]},{"t":57,"s":[0]}],"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":7,"s":[-90]},{"t":46,"s":[0]}],"ix":10},"p":{"a":0,"k":[127.49999999999999,131,0],"ix":2},"a":{"a":0,"k":[125,106.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":250,"h":213,"ip":0,"op":80,"st":0,"bm":0}],"markers":[]}')}},e=>{e.O(0,[8893,654,7758,8474],(()=>{return t=36404,e(e.s=t);var t}));e.O()}]);