@meetelise/chat 1.22.9 → 1.22.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/demo/index.html +4 -4
- package/public/dist/index.js +16 -16
- package/src/MyPubnub.ts +45 -0
- package/src/WebComponent/me-chat.ts +11 -1
package/public/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
var e={8005:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionConsumerApiControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.cancelRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.cancelActionDto||void 0===e.cancelActionDto)throw new s.RequiredError("cancelActionDto","Required parameter requestParameters.cancelActionDto was null or undefined when calling cancel.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/cancel",method:"POST",headers:n,query:i,body:l.CancelActionDtoToJSON(e.cancelActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.cancel=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.cancelRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createNoShowActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.noShowActionDto||void 0===e.noShowActionDto)throw new s.RequiredError("noShowActionDto","Required parameter requestParameters.noShowActionDto was null or undefined when calling createNoShowAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/noShow",method:"POST",headers:n,query:i,body:l.NoShowActionDtoToJSON(e.noShowActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createNoShowAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createNoShowActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createRescheduleConfirmedActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.rescheduleConfirmedDto||void 0===e.rescheduleConfirmedDto)throw new s.RequiredError("rescheduleConfirmedDto","Required parameter requestParameters.rescheduleConfirmedDto was null or undefined when calling createRescheduleConfirmedAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/rescheduleConfirmed",method:"POST",headers:n,query:i,body:l.RescheduleConfirmedDtoToJSON(e.rescheduleConfirmedDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createRescheduleConfirmedAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createRescheduleConfirmedActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createRescheduleProposedActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.rescheduleProposedDto||void 0===e.rescheduleProposedDto)throw new s.RequiredError("rescheduleProposedDto","Required parameter requestParameters.rescheduleProposedDto was null or undefined when calling createRescheduleProposedAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/rescheduleProposed",method:"POST",headers:n,query:i,body:l.RescheduleProposedDtoToJSON(e.rescheduleProposedDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createRescheduleProposedAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createRescheduleProposedActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createShowActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.showActionDto||void 0===e.showActionDto)throw new s.RequiredError("showActionDto","Required parameter requestParameters.showActionDto was null or undefined when calling createShowAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/show",method:"POST",headers:n,query:i,body:l.ShowActionDtoToJSON(e.showActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createShowAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createShowActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.scheduleActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.scheduleDto||void 0===e.scheduleDto)throw new s.RequiredError("scheduleDto","Required parameter requestParameters.scheduleDto was null or undefined when calling scheduleAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/schedule",method:"POST",headers:n,query:i,body:l.ScheduleDtoToJSON(e.scheduleDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.scheduleAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.scheduleActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.sendAgentMessageRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.sendAgentMessageDto||void 0===e.sendAgentMessageDto)throw new s.RequiredError("sendAgentMessageDto","Required parameter requestParameters.sendAgentMessageDto was null or undefined when calling sendAgentMessage.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/sendAgentMessage",method:"POST",headers:n,query:i,body:l.SendAgentMessageDtoToJSON(e.sendAgentMessageDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.sendAgentMessage=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.sendAgentMessageRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateAgentOnContextRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling updateAgentOnContext.");if(null===e.leasingAgentId||void 0===e.leasingAgentId)throw new s.RequiredError("leasingAgentId","Required parameter requestParameters.leasingAgentId was null or undefined when calling updateAgentOnContext.");return i={},n={},[4,this.request({path:"/api/v1/actions/updateAgentOnContext/{contextId}/{leasingAgentId}".replace("{contextId}",encodeURIComponent(String(e.contextId))).replace("{leasingAgentId}",encodeURIComponent(String(e.leasingAgentId))),method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updateAgentOnContext=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateAgentOnContextRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.walkInAndShowCreateRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.walkInAndShowActionDto||void 0===e.walkInAndShowActionDto)throw new s.RequiredError("walkInAndShowActionDto","Required parameter requestParameters.walkInAndShowActionDto was null or undefined when calling walkInAndShowCreate.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/walkInAndShow",method:"POST",headers:n,query:i,body:l.WalkInAndShowActionDtoToJSON(e.walkInAndShowActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.walkInAndShowCreate=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.walkInAndShowCreateRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.walkInOrCallCreateRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.walkInOrCallActionDto||void 0===e.walkInOrCallActionDto)throw new s.RequiredError("walkInOrCallActionDto","Required parameter requestParameters.walkInOrCallActionDto was null or undefined when calling walkInOrCallCreate.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/walkInOrCall",method:"POST",headers:n,query:i,body:l.WalkInOrCallActionDtoToJSON(e.walkInOrCallActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.walkInOrCallCreate=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.walkInOrCallCreateRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ActionConsumerApiControllerApi=u},2497:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlertQueueControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.allForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling allForBuilding.");return i={},n={},[4,this.request({path:"/api/v1/alerts/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.AlertQueueInfoFromJSON)}))]}}))}))},t.prototype.allForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.allForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.emailsForContextRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling emailsForContext.");return i={},n={},[4,this.request({path:"/api/v1/alerts/{contextId}/emails/".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.AlertQueueMessageFromJSON)}))]}}))}))},t.prototype.emailsForContext=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.emailsForContextRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.textsForContextRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling textsForContext.");return i={},n={},[4,this.request({path:"/api/v1/alerts/{contextId}/texts/".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.AlertQueueMessageFromJSON)}))]}}))}))},t.prototype.textsForContext=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.textsForContextRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.AlertQueueControllerApi=u},8730:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.create2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.communityFormView||void 0===e.communityFormView)throw new s.RequiredError("communityFormView","Required parameter requestParameters.communityFormView was null or undefined when calling create2.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/",method:"POST",headers:n,query:i,body:l.CommunityFormViewToJSON(e.communityFormView)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UiBuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.create2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.create2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.deleteAvatarRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling deleteAvatar.");return i={},n={},[4,this.request({path:"/api/v1/building/{id}/avatar".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.deleteAvatar=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.deleteAvatarRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.deleteLogoRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling deleteLogo.");return i={},n={},[4,this.request({path:"/api/v1/building/{id}/logo".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.deleteLogo=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.deleteLogoRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.get4Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling get4.");return i={},n={},[4,this.request({path:"/api/v1/building/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UiBuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.get4=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.get4Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getActiveBuildingsMapRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getActiveBuildingsMap.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/buildingStatuses",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getActiveBuildingsMap=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getActiveBuildingsMapRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAll1Raw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/building/",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.CommunityPageBuildingFromJSON)}))]}}))}))},t.prototype.getAll1=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getAll1Raw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getBuildingAiAgentNameMapRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getBuildingAiAgentNameMap.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/buildingAiAgents",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getBuildingAiAgentNameMap=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingAiAgentNameMapRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingNameMapRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getBuildingNameMap.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/buildingNames",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getBuildingNameMap=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingNameMapRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingTimezoneMapRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getBuildingTimezoneMap.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/buildingTimeZones",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getBuildingTimezoneMap=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingTimezoneMapRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.putChatThemeRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o,l,u;return a(this,(function(a){switch(a.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling putChatTheme.");if(null===e.title||void 0===e.title)throw new s.RequiredError("title","Required parameter requestParameters.title was null or undefined when calling putChatTheme.");if(null===e.subtitle||void 0===e.subtitle)throw new s.RequiredError("subtitle","Required parameter requestParameters.subtitle was null or undefined when calling putChatTheme.");if(null===e.bannerColor||void 0===e.bannerColor)throw new s.RequiredError("bannerColor","Required parameter requestParameters.bannerColor was null or undefined when calling putChatTheme.");if(null===e.bannerTextColor||void 0===e.bannerTextColor)throw new s.RequiredError("bannerTextColor","Required parameter requestParameters.bannerTextColor was null or undefined when calling putChatTheme.");if(null===e.messageColor||void 0===e.messageColor)throw new s.RequiredError("messageColor","Required parameter requestParameters.messageColor was null or undefined when calling putChatTheme.");if(null===e.messageTextColor||void 0===e.messageTextColor)throw new s.RequiredError("messageTextColor","Required parameter requestParameters.messageTextColor was null or undefined when calling putChatTheme.");if(null===e.launchButtonColor||void 0===e.launchButtonColor)throw new s.RequiredError("launchButtonColor","Required parameter requestParameters.launchButtonColor was null or undefined when calling putChatTheme.");if(null===e.launchButtonIconColor||void 0===e.launchButtonIconColor)throw new s.RequiredError("launchButtonIconColor","Required parameter requestParameters.launchButtonIconColor was null or undefined when calling putChatTheme.");if(null===e.launchButtonSize||void 0===e.launchButtonSize)throw new s.RequiredError("launchButtonSize","Required parameter requestParameters.launchButtonSize was null or undefined when calling putChatTheme.");if(null===e.avatarType||void 0===e.avatarType)throw new s.RequiredError("avatarType","Required parameter requestParameters.avatarType was null or undefined when calling putChatTheme.");if(null===e.avatarInitials||void 0===e.avatarInitials)throw new s.RequiredError("avatarInitials","Required parameter requestParameters.avatarInitials was null or undefined when calling putChatTheme.");return i={},void 0!==e.title&&(i.title=e.title),void 0!==e.subtitle&&(i.subtitle=e.subtitle),void 0!==e.bannerColor&&(i.bannerColor=e.bannerColor),void 0!==e.bannerTextColor&&(i.bannerTextColor=e.bannerTextColor),void 0!==e.messageColor&&(i.messageColor=e.messageColor),void 0!==e.messageTextColor&&(i.messageTextColor=e.messageTextColor),void 0!==e.launchButtonColor&&(i.launchButtonColor=e.launchButtonColor),void 0!==e.launchButtonIconColor&&(i.launchButtonIconColor=e.launchButtonIconColor),void 0!==e.launchButtonSize&&(i.launchButtonSize=e.launchButtonSize),void 0!==e.avatarType&&(i.avatarType=e.avatarType),void 0!==e.avatarInitials&&(i.avatarInitials=e.avatarInitials),n={},r=[{contentType:"multipart/form-data"}],o=s.canConsumeForm(r),l=o?new FormData:new URLSearchParams,void 0!==e.avatarSrc&&l.append("avatarSrc",e.avatarSrc),[4,this.request({path:"/api/v1/building/{id}/chat-theme".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l},t)];case 1:return u=a.sent(),[2,new s.VoidApiResponse(u)]}}))}))},t.prototype.putChatTheme=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putChatThemeRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.putSSTThemeRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o,l,u;return a(this,(function(a){switch(a.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling putSSTTheme.");if(null===e.primaryColor||void 0===e.primaryColor)throw new s.RequiredError("primaryColor","Required parameter requestParameters.primaryColor was null or undefined when calling putSSTTheme.");if(null===e.backgroundColor||void 0===e.backgroundColor)throw new s.RequiredError("backgroundColor","Required parameter requestParameters.backgroundColor was null or undefined when calling putSSTTheme.");return i={},void 0!==e.primaryColor&&(i.primaryColor=e.primaryColor),void 0!==e.backgroundColor&&(i.backgroundColor=e.backgroundColor),n={},r=[{contentType:"multipart/form-data"}],o=s.canConsumeForm(r),l=o?new FormData:new URLSearchParams,void 0!==e.logoSrc&&l.append("logoSrc",e.logoSrc),[4,this.request({path:"/api/v1/building/{id}/sst-theme".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l},t)];case 1:return u=a.sent(),[2,new s.VoidApiResponse(u)]}}))}))},t.prototype.putSSTTheme=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putSSTThemeRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.update5Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update5.");if(null===e.communityFormView||void 0===e.communityFormView)throw new s.RequiredError("communityFormView","Required parameter requestParameters.communityFormView was null or undefined when calling update5.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.CommunityFormViewToJSON(e.communityFormView)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UiBuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.update5=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update5Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateDailyReportEmailsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling updateDailyReportEmails.");if(null===e.updateEmailsRequest||void 0===e.updateEmailsRequest)throw new s.RequiredError("updateEmailsRequest","Required parameter requestParameters.updateEmailsRequest was null or undefined when calling updateDailyReportEmails.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/dailyReportEmails/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.UpdateEmailsRequestToJSON(e.updateEmailsRequest)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updateDailyReportEmails=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateDailyReportEmailsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateHandoffForwardEmailsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling updateHandoffForwardEmails.");if(null===e.updateEmailsRequest||void 0===e.updateEmailsRequest)throw new s.RequiredError("updateEmailsRequest","Required parameter requestParameters.updateEmailsRequest was null or undefined when calling updateHandoffForwardEmails.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/handoffForwardEmails/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.UpdateEmailsRequestToJSON(e.updateEmailsRequest)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updateHandoffForwardEmails=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateHandoffForwardEmailsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateWeeklyReportEmailsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling updateWeeklyReportEmails.");if(null===e.updateEmailsRequest||void 0===e.updateEmailsRequest)throw new s.RequiredError("updateEmailsRequest","Required parameter requestParameters.updateEmailsRequest was null or undefined when calling updateWeeklyReportEmails.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/weeklyReportEmails/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.UpdateEmailsRequestToJSON(e.updateEmailsRequest)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updateWeeklyReportEmails=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateWeeklyReportEmailsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.BuildingControllerApi=u},9530:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingSchedulingControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getTourAvailabilityRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getTourAvailability.");if(null===e.startTime||void 0===e.startTime)throw new s.RequiredError("startTime","Required parameter requestParameters.startTime was null or undefined when calling getTourAvailability.");if(null===e.endTime||void 0===e.endTime)throw new s.RequiredError("endTime","Required parameter requestParameters.endTime was null or undefined when calling getTourAvailability.");return i={},void 0!==e.startTime&&(i.startTime=e.startTime),void 0!==e.endTime&&(i.endTime=e.endTime),n={},[4,this.request({path:"/api/pub/v1/buildings/{buildingId}/tour/availabilities".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.TourAvailabilityResponseFromJSON(e)}))]}}))}))},t.prototype.getTourAvailability=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getTourAvailabilityRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.BuildingSchedulingControllerApi=u},8823:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingsControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.listUnitsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling listUnits.");return i={},n={},[4,this.request({path:"/api/buildings/{buildingId}/units".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.listUnits=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.listUnitsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.BuildingsControllerApi=l},4100:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CalendarEventTourHandlerControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.createCalendarEventTourHandlerRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.createCalendarEventTourHandlerDto||void 0===e.createCalendarEventTourHandlerDto)throw new s.RequiredError("createCalendarEventTourHandlerDto","Required parameter requestParameters.createCalendarEventTourHandlerDto was null or undefined when calling createCalendarEventTourHandler.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/tourHandler/assign",method:"POST",headers:n,query:i,body:l.CreateCalendarEventTourHandlerDtoToJSON(e.createCalendarEventTourHandlerDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createCalendarEventTourHandler=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createCalendarEventTourHandlerRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getCurrentTourHandlersForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getCurrentTourHandlersForBuilding.");return i={},n={},[4,this.request({path:"/api/v1/tourHandler/getForBuilding/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return s.mapValues(e,l.CalendarEventTourHandlerFromJSON)}))]}}))}))},t.prototype.getCurrentTourHandlersForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getCurrentTourHandlersForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.CalendarEventTourHandlerControllerApi=u},1210:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTelemetryControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postChatEventRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.chatTelemetryDto||void 0===e.chatTelemetryDto)throw new s.RequiredError("chatTelemetryDto","Required parameter requestParameters.chatTelemetryDto was null or undefined when calling postChatEvent.");return i={},(n={})["Content-Type"]="application/json",void 0!==e.userAgent&&null!==e.userAgent&&(n["user-agent"]=String(e.userAgent)),[4,this.request({path:"/api/pub/chat-stats",method:"POST",headers:n,query:i,body:l.ChatTelemetryDtoToJSON(e.chatTelemetryDto)},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.postChatEvent=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.postChatEventRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.ChatTelemetryControllerApi=u},3515:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAgentIdFromContextRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling getAgentIdFromContext.");return i={},n={},[4,this.request({path:"/api/pub/context/{contextId}/getAgentId".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getAgentIdFromContext=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAgentIdFromContextRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ContextControllerApi=l},5855:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getConversationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.conversationKey||void 0===e.conversationKey)throw new s.RequiredError("conversationKey","Required parameter requestParameters.conversationKey was null or undefined when calling getConversation.");return i={},n={},[4,this.request({path:"/api/pub/conversation/{conversationKey}".replace("{conversationKey}",encodeURIComponent(String(e.conversationKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ConversationFromJSON(e)}))]}}))}))},t.prototype.getConversation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getConversationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getConversation1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling getConversation1.");return i={},n={},[4,this.request({path:"/api/pub/conversation/contextId/{contextId}/text".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ConversationFromJSON(e)}))]}}))}))},t.prototype.getConversation1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getConversation1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getConversationV2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.conversationKey||void 0===e.conversationKey)throw new s.RequiredError("conversationKey","Required parameter requestParameters.conversationKey was null or undefined when calling getConversationV2.");return i={},n={},[4,this.request({path:"/api/pub/conversation/v2/{conversationKey}".replace("{conversationKey}",encodeURIComponent(String(e.conversationKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ConversationV2FromJSON(e)}))]}}))}))},t.prototype.getConversationV2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getConversationV2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ConversationControllerApi=u},4345:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DialogueScriptControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.deleteScriptByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling deleteScriptById.");return i={},n={},[4,this.request({path:"/renterApi/v1/dialogueScripts/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.deleteScriptById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.deleteScriptByIdRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.getDefaultScriptsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/renterApi/v1/dialogueScripts/default",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.DialogueScriptFromJSON)}))]}}))}))},t.prototype.getDefaultScripts=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getDefaultScriptsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getScriptRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.intent||void 0===e.intent)throw new s.RequiredError("intent","Required parameter requestParameters.intent was null or undefined when calling getScript.");if(null===e.organizationId||void 0===e.organizationId)throw new s.RequiredError("organizationId","Required parameter requestParameters.organizationId was null or undefined when calling getScript.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getScript.");return i={},void 0!==e.organizationId&&(i.organizationId=e.organizationId),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/renterApi/v1/dialogueScripts/{intent}".replace("{intent}",encodeURIComponent(String(e.intent))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.DialogueScriptFromJSON(e)}))]}}))}))},t.prototype.getScript=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getScriptRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getScriptBySubintentRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.intent||void 0===e.intent)throw new s.RequiredError("intent","Required parameter requestParameters.intent was null or undefined when calling getScriptBySubintent.");if(null===e.subintent||void 0===e.subintent)throw new s.RequiredError("subintent","Required parameter requestParameters.subintent was null or undefined when calling getScriptBySubintent.");if(null===e.organizationId||void 0===e.organizationId)throw new s.RequiredError("organizationId","Required parameter requestParameters.organizationId was null or undefined when calling getScriptBySubintent.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getScriptBySubintent.");return i={},void 0!==e.organizationId&&(i.organizationId=e.organizationId),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/renterApi/v1/dialogueScripts/{intent}/{subintent}".replace("{intent}",encodeURIComponent(String(e.intent))).replace("{subintent}",encodeURIComponent(String(e.subintent))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.DialogueScriptFromJSON(e)}))]}}))}))},t.prototype.getScriptBySubintent=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getScriptBySubintentRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getScriptsForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.organizationId||void 0===e.organizationId)throw new s.RequiredError("organizationId","Required parameter requestParameters.organizationId was null or undefined when calling getScriptsForBuilding.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getScriptsForBuilding.");return i={},void 0!==e.organizationId&&(i.organizationId=e.organizationId),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/renterApi/v1/dialogueScripts",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.DialogueScriptFromJSON)}))]}}))}))},t.prototype.getScriptsForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getScriptsForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.putScriptRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.upsertDialogueScriptRequest||void 0===e.upsertDialogueScriptRequest)throw new s.RequiredError("upsertDialogueScriptRequest","Required parameter requestParameters.upsertDialogueScriptRequest was null or undefined when calling putScript.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/dialogueScripts",method:"PUT",headers:n,query:i,body:l.UpsertDialogueScriptRequestToJSON(e.upsertDialogueScriptRequest)},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.putScript=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putScriptRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.putScriptsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.upsertDialogueScriptRequest||void 0===e.upsertDialogueScriptRequest)throw new s.RequiredError("upsertDialogueScriptRequest","Required parameter requestParameters.upsertDialogueScriptRequest was null or undefined when calling putScripts.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/dialogueScripts/upsertMany",method:"PUT",headers:n,query:i,body:e.upsertDialogueScriptRequest.map(l.UpsertDialogueScriptRequestToJSON)},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.putScripts=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putScriptsRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.DialogueScriptControllerApi=u},2938:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.EntrataProxyControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeadPickListsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.securityKey||void 0===e.securityKey)throw new s.RequiredError("securityKey","Required parameter requestParameters.securityKey was null or undefined when calling getLeadPickLists.");if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getLeadPickLists.");if(null===e.propertyId||void 0===e.propertyId)throw new s.RequiredError("propertyId","Required parameter requestParameters.propertyId was null or undefined when calling getLeadPickLists.");return i={},void 0!==e.securityKey&&(i.securityKey=e.securityKey),void 0!==e.userId&&(i.userId=e.userId),void 0!==e.propertyId&&(i.propertyId=e.propertyId),n={},[4,this.request({path:"/api/pub/entrata/getleadpicklists",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getLeadPickLists=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadPickListsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getMitsLeadsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.securityKey||void 0===e.securityKey)throw new s.RequiredError("securityKey","Required parameter requestParameters.securityKey was null or undefined when calling getMitsLeads.");if(null===e.leadId||void 0===e.leadId)throw new s.RequiredError("leadId","Required parameter requestParameters.leadId was null or undefined when calling getMitsLeads.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getMitsLeads.");return i={},void 0!==e.securityKey&&(i.securityKey=e.securityKey),void 0!==e.leadId&&(i.leadId=e.leadId),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/api/pub/entrata/getmitsleads",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getMitsLeads=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getMitsLeadsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.EntrataProxyControllerApi=l},5021:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.EscalationsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.escalationsForBuildingIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling escalationsForBuildingId.");return i={},n={},[4,this.request({path:"/api/v1/escalations/getByBuildingId/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.AlertQueueInfoFromJSON)}))]}}))}))},t.prototype.escalationsForBuildingId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.escalationsForBuildingIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.ignoreMCConversationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.mcId||void 0===e.mcId)throw new s.RequiredError("mcId","Required parameter requestParameters.mcId was null or undefined when calling ignoreMCConversation.");return i={},n={},[4,this.request({path:"/api/v1/escalations/mc/escalation/ignore/{mcId}".replace("{mcId}",encodeURIComponent(String(e.mcId))),method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.ignoreMCConversation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.ignoreMCConversationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.resolveEscalationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.resolveEscalationDto||void 0===e.resolveEscalationDto)throw new s.RequiredError("resolveEscalationDto","Required parameter requestParameters.resolveEscalationDto was null or undefined when calling resolveEscalation.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/escalations/resolve",method:"POST",headers:n,query:i,body:l.ResolveEscalationDtoToJSON(e.resolveEscalationDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.resolveEscalation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.resolveEscalationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.respondToMCConversationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.respondToMCConversationDTO||void 0===e.respondToMCConversationDTO)throw new s.RequiredError("respondToMCConversationDTO","Required parameter requestParameters.respondToMCConversationDTO was null or undefined when calling respondToMCConversation.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/escalations/mc/escalation/respond",method:"POST",headers:n,query:i,body:l.RespondToMCConversationDTOToJSON(e.respondToMCConversationDTO)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.respondToMCConversation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.respondToMCConversationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.EscalationsControllerApi=u},9962:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventsControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAssignedLeasingAgentIdForEventRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.eventId||void 0===e.eventId)throw new s.RequiredError("eventId","Required parameter requestParameters.eventId was null or undefined when calling getAssignedLeasingAgentIdForEvent.");return i={},n={},[4,this.request({path:"/api/v1/calendar/events/{eventId}/assignedLeasingAgentId".replace("{eventId}",encodeURIComponent(String(e.eventId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getAssignedLeasingAgentIdForEvent=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAssignedLeasingAgentIdForEventRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.EventsControllerApi=l},8196:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureFlagControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getBoolFeatureFlagRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.featureKey||void 0===e.featureKey)throw new s.RequiredError("featureKey","Required parameter requestParameters.featureKey was null or undefined when calling getBoolFeatureFlag.");if(null===e.requestDto||void 0===e.requestDto)throw new s.RequiredError("requestDto","Required parameter requestParameters.requestDto was null or undefined when calling getBoolFeatureFlag.");return i={},void 0!==e.requestDto&&(i.requestDto=e.requestDto),n={},[4,this.request({path:"/api/v1/features/bool/{featureKey}".replace("{featureKey}",encodeURIComponent(String(e.featureKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getBoolFeatureFlag=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBoolFeatureFlagRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getIntFeatureFlagRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.featureKey||void 0===e.featureKey)throw new s.RequiredError("featureKey","Required parameter requestParameters.featureKey was null or undefined when calling getIntFeatureFlag.");if(null===e.requestDto||void 0===e.requestDto)throw new s.RequiredError("requestDto","Required parameter requestParameters.requestDto was null or undefined when calling getIntFeatureFlag.");return i={},void 0!==e.requestDto&&(i.requestDto=e.requestDto),n={},[4,this.request({path:"/api/v1/features/int/{featureKey}".replace("{featureKey}",encodeURIComponent(String(e.featureKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getIntFeatureFlag=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getIntFeatureFlagRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getStringFeatureFlagRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.featureKey||void 0===e.featureKey)throw new s.RequiredError("featureKey","Required parameter requestParameters.featureKey was null or undefined when calling getStringFeatureFlag.");if(null===e.requestDto||void 0===e.requestDto)throw new s.RequiredError("requestDto","Required parameter requestParameters.requestDto was null or undefined when calling getStringFeatureFlag.");return i={},void 0!==e.requestDto&&(i.requestDto=e.requestDto),n={},[4,this.request({path:"/api/v1/features/string/{featureKey}".replace("{featureKey}",encodeURIComponent(String(e.featureKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getStringFeatureFlag=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getStringFeatureFlagRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.FeatureFlagControllerApi=l},5282:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FirstContactControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getFirstContactTypeForUserRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getFirstContactTypeForUser.");return i={},n={},[4,this.request({path:"/api/v1/firstcontact/user_id/{userId}".replace("{userId}",encodeURIComponent(String(e.userId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getFirstContactTypeForUser=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getFirstContactTypeForUserRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.FirstContactControllerApi=l},4702:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FollowUpControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setFollowupFromCalendarRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.followUpParams||void 0===e.followUpParams)throw new s.RequiredError("followUpParams","Required parameter requestParameters.followUpParams was null or undefined when calling setFollowupFromCalendar.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/followup/",method:"POST",headers:n,query:i,body:l.FollowUpParamsToJSON(e.followUpParams)},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.setFollowupFromCalendar=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.setFollowupFromCalendarRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.FollowUpControllerApi=u},683:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunnelIntegrationsControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.knockAppointmentEventsWebhook1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.body||void 0===e.body)throw new s.RequiredError("body","Required parameter requestParameters.body was null or undefined when calling knockAppointmentEventsWebhook1.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/integrations/funnel/events",method:"POST",headers:n,query:i,body:e.body},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.knockAppointmentEventsWebhook1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.knockAppointmentEventsWebhook1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.FunnelIntegrationsControllerApi=l},5977:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.KnockIntegrationsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAllKnockAgentsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.communityId||void 0===e.communityId)throw new s.RequiredError("communityId","Required parameter requestParameters.communityId was null or undefined when calling getAllKnockAgents.");return i={},n={},[4,this.request({path:"/api/v1/integrations/knock/{communityId}/agents".replace("{communityId}",encodeURIComponent(String(e.communityId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.KnockAgentsNodeFromJSON)}))]}}))}))},t.prototype.getAllKnockAgents=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAllKnockAgentsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getEliseAgentRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.communityId||void 0===e.communityId)throw new s.RequiredError("communityId","Required parameter requestParameters.communityId was null or undefined when calling getEliseAgent.");return i={},n={},[4,this.request({path:"/api/v1/integrations/knock/{communityId}/eliseAgent".replace("{communityId}",encodeURIComponent(String(e.communityId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.KnockAgentsNodeFromJSON(e)}))]}}))}))},t.prototype.getEliseAgent=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getEliseAgentRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getKnockCommunitiesRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/integrations/knock/communities",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.CommunitiesEdgeFromJSON)}))]}}))}))},t.prototype.getKnockCommunities=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getKnockCommunitiesRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getKnockCommunityIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingName||void 0===e.buildingName)throw new s.RequiredError("buildingName","Required parameter requestParameters.buildingName was null or undefined when calling getKnockCommunityId.");if(null===e.streetAddress||void 0===e.streetAddress)throw new s.RequiredError("streetAddress","Required parameter requestParameters.streetAddress was null or undefined when calling getKnockCommunityId.");return i={},void 0!==e.buildingName&&(i.buildingName=e.buildingName),void 0!==e.streetAddress&&(i.streetAddress=e.streetAddress),n={},[4,this.request({path:"/api/v1/integrations/knock/community/id",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getKnockCommunityId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getKnockCommunityIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.knockAppointmentEventsWebhookRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.body||void 0===e.body)throw new s.RequiredError("body","Required parameter requestParameters.body was null or undefined when calling knockAppointmentEventsWebhook.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/integrations/knock/appointment_events",method:"POST",headers:n,query:i,body:e.body},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.knockAppointmentEventsWebhook=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.knockAppointmentEventsWebhookRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.KnockIntegrationsControllerApi=u},8242:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.LeadSourcesControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeadSourcesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeadSources.");return i={},n={},[4,this.request({path:"/api/pub/lead-sources/v1/building/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LeadSourceResponseFromJSON(e)}))]}}))}))},t.prototype.getLeadSources=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadSourcesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getLeadSourcesIntegration1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeadSourcesIntegration1.");return i={},n={},[4,this.request({path:"/api/pub/lead-sources/v1/crm/building/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LeadSourceResponseFromJSON(e)}))]}}))}))},t.prototype.getLeadSourcesIntegration1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadSourcesIntegration1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.LeadSourcesControllerApi=u},9714:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.LeadsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeadThreadViewModelsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:return i={},void 0!==e.leadEmail&&(i.leadEmail=e.leadEmail),void 0!==e.leadPhoneNumber&&(i.leadPhoneNumber=e.leadPhoneNumber),void 0!==e.leadName&&(i.leadName=e.leadName),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/api/v1/leads",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.LeadThreadViewModelFromJSON)}))]}}))}))},t.prototype.getLeadThreadViewModels=function(e,t){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadThreadViewModelsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getLeadsWithSourceRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.leadEmail||void 0===e.leadEmail)throw new s.RequiredError("leadEmail","Required parameter requestParameters.leadEmail was null or undefined when calling getLeadsWithSource.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeadsWithSource.");return i={},void 0!==e.leadEmail&&(i.leadEmail=e.leadEmail),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/api/v1/leads/leadsWithSource",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.LeadWithSourceFromJSON)}))]}}))}))},t.prototype.getLeadsWithSource=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadsWithSourceRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.LeadsControllerApi=u},7659:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.LeasingAgentsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeasingAgentsForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeasingAgentsForBuilding.");return i={},n={},[4,this.request({path:"/api/v1/leasingagents/building/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.LeasingAgentFromJSON)}))]}}))}))},t.prototype.getLeasingAgentsForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeasingAgentsForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getLeasingAgentsForUserRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getLeasingAgentsForUser.");return i={},n={},[4,this.request({path:"/api/v1/leasingagents/{userId}".replace("{userId}",encodeURIComponent(String(e.userId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.LeasingAgentFromJSON)}))]}}))}))},t.prototype.getLeasingAgentsForUser=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeasingAgentsForUserRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.LeasingAgentsControllerApi=u},2311:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.MarketingSourcesControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.initializeWhitelisting1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling initializeWhitelisting1.");return i={},n={},[4,this.request({path:"/api/v1/marketingSources/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.ExternalBuildingSourceFromJSON)}))]}}))}))},t.prototype.initializeWhitelisting1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.initializeWhitelisting1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.MarketingSourcesControllerApi=u},5827:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.MeHomeControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getDashboardInfoRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getMEHomeDashboardInfoDto||void 0===e.getMEHomeDashboardInfoDto)throw new s.RequiredError("getMEHomeDashboardInfoDto","Required parameter requestParameters.getMEHomeDashboardInfoDto was null or undefined when calling getDashboardInfo.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/mehome/dashboardInfo",method:"POST",headers:n,query:i,body:l.GetMEHomeDashboardInfoDtoToJSON(e.getMEHomeDashboardInfoDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.MEHomeDashboardInfoFromJSON(e)}))]}}))}))},t.prototype.getDashboardInfo=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getDashboardInfoRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.MeHomeControllerApi=u},5334:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.OfficeHoursControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.refreshAnyoneHomeOfficeHoursRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/officehours/refreshAnyoneHomeOfficeHours",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.VoidApiResponse(n)]}}))}))},t.prototype.refreshAnyoneHomeOfficeHours=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.refreshAnyoneHomeOfficeHoursRaw(e)];case 1:return t.sent(),[2]}}))}))},t}(s.BaseAPI);t.OfficeHoursControllerApi=l},7043:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationApiControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.create1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.organization||void 0===e.organization)throw new s.RequiredError("organization","Required parameter requestParameters.organization was null or undefined when calling create1.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/company/",method:"POST",headers:n,query:i,body:l.OrganizationToJSON(e.organization)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.OrganizationFromJSON(e)}))]}}))}))},t.prototype.create1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.create1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.get3Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling get3.");return i={},n={},[4,this.request({path:"/api/v1/company/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.OrganizationFromJSON(e)}))]}}))}))},t.prototype.get3=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.get3Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getActiveBuildingNamesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getActiveBuildingNames.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/company/activeBuildingNames",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getActiveBuildingNames=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getActiveBuildingNamesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getOrgsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/company/",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return l.ListWrapperOrganizationFromJSON(e)}))]}}))}))},t.prototype.getOrgs=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getOrgsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getUsersRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.orgId||void 0===e.orgId)throw new s.RequiredError("orgId","Required parameter requestParameters.orgId was null or undefined when calling getUsers.");return i={},n={},[4,this.request({path:"/api/v1/company/users/{orgId}".replace("{orgId}",encodeURIComponent(String(e.orgId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.XagacityUserFromJSON)}))]}}))}))},t.prototype.getUsers=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getUsersRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.update4Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update4.");if(null===e.organization||void 0===e.organization)throw new s.RequiredError("organization","Required parameter requestParameters.organization was null or undefined when calling update4.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/company/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.OrganizationToJSON(e.organization)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.OrganizationFromJSON(e)}))]}}))}))},t.prototype.update4=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update4Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.OrganizationApiControllerApi=u},1092:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PublicBuildingControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getOrgIdFromUUIDRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.uuid||void 0===e.uuid)throw new s.RequiredError("uuid","Required parameter requestParameters.uuid was null or undefined when calling getOrgIdFromUUID.");return i={},n={},[4,this.request({path:"/api/pub/v1/organization/{uuid}".replace("{uuid}",encodeURIComponent(String(e.uuid))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getOrgIdFromUUID=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getOrgIdFromUUIDRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getPublicBuildingInfoRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.organizationSlug||void 0===e.organizationSlug)throw new s.RequiredError("organizationSlug","Required parameter requestParameters.organizationSlug was null or undefined when calling getPublicBuildingInfo.");if(null===e.buildingSlug||void 0===e.buildingSlug)throw new s.RequiredError("buildingSlug","Required parameter requestParameters.buildingSlug was null or undefined when calling getPublicBuildingInfo.");return i={},n={},[4,this.request({path:"/api/pub/v1/organization/{organizationSlug}/building/{buildingSlug}".replace("{organizationSlug}",encodeURIComponent(String(e.organizationSlug))).replace("{buildingSlug}",encodeURIComponent(String(e.buildingSlug))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingPublicViewModelFromJSON(e)}))]}}))}))},t.prototype.getPublicBuildingInfo=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getPublicBuildingInfoRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.PublicBuildingControllerApi=u},535:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PublicUnsubscribeControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.unsubscribeFromStateRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.stateId||void 0===e.stateId)throw new s.RequiredError("stateId","Required parameter requestParameters.stateId was null or undefined when calling unsubscribeFromState.");return i={},n={},[4,this.request({path:"/api/unsubscribe/{stateId}".replace("{stateId}",encodeURIComponent(String(e.stateId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.unsubscribeFromState=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.unsubscribeFromStateRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.PublicUnsubscribeControllerApi=l},4071:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecurringEventsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.delete1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling delete1.");return i={},n={},[4,this.request({path:"/api/v1/recurring_events/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.delete1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.delete1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.get2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling get2.");return i={},n={},[4,this.request({path:"/api/v1/recurring_events/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.RecurringEventDtoFromJSON(e)}))]}}))}))},t.prototype.get2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.get2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.saveRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.recurringEventCreateRequestDto||void 0===e.recurringEventCreateRequestDto)throw new s.RequiredError("recurringEventCreateRequestDto","Required parameter requestParameters.recurringEventCreateRequestDto was null or undefined when calling save.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/recurring_events",method:"POST",headers:n,query:i,body:l.RecurringEventCreateRequestDtoToJSON(e.recurringEventCreateRequestDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.save=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.saveRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.update3Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update3.");if(null===e.recurringEventUpdateRequestDto||void 0===e.recurringEventUpdateRequestDto)throw new s.RequiredError("recurringEventUpdateRequestDto","Required parameter requestParameters.recurringEventUpdateRequestDto was null or undefined when calling update3.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/recurring_events/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.RecurringEventUpdateRequestDtoToJSON(e.recurringEventUpdateRequestDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.update3=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update3Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RecurringEventsControllerApi=u},5834:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterBuildingControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.findRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.name||void 0===e.name)throw new s.RequiredError("name","Required parameter requestParameters.name was null or undefined when calling find.");if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling find.");if(null===e.zip||void 0===e.zip)throw new s.RequiredError("zip","Required parameter requestParameters.zip was null or undefined when calling find.");return i={},void 0!==e.name&&(i.name=e.name),void 0!==e.address&&(i.address=e.address),void 0!==e.zip&&(i.zip=e.zip),n={},[4,this.request({path:"/renterApi/v1/building/find",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.find=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.findBuildingsManagedByRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.email||void 0===e.email)throw new s.RequiredError("email","Required parameter requestParameters.email was null or undefined when calling findBuildingsManagedBy.");return i={},void 0!==e.email&&(i.email=e.email),n={},[4,this.request({path:"/renterApi/v1/building/managedBy",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.BuildingDetailsFromJSON)}))]}}))}))},t.prototype.findBuildingsManagedBy=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findBuildingsManagedByRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.findByNameRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling findByName.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.findByName=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findByNameRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"PATCH",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation1.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation2.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"PUT",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation3Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation3.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"OPTIONS",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation3=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation3Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation4Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation4.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation4=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation4Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation5Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation5.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation5=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation5Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation6Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation6.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"HEAD",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation6=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation6Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAllBuildingPreferencesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getAllBuildingPreferences.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/buildingPreferences".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getAllBuildingPreferences=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAllBuildingPreferencesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAllBuildingUnitsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getAllBuildingUnits.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/allUnits".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getAllBuildingUnits=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAllBuildingUnitsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingNameByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getBuildingNameById.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/name".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getBuildingNameById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingNameByIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingOverridesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getBuildingOverrides.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/handoffOverrides".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingOverrideFromJSON(e)}))]}}))}))},t.prototype.getBuildingOverrides=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingOverridesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingUnitsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getBuildingUnits.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/units".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getBuildingUnits=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingUnitsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingUnitsWithDefaultsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getBuildingUnitsWithDefaults.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/allActiveUnitsWithDefaults".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getBuildingUnitsWithDefaults=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingUnitsWithDefaultsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingUnitsWithDefaults1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.name||void 0===e.name)throw new s.RequiredError("name","Required parameter requestParameters.name was null or undefined when calling getBuildingUnitsWithDefaults1.");if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling getBuildingUnitsWithDefaults1.");if(null===e.zip||void 0===e.zip)throw new s.RequiredError("zip","Required parameter requestParameters.zip was null or undefined when calling getBuildingUnitsWithDefaults1.");return i={},void 0!==e.name&&(i.name=e.name),void 0!==e.address&&(i.address=e.address),void 0!==e.zip&&(i.zip=e.zip),n={},[4,this.request({path:"/renterApi/v1/building/allActiveUnitsWithDefaults",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getBuildingUnitsWithDefaults1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingUnitsWithDefaults1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getById.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/byId/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UiBuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.getById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getByIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getEntities1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.entityConfig||void 0===e.entityConfig)throw new s.RequiredError("entityConfig","Required parameter requestParameters.entityConfig was null or undefined when calling getEntities1.");return i={},void 0!==e.entityConfig&&(i.entityConfig=e.entityConfig),n={},[4,this.request({path:"/renterApi/v1/building/entities",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.BuildingEntityFromJSON)}))]}}))}))},t.prototype.getEntities1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getEntities1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getFollowUpSettingsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.name||void 0===e.name)throw new s.RequiredError("name","Required parameter requestParameters.name was null or undefined when calling getFollowUpSettings.");if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling getFollowUpSettings.");if(null===e.zip||void 0===e.zip)throw new s.RequiredError("zip","Required parameter requestParameters.zip was null or undefined when calling getFollowUpSettings.");return i={},void 0!==e.name&&(i.name=e.name),void 0!==e.address&&(i.address=e.address),void 0!==e.zip&&(i.zip=e.zip),n={},[4,this.request({path:"/renterApi/v1/building/followUpSettings",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.FollowUpSettingsFromJSON(e)}))]}}))}))},t.prototype.getFollowUpSettings=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getFollowUpSettingsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getIncentivesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getIncentives.");return i={},void 0!==e.layout&&(i.layout=e.layout),n={},[4,this.request({path:"/renterApi/v1/building/{id}/incentives".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UnitIncentiveResultFromJSON(e)}))]}}))}))},t.prototype.getIncentives=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getIncentivesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getRentcafePropertyIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getRentcafePropertyId.");if(null===e.voyagerPropertyCode||void 0===e.voyagerPropertyCode)throw new s.RequiredError("voyagerPropertyCode","Required parameter requestParameters.voyagerPropertyCode was null or undefined when calling getRentcafePropertyId.");return i={},void 0!==e.userId&&(i.userId=e.userId),void 0!==e.voyagerPropertyCode&&(i.voyagerPropertyCode=e.voyagerPropertyCode),n={},[4,this.request({path:"/renterApi/v1/building/rentcafe/propertyId",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getRentcafePropertyId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getRentcafePropertyIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getTourPriorityByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getTourPriorityById.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/tourPriority".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getTourPriorityById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getTourPriorityByIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getV2ConfigurationForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getV2ConfigurationForBuilding.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{buildingId}/v2Configuration".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.V2BuildingMigrationStatusFromJSON(e)}))]}}))}))},t.prototype.getV2ConfigurationForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getV2ConfigurationForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getVirtualTourPlatformInfoRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getVirtualTourPlatformInfo.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/preferences".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingTourTypePreferencesFromJSON(e)}))]}}))}))},t.prototype.getVirtualTourPlatformInfo=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getVirtualTourPlatformInfoRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.searchBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.name||void 0===e.name)throw new s.RequiredError("name","Required parameter requestParameters.name was null or undefined when calling searchBuilding.");if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling searchBuilding.");if(null===e.zip||void 0===e.zip)throw new s.RequiredError("zip","Required parameter requestParameters.zip was null or undefined when calling searchBuilding.");if(null===e.startTime||void 0===e.startTime)throw new s.RequiredError("startTime","Required parameter requestParameters.startTime was null or undefined when calling searchBuilding.");if(null===e.endTime||void 0===e.endTime)throw new s.RequiredError("endTime","Required parameter requestParameters.endTime was null or undefined when calling searchBuilding.");return i={},void 0!==e.name&&(i.name=e.name),void 0!==e.address&&(i.address=e.address),void 0!==e.zip&&(i.zip=e.zip),void 0!==e.startTime&&(i.startTime=e.startTime),void 0!==e.endTime&&(i.endTime=e.endTime),n={},[4,this.request({path:"/renterApi/v1/building/search/tour/availabilities",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.TourAvailabilityResponseFromJSON(e)}))]}}))}))},t.prototype.searchBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.searchBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.searchBuilding1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.calendarId||void 0===e.calendarId)throw new s.RequiredError("calendarId","Required parameter requestParameters.calendarId was null or undefined when calling searchBuilding1.");if(null===e.startTime||void 0===e.startTime)throw new s.RequiredError("startTime","Required parameter requestParameters.startTime was null or undefined when calling searchBuilding1.");if(null===e.endTime||void 0===e.endTime)throw new s.RequiredError("endTime","Required parameter requestParameters.endTime was null or undefined when calling searchBuilding1.");if(null===e.tourTypes||void 0===e.tourTypes)throw new s.RequiredError("tourTypes","Required parameter requestParameters.tourTypes was null or undefined when calling searchBuilding1.");return i={},void 0!==e.calendarId&&(i.calendarId=e.calendarId),void 0!==e.startTime&&(i.startTime=e.startTime),void 0!==e.endTime&&(i.endTime=e.endTime),void 0!==e.tourTypes&&(i.tourTypes=e.tourTypes),n={},[4,this.request({path:"/renterApi/v1/building/search/tour/availabilities/calendar",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.TourAvailabilityResponseFromJSON(e)}))]}}))}))},t.prototype.searchBuilding1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.searchBuilding1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterBuildingControllerApi=u},4797:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterContextControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.associateLeadRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling associateLead.");if(null===e.associateLeadRequestDto||void 0===e.associateLeadRequestDto)throw new s.RequiredError("associateLeadRequestDto","Required parameter requestParameters.associateLeadRequestDto was null or undefined when calling associateLead.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/context/associateLead/{contextId}".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"POST",headers:n,query:i,body:l.AssociateLeadRequestDtoToJSON(e.associateLeadRequestDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.associateLead=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.associateLeadRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.associateLeadByStateIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.stateId||void 0===e.stateId)throw new s.RequiredError("stateId","Required parameter requestParameters.stateId was null or undefined when calling associateLeadByStateId.");if(null===e.associateLeadRequestDto||void 0===e.associateLeadRequestDto)throw new s.RequiredError("associateLeadRequestDto","Required parameter requestParameters.associateLeadRequestDto was null or undefined when calling associateLeadByStateId.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/context/associateLeadByStateId/{stateId}".replace("{stateId}",encodeURIComponent(String(e.stateId))),method:"POST",headers:n,query:i,body:l.AssociateLeadRequestDtoToJSON(e.associateLeadRequestDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.associateLeadByStateId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.associateLeadByStateIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getContextByPartyIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.partyId||void 0===e.partyId)throw new s.RequiredError("partyId","Required parameter requestParameters.partyId was null or undefined when calling getContextByPartyId.");return i={},n={},[4,this.request({path:"/renterApi/v1/context/partyId/{partyId}".replace("{partyId}",encodeURIComponent(String(e.partyId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ContextDtoFromJSON(e)}))]}}))}))},t.prototype.getContextByPartyId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getContextByPartyIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getOrCreateContextFromChatRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getOrCreateContextFromChat.");if(null===e.getOrCreateContextDto||void 0===e.getOrCreateContextDto)throw new s.RequiredError("getOrCreateContextDto","Required parameter requestParameters.getOrCreateContextDto was null or undefined when calling getOrCreateContextFromChat.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/context/chat/getOrCreate/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:n,query:i,body:l.GetOrCreateContextDtoToJSON(e.getOrCreateContextDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ContextDtoFromJSON(e)}))]}}))}))},t.prototype.getOrCreateContextFromChat=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getOrCreateContextFromChatRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterContextControllerApi=u},9925:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterLeadSourcesControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeadSourcesIntegrationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeadSourcesIntegration.");return i={},n={},[4,this.request({path:"/renterApi/v1/leadSources/crm/building/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LeadSourceResponseFromJSON(e)}))]}}))}))},t.prototype.getLeadSourcesIntegration=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadSourcesIntegrationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterLeadSourcesControllerApi=u},9412:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterPartyControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.updatePartyLeadRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling updatePartyLead.");if(null===e.leadInfoUpdateDto||void 0===e.leadInfoUpdateDto)throw new s.RequiredError("leadInfoUpdateDto","Required parameter requestParameters.leadInfoUpdateDto was null or undefined when calling updatePartyLead.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/party/{id}/lead".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.LeadInfoUpdateDtoToJSON(e.leadInfoUpdateDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updatePartyLead=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updatePartyLeadRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterPartyControllerApi=u},7411:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RetrieveQuestionAnswersAcceptEnum=t.RenterQaControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.retrieveQuestionAnswersRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling retrieveQuestionAnswers.");return i={},void 0!==e.requestBody&&(i.requestBody=e.requestBody),n={},void 0!==e.accept&&null!==e.accept&&(n.Accept=String(e.accept)),[4,this.request({path:"/renterApi/v1/qa",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ElisePredictedResponseFromJSON(e)}))]}}))}))},t.prototype.retrieveQuestionAnswers=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.retrieveQuestionAnswersRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterQaControllerApi=u,(t.RetrieveQuestionAnswersAcceptEnum||(t.RetrieveQuestionAnswersAcceptEnum={})).ApplicationJson="application/json"},1562:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterTourControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.bookRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.bookTourDto||void 0===e.bookTourDto)throw new s.RequiredError("bookTourDto","Required parameter requestParameters.bookTourDto was null or undefined when calling book.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/tour/book",method:"POST",headers:n,query:i,body:l.BookTourDtoToJSON(e.bookTourDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.EliseCalendarEventFromJSON(e)}))]}}))}))},t.prototype.book=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.bookRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.bookByStateIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.bookTourByStateIdDto||void 0===e.bookTourByStateIdDto)throw new s.RequiredError("bookTourByStateIdDto","Required parameter requestParameters.bookTourByStateIdDto was null or undefined when calling bookByStateId.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/tour/bookByStateId",method:"POST",headers:n,query:i,body:l.BookTourByStateIdDtoToJSON(e.bookTourByStateIdDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.EliseCalendarEventFromJSON(e)}))]}}))}))},t.prototype.bookByStateId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.bookByStateIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.cancelAllRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.cancelTourDto||void 0===e.cancelTourDto)throw new s.RequiredError("cancelTourDto","Required parameter requestParameters.cancelTourDto was null or undefined when calling cancelAll.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/tour/cancelAll",method:"POST",headers:n,query:i,body:l.CancelTourDtoToJSON(e.cancelTourDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.cancelAll=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.cancelAllRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.cancelAllByStateIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.cancelTourByStateIdDto||void 0===e.cancelTourByStateIdDto)throw new s.RequiredError("cancelTourByStateIdDto","Required parameter requestParameters.cancelTourByStateIdDto was null or undefined when calling cancelAllByStateId.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/tour/cancelAllByStateId",method:"POST",headers:n,query:i,body:l.CancelTourByStateIdDtoToJSON(e.cancelTourByStateIdDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.cancelAllByStateId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.cancelAllByStateIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterTourControllerApi=u},3195:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterUnitControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAvailableUnitsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getAvailableUnits.");if(null===e.layouts||void 0===e.layouts)throw new s.RequiredError("layouts","Required parameter requestParameters.layouts was null or undefined when calling getAvailableUnits.");if(null===e.startDate||void 0===e.startDate)throw new s.RequiredError("startDate","Required parameter requestParameters.startDate was null or undefined when calling getAvailableUnits.");if(null===e.endDate||void 0===e.endDate)throw new s.RequiredError("endDate","Required parameter requestParameters.endDate was null or undefined when calling getAvailableUnits.");return i={},void 0!==e.buildingId&&(i.buildingId=e.buildingId),e.layouts&&(i.layouts=e.layouts),void 0!==e.startDate&&(i.startDate=e.startDate.toISOString().substr(0,10)),void 0!==e.endDate&&(i.endDate=e.endDate.toISOString().substr(0,10)),n={},[4,this.request({path:"/renterApi/v1/unit/availability",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getAvailableUnits=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAvailableUnitsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterUnitControllerApi=u},3978:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterUserControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.findByEmailRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.email||void 0===e.email)throw new s.RequiredError("email","Required parameter requestParameters.email was null or undefined when calling findByEmail.");return i={},n={},[4,this.request({path:"/renterApi/v1/user/email/{email}".replace("{email}",encodeURIComponent(String(e.email))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserFromJSON(e)}))]}}))}))},t.prototype.findByEmail=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findByEmailRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.findByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling findById.");return i={},n={},[4,this.request({path:"/renterApi/v1/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserFromJSON(e)}))]}}))}))},t.prototype.findById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findByIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getEntitiesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.entityConfig||void 0===e.entityConfig)throw new s.RequiredError("entityConfig","Required parameter requestParameters.entityConfig was null or undefined when calling getEntities.");return i={},void 0!==e.entityConfig&&(i.entityConfig=e.entityConfig),n={},[4,this.request({path:"/renterApi/v1/user/entities",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.InboxEntityFromJSON)}))]}}))}))},t.prototype.getEntities=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getEntitiesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterUserControllerApi=u},7282:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReportingServiceControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.generateAndDownloadExcelReportRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling generateAndDownloadExcelReport.");if(null===e.startDate||void 0===e.startDate)throw new s.RequiredError("startDate","Required parameter requestParameters.startDate was null or undefined when calling generateAndDownloadExcelReport.");if(null===e.endDate||void 0===e.endDate)throw new s.RequiredError("endDate","Required parameter requestParameters.endDate was null or undefined when calling generateAndDownloadExcelReport.");return i={},void 0!==e.buildingId&&(i.buildingId=e.buildingId),void 0!==e.startDate&&(i.startDate=e.startDate.toISOString().substr(0,10)),void 0!==e.endDate&&(i.endDate=e.endDate.toISOString().substr(0,10)),n={},[4,this.request({path:"/api/v1/report/excel/generateAndDownload",method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.generateAndDownloadExcelReport=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.generateAndDownloadExcelReportRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.generateAndSendExcelReportsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.generateAndSendExcelReportsOverrideSettings||void 0===e.generateAndSendExcelReportsOverrideSettings)throw new s.RequiredError("generateAndSendExcelReportsOverrideSettings","Required parameter requestParameters.generateAndSendExcelReportsOverrideSettings was null or undefined when calling generateAndSendExcelReports.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/report/excel/generateAndSend",method:"POST",headers:n,query:i,body:l.GenerateAndSendExcelReportsOverrideSettingsToJSON(e.generateAndSendExcelReportsOverrideSettings)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.generateAndSendExcelReports=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.generateAndSendExcelReportsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingsToReceiveReportsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/report/buildingsToReceiveReports",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n)]}}))}))},t.prototype.getBuildingsToReceiveReports=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getBuildingsToReceiveReportsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getByBuildingAndDateRangeRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getReportsForBuildingAndDateRangeDto||void 0===e.getReportsForBuildingAndDateRangeDto)throw new s.RequiredError("getReportsForBuildingAndDateRangeDto","Required parameter requestParameters.getReportsForBuildingAndDateRangeDto was null or undefined when calling getByBuildingAndDateRange.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/report",method:"POST",headers:n,query:i,body:l.GetReportsForBuildingAndDateRangeDtoToJSON(e.getReportsForBuildingAndDateRangeDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.HourlyReportDtoFromJSON)}))]}}))}))},t.prototype.getByBuildingAndDateRange=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getByBuildingAndDateRangeRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getByBuildingsAndDateRangeRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getReportsForBuildingsAndDateRangeDto||void 0===e.getReportsForBuildingsAndDateRangeDto)throw new s.RequiredError("getReportsForBuildingsAndDateRangeDto","Required parameter requestParameters.getReportsForBuildingsAndDateRangeDto was null or undefined when calling getByBuildingsAndDateRange.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/report/getForBuildings",method:"POST",headers:n,query:i,body:l.GetReportsForBuildingsAndDateRangeDtoToJSON(e.getReportsForBuildingsAndDateRangeDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.WebReportingDashboardResponseFromJSON(e)}))]}}))}))},t.prototype.getByBuildingsAndDateRange=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getByBuildingsAndDateRangeRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getExcelReportSettingsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/report/excel/settings",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.ReportSettingFromJSON)}))]}}))}))},t.prototype.getExcelReportSettings=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getExcelReportSettingsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getRecipientsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/report/recipients",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.WeeklyReportEmailFromJSON)}))]}}))}))},t.prototype.getRecipients=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getRecipientsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.upsertReportSettingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.reportSetting||void 0===e.reportSetting)throw new s.RequiredError("reportSetting","Required parameter requestParameters.reportSetting was null or undefined when calling upsertReportSetting.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/report/excel/reportSettings",method:"POST",headers:n,query:i,body:l.ReportSettingToJSON(e.reportSetting)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.upsertReportSetting=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.upsertReportSettingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ReportingServiceControllerApi=u},307:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseTemplateControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.resolveBatchRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.resolveScriptsRequest||void 0===e.resolveScriptsRequest)throw new s.RequiredError("resolveScriptsRequest","Required parameter requestParameters.resolveScriptsRequest was null or undefined when calling resolveBatch.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/responseTemplates/resolve",method:"POST",headers:n,query:i,body:l.ResolveScriptsRequestToJSON(e.resolveScriptsRequest)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.ScriptFromJSON)}))]}}))}))},t.prototype.resolveBatch=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.resolveBatchRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ResponseTemplateControllerApi=u},4968:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Update2ScriptTypeEnum=t.GetScriptTypeEnum=t.DeleteScriptTypeEnum=t.ScriptsApiControllerApi=void 0;var s,l,u,d=i(296),c=i(4584),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype._deleteRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new d.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling _delete.");if(null===e.scriptType||void 0===e.scriptType)throw new d.RequiredError("scriptType","Required parameter requestParameters.scriptType was null or undefined when calling _delete.");return i={},n={},[4,this.request({path:"/api/v1/scripts/{id}/type/{scriptType}".replace("{id}",encodeURIComponent(String(e.id))).replace("{scriptType}",encodeURIComponent(String(e.scriptType))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptFromJSON(e)}))]}}))}))},t.prototype._delete=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this._deleteRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.createScriptRequest||void 0===e.createScriptRequest)throw new d.RequiredError("createScriptRequest","Required parameter requestParameters.createScriptRequest was null or undefined when calling create.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/scripts/",method:"POST",headers:n,query:i,body:c.CreateScriptRequestToJSON(e.createScriptRequest)},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptFromJSON(e)}))]}}))}))},t.prototype.create=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new d.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling get.");if(null===e.scriptType||void 0===e.scriptType)throw new d.RequiredError("scriptType","Required parameter requestParameters.scriptType was null or undefined when calling get.");return i={},n={},[4,this.request({path:"/api/v1/scripts/{id}/type/{scriptType}".replace("{id}",encodeURIComponent(String(e.id))).replace("{scriptType}",encodeURIComponent(String(e.scriptType))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptFromJSON(e)}))]}}))}))},t.prototype.get=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.get1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.query||void 0===e.query)throw new d.RequiredError("query","Required parameter requestParameters.query was null or undefined when calling get1.");return i={},void 0!==e.query&&(i.query=e.query),n={},[4,this.request({path:"/api/v1/scripts/search",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptSearchResultFromJSON(e)}))]}}))}))},t.prototype.get1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.get1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.update2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new d.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update2.");if(null===e.scriptType||void 0===e.scriptType)throw new d.RequiredError("scriptType","Required parameter requestParameters.scriptType was null or undefined when calling update2.");if(null===e.updateScriptRequest||void 0===e.updateScriptRequest)throw new d.RequiredError("updateScriptRequest","Required parameter requestParameters.updateScriptRequest was null or undefined when calling update2.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/scripts/{id}/type/{scriptType}".replace("{id}",encodeURIComponent(String(e.id))).replace("{scriptType}",encodeURIComponent(String(e.scriptType))),method:"PUT",headers:n,query:i,body:c.UpdateScriptRequestToJSON(e.updateScriptRequest)},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptFromJSON(e)}))]}}))}))},t.prototype.update2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(d.BaseAPI);t.ScriptsApiControllerApi=p,(u=t.DeleteScriptTypeEnum||(t.DeleteScriptTypeEnum={})).All="ALL",u.Template="TEMPLATE",u.TemplateItem="TEMPLATE_ITEM",(l=t.GetScriptTypeEnum||(t.GetScriptTypeEnum={})).All="ALL",l.Template="TEMPLATE",l.TemplateItem="TEMPLATE_ITEM",(s=t.Update2ScriptTypeEnum||(t.Update2ScriptTypeEnum={})).All="ALL",s.Template="TEMPLATE",s.TemplateItem="TEMPLATE_ITEM"},2760:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TaggingControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAttributesRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/tagging/attributes",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.TextApiResponse(n)]}}))}))},t.prototype.getAttributes=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getAttributesRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getIntentsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/tagging/intents",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.TextApiResponse(n)]}}))}))},t.prototype.getIntents=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getIntentsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getNextStateRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/tagging",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.TextApiResponse(n)]}}))}))},t.prototype.getNextState=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getNextStateRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.replaceRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/tagging",method:"POST",headers:n,query:i,body:e.body},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.replace=function(e,t){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.replaceRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.TaggingControllerApi=l},8497:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TaggingS3ControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.uploadRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.tagId||void 0===e.tagId)throw new s.RequiredError("tagId","Required parameter requestParameters.tagId was null or undefined when calling upload.");if(null===e.aitId||void 0===e.aitId)throw new s.RequiredError("aitId","Required parameter requestParameters.aitId was null or undefined when calling upload.");if(null===e.env||void 0===e.env)throw new s.RequiredError("env","Required parameter requestParameters.env was null or undefined when calling upload.");return i={},void 0!==e.tagId&&(i.tag_id=e.tagId),void 0!==e.aitId&&(i.ait_id=e.aitId),void 0!==e.env&&(i.env=e.env),(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/taggingS3/uploadState",method:"POST",headers:n,query:i,body:l.InlineObject3ToJSON(e.inlineObject3)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.upload=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.uploadRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.TaggingS3ControllerApi=u},1270:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscribeControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.unsubscribeFromThreadRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.msgId||void 0===e.msgId)throw new s.RequiredError("msgId","Required parameter requestParameters.msgId was null or undefined when calling unsubscribeFromThread.");if(null===e.agtId||void 0===e.agtId)throw new s.RequiredError("agtId","Required parameter requestParameters.agtId was null or undefined when calling unsubscribeFromThread.");return i={},void 0!==e.msgId&&(i.msgId=e.msgId),void 0!==e.agtId&&(i.agtId=e.agtId),n={},[4,this.request({path:"/api/pub/unsubscribe",method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.unsubscribeFromThread=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.unsubscribeFromThreadRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.UnsubscribeControllerApi=l},6324:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserApiControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAllRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:return i={},void 0!==e.active&&(i.active=e.active),n={},[4,this.request({path:"/api/v1/user/",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.XagacityUserFromJSON)}))]}}))}))},t.prototype.getAll=function(e,t){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAllRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getOne1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getOne1.");return i={},n={},[4,this.request({path:"/api/v1/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserFromJSON(e)}))]}}))}))},t.prototype.getOne1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getOne1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.update1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update1.");if(null===e.xagacityUser||void 0===e.xagacityUser)throw new s.RequiredError("xagacityUser","Required parameter requestParameters.xagacityUser was null or undefined when calling update1.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.XagacityUserToJSON(e.xagacityUser)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserFromJSON(e)}))]}}))}))},t.prototype.update1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.UserApiControllerApi=u},8878:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.V2BuildingControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.putChatThemeV2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o,l,u;return a(this,(function(a){switch(a.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling putChatThemeV2.");if(null===e.themeId||void 0===e.themeId)throw new s.RequiredError("themeId","Required parameter requestParameters.themeId was null or undefined when calling putChatThemeV2.");if(null===e.subtitle||void 0===e.subtitle)throw new s.RequiredError("subtitle","Required parameter requestParameters.subtitle was null or undefined when calling putChatThemeV2.");if(null===e.avatarType||void 0===e.avatarType)throw new s.RequiredError("avatarType","Required parameter requestParameters.avatarType was null or undefined when calling putChatThemeV2.");return i={},void 0!==e.themeId&&(i.themeId=e.themeId),void 0!==e.subtitle&&(i.subtitle=e.subtitle),void 0!==e.avatarType&&(i.avatarType=e.avatarType),n={},r=[{contentType:"multipart/form-data"}],o=s.canConsumeForm(r),l=o?new FormData:new URLSearchParams,void 0!==e.avatarSrc&&l.append("avatarSrc",e.avatarSrc),[4,this.request({path:"/api/v2/building/{id}/chat-theme".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:n,query:i,body:l},t)];case 1:return u=a.sent(),[2,new s.VoidApiResponse(u)]}}))}))},t.prototype.putChatThemeV2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putChatThemeV2Raw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.V2BuildingControllerApi=l},5438:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.V2OracleControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getUnitAvailabilitiesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getUnitAvailabilitiesRequest||void 0===e.getUnitAvailabilitiesRequest)throw new s.RequiredError("getUnitAvailabilitiesRequest","Required parameter requestParameters.getUnitAvailabilitiesRequest was null or undefined when calling getUnitAvailabilities.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/oracleHelper/getUnitAvailabilityDialogue",method:"POST",headers:n,query:i,body:l.GetUnitAvailabilitiesRequestToJSON(e.getUnitAvailabilitiesRequest)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.GetUnitAvailabilitiesResponseFromJSON(e)}))]}}))}))},t.prototype.getUnitAvailabilities=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getUnitAvailabilitiesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getUnitAvailabilitiesForEntityRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getUnitAvailabilitiesRequest2||void 0===e.getUnitAvailabilitiesRequest2)throw new s.RequiredError("getUnitAvailabilitiesRequest2","Required parameter requestParameters.getUnitAvailabilitiesRequest2 was null or undefined when calling getUnitAvailabilitiesForEntity.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/oracleHelper/getUnitAvailabilityDialogueForEntity",method:"POST",headers:n,query:i,body:l.GetUnitAvailabilitiesRequest2ToJSON(e.getUnitAvailabilitiesRequest2)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.GetUnitAvailabilitiesResponseFromJSON(e)}))]}}))}))},t.prototype.getUnitAvailabilitiesForEntity=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getUnitAvailabilitiesForEntityRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.V2OracleControllerApi=u},917:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateCredentialsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getBuildingExpansionResultRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingName||void 0===e.buildingName)throw new s.RequiredError("buildingName","Required parameter requestParameters.buildingName was null or undefined when calling getBuildingExpansionResult.");if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getBuildingExpansionResult.");if(null===e.streetAddress||void 0===e.streetAddress)throw new s.RequiredError("streetAddress","Required parameter requestParameters.streetAddress was null or undefined when calling getBuildingExpansionResult.");return i={},void 0!==e.buildingName&&(i.buildingName=e.buildingName),void 0!==e.userId&&(i.userId=e.userId),void 0!==e.streetAddress&&(i.streetAddress=e.streetAddress),n={},[4,this.request({path:"/api/v1/validatecredentials/getBuildingExpansionResult",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingExpansionValidationResultFromJSON(e)}))]}}))}))},t.prototype.getBuildingExpansionResult=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingExpansionResultRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.validateCredentialsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.validateCredentialsRequest||void 0===e.validateCredentialsRequest)throw new s.RequiredError("validateCredentialsRequest","Required parameter requestParameters.validateCredentialsRequest was null or undefined when calling validateCredentials.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/validatecredentials",method:"POST",headers:n,query:i,body:l.ValidateCredentialsRequestToJSON(e.validateCredentialsRequest)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ValidateCredentialsResponseFromJSON(e)}))]}}))}))},t.prototype.validateCredentials=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.validateCredentialsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ValidateCredentialsControllerApi=u},656:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAdditionalInfoForConfigStepNameEnum=t.WhiteListingControllerApi=void 0;var s,l=i(296),u=i(4584),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.continueConfigWithIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.configId||void 0===e.configId)throw new l.RequiredError("configId","Required parameter requestParameters.configId was null or undefined when calling continueConfigWithId.");return i={},n={},[4,this.request({path:"/api/v1/whitelisting/continueConfigWithId/{configId}".replace("{configId}",encodeURIComponent(String(e.configId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return u.WhiteListingExecutionResultFromJSON(e)}))]}}))}))},t.prototype.continueConfigWithId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.continueConfigWithIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.continueInProgressRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/whitelisting/continueInProgress",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new l.TextApiResponse(n)]}}))}))},t.prototype.continueInProgress=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.continueInProgressRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getAdditionalInfoForConfigRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.configId||void 0===e.configId)throw new l.RequiredError("configId","Required parameter requestParameters.configId was null or undefined when calling getAdditionalInfoForConfig.");if(null===e.stepName||void 0===e.stepName)throw new l.RequiredError("stepName","Required parameter requestParameters.stepName was null or undefined when calling getAdditionalInfoForConfig.");return i={},n={},[4,this.request({path:"/api/v1/whitelisting/run_step/{configId}/{stepName}".replace("{configId}",encodeURIComponent(String(e.configId))).replace("{stepName}",encodeURIComponent(String(e.stepName))),method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new l.TextApiResponse(r)]}}))}))},t.prototype.getAdditionalInfoForConfig=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAdditionalInfoForConfigRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAdditionalInfoForConfig1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.createWhitelistConfigRequest||void 0===e.createWhitelistConfigRequest)throw new l.RequiredError("createWhitelistConfigRequest","Required parameter requestParameters.createWhitelistConfigRequest was null or undefined when calling getAdditionalInfoForConfig1.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/whitelisting/createConfig",method:"POST",headers:n,query:i,body:u.CreateWhitelistConfigRequestToJSON(e.createWhitelistConfigRequest)},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return u.WhiteListConfigFromJSON(e)}))]}}))}))},t.prototype.getAdditionalInfoForConfig1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAdditionalInfoForConfig1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAdditionalInfoForConfig2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.configId||void 0===e.configId)throw new l.RequiredError("configId","Required parameter requestParameters.configId was null or undefined when calling getAdditionalInfoForConfig2.");return i={},n={},[4,this.request({path:"/api/v1/whitelisting/additionalInfo/{configId}".replace("{configId}",encodeURIComponent(String(e.configId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return u.WhiteListingAdditionalInfoFromJSON(e)}))]}}))}))},t.prototype.getAdditionalInfoForConfig2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAdditionalInfoForConfig2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getViewModelsForBuildingsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getWhiteListTestsForBuildingsRequest||void 0===e.getWhiteListTestsForBuildingsRequest)throw new l.RequiredError("getWhiteListTestsForBuildingsRequest","Required parameter requestParameters.getWhiteListTestsForBuildingsRequest was null or undefined when calling getViewModelsForBuildings.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/whitelisting/getViewModelsForBuildings",method:"POST",headers:n,query:i,body:u.GetWhiteListTestsForBuildingsRequestToJSON(e.getWhiteListTestsForBuildingsRequest)},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return e.map(u.WhiteListTestDtoFromJSON)}))]}}))}))},t.prototype.getViewModelsForBuildings=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getViewModelsForBuildingsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.initializeWhitelistingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.initializeWhiteListingConfigRequest||void 0===e.initializeWhiteListingConfigRequest)throw new l.RequiredError("initializeWhiteListingConfigRequest","Required parameter requestParameters.initializeWhiteListingConfigRequest was null or undefined when calling initializeWhitelisting.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/whitelisting/initialize",method:"POST",headers:n,query:i,body:u.InitializeWhiteListingConfigRequestToJSON(e.initializeWhiteListingConfigRequest)},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return u.WhiteListingExecutionResultFromJSON(e)}))]}}))}))},t.prototype.initializeWhitelisting=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.initializeWhitelistingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(l.BaseAPI);t.WhiteListingControllerApi=d,(s=t.GetAdditionalInfoForConfigStepNameEnum||(t.GetAdditionalInfoForConfigStepNameEnum={})).Initiated="INITIATED",s.ConfigureSettings="CONFIGURE_SETTINGS",s.TimeZoneVerification="TIME_ZONE_VERIFICATION",s.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",s.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",s.AddAitsToBuilding="ADD_AITS_TO_BUILDING",s.RerunAvailabilities="RERUN_AVAILABILITIES",s.InsertGuestCard="INSERT_GUEST_CARD",s.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",s.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",s.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",s.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",s.AppointmentScheduled="APPOINTMENT_SCHEDULED",s.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",s.RequestCancelTour="REQUEST_CANCEL_TOUR",s.AppointmentCanceled="APPOINTMENT_CANCELED",s.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD"},1827:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityUserControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getOneRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getOne.");return i={},n={},[4,this.request({path:"/api/v2/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserWithCredentialsFromJSON(e)}))]}}))}))},t.prototype.getOne=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getOneRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update.");if(null===e.xagacityUserWithCredentials||void 0===e.xagacityUserWithCredentials)throw new s.RequiredError("xagacityUserWithCredentials","Required parameter requestParameters.xagacityUserWithCredentials was null or undefined when calling update.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v2/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.XagacityUserWithCredentialsToJSON(e.xagacityUserWithCredentials)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserWithCredentialsFromJSON(e)}))]}}))}))},t.prototype.update=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.XagacityUserControllerApi=u},8887:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(8005),t),r(i(2497),t),r(i(8730),t),r(i(9530),t),r(i(8823),t),r(i(4100),t),r(i(1210),t),r(i(3515),t),r(i(5855),t),r(i(4345),t),r(i(2938),t),r(i(5021),t),r(i(9962),t),r(i(8196),t),r(i(5282),t),r(i(4702),t),r(i(683),t),r(i(5977),t),r(i(8242),t),r(i(9714),t),r(i(7659),t),r(i(2311),t),r(i(5827),t),r(i(5334),t),r(i(7043),t),r(i(1092),t),r(i(535),t),r(i(4071),t),r(i(5834),t),r(i(4797),t),r(i(9925),t),r(i(9412),t),r(i(7411),t),r(i(1562),t),r(i(3195),t),r(i(3978),t),r(i(7282),t),r(i(307),t),r(i(4968),t),r(i(2760),t),r(i(8497),t),r(i(1270),t),r(i(6324),t),r(i(8878),t),r(i(5438),t),r(i(917),t),r(i(656),t),r(i(1827),t)},9991:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(296),t),r(i(8887),t),r(i(4584),t)},6662:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdditionalSourceConfiguarionsToJSON=t.AdditionalSourceConfiguarionsFromJSONTyped=t.AdditionalSourceConfiguarionsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{availabilitiesType:n.exists(e,"availabilitiesType")?e.availabilitiesType:void 0,fieldsToBeEnriched:n.exists(e,"fieldsToBeEnriched")?e.fieldsToBeEnriched:void 0}}t.AdditionalSourceConfiguarionsFromJSON=function(e){return r(e)},t.AdditionalSourceConfiguarionsFromJSONTyped=r,t.AdditionalSourceConfiguarionsToJSON=function(e){if(void 0!==e)return null===e?null:{availabilitiesType:e.availabilitiesType,fieldsToBeEnriched:e.fieldsToBeEnriched}}},2322:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddressToJSON=t.AddressFromJSONTyped=t.AddressFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{city:n.exists(e,"city")?e.city:void 0,house:n.exists(e,"house")?e.house:void 0,neighborhood:n.exists(e,"neighborhood")?e.neighborhood:void 0,raw:n.exists(e,"raw")?e.raw:void 0,state:n.exists(e,"state")?e.state:void 0,street:n.exists(e,"street")?e.street:void 0,zip:n.exists(e,"zip")?e.zip:void 0}}t.AddressFromJSON=function(e){return r(e)},t.AddressFromJSONTyped=r,t.AddressToJSON=function(e){if(void 0!==e)return null===e?null:{city:e.city,house:e.house,neighborhood:e.neighborhood,raw:e.raw,state:e.state,street:e.street,zip:e.zip}}},1961:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AiAssistantStubInfoToJSON=t.AiAssistantStubInfoFromJSONTyped=t.AiAssistantStubInfoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:e.id,buildingId:e.buildingId,crmType:e.crmType,email:n.exists(e,"email")?e.email:void 0,firstName:n.exists(e,"firstName")?e.firstName:void 0,lastName:n.exists(e,"lastName")?e.lastName:void 0}}t.AiAssistantStubInfoFromJSON=function(e){return r(e)},t.AiAssistantStubInfoFromJSONTyped=r,t.AiAssistantStubInfoToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,crmType:e.crmType,email:e.email,firstName:e.firstName,lastName:e.lastName}}},818:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlertQueueInfoToJSON=t.AlertQueueInfoFromJSONTyped=t.AlertQueueInfoFromJSON=t.AlertQueueInfoConversationTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{firstName:r.exists(e,"firstName")?e.firstName:void 0,lastName:r.exists(e,"lastName")?e.lastName:void 0,email:r.exists(e,"email")?e.email:void 0,phoneNumber:r.exists(e,"phoneNumber")?e.phoneNumber:void 0,handoffStatus:r.exists(e,"handoffStatus")?e.handoffStatus:void 0,dateUpdated:r.exists(e,"dateUpdated")?new Date(e.dateUpdated):void 0,conversationType:r.exists(e,"conversationType")?e.conversationType:void 0,alertType:r.exists(e,"alertType")?e.alertType:void 0,contextId:r.exists(e,"contextId")?e.contextId:void 0,conversationKey:r.exists(e,"conversationKey")?e.conversationKey:void 0,failureReason:r.exists(e,"failureReason")?e.failureReason:void 0}}(n=t.AlertQueueInfoConversationTypeEnum||(t.AlertQueueInfoConversationTypeEnum={})).Email="EMAIL",n.Phone="PHONE",t.AlertQueueInfoFromJSON=function(e){return o(e)},t.AlertQueueInfoFromJSONTyped=o,t.AlertQueueInfoToJSON=function(e){if(void 0!==e)return null===e?null:{firstName:e.firstName,lastName:e.lastName,email:e.email,phoneNumber:e.phoneNumber,handoffStatus:e.handoffStatus,dateUpdated:void 0===e.dateUpdated?void 0:e.dateUpdated.toISOString(),conversationType:e.conversationType,alertType:e.alertType,contextId:e.contextId,conversationKey:e.conversationKey,failureReason:e.failureReason}}},6140:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlertQueueMessageToJSON=t.AlertQueueMessageFromJSONTyped=t.AlertQueueMessageFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{sender:n.exists(e,"sender")?e.sender:void 0,message:n.exists(e,"message")?e.message:void 0,timeSent:n.exists(e,"timeSent")?new Date(e.timeSent):void 0,sentByElise:n.exists(e,"sentByElise")?e.sentByElise:void 0}}t.AlertQueueMessageFromJSON=function(e){return r(e)},t.AlertQueueMessageFromJSONTyped=r,t.AlertQueueMessageToJSON=function(e){if(void 0!==e)return null===e?null:{sender:e.sender,message:e.message,timeSent:void 0===e.timeSent?void 0:e.timeSent.toISOString(),sentByElise:e.sentByElise}}},5246:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlternativeGeoAddressToJSON=t.AlternativeGeoAddressFromJSONTyped=t.AlternativeGeoAddressFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{alternativeIlsAdress:n.exists(e,"alternativeIlsAdress")?e.alternativeIlsAdress:void 0,alternativeIlsAddressGeoFormat:n.exists(e,"alternativeIlsAddressGeoFormat")?e.alternativeIlsAddressGeoFormat:void 0}}t.AlternativeGeoAddressFromJSON=function(e){return r(e)},t.AlternativeGeoAddressFromJSONTyped=r,t.AlternativeGeoAddressToJSON=function(e){if(void 0!==e)return null===e?null:{alternativeIlsAdress:e.alternativeIlsAdress,alternativeIlsAddressGeoFormat:e.alternativeIlsAddressGeoFormat}}},5556:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlternativeILSAddressGeoFormatToJSON=t.AlternativeILSAddressGeoFormatFromJSONTyped=t.AlternativeILSAddressGeoFormatFromJSON=void 0;var n=i(296),r=i(5246);function o(e,t){return null==e?e:{alternativeGeoAdresses:n.exists(e,"alternativeGeoAdresses")?e.alternativeGeoAdresses.map(r.AlternativeGeoAddressFromJSON):void 0}}t.AlternativeILSAddressGeoFormatFromJSON=function(e){return o(e)},t.AlternativeILSAddressGeoFormatFromJSONTyped=o,t.AlternativeILSAddressGeoFormatToJSON=function(e){if(void 0!==e)return null===e?null:{alternativeGeoAdresses:void 0===e.alternativeGeoAdresses?void 0:e.alternativeGeoAdresses.map(r.AlternativeGeoAddressToJSON)}}},7455:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnyoneHomeCredentialsToJSON=t.AnyoneHomeCredentialsFromJSONTyped=t.AnyoneHomeCredentialsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,domain:n.exists(e,"domain")?e.domain:void 0,userName:n.exists(e,"userName")?e.userName:void 0,password:n.exists(e,"password")?e.password:void 0,apiKey:n.exists(e,"apiKey")?e.apiKey:void 0,leasingAgentId:n.exists(e,"leasingAgentId")?e.leasingAgentId:void 0}}t.AnyoneHomeCredentialsFromJSON=function(e){return r(e)},t.AnyoneHomeCredentialsFromJSONTyped=r,t.AnyoneHomeCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,domain:e.domain,userName:e.userName,password:e.password,apiKey:e.apiKey,leasingAgentId:e.leasingAgentId}}},3617:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AppointmentHoursToJSON=t.AppointmentHoursFromJSONTyped=t.AppointmentHoursFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{daysOfWeek:n.exists(e,"daysOfWeek")?e.daysOfWeek:void 0,startTime:n.exists(e,"startTime")?e.startTime:void 0,endTime:n.exists(e,"endTime")?e.endTime:void 0,lastAppointmentStartTime:n.exists(e,"lastAppointmentStartTime")?e.lastAppointmentStartTime:void 0,lastStartTimeForTheSameDay:n.exists(e,"lastStartTimeForTheSameDay")?e.lastStartTimeForTheSameDay:void 0,daysOfWeekString:n.exists(e,"daysOfWeekString")?e.daysOfWeekString:void 0,specialAppointmentDuration:n.exists(e,"specialAppointmentDuration")?e.specialAppointmentDuration:void 0,maxNumberOfAppointments:n.exists(e,"maxNumberOfAppointments")?e.maxNumberOfAppointments:void 0,openHouseSpecific:n.exists(e,"openHouseSpecific")?e.openHouseSpecific:void 0,specificDate:n.exists(e,"specificDate")?new Date(e.specificDate):void 0}}t.AppointmentHoursFromJSON=function(e){return r(e)},t.AppointmentHoursFromJSONTyped=r,t.AppointmentHoursToJSON=function(e){if(void 0!==e)return null===e?null:{daysOfWeek:e.daysOfWeek,startTime:e.startTime,endTime:e.endTime,lastAppointmentStartTime:e.lastAppointmentStartTime,lastStartTimeForTheSameDay:e.lastStartTimeForTheSameDay,daysOfWeekString:e.daysOfWeekString,specialAppointmentDuration:e.specialAppointmentDuration,maxNumberOfAppointments:e.maxNumberOfAppointments,openHouseSpecific:e.openHouseSpecific,specificDate:void 0===e.specificDate?void 0:e.specificDate.toISOString().substr(0,10)}}},67:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AssociateLeadRequestDtoToJSON=t.AssociateLeadRequestDtoFromJSONTyped=t.AssociateLeadRequestDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,email:n.exists(e,"email")?e.email:void 0}}t.AssociateLeadRequestDtoFromJSON=function(e){return r(e)},t.AssociateLeadRequestDtoFromJSONTyped=r,t.AssociateLeadRequestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,email:e.email}}},1234:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AttachmentToJSON=t.AttachmentFromJSONTyped=t.AttachmentFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{emailClientName:n.exists(e,"emailClientName")?e.emailClientName:void 0,rawData:n.exists(e,"rawData")?e.rawData:void 0,tempFile:n.exists(e,"tempFile")?e.tempFile:void 0,amazonKeyName:n.exists(e,"amazonKeyName")?e.amazonKeyName:void 0,fileType:n.exists(e,"fileType")?e.fileType:void 0,fileName:n.exists(e,"fileName")?e.fileName:void 0,fileUrl:n.exists(e,"fileUrl")?e.fileUrl:void 0,attachmentName:n.exists(e,"attachmentName")?e.attachmentName:void 0}}t.AttachmentFromJSON=function(e){return r(e)},t.AttachmentFromJSONTyped=r,t.AttachmentToJSON=function(e){if(void 0!==e)return null===e?null:{emailClientName:e.emailClientName,rawData:e.rawData,tempFile:e.tempFile,amazonKeyName:e.amazonKeyName,fileType:e.fileType,fileName:e.fileName,fileUrl:e.fileUrl,attachmentName:e.attachmentName}}},1995:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AvailabilitiesPreferencesToJSON=t.AvailabilitiesPreferencesFromJSONTyped=t.AvailabilitiesPreferencesFromJSON=void 0;var n=i(296),r=i(6662);function o(e,t){return null==e?e:{timesToRunInCronFormat:n.exists(e,"timesToRunInCronFormat")?e.timesToRunInCronFormat:void 0,additionalSourceConfigurations:n.exists(e,"additionalSourceConfigurations")?e.additionalSourceConfigurations.map(r.AdditionalSourceConfiguarionsFromJSON):void 0}}t.AvailabilitiesPreferencesFromJSON=function(e){return o(e)},t.AvailabilitiesPreferencesFromJSONTyped=o,t.AvailabilitiesPreferencesToJSON=function(e){if(void 0!==e)return null===e?null:{timesToRunInCronFormat:e.timesToRunInCronFormat,additionalSourceConfigurations:void 0===e.additionalSourceConfigurations?void 0:e.additionalSourceConfigurations.map(r.AdditionalSourceConfiguarionsToJSON)}}},3618:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BookTourByStateIdDtoToJSON=t.BookTourByStateIdDtoFromJSONTyped=t.BookTourByStateIdDtoFromJSON=t.BookTourByStateIdDtoTourTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{mcId:r.exists(e,"mcId")?e.mcId:void 0,stateId:r.exists(e,"stateId")?e.stateId:void 0,buildingId:r.exists(e,"buildingId")?e.buildingId:void 0,tourType:r.exists(e,"tourType")?e.tourType:void 0,startTime:r.exists(e,"startTime")?new Date(e.startTime):void 0,endTime:r.exists(e,"endTime")?new Date(e.endTime):void 0,useLegacyContext:r.exists(e,"useLegacyContext")?e.useLegacyContext:void 0,sms:r.exists(e,"sms")?e.sms:void 0}}(n=t.BookTourByStateIdDtoTourTypeEnum||(t.BookTourByStateIdDtoTourTypeEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.BookTourByStateIdDtoFromJSON=function(e){return o(e)},t.BookTourByStateIdDtoFromJSONTyped=o,t.BookTourByStateIdDtoToJSON=function(e){if(void 0!==e)return null===e?null:{mcId:e.mcId,stateId:e.stateId,buildingId:e.buildingId,tourType:e.tourType,startTime:void 0===e.startTime?void 0:e.startTime.toISOString(),endTime:void 0===e.endTime?void 0:e.endTime.toISOString(),useLegacyContext:e.useLegacyContext,sms:e.sms}}},2160:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BookTourDtoToJSON=t.BookTourDtoFromJSONTyped=t.BookTourDtoFromJSON=t.BookTourDtoTourTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{contextId:r.exists(e,"contextId")?e.contextId:void 0,buildingId:r.exists(e,"buildingId")?e.buildingId:void 0,tourType:r.exists(e,"tourType")?e.tourType:void 0,startTime:r.exists(e,"startTime")?new Date(e.startTime):void 0,endTime:r.exists(e,"endTime")?new Date(e.endTime):void 0}}(n=t.BookTourDtoTourTypeEnum||(t.BookTourDtoTourTypeEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.BookTourDtoFromJSON=function(e){return o(e)},t.BookTourDtoFromJSONTyped=o,t.BookTourDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId,tourType:e.tourType,startTime:void 0===e.startTime?void 0:e.startTime.toISOString(),endTime:void 0===e.endTime?void 0:e.endTime.toISOString()}}},5604:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingDetailsToJSON=t.BuildingDetailsFromJSONTyped=t.BuildingDetailsFromJSON=t.BuildingDetailsTourNotificationEmailsModeEnum=t.BuildingDetailsTourTypePriorityEnum=t.BuildingDetailsVirtualTourTypeEnum=t.BuildingDetailsLeasingOfficeSetupTypeEnum=void 0;var n,r,o,a,s=i(296),l=i(5556);function u(e,t){return null==e?e:{id:s.exists(e,"id")?e.id:void 0,managementCompanyId:s.exists(e,"managementCompanyId")?e.managementCompanyId:void 0,organizationId:s.exists(e,"organizationId")?e.organizationId:void 0,active:s.exists(e,"active")?e.active:void 0,handoffForwardToEmails:s.exists(e,"handoffForwardToEmails")?e.handoffForwardToEmails:void 0,responseCcEmails:s.exists(e,"responseCcEmails")?e.responseCcEmails:void 0,responseBccEmails:s.exists(e,"responseBccEmails")?e.responseBccEmails:void 0,associateCalendarId:s.exists(e,"associateCalendarId")?e.associateCalendarId:void 0,buildingName:s.exists(e,"buildingName")?e.buildingName:void 0,address1:s.exists(e,"address1")?e.address1:void 0,address2:s.exists(e,"address2")?e.address2:void 0,address3:s.exists(e,"address3")?e.address3:void 0,alternativeILSAddresses:s.exists(e,"alternativeILSAddresses")?e.alternativeILSAddresses:void 0,city:s.exists(e,"city")?e.city:void 0,state:s.exists(e,"state")?e.state:void 0,postalCode:s.exists(e,"postalCode")?e.postalCode:void 0,crossStreets:s.exists(e,"crossStreets")?e.crossStreets:void 0,neighborhood:s.exists(e,"neighborhood")?e.neighborhood:void 0,nearbyTransportation:s.exists(e,"nearbyTransportation")?e.nearbyTransportation:void 0,buildingOwnership:s.exists(e,"buildingOwnership")?e.buildingOwnership:void 0,buildingType:s.exists(e,"buildingType")?e.buildingType:void 0,totalUnits:s.exists(e,"totalUnits")?e.totalUnits:void 0,totalFloors:s.exists(e,"totalFloors")?e.totalFloors:void 0,yearBuilt:s.exists(e,"yearBuilt")?e.yearBuilt:void 0,block:s.exists(e,"block")?e.block:void 0,lot:s.exists(e,"lot")?e.lot:void 0,schoolDistrict:s.exists(e,"schoolDistrict")?e.schoolDistrict:void 0,communityDistrict:s.exists(e,"communityDistrict")?e.communityDistrict:void 0,newConstruction:s.exists(e,"newConstruction")?e.newConstruction:void 0,preWarBuilding:s.exists(e,"preWarBuilding")?e.preWarBuilding:void 0,brownstone:s.exists(e,"brownstone")?e.brownstone:void 0,greenBuilding:s.exists(e,"greenBuilding")?e.greenBuilding:void 0,elevator:s.exists(e,"elevator")?e.elevator:void 0,freightElevator:s.exists(e,"freightElevator")?e.freightElevator:void 0,parking:s.exists(e,"parking")?e.parking:void 0,petPolicy:s.exists(e,"petPolicy")?e.petPolicy:void 0,petNumberLimit:s.exists(e,"petNumberLimit")?e.petNumberLimit:void 0,petWeightLimit:s.exists(e,"petWeightLimit")?e.petWeightLimit:void 0,petFeeOrDeposit:s.exists(e,"petFeeOrDeposit")?e.petFeeOrDeposit:void 0,utilitiesIncluded:s.exists(e,"utilitiesIncluded")?e.utilitiesIncluded:void 0,utilitiesNotIncluded:s.exists(e,"utilitiesNotIncluded")?e.utilitiesNotIncluded:void 0,leaseTermsAccepted:s.exists(e,"leaseTermsAccepted")?e.leaseTermsAccepted:void 0,minLeaseTermAccepted:s.exists(e,"minLeaseTermAccepted")?e.minLeaseTermAccepted:void 0,furnishedOffered:s.exists(e,"furnishedOffered")?e.furnishedOffered:void 0,furnishedUnitsPolicy:s.exists(e,"furnishedUnitsPolicy")?e.furnishedUnitsPolicy:void 0,internationalStudentRequirements:s.exists(e,"internationalStudentRequirements")?e.internationalStudentRequirements:void 0,amenitiesFee:s.exists(e,"amenitiesFee")?e.amenitiesFee:void 0,nonSmoking:s.exists(e,"nonSmoking")?e.nonSmoking:void 0,piedATerreAllowed:s.exists(e,"piedATerreAllowed")?e.piedATerreAllowed:void 0,diplomatsOk:s.exists(e,"diplomatsOk")?e.diplomatsOk:void 0,corporateLeasesAccepted:s.exists(e,"corporateLeasesAccepted")?e.corporateLeasesAccepted:void 0,shortTermAllowed:s.exists(e,"shortTermAllowed")?e.shortTermAllowed:void 0,doorman:s.exists(e,"doorman")?e.doorman:void 0,intercom:s.exists(e,"intercom")?e.intercom:void 0,liveInSuper:s.exists(e,"liveInSuper")?e.liveInSuper:void 0,concierge:s.exists(e,"concierge")?e.concierge:void 0,laundryInBuilding:s.exists(e,"laundryInBuilding")?e.laundryInBuilding:void 0,packageReceiving:s.exists(e,"packageReceiving")?e.packageReceiving:void 0,gym:s.exists(e,"gym")?e.gym:void 0,storage:s.exists(e,"storage")?e.storage:void 0,bicycleRoom:s.exists(e,"bicycleRoom")?e.bicycleRoom:void 0,lounge:s.exists(e,"lounge")?e.lounge:void 0,clubHouse:s.exists(e,"clubHouse")?e.clubHouse:void 0,businessCenter:s.exists(e,"businessCenter")?e.businessCenter:void 0,outdoorSpace:s.exists(e,"outdoorSpace")?e.outdoorSpace:void 0,roofDeck:s.exists(e,"roofDeck")?e.roofDeck:void 0,courtyard:s.exists(e,"courtyard")?e.courtyard:void 0,childrenPlayroom:s.exists(e,"childrenPlayroom")?e.childrenPlayroom:void 0,nursery:s.exists(e,"nursery")?e.nursery:void 0,maidService:s.exists(e,"maidService")?e.maidService:void 0,pool:s.exists(e,"pool")?e.pool:void 0,wheelchairAccess:s.exists(e,"wheelchairAccess")?e.wheelchairAccess:void 0,guarantorTypesAccepted:s.exists(e,"guarantorTypesAccepted")?e.guarantorTypesAccepted:void 0,thirdPartyGuarantorTypesAccepted:s.exists(e,"thirdPartyGuarantorTypesAccepted")?e.thirdPartyGuarantorTypesAccepted:void 0,noCreditQualificationAlternative:s.exists(e,"noCreditQualificationAlternative")?e.noCreditQualificationAlternative:void 0,flexWallPolicy:s.exists(e,"flexWallPolicy")?e.flexWallPolicy:void 0,leaseholderApplicationFee:s.exists(e,"leaseholderApplicationFee")?e.leaseholderApplicationFee:void 0,occupantApplicationFee:s.exists(e,"occupantApplicationFee")?e.occupantApplicationFee:void 0,guarantorApplicationFee:s.exists(e,"guarantorApplicationFee")?e.guarantorApplicationFee:void 0,tenantIncomeRequirementRentMultiplier:s.exists(e,"tenantIncomeRequirementRentMultiplier")?e.tenantIncomeRequirementRentMultiplier:void 0,guarantorIncomeRequirementRentMultiplier:s.exists(e,"guarantorIncomeRequirementRentMultiplier")?e.guarantorIncomeRequirementRentMultiplier:void 0,incomeRequirementRentMultiplierTimePeriod:s.exists(e,"incomeRequirementRentMultiplierTimePeriod")?e.incomeRequirementRentMultiplierTimePeriod:void 0,leaseholderMinimumCreditScoreRequirement:s.exists(e,"leaseholderMinimumCreditScoreRequirement")?e.leaseholderMinimumCreditScoreRequirement:void 0,guarantorMinimumCreditScoreRequirement:s.exists(e,"guarantorMinimumCreditScoreRequirement")?e.guarantorMinimumCreditScoreRequirement:void 0,leaseholderApplicationDocumentsRequired:s.exists(e,"leaseholderApplicationDocumentsRequired")?e.leaseholderApplicationDocumentsRequired:void 0,selfEmployedApplicationDocumentsRequired:s.exists(e,"selfEmployedApplicationDocumentsRequired")?e.selfEmployedApplicationDocumentsRequired:void 0,guarantorApplicationDocumentsRequired:s.exists(e,"guarantorApplicationDocumentsRequired")?e.guarantorApplicationDocumentsRequired:void 0,guarantorsAccepted:s.exists(e,"guarantorsAccepted")?e.guarantorsAccepted:void 0,financialsInsufficientAlternative:s.exists(e,"financialsInsufficientAlternative")?e.financialsInsufficientAlternative:void 0,prepaymentPolicy:s.exists(e,"prepaymentPolicy")?e.prepaymentPolicy:void 0,rentRequiredOnLeaseSigning:s.exists(e,"rentRequiredOnLeaseSigning")?e.rentRequiredOnLeaseSigning:void 0,securityDepositRentMultiplier:s.exists(e,"securityDepositRentMultiplier")?e.securityDepositRentMultiplier:void 0,paymentFormsAccepted:s.exists(e,"paymentFormsAccepted")?e.paymentFormsAccepted:void 0,clientEmail:s.exists(e,"clientEmail")?e.clientEmail:void 0,description:s.exists(e,"description")?e.description:void 0,notes:s.exists(e,"notes")?e.notes:void 0,leasingOfficeHours:s.exists(e,"leasingOfficeHours")?e.leasingOfficeHours:void 0,occupiedUnitsShowingHours:s.exists(e,"occupiedUnitsShowingHours")?e.occupiedUnitsShowingHours:void 0,internalNotes:s.exists(e,"internalNotes")?e.internalNotes:void 0,leasingPhoneNumber:s.exists(e,"leasingPhoneNumber")?e.leasingPhoneNumber:void 0,callCenterNumber:s.exists(e,"callCenterNumber")?e.callCenterNumber:void 0,buildingWebsiteUrl:s.exists(e,"buildingWebsiteUrl")?e.buildingWebsiteUrl:void 0,applicationLink:s.exists(e,"applicationLink")?e.applicationLink:void 0,geoAddress:s.exists(e,"geoAddress")?e.geoAddress:void 0,googleMapsUrl:s.exists(e,"googleMapsUrl")?e.googleMapsUrl:void 0,alerts:s.exists(e,"alerts")?e.alerts:void 0,rentComputeType:s.exists(e,"rentComputeType")?e.rentComputeType:void 0,autosendActive:s.exists(e,"autosendActive")?e.autosendActive:void 0,advancedMoveInAllowenceInDays:s.exists(e,"advancedMoveInAllowenceInDays")?e.advancedMoveInAllowenceInDays:void 0,alternativeBuildingNames:s.exists(e,"alternativeBuildingNames")?e.alternativeBuildingNames:void 0,externalIds:s.exists(e,"externalIds")?e.externalIds:void 0,externalCrmId:s.exists(e,"externalCrmId")?e.externalCrmId:void 0,defaultAvailabilityQuoteMatchMoveInDate:s.exists(e,"defaultAvailabilityQuoteMatchMoveInDate")?e.defaultAvailabilityQuoteMatchMoveInDate:void 0,leaseRenewalNoticeInDays:s.exists(e,"leaseRenewalNoticeInDays")?e.leaseRenewalNoticeInDays:void 0,rentQuoteFormat:s.exists(e,"rentQuoteFormat")?e.rentQuoteFormat:void 0,rentWithIncentivesQuoteFormat:s.exists(e,"rentWithIncentivesQuoteFormat")?e.rentWithIncentivesQuoteFormat:void 0,isPartOfComplex:s.exists(e,"isPartOfComplex")?e.isPartOfComplex:void 0,alternativeILSAddressGeoFormat:s.exists(e,"alternativeILSAddressGeoFormat")?l.AlternativeILSAddressGeoFormatFromJSON(e.alternativeILSAddressGeoFormat):void 0,effectiveRentComputeType:s.exists(e,"effectiveRentComputeType")?e.effectiveRentComputeType:void 0,maxLeaseTermAccepted:s.exists(e,"maxLeaseTermAccepted")?e.maxLeaseTermAccepted:void 0,parkingInformation:s.exists(e,"parkingInformation")?e.parkingInformation:void 0,storageFee:s.exists(e,"storageFee")?e.storageFee:void 0,incentivesProperlyConnected:s.exists(e,"incentivesProperlyConnected")?e.incentivesProperlyConnected:void 0,electricCompany:s.exists(e,"electricCompany")?e.electricCompany:void 0,gasCompany:s.exists(e,"gasCompany")?e.gasCompany:void 0,telephoneCompany:s.exists(e,"telephoneCompany")?e.telephoneCompany:void 0,televisionCompany:s.exists(e,"televisionCompany")?e.televisionCompany:void 0,waterCompany:s.exists(e,"waterCompany")?e.waterCompany:void 0,internetCompany:s.exists(e,"internetCompany")?e.internetCompany:void 0,localHospital:s.exists(e,"localHospital")?e.localHospital:void 0,localSchoolDistrict:s.exists(e,"localSchoolDistrict")?e.localSchoolDistrict:void 0,localElementarySchool:s.exists(e,"localElementarySchool")?e.localElementarySchool:void 0,localMiddleSchool:s.exists(e,"localMiddleSchool")?e.localMiddleSchool:void 0,localHighSchool:s.exists(e,"localHighSchool")?e.localHighSchool:void 0,localShoppingCenter:s.exists(e,"localShoppingCenter")?e.localShoppingCenter:void 0,localGroceryStore:s.exists(e,"localGroceryStore")?e.localGroceryStore:void 0,closestInterstates:s.exists(e,"closestInterstates")?e.closestInterstates:void 0,buildingPicturesUrl:s.exists(e,"buildingPicturesUrl")?e.buildingPicturesUrl:void 0,buildingFloorPlansUrl:s.exists(e,"buildingFloorPlansUrl")?e.buildingFloorPlansUrl:void 0,nonexistentLayouts:s.exists(e,"nonexistentLayouts")?e.nonexistentLayouts:void 0,offeredLayouts:s.exists(e,"offeredLayouts")?e.offeredLayouts:void 0,avoidQuotingPrices:s.exists(e,"avoidQuotingPrices")?e.avoidQuotingPrices:void 0,excludeNotRentReadyUnit:s.exists(e,"excludeNotRentReadyUnit")?e.excludeNotRentReadyUnit:void 0,flexWallsAllowed:s.exists(e,"flexWallsAllowed")?e.flexWallsAllowed:void 0,petsAccepted:s.exists(e,"petsAccepted")?e.petsAccepted:void 0,guarantorsAcceptedSwitch:s.exists(e,"guarantorsAcceptedSwitch")?e.guarantorsAcceptedSwitch:void 0,thirdPartyGuarantorsAccepted:s.exists(e,"thirdPartyGuarantorsAccepted")?e.thirdPartyGuarantorsAccepted:void 0,alwaysScheduleAppointments:s.exists(e,"alwaysScheduleAppointments")?e.alwaysScheduleAppointments:void 0,leasingOfficeOnsite:s.exists(e,"leasingOfficeOnsite")?e.leasingOfficeOnsite:void 0,building3dMediaUrl:s.exists(e,"building3dMediaUrl")?e.building3dMediaUrl:void 0,dailyreport:s.exists(e,"dailyreport")?e.dailyreport:void 0,dailyReportEmails:s.exists(e,"dailyReportEmails")?e.dailyReportEmails:void 0,nearbySubways:s.exists(e,"nearbySubways")?e.nearbySubways:void 0,bedroomTypes:s.exists(e,"bedroomTypes")?e.bedroomTypes:void 0,leasingBrochureUrl:s.exists(e,"leasingBrochureUrl")?e.leasingBrochureUrl:void 0,confidenceVariable:s.exists(e,"confidenceVariable")?e.confidenceVariable:void 0,textForwardToEmails:s.exists(e,"textForwardToEmails")?e.textForwardToEmails:void 0,synchronizationStatus:s.exists(e,"synchronizationStatus")?e.synchronizationStatus:void 0,omitDesiredFloorPlan:s.exists(e,"omitDesiredFloorPlan")?e.omitDesiredFloorPlan:void 0,pickingNewGuestCards:s.exists(e,"pickingNewGuestCards")?e.pickingNewGuestCards:void 0,showNotRespondingLeadsInReport:s.exists(e,"showNotRespondingLeadsInReport")?e.showNotRespondingLeadsInReport:void 0,leasingOfficeSetupType:s.exists(e,"leasingOfficeSetupType")?e.leasingOfficeSetupType:void 0,firstContactReasonRequired:s.exists(e,"firstContactReasonRequired")?e.firstContactReasonRequired:void 0,firstContactReason:s.exists(e,"firstContactReason")?e.firstContactReason:void 0,emailSignature:s.exists(e,"emailSignature")?e.emailSignature:void 0,tourDuration:s.exists(e,"tourDuration")?e.tourDuration:void 0,inPersonToursAllowed:s.exists(e,"inPersonToursAllowed")?e.inPersonToursAllowed:void 0,selfGuidedToursEnabled:s.exists(e,"selfGuidedToursEnabled")?e.selfGuidedToursEnabled:void 0,virtualTourType:s.exists(e,"virtualTourType")?e.virtualTourType:void 0,virtualTourPlatforms:s.exists(e,"virtualTourPlatforms")?e.virtualTourPlatforms:void 0,noUnitSelfGuidedTourAllowed:s.exists(e,"noUnitSelfGuidedTourAllowed")?e.noUnitSelfGuidedTourAllowed:void 0,sgSchedulingBasedOnNormalAppointments:s.exists(e,"sgSchedulingBasedOnNormalAppointments")?e.sgSchedulingBasedOnNormalAppointments:void 0,tourTypePriority:s.exists(e,"tourTypePriority")?e.tourTypePriority:void 0,tourNotificationEmailsMode:s.exists(e,"tourNotificationEmailsMode")?e.tourNotificationEmailsMode:void 0,showByOpenHouseOnly:s.exists(e,"showByOpenHouseOnly")?e.showByOpenHouseOnly:void 0,showUnitsWithPendingApplication:s.exists(e,"showUnitsWithPendingApplication")?e.showUnitsWithPendingApplication:void 0,showOccupiedUnitsWithPendingApplication:s.exists(e,"showOccupiedUnitsWithPendingApplication")?e.showOccupiedUnitsWithPendingApplication:void 0,confirmAppointmentsOccupiedUnits:s.exists(e,"confirmAppointmentsOccupiedUnits")?e.confirmAppointmentsOccupiedUnits:void 0,confirmAppointmentsRenovatingUnits:s.exists(e,"confirmAppointmentsRenovatingUnits")?e.confirmAppointmentsRenovatingUnits:void 0,occupiedUnitsAdvancedNoticeInHours:s.exists(e,"occupiedUnitsAdvancedNoticeInHours")?e.occupiedUnitsAdvancedNoticeInHours:void 0,prioritizeShowingVacantUnits:s.exists(e,"prioritizeShowingVacantUnits")?e.prioritizeShowingVacantUnits:void 0,showOccupiedUnits:s.exists(e,"showOccupiedUnits")?e.showOccupiedUnits:void 0,whiteListActivated:s.exists(e,"whiteListActivated")?e.whiteListActivated:void 0,appointmentMeetingLocation:s.exists(e,"appointmentMeetingLocation")?e.appointmentMeetingLocation:void 0,appointmentMeetingPointSpecific:s.exists(e,"appointmentMeetingPointSpecific")?e.appointmentMeetingPointSpecific:void 0,appointmentDirections:s.exists(e,"appointmentDirections")?e.appointmentDirections:void 0,appointmentAdditionalDirections:s.exists(e,"appointmentAdditionalDirections")?e.appointmentAdditionalDirections:void 0,launchDateTime:s.exists(e,"launchDateTime")?new Date(e.launchDateTime):void 0,clientRequiresShowEvent:s.exists(e,"clientRequiresShowEvent")?e.clientRequiresShowEvent:void 0,tempLeasingOfficeHoursAsJson:s.exists(e,"tempLeasingOfficeHoursAsJson")?e.tempLeasingOfficeHoursAsJson:void 0,calendarId:s.exists(e,"calendarId")?e.calendarId:void 0,effectiveHandoffForwardToEmails:s.exists(e,"effectiveHandoffForwardToEmails")?e.effectiveHandoffForwardToEmails:void 0}}(a=t.BuildingDetailsLeasingOfficeSetupTypeEnum||(t.BuildingDetailsLeasingOfficeSetupTypeEnum={})).SingleBuilding="SINGLE_BUILDING",a.CentralLeasingOfficeAsSingleBuilding="CENTRAL_LEASING_OFFICE_AS_SINGLE_BUILDING",(o=t.BuildingDetailsVirtualTourTypeEnum||(t.BuildingDetailsVirtualTourTypeEnum={})).NotEnabled="NOT_ENABLED",o.SelfManaged="SELF_MANAGED",o.Whereby="WHEREBY",(r=t.BuildingDetailsTourTypePriorityEnum||(t.BuildingDetailsTourTypePriorityEnum={})).Unknown="UNKNOWN",r.SelfGuided="SELF_GUIDED",r.VirtualShowing="VIRTUAL_SHOWING",r.WithAgent="WITH_AGENT",r.MediaTour="MEDIA_TOUR",(n=t.BuildingDetailsTourNotificationEmailsModeEnum||(t.BuildingDetailsTourNotificationEmailsModeEnum={})).NoNotification="NO_NOTIFICATION",n.AllViewings="ALL_VIEWINGS",n.SameDayViewings="SAME_DAY_VIEWINGS",t.BuildingDetailsFromJSON=function(e){return u(e)},t.BuildingDetailsFromJSONTyped=u,t.BuildingDetailsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,managementCompanyId:e.managementCompanyId,organizationId:e.organizationId,active:e.active,handoffForwardToEmails:e.handoffForwardToEmails,responseCcEmails:e.responseCcEmails,responseBccEmails:e.responseBccEmails,associateCalendarId:e.associateCalendarId,buildingName:e.buildingName,address1:e.address1,address2:e.address2,address3:e.address3,alternativeILSAddresses:e.alternativeILSAddresses,city:e.city,state:e.state,postalCode:e.postalCode,crossStreets:e.crossStreets,neighborhood:e.neighborhood,nearbyTransportation:e.nearbyTransportation,buildingOwnership:e.buildingOwnership,buildingType:e.buildingType,totalUnits:e.totalUnits,totalFloors:e.totalFloors,yearBuilt:e.yearBuilt,block:e.block,lot:e.lot,schoolDistrict:e.schoolDistrict,communityDistrict:e.communityDistrict,newConstruction:e.newConstruction,preWarBuilding:e.preWarBuilding,brownstone:e.brownstone,greenBuilding:e.greenBuilding,elevator:e.elevator,freightElevator:e.freightElevator,parking:e.parking,petPolicy:e.petPolicy,petNumberLimit:e.petNumberLimit,petWeightLimit:e.petWeightLimit,petFeeOrDeposit:e.petFeeOrDeposit,utilitiesIncluded:e.utilitiesIncluded,utilitiesNotIncluded:e.utilitiesNotIncluded,leaseTermsAccepted:e.leaseTermsAccepted,minLeaseTermAccepted:e.minLeaseTermAccepted,furnishedOffered:e.furnishedOffered,furnishedUnitsPolicy:e.furnishedUnitsPolicy,internationalStudentRequirements:e.internationalStudentRequirements,amenitiesFee:e.amenitiesFee,nonSmoking:e.nonSmoking,piedATerreAllowed:e.piedATerreAllowed,diplomatsOk:e.diplomatsOk,corporateLeasesAccepted:e.corporateLeasesAccepted,shortTermAllowed:e.shortTermAllowed,doorman:e.doorman,intercom:e.intercom,liveInSuper:e.liveInSuper,concierge:e.concierge,laundryInBuilding:e.laundryInBuilding,packageReceiving:e.packageReceiving,gym:e.gym,storage:e.storage,bicycleRoom:e.bicycleRoom,lounge:e.lounge,clubHouse:e.clubHouse,businessCenter:e.businessCenter,outdoorSpace:e.outdoorSpace,roofDeck:e.roofDeck,courtyard:e.courtyard,childrenPlayroom:e.childrenPlayroom,nursery:e.nursery,maidService:e.maidService,pool:e.pool,wheelchairAccess:e.wheelchairAccess,guarantorTypesAccepted:e.guarantorTypesAccepted,thirdPartyGuarantorTypesAccepted:e.thirdPartyGuarantorTypesAccepted,noCreditQualificationAlternative:e.noCreditQualificationAlternative,flexWallPolicy:e.flexWallPolicy,leaseholderApplicationFee:e.leaseholderApplicationFee,occupantApplicationFee:e.occupantApplicationFee,guarantorApplicationFee:e.guarantorApplicationFee,tenantIncomeRequirementRentMultiplier:e.tenantIncomeRequirementRentMultiplier,guarantorIncomeRequirementRentMultiplier:e.guarantorIncomeRequirementRentMultiplier,incomeRequirementRentMultiplierTimePeriod:e.incomeRequirementRentMultiplierTimePeriod,leaseholderMinimumCreditScoreRequirement:e.leaseholderMinimumCreditScoreRequirement,guarantorMinimumCreditScoreRequirement:e.guarantorMinimumCreditScoreRequirement,leaseholderApplicationDocumentsRequired:e.leaseholderApplicationDocumentsRequired,selfEmployedApplicationDocumentsRequired:e.selfEmployedApplicationDocumentsRequired,guarantorApplicationDocumentsRequired:e.guarantorApplicationDocumentsRequired,guarantorsAccepted:e.guarantorsAccepted,financialsInsufficientAlternative:e.financialsInsufficientAlternative,prepaymentPolicy:e.prepaymentPolicy,rentRequiredOnLeaseSigning:e.rentRequiredOnLeaseSigning,securityDepositRentMultiplier:e.securityDepositRentMultiplier,paymentFormsAccepted:e.paymentFormsAccepted,clientEmail:e.clientEmail,description:e.description,notes:e.notes,leasingOfficeHours:e.leasingOfficeHours,occupiedUnitsShowingHours:e.occupiedUnitsShowingHours,internalNotes:e.internalNotes,leasingPhoneNumber:e.leasingPhoneNumber,callCenterNumber:e.callCenterNumber,buildingWebsiteUrl:e.buildingWebsiteUrl,applicationLink:e.applicationLink,geoAddress:e.geoAddress,googleMapsUrl:e.googleMapsUrl,alerts:e.alerts,rentComputeType:e.rentComputeType,autosendActive:e.autosendActive,advancedMoveInAllowenceInDays:e.advancedMoveInAllowenceInDays,alternativeBuildingNames:e.alternativeBuildingNames,externalIds:e.externalIds,externalCrmId:e.externalCrmId,defaultAvailabilityQuoteMatchMoveInDate:e.defaultAvailabilityQuoteMatchMoveInDate,leaseRenewalNoticeInDays:e.leaseRenewalNoticeInDays,rentQuoteFormat:e.rentQuoteFormat,rentWithIncentivesQuoteFormat:e.rentWithIncentivesQuoteFormat,isPartOfComplex:e.isPartOfComplex,alternativeILSAddressGeoFormat:l.AlternativeILSAddressGeoFormatToJSON(e.alternativeILSAddressGeoFormat),effectiveRentComputeType:e.effectiveRentComputeType,maxLeaseTermAccepted:e.maxLeaseTermAccepted,parkingInformation:e.parkingInformation,storageFee:e.storageFee,incentivesProperlyConnected:e.incentivesProperlyConnected,electricCompany:e.electricCompany,gasCompany:e.gasCompany,telephoneCompany:e.telephoneCompany,televisionCompany:e.televisionCompany,waterCompany:e.waterCompany,internetCompany:e.internetCompany,localHospital:e.localHospital,localSchoolDistrict:e.localSchoolDistrict,localElementarySchool:e.localElementarySchool,localMiddleSchool:e.localMiddleSchool,localHighSchool:e.localHighSchool,localShoppingCenter:e.localShoppingCenter,localGroceryStore:e.localGroceryStore,closestInterstates:e.closestInterstates,buildingPicturesUrl:e.buildingPicturesUrl,buildingFloorPlansUrl:e.buildingFloorPlansUrl,nonexistentLayouts:e.nonexistentLayouts,offeredLayouts:e.offeredLayouts,avoidQuotingPrices:e.avoidQuotingPrices,excludeNotRentReadyUnit:e.excludeNotRentReadyUnit,flexWallsAllowed:e.flexWallsAllowed,petsAccepted:e.petsAccepted,guarantorsAcceptedSwitch:e.guarantorsAcceptedSwitch,thirdPartyGuarantorsAccepted:e.thirdPartyGuarantorsAccepted,alwaysScheduleAppointments:e.alwaysScheduleAppointments,leasingOfficeOnsite:e.leasingOfficeOnsite,building3dMediaUrl:e.building3dMediaUrl,dailyreport:e.dailyreport,dailyReportEmails:e.dailyReportEmails,nearbySubways:e.nearbySubways,bedroomTypes:e.bedroomTypes,leasingBrochureUrl:e.leasingBrochureUrl,confidenceVariable:e.confidenceVariable,textForwardToEmails:e.textForwardToEmails,synchronizationStatus:e.synchronizationStatus,omitDesiredFloorPlan:e.omitDesiredFloorPlan,pickingNewGuestCards:e.pickingNewGuestCards,showNotRespondingLeadsInReport:e.showNotRespondingLeadsInReport,leasingOfficeSetupType:e.leasingOfficeSetupType,firstContactReasonRequired:e.firstContactReasonRequired,firstContactReason:e.firstContactReason,emailSignature:e.emailSignature,tourDuration:e.tourDuration,inPersonToursAllowed:e.inPersonToursAllowed,selfGuidedToursEnabled:e.selfGuidedToursEnabled,virtualTourType:e.virtualTourType,virtualTourPlatforms:e.virtualTourPlatforms,noUnitSelfGuidedTourAllowed:e.noUnitSelfGuidedTourAllowed,sgSchedulingBasedOnNormalAppointments:e.sgSchedulingBasedOnNormalAppointments,tourTypePriority:e.tourTypePriority,tourNotificationEmailsMode:e.tourNotificationEmailsMode,showByOpenHouseOnly:e.showByOpenHouseOnly,showUnitsWithPendingApplication:e.showUnitsWithPendingApplication,showOccupiedUnitsWithPendingApplication:e.showOccupiedUnitsWithPendingApplication,confirmAppointmentsOccupiedUnits:e.confirmAppointmentsOccupiedUnits,confirmAppointmentsRenovatingUnits:e.confirmAppointmentsRenovatingUnits,occupiedUnitsAdvancedNoticeInHours:e.occupiedUnitsAdvancedNoticeInHours,prioritizeShowingVacantUnits:e.prioritizeShowingVacantUnits,showOccupiedUnits:e.showOccupiedUnits,whiteListActivated:e.whiteListActivated,appointmentMeetingLocation:e.appointmentMeetingLocation,appointmentMeetingPointSpecific:e.appointmentMeetingPointSpecific,appointmentDirections:e.appointmentDirections,appointmentAdditionalDirections:e.appointmentAdditionalDirections,launchDateTime:void 0===e.launchDateTime?void 0:e.launchDateTime.toISOString(),clientRequiresShowEvent:e.clientRequiresShowEvent,tempLeasingOfficeHoursAsJson:e.tempLeasingOfficeHoursAsJson,calendarId:e.calendarId,effectiveHandoffForwardToEmails:e.effectiveHandoffForwardToEmails}}},3477:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingEntityToJSON=t.BuildingEntityFromJSONTyped=t.BuildingEntityFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0}}t.BuildingEntityFromJSON=function(e){return r(e)},t.BuildingEntityFromJSONTyped=r,t.BuildingEntityToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id}}},8536:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingExpansionValidationResultToJSON=t.BuildingExpansionValidationResultFromJSONTyped=t.BuildingExpansionValidationResultFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{apiCallToSuccessMap:n.exists(e,"apiCallToSuccessMap")?e.apiCallToSuccessMap:void 0,apiCallToMessageMap:n.exists(e,"apiCallToMessageMap")?e.apiCallToMessageMap:void 0}}t.BuildingExpansionValidationResultFromJSON=function(e){return r(e)},t.BuildingExpansionValidationResultFromJSONTyped=r,t.BuildingExpansionValidationResultToJSON=function(e){if(void 0!==e)return null===e?null:{apiCallToSuccessMap:e.apiCallToSuccessMap,apiCallToMessageMap:e.apiCallToMessageMap}}},4597:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingFeatureFlagRequestDtoToJSON=t.BuildingFeatureFlagRequestDtoFromJSONTyped=t.BuildingFeatureFlagRequestDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{defaultBoolValue:n.exists(e,"defaultBoolValue")?e.defaultBoolValue:void 0,defaultIntValue:n.exists(e,"defaultIntValue")?e.defaultIntValue:void 0,defaultStringValue:n.exists(e,"defaultStringValue")?e.defaultStringValue:void 0,clientEmail:n.exists(e,"clientEmail")?e.clientEmail:void 0,orgId:n.exists(e,"orgId")?e.orgId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,crmType:n.exists(e,"crmType")?e.crmType:void 0}}t.BuildingFeatureFlagRequestDtoFromJSON=function(e){return r(e)},t.BuildingFeatureFlagRequestDtoFromJSONTyped=r,t.BuildingFeatureFlagRequestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{defaultBoolValue:e.defaultBoolValue,defaultIntValue:e.defaultIntValue,defaultStringValue:e.defaultStringValue,clientEmail:e.clientEmail,orgId:e.orgId,buildingId:e.buildingId,crmType:e.crmType}}},553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingOverrideToJSON=t.BuildingOverrideFromJSONTyped=t.BuildingOverrideFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{redIntents:n.exists(e,"redIntents")?e.redIntents:void 0,yellowIntents:n.exists(e,"yellowIntents")?e.yellowIntents:void 0}}t.BuildingOverrideFromJSON=function(e){return r(e)},t.BuildingOverrideFromJSONTyped=r,t.BuildingOverrideToJSON=function(e){if(void 0!==e)return null===e?null:{redIntents:e.redIntents,yellowIntents:e.yellowIntents}}},6673:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingPublicViewModelToJSON=t.BuildingPublicViewModelFromJSONTyped=t.BuildingPublicViewModelFromJSON=void 0;var n=i(296),r=i(746),o=i(6330);function a(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,orgId:n.exists(e,"orgId")?e.orgId:void 0,name:n.exists(e,"name")?e.name:void 0,userId:n.exists(e,"userId")?e.userId:void 0,userFirstName:n.exists(e,"userFirstName")?e.userFirstName:void 0,userLastName:n.exists(e,"userLastName")?e.userLastName:void 0,primaryColor:n.exists(e,"primaryColor")?e.primaryColor:void 0,backgroundColor:n.exists(e,"backgroundColor")?e.backgroundColor:void 0,logoSrc:n.exists(e,"logoSrc")?e.logoSrc:void 0,welcomeMessage:n.exists(e,"welcomeMessage")?e.welcomeMessage:void 0,chatTitle:n.exists(e,"chatTitle")?e.chatTitle:void 0,chatSubtitle:n.exists(e,"chatSubtitle")?e.chatSubtitle:void 0,bannerColor:n.exists(e,"bannerColor")?e.bannerColor:void 0,bannerTextColor:n.exists(e,"bannerTextColor")?e.bannerTextColor:void 0,messageColor:n.exists(e,"messageColor")?e.messageColor:void 0,messageTextColor:n.exists(e,"messageTextColor")?e.messageTextColor:void 0,launchButtonColor:n.exists(e,"launchButtonColor")?e.launchButtonColor:void 0,launchButtonIconColor:n.exists(e,"launchButtonIconColor")?e.launchButtonIconColor:void 0,launchButtonSize:n.exists(e,"launchButtonSize")?e.launchButtonSize:void 0,avatarType:n.exists(e,"avatarType")?e.avatarType:void 0,avatarSrc:n.exists(e,"avatarSrc")?e.avatarSrc:void 0,avatarInitials:n.exists(e,"avatarInitials")?e.avatarInitials:void 0,themeId:n.exists(e,"themeId")?e.themeId:void 0,streetAddress:n.exists(e,"streetAddress")?e.streetAddress:void 0,postalCode:n.exists(e,"postalCode")?e.postalCode:void 0,state:n.exists(e,"state")?e.state:void 0,phoneNumber:n.exists(e,"phoneNumber")?e.phoneNumber:void 0,layoutOptions:n.exists(e,"layoutOptions")?e.layoutOptions.map(r.LayoutOptionFromJSON):void 0,tourTypeOptions:n.exists(e,"tourTypeOptions")?e.tourTypeOptions.map(o.TourTypeOptionFromJSON):void 0,conversationMaintenanceMode:n.exists(e,"conversationMaintenanceMode")?e.conversationMaintenanceMode:void 0}}t.BuildingPublicViewModelFromJSON=function(e){return a(e)},t.BuildingPublicViewModelFromJSONTyped=a,t.BuildingPublicViewModelToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,orgId:e.orgId,name:e.name,userId:e.userId,userFirstName:e.userFirstName,userLastName:e.userLastName,primaryColor:e.primaryColor,backgroundColor:e.backgroundColor,logoSrc:e.logoSrc,welcomeMessage:e.welcomeMessage,chatTitle:e.chatTitle,chatSubtitle:e.chatSubtitle,bannerColor:e.bannerColor,bannerTextColor:e.bannerTextColor,messageColor:e.messageColor,messageTextColor:e.messageTextColor,launchButtonColor:e.launchButtonColor,launchButtonIconColor:e.launchButtonIconColor,launchButtonSize:e.launchButtonSize,avatarType:e.avatarType,avatarSrc:e.avatarSrc,avatarInitials:e.avatarInitials,themeId:e.themeId,streetAddress:e.streetAddress,postalCode:e.postalCode,state:e.state,phoneNumber:e.phoneNumber,layoutOptions:void 0===e.layoutOptions?void 0:e.layoutOptions.map(r.LayoutOptionToJSON),tourTypeOptions:void 0===e.tourTypeOptions?void 0:e.tourTypeOptions.map(o.TourTypeOptionToJSON),conversationMaintenanceMode:e.conversationMaintenanceMode}}},6597:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingRefreshInfoToJSON=t.BuildingRefreshInfoFromJSONTyped=t.BuildingRefreshInfoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{timesToRunInCronFormat:n.exists(e,"timesToRunInCronFormat")?e.timesToRunInCronFormat:void 0}}t.BuildingRefreshInfoFromJSON=function(e){return r(e)},t.BuildingRefreshInfoFromJSONTyped=r,t.BuildingRefreshInfoToJSON=function(e){if(void 0!==e)return null===e?null:{timesToRunInCronFormat:e.timesToRunInCronFormat}}},7949:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingTourTypePreferencesToJSON=t.BuildingTourTypePreferencesFromJSONTyped=t.BuildingTourTypePreferencesFromJSON=t.BuildingTourTypePreferencesSelfGuidedToursTypeOfferedEnum=t.BuildingTourTypePreferencesLiveVirtualToursTypeOfferedEnum=t.BuildingTourTypePreferencesMediaToursTypeOfferedEnum=t.BuildingTourTypePreferencesEscortedToursTypeOfferedEnum=void 0;var n,r,o,a,s=i(296);function l(e,t){return null==e?e:{id:s.exists(e,"id")?e.id:void 0,buildingId:s.exists(e,"buildingId")?e.buildingId:void 0,escortedToursAllowed:s.exists(e,"escortedToursAllowed")?e.escortedToursAllowed:void 0,escortedToursTypeOffered:s.exists(e,"escortedToursTypeOffered")?e.escortedToursTypeOffered:void 0,escortedTourClientName:s.exists(e,"escortedTourClientName")?e.escortedTourClientName:void 0,escortedToursLink:s.exists(e,"escortedToursLink")?e.escortedToursLink:void 0,mediaToursAllowed:s.exists(e,"mediaToursAllowed")?e.mediaToursAllowed:void 0,mediaToursTypeOffered:s.exists(e,"mediaToursTypeOffered")?e.mediaToursTypeOffered:void 0,mediaTourClientName:s.exists(e,"mediaTourClientName")?e.mediaTourClientName:void 0,mediaToursLink:s.exists(e,"mediaToursLink")?e.mediaToursLink:void 0,liveVirtualToursAllowed:s.exists(e,"liveVirtualToursAllowed")?e.liveVirtualToursAllowed:void 0,liveVirtualToursTypeOffered:s.exists(e,"liveVirtualToursTypeOffered")?e.liveVirtualToursTypeOffered:void 0,liveVirtualTourClientName:s.exists(e,"liveVirtualTourClientName")?e.liveVirtualTourClientName:void 0,liveVirtualToursLink:s.exists(e,"liveVirtualToursLink")?e.liveVirtualToursLink:void 0,selfGuidedToursAllowed:s.exists(e,"selfGuidedToursAllowed")?e.selfGuidedToursAllowed:void 0,selfGuidedToursTypeOffered:s.exists(e,"selfGuidedToursTypeOffered")?e.selfGuidedToursTypeOffered:void 0,selfGuidedTourClientName:s.exists(e,"selfGuidedTourClientName")?e.selfGuidedTourClientName:void 0,selfGuidedToursLink:s.exists(e,"selfGuidedToursLink")?e.selfGuidedToursLink:void 0}}(a=t.BuildingTourTypePreferencesEscortedToursTypeOfferedEnum||(t.BuildingTourTypePreferencesEscortedToursTypeOfferedEnum={})).Link="LINK",a.ClientScheduled="CLIENT_SCHEDULED",a.ScheduledByMeManagedByMe="SCHEDULED_BY_ME_MANAGED_BY_ME",a.ScheduledByMeManagedByClient="SCHEDULED_BY_ME_MANAGED_BY_CLIENT",a.ScheduledByMeManagedByConcierge="SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE",(o=t.BuildingTourTypePreferencesMediaToursTypeOfferedEnum||(t.BuildingTourTypePreferencesMediaToursTypeOfferedEnum={})).Link="LINK",o.ClientScheduled="CLIENT_SCHEDULED",o.ScheduledByMeManagedByMe="SCHEDULED_BY_ME_MANAGED_BY_ME",o.ScheduledByMeManagedByClient="SCHEDULED_BY_ME_MANAGED_BY_CLIENT",o.ScheduledByMeManagedByConcierge="SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE",(r=t.BuildingTourTypePreferencesLiveVirtualToursTypeOfferedEnum||(t.BuildingTourTypePreferencesLiveVirtualToursTypeOfferedEnum={})).Link="LINK",r.ClientScheduled="CLIENT_SCHEDULED",r.ScheduledByMeManagedByMe="SCHEDULED_BY_ME_MANAGED_BY_ME",r.ScheduledByMeManagedByClient="SCHEDULED_BY_ME_MANAGED_BY_CLIENT",r.ScheduledByMeManagedByConcierge="SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE",(n=t.BuildingTourTypePreferencesSelfGuidedToursTypeOfferedEnum||(t.BuildingTourTypePreferencesSelfGuidedToursTypeOfferedEnum={})).Link="LINK",n.ClientScheduled="CLIENT_SCHEDULED",n.ScheduledByMeManagedByMe="SCHEDULED_BY_ME_MANAGED_BY_ME",n.ScheduledByMeManagedByClient="SCHEDULED_BY_ME_MANAGED_BY_CLIENT",n.ScheduledByMeManagedByConcierge="SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE",t.BuildingTourTypePreferencesFromJSON=function(e){return l(e)},t.BuildingTourTypePreferencesFromJSONTyped=l,t.BuildingTourTypePreferencesToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,escortedToursAllowed:e.escortedToursAllowed,escortedToursTypeOffered:e.escortedToursTypeOffered,escortedTourClientName:e.escortedTourClientName,escortedToursLink:e.escortedToursLink,mediaToursAllowed:e.mediaToursAllowed,mediaToursTypeOffered:e.mediaToursTypeOffered,mediaTourClientName:e.mediaTourClientName,mediaToursLink:e.mediaToursLink,liveVirtualToursAllowed:e.liveVirtualToursAllowed,liveVirtualToursTypeOffered:e.liveVirtualToursTypeOffered,liveVirtualTourClientName:e.liveVirtualTourClientName,liveVirtualToursLink:e.liveVirtualToursLink,selfGuidedToursAllowed:e.selfGuidedToursAllowed,selfGuidedToursTypeOffered:e.selfGuidedToursTypeOffered,selfGuidedTourClientName:e.selfGuidedTourClientName,selfGuidedToursLink:e.selfGuidedToursLink}}},2386:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CalendarEventTourHandlerToJSON=t.CalendarEventTourHandlerFromJSONTyped=t.CalendarEventTourHandlerFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:e.id,timeCreated:new Date(e.timeCreated),buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId}}t.CalendarEventTourHandlerFromJSON=function(e){return r(e)},t.CalendarEventTourHandlerFromJSONTyped=r,t.CalendarEventTourHandlerToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,timeCreated:e.timeCreated.toISOString(),buildingId:e.buildingId,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId}}},4853:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancelActionDtoToJSON=t.CancelActionDtoFromJSONTyped=t.CancelActionDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,calendarEventId:n.exists(e,"calendarEventId")?e.calendarEventId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.CancelActionDtoFromJSON=function(e){return r(e)},t.CancelActionDtoFromJSONTyped=r,t.CancelActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,calendarEventId:e.calendarEventId,buildingId:e.buildingId}}},9260:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancelTourByStateIdDtoToJSON=t.CancelTourByStateIdDtoFromJSONTyped=t.CancelTourByStateIdDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{mcId:n.exists(e,"mcId")?e.mcId:void 0,stateId:n.exists(e,"stateId")?e.stateId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,useLegacyContext:n.exists(e,"useLegacyContext")?e.useLegacyContext:void 0,sms:n.exists(e,"sms")?e.sms:void 0}}t.CancelTourByStateIdDtoFromJSON=function(e){return r(e)},t.CancelTourByStateIdDtoFromJSONTyped=r,t.CancelTourByStateIdDtoToJSON=function(e){if(void 0!==e)return null===e?null:{mcId:e.mcId,stateId:e.stateId,buildingId:e.buildingId,useLegacyContext:e.useLegacyContext,sms:e.sms}}},3777:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancelTourDtoToJSON=t.CancelTourDtoFromJSONTyped=t.CancelTourDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.CancelTourDtoFromJSON=function(e){return r(e)},t.CancelTourDtoFromJSONTyped=r,t.CancelTourDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId}}},713:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTelemetryDtoToJSON=t.ChatTelemetryDtoFromJSONTyped=t.ChatTelemetryDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{eventType:n.exists(e,"eventType")?e.eventType:void 0,chatId:n.exists(e,"chatId")?e.chatId:void 0,url:n.exists(e,"url")?e.url:void 0,org:n.exists(e,"org")?e.org:void 0,building:n.exists(e,"building")?e.building:void 0,referrer:n.exists(e,"referrer")?e.referrer:void 0,featureFlags:n.exists(e,"featureFlags")?e.featureFlags:void 0}}t.ChatTelemetryDtoFromJSON=function(e){return r(e)},t.ChatTelemetryDtoFromJSONTyped=r,t.ChatTelemetryDtoToJSON=function(e){if(void 0!==e)return null===e?null:{eventType:e.eventType,chatId:e.chatId,url:e.url,org:e.org,building:e.building,referrer:e.referrer,featureFlags:e.featureFlags}}},1172:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunitiesDefaultsToJSON=t.CommunitiesDefaultsFromJSONTyped=t.CommunitiesDefaultsFromJSON=void 0;var n=i(296),r=i(6448),o=i(6161),a=i(6069),s=i(6122);function l(e,t){return null==e?e:{virtualTourType:n.exists(e,"virtualTourType")?s.SettingVirtualTourTypeFromJSON(e.virtualTourType):void 0,virtualTourPlatforms:n.exists(e,"virtualTourPlatforms")?a.SettingStringFromJSON(e.virtualTourPlatforms):void 0,furnishedOffered:n.exists(e,"furnishedOffered")?o.SettingIntegerFromJSON(e.furnishedOffered):void 0,furnishedUnitsPolicy:n.exists(e,"furnishedUnitsPolicy")?a.SettingStringFromJSON(e.furnishedUnitsPolicy):void 0,utilitiesIncluded:n.exists(e,"utilitiesIncluded")?a.SettingStringFromJSON(e.utilitiesIncluded):void 0,utilitiesNotIncluded:n.exists(e,"utilitiesNotIncluded")?a.SettingStringFromJSON(e.utilitiesNotIncluded):void 0,advancedMoveInAllowenceInDays:n.exists(e,"advancedMoveInAllowenceInDays")?o.SettingIntegerFromJSON(e.advancedMoveInAllowenceInDays):void 0,occupiedUnits:n.exists(e,"occupiedUnits")?o.SettingIntegerFromJSON(e.occupiedUnits):void 0,showUnitsWithPendingApplication:n.exists(e,"showUnitsWithPendingApplication")?r.SettingBooleanFromJSON(e.showUnitsWithPendingApplication):void 0,confirmAppointmentsRenovatingUnits:n.exists(e,"confirmAppointmentsRenovatingUnits")?r.SettingBooleanFromJSON(e.confirmAppointmentsRenovatingUnits):void 0,occupiedUnitsAdvancedNoticeInHours:n.exists(e,"occupiedUnitsAdvancedNoticeInHours")?o.SettingIntegerFromJSON(e.occupiedUnitsAdvancedNoticeInHours):void 0,confirmAppointmentsOccupiedUnits:n.exists(e,"confirmAppointmentsOccupiedUnits")?r.SettingBooleanFromJSON(e.confirmAppointmentsOccupiedUnits):void 0,showOccupiedUnitsWithPendingApplication:n.exists(e,"showOccupiedUnitsWithPendingApplication")?r.SettingBooleanFromJSON(e.showOccupiedUnitsWithPendingApplication):void 0,leaseholderApplicationDocumentsRequired:n.exists(e,"leaseholderApplicationDocumentsRequired")?a.SettingStringFromJSON(e.leaseholderApplicationDocumentsRequired):void 0,leaseholderMinimumCreditScoreRequirement:n.exists(e,"leaseholderMinimumCreditScoreRequirement")?a.SettingStringFromJSON(e.leaseholderMinimumCreditScoreRequirement):void 0,noCreditQualificationAlternative:n.exists(e,"noCreditQualificationAlternative")?a.SettingStringFromJSON(e.noCreditQualificationAlternative):void 0,incomeRequirementRentMultiplierTimePeriod:n.exists(e,"incomeRequirementRentMultiplierTimePeriod")?r.SettingBooleanFromJSON(e.incomeRequirementRentMultiplierTimePeriod):void 0,rentRequiredOnLeaseSigning:n.exists(e,"rentRequiredOnLeaseSigning")?a.SettingStringFromJSON(e.rentRequiredOnLeaseSigning):void 0,paymentFormsAccepted:n.exists(e,"paymentFormsAccepted")?a.SettingStringFromJSON(e.paymentFormsAccepted):void 0,internationalStudentRequirements:n.exists(e,"internationalStudentRequirements")?a.SettingStringFromJSON(e.internationalStudentRequirements):void 0,guarantorMinimumCreditScoreRequirement:n.exists(e,"guarantorMinimumCreditScoreRequirement")?a.SettingStringFromJSON(e.guarantorMinimumCreditScoreRequirement):void 0,effectiveRentComputeType:n.exists(e,"effectiveRentComputeType")?o.SettingIntegerFromJSON(e.effectiveRentComputeType):void 0,avoidQuotingPrices:n.exists(e,"avoidQuotingPrices")?r.SettingBooleanFromJSON(e.avoidQuotingPrices):void 0,defaultAvailabilityQuoteMatchMoveInDate:n.exists(e,"defaultAvailabilityQuoteMatchMoveInDate")?r.SettingBooleanFromJSON(e.defaultAvailabilityQuoteMatchMoveInDate):void 0,rentComputeType:n.exists(e,"rentComputeType")?o.SettingIntegerFromJSON(e.rentComputeType):void 0,rentWithIncentivesQuoteFormat:n.exists(e,"rentWithIncentivesQuoteFormat")?a.SettingStringFromJSON(e.rentWithIncentivesQuoteFormat):void 0,rentQuoteFormat:n.exists(e,"rentQuoteFormat")?a.SettingStringFromJSON(e.rentQuoteFormat):void 0}}t.CommunitiesDefaultsFromJSON=function(e){return l(e)},t.CommunitiesDefaultsFromJSONTyped=l,t.CommunitiesDefaultsToJSON=function(e){if(void 0!==e)return null===e?null:{virtualTourType:s.SettingVirtualTourTypeToJSON(e.virtualTourType),virtualTourPlatforms:a.SettingStringToJSON(e.virtualTourPlatforms),furnishedOffered:o.SettingIntegerToJSON(e.furnishedOffered),furnishedUnitsPolicy:a.SettingStringToJSON(e.furnishedUnitsPolicy),utilitiesIncluded:a.SettingStringToJSON(e.utilitiesIncluded),utilitiesNotIncluded:a.SettingStringToJSON(e.utilitiesNotIncluded),advancedMoveInAllowenceInDays:o.SettingIntegerToJSON(e.advancedMoveInAllowenceInDays),occupiedUnits:o.SettingIntegerToJSON(e.occupiedUnits),showUnitsWithPendingApplication:r.SettingBooleanToJSON(e.showUnitsWithPendingApplication),confirmAppointmentsRenovatingUnits:r.SettingBooleanToJSON(e.confirmAppointmentsRenovatingUnits),occupiedUnitsAdvancedNoticeInHours:o.SettingIntegerToJSON(e.occupiedUnitsAdvancedNoticeInHours),confirmAppointmentsOccupiedUnits:r.SettingBooleanToJSON(e.confirmAppointmentsOccupiedUnits),showOccupiedUnitsWithPendingApplication:r.SettingBooleanToJSON(e.showOccupiedUnitsWithPendingApplication),leaseholderApplicationDocumentsRequired:a.SettingStringToJSON(e.leaseholderApplicationDocumentsRequired),leaseholderMinimumCreditScoreRequirement:a.SettingStringToJSON(e.leaseholderMinimumCreditScoreRequirement),noCreditQualificationAlternative:a.SettingStringToJSON(e.noCreditQualificationAlternative),incomeRequirementRentMultiplierTimePeriod:r.SettingBooleanToJSON(e.incomeRequirementRentMultiplierTimePeriod),rentRequiredOnLeaseSigning:a.SettingStringToJSON(e.rentRequiredOnLeaseSigning),paymentFormsAccepted:a.SettingStringToJSON(e.paymentFormsAccepted),internationalStudentRequirements:a.SettingStringToJSON(e.internationalStudentRequirements),guarantorMinimumCreditScoreRequirement:a.SettingStringToJSON(e.guarantorMinimumCreditScoreRequirement),effectiveRentComputeType:o.SettingIntegerToJSON(e.effectiveRentComputeType),avoidQuotingPrices:r.SettingBooleanToJSON(e.avoidQuotingPrices),defaultAvailabilityQuoteMatchMoveInDate:r.SettingBooleanToJSON(e.defaultAvailabilityQuoteMatchMoveInDate),rentComputeType:o.SettingIntegerToJSON(e.rentComputeType),rentWithIncentivesQuoteFormat:a.SettingStringToJSON(e.rentWithIncentivesQuoteFormat),rentQuoteFormat:a.SettingStringToJSON(e.rentQuoteFormat)}}},5384:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunitiesEdgeToJSON=t.CommunitiesEdgeFromJSONTyped=t.CommunitiesEdgeFromJSON=void 0;var n=i(296),r=i(2414);function o(e,t){return null==e?e:{node:n.exists(e,"node")?r.CommunitiesNodeFromJSON(e.node):void 0}}t.CommunitiesEdgeFromJSON=function(e){return o(e)},t.CommunitiesEdgeFromJSONTyped=o,t.CommunitiesEdgeToJSON=function(e){if(void 0!==e)return null===e?null:{node:r.CommunitiesNodeToJSON(e.node)}}},2414:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunitiesNodeToJSON=t.CommunitiesNodeFromJSONTyped=t.CommunitiesNodeFromJSON=void 0;var n=i(296),r=i(2322),o=i(1204);function a(e,t){return null==e?e:{communityId:n.exists(e,"communityId")?e.communityId:void 0,communityName:n.exists(e,"communityName")?e.communityName:void 0,companyName:n.exists(e,"companyName")?e.companyName:void 0,trackingEmailUsername:n.exists(e,"trackingEmailUsername")?e.trackingEmailUsername:void 0,inPersonToursEnabled:n.exists(e,"inPersonToursEnabled")?e.inPersonToursEnabled:void 0,liveVideoToursEnabled:n.exists(e,"liveVideoToursEnabled")?e.liveVideoToursEnabled:void 0,selfGuidedToursEnabled:n.exists(e,"selfGuidedToursEnabled")?e.selfGuidedToursEnabled:void 0,address:n.exists(e,"address")?r.AddressFromJSON(e.address):void 0,geolocation:n.exists(e,"geolocation")?o.GeolocationFromJSON(e.geolocation):void 0}}t.CommunitiesNodeFromJSON=function(e){return a(e)},t.CommunitiesNodeFromJSONTyped=a,t.CommunitiesNodeToJSON=function(e){if(void 0!==e)return null===e?null:{communityId:e.communityId,communityName:e.communityName,companyName:e.companyName,trackingEmailUsername:e.trackingEmailUsername,inPersonToursEnabled:e.inPersonToursEnabled,liveVideoToursEnabled:e.liveVideoToursEnabled,selfGuidedToursEnabled:e.selfGuidedToursEnabled,address:r.AddressToJSON(e.address),geolocation:o.GeolocationToJSON(e.geolocation)}}},3077:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunityFormViewToJSON=t.CommunityFormViewFromJSONTyped=t.CommunityFormViewFromJSON=t.CommunityFormViewVirtualTourTypeEnum=t.CommunityFormViewTourNotificationEmailsModeEnum=void 0;var n,r,o=i(296),a=i(3617);function s(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,managementCompanyId:o.exists(e,"managementCompanyId")?e.managementCompanyId:void 0,organizationId:o.exists(e,"organizationId")?e.organizationId:void 0,active:o.exists(e,"active")?e.active:void 0,handoffForwardToEmails:o.exists(e,"handoffForwardToEmails")?e.handoffForwardToEmails:void 0,responseCcEmails:o.exists(e,"responseCcEmails")?e.responseCcEmails:void 0,responseBccEmails:o.exists(e,"responseBccEmails")?e.responseBccEmails:void 0,buildingName:o.exists(e,"buildingName")?e.buildingName:void 0,address1:o.exists(e,"address1")?e.address1:void 0,address2:o.exists(e,"address2")?e.address2:void 0,address3:o.exists(e,"address3")?e.address3:void 0,city:o.exists(e,"city")?e.city:void 0,state:o.exists(e,"state")?e.state:void 0,postalCode:o.exists(e,"postalCode")?e.postalCode:void 0,crossStreets:o.exists(e,"crossStreets")?e.crossStreets:void 0,neighborhood:o.exists(e,"neighborhood")?e.neighborhood:void 0,nearbyTransportation:o.exists(e,"nearbyTransportation")?e.nearbyTransportation:void 0,totalUnits:o.exists(e,"totalUnits")?e.totalUnits:void 0,totalFloors:o.exists(e,"totalFloors")?e.totalFloors:void 0,greenBuilding:o.exists(e,"greenBuilding")?e.greenBuilding:void 0,elevator:o.exists(e,"elevator")?e.elevator:void 0,freightElevator:o.exists(e,"freightElevator")?e.freightElevator:void 0,petPolicy:o.exists(e,"petPolicy")?e.petPolicy:void 0,petFeeOrDeposit:o.exists(e,"petFeeOrDeposit")?e.petFeeOrDeposit:void 0,utilitiesIncluded:o.exists(e,"utilitiesIncluded")?e.utilitiesIncluded:void 0,utilitiesNotIncluded:o.exists(e,"utilitiesNotIncluded")?e.utilitiesNotIncluded:void 0,minLeaseTermAccepted:o.exists(e,"minLeaseTermAccepted")?e.minLeaseTermAccepted:void 0,furnishedOffered:o.exists(e,"furnishedOffered")?e.furnishedOffered:void 0,furnishedUnitsPolicy:o.exists(e,"furnishedUnitsPolicy")?e.furnishedUnitsPolicy:void 0,internationalStudentRequirements:o.exists(e,"internationalStudentRequirements")?e.internationalStudentRequirements:void 0,amenitiesFee:o.exists(e,"amenitiesFee")?e.amenitiesFee:void 0,corporateLeasesAccepted:o.exists(e,"corporateLeasesAccepted")?e.corporateLeasesAccepted:void 0,doorman:o.exists(e,"doorman")?e.doorman:void 0,intercom:o.exists(e,"intercom")?e.intercom:void 0,liveInSuper:o.exists(e,"liveInSuper")?e.liveInSuper:void 0,concierge:o.exists(e,"concierge")?e.concierge:void 0,laundryInBuilding:o.exists(e,"laundryInBuilding")?e.laundryInBuilding:void 0,packageReceiving:o.exists(e,"packageReceiving")?e.packageReceiving:void 0,gym:o.exists(e,"gym")?e.gym:void 0,storage:o.exists(e,"storage")?e.storage:void 0,bicycleRoom:o.exists(e,"bicycleRoom")?e.bicycleRoom:void 0,lounge:o.exists(e,"lounge")?e.lounge:void 0,clubHouse:o.exists(e,"clubHouse")?e.clubHouse:void 0,businessCenter:o.exists(e,"businessCenter")?e.businessCenter:void 0,outdoorSpace:o.exists(e,"outdoorSpace")?e.outdoorSpace:void 0,roofDeck:o.exists(e,"roofDeck")?e.roofDeck:void 0,courtyard:o.exists(e,"courtyard")?e.courtyard:void 0,childrenPlayroom:o.exists(e,"childrenPlayroom")?e.childrenPlayroom:void 0,nursery:o.exists(e,"nursery")?e.nursery:void 0,maidService:o.exists(e,"maidService")?e.maidService:void 0,pool:o.exists(e,"pool")?e.pool:void 0,wheelchairAccess:o.exists(e,"wheelchairAccess")?e.wheelchairAccess:void 0,thirdPartyGuarantorTypesAccepted:o.exists(e,"thirdPartyGuarantorTypesAccepted")?e.thirdPartyGuarantorTypesAccepted:void 0,noCreditQualificationAlternative:o.exists(e,"noCreditQualificationAlternative")?e.noCreditQualificationAlternative:void 0,virtualTourPlatforms:o.exists(e,"virtualTourPlatforms")?e.virtualTourPlatforms:void 0,flexWallPolicy:o.exists(e,"flexWallPolicy")?e.flexWallPolicy:void 0,leaseholderApplicationFee:o.exists(e,"leaseholderApplicationFee")?e.leaseholderApplicationFee:void 0,guarantorApplicationFee:o.exists(e,"guarantorApplicationFee")?e.guarantorApplicationFee:void 0,tenantIncomeRequirementRentMultiplier:o.exists(e,"tenantIncomeRequirementRentMultiplier")?e.tenantIncomeRequirementRentMultiplier:void 0,guarantorIncomeRequirementRentMultiplier:o.exists(e,"guarantorIncomeRequirementRentMultiplier")?e.guarantorIncomeRequirementRentMultiplier:void 0,leaseholderMinimumCreditScoreRequirement:o.exists(e,"leaseholderMinimumCreditScoreRequirement")?e.leaseholderMinimumCreditScoreRequirement:void 0,guarantorMinimumCreditScoreRequirement:o.exists(e,"guarantorMinimumCreditScoreRequirement")?e.guarantorMinimumCreditScoreRequirement:void 0,leaseholderApplicationDocumentsRequired:o.exists(e,"leaseholderApplicationDocumentsRequired")?e.leaseholderApplicationDocumentsRequired:void 0,guarantorsAccepted:o.exists(e,"guarantorsAccepted")?e.guarantorsAccepted:void 0,prepaymentPolicy:o.exists(e,"prepaymentPolicy")?e.prepaymentPolicy:void 0,rentRequiredOnLeaseSigning:o.exists(e,"rentRequiredOnLeaseSigning")?e.rentRequiredOnLeaseSigning:void 0,paymentFormsAccepted:o.exists(e,"paymentFormsAccepted")?e.paymentFormsAccepted:void 0,leasingBrochureUrl:o.exists(e,"leasingBrochureUrl")?e.leasingBrochureUrl:void 0,leasingOfficeHours:o.exists(e,"leasingOfficeHours")?e.leasingOfficeHours:void 0,appointmentHours:o.exists(e,"appointmentHours")?e.appointmentHours.map(a.AppointmentHoursFromJSON):void 0,occupiedUnitsShowingHours:o.exists(e,"occupiedUnitsShowingHours")?e.occupiedUnitsShowingHours:void 0,tourDuration:o.exists(e,"tourDuration")?e.tourDuration:void 0,leasingPhoneNumber:o.exists(e,"leasingPhoneNumber")?e.leasingPhoneNumber:void 0,callCenterNumber:o.exists(e,"callCenterNumber")?e.callCenterNumber:void 0,buildingWebsiteUrl:o.exists(e,"buildingWebsiteUrl")?e.buildingWebsiteUrl:void 0,applicationLink:o.exists(e,"applicationLink")?e.applicationLink:void 0,geoAddress:o.exists(e,"geoAddress")?e.geoAddress:void 0,googleMapsUrl:o.exists(e,"googleMapsUrl")?e.googleMapsUrl:void 0,appointmentMeetingLocation:o.exists(e,"appointmentMeetingLocation")?e.appointmentMeetingLocation:void 0,appointmentDirections:o.exists(e,"appointmentDirections")?e.appointmentDirections:void 0,appointmentAdditionalDirections:o.exists(e,"appointmentAdditionalDirections")?e.appointmentAdditionalDirections:void 0,rentComputeType:o.exists(e,"rentComputeType")?e.rentComputeType:void 0,autosendActive:o.exists(e,"autosendActive")?e.autosendActive:void 0,advancedMoveInAllowenceInDays:o.exists(e,"advancedMoveInAllowenceInDays")?e.advancedMoveInAllowenceInDays:void 0,showByOpenHouseOnly:o.exists(e,"showByOpenHouseOnly")?e.showByOpenHouseOnly:void 0,showUnitsWithPendingApplication:o.exists(e,"showUnitsWithPendingApplication")?e.showUnitsWithPendingApplication:void 0,showOccupiedUnitsWithPendingApplication:o.exists(e,"showOccupiedUnitsWithPendingApplication")?e.showOccupiedUnitsWithPendingApplication:void 0,confirmAppointmentsOccupiedUnits:o.exists(e,"confirmAppointmentsOccupiedUnits")?e.confirmAppointmentsOccupiedUnits:void 0,confirmAppointmentsRenovatingUnits:o.exists(e,"confirmAppointmentsRenovatingUnits")?e.confirmAppointmentsRenovatingUnits:void 0,occupiedUnitsAdvancedNoticeInHours:o.exists(e,"occupiedUnitsAdvancedNoticeInHours")?e.occupiedUnitsAdvancedNoticeInHours:void 0,alternativeBuildingNames:o.exists(e,"alternativeBuildingNames")?e.alternativeBuildingNames:void 0,externalIds:o.exists(e,"externalIds")?e.externalIds:void 0,externalCrmId:o.exists(e,"externalCrmId")?e.externalCrmId:void 0,defaultAvailabilityQuoteMatchMoveInDate:o.exists(e,"defaultAvailabilityQuoteMatchMoveInDate")?e.defaultAvailabilityQuoteMatchMoveInDate:void 0,leaseRenewalNoticeInDays:o.exists(e,"leaseRenewalNoticeInDays")?e.leaseRenewalNoticeInDays:void 0,rentQuoteFormat:o.exists(e,"rentQuoteFormat")?e.rentQuoteFormat:void 0,rentWithIncentivesQuoteFormat:o.exists(e,"rentWithIncentivesQuoteFormat")?e.rentWithIncentivesQuoteFormat:void 0,effectiveRentComputeType:o.exists(e,"effectiveRentComputeType")?e.effectiveRentComputeType:void 0,maxLeaseTermAccepted:o.exists(e,"maxLeaseTermAccepted")?e.maxLeaseTermAccepted:void 0,parkingInformation:o.exists(e,"parkingInformation")?e.parkingInformation:void 0,storageFee:o.exists(e,"storageFee")?e.storageFee:void 0,incentivesProperlyConnected:o.exists(e,"incentivesProperlyConnected")?e.incentivesProperlyConnected:void 0,prioritizeShowingVacantUnits:o.exists(e,"prioritizeShowingVacantUnits")?e.prioritizeShowingVacantUnits:void 0,electricCompany:o.exists(e,"electricCompany")?e.electricCompany:void 0,gasCompany:o.exists(e,"gasCompany")?e.gasCompany:void 0,telephoneCompany:o.exists(e,"telephoneCompany")?e.telephoneCompany:void 0,televisionCompany:o.exists(e,"televisionCompany")?e.televisionCompany:void 0,waterCompany:o.exists(e,"waterCompany")?e.waterCompany:void 0,internetCompany:o.exists(e,"internetCompany")?e.internetCompany:void 0,localHospital:o.exists(e,"localHospital")?e.localHospital:void 0,localSchoolDistrict:o.exists(e,"localSchoolDistrict")?e.localSchoolDistrict:void 0,localElementarySchool:o.exists(e,"localElementarySchool")?e.localElementarySchool:void 0,localMiddleSchool:o.exists(e,"localMiddleSchool")?e.localMiddleSchool:void 0,localHighSchool:o.exists(e,"localHighSchool")?e.localHighSchool:void 0,localShoppingCenter:o.exists(e,"localShoppingCenter")?e.localShoppingCenter:void 0,localGroceryStore:o.exists(e,"localGroceryStore")?e.localGroceryStore:void 0,closestInterstates:o.exists(e,"closestInterstates")?e.closestInterstates:void 0,buildingPicturesUrl:o.exists(e,"buildingPicturesUrl")?e.buildingPicturesUrl:void 0,buildingFloorPlansUrl:o.exists(e,"buildingFloorPlansUrl")?e.buildingFloorPlansUrl:void 0,nonexistentLayouts:o.exists(e,"nonexistentLayouts")?e.nonexistentLayouts:void 0,avoidQuotingPrices:o.exists(e,"avoidQuotingPrices")?e.avoidQuotingPrices:void 0,excludeNotRentReadyUnit:o.exists(e,"excludeNotRentReadyUnit")?e.excludeNotRentReadyUnit:void 0,flexWallsAllowed:o.exists(e,"flexWallsAllowed")?e.flexWallsAllowed:void 0,petsAccepted:o.exists(e,"petsAccepted")?e.petsAccepted:void 0,showOccupiedUnits:o.exists(e,"showOccupiedUnits")?e.showOccupiedUnits:void 0,guarantorsAcceptedSwitch:o.exists(e,"guarantorsAcceptedSwitch")?e.guarantorsAcceptedSwitch:void 0,thirdPartyGuarantorsAccepted:o.exists(e,"thirdPartyGuarantorsAccepted")?e.thirdPartyGuarantorsAccepted:void 0,leasingOfficeOnsite:o.exists(e,"leasingOfficeOnsite")?e.leasingOfficeOnsite:void 0,building3dMediaUrl:o.exists(e,"building3dMediaUrl")?e.building3dMediaUrl:void 0,inPersonToursAllowed:o.exists(e,"inPersonToursAllowed")?e.inPersonToursAllowed:void 0,selfGuidedToursEnabled:o.exists(e,"selfGuidedToursEnabled")?e.selfGuidedToursEnabled:void 0,noUnitSelfGuidedTourAllowed:o.exists(e,"noUnitSelfGuidedTourAllowed")?e.noUnitSelfGuidedTourAllowed:void 0,textForwardToEmails:o.exists(e,"textForwardToEmails")?e.textForwardToEmails:void 0,omitDesiredFloorPlan:o.exists(e,"omitDesiredFloorPlan")?e.omitDesiredFloorPlan:void 0,tourNotificationEmailsMode:o.exists(e,"tourNotificationEmailsMode")?e.tourNotificationEmailsMode:void 0,virtualTourType:o.exists(e,"virtualTourType")?e.virtualTourType:void 0,offeredLayouts:o.exists(e,"offeredLayouts")?e.offeredLayouts:void 0,weeklyReportEmails:o.exists(e,"weeklyReportEmails")?e.weeklyReportEmails:void 0,dailyReportEmails:o.exists(e,"dailyReportEmails")?e.dailyReportEmails:void 0,sgtUrl:o.exists(e,"sgtUrl")?e.sgtUrl:void 0,preRecordedVirtualTourUrl:o.exists(e,"preRecordedVirtualTourUrl")?e.preRecordedVirtualTourUrl:void 0,liveVirtualToursLink:o.exists(e,"liveVirtualToursLink")?e.liveVirtualToursLink:void 0,selfGuidedToursLink:o.exists(e,"selfGuidedToursLink")?e.selfGuidedToursLink:void 0}}(r=t.CommunityFormViewTourNotificationEmailsModeEnum||(t.CommunityFormViewTourNotificationEmailsModeEnum={})).NoNotification="NO_NOTIFICATION",r.AllViewings="ALL_VIEWINGS",r.SameDayViewings="SAME_DAY_VIEWINGS",(n=t.CommunityFormViewVirtualTourTypeEnum||(t.CommunityFormViewVirtualTourTypeEnum={})).NotEnabled="NOT_ENABLED",n.SelfManaged="SELF_MANAGED",n.Whereby="WHEREBY",t.CommunityFormViewFromJSON=function(e){return s(e)},t.CommunityFormViewFromJSONTyped=s,t.CommunityFormViewToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,managementCompanyId:e.managementCompanyId,organizationId:e.organizationId,active:e.active,handoffForwardToEmails:e.handoffForwardToEmails,responseCcEmails:e.responseCcEmails,responseBccEmails:e.responseBccEmails,buildingName:e.buildingName,address1:e.address1,address2:e.address2,address3:e.address3,city:e.city,state:e.state,postalCode:e.postalCode,crossStreets:e.crossStreets,neighborhood:e.neighborhood,nearbyTransportation:e.nearbyTransportation,totalUnits:e.totalUnits,totalFloors:e.totalFloors,greenBuilding:e.greenBuilding,elevator:e.elevator,freightElevator:e.freightElevator,petPolicy:e.petPolicy,petFeeOrDeposit:e.petFeeOrDeposit,utilitiesIncluded:e.utilitiesIncluded,utilitiesNotIncluded:e.utilitiesNotIncluded,minLeaseTermAccepted:e.minLeaseTermAccepted,furnishedOffered:e.furnishedOffered,furnishedUnitsPolicy:e.furnishedUnitsPolicy,internationalStudentRequirements:e.internationalStudentRequirements,amenitiesFee:e.amenitiesFee,corporateLeasesAccepted:e.corporateLeasesAccepted,doorman:e.doorman,intercom:e.intercom,liveInSuper:e.liveInSuper,concierge:e.concierge,laundryInBuilding:e.laundryInBuilding,packageReceiving:e.packageReceiving,gym:e.gym,storage:e.storage,bicycleRoom:e.bicycleRoom,lounge:e.lounge,clubHouse:e.clubHouse,businessCenter:e.businessCenter,outdoorSpace:e.outdoorSpace,roofDeck:e.roofDeck,courtyard:e.courtyard,childrenPlayroom:e.childrenPlayroom,nursery:e.nursery,maidService:e.maidService,pool:e.pool,wheelchairAccess:e.wheelchairAccess,thirdPartyGuarantorTypesAccepted:e.thirdPartyGuarantorTypesAccepted,noCreditQualificationAlternative:e.noCreditQualificationAlternative,virtualTourPlatforms:e.virtualTourPlatforms,flexWallPolicy:e.flexWallPolicy,leaseholderApplicationFee:e.leaseholderApplicationFee,guarantorApplicationFee:e.guarantorApplicationFee,tenantIncomeRequirementRentMultiplier:e.tenantIncomeRequirementRentMultiplier,guarantorIncomeRequirementRentMultiplier:e.guarantorIncomeRequirementRentMultiplier,leaseholderMinimumCreditScoreRequirement:e.leaseholderMinimumCreditScoreRequirement,guarantorMinimumCreditScoreRequirement:e.guarantorMinimumCreditScoreRequirement,leaseholderApplicationDocumentsRequired:e.leaseholderApplicationDocumentsRequired,guarantorsAccepted:e.guarantorsAccepted,prepaymentPolicy:e.prepaymentPolicy,rentRequiredOnLeaseSigning:e.rentRequiredOnLeaseSigning,paymentFormsAccepted:e.paymentFormsAccepted,leasingBrochureUrl:e.leasingBrochureUrl,leasingOfficeHours:e.leasingOfficeHours,appointmentHours:void 0===e.appointmentHours?void 0:e.appointmentHours.map(a.AppointmentHoursToJSON),occupiedUnitsShowingHours:e.occupiedUnitsShowingHours,tourDuration:e.tourDuration,leasingPhoneNumber:e.leasingPhoneNumber,callCenterNumber:e.callCenterNumber,buildingWebsiteUrl:e.buildingWebsiteUrl,applicationLink:e.applicationLink,geoAddress:e.geoAddress,googleMapsUrl:e.googleMapsUrl,appointmentMeetingLocation:e.appointmentMeetingLocation,appointmentDirections:e.appointmentDirections,appointmentAdditionalDirections:e.appointmentAdditionalDirections,rentComputeType:e.rentComputeType,autosendActive:e.autosendActive,advancedMoveInAllowenceInDays:e.advancedMoveInAllowenceInDays,showByOpenHouseOnly:e.showByOpenHouseOnly,showUnitsWithPendingApplication:e.showUnitsWithPendingApplication,showOccupiedUnitsWithPendingApplication:e.showOccupiedUnitsWithPendingApplication,confirmAppointmentsOccupiedUnits:e.confirmAppointmentsOccupiedUnits,confirmAppointmentsRenovatingUnits:e.confirmAppointmentsRenovatingUnits,occupiedUnitsAdvancedNoticeInHours:e.occupiedUnitsAdvancedNoticeInHours,alternativeBuildingNames:e.alternativeBuildingNames,externalIds:e.externalIds,externalCrmId:e.externalCrmId,defaultAvailabilityQuoteMatchMoveInDate:e.defaultAvailabilityQuoteMatchMoveInDate,leaseRenewalNoticeInDays:e.leaseRenewalNoticeInDays,rentQuoteFormat:e.rentQuoteFormat,rentWithIncentivesQuoteFormat:e.rentWithIncentivesQuoteFormat,effectiveRentComputeType:e.effectiveRentComputeType,maxLeaseTermAccepted:e.maxLeaseTermAccepted,parkingInformation:e.parkingInformation,storageFee:e.storageFee,incentivesProperlyConnected:e.incentivesProperlyConnected,prioritizeShowingVacantUnits:e.prioritizeShowingVacantUnits,electricCompany:e.electricCompany,gasCompany:e.gasCompany,telephoneCompany:e.telephoneCompany,televisionCompany:e.televisionCompany,waterCompany:e.waterCompany,internetCompany:e.internetCompany,localHospital:e.localHospital,localSchoolDistrict:e.localSchoolDistrict,localElementarySchool:e.localElementarySchool,localMiddleSchool:e.localMiddleSchool,localHighSchool:e.localHighSchool,localShoppingCenter:e.localShoppingCenter,localGroceryStore:e.localGroceryStore,closestInterstates:e.closestInterstates,buildingPicturesUrl:e.buildingPicturesUrl,buildingFloorPlansUrl:e.buildingFloorPlansUrl,nonexistentLayouts:e.nonexistentLayouts,avoidQuotingPrices:e.avoidQuotingPrices,excludeNotRentReadyUnit:e.excludeNotRentReadyUnit,flexWallsAllowed:e.flexWallsAllowed,petsAccepted:e.petsAccepted,showOccupiedUnits:e.showOccupiedUnits,guarantorsAcceptedSwitch:e.guarantorsAcceptedSwitch,thirdPartyGuarantorsAccepted:e.thirdPartyGuarantorsAccepted,leasingOfficeOnsite:e.leasingOfficeOnsite,building3dMediaUrl:e.building3dMediaUrl,inPersonToursAllowed:e.inPersonToursAllowed,selfGuidedToursEnabled:e.selfGuidedToursEnabled,noUnitSelfGuidedTourAllowed:e.noUnitSelfGuidedTourAllowed,textForwardToEmails:e.textForwardToEmails,omitDesiredFloorPlan:e.omitDesiredFloorPlan,tourNotificationEmailsMode:e.tourNotificationEmailsMode,virtualTourType:e.virtualTourType,offeredLayouts:e.offeredLayouts,weeklyReportEmails:e.weeklyReportEmails,dailyReportEmails:e.dailyReportEmails,sgtUrl:e.sgtUrl,preRecordedVirtualTourUrl:e.preRecordedVirtualTourUrl,liveVirtualToursLink:e.liveVirtualToursLink,selfGuidedToursLink:e.selfGuidedToursLink}}},2817:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunityPageBuildingToJSON=t.CommunityPageBuildingFromJSONTyped=t.CommunityPageBuildingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingName:n.exists(e,"buildingName")?e.buildingName:void 0,launchDate:n.exists(e,"launchDate")?new Date(e.launchDate):void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,organizationName:n.exists(e,"organizationName")?e.organizationName:void 0,assistantId:n.exists(e,"assistantId")?e.assistantId:void 0,assistantEmail:n.exists(e,"assistantEmail")?e.assistantEmail:void 0,externalIds:n.exists(e,"externalIds")?e.externalIds:void 0,externalCrmId:n.exists(e,"externalCrmId")?e.externalCrmId:void 0,id:n.exists(e,"id")?e.id:void 0,totalUnits:n.exists(e,"totalUnits")?e.totalUnits:void 0,address1:n.exists(e,"address1")?e.address1:void 0,city:n.exists(e,"city")?e.city:void 0,state:n.exists(e,"state")?e.state:void 0,postalCode:n.exists(e,"postalCode")?e.postalCode:void 0,active:n.exists(e,"active")?e.active:void 0,calendarId:n.exists(e,"calendarId")?e.calendarId:void 0}}t.CommunityPageBuildingFromJSON=function(e){return r(e)},t.CommunityPageBuildingFromJSONTyped=r,t.CommunityPageBuildingToJSON=function(e){if(void 0!==e)return null===e?null:{buildingName:e.buildingName,launchDate:void 0===e.launchDate?void 0:e.launchDate.toISOString(),organizationId:e.organizationId,organizationName:e.organizationName,assistantId:e.assistantId,assistantEmail:e.assistantEmail,externalIds:e.externalIds,externalCrmId:e.externalCrmId,id:e.id,totalUnits:e.totalUnits,address1:e.address1,city:e.city,state:e.state,postalCode:e.postalCode,active:e.active,calendarId:e.calendarId}}},9407:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextDtoToJSON=t.ContextDtoFromJSONTyped=t.ContextDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,leadId:n.exists(e,"leadId")?e.leadId:void 0,partyId:n.exists(e,"partyId")?e.partyId:void 0}}t.ContextDtoFromJSON=function(e){return r(e)},t.ContextDtoFromJSONTyped=r,t.ContextDtoToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,leadId:e.leadId,partyId:e.partyId}}},7058:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationToJSON=t.ConversationFromJSONTyped=t.ConversationFromJSON=void 0;var n=i(296),r=i(3531);function o(e,t){return null==e?e:{leadContact:n.exists(e,"leadContact")?e.leadContact:void 0,conversations:n.exists(e,"conversations")?e.conversations.map(r.ConversationMessageFromJSON):void 0}}t.ConversationFromJSON=function(e){return o(e)},t.ConversationFromJSONTyped=o,t.ConversationToJSON=function(e){if(void 0!==e)return null===e?null:{leadContact:e.leadContact,conversations:void 0===e.conversations?void 0:e.conversations.map(r.ConversationMessageToJSON)}}},3531:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationMessageToJSON=t.ConversationMessageFromJSONTyped=t.ConversationMessageFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{sender:n.exists(e,"sender")?e.sender:void 0,body:n.exists(e,"body")?e.body:void 0,timeSent:n.exists(e,"timeSent")?e.timeSent:void 0}}t.ConversationMessageFromJSON=function(e){return r(e)},t.ConversationMessageFromJSONTyped=r,t.ConversationMessageToJSON=function(e){if(void 0!==e)return null===e?null:{sender:e.sender,body:e.body,timeSent:e.timeSent}}},6613:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationMessageV2ToJSON=t.ConversationMessageV2FromJSONTyped=t.ConversationMessageV2FromJSON=t.ConversationMessageV2TypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{type:r.exists(e,"type")?e.type:void 0,id:r.exists(e,"id")?e.id:void 0,timeSent:r.exists(e,"timeSent")?new Date(e.timeSent):void 0,body:r.exists(e,"body")?e.body:void 0,sender:r.exists(e,"sender")?e.sender:void 0,subject:r.exists(e,"subject")?e.subject:void 0,threadId:r.exists(e,"threadId")?e.threadId:void 0}}(n=t.ConversationMessageV2TypeEnum||(t.ConversationMessageV2TypeEnum={})).WebChat="WebChat",n.Email="Email",n.Text="Text",t.ConversationMessageV2FromJSON=function(e){return o(e)},t.ConversationMessageV2FromJSONTyped=o,t.ConversationMessageV2ToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type,id:e.id,timeSent:void 0===e.timeSent?void 0:e.timeSent.toISOString(),body:e.body,sender:e.sender,subject:e.subject,threadId:e.threadId}}},5040:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationV2ToJSON=t.ConversationV2FromJSONTyped=t.ConversationV2FromJSON=void 0;var n=i(296),r=i(6613),o=i(7662);function a(e,t){return null==e?e:{lead:n.exists(e,"lead")?o.LeadInfoFromJSON(e.lead):void 0,conversations:n.exists(e,"conversations")?e.conversations.map(r.ConversationMessageV2FromJSON):void 0}}t.ConversationV2FromJSON=function(e){return a(e)},t.ConversationV2FromJSONTyped=a,t.ConversationV2ToJSON=function(e){if(void 0!==e)return null===e?null:{lead:o.LeadInfoToJSON(e.lead),conversations:void 0===e.conversations?void 0:e.conversations.map(r.ConversationMessageV2ToJSON)}}},5111:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateCalendarEventTourHandlerDtoToJSON=t.CreateCalendarEventTourHandlerDtoFromJSONTyped=t.CreateCalendarEventTourHandlerDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId}}t.CreateCalendarEventTourHandlerDtoFromJSON=function(e){return r(e)},t.CreateCalendarEventTourHandlerDtoFromJSONTyped=r,t.CreateCalendarEventTourHandlerDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId}}},3202:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateScriptRequestToJSON=t.CreateScriptRequestFromJSONTyped=t.CreateScriptRequestFromJSON=t.CreateScriptRequestHandoffIntentStateEnum=t.CreateScriptRequestTypeEnum=t.CreateScriptRequestMediaEnum=void 0;var n,r,o,a=i(296);function s(e,t){return null==e?e:{organizationId:a.exists(e,"organizationId")?e.organizationId:void 0,media:e.media,type:e.type,category:e.category,subIntent:a.exists(e,"subIntent")?e.subIntent:void 0,text:e.text,handoffIntentState:a.exists(e,"handoffIntentState")?e.handoffIntentState:void 0,communityId:a.exists(e,"communityId")?e.communityId:void 0}}(o=t.CreateScriptRequestMediaEnum||(t.CreateScriptRequestMediaEnum={})).Both="BOTH",o.Email="EMAIL",o.Sms="SMS",(r=t.CreateScriptRequestTypeEnum||(t.CreateScriptRequestTypeEnum={})).All="ALL",r.Template="TEMPLATE",r.TemplateItem="TEMPLATE_ITEM",(n=t.CreateScriptRequestHandoffIntentStateEnum||(t.CreateScriptRequestHandoffIntentStateEnum={})).None="NONE",n.YellowStatus="YELLOW_STATUS",n.RedAlertSend="RED_ALERT_SEND",n.RedAlertDoNotSend="RED_ALERT_DO_NOT_SEND",t.CreateScriptRequestFromJSON=function(e){return s(e)},t.CreateScriptRequestFromJSONTyped=s,t.CreateScriptRequestToJSON=function(e){if(void 0!==e)return null===e?null:{organizationId:e.organizationId,media:e.media,type:e.type,category:e.category,subIntent:e.subIntent,text:e.text,handoffIntentState:e.handoffIntentState,communityId:e.communityId}}},6058:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateWhitelistConfigRequestToJSON=t.CreateWhitelistConfigRequestFromJSONTyped=t.CreateWhitelistConfigRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,testName:n.exists(e,"testName")?e.testName:void 0,whitelistingEmail:n.exists(e,"whitelistingEmail")?e.whitelistingEmail:void 0}}t.CreateWhitelistConfigRequestFromJSON=function(e){return r(e)},t.CreateWhitelistConfigRequestFromJSONTyped=r,t.CreateWhitelistConfigRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,testName:e.testName,whitelistingEmail:e.whitelistingEmail}}},3817:(e,t)=>{function i(e,t){return null==e?e:{startOfRange:new Date(e.startOfRange),endOfRange:new Date(e.endOfRange),buildingId:e.buildingId,numAiMessagesSent:e.numAiMessagesSent,numAiSentEmailFollowup:e.numAiSentEmailFollowup,numAiSentTextFollowup:e.numAiSentTextFollowup,averageMessagesPerProspect:e.averageMessagesPerProspect,prospectToTourConversion:e.prospectToTourConversion,numTours:e.numTours,tourBookedByMENoncancelled:e.tourBookedByMENoncancelled,tourAttended:e.tourAttended,aiBookedTourAttended:e.aiBookedTourAttended,newProspectsHandled:e.newProspectsHandled,hoursSavedByAi:e.hoursSavedByAi,numEarlyAgentTakeover:e.numEarlyAgentTakeover,numPassToAgent:e.numPassToAgent,numActionRequiredFromAgent:e.numActionRequiredFromAgent,numberLeadsApplied:e.numberLeadsApplied}}Object.defineProperty(t,"__esModule",{value:!0}),t.DateRangeReportToJSON=t.DateRangeReportFromJSONTyped=t.DateRangeReportFromJSON=void 0,t.DateRangeReportFromJSON=function(e){return i(e)},t.DateRangeReportFromJSONTyped=i,t.DateRangeReportToJSON=function(e){if(void 0!==e)return null===e?null:{startOfRange:e.startOfRange.toISOString(),endOfRange:e.endOfRange.toISOString(),buildingId:e.buildingId,numAiMessagesSent:e.numAiMessagesSent,numAiSentEmailFollowup:e.numAiSentEmailFollowup,numAiSentTextFollowup:e.numAiSentTextFollowup,averageMessagesPerProspect:e.averageMessagesPerProspect,prospectToTourConversion:e.prospectToTourConversion,numTours:e.numTours,tourBookedByMENoncancelled:e.tourBookedByMENoncancelled,tourAttended:e.tourAttended,aiBookedTourAttended:e.aiBookedTourAttended,newProspectsHandled:e.newProspectsHandled,hoursSavedByAi:e.hoursSavedByAi,numEarlyAgentTakeover:e.numEarlyAgentTakeover,numPassToAgent:e.numPassToAgent,numActionRequiredFromAgent:e.numActionRequiredFromAgent,numberLeadsApplied:e.numberLeadsApplied}}},8882:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogueScriptToJSON=t.DialogueScriptFromJSONTyped=t.DialogueScriptFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,deleted:n.exists(e,"deleted")?e.deleted:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,name:n.exists(e,"name")?e.name:void 0,subintent:n.exists(e,"subintent")?e.subintent:void 0,text:n.exists(e,"text")?e.text:void 0}}t.DialogueScriptFromJSON=function(e){return r(e)},t.DialogueScriptFromJSONTyped=r,t.DialogueScriptToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,deleted:e.deleted,buildingId:e.buildingId,organizationId:e.organizationId,name:e.name,subintent:e.subintent,text:e.text}}},6607:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EliseCalendarEventToJSON=t.EliseCalendarEventFromJSONTyped=t.EliseCalendarEventFromJSON=t.EliseCalendarEventTourTypeEnum=t.EliseCalendarEventSmartLockAccessTypeEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,leadId:o.exists(e,"leadId")?e.leadId:void 0,userId:o.exists(e,"userId")?e.userId:void 0,calendarId:o.exists(e,"calendarId")?e.calendarId:void 0,contextId:o.exists(e,"contextId")?e.contextId:void 0,recurringEventId:o.exists(e,"recurringEventId")?e.recurringEventId:void 0,timeCreated:o.exists(e,"timeCreated")?new Date(e.timeCreated):void 0,description:o.exists(e,"description")?e.description:void 0,status:o.exists(e,"status")?e.status:void 0,summary:o.exists(e,"summary")?e.summary:void 0,eventLocation:o.exists(e,"eventLocation")?e.eventLocation:void 0,startTime:o.exists(e,"startTime")?new Date(e.startTime):void 0,endTime:o.exists(e,"endTime")?new Date(e.endTime):void 0,startTimeString:o.exists(e,"startTimeString")?e.startTimeString:void 0,endTimeString:o.exists(e,"endTimeString")?e.endTimeString:void 0,startTimeInUtc:o.exists(e,"startTimeInUtc")?e.startTimeInUtc:void 0,endTimeInUtc:o.exists(e,"endTimeInUtc")?e.endTimeInUtc:void 0,lastTimeUpdated:o.exists(e,"lastTimeUpdated")?new Date(e.lastTimeUpdated):void 0,recurringEvent:o.exists(e,"recurringEvent")?e.recurringEvent:void 0,recurringEventLatestTimestampStoredUntil:o.exists(e,"recurringEventLatestTimestampStoredUntil")?new Date(e.recurringEventLatestTimestampStoredUntil):void 0,preserveOnReset:o.exists(e,"preserveOnReset")?e.preserveOnReset:void 0,internalEvent:o.exists(e,"internalEvent")?e.internalEvent:void 0,skipExternalBooking:o.exists(e,"skipExternalBooking")?e.skipExternalBooking:void 0,ignoreOtherEvents:o.exists(e,"ignoreOtherEvents")?e.ignoreOtherEvents:void 0,htmlLink:o.exists(e,"htmlLink")?e.htmlLink:void 0,geteTag:o.exists(e,"geteTag")?e.geteTag:void 0,getiCalUID:o.exists(e,"getiCalUID")?e.getiCalUID:void 0,eventId:o.exists(e,"eventId")?e.eventId:void 0,creatorName:o.exists(e,"creatorName")?e.creatorName:void 0,creatorEmail:o.exists(e,"creatorEmail")?e.creatorEmail:void 0,organizerName:o.exists(e,"organizerName")?e.organizerName:void 0,organizerEmail:o.exists(e,"organizerEmail")?e.organizerEmail:void 0,transparency:o.exists(e,"transparency")?e.transparency:void 0,visibility:o.exists(e,"visibility")?e.visibility:void 0,colorId:o.exists(e,"colorId")?e.colorId:void 0,availabilityStatus:o.exists(e,"availabilityStatus")?e.availabilityStatus:void 0,relevantMessageId:o.exists(e,"relevantMessageId")?e.relevantMessageId:void 0,isPredicted:o.exists(e,"isPredicted")?e.isPredicted:void 0,isArchived:o.exists(e,"isArchived")?e.isArchived:void 0,smartLockAccessType:o.exists(e,"smartLockAccessType")?e.smartLockAccessType:void 0,traineeEmail:o.exists(e,"traineeEmail")?e.traineeEmail:void 0,notes:o.exists(e,"notes")?e.notes:void 0,tourType:o.exists(e,"tourType")?e.tourType:void 0,busy:o.exists(e,"busy")?e.busy:void 0,cancelled:o.exists(e,"cancelled")?e.cancelled:void 0,_new:o.exists(e,"new")?e.new:void 0}}(r=t.EliseCalendarEventSmartLockAccessTypeEnum||(t.EliseCalendarEventSmartLockAccessTypeEnum={})).WithAgent="WITH_AGENT",r.ExternallyManaged="EXTERNALLY_MANAGED",r.SmartKeyAccessManaged="SMART_KEY_ACCESS_MANAGED",(n=t.EliseCalendarEventTourTypeEnum||(t.EliseCalendarEventTourTypeEnum={})).Unknown="UNKNOWN",n.None="NONE",n.Any="ANY",n.NotEscorted="NOT_ESCORTED",n.Escorted="ESCORTED",n.NotSelfGuided="NOT_SELF_GUIDED",n.SelfGuided="SELF_GUIDED",n.NotVirtualTour="NOT_VIRTUAL_TOUR",n.VirtualTour="VIRTUAL_TOUR",n.NotMediaTour="NOT_MEDIA_TOUR",n.MediaTour="MEDIA_TOUR",t.EliseCalendarEventFromJSON=function(e){return a(e)},t.EliseCalendarEventFromJSONTyped=a,t.EliseCalendarEventToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,leadId:e.leadId,userId:e.userId,calendarId:e.calendarId,contextId:e.contextId,recurringEventId:e.recurringEventId,timeCreated:void 0===e.timeCreated?void 0:e.timeCreated.toISOString(),description:e.description,status:e.status,summary:e.summary,eventLocation:e.eventLocation,startTime:void 0===e.startTime?void 0:e.startTime.toISOString(),endTime:void 0===e.endTime?void 0:e.endTime.toISOString(),startTimeString:e.startTimeString,endTimeString:e.endTimeString,startTimeInUtc:e.startTimeInUtc,endTimeInUtc:e.endTimeInUtc,lastTimeUpdated:void 0===e.lastTimeUpdated?void 0:e.lastTimeUpdated.toISOString(),recurringEvent:e.recurringEvent,recurringEventLatestTimestampStoredUntil:void 0===e.recurringEventLatestTimestampStoredUntil?void 0:e.recurringEventLatestTimestampStoredUntil.toISOString(),preserveOnReset:e.preserveOnReset,internalEvent:e.internalEvent,skipExternalBooking:e.skipExternalBooking,ignoreOtherEvents:e.ignoreOtherEvents,htmlLink:e.htmlLink,geteTag:e.geteTag,getiCalUID:e.getiCalUID,eventId:e.eventId,creatorName:e.creatorName,creatorEmail:e.creatorEmail,organizerName:e.organizerName,organizerEmail:e.organizerEmail,transparency:e.transparency,visibility:e.visibility,colorId:e.colorId,availabilityStatus:e.availabilityStatus,relevantMessageId:e.relevantMessageId,isPredicted:e.isPredicted,isArchived:e.isArchived,smartLockAccessType:e.smartLockAccessType,traineeEmail:e.traineeEmail,notes:e.notes,tourType:e.tourType,busy:e.busy,cancelled:e.cancelled,new:e._new}}},5007:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EliseGuestCardDtoToJSON=t.EliseGuestCardDtoFromJSONTyped=t.EliseGuestCardDtoFromJSON=t.EliseGuestCardDtoInitialLeadChannelEnum=t.EliseGuestCardDtoIntegrationSourceEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,firstName:o.exists(e,"firstName")?e.firstName:void 0,lastName:o.exists(e,"lastName")?e.lastName:void 0,phoneNumber:o.exists(e,"phoneNumber")?e.phoneNumber:void 0,email:o.exists(e,"email")?e.email:void 0,source:o.exists(e,"source")?e.source:void 0,externalClientMarketingSource:o.exists(e,"externalClientMarketingSource")?e.externalClientMarketingSource:void 0,desiredMoveInDate:o.exists(e,"desiredMoveInDate")?e.desiredMoveInDate:void 0,comments:o.exists(e,"comments")?e.comments:void 0,integrationSource:o.exists(e,"integrationSource")?e.integrationSource:void 0,initialLeadChannel:o.exists(e,"initialLeadChannel")?e.initialLeadChannel:void 0,layout:o.exists(e,"layout")?e.layout:void 0,desiredLeaseTerm:o.exists(e,"desiredLeaseTerm")?e.desiredLeaseTerm:void 0}}(r=t.EliseGuestCardDtoIntegrationSourceEnum||(t.EliseGuestCardDtoIntegrationSourceEnum={})).MeCalendar="ME-Calendar",r.Sst="sst",r.EqrApi="eqr-api",r.Elise="Elise",r.Avb="avb",r.Yardi="yardi",r.Entrata="entrata",r.Anyonehome="anyonehome",r.Realpage="realpage",(n=t.EliseGuestCardDtoInitialLeadChannelEnum||(t.EliseGuestCardDtoInitialLeadChannelEnum={})).WalkIn="WALK_IN",n.CallToProspect="CALL_TO_PROSPECT",n.CallFromProspect="CALL_FROM_PROSPECT",n.Other="OTHER",n.Text="TEXT",n.Email="EMAIL",n.WebService="WEB_SERVICE",n.Chat="CHAT",t.EliseGuestCardDtoFromJSON=function(e){return a(e)},t.EliseGuestCardDtoFromJSONTyped=a,t.EliseGuestCardDtoToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,firstName:e.firstName,lastName:e.lastName,phoneNumber:e.phoneNumber,email:e.email,source:e.source,externalClientMarketingSource:e.externalClientMarketingSource,desiredMoveInDate:e.desiredMoveInDate,comments:e.comments,integrationSource:e.integrationSource,initialLeadChannel:e.initialLeadChannel,layout:e.layout,desiredLeaseTerm:e.desiredLeaseTerm}}},1057:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EliseMessageIntentToJSON=t.EliseMessageIntentFromJSONTyped=t.EliseMessageIntentFromJSON=t.EliseMessageIntentMessageTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{id:r.exists(e,"id")?e.id:void 0,clientEmail:r.exists(e,"clientEmail")?e.clientEmail:void 0,leadEmail:r.exists(e,"leadEmail")?e.leadEmail:void 0,leadId:r.exists(e,"leadId")?e.leadId:void 0,hotMailId:r.exists(e,"hotMailId")?e.hotMailId:void 0,intentNameClassifiedAuto:r.exists(e,"intentNameClassifiedAuto")?e.intentNameClassifiedAuto:void 0,intentValue:r.exists(e,"intentValue")?e.intentValue:void 0,intentClassifer:r.exists(e,"intentClassifer")?e.intentClassifer:void 0,type:r.exists(e,"type")?e.type:void 0,verifiedHuman:r.exists(e,"verifiedHuman")?e.verifiedHuman:void 0,intentNameClassifiedManual:r.exists(e,"intentNameClassifiedManual")?e.intentNameClassifiedManual:void 0,intentNameSubintentClassifiedManual:r.exists(e,"intentNameSubintentClassifiedManual")?e.intentNameSubintentClassifiedManual:void 0,responseRequiringApprovalId:r.exists(e,"responseRequiringApprovalId")?e.responseRequiringApprovalId:void 0,pendingApproval:r.exists(e,"pendingApproval")?e.pendingApproval:void 0,strippedText:r.exists(e,"strippedText")?e.strippedText:void 0,isDeleted:r.exists(e,"isDeleted")?e.isDeleted:void 0,hotMailGmailMessageId:r.exists(e,"hotMailGmailMessageId")?e.hotMailGmailMessageId:void 0,processed:r.exists(e,"processed")?e.processed:void 0,getzIndex:r.exists(e,"getzIndex")?e.getzIndex:void 0,descriptiveNounForUnknownIntent:r.exists(e,"descriptiveNounForUnknownIntent")?e.descriptiveNounForUnknownIntent:void 0,aiTrainerInstructions:r.exists(e,"aiTrainerInstructions")?e.aiTrainerInstructions:void 0,messageType:r.exists(e,"messageType")?e.messageType:void 0,tag:r.exists(e,"tag")?e.tag:void 0}}(n=t.EliseMessageIntentMessageTypeEnum||(t.EliseMessageIntentMessageTypeEnum={})).EmailIntent="EMAIL_INTENT",n.TextIntent="TEXT_INTENT",t.EliseMessageIntentFromJSON=function(e){return o(e)},t.EliseMessageIntentFromJSONTyped=o,t.EliseMessageIntentToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,clientEmail:e.clientEmail,leadEmail:e.leadEmail,leadId:e.leadId,hotMailId:e.hotMailId,intentNameClassifiedAuto:e.intentNameClassifiedAuto,intentValue:e.intentValue,intentClassifer:e.intentClassifer,type:e.type,verifiedHuman:e.verifiedHuman,intentNameClassifiedManual:e.intentNameClassifiedManual,intentNameSubintentClassifiedManual:e.intentNameSubintentClassifiedManual,responseRequiringApprovalId:e.responseRequiringApprovalId,pendingApproval:e.pendingApproval,strippedText:e.strippedText,isDeleted:e.isDeleted,hotMailGmailMessageId:e.hotMailGmailMessageId,processed:e.processed,getzIndex:e.getzIndex,descriptiveNounForUnknownIntent:e.descriptiveNounForUnknownIntent,aiTrainerInstructions:e.aiTrainerInstructions,messageType:e.messageType,tag:e.tag}}},7009:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ElisePredictedResponseToJSON=t.ElisePredictedResponseFromJSONTyped=t.ElisePredictedResponseFromJSON=void 0;var n=i(296),r=i(1234),o=i(1057),a=i(6045),s=i(8385);function l(e,t){return null==e?e:{responseMessageBody:n.exists(e,"responseMessageBody")?e.responseMessageBody:void 0,responseTemplate:n.exists(e,"responseTemplate")?e.responseTemplate:void 0,intents:n.exists(e,"intents")?e.intents.map(o.EliseMessageIntentFromJSON):void 0,attachments:n.exists(e,"attachments")?e.attachments.map(r.AttachmentFromJSON):void 0,workInProgressMessageBody:n.exists(e,"workInProgressMessageBody")?e.workInProgressMessageBody:void 0,forcedIntents:n.exists(e,"forcedIntents")?e.forcedIntents.map(a.ForcedIntentFromJSON):void 0,atomicTemplateIntentMapWithSubIntent:n.exists(e,"atomicTemplateIntentMapWithSubIntent")?n.mapValues(e.atomicTemplateIntentMapWithSubIntent,s.ResponseAtomicTemplateFromJSON):void 0}}t.ElisePredictedResponseFromJSON=function(e){return l(e)},t.ElisePredictedResponseFromJSONTyped=l,t.ElisePredictedResponseToJSON=function(e){if(void 0!==e)return null===e?null:{responseMessageBody:e.responseMessageBody,responseTemplate:e.responseTemplate,intents:void 0===e.intents?void 0:e.intents.map(o.EliseMessageIntentToJSON),attachments:void 0===e.attachments?void 0:e.attachments.map(r.AttachmentToJSON),workInProgressMessageBody:e.workInProgressMessageBody,forcedIntents:void 0===e.forcedIntents?void 0:e.forcedIntents.map(a.ForcedIntentToJSON),atomicTemplateIntentMapWithSubIntent:void 0===e.atomicTemplateIntentMapWithSubIntent?void 0:n.mapValues(e.atomicTemplateIntentMapWithSubIntent,s.ResponseAtomicTemplateToJSON)}}},3694:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EntityConfigToJSON=t.EntityConfigFromJSONTyped=t.EntityConfigFromJSON=void 0;var n=i(296),r=i(4105);function o(e,t){return null==e?e:{options:n.exists(e,"options")?r.EntityOptionsFromJSON(e.options):void 0,entityIds:n.exists(e,"entity_ids")?e.entity_ids:void 0}}t.EntityConfigFromJSON=function(e){return o(e)},t.EntityConfigFromJSONTyped=o,t.EntityConfigToJSON=function(e){if(void 0!==e)return null===e?null:{options:r.EntityOptionsToJSON(e.options),entity_ids:e.entityIds}}},4105:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EntityOptionsToJSON=t.EntityOptionsFromJSONTyped=t.EntityOptionsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{active:n.exists(e,"active")?e.active:void 0,test:n.exists(e,"test")?e.test:void 0}}t.EntityOptionsFromJSON=function(e){return r(e)},t.EntityOptionsFromJSONTyped=r,t.EntityOptionsToJSON=function(e){if(void 0!==e)return null===e?null:{active:e.active,test:e.test}}},9861:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EntrataCredentialsToJSON=t.EntrataCredentialsFromJSONTyped=t.EntrataCredentialsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,domain:n.exists(e,"domain")?e.domain:void 0,userName:n.exists(e,"userName")?e.userName:void 0,password:n.exists(e,"password")?e.password:void 0}}t.EntrataCredentialsFromJSON=function(e){return r(e)},t.EntrataCredentialsFromJSONTyped=r,t.EntrataCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,domain:e.domain,userName:e.userName,password:e.password}}},8442:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalBuildingAgentToJSON=t.ExternalBuildingAgentFromJSONTyped=t.ExternalBuildingAgentFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,externalId:n.exists(e,"externalId")?e.externalId:void 0,agentFirstName:n.exists(e,"agentFirstName")?e.agentFirstName:void 0,agentLastName:n.exists(e,"agentLastName")?e.agentLastName:void 0,isDefaultAgent:n.exists(e,"isDefaultAgent")?e.isDefaultAgent:void 0,active:n.exists(e,"active")?e.active:void 0}}t.ExternalBuildingAgentFromJSON=function(e){return r(e)},t.ExternalBuildingAgentFromJSONTyped=r,t.ExternalBuildingAgentToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,externalId:e.externalId,agentFirstName:e.agentFirstName,agentLastName:e.agentLastName,isDefaultAgent:e.isDefaultAgent,active:e.active}}},6885:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalBuildingSourceToJSON=t.ExternalBuildingSourceFromJSONTyped=t.ExternalBuildingSourceFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,source:n.exists(e,"source")?e.source:void 0,eliseSource:n.exists(e,"eliseSource")?e.eliseSource:void 0,isDefaultCatchall:n.exists(e,"isDefaultCatchall")?e.isDefaultCatchall:void 0}}t.ExternalBuildingSourceFromJSON=function(e){return r(e)},t.ExternalBuildingSourceFromJSONTyped=r,t.ExternalBuildingSourceToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,source:e.source,eliseSource:e.eliseSource,isDefaultCatchall:e.isDefaultCatchall}}},7934:(e,t)=>{function i(e,t){return null==e?e:{value:e.value,label:e.label}}var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FirstContactOptionToJSON=t.FirstContactOptionFromJSONTyped=t.FirstContactOptionFromJSON=t.FirstContactOptionValueEnum=void 0,(n=t.FirstContactOptionValueEnum||(t.FirstContactOptionValueEnum={})).CallFromProspect="CALL_FROM_PROSPECT",n.CallToProspect="CALL_TO_PROSPECT",n.Email="EMAIL",n.WalkIn="WALK_IN",n.Text="TEXT",n.WebService="WEB_SERVICE",n.Chat="CHAT",n.Other="OTHER",t.FirstContactOptionFromJSON=function(e){return i(e)},t.FirstContactOptionFromJSONTyped=i,t.FirstContactOptionToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,label:e.label}}},3905:(e,t)=>{function i(e,t){return null==e?e:{contextId:e.contextId,leadStatus:e.leadStatus}}Object.defineProperty(t,"__esModule",{value:!0}),t.FollowUpParamsToJSON=t.FollowUpParamsFromJSONTyped=t.FollowUpParamsFromJSON=void 0,t.FollowUpParamsFromJSON=function(e){return i(e)},t.FollowUpParamsFromJSONTyped=i,t.FollowUpParamsToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,leadStatus:e.leadStatus}}},3958:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FollowUpSettingsToJSON=t.FollowUpSettingsFromJSONTyped=t.FollowUpSettingsFromJSON=void 0;var n=i(296),r=i(4401),o=i(3832),a=i(1431),s=i(908),l=i(3231);function u(e,t){return null==e?e:{longTermPostTourFollowUpSettings:n.exists(e,"longTermPostTourFollowUpSettings")?e.longTermPostTourFollowUpSettings.map(o.LongTermPostTourFollowUpSettingFromJSON):void 0,longTermFollowUpSettings:n.exists(e,"longTermFollowUpSettings")?e.longTermFollowUpSettings.map(r.LongTermFollowUpSettingFromJSON):void 0,postTourFollowUpSettings:n.exists(e,"postTourFollowUpSettings")?e.postTourFollowUpSettings.map(s.PostTourFollowUpSettingFromJSON):void 0,preTourFollowUpSettings:n.exists(e,"preTourFollowUpSettings")?e.preTourFollowUpSettings.map(l.PreTourFollowUpSettingFromJSON):void 0,noShowFollowUpSettings:n.exists(e,"noShowFollowUpSettings")?e.noShowFollowUpSettings.map(a.NoShowFollowUpSettingFromJSON):void 0}}t.FollowUpSettingsFromJSON=function(e){return u(e)},t.FollowUpSettingsFromJSONTyped=u,t.FollowUpSettingsToJSON=function(e){if(void 0!==e)return null===e?null:{longTermPostTourFollowUpSettings:void 0===e.longTermPostTourFollowUpSettings?void 0:e.longTermPostTourFollowUpSettings.map(o.LongTermPostTourFollowUpSettingToJSON),longTermFollowUpSettings:void 0===e.longTermFollowUpSettings?void 0:e.longTermFollowUpSettings.map(r.LongTermFollowUpSettingToJSON),postTourFollowUpSettings:void 0===e.postTourFollowUpSettings?void 0:e.postTourFollowUpSettings.map(s.PostTourFollowUpSettingToJSON),preTourFollowUpSettings:void 0===e.preTourFollowUpSettings?void 0:e.preTourFollowUpSettings.map(l.PreTourFollowUpSettingToJSON),noShowFollowUpSettings:void 0===e.noShowFollowUpSettings?void 0:e.noShowFollowUpSettings.map(a.NoShowFollowUpSettingToJSON)}}},6045:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ForcedIntentToJSON=t.ForcedIntentFromJSONTyped=t.ForcedIntentFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,gmailMessageId:n.exists(e,"gmailMessageId")?e.gmailMessageId:void 0,intentName:n.exists(e,"intentName")?e.intentName:void 0,timeCreated:n.exists(e,"timeCreated")?new Date(e.timeCreated):void 0}}t.ForcedIntentFromJSON=function(e){return r(e)},t.ForcedIntentFromJSONTyped=r,t.ForcedIntentToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,gmailMessageId:e.gmailMessageId,intentName:e.intentName,timeCreated:void 0===e.timeCreated?void 0:e.timeCreated.toISOString()}}},6465:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenerateAndSendExcelReportsOverrideSettingsToJSON=t.GenerateAndSendExcelReportsOverrideSettingsFromJSONTyped=t.GenerateAndSendExcelReportsOverrideSettingsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{reportIds:n.exists(e,"reportIds")?e.reportIds:void 0,recipients:n.exists(e,"recipients")?e.recipients:void 0,dontSend:n.exists(e,"dontSend")?e.dontSend:void 0}}t.GenerateAndSendExcelReportsOverrideSettingsFromJSON=function(e){return r(e)},t.GenerateAndSendExcelReportsOverrideSettingsFromJSONTyped=r,t.GenerateAndSendExcelReportsOverrideSettingsToJSON=function(e){if(void 0!==e)return null===e?null:{reportIds:e.reportIds,recipients:e.recipients,dontSend:e.dontSend}}},1204:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GeolocationToJSON=t.GeolocationFromJSONTyped=t.GeolocationFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{latitude:n.exists(e,"latitude")?e.latitude:void 0,longitude:n.exists(e,"longitude")?e.longitude:void 0}}t.GeolocationFromJSON=function(e){return r(e)},t.GeolocationFromJSONTyped=r,t.GeolocationToJSON=function(e){if(void 0!==e)return null===e?null:{latitude:e.latitude,longitude:e.longitude}}},7895:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetMEHomeDashboardInfoDtoToJSON=t.GetMEHomeDashboardInfoDtoFromJSONTyped=t.GetMEHomeDashboardInfoDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,startOfReportRange:n.exists(e,"startOfReportRange")?e.startOfReportRange:void 0,endOfReportRange:n.exists(e,"endOfReportRange")?e.endOfReportRange:void 0,startOfCalendarEventRange:n.exists(e,"startOfCalendarEventRange")?e.startOfCalendarEventRange:void 0,endOfCalendarEventRange:n.exists(e,"endOfCalendarEventRange")?e.endOfCalendarEventRange:void 0}}t.GetMEHomeDashboardInfoDtoFromJSON=function(e){return r(e)},t.GetMEHomeDashboardInfoDtoFromJSONTyped=r,t.GetMEHomeDashboardInfoDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,startOfReportRange:e.startOfReportRange,endOfReportRange:e.endOfReportRange,startOfCalendarEventRange:e.startOfCalendarEventRange,endOfCalendarEventRange:e.endOfCalendarEventRange}}},4326:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetOrCreateContextDtoToJSON=t.GetOrCreateContextDtoFromJSONTyped=t.GetOrCreateContextDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{userId:n.exists(e,"userId")?e.userId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.GetOrCreateContextDtoFromJSON=function(e){return r(e)},t.GetOrCreateContextDtoFromJSONTyped=r,t.GetOrCreateContextDtoToJSON=function(e){if(void 0!==e)return null===e?null:{userId:e.userId,buildingId:e.buildingId}}},2610:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetReportsForBuildingAndDateRangeDtoToJSON=t.GetReportsForBuildingAndDateRangeDtoFromJSONTyped=t.GetReportsForBuildingAndDateRangeDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,startTime:n.exists(e,"startTime")?e.startTime:void 0,endTime:n.exists(e,"endTime")?e.endTime:void 0}}t.GetReportsForBuildingAndDateRangeDtoFromJSON=function(e){return r(e)},t.GetReportsForBuildingAndDateRangeDtoFromJSONTyped=r,t.GetReportsForBuildingAndDateRangeDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,startTime:e.startTime,endTime:e.endTime}}},1960:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetReportsForBuildingsAndDateRangeDtoToJSON=t.GetReportsForBuildingsAndDateRangeDtoFromJSONTyped=t.GetReportsForBuildingsAndDateRangeDtoFromJSON=t.GetReportsForBuildingsAndDateRangeDtoTimeFrequencyEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{buildingIds:r.exists(e,"buildingIds")?e.buildingIds:void 0,startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,timeFrequency:r.exists(e,"timeFrequency")?e.timeFrequency:void 0}}(n=t.GetReportsForBuildingsAndDateRangeDtoTimeFrequencyEnum||(t.GetReportsForBuildingsAndDateRangeDtoTimeFrequencyEnum={})).None="NONE",n.Hourly="HOURLY",n.Daily="DAILY",n.Weekly="WEEKLY",n.Monthly="MONTHLY",n.Yearly="YEARLY",t.GetReportsForBuildingsAndDateRangeDtoFromJSON=function(e){return o(e)},t.GetReportsForBuildingsAndDateRangeDtoFromJSONTyped=o,t.GetReportsForBuildingsAndDateRangeDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingIds:e.buildingIds,startTime:e.startTime,endTime:e.endTime,timeFrequency:e.timeFrequency}}},9233:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetUnitAvailabilitiesRequestToJSON=t.GetUnitAvailabilitiesRequestFromJSONTyped=t.GetUnitAvailabilitiesRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{moveInStart:n.exists(e,"moveInStart")?e.moveInStart:void 0,moveInEnd:n.exists(e,"moveInEnd")?e.moveInEnd:void 0,buildingName:n.exists(e,"buildingName")?e.buildingName:void 0,buildingAddress:n.exists(e,"buildingAddress")?e.buildingAddress:void 0,buildingZip:n.exists(e,"buildingZip")?e.buildingZip:void 0,preferredUnitNumbers:n.exists(e,"preferredUnitNumbers")?e.preferredUnitNumbers:void 0,preferredLayoutIds:n.exists(e,"preferredLayoutIds")?e.preferredLayoutIds:void 0}}t.GetUnitAvailabilitiesRequestFromJSON=function(e){return r(e)},t.GetUnitAvailabilitiesRequestFromJSONTyped=r,t.GetUnitAvailabilitiesRequestToJSON=function(e){if(void 0!==e)return null===e?null:{moveInStart:e.moveInStart,moveInEnd:e.moveInEnd,buildingName:e.buildingName,buildingAddress:e.buildingAddress,buildingZip:e.buildingZip,preferredUnitNumbers:e.preferredUnitNumbers,preferredLayoutIds:e.preferredLayoutIds}}},8055:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetUnitAvailabilitiesRequest2ToJSON=t.GetUnitAvailabilitiesRequest2FromJSONTyped=t.GetUnitAvailabilitiesRequest2FromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,moveInStart:n.exists(e,"moveInStart")?e.moveInStart:void 0,moveInEnd:n.exists(e,"moveInEnd")?e.moveInEnd:void 0,preferredUnitNumbers:n.exists(e,"preferredUnitNumbers")?e.preferredUnitNumbers:void 0,preferredLayoutIds:n.exists(e,"preferredLayoutIds")?e.preferredLayoutIds:void 0}}t.GetUnitAvailabilitiesRequest2FromJSON=function(e){return r(e)},t.GetUnitAvailabilitiesRequest2FromJSONTyped=r,t.GetUnitAvailabilitiesRequest2ToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,moveInStart:e.moveInStart,moveInEnd:e.moveInEnd,preferredUnitNumbers:e.preferredUnitNumbers,preferredLayoutIds:e.preferredLayoutIds}}},2406:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetUnitAvailabilitiesResponseToJSON=t.GetUnitAvailabilitiesResponseFromJSONTyped=t.GetUnitAvailabilitiesResponseFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{subIntentMetadataMap:n.exists(e,"subIntentMetadataMap")?e.subIntentMetadataMap:void 0,dialogue:n.exists(e,"dialogue")?e.dialogue:void 0}}t.GetUnitAvailabilitiesResponseFromJSON=function(e){return r(e)},t.GetUnitAvailabilitiesResponseFromJSONTyped=r,t.GetUnitAvailabilitiesResponseToJSON=function(e){if(void 0!==e)return null===e?null:{subIntentMetadataMap:e.subIntentMetadataMap,dialogue:e.dialogue}}},1880:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetWhiteListTestsForBuildingsRequestToJSON=t.GetWhiteListTestsForBuildingsRequestFromJSONTyped=t.GetWhiteListTestsForBuildingsRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingIds:n.exists(e,"buildingIds")?e.buildingIds:void 0}}t.GetWhiteListTestsForBuildingsRequestFromJSON=function(e){return r(e)},t.GetWhiteListTestsForBuildingsRequestFromJSONTyped=r,t.GetWhiteListTestsForBuildingsRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingIds:e.buildingIds}}},7989:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HourlyReportDtoToJSON=t.HourlyReportDtoFromJSONTyped=t.HourlyReportDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,marketingSource:n.exists(e,"marketingSource")?e.marketingSource:void 0,hourOfAggregation:n.exists(e,"hourOfAggregation")?new Date(e.hourOfAggregation):void 0,numMessagesSentByElise:n.exists(e,"numMessagesSentByElise")?e.numMessagesSentByElise:void 0,numUniqueProspectsInTimePeriod:n.exists(e,"numUniqueProspectsInTimePeriod")?e.numUniqueProspectsInTimePeriod:void 0,numRepliesPerContext:n.exists(e,"numRepliesPerContext")?e.numRepliesPerContext:void 0,newUniqueProspectsInTimePeriod:n.exists(e,"newUniqueProspectsInTimePeriod")?e.newUniqueProspectsInTimePeriod:void 0,hoursSaved:n.exists(e,"hoursSaved")?e.hoursSaved:void 0,numTours:n.exists(e,"numTours")?e.numTours:void 0}}t.HourlyReportDtoFromJSON=function(e){return r(e)},t.HourlyReportDtoFromJSONTyped=r,t.HourlyReportDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,marketingSource:e.marketingSource,hourOfAggregation:void 0===e.hourOfAggregation?void 0:e.hourOfAggregation.toISOString(),numMessagesSentByElise:e.numMessagesSentByElise,numUniqueProspectsInTimePeriod:e.numUniqueProspectsInTimePeriod,numRepliesPerContext:e.numRepliesPerContext,newUniqueProspectsInTimePeriod:e.newUniqueProspectsInTimePeriod,hoursSaved:e.hoursSaved,numTours:e.numTours}}},4036:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InboxEntityToJSON=t.InboxEntityFromJSONTyped=t.InboxEntityFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0}}t.InboxEntityFromJSON=function(e){return r(e)},t.InboxEntityFromJSONTyped=r,t.InboxEntityToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id}}},5728:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InitializeWhiteListingConfigRequestToJSON=t.InitializeWhiteListingConfigRequestFromJSONTyped=t.InitializeWhiteListingConfigRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,emails:n.exists(e,"emails")?e.emails:void 0}}t.InitializeWhiteListingConfigRequestFromJSON=function(e){return r(e)},t.InitializeWhiteListingConfigRequestFromJSONTyped=r,t.InitializeWhiteListingConfigRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,emails:e.emails}}},5131:(e,t)=>{function i(e,t){return null==e?e:{state:e.state}}Object.defineProperty(t,"__esModule",{value:!0}),t.InlineObject3ToJSON=t.InlineObject3FromJSONTyped=t.InlineObject3FromJSON=void 0,t.InlineObject3FromJSON=function(e){return i(e)},t.InlineObject3FromJSONTyped=i,t.InlineObject3ToJSON=function(e){if(void 0!==e)return null===e?null:{state:e.state}}},7708:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnockAgentsNodeToJSON=t.KnockAgentsNodeFromJSONTyped=t.KnockAgentsNodeFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{email:e.email,externalId:n.exists(e,"externalId")?e.externalId:void 0,leasingTeamIds:n.exists(e,"leasingTeamIds")?e.leasingTeamIds:void 0,phone:n.exists(e,"phone")?e.phone:void 0,firstName:e.firstName,lastName:e.lastName,username:e.username,preferredUsername:e.preferredUsername,enabled:n.exists(e,"enabled")?e.enabled:void 0}}t.KnockAgentsNodeFromJSON=function(e){return r(e)},t.KnockAgentsNodeFromJSONTyped=r,t.KnockAgentsNodeToJSON=function(e){if(void 0!==e)return null===e?null:{email:e.email,externalId:e.externalId,leasingTeamIds:e.leasingTeamIds,phone:e.phone,firstName:e.firstName,lastName:e.lastName,username:e.username,preferredUsername:e.preferredUsername,enabled:e.enabled}}},746:(e,t)=>{function i(e,t){return null==e?e:{value:e.value,label:e.label}}Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutOptionToJSON=t.LayoutOptionFromJSONTyped=t.LayoutOptionFromJSON=void 0,t.LayoutOptionFromJSON=function(e){return i(e)},t.LayoutOptionFromJSONTyped=i,t.LayoutOptionToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,label:e.label}}},7662:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadInfoToJSON=t.LeadInfoFromJSONTyped=t.LeadInfoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,firstName:n.exists(e,"firstName")?e.firstName:void 0,lastName:n.exists(e,"lastName")?e.lastName:void 0,email:n.exists(e,"email")?e.email:void 0,phoneNumber:n.exists(e,"phoneNumber")?e.phoneNumber:void 0}}t.LeadInfoFromJSON=function(e){return r(e)},t.LeadInfoFromJSONTyped=r,t.LeadInfoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,firstName:e.firstName,lastName:e.lastName,email:e.email,phoneNumber:e.phoneNumber}}},9132:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadInfoUpdateDtoToJSON=t.LeadInfoUpdateDtoFromJSONTyped=t.LeadInfoUpdateDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,firstName:n.exists(e,"firstName")?e.firstName:void 0,lastName:n.exists(e,"lastName")?e.lastName:void 0,email:n.exists(e,"email")?e.email:void 0,moveIn:n.exists(e,"moveIn")?new Date(e.moveIn):void 0,moveInRangeEnd:n.exists(e,"moveInRangeEnd")?new Date(e.moveInRangeEnd):void 0}}t.LeadInfoUpdateDtoFromJSON=function(e){return r(e)},t.LeadInfoUpdateDtoFromJSONTyped=r,t.LeadInfoUpdateDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,firstName:e.firstName,lastName:e.lastName,email:e.email,moveIn:void 0===e.moveIn?void 0:e.moveIn.toISOString().substr(0,10),moveInRangeEnd:void 0===e.moveInRangeEnd?void 0:e.moveInRangeEnd.toISOString().substr(0,10)}}},7530:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadSourceResponseToJSON=t.LeadSourceResponseFromJSONTyped=t.LeadSourceResponseFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{sources:n.exists(e,"sources")?e.sources:void 0}}t.LeadSourceResponseFromJSON=function(e){return r(e)},t.LeadSourceResponseFromJSONTyped=r,t.LeadSourceResponseToJSON=function(e){if(void 0!==e)return null===e?null:{sources:e.sources}}},194:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadThreadViewModelToJSON=t.LeadThreadViewModelFromJSONTyped=t.LeadThreadViewModelFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{leadName:n.exists(e,"leadName")?e.leadName:void 0,leadEmail:n.exists(e,"leadEmail")?e.leadEmail:void 0,contextCreationDate:n.exists(e,"contextCreationDate")?new Date(e.contextCreationDate):void 0,leadThreadLink:n.exists(e,"leadThreadLink")?e.leadThreadLink:void 0,buildingName:n.exists(e,"buildingName")?e.buildingName:void 0,buildingExternalId:n.exists(e,"buildingExternalId")?e.buildingExternalId:void 0,contextId:n.exists(e,"contextId")?e.contextId:void 0,buildingIds:n.exists(e,"buildingIds")?e.buildingIds:void 0,conversationKey:n.exists(e,"conversationKey")?e.conversationKey:void 0}}t.LeadThreadViewModelFromJSON=function(e){return r(e)},t.LeadThreadViewModelFromJSONTyped=r,t.LeadThreadViewModelToJSON=function(e){if(void 0!==e)return null===e?null:{leadName:e.leadName,leadEmail:e.leadEmail,contextCreationDate:void 0===e.contextCreationDate?void 0:e.contextCreationDate.toISOString(),leadThreadLink:e.leadThreadLink,buildingName:e.buildingName,buildingExternalId:e.buildingExternalId,contextId:e.contextId,buildingIds:e.buildingIds,conversationKey:e.conversationKey}}},1312:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadWithSourceToJSON=t.LeadWithSourceFromJSONTyped=t.LeadWithSourceFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,email:n.exists(e,"email")?e.email:void 0,marketingSource:n.exists(e,"marketingSource")?e.marketingSource:void 0}}t.LeadWithSourceFromJSON=function(e){return r(e)},t.LeadWithSourceFromJSONTyped=r,t.LeadWithSourceToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,email:e.email,marketingSource:e.marketingSource}}},4549:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeasingAgentToJSON=t.LeasingAgentFromJSONTyped=t.LeasingAgentFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,externalId:n.exists(e,"externalId")?e.externalId:void 0,agentFirstName:n.exists(e,"agentFirstName")?e.agentFirstName:void 0,agentLastName:n.exists(e,"agentLastName")?e.agentLastName:void 0,internal:n.exists(e,"internal")?e.internal:void 0}}t.LeasingAgentFromJSON=function(e){return r(e)},t.LeasingAgentFromJSONTyped=r,t.LeasingAgentToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,externalId:e.externalId,agentFirstName:e.agentFirstName,agentLastName:e.agentLastName,internal:e.internal}}},8636:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListWrapperOrganizationToJSON=t.ListWrapperOrganizationFromJSONTyped=t.ListWrapperOrganizationFromJSON=void 0;var n=i(296),r=i(8792);function o(e,t){return null==e?e:{data:n.exists(e,"data")?e.data.map(r.OrganizationFromJSON):void 0}}t.ListWrapperOrganizationFromJSON=function(e){return o(e)},t.ListWrapperOrganizationFromJSONTyped=o,t.ListWrapperOrganizationToJSON=function(e){if(void 0!==e)return null===e?null:{data:void 0===e.data?void 0:e.data.map(r.OrganizationToJSON)}}},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalTimeToJSON=t.LocalTimeFromJSONTyped=t.LocalTimeFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{hour:n.exists(e,"hour")?e.hour:void 0,minute:n.exists(e,"minute")?e.minute:void 0,second:n.exists(e,"second")?e.second:void 0,nano:n.exists(e,"nano")?e.nano:void 0}}t.LocalTimeFromJSON=function(e){return r(e)},t.LocalTimeFromJSONTyped=r,t.LocalTimeToJSON=function(e){if(void 0!==e)return null===e?null:{hour:e.hour,minute:e.minute,second:e.second,nano:e.nano}}},8328:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocationToJSON=t.LocationFromJSONTyped=t.LocationFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{label:n.exists(e,"label")?e.label:void 0,street:n.exists(e,"street")?e.street:void 0,addressNumber:n.exists(e,"addressNumber")?e.addressNumber:void 0,neighborhood:n.exists(e,"neighborhood")?e.neighborhood:void 0,postalCode:n.exists(e,"postalCode")?e.postalCode:void 0,municipality:n.exists(e,"municipality")?e.municipality:void 0,city:n.exists(e,"city")?e.city:void 0,region:n.exists(e,"region")?e.region:void 0,subRegion:n.exists(e,"subRegion")?e.subRegion:void 0,country:n.exists(e,"country")?e.country:void 0,latitude:n.exists(e,"latitude")?e.latitude:void 0,longitude:n.exists(e,"longitude")?e.longitude:void 0,timeZone:n.exists(e,"timeZone")?e.timeZone:void 0}}t.LocationFromJSON=function(e){return r(e)},t.LocationFromJSONTyped=r,t.LocationToJSON=function(e){if(void 0!==e)return null===e?null:{label:e.label,street:e.street,addressNumber:e.addressNumber,neighborhood:e.neighborhood,postalCode:e.postalCode,municipality:e.municipality,city:e.city,region:e.region,subRegion:e.subRegion,country:e.country,latitude:e.latitude,longitude:e.longitude,timeZone:e.timeZone}}},4401:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LongTermFollowUpSettingToJSON=t.LongTermFollowUpSettingFromJSONTyped=t.LongTermFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.LongTermFollowUpSettingFromJSON=function(e){return r(e)},t.LongTermFollowUpSettingFromJSONTyped=r,t.LongTermFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId}}},3832:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LongTermPostTourFollowUpSettingToJSON=t.LongTermPostTourFollowUpSettingFromJSONTyped=t.LongTermPostTourFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.LongTermPostTourFollowUpSettingFromJSON=function(e){return r(e)},t.LongTermPostTourFollowUpSettingFromJSONTyped=r,t.LongTermPostTourFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId}}},4883:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeCalendarEventToJSON=t.MEHomeCalendarEventFromJSONTyped=t.MEHomeCalendarEventFromJSON=t.MEHomeCalendarEventEventTypeEnum=void 0;var n,r=i(296),o=i(9718);function a(e,t){return null==e?e:{id:e.id,aiAssistantId:e.aiAssistantId,startTimeISO:e.startTimeISO,endTimeISO:e.endTimeISO,eventType:e.eventType,tourInfo:r.exists(e,"tourInfo")?o.MEHomeTourInfoFromJSON(e.tourInfo):void 0,title:r.exists(e,"title")?e.title:void 0,conversationKey:r.exists(e,"conversationKey")?e.conversationKey:void 0,recurringEventId:r.exists(e,"recurringEventId")?e.recurringEventId:void 0,assignedAgentId:r.exists(e,"assignedAgentId")?e.assignedAgentId:void 0,canceled:r.exists(e,"canceled")?e.canceled:void 0}}(n=t.MEHomeCalendarEventEventTypeEnum||(t.MEHomeCalendarEventEventTypeEnum={})).NonBlockingInternal="NON_BLOCKING_INTERNAL",n.Blackout="BLACKOUT",n.Appointment="APPOINTMENT",n.Other="OTHER",t.MEHomeCalendarEventFromJSON=function(e){return a(e)},t.MEHomeCalendarEventFromJSONTyped=a,t.MEHomeCalendarEventToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,aiAssistantId:e.aiAssistantId,startTimeISO:e.startTimeISO,endTimeISO:e.endTimeISO,eventType:e.eventType,tourInfo:o.MEHomeTourInfoToJSON(e.tourInfo),title:e.title,conversationKey:e.conversationKey,recurringEventId:e.recurringEventId,assignedAgentId:e.assignedAgentId,canceled:e.canceled}}},6705:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeDashboardInfoToJSON=t.MEHomeDashboardInfoFromJSONTyped=t.MEHomeDashboardInfoFromJSON=void 0;var n=i(296),r=i(3817),o=i(7934),a=i(746),s=i(4549),l=i(4883),u=i(1004),d=i(6330);function c(e,t){return null==e?e:{numEscalations:e.numEscalations,calendarEvents:e.calendarEvents.map(l.MEHomeCalendarEventFromJSON),buildingIds:e.buildingIds,dateRangeReport:n.exists(e,"dateRangeReport")?r.DateRangeReportFromJSON(e.dateRangeReport):void 0,leasingAgents:e.leasingAgents.map(s.LeasingAgentFromJSON),units:e.units.map(u.MEHomeUnitFromJSON),tourTypeOptions:e.tourTypeOptions.map(d.TourTypeOptionFromJSON),layoutOptions:e.layoutOptions.map(a.LayoutOptionFromJSON),leadSources:e.leadSources,firstContactOptions:e.firstContactOptions.map(o.FirstContactOptionFromJSON)}}t.MEHomeDashboardInfoFromJSON=function(e){return c(e)},t.MEHomeDashboardInfoFromJSONTyped=c,t.MEHomeDashboardInfoToJSON=function(e){if(void 0!==e)return null===e?null:{numEscalations:e.numEscalations,calendarEvents:e.calendarEvents.map(l.MEHomeCalendarEventToJSON),buildingIds:e.buildingIds,dateRangeReport:r.DateRangeReportToJSON(e.dateRangeReport),leasingAgents:e.leasingAgents.map(s.LeasingAgentToJSON),units:e.units.map(u.MEHomeUnitToJSON),tourTypeOptions:e.tourTypeOptions.map(d.TourTypeOptionToJSON),layoutOptions:e.layoutOptions.map(a.LayoutOptionToJSON),leadSources:e.leadSources,firstContactOptions:e.firstContactOptions.map(o.FirstContactOptionToJSON)}}},1427:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeLeadToJSON=t.MEHomeLeadFromJSONTyped=t.MEHomeLeadFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:e.id,email:n.exists(e,"email")?e.email:void 0,firstName:n.exists(e,"firstName")?e.firstName:void 0,lastName:n.exists(e,"lastName")?e.lastName:void 0,layouts:n.exists(e,"layouts")?e.layouts:void 0,leadCreationDateISO:n.exists(e,"leadCreationDateISO")?e.leadCreationDateISO:void 0,leaseLengthMax:n.exists(e,"leaseLengthMax")?e.leaseLengthMax:void 0,leaseLengthMin:n.exists(e,"leaseLengthMin")?e.leaseLengthMin:void 0,marketPlace:n.exists(e,"marketPlace")?e.marketPlace:void 0,moveInDateISO:n.exists(e,"moveInDateISO")?e.moveInDateISO:void 0,phoneNumber:n.exists(e,"phoneNumber")?e.phoneNumber:void 0,preferredSize:n.exists(e,"preferredSize")?e.preferredSize:void 0,recommendedUnits:n.exists(e,"recommendedUnits")?e.recommendedUnits:void 0}}t.MEHomeLeadFromJSON=function(e){return r(e)},t.MEHomeLeadFromJSONTyped=r,t.MEHomeLeadToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,email:e.email,firstName:e.firstName,lastName:e.lastName,layouts:e.layouts,leadCreationDateISO:e.leadCreationDateISO,leaseLengthMax:e.leaseLengthMax,leaseLengthMin:e.leaseLengthMin,marketPlace:e.marketPlace,moveInDateISO:e.moveInDateISO,phoneNumber:e.phoneNumber,preferredSize:e.preferredSize,recommendedUnits:e.recommendedUnits}}},9718:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeTourInfoToJSON=t.MEHomeTourInfoFromJSONTyped=t.MEHomeTourInfoFromJSON=t.MEHomeTourInfoConversationTypeEnum=t.MEHomeTourInfoTourTypeEnum=void 0;var n,r,o=i(296),a=i(1427);function s(e,t){return null==e?e:{lead:a.MEHomeLeadFromJSON(e.lead),hostVirtualTourUrl:o.exists(e,"hostVirtualTourUrl")?e.hostVirtualTourUrl:void 0,publicVirtualTourUrl:o.exists(e,"publicVirtualTourUrl")?e.publicVirtualTourUrl:void 0,tourType:o.exists(e,"tourType")?e.tourType:void 0,leadStatusForContext:o.exists(e,"leadStatusForContext")?e.leadStatusForContext:void 0,notes:o.exists(e,"notes")?e.notes:void 0,conversationType:o.exists(e,"conversationType")?e.conversationType:void 0}}(r=t.MEHomeTourInfoTourTypeEnum||(t.MEHomeTourInfoTourTypeEnum={})).Unknown="UNKNOWN",r.SelfGuided="SELF_GUIDED",r.VirtualShowing="VIRTUAL_SHOWING",r.WithAgent="WITH_AGENT",r.MediaTour="MEDIA_TOUR",(n=t.MEHomeTourInfoConversationTypeEnum||(t.MEHomeTourInfoConversationTypeEnum={})).Email="EMAIL",n.Phone="PHONE",t.MEHomeTourInfoFromJSON=function(e){return s(e)},t.MEHomeTourInfoFromJSONTyped=s,t.MEHomeTourInfoToJSON=function(e){if(void 0!==e)return null===e?null:{lead:a.MEHomeLeadToJSON(e.lead),hostVirtualTourUrl:e.hostVirtualTourUrl,publicVirtualTourUrl:e.publicVirtualTourUrl,tourType:e.tourType,leadStatusForContext:e.leadStatusForContext,notes:e.notes,conversationType:e.conversationType}}},1004:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeUnitToJSON=t.MEHomeUnitFromJSONTyped=t.MEHomeUnitFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:e.id,layoutDescription:e.layoutDescription,label:e.label,layout:e.layout,_default:n.exists(e,"default")?e.default:void 0}}t.MEHomeUnitFromJSON=function(e){return r(e)},t.MEHomeUnitFromJSONTyped=r,t.MEHomeUnitToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,layoutDescription:e.layoutDescription,label:e.label,layout:e.layout,default:e._default}}},4240:(e,t)=>{function i(e,t){return null==e?e:{marketingSource:e.marketingSource,startOfRange:new Date(e.startOfRange),endOfRange:new Date(e.endOfRange),buildingId:e.buildingId,numAiMessagesSent:e.numAiMessagesSent,numAiSentEmailFollowup:e.numAiSentEmailFollowup,numAiSentTextFollowup:e.numAiSentTextFollowup,averageMessagesPerProspect:e.averageMessagesPerProspect,prospectToTourConversion:e.prospectToTourConversion,numTours:e.numTours,tourBookedByMENoncancelled:e.tourBookedByMENoncancelled,newProspectsHandled:e.newProspectsHandled,hoursSavedByAi:e.hoursSavedByAi,numEarlyAgentTakeover:e.numEarlyAgentTakeover,numberLeadsApplied:e.numberLeadsApplied,tourAttended:e.tourAttended,numActionRequiredFromAgent:e.numActionRequiredFromAgent,numPassToAgent:e.numPassToAgent,aiBookedTourAttended:e.aiBookedTourAttended}}Object.defineProperty(t,"__esModule",{value:!0}),t.MarketingSourceDateRangeReportToJSON=t.MarketingSourceDateRangeReportFromJSONTyped=t.MarketingSourceDateRangeReportFromJSON=void 0,t.MarketingSourceDateRangeReportFromJSON=function(e){return i(e)},t.MarketingSourceDateRangeReportFromJSONTyped=i,t.MarketingSourceDateRangeReportToJSON=function(e){if(void 0!==e)return null===e?null:{marketingSource:e.marketingSource,startOfRange:e.startOfRange.toISOString(),endOfRange:e.endOfRange.toISOString(),buildingId:e.buildingId,numAiMessagesSent:e.numAiMessagesSent,numAiSentEmailFollowup:e.numAiSentEmailFollowup,numAiSentTextFollowup:e.numAiSentTextFollowup,averageMessagesPerProspect:e.averageMessagesPerProspect,prospectToTourConversion:e.prospectToTourConversion,numTours:e.numTours,tourBookedByMENoncancelled:e.tourBookedByMENoncancelled,newProspectsHandled:e.newProspectsHandled,hoursSavedByAi:e.hoursSavedByAi,numEarlyAgentTakeover:e.numEarlyAgentTakeover,numberLeadsApplied:e.numberLeadsApplied,tourAttended:e.tourAttended,numActionRequiredFromAgent:e.numActionRequiredFromAgent,numPassToAgent:e.numPassToAgent,aiBookedTourAttended:e.aiBookedTourAttended}}},2960:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoShowActionDtoToJSON=t.NoShowActionDtoFromJSONTyped=t.NoShowActionDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0}}t.NoShowActionDtoFromJSON=function(e){return r(e)},t.NoShowActionDtoFromJSONTyped=r,t.NoShowActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId}}},1431:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoShowFollowUpSettingToJSON=t.NoShowFollowUpSettingFromJSONTyped=t.NoShowFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.NoShowFollowUpSettingFromJSON=function(e){return r(e)},t.NoShowFollowUpSettingFromJSONTyped=r,t.NoShowFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId}}},8792:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationToJSON=t.OrganizationFromJSONTyped=t.OrganizationFromJSON=void 0;var n=i(296),r=i(1172);function o(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,name:n.exists(e,"name")?e.name:void 0,address1:n.exists(e,"address1")?e.address1:void 0,address2:n.exists(e,"address2")?e.address2:void 0,city:n.exists(e,"city")?e.city:void 0,state:n.exists(e,"state")?e.state:void 0,zipCode:n.exists(e,"zipCode")?e.zipCode:void 0,url:n.exists(e,"url")?e.url:void 0,associatedDomains:n.exists(e,"associatedDomains")?e.associatedDomains:void 0,communitiesDefaults:n.exists(e,"communitiesDefaults")?r.CommunitiesDefaultsFromJSON(e.communitiesDefaults):void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0}}t.OrganizationFromJSON=function(e){return o(e)},t.OrganizationFromJSONTyped=o,t.OrganizationToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,name:e.name,address1:e.address1,address2:e.address2,city:e.city,state:e.state,zipCode:e.zipCode,url:e.url,associatedDomains:e.associatedDomains,communitiesDefaults:r.CommunitiesDefaultsToJSON(e.communitiesDefaults),organizationId:e.organizationId}}},908:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTourFollowUpSettingToJSON=t.PostTourFollowUpSettingFromJSONTyped=t.PostTourFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.PostTourFollowUpSettingFromJSON=function(e){return r(e)},t.PostTourFollowUpSettingFromJSONTyped=r,t.PostTourFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId}}},3231:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PreTourFollowUpSettingToJSON=t.PreTourFollowUpSettingFromJSONTyped=t.PreTourFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,userId:n.exists(e,"userId")?e.userId:void 0}}t.PreTourFollowUpSettingFromJSON=function(e){return r(e)},t.PreTourFollowUpSettingFromJSONTyped=r,t.PreTourFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId,userId:e.userId}}},8496:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QaDtoToJSON=t.QaDtoFromJSONTyped=t.QaDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,intentNames:n.exists(e,"intentNames")?e.intentNames:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,email:n.exists(e,"email")?e.email:void 0}}t.QaDtoFromJSON=function(e){return r(e)},t.QaDtoFromJSONTyped=r,t.QaDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,intentNames:e.intentNames,unitId:e.unitId,email:e.email}}},3538:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RealPageCredentialsToJSON=t.RealPageCredentialsFromJSONTyped=t.RealPageCredentialsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,userName:n.exists(e,"userName")?e.userName:void 0,password:n.exists(e,"password")?e.password:void 0,uniqueCompanyIdentifier:n.exists(e,"uniqueCompanyIdentifier")?e.uniqueCompanyIdentifier:void 0,uniquePropertyIdentifier:n.exists(e,"uniquePropertyIdentifier")?e.uniquePropertyIdentifier:void 0,hostUrl:n.exists(e,"hostUrl")?e.hostUrl:void 0,l2LApiKey:n.exists(e,"l2LApiKey")?e.l2LApiKey:void 0,leasingAgentId:n.exists(e,"leasingAgentId")?e.leasingAgentId:void 0,handoffAgentId:n.exists(e,"handoffAgentId")?e.handoffAgentId:void 0}}t.RealPageCredentialsFromJSON=function(e){return r(e)},t.RealPageCredentialsFromJSONTyped=r,t.RealPageCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,userName:e.userName,password:e.password,uniqueCompanyIdentifier:e.uniqueCompanyIdentifier,uniquePropertyIdentifier:e.uniquePropertyIdentifier,hostUrl:e.hostUrl,l2LApiKey:e.l2LApiKey,leasingAgentId:e.leasingAgentId,handoffAgentId:e.handoffAgentId}}},9353:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecurringEventCreateRequestDtoToJSON=t.RecurringEventCreateRequestDtoFromJSONTyped=t.RecurringEventCreateRequestDtoFromJSON=t.RecurringEventCreateRequestDtoFrequencyEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{calendarId:r.exists(e,"calendarId")?e.calendarId:void 0,startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,daysOfWeek:r.exists(e,"daysOfWeek")?e.daysOfWeek:void 0,daysOfMonth:r.exists(e,"daysOfMonth")?e.daysOfMonth:void 0,startOfRecurrence:r.exists(e,"startOfRecurrence")?e.startOfRecurrence:void 0,endOfRecurrence:r.exists(e,"endOfRecurrence")?e.endOfRecurrence:void 0,frequency:r.exists(e,"frequency")?e.frequency:void 0,frequencyMultiplier:r.exists(e,"frequencyMultiplier")?e.frequencyMultiplier:void 0,createdBy:r.exists(e,"createdBy")?e.createdBy:void 0,summary:r.exists(e,"summary")?e.summary:void 0}}(n=t.RecurringEventCreateRequestDtoFrequencyEnum||(t.RecurringEventCreateRequestDtoFrequencyEnum={})).Weekly="WEEKLY",n.Monthly="MONTHLY",t.RecurringEventCreateRequestDtoFromJSON=function(e){return o(e)},t.RecurringEventCreateRequestDtoFromJSONTyped=o,t.RecurringEventCreateRequestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{calendarId:e.calendarId,startTime:e.startTime,endTime:e.endTime,daysOfWeek:e.daysOfWeek,daysOfMonth:e.daysOfMonth,startOfRecurrence:e.startOfRecurrence,endOfRecurrence:e.endOfRecurrence,frequency:e.frequency,frequencyMultiplier:e.frequencyMultiplier,createdBy:e.createdBy,summary:e.summary}}},6343:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecurringEventDtoToJSON=t.RecurringEventDtoFromJSONTyped=t.RecurringEventDtoFromJSON=t.RecurringEventDtoFrequencyEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{id:r.exists(e,"id")?e.id:void 0,calendarId:r.exists(e,"calendarId")?e.calendarId:void 0,startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,daysOfWeek:r.exists(e,"daysOfWeek")?e.daysOfWeek:void 0,daysOfMonth:r.exists(e,"daysOfMonth")?e.daysOfMonth:void 0,startOfRecurrence:r.exists(e,"startOfRecurrence")?e.startOfRecurrence:void 0,endOfRecurrence:r.exists(e,"endOfRecurrence")?e.endOfRecurrence:void 0,frequency:r.exists(e,"frequency")?e.frequency:void 0,frequencyMultiplier:r.exists(e,"frequencyMultiplier")?e.frequencyMultiplier:void 0,timeCreated:r.exists(e,"timeCreated")?e.timeCreated:void 0,timeMostRecentlyUpdated:r.exists(e,"timeMostRecentlyUpdated")?e.timeMostRecentlyUpdated:void 0,lastEventGeneratedTimestamp:r.exists(e,"lastEventGeneratedTimestamp")?e.lastEventGeneratedTimestamp:void 0,createdBy:r.exists(e,"createdBy")?e.createdBy:void 0,summary:r.exists(e,"summary")?e.summary:void 0,deleted:r.exists(e,"deleted")?e.deleted:void 0}}(n=t.RecurringEventDtoFrequencyEnum||(t.RecurringEventDtoFrequencyEnum={})).Weekly="WEEKLY",n.Monthly="MONTHLY",t.RecurringEventDtoFromJSON=function(e){return o(e)},t.RecurringEventDtoFromJSONTyped=o,t.RecurringEventDtoToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,calendarId:e.calendarId,startTime:e.startTime,endTime:e.endTime,daysOfWeek:e.daysOfWeek,daysOfMonth:e.daysOfMonth,startOfRecurrence:e.startOfRecurrence,endOfRecurrence:e.endOfRecurrence,frequency:e.frequency,frequencyMultiplier:e.frequencyMultiplier,timeCreated:e.timeCreated,timeMostRecentlyUpdated:e.timeMostRecentlyUpdated,lastEventGeneratedTimestamp:e.lastEventGeneratedTimestamp,createdBy:e.createdBy,summary:e.summary,deleted:e.deleted}}},7564:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecurringEventUpdateRequestDtoToJSON=t.RecurringEventUpdateRequestDtoFromJSONTyped=t.RecurringEventUpdateRequestDtoFromJSON=t.RecurringEventUpdateRequestDtoFrequencyEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,daysOfWeek:r.exists(e,"daysOfWeek")?e.daysOfWeek:void 0,daysOfMonth:r.exists(e,"daysOfMonth")?e.daysOfMonth:void 0,startOfRecurrence:r.exists(e,"startOfRecurrence")?e.startOfRecurrence:void 0,endOfRecurrence:r.exists(e,"endOfRecurrence")?e.endOfRecurrence:void 0,frequency:r.exists(e,"frequency")?e.frequency:void 0,frequencyMultiplier:r.exists(e,"frequencyMultiplier")?e.frequencyMultiplier:void 0,summary:r.exists(e,"summary")?e.summary:void 0}}(n=t.RecurringEventUpdateRequestDtoFrequencyEnum||(t.RecurringEventUpdateRequestDtoFrequencyEnum={})).Weekly="WEEKLY",n.Monthly="MONTHLY",t.RecurringEventUpdateRequestDtoFromJSON=function(e){return o(e)},t.RecurringEventUpdateRequestDtoFromJSONTyped=o,t.RecurringEventUpdateRequestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{startTime:e.startTime,endTime:e.endTime,daysOfWeek:e.daysOfWeek,daysOfMonth:e.daysOfMonth,startOfRecurrence:e.startOfRecurrence,endOfRecurrence:e.endOfRecurrence,frequency:e.frequency,frequencyMultiplier:e.frequencyMultiplier,summary:e.summary}}},4748:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReportSettingToJSON=t.ReportSettingFromJSONTyped=t.ReportSettingFromJSON=t.ReportSettingSendingMediumEnum=t.ReportSettingTypeEnum=t.ReportSettingSheetIdsEnum=void 0;var n,r,o,a=i(296);function s(e,t){return null==e?e:{active:a.exists(e,"active")?e.active:void 0,id:a.exists(e,"id")?e.id:void 0,name:a.exists(e,"name")?e.name:void 0,reportNamePart1:a.exists(e,"reportNamePart1")?e.reportNamePart1:void 0,reportNamePart2:a.exists(e,"reportNamePart2")?e.reportNamePart2:void 0,startDate:a.exists(e,"startDate")?e.startDate:void 0,endDate:a.exists(e,"endDate")?e.endDate:void 0,initialReportDate:a.exists(e,"initialReportDate")?e.initialReportDate:void 0,isOrgLevel:a.exists(e,"isOrgLevel")?e.isOrgLevel:void 0,organizationIds:a.exists(e,"organizationIds")?e.organizationIds:void 0,buildingIds:a.exists(e,"buildingIds")?e.buildingIds:void 0,recipients:a.exists(e,"recipients")?e.recipients:void 0,sheetIds:a.exists(e,"sheetIds")?e.sheetIds:void 0,type:a.exists(e,"type")?e.type:void 0,sendingMedium:a.exists(e,"sendingMedium")?e.sendingMedium:void 0,htmlEmailMessage:a.exists(e,"htmlEmailMessage")?e.htmlEmailMessage:void 0,orgLevel:a.exists(e,"orgLevel")?e.orgLevel:void 0}}(o=t.ReportSettingSheetIdsEnum||(t.ReportSettingSheetIdsEnum={})).A1="A1",o.A1unsub="A1unsub",o.A1ytd="A1ytd",o.A2="A2",o.A3="A3",o.A3wk="A3wk",o.A3ytd="A3ytd",o.A4="A4",o.Bell2="BELL2",o.Bell4="BELL4",o.Boz1="BOZ1",o.Boz2="BOZ2",o.S1="S1",o.S1shows="S1shows",o.S1unsub="S1unsub",o.S1wk="S1wk",o.S2="S2",o.S2org="S2org",o.S2wk="S2wk",o.S3="S3",o.S3org="S3org",o.S3wk="S3wk",o.S4="S4",o.S4org="S4org",o.S5="S5",o.S5org="S5org",o.Sr1ytd="SR1ytd",o.Ivr1="IVR1",o.Ivr2="IVR2",(r=t.ReportSettingTypeEnum||(t.ReportSettingTypeEnum={})).ProspectReport="PROSPECT_REPORT",r.AutomaticReport="AUTOMATIC_REPORT",r.OwnerReport="OWNER_REPORT",r.InternalReport="INTERNAL_REPORT",(n=t.ReportSettingSendingMediumEnum||(t.ReportSettingSendingMediumEnum={})).Sftp="SFTP",n.AutomatedEmail="AUTOMATED_EMAIL",n.ManualEmail="MANUAL_EMAIL",t.ReportSettingFromJSON=function(e){return s(e)},t.ReportSettingFromJSONTyped=s,t.ReportSettingToJSON=function(e){if(void 0!==e)return null===e?null:{active:e.active,id:e.id,name:e.name,reportNamePart1:e.reportNamePart1,reportNamePart2:e.reportNamePart2,startDate:e.startDate,endDate:e.endDate,initialReportDate:e.initialReportDate,isOrgLevel:e.isOrgLevel,organizationIds:e.organizationIds,buildingIds:e.buildingIds,recipients:e.recipients,sheetIds:e.sheetIds,type:e.type,sendingMedium:e.sendingMedium,htmlEmailMessage:e.htmlEmailMessage,orgLevel:e.orgLevel}}},170:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RescheduleConfirmedDtoToJSON=t.RescheduleConfirmedDtoFromJSONTyped=t.RescheduleConfirmedDtoFromJSON=t.RescheduleConfirmedDtoTourTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{contextId:r.exists(e,"contextId")?e.contextId:void 0,buildingId:r.exists(e,"buildingId")?e.buildingId:void 0,unitId:r.exists(e,"unitId")?e.unitId:void 0,tourType:r.exists(e,"tourType")?e.tourType:void 0,calendarEventId:r.exists(e,"calendarEventId")?e.calendarEventId:void 0,leasingAgentId:r.exists(e,"leasingAgentId")?e.leasingAgentId:void 0,newStartTime:r.exists(e,"newStartTime")?e.newStartTime:void 0,newEndTime:r.exists(e,"newEndTime")?e.newEndTime:void 0}}(n=t.RescheduleConfirmedDtoTourTypeEnum||(t.RescheduleConfirmedDtoTourTypeEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.RescheduleConfirmedDtoFromJSON=function(e){return o(e)},t.RescheduleConfirmedDtoFromJSONTyped=o,t.RescheduleConfirmedDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId,unitId:e.unitId,tourType:e.tourType,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId,newStartTime:e.newStartTime,newEndTime:e.newEndTime}}},2298:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RescheduleProposedDtoToJSON=t.RescheduleProposedDtoFromJSONTyped=t.RescheduleProposedDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,calendarEventId:n.exists(e,"calendarEventId")?e.calendarEventId:void 0,suggestedStartTime:n.exists(e,"suggestedStartTime")?e.suggestedStartTime:void 0}}t.RescheduleProposedDtoFromJSON=function(e){return r(e)},t.RescheduleProposedDtoFromJSONTyped=r,t.RescheduleProposedDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId,calendarEventId:e.calendarEventId,suggestedStartTime:e.suggestedStartTime}}},445:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveEscalationDtoToJSON=t.ResolveEscalationDtoFromJSONTyped=t.ResolveEscalationDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,resolutionStatus:n.exists(e,"resolutionStatus")?e.resolutionStatus:void 0,resolverEmail:n.exists(e,"resolverEmail")?e.resolverEmail:void 0,resolvedWithMessage:n.exists(e,"resolvedWithMessage")?e.resolvedWithMessage:void 0}}t.ResolveEscalationDtoFromJSON=function(e){return r(e)},t.ResolveEscalationDtoFromJSONTyped=r,t.ResolveEscalationDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,resolutionStatus:e.resolutionStatus,resolverEmail:e.resolverEmail,resolvedWithMessage:e.resolvedWithMessage}}},1222:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveScriptRequestToJSON=t.ResolveScriptRequestFromJSONTyped=t.ResolveScriptRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{intent:n.exists(e,"intent")?e.intent:void 0,subintent:n.exists(e,"subintent")?e.subintent:void 0}}t.ResolveScriptRequestFromJSON=function(e){return r(e)},t.ResolveScriptRequestFromJSONTyped=r,t.ResolveScriptRequestToJSON=function(e){if(void 0!==e)return null===e?null:{intent:e.intent,subintent:e.subintent}}},7444:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveScriptsRequestToJSON=t.ResolveScriptsRequestFromJSONTyped=t.ResolveScriptsRequestFromJSON=void 0;var n=i(296),r=i(1222);function o(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,scripts:n.exists(e,"scripts")?e.scripts.map(r.ResolveScriptRequestFromJSON):void 0}}t.ResolveScriptsRequestFromJSON=function(e){return o(e)},t.ResolveScriptsRequestFromJSONTyped=o,t.ResolveScriptsRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,organizationId:e.organizationId,scripts:void 0===e.scripts?void 0:e.scripts.map(r.ResolveScriptRequestToJSON)}}},3815:(e,t)=>{function i(e,t){return null==e?e:{mcId:e.mcId,response:e.response}}Object.defineProperty(t,"__esModule",{value:!0}),t.RespondToMCConversationDTOToJSON=t.RespondToMCConversationDTOFromJSONTyped=t.RespondToMCConversationDTOFromJSON=void 0,t.RespondToMCConversationDTOFromJSON=function(e){return i(e)},t.RespondToMCConversationDTOFromJSONTyped=i,t.RespondToMCConversationDTOToJSON=function(e){if(void 0!==e)return null===e?null:{mcId:e.mcId,response:e.response}}},8385:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseAtomicTemplateToJSON=t.ResponseAtomicTemplateFromJSONTyped=t.ResponseAtomicTemplateFromJSON=t.ResponseAtomicTemplateHandoffIntentStateEnum=void 0;var n,r=i(296),o=i(1234);function a(e){return s(e)}function s(e,t){return null==e?e:{id:r.exists(e,"id")?e.id:void 0,scriptType:r.exists(e,"scriptType")?e.scriptType:void 0,organizationId:r.exists(e,"organizationId")?e.organizationId:void 0,category:r.exists(e,"category")?e.category:void 0,subIntent:r.exists(e,"subIntent")?e.subIntent:void 0,categoryReadableName:r.exists(e,"categoryReadableName")?e.categoryReadableName:void 0,responseText:r.exists(e,"responseText")?e.responseText:void 0,entity:r.exists(e,"entity")?e.entity:void 0,parent:r.exists(e,"parent")?e.parent:void 0,children:r.exists(e,"children")?e.children.map(a):void 0,attachments:r.exists(e,"attachments")?e.attachments.map(o.AttachmentFromJSON):void 0,aiTrainerInstructions:r.exists(e,"aiTrainerInstructions")?e.aiTrainerInstructions:void 0,handoffIntentState:r.exists(e,"handoffIntentState")?e.handoffIntentState:void 0,attachmentsFromDatabase:r.exists(e,"attachmentsFromDatabase")?e.attachmentsFromDatabase:void 0,superCategory:r.exists(e,"superCategory")?e.superCategory:void 0}}(n=t.ResponseAtomicTemplateHandoffIntentStateEnum||(t.ResponseAtomicTemplateHandoffIntentStateEnum={})).None="NONE",n.YellowStatus="YELLOW_STATUS",n.RedAlertSend="RED_ALERT_SEND",n.RedAlertDoNotSend="RED_ALERT_DO_NOT_SEND",t.ResponseAtomicTemplateFromJSON=a,t.ResponseAtomicTemplateFromJSONTyped=s,t.ResponseAtomicTemplateToJSON=function e(t){if(void 0!==t)return null===t?null:{id:t.id,scriptType:t.scriptType,organizationId:t.organizationId,category:t.category,subIntent:t.subIntent,categoryReadableName:t.categoryReadableName,responseText:t.responseText,entity:t.entity,parent:t.parent,children:void 0===t.children?void 0:t.children.map(e),attachments:void 0===t.attachments?void 0:t.attachments.map(o.AttachmentToJSON),aiTrainerInstructions:t.aiTrainerInstructions,handoffIntentState:t.handoffIntentState,attachmentsFromDatabase:t.attachmentsFromDatabase,superCategory:t.superCategory}}},6956:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScheduleDtoToJSON=t.ScheduleDtoFromJSONTyped=t.ScheduleDtoFromJSON=t.ScheduleDtoTourTypeEnum=void 0;var n,r=i(296),o=i(5007);function a(e,t){return null==e?e:{guestCard:r.exists(e,"guestCard")?o.EliseGuestCardDtoFromJSON(e.guestCard):void 0,buildingId:r.exists(e,"buildingId")?e.buildingId:void 0,tourType:r.exists(e,"tourType")?e.tourType:void 0,unitId:r.exists(e,"unitId")?e.unitId:void 0,startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,leasingAgentId:r.exists(e,"leasingAgentId")?e.leasingAgentId:void 0}}(n=t.ScheduleDtoTourTypeEnum||(t.ScheduleDtoTourTypeEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.ScheduleDtoFromJSON=function(e){return a(e)},t.ScheduleDtoFromJSONTyped=a,t.ScheduleDtoToJSON=function(e){if(void 0!==e)return null===e?null:{guestCard:o.EliseGuestCardDtoToJSON(e.guestCard),buildingId:e.buildingId,tourType:e.tourType,unitId:e.unitId,startTime:e.startTime,endTime:e.endTime,leasingAgentId:e.leasingAgentId}}},2644:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptToJSON=t.ScriptFromJSONTyped=t.ScriptFromJSON=t.ScriptHandoffIntentStateEnum=t.ScriptTypeEnum=t.ScriptMediaEnum=void 0;var n,r,o,a=i(296);function s(e,t){return null==e?e:{id:a.exists(e,"id")?e.id:void 0,organizationId:a.exists(e,"organizationId")?e.organizationId:void 0,media:a.exists(e,"media")?e.media:void 0,type:a.exists(e,"type")?e.type:void 0,category:a.exists(e,"category")?e.category:void 0,subIntent:a.exists(e,"subIntent")?e.subIntent:void 0,text:a.exists(e,"text")?e.text:void 0,handoffIntentState:a.exists(e,"handoffIntentState")?e.handoffIntentState:void 0,communityId:a.exists(e,"communityId")?e.communityId:void 0}}(o=t.ScriptMediaEnum||(t.ScriptMediaEnum={})).Both="BOTH",o.Email="EMAIL",o.Sms="SMS",(r=t.ScriptTypeEnum||(t.ScriptTypeEnum={})).All="ALL",r.Template="TEMPLATE",r.TemplateItem="TEMPLATE_ITEM",(n=t.ScriptHandoffIntentStateEnum||(t.ScriptHandoffIntentStateEnum={})).None="NONE",n.YellowStatus="YELLOW_STATUS",n.RedAlertSend="RED_ALERT_SEND",n.RedAlertDoNotSend="RED_ALERT_DO_NOT_SEND",t.ScriptFromJSON=function(e){return s(e)},t.ScriptFromJSONTyped=s,t.ScriptToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,organizationId:e.organizationId,media:e.media,type:e.type,category:e.category,subIntent:e.subIntent,text:e.text,handoffIntentState:e.handoffIntentState,communityId:e.communityId}}},4192:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptSearchQueryToJSON=t.ScriptSearchQueryFromJSONTyped=t.ScriptSearchQueryFromJSON=t.ScriptSearchQueryMediaEnum=t.ScriptSearchQueryTypeEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{organizationId:o.exists(e,"organizationId")?e.organizationId:void 0,communityId:o.exists(e,"communityId")?e.communityId:void 0,type:e.type,media:e.media,category:o.exists(e,"category")?e.category:void 0,subIntent:o.exists(e,"subIntent")?e.subIntent:void 0,searchText:o.exists(e,"searchText")?e.searchText:void 0}}(r=t.ScriptSearchQueryTypeEnum||(t.ScriptSearchQueryTypeEnum={})).All="ALL",r.Template="TEMPLATE",r.TemplateItem="TEMPLATE_ITEM",(n=t.ScriptSearchQueryMediaEnum||(t.ScriptSearchQueryMediaEnum={})).Both="BOTH",n.Email="EMAIL",n.Sms="SMS",t.ScriptSearchQueryFromJSON=function(e){return a(e)},t.ScriptSearchQueryFromJSONTyped=a,t.ScriptSearchQueryToJSON=function(e){if(void 0!==e)return null===e?null:{organizationId:e.organizationId,communityId:e.communityId,type:e.type,media:e.media,category:e.category,subIntent:e.subIntent,searchText:e.searchText}}},6832:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptSearchResultToJSON=t.ScriptSearchResultFromJSONTyped=t.ScriptSearchResultFromJSON=void 0;var n=i(296),r=i(2644);function o(e,t){return null==e?e:{scripts:n.exists(e,"scripts")?e.scripts.map(r.ScriptFromJSON):void 0,truncated:n.exists(e,"truncated")?e.truncated:void 0}}t.ScriptSearchResultFromJSON=function(e){return o(e)},t.ScriptSearchResultFromJSONTyped=o,t.ScriptSearchResultToJSON=function(e){if(void 0!==e)return null===e?null:{scripts:void 0===e.scripts?void 0:e.scripts.map(r.ScriptToJSON),truncated:e.truncated}}},6865:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SendAgentMessageDtoToJSON=t.SendAgentMessageDtoFromJSONTyped=t.SendAgentMessageDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{message:n.exists(e,"message")?e.message:void 0,contextId:n.exists(e,"contextId")?e.contextId:void 0}}t.SendAgentMessageDtoFromJSON=function(e){return r(e)},t.SendAgentMessageDtoFromJSONTyped=r,t.SendAgentMessageDtoToJSON=function(e){if(void 0!==e)return null===e?null:{message:e.message,contextId:e.contextId}}},6448:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingBooleanToJSON=t.SettingBooleanFromJSONTyped=t.SettingBooleanFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{value:n.exists(e,"value")?e.value:void 0,enabled:n.exists(e,"enabled")?e.enabled:void 0,locked:n.exists(e,"locked")?e.locked:void 0}}t.SettingBooleanFromJSON=function(e){return r(e)},t.SettingBooleanFromJSONTyped=r,t.SettingBooleanToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,enabled:e.enabled,locked:e.locked}}},6161:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingIntegerToJSON=t.SettingIntegerFromJSONTyped=t.SettingIntegerFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{value:n.exists(e,"value")?e.value:void 0,enabled:n.exists(e,"enabled")?e.enabled:void 0,locked:n.exists(e,"locked")?e.locked:void 0}}t.SettingIntegerFromJSON=function(e){return r(e)},t.SettingIntegerFromJSONTyped=r,t.SettingIntegerToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,enabled:e.enabled,locked:e.locked}}},6069:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingStringToJSON=t.SettingStringFromJSONTyped=t.SettingStringFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{value:n.exists(e,"value")?e.value:void 0,enabled:n.exists(e,"enabled")?e.enabled:void 0,locked:n.exists(e,"locked")?e.locked:void 0}}t.SettingStringFromJSON=function(e){return r(e)},t.SettingStringFromJSONTyped=r,t.SettingStringToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,enabled:e.enabled,locked:e.locked}}},6122:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingVirtualTourTypeToJSON=t.SettingVirtualTourTypeFromJSONTyped=t.SettingVirtualTourTypeFromJSON=t.SettingVirtualTourTypeValueEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{value:r.exists(e,"value")?e.value:void 0,enabled:r.exists(e,"enabled")?e.enabled:void 0,locked:r.exists(e,"locked")?e.locked:void 0}}(n=t.SettingVirtualTourTypeValueEnum||(t.SettingVirtualTourTypeValueEnum={})).NotEnabled="NOT_ENABLED",n.SelfManaged="SELF_MANAGED",n.Whereby="WHEREBY",t.SettingVirtualTourTypeFromJSON=function(e){return o(e)},t.SettingVirtualTourTypeFromJSONTyped=o,t.SettingVirtualTourTypeToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,enabled:e.enabled,locked:e.locked}}},5687:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShowActionDtoToJSON=t.ShowActionDtoFromJSONTyped=t.ShowActionDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.ShowActionDtoFromJSON=function(e){return r(e)},t.ShowActionDtoFromJSONTyped=r,t.ShowActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId}}},2558:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubIntentMetadataToJSON=t.SubIntentMetadataFromJSONTyped=t.SubIntentMetadataFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{template:n.exists(e,"template")?e.template:void 0,filled:n.exists(e,"filled")?e.filled:void 0}}t.SubIntentMetadataFromJSON=function(e){return r(e)},t.SubIntentMetadataFromJSONTyped=r,t.SubIntentMetadataToJSON=function(e){if(void 0!==e)return null===e?null:{template:e.template,filled:e.filled}}},904:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseToJSON=t.TourAvailabilityResponseFromJSONTyped=t.TourAvailabilityResponseFromJSON=t.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum=void 0;var n,r=i(296),o=i(7346),a=i(9374);function s(e,t){return null==e?e:{availability:r.exists(e,"availability")?r.mapValues(e.availability,a.TourTypeAvailabilityFromJSON):void 0,calendarTimeZone:r.exists(e,"calendarTimeZone")?o.TourAvailabilityResponseCalendarTimeZoneFromJSON(e.calendarTimeZone):void 0,rankOrderedSupportedTourTypes:r.exists(e,"rankOrderedSupportedTourTypes")?e.rankOrderedSupportedTourTypes:void 0}}(n=t.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum||(t.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.TourAvailabilityResponseFromJSON=function(e){return s(e)},t.TourAvailabilityResponseFromJSONTyped=s,t.TourAvailabilityResponseToJSON=function(e){if(void 0!==e)return null===e?null:{availability:void 0===e.availability?void 0:r.mapValues(e.availability,a.TourTypeAvailabilityToJSON),calendarTimeZone:o.TourAvailabilityResponseCalendarTimeZoneToJSON(e.calendarTimeZone),rankOrderedSupportedTourTypes:e.rankOrderedSupportedTourTypes}}},7346:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneToJSON=t.TourAvailabilityResponseCalendarTimeZoneFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneFromJSON=void 0;var n=i(296),r=i(6306);function o(e,t){return null==e?e:{rules:n.exists(e,"rules")?r.TourAvailabilityResponseCalendarTimeZoneRulesFromJSON(e.rules):void 0,id:n.exists(e,"id")?e.id:void 0}}t.TourAvailabilityResponseCalendarTimeZoneFromJSON=function(e){return o(e)},t.TourAvailabilityResponseCalendarTimeZoneFromJSONTyped=o,t.TourAvailabilityResponseCalendarTimeZoneToJSON=function(e){if(void 0!==e)return null===e?null:{rules:r.TourAvailabilityResponseCalendarTimeZoneRulesToJSON(e.rules),id:e.id}}},6306:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesFromJSON=void 0;var n=i(296),r=i(1155),o=i(8911);function a(e,t){return null==e?e:{transitions:n.exists(e,"transitions")?e.transitions.map(o.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSON):void 0,fixedOffset:n.exists(e,"fixedOffset")?e.fixedOffset:void 0,transitionRules:n.exists(e,"transitionRules")?e.transitionRules.map(r.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSON):void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesFromJSON=function(e){return a(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesFromJSONTyped=a,t.TourAvailabilityResponseCalendarTimeZoneRulesToJSON=function(e){if(void 0!==e)return null===e?null:{transitions:void 0===e.transitions?void 0:e.transitions.map(o.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsToJSON),fixedOffset:e.fixedOffset,transitionRules:void 0===e.transitionRules?void 0:e.transitionRules.map(r.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesToJSON)}}},2977:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesDurationToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSON=void 0;var n=i(296),r=i(1124);function o(e,t){return null==e?e:{seconds:n.exists(e,"seconds")?e.seconds:void 0,nano:n.exists(e,"nano")?e.nano:void 0,negative:n.exists(e,"negative")?e.negative:void 0,units:n.exists(e,"units")?e.units.map(r.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSON):void 0,zero:n.exists(e,"zero")?e.zero:void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSON=function(e){return o(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSONTyped=o,t.TourAvailabilityResponseCalendarTimeZoneRulesDurationToJSON=function(e){if(void 0!==e)return null===e?null:{seconds:e.seconds,nano:e.nano,negative:e.negative,units:void 0===e.units?void 0:e.units.map(r.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsToJSON),zero:e.zero}}},1124:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{dateBased:n.exists(e,"dateBased")?e.dateBased:void 0,timeBased:n.exists(e,"timeBased")?e.timeBased:void 0,durationEstimated:n.exists(e,"durationEstimated")?e.durationEstimated:void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSON=function(e){return r(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSONTyped=r,t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsToJSON=function(e){if(void 0!==e)return null===e?null:{dateBased:e.dateBased,timeBased:e.timeBased,durationEstimated:e.durationEstimated}}},827:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{totalSeconds:n.exists(e,"totalSeconds")?e.totalSeconds:void 0,id:n.exists(e,"id")?e.id:void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON=function(e){return r(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSONTyped=r,t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON=function(e){if(void 0!==e)return null===e?null:{totalSeconds:e.totalSeconds,id:e.id}}},1155:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesDayOfWeekEnum=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesTimeDefinitionEnum=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesMonthEnum=void 0;var n,r,o,a=i(296),s=i(7399),l=i(827);function u(e,t){return null==e?e:{month:a.exists(e,"month")?e.month:void 0,timeDefinition:a.exists(e,"timeDefinition")?e.timeDefinition:void 0,standardOffset:a.exists(e,"standardOffset")?l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.standardOffset):void 0,offsetBefore:a.exists(e,"offsetBefore")?l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.offsetBefore):void 0,offsetAfter:a.exists(e,"offsetAfter")?l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.offsetAfter):void 0,dayOfWeek:a.exists(e,"dayOfWeek")?e.dayOfWeek:void 0,dayOfMonthIndicator:a.exists(e,"dayOfMonthIndicator")?e.dayOfMonthIndicator:void 0,localTime:a.exists(e,"localTime")?s.LocalTimeFromJSON(e.localTime):void 0,midnightEndOfDay:a.exists(e,"midnightEndOfDay")?e.midnightEndOfDay:void 0}}(o=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesMonthEnum||(t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesMonthEnum={})).January="JANUARY",o.February="FEBRUARY",o.March="MARCH",o.April="APRIL",o.May="MAY",o.June="JUNE",o.July="JULY",o.August="AUGUST",o.September="SEPTEMBER",o.October="OCTOBER",o.November="NOVEMBER",o.December="DECEMBER",(r=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesTimeDefinitionEnum||(t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesTimeDefinitionEnum={})).Utc="UTC",r.Wall="WALL",r.Standard="STANDARD",(n=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesDayOfWeekEnum||(t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesDayOfWeekEnum={})).Monday="MONDAY",n.Tuesday="TUESDAY",n.Wednesday="WEDNESDAY",n.Thursday="THURSDAY",n.Friday="FRIDAY",n.Saturday="SATURDAY",n.Sunday="SUNDAY",t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSON=function(e){return u(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSONTyped=u,t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesToJSON=function(e){if(void 0!==e)return null===e?null:{month:e.month,timeDefinition:e.timeDefinition,standardOffset:l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.standardOffset),offsetBefore:l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.offsetBefore),offsetAfter:l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.offsetAfter),dayOfWeek:e.dayOfWeek,dayOfMonthIndicator:e.dayOfMonthIndicator,localTime:s.LocalTimeToJSON(e.localTime),midnightEndOfDay:e.midnightEndOfDay}}},8911:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSON=void 0;var n=i(296),r=i(2977),o=i(827);function a(e,t){return null==e?e:{offsetBefore:n.exists(e,"offsetBefore")?o.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.offsetBefore):void 0,offsetAfter:n.exists(e,"offsetAfter")?o.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.offsetAfter):void 0,duration:n.exists(e,"duration")?r.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSON(e.duration):void 0,dateTimeAfter:n.exists(e,"dateTimeAfter")?new Date(e.dateTimeAfter):void 0,gap:n.exists(e,"gap")?e.gap:void 0,overlap:n.exists(e,"overlap")?e.overlap:void 0,instant:n.exists(e,"instant")?new Date(e.instant):void 0,dateTimeBefore:n.exists(e,"dateTimeBefore")?new Date(e.dateTimeBefore):void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSON=function(e){return a(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSONTyped=a,t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsToJSON=function(e){if(void 0!==e)return null===e?null:{offsetBefore:o.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.offsetBefore),offsetAfter:o.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.offsetAfter),duration:r.TourAvailabilityResponseCalendarTimeZoneRulesDurationToJSON(e.duration),dateTimeAfter:void 0===e.dateTimeAfter?void 0:e.dateTimeAfter.toISOString(),gap:e.gap,overlap:e.overlap,instant:void 0===e.instant?void 0:e.instant.toISOString(),dateTimeBefore:void 0===e.dateTimeBefore?void 0:e.dateTimeBefore.toISOString()}}},9374:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourTypeAvailabilityToJSON=t.TourTypeAvailabilityFromJSONTyped=t.TourTypeAvailabilityFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{tourDurationInMinutes:n.exists(e,"tourDurationInMinutes")?e.tourDurationInMinutes:void 0,availableTourStartTimes:n.exists(e,"availableTourStartTimes")?e.availableTourStartTimes:void 0}}t.TourTypeAvailabilityFromJSON=function(e){return r(e)},t.TourTypeAvailabilityFromJSONTyped=r,t.TourTypeAvailabilityToJSON=function(e){if(void 0!==e)return null===e?null:{tourDurationInMinutes:e.tourDurationInMinutes,availableTourStartTimes:e.availableTourStartTimes}}},6330:(e,t)=>{function i(e,t){return null==e?e:{value:e.value,label:e.label}}var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TourTypeOptionToJSON=t.TourTypeOptionFromJSONTyped=t.TourTypeOptionFromJSON=t.TourTypeOptionValueEnum=void 0,(n=t.TourTypeOptionValueEnum||(t.TourTypeOptionValueEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.TourTypeOptionFromJSON=function(e){return i(e)},t.TourTypeOptionFromJSONTyped=i,t.TourTypeOptionToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,label:e.label}}},9275:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UiBuildingDetailsToJSON=t.UiBuildingDetailsFromJSONTyped=t.UiBuildingDetailsFromJSON=t.UiBuildingDetailsVirtualTourTypeEnum=t.UiBuildingDetailsTourNotificationEmailsModeEnum=void 0;var n,r,o=i(296),a=i(3617);function s(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,launchedDate:o.exists(e,"launchedDate")?new Date(e.launchedDate):void 0,managementCompanyId:o.exists(e,"managementCompanyId")?e.managementCompanyId:void 0,organizationId:o.exists(e,"organizationId")?e.organizationId:void 0,active:o.exists(e,"active")?e.active:void 0,handoffForwardToEmails:o.exists(e,"handoffForwardToEmails")?e.handoffForwardToEmails:void 0,responseCcEmails:o.exists(e,"responseCcEmails")?e.responseCcEmails:void 0,responseBccEmails:o.exists(e,"responseBccEmails")?e.responseBccEmails:void 0,associateCalendarId:o.exists(e,"associateCalendarId")?e.associateCalendarId:void 0,buildingName:o.exists(e,"buildingName")?e.buildingName:void 0,address1:o.exists(e,"address1")?e.address1:void 0,address2:o.exists(e,"address2")?e.address2:void 0,address3:o.exists(e,"address3")?e.address3:void 0,alternativeILSAddresses:o.exists(e,"alternativeILSAddresses")?e.alternativeILSAddresses:void 0,city:o.exists(e,"city")?e.city:void 0,state:o.exists(e,"state")?e.state:void 0,postalCode:o.exists(e,"postalCode")?e.postalCode:void 0,crossStreets:o.exists(e,"crossStreets")?e.crossStreets:void 0,neighborhood:o.exists(e,"neighborhood")?e.neighborhood:void 0,nearbyTransportation:o.exists(e,"nearbyTransportation")?e.nearbyTransportation:void 0,buildingOwnership:o.exists(e,"buildingOwnership")?e.buildingOwnership:void 0,buildingType:o.exists(e,"buildingType")?e.buildingType:void 0,totalUnits:o.exists(e,"totalUnits")?e.totalUnits:void 0,totalFloors:o.exists(e,"totalFloors")?e.totalFloors:void 0,yearBuilt:o.exists(e,"yearBuilt")?e.yearBuilt:void 0,block:o.exists(e,"block")?e.block:void 0,lot:o.exists(e,"lot")?e.lot:void 0,schoolDistrict:o.exists(e,"schoolDistrict")?e.schoolDistrict:void 0,communityDistrict:o.exists(e,"communityDistrict")?e.communityDistrict:void 0,newConstruction:o.exists(e,"newConstruction")?e.newConstruction:void 0,preWarBuilding:o.exists(e,"preWarBuilding")?e.preWarBuilding:void 0,brownstone:o.exists(e,"brownstone")?e.brownstone:void 0,greenBuilding:o.exists(e,"greenBuilding")?e.greenBuilding:void 0,elevator:o.exists(e,"elevator")?e.elevator:void 0,freightElevator:o.exists(e,"freightElevator")?e.freightElevator:void 0,parking:o.exists(e,"parking")?e.parking:void 0,petPolicy:o.exists(e,"petPolicy")?e.petPolicy:void 0,petNumberLimit:o.exists(e,"petNumberLimit")?e.petNumberLimit:void 0,petWeightLimit:o.exists(e,"petWeightLimit")?e.petWeightLimit:void 0,petFeeOrDeposit:o.exists(e,"petFeeOrDeposit")?e.petFeeOrDeposit:void 0,utilitiesIncluded:o.exists(e,"utilitiesIncluded")?e.utilitiesIncluded:void 0,utilitiesNotIncluded:o.exists(e,"utilitiesNotIncluded")?e.utilitiesNotIncluded:void 0,leaseTermsAccepted:o.exists(e,"leaseTermsAccepted")?e.leaseTermsAccepted:void 0,minLeaseTermAccepted:o.exists(e,"minLeaseTermAccepted")?e.minLeaseTermAccepted:void 0,furnishedOffered:o.exists(e,"furnishedOffered")?e.furnishedOffered:void 0,furnishedUnitsPolicy:o.exists(e,"furnishedUnitsPolicy")?e.furnishedUnitsPolicy:void 0,internationalStudentRequirements:o.exists(e,"internationalStudentRequirements")?e.internationalStudentRequirements:void 0,amenitiesFee:o.exists(e,"amenitiesFee")?e.amenitiesFee:void 0,nonSmoking:o.exists(e,"nonSmoking")?e.nonSmoking:void 0,piedATerreAllowed:o.exists(e,"piedATerreAllowed")?e.piedATerreAllowed:void 0,diplomatsOk:o.exists(e,"diplomatsOk")?e.diplomatsOk:void 0,corporateLeasesAccepted:o.exists(e,"corporateLeasesAccepted")?e.corporateLeasesAccepted:void 0,shortTermAllowed:o.exists(e,"shortTermAllowed")?e.shortTermAllowed:void 0,doorman:o.exists(e,"doorman")?e.doorman:void 0,intercom:o.exists(e,"intercom")?e.intercom:void 0,liveInSuper:o.exists(e,"liveInSuper")?e.liveInSuper:void 0,concierge:o.exists(e,"concierge")?e.concierge:void 0,laundryInBuilding:o.exists(e,"laundryInBuilding")?e.laundryInBuilding:void 0,packageReceiving:o.exists(e,"packageReceiving")?e.packageReceiving:void 0,gym:o.exists(e,"gym")?e.gym:void 0,storage:o.exists(e,"storage")?e.storage:void 0,bicycleRoom:o.exists(e,"bicycleRoom")?e.bicycleRoom:void 0,lounge:o.exists(e,"lounge")?e.lounge:void 0,clubHouse:o.exists(e,"clubHouse")?e.clubHouse:void 0,businessCenter:o.exists(e,"businessCenter")?e.businessCenter:void 0,outdoorSpace:o.exists(e,"outdoorSpace")?e.outdoorSpace:void 0,roofDeck:o.exists(e,"roofDeck")?e.roofDeck:void 0,courtyard:o.exists(e,"courtyard")?e.courtyard:void 0,childrenPlayroom:o.exists(e,"childrenPlayroom")?e.childrenPlayroom:void 0,nursery:o.exists(e,"nursery")?e.nursery:void 0,maidService:o.exists(e,"maidService")?e.maidService:void 0,pool:o.exists(e,"pool")?e.pool:void 0,wheelchairAccess:o.exists(e,"wheelchairAccess")?e.wheelchairAccess:void 0,guarantorTypesAccepted:o.exists(e,"guarantorTypesAccepted")?e.guarantorTypesAccepted:void 0,thirdPartyGuarantorTypesAccepted:o.exists(e,"thirdPartyGuarantorTypesAccepted")?e.thirdPartyGuarantorTypesAccepted:void 0,noCreditQualificationAlternative:o.exists(e,"noCreditQualificationAlternative")?e.noCreditQualificationAlternative:void 0,virtualTourPlatforms:o.exists(e,"virtualTourPlatforms")?e.virtualTourPlatforms:void 0,flexWallPolicy:o.exists(e,"flexWallPolicy")?e.flexWallPolicy:void 0,leaseholderApplicationFee:o.exists(e,"leaseholderApplicationFee")?e.leaseholderApplicationFee:void 0,occupantApplicationFee:o.exists(e,"occupantApplicationFee")?e.occupantApplicationFee:void 0,guarantorApplicationFee:o.exists(e,"guarantorApplicationFee")?e.guarantorApplicationFee:void 0,tenantIncomeRequirementRentMultiplier:o.exists(e,"tenantIncomeRequirementRentMultiplier")?e.tenantIncomeRequirementRentMultiplier:void 0,guarantorIncomeRequirementRentMultiplier:o.exists(e,"guarantorIncomeRequirementRentMultiplier")?e.guarantorIncomeRequirementRentMultiplier:void 0,incomeRequirementRentMultiplierTimePeriod:o.exists(e,"incomeRequirementRentMultiplierTimePeriod")?e.incomeRequirementRentMultiplierTimePeriod:void 0,leaseholderMinimumCreditScoreRequirement:o.exists(e,"leaseholderMinimumCreditScoreRequirement")?e.leaseholderMinimumCreditScoreRequirement:void 0,guarantorMinimumCreditScoreRequirement:o.exists(e,"guarantorMinimumCreditScoreRequirement")?e.guarantorMinimumCreditScoreRequirement:void 0,leaseholderApplicationDocumentsRequired:o.exists(e,"leaseholderApplicationDocumentsRequired")?e.leaseholderApplicationDocumentsRequired:void 0,selfEmployedApplicationDocumentsRequired:o.exists(e,"selfEmployedApplicationDocumentsRequired")?e.selfEmployedApplicationDocumentsRequired:void 0,guarantorApplicationDocumentsRequired:o.exists(e,"guarantorApplicationDocumentsRequired")?e.guarantorApplicationDocumentsRequired:void 0,guarantorsAccepted:o.exists(e,"guarantorsAccepted")?e.guarantorsAccepted:void 0,financialsInsufficientAlternative:o.exists(e,"financialsInsufficientAlternative")?e.financialsInsufficientAlternative:void 0,prepaymentPolicy:o.exists(e,"prepaymentPolicy")?e.prepaymentPolicy:void 0,rentRequiredOnLeaseSigning:o.exists(e,"rentRequiredOnLeaseSigning")?e.rentRequiredOnLeaseSigning:void 0,securityDepositRentMultiplier:o.exists(e,"securityDepositRentMultiplier")?e.securityDepositRentMultiplier:void 0,paymentFormsAccepted:o.exists(e,"paymentFormsAccepted")?e.paymentFormsAccepted:void 0,clientEmail:o.exists(e,"clientEmail")?e.clientEmail:void 0,description:o.exists(e,"description")?e.description:void 0,notes:o.exists(e,"notes")?e.notes:void 0,occupiedUnitsShowingHours:o.exists(e,"occupiedUnitsShowingHours")?e.occupiedUnitsShowingHours:void 0,leasingOfficeHours:o.exists(e,"leasingOfficeHours")?e.leasingOfficeHours:void 0,appointmentHours:o.exists(e,"appointmentHours")?e.appointmentHours.map(a.AppointmentHoursFromJSON):void 0,tourDuration:o.exists(e,"tourDuration")?e.tourDuration:void 0,internalNotes:o.exists(e,"internalNotes")?e.internalNotes:void 0,leasingPhoneNumber:o.exists(e,"leasingPhoneNumber")?e.leasingPhoneNumber:void 0,callCenterNumber:o.exists(e,"callCenterNumber")?e.callCenterNumber:void 0,buildingWebsiteUrl:o.exists(e,"buildingWebsiteUrl")?e.buildingWebsiteUrl:void 0,applicationLink:o.exists(e,"applicationLink")?e.applicationLink:void 0,geoAddress:o.exists(e,"geoAddress")?e.geoAddress:void 0,googleMapsUrl:o.exists(e,"googleMapsUrl")?e.googleMapsUrl:void 0,appointmentMeetingLocation:o.exists(e,"appointmentMeetingLocation")?e.appointmentMeetingLocation:void 0,appointmentMeetingPointSpecific:o.exists(e,"appointmentMeetingPointSpecific")?e.appointmentMeetingPointSpecific:void 0,appointmentDirections:o.exists(e,"appointmentDirections")?e.appointmentDirections:void 0,appointmentAdditionalDirections:o.exists(e,"appointmentAdditionalDirections")?e.appointmentAdditionalDirections:void 0,alerts:o.exists(e,"alerts")?e.alerts:void 0,rentComputeType:o.exists(e,"rentComputeType")?e.rentComputeType:void 0,autosendActive:o.exists(e,"autosendActive")?e.autosendActive:void 0,advancedMoveInAllowenceInDays:o.exists(e,"advancedMoveInAllowenceInDays")?e.advancedMoveInAllowenceInDays:void 0,showByOpenHouseOnly:o.exists(e,"showByOpenHouseOnly")?e.showByOpenHouseOnly:void 0,showUnitsWithPendingApplication:o.exists(e,"showUnitsWithPendingApplication")?e.showUnitsWithPendingApplication:void 0,showOccupiedUnitsWithPendingApplication:o.exists(e,"showOccupiedUnitsWithPendingApplication")?e.showOccupiedUnitsWithPendingApplication:void 0,confirmAppointmentsOccupiedUnits:o.exists(e,"confirmAppointmentsOccupiedUnits")?e.confirmAppointmentsOccupiedUnits:void 0,confirmAppointmentsRenovatingUnits:o.exists(e,"confirmAppointmentsRenovatingUnits")?e.confirmAppointmentsRenovatingUnits:void 0,occupiedUnitsAdvancedNoticeInHours:o.exists(e,"occupiedUnitsAdvancedNoticeInHours")?e.occupiedUnitsAdvancedNoticeInHours:void 0,alternativeBuildingNames:o.exists(e,"alternativeBuildingNames")?e.alternativeBuildingNames:void 0,externalIds:o.exists(e,"externalIds")?e.externalIds:void 0,externalCrmId:o.exists(e,"externalCrmId")?e.externalCrmId:void 0,defaultAvailabilityQuoteMatchMoveInDate:o.exists(e,"defaultAvailabilityQuoteMatchMoveInDate")?e.defaultAvailabilityQuoteMatchMoveInDate:void 0,leaseRenewalNoticeInDays:o.exists(e,"leaseRenewalNoticeInDays")?e.leaseRenewalNoticeInDays:void 0,rentQuoteFormat:o.exists(e,"rentQuoteFormat")?e.rentQuoteFormat:void 0,rentWithIncentivesQuoteFormat:o.exists(e,"rentWithIncentivesQuoteFormat")?e.rentWithIncentivesQuoteFormat:void 0,isPartOfComplex:o.exists(e,"isPartOfComplex")?e.isPartOfComplex:void 0,effectiveRentComputeType:o.exists(e,"effectiveRentComputeType")?e.effectiveRentComputeType:void 0,maxLeaseTermAccepted:o.exists(e,"maxLeaseTermAccepted")?e.maxLeaseTermAccepted:void 0,parkingInformation:o.exists(e,"parkingInformation")?e.parkingInformation:void 0,storageFee:o.exists(e,"storageFee")?e.storageFee:void 0,incentivesProperlyConnected:o.exists(e,"incentivesProperlyConnected")?e.incentivesProperlyConnected:void 0,prioritizeShowingVacantUnits:o.exists(e,"prioritizeShowingVacantUnits")?e.prioritizeShowingVacantUnits:void 0,electricCompany:o.exists(e,"electricCompany")?e.electricCompany:void 0,gasCompany:o.exists(e,"gasCompany")?e.gasCompany:void 0,telephoneCompany:o.exists(e,"telephoneCompany")?e.telephoneCompany:void 0,televisionCompany:o.exists(e,"televisionCompany")?e.televisionCompany:void 0,waterCompany:o.exists(e,"waterCompany")?e.waterCompany:void 0,internetCompany:o.exists(e,"internetCompany")?e.internetCompany:void 0,localHospital:o.exists(e,"localHospital")?e.localHospital:void 0,localSchoolDistrict:o.exists(e,"localSchoolDistrict")?e.localSchoolDistrict:void 0,localElementarySchool:o.exists(e,"localElementarySchool")?e.localElementarySchool:void 0,localMiddleSchool:o.exists(e,"localMiddleSchool")?e.localMiddleSchool:void 0,localHighSchool:o.exists(e,"localHighSchool")?e.localHighSchool:void 0,localShoppingCenter:o.exists(e,"localShoppingCenter")?e.localShoppingCenter:void 0,localGroceryStore:o.exists(e,"localGroceryStore")?e.localGroceryStore:void 0,closestInterstates:o.exists(e,"closestInterstates")?e.closestInterstates:void 0,buildingPicturesUrl:o.exists(e,"buildingPicturesUrl")?e.buildingPicturesUrl:void 0,buildingFloorPlansUrl:o.exists(e,"buildingFloorPlansUrl")?e.buildingFloorPlansUrl:void 0,nonexistentLayouts:o.exists(e,"nonexistentLayouts")?e.nonexistentLayouts:void 0,offeredLayouts:o.exists(e,"offeredLayouts")?e.offeredLayouts:void 0,avoidQuotingPrices:o.exists(e,"avoidQuotingPrices")?e.avoidQuotingPrices:void 0,excludeNotRentReadyUnit:o.exists(e,"excludeNotRentReadyUnit")?e.excludeNotRentReadyUnit:void 0,flexWallsAllowed:o.exists(e,"flexWallsAllowed")?e.flexWallsAllowed:void 0,petsAccepted:o.exists(e,"petsAccepted")?e.petsAccepted:void 0,showOccupiedUnits:o.exists(e,"showOccupiedUnits")?e.showOccupiedUnits:void 0,guarantorsAcceptedSwitch:o.exists(e,"guarantorsAcceptedSwitch")?e.guarantorsAcceptedSwitch:void 0,thirdPartyGuarantorsAccepted:o.exists(e,"thirdPartyGuarantorsAccepted")?e.thirdPartyGuarantorsAccepted:void 0,alwaysScheduleAppointments:o.exists(e,"alwaysScheduleAppointments")?e.alwaysScheduleAppointments:void 0,leasingOfficeOnsite:o.exists(e,"leasingOfficeOnsite")?e.leasingOfficeOnsite:void 0,building3dMediaUrl:o.exists(e,"building3dMediaUrl")?e.building3dMediaUrl:void 0,dailyReportEmails:o.exists(e,"dailyReportEmails")?e.dailyReportEmails:void 0,weeklyReportEmails:o.exists(e,"weeklyReportEmails")?e.weeklyReportEmails:void 0,nearbySubways:o.exists(e,"nearbySubways")?e.nearbySubways:void 0,bedroomTypes:o.exists(e,"bedroomTypes")?e.bedroomTypes:void 0,inPersonToursAllowed:o.exists(e,"inPersonToursAllowed")?e.inPersonToursAllowed:void 0,selfGuidedToursEnabled:o.exists(e,"selfGuidedToursEnabled")?e.selfGuidedToursEnabled:void 0,liveVirtualToursAllowed:o.exists(e,"liveVirtualToursAllowed")?e.liveVirtualToursAllowed:void 0,noUnitSelfGuidedTourAllowed:o.exists(e,"noUnitSelfGuidedTourAllowed")?e.noUnitSelfGuidedTourAllowed:void 0,sgSchedulingBasedOnNormalAppointments:o.exists(e,"sgSchedulingBasedOnNormalAppointments")?e.sgSchedulingBasedOnNormalAppointments:void 0,leasingBrochureUrl:o.exists(e,"leasingBrochureUrl")?e.leasingBrochureUrl:void 0,textForwardToEmails:o.exists(e,"textForwardToEmails")?e.textForwardToEmails:void 0,omitDesiredFloorPlan:o.exists(e,"omitDesiredFloorPlan")?e.omitDesiredFloorPlan:void 0,tourNotificationEmailsMode:o.exists(e,"tourNotificationEmailsMode")?e.tourNotificationEmailsMode:void 0,virtualTourType:o.exists(e,"virtualTourType")?e.virtualTourType:void 0,showNotRespondingLeadsInReport:o.exists(e,"showNotRespondingLeadsInReport")?e.showNotRespondingLeadsInReport:void 0,emailSignature:o.exists(e,"emailSignature")?e.emailSignature:void 0,sgtUrl:o.exists(e,"sgtUrl")?e.sgtUrl:void 0,preRecordedVirtualTourUrl:o.exists(e,"preRecordedVirtualTourUrl")?e.preRecordedVirtualTourUrl:void 0,liveVirtualToursLink:o.exists(e,"liveVirtualToursLink")?e.liveVirtualToursLink:void 0,selfGuidedToursLink:o.exists(e,"selfGuidedToursLink")?e.selfGuidedToursLink:void 0}}(r=t.UiBuildingDetailsTourNotificationEmailsModeEnum||(t.UiBuildingDetailsTourNotificationEmailsModeEnum={})).NoNotification="NO_NOTIFICATION",r.AllViewings="ALL_VIEWINGS",r.SameDayViewings="SAME_DAY_VIEWINGS",(n=t.UiBuildingDetailsVirtualTourTypeEnum||(t.UiBuildingDetailsVirtualTourTypeEnum={})).NotEnabled="NOT_ENABLED",n.SelfManaged="SELF_MANAGED",n.Whereby="WHEREBY",t.UiBuildingDetailsFromJSON=function(e){return s(e)},t.UiBuildingDetailsFromJSONTyped=s,t.UiBuildingDetailsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,launchedDate:void 0===e.launchedDate?void 0:e.launchedDate.toISOString(),managementCompanyId:e.managementCompanyId,organizationId:e.organizationId,active:e.active,handoffForwardToEmails:e.handoffForwardToEmails,responseCcEmails:e.responseCcEmails,responseBccEmails:e.responseBccEmails,associateCalendarId:e.associateCalendarId,buildingName:e.buildingName,address1:e.address1,address2:e.address2,address3:e.address3,alternativeILSAddresses:e.alternativeILSAddresses,city:e.city,state:e.state,postalCode:e.postalCode,crossStreets:e.crossStreets,neighborhood:e.neighborhood,nearbyTransportation:e.nearbyTransportation,buildingOwnership:e.buildingOwnership,buildingType:e.buildingType,totalUnits:e.totalUnits,totalFloors:e.totalFloors,yearBuilt:e.yearBuilt,block:e.block,lot:e.lot,schoolDistrict:e.schoolDistrict,communityDistrict:e.communityDistrict,newConstruction:e.newConstruction,preWarBuilding:e.preWarBuilding,brownstone:e.brownstone,greenBuilding:e.greenBuilding,elevator:e.elevator,freightElevator:e.freightElevator,parking:e.parking,petPolicy:e.petPolicy,petNumberLimit:e.petNumberLimit,petWeightLimit:e.petWeightLimit,petFeeOrDeposit:e.petFeeOrDeposit,utilitiesIncluded:e.utilitiesIncluded,utilitiesNotIncluded:e.utilitiesNotIncluded,leaseTermsAccepted:e.leaseTermsAccepted,minLeaseTermAccepted:e.minLeaseTermAccepted,furnishedOffered:e.furnishedOffered,furnishedUnitsPolicy:e.furnishedUnitsPolicy,internationalStudentRequirements:e.internationalStudentRequirements,amenitiesFee:e.amenitiesFee,nonSmoking:e.nonSmoking,piedATerreAllowed:e.piedATerreAllowed,diplomatsOk:e.diplomatsOk,corporateLeasesAccepted:e.corporateLeasesAccepted,shortTermAllowed:e.shortTermAllowed,doorman:e.doorman,intercom:e.intercom,liveInSuper:e.liveInSuper,concierge:e.concierge,laundryInBuilding:e.laundryInBuilding,packageReceiving:e.packageReceiving,gym:e.gym,storage:e.storage,bicycleRoom:e.bicycleRoom,lounge:e.lounge,clubHouse:e.clubHouse,businessCenter:e.businessCenter,outdoorSpace:e.outdoorSpace,roofDeck:e.roofDeck,courtyard:e.courtyard,childrenPlayroom:e.childrenPlayroom,nursery:e.nursery,maidService:e.maidService,pool:e.pool,wheelchairAccess:e.wheelchairAccess,guarantorTypesAccepted:e.guarantorTypesAccepted,thirdPartyGuarantorTypesAccepted:e.thirdPartyGuarantorTypesAccepted,noCreditQualificationAlternative:e.noCreditQualificationAlternative,virtualTourPlatforms:e.virtualTourPlatforms,flexWallPolicy:e.flexWallPolicy,leaseholderApplicationFee:e.leaseholderApplicationFee,occupantApplicationFee:e.occupantApplicationFee,guarantorApplicationFee:e.guarantorApplicationFee,tenantIncomeRequirementRentMultiplier:e.tenantIncomeRequirementRentMultiplier,guarantorIncomeRequirementRentMultiplier:e.guarantorIncomeRequirementRentMultiplier,incomeRequirementRentMultiplierTimePeriod:e.incomeRequirementRentMultiplierTimePeriod,leaseholderMinimumCreditScoreRequirement:e.leaseholderMinimumCreditScoreRequirement,guarantorMinimumCreditScoreRequirement:e.guarantorMinimumCreditScoreRequirement,leaseholderApplicationDocumentsRequired:e.leaseholderApplicationDocumentsRequired,selfEmployedApplicationDocumentsRequired:e.selfEmployedApplicationDocumentsRequired,guarantorApplicationDocumentsRequired:e.guarantorApplicationDocumentsRequired,guarantorsAccepted:e.guarantorsAccepted,financialsInsufficientAlternative:e.financialsInsufficientAlternative,prepaymentPolicy:e.prepaymentPolicy,rentRequiredOnLeaseSigning:e.rentRequiredOnLeaseSigning,securityDepositRentMultiplier:e.securityDepositRentMultiplier,paymentFormsAccepted:e.paymentFormsAccepted,clientEmail:e.clientEmail,description:e.description,notes:e.notes,occupiedUnitsShowingHours:e.occupiedUnitsShowingHours,leasingOfficeHours:e.leasingOfficeHours,appointmentHours:void 0===e.appointmentHours?void 0:e.appointmentHours.map(a.AppointmentHoursToJSON),tourDuration:e.tourDuration,internalNotes:e.internalNotes,leasingPhoneNumber:e.leasingPhoneNumber,callCenterNumber:e.callCenterNumber,buildingWebsiteUrl:e.buildingWebsiteUrl,applicationLink:e.applicationLink,geoAddress:e.geoAddress,googleMapsUrl:e.googleMapsUrl,appointmentMeetingLocation:e.appointmentMeetingLocation,appointmentMeetingPointSpecific:e.appointmentMeetingPointSpecific,appointmentDirections:e.appointmentDirections,appointmentAdditionalDirections:e.appointmentAdditionalDirections,alerts:e.alerts,rentComputeType:e.rentComputeType,autosendActive:e.autosendActive,advancedMoveInAllowenceInDays:e.advancedMoveInAllowenceInDays,showByOpenHouseOnly:e.showByOpenHouseOnly,showUnitsWithPendingApplication:e.showUnitsWithPendingApplication,showOccupiedUnitsWithPendingApplication:e.showOccupiedUnitsWithPendingApplication,confirmAppointmentsOccupiedUnits:e.confirmAppointmentsOccupiedUnits,confirmAppointmentsRenovatingUnits:e.confirmAppointmentsRenovatingUnits,occupiedUnitsAdvancedNoticeInHours:e.occupiedUnitsAdvancedNoticeInHours,alternativeBuildingNames:e.alternativeBuildingNames,externalIds:e.externalIds,externalCrmId:e.externalCrmId,defaultAvailabilityQuoteMatchMoveInDate:e.defaultAvailabilityQuoteMatchMoveInDate,leaseRenewalNoticeInDays:e.leaseRenewalNoticeInDays,rentQuoteFormat:e.rentQuoteFormat,rentWithIncentivesQuoteFormat:e.rentWithIncentivesQuoteFormat,isPartOfComplex:e.isPartOfComplex,effectiveRentComputeType:e.effectiveRentComputeType,maxLeaseTermAccepted:e.maxLeaseTermAccepted,parkingInformation:e.parkingInformation,storageFee:e.storageFee,incentivesProperlyConnected:e.incentivesProperlyConnected,prioritizeShowingVacantUnits:e.prioritizeShowingVacantUnits,electricCompany:e.electricCompany,gasCompany:e.gasCompany,telephoneCompany:e.telephoneCompany,televisionCompany:e.televisionCompany,waterCompany:e.waterCompany,internetCompany:e.internetCompany,localHospital:e.localHospital,localSchoolDistrict:e.localSchoolDistrict,localElementarySchool:e.localElementarySchool,localMiddleSchool:e.localMiddleSchool,localHighSchool:e.localHighSchool,localShoppingCenter:e.localShoppingCenter,localGroceryStore:e.localGroceryStore,closestInterstates:e.closestInterstates,buildingPicturesUrl:e.buildingPicturesUrl,buildingFloorPlansUrl:e.buildingFloorPlansUrl,nonexistentLayouts:e.nonexistentLayouts,offeredLayouts:e.offeredLayouts,avoidQuotingPrices:e.avoidQuotingPrices,excludeNotRentReadyUnit:e.excludeNotRentReadyUnit,flexWallsAllowed:e.flexWallsAllowed,petsAccepted:e.petsAccepted,showOccupiedUnits:e.showOccupiedUnits,guarantorsAcceptedSwitch:e.guarantorsAcceptedSwitch,thirdPartyGuarantorsAccepted:e.thirdPartyGuarantorsAccepted,alwaysScheduleAppointments:e.alwaysScheduleAppointments,leasingOfficeOnsite:e.leasingOfficeOnsite,building3dMediaUrl:e.building3dMediaUrl,dailyReportEmails:e.dailyReportEmails,weeklyReportEmails:e.weeklyReportEmails,nearbySubways:e.nearbySubways,bedroomTypes:e.bedroomTypes,inPersonToursAllowed:e.inPersonToursAllowed,selfGuidedToursEnabled:e.selfGuidedToursEnabled,liveVirtualToursAllowed:e.liveVirtualToursAllowed,noUnitSelfGuidedTourAllowed:e.noUnitSelfGuidedTourAllowed,sgSchedulingBasedOnNormalAppointments:e.sgSchedulingBasedOnNormalAppointments,leasingBrochureUrl:e.leasingBrochureUrl,textForwardToEmails:e.textForwardToEmails,omitDesiredFloorPlan:e.omitDesiredFloorPlan,tourNotificationEmailsMode:e.tourNotificationEmailsMode,virtualTourType:e.virtualTourType,showNotRespondingLeadsInReport:e.showNotRespondingLeadsInReport,emailSignature:e.emailSignature,sgtUrl:e.sgtUrl,preRecordedVirtualTourUrl:e.preRecordedVirtualTourUrl,liveVirtualToursLink:e.liveVirtualToursLink,selfGuidedToursLink:e.selfGuidedToursLink}}},260:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnitDetailsToJSON=t.UnitDetailsFromJSONTyped=t.UnitDetailsFromJSON=void 0;var n=i(296),r=i(3617),o=i(5604);function a(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,timeCreated:n.exists(e,"timeCreated")?new Date(e.timeCreated):void 0,active:n.exists(e,"active")?e.active:void 0,unitNumber:n.exists(e,"unitNumber")?e.unitNumber:void 0,description:n.exists(e,"description")?e.description:void 0,dateAvailable:n.exists(e,"dateAvailable")?new Date(e.dateAvailable):void 0,firstShowingDate:n.exists(e,"firstShowingDate")?new Date(e.firstShowingDate):void 0,applicationStatus:n.exists(e,"applicationStatus")?e.applicationStatus:void 0,availabilityStage:n.exists(e,"availabilityStage")?e.availabilityStage:void 0,viewingTimes:n.exists(e,"viewingTimes")?e.viewingTimes:void 0,tenantOccupied:n.exists(e,"tenantOccupied")?e.tenantOccupied:void 0,openHouse:n.exists(e,"openHouse")?e.openHouse.map(r.AppointmentHoursFromJSON):void 0,minLeaseTerm:n.exists(e,"minLeaseTerm")?e.minLeaseTerm:void 0,maxLeaseTerm:n.exists(e,"maxLeaseTerm")?e.maxLeaseTerm:void 0,floorplanLink:n.exists(e,"floorplanLink")?e.floorplanLink:void 0,floorplanFileType:n.exists(e,"floorplanFileType")?e.floorplanFileType:void 0,applicationUrl:n.exists(e,"applicationUrl")?e.applicationUrl:void 0,numberOfBedrooms:n.exists(e,"numberOfBedrooms")?e.numberOfBedrooms:void 0,numberOfBathrooms:n.exists(e,"numberOfBathrooms")?e.numberOfBathrooms:void 0,totalRooms:n.exists(e,"totalRooms")?e.totalRooms:void 0,layout:n.exists(e,"layout")?e.layout:void 0,layoutDescription:n.exists(e,"layoutDescription")?e.layoutDescription:void 0,convertible:n.exists(e,"convertible")?e.convertible:void 0,partitionTypesAllowed:n.exists(e,"partitionTypesAllowed")?e.partitionTypesAllowed:void 0,furnished:n.exists(e,"furnished")?e.furnished:void 0,furnishedAddedPrice:n.exists(e,"furnishedAddedPrice")?e.furnishedAddedPrice:void 0,laundryInUnit:n.exists(e,"laundryInUnit")?e.laundryInUnit:void 0,windowAirConditioning:n.exists(e,"windowAirConditioning")?e.windowAirConditioning:void 0,centralAirConditioning:n.exists(e,"centralAirConditioning")?e.centralAirConditioning:void 0,ceilingFan:n.exists(e,"ceilingFan")?e.ceilingFan:void 0,centralHeating:n.exists(e,"centralHeating")?e.centralHeating:void 0,dishwasher:n.exists(e,"dishwasher")?e.dishwasher:void 0,walkInCloset:n.exists(e,"walkInCloset")?e.walkInCloset:void 0,microwave:n.exists(e,"microwave")?e.microwave:void 0,hardwoodFloors:n.exists(e,"hardwoodFloors")?e.hardwoodFloors:void 0,carpet:n.exists(e,"carpet")?e.carpet:void 0,highCeilings:n.exists(e,"highCeilings")?e.highCeilings:void 0,floorToCeilingWindows:n.exists(e,"floorToCeilingWindows")?e.floorToCeilingWindows:void 0,fireplace:n.exists(e,"fireplace")?e.fireplace:void 0,exposure:n.exists(e,"exposure")?e.exposure:void 0,view:n.exists(e,"view")?e.view:void 0,viewDescription:n.exists(e,"viewDescription")?e.viewDescription:void 0,assignedParking:n.exists(e,"assignedParking")?e.assignedParking:void 0,privateOutDoorSpace:n.exists(e,"privateOutDoorSpace")?e.privateOutDoorSpace:void 0,incentive:n.exists(e,"incentive")?e.incentive:void 0,notes:n.exists(e,"notes")?e.notes:void 0,brokerUnitDescription:n.exists(e,"brokerUnitDescription")?e.brokerUnitDescription:void 0,brokerFeeStructure:n.exists(e,"brokerFeeStructure")?e.brokerFeeStructure:void 0,defaultUnitCurrentAvailabilities:n.exists(e,"defaultUnitCurrentAvailabilities")?e.defaultUnitCurrentAvailabilities:void 0,building:n.exists(e,"building")?o.BuildingDetailsFromJSON(e.building):void 0,numberOfAvailableUnits:n.exists(e,"numberOfAvailableUnits")?e.numberOfAvailableUnits:void 0,rent:n.exists(e,"rent")?e.rent:void 0,grossRent:n.exists(e,"grossRent")?e.grossRent:void 0,brokerNetRent:n.exists(e,"brokerNetRent")?e.brokerNetRent:void 0,squareFootage:n.exists(e,"squareFootage")?e.squareFootage:void 0,floor:n.exists(e,"floor")?e.floor:void 0,maxRent:n.exists(e,"maxRent")?e.maxRent:void 0,maxGrossRent:n.exists(e,"maxGrossRent")?e.maxGrossRent:void 0,maxBrokerNetRent:n.exists(e,"maxBrokerNetRent")?e.maxBrokerNetRent:void 0,maxSquareFootage:n.exists(e,"maxSquareFootage")?e.maxSquareFootage:void 0,maxFloor:n.exists(e,"maxFloor")?e.maxFloor:void 0,complexId:n.exists(e,"complexId")?e.complexId:void 0,alternativeUnitNumbers:n.exists(e,"alternativeUnitNumbers")?e.alternativeUnitNumbers:void 0,externalId:n.exists(e,"externalId")?e.externalId:void 0,alternativeBuildingCrmId:n.exists(e,"alternativeBuildingCrmId")?e.alternativeBuildingCrmId:void 0,externalFloorPlanDescriptionId:n.exists(e,"externalFloorPlanDescriptionId")?e.externalFloorPlanDescriptionId:void 0,walkinUrl:n.exists(e,"walkinUrl")?e.walkinUrl:void 0,marketRateUnit:n.exists(e,"marketRateUnit")?e.marketRateUnit:void 0,_new:n.exists(e,"new")?e.new:void 0}}t.UnitDetailsFromJSON=function(e){return a(e)},t.UnitDetailsFromJSONTyped=a,t.UnitDetailsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,timeCreated:void 0===e.timeCreated?void 0:e.timeCreated.toISOString(),active:e.active,unitNumber:e.unitNumber,description:e.description,dateAvailable:void 0===e.dateAvailable?void 0:e.dateAvailable.toISOString(),firstShowingDate:void 0===e.firstShowingDate?void 0:e.firstShowingDate.toISOString(),applicationStatus:e.applicationStatus,availabilityStage:e.availabilityStage,viewingTimes:e.viewingTimes,tenantOccupied:e.tenantOccupied,openHouse:void 0===e.openHouse?void 0:e.openHouse.map(r.AppointmentHoursToJSON),minLeaseTerm:e.minLeaseTerm,maxLeaseTerm:e.maxLeaseTerm,floorplanLink:e.floorplanLink,floorplanFileType:e.floorplanFileType,applicationUrl:e.applicationUrl,numberOfBedrooms:e.numberOfBedrooms,numberOfBathrooms:e.numberOfBathrooms,totalRooms:e.totalRooms,layout:e.layout,layoutDescription:e.layoutDescription,convertible:e.convertible,partitionTypesAllowed:e.partitionTypesAllowed,furnished:e.furnished,furnishedAddedPrice:e.furnishedAddedPrice,laundryInUnit:e.laundryInUnit,windowAirConditioning:e.windowAirConditioning,centralAirConditioning:e.centralAirConditioning,ceilingFan:e.ceilingFan,centralHeating:e.centralHeating,dishwasher:e.dishwasher,walkInCloset:e.walkInCloset,microwave:e.microwave,hardwoodFloors:e.hardwoodFloors,carpet:e.carpet,highCeilings:e.highCeilings,floorToCeilingWindows:e.floorToCeilingWindows,fireplace:e.fireplace,exposure:e.exposure,view:e.view,viewDescription:e.viewDescription,assignedParking:e.assignedParking,privateOutDoorSpace:e.privateOutDoorSpace,incentive:e.incentive,notes:e.notes,brokerUnitDescription:e.brokerUnitDescription,brokerFeeStructure:e.brokerFeeStructure,defaultUnitCurrentAvailabilities:e.defaultUnitCurrentAvailabilities,building:o.BuildingDetailsToJSON(e.building),numberOfAvailableUnits:e.numberOfAvailableUnits,rent:e.rent,grossRent:e.grossRent,brokerNetRent:e.brokerNetRent,squareFootage:e.squareFootage,floor:e.floor,maxRent:e.maxRent,maxGrossRent:e.maxGrossRent,maxBrokerNetRent:e.maxBrokerNetRent,maxSquareFootage:e.maxSquareFootage,maxFloor:e.maxFloor,complexId:e.complexId,alternativeUnitNumbers:e.alternativeUnitNumbers,externalId:e.externalId,alternativeBuildingCrmId:e.alternativeBuildingCrmId,externalFloorPlanDescriptionId:e.externalFloorPlanDescriptionId,walkinUrl:e.walkinUrl,marketRateUnit:e.marketRateUnit,new:e._new}}},1161:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnitIncentiveToJSON=t.UnitIncentiveFromJSONTyped=t.UnitIncentiveFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,typeOfIncentive:n.exists(e,"typeOfIncentive")?e.typeOfIncentive:void 0,noFee:n.exists(e,"noFee")?e.noFee:void 0,numberFreeMonths:n.exists(e,"numberFreeMonths")?e.numberFreeMonths:void 0,leaseLength:n.exists(e,"leaseLength")?e.leaseLength:void 0,typeOfCustomerItAppliesTo:n.exists(e,"typeOfCustomerItAppliesTo")?e.typeOfCustomerItAppliesTo:void 0,numberOfMonthsOwnerPays:n.exists(e,"numberOfMonthsOwnerPays")?e.numberOfMonthsOwnerPays:void 0,originalIncentiveString:n.exists(e,"originalIncentiveString")?e.originalIncentiveString:void 0,active:n.exists(e,"active")?e.active:void 0,incentiveInformationString:n.exists(e,"incentiveInformationString")?e.incentiveInformationString:void 0,asJson:n.exists(e,"asJson")?e.asJson:void 0,valid:n.exists(e,"valid")?e.valid:void 0}}t.UnitIncentiveFromJSON=function(e){return r(e)},t.UnitIncentiveFromJSONTyped=r,t.UnitIncentiveToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,unitId:e.unitId,typeOfIncentive:e.typeOfIncentive,noFee:e.noFee,numberFreeMonths:e.numberFreeMonths,leaseLength:e.leaseLength,typeOfCustomerItAppliesTo:e.typeOfCustomerItAppliesTo,numberOfMonthsOwnerPays:e.numberOfMonthsOwnerPays,originalIncentiveString:e.originalIncentiveString,active:e.active,incentiveInformationString:e.incentiveInformationString,asJson:e.asJson,valid:e.valid}}},5239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnitIncentiveResultToJSON=t.UnitIncentiveResultFromJSONTyped=t.UnitIncentiveResultFromJSON=void 0;var n=i(296),r=i(1161);function o(e,t){return null==e?e:{tenantUnitIncentives:n.exists(e,"tenantUnitIncentives")?e.tenantUnitIncentives.map(r.UnitIncentiveFromJSON):void 0,brokerUnitIncentives:n.exists(e,"brokerUnitIncentives")?e.brokerUnitIncentives.map(r.UnitIncentiveFromJSON):void 0}}t.UnitIncentiveResultFromJSON=function(e){return o(e)},t.UnitIncentiveResultFromJSONTyped=o,t.UnitIncentiveResultToJSON=function(e){if(void 0!==e)return null===e?null:{tenantUnitIncentives:void 0===e.tenantUnitIncentives?void 0:e.tenantUnitIncentives.map(r.UnitIncentiveToJSON),brokerUnitIncentives:void 0===e.brokerUnitIncentives?void 0:e.brokerUnitIncentives.map(r.UnitIncentiveToJSON)}}},3842:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateEmailsRequestToJSON=t.UpdateEmailsRequestFromJSONTyped=t.UpdateEmailsRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{emails:n.exists(e,"emails")?e.emails:void 0}}t.UpdateEmailsRequestFromJSON=function(e){return r(e)},t.UpdateEmailsRequestFromJSONTyped=r,t.UpdateEmailsRequestToJSON=function(e){if(void 0!==e)return null===e?null:{emails:e.emails}}},9908:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateScriptRequestToJSON=t.UpdateScriptRequestFromJSONTyped=t.UpdateScriptRequestFromJSON=t.UpdateScriptRequestHandoffIntentStateEnum=t.UpdateScriptRequestMediaEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{organizationId:o.exists(e,"organizationId")?e.organizationId:void 0,media:e.media,category:e.category,subIntent:o.exists(e,"subIntent")?e.subIntent:void 0,text:e.text,handoffIntentState:o.exists(e,"handoffIntentState")?e.handoffIntentState:void 0,communityId:o.exists(e,"communityId")?e.communityId:void 0}}(r=t.UpdateScriptRequestMediaEnum||(t.UpdateScriptRequestMediaEnum={})).Both="BOTH",r.Email="EMAIL",r.Sms="SMS",(n=t.UpdateScriptRequestHandoffIntentStateEnum||(t.UpdateScriptRequestHandoffIntentStateEnum={})).None="NONE",n.YellowStatus="YELLOW_STATUS",n.RedAlertSend="RED_ALERT_SEND",n.RedAlertDoNotSend="RED_ALERT_DO_NOT_SEND",t.UpdateScriptRequestFromJSON=function(e){return a(e)},t.UpdateScriptRequestFromJSONTyped=a,t.UpdateScriptRequestToJSON=function(e){if(void 0!==e)return null===e?null:{organizationId:e.organizationId,media:e.media,category:e.category,subIntent:e.subIntent,text:e.text,handoffIntentState:e.handoffIntentState,communityId:e.communityId}}},5530:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UpsertDialogueScriptRequestToJSON=t.UpsertDialogueScriptRequestFromJSONTyped=t.UpsertDialogueScriptRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,name:n.exists(e,"name")?e.name:void 0,subintent:n.exists(e,"subintent")?e.subintent:void 0,text:n.exists(e,"text")?e.text:void 0}}t.UpsertDialogueScriptRequestFromJSON=function(e){return r(e)},t.UpsertDialogueScriptRequestFromJSONTyped=r,t.UpsertDialogueScriptRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,organizationId:e.organizationId,name:e.name,subintent:e.subintent,text:e.text}}},9256:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.V2BuildingMigrationStatusToJSON=t.V2BuildingMigrationStatusFromJSONTyped=t.V2BuildingMigrationStatusFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,buildingName:n.exists(e,"buildingName")?e.buildingName:void 0,userId:n.exists(e,"userId")?e.userId:void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,organizationName:n.exists(e,"organizationName")?e.organizationName:void 0,scope:n.exists(e,"scope")?e.scope:void 0,timeSeeded:n.exists(e,"timeSeeded")?new Date(e.timeSeeded):void 0,timeReadyToConfigure:n.exists(e,"timeReadyToConfigure")?new Date(e.timeReadyToConfigure):void 0,timeConfigured:n.exists(e,"timeConfigured")?new Date(e.timeConfigured):void 0,timeWentLive:n.exists(e,"timeWentLive")?new Date(e.timeWentLive):void 0}}t.V2BuildingMigrationStatusFromJSON=function(e){return r(e)},t.V2BuildingMigrationStatusFromJSONTyped=r,t.V2BuildingMigrationStatusToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,buildingName:e.buildingName,userId:e.userId,organizationId:e.organizationId,organizationName:e.organizationName,scope:e.scope,timeSeeded:void 0===e.timeSeeded?void 0:e.timeSeeded.toISOString(),timeReadyToConfigure:void 0===e.timeReadyToConfigure?void 0:e.timeReadyToConfigure.toISOString(),timeConfigured:void 0===e.timeConfigured?void 0:e.timeConfigured.toISOString(),timeWentLive:void 0===e.timeWentLive?void 0:e.timeWentLive.toISOString()}}},2288:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateCredentialsRequestToJSON=t.ValidateCredentialsRequestFromJSONTyped=t.ValidateCredentialsRequestFromJSON=t.ValidateCredentialsRequestIntegrationValidationTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{validationName:e.validationName,integrationValidationType:e.integrationValidationType,buildingName:e.buildingName,streetAddress:e.streetAddress,username:r.exists(e,"username")?e.username:void 0,password:r.exists(e,"password")?e.password:void 0,submitterEmail:e.submitterEmail,submitterOrgId:e.submitterOrgId,marketingApiKey:r.exists(e,"marketingApiKey")?e.marketingApiKey:void 0,databaseName:r.exists(e,"databaseName")?e.databaseName:void 0,serverName:r.exists(e,"serverName")?e.serverName:void 0,voyagerUrl:r.exists(e,"voyagerUrl")?e.voyagerUrl:void 0,companyCode:r.exists(e,"companyCode")?e.companyCode:void 0,connectionUrl:r.exists(e,"connectionUrl")?e.connectionUrl:void 0,vendorApiToken:r.exists(e,"vendorApiToken")?e.vendorApiToken:void 0,entrataDomain:r.exists(e,"entrataDomain")?e.entrataDomain:void 0}}(n=t.ValidateCredentialsRequestIntegrationValidationTypeEnum||(t.ValidateCredentialsRequestIntegrationValidationTypeEnum={})).Voyager="VOYAGER",n.VoyagerPlusRentcafeMarketingApiKeyAndVendorApiToken="VOYAGER_PLUS_RENTCAFE_MARKETING_API_KEY_AND_VENDOR_API_TOKEN",n.VoyagerPlusRentcafeVendorApiToken="VOYAGER_PLUS_RENTCAFE_VENDOR_API_TOKEN",n.Entrata="ENTRATA",t.ValidateCredentialsRequestFromJSON=function(e){return o(e)},t.ValidateCredentialsRequestFromJSONTyped=o,t.ValidateCredentialsRequestToJSON=function(e){if(void 0!==e)return null===e?null:{validationName:e.validationName,integrationValidationType:e.integrationValidationType,buildingName:e.buildingName,streetAddress:e.streetAddress,username:e.username,password:e.password,submitterEmail:e.submitterEmail,submitterOrgId:e.submitterOrgId,marketingApiKey:e.marketingApiKey,databaseName:e.databaseName,serverName:e.serverName,voyagerUrl:e.voyagerUrl,companyCode:e.companyCode,connectionUrl:e.connectionUrl,vendorApiToken:e.vendorApiToken,entrataDomain:e.entrataDomain}}},3029:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateCredentialsResponseToJSON=t.ValidateCredentialsResponseFromJSONTyped=t.ValidateCredentialsResponseFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{message:e.message,failed:e.failed,errorMessages:n.exists(e,"errorMessages")?e.errorMessages:void 0}}t.ValidateCredentialsResponseFromJSON=function(e){return r(e)},t.ValidateCredentialsResponseFromJSONTyped=r,t.ValidateCredentialsResponseToJSON=function(e){if(void 0!==e)return null===e?null:{message:e.message,failed:e.failed,errorMessages:e.errorMessages}}},5454:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WalkInAndShowActionDtoToJSON=t.WalkInAndShowActionDtoFromJSONTyped=t.WalkInAndShowActionDtoFromJSON=void 0;var n=i(296),r=i(5007);function o(e,t){return null==e?e:{userId:n.exists(e,"userId")?e.userId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,guestCard:n.exists(e,"guestCard")?r.EliseGuestCardDtoFromJSON(e.guestCard):void 0}}t.WalkInAndShowActionDtoFromJSON=function(e){return o(e)},t.WalkInAndShowActionDtoFromJSONTyped=o,t.WalkInAndShowActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{userId:e.userId,buildingId:e.buildingId,unitId:e.unitId,guestCard:r.EliseGuestCardDtoToJSON(e.guestCard)}}},2449:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WalkInOrCallActionDtoToJSON=t.WalkInOrCallActionDtoFromJSONTyped=t.WalkInOrCallActionDtoFromJSON=void 0;var n=i(296),r=i(5007);function o(e,t){return null==e?e:{userId:n.exists(e,"userId")?e.userId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,guestCard:n.exists(e,"guestCard")?r.EliseGuestCardDtoFromJSON(e.guestCard):void 0}}t.WalkInOrCallActionDtoFromJSON=function(e){return o(e)},t.WalkInOrCallActionDtoFromJSONTyped=o,t.WalkInOrCallActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{userId:e.userId,buildingId:e.buildingId,unitId:e.unitId,guestCard:r.EliseGuestCardDtoToJSON(e.guestCard)}}},2242:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebReportingDashboardResponseToJSON=t.WebReportingDashboardResponseFromJSONTyped=t.WebReportingDashboardResponseFromJSON=void 0;var n=i(296),r=i(1961);function o(e,t){return null==e?e:{dataGroupedByTimePeriod:e.dataGroupedByTimePeriod,afterHoursDataGroupedByTimePeriod:e.afterHoursDataGroupedByTimePeriod,marketingSourceDataGroupedByTimePeriod:e.marketingSourceDataGroupedByTimePeriod,afterHoursMarketingSourceDataGroupedByTimePeriod:e.afterHoursMarketingSourceDataGroupedByTimePeriod,buildingNameMap:e.buildingNameMap,aiNameMap:e.aiNameMap,buildingToAiMap:n.mapValues(e.buildingToAiMap,r.AiAssistantStubInfoFromJSON)}}t.WebReportingDashboardResponseFromJSON=function(e){return o(e)},t.WebReportingDashboardResponseFromJSONTyped=o,t.WebReportingDashboardResponseToJSON=function(e){if(void 0!==e)return null===e?null:{dataGroupedByTimePeriod:e.dataGroupedByTimePeriod,afterHoursDataGroupedByTimePeriod:e.afterHoursDataGroupedByTimePeriod,marketingSourceDataGroupedByTimePeriod:e.marketingSourceDataGroupedByTimePeriod,afterHoursMarketingSourceDataGroupedByTimePeriod:e.afterHoursMarketingSourceDataGroupedByTimePeriod,buildingNameMap:e.buildingNameMap,aiNameMap:e.aiNameMap,buildingToAiMap:n.mapValues(e.buildingToAiMap,r.AiAssistantStubInfoToJSON)}}},6570:(e,t)=>{function i(e,t){return null==e?e:{id:e.id,buildingId:e.buildingId,email:e.email}}Object.defineProperty(t,"__esModule",{value:!0}),t.WeeklyReportEmailToJSON=t.WeeklyReportEmailFromJSONTyped=t.WeeklyReportEmailFromJSON=void 0,t.WeeklyReportEmailFromJSON=function(e){return i(e)},t.WeeklyReportEmailFromJSONTyped=i,t.WeeklyReportEmailToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,email:e.email}}},4675:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListConfigToJSON=t.WhiteListConfigFromJSONTyped=t.WhiteListConfigFromJSON=t.WhiteListConfigStatusEnum=t.WhiteListConfigCurrentWhiteListStepEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,testingName:o.exists(e,"testingName")?e.testingName:void 0,buildingId:o.exists(e,"buildingId")?e.buildingId:void 0,whiteListingEmail:o.exists(e,"whiteListingEmail")?e.whiteListingEmail:void 0,timeInitiated:o.exists(e,"timeInitiated")?new Date(e.timeInitiated):void 0,lastUpdated:o.exists(e,"lastUpdated")?new Date(e.lastUpdated):void 0,currentWhiteListStep:o.exists(e,"currentWhiteListStep")?e.currentWhiteListStep:void 0,contextId:o.exists(e,"contextId")?e.contextId:void 0,mcId:o.exists(e,"mcId")?e.mcId:void 0,status:o.exists(e,"status")?e.status:void 0,requestedTime:o.exists(e,"requestedTime")?e.requestedTime:void 0,confirmedTime:o.exists(e,"confirmedTime")?e.confirmedTime:void 0,eventId:o.exists(e,"eventId")?e.eventId:void 0,failureReason:o.exists(e,"failureReason")?e.failureReason:void 0}}(r=t.WhiteListConfigCurrentWhiteListStepEnum||(t.WhiteListConfigCurrentWhiteListStepEnum={})).Initiated="INITIATED",r.ConfigureSettings="CONFIGURE_SETTINGS",r.TimeZoneVerification="TIME_ZONE_VERIFICATION",r.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",r.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",r.AddAitsToBuilding="ADD_AITS_TO_BUILDING",r.RerunAvailabilities="RERUN_AVAILABILITIES",r.InsertGuestCard="INSERT_GUEST_CARD",r.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",r.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",r.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",r.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",r.AppointmentScheduled="APPOINTMENT_SCHEDULED",r.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",r.RequestCancelTour="REQUEST_CANCEL_TOUR",r.AppointmentCanceled="APPOINTMENT_CANCELED",r.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD",(n=t.WhiteListConfigStatusEnum||(t.WhiteListConfigStatusEnum={})).InProgress="IN_PROGRESS",n.Complete="COMPLETE",n.Error="ERROR",n.Cancelled="CANCELLED",t.WhiteListConfigFromJSON=function(e){return a(e)},t.WhiteListConfigFromJSONTyped=a,t.WhiteListConfigToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,testingName:e.testingName,buildingId:e.buildingId,whiteListingEmail:e.whiteListingEmail,timeInitiated:void 0===e.timeInitiated?void 0:e.timeInitiated.toISOString(),lastUpdated:void 0===e.lastUpdated?void 0:e.lastUpdated.toISOString(),currentWhiteListStep:e.currentWhiteListStep,contextId:e.contextId,mcId:e.mcId,status:e.status,requestedTime:e.requestedTime,confirmedTime:e.confirmedTime,eventId:e.eventId,failureReason:e.failureReason}}},3163:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListTestDtoToJSON=t.WhiteListTestDtoFromJSONTyped=t.WhiteListTestDtoFromJSON=t.WhiteListTestDtoLastFinishedStepEnum=t.WhiteListTestDtoStatusEnum=void 0;var n,r,o=i(296),a=i(8937);function s(e,t){return null==e?e:{configId:e.configId,buildingId:e.buildingId,buildingName:e.buildingName,timeInitiatedISO:new Date(e.timeInitiatedISO),lastUpdatedISO:new Date(e.lastUpdatedISO),status:e.status,lastFinishedStep:e.lastFinishedStep,whiteListTestStepDtos:e.whiteListTestStepDtos.map(a.WhiteListTestStepDtoFromJSON),emailUsedForTesting:o.exists(e,"emailUsedForTesting")?e.emailUsedForTesting:void 0,contextId:o.exists(e,"contextId")?e.contextId:void 0,mcId:o.exists(e,"mcId")?e.mcId:void 0}}(r=t.WhiteListTestDtoStatusEnum||(t.WhiteListTestDtoStatusEnum={})).InProgress="IN_PROGRESS",r.Complete="COMPLETE",r.Error="ERROR",r.Cancelled="CANCELLED",(n=t.WhiteListTestDtoLastFinishedStepEnum||(t.WhiteListTestDtoLastFinishedStepEnum={})).Initiated="INITIATED",n.ConfigureSettings="CONFIGURE_SETTINGS",n.TimeZoneVerification="TIME_ZONE_VERIFICATION",n.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",n.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",n.AddAitsToBuilding="ADD_AITS_TO_BUILDING",n.RerunAvailabilities="RERUN_AVAILABILITIES",n.InsertGuestCard="INSERT_GUEST_CARD",n.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",n.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",n.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",n.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",n.AppointmentScheduled="APPOINTMENT_SCHEDULED",n.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",n.RequestCancelTour="REQUEST_CANCEL_TOUR",n.AppointmentCanceled="APPOINTMENT_CANCELED",n.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD",t.WhiteListTestDtoFromJSON=function(e){return s(e)},t.WhiteListTestDtoFromJSONTyped=s,t.WhiteListTestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{configId:e.configId,buildingId:e.buildingId,buildingName:e.buildingName,timeInitiatedISO:e.timeInitiatedISO.toISOString(),lastUpdatedISO:e.lastUpdatedISO.toISOString(),status:e.status,lastFinishedStep:e.lastFinishedStep,whiteListTestStepDtos:e.whiteListTestStepDtos.map(a.WhiteListTestStepDtoToJSON),emailUsedForTesting:e.emailUsedForTesting,contextId:e.contextId,mcId:e.mcId}}},8937:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListTestStepDtoToJSON=t.WhiteListTestStepDtoFromJSONTyped=t.WhiteListTestStepDtoFromJSON=t.WhiteListTestStepDtoStepEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{displayText:e.displayText,step:e.step,orderInTest:e.orderInTest,failureReason:r.exists(e,"failureReason")?e.failureReason:void 0,warnings:r.exists(e,"warnings")?e.warnings:void 0,nextStep:r.exists(e,"nextStep")?e.nextStep:void 0,complete:r.exists(e,"complete")?e.complete:void 0}}(n=t.WhiteListTestStepDtoStepEnum||(t.WhiteListTestStepDtoStepEnum={})).Initiated="INITIATED",n.ConfigureSettings="CONFIGURE_SETTINGS",n.TimeZoneVerification="TIME_ZONE_VERIFICATION",n.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",n.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",n.AddAitsToBuilding="ADD_AITS_TO_BUILDING",n.RerunAvailabilities="RERUN_AVAILABILITIES",n.InsertGuestCard="INSERT_GUEST_CARD",n.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",n.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",n.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",n.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",n.AppointmentScheduled="APPOINTMENT_SCHEDULED",n.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",n.RequestCancelTour="REQUEST_CANCEL_TOUR",n.AppointmentCanceled="APPOINTMENT_CANCELED",n.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD",t.WhiteListTestStepDtoFromJSON=function(e){return o(e)},t.WhiteListTestStepDtoFromJSONTyped=o,t.WhiteListTestStepDtoToJSON=function(e){if(void 0!==e)return null===e?null:{displayText:e.displayText,step:e.step,orderInTest:e.orderInTest,failureReason:e.failureReason,warnings:e.warnings,nextStep:e.nextStep,complete:e.complete}}},2683:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListingAdditionalInfoToJSON=t.WhiteListingAdditionalInfoFromJSONTyped=t.WhiteListingAdditionalInfoFromJSON=void 0;var n=i(296),r=i(8442),o=i(7571);function a(e,t){return null==e?e:{leasingAgents:e.leasingAgents.map(r.ExternalBuildingAgentFromJSON),sources:e.sources,rawGuestCard:n.exists(e,"rawGuestCard")?e.rawGuestCard:void 0,messages:e.messages.map(o.XagacityEmailFromJSON)}}t.WhiteListingAdditionalInfoFromJSON=function(e){return a(e)},t.WhiteListingAdditionalInfoFromJSONTyped=a,t.WhiteListingAdditionalInfoToJSON=function(e){if(void 0!==e)return null===e?null:{leasingAgents:e.leasingAgents.map(r.ExternalBuildingAgentToJSON),sources:e.sources,rawGuestCard:e.rawGuestCard,messages:e.messages.map(o.XagacityEmailToJSON)}}},4145:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListingExecutionResultToJSON=t.WhiteListingExecutionResultFromJSONTyped=t.WhiteListingExecutionResultFromJSON=t.WhiteListingExecutionResultStatusAfterStepEnum=t.WhiteListingExecutionResultLastStepCompletedEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{didFail:e.didFail,failureReason:o.exists(e,"failureReason")?e.failureReason:void 0,lastStepCompleted:e.lastStepCompleted,statusAfterStep:e.statusAfterStep,configId:e.configId}}(r=t.WhiteListingExecutionResultLastStepCompletedEnum||(t.WhiteListingExecutionResultLastStepCompletedEnum={})).Initiated="INITIATED",r.ConfigureSettings="CONFIGURE_SETTINGS",r.TimeZoneVerification="TIME_ZONE_VERIFICATION",r.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",r.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",r.AddAitsToBuilding="ADD_AITS_TO_BUILDING",r.RerunAvailabilities="RERUN_AVAILABILITIES",r.InsertGuestCard="INSERT_GUEST_CARD",r.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",r.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",r.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",r.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",r.AppointmentScheduled="APPOINTMENT_SCHEDULED",r.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",r.RequestCancelTour="REQUEST_CANCEL_TOUR",r.AppointmentCanceled="APPOINTMENT_CANCELED",r.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD",(n=t.WhiteListingExecutionResultStatusAfterStepEnum||(t.WhiteListingExecutionResultStatusAfterStepEnum={})).InProgress="IN_PROGRESS",n.Complete="COMPLETE",n.Error="ERROR",n.Cancelled="CANCELLED",t.WhiteListingExecutionResultFromJSON=function(e){return a(e)},t.WhiteListingExecutionResultFromJSONTyped=a,t.WhiteListingExecutionResultToJSON=function(e){if(void 0!==e)return null===e?null:{didFail:e.didFail,failureReason:e.failureReason,lastStepCompleted:e.lastStepCompleted,statusAfterStep:e.statusAfterStep,configId:e.configId}}},7571:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailToJSON=t.XagacityEmailFromJSONTyped=t.XagacityEmailFromJSON=void 0;var n=i(296),r=i(1234),o=i(1057),a=i(4891);function s(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,clientEmail:n.exists(e,"clientEmail")?e.clientEmail:void 0,leadEmail:n.exists(e,"leadEmail")?e.leadEmail:void 0,sender:n.exists(e,"sender")?e.sender:void 0,recipient:n.exists(e,"recipient")?e.recipient:void 0,marketplace:n.exists(e,"marketplace")?e.marketplace:void 0,timeSent:n.exists(e,"timeSent")?new Date(e.timeSent):void 0,leadId:n.exists(e,"leadId")?e.leadId:void 0,subject:n.exists(e,"subject")?e.subject:void 0,messageBody:n.exists(e,"messageBody")?e.messageBody:void 0,messageId:n.exists(e,"messageId")?e.messageId:void 0,replyTo:n.exists(e,"replyTo")?e.replyTo:void 0,senderClean:n.exists(e,"senderClean")?e.senderClean:void 0,recipientClean:n.exists(e,"recipientClean")?e.recipientClean:void 0,replyToClean:n.exists(e,"replyToClean")?e.replyToClean:void 0,ccRecipient:n.exists(e,"ccRecipient")?e.ccRecipient:void 0,bccRecipient:n.exists(e,"bccRecipient")?e.bccRecipient:void 0,toRecipients:n.exists(e,"toRecipients")?e.toRecipients:void 0,labels:n.exists(e,"labels")?e.labels:void 0,unread:n.exists(e,"unread")?e.unread:void 0,gmailMessageId:n.exists(e,"gmailMessageId")?e.gmailMessageId:void 0,gmailThreadId:n.exists(e,"gmailThreadId")?e.gmailThreadId:void 0,isItProcessed:n.exists(e,"isItProcessed")?e.isItProcessed:void 0,isFalsePositive:n.exists(e,"isFalsePositive")?e.isFalsePositive:void 0,htmlEmail:n.exists(e,"htmlEmail")?e.htmlEmail:void 0,strippedMessage:n.exists(e,"strippedMessage")?e.strippedMessage:void 0,isForward:n.exists(e,"isForward")?e.isForward:void 0,isFirstContact:n.exists(e,"isFirstContact")?e.isFirstContact:void 0,followUpCount:n.exists(e,"followUpCount")?e.followUpCount:void 0,emailPulled:n.exists(e,"emailPulled")?e.emailPulled:void 0,automatedResponseStatus:n.exists(e,"automatedResponseStatus")?e.automatedResponseStatus:void 0,attachments:n.exists(e,"attachments")?e.attachments.map(r.AttachmentFromJSON):void 0,manuallyTagged:n.exists(e,"manuallyTagged")?e.manuallyTagged:void 0,requestsSpecificViewingTime:n.exists(e,"requestsSpecificViewingTime")?e.requestsSpecificViewingTime:void 0,mentionsSpecificAddress:n.exists(e,"mentionsSpecificAddress")?e.mentionsSpecificAddress:void 0,isAddressEntityTagged:n.exists(e,"isAddressEntityTagged")?e.isAddressEntityTagged:void 0,addressPulledFromComments:n.exists(e,"addressPulledFromComments")?e.addressPulledFromComments:void 0,mentionsHousingVoucher:n.exists(e,"mentionsHousingVoucher")?e.mentionsHousingVoucher:void 0,isBrokerLead:n.exists(e,"isBrokerLead")?e.isBrokerLead:void 0,snippet:n.exists(e,"snippet")?e.snippet:void 0,newThread:n.exists(e,"newThread")?e.newThread:void 0,emailHeader:n.exists(e,"emailHeader")?e.emailHeader:void 0,inReplyToHeader:n.exists(e,"inReplyToHeader")?e.inReplyToHeader:void 0,intents:n.exists(e,"intents")?e.intents.map(o.EliseMessageIntentFromJSON):void 0,attachFloorPlan:n.exists(e,"attachFloorPlan")?e.attachFloorPlan:void 0,attachFiles:n.exists(e,"attachFiles")?e.attachFiles:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,responseTemplate:n.exists(e,"responseTemplate")?e.responseTemplate:void 0,shouldCollapseThread:n.exists(e,"shouldCollapseThread")?e.shouldCollapseThread:void 0,references:n.exists(e,"references")?e.references:void 0,actualSenderType:n.exists(e,"actualSenderType")?e.actualSenderType:void 0,tempField:n.exists(e,"tempField")?e.tempField:void 0,requiresComposingAReply:n.exists(e,"requiresComposingAReply")?e.requiresComposingAReply:void 0,messageIdWeRespondedTo:n.exists(e,"messageIdWeRespondedTo")?e.messageIdWeRespondedTo:void 0,externalIdRelatedToEmail:n.exists(e,"externalIdRelatedToEmail")?e.externalIdRelatedToEmail:void 0,aitWhoReviewed:n.exists(e,"aitWhoReviewed")?e.aitWhoReviewed:void 0,aitWhoDrafted:n.exists(e,"aitWhoDrafted")?e.aitWhoDrafted:void 0,draftSubmissionIsIncorrect:n.exists(e,"draftSubmissionIsIncorrect")?e.draftSubmissionIsIncorrect:void 0,draftedResponseId:n.exists(e,"draftedResponseId")?e.draftedResponseId:void 0,draftedResponseIncorrectReason:n.exists(e,"draftedResponseIncorrectReason")?e.draftedResponseIncorrectReason:void 0,aitSelectedIntents:n.exists(e,"aitSelectedIntents")?e.aitSelectedIntents:void 0,noNeedForNotificationFlag:n.exists(e,"noNeedForNotificationFlag")?e.noNeedForNotificationFlag:void 0,traineeEmail:n.exists(e,"traineeEmail")?e.traineeEmail:void 0,mimeMessage:n.exists(e,"mimeMessage")?a.XagacityEmailMimeMessageFromJSON(e.mimeMessage):void 0,stopForwarding:n.exists(e,"stopForwarding")?e.stopForwarding:void 0,cleanMessage:n.exists(e,"cleanMessage")?e.cleanMessage:void 0,trackExternalId:n.exists(e,"trackExternalId")?e.trackExternalId:void 0,externalMarketingSource:n.exists(e,"externalMarketingSource")?e.externalMarketingSource:void 0,contextId:n.exists(e,"contextId")?e.contextId:void 0,bccrecipientAsString:n.exists(e,"bccrecipientAsString")?e.bccrecipientAsString:void 0,toRecipientsFromString:n.exists(e,"toRecipientsFromString")?e.toRecipientsFromString:void 0,ccRecipientsFromString:n.exists(e,"ccRecipientsFromString")?e.ccRecipientsFromString:void 0,bccRecipientsFromString:n.exists(e,"bccRecipientsFromString")?e.bccRecipientsFromString:void 0,labelsFromDatabase:n.exists(e,"labelsFromDatabase")?e.labelsFromDatabase:void 0,recipientsList:n.exists(e,"recipientsList")?e.recipientsList:void 0,trashed:n.exists(e,"trashed")?e.trashed:void 0,draft:n.exists(e,"draft")?e.draft:void 0,torecipientAsString:n.exists(e,"torecipientAsString")?e.torecipientAsString:void 0,ccrecipientAsString:n.exists(e,"ccrecipientAsString")?e.ccrecipientAsString:void 0}}t.XagacityEmailFromJSON=function(e){return s(e)},t.XagacityEmailFromJSONTyped=s,t.XagacityEmailToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,clientEmail:e.clientEmail,leadEmail:e.leadEmail,sender:e.sender,recipient:e.recipient,marketplace:e.marketplace,timeSent:void 0===e.timeSent?void 0:e.timeSent.toISOString(),leadId:e.leadId,subject:e.subject,messageBody:e.messageBody,messageId:e.messageId,replyTo:e.replyTo,senderClean:e.senderClean,recipientClean:e.recipientClean,replyToClean:e.replyToClean,ccRecipient:e.ccRecipient,bccRecipient:e.bccRecipient,toRecipients:e.toRecipients,labels:e.labels,unread:e.unread,gmailMessageId:e.gmailMessageId,gmailThreadId:e.gmailThreadId,isItProcessed:e.isItProcessed,isFalsePositive:e.isFalsePositive,htmlEmail:e.htmlEmail,strippedMessage:e.strippedMessage,isForward:e.isForward,isFirstContact:e.isFirstContact,followUpCount:e.followUpCount,emailPulled:e.emailPulled,automatedResponseStatus:e.automatedResponseStatus,attachments:void 0===e.attachments?void 0:e.attachments.map(r.AttachmentToJSON),manuallyTagged:e.manuallyTagged,requestsSpecificViewingTime:e.requestsSpecificViewingTime,mentionsSpecificAddress:e.mentionsSpecificAddress,isAddressEntityTagged:e.isAddressEntityTagged,addressPulledFromComments:e.addressPulledFromComments,mentionsHousingVoucher:e.mentionsHousingVoucher,isBrokerLead:e.isBrokerLead,snippet:e.snippet,newThread:e.newThread,emailHeader:e.emailHeader,inReplyToHeader:e.inReplyToHeader,intents:void 0===e.intents?void 0:e.intents.map(o.EliseMessageIntentToJSON),attachFloorPlan:e.attachFloorPlan,attachFiles:e.attachFiles,unitId:e.unitId,responseTemplate:e.responseTemplate,shouldCollapseThread:e.shouldCollapseThread,references:e.references,actualSenderType:e.actualSenderType,tempField:e.tempField,requiresComposingAReply:e.requiresComposingAReply,messageIdWeRespondedTo:e.messageIdWeRespondedTo,externalIdRelatedToEmail:e.externalIdRelatedToEmail,aitWhoReviewed:e.aitWhoReviewed,aitWhoDrafted:e.aitWhoDrafted,draftSubmissionIsIncorrect:e.draftSubmissionIsIncorrect,draftedResponseId:e.draftedResponseId,draftedResponseIncorrectReason:e.draftedResponseIncorrectReason,aitSelectedIntents:e.aitSelectedIntents,noNeedForNotificationFlag:e.noNeedForNotificationFlag,traineeEmail:e.traineeEmail,mimeMessage:a.XagacityEmailMimeMessageToJSON(e.mimeMessage),stopForwarding:e.stopForwarding,cleanMessage:e.cleanMessage,trackExternalId:e.trackExternalId,externalMarketingSource:e.externalMarketingSource,contextId:e.contextId,bccrecipientAsString:e.bccrecipientAsString,toRecipientsFromString:e.toRecipientsFromString,ccRecipientsFromString:e.ccRecipientsFromString,bccRecipientsFromString:e.bccRecipientsFromString,labelsFromDatabase:e.labelsFromDatabase,recipientsList:e.recipientsList,trashed:e.trashed,draft:e.draft,torecipientAsString:e.torecipientAsString,ccrecipientAsString:e.ccrecipientAsString}}},4891:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageToJSON=t.XagacityEmailMimeMessageFromJSONTyped=t.XagacityEmailMimeMessageFromJSON=void 0;var n=i(296),r=i(2294),o=i(8644),a=i(2653),s=i(7052),l=i(3645);function u(e,t){return null==e?e:{expunged:n.exists(e,"expunged")?e.expunged:void 0,folder:n.exists(e,"folder")?r.XagacityEmailMimeMessageFolderFromJSON(e.folder):void 0,session:n.exists(e,"session")?l.XagacityEmailMimeMessageFolderStoreSessionFromJSON(e.session):void 0,content:n.exists(e,"content")?e.content:void 0,flags:n.exists(e,"flags")?s.XagacityEmailMimeMessageFolderStoreFlagsFromJSON(e.flags):void 0,contentType:n.exists(e,"contentType")?e.contentType:void 0,fileName:n.exists(e,"fileName")?e.fileName:void 0,description:n.exists(e,"description")?e.description:void 0,subject:n.exists(e,"subject")?e.subject:void 0,size:n.exists(e,"size")?e.size:void 0,inputStream:n.exists(e,"inputStream")?e.inputStream:void 0,encoding:n.exists(e,"encoding")?e.encoding:void 0,sentDate:n.exists(e,"sentDate")?new Date(e.sentDate):void 0,messageID:n.exists(e,"messageID")?e.messageID:void 0,allRecipients:n.exists(e,"allRecipients")?e.allRecipients.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,from:n.exists(e,"from")?e.from.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,sender:n.exists(e,"sender")?o.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON(e.sender):void 0,replyTo:n.exists(e,"replyTo")?e.replyTo.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,receivedDate:n.exists(e,"receivedDate")?new Date(e.receivedDate):void 0,lineCount:n.exists(e,"lineCount")?e.lineCount:void 0,disposition:n.exists(e,"disposition")?e.disposition:void 0,contentID:n.exists(e,"contentID")?e.contentID:void 0,contentMD5:n.exists(e,"contentMD5")?e.contentMD5:void 0,contentLanguage:n.exists(e,"contentLanguage")?e.contentLanguage:void 0,rawInputStream:n.exists(e,"rawInputStream")?e.rawInputStream:void 0,dataHandler:n.exists(e,"dataHandler")?a.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSON(e.dataHandler):void 0,allHeaders:n.exists(e,"allHeaders")?e.allHeaders:void 0,allHeaderLines:n.exists(e,"allHeaderLines")?e.allHeaderLines:void 0,text:n.exists(e,"text")?e.text:void 0,messageNumber:n.exists(e,"messageNumber")?e.messageNumber:void 0}}t.XagacityEmailMimeMessageFromJSON=function(e){return u(e)},t.XagacityEmailMimeMessageFromJSONTyped=u,t.XagacityEmailMimeMessageToJSON=function(e){if(void 0!==e)return null===e?null:{expunged:e.expunged,folder:r.XagacityEmailMimeMessageFolderToJSON(e.folder),session:l.XagacityEmailMimeMessageFolderStoreSessionToJSON(e.session),content:e.content,flags:s.XagacityEmailMimeMessageFolderStoreFlagsToJSON(e.flags),contentType:e.contentType,fileName:e.fileName,description:e.description,subject:e.subject,size:e.size,inputStream:e.inputStream,encoding:e.encoding,sentDate:void 0===e.sentDate?void 0:e.sentDate.toISOString(),messageID:e.messageID,allRecipients:void 0===e.allRecipients?void 0:e.allRecipients.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),from:void 0===e.from?void 0:e.from.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),sender:o.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON(e.sender),replyTo:void 0===e.replyTo?void 0:e.replyTo.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),receivedDate:void 0===e.receivedDate?void 0:e.receivedDate.toISOString(),lineCount:e.lineCount,disposition:e.disposition,contentID:e.contentID,contentMD5:e.contentMD5,contentLanguage:e.contentLanguage,rawInputStream:e.rawInputStream,dataHandler:a.XagacityEmailMimeMessageFolderStoreDataHandlerToJSON(e.dataHandler),allHeaders:e.allHeaders,allHeaderLines:e.allHeaderLines,text:e.text,messageNumber:e.messageNumber}}},2294:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderToJSON=t.XagacityEmailMimeMessageFolderFromJSONTyped=t.XagacityEmailMimeMessageFolderFromJSON=void 0;var n=i(296),r=i(2394),o=i(7052),a=i(6826),s=i(3053);function l(e,t){return null==e?e:{store:n.exists(e,"store")?r.XagacityEmailMimeMessageFolderStoreFromJSON(e.store):void 0,mode:n.exists(e,"mode")?e.mode:void 0,messages:n.exists(e,"messages")?e.messages.map(a.XagacityEmailMimeMessageFolderStoreMessagesFromJSON):void 0,urlname:n.exists(e,"urlname")?s.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON(e.urlname):void 0,subscribed:n.exists(e,"subscribed")?e.subscribed:void 0,permanentFlags:n.exists(e,"permanentFlags")?o.XagacityEmailMimeMessageFolderStoreFlagsFromJSON(e.permanentFlags):void 0,messageCount:n.exists(e,"messageCount")?e.messageCount:void 0,newMessageCount:n.exists(e,"newMessageCount")?e.newMessageCount:void 0,unreadMessageCount:n.exists(e,"unreadMessageCount")?e.unreadMessageCount:void 0,deletedMessageCount:n.exists(e,"deletedMessageCount")?e.deletedMessageCount:void 0,fullName:n.exists(e,"fullName")?e.fullName:void 0,name:n.exists(e,"name")?e.name:void 0,open:n.exists(e,"open")?e.open:void 0,type:n.exists(e,"type")?e.type:void 0,separator:n.exists(e,"separator")?e.separator:void 0}}t.XagacityEmailMimeMessageFolderFromJSON=function(e){return l(e)},t.XagacityEmailMimeMessageFolderFromJSONTyped=l,t.XagacityEmailMimeMessageFolderToJSON=function(e){if(void 0!==e)return null===e?null:{store:r.XagacityEmailMimeMessageFolderStoreToJSON(e.store),mode:e.mode,messages:void 0===e.messages?void 0:e.messages.map(a.XagacityEmailMimeMessageFolderStoreMessagesToJSON),urlname:s.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON(e.urlname),subscribed:e.subscribed,permanentFlags:o.XagacityEmailMimeMessageFolderStoreFlagsToJSON(e.permanentFlags),messageCount:e.messageCount,newMessageCount:e.newMessageCount,unreadMessageCount:e.unreadMessageCount,deletedMessageCount:e.deletedMessageCount,fullName:e.fullName,name:e.name,open:e.open,type:e.type,separator:e.separator}}},2394:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreToJSON=t.XagacityEmailMimeMessageFolderStoreFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreFromJSON=void 0;var n=i(296),r=i(403),o=i(3053);function a(e,t){return null==e?e:{connected:n.exists(e,"connected")?e.connected:void 0,personalNamespaces:n.exists(e,"personalNamespaces")?e.personalNamespaces.map(r.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSON):void 0,sharedNamespaces:n.exists(e,"sharedNamespaces")?e.sharedNamespaces.map(r.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSON):void 0,urlname:n.exists(e,"urlname")?o.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON(e.urlname):void 0}}t.XagacityEmailMimeMessageFolderStoreFromJSON=function(e){return a(e)},t.XagacityEmailMimeMessageFolderStoreFromJSONTyped=a,t.XagacityEmailMimeMessageFolderStoreToJSON=function(e){if(void 0!==e)return null===e?null:{connected:e.connected,personalNamespaces:void 0===e.personalNamespaces?void 0:e.personalNamespaces.map(r.XagacityEmailMimeMessageFolderStorePersonalNamespacesToJSON),sharedNamespaces:void 0===e.sharedNamespaces?void 0:e.sharedNamespaces.map(r.XagacityEmailMimeMessageFolderStorePersonalNamespacesToJSON),urlname:o.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON(e.urlname)}}},8644:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON=t.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{type:n.exists(e,"type")?e.type:void 0}}t.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type}}},2653:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSON=void 0;var n=i(296),r=i(9046),o=i(8819),a=i(6799),s=i(6228);function l(e,t){return null==e?e:{dataSource:n.exists(e,"dataSource")?o.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSON(e.dataSource):void 0,commandMap:n.exists(e,"commandMap")?r.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSON(e.commandMap):void 0,transferDataFlavors:n.exists(e,"transferDataFlavors")?e.transferDataFlavors.map(s.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSON):void 0,preferredCommands:n.exists(e,"preferredCommands")?e.preferredCommands.map(a.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSON):void 0,allCommands:n.exists(e,"allCommands")?e.allCommands.map(a.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSON):void 0,contentType:n.exists(e,"contentType")?e.contentType:void 0,name:n.exists(e,"name")?e.name:void 0,content:n.exists(e,"content")?e.content:void 0,inputStream:n.exists(e,"inputStream")?e.inputStream:void 0,outputStream:n.exists(e,"outputStream")?e.outputStream:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSON=function(e){return l(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSONTyped=l,t.XagacityEmailMimeMessageFolderStoreDataHandlerToJSON=function(e){if(void 0!==e)return null===e?null:{dataSource:o.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceToJSON(e.dataSource),commandMap:r.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapToJSON(e.commandMap),transferDataFlavors:void 0===e.transferDataFlavors?void 0:e.transferDataFlavors.map(s.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsToJSON),preferredCommands:void 0===e.preferredCommands?void 0:e.preferredCommands.map(a.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsToJSON),allCommands:void 0===e.allCommands?void 0:e.allCommands.map(a.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsToJSON),contentType:e.contentType,name:e.name,content:e.content,inputStream:e.inputStream,outputStream:e.outputStream}}},9046:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{mimeTypes:n.exists(e,"mimeTypes")?e.mimeTypes:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapToJSON=function(e){if(void 0!==e)return null===e?null:{mimeTypes:e.mimeTypes}}},8819:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contentType:n.exists(e,"contentType")?e.contentType:void 0,name:n.exists(e,"name")?e.name:void 0,inputStream:n.exists(e,"inputStream")?e.inputStream:void 0,outputStream:n.exists(e,"outputStream")?e.outputStream:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceToJSON=function(e){if(void 0!==e)return null===e?null:{contentType:e.contentType,name:e.name,inputStream:e.inputStream,outputStream:e.outputStream}}},6799:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{commandName:n.exists(e,"commandName")?e.commandName:void 0,commandClass:n.exists(e,"commandClass")?e.commandClass:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsToJSON=function(e){if(void 0!==e)return null===e?null:{commandName:e.commandName,commandClass:e.commandClass}}},6228:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{mimeType:n.exists(e,"mimeType")?e.mimeType:void 0,humanPresentableName:n.exists(e,"humanPresentableName")?e.humanPresentableName:void 0,mimeTypeSerializedObject:n.exists(e,"mimeTypeSerializedObject")?e.mimeTypeSerializedObject:void 0,defaultRepresentationClassAsString:n.exists(e,"defaultRepresentationClassAsString")?e.defaultRepresentationClassAsString:void 0,representationClassInputStream:n.exists(e,"representationClassInputStream")?e.representationClassInputStream:void 0,representationClassReader:n.exists(e,"representationClassReader")?e.representationClassReader:void 0,representationClassCharBuffer:n.exists(e,"representationClassCharBuffer")?e.representationClassCharBuffer:void 0,representationClassByteBuffer:n.exists(e,"representationClassByteBuffer")?e.representationClassByteBuffer:void 0,representationClassSerializable:n.exists(e,"representationClassSerializable")?e.representationClassSerializable:void 0,representationClassRemote:n.exists(e,"representationClassRemote")?e.representationClassRemote:void 0,flavorSerializedObjectType:n.exists(e,"flavorSerializedObjectType")?e.flavorSerializedObjectType:void 0,flavorRemoteObjectType:n.exists(e,"flavorRemoteObjectType")?e.flavorRemoteObjectType:void 0,flavorJavaFileListType:n.exists(e,"flavorJavaFileListType")?e.flavorJavaFileListType:void 0,flavorTextType:n.exists(e,"flavorTextType")?e.flavorTextType:void 0,subType:n.exists(e,"subType")?e.subType:void 0,primaryType:n.exists(e,"primaryType")?e.primaryType:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsToJSON=function(e){if(void 0!==e)return null===e?null:{mimeType:e.mimeType,humanPresentableName:e.humanPresentableName,mimeTypeSerializedObject:e.mimeTypeSerializedObject,defaultRepresentationClassAsString:e.defaultRepresentationClassAsString,representationClassInputStream:e.representationClassInputStream,representationClassReader:e.representationClassReader,representationClassCharBuffer:e.representationClassCharBuffer,representationClassByteBuffer:e.representationClassByteBuffer,representationClassSerializable:e.representationClassSerializable,representationClassRemote:e.representationClassRemote,flavorSerializedObjectType:e.flavorSerializedObjectType,flavorRemoteObjectType:e.flavorRemoteObjectType,flavorJavaFileListType:e.flavorJavaFileListType,flavorTextType:e.flavorTextType,subType:e.subType,primaryType:e.primaryType}}},7052:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreFlagsToJSON=t.XagacityEmailMimeMessageFolderStoreFlagsFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreFlagsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{systemFlags:n.exists(e,"systemFlags")?e.systemFlags:void 0,userFlags:n.exists(e,"userFlags")?e.userFlags:void 0}}t.XagacityEmailMimeMessageFolderStoreFlagsFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreFlagsFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreFlagsToJSON=function(e){if(void 0!==e)return null===e?null:{systemFlags:e.systemFlags,userFlags:e.userFlags}}},6826:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreMessagesToJSON=t.XagacityEmailMimeMessageFolderStoreMessagesFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreMessagesFromJSON=void 0;var n=i(296),r=i(8644),o=i(2653),a=i(7052),s=i(3645);function l(e,t){return null==e?e:{expunged:n.exists(e,"expunged")?e.expunged:void 0,session:n.exists(e,"session")?s.XagacityEmailMimeMessageFolderStoreSessionFromJSON(e.session):void 0,flags:n.exists(e,"flags")?a.XagacityEmailMimeMessageFolderStoreFlagsFromJSON(e.flags):void 0,subject:n.exists(e,"subject")?e.subject:void 0,sentDate:n.exists(e,"sentDate")?new Date(e.sentDate):void 0,allRecipients:n.exists(e,"allRecipients")?e.allRecipients.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,from:n.exists(e,"from")?e.from.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,replyTo:n.exists(e,"replyTo")?e.replyTo.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,receivedDate:n.exists(e,"receivedDate")?new Date(e.receivedDate):void 0,messageNumber:n.exists(e,"messageNumber")?e.messageNumber:void 0,contentType:n.exists(e,"contentType")?e.contentType:void 0,fileName:n.exists(e,"fileName")?e.fileName:void 0,description:n.exists(e,"description")?e.description:void 0,size:n.exists(e,"size")?e.size:void 0,content:n.exists(e,"content")?e.content:void 0,inputStream:n.exists(e,"inputStream")?e.inputStream:void 0,lineCount:n.exists(e,"lineCount")?e.lineCount:void 0,disposition:n.exists(e,"disposition")?e.disposition:void 0,dataHandler:n.exists(e,"dataHandler")?o.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSON(e.dataHandler):void 0,allHeaders:n.exists(e,"allHeaders")?e.allHeaders:void 0,text:n.exists(e,"text")?e.text:void 0}}t.XagacityEmailMimeMessageFolderStoreMessagesFromJSON=function(e){return l(e)},t.XagacityEmailMimeMessageFolderStoreMessagesFromJSONTyped=l,t.XagacityEmailMimeMessageFolderStoreMessagesToJSON=function(e){if(void 0!==e)return null===e?null:{expunged:e.expunged,session:s.XagacityEmailMimeMessageFolderStoreSessionToJSON(e.session),flags:a.XagacityEmailMimeMessageFolderStoreFlagsToJSON(e.flags),subject:e.subject,sentDate:void 0===e.sentDate?void 0:e.sentDate.toISOString(),allRecipients:void 0===e.allRecipients?void 0:e.allRecipients.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),from:void 0===e.from?void 0:e.from.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),replyTo:void 0===e.replyTo?void 0:e.replyTo.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),receivedDate:void 0===e.receivedDate?void 0:e.receivedDate.toISOString(),messageNumber:e.messageNumber,contentType:e.contentType,fileName:e.fileName,description:e.description,size:e.size,content:e.content,inputStream:e.inputStream,lineCount:e.lineCount,disposition:e.disposition,dataHandler:o.XagacityEmailMimeMessageFolderStoreDataHandlerToJSON(e.dataHandler),allHeaders:e.allHeaders,text:e.text}}},403:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStorePersonalNamespacesToJSON=t.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSONTyped=t.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSON=void 0;var n=i(296),r=i(7052),o=i(6826),a=i(3053);function s(e,t){return null==e?e:{mode:n.exists(e,"mode")?e.mode:void 0,messages:n.exists(e,"messages")?e.messages.map(o.XagacityEmailMimeMessageFolderStoreMessagesFromJSON):void 0,urlname:n.exists(e,"urlname")?a.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON(e.urlname):void 0,subscribed:n.exists(e,"subscribed")?e.subscribed:void 0,permanentFlags:n.exists(e,"permanentFlags")?r.XagacityEmailMimeMessageFolderStoreFlagsFromJSON(e.permanentFlags):void 0,messageCount:n.exists(e,"messageCount")?e.messageCount:void 0,newMessageCount:n.exists(e,"newMessageCount")?e.newMessageCount:void 0,unreadMessageCount:n.exists(e,"unreadMessageCount")?e.unreadMessageCount:void 0,deletedMessageCount:n.exists(e,"deletedMessageCount")?e.deletedMessageCount:void 0,fullName:n.exists(e,"fullName")?e.fullName:void 0,name:n.exists(e,"name")?e.name:void 0,open:n.exists(e,"open")?e.open:void 0,type:n.exists(e,"type")?e.type:void 0,separator:n.exists(e,"separator")?e.separator:void 0}}t.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSON=function(e){return s(e)},t.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSONTyped=s,t.XagacityEmailMimeMessageFolderStorePersonalNamespacesToJSON=function(e){if(void 0!==e)return null===e?null:{mode:e.mode,messages:void 0===e.messages?void 0:e.messages.map(o.XagacityEmailMimeMessageFolderStoreMessagesToJSON),urlname:a.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON(e.urlname),subscribed:e.subscribed,permanentFlags:r.XagacityEmailMimeMessageFolderStoreFlagsToJSON(e.permanentFlags),messageCount:e.messageCount,newMessageCount:e.newMessageCount,unreadMessageCount:e.unreadMessageCount,deletedMessageCount:e.deletedMessageCount,fullName:e.fullName,name:e.name,open:e.open,type:e.type,separator:e.separator}}},3645:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionToJSON=t.XagacityEmailMimeMessageFolderStoreSessionFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionFromJSON=void 0;var n=i(296),r=i(4586),o=i(560),a=i(5108);function s(e,t){return null==e?e:{debug:n.exists(e,"debug")?e.debug:void 0,providers:n.exists(e,"providers")?e.providers.map(o.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSON):void 0,debugOut:n.exists(e,"debugOut")?e.debugOut:void 0,properties:n.exists(e,"properties")?e.properties:void 0,transport:n.exists(e,"transport")?a.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSON(e.transport):void 0,provider:n.exists(e,"provider")?r.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSON(e.provider):void 0}}t.XagacityEmailMimeMessageFolderStoreSessionFromJSON=function(e){return s(e)},t.XagacityEmailMimeMessageFolderStoreSessionFromJSONTyped=s,t.XagacityEmailMimeMessageFolderStoreSessionToJSON=function(e){if(void 0!==e)return null===e?null:{debug:e.debug,providers:void 0===e.providers?void 0:e.providers.map(o.XagacityEmailMimeMessageFolderStoreSessionProvidersToJSON),debugOut:e.debugOut,properties:e.properties,transport:a.XagacityEmailMimeMessageFolderStoreSessionTransportToJSON(e.transport),provider:r.XagacityEmailMimeMessageFolderStoreSessionProviderToJSON(e.provider)}}},4586:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionProviderToJSON=t.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{type:n.exists(e,"type")?e.type:void 0,protocol:n.exists(e,"protocol")?e.protocol:void 0,className:n.exists(e,"className")?e.className:void 0,vendor:n.exists(e,"vendor")?e.vendor:void 0,version:n.exists(e,"version")?e.version:void 0}}t.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreSessionProviderToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type,protocol:e.protocol,className:e.className,vendor:e.vendor,version:e.version}}},560:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionProvidersToJSON=t.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{type:n.exists(e,"type")?e.type:void 0,protocol:n.exists(e,"protocol")?e.protocol:void 0,className:n.exists(e,"className")?e.className:void 0,vendor:n.exists(e,"vendor")?e.vendor:void 0,version:n.exists(e,"version")?e.version:void 0}}t.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreSessionProvidersToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type,protocol:e.protocol,className:e.className,vendor:e.vendor,version:e.version}}},5108:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionTransportToJSON=t.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSON=void 0;var n=i(296),r=i(3053);function o(e,t){return null==e?e:{connected:n.exists(e,"connected")?e.connected:void 0,urlname:n.exists(e,"urlname")?r.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON(e.urlname):void 0}}t.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSON=function(e){return o(e)},t.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSONTyped=o,t.XagacityEmailMimeMessageFolderStoreSessionTransportToJSON=function(e){if(void 0!==e)return null===e?null:{connected:e.connected,urlname:r.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON(e.urlname)}}},3053:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON=t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{protocol:n.exists(e,"protocol")?e.protocol:void 0,username:n.exists(e,"username")?e.username:void 0,password:n.exists(e,"password")?e.password:void 0,host:n.exists(e,"host")?e.host:void 0,port:n.exists(e,"port")?e.port:void 0,file:n.exists(e,"file")?e.file:void 0,ref:n.exists(e,"ref")?e.ref:void 0,url:n.exists(e,"url")?e.url:void 0}}t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON=function(e){if(void 0!==e)return null===e?null:{protocol:e.protocol,username:e.username,password:e.password,host:e.host,port:e.port,file:e.file,ref:e.ref,url:e.url}}},1283:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityUserToJSON=t.XagacityUserFromJSONTyped=t.XagacityUserFromJSON=t.XagacityUserIdVerificationProviderEnum=void 0;var n,r=i(296),o=i(1995),a=i(6597);function s(e,t){return null==e?e:{id:r.exists(e,"id")?e.id:void 0,organizationId:r.exists(e,"organizationId")?e.organizationId:void 0,clientEmail:r.exists(e,"clientEmail")?e.clientEmail:void 0,priority:r.exists(e,"priority")?e.priority:void 0,firstName:r.exists(e,"firstName")?e.firstName:void 0,active:r.exists(e,"active")?e.active:void 0,eliseUser:r.exists(e,"eliseUser")?e.eliseUser:void 0,payingOrTrial:r.exists(e,"payingOrTrial")?e.payingOrTrial:void 0,emailPushNotificationsActive:r.exists(e,"emailPushNotificationsActive")?e.emailPushNotificationsActive:void 0,emailPushNotificationsExpiration:r.exists(e,"emailPushNotificationsExpiration")?e.emailPushNotificationsExpiration:void 0,emailClientType:r.exists(e,"emailClientType")?e.emailClientType:void 0,textApi:r.exists(e,"textApi")?e.textApi:void 0,timezone:r.exists(e,"timezone")?e.timezone:void 0,outlookTimeOfLastSyncedMessage:r.exists(e,"outlookTimeOfLastSyncedMessage")?e.outlookTimeOfLastSyncedMessage:void 0,outlookIdOfLastSyncedMessage:r.exists(e,"outlookIdOfLastSyncedMessage")?e.outlookIdOfLastSyncedMessage:void 0,xagacityLabel:r.exists(e,"xagacityLabel")?e.xagacityLabel:void 0,unreadState:r.exists(e,"unreadState")?e.unreadState:void 0,agentSignature:r.exists(e,"agentSignature")?e.agentSignature:void 0,specificGuidlines:r.exists(e,"specificGuidlines")?e.specificGuidlines:void 0,templates:r.exists(e,"templates")?e.templates:void 0,agentPhoneNumber:r.exists(e,"agentPhoneNumber")?e.agentPhoneNumber:void 0,isItProcessed:r.exists(e,"isItProcessed")?e.isItProcessed:void 0,removeFromInbox:r.exists(e,"removeFromInbox")?e.removeFromInbox:void 0,draftReply:r.exists(e,"draftReply")?e.draftReply:void 0,forwardToTeamAgent:r.exists(e,"forwardToTeamAgent")?e.forwardToTeamAgent:void 0,gmailHistoryId:r.exists(e,"gmailHistoryId")?e.gmailHistoryId:void 0,collectDataOn:r.exists(e,"collectDataOn")?e.collectDataOn:void 0,actualAssistant:r.exists(e,"actualAssistant")?e.actualAssistant:void 0,lastName:r.exists(e,"lastName")?e.lastName:void 0,subjectPreference:r.exists(e,"subjectPreference")?e.subjectPreference:void 0,getgSheetId:r.exists(e,"getgSheetId")?e.getgSheetId:void 0,autoDrafting:r.exists(e,"autoDrafting")?e.autoDrafting:void 0,followUpsRequired:r.exists(e,"followUpsRequired")?e.followUpsRequired:void 0,followUpsTemplates:r.exists(e,"followUpsTemplates")?e.followUpsTemplates:void 0,lockedSheet:r.exists(e,"lockedSheet")?e.lockedSheet:void 0,smartResponding:r.exists(e,"smartResponding")?e.smartResponding:void 0,pendingFollowUps:r.exists(e,"pendingFollowUps")?e.pendingFollowUps:void 0,xagacityNumber:r.exists(e,"xagacityNumber")?e.xagacityNumber:void 0,password:r.exists(e,"password")?e.password:void 0,calendarHistoryId:r.exists(e,"calendarHistoryId")?e.calendarHistoryId:void 0,calendarName:r.exists(e,"calendarName")?e.calendarName:void 0,hasSalesforce:r.exists(e,"hasSalesforce")?e.hasSalesforce:void 0,dateActive:r.exists(e,"dateActive")?new Date(e.dateActive):void 0,leadTrackingEmailForwardingActive:r.exists(e,"leadTrackingEmailForwardingActive")?e.leadTrackingEmailForwardingActive:void 0,receivesForwardedEmails:r.exists(e,"receivesForwardedEmails")?e.receivesForwardedEmails:void 0,messageDelayInSeconds:r.exists(e,"messageDelayInSeconds")?e.messageDelayInSeconds:void 0,crmUsedType:r.exists(e,"crmUsedType")?e.crmUsedType:void 0,relatedEmailIds:r.exists(e,"relatedEmailIds")?e.relatedEmailIds:void 0,callsStartingHours:r.exists(e,"callsStartingHours")?e.callsStartingHours:void 0,callsClosingHours:r.exists(e,"callsClosingHours")?e.callsClosingHours:void 0,availabilitiesSoftwareType:r.exists(e,"availabilitiesSoftwareType")?e.availabilitiesSoftwareType:void 0,associatedDomains:r.exists(e,"associatedDomains")?e.associatedDomains:void 0,lastCrmSyncId:r.exists(e,"lastCrmSyncId")?e.lastCrmSyncId:void 0,crmSyncType:r.exists(e,"crmSyncType")?e.crmSyncType:void 0,importingNewLeadsFromCrmActive:r.exists(e,"importingNewLeadsFromCrmActive")?e.importingNewLeadsFromCrmActive:void 0,followUpDataSource:r.exists(e,"followUpDataSource")?e.followUpDataSource:void 0,prefersTextsConfirmations:r.exists(e,"prefersTextsConfirmations")?e.prefersTextsConfirmations:void 0,smsAppointmentReminderEnabled:r.exists(e,"smsAppointmentReminderEnabled")?e.smsAppointmentReminderEnabled:void 0,smsPreTourFollowUpEnabled:r.exists(e,"smsPreTourFollowUpEnabled")?e.smsPreTourFollowUpEnabled:void 0,smsPostTourFollowUpEnabled:r.exists(e,"smsPostTourFollowUpEnabled")?e.smsPostTourFollowUpEnabled:void 0,smsNoShowFollowUpEnabled:r.exists(e,"smsNoShowFollowUpEnabled")?e.smsNoShowFollowUpEnabled:void 0,eventsLastCrmSyncId:r.exists(e,"eventsLastCrmSyncId")?e.eventsLastCrmSyncId:void 0,whiteListActivated:r.exists(e,"whiteListActivated")?e.whiteListActivated:void 0,blackListActivated:r.exists(e,"blackListActivated")?e.blackListActivated:void 0,availabilitiesPreferences:r.exists(e,"availabilitiesPreferences")?o.AvailabilitiesPreferencesFromJSON(e.availabilitiesPreferences):void 0,qaAlertPriority:r.exists(e,"qaAlertPriority")?e.qaAlertPriority:void 0,useSmtpRelay:r.exists(e,"useSmtpRelay")?e.useSmtpRelay:void 0,needParseSignature:r.exists(e,"needParseSignature")?e.needParseSignature:void 0,signaturePattern:r.exists(e,"signaturePattern")?e.signaturePattern:void 0,spamHistoryId:r.exists(e,"spamHistoryId")?e.spamHistoryId:void 0,receivesUnsubscribeReport:r.exists(e,"receivesUnsubscribeReport")?e.receivesUnsubscribeReport:void 0,emailSyncState:r.exists(e,"emailSyncState")?e.emailSyncState:void 0,buildingRefreshInfo:r.exists(e,"buildingRefreshInfo")?a.BuildingRefreshInfoFromJSON(e.buildingRefreshInfo):void 0,idVerificationProvider:r.exists(e,"idVerificationProvider")?e.idVerificationProvider:void 0}}(n=t.XagacityUserIdVerificationProviderEnum||(t.XagacityUserIdVerificationProviderEnum={})).Unknown="UNKNOWN",n.CognitoHq="COGNITO_HQ",n.AvbScreeningApi="AVB_SCREENING_API",t.XagacityUserFromJSON=function(e){return s(e)},t.XagacityUserFromJSONTyped=s,t.XagacityUserToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,organizationId:e.organizationId,clientEmail:e.clientEmail,priority:e.priority,firstName:e.firstName,active:e.active,eliseUser:e.eliseUser,payingOrTrial:e.payingOrTrial,emailPushNotificationsActive:e.emailPushNotificationsActive,emailPushNotificationsExpiration:e.emailPushNotificationsExpiration,emailClientType:e.emailClientType,textApi:e.textApi,timezone:e.timezone,outlookTimeOfLastSyncedMessage:e.outlookTimeOfLastSyncedMessage,outlookIdOfLastSyncedMessage:e.outlookIdOfLastSyncedMessage,xagacityLabel:e.xagacityLabel,unreadState:e.unreadState,agentSignature:e.agentSignature,specificGuidlines:e.specificGuidlines,templates:e.templates,agentPhoneNumber:e.agentPhoneNumber,isItProcessed:e.isItProcessed,removeFromInbox:e.removeFromInbox,draftReply:e.draftReply,forwardToTeamAgent:e.forwardToTeamAgent,gmailHistoryId:e.gmailHistoryId,collectDataOn:e.collectDataOn,actualAssistant:e.actualAssistant,lastName:e.lastName,subjectPreference:e.subjectPreference,getgSheetId:e.getgSheetId,autoDrafting:e.autoDrafting,followUpsRequired:e.followUpsRequired,followUpsTemplates:e.followUpsTemplates,lockedSheet:e.lockedSheet,smartResponding:e.smartResponding,pendingFollowUps:e.pendingFollowUps,xagacityNumber:e.xagacityNumber,password:e.password,calendarHistoryId:e.calendarHistoryId,calendarName:e.calendarName,hasSalesforce:e.hasSalesforce,dateActive:void 0===e.dateActive?void 0:e.dateActive.toISOString(),leadTrackingEmailForwardingActive:e.leadTrackingEmailForwardingActive,receivesForwardedEmails:e.receivesForwardedEmails,messageDelayInSeconds:e.messageDelayInSeconds,crmUsedType:e.crmUsedType,relatedEmailIds:e.relatedEmailIds,callsStartingHours:e.callsStartingHours,callsClosingHours:e.callsClosingHours,availabilitiesSoftwareType:e.availabilitiesSoftwareType,associatedDomains:e.associatedDomains,lastCrmSyncId:e.lastCrmSyncId,crmSyncType:e.crmSyncType,importingNewLeadsFromCrmActive:e.importingNewLeadsFromCrmActive,followUpDataSource:e.followUpDataSource,prefersTextsConfirmations:e.prefersTextsConfirmations,smsAppointmentReminderEnabled:e.smsAppointmentReminderEnabled,smsPreTourFollowUpEnabled:e.smsPreTourFollowUpEnabled,smsPostTourFollowUpEnabled:e.smsPostTourFollowUpEnabled,smsNoShowFollowUpEnabled:e.smsNoShowFollowUpEnabled,eventsLastCrmSyncId:e.eventsLastCrmSyncId,whiteListActivated:e.whiteListActivated,blackListActivated:e.blackListActivated,availabilitiesPreferences:o.AvailabilitiesPreferencesToJSON(e.availabilitiesPreferences),qaAlertPriority:e.qaAlertPriority,useSmtpRelay:e.useSmtpRelay,needParseSignature:e.needParseSignature,signaturePattern:e.signaturePattern,spamHistoryId:e.spamHistoryId,receivesUnsubscribeReport:e.receivesUnsubscribeReport,emailSyncState:e.emailSyncState,buildingRefreshInfo:a.BuildingRefreshInfoToJSON(e.buildingRefreshInfo),idVerificationProvider:e.idVerificationProvider}}},1889:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityUserWithCredentialsToJSON=t.XagacityUserWithCredentialsFromJSONTyped=t.XagacityUserWithCredentialsFromJSON=void 0;var n=i(296),r=i(7455),o=i(9861),a=i(3538),s=i(1283),l=i(3450);function u(e,t){return null==e?e:{user:n.exists(e,"user")?s.XagacityUserFromJSON(e.user):void 0,entrataCredentials:n.exists(e,"entrataCredentials")?o.EntrataCredentialsFromJSON(e.entrataCredentials):void 0,realPageCredentials:n.exists(e,"realPageCredentials")?a.RealPageCredentialsFromJSON(e.realPageCredentials):void 0,yardiCredentials:n.exists(e,"yardiCredentials")?l.YardiCredentialsFromJSON(e.yardiCredentials):void 0,anyoneHomeCredentials:n.exists(e,"anyoneHomeCredentials")?r.AnyoneHomeCredentialsFromJSON(e.anyoneHomeCredentials):void 0}}t.XagacityUserWithCredentialsFromJSON=function(e){return u(e)},t.XagacityUserWithCredentialsFromJSONTyped=u,t.XagacityUserWithCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{user:s.XagacityUserToJSON(e.user),entrataCredentials:o.EntrataCredentialsToJSON(e.entrataCredentials),realPageCredentials:a.RealPageCredentialsToJSON(e.realPageCredentials),yardiCredentials:l.YardiCredentialsToJSON(e.yardiCredentials),anyoneHomeCredentials:r.AnyoneHomeCredentialsToJSON(e.anyoneHomeCredentials)}}},3450:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.YardiCredentialsToJSON=t.YardiCredentialsFromJSONTyped=t.YardiCredentialsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,userName:n.exists(e,"userName")?e.userName:void 0,password:n.exists(e,"password")?e.password:void 0,serverName:n.exists(e,"serverName")?e.serverName:void 0,database:n.exists(e,"database")?e.database:void 0,platform:n.exists(e,"platform")?e.platform:void 0,webserviceHost:n.exists(e,"webserviceHost")?e.webserviceHost:void 0}}t.YardiCredentialsFromJSON=function(e){return r(e)},t.YardiCredentialsFromJSONTyped=r,t.YardiCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,userName:e.userName,password:e.password,serverName:e.serverName,database:e.database,platform:e.platform,webserviceHost:e.webserviceHost}}},4584:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(6662),t),r(i(2322),t),r(i(1961),t),r(i(818),t),r(i(6140),t),r(i(5246),t),r(i(5556),t),r(i(7455),t),r(i(3617),t),r(i(67),t),r(i(1234),t),r(i(1995),t),r(i(3618),t),r(i(2160),t),r(i(5604),t),r(i(3477),t),r(i(8536),t),r(i(4597),t),r(i(553),t),r(i(6673),t),r(i(6597),t),r(i(7949),t),r(i(2386),t),r(i(4853),t),r(i(9260),t),r(i(3777),t),r(i(713),t),r(i(1172),t),r(i(5384),t),r(i(2414),t),r(i(3077),t),r(i(2817),t),r(i(9407),t),r(i(7058),t),r(i(3531),t),r(i(6613),t),r(i(5040),t),r(i(5111),t),r(i(3202),t),r(i(6058),t),r(i(3817),t),r(i(8882),t),r(i(6607),t),r(i(5007),t),r(i(1057),t),r(i(7009),t),r(i(3694),t),r(i(4105),t),r(i(9861),t),r(i(8442),t),r(i(6885),t),r(i(7934),t),r(i(3905),t),r(i(3958),t),r(i(6045),t),r(i(6465),t),r(i(1204),t),r(i(7895),t),r(i(4326),t),r(i(2610),t),r(i(1960),t),r(i(9233),t),r(i(8055),t),r(i(2406),t),r(i(1880),t),r(i(7989),t),r(i(4036),t),r(i(5728),t),r(i(5131),t),r(i(7708),t),r(i(746),t),r(i(7662),t),r(i(9132),t),r(i(7530),t),r(i(194),t),r(i(1312),t),r(i(4549),t),r(i(8636),t),r(i(7399),t),r(i(8328),t),r(i(4401),t),r(i(3832),t),r(i(4883),t),r(i(6705),t),r(i(1427),t),r(i(9718),t),r(i(1004),t),r(i(4240),t),r(i(2960),t),r(i(1431),t),r(i(8792),t),r(i(908),t),r(i(3231),t),r(i(8496),t),r(i(3538),t),r(i(9353),t),r(i(6343),t),r(i(7564),t),r(i(4748),t),r(i(170),t),r(i(2298),t),r(i(445),t),r(i(1222),t),r(i(7444),t),r(i(3815),t),r(i(8385),t),r(i(6956),t),r(i(2644),t),r(i(4192),t),r(i(6832),t),r(i(6865),t),r(i(6448),t),r(i(6161),t),r(i(6069),t),r(i(6122),t),r(i(5687),t),r(i(2558),t),r(i(904),t),r(i(7346),t),r(i(6306),t),r(i(2977),t),r(i(1124),t),r(i(827),t),r(i(1155),t),r(i(8911),t),r(i(9374),t),r(i(6330),t),r(i(9275),t),r(i(260),t),r(i(1161),t),r(i(5239),t),r(i(3842),t),r(i(9908),t),r(i(5530),t),r(i(9256),t),r(i(2288),t),r(i(3029),t),r(i(5454),t),r(i(2449),t),r(i(2242),t),r(i(6570),t),r(i(4675),t),r(i(3163),t),r(i(8937),t),r(i(2683),t),r(i(4145),t),r(i(7571),t),r(i(4891),t),r(i(2294),t),r(i(2394),t),r(i(8644),t),r(i(2653),t),r(i(9046),t),r(i(8819),t),r(i(6799),t),r(i(6228),t),r(i(7052),t),r(i(6826),t),r(i(403),t),r(i(3645),t),r(i(4586),t),r(i(560),t),r(i(5108),t),r(i(3053),t),r(i(1283),t),r(i(1889),t),r(i(3450),t)},296:function(e,t){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextApiResponse=t.BlobApiResponse=t.VoidApiResponse=t.JSONApiResponse=t.canConsumeForm=t.mapValues=t.querystring=t.exists=t.Configuration=t.COLLECTION_FORMATS=t.RequiredError=t.BaseAPI=t.BASE_PATH=void 0,t.BASE_PATH="http://localhost:8080".replace(/\/+$/,"");var s=function(){function e(e){var t=this;void 0===e&&(e=new u),this.configuration=e,this.fetchApi=function(e,i){return o(t,void 0,void 0,(function(){var t,n,o,s,l,u,d;return a(this,(function(a){switch(a.label){case 0:t={url:e,init:i},n=0,o=this.middleware,a.label=1;case 1:return n<o.length?(d=o[n]).pre?[4,d.pre(r({fetch:this.fetchApi},t))]:[3,3]:[3,4];case 2:t=a.sent()||t,a.label=3;case 3:return n++,[3,1];case 4:return[4,(this.configuration.fetchApi||fetch)(t.url,t.init)];case 5:s=a.sent(),l=0,u=this.middleware,a.label=6;case 6:return l<u.length?(d=u[l]).post?[4,d.post({fetch:this.fetchApi,url:t.url,init:t.init,response:s.clone()})]:[3,8]:[3,9];case 7:s=a.sent()||s,a.label=8;case 8:return l++,[3,6];case 9:return[2,s]}}))}))},this.middleware=e.middleware}return e.prototype.withMiddleware=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=this.clone();return n.middleware=(e=n.middleware).concat.apply(e,t),n},e.prototype.withPreMiddleware=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=e.map((function(e){return{pre:e}}));return this.withMiddleware.apply(this,i)},e.prototype.withPostMiddleware=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=e.map((function(e){return{post:e}}));return this.withMiddleware.apply(this,i)},e.prototype.request=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o;return a(this,(function(a){switch(a.label){case 0:return i=this.createFetchParams(e,t),n=i.url,r=i.init,[4,this.fetchApi(n,r)];case 1:if((o=a.sent()).status>=200&&o.status<300)return[2,o];throw o}}))}))},e.prototype.createFetchParams=function(e,t){var i=this.configuration.basePath+e.path;void 0!==e.query&&0!==Object.keys(e.query).length&&(i+="?"+this.configuration.queryParamsStringify(e.query));var n,o="undefined"!=typeof FormData&&e.body instanceof FormData||e.body instanceof URLSearchParams||(n=e.body,"undefined"!=typeof Blob&&n instanceof Blob)?e.body:JSON.stringify(e.body),a=Object.assign({},this.configuration.headers,e.headers);return{url:i,init:r({method:e.method,headers:a,body:o,credentials:this.configuration.credentials},t)}},e.prototype.clone=function(){var e=new(0,this.constructor)(this.configuration);return e.middleware=this.middleware.slice(),e},e}();t.BaseAPI=s;var l=function(e){function t(t,i){var n=e.call(this,i)||this;return n.field=t,n.name="RequiredError",n}return n(t,e),t}(Error);t.RequiredError=l,t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};var u=function(){function e(e){void 0===e&&(e={}),this.configuration=e}return Object.defineProperty(e.prototype,"basePath",{get:function(){return null!=this.configuration.basePath?this.configuration.basePath:t.BASE_PATH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fetchApi",{get:function(){return this.configuration.fetchApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"middleware",{get:function(){return this.configuration.middleware||[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"queryParamsStringify",{get:function(){return this.configuration.queryParamsStringify||d},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"username",{get:function(){return this.configuration.username},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"password",{get:function(){return this.configuration.password},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"apiKey",{get:function(){var e=this.configuration.apiKey;if(e)return"function"==typeof e?e:function(){return e}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accessToken",{get:function(){var e=this,t=this.configuration.accessToken;if(t)return"function"==typeof t?t:function(){return o(e,void 0,void 0,(function(){return a(this,(function(e){return[2,t]}))}))}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){return this.configuration.headers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"credentials",{get:function(){return this.configuration.credentials},enumerable:!1,configurable:!0}),e}();function d(e,t){return void 0===t&&(t=""),Object.keys(e).map((function(i){var n=t+(t.length?"["+i+"]":i),r=e[i];if(r instanceof Array){var o=r.map((function(e){return encodeURIComponent(String(e))})).join("&"+encodeURIComponent(n)+"=");return encodeURIComponent(n)+"="+o}return r instanceof Date?encodeURIComponent(n)+"="+encodeURIComponent(r.toISOString()):r instanceof Object?d(r,n):encodeURIComponent(n)+"="+encodeURIComponent(String(r))})).filter((function(e){return e.length>0})).join("&")}t.Configuration=u,t.exists=function(e,t){return null!=e[t]},t.querystring=d,t.mapValues=function(e,t){return Object.keys(e).reduce((function(i,n){var o;return r(r({},i),((o={})[n]=t(e[n]),o))}),{})},t.canConsumeForm=function(e){for(var t=0,i=e;t<i.length;t++)if("multipart/form-data"===i[t].contentType)return!0;return!1};var c=function(){function e(e,t){void 0===t&&(t=function(e){return e}),this.raw=e,this.transformer=t}return e.prototype.value=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return e=this.transformer,[4,this.raw.json()];case 1:return[2,e.apply(this,[t.sent()])]}}))}))},e}();t.JSONApiResponse=c;var p=function(){function e(e){this.raw=e}return e.prototype.value=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,void 0]}))}))},e}();t.VoidApiResponse=p;var h=function(){function e(e){this.raw=e}return e.prototype.value=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.raw.blob()];case 1:return[2,e.sent()]}}))}))},e}();t.BlobApiResponse=h;var f=function(){function e(e){this.raw=e}return e.prototype.value=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.raw.text()];case 1:return[2,e.sent()]}}))}))},e}();t.TextApiResponse=f},9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),r=i(6026),o=i(4372),a=i(5327),s=i(4097),l=i(4109),u=i(7985),d=i(7874),c=i(2648),p=i(644),h=i(205);e.exports=function(e){return new Promise((function(t,i){var f,m=e.data,g=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+S)}var T=s(e.baseURL,e.url);function x(){if(b){var n="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};r((function(e){t(e),y()}),(function(e){i(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(T,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(x)},b.onabort=function(){b&&(i(new c("Request aborted",c.ECONNABORTED,e,b)),b=null)},b.onerror=function(){i(new c("Network Error",c.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(new c(t,n.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,e,b)),b=null},n.isStandardBrowserEnv()){var A=(e.withCredentials||u(T))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;A&&(g[e.xsrfHeaderName]=A)}"setRequestHeader"in b&&n.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){b&&(i(!e||e&&e.type?new p:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),m||(m=null);var C=h(T);C&&-1===["http","https","file"].indexOf(C)?i(new c("Unsupported protocol "+C+":",c.ERR_BAD_REQUEST,e)):b.send(m)}))}},1609:(e,t,i)=>{var n=i(4867),r=i(1849),o=i(321),a=i(7185),s=function e(t){var i=new o(t),s=r(o.prototype.request,i);return n.extend(s,o.prototype,i),n.extend(s,i),s.create=function(i){return e(a(t,i))},s}(i(5546));s.Axios=o,s.CanceledError=i(644),s.CancelToken=i(4972),s.isCancel=i(6502),s.VERSION=i(7288).version,s.toFormData=i(7675),s.AxiosError=i(2648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=i(8713),s.isAxiosError=i(6268),e.exports=s,e.exports.default=s},4972:(e,t,i)=>{var n=i(644);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;this.promise.then((function(e){if(i._listeners){var t,n=i._listeners.length;for(t=0;t<n;t++)i._listeners[t](e);i._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},e((function(e){i.reason||(i.reason=new n(e),t(i.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},644:(e,t,i)=>{var n=i(2648);function r(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}i(4867).inherits(r,n,{__CANCEL__:!0}),e.exports=r},6502:e=>{e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,i)=>{var n=i(4867),r=i(5327),o=i(782),a=i(3572),s=i(7185),l=i(4097),u=i(4875),d=u.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;void 0!==i&&u.assertOptions(i,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(l),o=Promise.resolve(t);c.length;)o=o.then(c.shift(),c.shift());return o}for(var p=t;n.length;){var h=n.shift(),f=n.shift();try{p=h(p)}catch(e){f(e);break}}try{o=a(p)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},c.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,i){return this.request(s(i||{},{method:e,url:t,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(i,n,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}c.prototype[e]=t(),c.prototype[e+"Form"]=t(!0)})),e.exports=c},2648:(e,t,i)=>{var n=i(4867);function r(e,t,i,n,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r)}n.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,i,a,s,l){var u=Object.create(o);return n.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,i,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},782:(e,t,i)=>{var n=i(4867);function r(){this.handlers=[]}r.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},4097:(e,t,i)=>{var n=i(1793),r=i(7303);e.exports=function(e,t){return e&&!n(t)?r(e,t):t}},3572:(e,t,i)=>{var n=i(4867),r=i(8527),o=i(6502),a=i(5546),s=i(644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){t=t||{};var i={};function r(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:r(void 0,e[i]):r(e[i],t[i])}function a(e){if(!n.isUndefined(t[e]))return r(void 0,t[e])}function s(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:r(void 0,e[i]):r(void 0,t[i])}function l(i){return i in t?r(e[i],t[i]):i in e?r(void 0,e[i]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);n.isUndefined(r)&&t!==l||(i[e]=r)})),i}},6026:(e,t,i)=>{var n=i(2648);e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(new n("Request failed with status code "+i.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}},8527:(e,t,i)=>{var n=i(4867),r=i(5546);e.exports=function(e,t,i){var o=this||r;return n.forEach(i,(function(i){e=i.call(o,e,t)})),e}},5546:(e,t,i)=>{var n=i(4867),r=i(6016),o=i(2648),a=i(7874),s=i(7675),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d,c={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(d=i(5448)),d),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var i,o=n.isObject(e),a=t&&t["Content-Type"];if((i=n.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(i?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(u(t,"application/json"),function(e,t,i){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,i=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!i&&"json"===this.responseType;if(a||r&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(l)})),e.exports=c},7874:e=>{e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},5327:(e,t,i)=>{var n=i(4867);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var o;if(i)o=i(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,i)=>{var n=i(4867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,i,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),n.isString(r)&&s.push("path="+r),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,i)=>{var n=i(4867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,i)=>{var n=i(4867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(t){var i=n.isString(t)?r(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},6016:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){n.forEach(e,(function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])}))}},1623:e=>{e.exports=null},4109:(e,t,i)=>{var n=i(4867),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,o,a={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),i=n.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([i]):a[t]?a[t]+", "+i:i}})),a):a}},205:e=>{e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){t=t||new FormData;var i=[];function r(e){return null===e?"":n.isDate(e)?e.toISOString():n.isArrayBuffer(e)||n.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,a){if(n.isPlainObject(o)||n.isArray(o)){if(-1!==i.indexOf(o))throw Error("Circular reference detected in "+a);i.push(o),n.forEach(o,(function(i,o){if(!n.isUndefined(i)){var s,l=a?a+"."+o:o;if(i&&!a&&"object"==typeof i)if(n.endsWith(o,"{}"))i=JSON.stringify(i);else if(n.endsWith(o,"[]")&&(s=n.toArray(i)))return void s.forEach((function(e){!n.isUndefined(e)&&t.append(l,r(e))}));e(i,l)}})),i.pop()}else t.append(a,r(o))}(e),t}},4875:(e,t,i)=>{var n=i(7288).version,r=i(2648),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,i){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,n,s){if(!1===e)throw new r(o(n," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,s)}},e.exports={assertOptions:function(e,t,i){if("object"!=typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new r("option "+a+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}},validators:o}},4867:(e,t,i)=>{var n,r=i(1849),o=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=o.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var d=s("ArrayBuffer");function c(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),f=s("File"),m=s("Blob"),g=s("FileList");function v(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var w,S=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:p,isUndefined:u,isDate:h,isFile:f,isBlob:m,isFunction:v,isStream:function(e){return c(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:b,merge:function e(){var t={};function i(i,n){p(t[n])&&p(i)?t[n]=e(t[n],i):p(i)?t[n]=e({},i):l(i)?t[n]=i.slice():t[n]=i}for(var n=0,r=arguments.length;n<r;n++)b(arguments[n],i);return t},extend:function(e,t,i){return b(t,(function(t,n){e[n]=i&&"function"==typeof t?r(t,i):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,i,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,i&&Object.assign(e.prototype,i)},toFlatObject:function(e,t,i){var n,r,o,a={};t=t||{};do{for(r=(n=Object.getOwnPropertyNames(e)).length;r-- >0;)a[o=n[r]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,i){e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;var n=e.indexOf(t,i);return-1!==n&&n===i},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var i=new Array(t);t-- >0;)i[t]=e[t];return i},isTypedArray:S,isFileList:g}},4184:(e,t)=>{var i;!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&e.push(a)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)n.call(i,s)&&i[s]&&e.push(s);else e.push(i.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i)}()},3631:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(8081),r=i.n(n),o=i(5879),a=i.n(o)()(r());a.push([e.id,"@media screen and (min-width: 767px) {\n .meetelise-chat.pane.launcher__desktop {\n right: -32px;\n }\n}\n",""]);const s=a},5879:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<e.length;u++){var d=[].concat(e[u]);n&&a[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),i&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=i):d[2]=i),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},8081:e=>{e.exports=function(e){return e[1]}},7856:function(e){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:i,getPrototypeOf:n,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:a,create:s}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const d=x(Array.prototype.forEach),c=x(Array.prototype.pop),p=x(Array.prototype.push),h=x(String.prototype.toLowerCase),f=x(String.prototype.toString),m=x(String.prototype.match),g=x(String.prototype.replace),v=x(String.prototype.indexOf),y=x(String.prototype.trim),b=x(Object.prototype.hasOwnProperty),w=x(RegExp.prototype.test),S=(T=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(T,t)});var T;function x(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return l(e,t,n)}}function A(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let o=n.length;for(;o--;){let t=n[o];if("string"==typeof t){const e=r(t);e!==t&&(i(n)||(n[o]=e),t=e)}e[t]=!0}return e}function C(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function O(t){const i=s(null);for(const[n,r]of e(t))b(t,n)&&(Array.isArray(r)?i[n]=C(r):r&&"object"==typeof r&&r.constructor===Object?i[n]=O(r):i[n]=r);return i}function I(e,t){for(;null!==e;){const i=r(e,t);if(i){if(i.get)return x(i.get);if("function"==typeof i.value)return x(i.value)}e=n(e)}return function(){return null}}const N=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),E=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),M=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=o(["#text"]),D=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),k=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),q=a(/<%[\w\W]*|[\w\W]*%>/gm),J=a(/\${[\w\W]*}/gm),j=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),G=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=a(/^(?:\w+script|data):/i),W=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=a(/^html$/i),Q=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:q,TMPLIT_EXPR:J,DATA_ATTR:j,ARIA_ATTR:H,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:W,DOCTYPE_NAME:V,CUSTOM_ELEMENT:Q});const X=function(){return"undefined"==typeof window?null:window},$=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=e=>t(e);if(n.version="3.1.2",n.removed=[],!i||!i.document||9!==i.document.nodeType)return n.isSupported=!1,n;let{document:r}=i;const a=r,l=a.currentScript,{DocumentFragment:u,HTMLTemplateElement:T,Node:x,Element:C,NodeFilter:B,NamedNodeMap:q=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:J,DOMParser:j,trustedTypes:H}=i,z=C.prototype,W=I(z,"cloneNode"),Q=I(z,"nextSibling"),Y=I(z,"childNodes"),Z=I(z,"parentNode");if("function"==typeof T){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ee,te="";const{implementation:ie,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:oe}=r,{importNode:ae}=a;let se={};n.isSupported="function"==typeof e&&"function"==typeof Z&&ie&&void 0!==ie.createHTMLDocument;const{MUSTACHE_EXPR:le,ERB_EXPR:ue,TMPLIT_EXPR:de,DATA_ATTR:ce,ARIA_ATTR:pe,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:me}=K;let{IS_ALLOWED_URI:ge}=K,ve=null;const ye=A({},[...N,...E,...R,...P,...F]);let be=null;const we=A({},[...D,...k,...U,...L]);let Se=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,xe=null,Ae=!0,Ce=!0,Oe=!1,Ie=!0,Ne=!1,Ee=!0,Re=!1,_e=!1,Pe=!1,Me=!1,Fe=!1,De=!1,ke=!0,Ue=!1;const Le="user-content-";let Be=!0,qe=!1,Je={},je=null;const He=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const ze=A({},["audio","video","img","source","image","track"]);let We=null;const Ve=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let $e=Xe,Ye=!1,Ze=null;const et=A({},[Qe,Ke,Xe],f);let tt=null;const it=["application/xhtml+xml","text/html"],nt="text/html";let rt=null,ot=null;const at=255,st=r.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ot||ot!==e){if(e&&"object"==typeof e||(e={}),e=O(e),tt=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?nt:e.PARSER_MEDIA_TYPE,rt="application/xhtml+xml"===tt?f:h,ve=b(e,"ALLOWED_TAGS")?A({},e.ALLOWED_TAGS,rt):ye,be=b(e,"ALLOWED_ATTR")?A({},e.ALLOWED_ATTR,rt):we,Ze=b(e,"ALLOWED_NAMESPACES")?A({},e.ALLOWED_NAMESPACES,f):et,We=b(e,"ADD_URI_SAFE_ATTR")?A(O(Ve),e.ADD_URI_SAFE_ATTR,rt):Ve,Ge=b(e,"ADD_DATA_URI_TAGS")?A(O(ze),e.ADD_DATA_URI_TAGS,rt):ze,je=b(e,"FORBID_CONTENTS")?A({},e.FORBID_CONTENTS,rt):He,Te=b(e,"FORBID_TAGS")?A({},e.FORBID_TAGS,rt):{},xe=b(e,"FORBID_ATTR")?A({},e.FORBID_ATTR,rt):{},Je=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ne=e.SAFE_FOR_TEMPLATES||!1,Ee=!1!==e.SAFE_FOR_XML,Re=e.WHOLE_DOCUMENT||!1,Me=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,De=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,ke=!1!==e.SANITIZE_DOM,Ue=e.SANITIZE_NAMED_PROPS||!1,Be=!1!==e.KEEP_CONTENT,qe=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||G,$e=e.NAMESPACE||Xe,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Ce=!1),Fe&&(Me=!0),Je&&(ve=A({},F),be=[],!0===Je.html&&(A(ve,N),A(be,D)),!0===Je.svg&&(A(ve,E),A(be,k),A(be,L)),!0===Je.svgFilters&&(A(ve,R),A(be,k),A(be,L)),!0===Je.mathMl&&(A(ve,P),A(be,U),A(be,L))),e.ADD_TAGS&&(ve===ye&&(ve=O(ve)),A(ve,e.ADD_TAGS,rt)),e.ADD_ATTR&&(be===we&&(be=O(be)),A(be,e.ADD_ATTR,rt)),e.ADD_URI_SAFE_ATTR&&A(We,e.ADD_URI_SAFE_ATTR,rt),e.FORBID_CONTENTS&&(je===He&&(je=O(je)),A(je,e.FORBID_CONTENTS,rt)),Be&&(ve["#text"]=!0),Re&&A(ve,["html","head","body"]),ve.table&&(A(ve,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=e.TRUSTED_TYPES_POLICY,te=ee.createHTML("")}else void 0===ee&&(ee=$(H,l)),null!==ee&&"string"==typeof te&&(te=ee.createHTML(""));o&&o(e),ot=e}},dt=A({},["mi","mo","mn","ms","mtext"]),ct=A({},["foreignobject","annotation-xml"]),pt=A({},["title","style","font","a","script"]),ht=A({},[...E,...R,..._]),ft=A({},[...P,...M]),mt=function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:$e,tagName:"template"});const i=h(e.tagName),n=h(t.tagName);return!!Ze[e.namespaceURI]&&(e.namespaceURI===Ke?t.namespaceURI===Xe?"svg"===i:t.namespaceURI===Qe?"svg"===i&&("annotation-xml"===n||dt[n]):Boolean(ht[i]):e.namespaceURI===Qe?t.namespaceURI===Xe?"math"===i:t.namespaceURI===Ke?"math"===i&&ct[n]:Boolean(ft[i]):e.namespaceURI===Xe?!(t.namespaceURI===Ke&&!ct[n])&&!(t.namespaceURI===Qe&&!dt[n])&&!ft[i]&&(pt[i]||!ht[i]):!("application/xhtml+xml"!==tt||!Ze[e.namespaceURI]))},gt=function(e){p(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},vt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!be[e])if(Me||Fe)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,i=null;if(Pe)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===tt&&$e===Xe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=ee?ee.createHTML(e):e;if($e===Xe)try{t=(new j).parseFromString(n,tt)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument($e,"template",null);try{t.documentElement.innerHTML=Ye?te:n}catch(e){}}const o=t.body||t.documentElement;return e&&i&&o.insertBefore(r.createTextNode(i),o.childNodes[0]||null),$e===Xe?oe.call(t,Re?"html":"body")[0]:Re?t.documentElement:o},bt=function(e){return ne.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof J&&(void 0!==e.__depth&&"number"!=typeof e.__depth||void 0!==e.__removalCount&&"number"!=typeof e.__removalCount||"string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof q)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(e){return"function"==typeof x&&e instanceof x},Tt=function(e,t,i){se[e]&&d(se[e],(e=>{e.call(n,t,i,ot)}))},xt=function(e){let t=null;if(Tt("beforeSanitizeElements",e,null),wt(e))return gt(e),!0;const i=rt(e.nodeName);if(Tt("uponSanitizeElement",e,{tagName:i,allowedTags:ve}),e.hasChildNodes()&&!St(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(Ee&&8===e.nodeType&&w(/<[/\w]/g,e.data))return gt(e),!0;if(!ve[i]||Te[i]){if(!Te[i]&&Ct(i)){if(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,i))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(i))return!1}if(Be&&!je[i]){const t=Z(e)||e.parentNode,i=Y(e)||e.childNodes;if(i&&t)for(let n=i.length-1;n>=0;--n){const r=W(i[n],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,Q(e))}}return gt(e),!0}return e instanceof C&&!mt(e)?(gt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,d([le,ue,de],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),Tt("afterSanitizeElements",e,null),!1):(gt(e),!0)},At=function(e,t,i){if(ke&&("id"===t||"name"===t)&&(i in r||i in st))return!1;if(Ce&&!xe[t]&&w(ce,t));else if(Ae&&w(pe,t));else if(!be[t]||xe[t]){if(!(Ct(e)&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&w(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,i)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(i))))return!1}else if(We[t]);else if(w(ge,g(i,fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(i,"data:")||!Ge[e])if(Oe&&!w(he,g(i,fe,"")));else if(i)return!1;return!0},Ct=function(e){return"annotation-xml"!==e&&m(e,me)},Ot=function(e){Tt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:l}=o,u=rt(a);let p="value"===a?l:y(l);if(i.attrName=u,i.attrValue=p,i.keepAttr=!0,i.forceKeepAttr=void 0,Tt("uponSanitizeAttribute",e,i),p=i.attrValue,i.forceKeepAttr)continue;if(vt(a,e),!i.keepAttr)continue;if(!Ie&&w(/\/>/i,p)){vt(a,e);continue}Ne&&d([le,ue,de],(e=>{p=g(p,e," ")}));const h=rt(e.nodeName);if(At(h,u,p)){if(!Ue||"id"!==u&&"name"!==u||(vt(a,e),p=Le+p),ee&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(s);else switch(H.getAttributeType(h,u)){case"TrustedHTML":p=ee.createHTML(p);break;case"TrustedScriptURL":p=ee.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),c(n.removed)}catch(e){}}}Tt("afterSanitizeAttributes",e,null)},It=function e(t){let i=null;const n=bt(t);for(Tt("beforeSanitizeShadowDOM",t,null);i=n.nextNode();){if(Tt("uponSanitizeShadowNode",i,null),xt(i))continue;const t=Z(i);1===i.nodeType&&(t&&t.__depth?i.__depth=(i.__removalCount||0)+t.__depth+1:i.__depth=1),i.__depth>=at&>(i),i.content instanceof u&&(i.content.__depth=i.__depth,e(i.content)),Ot(i)}Tt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,o=null,s=null;if(Ye=!e,Ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!St(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!n.isSupported)return e;if(_e||ut(t),n.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=rt(e.nodeName);if(!ve[t]||Te[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof x)i=yt("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r);else{if(!Me&&!Ne&&!Re&&-1===e.indexOf("<"))return ee&&De?ee.createHTML(e):e;if(i=yt(e),!i)return Me?null:De?te:""}i&&Pe&>(i.firstChild);const l=bt(qe?e:i);for(;o=l.nextNode();){if(xt(o))continue;const e=Z(o);1===o.nodeType&&(e&&e.__depth?o.__depth=(o.__removalCount||0)+e.__depth+1:o.__depth=1),o.__depth>=at&>(o),o.content instanceof u&&(o.content.__depth=o.__depth,It(o.content)),Ot(o)}if(qe)return e;if(Me){if(Fe)for(s=re.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(be.shadowroot||be.shadowrootmode)&&(s=ae.call(a,s,!0)),s}let c=Re?i.outerHTML:i.innerHTML;return Re&&ve["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&w(V,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),Ne&&d([le,ue,de],(e=>{c=g(c,e," ")})),ee&&De?ee.createHTML(c):c},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),_e=!0},n.clearConfig=function(){ot=null,_e=!1},n.isValidAttribute=function(e,t,i){ot||ut({});const n=rt(e),r=rt(t);return At(n,r,i)},n.addHook=function(e,t){"function"==typeof t&&(se[e]=se[e]||[],p(se[e],t))},n.removeHook=function(e){if(se[e])return c(se[e])},n.removeHooks=function(e){se[e]&&(se[e]=[])},n.removeAllHooks=function(){se={}},n}()}()},8552:(e,t,i)=>{var n=i(852)(i(5639),"DataView");e.exports=n},1989:(e,t,i)=>{var n=i(1789),r=i(401),o=i(7667),a=i(1327),s=i(1866);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},8407:(e,t,i)=>{var n=i(7040),r=i(4125),o=i(2117),a=i(7529),s=i(4705);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},7071:(e,t,i)=>{var n=i(852)(i(5639),"Map");e.exports=n},3369:(e,t,i)=>{var n=i(4785),r=i(1285),o=i(6e3),a=i(9916),s=i(5265);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},3818:(e,t,i)=>{var n=i(852)(i(5639),"Promise");e.exports=n},8525:(e,t,i)=>{var n=i(852)(i(5639),"Set");e.exports=n},8668:(e,t,i)=>{var n=i(3369),r=i(619),o=i(2385);function a(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=o,e.exports=a},6384:(e,t,i)=>{var n=i(8407),r=i(7465),o=i(3779),a=i(7599),s=i(4758),l=i(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,i)=>{var n=i(5639).Symbol;e.exports=n},1149:(e,t,i)=>{var n=i(5639).Uint8Array;e.exports=n},577:(e,t,i)=>{var n=i(852)(i(5639),"WeakMap");e.exports=n},4174:e=>{e.exports=function(e,t,i,n){for(var r=-1,o=null==e?0:e.length;++r<o;){var a=e[r];t(n,a,i(a),e)}return n}},7412:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}},4963:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var a=e[i];t(a,i,e)&&(o[r++]=a)}return o}},4636:(e,t,i)=>{var n=i(2545),r=i(5694),o=i(1469),a=i(4144),s=i(5776),l=i(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=o(e),d=!i&&r(e),c=!i&&!d&&a(e),p=!i&&!d&&!c&&l(e),h=i||d||c||p,f=h?n(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||h&&("length"==g||c&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},9932:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}},2488:e=>{e.exports=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}},2663:e=>{e.exports=function(e,t,i,n){var r=-1,o=null==e?0:e.length;for(n&&o&&(i=e[++r]);++r<o;)i=t(i,e[r],r,e);return i}},2908:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},4286:e=>{e.exports=function(e){return e.split("")}},9029:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},8470:(e,t,i)=>{var n=i(7813);e.exports=function(e,t){for(var i=e.length;i--;)if(n(e[i][0],t))return i;return-1}},1119:(e,t,i)=>{var n=i(9881);e.exports=function(e,t,i,r){return n(e,(function(e,n,o){t(r,e,i(e),o)})),r}},9465:(e,t,i)=>{var n=i(8777);e.exports=function(e,t,i){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},3118:(e,t,i)=>{var n=i(3218),r=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();e.exports=o},9881:(e,t,i)=>{var n=i(7816),r=i(9291)(n);e.exports=r},8483:(e,t,i)=>{var n=i(5063)();e.exports=n},7816:(e,t,i)=>{var n=i(8483),r=i(3674);e.exports=function(e,t){return e&&n(e,t,r)}},7786:(e,t,i)=>{var n=i(1811),r=i(327);e.exports=function(e,t){for(var i=0,o=(t=n(t,e)).length;null!=e&&i<o;)e=e[r(t[i++])];return i&&i==o?e:void 0}},8866:(e,t,i)=>{var n=i(2488),r=i(1469);e.exports=function(e,t,i){var o=t(e);return r(e)?o:n(o,i(e))}},4239:(e,t,i)=>{var n=i(2705),r=i(9607),o=i(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):o(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,i)=>{var n=i(4239),r=i(7005);e.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}},939:(e,t,i)=>{var n=i(2492),r=i(7005);e.exports=function e(t,i,o,a,s){return t===i||(null==t||null==i||!r(t)&&!r(i)?t!=t&&i!=i:n(t,i,o,a,e,s))}},2492:(e,t,i)=>{var n=i(6384),r=i(7114),o=i(8351),a=i(6096),s=i(4160),l=i(1469),u=i(4144),d=i(6719),c="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,m,g,v){var y=l(e),b=l(t),w=y?p:s(e),S=b?p:s(t),T=(w=w==c?h:w)==h,x=(S=S==c?h:S)==h,A=w==S;if(A&&u(e)){if(!u(t))return!1;y=!0,T=!1}if(A&&!T)return v||(v=new n),y||d(e)?r(e,t,i,m,g,v):o(e,t,w,i,m,g,v);if(!(1&i)){var C=T&&f.call(e,"__wrapped__"),O=x&&f.call(t,"__wrapped__");if(C||O){var I=C?e.value():e,N=O?t.value():t;return v||(v=new n),g(I,N,i,m,v)}}return!!A&&(v||(v=new n),a(e,t,i,m,g,v))}},2958:(e,t,i)=>{var n=i(6384),r=i(939);e.exports=function(e,t,i,o){var a=i.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=i[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var d=(u=i[a])[0],c=e[d],p=u[1];if(l&&u[2]){if(void 0===c&&!(d in e))return!1}else{var h=new n;if(o)var f=o(c,p,d,e,t,h);if(!(void 0===f?r(p,c,3,o,h):f))return!1}}return!0}},8458:(e,t,i)=>{var n=i(3560),r=i(5346),o=i(3218),a=i(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,p=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(n(e)?p:s).test(a(e))}},8749:(e,t,i)=>{var n=i(4239),r=i(1780),o=i(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!a[n(e)]}},7206:(e,t,i)=>{var n=i(1573),r=i(6432),o=i(6557),a=i(1469),s=i(9601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?r(e[0],e[1]):n(e):s(e)}},280:(e,t,i)=>{var n=i(5726),r=i(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=[];for(var i in Object(e))o.call(e,i)&&"constructor"!=i&&t.push(i);return t}},1573:(e,t,i)=>{var n=i(2958),r=i(1499),o=i(2634);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(i){return i===e||n(i,e,t)}}},6432:(e,t,i)=>{var n=i(939),r=i(7361),o=i(9095),a=i(5403),s=i(9162),l=i(2634),u=i(327);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(i){var a=r(i,e);return void 0===a&&a===t?o(i,e):n(t,a,3)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,i)=>{var n=i(7786);e.exports=function(e){return function(t){return n(t,e)}}},8674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},4259:e=>{e.exports=function(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(r);++n<r;)o[n]=e[n+t];return o}},2545:e=>{e.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},531:(e,t,i)=>{var n=i(2705),r=i(9932),o=i(1469),a=i(3448),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(a(t))return l?l.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,i)=>{var n=i(1469),r=i(5403),o=i(5514),a=i(9833);e.exports=function(e,t){return n(e)?e:r(e,t)?[e]:o(a(e))}},180:(e,t,i)=>{var n=i(4259);e.exports=function(e,t,i){var r=e.length;return i=void 0===i?r:i,!t&&i>=r?e:n(e,t,i)}},4429:(e,t,i)=>{var n=i(5639)["__core-js_shared__"];e.exports=n},5189:(e,t,i)=>{var n=i(4174),r=i(1119),o=i(7206),a=i(1469);e.exports=function(e,t){return function(i,s){var l=a(i)?n:r,u=t?t():{};return l(i,e,o(s,2),u)}}},9291:(e,t,i)=>{var n=i(8612);e.exports=function(e,t){return function(i,r){if(null==i)return i;if(!n(i))return e(i,r);for(var o=i.length,a=t?o:-1,s=Object(i);(t?a--:++a<o)&&!1!==r(s[a],a,s););return i}}},5063:e=>{e.exports=function(e){return function(t,i,n){for(var r=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===i(o[l],l,o))break}return t}}},8805:(e,t,i)=>{var n=i(180),r=i(2689),o=i(3140),a=i(9833);e.exports=function(e){return function(t){t=a(t);var i=r(t)?o(t):void 0,s=i?i[0]:t.charAt(0),l=i?n(i,1).join(""):t.slice(1);return s[e]()+l}}},5393:(e,t,i)=>{var n=i(2663),r=i(3816),o=i(8748),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(r(t).replace(a,"")),e,"")}}},9389:(e,t,i)=>{var n=i(8674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},8777:(e,t,i)=>{var n=i(852),r=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},7114:(e,t,i)=>{var n=i(8668),r=i(2908),o=i(4757);e.exports=function(e,t,i,a,s,l){var u=1&i,d=e.length,c=t.length;if(d!=c&&!(u&&c>d))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++f<d;){var v=e[f],y=t[f];if(a)var b=u?a(y,v,f,t,e,l):a(v,y,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!r(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,i,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,i,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},8351:(e,t,i)=>{var n=i(2705),r=i(1149),o=i(7813),a=i(7114),s=i(8776),l=i(1814),u=n?n.prototype:void 0,d=u?u.valueOf:void 0;e.exports=function(e,t,i,n,u,c,p){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!c(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&n;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;n|=2,p.set(e,t);var g=a(h(e),h(t),n,u,c,p);return p.delete(e),g;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},6096:(e,t,i)=>{var n=i(8234),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,o,a,s){var l=1&i,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var c=d;c--;){var p=u[c];if(!(l?p in t:r.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++c<d;){var v=e[p=u[c]],y=t[p];if(o)var b=l?o(y,v,p,t,e,s):o(v,y,p,e,t,s);if(!(void 0===b?v===y||a(v,y,i,o,s):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(m=!1)}return s.delete(e),s.delete(t),m}},1957:(e,t,i)=>{var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=n},8234:(e,t,i)=>{var n=i(8866),r=i(9551),o=i(3674);e.exports=function(e){return n(e,o,r)}},5050:(e,t,i)=>{var n=i(7019);e.exports=function(e,t){var i=e.__data__;return n(t)?i["string"==typeof t?"string":"hash"]:i.map}},1499:(e,t,i)=>{var n=i(9162),r=i(3674);e.exports=function(e){for(var t=r(e),i=t.length;i--;){var o=t[i],a=e[o];t[i]=[o,a,n(a)]}return t}},852:(e,t,i)=>{var n=i(8458),r=i(7801);e.exports=function(e,t){var i=r(e,t);return n(i)?i:void 0}},5924:(e,t,i)=>{var n=i(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,i)=>{var n=i(2705),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),i=e[s];try{e[s]=void 0;var n=!0}catch(e){}var r=a.call(e);return n&&(t?e[s]=i:delete e[s]),r}},9551:(e,t,i)=>{var n=i(4963),r=i(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:r;e.exports=s},4160:(e,t,i)=>{var n=i(8552),r=i(7071),o=i(3818),a=i(8525),s=i(577),l=i(4239),u=i(346),d="[object Map]",c="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=u(n),g=u(r),v=u(o),y=u(a),b=u(s),w=l;(n&&w(new n(new ArrayBuffer(1)))!=f||r&&w(new r)!=d||o&&w(o.resolve())!=c||a&&w(new a)!=p||s&&w(new s)!=h)&&(w=function(e){var t=l(e),i="[object Object]"==t?e.constructor:void 0,n=i?u(i):"";if(n)switch(n){case m:return f;case g:return d;case v:return c;case y:return p;case b:return h}return t}),e.exports=w},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,i)=>{var n=i(1811),r=i(5694),o=i(1469),a=i(5776),s=i(1780),l=i(327);e.exports=function(e,t,i){for(var u=-1,d=(t=n(t,e)).length,c=!1;++u<d;){var p=l(t[u]);if(!(c=null!=e&&i(e,p)))break;e=e[p]}return c||++u!=d?c:!!(d=null==e?0:e.length)&&s(d)&&a(p,d)&&(o(e)||r(e))}},2689:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},3157:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},1789:(e,t,i)=>{var n=i(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,i)=>{var n=i(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return r.call(t,e)?t[e]:void 0}},1327:(e,t,i)=>{var n=i(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}},1866:(e,t,i)=>{var n=i(4536);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var n=typeof e;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<i}},5403:(e,t,i)=>{var n=i(1469),r=i(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!r(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,i)=>{var n,r=i(4429),o=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},9162:(e,t,i)=>{var n=i(3218);e.exports=function(e){return e==e&&!n(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,i)=>{var n=i(8470),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0||(i==t.length-1?t.pop():r.call(t,i,1),--this.size,0))}},2117:(e,t,i)=>{var n=i(8470);e.exports=function(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}},7529:(e,t,i)=>{var n=i(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,i)=>{var n=i(8470);e.exports=function(e,t){var i=this.__data__,r=n(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this}},4785:(e,t,i)=>{var n=i(1989),r=i(8407),o=i(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}},1285:(e,t,i)=>{var n=i(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,i)=>{var n=i(5050);e.exports=function(e,t){var i=n(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}},2634:e=>{e.exports=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}}},4523:(e,t,i)=>{var n=i(8306);e.exports=function(e){var t=n(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}},4536:(e,t,i)=>{var n=i(852)(Object,"create");e.exports=n},6916:(e,t,i)=>{var n=i(5569)(Object.keys,Object);e.exports=n},1167:(e,t,i)=>{e=i.nmd(e);var n=i(1957),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(i){return e(t(i))}}},5639:(e,t,i)=>{var n=i(1957),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();e.exports=o},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}},7465:(e,t,i)=>{var n=i(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,i)=>{var n=i(8407),r=i(7071),o=i(3369);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var a=i.__data__;if(!r||a.length<199)return a.push([e,t]),this.size=++i.size,this;i=this.__data__=new o(a)}return i.set(e,t),this.size=i.size,this}},3140:(e,t,i)=>{var n=i(4286),r=i(2689),o=i(676);e.exports=function(e){return r(e)?o(e):n(e)}},5514:(e,t,i)=>{var n=i(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,i,n,r){t.push(n?r.replace(o,"$1"):i||e)})),t}));e.exports=a},327:(e,t,i)=>{var n=i(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},676:e=>{var t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",n="[^\\ud800-\\udfff]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+t+"|"+i+")?",s="[\\ufe0e\\ufe0f]?",l=s+a+"(?:\\u200d(?:"+[n,r,o].join("|")+")"+s+a+")*",u="(?:"+[n+t+"?",t,r,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+l,"g");e.exports=function(e){return e.match(d)||[]}},2757:e=>{var t="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",o="\\d+",a="["+t+"]",s="[^\\ud800-\\udfff"+n+o+"\\u2700-\\u27bf"+t+i+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",d="["+i+"]",c="(?:"+a+"|"+s+")",p="(?:"+d+"|"+s+")",h="(?:['’](?:d|ll|m|re|s|t|ve))?",f="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",g="[\\ufe0e\\ufe0f]?",v=g+m+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,u].join("|")+")"+g+m+")*",y="(?:"+["[\\u2700-\\u27bf]",l,u].join("|")+")"+v,b=RegExp([d+"?"+a+"+"+h+"(?="+[r,d,"$"].join("|")+")",p+"+"+f+"(?="+[r,d+c,"$"].join("|")+")",d+"?"+c+"+"+h,d+"+"+f,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,y].join("|"),"g");e.exports=function(e){return e.match(b)||[]}},8929:(e,t,i)=>{var n=i(8403),r=i(5393)((function(e,t,i){return t=t.toLowerCase(),e+(i?n(t):t)}));e.exports=r},8403:(e,t,i)=>{var n=i(9833),r=i(1700);e.exports=function(e){return r(n(e).toLowerCase())}},3816:(e,t,i)=>{var n=i(9389),r=i(9833),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=r(e))&&e.replace(o,n).replace(a,"")}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,i)=>{var n=i(7786);e.exports=function(e,t,i){var r=null==e?void 0:n(e,t);return void 0===r?i:r}},7739:(e,t,i)=>{var n=i(9465),r=i(5189),o=Object.prototype.hasOwnProperty,a=r((function(e,t,i){o.call(e,i)?e[i].push(t):n(e,i,[t])}));e.exports=a},9095:(e,t,i)=>{var n=i(13),r=i(222);e.exports=function(e,t){return null!=e&&r(e,t,n)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,i)=>{var n=i(9454),r=i(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,i)=>{var n=i(3560),r=i(1780);e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},4144:(e,t,i)=>{e=i.nmd(e);var n=i(5639),r=i(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l},8367:(e,t,i)=>{var n=i(280),r=i(4160),o=i(5694),a=i(1469),s=i(8612),l=i(4144),u=i(5726),d=i(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||d(e)||o(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var i in e)if(c.call(e,i))return!1;return!0}},3560:(e,t,i)=>{var n=i(4239),r=i(3218);e.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,i)=>{var n=i(4239),r=i(7005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},6719:(e,t,i)=>{var n=i(8749),r=i(7518),o=i(1167),a=o&&o.isTypedArray,s=a?r(a):n;e.exports=s},3674:(e,t,i)=>{var n=i(4636),r=i(280),o=i(8612);e.exports=function(e){return o(e)?n(e):r(e)}},6604:(e,t,i)=>{var n=i(9465),r=i(7816),o=i(7206);e.exports=function(e,t){var i={};return t=o(t,3),r(e,(function(e,r,o){n(i,r,t(e,r,o))})),i}},8306:(e,t,i)=>{var n=i(3369);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var a=e.apply(this,n);return i.cache=o.set(r,a)||o,a};return i.cache=new(r.Cache||n),i}r.Cache=n,e.exports=r},308:e=>{e.exports=function(){}},9601:(e,t,i)=>{var n=i(371),r=i(9152),o=i(5403),a=i(327);e.exports=function(e){return o(e)?n(a(e)):r(e)}},1865:(e,t,i)=>{var n=i(5393)((function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}));e.exports=n},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,i)=>{var n=i(531);e.exports=function(e){return null==e?"":n(e)}},8718:(e,t,i)=>{var n=i(7412),r=i(3118),o=i(7816),a=i(7206),s=i(5924),l=i(1469),u=i(4144),d=i(3560),c=i(3218),p=i(6719);e.exports=function(e,t,i){var h=l(e),f=h||u(e)||p(e);if(t=a(t,4),null==i){var m=e&&e.constructor;i=f?h?new m:[]:c(e)&&d(m)?r(s(e)):{}}return(f?n:o)(e,(function(e,n,r){return t(i,e,n,r)})),i}},1700:(e,t,i)=>{var n=i(8805)("toUpperCase");e.exports=n},8748:(e,t,i)=>{var n=i(9029),r=i(3157),o=i(9833),a=i(2757);e.exports=function(e,t,i){return e=o(e),void 0===(t=i?void 0:t)?r(e)?a(e):n(e):e.match(t)||[]}},7418:e=>{var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,l=r(e),u=1;u<arguments.length;u++){for(var d in a=Object(arguments[u]))i.call(a,d)&&(l[d]=a[d]);if(t){s=t(a);for(var c=0;c<s.length;c++)n.call(a,s[c])&&(l[s[c]]=a[s[c]])}}return l}},9594:function(e,t,i){e.exports=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};function t(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};function r(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 r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}function o(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function a(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function u(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},c={exports:{}};!function(e){!function(t,i){var n=Math.pow(2,-24),r=Math.pow(2,32),o=Math.pow(2,53),a={encode:function(e){var t,n=new ArrayBuffer(256),a=new DataView(n),s=0;function l(e){for(var i=n.byteLength,r=s+e;i<r;)i*=2;if(i!==n.byteLength){var o=a;n=new ArrayBuffer(i),a=new DataView(n);for(var l=s+3>>2,u=0;u<l;++u)a.setUint32(4*u,o.getUint32(4*u))}return t=e,a}function u(){s+=t}function d(e){u(l(1).setUint8(s,e))}function c(e){for(var t=l(e.length),i=0;i<e.length;++i)t.setUint8(s+i,e[i]);u()}function p(e,t){t<24?d(e<<5|t):t<256?(d(e<<5|24),d(t)):t<65536?(d(e<<5|25),function(e){u(l(2).setUint16(s,e))}(t)):t<4294967296?(d(e<<5|26),function(e){u(l(4).setUint32(s,e))}(t)):(d(e<<5|27),function(e){var t=e%r,i=(e-t)/r,n=l(8);n.setUint32(s,i),n.setUint32(s+4,t),u()}(t))}if(function e(t){var n;if(!1===t)return d(244);if(!0===t)return d(245);if(null===t)return d(246);if(t===i)return d(247);switch(typeof t){case"number":if(Math.floor(t)===t){if(0<=t&&t<=o)return p(0,t);if(-o<=t&&t<0)return p(1,-(t+1))}return d(251),function(e){u(l(8).setFloat64(s,e))}(t);case"string":var r=[];for(n=0;n<t.length;++n){var a=t.charCodeAt(n);a<128?r.push(a):a<2048?(r.push(192|a>>6),r.push(128|63&a)):a<55296?(r.push(224|a>>12),r.push(128|a>>6&63),r.push(128|63&a)):(a=(1023&a)<<10,a|=1023&t.charCodeAt(++n),a+=65536,r.push(240|a>>18),r.push(128|a>>12&63),r.push(128|a>>6&63),r.push(128|63&a))}return p(3,r.length),c(r);default:var h;if(Array.isArray(t))for(p(4,h=t.length),n=0;n<h;++n)e(t[n]);else if(t instanceof Uint8Array)p(2,t.length),c(t);else{var f=Object.keys(t);for(p(5,h=f.length),n=0;n<h;++n){var m=f[n];e(m),e(t[m])}}}}(e),"slice"in n)return n.slice(0,s);for(var h=new ArrayBuffer(s),f=new DataView(h),m=0;m<s;++m)f.setUint8(m,a.getUint8(m));return h},decode:function(e,t,o){var a=new DataView(e),s=0;function l(e,t){return s+=t,e}function u(t){return l(new Uint8Array(e,s,t),t)}function d(){return l(a.getUint8(s),1)}function c(){return l(a.getUint16(s),2)}function p(){return l(a.getUint32(s),4)}function h(){return 255===a.getUint8(s)&&(s+=1,!0)}function f(e){if(e<24)return e;if(24===e)return d();if(25===e)return c();if(26===e)return p();if(27===e)return p()*r+p();if(31===e)return-1;throw"Invalid length encoding"}function m(e){var t=d();if(255===t)return-1;var i=f(31&t);if(i<0||t>>5!==e)throw"Invalid indefinite length element";return i}function g(e,t){for(var i=0;i<t;++i){var n=d();128&n&&(n<224?(n=(31&n)<<6|63&d(),t-=1):n<240?(n=(15&n)<<12|(63&d())<<6|63&d(),t-=2):(n=(15&n)<<18|(63&d())<<12|(63&d())<<6|63&d(),t-=3)),n<65536?e.push(n):(n-=65536,e.push(55296|n>>10),e.push(56320|1023&n))}}"function"!=typeof t&&(t=function(e){return e}),"function"!=typeof o&&(o=function(){return i});var v=function e(){var r,p,v=d(),y=v>>5,b=31&v;if(7===y)switch(b){case 25:return function(){var e=new ArrayBuffer(4),t=new DataView(e),i=c(),r=32768&i,o=31744&i,a=1023&i;if(31744===o)o=261120;else if(0!==o)o+=114688;else if(0!==a)return a*n;return t.setUint32(0,r<<16|o<<13|a<<13),t.getFloat32(0)}();case 26:return l(a.getFloat32(s),4);case 27:return l(a.getFloat64(s),8)}if((p=f(b))<0&&(y<2||6<y))throw"Invalid length";switch(y){case 0:return p;case 1:return-1-p;case 2:if(p<0){for(var w=[],S=0;(p=m(y))>=0;)S+=p,w.push(u(p));var T=new Uint8Array(S),x=0;for(r=0;r<w.length;++r)T.set(w[r],x),x+=w[r].length;return T}return u(p);case 3:var A=[];if(p<0)for(;(p=m(y))>=0;)g(A,p);else g(A,p);return String.fromCharCode.apply(null,A);case 4:var C;if(p<0)for(C=[];!h();)C.push(e());else for(C=new Array(p),r=0;r<p;++r)C[r]=e();return C;case 5:var O={};for(r=0;r<p||p<0&&!h();++r)O[e()]=e();return O;case 6:return t(e(),p);case 7:switch(p){case 20:return!1;case 21:return!0;case 22:return null;case 23:return i;default:return o(p)}}}();if(s!==e.byteLength)throw"Remaining bytes";return v}};e.exports?e.exports=a:t.CBOR||(t.CBOR=a)}(d)}(c);var p=c.exports,h={exports:{}};!function(e,t){!function(e){var t={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function i(){var e,t,i="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(i+="-"),i+=(12===e?4:16===e?3&t|8:t).toString(16);return i}function n(e,i){var n=t[i||"all"];return n&&n.test(e)||!1}i.isUUID=n,i.VERSION="0.1.0",e.uuid=i,e.isUUID=n}(t),null!==e&&(e.exports=t.uuid)}(h,h.exports);var f=h.exports,m=function(){return f.uuid?f.uuid():f()},g=function(){function e(e){var t,i,n,r=e.setup;if(this._PNSDKSuffix={},this.instanceId="pn-".concat(m()),this.secretKey=r.secretKey||r.secret_key,this.subscribeKey=r.subscribeKey||r.subscribe_key,this.publishKey=r.publishKey||r.publish_key,this.sdkName=r.sdkName,this.sdkFamily=r.sdkFamily,this.partnerId=r.partnerId,this.setAuthKey(r.authKey),this.setCipherKey(r.cipherKey),this.setFilterExpression(r.filterExpression),"string"!=typeof r.origin&&!Array.isArray(r.origin)&&void 0!==r.origin)throw new Error("Origin must be either undefined, a string or a list of strings.");if(this.origin=r.origin||Array.from({length:20},(function(e,t){return"ps".concat(t+1,".pndsn.com")})),this.secure=r.ssl||!1,this.restore=r.restore||!1,this.proxy=r.proxy,this.keepAlive=r.keepAlive,this.keepAliveSettings=r.keepAliveSettings,this.autoNetworkDetection=r.autoNetworkDetection||!1,this.dedupeOnSubscribe=r.dedupeOnSubscribe||!1,this.maximumCacheSize=r.maximumCacheSize||100,this.customEncrypt=r.customEncrypt,this.customDecrypt=r.customDecrypt,this.fileUploadPublishRetryLimit=null!==(t=r.fileUploadPublishRetryLimit)&&void 0!==t?t:5,this.useRandomIVs=null===(i=r.useRandomIVs)||void 0===i||i,this.enableSubscribeBeta=null!==(n=r.enableSubscribeBeta)&&void 0!==n&&n,"undefined"!=typeof location&&"https:"===location.protocol&&(this.secure=!0),this.logVerbosity=r.logVerbosity||!1,this.suppressLeaveEvents=r.suppressLeaveEvents||!1,this.announceFailedHeartbeats=r.announceFailedHeartbeats||!0,this.announceSuccessfulHeartbeats=r.announceSuccessfulHeartbeats||!1,this.useInstanceId=r.useInstanceId||!1,this.useRequestId=r.useRequestId||!1,this.requestMessageCountThreshold=r.requestMessageCountThreshold,this.setTransactionTimeout(r.transactionalRequestTimeout||15e3),this.setSubscribeTimeout(r.subscribeRequestTimeout||31e4),this.setSendBeaconConfig(r.useSendBeacon||!0),r.presenceTimeout?this.setPresenceTimeout(r.presenceTimeout):this._presenceTimeout=300,null!=r.heartbeatInterval&&this.setHeartbeatInterval(r.heartbeatInterval),"string"==typeof r.userId){if("string"==typeof r.uuid)throw new Error("Only one of the following configuration options has to be provided: `uuid` or `userId`");this.setUserId(r.userId)}else{if("string"!=typeof r.uuid)throw new Error("One of the following configuration options has to be provided: `uuid` or `userId`");this.setUUID(r.uuid)}}return e.prototype.getAuthKey=function(){return this.authKey},e.prototype.setAuthKey=function(e){return this.authKey=e,this},e.prototype.setCipherKey=function(e){return this.cipherKey=e,this},e.prototype.getUUID=function(){return this.UUID},e.prototype.setUUID=function(e){if(!e||"string"!=typeof e||0===e.trim().length)throw new Error("Missing uuid parameter. Provide a valid string uuid");return this.UUID=e,this},e.prototype.getUserId=function(){return this.UUID},e.prototype.setUserId=function(e){if(!e||"string"!=typeof e||0===e.trim().length)throw new Error("Missing or invalid userId parameter. Provide a valid string userId");return this.UUID=e,this},e.prototype.getFilterExpression=function(){return this.filterExpression},e.prototype.setFilterExpression=function(e){return this.filterExpression=e,this},e.prototype.getPresenceTimeout=function(){return this._presenceTimeout},e.prototype.setPresenceTimeout=function(e){return e>=20?this._presenceTimeout=e:(this._presenceTimeout=20,console.log("WARNING: Presence timeout is less than the minimum. Using minimum value: ",this._presenceTimeout)),this.setHeartbeatInterval(this._presenceTimeout/2-1),this},e.prototype.setProxy=function(e){this.proxy=e},e.prototype.getHeartbeatInterval=function(){return this._heartbeatInterval},e.prototype.setHeartbeatInterval=function(e){return this._heartbeatInterval=e,this},e.prototype.getSubscribeTimeout=function(){return this._subscribeRequestTimeout},e.prototype.setSubscribeTimeout=function(e){return this._subscribeRequestTimeout=e,this},e.prototype.getTransactionTimeout=function(){return this._transactionalRequestTimeout},e.prototype.setTransactionTimeout=function(e){return this._transactionalRequestTimeout=e,this},e.prototype.isSendBeaconEnabled=function(){return this._useSendBeacon},e.prototype.setSendBeaconConfig=function(e){return this._useSendBeacon=e,this},e.prototype.getVersion=function(){return"7.2.2"},e.prototype._addPnsdkSuffix=function(e,t){this._PNSDKSuffix[e]=t},e.prototype._getPnsdkSuffix=function(e){var t=this;return Object.keys(this._PNSDKSuffix).reduce((function(i,n){return i+e+t._PNSDKSuffix[n]}),"")},e}();function v(e){var t=e.replace(/==?$/,""),i=Math.floor(t.length/4*3),n=new ArrayBuffer(i),r=new Uint8Array(n),o=0;function a(){var e=t.charAt(o++),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);if(-1===i)throw new Error("Illegal character at ".concat(o,": ").concat(t.charAt(o-1)));return i}for(var s=0;s<i;s+=3){var l=a(),u=a(),d=a(),c=a(),p=(63&l)<<2|u>>4,h=(15&u)<<4|d>>2,f=(3&d)<<6|c>>0;r[s]=p,64!=d&&(r[s+1]=h),64!=c&&(r[s+2]=f)}return n}var y,b,w,S,T,x=x||function(e,t){var i={},n=i.lib={},r=function(){},o=n.Base={extend:function(e){r.prototype=this;var t=new r;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=n.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,i=e.words,n=this.sigBytes;if(e=e.sigBytes,this.clamp(),n%4)for(var r=0;r<e;r++)t[n+r>>>2]|=(i[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else if(65535<i.length)for(r=0;r<e;r+=4)t[n+r>>>2]=i[r>>>2];else t.push.apply(t,i);return this.sigBytes+=e,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=e.ceil(i/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var i=[],n=0;n<t;n+=4)i.push(4294967296*e.random()|0);return new a.init(i,t)}}),s=i.enc={},l=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],n=0;n<e;n++){var r=t[n>>>2]>>>24-n%4*8&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n<t;n+=2)i[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(i,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],n=0;n<e;n++)i.push(String.fromCharCode(t[n>>>2]>>>24-n%4*8&255));return i.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n<t;n++)i[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(i,t)}},d=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},c=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var i=this._data,n=i.words,r=i.sigBytes,o=this.blockSize,s=r/(4*o);if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,r=e.min(4*t,r),t){for(var l=0;l<t;l+=o)this._doProcessBlock(n,l);l=n.splice(0,t),i.sigBytes-=r}return new a.init(l,r)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});n.Hasher=c.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,i){return new e.init(i).finalize(t)}},_createHmacHelper:function(e){return function(t,i){return new p.HMAC.init(e,i).finalize(t)}}});var p=i.algo={};return i}(Math);!function(e){for(var t=x,i=(r=t.lib).WordArray,n=r.Hasher,r=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},l=2,u=0;64>u;){var d;e:{d=l;for(var c=e.sqrt(d),p=2;p<=c;p++)if(!(d%p)){d=!1;break e}d=!0}d&&(8>u&&(o[u]=s(e.pow(l,.5))),a[u]=s(e.pow(l,1/3)),u++),l++}var h=[];r=r.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(e,t){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],s=i[3],l=i[4],u=i[5],d=i[6],c=i[7],p=0;64>p;p++){if(16>p)h[p]=0|e[t+p];else{var f=h[p-15],m=h[p-2];h[p]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+h[p-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+h[p-16]}f=c+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&d)+a[p]+h[p],m=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&r^n&o^r&o),c=d,d=u,u=l,l=s+f|0,s=o,o=r,r=n,n=f+m|0}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+s|0,i[4]=i[4]+l|0,i[5]=i[5]+u|0,i[6]=i[6]+d|0,i[7]=i[7]+c|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return i[r>>>5]|=128<<24-r%32,i[14+(r+64>>>9<<4)]=e.floor(n/4294967296),i[15+(r+64>>>9<<4)]=n,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=n._createHelper(r),t.HmacSHA256=n._createHmacHelper(r)}(Math),b=(y=x).enc.Utf8,y.algo.HMAC=y.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=b.parse(t));var i=e.blockSize,n=4*i;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),o=this._iKey=t.clone(),a=r.words,s=o.words,l=0;l<i;l++)a[l]^=1549556828,s[l]^=909522486;r.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}}),S=(w=x).lib.WordArray,w.enc.Base64={stringify:function(e){var t=e.words,i=e.sigBytes,n=this._map;e.clamp(),e=[];for(var r=0;r<i;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a<i;a++)e.push(n.charAt(o>>>6*(3-a)&63));if(t=n.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,i=this._map;(n=i.charAt(64))&&-1!=(n=e.indexOf(n))&&(t=n);for(var n=[],r=0,o=0;o<t;o++)if(o%4){var a=i.indexOf(e.charAt(o-1))<<o%4*2,s=i.indexOf(e.charAt(o))>>>6-o%4*2;n[r>>>2]|=(a|s)<<24-r%4*8,r++}return S.create(n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){function t(e,t,i,n,r,o,a){return((e=e+(t&i|~t&n)+r+a)<<o|e>>>32-o)+t}function i(e,t,i,n,r,o,a){return((e=e+(t&n|i&~n)+r+a)<<o|e>>>32-o)+t}function n(e,t,i,n,r,o,a){return((e=e+(t^i^n)+r+a)<<o|e>>>32-o)+t}function r(e,t,i,n,r,o,a){return((e=e+(i^(t|~n))+r+a)<<o|e>>>32-o)+t}for(var o=x,a=(l=o.lib).WordArray,s=l.Hasher,l=o.algo,u=[],d=0;64>d;d++)u[d]=4294967296*e.abs(e.sin(d+1))|0;l=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var a=0;16>a;a++){var s=e[l=o+a];e[l]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}a=this._hash.words;var l=e[o+0],d=(s=e[o+1],e[o+2]),c=e[o+3],p=e[o+4],h=e[o+5],f=e[o+6],m=e[o+7],g=e[o+8],v=e[o+9],y=e[o+10],b=e[o+11],w=e[o+12],S=e[o+13],T=e[o+14],x=e[o+15],A=t(A=a[0],I=a[1],O=a[2],C=a[3],l,7,u[0]),C=t(C,A,I,O,s,12,u[1]),O=t(O,C,A,I,d,17,u[2]),I=t(I,O,C,A,c,22,u[3]);A=t(A,I,O,C,p,7,u[4]),C=t(C,A,I,O,h,12,u[5]),O=t(O,C,A,I,f,17,u[6]),I=t(I,O,C,A,m,22,u[7]),A=t(A,I,O,C,g,7,u[8]),C=t(C,A,I,O,v,12,u[9]),O=t(O,C,A,I,y,17,u[10]),I=t(I,O,C,A,b,22,u[11]),A=t(A,I,O,C,w,7,u[12]),C=t(C,A,I,O,S,12,u[13]),O=t(O,C,A,I,T,17,u[14]),A=i(A,I=t(I,O,C,A,x,22,u[15]),O,C,s,5,u[16]),C=i(C,A,I,O,f,9,u[17]),O=i(O,C,A,I,b,14,u[18]),I=i(I,O,C,A,l,20,u[19]),A=i(A,I,O,C,h,5,u[20]),C=i(C,A,I,O,y,9,u[21]),O=i(O,C,A,I,x,14,u[22]),I=i(I,O,C,A,p,20,u[23]),A=i(A,I,O,C,v,5,u[24]),C=i(C,A,I,O,T,9,u[25]),O=i(O,C,A,I,c,14,u[26]),I=i(I,O,C,A,g,20,u[27]),A=i(A,I,O,C,S,5,u[28]),C=i(C,A,I,O,d,9,u[29]),O=i(O,C,A,I,m,14,u[30]),A=n(A,I=i(I,O,C,A,w,20,u[31]),O,C,h,4,u[32]),C=n(C,A,I,O,g,11,u[33]),O=n(O,C,A,I,b,16,u[34]),I=n(I,O,C,A,T,23,u[35]),A=n(A,I,O,C,s,4,u[36]),C=n(C,A,I,O,p,11,u[37]),O=n(O,C,A,I,m,16,u[38]),I=n(I,O,C,A,y,23,u[39]),A=n(A,I,O,C,S,4,u[40]),C=n(C,A,I,O,l,11,u[41]),O=n(O,C,A,I,c,16,u[42]),I=n(I,O,C,A,f,23,u[43]),A=n(A,I,O,C,v,4,u[44]),C=n(C,A,I,O,w,11,u[45]),O=n(O,C,A,I,x,16,u[46]),A=r(A,I=n(I,O,C,A,d,23,u[47]),O,C,l,6,u[48]),C=r(C,A,I,O,m,10,u[49]),O=r(O,C,A,I,T,15,u[50]),I=r(I,O,C,A,h,21,u[51]),A=r(A,I,O,C,w,6,u[52]),C=r(C,A,I,O,c,10,u[53]),O=r(O,C,A,I,y,15,u[54]),I=r(I,O,C,A,s,21,u[55]),A=r(A,I,O,C,g,6,u[56]),C=r(C,A,I,O,x,10,u[57]),O=r(O,C,A,I,f,15,u[58]),I=r(I,O,C,A,S,21,u[59]),A=r(A,I,O,C,p,6,u[60]),C=r(C,A,I,O,b,10,u[61]),O=r(O,C,A,I,d,15,u[62]),I=r(I,O,C,A,v,21,u[63]),a[0]=a[0]+A|0,a[1]=a[1]+I|0,a[2]=a[2]+O|0,a[3]=a[3]+C|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;i[r>>>5]|=128<<24-r%32;var o=e.floor(n/4294967296);for(i[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(i.length+1),this._process(),i=(t=this._hash).words,n=0;4>n;n++)r=i[n],i[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return t},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),o.MD5=s._createHelper(l),o.HmacMD5=s._createHmacHelper(l)}(Math),function(){var e,t=x,i=(e=t.lib).Base,n=e.WordArray,r=(e=t.algo).EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var i=(s=this.cfg).hasher.create(),r=n.create(),o=r.words,a=s.keySize,s=s.iterations;o.length<a;){l&&i.update(l);var l=i.update(e).finalize(t);i.reset();for(var u=1;u<s;u++)l=i.finalize(l),i.reset();r.concat(l)}return r.sigBytes=4*a,r}});t.EvpKDF=function(e,t,i){return r.create(i).compute(e,t)}}(),x.lib.Cipher||function(e){var t=(h=x).lib,i=t.Base,n=t.WordArray,r=t.BufferedBlockAlgorithm,o=h.enc.Base64,a=h.algo.EvpKDF,s=t.Cipher=r.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,i){this.cfg=this.cfg.extend(i),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,i,n){return("string"==typeof i?f:p).encrypt(e,t,i,n)},decrypt:function(t,i,n){return("string"==typeof i?f:p).decrypt(e,t,i,n)}}}});t.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=h.mode={},u=function(e,t,i){var n=this._iv;n?this._iv=void 0:n=this._prevBlock;for(var r=0;r<i;r++)e[t+r]^=n[r]},d=(t.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();d.Encryptor=d.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize;u.call(this,e,t,n),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+n)}}),d.Decryptor=d.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize,r=e.slice(t,t+n);i.decryptBlock(e,t),u.call(this,e,t,n),this._prevBlock=r}}),l=l.CBC=d,d=(h.pad={}).Pkcs7={pad:function(e,t){for(var i,r=(i=(i=4*t)-e.sigBytes%i)<<24|i<<16|i<<8|i,o=[],a=0;a<i;a+=4)o.push(r);i=n.create(o,i),e.concat(i)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=s.extend({cfg:s.cfg.extend({mode:l,padding:d}),reset:function(){s.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=t.createEncryptor;else i=t.createDecryptor,this._minBufferSize=1;this._mode=i.call(t,this,e&&e.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var c=t.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),p=(l=(h.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?n.create([1398893684,1701076831]).concat(e).concat(t):t).toString(o)},parse:function(e){var t=(e=o.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var i=n.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return c.create({ciphertext:e,salt:i})}},t.SerializableCipher=i.extend({cfg:i.extend({format:l}),encrypt:function(e,t,i,n){n=this.cfg.extend(n);var r=e.createEncryptor(i,n);return t=r.finalize(t),r=r.cfg,c.create({ciphertext:t,key:i,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,i,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(i,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),h=(h.kdf={}).OpenSSL={execute:function(e,t,i,r){return r||(r=n.random(8)),e=a.create({keySize:t+i}).compute(e,r),i=n.create(e.words.slice(t),4*i),e.sigBytes=4*t,c.create({key:e,iv:i,salt:r})}},f=t.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:h}),encrypt:function(e,t,i,n){return i=(n=this.cfg.extend(n)).kdf.execute(i,e.keySize,e.ivSize),n.iv=i.iv,(e=p.encrypt.call(this,e,t,i.key,n)).mixIn(i),e},decrypt:function(e,t,i,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),i=n.kdf.execute(i,e.keySize,e.ivSize,t.salt),n.iv=i.iv,p.decrypt.call(this,e,t,i.key,n)}})}(),function(){for(var e=x,t=e.lib.BlockCipher,i=e.algo,n=[],r=[],o=[],a=[],s=[],l=[],u=[],d=[],c=[],p=[],h=[],f=0;256>f;f++)h[f]=128>f?f<<1:f<<1^283;var m=0,g=0;for(f=0;256>f;f++){var v=(v=g^g<<1^g<<2^g<<3^g<<4)>>>8^255&v^99;n[m]=v,r[v]=m;var y=h[m],b=h[y],w=h[b],S=257*h[v]^16843008*v;o[m]=S<<24|S>>>8,a[m]=S<<16|S>>>16,s[m]=S<<8|S>>>24,l[m]=S,S=16843009*w^65537*b^257*y^16843008*m,u[v]=S<<24|S>>>8,d[v]=S<<16|S>>>16,c[v]=S<<8|S>>>24,p[v]=S,m?(m=y^h[h[h[w^y]]],g^=h[h[g]]):m=g=1}var T=[0,1,2,4,8,16,32,64,128,27,54];i=i.AES=t.extend({_doReset:function(){for(var e=(i=this._key).words,t=i.sigBytes/4,i=4*((this._nRounds=t+6)+1),r=this._keySchedule=[],o=0;o<i;o++)if(o<t)r[o]=e[o];else{var a=r[o-1];o%t?6<t&&4==o%t&&(a=n[a>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a]):(a=n[(a=a<<8|a>>>24)>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a],a^=T[o/t|0]<<24),r[o]=r[o-t]^a}for(e=this._invKeySchedule=[],t=0;t<i;t++)o=i-t,a=t%4?r[o]:r[o-4],e[t]=4>t||4>=o?a:u[n[a>>>24]]^d[n[a>>>16&255]]^c[n[a>>>8&255]]^p[n[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,a,s,l,n)},decryptBlock:function(e,t){var i=e[t+1];e[t+1]=e[t+3],e[t+3]=i,this._doCryptBlock(e,t,this._invKeySchedule,u,d,c,p,r),i=e[t+1],e[t+1]=e[t+3],e[t+3]=i},_doCryptBlock:function(e,t,i,n,r,o,a,s){for(var l=this._nRounds,u=e[t]^i[0],d=e[t+1]^i[1],c=e[t+2]^i[2],p=e[t+3]^i[3],h=4,f=1;f<l;f++){var m=n[u>>>24]^r[d>>>16&255]^o[c>>>8&255]^a[255&p]^i[h++],g=n[d>>>24]^r[c>>>16&255]^o[p>>>8&255]^a[255&u]^i[h++],v=n[c>>>24]^r[p>>>16&255]^o[u>>>8&255]^a[255&d]^i[h++];p=n[p>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&c]^i[h++],u=m,d=g,c=v}m=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&p])^i[h++],g=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^i[h++],v=(s[c>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^i[h++],p=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^i[h++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=p},keySize:8}),e.AES=t._createHelper(i)}(),x.mode.ECB=((T=x.lib.BlockCipherMode.extend()).Encryptor=T.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),T.Decryptor=T.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),T);var A=x;function C(e){var t,i=[];for(t=0;t<e.length;t+=1)i[t/4|0]|=e[t]<<24-8*t;return A.lib.WordArray.create(i,e.length)}var O=function(){function e(e){var t=e.config;this._config=t,this._iv="0123456789012345",this._allowedKeyEncodings=["hex","utf8","base64","binary"],this._allowedKeyLengths=[128,256],this._allowedModes=["ecb","cbc"],this._defaultOptions={encryptKey:!0,keyEncoding:"utf8",keyLength:256,mode:"cbc"}}return e.prototype.HMACSHA256=function(e){return A.HmacSHA256(e,this._config.secretKey).toString(A.enc.Base64)},e.prototype.SHA256=function(e){return A.SHA256(e).toString(A.enc.Hex)},e.prototype._parseOptions=function(e){var t=e||{};return t.hasOwnProperty("encryptKey")||(t.encryptKey=this._defaultOptions.encryptKey),t.hasOwnProperty("keyEncoding")||(t.keyEncoding=this._defaultOptions.keyEncoding),t.hasOwnProperty("keyLength")||(t.keyLength=this._defaultOptions.keyLength),t.hasOwnProperty("mode")||(t.mode=this._defaultOptions.mode),-1===this._allowedKeyEncodings.indexOf(t.keyEncoding.toLowerCase())&&(t.keyEncoding=this._defaultOptions.keyEncoding),-1===this._allowedKeyLengths.indexOf(parseInt(t.keyLength,10))&&(t.keyLength=this._defaultOptions.keyLength),-1===this._allowedModes.indexOf(t.mode.toLowerCase())&&(t.mode=this._defaultOptions.mode),t},e.prototype._decodeKey=function(e,t){return"base64"===t.keyEncoding?A.enc.Base64.parse(e):"hex"===t.keyEncoding?A.enc.Hex.parse(e):e},e.prototype._getPaddedKey=function(e,t){return e=this._decodeKey(e,t),t.encryptKey?A.enc.Utf8.parse(this.SHA256(e).slice(0,32)):e},e.prototype._getMode=function(e){return"ecb"===e.mode?A.mode.ECB:A.mode.CBC},e.prototype._getIV=function(e){return"cbc"===e.mode?A.enc.Utf8.parse(this._iv):null},e.prototype._getRandomIV=function(){return A.lib.WordArray.random(16)},e.prototype.encrypt=function(e,t,i){return this._config.customEncrypt?this._config.customEncrypt(e):this.pnEncrypt(e,t,i)},e.prototype.decrypt=function(e,t,i){return this._config.customDecrypt?this._config.customDecrypt(e):this.pnDecrypt(e,t,i)},e.prototype.pnEncrypt=function(e,t,i){if(!t&&!this._config.cipherKey)return e;i=this._parseOptions(i);var n=this._getMode(i),r=this._getPaddedKey(t||this._config.cipherKey,i);if(this._config.useRandomIVs){var o=this._getRandomIV(),a=A.AES.encrypt(e,r,{iv:o,mode:n}).ciphertext;return o.clone().concat(a.clone()).toString(A.enc.Base64)}var s=this._getIV(i);return A.AES.encrypt(e,r,{iv:s,mode:n}).ciphertext.toString(A.enc.Base64)||e},e.prototype.pnDecrypt=function(e,t,i){if(!t&&!this._config.cipherKey)return e;i=this._parseOptions(i);var n=this._getMode(i),r=this._getPaddedKey(t||this._config.cipherKey,i);if(this._config.useRandomIVs){var o=C((l=new Uint8ClampedArray(v(e))).slice(0,16)),a=C(l.slice(16));try{var s=A.AES.decrypt({ciphertext:a},r,{iv:o,mode:n}).toString(A.enc.Utf8);return JSON.parse(s)}catch(e){return null}}else{o=this._getIV(i);try{var l=A.enc.Base64.parse(e);return s=A.AES.decrypt({ciphertext:l},r,{iv:o,mode:n}).toString(A.enc.Utf8),JSON.parse(s)}catch(e){return null}}},e}(),I=function(){function e(e){var t=e.timeEndpoint;this._timeEndpoint=t}return e.prototype.onReconnection=function(e){this._reconnectionCallback=e},e.prototype.startPolling=function(){this._timeTimer=setInterval(this._performTimeLoop.bind(this),3e3)},e.prototype.stopPolling=function(){clearInterval(this._timeTimer)},e.prototype._performTimeLoop=function(){var e=this;this._timeEndpoint((function(t){t.error||(clearInterval(e._timeTimer),e._reconnectionCallback())}))},e}(),N=function(){function e(e){var t=e.config;this.hashHistory=[],this._config=t}return e.prototype.getKey=function(e){var t=function(e){var t=0;if(0===e.length)return t;for(var i=0;i<e.length;i+=1)t=(t<<5)-t+e.charCodeAt(i),t&=t;return t}(JSON.stringify(e.payload)).toString(),i=e.publishMetaData.publishTimetoken;return"".concat(i,"-").concat(t)},e.prototype.isDuplicate=function(e){return this.hashHistory.includes(this.getKey(e))},e.prototype.addEntry=function(e){this.hashHistory.length>=this._config.maximumCacheSize&&this.hashHistory.shift(),this.hashHistory.push(this.getKey(e))},e.prototype.clearHistory=function(){this.hashHistory=[]},e}();function E(e){return encodeURIComponent(e).replace(/[!~*'()]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}var R={signPamFromParams:function(e){return function(e){return function(e){var t=[];return Object.keys(e).forEach((function(e){return t.push(e)})),t}(e).sort()}(e).map((function(t){return"".concat(t,"=").concat(E(e[t]))})).join("&")},endsWith:function(e,t){return-1!==e.indexOf(t,this.length-t.length)},createPromise:function(){var e,t;return{promise:new Promise((function(i,n){e=i,t=n})),reject:t,fulfill:e}},encodeString:E},_={PNNetworkUpCategory:"PNNetworkUpCategory",PNNetworkDownCategory:"PNNetworkDownCategory",PNNetworkIssuesCategory:"PNNetworkIssuesCategory",PNTimeoutCategory:"PNTimeoutCategory",PNBadRequestCategory:"PNBadRequestCategory",PNAccessDeniedCategory:"PNAccessDeniedCategory",PNUnknownCategory:"PNUnknownCategory",PNReconnectedCategory:"PNReconnectedCategory",PNConnectedCategory:"PNConnectedCategory",PNRequestMessageCountExceededCategory:"PNRequestMessageCountExceededCategory"},P=function(){function e(e){var t=e.subscribeEndpoint,i=e.leaveEndpoint,n=e.heartbeatEndpoint,r=e.setStateEndpoint,o=e.timeEndpoint,a=e.getFileUrl,s=e.config,l=e.crypto,u=e.listenerManager;this._listenerManager=u,this._config=s,this._leaveEndpoint=i,this._heartbeatEndpoint=n,this._setStateEndpoint=r,this._subscribeEndpoint=t,this._getFileUrl=a,this._crypto=l,this._channels={},this._presenceChannels={},this._heartbeatChannels={},this._heartbeatChannelGroups={},this._channelGroups={},this._presenceChannelGroups={},this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[],this._currentTimetoken=0,this._lastTimetoken=0,this._storedTimetoken=null,this._subscriptionStatusAnnounced=!1,this._isOnline=!0,this._reconnectionManager=new I({timeEndpoint:o}),this._dedupingManager=new N({config:s})}return e.prototype.adaptStateChange=function(e,t){var i=this,n=e.state,r=e.channels,o=void 0===r?[]:r,a=e.channelGroups,s=void 0===a?[]:a;return o.forEach((function(e){e in i._channels&&(i._channels[e].state=n)})),s.forEach((function(e){e in i._channelGroups&&(i._channelGroups[e].state=n)})),this._setStateEndpoint({state:n,channels:o,channelGroups:s},t)},e.prototype.adaptPresenceChange=function(e){var t=this,i=e.connected,n=e.channels,r=void 0===n?[]:n,o=e.channelGroups,a=void 0===o?[]:o;i?(r.forEach((function(e){t._heartbeatChannels[e]={state:{}}})),a.forEach((function(e){t._heartbeatChannelGroups[e]={state:{}}}))):(r.forEach((function(e){e in t._heartbeatChannels&&delete t._heartbeatChannels[e]})),a.forEach((function(e){e in t._heartbeatChannelGroups&&delete t._heartbeatChannelGroups[e]})),!1===this._config.suppressLeaveEvents&&this._leaveEndpoint({channels:r,channelGroups:a},(function(e){t._listenerManager.announceStatus(e)}))),this.reconnect()},e.prototype.adaptSubscribeChange=function(e){var t=this,i=e.timetoken,n=e.channels,r=void 0===n?[]:n,o=e.channelGroups,a=void 0===o?[]:o,s=e.withPresence,l=void 0!==s&&s,u=e.withHeartbeats,d=void 0!==u&&u;this._config.subscribeKey&&""!==this._config.subscribeKey?(i&&(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=i),"0"!==this._currentTimetoken&&0!==this._currentTimetoken&&(this._storedTimetoken=this._currentTimetoken,this._currentTimetoken=0),r.forEach((function(e){t._channels[e]={state:{}},l&&(t._presenceChannels[e]={}),(d||t._config.getHeartbeatInterval())&&(t._heartbeatChannels[e]={}),t._pendingChannelSubscriptions.push(e)})),a.forEach((function(e){t._channelGroups[e]={state:{}},l&&(t._presenceChannelGroups[e]={}),(d||t._config.getHeartbeatInterval())&&(t._heartbeatChannelGroups[e]={}),t._pendingChannelGroupSubscriptions.push(e)})),this._subscriptionStatusAnnounced=!1,this.reconnect()):console&&console.log&&console.log("subscribe key missing; aborting subscribe")},e.prototype.adaptUnsubscribeChange=function(e,t){var i=this,n=e.channels,r=void 0===n?[]:n,o=e.channelGroups,a=void 0===o?[]:o,s=[],l=[];r.forEach((function(e){e in i._channels&&(delete i._channels[e],s.push(e),e in i._heartbeatChannels&&delete i._heartbeatChannels[e]),e in i._presenceChannels&&(delete i._presenceChannels[e],s.push(e))})),a.forEach((function(e){e in i._channelGroups&&(delete i._channelGroups[e],l.push(e),e in i._heartbeatChannelGroups&&delete i._heartbeatChannelGroups[e]),e in i._presenceChannelGroups&&(delete i._presenceChannelGroups[e],l.push(e))})),0===s.length&&0===l.length||(!1!==this._config.suppressLeaveEvents||t||this._leaveEndpoint({channels:s,channelGroups:l},(function(e){e.affectedChannels=s,e.affectedChannelGroups=l,e.currentTimetoken=i._currentTimetoken,e.lastTimetoken=i._lastTimetoken,i._listenerManager.announceStatus(e)})),0===Object.keys(this._channels).length&&0===Object.keys(this._presenceChannels).length&&0===Object.keys(this._channelGroups).length&&0===Object.keys(this._presenceChannelGroups).length&&(this._lastTimetoken=0,this._currentTimetoken=0,this._storedTimetoken=null,this._region=null,this._reconnectionManager.stopPolling()),this.reconnect())},e.prototype.unsubscribeAll=function(e){this.adaptUnsubscribeChange({channels:this.getSubscribedChannels(),channelGroups:this.getSubscribedChannelGroups()},e)},e.prototype.getHeartbeatChannels=function(){return Object.keys(this._heartbeatChannels)},e.prototype.getHeartbeatChannelGroups=function(){return Object.keys(this._heartbeatChannelGroups)},e.prototype.getSubscribedChannels=function(){return Object.keys(this._channels)},e.prototype.getSubscribedChannelGroups=function(){return Object.keys(this._channelGroups)},e.prototype.reconnect=function(){this._startSubscribeLoop(),this._registerHeartbeatTimer()},e.prototype.disconnect=function(){this._stopSubscribeLoop(),this._stopHeartbeatTimer(),this._reconnectionManager.stopPolling()},e.prototype._registerHeartbeatTimer=function(){this._stopHeartbeatTimer(),0!==this._config.getHeartbeatInterval()&&void 0!==this._config.getHeartbeatInterval()&&(this._performHeartbeatLoop(),this._heartbeatTimer=setInterval(this._performHeartbeatLoop.bind(this),1e3*this._config.getHeartbeatInterval()))},e.prototype._stopHeartbeatTimer=function(){this._heartbeatTimer&&(clearInterval(this._heartbeatTimer),this._heartbeatTimer=null)},e.prototype._performHeartbeatLoop=function(){var e=this,t=this.getHeartbeatChannels(),i=this.getHeartbeatChannelGroups(),n={};0===t.length&&0===i.length||(this.getSubscribedChannels().forEach((function(t){var i=e._channels[t].state;Object.keys(i).length&&(n[t]=i)})),this.getSubscribedChannelGroups().forEach((function(t){var i=e._channelGroups[t].state;Object.keys(i).length&&(n[t]=i)})),this._heartbeatEndpoint({channels:t,channelGroups:i,state:n},function(t){t.error&&e._config.announceFailedHeartbeats&&e._listenerManager.announceStatus(t),t.error&&e._config.autoNetworkDetection&&e._isOnline&&(e._isOnline=!1,e.disconnect(),e._listenerManager.announceNetworkDown(),e.reconnect()),!t.error&&e._config.announceSuccessfulHeartbeats&&e._listenerManager.announceStatus(t)}.bind(this)))},e.prototype._startSubscribeLoop=function(){var e=this;this._stopSubscribeLoop();var t={},i=[],n=[];if(Object.keys(this._channels).forEach((function(n){var r=e._channels[n].state;Object.keys(r).length&&(t[n]=r),i.push(n)})),Object.keys(this._presenceChannels).forEach((function(e){i.push("".concat(e,"-pnpres"))})),Object.keys(this._channelGroups).forEach((function(i){var r=e._channelGroups[i].state;Object.keys(r).length&&(t[i]=r),n.push(i)})),Object.keys(this._presenceChannelGroups).forEach((function(e){n.push("".concat(e,"-pnpres"))})),0!==i.length||0!==n.length){var r={channels:i,channelGroups:n,state:t,timetoken:this._currentTimetoken,filterExpression:this._config.filterExpression,region:this._region};this._subscribeCall=this._subscribeEndpoint(r,this._processSubscribeResponse.bind(this))}},e.prototype._processSubscribeResponse=function(e,t){var i=this;if(e.error){if(e.errorData&&"Aborted"===e.errorData.message)return;e.category===_.PNTimeoutCategory?this._startSubscribeLoop():e.category===_.PNNetworkIssuesCategory?(this.disconnect(),e.error&&this._config.autoNetworkDetection&&this._isOnline&&(this._isOnline=!1,this._listenerManager.announceNetworkDown()),this._reconnectionManager.onReconnection((function(){i._config.autoNetworkDetection&&!i._isOnline&&(i._isOnline=!0,i._listenerManager.announceNetworkUp()),i.reconnect(),i._subscriptionStatusAnnounced=!0;var t={category:_.PNReconnectedCategory,operation:e.operation,lastTimetoken:i._lastTimetoken,currentTimetoken:i._currentTimetoken};i._listenerManager.announceStatus(t)})),this._reconnectionManager.startPolling(),this._listenerManager.announceStatus(e)):e.category===_.PNBadRequestCategory?(this._stopHeartbeatTimer(),this._listenerManager.announceStatus(e)):this._listenerManager.announceStatus(e)}else{if(this._storedTimetoken?(this._currentTimetoken=this._storedTimetoken,this._storedTimetoken=null):(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=t.metadata.timetoken),!this._subscriptionStatusAnnounced){var o={};o.category=_.PNConnectedCategory,o.operation=e.operation,o.affectedChannels=this._pendingChannelSubscriptions,o.subscribedChannels=this.getSubscribedChannels(),o.affectedChannelGroups=this._pendingChannelGroupSubscriptions,o.lastTimetoken=this._lastTimetoken,o.currentTimetoken=this._currentTimetoken,this._subscriptionStatusAnnounced=!0,this._listenerManager.announceStatus(o),this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[]}var a=t.messages||[],s=this._config,l=s.requestMessageCountThreshold,u=s.dedupeOnSubscribe;if(l&&a.length>=l){var d={};d.category=_.PNRequestMessageCountExceededCategory,d.operation=e.operation,this._listenerManager.announceStatus(d)}a.forEach((function(e){var t=e.channel,o=e.subscriptionMatch,a=e.publishMetaData;if(t===o&&(o=null),u){if(i._dedupingManager.isDuplicate(e))return;i._dedupingManager.addEntry(e)}if(R.endsWith(e.channel,"-pnpres"))(m={channel:null,subscription:null}).actualChannel=null!=o?t:null,m.subscribedChannel=null!=o?o:t,t&&(m.channel=t.substring(0,t.lastIndexOf("-pnpres"))),o&&(m.subscription=o.substring(0,o.lastIndexOf("-pnpres"))),m.action=e.payload.action,m.state=e.payload.data,m.timetoken=a.publishTimetoken,m.occupancy=e.payload.occupancy,m.uuid=e.payload.uuid,m.timestamp=e.payload.timestamp,e.payload.join&&(m.join=e.payload.join),e.payload.leave&&(m.leave=e.payload.leave),e.payload.timeout&&(m.timeout=e.payload.timeout),i._listenerManager.announcePresence(m);else if(1===e.messageType)(m={channel:null,subscription:null}).channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId,e.userMetadata&&(m.userMetadata=e.userMetadata),m.message=e.payload,i._listenerManager.announceSignal(m);else if(2===e.messageType){if((m={channel:null,subscription:null}).channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId,e.userMetadata&&(m.userMetadata=e.userMetadata),m.message={event:e.payload.event,type:e.payload.type,data:e.payload.data},i._listenerManager.announceObjects(m),"uuid"===e.payload.type){var s=i._renameChannelField(m);i._listenerManager.announceUser(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),type:"user"})}))}else if("channel"===e.payload.type)s=i._renameChannelField(m),i._listenerManager.announceSpace(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),type:"space"})}));else if("membership"===e.payload.type){var l=(s=i._renameChannelField(m)).message.data,d=l.uuid,c=l.channel,p=r(l,["uuid","channel"]);p.user=d,p.space=c,i._listenerManager.announceMembership(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),data:p})}))}}else if(3===e.messageType)(m={}).channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId,m.data={messageTimetoken:e.payload.data.messageTimetoken,actionTimetoken:e.payload.data.actionTimetoken,type:e.payload.data.type,uuid:e.issuingClientId,value:e.payload.data.value},m.event=e.payload.event,i._listenerManager.announceMessageAction(m);else if(4===e.messageType){(m={}).channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId;var h=e.payload;if(i._config.cipherKey){var f=i._crypto.decrypt(e.payload);"object"==typeof f&&null!==f&&(h=f)}e.userMetadata&&(m.userMetadata=e.userMetadata),m.message=h.message,m.file={id:h.file.id,name:h.file.name,url:i._getFileUrl({id:h.file.id,name:h.file.name,channel:t})},i._listenerManager.announceFile(m)}else{var m;(m={channel:null,subscription:null}).actualChannel=null!=o?t:null,m.subscribedChannel=null!=o?o:t,m.channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId,e.userMetadata&&(m.userMetadata=e.userMetadata),i._config.cipherKey?m.message=i._crypto.decrypt(e.payload):m.message=e.payload,i._listenerManager.announceMessage(m)}})),this._region=t.metadata.region,this._startSubscribeLoop()}},e.prototype._stopSubscribeLoop=function(){this._subscribeCall&&("function"==typeof this._subscribeCall.abort&&this._subscribeCall.abort(),this._subscribeCall=null)},e.prototype._renameEvent=function(e){return"set"===e?"updated":"removed"},e.prototype._renameChannelField=function(e){var t=e.channel,i=r(e,["channel"]);return i.spaceId=t,i},e}(),M={PNTimeOperation:"PNTimeOperation",PNHistoryOperation:"PNHistoryOperation",PNDeleteMessagesOperation:"PNDeleteMessagesOperation",PNFetchMessagesOperation:"PNFetchMessagesOperation",PNMessageCounts:"PNMessageCountsOperation",PNSubscribeOperation:"PNSubscribeOperation",PNUnsubscribeOperation:"PNUnsubscribeOperation",PNPublishOperation:"PNPublishOperation",PNSignalOperation:"PNSignalOperation",PNAddMessageActionOperation:"PNAddActionOperation",PNRemoveMessageActionOperation:"PNRemoveMessageActionOperation",PNGetMessageActionsOperation:"PNGetMessageActionsOperation",PNCreateUserOperation:"PNCreateUserOperation",PNUpdateUserOperation:"PNUpdateUserOperation",PNDeleteUserOperation:"PNDeleteUserOperation",PNGetUserOperation:"PNGetUsersOperation",PNGetUsersOperation:"PNGetUsersOperation",PNCreateSpaceOperation:"PNCreateSpaceOperation",PNUpdateSpaceOperation:"PNUpdateSpaceOperation",PNDeleteSpaceOperation:"PNDeleteSpaceOperation",PNGetSpaceOperation:"PNGetSpacesOperation",PNGetSpacesOperation:"PNGetSpacesOperation",PNGetMembersOperation:"PNGetMembersOperation",PNUpdateMembersOperation:"PNUpdateMembersOperation",PNGetMembershipsOperation:"PNGetMembershipsOperation",PNUpdateMembershipsOperation:"PNUpdateMembershipsOperation",PNListFilesOperation:"PNListFilesOperation",PNGenerateUploadUrlOperation:"PNGenerateUploadUrlOperation",PNPublishFileOperation:"PNPublishFileOperation",PNGetFileUrlOperation:"PNGetFileUrlOperation",PNDownloadFileOperation:"PNDownloadFileOperation",PNGetAllUUIDMetadataOperation:"PNGetAllUUIDMetadataOperation",PNGetUUIDMetadataOperation:"PNGetUUIDMetadataOperation",PNSetUUIDMetadataOperation:"PNSetUUIDMetadataOperation",PNRemoveUUIDMetadataOperation:"PNRemoveUUIDMetadataOperation",PNGetAllChannelMetadataOperation:"PNGetAllChannelMetadataOperation",PNGetChannelMetadataOperation:"PNGetChannelMetadataOperation",PNSetChannelMetadataOperation:"PNSetChannelMetadataOperation",PNRemoveChannelMetadataOperation:"PNRemoveChannelMetadataOperation",PNSetMembersOperation:"PNSetMembersOperation",PNSetMembershipsOperation:"PNSetMembershipsOperation",PNPushNotificationEnabledChannelsOperation:"PNPushNotificationEnabledChannelsOperation",PNRemoveAllPushNotificationsOperation:"PNRemoveAllPushNotificationsOperation",PNWhereNowOperation:"PNWhereNowOperation",PNSetStateOperation:"PNSetStateOperation",PNHereNowOperation:"PNHereNowOperation",PNGetStateOperation:"PNGetStateOperation",PNHeartbeatOperation:"PNHeartbeatOperation",PNChannelGroupsOperation:"PNChannelGroupsOperation",PNRemoveGroupOperation:"PNRemoveGroupOperation",PNChannelsForGroupOperation:"PNChannelsForGroupOperation",PNAddChannelsToGroupOperation:"PNAddChannelsToGroupOperation",PNRemoveChannelsFromGroupOperation:"PNRemoveChannelsFromGroupOperation",PNAccessManagerGrant:"PNAccessManagerGrant",PNAccessManagerGrantToken:"PNAccessManagerGrantToken",PNAccessManagerAudit:"PNAccessManagerAudit",PNAccessManagerRevokeToken:"PNAccessManagerRevokeToken",PNHandshakeOperation:"PNHandshakeOperation",PNReceiveMessagesOperation:"PNReceiveMessagesOperation"},F=function(){function e(e){this._maximumSamplesCount=100,this._trackedLatencies={},this._latencies={},this._maximumSamplesCount=e.maximumSamplesCount||this._maximumSamplesCount}return e.prototype.operationsLatencyForRequest=function(){var e=this,t={};return Object.keys(this._latencies).forEach((function(i){var n=e._latencies[i],r=e._averageLatency(n);r>0&&(t["l_".concat(i)]=r)})),t},e.prototype.startLatencyMeasure=function(e,t){e!==M.PNSubscribeOperation&&t&&(this._trackedLatencies[t]=Date.now())},e.prototype.stopLatencyMeasure=function(e,t){if(e!==M.PNSubscribeOperation&&t){var i=this._endpointName(e),n=this._latencies[i],r=this._trackedLatencies[t];n||(this._latencies[i]=[],n=this._latencies[i]),n.push(Date.now()-r),n.length>this._maximumSamplesCount&&n.splice(0,n.length-this._maximumSamplesCount),delete this._trackedLatencies[t]}},e.prototype._averageLatency=function(e){return Math.floor(e.reduce((function(e,t){return e+t}),0)/e.length)},e.prototype._endpointName=function(e){var t=null;switch(e){case M.PNPublishOperation:t="pub";break;case M.PNSignalOperation:t="sig";break;case M.PNHistoryOperation:case M.PNFetchMessagesOperation:case M.PNDeleteMessagesOperation:case M.PNMessageCounts:t="hist";break;case M.PNUnsubscribeOperation:case M.PNWhereNowOperation:case M.PNHereNowOperation:case M.PNHeartbeatOperation:case M.PNSetStateOperation:case M.PNGetStateOperation:t="pres";break;case M.PNAddChannelsToGroupOperation:case M.PNRemoveChannelsFromGroupOperation:case M.PNChannelGroupsOperation:case M.PNRemoveGroupOperation:case M.PNChannelsForGroupOperation:t="cg";break;case M.PNPushNotificationEnabledChannelsOperation:case M.PNRemoveAllPushNotificationsOperation:t="push";break;case M.PNCreateUserOperation:case M.PNUpdateUserOperation:case M.PNDeleteUserOperation:case M.PNGetUserOperation:case M.PNGetUsersOperation:case M.PNCreateSpaceOperation:case M.PNUpdateSpaceOperation:case M.PNDeleteSpaceOperation:case M.PNGetSpaceOperation:case M.PNGetSpacesOperation:case M.PNGetMembersOperation:case M.PNUpdateMembersOperation:case M.PNGetMembershipsOperation:case M.PNUpdateMembershipsOperation:t="obj";break;case M.PNAddMessageActionOperation:case M.PNRemoveMessageActionOperation:case M.PNGetMessageActionsOperation:t="msga";break;case M.PNAccessManagerGrant:case M.PNAccessManagerAudit:t="pam";break;case M.PNAccessManagerGrantToken:case M.PNAccessManagerRevokeToken:t="pamv3";break;default:t="time"}return t},e}(),D=function(){function e(e,t,i){this._payload=e,this._setDefaultPayloadStructure(),this.title=t,this.body=i}return Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{set:function(e){this._subtitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{set:function(e){this._body=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"badge",{set:function(e){this._badge=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sound",{set:function(e){this._sound=e},enumerable:!1,configurable:!0}),e.prototype._setDefaultPayloadStructure=function(){},e.prototype.toObject=function(){return{}},e}(),k=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"configurations",{set:function(e){e&&e.length&&(this._configurations=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notification",{get:function(){return this._payload.aps},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.aps.alert.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){e&&e.length&&(this._payload.aps.alert.subtitle=e,this._subtitle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"body",{get:function(){return this._body},set:function(e){e&&e.length&&(this._payload.aps.alert.body=e,this._body=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"badge",{get:function(){return this._badge},set:function(e){null!=e&&(this._payload.aps.badge=e,this._badge=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sound",{get:function(){return this._sound},set:function(e){e&&e.length&&(this._payload.aps.sound=e,this._sound=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),i.prototype._setDefaultPayloadStructure=function(){this._payload.aps={alert:{}}},i.prototype.toObject=function(){var e=this,t=n({},this._payload),i=t.aps,r=i.alert;if(this._isSilent&&(i["content-available"]=1),"apns2"===this._apnsPushType){if(!this._configurations||!this._configurations.length)throw new ReferenceError("APNS2 configuration is missing");var o=[];this._configurations.forEach((function(t){o.push(e._objectFromAPNS2Configuration(t))})),o.length&&(t.pn_push=o)}return r&&Object.keys(r).length||delete i.alert,this._isSilent&&(delete i.alert,delete i.badge,delete i.sound,r={}),this._isSilent||Object.keys(r).length?t:null},i.prototype._objectFromAPNS2Configuration=function(e){var t=this;if(!e.targets||!e.targets.length)throw new ReferenceError("At least one APNS2 target should be provided");var i=[];e.targets.forEach((function(e){i.push(t._objectFromAPNSTarget(e))}));var n=e.collapseId,r=e.expirationDate,o={auth_method:"token",targets:i,version:"v2"};return n&&n.length&&(o.collapse_id=n),r&&(o.expiration=r.toISOString()),o},i.prototype._objectFromAPNSTarget=function(e){if(!e.topic||!e.topic.length)throw new TypeError("Target 'topic' undefined.");var t=e.topic,i=e.environment,n=void 0===i?"development":i,r=e.excludedDevices,o=void 0===r?[]:r,a={topic:t,environment:n};return o.length&&(a.excluded_devices=o),a},i}(D),U=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"backContent",{get:function(){return this._backContent},set:function(e){e&&e.length&&(this._payload.back_content=e,this._backContent=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"backTitle",{get:function(){return this._backTitle},set:function(e){e&&e.length&&(this._payload.back_title=e,this._backTitle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"count",{get:function(){return this._count},set:function(e){null!=e&&(this._payload.count=e,this._count=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this._type},set:function(e){e&&e.length&&(this._payload.type=e,this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"subtitle",{get:function(){return this.backTitle},set:function(e){this.backTitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"body",{get:function(){return this.backContent},set:function(e){this.backContent=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"badge",{get:function(){return this.count},set:function(e){this.count=e},enumerable:!1,configurable:!0}),i.prototype.toObject=function(){return Object.keys(this._payload).length?n({},this._payload):null},i}(D),L=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"notification",{get:function(){return this._payload.notification},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this._payload.data},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.notification.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"body",{get:function(){return this._body},set:function(e){e&&e.length&&(this._payload.notification.body=e,this._body=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sound",{get:function(){return this._sound},set:function(e){e&&e.length&&(this._payload.notification.sound=e,this._sound=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"icon",{get:function(){return this._icon},set:function(e){e&&e.length&&(this._payload.notification.icon=e,this._icon=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tag",{get:function(){return this._tag},set:function(e){e&&e.length&&(this._payload.notification.tag=e,this._tag=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),i.prototype._setDefaultPayloadStructure=function(){this._payload.notification={},this._payload.data={}},i.prototype.toObject=function(){var e=n({},this._payload.data),t=null,i={};if(Object.keys(this._payload).length>2){var o=this._payload;o.notification,o.data;var a=r(o,["notification","data"]);e=n(n({},e),a)}return this._isSilent?e.notification=this._payload.notification:t=this._payload.notification,Object.keys(e).length&&(i.data=e),t&&Object.keys(t).length&&(i.notification=t),Object.keys(i).length?i:null},i}(D),B=function(){function e(e,t){this._payload={apns:{},mpns:{},fcm:{}},this._title=e,this._body=t,this.apns=new k(this._payload.apns,e,t),this.mpns=new U(this._payload.mpns,e,t),this.fcm=new L(this._payload.fcm,e,t)}return Object.defineProperty(e.prototype,"debugging",{set:function(e){this._debugging=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){this._subtitle=e,this.apns.subtitle=e,this.mpns.subtitle=e,this.fcm.subtitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"badge",{get:function(){return this._badge},set:function(e){this._badge=e,this.apns.badge=e,this.mpns.badge=e,this.fcm.badge=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sound",{get:function(){return this._sound},set:function(e){this._sound=e,this.apns.sound=e,this.mpns.sound=e,this.fcm.sound=e},enumerable:!1,configurable:!0}),e.prototype.buildPayload=function(e){var t={};if(e.includes("apns")||e.includes("apns2")){this.apns._apnsPushType=e.includes("apns")?"apns":"apns2";var i=this.apns.toObject();i&&Object.keys(i).length&&(t.pn_apns=i)}if(e.includes("mpns")){var n=this.mpns.toObject();n&&Object.keys(n).length&&(t.pn_mpns=n)}if(e.includes("fcm")){var r=this.fcm.toObject();r&&Object.keys(r).length&&(t.pn_gcm=r)}return Object.keys(t).length&&this._debugging&&(t.pn_debug=!0),t},e}(),q=function(){function e(){this._listeners=[]}return e.prototype.addListener=function(e){this._listeners.push(e)},e.prototype.removeListener=function(e){var t=[];this._listeners.forEach((function(i){i!==e&&t.push(i)})),this._listeners=t},e.prototype.removeAllListeners=function(){this._listeners=[]},e.prototype.announcePresence=function(e){this._listeners.forEach((function(t){t.presence&&t.presence(e)}))},e.prototype.announceStatus=function(e){this._listeners.forEach((function(t){t.status&&t.status(e)}))},e.prototype.announceMessage=function(e){this._listeners.forEach((function(t){t.message&&t.message(e)}))},e.prototype.announceSignal=function(e){this._listeners.forEach((function(t){t.signal&&t.signal(e)}))},e.prototype.announceMessageAction=function(e){this._listeners.forEach((function(t){t.messageAction&&t.messageAction(e)}))},e.prototype.announceFile=function(e){this._listeners.forEach((function(t){t.file&&t.file(e)}))},e.prototype.announceObjects=function(e){this._listeners.forEach((function(t){t.objects&&t.objects(e)}))},e.prototype.announceUser=function(e){this._listeners.forEach((function(t){t.user&&t.user(e)}))},e.prototype.announceSpace=function(e){this._listeners.forEach((function(t){t.space&&t.space(e)}))},e.prototype.announceMembership=function(e){this._listeners.forEach((function(t){t.membership&&t.membership(e)}))},e.prototype.announceNetworkUp=function(){var e={};e.category=_.PNNetworkUpCategory,this.announceStatus(e)},e.prototype.announceNetworkDown=function(){var e={};e.category=_.PNNetworkDownCategory,this.announceStatus(e)},e}(),J=function(){function e(e,t){this._config=e,this._cbor=t}return e.prototype.setToken=function(e){e&&e.length>0?this._token=e:this._token=void 0},e.prototype.getToken=function(){return this._token},e.prototype.extractPermissions=function(e){var t={read:!1,write:!1,manage:!1,delete:!1,get:!1,update:!1,join:!1};return 128==(128&e)&&(t.join=!0),64==(64&e)&&(t.update=!0),32==(32&e)&&(t.get=!0),8==(8&e)&&(t.delete=!0),4==(4&e)&&(t.manage=!0),2==(2&e)&&(t.write=!0),1==(1&e)&&(t.read=!0),t},e.prototype.parseToken=function(e){var t=this,i=this._cbor.decodeToken(e);if(void 0!==i){var n=i.res.uuid?Object.keys(i.res.uuid):[],r=Object.keys(i.res.chan),o=Object.keys(i.res.grp),a=i.pat.uuid?Object.keys(i.pat.uuid):[],s=Object.keys(i.pat.chan),l=Object.keys(i.pat.grp),u={version:i.v,timestamp:i.t,ttl:i.ttl,authorized_uuid:i.uuid},d=n.length>0,c=r.length>0,p=o.length>0;(d||c||p)&&(u.resources={},d&&(u.resources.uuids={},n.forEach((function(e){u.resources.uuids[e]=t.extractPermissions(i.res.uuid[e])}))),c&&(u.resources.channels={},r.forEach((function(e){u.resources.channels[e]=t.extractPermissions(i.res.chan[e])}))),p&&(u.resources.groups={},o.forEach((function(e){u.resources.groups[e]=t.extractPermissions(i.res.grp[e])}))));var h=a.length>0,f=s.length>0,m=l.length>0;return(h||f||m)&&(u.patterns={},h&&(u.patterns.uuids={},a.forEach((function(e){u.patterns.uuids[e]=t.extractPermissions(i.pat.uuid[e])}))),f&&(u.patterns.channels={},s.forEach((function(e){u.patterns.channels[e]=t.extractPermissions(i.pat.chan[e])}))),m&&(u.patterns.groups={},l.forEach((function(e){u.patterns.groups[e]=t.extractPermissions(i.pat.grp[e])})))),Object.keys(i.meta).length>0&&(u.meta=i.meta),u.signature=i.sig,u}},e}(),j=function(e){function i(t,i){var n=this.constructor,r=e.call(this,t)||this;return r.name=r.constructor.name,r.status=i,r.message=t,Object.setPrototypeOf(r,n.prototype),r}return t(i,e),i}(Error);function H(e){return(t={message:e}).type="validationError",t.error=!0,t;var t}function G(e,t,i){return e.usePost&&e.usePost(t,i)?e.postURL(t,i):e.usePatch&&e.usePatch(t,i)?e.patchURL(t,i):e.useGetFile&&e.useGetFile(t,i)?e.getFileURL(t,i):e.getURL(t,i)}function z(e){if(e.sdkName)return e.sdkName;var t="PubNub-JS-".concat(e.sdkFamily);e.partnerId&&(t+="-".concat(e.partnerId)),t+="/".concat(e.getVersion());var i=e._getPnsdkSuffix(" ");return i.length>0&&(t+=i),t}function W(e,t,i){return t.usePost&&t.usePost(e,i)?"POST":t.usePatch&&t.usePatch(e,i)?"PATCH":t.useDelete&&t.useDelete(e,i)?"DELETE":t.useGetFile&&t.useGetFile(e,i)?"GETFILE":"GET"}function V(e,t,i,n,r){var o=e.config,a=e.crypto,s=W(e,r,n);i.timestamp=Math.floor((new Date).getTime()/1e3),"PNPublishOperation"===r.getOperation()&&r.usePost&&r.usePost(e,n)&&(s="GET"),"GETFILE"===s&&(s="GET");var l="".concat(s,"\n").concat(o.publishKey,"\n").concat(t,"\n").concat(R.signPamFromParams(i),"\n");if("POST"===s)l+="string"==typeof(u=r.postPayload(e,n))?u:JSON.stringify(u);else if("PATCH"===s){var u;l+="string"==typeof(u=r.patchPayload(e,n))?u:JSON.stringify(u)}var d="v2.".concat(a.HMACSHA256(l));d=(d=(d=d.replace(/\+/g,"-")).replace(/\//g,"_")).replace(/=+$/,""),i.signature=d}function Q(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var o=e.networking,a=e.config,s=e.telemetryManager,l=e.tokenManager,u=m(),d=null,c=null,p={};t.getOperation()===M.PNTimeOperation||t.getOperation()===M.PNChannelGroupsOperation?d=i[0]:(p=i[0],d=i[1]),"undefined"==typeof Promise||d||(c=R.createPromise());var h=t.validateParams(e,p);if(h)return d?d(H(h)):c?(c.reject(new j("Validation failed, check status for details",H(h))),c.promise):void 0;var f,g=t.prepareParams(e,p),v=G(t,e,p),y={url:v,operation:t.getOperation(),timeout:t.getRequestTimeout(e),headers:t.getRequestHeaders?t.getRequestHeaders():{},ignoreBody:"function"==typeof t.ignoreBody&&t.ignoreBody(e),forceBuffered:"function"==typeof t.forceBuffered?t.forceBuffered(e,p):null,abortSignal:"function"==typeof t.getAbortSignal?t.getAbortSignal(e,p):null};g.uuid=a.UUID,g.pnsdk=z(a);var b=s.operationsLatencyForRequest();if(Object.keys(b).length&&(g=n(n({},g),b)),a.useInstanceId&&(g.instanceid=a.instanceId),a.useRequestId&&(g.requestid=u),t.isAuthSupported()){var w=l.getToken()||a.getAuthKey();w&&(g.auth=w)}a.secretKey&&V(e,v,g,p,t);var S=function(i,n){if(i.error)return t.handleError&&t.handleError(e,p,i),void(d?d(i):c&&c.reject(new j("PubNub call failed, check status for details",i)));s.stopLatencyMeasure(t.getOperation(),u);var r=t.handleResponse(e,n,p);"function"!=typeof(null==r?void 0:r.then)&&(r=Promise.resolve(r)),r.then((function(e){d?d(i,e):c&&c.fulfill(e)})).catch((function(e){if(d){var i=e;t.getOperation()===M.PNSubscribeOperation&&(i={statusCode:400,error:!0,operation:t.getOperation(),errorData:e,category:_.PNUnknownCategory}),d(i,null)}else c&&c.reject(new j("PubNub call failed, check status for details",e))}))};if(s.startLatencyMeasure(t.getOperation(),u),"POST"===W(e,t,p)){var T=t.postPayload(e,p);f=o.POST(g,T,y,S)}else"PATCH"===W(e,t,p)?(T=t.patchPayload(e,p),f=o.PATCH(g,T,y,S)):f="DELETE"===W(e,t,p)?o.DELETE(g,y,S):"GETFILE"===W(e,t,p)?o.GETFILE(g,y,S):o.GET(g,y,S);return t.getOperation()===M.PNSubscribeOperation?f:c?c.promise:void 0}var K=Object.freeze({__proto__:null,getOperation:function(){return M.PNAddChannelsToGroupOperation},validateParams:function(e,t){var i=t.channels,n=t.channelGroup,r=e.config;return n?i&&0!==i.length?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels;return{add:(void 0===i?[]:i).join(",")}},handleResponse:function(){return{}}}),X=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveChannelsFromGroupOperation},validateParams:function(e,t){var i=t.channels,n=t.channelGroup,r=e.config;return n?i&&0!==i.length?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels;return{remove:(void 0===i?[]:i).join(",")}},handleResponse:function(){return{}}}),$=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveGroupOperation},validateParams:function(e,t){var i=t.channelGroup,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(R.encodeString(i),"/remove")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},handleResponse:function(){return{}}}),Y=Object.freeze({__proto__:null,getOperation:function(){return M.PNChannelGroupsOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v1/channel-registration/sub-key/".concat(t.subscribeKey,"/channel-group")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{groups:t.payload.groups}}}),Z=Object.freeze({__proto__:null,getOperation:function(){return M.PNChannelsForGroupOperation},validateParams:function(e,t){var i=t.channelGroup,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{channels:t.payload.channels}}}),ee=Object.freeze({__proto__:null,getOperation:function(){return M.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,r=t.channels,o=t.topic,a=e.config;return i?n?"apns2"!==n||o?r&&0!==r.length?a.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var i=t.device,n=t.pushGateway,r=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,r=t.channels,o=void 0===r?[]:r,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:i,add:o.join(",")};return"apns2"===i&&delete(u=n(n({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),te=Object.freeze({__proto__:null,getOperation:function(){return M.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,r=t.channels,o=t.topic,a=e.config;return i?n?"apns2"!==n||o?r&&0!==r.length?a.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var i=t.device,n=t.pushGateway,r=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,r=t.channels,o=void 0===r?[]:r,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:i,remove:o.join(",")};return"apns2"===i&&delete(u=n(n({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),ie=Object.freeze({__proto__:null,getOperation:function(){return M.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,r=t.topic,o=e.config;return i?n?"apns2"!==n||r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var i=t.device,n=t.pushGateway,r=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,r=t.environment,o=void 0===r?"development":r,a=t.topic,s={type:i};return"apns2"===i&&delete(s=n(n({},s),{environment:o,topic:a})).type,s},handleResponse:function(e,t){return{channels:t}}}),ne=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveAllPushNotificationsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,r=t.topic,o=e.config;return i?n?"apns2"!==n||r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var i=t.device,n=t.pushGateway,r=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(i,"/remove"):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(i,"/remove")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,r=t.environment,o=void 0===r?"development":r,a=t.topic,s={type:i};return"apns2"===i&&delete(s=n(n({},s),{environment:o,topic:a})).type,s},handleResponse:function(){return{}}}),re=Object.freeze({__proto__:null,getOperation:function(){return M.PNUnsubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(o),"/leave")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,r={};return n.length>0&&(r["channel-group"]=n.join(",")),r},handleResponse:function(){return{}}}),oe=Object.freeze({__proto__:null,getOperation:function(){return M.PNWhereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.uuid,r=void 0===n?i.UUID:n;return"/v2/presence/sub-key/".concat(i.subscribeKey,"/uuid/").concat(R.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return t.payload?{channels:t.payload.channels}:{channels:[]}}}),ae=Object.freeze({__proto__:null,getOperation:function(){return M.PNHeartbeatOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(o),"/heartbeat")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,r=t.state,o=void 0===r?{}:r,a=e.config,s={};return n.length>0&&(s["channel-group"]=n.join(",")),s.state=JSON.stringify(o),s.heartbeat=a.getPresenceTimeout(),s},handleResponse:function(){return{}}}),se=Object.freeze({__proto__:null,getOperation:function(){return M.PNGetStateOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.uuid,r=void 0===n?i.UUID:n,o=t.channels,a=void 0===o?[]:o,s=a.length>0?a.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(s),"/uuid/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,r={};return n.length>0&&(r["channel-group"]=n.join(",")),r},handleResponse:function(e,t,i){var n=i.channels,r=void 0===n?[]:n,o=i.channelGroups,a=void 0===o?[]:o,s={};return 1===r.length&&0===a.length?s[r[0]]=t.payload:s=t.payload,{channels:s}}}),le=Object.freeze({__proto__:null,getOperation:function(){return M.PNSetStateOperation},validateParams:function(e,t){var i=e.config,n=t.state,r=t.channels,o=void 0===r?[]:r,a=t.channelGroups,s=void 0===a?[]:a;return n?i.subscribeKey?0===o.length&&0===s.length?"Please provide a list of channels and/or channel-groups":void 0:"Missing Subscribe Key":"Missing State"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(o),"/uuid/").concat(R.encodeString(i.UUID),"/data")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.state,n=t.channelGroups,r=void 0===n?[]:n,o={};return o.state=JSON.stringify(i),r.length>0&&(o["channel-group"]=r.join(",")),o},handleResponse:function(e,t){return{state:t.payload}}}),ue=Object.freeze({__proto__:null,getOperation:function(){return M.PNHereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=t.channelGroups,a=void 0===o?[]:o,s="/v2/presence/sub-key/".concat(i.subscribeKey);if(r.length>0||a.length>0){var l=r.length>0?r.join(","):",";s+="/channel/".concat(R.encodeString(l))}return s},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,r=void 0===i?[]:i,o=t.includeUUIDs,a=void 0===o||o,s=t.includeState,l=void 0!==s&&s,u=t.queryParameters,d=void 0===u?{}:u,c={};return a||(c.disable_uuids=1),l&&(c.state=1),r.length>0&&(c["channel-group"]=r.join(",")),n(n({},c),d)},handleResponse:function(e,t,i){var n=i.channels,r=void 0===n?[]:n,o=i.channelGroups,a=void 0===o?[]:o,s=i.includeUUIDs,l=void 0===s||s,u=i.includeState,d=void 0!==u&&u;return r.length>1||a.length>0||0===a.length&&0===r.length?function(){var e={};return e.totalChannels=t.payload.total_channels,e.totalOccupancy=t.payload.total_occupancy,e.channels={},Object.keys(t.payload.channels).forEach((function(i){var n=t.payload.channels[i],r=[];return e.channels[i]={occupants:r,name:i,occupancy:n.occupancy},l&&n.uuids.forEach((function(e){d?r.push({state:e.state,uuid:e.uuid}):r.push({state:null,uuid:e})})),e})),e}():function(){var e={},i=[];return e.totalChannels=1,e.totalOccupancy=t.occupancy,e.channels={},e.channels[r[0]]={occupants:i,name:r[0],occupancy:t.occupancy},l&&t.uuids&&t.uuids.forEach((function(e){d?i.push({state:e.state,uuid:e.uuid}):i.push({state:null,uuid:e})})),e}()},handleError:function(e,t,i){402!==i.statusCode||this.getURL(e,t).includes("channel")||(i.errorData.message="You have tried to perform a Global Here Now operation, your keyset configuration does not support that. Please provide a channel, or enable the Global Here Now feature from the Portal.")}}),de=Object.freeze({__proto__:null,getOperation:function(){return M.PNAddMessageActionOperation},validateParams:function(e,t){var i=e.config,n=t.action,r=t.channel;return t.messageTimetoken?i.subscribeKey?r?n?n.value?n.type?n.type.length>15?"Action.type value exceed maximum length of 15":void 0:"Missing Action.type":"Missing Action.value":"Missing Action":"Missing message channel":"Missing Subscribe Key":"Missing message timetoken"},usePost:function(){return!0},postURL:function(e,t){var i=e.config,n=t.channel,r=t.messageTimetoken;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(n),"/message/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},getRequestHeaders:function(){return{"Content-Type":"application/json"}},isAuthSupported:function(){return!0},prepareParams:function(){return{}},postPayload:function(e,t){return t.action},handleResponse:function(e,t){return{data:t.data}}}),ce=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveMessageActionOperation},validateParams:function(e,t){var i=e.config,n=t.channel,r=t.actionTimetoken;return t.messageTimetoken?r?i.subscribeKey?n?void 0:"Missing message channel":"Missing Subscribe Key":"Missing action timetoken":"Missing message timetoken"},useDelete:function(){return!0},getURL:function(e,t){var i=e.config,n=t.channel,r=t.actionTimetoken,o=t.messageTimetoken;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(n),"/message/").concat(o,"/action/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{data:t.data}}}),pe=Object.freeze({__proto__:null,getOperation:function(){return M.PNGetMessageActionsOperation},validateParams:function(e,t){var i=e.config,n=t.channel;return i.subscribeKey?n?void 0:"Missing message channel":"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channel;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.limit,n=t.start,r=t.end,o={};return i&&(o.limit=i),n&&(o.start=n),r&&(o.end=r),o},handleResponse:function(e,t){var i={data:t.data,start:null,end:null};return i.data.length&&(i.end=i.data[i.data.length-1].actionTimetoken,i.start=i.data[0].actionTimetoken),i}}),he={getOperation:function(){return M.PNListFilesOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"channel can't be empty"},getURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/files")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.limit&&(i.limit=t.limit),t.next&&(i.next=t.next),i},handleResponse:function(e,t){return{status:t.status,data:t.data,next:t.next,count:t.count}}},fe={getOperation:function(){return M.PNGenerateUploadUrlOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.name)?void 0:"name can't be empty":"channel can't be empty"},usePost:function(){return!0},postURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/generate-upload-url")},postPayload:function(e,t){return{name:t.name}},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status,data:t.data,file_upload_request:t.file_upload_request}}},me={getOperation:function(){return M.PNPublishFileOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.fileId)?(null==t?void 0:t.fileName)?void 0:"file name can't be empty":"file id can't be empty":"channel can't be empty"},getURL:function(e,t){var i=e.config,n=i.publishKey,r=i.subscribeKey,o=function(e,t){var i=e.crypto,n=e.config,r=JSON.stringify(t);return n.cipherKey&&(r=i.encrypt(r),r=JSON.stringify(r)),r||""}(e,{message:t.message,file:{name:t.fileName,id:t.fileId}});return"/v1/files/publish-file/".concat(n,"/").concat(r,"/0/").concat(R.encodeString(t.channel),"/0/").concat(R.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.ttl&&(i.ttl=t.ttl),void 0!==t.storeInHistory&&(i.store=t.storeInHistory?"1":"0"),t.meta&&"object"==typeof t.meta&&(i.meta=JSON.stringify(t.meta)),i},handleResponse:function(e,t){return{timetoken:t[2]}}},ge=function(e){var t=function(e){var t=this,i=e.generateUploadUrl,n=e.publishFile,r=e.modules,s=r.PubNubFile,l=r.config,u=r.cryptography,d=r.networking;return function(e){var r=e.channel,c=e.file,p=e.message,h=e.cipherKey,f=e.meta,m=e.ttl,g=e.storeInHistory;return o(t,void 0,void 0,(function(){var e,t,o,v,y,b,w,S,T,x,A,C,O,I,N,E,R,_,P,M,F,D,k,U,L,B,q,J;return a(this,(function(a){switch(a.label){case 0:if(!r)throw new j("Validation failed, check status for details",H("channel can't be empty"));if(!c)throw new j("Validation failed, check status for details",H("file can't be empty"));return e=s.create(c),[4,i({channel:r,name:e.name})];case 1:return t=a.sent(),o=t.file_upload_request,v=o.url,y=o.form_fields,b=t.data,w=b.id,S=b.name,s.supportsEncryptFile&&(null!=h?h:l.cipherKey)?[4,u.encryptFile(null!=h?h:l.cipherKey,e,s)]:[3,3];case 2:e=a.sent(),a.label=3;case 3:T=y,e.mimeType&&(T=y.map((function(t){return"Content-Type"===t.key?{key:t.key,value:e.mimeType}:t}))),a.label=4;case 4:return a.trys.push([4,18,,22]),s.supportsFileUri&&c.uri?(C=(A=d).POSTFILE,O=[v,T],[4,e.toFileUri()]):[3,7];case 5:return[4,C.apply(A,O.concat([a.sent()]))];case 6:return x=a.sent(),[3,17];case 7:return s.supportsFile?(N=(I=d).POSTFILE,E=[v,T],[4,e.toFile()]):[3,10];case 8:return[4,N.apply(I,E.concat([a.sent()]))];case 9:return x=a.sent(),[3,17];case 10:return s.supportsBuffer?(_=(R=d).POSTFILE,P=[v,T],[4,e.toBuffer()]):[3,13];case 11:return[4,_.apply(R,P.concat([a.sent()]))];case 12:return x=a.sent(),[3,17];case 13:return s.supportsBlob?(F=(M=d).POSTFILE,D=[v,T],[4,e.toBlob()]):[3,16];case 14:return[4,F.apply(M,D.concat([a.sent()]))];case 15:return x=a.sent(),[3,17];case 16:throw new Error("Unsupported environment");case 17:return[3,22];case 18:return(k=a.sent()).response?[4,(G=k.response,new Promise((function(e){var t="";G.on("data",(function(e){t+=e.toString("utf8")})),G.on("end",(function(){e(t)}))})))]:[3,20];case 19:throw U=a.sent(),L=/<Message>(.*)<\/Message>/gi.exec(U),new j(L?"Upload to bucket failed: ".concat(L[1]):"Upload to bucket failed.",k);case 20:throw new j("Upload to bucket failed.",k);case 21:return[3,22];case 22:if(204!==x.status)throw new j("Upload to bucket was unsuccessful",x);B=l.fileUploadPublishRetryLimit,q=!1,J={timetoken:"0"},a.label=23;case 23:return a.trys.push([23,25,,26]),[4,n({channel:r,message:p,fileId:w,fileName:S,meta:f,storeInHistory:g,ttl:m})];case 24:return J=a.sent(),q=!0,[3,26];case 25:return a.sent(),B-=1,[3,26];case 26:if(!q&&B>0)return[3,23];a.label=27;case 27:if(q)return[2,{timetoken:J.timetoken,id:w,name:S}];throw new j("Publish failed. You may want to execute that operation manually using pubnub.publishFile",{channel:r,id:w,name:S})}var G}))}))}}(e);return function(e,i){var n=t(e);return"function"==typeof i?(n.then((function(e){return i(null,e)})).catch((function(e){return i(e,null)})),n):n}},ve=function(e,t){var i=t.channel,n=t.id,r=t.name,o=e.config,a=e.networking,s=e.tokenManager;if(!i)throw new j("Validation failed, check status for details",H("channel can't be empty"));if(!n)throw new j("Validation failed, check status for details",H("file id can't be empty"));if(!r)throw new j("Validation failed, check status for details",H("file name can't be empty"));var l="/v1/files/".concat(o.subscribeKey,"/channels/").concat(R.encodeString(i),"/files/").concat(n,"/").concat(r),u={};u.uuid=o.getUUID(),u.pnsdk=z(o);var d=s.getToken()||o.getAuthKey();d&&(u.auth=d),o.secretKey&&V(e,l,u,{},{getOperation:function(){return"PubNubGetFileUrlOperation"}});var c=Object.keys(u).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(u[e]))})).join("&");return""!==c?"".concat(a.getStandardOrigin()).concat(l,"?").concat(c):"".concat(a.getStandardOrigin()).concat(l)},ye={getOperation:function(){return M.PNDownloadFileOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.name)?(null==t?void 0:t.id)?void 0:"id can't be empty":"name can't be empty":"channel can't be empty"},useGetFile:function(){return!0},getFileURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/files/").concat(t.id,"/").concat(t.name)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},ignoreBody:function(){return!0},forceBuffered:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t,i){var n=e.PubNubFile,r=e.config,s=e.cryptography;return o(void 0,void 0,void 0,(function(){var e,o,l,u;return a(this,(function(a){switch(a.label){case 0:return e=t.response.body,n.supportsEncryptFile&&(null!==(o=i.cipherKey)&&void 0!==o?o:r.cipherKey)?[4,s.decrypt(null!==(l=i.cipherKey)&&void 0!==l?l:r.cipherKey,e)]:[3,2];case 1:e=a.sent(),a.label=2;case 2:return[2,n.create({data:e,name:null!==(u=t.response.name)&&void 0!==u?u:i.name,mimeType:t.response.type})]}}))}))}},be={getOperation:function(){return M.PNListFilesOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.id)?(null==t?void 0:t.name)?void 0:"file name can't be empty":"file id can't be empty":"channel can't be empty"},useDelete:function(){return!0},getURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/files/").concat(t.id,"/").concat(t.name)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status}}},we={getOperation:function(){return M.PNGetAllUUIDMetadataOperation},validateParams:function(){},getURL:function(e){var t=e.config;return"/v2/objects/".concat(t.subscribeKey,"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(i=t.include)||void 0===i?void 0:i.customFields)&&p.include.push("custom"),p.include=p.include.join(","),(null===(n=null==t?void 0:t.include)||void 0===n?void 0:n.totalCount)&&(p.count=null===(r=t.include)||void 0===r?void 0:r.totalCount),(null===(o=null==t?void 0:t.page)||void 0===o?void 0:o.next)&&(p.start=null===(a=t.page)||void 0===a?void 0:a.next),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.prev)&&(p.end=null===(u=t.page)||void 0===u?void 0:u.prev),(null==t?void 0:t.filter)&&(p.filter=t.filter),p.limit=null!==(d=null==t?void 0:t.limit)&&void 0!==d?d:100,(null==t?void 0:t.sort)&&(p.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),p},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,next:t.next,prev:t.prev}}},Se={getOperation:function(){return M.PNGetUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r=e.config,o={};return o.uuid=null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:r.getUUID(),o.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&o.include.pop(),o.include=o.include.join(","),o},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Te={getOperation:function(){return M.PNSetUUIDMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.data))return"Data cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=t.uuid)&&void 0!==i?i:n.getUUID()))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r=e.config,o={};return o.uuid=null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:r.getUUID(),o.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&o.include.pop(),o.include=o.include.join(","),o},handleResponse:function(e,t){return{status:t.status,data:t.data}}},xe={getOperation:function(){return M.PNRemoveUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n=e.config;return{uuid:null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ae={getOperation:function(){return M.PNGetAllChannelMetadataOperation},validateParams:function(){},getURL:function(e){var t=e.config;return"/v2/objects/".concat(t.subscribeKey,"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(i=t.include)||void 0===i?void 0:i.customFields)&&p.include.push("custom"),p.include=p.include.join(","),(null===(n=null==t?void 0:t.include)||void 0===n?void 0:n.totalCount)&&(p.count=null===(r=t.include)||void 0===r?void 0:r.totalCount),(null===(o=null==t?void 0:t.page)||void 0===o?void 0:o.next)&&(p.start=null===(a=t.page)||void 0===a?void 0:a.next),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.prev)&&(p.end=null===(u=t.page)||void 0===u?void 0:u.prev),(null==t?void 0:t.filter)&&(p.filter=t.filter),p.limit=null!==(d=null==t?void 0:t.limit)&&void 0!==d?d:100,(null==t?void 0:t.sort)&&(p.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),p},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ce={getOperation:function(){return M.PNGetChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&n.include.pop(),n.include=n.include.join(","),n},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Oe={getOperation:function(){return M.PNSetChannelMetadataOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.data)?void 0:"Data cannot be empty":"Channel cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&n.include.pop(),n.include=n.include.join(","),n},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ie={getOperation:function(){return M.PNRemoveChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ne={getOperation:function(){return M.PNGetMembersOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"UUID cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p,h,f,m={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&m.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customUUIDFields)&&m.include.push("uuid.custom"),(null===(o=null===(r=t.include)||void 0===r?void 0:r.UUIDFields)||void 0===o||o)&&m.include.push("uuid")),m.include=m.include.join(","),(null===(a=null==t?void 0:t.include)||void 0===a?void 0:a.totalCount)&&(m.count=null===(s=t.include)||void 0===s?void 0:s.totalCount),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.next)&&(m.start=null===(d=t.page)||void 0===d?void 0:d.next),(null===(c=null==t?void 0:t.page)||void 0===c?void 0:c.prev)&&(m.end=null===(p=t.page)||void 0===p?void 0:p.prev),(null==t?void 0:t.filter)&&(m.filter=t.filter),m.limit=null!==(h=null==t?void 0:t.limit)&&void 0!==h?h:100,(null==t?void 0:t.sort)&&(m.sort=Object.entries(null!==(f=t.sort)&&void 0!==f?f:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),m},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ee={getOperation:function(){return M.PNSetMembersOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.uuids)&&0!==(null==t?void 0:t.uuids.length)?void 0:"UUIDs cannot be empty":"Channel cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/uuids")},patchPayload:function(e,t){var i;return(i={set:[],delete:[]})[t.type]=t.uuids.map((function(e){return"string"==typeof e?{uuid:{id:e}}:{uuid:{id:e.id},custom:e.custom,status:e.status}})),i},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&p.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customUUIDFields)&&p.include.push("uuid.custom"),(null===(r=t.include)||void 0===r?void 0:r.UUIDFields)&&p.include.push("uuid")),p.include=p.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(p.count=!0),(null===(a=null==t?void 0:t.page)||void 0===a?void 0:a.next)&&(p.start=null===(s=t.page)||void 0===s?void 0:s.next),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.prev)&&(p.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(p.filter=t.filter),null!=t.limit&&(p.limit=t.limit),(null==t?void 0:t.sort)&&(p.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),p},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Re={getOperation:function(){return M.PNGetMembershipsOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()),"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p,h,f={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&f.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customChannelFields)&&f.include.push("channel.custom"),(null===(r=t.include)||void 0===r?void 0:r.channelFields)&&f.include.push("channel")),f.include=f.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(f.count=null===(a=t.include)||void 0===a?void 0:a.totalCount),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.next)&&(f.start=null===(u=t.page)||void 0===u?void 0:u.next),(null===(d=null==t?void 0:t.page)||void 0===d?void 0:d.prev)&&(f.end=null===(c=t.page)||void 0===c?void 0:c.prev),(null==t?void 0:t.filter)&&(f.filter=t.filter),f.limit=null!==(p=null==t?void 0:t.limit)&&void 0!==p?p:100,(null==t?void 0:t.sort)&&(f.sort=Object.entries(null!==(h=t.sort)&&void 0!==h?h:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),f},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},_e={getOperation:function(){return M.PNSetMembershipsOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channels)||0===(null==t?void 0:t.channels.length))return"Channels cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=t.uuid)&&void 0!==i?i:n.getUUID()),"/channels")},patchPayload:function(e,t){var i;return(i={set:[],delete:[]})[t.type]=t.channels.map((function(e){return"string"==typeof e?{channel:{id:e}}:{channel:{id:e.id},custom:e.custom,status:e.status}})),i},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&p.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customChannelFields)&&p.include.push("channel.custom"),(null===(r=t.include)||void 0===r?void 0:r.channelFields)&&p.include.push("channel")),p.include=p.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(p.count=!0),(null===(a=null==t?void 0:t.page)||void 0===a?void 0:a.next)&&(p.start=null===(s=t.page)||void 0===s?void 0:s.next),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.prev)&&(p.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(p.filter=t.filter),null!=t.limit&&(p.limit=t.limit),(null==t?void 0:t.sort)&&(p.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),p},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Pe=Object.freeze({__proto__:null,getOperation:function(){return M.PNAccessManagerAudit},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v2/auth/audit/sub-key/".concat(t.subscribeKey)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e,t){var i=t.channel,n=t.channelGroup,r=t.authKeys,o=void 0===r?[]:r,a={};return i&&(a.channel=i),n&&(a["channel-group"]=n),o.length>0&&(a.auth=o.join(",")),a},handleResponse:function(e,t){return t.payload}}),Me=Object.freeze({__proto__:null,getOperation:function(){return M.PNAccessManagerGrant},validateParams:function(e,t){var i=e.config;return i.subscribeKey?i.publishKey?i.secretKey?null==t.uuids||t.authKeys?null==t.uuids||null==t.channels&&null==t.channelGroups?void 0:"Both channel/channelgroup and uuid cannot be used in the same request":"authKeys are required for grant request on uuids":"Missing Secret Key":"Missing Publish Key":"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v2/auth/grant/sub-key/".concat(t.subscribeKey)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e,t){var i=t.channels,n=void 0===i?[]:i,r=t.channelGroups,o=void 0===r?[]:r,a=t.uuids,s=void 0===a?[]:a,l=t.ttl,u=t.read,d=void 0!==u&&u,c=t.write,p=void 0!==c&&c,h=t.manage,f=void 0!==h&&h,m=t.get,g=void 0!==m&&m,v=t.join,y=void 0!==v&&v,b=t.update,w=void 0!==b&&b,S=t.authKeys,T=void 0===S?[]:S,x=t.delete,A={};return A.r=d?"1":"0",A.w=p?"1":"0",A.m=f?"1":"0",A.d=x?"1":"0",A.g=g?"1":"0",A.j=y?"1":"0",A.u=w?"1":"0",n.length>0&&(A.channel=n.join(",")),o.length>0&&(A["channel-group"]=o.join(",")),T.length>0&&(A.auth=T.join(",")),s.length>0&&(A["target-uuid"]=s.join(",")),(l||0===l)&&(A.ttl=l),A},handleResponse:function(){return{}}});function Fe(e){var t,i,n,r,o=void 0!==(null==e?void 0:e.authorizedUserId),a=void 0!==(null===(t=null==e?void 0:e.resources)||void 0===t?void 0:t.users),s=void 0!==(null===(i=null==e?void 0:e.resources)||void 0===i?void 0:i.spaces),l=void 0!==(null===(n=null==e?void 0:e.patterns)||void 0===n?void 0:n.users),u=void 0!==(null===(r=null==e?void 0:e.patterns)||void 0===r?void 0:r.spaces);return l||a||u||s||o}function De(e){var t=0;return e.join&&(t|=128),e.update&&(t|=64),e.get&&(t|=32),e.delete&&(t|=8),e.manage&&(t|=4),e.write&&(t|=2),e.read&&(t|=1),t}var ke=Object.freeze({__proto__:null,getOperation:function(){return M.PNAccessManagerGrantToken},extractPermissions:De,validateParams:function(e,t){var i,n,r,o,a,s,l=e.config;if(!l.subscribeKey)return"Missing Subscribe Key";if(!l.publishKey)return"Missing Publish Key";if(!l.secretKey)return"Missing Secret Key";if(!t.resources&&!t.patterns)return"Missing either Resources or Patterns.";var u=void 0!==(null==t?void 0:t.authorized_uuid),d=void 0!==(null===(i=null==t?void 0:t.resources)||void 0===i?void 0:i.uuids),c=void 0!==(null===(n=null==t?void 0:t.resources)||void 0===n?void 0:n.channels),p=void 0!==(null===(r=null==t?void 0:t.resources)||void 0===r?void 0:r.groups),h=void 0!==(null===(o=null==t?void 0:t.patterns)||void 0===o?void 0:o.uuids),f=void 0!==(null===(a=null==t?void 0:t.patterns)||void 0===a?void 0:a.channels),m=void 0!==(null===(s=null==t?void 0:t.patterns)||void 0===s?void 0:s.groups),g=u||d||h||c||f||p||m;return Fe(t)&&g?"Cannot mix `users`, `spaces` and `authorizedUserId` with `uuids`, `channels`, `groups` and `authorized_uuid`":(!t.resources||t.resources.uuids&&0!==Object.keys(t.resources.uuids).length||t.resources.channels&&0!==Object.keys(t.resources.channels).length||t.resources.groups&&0!==Object.keys(t.resources.groups).length||t.resources.users&&0!==Object.keys(t.resources.users).length||t.resources.spaces&&0!==Object.keys(t.resources.spaces).length)&&(!t.patterns||t.patterns.uuids&&0!==Object.keys(t.patterns.uuids).length||t.patterns.channels&&0!==Object.keys(t.patterns.channels).length||t.patterns.groups&&0!==Object.keys(t.patterns.groups).length||t.patterns.users&&0!==Object.keys(t.patterns.users).length||t.patterns.spaces&&0!==Object.keys(t.patterns.spaces).length)?void 0:"Missing values for either Resources or Patterns."},postURL:function(e){var t=e.config;return"/v3/pam/".concat(t.subscribeKey,"/grant")},usePost:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(){return{}},postPayload:function(e,t){return function(e,t){if(Fe(t))return function(e,t){var i=t.ttl,n=t.resources,r=t.patterns,o=t.meta,a=t.authorizedUserId,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(n){var l=n.users,u=n.spaces,d=n.groups;l&&Object.keys(l).forEach((function(e){s.permissions.resources.uuids[e]=De(l[e])})),u&&Object.keys(u).forEach((function(e){s.permissions.resources.channels[e]=De(u[e])})),d&&Object.keys(d).forEach((function(e){s.permissions.resources.groups[e]=De(d[e])}))}if(r){var c=r.users,p=r.spaces,h=r.groups;c&&Object.keys(c).forEach((function(e){s.permissions.patterns.uuids[e]=De(c[e])})),p&&Object.keys(p).forEach((function(e){s.permissions.patterns.channels[e]=De(p[e])})),h&&Object.keys(h).forEach((function(e){s.permissions.patterns.groups[e]=De(h[e])}))}return(i||0===i)&&(s.ttl=i),o&&(s.permissions.meta=o),a&&(s.permissions.uuid="".concat(a)),s}(0,t);var i=t.ttl,n=t.resources,r=t.patterns,o=t.meta,a=t.authorized_uuid,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(n){var l=n.uuids,u=n.channels,d=n.groups;l&&Object.keys(l).forEach((function(e){s.permissions.resources.uuids[e]=De(l[e])})),u&&Object.keys(u).forEach((function(e){s.permissions.resources.channels[e]=De(u[e])})),d&&Object.keys(d).forEach((function(e){s.permissions.resources.groups[e]=De(d[e])}))}if(r){var c=r.uuids,p=r.channels,h=r.groups;c&&Object.keys(c).forEach((function(e){s.permissions.patterns.uuids[e]=De(c[e])})),p&&Object.keys(p).forEach((function(e){s.permissions.patterns.channels[e]=De(p[e])})),h&&Object.keys(h).forEach((function(e){s.permissions.patterns.groups[e]=De(h[e])}))}return(i||0===i)&&(s.ttl=i),o&&(s.permissions.meta=o),a&&(s.permissions.uuid="".concat(a)),s}(0,t)},handleResponse:function(e,t){return t.data.token}}),Ue={getOperation:function(){return M.PNAccessManagerRevokeToken},validateParams:function(e,t){return e.config.secretKey?t?void 0:"token can't be empty":"Missing Secret Key"},getURL:function(e,t){var i=e.config;return"/v3/pam/".concat(i.subscribeKey,"/grant/").concat(R.encodeString(t))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e){return{uuid:e.config.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}};function Le(e,t){var i=e.crypto,n=e.config,r=JSON.stringify(t);return n.cipherKey&&(r=i.encrypt(r),r=JSON.stringify(r)),r}var Be=Object.freeze({__proto__:null,getOperation:function(){return M.PNPublishOperation},validateParams:function(e,t){var i=e.config,n=t.message;return t.channel?n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},usePost:function(e,t){var i=t.sendByPost;return void 0!==i&&i},getURL:function(e,t){var i=e.config,n=t.channel,r=Le(e,t.message);return"/publish/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(R.encodeString(n),"/0/").concat(R.encodeString(r))},postURL:function(e,t){var i=e.config,n=t.channel;return"/publish/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(R.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},postPayload:function(e,t){return Le(e,t.message)},prepareParams:function(e,t){var i=t.meta,n=t.replicate,r=void 0===n||n,o=t.storeInHistory,a=t.ttl,s={};return null!=o&&(s.store=o?"1":"0"),a&&(s.ttl=a),!1===r&&(s.norep="true"),i&&"object"==typeof i&&(s.meta=JSON.stringify(i)),s},handleResponse:function(e,t){return{timetoken:t[2]}}}),qe=Object.freeze({__proto__:null,getOperation:function(){return M.PNSignalOperation},validateParams:function(e,t){var i=e.config,n=t.message;return t.channel?n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},getURL:function(e,t){var i,n=e.config,r=t.channel,o=(i=t.message,JSON.stringify(i));return"/signal/".concat(n.publishKey,"/").concat(n.subscribeKey,"/0/").concat(R.encodeString(r),"/0/").concat(R.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{timetoken:t[2]}}});function Je(e,t){var i=e.config,n=e.crypto;if(!i.cipherKey)return t;try{return n.decrypt(t)}catch(e){return t}}var je=Object.freeze({__proto__:null,getOperation:function(){return M.PNHistoryOperation},validateParams:function(e,t){var i=t.channel,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var i=t.channel,n=e.config;return"/v2/history/sub-key/".concat(n.subscribeKey,"/channel/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.start,n=t.end,r=t.reverse,o=t.count,a=void 0===o?100:o,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,d=void 0!==u&&u,c={include_token:"true"};return c.count=a,i&&(c.start=i),n&&(c.end=n),l&&(c.string_message_token="true"),null!=r&&(c.reverse=r.toString()),d&&(c.include_meta="true"),c},handleResponse:function(e,t){var i={messages:[],startTimeToken:t[1],endTimeToken:t[2]};return Array.isArray(t[0])&&t[0].forEach((function(t){var n={timetoken:t.timetoken,entry:Je(e,t.message)};t.meta&&(n.meta=t.meta),i.messages.push(n)})),i}}),He=Object.freeze({__proto__:null,getOperation:function(){return M.PNDeleteMessagesOperation},validateParams:function(e,t){var i=t.channel,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},useDelete:function(){return!0},getURL:function(e,t){var i=t.channel,n=e.config;return"/v3/history/sub-key/".concat(n.subscribeKey,"/channel/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.start,n=t.end,r={};return i&&(r.start=i),n&&(r.end=n),r},handleResponse:function(e,t){return t.payload}}),Ge=Object.freeze({__proto__:null,getOperation:function(){return M.PNMessageCounts},validateParams:function(e,t){var i=t.channels,n=t.timetoken,r=t.channelTimetokens,o=e.config;return i?n&&r?"timetoken and channelTimetokens are incompatible together":n&&r&&r.length>1&&i.length!==r.length?"Length of channelTimetokens and channels do not match":o.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var i=t.channels,n=e.config,r=i.join(",");return"/v3/history/sub-key/".concat(n.subscribeKey,"/message-counts/").concat(R.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.timetoken,n=t.channelTimetokens,r={};if(n&&1===n.length){var o=l(n,1)[0];r.timetoken=o}else n?r.channelsTimetoken=n.join(","):i&&(r.timetoken=i);return r},handleResponse:function(e,t){return{channels:t.channels}}}),ze=Object.freeze({__proto__:null,getOperation:function(){return M.PNFetchMessagesOperation},validateParams:function(e,t){var i=t.channels,n=t.includeMessageActions,r=void 0!==n&&n,o=e.config;if(!i||0===i.length)return"Missing channels";if(!o.subscribeKey)return"Missing Subscribe Key";if(r&&i.length>1)throw new TypeError("History can return actions data for a single channel only. Either pass a single channel or disable the includeMessageActions flag.")},getURL:function(e,t){var i=t.channels,n=void 0===i?[]:i,r=t.includeMessageActions,o=void 0!==r&&r,a=e.config,s=o?"history-with-actions":"history",l=n.length>0?n.join(","):",";return"/v3/".concat(s,"/sub-key/").concat(a.subscribeKey,"/channel/").concat(R.encodeString(l))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels,n=t.start,r=t.end,o=t.includeMessageActions,a=t.count,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,d=void 0!==u&&u,c=t.includeUuid,p=t.includeUUID,h=void 0===p||p,f=t.includeMessageType,m=void 0===f||f,g={};return g.max=a||(i.length>1||!0===o?25:100),n&&(g.start=n),r&&(g.end=r),l&&(g.string_message_token="true"),d&&(g.include_meta="true"),h&&!1!==c&&(g.include_uuid="true"),m&&(g.include_message_type="true"),g},handleResponse:function(e,t){var i={channels:{}};return Object.keys(t.channels||{}).forEach((function(n){i.channels[n]=[],(t.channels[n]||[]).forEach((function(t){var r={};r.channel=n,r.timetoken=t.timetoken,r.message=function(e,t){var i=e.config,n=e.crypto;if(!i.cipherKey)return t;try{return n.decrypt(t)}catch(e){return t}}(e,t.message),r.messageType=t.message_type,r.uuid=t.uuid,t.actions&&(r.actions=t.actions,r.data=t.actions),t.meta&&(r.meta=t.meta),i.channels[n].push(r)}))})),t.more&&(i.more=t.more),i}}),We=Object.freeze({__proto__:null,getOperation:function(){return M.PNTimeOperation},getURL:function(){return"/time/0"},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},isAuthSupported:function(){return!1},handleResponse:function(e,t){return{timetoken:t[0]}},validateParams:function(){}}),Ve=Object.freeze({__proto__:null,getOperation:function(){return M.PNSubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=r.length>0?r.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(R.encodeString(o),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=e.config,n=t.state,r=t.channelGroups,o=void 0===r?[]:r,a=t.timetoken,s=t.filterExpression,l=t.region,u={heartbeat:i.getPresenceTimeout()};return o.length>0&&(u["channel-group"]=o.join(",")),s&&s.length>0&&(u["filter-expr"]=s),Object.keys(n).length&&(u.state=JSON.stringify(n)),a&&(u.tt=a),l&&(u.tr=l),u},handleResponse:function(e,t){var i=[];t.m.forEach((function(e){var t={publishTimetoken:e.p.t,region:e.p.r},n={shard:parseInt(e.a,10),subscriptionMatch:e.b,channel:e.c,messageType:e.e,payload:e.d,flags:e.f,issuingClientId:e.i,subscribeKey:e.k,originationTimetoken:e.o,userMetadata:e.u,publishMetaData:t};i.push(n)}));var n={timetoken:t.t.t,region:t.t.r};return{messages:i,metadata:n}}}),Qe={getOperation:function(){return M.PNHandshakeOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channels)&&!(null==t?void 0:t.channelGroups))return"channels and channleGroups both should not be empty"},getURL:function(e,t){var i=e.config,n=t.channels?t.channels.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(R.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.channelGroups&&t.channelGroups.length>0&&(i["channel-group"]=t.channelGroups.join(",")),i.tt=0,i},handleResponse:function(e,t){return{region:t.t.r,timetoken:t.t.t}}},Ke={getOperation:function(){return M.PNReceiveMessagesOperation},validateParams:function(e,t){return(null==t?void 0:t.channels)||(null==t?void 0:t.channelGroups)?(null==t?void 0:t.timetoken)?(null==t?void 0:t.region)?void 0:"region can not be empty":"timetoken can not be empty":"channels and channleGroups both should not be empty"},getURL:function(e,t){var i=e.config,n=t.channels?t.channels.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(R.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},getAbortSignal:function(e,t){return t.abortSignal},prepareParams:function(e,t){var i={};return t.channelGroups&&t.channelGroups.length>0&&(i["channel-group"]=t.channelGroups.join(",")),i.tt=t.timetoken,i.tr=t.region,i},handleResponse:function(e,t){var i=[];return t.m.forEach((function(e){var t={shard:parseInt(e.a,10),subscriptionMatch:e.b,channel:e.c,messageType:e.e,payload:e.d,flags:e.f,issuingClientId:e.i,subscribeKey:e.k,originationTimetoken:e.o,publishMetaData:{timetoken:e.p.t,region:e.p.r}};i.push(t)})),{messages:i,metadata:{region:t.t.r,timetoken:t.t.t}}}},Xe=function(){function e(e){void 0===e&&(e=!1),this.sync=e,this.listeners=new Set}return e.prototype.subscribe=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.notify=function(e){var t=this,i=function(){t.listeners.forEach((function(t){t(e)}))};this.sync?i():setTimeout(i,0)},e}(),$e=function(){function e(e){this.label=e,this.transitionMap=new Map,this.enterEffects=[],this.exitEffects=[]}return e.prototype.transition=function(e,t){var i;if(this.transitionMap.has(t.type))return null===(i=this.transitionMap.get(t.type))||void 0===i?void 0:i(e,t)},e.prototype.on=function(e,t){return this.transitionMap.set(e,t),this},e.prototype.with=function(e,t){return[this,e,null!=t?t:[]]},e.prototype.onEnter=function(e){return this.enterEffects.push(e),this},e.prototype.onExit=function(e){return this.exitEffects.push(e),this},e}(),Ye=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),i.prototype.describe=function(e){return new $e(e)},i.prototype.start=function(e,t){this.currentState=e,this.currentContext=t,this.notify({type:"engineStarted",state:e,context:t})},i.prototype.transition=function(e){var t,i,n,r,o,a;if(!this.currentState)throw new Error("Start the engine first");this.notify({type:"eventReceived",event:e});var u=this.currentState.transition(this.currentContext,e);if(u){var d=l(u,3),c=d[0],p=d[1],h=d[2];try{for(var f=s(this.currentState.exitEffects),m=f.next();!m.done;m=f.next()){var g=m.value;this.notify({type:"invocationDispatched",invocation:g(this.currentContext)})}}catch(e){t={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(t)throw t.error}}var v=this.currentState;this.currentState=c;var y=this.currentContext;this.currentContext=p,this.notify({type:"transitionDone",fromState:v,fromContext:y,toState:c,toContext:p,event:e});try{for(var b=s(h),w=b.next();!w.done;w=b.next())g=w.value,this.notify({type:"invocationDispatched",invocation:g})}catch(e){n={error:e}}finally{try{w&&!w.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}try{for(var S=s(this.currentState.enterEffects),T=S.next();!T.done;T=S.next())g=T.value,this.notify({type:"invocationDispatched",invocation:g(this.currentContext)})}catch(e){o={error:e}}finally{try{T&&!T.done&&(a=S.return)&&a.call(S)}finally{if(o)throw o.error}}}},i}(Xe),Ze=function(){function e(e){this.dependencies=e,this.instances=new Map,this.handlers=new Map}return e.prototype.on=function(e,t){this.handlers.set(e,t)},e.prototype.dispatch=function(e){if("CANCEL"!==e.type){var t=this.handlers.get(e.type);if(!t)throw new Error("Unhandled invocation '".concat(e.type,"'"));var i=t(e.payload,this.dependencies);e.managed&&this.instances.set(e.type,i),i.start()}else if(this.instances.has(e.payload)){var n=this.instances.get(e.payload);null==n||n.cancel(),this.instances.delete(e.payload)}},e}();function et(e,t){var i=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return{type:e,payload:null==t?void 0:t.apply(void 0,u([],l(i),!1))}};return i.type=e,i}function tt(e,t){var i=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return{type:e,payload:t.apply(void 0,u([],l(i),!1)),managed:!0}};return i.type=e,i.cancel={type:"CANCEL",payload:e,managed:!1},i}var it,nt,rt,ot=function(e){function i(){var t=this.constructor,i=e.call(this,"The operation was aborted.")||this;return i.name="AbortError",Object.setPrototypeOf(i,t.prototype),i}return t(i,e),i}(Error),at=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t._aborted=!1,t}return t(i,e),Object.defineProperty(i.prototype,"aborted",{get:function(){return this._aborted},enumerable:!1,configurable:!0}),i.prototype.throwIfAborted=function(){if(this._aborted)throw new ot},i.prototype.abort=function(){this._aborted=!0,this.notify(new ot)},i}(Xe),st=function(e){function i(t,i,n){var r=e.call(this,t,i)||this;return r.asyncFunction=n,r.abortSignal=new at,r}return t(i,e),i.prototype.start=function(){this.asyncFunction(this.payload,this.abortSignal,this.dependencies)},i.prototype.cancel=function(){this.abortSignal.abort()},i}((function(e,t){this.payload=e,this.dependencies=t})),lt=function(e){return function(t,i){return new st(t,i,e)}},ut=tt("HANDSHAKE",(function(e,t){return{channels:e,groups:t}})),dt=tt("RECEIVE_EVENTS",(function(e,t,i){return{channels:e,groups:t,cursor:i}})),ct=(nt=function(e){return e},rt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{type:it,payload:nt.apply(void 0,u([],l(e),!1)),managed:!1}},rt.type=it="EMIT_EVENTS",rt),pt=tt("RECONNECT",(function(e){return e})),ht=tt("HANDSHAKE_RECONNECT",(function(e){return e})),ft=et("SUBSCRIPTION_CHANGE",(function(e,t){return{channels:e,groups:t}})),mt=et("DISCONNECT",(function(){return{}})),gt=et("RECONNECT",(function(){return{}}));et("RESTORE",(function(e,t,i,n){return{channels:e,groups:t,timetoken:i,region:n}}));var vt=et("HANDSHAKING_SUCCESS",(function(e){return e})),yt=et("HANDSHAKING_FAILURE",(function(e){return e})),bt=et("HANDSHAKING_RECONNECTING_SUCCESS",(function(e){return{cursor:e}})),wt=et("HANDSHAKING_RECONNECTING_FAILURE",(function(e){return e})),St=et("HANDSHAKING_RECONNECTING_GIVEUP",(function(){return{}})),Tt=et("HANDSHAKING_RECONNECTING_RETRY",(function(){return{}})),xt=et("RECEIVING_SUCCESS",(function(e,t){return{cursor:e,events:t}})),At=et("RECEIVING_FAILURE",(function(e){return e})),Ct=et("RECONNECTING_SUCCESS",(function(e,t){return{cursor:e,events:t}})),Ot=et("RECONNECTING_FAILURE",(function(e){return e})),It=et("RECONNECTING_GIVEUP",(function(){return{}})),Nt=et("RECONNECTING_RETRY",(function(){return{}})),Et=function(e){function i(t,i){var n=e.call(this,i)||this;return n.on(ut.type,lt((function(e,i,r){var s=r.handshake;return o(n,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:i.throwIfAborted(),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups})];case 2:return n=o.sent(),t.transition(vt(n)),[3,4];case 3:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof j?[2,t.transition(yt(r))]:[3,4];case 4:return[2]}}))}))}))),n.on(dt.type,lt((function(e,i,r){var s=r.receiveEvents;return o(n,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:i.throwIfAborted(),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region})];case 2:return n=o.sent(),t.transition(xt(n.metadata,n.messages)),[3,4];case 3:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof j?[2,t.transition(At(r))]:[3,4];case 4:return[2]}}))}))}))),n.on(ct.type,lt((function(e,t,i){return i.receiveEvents,o(n,void 0,void 0,(function(){return a(this,(function(t){return e.length>0&&console.log(e),[2]}))}))}))),n.on(pt.type,lt((function(e,i,r){var s=r.receiveEvents,l=r.shouldRetry,u=r.getRetryDelay,d=r.delay;return o(n,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:return l(e.reason,e.attempts)?(i.throwIfAborted(),[4,d(u(e.attempts))]):[2,t.transition(It())];case 1:o.sent(),i.throwIfAborted(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region})];case 3:return n=o.sent(),[2,t.transition(Ct(n.metadata,n.messages))];case 4:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof j?[2,t.transition(Ot(r))]:[3,5];case 5:return[2]}}))}))}))),n.on(ht.type,lt((function(e,i,r){var s=r.handshake,l=r.shouldRetry,u=r.getRetryDelay,d=r.delay;return o(n,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:return l(e.reason,e.attempts)?(i.throwIfAborted(),[4,d(u(e.attempts))]):[2,t.transition(St())];case 1:o.sent(),i.throwIfAborted(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups})];case 3:return n=o.sent(),[2,t.transition(bt(n.metadata))];case 4:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof j?[2,t.transition(wt(r))]:[3,5];case 5:return[2]}}))}))}))),n}return t(i,e),i}(Ze),Rt=new $e("STOPPED");Rt.on(ft.type,(function(e,t){return Rt.with({channels:t.payload.channels,groups:t.payload.groups})})),Rt.on(gt.type,(function(e){return Ut.with(n({},e))}));var _t=new $e("HANDSHAKE_FAILURE");_t.on(Tt.type,(function(e){return kt.with(n(n({},e),{attempts:0}))})),_t.on(mt.type,(function(e){return Rt.with({channels:e.channels,groups:e.groups})}));var Pt=new $e("STOPPED");Pt.on(ft.type,(function(e,t){return Pt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})})),Pt.on(gt.type,(function(e){return Dt.with(n({},e))}));var Mt=new $e("RECEIVE_FAILURE");Mt.on(Nt.type,(function(e){return Ft.with(n(n({},e),{attempts:0}))})),Mt.on(mt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Ft=new $e("RECEIVE_RECONNECTING");Ft.onEnter((function(e){return pt(e)})),Ft.onExit((function(){return pt.cancel})),Ft.on(Ct.type,(function(e,t){return Dt.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[ct(t.payload.events)])})),Ft.on(Ot.type,(function(e,t){return Ft.with(n(n({},e),{attempts:e.attempts+1,reason:t.payload}))})),Ft.on(It.type,(function(e){return Mt.with({groups:e.groups,channels:e.channels,cursor:e.cursor,reason:e.reason})})),Ft.on(mt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Dt=new $e("RECEIVING");Dt.onEnter((function(e){return dt(e.channels,e.groups,e.cursor)})),Dt.onExit((function(){return dt.cancel})),Dt.on(xt.type,(function(e,t){return Dt.with(n(n({},e),{cursor:t.payload.cursor}),[ct(t.payload.events)])})),Dt.on(ft.type,(function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?Lt.with(void 0):Dt.with(n(n({},e),{channels:t.payload.channels,groups:t.payload.groups}))})),Dt.on(At.type,(function(e,t){return Ft.with(n(n({},e),{attempts:0,reason:t.payload}))})),Dt.on(mt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var kt=new $e("HANDSHAKE_RECONNECTING");kt.onEnter((function(e){return ht(e)})),kt.onExit((function(){return pt.cancel})),kt.on(Ct.type,(function(e,t){return Dt.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[ct(t.payload.events)])})),kt.on(Ot.type,(function(e,t){return kt.with(n(n({},e),{attempts:e.attempts+1,reason:t.payload}))})),kt.on(It.type,(function(e){return _t.with({groups:e.groups,channels:e.channels,reason:e.reason})})),kt.on(mt.type,(function(e){return Rt.with({channels:e.channels,groups:e.groups})}));var Ut=new $e("HANDSHAKING");Ut.onEnter((function(e){return ut(e.channels,e.groups)})),Ut.onExit((function(){return ut.cancel})),Ut.on(ft.type,(function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?Lt.with(void 0):Ut.with({channels:t.payload.channels,groups:t.payload.groups})})),Ut.on(vt.type,(function(e,t){return Dt.with({channels:e.channels,groups:e.groups,cursor:t.payload})})),Ut.on(yt.type,(function(e,t){return kt.with(n(n({},e),{attempts:0,reason:t.payload}))})),Ut.on(mt.type,(function(e){return Rt.with({channels:e.channels,groups:e.groups})}));var Lt=new $e("UNSUBSCRIBED");Lt.on(ft.type,(function(e,t){return Ut.with({channels:t.payload.channels,groups:t.payload.groups})}));var Bt=function(){function e(e){var t=this;this.engine=new Ye,this.channels=[],this.groups=[],this.dispatcher=new Et(this.engine,e),this.engine.subscribe((function(e){"invocationDispatched"===e.type&&t.dispatcher.dispatch(e.invocation)})),this.engine.start(Lt,void 0)}return Object.defineProperty(e.prototype,"_engine",{get:function(){return this.engine},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e){var t=e.channels,i=e.groups;this.channels=u(u([],l(this.channels),!1),l(null!=t?t:[]),!1),this.groups=u(u([],l(this.groups),!1),l(null!=i?i:[]),!1),this.engine.transition(ft(this.channels,this.groups))},e.prototype.unsubscribe=function(e){var t=e.channels,i=e.groups;this.channels=this.channels.filter((function(e){var i;return null===(i=!(null==t?void 0:t.includes(e)))||void 0===i||i})),this.groups=this.groups.filter((function(e){var t;return null===(t=!(null==i?void 0:i.includes(e)))||void 0===t||t})),this.engine.transition(ft(this.channels.slice(0),this.groups.slice(0)))},e.prototype.unsubscribeAll=function(){this.channels=[],this.groups=[],this.engine.transition(ft(this.channels.slice(0),this.groups.slice(0)))},e.prototype.reconnect=function(){this.engine.transition(gt())},e.prototype.disconnect=function(){this.engine.transition(mt())},e}(),qt=function(){function e(e){var t=this,i=e.networking,r=e.cbor,o=new g({setup:e});this._config=o;var a=new O({config:o}),s=e.cryptography;i.init(o);var d=new J(o,r);this._tokenManager=d;var c=new F({maximumSamplesCount:6e4});this._telemetryManager=c;var p={config:o,networking:i,crypto:a,cryptography:s,tokenManager:d,telemetryManager:c,PubNubFile:e.PubNubFile};this.File=e.PubNubFile,this.encryptFile=function(e,i){return s.encryptFile(e,i,t.File)},this.decryptFile=function(e,i){return s.decryptFile(e,i,t.File)};var h=Q.bind(this,p,We),f=Q.bind(this,p,re),m=Q.bind(this,p,ae),v=Q.bind(this,p,le),y=Q.bind(this,p,Ve),b=new q;if(this._listenerManager=b,this.iAmHere=Q.bind(this,p,ae),this.iAmAway=Q.bind(this,p,re),this.setPresenceState=Q.bind(this,p,le),this.handshake=Q.bind(this,p,Qe),this.receiveMessages=Q.bind(this,p,Ke),!0===o.enableSubscribeBeta){var w=new Bt({handshake:this.handshake,receiveEvents:this.receiveMessages});this.subscribe=w.subscribe.bind(w),this.unsubscribe=w.unsubscribe.bind(w),this.eventEngine=w}else{var S=new P({timeEndpoint:h,leaveEndpoint:f,heartbeatEndpoint:m,setStateEndpoint:v,subscribeEndpoint:y,crypto:p.crypto,config:p.config,listenerManager:b,getFileUrl:function(e){return ve(p,e)}});this.subscribe=S.adaptSubscribeChange.bind(S),this.unsubscribe=S.adaptUnsubscribeChange.bind(S),this.disconnect=S.disconnect.bind(S),this.reconnect=S.reconnect.bind(S),this.unsubscribeAll=S.unsubscribeAll.bind(S),this.getSubscribedChannels=S.getSubscribedChannels.bind(S),this.getSubscribedChannelGroups=S.getSubscribedChannelGroups.bind(S),this.setState=S.adaptStateChange.bind(S),this.presence=S.adaptPresenceChange.bind(S),this.destroy=function(e){S.unsubscribeAll(e),S.disconnect()}}this.addListener=b.addListener.bind(b),this.removeListener=b.removeListener.bind(b),this.removeAllListeners=b.removeAllListeners.bind(b),this.parseToken=d.parseToken.bind(d),this.setToken=d.setToken.bind(d),this.getToken=d.getToken.bind(d),this.channelGroups={listGroups:Q.bind(this,p,Y),listChannels:Q.bind(this,p,Z),addChannels:Q.bind(this,p,K),removeChannels:Q.bind(this,p,X),deleteGroup:Q.bind(this,p,$)},this.push={addChannels:Q.bind(this,p,ee),removeChannels:Q.bind(this,p,te),deleteDevice:Q.bind(this,p,ne),listChannels:Q.bind(this,p,ie)},this.hereNow=Q.bind(this,p,ue),this.whereNow=Q.bind(this,p,oe),this.getState=Q.bind(this,p,se),this.grant=Q.bind(this,p,Me),this.grantToken=Q.bind(this,p,ke),this.audit=Q.bind(this,p,Pe),this.revokeToken=Q.bind(this,p,Ue),this.publish=Q.bind(this,p,Be),this.fire=function(e,i){return e.replicate=!1,e.storeInHistory=!1,t.publish(e,i)},this.signal=Q.bind(this,p,qe),this.history=Q.bind(this,p,je),this.deleteMessages=Q.bind(this,p,He),this.messageCounts=Q.bind(this,p,Ge),this.fetchMessages=Q.bind(this,p,ze),this.addMessageAction=Q.bind(this,p,de),this.removeMessageAction=Q.bind(this,p,ce),this.getMessageActions=Q.bind(this,p,pe),this.listFiles=Q.bind(this,p,he);var T=Q.bind(this,p,fe);this.publishFile=Q.bind(this,p,me),this.sendFile=ge({generateUploadUrl:T,publishFile:this.publishFile,modules:p}),this.getFileUrl=function(e){return ve(p,e)},this.downloadFile=Q.bind(this,p,ye),this.deleteFile=Q.bind(this,p,be),this.objects={getAllUUIDMetadata:Q.bind(this,p,we),getUUIDMetadata:Q.bind(this,p,Se),setUUIDMetadata:Q.bind(this,p,Te),removeUUIDMetadata:Q.bind(this,p,xe),getAllChannelMetadata:Q.bind(this,p,Ae),getChannelMetadata:Q.bind(this,p,Ce),setChannelMetadata:Q.bind(this,p,Oe),removeChannelMetadata:Q.bind(this,p,Ie),getChannelMembers:Q.bind(this,p,Ne),setChannelMembers:function(e){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return Q.call.apply(Q,u([t,p,Ee,n({type:"set"},e)],l(i),!1))},removeChannelMembers:function(e){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return Q.call.apply(Q,u([t,p,Ee,n({type:"delete"},e)],l(i),!1))},getMemberships:Q.bind(this,p,Re),setMemberships:function(e){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return Q.call.apply(Q,u([t,p,_e,n({type:"set"},e)],l(i),!1))},removeMemberships:function(e){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return Q.call.apply(Q,u([t,p,_e,n({type:"delete"},e)],l(i),!1))}},this.createUser=function(e){return t.objects.setUUIDMetadata({uuid:e.userId,data:e.data,include:e.include})},this.updateUser=this.createUser,this.removeUser=function(e){return t.objects.removeUUIDMetadata({uuid:null==e?void 0:e.userId})},this.fetchUser=function(e){return t.objects.getUUIDMetadata({uuid:null==e?void 0:e.userId,include:null==e?void 0:e.include})},this.fetchUsers=this.objects.getAllUUIDMetadata,this.createSpace=function(e){return t.objects.setChannelMetadata({channel:e.spaceId,data:e.data,include:e.include})},this.updateSpace=this.createSpace,this.removeSpace=function(e){return t.objects.removeChannelMetadata({channel:e.spaceId})},this.fetchSpace=function(e){return t.objects.getChannelMetadata({channel:e.spaceId,include:e.include})},this.fetchSpaces=this.objects.getAllChannelMetadata,this.addMemberships=function(e){var i,n;return"string"==typeof e.spaceId?t.objects.setChannelMembers({channel:e.spaceId,uuids:null===(i=e.users)||void 0===i?void 0:i.map((function(e){return"string"==typeof e?e:{id:e.userId,custom:e.custom,status:e.status}})),limit:0}):t.objects.setMemberships({uuid:e.userId,channels:null===(n=e.spaces)||void 0===n?void 0:n.map((function(e){return"string"==typeof e?e:{id:e.spaceId,custom:e.custom,status:e.status}})),limit:0})},this.updateMemberships=this.addMemberships,this.removeMemberships=function(e){return"string"==typeof e.spaceId?t.objects.removeChannelMembers({channel:e.spaceId,uuids:e.userIds,limit:0}):t.objects.removeMemberships({uuid:e.userId,channels:e.spaceIds,limit:0})},this.fetchMemberships=function(e){return"string"==typeof e.spaceId?t.objects.getChannelMembers({channel:e.spaceId,filter:e.filter,limit:e.limit,page:e.page,include:{customFields:e.include.customFields,UUIDFields:e.include.userFields,customUUIDFields:e.include.customUserFields,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map((function(e){var t=l(e,2),i=t[0],n=t[1];return[i.replace("user","uuid"),n]}))):null}).then((function(e){var t;return e.data=null===(t=e.data)||void 0===t?void 0:t.map((function(e){return{user:e.uuid,custom:e.custom,updated:e.updated,eTag:e.eTag}})),e})):t.objects.getMemberships({uuid:e.userId,filter:e.filter,limit:e.limit,page:e.page,include:{customFields:e.include.customFields,channelFields:e.include.spaceFields,customChannelFields:e.include.customSpaceFields,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map((function(e){var t=l(e,2),i=t[0],n=t[1];return[i.replace("space","channel"),n]}))):null}).then((function(e){var t;return e.data=null===(t=e.data)||void 0===t?void 0:t.map((function(e){return{space:e.channel,custom:e.custom,updated:e.updated,eTag:e.eTag}})),e}))},this.time=h,this.stop=this.destroy,this.encrypt=a.encrypt.bind(a),this.decrypt=a.decrypt.bind(a),this.getAuthKey=p.config.getAuthKey.bind(p.config),this.setAuthKey=p.config.setAuthKey.bind(p.config),this.setCipherKey=p.config.setCipherKey.bind(p.config),this.getUUID=p.config.getUUID.bind(p.config),this.setUUID=p.config.setUUID.bind(p.config),this.getFilterExpression=p.config.getFilterExpression.bind(p.config),this.setFilterExpression=p.config.setFilterExpression.bind(p.config),this.setHeartbeatInterval=p.config.setHeartbeatInterval.bind(p.config),i.hasModule("proxy")&&(this.setProxy=function(e){p.config.setProxy(e),t.reconnect()})}return e.prototype.getVersion=function(){return this._config.getVersion()},e.prototype._addPnsdkSuffix=function(e,t){this._config._addPnsdkSuffix(e,t)},e.prototype.networkDownDetected=function(){this._listenerManager.announceNetworkDown(),this._config.restore?this.disconnect():this.destroy(!0)},e.prototype.networkUpDetected=function(){this._listenerManager.announceNetworkUp(),this.reconnect()},e.notificationPayload=function(e,t){return new B(e,t)},e.generateUUID=function(){return m()},e.OPERATIONS=M,e.CATEGORIES=_,e}(),Jt=function(){function e(e){var t=this;this._modules={},Object.keys(e).forEach((function(i){t._modules[i]=e[i].bind(t)}))}return e.prototype.init=function(e){this._config=e,Array.isArray(this._config.origin)?this._currentSubDomain=Math.floor(Math.random()*this._config.origin.length):this._currentSubDomain=0,this._coreParams={},this.shiftStandardOrigin()},e.prototype.nextOrigin=function(){var e=this._config.secure?"https://":"http://";if("string"==typeof this._config.origin)return"".concat(e).concat(this._config.origin);this._currentSubDomain+=1,this._currentSubDomain>=this._config.origin.length&&(this._currentSubDomain=0);var t=this._config.origin[this._currentSubDomain];return"".concat(e).concat(t)},e.prototype.hasModule=function(e){return e in this._modules},e.prototype.shiftStandardOrigin=function(){return this._standardOrigin=this.nextOrigin(),this._standardOrigin},e.prototype.getStandardOrigin=function(){return this._standardOrigin},e.prototype.POSTFILE=function(e,t,i){return this._modules.postfile(e,t,i)},e.prototype.GETFILE=function(e,t,i){return this._modules.getfile(e,t,i)},e.prototype.POST=function(e,t,i,n){return this._modules.post(e,t,i,n)},e.prototype.PATCH=function(e,t,i,n){return this._modules.patch(e,t,i,n)},e.prototype.GET=function(e,t,i){return this._modules.get(e,t,i)},e.prototype.DELETE=function(e,t,i){return this._modules.del(e,t,i)},e.prototype._detectErrorCategory=function(e){if("ENOTFOUND"===e.code)return _.PNNetworkIssuesCategory;if("ECONNREFUSED"===e.code)return _.PNNetworkIssuesCategory;if("ECONNRESET"===e.code)return _.PNNetworkIssuesCategory;if("EAI_AGAIN"===e.code)return _.PNNetworkIssuesCategory;if(0===e.status||e.hasOwnProperty("status")&&void 0===e.status)return _.PNNetworkIssuesCategory;if(e.timeout)return _.PNTimeoutCategory;if("ETIMEDOUT"===e.code)return _.PNNetworkIssuesCategory;if(e.response){if(e.response.badRequest)return _.PNBadRequestCategory;if(e.response.forbidden)return _.PNAccessDeniedCategory}return _.PNUnknownCategory},e}();function jt(e){var t=function(e){return e&&"object"==typeof e&&e.constructor===Object};if(!t(e))return e;var i={};return Object.keys(e).forEach((function(n){var r=function(e){return"string"==typeof e||e instanceof String}(n),o=n,a=e[n];Array.isArray(n)||r&&n.indexOf(",")>=0?o=(r?n.split(","):n).reduce((function(e,t){return e+String.fromCharCode(t)}),""):(function(e){return"number"==typeof e&&isFinite(e)}(n)||r&&!isNaN(n))&&(o=String.fromCharCode(r?parseInt(n,10):10)),i[o]=t(a)?jt(a):a})),i}var Ht=function(){function e(e,t){this._base64ToBinary=t,this._decode=e}return e.prototype.decodeToken=function(e){var t="";e.length%4==3?t="=":e.length%4==2&&(t="==");var i=e.replace(/-/gi,"+").replace(/_/gi,"/")+t,n=this._decode(this._base64ToBinary(i));if("object"==typeof n)return n},e}(),Gt={exports:{}},zt={exports:{}};!function(e){function t(e){if(e)return function(e){for(var i in t.prototype)e[i]=t.prototype[i];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function i(){this.off(e,i),t.apply(this,arguments)}return i.fn=t,this.on(e,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<n.length;r++)if((i=n[r])===t||i.fn===t){n.splice(r,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),i=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(i){n=0;for(var r=(i=i.slice(0)).length;n<r;++n)i[n].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}}(zt);var Wt=Yt;Yt.default=Yt,Yt.stable=ii,Yt.stableStringify=ii;var Vt="[...]",Qt="[Circular]",Kt=[],Xt=[];function $t(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Yt(e,t,i,n){var r;void 0===n&&(n=$t()),ei(e,"",0,[],void 0,0,n);try{r=0===Xt.length?JSON.stringify(e,t,i):JSON.stringify(e,ri(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==Kt.length;){var o=Kt.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return r}function Zt(e,t,i,n){var r=Object.getOwnPropertyDescriptor(n,i);void 0!==r.get?r.configurable?(Object.defineProperty(n,i,{value:e}),Kt.push([n,i,t,r])):Xt.push([t,i,e]):(n[i]=e,Kt.push([n,i,t]))}function ei(e,t,i,n,r,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;s<n.length;s++)if(n[s]===e)return void Zt(Qt,e,t,r);if(void 0!==a.depthLimit&&o>a.depthLimit)return void Zt(Vt,e,t,r);if(void 0!==a.edgesLimit&&i+1>a.edgesLimit)return void Zt(Vt,e,t,r);if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ei(e[s],s,s,n,e,o,a);else{var l=Object.keys(e);for(s=0;s<l.length;s++){var u=l[s];ei(e[u],u,s,n,e,o,a)}}n.pop()}}function ti(e,t){return e<t?-1:e>t?1:0}function ii(e,t,i,n){void 0===n&&(n=$t());var r,o=ni(e,"",0,[],void 0,0,n)||e;try{r=0===Xt.length?JSON.stringify(o,t,i):JSON.stringify(o,ri(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==Kt.length;){var a=Kt.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return r}function ni(e,t,i,n,r,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;s<n.length;s++)if(n[s]===e)return void Zt(Qt,e,t,r);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==a.depthLimit&&o>a.depthLimit)return void Zt(Vt,e,t,r);if(void 0!==a.edgesLimit&&i+1>a.edgesLimit)return void Zt(Vt,e,t,r);if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ni(e[s],s,s,n,e,o,a);else{var l={},u=Object.keys(e).sort(ti);for(s=0;s<u.length;s++){var d=u[s];ni(e[d],d,s,n,e,o,a),l[d]=e[d]}if(void 0===r)return l;Kt.push([r,t,e]),r[t]=l}n.pop()}}function ri(e){return e=void 0!==e?e:function(e,t){return t},function(t,i){if(Xt.length>0)for(var n=0;n<Xt.length;n++){var r=Xt[n];if(r[1]===t&&r[0]===i){i=r[2],Xt.splice(n,1);break}}return e.call(this,t,i)}}var oi=String.prototype.replace,ai=/%20/g,si="RFC3986",li={default:si,formatters:{RFC1738:function(e){return oi.call(e,ai,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:si},ui=li,di=Object.prototype.hasOwnProperty,ci=Array.isArray,pi=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),hi=function(e,t){for(var i=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(i[n]=e[n]);return i},fi={arrayToObject:hi,assign:function(e,t){return Object.keys(t).reduce((function(e,i){return e[i]=t[i],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n<t.length;++n)for(var r=t[n],o=r.obj[r.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],u=o[l];"object"==typeof u&&null!==u&&-1===i.indexOf(u)&&(t.push({obj:o,prop:l}),i.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(ci(i)){for(var n=[],r=0;r<i.length;++r)void 0!==i[r]&&n.push(i[r]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,i){var n=e.replace(/\+/g," ");if("iso-8859-1"===i)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,i,n,r){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===i)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<o.length;++s){var l=o.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||r===ui.RFC1738&&(40===l||41===l)?a+=o.charAt(s):l<128?a+=pi[l]:l<2048?a+=pi[192|l>>6]+pi[128|63&l]:l<55296||l>=57344?a+=pi[224|l>>12]+pi[128|l>>6&63]+pi[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(s)),a+=pi[240|l>>18]+pi[128|l>>12&63]+pi[128|l>>6&63]+pi[128|63&l])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(ci(e)){for(var i=[],n=0;n<e.length;n+=1)i.push(t(e[n]));return i}return t(e)},merge:function e(t,i,n){if(!i)return t;if("object"!=typeof i){if(ci(t))t.push(i);else{if(!t||"object"!=typeof t)return[t,i];(n&&(n.plainObjects||n.allowPrototypes)||!di.call(Object.prototype,i))&&(t[i]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(i);var r=t;return ci(t)&&!ci(i)&&(r=hi(t,n)),ci(t)&&ci(i)?(i.forEach((function(i,r){if(di.call(t,r)){var o=t[r];o&&"object"==typeof o&&i&&"object"==typeof i?t[r]=e(o,i,n):t.push(i)}else t[r]=i})),t):Object.keys(i).reduce((function(t,r){var o=i[r];return di.call(t,r)?t[r]=e(t[r],o,n):t[r]=o,t}),r)}},mi=fi,gi=li,vi=Object.prototype.hasOwnProperty,yi={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},bi=Array.isArray,wi=String.prototype.split,Si=Array.prototype.push,Ti=function(e,t){Si.apply(e,bi(t)?t:[t])},xi=Date.prototype.toISOString,Ai=gi.default,Ci={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:mi.encode,encodeValuesOnly:!1,format:Ai,formatter:gi.formatters[Ai],indices:!1,serializeDate:function(e){return xi.call(e)},skipNulls:!1,strictNullHandling:!1},Oi=function e(t,i,n,r,o,a,s,l,u,d,c,p,h,f){var m,g=t;if("function"==typeof s?g=s(i,g):g instanceof Date?g=d(g):"comma"===n&&bi(g)&&(g=mi.maybeMap(g,(function(e){return e instanceof Date?d(e):e}))),null===g){if(r)return a&&!h?a(i,Ci.encoder,f,"key",c):i;g=""}if("string"==typeof(m=g)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||mi.isBuffer(g)){if(a){var v=h?i:a(i,Ci.encoder,f,"key",c);if("comma"===n&&h){for(var y=wi.call(String(g),","),b="",w=0;w<y.length;++w)b+=(0===w?"":",")+p(a(y[w],Ci.encoder,f,"value",c));return[p(v)+"="+b]}return[p(v)+"="+p(a(g,Ci.encoder,f,"value",c))]}return[p(i)+"="+p(String(g))]}var S,T=[];if(void 0===g)return T;if("comma"===n&&bi(g))S=[{value:g.length>0?g.join(",")||null:void 0}];else if(bi(s))S=s;else{var x=Object.keys(g);S=l?x.sort(l):x}for(var A=0;A<S.length;++A){var C=S[A],O="object"==typeof C&&void 0!==C.value?C.value:g[C];if(!o||null!==O){var I=bi(g)?"function"==typeof n?n(i,C):i:i+(u?"."+C:"["+C+"]");Ti(T,e(O,I,n,r,o,a,s,l,u,d,c,p,h,f))}}return T},Ii=fi,Ni=Object.prototype.hasOwnProperty,Ei=Array.isArray,Ri={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ii.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},_i=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Pi=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Mi=function(e,t,i,n){if(e){var r=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=i.depth>0&&/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,l=[];if(s){if(!i.plainObjects&&Ni.call(Object.prototype,s)&&!i.allowPrototypes)return;l.push(s)}for(var u=0;i.depth>0&&null!==(a=o.exec(r))&&u<i.depth;){if(u+=1,!i.plainObjects&&Ni.call(Object.prototype,a[1].slice(1,-1))&&!i.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+r.slice(a.index)+"]"),function(e,t,i,n){for(var r=n?t:Pi(t,i),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&i.parseArrays)a=[].concat(r);else{a=i.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);i.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&i.parseArrays&&u<=i.arrayLimit?(a=[])[u]=r:"__proto__"!==l&&(a[l]=r):a={0:r}}r=a}return r}(l,t,i,n)}},Fi={formats:li,parse:function(e,t){var i=function(e){if(!e)return Ri;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Ri.charset:e.charset;return{allowDots:void 0===e.allowDots?Ri.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ri.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ri.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ri.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ri.comma,decoder:"function"==typeof e.decoder?e.decoder:Ri.decoder,delimiter:"string"==typeof e.delimiter||Ii.isRegExp(e.delimiter)?e.delimiter:Ri.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Ri.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ri.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ri.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ri.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ri.strictNullHandling}}(t);if(""===e||null==e)return i.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var i,n={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=r.split(t.delimiter,o),s=-1,l=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?l="utf-8":"utf8=%26%2310003%3B"===a[i]&&(l="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var u,d,c=a[i],p=c.indexOf("]="),h=-1===p?c.indexOf("="):p+1;-1===h?(u=t.decoder(c,Ri.decoder,l,"key"),d=t.strictNullHandling?null:""):(u=t.decoder(c.slice(0,h),Ri.decoder,l,"key"),d=Ii.maybeMap(Pi(c.slice(h+1),t),(function(e){return t.decoder(e,Ri.decoder,l,"value")}))),d&&t.interpretNumericEntities&&"iso-8859-1"===l&&(d=_i(d)),c.indexOf("[]=")>-1&&(d=Ei(d)?[d]:d),Ni.call(n,u)?n[u]=Ii.combine(n[u],d):n[u]=d}return n}(e,i):e,r=i.plainObjects?Object.create(null):{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],l=Mi(s,n[s],i,"string"==typeof e);r=Ii.merge(r,l,i)}return Ii.compact(r)},stringify:function(e,t){var i,n=e,r=function(e){if(!e)return Ci;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Ci.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=gi.default;if(void 0!==e.format){if(!vi.call(gi.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var n=gi.formatters[i],r=Ci.filter;return("function"==typeof e.filter||bi(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Ci.addQueryPrefix,allowDots:void 0===e.allowDots?Ci.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ci.charsetSentinel,delimiter:void 0===e.delimiter?Ci.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Ci.encode,encoder:"function"==typeof e.encoder?e.encoder:Ci.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Ci.encodeValuesOnly,filter:r,format:i,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Ci.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Ci.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ci.strictNullHandling}}(t);"function"==typeof r.filter?n=(0,r.filter)("",n):bi(r.filter)&&(i=r.filter);var o,a=[];if("object"!=typeof n||null===n)return"";o=t&&t.arrayFormat in yi?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=yi[o];i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var l=0;l<i.length;++l){var u=i[l];r.skipNulls&&null===n[u]||Ti(a,Oi(n[u],u,s,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset))}var d=a.join(r.delimiter),c=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?c+="utf8=%26%2310003%3B&":c+="utf8=%E2%9C%93&"),d.length>0?c+d:""}};function Di(e){return Di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Di(e)}var ki=function(e){return null!==e&&"object"===Di(e)};function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}var Li=ki,Bi=qi;function qi(e){if(e)return function(e){for(var t in qi.prototype)Object.prototype.hasOwnProperty.call(qi.prototype,t)&&(e[t]=qi.prototype[t]);return e}(e)}qi.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},qi.prototype.parse=function(e){return this._parser=e,this},qi.prototype.responseType=function(e){return this._responseType=e,this},qi.prototype.serialize=function(e){return this._serializer=e,this},qi.prototype.timeout=function(e){if(!e||"object"!==Ui(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},qi.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var Ji=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),ji=new Set([408,413,429,500,502,503,504,521,522,524]);qi.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var i=this._retryCallback(e,t);if(!0===i)return!0;if(!1===i)return!1}catch(e){console.error(e)}if(t&&t.status&&ji.has(t.status))return!0;if(e){if(e.code&&Ji.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},qi.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},qi.prototype.then=function(e,t){var i=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){n.on("abort",(function(){if(!(i._maxRetries&&i._maxRetries>i._retries))if(i.timedout&&i.timedoutError)t(i.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=i.status,e.method=i.method,e.url=i.url,t(e)}})),n.end((function(i,n){i?t(i):e(n)}))}))}return this._fullfilledPromise.then(e,t)},qi.prototype.catch=function(e){return this.then(void 0,e)},qi.prototype.use=function(e){return e(this),this},qi.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},qi.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},qi.prototype.get=function(e){return this._header[e.toLowerCase()]},qi.prototype.getHeader=qi.prototype.get,qi.prototype.set=function(e,t){if(Li(e)){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},qi.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},qi.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(Li(e)){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.field(i,e[i]);return this}if(Array.isArray(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.field(e,t[n]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},qi.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},qi.prototype._auth=function(e,t,i,n){switch(i.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},qi.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},qi.prototype.redirects=function(e){return this._maxRedirects=e,this},qi.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},qi.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},qi.prototype.send=function(e){var t=Li(e),i=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&Li(this._data))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this._data[n]=e[n]);else"string"==typeof e?(i||this.type("form"),(i=this._header["content-type"])&&(i=i.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===i?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||i||this.type("json"),this},qi.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},qi.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var i=this.url.slice(t+1).split("&");"function"==typeof this._sort?i.sort(this._sort):i.sort(),this.url=this.url.slice(0,t)+"?"+i.join("&")}}},qi.prototype._appendQueryString=function(){console.warn("Unsupported")},qi.prototype._timeoutError=function(e,t,i){if(!this._aborted){var n=new Error("".concat(e+t,"ms exceeded"));n.timeout=t,n.code="ECONNABORTED",n.errno=i,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},qi.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var Hi={};function Gi(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return zi(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?zi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}Hi.type=function(e){return e.split(/ *; */).shift()},Hi.params=function(e){var t,i={},n=Gi(e.split(/ *; */));try{for(n.s();!(t=n.n()).done;){var r=t.value.split(/ *= */),o=r.shift(),a=r.shift();o&&a&&(i[o]=a)}}catch(e){n.e(e)}finally{n.f()}return i},Hi.parseLinks=function(e){var t,i={},n=Gi(e.split(/ *, */));try{for(n.s();!(t=n.n()).done;){var r=t.value.split(/ *; */),o=r[0].slice(1,-1);i[r[1].split(/ *= */)[1].slice(1,-1)]=o}}catch(e){n.e(e)}finally{n.f()}return i},Hi.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e};var Wi=Hi,Vi=Qi;function Qi(e){if(e)return function(e){for(var t in Qi.prototype)Object.prototype.hasOwnProperty.call(Qi.prototype,t)&&(e[t]=Qi.prototype[t]);return e}(e)}function Ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Xi(){this._defaults=[]}Qi.prototype.get=function(e){return this.header[e.toLowerCase()]},Qi.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=Wi.type(t);var i=Wi.params(t);for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(this[n]=i[n]);this.links={};try{e.link&&(this.links=Wi.parseLinks(e.link))}catch(e){}},Qi.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){Xi.prototype[e]=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return this._defaults.push({fn:e,args:i}),this}})),Xi.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,function(e){return function(e){if(Array.isArray(e))return Ki(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ki(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ki(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.args))}))};var $i=Xi;!function(e,t){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var n;"undefined"!=typeof window?n=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self;var r=zt.exports,o=Wt,a=Fi,s=Bi,l=ki,u=Vi,d=$i;function c(){}e.exports=function(e,i){return"function"==typeof i?new t.Request("GET",e).end(i):1===arguments.length?new t.Request("GET",e):new t.Request(e,i)};var p=t=e.exports;t.Request=b,p.getXHR=function(){if(n.XMLHttpRequest&&(!n.location||"file:"!==n.location.protocol||!n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function f(e){if(!l(e))return e;var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&m(t,i,e[i]);return t.join("&")}function m(e,t,i){if(void 0!==i)if(null!==i)if(Array.isArray(i))i.forEach((function(i){m(e,t,i)}));else if(l(i))for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&m(e,"".concat(t,"[").concat(n,"]"),i[n]);else e.push(encodeURI(t)+"="+encodeURIComponent(i));else e.push(encodeURI(t))}function g(e){for(var t,i,n={},r=e.split("&"),o=0,a=r.length;o<a;++o)-1===(i=(t=r[o]).indexOf("="))?n[decodeURIComponent(t)]="":n[decodeURIComponent(t.slice(0,i))]=decodeURIComponent(t.slice(i+1));return n}function v(e){return/[/+]json($|[^-\w])/i.test(e)}function y(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,i,n,r,o=e.split(/\r?\n/),a={},s=0,l=o.length;s<l;++s)-1!==(t=(i=o[s]).indexOf(":"))&&(n=i.slice(0,t).toLowerCase(),r=h(i.slice(t+1)),a[n]=r);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function b(e,t){var i=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,n=null;try{n=new y(i)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,i.xhr?(t.rawResponse=void 0===i.xhr.responseType?i.xhr.responseText:i.xhr.response,t.status=i.xhr.status?i.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),i.callback(t)}i.emit("response",n);try{i._isResponseOK(n)||(e=new Error(n.statusText||n.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=n,e.status=n.status,i.callback(e,n)):i.callback(null,n)}))}function w(e,t,i){var n=p("DELETE",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n}p.serializeObject=f,p.parseString=g,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":a.stringify,"application/json":o},p.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},u(y.prototype),y.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&v(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},y.prototype.toError=function(){var e=this.req,t=e.method,i=e.url,n="cannot ".concat(t," ").concat(i," (").concat(this.status,")"),r=new Error(n);return r.status=this.status,r.method=t,r.url=i,r},p.Response=y,r(b.prototype),s(b.prototype),b.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},b.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},b.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===i(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var r=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,r)},b.prototype.query=function(e){return"string"!=typeof e&&(e=f(e)),e&&this._query.push(e),this},b.prototype.attach=function(e,t,i){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,i||t.name)}return this},b.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},b.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var i=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),i(e,t)},b.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},b.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},b.prototype.ca=b.prototype.agent,b.prototype.buffer=b.prototype.ca,b.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},b.prototype.pipe=b.prototype.write,b.prototype._isHost=function(e){return e&&"object"===i(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},b.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||c,this._finalizeQueryString(),this._end()},b.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},b.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,i=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var i=t.readyState;if(i>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===i){var n;try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,i){i.total>0&&(i.percent=i.loaded/i.total*100,100===i.percent&&clearTimeout(e._uploadTimeoutTimer)),i.direction=t,e.emit("progress",i)};if(this.hasListeners("progress"))try{t.addEventListener("progress",n.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",n.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof i&&!this._isHost(i)){var r=this._header["content-type"],o=this._serializer||p.serialize[r?r.split(";")[0]:""];!o&&v(r)&&(o=p.serialize["application/json"]),o&&(i=o(i))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===i?null:i)},p.agent=function(){return new d},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){d.prototype[e.toLowerCase()]=function(t,i){var n=new p.Request(e,t);return this._setDefaults(n),i&&n.end(i),n}})),d.prototype.del=d.prototype.delete,p.get=function(e,t,i){var n=p("GET",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},p.head=function(e,t,i){var n=p("HEAD",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},p.options=function(e,t,i){var n=p("OPTIONS",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},p.del=w,p.delete=w,p.patch=function(e,t,i){var n=p("PATCH",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},p.post=function(e,t,i){var n=p("POST",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},p.put=function(e,t,i){var n=p("PUT",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n}}(Gt,Gt.exports);var Yi=Gt.exports;function Zi(e){var t=(new Date).getTime(),i=(new Date).toISOString(),n=console&&console.log?console:window&&window.console&&window.console.log?window.console:console;n.log("<<<<<"),n.log("[".concat(i,"]"),"\n",e.url,"\n",e.qs),n.log("-----"),e.on("response",(function(i){var r=(new Date).getTime()-t,o=(new Date).toISOString();n.log(">>>>>>"),n.log("[".concat(o," / ").concat(r,"]"),"\n",e.url,"\n",e.qs,"\n",i.text),n.log("-----")}))}function en(e,t,i){var n=this;this._config.logVerbosity&&(e=e.use(Zi)),this._config.proxy&&this._modules.proxy&&(e=this._modules.proxy.call(this,e)),this._config.keepAlive&&this._modules.keepAlive&&(e=this._modules.keepAlive(e));var r=e;if(t.abortSignal)var o=t.abortSignal.subscribe((function(){r.abort(),o()}));return!0===t.forceBuffered?r="undefined"==typeof Blob?r.buffer().responseType("arraybuffer"):r.responseType("arraybuffer"):!1===t.forceBuffered&&(r=r.buffer(!1)),(r=r.timeout(t.timeout)).on("abort",(function(){return i({category:_.PNUnknownCategory,error:!0,operation:t.operation,errorData:new Error("Aborted")},null)})),r.end((function(e,r){var o,a={};if(a.error=null!==e,a.operation=t.operation,r&&r.status&&(a.statusCode=r.status),e){if(e.response&&e.response.text&&!n._config.logVerbosity)try{a.errorData=JSON.parse(e.response.text)}catch(t){a.errorData=e}else a.errorData=e;return a.category=n._detectErrorCategory(e),i(a,null)}if(t.ignoreBody)o={headers:r.headers,redirects:r.redirects,response:r};else try{o=JSON.parse(r.text)}catch(e){return a.errorData=r,a.error=!0,i(a,null)}return o.error&&1===o.error&&o.status&&o.message&&o.service?(a.errorData=o,a.statusCode=o.status,a.error=!0,a.category=n._detectErrorCategory(a),i(a,null)):(o.error&&o.error.message&&(a.errorData=o.error),i(a,o))})),r}function tn(e,t,i){return o(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return n=Yi.post(e),t.forEach((function(e){var t=e.key,i=e.value;n=n.field(t,i)})),n.attach("file",i,{contentType:"application/octet-stream"}),[4,n];case 1:return[2,r.sent()]}}))}))}function nn(e,t,i){var n=Yi.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function rn(e,t,i){var n=Yi.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function on(e,t,i,n){var r=Yi.post(this.getStandardOrigin()+i.url).query(e).set(i.headers).send(t);return en.call(this,r,i,n)}function an(e,t,i,n){var r=Yi.patch(this.getStandardOrigin()+i.url).query(e).set(i.headers).send(t);return en.call(this,r,i,n)}function sn(e,t,i){var n=Yi.delete(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function ln(e,t){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),e.byteLength),i.buffer}var un,dn=function(){function e(){}return Object.defineProperty(e.prototype,"algo",{get:function(){return"aes-256-cbc"},enumerable:!1,configurable:!0}),e.prototype.encrypt=function(e,t){return o(this,void 0,void 0,(function(){var i;return a(this,(function(n){switch(n.label){case 0:return[4,this.getKey(e)];case 1:if(i=n.sent(),t instanceof ArrayBuffer)return[2,this.encryptArrayBuffer(i,t)];if("string"==typeof t)return[2,this.encryptString(i,t)];throw new Error("Cannot encrypt this file. In browsers file encryption supports only string or ArrayBuffer")}}))}))},e.prototype.decrypt=function(e,t){return o(this,void 0,void 0,(function(){var i;return a(this,(function(n){switch(n.label){case 0:return[4,this.getKey(e)];case 1:if(i=n.sent(),t instanceof ArrayBuffer)return[2,this.decryptArrayBuffer(i,t)];if("string"==typeof t)return[2,this.decryptString(i,t)];throw new Error("Cannot decrypt this file. In browsers file decryption supports only string or ArrayBuffer")}}))}))},e.prototype.encryptFile=function(e,t,i){return o(this,void 0,void 0,(function(){var n,r,o;return a(this,(function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return n=a.sent(),[4,t.toArrayBuffer()];case 2:return r=a.sent(),[4,this.encryptArrayBuffer(n,r)];case 3:return o=a.sent(),[2,i.create({name:t.name,mimeType:"application/octet-stream",data:o})]}}))}))},e.prototype.decryptFile=function(e,t,i){return o(this,void 0,void 0,(function(){var n,r,o;return a(this,(function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return n=a.sent(),[4,t.toArrayBuffer()];case 2:return r=a.sent(),[4,this.decryptArrayBuffer(n,r)];case 3:return o=a.sent(),[2,i.create({name:t.name,data:o})]}}))}))},e.prototype.getKey=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t=Buffer.from(e),[4,crypto.subtle.digest("SHA-256",t.buffer)];case 1:return i=r.sent(),n=Buffer.from(Buffer.from(i).toString("hex").slice(0,32),"utf8").buffer,[2,crypto.subtle.importKey("raw",n,"AES-CBC",!0,["encrypt","decrypt"])]}}))}))},e.prototype.encryptArrayBuffer=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),n=ln,r=[i.buffer],[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},e,t)];case 1:return[2,n.apply(void 0,r.concat([o.sent()]))]}}))}))},e.prototype.decryptArrayBuffer=function(e,t){return o(this,void 0,void 0,(function(){var i;return a(this,(function(n){return i=t.slice(0,16),[2,crypto.subtle.decrypt({name:"AES-CBC",iv:i},e,t.slice(16))]}))}))},e.prototype.encryptString=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o;return a(this,(function(a){switch(a.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),n=Buffer.from(t).buffer,[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},e,n)];case 1:return r=a.sent(),o=ln(i.buffer,r),[2,Buffer.from(o).toString("utf8")]}}))}))},e.prototype.decryptString=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o;return a(this,(function(a){switch(a.label){case 0:return i=Buffer.from(t),n=i.slice(0,16),r=i.slice(16),[4,crypto.subtle.decrypt({name:"AES-CBC",iv:n},e,r)];case 1:return o=a.sent(),[2,Buffer.from(o).toString("utf8")]}}))}))},e.IV_LENGTH=16,e}(),cn=(un=function(){function e(e){if(e instanceof File)this.data=e,this.name=this.data.name,this.mimeType=this.data.type;else if(e.data){var t=e.data;this.data=new File([t],e.name,{type:e.mimeType}),this.name=e.name,e.mimeType&&(this.mimeType=e.mimeType)}if(void 0===this.data)throw new Error("Couldn't construct a file out of supplied options.");if(void 0===this.name)throw new Error("Couldn't guess filename out of the options. Please provide one.")}return e.create=function(e){return new this(e)},e.prototype.toBuffer=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){throw new Error("This feature is only supported in Node.js environments.")}))}))},e.prototype.toStream=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){throw new Error("This feature is only supported in Node.js environments.")}))}))},e.prototype.toFileUri=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){throw new Error("This feature is only supported in react native environments.")}))}))},e.prototype.toBlob=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this.data]}))}))},e.prototype.toArrayBuffer=function(){return o(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){return[2,new Promise((function(t,i){var n=new FileReader;n.addEventListener("load",(function(){if(n.result instanceof ArrayBuffer)return t(n.result)})),n.addEventListener("error",(function(){i(n.error)})),n.readAsArrayBuffer(e.data)}))]}))}))},e.prototype.toString=function(){return o(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){return[2,new Promise((function(t,i){var n=new FileReader;n.addEventListener("load",(function(){if("string"==typeof n.result)return t(n.result)})),n.addEventListener("error",(function(){i(n.error)})),n.readAsBinaryString(e.data)}))]}))}))},e.prototype.toFile=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this.data]}))}))},e}(),un.supportsFile="undefined"!=typeof File,un.supportsBlob="undefined"!=typeof Blob,un.supportsArrayBuffer="undefined"!=typeof ArrayBuffer,un.supportsBuffer=!1,un.supportsStream=!1,un.supportsString=!0,un.supportsEncryptFile=!0,un.supportsFileUri=!1,un);function pn(e){if(!navigator||!navigator.sendBeacon)return!1;navigator.sendBeacon(e)}var hn=function(e){function i(t){var i=this,n=t.listenToBrowserNetworkEvents,r=void 0===n||n;return t.sdkFamily="Web",t.networking=new Jt({del:sn,get:rn,post:on,patch:an,sendBeacon:pn,getfile:nn,postfile:tn}),t.cbor=new Ht((function(e){return jt(p.decode(e))}),v),t.PubNubFile=cn,t.cryptography=new dn,i=e.call(this,t)||this,r&&(window.addEventListener("offline",(function(){i.networkDownDetected()})),window.addEventListener("online",(function(){i.networkUpDetected()}))),i}return t(i,e),i}(qt);return hn}()},2408:(e,t,i)=>{var n=i(7418);if("function"==typeof Symbol&&Symbol.for){var r=Symbol.for;r("react.element"),r("react.portal"),r("react.fragment"),r("react.strict_mode"),r("react.profiler"),r("react.provider"),r("react.context"),r("react.forward_ref"),r("react.suspense"),r("react.memo"),r("react.lazy")}"function"==typeof Symbol&&Symbol.iterator;function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s={};function l(e,t,i){this.props=e,this.context=t,this.refs=s,this.updater=i||a}function u(){}function d(e,t,i){this.props=e,this.context=t,this.refs=s,this.updater=i||a}l.prototype.isReactComponent={},l.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(o(85));this.updater.enqueueSetState(this,e,t,"setState")},l.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},u.prototype=l.prototype;var c=d.prototype=new u;c.constructor=d,n(c,l.prototype),c.isPureReactComponent=!0;Object.prototype.hasOwnProperty},7294:(e,t,i)=>{i(2408)},3379:e=>{var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],u=n.base?l[0]+n.base:l[0],d=o[u]||0,c="".concat(u," ").concat(d);o[u]=d+1;var p=i(c),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=r(h,n);n.byIndex=s,t.splice(s,0,{identifier:c,updater:f,references:1})}a.push(c)}return a}function r(e,t){var i=t.domAPI(t);return i.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;i.update(e=t)}else i.remove()}}e.exports=function(e,r){var o=n(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=i(o[a]);t[s].references--}for(var l=n(e,r),u=0;u<o.length;u++){var d=i(o[u]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}o=l}}},569:e=>{var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},9216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,i)=>{e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,r&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var o=i.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{i.d(n,{l:()=>Lo,Z:()=>Uo});var e=i(9669),t=i.n(e);const r=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),a=new Map;class s{constructor(e,t){if(this._$cssResult$=!0,t!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=a.get(this.cssText);return r&&void 0===e&&(a.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const l=(e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[n+1]),e[0]);return new s(i,o)},u=r?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new s("string"==typeof e?e:e+"",o))(t)})(e):e;var d;const c=window.trustedTypes,p=c?c.emptyScript:"",h=window.reactiveElementPolyfillSupport,f={toAttribute(e,t){switch(t){case Boolean:e=e?p:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},m=(e,t)=>t!==e&&(t==t||e==e),g={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:m};class v extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const n=this._$Eh(i,t);void 0!==n&&(this._$Eu.set(n,i),e.push(n))})),e}static createProperty(e,t=g){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(n){const r=this[e];this[t]=n,this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||g}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(u(e))}else void 0!==e&&t.push(u(e));return t}static _$Eh(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$Eg)||void 0===t||t.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{r?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),n=window.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Eg)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$Eg)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ES(e,t,i=g){var n,r;const o=this.constructor._$Eh(e,i);if(void 0!==o&&!0===i.reflect){const a=(null!==(r=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==r?r:f.toAttribute)(t,i.type);this._$Ei=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}_$AK(e,t){var i,n,r;const o=this.constructor,a=o._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){const e=o.getPropertyOptions(a),s=e.converter,l=null!==(r=null!==(n=null===(i=s)||void 0===i?void 0:i.fromAttribute)&&void 0!==n?n:"function"==typeof s?s:null)&&void 0!==r?r:f.fromAttribute;this._$Ei=a,this[a]=l(t,e.type),this._$Ei=null}}requestUpdate(e,t,i){let n=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||m)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Ei!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((e,t)=>this[t]=e)),this._$Et=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$Eg)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$Eg)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$ES(t,this[t],e))),this._$EC=void 0),this._$EU()}updated(e){}firstUpdated(e){}}var y;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:v}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.3.1");const b=globalThis.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:e=>e}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,T="?"+S,x=`<${T}>`,A=document,C=(e="")=>A.createComment(e),O=e=>null===e||"object"!=typeof e&&"function"!=typeof e,I=Array.isArray,N=e=>{var t;return I(e)||"function"==typeof(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,_=/>/g,P=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,M=/'/g,F=/"/g,D=/^(?:script|style|textarea|title)$/i,k=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),U=k(1),L=k(2),B=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),J=new WeakMap,j=A.createTreeWalker(A,129,null,!1),H=(e,t)=>{const i=e.length-1,n=[];let r,o=2===t?"<svg>":"",a=E;for(let t=0;t<i;t++){const i=e[t];let s,l,u=-1,d=0;for(;d<i.length&&(a.lastIndex=d,l=a.exec(i),null!==l);)d=a.lastIndex,a===E?"!--"===l[1]?a=R:void 0!==l[1]?a=_:void 0!==l[2]?(D.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=P):void 0!==l[3]&&(a=P):a===P?">"===l[0]?(a=null!=r?r:E,u=-1):void 0===l[1]?u=-2:(u=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?P:'"'===l[3]?F:M):a===F||a===M?a=P:a===R||a===_?a=E:(a=P,r=void 0);const c=a===P&&e[t+1].startsWith("/>")?" ":"";o+=a===E?i+x:u>=0?(n.push(s),i.slice(0,u)+"$lit$"+i.slice(u)+S+c):i+S+(-2===u?(n.push(void 0),t):c)}const s=o+(e[i]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(s):s,n]};class G{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let r=0,o=0;const a=e.length-1,s=this.parts,[l,u]=H(e,t);if(this.el=G.createElement(l,i),j.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=j.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith("$lit$")||t.startsWith(S)){const i=u[o++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+"$lit$").split(S),t=/([.?@])?(.*)/.exec(i);s.push({type:1,index:r,name:t[2],strings:e,ctor:"."===t[1]?K:"?"===t[1]?$:"@"===t[1]?Y:Q})}else s.push({type:6,index:r})}for(const t of e)n.removeAttribute(t)}if(D.test(n.tagName)){const e=n.textContent.split(S),t=e.length-1;if(t>0){n.textContent=b?b.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],C()),j.nextNode(),s.push({type:2,index:++r});n.append(e[t],C())}}}else if(8===n.nodeType)if(n.data===T)s.push({type:2,index:r});else{let e=-1;for(;-1!==(e=n.data.indexOf(S,e+1));)s.push({type:7,index:r}),e+=S.length-1}r++}}static createElement(e,t){const i=A.createElement("template");return i.innerHTML=e,i}}function z(e,t,i=e,n){var r,o,a,s;if(t===B)return t;let l=void 0!==n?null===(r=i._$Cl)||void 0===r?void 0:r[n]:i._$Cu;const u=O(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===u?l=void 0:(l=new u(e),l._$AT(e,i,n)),void 0!==n?(null!==(a=(s=i)._$Cl)&&void 0!==a?a:s._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(t=z(e,l._$AS(e,t.values),l,n)),t}class W{constructor(e,t){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var t;const{el:{content:i},parts:n}=this._$AD,r=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:A).importNode(i,!0);j.currentNode=r;let o=j.nextNode(),a=0,s=0,l=n[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new V(o,o.nextSibling,this,e):1===l.type?t=new l.ctor(o,l.name,l.strings,this,e):6===l.type&&(t=new Z(o,this,e)),this.v.push(t),l=n[++s]}a!==(null==l?void 0:l.index)&&(o=j.nextNode(),a++)}return r}m(e){let t=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class V{constructor(e,t,i,n){var r;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cg=null===(r=null==n?void 0:n.isConnected)||void 0===r||r}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=z(this,e,t),O(e)?e===q||null==e||""===e?(this._$AH!==q&&this._$AR(),this._$AH=q):e!==this._$AH&&e!==B&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.k(e):N(e)?this.S(e):this.$(e)}M(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}k(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}$(e){this._$AH!==q&&O(this._$AH)?this._$AA.nextSibling.data=e:this.k(A.createTextNode(e)),this._$AH=e}T(e){var t;const{values:i,_$litType$:n}=e,r="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=G.createElement(n.h,this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===r)this._$AH.m(i);else{const e=new W(r,this),t=e.p(this.options);e.m(i),this.k(t),this._$AH=e}}_$AC(e){let t=J.get(e.strings);return void 0===t&&J.set(e.strings,t=new G(e)),t}S(e){I(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const r of e)n===t.length?t.push(i=new V(this.M(C()),this.M(C()),this,this.options)):i=t[n],i._$AI(r),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cg=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Q{constructor(e,t,i,n,r){this.type=1,this._$AH=q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const r=this.strings;let o=!1;if(void 0===r)e=z(this,e,t,0),o=!O(e)||e!==this._$AH&&e!==B,o&&(this._$AH=e);else{const n=e;let a,s;for(e=r[0],a=0;a<r.length-1;a++)s=z(this,n[i+a],t,a),s===B&&(s=this._$AH[a]),o||(o=!O(s)||s!==this._$AH[a]),s===q?e=q:e!==q&&(e+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}o&&!n&&this.C(e)}C(e){e===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class K extends Q{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===q?void 0:e}}const X=b?b.emptyScript:"";class $ extends Q{constructor(){super(...arguments),this.type=4}C(e){e&&e!==q?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class Y extends Q{constructor(e,t,i,n,r){super(e,t,i,n,r),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=z(this,e,t,0))&&void 0!==i?i:q)===B)return;const n=this._$AH,r=e===q&&n!==q||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==q&&(n===q||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class Z{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){z(this,e)}}const ee={L:"$lit$",P:S,V:T,I:1,N:H,R:W,j:N,D:z,H:V,F:Q,O:$,W:Y,B:K,Z},te=window.litHtmlPolyfillSupport;var ie,ne;null==te||te(G,V),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.2.2");class re extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=((e,t,i)=>{var n,r;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let a=o._$litPart$;if(void 0===a){const e=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=a=new V(t.insertBefore(C(),e),e,void 0,null!=i?i:{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}render(){return B}}re.finalized=!0,re._$litElement$=!0,null===(ie=globalThis.litElementHydrateSupport)||void 0===ie||ie.call(globalThis,{LitElement:re});const oe=globalThis.litElementPolyfillSupport;null==oe||oe({LitElement:re}),(null!==(ne=globalThis.litElementVersions)&&void 0!==ne?ne:globalThis.litElementVersions=[]).push("3.2.0");const ae=e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:n}=t;return{kind:i,elements:n,finisher(t){window.customElements.define(e,t)}}})(e,t),se=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};function le(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):se(e,t)}function ue(e){return le({...e,state:!0})}function de(e,t){return(({finisher:e,descriptor:t})=>(i,n)=>{var r;if(void 0===n){const n=null!==(r=i.originalKey)&&void 0!==r?r:i.key,o=null!=t?{kind:"method",placement:"prototype",key:n,descriptor:t(i.key)}:{...i,key:n};return null!=e&&(o.finisher=function(t){e(t,n)}),o}{const r=i.constructor;void 0!==t&&Object.defineProperty(i,n,t(n)),null==e||e(r,n)}})({descriptor:i=>{const n={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(t){const t="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[t]&&(this[t]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(e))&&void 0!==n?n:null),this[t]}}return n}})}var ce;null===(ce=window.HTMLSlotElement)||void 0===ce||ce.prototype.assignedElements;const pe=e=>(...t)=>({_$litDirective$:e,values:t});class he{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const fe=pe(class extends he{constructor(e){var t;if(super(e),1!==e.type||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,n;if(void 0===this.et){this.et=new Set,void 0!==e.strings&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.st)||void 0===i?void 0:i.has(e))&&this.et.add(e);return this.render(t)}const r=e.element.classList;this.et.forEach((e=>{e in t||(r.remove(e),this.et.delete(e))}));for(const e in t){const i=!!t[e];i===this.et.has(e)||(null===(n=this.st)||void 0===n?void 0:n.has(e))||(i?(r.add(e),this.et.add(e)):(r.remove(e),this.et.delete(e)))}return B}}),{H:me}=ee,ge=(e,t)=>{var i,n;const r=e._$AN;if(void 0===r)return!1;for(const e of r)null===(n=(i=e)._$AO)||void 0===n||n.call(i,t,!1),ge(e,t);return!0},ve=e=>{let t,i;do{if(void 0===(t=e._$AM))break;i=t._$AN,i.delete(e),e=t}while(0===(null==i?void 0:i.size))},ye=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),Se(t)}};function be(e){void 0!==this._$AN?(ve(this),this._$AM=e,ye(this)):this._$AM=e}function we(e,t=!1,i=0){const n=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(n))for(let e=i;e<n.length;e++)ge(n[e],!1),ve(n[e]);else null!=n&&(ge(n,!1),ve(n));else ge(this,e)}const Se=e=>{var t,i,n,r;2==e.type&&(null!==(t=(n=e)._$AP)&&void 0!==t||(n._$AP=we),null!==(i=(r=e)._$AQ)&&void 0!==i||(r._$AQ=be))};class Te extends he{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),ye(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,n;e!==this.isConnected&&(this.isConnected=e,e?null===(i=this.reconnected)||void 0===i||i.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),t&&(ge(this,e),ve(this))}setValue(e){if((e=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const xe=()=>new Ae;class Ae{}const Ce=new WeakMap,Oe=pe(class extends Te{render(e){return q}update(e,[t]){var i;const n=t!==this.U;return n&&void 0!==this.U&&this.ot(void 0),(n||this.rt!==this.lt)&&(this.U=t,this.ht=null===(i=e.options)||void 0===i?void 0:i.host,this.ot(this.lt=e.element)),q}ot(e){var t;if("function"==typeof this.U){const i=null!==(t=this.ht)&&void 0!==t?t:globalThis;let n=Ce.get(i);void 0===n&&(n=new WeakMap,Ce.set(i,n)),void 0!==n.get(this.U)&&this.U.call(this.ht,void 0),n.set(this.U,e),void 0!==e&&this.U.call(this.ht,e)}else this.U.value=e}get rt(){var e,t,i;return"function"==typeof this.U?null===(t=Ce.get(null!==(e=this.ht)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.U):null===(i=this.U)||void 0===i?void 0:i.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),Ie=e=>{const t=e.replace(/\D/g,"").substring(0,10),i=t.substring(0,3),n=t.substring(3,6),r=t.substring(6,10);return t.length>5?`(${i}) ${n}-${r}`:t.length>2?`(${i}) ${n}`:t.length>0?`(${i}`:""},Ne=e=>{const t=(""+e).replace(/\D/g,"").match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);return t?[t[1]?"+1 ":"","(",t[2],") ",t[3],"-",t[4]].join(""):e},Ee=e=>{const t=e.keyCode;return t>=48&&t<=57||t>=96&&t<=105},Re=e=>e.altKey||e.ctrlKey||e.metaKey,_e=e=>{const t=e.keyCode;return e.shiftKey||35===t||36===t||8===t||9===t||13===t||46===t||t>36&&t<41||(e.ctrlKey||e.metaKey)&&(65===t||67===t||76===t||86===t||88===t||90===t)},Pe=pe(class extends he{constructor(e){var t;if(super(e),1!==e.type||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const n=e[i];return null==n?t:t+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ct){this.ct=new Set;for(const e in t)this.ct.add(e);return this.render(t)}this.ct.forEach((e=>{null==t[e]&&(this.ct.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const n=t[e];null!=n&&(this.ct.add(e),e.includes("-")?i.setProperty(e,n):i[e]=n)}return B}}),Me="#636889",Fe="#ffffff",De=(e,t)=>{let i=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),r=parseInt(e.substr(5,2),16);return i=Math.round(i*(1-t)+255*t),n=Math.round(n*(1-t)+255*t),r=Math.round(r*(1-t)+255*t),"#"+i.toString(16).padStart(2,"0")+n.toString(16).padStart(2,"0")+r.toString(16).padStart(2,"0")},ke=(e,t)=>2===e||70392===t;var Ue=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Le=class extends re{constructor(){super(...arguments),this.heading="",this.subtitle="",this.selected=!1,this.brandColor=Me,this.backgroundColor=Fe}render(){return U`
|
|
2
|
+
var e={8005:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionConsumerApiControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.cancelRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.cancelActionDto||void 0===e.cancelActionDto)throw new s.RequiredError("cancelActionDto","Required parameter requestParameters.cancelActionDto was null or undefined when calling cancel.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/cancel",method:"POST",headers:n,query:i,body:l.CancelActionDtoToJSON(e.cancelActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.cancel=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.cancelRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createNoShowActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.noShowActionDto||void 0===e.noShowActionDto)throw new s.RequiredError("noShowActionDto","Required parameter requestParameters.noShowActionDto was null or undefined when calling createNoShowAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/noShow",method:"POST",headers:n,query:i,body:l.NoShowActionDtoToJSON(e.noShowActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createNoShowAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createNoShowActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createRescheduleConfirmedActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.rescheduleConfirmedDto||void 0===e.rescheduleConfirmedDto)throw new s.RequiredError("rescheduleConfirmedDto","Required parameter requestParameters.rescheduleConfirmedDto was null or undefined when calling createRescheduleConfirmedAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/rescheduleConfirmed",method:"POST",headers:n,query:i,body:l.RescheduleConfirmedDtoToJSON(e.rescheduleConfirmedDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createRescheduleConfirmedAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createRescheduleConfirmedActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createRescheduleProposedActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.rescheduleProposedDto||void 0===e.rescheduleProposedDto)throw new s.RequiredError("rescheduleProposedDto","Required parameter requestParameters.rescheduleProposedDto was null or undefined when calling createRescheduleProposedAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/rescheduleProposed",method:"POST",headers:n,query:i,body:l.RescheduleProposedDtoToJSON(e.rescheduleProposedDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createRescheduleProposedAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createRescheduleProposedActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createShowActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.showActionDto||void 0===e.showActionDto)throw new s.RequiredError("showActionDto","Required parameter requestParameters.showActionDto was null or undefined when calling createShowAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/show",method:"POST",headers:n,query:i,body:l.ShowActionDtoToJSON(e.showActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createShowAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createShowActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.scheduleActionRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.scheduleDto||void 0===e.scheduleDto)throw new s.RequiredError("scheduleDto","Required parameter requestParameters.scheduleDto was null or undefined when calling scheduleAction.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/schedule",method:"POST",headers:n,query:i,body:l.ScheduleDtoToJSON(e.scheduleDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.scheduleAction=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.scheduleActionRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.sendAgentMessageRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.sendAgentMessageDto||void 0===e.sendAgentMessageDto)throw new s.RequiredError("sendAgentMessageDto","Required parameter requestParameters.sendAgentMessageDto was null or undefined when calling sendAgentMessage.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/sendAgentMessage",method:"POST",headers:n,query:i,body:l.SendAgentMessageDtoToJSON(e.sendAgentMessageDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.sendAgentMessage=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.sendAgentMessageRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateAgentOnContextRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling updateAgentOnContext.");if(null===e.leasingAgentId||void 0===e.leasingAgentId)throw new s.RequiredError("leasingAgentId","Required parameter requestParameters.leasingAgentId was null or undefined when calling updateAgentOnContext.");return i={},n={},[4,this.request({path:"/api/v1/actions/updateAgentOnContext/{contextId}/{leasingAgentId}".replace("{contextId}",encodeURIComponent(String(e.contextId))).replace("{leasingAgentId}",encodeURIComponent(String(e.leasingAgentId))),method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updateAgentOnContext=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateAgentOnContextRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.walkInAndShowCreateRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.walkInAndShowActionDto||void 0===e.walkInAndShowActionDto)throw new s.RequiredError("walkInAndShowActionDto","Required parameter requestParameters.walkInAndShowActionDto was null or undefined when calling walkInAndShowCreate.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/walkInAndShow",method:"POST",headers:n,query:i,body:l.WalkInAndShowActionDtoToJSON(e.walkInAndShowActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.walkInAndShowCreate=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.walkInAndShowCreateRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.walkInOrCallCreateRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.walkInOrCallActionDto||void 0===e.walkInOrCallActionDto)throw new s.RequiredError("walkInOrCallActionDto","Required parameter requestParameters.walkInOrCallActionDto was null or undefined when calling walkInOrCallCreate.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/actions/walkInOrCall",method:"POST",headers:n,query:i,body:l.WalkInOrCallActionDtoToJSON(e.walkInOrCallActionDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.walkInOrCallCreate=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.walkInOrCallCreateRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ActionConsumerApiControllerApi=u},2497:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AlertQueueControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.allForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling allForBuilding.");return i={},n={},[4,this.request({path:"/api/v1/alerts/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.AlertQueueInfoFromJSON)}))]}}))}))},t.prototype.allForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.allForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.emailsForContextRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling emailsForContext.");return i={},n={},[4,this.request({path:"/api/v1/alerts/{contextId}/emails/".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.AlertQueueMessageFromJSON)}))]}}))}))},t.prototype.emailsForContext=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.emailsForContextRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.textsForContextRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling textsForContext.");return i={},n={},[4,this.request({path:"/api/v1/alerts/{contextId}/texts/".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.AlertQueueMessageFromJSON)}))]}}))}))},t.prototype.textsForContext=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.textsForContextRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.AlertQueueControllerApi=u},8730:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.create2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.communityFormView||void 0===e.communityFormView)throw new s.RequiredError("communityFormView","Required parameter requestParameters.communityFormView was null or undefined when calling create2.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/",method:"POST",headers:n,query:i,body:l.CommunityFormViewToJSON(e.communityFormView)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UiBuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.create2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.create2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.deleteAvatarRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling deleteAvatar.");return i={},n={},[4,this.request({path:"/api/v1/building/{id}/avatar".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.deleteAvatar=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.deleteAvatarRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.deleteLogoRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling deleteLogo.");return i={},n={},[4,this.request({path:"/api/v1/building/{id}/logo".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.deleteLogo=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.deleteLogoRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.get4Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling get4.");return i={},n={},[4,this.request({path:"/api/v1/building/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UiBuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.get4=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.get4Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getActiveBuildingsMapRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getActiveBuildingsMap.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/buildingStatuses",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getActiveBuildingsMap=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getActiveBuildingsMapRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAll1Raw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/building/",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.CommunityPageBuildingFromJSON)}))]}}))}))},t.prototype.getAll1=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getAll1Raw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getBuildingAiAgentNameMapRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getBuildingAiAgentNameMap.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/buildingAiAgents",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getBuildingAiAgentNameMap=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingAiAgentNameMapRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingNameMapRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getBuildingNameMap.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/buildingNames",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getBuildingNameMap=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingNameMapRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingTimezoneMapRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getBuildingTimezoneMap.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/buildingTimeZones",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getBuildingTimezoneMap=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingTimezoneMapRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.putChatThemeRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o,l,u;return a(this,(function(a){switch(a.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling putChatTheme.");if(null===e.title||void 0===e.title)throw new s.RequiredError("title","Required parameter requestParameters.title was null or undefined when calling putChatTheme.");if(null===e.subtitle||void 0===e.subtitle)throw new s.RequiredError("subtitle","Required parameter requestParameters.subtitle was null or undefined when calling putChatTheme.");if(null===e.bannerColor||void 0===e.bannerColor)throw new s.RequiredError("bannerColor","Required parameter requestParameters.bannerColor was null or undefined when calling putChatTheme.");if(null===e.bannerTextColor||void 0===e.bannerTextColor)throw new s.RequiredError("bannerTextColor","Required parameter requestParameters.bannerTextColor was null or undefined when calling putChatTheme.");if(null===e.messageColor||void 0===e.messageColor)throw new s.RequiredError("messageColor","Required parameter requestParameters.messageColor was null or undefined when calling putChatTheme.");if(null===e.messageTextColor||void 0===e.messageTextColor)throw new s.RequiredError("messageTextColor","Required parameter requestParameters.messageTextColor was null or undefined when calling putChatTheme.");if(null===e.launchButtonColor||void 0===e.launchButtonColor)throw new s.RequiredError("launchButtonColor","Required parameter requestParameters.launchButtonColor was null or undefined when calling putChatTheme.");if(null===e.launchButtonIconColor||void 0===e.launchButtonIconColor)throw new s.RequiredError("launchButtonIconColor","Required parameter requestParameters.launchButtonIconColor was null or undefined when calling putChatTheme.");if(null===e.launchButtonSize||void 0===e.launchButtonSize)throw new s.RequiredError("launchButtonSize","Required parameter requestParameters.launchButtonSize was null or undefined when calling putChatTheme.");if(null===e.avatarType||void 0===e.avatarType)throw new s.RequiredError("avatarType","Required parameter requestParameters.avatarType was null or undefined when calling putChatTheme.");if(null===e.avatarInitials||void 0===e.avatarInitials)throw new s.RequiredError("avatarInitials","Required parameter requestParameters.avatarInitials was null or undefined when calling putChatTheme.");return i={},void 0!==e.title&&(i.title=e.title),void 0!==e.subtitle&&(i.subtitle=e.subtitle),void 0!==e.bannerColor&&(i.bannerColor=e.bannerColor),void 0!==e.bannerTextColor&&(i.bannerTextColor=e.bannerTextColor),void 0!==e.messageColor&&(i.messageColor=e.messageColor),void 0!==e.messageTextColor&&(i.messageTextColor=e.messageTextColor),void 0!==e.launchButtonColor&&(i.launchButtonColor=e.launchButtonColor),void 0!==e.launchButtonIconColor&&(i.launchButtonIconColor=e.launchButtonIconColor),void 0!==e.launchButtonSize&&(i.launchButtonSize=e.launchButtonSize),void 0!==e.avatarType&&(i.avatarType=e.avatarType),void 0!==e.avatarInitials&&(i.avatarInitials=e.avatarInitials),n={},r=[{contentType:"multipart/form-data"}],o=s.canConsumeForm(r),l=o?new FormData:new URLSearchParams,void 0!==e.avatarSrc&&l.append("avatarSrc",e.avatarSrc),[4,this.request({path:"/api/v1/building/{id}/chat-theme".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l},t)];case 1:return u=a.sent(),[2,new s.VoidApiResponse(u)]}}))}))},t.prototype.putChatTheme=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putChatThemeRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.putSSTThemeRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o,l,u;return a(this,(function(a){switch(a.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling putSSTTheme.");if(null===e.primaryColor||void 0===e.primaryColor)throw new s.RequiredError("primaryColor","Required parameter requestParameters.primaryColor was null or undefined when calling putSSTTheme.");if(null===e.backgroundColor||void 0===e.backgroundColor)throw new s.RequiredError("backgroundColor","Required parameter requestParameters.backgroundColor was null or undefined when calling putSSTTheme.");return i={},void 0!==e.primaryColor&&(i.primaryColor=e.primaryColor),void 0!==e.backgroundColor&&(i.backgroundColor=e.backgroundColor),n={},r=[{contentType:"multipart/form-data"}],o=s.canConsumeForm(r),l=o?new FormData:new URLSearchParams,void 0!==e.logoSrc&&l.append("logoSrc",e.logoSrc),[4,this.request({path:"/api/v1/building/{id}/sst-theme".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l},t)];case 1:return u=a.sent(),[2,new s.VoidApiResponse(u)]}}))}))},t.prototype.putSSTTheme=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putSSTThemeRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.update5Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update5.");if(null===e.communityFormView||void 0===e.communityFormView)throw new s.RequiredError("communityFormView","Required parameter requestParameters.communityFormView was null or undefined when calling update5.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.CommunityFormViewToJSON(e.communityFormView)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UiBuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.update5=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update5Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateDailyReportEmailsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling updateDailyReportEmails.");if(null===e.updateEmailsRequest||void 0===e.updateEmailsRequest)throw new s.RequiredError("updateEmailsRequest","Required parameter requestParameters.updateEmailsRequest was null or undefined when calling updateDailyReportEmails.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/dailyReportEmails/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.UpdateEmailsRequestToJSON(e.updateEmailsRequest)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updateDailyReportEmails=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateDailyReportEmailsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateHandoffForwardEmailsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling updateHandoffForwardEmails.");if(null===e.updateEmailsRequest||void 0===e.updateEmailsRequest)throw new s.RequiredError("updateEmailsRequest","Required parameter requestParameters.updateEmailsRequest was null or undefined when calling updateHandoffForwardEmails.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/handoffForwardEmails/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.UpdateEmailsRequestToJSON(e.updateEmailsRequest)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updateHandoffForwardEmails=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateHandoffForwardEmailsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateWeeklyReportEmailsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling updateWeeklyReportEmails.");if(null===e.updateEmailsRequest||void 0===e.updateEmailsRequest)throw new s.RequiredError("updateEmailsRequest","Required parameter requestParameters.updateEmailsRequest was null or undefined when calling updateWeeklyReportEmails.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/building/weeklyReportEmails/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.UpdateEmailsRequestToJSON(e.updateEmailsRequest)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updateWeeklyReportEmails=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateWeeklyReportEmailsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.BuildingControllerApi=u},9530:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingSchedulingControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getTourAvailabilityRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getTourAvailability.");if(null===e.startTime||void 0===e.startTime)throw new s.RequiredError("startTime","Required parameter requestParameters.startTime was null or undefined when calling getTourAvailability.");if(null===e.endTime||void 0===e.endTime)throw new s.RequiredError("endTime","Required parameter requestParameters.endTime was null or undefined when calling getTourAvailability.");return i={},void 0!==e.startTime&&(i.startTime=e.startTime),void 0!==e.endTime&&(i.endTime=e.endTime),n={},[4,this.request({path:"/api/pub/v1/buildings/{buildingId}/tour/availabilities".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.TourAvailabilityResponseFromJSON(e)}))]}}))}))},t.prototype.getTourAvailability=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getTourAvailabilityRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.BuildingSchedulingControllerApi=u},8823:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingsControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.listUnitsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling listUnits.");return i={},n={},[4,this.request({path:"/api/buildings/{buildingId}/units".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.listUnits=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.listUnitsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.BuildingsControllerApi=l},4100:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.CalendarEventTourHandlerControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.createCalendarEventTourHandlerRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.createCalendarEventTourHandlerDto||void 0===e.createCalendarEventTourHandlerDto)throw new s.RequiredError("createCalendarEventTourHandlerDto","Required parameter requestParameters.createCalendarEventTourHandlerDto was null or undefined when calling createCalendarEventTourHandler.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/tourHandler/assign",method:"POST",headers:n,query:i,body:l.CreateCalendarEventTourHandlerDtoToJSON(e.createCalendarEventTourHandlerDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.createCalendarEventTourHandler=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createCalendarEventTourHandlerRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getCurrentTourHandlersForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getCurrentTourHandlersForBuilding.");return i={},n={},[4,this.request({path:"/api/v1/tourHandler/getForBuilding/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return s.mapValues(e,l.CalendarEventTourHandlerFromJSON)}))]}}))}))},t.prototype.getCurrentTourHandlersForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getCurrentTourHandlersForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.CalendarEventTourHandlerControllerApi=u},1210:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTelemetryControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.postChatEventRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.chatTelemetryDto||void 0===e.chatTelemetryDto)throw new s.RequiredError("chatTelemetryDto","Required parameter requestParameters.chatTelemetryDto was null or undefined when calling postChatEvent.");return i={},(n={})["Content-Type"]="application/json",void 0!==e.userAgent&&null!==e.userAgent&&(n["user-agent"]=String(e.userAgent)),[4,this.request({path:"/api/pub/chat-stats",method:"POST",headers:n,query:i,body:l.ChatTelemetryDtoToJSON(e.chatTelemetryDto)},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.postChatEvent=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.postChatEventRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.ChatTelemetryControllerApi=u},3515:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAgentIdFromContextRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling getAgentIdFromContext.");return i={},n={},[4,this.request({path:"/api/pub/context/{contextId}/getAgentId".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getAgentIdFromContext=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAgentIdFromContextRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ContextControllerApi=l},5855:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getConversationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.conversationKey||void 0===e.conversationKey)throw new s.RequiredError("conversationKey","Required parameter requestParameters.conversationKey was null or undefined when calling getConversation.");return i={},n={},[4,this.request({path:"/api/pub/conversation/{conversationKey}".replace("{conversationKey}",encodeURIComponent(String(e.conversationKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ConversationFromJSON(e)}))]}}))}))},t.prototype.getConversation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getConversationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getConversation1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling getConversation1.");return i={},n={},[4,this.request({path:"/api/pub/conversation/contextId/{contextId}/text".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ConversationFromJSON(e)}))]}}))}))},t.prototype.getConversation1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getConversation1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getConversationV2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.conversationKey||void 0===e.conversationKey)throw new s.RequiredError("conversationKey","Required parameter requestParameters.conversationKey was null or undefined when calling getConversationV2.");return i={},n={},[4,this.request({path:"/api/pub/conversation/v2/{conversationKey}".replace("{conversationKey}",encodeURIComponent(String(e.conversationKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ConversationV2FromJSON(e)}))]}}))}))},t.prototype.getConversationV2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getConversationV2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ConversationControllerApi=u},4345:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DialogueScriptControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.deleteScriptByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling deleteScriptById.");return i={},n={},[4,this.request({path:"/renterApi/v1/dialogueScripts/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.deleteScriptById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.deleteScriptByIdRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.getDefaultScriptsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/renterApi/v1/dialogueScripts/default",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.DialogueScriptFromJSON)}))]}}))}))},t.prototype.getDefaultScripts=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getDefaultScriptsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getScriptRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.intent||void 0===e.intent)throw new s.RequiredError("intent","Required parameter requestParameters.intent was null or undefined when calling getScript.");if(null===e.organizationId||void 0===e.organizationId)throw new s.RequiredError("organizationId","Required parameter requestParameters.organizationId was null or undefined when calling getScript.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getScript.");return i={},void 0!==e.organizationId&&(i.organizationId=e.organizationId),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/renterApi/v1/dialogueScripts/{intent}".replace("{intent}",encodeURIComponent(String(e.intent))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.DialogueScriptFromJSON(e)}))]}}))}))},t.prototype.getScript=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getScriptRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getScriptBySubintentRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.intent||void 0===e.intent)throw new s.RequiredError("intent","Required parameter requestParameters.intent was null or undefined when calling getScriptBySubintent.");if(null===e.subintent||void 0===e.subintent)throw new s.RequiredError("subintent","Required parameter requestParameters.subintent was null or undefined when calling getScriptBySubintent.");if(null===e.organizationId||void 0===e.organizationId)throw new s.RequiredError("organizationId","Required parameter requestParameters.organizationId was null or undefined when calling getScriptBySubintent.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getScriptBySubintent.");return i={},void 0!==e.organizationId&&(i.organizationId=e.organizationId),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/renterApi/v1/dialogueScripts/{intent}/{subintent}".replace("{intent}",encodeURIComponent(String(e.intent))).replace("{subintent}",encodeURIComponent(String(e.subintent))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.DialogueScriptFromJSON(e)}))]}}))}))},t.prototype.getScriptBySubintent=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getScriptBySubintentRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getScriptsForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.organizationId||void 0===e.organizationId)throw new s.RequiredError("organizationId","Required parameter requestParameters.organizationId was null or undefined when calling getScriptsForBuilding.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getScriptsForBuilding.");return i={},void 0!==e.organizationId&&(i.organizationId=e.organizationId),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/renterApi/v1/dialogueScripts",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.DialogueScriptFromJSON)}))]}}))}))},t.prototype.getScriptsForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getScriptsForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.putScriptRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.upsertDialogueScriptRequest||void 0===e.upsertDialogueScriptRequest)throw new s.RequiredError("upsertDialogueScriptRequest","Required parameter requestParameters.upsertDialogueScriptRequest was null or undefined when calling putScript.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/dialogueScripts",method:"PUT",headers:n,query:i,body:l.UpsertDialogueScriptRequestToJSON(e.upsertDialogueScriptRequest)},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.putScript=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putScriptRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t.prototype.putScriptsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.upsertDialogueScriptRequest||void 0===e.upsertDialogueScriptRequest)throw new s.RequiredError("upsertDialogueScriptRequest","Required parameter requestParameters.upsertDialogueScriptRequest was null or undefined when calling putScripts.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/dialogueScripts/upsertMany",method:"PUT",headers:n,query:i,body:e.upsertDialogueScriptRequest.map(l.UpsertDialogueScriptRequestToJSON)},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.putScripts=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putScriptsRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.DialogueScriptControllerApi=u},2938:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.EntrataProxyControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeadPickListsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.securityKey||void 0===e.securityKey)throw new s.RequiredError("securityKey","Required parameter requestParameters.securityKey was null or undefined when calling getLeadPickLists.");if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getLeadPickLists.");if(null===e.propertyId||void 0===e.propertyId)throw new s.RequiredError("propertyId","Required parameter requestParameters.propertyId was null or undefined when calling getLeadPickLists.");return i={},void 0!==e.securityKey&&(i.securityKey=e.securityKey),void 0!==e.userId&&(i.userId=e.userId),void 0!==e.propertyId&&(i.propertyId=e.propertyId),n={},[4,this.request({path:"/api/pub/entrata/getleadpicklists",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getLeadPickLists=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadPickListsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getMitsLeadsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.securityKey||void 0===e.securityKey)throw new s.RequiredError("securityKey","Required parameter requestParameters.securityKey was null or undefined when calling getMitsLeads.");if(null===e.leadId||void 0===e.leadId)throw new s.RequiredError("leadId","Required parameter requestParameters.leadId was null or undefined when calling getMitsLeads.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getMitsLeads.");return i={},void 0!==e.securityKey&&(i.securityKey=e.securityKey),void 0!==e.leadId&&(i.leadId=e.leadId),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/api/pub/entrata/getmitsleads",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getMitsLeads=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getMitsLeadsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.EntrataProxyControllerApi=l},5021:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.EscalationsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.escalationsForBuildingIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling escalationsForBuildingId.");return i={},n={},[4,this.request({path:"/api/v1/escalations/getByBuildingId/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.AlertQueueInfoFromJSON)}))]}}))}))},t.prototype.escalationsForBuildingId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.escalationsForBuildingIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.ignoreMCConversationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.mcId||void 0===e.mcId)throw new s.RequiredError("mcId","Required parameter requestParameters.mcId was null or undefined when calling ignoreMCConversation.");return i={},n={},[4,this.request({path:"/api/v1/escalations/mc/escalation/ignore/{mcId}".replace("{mcId}",encodeURIComponent(String(e.mcId))),method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.ignoreMCConversation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.ignoreMCConversationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.resolveEscalationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.resolveEscalationDto||void 0===e.resolveEscalationDto)throw new s.RequiredError("resolveEscalationDto","Required parameter requestParameters.resolveEscalationDto was null or undefined when calling resolveEscalation.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/escalations/resolve",method:"POST",headers:n,query:i,body:l.ResolveEscalationDtoToJSON(e.resolveEscalationDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.resolveEscalation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.resolveEscalationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.respondToMCConversationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.respondToMCConversationDTO||void 0===e.respondToMCConversationDTO)throw new s.RequiredError("respondToMCConversationDTO","Required parameter requestParameters.respondToMCConversationDTO was null or undefined when calling respondToMCConversation.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/escalations/mc/escalation/respond",method:"POST",headers:n,query:i,body:l.RespondToMCConversationDTOToJSON(e.respondToMCConversationDTO)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.respondToMCConversation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.respondToMCConversationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.EscalationsControllerApi=u},9962:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventsControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAssignedLeasingAgentIdForEventRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.eventId||void 0===e.eventId)throw new s.RequiredError("eventId","Required parameter requestParameters.eventId was null or undefined when calling getAssignedLeasingAgentIdForEvent.");return i={},n={},[4,this.request({path:"/api/v1/calendar/events/{eventId}/assignedLeasingAgentId".replace("{eventId}",encodeURIComponent(String(e.eventId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getAssignedLeasingAgentIdForEvent=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAssignedLeasingAgentIdForEventRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.EventsControllerApi=l},8196:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureFlagControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getBoolFeatureFlagRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.featureKey||void 0===e.featureKey)throw new s.RequiredError("featureKey","Required parameter requestParameters.featureKey was null or undefined when calling getBoolFeatureFlag.");if(null===e.requestDto||void 0===e.requestDto)throw new s.RequiredError("requestDto","Required parameter requestParameters.requestDto was null or undefined when calling getBoolFeatureFlag.");return i={},void 0!==e.requestDto&&(i.requestDto=e.requestDto),n={},[4,this.request({path:"/api/v1/features/bool/{featureKey}".replace("{featureKey}",encodeURIComponent(String(e.featureKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getBoolFeatureFlag=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBoolFeatureFlagRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getIntFeatureFlagRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.featureKey||void 0===e.featureKey)throw new s.RequiredError("featureKey","Required parameter requestParameters.featureKey was null or undefined when calling getIntFeatureFlag.");if(null===e.requestDto||void 0===e.requestDto)throw new s.RequiredError("requestDto","Required parameter requestParameters.requestDto was null or undefined when calling getIntFeatureFlag.");return i={},void 0!==e.requestDto&&(i.requestDto=e.requestDto),n={},[4,this.request({path:"/api/v1/features/int/{featureKey}".replace("{featureKey}",encodeURIComponent(String(e.featureKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getIntFeatureFlag=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getIntFeatureFlagRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getStringFeatureFlagRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.featureKey||void 0===e.featureKey)throw new s.RequiredError("featureKey","Required parameter requestParameters.featureKey was null or undefined when calling getStringFeatureFlag.");if(null===e.requestDto||void 0===e.requestDto)throw new s.RequiredError("requestDto","Required parameter requestParameters.requestDto was null or undefined when calling getStringFeatureFlag.");return i={},void 0!==e.requestDto&&(i.requestDto=e.requestDto),n={},[4,this.request({path:"/api/v1/features/string/{featureKey}".replace("{featureKey}",encodeURIComponent(String(e.featureKey))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getStringFeatureFlag=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getStringFeatureFlagRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.FeatureFlagControllerApi=l},5282:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FirstContactControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getFirstContactTypeForUserRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getFirstContactTypeForUser.");return i={},n={},[4,this.request({path:"/api/v1/firstcontact/user_id/{userId}".replace("{userId}",encodeURIComponent(String(e.userId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getFirstContactTypeForUser=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getFirstContactTypeForUserRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.FirstContactControllerApi=l},4702:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FollowUpControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setFollowupFromCalendarRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.followUpParams||void 0===e.followUpParams)throw new s.RequiredError("followUpParams","Required parameter requestParameters.followUpParams was null or undefined when calling setFollowupFromCalendar.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/followup/",method:"POST",headers:n,query:i,body:l.FollowUpParamsToJSON(e.followUpParams)},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.setFollowupFromCalendar=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.setFollowupFromCalendarRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.FollowUpControllerApi=u},683:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunnelIntegrationsControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.knockAppointmentEventsWebhook1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.body||void 0===e.body)throw new s.RequiredError("body","Required parameter requestParameters.body was null or undefined when calling knockAppointmentEventsWebhook1.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/integrations/funnel/events",method:"POST",headers:n,query:i,body:e.body},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.knockAppointmentEventsWebhook1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.knockAppointmentEventsWebhook1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.FunnelIntegrationsControllerApi=l},5977:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.KnockIntegrationsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAllKnockAgentsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.communityId||void 0===e.communityId)throw new s.RequiredError("communityId","Required parameter requestParameters.communityId was null or undefined when calling getAllKnockAgents.");return i={},n={},[4,this.request({path:"/api/v1/integrations/knock/{communityId}/agents".replace("{communityId}",encodeURIComponent(String(e.communityId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.KnockAgentsNodeFromJSON)}))]}}))}))},t.prototype.getAllKnockAgents=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAllKnockAgentsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getEliseAgentRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.communityId||void 0===e.communityId)throw new s.RequiredError("communityId","Required parameter requestParameters.communityId was null or undefined when calling getEliseAgent.");return i={},n={},[4,this.request({path:"/api/v1/integrations/knock/{communityId}/eliseAgent".replace("{communityId}",encodeURIComponent(String(e.communityId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.KnockAgentsNodeFromJSON(e)}))]}}))}))},t.prototype.getEliseAgent=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getEliseAgentRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getKnockCommunitiesRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/integrations/knock/communities",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.CommunitiesEdgeFromJSON)}))]}}))}))},t.prototype.getKnockCommunities=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getKnockCommunitiesRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getKnockCommunityIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingName||void 0===e.buildingName)throw new s.RequiredError("buildingName","Required parameter requestParameters.buildingName was null or undefined when calling getKnockCommunityId.");if(null===e.streetAddress||void 0===e.streetAddress)throw new s.RequiredError("streetAddress","Required parameter requestParameters.streetAddress was null or undefined when calling getKnockCommunityId.");return i={},void 0!==e.buildingName&&(i.buildingName=e.buildingName),void 0!==e.streetAddress&&(i.streetAddress=e.streetAddress),n={},[4,this.request({path:"/api/v1/integrations/knock/community/id",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getKnockCommunityId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getKnockCommunityIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.knockAppointmentEventsWebhookRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.body||void 0===e.body)throw new s.RequiredError("body","Required parameter requestParameters.body was null or undefined when calling knockAppointmentEventsWebhook.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/integrations/knock/appointment_events",method:"POST",headers:n,query:i,body:e.body},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.knockAppointmentEventsWebhook=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.knockAppointmentEventsWebhookRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.KnockIntegrationsControllerApi=u},8242:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.LeadSourcesControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeadSourcesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeadSources.");return i={},n={},[4,this.request({path:"/api/pub/lead-sources/v1/building/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LeadSourceResponseFromJSON(e)}))]}}))}))},t.prototype.getLeadSources=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadSourcesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getLeadSourcesIntegration1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeadSourcesIntegration1.");return i={},n={},[4,this.request({path:"/api/pub/lead-sources/v1/crm/building/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LeadSourceResponseFromJSON(e)}))]}}))}))},t.prototype.getLeadSourcesIntegration1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadSourcesIntegration1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.LeadSourcesControllerApi=u},9714:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.LeadsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeadThreadViewModelsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:return i={},void 0!==e.leadEmail&&(i.leadEmail=e.leadEmail),void 0!==e.leadPhoneNumber&&(i.leadPhoneNumber=e.leadPhoneNumber),void 0!==e.leadName&&(i.leadName=e.leadName),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/api/v1/leads",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.LeadThreadViewModelFromJSON)}))]}}))}))},t.prototype.getLeadThreadViewModels=function(e,t){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadThreadViewModelsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getLeadsWithSourceRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.leadEmail||void 0===e.leadEmail)throw new s.RequiredError("leadEmail","Required parameter requestParameters.leadEmail was null or undefined when calling getLeadsWithSource.");if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeadsWithSource.");return i={},void 0!==e.leadEmail&&(i.leadEmail=e.leadEmail),void 0!==e.buildingId&&(i.buildingId=e.buildingId),n={},[4,this.request({path:"/api/v1/leads/leadsWithSource",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.LeadWithSourceFromJSON)}))]}}))}))},t.prototype.getLeadsWithSource=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadsWithSourceRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.LeadsControllerApi=u},7659:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.LeasingAgentsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeasingAgentsForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeasingAgentsForBuilding.");return i={},n={},[4,this.request({path:"/api/v1/leasingagents/building/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.LeasingAgentFromJSON)}))]}}))}))},t.prototype.getLeasingAgentsForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeasingAgentsForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getLeasingAgentsForUserRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getLeasingAgentsForUser.");return i={},n={},[4,this.request({path:"/api/v1/leasingagents/{userId}".replace("{userId}",encodeURIComponent(String(e.userId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.LeasingAgentFromJSON)}))]}}))}))},t.prototype.getLeasingAgentsForUser=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeasingAgentsForUserRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.LeasingAgentsControllerApi=u},2311:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.MarketingSourcesControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.initializeWhitelisting1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling initializeWhitelisting1.");return i={},n={},[4,this.request({path:"/api/v1/marketingSources/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.ExternalBuildingSourceFromJSON)}))]}}))}))},t.prototype.initializeWhitelisting1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.initializeWhitelisting1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.MarketingSourcesControllerApi=u},5827:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.MeHomeControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getDashboardInfoRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getMEHomeDashboardInfoDto||void 0===e.getMEHomeDashboardInfoDto)throw new s.RequiredError("getMEHomeDashboardInfoDto","Required parameter requestParameters.getMEHomeDashboardInfoDto was null or undefined when calling getDashboardInfo.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/mehome/dashboardInfo",method:"POST",headers:n,query:i,body:l.GetMEHomeDashboardInfoDtoToJSON(e.getMEHomeDashboardInfoDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.MEHomeDashboardInfoFromJSON(e)}))]}}))}))},t.prototype.getDashboardInfo=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getDashboardInfoRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.MeHomeControllerApi=u},5334:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.OfficeHoursControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.refreshAnyoneHomeOfficeHoursRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/officehours/refreshAnyoneHomeOfficeHours",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.VoidApiResponse(n)]}}))}))},t.prototype.refreshAnyoneHomeOfficeHours=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.refreshAnyoneHomeOfficeHoursRaw(e)];case 1:return t.sent(),[2]}}))}))},t}(s.BaseAPI);t.OfficeHoursControllerApi=l},7043:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationApiControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.create1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.organization||void 0===e.organization)throw new s.RequiredError("organization","Required parameter requestParameters.organization was null or undefined when calling create1.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/company/",method:"POST",headers:n,query:i,body:l.OrganizationToJSON(e.organization)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.OrganizationFromJSON(e)}))]}}))}))},t.prototype.create1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.create1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.get3Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling get3.");return i={},n={},[4,this.request({path:"/api/v1/company/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.OrganizationFromJSON(e)}))]}}))}))},t.prototype.get3=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.get3Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getActiveBuildingNamesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling getActiveBuildingNames.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/company/activeBuildingNames",method:"POST",headers:n,query:i,body:e.requestBody},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getActiveBuildingNames=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getActiveBuildingNamesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getOrgsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/company/",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return l.ListWrapperOrganizationFromJSON(e)}))]}}))}))},t.prototype.getOrgs=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getOrgsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getUsersRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.orgId||void 0===e.orgId)throw new s.RequiredError("orgId","Required parameter requestParameters.orgId was null or undefined when calling getUsers.");return i={},n={},[4,this.request({path:"/api/v1/company/users/{orgId}".replace("{orgId}",encodeURIComponent(String(e.orgId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.XagacityUserFromJSON)}))]}}))}))},t.prototype.getUsers=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getUsersRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.update4Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update4.");if(null===e.organization||void 0===e.organization)throw new s.RequiredError("organization","Required parameter requestParameters.organization was null or undefined when calling update4.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/company/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.OrganizationToJSON(e.organization)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.OrganizationFromJSON(e)}))]}}))}))},t.prototype.update4=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update4Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.OrganizationApiControllerApi=u},1092:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PublicBuildingControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getOrgIdFromUUIDRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.uuid||void 0===e.uuid)throw new s.RequiredError("uuid","Required parameter requestParameters.uuid was null or undefined when calling getOrgIdFromUUID.");return i={},n={},[4,this.request({path:"/api/pub/v1/organization/{uuid}".replace("{uuid}",encodeURIComponent(String(e.uuid))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getOrgIdFromUUID=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getOrgIdFromUUIDRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getPublicBuildingInfoRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.organizationSlug||void 0===e.organizationSlug)throw new s.RequiredError("organizationSlug","Required parameter requestParameters.organizationSlug was null or undefined when calling getPublicBuildingInfo.");if(null===e.buildingSlug||void 0===e.buildingSlug)throw new s.RequiredError("buildingSlug","Required parameter requestParameters.buildingSlug was null or undefined when calling getPublicBuildingInfo.");return i={},n={},[4,this.request({path:"/api/pub/v1/organization/{organizationSlug}/building/{buildingSlug}".replace("{organizationSlug}",encodeURIComponent(String(e.organizationSlug))).replace("{buildingSlug}",encodeURIComponent(String(e.buildingSlug))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingPublicViewModelFromJSON(e)}))]}}))}))},t.prototype.getPublicBuildingInfo=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getPublicBuildingInfoRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.PublicBuildingControllerApi=u},535:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PublicUnsubscribeControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.unsubscribeFromStateRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.stateId||void 0===e.stateId)throw new s.RequiredError("stateId","Required parameter requestParameters.stateId was null or undefined when calling unsubscribeFromState.");return i={},n={},[4,this.request({path:"/api/unsubscribe/{stateId}".replace("{stateId}",encodeURIComponent(String(e.stateId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.unsubscribeFromState=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.unsubscribeFromStateRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.PublicUnsubscribeControllerApi=l},4071:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RecurringEventsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.delete1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling delete1.");return i={},n={},[4,this.request({path:"/api/v1/recurring_events/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.delete1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.delete1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.get2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling get2.");return i={},n={},[4,this.request({path:"/api/v1/recurring_events/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.RecurringEventDtoFromJSON(e)}))]}}))}))},t.prototype.get2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.get2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.saveRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.recurringEventCreateRequestDto||void 0===e.recurringEventCreateRequestDto)throw new s.RequiredError("recurringEventCreateRequestDto","Required parameter requestParameters.recurringEventCreateRequestDto was null or undefined when calling save.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/recurring_events",method:"POST",headers:n,query:i,body:l.RecurringEventCreateRequestDtoToJSON(e.recurringEventCreateRequestDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.save=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.saveRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.update3Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update3.");if(null===e.recurringEventUpdateRequestDto||void 0===e.recurringEventUpdateRequestDto)throw new s.RequiredError("recurringEventUpdateRequestDto","Required parameter requestParameters.recurringEventUpdateRequestDto was null or undefined when calling update3.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/recurring_events/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.RecurringEventUpdateRequestDtoToJSON(e.recurringEventUpdateRequestDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.update3=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update3Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RecurringEventsControllerApi=u},5834:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterBuildingControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.findRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.name||void 0===e.name)throw new s.RequiredError("name","Required parameter requestParameters.name was null or undefined when calling find.");if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling find.");if(null===e.zip||void 0===e.zip)throw new s.RequiredError("zip","Required parameter requestParameters.zip was null or undefined when calling find.");return i={},void 0!==e.name&&(i.name=e.name),void 0!==e.address&&(i.address=e.address),void 0!==e.zip&&(i.zip=e.zip),n={},[4,this.request({path:"/renterApi/v1/building/find",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.find=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.findBuildingsManagedByRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.email||void 0===e.email)throw new s.RequiredError("email","Required parameter requestParameters.email was null or undefined when calling findBuildingsManagedBy.");return i={},void 0!==e.email&&(i.email=e.email),n={},[4,this.request({path:"/renterApi/v1/building/managedBy",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.BuildingDetailsFromJSON)}))]}}))}))},t.prototype.findBuildingsManagedBy=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findBuildingsManagedByRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.findByNameRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling findByName.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.findByName=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findByNameRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"PATCH",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation1.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation2.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"PUT",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation3Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation3.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"OPTIONS",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation3=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation3Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation4Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation4.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation4=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation4Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation5Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation5.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation5=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation5Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.geocodeLocation6Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling geocodeLocation6.");return i={},void 0!==e.address&&(i.address=e.address),n={},[4,this.request({path:"/renterApi/v1/building/location/geocode",method:"HEAD",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LocationFromJSON(e)}))]}}))}))},t.prototype.geocodeLocation6=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.geocodeLocation6Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAllBuildingPreferencesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getAllBuildingPreferences.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/buildingPreferences".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getAllBuildingPreferences=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAllBuildingPreferencesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAllBuildingUnitsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getAllBuildingUnits.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/allUnits".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getAllBuildingUnits=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAllBuildingUnitsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingNameByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getBuildingNameById.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/name".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getBuildingNameById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingNameByIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingOverridesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getBuildingOverrides.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/handoffOverrides".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingOverrideFromJSON(e)}))]}}))}))},t.prototype.getBuildingOverrides=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingOverridesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingUnitsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getBuildingUnits.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/units".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getBuildingUnits=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingUnitsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingUnitsWithDefaultsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getBuildingUnitsWithDefaults.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/allActiveUnitsWithDefaults".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getBuildingUnitsWithDefaults=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingUnitsWithDefaultsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingUnitsWithDefaults1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.name||void 0===e.name)throw new s.RequiredError("name","Required parameter requestParameters.name was null or undefined when calling getBuildingUnitsWithDefaults1.");if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling getBuildingUnitsWithDefaults1.");if(null===e.zip||void 0===e.zip)throw new s.RequiredError("zip","Required parameter requestParameters.zip was null or undefined when calling getBuildingUnitsWithDefaults1.");return i={},void 0!==e.name&&(i.name=e.name),void 0!==e.address&&(i.address=e.address),void 0!==e.zip&&(i.zip=e.zip),n={},[4,this.request({path:"/renterApi/v1/building/allActiveUnitsWithDefaults",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getBuildingUnitsWithDefaults1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingUnitsWithDefaults1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getById.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/byId/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UiBuildingDetailsFromJSON(e)}))]}}))}))},t.prototype.getById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getByIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getEntities1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.entityConfig||void 0===e.entityConfig)throw new s.RequiredError("entityConfig","Required parameter requestParameters.entityConfig was null or undefined when calling getEntities1.");return i={},void 0!==e.entityConfig&&(i.entityConfig=e.entityConfig),n={},[4,this.request({path:"/renterApi/v1/building/entities",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.BuildingEntityFromJSON)}))]}}))}))},t.prototype.getEntities1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getEntities1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getFollowUpSettingsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.name||void 0===e.name)throw new s.RequiredError("name","Required parameter requestParameters.name was null or undefined when calling getFollowUpSettings.");if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling getFollowUpSettings.");if(null===e.zip||void 0===e.zip)throw new s.RequiredError("zip","Required parameter requestParameters.zip was null or undefined when calling getFollowUpSettings.");return i={},void 0!==e.name&&(i.name=e.name),void 0!==e.address&&(i.address=e.address),void 0!==e.zip&&(i.zip=e.zip),n={},[4,this.request({path:"/renterApi/v1/building/followUpSettings",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.FollowUpSettingsFromJSON(e)}))]}}))}))},t.prototype.getFollowUpSettings=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getFollowUpSettingsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getIncentivesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getIncentives.");return i={},void 0!==e.layout&&(i.layout=e.layout),n={},[4,this.request({path:"/renterApi/v1/building/{id}/incentives".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.UnitIncentiveResultFromJSON(e)}))]}}))}))},t.prototype.getIncentives=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getIncentivesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getRentcafePropertyIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getRentcafePropertyId.");if(null===e.voyagerPropertyCode||void 0===e.voyagerPropertyCode)throw new s.RequiredError("voyagerPropertyCode","Required parameter requestParameters.voyagerPropertyCode was null or undefined when calling getRentcafePropertyId.");return i={},void 0!==e.userId&&(i.userId=e.userId),void 0!==e.voyagerPropertyCode&&(i.voyagerPropertyCode=e.voyagerPropertyCode),n={},[4,this.request({path:"/renterApi/v1/building/rentcafe/propertyId",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.getRentcafePropertyId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getRentcafePropertyIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getTourPriorityByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getTourPriorityById.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/tourPriority".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.getTourPriorityById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getTourPriorityByIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getV2ConfigurationForBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getV2ConfigurationForBuilding.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{buildingId}/v2Configuration".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.V2BuildingMigrationStatusFromJSON(e)}))]}}))}))},t.prototype.getV2ConfigurationForBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getV2ConfigurationForBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getVirtualTourPlatformInfoRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getVirtualTourPlatformInfo.");return i={},n={},[4,this.request({path:"/renterApi/v1/building/{id}/preferences".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingTourTypePreferencesFromJSON(e)}))]}}))}))},t.prototype.getVirtualTourPlatformInfo=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getVirtualTourPlatformInfoRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.searchBuildingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.name||void 0===e.name)throw new s.RequiredError("name","Required parameter requestParameters.name was null or undefined when calling searchBuilding.");if(null===e.address||void 0===e.address)throw new s.RequiredError("address","Required parameter requestParameters.address was null or undefined when calling searchBuilding.");if(null===e.zip||void 0===e.zip)throw new s.RequiredError("zip","Required parameter requestParameters.zip was null or undefined when calling searchBuilding.");if(null===e.startTime||void 0===e.startTime)throw new s.RequiredError("startTime","Required parameter requestParameters.startTime was null or undefined when calling searchBuilding.");if(null===e.endTime||void 0===e.endTime)throw new s.RequiredError("endTime","Required parameter requestParameters.endTime was null or undefined when calling searchBuilding.");return i={},void 0!==e.name&&(i.name=e.name),void 0!==e.address&&(i.address=e.address),void 0!==e.zip&&(i.zip=e.zip),void 0!==e.startTime&&(i.startTime=e.startTime),void 0!==e.endTime&&(i.endTime=e.endTime),n={},[4,this.request({path:"/renterApi/v1/building/search/tour/availabilities",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.TourAvailabilityResponseFromJSON(e)}))]}}))}))},t.prototype.searchBuilding=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.searchBuildingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.searchBuilding1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.calendarId||void 0===e.calendarId)throw new s.RequiredError("calendarId","Required parameter requestParameters.calendarId was null or undefined when calling searchBuilding1.");if(null===e.startTime||void 0===e.startTime)throw new s.RequiredError("startTime","Required parameter requestParameters.startTime was null or undefined when calling searchBuilding1.");if(null===e.endTime||void 0===e.endTime)throw new s.RequiredError("endTime","Required parameter requestParameters.endTime was null or undefined when calling searchBuilding1.");if(null===e.tourTypes||void 0===e.tourTypes)throw new s.RequiredError("tourTypes","Required parameter requestParameters.tourTypes was null or undefined when calling searchBuilding1.");return i={},void 0!==e.calendarId&&(i.calendarId=e.calendarId),void 0!==e.startTime&&(i.startTime=e.startTime),void 0!==e.endTime&&(i.endTime=e.endTime),void 0!==e.tourTypes&&(i.tourTypes=e.tourTypes),n={},[4,this.request({path:"/renterApi/v1/building/search/tour/availabilities/calendar",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.TourAvailabilityResponseFromJSON(e)}))]}}))}))},t.prototype.searchBuilding1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.searchBuilding1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterBuildingControllerApi=u},4797:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterContextControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.associateLeadRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.contextId||void 0===e.contextId)throw new s.RequiredError("contextId","Required parameter requestParameters.contextId was null or undefined when calling associateLead.");if(null===e.associateLeadRequestDto||void 0===e.associateLeadRequestDto)throw new s.RequiredError("associateLeadRequestDto","Required parameter requestParameters.associateLeadRequestDto was null or undefined when calling associateLead.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/context/associateLead/{contextId}".replace("{contextId}",encodeURIComponent(String(e.contextId))),method:"POST",headers:n,query:i,body:l.AssociateLeadRequestDtoToJSON(e.associateLeadRequestDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.associateLead=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.associateLeadRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.associateLeadByStateIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.stateId||void 0===e.stateId)throw new s.RequiredError("stateId","Required parameter requestParameters.stateId was null or undefined when calling associateLeadByStateId.");if(null===e.associateLeadRequestDto||void 0===e.associateLeadRequestDto)throw new s.RequiredError("associateLeadRequestDto","Required parameter requestParameters.associateLeadRequestDto was null or undefined when calling associateLeadByStateId.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/context/associateLeadByStateId/{stateId}".replace("{stateId}",encodeURIComponent(String(e.stateId))),method:"POST",headers:n,query:i,body:l.AssociateLeadRequestDtoToJSON(e.associateLeadRequestDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.associateLeadByStateId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.associateLeadByStateIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getContextByPartyIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.partyId||void 0===e.partyId)throw new s.RequiredError("partyId","Required parameter requestParameters.partyId was null or undefined when calling getContextByPartyId.");return i={},n={},[4,this.request({path:"/renterApi/v1/context/partyId/{partyId}".replace("{partyId}",encodeURIComponent(String(e.partyId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ContextDtoFromJSON(e)}))]}}))}))},t.prototype.getContextByPartyId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getContextByPartyIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getOrCreateContextFromChatRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getOrCreateContextFromChat.");if(null===e.getOrCreateContextDto||void 0===e.getOrCreateContextDto)throw new s.RequiredError("getOrCreateContextDto","Required parameter requestParameters.getOrCreateContextDto was null or undefined when calling getOrCreateContextFromChat.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/context/chat/getOrCreate/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:n,query:i,body:l.GetOrCreateContextDtoToJSON(e.getOrCreateContextDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ContextDtoFromJSON(e)}))]}}))}))},t.prototype.getOrCreateContextFromChat=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getOrCreateContextFromChatRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterContextControllerApi=u},9925:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterLeadSourcesControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getLeadSourcesIntegrationRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getLeadSourcesIntegration.");return i={},n={},[4,this.request({path:"/renterApi/v1/leadSources/crm/building/{buildingId}".replace("{buildingId}",encodeURIComponent(String(e.buildingId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.LeadSourceResponseFromJSON(e)}))]}}))}))},t.prototype.getLeadSourcesIntegration=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getLeadSourcesIntegrationRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterLeadSourcesControllerApi=u},9412:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterPartyControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.updatePartyLeadRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling updatePartyLead.");if(null===e.leadInfoUpdateDto||void 0===e.leadInfoUpdateDto)throw new s.RequiredError("leadInfoUpdateDto","Required parameter requestParameters.leadInfoUpdateDto was null or undefined when calling updatePartyLead.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/party/{id}/lead".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.LeadInfoUpdateDtoToJSON(e.leadInfoUpdateDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.updatePartyLead=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updatePartyLeadRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterPartyControllerApi=u},7411:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RetrieveQuestionAnswersAcceptEnum=t.RenterQaControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.retrieveQuestionAnswersRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.requestBody||void 0===e.requestBody)throw new s.RequiredError("requestBody","Required parameter requestParameters.requestBody was null or undefined when calling retrieveQuestionAnswers.");return i={},void 0!==e.requestBody&&(i.requestBody=e.requestBody),n={},void 0!==e.accept&&null!==e.accept&&(n.Accept=String(e.accept)),[4,this.request({path:"/renterApi/v1/qa",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ElisePredictedResponseFromJSON(e)}))]}}))}))},t.prototype.retrieveQuestionAnswers=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.retrieveQuestionAnswersRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterQaControllerApi=u,(t.RetrieveQuestionAnswersAcceptEnum||(t.RetrieveQuestionAnswersAcceptEnum={})).ApplicationJson="application/json"},1562:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterTourControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.bookRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.bookTourDto||void 0===e.bookTourDto)throw new s.RequiredError("bookTourDto","Required parameter requestParameters.bookTourDto was null or undefined when calling book.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/tour/book",method:"POST",headers:n,query:i,body:l.BookTourDtoToJSON(e.bookTourDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.EliseCalendarEventFromJSON(e)}))]}}))}))},t.prototype.book=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.bookRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.bookByStateIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.bookTourByStateIdDto||void 0===e.bookTourByStateIdDto)throw new s.RequiredError("bookTourByStateIdDto","Required parameter requestParameters.bookTourByStateIdDto was null or undefined when calling bookByStateId.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/tour/bookByStateId",method:"POST",headers:n,query:i,body:l.BookTourByStateIdDtoToJSON(e.bookTourByStateIdDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.EliseCalendarEventFromJSON(e)}))]}}))}))},t.prototype.bookByStateId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.bookByStateIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.cancelAllRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.cancelTourDto||void 0===e.cancelTourDto)throw new s.RequiredError("cancelTourDto","Required parameter requestParameters.cancelTourDto was null or undefined when calling cancelAll.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/tour/cancelAll",method:"POST",headers:n,query:i,body:l.CancelTourDtoToJSON(e.cancelTourDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.cancelAll=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.cancelAllRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.cancelAllByStateIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.cancelTourByStateIdDto||void 0===e.cancelTourByStateIdDto)throw new s.RequiredError("cancelTourByStateIdDto","Required parameter requestParameters.cancelTourByStateIdDto was null or undefined when calling cancelAllByStateId.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/tour/cancelAllByStateId",method:"POST",headers:n,query:i,body:l.CancelTourByStateIdDtoToJSON(e.cancelTourByStateIdDto)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.cancelAllByStateId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.cancelAllByStateIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterTourControllerApi=u},3195:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterUnitControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAvailableUnitsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling getAvailableUnits.");if(null===e.layouts||void 0===e.layouts)throw new s.RequiredError("layouts","Required parameter requestParameters.layouts was null or undefined when calling getAvailableUnits.");if(null===e.startDate||void 0===e.startDate)throw new s.RequiredError("startDate","Required parameter requestParameters.startDate was null or undefined when calling getAvailableUnits.");if(null===e.endDate||void 0===e.endDate)throw new s.RequiredError("endDate","Required parameter requestParameters.endDate was null or undefined when calling getAvailableUnits.");return i={},void 0!==e.buildingId&&(i.buildingId=e.buildingId),e.layouts&&(i.layouts=e.layouts),void 0!==e.startDate&&(i.startDate=e.startDate.toISOString().substr(0,10)),void 0!==e.endDate&&(i.endDate=e.endDate.toISOString().substr(0,10)),n={},[4,this.request({path:"/renterApi/v1/unit/availability",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.UnitDetailsFromJSON)}))]}}))}))},t.prototype.getAvailableUnits=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAvailableUnitsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterUnitControllerApi=u},3978:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenterUserControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.findByEmailRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.email||void 0===e.email)throw new s.RequiredError("email","Required parameter requestParameters.email was null or undefined when calling findByEmail.");return i={},n={},[4,this.request({path:"/renterApi/v1/user/email/{email}".replace("{email}",encodeURIComponent(String(e.email))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserFromJSON(e)}))]}}))}))},t.prototype.findByEmail=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findByEmailRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.findByIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling findById.");return i={},n={},[4,this.request({path:"/renterApi/v1/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserFromJSON(e)}))]}}))}))},t.prototype.findById=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.findByIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getEntitiesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.entityConfig||void 0===e.entityConfig)throw new s.RequiredError("entityConfig","Required parameter requestParameters.entityConfig was null or undefined when calling getEntities.");return i={},void 0!==e.entityConfig&&(i.entityConfig=e.entityConfig),n={},[4,this.request({path:"/renterApi/v1/user/entities",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.InboxEntityFromJSON)}))]}}))}))},t.prototype.getEntities=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getEntitiesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.RenterUserControllerApi=u},7282:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReportingServiceControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.generateAndDownloadExcelReportRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingId||void 0===e.buildingId)throw new s.RequiredError("buildingId","Required parameter requestParameters.buildingId was null or undefined when calling generateAndDownloadExcelReport.");if(null===e.startDate||void 0===e.startDate)throw new s.RequiredError("startDate","Required parameter requestParameters.startDate was null or undefined when calling generateAndDownloadExcelReport.");if(null===e.endDate||void 0===e.endDate)throw new s.RequiredError("endDate","Required parameter requestParameters.endDate was null or undefined when calling generateAndDownloadExcelReport.");return i={},void 0!==e.buildingId&&(i.buildingId=e.buildingId),void 0!==e.startDate&&(i.startDate=e.startDate.toISOString().substr(0,10)),void 0!==e.endDate&&(i.endDate=e.endDate.toISOString().substr(0,10)),n={},[4,this.request({path:"/api/v1/report/excel/generateAndDownload",method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.generateAndDownloadExcelReport=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.generateAndDownloadExcelReportRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.generateAndSendExcelReportsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.generateAndSendExcelReportsOverrideSettings||void 0===e.generateAndSendExcelReportsOverrideSettings)throw new s.RequiredError("generateAndSendExcelReportsOverrideSettings","Required parameter requestParameters.generateAndSendExcelReportsOverrideSettings was null or undefined when calling generateAndSendExcelReports.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/report/excel/generateAndSend",method:"POST",headers:n,query:i,body:l.GenerateAndSendExcelReportsOverrideSettingsToJSON(e.generateAndSendExcelReportsOverrideSettings)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r)]}}))}))},t.prototype.generateAndSendExcelReports=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.generateAndSendExcelReportsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getBuildingsToReceiveReportsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/report/buildingsToReceiveReports",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n)]}}))}))},t.prototype.getBuildingsToReceiveReports=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getBuildingsToReceiveReportsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getByBuildingAndDateRangeRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getReportsForBuildingAndDateRangeDto||void 0===e.getReportsForBuildingAndDateRangeDto)throw new s.RequiredError("getReportsForBuildingAndDateRangeDto","Required parameter requestParameters.getReportsForBuildingAndDateRangeDto was null or undefined when calling getByBuildingAndDateRange.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/report",method:"POST",headers:n,query:i,body:l.GetReportsForBuildingAndDateRangeDtoToJSON(e.getReportsForBuildingAndDateRangeDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.HourlyReportDtoFromJSON)}))]}}))}))},t.prototype.getByBuildingAndDateRange=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getByBuildingAndDateRangeRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getByBuildingsAndDateRangeRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getReportsForBuildingsAndDateRangeDto||void 0===e.getReportsForBuildingsAndDateRangeDto)throw new s.RequiredError("getReportsForBuildingsAndDateRangeDto","Required parameter requestParameters.getReportsForBuildingsAndDateRangeDto was null or undefined when calling getByBuildingsAndDateRange.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/report/getForBuildings",method:"POST",headers:n,query:i,body:l.GetReportsForBuildingsAndDateRangeDtoToJSON(e.getReportsForBuildingsAndDateRangeDto)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.WebReportingDashboardResponseFromJSON(e)}))]}}))}))},t.prototype.getByBuildingsAndDateRange=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getByBuildingsAndDateRangeRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getExcelReportSettingsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/report/excel/settings",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.ReportSettingFromJSON)}))]}}))}))},t.prototype.getExcelReportSettings=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getExcelReportSettingsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getRecipientsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/report/recipients",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.JSONApiResponse(n,(function(e){return e.map(l.WeeklyReportEmailFromJSON)}))]}}))}))},t.prototype.getRecipients=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getRecipientsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.upsertReportSettingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.reportSetting||void 0===e.reportSetting)throw new s.RequiredError("reportSetting","Required parameter requestParameters.reportSetting was null or undefined when calling upsertReportSetting.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/report/excel/reportSettings",method:"POST",headers:n,query:i,body:l.ReportSettingToJSON(e.reportSetting)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.upsertReportSetting=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.upsertReportSettingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ReportingServiceControllerApi=u},307:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseTemplateControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.resolveBatchRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.resolveScriptsRequest||void 0===e.resolveScriptsRequest)throw new s.RequiredError("resolveScriptsRequest","Required parameter requestParameters.resolveScriptsRequest was null or undefined when calling resolveBatch.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/responseTemplates/resolve",method:"POST",headers:n,query:i,body:l.ResolveScriptsRequestToJSON(e.resolveScriptsRequest)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.ScriptFromJSON)}))]}}))}))},t.prototype.resolveBatch=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.resolveBatchRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ResponseTemplateControllerApi=u},4968:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Update2ScriptTypeEnum=t.GetScriptTypeEnum=t.DeleteScriptTypeEnum=t.ScriptsApiControllerApi=void 0;var s,l,u,d=i(296),c=i(4584),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype._deleteRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new d.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling _delete.");if(null===e.scriptType||void 0===e.scriptType)throw new d.RequiredError("scriptType","Required parameter requestParameters.scriptType was null or undefined when calling _delete.");return i={},n={},[4,this.request({path:"/api/v1/scripts/{id}/type/{scriptType}".replace("{id}",encodeURIComponent(String(e.id))).replace("{scriptType}",encodeURIComponent(String(e.scriptType))),method:"DELETE",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptFromJSON(e)}))]}}))}))},t.prototype._delete=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this._deleteRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.createRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.createScriptRequest||void 0===e.createScriptRequest)throw new d.RequiredError("createScriptRequest","Required parameter requestParameters.createScriptRequest was null or undefined when calling create.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/scripts/",method:"POST",headers:n,query:i,body:c.CreateScriptRequestToJSON(e.createScriptRequest)},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptFromJSON(e)}))]}}))}))},t.prototype.create=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.createRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new d.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling get.");if(null===e.scriptType||void 0===e.scriptType)throw new d.RequiredError("scriptType","Required parameter requestParameters.scriptType was null or undefined when calling get.");return i={},n={},[4,this.request({path:"/api/v1/scripts/{id}/type/{scriptType}".replace("{id}",encodeURIComponent(String(e.id))).replace("{scriptType}",encodeURIComponent(String(e.scriptType))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptFromJSON(e)}))]}}))}))},t.prototype.get=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.get1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.query||void 0===e.query)throw new d.RequiredError("query","Required parameter requestParameters.query was null or undefined when calling get1.");return i={},void 0!==e.query&&(i.query=e.query),n={},[4,this.request({path:"/api/v1/scripts/search",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptSearchResultFromJSON(e)}))]}}))}))},t.prototype.get1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.get1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.update2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new d.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update2.");if(null===e.scriptType||void 0===e.scriptType)throw new d.RequiredError("scriptType","Required parameter requestParameters.scriptType was null or undefined when calling update2.");if(null===e.updateScriptRequest||void 0===e.updateScriptRequest)throw new d.RequiredError("updateScriptRequest","Required parameter requestParameters.updateScriptRequest was null or undefined when calling update2.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/scripts/{id}/type/{scriptType}".replace("{id}",encodeURIComponent(String(e.id))).replace("{scriptType}",encodeURIComponent(String(e.scriptType))),method:"PUT",headers:n,query:i,body:c.UpdateScriptRequestToJSON(e.updateScriptRequest)},t)];case 1:return r=o.sent(),[2,new d.JSONApiResponse(r,(function(e){return c.ScriptFromJSON(e)}))]}}))}))},t.prototype.update2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(d.BaseAPI);t.ScriptsApiControllerApi=p,(u=t.DeleteScriptTypeEnum||(t.DeleteScriptTypeEnum={})).All="ALL",u.Template="TEMPLATE",u.TemplateItem="TEMPLATE_ITEM",(l=t.GetScriptTypeEnum||(t.GetScriptTypeEnum={})).All="ALL",l.Template="TEMPLATE",l.TemplateItem="TEMPLATE_ITEM",(s=t.Update2ScriptTypeEnum||(t.Update2ScriptTypeEnum={})).All="ALL",s.Template="TEMPLATE",s.TemplateItem="TEMPLATE_ITEM"},2760:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TaggingControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAttributesRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/tagging/attributes",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.TextApiResponse(n)]}}))}))},t.prototype.getAttributes=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getAttributesRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getIntentsRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/tagging/intents",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.TextApiResponse(n)]}}))}))},t.prototype.getIntents=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getIntentsRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getNextStateRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/tagging",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new s.TextApiResponse(n)]}}))}))},t.prototype.getNextState=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.getNextStateRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.replaceRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/tagging",method:"POST",headers:n,query:i,body:e.body},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.replace=function(e,t){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.replaceRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.TaggingControllerApi=l},8497:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TaggingS3ControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.uploadRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.tagId||void 0===e.tagId)throw new s.RequiredError("tagId","Required parameter requestParameters.tagId was null or undefined when calling upload.");if(null===e.aitId||void 0===e.aitId)throw new s.RequiredError("aitId","Required parameter requestParameters.aitId was null or undefined when calling upload.");if(null===e.env||void 0===e.env)throw new s.RequiredError("env","Required parameter requestParameters.env was null or undefined when calling upload.");return i={},void 0!==e.tagId&&(i.tag_id=e.tagId),void 0!==e.aitId&&(i.ait_id=e.aitId),void 0!==e.env&&(i.env=e.env),(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/taggingS3/uploadState",method:"POST",headers:n,query:i,body:l.InlineObject3ToJSON(e.inlineObject3)},t)];case 1:return r=o.sent(),[2,new s.TextApiResponse(r)]}}))}))},t.prototype.upload=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.uploadRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.TaggingS3ControllerApi=u},1270:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscribeControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.unsubscribeFromThreadRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.msgId||void 0===e.msgId)throw new s.RequiredError("msgId","Required parameter requestParameters.msgId was null or undefined when calling unsubscribeFromThread.");if(null===e.agtId||void 0===e.agtId)throw new s.RequiredError("agtId","Required parameter requestParameters.agtId was null or undefined when calling unsubscribeFromThread.");return i={},void 0!==e.msgId&&(i.msgId=e.msgId),void 0!==e.agtId&&(i.agtId=e.agtId),n={},[4,this.request({path:"/api/pub/unsubscribe",method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.VoidApiResponse(r)]}}))}))},t.prototype.unsubscribeFromThread=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.unsubscribeFromThreadRaw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.UnsubscribeControllerApi=l},6324:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.UserApiControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getAllRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:return i={},void 0!==e.active&&(i.active=e.active),n={},[4,this.request({path:"/api/v1/user/",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return e.map(l.XagacityUserFromJSON)}))]}}))}))},t.prototype.getAll=function(e,t){return void 0===e&&(e={}),o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAllRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getOne1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getOne1.");return i={},n={},[4,this.request({path:"/api/v1/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserFromJSON(e)}))]}}))}))},t.prototype.getOne1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getOne1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.update1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update1.");if(null===e.xagacityUser||void 0===e.xagacityUser)throw new s.RequiredError("xagacityUser","Required parameter requestParameters.xagacityUser was null or undefined when calling update1.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.XagacityUserToJSON(e.xagacityUser)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserFromJSON(e)}))]}}))}))},t.prototype.update1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.update1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.UserApiControllerApi=u},8878:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.V2BuildingControllerApi=void 0;var s=i(296),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.putChatThemeV2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o,l,u;return a(this,(function(a){switch(a.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling putChatThemeV2.");if(null===e.themeId||void 0===e.themeId)throw new s.RequiredError("themeId","Required parameter requestParameters.themeId was null or undefined when calling putChatThemeV2.");if(null===e.subtitle||void 0===e.subtitle)throw new s.RequiredError("subtitle","Required parameter requestParameters.subtitle was null or undefined when calling putChatThemeV2.");if(null===e.avatarType||void 0===e.avatarType)throw new s.RequiredError("avatarType","Required parameter requestParameters.avatarType was null or undefined when calling putChatThemeV2.");return i={},void 0!==e.themeId&&(i.themeId=e.themeId),void 0!==e.subtitle&&(i.subtitle=e.subtitle),void 0!==e.avatarType&&(i.avatarType=e.avatarType),n={},r=[{contentType:"multipart/form-data"}],o=s.canConsumeForm(r),l=o?new FormData:new URLSearchParams,void 0!==e.avatarSrc&&l.append("avatarSrc",e.avatarSrc),[4,this.request({path:"/api/v2/building/{id}/chat-theme".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:n,query:i,body:l},t)];case 1:return u=a.sent(),[2,new s.VoidApiResponse(u)]}}))}))},t.prototype.putChatThemeV2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.putChatThemeV2Raw(e,t)];case 1:return i.sent(),[2]}}))}))},t}(s.BaseAPI);t.V2BuildingControllerApi=l},5438:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.V2OracleControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getUnitAvailabilitiesRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getUnitAvailabilitiesRequest||void 0===e.getUnitAvailabilitiesRequest)throw new s.RequiredError("getUnitAvailabilitiesRequest","Required parameter requestParameters.getUnitAvailabilitiesRequest was null or undefined when calling getUnitAvailabilities.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/oracleHelper/getUnitAvailabilityDialogue",method:"POST",headers:n,query:i,body:l.GetUnitAvailabilitiesRequestToJSON(e.getUnitAvailabilitiesRequest)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.GetUnitAvailabilitiesResponseFromJSON(e)}))]}}))}))},t.prototype.getUnitAvailabilities=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getUnitAvailabilitiesRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getUnitAvailabilitiesForEntityRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getUnitAvailabilitiesRequest2||void 0===e.getUnitAvailabilitiesRequest2)throw new s.RequiredError("getUnitAvailabilitiesRequest2","Required parameter requestParameters.getUnitAvailabilitiesRequest2 was null or undefined when calling getUnitAvailabilitiesForEntity.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/renterApi/v1/oracleHelper/getUnitAvailabilityDialogueForEntity",method:"POST",headers:n,query:i,body:l.GetUnitAvailabilitiesRequest2ToJSON(e.getUnitAvailabilitiesRequest2)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.GetUnitAvailabilitiesResponseFromJSON(e)}))]}}))}))},t.prototype.getUnitAvailabilitiesForEntity=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getUnitAvailabilitiesForEntityRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.V2OracleControllerApi=u},917:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateCredentialsControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getBuildingExpansionResultRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.buildingName||void 0===e.buildingName)throw new s.RequiredError("buildingName","Required parameter requestParameters.buildingName was null or undefined when calling getBuildingExpansionResult.");if(null===e.userId||void 0===e.userId)throw new s.RequiredError("userId","Required parameter requestParameters.userId was null or undefined when calling getBuildingExpansionResult.");if(null===e.streetAddress||void 0===e.streetAddress)throw new s.RequiredError("streetAddress","Required parameter requestParameters.streetAddress was null or undefined when calling getBuildingExpansionResult.");return i={},void 0!==e.buildingName&&(i.buildingName=e.buildingName),void 0!==e.userId&&(i.userId=e.userId),void 0!==e.streetAddress&&(i.streetAddress=e.streetAddress),n={},[4,this.request({path:"/api/v1/validatecredentials/getBuildingExpansionResult",method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.BuildingExpansionValidationResultFromJSON(e)}))]}}))}))},t.prototype.getBuildingExpansionResult=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getBuildingExpansionResultRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.validateCredentialsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.validateCredentialsRequest||void 0===e.validateCredentialsRequest)throw new s.RequiredError("validateCredentialsRequest","Required parameter requestParameters.validateCredentialsRequest was null or undefined when calling validateCredentials.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/validatecredentials",method:"POST",headers:n,query:i,body:l.ValidateCredentialsRequestToJSON(e.validateCredentialsRequest)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.ValidateCredentialsResponseFromJSON(e)}))]}}))}))},t.prototype.validateCredentials=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.validateCredentialsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.ValidateCredentialsControllerApi=u},656:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GetAdditionalInfoForConfigStepNameEnum=t.WhiteListingControllerApi=void 0;var s,l=i(296),u=i(4584),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.continueConfigWithIdRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.configId||void 0===e.configId)throw new l.RequiredError("configId","Required parameter requestParameters.configId was null or undefined when calling continueConfigWithId.");return i={},n={},[4,this.request({path:"/api/v1/whitelisting/continueConfigWithId/{configId}".replace("{configId}",encodeURIComponent(String(e.configId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return u.WhiteListingExecutionResultFromJSON(e)}))]}}))}))},t.prototype.continueConfigWithId=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.continueConfigWithIdRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.continueInProgressRaw=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t={},i={},[4,this.request({path:"/api/v1/whitelisting/continueInProgress",method:"GET",headers:i,query:t},e)];case 1:return n=r.sent(),[2,new l.TextApiResponse(n)]}}))}))},t.prototype.continueInProgress=function(e){return o(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,this.continueInProgressRaw(e)];case 1:return[4,t.sent().value()];case 2:return[2,t.sent()]}}))}))},t.prototype.getAdditionalInfoForConfigRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.configId||void 0===e.configId)throw new l.RequiredError("configId","Required parameter requestParameters.configId was null or undefined when calling getAdditionalInfoForConfig.");if(null===e.stepName||void 0===e.stepName)throw new l.RequiredError("stepName","Required parameter requestParameters.stepName was null or undefined when calling getAdditionalInfoForConfig.");return i={},n={},[4,this.request({path:"/api/v1/whitelisting/run_step/{configId}/{stepName}".replace("{configId}",encodeURIComponent(String(e.configId))).replace("{stepName}",encodeURIComponent(String(e.stepName))),method:"POST",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new l.TextApiResponse(r)]}}))}))},t.prototype.getAdditionalInfoForConfig=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAdditionalInfoForConfigRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAdditionalInfoForConfig1Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.createWhitelistConfigRequest||void 0===e.createWhitelistConfigRequest)throw new l.RequiredError("createWhitelistConfigRequest","Required parameter requestParameters.createWhitelistConfigRequest was null or undefined when calling getAdditionalInfoForConfig1.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/whitelisting/createConfig",method:"POST",headers:n,query:i,body:u.CreateWhitelistConfigRequestToJSON(e.createWhitelistConfigRequest)},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return u.WhiteListConfigFromJSON(e)}))]}}))}))},t.prototype.getAdditionalInfoForConfig1=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAdditionalInfoForConfig1Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getAdditionalInfoForConfig2Raw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.configId||void 0===e.configId)throw new l.RequiredError("configId","Required parameter requestParameters.configId was null or undefined when calling getAdditionalInfoForConfig2.");return i={},n={},[4,this.request({path:"/api/v1/whitelisting/additionalInfo/{configId}".replace("{configId}",encodeURIComponent(String(e.configId))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return u.WhiteListingAdditionalInfoFromJSON(e)}))]}}))}))},t.prototype.getAdditionalInfoForConfig2=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getAdditionalInfoForConfig2Raw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.getViewModelsForBuildingsRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.getWhiteListTestsForBuildingsRequest||void 0===e.getWhiteListTestsForBuildingsRequest)throw new l.RequiredError("getWhiteListTestsForBuildingsRequest","Required parameter requestParameters.getWhiteListTestsForBuildingsRequest was null or undefined when calling getViewModelsForBuildings.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/whitelisting/getViewModelsForBuildings",method:"POST",headers:n,query:i,body:u.GetWhiteListTestsForBuildingsRequestToJSON(e.getWhiteListTestsForBuildingsRequest)},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return e.map(u.WhiteListTestDtoFromJSON)}))]}}))}))},t.prototype.getViewModelsForBuildings=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getViewModelsForBuildingsRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.initializeWhitelistingRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.initializeWhiteListingConfigRequest||void 0===e.initializeWhiteListingConfigRequest)throw new l.RequiredError("initializeWhiteListingConfigRequest","Required parameter requestParameters.initializeWhiteListingConfigRequest was null or undefined when calling initializeWhitelisting.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v1/whitelisting/initialize",method:"POST",headers:n,query:i,body:u.InitializeWhiteListingConfigRequestToJSON(e.initializeWhiteListingConfigRequest)},t)];case 1:return r=o.sent(),[2,new l.JSONApiResponse(r,(function(e){return u.WhiteListingExecutionResultFromJSON(e)}))]}}))}))},t.prototype.initializeWhitelisting=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.initializeWhitelistingRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(l.BaseAPI);t.WhiteListingControllerApi=d,(s=t.GetAdditionalInfoForConfigStepNameEnum||(t.GetAdditionalInfoForConfigStepNameEnum={})).Initiated="INITIATED",s.ConfigureSettings="CONFIGURE_SETTINGS",s.TimeZoneVerification="TIME_ZONE_VERIFICATION",s.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",s.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",s.AddAitsToBuilding="ADD_AITS_TO_BUILDING",s.RerunAvailabilities="RERUN_AVAILABILITIES",s.InsertGuestCard="INSERT_GUEST_CARD",s.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",s.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",s.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",s.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",s.AppointmentScheduled="APPOINTMENT_SCHEDULED",s.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",s.RequestCancelTour="REQUEST_CANCEL_TOUR",s.AppointmentCanceled="APPOINTMENT_CANCELED",s.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD"},1827:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},n(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityUserControllerApi=void 0;var s=i(296),l=i(4584),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getOneRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling getOne.");return i={},n={},[4,this.request({path:"/api/v2/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:n,query:i},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserWithCredentialsFromJSON(e)}))]}}))}))},t.prototype.getOne=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.getOneRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t.prototype.updateRaw=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:if(null===e.id||void 0===e.id)throw new s.RequiredError("id","Required parameter requestParameters.id was null or undefined when calling update.");if(null===e.xagacityUserWithCredentials||void 0===e.xagacityUserWithCredentials)throw new s.RequiredError("xagacityUserWithCredentials","Required parameter requestParameters.xagacityUserWithCredentials was null or undefined when calling update.");return i={},(n={})["Content-Type"]="application/json",[4,this.request({path:"/api/v2/user/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:n,query:i,body:l.XagacityUserWithCredentialsToJSON(e.xagacityUserWithCredentials)},t)];case 1:return r=o.sent(),[2,new s.JSONApiResponse(r,(function(e){return l.XagacityUserWithCredentialsFromJSON(e)}))]}}))}))},t.prototype.update=function(e,t){return o(this,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return[4,this.updateRaw(e,t)];case 1:return[4,i.sent().value()];case 2:return[2,i.sent()]}}))}))},t}(s.BaseAPI);t.XagacityUserControllerApi=u},8887:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(8005),t),r(i(2497),t),r(i(8730),t),r(i(9530),t),r(i(8823),t),r(i(4100),t),r(i(1210),t),r(i(3515),t),r(i(5855),t),r(i(4345),t),r(i(2938),t),r(i(5021),t),r(i(9962),t),r(i(8196),t),r(i(5282),t),r(i(4702),t),r(i(683),t),r(i(5977),t),r(i(8242),t),r(i(9714),t),r(i(7659),t),r(i(2311),t),r(i(5827),t),r(i(5334),t),r(i(7043),t),r(i(1092),t),r(i(535),t),r(i(4071),t),r(i(5834),t),r(i(4797),t),r(i(9925),t),r(i(9412),t),r(i(7411),t),r(i(1562),t),r(i(3195),t),r(i(3978),t),r(i(7282),t),r(i(307),t),r(i(4968),t),r(i(2760),t),r(i(8497),t),r(i(1270),t),r(i(6324),t),r(i(8878),t),r(i(5438),t),r(i(917),t),r(i(656),t),r(i(1827),t)},9991:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(296),t),r(i(8887),t),r(i(4584),t)},6662:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdditionalSourceConfiguarionsToJSON=t.AdditionalSourceConfiguarionsFromJSONTyped=t.AdditionalSourceConfiguarionsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{availabilitiesType:n.exists(e,"availabilitiesType")?e.availabilitiesType:void 0,fieldsToBeEnriched:n.exists(e,"fieldsToBeEnriched")?e.fieldsToBeEnriched:void 0}}t.AdditionalSourceConfiguarionsFromJSON=function(e){return r(e)},t.AdditionalSourceConfiguarionsFromJSONTyped=r,t.AdditionalSourceConfiguarionsToJSON=function(e){if(void 0!==e)return null===e?null:{availabilitiesType:e.availabilitiesType,fieldsToBeEnriched:e.fieldsToBeEnriched}}},2322:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddressToJSON=t.AddressFromJSONTyped=t.AddressFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{city:n.exists(e,"city")?e.city:void 0,house:n.exists(e,"house")?e.house:void 0,neighborhood:n.exists(e,"neighborhood")?e.neighborhood:void 0,raw:n.exists(e,"raw")?e.raw:void 0,state:n.exists(e,"state")?e.state:void 0,street:n.exists(e,"street")?e.street:void 0,zip:n.exists(e,"zip")?e.zip:void 0}}t.AddressFromJSON=function(e){return r(e)},t.AddressFromJSONTyped=r,t.AddressToJSON=function(e){if(void 0!==e)return null===e?null:{city:e.city,house:e.house,neighborhood:e.neighborhood,raw:e.raw,state:e.state,street:e.street,zip:e.zip}}},1961:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AiAssistantStubInfoToJSON=t.AiAssistantStubInfoFromJSONTyped=t.AiAssistantStubInfoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:e.id,buildingId:e.buildingId,crmType:e.crmType,email:n.exists(e,"email")?e.email:void 0,firstName:n.exists(e,"firstName")?e.firstName:void 0,lastName:n.exists(e,"lastName")?e.lastName:void 0}}t.AiAssistantStubInfoFromJSON=function(e){return r(e)},t.AiAssistantStubInfoFromJSONTyped=r,t.AiAssistantStubInfoToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,crmType:e.crmType,email:e.email,firstName:e.firstName,lastName:e.lastName}}},818:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlertQueueInfoToJSON=t.AlertQueueInfoFromJSONTyped=t.AlertQueueInfoFromJSON=t.AlertQueueInfoConversationTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{firstName:r.exists(e,"firstName")?e.firstName:void 0,lastName:r.exists(e,"lastName")?e.lastName:void 0,email:r.exists(e,"email")?e.email:void 0,phoneNumber:r.exists(e,"phoneNumber")?e.phoneNumber:void 0,handoffStatus:r.exists(e,"handoffStatus")?e.handoffStatus:void 0,dateUpdated:r.exists(e,"dateUpdated")?new Date(e.dateUpdated):void 0,conversationType:r.exists(e,"conversationType")?e.conversationType:void 0,alertType:r.exists(e,"alertType")?e.alertType:void 0,contextId:r.exists(e,"contextId")?e.contextId:void 0,conversationKey:r.exists(e,"conversationKey")?e.conversationKey:void 0,failureReason:r.exists(e,"failureReason")?e.failureReason:void 0}}(n=t.AlertQueueInfoConversationTypeEnum||(t.AlertQueueInfoConversationTypeEnum={})).Email="EMAIL",n.Phone="PHONE",t.AlertQueueInfoFromJSON=function(e){return o(e)},t.AlertQueueInfoFromJSONTyped=o,t.AlertQueueInfoToJSON=function(e){if(void 0!==e)return null===e?null:{firstName:e.firstName,lastName:e.lastName,email:e.email,phoneNumber:e.phoneNumber,handoffStatus:e.handoffStatus,dateUpdated:void 0===e.dateUpdated?void 0:e.dateUpdated.toISOString(),conversationType:e.conversationType,alertType:e.alertType,contextId:e.contextId,conversationKey:e.conversationKey,failureReason:e.failureReason}}},6140:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlertQueueMessageToJSON=t.AlertQueueMessageFromJSONTyped=t.AlertQueueMessageFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{sender:n.exists(e,"sender")?e.sender:void 0,message:n.exists(e,"message")?e.message:void 0,timeSent:n.exists(e,"timeSent")?new Date(e.timeSent):void 0,sentByElise:n.exists(e,"sentByElise")?e.sentByElise:void 0}}t.AlertQueueMessageFromJSON=function(e){return r(e)},t.AlertQueueMessageFromJSONTyped=r,t.AlertQueueMessageToJSON=function(e){if(void 0!==e)return null===e?null:{sender:e.sender,message:e.message,timeSent:void 0===e.timeSent?void 0:e.timeSent.toISOString(),sentByElise:e.sentByElise}}},5246:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlternativeGeoAddressToJSON=t.AlternativeGeoAddressFromJSONTyped=t.AlternativeGeoAddressFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{alternativeIlsAdress:n.exists(e,"alternativeIlsAdress")?e.alternativeIlsAdress:void 0,alternativeIlsAddressGeoFormat:n.exists(e,"alternativeIlsAddressGeoFormat")?e.alternativeIlsAddressGeoFormat:void 0}}t.AlternativeGeoAddressFromJSON=function(e){return r(e)},t.AlternativeGeoAddressFromJSONTyped=r,t.AlternativeGeoAddressToJSON=function(e){if(void 0!==e)return null===e?null:{alternativeIlsAdress:e.alternativeIlsAdress,alternativeIlsAddressGeoFormat:e.alternativeIlsAddressGeoFormat}}},5556:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AlternativeILSAddressGeoFormatToJSON=t.AlternativeILSAddressGeoFormatFromJSONTyped=t.AlternativeILSAddressGeoFormatFromJSON=void 0;var n=i(296),r=i(5246);function o(e,t){return null==e?e:{alternativeGeoAdresses:n.exists(e,"alternativeGeoAdresses")?e.alternativeGeoAdresses.map(r.AlternativeGeoAddressFromJSON):void 0}}t.AlternativeILSAddressGeoFormatFromJSON=function(e){return o(e)},t.AlternativeILSAddressGeoFormatFromJSONTyped=o,t.AlternativeILSAddressGeoFormatToJSON=function(e){if(void 0!==e)return null===e?null:{alternativeGeoAdresses:void 0===e.alternativeGeoAdresses?void 0:e.alternativeGeoAdresses.map(r.AlternativeGeoAddressToJSON)}}},7455:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnyoneHomeCredentialsToJSON=t.AnyoneHomeCredentialsFromJSONTyped=t.AnyoneHomeCredentialsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,domain:n.exists(e,"domain")?e.domain:void 0,userName:n.exists(e,"userName")?e.userName:void 0,password:n.exists(e,"password")?e.password:void 0,apiKey:n.exists(e,"apiKey")?e.apiKey:void 0,leasingAgentId:n.exists(e,"leasingAgentId")?e.leasingAgentId:void 0}}t.AnyoneHomeCredentialsFromJSON=function(e){return r(e)},t.AnyoneHomeCredentialsFromJSONTyped=r,t.AnyoneHomeCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,domain:e.domain,userName:e.userName,password:e.password,apiKey:e.apiKey,leasingAgentId:e.leasingAgentId}}},3617:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AppointmentHoursToJSON=t.AppointmentHoursFromJSONTyped=t.AppointmentHoursFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{daysOfWeek:n.exists(e,"daysOfWeek")?e.daysOfWeek:void 0,startTime:n.exists(e,"startTime")?e.startTime:void 0,endTime:n.exists(e,"endTime")?e.endTime:void 0,lastAppointmentStartTime:n.exists(e,"lastAppointmentStartTime")?e.lastAppointmentStartTime:void 0,lastStartTimeForTheSameDay:n.exists(e,"lastStartTimeForTheSameDay")?e.lastStartTimeForTheSameDay:void 0,daysOfWeekString:n.exists(e,"daysOfWeekString")?e.daysOfWeekString:void 0,specialAppointmentDuration:n.exists(e,"specialAppointmentDuration")?e.specialAppointmentDuration:void 0,maxNumberOfAppointments:n.exists(e,"maxNumberOfAppointments")?e.maxNumberOfAppointments:void 0,openHouseSpecific:n.exists(e,"openHouseSpecific")?e.openHouseSpecific:void 0,specificDate:n.exists(e,"specificDate")?new Date(e.specificDate):void 0}}t.AppointmentHoursFromJSON=function(e){return r(e)},t.AppointmentHoursFromJSONTyped=r,t.AppointmentHoursToJSON=function(e){if(void 0!==e)return null===e?null:{daysOfWeek:e.daysOfWeek,startTime:e.startTime,endTime:e.endTime,lastAppointmentStartTime:e.lastAppointmentStartTime,lastStartTimeForTheSameDay:e.lastStartTimeForTheSameDay,daysOfWeekString:e.daysOfWeekString,specialAppointmentDuration:e.specialAppointmentDuration,maxNumberOfAppointments:e.maxNumberOfAppointments,openHouseSpecific:e.openHouseSpecific,specificDate:void 0===e.specificDate?void 0:e.specificDate.toISOString().substr(0,10)}}},67:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AssociateLeadRequestDtoToJSON=t.AssociateLeadRequestDtoFromJSONTyped=t.AssociateLeadRequestDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,email:n.exists(e,"email")?e.email:void 0}}t.AssociateLeadRequestDtoFromJSON=function(e){return r(e)},t.AssociateLeadRequestDtoFromJSONTyped=r,t.AssociateLeadRequestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,email:e.email}}},1234:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AttachmentToJSON=t.AttachmentFromJSONTyped=t.AttachmentFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{emailClientName:n.exists(e,"emailClientName")?e.emailClientName:void 0,rawData:n.exists(e,"rawData")?e.rawData:void 0,tempFile:n.exists(e,"tempFile")?e.tempFile:void 0,amazonKeyName:n.exists(e,"amazonKeyName")?e.amazonKeyName:void 0,fileType:n.exists(e,"fileType")?e.fileType:void 0,fileName:n.exists(e,"fileName")?e.fileName:void 0,fileUrl:n.exists(e,"fileUrl")?e.fileUrl:void 0,attachmentName:n.exists(e,"attachmentName")?e.attachmentName:void 0}}t.AttachmentFromJSON=function(e){return r(e)},t.AttachmentFromJSONTyped=r,t.AttachmentToJSON=function(e){if(void 0!==e)return null===e?null:{emailClientName:e.emailClientName,rawData:e.rawData,tempFile:e.tempFile,amazonKeyName:e.amazonKeyName,fileType:e.fileType,fileName:e.fileName,fileUrl:e.fileUrl,attachmentName:e.attachmentName}}},1995:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AvailabilitiesPreferencesToJSON=t.AvailabilitiesPreferencesFromJSONTyped=t.AvailabilitiesPreferencesFromJSON=void 0;var n=i(296),r=i(6662);function o(e,t){return null==e?e:{timesToRunInCronFormat:n.exists(e,"timesToRunInCronFormat")?e.timesToRunInCronFormat:void 0,additionalSourceConfigurations:n.exists(e,"additionalSourceConfigurations")?e.additionalSourceConfigurations.map(r.AdditionalSourceConfiguarionsFromJSON):void 0}}t.AvailabilitiesPreferencesFromJSON=function(e){return o(e)},t.AvailabilitiesPreferencesFromJSONTyped=o,t.AvailabilitiesPreferencesToJSON=function(e){if(void 0!==e)return null===e?null:{timesToRunInCronFormat:e.timesToRunInCronFormat,additionalSourceConfigurations:void 0===e.additionalSourceConfigurations?void 0:e.additionalSourceConfigurations.map(r.AdditionalSourceConfiguarionsToJSON)}}},3618:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BookTourByStateIdDtoToJSON=t.BookTourByStateIdDtoFromJSONTyped=t.BookTourByStateIdDtoFromJSON=t.BookTourByStateIdDtoTourTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{mcId:r.exists(e,"mcId")?e.mcId:void 0,stateId:r.exists(e,"stateId")?e.stateId:void 0,buildingId:r.exists(e,"buildingId")?e.buildingId:void 0,tourType:r.exists(e,"tourType")?e.tourType:void 0,startTime:r.exists(e,"startTime")?new Date(e.startTime):void 0,endTime:r.exists(e,"endTime")?new Date(e.endTime):void 0,useLegacyContext:r.exists(e,"useLegacyContext")?e.useLegacyContext:void 0,sms:r.exists(e,"sms")?e.sms:void 0}}(n=t.BookTourByStateIdDtoTourTypeEnum||(t.BookTourByStateIdDtoTourTypeEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.BookTourByStateIdDtoFromJSON=function(e){return o(e)},t.BookTourByStateIdDtoFromJSONTyped=o,t.BookTourByStateIdDtoToJSON=function(e){if(void 0!==e)return null===e?null:{mcId:e.mcId,stateId:e.stateId,buildingId:e.buildingId,tourType:e.tourType,startTime:void 0===e.startTime?void 0:e.startTime.toISOString(),endTime:void 0===e.endTime?void 0:e.endTime.toISOString(),useLegacyContext:e.useLegacyContext,sms:e.sms}}},2160:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BookTourDtoToJSON=t.BookTourDtoFromJSONTyped=t.BookTourDtoFromJSON=t.BookTourDtoTourTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{contextId:r.exists(e,"contextId")?e.contextId:void 0,buildingId:r.exists(e,"buildingId")?e.buildingId:void 0,tourType:r.exists(e,"tourType")?e.tourType:void 0,startTime:r.exists(e,"startTime")?new Date(e.startTime):void 0,endTime:r.exists(e,"endTime")?new Date(e.endTime):void 0}}(n=t.BookTourDtoTourTypeEnum||(t.BookTourDtoTourTypeEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.BookTourDtoFromJSON=function(e){return o(e)},t.BookTourDtoFromJSONTyped=o,t.BookTourDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId,tourType:e.tourType,startTime:void 0===e.startTime?void 0:e.startTime.toISOString(),endTime:void 0===e.endTime?void 0:e.endTime.toISOString()}}},5604:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingDetailsToJSON=t.BuildingDetailsFromJSONTyped=t.BuildingDetailsFromJSON=t.BuildingDetailsTourNotificationEmailsModeEnum=t.BuildingDetailsTourTypePriorityEnum=t.BuildingDetailsVirtualTourTypeEnum=t.BuildingDetailsLeasingOfficeSetupTypeEnum=void 0;var n,r,o,a,s=i(296),l=i(5556);function u(e,t){return null==e?e:{id:s.exists(e,"id")?e.id:void 0,managementCompanyId:s.exists(e,"managementCompanyId")?e.managementCompanyId:void 0,organizationId:s.exists(e,"organizationId")?e.organizationId:void 0,active:s.exists(e,"active")?e.active:void 0,handoffForwardToEmails:s.exists(e,"handoffForwardToEmails")?e.handoffForwardToEmails:void 0,responseCcEmails:s.exists(e,"responseCcEmails")?e.responseCcEmails:void 0,responseBccEmails:s.exists(e,"responseBccEmails")?e.responseBccEmails:void 0,associateCalendarId:s.exists(e,"associateCalendarId")?e.associateCalendarId:void 0,buildingName:s.exists(e,"buildingName")?e.buildingName:void 0,address1:s.exists(e,"address1")?e.address1:void 0,address2:s.exists(e,"address2")?e.address2:void 0,address3:s.exists(e,"address3")?e.address3:void 0,alternativeILSAddresses:s.exists(e,"alternativeILSAddresses")?e.alternativeILSAddresses:void 0,city:s.exists(e,"city")?e.city:void 0,state:s.exists(e,"state")?e.state:void 0,postalCode:s.exists(e,"postalCode")?e.postalCode:void 0,crossStreets:s.exists(e,"crossStreets")?e.crossStreets:void 0,neighborhood:s.exists(e,"neighborhood")?e.neighborhood:void 0,nearbyTransportation:s.exists(e,"nearbyTransportation")?e.nearbyTransportation:void 0,buildingOwnership:s.exists(e,"buildingOwnership")?e.buildingOwnership:void 0,buildingType:s.exists(e,"buildingType")?e.buildingType:void 0,totalUnits:s.exists(e,"totalUnits")?e.totalUnits:void 0,totalFloors:s.exists(e,"totalFloors")?e.totalFloors:void 0,yearBuilt:s.exists(e,"yearBuilt")?e.yearBuilt:void 0,block:s.exists(e,"block")?e.block:void 0,lot:s.exists(e,"lot")?e.lot:void 0,schoolDistrict:s.exists(e,"schoolDistrict")?e.schoolDistrict:void 0,communityDistrict:s.exists(e,"communityDistrict")?e.communityDistrict:void 0,newConstruction:s.exists(e,"newConstruction")?e.newConstruction:void 0,preWarBuilding:s.exists(e,"preWarBuilding")?e.preWarBuilding:void 0,brownstone:s.exists(e,"brownstone")?e.brownstone:void 0,greenBuilding:s.exists(e,"greenBuilding")?e.greenBuilding:void 0,elevator:s.exists(e,"elevator")?e.elevator:void 0,freightElevator:s.exists(e,"freightElevator")?e.freightElevator:void 0,parking:s.exists(e,"parking")?e.parking:void 0,petPolicy:s.exists(e,"petPolicy")?e.petPolicy:void 0,petNumberLimit:s.exists(e,"petNumberLimit")?e.petNumberLimit:void 0,petWeightLimit:s.exists(e,"petWeightLimit")?e.petWeightLimit:void 0,petFeeOrDeposit:s.exists(e,"petFeeOrDeposit")?e.petFeeOrDeposit:void 0,utilitiesIncluded:s.exists(e,"utilitiesIncluded")?e.utilitiesIncluded:void 0,utilitiesNotIncluded:s.exists(e,"utilitiesNotIncluded")?e.utilitiesNotIncluded:void 0,leaseTermsAccepted:s.exists(e,"leaseTermsAccepted")?e.leaseTermsAccepted:void 0,minLeaseTermAccepted:s.exists(e,"minLeaseTermAccepted")?e.minLeaseTermAccepted:void 0,furnishedOffered:s.exists(e,"furnishedOffered")?e.furnishedOffered:void 0,furnishedUnitsPolicy:s.exists(e,"furnishedUnitsPolicy")?e.furnishedUnitsPolicy:void 0,internationalStudentRequirements:s.exists(e,"internationalStudentRequirements")?e.internationalStudentRequirements:void 0,amenitiesFee:s.exists(e,"amenitiesFee")?e.amenitiesFee:void 0,nonSmoking:s.exists(e,"nonSmoking")?e.nonSmoking:void 0,piedATerreAllowed:s.exists(e,"piedATerreAllowed")?e.piedATerreAllowed:void 0,diplomatsOk:s.exists(e,"diplomatsOk")?e.diplomatsOk:void 0,corporateLeasesAccepted:s.exists(e,"corporateLeasesAccepted")?e.corporateLeasesAccepted:void 0,shortTermAllowed:s.exists(e,"shortTermAllowed")?e.shortTermAllowed:void 0,doorman:s.exists(e,"doorman")?e.doorman:void 0,intercom:s.exists(e,"intercom")?e.intercom:void 0,liveInSuper:s.exists(e,"liveInSuper")?e.liveInSuper:void 0,concierge:s.exists(e,"concierge")?e.concierge:void 0,laundryInBuilding:s.exists(e,"laundryInBuilding")?e.laundryInBuilding:void 0,packageReceiving:s.exists(e,"packageReceiving")?e.packageReceiving:void 0,gym:s.exists(e,"gym")?e.gym:void 0,storage:s.exists(e,"storage")?e.storage:void 0,bicycleRoom:s.exists(e,"bicycleRoom")?e.bicycleRoom:void 0,lounge:s.exists(e,"lounge")?e.lounge:void 0,clubHouse:s.exists(e,"clubHouse")?e.clubHouse:void 0,businessCenter:s.exists(e,"businessCenter")?e.businessCenter:void 0,outdoorSpace:s.exists(e,"outdoorSpace")?e.outdoorSpace:void 0,roofDeck:s.exists(e,"roofDeck")?e.roofDeck:void 0,courtyard:s.exists(e,"courtyard")?e.courtyard:void 0,childrenPlayroom:s.exists(e,"childrenPlayroom")?e.childrenPlayroom:void 0,nursery:s.exists(e,"nursery")?e.nursery:void 0,maidService:s.exists(e,"maidService")?e.maidService:void 0,pool:s.exists(e,"pool")?e.pool:void 0,wheelchairAccess:s.exists(e,"wheelchairAccess")?e.wheelchairAccess:void 0,guarantorTypesAccepted:s.exists(e,"guarantorTypesAccepted")?e.guarantorTypesAccepted:void 0,thirdPartyGuarantorTypesAccepted:s.exists(e,"thirdPartyGuarantorTypesAccepted")?e.thirdPartyGuarantorTypesAccepted:void 0,noCreditQualificationAlternative:s.exists(e,"noCreditQualificationAlternative")?e.noCreditQualificationAlternative:void 0,flexWallPolicy:s.exists(e,"flexWallPolicy")?e.flexWallPolicy:void 0,leaseholderApplicationFee:s.exists(e,"leaseholderApplicationFee")?e.leaseholderApplicationFee:void 0,occupantApplicationFee:s.exists(e,"occupantApplicationFee")?e.occupantApplicationFee:void 0,guarantorApplicationFee:s.exists(e,"guarantorApplicationFee")?e.guarantorApplicationFee:void 0,tenantIncomeRequirementRentMultiplier:s.exists(e,"tenantIncomeRequirementRentMultiplier")?e.tenantIncomeRequirementRentMultiplier:void 0,guarantorIncomeRequirementRentMultiplier:s.exists(e,"guarantorIncomeRequirementRentMultiplier")?e.guarantorIncomeRequirementRentMultiplier:void 0,incomeRequirementRentMultiplierTimePeriod:s.exists(e,"incomeRequirementRentMultiplierTimePeriod")?e.incomeRequirementRentMultiplierTimePeriod:void 0,leaseholderMinimumCreditScoreRequirement:s.exists(e,"leaseholderMinimumCreditScoreRequirement")?e.leaseholderMinimumCreditScoreRequirement:void 0,guarantorMinimumCreditScoreRequirement:s.exists(e,"guarantorMinimumCreditScoreRequirement")?e.guarantorMinimumCreditScoreRequirement:void 0,leaseholderApplicationDocumentsRequired:s.exists(e,"leaseholderApplicationDocumentsRequired")?e.leaseholderApplicationDocumentsRequired:void 0,selfEmployedApplicationDocumentsRequired:s.exists(e,"selfEmployedApplicationDocumentsRequired")?e.selfEmployedApplicationDocumentsRequired:void 0,guarantorApplicationDocumentsRequired:s.exists(e,"guarantorApplicationDocumentsRequired")?e.guarantorApplicationDocumentsRequired:void 0,guarantorsAccepted:s.exists(e,"guarantorsAccepted")?e.guarantorsAccepted:void 0,financialsInsufficientAlternative:s.exists(e,"financialsInsufficientAlternative")?e.financialsInsufficientAlternative:void 0,prepaymentPolicy:s.exists(e,"prepaymentPolicy")?e.prepaymentPolicy:void 0,rentRequiredOnLeaseSigning:s.exists(e,"rentRequiredOnLeaseSigning")?e.rentRequiredOnLeaseSigning:void 0,securityDepositRentMultiplier:s.exists(e,"securityDepositRentMultiplier")?e.securityDepositRentMultiplier:void 0,paymentFormsAccepted:s.exists(e,"paymentFormsAccepted")?e.paymentFormsAccepted:void 0,clientEmail:s.exists(e,"clientEmail")?e.clientEmail:void 0,description:s.exists(e,"description")?e.description:void 0,notes:s.exists(e,"notes")?e.notes:void 0,leasingOfficeHours:s.exists(e,"leasingOfficeHours")?e.leasingOfficeHours:void 0,occupiedUnitsShowingHours:s.exists(e,"occupiedUnitsShowingHours")?e.occupiedUnitsShowingHours:void 0,internalNotes:s.exists(e,"internalNotes")?e.internalNotes:void 0,leasingPhoneNumber:s.exists(e,"leasingPhoneNumber")?e.leasingPhoneNumber:void 0,callCenterNumber:s.exists(e,"callCenterNumber")?e.callCenterNumber:void 0,buildingWebsiteUrl:s.exists(e,"buildingWebsiteUrl")?e.buildingWebsiteUrl:void 0,applicationLink:s.exists(e,"applicationLink")?e.applicationLink:void 0,geoAddress:s.exists(e,"geoAddress")?e.geoAddress:void 0,googleMapsUrl:s.exists(e,"googleMapsUrl")?e.googleMapsUrl:void 0,alerts:s.exists(e,"alerts")?e.alerts:void 0,rentComputeType:s.exists(e,"rentComputeType")?e.rentComputeType:void 0,autosendActive:s.exists(e,"autosendActive")?e.autosendActive:void 0,advancedMoveInAllowenceInDays:s.exists(e,"advancedMoveInAllowenceInDays")?e.advancedMoveInAllowenceInDays:void 0,alternativeBuildingNames:s.exists(e,"alternativeBuildingNames")?e.alternativeBuildingNames:void 0,externalIds:s.exists(e,"externalIds")?e.externalIds:void 0,externalCrmId:s.exists(e,"externalCrmId")?e.externalCrmId:void 0,defaultAvailabilityQuoteMatchMoveInDate:s.exists(e,"defaultAvailabilityQuoteMatchMoveInDate")?e.defaultAvailabilityQuoteMatchMoveInDate:void 0,leaseRenewalNoticeInDays:s.exists(e,"leaseRenewalNoticeInDays")?e.leaseRenewalNoticeInDays:void 0,rentQuoteFormat:s.exists(e,"rentQuoteFormat")?e.rentQuoteFormat:void 0,rentWithIncentivesQuoteFormat:s.exists(e,"rentWithIncentivesQuoteFormat")?e.rentWithIncentivesQuoteFormat:void 0,isPartOfComplex:s.exists(e,"isPartOfComplex")?e.isPartOfComplex:void 0,alternativeILSAddressGeoFormat:s.exists(e,"alternativeILSAddressGeoFormat")?l.AlternativeILSAddressGeoFormatFromJSON(e.alternativeILSAddressGeoFormat):void 0,effectiveRentComputeType:s.exists(e,"effectiveRentComputeType")?e.effectiveRentComputeType:void 0,maxLeaseTermAccepted:s.exists(e,"maxLeaseTermAccepted")?e.maxLeaseTermAccepted:void 0,parkingInformation:s.exists(e,"parkingInformation")?e.parkingInformation:void 0,storageFee:s.exists(e,"storageFee")?e.storageFee:void 0,incentivesProperlyConnected:s.exists(e,"incentivesProperlyConnected")?e.incentivesProperlyConnected:void 0,electricCompany:s.exists(e,"electricCompany")?e.electricCompany:void 0,gasCompany:s.exists(e,"gasCompany")?e.gasCompany:void 0,telephoneCompany:s.exists(e,"telephoneCompany")?e.telephoneCompany:void 0,televisionCompany:s.exists(e,"televisionCompany")?e.televisionCompany:void 0,waterCompany:s.exists(e,"waterCompany")?e.waterCompany:void 0,internetCompany:s.exists(e,"internetCompany")?e.internetCompany:void 0,localHospital:s.exists(e,"localHospital")?e.localHospital:void 0,localSchoolDistrict:s.exists(e,"localSchoolDistrict")?e.localSchoolDistrict:void 0,localElementarySchool:s.exists(e,"localElementarySchool")?e.localElementarySchool:void 0,localMiddleSchool:s.exists(e,"localMiddleSchool")?e.localMiddleSchool:void 0,localHighSchool:s.exists(e,"localHighSchool")?e.localHighSchool:void 0,localShoppingCenter:s.exists(e,"localShoppingCenter")?e.localShoppingCenter:void 0,localGroceryStore:s.exists(e,"localGroceryStore")?e.localGroceryStore:void 0,closestInterstates:s.exists(e,"closestInterstates")?e.closestInterstates:void 0,buildingPicturesUrl:s.exists(e,"buildingPicturesUrl")?e.buildingPicturesUrl:void 0,buildingFloorPlansUrl:s.exists(e,"buildingFloorPlansUrl")?e.buildingFloorPlansUrl:void 0,nonexistentLayouts:s.exists(e,"nonexistentLayouts")?e.nonexistentLayouts:void 0,offeredLayouts:s.exists(e,"offeredLayouts")?e.offeredLayouts:void 0,avoidQuotingPrices:s.exists(e,"avoidQuotingPrices")?e.avoidQuotingPrices:void 0,excludeNotRentReadyUnit:s.exists(e,"excludeNotRentReadyUnit")?e.excludeNotRentReadyUnit:void 0,flexWallsAllowed:s.exists(e,"flexWallsAllowed")?e.flexWallsAllowed:void 0,petsAccepted:s.exists(e,"petsAccepted")?e.petsAccepted:void 0,guarantorsAcceptedSwitch:s.exists(e,"guarantorsAcceptedSwitch")?e.guarantorsAcceptedSwitch:void 0,thirdPartyGuarantorsAccepted:s.exists(e,"thirdPartyGuarantorsAccepted")?e.thirdPartyGuarantorsAccepted:void 0,alwaysScheduleAppointments:s.exists(e,"alwaysScheduleAppointments")?e.alwaysScheduleAppointments:void 0,leasingOfficeOnsite:s.exists(e,"leasingOfficeOnsite")?e.leasingOfficeOnsite:void 0,building3dMediaUrl:s.exists(e,"building3dMediaUrl")?e.building3dMediaUrl:void 0,dailyreport:s.exists(e,"dailyreport")?e.dailyreport:void 0,dailyReportEmails:s.exists(e,"dailyReportEmails")?e.dailyReportEmails:void 0,nearbySubways:s.exists(e,"nearbySubways")?e.nearbySubways:void 0,bedroomTypes:s.exists(e,"bedroomTypes")?e.bedroomTypes:void 0,leasingBrochureUrl:s.exists(e,"leasingBrochureUrl")?e.leasingBrochureUrl:void 0,confidenceVariable:s.exists(e,"confidenceVariable")?e.confidenceVariable:void 0,textForwardToEmails:s.exists(e,"textForwardToEmails")?e.textForwardToEmails:void 0,synchronizationStatus:s.exists(e,"synchronizationStatus")?e.synchronizationStatus:void 0,omitDesiredFloorPlan:s.exists(e,"omitDesiredFloorPlan")?e.omitDesiredFloorPlan:void 0,pickingNewGuestCards:s.exists(e,"pickingNewGuestCards")?e.pickingNewGuestCards:void 0,showNotRespondingLeadsInReport:s.exists(e,"showNotRespondingLeadsInReport")?e.showNotRespondingLeadsInReport:void 0,leasingOfficeSetupType:s.exists(e,"leasingOfficeSetupType")?e.leasingOfficeSetupType:void 0,firstContactReasonRequired:s.exists(e,"firstContactReasonRequired")?e.firstContactReasonRequired:void 0,firstContactReason:s.exists(e,"firstContactReason")?e.firstContactReason:void 0,emailSignature:s.exists(e,"emailSignature")?e.emailSignature:void 0,tourDuration:s.exists(e,"tourDuration")?e.tourDuration:void 0,inPersonToursAllowed:s.exists(e,"inPersonToursAllowed")?e.inPersonToursAllowed:void 0,selfGuidedToursEnabled:s.exists(e,"selfGuidedToursEnabled")?e.selfGuidedToursEnabled:void 0,virtualTourType:s.exists(e,"virtualTourType")?e.virtualTourType:void 0,virtualTourPlatforms:s.exists(e,"virtualTourPlatforms")?e.virtualTourPlatforms:void 0,noUnitSelfGuidedTourAllowed:s.exists(e,"noUnitSelfGuidedTourAllowed")?e.noUnitSelfGuidedTourAllowed:void 0,sgSchedulingBasedOnNormalAppointments:s.exists(e,"sgSchedulingBasedOnNormalAppointments")?e.sgSchedulingBasedOnNormalAppointments:void 0,tourTypePriority:s.exists(e,"tourTypePriority")?e.tourTypePriority:void 0,tourNotificationEmailsMode:s.exists(e,"tourNotificationEmailsMode")?e.tourNotificationEmailsMode:void 0,showByOpenHouseOnly:s.exists(e,"showByOpenHouseOnly")?e.showByOpenHouseOnly:void 0,showUnitsWithPendingApplication:s.exists(e,"showUnitsWithPendingApplication")?e.showUnitsWithPendingApplication:void 0,showOccupiedUnitsWithPendingApplication:s.exists(e,"showOccupiedUnitsWithPendingApplication")?e.showOccupiedUnitsWithPendingApplication:void 0,confirmAppointmentsOccupiedUnits:s.exists(e,"confirmAppointmentsOccupiedUnits")?e.confirmAppointmentsOccupiedUnits:void 0,confirmAppointmentsRenovatingUnits:s.exists(e,"confirmAppointmentsRenovatingUnits")?e.confirmAppointmentsRenovatingUnits:void 0,occupiedUnitsAdvancedNoticeInHours:s.exists(e,"occupiedUnitsAdvancedNoticeInHours")?e.occupiedUnitsAdvancedNoticeInHours:void 0,prioritizeShowingVacantUnits:s.exists(e,"prioritizeShowingVacantUnits")?e.prioritizeShowingVacantUnits:void 0,showOccupiedUnits:s.exists(e,"showOccupiedUnits")?e.showOccupiedUnits:void 0,whiteListActivated:s.exists(e,"whiteListActivated")?e.whiteListActivated:void 0,appointmentMeetingLocation:s.exists(e,"appointmentMeetingLocation")?e.appointmentMeetingLocation:void 0,appointmentMeetingPointSpecific:s.exists(e,"appointmentMeetingPointSpecific")?e.appointmentMeetingPointSpecific:void 0,appointmentDirections:s.exists(e,"appointmentDirections")?e.appointmentDirections:void 0,appointmentAdditionalDirections:s.exists(e,"appointmentAdditionalDirections")?e.appointmentAdditionalDirections:void 0,launchDateTime:s.exists(e,"launchDateTime")?new Date(e.launchDateTime):void 0,clientRequiresShowEvent:s.exists(e,"clientRequiresShowEvent")?e.clientRequiresShowEvent:void 0,tempLeasingOfficeHoursAsJson:s.exists(e,"tempLeasingOfficeHoursAsJson")?e.tempLeasingOfficeHoursAsJson:void 0,calendarId:s.exists(e,"calendarId")?e.calendarId:void 0,effectiveHandoffForwardToEmails:s.exists(e,"effectiveHandoffForwardToEmails")?e.effectiveHandoffForwardToEmails:void 0}}(a=t.BuildingDetailsLeasingOfficeSetupTypeEnum||(t.BuildingDetailsLeasingOfficeSetupTypeEnum={})).SingleBuilding="SINGLE_BUILDING",a.CentralLeasingOfficeAsSingleBuilding="CENTRAL_LEASING_OFFICE_AS_SINGLE_BUILDING",(o=t.BuildingDetailsVirtualTourTypeEnum||(t.BuildingDetailsVirtualTourTypeEnum={})).NotEnabled="NOT_ENABLED",o.SelfManaged="SELF_MANAGED",o.Whereby="WHEREBY",(r=t.BuildingDetailsTourTypePriorityEnum||(t.BuildingDetailsTourTypePriorityEnum={})).Unknown="UNKNOWN",r.SelfGuided="SELF_GUIDED",r.VirtualShowing="VIRTUAL_SHOWING",r.WithAgent="WITH_AGENT",r.MediaTour="MEDIA_TOUR",(n=t.BuildingDetailsTourNotificationEmailsModeEnum||(t.BuildingDetailsTourNotificationEmailsModeEnum={})).NoNotification="NO_NOTIFICATION",n.AllViewings="ALL_VIEWINGS",n.SameDayViewings="SAME_DAY_VIEWINGS",t.BuildingDetailsFromJSON=function(e){return u(e)},t.BuildingDetailsFromJSONTyped=u,t.BuildingDetailsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,managementCompanyId:e.managementCompanyId,organizationId:e.organizationId,active:e.active,handoffForwardToEmails:e.handoffForwardToEmails,responseCcEmails:e.responseCcEmails,responseBccEmails:e.responseBccEmails,associateCalendarId:e.associateCalendarId,buildingName:e.buildingName,address1:e.address1,address2:e.address2,address3:e.address3,alternativeILSAddresses:e.alternativeILSAddresses,city:e.city,state:e.state,postalCode:e.postalCode,crossStreets:e.crossStreets,neighborhood:e.neighborhood,nearbyTransportation:e.nearbyTransportation,buildingOwnership:e.buildingOwnership,buildingType:e.buildingType,totalUnits:e.totalUnits,totalFloors:e.totalFloors,yearBuilt:e.yearBuilt,block:e.block,lot:e.lot,schoolDistrict:e.schoolDistrict,communityDistrict:e.communityDistrict,newConstruction:e.newConstruction,preWarBuilding:e.preWarBuilding,brownstone:e.brownstone,greenBuilding:e.greenBuilding,elevator:e.elevator,freightElevator:e.freightElevator,parking:e.parking,petPolicy:e.petPolicy,petNumberLimit:e.petNumberLimit,petWeightLimit:e.petWeightLimit,petFeeOrDeposit:e.petFeeOrDeposit,utilitiesIncluded:e.utilitiesIncluded,utilitiesNotIncluded:e.utilitiesNotIncluded,leaseTermsAccepted:e.leaseTermsAccepted,minLeaseTermAccepted:e.minLeaseTermAccepted,furnishedOffered:e.furnishedOffered,furnishedUnitsPolicy:e.furnishedUnitsPolicy,internationalStudentRequirements:e.internationalStudentRequirements,amenitiesFee:e.amenitiesFee,nonSmoking:e.nonSmoking,piedATerreAllowed:e.piedATerreAllowed,diplomatsOk:e.diplomatsOk,corporateLeasesAccepted:e.corporateLeasesAccepted,shortTermAllowed:e.shortTermAllowed,doorman:e.doorman,intercom:e.intercom,liveInSuper:e.liveInSuper,concierge:e.concierge,laundryInBuilding:e.laundryInBuilding,packageReceiving:e.packageReceiving,gym:e.gym,storage:e.storage,bicycleRoom:e.bicycleRoom,lounge:e.lounge,clubHouse:e.clubHouse,businessCenter:e.businessCenter,outdoorSpace:e.outdoorSpace,roofDeck:e.roofDeck,courtyard:e.courtyard,childrenPlayroom:e.childrenPlayroom,nursery:e.nursery,maidService:e.maidService,pool:e.pool,wheelchairAccess:e.wheelchairAccess,guarantorTypesAccepted:e.guarantorTypesAccepted,thirdPartyGuarantorTypesAccepted:e.thirdPartyGuarantorTypesAccepted,noCreditQualificationAlternative:e.noCreditQualificationAlternative,flexWallPolicy:e.flexWallPolicy,leaseholderApplicationFee:e.leaseholderApplicationFee,occupantApplicationFee:e.occupantApplicationFee,guarantorApplicationFee:e.guarantorApplicationFee,tenantIncomeRequirementRentMultiplier:e.tenantIncomeRequirementRentMultiplier,guarantorIncomeRequirementRentMultiplier:e.guarantorIncomeRequirementRentMultiplier,incomeRequirementRentMultiplierTimePeriod:e.incomeRequirementRentMultiplierTimePeriod,leaseholderMinimumCreditScoreRequirement:e.leaseholderMinimumCreditScoreRequirement,guarantorMinimumCreditScoreRequirement:e.guarantorMinimumCreditScoreRequirement,leaseholderApplicationDocumentsRequired:e.leaseholderApplicationDocumentsRequired,selfEmployedApplicationDocumentsRequired:e.selfEmployedApplicationDocumentsRequired,guarantorApplicationDocumentsRequired:e.guarantorApplicationDocumentsRequired,guarantorsAccepted:e.guarantorsAccepted,financialsInsufficientAlternative:e.financialsInsufficientAlternative,prepaymentPolicy:e.prepaymentPolicy,rentRequiredOnLeaseSigning:e.rentRequiredOnLeaseSigning,securityDepositRentMultiplier:e.securityDepositRentMultiplier,paymentFormsAccepted:e.paymentFormsAccepted,clientEmail:e.clientEmail,description:e.description,notes:e.notes,leasingOfficeHours:e.leasingOfficeHours,occupiedUnitsShowingHours:e.occupiedUnitsShowingHours,internalNotes:e.internalNotes,leasingPhoneNumber:e.leasingPhoneNumber,callCenterNumber:e.callCenterNumber,buildingWebsiteUrl:e.buildingWebsiteUrl,applicationLink:e.applicationLink,geoAddress:e.geoAddress,googleMapsUrl:e.googleMapsUrl,alerts:e.alerts,rentComputeType:e.rentComputeType,autosendActive:e.autosendActive,advancedMoveInAllowenceInDays:e.advancedMoveInAllowenceInDays,alternativeBuildingNames:e.alternativeBuildingNames,externalIds:e.externalIds,externalCrmId:e.externalCrmId,defaultAvailabilityQuoteMatchMoveInDate:e.defaultAvailabilityQuoteMatchMoveInDate,leaseRenewalNoticeInDays:e.leaseRenewalNoticeInDays,rentQuoteFormat:e.rentQuoteFormat,rentWithIncentivesQuoteFormat:e.rentWithIncentivesQuoteFormat,isPartOfComplex:e.isPartOfComplex,alternativeILSAddressGeoFormat:l.AlternativeILSAddressGeoFormatToJSON(e.alternativeILSAddressGeoFormat),effectiveRentComputeType:e.effectiveRentComputeType,maxLeaseTermAccepted:e.maxLeaseTermAccepted,parkingInformation:e.parkingInformation,storageFee:e.storageFee,incentivesProperlyConnected:e.incentivesProperlyConnected,electricCompany:e.electricCompany,gasCompany:e.gasCompany,telephoneCompany:e.telephoneCompany,televisionCompany:e.televisionCompany,waterCompany:e.waterCompany,internetCompany:e.internetCompany,localHospital:e.localHospital,localSchoolDistrict:e.localSchoolDistrict,localElementarySchool:e.localElementarySchool,localMiddleSchool:e.localMiddleSchool,localHighSchool:e.localHighSchool,localShoppingCenter:e.localShoppingCenter,localGroceryStore:e.localGroceryStore,closestInterstates:e.closestInterstates,buildingPicturesUrl:e.buildingPicturesUrl,buildingFloorPlansUrl:e.buildingFloorPlansUrl,nonexistentLayouts:e.nonexistentLayouts,offeredLayouts:e.offeredLayouts,avoidQuotingPrices:e.avoidQuotingPrices,excludeNotRentReadyUnit:e.excludeNotRentReadyUnit,flexWallsAllowed:e.flexWallsAllowed,petsAccepted:e.petsAccepted,guarantorsAcceptedSwitch:e.guarantorsAcceptedSwitch,thirdPartyGuarantorsAccepted:e.thirdPartyGuarantorsAccepted,alwaysScheduleAppointments:e.alwaysScheduleAppointments,leasingOfficeOnsite:e.leasingOfficeOnsite,building3dMediaUrl:e.building3dMediaUrl,dailyreport:e.dailyreport,dailyReportEmails:e.dailyReportEmails,nearbySubways:e.nearbySubways,bedroomTypes:e.bedroomTypes,leasingBrochureUrl:e.leasingBrochureUrl,confidenceVariable:e.confidenceVariable,textForwardToEmails:e.textForwardToEmails,synchronizationStatus:e.synchronizationStatus,omitDesiredFloorPlan:e.omitDesiredFloorPlan,pickingNewGuestCards:e.pickingNewGuestCards,showNotRespondingLeadsInReport:e.showNotRespondingLeadsInReport,leasingOfficeSetupType:e.leasingOfficeSetupType,firstContactReasonRequired:e.firstContactReasonRequired,firstContactReason:e.firstContactReason,emailSignature:e.emailSignature,tourDuration:e.tourDuration,inPersonToursAllowed:e.inPersonToursAllowed,selfGuidedToursEnabled:e.selfGuidedToursEnabled,virtualTourType:e.virtualTourType,virtualTourPlatforms:e.virtualTourPlatforms,noUnitSelfGuidedTourAllowed:e.noUnitSelfGuidedTourAllowed,sgSchedulingBasedOnNormalAppointments:e.sgSchedulingBasedOnNormalAppointments,tourTypePriority:e.tourTypePriority,tourNotificationEmailsMode:e.tourNotificationEmailsMode,showByOpenHouseOnly:e.showByOpenHouseOnly,showUnitsWithPendingApplication:e.showUnitsWithPendingApplication,showOccupiedUnitsWithPendingApplication:e.showOccupiedUnitsWithPendingApplication,confirmAppointmentsOccupiedUnits:e.confirmAppointmentsOccupiedUnits,confirmAppointmentsRenovatingUnits:e.confirmAppointmentsRenovatingUnits,occupiedUnitsAdvancedNoticeInHours:e.occupiedUnitsAdvancedNoticeInHours,prioritizeShowingVacantUnits:e.prioritizeShowingVacantUnits,showOccupiedUnits:e.showOccupiedUnits,whiteListActivated:e.whiteListActivated,appointmentMeetingLocation:e.appointmentMeetingLocation,appointmentMeetingPointSpecific:e.appointmentMeetingPointSpecific,appointmentDirections:e.appointmentDirections,appointmentAdditionalDirections:e.appointmentAdditionalDirections,launchDateTime:void 0===e.launchDateTime?void 0:e.launchDateTime.toISOString(),clientRequiresShowEvent:e.clientRequiresShowEvent,tempLeasingOfficeHoursAsJson:e.tempLeasingOfficeHoursAsJson,calendarId:e.calendarId,effectiveHandoffForwardToEmails:e.effectiveHandoffForwardToEmails}}},3477:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingEntityToJSON=t.BuildingEntityFromJSONTyped=t.BuildingEntityFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0}}t.BuildingEntityFromJSON=function(e){return r(e)},t.BuildingEntityFromJSONTyped=r,t.BuildingEntityToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id}}},8536:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingExpansionValidationResultToJSON=t.BuildingExpansionValidationResultFromJSONTyped=t.BuildingExpansionValidationResultFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{apiCallToSuccessMap:n.exists(e,"apiCallToSuccessMap")?e.apiCallToSuccessMap:void 0,apiCallToMessageMap:n.exists(e,"apiCallToMessageMap")?e.apiCallToMessageMap:void 0}}t.BuildingExpansionValidationResultFromJSON=function(e){return r(e)},t.BuildingExpansionValidationResultFromJSONTyped=r,t.BuildingExpansionValidationResultToJSON=function(e){if(void 0!==e)return null===e?null:{apiCallToSuccessMap:e.apiCallToSuccessMap,apiCallToMessageMap:e.apiCallToMessageMap}}},4597:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingFeatureFlagRequestDtoToJSON=t.BuildingFeatureFlagRequestDtoFromJSONTyped=t.BuildingFeatureFlagRequestDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{defaultBoolValue:n.exists(e,"defaultBoolValue")?e.defaultBoolValue:void 0,defaultIntValue:n.exists(e,"defaultIntValue")?e.defaultIntValue:void 0,defaultStringValue:n.exists(e,"defaultStringValue")?e.defaultStringValue:void 0,clientEmail:n.exists(e,"clientEmail")?e.clientEmail:void 0,orgId:n.exists(e,"orgId")?e.orgId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,crmType:n.exists(e,"crmType")?e.crmType:void 0}}t.BuildingFeatureFlagRequestDtoFromJSON=function(e){return r(e)},t.BuildingFeatureFlagRequestDtoFromJSONTyped=r,t.BuildingFeatureFlagRequestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{defaultBoolValue:e.defaultBoolValue,defaultIntValue:e.defaultIntValue,defaultStringValue:e.defaultStringValue,clientEmail:e.clientEmail,orgId:e.orgId,buildingId:e.buildingId,crmType:e.crmType}}},553:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingOverrideToJSON=t.BuildingOverrideFromJSONTyped=t.BuildingOverrideFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{redIntents:n.exists(e,"redIntents")?e.redIntents:void 0,yellowIntents:n.exists(e,"yellowIntents")?e.yellowIntents:void 0}}t.BuildingOverrideFromJSON=function(e){return r(e)},t.BuildingOverrideFromJSONTyped=r,t.BuildingOverrideToJSON=function(e){if(void 0!==e)return null===e?null:{redIntents:e.redIntents,yellowIntents:e.yellowIntents}}},6673:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingPublicViewModelToJSON=t.BuildingPublicViewModelFromJSONTyped=t.BuildingPublicViewModelFromJSON=void 0;var n=i(296),r=i(746),o=i(6330);function a(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,orgId:n.exists(e,"orgId")?e.orgId:void 0,name:n.exists(e,"name")?e.name:void 0,userId:n.exists(e,"userId")?e.userId:void 0,userFirstName:n.exists(e,"userFirstName")?e.userFirstName:void 0,userLastName:n.exists(e,"userLastName")?e.userLastName:void 0,primaryColor:n.exists(e,"primaryColor")?e.primaryColor:void 0,backgroundColor:n.exists(e,"backgroundColor")?e.backgroundColor:void 0,logoSrc:n.exists(e,"logoSrc")?e.logoSrc:void 0,welcomeMessage:n.exists(e,"welcomeMessage")?e.welcomeMessage:void 0,chatTitle:n.exists(e,"chatTitle")?e.chatTitle:void 0,chatSubtitle:n.exists(e,"chatSubtitle")?e.chatSubtitle:void 0,bannerColor:n.exists(e,"bannerColor")?e.bannerColor:void 0,bannerTextColor:n.exists(e,"bannerTextColor")?e.bannerTextColor:void 0,messageColor:n.exists(e,"messageColor")?e.messageColor:void 0,messageTextColor:n.exists(e,"messageTextColor")?e.messageTextColor:void 0,launchButtonColor:n.exists(e,"launchButtonColor")?e.launchButtonColor:void 0,launchButtonIconColor:n.exists(e,"launchButtonIconColor")?e.launchButtonIconColor:void 0,launchButtonSize:n.exists(e,"launchButtonSize")?e.launchButtonSize:void 0,avatarType:n.exists(e,"avatarType")?e.avatarType:void 0,avatarSrc:n.exists(e,"avatarSrc")?e.avatarSrc:void 0,avatarInitials:n.exists(e,"avatarInitials")?e.avatarInitials:void 0,themeId:n.exists(e,"themeId")?e.themeId:void 0,streetAddress:n.exists(e,"streetAddress")?e.streetAddress:void 0,postalCode:n.exists(e,"postalCode")?e.postalCode:void 0,state:n.exists(e,"state")?e.state:void 0,phoneNumber:n.exists(e,"phoneNumber")?e.phoneNumber:void 0,layoutOptions:n.exists(e,"layoutOptions")?e.layoutOptions.map(r.LayoutOptionFromJSON):void 0,tourTypeOptions:n.exists(e,"tourTypeOptions")?e.tourTypeOptions.map(o.TourTypeOptionFromJSON):void 0,conversationMaintenanceMode:n.exists(e,"conversationMaintenanceMode")?e.conversationMaintenanceMode:void 0}}t.BuildingPublicViewModelFromJSON=function(e){return a(e)},t.BuildingPublicViewModelFromJSONTyped=a,t.BuildingPublicViewModelToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,orgId:e.orgId,name:e.name,userId:e.userId,userFirstName:e.userFirstName,userLastName:e.userLastName,primaryColor:e.primaryColor,backgroundColor:e.backgroundColor,logoSrc:e.logoSrc,welcomeMessage:e.welcomeMessage,chatTitle:e.chatTitle,chatSubtitle:e.chatSubtitle,bannerColor:e.bannerColor,bannerTextColor:e.bannerTextColor,messageColor:e.messageColor,messageTextColor:e.messageTextColor,launchButtonColor:e.launchButtonColor,launchButtonIconColor:e.launchButtonIconColor,launchButtonSize:e.launchButtonSize,avatarType:e.avatarType,avatarSrc:e.avatarSrc,avatarInitials:e.avatarInitials,themeId:e.themeId,streetAddress:e.streetAddress,postalCode:e.postalCode,state:e.state,phoneNumber:e.phoneNumber,layoutOptions:void 0===e.layoutOptions?void 0:e.layoutOptions.map(r.LayoutOptionToJSON),tourTypeOptions:void 0===e.tourTypeOptions?void 0:e.tourTypeOptions.map(o.TourTypeOptionToJSON),conversationMaintenanceMode:e.conversationMaintenanceMode}}},6597:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingRefreshInfoToJSON=t.BuildingRefreshInfoFromJSONTyped=t.BuildingRefreshInfoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{timesToRunInCronFormat:n.exists(e,"timesToRunInCronFormat")?e.timesToRunInCronFormat:void 0}}t.BuildingRefreshInfoFromJSON=function(e){return r(e)},t.BuildingRefreshInfoFromJSONTyped=r,t.BuildingRefreshInfoToJSON=function(e){if(void 0!==e)return null===e?null:{timesToRunInCronFormat:e.timesToRunInCronFormat}}},7949:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BuildingTourTypePreferencesToJSON=t.BuildingTourTypePreferencesFromJSONTyped=t.BuildingTourTypePreferencesFromJSON=t.BuildingTourTypePreferencesSelfGuidedToursTypeOfferedEnum=t.BuildingTourTypePreferencesLiveVirtualToursTypeOfferedEnum=t.BuildingTourTypePreferencesMediaToursTypeOfferedEnum=t.BuildingTourTypePreferencesEscortedToursTypeOfferedEnum=void 0;var n,r,o,a,s=i(296);function l(e,t){return null==e?e:{id:s.exists(e,"id")?e.id:void 0,buildingId:s.exists(e,"buildingId")?e.buildingId:void 0,escortedToursAllowed:s.exists(e,"escortedToursAllowed")?e.escortedToursAllowed:void 0,escortedToursTypeOffered:s.exists(e,"escortedToursTypeOffered")?e.escortedToursTypeOffered:void 0,escortedTourClientName:s.exists(e,"escortedTourClientName")?e.escortedTourClientName:void 0,escortedToursLink:s.exists(e,"escortedToursLink")?e.escortedToursLink:void 0,mediaToursAllowed:s.exists(e,"mediaToursAllowed")?e.mediaToursAllowed:void 0,mediaToursTypeOffered:s.exists(e,"mediaToursTypeOffered")?e.mediaToursTypeOffered:void 0,mediaTourClientName:s.exists(e,"mediaTourClientName")?e.mediaTourClientName:void 0,mediaToursLink:s.exists(e,"mediaToursLink")?e.mediaToursLink:void 0,liveVirtualToursAllowed:s.exists(e,"liveVirtualToursAllowed")?e.liveVirtualToursAllowed:void 0,liveVirtualToursTypeOffered:s.exists(e,"liveVirtualToursTypeOffered")?e.liveVirtualToursTypeOffered:void 0,liveVirtualTourClientName:s.exists(e,"liveVirtualTourClientName")?e.liveVirtualTourClientName:void 0,liveVirtualToursLink:s.exists(e,"liveVirtualToursLink")?e.liveVirtualToursLink:void 0,selfGuidedToursAllowed:s.exists(e,"selfGuidedToursAllowed")?e.selfGuidedToursAllowed:void 0,selfGuidedToursTypeOffered:s.exists(e,"selfGuidedToursTypeOffered")?e.selfGuidedToursTypeOffered:void 0,selfGuidedTourClientName:s.exists(e,"selfGuidedTourClientName")?e.selfGuidedTourClientName:void 0,selfGuidedToursLink:s.exists(e,"selfGuidedToursLink")?e.selfGuidedToursLink:void 0}}(a=t.BuildingTourTypePreferencesEscortedToursTypeOfferedEnum||(t.BuildingTourTypePreferencesEscortedToursTypeOfferedEnum={})).Link="LINK",a.ClientScheduled="CLIENT_SCHEDULED",a.ScheduledByMeManagedByMe="SCHEDULED_BY_ME_MANAGED_BY_ME",a.ScheduledByMeManagedByClient="SCHEDULED_BY_ME_MANAGED_BY_CLIENT",a.ScheduledByMeManagedByConcierge="SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE",(o=t.BuildingTourTypePreferencesMediaToursTypeOfferedEnum||(t.BuildingTourTypePreferencesMediaToursTypeOfferedEnum={})).Link="LINK",o.ClientScheduled="CLIENT_SCHEDULED",o.ScheduledByMeManagedByMe="SCHEDULED_BY_ME_MANAGED_BY_ME",o.ScheduledByMeManagedByClient="SCHEDULED_BY_ME_MANAGED_BY_CLIENT",o.ScheduledByMeManagedByConcierge="SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE",(r=t.BuildingTourTypePreferencesLiveVirtualToursTypeOfferedEnum||(t.BuildingTourTypePreferencesLiveVirtualToursTypeOfferedEnum={})).Link="LINK",r.ClientScheduled="CLIENT_SCHEDULED",r.ScheduledByMeManagedByMe="SCHEDULED_BY_ME_MANAGED_BY_ME",r.ScheduledByMeManagedByClient="SCHEDULED_BY_ME_MANAGED_BY_CLIENT",r.ScheduledByMeManagedByConcierge="SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE",(n=t.BuildingTourTypePreferencesSelfGuidedToursTypeOfferedEnum||(t.BuildingTourTypePreferencesSelfGuidedToursTypeOfferedEnum={})).Link="LINK",n.ClientScheduled="CLIENT_SCHEDULED",n.ScheduledByMeManagedByMe="SCHEDULED_BY_ME_MANAGED_BY_ME",n.ScheduledByMeManagedByClient="SCHEDULED_BY_ME_MANAGED_BY_CLIENT",n.ScheduledByMeManagedByConcierge="SCHEDULED_BY_ME_MANAGED_BY_CONCIERGE",t.BuildingTourTypePreferencesFromJSON=function(e){return l(e)},t.BuildingTourTypePreferencesFromJSONTyped=l,t.BuildingTourTypePreferencesToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,escortedToursAllowed:e.escortedToursAllowed,escortedToursTypeOffered:e.escortedToursTypeOffered,escortedTourClientName:e.escortedTourClientName,escortedToursLink:e.escortedToursLink,mediaToursAllowed:e.mediaToursAllowed,mediaToursTypeOffered:e.mediaToursTypeOffered,mediaTourClientName:e.mediaTourClientName,mediaToursLink:e.mediaToursLink,liveVirtualToursAllowed:e.liveVirtualToursAllowed,liveVirtualToursTypeOffered:e.liveVirtualToursTypeOffered,liveVirtualTourClientName:e.liveVirtualTourClientName,liveVirtualToursLink:e.liveVirtualToursLink,selfGuidedToursAllowed:e.selfGuidedToursAllowed,selfGuidedToursTypeOffered:e.selfGuidedToursTypeOffered,selfGuidedTourClientName:e.selfGuidedTourClientName,selfGuidedToursLink:e.selfGuidedToursLink}}},2386:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CalendarEventTourHandlerToJSON=t.CalendarEventTourHandlerFromJSONTyped=t.CalendarEventTourHandlerFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:e.id,timeCreated:new Date(e.timeCreated),buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId}}t.CalendarEventTourHandlerFromJSON=function(e){return r(e)},t.CalendarEventTourHandlerFromJSONTyped=r,t.CalendarEventTourHandlerToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,timeCreated:e.timeCreated.toISOString(),buildingId:e.buildingId,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId}}},4853:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancelActionDtoToJSON=t.CancelActionDtoFromJSONTyped=t.CancelActionDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,calendarEventId:n.exists(e,"calendarEventId")?e.calendarEventId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.CancelActionDtoFromJSON=function(e){return r(e)},t.CancelActionDtoFromJSONTyped=r,t.CancelActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,calendarEventId:e.calendarEventId,buildingId:e.buildingId}}},9260:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancelTourByStateIdDtoToJSON=t.CancelTourByStateIdDtoFromJSONTyped=t.CancelTourByStateIdDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{mcId:n.exists(e,"mcId")?e.mcId:void 0,stateId:n.exists(e,"stateId")?e.stateId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,useLegacyContext:n.exists(e,"useLegacyContext")?e.useLegacyContext:void 0,sms:n.exists(e,"sms")?e.sms:void 0}}t.CancelTourByStateIdDtoFromJSON=function(e){return r(e)},t.CancelTourByStateIdDtoFromJSONTyped=r,t.CancelTourByStateIdDtoToJSON=function(e){if(void 0!==e)return null===e?null:{mcId:e.mcId,stateId:e.stateId,buildingId:e.buildingId,useLegacyContext:e.useLegacyContext,sms:e.sms}}},3777:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CancelTourDtoToJSON=t.CancelTourDtoFromJSONTyped=t.CancelTourDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.CancelTourDtoFromJSON=function(e){return r(e)},t.CancelTourDtoFromJSONTyped=r,t.CancelTourDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId}}},713:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChatTelemetryDtoToJSON=t.ChatTelemetryDtoFromJSONTyped=t.ChatTelemetryDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{eventType:n.exists(e,"eventType")?e.eventType:void 0,chatId:n.exists(e,"chatId")?e.chatId:void 0,url:n.exists(e,"url")?e.url:void 0,org:n.exists(e,"org")?e.org:void 0,building:n.exists(e,"building")?e.building:void 0,referrer:n.exists(e,"referrer")?e.referrer:void 0,featureFlags:n.exists(e,"featureFlags")?e.featureFlags:void 0}}t.ChatTelemetryDtoFromJSON=function(e){return r(e)},t.ChatTelemetryDtoFromJSONTyped=r,t.ChatTelemetryDtoToJSON=function(e){if(void 0!==e)return null===e?null:{eventType:e.eventType,chatId:e.chatId,url:e.url,org:e.org,building:e.building,referrer:e.referrer,featureFlags:e.featureFlags}}},1172:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunitiesDefaultsToJSON=t.CommunitiesDefaultsFromJSONTyped=t.CommunitiesDefaultsFromJSON=void 0;var n=i(296),r=i(6448),o=i(6161),a=i(6069),s=i(6122);function l(e,t){return null==e?e:{virtualTourType:n.exists(e,"virtualTourType")?s.SettingVirtualTourTypeFromJSON(e.virtualTourType):void 0,virtualTourPlatforms:n.exists(e,"virtualTourPlatforms")?a.SettingStringFromJSON(e.virtualTourPlatforms):void 0,furnishedOffered:n.exists(e,"furnishedOffered")?o.SettingIntegerFromJSON(e.furnishedOffered):void 0,furnishedUnitsPolicy:n.exists(e,"furnishedUnitsPolicy")?a.SettingStringFromJSON(e.furnishedUnitsPolicy):void 0,utilitiesIncluded:n.exists(e,"utilitiesIncluded")?a.SettingStringFromJSON(e.utilitiesIncluded):void 0,utilitiesNotIncluded:n.exists(e,"utilitiesNotIncluded")?a.SettingStringFromJSON(e.utilitiesNotIncluded):void 0,advancedMoveInAllowenceInDays:n.exists(e,"advancedMoveInAllowenceInDays")?o.SettingIntegerFromJSON(e.advancedMoveInAllowenceInDays):void 0,occupiedUnits:n.exists(e,"occupiedUnits")?o.SettingIntegerFromJSON(e.occupiedUnits):void 0,showUnitsWithPendingApplication:n.exists(e,"showUnitsWithPendingApplication")?r.SettingBooleanFromJSON(e.showUnitsWithPendingApplication):void 0,confirmAppointmentsRenovatingUnits:n.exists(e,"confirmAppointmentsRenovatingUnits")?r.SettingBooleanFromJSON(e.confirmAppointmentsRenovatingUnits):void 0,occupiedUnitsAdvancedNoticeInHours:n.exists(e,"occupiedUnitsAdvancedNoticeInHours")?o.SettingIntegerFromJSON(e.occupiedUnitsAdvancedNoticeInHours):void 0,confirmAppointmentsOccupiedUnits:n.exists(e,"confirmAppointmentsOccupiedUnits")?r.SettingBooleanFromJSON(e.confirmAppointmentsOccupiedUnits):void 0,showOccupiedUnitsWithPendingApplication:n.exists(e,"showOccupiedUnitsWithPendingApplication")?r.SettingBooleanFromJSON(e.showOccupiedUnitsWithPendingApplication):void 0,leaseholderApplicationDocumentsRequired:n.exists(e,"leaseholderApplicationDocumentsRequired")?a.SettingStringFromJSON(e.leaseholderApplicationDocumentsRequired):void 0,leaseholderMinimumCreditScoreRequirement:n.exists(e,"leaseholderMinimumCreditScoreRequirement")?a.SettingStringFromJSON(e.leaseholderMinimumCreditScoreRequirement):void 0,noCreditQualificationAlternative:n.exists(e,"noCreditQualificationAlternative")?a.SettingStringFromJSON(e.noCreditQualificationAlternative):void 0,incomeRequirementRentMultiplierTimePeriod:n.exists(e,"incomeRequirementRentMultiplierTimePeriod")?r.SettingBooleanFromJSON(e.incomeRequirementRentMultiplierTimePeriod):void 0,rentRequiredOnLeaseSigning:n.exists(e,"rentRequiredOnLeaseSigning")?a.SettingStringFromJSON(e.rentRequiredOnLeaseSigning):void 0,paymentFormsAccepted:n.exists(e,"paymentFormsAccepted")?a.SettingStringFromJSON(e.paymentFormsAccepted):void 0,internationalStudentRequirements:n.exists(e,"internationalStudentRequirements")?a.SettingStringFromJSON(e.internationalStudentRequirements):void 0,guarantorMinimumCreditScoreRequirement:n.exists(e,"guarantorMinimumCreditScoreRequirement")?a.SettingStringFromJSON(e.guarantorMinimumCreditScoreRequirement):void 0,effectiveRentComputeType:n.exists(e,"effectiveRentComputeType")?o.SettingIntegerFromJSON(e.effectiveRentComputeType):void 0,avoidQuotingPrices:n.exists(e,"avoidQuotingPrices")?r.SettingBooleanFromJSON(e.avoidQuotingPrices):void 0,defaultAvailabilityQuoteMatchMoveInDate:n.exists(e,"defaultAvailabilityQuoteMatchMoveInDate")?r.SettingBooleanFromJSON(e.defaultAvailabilityQuoteMatchMoveInDate):void 0,rentComputeType:n.exists(e,"rentComputeType")?o.SettingIntegerFromJSON(e.rentComputeType):void 0,rentWithIncentivesQuoteFormat:n.exists(e,"rentWithIncentivesQuoteFormat")?a.SettingStringFromJSON(e.rentWithIncentivesQuoteFormat):void 0,rentQuoteFormat:n.exists(e,"rentQuoteFormat")?a.SettingStringFromJSON(e.rentQuoteFormat):void 0}}t.CommunitiesDefaultsFromJSON=function(e){return l(e)},t.CommunitiesDefaultsFromJSONTyped=l,t.CommunitiesDefaultsToJSON=function(e){if(void 0!==e)return null===e?null:{virtualTourType:s.SettingVirtualTourTypeToJSON(e.virtualTourType),virtualTourPlatforms:a.SettingStringToJSON(e.virtualTourPlatforms),furnishedOffered:o.SettingIntegerToJSON(e.furnishedOffered),furnishedUnitsPolicy:a.SettingStringToJSON(e.furnishedUnitsPolicy),utilitiesIncluded:a.SettingStringToJSON(e.utilitiesIncluded),utilitiesNotIncluded:a.SettingStringToJSON(e.utilitiesNotIncluded),advancedMoveInAllowenceInDays:o.SettingIntegerToJSON(e.advancedMoveInAllowenceInDays),occupiedUnits:o.SettingIntegerToJSON(e.occupiedUnits),showUnitsWithPendingApplication:r.SettingBooleanToJSON(e.showUnitsWithPendingApplication),confirmAppointmentsRenovatingUnits:r.SettingBooleanToJSON(e.confirmAppointmentsRenovatingUnits),occupiedUnitsAdvancedNoticeInHours:o.SettingIntegerToJSON(e.occupiedUnitsAdvancedNoticeInHours),confirmAppointmentsOccupiedUnits:r.SettingBooleanToJSON(e.confirmAppointmentsOccupiedUnits),showOccupiedUnitsWithPendingApplication:r.SettingBooleanToJSON(e.showOccupiedUnitsWithPendingApplication),leaseholderApplicationDocumentsRequired:a.SettingStringToJSON(e.leaseholderApplicationDocumentsRequired),leaseholderMinimumCreditScoreRequirement:a.SettingStringToJSON(e.leaseholderMinimumCreditScoreRequirement),noCreditQualificationAlternative:a.SettingStringToJSON(e.noCreditQualificationAlternative),incomeRequirementRentMultiplierTimePeriod:r.SettingBooleanToJSON(e.incomeRequirementRentMultiplierTimePeriod),rentRequiredOnLeaseSigning:a.SettingStringToJSON(e.rentRequiredOnLeaseSigning),paymentFormsAccepted:a.SettingStringToJSON(e.paymentFormsAccepted),internationalStudentRequirements:a.SettingStringToJSON(e.internationalStudentRequirements),guarantorMinimumCreditScoreRequirement:a.SettingStringToJSON(e.guarantorMinimumCreditScoreRequirement),effectiveRentComputeType:o.SettingIntegerToJSON(e.effectiveRentComputeType),avoidQuotingPrices:r.SettingBooleanToJSON(e.avoidQuotingPrices),defaultAvailabilityQuoteMatchMoveInDate:r.SettingBooleanToJSON(e.defaultAvailabilityQuoteMatchMoveInDate),rentComputeType:o.SettingIntegerToJSON(e.rentComputeType),rentWithIncentivesQuoteFormat:a.SettingStringToJSON(e.rentWithIncentivesQuoteFormat),rentQuoteFormat:a.SettingStringToJSON(e.rentQuoteFormat)}}},5384:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunitiesEdgeToJSON=t.CommunitiesEdgeFromJSONTyped=t.CommunitiesEdgeFromJSON=void 0;var n=i(296),r=i(2414);function o(e,t){return null==e?e:{node:n.exists(e,"node")?r.CommunitiesNodeFromJSON(e.node):void 0}}t.CommunitiesEdgeFromJSON=function(e){return o(e)},t.CommunitiesEdgeFromJSONTyped=o,t.CommunitiesEdgeToJSON=function(e){if(void 0!==e)return null===e?null:{node:r.CommunitiesNodeToJSON(e.node)}}},2414:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunitiesNodeToJSON=t.CommunitiesNodeFromJSONTyped=t.CommunitiesNodeFromJSON=void 0;var n=i(296),r=i(2322),o=i(1204);function a(e,t){return null==e?e:{communityId:n.exists(e,"communityId")?e.communityId:void 0,communityName:n.exists(e,"communityName")?e.communityName:void 0,companyName:n.exists(e,"companyName")?e.companyName:void 0,trackingEmailUsername:n.exists(e,"trackingEmailUsername")?e.trackingEmailUsername:void 0,inPersonToursEnabled:n.exists(e,"inPersonToursEnabled")?e.inPersonToursEnabled:void 0,liveVideoToursEnabled:n.exists(e,"liveVideoToursEnabled")?e.liveVideoToursEnabled:void 0,selfGuidedToursEnabled:n.exists(e,"selfGuidedToursEnabled")?e.selfGuidedToursEnabled:void 0,address:n.exists(e,"address")?r.AddressFromJSON(e.address):void 0,geolocation:n.exists(e,"geolocation")?o.GeolocationFromJSON(e.geolocation):void 0}}t.CommunitiesNodeFromJSON=function(e){return a(e)},t.CommunitiesNodeFromJSONTyped=a,t.CommunitiesNodeToJSON=function(e){if(void 0!==e)return null===e?null:{communityId:e.communityId,communityName:e.communityName,companyName:e.companyName,trackingEmailUsername:e.trackingEmailUsername,inPersonToursEnabled:e.inPersonToursEnabled,liveVideoToursEnabled:e.liveVideoToursEnabled,selfGuidedToursEnabled:e.selfGuidedToursEnabled,address:r.AddressToJSON(e.address),geolocation:o.GeolocationToJSON(e.geolocation)}}},3077:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunityFormViewToJSON=t.CommunityFormViewFromJSONTyped=t.CommunityFormViewFromJSON=t.CommunityFormViewVirtualTourTypeEnum=t.CommunityFormViewTourNotificationEmailsModeEnum=void 0;var n,r,o=i(296),a=i(3617);function s(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,managementCompanyId:o.exists(e,"managementCompanyId")?e.managementCompanyId:void 0,organizationId:o.exists(e,"organizationId")?e.organizationId:void 0,active:o.exists(e,"active")?e.active:void 0,handoffForwardToEmails:o.exists(e,"handoffForwardToEmails")?e.handoffForwardToEmails:void 0,responseCcEmails:o.exists(e,"responseCcEmails")?e.responseCcEmails:void 0,responseBccEmails:o.exists(e,"responseBccEmails")?e.responseBccEmails:void 0,buildingName:o.exists(e,"buildingName")?e.buildingName:void 0,address1:o.exists(e,"address1")?e.address1:void 0,address2:o.exists(e,"address2")?e.address2:void 0,address3:o.exists(e,"address3")?e.address3:void 0,city:o.exists(e,"city")?e.city:void 0,state:o.exists(e,"state")?e.state:void 0,postalCode:o.exists(e,"postalCode")?e.postalCode:void 0,crossStreets:o.exists(e,"crossStreets")?e.crossStreets:void 0,neighborhood:o.exists(e,"neighborhood")?e.neighborhood:void 0,nearbyTransportation:o.exists(e,"nearbyTransportation")?e.nearbyTransportation:void 0,totalUnits:o.exists(e,"totalUnits")?e.totalUnits:void 0,totalFloors:o.exists(e,"totalFloors")?e.totalFloors:void 0,greenBuilding:o.exists(e,"greenBuilding")?e.greenBuilding:void 0,elevator:o.exists(e,"elevator")?e.elevator:void 0,freightElevator:o.exists(e,"freightElevator")?e.freightElevator:void 0,petPolicy:o.exists(e,"petPolicy")?e.petPolicy:void 0,petFeeOrDeposit:o.exists(e,"petFeeOrDeposit")?e.petFeeOrDeposit:void 0,utilitiesIncluded:o.exists(e,"utilitiesIncluded")?e.utilitiesIncluded:void 0,utilitiesNotIncluded:o.exists(e,"utilitiesNotIncluded")?e.utilitiesNotIncluded:void 0,minLeaseTermAccepted:o.exists(e,"minLeaseTermAccepted")?e.minLeaseTermAccepted:void 0,furnishedOffered:o.exists(e,"furnishedOffered")?e.furnishedOffered:void 0,furnishedUnitsPolicy:o.exists(e,"furnishedUnitsPolicy")?e.furnishedUnitsPolicy:void 0,internationalStudentRequirements:o.exists(e,"internationalStudentRequirements")?e.internationalStudentRequirements:void 0,amenitiesFee:o.exists(e,"amenitiesFee")?e.amenitiesFee:void 0,corporateLeasesAccepted:o.exists(e,"corporateLeasesAccepted")?e.corporateLeasesAccepted:void 0,doorman:o.exists(e,"doorman")?e.doorman:void 0,intercom:o.exists(e,"intercom")?e.intercom:void 0,liveInSuper:o.exists(e,"liveInSuper")?e.liveInSuper:void 0,concierge:o.exists(e,"concierge")?e.concierge:void 0,laundryInBuilding:o.exists(e,"laundryInBuilding")?e.laundryInBuilding:void 0,packageReceiving:o.exists(e,"packageReceiving")?e.packageReceiving:void 0,gym:o.exists(e,"gym")?e.gym:void 0,storage:o.exists(e,"storage")?e.storage:void 0,bicycleRoom:o.exists(e,"bicycleRoom")?e.bicycleRoom:void 0,lounge:o.exists(e,"lounge")?e.lounge:void 0,clubHouse:o.exists(e,"clubHouse")?e.clubHouse:void 0,businessCenter:o.exists(e,"businessCenter")?e.businessCenter:void 0,outdoorSpace:o.exists(e,"outdoorSpace")?e.outdoorSpace:void 0,roofDeck:o.exists(e,"roofDeck")?e.roofDeck:void 0,courtyard:o.exists(e,"courtyard")?e.courtyard:void 0,childrenPlayroom:o.exists(e,"childrenPlayroom")?e.childrenPlayroom:void 0,nursery:o.exists(e,"nursery")?e.nursery:void 0,maidService:o.exists(e,"maidService")?e.maidService:void 0,pool:o.exists(e,"pool")?e.pool:void 0,wheelchairAccess:o.exists(e,"wheelchairAccess")?e.wheelchairAccess:void 0,thirdPartyGuarantorTypesAccepted:o.exists(e,"thirdPartyGuarantorTypesAccepted")?e.thirdPartyGuarantorTypesAccepted:void 0,noCreditQualificationAlternative:o.exists(e,"noCreditQualificationAlternative")?e.noCreditQualificationAlternative:void 0,virtualTourPlatforms:o.exists(e,"virtualTourPlatforms")?e.virtualTourPlatforms:void 0,flexWallPolicy:o.exists(e,"flexWallPolicy")?e.flexWallPolicy:void 0,leaseholderApplicationFee:o.exists(e,"leaseholderApplicationFee")?e.leaseholderApplicationFee:void 0,guarantorApplicationFee:o.exists(e,"guarantorApplicationFee")?e.guarantorApplicationFee:void 0,tenantIncomeRequirementRentMultiplier:o.exists(e,"tenantIncomeRequirementRentMultiplier")?e.tenantIncomeRequirementRentMultiplier:void 0,guarantorIncomeRequirementRentMultiplier:o.exists(e,"guarantorIncomeRequirementRentMultiplier")?e.guarantorIncomeRequirementRentMultiplier:void 0,leaseholderMinimumCreditScoreRequirement:o.exists(e,"leaseholderMinimumCreditScoreRequirement")?e.leaseholderMinimumCreditScoreRequirement:void 0,guarantorMinimumCreditScoreRequirement:o.exists(e,"guarantorMinimumCreditScoreRequirement")?e.guarantorMinimumCreditScoreRequirement:void 0,leaseholderApplicationDocumentsRequired:o.exists(e,"leaseholderApplicationDocumentsRequired")?e.leaseholderApplicationDocumentsRequired:void 0,guarantorsAccepted:o.exists(e,"guarantorsAccepted")?e.guarantorsAccepted:void 0,prepaymentPolicy:o.exists(e,"prepaymentPolicy")?e.prepaymentPolicy:void 0,rentRequiredOnLeaseSigning:o.exists(e,"rentRequiredOnLeaseSigning")?e.rentRequiredOnLeaseSigning:void 0,paymentFormsAccepted:o.exists(e,"paymentFormsAccepted")?e.paymentFormsAccepted:void 0,leasingBrochureUrl:o.exists(e,"leasingBrochureUrl")?e.leasingBrochureUrl:void 0,leasingOfficeHours:o.exists(e,"leasingOfficeHours")?e.leasingOfficeHours:void 0,appointmentHours:o.exists(e,"appointmentHours")?e.appointmentHours.map(a.AppointmentHoursFromJSON):void 0,occupiedUnitsShowingHours:o.exists(e,"occupiedUnitsShowingHours")?e.occupiedUnitsShowingHours:void 0,tourDuration:o.exists(e,"tourDuration")?e.tourDuration:void 0,leasingPhoneNumber:o.exists(e,"leasingPhoneNumber")?e.leasingPhoneNumber:void 0,callCenterNumber:o.exists(e,"callCenterNumber")?e.callCenterNumber:void 0,buildingWebsiteUrl:o.exists(e,"buildingWebsiteUrl")?e.buildingWebsiteUrl:void 0,applicationLink:o.exists(e,"applicationLink")?e.applicationLink:void 0,geoAddress:o.exists(e,"geoAddress")?e.geoAddress:void 0,googleMapsUrl:o.exists(e,"googleMapsUrl")?e.googleMapsUrl:void 0,appointmentMeetingLocation:o.exists(e,"appointmentMeetingLocation")?e.appointmentMeetingLocation:void 0,appointmentDirections:o.exists(e,"appointmentDirections")?e.appointmentDirections:void 0,appointmentAdditionalDirections:o.exists(e,"appointmentAdditionalDirections")?e.appointmentAdditionalDirections:void 0,rentComputeType:o.exists(e,"rentComputeType")?e.rentComputeType:void 0,autosendActive:o.exists(e,"autosendActive")?e.autosendActive:void 0,advancedMoveInAllowenceInDays:o.exists(e,"advancedMoveInAllowenceInDays")?e.advancedMoveInAllowenceInDays:void 0,showByOpenHouseOnly:o.exists(e,"showByOpenHouseOnly")?e.showByOpenHouseOnly:void 0,showUnitsWithPendingApplication:o.exists(e,"showUnitsWithPendingApplication")?e.showUnitsWithPendingApplication:void 0,showOccupiedUnitsWithPendingApplication:o.exists(e,"showOccupiedUnitsWithPendingApplication")?e.showOccupiedUnitsWithPendingApplication:void 0,confirmAppointmentsOccupiedUnits:o.exists(e,"confirmAppointmentsOccupiedUnits")?e.confirmAppointmentsOccupiedUnits:void 0,confirmAppointmentsRenovatingUnits:o.exists(e,"confirmAppointmentsRenovatingUnits")?e.confirmAppointmentsRenovatingUnits:void 0,occupiedUnitsAdvancedNoticeInHours:o.exists(e,"occupiedUnitsAdvancedNoticeInHours")?e.occupiedUnitsAdvancedNoticeInHours:void 0,alternativeBuildingNames:o.exists(e,"alternativeBuildingNames")?e.alternativeBuildingNames:void 0,externalIds:o.exists(e,"externalIds")?e.externalIds:void 0,externalCrmId:o.exists(e,"externalCrmId")?e.externalCrmId:void 0,defaultAvailabilityQuoteMatchMoveInDate:o.exists(e,"defaultAvailabilityQuoteMatchMoveInDate")?e.defaultAvailabilityQuoteMatchMoveInDate:void 0,leaseRenewalNoticeInDays:o.exists(e,"leaseRenewalNoticeInDays")?e.leaseRenewalNoticeInDays:void 0,rentQuoteFormat:o.exists(e,"rentQuoteFormat")?e.rentQuoteFormat:void 0,rentWithIncentivesQuoteFormat:o.exists(e,"rentWithIncentivesQuoteFormat")?e.rentWithIncentivesQuoteFormat:void 0,effectiveRentComputeType:o.exists(e,"effectiveRentComputeType")?e.effectiveRentComputeType:void 0,maxLeaseTermAccepted:o.exists(e,"maxLeaseTermAccepted")?e.maxLeaseTermAccepted:void 0,parkingInformation:o.exists(e,"parkingInformation")?e.parkingInformation:void 0,storageFee:o.exists(e,"storageFee")?e.storageFee:void 0,incentivesProperlyConnected:o.exists(e,"incentivesProperlyConnected")?e.incentivesProperlyConnected:void 0,prioritizeShowingVacantUnits:o.exists(e,"prioritizeShowingVacantUnits")?e.prioritizeShowingVacantUnits:void 0,electricCompany:o.exists(e,"electricCompany")?e.electricCompany:void 0,gasCompany:o.exists(e,"gasCompany")?e.gasCompany:void 0,telephoneCompany:o.exists(e,"telephoneCompany")?e.telephoneCompany:void 0,televisionCompany:o.exists(e,"televisionCompany")?e.televisionCompany:void 0,waterCompany:o.exists(e,"waterCompany")?e.waterCompany:void 0,internetCompany:o.exists(e,"internetCompany")?e.internetCompany:void 0,localHospital:o.exists(e,"localHospital")?e.localHospital:void 0,localSchoolDistrict:o.exists(e,"localSchoolDistrict")?e.localSchoolDistrict:void 0,localElementarySchool:o.exists(e,"localElementarySchool")?e.localElementarySchool:void 0,localMiddleSchool:o.exists(e,"localMiddleSchool")?e.localMiddleSchool:void 0,localHighSchool:o.exists(e,"localHighSchool")?e.localHighSchool:void 0,localShoppingCenter:o.exists(e,"localShoppingCenter")?e.localShoppingCenter:void 0,localGroceryStore:o.exists(e,"localGroceryStore")?e.localGroceryStore:void 0,closestInterstates:o.exists(e,"closestInterstates")?e.closestInterstates:void 0,buildingPicturesUrl:o.exists(e,"buildingPicturesUrl")?e.buildingPicturesUrl:void 0,buildingFloorPlansUrl:o.exists(e,"buildingFloorPlansUrl")?e.buildingFloorPlansUrl:void 0,nonexistentLayouts:o.exists(e,"nonexistentLayouts")?e.nonexistentLayouts:void 0,avoidQuotingPrices:o.exists(e,"avoidQuotingPrices")?e.avoidQuotingPrices:void 0,excludeNotRentReadyUnit:o.exists(e,"excludeNotRentReadyUnit")?e.excludeNotRentReadyUnit:void 0,flexWallsAllowed:o.exists(e,"flexWallsAllowed")?e.flexWallsAllowed:void 0,petsAccepted:o.exists(e,"petsAccepted")?e.petsAccepted:void 0,showOccupiedUnits:o.exists(e,"showOccupiedUnits")?e.showOccupiedUnits:void 0,guarantorsAcceptedSwitch:o.exists(e,"guarantorsAcceptedSwitch")?e.guarantorsAcceptedSwitch:void 0,thirdPartyGuarantorsAccepted:o.exists(e,"thirdPartyGuarantorsAccepted")?e.thirdPartyGuarantorsAccepted:void 0,leasingOfficeOnsite:o.exists(e,"leasingOfficeOnsite")?e.leasingOfficeOnsite:void 0,building3dMediaUrl:o.exists(e,"building3dMediaUrl")?e.building3dMediaUrl:void 0,inPersonToursAllowed:o.exists(e,"inPersonToursAllowed")?e.inPersonToursAllowed:void 0,selfGuidedToursEnabled:o.exists(e,"selfGuidedToursEnabled")?e.selfGuidedToursEnabled:void 0,noUnitSelfGuidedTourAllowed:o.exists(e,"noUnitSelfGuidedTourAllowed")?e.noUnitSelfGuidedTourAllowed:void 0,textForwardToEmails:o.exists(e,"textForwardToEmails")?e.textForwardToEmails:void 0,omitDesiredFloorPlan:o.exists(e,"omitDesiredFloorPlan")?e.omitDesiredFloorPlan:void 0,tourNotificationEmailsMode:o.exists(e,"tourNotificationEmailsMode")?e.tourNotificationEmailsMode:void 0,virtualTourType:o.exists(e,"virtualTourType")?e.virtualTourType:void 0,offeredLayouts:o.exists(e,"offeredLayouts")?e.offeredLayouts:void 0,weeklyReportEmails:o.exists(e,"weeklyReportEmails")?e.weeklyReportEmails:void 0,dailyReportEmails:o.exists(e,"dailyReportEmails")?e.dailyReportEmails:void 0,sgtUrl:o.exists(e,"sgtUrl")?e.sgtUrl:void 0,preRecordedVirtualTourUrl:o.exists(e,"preRecordedVirtualTourUrl")?e.preRecordedVirtualTourUrl:void 0,liveVirtualToursLink:o.exists(e,"liveVirtualToursLink")?e.liveVirtualToursLink:void 0,selfGuidedToursLink:o.exists(e,"selfGuidedToursLink")?e.selfGuidedToursLink:void 0}}(r=t.CommunityFormViewTourNotificationEmailsModeEnum||(t.CommunityFormViewTourNotificationEmailsModeEnum={})).NoNotification="NO_NOTIFICATION",r.AllViewings="ALL_VIEWINGS",r.SameDayViewings="SAME_DAY_VIEWINGS",(n=t.CommunityFormViewVirtualTourTypeEnum||(t.CommunityFormViewVirtualTourTypeEnum={})).NotEnabled="NOT_ENABLED",n.SelfManaged="SELF_MANAGED",n.Whereby="WHEREBY",t.CommunityFormViewFromJSON=function(e){return s(e)},t.CommunityFormViewFromJSONTyped=s,t.CommunityFormViewToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,managementCompanyId:e.managementCompanyId,organizationId:e.organizationId,active:e.active,handoffForwardToEmails:e.handoffForwardToEmails,responseCcEmails:e.responseCcEmails,responseBccEmails:e.responseBccEmails,buildingName:e.buildingName,address1:e.address1,address2:e.address2,address3:e.address3,city:e.city,state:e.state,postalCode:e.postalCode,crossStreets:e.crossStreets,neighborhood:e.neighborhood,nearbyTransportation:e.nearbyTransportation,totalUnits:e.totalUnits,totalFloors:e.totalFloors,greenBuilding:e.greenBuilding,elevator:e.elevator,freightElevator:e.freightElevator,petPolicy:e.petPolicy,petFeeOrDeposit:e.petFeeOrDeposit,utilitiesIncluded:e.utilitiesIncluded,utilitiesNotIncluded:e.utilitiesNotIncluded,minLeaseTermAccepted:e.minLeaseTermAccepted,furnishedOffered:e.furnishedOffered,furnishedUnitsPolicy:e.furnishedUnitsPolicy,internationalStudentRequirements:e.internationalStudentRequirements,amenitiesFee:e.amenitiesFee,corporateLeasesAccepted:e.corporateLeasesAccepted,doorman:e.doorman,intercom:e.intercom,liveInSuper:e.liveInSuper,concierge:e.concierge,laundryInBuilding:e.laundryInBuilding,packageReceiving:e.packageReceiving,gym:e.gym,storage:e.storage,bicycleRoom:e.bicycleRoom,lounge:e.lounge,clubHouse:e.clubHouse,businessCenter:e.businessCenter,outdoorSpace:e.outdoorSpace,roofDeck:e.roofDeck,courtyard:e.courtyard,childrenPlayroom:e.childrenPlayroom,nursery:e.nursery,maidService:e.maidService,pool:e.pool,wheelchairAccess:e.wheelchairAccess,thirdPartyGuarantorTypesAccepted:e.thirdPartyGuarantorTypesAccepted,noCreditQualificationAlternative:e.noCreditQualificationAlternative,virtualTourPlatforms:e.virtualTourPlatforms,flexWallPolicy:e.flexWallPolicy,leaseholderApplicationFee:e.leaseholderApplicationFee,guarantorApplicationFee:e.guarantorApplicationFee,tenantIncomeRequirementRentMultiplier:e.tenantIncomeRequirementRentMultiplier,guarantorIncomeRequirementRentMultiplier:e.guarantorIncomeRequirementRentMultiplier,leaseholderMinimumCreditScoreRequirement:e.leaseholderMinimumCreditScoreRequirement,guarantorMinimumCreditScoreRequirement:e.guarantorMinimumCreditScoreRequirement,leaseholderApplicationDocumentsRequired:e.leaseholderApplicationDocumentsRequired,guarantorsAccepted:e.guarantorsAccepted,prepaymentPolicy:e.prepaymentPolicy,rentRequiredOnLeaseSigning:e.rentRequiredOnLeaseSigning,paymentFormsAccepted:e.paymentFormsAccepted,leasingBrochureUrl:e.leasingBrochureUrl,leasingOfficeHours:e.leasingOfficeHours,appointmentHours:void 0===e.appointmentHours?void 0:e.appointmentHours.map(a.AppointmentHoursToJSON),occupiedUnitsShowingHours:e.occupiedUnitsShowingHours,tourDuration:e.tourDuration,leasingPhoneNumber:e.leasingPhoneNumber,callCenterNumber:e.callCenterNumber,buildingWebsiteUrl:e.buildingWebsiteUrl,applicationLink:e.applicationLink,geoAddress:e.geoAddress,googleMapsUrl:e.googleMapsUrl,appointmentMeetingLocation:e.appointmentMeetingLocation,appointmentDirections:e.appointmentDirections,appointmentAdditionalDirections:e.appointmentAdditionalDirections,rentComputeType:e.rentComputeType,autosendActive:e.autosendActive,advancedMoveInAllowenceInDays:e.advancedMoveInAllowenceInDays,showByOpenHouseOnly:e.showByOpenHouseOnly,showUnitsWithPendingApplication:e.showUnitsWithPendingApplication,showOccupiedUnitsWithPendingApplication:e.showOccupiedUnitsWithPendingApplication,confirmAppointmentsOccupiedUnits:e.confirmAppointmentsOccupiedUnits,confirmAppointmentsRenovatingUnits:e.confirmAppointmentsRenovatingUnits,occupiedUnitsAdvancedNoticeInHours:e.occupiedUnitsAdvancedNoticeInHours,alternativeBuildingNames:e.alternativeBuildingNames,externalIds:e.externalIds,externalCrmId:e.externalCrmId,defaultAvailabilityQuoteMatchMoveInDate:e.defaultAvailabilityQuoteMatchMoveInDate,leaseRenewalNoticeInDays:e.leaseRenewalNoticeInDays,rentQuoteFormat:e.rentQuoteFormat,rentWithIncentivesQuoteFormat:e.rentWithIncentivesQuoteFormat,effectiveRentComputeType:e.effectiveRentComputeType,maxLeaseTermAccepted:e.maxLeaseTermAccepted,parkingInformation:e.parkingInformation,storageFee:e.storageFee,incentivesProperlyConnected:e.incentivesProperlyConnected,prioritizeShowingVacantUnits:e.prioritizeShowingVacantUnits,electricCompany:e.electricCompany,gasCompany:e.gasCompany,telephoneCompany:e.telephoneCompany,televisionCompany:e.televisionCompany,waterCompany:e.waterCompany,internetCompany:e.internetCompany,localHospital:e.localHospital,localSchoolDistrict:e.localSchoolDistrict,localElementarySchool:e.localElementarySchool,localMiddleSchool:e.localMiddleSchool,localHighSchool:e.localHighSchool,localShoppingCenter:e.localShoppingCenter,localGroceryStore:e.localGroceryStore,closestInterstates:e.closestInterstates,buildingPicturesUrl:e.buildingPicturesUrl,buildingFloorPlansUrl:e.buildingFloorPlansUrl,nonexistentLayouts:e.nonexistentLayouts,avoidQuotingPrices:e.avoidQuotingPrices,excludeNotRentReadyUnit:e.excludeNotRentReadyUnit,flexWallsAllowed:e.flexWallsAllowed,petsAccepted:e.petsAccepted,showOccupiedUnits:e.showOccupiedUnits,guarantorsAcceptedSwitch:e.guarantorsAcceptedSwitch,thirdPartyGuarantorsAccepted:e.thirdPartyGuarantorsAccepted,leasingOfficeOnsite:e.leasingOfficeOnsite,building3dMediaUrl:e.building3dMediaUrl,inPersonToursAllowed:e.inPersonToursAllowed,selfGuidedToursEnabled:e.selfGuidedToursEnabled,noUnitSelfGuidedTourAllowed:e.noUnitSelfGuidedTourAllowed,textForwardToEmails:e.textForwardToEmails,omitDesiredFloorPlan:e.omitDesiredFloorPlan,tourNotificationEmailsMode:e.tourNotificationEmailsMode,virtualTourType:e.virtualTourType,offeredLayouts:e.offeredLayouts,weeklyReportEmails:e.weeklyReportEmails,dailyReportEmails:e.dailyReportEmails,sgtUrl:e.sgtUrl,preRecordedVirtualTourUrl:e.preRecordedVirtualTourUrl,liveVirtualToursLink:e.liveVirtualToursLink,selfGuidedToursLink:e.selfGuidedToursLink}}},2817:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CommunityPageBuildingToJSON=t.CommunityPageBuildingFromJSONTyped=t.CommunityPageBuildingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingName:n.exists(e,"buildingName")?e.buildingName:void 0,launchDate:n.exists(e,"launchDate")?new Date(e.launchDate):void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,organizationName:n.exists(e,"organizationName")?e.organizationName:void 0,assistantId:n.exists(e,"assistantId")?e.assistantId:void 0,assistantEmail:n.exists(e,"assistantEmail")?e.assistantEmail:void 0,externalIds:n.exists(e,"externalIds")?e.externalIds:void 0,externalCrmId:n.exists(e,"externalCrmId")?e.externalCrmId:void 0,id:n.exists(e,"id")?e.id:void 0,totalUnits:n.exists(e,"totalUnits")?e.totalUnits:void 0,address1:n.exists(e,"address1")?e.address1:void 0,city:n.exists(e,"city")?e.city:void 0,state:n.exists(e,"state")?e.state:void 0,postalCode:n.exists(e,"postalCode")?e.postalCode:void 0,active:n.exists(e,"active")?e.active:void 0,calendarId:n.exists(e,"calendarId")?e.calendarId:void 0}}t.CommunityPageBuildingFromJSON=function(e){return r(e)},t.CommunityPageBuildingFromJSONTyped=r,t.CommunityPageBuildingToJSON=function(e){if(void 0!==e)return null===e?null:{buildingName:e.buildingName,launchDate:void 0===e.launchDate?void 0:e.launchDate.toISOString(),organizationId:e.organizationId,organizationName:e.organizationName,assistantId:e.assistantId,assistantEmail:e.assistantEmail,externalIds:e.externalIds,externalCrmId:e.externalCrmId,id:e.id,totalUnits:e.totalUnits,address1:e.address1,city:e.city,state:e.state,postalCode:e.postalCode,active:e.active,calendarId:e.calendarId}}},9407:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextDtoToJSON=t.ContextDtoFromJSONTyped=t.ContextDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,leadId:n.exists(e,"leadId")?e.leadId:void 0,partyId:n.exists(e,"partyId")?e.partyId:void 0}}t.ContextDtoFromJSON=function(e){return r(e)},t.ContextDtoFromJSONTyped=r,t.ContextDtoToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,leadId:e.leadId,partyId:e.partyId}}},7058:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationToJSON=t.ConversationFromJSONTyped=t.ConversationFromJSON=void 0;var n=i(296),r=i(3531);function o(e,t){return null==e?e:{leadContact:n.exists(e,"leadContact")?e.leadContact:void 0,conversations:n.exists(e,"conversations")?e.conversations.map(r.ConversationMessageFromJSON):void 0}}t.ConversationFromJSON=function(e){return o(e)},t.ConversationFromJSONTyped=o,t.ConversationToJSON=function(e){if(void 0!==e)return null===e?null:{leadContact:e.leadContact,conversations:void 0===e.conversations?void 0:e.conversations.map(r.ConversationMessageToJSON)}}},3531:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationMessageToJSON=t.ConversationMessageFromJSONTyped=t.ConversationMessageFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{sender:n.exists(e,"sender")?e.sender:void 0,body:n.exists(e,"body")?e.body:void 0,timeSent:n.exists(e,"timeSent")?e.timeSent:void 0}}t.ConversationMessageFromJSON=function(e){return r(e)},t.ConversationMessageFromJSONTyped=r,t.ConversationMessageToJSON=function(e){if(void 0!==e)return null===e?null:{sender:e.sender,body:e.body,timeSent:e.timeSent}}},6613:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationMessageV2ToJSON=t.ConversationMessageV2FromJSONTyped=t.ConversationMessageV2FromJSON=t.ConversationMessageV2TypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{type:r.exists(e,"type")?e.type:void 0,id:r.exists(e,"id")?e.id:void 0,timeSent:r.exists(e,"timeSent")?new Date(e.timeSent):void 0,body:r.exists(e,"body")?e.body:void 0,sender:r.exists(e,"sender")?e.sender:void 0,subject:r.exists(e,"subject")?e.subject:void 0,threadId:r.exists(e,"threadId")?e.threadId:void 0}}(n=t.ConversationMessageV2TypeEnum||(t.ConversationMessageV2TypeEnum={})).WebChat="WebChat",n.Email="Email",n.Text="Text",t.ConversationMessageV2FromJSON=function(e){return o(e)},t.ConversationMessageV2FromJSONTyped=o,t.ConversationMessageV2ToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type,id:e.id,timeSent:void 0===e.timeSent?void 0:e.timeSent.toISOString(),body:e.body,sender:e.sender,subject:e.subject,threadId:e.threadId}}},5040:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConversationV2ToJSON=t.ConversationV2FromJSONTyped=t.ConversationV2FromJSON=void 0;var n=i(296),r=i(6613),o=i(7662);function a(e,t){return null==e?e:{lead:n.exists(e,"lead")?o.LeadInfoFromJSON(e.lead):void 0,conversations:n.exists(e,"conversations")?e.conversations.map(r.ConversationMessageV2FromJSON):void 0}}t.ConversationV2FromJSON=function(e){return a(e)},t.ConversationV2FromJSONTyped=a,t.ConversationV2ToJSON=function(e){if(void 0!==e)return null===e?null:{lead:o.LeadInfoToJSON(e.lead),conversations:void 0===e.conversations?void 0:e.conversations.map(r.ConversationMessageV2ToJSON)}}},5111:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateCalendarEventTourHandlerDtoToJSON=t.CreateCalendarEventTourHandlerDtoFromJSONTyped=t.CreateCalendarEventTourHandlerDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId}}t.CreateCalendarEventTourHandlerDtoFromJSON=function(e){return r(e)},t.CreateCalendarEventTourHandlerDtoFromJSONTyped=r,t.CreateCalendarEventTourHandlerDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId}}},3202:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateScriptRequestToJSON=t.CreateScriptRequestFromJSONTyped=t.CreateScriptRequestFromJSON=t.CreateScriptRequestHandoffIntentStateEnum=t.CreateScriptRequestTypeEnum=t.CreateScriptRequestMediaEnum=void 0;var n,r,o,a=i(296);function s(e,t){return null==e?e:{organizationId:a.exists(e,"organizationId")?e.organizationId:void 0,media:e.media,type:e.type,category:e.category,subIntent:a.exists(e,"subIntent")?e.subIntent:void 0,text:e.text,handoffIntentState:a.exists(e,"handoffIntentState")?e.handoffIntentState:void 0,communityId:a.exists(e,"communityId")?e.communityId:void 0}}(o=t.CreateScriptRequestMediaEnum||(t.CreateScriptRequestMediaEnum={})).Both="BOTH",o.Email="EMAIL",o.Sms="SMS",(r=t.CreateScriptRequestTypeEnum||(t.CreateScriptRequestTypeEnum={})).All="ALL",r.Template="TEMPLATE",r.TemplateItem="TEMPLATE_ITEM",(n=t.CreateScriptRequestHandoffIntentStateEnum||(t.CreateScriptRequestHandoffIntentStateEnum={})).None="NONE",n.YellowStatus="YELLOW_STATUS",n.RedAlertSend="RED_ALERT_SEND",n.RedAlertDoNotSend="RED_ALERT_DO_NOT_SEND",t.CreateScriptRequestFromJSON=function(e){return s(e)},t.CreateScriptRequestFromJSONTyped=s,t.CreateScriptRequestToJSON=function(e){if(void 0!==e)return null===e?null:{organizationId:e.organizationId,media:e.media,type:e.type,category:e.category,subIntent:e.subIntent,text:e.text,handoffIntentState:e.handoffIntentState,communityId:e.communityId}}},6058:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CreateWhitelistConfigRequestToJSON=t.CreateWhitelistConfigRequestFromJSONTyped=t.CreateWhitelistConfigRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,testName:n.exists(e,"testName")?e.testName:void 0,whitelistingEmail:n.exists(e,"whitelistingEmail")?e.whitelistingEmail:void 0}}t.CreateWhitelistConfigRequestFromJSON=function(e){return r(e)},t.CreateWhitelistConfigRequestFromJSONTyped=r,t.CreateWhitelistConfigRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,testName:e.testName,whitelistingEmail:e.whitelistingEmail}}},3817:(e,t)=>{function i(e,t){return null==e?e:{startOfRange:new Date(e.startOfRange),endOfRange:new Date(e.endOfRange),buildingId:e.buildingId,numAiMessagesSent:e.numAiMessagesSent,numAiSentEmailFollowup:e.numAiSentEmailFollowup,numAiSentTextFollowup:e.numAiSentTextFollowup,averageMessagesPerProspect:e.averageMessagesPerProspect,prospectToTourConversion:e.prospectToTourConversion,numTours:e.numTours,tourBookedByMENoncancelled:e.tourBookedByMENoncancelled,tourAttended:e.tourAttended,aiBookedTourAttended:e.aiBookedTourAttended,newProspectsHandled:e.newProspectsHandled,hoursSavedByAi:e.hoursSavedByAi,numEarlyAgentTakeover:e.numEarlyAgentTakeover,numPassToAgent:e.numPassToAgent,numActionRequiredFromAgent:e.numActionRequiredFromAgent,numberLeadsApplied:e.numberLeadsApplied}}Object.defineProperty(t,"__esModule",{value:!0}),t.DateRangeReportToJSON=t.DateRangeReportFromJSONTyped=t.DateRangeReportFromJSON=void 0,t.DateRangeReportFromJSON=function(e){return i(e)},t.DateRangeReportFromJSONTyped=i,t.DateRangeReportToJSON=function(e){if(void 0!==e)return null===e?null:{startOfRange:e.startOfRange.toISOString(),endOfRange:e.endOfRange.toISOString(),buildingId:e.buildingId,numAiMessagesSent:e.numAiMessagesSent,numAiSentEmailFollowup:e.numAiSentEmailFollowup,numAiSentTextFollowup:e.numAiSentTextFollowup,averageMessagesPerProspect:e.averageMessagesPerProspect,prospectToTourConversion:e.prospectToTourConversion,numTours:e.numTours,tourBookedByMENoncancelled:e.tourBookedByMENoncancelled,tourAttended:e.tourAttended,aiBookedTourAttended:e.aiBookedTourAttended,newProspectsHandled:e.newProspectsHandled,hoursSavedByAi:e.hoursSavedByAi,numEarlyAgentTakeover:e.numEarlyAgentTakeover,numPassToAgent:e.numPassToAgent,numActionRequiredFromAgent:e.numActionRequiredFromAgent,numberLeadsApplied:e.numberLeadsApplied}}},8882:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DialogueScriptToJSON=t.DialogueScriptFromJSONTyped=t.DialogueScriptFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,deleted:n.exists(e,"deleted")?e.deleted:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,name:n.exists(e,"name")?e.name:void 0,subintent:n.exists(e,"subintent")?e.subintent:void 0,text:n.exists(e,"text")?e.text:void 0}}t.DialogueScriptFromJSON=function(e){return r(e)},t.DialogueScriptFromJSONTyped=r,t.DialogueScriptToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,deleted:e.deleted,buildingId:e.buildingId,organizationId:e.organizationId,name:e.name,subintent:e.subintent,text:e.text}}},6607:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EliseCalendarEventToJSON=t.EliseCalendarEventFromJSONTyped=t.EliseCalendarEventFromJSON=t.EliseCalendarEventTourTypeEnum=t.EliseCalendarEventSmartLockAccessTypeEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,leadId:o.exists(e,"leadId")?e.leadId:void 0,userId:o.exists(e,"userId")?e.userId:void 0,calendarId:o.exists(e,"calendarId")?e.calendarId:void 0,contextId:o.exists(e,"contextId")?e.contextId:void 0,recurringEventId:o.exists(e,"recurringEventId")?e.recurringEventId:void 0,timeCreated:o.exists(e,"timeCreated")?new Date(e.timeCreated):void 0,description:o.exists(e,"description")?e.description:void 0,status:o.exists(e,"status")?e.status:void 0,summary:o.exists(e,"summary")?e.summary:void 0,eventLocation:o.exists(e,"eventLocation")?e.eventLocation:void 0,startTime:o.exists(e,"startTime")?new Date(e.startTime):void 0,endTime:o.exists(e,"endTime")?new Date(e.endTime):void 0,startTimeString:o.exists(e,"startTimeString")?e.startTimeString:void 0,endTimeString:o.exists(e,"endTimeString")?e.endTimeString:void 0,startTimeInUtc:o.exists(e,"startTimeInUtc")?e.startTimeInUtc:void 0,endTimeInUtc:o.exists(e,"endTimeInUtc")?e.endTimeInUtc:void 0,lastTimeUpdated:o.exists(e,"lastTimeUpdated")?new Date(e.lastTimeUpdated):void 0,recurringEvent:o.exists(e,"recurringEvent")?e.recurringEvent:void 0,recurringEventLatestTimestampStoredUntil:o.exists(e,"recurringEventLatestTimestampStoredUntil")?new Date(e.recurringEventLatestTimestampStoredUntil):void 0,preserveOnReset:o.exists(e,"preserveOnReset")?e.preserveOnReset:void 0,internalEvent:o.exists(e,"internalEvent")?e.internalEvent:void 0,skipExternalBooking:o.exists(e,"skipExternalBooking")?e.skipExternalBooking:void 0,ignoreOtherEvents:o.exists(e,"ignoreOtherEvents")?e.ignoreOtherEvents:void 0,htmlLink:o.exists(e,"htmlLink")?e.htmlLink:void 0,geteTag:o.exists(e,"geteTag")?e.geteTag:void 0,getiCalUID:o.exists(e,"getiCalUID")?e.getiCalUID:void 0,eventId:o.exists(e,"eventId")?e.eventId:void 0,creatorName:o.exists(e,"creatorName")?e.creatorName:void 0,creatorEmail:o.exists(e,"creatorEmail")?e.creatorEmail:void 0,organizerName:o.exists(e,"organizerName")?e.organizerName:void 0,organizerEmail:o.exists(e,"organizerEmail")?e.organizerEmail:void 0,transparency:o.exists(e,"transparency")?e.transparency:void 0,visibility:o.exists(e,"visibility")?e.visibility:void 0,colorId:o.exists(e,"colorId")?e.colorId:void 0,availabilityStatus:o.exists(e,"availabilityStatus")?e.availabilityStatus:void 0,relevantMessageId:o.exists(e,"relevantMessageId")?e.relevantMessageId:void 0,isPredicted:o.exists(e,"isPredicted")?e.isPredicted:void 0,isArchived:o.exists(e,"isArchived")?e.isArchived:void 0,smartLockAccessType:o.exists(e,"smartLockAccessType")?e.smartLockAccessType:void 0,traineeEmail:o.exists(e,"traineeEmail")?e.traineeEmail:void 0,notes:o.exists(e,"notes")?e.notes:void 0,tourType:o.exists(e,"tourType")?e.tourType:void 0,busy:o.exists(e,"busy")?e.busy:void 0,cancelled:o.exists(e,"cancelled")?e.cancelled:void 0,_new:o.exists(e,"new")?e.new:void 0}}(r=t.EliseCalendarEventSmartLockAccessTypeEnum||(t.EliseCalendarEventSmartLockAccessTypeEnum={})).WithAgent="WITH_AGENT",r.ExternallyManaged="EXTERNALLY_MANAGED",r.SmartKeyAccessManaged="SMART_KEY_ACCESS_MANAGED",(n=t.EliseCalendarEventTourTypeEnum||(t.EliseCalendarEventTourTypeEnum={})).Unknown="UNKNOWN",n.None="NONE",n.Any="ANY",n.NotEscorted="NOT_ESCORTED",n.Escorted="ESCORTED",n.NotSelfGuided="NOT_SELF_GUIDED",n.SelfGuided="SELF_GUIDED",n.NotVirtualTour="NOT_VIRTUAL_TOUR",n.VirtualTour="VIRTUAL_TOUR",n.NotMediaTour="NOT_MEDIA_TOUR",n.MediaTour="MEDIA_TOUR",t.EliseCalendarEventFromJSON=function(e){return a(e)},t.EliseCalendarEventFromJSONTyped=a,t.EliseCalendarEventToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,leadId:e.leadId,userId:e.userId,calendarId:e.calendarId,contextId:e.contextId,recurringEventId:e.recurringEventId,timeCreated:void 0===e.timeCreated?void 0:e.timeCreated.toISOString(),description:e.description,status:e.status,summary:e.summary,eventLocation:e.eventLocation,startTime:void 0===e.startTime?void 0:e.startTime.toISOString(),endTime:void 0===e.endTime?void 0:e.endTime.toISOString(),startTimeString:e.startTimeString,endTimeString:e.endTimeString,startTimeInUtc:e.startTimeInUtc,endTimeInUtc:e.endTimeInUtc,lastTimeUpdated:void 0===e.lastTimeUpdated?void 0:e.lastTimeUpdated.toISOString(),recurringEvent:e.recurringEvent,recurringEventLatestTimestampStoredUntil:void 0===e.recurringEventLatestTimestampStoredUntil?void 0:e.recurringEventLatestTimestampStoredUntil.toISOString(),preserveOnReset:e.preserveOnReset,internalEvent:e.internalEvent,skipExternalBooking:e.skipExternalBooking,ignoreOtherEvents:e.ignoreOtherEvents,htmlLink:e.htmlLink,geteTag:e.geteTag,getiCalUID:e.getiCalUID,eventId:e.eventId,creatorName:e.creatorName,creatorEmail:e.creatorEmail,organizerName:e.organizerName,organizerEmail:e.organizerEmail,transparency:e.transparency,visibility:e.visibility,colorId:e.colorId,availabilityStatus:e.availabilityStatus,relevantMessageId:e.relevantMessageId,isPredicted:e.isPredicted,isArchived:e.isArchived,smartLockAccessType:e.smartLockAccessType,traineeEmail:e.traineeEmail,notes:e.notes,tourType:e.tourType,busy:e.busy,cancelled:e.cancelled,new:e._new}}},5007:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EliseGuestCardDtoToJSON=t.EliseGuestCardDtoFromJSONTyped=t.EliseGuestCardDtoFromJSON=t.EliseGuestCardDtoInitialLeadChannelEnum=t.EliseGuestCardDtoIntegrationSourceEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,firstName:o.exists(e,"firstName")?e.firstName:void 0,lastName:o.exists(e,"lastName")?e.lastName:void 0,phoneNumber:o.exists(e,"phoneNumber")?e.phoneNumber:void 0,email:o.exists(e,"email")?e.email:void 0,source:o.exists(e,"source")?e.source:void 0,externalClientMarketingSource:o.exists(e,"externalClientMarketingSource")?e.externalClientMarketingSource:void 0,desiredMoveInDate:o.exists(e,"desiredMoveInDate")?e.desiredMoveInDate:void 0,comments:o.exists(e,"comments")?e.comments:void 0,integrationSource:o.exists(e,"integrationSource")?e.integrationSource:void 0,initialLeadChannel:o.exists(e,"initialLeadChannel")?e.initialLeadChannel:void 0,layout:o.exists(e,"layout")?e.layout:void 0,desiredLeaseTerm:o.exists(e,"desiredLeaseTerm")?e.desiredLeaseTerm:void 0}}(r=t.EliseGuestCardDtoIntegrationSourceEnum||(t.EliseGuestCardDtoIntegrationSourceEnum={})).MeCalendar="ME-Calendar",r.Sst="sst",r.EqrApi="eqr-api",r.Elise="Elise",r.Avb="avb",r.Yardi="yardi",r.Entrata="entrata",r.Anyonehome="anyonehome",r.Realpage="realpage",(n=t.EliseGuestCardDtoInitialLeadChannelEnum||(t.EliseGuestCardDtoInitialLeadChannelEnum={})).WalkIn="WALK_IN",n.CallToProspect="CALL_TO_PROSPECT",n.CallFromProspect="CALL_FROM_PROSPECT",n.Other="OTHER",n.Text="TEXT",n.Email="EMAIL",n.WebService="WEB_SERVICE",n.Chat="CHAT",t.EliseGuestCardDtoFromJSON=function(e){return a(e)},t.EliseGuestCardDtoFromJSONTyped=a,t.EliseGuestCardDtoToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,firstName:e.firstName,lastName:e.lastName,phoneNumber:e.phoneNumber,email:e.email,source:e.source,externalClientMarketingSource:e.externalClientMarketingSource,desiredMoveInDate:e.desiredMoveInDate,comments:e.comments,integrationSource:e.integrationSource,initialLeadChannel:e.initialLeadChannel,layout:e.layout,desiredLeaseTerm:e.desiredLeaseTerm}}},1057:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EliseMessageIntentToJSON=t.EliseMessageIntentFromJSONTyped=t.EliseMessageIntentFromJSON=t.EliseMessageIntentMessageTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{id:r.exists(e,"id")?e.id:void 0,clientEmail:r.exists(e,"clientEmail")?e.clientEmail:void 0,leadEmail:r.exists(e,"leadEmail")?e.leadEmail:void 0,leadId:r.exists(e,"leadId")?e.leadId:void 0,hotMailId:r.exists(e,"hotMailId")?e.hotMailId:void 0,intentNameClassifiedAuto:r.exists(e,"intentNameClassifiedAuto")?e.intentNameClassifiedAuto:void 0,intentValue:r.exists(e,"intentValue")?e.intentValue:void 0,intentClassifer:r.exists(e,"intentClassifer")?e.intentClassifer:void 0,type:r.exists(e,"type")?e.type:void 0,verifiedHuman:r.exists(e,"verifiedHuman")?e.verifiedHuman:void 0,intentNameClassifiedManual:r.exists(e,"intentNameClassifiedManual")?e.intentNameClassifiedManual:void 0,intentNameSubintentClassifiedManual:r.exists(e,"intentNameSubintentClassifiedManual")?e.intentNameSubintentClassifiedManual:void 0,responseRequiringApprovalId:r.exists(e,"responseRequiringApprovalId")?e.responseRequiringApprovalId:void 0,pendingApproval:r.exists(e,"pendingApproval")?e.pendingApproval:void 0,strippedText:r.exists(e,"strippedText")?e.strippedText:void 0,isDeleted:r.exists(e,"isDeleted")?e.isDeleted:void 0,hotMailGmailMessageId:r.exists(e,"hotMailGmailMessageId")?e.hotMailGmailMessageId:void 0,processed:r.exists(e,"processed")?e.processed:void 0,getzIndex:r.exists(e,"getzIndex")?e.getzIndex:void 0,descriptiveNounForUnknownIntent:r.exists(e,"descriptiveNounForUnknownIntent")?e.descriptiveNounForUnknownIntent:void 0,aiTrainerInstructions:r.exists(e,"aiTrainerInstructions")?e.aiTrainerInstructions:void 0,messageType:r.exists(e,"messageType")?e.messageType:void 0,tag:r.exists(e,"tag")?e.tag:void 0}}(n=t.EliseMessageIntentMessageTypeEnum||(t.EliseMessageIntentMessageTypeEnum={})).EmailIntent="EMAIL_INTENT",n.TextIntent="TEXT_INTENT",t.EliseMessageIntentFromJSON=function(e){return o(e)},t.EliseMessageIntentFromJSONTyped=o,t.EliseMessageIntentToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,clientEmail:e.clientEmail,leadEmail:e.leadEmail,leadId:e.leadId,hotMailId:e.hotMailId,intentNameClassifiedAuto:e.intentNameClassifiedAuto,intentValue:e.intentValue,intentClassifer:e.intentClassifer,type:e.type,verifiedHuman:e.verifiedHuman,intentNameClassifiedManual:e.intentNameClassifiedManual,intentNameSubintentClassifiedManual:e.intentNameSubintentClassifiedManual,responseRequiringApprovalId:e.responseRequiringApprovalId,pendingApproval:e.pendingApproval,strippedText:e.strippedText,isDeleted:e.isDeleted,hotMailGmailMessageId:e.hotMailGmailMessageId,processed:e.processed,getzIndex:e.getzIndex,descriptiveNounForUnknownIntent:e.descriptiveNounForUnknownIntent,aiTrainerInstructions:e.aiTrainerInstructions,messageType:e.messageType,tag:e.tag}}},7009:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ElisePredictedResponseToJSON=t.ElisePredictedResponseFromJSONTyped=t.ElisePredictedResponseFromJSON=void 0;var n=i(296),r=i(1234),o=i(1057),a=i(6045),s=i(8385);function l(e,t){return null==e?e:{responseMessageBody:n.exists(e,"responseMessageBody")?e.responseMessageBody:void 0,responseTemplate:n.exists(e,"responseTemplate")?e.responseTemplate:void 0,intents:n.exists(e,"intents")?e.intents.map(o.EliseMessageIntentFromJSON):void 0,attachments:n.exists(e,"attachments")?e.attachments.map(r.AttachmentFromJSON):void 0,workInProgressMessageBody:n.exists(e,"workInProgressMessageBody")?e.workInProgressMessageBody:void 0,forcedIntents:n.exists(e,"forcedIntents")?e.forcedIntents.map(a.ForcedIntentFromJSON):void 0,atomicTemplateIntentMapWithSubIntent:n.exists(e,"atomicTemplateIntentMapWithSubIntent")?n.mapValues(e.atomicTemplateIntentMapWithSubIntent,s.ResponseAtomicTemplateFromJSON):void 0}}t.ElisePredictedResponseFromJSON=function(e){return l(e)},t.ElisePredictedResponseFromJSONTyped=l,t.ElisePredictedResponseToJSON=function(e){if(void 0!==e)return null===e?null:{responseMessageBody:e.responseMessageBody,responseTemplate:e.responseTemplate,intents:void 0===e.intents?void 0:e.intents.map(o.EliseMessageIntentToJSON),attachments:void 0===e.attachments?void 0:e.attachments.map(r.AttachmentToJSON),workInProgressMessageBody:e.workInProgressMessageBody,forcedIntents:void 0===e.forcedIntents?void 0:e.forcedIntents.map(a.ForcedIntentToJSON),atomicTemplateIntentMapWithSubIntent:void 0===e.atomicTemplateIntentMapWithSubIntent?void 0:n.mapValues(e.atomicTemplateIntentMapWithSubIntent,s.ResponseAtomicTemplateToJSON)}}},3694:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EntityConfigToJSON=t.EntityConfigFromJSONTyped=t.EntityConfigFromJSON=void 0;var n=i(296),r=i(4105);function o(e,t){return null==e?e:{options:n.exists(e,"options")?r.EntityOptionsFromJSON(e.options):void 0,entityIds:n.exists(e,"entity_ids")?e.entity_ids:void 0}}t.EntityConfigFromJSON=function(e){return o(e)},t.EntityConfigFromJSONTyped=o,t.EntityConfigToJSON=function(e){if(void 0!==e)return null===e?null:{options:r.EntityOptionsToJSON(e.options),entity_ids:e.entityIds}}},4105:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EntityOptionsToJSON=t.EntityOptionsFromJSONTyped=t.EntityOptionsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{active:n.exists(e,"active")?e.active:void 0,test:n.exists(e,"test")?e.test:void 0}}t.EntityOptionsFromJSON=function(e){return r(e)},t.EntityOptionsFromJSONTyped=r,t.EntityOptionsToJSON=function(e){if(void 0!==e)return null===e?null:{active:e.active,test:e.test}}},9861:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EntrataCredentialsToJSON=t.EntrataCredentialsFromJSONTyped=t.EntrataCredentialsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,domain:n.exists(e,"domain")?e.domain:void 0,userName:n.exists(e,"userName")?e.userName:void 0,password:n.exists(e,"password")?e.password:void 0}}t.EntrataCredentialsFromJSON=function(e){return r(e)},t.EntrataCredentialsFromJSONTyped=r,t.EntrataCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,domain:e.domain,userName:e.userName,password:e.password}}},8442:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalBuildingAgentToJSON=t.ExternalBuildingAgentFromJSONTyped=t.ExternalBuildingAgentFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,externalId:n.exists(e,"externalId")?e.externalId:void 0,agentFirstName:n.exists(e,"agentFirstName")?e.agentFirstName:void 0,agentLastName:n.exists(e,"agentLastName")?e.agentLastName:void 0,isDefaultAgent:n.exists(e,"isDefaultAgent")?e.isDefaultAgent:void 0,active:n.exists(e,"active")?e.active:void 0}}t.ExternalBuildingAgentFromJSON=function(e){return r(e)},t.ExternalBuildingAgentFromJSONTyped=r,t.ExternalBuildingAgentToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,externalId:e.externalId,agentFirstName:e.agentFirstName,agentLastName:e.agentLastName,isDefaultAgent:e.isDefaultAgent,active:e.active}}},6885:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalBuildingSourceToJSON=t.ExternalBuildingSourceFromJSONTyped=t.ExternalBuildingSourceFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,source:n.exists(e,"source")?e.source:void 0,eliseSource:n.exists(e,"eliseSource")?e.eliseSource:void 0,isDefaultCatchall:n.exists(e,"isDefaultCatchall")?e.isDefaultCatchall:void 0}}t.ExternalBuildingSourceFromJSON=function(e){return r(e)},t.ExternalBuildingSourceFromJSONTyped=r,t.ExternalBuildingSourceToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,source:e.source,eliseSource:e.eliseSource,isDefaultCatchall:e.isDefaultCatchall}}},7934:(e,t)=>{function i(e,t){return null==e?e:{value:e.value,label:e.label}}var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FirstContactOptionToJSON=t.FirstContactOptionFromJSONTyped=t.FirstContactOptionFromJSON=t.FirstContactOptionValueEnum=void 0,(n=t.FirstContactOptionValueEnum||(t.FirstContactOptionValueEnum={})).CallFromProspect="CALL_FROM_PROSPECT",n.CallToProspect="CALL_TO_PROSPECT",n.Email="EMAIL",n.WalkIn="WALK_IN",n.Text="TEXT",n.WebService="WEB_SERVICE",n.Chat="CHAT",n.Other="OTHER",t.FirstContactOptionFromJSON=function(e){return i(e)},t.FirstContactOptionFromJSONTyped=i,t.FirstContactOptionToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,label:e.label}}},3905:(e,t)=>{function i(e,t){return null==e?e:{contextId:e.contextId,leadStatus:e.leadStatus}}Object.defineProperty(t,"__esModule",{value:!0}),t.FollowUpParamsToJSON=t.FollowUpParamsFromJSONTyped=t.FollowUpParamsFromJSON=void 0,t.FollowUpParamsFromJSON=function(e){return i(e)},t.FollowUpParamsFromJSONTyped=i,t.FollowUpParamsToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,leadStatus:e.leadStatus}}},3958:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FollowUpSettingsToJSON=t.FollowUpSettingsFromJSONTyped=t.FollowUpSettingsFromJSON=void 0;var n=i(296),r=i(4401),o=i(3832),a=i(1431),s=i(908),l=i(3231);function u(e,t){return null==e?e:{longTermPostTourFollowUpSettings:n.exists(e,"longTermPostTourFollowUpSettings")?e.longTermPostTourFollowUpSettings.map(o.LongTermPostTourFollowUpSettingFromJSON):void 0,longTermFollowUpSettings:n.exists(e,"longTermFollowUpSettings")?e.longTermFollowUpSettings.map(r.LongTermFollowUpSettingFromJSON):void 0,postTourFollowUpSettings:n.exists(e,"postTourFollowUpSettings")?e.postTourFollowUpSettings.map(s.PostTourFollowUpSettingFromJSON):void 0,preTourFollowUpSettings:n.exists(e,"preTourFollowUpSettings")?e.preTourFollowUpSettings.map(l.PreTourFollowUpSettingFromJSON):void 0,noShowFollowUpSettings:n.exists(e,"noShowFollowUpSettings")?e.noShowFollowUpSettings.map(a.NoShowFollowUpSettingFromJSON):void 0}}t.FollowUpSettingsFromJSON=function(e){return u(e)},t.FollowUpSettingsFromJSONTyped=u,t.FollowUpSettingsToJSON=function(e){if(void 0!==e)return null===e?null:{longTermPostTourFollowUpSettings:void 0===e.longTermPostTourFollowUpSettings?void 0:e.longTermPostTourFollowUpSettings.map(o.LongTermPostTourFollowUpSettingToJSON),longTermFollowUpSettings:void 0===e.longTermFollowUpSettings?void 0:e.longTermFollowUpSettings.map(r.LongTermFollowUpSettingToJSON),postTourFollowUpSettings:void 0===e.postTourFollowUpSettings?void 0:e.postTourFollowUpSettings.map(s.PostTourFollowUpSettingToJSON),preTourFollowUpSettings:void 0===e.preTourFollowUpSettings?void 0:e.preTourFollowUpSettings.map(l.PreTourFollowUpSettingToJSON),noShowFollowUpSettings:void 0===e.noShowFollowUpSettings?void 0:e.noShowFollowUpSettings.map(a.NoShowFollowUpSettingToJSON)}}},6045:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ForcedIntentToJSON=t.ForcedIntentFromJSONTyped=t.ForcedIntentFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,gmailMessageId:n.exists(e,"gmailMessageId")?e.gmailMessageId:void 0,intentName:n.exists(e,"intentName")?e.intentName:void 0,timeCreated:n.exists(e,"timeCreated")?new Date(e.timeCreated):void 0}}t.ForcedIntentFromJSON=function(e){return r(e)},t.ForcedIntentFromJSONTyped=r,t.ForcedIntentToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,gmailMessageId:e.gmailMessageId,intentName:e.intentName,timeCreated:void 0===e.timeCreated?void 0:e.timeCreated.toISOString()}}},6465:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenerateAndSendExcelReportsOverrideSettingsToJSON=t.GenerateAndSendExcelReportsOverrideSettingsFromJSONTyped=t.GenerateAndSendExcelReportsOverrideSettingsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{reportIds:n.exists(e,"reportIds")?e.reportIds:void 0,recipients:n.exists(e,"recipients")?e.recipients:void 0,dontSend:n.exists(e,"dontSend")?e.dontSend:void 0}}t.GenerateAndSendExcelReportsOverrideSettingsFromJSON=function(e){return r(e)},t.GenerateAndSendExcelReportsOverrideSettingsFromJSONTyped=r,t.GenerateAndSendExcelReportsOverrideSettingsToJSON=function(e){if(void 0!==e)return null===e?null:{reportIds:e.reportIds,recipients:e.recipients,dontSend:e.dontSend}}},1204:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GeolocationToJSON=t.GeolocationFromJSONTyped=t.GeolocationFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{latitude:n.exists(e,"latitude")?e.latitude:void 0,longitude:n.exists(e,"longitude")?e.longitude:void 0}}t.GeolocationFromJSON=function(e){return r(e)},t.GeolocationFromJSONTyped=r,t.GeolocationToJSON=function(e){if(void 0!==e)return null===e?null:{latitude:e.latitude,longitude:e.longitude}}},7895:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetMEHomeDashboardInfoDtoToJSON=t.GetMEHomeDashboardInfoDtoFromJSONTyped=t.GetMEHomeDashboardInfoDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,startOfReportRange:n.exists(e,"startOfReportRange")?e.startOfReportRange:void 0,endOfReportRange:n.exists(e,"endOfReportRange")?e.endOfReportRange:void 0,startOfCalendarEventRange:n.exists(e,"startOfCalendarEventRange")?e.startOfCalendarEventRange:void 0,endOfCalendarEventRange:n.exists(e,"endOfCalendarEventRange")?e.endOfCalendarEventRange:void 0}}t.GetMEHomeDashboardInfoDtoFromJSON=function(e){return r(e)},t.GetMEHomeDashboardInfoDtoFromJSONTyped=r,t.GetMEHomeDashboardInfoDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,startOfReportRange:e.startOfReportRange,endOfReportRange:e.endOfReportRange,startOfCalendarEventRange:e.startOfCalendarEventRange,endOfCalendarEventRange:e.endOfCalendarEventRange}}},4326:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetOrCreateContextDtoToJSON=t.GetOrCreateContextDtoFromJSONTyped=t.GetOrCreateContextDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{userId:n.exists(e,"userId")?e.userId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.GetOrCreateContextDtoFromJSON=function(e){return r(e)},t.GetOrCreateContextDtoFromJSONTyped=r,t.GetOrCreateContextDtoToJSON=function(e){if(void 0!==e)return null===e?null:{userId:e.userId,buildingId:e.buildingId}}},2610:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetReportsForBuildingAndDateRangeDtoToJSON=t.GetReportsForBuildingAndDateRangeDtoFromJSONTyped=t.GetReportsForBuildingAndDateRangeDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,startTime:n.exists(e,"startTime")?e.startTime:void 0,endTime:n.exists(e,"endTime")?e.endTime:void 0}}t.GetReportsForBuildingAndDateRangeDtoFromJSON=function(e){return r(e)},t.GetReportsForBuildingAndDateRangeDtoFromJSONTyped=r,t.GetReportsForBuildingAndDateRangeDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,startTime:e.startTime,endTime:e.endTime}}},1960:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetReportsForBuildingsAndDateRangeDtoToJSON=t.GetReportsForBuildingsAndDateRangeDtoFromJSONTyped=t.GetReportsForBuildingsAndDateRangeDtoFromJSON=t.GetReportsForBuildingsAndDateRangeDtoTimeFrequencyEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{buildingIds:r.exists(e,"buildingIds")?e.buildingIds:void 0,startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,timeFrequency:r.exists(e,"timeFrequency")?e.timeFrequency:void 0}}(n=t.GetReportsForBuildingsAndDateRangeDtoTimeFrequencyEnum||(t.GetReportsForBuildingsAndDateRangeDtoTimeFrequencyEnum={})).None="NONE",n.Hourly="HOURLY",n.Daily="DAILY",n.Weekly="WEEKLY",n.Monthly="MONTHLY",n.Yearly="YEARLY",t.GetReportsForBuildingsAndDateRangeDtoFromJSON=function(e){return o(e)},t.GetReportsForBuildingsAndDateRangeDtoFromJSONTyped=o,t.GetReportsForBuildingsAndDateRangeDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingIds:e.buildingIds,startTime:e.startTime,endTime:e.endTime,timeFrequency:e.timeFrequency}}},9233:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetUnitAvailabilitiesRequestToJSON=t.GetUnitAvailabilitiesRequestFromJSONTyped=t.GetUnitAvailabilitiesRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{moveInStart:n.exists(e,"moveInStart")?e.moveInStart:void 0,moveInEnd:n.exists(e,"moveInEnd")?e.moveInEnd:void 0,buildingName:n.exists(e,"buildingName")?e.buildingName:void 0,buildingAddress:n.exists(e,"buildingAddress")?e.buildingAddress:void 0,buildingZip:n.exists(e,"buildingZip")?e.buildingZip:void 0,preferredUnitNumbers:n.exists(e,"preferredUnitNumbers")?e.preferredUnitNumbers:void 0,preferredLayoutIds:n.exists(e,"preferredLayoutIds")?e.preferredLayoutIds:void 0}}t.GetUnitAvailabilitiesRequestFromJSON=function(e){return r(e)},t.GetUnitAvailabilitiesRequestFromJSONTyped=r,t.GetUnitAvailabilitiesRequestToJSON=function(e){if(void 0!==e)return null===e?null:{moveInStart:e.moveInStart,moveInEnd:e.moveInEnd,buildingName:e.buildingName,buildingAddress:e.buildingAddress,buildingZip:e.buildingZip,preferredUnitNumbers:e.preferredUnitNumbers,preferredLayoutIds:e.preferredLayoutIds}}},8055:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetUnitAvailabilitiesRequest2ToJSON=t.GetUnitAvailabilitiesRequest2FromJSONTyped=t.GetUnitAvailabilitiesRequest2FromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,moveInStart:n.exists(e,"moveInStart")?e.moveInStart:void 0,moveInEnd:n.exists(e,"moveInEnd")?e.moveInEnd:void 0,preferredUnitNumbers:n.exists(e,"preferredUnitNumbers")?e.preferredUnitNumbers:void 0,preferredLayoutIds:n.exists(e,"preferredLayoutIds")?e.preferredLayoutIds:void 0}}t.GetUnitAvailabilitiesRequest2FromJSON=function(e){return r(e)},t.GetUnitAvailabilitiesRequest2FromJSONTyped=r,t.GetUnitAvailabilitiesRequest2ToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,moveInStart:e.moveInStart,moveInEnd:e.moveInEnd,preferredUnitNumbers:e.preferredUnitNumbers,preferredLayoutIds:e.preferredLayoutIds}}},2406:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetUnitAvailabilitiesResponseToJSON=t.GetUnitAvailabilitiesResponseFromJSONTyped=t.GetUnitAvailabilitiesResponseFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{subIntentMetadataMap:n.exists(e,"subIntentMetadataMap")?e.subIntentMetadataMap:void 0,dialogue:n.exists(e,"dialogue")?e.dialogue:void 0}}t.GetUnitAvailabilitiesResponseFromJSON=function(e){return r(e)},t.GetUnitAvailabilitiesResponseFromJSONTyped=r,t.GetUnitAvailabilitiesResponseToJSON=function(e){if(void 0!==e)return null===e?null:{subIntentMetadataMap:e.subIntentMetadataMap,dialogue:e.dialogue}}},1880:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GetWhiteListTestsForBuildingsRequestToJSON=t.GetWhiteListTestsForBuildingsRequestFromJSONTyped=t.GetWhiteListTestsForBuildingsRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingIds:n.exists(e,"buildingIds")?e.buildingIds:void 0}}t.GetWhiteListTestsForBuildingsRequestFromJSON=function(e){return r(e)},t.GetWhiteListTestsForBuildingsRequestFromJSONTyped=r,t.GetWhiteListTestsForBuildingsRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingIds:e.buildingIds}}},7989:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HourlyReportDtoToJSON=t.HourlyReportDtoFromJSONTyped=t.HourlyReportDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,marketingSource:n.exists(e,"marketingSource")?e.marketingSource:void 0,hourOfAggregation:n.exists(e,"hourOfAggregation")?new Date(e.hourOfAggregation):void 0,numMessagesSentByElise:n.exists(e,"numMessagesSentByElise")?e.numMessagesSentByElise:void 0,numUniqueProspectsInTimePeriod:n.exists(e,"numUniqueProspectsInTimePeriod")?e.numUniqueProspectsInTimePeriod:void 0,numRepliesPerContext:n.exists(e,"numRepliesPerContext")?e.numRepliesPerContext:void 0,newUniqueProspectsInTimePeriod:n.exists(e,"newUniqueProspectsInTimePeriod")?e.newUniqueProspectsInTimePeriod:void 0,hoursSaved:n.exists(e,"hoursSaved")?e.hoursSaved:void 0,numTours:n.exists(e,"numTours")?e.numTours:void 0}}t.HourlyReportDtoFromJSON=function(e){return r(e)},t.HourlyReportDtoFromJSONTyped=r,t.HourlyReportDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,marketingSource:e.marketingSource,hourOfAggregation:void 0===e.hourOfAggregation?void 0:e.hourOfAggregation.toISOString(),numMessagesSentByElise:e.numMessagesSentByElise,numUniqueProspectsInTimePeriod:e.numUniqueProspectsInTimePeriod,numRepliesPerContext:e.numRepliesPerContext,newUniqueProspectsInTimePeriod:e.newUniqueProspectsInTimePeriod,hoursSaved:e.hoursSaved,numTours:e.numTours}}},4036:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InboxEntityToJSON=t.InboxEntityFromJSONTyped=t.InboxEntityFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0}}t.InboxEntityFromJSON=function(e){return r(e)},t.InboxEntityFromJSONTyped=r,t.InboxEntityToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id}}},5728:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InitializeWhiteListingConfigRequestToJSON=t.InitializeWhiteListingConfigRequestFromJSONTyped=t.InitializeWhiteListingConfigRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,emails:n.exists(e,"emails")?e.emails:void 0}}t.InitializeWhiteListingConfigRequestFromJSON=function(e){return r(e)},t.InitializeWhiteListingConfigRequestFromJSONTyped=r,t.InitializeWhiteListingConfigRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,emails:e.emails}}},5131:(e,t)=>{function i(e,t){return null==e?e:{state:e.state}}Object.defineProperty(t,"__esModule",{value:!0}),t.InlineObject3ToJSON=t.InlineObject3FromJSONTyped=t.InlineObject3FromJSON=void 0,t.InlineObject3FromJSON=function(e){return i(e)},t.InlineObject3FromJSONTyped=i,t.InlineObject3ToJSON=function(e){if(void 0!==e)return null===e?null:{state:e.state}}},7708:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KnockAgentsNodeToJSON=t.KnockAgentsNodeFromJSONTyped=t.KnockAgentsNodeFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{email:e.email,externalId:n.exists(e,"externalId")?e.externalId:void 0,leasingTeamIds:n.exists(e,"leasingTeamIds")?e.leasingTeamIds:void 0,phone:n.exists(e,"phone")?e.phone:void 0,firstName:e.firstName,lastName:e.lastName,username:e.username,preferredUsername:e.preferredUsername,enabled:n.exists(e,"enabled")?e.enabled:void 0}}t.KnockAgentsNodeFromJSON=function(e){return r(e)},t.KnockAgentsNodeFromJSONTyped=r,t.KnockAgentsNodeToJSON=function(e){if(void 0!==e)return null===e?null:{email:e.email,externalId:e.externalId,leasingTeamIds:e.leasingTeamIds,phone:e.phone,firstName:e.firstName,lastName:e.lastName,username:e.username,preferredUsername:e.preferredUsername,enabled:e.enabled}}},746:(e,t)=>{function i(e,t){return null==e?e:{value:e.value,label:e.label}}Object.defineProperty(t,"__esModule",{value:!0}),t.LayoutOptionToJSON=t.LayoutOptionFromJSONTyped=t.LayoutOptionFromJSON=void 0,t.LayoutOptionFromJSON=function(e){return i(e)},t.LayoutOptionFromJSONTyped=i,t.LayoutOptionToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,label:e.label}}},7662:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadInfoToJSON=t.LeadInfoFromJSONTyped=t.LeadInfoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,firstName:n.exists(e,"firstName")?e.firstName:void 0,lastName:n.exists(e,"lastName")?e.lastName:void 0,email:n.exists(e,"email")?e.email:void 0,phoneNumber:n.exists(e,"phoneNumber")?e.phoneNumber:void 0}}t.LeadInfoFromJSON=function(e){return r(e)},t.LeadInfoFromJSONTyped=r,t.LeadInfoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,firstName:e.firstName,lastName:e.lastName,email:e.email,phoneNumber:e.phoneNumber}}},9132:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadInfoUpdateDtoToJSON=t.LeadInfoUpdateDtoFromJSONTyped=t.LeadInfoUpdateDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,firstName:n.exists(e,"firstName")?e.firstName:void 0,lastName:n.exists(e,"lastName")?e.lastName:void 0,email:n.exists(e,"email")?e.email:void 0,moveIn:n.exists(e,"moveIn")?new Date(e.moveIn):void 0,moveInRangeEnd:n.exists(e,"moveInRangeEnd")?new Date(e.moveInRangeEnd):void 0}}t.LeadInfoUpdateDtoFromJSON=function(e){return r(e)},t.LeadInfoUpdateDtoFromJSONTyped=r,t.LeadInfoUpdateDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,firstName:e.firstName,lastName:e.lastName,email:e.email,moveIn:void 0===e.moveIn?void 0:e.moveIn.toISOString().substr(0,10),moveInRangeEnd:void 0===e.moveInRangeEnd?void 0:e.moveInRangeEnd.toISOString().substr(0,10)}}},7530:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadSourceResponseToJSON=t.LeadSourceResponseFromJSONTyped=t.LeadSourceResponseFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{sources:n.exists(e,"sources")?e.sources:void 0}}t.LeadSourceResponseFromJSON=function(e){return r(e)},t.LeadSourceResponseFromJSONTyped=r,t.LeadSourceResponseToJSON=function(e){if(void 0!==e)return null===e?null:{sources:e.sources}}},194:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadThreadViewModelToJSON=t.LeadThreadViewModelFromJSONTyped=t.LeadThreadViewModelFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{leadName:n.exists(e,"leadName")?e.leadName:void 0,leadEmail:n.exists(e,"leadEmail")?e.leadEmail:void 0,contextCreationDate:n.exists(e,"contextCreationDate")?new Date(e.contextCreationDate):void 0,leadThreadLink:n.exists(e,"leadThreadLink")?e.leadThreadLink:void 0,buildingName:n.exists(e,"buildingName")?e.buildingName:void 0,buildingExternalId:n.exists(e,"buildingExternalId")?e.buildingExternalId:void 0,contextId:n.exists(e,"contextId")?e.contextId:void 0,buildingIds:n.exists(e,"buildingIds")?e.buildingIds:void 0,conversationKey:n.exists(e,"conversationKey")?e.conversationKey:void 0}}t.LeadThreadViewModelFromJSON=function(e){return r(e)},t.LeadThreadViewModelFromJSONTyped=r,t.LeadThreadViewModelToJSON=function(e){if(void 0!==e)return null===e?null:{leadName:e.leadName,leadEmail:e.leadEmail,contextCreationDate:void 0===e.contextCreationDate?void 0:e.contextCreationDate.toISOString(),leadThreadLink:e.leadThreadLink,buildingName:e.buildingName,buildingExternalId:e.buildingExternalId,contextId:e.contextId,buildingIds:e.buildingIds,conversationKey:e.conversationKey}}},1312:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeadWithSourceToJSON=t.LeadWithSourceFromJSONTyped=t.LeadWithSourceFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,email:n.exists(e,"email")?e.email:void 0,marketingSource:n.exists(e,"marketingSource")?e.marketingSource:void 0}}t.LeadWithSourceFromJSON=function(e){return r(e)},t.LeadWithSourceFromJSONTyped=r,t.LeadWithSourceToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,email:e.email,marketingSource:e.marketingSource}}},4549:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeasingAgentToJSON=t.LeasingAgentFromJSONTyped=t.LeasingAgentFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,externalId:n.exists(e,"externalId")?e.externalId:void 0,agentFirstName:n.exists(e,"agentFirstName")?e.agentFirstName:void 0,agentLastName:n.exists(e,"agentLastName")?e.agentLastName:void 0,internal:n.exists(e,"internal")?e.internal:void 0}}t.LeasingAgentFromJSON=function(e){return r(e)},t.LeasingAgentFromJSONTyped=r,t.LeasingAgentToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,externalId:e.externalId,agentFirstName:e.agentFirstName,agentLastName:e.agentLastName,internal:e.internal}}},8636:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListWrapperOrganizationToJSON=t.ListWrapperOrganizationFromJSONTyped=t.ListWrapperOrganizationFromJSON=void 0;var n=i(296),r=i(8792);function o(e,t){return null==e?e:{data:n.exists(e,"data")?e.data.map(r.OrganizationFromJSON):void 0}}t.ListWrapperOrganizationFromJSON=function(e){return o(e)},t.ListWrapperOrganizationFromJSONTyped=o,t.ListWrapperOrganizationToJSON=function(e){if(void 0!==e)return null===e?null:{data:void 0===e.data?void 0:e.data.map(r.OrganizationToJSON)}}},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocalTimeToJSON=t.LocalTimeFromJSONTyped=t.LocalTimeFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{hour:n.exists(e,"hour")?e.hour:void 0,minute:n.exists(e,"minute")?e.minute:void 0,second:n.exists(e,"second")?e.second:void 0,nano:n.exists(e,"nano")?e.nano:void 0}}t.LocalTimeFromJSON=function(e){return r(e)},t.LocalTimeFromJSONTyped=r,t.LocalTimeToJSON=function(e){if(void 0!==e)return null===e?null:{hour:e.hour,minute:e.minute,second:e.second,nano:e.nano}}},8328:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocationToJSON=t.LocationFromJSONTyped=t.LocationFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{label:n.exists(e,"label")?e.label:void 0,street:n.exists(e,"street")?e.street:void 0,addressNumber:n.exists(e,"addressNumber")?e.addressNumber:void 0,neighborhood:n.exists(e,"neighborhood")?e.neighborhood:void 0,postalCode:n.exists(e,"postalCode")?e.postalCode:void 0,municipality:n.exists(e,"municipality")?e.municipality:void 0,city:n.exists(e,"city")?e.city:void 0,region:n.exists(e,"region")?e.region:void 0,subRegion:n.exists(e,"subRegion")?e.subRegion:void 0,country:n.exists(e,"country")?e.country:void 0,latitude:n.exists(e,"latitude")?e.latitude:void 0,longitude:n.exists(e,"longitude")?e.longitude:void 0,timeZone:n.exists(e,"timeZone")?e.timeZone:void 0}}t.LocationFromJSON=function(e){return r(e)},t.LocationFromJSONTyped=r,t.LocationToJSON=function(e){if(void 0!==e)return null===e?null:{label:e.label,street:e.street,addressNumber:e.addressNumber,neighborhood:e.neighborhood,postalCode:e.postalCode,municipality:e.municipality,city:e.city,region:e.region,subRegion:e.subRegion,country:e.country,latitude:e.latitude,longitude:e.longitude,timeZone:e.timeZone}}},4401:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LongTermFollowUpSettingToJSON=t.LongTermFollowUpSettingFromJSONTyped=t.LongTermFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.LongTermFollowUpSettingFromJSON=function(e){return r(e)},t.LongTermFollowUpSettingFromJSONTyped=r,t.LongTermFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId}}},3832:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LongTermPostTourFollowUpSettingToJSON=t.LongTermPostTourFollowUpSettingFromJSONTyped=t.LongTermPostTourFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.LongTermPostTourFollowUpSettingFromJSON=function(e){return r(e)},t.LongTermPostTourFollowUpSettingFromJSONTyped=r,t.LongTermPostTourFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId}}},4883:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeCalendarEventToJSON=t.MEHomeCalendarEventFromJSONTyped=t.MEHomeCalendarEventFromJSON=t.MEHomeCalendarEventEventTypeEnum=void 0;var n,r=i(296),o=i(9718);function a(e,t){return null==e?e:{id:e.id,aiAssistantId:e.aiAssistantId,startTimeISO:e.startTimeISO,endTimeISO:e.endTimeISO,eventType:e.eventType,tourInfo:r.exists(e,"tourInfo")?o.MEHomeTourInfoFromJSON(e.tourInfo):void 0,title:r.exists(e,"title")?e.title:void 0,conversationKey:r.exists(e,"conversationKey")?e.conversationKey:void 0,recurringEventId:r.exists(e,"recurringEventId")?e.recurringEventId:void 0,assignedAgentId:r.exists(e,"assignedAgentId")?e.assignedAgentId:void 0,canceled:r.exists(e,"canceled")?e.canceled:void 0}}(n=t.MEHomeCalendarEventEventTypeEnum||(t.MEHomeCalendarEventEventTypeEnum={})).NonBlockingInternal="NON_BLOCKING_INTERNAL",n.Blackout="BLACKOUT",n.Appointment="APPOINTMENT",n.Other="OTHER",t.MEHomeCalendarEventFromJSON=function(e){return a(e)},t.MEHomeCalendarEventFromJSONTyped=a,t.MEHomeCalendarEventToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,aiAssistantId:e.aiAssistantId,startTimeISO:e.startTimeISO,endTimeISO:e.endTimeISO,eventType:e.eventType,tourInfo:o.MEHomeTourInfoToJSON(e.tourInfo),title:e.title,conversationKey:e.conversationKey,recurringEventId:e.recurringEventId,assignedAgentId:e.assignedAgentId,canceled:e.canceled}}},6705:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeDashboardInfoToJSON=t.MEHomeDashboardInfoFromJSONTyped=t.MEHomeDashboardInfoFromJSON=void 0;var n=i(296),r=i(3817),o=i(7934),a=i(746),s=i(4549),l=i(4883),u=i(1004),d=i(6330);function c(e,t){return null==e?e:{numEscalations:e.numEscalations,calendarEvents:e.calendarEvents.map(l.MEHomeCalendarEventFromJSON),buildingIds:e.buildingIds,dateRangeReport:n.exists(e,"dateRangeReport")?r.DateRangeReportFromJSON(e.dateRangeReport):void 0,leasingAgents:e.leasingAgents.map(s.LeasingAgentFromJSON),units:e.units.map(u.MEHomeUnitFromJSON),tourTypeOptions:e.tourTypeOptions.map(d.TourTypeOptionFromJSON),layoutOptions:e.layoutOptions.map(a.LayoutOptionFromJSON),leadSources:e.leadSources,firstContactOptions:e.firstContactOptions.map(o.FirstContactOptionFromJSON)}}t.MEHomeDashboardInfoFromJSON=function(e){return c(e)},t.MEHomeDashboardInfoFromJSONTyped=c,t.MEHomeDashboardInfoToJSON=function(e){if(void 0!==e)return null===e?null:{numEscalations:e.numEscalations,calendarEvents:e.calendarEvents.map(l.MEHomeCalendarEventToJSON),buildingIds:e.buildingIds,dateRangeReport:r.DateRangeReportToJSON(e.dateRangeReport),leasingAgents:e.leasingAgents.map(s.LeasingAgentToJSON),units:e.units.map(u.MEHomeUnitToJSON),tourTypeOptions:e.tourTypeOptions.map(d.TourTypeOptionToJSON),layoutOptions:e.layoutOptions.map(a.LayoutOptionToJSON),leadSources:e.leadSources,firstContactOptions:e.firstContactOptions.map(o.FirstContactOptionToJSON)}}},1427:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeLeadToJSON=t.MEHomeLeadFromJSONTyped=t.MEHomeLeadFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:e.id,email:n.exists(e,"email")?e.email:void 0,firstName:n.exists(e,"firstName")?e.firstName:void 0,lastName:n.exists(e,"lastName")?e.lastName:void 0,layouts:n.exists(e,"layouts")?e.layouts:void 0,leadCreationDateISO:n.exists(e,"leadCreationDateISO")?e.leadCreationDateISO:void 0,leaseLengthMax:n.exists(e,"leaseLengthMax")?e.leaseLengthMax:void 0,leaseLengthMin:n.exists(e,"leaseLengthMin")?e.leaseLengthMin:void 0,marketPlace:n.exists(e,"marketPlace")?e.marketPlace:void 0,moveInDateISO:n.exists(e,"moveInDateISO")?e.moveInDateISO:void 0,phoneNumber:n.exists(e,"phoneNumber")?e.phoneNumber:void 0,preferredSize:n.exists(e,"preferredSize")?e.preferredSize:void 0,recommendedUnits:n.exists(e,"recommendedUnits")?e.recommendedUnits:void 0}}t.MEHomeLeadFromJSON=function(e){return r(e)},t.MEHomeLeadFromJSONTyped=r,t.MEHomeLeadToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,email:e.email,firstName:e.firstName,lastName:e.lastName,layouts:e.layouts,leadCreationDateISO:e.leadCreationDateISO,leaseLengthMax:e.leaseLengthMax,leaseLengthMin:e.leaseLengthMin,marketPlace:e.marketPlace,moveInDateISO:e.moveInDateISO,phoneNumber:e.phoneNumber,preferredSize:e.preferredSize,recommendedUnits:e.recommendedUnits}}},9718:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeTourInfoToJSON=t.MEHomeTourInfoFromJSONTyped=t.MEHomeTourInfoFromJSON=t.MEHomeTourInfoConversationTypeEnum=t.MEHomeTourInfoTourTypeEnum=void 0;var n,r,o=i(296),a=i(1427);function s(e,t){return null==e?e:{lead:a.MEHomeLeadFromJSON(e.lead),hostVirtualTourUrl:o.exists(e,"hostVirtualTourUrl")?e.hostVirtualTourUrl:void 0,publicVirtualTourUrl:o.exists(e,"publicVirtualTourUrl")?e.publicVirtualTourUrl:void 0,tourType:o.exists(e,"tourType")?e.tourType:void 0,leadStatusForContext:o.exists(e,"leadStatusForContext")?e.leadStatusForContext:void 0,notes:o.exists(e,"notes")?e.notes:void 0,conversationType:o.exists(e,"conversationType")?e.conversationType:void 0}}(r=t.MEHomeTourInfoTourTypeEnum||(t.MEHomeTourInfoTourTypeEnum={})).Unknown="UNKNOWN",r.SelfGuided="SELF_GUIDED",r.VirtualShowing="VIRTUAL_SHOWING",r.WithAgent="WITH_AGENT",r.MediaTour="MEDIA_TOUR",(n=t.MEHomeTourInfoConversationTypeEnum||(t.MEHomeTourInfoConversationTypeEnum={})).Email="EMAIL",n.Phone="PHONE",t.MEHomeTourInfoFromJSON=function(e){return s(e)},t.MEHomeTourInfoFromJSONTyped=s,t.MEHomeTourInfoToJSON=function(e){if(void 0!==e)return null===e?null:{lead:a.MEHomeLeadToJSON(e.lead),hostVirtualTourUrl:e.hostVirtualTourUrl,publicVirtualTourUrl:e.publicVirtualTourUrl,tourType:e.tourType,leadStatusForContext:e.leadStatusForContext,notes:e.notes,conversationType:e.conversationType}}},1004:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MEHomeUnitToJSON=t.MEHomeUnitFromJSONTyped=t.MEHomeUnitFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:e.id,layoutDescription:e.layoutDescription,label:e.label,layout:e.layout,_default:n.exists(e,"default")?e.default:void 0}}t.MEHomeUnitFromJSON=function(e){return r(e)},t.MEHomeUnitFromJSONTyped=r,t.MEHomeUnitToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,layoutDescription:e.layoutDescription,label:e.label,layout:e.layout,default:e._default}}},4240:(e,t)=>{function i(e,t){return null==e?e:{marketingSource:e.marketingSource,startOfRange:new Date(e.startOfRange),endOfRange:new Date(e.endOfRange),buildingId:e.buildingId,numAiMessagesSent:e.numAiMessagesSent,numAiSentEmailFollowup:e.numAiSentEmailFollowup,numAiSentTextFollowup:e.numAiSentTextFollowup,averageMessagesPerProspect:e.averageMessagesPerProspect,prospectToTourConversion:e.prospectToTourConversion,numTours:e.numTours,tourBookedByMENoncancelled:e.tourBookedByMENoncancelled,newProspectsHandled:e.newProspectsHandled,hoursSavedByAi:e.hoursSavedByAi,numEarlyAgentTakeover:e.numEarlyAgentTakeover,numberLeadsApplied:e.numberLeadsApplied,tourAttended:e.tourAttended,numActionRequiredFromAgent:e.numActionRequiredFromAgent,numPassToAgent:e.numPassToAgent,aiBookedTourAttended:e.aiBookedTourAttended}}Object.defineProperty(t,"__esModule",{value:!0}),t.MarketingSourceDateRangeReportToJSON=t.MarketingSourceDateRangeReportFromJSONTyped=t.MarketingSourceDateRangeReportFromJSON=void 0,t.MarketingSourceDateRangeReportFromJSON=function(e){return i(e)},t.MarketingSourceDateRangeReportFromJSONTyped=i,t.MarketingSourceDateRangeReportToJSON=function(e){if(void 0!==e)return null===e?null:{marketingSource:e.marketingSource,startOfRange:e.startOfRange.toISOString(),endOfRange:e.endOfRange.toISOString(),buildingId:e.buildingId,numAiMessagesSent:e.numAiMessagesSent,numAiSentEmailFollowup:e.numAiSentEmailFollowup,numAiSentTextFollowup:e.numAiSentTextFollowup,averageMessagesPerProspect:e.averageMessagesPerProspect,prospectToTourConversion:e.prospectToTourConversion,numTours:e.numTours,tourBookedByMENoncancelled:e.tourBookedByMENoncancelled,newProspectsHandled:e.newProspectsHandled,hoursSavedByAi:e.hoursSavedByAi,numEarlyAgentTakeover:e.numEarlyAgentTakeover,numberLeadsApplied:e.numberLeadsApplied,tourAttended:e.tourAttended,numActionRequiredFromAgent:e.numActionRequiredFromAgent,numPassToAgent:e.numPassToAgent,aiBookedTourAttended:e.aiBookedTourAttended}}},2960:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoShowActionDtoToJSON=t.NoShowActionDtoFromJSONTyped=t.NoShowActionDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0}}t.NoShowActionDtoFromJSON=function(e){return r(e)},t.NoShowActionDtoFromJSONTyped=r,t.NoShowActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId}}},1431:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoShowFollowUpSettingToJSON=t.NoShowFollowUpSettingFromJSONTyped=t.NoShowFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.NoShowFollowUpSettingFromJSON=function(e){return r(e)},t.NoShowFollowUpSettingFromJSONTyped=r,t.NoShowFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId}}},8792:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationToJSON=t.OrganizationFromJSONTyped=t.OrganizationFromJSON=void 0;var n=i(296),r=i(1172);function o(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,name:n.exists(e,"name")?e.name:void 0,address1:n.exists(e,"address1")?e.address1:void 0,address2:n.exists(e,"address2")?e.address2:void 0,city:n.exists(e,"city")?e.city:void 0,state:n.exists(e,"state")?e.state:void 0,zipCode:n.exists(e,"zipCode")?e.zipCode:void 0,url:n.exists(e,"url")?e.url:void 0,associatedDomains:n.exists(e,"associatedDomains")?e.associatedDomains:void 0,communitiesDefaults:n.exists(e,"communitiesDefaults")?r.CommunitiesDefaultsFromJSON(e.communitiesDefaults):void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0}}t.OrganizationFromJSON=function(e){return o(e)},t.OrganizationFromJSONTyped=o,t.OrganizationToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,name:e.name,address1:e.address1,address2:e.address2,city:e.city,state:e.state,zipCode:e.zipCode,url:e.url,associatedDomains:e.associatedDomains,communitiesDefaults:r.CommunitiesDefaultsToJSON(e.communitiesDefaults),organizationId:e.organizationId}}},908:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostTourFollowUpSettingToJSON=t.PostTourFollowUpSettingFromJSONTyped=t.PostTourFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.PostTourFollowUpSettingFromJSON=function(e){return r(e)},t.PostTourFollowUpSettingFromJSONTyped=r,t.PostTourFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId}}},3231:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PreTourFollowUpSettingToJSON=t.PreTourFollowUpSettingFromJSONTyped=t.PreTourFollowUpSettingFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,followUpNumber:n.exists(e,"followUpNumber")?e.followUpNumber:void 0,clientType:n.exists(e,"clientType")?e.clientType:void 0,intervalNumber:n.exists(e,"intervalNumber")?e.intervalNumber:void 0,intervalUnit:n.exists(e,"intervalUnit")?e.intervalUnit:void 0,intervalNumberOlderThan:n.exists(e,"intervalNumberOlderThan")?e.intervalNumberOlderThan:void 0,intervalUnitOlderThan:n.exists(e,"intervalUnitOlderThan")?e.intervalUnitOlderThan:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,userId:n.exists(e,"userId")?e.userId:void 0}}t.PreTourFollowUpSettingFromJSON=function(e){return r(e)},t.PreTourFollowUpSettingFromJSONTyped=r,t.PreTourFollowUpSettingToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,followUpNumber:e.followUpNumber,clientType:e.clientType,intervalNumber:e.intervalNumber,intervalUnit:e.intervalUnit,intervalNumberOlderThan:e.intervalNumberOlderThan,intervalUnitOlderThan:e.intervalUnitOlderThan,buildingId:e.buildingId,userId:e.userId}}},8496:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.QaDtoToJSON=t.QaDtoFromJSONTyped=t.QaDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,intentNames:n.exists(e,"intentNames")?e.intentNames:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,email:n.exists(e,"email")?e.email:void 0}}t.QaDtoFromJSON=function(e){return r(e)},t.QaDtoFromJSONTyped=r,t.QaDtoToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,intentNames:e.intentNames,unitId:e.unitId,email:e.email}}},3538:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RealPageCredentialsToJSON=t.RealPageCredentialsFromJSONTyped=t.RealPageCredentialsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,userName:n.exists(e,"userName")?e.userName:void 0,password:n.exists(e,"password")?e.password:void 0,uniqueCompanyIdentifier:n.exists(e,"uniqueCompanyIdentifier")?e.uniqueCompanyIdentifier:void 0,uniquePropertyIdentifier:n.exists(e,"uniquePropertyIdentifier")?e.uniquePropertyIdentifier:void 0,hostUrl:n.exists(e,"hostUrl")?e.hostUrl:void 0,l2LApiKey:n.exists(e,"l2LApiKey")?e.l2LApiKey:void 0,leasingAgentId:n.exists(e,"leasingAgentId")?e.leasingAgentId:void 0,handoffAgentId:n.exists(e,"handoffAgentId")?e.handoffAgentId:void 0}}t.RealPageCredentialsFromJSON=function(e){return r(e)},t.RealPageCredentialsFromJSONTyped=r,t.RealPageCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,userName:e.userName,password:e.password,uniqueCompanyIdentifier:e.uniqueCompanyIdentifier,uniquePropertyIdentifier:e.uniquePropertyIdentifier,hostUrl:e.hostUrl,l2LApiKey:e.l2LApiKey,leasingAgentId:e.leasingAgentId,handoffAgentId:e.handoffAgentId}}},9353:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecurringEventCreateRequestDtoToJSON=t.RecurringEventCreateRequestDtoFromJSONTyped=t.RecurringEventCreateRequestDtoFromJSON=t.RecurringEventCreateRequestDtoFrequencyEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{calendarId:r.exists(e,"calendarId")?e.calendarId:void 0,startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,daysOfWeek:r.exists(e,"daysOfWeek")?e.daysOfWeek:void 0,daysOfMonth:r.exists(e,"daysOfMonth")?e.daysOfMonth:void 0,startOfRecurrence:r.exists(e,"startOfRecurrence")?e.startOfRecurrence:void 0,endOfRecurrence:r.exists(e,"endOfRecurrence")?e.endOfRecurrence:void 0,frequency:r.exists(e,"frequency")?e.frequency:void 0,frequencyMultiplier:r.exists(e,"frequencyMultiplier")?e.frequencyMultiplier:void 0,createdBy:r.exists(e,"createdBy")?e.createdBy:void 0,summary:r.exists(e,"summary")?e.summary:void 0}}(n=t.RecurringEventCreateRequestDtoFrequencyEnum||(t.RecurringEventCreateRequestDtoFrequencyEnum={})).Weekly="WEEKLY",n.Monthly="MONTHLY",t.RecurringEventCreateRequestDtoFromJSON=function(e){return o(e)},t.RecurringEventCreateRequestDtoFromJSONTyped=o,t.RecurringEventCreateRequestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{calendarId:e.calendarId,startTime:e.startTime,endTime:e.endTime,daysOfWeek:e.daysOfWeek,daysOfMonth:e.daysOfMonth,startOfRecurrence:e.startOfRecurrence,endOfRecurrence:e.endOfRecurrence,frequency:e.frequency,frequencyMultiplier:e.frequencyMultiplier,createdBy:e.createdBy,summary:e.summary}}},6343:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecurringEventDtoToJSON=t.RecurringEventDtoFromJSONTyped=t.RecurringEventDtoFromJSON=t.RecurringEventDtoFrequencyEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{id:r.exists(e,"id")?e.id:void 0,calendarId:r.exists(e,"calendarId")?e.calendarId:void 0,startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,daysOfWeek:r.exists(e,"daysOfWeek")?e.daysOfWeek:void 0,daysOfMonth:r.exists(e,"daysOfMonth")?e.daysOfMonth:void 0,startOfRecurrence:r.exists(e,"startOfRecurrence")?e.startOfRecurrence:void 0,endOfRecurrence:r.exists(e,"endOfRecurrence")?e.endOfRecurrence:void 0,frequency:r.exists(e,"frequency")?e.frequency:void 0,frequencyMultiplier:r.exists(e,"frequencyMultiplier")?e.frequencyMultiplier:void 0,timeCreated:r.exists(e,"timeCreated")?e.timeCreated:void 0,timeMostRecentlyUpdated:r.exists(e,"timeMostRecentlyUpdated")?e.timeMostRecentlyUpdated:void 0,lastEventGeneratedTimestamp:r.exists(e,"lastEventGeneratedTimestamp")?e.lastEventGeneratedTimestamp:void 0,createdBy:r.exists(e,"createdBy")?e.createdBy:void 0,summary:r.exists(e,"summary")?e.summary:void 0,deleted:r.exists(e,"deleted")?e.deleted:void 0}}(n=t.RecurringEventDtoFrequencyEnum||(t.RecurringEventDtoFrequencyEnum={})).Weekly="WEEKLY",n.Monthly="MONTHLY",t.RecurringEventDtoFromJSON=function(e){return o(e)},t.RecurringEventDtoFromJSONTyped=o,t.RecurringEventDtoToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,calendarId:e.calendarId,startTime:e.startTime,endTime:e.endTime,daysOfWeek:e.daysOfWeek,daysOfMonth:e.daysOfMonth,startOfRecurrence:e.startOfRecurrence,endOfRecurrence:e.endOfRecurrence,frequency:e.frequency,frequencyMultiplier:e.frequencyMultiplier,timeCreated:e.timeCreated,timeMostRecentlyUpdated:e.timeMostRecentlyUpdated,lastEventGeneratedTimestamp:e.lastEventGeneratedTimestamp,createdBy:e.createdBy,summary:e.summary,deleted:e.deleted}}},7564:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RecurringEventUpdateRequestDtoToJSON=t.RecurringEventUpdateRequestDtoFromJSONTyped=t.RecurringEventUpdateRequestDtoFromJSON=t.RecurringEventUpdateRequestDtoFrequencyEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,daysOfWeek:r.exists(e,"daysOfWeek")?e.daysOfWeek:void 0,daysOfMonth:r.exists(e,"daysOfMonth")?e.daysOfMonth:void 0,startOfRecurrence:r.exists(e,"startOfRecurrence")?e.startOfRecurrence:void 0,endOfRecurrence:r.exists(e,"endOfRecurrence")?e.endOfRecurrence:void 0,frequency:r.exists(e,"frequency")?e.frequency:void 0,frequencyMultiplier:r.exists(e,"frequencyMultiplier")?e.frequencyMultiplier:void 0,summary:r.exists(e,"summary")?e.summary:void 0}}(n=t.RecurringEventUpdateRequestDtoFrequencyEnum||(t.RecurringEventUpdateRequestDtoFrequencyEnum={})).Weekly="WEEKLY",n.Monthly="MONTHLY",t.RecurringEventUpdateRequestDtoFromJSON=function(e){return o(e)},t.RecurringEventUpdateRequestDtoFromJSONTyped=o,t.RecurringEventUpdateRequestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{startTime:e.startTime,endTime:e.endTime,daysOfWeek:e.daysOfWeek,daysOfMonth:e.daysOfMonth,startOfRecurrence:e.startOfRecurrence,endOfRecurrence:e.endOfRecurrence,frequency:e.frequency,frequencyMultiplier:e.frequencyMultiplier,summary:e.summary}}},4748:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ReportSettingToJSON=t.ReportSettingFromJSONTyped=t.ReportSettingFromJSON=t.ReportSettingSendingMediumEnum=t.ReportSettingTypeEnum=t.ReportSettingSheetIdsEnum=void 0;var n,r,o,a=i(296);function s(e,t){return null==e?e:{active:a.exists(e,"active")?e.active:void 0,id:a.exists(e,"id")?e.id:void 0,name:a.exists(e,"name")?e.name:void 0,reportNamePart1:a.exists(e,"reportNamePart1")?e.reportNamePart1:void 0,reportNamePart2:a.exists(e,"reportNamePart2")?e.reportNamePart2:void 0,startDate:a.exists(e,"startDate")?e.startDate:void 0,endDate:a.exists(e,"endDate")?e.endDate:void 0,initialReportDate:a.exists(e,"initialReportDate")?e.initialReportDate:void 0,isOrgLevel:a.exists(e,"isOrgLevel")?e.isOrgLevel:void 0,organizationIds:a.exists(e,"organizationIds")?e.organizationIds:void 0,buildingIds:a.exists(e,"buildingIds")?e.buildingIds:void 0,recipients:a.exists(e,"recipients")?e.recipients:void 0,sheetIds:a.exists(e,"sheetIds")?e.sheetIds:void 0,type:a.exists(e,"type")?e.type:void 0,sendingMedium:a.exists(e,"sendingMedium")?e.sendingMedium:void 0,htmlEmailMessage:a.exists(e,"htmlEmailMessage")?e.htmlEmailMessage:void 0,orgLevel:a.exists(e,"orgLevel")?e.orgLevel:void 0}}(o=t.ReportSettingSheetIdsEnum||(t.ReportSettingSheetIdsEnum={})).A1="A1",o.A1unsub="A1unsub",o.A1ytd="A1ytd",o.A2="A2",o.A3="A3",o.A3wk="A3wk",o.A3ytd="A3ytd",o.A4="A4",o.Bell2="BELL2",o.Bell4="BELL4",o.Boz1="BOZ1",o.Boz2="BOZ2",o.S1="S1",o.S1shows="S1shows",o.S1unsub="S1unsub",o.S1wk="S1wk",o.S2="S2",o.S2org="S2org",o.S2wk="S2wk",o.S3="S3",o.S3org="S3org",o.S3wk="S3wk",o.S4="S4",o.S4org="S4org",o.S5="S5",o.S5org="S5org",o.Sr1ytd="SR1ytd",o.Ivr1="IVR1",o.Ivr2="IVR2",(r=t.ReportSettingTypeEnum||(t.ReportSettingTypeEnum={})).ProspectReport="PROSPECT_REPORT",r.AutomaticReport="AUTOMATIC_REPORT",r.OwnerReport="OWNER_REPORT",r.InternalReport="INTERNAL_REPORT",(n=t.ReportSettingSendingMediumEnum||(t.ReportSettingSendingMediumEnum={})).Sftp="SFTP",n.AutomatedEmail="AUTOMATED_EMAIL",n.ManualEmail="MANUAL_EMAIL",t.ReportSettingFromJSON=function(e){return s(e)},t.ReportSettingFromJSONTyped=s,t.ReportSettingToJSON=function(e){if(void 0!==e)return null===e?null:{active:e.active,id:e.id,name:e.name,reportNamePart1:e.reportNamePart1,reportNamePart2:e.reportNamePart2,startDate:e.startDate,endDate:e.endDate,initialReportDate:e.initialReportDate,isOrgLevel:e.isOrgLevel,organizationIds:e.organizationIds,buildingIds:e.buildingIds,recipients:e.recipients,sheetIds:e.sheetIds,type:e.type,sendingMedium:e.sendingMedium,htmlEmailMessage:e.htmlEmailMessage,orgLevel:e.orgLevel}}},170:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RescheduleConfirmedDtoToJSON=t.RescheduleConfirmedDtoFromJSONTyped=t.RescheduleConfirmedDtoFromJSON=t.RescheduleConfirmedDtoTourTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{contextId:r.exists(e,"contextId")?e.contextId:void 0,buildingId:r.exists(e,"buildingId")?e.buildingId:void 0,unitId:r.exists(e,"unitId")?e.unitId:void 0,tourType:r.exists(e,"tourType")?e.tourType:void 0,calendarEventId:r.exists(e,"calendarEventId")?e.calendarEventId:void 0,leasingAgentId:r.exists(e,"leasingAgentId")?e.leasingAgentId:void 0,newStartTime:r.exists(e,"newStartTime")?e.newStartTime:void 0,newEndTime:r.exists(e,"newEndTime")?e.newEndTime:void 0}}(n=t.RescheduleConfirmedDtoTourTypeEnum||(t.RescheduleConfirmedDtoTourTypeEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.RescheduleConfirmedDtoFromJSON=function(e){return o(e)},t.RescheduleConfirmedDtoFromJSONTyped=o,t.RescheduleConfirmedDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId,unitId:e.unitId,tourType:e.tourType,calendarEventId:e.calendarEventId,leasingAgentId:e.leasingAgentId,newStartTime:e.newStartTime,newEndTime:e.newEndTime}}},2298:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RescheduleProposedDtoToJSON=t.RescheduleProposedDtoFromJSONTyped=t.RescheduleProposedDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,calendarEventId:n.exists(e,"calendarEventId")?e.calendarEventId:void 0,suggestedStartTime:n.exists(e,"suggestedStartTime")?e.suggestedStartTime:void 0}}t.RescheduleProposedDtoFromJSON=function(e){return r(e)},t.RescheduleProposedDtoFromJSONTyped=r,t.RescheduleProposedDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId,calendarEventId:e.calendarEventId,suggestedStartTime:e.suggestedStartTime}}},445:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveEscalationDtoToJSON=t.ResolveEscalationDtoFromJSONTyped=t.ResolveEscalationDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,resolutionStatus:n.exists(e,"resolutionStatus")?e.resolutionStatus:void 0,resolverEmail:n.exists(e,"resolverEmail")?e.resolverEmail:void 0,resolvedWithMessage:n.exists(e,"resolvedWithMessage")?e.resolvedWithMessage:void 0}}t.ResolveEscalationDtoFromJSON=function(e){return r(e)},t.ResolveEscalationDtoFromJSONTyped=r,t.ResolveEscalationDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,resolutionStatus:e.resolutionStatus,resolverEmail:e.resolverEmail,resolvedWithMessage:e.resolvedWithMessage}}},1222:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveScriptRequestToJSON=t.ResolveScriptRequestFromJSONTyped=t.ResolveScriptRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{intent:n.exists(e,"intent")?e.intent:void 0,subintent:n.exists(e,"subintent")?e.subintent:void 0}}t.ResolveScriptRequestFromJSON=function(e){return r(e)},t.ResolveScriptRequestFromJSONTyped=r,t.ResolveScriptRequestToJSON=function(e){if(void 0!==e)return null===e?null:{intent:e.intent,subintent:e.subintent}}},7444:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveScriptsRequestToJSON=t.ResolveScriptsRequestFromJSONTyped=t.ResolveScriptsRequestFromJSON=void 0;var n=i(296),r=i(1222);function o(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,scripts:n.exists(e,"scripts")?e.scripts.map(r.ResolveScriptRequestFromJSON):void 0}}t.ResolveScriptsRequestFromJSON=function(e){return o(e)},t.ResolveScriptsRequestFromJSONTyped=o,t.ResolveScriptsRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,organizationId:e.organizationId,scripts:void 0===e.scripts?void 0:e.scripts.map(r.ResolveScriptRequestToJSON)}}},3815:(e,t)=>{function i(e,t){return null==e?e:{mcId:e.mcId,response:e.response}}Object.defineProperty(t,"__esModule",{value:!0}),t.RespondToMCConversationDTOToJSON=t.RespondToMCConversationDTOFromJSONTyped=t.RespondToMCConversationDTOFromJSON=void 0,t.RespondToMCConversationDTOFromJSON=function(e){return i(e)},t.RespondToMCConversationDTOFromJSONTyped=i,t.RespondToMCConversationDTOToJSON=function(e){if(void 0!==e)return null===e?null:{mcId:e.mcId,response:e.response}}},8385:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ResponseAtomicTemplateToJSON=t.ResponseAtomicTemplateFromJSONTyped=t.ResponseAtomicTemplateFromJSON=t.ResponseAtomicTemplateHandoffIntentStateEnum=void 0;var n,r=i(296),o=i(1234);function a(e){return s(e)}function s(e,t){return null==e?e:{id:r.exists(e,"id")?e.id:void 0,scriptType:r.exists(e,"scriptType")?e.scriptType:void 0,organizationId:r.exists(e,"organizationId")?e.organizationId:void 0,category:r.exists(e,"category")?e.category:void 0,subIntent:r.exists(e,"subIntent")?e.subIntent:void 0,categoryReadableName:r.exists(e,"categoryReadableName")?e.categoryReadableName:void 0,responseText:r.exists(e,"responseText")?e.responseText:void 0,entity:r.exists(e,"entity")?e.entity:void 0,parent:r.exists(e,"parent")?e.parent:void 0,children:r.exists(e,"children")?e.children.map(a):void 0,attachments:r.exists(e,"attachments")?e.attachments.map(o.AttachmentFromJSON):void 0,aiTrainerInstructions:r.exists(e,"aiTrainerInstructions")?e.aiTrainerInstructions:void 0,handoffIntentState:r.exists(e,"handoffIntentState")?e.handoffIntentState:void 0,attachmentsFromDatabase:r.exists(e,"attachmentsFromDatabase")?e.attachmentsFromDatabase:void 0,superCategory:r.exists(e,"superCategory")?e.superCategory:void 0}}(n=t.ResponseAtomicTemplateHandoffIntentStateEnum||(t.ResponseAtomicTemplateHandoffIntentStateEnum={})).None="NONE",n.YellowStatus="YELLOW_STATUS",n.RedAlertSend="RED_ALERT_SEND",n.RedAlertDoNotSend="RED_ALERT_DO_NOT_SEND",t.ResponseAtomicTemplateFromJSON=a,t.ResponseAtomicTemplateFromJSONTyped=s,t.ResponseAtomicTemplateToJSON=function e(t){if(void 0!==t)return null===t?null:{id:t.id,scriptType:t.scriptType,organizationId:t.organizationId,category:t.category,subIntent:t.subIntent,categoryReadableName:t.categoryReadableName,responseText:t.responseText,entity:t.entity,parent:t.parent,children:void 0===t.children?void 0:t.children.map(e),attachments:void 0===t.attachments?void 0:t.attachments.map(o.AttachmentToJSON),aiTrainerInstructions:t.aiTrainerInstructions,handoffIntentState:t.handoffIntentState,attachmentsFromDatabase:t.attachmentsFromDatabase,superCategory:t.superCategory}}},6956:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScheduleDtoToJSON=t.ScheduleDtoFromJSONTyped=t.ScheduleDtoFromJSON=t.ScheduleDtoTourTypeEnum=void 0;var n,r=i(296),o=i(5007);function a(e,t){return null==e?e:{guestCard:r.exists(e,"guestCard")?o.EliseGuestCardDtoFromJSON(e.guestCard):void 0,buildingId:r.exists(e,"buildingId")?e.buildingId:void 0,tourType:r.exists(e,"tourType")?e.tourType:void 0,unitId:r.exists(e,"unitId")?e.unitId:void 0,startTime:r.exists(e,"startTime")?e.startTime:void 0,endTime:r.exists(e,"endTime")?e.endTime:void 0,leasingAgentId:r.exists(e,"leasingAgentId")?e.leasingAgentId:void 0}}(n=t.ScheduleDtoTourTypeEnum||(t.ScheduleDtoTourTypeEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.ScheduleDtoFromJSON=function(e){return a(e)},t.ScheduleDtoFromJSONTyped=a,t.ScheduleDtoToJSON=function(e){if(void 0!==e)return null===e?null:{guestCard:o.EliseGuestCardDtoToJSON(e.guestCard),buildingId:e.buildingId,tourType:e.tourType,unitId:e.unitId,startTime:e.startTime,endTime:e.endTime,leasingAgentId:e.leasingAgentId}}},2644:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptToJSON=t.ScriptFromJSONTyped=t.ScriptFromJSON=t.ScriptHandoffIntentStateEnum=t.ScriptTypeEnum=t.ScriptMediaEnum=void 0;var n,r,o,a=i(296);function s(e,t){return null==e?e:{id:a.exists(e,"id")?e.id:void 0,organizationId:a.exists(e,"organizationId")?e.organizationId:void 0,media:a.exists(e,"media")?e.media:void 0,type:a.exists(e,"type")?e.type:void 0,category:a.exists(e,"category")?e.category:void 0,subIntent:a.exists(e,"subIntent")?e.subIntent:void 0,text:a.exists(e,"text")?e.text:void 0,handoffIntentState:a.exists(e,"handoffIntentState")?e.handoffIntentState:void 0,communityId:a.exists(e,"communityId")?e.communityId:void 0}}(o=t.ScriptMediaEnum||(t.ScriptMediaEnum={})).Both="BOTH",o.Email="EMAIL",o.Sms="SMS",(r=t.ScriptTypeEnum||(t.ScriptTypeEnum={})).All="ALL",r.Template="TEMPLATE",r.TemplateItem="TEMPLATE_ITEM",(n=t.ScriptHandoffIntentStateEnum||(t.ScriptHandoffIntentStateEnum={})).None="NONE",n.YellowStatus="YELLOW_STATUS",n.RedAlertSend="RED_ALERT_SEND",n.RedAlertDoNotSend="RED_ALERT_DO_NOT_SEND",t.ScriptFromJSON=function(e){return s(e)},t.ScriptFromJSONTyped=s,t.ScriptToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,organizationId:e.organizationId,media:e.media,type:e.type,category:e.category,subIntent:e.subIntent,text:e.text,handoffIntentState:e.handoffIntentState,communityId:e.communityId}}},4192:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptSearchQueryToJSON=t.ScriptSearchQueryFromJSONTyped=t.ScriptSearchQueryFromJSON=t.ScriptSearchQueryMediaEnum=t.ScriptSearchQueryTypeEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{organizationId:o.exists(e,"organizationId")?e.organizationId:void 0,communityId:o.exists(e,"communityId")?e.communityId:void 0,type:e.type,media:e.media,category:o.exists(e,"category")?e.category:void 0,subIntent:o.exists(e,"subIntent")?e.subIntent:void 0,searchText:o.exists(e,"searchText")?e.searchText:void 0}}(r=t.ScriptSearchQueryTypeEnum||(t.ScriptSearchQueryTypeEnum={})).All="ALL",r.Template="TEMPLATE",r.TemplateItem="TEMPLATE_ITEM",(n=t.ScriptSearchQueryMediaEnum||(t.ScriptSearchQueryMediaEnum={})).Both="BOTH",n.Email="EMAIL",n.Sms="SMS",t.ScriptSearchQueryFromJSON=function(e){return a(e)},t.ScriptSearchQueryFromJSONTyped=a,t.ScriptSearchQueryToJSON=function(e){if(void 0!==e)return null===e?null:{organizationId:e.organizationId,communityId:e.communityId,type:e.type,media:e.media,category:e.category,subIntent:e.subIntent,searchText:e.searchText}}},6832:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptSearchResultToJSON=t.ScriptSearchResultFromJSONTyped=t.ScriptSearchResultFromJSON=void 0;var n=i(296),r=i(2644);function o(e,t){return null==e?e:{scripts:n.exists(e,"scripts")?e.scripts.map(r.ScriptFromJSON):void 0,truncated:n.exists(e,"truncated")?e.truncated:void 0}}t.ScriptSearchResultFromJSON=function(e){return o(e)},t.ScriptSearchResultFromJSONTyped=o,t.ScriptSearchResultToJSON=function(e){if(void 0!==e)return null===e?null:{scripts:void 0===e.scripts?void 0:e.scripts.map(r.ScriptToJSON),truncated:e.truncated}}},6865:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SendAgentMessageDtoToJSON=t.SendAgentMessageDtoFromJSONTyped=t.SendAgentMessageDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{message:n.exists(e,"message")?e.message:void 0,contextId:n.exists(e,"contextId")?e.contextId:void 0}}t.SendAgentMessageDtoFromJSON=function(e){return r(e)},t.SendAgentMessageDtoFromJSONTyped=r,t.SendAgentMessageDtoToJSON=function(e){if(void 0!==e)return null===e?null:{message:e.message,contextId:e.contextId}}},6448:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingBooleanToJSON=t.SettingBooleanFromJSONTyped=t.SettingBooleanFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{value:n.exists(e,"value")?e.value:void 0,enabled:n.exists(e,"enabled")?e.enabled:void 0,locked:n.exists(e,"locked")?e.locked:void 0}}t.SettingBooleanFromJSON=function(e){return r(e)},t.SettingBooleanFromJSONTyped=r,t.SettingBooleanToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,enabled:e.enabled,locked:e.locked}}},6161:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingIntegerToJSON=t.SettingIntegerFromJSONTyped=t.SettingIntegerFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{value:n.exists(e,"value")?e.value:void 0,enabled:n.exists(e,"enabled")?e.enabled:void 0,locked:n.exists(e,"locked")?e.locked:void 0}}t.SettingIntegerFromJSON=function(e){return r(e)},t.SettingIntegerFromJSONTyped=r,t.SettingIntegerToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,enabled:e.enabled,locked:e.locked}}},6069:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingStringToJSON=t.SettingStringFromJSONTyped=t.SettingStringFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{value:n.exists(e,"value")?e.value:void 0,enabled:n.exists(e,"enabled")?e.enabled:void 0,locked:n.exists(e,"locked")?e.locked:void 0}}t.SettingStringFromJSON=function(e){return r(e)},t.SettingStringFromJSONTyped=r,t.SettingStringToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,enabled:e.enabled,locked:e.locked}}},6122:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SettingVirtualTourTypeToJSON=t.SettingVirtualTourTypeFromJSONTyped=t.SettingVirtualTourTypeFromJSON=t.SettingVirtualTourTypeValueEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{value:r.exists(e,"value")?e.value:void 0,enabled:r.exists(e,"enabled")?e.enabled:void 0,locked:r.exists(e,"locked")?e.locked:void 0}}(n=t.SettingVirtualTourTypeValueEnum||(t.SettingVirtualTourTypeValueEnum={})).NotEnabled="NOT_ENABLED",n.SelfManaged="SELF_MANAGED",n.Whereby="WHEREBY",t.SettingVirtualTourTypeFromJSON=function(e){return o(e)},t.SettingVirtualTourTypeFromJSONTyped=o,t.SettingVirtualTourTypeToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,enabled:e.enabled,locked:e.locked}}},5687:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ShowActionDtoToJSON=t.ShowActionDtoFromJSONTyped=t.ShowActionDtoFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contextId:n.exists(e,"contextId")?e.contextId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0}}t.ShowActionDtoFromJSON=function(e){return r(e)},t.ShowActionDtoFromJSONTyped=r,t.ShowActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{contextId:e.contextId,buildingId:e.buildingId}}},2558:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SubIntentMetadataToJSON=t.SubIntentMetadataFromJSONTyped=t.SubIntentMetadataFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{template:n.exists(e,"template")?e.template:void 0,filled:n.exists(e,"filled")?e.filled:void 0}}t.SubIntentMetadataFromJSON=function(e){return r(e)},t.SubIntentMetadataFromJSONTyped=r,t.SubIntentMetadataToJSON=function(e){if(void 0!==e)return null===e?null:{template:e.template,filled:e.filled}}},904:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseToJSON=t.TourAvailabilityResponseFromJSONTyped=t.TourAvailabilityResponseFromJSON=t.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum=void 0;var n,r=i(296),o=i(7346),a=i(9374);function s(e,t){return null==e?e:{availability:r.exists(e,"availability")?r.mapValues(e.availability,a.TourTypeAvailabilityFromJSON):void 0,calendarTimeZone:r.exists(e,"calendarTimeZone")?o.TourAvailabilityResponseCalendarTimeZoneFromJSON(e.calendarTimeZone):void 0,rankOrderedSupportedTourTypes:r.exists(e,"rankOrderedSupportedTourTypes")?e.rankOrderedSupportedTourTypes:void 0}}(n=t.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum||(t.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.TourAvailabilityResponseFromJSON=function(e){return s(e)},t.TourAvailabilityResponseFromJSONTyped=s,t.TourAvailabilityResponseToJSON=function(e){if(void 0!==e)return null===e?null:{availability:void 0===e.availability?void 0:r.mapValues(e.availability,a.TourTypeAvailabilityToJSON),calendarTimeZone:o.TourAvailabilityResponseCalendarTimeZoneToJSON(e.calendarTimeZone),rankOrderedSupportedTourTypes:e.rankOrderedSupportedTourTypes}}},7346:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneToJSON=t.TourAvailabilityResponseCalendarTimeZoneFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneFromJSON=void 0;var n=i(296),r=i(6306);function o(e,t){return null==e?e:{rules:n.exists(e,"rules")?r.TourAvailabilityResponseCalendarTimeZoneRulesFromJSON(e.rules):void 0,id:n.exists(e,"id")?e.id:void 0}}t.TourAvailabilityResponseCalendarTimeZoneFromJSON=function(e){return o(e)},t.TourAvailabilityResponseCalendarTimeZoneFromJSONTyped=o,t.TourAvailabilityResponseCalendarTimeZoneToJSON=function(e){if(void 0!==e)return null===e?null:{rules:r.TourAvailabilityResponseCalendarTimeZoneRulesToJSON(e.rules),id:e.id}}},6306:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesFromJSON=void 0;var n=i(296),r=i(1155),o=i(8911);function a(e,t){return null==e?e:{transitions:n.exists(e,"transitions")?e.transitions.map(o.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSON):void 0,fixedOffset:n.exists(e,"fixedOffset")?e.fixedOffset:void 0,transitionRules:n.exists(e,"transitionRules")?e.transitionRules.map(r.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSON):void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesFromJSON=function(e){return a(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesFromJSONTyped=a,t.TourAvailabilityResponseCalendarTimeZoneRulesToJSON=function(e){if(void 0!==e)return null===e?null:{transitions:void 0===e.transitions?void 0:e.transitions.map(o.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsToJSON),fixedOffset:e.fixedOffset,transitionRules:void 0===e.transitionRules?void 0:e.transitionRules.map(r.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesToJSON)}}},2977:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesDurationToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSON=void 0;var n=i(296),r=i(1124);function o(e,t){return null==e?e:{seconds:n.exists(e,"seconds")?e.seconds:void 0,nano:n.exists(e,"nano")?e.nano:void 0,negative:n.exists(e,"negative")?e.negative:void 0,units:n.exists(e,"units")?e.units.map(r.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSON):void 0,zero:n.exists(e,"zero")?e.zero:void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSON=function(e){return o(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSONTyped=o,t.TourAvailabilityResponseCalendarTimeZoneRulesDurationToJSON=function(e){if(void 0!==e)return null===e?null:{seconds:e.seconds,nano:e.nano,negative:e.negative,units:void 0===e.units?void 0:e.units.map(r.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsToJSON),zero:e.zero}}},1124:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{dateBased:n.exists(e,"dateBased")?e.dateBased:void 0,timeBased:n.exists(e,"timeBased")?e.timeBased:void 0,durationEstimated:n.exists(e,"durationEstimated")?e.durationEstimated:void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSON=function(e){return r(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsFromJSONTyped=r,t.TourAvailabilityResponseCalendarTimeZoneRulesDurationUnitsToJSON=function(e){if(void 0!==e)return null===e?null:{dateBased:e.dateBased,timeBased:e.timeBased,durationEstimated:e.durationEstimated}}},827:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{totalSeconds:n.exists(e,"totalSeconds")?e.totalSeconds:void 0,id:n.exists(e,"id")?e.id:void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON=function(e){return r(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSONTyped=r,t.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON=function(e){if(void 0!==e)return null===e?null:{totalSeconds:e.totalSeconds,id:e.id}}},1155:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesDayOfWeekEnum=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesTimeDefinitionEnum=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesMonthEnum=void 0;var n,r,o,a=i(296),s=i(7399),l=i(827);function u(e,t){return null==e?e:{month:a.exists(e,"month")?e.month:void 0,timeDefinition:a.exists(e,"timeDefinition")?e.timeDefinition:void 0,standardOffset:a.exists(e,"standardOffset")?l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.standardOffset):void 0,offsetBefore:a.exists(e,"offsetBefore")?l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.offsetBefore):void 0,offsetAfter:a.exists(e,"offsetAfter")?l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.offsetAfter):void 0,dayOfWeek:a.exists(e,"dayOfWeek")?e.dayOfWeek:void 0,dayOfMonthIndicator:a.exists(e,"dayOfMonthIndicator")?e.dayOfMonthIndicator:void 0,localTime:a.exists(e,"localTime")?s.LocalTimeFromJSON(e.localTime):void 0,midnightEndOfDay:a.exists(e,"midnightEndOfDay")?e.midnightEndOfDay:void 0}}(o=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesMonthEnum||(t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesMonthEnum={})).January="JANUARY",o.February="FEBRUARY",o.March="MARCH",o.April="APRIL",o.May="MAY",o.June="JUNE",o.July="JULY",o.August="AUGUST",o.September="SEPTEMBER",o.October="OCTOBER",o.November="NOVEMBER",o.December="DECEMBER",(r=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesTimeDefinitionEnum||(t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesTimeDefinitionEnum={})).Utc="UTC",r.Wall="WALL",r.Standard="STANDARD",(n=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesDayOfWeekEnum||(t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesDayOfWeekEnum={})).Monday="MONDAY",n.Tuesday="TUESDAY",n.Wednesday="WEDNESDAY",n.Thursday="THURSDAY",n.Friday="FRIDAY",n.Saturday="SATURDAY",n.Sunday="SUNDAY",t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSON=function(e){return u(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesFromJSONTyped=u,t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionRulesToJSON=function(e){if(void 0!==e)return null===e?null:{month:e.month,timeDefinition:e.timeDefinition,standardOffset:l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.standardOffset),offsetBefore:l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.offsetBefore),offsetAfter:l.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.offsetAfter),dayOfWeek:e.dayOfWeek,dayOfMonthIndicator:e.dayOfMonthIndicator,localTime:s.LocalTimeToJSON(e.localTime),midnightEndOfDay:e.midnightEndOfDay}}},8911:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsToJSON=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSONTyped=t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSON=void 0;var n=i(296),r=i(2977),o=i(827);function a(e,t){return null==e?e:{offsetBefore:n.exists(e,"offsetBefore")?o.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.offsetBefore):void 0,offsetAfter:n.exists(e,"offsetAfter")?o.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeFromJSON(e.offsetAfter):void 0,duration:n.exists(e,"duration")?r.TourAvailabilityResponseCalendarTimeZoneRulesDurationFromJSON(e.duration):void 0,dateTimeAfter:n.exists(e,"dateTimeAfter")?new Date(e.dateTimeAfter):void 0,gap:n.exists(e,"gap")?e.gap:void 0,overlap:n.exists(e,"overlap")?e.overlap:void 0,instant:n.exists(e,"instant")?new Date(e.instant):void 0,dateTimeBefore:n.exists(e,"dateTimeBefore")?new Date(e.dateTimeBefore):void 0}}t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSON=function(e){return a(e)},t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsFromJSONTyped=a,t.TourAvailabilityResponseCalendarTimeZoneRulesTransitionsToJSON=function(e){if(void 0!==e)return null===e?null:{offsetBefore:o.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.offsetBefore),offsetAfter:o.TourAvailabilityResponseCalendarTimeZoneRulesOffsetBeforeToJSON(e.offsetAfter),duration:r.TourAvailabilityResponseCalendarTimeZoneRulesDurationToJSON(e.duration),dateTimeAfter:void 0===e.dateTimeAfter?void 0:e.dateTimeAfter.toISOString(),gap:e.gap,overlap:e.overlap,instant:void 0===e.instant?void 0:e.instant.toISOString(),dateTimeBefore:void 0===e.dateTimeBefore?void 0:e.dateTimeBefore.toISOString()}}},9374:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TourTypeAvailabilityToJSON=t.TourTypeAvailabilityFromJSONTyped=t.TourTypeAvailabilityFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{tourDurationInMinutes:n.exists(e,"tourDurationInMinutes")?e.tourDurationInMinutes:void 0,availableTourStartTimes:n.exists(e,"availableTourStartTimes")?e.availableTourStartTimes:void 0}}t.TourTypeAvailabilityFromJSON=function(e){return r(e)},t.TourTypeAvailabilityFromJSONTyped=r,t.TourTypeAvailabilityToJSON=function(e){if(void 0!==e)return null===e?null:{tourDurationInMinutes:e.tourDurationInMinutes,availableTourStartTimes:e.availableTourStartTimes}}},6330:(e,t)=>{function i(e,t){return null==e?e:{value:e.value,label:e.label}}var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TourTypeOptionToJSON=t.TourTypeOptionFromJSONTyped=t.TourTypeOptionFromJSON=t.TourTypeOptionValueEnum=void 0,(n=t.TourTypeOptionValueEnum||(t.TourTypeOptionValueEnum={})).Unknown="UNKNOWN",n.SelfGuided="SELF_GUIDED",n.VirtualShowing="VIRTUAL_SHOWING",n.WithAgent="WITH_AGENT",n.MediaTour="MEDIA_TOUR",t.TourTypeOptionFromJSON=function(e){return i(e)},t.TourTypeOptionFromJSONTyped=i,t.TourTypeOptionToJSON=function(e){if(void 0!==e)return null===e?null:{value:e.value,label:e.label}}},9275:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UiBuildingDetailsToJSON=t.UiBuildingDetailsFromJSONTyped=t.UiBuildingDetailsFromJSON=t.UiBuildingDetailsVirtualTourTypeEnum=t.UiBuildingDetailsTourNotificationEmailsModeEnum=void 0;var n,r,o=i(296),a=i(3617);function s(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,launchedDate:o.exists(e,"launchedDate")?new Date(e.launchedDate):void 0,managementCompanyId:o.exists(e,"managementCompanyId")?e.managementCompanyId:void 0,organizationId:o.exists(e,"organizationId")?e.organizationId:void 0,active:o.exists(e,"active")?e.active:void 0,handoffForwardToEmails:o.exists(e,"handoffForwardToEmails")?e.handoffForwardToEmails:void 0,responseCcEmails:o.exists(e,"responseCcEmails")?e.responseCcEmails:void 0,responseBccEmails:o.exists(e,"responseBccEmails")?e.responseBccEmails:void 0,associateCalendarId:o.exists(e,"associateCalendarId")?e.associateCalendarId:void 0,buildingName:o.exists(e,"buildingName")?e.buildingName:void 0,address1:o.exists(e,"address1")?e.address1:void 0,address2:o.exists(e,"address2")?e.address2:void 0,address3:o.exists(e,"address3")?e.address3:void 0,alternativeILSAddresses:o.exists(e,"alternativeILSAddresses")?e.alternativeILSAddresses:void 0,city:o.exists(e,"city")?e.city:void 0,state:o.exists(e,"state")?e.state:void 0,postalCode:o.exists(e,"postalCode")?e.postalCode:void 0,crossStreets:o.exists(e,"crossStreets")?e.crossStreets:void 0,neighborhood:o.exists(e,"neighborhood")?e.neighborhood:void 0,nearbyTransportation:o.exists(e,"nearbyTransportation")?e.nearbyTransportation:void 0,buildingOwnership:o.exists(e,"buildingOwnership")?e.buildingOwnership:void 0,buildingType:o.exists(e,"buildingType")?e.buildingType:void 0,totalUnits:o.exists(e,"totalUnits")?e.totalUnits:void 0,totalFloors:o.exists(e,"totalFloors")?e.totalFloors:void 0,yearBuilt:o.exists(e,"yearBuilt")?e.yearBuilt:void 0,block:o.exists(e,"block")?e.block:void 0,lot:o.exists(e,"lot")?e.lot:void 0,schoolDistrict:o.exists(e,"schoolDistrict")?e.schoolDistrict:void 0,communityDistrict:o.exists(e,"communityDistrict")?e.communityDistrict:void 0,newConstruction:o.exists(e,"newConstruction")?e.newConstruction:void 0,preWarBuilding:o.exists(e,"preWarBuilding")?e.preWarBuilding:void 0,brownstone:o.exists(e,"brownstone")?e.brownstone:void 0,greenBuilding:o.exists(e,"greenBuilding")?e.greenBuilding:void 0,elevator:o.exists(e,"elevator")?e.elevator:void 0,freightElevator:o.exists(e,"freightElevator")?e.freightElevator:void 0,parking:o.exists(e,"parking")?e.parking:void 0,petPolicy:o.exists(e,"petPolicy")?e.petPolicy:void 0,petNumberLimit:o.exists(e,"petNumberLimit")?e.petNumberLimit:void 0,petWeightLimit:o.exists(e,"petWeightLimit")?e.petWeightLimit:void 0,petFeeOrDeposit:o.exists(e,"petFeeOrDeposit")?e.petFeeOrDeposit:void 0,utilitiesIncluded:o.exists(e,"utilitiesIncluded")?e.utilitiesIncluded:void 0,utilitiesNotIncluded:o.exists(e,"utilitiesNotIncluded")?e.utilitiesNotIncluded:void 0,leaseTermsAccepted:o.exists(e,"leaseTermsAccepted")?e.leaseTermsAccepted:void 0,minLeaseTermAccepted:o.exists(e,"minLeaseTermAccepted")?e.minLeaseTermAccepted:void 0,furnishedOffered:o.exists(e,"furnishedOffered")?e.furnishedOffered:void 0,furnishedUnitsPolicy:o.exists(e,"furnishedUnitsPolicy")?e.furnishedUnitsPolicy:void 0,internationalStudentRequirements:o.exists(e,"internationalStudentRequirements")?e.internationalStudentRequirements:void 0,amenitiesFee:o.exists(e,"amenitiesFee")?e.amenitiesFee:void 0,nonSmoking:o.exists(e,"nonSmoking")?e.nonSmoking:void 0,piedATerreAllowed:o.exists(e,"piedATerreAllowed")?e.piedATerreAllowed:void 0,diplomatsOk:o.exists(e,"diplomatsOk")?e.diplomatsOk:void 0,corporateLeasesAccepted:o.exists(e,"corporateLeasesAccepted")?e.corporateLeasesAccepted:void 0,shortTermAllowed:o.exists(e,"shortTermAllowed")?e.shortTermAllowed:void 0,doorman:o.exists(e,"doorman")?e.doorman:void 0,intercom:o.exists(e,"intercom")?e.intercom:void 0,liveInSuper:o.exists(e,"liveInSuper")?e.liveInSuper:void 0,concierge:o.exists(e,"concierge")?e.concierge:void 0,laundryInBuilding:o.exists(e,"laundryInBuilding")?e.laundryInBuilding:void 0,packageReceiving:o.exists(e,"packageReceiving")?e.packageReceiving:void 0,gym:o.exists(e,"gym")?e.gym:void 0,storage:o.exists(e,"storage")?e.storage:void 0,bicycleRoom:o.exists(e,"bicycleRoom")?e.bicycleRoom:void 0,lounge:o.exists(e,"lounge")?e.lounge:void 0,clubHouse:o.exists(e,"clubHouse")?e.clubHouse:void 0,businessCenter:o.exists(e,"businessCenter")?e.businessCenter:void 0,outdoorSpace:o.exists(e,"outdoorSpace")?e.outdoorSpace:void 0,roofDeck:o.exists(e,"roofDeck")?e.roofDeck:void 0,courtyard:o.exists(e,"courtyard")?e.courtyard:void 0,childrenPlayroom:o.exists(e,"childrenPlayroom")?e.childrenPlayroom:void 0,nursery:o.exists(e,"nursery")?e.nursery:void 0,maidService:o.exists(e,"maidService")?e.maidService:void 0,pool:o.exists(e,"pool")?e.pool:void 0,wheelchairAccess:o.exists(e,"wheelchairAccess")?e.wheelchairAccess:void 0,guarantorTypesAccepted:o.exists(e,"guarantorTypesAccepted")?e.guarantorTypesAccepted:void 0,thirdPartyGuarantorTypesAccepted:o.exists(e,"thirdPartyGuarantorTypesAccepted")?e.thirdPartyGuarantorTypesAccepted:void 0,noCreditQualificationAlternative:o.exists(e,"noCreditQualificationAlternative")?e.noCreditQualificationAlternative:void 0,virtualTourPlatforms:o.exists(e,"virtualTourPlatforms")?e.virtualTourPlatforms:void 0,flexWallPolicy:o.exists(e,"flexWallPolicy")?e.flexWallPolicy:void 0,leaseholderApplicationFee:o.exists(e,"leaseholderApplicationFee")?e.leaseholderApplicationFee:void 0,occupantApplicationFee:o.exists(e,"occupantApplicationFee")?e.occupantApplicationFee:void 0,guarantorApplicationFee:o.exists(e,"guarantorApplicationFee")?e.guarantorApplicationFee:void 0,tenantIncomeRequirementRentMultiplier:o.exists(e,"tenantIncomeRequirementRentMultiplier")?e.tenantIncomeRequirementRentMultiplier:void 0,guarantorIncomeRequirementRentMultiplier:o.exists(e,"guarantorIncomeRequirementRentMultiplier")?e.guarantorIncomeRequirementRentMultiplier:void 0,incomeRequirementRentMultiplierTimePeriod:o.exists(e,"incomeRequirementRentMultiplierTimePeriod")?e.incomeRequirementRentMultiplierTimePeriod:void 0,leaseholderMinimumCreditScoreRequirement:o.exists(e,"leaseholderMinimumCreditScoreRequirement")?e.leaseholderMinimumCreditScoreRequirement:void 0,guarantorMinimumCreditScoreRequirement:o.exists(e,"guarantorMinimumCreditScoreRequirement")?e.guarantorMinimumCreditScoreRequirement:void 0,leaseholderApplicationDocumentsRequired:o.exists(e,"leaseholderApplicationDocumentsRequired")?e.leaseholderApplicationDocumentsRequired:void 0,selfEmployedApplicationDocumentsRequired:o.exists(e,"selfEmployedApplicationDocumentsRequired")?e.selfEmployedApplicationDocumentsRequired:void 0,guarantorApplicationDocumentsRequired:o.exists(e,"guarantorApplicationDocumentsRequired")?e.guarantorApplicationDocumentsRequired:void 0,guarantorsAccepted:o.exists(e,"guarantorsAccepted")?e.guarantorsAccepted:void 0,financialsInsufficientAlternative:o.exists(e,"financialsInsufficientAlternative")?e.financialsInsufficientAlternative:void 0,prepaymentPolicy:o.exists(e,"prepaymentPolicy")?e.prepaymentPolicy:void 0,rentRequiredOnLeaseSigning:o.exists(e,"rentRequiredOnLeaseSigning")?e.rentRequiredOnLeaseSigning:void 0,securityDepositRentMultiplier:o.exists(e,"securityDepositRentMultiplier")?e.securityDepositRentMultiplier:void 0,paymentFormsAccepted:o.exists(e,"paymentFormsAccepted")?e.paymentFormsAccepted:void 0,clientEmail:o.exists(e,"clientEmail")?e.clientEmail:void 0,description:o.exists(e,"description")?e.description:void 0,notes:o.exists(e,"notes")?e.notes:void 0,occupiedUnitsShowingHours:o.exists(e,"occupiedUnitsShowingHours")?e.occupiedUnitsShowingHours:void 0,leasingOfficeHours:o.exists(e,"leasingOfficeHours")?e.leasingOfficeHours:void 0,appointmentHours:o.exists(e,"appointmentHours")?e.appointmentHours.map(a.AppointmentHoursFromJSON):void 0,tourDuration:o.exists(e,"tourDuration")?e.tourDuration:void 0,internalNotes:o.exists(e,"internalNotes")?e.internalNotes:void 0,leasingPhoneNumber:o.exists(e,"leasingPhoneNumber")?e.leasingPhoneNumber:void 0,callCenterNumber:o.exists(e,"callCenterNumber")?e.callCenterNumber:void 0,buildingWebsiteUrl:o.exists(e,"buildingWebsiteUrl")?e.buildingWebsiteUrl:void 0,applicationLink:o.exists(e,"applicationLink")?e.applicationLink:void 0,geoAddress:o.exists(e,"geoAddress")?e.geoAddress:void 0,googleMapsUrl:o.exists(e,"googleMapsUrl")?e.googleMapsUrl:void 0,appointmentMeetingLocation:o.exists(e,"appointmentMeetingLocation")?e.appointmentMeetingLocation:void 0,appointmentMeetingPointSpecific:o.exists(e,"appointmentMeetingPointSpecific")?e.appointmentMeetingPointSpecific:void 0,appointmentDirections:o.exists(e,"appointmentDirections")?e.appointmentDirections:void 0,appointmentAdditionalDirections:o.exists(e,"appointmentAdditionalDirections")?e.appointmentAdditionalDirections:void 0,alerts:o.exists(e,"alerts")?e.alerts:void 0,rentComputeType:o.exists(e,"rentComputeType")?e.rentComputeType:void 0,autosendActive:o.exists(e,"autosendActive")?e.autosendActive:void 0,advancedMoveInAllowenceInDays:o.exists(e,"advancedMoveInAllowenceInDays")?e.advancedMoveInAllowenceInDays:void 0,showByOpenHouseOnly:o.exists(e,"showByOpenHouseOnly")?e.showByOpenHouseOnly:void 0,showUnitsWithPendingApplication:o.exists(e,"showUnitsWithPendingApplication")?e.showUnitsWithPendingApplication:void 0,showOccupiedUnitsWithPendingApplication:o.exists(e,"showOccupiedUnitsWithPendingApplication")?e.showOccupiedUnitsWithPendingApplication:void 0,confirmAppointmentsOccupiedUnits:o.exists(e,"confirmAppointmentsOccupiedUnits")?e.confirmAppointmentsOccupiedUnits:void 0,confirmAppointmentsRenovatingUnits:o.exists(e,"confirmAppointmentsRenovatingUnits")?e.confirmAppointmentsRenovatingUnits:void 0,occupiedUnitsAdvancedNoticeInHours:o.exists(e,"occupiedUnitsAdvancedNoticeInHours")?e.occupiedUnitsAdvancedNoticeInHours:void 0,alternativeBuildingNames:o.exists(e,"alternativeBuildingNames")?e.alternativeBuildingNames:void 0,externalIds:o.exists(e,"externalIds")?e.externalIds:void 0,externalCrmId:o.exists(e,"externalCrmId")?e.externalCrmId:void 0,defaultAvailabilityQuoteMatchMoveInDate:o.exists(e,"defaultAvailabilityQuoteMatchMoveInDate")?e.defaultAvailabilityQuoteMatchMoveInDate:void 0,leaseRenewalNoticeInDays:o.exists(e,"leaseRenewalNoticeInDays")?e.leaseRenewalNoticeInDays:void 0,rentQuoteFormat:o.exists(e,"rentQuoteFormat")?e.rentQuoteFormat:void 0,rentWithIncentivesQuoteFormat:o.exists(e,"rentWithIncentivesQuoteFormat")?e.rentWithIncentivesQuoteFormat:void 0,isPartOfComplex:o.exists(e,"isPartOfComplex")?e.isPartOfComplex:void 0,effectiveRentComputeType:o.exists(e,"effectiveRentComputeType")?e.effectiveRentComputeType:void 0,maxLeaseTermAccepted:o.exists(e,"maxLeaseTermAccepted")?e.maxLeaseTermAccepted:void 0,parkingInformation:o.exists(e,"parkingInformation")?e.parkingInformation:void 0,storageFee:o.exists(e,"storageFee")?e.storageFee:void 0,incentivesProperlyConnected:o.exists(e,"incentivesProperlyConnected")?e.incentivesProperlyConnected:void 0,prioritizeShowingVacantUnits:o.exists(e,"prioritizeShowingVacantUnits")?e.prioritizeShowingVacantUnits:void 0,electricCompany:o.exists(e,"electricCompany")?e.electricCompany:void 0,gasCompany:o.exists(e,"gasCompany")?e.gasCompany:void 0,telephoneCompany:o.exists(e,"telephoneCompany")?e.telephoneCompany:void 0,televisionCompany:o.exists(e,"televisionCompany")?e.televisionCompany:void 0,waterCompany:o.exists(e,"waterCompany")?e.waterCompany:void 0,internetCompany:o.exists(e,"internetCompany")?e.internetCompany:void 0,localHospital:o.exists(e,"localHospital")?e.localHospital:void 0,localSchoolDistrict:o.exists(e,"localSchoolDistrict")?e.localSchoolDistrict:void 0,localElementarySchool:o.exists(e,"localElementarySchool")?e.localElementarySchool:void 0,localMiddleSchool:o.exists(e,"localMiddleSchool")?e.localMiddleSchool:void 0,localHighSchool:o.exists(e,"localHighSchool")?e.localHighSchool:void 0,localShoppingCenter:o.exists(e,"localShoppingCenter")?e.localShoppingCenter:void 0,localGroceryStore:o.exists(e,"localGroceryStore")?e.localGroceryStore:void 0,closestInterstates:o.exists(e,"closestInterstates")?e.closestInterstates:void 0,buildingPicturesUrl:o.exists(e,"buildingPicturesUrl")?e.buildingPicturesUrl:void 0,buildingFloorPlansUrl:o.exists(e,"buildingFloorPlansUrl")?e.buildingFloorPlansUrl:void 0,nonexistentLayouts:o.exists(e,"nonexistentLayouts")?e.nonexistentLayouts:void 0,offeredLayouts:o.exists(e,"offeredLayouts")?e.offeredLayouts:void 0,avoidQuotingPrices:o.exists(e,"avoidQuotingPrices")?e.avoidQuotingPrices:void 0,excludeNotRentReadyUnit:o.exists(e,"excludeNotRentReadyUnit")?e.excludeNotRentReadyUnit:void 0,flexWallsAllowed:o.exists(e,"flexWallsAllowed")?e.flexWallsAllowed:void 0,petsAccepted:o.exists(e,"petsAccepted")?e.petsAccepted:void 0,showOccupiedUnits:o.exists(e,"showOccupiedUnits")?e.showOccupiedUnits:void 0,guarantorsAcceptedSwitch:o.exists(e,"guarantorsAcceptedSwitch")?e.guarantorsAcceptedSwitch:void 0,thirdPartyGuarantorsAccepted:o.exists(e,"thirdPartyGuarantorsAccepted")?e.thirdPartyGuarantorsAccepted:void 0,alwaysScheduleAppointments:o.exists(e,"alwaysScheduleAppointments")?e.alwaysScheduleAppointments:void 0,leasingOfficeOnsite:o.exists(e,"leasingOfficeOnsite")?e.leasingOfficeOnsite:void 0,building3dMediaUrl:o.exists(e,"building3dMediaUrl")?e.building3dMediaUrl:void 0,dailyReportEmails:o.exists(e,"dailyReportEmails")?e.dailyReportEmails:void 0,weeklyReportEmails:o.exists(e,"weeklyReportEmails")?e.weeklyReportEmails:void 0,nearbySubways:o.exists(e,"nearbySubways")?e.nearbySubways:void 0,bedroomTypes:o.exists(e,"bedroomTypes")?e.bedroomTypes:void 0,inPersonToursAllowed:o.exists(e,"inPersonToursAllowed")?e.inPersonToursAllowed:void 0,selfGuidedToursEnabled:o.exists(e,"selfGuidedToursEnabled")?e.selfGuidedToursEnabled:void 0,liveVirtualToursAllowed:o.exists(e,"liveVirtualToursAllowed")?e.liveVirtualToursAllowed:void 0,noUnitSelfGuidedTourAllowed:o.exists(e,"noUnitSelfGuidedTourAllowed")?e.noUnitSelfGuidedTourAllowed:void 0,sgSchedulingBasedOnNormalAppointments:o.exists(e,"sgSchedulingBasedOnNormalAppointments")?e.sgSchedulingBasedOnNormalAppointments:void 0,leasingBrochureUrl:o.exists(e,"leasingBrochureUrl")?e.leasingBrochureUrl:void 0,textForwardToEmails:o.exists(e,"textForwardToEmails")?e.textForwardToEmails:void 0,omitDesiredFloorPlan:o.exists(e,"omitDesiredFloorPlan")?e.omitDesiredFloorPlan:void 0,tourNotificationEmailsMode:o.exists(e,"tourNotificationEmailsMode")?e.tourNotificationEmailsMode:void 0,virtualTourType:o.exists(e,"virtualTourType")?e.virtualTourType:void 0,showNotRespondingLeadsInReport:o.exists(e,"showNotRespondingLeadsInReport")?e.showNotRespondingLeadsInReport:void 0,emailSignature:o.exists(e,"emailSignature")?e.emailSignature:void 0,sgtUrl:o.exists(e,"sgtUrl")?e.sgtUrl:void 0,preRecordedVirtualTourUrl:o.exists(e,"preRecordedVirtualTourUrl")?e.preRecordedVirtualTourUrl:void 0,liveVirtualToursLink:o.exists(e,"liveVirtualToursLink")?e.liveVirtualToursLink:void 0,selfGuidedToursLink:o.exists(e,"selfGuidedToursLink")?e.selfGuidedToursLink:void 0}}(r=t.UiBuildingDetailsTourNotificationEmailsModeEnum||(t.UiBuildingDetailsTourNotificationEmailsModeEnum={})).NoNotification="NO_NOTIFICATION",r.AllViewings="ALL_VIEWINGS",r.SameDayViewings="SAME_DAY_VIEWINGS",(n=t.UiBuildingDetailsVirtualTourTypeEnum||(t.UiBuildingDetailsVirtualTourTypeEnum={})).NotEnabled="NOT_ENABLED",n.SelfManaged="SELF_MANAGED",n.Whereby="WHEREBY",t.UiBuildingDetailsFromJSON=function(e){return s(e)},t.UiBuildingDetailsFromJSONTyped=s,t.UiBuildingDetailsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,launchedDate:void 0===e.launchedDate?void 0:e.launchedDate.toISOString(),managementCompanyId:e.managementCompanyId,organizationId:e.organizationId,active:e.active,handoffForwardToEmails:e.handoffForwardToEmails,responseCcEmails:e.responseCcEmails,responseBccEmails:e.responseBccEmails,associateCalendarId:e.associateCalendarId,buildingName:e.buildingName,address1:e.address1,address2:e.address2,address3:e.address3,alternativeILSAddresses:e.alternativeILSAddresses,city:e.city,state:e.state,postalCode:e.postalCode,crossStreets:e.crossStreets,neighborhood:e.neighborhood,nearbyTransportation:e.nearbyTransportation,buildingOwnership:e.buildingOwnership,buildingType:e.buildingType,totalUnits:e.totalUnits,totalFloors:e.totalFloors,yearBuilt:e.yearBuilt,block:e.block,lot:e.lot,schoolDistrict:e.schoolDistrict,communityDistrict:e.communityDistrict,newConstruction:e.newConstruction,preWarBuilding:e.preWarBuilding,brownstone:e.brownstone,greenBuilding:e.greenBuilding,elevator:e.elevator,freightElevator:e.freightElevator,parking:e.parking,petPolicy:e.petPolicy,petNumberLimit:e.petNumberLimit,petWeightLimit:e.petWeightLimit,petFeeOrDeposit:e.petFeeOrDeposit,utilitiesIncluded:e.utilitiesIncluded,utilitiesNotIncluded:e.utilitiesNotIncluded,leaseTermsAccepted:e.leaseTermsAccepted,minLeaseTermAccepted:e.minLeaseTermAccepted,furnishedOffered:e.furnishedOffered,furnishedUnitsPolicy:e.furnishedUnitsPolicy,internationalStudentRequirements:e.internationalStudentRequirements,amenitiesFee:e.amenitiesFee,nonSmoking:e.nonSmoking,piedATerreAllowed:e.piedATerreAllowed,diplomatsOk:e.diplomatsOk,corporateLeasesAccepted:e.corporateLeasesAccepted,shortTermAllowed:e.shortTermAllowed,doorman:e.doorman,intercom:e.intercom,liveInSuper:e.liveInSuper,concierge:e.concierge,laundryInBuilding:e.laundryInBuilding,packageReceiving:e.packageReceiving,gym:e.gym,storage:e.storage,bicycleRoom:e.bicycleRoom,lounge:e.lounge,clubHouse:e.clubHouse,businessCenter:e.businessCenter,outdoorSpace:e.outdoorSpace,roofDeck:e.roofDeck,courtyard:e.courtyard,childrenPlayroom:e.childrenPlayroom,nursery:e.nursery,maidService:e.maidService,pool:e.pool,wheelchairAccess:e.wheelchairAccess,guarantorTypesAccepted:e.guarantorTypesAccepted,thirdPartyGuarantorTypesAccepted:e.thirdPartyGuarantorTypesAccepted,noCreditQualificationAlternative:e.noCreditQualificationAlternative,virtualTourPlatforms:e.virtualTourPlatforms,flexWallPolicy:e.flexWallPolicy,leaseholderApplicationFee:e.leaseholderApplicationFee,occupantApplicationFee:e.occupantApplicationFee,guarantorApplicationFee:e.guarantorApplicationFee,tenantIncomeRequirementRentMultiplier:e.tenantIncomeRequirementRentMultiplier,guarantorIncomeRequirementRentMultiplier:e.guarantorIncomeRequirementRentMultiplier,incomeRequirementRentMultiplierTimePeriod:e.incomeRequirementRentMultiplierTimePeriod,leaseholderMinimumCreditScoreRequirement:e.leaseholderMinimumCreditScoreRequirement,guarantorMinimumCreditScoreRequirement:e.guarantorMinimumCreditScoreRequirement,leaseholderApplicationDocumentsRequired:e.leaseholderApplicationDocumentsRequired,selfEmployedApplicationDocumentsRequired:e.selfEmployedApplicationDocumentsRequired,guarantorApplicationDocumentsRequired:e.guarantorApplicationDocumentsRequired,guarantorsAccepted:e.guarantorsAccepted,financialsInsufficientAlternative:e.financialsInsufficientAlternative,prepaymentPolicy:e.prepaymentPolicy,rentRequiredOnLeaseSigning:e.rentRequiredOnLeaseSigning,securityDepositRentMultiplier:e.securityDepositRentMultiplier,paymentFormsAccepted:e.paymentFormsAccepted,clientEmail:e.clientEmail,description:e.description,notes:e.notes,occupiedUnitsShowingHours:e.occupiedUnitsShowingHours,leasingOfficeHours:e.leasingOfficeHours,appointmentHours:void 0===e.appointmentHours?void 0:e.appointmentHours.map(a.AppointmentHoursToJSON),tourDuration:e.tourDuration,internalNotes:e.internalNotes,leasingPhoneNumber:e.leasingPhoneNumber,callCenterNumber:e.callCenterNumber,buildingWebsiteUrl:e.buildingWebsiteUrl,applicationLink:e.applicationLink,geoAddress:e.geoAddress,googleMapsUrl:e.googleMapsUrl,appointmentMeetingLocation:e.appointmentMeetingLocation,appointmentMeetingPointSpecific:e.appointmentMeetingPointSpecific,appointmentDirections:e.appointmentDirections,appointmentAdditionalDirections:e.appointmentAdditionalDirections,alerts:e.alerts,rentComputeType:e.rentComputeType,autosendActive:e.autosendActive,advancedMoveInAllowenceInDays:e.advancedMoveInAllowenceInDays,showByOpenHouseOnly:e.showByOpenHouseOnly,showUnitsWithPendingApplication:e.showUnitsWithPendingApplication,showOccupiedUnitsWithPendingApplication:e.showOccupiedUnitsWithPendingApplication,confirmAppointmentsOccupiedUnits:e.confirmAppointmentsOccupiedUnits,confirmAppointmentsRenovatingUnits:e.confirmAppointmentsRenovatingUnits,occupiedUnitsAdvancedNoticeInHours:e.occupiedUnitsAdvancedNoticeInHours,alternativeBuildingNames:e.alternativeBuildingNames,externalIds:e.externalIds,externalCrmId:e.externalCrmId,defaultAvailabilityQuoteMatchMoveInDate:e.defaultAvailabilityQuoteMatchMoveInDate,leaseRenewalNoticeInDays:e.leaseRenewalNoticeInDays,rentQuoteFormat:e.rentQuoteFormat,rentWithIncentivesQuoteFormat:e.rentWithIncentivesQuoteFormat,isPartOfComplex:e.isPartOfComplex,effectiveRentComputeType:e.effectiveRentComputeType,maxLeaseTermAccepted:e.maxLeaseTermAccepted,parkingInformation:e.parkingInformation,storageFee:e.storageFee,incentivesProperlyConnected:e.incentivesProperlyConnected,prioritizeShowingVacantUnits:e.prioritizeShowingVacantUnits,electricCompany:e.electricCompany,gasCompany:e.gasCompany,telephoneCompany:e.telephoneCompany,televisionCompany:e.televisionCompany,waterCompany:e.waterCompany,internetCompany:e.internetCompany,localHospital:e.localHospital,localSchoolDistrict:e.localSchoolDistrict,localElementarySchool:e.localElementarySchool,localMiddleSchool:e.localMiddleSchool,localHighSchool:e.localHighSchool,localShoppingCenter:e.localShoppingCenter,localGroceryStore:e.localGroceryStore,closestInterstates:e.closestInterstates,buildingPicturesUrl:e.buildingPicturesUrl,buildingFloorPlansUrl:e.buildingFloorPlansUrl,nonexistentLayouts:e.nonexistentLayouts,offeredLayouts:e.offeredLayouts,avoidQuotingPrices:e.avoidQuotingPrices,excludeNotRentReadyUnit:e.excludeNotRentReadyUnit,flexWallsAllowed:e.flexWallsAllowed,petsAccepted:e.petsAccepted,showOccupiedUnits:e.showOccupiedUnits,guarantorsAcceptedSwitch:e.guarantorsAcceptedSwitch,thirdPartyGuarantorsAccepted:e.thirdPartyGuarantorsAccepted,alwaysScheduleAppointments:e.alwaysScheduleAppointments,leasingOfficeOnsite:e.leasingOfficeOnsite,building3dMediaUrl:e.building3dMediaUrl,dailyReportEmails:e.dailyReportEmails,weeklyReportEmails:e.weeklyReportEmails,nearbySubways:e.nearbySubways,bedroomTypes:e.bedroomTypes,inPersonToursAllowed:e.inPersonToursAllowed,selfGuidedToursEnabled:e.selfGuidedToursEnabled,liveVirtualToursAllowed:e.liveVirtualToursAllowed,noUnitSelfGuidedTourAllowed:e.noUnitSelfGuidedTourAllowed,sgSchedulingBasedOnNormalAppointments:e.sgSchedulingBasedOnNormalAppointments,leasingBrochureUrl:e.leasingBrochureUrl,textForwardToEmails:e.textForwardToEmails,omitDesiredFloorPlan:e.omitDesiredFloorPlan,tourNotificationEmailsMode:e.tourNotificationEmailsMode,virtualTourType:e.virtualTourType,showNotRespondingLeadsInReport:e.showNotRespondingLeadsInReport,emailSignature:e.emailSignature,sgtUrl:e.sgtUrl,preRecordedVirtualTourUrl:e.preRecordedVirtualTourUrl,liveVirtualToursLink:e.liveVirtualToursLink,selfGuidedToursLink:e.selfGuidedToursLink}}},260:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnitDetailsToJSON=t.UnitDetailsFromJSONTyped=t.UnitDetailsFromJSON=void 0;var n=i(296),r=i(3617),o=i(5604);function a(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,timeCreated:n.exists(e,"timeCreated")?new Date(e.timeCreated):void 0,active:n.exists(e,"active")?e.active:void 0,unitNumber:n.exists(e,"unitNumber")?e.unitNumber:void 0,description:n.exists(e,"description")?e.description:void 0,dateAvailable:n.exists(e,"dateAvailable")?new Date(e.dateAvailable):void 0,firstShowingDate:n.exists(e,"firstShowingDate")?new Date(e.firstShowingDate):void 0,applicationStatus:n.exists(e,"applicationStatus")?e.applicationStatus:void 0,availabilityStage:n.exists(e,"availabilityStage")?e.availabilityStage:void 0,viewingTimes:n.exists(e,"viewingTimes")?e.viewingTimes:void 0,tenantOccupied:n.exists(e,"tenantOccupied")?e.tenantOccupied:void 0,openHouse:n.exists(e,"openHouse")?e.openHouse.map(r.AppointmentHoursFromJSON):void 0,minLeaseTerm:n.exists(e,"minLeaseTerm")?e.minLeaseTerm:void 0,maxLeaseTerm:n.exists(e,"maxLeaseTerm")?e.maxLeaseTerm:void 0,floorplanLink:n.exists(e,"floorplanLink")?e.floorplanLink:void 0,floorplanFileType:n.exists(e,"floorplanFileType")?e.floorplanFileType:void 0,applicationUrl:n.exists(e,"applicationUrl")?e.applicationUrl:void 0,numberOfBedrooms:n.exists(e,"numberOfBedrooms")?e.numberOfBedrooms:void 0,numberOfBathrooms:n.exists(e,"numberOfBathrooms")?e.numberOfBathrooms:void 0,totalRooms:n.exists(e,"totalRooms")?e.totalRooms:void 0,layout:n.exists(e,"layout")?e.layout:void 0,layoutDescription:n.exists(e,"layoutDescription")?e.layoutDescription:void 0,convertible:n.exists(e,"convertible")?e.convertible:void 0,partitionTypesAllowed:n.exists(e,"partitionTypesAllowed")?e.partitionTypesAllowed:void 0,furnished:n.exists(e,"furnished")?e.furnished:void 0,furnishedAddedPrice:n.exists(e,"furnishedAddedPrice")?e.furnishedAddedPrice:void 0,laundryInUnit:n.exists(e,"laundryInUnit")?e.laundryInUnit:void 0,windowAirConditioning:n.exists(e,"windowAirConditioning")?e.windowAirConditioning:void 0,centralAirConditioning:n.exists(e,"centralAirConditioning")?e.centralAirConditioning:void 0,ceilingFan:n.exists(e,"ceilingFan")?e.ceilingFan:void 0,centralHeating:n.exists(e,"centralHeating")?e.centralHeating:void 0,dishwasher:n.exists(e,"dishwasher")?e.dishwasher:void 0,walkInCloset:n.exists(e,"walkInCloset")?e.walkInCloset:void 0,microwave:n.exists(e,"microwave")?e.microwave:void 0,hardwoodFloors:n.exists(e,"hardwoodFloors")?e.hardwoodFloors:void 0,carpet:n.exists(e,"carpet")?e.carpet:void 0,highCeilings:n.exists(e,"highCeilings")?e.highCeilings:void 0,floorToCeilingWindows:n.exists(e,"floorToCeilingWindows")?e.floorToCeilingWindows:void 0,fireplace:n.exists(e,"fireplace")?e.fireplace:void 0,exposure:n.exists(e,"exposure")?e.exposure:void 0,view:n.exists(e,"view")?e.view:void 0,viewDescription:n.exists(e,"viewDescription")?e.viewDescription:void 0,assignedParking:n.exists(e,"assignedParking")?e.assignedParking:void 0,privateOutDoorSpace:n.exists(e,"privateOutDoorSpace")?e.privateOutDoorSpace:void 0,incentive:n.exists(e,"incentive")?e.incentive:void 0,notes:n.exists(e,"notes")?e.notes:void 0,brokerUnitDescription:n.exists(e,"brokerUnitDescription")?e.brokerUnitDescription:void 0,brokerFeeStructure:n.exists(e,"brokerFeeStructure")?e.brokerFeeStructure:void 0,defaultUnitCurrentAvailabilities:n.exists(e,"defaultUnitCurrentAvailabilities")?e.defaultUnitCurrentAvailabilities:void 0,building:n.exists(e,"building")?o.BuildingDetailsFromJSON(e.building):void 0,numberOfAvailableUnits:n.exists(e,"numberOfAvailableUnits")?e.numberOfAvailableUnits:void 0,rent:n.exists(e,"rent")?e.rent:void 0,grossRent:n.exists(e,"grossRent")?e.grossRent:void 0,brokerNetRent:n.exists(e,"brokerNetRent")?e.brokerNetRent:void 0,squareFootage:n.exists(e,"squareFootage")?e.squareFootage:void 0,floor:n.exists(e,"floor")?e.floor:void 0,maxRent:n.exists(e,"maxRent")?e.maxRent:void 0,maxGrossRent:n.exists(e,"maxGrossRent")?e.maxGrossRent:void 0,maxBrokerNetRent:n.exists(e,"maxBrokerNetRent")?e.maxBrokerNetRent:void 0,maxSquareFootage:n.exists(e,"maxSquareFootage")?e.maxSquareFootage:void 0,maxFloor:n.exists(e,"maxFloor")?e.maxFloor:void 0,complexId:n.exists(e,"complexId")?e.complexId:void 0,alternativeUnitNumbers:n.exists(e,"alternativeUnitNumbers")?e.alternativeUnitNumbers:void 0,externalId:n.exists(e,"externalId")?e.externalId:void 0,alternativeBuildingCrmId:n.exists(e,"alternativeBuildingCrmId")?e.alternativeBuildingCrmId:void 0,externalFloorPlanDescriptionId:n.exists(e,"externalFloorPlanDescriptionId")?e.externalFloorPlanDescriptionId:void 0,walkinUrl:n.exists(e,"walkinUrl")?e.walkinUrl:void 0,marketRateUnit:n.exists(e,"marketRateUnit")?e.marketRateUnit:void 0,_new:n.exists(e,"new")?e.new:void 0}}t.UnitDetailsFromJSON=function(e){return a(e)},t.UnitDetailsFromJSONTyped=a,t.UnitDetailsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,timeCreated:void 0===e.timeCreated?void 0:e.timeCreated.toISOString(),active:e.active,unitNumber:e.unitNumber,description:e.description,dateAvailable:void 0===e.dateAvailable?void 0:e.dateAvailable.toISOString(),firstShowingDate:void 0===e.firstShowingDate?void 0:e.firstShowingDate.toISOString(),applicationStatus:e.applicationStatus,availabilityStage:e.availabilityStage,viewingTimes:e.viewingTimes,tenantOccupied:e.tenantOccupied,openHouse:void 0===e.openHouse?void 0:e.openHouse.map(r.AppointmentHoursToJSON),minLeaseTerm:e.minLeaseTerm,maxLeaseTerm:e.maxLeaseTerm,floorplanLink:e.floorplanLink,floorplanFileType:e.floorplanFileType,applicationUrl:e.applicationUrl,numberOfBedrooms:e.numberOfBedrooms,numberOfBathrooms:e.numberOfBathrooms,totalRooms:e.totalRooms,layout:e.layout,layoutDescription:e.layoutDescription,convertible:e.convertible,partitionTypesAllowed:e.partitionTypesAllowed,furnished:e.furnished,furnishedAddedPrice:e.furnishedAddedPrice,laundryInUnit:e.laundryInUnit,windowAirConditioning:e.windowAirConditioning,centralAirConditioning:e.centralAirConditioning,ceilingFan:e.ceilingFan,centralHeating:e.centralHeating,dishwasher:e.dishwasher,walkInCloset:e.walkInCloset,microwave:e.microwave,hardwoodFloors:e.hardwoodFloors,carpet:e.carpet,highCeilings:e.highCeilings,floorToCeilingWindows:e.floorToCeilingWindows,fireplace:e.fireplace,exposure:e.exposure,view:e.view,viewDescription:e.viewDescription,assignedParking:e.assignedParking,privateOutDoorSpace:e.privateOutDoorSpace,incentive:e.incentive,notes:e.notes,brokerUnitDescription:e.brokerUnitDescription,brokerFeeStructure:e.brokerFeeStructure,defaultUnitCurrentAvailabilities:e.defaultUnitCurrentAvailabilities,building:o.BuildingDetailsToJSON(e.building),numberOfAvailableUnits:e.numberOfAvailableUnits,rent:e.rent,grossRent:e.grossRent,brokerNetRent:e.brokerNetRent,squareFootage:e.squareFootage,floor:e.floor,maxRent:e.maxRent,maxGrossRent:e.maxGrossRent,maxBrokerNetRent:e.maxBrokerNetRent,maxSquareFootage:e.maxSquareFootage,maxFloor:e.maxFloor,complexId:e.complexId,alternativeUnitNumbers:e.alternativeUnitNumbers,externalId:e.externalId,alternativeBuildingCrmId:e.alternativeBuildingCrmId,externalFloorPlanDescriptionId:e.externalFloorPlanDescriptionId,walkinUrl:e.walkinUrl,marketRateUnit:e.marketRateUnit,new:e._new}}},1161:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnitIncentiveToJSON=t.UnitIncentiveFromJSONTyped=t.UnitIncentiveFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,typeOfIncentive:n.exists(e,"typeOfIncentive")?e.typeOfIncentive:void 0,noFee:n.exists(e,"noFee")?e.noFee:void 0,numberFreeMonths:n.exists(e,"numberFreeMonths")?e.numberFreeMonths:void 0,leaseLength:n.exists(e,"leaseLength")?e.leaseLength:void 0,typeOfCustomerItAppliesTo:n.exists(e,"typeOfCustomerItAppliesTo")?e.typeOfCustomerItAppliesTo:void 0,numberOfMonthsOwnerPays:n.exists(e,"numberOfMonthsOwnerPays")?e.numberOfMonthsOwnerPays:void 0,originalIncentiveString:n.exists(e,"originalIncentiveString")?e.originalIncentiveString:void 0,active:n.exists(e,"active")?e.active:void 0,incentiveInformationString:n.exists(e,"incentiveInformationString")?e.incentiveInformationString:void 0,asJson:n.exists(e,"asJson")?e.asJson:void 0,valid:n.exists(e,"valid")?e.valid:void 0}}t.UnitIncentiveFromJSON=function(e){return r(e)},t.UnitIncentiveFromJSONTyped=r,t.UnitIncentiveToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,unitId:e.unitId,typeOfIncentive:e.typeOfIncentive,noFee:e.noFee,numberFreeMonths:e.numberFreeMonths,leaseLength:e.leaseLength,typeOfCustomerItAppliesTo:e.typeOfCustomerItAppliesTo,numberOfMonthsOwnerPays:e.numberOfMonthsOwnerPays,originalIncentiveString:e.originalIncentiveString,active:e.active,incentiveInformationString:e.incentiveInformationString,asJson:e.asJson,valid:e.valid}}},5239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnitIncentiveResultToJSON=t.UnitIncentiveResultFromJSONTyped=t.UnitIncentiveResultFromJSON=void 0;var n=i(296),r=i(1161);function o(e,t){return null==e?e:{tenantUnitIncentives:n.exists(e,"tenantUnitIncentives")?e.tenantUnitIncentives.map(r.UnitIncentiveFromJSON):void 0,brokerUnitIncentives:n.exists(e,"brokerUnitIncentives")?e.brokerUnitIncentives.map(r.UnitIncentiveFromJSON):void 0}}t.UnitIncentiveResultFromJSON=function(e){return o(e)},t.UnitIncentiveResultFromJSONTyped=o,t.UnitIncentiveResultToJSON=function(e){if(void 0!==e)return null===e?null:{tenantUnitIncentives:void 0===e.tenantUnitIncentives?void 0:e.tenantUnitIncentives.map(r.UnitIncentiveToJSON),brokerUnitIncentives:void 0===e.brokerUnitIncentives?void 0:e.brokerUnitIncentives.map(r.UnitIncentiveToJSON)}}},3842:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateEmailsRequestToJSON=t.UpdateEmailsRequestFromJSONTyped=t.UpdateEmailsRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{emails:n.exists(e,"emails")?e.emails:void 0}}t.UpdateEmailsRequestFromJSON=function(e){return r(e)},t.UpdateEmailsRequestFromJSONTyped=r,t.UpdateEmailsRequestToJSON=function(e){if(void 0!==e)return null===e?null:{emails:e.emails}}},9908:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateScriptRequestToJSON=t.UpdateScriptRequestFromJSONTyped=t.UpdateScriptRequestFromJSON=t.UpdateScriptRequestHandoffIntentStateEnum=t.UpdateScriptRequestMediaEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{organizationId:o.exists(e,"organizationId")?e.organizationId:void 0,media:e.media,category:e.category,subIntent:o.exists(e,"subIntent")?e.subIntent:void 0,text:e.text,handoffIntentState:o.exists(e,"handoffIntentState")?e.handoffIntentState:void 0,communityId:o.exists(e,"communityId")?e.communityId:void 0}}(r=t.UpdateScriptRequestMediaEnum||(t.UpdateScriptRequestMediaEnum={})).Both="BOTH",r.Email="EMAIL",r.Sms="SMS",(n=t.UpdateScriptRequestHandoffIntentStateEnum||(t.UpdateScriptRequestHandoffIntentStateEnum={})).None="NONE",n.YellowStatus="YELLOW_STATUS",n.RedAlertSend="RED_ALERT_SEND",n.RedAlertDoNotSend="RED_ALERT_DO_NOT_SEND",t.UpdateScriptRequestFromJSON=function(e){return a(e)},t.UpdateScriptRequestFromJSONTyped=a,t.UpdateScriptRequestToJSON=function(e){if(void 0!==e)return null===e?null:{organizationId:e.organizationId,media:e.media,category:e.category,subIntent:e.subIntent,text:e.text,handoffIntentState:e.handoffIntentState,communityId:e.communityId}}},5530:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UpsertDialogueScriptRequestToJSON=t.UpsertDialogueScriptRequestFromJSONTyped=t.UpsertDialogueScriptRequestFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,name:n.exists(e,"name")?e.name:void 0,subintent:n.exists(e,"subintent")?e.subintent:void 0,text:n.exists(e,"text")?e.text:void 0}}t.UpsertDialogueScriptRequestFromJSON=function(e){return r(e)},t.UpsertDialogueScriptRequestFromJSONTyped=r,t.UpsertDialogueScriptRequestToJSON=function(e){if(void 0!==e)return null===e?null:{buildingId:e.buildingId,organizationId:e.organizationId,name:e.name,subintent:e.subintent,text:e.text}}},9256:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.V2BuildingMigrationStatusToJSON=t.V2BuildingMigrationStatusFromJSONTyped=t.V2BuildingMigrationStatusFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,buildingName:n.exists(e,"buildingName")?e.buildingName:void 0,userId:n.exists(e,"userId")?e.userId:void 0,organizationId:n.exists(e,"organizationId")?e.organizationId:void 0,organizationName:n.exists(e,"organizationName")?e.organizationName:void 0,scope:n.exists(e,"scope")?e.scope:void 0,timeSeeded:n.exists(e,"timeSeeded")?new Date(e.timeSeeded):void 0,timeReadyToConfigure:n.exists(e,"timeReadyToConfigure")?new Date(e.timeReadyToConfigure):void 0,timeConfigured:n.exists(e,"timeConfigured")?new Date(e.timeConfigured):void 0,timeWentLive:n.exists(e,"timeWentLive")?new Date(e.timeWentLive):void 0}}t.V2BuildingMigrationStatusFromJSON=function(e){return r(e)},t.V2BuildingMigrationStatusFromJSONTyped=r,t.V2BuildingMigrationStatusToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,buildingName:e.buildingName,userId:e.userId,organizationId:e.organizationId,organizationName:e.organizationName,scope:e.scope,timeSeeded:void 0===e.timeSeeded?void 0:e.timeSeeded.toISOString(),timeReadyToConfigure:void 0===e.timeReadyToConfigure?void 0:e.timeReadyToConfigure.toISOString(),timeConfigured:void 0===e.timeConfigured?void 0:e.timeConfigured.toISOString(),timeWentLive:void 0===e.timeWentLive?void 0:e.timeWentLive.toISOString()}}},2288:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateCredentialsRequestToJSON=t.ValidateCredentialsRequestFromJSONTyped=t.ValidateCredentialsRequestFromJSON=t.ValidateCredentialsRequestIntegrationValidationTypeEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{validationName:e.validationName,integrationValidationType:e.integrationValidationType,buildingName:e.buildingName,streetAddress:e.streetAddress,username:r.exists(e,"username")?e.username:void 0,password:r.exists(e,"password")?e.password:void 0,submitterEmail:e.submitterEmail,submitterOrgId:e.submitterOrgId,marketingApiKey:r.exists(e,"marketingApiKey")?e.marketingApiKey:void 0,databaseName:r.exists(e,"databaseName")?e.databaseName:void 0,serverName:r.exists(e,"serverName")?e.serverName:void 0,voyagerUrl:r.exists(e,"voyagerUrl")?e.voyagerUrl:void 0,companyCode:r.exists(e,"companyCode")?e.companyCode:void 0,connectionUrl:r.exists(e,"connectionUrl")?e.connectionUrl:void 0,vendorApiToken:r.exists(e,"vendorApiToken")?e.vendorApiToken:void 0,entrataDomain:r.exists(e,"entrataDomain")?e.entrataDomain:void 0}}(n=t.ValidateCredentialsRequestIntegrationValidationTypeEnum||(t.ValidateCredentialsRequestIntegrationValidationTypeEnum={})).Voyager="VOYAGER",n.VoyagerPlusRentcafeMarketingApiKeyAndVendorApiToken="VOYAGER_PLUS_RENTCAFE_MARKETING_API_KEY_AND_VENDOR_API_TOKEN",n.VoyagerPlusRentcafeVendorApiToken="VOYAGER_PLUS_RENTCAFE_VENDOR_API_TOKEN",n.Entrata="ENTRATA",t.ValidateCredentialsRequestFromJSON=function(e){return o(e)},t.ValidateCredentialsRequestFromJSONTyped=o,t.ValidateCredentialsRequestToJSON=function(e){if(void 0!==e)return null===e?null:{validationName:e.validationName,integrationValidationType:e.integrationValidationType,buildingName:e.buildingName,streetAddress:e.streetAddress,username:e.username,password:e.password,submitterEmail:e.submitterEmail,submitterOrgId:e.submitterOrgId,marketingApiKey:e.marketingApiKey,databaseName:e.databaseName,serverName:e.serverName,voyagerUrl:e.voyagerUrl,companyCode:e.companyCode,connectionUrl:e.connectionUrl,vendorApiToken:e.vendorApiToken,entrataDomain:e.entrataDomain}}},3029:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateCredentialsResponseToJSON=t.ValidateCredentialsResponseFromJSONTyped=t.ValidateCredentialsResponseFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{message:e.message,failed:e.failed,errorMessages:n.exists(e,"errorMessages")?e.errorMessages:void 0}}t.ValidateCredentialsResponseFromJSON=function(e){return r(e)},t.ValidateCredentialsResponseFromJSONTyped=r,t.ValidateCredentialsResponseToJSON=function(e){if(void 0!==e)return null===e?null:{message:e.message,failed:e.failed,errorMessages:e.errorMessages}}},5454:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WalkInAndShowActionDtoToJSON=t.WalkInAndShowActionDtoFromJSONTyped=t.WalkInAndShowActionDtoFromJSON=void 0;var n=i(296),r=i(5007);function o(e,t){return null==e?e:{userId:n.exists(e,"userId")?e.userId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,guestCard:n.exists(e,"guestCard")?r.EliseGuestCardDtoFromJSON(e.guestCard):void 0}}t.WalkInAndShowActionDtoFromJSON=function(e){return o(e)},t.WalkInAndShowActionDtoFromJSONTyped=o,t.WalkInAndShowActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{userId:e.userId,buildingId:e.buildingId,unitId:e.unitId,guestCard:r.EliseGuestCardDtoToJSON(e.guestCard)}}},2449:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WalkInOrCallActionDtoToJSON=t.WalkInOrCallActionDtoFromJSONTyped=t.WalkInOrCallActionDtoFromJSON=void 0;var n=i(296),r=i(5007);function o(e,t){return null==e?e:{userId:n.exists(e,"userId")?e.userId:void 0,buildingId:n.exists(e,"buildingId")?e.buildingId:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,guestCard:n.exists(e,"guestCard")?r.EliseGuestCardDtoFromJSON(e.guestCard):void 0}}t.WalkInOrCallActionDtoFromJSON=function(e){return o(e)},t.WalkInOrCallActionDtoFromJSONTyped=o,t.WalkInOrCallActionDtoToJSON=function(e){if(void 0!==e)return null===e?null:{userId:e.userId,buildingId:e.buildingId,unitId:e.unitId,guestCard:r.EliseGuestCardDtoToJSON(e.guestCard)}}},2242:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WebReportingDashboardResponseToJSON=t.WebReportingDashboardResponseFromJSONTyped=t.WebReportingDashboardResponseFromJSON=void 0;var n=i(296),r=i(1961);function o(e,t){return null==e?e:{dataGroupedByTimePeriod:e.dataGroupedByTimePeriod,afterHoursDataGroupedByTimePeriod:e.afterHoursDataGroupedByTimePeriod,marketingSourceDataGroupedByTimePeriod:e.marketingSourceDataGroupedByTimePeriod,afterHoursMarketingSourceDataGroupedByTimePeriod:e.afterHoursMarketingSourceDataGroupedByTimePeriod,buildingNameMap:e.buildingNameMap,aiNameMap:e.aiNameMap,buildingToAiMap:n.mapValues(e.buildingToAiMap,r.AiAssistantStubInfoFromJSON)}}t.WebReportingDashboardResponseFromJSON=function(e){return o(e)},t.WebReportingDashboardResponseFromJSONTyped=o,t.WebReportingDashboardResponseToJSON=function(e){if(void 0!==e)return null===e?null:{dataGroupedByTimePeriod:e.dataGroupedByTimePeriod,afterHoursDataGroupedByTimePeriod:e.afterHoursDataGroupedByTimePeriod,marketingSourceDataGroupedByTimePeriod:e.marketingSourceDataGroupedByTimePeriod,afterHoursMarketingSourceDataGroupedByTimePeriod:e.afterHoursMarketingSourceDataGroupedByTimePeriod,buildingNameMap:e.buildingNameMap,aiNameMap:e.aiNameMap,buildingToAiMap:n.mapValues(e.buildingToAiMap,r.AiAssistantStubInfoToJSON)}}},6570:(e,t)=>{function i(e,t){return null==e?e:{id:e.id,buildingId:e.buildingId,email:e.email}}Object.defineProperty(t,"__esModule",{value:!0}),t.WeeklyReportEmailToJSON=t.WeeklyReportEmailFromJSONTyped=t.WeeklyReportEmailFromJSON=void 0,t.WeeklyReportEmailFromJSON=function(e){return i(e)},t.WeeklyReportEmailFromJSONTyped=i,t.WeeklyReportEmailToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,buildingId:e.buildingId,email:e.email}}},4675:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListConfigToJSON=t.WhiteListConfigFromJSONTyped=t.WhiteListConfigFromJSON=t.WhiteListConfigStatusEnum=t.WhiteListConfigCurrentWhiteListStepEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{id:o.exists(e,"id")?e.id:void 0,testingName:o.exists(e,"testingName")?e.testingName:void 0,buildingId:o.exists(e,"buildingId")?e.buildingId:void 0,whiteListingEmail:o.exists(e,"whiteListingEmail")?e.whiteListingEmail:void 0,timeInitiated:o.exists(e,"timeInitiated")?new Date(e.timeInitiated):void 0,lastUpdated:o.exists(e,"lastUpdated")?new Date(e.lastUpdated):void 0,currentWhiteListStep:o.exists(e,"currentWhiteListStep")?e.currentWhiteListStep:void 0,contextId:o.exists(e,"contextId")?e.contextId:void 0,mcId:o.exists(e,"mcId")?e.mcId:void 0,status:o.exists(e,"status")?e.status:void 0,requestedTime:o.exists(e,"requestedTime")?e.requestedTime:void 0,confirmedTime:o.exists(e,"confirmedTime")?e.confirmedTime:void 0,eventId:o.exists(e,"eventId")?e.eventId:void 0,failureReason:o.exists(e,"failureReason")?e.failureReason:void 0}}(r=t.WhiteListConfigCurrentWhiteListStepEnum||(t.WhiteListConfigCurrentWhiteListStepEnum={})).Initiated="INITIATED",r.ConfigureSettings="CONFIGURE_SETTINGS",r.TimeZoneVerification="TIME_ZONE_VERIFICATION",r.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",r.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",r.AddAitsToBuilding="ADD_AITS_TO_BUILDING",r.RerunAvailabilities="RERUN_AVAILABILITIES",r.InsertGuestCard="INSERT_GUEST_CARD",r.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",r.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",r.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",r.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",r.AppointmentScheduled="APPOINTMENT_SCHEDULED",r.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",r.RequestCancelTour="REQUEST_CANCEL_TOUR",r.AppointmentCanceled="APPOINTMENT_CANCELED",r.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD",(n=t.WhiteListConfigStatusEnum||(t.WhiteListConfigStatusEnum={})).InProgress="IN_PROGRESS",n.Complete="COMPLETE",n.Error="ERROR",n.Cancelled="CANCELLED",t.WhiteListConfigFromJSON=function(e){return a(e)},t.WhiteListConfigFromJSONTyped=a,t.WhiteListConfigToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,testingName:e.testingName,buildingId:e.buildingId,whiteListingEmail:e.whiteListingEmail,timeInitiated:void 0===e.timeInitiated?void 0:e.timeInitiated.toISOString(),lastUpdated:void 0===e.lastUpdated?void 0:e.lastUpdated.toISOString(),currentWhiteListStep:e.currentWhiteListStep,contextId:e.contextId,mcId:e.mcId,status:e.status,requestedTime:e.requestedTime,confirmedTime:e.confirmedTime,eventId:e.eventId,failureReason:e.failureReason}}},3163:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListTestDtoToJSON=t.WhiteListTestDtoFromJSONTyped=t.WhiteListTestDtoFromJSON=t.WhiteListTestDtoLastFinishedStepEnum=t.WhiteListTestDtoStatusEnum=void 0;var n,r,o=i(296),a=i(8937);function s(e,t){return null==e?e:{configId:e.configId,buildingId:e.buildingId,buildingName:e.buildingName,timeInitiatedISO:new Date(e.timeInitiatedISO),lastUpdatedISO:new Date(e.lastUpdatedISO),status:e.status,lastFinishedStep:e.lastFinishedStep,whiteListTestStepDtos:e.whiteListTestStepDtos.map(a.WhiteListTestStepDtoFromJSON),emailUsedForTesting:o.exists(e,"emailUsedForTesting")?e.emailUsedForTesting:void 0,contextId:o.exists(e,"contextId")?e.contextId:void 0,mcId:o.exists(e,"mcId")?e.mcId:void 0}}(r=t.WhiteListTestDtoStatusEnum||(t.WhiteListTestDtoStatusEnum={})).InProgress="IN_PROGRESS",r.Complete="COMPLETE",r.Error="ERROR",r.Cancelled="CANCELLED",(n=t.WhiteListTestDtoLastFinishedStepEnum||(t.WhiteListTestDtoLastFinishedStepEnum={})).Initiated="INITIATED",n.ConfigureSettings="CONFIGURE_SETTINGS",n.TimeZoneVerification="TIME_ZONE_VERIFICATION",n.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",n.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",n.AddAitsToBuilding="ADD_AITS_TO_BUILDING",n.RerunAvailabilities="RERUN_AVAILABILITIES",n.InsertGuestCard="INSERT_GUEST_CARD",n.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",n.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",n.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",n.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",n.AppointmentScheduled="APPOINTMENT_SCHEDULED",n.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",n.RequestCancelTour="REQUEST_CANCEL_TOUR",n.AppointmentCanceled="APPOINTMENT_CANCELED",n.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD",t.WhiteListTestDtoFromJSON=function(e){return s(e)},t.WhiteListTestDtoFromJSONTyped=s,t.WhiteListTestDtoToJSON=function(e){if(void 0!==e)return null===e?null:{configId:e.configId,buildingId:e.buildingId,buildingName:e.buildingName,timeInitiatedISO:e.timeInitiatedISO.toISOString(),lastUpdatedISO:e.lastUpdatedISO.toISOString(),status:e.status,lastFinishedStep:e.lastFinishedStep,whiteListTestStepDtos:e.whiteListTestStepDtos.map(a.WhiteListTestStepDtoToJSON),emailUsedForTesting:e.emailUsedForTesting,contextId:e.contextId,mcId:e.mcId}}},8937:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListTestStepDtoToJSON=t.WhiteListTestStepDtoFromJSONTyped=t.WhiteListTestStepDtoFromJSON=t.WhiteListTestStepDtoStepEnum=void 0;var n,r=i(296);function o(e,t){return null==e?e:{displayText:e.displayText,step:e.step,orderInTest:e.orderInTest,failureReason:r.exists(e,"failureReason")?e.failureReason:void 0,warnings:r.exists(e,"warnings")?e.warnings:void 0,nextStep:r.exists(e,"nextStep")?e.nextStep:void 0,complete:r.exists(e,"complete")?e.complete:void 0}}(n=t.WhiteListTestStepDtoStepEnum||(t.WhiteListTestStepDtoStepEnum={})).Initiated="INITIATED",n.ConfigureSettings="CONFIGURE_SETTINGS",n.TimeZoneVerification="TIME_ZONE_VERIFICATION",n.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",n.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",n.AddAitsToBuilding="ADD_AITS_TO_BUILDING",n.RerunAvailabilities="RERUN_AVAILABILITIES",n.InsertGuestCard="INSERT_GUEST_CARD",n.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",n.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",n.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",n.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",n.AppointmentScheduled="APPOINTMENT_SCHEDULED",n.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",n.RequestCancelTour="REQUEST_CANCEL_TOUR",n.AppointmentCanceled="APPOINTMENT_CANCELED",n.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD",t.WhiteListTestStepDtoFromJSON=function(e){return o(e)},t.WhiteListTestStepDtoFromJSONTyped=o,t.WhiteListTestStepDtoToJSON=function(e){if(void 0!==e)return null===e?null:{displayText:e.displayText,step:e.step,orderInTest:e.orderInTest,failureReason:e.failureReason,warnings:e.warnings,nextStep:e.nextStep,complete:e.complete}}},2683:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListingAdditionalInfoToJSON=t.WhiteListingAdditionalInfoFromJSONTyped=t.WhiteListingAdditionalInfoFromJSON=void 0;var n=i(296),r=i(8442),o=i(7571);function a(e,t){return null==e?e:{leasingAgents:e.leasingAgents.map(r.ExternalBuildingAgentFromJSON),sources:e.sources,rawGuestCard:n.exists(e,"rawGuestCard")?e.rawGuestCard:void 0,messages:e.messages.map(o.XagacityEmailFromJSON)}}t.WhiteListingAdditionalInfoFromJSON=function(e){return a(e)},t.WhiteListingAdditionalInfoFromJSONTyped=a,t.WhiteListingAdditionalInfoToJSON=function(e){if(void 0!==e)return null===e?null:{leasingAgents:e.leasingAgents.map(r.ExternalBuildingAgentToJSON),sources:e.sources,rawGuestCard:e.rawGuestCard,messages:e.messages.map(o.XagacityEmailToJSON)}}},4145:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WhiteListingExecutionResultToJSON=t.WhiteListingExecutionResultFromJSONTyped=t.WhiteListingExecutionResultFromJSON=t.WhiteListingExecutionResultStatusAfterStepEnum=t.WhiteListingExecutionResultLastStepCompletedEnum=void 0;var n,r,o=i(296);function a(e,t){return null==e?e:{didFail:e.didFail,failureReason:o.exists(e,"failureReason")?e.failureReason:void 0,lastStepCompleted:e.lastStepCompleted,statusAfterStep:e.statusAfterStep,configId:e.configId}}(r=t.WhiteListingExecutionResultLastStepCompletedEnum||(t.WhiteListingExecutionResultLastStepCompletedEnum={})).Initiated="INITIATED",r.ConfigureSettings="CONFIGURE_SETTINGS",r.TimeZoneVerification="TIME_ZONE_VERIFICATION",r.ConfirmAndOrFixApiVersion="CONFIRM_AND_OR_FIX_API_VERSION",r.ActivateBuildingAutoSend="ACTIVATE_BUILDING_AUTO_SEND",r.AddAitsToBuilding="ADD_AITS_TO_BUILDING",r.RerunAvailabilities="RERUN_AVAILABILITIES",r.InsertGuestCard="INSERT_GUEST_CARD",r.InitialEmailReceived="INITIAL_EMAIL_RECEIVED",r.RequestTourDayEmailSent="REQUEST_TOUR_DAY_EMAIL_SENT",r.AiSentTimeSuggestion="AI_SENT_TIME_SUGGESTION",r.AcceptTourTimeEmailSent="ACCEPT_TOUR_TIME_EMAIL_SENT",r.AppointmentScheduled="APPOINTMENT_SCHEDULED",r.AppointmentOnGuestCard="APPOINTMENT_ON_GUEST_CARD",r.RequestCancelTour="REQUEST_CANCEL_TOUR",r.AppointmentCanceled="APPOINTMENT_CANCELED",r.AppointmentRemovedFromGuestCard="APPOINTMENT_REMOVED_FROM_GUEST_CARD",(n=t.WhiteListingExecutionResultStatusAfterStepEnum||(t.WhiteListingExecutionResultStatusAfterStepEnum={})).InProgress="IN_PROGRESS",n.Complete="COMPLETE",n.Error="ERROR",n.Cancelled="CANCELLED",t.WhiteListingExecutionResultFromJSON=function(e){return a(e)},t.WhiteListingExecutionResultFromJSONTyped=a,t.WhiteListingExecutionResultToJSON=function(e){if(void 0!==e)return null===e?null:{didFail:e.didFail,failureReason:e.failureReason,lastStepCompleted:e.lastStepCompleted,statusAfterStep:e.statusAfterStep,configId:e.configId}}},7571:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailToJSON=t.XagacityEmailFromJSONTyped=t.XagacityEmailFromJSON=void 0;var n=i(296),r=i(1234),o=i(1057),a=i(4891);function s(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,clientEmail:n.exists(e,"clientEmail")?e.clientEmail:void 0,leadEmail:n.exists(e,"leadEmail")?e.leadEmail:void 0,sender:n.exists(e,"sender")?e.sender:void 0,recipient:n.exists(e,"recipient")?e.recipient:void 0,marketplace:n.exists(e,"marketplace")?e.marketplace:void 0,timeSent:n.exists(e,"timeSent")?new Date(e.timeSent):void 0,leadId:n.exists(e,"leadId")?e.leadId:void 0,subject:n.exists(e,"subject")?e.subject:void 0,messageBody:n.exists(e,"messageBody")?e.messageBody:void 0,messageId:n.exists(e,"messageId")?e.messageId:void 0,replyTo:n.exists(e,"replyTo")?e.replyTo:void 0,senderClean:n.exists(e,"senderClean")?e.senderClean:void 0,recipientClean:n.exists(e,"recipientClean")?e.recipientClean:void 0,replyToClean:n.exists(e,"replyToClean")?e.replyToClean:void 0,ccRecipient:n.exists(e,"ccRecipient")?e.ccRecipient:void 0,bccRecipient:n.exists(e,"bccRecipient")?e.bccRecipient:void 0,toRecipients:n.exists(e,"toRecipients")?e.toRecipients:void 0,labels:n.exists(e,"labels")?e.labels:void 0,unread:n.exists(e,"unread")?e.unread:void 0,gmailMessageId:n.exists(e,"gmailMessageId")?e.gmailMessageId:void 0,gmailThreadId:n.exists(e,"gmailThreadId")?e.gmailThreadId:void 0,isItProcessed:n.exists(e,"isItProcessed")?e.isItProcessed:void 0,isFalsePositive:n.exists(e,"isFalsePositive")?e.isFalsePositive:void 0,htmlEmail:n.exists(e,"htmlEmail")?e.htmlEmail:void 0,strippedMessage:n.exists(e,"strippedMessage")?e.strippedMessage:void 0,isForward:n.exists(e,"isForward")?e.isForward:void 0,isFirstContact:n.exists(e,"isFirstContact")?e.isFirstContact:void 0,followUpCount:n.exists(e,"followUpCount")?e.followUpCount:void 0,emailPulled:n.exists(e,"emailPulled")?e.emailPulled:void 0,automatedResponseStatus:n.exists(e,"automatedResponseStatus")?e.automatedResponseStatus:void 0,attachments:n.exists(e,"attachments")?e.attachments.map(r.AttachmentFromJSON):void 0,manuallyTagged:n.exists(e,"manuallyTagged")?e.manuallyTagged:void 0,requestsSpecificViewingTime:n.exists(e,"requestsSpecificViewingTime")?e.requestsSpecificViewingTime:void 0,mentionsSpecificAddress:n.exists(e,"mentionsSpecificAddress")?e.mentionsSpecificAddress:void 0,isAddressEntityTagged:n.exists(e,"isAddressEntityTagged")?e.isAddressEntityTagged:void 0,addressPulledFromComments:n.exists(e,"addressPulledFromComments")?e.addressPulledFromComments:void 0,mentionsHousingVoucher:n.exists(e,"mentionsHousingVoucher")?e.mentionsHousingVoucher:void 0,isBrokerLead:n.exists(e,"isBrokerLead")?e.isBrokerLead:void 0,snippet:n.exists(e,"snippet")?e.snippet:void 0,newThread:n.exists(e,"newThread")?e.newThread:void 0,emailHeader:n.exists(e,"emailHeader")?e.emailHeader:void 0,inReplyToHeader:n.exists(e,"inReplyToHeader")?e.inReplyToHeader:void 0,intents:n.exists(e,"intents")?e.intents.map(o.EliseMessageIntentFromJSON):void 0,attachFloorPlan:n.exists(e,"attachFloorPlan")?e.attachFloorPlan:void 0,attachFiles:n.exists(e,"attachFiles")?e.attachFiles:void 0,unitId:n.exists(e,"unitId")?e.unitId:void 0,responseTemplate:n.exists(e,"responseTemplate")?e.responseTemplate:void 0,shouldCollapseThread:n.exists(e,"shouldCollapseThread")?e.shouldCollapseThread:void 0,references:n.exists(e,"references")?e.references:void 0,actualSenderType:n.exists(e,"actualSenderType")?e.actualSenderType:void 0,tempField:n.exists(e,"tempField")?e.tempField:void 0,requiresComposingAReply:n.exists(e,"requiresComposingAReply")?e.requiresComposingAReply:void 0,messageIdWeRespondedTo:n.exists(e,"messageIdWeRespondedTo")?e.messageIdWeRespondedTo:void 0,externalIdRelatedToEmail:n.exists(e,"externalIdRelatedToEmail")?e.externalIdRelatedToEmail:void 0,aitWhoReviewed:n.exists(e,"aitWhoReviewed")?e.aitWhoReviewed:void 0,aitWhoDrafted:n.exists(e,"aitWhoDrafted")?e.aitWhoDrafted:void 0,draftSubmissionIsIncorrect:n.exists(e,"draftSubmissionIsIncorrect")?e.draftSubmissionIsIncorrect:void 0,draftedResponseId:n.exists(e,"draftedResponseId")?e.draftedResponseId:void 0,draftedResponseIncorrectReason:n.exists(e,"draftedResponseIncorrectReason")?e.draftedResponseIncorrectReason:void 0,aitSelectedIntents:n.exists(e,"aitSelectedIntents")?e.aitSelectedIntents:void 0,noNeedForNotificationFlag:n.exists(e,"noNeedForNotificationFlag")?e.noNeedForNotificationFlag:void 0,traineeEmail:n.exists(e,"traineeEmail")?e.traineeEmail:void 0,mimeMessage:n.exists(e,"mimeMessage")?a.XagacityEmailMimeMessageFromJSON(e.mimeMessage):void 0,stopForwarding:n.exists(e,"stopForwarding")?e.stopForwarding:void 0,cleanMessage:n.exists(e,"cleanMessage")?e.cleanMessage:void 0,trackExternalId:n.exists(e,"trackExternalId")?e.trackExternalId:void 0,externalMarketingSource:n.exists(e,"externalMarketingSource")?e.externalMarketingSource:void 0,contextId:n.exists(e,"contextId")?e.contextId:void 0,bccrecipientAsString:n.exists(e,"bccrecipientAsString")?e.bccrecipientAsString:void 0,toRecipientsFromString:n.exists(e,"toRecipientsFromString")?e.toRecipientsFromString:void 0,ccRecipientsFromString:n.exists(e,"ccRecipientsFromString")?e.ccRecipientsFromString:void 0,bccRecipientsFromString:n.exists(e,"bccRecipientsFromString")?e.bccRecipientsFromString:void 0,labelsFromDatabase:n.exists(e,"labelsFromDatabase")?e.labelsFromDatabase:void 0,recipientsList:n.exists(e,"recipientsList")?e.recipientsList:void 0,trashed:n.exists(e,"trashed")?e.trashed:void 0,draft:n.exists(e,"draft")?e.draft:void 0,torecipientAsString:n.exists(e,"torecipientAsString")?e.torecipientAsString:void 0,ccrecipientAsString:n.exists(e,"ccrecipientAsString")?e.ccrecipientAsString:void 0}}t.XagacityEmailFromJSON=function(e){return s(e)},t.XagacityEmailFromJSONTyped=s,t.XagacityEmailToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,clientEmail:e.clientEmail,leadEmail:e.leadEmail,sender:e.sender,recipient:e.recipient,marketplace:e.marketplace,timeSent:void 0===e.timeSent?void 0:e.timeSent.toISOString(),leadId:e.leadId,subject:e.subject,messageBody:e.messageBody,messageId:e.messageId,replyTo:e.replyTo,senderClean:e.senderClean,recipientClean:e.recipientClean,replyToClean:e.replyToClean,ccRecipient:e.ccRecipient,bccRecipient:e.bccRecipient,toRecipients:e.toRecipients,labels:e.labels,unread:e.unread,gmailMessageId:e.gmailMessageId,gmailThreadId:e.gmailThreadId,isItProcessed:e.isItProcessed,isFalsePositive:e.isFalsePositive,htmlEmail:e.htmlEmail,strippedMessage:e.strippedMessage,isForward:e.isForward,isFirstContact:e.isFirstContact,followUpCount:e.followUpCount,emailPulled:e.emailPulled,automatedResponseStatus:e.automatedResponseStatus,attachments:void 0===e.attachments?void 0:e.attachments.map(r.AttachmentToJSON),manuallyTagged:e.manuallyTagged,requestsSpecificViewingTime:e.requestsSpecificViewingTime,mentionsSpecificAddress:e.mentionsSpecificAddress,isAddressEntityTagged:e.isAddressEntityTagged,addressPulledFromComments:e.addressPulledFromComments,mentionsHousingVoucher:e.mentionsHousingVoucher,isBrokerLead:e.isBrokerLead,snippet:e.snippet,newThread:e.newThread,emailHeader:e.emailHeader,inReplyToHeader:e.inReplyToHeader,intents:void 0===e.intents?void 0:e.intents.map(o.EliseMessageIntentToJSON),attachFloorPlan:e.attachFloorPlan,attachFiles:e.attachFiles,unitId:e.unitId,responseTemplate:e.responseTemplate,shouldCollapseThread:e.shouldCollapseThread,references:e.references,actualSenderType:e.actualSenderType,tempField:e.tempField,requiresComposingAReply:e.requiresComposingAReply,messageIdWeRespondedTo:e.messageIdWeRespondedTo,externalIdRelatedToEmail:e.externalIdRelatedToEmail,aitWhoReviewed:e.aitWhoReviewed,aitWhoDrafted:e.aitWhoDrafted,draftSubmissionIsIncorrect:e.draftSubmissionIsIncorrect,draftedResponseId:e.draftedResponseId,draftedResponseIncorrectReason:e.draftedResponseIncorrectReason,aitSelectedIntents:e.aitSelectedIntents,noNeedForNotificationFlag:e.noNeedForNotificationFlag,traineeEmail:e.traineeEmail,mimeMessage:a.XagacityEmailMimeMessageToJSON(e.mimeMessage),stopForwarding:e.stopForwarding,cleanMessage:e.cleanMessage,trackExternalId:e.trackExternalId,externalMarketingSource:e.externalMarketingSource,contextId:e.contextId,bccrecipientAsString:e.bccrecipientAsString,toRecipientsFromString:e.toRecipientsFromString,ccRecipientsFromString:e.ccRecipientsFromString,bccRecipientsFromString:e.bccRecipientsFromString,labelsFromDatabase:e.labelsFromDatabase,recipientsList:e.recipientsList,trashed:e.trashed,draft:e.draft,torecipientAsString:e.torecipientAsString,ccrecipientAsString:e.ccrecipientAsString}}},4891:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageToJSON=t.XagacityEmailMimeMessageFromJSONTyped=t.XagacityEmailMimeMessageFromJSON=void 0;var n=i(296),r=i(2294),o=i(8644),a=i(2653),s=i(7052),l=i(3645);function u(e,t){return null==e?e:{expunged:n.exists(e,"expunged")?e.expunged:void 0,folder:n.exists(e,"folder")?r.XagacityEmailMimeMessageFolderFromJSON(e.folder):void 0,session:n.exists(e,"session")?l.XagacityEmailMimeMessageFolderStoreSessionFromJSON(e.session):void 0,content:n.exists(e,"content")?e.content:void 0,flags:n.exists(e,"flags")?s.XagacityEmailMimeMessageFolderStoreFlagsFromJSON(e.flags):void 0,contentType:n.exists(e,"contentType")?e.contentType:void 0,fileName:n.exists(e,"fileName")?e.fileName:void 0,description:n.exists(e,"description")?e.description:void 0,subject:n.exists(e,"subject")?e.subject:void 0,size:n.exists(e,"size")?e.size:void 0,inputStream:n.exists(e,"inputStream")?e.inputStream:void 0,encoding:n.exists(e,"encoding")?e.encoding:void 0,sentDate:n.exists(e,"sentDate")?new Date(e.sentDate):void 0,messageID:n.exists(e,"messageID")?e.messageID:void 0,allRecipients:n.exists(e,"allRecipients")?e.allRecipients.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,from:n.exists(e,"from")?e.from.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,sender:n.exists(e,"sender")?o.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON(e.sender):void 0,replyTo:n.exists(e,"replyTo")?e.replyTo.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,receivedDate:n.exists(e,"receivedDate")?new Date(e.receivedDate):void 0,lineCount:n.exists(e,"lineCount")?e.lineCount:void 0,disposition:n.exists(e,"disposition")?e.disposition:void 0,contentID:n.exists(e,"contentID")?e.contentID:void 0,contentMD5:n.exists(e,"contentMD5")?e.contentMD5:void 0,contentLanguage:n.exists(e,"contentLanguage")?e.contentLanguage:void 0,rawInputStream:n.exists(e,"rawInputStream")?e.rawInputStream:void 0,dataHandler:n.exists(e,"dataHandler")?a.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSON(e.dataHandler):void 0,allHeaders:n.exists(e,"allHeaders")?e.allHeaders:void 0,allHeaderLines:n.exists(e,"allHeaderLines")?e.allHeaderLines:void 0,text:n.exists(e,"text")?e.text:void 0,messageNumber:n.exists(e,"messageNumber")?e.messageNumber:void 0}}t.XagacityEmailMimeMessageFromJSON=function(e){return u(e)},t.XagacityEmailMimeMessageFromJSONTyped=u,t.XagacityEmailMimeMessageToJSON=function(e){if(void 0!==e)return null===e?null:{expunged:e.expunged,folder:r.XagacityEmailMimeMessageFolderToJSON(e.folder),session:l.XagacityEmailMimeMessageFolderStoreSessionToJSON(e.session),content:e.content,flags:s.XagacityEmailMimeMessageFolderStoreFlagsToJSON(e.flags),contentType:e.contentType,fileName:e.fileName,description:e.description,subject:e.subject,size:e.size,inputStream:e.inputStream,encoding:e.encoding,sentDate:void 0===e.sentDate?void 0:e.sentDate.toISOString(),messageID:e.messageID,allRecipients:void 0===e.allRecipients?void 0:e.allRecipients.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),from:void 0===e.from?void 0:e.from.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),sender:o.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON(e.sender),replyTo:void 0===e.replyTo?void 0:e.replyTo.map(o.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),receivedDate:void 0===e.receivedDate?void 0:e.receivedDate.toISOString(),lineCount:e.lineCount,disposition:e.disposition,contentID:e.contentID,contentMD5:e.contentMD5,contentLanguage:e.contentLanguage,rawInputStream:e.rawInputStream,dataHandler:a.XagacityEmailMimeMessageFolderStoreDataHandlerToJSON(e.dataHandler),allHeaders:e.allHeaders,allHeaderLines:e.allHeaderLines,text:e.text,messageNumber:e.messageNumber}}},2294:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderToJSON=t.XagacityEmailMimeMessageFolderFromJSONTyped=t.XagacityEmailMimeMessageFolderFromJSON=void 0;var n=i(296),r=i(2394),o=i(7052),a=i(6826),s=i(3053);function l(e,t){return null==e?e:{store:n.exists(e,"store")?r.XagacityEmailMimeMessageFolderStoreFromJSON(e.store):void 0,mode:n.exists(e,"mode")?e.mode:void 0,messages:n.exists(e,"messages")?e.messages.map(a.XagacityEmailMimeMessageFolderStoreMessagesFromJSON):void 0,urlname:n.exists(e,"urlname")?s.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON(e.urlname):void 0,subscribed:n.exists(e,"subscribed")?e.subscribed:void 0,permanentFlags:n.exists(e,"permanentFlags")?o.XagacityEmailMimeMessageFolderStoreFlagsFromJSON(e.permanentFlags):void 0,messageCount:n.exists(e,"messageCount")?e.messageCount:void 0,newMessageCount:n.exists(e,"newMessageCount")?e.newMessageCount:void 0,unreadMessageCount:n.exists(e,"unreadMessageCount")?e.unreadMessageCount:void 0,deletedMessageCount:n.exists(e,"deletedMessageCount")?e.deletedMessageCount:void 0,fullName:n.exists(e,"fullName")?e.fullName:void 0,name:n.exists(e,"name")?e.name:void 0,open:n.exists(e,"open")?e.open:void 0,type:n.exists(e,"type")?e.type:void 0,separator:n.exists(e,"separator")?e.separator:void 0}}t.XagacityEmailMimeMessageFolderFromJSON=function(e){return l(e)},t.XagacityEmailMimeMessageFolderFromJSONTyped=l,t.XagacityEmailMimeMessageFolderToJSON=function(e){if(void 0!==e)return null===e?null:{store:r.XagacityEmailMimeMessageFolderStoreToJSON(e.store),mode:e.mode,messages:void 0===e.messages?void 0:e.messages.map(a.XagacityEmailMimeMessageFolderStoreMessagesToJSON),urlname:s.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON(e.urlname),subscribed:e.subscribed,permanentFlags:o.XagacityEmailMimeMessageFolderStoreFlagsToJSON(e.permanentFlags),messageCount:e.messageCount,newMessageCount:e.newMessageCount,unreadMessageCount:e.unreadMessageCount,deletedMessageCount:e.deletedMessageCount,fullName:e.fullName,name:e.name,open:e.open,type:e.type,separator:e.separator}}},2394:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreToJSON=t.XagacityEmailMimeMessageFolderStoreFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreFromJSON=void 0;var n=i(296),r=i(403),o=i(3053);function a(e,t){return null==e?e:{connected:n.exists(e,"connected")?e.connected:void 0,personalNamespaces:n.exists(e,"personalNamespaces")?e.personalNamespaces.map(r.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSON):void 0,sharedNamespaces:n.exists(e,"sharedNamespaces")?e.sharedNamespaces.map(r.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSON):void 0,urlname:n.exists(e,"urlname")?o.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON(e.urlname):void 0}}t.XagacityEmailMimeMessageFolderStoreFromJSON=function(e){return a(e)},t.XagacityEmailMimeMessageFolderStoreFromJSONTyped=a,t.XagacityEmailMimeMessageFolderStoreToJSON=function(e){if(void 0!==e)return null===e?null:{connected:e.connected,personalNamespaces:void 0===e.personalNamespaces?void 0:e.personalNamespaces.map(r.XagacityEmailMimeMessageFolderStorePersonalNamespacesToJSON),sharedNamespaces:void 0===e.sharedNamespaces?void 0:e.sharedNamespaces.map(r.XagacityEmailMimeMessageFolderStorePersonalNamespacesToJSON),urlname:o.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON(e.urlname)}}},8644:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON=t.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{type:n.exists(e,"type")?e.type:void 0}}t.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type}}},2653:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSON=void 0;var n=i(296),r=i(9046),o=i(8819),a=i(6799),s=i(6228);function l(e,t){return null==e?e:{dataSource:n.exists(e,"dataSource")?o.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSON(e.dataSource):void 0,commandMap:n.exists(e,"commandMap")?r.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSON(e.commandMap):void 0,transferDataFlavors:n.exists(e,"transferDataFlavors")?e.transferDataFlavors.map(s.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSON):void 0,preferredCommands:n.exists(e,"preferredCommands")?e.preferredCommands.map(a.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSON):void 0,allCommands:n.exists(e,"allCommands")?e.allCommands.map(a.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSON):void 0,contentType:n.exists(e,"contentType")?e.contentType:void 0,name:n.exists(e,"name")?e.name:void 0,content:n.exists(e,"content")?e.content:void 0,inputStream:n.exists(e,"inputStream")?e.inputStream:void 0,outputStream:n.exists(e,"outputStream")?e.outputStream:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSON=function(e){return l(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSONTyped=l,t.XagacityEmailMimeMessageFolderStoreDataHandlerToJSON=function(e){if(void 0!==e)return null===e?null:{dataSource:o.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceToJSON(e.dataSource),commandMap:r.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapToJSON(e.commandMap),transferDataFlavors:void 0===e.transferDataFlavors?void 0:e.transferDataFlavors.map(s.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsToJSON),preferredCommands:void 0===e.preferredCommands?void 0:e.preferredCommands.map(a.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsToJSON),allCommands:void 0===e.allCommands?void 0:e.allCommands.map(a.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsToJSON),contentType:e.contentType,name:e.name,content:e.content,inputStream:e.inputStream,outputStream:e.outputStream}}},9046:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{mimeTypes:n.exists(e,"mimeTypes")?e.mimeTypes:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreDataHandlerCommandMapToJSON=function(e){if(void 0!==e)return null===e?null:{mimeTypes:e.mimeTypes}}},8819:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{contentType:n.exists(e,"contentType")?e.contentType:void 0,name:n.exists(e,"name")?e.name:void 0,inputStream:n.exists(e,"inputStream")?e.inputStream:void 0,outputStream:n.exists(e,"outputStream")?e.outputStream:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreDataHandlerDataSourceToJSON=function(e){if(void 0!==e)return null===e?null:{contentType:e.contentType,name:e.name,inputStream:e.inputStream,outputStream:e.outputStream}}},6799:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{commandName:n.exists(e,"commandName")?e.commandName:void 0,commandClass:n.exists(e,"commandClass")?e.commandClass:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreDataHandlerPreferredCommandsToJSON=function(e){if(void 0!==e)return null===e?null:{commandName:e.commandName,commandClass:e.commandClass}}},6228:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsToJSON=t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{mimeType:n.exists(e,"mimeType")?e.mimeType:void 0,humanPresentableName:n.exists(e,"humanPresentableName")?e.humanPresentableName:void 0,mimeTypeSerializedObject:n.exists(e,"mimeTypeSerializedObject")?e.mimeTypeSerializedObject:void 0,defaultRepresentationClassAsString:n.exists(e,"defaultRepresentationClassAsString")?e.defaultRepresentationClassAsString:void 0,representationClassInputStream:n.exists(e,"representationClassInputStream")?e.representationClassInputStream:void 0,representationClassReader:n.exists(e,"representationClassReader")?e.representationClassReader:void 0,representationClassCharBuffer:n.exists(e,"representationClassCharBuffer")?e.representationClassCharBuffer:void 0,representationClassByteBuffer:n.exists(e,"representationClassByteBuffer")?e.representationClassByteBuffer:void 0,representationClassSerializable:n.exists(e,"representationClassSerializable")?e.representationClassSerializable:void 0,representationClassRemote:n.exists(e,"representationClassRemote")?e.representationClassRemote:void 0,flavorSerializedObjectType:n.exists(e,"flavorSerializedObjectType")?e.flavorSerializedObjectType:void 0,flavorRemoteObjectType:n.exists(e,"flavorRemoteObjectType")?e.flavorRemoteObjectType:void 0,flavorJavaFileListType:n.exists(e,"flavorJavaFileListType")?e.flavorJavaFileListType:void 0,flavorTextType:n.exists(e,"flavorTextType")?e.flavorTextType:void 0,subType:n.exists(e,"subType")?e.subType:void 0,primaryType:n.exists(e,"primaryType")?e.primaryType:void 0}}t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreDataHandlerTransferDataFlavorsToJSON=function(e){if(void 0!==e)return null===e?null:{mimeType:e.mimeType,humanPresentableName:e.humanPresentableName,mimeTypeSerializedObject:e.mimeTypeSerializedObject,defaultRepresentationClassAsString:e.defaultRepresentationClassAsString,representationClassInputStream:e.representationClassInputStream,representationClassReader:e.representationClassReader,representationClassCharBuffer:e.representationClassCharBuffer,representationClassByteBuffer:e.representationClassByteBuffer,representationClassSerializable:e.representationClassSerializable,representationClassRemote:e.representationClassRemote,flavorSerializedObjectType:e.flavorSerializedObjectType,flavorRemoteObjectType:e.flavorRemoteObjectType,flavorJavaFileListType:e.flavorJavaFileListType,flavorTextType:e.flavorTextType,subType:e.subType,primaryType:e.primaryType}}},7052:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreFlagsToJSON=t.XagacityEmailMimeMessageFolderStoreFlagsFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreFlagsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{systemFlags:n.exists(e,"systemFlags")?e.systemFlags:void 0,userFlags:n.exists(e,"userFlags")?e.userFlags:void 0}}t.XagacityEmailMimeMessageFolderStoreFlagsFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreFlagsFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreFlagsToJSON=function(e){if(void 0!==e)return null===e?null:{systemFlags:e.systemFlags,userFlags:e.userFlags}}},6826:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreMessagesToJSON=t.XagacityEmailMimeMessageFolderStoreMessagesFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreMessagesFromJSON=void 0;var n=i(296),r=i(8644),o=i(2653),a=i(7052),s=i(3645);function l(e,t){return null==e?e:{expunged:n.exists(e,"expunged")?e.expunged:void 0,session:n.exists(e,"session")?s.XagacityEmailMimeMessageFolderStoreSessionFromJSON(e.session):void 0,flags:n.exists(e,"flags")?a.XagacityEmailMimeMessageFolderStoreFlagsFromJSON(e.flags):void 0,subject:n.exists(e,"subject")?e.subject:void 0,sentDate:n.exists(e,"sentDate")?new Date(e.sentDate):void 0,allRecipients:n.exists(e,"allRecipients")?e.allRecipients.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,from:n.exists(e,"from")?e.from.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,replyTo:n.exists(e,"replyTo")?e.replyTo.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsFromJSON):void 0,receivedDate:n.exists(e,"receivedDate")?new Date(e.receivedDate):void 0,messageNumber:n.exists(e,"messageNumber")?e.messageNumber:void 0,contentType:n.exists(e,"contentType")?e.contentType:void 0,fileName:n.exists(e,"fileName")?e.fileName:void 0,description:n.exists(e,"description")?e.description:void 0,size:n.exists(e,"size")?e.size:void 0,content:n.exists(e,"content")?e.content:void 0,inputStream:n.exists(e,"inputStream")?e.inputStream:void 0,lineCount:n.exists(e,"lineCount")?e.lineCount:void 0,disposition:n.exists(e,"disposition")?e.disposition:void 0,dataHandler:n.exists(e,"dataHandler")?o.XagacityEmailMimeMessageFolderStoreDataHandlerFromJSON(e.dataHandler):void 0,allHeaders:n.exists(e,"allHeaders")?e.allHeaders:void 0,text:n.exists(e,"text")?e.text:void 0}}t.XagacityEmailMimeMessageFolderStoreMessagesFromJSON=function(e){return l(e)},t.XagacityEmailMimeMessageFolderStoreMessagesFromJSONTyped=l,t.XagacityEmailMimeMessageFolderStoreMessagesToJSON=function(e){if(void 0!==e)return null===e?null:{expunged:e.expunged,session:s.XagacityEmailMimeMessageFolderStoreSessionToJSON(e.session),flags:a.XagacityEmailMimeMessageFolderStoreFlagsToJSON(e.flags),subject:e.subject,sentDate:void 0===e.sentDate?void 0:e.sentDate.toISOString(),allRecipients:void 0===e.allRecipients?void 0:e.allRecipients.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),from:void 0===e.from?void 0:e.from.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),replyTo:void 0===e.replyTo?void 0:e.replyTo.map(r.XagacityEmailMimeMessageFolderStoreAllRecipientsToJSON),receivedDate:void 0===e.receivedDate?void 0:e.receivedDate.toISOString(),messageNumber:e.messageNumber,contentType:e.contentType,fileName:e.fileName,description:e.description,size:e.size,content:e.content,inputStream:e.inputStream,lineCount:e.lineCount,disposition:e.disposition,dataHandler:o.XagacityEmailMimeMessageFolderStoreDataHandlerToJSON(e.dataHandler),allHeaders:e.allHeaders,text:e.text}}},403:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStorePersonalNamespacesToJSON=t.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSONTyped=t.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSON=void 0;var n=i(296),r=i(7052),o=i(6826),a=i(3053);function s(e,t){return null==e?e:{mode:n.exists(e,"mode")?e.mode:void 0,messages:n.exists(e,"messages")?e.messages.map(o.XagacityEmailMimeMessageFolderStoreMessagesFromJSON):void 0,urlname:n.exists(e,"urlname")?a.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON(e.urlname):void 0,subscribed:n.exists(e,"subscribed")?e.subscribed:void 0,permanentFlags:n.exists(e,"permanentFlags")?r.XagacityEmailMimeMessageFolderStoreFlagsFromJSON(e.permanentFlags):void 0,messageCount:n.exists(e,"messageCount")?e.messageCount:void 0,newMessageCount:n.exists(e,"newMessageCount")?e.newMessageCount:void 0,unreadMessageCount:n.exists(e,"unreadMessageCount")?e.unreadMessageCount:void 0,deletedMessageCount:n.exists(e,"deletedMessageCount")?e.deletedMessageCount:void 0,fullName:n.exists(e,"fullName")?e.fullName:void 0,name:n.exists(e,"name")?e.name:void 0,open:n.exists(e,"open")?e.open:void 0,type:n.exists(e,"type")?e.type:void 0,separator:n.exists(e,"separator")?e.separator:void 0}}t.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSON=function(e){return s(e)},t.XagacityEmailMimeMessageFolderStorePersonalNamespacesFromJSONTyped=s,t.XagacityEmailMimeMessageFolderStorePersonalNamespacesToJSON=function(e){if(void 0!==e)return null===e?null:{mode:e.mode,messages:void 0===e.messages?void 0:e.messages.map(o.XagacityEmailMimeMessageFolderStoreMessagesToJSON),urlname:a.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON(e.urlname),subscribed:e.subscribed,permanentFlags:r.XagacityEmailMimeMessageFolderStoreFlagsToJSON(e.permanentFlags),messageCount:e.messageCount,newMessageCount:e.newMessageCount,unreadMessageCount:e.unreadMessageCount,deletedMessageCount:e.deletedMessageCount,fullName:e.fullName,name:e.name,open:e.open,type:e.type,separator:e.separator}}},3645:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionToJSON=t.XagacityEmailMimeMessageFolderStoreSessionFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionFromJSON=void 0;var n=i(296),r=i(4586),o=i(560),a=i(5108);function s(e,t){return null==e?e:{debug:n.exists(e,"debug")?e.debug:void 0,providers:n.exists(e,"providers")?e.providers.map(o.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSON):void 0,debugOut:n.exists(e,"debugOut")?e.debugOut:void 0,properties:n.exists(e,"properties")?e.properties:void 0,transport:n.exists(e,"transport")?a.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSON(e.transport):void 0,provider:n.exists(e,"provider")?r.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSON(e.provider):void 0}}t.XagacityEmailMimeMessageFolderStoreSessionFromJSON=function(e){return s(e)},t.XagacityEmailMimeMessageFolderStoreSessionFromJSONTyped=s,t.XagacityEmailMimeMessageFolderStoreSessionToJSON=function(e){if(void 0!==e)return null===e?null:{debug:e.debug,providers:void 0===e.providers?void 0:e.providers.map(o.XagacityEmailMimeMessageFolderStoreSessionProvidersToJSON),debugOut:e.debugOut,properties:e.properties,transport:a.XagacityEmailMimeMessageFolderStoreSessionTransportToJSON(e.transport),provider:r.XagacityEmailMimeMessageFolderStoreSessionProviderToJSON(e.provider)}}},4586:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionProviderToJSON=t.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{type:n.exists(e,"type")?e.type:void 0,protocol:n.exists(e,"protocol")?e.protocol:void 0,className:n.exists(e,"className")?e.className:void 0,vendor:n.exists(e,"vendor")?e.vendor:void 0,version:n.exists(e,"version")?e.version:void 0}}t.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreSessionProviderFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreSessionProviderToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type,protocol:e.protocol,className:e.className,vendor:e.vendor,version:e.version}}},560:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionProvidersToJSON=t.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{type:n.exists(e,"type")?e.type:void 0,protocol:n.exists(e,"protocol")?e.protocol:void 0,className:n.exists(e,"className")?e.className:void 0,vendor:n.exists(e,"vendor")?e.vendor:void 0,version:n.exists(e,"version")?e.version:void 0}}t.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreSessionProvidersFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreSessionProvidersToJSON=function(e){if(void 0!==e)return null===e?null:{type:e.type,protocol:e.protocol,className:e.className,vendor:e.vendor,version:e.version}}},5108:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionTransportToJSON=t.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSON=void 0;var n=i(296),r=i(3053);function o(e,t){return null==e?e:{connected:n.exists(e,"connected")?e.connected:void 0,urlname:n.exists(e,"urlname")?r.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON(e.urlname):void 0}}t.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSON=function(e){return o(e)},t.XagacityEmailMimeMessageFolderStoreSessionTransportFromJSONTyped=o,t.XagacityEmailMimeMessageFolderStoreSessionTransportToJSON=function(e){if(void 0!==e)return null===e?null:{connected:e.connected,urlname:r.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON(e.urlname)}}},3053:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON=t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSONTyped=t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{protocol:n.exists(e,"protocol")?e.protocol:void 0,username:n.exists(e,"username")?e.username:void 0,password:n.exists(e,"password")?e.password:void 0,host:n.exists(e,"host")?e.host:void 0,port:n.exists(e,"port")?e.port:void 0,file:n.exists(e,"file")?e.file:void 0,ref:n.exists(e,"ref")?e.ref:void 0,url:n.exists(e,"url")?e.url:void 0}}t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSON=function(e){return r(e)},t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameFromJSONTyped=r,t.XagacityEmailMimeMessageFolderStoreSessionTransportUrlnameToJSON=function(e){if(void 0!==e)return null===e?null:{protocol:e.protocol,username:e.username,password:e.password,host:e.host,port:e.port,file:e.file,ref:e.ref,url:e.url}}},1283:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityUserToJSON=t.XagacityUserFromJSONTyped=t.XagacityUserFromJSON=t.XagacityUserIdVerificationProviderEnum=void 0;var n,r=i(296),o=i(1995),a=i(6597);function s(e,t){return null==e?e:{id:r.exists(e,"id")?e.id:void 0,organizationId:r.exists(e,"organizationId")?e.organizationId:void 0,clientEmail:r.exists(e,"clientEmail")?e.clientEmail:void 0,priority:r.exists(e,"priority")?e.priority:void 0,firstName:r.exists(e,"firstName")?e.firstName:void 0,active:r.exists(e,"active")?e.active:void 0,eliseUser:r.exists(e,"eliseUser")?e.eliseUser:void 0,payingOrTrial:r.exists(e,"payingOrTrial")?e.payingOrTrial:void 0,emailPushNotificationsActive:r.exists(e,"emailPushNotificationsActive")?e.emailPushNotificationsActive:void 0,emailPushNotificationsExpiration:r.exists(e,"emailPushNotificationsExpiration")?e.emailPushNotificationsExpiration:void 0,emailClientType:r.exists(e,"emailClientType")?e.emailClientType:void 0,textApi:r.exists(e,"textApi")?e.textApi:void 0,timezone:r.exists(e,"timezone")?e.timezone:void 0,outlookTimeOfLastSyncedMessage:r.exists(e,"outlookTimeOfLastSyncedMessage")?e.outlookTimeOfLastSyncedMessage:void 0,outlookIdOfLastSyncedMessage:r.exists(e,"outlookIdOfLastSyncedMessage")?e.outlookIdOfLastSyncedMessage:void 0,xagacityLabel:r.exists(e,"xagacityLabel")?e.xagacityLabel:void 0,unreadState:r.exists(e,"unreadState")?e.unreadState:void 0,agentSignature:r.exists(e,"agentSignature")?e.agentSignature:void 0,specificGuidlines:r.exists(e,"specificGuidlines")?e.specificGuidlines:void 0,templates:r.exists(e,"templates")?e.templates:void 0,agentPhoneNumber:r.exists(e,"agentPhoneNumber")?e.agentPhoneNumber:void 0,isItProcessed:r.exists(e,"isItProcessed")?e.isItProcessed:void 0,removeFromInbox:r.exists(e,"removeFromInbox")?e.removeFromInbox:void 0,draftReply:r.exists(e,"draftReply")?e.draftReply:void 0,forwardToTeamAgent:r.exists(e,"forwardToTeamAgent")?e.forwardToTeamAgent:void 0,gmailHistoryId:r.exists(e,"gmailHistoryId")?e.gmailHistoryId:void 0,collectDataOn:r.exists(e,"collectDataOn")?e.collectDataOn:void 0,actualAssistant:r.exists(e,"actualAssistant")?e.actualAssistant:void 0,lastName:r.exists(e,"lastName")?e.lastName:void 0,subjectPreference:r.exists(e,"subjectPreference")?e.subjectPreference:void 0,getgSheetId:r.exists(e,"getgSheetId")?e.getgSheetId:void 0,autoDrafting:r.exists(e,"autoDrafting")?e.autoDrafting:void 0,followUpsRequired:r.exists(e,"followUpsRequired")?e.followUpsRequired:void 0,followUpsTemplates:r.exists(e,"followUpsTemplates")?e.followUpsTemplates:void 0,lockedSheet:r.exists(e,"lockedSheet")?e.lockedSheet:void 0,smartResponding:r.exists(e,"smartResponding")?e.smartResponding:void 0,pendingFollowUps:r.exists(e,"pendingFollowUps")?e.pendingFollowUps:void 0,xagacityNumber:r.exists(e,"xagacityNumber")?e.xagacityNumber:void 0,password:r.exists(e,"password")?e.password:void 0,calendarHistoryId:r.exists(e,"calendarHistoryId")?e.calendarHistoryId:void 0,calendarName:r.exists(e,"calendarName")?e.calendarName:void 0,hasSalesforce:r.exists(e,"hasSalesforce")?e.hasSalesforce:void 0,dateActive:r.exists(e,"dateActive")?new Date(e.dateActive):void 0,leadTrackingEmailForwardingActive:r.exists(e,"leadTrackingEmailForwardingActive")?e.leadTrackingEmailForwardingActive:void 0,receivesForwardedEmails:r.exists(e,"receivesForwardedEmails")?e.receivesForwardedEmails:void 0,messageDelayInSeconds:r.exists(e,"messageDelayInSeconds")?e.messageDelayInSeconds:void 0,crmUsedType:r.exists(e,"crmUsedType")?e.crmUsedType:void 0,relatedEmailIds:r.exists(e,"relatedEmailIds")?e.relatedEmailIds:void 0,callsStartingHours:r.exists(e,"callsStartingHours")?e.callsStartingHours:void 0,callsClosingHours:r.exists(e,"callsClosingHours")?e.callsClosingHours:void 0,availabilitiesSoftwareType:r.exists(e,"availabilitiesSoftwareType")?e.availabilitiesSoftwareType:void 0,associatedDomains:r.exists(e,"associatedDomains")?e.associatedDomains:void 0,lastCrmSyncId:r.exists(e,"lastCrmSyncId")?e.lastCrmSyncId:void 0,crmSyncType:r.exists(e,"crmSyncType")?e.crmSyncType:void 0,importingNewLeadsFromCrmActive:r.exists(e,"importingNewLeadsFromCrmActive")?e.importingNewLeadsFromCrmActive:void 0,followUpDataSource:r.exists(e,"followUpDataSource")?e.followUpDataSource:void 0,prefersTextsConfirmations:r.exists(e,"prefersTextsConfirmations")?e.prefersTextsConfirmations:void 0,smsAppointmentReminderEnabled:r.exists(e,"smsAppointmentReminderEnabled")?e.smsAppointmentReminderEnabled:void 0,smsPreTourFollowUpEnabled:r.exists(e,"smsPreTourFollowUpEnabled")?e.smsPreTourFollowUpEnabled:void 0,smsPostTourFollowUpEnabled:r.exists(e,"smsPostTourFollowUpEnabled")?e.smsPostTourFollowUpEnabled:void 0,smsNoShowFollowUpEnabled:r.exists(e,"smsNoShowFollowUpEnabled")?e.smsNoShowFollowUpEnabled:void 0,eventsLastCrmSyncId:r.exists(e,"eventsLastCrmSyncId")?e.eventsLastCrmSyncId:void 0,whiteListActivated:r.exists(e,"whiteListActivated")?e.whiteListActivated:void 0,blackListActivated:r.exists(e,"blackListActivated")?e.blackListActivated:void 0,availabilitiesPreferences:r.exists(e,"availabilitiesPreferences")?o.AvailabilitiesPreferencesFromJSON(e.availabilitiesPreferences):void 0,qaAlertPriority:r.exists(e,"qaAlertPriority")?e.qaAlertPriority:void 0,useSmtpRelay:r.exists(e,"useSmtpRelay")?e.useSmtpRelay:void 0,needParseSignature:r.exists(e,"needParseSignature")?e.needParseSignature:void 0,signaturePattern:r.exists(e,"signaturePattern")?e.signaturePattern:void 0,spamHistoryId:r.exists(e,"spamHistoryId")?e.spamHistoryId:void 0,receivesUnsubscribeReport:r.exists(e,"receivesUnsubscribeReport")?e.receivesUnsubscribeReport:void 0,emailSyncState:r.exists(e,"emailSyncState")?e.emailSyncState:void 0,buildingRefreshInfo:r.exists(e,"buildingRefreshInfo")?a.BuildingRefreshInfoFromJSON(e.buildingRefreshInfo):void 0,idVerificationProvider:r.exists(e,"idVerificationProvider")?e.idVerificationProvider:void 0}}(n=t.XagacityUserIdVerificationProviderEnum||(t.XagacityUserIdVerificationProviderEnum={})).Unknown="UNKNOWN",n.CognitoHq="COGNITO_HQ",n.AvbScreeningApi="AVB_SCREENING_API",t.XagacityUserFromJSON=function(e){return s(e)},t.XagacityUserFromJSONTyped=s,t.XagacityUserToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,organizationId:e.organizationId,clientEmail:e.clientEmail,priority:e.priority,firstName:e.firstName,active:e.active,eliseUser:e.eliseUser,payingOrTrial:e.payingOrTrial,emailPushNotificationsActive:e.emailPushNotificationsActive,emailPushNotificationsExpiration:e.emailPushNotificationsExpiration,emailClientType:e.emailClientType,textApi:e.textApi,timezone:e.timezone,outlookTimeOfLastSyncedMessage:e.outlookTimeOfLastSyncedMessage,outlookIdOfLastSyncedMessage:e.outlookIdOfLastSyncedMessage,xagacityLabel:e.xagacityLabel,unreadState:e.unreadState,agentSignature:e.agentSignature,specificGuidlines:e.specificGuidlines,templates:e.templates,agentPhoneNumber:e.agentPhoneNumber,isItProcessed:e.isItProcessed,removeFromInbox:e.removeFromInbox,draftReply:e.draftReply,forwardToTeamAgent:e.forwardToTeamAgent,gmailHistoryId:e.gmailHistoryId,collectDataOn:e.collectDataOn,actualAssistant:e.actualAssistant,lastName:e.lastName,subjectPreference:e.subjectPreference,getgSheetId:e.getgSheetId,autoDrafting:e.autoDrafting,followUpsRequired:e.followUpsRequired,followUpsTemplates:e.followUpsTemplates,lockedSheet:e.lockedSheet,smartResponding:e.smartResponding,pendingFollowUps:e.pendingFollowUps,xagacityNumber:e.xagacityNumber,password:e.password,calendarHistoryId:e.calendarHistoryId,calendarName:e.calendarName,hasSalesforce:e.hasSalesforce,dateActive:void 0===e.dateActive?void 0:e.dateActive.toISOString(),leadTrackingEmailForwardingActive:e.leadTrackingEmailForwardingActive,receivesForwardedEmails:e.receivesForwardedEmails,messageDelayInSeconds:e.messageDelayInSeconds,crmUsedType:e.crmUsedType,relatedEmailIds:e.relatedEmailIds,callsStartingHours:e.callsStartingHours,callsClosingHours:e.callsClosingHours,availabilitiesSoftwareType:e.availabilitiesSoftwareType,associatedDomains:e.associatedDomains,lastCrmSyncId:e.lastCrmSyncId,crmSyncType:e.crmSyncType,importingNewLeadsFromCrmActive:e.importingNewLeadsFromCrmActive,followUpDataSource:e.followUpDataSource,prefersTextsConfirmations:e.prefersTextsConfirmations,smsAppointmentReminderEnabled:e.smsAppointmentReminderEnabled,smsPreTourFollowUpEnabled:e.smsPreTourFollowUpEnabled,smsPostTourFollowUpEnabled:e.smsPostTourFollowUpEnabled,smsNoShowFollowUpEnabled:e.smsNoShowFollowUpEnabled,eventsLastCrmSyncId:e.eventsLastCrmSyncId,whiteListActivated:e.whiteListActivated,blackListActivated:e.blackListActivated,availabilitiesPreferences:o.AvailabilitiesPreferencesToJSON(e.availabilitiesPreferences),qaAlertPriority:e.qaAlertPriority,useSmtpRelay:e.useSmtpRelay,needParseSignature:e.needParseSignature,signaturePattern:e.signaturePattern,spamHistoryId:e.spamHistoryId,receivesUnsubscribeReport:e.receivesUnsubscribeReport,emailSyncState:e.emailSyncState,buildingRefreshInfo:a.BuildingRefreshInfoToJSON(e.buildingRefreshInfo),idVerificationProvider:e.idVerificationProvider}}},1889:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XagacityUserWithCredentialsToJSON=t.XagacityUserWithCredentialsFromJSONTyped=t.XagacityUserWithCredentialsFromJSON=void 0;var n=i(296),r=i(7455),o=i(9861),a=i(3538),s=i(1283),l=i(3450);function u(e,t){return null==e?e:{user:n.exists(e,"user")?s.XagacityUserFromJSON(e.user):void 0,entrataCredentials:n.exists(e,"entrataCredentials")?o.EntrataCredentialsFromJSON(e.entrataCredentials):void 0,realPageCredentials:n.exists(e,"realPageCredentials")?a.RealPageCredentialsFromJSON(e.realPageCredentials):void 0,yardiCredentials:n.exists(e,"yardiCredentials")?l.YardiCredentialsFromJSON(e.yardiCredentials):void 0,anyoneHomeCredentials:n.exists(e,"anyoneHomeCredentials")?r.AnyoneHomeCredentialsFromJSON(e.anyoneHomeCredentials):void 0}}t.XagacityUserWithCredentialsFromJSON=function(e){return u(e)},t.XagacityUserWithCredentialsFromJSONTyped=u,t.XagacityUserWithCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{user:s.XagacityUserToJSON(e.user),entrataCredentials:o.EntrataCredentialsToJSON(e.entrataCredentials),realPageCredentials:a.RealPageCredentialsToJSON(e.realPageCredentials),yardiCredentials:l.YardiCredentialsToJSON(e.yardiCredentials),anyoneHomeCredentials:r.AnyoneHomeCredentialsToJSON(e.anyoneHomeCredentials)}}},3450:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.YardiCredentialsToJSON=t.YardiCredentialsFromJSONTyped=t.YardiCredentialsFromJSON=void 0;var n=i(296);function r(e,t){return null==e?e:{id:n.exists(e,"id")?e.id:void 0,userId:n.exists(e,"userId")?e.userId:void 0,userName:n.exists(e,"userName")?e.userName:void 0,password:n.exists(e,"password")?e.password:void 0,serverName:n.exists(e,"serverName")?e.serverName:void 0,database:n.exists(e,"database")?e.database:void 0,platform:n.exists(e,"platform")?e.platform:void 0,webserviceHost:n.exists(e,"webserviceHost")?e.webserviceHost:void 0}}t.YardiCredentialsFromJSON=function(e){return r(e)},t.YardiCredentialsFromJSONTyped=r,t.YardiCredentialsToJSON=function(e){if(void 0!==e)return null===e?null:{id:e.id,userId:e.userId,userName:e.userName,password:e.password,serverName:e.serverName,database:e.database,platform:e.platform,webserviceHost:e.webserviceHost}}},4584:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]}),r=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(i(6662),t),r(i(2322),t),r(i(1961),t),r(i(818),t),r(i(6140),t),r(i(5246),t),r(i(5556),t),r(i(7455),t),r(i(3617),t),r(i(67),t),r(i(1234),t),r(i(1995),t),r(i(3618),t),r(i(2160),t),r(i(5604),t),r(i(3477),t),r(i(8536),t),r(i(4597),t),r(i(553),t),r(i(6673),t),r(i(6597),t),r(i(7949),t),r(i(2386),t),r(i(4853),t),r(i(9260),t),r(i(3777),t),r(i(713),t),r(i(1172),t),r(i(5384),t),r(i(2414),t),r(i(3077),t),r(i(2817),t),r(i(9407),t),r(i(7058),t),r(i(3531),t),r(i(6613),t),r(i(5040),t),r(i(5111),t),r(i(3202),t),r(i(6058),t),r(i(3817),t),r(i(8882),t),r(i(6607),t),r(i(5007),t),r(i(1057),t),r(i(7009),t),r(i(3694),t),r(i(4105),t),r(i(9861),t),r(i(8442),t),r(i(6885),t),r(i(7934),t),r(i(3905),t),r(i(3958),t),r(i(6045),t),r(i(6465),t),r(i(1204),t),r(i(7895),t),r(i(4326),t),r(i(2610),t),r(i(1960),t),r(i(9233),t),r(i(8055),t),r(i(2406),t),r(i(1880),t),r(i(7989),t),r(i(4036),t),r(i(5728),t),r(i(5131),t),r(i(7708),t),r(i(746),t),r(i(7662),t),r(i(9132),t),r(i(7530),t),r(i(194),t),r(i(1312),t),r(i(4549),t),r(i(8636),t),r(i(7399),t),r(i(8328),t),r(i(4401),t),r(i(3832),t),r(i(4883),t),r(i(6705),t),r(i(1427),t),r(i(9718),t),r(i(1004),t),r(i(4240),t),r(i(2960),t),r(i(1431),t),r(i(8792),t),r(i(908),t),r(i(3231),t),r(i(8496),t),r(i(3538),t),r(i(9353),t),r(i(6343),t),r(i(7564),t),r(i(4748),t),r(i(170),t),r(i(2298),t),r(i(445),t),r(i(1222),t),r(i(7444),t),r(i(3815),t),r(i(8385),t),r(i(6956),t),r(i(2644),t),r(i(4192),t),r(i(6832),t),r(i(6865),t),r(i(6448),t),r(i(6161),t),r(i(6069),t),r(i(6122),t),r(i(5687),t),r(i(2558),t),r(i(904),t),r(i(7346),t),r(i(6306),t),r(i(2977),t),r(i(1124),t),r(i(827),t),r(i(1155),t),r(i(8911),t),r(i(9374),t),r(i(6330),t),r(i(9275),t),r(i(260),t),r(i(1161),t),r(i(5239),t),r(i(3842),t),r(i(9908),t),r(i(5530),t),r(i(9256),t),r(i(2288),t),r(i(3029),t),r(i(5454),t),r(i(2449),t),r(i(2242),t),r(i(6570),t),r(i(4675),t),r(i(3163),t),r(i(8937),t),r(i(2683),t),r(i(4145),t),r(i(7571),t),r(i(4891),t),r(i(2294),t),r(i(2394),t),r(i(8644),t),r(i(2653),t),r(i(9046),t),r(i(8819),t),r(i(6799),t),r(i(6228),t),r(i(7052),t),r(i(6826),t),r(i(403),t),r(i(3645),t),r(i(4586),t),r(i(560),t),r(i(5108),t),r(i(3053),t),r(i(1283),t),r(i(1889),t),r(i(3450),t)},296:function(e,t){var i,n=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextApiResponse=t.BlobApiResponse=t.VoidApiResponse=t.JSONApiResponse=t.canConsumeForm=t.mapValues=t.querystring=t.exists=t.Configuration=t.COLLECTION_FORMATS=t.RequiredError=t.BaseAPI=t.BASE_PATH=void 0,t.BASE_PATH="http://localhost:8080".replace(/\/+$/,"");var s=function(){function e(e){var t=this;void 0===e&&(e=new u),this.configuration=e,this.fetchApi=function(e,i){return o(t,void 0,void 0,(function(){var t,n,o,s,l,u,d;return a(this,(function(a){switch(a.label){case 0:t={url:e,init:i},n=0,o=this.middleware,a.label=1;case 1:return n<o.length?(d=o[n]).pre?[4,d.pre(r({fetch:this.fetchApi},t))]:[3,3]:[3,4];case 2:t=a.sent()||t,a.label=3;case 3:return n++,[3,1];case 4:return[4,(this.configuration.fetchApi||fetch)(t.url,t.init)];case 5:s=a.sent(),l=0,u=this.middleware,a.label=6;case 6:return l<u.length?(d=u[l]).post?[4,d.post({fetch:this.fetchApi,url:t.url,init:t.init,response:s.clone()})]:[3,8]:[3,9];case 7:s=a.sent()||s,a.label=8;case 8:return l++,[3,6];case 9:return[2,s]}}))}))},this.middleware=e.middleware}return e.prototype.withMiddleware=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n=this.clone();return n.middleware=(e=n.middleware).concat.apply(e,t),n},e.prototype.withPreMiddleware=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=e.map((function(e){return{pre:e}}));return this.withMiddleware.apply(this,i)},e.prototype.withPostMiddleware=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=e.map((function(e){return{post:e}}));return this.withMiddleware.apply(this,i)},e.prototype.request=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o;return a(this,(function(a){switch(a.label){case 0:return i=this.createFetchParams(e,t),n=i.url,r=i.init,[4,this.fetchApi(n,r)];case 1:if((o=a.sent()).status>=200&&o.status<300)return[2,o];throw o}}))}))},e.prototype.createFetchParams=function(e,t){var i=this.configuration.basePath+e.path;void 0!==e.query&&0!==Object.keys(e.query).length&&(i+="?"+this.configuration.queryParamsStringify(e.query));var n,o="undefined"!=typeof FormData&&e.body instanceof FormData||e.body instanceof URLSearchParams||(n=e.body,"undefined"!=typeof Blob&&n instanceof Blob)?e.body:JSON.stringify(e.body),a=Object.assign({},this.configuration.headers,e.headers);return{url:i,init:r({method:e.method,headers:a,body:o,credentials:this.configuration.credentials},t)}},e.prototype.clone=function(){var e=new(0,this.constructor)(this.configuration);return e.middleware=this.middleware.slice(),e},e}();t.BaseAPI=s;var l=function(e){function t(t,i){var n=e.call(this,i)||this;return n.field=t,n.name="RequiredError",n}return n(t,e),t}(Error);t.RequiredError=l,t.COLLECTION_FORMATS={csv:",",ssv:" ",tsv:"\t",pipes:"|"};var u=function(){function e(e){void 0===e&&(e={}),this.configuration=e}return Object.defineProperty(e.prototype,"basePath",{get:function(){return null!=this.configuration.basePath?this.configuration.basePath:t.BASE_PATH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fetchApi",{get:function(){return this.configuration.fetchApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"middleware",{get:function(){return this.configuration.middleware||[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"queryParamsStringify",{get:function(){return this.configuration.queryParamsStringify||d},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"username",{get:function(){return this.configuration.username},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"password",{get:function(){return this.configuration.password},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"apiKey",{get:function(){var e=this.configuration.apiKey;if(e)return"function"==typeof e?e:function(){return e}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"accessToken",{get:function(){var e=this,t=this.configuration.accessToken;if(t)return"function"==typeof t?t:function(){return o(e,void 0,void 0,(function(){return a(this,(function(e){return[2,t]}))}))}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){return this.configuration.headers},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"credentials",{get:function(){return this.configuration.credentials},enumerable:!1,configurable:!0}),e}();function d(e,t){return void 0===t&&(t=""),Object.keys(e).map((function(i){var n=t+(t.length?"["+i+"]":i),r=e[i];if(r instanceof Array){var o=r.map((function(e){return encodeURIComponent(String(e))})).join("&"+encodeURIComponent(n)+"=");return encodeURIComponent(n)+"="+o}return r instanceof Date?encodeURIComponent(n)+"="+encodeURIComponent(r.toISOString()):r instanceof Object?d(r,n):encodeURIComponent(n)+"="+encodeURIComponent(String(r))})).filter((function(e){return e.length>0})).join("&")}t.Configuration=u,t.exists=function(e,t){return null!=e[t]},t.querystring=d,t.mapValues=function(e,t){return Object.keys(e).reduce((function(i,n){var o;return r(r({},i),((o={})[n]=t(e[n]),o))}),{})},t.canConsumeForm=function(e){for(var t=0,i=e;t<i.length;t++)if("multipart/form-data"===i[t].contentType)return!0;return!1};var c=function(){function e(e,t){void 0===t&&(t=function(e){return e}),this.raw=e,this.transformer=t}return e.prototype.value=function(){return o(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return e=this.transformer,[4,this.raw.json()];case 1:return[2,e.apply(this,[t.sent()])]}}))}))},e}();t.JSONApiResponse=c;var p=function(){function e(e){this.raw=e}return e.prototype.value=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,void 0]}))}))},e}();t.VoidApiResponse=p;var h=function(){function e(e){this.raw=e}return e.prototype.value=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.raw.blob()];case 1:return[2,e.sent()]}}))}))},e}();t.BlobApiResponse=h;var f=function(){function e(e){this.raw=e}return e.prototype.value=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.raw.text()];case 1:return[2,e.sent()]}}))}))},e}();t.TextApiResponse=f},9669:(e,t,i)=>{e.exports=i(1609)},5448:(e,t,i)=>{var n=i(4867),r=i(6026),o=i(4372),a=i(5327),s=i(4097),l=i(4109),u=i(7985),d=i(7874),c=i(2648),p=i(644),h=i(205);e.exports=function(e){return new Promise((function(t,i){var f,m=e.data,g=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(w+":"+S)}var T=s(e.baseURL,e.url);function x(){if(b){var n="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};r((function(e){t(e),y()}),(function(e){i(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(T,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(x)},b.onabort=function(){b&&(i(new c("Request aborted",c.ECONNABORTED,e,b)),b=null)},b.onerror=function(){i(new c("Network Error",c.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(new c(t,n.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,e,b)),b=null},n.isStandardBrowserEnv()){var A=(e.withCredentials||u(T))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;A&&(g[e.xsrfHeaderName]=A)}"setRequestHeader"in b&&n.forEach(g,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){b&&(i(!e||e&&e.type?new p:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),m||(m=null);var C=h(T);C&&-1===["http","https","file"].indexOf(C)?i(new c("Unsupported protocol "+C+":",c.ERR_BAD_REQUEST,e)):b.send(m)}))}},1609:(e,t,i)=>{var n=i(4867),r=i(1849),o=i(321),a=i(7185),s=function e(t){var i=new o(t),s=r(o.prototype.request,i);return n.extend(s,o.prototype,i),n.extend(s,i),s.create=function(i){return e(a(t,i))},s}(i(5546));s.Axios=o,s.CanceledError=i(644),s.CancelToken=i(4972),s.isCancel=i(6502),s.VERSION=i(7288).version,s.toFormData=i(7675),s.AxiosError=i(2648),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=i(8713),s.isAxiosError=i(6268),e.exports=s,e.exports.default=s},4972:(e,t,i)=>{var n=i(644);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;this.promise.then((function(e){if(i._listeners){var t,n=i._listeners.length;for(t=0;t<n;t++)i._listeners[t](e);i._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){i.subscribe(e),t=e})).then(e);return n.cancel=function(){i.unsubscribe(t)},n},e((function(e){i.reason||(i.reason=new n(e),t(i.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},644:(e,t,i)=>{var n=i(2648);function r(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}i(4867).inherits(r,n,{__CANCEL__:!0}),e.exports=r},6502:e=>{e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,i)=>{var n=i(4867),r=i(5327),o=i(782),a=i(3572),s=i(7185),l=i(4097),u=i(4875),d=u.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var i=t.transitional;void 0!==i&&u.assertOptions(i,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(l),o=Promise.resolve(t);c.length;)o=o.then(c.shift(),c.shift());return o}for(var p=t;n.length;){var h=n.shift(),f=n.shift();try{p=h(p)}catch(e){f(e);break}}try{o=a(p)}catch(e){return Promise.reject(e)}for(;l.length;)o=o.then(l.shift(),l.shift());return o},c.prototype.getUri=function(e){e=s(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,i){return this.request(s(i||{},{method:e,url:t,data:(i||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(i,n,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:n}))}}c.prototype[e]=t(),c.prototype[e+"Form"]=t(!0)})),e.exports=c},2648:(e,t,i)=>{var n=i(4867);function r(e,t,i,n,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),n&&(this.request=n),r&&(this.response=r)}n.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=r.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(r,a),Object.defineProperty(o,"isAxiosError",{value:!0}),r.from=function(e,t,i,a,s,l){var u=Object.create(o);return n.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,i,a,s),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},782:(e,t,i)=>{var n=i(4867);function r(){this.handlers=[]}r.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},4097:(e,t,i)=>{var n=i(1793),r=i(7303);e.exports=function(e,t){return e&&!n(t)?r(e,t):t}},3572:(e,t,i)=>{var n=i(4867),r=i(8527),o=i(6502),a=i(5546),s=i(644);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},7185:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){t=t||{};var i={};function r(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function o(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:r(void 0,e[i]):r(e[i],t[i])}function a(e){if(!n.isUndefined(t[e]))return r(void 0,t[e])}function s(i){return n.isUndefined(t[i])?n.isUndefined(e[i])?void 0:r(void 0,e[i]):r(void 0,t[i])}function l(i){return i in t?r(e[i],t[i]):i in e?r(void 0,e[i]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);n.isUndefined(r)&&t!==l||(i[e]=r)})),i}},6026:(e,t,i)=>{var n=i(2648);e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(new n("Request failed with status code "+i.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i)):e(i)}},8527:(e,t,i)=>{var n=i(4867),r=i(5546);e.exports=function(e,t,i){var o=this||r;return n.forEach(i,(function(i){e=i.call(o,e,t)})),e}},5546:(e,t,i)=>{var n=i(4867),r=i(6016),o=i(2648),a=i(7874),s=i(7675),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d,c={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(d=i(5448)),d),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var i,o=n.isObject(e),a=t&&t["Content-Type"];if((i=n.isFileList(e))||o&&"multipart/form-data"===a){var l=this.env&&this.env.FormData;return s(i?{"files[]":e}:e,l&&new l)}return o||"application/json"===a?(u(t,"application/json"),function(e,t,i){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,i=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!i&&"json"===this.responseType;if(a||r&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i(1623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(l)})),e.exports=c},7874:e=>{e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:e=>{e.exports={version:"0.27.2"}},1849:e=>{e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},5327:(e,t,i)=>{var n=i(4867);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var o;if(i)o=i(t);else if(n.isURLSearchParams(t))o=t.toString();else{var a=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,i)=>{var n=i(4867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,i,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&s.push("expires="+new Date(i).toGMTString()),n.isString(r)&&s.push("path="+r),n.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,i)=>{var n=i(4867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,i)=>{var n=i(4867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var n=e;return t&&(i.setAttribute("href",n),n=i.href),i.setAttribute("href",n),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(t){var i=n.isString(t)?r(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},6016:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){n.forEach(e,(function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])}))}},1623:e=>{e.exports=null},4109:(e,t,i)=>{var n=i(4867),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,o,a={};return e?(n.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=n.trim(e.substr(0,o)).toLowerCase(),i=n.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([i]):a[t]?a[t]+", "+i:i}})),a):a}},205:e=>{e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8713:e=>{e.exports=function(e){return function(t){return e.apply(null,t)}}},7675:(e,t,i)=>{var n=i(4867);e.exports=function(e,t){t=t||new FormData;var i=[];function r(e){return null===e?"":n.isDate(e)?e.toISOString():n.isArrayBuffer(e)||n.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(o,a){if(n.isPlainObject(o)||n.isArray(o)){if(-1!==i.indexOf(o))throw Error("Circular reference detected in "+a);i.push(o),n.forEach(o,(function(i,o){if(!n.isUndefined(i)){var s,l=a?a+"."+o:o;if(i&&!a&&"object"==typeof i)if(n.endsWith(o,"{}"))i=JSON.stringify(i);else if(n.endsWith(o,"[]")&&(s=n.toArray(i)))return void s.forEach((function(e){!n.isUndefined(e)&&t.append(l,r(e))}));e(i,l)}})),i.pop()}else t.append(a,r(o))}(e),t}},4875:(e,t,i)=>{var n=i(7288).version,r=i(2648),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,i){function o(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,n,s){if(!1===e)throw new r(o(n," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!a[n]&&(a[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,s)}},e.exports={assertOptions:function(e,t,i){if("object"!=typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),o=n.length;o-- >0;){var a=n[o],s=t[a];if(s){var l=e[a],u=void 0===l||s(l,a,e);if(!0!==u)throw new r("option "+a+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==i)throw new r("Unknown option "+a,r.ERR_BAD_OPTION)}},validators:o}},4867:(e,t,i)=>{var n,r=i(1849),o=Object.prototype.toString,a=(n=Object.create(null),function(e){var t=o.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function l(e){return Array.isArray(e)}function u(e){return void 0===e}var d=s("ArrayBuffer");function c(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),f=s("File"),m=s("Blob"),g=s("FileList");function v(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),l(e))for(var i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var w,S=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isPlainObject:p,isUndefined:u,isDate:h,isFile:f,isBlob:m,isFunction:v,isStream:function(e){return c(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:b,merge:function e(){var t={};function i(i,n){p(t[n])&&p(i)?t[n]=e(t[n],i):p(i)?t[n]=e({},i):l(i)?t[n]=i.slice():t[n]=i}for(var n=0,r=arguments.length;n<r;n++)b(arguments[n],i);return t},extend:function(e,t,i){return b(t,(function(t,n){e[n]=i&&"function"==typeof t?r(t,i):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,i,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,i&&Object.assign(e.prototype,i)},toFlatObject:function(e,t,i){var n,r,o,a={};t=t||{};do{for(r=(n=Object.getOwnPropertyNames(e)).length;r-- >0;)a[o=n[r]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,i){e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;var n=e.indexOf(t,i);return-1!==n&&n===i},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var i=new Array(t);t-- >0;)i[t]=e[t];return i},isTypedArray:S,isFileList:g}},4184:(e,t)=>{var i;!function(){var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var i=arguments[t];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)){if(i.length){var a=r.apply(null,i);a&&e.push(a)}}else if("object"===o)if(i.toString===Object.prototype.toString)for(var s in i)n.call(i,s)&&i[s]&&e.push(s);else e.push(i.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i)}()},3631:(e,t,i)=>{i.d(t,{Z:()=>s});var n=i(8081),r=i.n(n),o=i(5879),a=i.n(o)()(r());a.push([e.id,"@media screen and (min-width: 767px) {\n .meetelise-chat.pane.launcher__desktop {\n right: -32px;\n }\n}\n",""]);const s=a},5879:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i})).join("")},t.i=function(e,i,n,r,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<e.length;u++){var d=[].concat(e[u]);n&&a[d[0]]||(void 0!==o&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),i&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=i):d[2]=i),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},8081:e=>{e.exports=function(e){return e[1]}},7856:function(e){e.exports=function(){const{entries:e,setPrototypeOf:t,isFrozen:i,getPrototypeOf:n,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:a,create:s}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),a||(a=function(e){return e}),l||(l=function(e,t,i){return e.apply(t,i)}),u||(u=function(e,t){return new e(...t)});const d=x(Array.prototype.forEach),c=x(Array.prototype.pop),p=x(Array.prototype.push),h=x(String.prototype.toLowerCase),f=x(String.prototype.toString),m=x(String.prototype.match),g=x(String.prototype.replace),v=x(String.prototype.indexOf),y=x(String.prototype.trim),b=x(Object.prototype.hasOwnProperty),w=x(RegExp.prototype.test),S=(T=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return u(T,t)});var T;function x(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return l(e,t,n)}}function A(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h;t&&t(e,null);let o=n.length;for(;o--;){let t=n[o];if("string"==typeof t){const e=r(t);e!==t&&(i(n)||(n[o]=e),t=e)}e[t]=!0}return e}function C(e){for(let t=0;t<e.length;t++)b(e,t)||(e[t]=null);return e}function O(t){const i=s(null);for(const[n,r]of e(t))b(t,n)&&(Array.isArray(r)?i[n]=C(r):r&&"object"==typeof r&&r.constructor===Object?i[n]=O(r):i[n]=r);return i}function I(e,t){for(;null!==e;){const i=r(e,t);if(i){if(i.get)return x(i.get);if("function"==typeof i.value)return x(i.value)}e=n(e)}return function(){return null}}const N=o(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),E=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_=o(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=o(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),M=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=o(["#text"]),D=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),k=o(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),q=a(/<%[\w\W]*|[\w\W]*%>/gm),J=a(/\${[\w\W]*}/gm),j=a(/^data-[\-\w.\u00B7-\uFFFF]/),H=a(/^aria-[\-\w]+$/),G=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=a(/^(?:\w+script|data):/i),W=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),V=a(/^html$/i),Q=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var K=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:q,TMPLIT_EXPR:J,DATA_ATTR:j,ARIA_ATTR:H,IS_ALLOWED_URI:G,IS_SCRIPT_OR_DATA:z,ATTR_WHITESPACE:W,DOCTYPE_NAME:V,CUSTOM_ELEMENT:Q});const X=function(){return"undefined"==typeof window?null:window},Y=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const r="dompurify"+(i?"#"+i:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=e=>t(e);if(n.version="3.1.2",n.removed=[],!i||!i.document||9!==i.document.nodeType)return n.isSupported=!1,n;let{document:r}=i;const a=r,l=a.currentScript,{DocumentFragment:u,HTMLTemplateElement:T,Node:x,Element:C,NodeFilter:B,NamedNodeMap:q=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:J,DOMParser:j,trustedTypes:H}=i,z=C.prototype,W=I(z,"cloneNode"),Q=I(z,"nextSibling"),$=I(z,"childNodes"),Z=I(z,"parentNode");if("function"==typeof T){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ee,te="";const{implementation:ie,createNodeIterator:ne,createDocumentFragment:re,getElementsByTagName:oe}=r,{importNode:ae}=a;let se={};n.isSupported="function"==typeof e&&"function"==typeof Z&&ie&&void 0!==ie.createHTMLDocument;const{MUSTACHE_EXPR:le,ERB_EXPR:ue,TMPLIT_EXPR:de,DATA_ATTR:ce,ARIA_ATTR:pe,IS_SCRIPT_OR_DATA:he,ATTR_WHITESPACE:fe,CUSTOM_ELEMENT:me}=K;let{IS_ALLOWED_URI:ge}=K,ve=null;const ye=A({},[...N,...E,...R,...P,...F]);let be=null;const we=A({},[...D,...k,...U,...L]);let Se=Object.seal(s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,xe=null,Ae=!0,Ce=!0,Oe=!1,Ie=!0,Ne=!1,Ee=!0,Re=!1,_e=!1,Pe=!1,Me=!1,Fe=!1,De=!1,ke=!0,Ue=!1;const Le="user-content-";let Be=!0,qe=!1,Je={},je=null;const He=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ge=null;const ze=A({},["audio","video","img","source","image","track"]);let We=null;const Ve=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Qe="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let Ye=Xe,$e=!1,Ze=null;const et=A({},[Qe,Ke,Xe],f);let tt=null;const it=["application/xhtml+xml","text/html"],nt="text/html";let rt=null,ot=null;const at=255,st=r.createElement("form"),lt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ot||ot!==e){if(e&&"object"==typeof e||(e={}),e=O(e),tt=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?nt:e.PARSER_MEDIA_TYPE,rt="application/xhtml+xml"===tt?f:h,ve=b(e,"ALLOWED_TAGS")?A({},e.ALLOWED_TAGS,rt):ye,be=b(e,"ALLOWED_ATTR")?A({},e.ALLOWED_ATTR,rt):we,Ze=b(e,"ALLOWED_NAMESPACES")?A({},e.ALLOWED_NAMESPACES,f):et,We=b(e,"ADD_URI_SAFE_ATTR")?A(O(Ve),e.ADD_URI_SAFE_ATTR,rt):Ve,Ge=b(e,"ADD_DATA_URI_TAGS")?A(O(ze),e.ADD_DATA_URI_TAGS,rt):ze,je=b(e,"FORBID_CONTENTS")?A({},e.FORBID_CONTENTS,rt):He,Te=b(e,"FORBID_TAGS")?A({},e.FORBID_TAGS,rt):{},xe=b(e,"FORBID_ATTR")?A({},e.FORBID_ATTR,rt):{},Je=!!b(e,"USE_PROFILES")&&e.USE_PROFILES,Ae=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ne=e.SAFE_FOR_TEMPLATES||!1,Ee=!1!==e.SAFE_FOR_XML,Re=e.WHOLE_DOCUMENT||!1,Me=e.RETURN_DOM||!1,Fe=e.RETURN_DOM_FRAGMENT||!1,De=e.RETURN_TRUSTED_TYPE||!1,Pe=e.FORCE_BODY||!1,ke=!1!==e.SANITIZE_DOM,Ue=e.SANITIZE_NAMED_PROPS||!1,Be=!1!==e.KEEP_CONTENT,qe=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||G,Ye=e.NAMESPACE||Xe,Se=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Se.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&<(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Se.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Se.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ne&&(Ce=!1),Fe&&(Me=!0),Je&&(ve=A({},F),be=[],!0===Je.html&&(A(ve,N),A(be,D)),!0===Je.svg&&(A(ve,E),A(be,k),A(be,L)),!0===Je.svgFilters&&(A(ve,R),A(be,k),A(be,L)),!0===Je.mathMl&&(A(ve,P),A(be,U),A(be,L))),e.ADD_TAGS&&(ve===ye&&(ve=O(ve)),A(ve,e.ADD_TAGS,rt)),e.ADD_ATTR&&(be===we&&(be=O(be)),A(be,e.ADD_ATTR,rt)),e.ADD_URI_SAFE_ATTR&&A(We,e.ADD_URI_SAFE_ATTR,rt),e.FORBID_CONTENTS&&(je===He&&(je=O(je)),A(je,e.FORBID_CONTENTS,rt)),Be&&(ve["#text"]=!0),Re&&A(ve,["html","head","body"]),ve.table&&(A(ve,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=e.TRUSTED_TYPES_POLICY,te=ee.createHTML("")}else void 0===ee&&(ee=Y(H,l)),null!==ee&&"string"==typeof te&&(te=ee.createHTML(""));o&&o(e),ot=e}},dt=A({},["mi","mo","mn","ms","mtext"]),ct=A({},["foreignobject","annotation-xml"]),pt=A({},["title","style","font","a","script"]),ht=A({},[...E,...R,..._]),ft=A({},[...P,...M]),mt=function(e){let t=Z(e);t&&t.tagName||(t={namespaceURI:Ye,tagName:"template"});const i=h(e.tagName),n=h(t.tagName);return!!Ze[e.namespaceURI]&&(e.namespaceURI===Ke?t.namespaceURI===Xe?"svg"===i:t.namespaceURI===Qe?"svg"===i&&("annotation-xml"===n||dt[n]):Boolean(ht[i]):e.namespaceURI===Qe?t.namespaceURI===Xe?"math"===i:t.namespaceURI===Ke?"math"===i&&ct[n]:Boolean(ft[i]):e.namespaceURI===Xe?!(t.namespaceURI===Ke&&!ct[n])&&!(t.namespaceURI===Qe&&!dt[n])&&!ft[i]&&(pt[i]||!ht[i]):!("application/xhtml+xml"!==tt||!Ze[e.namespaceURI]))},gt=function(e){p(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},vt=function(e,t){try{p(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!be[e])if(Me||Fe)try{gt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){let t=null,i=null;if(Pe)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===tt&&Ye===Xe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=ee?ee.createHTML(e):e;if(Ye===Xe)try{t=(new j).parseFromString(n,tt)}catch(e){}if(!t||!t.documentElement){t=ie.createDocument(Ye,"template",null);try{t.documentElement.innerHTML=$e?te:n}catch(e){}}const o=t.body||t.documentElement;return e&&i&&o.insertBefore(r.createTextNode(i),o.childNodes[0]||null),Ye===Xe?oe.call(t,Re?"html":"body")[0]:Re?t.documentElement:o},bt=function(e){return ne.call(e.ownerDocument||e,e,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof J&&(void 0!==e.__depth&&"number"!=typeof e.__depth||void 0!==e.__removalCount&&"number"!=typeof e.__removalCount||"string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof q)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(e){return"function"==typeof x&&e instanceof x},Tt=function(e,t,i){se[e]&&d(se[e],(e=>{e.call(n,t,i,ot)}))},xt=function(e){let t=null;if(Tt("beforeSanitizeElements",e,null),wt(e))return gt(e),!0;const i=rt(e.nodeName);if(Tt("uponSanitizeElement",e,{tagName:i,allowedTags:ve}),e.hasChildNodes()&&!St(e.firstElementChild)&&w(/<[/\w]/g,e.innerHTML)&&w(/<[/\w]/g,e.textContent))return gt(e),!0;if(7===e.nodeType)return gt(e),!0;if(Ee&&8===e.nodeType&&w(/<[/\w]/g,e.data))return gt(e),!0;if(!ve[i]||Te[i]){if(!Te[i]&&Ct(i)){if(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,i))return!1;if(Se.tagNameCheck instanceof Function&&Se.tagNameCheck(i))return!1}if(Be&&!je[i]){const t=Z(e)||e.parentNode,i=$(e)||e.childNodes;if(i&&t)for(let n=i.length-1;n>=0;--n){const r=W(i[n],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,Q(e))}}return gt(e),!0}return e instanceof C&&!mt(e)?(gt(e),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!w(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ne&&3===e.nodeType&&(t=e.textContent,d([le,ue,de],(e=>{t=g(t,e," ")})),e.textContent!==t&&(p(n.removed,{element:e.cloneNode()}),e.textContent=t)),Tt("afterSanitizeElements",e,null),!1):(gt(e),!0)},At=function(e,t,i){if(ke&&("id"===t||"name"===t)&&(i in r||i in st))return!1;if(Ce&&!xe[t]&&w(ce,t));else if(Ae&&w(pe,t));else if(!be[t]||xe[t]){if(!(Ct(e)&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,e)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(e))&&(Se.attributeNameCheck instanceof RegExp&&w(Se.attributeNameCheck,t)||Se.attributeNameCheck instanceof Function&&Se.attributeNameCheck(t))||"is"===t&&Se.allowCustomizedBuiltInElements&&(Se.tagNameCheck instanceof RegExp&&w(Se.tagNameCheck,i)||Se.tagNameCheck instanceof Function&&Se.tagNameCheck(i))))return!1}else if(We[t]);else if(w(ge,g(i,fe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==v(i,"data:")||!Ge[e])if(Oe&&!w(he,g(i,fe,"")));else if(i)return!1;return!0},Ct=function(e){return"annotation-xml"!==e&&m(e,me)},Ot=function(e){Tt("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:l}=o,u=rt(a);let p="value"===a?l:y(l);if(i.attrName=u,i.attrValue=p,i.keepAttr=!0,i.forceKeepAttr=void 0,Tt("uponSanitizeAttribute",e,i),p=i.attrValue,i.forceKeepAttr)continue;if(vt(a,e),!i.keepAttr)continue;if(!Ie&&w(/\/>/i,p)){vt(a,e);continue}Ne&&d([le,ue,de],(e=>{p=g(p,e," ")}));const h=rt(e.nodeName);if(At(h,u,p)){if(!Ue||"id"!==u&&"name"!==u||(vt(a,e),p=Le+p),ee&&"object"==typeof H&&"function"==typeof H.getAttributeType)if(s);else switch(H.getAttributeType(h,u)){case"TrustedHTML":p=ee.createHTML(p);break;case"TrustedScriptURL":p=ee.createScriptURL(p)}try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),c(n.removed)}catch(e){}}}Tt("afterSanitizeAttributes",e,null)},It=function e(t){let i=null;const n=bt(t);for(Tt("beforeSanitizeShadowDOM",t,null);i=n.nextNode();){if(Tt("uponSanitizeShadowNode",i,null),xt(i))continue;const t=Z(i);1===i.nodeType&&(t&&t.__depth?i.__depth=(i.__removalCount||0)+t.__depth+1:i.__depth=1),i.__depth>=at&>(i),i.content instanceof u&&(i.content.__depth=i.__depth,e(i.content)),Ot(i)}Tt("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,o=null,s=null;if($e=!e,$e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!St(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!n.isSupported)return e;if(_e||ut(t),n.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=rt(e.nodeName);if(!ve[t]||Te[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof x)i=yt("\x3c!----\x3e"),r=i.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r);else{if(!Me&&!Ne&&!Re&&-1===e.indexOf("<"))return ee&&De?ee.createHTML(e):e;if(i=yt(e),!i)return Me?null:De?te:""}i&&Pe&>(i.firstChild);const l=bt(qe?e:i);for(;o=l.nextNode();){if(xt(o))continue;const e=Z(o);1===o.nodeType&&(e&&e.__depth?o.__depth=(o.__removalCount||0)+e.__depth+1:o.__depth=1),o.__depth>=at&>(o),o.content instanceof u&&(o.content.__depth=o.__depth,It(o.content)),Ot(o)}if(qe)return e;if(Me){if(Fe)for(s=re.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(be.shadowroot||be.shadowrootmode)&&(s=ae.call(a,s,!0)),s}let c=Re?i.outerHTML:i.innerHTML;return Re&&ve["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&w(V,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),Ne&&d([le,ue,de],(e=>{c=g(c,e," ")})),ee&&De?ee.createHTML(c):c},n.setConfig=function(){ut(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),_e=!0},n.clearConfig=function(){ot=null,_e=!1},n.isValidAttribute=function(e,t,i){ot||ut({});const n=rt(e),r=rt(t);return At(n,r,i)},n.addHook=function(e,t){"function"==typeof t&&(se[e]=se[e]||[],p(se[e],t))},n.removeHook=function(e){if(se[e])return c(se[e])},n.removeHooks=function(e){se[e]&&(se[e]=[])},n.removeAllHooks=function(){se={}},n}()}()},8552:(e,t,i)=>{var n=i(852)(i(5639),"DataView");e.exports=n},1989:(e,t,i)=>{var n=i(1789),r=i(401),o=i(7667),a=i(1327),s=i(1866);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},8407:(e,t,i)=>{var n=i(7040),r=i(4125),o=i(2117),a=i(7529),s=i(4705);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},7071:(e,t,i)=>{var n=i(852)(i(5639),"Map");e.exports=n},3369:(e,t,i)=>{var n=i(4785),r=i(1285),o=i(6e3),a=i(9916),s=i(5265);function l(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},3818:(e,t,i)=>{var n=i(852)(i(5639),"Promise");e.exports=n},8525:(e,t,i)=>{var n=i(852)(i(5639),"Set");e.exports=n},8668:(e,t,i)=>{var n=i(3369),r=i(619),o=i(2385);function a(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new n;++t<i;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=o,e.exports=a},6384:(e,t,i)=>{var n=i(8407),r=i(7465),o=i(3779),a=i(7599),s=i(4758),l=i(4309);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},2705:(e,t,i)=>{var n=i(5639).Symbol;e.exports=n},1149:(e,t,i)=>{var n=i(5639).Uint8Array;e.exports=n},577:(e,t,i)=>{var n=i(852)(i(5639),"WeakMap");e.exports=n},4174:e=>{e.exports=function(e,t,i,n){for(var r=-1,o=null==e?0:e.length;++r<o;){var a=e[r];t(n,a,i(a),e)}return n}},7412:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n&&!1!==t(e[i],i,e););return e}},4963:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,r=0,o=[];++i<n;){var a=e[i];t(a,i,e)&&(o[r++]=a)}return o}},4636:(e,t,i)=>{var n=i(2545),r=i(5694),o=i(1469),a=i(4144),s=i(5776),l=i(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=o(e),d=!i&&r(e),c=!i&&!d&&a(e),p=!i&&!d&&!c&&l(e),h=i||d||c||p,f=h?n(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||h&&("length"==g||c&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}},9932:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length,r=Array(n);++i<n;)r[i]=t(e[i],i,e);return r}},2488:e=>{e.exports=function(e,t){for(var i=-1,n=t.length,r=e.length;++i<n;)e[r+i]=t[i];return e}},2663:e=>{e.exports=function(e,t,i,n){var r=-1,o=null==e?0:e.length;for(n&&o&&(i=e[++r]);++r<o;)i=t(i,e[r],r,e);return i}},2908:e=>{e.exports=function(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}},4286:e=>{e.exports=function(e){return e.split("")}},9029:e=>{var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},8470:(e,t,i)=>{var n=i(7813);e.exports=function(e,t){for(var i=e.length;i--;)if(n(e[i][0],t))return i;return-1}},1119:(e,t,i)=>{var n=i(9881);e.exports=function(e,t,i,r){return n(e,(function(e,n,o){t(r,e,i(e),o)})),r}},9465:(e,t,i)=>{var n=i(8777);e.exports=function(e,t,i){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},3118:(e,t,i)=>{var n=i(3218),r=Object.create,o=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();e.exports=o},9881:(e,t,i)=>{var n=i(7816),r=i(9291)(n);e.exports=r},8483:(e,t,i)=>{var n=i(5063)();e.exports=n},7816:(e,t,i)=>{var n=i(8483),r=i(3674);e.exports=function(e,t){return e&&n(e,t,r)}},7786:(e,t,i)=>{var n=i(1811),r=i(327);e.exports=function(e,t){for(var i=0,o=(t=n(t,e)).length;null!=e&&i<o;)e=e[r(t[i++])];return i&&i==o?e:void 0}},8866:(e,t,i)=>{var n=i(2488),r=i(1469);e.exports=function(e,t,i){var o=t(e);return r(e)?o:n(o,i(e))}},4239:(e,t,i)=>{var n=i(2705),r=i(9607),o=i(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):o(e)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,i)=>{var n=i(4239),r=i(7005);e.exports=function(e){return r(e)&&"[object Arguments]"==n(e)}},939:(e,t,i)=>{var n=i(2492),r=i(7005);e.exports=function e(t,i,o,a,s){return t===i||(null==t||null==i||!r(t)&&!r(i)?t!=t&&i!=i:n(t,i,o,a,e,s))}},2492:(e,t,i)=>{var n=i(6384),r=i(7114),o=i(8351),a=i(6096),s=i(4160),l=i(1469),u=i(4144),d=i(6719),c="[object Arguments]",p="[object Array]",h="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,m,g,v){var y=l(e),b=l(t),w=y?p:s(e),S=b?p:s(t),T=(w=w==c?h:w)==h,x=(S=S==c?h:S)==h,A=w==S;if(A&&u(e)){if(!u(t))return!1;y=!0,T=!1}if(A&&!T)return v||(v=new n),y||d(e)?r(e,t,i,m,g,v):o(e,t,w,i,m,g,v);if(!(1&i)){var C=T&&f.call(e,"__wrapped__"),O=x&&f.call(t,"__wrapped__");if(C||O){var I=C?e.value():e,N=O?t.value():t;return v||(v=new n),g(I,N,i,m,v)}}return!!A&&(v||(v=new n),a(e,t,i,m,g,v))}},2958:(e,t,i)=>{var n=i(6384),r=i(939);e.exports=function(e,t,i,o){var a=i.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var u=i[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<s;){var d=(u=i[a])[0],c=e[d],p=u[1];if(l&&u[2]){if(void 0===c&&!(d in e))return!1}else{var h=new n;if(o)var f=o(c,p,d,e,t,h);if(!(void 0===f?r(p,c,3,o,h):f))return!1}}return!0}},8458:(e,t,i)=>{var n=i(3560),r=i(5346),o=i(3218),a=i(346),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,p=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||r(e))&&(n(e)?p:s).test(a(e))}},8749:(e,t,i)=>{var n=i(4239),r=i(1780),o=i(7005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&r(e.length)&&!!a[n(e)]}},7206:(e,t,i)=>{var n=i(1573),r=i(6432),o=i(6557),a=i(1469),s=i(9601);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?r(e[0],e[1]):n(e):s(e)}},280:(e,t,i)=>{var n=i(5726),r=i(6916),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return r(e);var t=[];for(var i in Object(e))o.call(e,i)&&"constructor"!=i&&t.push(i);return t}},1573:(e,t,i)=>{var n=i(2958),r=i(1499),o=i(2634);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(i){return i===e||n(i,e,t)}}},6432:(e,t,i)=>{var n=i(939),r=i(7361),o=i(9095),a=i(5403),s=i(9162),l=i(2634),u=i(327);e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(i){var a=r(i,e);return void 0===a&&a===t?o(i,e):n(t,a,3)}}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,i)=>{var n=i(7786);e.exports=function(e){return function(t){return n(t,e)}}},8674:e=>{e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},4259:e=>{e.exports=function(e,t,i){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(r);++n<r;)o[n]=e[n+t];return o}},2545:e=>{e.exports=function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}},531:(e,t,i)=>{var n=i(2705),r=i(9932),o=i(1469),a=i(3448),s=n?n.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return r(t,e)+"";if(a(t))return l?l.call(t):"";var i=t+"";return"0"==i&&1/t==-1/0?"-0":i}},7518:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,i)=>{var n=i(1469),r=i(5403),o=i(5514),a=i(9833);e.exports=function(e,t){return n(e)?e:r(e,t)?[e]:o(a(e))}},180:(e,t,i)=>{var n=i(4259);e.exports=function(e,t,i){var r=e.length;return i=void 0===i?r:i,!t&&i>=r?e:n(e,t,i)}},4429:(e,t,i)=>{var n=i(5639)["__core-js_shared__"];e.exports=n},5189:(e,t,i)=>{var n=i(4174),r=i(1119),o=i(7206),a=i(1469);e.exports=function(e,t){return function(i,s){var l=a(i)?n:r,u=t?t():{};return l(i,e,o(s,2),u)}}},9291:(e,t,i)=>{var n=i(8612);e.exports=function(e,t){return function(i,r){if(null==i)return i;if(!n(i))return e(i,r);for(var o=i.length,a=t?o:-1,s=Object(i);(t?a--:++a<o)&&!1!==r(s[a],a,s););return i}}},5063:e=>{e.exports=function(e){return function(t,i,n){for(var r=-1,o=Object(t),a=n(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===i(o[l],l,o))break}return t}}},8805:(e,t,i)=>{var n=i(180),r=i(2689),o=i(3140),a=i(9833);e.exports=function(e){return function(t){t=a(t);var i=r(t)?o(t):void 0,s=i?i[0]:t.charAt(0),l=i?n(i,1).join(""):t.slice(1);return s[e]()+l}}},5393:(e,t,i)=>{var n=i(2663),r=i(3816),o=i(8748),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(r(t).replace(a,"")),e,"")}}},9389:(e,t,i)=>{var n=i(8674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},8777:(e,t,i)=>{var n=i(852),r=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},7114:(e,t,i)=>{var n=i(8668),r=i(2908),o=i(4757);e.exports=function(e,t,i,a,s,l){var u=1&i,d=e.length,c=t.length;if(d!=c&&!(u&&c>d))return!1;var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var f=-1,m=!0,g=2&i?new n:void 0;for(l.set(e,t),l.set(t,e);++f<d;){var v=e[f],y=t[f];if(a)var b=u?a(y,v,f,t,e,l):a(v,y,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!r(t,(function(e,t){if(!o(g,t)&&(v===e||s(v,e,i,a,l)))return g.push(t)}))){m=!1;break}}else if(v!==y&&!s(v,y,i,a,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},8351:(e,t,i)=>{var n=i(2705),r=i(1149),o=i(7813),a=i(7114),s=i(8776),l=i(1814),u=n?n.prototype:void 0,d=u?u.valueOf:void 0;e.exports=function(e,t,i,n,u,c,p){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!c(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var f=1&n;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=p.get(e);if(m)return m==t;n|=2,p.set(e,t);var g=a(h(e),h(t),n,u,c,p);return p.delete(e),g;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},6096:(e,t,i)=>{var n=i(8234),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,o,a,s){var l=1&i,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var c=d;c--;){var p=u[c];if(!(l?p in t:r.call(t,p)))return!1}var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++c<d;){var v=e[p=u[c]],y=t[p];if(o)var b=l?o(y,v,p,t,e,s):o(v,y,p,e,t,s);if(!(void 0===b?v===y||a(v,y,i,o,s):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(m=!1)}return s.delete(e),s.delete(t),m}},1957:(e,t,i)=>{var n="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=n},8234:(e,t,i)=>{var n=i(8866),r=i(9551),o=i(3674);e.exports=function(e){return n(e,o,r)}},5050:(e,t,i)=>{var n=i(7019);e.exports=function(e,t){var i=e.__data__;return n(t)?i["string"==typeof t?"string":"hash"]:i.map}},1499:(e,t,i)=>{var n=i(9162),r=i(3674);e.exports=function(e){for(var t=r(e),i=t.length;i--;){var o=t[i],a=e[o];t[i]=[o,a,n(a)]}return t}},852:(e,t,i)=>{var n=i(8458),r=i(7801);e.exports=function(e,t){var i=r(e,t);return n(i)?i:void 0}},5924:(e,t,i)=>{var n=i(5569)(Object.getPrototypeOf,Object);e.exports=n},9607:(e,t,i)=>{var n=i(2705),r=Object.prototype,o=r.hasOwnProperty,a=r.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),i=e[s];try{e[s]=void 0;var n=!0}catch(e){}var r=a.call(e);return n&&(t?e[s]=i:delete e[s]),r}},9551:(e,t,i)=>{var n=i(4963),r=i(479),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:r;e.exports=s},4160:(e,t,i)=>{var n=i(8552),r=i(7071),o=i(3818),a=i(8525),s=i(577),l=i(4239),u=i(346),d="[object Map]",c="[object Promise]",p="[object Set]",h="[object WeakMap]",f="[object DataView]",m=u(n),g=u(r),v=u(o),y=u(a),b=u(s),w=l;(n&&w(new n(new ArrayBuffer(1)))!=f||r&&w(new r)!=d||o&&w(o.resolve())!=c||a&&w(new a)!=p||s&&w(new s)!=h)&&(w=function(e){var t=l(e),i="[object Object]"==t?e.constructor:void 0,n=i?u(i):"";if(n)switch(n){case m:return f;case g:return d;case v:return c;case y:return p;case b:return h}return t}),e.exports=w},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,i)=>{var n=i(1811),r=i(5694),o=i(1469),a=i(5776),s=i(1780),l=i(327);e.exports=function(e,t,i){for(var u=-1,d=(t=n(t,e)).length,c=!1;++u<d;){var p=l(t[u]);if(!(c=null!=e&&i(e,p)))break;e=e[p]}return c||++u!=d?c:!!(d=null==e?0:e.length)&&s(d)&&a(p,d)&&(o(e)||r(e))}},2689:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},3157:e=>{var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},1789:(e,t,i)=>{var n=i(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,i)=>{var n=i(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return r.call(t,e)?t[e]:void 0}},1327:(e,t,i)=>{var n=i(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:r.call(t,e)}},1866:(e,t,i)=>{var n=i(4536);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var n=typeof e;return!!(i=null==i?9007199254740991:i)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<i}},5403:(e,t,i)=>{var n=i(1469),r=i(3448),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!r(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,i)=>{var n,r=i(4429),o=(n=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},9162:(e,t,i)=>{var n=i(3218);e.exports=function(e){return e==e&&!n(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,i)=>{var n=i(8470),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=n(t,e);return!(i<0||(i==t.length-1?t.pop():r.call(t,i,1),--this.size,0))}},2117:(e,t,i)=>{var n=i(8470);e.exports=function(e){var t=this.__data__,i=n(t,e);return i<0?void 0:t[i][1]}},7529:(e,t,i)=>{var n=i(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,i)=>{var n=i(8470);e.exports=function(e,t){var i=this.__data__,r=n(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this}},4785:(e,t,i)=>{var n=i(1989),r=i(8407),o=i(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||r),string:new n}}},1285:(e,t,i)=>{var n=i(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,i)=>{var n=i(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,i)=>{var n=i(5050);e.exports=function(e,t){var i=n(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}},2634:e=>{e.exports=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}}},4523:(e,t,i)=>{var n=i(8306);e.exports=function(e){var t=n(e,(function(e){return 500===i.size&&i.clear(),e})),i=t.cache;return t}},4536:(e,t,i)=>{var n=i(852)(Object,"create");e.exports=n},6916:(e,t,i)=>{var n=i(5569)(Object.keys,Object);e.exports=n},1167:(e,t,i)=>{e=i.nmd(e);var n=i(1957),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(i){return e(t(i))}}},5639:(e,t,i)=>{var n=i(1957),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();e.exports=o},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}},7465:(e,t,i)=>{var n=i(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,i)=>{var n=i(8407),r=i(7071),o=i(3369);e.exports=function(e,t){var i=this.__data__;if(i instanceof n){var a=i.__data__;if(!r||a.length<199)return a.push([e,t]),this.size=++i.size,this;i=this.__data__=new o(a)}return i.set(e,t),this.size=i.size,this}},3140:(e,t,i)=>{var n=i(4286),r=i(2689),o=i(676);e.exports=function(e){return r(e)?o(e):n(e)}},5514:(e,t,i)=>{var n=i(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,i,n,r){t.push(n?r.replace(o,"$1"):i||e)})),t}));e.exports=a},327:(e,t,i)=>{var n=i(3448);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},676:e=>{var t="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",n="[^\\ud800-\\udfff]",r="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",a="(?:"+t+"|"+i+")?",s="[\\ufe0e\\ufe0f]?",l=s+a+"(?:\\u200d(?:"+[n,r,o].join("|")+")"+s+a+")*",u="(?:"+[n+t+"?",t,r,o,"[\\ud800-\\udfff]"].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+l,"g");e.exports=function(e){return e.match(d)||[]}},2757:e=>{var t="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",o="\\d+",a="["+t+"]",s="[^\\ud800-\\udfff"+n+o+"\\u2700-\\u27bf"+t+i+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",d="["+i+"]",c="(?:"+a+"|"+s+")",p="(?:"+d+"|"+s+")",h="(?:['’](?:d|ll|m|re|s|t|ve))?",f="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",g="[\\ufe0e\\ufe0f]?",v=g+m+"(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,u].join("|")+")"+g+m+")*",y="(?:"+["[\\u2700-\\u27bf]",l,u].join("|")+")"+v,b=RegExp([d+"?"+a+"+"+h+"(?="+[r,d,"$"].join("|")+")",p+"+"+f+"(?="+[r,d+c,"$"].join("|")+")",d+"?"+c+"+"+h,d+"+"+f,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,y].join("|"),"g");e.exports=function(e){return e.match(b)||[]}},8929:(e,t,i)=>{var n=i(8403),r=i(5393)((function(e,t,i){return t=t.toLowerCase(),e+(i?n(t):t)}));e.exports=r},8403:(e,t,i)=>{var n=i(9833),r=i(1700);e.exports=function(e){return r(n(e).toLowerCase())}},3816:(e,t,i)=>{var n=i(9389),r=i(9833),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=r(e))&&e.replace(o,n).replace(a,"")}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7361:(e,t,i)=>{var n=i(7786);e.exports=function(e,t,i){var r=null==e?void 0:n(e,t);return void 0===r?i:r}},7739:(e,t,i)=>{var n=i(9465),r=i(5189),o=Object.prototype.hasOwnProperty,a=r((function(e,t,i){o.call(e,i)?e[i].push(t):n(e,i,[t])}));e.exports=a},9095:(e,t,i)=>{var n=i(13),r=i(222);e.exports=function(e,t){return null!=e&&r(e,t,n)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,i)=>{var n=i(9454),r=i(7005),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,i)=>{var n=i(3560),r=i(1780);e.exports=function(e){return null!=e&&r(e.length)&&!n(e)}},4144:(e,t,i)=>{e=i.nmd(e);var n=i(5639),r=i(5062),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||r;e.exports=l},8367:(e,t,i)=>{var n=i(280),r=i(4160),o=i(5694),a=i(1469),s=i(8612),l=i(4144),u=i(5726),d=i(6719),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||d(e)||o(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!n(e).length;for(var i in e)if(c.call(e,i))return!1;return!0}},3560:(e,t,i)=>{var n=i(4239),r=i(3218);e.exports=function(e){if(!r(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,i)=>{var n=i(4239),r=i(7005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},6719:(e,t,i)=>{var n=i(8749),r=i(7518),o=i(1167),a=o&&o.isTypedArray,s=a?r(a):n;e.exports=s},3674:(e,t,i)=>{var n=i(4636),r=i(280),o=i(8612);e.exports=function(e){return o(e)?n(e):r(e)}},6604:(e,t,i)=>{var n=i(9465),r=i(7816),o=i(7206);e.exports=function(e,t){var i={};return t=o(t,3),r(e,(function(e,r,o){n(i,r,t(e,r,o))})),i}},8306:(e,t,i)=>{var n=i(3369);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function(){var n=arguments,r=t?t.apply(this,n):n[0],o=i.cache;if(o.has(r))return o.get(r);var a=e.apply(this,n);return i.cache=o.set(r,a)||o,a};return i.cache=new(r.Cache||n),i}r.Cache=n,e.exports=r},308:e=>{e.exports=function(){}},9601:(e,t,i)=>{var n=i(371),r=i(9152),o=i(5403),a=i(327);e.exports=function(e){return o(e)?n(a(e)):r(e)}},1865:(e,t,i)=>{var n=i(5393)((function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}));e.exports=n},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},9833:(e,t,i)=>{var n=i(531);e.exports=function(e){return null==e?"":n(e)}},8718:(e,t,i)=>{var n=i(7412),r=i(3118),o=i(7816),a=i(7206),s=i(5924),l=i(1469),u=i(4144),d=i(3560),c=i(3218),p=i(6719);e.exports=function(e,t,i){var h=l(e),f=h||u(e)||p(e);if(t=a(t,4),null==i){var m=e&&e.constructor;i=f?h?new m:[]:c(e)&&d(m)?r(s(e)):{}}return(f?n:o)(e,(function(e,n,r){return t(i,e,n,r)})),i}},1700:(e,t,i)=>{var n=i(8805)("toUpperCase");e.exports=n},8748:(e,t,i)=>{var n=i(9029),r=i(3157),o=i(9833),a=i(2757);e.exports=function(e,t,i){return e=o(e),void 0===(t=i?void 0:t)?r(e)?a(e):n(e):e.match(t)||[]}},7418:e=>{var t=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,l=r(e),u=1;u<arguments.length;u++){for(var d in a=Object(arguments[u]))i.call(a,d)&&(l[d]=a[d]);if(t){s=t(a);for(var c=0;c<s.length;c++)n.call(a,s[c])&&(l[s[c]]=a[s[c]])}}return l}},9594:function(e,t,i){e.exports=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},e(t,i)};function t(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}var n=function(){return n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)};function r(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 r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}function o(e,t,i,n){return new(i||(i=Promise))((function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function a(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&o[0]?n.return:o[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,o[1])).done)return r;switch(n=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{i=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function u(e,t,i){if(i||2===arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{},c={exports:{}};!function(e){!function(t,i){var n=Math.pow(2,-24),r=Math.pow(2,32),o=Math.pow(2,53),a={encode:function(e){var t,n=new ArrayBuffer(256),a=new DataView(n),s=0;function l(e){for(var i=n.byteLength,r=s+e;i<r;)i*=2;if(i!==n.byteLength){var o=a;n=new ArrayBuffer(i),a=new DataView(n);for(var l=s+3>>2,u=0;u<l;++u)a.setUint32(4*u,o.getUint32(4*u))}return t=e,a}function u(){s+=t}function d(e){u(l(1).setUint8(s,e))}function c(e){for(var t=l(e.length),i=0;i<e.length;++i)t.setUint8(s+i,e[i]);u()}function p(e,t){t<24?d(e<<5|t):t<256?(d(e<<5|24),d(t)):t<65536?(d(e<<5|25),function(e){u(l(2).setUint16(s,e))}(t)):t<4294967296?(d(e<<5|26),function(e){u(l(4).setUint32(s,e))}(t)):(d(e<<5|27),function(e){var t=e%r,i=(e-t)/r,n=l(8);n.setUint32(s,i),n.setUint32(s+4,t),u()}(t))}if(function e(t){var n;if(!1===t)return d(244);if(!0===t)return d(245);if(null===t)return d(246);if(t===i)return d(247);switch(typeof t){case"number":if(Math.floor(t)===t){if(0<=t&&t<=o)return p(0,t);if(-o<=t&&t<0)return p(1,-(t+1))}return d(251),function(e){u(l(8).setFloat64(s,e))}(t);case"string":var r=[];for(n=0;n<t.length;++n){var a=t.charCodeAt(n);a<128?r.push(a):a<2048?(r.push(192|a>>6),r.push(128|63&a)):a<55296?(r.push(224|a>>12),r.push(128|a>>6&63),r.push(128|63&a)):(a=(1023&a)<<10,a|=1023&t.charCodeAt(++n),a+=65536,r.push(240|a>>18),r.push(128|a>>12&63),r.push(128|a>>6&63),r.push(128|63&a))}return p(3,r.length),c(r);default:var h;if(Array.isArray(t))for(p(4,h=t.length),n=0;n<h;++n)e(t[n]);else if(t instanceof Uint8Array)p(2,t.length),c(t);else{var f=Object.keys(t);for(p(5,h=f.length),n=0;n<h;++n){var m=f[n];e(m),e(t[m])}}}}(e),"slice"in n)return n.slice(0,s);for(var h=new ArrayBuffer(s),f=new DataView(h),m=0;m<s;++m)f.setUint8(m,a.getUint8(m));return h},decode:function(e,t,o){var a=new DataView(e),s=0;function l(e,t){return s+=t,e}function u(t){return l(new Uint8Array(e,s,t),t)}function d(){return l(a.getUint8(s),1)}function c(){return l(a.getUint16(s),2)}function p(){return l(a.getUint32(s),4)}function h(){return 255===a.getUint8(s)&&(s+=1,!0)}function f(e){if(e<24)return e;if(24===e)return d();if(25===e)return c();if(26===e)return p();if(27===e)return p()*r+p();if(31===e)return-1;throw"Invalid length encoding"}function m(e){var t=d();if(255===t)return-1;var i=f(31&t);if(i<0||t>>5!==e)throw"Invalid indefinite length element";return i}function g(e,t){for(var i=0;i<t;++i){var n=d();128&n&&(n<224?(n=(31&n)<<6|63&d(),t-=1):n<240?(n=(15&n)<<12|(63&d())<<6|63&d(),t-=2):(n=(15&n)<<18|(63&d())<<12|(63&d())<<6|63&d(),t-=3)),n<65536?e.push(n):(n-=65536,e.push(55296|n>>10),e.push(56320|1023&n))}}"function"!=typeof t&&(t=function(e){return e}),"function"!=typeof o&&(o=function(){return i});var v=function e(){var r,p,v=d(),y=v>>5,b=31&v;if(7===y)switch(b){case 25:return function(){var e=new ArrayBuffer(4),t=new DataView(e),i=c(),r=32768&i,o=31744&i,a=1023&i;if(31744===o)o=261120;else if(0!==o)o+=114688;else if(0!==a)return a*n;return t.setUint32(0,r<<16|o<<13|a<<13),t.getFloat32(0)}();case 26:return l(a.getFloat32(s),4);case 27:return l(a.getFloat64(s),8)}if((p=f(b))<0&&(y<2||6<y))throw"Invalid length";switch(y){case 0:return p;case 1:return-1-p;case 2:if(p<0){for(var w=[],S=0;(p=m(y))>=0;)S+=p,w.push(u(p));var T=new Uint8Array(S),x=0;for(r=0;r<w.length;++r)T.set(w[r],x),x+=w[r].length;return T}return u(p);case 3:var A=[];if(p<0)for(;(p=m(y))>=0;)g(A,p);else g(A,p);return String.fromCharCode.apply(null,A);case 4:var C;if(p<0)for(C=[];!h();)C.push(e());else for(C=new Array(p),r=0;r<p;++r)C[r]=e();return C;case 5:var O={};for(r=0;r<p||p<0&&!h();++r)O[e()]=e();return O;case 6:return t(e(),p);case 7:switch(p){case 20:return!1;case 21:return!0;case 22:return null;case 23:return i;default:return o(p)}}}();if(s!==e.byteLength)throw"Remaining bytes";return v}};e.exports?e.exports=a:t.CBOR||(t.CBOR=a)}(d)}(c);var p=c.exports,h={exports:{}};!function(e,t){!function(e){var t={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};function i(){var e,t,i="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(i+="-"),i+=(12===e?4:16===e?3&t|8:t).toString(16);return i}function n(e,i){var n=t[i||"all"];return n&&n.test(e)||!1}i.isUUID=n,i.VERSION="0.1.0",e.uuid=i,e.isUUID=n}(t),null!==e&&(e.exports=t.uuid)}(h,h.exports);var f=h.exports,m=function(){return f.uuid?f.uuid():f()},g=function(){function e(e){var t,i,n,r=e.setup;if(this._PNSDKSuffix={},this.instanceId="pn-".concat(m()),this.secretKey=r.secretKey||r.secret_key,this.subscribeKey=r.subscribeKey||r.subscribe_key,this.publishKey=r.publishKey||r.publish_key,this.sdkName=r.sdkName,this.sdkFamily=r.sdkFamily,this.partnerId=r.partnerId,this.setAuthKey(r.authKey),this.setCipherKey(r.cipherKey),this.setFilterExpression(r.filterExpression),"string"!=typeof r.origin&&!Array.isArray(r.origin)&&void 0!==r.origin)throw new Error("Origin must be either undefined, a string or a list of strings.");if(this.origin=r.origin||Array.from({length:20},(function(e,t){return"ps".concat(t+1,".pndsn.com")})),this.secure=r.ssl||!1,this.restore=r.restore||!1,this.proxy=r.proxy,this.keepAlive=r.keepAlive,this.keepAliveSettings=r.keepAliveSettings,this.autoNetworkDetection=r.autoNetworkDetection||!1,this.dedupeOnSubscribe=r.dedupeOnSubscribe||!1,this.maximumCacheSize=r.maximumCacheSize||100,this.customEncrypt=r.customEncrypt,this.customDecrypt=r.customDecrypt,this.fileUploadPublishRetryLimit=null!==(t=r.fileUploadPublishRetryLimit)&&void 0!==t?t:5,this.useRandomIVs=null===(i=r.useRandomIVs)||void 0===i||i,this.enableSubscribeBeta=null!==(n=r.enableSubscribeBeta)&&void 0!==n&&n,"undefined"!=typeof location&&"https:"===location.protocol&&(this.secure=!0),this.logVerbosity=r.logVerbosity||!1,this.suppressLeaveEvents=r.suppressLeaveEvents||!1,this.announceFailedHeartbeats=r.announceFailedHeartbeats||!0,this.announceSuccessfulHeartbeats=r.announceSuccessfulHeartbeats||!1,this.useInstanceId=r.useInstanceId||!1,this.useRequestId=r.useRequestId||!1,this.requestMessageCountThreshold=r.requestMessageCountThreshold,this.setTransactionTimeout(r.transactionalRequestTimeout||15e3),this.setSubscribeTimeout(r.subscribeRequestTimeout||31e4),this.setSendBeaconConfig(r.useSendBeacon||!0),r.presenceTimeout?this.setPresenceTimeout(r.presenceTimeout):this._presenceTimeout=300,null!=r.heartbeatInterval&&this.setHeartbeatInterval(r.heartbeatInterval),"string"==typeof r.userId){if("string"==typeof r.uuid)throw new Error("Only one of the following configuration options has to be provided: `uuid` or `userId`");this.setUserId(r.userId)}else{if("string"!=typeof r.uuid)throw new Error("One of the following configuration options has to be provided: `uuid` or `userId`");this.setUUID(r.uuid)}}return e.prototype.getAuthKey=function(){return this.authKey},e.prototype.setAuthKey=function(e){return this.authKey=e,this},e.prototype.setCipherKey=function(e){return this.cipherKey=e,this},e.prototype.getUUID=function(){return this.UUID},e.prototype.setUUID=function(e){if(!e||"string"!=typeof e||0===e.trim().length)throw new Error("Missing uuid parameter. Provide a valid string uuid");return this.UUID=e,this},e.prototype.getUserId=function(){return this.UUID},e.prototype.setUserId=function(e){if(!e||"string"!=typeof e||0===e.trim().length)throw new Error("Missing or invalid userId parameter. Provide a valid string userId");return this.UUID=e,this},e.prototype.getFilterExpression=function(){return this.filterExpression},e.prototype.setFilterExpression=function(e){return this.filterExpression=e,this},e.prototype.getPresenceTimeout=function(){return this._presenceTimeout},e.prototype.setPresenceTimeout=function(e){return e>=20?this._presenceTimeout=e:(this._presenceTimeout=20,console.log("WARNING: Presence timeout is less than the minimum. Using minimum value: ",this._presenceTimeout)),this.setHeartbeatInterval(this._presenceTimeout/2-1),this},e.prototype.setProxy=function(e){this.proxy=e},e.prototype.getHeartbeatInterval=function(){return this._heartbeatInterval},e.prototype.setHeartbeatInterval=function(e){return this._heartbeatInterval=e,this},e.prototype.getSubscribeTimeout=function(){return this._subscribeRequestTimeout},e.prototype.setSubscribeTimeout=function(e){return this._subscribeRequestTimeout=e,this},e.prototype.getTransactionTimeout=function(){return this._transactionalRequestTimeout},e.prototype.setTransactionTimeout=function(e){return this._transactionalRequestTimeout=e,this},e.prototype.isSendBeaconEnabled=function(){return this._useSendBeacon},e.prototype.setSendBeaconConfig=function(e){return this._useSendBeacon=e,this},e.prototype.getVersion=function(){return"7.2.2"},e.prototype._addPnsdkSuffix=function(e,t){this._PNSDKSuffix[e]=t},e.prototype._getPnsdkSuffix=function(e){var t=this;return Object.keys(this._PNSDKSuffix).reduce((function(i,n){return i+e+t._PNSDKSuffix[n]}),"")},e}();function v(e){var t=e.replace(/==?$/,""),i=Math.floor(t.length/4*3),n=new ArrayBuffer(i),r=new Uint8Array(n),o=0;function a(){var e=t.charAt(o++),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e);if(-1===i)throw new Error("Illegal character at ".concat(o,": ").concat(t.charAt(o-1)));return i}for(var s=0;s<i;s+=3){var l=a(),u=a(),d=a(),c=a(),p=(63&l)<<2|u>>4,h=(15&u)<<4|d>>2,f=(3&d)<<6|c>>0;r[s]=p,64!=d&&(r[s+1]=h),64!=c&&(r[s+2]=f)}return n}var y,b,w,S,T,x=x||function(e,t){var i={},n=i.lib={},r=function(){},o=n.Base={extend:function(e){r.prototype=this;var t=new r;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=n.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,i=e.words,n=this.sigBytes;if(e=e.sigBytes,this.clamp(),n%4)for(var r=0;r<e;r++)t[n+r>>>2]|=(i[r>>>2]>>>24-r%4*8&255)<<24-(n+r)%4*8;else if(65535<i.length)for(r=0;r<e;r+=4)t[n+r>>>2]=i[r>>>2];else t.push.apply(t,i);return this.sigBytes+=e,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=e.ceil(i/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var i=[],n=0;n<t;n+=4)i.push(4294967296*e.random()|0);return new a.init(i,t)}}),s=i.enc={},l=s.Hex={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],n=0;n<e;n++){var r=t[n>>>2]>>>24-n%4*8&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n<t;n+=2)i[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(i,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var i=[],n=0;n<e;n++)i.push(String.fromCharCode(t[n>>>2]>>>24-n%4*8&255));return i.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n<t;n++)i[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(i,t)}},d=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},c=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var i=this._data,n=i.words,r=i.sigBytes,o=this.blockSize,s=r/(4*o);if(t=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,r=e.min(4*t,r),t){for(var l=0;l<t;l+=o)this._doProcessBlock(n,l);l=n.splice(0,t),i.sigBytes-=r}return new a.init(l,r)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});n.Hasher=c.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){c.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,i){return new e.init(i).finalize(t)}},_createHmacHelper:function(e){return function(t,i){return new p.HMAC.init(e,i).finalize(t)}}});var p=i.algo={};return i}(Math);!function(e){for(var t=x,i=(r=t.lib).WordArray,n=r.Hasher,r=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},l=2,u=0;64>u;){var d;e:{d=l;for(var c=e.sqrt(d),p=2;p<=c;p++)if(!(d%p)){d=!1;break e}d=!0}d&&(8>u&&(o[u]=s(e.pow(l,.5))),a[u]=s(e.pow(l,1/3)),u++),l++}var h=[];r=r.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(e,t){for(var i=this._hash.words,n=i[0],r=i[1],o=i[2],s=i[3],l=i[4],u=i[5],d=i[6],c=i[7],p=0;64>p;p++){if(16>p)h[p]=0|e[t+p];else{var f=h[p-15],m=h[p-2];h[p]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+h[p-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+h[p-16]}f=c+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&u^~l&d)+a[p]+h[p],m=((n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22))+(n&r^n&o^r&o),c=d,d=u,u=l,l=s+f|0,s=o,o=r,r=n,n=f+m|0}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+o|0,i[3]=i[3]+s|0,i[4]=i[4]+l|0,i[5]=i[5]+u|0,i[6]=i[6]+d|0,i[7]=i[7]+c|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return i[r>>>5]|=128<<24-r%32,i[14+(r+64>>>9<<4)]=e.floor(n/4294967296),i[15+(r+64>>>9<<4)]=n,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA256=n._createHelper(r),t.HmacSHA256=n._createHmacHelper(r)}(Math),b=(y=x).enc.Utf8,y.algo.HMAC=y.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=b.parse(t));var i=e.blockSize,n=4*i;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),o=this._iKey=t.clone(),a=r.words,s=o.words,l=0;l<i;l++)a[l]^=1549556828,s[l]^=909522486;r.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}}),S=(w=x).lib.WordArray,w.enc.Base64={stringify:function(e){var t=e.words,i=e.sigBytes,n=this._map;e.clamp(),e=[];for(var r=0;r<i;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;4>a&&r+.75*a<i;a++)e.push(n.charAt(o>>>6*(3-a)&63));if(t=n.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,i=this._map;(n=i.charAt(64))&&-1!=(n=e.indexOf(n))&&(t=n);for(var n=[],r=0,o=0;o<t;o++)if(o%4){var a=i.indexOf(e.charAt(o-1))<<o%4*2,s=i.indexOf(e.charAt(o))>>>6-o%4*2;n[r>>>2]|=(a|s)<<24-r%4*8,r++}return S.create(n,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(e){function t(e,t,i,n,r,o,a){return((e=e+(t&i|~t&n)+r+a)<<o|e>>>32-o)+t}function i(e,t,i,n,r,o,a){return((e=e+(t&n|i&~n)+r+a)<<o|e>>>32-o)+t}function n(e,t,i,n,r,o,a){return((e=e+(t^i^n)+r+a)<<o|e>>>32-o)+t}function r(e,t,i,n,r,o,a){return((e=e+(i^(t|~n))+r+a)<<o|e>>>32-o)+t}for(var o=x,a=(l=o.lib).WordArray,s=l.Hasher,l=o.algo,u=[],d=0;64>d;d++)u[d]=4294967296*e.abs(e.sin(d+1))|0;l=l.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var a=0;16>a;a++){var s=e[l=o+a];e[l]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}a=this._hash.words;var l=e[o+0],d=(s=e[o+1],e[o+2]),c=e[o+3],p=e[o+4],h=e[o+5],f=e[o+6],m=e[o+7],g=e[o+8],v=e[o+9],y=e[o+10],b=e[o+11],w=e[o+12],S=e[o+13],T=e[o+14],x=e[o+15],A=t(A=a[0],I=a[1],O=a[2],C=a[3],l,7,u[0]),C=t(C,A,I,O,s,12,u[1]),O=t(O,C,A,I,d,17,u[2]),I=t(I,O,C,A,c,22,u[3]);A=t(A,I,O,C,p,7,u[4]),C=t(C,A,I,O,h,12,u[5]),O=t(O,C,A,I,f,17,u[6]),I=t(I,O,C,A,m,22,u[7]),A=t(A,I,O,C,g,7,u[8]),C=t(C,A,I,O,v,12,u[9]),O=t(O,C,A,I,y,17,u[10]),I=t(I,O,C,A,b,22,u[11]),A=t(A,I,O,C,w,7,u[12]),C=t(C,A,I,O,S,12,u[13]),O=t(O,C,A,I,T,17,u[14]),A=i(A,I=t(I,O,C,A,x,22,u[15]),O,C,s,5,u[16]),C=i(C,A,I,O,f,9,u[17]),O=i(O,C,A,I,b,14,u[18]),I=i(I,O,C,A,l,20,u[19]),A=i(A,I,O,C,h,5,u[20]),C=i(C,A,I,O,y,9,u[21]),O=i(O,C,A,I,x,14,u[22]),I=i(I,O,C,A,p,20,u[23]),A=i(A,I,O,C,v,5,u[24]),C=i(C,A,I,O,T,9,u[25]),O=i(O,C,A,I,c,14,u[26]),I=i(I,O,C,A,g,20,u[27]),A=i(A,I,O,C,S,5,u[28]),C=i(C,A,I,O,d,9,u[29]),O=i(O,C,A,I,m,14,u[30]),A=n(A,I=i(I,O,C,A,w,20,u[31]),O,C,h,4,u[32]),C=n(C,A,I,O,g,11,u[33]),O=n(O,C,A,I,b,16,u[34]),I=n(I,O,C,A,T,23,u[35]),A=n(A,I,O,C,s,4,u[36]),C=n(C,A,I,O,p,11,u[37]),O=n(O,C,A,I,m,16,u[38]),I=n(I,O,C,A,y,23,u[39]),A=n(A,I,O,C,S,4,u[40]),C=n(C,A,I,O,l,11,u[41]),O=n(O,C,A,I,c,16,u[42]),I=n(I,O,C,A,f,23,u[43]),A=n(A,I,O,C,v,4,u[44]),C=n(C,A,I,O,w,11,u[45]),O=n(O,C,A,I,x,16,u[46]),A=r(A,I=n(I,O,C,A,d,23,u[47]),O,C,l,6,u[48]),C=r(C,A,I,O,m,10,u[49]),O=r(O,C,A,I,T,15,u[50]),I=r(I,O,C,A,h,21,u[51]),A=r(A,I,O,C,w,6,u[52]),C=r(C,A,I,O,c,10,u[53]),O=r(O,C,A,I,y,15,u[54]),I=r(I,O,C,A,s,21,u[55]),A=r(A,I,O,C,g,6,u[56]),C=r(C,A,I,O,x,10,u[57]),O=r(O,C,A,I,f,15,u[58]),I=r(I,O,C,A,S,21,u[59]),A=r(A,I,O,C,p,6,u[60]),C=r(C,A,I,O,b,10,u[61]),O=r(O,C,A,I,d,15,u[62]),I=r(I,O,C,A,v,21,u[63]),a[0]=a[0]+A|0,a[1]=a[1]+I|0,a[2]=a[2]+O|0,a[3]=a[3]+C|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;i[r>>>5]|=128<<24-r%32;var o=e.floor(n/4294967296);for(i[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(i.length+1),this._process(),i=(t=this._hash).words,n=0;4>n;n++)r=i[n],i[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return t},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),o.MD5=s._createHelper(l),o.HmacMD5=s._createHmacHelper(l)}(Math),function(){var e,t=x,i=(e=t.lib).Base,n=e.WordArray,r=(e=t.algo).EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:e.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var i=(s=this.cfg).hasher.create(),r=n.create(),o=r.words,a=s.keySize,s=s.iterations;o.length<a;){l&&i.update(l);var l=i.update(e).finalize(t);i.reset();for(var u=1;u<s;u++)l=i.finalize(l),i.reset();r.concat(l)}return r.sigBytes=4*a,r}});t.EvpKDF=function(e,t,i){return r.create(i).compute(e,t)}}(),x.lib.Cipher||function(e){var t=(h=x).lib,i=t.Base,n=t.WordArray,r=t.BufferedBlockAlgorithm,o=h.enc.Base64,a=h.algo.EvpKDF,s=t.Cipher=r.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,i){this.cfg=this.cfg.extend(i),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,i,n){return("string"==typeof i?f:p).encrypt(e,t,i,n)},decrypt:function(t,i,n){return("string"==typeof i?f:p).decrypt(e,t,i,n)}}}});t.StreamCipher=s.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=h.mode={},u=function(e,t,i){var n=this._iv;n?this._iv=void 0:n=this._prevBlock;for(var r=0;r<i;r++)e[t+r]^=n[r]},d=(t.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();d.Encryptor=d.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize;u.call(this,e,t,n),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+n)}}),d.Decryptor=d.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize,r=e.slice(t,t+n);i.decryptBlock(e,t),u.call(this,e,t,n),this._prevBlock=r}}),l=l.CBC=d,d=(h.pad={}).Pkcs7={pad:function(e,t){for(var i,r=(i=(i=4*t)-e.sigBytes%i)<<24|i<<16|i<<8|i,o=[],a=0;a<i;a+=4)o.push(r);i=n.create(o,i),e.concat(i)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},t.BlockCipher=s.extend({cfg:s.cfg.extend({mode:l,padding:d}),reset:function(){s.reset.call(this);var e=(t=this.cfg).iv,t=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=t.createEncryptor;else i=t.createDecryptor,this._minBufferSize=1;this._mode=i.call(t,this,e&&e.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var c=t.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),p=(l=(h.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?n.create([1398893684,1701076831]).concat(e).concat(t):t).toString(o)},parse:function(e){var t=(e=o.parse(e)).words;if(1398893684==t[0]&&1701076831==t[1]){var i=n.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return c.create({ciphertext:e,salt:i})}},t.SerializableCipher=i.extend({cfg:i.extend({format:l}),encrypt:function(e,t,i,n){n=this.cfg.extend(n);var r=e.createEncryptor(i,n);return t=r.finalize(t),r=r.cfg,c.create({ciphertext:t,key:i,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,i,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(i,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),h=(h.kdf={}).OpenSSL={execute:function(e,t,i,r){return r||(r=n.random(8)),e=a.create({keySize:t+i}).compute(e,r),i=n.create(e.words.slice(t),4*i),e.sigBytes=4*t,c.create({key:e,iv:i,salt:r})}},f=t.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:h}),encrypt:function(e,t,i,n){return i=(n=this.cfg.extend(n)).kdf.execute(i,e.keySize,e.ivSize),n.iv=i.iv,(e=p.encrypt.call(this,e,t,i.key,n)).mixIn(i),e},decrypt:function(e,t,i,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),i=n.kdf.execute(i,e.keySize,e.ivSize,t.salt),n.iv=i.iv,p.decrypt.call(this,e,t,i.key,n)}})}(),function(){for(var e=x,t=e.lib.BlockCipher,i=e.algo,n=[],r=[],o=[],a=[],s=[],l=[],u=[],d=[],c=[],p=[],h=[],f=0;256>f;f++)h[f]=128>f?f<<1:f<<1^283;var m=0,g=0;for(f=0;256>f;f++){var v=(v=g^g<<1^g<<2^g<<3^g<<4)>>>8^255&v^99;n[m]=v,r[v]=m;var y=h[m],b=h[y],w=h[b],S=257*h[v]^16843008*v;o[m]=S<<24|S>>>8,a[m]=S<<16|S>>>16,s[m]=S<<8|S>>>24,l[m]=S,S=16843009*w^65537*b^257*y^16843008*m,u[v]=S<<24|S>>>8,d[v]=S<<16|S>>>16,c[v]=S<<8|S>>>24,p[v]=S,m?(m=y^h[h[h[w^y]]],g^=h[h[g]]):m=g=1}var T=[0,1,2,4,8,16,32,64,128,27,54];i=i.AES=t.extend({_doReset:function(){for(var e=(i=this._key).words,t=i.sigBytes/4,i=4*((this._nRounds=t+6)+1),r=this._keySchedule=[],o=0;o<i;o++)if(o<t)r[o]=e[o];else{var a=r[o-1];o%t?6<t&&4==o%t&&(a=n[a>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a]):(a=n[(a=a<<8|a>>>24)>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a],a^=T[o/t|0]<<24),r[o]=r[o-t]^a}for(e=this._invKeySchedule=[],t=0;t<i;t++)o=i-t,a=t%4?r[o]:r[o-4],e[t]=4>t||4>=o?a:u[n[a>>>24]]^d[n[a>>>16&255]]^c[n[a>>>8&255]]^p[n[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,a,s,l,n)},decryptBlock:function(e,t){var i=e[t+1];e[t+1]=e[t+3],e[t+3]=i,this._doCryptBlock(e,t,this._invKeySchedule,u,d,c,p,r),i=e[t+1],e[t+1]=e[t+3],e[t+3]=i},_doCryptBlock:function(e,t,i,n,r,o,a,s){for(var l=this._nRounds,u=e[t]^i[0],d=e[t+1]^i[1],c=e[t+2]^i[2],p=e[t+3]^i[3],h=4,f=1;f<l;f++){var m=n[u>>>24]^r[d>>>16&255]^o[c>>>8&255]^a[255&p]^i[h++],g=n[d>>>24]^r[c>>>16&255]^o[p>>>8&255]^a[255&u]^i[h++],v=n[c>>>24]^r[p>>>16&255]^o[u>>>8&255]^a[255&d]^i[h++];p=n[p>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&c]^i[h++],u=m,d=g,c=v}m=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&p])^i[h++],g=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[p>>>8&255]<<8|s[255&u])^i[h++],v=(s[c>>>24]<<24|s[p>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^i[h++],p=(s[p>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^i[h++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=p},keySize:8}),e.AES=t._createHelper(i)}(),x.mode.ECB=((T=x.lib.BlockCipherMode.extend()).Encryptor=T.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),T.Decryptor=T.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),T);var A=x;function C(e){var t,i=[];for(t=0;t<e.length;t+=1)i[t/4|0]|=e[t]<<24-8*t;return A.lib.WordArray.create(i,e.length)}var O=function(){function e(e){var t=e.config;this._config=t,this._iv="0123456789012345",this._allowedKeyEncodings=["hex","utf8","base64","binary"],this._allowedKeyLengths=[128,256],this._allowedModes=["ecb","cbc"],this._defaultOptions={encryptKey:!0,keyEncoding:"utf8",keyLength:256,mode:"cbc"}}return e.prototype.HMACSHA256=function(e){return A.HmacSHA256(e,this._config.secretKey).toString(A.enc.Base64)},e.prototype.SHA256=function(e){return A.SHA256(e).toString(A.enc.Hex)},e.prototype._parseOptions=function(e){var t=e||{};return t.hasOwnProperty("encryptKey")||(t.encryptKey=this._defaultOptions.encryptKey),t.hasOwnProperty("keyEncoding")||(t.keyEncoding=this._defaultOptions.keyEncoding),t.hasOwnProperty("keyLength")||(t.keyLength=this._defaultOptions.keyLength),t.hasOwnProperty("mode")||(t.mode=this._defaultOptions.mode),-1===this._allowedKeyEncodings.indexOf(t.keyEncoding.toLowerCase())&&(t.keyEncoding=this._defaultOptions.keyEncoding),-1===this._allowedKeyLengths.indexOf(parseInt(t.keyLength,10))&&(t.keyLength=this._defaultOptions.keyLength),-1===this._allowedModes.indexOf(t.mode.toLowerCase())&&(t.mode=this._defaultOptions.mode),t},e.prototype._decodeKey=function(e,t){return"base64"===t.keyEncoding?A.enc.Base64.parse(e):"hex"===t.keyEncoding?A.enc.Hex.parse(e):e},e.prototype._getPaddedKey=function(e,t){return e=this._decodeKey(e,t),t.encryptKey?A.enc.Utf8.parse(this.SHA256(e).slice(0,32)):e},e.prototype._getMode=function(e){return"ecb"===e.mode?A.mode.ECB:A.mode.CBC},e.prototype._getIV=function(e){return"cbc"===e.mode?A.enc.Utf8.parse(this._iv):null},e.prototype._getRandomIV=function(){return A.lib.WordArray.random(16)},e.prototype.encrypt=function(e,t,i){return this._config.customEncrypt?this._config.customEncrypt(e):this.pnEncrypt(e,t,i)},e.prototype.decrypt=function(e,t,i){return this._config.customDecrypt?this._config.customDecrypt(e):this.pnDecrypt(e,t,i)},e.prototype.pnEncrypt=function(e,t,i){if(!t&&!this._config.cipherKey)return e;i=this._parseOptions(i);var n=this._getMode(i),r=this._getPaddedKey(t||this._config.cipherKey,i);if(this._config.useRandomIVs){var o=this._getRandomIV(),a=A.AES.encrypt(e,r,{iv:o,mode:n}).ciphertext;return o.clone().concat(a.clone()).toString(A.enc.Base64)}var s=this._getIV(i);return A.AES.encrypt(e,r,{iv:s,mode:n}).ciphertext.toString(A.enc.Base64)||e},e.prototype.pnDecrypt=function(e,t,i){if(!t&&!this._config.cipherKey)return e;i=this._parseOptions(i);var n=this._getMode(i),r=this._getPaddedKey(t||this._config.cipherKey,i);if(this._config.useRandomIVs){var o=C((l=new Uint8ClampedArray(v(e))).slice(0,16)),a=C(l.slice(16));try{var s=A.AES.decrypt({ciphertext:a},r,{iv:o,mode:n}).toString(A.enc.Utf8);return JSON.parse(s)}catch(e){return null}}else{o=this._getIV(i);try{var l=A.enc.Base64.parse(e);return s=A.AES.decrypt({ciphertext:l},r,{iv:o,mode:n}).toString(A.enc.Utf8),JSON.parse(s)}catch(e){return null}}},e}(),I=function(){function e(e){var t=e.timeEndpoint;this._timeEndpoint=t}return e.prototype.onReconnection=function(e){this._reconnectionCallback=e},e.prototype.startPolling=function(){this._timeTimer=setInterval(this._performTimeLoop.bind(this),3e3)},e.prototype.stopPolling=function(){clearInterval(this._timeTimer)},e.prototype._performTimeLoop=function(){var e=this;this._timeEndpoint((function(t){t.error||(clearInterval(e._timeTimer),e._reconnectionCallback())}))},e}(),N=function(){function e(e){var t=e.config;this.hashHistory=[],this._config=t}return e.prototype.getKey=function(e){var t=function(e){var t=0;if(0===e.length)return t;for(var i=0;i<e.length;i+=1)t=(t<<5)-t+e.charCodeAt(i),t&=t;return t}(JSON.stringify(e.payload)).toString(),i=e.publishMetaData.publishTimetoken;return"".concat(i,"-").concat(t)},e.prototype.isDuplicate=function(e){return this.hashHistory.includes(this.getKey(e))},e.prototype.addEntry=function(e){this.hashHistory.length>=this._config.maximumCacheSize&&this.hashHistory.shift(),this.hashHistory.push(this.getKey(e))},e.prototype.clearHistory=function(){this.hashHistory=[]},e}();function E(e){return encodeURIComponent(e).replace(/[!~*'()]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}var R={signPamFromParams:function(e){return function(e){return function(e){var t=[];return Object.keys(e).forEach((function(e){return t.push(e)})),t}(e).sort()}(e).map((function(t){return"".concat(t,"=").concat(E(e[t]))})).join("&")},endsWith:function(e,t){return-1!==e.indexOf(t,this.length-t.length)},createPromise:function(){var e,t;return{promise:new Promise((function(i,n){e=i,t=n})),reject:t,fulfill:e}},encodeString:E},_={PNNetworkUpCategory:"PNNetworkUpCategory",PNNetworkDownCategory:"PNNetworkDownCategory",PNNetworkIssuesCategory:"PNNetworkIssuesCategory",PNTimeoutCategory:"PNTimeoutCategory",PNBadRequestCategory:"PNBadRequestCategory",PNAccessDeniedCategory:"PNAccessDeniedCategory",PNUnknownCategory:"PNUnknownCategory",PNReconnectedCategory:"PNReconnectedCategory",PNConnectedCategory:"PNConnectedCategory",PNRequestMessageCountExceededCategory:"PNRequestMessageCountExceededCategory"},P=function(){function e(e){var t=e.subscribeEndpoint,i=e.leaveEndpoint,n=e.heartbeatEndpoint,r=e.setStateEndpoint,o=e.timeEndpoint,a=e.getFileUrl,s=e.config,l=e.crypto,u=e.listenerManager;this._listenerManager=u,this._config=s,this._leaveEndpoint=i,this._heartbeatEndpoint=n,this._setStateEndpoint=r,this._subscribeEndpoint=t,this._getFileUrl=a,this._crypto=l,this._channels={},this._presenceChannels={},this._heartbeatChannels={},this._heartbeatChannelGroups={},this._channelGroups={},this._presenceChannelGroups={},this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[],this._currentTimetoken=0,this._lastTimetoken=0,this._storedTimetoken=null,this._subscriptionStatusAnnounced=!1,this._isOnline=!0,this._reconnectionManager=new I({timeEndpoint:o}),this._dedupingManager=new N({config:s})}return e.prototype.adaptStateChange=function(e,t){var i=this,n=e.state,r=e.channels,o=void 0===r?[]:r,a=e.channelGroups,s=void 0===a?[]:a;return o.forEach((function(e){e in i._channels&&(i._channels[e].state=n)})),s.forEach((function(e){e in i._channelGroups&&(i._channelGroups[e].state=n)})),this._setStateEndpoint({state:n,channels:o,channelGroups:s},t)},e.prototype.adaptPresenceChange=function(e){var t=this,i=e.connected,n=e.channels,r=void 0===n?[]:n,o=e.channelGroups,a=void 0===o?[]:o;i?(r.forEach((function(e){t._heartbeatChannels[e]={state:{}}})),a.forEach((function(e){t._heartbeatChannelGroups[e]={state:{}}}))):(r.forEach((function(e){e in t._heartbeatChannels&&delete t._heartbeatChannels[e]})),a.forEach((function(e){e in t._heartbeatChannelGroups&&delete t._heartbeatChannelGroups[e]})),!1===this._config.suppressLeaveEvents&&this._leaveEndpoint({channels:r,channelGroups:a},(function(e){t._listenerManager.announceStatus(e)}))),this.reconnect()},e.prototype.adaptSubscribeChange=function(e){var t=this,i=e.timetoken,n=e.channels,r=void 0===n?[]:n,o=e.channelGroups,a=void 0===o?[]:o,s=e.withPresence,l=void 0!==s&&s,u=e.withHeartbeats,d=void 0!==u&&u;this._config.subscribeKey&&""!==this._config.subscribeKey?(i&&(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=i),"0"!==this._currentTimetoken&&0!==this._currentTimetoken&&(this._storedTimetoken=this._currentTimetoken,this._currentTimetoken=0),r.forEach((function(e){t._channels[e]={state:{}},l&&(t._presenceChannels[e]={}),(d||t._config.getHeartbeatInterval())&&(t._heartbeatChannels[e]={}),t._pendingChannelSubscriptions.push(e)})),a.forEach((function(e){t._channelGroups[e]={state:{}},l&&(t._presenceChannelGroups[e]={}),(d||t._config.getHeartbeatInterval())&&(t._heartbeatChannelGroups[e]={}),t._pendingChannelGroupSubscriptions.push(e)})),this._subscriptionStatusAnnounced=!1,this.reconnect()):console&&console.log&&console.log("subscribe key missing; aborting subscribe")},e.prototype.adaptUnsubscribeChange=function(e,t){var i=this,n=e.channels,r=void 0===n?[]:n,o=e.channelGroups,a=void 0===o?[]:o,s=[],l=[];r.forEach((function(e){e in i._channels&&(delete i._channels[e],s.push(e),e in i._heartbeatChannels&&delete i._heartbeatChannels[e]),e in i._presenceChannels&&(delete i._presenceChannels[e],s.push(e))})),a.forEach((function(e){e in i._channelGroups&&(delete i._channelGroups[e],l.push(e),e in i._heartbeatChannelGroups&&delete i._heartbeatChannelGroups[e]),e in i._presenceChannelGroups&&(delete i._presenceChannelGroups[e],l.push(e))})),0===s.length&&0===l.length||(!1!==this._config.suppressLeaveEvents||t||this._leaveEndpoint({channels:s,channelGroups:l},(function(e){e.affectedChannels=s,e.affectedChannelGroups=l,e.currentTimetoken=i._currentTimetoken,e.lastTimetoken=i._lastTimetoken,i._listenerManager.announceStatus(e)})),0===Object.keys(this._channels).length&&0===Object.keys(this._presenceChannels).length&&0===Object.keys(this._channelGroups).length&&0===Object.keys(this._presenceChannelGroups).length&&(this._lastTimetoken=0,this._currentTimetoken=0,this._storedTimetoken=null,this._region=null,this._reconnectionManager.stopPolling()),this.reconnect())},e.prototype.unsubscribeAll=function(e){this.adaptUnsubscribeChange({channels:this.getSubscribedChannels(),channelGroups:this.getSubscribedChannelGroups()},e)},e.prototype.getHeartbeatChannels=function(){return Object.keys(this._heartbeatChannels)},e.prototype.getHeartbeatChannelGroups=function(){return Object.keys(this._heartbeatChannelGroups)},e.prototype.getSubscribedChannels=function(){return Object.keys(this._channels)},e.prototype.getSubscribedChannelGroups=function(){return Object.keys(this._channelGroups)},e.prototype.reconnect=function(){this._startSubscribeLoop(),this._registerHeartbeatTimer()},e.prototype.disconnect=function(){this._stopSubscribeLoop(),this._stopHeartbeatTimer(),this._reconnectionManager.stopPolling()},e.prototype._registerHeartbeatTimer=function(){this._stopHeartbeatTimer(),0!==this._config.getHeartbeatInterval()&&void 0!==this._config.getHeartbeatInterval()&&(this._performHeartbeatLoop(),this._heartbeatTimer=setInterval(this._performHeartbeatLoop.bind(this),1e3*this._config.getHeartbeatInterval()))},e.prototype._stopHeartbeatTimer=function(){this._heartbeatTimer&&(clearInterval(this._heartbeatTimer),this._heartbeatTimer=null)},e.prototype._performHeartbeatLoop=function(){var e=this,t=this.getHeartbeatChannels(),i=this.getHeartbeatChannelGroups(),n={};0===t.length&&0===i.length||(this.getSubscribedChannels().forEach((function(t){var i=e._channels[t].state;Object.keys(i).length&&(n[t]=i)})),this.getSubscribedChannelGroups().forEach((function(t){var i=e._channelGroups[t].state;Object.keys(i).length&&(n[t]=i)})),this._heartbeatEndpoint({channels:t,channelGroups:i,state:n},function(t){t.error&&e._config.announceFailedHeartbeats&&e._listenerManager.announceStatus(t),t.error&&e._config.autoNetworkDetection&&e._isOnline&&(e._isOnline=!1,e.disconnect(),e._listenerManager.announceNetworkDown(),e.reconnect()),!t.error&&e._config.announceSuccessfulHeartbeats&&e._listenerManager.announceStatus(t)}.bind(this)))},e.prototype._startSubscribeLoop=function(){var e=this;this._stopSubscribeLoop();var t={},i=[],n=[];if(Object.keys(this._channels).forEach((function(n){var r=e._channels[n].state;Object.keys(r).length&&(t[n]=r),i.push(n)})),Object.keys(this._presenceChannels).forEach((function(e){i.push("".concat(e,"-pnpres"))})),Object.keys(this._channelGroups).forEach((function(i){var r=e._channelGroups[i].state;Object.keys(r).length&&(t[i]=r),n.push(i)})),Object.keys(this._presenceChannelGroups).forEach((function(e){n.push("".concat(e,"-pnpres"))})),0!==i.length||0!==n.length){var r={channels:i,channelGroups:n,state:t,timetoken:this._currentTimetoken,filterExpression:this._config.filterExpression,region:this._region};this._subscribeCall=this._subscribeEndpoint(r,this._processSubscribeResponse.bind(this))}},e.prototype._processSubscribeResponse=function(e,t){var i=this;if(e.error){if(e.errorData&&"Aborted"===e.errorData.message)return;e.category===_.PNTimeoutCategory?this._startSubscribeLoop():e.category===_.PNNetworkIssuesCategory?(this.disconnect(),e.error&&this._config.autoNetworkDetection&&this._isOnline&&(this._isOnline=!1,this._listenerManager.announceNetworkDown()),this._reconnectionManager.onReconnection((function(){i._config.autoNetworkDetection&&!i._isOnline&&(i._isOnline=!0,i._listenerManager.announceNetworkUp()),i.reconnect(),i._subscriptionStatusAnnounced=!0;var t={category:_.PNReconnectedCategory,operation:e.operation,lastTimetoken:i._lastTimetoken,currentTimetoken:i._currentTimetoken};i._listenerManager.announceStatus(t)})),this._reconnectionManager.startPolling(),this._listenerManager.announceStatus(e)):e.category===_.PNBadRequestCategory?(this._stopHeartbeatTimer(),this._listenerManager.announceStatus(e)):this._listenerManager.announceStatus(e)}else{if(this._storedTimetoken?(this._currentTimetoken=this._storedTimetoken,this._storedTimetoken=null):(this._lastTimetoken=this._currentTimetoken,this._currentTimetoken=t.metadata.timetoken),!this._subscriptionStatusAnnounced){var o={};o.category=_.PNConnectedCategory,o.operation=e.operation,o.affectedChannels=this._pendingChannelSubscriptions,o.subscribedChannels=this.getSubscribedChannels(),o.affectedChannelGroups=this._pendingChannelGroupSubscriptions,o.lastTimetoken=this._lastTimetoken,o.currentTimetoken=this._currentTimetoken,this._subscriptionStatusAnnounced=!0,this._listenerManager.announceStatus(o),this._pendingChannelSubscriptions=[],this._pendingChannelGroupSubscriptions=[]}var a=t.messages||[],s=this._config,l=s.requestMessageCountThreshold,u=s.dedupeOnSubscribe;if(l&&a.length>=l){var d={};d.category=_.PNRequestMessageCountExceededCategory,d.operation=e.operation,this._listenerManager.announceStatus(d)}a.forEach((function(e){var t=e.channel,o=e.subscriptionMatch,a=e.publishMetaData;if(t===o&&(o=null),u){if(i._dedupingManager.isDuplicate(e))return;i._dedupingManager.addEntry(e)}if(R.endsWith(e.channel,"-pnpres"))(m={channel:null,subscription:null}).actualChannel=null!=o?t:null,m.subscribedChannel=null!=o?o:t,t&&(m.channel=t.substring(0,t.lastIndexOf("-pnpres"))),o&&(m.subscription=o.substring(0,o.lastIndexOf("-pnpres"))),m.action=e.payload.action,m.state=e.payload.data,m.timetoken=a.publishTimetoken,m.occupancy=e.payload.occupancy,m.uuid=e.payload.uuid,m.timestamp=e.payload.timestamp,e.payload.join&&(m.join=e.payload.join),e.payload.leave&&(m.leave=e.payload.leave),e.payload.timeout&&(m.timeout=e.payload.timeout),i._listenerManager.announcePresence(m);else if(1===e.messageType)(m={channel:null,subscription:null}).channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId,e.userMetadata&&(m.userMetadata=e.userMetadata),m.message=e.payload,i._listenerManager.announceSignal(m);else if(2===e.messageType){if((m={channel:null,subscription:null}).channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId,e.userMetadata&&(m.userMetadata=e.userMetadata),m.message={event:e.payload.event,type:e.payload.type,data:e.payload.data},i._listenerManager.announceObjects(m),"uuid"===e.payload.type){var s=i._renameChannelField(m);i._listenerManager.announceUser(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),type:"user"})}))}else if("channel"===e.payload.type)s=i._renameChannelField(m),i._listenerManager.announceSpace(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),type:"space"})}));else if("membership"===e.payload.type){var l=(s=i._renameChannelField(m)).message.data,d=l.uuid,c=l.channel,p=r(l,["uuid","channel"]);p.user=d,p.space=c,i._listenerManager.announceMembership(n(n({},s),{message:n(n({},s.message),{event:i._renameEvent(s.message.event),data:p})}))}}else if(3===e.messageType)(m={}).channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId,m.data={messageTimetoken:e.payload.data.messageTimetoken,actionTimetoken:e.payload.data.actionTimetoken,type:e.payload.data.type,uuid:e.issuingClientId,value:e.payload.data.value},m.event=e.payload.event,i._listenerManager.announceMessageAction(m);else if(4===e.messageType){(m={}).channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId;var h=e.payload;if(i._config.cipherKey){var f=i._crypto.decrypt(e.payload);"object"==typeof f&&null!==f&&(h=f)}e.userMetadata&&(m.userMetadata=e.userMetadata),m.message=h.message,m.file={id:h.file.id,name:h.file.name,url:i._getFileUrl({id:h.file.id,name:h.file.name,channel:t})},i._listenerManager.announceFile(m)}else{var m;(m={channel:null,subscription:null}).actualChannel=null!=o?t:null,m.subscribedChannel=null!=o?o:t,m.channel=t,m.subscription=o,m.timetoken=a.publishTimetoken,m.publisher=e.issuingClientId,e.userMetadata&&(m.userMetadata=e.userMetadata),i._config.cipherKey?m.message=i._crypto.decrypt(e.payload):m.message=e.payload,i._listenerManager.announceMessage(m)}})),this._region=t.metadata.region,this._startSubscribeLoop()}},e.prototype._stopSubscribeLoop=function(){this._subscribeCall&&("function"==typeof this._subscribeCall.abort&&this._subscribeCall.abort(),this._subscribeCall=null)},e.prototype._renameEvent=function(e){return"set"===e?"updated":"removed"},e.prototype._renameChannelField=function(e){var t=e.channel,i=r(e,["channel"]);return i.spaceId=t,i},e}(),M={PNTimeOperation:"PNTimeOperation",PNHistoryOperation:"PNHistoryOperation",PNDeleteMessagesOperation:"PNDeleteMessagesOperation",PNFetchMessagesOperation:"PNFetchMessagesOperation",PNMessageCounts:"PNMessageCountsOperation",PNSubscribeOperation:"PNSubscribeOperation",PNUnsubscribeOperation:"PNUnsubscribeOperation",PNPublishOperation:"PNPublishOperation",PNSignalOperation:"PNSignalOperation",PNAddMessageActionOperation:"PNAddActionOperation",PNRemoveMessageActionOperation:"PNRemoveMessageActionOperation",PNGetMessageActionsOperation:"PNGetMessageActionsOperation",PNCreateUserOperation:"PNCreateUserOperation",PNUpdateUserOperation:"PNUpdateUserOperation",PNDeleteUserOperation:"PNDeleteUserOperation",PNGetUserOperation:"PNGetUsersOperation",PNGetUsersOperation:"PNGetUsersOperation",PNCreateSpaceOperation:"PNCreateSpaceOperation",PNUpdateSpaceOperation:"PNUpdateSpaceOperation",PNDeleteSpaceOperation:"PNDeleteSpaceOperation",PNGetSpaceOperation:"PNGetSpacesOperation",PNGetSpacesOperation:"PNGetSpacesOperation",PNGetMembersOperation:"PNGetMembersOperation",PNUpdateMembersOperation:"PNUpdateMembersOperation",PNGetMembershipsOperation:"PNGetMembershipsOperation",PNUpdateMembershipsOperation:"PNUpdateMembershipsOperation",PNListFilesOperation:"PNListFilesOperation",PNGenerateUploadUrlOperation:"PNGenerateUploadUrlOperation",PNPublishFileOperation:"PNPublishFileOperation",PNGetFileUrlOperation:"PNGetFileUrlOperation",PNDownloadFileOperation:"PNDownloadFileOperation",PNGetAllUUIDMetadataOperation:"PNGetAllUUIDMetadataOperation",PNGetUUIDMetadataOperation:"PNGetUUIDMetadataOperation",PNSetUUIDMetadataOperation:"PNSetUUIDMetadataOperation",PNRemoveUUIDMetadataOperation:"PNRemoveUUIDMetadataOperation",PNGetAllChannelMetadataOperation:"PNGetAllChannelMetadataOperation",PNGetChannelMetadataOperation:"PNGetChannelMetadataOperation",PNSetChannelMetadataOperation:"PNSetChannelMetadataOperation",PNRemoveChannelMetadataOperation:"PNRemoveChannelMetadataOperation",PNSetMembersOperation:"PNSetMembersOperation",PNSetMembershipsOperation:"PNSetMembershipsOperation",PNPushNotificationEnabledChannelsOperation:"PNPushNotificationEnabledChannelsOperation",PNRemoveAllPushNotificationsOperation:"PNRemoveAllPushNotificationsOperation",PNWhereNowOperation:"PNWhereNowOperation",PNSetStateOperation:"PNSetStateOperation",PNHereNowOperation:"PNHereNowOperation",PNGetStateOperation:"PNGetStateOperation",PNHeartbeatOperation:"PNHeartbeatOperation",PNChannelGroupsOperation:"PNChannelGroupsOperation",PNRemoveGroupOperation:"PNRemoveGroupOperation",PNChannelsForGroupOperation:"PNChannelsForGroupOperation",PNAddChannelsToGroupOperation:"PNAddChannelsToGroupOperation",PNRemoveChannelsFromGroupOperation:"PNRemoveChannelsFromGroupOperation",PNAccessManagerGrant:"PNAccessManagerGrant",PNAccessManagerGrantToken:"PNAccessManagerGrantToken",PNAccessManagerAudit:"PNAccessManagerAudit",PNAccessManagerRevokeToken:"PNAccessManagerRevokeToken",PNHandshakeOperation:"PNHandshakeOperation",PNReceiveMessagesOperation:"PNReceiveMessagesOperation"},F=function(){function e(e){this._maximumSamplesCount=100,this._trackedLatencies={},this._latencies={},this._maximumSamplesCount=e.maximumSamplesCount||this._maximumSamplesCount}return e.prototype.operationsLatencyForRequest=function(){var e=this,t={};return Object.keys(this._latencies).forEach((function(i){var n=e._latencies[i],r=e._averageLatency(n);r>0&&(t["l_".concat(i)]=r)})),t},e.prototype.startLatencyMeasure=function(e,t){e!==M.PNSubscribeOperation&&t&&(this._trackedLatencies[t]=Date.now())},e.prototype.stopLatencyMeasure=function(e,t){if(e!==M.PNSubscribeOperation&&t){var i=this._endpointName(e),n=this._latencies[i],r=this._trackedLatencies[t];n||(this._latencies[i]=[],n=this._latencies[i]),n.push(Date.now()-r),n.length>this._maximumSamplesCount&&n.splice(0,n.length-this._maximumSamplesCount),delete this._trackedLatencies[t]}},e.prototype._averageLatency=function(e){return Math.floor(e.reduce((function(e,t){return e+t}),0)/e.length)},e.prototype._endpointName=function(e){var t=null;switch(e){case M.PNPublishOperation:t="pub";break;case M.PNSignalOperation:t="sig";break;case M.PNHistoryOperation:case M.PNFetchMessagesOperation:case M.PNDeleteMessagesOperation:case M.PNMessageCounts:t="hist";break;case M.PNUnsubscribeOperation:case M.PNWhereNowOperation:case M.PNHereNowOperation:case M.PNHeartbeatOperation:case M.PNSetStateOperation:case M.PNGetStateOperation:t="pres";break;case M.PNAddChannelsToGroupOperation:case M.PNRemoveChannelsFromGroupOperation:case M.PNChannelGroupsOperation:case M.PNRemoveGroupOperation:case M.PNChannelsForGroupOperation:t="cg";break;case M.PNPushNotificationEnabledChannelsOperation:case M.PNRemoveAllPushNotificationsOperation:t="push";break;case M.PNCreateUserOperation:case M.PNUpdateUserOperation:case M.PNDeleteUserOperation:case M.PNGetUserOperation:case M.PNGetUsersOperation:case M.PNCreateSpaceOperation:case M.PNUpdateSpaceOperation:case M.PNDeleteSpaceOperation:case M.PNGetSpaceOperation:case M.PNGetSpacesOperation:case M.PNGetMembersOperation:case M.PNUpdateMembersOperation:case M.PNGetMembershipsOperation:case M.PNUpdateMembershipsOperation:t="obj";break;case M.PNAddMessageActionOperation:case M.PNRemoveMessageActionOperation:case M.PNGetMessageActionsOperation:t="msga";break;case M.PNAccessManagerGrant:case M.PNAccessManagerAudit:t="pam";break;case M.PNAccessManagerGrantToken:case M.PNAccessManagerRevokeToken:t="pamv3";break;default:t="time"}return t},e}(),D=function(){function e(e,t,i){this._payload=e,this._setDefaultPayloadStructure(),this.title=t,this.body=i}return Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{set:function(e){this._subtitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{set:function(e){this._body=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"badge",{set:function(e){this._badge=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sound",{set:function(e){this._sound=e},enumerable:!1,configurable:!0}),e.prototype._setDefaultPayloadStructure=function(){},e.prototype.toObject=function(){return{}},e}(),k=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"configurations",{set:function(e){e&&e.length&&(this._configurations=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"notification",{get:function(){return this._payload.aps},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.aps.alert.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){e&&e.length&&(this._payload.aps.alert.subtitle=e,this._subtitle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"body",{get:function(){return this._body},set:function(e){e&&e.length&&(this._payload.aps.alert.body=e,this._body=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"badge",{get:function(){return this._badge},set:function(e){null!=e&&(this._payload.aps.badge=e,this._badge=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sound",{get:function(){return this._sound},set:function(e){e&&e.length&&(this._payload.aps.sound=e,this._sound=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),i.prototype._setDefaultPayloadStructure=function(){this._payload.aps={alert:{}}},i.prototype.toObject=function(){var e=this,t=n({},this._payload),i=t.aps,r=i.alert;if(this._isSilent&&(i["content-available"]=1),"apns2"===this._apnsPushType){if(!this._configurations||!this._configurations.length)throw new ReferenceError("APNS2 configuration is missing");var o=[];this._configurations.forEach((function(t){o.push(e._objectFromAPNS2Configuration(t))})),o.length&&(t.pn_push=o)}return r&&Object.keys(r).length||delete i.alert,this._isSilent&&(delete i.alert,delete i.badge,delete i.sound,r={}),this._isSilent||Object.keys(r).length?t:null},i.prototype._objectFromAPNS2Configuration=function(e){var t=this;if(!e.targets||!e.targets.length)throw new ReferenceError("At least one APNS2 target should be provided");var i=[];e.targets.forEach((function(e){i.push(t._objectFromAPNSTarget(e))}));var n=e.collapseId,r=e.expirationDate,o={auth_method:"token",targets:i,version:"v2"};return n&&n.length&&(o.collapse_id=n),r&&(o.expiration=r.toISOString()),o},i.prototype._objectFromAPNSTarget=function(e){if(!e.topic||!e.topic.length)throw new TypeError("Target 'topic' undefined.");var t=e.topic,i=e.environment,n=void 0===i?"development":i,r=e.excludedDevices,o=void 0===r?[]:r,a={topic:t,environment:n};return o.length&&(a.excluded_devices=o),a},i}(D),U=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"backContent",{get:function(){return this._backContent},set:function(e){e&&e.length&&(this._payload.back_content=e,this._backContent=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"backTitle",{get:function(){return this._backTitle},set:function(e){e&&e.length&&(this._payload.back_title=e,this._backTitle=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"count",{get:function(){return this._count},set:function(e){null!=e&&(this._payload.count=e,this._count=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this._type},set:function(e){e&&e.length&&(this._payload.type=e,this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"subtitle",{get:function(){return this.backTitle},set:function(e){this.backTitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"body",{get:function(){return this.backContent},set:function(e){this.backContent=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"badge",{get:function(){return this.count},set:function(e){this.count=e},enumerable:!1,configurable:!0}),i.prototype.toObject=function(){return Object.keys(this._payload).length?n({},this._payload):null},i}(D),L=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),Object.defineProperty(i.prototype,"notification",{get:function(){return this._payload.notification},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this._payload.data},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(e){e&&e.length&&(this._payload.notification.title=e,this._title=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"body",{get:function(){return this._body},set:function(e){e&&e.length&&(this._payload.notification.body=e,this._body=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"sound",{get:function(){return this._sound},set:function(e){e&&e.length&&(this._payload.notification.sound=e,this._sound=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"icon",{get:function(){return this._icon},set:function(e){e&&e.length&&(this._payload.notification.icon=e,this._icon=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tag",{get:function(){return this._tag},set:function(e){e&&e.length&&(this._payload.notification.tag=e,this._tag=e)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"silent",{set:function(e){this._isSilent=e},enumerable:!1,configurable:!0}),i.prototype._setDefaultPayloadStructure=function(){this._payload.notification={},this._payload.data={}},i.prototype.toObject=function(){var e=n({},this._payload.data),t=null,i={};if(Object.keys(this._payload).length>2){var o=this._payload;o.notification,o.data;var a=r(o,["notification","data"]);e=n(n({},e),a)}return this._isSilent?e.notification=this._payload.notification:t=this._payload.notification,Object.keys(e).length&&(i.data=e),t&&Object.keys(t).length&&(i.notification=t),Object.keys(i).length?i:null},i}(D),B=function(){function e(e,t){this._payload={apns:{},mpns:{},fcm:{}},this._title=e,this._body=t,this.apns=new k(this._payload.apns,e,t),this.mpns=new U(this._payload.mpns,e,t),this.fcm=new L(this._payload.fcm,e,t)}return Object.defineProperty(e.prototype,"debugging",{set:function(e){this._debugging=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subtitle",{get:function(){return this._subtitle},set:function(e){this._subtitle=e,this.apns.subtitle=e,this.mpns.subtitle=e,this.fcm.subtitle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"badge",{get:function(){return this._badge},set:function(e){this._badge=e,this.apns.badge=e,this.mpns.badge=e,this.fcm.badge=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sound",{get:function(){return this._sound},set:function(e){this._sound=e,this.apns.sound=e,this.mpns.sound=e,this.fcm.sound=e},enumerable:!1,configurable:!0}),e.prototype.buildPayload=function(e){var t={};if(e.includes("apns")||e.includes("apns2")){this.apns._apnsPushType=e.includes("apns")?"apns":"apns2";var i=this.apns.toObject();i&&Object.keys(i).length&&(t.pn_apns=i)}if(e.includes("mpns")){var n=this.mpns.toObject();n&&Object.keys(n).length&&(t.pn_mpns=n)}if(e.includes("fcm")){var r=this.fcm.toObject();r&&Object.keys(r).length&&(t.pn_gcm=r)}return Object.keys(t).length&&this._debugging&&(t.pn_debug=!0),t},e}(),q=function(){function e(){this._listeners=[]}return e.prototype.addListener=function(e){this._listeners.push(e)},e.prototype.removeListener=function(e){var t=[];this._listeners.forEach((function(i){i!==e&&t.push(i)})),this._listeners=t},e.prototype.removeAllListeners=function(){this._listeners=[]},e.prototype.announcePresence=function(e){this._listeners.forEach((function(t){t.presence&&t.presence(e)}))},e.prototype.announceStatus=function(e){this._listeners.forEach((function(t){t.status&&t.status(e)}))},e.prototype.announceMessage=function(e){this._listeners.forEach((function(t){t.message&&t.message(e)}))},e.prototype.announceSignal=function(e){this._listeners.forEach((function(t){t.signal&&t.signal(e)}))},e.prototype.announceMessageAction=function(e){this._listeners.forEach((function(t){t.messageAction&&t.messageAction(e)}))},e.prototype.announceFile=function(e){this._listeners.forEach((function(t){t.file&&t.file(e)}))},e.prototype.announceObjects=function(e){this._listeners.forEach((function(t){t.objects&&t.objects(e)}))},e.prototype.announceUser=function(e){this._listeners.forEach((function(t){t.user&&t.user(e)}))},e.prototype.announceSpace=function(e){this._listeners.forEach((function(t){t.space&&t.space(e)}))},e.prototype.announceMembership=function(e){this._listeners.forEach((function(t){t.membership&&t.membership(e)}))},e.prototype.announceNetworkUp=function(){var e={};e.category=_.PNNetworkUpCategory,this.announceStatus(e)},e.prototype.announceNetworkDown=function(){var e={};e.category=_.PNNetworkDownCategory,this.announceStatus(e)},e}(),J=function(){function e(e,t){this._config=e,this._cbor=t}return e.prototype.setToken=function(e){e&&e.length>0?this._token=e:this._token=void 0},e.prototype.getToken=function(){return this._token},e.prototype.extractPermissions=function(e){var t={read:!1,write:!1,manage:!1,delete:!1,get:!1,update:!1,join:!1};return 128==(128&e)&&(t.join=!0),64==(64&e)&&(t.update=!0),32==(32&e)&&(t.get=!0),8==(8&e)&&(t.delete=!0),4==(4&e)&&(t.manage=!0),2==(2&e)&&(t.write=!0),1==(1&e)&&(t.read=!0),t},e.prototype.parseToken=function(e){var t=this,i=this._cbor.decodeToken(e);if(void 0!==i){var n=i.res.uuid?Object.keys(i.res.uuid):[],r=Object.keys(i.res.chan),o=Object.keys(i.res.grp),a=i.pat.uuid?Object.keys(i.pat.uuid):[],s=Object.keys(i.pat.chan),l=Object.keys(i.pat.grp),u={version:i.v,timestamp:i.t,ttl:i.ttl,authorized_uuid:i.uuid},d=n.length>0,c=r.length>0,p=o.length>0;(d||c||p)&&(u.resources={},d&&(u.resources.uuids={},n.forEach((function(e){u.resources.uuids[e]=t.extractPermissions(i.res.uuid[e])}))),c&&(u.resources.channels={},r.forEach((function(e){u.resources.channels[e]=t.extractPermissions(i.res.chan[e])}))),p&&(u.resources.groups={},o.forEach((function(e){u.resources.groups[e]=t.extractPermissions(i.res.grp[e])}))));var h=a.length>0,f=s.length>0,m=l.length>0;return(h||f||m)&&(u.patterns={},h&&(u.patterns.uuids={},a.forEach((function(e){u.patterns.uuids[e]=t.extractPermissions(i.pat.uuid[e])}))),f&&(u.patterns.channels={},s.forEach((function(e){u.patterns.channels[e]=t.extractPermissions(i.pat.chan[e])}))),m&&(u.patterns.groups={},l.forEach((function(e){u.patterns.groups[e]=t.extractPermissions(i.pat.grp[e])})))),Object.keys(i.meta).length>0&&(u.meta=i.meta),u.signature=i.sig,u}},e}(),j=function(e){function i(t,i){var n=this.constructor,r=e.call(this,t)||this;return r.name=r.constructor.name,r.status=i,r.message=t,Object.setPrototypeOf(r,n.prototype),r}return t(i,e),i}(Error);function H(e){return(t={message:e}).type="validationError",t.error=!0,t;var t}function G(e,t,i){return e.usePost&&e.usePost(t,i)?e.postURL(t,i):e.usePatch&&e.usePatch(t,i)?e.patchURL(t,i):e.useGetFile&&e.useGetFile(t,i)?e.getFileURL(t,i):e.getURL(t,i)}function z(e){if(e.sdkName)return e.sdkName;var t="PubNub-JS-".concat(e.sdkFamily);e.partnerId&&(t+="-".concat(e.partnerId)),t+="/".concat(e.getVersion());var i=e._getPnsdkSuffix(" ");return i.length>0&&(t+=i),t}function W(e,t,i){return t.usePost&&t.usePost(e,i)?"POST":t.usePatch&&t.usePatch(e,i)?"PATCH":t.useDelete&&t.useDelete(e,i)?"DELETE":t.useGetFile&&t.useGetFile(e,i)?"GETFILE":"GET"}function V(e,t,i,n,r){var o=e.config,a=e.crypto,s=W(e,r,n);i.timestamp=Math.floor((new Date).getTime()/1e3),"PNPublishOperation"===r.getOperation()&&r.usePost&&r.usePost(e,n)&&(s="GET"),"GETFILE"===s&&(s="GET");var l="".concat(s,"\n").concat(o.publishKey,"\n").concat(t,"\n").concat(R.signPamFromParams(i),"\n");if("POST"===s)l+="string"==typeof(u=r.postPayload(e,n))?u:JSON.stringify(u);else if("PATCH"===s){var u;l+="string"==typeof(u=r.patchPayload(e,n))?u:JSON.stringify(u)}var d="v2.".concat(a.HMACSHA256(l));d=(d=(d=d.replace(/\+/g,"-")).replace(/\//g,"_")).replace(/=+$/,""),i.signature=d}function Q(e,t){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var o=e.networking,a=e.config,s=e.telemetryManager,l=e.tokenManager,u=m(),d=null,c=null,p={};t.getOperation()===M.PNTimeOperation||t.getOperation()===M.PNChannelGroupsOperation?d=i[0]:(p=i[0],d=i[1]),"undefined"==typeof Promise||d||(c=R.createPromise());var h=t.validateParams(e,p);if(h)return d?d(H(h)):c?(c.reject(new j("Validation failed, check status for details",H(h))),c.promise):void 0;var f,g=t.prepareParams(e,p),v=G(t,e,p),y={url:v,operation:t.getOperation(),timeout:t.getRequestTimeout(e),headers:t.getRequestHeaders?t.getRequestHeaders():{},ignoreBody:"function"==typeof t.ignoreBody&&t.ignoreBody(e),forceBuffered:"function"==typeof t.forceBuffered?t.forceBuffered(e,p):null,abortSignal:"function"==typeof t.getAbortSignal?t.getAbortSignal(e,p):null};g.uuid=a.UUID,g.pnsdk=z(a);var b=s.operationsLatencyForRequest();if(Object.keys(b).length&&(g=n(n({},g),b)),a.useInstanceId&&(g.instanceid=a.instanceId),a.useRequestId&&(g.requestid=u),t.isAuthSupported()){var w=l.getToken()||a.getAuthKey();w&&(g.auth=w)}a.secretKey&&V(e,v,g,p,t);var S=function(i,n){if(i.error)return t.handleError&&t.handleError(e,p,i),void(d?d(i):c&&c.reject(new j("PubNub call failed, check status for details",i)));s.stopLatencyMeasure(t.getOperation(),u);var r=t.handleResponse(e,n,p);"function"!=typeof(null==r?void 0:r.then)&&(r=Promise.resolve(r)),r.then((function(e){d?d(i,e):c&&c.fulfill(e)})).catch((function(e){if(d){var i=e;t.getOperation()===M.PNSubscribeOperation&&(i={statusCode:400,error:!0,operation:t.getOperation(),errorData:e,category:_.PNUnknownCategory}),d(i,null)}else c&&c.reject(new j("PubNub call failed, check status for details",e))}))};if(s.startLatencyMeasure(t.getOperation(),u),"POST"===W(e,t,p)){var T=t.postPayload(e,p);f=o.POST(g,T,y,S)}else"PATCH"===W(e,t,p)?(T=t.patchPayload(e,p),f=o.PATCH(g,T,y,S)):f="DELETE"===W(e,t,p)?o.DELETE(g,y,S):"GETFILE"===W(e,t,p)?o.GETFILE(g,y,S):o.GET(g,y,S);return t.getOperation()===M.PNSubscribeOperation?f:c?c.promise:void 0}var K=Object.freeze({__proto__:null,getOperation:function(){return M.PNAddChannelsToGroupOperation},validateParams:function(e,t){var i=t.channels,n=t.channelGroup,r=e.config;return n?i&&0!==i.length?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels;return{add:(void 0===i?[]:i).join(",")}},handleResponse:function(){return{}}}),X=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveChannelsFromGroupOperation},validateParams:function(e,t){var i=t.channels,n=t.channelGroup,r=e.config;return n?i&&0!==i.length?r.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels;return{remove:(void 0===i?[]:i).join(",")}},handleResponse:function(){return{}}}),Y=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveGroupOperation},validateParams:function(e,t){var i=t.channelGroup,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(R.encodeString(i),"/remove")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},handleResponse:function(){return{}}}),$=Object.freeze({__proto__:null,getOperation:function(){return M.PNChannelGroupsOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v1/channel-registration/sub-key/".concat(t.subscribeKey,"/channel-group")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{groups:t.payload.groups}}}),Z=Object.freeze({__proto__:null,getOperation:function(){return M.PNChannelsForGroupOperation},validateParams:function(e,t){var i=t.channelGroup,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channel Group"},getURL:function(e,t){var i=t.channelGroup,n=e.config;return"/v1/channel-registration/sub-key/".concat(n.subscribeKey,"/channel-group/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{channels:t.payload.channels}}}),ee=Object.freeze({__proto__:null,getOperation:function(){return M.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,r=t.channels,o=t.topic,a=e.config;return i?n?"apns2"!==n||o?r&&0!==r.length?a.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var i=t.device,n=t.pushGateway,r=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,r=t.channels,o=void 0===r?[]:r,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:i,add:o.join(",")};return"apns2"===i&&delete(u=n(n({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),te=Object.freeze({__proto__:null,getOperation:function(){return M.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,r=t.channels,o=t.topic,a=e.config;return i?n?"apns2"!==n||o?r&&0!==r.length?a.subscribeKey?void 0:"Missing Subscribe Key":"Missing Channels":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var i=t.device,n=t.pushGateway,r=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,r=t.channels,o=void 0===r?[]:r,a=t.environment,s=void 0===a?"development":a,l=t.topic,u={type:i,remove:o.join(",")};return"apns2"===i&&delete(u=n(n({},u),{environment:s,topic:l})).type,u},handleResponse:function(){return{}}}),ie=Object.freeze({__proto__:null,getOperation:function(){return M.PNPushNotificationEnabledChannelsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,r=t.topic,o=e.config;return i?n?"apns2"!==n||r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var i=t.device,n=t.pushGateway,r=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(i):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(i)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,r=t.environment,o=void 0===r?"development":r,a=t.topic,s={type:i};return"apns2"===i&&delete(s=n(n({},s),{environment:o,topic:a})).type,s},handleResponse:function(e,t){return{channels:t}}}),ne=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveAllPushNotificationsOperation},validateParams:function(e,t){var i=t.device,n=t.pushGateway,r=t.topic,o=e.config;return i?n?"apns2"!==n||r?o.subscribeKey?void 0:"Missing Subscribe Key":"Missing APNS2 topic":"Missing GW Type (pushGateway: gcm, apns or apns2)":"Missing Device ID (device)"},getURL:function(e,t){var i=t.device,n=t.pushGateway,r=e.config;return"apns2"===n?"/v2/push/sub-key/".concat(r.subscribeKey,"/devices-apns2/").concat(i,"/remove"):"/v1/push/sub-key/".concat(r.subscribeKey,"/devices/").concat(i,"/remove")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.pushGateway,r=t.environment,o=void 0===r?"development":r,a=t.topic,s={type:i};return"apns2"===i&&delete(s=n(n({},s),{environment:o,topic:a})).type,s},handleResponse:function(){return{}}}),re=Object.freeze({__proto__:null,getOperation:function(){return M.PNUnsubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(o),"/leave")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,r={};return n.length>0&&(r["channel-group"]=n.join(",")),r},handleResponse:function(){return{}}}),oe=Object.freeze({__proto__:null,getOperation:function(){return M.PNWhereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.uuid,r=void 0===n?i.UUID:n;return"/v2/presence/sub-key/".concat(i.subscribeKey,"/uuid/").concat(R.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return t.payload?{channels:t.payload.channels}:{channels:[]}}}),ae=Object.freeze({__proto__:null,getOperation:function(){return M.PNHeartbeatOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(o),"/heartbeat")},isAuthSupported:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,r=t.state,o=void 0===r?{}:r,a=e.config,s={};return n.length>0&&(s["channel-group"]=n.join(",")),s.state=JSON.stringify(o),s.heartbeat=a.getPresenceTimeout(),s},handleResponse:function(){return{}}}),se=Object.freeze({__proto__:null,getOperation:function(){return M.PNGetStateOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.uuid,r=void 0===n?i.UUID:n,o=t.channels,a=void 0===o?[]:o,s=a.length>0?a.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(s),"/uuid/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,n=void 0===i?[]:i,r={};return n.length>0&&(r["channel-group"]=n.join(",")),r},handleResponse:function(e,t,i){var n=i.channels,r=void 0===n?[]:n,o=i.channelGroups,a=void 0===o?[]:o,s={};return 1===r.length&&0===a.length?s[r[0]]=t.payload:s=t.payload,{channels:s}}}),le=Object.freeze({__proto__:null,getOperation:function(){return M.PNSetStateOperation},validateParams:function(e,t){var i=e.config,n=t.state,r=t.channels,o=void 0===r?[]:r,a=t.channelGroups,s=void 0===a?[]:a;return n?i.subscribeKey?0===o.length&&0===s.length?"Please provide a list of channels and/or channel-groups":void 0:"Missing Subscribe Key":"Missing State"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=r.length>0?r.join(","):",";return"/v2/presence/sub-key/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(o),"/uuid/").concat(R.encodeString(i.UUID),"/data")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.state,n=t.channelGroups,r=void 0===n?[]:n,o={};return o.state=JSON.stringify(i),r.length>0&&(o["channel-group"]=r.join(",")),o},handleResponse:function(e,t){return{state:t.payload}}}),ue=Object.freeze({__proto__:null,getOperation:function(){return M.PNHereNowOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=t.channelGroups,a=void 0===o?[]:o,s="/v2/presence/sub-key/".concat(i.subscribeKey);if(r.length>0||a.length>0){var l=r.length>0?r.join(","):",";s+="/channel/".concat(R.encodeString(l))}return s},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channelGroups,r=void 0===i?[]:i,o=t.includeUUIDs,a=void 0===o||o,s=t.includeState,l=void 0!==s&&s,u=t.queryParameters,d=void 0===u?{}:u,c={};return a||(c.disable_uuids=1),l&&(c.state=1),r.length>0&&(c["channel-group"]=r.join(",")),n(n({},c),d)},handleResponse:function(e,t,i){var n=i.channels,r=void 0===n?[]:n,o=i.channelGroups,a=void 0===o?[]:o,s=i.includeUUIDs,l=void 0===s||s,u=i.includeState,d=void 0!==u&&u;return r.length>1||a.length>0||0===a.length&&0===r.length?function(){var e={};return e.totalChannels=t.payload.total_channels,e.totalOccupancy=t.payload.total_occupancy,e.channels={},Object.keys(t.payload.channels).forEach((function(i){var n=t.payload.channels[i],r=[];return e.channels[i]={occupants:r,name:i,occupancy:n.occupancy},l&&n.uuids.forEach((function(e){d?r.push({state:e.state,uuid:e.uuid}):r.push({state:null,uuid:e})})),e})),e}():function(){var e={},i=[];return e.totalChannels=1,e.totalOccupancy=t.occupancy,e.channels={},e.channels[r[0]]={occupants:i,name:r[0],occupancy:t.occupancy},l&&t.uuids&&t.uuids.forEach((function(e){d?i.push({state:e.state,uuid:e.uuid}):i.push({state:null,uuid:e})})),e}()},handleError:function(e,t,i){402!==i.statusCode||this.getURL(e,t).includes("channel")||(i.errorData.message="You have tried to perform a Global Here Now operation, your keyset configuration does not support that. Please provide a channel, or enable the Global Here Now feature from the Portal.")}}),de=Object.freeze({__proto__:null,getOperation:function(){return M.PNAddMessageActionOperation},validateParams:function(e,t){var i=e.config,n=t.action,r=t.channel;return t.messageTimetoken?i.subscribeKey?r?n?n.value?n.type?n.type.length>15?"Action.type value exceed maximum length of 15":void 0:"Missing Action.type":"Missing Action.value":"Missing Action":"Missing message channel":"Missing Subscribe Key":"Missing message timetoken"},usePost:function(){return!0},postURL:function(e,t){var i=e.config,n=t.channel,r=t.messageTimetoken;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(n),"/message/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},getRequestHeaders:function(){return{"Content-Type":"application/json"}},isAuthSupported:function(){return!0},prepareParams:function(){return{}},postPayload:function(e,t){return t.action},handleResponse:function(e,t){return{data:t.data}}}),ce=Object.freeze({__proto__:null,getOperation:function(){return M.PNRemoveMessageActionOperation},validateParams:function(e,t){var i=e.config,n=t.channel,r=t.actionTimetoken;return t.messageTimetoken?r?i.subscribeKey?n?void 0:"Missing message channel":"Missing Subscribe Key":"Missing action timetoken":"Missing message timetoken"},useDelete:function(){return!0},getURL:function(e,t){var i=e.config,n=t.channel,r=t.actionTimetoken,o=t.messageTimetoken;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(n),"/message/").concat(o,"/action/").concat(r)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{data:t.data}}}),pe=Object.freeze({__proto__:null,getOperation:function(){return M.PNGetMessageActionsOperation},validateParams:function(e,t){var i=e.config,n=t.channel;return i.subscribeKey?n?void 0:"Missing message channel":"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channel;return"/v1/message-actions/".concat(i.subscribeKey,"/channel/").concat(R.encodeString(n))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.limit,n=t.start,r=t.end,o={};return i&&(o.limit=i),n&&(o.start=n),r&&(o.end=r),o},handleResponse:function(e,t){var i={data:t.data,start:null,end:null};return i.data.length&&(i.end=i.data[i.data.length-1].actionTimetoken,i.start=i.data[0].actionTimetoken),i}}),he={getOperation:function(){return M.PNListFilesOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"channel can't be empty"},getURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/files")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.limit&&(i.limit=t.limit),t.next&&(i.next=t.next),i},handleResponse:function(e,t){return{status:t.status,data:t.data,next:t.next,count:t.count}}},fe={getOperation:function(){return M.PNGenerateUploadUrlOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.name)?void 0:"name can't be empty":"channel can't be empty"},usePost:function(){return!0},postURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/generate-upload-url")},postPayload:function(e,t){return{name:t.name}},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status,data:t.data,file_upload_request:t.file_upload_request}}},me={getOperation:function(){return M.PNPublishFileOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.fileId)?(null==t?void 0:t.fileName)?void 0:"file name can't be empty":"file id can't be empty":"channel can't be empty"},getURL:function(e,t){var i=e.config,n=i.publishKey,r=i.subscribeKey,o=function(e,t){var i=e.crypto,n=e.config,r=JSON.stringify(t);return n.cipherKey&&(r=i.encrypt(r),r=JSON.stringify(r)),r||""}(e,{message:t.message,file:{name:t.fileName,id:t.fileId}});return"/v1/files/publish-file/".concat(n,"/").concat(r,"/0/").concat(R.encodeString(t.channel),"/0/").concat(R.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.ttl&&(i.ttl=t.ttl),void 0!==t.storeInHistory&&(i.store=t.storeInHistory?"1":"0"),t.meta&&"object"==typeof t.meta&&(i.meta=JSON.stringify(t.meta)),i},handleResponse:function(e,t){return{timetoken:t[2]}}},ge=function(e){var t=function(e){var t=this,i=e.generateUploadUrl,n=e.publishFile,r=e.modules,s=r.PubNubFile,l=r.config,u=r.cryptography,d=r.networking;return function(e){var r=e.channel,c=e.file,p=e.message,h=e.cipherKey,f=e.meta,m=e.ttl,g=e.storeInHistory;return o(t,void 0,void 0,(function(){var e,t,o,v,y,b,w,S,T,x,A,C,O,I,N,E,R,_,P,M,F,D,k,U,L,B,q,J;return a(this,(function(a){switch(a.label){case 0:if(!r)throw new j("Validation failed, check status for details",H("channel can't be empty"));if(!c)throw new j("Validation failed, check status for details",H("file can't be empty"));return e=s.create(c),[4,i({channel:r,name:e.name})];case 1:return t=a.sent(),o=t.file_upload_request,v=o.url,y=o.form_fields,b=t.data,w=b.id,S=b.name,s.supportsEncryptFile&&(null!=h?h:l.cipherKey)?[4,u.encryptFile(null!=h?h:l.cipherKey,e,s)]:[3,3];case 2:e=a.sent(),a.label=3;case 3:T=y,e.mimeType&&(T=y.map((function(t){return"Content-Type"===t.key?{key:t.key,value:e.mimeType}:t}))),a.label=4;case 4:return a.trys.push([4,18,,22]),s.supportsFileUri&&c.uri?(C=(A=d).POSTFILE,O=[v,T],[4,e.toFileUri()]):[3,7];case 5:return[4,C.apply(A,O.concat([a.sent()]))];case 6:return x=a.sent(),[3,17];case 7:return s.supportsFile?(N=(I=d).POSTFILE,E=[v,T],[4,e.toFile()]):[3,10];case 8:return[4,N.apply(I,E.concat([a.sent()]))];case 9:return x=a.sent(),[3,17];case 10:return s.supportsBuffer?(_=(R=d).POSTFILE,P=[v,T],[4,e.toBuffer()]):[3,13];case 11:return[4,_.apply(R,P.concat([a.sent()]))];case 12:return x=a.sent(),[3,17];case 13:return s.supportsBlob?(F=(M=d).POSTFILE,D=[v,T],[4,e.toBlob()]):[3,16];case 14:return[4,F.apply(M,D.concat([a.sent()]))];case 15:return x=a.sent(),[3,17];case 16:throw new Error("Unsupported environment");case 17:return[3,22];case 18:return(k=a.sent()).response?[4,(G=k.response,new Promise((function(e){var t="";G.on("data",(function(e){t+=e.toString("utf8")})),G.on("end",(function(){e(t)}))})))]:[3,20];case 19:throw U=a.sent(),L=/<Message>(.*)<\/Message>/gi.exec(U),new j(L?"Upload to bucket failed: ".concat(L[1]):"Upload to bucket failed.",k);case 20:throw new j("Upload to bucket failed.",k);case 21:return[3,22];case 22:if(204!==x.status)throw new j("Upload to bucket was unsuccessful",x);B=l.fileUploadPublishRetryLimit,q=!1,J={timetoken:"0"},a.label=23;case 23:return a.trys.push([23,25,,26]),[4,n({channel:r,message:p,fileId:w,fileName:S,meta:f,storeInHistory:g,ttl:m})];case 24:return J=a.sent(),q=!0,[3,26];case 25:return a.sent(),B-=1,[3,26];case 26:if(!q&&B>0)return[3,23];a.label=27;case 27:if(q)return[2,{timetoken:J.timetoken,id:w,name:S}];throw new j("Publish failed. You may want to execute that operation manually using pubnub.publishFile",{channel:r,id:w,name:S})}var G}))}))}}(e);return function(e,i){var n=t(e);return"function"==typeof i?(n.then((function(e){return i(null,e)})).catch((function(e){return i(e,null)})),n):n}},ve=function(e,t){var i=t.channel,n=t.id,r=t.name,o=e.config,a=e.networking,s=e.tokenManager;if(!i)throw new j("Validation failed, check status for details",H("channel can't be empty"));if(!n)throw new j("Validation failed, check status for details",H("file id can't be empty"));if(!r)throw new j("Validation failed, check status for details",H("file name can't be empty"));var l="/v1/files/".concat(o.subscribeKey,"/channels/").concat(R.encodeString(i),"/files/").concat(n,"/").concat(r),u={};u.uuid=o.getUUID(),u.pnsdk=z(o);var d=s.getToken()||o.getAuthKey();d&&(u.auth=d),o.secretKey&&V(e,l,u,{},{getOperation:function(){return"PubNubGetFileUrlOperation"}});var c=Object.keys(u).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(u[e]))})).join("&");return""!==c?"".concat(a.getStandardOrigin()).concat(l,"?").concat(c):"".concat(a.getStandardOrigin()).concat(l)},ye={getOperation:function(){return M.PNDownloadFileOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.name)?(null==t?void 0:t.id)?void 0:"id can't be empty":"name can't be empty":"channel can't be empty"},useGetFile:function(){return!0},getFileURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/files/").concat(t.id,"/").concat(t.name)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},ignoreBody:function(){return!0},forceBuffered:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t,i){var n=e.PubNubFile,r=e.config,s=e.cryptography;return o(void 0,void 0,void 0,(function(){var e,o,l,u;return a(this,(function(a){switch(a.label){case 0:return e=t.response.body,n.supportsEncryptFile&&(null!==(o=i.cipherKey)&&void 0!==o?o:r.cipherKey)?[4,s.decrypt(null!==(l=i.cipherKey)&&void 0!==l?l:r.cipherKey,e)]:[3,2];case 1:e=a.sent(),a.label=2;case 2:return[2,n.create({data:e,name:null!==(u=t.response.name)&&void 0!==u?u:i.name,mimeType:t.response.type})]}}))}))}},be={getOperation:function(){return M.PNListFilesOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.id)?(null==t?void 0:t.name)?void 0:"file name can't be empty":"file id can't be empty":"channel can't be empty"},useDelete:function(){return!0},getURL:function(e,t){var i=e.config;return"/v1/files/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/files/").concat(t.id,"/").concat(t.name)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status}}},we={getOperation:function(){return M.PNGetAllUUIDMetadataOperation},validateParams:function(){},getURL:function(e){var t=e.config;return"/v2/objects/".concat(t.subscribeKey,"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(i=t.include)||void 0===i?void 0:i.customFields)&&p.include.push("custom"),p.include=p.include.join(","),(null===(n=null==t?void 0:t.include)||void 0===n?void 0:n.totalCount)&&(p.count=null===(r=t.include)||void 0===r?void 0:r.totalCount),(null===(o=null==t?void 0:t.page)||void 0===o?void 0:o.next)&&(p.start=null===(a=t.page)||void 0===a?void 0:a.next),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.prev)&&(p.end=null===(u=t.page)||void 0===u?void 0:u.prev),(null==t?void 0:t.filter)&&(p.filter=t.filter),p.limit=null!==(d=null==t?void 0:t.limit)&&void 0!==d?d:100,(null==t?void 0:t.sort)&&(p.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),p},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,next:t.next,prev:t.prev}}},Se={getOperation:function(){return M.PNGetUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r=e.config,o={};return o.uuid=null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:r.getUUID(),o.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&o.include.pop(),o.include=o.include.join(","),o},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Te={getOperation:function(){return M.PNSetUUIDMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.data))return"Data cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=t.uuid)&&void 0!==i?i:n.getUUID()))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r=e.config,o={};return o.uuid=null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:r.getUUID(),o.include=["status","type","custom"],(null==t?void 0:t.include)&&!1===(null===(n=t.include)||void 0===n?void 0:n.customFields)&&o.include.pop(),o.include=o.include.join(","),o},handleResponse:function(e,t){return{status:t.status,data:t.data}}},xe={getOperation:function(){return M.PNRemoveUUIDMetadataOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n=e.config;return{uuid:null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ae={getOperation:function(){return M.PNGetAllChannelMetadataOperation},validateParams:function(){},getURL:function(e){var t=e.config;return"/v2/objects/".concat(t.subscribeKey,"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p={include:["status","type"]};return(null==t?void 0:t.include)&&(null===(i=t.include)||void 0===i?void 0:i.customFields)&&p.include.push("custom"),p.include=p.include.join(","),(null===(n=null==t?void 0:t.include)||void 0===n?void 0:n.totalCount)&&(p.count=null===(r=t.include)||void 0===r?void 0:r.totalCount),(null===(o=null==t?void 0:t.page)||void 0===o?void 0:o.next)&&(p.start=null===(a=t.page)||void 0===a?void 0:a.next),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.prev)&&(p.end=null===(u=t.page)||void 0===u?void 0:u.prev),(null==t?void 0:t.filter)&&(p.filter=t.filter),p.limit=null!==(d=null==t?void 0:t.limit)&&void 0!==d?d:100,(null==t?void 0:t.sort)&&(p.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),p},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ce={getOperation:function(){return M.PNGetChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&n.include.pop(),n.include=n.include.join(","),n},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Oe={getOperation:function(){return M.PNSetChannelMetadataOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.data)?void 0:"Data cannot be empty":"Channel cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel))},patchPayload:function(e,t){return t.data},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n={include:["status","type","custom"]};return(null==t?void 0:t.include)&&!1===(null===(i=t.include)||void 0===i?void 0:i.customFields)&&n.include.pop(),n.include=n.include.join(","),n},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ie={getOperation:function(){return M.PNRemoveChannelMetadataOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"Channel cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{status:t.status,data:t.data}}},Ne={getOperation:function(){return M.PNGetMembersOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channel))return"UUID cannot be empty"},getURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/uuids")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p,h,f,m={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&m.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customUUIDFields)&&m.include.push("uuid.custom"),(null===(o=null===(r=t.include)||void 0===r?void 0:r.UUIDFields)||void 0===o||o)&&m.include.push("uuid")),m.include=m.include.join(","),(null===(a=null==t?void 0:t.include)||void 0===a?void 0:a.totalCount)&&(m.count=null===(s=t.include)||void 0===s?void 0:s.totalCount),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.next)&&(m.start=null===(d=t.page)||void 0===d?void 0:d.next),(null===(c=null==t?void 0:t.page)||void 0===c?void 0:c.prev)&&(m.end=null===(p=t.page)||void 0===p?void 0:p.prev),(null==t?void 0:t.filter)&&(m.filter=t.filter),m.limit=null!==(h=null==t?void 0:t.limit)&&void 0!==h?h:100,(null==t?void 0:t.sort)&&(m.sort=Object.entries(null!==(f=t.sort)&&void 0!==f?f:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),m},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Ee={getOperation:function(){return M.PNSetMembersOperation},validateParams:function(e,t){return(null==t?void 0:t.channel)?(null==t?void 0:t.uuids)&&0!==(null==t?void 0:t.uuids.length)?void 0:"UUIDs cannot be empty":"Channel cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var i=e.config;return"/v2/objects/".concat(i.subscribeKey,"/channels/").concat(R.encodeString(t.channel),"/uuids")},patchPayload:function(e,t){var i;return(i={set:[],delete:[]})[t.type]=t.uuids.map((function(e){return"string"==typeof e?{uuid:{id:e}}:{uuid:{id:e.id},custom:e.custom,status:e.status}})),i},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p={include:["uuid.status","uuid.type","type"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&p.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customUUIDFields)&&p.include.push("uuid.custom"),(null===(r=t.include)||void 0===r?void 0:r.UUIDFields)&&p.include.push("uuid")),p.include=p.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(p.count=!0),(null===(a=null==t?void 0:t.page)||void 0===a?void 0:a.next)&&(p.start=null===(s=t.page)||void 0===s?void 0:s.next),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.prev)&&(p.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(p.filter=t.filter),null!=t.limit&&(p.limit=t.limit),(null==t?void 0:t.sort)&&(p.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),p},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Re={getOperation:function(){return M.PNGetMembershipsOperation},validateParams:function(){},getURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=null==t?void 0:t.uuid)&&void 0!==i?i:n.getUUID()),"/channels")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p,h,f={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&f.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customChannelFields)&&f.include.push("channel.custom"),(null===(r=t.include)||void 0===r?void 0:r.channelFields)&&f.include.push("channel")),f.include=f.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(f.count=null===(a=t.include)||void 0===a?void 0:a.totalCount),(null===(s=null==t?void 0:t.page)||void 0===s?void 0:s.next)&&(f.start=null===(u=t.page)||void 0===u?void 0:u.next),(null===(d=null==t?void 0:t.page)||void 0===d?void 0:d.prev)&&(f.end=null===(c=t.page)||void 0===c?void 0:c.prev),(null==t?void 0:t.filter)&&(f.filter=t.filter),f.limit=null!==(p=null==t?void 0:t.limit)&&void 0!==p?p:100,(null==t?void 0:t.sort)&&(f.sort=Object.entries(null!==(h=t.sort)&&void 0!==h?h:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),f},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},_e={getOperation:function(){return M.PNSetMembershipsOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channels)||0===(null==t?void 0:t.channels.length))return"Channels cannot be empty"},usePatch:function(){return!0},patchURL:function(e,t){var i,n=e.config;return"/v2/objects/".concat(n.subscribeKey,"/uuids/").concat(R.encodeString(null!==(i=t.uuid)&&void 0!==i?i:n.getUUID()),"/channels")},patchPayload:function(e,t){var i;return(i={set:[],delete:[]})[t.type]=t.channels.map((function(e){return"string"==typeof e?{channel:{id:e}}:{channel:{id:e.id},custom:e.custom,status:e.status}})),i},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i,n,r,o,a,s,u,d,c,p={include:["channel.status","channel.type","status"]};return(null==t?void 0:t.include)&&((null===(i=t.include)||void 0===i?void 0:i.customFields)&&p.include.push("custom"),(null===(n=t.include)||void 0===n?void 0:n.customChannelFields)&&p.include.push("channel.custom"),(null===(r=t.include)||void 0===r?void 0:r.channelFields)&&p.include.push("channel")),p.include=p.include.join(","),(null===(o=null==t?void 0:t.include)||void 0===o?void 0:o.totalCount)&&(p.count=!0),(null===(a=null==t?void 0:t.page)||void 0===a?void 0:a.next)&&(p.start=null===(s=t.page)||void 0===s?void 0:s.next),(null===(u=null==t?void 0:t.page)||void 0===u?void 0:u.prev)&&(p.end=null===(d=t.page)||void 0===d?void 0:d.prev),(null==t?void 0:t.filter)&&(p.filter=t.filter),null!=t.limit&&(p.limit=t.limit),(null==t?void 0:t.sort)&&(p.sort=Object.entries(null!==(c=t.sort)&&void 0!==c?c:{}).map((function(e){var t=l(e,2),i=t[0],n=t[1];return"asc"===n||"desc"===n?"".concat(i,":").concat(n):i}))),p},handleResponse:function(e,t){return{status:t.status,data:t.data,totalCount:t.totalCount,prev:t.prev,next:t.next}}},Pe=Object.freeze({__proto__:null,getOperation:function(){return M.PNAccessManagerAudit},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v2/auth/audit/sub-key/".concat(t.subscribeKey)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e,t){var i=t.channel,n=t.channelGroup,r=t.authKeys,o=void 0===r?[]:r,a={};return i&&(a.channel=i),n&&(a["channel-group"]=n),o.length>0&&(a.auth=o.join(",")),a},handleResponse:function(e,t){return t.payload}}),Me=Object.freeze({__proto__:null,getOperation:function(){return M.PNAccessManagerGrant},validateParams:function(e,t){var i=e.config;return i.subscribeKey?i.publishKey?i.secretKey?null==t.uuids||t.authKeys?null==t.uuids||null==t.channels&&null==t.channelGroups?void 0:"Both channel/channelgroup and uuid cannot be used in the same request":"authKeys are required for grant request on uuids":"Missing Secret Key":"Missing Publish Key":"Missing Subscribe Key"},getURL:function(e){var t=e.config;return"/v2/auth/grant/sub-key/".concat(t.subscribeKey)},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e,t){var i=t.channels,n=void 0===i?[]:i,r=t.channelGroups,o=void 0===r?[]:r,a=t.uuids,s=void 0===a?[]:a,l=t.ttl,u=t.read,d=void 0!==u&&u,c=t.write,p=void 0!==c&&c,h=t.manage,f=void 0!==h&&h,m=t.get,g=void 0!==m&&m,v=t.join,y=void 0!==v&&v,b=t.update,w=void 0!==b&&b,S=t.authKeys,T=void 0===S?[]:S,x=t.delete,A={};return A.r=d?"1":"0",A.w=p?"1":"0",A.m=f?"1":"0",A.d=x?"1":"0",A.g=g?"1":"0",A.j=y?"1":"0",A.u=w?"1":"0",n.length>0&&(A.channel=n.join(",")),o.length>0&&(A["channel-group"]=o.join(",")),T.length>0&&(A.auth=T.join(",")),s.length>0&&(A["target-uuid"]=s.join(",")),(l||0===l)&&(A.ttl=l),A},handleResponse:function(){return{}}});function Fe(e){var t,i,n,r,o=void 0!==(null==e?void 0:e.authorizedUserId),a=void 0!==(null===(t=null==e?void 0:e.resources)||void 0===t?void 0:t.users),s=void 0!==(null===(i=null==e?void 0:e.resources)||void 0===i?void 0:i.spaces),l=void 0!==(null===(n=null==e?void 0:e.patterns)||void 0===n?void 0:n.users),u=void 0!==(null===(r=null==e?void 0:e.patterns)||void 0===r?void 0:r.spaces);return l||a||u||s||o}function De(e){var t=0;return e.join&&(t|=128),e.update&&(t|=64),e.get&&(t|=32),e.delete&&(t|=8),e.manage&&(t|=4),e.write&&(t|=2),e.read&&(t|=1),t}var ke=Object.freeze({__proto__:null,getOperation:function(){return M.PNAccessManagerGrantToken},extractPermissions:De,validateParams:function(e,t){var i,n,r,o,a,s,l=e.config;if(!l.subscribeKey)return"Missing Subscribe Key";if(!l.publishKey)return"Missing Publish Key";if(!l.secretKey)return"Missing Secret Key";if(!t.resources&&!t.patterns)return"Missing either Resources or Patterns.";var u=void 0!==(null==t?void 0:t.authorized_uuid),d=void 0!==(null===(i=null==t?void 0:t.resources)||void 0===i?void 0:i.uuids),c=void 0!==(null===(n=null==t?void 0:t.resources)||void 0===n?void 0:n.channels),p=void 0!==(null===(r=null==t?void 0:t.resources)||void 0===r?void 0:r.groups),h=void 0!==(null===(o=null==t?void 0:t.patterns)||void 0===o?void 0:o.uuids),f=void 0!==(null===(a=null==t?void 0:t.patterns)||void 0===a?void 0:a.channels),m=void 0!==(null===(s=null==t?void 0:t.patterns)||void 0===s?void 0:s.groups),g=u||d||h||c||f||p||m;return Fe(t)&&g?"Cannot mix `users`, `spaces` and `authorizedUserId` with `uuids`, `channels`, `groups` and `authorized_uuid`":(!t.resources||t.resources.uuids&&0!==Object.keys(t.resources.uuids).length||t.resources.channels&&0!==Object.keys(t.resources.channels).length||t.resources.groups&&0!==Object.keys(t.resources.groups).length||t.resources.users&&0!==Object.keys(t.resources.users).length||t.resources.spaces&&0!==Object.keys(t.resources.spaces).length)&&(!t.patterns||t.patterns.uuids&&0!==Object.keys(t.patterns.uuids).length||t.patterns.channels&&0!==Object.keys(t.patterns.channels).length||t.patterns.groups&&0!==Object.keys(t.patterns.groups).length||t.patterns.users&&0!==Object.keys(t.patterns.users).length||t.patterns.spaces&&0!==Object.keys(t.patterns.spaces).length)?void 0:"Missing values for either Resources or Patterns."},postURL:function(e){var t=e.config;return"/v3/pam/".concat(t.subscribeKey,"/grant")},usePost:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(){return{}},postPayload:function(e,t){return function(e,t){if(Fe(t))return function(e,t){var i=t.ttl,n=t.resources,r=t.patterns,o=t.meta,a=t.authorizedUserId,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(n){var l=n.users,u=n.spaces,d=n.groups;l&&Object.keys(l).forEach((function(e){s.permissions.resources.uuids[e]=De(l[e])})),u&&Object.keys(u).forEach((function(e){s.permissions.resources.channels[e]=De(u[e])})),d&&Object.keys(d).forEach((function(e){s.permissions.resources.groups[e]=De(d[e])}))}if(r){var c=r.users,p=r.spaces,h=r.groups;c&&Object.keys(c).forEach((function(e){s.permissions.patterns.uuids[e]=De(c[e])})),p&&Object.keys(p).forEach((function(e){s.permissions.patterns.channels[e]=De(p[e])})),h&&Object.keys(h).forEach((function(e){s.permissions.patterns.groups[e]=De(h[e])}))}return(i||0===i)&&(s.ttl=i),o&&(s.permissions.meta=o),a&&(s.permissions.uuid="".concat(a)),s}(0,t);var i=t.ttl,n=t.resources,r=t.patterns,o=t.meta,a=t.authorized_uuid,s={ttl:0,permissions:{resources:{channels:{},groups:{},uuids:{},users:{},spaces:{}},patterns:{channels:{},groups:{},uuids:{},users:{},spaces:{}},meta:{}}};if(n){var l=n.uuids,u=n.channels,d=n.groups;l&&Object.keys(l).forEach((function(e){s.permissions.resources.uuids[e]=De(l[e])})),u&&Object.keys(u).forEach((function(e){s.permissions.resources.channels[e]=De(u[e])})),d&&Object.keys(d).forEach((function(e){s.permissions.resources.groups[e]=De(d[e])}))}if(r){var c=r.uuids,p=r.channels,h=r.groups;c&&Object.keys(c).forEach((function(e){s.permissions.patterns.uuids[e]=De(c[e])})),p&&Object.keys(p).forEach((function(e){s.permissions.patterns.channels[e]=De(p[e])})),h&&Object.keys(h).forEach((function(e){s.permissions.patterns.groups[e]=De(h[e])}))}return(i||0===i)&&(s.ttl=i),o&&(s.permissions.meta=o),a&&(s.permissions.uuid="".concat(a)),s}(0,t)},handleResponse:function(e,t){return t.data.token}}),Ue={getOperation:function(){return M.PNAccessManagerRevokeToken},validateParams:function(e,t){return e.config.secretKey?t?void 0:"token can't be empty":"Missing Secret Key"},getURL:function(e,t){var i=e.config;return"/v3/pam/".concat(i.subscribeKey,"/grant/").concat(R.encodeString(t))},useDelete:function(){return!0},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!1},prepareParams:function(e){return{uuid:e.config.getUUID()}},handleResponse:function(e,t){return{status:t.status,data:t.data}}};function Le(e,t){var i=e.crypto,n=e.config,r=JSON.stringify(t);return n.cipherKey&&(r=i.encrypt(r),r=JSON.stringify(r)),r}var Be=Object.freeze({__proto__:null,getOperation:function(){return M.PNPublishOperation},validateParams:function(e,t){var i=e.config,n=t.message;return t.channel?n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},usePost:function(e,t){var i=t.sendByPost;return void 0!==i&&i},getURL:function(e,t){var i=e.config,n=t.channel,r=Le(e,t.message);return"/publish/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(R.encodeString(n),"/0/").concat(R.encodeString(r))},postURL:function(e,t){var i=e.config,n=t.channel;return"/publish/".concat(i.publishKey,"/").concat(i.subscribeKey,"/0/").concat(R.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},postPayload:function(e,t){return Le(e,t.message)},prepareParams:function(e,t){var i=t.meta,n=t.replicate,r=void 0===n||n,o=t.storeInHistory,a=t.ttl,s={};return null!=o&&(s.store=o?"1":"0"),a&&(s.ttl=a),!1===r&&(s.norep="true"),i&&"object"==typeof i&&(s.meta=JSON.stringify(i)),s},handleResponse:function(e,t){return{timetoken:t[2]}}}),qe=Object.freeze({__proto__:null,getOperation:function(){return M.PNSignalOperation},validateParams:function(e,t){var i=e.config,n=t.message;return t.channel?n?i.subscribeKey?void 0:"Missing Subscribe Key":"Missing Message":"Missing Channel"},getURL:function(e,t){var i,n=e.config,r=t.channel,o=(i=t.message,JSON.stringify(i));return"/signal/".concat(n.publishKey,"/").concat(n.subscribeKey,"/0/").concat(R.encodeString(r),"/0/").concat(R.encodeString(o))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(){return{}},handleResponse:function(e,t){return{timetoken:t[2]}}});function Je(e,t){var i=e.config,n=e.crypto;if(!i.cipherKey)return t;try{return n.decrypt(t)}catch(e){return t}}var je=Object.freeze({__proto__:null,getOperation:function(){return M.PNHistoryOperation},validateParams:function(e,t){var i=t.channel,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var i=t.channel,n=e.config;return"/v2/history/sub-key/".concat(n.subscribeKey,"/channel/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.start,n=t.end,r=t.reverse,o=t.count,a=void 0===o?100:o,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,d=void 0!==u&&u,c={include_token:"true"};return c.count=a,i&&(c.start=i),n&&(c.end=n),l&&(c.string_message_token="true"),null!=r&&(c.reverse=r.toString()),d&&(c.include_meta="true"),c},handleResponse:function(e,t){var i={messages:[],startTimeToken:t[1],endTimeToken:t[2]};return Array.isArray(t[0])&&t[0].forEach((function(t){var n={timetoken:t.timetoken,entry:Je(e,t.message)};t.meta&&(n.meta=t.meta),i.messages.push(n)})),i}}),He=Object.freeze({__proto__:null,getOperation:function(){return M.PNDeleteMessagesOperation},validateParams:function(e,t){var i=t.channel,n=e.config;return i?n.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},useDelete:function(){return!0},getURL:function(e,t){var i=t.channel,n=e.config;return"/v3/history/sub-key/".concat(n.subscribeKey,"/channel/").concat(R.encodeString(i))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.start,n=t.end,r={};return i&&(r.start=i),n&&(r.end=n),r},handleResponse:function(e,t){return t.payload}}),Ge=Object.freeze({__proto__:null,getOperation:function(){return M.PNMessageCounts},validateParams:function(e,t){var i=t.channels,n=t.timetoken,r=t.channelTimetokens,o=e.config;return i?n&&r?"timetoken and channelTimetokens are incompatible together":n&&r&&r.length>1&&i.length!==r.length?"Length of channelTimetokens and channels do not match":o.subscribeKey?void 0:"Missing Subscribe Key":"Missing channel"},getURL:function(e,t){var i=t.channels,n=e.config,r=i.join(",");return"/v3/history/sub-key/".concat(n.subscribeKey,"/message-counts/").concat(R.encodeString(r))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.timetoken,n=t.channelTimetokens,r={};if(n&&1===n.length){var o=l(n,1)[0];r.timetoken=o}else n?r.channelsTimetoken=n.join(","):i&&(r.timetoken=i);return r},handleResponse:function(e,t){return{channels:t.channels}}}),ze=Object.freeze({__proto__:null,getOperation:function(){return M.PNFetchMessagesOperation},validateParams:function(e,t){var i=t.channels,n=t.includeMessageActions,r=void 0!==n&&n,o=e.config;if(!i||0===i.length)return"Missing channels";if(!o.subscribeKey)return"Missing Subscribe Key";if(r&&i.length>1)throw new TypeError("History can return actions data for a single channel only. Either pass a single channel or disable the includeMessageActions flag.")},getURL:function(e,t){var i=t.channels,n=void 0===i?[]:i,r=t.includeMessageActions,o=void 0!==r&&r,a=e.config,s=o?"history-with-actions":"history",l=n.length>0?n.join(","):",";return"/v3/".concat(s,"/sub-key/").concat(a.subscribeKey,"/channel/").concat(R.encodeString(l))},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=t.channels,n=t.start,r=t.end,o=t.includeMessageActions,a=t.count,s=t.stringifiedTimeToken,l=void 0!==s&&s,u=t.includeMeta,d=void 0!==u&&u,c=t.includeUuid,p=t.includeUUID,h=void 0===p||p,f=t.includeMessageType,m=void 0===f||f,g={};return g.max=a||(i.length>1||!0===o?25:100),n&&(g.start=n),r&&(g.end=r),l&&(g.string_message_token="true"),d&&(g.include_meta="true"),h&&!1!==c&&(g.include_uuid="true"),m&&(g.include_message_type="true"),g},handleResponse:function(e,t){var i={channels:{}};return Object.keys(t.channels||{}).forEach((function(n){i.channels[n]=[],(t.channels[n]||[]).forEach((function(t){var r={};r.channel=n,r.timetoken=t.timetoken,r.message=function(e,t){var i=e.config,n=e.crypto;if(!i.cipherKey)return t;try{return n.decrypt(t)}catch(e){return t}}(e,t.message),r.messageType=t.message_type,r.uuid=t.uuid,t.actions&&(r.actions=t.actions,r.data=t.actions),t.meta&&(r.meta=t.meta),i.channels[n].push(r)}))})),t.more&&(i.more=t.more),i}}),We=Object.freeze({__proto__:null,getOperation:function(){return M.PNTimeOperation},getURL:function(){return"/time/0"},getRequestTimeout:function(e){return e.config.getTransactionTimeout()},prepareParams:function(){return{}},isAuthSupported:function(){return!1},handleResponse:function(e,t){return{timetoken:t[0]}},validateParams:function(){}}),Ve=Object.freeze({__proto__:null,getOperation:function(){return M.PNSubscribeOperation},validateParams:function(e){if(!e.config.subscribeKey)return"Missing Subscribe Key"},getURL:function(e,t){var i=e.config,n=t.channels,r=void 0===n?[]:n,o=r.length>0?r.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(R.encodeString(o),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i=e.config,n=t.state,r=t.channelGroups,o=void 0===r?[]:r,a=t.timetoken,s=t.filterExpression,l=t.region,u={heartbeat:i.getPresenceTimeout()};return o.length>0&&(u["channel-group"]=o.join(",")),s&&s.length>0&&(u["filter-expr"]=s),Object.keys(n).length&&(u.state=JSON.stringify(n)),a&&(u.tt=a),l&&(u.tr=l),u},handleResponse:function(e,t){var i=[];t.m.forEach((function(e){var t={publishTimetoken:e.p.t,region:e.p.r},n={shard:parseInt(e.a,10),subscriptionMatch:e.b,channel:e.c,messageType:e.e,payload:e.d,flags:e.f,issuingClientId:e.i,subscribeKey:e.k,originationTimetoken:e.o,userMetadata:e.u,publishMetaData:t};i.push(n)}));var n={timetoken:t.t.t,region:t.t.r};return{messages:i,metadata:n}}}),Qe={getOperation:function(){return M.PNHandshakeOperation},validateParams:function(e,t){if(!(null==t?void 0:t.channels)&&!(null==t?void 0:t.channelGroups))return"channels and channleGroups both should not be empty"},getURL:function(e,t){var i=e.config,n=t.channels?t.channels.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(R.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},prepareParams:function(e,t){var i={};return t.channelGroups&&t.channelGroups.length>0&&(i["channel-group"]=t.channelGroups.join(",")),i.tt=0,i},handleResponse:function(e,t){return{region:t.t.r,timetoken:t.t.t}}},Ke={getOperation:function(){return M.PNReceiveMessagesOperation},validateParams:function(e,t){return(null==t?void 0:t.channels)||(null==t?void 0:t.channelGroups)?(null==t?void 0:t.timetoken)?(null==t?void 0:t.region)?void 0:"region can not be empty":"timetoken can not be empty":"channels and channleGroups both should not be empty"},getURL:function(e,t){var i=e.config,n=t.channels?t.channels.join(","):",";return"/v2/subscribe/".concat(i.subscribeKey,"/").concat(R.encodeString(n),"/0")},getRequestTimeout:function(e){return e.config.getSubscribeTimeout()},isAuthSupported:function(){return!0},getAbortSignal:function(e,t){return t.abortSignal},prepareParams:function(e,t){var i={};return t.channelGroups&&t.channelGroups.length>0&&(i["channel-group"]=t.channelGroups.join(",")),i.tt=t.timetoken,i.tr=t.region,i},handleResponse:function(e,t){var i=[];return t.m.forEach((function(e){var t={shard:parseInt(e.a,10),subscriptionMatch:e.b,channel:e.c,messageType:e.e,payload:e.d,flags:e.f,issuingClientId:e.i,subscribeKey:e.k,originationTimetoken:e.o,publishMetaData:{timetoken:e.p.t,region:e.p.r}};i.push(t)})),{messages:i,metadata:{region:t.t.r,timetoken:t.t.t}}}},Xe=function(){function e(e){void 0===e&&(e=!1),this.sync=e,this.listeners=new Set}return e.prototype.subscribe=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.notify=function(e){var t=this,i=function(){t.listeners.forEach((function(t){t(e)}))};this.sync?i():setTimeout(i,0)},e}(),Ye=function(){function e(e){this.label=e,this.transitionMap=new Map,this.enterEffects=[],this.exitEffects=[]}return e.prototype.transition=function(e,t){var i;if(this.transitionMap.has(t.type))return null===(i=this.transitionMap.get(t.type))||void 0===i?void 0:i(e,t)},e.prototype.on=function(e,t){return this.transitionMap.set(e,t),this},e.prototype.with=function(e,t){return[this,e,null!=t?t:[]]},e.prototype.onEnter=function(e){return this.enterEffects.push(e),this},e.prototype.onExit=function(e){return this.exitEffects.push(e),this},e}(),$e=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return t(i,e),i.prototype.describe=function(e){return new Ye(e)},i.prototype.start=function(e,t){this.currentState=e,this.currentContext=t,this.notify({type:"engineStarted",state:e,context:t})},i.prototype.transition=function(e){var t,i,n,r,o,a;if(!this.currentState)throw new Error("Start the engine first");this.notify({type:"eventReceived",event:e});var u=this.currentState.transition(this.currentContext,e);if(u){var d=l(u,3),c=d[0],p=d[1],h=d[2];try{for(var f=s(this.currentState.exitEffects),m=f.next();!m.done;m=f.next()){var g=m.value;this.notify({type:"invocationDispatched",invocation:g(this.currentContext)})}}catch(e){t={error:e}}finally{try{m&&!m.done&&(i=f.return)&&i.call(f)}finally{if(t)throw t.error}}var v=this.currentState;this.currentState=c;var y=this.currentContext;this.currentContext=p,this.notify({type:"transitionDone",fromState:v,fromContext:y,toState:c,toContext:p,event:e});try{for(var b=s(h),w=b.next();!w.done;w=b.next())g=w.value,this.notify({type:"invocationDispatched",invocation:g})}catch(e){n={error:e}}finally{try{w&&!w.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}try{for(var S=s(this.currentState.enterEffects),T=S.next();!T.done;T=S.next())g=T.value,this.notify({type:"invocationDispatched",invocation:g(this.currentContext)})}catch(e){o={error:e}}finally{try{T&&!T.done&&(a=S.return)&&a.call(S)}finally{if(o)throw o.error}}}},i}(Xe),Ze=function(){function e(e){this.dependencies=e,this.instances=new Map,this.handlers=new Map}return e.prototype.on=function(e,t){this.handlers.set(e,t)},e.prototype.dispatch=function(e){if("CANCEL"!==e.type){var t=this.handlers.get(e.type);if(!t)throw new Error("Unhandled invocation '".concat(e.type,"'"));var i=t(e.payload,this.dependencies);e.managed&&this.instances.set(e.type,i),i.start()}else if(this.instances.has(e.payload)){var n=this.instances.get(e.payload);null==n||n.cancel(),this.instances.delete(e.payload)}},e}();function et(e,t){var i=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return{type:e,payload:null==t?void 0:t.apply(void 0,u([],l(i),!1))}};return i.type=e,i}function tt(e,t){var i=function(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];return{type:e,payload:t.apply(void 0,u([],l(i),!1)),managed:!0}};return i.type=e,i.cancel={type:"CANCEL",payload:e,managed:!1},i}var it,nt,rt,ot=function(e){function i(){var t=this.constructor,i=e.call(this,"The operation was aborted.")||this;return i.name="AbortError",Object.setPrototypeOf(i,t.prototype),i}return t(i,e),i}(Error),at=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t._aborted=!1,t}return t(i,e),Object.defineProperty(i.prototype,"aborted",{get:function(){return this._aborted},enumerable:!1,configurable:!0}),i.prototype.throwIfAborted=function(){if(this._aborted)throw new ot},i.prototype.abort=function(){this._aborted=!0,this.notify(new ot)},i}(Xe),st=function(e){function i(t,i,n){var r=e.call(this,t,i)||this;return r.asyncFunction=n,r.abortSignal=new at,r}return t(i,e),i.prototype.start=function(){this.asyncFunction(this.payload,this.abortSignal,this.dependencies)},i.prototype.cancel=function(){this.abortSignal.abort()},i}((function(e,t){this.payload=e,this.dependencies=t})),lt=function(e){return function(t,i){return new st(t,i,e)}},ut=tt("HANDSHAKE",(function(e,t){return{channels:e,groups:t}})),dt=tt("RECEIVE_EVENTS",(function(e,t,i){return{channels:e,groups:t,cursor:i}})),ct=(nt=function(e){return e},rt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{type:it,payload:nt.apply(void 0,u([],l(e),!1)),managed:!1}},rt.type=it="EMIT_EVENTS",rt),pt=tt("RECONNECT",(function(e){return e})),ht=tt("HANDSHAKE_RECONNECT",(function(e){return e})),ft=et("SUBSCRIPTION_CHANGE",(function(e,t){return{channels:e,groups:t}})),mt=et("DISCONNECT",(function(){return{}})),gt=et("RECONNECT",(function(){return{}}));et("RESTORE",(function(e,t,i,n){return{channels:e,groups:t,timetoken:i,region:n}}));var vt=et("HANDSHAKING_SUCCESS",(function(e){return e})),yt=et("HANDSHAKING_FAILURE",(function(e){return e})),bt=et("HANDSHAKING_RECONNECTING_SUCCESS",(function(e){return{cursor:e}})),wt=et("HANDSHAKING_RECONNECTING_FAILURE",(function(e){return e})),St=et("HANDSHAKING_RECONNECTING_GIVEUP",(function(){return{}})),Tt=et("HANDSHAKING_RECONNECTING_RETRY",(function(){return{}})),xt=et("RECEIVING_SUCCESS",(function(e,t){return{cursor:e,events:t}})),At=et("RECEIVING_FAILURE",(function(e){return e})),Ct=et("RECONNECTING_SUCCESS",(function(e,t){return{cursor:e,events:t}})),Ot=et("RECONNECTING_FAILURE",(function(e){return e})),It=et("RECONNECTING_GIVEUP",(function(){return{}})),Nt=et("RECONNECTING_RETRY",(function(){return{}})),Et=function(e){function i(t,i){var n=e.call(this,i)||this;return n.on(ut.type,lt((function(e,i,r){var s=r.handshake;return o(n,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:i.throwIfAborted(),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups})];case 2:return n=o.sent(),t.transition(vt(n)),[3,4];case 3:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof j?[2,t.transition(yt(r))]:[3,4];case 4:return[2]}}))}))}))),n.on(dt.type,lt((function(e,i,r){var s=r.receiveEvents;return o(n,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:i.throwIfAborted(),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region})];case 2:return n=o.sent(),t.transition(xt(n.metadata,n.messages)),[3,4];case 3:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof j?[2,t.transition(At(r))]:[3,4];case 4:return[2]}}))}))}))),n.on(ct.type,lt((function(e,t,i){return i.receiveEvents,o(n,void 0,void 0,(function(){return a(this,(function(t){return e.length>0&&console.log(e),[2]}))}))}))),n.on(pt.type,lt((function(e,i,r){var s=r.receiveEvents,l=r.shouldRetry,u=r.getRetryDelay,d=r.delay;return o(n,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:return l(e.reason,e.attempts)?(i.throwIfAborted(),[4,d(u(e.attempts))]):[2,t.transition(It())];case 1:o.sent(),i.throwIfAborted(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups,timetoken:e.cursor.timetoken,region:e.cursor.region})];case 3:return n=o.sent(),[2,t.transition(Ct(n.metadata,n.messages))];case 4:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof j?[2,t.transition(Ot(r))]:[3,5];case 5:return[2]}}))}))}))),n.on(ht.type,lt((function(e,i,r){var s=r.handshake,l=r.shouldRetry,u=r.getRetryDelay,d=r.delay;return o(n,void 0,void 0,(function(){var n,r;return a(this,(function(o){switch(o.label){case 0:return l(e.reason,e.attempts)?(i.throwIfAborted(),[4,d(u(e.attempts))]):[2,t.transition(St())];case 1:o.sent(),i.throwIfAborted(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,s({abortSignal:i,channels:e.channels,channelGroups:e.groups})];case 3:return n=o.sent(),[2,t.transition(bt(n.metadata))];case 4:return(r=o.sent())instanceof Error&&"Aborted"===r.message?[2]:r instanceof j?[2,t.transition(wt(r))]:[3,5];case 5:return[2]}}))}))}))),n}return t(i,e),i}(Ze),Rt=new Ye("STOPPED");Rt.on(ft.type,(function(e,t){return Rt.with({channels:t.payload.channels,groups:t.payload.groups})})),Rt.on(gt.type,(function(e){return Ut.with(n({},e))}));var _t=new Ye("HANDSHAKE_FAILURE");_t.on(Tt.type,(function(e){return kt.with(n(n({},e),{attempts:0}))})),_t.on(mt.type,(function(e){return Rt.with({channels:e.channels,groups:e.groups})}));var Pt=new Ye("STOPPED");Pt.on(ft.type,(function(e,t){return Pt.with({channels:t.payload.channels,groups:t.payload.groups,cursor:e.cursor})})),Pt.on(gt.type,(function(e){return Dt.with(n({},e))}));var Mt=new Ye("RECEIVE_FAILURE");Mt.on(Nt.type,(function(e){return Ft.with(n(n({},e),{attempts:0}))})),Mt.on(mt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Ft=new Ye("RECEIVE_RECONNECTING");Ft.onEnter((function(e){return pt(e)})),Ft.onExit((function(){return pt.cancel})),Ft.on(Ct.type,(function(e,t){return Dt.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[ct(t.payload.events)])})),Ft.on(Ot.type,(function(e,t){return Ft.with(n(n({},e),{attempts:e.attempts+1,reason:t.payload}))})),Ft.on(It.type,(function(e){return Mt.with({groups:e.groups,channels:e.channels,cursor:e.cursor,reason:e.reason})})),Ft.on(mt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var Dt=new Ye("RECEIVING");Dt.onEnter((function(e){return dt(e.channels,e.groups,e.cursor)})),Dt.onExit((function(){return dt.cancel})),Dt.on(xt.type,(function(e,t){return Dt.with(n(n({},e),{cursor:t.payload.cursor}),[ct(t.payload.events)])})),Dt.on(ft.type,(function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?Lt.with(void 0):Dt.with(n(n({},e),{channels:t.payload.channels,groups:t.payload.groups}))})),Dt.on(At.type,(function(e,t){return Ft.with(n(n({},e),{attempts:0,reason:t.payload}))})),Dt.on(mt.type,(function(e){return Pt.with({channels:e.channels,groups:e.groups,cursor:e.cursor})}));var kt=new Ye("HANDSHAKE_RECONNECTING");kt.onEnter((function(e){return ht(e)})),kt.onExit((function(){return pt.cancel})),kt.on(Ct.type,(function(e,t){return Dt.with({channels:e.channels,groups:e.groups,cursor:t.payload.cursor},[ct(t.payload.events)])})),kt.on(Ot.type,(function(e,t){return kt.with(n(n({},e),{attempts:e.attempts+1,reason:t.payload}))})),kt.on(It.type,(function(e){return _t.with({groups:e.groups,channels:e.channels,reason:e.reason})})),kt.on(mt.type,(function(e){return Rt.with({channels:e.channels,groups:e.groups})}));var Ut=new Ye("HANDSHAKING");Ut.onEnter((function(e){return ut(e.channels,e.groups)})),Ut.onExit((function(){return ut.cancel})),Ut.on(ft.type,(function(e,t){return 0===t.payload.channels.length&&0===t.payload.groups.length?Lt.with(void 0):Ut.with({channels:t.payload.channels,groups:t.payload.groups})})),Ut.on(vt.type,(function(e,t){return Dt.with({channels:e.channels,groups:e.groups,cursor:t.payload})})),Ut.on(yt.type,(function(e,t){return kt.with(n(n({},e),{attempts:0,reason:t.payload}))})),Ut.on(mt.type,(function(e){return Rt.with({channels:e.channels,groups:e.groups})}));var Lt=new Ye("UNSUBSCRIBED");Lt.on(ft.type,(function(e,t){return Ut.with({channels:t.payload.channels,groups:t.payload.groups})}));var Bt=function(){function e(e){var t=this;this.engine=new $e,this.channels=[],this.groups=[],this.dispatcher=new Et(this.engine,e),this.engine.subscribe((function(e){"invocationDispatched"===e.type&&t.dispatcher.dispatch(e.invocation)})),this.engine.start(Lt,void 0)}return Object.defineProperty(e.prototype,"_engine",{get:function(){return this.engine},enumerable:!1,configurable:!0}),e.prototype.subscribe=function(e){var t=e.channels,i=e.groups;this.channels=u(u([],l(this.channels),!1),l(null!=t?t:[]),!1),this.groups=u(u([],l(this.groups),!1),l(null!=i?i:[]),!1),this.engine.transition(ft(this.channels,this.groups))},e.prototype.unsubscribe=function(e){var t=e.channels,i=e.groups;this.channels=this.channels.filter((function(e){var i;return null===(i=!(null==t?void 0:t.includes(e)))||void 0===i||i})),this.groups=this.groups.filter((function(e){var t;return null===(t=!(null==i?void 0:i.includes(e)))||void 0===t||t})),this.engine.transition(ft(this.channels.slice(0),this.groups.slice(0)))},e.prototype.unsubscribeAll=function(){this.channels=[],this.groups=[],this.engine.transition(ft(this.channels.slice(0),this.groups.slice(0)))},e.prototype.reconnect=function(){this.engine.transition(gt())},e.prototype.disconnect=function(){this.engine.transition(mt())},e}(),qt=function(){function e(e){var t=this,i=e.networking,r=e.cbor,o=new g({setup:e});this._config=o;var a=new O({config:o}),s=e.cryptography;i.init(o);var d=new J(o,r);this._tokenManager=d;var c=new F({maximumSamplesCount:6e4});this._telemetryManager=c;var p={config:o,networking:i,crypto:a,cryptography:s,tokenManager:d,telemetryManager:c,PubNubFile:e.PubNubFile};this.File=e.PubNubFile,this.encryptFile=function(e,i){return s.encryptFile(e,i,t.File)},this.decryptFile=function(e,i){return s.decryptFile(e,i,t.File)};var h=Q.bind(this,p,We),f=Q.bind(this,p,re),m=Q.bind(this,p,ae),v=Q.bind(this,p,le),y=Q.bind(this,p,Ve),b=new q;if(this._listenerManager=b,this.iAmHere=Q.bind(this,p,ae),this.iAmAway=Q.bind(this,p,re),this.setPresenceState=Q.bind(this,p,le),this.handshake=Q.bind(this,p,Qe),this.receiveMessages=Q.bind(this,p,Ke),!0===o.enableSubscribeBeta){var w=new Bt({handshake:this.handshake,receiveEvents:this.receiveMessages});this.subscribe=w.subscribe.bind(w),this.unsubscribe=w.unsubscribe.bind(w),this.eventEngine=w}else{var S=new P({timeEndpoint:h,leaveEndpoint:f,heartbeatEndpoint:m,setStateEndpoint:v,subscribeEndpoint:y,crypto:p.crypto,config:p.config,listenerManager:b,getFileUrl:function(e){return ve(p,e)}});this.subscribe=S.adaptSubscribeChange.bind(S),this.unsubscribe=S.adaptUnsubscribeChange.bind(S),this.disconnect=S.disconnect.bind(S),this.reconnect=S.reconnect.bind(S),this.unsubscribeAll=S.unsubscribeAll.bind(S),this.getSubscribedChannels=S.getSubscribedChannels.bind(S),this.getSubscribedChannelGroups=S.getSubscribedChannelGroups.bind(S),this.setState=S.adaptStateChange.bind(S),this.presence=S.adaptPresenceChange.bind(S),this.destroy=function(e){S.unsubscribeAll(e),S.disconnect()}}this.addListener=b.addListener.bind(b),this.removeListener=b.removeListener.bind(b),this.removeAllListeners=b.removeAllListeners.bind(b),this.parseToken=d.parseToken.bind(d),this.setToken=d.setToken.bind(d),this.getToken=d.getToken.bind(d),this.channelGroups={listGroups:Q.bind(this,p,$),listChannels:Q.bind(this,p,Z),addChannels:Q.bind(this,p,K),removeChannels:Q.bind(this,p,X),deleteGroup:Q.bind(this,p,Y)},this.push={addChannels:Q.bind(this,p,ee),removeChannels:Q.bind(this,p,te),deleteDevice:Q.bind(this,p,ne),listChannels:Q.bind(this,p,ie)},this.hereNow=Q.bind(this,p,ue),this.whereNow=Q.bind(this,p,oe),this.getState=Q.bind(this,p,se),this.grant=Q.bind(this,p,Me),this.grantToken=Q.bind(this,p,ke),this.audit=Q.bind(this,p,Pe),this.revokeToken=Q.bind(this,p,Ue),this.publish=Q.bind(this,p,Be),this.fire=function(e,i){return e.replicate=!1,e.storeInHistory=!1,t.publish(e,i)},this.signal=Q.bind(this,p,qe),this.history=Q.bind(this,p,je),this.deleteMessages=Q.bind(this,p,He),this.messageCounts=Q.bind(this,p,Ge),this.fetchMessages=Q.bind(this,p,ze),this.addMessageAction=Q.bind(this,p,de),this.removeMessageAction=Q.bind(this,p,ce),this.getMessageActions=Q.bind(this,p,pe),this.listFiles=Q.bind(this,p,he);var T=Q.bind(this,p,fe);this.publishFile=Q.bind(this,p,me),this.sendFile=ge({generateUploadUrl:T,publishFile:this.publishFile,modules:p}),this.getFileUrl=function(e){return ve(p,e)},this.downloadFile=Q.bind(this,p,ye),this.deleteFile=Q.bind(this,p,be),this.objects={getAllUUIDMetadata:Q.bind(this,p,we),getUUIDMetadata:Q.bind(this,p,Se),setUUIDMetadata:Q.bind(this,p,Te),removeUUIDMetadata:Q.bind(this,p,xe),getAllChannelMetadata:Q.bind(this,p,Ae),getChannelMetadata:Q.bind(this,p,Ce),setChannelMetadata:Q.bind(this,p,Oe),removeChannelMetadata:Q.bind(this,p,Ie),getChannelMembers:Q.bind(this,p,Ne),setChannelMembers:function(e){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return Q.call.apply(Q,u([t,p,Ee,n({type:"set"},e)],l(i),!1))},removeChannelMembers:function(e){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return Q.call.apply(Q,u([t,p,Ee,n({type:"delete"},e)],l(i),!1))},getMemberships:Q.bind(this,p,Re),setMemberships:function(e){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return Q.call.apply(Q,u([t,p,_e,n({type:"set"},e)],l(i),!1))},removeMemberships:function(e){for(var i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];return Q.call.apply(Q,u([t,p,_e,n({type:"delete"},e)],l(i),!1))}},this.createUser=function(e){return t.objects.setUUIDMetadata({uuid:e.userId,data:e.data,include:e.include})},this.updateUser=this.createUser,this.removeUser=function(e){return t.objects.removeUUIDMetadata({uuid:null==e?void 0:e.userId})},this.fetchUser=function(e){return t.objects.getUUIDMetadata({uuid:null==e?void 0:e.userId,include:null==e?void 0:e.include})},this.fetchUsers=this.objects.getAllUUIDMetadata,this.createSpace=function(e){return t.objects.setChannelMetadata({channel:e.spaceId,data:e.data,include:e.include})},this.updateSpace=this.createSpace,this.removeSpace=function(e){return t.objects.removeChannelMetadata({channel:e.spaceId})},this.fetchSpace=function(e){return t.objects.getChannelMetadata({channel:e.spaceId,include:e.include})},this.fetchSpaces=this.objects.getAllChannelMetadata,this.addMemberships=function(e){var i,n;return"string"==typeof e.spaceId?t.objects.setChannelMembers({channel:e.spaceId,uuids:null===(i=e.users)||void 0===i?void 0:i.map((function(e){return"string"==typeof e?e:{id:e.userId,custom:e.custom,status:e.status}})),limit:0}):t.objects.setMemberships({uuid:e.userId,channels:null===(n=e.spaces)||void 0===n?void 0:n.map((function(e){return"string"==typeof e?e:{id:e.spaceId,custom:e.custom,status:e.status}})),limit:0})},this.updateMemberships=this.addMemberships,this.removeMemberships=function(e){return"string"==typeof e.spaceId?t.objects.removeChannelMembers({channel:e.spaceId,uuids:e.userIds,limit:0}):t.objects.removeMemberships({uuid:e.userId,channels:e.spaceIds,limit:0})},this.fetchMemberships=function(e){return"string"==typeof e.spaceId?t.objects.getChannelMembers({channel:e.spaceId,filter:e.filter,limit:e.limit,page:e.page,include:{customFields:e.include.customFields,UUIDFields:e.include.userFields,customUUIDFields:e.include.customUserFields,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map((function(e){var t=l(e,2),i=t[0],n=t[1];return[i.replace("user","uuid"),n]}))):null}).then((function(e){var t;return e.data=null===(t=e.data)||void 0===t?void 0:t.map((function(e){return{user:e.uuid,custom:e.custom,updated:e.updated,eTag:e.eTag}})),e})):t.objects.getMemberships({uuid:e.userId,filter:e.filter,limit:e.limit,page:e.page,include:{customFields:e.include.customFields,channelFields:e.include.spaceFields,customChannelFields:e.include.customSpaceFields,totalCount:e.include.totalCount},sort:null!=e.sort?Object.fromEntries(Object.entries(e.sort).map((function(e){var t=l(e,2),i=t[0],n=t[1];return[i.replace("space","channel"),n]}))):null}).then((function(e){var t;return e.data=null===(t=e.data)||void 0===t?void 0:t.map((function(e){return{space:e.channel,custom:e.custom,updated:e.updated,eTag:e.eTag}})),e}))},this.time=h,this.stop=this.destroy,this.encrypt=a.encrypt.bind(a),this.decrypt=a.decrypt.bind(a),this.getAuthKey=p.config.getAuthKey.bind(p.config),this.setAuthKey=p.config.setAuthKey.bind(p.config),this.setCipherKey=p.config.setCipherKey.bind(p.config),this.getUUID=p.config.getUUID.bind(p.config),this.setUUID=p.config.setUUID.bind(p.config),this.getFilterExpression=p.config.getFilterExpression.bind(p.config),this.setFilterExpression=p.config.setFilterExpression.bind(p.config),this.setHeartbeatInterval=p.config.setHeartbeatInterval.bind(p.config),i.hasModule("proxy")&&(this.setProxy=function(e){p.config.setProxy(e),t.reconnect()})}return e.prototype.getVersion=function(){return this._config.getVersion()},e.prototype._addPnsdkSuffix=function(e,t){this._config._addPnsdkSuffix(e,t)},e.prototype.networkDownDetected=function(){this._listenerManager.announceNetworkDown(),this._config.restore?this.disconnect():this.destroy(!0)},e.prototype.networkUpDetected=function(){this._listenerManager.announceNetworkUp(),this.reconnect()},e.notificationPayload=function(e,t){return new B(e,t)},e.generateUUID=function(){return m()},e.OPERATIONS=M,e.CATEGORIES=_,e}(),Jt=function(){function e(e){var t=this;this._modules={},Object.keys(e).forEach((function(i){t._modules[i]=e[i].bind(t)}))}return e.prototype.init=function(e){this._config=e,Array.isArray(this._config.origin)?this._currentSubDomain=Math.floor(Math.random()*this._config.origin.length):this._currentSubDomain=0,this._coreParams={},this.shiftStandardOrigin()},e.prototype.nextOrigin=function(){var e=this._config.secure?"https://":"http://";if("string"==typeof this._config.origin)return"".concat(e).concat(this._config.origin);this._currentSubDomain+=1,this._currentSubDomain>=this._config.origin.length&&(this._currentSubDomain=0);var t=this._config.origin[this._currentSubDomain];return"".concat(e).concat(t)},e.prototype.hasModule=function(e){return e in this._modules},e.prototype.shiftStandardOrigin=function(){return this._standardOrigin=this.nextOrigin(),this._standardOrigin},e.prototype.getStandardOrigin=function(){return this._standardOrigin},e.prototype.POSTFILE=function(e,t,i){return this._modules.postfile(e,t,i)},e.prototype.GETFILE=function(e,t,i){return this._modules.getfile(e,t,i)},e.prototype.POST=function(e,t,i,n){return this._modules.post(e,t,i,n)},e.prototype.PATCH=function(e,t,i,n){return this._modules.patch(e,t,i,n)},e.prototype.GET=function(e,t,i){return this._modules.get(e,t,i)},e.prototype.DELETE=function(e,t,i){return this._modules.del(e,t,i)},e.prototype._detectErrorCategory=function(e){if("ENOTFOUND"===e.code)return _.PNNetworkIssuesCategory;if("ECONNREFUSED"===e.code)return _.PNNetworkIssuesCategory;if("ECONNRESET"===e.code)return _.PNNetworkIssuesCategory;if("EAI_AGAIN"===e.code)return _.PNNetworkIssuesCategory;if(0===e.status||e.hasOwnProperty("status")&&void 0===e.status)return _.PNNetworkIssuesCategory;if(e.timeout)return _.PNTimeoutCategory;if("ETIMEDOUT"===e.code)return _.PNNetworkIssuesCategory;if(e.response){if(e.response.badRequest)return _.PNBadRequestCategory;if(e.response.forbidden)return _.PNAccessDeniedCategory}return _.PNUnknownCategory},e}();function jt(e){var t=function(e){return e&&"object"==typeof e&&e.constructor===Object};if(!t(e))return e;var i={};return Object.keys(e).forEach((function(n){var r=function(e){return"string"==typeof e||e instanceof String}(n),o=n,a=e[n];Array.isArray(n)||r&&n.indexOf(",")>=0?o=(r?n.split(","):n).reduce((function(e,t){return e+String.fromCharCode(t)}),""):(function(e){return"number"==typeof e&&isFinite(e)}(n)||r&&!isNaN(n))&&(o=String.fromCharCode(r?parseInt(n,10):10)),i[o]=t(a)?jt(a):a})),i}var Ht=function(){function e(e,t){this._base64ToBinary=t,this._decode=e}return e.prototype.decodeToken=function(e){var t="";e.length%4==3?t="=":e.length%4==2&&(t="==");var i=e.replace(/-/gi,"+").replace(/_/gi,"/")+t,n=this._decode(this._base64ToBinary(i));if("object"==typeof n)return n},e}(),Gt={exports:{}},zt={exports:{}};!function(e){function t(e){if(e)return function(e){for(var i in t.prototype)e[i]=t.prototype[i];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function i(){this.off(e,i),t.apply(this,arguments)}return i.fn=t,this.on(e,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r=0;r<n.length;r++)if((i=n[r])===t||i.fn===t){n.splice(r,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),i=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(i){n=0;for(var r=(i=i.slice(0)).length;n<r;++n)i[n].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}}(zt);var Wt=$t;$t.default=$t,$t.stable=ii,$t.stableStringify=ii;var Vt="[...]",Qt="[Circular]",Kt=[],Xt=[];function Yt(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function $t(e,t,i,n){var r;void 0===n&&(n=Yt()),ei(e,"",0,[],void 0,0,n);try{r=0===Xt.length?JSON.stringify(e,t,i):JSON.stringify(e,ri(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==Kt.length;){var o=Kt.pop();4===o.length?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return r}function Zt(e,t,i,n){var r=Object.getOwnPropertyDescriptor(n,i);void 0!==r.get?r.configurable?(Object.defineProperty(n,i,{value:e}),Kt.push([n,i,t,r])):Xt.push([t,i,e]):(n[i]=e,Kt.push([n,i,t]))}function ei(e,t,i,n,r,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;s<n.length;s++)if(n[s]===e)return void Zt(Qt,e,t,r);if(void 0!==a.depthLimit&&o>a.depthLimit)return void Zt(Vt,e,t,r);if(void 0!==a.edgesLimit&&i+1>a.edgesLimit)return void Zt(Vt,e,t,r);if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ei(e[s],s,s,n,e,o,a);else{var l=Object.keys(e);for(s=0;s<l.length;s++){var u=l[s];ei(e[u],u,s,n,e,o,a)}}n.pop()}}function ti(e,t){return e<t?-1:e>t?1:0}function ii(e,t,i,n){void 0===n&&(n=Yt());var r,o=ni(e,"",0,[],void 0,0,n)||e;try{r=0===Xt.length?JSON.stringify(o,t,i):JSON.stringify(o,ri(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==Kt.length;){var a=Kt.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return r}function ni(e,t,i,n,r,o,a){var s;if(o+=1,"object"==typeof e&&null!==e){for(s=0;s<n.length;s++)if(n[s]===e)return void Zt(Qt,e,t,r);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==a.depthLimit&&o>a.depthLimit)return void Zt(Vt,e,t,r);if(void 0!==a.edgesLimit&&i+1>a.edgesLimit)return void Zt(Vt,e,t,r);if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ni(e[s],s,s,n,e,o,a);else{var l={},u=Object.keys(e).sort(ti);for(s=0;s<u.length;s++){var d=u[s];ni(e[d],d,s,n,e,o,a),l[d]=e[d]}if(void 0===r)return l;Kt.push([r,t,e]),r[t]=l}n.pop()}}function ri(e){return e=void 0!==e?e:function(e,t){return t},function(t,i){if(Xt.length>0)for(var n=0;n<Xt.length;n++){var r=Xt[n];if(r[1]===t&&r[0]===i){i=r[2],Xt.splice(n,1);break}}return e.call(this,t,i)}}var oi=String.prototype.replace,ai=/%20/g,si="RFC3986",li={default:si,formatters:{RFC1738:function(e){return oi.call(e,ai,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:si},ui=li,di=Object.prototype.hasOwnProperty,ci=Array.isArray,pi=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),hi=function(e,t){for(var i=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(i[n]=e[n]);return i},fi={arrayToObject:hi,assign:function(e,t){return Object.keys(t).reduce((function(e,i){return e[i]=t[i],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],i=[],n=0;n<t.length;++n)for(var r=t[n],o=r.obj[r.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],u=o[l];"object"==typeof u&&null!==u&&-1===i.indexOf(u)&&(t.push({obj:o,prop:l}),i.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),i=t.obj[t.prop];if(ci(i)){for(var n=[],r=0;r<i.length;++r)void 0!==i[r]&&n.push(i[r]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,i){var n=e.replace(/\+/g," ");if("iso-8859-1"===i)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,i,n,r){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===i)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var a="",s=0;s<o.length;++s){var l=o.charCodeAt(s);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||r===ui.RFC1738&&(40===l||41===l)?a+=o.charAt(s):l<128?a+=pi[l]:l<2048?a+=pi[192|l>>6]+pi[128|63&l]:l<55296||l>=57344?a+=pi[224|l>>12]+pi[128|l>>6&63]+pi[128|63&l]:(s+=1,l=65536+((1023&l)<<10|1023&o.charCodeAt(s)),a+=pi[240|l>>18]+pi[128|l>>12&63]+pi[128|l>>6&63]+pi[128|63&l])}return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(ci(e)){for(var i=[],n=0;n<e.length;n+=1)i.push(t(e[n]));return i}return t(e)},merge:function e(t,i,n){if(!i)return t;if("object"!=typeof i){if(ci(t))t.push(i);else{if(!t||"object"!=typeof t)return[t,i];(n&&(n.plainObjects||n.allowPrototypes)||!di.call(Object.prototype,i))&&(t[i]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(i);var r=t;return ci(t)&&!ci(i)&&(r=hi(t,n)),ci(t)&&ci(i)?(i.forEach((function(i,r){if(di.call(t,r)){var o=t[r];o&&"object"==typeof o&&i&&"object"==typeof i?t[r]=e(o,i,n):t.push(i)}else t[r]=i})),t):Object.keys(i).reduce((function(t,r){var o=i[r];return di.call(t,r)?t[r]=e(t[r],o,n):t[r]=o,t}),r)}},mi=fi,gi=li,vi=Object.prototype.hasOwnProperty,yi={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},bi=Array.isArray,wi=String.prototype.split,Si=Array.prototype.push,Ti=function(e,t){Si.apply(e,bi(t)?t:[t])},xi=Date.prototype.toISOString,Ai=gi.default,Ci={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:mi.encode,encodeValuesOnly:!1,format:Ai,formatter:gi.formatters[Ai],indices:!1,serializeDate:function(e){return xi.call(e)},skipNulls:!1,strictNullHandling:!1},Oi=function e(t,i,n,r,o,a,s,l,u,d,c,p,h,f){var m,g=t;if("function"==typeof s?g=s(i,g):g instanceof Date?g=d(g):"comma"===n&&bi(g)&&(g=mi.maybeMap(g,(function(e){return e instanceof Date?d(e):e}))),null===g){if(r)return a&&!h?a(i,Ci.encoder,f,"key",c):i;g=""}if("string"==typeof(m=g)||"number"==typeof m||"boolean"==typeof m||"symbol"==typeof m||"bigint"==typeof m||mi.isBuffer(g)){if(a){var v=h?i:a(i,Ci.encoder,f,"key",c);if("comma"===n&&h){for(var y=wi.call(String(g),","),b="",w=0;w<y.length;++w)b+=(0===w?"":",")+p(a(y[w],Ci.encoder,f,"value",c));return[p(v)+"="+b]}return[p(v)+"="+p(a(g,Ci.encoder,f,"value",c))]}return[p(i)+"="+p(String(g))]}var S,T=[];if(void 0===g)return T;if("comma"===n&&bi(g))S=[{value:g.length>0?g.join(",")||null:void 0}];else if(bi(s))S=s;else{var x=Object.keys(g);S=l?x.sort(l):x}for(var A=0;A<S.length;++A){var C=S[A],O="object"==typeof C&&void 0!==C.value?C.value:g[C];if(!o||null!==O){var I=bi(g)?"function"==typeof n?n(i,C):i:i+(u?"."+C:"["+C+"]");Ti(T,e(O,I,n,r,o,a,s,l,u,d,c,p,h,f))}}return T},Ii=fi,Ni=Object.prototype.hasOwnProperty,Ei=Array.isArray,Ri={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Ii.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},_i=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},Pi=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Mi=function(e,t,i,n){if(e){var r=i.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=i.depth>0&&/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,l=[];if(s){if(!i.plainObjects&&Ni.call(Object.prototype,s)&&!i.allowPrototypes)return;l.push(s)}for(var u=0;i.depth>0&&null!==(a=o.exec(r))&&u<i.depth;){if(u+=1,!i.plainObjects&&Ni.call(Object.prototype,a[1].slice(1,-1))&&!i.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+r.slice(a.index)+"]"),function(e,t,i,n){for(var r=n?t:Pi(t,i),o=e.length-1;o>=0;--o){var a,s=e[o];if("[]"===s&&i.parseArrays)a=[].concat(r);else{a=i.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(l,10);i.parseArrays||""!==l?!isNaN(u)&&s!==l&&String(u)===l&&u>=0&&i.parseArrays&&u<=i.arrayLimit?(a=[])[u]=r:"__proto__"!==l&&(a[l]=r):a={0:r}}r=a}return r}(l,t,i,n)}},Fi={formats:li,parse:function(e,t){var i=function(e){if(!e)return Ri;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Ri.charset:e.charset;return{allowDots:void 0===e.allowDots?Ri.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ri.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ri.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ri.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ri.comma,decoder:"function"==typeof e.decoder?e.decoder:Ri.decoder,delimiter:"string"==typeof e.delimiter||Ii.isRegExp(e.delimiter)?e.delimiter:Ri.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:Ri.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ri.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ri.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ri.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ri.strictNullHandling}}(t);if(""===e||null==e)return i.plainObjects?Object.create(null):{};for(var n="string"==typeof e?function(e,t){var i,n={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,a=r.split(t.delimiter,o),s=-1,l=t.charset;if(t.charsetSentinel)for(i=0;i<a.length;++i)0===a[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===a[i]?l="utf-8":"utf8=%26%2310003%3B"===a[i]&&(l="iso-8859-1"),s=i,i=a.length);for(i=0;i<a.length;++i)if(i!==s){var u,d,c=a[i],p=c.indexOf("]="),h=-1===p?c.indexOf("="):p+1;-1===h?(u=t.decoder(c,Ri.decoder,l,"key"),d=t.strictNullHandling?null:""):(u=t.decoder(c.slice(0,h),Ri.decoder,l,"key"),d=Ii.maybeMap(Pi(c.slice(h+1),t),(function(e){return t.decoder(e,Ri.decoder,l,"value")}))),d&&t.interpretNumericEntities&&"iso-8859-1"===l&&(d=_i(d)),c.indexOf("[]=")>-1&&(d=Ei(d)?[d]:d),Ni.call(n,u)?n[u]=Ii.combine(n[u],d):n[u]=d}return n}(e,i):e,r=i.plainObjects?Object.create(null):{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],l=Mi(s,n[s],i,"string"==typeof e);r=Ii.merge(r,l,i)}return Ii.compact(r)},stringify:function(e,t){var i,n=e,r=function(e){if(!e)return Ci;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Ci.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=gi.default;if(void 0!==e.format){if(!vi.call(gi.formatters,e.format))throw new TypeError("Unknown format option provided.");i=e.format}var n=gi.formatters[i],r=Ci.filter;return("function"==typeof e.filter||bi(e.filter))&&(r=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Ci.addQueryPrefix,allowDots:void 0===e.allowDots?Ci.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ci.charsetSentinel,delimiter:void 0===e.delimiter?Ci.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Ci.encode,encoder:"function"==typeof e.encoder?e.encoder:Ci.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Ci.encodeValuesOnly,filter:r,format:i,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Ci.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Ci.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ci.strictNullHandling}}(t);"function"==typeof r.filter?n=(0,r.filter)("",n):bi(r.filter)&&(i=r.filter);var o,a=[];if("object"!=typeof n||null===n)return"";o=t&&t.arrayFormat in yi?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=yi[o];i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var l=0;l<i.length;++l){var u=i[l];r.skipNulls&&null===n[u]||Ti(a,Oi(n[u],u,s,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset))}var d=a.join(r.delimiter),c=!0===r.addQueryPrefix?"?":"";return r.charsetSentinel&&("iso-8859-1"===r.charset?c+="utf8=%26%2310003%3B&":c+="utf8=%E2%9C%93&"),d.length>0?c+d:""}};function Di(e){return Di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Di(e)}var ki=function(e){return null!==e&&"object"===Di(e)};function Ui(e){return Ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ui(e)}var Li=ki,Bi=qi;function qi(e){if(e)return function(e){for(var t in qi.prototype)Object.prototype.hasOwnProperty.call(qi.prototype,t)&&(e[t]=qi.prototype[t]);return e}(e)}qi.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},qi.prototype.parse=function(e){return this._parser=e,this},qi.prototype.responseType=function(e){return this._responseType=e,this},qi.prototype.serialize=function(e){return this._serializer=e,this},qi.prototype.timeout=function(e){if(!e||"object"!==Ui(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},qi.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var Ji=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),ji=new Set([408,413,429,500,502,503,504,521,522,524]);qi.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var i=this._retryCallback(e,t);if(!0===i)return!0;if(!1===i)return!1}catch(e){console.error(e)}if(t&&t.status&&ji.has(t.status))return!0;if(e){if(e.code&&Ji.has(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},qi.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},qi.prototype.then=function(e,t){var i=this;if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){n.on("abort",(function(){if(!(i._maxRetries&&i._maxRetries>i._retries))if(i.timedout&&i.timedoutError)t(i.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=i.status,e.method=i.method,e.url=i.url,t(e)}})),n.end((function(i,n){i?t(i):e(n)}))}))}return this._fullfilledPromise.then(e,t)},qi.prototype.catch=function(e){return this.then(void 0,e)},qi.prototype.use=function(e){return e(this),this},qi.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},qi.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},qi.prototype.get=function(e){return this._header[e.toLowerCase()]},qi.prototype.getHeader=qi.prototype.get,qi.prototype.set=function(e,t){if(Li(e)){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.set(i,e[i]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},qi.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},qi.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(Li(e)){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&this.field(i,e[i]);return this}if(Array.isArray(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.field(e,t[n]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},qi.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},qi.prototype._auth=function(e,t,i,n){switch(i.type){case"basic":this.set("Authorization","Basic ".concat(n("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},qi.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},qi.prototype.redirects=function(e){return this._maxRedirects=e,this},qi.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},qi.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},qi.prototype.send=function(e){var t=Li(e),i=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&Li(this._data))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this._data[n]=e[n]);else"string"==typeof e?(i||this.type("form"),(i=this._header["content-type"])&&(i=i.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===i?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||i||this.type("json"),this},qi.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},qi.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var i=this.url.slice(t+1).split("&");"function"==typeof this._sort?i.sort(this._sort):i.sort(),this.url=this.url.slice(0,t)+"?"+i.join("&")}}},qi.prototype._appendQueryString=function(){console.warn("Unsupported")},qi.prototype._timeoutError=function(e,t,i){if(!this._aborted){var n=new Error("".concat(e+t,"ms exceeded"));n.timeout=t,n.code="ECONNABORTED",n.errno=i,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},qi.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))};var Hi={};function Gi(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return zi(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?zi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}Hi.type=function(e){return e.split(/ *; */).shift()},Hi.params=function(e){var t,i={},n=Gi(e.split(/ *; */));try{for(n.s();!(t=n.n()).done;){var r=t.value.split(/ *= */),o=r.shift(),a=r.shift();o&&a&&(i[o]=a)}}catch(e){n.e(e)}finally{n.f()}return i},Hi.parseLinks=function(e){var t,i={},n=Gi(e.split(/ *, */));try{for(n.s();!(t=n.n()).done;){var r=t.value.split(/ *; */),o=r[0].slice(1,-1);i[r[1].split(/ *= */)[1].slice(1,-1)]=o}}catch(e){n.e(e)}finally{n.f()}return i},Hi.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e};var Wi=Hi,Vi=Qi;function Qi(e){if(e)return function(e){for(var t in Qi.prototype)Object.prototype.hasOwnProperty.call(Qi.prototype,t)&&(e[t]=Qi.prototype[t]);return e}(e)}function Ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Xi(){this._defaults=[]}Qi.prototype.get=function(e){return this.header[e.toLowerCase()]},Qi.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=Wi.type(t);var i=Wi.params(t);for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(this[n]=i[n]);this.links={};try{e.link&&(this.links=Wi.parseLinks(e.link))}catch(e){}},Qi.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e},["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(e){Xi.prototype[e]=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return this._defaults.push({fn:e,args:i}),this}})),Xi.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,function(e){return function(e){if(Array.isArray(e))return Ki(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ki(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ki(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.args))}))};var Yi=Xi;!function(e,t){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var n;"undefined"!=typeof window?n=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self;var r=zt.exports,o=Wt,a=Fi,s=Bi,l=ki,u=Vi,d=Yi;function c(){}e.exports=function(e,i){return"function"==typeof i?new t.Request("GET",e).end(i):1===arguments.length?new t.Request("GET",e):new t.Request(e,i)};var p=t=e.exports;t.Request=b,p.getXHR=function(){if(n.XMLHttpRequest&&(!n.location||"file:"!==n.location.protocol||!n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function f(e){if(!l(e))return e;var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&m(t,i,e[i]);return t.join("&")}function m(e,t,i){if(void 0!==i)if(null!==i)if(Array.isArray(i))i.forEach((function(i){m(e,t,i)}));else if(l(i))for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&m(e,"".concat(t,"[").concat(n,"]"),i[n]);else e.push(encodeURI(t)+"="+encodeURIComponent(i));else e.push(encodeURI(t))}function g(e){for(var t,i,n={},r=e.split("&"),o=0,a=r.length;o<a;++o)-1===(i=(t=r[o]).indexOf("="))?n[decodeURIComponent(t)]="":n[decodeURIComponent(t.slice(0,i))]=decodeURIComponent(t.slice(i+1));return n}function v(e){return/[/+]json($|[^-\w])/i.test(e)}function y(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,i,n,r,o=e.split(/\r?\n/),a={},s=0,l=o.length;s<l;++s)-1!==(t=(i=o[s]).indexOf(":"))&&(n=i.slice(0,t).toLowerCase(),r=h(i.slice(t+1)),a[n]=r);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function b(e,t){var i=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,n=null;try{n=new y(i)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,i.xhr?(t.rawResponse=void 0===i.xhr.responseType?i.xhr.responseText:i.xhr.response,t.status=i.xhr.status?i.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),i.callback(t)}i.emit("response",n);try{i._isResponseOK(n)||(e=new Error(n.statusText||n.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=n,e.status=n.status,i.callback(e,n)):i.callback(null,n)}))}function w(e,t,i){var n=p("DELETE",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n}p.serializeObject=f,p.parseString=g,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":a.stringify,"application/json":o},p.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},u(y.prototype),y.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&v(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},y.prototype.toError=function(){var e=this.req,t=e.method,i=e.url,n="cannot ".concat(t," ").concat(i," (").concat(this.status,")"),r=new Error(n);return r.status=this.status,r.method=t,r.url=i,r},p.Response=y,r(b.prototype),s(b.prototype),b.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},b.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},b.prototype.auth=function(e,t,n){1===arguments.length&&(t=""),"object"===i(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"});var r=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,n,r)},b.prototype.query=function(e){return"string"!=typeof e&&(e=f(e)),e&&this._query.push(e),this},b.prototype.attach=function(e,t,i){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,i||t.name)}return this},b.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},b.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var i=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),i(e,t)},b.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},b.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},b.prototype.ca=b.prototype.agent,b.prototype.buffer=b.prototype.ca,b.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},b.prototype.pipe=b.prototype.write,b.prototype._isHost=function(e){return e&&"object"===i(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},b.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||c,this._finalizeQueryString(),this._end()},b.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},b.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,i=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var i=t.readyState;if(i>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===i){var n;try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,i){i.total>0&&(i.percent=i.loaded/i.total*100,100===i.percent&&clearTimeout(e._uploadTimeoutTimer)),i.direction=t,e.emit("progress",i)};if(this.hasListeners("progress"))try{t.addEventListener("progress",n.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",n.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof i&&!this._isHost(i)){var r=this._header["content-type"],o=this._serializer||p.serialize[r?r.split(";")[0]:""];!o&&v(r)&&(o=p.serialize["application/json"]),o&&(i=o(i))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===i?null:i)},p.agent=function(){return new d},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){d.prototype[e.toLowerCase()]=function(t,i){var n=new p.Request(e,t);return this._setDefaults(n),i&&n.end(i),n}})),d.prototype.del=d.prototype.delete,p.get=function(e,t,i){var n=p("GET",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},p.head=function(e,t,i){var n=p("HEAD",e);return"function"==typeof t&&(i=t,t=null),t&&n.query(t),i&&n.end(i),n},p.options=function(e,t,i){var n=p("OPTIONS",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},p.del=w,p.delete=w,p.patch=function(e,t,i){var n=p("PATCH",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},p.post=function(e,t,i){var n=p("POST",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n},p.put=function(e,t,i){var n=p("PUT",e);return"function"==typeof t&&(i=t,t=null),t&&n.send(t),i&&n.end(i),n}}(Gt,Gt.exports);var $i=Gt.exports;function Zi(e){var t=(new Date).getTime(),i=(new Date).toISOString(),n=console&&console.log?console:window&&window.console&&window.console.log?window.console:console;n.log("<<<<<"),n.log("[".concat(i,"]"),"\n",e.url,"\n",e.qs),n.log("-----"),e.on("response",(function(i){var r=(new Date).getTime()-t,o=(new Date).toISOString();n.log(">>>>>>"),n.log("[".concat(o," / ").concat(r,"]"),"\n",e.url,"\n",e.qs,"\n",i.text),n.log("-----")}))}function en(e,t,i){var n=this;this._config.logVerbosity&&(e=e.use(Zi)),this._config.proxy&&this._modules.proxy&&(e=this._modules.proxy.call(this,e)),this._config.keepAlive&&this._modules.keepAlive&&(e=this._modules.keepAlive(e));var r=e;if(t.abortSignal)var o=t.abortSignal.subscribe((function(){r.abort(),o()}));return!0===t.forceBuffered?r="undefined"==typeof Blob?r.buffer().responseType("arraybuffer"):r.responseType("arraybuffer"):!1===t.forceBuffered&&(r=r.buffer(!1)),(r=r.timeout(t.timeout)).on("abort",(function(){return i({category:_.PNUnknownCategory,error:!0,operation:t.operation,errorData:new Error("Aborted")},null)})),r.end((function(e,r){var o,a={};if(a.error=null!==e,a.operation=t.operation,r&&r.status&&(a.statusCode=r.status),e){if(e.response&&e.response.text&&!n._config.logVerbosity)try{a.errorData=JSON.parse(e.response.text)}catch(t){a.errorData=e}else a.errorData=e;return a.category=n._detectErrorCategory(e),i(a,null)}if(t.ignoreBody)o={headers:r.headers,redirects:r.redirects,response:r};else try{o=JSON.parse(r.text)}catch(e){return a.errorData=r,a.error=!0,i(a,null)}return o.error&&1===o.error&&o.status&&o.message&&o.service?(a.errorData=o,a.statusCode=o.status,a.error=!0,a.category=n._detectErrorCategory(a),i(a,null)):(o.error&&o.error.message&&(a.errorData=o.error),i(a,o))})),r}function tn(e,t,i){return o(this,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return n=$i.post(e),t.forEach((function(e){var t=e.key,i=e.value;n=n.field(t,i)})),n.attach("file",i,{contentType:"application/octet-stream"}),[4,n];case 1:return[2,r.sent()]}}))}))}function nn(e,t,i){var n=$i.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function rn(e,t,i){var n=$i.get(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function on(e,t,i,n){var r=$i.post(this.getStandardOrigin()+i.url).query(e).set(i.headers).send(t);return en.call(this,r,i,n)}function an(e,t,i,n){var r=$i.patch(this.getStandardOrigin()+i.url).query(e).set(i.headers).send(t);return en.call(this,r,i,n)}function sn(e,t,i){var n=$i.delete(this.getStandardOrigin()+t.url).set(t.headers).query(e);return en.call(this,n,t,i)}function ln(e,t){var i=new Uint8Array(e.byteLength+t.byteLength);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),e.byteLength),i.buffer}var un,dn=function(){function e(){}return Object.defineProperty(e.prototype,"algo",{get:function(){return"aes-256-cbc"},enumerable:!1,configurable:!0}),e.prototype.encrypt=function(e,t){return o(this,void 0,void 0,(function(){var i;return a(this,(function(n){switch(n.label){case 0:return[4,this.getKey(e)];case 1:if(i=n.sent(),t instanceof ArrayBuffer)return[2,this.encryptArrayBuffer(i,t)];if("string"==typeof t)return[2,this.encryptString(i,t)];throw new Error("Cannot encrypt this file. In browsers file encryption supports only string or ArrayBuffer")}}))}))},e.prototype.decrypt=function(e,t){return o(this,void 0,void 0,(function(){var i;return a(this,(function(n){switch(n.label){case 0:return[4,this.getKey(e)];case 1:if(i=n.sent(),t instanceof ArrayBuffer)return[2,this.decryptArrayBuffer(i,t)];if("string"==typeof t)return[2,this.decryptString(i,t)];throw new Error("Cannot decrypt this file. In browsers file decryption supports only string or ArrayBuffer")}}))}))},e.prototype.encryptFile=function(e,t,i){return o(this,void 0,void 0,(function(){var n,r,o;return a(this,(function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return n=a.sent(),[4,t.toArrayBuffer()];case 2:return r=a.sent(),[4,this.encryptArrayBuffer(n,r)];case 3:return o=a.sent(),[2,i.create({name:t.name,mimeType:"application/octet-stream",data:o})]}}))}))},e.prototype.decryptFile=function(e,t,i){return o(this,void 0,void 0,(function(){var n,r,o;return a(this,(function(a){switch(a.label){case 0:return[4,this.getKey(e)];case 1:return n=a.sent(),[4,t.toArrayBuffer()];case 2:return r=a.sent(),[4,this.decryptArrayBuffer(n,r)];case 3:return o=a.sent(),[2,i.create({name:t.name,data:o})]}}))}))},e.prototype.getKey=function(e){return o(this,void 0,void 0,(function(){var t,i,n;return a(this,(function(r){switch(r.label){case 0:return t=Buffer.from(e),[4,crypto.subtle.digest("SHA-256",t.buffer)];case 1:return i=r.sent(),n=Buffer.from(Buffer.from(i).toString("hex").slice(0,32),"utf8").buffer,[2,crypto.subtle.importKey("raw",n,"AES-CBC",!0,["encrypt","decrypt"])]}}))}))},e.prototype.encryptArrayBuffer=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r;return a(this,(function(o){switch(o.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),n=ln,r=[i.buffer],[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},e,t)];case 1:return[2,n.apply(void 0,r.concat([o.sent()]))]}}))}))},e.prototype.decryptArrayBuffer=function(e,t){return o(this,void 0,void 0,(function(){var i;return a(this,(function(n){return i=t.slice(0,16),[2,crypto.subtle.decrypt({name:"AES-CBC",iv:i},e,t.slice(16))]}))}))},e.prototype.encryptString=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o;return a(this,(function(a){switch(a.label){case 0:return i=crypto.getRandomValues(new Uint8Array(16)),n=Buffer.from(t).buffer,[4,crypto.subtle.encrypt({name:"AES-CBC",iv:i},e,n)];case 1:return r=a.sent(),o=ln(i.buffer,r),[2,Buffer.from(o).toString("utf8")]}}))}))},e.prototype.decryptString=function(e,t){return o(this,void 0,void 0,(function(){var i,n,r,o;return a(this,(function(a){switch(a.label){case 0:return i=Buffer.from(t),n=i.slice(0,16),r=i.slice(16),[4,crypto.subtle.decrypt({name:"AES-CBC",iv:n},e,r)];case 1:return o=a.sent(),[2,Buffer.from(o).toString("utf8")]}}))}))},e.IV_LENGTH=16,e}(),cn=(un=function(){function e(e){if(e instanceof File)this.data=e,this.name=this.data.name,this.mimeType=this.data.type;else if(e.data){var t=e.data;this.data=new File([t],e.name,{type:e.mimeType}),this.name=e.name,e.mimeType&&(this.mimeType=e.mimeType)}if(void 0===this.data)throw new Error("Couldn't construct a file out of supplied options.");if(void 0===this.name)throw new Error("Couldn't guess filename out of the options. Please provide one.")}return e.create=function(e){return new this(e)},e.prototype.toBuffer=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){throw new Error("This feature is only supported in Node.js environments.")}))}))},e.prototype.toStream=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){throw new Error("This feature is only supported in Node.js environments.")}))}))},e.prototype.toFileUri=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){throw new Error("This feature is only supported in react native environments.")}))}))},e.prototype.toBlob=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this.data]}))}))},e.prototype.toArrayBuffer=function(){return o(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){return[2,new Promise((function(t,i){var n=new FileReader;n.addEventListener("load",(function(){if(n.result instanceof ArrayBuffer)return t(n.result)})),n.addEventListener("error",(function(){i(n.error)})),n.readAsArrayBuffer(e.data)}))]}))}))},e.prototype.toString=function(){return o(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){return[2,new Promise((function(t,i){var n=new FileReader;n.addEventListener("load",(function(){if("string"==typeof n.result)return t(n.result)})),n.addEventListener("error",(function(){i(n.error)})),n.readAsBinaryString(e.data)}))]}))}))},e.prototype.toFile=function(){return o(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this.data]}))}))},e}(),un.supportsFile="undefined"!=typeof File,un.supportsBlob="undefined"!=typeof Blob,un.supportsArrayBuffer="undefined"!=typeof ArrayBuffer,un.supportsBuffer=!1,un.supportsStream=!1,un.supportsString=!0,un.supportsEncryptFile=!0,un.supportsFileUri=!1,un);function pn(e){if(!navigator||!navigator.sendBeacon)return!1;navigator.sendBeacon(e)}var hn=function(e){function i(t){var i=this,n=t.listenToBrowserNetworkEvents,r=void 0===n||n;return t.sdkFamily="Web",t.networking=new Jt({del:sn,get:rn,post:on,patch:an,sendBeacon:pn,getfile:nn,postfile:tn}),t.cbor=new Ht((function(e){return jt(p.decode(e))}),v),t.PubNubFile=cn,t.cryptography=new dn,i=e.call(this,t)||this,r&&(window.addEventListener("offline",(function(){i.networkDownDetected()})),window.addEventListener("online",(function(){i.networkUpDetected()}))),i}return t(i,e),i}(qt);return hn}()},2408:(e,t,i)=>{var n=i(7418);if("function"==typeof Symbol&&Symbol.for){var r=Symbol.for;r("react.element"),r("react.portal"),r("react.fragment"),r("react.strict_mode"),r("react.profiler"),r("react.provider"),r("react.context"),r("react.forward_ref"),r("react.suspense"),r("react.memo"),r("react.lazy")}"function"==typeof Symbol&&Symbol.iterator;function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s={};function l(e,t,i){this.props=e,this.context=t,this.refs=s,this.updater=i||a}function u(){}function d(e,t,i){this.props=e,this.context=t,this.refs=s,this.updater=i||a}l.prototype.isReactComponent={},l.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(o(85));this.updater.enqueueSetState(this,e,t,"setState")},l.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},u.prototype=l.prototype;var c=d.prototype=new u;c.constructor=d,n(c,l.prototype),c.isPureReactComponent=!0;Object.prototype.hasOwnProperty},7294:(e,t,i)=>{i(2408)},3379:e=>{var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],u=n.base?l[0]+n.base:l[0],d=o[u]||0,c="".concat(u," ").concat(d);o[u]=d+1;var p=i(c),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=r(h,n);n.byIndex=s,t.splice(s,0,{identifier:c,updater:f,references:1})}a.push(c)}return a}function r(e,t){var i=t.domAPI(t);return i.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;i.update(e=t)}else i.remove()}}e.exports=function(e,r){var o=n(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=i(o[a]);t[s].references--}for(var l=n(e,r),u=0;u<o.length;u++){var d=i(o[u]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}o=l}}},569:e=>{var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},9216:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,i)=>{e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,r&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var o=i.sourceMap;o&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};(()=>{i.d(n,{l:()=>Lo,Z:()=>Uo});var e=i(9669),t=i.n(e);const r=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),a=new Map;class s{constructor(e,t){if(this._$cssResult$=!0,t!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){let e=a.get(this.cssText);return r&&void 0===e&&(a.set(this.cssText,e=new CSSStyleSheet),e.replaceSync(this.cssText)),e}toString(){return this.cssText}}const l=(e,...t)=>{const i=1===e.length?e[0]:t.reduce(((t,i,n)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+e[n+1]),e[0]);return new s(i,o)},u=r?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return(e=>new s("string"==typeof e?e:e+"",o))(t)})(e):e;var d;const c=window.trustedTypes,p=c?c.emptyScript:"",h=window.reactiveElementPolyfillSupport,f={toAttribute(e,t){switch(t){case Boolean:e=e?p:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let i=e;switch(t){case Boolean:i=null!==e;break;case Number:i=null===e?null:Number(e);break;case Object:case Array:try{i=JSON.parse(e)}catch(e){i=null}}return i}},m=(e,t)=>t!==e&&(t==t||e==e),g={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:m};class v extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(e){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach(((t,i)=>{const n=this._$Eh(i,t);void 0!==n&&(this._$Eu.set(n,i),e.push(n))})),e}static createProperty(e,t=g){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){const i="symbol"==typeof e?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,t,i){return{get(){return this[t]},set(n){const r=this[e];this[t]=n,this.requestUpdate(e,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||g}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),this.elementProperties=new Map(e.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const e=this.properties,t=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of t)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const e of i)t.unshift(u(e))}else void 0!==e&&t.push(u(e));return t}static _$Eh(e,t){const i=t.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof e?e.toLowerCase():void 0}o(){var e;this._$Ep=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach((e=>e(this)))}addController(e){var t,i;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).push(e),void 0!==this.renderRoot&&this.isConnected&&(null===(i=e.hostConnected)||void 0===i||i.call(e))}removeController(e){var t;null===(t=this._$Eg)||void 0===t||t.splice(this._$Eg.indexOf(e)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((e,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])}))}createRenderRoot(){var e;const t=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions);return((e,t)=>{r?e.adoptedStyleSheets=t.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):t.forEach((t=>{const i=document.createElement("style"),n=window.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=t.cssText,e.appendChild(i)}))})(t,this.constructor.elementStyles),t}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Eg)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostConnected)||void 0===t?void 0:t.call(e)}))}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$Eg)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostDisconnected)||void 0===t?void 0:t.call(e)}))}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ES(e,t,i=g){var n,r;const o=this.constructor._$Eh(e,i);if(void 0!==o&&!0===i.reflect){const a=(null!==(r=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==r?r:f.toAttribute)(t,i.type);this._$Ei=e,null==a?this.removeAttribute(o):this.setAttribute(o,a),this._$Ei=null}}_$AK(e,t){var i,n,r;const o=this.constructor,a=o._$Eu.get(e);if(void 0!==a&&this._$Ei!==a){const e=o.getPropertyOptions(a),s=e.converter,l=null!==(r=null!==(n=null===(i=s)||void 0===i?void 0:i.fromAttribute)&&void 0!==n?n:"function"==typeof s?s:null)&&void 0!==r?r:f.fromAttribute;this._$Ei=a,this[a]=l(t,e.type),this._$Ei=null}}requestUpdate(e,t,i){let n=!0;void 0!==e&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||m)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),!0===i.reflect&&this._$Ei!==e&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((e,t)=>this[t]=e)),this._$Et=void 0);let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),null===(e=this._$Eg)||void 0===e||e.forEach((e=>{var t;return null===(t=e.hostUpdate)||void 0===t?void 0:t.call(e)})),this.update(i)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;null===(t=this._$Eg)||void 0===t||t.forEach((e=>{var t;return null===(t=e.hostUpdated)||void 0===t?void 0:t.call(e)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){void 0!==this._$EC&&(this._$EC.forEach(((e,t)=>this._$ES(t,this[t],e))),this._$EC=void 0),this._$EU()}updated(e){}firstUpdated(e){}}var y;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:v}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.3.1");const b=globalThis.trustedTypes,w=b?b.createPolicy("lit-html",{createHTML:e=>e}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,T="?"+S,x=`<${T}>`,A=document,C=(e="")=>A.createComment(e),O=e=>null===e||"object"!=typeof e&&"function"!=typeof e,I=Array.isArray,N=e=>{var t;return I(e)||"function"==typeof(null===(t=e)||void 0===t?void 0:t[Symbol.iterator])},E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,_=/>/g,P=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,M=/'/g,F=/"/g,D=/^(?:script|style|textarea|title)$/i,k=e=>(t,...i)=>({_$litType$:e,strings:t,values:i}),U=k(1),L=k(2),B=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),J=new WeakMap,j=A.createTreeWalker(A,129,null,!1),H=(e,t)=>{const i=e.length-1,n=[];let r,o=2===t?"<svg>":"",a=E;for(let t=0;t<i;t++){const i=e[t];let s,l,u=-1,d=0;for(;d<i.length&&(a.lastIndex=d,l=a.exec(i),null!==l);)d=a.lastIndex,a===E?"!--"===l[1]?a=R:void 0!==l[1]?a=_:void 0!==l[2]?(D.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=P):void 0!==l[3]&&(a=P):a===P?">"===l[0]?(a=null!=r?r:E,u=-1):void 0===l[1]?u=-2:(u=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?P:'"'===l[3]?F:M):a===F||a===M?a=P:a===R||a===_?a=E:(a=P,r=void 0);const c=a===P&&e[t+1].startsWith("/>")?" ":"";o+=a===E?i+x:u>=0?(n.push(s),i.slice(0,u)+"$lit$"+i.slice(u)+S+c):i+S+(-2===u?(n.push(void 0),t):c)}const s=o+(e[i]||"<?>")+(2===t?"</svg>":"");if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(s):s,n]};class G{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let r=0,o=0;const a=e.length-1,s=this.parts,[l,u]=H(e,t);if(this.el=G.createElement(l,i),j.currentNode=this.el.content,2===t){const e=this.el.content,t=e.firstChild;t.remove(),e.append(...t.childNodes)}for(;null!==(n=j.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes()){const e=[];for(const t of n.getAttributeNames())if(t.endsWith("$lit$")||t.startsWith(S)){const i=u[o++];if(e.push(t),void 0!==i){const e=n.getAttribute(i.toLowerCase()+"$lit$").split(S),t=/([.?@])?(.*)/.exec(i);s.push({type:1,index:r,name:t[2],strings:e,ctor:"."===t[1]?K:"?"===t[1]?Y:"@"===t[1]?$:Q})}else s.push({type:6,index:r})}for(const t of e)n.removeAttribute(t)}if(D.test(n.tagName)){const e=n.textContent.split(S),t=e.length-1;if(t>0){n.textContent=b?b.emptyScript:"";for(let i=0;i<t;i++)n.append(e[i],C()),j.nextNode(),s.push({type:2,index:++r});n.append(e[t],C())}}}else if(8===n.nodeType)if(n.data===T)s.push({type:2,index:r});else{let e=-1;for(;-1!==(e=n.data.indexOf(S,e+1));)s.push({type:7,index:r}),e+=S.length-1}r++}}static createElement(e,t){const i=A.createElement("template");return i.innerHTML=e,i}}function z(e,t,i=e,n){var r,o,a,s;if(t===B)return t;let l=void 0!==n?null===(r=i._$Cl)||void 0===r?void 0:r[n]:i._$Cu;const u=O(t)?void 0:t._$litDirective$;return(null==l?void 0:l.constructor)!==u&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.call(l,!1),void 0===u?l=void 0:(l=new u(e),l._$AT(e,i,n)),void 0!==n?(null!==(a=(s=i)._$Cl)&&void 0!==a?a:s._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(t=z(e,l._$AS(e,t.values),l,n)),t}class W{constructor(e,t){this.v=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(e){var t;const{el:{content:i},parts:n}=this._$AD,r=(null!==(t=null==e?void 0:e.creationScope)&&void 0!==t?t:A).importNode(i,!0);j.currentNode=r;let o=j.nextNode(),a=0,s=0,l=n[0];for(;void 0!==l;){if(a===l.index){let t;2===l.type?t=new V(o,o.nextSibling,this,e):1===l.type?t=new l.ctor(o,l.name,l.strings,this,e):6===l.type&&(t=new Z(o,this,e)),this.v.push(t),l=n[++s]}a!==(null==l?void 0:l.index)&&(o=j.nextNode(),a++)}return r}m(e){let t=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class V{constructor(e,t,i,n){var r;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cg=null===(r=null==n?void 0:n.isConnected)||void 0===r||r}get _$AU(){var e,t;return null!==(t=null===(e=this._$AM)||void 0===e?void 0:e._$AU)&&void 0!==t?t:this._$Cg}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=z(this,e,t),O(e)?e===q||null==e||""===e?(this._$AH!==q&&this._$AR(),this._$AH=q):e!==this._$AH&&e!==B&&this.$(e):void 0!==e._$litType$?this.T(e):void 0!==e.nodeType?this.k(e):N(e)?this.S(e):this.$(e)}M(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}k(e){this._$AH!==e&&(this._$AR(),this._$AH=this.M(e))}$(e){this._$AH!==q&&O(this._$AH)?this._$AA.nextSibling.data=e:this.k(A.createTextNode(e)),this._$AH=e}T(e){var t;const{values:i,_$litType$:n}=e,r="number"==typeof n?this._$AC(e):(void 0===n.el&&(n.el=G.createElement(n.h,this.options)),n);if((null===(t=this._$AH)||void 0===t?void 0:t._$AD)===r)this._$AH.m(i);else{const e=new W(r,this),t=e.p(this.options);e.m(i),this.k(t),this._$AH=e}}_$AC(e){let t=J.get(e.strings);return void 0===t&&J.set(e.strings,t=new G(e)),t}S(e){I(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const r of e)n===t.length?t.push(i=new V(this.M(C()),this.M(C()),this,this.options)):i=t[n],i._$AI(r),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,t);e&&e!==this._$AB;){const t=e.nextSibling;e.remove(),e=t}}setConnected(e){var t;void 0===this._$AM&&(this._$Cg=e,null===(t=this._$AP)||void 0===t||t.call(this,e))}}class Q{constructor(e,t,i,n,r){this.type=1,this._$AH=q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const r=this.strings;let o=!1;if(void 0===r)e=z(this,e,t,0),o=!O(e)||e!==this._$AH&&e!==B,o&&(this._$AH=e);else{const n=e;let a,s;for(e=r[0],a=0;a<r.length-1;a++)s=z(this,n[i+a],t,a),s===B&&(s=this._$AH[a]),o||(o=!O(s)||s!==this._$AH[a]),s===q?e=q:e!==q&&(e+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}o&&!n&&this.C(e)}C(e){e===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=e?e:"")}}class K extends Q{constructor(){super(...arguments),this.type=3}C(e){this.element[this.name]=e===q?void 0:e}}const X=b?b.emptyScript:"";class Y extends Q{constructor(){super(...arguments),this.type=4}C(e){e&&e!==q?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class $ extends Q{constructor(e,t,i,n,r){super(e,t,i,n,r),this.type=5}_$AI(e,t=this){var i;if((e=null!==(i=z(this,e,t,0))&&void 0!==i?i:q)===B)return;const n=this._$AH,r=e===q&&n!==q||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==q&&(n===q||r);r&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(t=this.options)||void 0===t?void 0:t.host)&&void 0!==i?i:this.element,e):this._$AH.handleEvent(e)}}class Z{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){z(this,e)}}const ee={L:"$lit$",P:S,V:T,I:1,N:H,R:W,j:N,D:z,H:V,F:Q,O:Y,W:$,B:K,Z},te=window.litHtmlPolyfillSupport;var ie,ne;null==te||te(G,V),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.2.2");class re extends v{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return null!==(e=(t=this.renderOptions).renderBefore)&&void 0!==e||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Dt=((e,t,i)=>{var n,r;const o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:t;let a=o._$litPart$;if(void 0===a){const e=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=a=new V(t.insertBefore(C(),e),e,void 0,null!=i?i:{})}return a._$AI(e),a})(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),null===(e=this._$Dt)||void 0===e||e.setConnected(!1)}render(){return B}}re.finalized=!0,re._$litElement$=!0,null===(ie=globalThis.litElementHydrateSupport)||void 0===ie||ie.call(globalThis,{LitElement:re});const oe=globalThis.litElementPolyfillSupport;null==oe||oe({LitElement:re}),(null!==(ne=globalThis.litElementVersions)&&void 0!==ne?ne:globalThis.litElementVersions=[]).push("3.2.0");const ae=e=>t=>"function"==typeof t?((e,t)=>(window.customElements.define(e,t),t))(e,t):((e,t)=>{const{kind:i,elements:n}=t;return{kind:i,elements:n,finisher(t){window.customElements.define(e,t)}}})(e,t),se=(e,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(i){i.createProperty(t.key,e)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,e)}};function le(e){return(t,i)=>void 0!==i?((e,t,i)=>{t.constructor.createProperty(i,e)})(e,t,i):se(e,t)}function ue(e){return le({...e,state:!0})}function de(e,t){return(({finisher:e,descriptor:t})=>(i,n)=>{var r;if(void 0===n){const n=null!==(r=i.originalKey)&&void 0!==r?r:i.key,o=null!=t?{kind:"method",placement:"prototype",key:n,descriptor:t(i.key)}:{...i,key:n};return null!=e&&(o.finisher=function(t){e(t,n)}),o}{const r=i.constructor;void 0!==t&&Object.defineProperty(i,n,t(n)),null==e||e(r,n)}})({descriptor:i=>{const n={get(){var t,i;return null!==(i=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(t){const t="symbol"==typeof i?Symbol():"__"+i;n.get=function(){var i,n;return void 0===this[t]&&(this[t]=null!==(n=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(e))&&void 0!==n?n:null),this[t]}}return n}})}var ce;null===(ce=window.HTMLSlotElement)||void 0===ce||ce.prototype.assignedElements;const pe=e=>(...t)=>({_$litDirective$:e,values:t});class he{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}const fe=pe(class extends he{constructor(e){var t;if(super(e),1!==e.type||"class"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter((t=>e[t])).join(" ")+" "}update(e,[t]){var i,n;if(void 0===this.et){this.et=new Set,void 0!==e.strings&&(this.st=new Set(e.strings.join(" ").split(/\s/).filter((e=>""!==e))));for(const e in t)t[e]&&!(null===(i=this.st)||void 0===i?void 0:i.has(e))&&this.et.add(e);return this.render(t)}const r=e.element.classList;this.et.forEach((e=>{e in t||(r.remove(e),this.et.delete(e))}));for(const e in t){const i=!!t[e];i===this.et.has(e)||(null===(n=this.st)||void 0===n?void 0:n.has(e))||(i?(r.add(e),this.et.add(e)):(r.remove(e),this.et.delete(e)))}return B}}),{H:me}=ee,ge=(e,t)=>{var i,n;const r=e._$AN;if(void 0===r)return!1;for(const e of r)null===(n=(i=e)._$AO)||void 0===n||n.call(i,t,!1),ge(e,t);return!0},ve=e=>{let t,i;do{if(void 0===(t=e._$AM))break;i=t._$AN,i.delete(e),e=t}while(0===(null==i?void 0:i.size))},ye=e=>{for(let t;t=e._$AM;e=t){let i=t._$AN;if(void 0===i)t._$AN=i=new Set;else if(i.has(e))break;i.add(e),Se(t)}};function be(e){void 0!==this._$AN?(ve(this),this._$AM=e,ye(this)):this._$AM=e}function we(e,t=!1,i=0){const n=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(t)if(Array.isArray(n))for(let e=i;e<n.length;e++)ge(n[e],!1),ve(n[e]);else null!=n&&(ge(n,!1),ve(n));else ge(this,e)}const Se=e=>{var t,i,n,r;2==e.type&&(null!==(t=(n=e)._$AP)&&void 0!==t||(n._$AP=we),null!==(i=(r=e)._$AQ)&&void 0!==i||(r._$AQ=be))};class Te extends he{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),ye(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,n;e!==this.isConnected&&(this.isConnected=e,e?null===(i=this.reconnected)||void 0===i||i.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),t&&(ge(this,e),ve(this))}setValue(e){if((e=>void 0===this._$Ct.strings)())this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}const xe=()=>new Ae;class Ae{}const Ce=new WeakMap,Oe=pe(class extends Te{render(e){return q}update(e,[t]){var i;const n=t!==this.U;return n&&void 0!==this.U&&this.ot(void 0),(n||this.rt!==this.lt)&&(this.U=t,this.ht=null===(i=e.options)||void 0===i?void 0:i.host,this.ot(this.lt=e.element)),q}ot(e){var t;if("function"==typeof this.U){const i=null!==(t=this.ht)&&void 0!==t?t:globalThis;let n=Ce.get(i);void 0===n&&(n=new WeakMap,Ce.set(i,n)),void 0!==n.get(this.U)&&this.U.call(this.ht,void 0),n.set(this.U,e),void 0!==e&&this.U.call(this.ht,e)}else this.U.value=e}get rt(){var e,t,i;return"function"==typeof this.U?null===(t=Ce.get(null!==(e=this.ht)&&void 0!==e?e:globalThis))||void 0===t?void 0:t.get(this.U):null===(i=this.U)||void 0===i?void 0:i.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}}),Ie=e=>{const t=e.replace(/\D/g,"").substring(0,10),i=t.substring(0,3),n=t.substring(3,6),r=t.substring(6,10);return t.length>5?`(${i}) ${n}-${r}`:t.length>2?`(${i}) ${n}`:t.length>0?`(${i}`:""},Ne=e=>{const t=(""+e).replace(/\D/g,"").match(/^(1|)?(\d{3})(\d{3})(\d{4})$/);return t?[t[1]?"+1 ":"","(",t[2],") ",t[3],"-",t[4]].join(""):e},Ee=e=>{const t=e.keyCode;return t>=48&&t<=57||t>=96&&t<=105},Re=e=>e.altKey||e.ctrlKey||e.metaKey,_e=e=>{const t=e.keyCode;return e.shiftKey||35===t||36===t||8===t||9===t||13===t||46===t||t>36&&t<41||(e.ctrlKey||e.metaKey)&&(65===t||67===t||76===t||86===t||88===t||90===t)},Pe=pe(class extends he{constructor(e){var t;if(super(e),1!==e.type||"style"!==e.name||(null===(t=e.strings)||void 0===t?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce(((t,i)=>{const n=e[i];return null==n?t:t+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(e,[t]){const{style:i}=e.element;if(void 0===this.ct){this.ct=new Set;for(const e in t)this.ct.add(e);return this.render(t)}this.ct.forEach((e=>{null==t[e]&&(this.ct.delete(e),e.includes("-")?i.removeProperty(e):i[e]="")}));for(const e in t){const n=t[e];null!=n&&(this.ct.add(e),e.includes("-")?i.setProperty(e,n):i[e]=n)}return B}}),Me="#636889",Fe="#ffffff",De=(e,t)=>{let i=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),r=parseInt(e.substr(5,2),16);return i=Math.round(i*(1-t)+255*t),n=Math.round(n*(1-t)+255*t),r=Math.round(r*(1-t)+255*t),"#"+i.toString(16).padStart(2,"0")+n.toString(16).padStart(2,"0")+r.toString(16).padStart(2,"0")},ke=(e,t)=>2===e||70392===t;var Ue=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Le=class extends re{constructor(){super(...arguments),this.heading="",this.subtitle="",this.selected=!1,this.brandColor=Me,this.backgroundColor=Fe}render(){return U`
|
|
3
3
|
<div
|
|
4
4
|
class="tour-type-option"
|
|
5
5
|
tabindex="0"
|
|
@@ -66,7 +66,7 @@ var e={8005:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){retur
|
|
|
66
66
|
h2 {
|
|
67
67
|
font-weight: 400;
|
|
68
68
|
}
|
|
69
|
-
`],Ue([le({type:String})],Le.prototype,"heading",void 0),Ue([le({type:String})],Le.prototype,"subtitle",void 0),Ue([le({type:Boolean})],Le.prototype,"selected",void 0),Ue([le({attribute:!1})],Le.prototype,"onClick",void 0),Ue([le({attribute:!0})],Le.prototype,"brandColor",void 0),Ue([le({attribute:!0})],Le.prototype,"backgroundColor",void 0),Le=Ue([ae("tour-type-option")],Le);var Ge={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ze(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.width?String(t.width):e.defaultWidth,n=e.formats[i]||e.formats[e.defaultWidth];return n}}const We={date:ze({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ze({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ze({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ve={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Qe(e){return function(t,i){var n,r=i||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Ke={ordinalNumber:function(e,t){var i=Number(e),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Qe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Qe({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Qe({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Qe({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Qe({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Xe(e){return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var a,s=o[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?Ye(l,(function(e){return e.test(s)})):$e(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=i.valueCallback?i.valueCallback(a):a;var d=t.slice(s.length);return{value:a,rest:d}}}function $e(e,t){for(var i in e)if(e.hasOwnProperty(i)&&t(e[i]))return i}function Ye(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return i}var Ze,et={ordinalNumber:(Ze={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.match(Ze.matchPattern);if(!i)return null;var n=i[0],r=e.match(Ze.parsePattern);if(!r)return null;var o=Ze.valueCallback?Ze.valueCallback(r[0]):r[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(n.length);return{value:o,rest:a}}),era:Xe({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Xe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Xe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Xe({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Xe({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const tt={code:"en-US",formatDistance:function(e,t,i){var n,r=Ge[e];return n="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+n:n+" ago":n},formatLong:We,formatRelative:function(e,t,i,n){return Ve[e]},localize:Ke,match:et,options:{weekStartsOn:0,firstWeekContainsDate:1}};function it(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function nt(e,t){Be(2,arguments);var i=qe(e).getTime(),n=it(t);return new Date(i+n)}function rt(e,t){Be(2,arguments);var i=it(t);return nt(e,-i)}var ot=864e5;function at(e){Be(1,arguments);var t=1,i=qe(e),n=i.getUTCDay(),r=(n<t?7:0)+n-t;return i.setUTCDate(i.getUTCDate()-r),i.setUTCHours(0,0,0,0),i}function st(e){Be(1,arguments);var t=qe(e),i=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(i+1,0,4),n.setUTCHours(0,0,0,0);var r=at(n),o=new Date(0);o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0);var a=at(o);return t.getTime()>=r.getTime()?i+1:t.getTime()>=a.getTime()?i:i-1}function lt(e){Be(1,arguments);var t=st(e),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var n=at(i);return n}var ut=6048e5;function dt(e,t){Be(1,arguments);var i=t||{},n=i.locale,r=n&&n.options&&n.options.weekStartsOn,o=null==r?0:it(r),a=null==i.weekStartsOn?o:it(i.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=qe(e),l=s.getUTCDay(),u=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function ct(e,t){Be(1,arguments);var i=qe(e),n=i.getUTCFullYear(),r=t||{},o=r.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:it(a),l=null==r.firstWeekContainsDate?s:it(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(n+1,0,l),u.setUTCHours(0,0,0,0);var d=dt(u,t),c=new Date(0);c.setUTCFullYear(n,0,l),c.setUTCHours(0,0,0,0);var p=dt(c,t);return i.getTime()>=d.getTime()?n+1:i.getTime()>=p.getTime()?n:n-1}function pt(e,t){Be(1,arguments);var i=t||{},n=i.locale,r=n&&n.options&&n.options.firstWeekContainsDate,o=null==r?1:it(r),a=null==i.firstWeekContainsDate?o:it(i.firstWeekContainsDate),s=ct(e,t),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var u=dt(l,t);return u}var ht=6048e5;function ft(e,t){for(var i=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return i+n}const mt=function(e,t){var i=e.getUTCFullYear(),n=i>0?i:1-i;return ft("yy"===t?n%100:n,t.length)},gt=function(e,t){var i=e.getUTCMonth();return"M"===t?String(i+1):ft(i+1,2)},vt=function(e,t){return ft(e.getUTCDate(),t.length)},yt=function(e,t){return ft(e.getUTCHours()%12||12,t.length)},bt=function(e,t){return ft(e.getUTCHours(),t.length)},wt=function(e,t){return ft(e.getUTCMinutes(),t.length)},St=function(e,t){return ft(e.getUTCSeconds(),t.length)},Tt=function(e,t){var i=t.length,n=e.getUTCMilliseconds();return ft(Math.floor(n*Math.pow(10,i-3)),t.length)};var xt={G:function(e,t,i){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});default:return i.era(n,{width:"wide"})}},y:function(e,t,i){if("yo"===t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return i.ordinalNumber(r,{unit:"year"})}return mt(e,t)},Y:function(e,t,i,n){var r=ct(e,n),o=r>0?r:1-r;return"YY"===t?ft(o%100,2):"Yo"===t?i.ordinalNumber(o,{unit:"year"}):ft(o,t.length)},R:function(e,t){return ft(st(e),t.length)},u:function(e,t){return ft(e.getUTCFullYear(),t.length)},Q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ft(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ft(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,i){var n=e.getUTCMonth();switch(t){case"M":case"MM":return gt(e,t);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,i){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return ft(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,i,n){var r=function(e,t){Be(1,arguments);var i=qe(e),n=dt(i,t).getTime()-pt(i,t).getTime();return Math.round(n/ht)+1}(e,n);return"wo"===t?i.ordinalNumber(r,{unit:"week"}):ft(r,t.length)},I:function(e,t,i){var n=function(e){Be(1,arguments);var t=qe(e),i=at(t).getTime()-lt(t).getTime();return Math.round(i/ut)+1}(e);return"Io"===t?i.ordinalNumber(n,{unit:"week"}):ft(n,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):vt(e,t)},D:function(e,t,i){var n=function(e){Be(1,arguments);var t=qe(e),i=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),r=i-n;return Math.floor(r/ot)+1}(e);return"Do"===t?i.ordinalNumber(n,{unit:"dayOfYear"}):ft(n,t.length)},E:function(e,t,i){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,i,n){var r=e.getUTCDay(),o=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ft(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,i,n){var r=e.getUTCDay(),o=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ft(o,t.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,i){var n=e.getUTCDay(),r=0===n?7:n;switch(t){case"i":return String(r);case"ii":return ft(r,t.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,i){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,i){var n,r=e.getUTCHours();switch(n=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,i){var n,r=e.getUTCHours();switch(n=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,i){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),i.ordinalNumber(n,{unit:"hour"})}return yt(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bt(e,t)},K:function(e,t,i){var n=e.getUTCHours()%12;return"Ko"===t?i.ordinalNumber(n,{unit:"hour"}):ft(n,t.length)},k:function(e,t,i){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?i.ordinalNumber(n,{unit:"hour"}):ft(n,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):wt(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):St(e,t)},S:function(e,t){return Tt(e,t)},X:function(e,t,i,n){var r=(n._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ct(r);case"XXXX":case"XX":return Ot(r);default:return Ot(r,":")}},x:function(e,t,i,n){var r=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ct(r);case"xxxx":case"xx":return Ot(r);default:return Ot(r,":")}},O:function(e,t,i,n){var r=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+At(r,":");default:return"GMT"+Ot(r,":")}},z:function(e,t,i,n){var r=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+At(r,":");default:return"GMT"+Ot(r,":")}},t:function(e,t,i,n){var r=n._originalDate||e;return ft(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,i,n){return ft((n._originalDate||e).getTime(),t.length)}};function At(e,t){var i=e>0?"-":"+",n=Math.abs(e),r=Math.floor(n/60),o=n%60;if(0===o)return i+String(r);var a=t||"";return i+String(r)+a+ft(o,2)}function Ct(e,t){return e%60==0?(e>0?"-":"+")+ft(Math.abs(e)/60,2):Ot(e,t)}function Ot(e,t){var i=t||"",n=e>0?"-":"+",r=Math.abs(e);return n+ft(Math.floor(r/60),2)+i+ft(r%60,2)}const It=xt;function Nt(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Et(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}const Rt={p:Et,P:function(e,t){var i,n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Nt(e,t);switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",Nt(r,t)).replace("{{time}}",Et(o,t))}};function _t(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Pt=["D","DD"],Mt=["YY","YYYY"];function Ft(e){return-1!==Pt.indexOf(e)}function Dt(e){return-1!==Mt.indexOf(e)}function kt(e,t,i){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"))}var Ut=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bt=/^'([^]*?)'?$/,qt=/''/g,Jt=/[a-zA-Z]/;function jt(e,t,i){Be(2,arguments);var n=String(t),r=i||{},o=r.locale||tt,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:it(a),l=null==r.firstWeekContainsDate?s:it(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,d=null==u?0:it(u),c=null==r.weekStartsOn?d:it(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var p=qe(e);if(!He(p))throw new RangeError("Invalid time value");var h=_t(p),f=rt(p,h),m={firstWeekContainsDate:l,weekStartsOn:c,locale:o,_originalDate:p},g=n.match(Lt).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Rt[t])(e,o.formatLong,m):e})).join("").match(Ut).map((function(i){if("''"===i)return"'";var n=i[0];if("'"===n)return Ht(i);var a=It[n];if(a)return!r.useAdditionalWeekYearTokens&&Dt(i)&&kt(i,t,e),!r.useAdditionalDayOfYearTokens&&Ft(i)&&kt(i,t,e),a(f,i,o.localize,m);if(n.match(Jt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return i})).join("");return g}function Ht(e){return e.match(Bt)[1].replace(qt,"'")}const Gt=(e,t)=>new Date(e,t+1,0).getDate(),zt=(e,t)=>new Date(e,t,1).getDay(),Wt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Vt=["January","February","March","April","May","June","July","August","September","October","November","December"];var Qt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Kt=class extends re{constructor(){var e;super(...arguments),this._selectedDate=void 0,this.now=new Date,this._monthShown=this.defaultMonth&&-1!==Vt.indexOf(this.defaultMonth)?Vt.indexOf(this.defaultMonth):this.now.getMonth(),this.yearShown=null!==(e=this.defaultYear)&&void 0!==e?e:this.now.getFullYear()}set selectedDate(e){const t=this._selectedDate;this._selectedDate=e,this.requestUpdate("selectedDate",t),this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}get selectedDate(){return this._selectedDate}set monthShown(e){const t=this._monthShown;12===e?(this._monthShown=0,this.yearShown++):-1===e?(this._monthShown=11,this.yearShown--):this._monthShown=e,this.requestUpdate("monthShown",t)}get monthShown(){return this._monthShown}render(){const e=Gt(this.yearShown,this.monthShown),t=Wt[zt(this.yearShown,this.monthShown)],i=(n=this.yearShown,r=this.monthShown,Gt(r>0?n:n-1,(e=>e>0?e-1:11)(r)));var n,r;const o=Wt[((e,t)=>(zt(e,t)+Gt(e,t)%7-1)%7)(this.yearShown,this.monthShown)],a=[];if("Sunday"!==t)for(let e=Wt.indexOf(t);e>0;e--)a.push(i+1-e);const s=new Array(e).fill(null).map(((e,t)=>t+1)),l=[];if("Saturday"!==o){const e=[...Wt].reverse().indexOf(o);for(let t=1;t<=e;t++)l.push(t)}const u=[...a,...s,...l].map(((e,t)=>{var i,n,r;const o=this.yearShown<this.now.getFullYear()||this.yearShown===this.now.getFullYear()&&this.monthShown<this.now.getMonth()||this.yearShown===this.now.getFullYear()&&this.monthShown===this.now.getMonth()&&e<this.now.getDate(),l=t<a.length||t>=a.length+s.length,u=!l&&this.now.getMonth()===this.monthShown&&this.now.getDate()===e,d=!!this.selectedDate&&!l&&this.monthShown===function(e){return Be(1,arguments),qe(e).getMonth()}(this.selectedDate)&&this.yearShown===function(e){return Be(1,arguments),qe(e).getFullYear()}(this.selectedDate)&&e===function(e){return Be(1,arguments),qe(e).getDate()}(this.selectedDate),c=jt(new Date(this.yearShown,this.monthShown,e),"y-MM-dd"),p=!(null===(i=this.availabilities)||void 0===i?void 0:i[c])||0===(null===(r=null===(n=this.availabilities)||void 0===n?void 0:n[c])||void 0===r?void 0:r.length);return U`<span
|
|
69
|
+
`],Ue([le({type:String})],Le.prototype,"heading",void 0),Ue([le({type:String})],Le.prototype,"subtitle",void 0),Ue([le({type:Boolean})],Le.prototype,"selected",void 0),Ue([le({attribute:!1})],Le.prototype,"onClick",void 0),Ue([le({attribute:!0})],Le.prototype,"brandColor",void 0),Ue([le({attribute:!0})],Le.prototype,"backgroundColor",void 0),Le=Ue([ae("tour-type-option")],Le);var Ge={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function ze(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.width?String(t.width):e.defaultWidth,n=e.formats[i]||e.formats[e.defaultWidth];return n}}const We={date:ze({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ze({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ze({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var Ve={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Qe(e){return function(t,i){var n,r=i||{};if("formatting"===(r.context?String(r.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=r.width?String(r.width):o;n=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=r.width?String(r.width):e.defaultWidth;n=e.values[l]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Ke={ordinalNumber:function(e,t){var i=Number(e),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:Qe({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Qe({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Qe({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Qe({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Qe({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Xe(e){return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(r);if(!o)return null;var a,s=o[0],l=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?$e(l,(function(e){return e.test(s)})):Ye(l,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(u):u,a=i.valueCallback?i.valueCallback(a):a;var d=t.slice(s.length);return{value:a,rest:d}}}function Ye(e,t){for(var i in e)if(e.hasOwnProperty(i)&&t(e[i]))return i}function $e(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return i}var Ze,et={ordinalNumber:(Ze={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.match(Ze.matchPattern);if(!i)return null;var n=i[0],r=e.match(Ze.parsePattern);if(!r)return null;var o=Ze.valueCallback?Ze.valueCallback(r[0]):r[0];o=t.valueCallback?t.valueCallback(o):o;var a=e.slice(n.length);return{value:o,rest:a}}),era:Xe({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Xe({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Xe({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Xe({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Xe({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const tt={code:"en-US",formatDistance:function(e,t,i){var n,r=Ge[e];return n="string"==typeof r?r:1===t?r.one:r.other.replace("{{count}}",t.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+n:n+" ago":n},formatLong:We,formatRelative:function(e,t,i,n){return Ve[e]},localize:Ke,match:et,options:{weekStartsOn:0,firstWeekContainsDate:1}};function it(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function nt(e,t){Be(2,arguments);var i=qe(e).getTime(),n=it(t);return new Date(i+n)}function rt(e,t){Be(2,arguments);var i=it(t);return nt(e,-i)}var ot=864e5;function at(e){Be(1,arguments);var t=1,i=qe(e),n=i.getUTCDay(),r=(n<t?7:0)+n-t;return i.setUTCDate(i.getUTCDate()-r),i.setUTCHours(0,0,0,0),i}function st(e){Be(1,arguments);var t=qe(e),i=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(i+1,0,4),n.setUTCHours(0,0,0,0);var r=at(n),o=new Date(0);o.setUTCFullYear(i,0,4),o.setUTCHours(0,0,0,0);var a=at(o);return t.getTime()>=r.getTime()?i+1:t.getTime()>=a.getTime()?i:i-1}function lt(e){Be(1,arguments);var t=st(e),i=new Date(0);i.setUTCFullYear(t,0,4),i.setUTCHours(0,0,0,0);var n=at(i);return n}var ut=6048e5;function dt(e,t){Be(1,arguments);var i=t||{},n=i.locale,r=n&&n.options&&n.options.weekStartsOn,o=null==r?0:it(r),a=null==i.weekStartsOn?o:it(i.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=qe(e),l=s.getUTCDay(),u=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function ct(e,t){Be(1,arguments);var i=qe(e),n=i.getUTCFullYear(),r=t||{},o=r.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:it(a),l=null==r.firstWeekContainsDate?s:it(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(n+1,0,l),u.setUTCHours(0,0,0,0);var d=dt(u,t),c=new Date(0);c.setUTCFullYear(n,0,l),c.setUTCHours(0,0,0,0);var p=dt(c,t);return i.getTime()>=d.getTime()?n+1:i.getTime()>=p.getTime()?n:n-1}function pt(e,t){Be(1,arguments);var i=t||{},n=i.locale,r=n&&n.options&&n.options.firstWeekContainsDate,o=null==r?1:it(r),a=null==i.firstWeekContainsDate?o:it(i.firstWeekContainsDate),s=ct(e,t),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var u=dt(l,t);return u}var ht=6048e5;function ft(e,t){for(var i=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return i+n}const mt=function(e,t){var i=e.getUTCFullYear(),n=i>0?i:1-i;return ft("yy"===t?n%100:n,t.length)},gt=function(e,t){var i=e.getUTCMonth();return"M"===t?String(i+1):ft(i+1,2)},vt=function(e,t){return ft(e.getUTCDate(),t.length)},yt=function(e,t){return ft(e.getUTCHours()%12||12,t.length)},bt=function(e,t){return ft(e.getUTCHours(),t.length)},wt=function(e,t){return ft(e.getUTCMinutes(),t.length)},St=function(e,t){return ft(e.getUTCSeconds(),t.length)},Tt=function(e,t){var i=t.length,n=e.getUTCMilliseconds();return ft(Math.floor(n*Math.pow(10,i-3)),t.length)};var xt={G:function(e,t,i){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});default:return i.era(n,{width:"wide"})}},y:function(e,t,i){if("yo"===t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return i.ordinalNumber(r,{unit:"year"})}return mt(e,t)},Y:function(e,t,i,n){var r=ct(e,n),o=r>0?r:1-r;return"YY"===t?ft(o%100,2):"Yo"===t?i.ordinalNumber(o,{unit:"year"}):ft(o,t.length)},R:function(e,t){return ft(st(e),t.length)},u:function(e,t){return ft(e.getUTCFullYear(),t.length)},Q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return ft(n,2);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});default:return i.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,i){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return ft(n,2);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});default:return i.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,i){var n=e.getUTCMonth();switch(t){case"M":case"MM":return gt(e,t);case"Mo":return i.ordinalNumber(n+1,{unit:"month"});case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});default:return i.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,i){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return ft(n+1,2);case"Lo":return i.ordinalNumber(n+1,{unit:"month"});case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});default:return i.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,i,n){var r=function(e,t){Be(1,arguments);var i=qe(e),n=dt(i,t).getTime()-pt(i,t).getTime();return Math.round(n/ht)+1}(e,n);return"wo"===t?i.ordinalNumber(r,{unit:"week"}):ft(r,t.length)},I:function(e,t,i){var n=function(e){Be(1,arguments);var t=qe(e),i=at(t).getTime()-lt(t).getTime();return Math.round(i/ut)+1}(e);return"Io"===t?i.ordinalNumber(n,{unit:"week"}):ft(n,t.length)},d:function(e,t,i){return"do"===t?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):vt(e,t)},D:function(e,t,i){var n=function(e){Be(1,arguments);var t=qe(e),i=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),r=i-n;return Math.floor(r/ot)+1}(e);return"Do"===t?i.ordinalNumber(n,{unit:"dayOfYear"}):ft(n,t.length)},E:function(e,t,i){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,i,n){var r=e.getUTCDay(),o=(r-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return ft(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,i,n){var r=e.getUTCDay(),o=(r-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return ft(o,t.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,i){var n=e.getUTCDay(),r=0===n?7:n;switch(t){case"i":return String(r);case"ii":return ft(r,t.length);case"io":return i.ordinalNumber(r,{unit:"day"});case"iii":return i.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(n,{width:"short",context:"formatting"});default:return i.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,i){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,i){var n,r=e.getUTCHours();switch(n=12===r?"noon":0===r?"midnight":r/12>=1?"pm":"am",t){case"b":case"bb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,i){var n,r=e.getUTCHours();switch(n=r>=17?"evening":r>=12?"afternoon":r>=4?"morning":"night",t){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,i){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),i.ordinalNumber(n,{unit:"hour"})}return yt(e,t)},H:function(e,t,i){return"Ho"===t?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bt(e,t)},K:function(e,t,i){var n=e.getUTCHours()%12;return"Ko"===t?i.ordinalNumber(n,{unit:"hour"}):ft(n,t.length)},k:function(e,t,i){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?i.ordinalNumber(n,{unit:"hour"}):ft(n,t.length)},m:function(e,t,i){return"mo"===t?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):wt(e,t)},s:function(e,t,i){return"so"===t?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):St(e,t)},S:function(e,t){return Tt(e,t)},X:function(e,t,i,n){var r=(n._originalDate||e).getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return Ct(r);case"XXXX":case"XX":return Ot(r);default:return Ot(r,":")}},x:function(e,t,i,n){var r=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return Ct(r);case"xxxx":case"xx":return Ot(r);default:return Ot(r,":")}},O:function(e,t,i,n){var r=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+At(r,":");default:return"GMT"+Ot(r,":")}},z:function(e,t,i,n){var r=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+At(r,":");default:return"GMT"+Ot(r,":")}},t:function(e,t,i,n){var r=n._originalDate||e;return ft(Math.floor(r.getTime()/1e3),t.length)},T:function(e,t,i,n){return ft((n._originalDate||e).getTime(),t.length)}};function At(e,t){var i=e>0?"-":"+",n=Math.abs(e),r=Math.floor(n/60),o=n%60;if(0===o)return i+String(r);var a=t||"";return i+String(r)+a+ft(o,2)}function Ct(e,t){return e%60==0?(e>0?"-":"+")+ft(Math.abs(e)/60,2):Ot(e,t)}function Ot(e,t){var i=t||"",n=e>0?"-":"+",r=Math.abs(e);return n+ft(Math.floor(r/60),2)+i+ft(r%60,2)}const It=xt;function Nt(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function Et(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}const Rt={p:Et,P:function(e,t){var i,n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return Nt(e,t);switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",Nt(r,t)).replace("{{time}}",Et(o,t))}};function _t(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var Pt=["D","DD"],Mt=["YY","YYYY"];function Ft(e){return-1!==Pt.indexOf(e)}function Dt(e){return-1!==Mt.indexOf(e)}function kt(e,t,i){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"))}var Ut=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bt=/^'([^]*?)'?$/,qt=/''/g,Jt=/[a-zA-Z]/;function jt(e,t,i){Be(2,arguments);var n=String(t),r=i||{},o=r.locale||tt,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:it(a),l=null==r.firstWeekContainsDate?s:it(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,d=null==u?0:it(u),c=null==r.weekStartsOn?d:it(r.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var p=qe(e);if(!He(p))throw new RangeError("Invalid time value");var h=_t(p),f=rt(p,h),m={firstWeekContainsDate:l,weekStartsOn:c,locale:o,_originalDate:p},g=n.match(Lt).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Rt[t])(e,o.formatLong,m):e})).join("").match(Ut).map((function(i){if("''"===i)return"'";var n=i[0];if("'"===n)return Ht(i);var a=It[n];if(a)return!r.useAdditionalWeekYearTokens&&Dt(i)&&kt(i,t,e),!r.useAdditionalDayOfYearTokens&&Ft(i)&&kt(i,t,e),a(f,i,o.localize,m);if(n.match(Jt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return i})).join("");return g}function Ht(e){return e.match(Bt)[1].replace(qt,"'")}const Gt=(e,t)=>new Date(e,t+1,0).getDate(),zt=(e,t)=>new Date(e,t,1).getDay(),Wt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Vt=["January","February","March","April","May","June","July","August","September","October","November","December"];var Qt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Kt=class extends re{constructor(){var e;super(...arguments),this._selectedDate=void 0,this.now=new Date,this._monthShown=this.defaultMonth&&-1!==Vt.indexOf(this.defaultMonth)?Vt.indexOf(this.defaultMonth):this.now.getMonth(),this.yearShown=null!==(e=this.defaultYear)&&void 0!==e?e:this.now.getFullYear()}set selectedDate(e){const t=this._selectedDate;this._selectedDate=e,this.requestUpdate("selectedDate",t),this.dispatchEvent(new Event("change",{composed:!0,bubbles:!0}))}get selectedDate(){return this._selectedDate}set monthShown(e){const t=this._monthShown;12===e?(this._monthShown=0,this.yearShown++):-1===e?(this._monthShown=11,this.yearShown--):this._monthShown=e,this.requestUpdate("monthShown",t)}get monthShown(){return this._monthShown}render(){const e=Gt(this.yearShown,this.monthShown),t=Wt[zt(this.yearShown,this.monthShown)],i=(n=this.yearShown,r=this.monthShown,Gt(r>0?n:n-1,(e=>e>0?e-1:11)(r)));var n,r;const o=Wt[((e,t)=>(zt(e,t)+Gt(e,t)%7-1)%7)(this.yearShown,this.monthShown)],a=[];if("Sunday"!==t)for(let e=Wt.indexOf(t);e>0;e--)a.push(i+1-e);const s=new Array(e).fill(null).map(((e,t)=>t+1)),l=[];if("Saturday"!==o){const e=[...Wt].reverse().indexOf(o);for(let t=1;t<=e;t++)l.push(t)}const u=[...a,...s,...l].map(((e,t)=>{var i,n,r;const o=this.yearShown<this.now.getFullYear()||this.yearShown===this.now.getFullYear()&&this.monthShown<this.now.getMonth()||this.yearShown===this.now.getFullYear()&&this.monthShown===this.now.getMonth()&&e<this.now.getDate(),l=t<a.length||t>=a.length+s.length,u=!l&&this.now.getMonth()===this.monthShown&&this.now.getDate()===e,d=!!this.selectedDate&&!l&&this.monthShown===function(e){return Be(1,arguments),qe(e).getMonth()}(this.selectedDate)&&this.yearShown===function(e){return Be(1,arguments),qe(e).getFullYear()}(this.selectedDate)&&e===function(e){return Be(1,arguments),qe(e).getDate()}(this.selectedDate),c=jt(new Date(this.yearShown,this.monthShown,e),"y-MM-dd"),p=!(null===(i=this.availabilities)||void 0===i?void 0:i[c])||0===(null===(r=null===(n=this.availabilities)||void 0===n?void 0:n[c])||void 0===r?void 0:r.length);return U`<span
|
|
70
70
|
class="dayNumber ${fe({past:o,differentMonth:l,today:u,selected:d,noAvailabilities:p})}"
|
|
71
71
|
>${e}</span
|
|
72
72
|
>`})),d=Xt(7,u);return U`
|
|
@@ -238,12 +238,12 @@ var e={8005:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){retur
|
|
|
238
238
|
.dayNumber:is(.differentMonth, .past, .noAvailabilities) {
|
|
239
239
|
opacity: 30%;
|
|
240
240
|
}
|
|
241
|
-
`,Qt([le({attribute:"month",type:String})],Kt.prototype,"defaultMonth",void 0),Qt([le({attribute:"year",type:Number})],Kt.prototype,"defaultYear",void 0),Qt([le({attribute:!1})],Kt.prototype,"availabilities",void 0),Qt([le({attribute:!1})],Kt.prototype,"selectedDate",null),Qt([ue()],Kt.prototype,"monthShown",null),Qt([ue()],Kt.prototype,"yearShown",void 0),Kt=Qt([ae("date-picker")],Kt);const Xt=(e,t)=>{const i=[];for(let n=0;n<t.length;n+=e)i.push(t.slice(n,n+e));return i};var
|
|
241
|
+
`,Qt([le({attribute:"month",type:String})],Kt.prototype,"defaultMonth",void 0),Qt([le({attribute:"year",type:Number})],Kt.prototype,"defaultYear",void 0),Qt([le({attribute:!1})],Kt.prototype,"availabilities",void 0),Qt([le({attribute:!1})],Kt.prototype,"selectedDate",null),Qt([ue()],Kt.prototype,"monthShown",null),Qt([ue()],Kt.prototype,"yearShown",void 0),Kt=Qt([ae("date-picker")],Kt);const Xt=(e,t)=>{const i=[];for(let n=0;n<t.length;n+=e)i.push(t.slice(n,n+e));return i};var Yt=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};const $t=(e,t)=>e.reduce((function(e,t){return e[t.displayTime]=t,e}),{})[t];let Zt=class extends re{constructor(){super(...arguments),this.options=[],this.selectedDateExists=!1}get selectedTime(){return this.selected}render(){var e;return 1!==this.options.length||this.selected||(this.selected=$t(this.options,this.options[0].displayTime),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),(null===(e=this.options)||void 0===e?void 0:e.length)?U`
|
|
242
242
|
<div>
|
|
243
243
|
<div
|
|
244
244
|
id="optionContainer"
|
|
245
|
-
@click="${e=>{const t=e.target;(null==t?void 0:t.closest(".option:not(.selected)"))&&(this.selected
|
|
246
|
-
@keydown="${e=>{var t;const i=e.target;[" ","Enter"].includes(e.key)&&(null==i?void 0:i.closest(".option"))&&(e.preventDefault(),this.selected=i.innerText!==(null===(t=this.selected)||void 0===t?void 0:t.displayTime)
|
|
245
|
+
@click="${e=>{const t=e.target;(null==t?void 0:t.closest(".option:not(.selected)"))&&(this.selected=$t(this.options,t.innerText)),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}}"
|
|
246
|
+
@keydown="${e=>{var t;const i=e.target;[" ","Enter"].includes(e.key)&&(null==i?void 0:i.closest(".option"))&&(e.preventDefault(),this.selected=i.innerText!==(null===(t=this.selected)||void 0===t?void 0:t.displayTime)?$t(this.options,i.innerText):void 0,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}}"
|
|
247
247
|
>
|
|
248
248
|
${this.options.map((e=>{var t;return U`<div
|
|
249
249
|
class="option ${fe({selected:(null===(t=this.selected)||void 0===t?void 0:t.displayTime)===e.displayTime})}"
|
|
@@ -335,7 +335,7 @@ var e={8005:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){retur
|
|
|
335
335
|
width: 100%;
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
`,Yt([le({attribute:!1})],Zt.prototype,"options",void 0),Yt([le({type:Boolean})],Zt.prototype,"selectedDateExists",void 0),Yt([ue()],Zt.prototype,"selected",void 0),Yt([le({attribute:!1})],Zt.prototype,"selectedTime",null),Zt=Yt([ae("time-picker")],Zt),i(7294);var ei=i(8929),ti=i.n(ei),ii=(i(1865),i(1469)),ni=i.n(ii),ri=i(3218),oi=i.n(ri),ai=i(8718),si=i.n(ai),li=36e5;function ui(e,t){Be(2,arguments);var i=qe(e),n=qe(t);return i.getTime()<n.getTime()}const di=(e,t)=>si()(e,((e,i,n,r)=>{e[(null==t?void 0:t.includes(n))||ni()(r)?n:ti()(String(n))]=oi()(i)?di(i,t):i})),ci=()=>window.matchMedia("(max-width: 767px)").matches||window.matchMedia("(max-height: 400px)").matches,pi=(e,t)=>ui(function(e,t){Be(2,arguments);var i=it(t);return nt(e,i*li)}(e,t),Date.now()),hi=e=>{try{const t=document.cookie.split("; ").map((e=>e.split("="))).find((([t])=>t===e));return t?decodeURIComponent(t[1]):null}catch(t){return console.warn(`Error getting cookie value for name=${e}`,t),null}},fi=e=>/^\([2-9][0-8][0-9]\) [2-9][0-9][0-9]-[0-9]{4}$/.test(e),mi=l`
|
|
339
339
|
.webchat-input {
|
|
340
340
|
outline: none;
|
|
341
341
|
|
|
@@ -506,7 +506,7 @@ var e={8005:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){retur
|
|
|
506
506
|
.option.active {
|
|
507
507
|
background-color: var(--active-option-color);
|
|
508
508
|
}
|
|
509
|
-
`,mi],gi([le({attribute:!1})],vi.prototype,"options",void 0),gi([le({type:String})],vi.prototype,"placeholder",void 0),gi([le({type:String})],vi.prototype,"value",void 0),gi([ue()],vi.prototype,"activeOption",void 0),gi([ue()],vi.prototype,"isOpen",void 0),gi([ue()],vi.prototype,"activeOptionIndex",void 0),gi([de("#select",!0)],vi.prototype,"meSelect",void 0),vi=gi([ae("me-select")],vi);var wi=i(9991),Si=i(7739),Ti=i.n(Si);function xi(e){return Be(1,arguments),qe(e).getTime()<Date.now()}Math.pow(10,8);var Ai=36e5;function Ci(e,t){Be(1,arguments);var i=t||{},n=null==i.additionalDigits?2:it(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r,o=Ri(e);if(o.date){var a=_i(o.date,n);r=Pi(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,l=r.getTime(),u=0;if(o.time&&(u=Fi(o.time),isNaN(u)))return new Date(NaN);if(!o.timezone){var d=new Date(l+u),c=new Date(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return s=ki(o.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var Oi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ii=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ni=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ei=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ri(e){var t,i={},n=e.split(Oi.dateTimeDelimiter);if(n.length>2)return i;if(/:/.test(n[0])?t=n[0]:(i.date=n[0],t=n[1],Oi.timeZoneDelimiter.test(i.date)&&(i.date=e.split(Oi.timeZoneDelimiter)[0],t=e.substr(i.date.length,e.length))),t){var r=Oi.timezone.exec(t);r?(i.time=t.replace(r[1],""),i.timezone=r[1]):i.time=t}return i}function _i(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(i);if(!n)return{year:NaN,restDateString:""};var r=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?r:100*o,restDateString:e.slice((n[1]||n[2]).length)}}function Pi(e,t){if(null===t)return new Date(NaN);var i=e.match(Ii);if(!i)return new Date(NaN);var n=!!i[4],r=Mi(i[1]),o=Mi(i[2])-1,a=Mi(i[3]),s=Mi(i[4]),l=Mi(i[5])-1;if(n)return function(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}(0,s,l)?function(e,t,i){var n=new Date(0);n.setUTCFullYear(e,0,4);var r=7*(t-1)+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+r),n}(t,s,l):new Date(NaN);var u=new Date(0);return function(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(Ui[t]||(Li(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(Li(e)?366:365)}(t,r)?(u.setUTCFullYear(t,o,Math.max(r,a)),u):new Date(NaN)}function Mi(e){return e?parseInt(e):1}function Fi(e){var t=e.match(Ni);if(!t)return NaN;var i=Di(t[1]),n=Di(t[2]),r=Di(t[3]);return function(e,t,i){return 24===e?0===t&&0===i:i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}(i,n,r)?i*Ai+6e4*n+1e3*r:NaN}function Di(e){return e&&parseFloat(e.replace(",","."))||0}function ki(e){if("Z"===e)return 0;var t=e.match(Ei);if(!t)return 0;var i="+"===t[1]?-1:1,n=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,r)?i*(n*Ai+6e4*r):NaN}var Ui=[31,null,31,30,31,30,31,31,30,31,30,31];function Li(e){return e%400==0||e%4==0&&e%100!=0}const Bi={buildingId:null,availabilities:{}},qi=async e=>{e&&(Bi.buildingId=e);const i=Bi.buildingId;if(!i)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=Bi.availabilities;if(n[i])return n[i];const r=bi(Date.now()),o=yi(function(e){Be(1,arguments);var t=qe(e);return t.setHours(23,59,59,999),t}(function(e,t){Be(2,arguments);var i=qe(e),n=it(t);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}(r,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${i}/tour/availabilities?startTime=${encodeURIComponent(yi(r))}&endTime=${encodeURIComponent(o)}`,s=await t().get(a);return Bi.availabilities[i]=s.data,s.data},Ji=async(e,t)=>{var i,n;const r=await qi(t),o=(null===(i=r.availability)||void 0===i?void 0:i[e])?null===(n=r.availability)||void 0===n?void 0:n[e].availableTourStartTimes:[];return r.availability?{...r.availability[e],availableTourStartTimes:o}:null},ji=async()=>{var e,t,i,n,r,o;return{[yn.Guided]:!!(null===(t=null===(e=await Ji(wi.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[yn.Self]:!!(null===(n=null===(i=await Ji(wi.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided))||void 0===i?void 0:i.availableTourStartTimes)||void 0===n?void 0:n.length),[yn.Virtual]:!!(null===(o=null===(r=await Ji(wi.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing))||void 0===r?void 0:r.availableTourStartTimes)||void 0===o?void 0:o.length)}},Hi=async(e,t)=>{var i,n;const r=await Ji(e,t);if(!r)return{};const o={availableTourStartTimes:null===(i=r.availableTourStartTimes?r.availableTourStartTimes.filter((e=>He(Ci(e))&&!xi(Ci(e)))):[])||void 0===i?void 0:i.map((e=>Gi(e)))};return Ti()(null!==(n=o.availableTourStartTimes)&&void 0!==n?n:[],(e=>jt(new Date(e.datetime),"yyyy-MM-dd")))},Gi=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var zi=i(6604),Wi=i.n(zi),Vi=i(4184),Qi=i.n(Vi);const Ki=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var Xi;async function
|
|
509
|
+
`,mi],gi([le({attribute:!1})],vi.prototype,"options",void 0),gi([le({type:String})],vi.prototype,"placeholder",void 0),gi([le({type:String})],vi.prototype,"value",void 0),gi([ue()],vi.prototype,"activeOption",void 0),gi([ue()],vi.prototype,"isOpen",void 0),gi([ue()],vi.prototype,"activeOptionIndex",void 0),gi([de("#select",!0)],vi.prototype,"meSelect",void 0),vi=gi([ae("me-select")],vi);var wi=i(9991),Si=i(7739),Ti=i.n(Si);function xi(e){return Be(1,arguments),qe(e).getTime()<Date.now()}Math.pow(10,8);var Ai=36e5;function Ci(e,t){Be(1,arguments);var i=t||{},n=null==i.additionalDigits?2:it(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var r,o=Ri(e);if(o.date){var a=_i(o.date,n);r=Pi(a.restDateString,a.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);var s,l=r.getTime(),u=0;if(o.time&&(u=Fi(o.time),isNaN(u)))return new Date(NaN);if(!o.timezone){var d=new Date(l+u),c=new Date(0);return c.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),c.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),c}return s=ki(o.timezone),isNaN(s)?new Date(NaN):new Date(l+u+s)}var Oi={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ii=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ni=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Ei=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Ri(e){var t,i={},n=e.split(Oi.dateTimeDelimiter);if(n.length>2)return i;if(/:/.test(n[0])?t=n[0]:(i.date=n[0],t=n[1],Oi.timeZoneDelimiter.test(i.date)&&(i.date=e.split(Oi.timeZoneDelimiter)[0],t=e.substr(i.date.length,e.length))),t){var r=Oi.timezone.exec(t);r?(i.time=t.replace(r[1],""),i.timezone=r[1]):i.time=t}return i}function _i(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(i);if(!n)return{year:NaN,restDateString:""};var r=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?r:100*o,restDateString:e.slice((n[1]||n[2]).length)}}function Pi(e,t){if(null===t)return new Date(NaN);var i=e.match(Ii);if(!i)return new Date(NaN);var n=!!i[4],r=Mi(i[1]),o=Mi(i[2])-1,a=Mi(i[3]),s=Mi(i[4]),l=Mi(i[5])-1;if(n)return function(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}(0,s,l)?function(e,t,i){var n=new Date(0);n.setUTCFullYear(e,0,4);var r=7*(t-1)+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+r),n}(t,s,l):new Date(NaN);var u=new Date(0);return function(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(Ui[t]||(Li(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=(Li(e)?366:365)}(t,r)?(u.setUTCFullYear(t,o,Math.max(r,a)),u):new Date(NaN)}function Mi(e){return e?parseInt(e):1}function Fi(e){var t=e.match(Ni);if(!t)return NaN;var i=Di(t[1]),n=Di(t[2]),r=Di(t[3]);return function(e,t,i){return 24===e?0===t&&0===i:i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}(i,n,r)?i*Ai+6e4*n+1e3*r:NaN}function Di(e){return e&&parseFloat(e.replace(",","."))||0}function ki(e){if("Z"===e)return 0;var t=e.match(Ei);if(!t)return 0;var i="+"===t[1]?-1:1,n=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,r)?i*(n*Ai+6e4*r):NaN}var Ui=[31,null,31,30,31,30,31,31,30,31,30,31];function Li(e){return e%400==0||e%4==0&&e%100!=0}const Bi={buildingId:null,availabilities:{}},qi=async e=>{e&&(Bi.buildingId=e);const i=Bi.buildingId;if(!i)throw new Error("No buildingId was provided to getRawAvailabilities and there is no buildingId cached.");const n=Bi.availabilities;if(n[i])return n[i];const r=bi(Date.now()),o=yi(function(e){Be(1,arguments);var t=qe(e);return t.setHours(23,59,59,999),t}(function(e,t){Be(2,arguments);var i=qe(e),n=it(t);return isNaN(n)?new Date(NaN):n?(i.setDate(i.getDate()+n),i):i}(r,30))),a=`https://app.meetelise.com/api/pub/v1/buildings/${i}/tour/availabilities?startTime=${encodeURIComponent(yi(r))}&endTime=${encodeURIComponent(o)}`,s=await t().get(a);return Bi.availabilities[i]=s.data,s.data},Ji=async(e,t)=>{var i,n;const r=await qi(t),o=(null===(i=r.availability)||void 0===i?void 0:i[e])?null===(n=r.availability)||void 0===n?void 0:n[e].availableTourStartTimes:[];return r.availability?{...r.availability[e],availableTourStartTimes:o}:null},ji=async()=>{var e,t,i,n,r,o;return{[yn.Guided]:!!(null===(t=null===(e=await Ji(wi.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.WithAgent))||void 0===e?void 0:e.availableTourStartTimes)||void 0===t?void 0:t.length),[yn.Self]:!!(null===(n=null===(i=await Ji(wi.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.SelfGuided))||void 0===i?void 0:i.availableTourStartTimes)||void 0===n?void 0:n.length),[yn.Virtual]:!!(null===(o=null===(r=await Ji(wi.TourAvailabilityResponseRankOrderedSupportedTourTypesEnum.VirtualShowing))||void 0===r?void 0:r.availableTourStartTimes)||void 0===o?void 0:o.length)}},Hi=async(e,t)=>{var i,n;const r=await Ji(e,t);if(!r)return{};const o={availableTourStartTimes:null===(i=r.availableTourStartTimes?r.availableTourStartTimes.filter((e=>He(Ci(e))&&!xi(Ci(e)))):[])||void 0===i?void 0:i.map((e=>Gi(e)))};return Ti()(null!==(n=o.availableTourStartTimes)&&void 0!==n?n:[],(e=>jt(new Date(e.datetime),"yyyy-MM-dd")))},Gi=e=>({datetime:e.slice(0,19),offset:e.slice(19)});var zi=i(6604),Wi=i.n(zi),Vi=i(4184),Qi=i.n(Vi);const Ki=e=>`https://app.meetelise.com/platformApi/webchat/${e}/chat-ui-feature-flag`;var Xi;async function Yi(e){if(!e)return Xi.always;try{const i=await t().get(Ki(e),{params:{building_slug:e,flag_type:"string",feature_flag:"webchat-marketing-source-dropdown-configuration",default_str:"always",default_bool:!0}});return"on-attribution-failure"===i.data?Xi.onAttributionFailure:"never"===i.data?Xi.never:Xi.always}catch(e){return Xi.always}}async function $i(e){if(!e)return!1;try{return(await t().get(Ki(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-dni-phone-number-by-source",default_str:null,default_bool:!1}})).data}catch(e){return!1}}async function Zi(e){if(!e)return!1;try{return(await t().get((e=>`https://app.meetelise.com/platformApi/webchat/${e}/v2/chat-ui-feature-flag`)(e),{params:{building_slug:e,feature_flag_name:"insert_dni_into_website",default_value:!1}})).data}catch(e){return!1}}!function(e){e.onAttributionFailure="on-attribution-failure",e.never="never",e.always="always"}(Xi||(Xi={}));const en=(e,t={})=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:e,...t})},tn={fontSize:"10px",paddingTop:"4px"},nn={color:"#4287f5"},rn=({phoneNumberInput:e,emailInput:t,orgLegalName:i})=>e?U` <div style=${Pe(tn)}>
|
|
510
510
|
By providing your number and clicking send, you consent to receive
|
|
511
511
|
recurring marketing calls and voice and text messages from or on behalf of
|
|
512
512
|
${i} at this number using artificial voice or an autodialer
|
|
@@ -2517,11 +2517,11 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
2517
2517
|
</svg>`,Xn=L`
|
|
2518
2518
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20" fill="none">
|
|
2519
2519
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.94663 1.96781e-07H10.0534C12.2007 -1.17796e-05 13.8835 -2.12636e-05 15.1966 0.176509C16.5405 0.357197 17.601 0.734257 18.4334 1.56664C19.2657 2.39902 19.6428 3.45951 19.8235 4.80345C20 6.11646 20 7.79929 20 9.94663V10.0534C20 12.2007 20 13.8835 19.8235 15.1966C19.6428 16.5405 19.2657 17.601 18.4334 18.4334C17.601 19.2657 16.5405 19.6428 15.1966 19.8235C13.8835 20 12.2007 20 10.0534 20H9.94663C7.79929 20 6.11646 20 4.80345 19.8235C3.45951 19.6428 2.39902 19.2657 1.56664 18.4334C0.734257 17.601 0.357197 16.5405 0.176509 15.1966C-2.12636e-05 13.8835 -1.17796e-05 12.2007 1.96781e-07 10.0534V9.94662C-1.17796e-05 7.79928 -2.12636e-05 6.11646 0.176509 4.80345C0.357197 3.45951 0.734257 2.39902 1.56664 1.56664C2.39902 0.734257 3.45951 0.357197 4.80345 0.176509C6.11646 -2.12636e-05 7.79928 -1.17796e-05 9.94663 1.96781e-07ZM4.98937 1.55941C3.80016 1.7193 3.08321 2.02339 2.5533 2.5533C2.02339 3.08321 1.7193 3.80016 1.55941 4.98937C1.39683 6.19866 1.39535 7.7877 1.39535 10C1.39535 12.2123 1.39683 13.8013 1.55941 15.0106C1.7193 16.1998 2.02339 16.9168 2.5533 17.4467C3.08321 17.9766 3.80016 18.2807 4.98937 18.4406C6.19866 18.6032 7.7877 18.6047 10 18.6047C12.2123 18.6047 13.8013 18.6032 15.0106 18.4406C16.1998 18.2807 16.9168 17.9766 17.4467 17.4467C17.9766 16.9168 18.2807 16.1998 18.4406 15.0106C18.6032 13.8013 18.6047 12.2123 18.6047 10C18.6047 7.7877 18.6032 6.19866 18.4406 4.98937C18.2807 3.80016 17.9766 3.08321 17.4467 2.5533C16.9168 2.02339 16.1998 1.7193 15.0106 1.55941C13.8013 1.39683 12.2123 1.39535 10 1.39535C7.7877 1.39535 6.19866 1.39683 4.98937 1.55941ZM10.4369 6.71597C10.7094 6.44351 11.1511 6.44351 11.4236 6.71597L14.2143 9.50667C14.4867 9.77913 14.4867 10.2209 14.2143 10.4933L11.4236 13.284C11.1511 13.5565 10.7094 13.5565 10.4369 13.284C10.1644 13.0116 10.1644 12.5698 10.4369 12.2974L12.0366 10.6977H6.27907C5.89376 10.6977 5.5814 10.3853 5.5814 10C5.5814 9.61469 5.89376 9.30233 6.27907 9.30233H12.0366L10.4369 7.70263C10.1644 7.43017 10.1644 6.98843 10.4369 6.71597Z" fill="#EFEFEF"/>
|
|
2520
|
-
</svg
|
|
2520
|
+
</svg>`,Yn=L`
|
|
2521
2521
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2522
2522
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 5C20 2.23858 17.7614 0 15 0H5C2.23858 0 0 2.23858 0 5V15C0 17.7614 2.23858 20 5 20H15C17.7614 20 20 17.7614 20 15V5ZM12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="black"/>
|
|
2523
2523
|
</svg>
|
|
2524
|
-
|
|
2524
|
+
`,$n=L`
|
|
2525
2525
|
<svg width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2526
2526
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 5C20 2.23858 17.7614 0 15 0H5C2.23858 0 0 2.23858 0 5V15C0 17.7614 2.23858 20 5 20H15C17.7614 20 20 17.7614 20 15V5ZM12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="black"/>
|
|
2527
2527
|
</svg>
|
|
@@ -3246,7 +3246,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
3246
3246
|
${In}
|
|
3247
3247
|
${Nn}
|
|
3248
3248
|
${En}
|
|
3249
|
-
`,hr([le({attribute:!0})],fr.prototype,"isMinimized",void 0),hr([le()],fr.prototype,"mobileStyles",void 0),hr([le({type:Boolean})],fr.prototype,"isFirstMount",void 0),hr([le({attribute:!1})],fr.prototype,"autoOpenChatWidget",void 0),hr([le()],fr.prototype,"phoneNumber",void 0),hr([le({attribute:!0})],fr.prototype,"buildingName",void 0),hr([le({attribute:!0})],fr.prototype,"chatId",void 0),hr([le({attribute:!0})],fr.prototype,"orgLegalName",void 0),hr([le({attribute:!0})],fr.prototype,"chatCallUsHeader",void 0),hr([le({attribute:!1})],fr.prototype,"buildingId",void 0),hr([le({attribute:!0})],fr.prototype,"buildingSlug",void 0),hr([le({attribute:!0})],fr.prototype,"orgSlug",void 0),hr([le({attribute:!0})],fr.prototype,"sgtUrl",void 0),hr([le({attribute:!0})],fr.prototype,"designConcept",void 0),hr([le({attribute:!0})],fr.prototype,"featureFlagShowDropdown",void 0),hr([le({attribute:!1})],fr.prototype,"leadSources",void 0),hr([le({attribute:!0})],fr.prototype,"currentLeadSource",void 0),hr([le({attribute:!0})],fr.prototype,"escortedToursLink",void 0),hr([le({attribute:!0})],fr.prototype,"virtualToursLink",void 0),hr([le({type:Boolean})],fr.prototype,"hasChatEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasChatEnabledMobile",void 0),hr([le({type:Boolean})],fr.prototype,"hasEmailEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasEmailEnabledMobile",void 0),hr([le({type:Boolean})],fr.prototype,"hasCallUsEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasCallUsEnabledMobile",void 0),hr([le({type:Boolean})],fr.prototype,"hasTextUsEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasTextUsEnabledMobile",void 0),hr([le({type:Boolean})],fr.prototype,"hasSSTEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasSSTEnabledMobile",void 0),hr([le({attribute:!1})],fr.prototype,"tourTypeOptions",void 0),hr([le({attribute:!0})],fr.prototype,"hasDynamicSchedulingEnabled",void 0),hr([le({attribute:!0})],fr.prototype,"onExitChat",void 0),hr([le({attribute:!1})],fr.prototype,"hasHideMobileFeatures",void 0),hr([le({type:Number})],fr.prototype,"right",void 0),hr([le({type:Number})],fr.prototype,"bottom",void 0),hr([le({type:Number})],fr.prototype,"top",void 0),hr([le({type:Number})],fr.prototype,"left",void 0),hr([le({attribute:!0})],fr.prototype,"showTourNextToChat",void 0),hr([le({attribute:!1})],fr.prototype,"onChatTapped",void 0),hr([le({attribute:!0})],fr.prototype,"onClickMinimize",void 0),hr([le({attribute:!0})],fr.prototype,"overrideRentgrata",void 0),hr([le({attribute:!1})],fr.prototype,"launcherStyles",void 0),hr([le({attribute:!0})],fr.prototype,"brandColor",void 0),hr([le({attribute:!0})],fr.prototype,"backgroundColor",void 0),hr([le({attribute:!0})],fr.prototype,"leadSourceClient",void 0),hr([ue()],fr.prototype,"isEmailWindowOpen",void 0),hr([ue()],fr.prototype,"isCallUsWindowOpen",void 0),hr([ue()],fr.prototype,"isSSTWindowOpen",void 0),hr([ue()],fr.prototype,"isTextUsWindowOpen",void 0),hr([ue()],fr.prototype,"isMobileFeaturesExpanded",void 0),fr=hr([ae("meetelise-launcher")],fr);const mr=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",fr)};var gr=i(3379),vr=i.n(gr),yr=i(7795),br=i.n(yr),wr=i(569),Sr=i.n(wr),Tr=i(3565),xr=i.n(Tr),Ar=i(9216),Cr=i.n(Ar),Or=i(4589),Ir=i.n(Or),Nr=i(3631),Er={};async function Rr(e,i){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${i}/lead-sources`);if(n.data){if("7e352741-1120-4ccf-9929-5dc99193a908"===e){const e=["Zillow","Apartments.com","Google PPC","Google Maps","Apple Maps","Social Media","Print Marketing"];return n.data.filter((t=>e.includes(t)))}return _r(n.data,i)}return[]}catch(e){return[]}}Er.styleTagTransform=Ir(),Er.setAttributes=xr(),Er.insert=Sr().bind(null,"head"),Er.domAPI=br(),Er.insertStyleElement=Cr(),vr()(Nr.Z,Er),Nr.Z&&Nr.Z.locals&&Nr.Z.locals;const _r=(e,t)=>{let i=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":i=["Forthea - PPC","HotPads","Forthea","Locator","Website-apartmentguide.com","Forthea - organic search","Tdc employee","University newspaper","Nashville apartment locators","Forthea - paid social","Apartment list","Off campus partners","Waze ads","Athletic event","Website-apartment guide"];break;case"d4160560-0f79-11ee-8438-fba837bf3a46":i=["Forthea - PPC","Rentgrata","Website-ApartmentFinder.com","Word of Mouth","Texas A&M A-Frame on Campus","Rent.com","Website-craigslist","Apartment List","Website-apartments.com","Forthea - paid social","Forthea - organic search","Website-apartmentguide.com","Forthea","Uhomes","Phone book","Property - website"];break;default:i=[]}return e.sort(),e.filter((e=>{const t=e.toLowerCase();return!i.map((e=>e.toLowerCase())).includes(t)}))};var Pr,Mr=i(9594),Fr=i.n(Mr),Dr=new Uint8Array(16);function kr(){if(!Pr&&!(Pr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pr(Dr)}const Ur=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Lr=function(e){return"string"==typeof e&&Ur.test(e)};for(var Br=[],qr=0;qr<256;++qr)Br.push((qr+256).toString(16).substr(1));const Jr=function(e,t,i){var n=(e=e||{}).random||(e.rng||kr)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Br[e[t+0]]+Br[e[t+1]]+Br[e[t+2]]+Br[e[t+3]]+"-"+Br[e[t+4]]+Br[e[t+5]]+"-"+Br[e[t+6]]+Br[e[t+7]]+"-"+Br[e[t+8]]+Br[e[t+9]]+"-"+Br[e[t+10]]+Br[e[t+11]]+Br[e[t+12]]+Br[e[t+13]]+Br[e[t+14]]+Br[e[t+15]]).toLowerCase();if(!Lr(i))throw TypeError("Stringified UUID is invalid");return i}(n)},jr=e=>localStorage.removeItem("com.elise.webchat.slug="+e),Hr=(e,t,i)=>{const n=yi(new Date),r=i||`lead_${Jr()}_${e}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:r,timestamp:n,initiatedChat:t})),{leadId:r,timestamp:Ci(n),buildingSlug:e,initiatedChat:t}},Gr=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const i=JSON.parse(t),n={leadId:i.leadId,timestamp:new Date(i.timestamp),buildingSlug:i.buildingSlug,initiatedChat:i.initiatedChat};if(zr(e,n))return n}catch(e){console.warn("Error getting chat storage key")}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},zr=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if(ui(t.timestamp,e))return!1}}catch(e){console.warn("Error checking chat storage key validity")}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp||pi(t.timestamp,24))};var Wr;!function(e){e.noReply="no-reply",e.text="text",e.media="media"}(Wr||(Wr={}));const Vr=e=>e.type===Kr.text,Qr=e=>e.type===Kr.media;var Kr;!function(e){e.text="text",e.media="media"}(Kr||(Kr={}));const Xr=class{constructor(e,t,i,n=null,r,o=null,a=Lo.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.building=null,this.eliseResponseTimeout=null,this.widgetType=Lo.Default,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t,i;const n={channel:e.channel,message:e.message,publisher:e.publisher,subscription:e.subscription,timetoken:+e.timetoken};this.rawPubnubMessages=[...this.rawPubnubMessages,n],this.markEveryPreviousNoReplyMessageDone(this.rawPubnubMessages),this.rawPubnubMessages=this.rawPubnubMessages.filter((e=>e.message.messageType!==Wr.noReply)),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages);const r="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:r}),!r&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=r,"ai_message"===e.message.customType&&this.simpleChatMessages.some((e=>e.type===Kr.text&&e.message.includes("confirmed for your tour")))&&en("scheduledTourEvent",{tourDetails:e.message,buildingId:null===(i=this.building)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.checkAndHandleGTMForLeadEmail(e)}},this.isLoadingMessages=!1,this.isFirstChatMessageSent=!1,this.checkAndHandleGTMForLeadEmail=e=>{var t;try{if("lead_message"!==e.message.customType)return;if(!(e=>{try{return/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/.test(e)}catch(e){return console.warn("Error checking if message contains email",e),!1}})(e.message.text))return;en("leadProvidedEmail",{buildingId:null===(t=this.building)||void 0===t?void 0:t.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}catch(e){return}},this.markEveryPreviousNoReplyMessageDone=e=>{var t,i;for(let n=e.length-1;n>=0;n--){const r=null===(t=e[n])||void 0===t?void 0:t.message,o=n>0&&(null===(i=e[n-1])||void 0===i?void 0:i.message);(null==r?void 0:r.messageType)===Wr.noReply&&o&&(o.is_done=!0)}},this.checkMessageChunkValid=e=>{try{return!!e.message&&!!e.message.text&&e.message.text.length>0&&!!e.message.customType}catch(e){return!1}},this.handleChatListeners=()=>{if(this.pubnub&&this.channel)try{this.pubnub.subscribe({channels:[this.channel]}),this.pubnub.addListener(this.listenerParams)}catch(e){this.building&&un({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this.handleDisconnect=()=>{this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.removeChatListeners()},this.removeChatListeners=()=>{this.pubnub&&this.channel&&(this.pubnub.unsubscribe({channels:[this.channel]}),this.pubnub.removeListener(this.listenerParams))},this.sendMessage=async e=>{if(e){if(!this.pubnub){const e=Hr(this.buildingSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken((async()=>{var t,i,n,r,o;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout((()=>{console.error("Elise AI did not respond in time..."),this.building&&un({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}),9e4),0===this.simpleChatMessages.length&&(null===(t=this.leadSourceClient)||void 0===t||t.checkAndHandleForLogLeadSource({webchatAction:"chat",stateId:null})),this.widgetType===Lo.Utilities?await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),orgSlug:this.orgSlug}}):await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",buildingId:null===(i=this.building)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,userId:null===(n=this.building)||void 0===n?void 0:n.userId,leadSource:this.leadSource,widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState()}}),this.isFirstChatMessageSent||(en("firstChatMessageSent",{message:e,buildingId:null===(r=this.building)||void 0===r?void 0:r.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),en("chatMessageSent",{message:e,buildingId:null===(o=this.building)||void 0===o?void 0:o.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))})),!1===this.isLoadingMessages&&(this.isLoadingMessages=!0)}},this.isLeadMessage=e=>e.publisher.includes("lead_")&&"lead_message"===e.message.customType,this.removeDuplicatedRawPubnubMessages=e=>{const t=new Set;return e.filter((e=>{if("lead_message"===e.message.customType||!e.message.stream_id||!e.message.order)return!0;const i=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(i)?(un({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:ln.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(i),!0)}))},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],i={};return this.removeDuplicatedRawPubnubMessages(e).forEach((e=>{var n;"media"===e.message.messageType?t.push({timestamp:e.timetoken,media:null!==(n=e.message.media)&&void 0!==n?n:[],isLeadMessage:this.isLeadMessage(e),type:Kr.media}):!e.message.stream_id||e.message.is_done&&0===e.message.order?t.push({timestamp:e.timetoken,message:e.message.text,isLeadMessage:this.isLeadMessage(e),chunks:[{text:e.message.text,order:0,isDone:!0}],type:Kr.text}):i[e.message.stream_id]?i[e.message.stream_id].push(e):i[e.message.stream_id]=[e]})),Object.keys(i).forEach((e=>{const n=i[e],r=this.getConsecutiveChunks(n.sort(((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)}))),o=r.map((e=>e.message.text)).join(""),a=r[0],s={timestamp:a.timetoken,message:o,isLeadMessage:this.isLeadMessage(a),chunks:r.map((e=>{var t,i;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(i=e.message.is_done)&&void 0!==i&&i}})),type:Kr.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(r),t.push(s)})),t.sort(((e,t)=>e.timestamp-t.timestamp)),t},this.getConsecutiveChunks=e=>{var t,i;const n=e.sort(((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)})),r=[];let o=null!==(t=n[0].message.order)&&void 0!==t?t:0;for(const e of n){if((null!==(i=e.message.order)&&void 0!==i?i:-1)!==o)break;r.push(e),o++}return r},this.isMessageStillStreamingChunks=e=>{const t=e.find((e=>e.message.is_done));return!t||e.length===t.message.order},this.buildingSlug=e,this.building=t,this.orgSlug=i,this.leadSource=n,this.leadUserId=r,this.channel=`webchat_${r}`,this.leadSourceClient=o,this.widgetType=a}addChatListener(e){this.chatListener=e}async initializePubnub(e){if(!e.leadId)return;this.leadUserId=e.leadId;const t=await this.fetchToken(this.leadUserId,this.channel);return t?(this.pubnub=new(Fr())({publishKey:t.keys.publish_key,subscribeKey:t.keys.subscribe_key,userId:this.leadUserId,authKey:t.auth.result.token,origin:"meetelise.pubnubapi.com"}),this.withAuthToken((()=>new Promise((()=>this.handleChatListeners())))),await this.withAuthToken((()=>this.getChannelHistory())),this.pubnub):void 0}async fetchToken(e,i){try{return(await t().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${i}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.building&&un({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return null}async fetchChannelExists(e){try{return(await t().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.building&&un({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return!1}async withAuthToken(t){try{await t()}catch(i){if(i instanceof e.AxiosError&&i&&i.response&&403===i.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const e=await this.fetchToken(this.leadUserId,this.channel);if(!e)return;this.pubnub.setAuthKey(e.auth.result.token),await t()}catch(e){this.building&&un({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}}async getChannelHistory(e=1500){var t;try{let i=[],n=null;const r=100;for(let t=0;t<e;t+=r){const o=await new Promise(((i,o)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(r,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=n?n:void 0},((e,t)=>{e.error?o(e):i(t)}))})),a=o.channels[this.channel];if(!a)break;if(a.sort(((e,t)=>+e.timetoken-+t.timetoken)),!a||0===a.length)break;if(this.channel&&0!==Object.keys(o.channels).length){const e=o.channels[this.channel],t=[];e.forEach((e=>{e.uuid&&t.push({channel:e.channel,message:e.message,publisher:e.uuid,subscription:e.channel,timetoken:+e.timetoken})})),this.markEveryPreviousNoReplyMessageDone(t),i=i.concat(t.filter((e=>e.message.messageType!==Wr.noReply)))}if(n=a[0].timetoken,i.length>=e||a.length<r)break}this.rawPubnubMessages=i.slice(0,e),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:!1})}catch(e){this.building&&un({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:ln.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}shouldCreateAsDevState(){return location.href.startsWith("https://app.meetelise.com/settings/widgets")}},$r=(e,t,i)=>{const n=`tel:${e}`,r=`sms:${e}`,o=`whatsapp://send?phone=${e}}`,a=`facetime:${e}`,s=`facetime-audio:${e}`,l=/\(\d{3}\)\s\d{3}-\d{4}/g,u=/(tel|sms):\(\d{3}\)\s\d{3}-\d{4}/g,d=/whatsapp:\/\/send\?phone=\d+/g,c=/(facetime|facetime-audio):\d+/g,p=document.body.getElementsByTagName("*");let h=!1;const f=e.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let m=!1,g=!1;for(let e=0;e<p.length;e++)if(p[e].nodeType===Node.ELEMENT_NODE&&(1===p[e].childNodes.length&&p[e].childNodes[0].nodeType==Node.TEXT_NODE&&(p[e].innerHTML=p[e].innerHTML.replace(l,f),h=!0,m||(m=!0)),p[e].hasAttribute("href"))){const t=p[e].getAttribute("href");if(!t)continue;let i="",l=u;t.startsWith("sms:")?i=r:t.startsWith("whatsapp:")?(i=o,l=d):t.startsWith("facetime:")?(i=a,l=c):t.startsWith("facetime-audio:")?(i=s,l=c):i=n;const h=t.replace(l,i);p[e].setAttribute("href",h),g||(g=!0)}m&&un({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:f,website:window.location.href},logType:ln.info,buildingSlug:i,orgSlug:t}),g&&un({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:f,website:window.location.href},logType:ln.info,buildingSlug:i,orgSlug:t}),h||un({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:ln.warn,buildingSlug:i,orgSlug:t})};var Yr=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Zr=class extends re{constructor(){super(...arguments),this.onClick=()=>{},this.brandColor=Me,this.toExpand=!1}render(){return U`
|
|
3249
|
+
`,hr([le({attribute:!0})],fr.prototype,"isMinimized",void 0),hr([le()],fr.prototype,"mobileStyles",void 0),hr([le({type:Boolean})],fr.prototype,"isFirstMount",void 0),hr([le({attribute:!1})],fr.prototype,"autoOpenChatWidget",void 0),hr([le()],fr.prototype,"phoneNumber",void 0),hr([le({attribute:!0})],fr.prototype,"buildingName",void 0),hr([le({attribute:!0})],fr.prototype,"chatId",void 0),hr([le({attribute:!0})],fr.prototype,"orgLegalName",void 0),hr([le({attribute:!0})],fr.prototype,"chatCallUsHeader",void 0),hr([le({attribute:!1})],fr.prototype,"buildingId",void 0),hr([le({attribute:!0})],fr.prototype,"buildingSlug",void 0),hr([le({attribute:!0})],fr.prototype,"orgSlug",void 0),hr([le({attribute:!0})],fr.prototype,"sgtUrl",void 0),hr([le({attribute:!0})],fr.prototype,"designConcept",void 0),hr([le({attribute:!0})],fr.prototype,"featureFlagShowDropdown",void 0),hr([le({attribute:!1})],fr.prototype,"leadSources",void 0),hr([le({attribute:!0})],fr.prototype,"currentLeadSource",void 0),hr([le({attribute:!0})],fr.prototype,"escortedToursLink",void 0),hr([le({attribute:!0})],fr.prototype,"virtualToursLink",void 0),hr([le({type:Boolean})],fr.prototype,"hasChatEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasChatEnabledMobile",void 0),hr([le({type:Boolean})],fr.prototype,"hasEmailEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasEmailEnabledMobile",void 0),hr([le({type:Boolean})],fr.prototype,"hasCallUsEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasCallUsEnabledMobile",void 0),hr([le({type:Boolean})],fr.prototype,"hasTextUsEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasTextUsEnabledMobile",void 0),hr([le({type:Boolean})],fr.prototype,"hasSSTEnabledDesktop",void 0),hr([le({type:Boolean})],fr.prototype,"hasSSTEnabledMobile",void 0),hr([le({attribute:!1})],fr.prototype,"tourTypeOptions",void 0),hr([le({attribute:!0})],fr.prototype,"hasDynamicSchedulingEnabled",void 0),hr([le({attribute:!0})],fr.prototype,"onExitChat",void 0),hr([le({attribute:!1})],fr.prototype,"hasHideMobileFeatures",void 0),hr([le({type:Number})],fr.prototype,"right",void 0),hr([le({type:Number})],fr.prototype,"bottom",void 0),hr([le({type:Number})],fr.prototype,"top",void 0),hr([le({type:Number})],fr.prototype,"left",void 0),hr([le({attribute:!0})],fr.prototype,"showTourNextToChat",void 0),hr([le({attribute:!1})],fr.prototype,"onChatTapped",void 0),hr([le({attribute:!0})],fr.prototype,"onClickMinimize",void 0),hr([le({attribute:!0})],fr.prototype,"overrideRentgrata",void 0),hr([le({attribute:!1})],fr.prototype,"launcherStyles",void 0),hr([le({attribute:!0})],fr.prototype,"brandColor",void 0),hr([le({attribute:!0})],fr.prototype,"backgroundColor",void 0),hr([le({attribute:!0})],fr.prototype,"leadSourceClient",void 0),hr([ue()],fr.prototype,"isEmailWindowOpen",void 0),hr([ue()],fr.prototype,"isCallUsWindowOpen",void 0),hr([ue()],fr.prototype,"isSSTWindowOpen",void 0),hr([ue()],fr.prototype,"isTextUsWindowOpen",void 0),hr([ue()],fr.prototype,"isMobileFeaturesExpanded",void 0),fr=hr([ae("meetelise-launcher")],fr);const mr=()=>{window.customElements.get("meetelise-launcher")||window.customElements.define("meetelise-launcher",fr)};var gr=i(3379),vr=i.n(gr),yr=i(7795),br=i.n(yr),wr=i(569),Sr=i.n(wr),Tr=i(3565),xr=i.n(Tr),Ar=i(9216),Cr=i.n(Ar),Or=i(4589),Ir=i.n(Or),Nr=i(3631),Er={};async function Rr(e,i){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${i}/lead-sources`);if(n.data){if("7e352741-1120-4ccf-9929-5dc99193a908"===e){const e=["Zillow","Apartments.com","Google PPC","Google Maps","Apple Maps","Social Media","Print Marketing"];return n.data.filter((t=>e.includes(t)))}return _r(n.data,i)}return[]}catch(e){return[]}}Er.styleTagTransform=Ir(),Er.setAttributes=xr(),Er.insert=Sr().bind(null,"head"),Er.domAPI=br(),Er.insertStyleElement=Cr(),vr()(Nr.Z,Er),Nr.Z&&Nr.Z.locals&&Nr.Z.locals;const _r=(e,t)=>{let i=[];switch(t){case"d41619ec-0f79-11ee-8439-93855926ad58":i=["Forthea - PPC","HotPads","Forthea","Locator","Website-apartmentguide.com","Forthea - organic search","Tdc employee","University newspaper","Nashville apartment locators","Forthea - paid social","Apartment list","Off campus partners","Waze ads","Athletic event","Website-apartment guide"];break;case"d4160560-0f79-11ee-8438-fba837bf3a46":i=["Forthea - PPC","Rentgrata","Website-ApartmentFinder.com","Word of Mouth","Texas A&M A-Frame on Campus","Rent.com","Website-craigslist","Apartment List","Website-apartments.com","Forthea - paid social","Forthea - organic search","Website-apartmentguide.com","Forthea","Uhomes","Phone book","Property - website"];break;default:i=[]}return e.sort(),e.filter((e=>{const t=e.toLowerCase();return!i.map((e=>e.toLowerCase())).includes(t)}))};var Pr,Mr=i(9594),Fr=i.n(Mr),Dr=new Uint8Array(16);function kr(){if(!Pr&&!(Pr="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Pr(Dr)}const Ur=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,Lr=function(e){return"string"==typeof e&&Ur.test(e)};for(var Br=[],qr=0;qr<256;++qr)Br.push((qr+256).toString(16).substr(1));const Jr=function(e,t,i){var n=(e=e||{}).random||(e.rng||kr)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){i=i||0;for(var r=0;r<16;++r)t[i+r]=n[r];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Br[e[t+0]]+Br[e[t+1]]+Br[e[t+2]]+Br[e[t+3]]+"-"+Br[e[t+4]]+Br[e[t+5]]+"-"+Br[e[t+6]]+Br[e[t+7]]+"-"+Br[e[t+8]]+Br[e[t+9]]+"-"+Br[e[t+10]]+Br[e[t+11]]+Br[e[t+12]]+Br[e[t+13]]+Br[e[t+14]]+Br[e[t+15]]).toLowerCase();if(!Lr(i))throw TypeError("Stringified UUID is invalid");return i}(n)},jr=e=>localStorage.removeItem("com.elise.webchat.slug="+e),Hr=(e,t,i)=>{const n=yi(new Date),r=i||`lead_${Jr()}_${e}`;return localStorage.setItem("com.elise.webchat.slug="+e,JSON.stringify({buildingSlug:e,leadId:r,timestamp:n,initiatedChat:t})),{leadId:r,timestamp:Ci(n),buildingSlug:e,initiatedChat:t}},Gr=e=>{const t=localStorage.getItem("com.elise.webchat.slug="+e);if(t)try{const i=JSON.parse(t),n={leadId:i.leadId,timestamp:new Date(i.timestamp),buildingSlug:i.buildingSlug,initiatedChat:i.initiatedChat};if(zr(e,n))return n}catch(e){console.warn("Error getting chat storage key")}return{leadId:null,timestamp:null,buildingSlug:null,initiatedChat:!1}},zr=(e,t)=>{try{if(t.timestamp&&t.initiatedChat){const e=new Date("2024-06-06T21:30:00Z");if(ui(t.timestamp,e))return!1}}catch(e){console.warn("Error checking chat storage key validity")}return!(t.buildingSlug!==e||!t.leadId||!t.timestamp||pi(t.timestamp,24))};var Wr;!function(e){e.noReply="no-reply",e.text="text",e.media="media"}(Wr||(Wr={}));const Vr=e=>e.type===Kr.text,Qr=e=>e.type===Kr.media;var Kr;!function(e){e.text="text",e.media="media"}(Kr||(Kr={}));const Xr=class{constructor(e,t,i,n=null,r,o=null,a=Lo.Default){this.apiHost="https://app.meetelise.com",this.leadSourceClient=null,this.building=null,this.eliseResponseTimeout=null,this.isWaitingForStreamingMessages=!1,this.widgetType=Lo.Default,this.pubnub=null,this.leadUserId="",this.channel="",this.leadSource=null,this.isCurrentlyStreamingMessage=!1,this.chatListener=null,this.rawPubnubMessages=[],this.simpleChatMessages=[],this.listenerParams={message:e=>{var t,i;const n={channel:e.channel,message:e.message,publisher:e.publisher,subscription:e.subscription,timetoken:+e.timetoken};this.rawPubnubMessages=[...this.rawPubnubMessages,n],this.markEveryPreviousNoReplyMessageDone(this.rawPubnubMessages),this.rawPubnubMessages=this.rawPubnubMessages.filter((e=>e.message.messageType!==Wr.noReply)),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),this.checkAndHandleDelayStreamingMessages();const r="eliseai"!==e.publisher&&"elise_health_ai"!==e.publisher;null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:r}),!r&&this.eliseResponseTimeout&&clearTimeout(this.eliseResponseTimeout),this.isLoadingMessages=r,"ai_message"===e.message.customType&&this.simpleChatMessages.some((e=>e.type===Kr.text&&e.message.includes("confirmed for your tour")))&&en("scheduledTourEvent",{tourDetails:e.message,buildingId:null===(i=this.building)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.checkAndHandleGTMForLeadEmail(e)}},this.isLoadingMessages=!1,this.isFirstChatMessageSent=!1,this.streamingMessageTimeout=null,this.checkAndHandleDelayStreamingMessages=({delayToFetchHistoryInMs:e=1e4}={})=>{this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null);const t=this.simpleChatMessages.some((e=>{if(!Vr(e))return!1;const t=e.chunks.find((e=>e.isDone));return!t||e.chunks.length===t.order}));t&&(this.streamingMessageTimeout=setTimeout((()=>{un({logTitle:"PUBNUB_WARN_DELAYED_STREAMING_MESSAGES",logData:{channel:this.channel},logType:ln.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),console.warn(`PUBNUB_WARN_DELAYED_STREAMING_MESSAGES: ${e}`),this.getChannelHistory()}),e))},this.checkAndHandleGTMForLeadEmail=e=>{var t;try{if("lead_message"!==e.message.customType)return;if(!(e=>{try{return/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,7}\b/.test(e)}catch(e){return console.warn("Error checking if message contains email",e),!1}})(e.message.text))return;en("leadProvidedEmail",{buildingId:null===(t=this.building)||void 0===t?void 0:t.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel})}catch(e){return}},this.markEveryPreviousNoReplyMessageDone=e=>{var t,i;for(let n=e.length-1;n>=0;n--){const r=null===(t=e[n])||void 0===t?void 0:t.message,o=n>0&&(null===(i=e[n-1])||void 0===i?void 0:i.message);(null==r?void 0:r.messageType)===Wr.noReply&&o&&(o.is_done=!0)}},this.checkMessageChunkValid=e=>{try{return!!e.message&&!!e.message.text&&e.message.text.length>0&&!!e.message.customType}catch(e){return!1}},this.handleChatListeners=()=>{if(this.pubnub&&this.channel)try{this.pubnub.subscribe({channels:[this.channel]}),this.pubnub.addListener(this.listenerParams)}catch(e){this.building&&un({logTitle:"PUBNUB_ERROR_ADDING_LISTENER",logData:{error:e,channel:this.channel,leadUserId:this.leadUserId,website:location.href},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}},this.handleDisconnect=()=>{this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.streamingMessageTimeout&&(clearTimeout(this.streamingMessageTimeout),this.streamingMessageTimeout=null),this.removeChatListeners()},this.removeChatListeners=()=>{this.pubnub&&this.channel&&(this.pubnub.unsubscribe({channels:[this.channel]}),this.pubnub.removeListener(this.listenerParams))},this.sendMessage=async e=>{if(e){if(!this.pubnub){const e=Hr(this.buildingSlug,!0,this.leadUserId);if(!await this.initializePubnub(e))return}await this.withAuthToken((async()=>{var t,i,n,r,o;this.pubnub&&this.channel&&(this.eliseResponseTimeout&&(clearTimeout(this.eliseResponseTimeout),this.eliseResponseTimeout=null),this.eliseResponseTimeout=setTimeout((()=>{console.error("Elise AI did not respond in time..."),this.building&&un({logTitle:"PUBNUB_ERROR_ELISEAI_MESSAGE_TIMEOUT",logData:{channel:this.channel,leadUserId:this.leadUserId,message:e},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}),9e4),0===this.simpleChatMessages.length&&(null===(t=this.leadSourceClient)||void 0===t||t.checkAndHandleForLogLeadSource({webchatAction:"chat",stateId:null})),this.widgetType===Lo.Utilities?await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState(),orgSlug:this.orgSlug}}):await this.pubnub.publish({channel:this.channel,message:{text:e,customType:"lead_message",buildingId:null===(i=this.building)||void 0===i?void 0:i.id,buildingSlug:this.buildingSlug,userId:null===(n=this.building)||void 0===n?void 0:n.userId,leadSource:this.leadSource,widgetType:this.widgetType,isDevState:this.shouldCreateAsDevState()}}),this.isFirstChatMessageSent||(en("firstChatMessageSent",{message:e,buildingId:null===(r=this.building)||void 0===r?void 0:r.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}),this.isFirstChatMessageSent=!0),en("chatMessageSent",{message:e,buildingId:null===(o=this.building)||void 0===o?void 0:o.id,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug,leadUserId:this.leadUserId,channel:this.channel}))})),!1===this.isLoadingMessages&&(this.isLoadingMessages=!0)}},this.isLeadMessage=e=>e.publisher.includes("lead_")&&"lead_message"===e.message.customType,this.removeDuplicatedRawPubnubMessages=e=>{const t=new Set;return e.filter((e=>{if("lead_message"===e.message.customType||!e.message.stream_id||!e.message.order)return!0;const i=`${e.message.stream_id}-${e.message.order}-${e.message.messageType}`;return t.has(i)?(un({logTitle:"PUBNUB_WARN_DUPLICATE_MESSAGE",logData:{message:e,channel:this.channel},logType:ln.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug}),!1):(t.add(i),!0)}))},this.translatePubnubMessagesIntoSimpleChatMessages=e=>{const t=[],i={};return this.removeDuplicatedRawPubnubMessages(e).forEach((e=>{var n;"media"===e.message.messageType?t.push({timestamp:e.timetoken,media:null!==(n=e.message.media)&&void 0!==n?n:[],isLeadMessage:this.isLeadMessage(e),type:Kr.media}):!e.message.stream_id||e.message.is_done&&0===e.message.order?t.push({timestamp:e.timetoken,message:e.message.text,isLeadMessage:this.isLeadMessage(e),chunks:[{text:e.message.text,order:0,isDone:!0}],type:Kr.text}):i[e.message.stream_id]?i[e.message.stream_id].push(e):i[e.message.stream_id]=[e]})),Object.keys(i).forEach((e=>{const n=i[e],r=this.getConsecutiveChunks(n.sort(((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)}))),o=r.map((e=>e.message.text)).join(""),a=r[0],s={timestamp:a.timetoken,message:o,isLeadMessage:this.isLeadMessage(a),chunks:r.map((e=>{var t,i;return{text:e.message.text,order:null!==(t=e.message.order)&&void 0!==t?t:0,isDone:null!==(i=e.message.is_done)&&void 0!==i&&i}})),type:Kr.text};this.isCurrentlyStreamingMessage=this.isMessageStillStreamingChunks(r),t.push(s)})),t.sort(((e,t)=>e.timestamp-t.timestamp)),t},this.getConsecutiveChunks=e=>{var t,i;const n=e.sort(((e,t)=>{var i,n;return(null!==(i=e.message.order)&&void 0!==i?i:0)-(null!==(n=t.message.order)&&void 0!==n?n:0)})),r=[];let o=null!==(t=n[0].message.order)&&void 0!==t?t:0;for(const e of n){if((null!==(i=e.message.order)&&void 0!==i?i:-1)!==o)break;r.push(e),o++}return r},this.isMessageStillStreamingChunks=e=>{const t=e.find((e=>e.message.is_done));return!t||e.length===t.message.order},this.buildingSlug=e,this.building=t,this.orgSlug=i,this.leadSource=n,this.leadUserId=r,this.channel=`webchat_${r}`,this.leadSourceClient=o,this.widgetType=a}addChatListener(e){this.chatListener=e}async initializePubnub(e){if(!e.leadId)return;this.leadUserId=e.leadId;const t=await this.fetchToken(this.leadUserId,this.channel);return t?(this.pubnub=new(Fr())({publishKey:t.keys.publish_key,subscribeKey:t.keys.subscribe_key,userId:this.leadUserId,authKey:t.auth.result.token,origin:"meetelise.pubnubapi.com"}),this.withAuthToken((()=>new Promise((()=>this.handleChatListeners())))),await this.withAuthToken((()=>this.getChannelHistory())),this.pubnub):void 0}async fetchToken(e,i){try{return(await t().get(`${this.apiHost}/platformApi/webchat/pn/request-token?user_id=${e}&channel=${i}&${"healthcare"===this.widgetType?"industry=health_care":""}`)).data}catch(e){this.building&&un({logTitle:"PUBNUB_ERROR_FETCHING_TOKEN",logData:{error:e},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return null}async fetchChannelExists(e){try{return(await t().get(`${this.apiHost}/platformApi/webchat/check-channel-exists?channel_name=${e}`)).data}catch(e){this.building&&un({logTitle:"PUBNUB_ERROR_FETCHING_CHANNEL_EXISTS",logData:{error:e},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}return!1}async withAuthToken(t){try{await t()}catch(i){if(i instanceof e.AxiosError&&i&&i.response&&403===i.response.status)try{if(!this.pubnub||!this.leadUserId||!this.channel)return;const e=await this.fetchToken(this.leadUserId,this.channel);if(!e)return;this.pubnub.setAuthKey(e.auth.result.token),await t()}catch(e){this.building&&un({logTitle:"PUBNUB_ERROR_REFETCHING_TOKEN",logData:{retryError:e},logType:ln.error,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}}async getChannelHistory(e=1500){var t;try{let i=[],n=null;const r=100;for(let t=0;t<e;t+=r){const o=await new Promise(((i,o)=>{if(!this.pubnub||!this.channel)return[];const a=Math.min(r,e-t);this.pubnub.fetchMessages({channels:[this.channel],count:a,start:null!=n?n:void 0},((e,t)=>{e.error?o(e):i(t)}))})),a=o.channels[this.channel];if(!a)break;if(a.sort(((e,t)=>+e.timetoken-+t.timetoken)),!a||0===a.length)break;if(this.channel&&0!==Object.keys(o.channels).length){const e=o.channels[this.channel],t=[];e.forEach((e=>{e.uuid&&t.push({channel:e.channel,message:e.message,publisher:e.uuid,subscription:e.channel,timetoken:+e.timetoken})})),this.markEveryPreviousNoReplyMessageDone(t),i=i.concat(t.filter((e=>e.message.messageType!==Wr.noReply)))}if(n=a[0].timetoken,i.length>=e||a.length<r)break}this.rawPubnubMessages=i.slice(0,e),this.simpleChatMessages=this.translatePubnubMessagesIntoSimpleChatMessages(this.rawPubnubMessages),null===(t=this.chatListener)||void 0===t||t.call(this,{messages:this.simpleChatMessages,isLoading:!1})}catch(e){this.building&&un({logTitle:"PUBNUB_WARN_FETCHING_HISTORY",logData:{error:e},logType:ln.warn,buildingSlug:this.buildingSlug,orgSlug:this.orgSlug})}}shouldCreateAsDevState(){return location.href.startsWith("https://app.meetelise.com/settings/widgets")}},Yr=(e,t,i)=>{const n=`tel:${e}`,r=`sms:${e}`,o=`whatsapp://send?phone=${e}}`,a=`facetime:${e}`,s=`facetime-audio:${e}`,l=/\(\d{3}\)\s\d{3}-\d{4}/g,u=/(tel|sms):\(\d{3}\)\s\d{3}-\d{4}/g,d=/whatsapp:\/\/send\?phone=\d+/g,c=/(facetime|facetime-audio):\d+/g,p=document.body.getElementsByTagName("*");let h=!1;const f=e.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3");let m=!1,g=!1;for(let e=0;e<p.length;e++)if(p[e].nodeType===Node.ELEMENT_NODE&&(1===p[e].childNodes.length&&p[e].childNodes[0].nodeType==Node.TEXT_NODE&&(p[e].innerHTML=p[e].innerHTML.replace(l,f),h=!0,m||(m=!0)),p[e].hasAttribute("href"))){const t=p[e].getAttribute("href");if(!t)continue;let i="",l=u;t.startsWith("sms:")?i=r:t.startsWith("whatsapp:")?(i=o,l=d):t.startsWith("facetime:")?(i=a,l=c):t.startsWith("facetime-audio:")?(i=s,l=c):i=n;const h=t.replace(l,i);p[e].setAttribute("href",h),g||(g=!0)}m&&un({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"text-insertion",newPhoneNumber:f,website:window.location.href},logType:ln.info,buildingSlug:i,orgSlug:t}),g&&un({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"href-insertion",newPhoneNumber:f,website:window.location.href},logType:ln.info,buildingSlug:i,orgSlug:t}),h||un({logTitle:"DNI_WEBSITE_INSERTION",logData:{type:"no-phone-number-found",website:window.location.href},logType:ln.warn,buildingSlug:i,orgSlug:t})};var $r=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Zr=class extends re{constructor(){super(...arguments),this.onClick=()=>{},this.brandColor=Me,this.toExpand=!1}render(){return U`
|
|
3250
3250
|
<div
|
|
3251
3251
|
class=${this.toExpand?"button-container mini":"button-container"}
|
|
3252
3252
|
@click=${this.onClick}
|
|
@@ -3307,7 +3307,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
3307
3307
|
cursor: pointer;
|
|
3308
3308
|
filter: brightness(90%);
|
|
3309
3309
|
}
|
|
3310
|
-
`]
|
|
3310
|
+
`],$r([le({attribute:!0})],Zr.prototype,"onClick",void 0),$r([le({attribute:!0})],Zr.prototype,"brandColor",void 0),$r([le({attribute:!0})],Zr.prototype,"toExpand",void 0),Zr=$r([ae("minimize-expand-button")],Zr);const eo=l`
|
|
3311
3311
|
#healthchat-container {
|
|
3312
3312
|
position: fixed;
|
|
3313
3313
|
|
|
@@ -4160,7 +4160,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
4160
4160
|
class=${fe({"health-bttn-allow-access":ci()})}
|
|
4161
4161
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
4162
4162
|
>
|
|
4163
|
-
${
|
|
4163
|
+
${$n}
|
|
4164
4164
|
</button>
|
|
4165
4165
|
</div>
|
|
4166
4166
|
</div>
|
|
@@ -4273,7 +4273,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
4273
4273
|
class=${fe({"health-bttn-allow-access":ci()})}
|
|
4274
4274
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
4275
4275
|
>
|
|
4276
|
-
${ci()
|
|
4276
|
+
${ci()?$n:Yn}
|
|
4277
4277
|
</button>
|
|
4278
4278
|
</div>
|
|
4279
4279
|
</div>
|
|
@@ -4369,7 +4369,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
4369
4369
|
@click=${()=>this.sendMessage(this.messageInput.value)}
|
|
4370
4370
|
?disabled=${null===(o=this.myPubnub)||void 0===o?void 0:o.isCurrentlyStreamingMessage}
|
|
4371
4371
|
>
|
|
4372
|
-
${ke(this.building.orgId,this.building.id)&&this.brandColor!==Me
|
|
4372
|
+
${ke(this.building.orgId,this.building.id)&&this.brandColor!==Me?Yn:Xn}
|
|
4373
4373
|
</button>
|
|
4374
4374
|
</div>
|
|
4375
4375
|
</div>
|
|
@@ -4487,7 +4487,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
4487
4487
|
I agree
|
|
4488
4488
|
</button>
|
|
4489
4489
|
</div>
|
|
4490
|
-
`;var To=i(308),xo=i.n(To),Ao=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Co=class extends re{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.brandColor=null,this.backgroundColor=null,this.chatId="",this.analytics=null,this.launcher=null,this.building=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=Xi.always,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!1,this.displayPubnubChat=!1,this.myPubnub=null,this.LeadSourceClient=null,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.overrideRentgrata=!1,this.widgetType=Lo.Default,this.onWidgetLoaded=xo(),this.enabledChatWidgets={callDesktop:!0,callMobile:!0,chatMobile:!0,chatDesktop:!0,emailDesktop:!0,emailMobile:!0,textDesktop:!0,textMobile:!0,sstDesktop:!0,sstMobile:!0},this.webchatConfigHasAutoOpenChat=!1,this.requiresConsent=!1,this.hideMobileFeatures=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.launcherRef=xe(),this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{if(!this.buildingSlug||!this.orgSlug)return;const e=await Sn(this.orgSlug,this.buildingSlug);if(Math.random()<.2)try{(async(e,i)=>{const n=window.rentgrata;if(!n)return;const r=n.Widget;if(!r)return;const o=r.config;if(!o)return;const a=o.widgetKey;a&&await t().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=i?i:""}})})(this.buildingSlug,this.orgSlug)}catch(e){console.warn("Error updating rentgrata token",e)}e.conversationMaintenanceMode?console.warn("MeetElise Chat is in maintenance mode. Chat icon will not appear."):1===e.active?(this.building=e,await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)&&(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.updateAlreadyAutoOpenedTimestamp()),this.isLoading=!1,"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0)):console.warn("MeetElise has detected this building is NOT active. Chat icon will not appear.")},this.setBuildingDerivedInfo=async()=>{var e,i,n,r,o,a,s,l,u,d,c,p,h,f,m,g,v,y,b,w,S,T,x,A,C,O,I,N,E,R,_,P,M,F,D;const k=this.building;if(!k)return;k&&this.orgSlug&&Io(this.orgSlug,this.buildingSlug,null!==(i=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.leadSource)&&void 0!==i?i:null);const[U,L,B,q,J,j]=await Promise.all([On(this.buildingSlug),Rr(this.orgSlug,this.buildingSlug),$i(this.buildingSlug),Yi(this.buildingSlug),Cn(k.id),Zi(this.buildingSlug)]);this.building&&(this.building.phoneNumber=Ne(k.phoneNumber)),this.designConcept=null!==(n=null==U?void 0:U.abTestType)&&void 0!==n?n:"",this.leadSources=L,this.featureFlagShowDropdown=B;const H=k.textWithUsPhoneNumber?k.textWithUsPhoneNumber:await(async e=>{try{const i="https://app.meetelise.com",n=await t().get(`${i}/platformApi/webchat/${e}/phone-number`);if(n.data)return n.data}catch(t){return un({logType:ln.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t}}),null}return null})(this.buildingSlug);var G,z;this.enabledChatWidgets={callDesktop:!(null===(r=null==J?void 0:J.config.shouldShowPhone)||void 0===r||!r)||null!==(o=null==J?void 0:J.config.shouldShowPhoneDesktop)&&void 0!==o&&o,callMobile:!(null===(a=null==J?void 0:J.config.shouldShowPhone)||void 0===a||!a)||null!==(s=null==J?void 0:J.config.shouldShowPhoneMobile)&&void 0!==s&&s,chatDesktop:!(null===(l=null==J?void 0:J.config.shouldShowChat)||void 0===l||!l)||null!==(u=null==J?void 0:J.config.shouldShowChatDesktop)&&void 0!==u&&u,chatMobile:!(null===(d=null==J?void 0:J.config.shouldShowChat)||void 0===d||!d)||null!==(c=null==J?void 0:J.config.shouldShowChatMobile)&&void 0!==c&&c,emailDesktop:!(null===(p=null==J?void 0:J.config.shouldShowEmail)||void 0===p||!p)||null!==(h=null==J?void 0:J.config.shouldShowEmailDesktop)&&void 0!==h&&h,emailMobile:!(null===(f=null==J?void 0:J.config.shouldShowEmail)||void 0===f||!f)||null!==(m=null==J?void 0:J.config.shouldShowEmailMobile)&&void 0!==m&&m,textDesktop:(!(null===(g=null==J?void 0:J.config.shouldShowText)||void 0===g||!g)||null!==(v=null==J?void 0:J.config.shouldShowTextDesktop)&&void 0!==v&&v)&&!!H,textMobile:(!(null===(y=null==J?void 0:J.config.shouldShowText)||void 0===y||!y)||null!==(b=null==J?void 0:J.config.shouldShowTextMobile)&&void 0!==b&&b)&&!!H,sstDesktop:!(null===(w=null==J?void 0:J.config.shouldShowSst)||void 0===w||!w)||null!==(S=null==J?void 0:J.config.shouldShowSstDesktop)&&void 0!==S&&S,sstMobile:!(null===(T=null==J?void 0:J.config.shouldShowSst)||void 0===T||!T)||null!==(x=null==J?void 0:J.config.shouldShowSstMobile)&&void 0!==x&&x},this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile?(z=this.handleTourClicked,document.querySelectorAll("a").forEach((function(e){const t=e.getAttribute("href");t&&t.startsWith("https://app.meetelise.com/")&&e.addEventListener("click",(e=>{e.preventDefault(),z(e)}))})),((e,t,i)=>{if("be948f76-d8f9-11eb-b710-2bc5b16e7492"===t){const e=document.querySelector('a[href="/schedule-a-tour/"]');e&&e.addEventListener("click",(e=>{e.preventDefault(),i(e)}))}})(this.orgSlug,this.buildingSlug,this.handleTourClicked)):(null===(A=this.LeadSourceClient)||void 0===A?void 0:A.leadSource)&&(G=null!==(O=null===(C=this.LeadSourceClient)||void 0===C?void 0:C.leadSource)&&void 0!==O?O:null,document.querySelectorAll("a").forEach((function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const i=t.includes("?")?"&":"?";e.setAttribute("href",t+i+`eliseParsedLeadSource=${encodeURIComponent(G)}`)}}))),J&&J.config&&(this.brandColor=null!==(I=J.config.primaryColor)&&void 0!==I?I:null,this.backgroundColor=null!==(N=J.config.backgroundColor)&&void 0!==N?N:null,this.webchatConfigHasAutoOpenChat=J.config.autoOpenChat,this.requiresConsent=J.config.requiresConsent,this.hideMobileFeatures=J.config.hideMobileFeatures,this.privacyPolicyUrl=null!==(E=J.config.privacyPolicyUrl)&&void 0!==E?E:this.privacyPolicyUrl,J.config.displayStyle===xn.MINIMIZED&&(this.isMinimized=!0),J.config.displayStyle===xn.PILLS&&(this.designConcept=null),J.config.displayStyle===xn.EMOJI&&(this.designConcept=xn.EMOJI),this.onWidgetLoaded()),null===this.brandColor&&(this.brandColor=Me),null===this.backgroundColor&&(this.backgroundColor=Fe);const W=null!==(_=null===(R=this.building)||void 0===R?void 0:R.phoneNumber)&&void 0!==_?_:"";let V=null;q&&(V=await async function(e,i){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source?source=${i}`);return n.data?{number:Ne(n.data.number),isMatch:n.data.match,isPropertyWebsiteCatchall:n.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(M=null===(P=this.LeadSourceClient)||void 0===P?void 0:P.leadSource)&&void 0!==M?M:null),V&&!V.isMatch&&(V.number=W)),j&&(null==V?void 0:V.number)&&$r(V.number,this.orgSlug,this.buildingSlug);const Q=localStorage.getItem("eliseai_phone_number_devtest");Q&&(console.info("Using dev test phone number: ",Q),$r(Q,this.orgSlug,this.buildingSlug)),this.phoneNumberForSource=V||{number:W,isMatch:!1,isPropertyWebsiteCatchall:!0};const K=null!==(D=null===(F=this.LeadSourceClient)||void 0===F?void 0:F.leadSource)&&void 0!==D?D:null;K&&(this.leadSources.includes(K)||this.leadSources.push(K)),qi(k.id)},this.initializeChatVariables=async()=>{var e,i,n,r,o,a,s;if(!this.building)return;const l=Gr(this.buildingSlug),u=zr(this.buildingSlug,l)?l:Hr(this.buildingSlug,!1);if(!u.leadId)throw new Error("Lead ID is null");this.LeadSourceClient=new class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,i)=>{const n=this.getLeadSourceBodyIfValid(e);if(n&&!pi(n.timestamp,24*this.localStorageTTLDays))return{...n,timestamp:Ci(n.timestamp)};const r=dn();this.leadSourceInput={websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:r,referrer:document.referrer,parsedUtmSource:r?r.utm_source:null,campaignSources:Object.values(sn()).filter((e=>e))};const o={leadSource:t,leadId:i,buildingSlug:e,timestamp:yi(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(o)),{...o,timestamp:Ci(o.timestamp)}},this.getLeadSourceBodyIfValid=e=>{const t=localStorage.getItem("com.elise.webchat.leadsource.slug="+e);if(t)try{const i=JSON.parse(t);if(i.buildingSlug===e&&i.leadSource&&i.leadId&&i.timestamp&&!pi(Ci(i.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=i.leadSourceInput}catch(e){console.error("Error parsing leadSourceInput from localStorage")}return i}}catch(e){return null}return null}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:i,referrer:n,campaignSources:r}){try{return(await t().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,{query_params:i,building_slug:e,referrer:n,campaign_sources:r})).data}catch(e){return null}}async checkAndHandleForLogLeadSource({webchatAction:e,stateId:i}){var n,r,o,a,s,l,u;try{if(!this.chatId)return console.error("chatId is not set"),null;if(!this.orgSlug)return console.error("orgId is not set"),null;let d=null,c=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(d=e),c=null===(n=window.dataLayer.find((e=>{var t;return"gtagApiGet"==(null===(t=e.value)||void 0===t?void 0:t.event)})))||void 0===n?void 0:n.value}}catch(e){console.error("error getting cookie")}return await t().post(`${this.apiHost}/platformApi/webchat/log/lead-source`,{chat_id:this.chatId,webchat_action:e,state_id:i,building_id:this.buildingId,org_slug:this.orgSlug,building_slug:this.buildingSlug,website_origin:null===(r=this.leadSourceInput)||void 0===r?void 0:r.websiteOrigin,website_search:null===(o=this.leadSourceInput)||void 0===o?void 0:o.websiteSearch,query_parameters:null===(a=this.leadSourceInput)||void 0===a?void 0:a.queryParameters,referrer:null===(s=this.leadSourceInput)||void 0===s?void 0:s.referrer,parsed_utm_source:null===(l=this.leadSourceInput)||void 0===l?void 0:l.parsedUtmSource,campaign_sources:null===(u=this.leadSourceInput)||void 0===u?void 0:u.campaignSources,lead_source_output:this.leadSource,google_analytics_client_id:hn()(d)?null:d,extras:null!=c?c:null}),null}catch(e){return null}}async getCookieValue(e){try{const t=document.cookie.split(";");for(let i=0;i<t.length;i++){const n=t[i].trim();if(n.startsWith(e+"="))return n.substring((e+"=").length,-1===n.indexOf(";")?void 0:n.indexOf(";"))}return null}catch(e){console.error("error getting cookie value")}return null}async generateUserLeadSource({leadId:e,orgSlug:t,buildingSlug:i}){try{const n={queryParams:dn(),buildingSlug:i,referrer:document.referrer,campaignSources:sn()},r=i?this.getLeadSourceBodyIfValid(i):null;if(r)return this.leadSource=r.leadSource,this.leadSource;const o=await this.fetchCurrentParsedLeadSource(n);if(this.leadSource=o,this.buildingId=null,this.orgSlug=t,this.buildingSlug=i,i&&!o){const e=this.getLeadSourceBodyIfValid(i);if(e)return this.leadSource=e.leadSource,this.leadSource}return i&&o&&this.updateLeadSourceLocalStorage(i,o,e),o}catch(e){console.error(e)}return null}},this.myPubnub=new Xr(this.buildingSlug,this.building,this.orgSlug,null,u.leadId,this.LeadSourceClient,this.widgetType),this.LeadSourceClient.chatId=this.myPubnub.channel,await(null===(e=this.LeadSourceClient)||void 0===e?void 0:e.generateUserLeadSource({leadId:null!==(n=null===(i=this.myPubnub)||void 0===i?void 0:i.leadUserId)&&void 0!==n?n:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug})),"property-website"!==fn(this.orgSlug)?this.myPubnub.leadSource=null!==(o=null===(r=this.LeadSourceClient)||void 0===r?void 0:r.leadSource)&&void 0!==o?o:fn(this.orgSlug):this.myPubnub.leadSource=null!==(s=null===(a=this.LeadSourceClient)||void 0===a?void 0:a.leadSource)&&void 0!==s?s:null,u.initiatedChat&&await this.myPubnub.initializePubnub(l)},this.shouldAutoOpenChat=e=>{const t=sessionStorage.getItem("alreadyAutoOpenedTimestamp"),i=!t||!(t&&!xi(Ci(t)));return!!e&&!!i&&!ci()},this.updateAlreadyAutoOpenedTimestamp=()=>{sessionStorage.setItem("alreadyAutoOpenedTimestamp",yi(function(e,t){Be(2,arguments);var i=it(t);return nt(e,6e4*i)}(new Date,15)))},this.handleContactClicked=e=>{var t;this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,i;this.showTourNextToChat?null===(t=this.launcherRef.value)||void 0===t||t.onClickSSTOption(e):(this.hideLauncher?this.showTourNextToChat=!0:this.displayPubnubChat=!1,this.hideLauncher=!1,null===(i=this.launcherRef.value)||void 0===i||i.onClickSSTOption(e))},this.handleContactTabClicked=e=>{var t;this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickPhoneOption(e)},this.adjustPositionChatAdditionalActions=()=>{var e,t,i,n;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!r)return;const o=null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"),a=null==o?void 0:o.getBoundingClientRect();a&&(r.style.left=`${a.left}px`,r.style.top=`${a.bottom}px`)},this.handleKeydownTab=e=>{var t,i,n,r,o,a,s,l,u,d,c,p,h,f,m,g,v,y,b,w;if("Tab"===e.key){const S=this.displayPubnubChat?null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"):null!==(m=null!==(u=null===(l=null===(s=null===(a=null===(o=null===(r=this.shadowRoot)||void 0===r?void 0:r.getElementById("meetelise-launcher"))||void 0===o?void 0:o.shadowRoot)||void 0===a?void 0:a.getElementById("email-us-window"))||void 0===s?void 0:s.shadowRoot)||void 0===l?void 0:l.getElementById("email-us-form"))&&void 0!==u?u:null===(f=null===(h=null===(p=null===(c=null===(d=this.shadowRoot)||void 0===d?void 0:d.getElementById("meetelise-launcher"))||void 0===c?void 0:c.shadowRoot)||void 0===p?void 0:p.getElementById("tour-scheduler-window"))||void 0===h?void 0:h.shadowRoot)||void 0===f?void 0:f.getElementById("scheduler-container"))&&void 0!==m?m:null===(w=null===(b=null===(y=null===(v=null===(g=this.shadowRoot)||void 0===g?void 0:g.getElementById("meetelise-launcher"))||void 0===v?void 0:v.shadowRoot)||void 0===y?void 0:y.getElementById("call-us-window"))||void 0===b?void 0:b.shadowRoot)||void 0===w?void 0:w.getElementById("details-window");if(!S)return;e.preventDefault();const T=S.querySelectorAll("input, me-select, textarea, action-confirm-button, [tabindex]"),x=Array.from(T),A=x.findIndex((e=>e.matches(":focus")));x[(A+1)%x.length].focus()}},this.onClickMinimize=e=>{e.preventDefault(),e.stopPropagation(),this.isMinimized=!this.isMinimized,this.showTourNextToChat=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,localStorage.setItem("isChatOpen","true")},e.onExitChat=this.onExitChat)},this.onExitChat=()=>{this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,localStorage.setItem("isChatOpen","false")},this.renderChatAdditionalActions=(e,t)=>{const i=this.building&&ke(this.building.orgId,this.building.id)&&this.brandColor&&this.brandColor!==Me?De(this.brandColor,.6):"black";return U` <style>
|
|
4490
|
+
`;var To=i(308),xo=i.n(To),Ao=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let Co=class extends re{constructor(){super(...arguments),this.buildingSlug="",this.orgSlug="",this.launcherStyles={},this.mobileStyles={},this.isMinimized=!1,this.brandColor=null,this.backgroundColor=null,this.chatId="",this.analytics=null,this.launcher=null,this.building=null,this.designConcept=null,this.leadSources=null,this.currentLeadSource=null,this.featureFlagShowDropdown=Xi.always,this.phoneNumberForSource=null,this.hasMounted=!1,this.hideLauncher=!1,this.isLoading=!0,this.showTourNextToChat=!1,this.displayPubnubChat=!1,this.myPubnub=null,this.LeadSourceClient=null,this.right=void 0,this.bottom=void 0,this.top=void 0,this.left=void 0,this.overrideRentgrata=!1,this.widgetType=Lo.Default,this.onWidgetLoaded=xo(),this.enabledChatWidgets={callDesktop:!0,callMobile:!0,chatMobile:!0,chatDesktop:!0,emailDesktop:!0,emailMobile:!0,textDesktop:!0,textMobile:!0,sstDesktop:!0,sstMobile:!0},this.webchatConfigHasAutoOpenChat=!1,this.requiresConsent=!1,this.hideMobileFeatures=!1,this.privacyPolicyUrl="http://bit.ly/me_privacy_policy",this.launcherRef=xe(),this.firstUpdated=async()=>this.setupWebchat(),this.setupWebchat=async()=>{if(!this.buildingSlug||!this.orgSlug)return;const e=await Sn(this.orgSlug,this.buildingSlug);if(Math.random()<.2)try{(async(e,i)=>{const n=window.rentgrata;if(!n)return;const r=n.Widget;if(!r)return;const o=r.config;if(!o)return;const a=o.widgetKey;a&&await t().post(`https://app.meetelise.com/platformApi/webchat/rentgrata?token=${a}`,{},{headers:{"Content-Type":"application/json","building-slug":null!=e?e:"","org-slug":null!=i?i:""}})})(this.buildingSlug,this.orgSlug)}catch(e){console.warn("Error updating rentgrata token",e)}e.conversationMaintenanceMode?console.warn("MeetElise Chat is in maintenance mode. Chat icon will not appear."):1===e.active?(this.building=e,await this.initializeChatVariables(),await this.handleChatInitializeAnalytics(),await this.setBuildingDerivedInfo(),this.attachOnClickToLauncher(),this.shouldAutoOpenChat(this.webchatConfigHasAutoOpenChat)&&(this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,this.updateAlreadyAutoOpenedTimestamp()),this.isLoading=!1,"true"===localStorage.getItem("isChatOpen")&&(this.hideLauncher=!0,this.displayPubnubChat=!0)):console.warn("MeetElise has detected this building is NOT active. Chat icon will not appear.")},this.setBuildingDerivedInfo=async()=>{var e,i,n,r,o,a,s,l,u,d,c,p,h,f,m,g,v,y,b,w,S,T,x,A,C,O,I,N,E,R,_,P,M,F,D;const k=this.building;if(!k)return;k&&this.orgSlug&&Io(this.orgSlug,this.buildingSlug,null!==(i=null===(e=this.LeadSourceClient)||void 0===e?void 0:e.leadSource)&&void 0!==i?i:null);const[U,L,B,q,J,j]=await Promise.all([On(this.buildingSlug),Rr(this.orgSlug,this.buildingSlug),Yi(this.buildingSlug),$i(this.buildingSlug),Cn(k.id),Zi(this.buildingSlug)]);this.building&&(this.building.phoneNumber=Ne(k.phoneNumber)),this.designConcept=null!==(n=null==U?void 0:U.abTestType)&&void 0!==n?n:"",this.leadSources=L,this.featureFlagShowDropdown=B;const H=k.textWithUsPhoneNumber?k.textWithUsPhoneNumber:await(async e=>{try{const i="https://app.meetelise.com",n=await t().get(`${i}/platformApi/webchat/${e}/phone-number`);if(n.data)return n.data}catch(t){return un({logType:ln.error,buildingSlug:e,logTitle:"[ERROR_GETTING_PHONE_NUMBERS]",logData:{error:t}}),null}return null})(this.buildingSlug);var G,z;this.enabledChatWidgets={callDesktop:!(null===(r=null==J?void 0:J.config.shouldShowPhone)||void 0===r||!r)||null!==(o=null==J?void 0:J.config.shouldShowPhoneDesktop)&&void 0!==o&&o,callMobile:!(null===(a=null==J?void 0:J.config.shouldShowPhone)||void 0===a||!a)||null!==(s=null==J?void 0:J.config.shouldShowPhoneMobile)&&void 0!==s&&s,chatDesktop:!(null===(l=null==J?void 0:J.config.shouldShowChat)||void 0===l||!l)||null!==(u=null==J?void 0:J.config.shouldShowChatDesktop)&&void 0!==u&&u,chatMobile:!(null===(d=null==J?void 0:J.config.shouldShowChat)||void 0===d||!d)||null!==(c=null==J?void 0:J.config.shouldShowChatMobile)&&void 0!==c&&c,emailDesktop:!(null===(p=null==J?void 0:J.config.shouldShowEmail)||void 0===p||!p)||null!==(h=null==J?void 0:J.config.shouldShowEmailDesktop)&&void 0!==h&&h,emailMobile:!(null===(f=null==J?void 0:J.config.shouldShowEmail)||void 0===f||!f)||null!==(m=null==J?void 0:J.config.shouldShowEmailMobile)&&void 0!==m&&m,textDesktop:(!(null===(g=null==J?void 0:J.config.shouldShowText)||void 0===g||!g)||null!==(v=null==J?void 0:J.config.shouldShowTextDesktop)&&void 0!==v&&v)&&!!H,textMobile:(!(null===(y=null==J?void 0:J.config.shouldShowText)||void 0===y||!y)||null!==(b=null==J?void 0:J.config.shouldShowTextMobile)&&void 0!==b&&b)&&!!H,sstDesktop:!(null===(w=null==J?void 0:J.config.shouldShowSst)||void 0===w||!w)||null!==(S=null==J?void 0:J.config.shouldShowSstDesktop)&&void 0!==S&&S,sstMobile:!(null===(T=null==J?void 0:J.config.shouldShowSst)||void 0===T||!T)||null!==(x=null==J?void 0:J.config.shouldShowSstMobile)&&void 0!==x&&x},this.enabledChatWidgets.sstDesktop||this.enabledChatWidgets.sstMobile?(z=this.handleTourClicked,document.querySelectorAll("a").forEach((function(e){const t=e.getAttribute("href");t&&t.startsWith("https://app.meetelise.com/")&&e.addEventListener("click",(e=>{e.preventDefault(),z(e)}))})),((e,t,i)=>{if("be948f76-d8f9-11eb-b710-2bc5b16e7492"===t){const e=document.querySelector('a[href="/schedule-a-tour/"]');e&&e.addEventListener("click",(e=>{e.preventDefault(),i(e)}))}})(this.orgSlug,this.buildingSlug,this.handleTourClicked)):(null===(A=this.LeadSourceClient)||void 0===A?void 0:A.leadSource)&&(G=null!==(O=null===(C=this.LeadSourceClient)||void 0===C?void 0:C.leadSource)&&void 0!==O?O:null,document.querySelectorAll("a").forEach((function(e){const t=e.getAttribute("href");if(t&&t.startsWith("https://app.meetelise.com/")){const i=t.includes("?")?"&":"?";e.setAttribute("href",t+i+`eliseParsedLeadSource=${encodeURIComponent(G)}`)}}))),J&&J.config&&(this.brandColor=null!==(I=J.config.primaryColor)&&void 0!==I?I:null,this.backgroundColor=null!==(N=J.config.backgroundColor)&&void 0!==N?N:null,this.webchatConfigHasAutoOpenChat=J.config.autoOpenChat,this.requiresConsent=J.config.requiresConsent,this.hideMobileFeatures=J.config.hideMobileFeatures,this.privacyPolicyUrl=null!==(E=J.config.privacyPolicyUrl)&&void 0!==E?E:this.privacyPolicyUrl,J.config.displayStyle===xn.MINIMIZED&&(this.isMinimized=!0),J.config.displayStyle===xn.PILLS&&(this.designConcept=null),J.config.displayStyle===xn.EMOJI&&(this.designConcept=xn.EMOJI),this.onWidgetLoaded()),null===this.brandColor&&(this.brandColor=Me),null===this.backgroundColor&&(this.backgroundColor=Fe);const W=null!==(_=null===(R=this.building)||void 0===R?void 0:R.phoneNumber)&&void 0!==_?_:"";let V=null;q&&(V=await async function(e,i){try{const n=await t().get(`https://app.meetelise.com/platformApi/webchat/${e}/phone-number-by-source?source=${i}`);return n.data?{number:Ne(n.data.number),isMatch:n.data.match,isPropertyWebsiteCatchall:n.data.isPropertyWebsiteCatchall}:null}catch(e){return null}}(this.buildingSlug,null!==(M=null===(P=this.LeadSourceClient)||void 0===P?void 0:P.leadSource)&&void 0!==M?M:null),V&&!V.isMatch&&(V.number=W)),j&&(null==V?void 0:V.number)&&Yr(V.number,this.orgSlug,this.buildingSlug);const Q=localStorage.getItem("eliseai_phone_number_devtest");Q&&(console.info("Using dev test phone number: ",Q),Yr(Q,this.orgSlug,this.buildingSlug)),this.phoneNumberForSource=V||{number:W,isMatch:!1,isPropertyWebsiteCatchall:!0};const K=null!==(D=null===(F=this.LeadSourceClient)||void 0===F?void 0:F.leadSource)&&void 0!==D?D:null;K&&(this.leadSources.includes(K)||this.leadSources.push(K)),qi(k.id)},this.initializeChatVariables=async()=>{var e,i,n,r,o,a,s;if(!this.building)return;const l=Gr(this.buildingSlug),u=zr(this.buildingSlug,l)?l:Hr(this.buildingSlug,!1);if(!u.leadId)throw new Error("Lead ID is null");this.LeadSourceClient=new class{constructor(){this.chatId=null,this.apiHost="https://app.meetelise.com",this.leadSource=null,this.localStorageTTLDays=30,this.buildingId=null,this.orgSlug=null,this.buildingSlug=null,this.queryParameters=null,this.leadSourceInput=null,this.updateLeadSourceLocalStorage=(e,t,i)=>{const n=this.getLeadSourceBodyIfValid(e);if(n&&!pi(n.timestamp,24*this.localStorageTTLDays))return{...n,timestamp:Ci(n.timestamp)};const r=dn();this.leadSourceInput={websiteOrigin:window.location.origin,websiteSearch:window.location.search,queryParameters:r,referrer:document.referrer,parsedUtmSource:r?r.utm_source:null,campaignSources:Object.values(sn()).filter((e=>e))};const o={leadSource:t,leadId:i,buildingSlug:e,timestamp:yi(new Date),leadSourceInput:this.leadSourceInput};return localStorage.setItem("com.elise.webchat.leadsource.slug="+e,JSON.stringify(o)),{...o,timestamp:Ci(o.timestamp)}},this.getLeadSourceBodyIfValid=e=>{const t=localStorage.getItem("com.elise.webchat.leadsource.slug="+e);if(t)try{const i=JSON.parse(t);if(i.buildingSlug===e&&i.leadSource&&i.leadId&&i.timestamp&&!pi(Ci(i.timestamp),24*this.localStorageTTLDays)){try{this.leadSourceInput=i.leadSourceInput}catch(e){console.error("Error parsing leadSourceInput from localStorage")}return i}}catch(e){return null}return null}}async fetchCurrentParsedLeadSource({buildingSlug:e,queryParams:i,referrer:n,campaignSources:r}){try{return(await t().post(`${this.apiHost}/platformApi/webchat/current-parsed-lead-source`,{query_params:i,building_slug:e,referrer:n,campaign_sources:r})).data}catch(e){return null}}async checkAndHandleForLogLeadSource({webchatAction:e,stateId:i}){var n,r,o,a,s,l,u;try{if(!this.chatId)return console.error("chatId is not set"),null;if(!this.orgSlug)return console.error("orgId is not set"),null;let d=null,c=null;try{if("f1ba5a20-d207-4e5a-879e-65199e7d0a53"===this.orgSlug){const e=await this.getCookieValue("_ga");e&&(d=e),c=null===(n=window.dataLayer.find((e=>{var t;return"gtagApiGet"==(null===(t=e.value)||void 0===t?void 0:t.event)})))||void 0===n?void 0:n.value}}catch(e){console.error("error getting cookie")}return await t().post(`${this.apiHost}/platformApi/webchat/log/lead-source`,{chat_id:this.chatId,webchat_action:e,state_id:i,building_id:this.buildingId,org_slug:this.orgSlug,building_slug:this.buildingSlug,website_origin:null===(r=this.leadSourceInput)||void 0===r?void 0:r.websiteOrigin,website_search:null===(o=this.leadSourceInput)||void 0===o?void 0:o.websiteSearch,query_parameters:null===(a=this.leadSourceInput)||void 0===a?void 0:a.queryParameters,referrer:null===(s=this.leadSourceInput)||void 0===s?void 0:s.referrer,parsed_utm_source:null===(l=this.leadSourceInput)||void 0===l?void 0:l.parsedUtmSource,campaign_sources:null===(u=this.leadSourceInput)||void 0===u?void 0:u.campaignSources,lead_source_output:this.leadSource,google_analytics_client_id:hn()(d)?null:d,extras:null!=c?c:null}),null}catch(e){return null}}async getCookieValue(e){try{const t=document.cookie.split(";");for(let i=0;i<t.length;i++){const n=t[i].trim();if(n.startsWith(e+"="))return n.substring((e+"=").length,-1===n.indexOf(";")?void 0:n.indexOf(";"))}return null}catch(e){console.error("error getting cookie value")}return null}async generateUserLeadSource({leadId:e,orgSlug:t,buildingSlug:i}){try{const n={queryParams:dn(),buildingSlug:i,referrer:document.referrer,campaignSources:sn()},r=i?this.getLeadSourceBodyIfValid(i):null;if(r)return this.leadSource=r.leadSource,this.leadSource;const o=await this.fetchCurrentParsedLeadSource(n);if(this.leadSource=o,this.buildingId=null,this.orgSlug=t,this.buildingSlug=i,i&&!o){const e=this.getLeadSourceBodyIfValid(i);if(e)return this.leadSource=e.leadSource,this.leadSource}return i&&o&&this.updateLeadSourceLocalStorage(i,o,e),o}catch(e){console.error(e)}return null}},this.myPubnub=new Xr(this.buildingSlug,this.building,this.orgSlug,null,u.leadId,this.LeadSourceClient,this.widgetType),this.LeadSourceClient.chatId=this.myPubnub.channel,await(null===(e=this.LeadSourceClient)||void 0===e?void 0:e.generateUserLeadSource({leadId:null!==(n=null===(i=this.myPubnub)||void 0===i?void 0:i.leadUserId)&&void 0!==n?n:"",orgSlug:this.orgSlug,buildingSlug:this.buildingSlug})),"property-website"!==fn(this.orgSlug)?this.myPubnub.leadSource=null!==(o=null===(r=this.LeadSourceClient)||void 0===r?void 0:r.leadSource)&&void 0!==o?o:fn(this.orgSlug):this.myPubnub.leadSource=null!==(s=null===(a=this.LeadSourceClient)||void 0===a?void 0:a.leadSource)&&void 0!==s?s:null,u.initiatedChat&&await this.myPubnub.initializePubnub(l)},this.shouldAutoOpenChat=e=>{const t=sessionStorage.getItem("alreadyAutoOpenedTimestamp"),i=!t||!(t&&!xi(Ci(t)));return!!e&&!!i&&!ci()},this.updateAlreadyAutoOpenedTimestamp=()=>{sessionStorage.setItem("alreadyAutoOpenedTimestamp",yi(function(e,t){Be(2,arguments);var i=it(t);return nt(e,6e4*i)}(new Date,15)))},this.handleContactClicked=e=>{var t;this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickEmailOption(e)},this.handleTourClicked=e=>{var t,i;this.showTourNextToChat?null===(t=this.launcherRef.value)||void 0===t||t.onClickSSTOption(e):(this.hideLauncher?this.showTourNextToChat=!0:this.displayPubnubChat=!1,this.hideLauncher=!1,null===(i=this.launcherRef.value)||void 0===i||i.onClickSSTOption(e))},this.handleContactTabClicked=e=>{var t;this.displayPubnubChat=!1,this.showTourNextToChat=!1,this.hideLauncher=!1,null===(t=this.launcherRef.value)||void 0===t||t.onClickPhoneOption(e)},this.adjustPositionChatAdditionalActions=()=>{var e,t,i,n;const r=null===(e=this.shadowRoot)||void 0===e?void 0:e.getElementById("chatAdditionalActionsPubnub");if(!r)return;const o=null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"),a=null==o?void 0:o.getBoundingClientRect();a&&(r.style.left=`${a.left}px`,r.style.top=`${a.bottom}px`)},this.handleKeydownTab=e=>{var t,i,n,r,o,a,s,l,u,d,c,p,h,f,m,g,v,y,b,w;if("Tab"===e.key){const S=this.displayPubnubChat?null===(n=null===(i=null===(t=this.shadowRoot)||void 0===t?void 0:t.getElementById("pubnub-chat"))||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.getElementById("pubnub-chat-container"):null!==(m=null!==(u=null===(l=null===(s=null===(a=null===(o=null===(r=this.shadowRoot)||void 0===r?void 0:r.getElementById("meetelise-launcher"))||void 0===o?void 0:o.shadowRoot)||void 0===a?void 0:a.getElementById("email-us-window"))||void 0===s?void 0:s.shadowRoot)||void 0===l?void 0:l.getElementById("email-us-form"))&&void 0!==u?u:null===(f=null===(h=null===(p=null===(c=null===(d=this.shadowRoot)||void 0===d?void 0:d.getElementById("meetelise-launcher"))||void 0===c?void 0:c.shadowRoot)||void 0===p?void 0:p.getElementById("tour-scheduler-window"))||void 0===h?void 0:h.shadowRoot)||void 0===f?void 0:f.getElementById("scheduler-container"))&&void 0!==m?m:null===(w=null===(b=null===(y=null===(v=null===(g=this.shadowRoot)||void 0===g?void 0:g.getElementById("meetelise-launcher"))||void 0===v?void 0:v.shadowRoot)||void 0===y?void 0:y.getElementById("call-us-window"))||void 0===b?void 0:b.shadowRoot)||void 0===w?void 0:w.getElementById("details-window");if(!S)return;e.preventDefault();const T=S.querySelectorAll("input, me-select, textarea, action-confirm-button, [tabindex]"),x=Array.from(T),A=x.findIndex((e=>e.matches(":focus")));x[(A+1)%x.length].focus()}},this.onClickMinimize=e=>{e.preventDefault(),e.stopPropagation(),this.isMinimized=!this.isMinimized,this.showTourNextToChat=!1},this.attachOnClickToLauncher=()=>{const e=this.launcherRef.value;e&&(e.onChatTapped=async()=>{this.displayPubnubChat=!0,this.hideLauncher=!0,this.hasMounted=!0,localStorage.setItem("isChatOpen","true")},e.onExitChat=this.onExitChat)},this.onExitChat=()=>{this.displayPubnubChat=!1,this.hideLauncher=!1,this.showTourNextToChat=!1,localStorage.setItem("isChatOpen","false")},this.renderChatAdditionalActions=(e,t)=>{const i=this.building&&ke(this.building.orgId,this.building.id)&&this.brandColor&&this.brandColor!==Me?De(this.brandColor,.6):"black";return U` <style>
|
|
4491
4491
|
#{id}::after {
|
|
4492
4492
|
border-right-color: ${i} !important;
|
|
4493
4493
|
}
|
|
@@ -4653,7 +4653,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
4653
4653
|
position: fixed;
|
|
4654
4654
|
bottom: 0;
|
|
4655
4655
|
}
|
|
4656
|
-
`,Ao([le({type:String})],Co.prototype,"buildingSlug",void 0),Ao([le({type:String})],Co.prototype,"orgSlug",void 0),Ao([le({type:Object})],Co.prototype,"launcherStyles",void 0),Ao([le()],Co.prototype,"mobileStyles",void 0),Ao([le({type:Boolean})],Co.prototype,"isMinimized",void 0),Ao([le({type:String})],Co.prototype,"brandColor",void 0),Ao([le({type:String})],Co.prototype,"backgroundColor",void 0),Ao([ue()],Co.prototype,"chatId",void 0),Ao([ue()],Co.prototype,"analytics",void 0),Ao([ue()],Co.prototype,"launcher",void 0),Ao([ue()],Co.prototype,"building",void 0),Ao([ue()],Co.prototype,"designConcept",void 0),Ao([ue()],Co.prototype,"leadSources",void 0),Ao([ue()],Co.prototype,"currentLeadSource",void 0),Ao([ue()],Co.prototype,"featureFlagShowDropdown",void 0),Ao([ue()],Co.prototype,"phoneNumberForSource",void 0),Ao([ue()],Co.prototype,"hasMounted",void 0),Ao([ue()],Co.prototype,"hideLauncher",void 0),Ao([ue()],Co.prototype,"isLoading",void 0),Ao([ue()],Co.prototype,"showTourNextToChat",void 0),Ao([ue()],Co.prototype,"displayPubnubChat",void 0),Ao([ue()],Co.prototype,"myPubnub",void 0),Ao([ue()],Co.prototype,"LeadSourceClient",void 0),Ao([le({type:Number})],Co.prototype,"right",void 0),Ao([le({type:Number})],Co.prototype,"bottom",void 0),Ao([le({type:Number})],Co.prototype,"top",void 0),Ao([le({type:Number})],Co.prototype,"left",void 0),Ao([le({attribute:!0})],Co.prototype,"overrideRentgrata",void 0),Ao([le({attribute:!0})],Co.prototype,"widgetType",void 0),Ao([le()],Co.prototype,"onWidgetLoaded",void 0),Ao([ue()],Co.prototype,"enabledChatWidgets",void 0),Ao([ue()],Co.prototype,"webchatConfigHasAutoOpenChat",void 0),Ao([ue()],Co.prototype,"requiresConsent",void 0),Ao([ue()],Co.prototype,"hideMobileFeatures",void 0),Ao([ue()],Co.prototype,"privacyPolicyUrl",void 0),Co=Ao([ae("me-chat")],Co);const Oo=e=>{for(const t of e){const e=document.getElementById(t);if(e)return e}return null},Io=async(e,i,n)=>{var r;if(!i||!e)return;const o=await async function(e){if(!e)return!1;try{return(await t().get(Ki(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-override-contact-us-form",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(i);if(!o)return;const a=Oo(["myContactForm","contactus","fpa-myContactForm"]);let s;if(!(a&&a instanceof HTMLFormElement)){const t=document.querySelector("form");return void(window.location.pathname.toLowerCase().includes("contactus")&&No(i,e,"Could not find form",t?{id:t.id}:void 0))}try{if(a.parentElement&&"scheduleTourForm"===a.parentElement.id)return No(i,e,"Form is apart of schedule tour form!")}catch(e){console.error("error",e)}for(let e=0;e<a.elements.length;e++){const t=a.elements[e];if("button"===t.tagName.toLowerCase()&&"fakebutton"===t.getAttribute("data-selenium-id")){s=t;break}if("fpa-contact-submit"===t.getAttribute("id")){s=t;break}}if(!s)return No(i,e,"Could not find submit button");const l=()=>({firstName:Oo(["firstname","txtName","fpa-firstname"]),lastName:Oo(["lastname","txtName2","fpa-lastname"]),email:Oo(["email","txtEmail","fpa-email"]),phone:Oo(["phonenumber","txtPhone","fpa-phonenumber"]),message:Oo(["message","txtComments","fpa-email"])});if(Object.values(l()).some((e=>null===e))){const t=Object.entries(l()).filter((([,e])=>null===e)).map((([e])=>e));return No(i,e,"Missing the following form elements: "+t.join(", "))}const u=s.textContent,d=s.cloneNode(!0);null===(r=s.parentNode)||void 0===r||r.replaceChild(d,s),d.onclick=async function(t){if(Object.values(l()).forEach((e=>{"true"!==(null==e?void 0:e.getAttribute("aria-required"))||e.value||(e.className="form-control required is-invalid")})),!Object.values(l()).every((e=>null!==e&&!("true"===e.getAttribute("aria-required")&&!e.value)&&("email"!==e.id&&"phonenumber"!==e.id||"true"!==e.getAttribute("aria-invalid")))))return;t.preventDefault(),d.textContent="Processing request...",d.disabled=!0;const r={};Object.entries(l()).forEach((([e,t])=>r[e]=null==t?void 0:t.value));const o=await Sn(e,i);if(!o)return No(i,e,"Could not find building"),null;const s={email_address:r.email,first_name:r.firstName,last_name:r.lastName,phone_number:r.phone,first_message:r.message,building_id:o.id,is_external_form:!0,lead_sources:[...new Set(n?[n,fn(e)]:[fn(e)])]},c=JSON.stringify(s);fetch("https://app.meetelise.com/platformApi/state/create/contactMe",{method:"POST",headers:{"Content-Type":"application/json","building-slug":i,"org-slug":e},body:c}).then((e=>{if(!e.ok)throw new Error(`HTTP error ${e.status}`);return a&&a.reset(),Object.values(l()).forEach((e=>{e&&(e.disabled=!0)})),d.textContent="Submitted",d.disabled=!0,e.json()})).catch((()=>{d.textContent=u}))}},No=(e,t,i,n)=>{const r=JSON.stringify({orgSlug:t,buildingSlug:e,reason:i,url:window.location.href,formIdInfo:n});fetch("https://app.meetelise.com/platformApi/webchat/form-override-error",{method:"POST",headers:{"Content-Type":"application/json","building-slug":e,"org-slug":t},body:r})},Eo=l`
|
|
4656
|
+
`,Ao([le({type:String})],Co.prototype,"buildingSlug",void 0),Ao([le({type:String})],Co.prototype,"orgSlug",void 0),Ao([le({type:Object})],Co.prototype,"launcherStyles",void 0),Ao([le()],Co.prototype,"mobileStyles",void 0),Ao([le({type:Boolean})],Co.prototype,"isMinimized",void 0),Ao([le({type:String})],Co.prototype,"brandColor",void 0),Ao([le({type:String})],Co.prototype,"backgroundColor",void 0),Ao([ue()],Co.prototype,"chatId",void 0),Ao([ue()],Co.prototype,"analytics",void 0),Ao([ue()],Co.prototype,"launcher",void 0),Ao([ue()],Co.prototype,"building",void 0),Ao([ue()],Co.prototype,"designConcept",void 0),Ao([ue()],Co.prototype,"leadSources",void 0),Ao([ue()],Co.prototype,"currentLeadSource",void 0),Ao([ue()],Co.prototype,"featureFlagShowDropdown",void 0),Ao([ue()],Co.prototype,"phoneNumberForSource",void 0),Ao([ue()],Co.prototype,"hasMounted",void 0),Ao([ue()],Co.prototype,"hideLauncher",void 0),Ao([ue()],Co.prototype,"isLoading",void 0),Ao([ue()],Co.prototype,"showTourNextToChat",void 0),Ao([ue()],Co.prototype,"displayPubnubChat",void 0),Ao([ue()],Co.prototype,"myPubnub",void 0),Ao([ue()],Co.prototype,"LeadSourceClient",void 0),Ao([le({type:Number})],Co.prototype,"right",void 0),Ao([le({type:Number})],Co.prototype,"bottom",void 0),Ao([le({type:Number})],Co.prototype,"top",void 0),Ao([le({type:Number})],Co.prototype,"left",void 0),Ao([le({attribute:!0})],Co.prototype,"overrideRentgrata",void 0),Ao([le({attribute:!0})],Co.prototype,"widgetType",void 0),Ao([le()],Co.prototype,"onWidgetLoaded",void 0),Ao([ue()],Co.prototype,"enabledChatWidgets",void 0),Ao([ue()],Co.prototype,"webchatConfigHasAutoOpenChat",void 0),Ao([ue()],Co.prototype,"requiresConsent",void 0),Ao([ue()],Co.prototype,"hideMobileFeatures",void 0),Ao([ue()],Co.prototype,"privacyPolicyUrl",void 0),Co=Ao([ae("me-chat")],Co);const Oo=e=>{for(const t of e){const e=document.getElementById(t);if(e)return e}return null},Io=async(e,i,n)=>{var r;if(!i||!e)return;const o=await async function(e){if(!e)return!1;try{return(await t().get(Ki(e),{params:{building_slug:e,flag_type:"bool",feature_flag:"webchat-use-override-contact-us-form",default_str:null,default_bool:!1}})).data}catch(e){return!1}}(i);if(!o)return;const a=Oo(["myContactForm","contactus","fpa-myContactForm","contact-form"]);let s;if(!(a&&a instanceof HTMLFormElement)){const t=document.querySelector("form");return void(window.location.pathname.toLowerCase().includes("contactus")&&No(i,e,"Could not find form",t?{id:t.id}:void 0))}try{if(a.parentElement&&"scheduleTourForm"===a.parentElement.id)return No(i,e,"Form is apart of schedule tour form!")}catch(e){console.error("error",e)}for(let e=0;e<a.elements.length;e++){const t=a.elements[e];if("button"===t.tagName.toLowerCase()&&"fakebutton"===t.getAttribute("data-selenium-id")){s=t;break}if("fpa-contact-submit"===t.getAttribute("id")){s=t;break}if(t.classList.contains("form__field--submit")){s=t;break}}if(!s)return No(i,e,"Could not find submit button");const l=()=>({firstName:Oo(["firstname","txtName","fpa-firstname","Form_FirstName"]),lastName:Oo(["lastname","txtName2","fpa-lastname","Form_LastName"]),email:Oo(["email","txtEmail","fpa-email","Form_Email"]),phone:Oo(["phonenumber","txtPhone","fpa-phonenumber","Form_Phone"]),message:Oo(["message","txtComments","fpa-email","Form_Message"])});if(Object.values(l()).some((e=>null===e))){const t=Object.entries(l()).filter((([,e])=>null===e)).map((([e])=>e));return No(i,e,"Missing the following form elements: "+t.join(", "))}const u=s.textContent,d=s.cloneNode(!0);null===(r=s.parentNode)||void 0===r||r.replaceChild(d,s),d.onclick=async function(t){if(Object.values(l()).forEach((e=>{"true"!==(null==e?void 0:e.getAttribute("aria-required"))||e.value||(e.className="form-control required is-invalid")})),!Object.values(l()).every((e=>null!==e&&!("true"===e.getAttribute("aria-required")&&!e.value)&&("email"!==e.id&&"phonenumber"!==e.id||"true"!==e.getAttribute("aria-invalid")))))return;t.preventDefault(),d.textContent="Processing request...",d.disabled=!0;const r={};Object.entries(l()).forEach((([e,t])=>r[e]=null==t?void 0:t.value));const o=await Sn(e,i);if(!o)return No(i,e,"Could not find building"),null;const s={email_address:r.email,first_name:r.firstName,last_name:r.lastName,phone_number:r.phone,first_message:r.message,building_id:o.id,is_external_form:!0,lead_sources:[...new Set(n?[n,fn(e)]:[fn(e)])]},c=JSON.stringify(s);fetch("https://app.meetelise.com/platformApi/state/create/contactMe",{method:"POST",headers:{"Content-Type":"application/json","building-slug":i,"org-slug":e},body:c}).then((e=>{if(!e.ok)throw new Error(`HTTP error ${e.status}`);return a&&a.reset(),Object.values(l()).forEach((e=>{e&&(e.disabled=!0)})),d.textContent="Submitted",d.disabled=!0,e.json()})).catch((()=>{d.textContent=u}))}},No=(e,t,i,n)=>{const r=JSON.stringify({orgSlug:t,buildingSlug:e,reason:i,url:window.location.href,formIdInfo:n});fetch("https://app.meetelise.com/platformApi/webchat/form-override-error",{method:"POST",headers:{"Content-Type":"application/json","building-slug":e,"org-slug":t},body:r})},Eo=l`
|
|
4657
4657
|
.chat-launcher {
|
|
4658
4658
|
position: fixed;
|
|
4659
4659
|
}
|