/*! For license information please see 1.chunk.js.LICENSE.txt */
(window.odspNextWebpackJsonp=window.odspNextWebpackJsonp||[]).push([["1"],{"4229":function(e,t){!(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=53)})([function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return o}),n.d(t,"e",function(){return u}),n.d(t,"g",function(){return a}),n.d(t,"f",function(){return f}),n.d(t,"h",function(){return l});var r=(function(){function e(){}return e.Alt="alt",e.AriaLabel="aria-label",e.AriaSelected="aria-selected",e.AriaOrientation="aria-orientation",e.AriaExpanded="aria-expanded",e.AriaControls="aria-controls",e.AriaHasPopups="aria-haspopup",e.AriaModal="aria-modal",e.AriaLabelledBy="aria-labelledby",e.AriaDescribedBy="aria-describedby",e.Class="class",e.DataHtml2CanvasIgnore="data-html2canvas-ignore",e.Disabled="disabled",e.Fill="fill",e.For="for",e.Preview="preview",e.Form="form",e.Height="height",e.HRef="href",e.Id="id",e.MaxLength="maxlength",e.Name="name",e.Placeholder="placeholder",e.Points="points",e.Rel="rel",e.Role="role",e.Source="src",e.Stroke="stroke",e.TabIndex="tabindex",e.Target="target",e.Transform="transform",e.Type="type",e.Value="value",e.ViewBox="viewBox",e.Width="width",e.xlinkHref="xlink:href",e.X="x",e.Y="y",e})(),i=(function(){function e(){}return e.BlankWindow="_blank",e.Button="button",e.Dialog="dialog",e.Tab="tab",e.TabList="tablist",e.TabPanel="tabpanel",e.Checkbox="checkbox",e.Checked="checked",e.False="false",e.Zero="0",e.Polite="polite",e.Radio="radio",e.Submit="submit",e.ScreenshotPreview="ScreenshotPreview",e.Text="text",e.TextAreaMaxLength="1000",e.True="true",e.Unchecked="unchecked",e.NoReferrer="noreferrer",e.AriaOrientationValueVertical="vertical",e})(),s=(function(){function e(){}return e.AriaLiveTemplate="obf-AriaLiveTemplate",e.CheckBox="obf-CheckBox",e.FontTitle="obf-FontTitle",e.CloseButton="obf-CloseButton",e.FontSubtitle="obf-FontSubtitle",e.FontText="obf-FontText",e.FontSubText="obf-FontSubText",e.FontSubSubText="obf-FontSubSubText",e.Hidden="obf-Hidden",e.Link="obf-Link",e.MarginLeft60px="obf-MarginLeft60px",e.MarginLeft180px="obf-MarginLeft180px",e.NarrowLayout="obf-NarrowLayout",e.PrivacyStatementLinkDiv="obf-PrivacyStatementLinkDiv",e.Rtl="obf-Rtl",e.Spinner="obf-Spinner",e.SpinnerCircle="obf-SpinnerCircle",e.SubmitButton="obf-SubmitButton",e.CancelButton="obf-CancelButton",e.TextInput="obf-TextInput",e.Visible="obf-Visible",e.Rating="obf-Rating",e.RatingGraphic="obf-RatingGraphic",e.RatingGraphicFilled="obf-RatingGraphic-Filled",e.ChoiceGroup="obf-ChoiceGroup",e.ChoiceGroupIcon="obf-ChoiceGroupIcon",e.OverallAnchor="obf-OverallAnchor",e.OverallAnchorActive="obf-OverallAnchorActive",e.OverallImage="obf-OverallImage",e.OverallText="obf-OverallText",e.SingleLayout="obf-SingleLayout",e.ShowRightBorder="obf-ShowRightBorder",e.SlideLeft="obf-slideLeft",e.TextAlignLeft="obf-TextAlignLeft",e.FormContainer="obf-FormContainer",e.FormWideContainer="obf-FormWideContainer",e.ThanksPanelTitle="obf-ThanksPanelTitle",e.ThanksPanelMessage="obf-ThanksPanelMessage",e.FormQuestionMiddleText="obf-FormQuestionMiddleText",e.FormMiddleText="obf-FormMiddleText",e.FormCategoriesDropdown="obf-FormCategoriesDropdown",e.FormComment="obf-FormComment",e.FormRatingContainer="obf-FormRatingContainer",e.FormRatingLabel="obf-FormRatingLabel",e.FormRating="obf-FormRating",e.FormEmailContainer="obf-FormEmailContainer",e.FormEmailInput="obf-FormEmailInput",e.FormEmailTextBox="obf-FormEmailTextBox",e.FormEmailCheckBox="obf-FormEmailCheckBox",e.FormEmailLabel="obf-FormEmailLabel",e.FormBottomContainer="obf-FormBottomContainer",e.FormSubmitButtonContainer="obf-FormSubmitButtonContainer",e.FormScreenshotContainer="obf-FormScreenshotContainer",e.FormScreenshotLabel="obf-FormScreenshotLabel",e.FormScreenshotCheckbox="obf-FormScreenshotCheckbox",e.FormScreenshotPreview="obf-FormScreenshotPreview",e.TFormEmailCheckbox="obf-TFormEmailCheckbox",e.TFormEmailLabel="obf-TFormEmailLabel ",e.EmailCheckBoxLabel="obf-EmailCheckBoxLabel",e.Toast="obf-Toast",e.ToastZoom="obf-ToastZoom",e})(),o=(function(){function e(){}return e.CloseButton="obf-CloseButton",e.ColumnSeparatorDiv="obf-ColumnSeparatorDiv",e.OverallAnchorsContainer="obf-OverallAnchorsContainer",e.OverallFrownAnchor="obf-OverallFrownAnchor",e.OverallFrownDiv="obf-OverallFrownDiv",e.OverallFrownImage="obf-OverallFrownImage",e.OverallFrownText="obf-OverallFrownText",e.OverallSmileAnchor="obf-OverallSmileAnchor",e.OverallSmileDiv="obf-OverallSmileDiv",e.OverallSmileImage="obf-OverallSmileImage",e.OverallSmileText="obf-OverallSmileText",e.OverallIdeaAnchor="obf-OverallIdeaAnchor",e.OverallIdeaDiv="obf-OverallIdeaDiv",e.OverallIdeaImage="obf-OverallIdeaImage",e.OverallIdeaText="obf-OverallIdeaText",e.OverallBugAnchor="obf-OverallBugAnchor",e.OverallBugDiv="obf-OverallBugDiv",e.OverallBugImage="obf-OverallBugImage",e.OverallBugText="obf-OverallBugText",e.QuestionLeftText="obf-QuestionLeftText",e.LeftFormContainer="obf-LeftFormContainer",e.LeftPanelContainer="obf-LeftPanelContainer",e.MainContainer="obf-MainContainer",e.MainContentHolder="obf-MainContentHolder",e.MiddleFormContainer="obf-MiddleFormContainer",e.OverlayBackground="obf-OverlayBackground",e.PrivacyStatementLink="obf-PrivacyStatementLink",e.FirstTabbable="obf-FirstTabbable",e.LastTabbable="obf-LastTabbable",e.EmailCheckBox="obf-EmailCheckBox",e.SingleFormContainer="obf-SingleFormContainer",e.SingleFormQuestionMiddleText="obf-SingleFormQuestionMiddleText",e.SingleFormCategoriesDropdown="obf-SingleFormCategoriesDropdown",e.SingleFormComment="obf-SingleFormComment",e.SingleFormEmailInput="obf-SingleFormEmailInput",e.SingleFormRating="obf-SingleFormRating",e.SingleFormScreenshotCheckbox="obf-SingleFormScreenshotCheckbox",e.SingleFormScreenshotPreview="obf-SingleFormScreenshotPreview",e.SingleFormSubmitButton="obf-SingleFormSubmitButton",e.SingleFormCancelButton="obf-SingleFormCancelButton",e.SingleFormSubmitButtonSpinner="obf-SingleFormSubmitButtonSpinner",e.BasicFormContainer="obf-BasicFormContainer",e.BasicFormQuestionMiddleText="obf-BasicFormQuestionMiddleText",e.BasicFormCategoriesDropdown="obf-BasicFormCategoriesDropdown",e.BasicFormComment="obf-BasicFormComment",e.BasicFormEmailInput="obf-BasicFormEmailInput",e.BasicFormRating="obf-BasicFormRating",e.BasicFormScreenshotCheckbox="obf-BasicFormScreenshotCheckbox",e.BasicFormScreenshotPreview="obf-BasicFormScreenshotPreview",e.BasicFormSubmitButton="obf-BasicFormSubmitButton",e.BasicFormCancelButton="obf-BasicFormCancelButton",e.BasicFormSubmitButtonSpinner="obf-BasicFormSubmitButtonSpinner",e.ThanksPanelContainer="obf-ThanksPanelContainer",e.ThanksPanelCloseButton="obf-ThanksPanelCloseButton",e.ThanksPanelDiscussion="obf-ThanksPanelDiscussion",e.ThanksPanelVerticalContainer="obf-ThanksPanelVerticalContainer",e.ThanksPanelInnerContainer="obf-ThanksPanelInnerContainer",e.UserVoiceFormContainer="obf-UserVoiceFormContainer",e.UserVoiceFormGoButton="obf-UserVoiceFormGoButton",e.ToastContainer="obf-ToastContainer",e.ToastCancel="obf-ToastCancel",e.TPromptContainer="obf-TPromptContainer",e.TPromptTitle="obf-TPromptTitle",e.TPromptText="obf-TPromptText",e.TFormContainer="obf-TFormContainer",e.TFormTitle="obf-TFormTitle",e.TFormRating="obf-TFormRating",e.TFormRatingQuestion="obf-TFormRatingQuestion",e.TFormComment="obf-TFormComment",e.TFormEmailTextBox="obf-TFormEmailTextBox",e.TFormEmailCheckBox="obf-TFormEmailCheckBox",e.TFormEmailLabel="obf-TFormEmailLabel",e.TFormSubmitButton="obf-TFormSubmitButton",e.TFormSubmitButtonSpinner="obf-TFormSubmitButtonSpinner",e.TFormSubmitButtonContainer="obf-TFormSubmitButtonContainer",e})(),u=(function(){function e(){}return e.Esc=27,e.Tab=9,e})(),a=(function(){function e(){}return e.Anchor="A",e.Button="button",e.Defs="defs",e.Div="div",e.FieldSet="fieldset",e.Form="form",e.Img="img",e.Input="input",e.Label="label",e.Legend="legend",e.Option="option",e.Polygon="polygon",e.Select="select",e.Span="span",e.Svg="svg",e.TextArea="textarea",e.Use="use",e})(),f=(function(){function e(){}return e.Button="Button",e})(),l=(function(){function e(){}return e.PrivacyStatementLink="https://go.microsoft.com/fwlink/?LinkId=521839",e})()},function(e,t,n){"use strict";n.d(t,"get",function(){return a}),n.d(t,"validateFeedbackType",function(){return f});var r=n(4),i=n(7),s=n(50),o=n(13);n.d(t,"CustomResources",function(){return o.c});n(47);var u=new((function(){function e(){}return e.validateCategoryOptions=function(e){if(!e)return{show:!1};if(r.d(e.show,"categories.show"),e.customCategories){r.c(e.customCategories,"categories.customCategories");for(var t=0,n=e.customCategories;t<n.length;t++){var i=n[t];if(r.h(i,"custom category '"+i+"'"),i.length>20)throw"custom category '"+i+"' too long, max 20 characters."}}return e},e.prototype.getCommonInitOptions=function(){return this.commonInitOptions},e.prototype.getInAppFeedbackInitOptions=function(){return this.inAppFeedbackInitOptions},e.prototype.getInAppFeedbackLaunchOptions=function(){return this.inAppFeedbackLaunchOptions},e.prototype.getFloodgateInitOptions=function(){return this.floodgateInitOptions},e.prototype.getFloodgateSurvey=function(){return this.floodgateSurvey},e.prototype.getSdkSessionId=function(){return this.sdkSessionId||(this.sdkSessionId=r.i()),this.sdkSessionId},e.prototype.getEventSampling=function(){return this.eventSampling},e.prototype.setCommonInitOptions=function(e){r.g(e,"passedInitOptions");var t={appId:e.appId,applicationGroup:e.applicationGroup||{},build:e.build,cid:e.cid,environment:e.environment,intlFilename:e.intlFilename,intlUrl:e.intlUrl,webSurfacesResourceBaseUrl:e.webSurfacesResourceBaseUrl,locale:e.locale,onError:e.onError,originalLocale:e.locale,primaryColour:e.primaryColour,secondaryColour:e.secondaryColour,sessionId:e.sessionId,stylesUrl:e.stylesUrl,telemetryGroup:e.telemetryGroup||{},userEmail:e.userEmail,userEmailConsentDefault:e.userEmailConsentDefault,webGroup:e.webGroup||{},eventSampling:e.eventSampling,petrolTimeout:e.petrolTimeout,isCommercialHost:e.isCommercialHost,customResourcesSetExternally:e.customResourcesSetExternally,emailPolicyValue:e.emailPolicyValue,screenshotPolicyValue:e.screenshotPolicyValue,ageGroup:e.ageGroup,authenticationType:e.authenticationType,applicationSettings:e.applicationSettings};if(r.f(t.appId,"initOptions.appId"),!(t.appId%1==0&&t.appId>0))throw"initOptions.appId is not a positive integer: "+t.appId;var n=o.c.Strings|o.c.Css;if(void 0===t.customResourcesSetExternally)t.customResourcesSetExternally=o.c.None;else if("number"!=typeof t.customResourcesSetExternally||(t.customResourcesSetExternally|n)!==n)throw"initOptions.customResourcesSetExternally has an invalid value: "+t.customResourcesSetExternally;if((t.customResourcesSetExternally&o.c.Css)!==o.c.Css&&r.h(t.stylesUrl,"initOptions.stylesUrl"),(t.customResourcesSetExternally&o.c.Strings)!==o.c.Strings&&r.h(t.intlUrl,"initOptions.intlUrl"),void 0!==t.intlFilename?r.h(t.intlFilename,"initOptions.intlFilename"):t.intlFilename="officebrowserfeedbackstrings.js",r.f(t.environment,"initOptions.environment"),1!==t.environment&&0!==t.environment)throw"initOptions.environment has a bad value: "+t.environment;if(void 0!==t.userEmail?r.h(t.userEmail,"initOptions.userEmail"):t.userEmail="",void 0!==t.userEmailConsentDefault&&r.d(t.userEmailConsentDefault,"initOptions.userEmailConsentDefault"),void 0!==t.sessionId?r.h(t.sessionId,"initOptions.sessionId"):t.sessionId="00000000-0000-0000-0000-000000000000",t.telemetryGroup.processSessionId=t.sessionId,void 0!==t.cid&&(r.h(t.cid,"initOptions.cid"),t.applicationGroup.extendedManifestData=JSON.stringify({cid:t.cid})),void 0!==t.build){r.h(t.build,"initOptions.build");new RegExp("^[0-9]{1,9}(\\.[0-9]{1,9})?(\\.[0-9]{1,9})?(\\.[0-9]{1,9})?$").test(t.build)||(t.build="0.0.0.0")}else t.build="0.0.0.0";t.telemetryGroup.officeBuild=t.build;var i=new RegExp("^#[0-9a-f]{3}([0-9a-f]{3})?$","i");if(void 0!==t.primaryColour&&(i.test(t.primaryColour)||(t.primaryColour=void 0)),void 0!==t.secondaryColour&&(i.test(t.secondaryColour)||(t.secondaryColour=void 0)),void 0!==t.locale?(r.h(t.locale,"initOptions.locale"),t.locale=s.a(t.locale)):t.locale="en",void 0===t.onError&&(t.onError=function(e){}),void 0!==t.petrolTimeout&&r.f(t.petrolTimeout,"initOptions.petrolTimeout"),void 0!==t.authenticationType?r.e(t.authenticationType,o.b,"initOptions.authenticationType"):t.authenticationType=o.b.Unauthenticated,void 0!==t.ageGroup?r.e(t.ageGroup,o.a,"initOptions.ageGroup"):t.ageGroup=o.a.Undefined,this.eventSampling=this.parseEventSamplingOption(t.eventSampling),this.commonInitOptions=t,this.commonPolicyAllowAADC=this.determineAADCPolicy(t.authenticationType,t.ageGroup),void 0===t.isCommercialHost||null==t.isCommercialHost?t.isCommercialHost=!1:r.d(t.isCommercialHost,"initOptions.isCommercialHost"),void 0===t.emailPolicyValue)t.emailPolicyValue=0;else if("number"!=typeof t.emailPolicyValue||0!==t.emailPolicyValue&&1!==t.emailPolicyValue&&2!==t.emailPolicyValue)throw"initOptions.emailPolicyValue has an invalid value: "+t.emailPolicyValue;if(void 0===t.screenshotPolicyValue)t.screenshotPolicyValue=0;else if("number"!=typeof t.screenshotPolicyValue||0!==t.screenshotPolicyValue&&1!==t.screenshotPolicyValue&&2!==t.screenshotPolicyValue)throw"initOptions.screenshotPolicyValue has an invalid value: "+t.screenshotPolicyValue},e.prototype.setInAppFeedbackInitOptions=function(e){r.g(e,"passedInitOptions");var t={bugForm:e.bugForm,onDismiss:e.onDismiss,screenshot:e.screenshot,showEmailAddress:e.showEmailAddress,userEmail:e.userEmail,userVoice:void 0!==e.userVoice?{url:e.userVoice.url}:void 0,transitionEnabled:e.transitionEnabled,isShowThanks:e.isShowThanks,sendFeedbackPolicyValue:e.sendFeedbackPolicyValue};if(void 0===t.onDismiss&&(t.onDismiss=function(e){}),void 0!==t.bugForm?r.d(t.bugForm,"initOptions.bugForm"):t.bugForm=!1,void 0!==t.userEmail&&r.h(t.userEmail,"initOptions.userEmail"),void 0!==t.screenshot?r.d(t.screenshot,"initOptions.screenshot"):t.screenshot=!0,void 0!==t.showEmailAddress?r.d(t.showEmailAddress,"initOptions.showEmailAddress"):t.showEmailAddress=!0,void 0!==t.userVoice&&(r.g(t.userVoice,"initOptions.userVoice"),r.h(t.userVoice.url,"initOptions.userVoice.url")),void 0!==t.isShowThanks?r.d(t.isShowThanks,"initOptions.isShowThanks"):t.isShowThanks=!1,void 0===t.transitionEnabled&&(t.transitionEnabled=!0),void 0===t.sendFeedbackPolicyValue)t.sendFeedbackPolicyValue=0;else if("number"!=typeof t.sendFeedbackPolicyValue||0!==t.sendFeedbackPolicyValue&&1!==t.sendFeedbackPolicyValue&&2!==t.sendFeedbackPolicyValue)throw"initOptions.sendFeedbackPolicyValue has an invalid value: "+t.sendFeedbackPolicyValue;this.inAppFeedbackInitOptions=t},e.prototype.setInAppFeedbackLaunchOptions=function(t){if(!this.commonInitOptions)throw"commonInitOptions not set";t||(t={}),this.commonInitOptions.applicationGroup=r.m(t.applicationGroup,this.commonInitOptions.applicationGroup),this.commonInitOptions.telemetryGroup=r.m(t.telemetryGroup,this.commonInitOptions.telemetryGroup),this.commonInitOptions.webGroup=r.m(t.webGroup,this.commonInitOptions.webGroup),t.categories=e.validateCategoryOptions(t.categories),this.inAppFeedbackLaunchOptions=t},e.prototype.setFloodgateInitOptions=function(e){r.g(e,"passedInitOptions");var t={autoDismiss:e.autoDismiss,campaignDefinitions:e.campaignDefinitions,campaignFlights:e.campaignFlights,campaignQueryParameters:e.campaignQueryParameters,onDismiss:e.onDismiss,onSurveyActivatedCallback:e.onSurveyActivatedCallback,settingStorageCallback:e.settingStorageCallback,uIStringGetter:e.uIStringGetter,authTokenCallback:e.authTokenCallback,surveyEnabled:e.surveyEnabled,showEmailAddress:e.showEmailAddress,augLoopCallback:e.augLoopCallback,customerVoiceSurveyParams:e.customerVoiceSurveyParams,governanceServiceEnabled:e.governanceServiceEnabled,governanceServiceConfig:e.governanceServiceConfig,personalizerEnabled:e.personalizerEnabled};(void 0===t.autoDismiss&&(t.autoDismiss=0),void 0===t.onDismiss&&(t.onDismiss=function(e,t){}),void 0===t.onSurveyActivatedCallback)&&(t.onSurveyActivatedCallback={onSurveyActivated:function(e,t,n){e.launch()}});void 0===t.uIStringGetter&&(t.uIStringGetter=function(e){return e}),void 0===t.surveyEnabled?t.surveyEnabled=!0:r.d(t.surveyEnabled,"surveyEnabled"),void 0!==t.showEmailAddress?r.d(t.showEmailAddress,"initOptionsFloodgate.showEmailAddress"):t.showEmailAddress=!0,void 0!==t.governanceServiceEnabled?r.d(t.governanceServiceEnabled,"initOptionsFloodgate.governanceServiceEnable"):t.governanceServiceEnabled=!1,t.governanceServiceEnabled&&(t.governanceServiceConfig=this.parseGovernanceServiceConfig(void 0!==t.governanceServiceConfig?t.governanceServiceConfig:{})),void 0===t.customerVoiceSurveyParams&&(t.customerVoiceSurveyParams={cvFlights:"",isCVSurveyEnabled:!1,uiHost:""}),void 0!==t.personalizerEnabled?r.d(t.personalizerEnabled,"initOptionsFloodgate.personalizerEnabled"):t.personalizerEnabled=!1,this.floodgateInitOptions=t},e.prototype.setFloodgateSurvey=function(e){this.floodgateSurvey=e},e.prototype.checkIfSurveysEnabled=function(){return(!this.floodgateInitOptions||this.floodgateInitOptions.surveyEnabled)&&this.commonPolicyAllowAADC},e.prototype.isFeedbackSurveyEnabledByAADC=function(){return this.commonPolicyAllowAADC},e.prototype.getCVSurveyFlights=function(){return this.floodgateInitOptions&&this.floodgateInitOptions.customerVoiceSurveyParams?this.floodgateInitOptions.customerVoiceSurveyParams.cvFlights:""},e.prototype.isCVSurveyEnabled=function(){return!(!this.floodgateInitOptions||!this.floodgateInitOptions.customerVoiceSurveyParams)&&this.floodgateInitOptions.customerVoiceSurveyParams.isCVSurveyEnabled},e.prototype.getProductName=function(){return this.floodgateInitOptions&&this.floodgateInitOptions.customerVoiceSurveyParams?this.floodgateInitOptions.customerVoiceSurveyParams.uiHost:""},e.prototype.determineAADCPolicy=function(e,t){return e===o.b.Unauthenticated||e===o.b.AAD||t!==o.a.MinorWithParentalConsent&&t!==o.a.MinorWithoutParentalConsent},e.prototype.getUserConsentGroup=function(){var e=this.commonInitOptions.authenticationType;if(e===o.b.Unauthenticated||e===o.b.AAD)return 1;switch(this.commonInitOptions.ageGroup){case o.a.Undefined:return 1;case o.a.MinorWithoutParentalConsent:case o.a.MinorWithParentalConsent:return 3;case o.a.Adult:return 1;case o.a.NotAdult:return 2;case o.a.MinorNoParentalConsentRequired:return 1;default:return 3}return 3},e.prototype.parseEventSamplingOption=function(e){var t={event:{}};if(void 0!==e)for(var n in e)if(e.hasOwnProperty(n))switch(e[n].type){case"Event":var i=e[n].sampleRate;if(r.f(i,"initOption.EventSampling.SampleRate"),r.h(e[n].name,"initOption.EventSampling.Name"),i<0||i>1)throw"initOption.EventSampling."+e[n].name+".SampleRate is out of range";t.event[e[n].name]=i;break;default:throw"initOption.EventSampling.Type value is not recognized"}return t},e.prototype.parseGovernanceServiceConfig=function(e){var t,n,r;return{forceServicelessSurveyDisplay:null!==(t=e.forceServicelessSurveyDisplay)&&void 0!==t&&t,retry:null!==(n=e.retry)&&void 0!==n?n:1,timeout:null!==(r=e.timeout)&&void 0!==r?r:1e3}},e})());function a(){return u}function f(e){if(r.h(e,"feedbackType"),e===i.c[i.c.Smile])return i.c.Smile;if(e===i.c[i.c.Frown])return i.c.Frown;if(e===i.c[i.c.Bug])return i.c.Bug;throw"feedbackType should be one of Smile, Frown or Bug"}},function(e,t,n){"use strict";n.d(t,"a",function(){return w}),n.d(t,"c",function(){return x}),n.d(t,"b",function(){return T});var r=(function(){function e(e,t){if(!e)throw new Error("name must not be null");if(!t)throw new Error("version must not be null");this.name=e,this.version=t}return e.prototype.getName=function(){return this.name},e.prototype.getPlatform=function(){return e.PLATFORM},e.prototype.getVersion=function(){return this.version},e.PLATFORM="Web",e})(),i=(function(){function e(e){if(!e)throw new Error("id must not be null");this.id=e}return e.prototype.getId=function(){return this.id},e})(),s=(function(){function e(e,t,n,r){this.id=e,this.locale=t,this.sessionId=n,this.version=r}return e.prototype.getId=function(){return this.id},e.prototype.getLocale=function(){return this.locale},e.prototype.getSessionId=function(){return this.sessionId},e.prototype.getVersion=function(){return this.version},e})(),o=(function(){function e(t,n,r,i){if(!t)throw new Error("name must not be null");if(!n)throw new Error("sessionId must not be null");if(!r&&0!==r||r<0)throw new Error("sequence must not be negative");this.name=t,this.id=n+e.ID_DELIMITER+r,this.sequence=r,this.sampleRate=i}return e.prototype.getName=function(){return this.name},e.prototype.getId=function(){return this.id},e.prototype.getSource=function(){return e.SOURCE},e.prototype.getSchemaVersion=function(){return e.SCHEMA_VERSION},e.prototype.getSequence=function(){return this.sequence},e.prototype.getSampleRate=function(){return this.sampleRate},e.ID_DELIMITER=".",e.SOURCE="MsoThin",e.SCHEMA_VERSION=1,e})(),u=(function(){function e(e){this.audienceGroup=e}return e.prototype.getAudienceGroup=function(){return this.audienceGroup},e})(),a=(function(){function e(e,t){this.name=e,this.version=t}return e.prototype.getName=function(){return this.name},e.prototype.getVersion=function(){return this.version},e})(),f=(function(){function e(e){this.id=e}return e.prototype.getId=function(){return this.id},e})(),l=(function(){function e(e,t){this.tenantId=t,this.primaryIdentityHash=e?e.trim():e,this.primaryIdentitySpace=this.generatePrimaryIdentitySpace()}return e.prototype.getTenantId=function(){return this.tenantId},e.prototype.getPrimaryIdentityHash=function(){return this.primaryIdentityHash},e.prototype.getPrimaryIdentitySpace=function(){return this.primaryIdentitySpace},e.prototype.generatePrimaryIdentitySpace=function(){if(this.primaryIdentityHash){if(this.primaryIdentityHash.startsWith("a:"))return"UserObjectId";if(this.primaryIdentityHash.startsWith("p:"))return"MsaPuid";if(this.primaryIdentityHash.startsWith("ap:"))return"OrgIdPuid"}},e})(),c=n(4),h=n(78);function p(){return h.AWT}var d,v,m=(function(){function e(e,t,n,r,i,s,o,u,a){if(!e)throw new Error("tenantToken must not be null");if(!t)throw new Error("namespace must not be null");if(!n)throw new Error("app must not be null");if(!r)throw new Error("session must not be null");p().initialize(e),this.namespace=t,this.oesApp=n,this.oesSession=r,this.oesHost=i,this.oesRelease=s,this.oesBrowser=o,this.oesDevice=u,this.oesUser=a,this.sequence=1}return e.setApp=function(e,t){e["App.Name"]=t.getName(),e["App.Platform"]=t.getPlatform(),e["App.Version"]=t.getVersion()},e.setSession=function(e,t){e["Session.Id"]=t.getId()},e.setHost=function(e,t){t&&(e["Host.Id"]=t.getId(),e["Host.SessionId2"]=t.getSessionId(),e["Host.Version"]=t.getVersion(),e["Host.Locale"]=t.getLocale())},e.setEvent=function(e,t){e["Event.Name"]=t.getName(),e["Event.Id"]=t.getId(),e["Event.Source"]=t.getSource(),e["Event.SchemaVersion"]=t.getSchemaVersion(),e["Event.Sequence"]=t.getSequence(),e["Event.SampleRate"]=t.getSampleRate()},e.setRelease=function(e,t){t&&(e["Release.AudienceGroup"]=t.getAudienceGroup())},e.setBrowser=function(e,t){t&&(e["Browser.Name"]=t.getName(),e["Browser.Version"]=t.getVersion())},e.setDevice=function(e,t){t&&(e["Device.Id"]=t.getId())},e.setUser=function(e,t){t&&(e["User.PrimaryIdentityHash"]=t.getPrimaryIdentityHash(),e["User.PrimaryIdentitySpace"]=t.getPrimaryIdentitySpace(),e["User.TenantId"]=t.getTenantId())},e.prototype.logEvent=function(t,n,r){if(void 0===r&&(r=1),!t)throw new Error("eventName must not be null");var i=new o(this.namespace+e.EVENT_NAME_DELIMITER+t,this.oesSession.getId(),this.sequence,r),s={};if(null!=n)for(var u in n)n.hasOwnProperty(u)&&(s[e.CUSTOM_PROPERTIES_FIELD_PREFIX+u]=n[u]);e.setApp(s,this.oesApp),e.setSession(s,this.oesSession),e.setHost(s,this.oesHost),e.setRelease(s,this.oesRelease),e.setEvent(s,i),e.setBrowser(s,this.oesBrowser),e.setDevice(s,this.oesDevice),e.setUser(s,this.oesUser),p().logEvent({name:i.getName(),properties:s}),this.sequence++},e.EVENT_NAME_DELIMITER="_",e.CUSTOM_PROPERTIES_FIELD_PREFIX="Data.",e})(),g=(function(){function e(){}return e.create=function(e,t,n,r,i,s,o,u,a){return new m(e,t,n,r,i,s,o,u,a)},e})(),y=n(15),b=n(14),w=(function(){function e(){}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q,R;return e.InApp=((t=function(){}).UI=((n=function(){}).Picker=((r=function(){}).Shown=((i=function(){}).VALUE={name:"InApp_UI_Picker_Shown"},i),r),n.Form=((s=function(){}).Shown=((o=function(){}).VALUE={name:"InApp_UI_Form_Shown"},o),s.Submit=((u=function(){}).VALUE={name:"InApp_UI_Form_Submit"},u),s),n),t),e.SURVEY_FLOODGATE_CAMPAIGNLOAD_FAILED={name:"Survey_Floodgate_CampaignLoad_Failed"},e.SURVEY_FLOODGATE_FILEREAD_FAILED={name:"Survey_Floodgate_FileRead_Failed"},e.SURVEY_FLOODGATE_FILEWRITE_FAILED={name:"Survey_Floodgate_FileWrite_Failed"},e.SURVEY_FLOODGATE_TRIGGERMET={name:"Survey_Floodgate_TriggerMet"},e.SURVEY_FLOODGATE_USERSELECTED={name:"Survey_Floodgate_UserSelected"},e.SURVEY_UI_FORM_SHOWN={name:"Survey_UI_Form_Shown"},e.SURVEY_UI_FORM_SUBMIT={name:"Survey_UI_Form_Submit"},e.SURVEY_UI_FORM_SECONDARY_SUBMIT={name:"Survey_UI_Form_Secondary_Submit"},e.SURVEY_UI_FORM_SUBMIT_ERROR={name:"Survey_UI_Form_Submit_Error"},e.SURVEY_UI_FORM_USERCLOSED={name:"Survey_UI_Form_UserClosed"},e.SURVEY_UI_FORM_NO_RETURN_TYPE={name:"Survey_UI_Form_No_Return_Type"},e.SURVEY_UI_PROMPT_AUTODISMISSED={name:"Survey_UI_Prompt_AutoDismissed"},e.SURVEY_UI_PROMPT_SHOWN={name:"Survey_UI_Prompt_Shown"},e.SURVEY_UI_PROMPT_USERCLOSED={name:"Survey_UI_Prompt_UserClosed"},e.SURVEY_UI_PROMPT_CLICKED={name:"Survey_UI_Prompt_Clicked"},e.SURVEY_UI_REDIRECTIONFAILURE={name:"Survey_UI_RedirectionFailure"},e.GOVERNANCE_SERVICEFAILURE={name:"Gorvenance_ServiceFailure"},e.GOVERNANCE_SERVICERESULT={name:"Gorvenance_ServiceResult"},e.DYNAMICTRANSPORT_POST_ERROR={name:"DynamicTransport_Post_Error"},e.FEEDBACK_SURVEYSDISABLED_AADC={name:"Feedback_SurveysDisabled_AADC"},e.SURVEY_UI_DISABLED_AADC={name:"Survey_UI_Prevented_AADC"},e.PERSONALIZER_SERVICEREWARDRESULT={name:"Personalizer_ServiceRewardResult"},e.PERSONALIZER_CLIENTFAILURE={name:"Personalizer_ClientFailure"},e.Shared=((a=function(){}).Upload=((f=function(){}).Failed=((l=function(){}).VALUE={name:"Shared_Upload_Failed"},l),f.Prevented=((c=function(){}).VALUE={name:"Shared_Upload_Prevented_AADC"},c),f),a.Screenshot=((h=function(){}).Render=((p=function(){}).Failed=((d=function(){}).VALUE={name:"Shared_Screenshot_Render_Failed"},d),p.Success=((v=function(){}).VALUE={name:"Shared_Screenshot_Render_Success"},v),p),h.GetContent=((m=function(){}).Failed=((g=function(){}).DefaultImage=((y=function(){}).Returned=((b=function(){}).VALUE={name:"Shared_Screenshot_GetContent_Failed_DefaultImage_Returned"},b),y),g),m),h),a),e.WebSurfaces=((w=function(){}).Common=((E=function(){}).Error=((S=function(){}).VALUE={name:"WebSurfaces_Common_Error"},S),E.Info=((x=function(){}).VALUE={name:"WebSurfaces_Common_Info"},x),E),w.Messaging=((T=function(){}).Requests=((N=function(){}).VALUE={name:"WebSurfaces_Messaging_Requests"},N),T),w),e.UserFacts=((C=function(){}).Common=((k=function(){}).Error=((L=function(){}).VALUE={name:"UserFacts_Common_Error"},L),k.Info=((A=function(){}).VALUE={name:"UserFacts_Common_Info"},A),k),C.LocalFact=((O=function(){}).Error=((M=function(){}).VALUE={name:"UserFacts_LocalFact_Error"},M),O),C.Messaging=((_=function(){}).Requests=((D=function(){}).VALUE={name:"UserFacts_Messaging_Requests"},D),_),C.AugLoop=((P=function(){}).Requests=((H=function(){}).VALUE={name:"UserFacts_AugLoop_Requests"},H),P.Error=((B=function(){}).VALUE={name:"UserFacts_AugLoop_Error"},B),P),C.Provider=((j=function(){}).Info=((F=function(){}).VALUE={name:"UserFacts_Provider_Summary"},F),j),C),e.Common=((I=function(){}).Error=((q=function(){}).VALUE={name:"Common_Error"},q),I.Info=((R=function(){}).VALUE={name:"Common_Info"},R),I),e})(),E=n(12),S=c.l;function x(e,t,n,o,c){var h=e.telemetryGroup?e.telemetryGroup:{},p=e.webGroup?e.webGroup:{};d=new N(g.create(C.getTenantToken(e.environment),"Office_Feedback",new r(t,n),new i(o),new s(e.appId.toString(),e.originalLocale,e.sessionId,e.build),new u(h.audienceGroup),new a(p.browser,p.browserVersion),new f(h.deviceId),new l(h.loggableUserId?h.loggableUserId:e.cid,h.tenantId)),c,e),v=e.environment}function T(){return d}var N=(function(){function e(e,t,n){if(this.SAMPLING_RESULT=Math.random(),!e)throw new Error("telemetryLogger must not be null");this.telemetryLogger=e,this.eventSampling=t,this.initOptionsCommon=n}return e.prototype.logEvent=function(t,n,r){if(!t)throw new Error("eventId must not be null");var i=this.getEventSamplingRate(t.name);if(S(n)||0===n){0===v&&(this.isConsoleLogEnabled&&console&&console.log("Floodgate event: ",e.EVENT_NAME,"logSeverity must not be null or none"),this.telemetryLogger.logEvent(e.EVENT_NAME,{ErrorMessage:"logSeverity must not be null or none"},i));return!1}return(r=r||{})[e.EVENT_ID]=t.name,(this.isLoggingEnabled(n,i)||this.isEventTelemetryEnabled(t.name))&&this.telemetryLogger.logEvent(e.EVENT_NAME,r,i),this.isConsoleLogEnabled&&console&&console.log("Floodgate event: ",e.EVENT_NAME,n,r),!0},e.prototype.logLocal=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.isLoggingEnabled(e)&&this.isConsoleLogEnabled&&console&&console.log("LPP FG: ",e,t)},e.prototype.getUserSamplingRate=function(){return this.SAMPLING_RESULT},e.prototype.isEventTelemetryEnabled=function(e){var t,n,r,i;try{if(!this.dynamicLogSettings)return!1;var s=null===(n=null===(t=this.initOptionsCommon)||void 0===t?void 0:t.appId)||void 0===n?void 0:n.toString(),o=null===(i=null===(r=this.initOptionsCommon)||void 0===r?void 0:r.originalLocale)||void 0===i?void 0:i.toLowerCase(),u="content_"+e,a=this.dynamicLogSettings[u+"_"+s+"_"+o]||this.dynamicLogSettings[u+"_"+s]||this.dynamicLogSettings[u+"_"+o]||this.dynamicLogSettings[u];return null==a?void 0:a.isEnabled}catch(e){this.isConsoleLogEnabled&&console.log("FG: Error checking for dynamic log settings: ",e)}return!1},e.prototype.isLoggingEnabled=function(e,t){if(void 0===t&&(t=1),S(this.logLevel)){var n=this.getCurrentLogLevel();this.logLevel=S(n)?2:n}return e<=this.logLevel&&this.SAMPLING_RESULT<=t&&0!==t},e.prototype.getCurrentLogLevel=function(){try{var e="undefined"!=typeof URLSearchParams&&new URLSearchParams(window.location.search)||void 0,t=e&&e.get("obfconsolelog");if(!t){var n="undefined"!=typeof document&&document.referrer;t=n&&-1!==n.indexOf("obfconsolelog")}t&&(this.isConsoleLogEnabled=!0);var r=e&&e.get("obfloglevel");if(!S(r))return this.isConsoleLogEnabled=!0,parseInt(r,10);if(y.a.isStorageAvailable()){var i=(new y.a).read(b.FileType.LogLevelSettings);i||(i=Object(E.a)("LogLevelSettings",""));var s=i&&this.parseObject(i);if(s){this.dynamicLogSettings=s;var o=s.content;if(this.initOptionsCommon){var u=this.initOptionsCommon.appId&&this.initOptionsCommon.appId.toString(),a=this.initOptionsCommon.originalLocale&&this.initOptionsCommon.originalLocale.toLowerCase();o=s["content_"+u+"_"+a]||s["content_"+u]||s["content_"+a]||s.content}if(o)return o.consoleLog&&(this.isConsoleLogEnabled=!0),o.logLevel}}}catch(e){return void(this.isConsoleLogEnabled&&console.log("Error while getting the current log level: ",e))}return null},e.prototype.parseObject=function(e){try{return JSON.parse(e)}catch(e){return this.isConsoleLogEnabled&&console.log("Error while parsing the json string for log level: ",e),null}},e.prototype.getEventSamplingRate=function(e){var t=1;return this.eventSampling.event&&e in this.eventSampling.event&&(t=this.eventSampling.event[e]),t},e.EVENT_NAME="SDK",e.EVENT_ID="EventId",e})(),C=(function(){function e(){}return e.getTenantToken=function(t){return 0===t?e.TENANT_TOKEN_PRODUCTION:e.TENANT_TOKEN_PRE_PRODUCTION},e.TENANT_TOKEN_PRODUCTION="d79e824386c4441cb8c1d4ae15690526-bd443309-5494-444a-aba9-0af9eef99f84-7360",e.TENANT_TOKEN_PRE_PRODUCTION="2bf6a2ffddca4a80a892a0b182132961-625cb102-8b0c-480e-af53-92e48695d08d-7736",e})()},function(e,t,n){"use strict";n.d(t,"l",function(){return o}),n.d(t,"d",function(){return u}),n.d(t,"b",function(){return a}),n.d(t,"j",function(){return f}),n.d(t,"k",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,"i",function(){return h}),n.d(t,"g",function(){return p}),n.d(t,"h",function(){return d}),n.d(t,"m",function(){return v}),n.d(t,"e",function(){return m}),n.d(t,"f",function(){return g}),n.d(t,"a",function(){return y});var r=n(0),i=n(25),s=n(2);function o(e,t){f(e,t?r.c.Hidden:r.c.Visible,t?r.c.Visible:r.c.Hidden)}function u(e){var t=document.getElementById(e);null!=t&&null!=t.parentNode&&t.parentNode.removeChild(t)}function a(e,t){var n=document.getElementById(e);n&&(n.className.match(new RegExp("\\b"+t+"\\b"))||(n.className=n.className+" "+t))}function f(e,t,n){!(function(e,t){var n=document.getElementById(e);n&&(n.className=n.className.split(new RegExp("\\b"+t+"\\b","i")).join(" "),n.className=n.className.split(/\s+/).join(" "))})(e,t),a(e,n)}function l(e,t,n){var r=document.getElementById(e);r&&r.setAttribute(t,n)}function c(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)}function h(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)}function p(e,t,n){var r=document.getElementById(e);r&&c(r,t,n)}function d(e,t,n){e&&c(e,t,n)}function v(e,t,n){var r=document.getElementById(e);r&&h(r,t,n)}function m(){var e=-1,t=window.navigator.userAgent;t.indexOf("Trident")>-1&&null!=new RegExp("Trident/([0-9]{1,}[.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1),e+=4);return e}function g(){return"rtl"===getComputedStyle(document.documentElement).direction}function y(e,t){var n=document.getElementById(e),r=n&&n.checked,u=document.getElementById(t);if(r){o(t,!0);var a=performance.now();i.a(document.body).then(function(e){var t=performance.now();s.b().logEvent(s.a.Shared.Screenshot.Render.Success.VALUE,1,{TimeMilliseconds:t-a}),u.src=e.toDataURL()}).catch(function(e){var t=performance.now();s.b().logEvent(s.a.Shared.Screenshot.Render.Failed.VALUE,2,{ErrorMessage:e,TimeMilliseconds:t-a})})}else o(t,!1)}},function(e,t,n){"use strict";n.d(t,"i",function(){return i}),n.d(t,"m",function(){return s}),n.d(t,"l",function(){return o}),n.d(t,"j",function(){return u}),n.d(t,"k",function(){return h}),n.d(t,"g",function(){return p}),n.d(t,"f",function(){return d}),n.d(t,"h",function(){return v}),n.d(t,"d",function(){return m}),n.d(t,"c",function(){return g}),n.d(t,"e",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"a",function(){return w});var r=n(9),i=r.Utils.guid,s=r.Utils.overrideValues,o=r.Utils.isNOU,u=r.Utils.isBoolean,a=r.Utils.isString,f=r.Utils.isObject,l=r.Utils.isEnumValue;function c(e){return"number"==typeof e}function h(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function p(e,t){if(!f(e))throw t+" is not an object: "+e}function d(e,t){if(!c(e))throw t+" is not a number: "+e}function v(e,t){if(!a(e))throw t+" is not a string: "+e}function m(e,t){if(!u(e))throw t+" is not a boolean: "+e}function g(e,t){if(!Array.isArray(e))throw t+" is not an array: "+e}function y(e,t,n){if(!c(e)||!l(e,t))throw n+" is not an enum: "+e}function b(e,t){var n=new Promise(function(t,n){var r=setTimeout(function(){clearTimeout(r),n("Timed out in "+e+"ms.")},e)});return Promise.race([t,n])}function w(e){try{for(var t=0;t<document.styleSheets.length;t++)for(var n=document.styleSheets[t],r=0;r<n.rules.length;r++){var i=n.rules[r];if(!o(i.selectorText)&&i.selectorText.includes(e))return!0}}catch(e){}return!1}},function(e,t,n){"use strict";var r;function i(e){r=e}function s(){return r}n.d(t,"b",function(){return i}),n.d(t,"a",function(){return s})},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return u});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{a(r.next(e))}catch(e){s(e)}}function u(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,u)}a((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return(function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}})([s,u])}}}},function(e,t,n){"use strict";n.d(t,"e",function(){return i}),n.d(t,"f",function(){return s}),n.d(t,"c",function(){return r}),n.d(t,"a",function(){return u}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return o});var r,i="customervoice",s="Customer Voice Survey UX";!(function(e){e[e.Smile=0]="Smile",e[e.Frown=1]="Frown",e[e.Idea=2]="Idea",e[e.Bug=3]="Bug"})(r||(r={}));var o,u=(function(){function e(){}return e.WebSurfacesLink="https://content.growth.office.net/mirrored/resources/programmablesurfaces/prod/officewebsurfaces.core.min.js",e})(),a=(function(){function e(){}return e.TMSAppID="4c4f550b-42b2-4a16-93f9-fdb9e01bb6ed",e.TULIPSAppID="05c88d91-956e-46b4-91b0-77a33cc21a4d",e})();!(function(e){e[e.Enabled=0]="Enabled",e[e.DisabledByAdmin=1]="DisabledByAdmin",e[e.DisabledByAgeGroup=2]="DisabledByAgeGroup"})(o||(o={}))},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return u}),n.d(t,"n",function(){return a}),n.d(t,"o",function(){return f}),n.d(t,"m",function(){return l}),n.d(t,"e",function(){return c}),n.d(t,"d",function(){return h}),n.d(t,"l",function(){return p}),n.d(t,"i",function(){return d}),n.d(t,"h",function(){return v}),n.d(t,"g",function(){return m}),n.d(t,"j",function(){return g}),n.d(t,"k",function(){return y}),n.d(t,"f",function(){return b}),n.d(t,"c",function(){return w});var r=window,i=r.OfficeBrowserFeedback=r.OfficeBrowserFeedback||{},s=i.floodgate=i.floodgate||{};function o(){return r}function u(){return r}function a(e){i.setUiStrings=e}function f(e){i.singleFeedback=e}function l(e){i.multiFeedback=e}function c(e){i.getFeedbackStatus=e}function h(e){i.createScreenshot=e}function p(e){i.isFeedbackSurveyEnabledByAADC=e}function d(e){s.showSurvey=e}function v(e){s.showCustomSurvey=e}function m(e){s.initialize=e}function g(e){s.start=e}function y(e){s.stop=e}function b(e){s.getEngine=e}function w(e){s.getSettingIdMap=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.Api=void 0;var r=n(11);t.Api=r;var i=n(10);t.Utils=i;var s=n(20);Object.defineProperty(t,"FloodgateEngine",{enumerable:!0,get:function(){return s.FloodgateEngine}})},function(e,t,n){"use strict";function r(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())}function i(e){return null==e}function s(e){return"string"==typeof e}function o(e,n){if(!e)return null;if(n<0)return n=-n,this.addSecondsWithoutOverflow(e,n);var r=e.getTime()-1e3*n;return r>t.MIN_DATE_MILLISECONDS?new Date(r):new Date(t.MIN_DATE_MILLISECONDS)}Object.defineProperty(t,"__esModule",{value:!0}),t.safeParseObject=t.isValidUserId=t.fyShuffle=t.dateToShortUtcString=t.isUtcDatetimeString=t.overrideValues=t.stringToDate=t.makeArrayFromObjectValuesSortedByKeyString=t.guid=t.extractLanguageSubtag=t.isValidLanguageSubTag=t.subtractSecondsWithoutOverflow=t.addSecondsWithoutOverflow=t.MIN_DATE_MILLISECONDS=t.MAX_DATE_MILLISECONDS=t.getDistantFuture=t.getDistantPast=t.isBoolean=t.isString=t.isArray=t.isFunction=t.isObject=t.isNOU=t.isNumber=t.isEnumValue=t.isDate=t.timeAdd=void 0,t.timeAdd=function(e,t,n){switch(t.toLowerCase()){case"h":case"hour":return new Date(e.getTime()+36e5*n);case"m":case"minute":return new Date(e.getTime()+6e4*n);case"s":case"second":return new Date(e.getTime()+1e3*n);default:throw new Error("Invalid interval value of "+t)}},t.isDate=r,t.isEnumValue=function(e,t){return e in t},t.isNumber=function(e){return null!==e&&!isNaN(e)&&isFinite(e)},t.isNOU=i,t.isObject=function(e){return null!=e&&"object"==typeof e},t.isFunction=function(e){return null!=e&&"function"==typeof e},t.isArray=function(e){return null!=e&&Array.isArray(e)},t.isString=s,t.isBoolean=function(e){return"boolean"==typeof e},t.getDistantPast=function(){return new Date(-116444736e5)},t.getDistantFuture=function(){return new Date(640922112e5)},t.MAX_DATE_MILLISECONDS=864e13,t.MIN_DATE_MILLISECONDS=-864e13,t.addSecondsWithoutOverflow=function(e,n){if(!e)return null;if(n<0)return o(e,-1*n);var r=e.getTime()+1e3*n;return r<t.MAX_DATE_MILLISECONDS?new Date(r):new Date(t.MAX_DATE_MILLISECONDS)},t.subtractSecondsWithoutOverflow=o;function u(e){if(!e)return null;var t=e.match("^((?:[a-zA-Z]{2,3}(?:-[a-zA-Z]{3}){0,3})|(?:[a-zA-Z]{4,8}))(?:-([a-zA-Z]{4}))?(?:-([a-zA-Z]{2}|[0-9]{3}))?(-.*)?$");return!t||t.length<1||!i(t[4])?null:t[0]}function a(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}t.isValidLanguageSubTag=function(e){if(!e)return!1;var t=u(e);return!!t&&t===e},t.extractLanguageSubtag=u,t.guid=function(){return(a()+a()+"-"+a()+"-4"+a().substr(0,3)+"-"+a()+"-"+a()+a()+a()).toLowerCase()},t.makeArrayFromObjectValuesSortedByKeyString=function(e){var t=Object.keys(e);t.sort();var n=[];for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n.push(e[i])}return n},t.stringToDate=function(e){if(!s(e))return null;var t=e?new Date(e):null;return r(t)?t:null},t.overrideValues=function(e,t){if(!t)return t;var n=t;if(e)for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n},t.isUtcDatetimeString=function(e){return!!s(e)&&/^(\d{4}\-\d\d\-\d\dT\d\d:\d\d:\d\d(\.\d\d\d)?Z)$/.test(e)},t.dateToShortUtcString=function(e){if(!r(e))return null;function t(e){return e<10?"0"+e:e.toString()}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"Z"},t.fyShuffle=function(e){if(!i(e)){if(0===e.length||1===e.length)return e;for(var t=e.length-1;t>0;){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r,t--}return e}},t.isValidUserId=function(e){return!!s(e)&&/^([a-z]{1,2}):\w+/.test(e)},t.safeParseObject=function(e,t){try{var n=!e||"{"!==e[0]&&"["!==e[0]?void 0:JSON.parse(e);return null!=n?n:t}catch(e){}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISurveyInfo=t.ISurveyComponent=t.ISurvey=t.IFloodgateSettingIdMap=t.IFloodgateStorageProvider=t.IActivityListener=void 0;var r=n(35);t.ISurveyInfo=r;var i=n(56);t.IActivityListener=i;var s=n(57);t.IFloodgateSettingIdMap=s;var o=n(14);t.IFloodgateStorageProvider=o;var u=n(18);t.ISurvey=u;var a=n(19);t.ISurveyComponent=a;var f=n(21);Object.defineProperty(t,"CampaignDefinition",{enumerable:!0,get:function(){return f.CampaignDefinition}})},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(4),i=n(15),s=n(33),o=n(2),u=r.l,a=null;function f(e,t){try{if(!a&&i.a.isStorageAvailable()&&(a=new s.a(["DynamicSettings"])),!a)return t;var n=a.getItemContent("DynamicSettings");if(!u(n)&&n.hasOwnProperty(e)&&!u(n[e])){var r=n[e];if("number"==typeof t&&"number"!=typeof r){if("string"==typeof r){var f=-1===r.indexOf(".")?parseInt(r,10):parseFloat(r);return isNaN(f)?t:f}return t}return r}}catch(t){o.b().logEvent(o.a.Common.Error.VALUE,2,{ErrorMessage:"Error reading dynamic setting "+(t&&t.message),Type:e})}return t}},function(e,t,n){"use strict";var r,i,s;n.d(t,"c",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s}),(function(e){e[e.None=0]="None",e[e.Css=1]="Css",e[e.Strings=2]="Strings"})(r||(r={})),(function(e){e[e.Undefined=0]="Undefined",e[e.MinorWithoutParentalConsent=1]="MinorWithoutParentalConsent",e[e.MinorWithParentalConsent=2]="MinorWithParentalConsent",e[e.NotAdult=3]="NotAdult",e[e.Adult=4]="Adult",e[e.MinorNoParentalConsentRequired=5]="MinorNoParentalConsentRequired"})(i||(i={})),(function(e){e[e.MSA=0]="MSA",e[e.AAD=1]="AAD",e[e.Unauthenticated=2]="Unauthenticated"})(s||(s={}))},function(e,t,n){"use strict";var r;!(function(e){!(function(e){e[e.FloodgateSettings=0]="FloodgateSettings",e[e.SurveyActivationStats=1]="SurveyActivationStats",e[e.SurveyEventActivityStats=2]="SurveyEventActivityStats",e[e.CampaignDefinitions=3]="CampaignDefinitions",e[e.CampaignStates=4]="CampaignStates",e[e.GovernedChannelStates=5]="GovernedChannelStates",e[e.TmsCache_MessageMetadata=6]="TmsCache_MessageMetadata",e[e.TmsCache_UserGovernance=7]="TmsCache_UserGovernance",e[e.TmsCache_CampaignContent=8]="TmsCache_CampaignContent",e[e.Tms_DynamicSettings=9]="Tms_DynamicSettings",e[e.LogLevelSettings=10]="LogLevelSettings",e[e.UserFacts=11]="UserFacts",e[e.DebugOverrides=12]="DebugOverrides"})(e.FileType||(e.FileType={}))})(r||(r={})),e.exports=r},function(e,t,n){"use strict";var r,i=n(11),s=n(8),o=n(2),u=i.IFloodgateStorageProvider.FileType,a=((r={})[u.CampaignDefinitions]="obf-CampaignDefinitions",r[u.CampaignStates]="obf-CampaignStates",r[u.FloodgateSettings]="obf-FloodgateSettings",r[u.GovernedChannelStates]="obf-GovernedChannelStates",r[u.SurveyActivationStats]="obf-SurveyActivationStats",r[u.SurveyEventActivityStats]="obf-SurveyEventActivityStats",r[u.TmsCache_CampaignContent]="obf-TmsCampaignContent",r[u.TmsCache_MessageMetadata]="obf-TmsMessageMetadata",r[u.TmsCache_UserGovernance]="obf-TmsUserGovernance",r[u.Tms_DynamicSettings]="obf-TmsDynamicSettings",r[u.LogLevelSettings]="obf-LogLevelSettings",r[u.UserFacts]="obf-UserFacts",r[u.DebugOverrides]="obf-DebugOverrides",r),f=(function(){function e(){}return e.isStorageAvailable=function(){try{var e="__storage_test__";return s.b().localStorage.setItem(e,e),s.b().localStorage.removeItem(e),!0}catch(e){return e instanceof DOMException&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==s.b().localStorage.length}},e.safeReadObject=function(e,t){if(void 0===t&&(t=void 0),!(e in u))return t;try{var n=a[e],r=s.b().localStorage.getItem(n),i=!r||"{"!==r[0]&&"["!==r[0]?r:JSON.parse(r);return null!=i?i:t}catch(e){}return t},e.prototype.fileLock=function(e){},e.prototype.fileUnlock=function(e){},e.prototype.read=function(e){if(!(e in u))return"";var t,n=a[e];try{t=s.b().localStorage.getItem(n)}catch(e){return o.b().logEvent(o.a.SURVEY_FLOODGATE_FILEREAD_FAILED,2,{ErrorMessage:e.toString(),FileName:n}),""}return t},e.prototype.write=function(e,t){if(e in u){var n=a[e];try{s.b().localStorage.setItem(n,t)}catch(e){return void o.b().logEvent(o.a.SURVEY_FLOODGATE_FILEWRITE_FAILED,2,{ErrorMessage:e.toString(),FileName:n})}}},e})();t.a=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryEvent=void 0;var r=(function(){function e(){}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B;return e.CampaignState=((t=function(){}).Deserialize=((n=function(){}).Failed="FloodgateCore_CampaignState_Deserialize_Failed",n),t),e.FileBasedCampaignStateProvider=((r=function(){}).Load=((i=function(){}).Failed="FloodgateCore_FileBasedCampaignStateProvider_Load_Failed",i),r),e.HostBasedCampaignStateProvider=((s=function(){}).GetStatesFromHost=((o=function(){}).Failed="FloodgateCore_HostBasedCampaignStateProvider_GetStatesFromHost_Failed",o),s),e.Floodgate=((u=function(){}).Initialize=((a=function(){}).Failed="FloodgateCore_Floodgate_Initialize_Failed",a),u.Start=((f=function(){}).Failed="FloodgateCore_Floodgate_Start_Failed",f.Warning="FloodgateCore_Floodgate_Start_Warning",f.SurveysDisabled="FloodgateCore_Floodgate_Start_SurveysDisabled",f),u.UserFactsLoad=((l=function(){}).Failed="FloodgateCore_Floodgate_UserFactsLoad_Failed",l),u.UserFactsSpecDeserialization=((c=function(){}).Failed="FloodgateCore_Floodgate_UserFactsSpecDeserialization_Failed",c),u.UserFactsSpecIsAMatch=((h=function(){}).Failed="FloodgateCore_Floodgate_UserFactsSpecIsAMatch_Failed",h.Mismatch="FloodgateCore_Floodgate_UserFactsSpecIsAMatch_Mismatch",h.Summary="FloodgateCore_Floodgate_UserFactsSpecIsAMatch_Summary",h),u),e.FloodgateEngine=((p=function(){}).Make=((d=function(){}).Failed="FloodgateCore_FloodgateEngine_Make_Failed",d),p.Common=((v=function(){}).Error="FloodgateCore_FloodgateEngine_Common_Error",v),p.Start=((m=function(){}).Failed="FloodgateCore_FloodgateEngine_Start_Failed",m),p.StartAsync=((g=function(){}).Failed="FloodgateCore_FloodgateEngine_StartAsync_Failed",g.Stopped="FloodgateCore_FloodgateEngine_StartAsync_Stopped",g),p.OnSurveyActivated=((y=function(){}).ActivationStatsSuppressedSurvey="FloodgateCore_FloodgateEngine_OnSurveyActivated_ActivationStatsSuppressedSurvey",y.ClosedChannelType="FloodgateCore_FloodgateEngine_OnSurveyActivated_ClosedChannelType",y.SurveyNotDefined="FloodgateCore_FloodgateEngine_OnSurveyActivated_SurveyNotDefined",y.SessionSuppressedSurvey="FloodgateCore_FloodgateEngine_OnSurveyActivated_SessionSuppressedSurvey",y.Error="FloodgateCore_FloodgateEngine_OnSurveyActivated_Error",y),p.CheckGovernanceServiceAndActivateSurvey=((b=function(){}).GovernanceServiceForceToDisplay="FloodgateCore_FloodgateEngine_GovernanceService_GovernanceServiceForceToDisplay",b.GovernanceServiceClientCompleted="FloodgateCore_FloodgateEngine_GovernanceService_GovernanceServiceClientCompleted",b),p),e.GovernedChannelState=((w=function(){}).Deserialize=((E=function(){}).Failed="FloodgateCore_GovernedChannelState_Deserialize_Failed",E),w),e.FileBasedGovernedChannelStateProvider=((S=function(){}).Load=((x=function(){}).Failed="FloodgateCore_FileBasedGovernedChannelStateProvider_Load_Failed",x),S),e.HostBasedGovernedChannelStateProvider=((T=function(){}).GetStatesFromHost=((N=function(){}).Failed="FloodgateCore_HostBasedGovernedChannelStateProvider_GetStatesFromHost_Failed",N),T),e.SurveyStatCollectionActivation=((C=function(){}).FromJson=((k=function(){}).Failed="FloodgateCore_SurveyStatCollectionActivation_FromJson_Failed",k),C.ToJson=((L=function(){}).Failed="FloodgateCore_SurveyStatCollectionActivation_ToJson_Failed",L),C),e.HostBasedSurveyActivationStatsProvider=((A=function(){}).GetSurveyStatsFromHost=((O=function(){}).Failed="FloodgateCore_HostBasedSurveyActivationStatsProvider_GetSurveyStatsFromHost_Failed",O),A),e.SurveyStatCollectionEventActivity=((M=function(){}).FromJson=((_=function(){}).Failed="FloodgateCore_SurveyStatCollectionEventActivity_FromJson_Failed",_),M.ToJson=((D=function(){}).Failed="FloodgateCore_SurveyStatCollectionEventActivity_ToJson_Failed",D),M),e.SurveyActivity=((P=function(){}).LogActivity=((H=function(){}).EventsReprocessed="FloodgateCore_SurveyActivity_LogActivity_EventsReprocessed",H.SurveysReprocessed="FloodgateCore_SurveyActivity_LogActivity_SurveysReprocessed",H),P.SetActivityTrackingContracts=((B=function(){}).DuplicateSurveyID="FloodgateCore_SurveyActivity_SetActivityTrackingContracts_DuplicateSurveyID",B),P),e})();t.TelemetryEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GovernedChannel=t.GovernedChannelType=void 0;var r,i=n(10);!(function(e){e[e.Standard=0]="Standard",e[e.Urgent=1]="Urgent",e[e.Banner=2]="Banner",e[e.TeachingMessage=3]="TeachingMessage"})(t.GovernedChannelType||(t.GovernedChannelType={})),(function(e){e.getDefault=function(){return e.Standard}})(r=t.GovernedChannelType||(t.GovernedChannelType={}));var s=(function(){function e(e,t,n,s){if(!i.isEnumValue(e,r))throw new Error("type is not a valid GovernedChannelType");if(!t)throw new Error("name must not be null or empty");if(n<0)throw new Error("cooldownSeconds must not be negative");this.type=e,this.name=t,this.cooldownSeconds=n,this.setCooldownStartTime(s)}return e.prototype.setCooldownStartTime=function(e){this.cooldownStartTime=e,i.isNOU(this.cooldownStartTime)?this.cooldownEndTime=i.getDistantPast():this.cooldownEndTime=i.addSecondsWithoutOverflow(this.cooldownStartTime,this.cooldownSeconds)},e.prototype.isOpen=function(){return this.isOpenAtDate(new Date)},e.prototype.isOpenAtDate=function(e){return!!e&&e>this.cooldownEndTime},e.prototype.getType=function(){return this.type},e.prototype.getName=function(){return this.name},e.prototype.getCooldownSeconds=function(){return this.cooldownSeconds},e.prototype.getCooldownStartTime=function(){return this.cooldownStartTime},e.prototype.getCooldownEndTime=function(){return this.cooldownEndTime},e})();t.GovernedChannel=s},function(e,t,n){"use strict";var r;!(function(e){!(function(e){e[e.Feedback=0]="Feedback",e[e.Nps=1]="Nps",e[e.Psat=2]="Psat",e[e.Bps=3]="Bps",e[e.Fps=4]="Fps",e[e.Nlqs=5]="Nlqs",e[e.Intercept=6]="Intercept",e[e.GenericMessagingSurface=12]="GenericMessagingSurface"})(e.Type||(e.Type={})),e.DOM_FEEDBACKSURVEY_TAGNAME="FeedbackSurvey",e.DOM_NPS_TAGNAME="Nps",e.DOM_PSAT_TAGNAME="Psat",e.DOM_BPS_TAGNAME="Bps",e.DOM_FPS_TAGNAME="Fps",e.DOM_NLQS_TAGNAME="Nlqs",e.DOM_INTERCEPT_TAGNAME="Intercept",e.LAUNCHER_TYPE_DEFAULT="survey"})(r||(r={})),e.exports=r},function(e,t,n){"use strict";var r;!(function(e){e.DOM_PROMPT_TAGNAME="Prompt",e.DOM_COMMENT_TAGNAME="Comment",e.DOM_RATING_TAGNAME="Rating",e.DOM_CVSURVEY_TAGNAME="CVSurvey",e.DOM_MULTIPLECHOICE_TAGNAME="MultipleChoice",e.DOM_INTERCEPT_TAGNAME="Intercept",e.JSON_INTERCEPT_KEYNAME="intercept",e.JSON_INTERCEPTURL_KEYNAME="url",e.JSON_PROMPT_KEYNAME="prompt",e.JSON_PROMPTYESTEXT_KEYNAME="yesButtonText",e.JSON_PROMPTNOTEXT_KEYNAME="noButtonText",e.JSON_COMMENT_KEYNAME="comment",e.JSON_RATING_KEYNAME="rating",e.JSON_CVSURVEY_KEYNAME="cvSurvey",e.JSON_CVSURVEYFORMID_KEYNAME="formId",e.JSON_CVSURVEYTHEME_KEYNAME="theme",e.JSON_RATINGOPTIONS_KEYNAME="options",e.JSON_CVSURVEYPRODUCTNAME_KEYNAME="productName",e.JSON_CVSURVEYPLATFORM_KEYNAME="platform",e.JSON_TITLE_KEYNAME="title",e.JSON_QUESTION_KEYNAME="question",e.JSON_MULTIPLECHOICE_KEYNAME="multipleChoice",e.JSON_APPLICATION_KEYNAME="application",e.JSON_EXTENDEDMANIFESTDATA_KEYNAME="extendedManifestData",e.JSON_SURVEYSTRINGS_KEYNAME="surveyStrings",e.JSON_SURVEYSPECIFICDATA_KEYNAME="surveySpecificData"})(r||(r={})),e.exports=r},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{a(r.next(e))}catch(e){s(e)}}function u(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,u)}a((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return(function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}})([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.FloodgateEngine=void 0;var s=n(14),o=n(21),u=n(58),a=n(41),f=n(16),l=n(71),c=n(17),h=n(45),p=n(32),d=n(40),v=n(42),m=n(46),g=s.FileType,y=n(74),b=n(75),w=n(10),E=(function(){function e(){}return e.prototype.log_TriggerMet=function(e,t,n,r,i){},e.prototype.log_UserSelected=function(e,t,n,r){},e.prototype.log_CampaignLoad_Failed=function(e){},e.prototype.log_Error=function(e,t){},e.prototype.log_Event=function(e,t){},e.prototype.log_LocalError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e})(),S={run:function(e){},shouldAcceptActivity:function(e){return!0}},x=(function(){function e(t,n,r,i,s,o,u,a,f){if(this.initializationStatus=0,this.candidateSurveys={},this.launchedSurveys={},this.launchedLaunchers=[],this.surveyEventSent=[],this.staleTriggeredSurveysQueue=[],!t)throw new Error("surveyClient must not be null");if(!n)throw new Error("activityListener must not be null");if(!r)throw new Error("launcherFactory must not be null");if(!i)throw new Error("onSurveyActivatedCallback must not be null");if(!s)throw new Error("storage must not be null");if(!o)throw new Error("governor must not be null");if(!a)throw new Error("transporterFactory must not be null");this.surveyClient=t,this.activityListener=n,this.launcherFactory=r,this.onSurveyActivatedCallback=i,this.storage=s,this.governor=o,this.surveyActivationStatsProvider=u,this.governanceServiceClient=f,e.transporterFactory=a,this.loggedFirstStart=!1,this.setPendingSurveys(null),this.activityListener.clearSurveys();var l=this;this.activityListener.setCallback({run:function(e,t){l.onSurveyActivated(e,t)},shouldAcceptActivity:function(e){return l.shouldAcceptActivity(e)}})}return e.setTelemetryLogger=function(t){if(!t)throw new Error("telemetryLogger must not be null");e.telemetryLogger=t},e.getTelemetryLogger=function(){return e.telemetryLogger},e.getTransportFactory=function(){return e.transporterFactory},e.make=function(t,n,r,i,s,l,c,m,g,y,b){try{var w=h.GovernedChannelStateProviderFactory.make(i,s),E=v.SurveyActivationStatsProviderFactory.make(i,s),x=a.CampaignStateProviderFactory.make(i,s);return g.push(new o.FileSystemCampaignDefinitionProvider(i)),new e(new u.CampaignManager(x,g,l,c,t,new Date,y),new d(S,this.getTelemetryLogger),n,r,i,new p.Governor(w),E,m,b)}catch(e){this.telemetryLogger.log_Event(f.TelemetryEvent.FloodgateEngine.Make.Failed,{ErrorMessage:e&&e.toString(),ErrorDetails:e&&e.stack})}},e.prototype.mergeAndSave=function(){this.saveSettings(),this.saveSurveyActivationHistory(),this.saveSurveyEventActivityHistory(),this.surveyClient.saveCurrentState(),this.governor.saveChannelStates()},e.prototype.start=function(){if(2!==this.initializationStatus&&3!==this.initializationStatus)try{this.setInitializationStatus(2),this.loadSettingsAndPriorEventCounts();var t=this.getAvailableChannelTypes();this.surveyClient.refreshSurveyDefinitions(t),this.setPendingSurveysAndStartFloodgate(),this.setInitializationStatus(3)}catch(t){this.setInitializationStatus(1),e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.Start.Failed,{ErrorMessage:t&&t.toString(),ErrorDetails:t&&t.stack})}},e.prototype.startAsync=function(){if(2===this.initializationStatus||3===this.initializationStatus)return Promise.resolve();try{this.setInitializationStatus(2),this.loadSettingsAndPriorEventCounts();var t=this.getAvailableChannelTypes(),n=this;return new Promise(function(r,i){n.surveyClient.refreshSurveyDefinitionsAsync(t).then(function(){4===n.initializationStatus?(n.setInitializationStatus(3),n.stop(),e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.StartAsync.Stopped,{ErrorMessage:"Stopped because of a pending stop() call"})):n.setPendingSurveysAndStartFloodgate(),r()}).catch(function(t){n.setInitializationStatus(1),e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.StartAsync.Failed,{ErrorMessage:"Survey refresh error "+(t&&t.message)}),i(t)})})}catch(t){return this.setInitializationStatus(1),e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.StartAsync.Failed,{ErrorMessage:t&&t.toString(),ErrorDetails:t&&t.stack}),Promise.resolve()}},e.prototype.stop=function(){3===this.initializationStatus&&(this.mergeAndSave(),this.setPendingSurveys(null),this.updateActivityListenerWithCurrentSurveyDefinitions()),this.setInitializationStatus(4)},e.prototype.getActivityListener=function(){return this.activityListener},e.prototype.setInitializationStatus=function(e){this.initializationStatus=e},e.prototype.saveSettings=function(){this.storage.fileLock(g.FloodgateSettings);try{this.writeString(g.FloodgateSettings,l.FloodgateSettings.toJson(this.floodgateSettings))}finally{this.storage.fileUnlock(g.FloodgateSettings)}},e.prototype.loadSettingsAndPriorEventCounts=function(){try{this.previousSurveyActivationStats=this.surveyActivationStatsProvider.load();var t=this.previousSurveyActivationStats.getStats();for(var n in t)t.hasOwnProperty(n)&&(t[n].SurveyLaunchCountPerSession=0);this.previousSurveyEventActivityStats=m.SurveyStatCollectionEventActivity.fromJson(this.readString(g.SurveyEventActivityStats));var r=this.previousSurveyEventActivityStats.getStats();for(var n in r)r.hasOwnProperty(n)&&this.surveyEventSent.push(n);this.floodgateSettings=l.FloodgateSettings.fromJson(this.readString(g.FloodgateSettings))}catch(t){e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.Common.Error,{ErrorMessage:"Error loading prior settings/events "+(t&&t.toString())})}},e.prototype.getAvailableChannelTypes=function(){var e=this.governor.getAvailableChannelData(),t=[];return e.forEach(function(e){e&&t.push(e.getType())}),t},e.prototype.setPendingSurveysAndStartFloodgate=function(){this.setPendingSurveys(this.surveyClient.getAppSurveys()),this.updateActivityListenerWithCurrentSurveyDefinitions(),this.setInitializationStatus(3),this.loggedFirstStart||(this.loggedFirstStart=!0,this.getActivityListener().logActivity(d.FloodgateStartActivityName))},e.prototype.updateSurveyActivationStats=function(e){var t=e.getSurveyInfo(),n=t.getId(),r=this.previousSurveyActivationStats.getStats()[n]||new v.SurveyActivationStats;r.Type=e.getType(),r.ExpirationTimeUtc=t.getExpirationTimeUtc(),r.ActivationTimeUtc=new Date,r.SurveyLaunchCount++,r.SurveyLaunchCountPerSession++,this.previousSurveyActivationStats.addStats(n,r)},e.prototype.saveSurveyActivationHistory=function(){this.storage.fileLock(g.SurveyActivationStats);try{var e=this.surveyActivationStatsProvider.load(),t=this.previousSurveyActivationStats.getStats(),n=new v.SurveyStatCollectionActivation;for(var r in this.launchedSurveys)if(this.launchedSurveys.hasOwnProperty(r)){var i=this.launchedSurveys[r].getSurveyInfo().getId(),s=t[i];n.addStats(i,s)}e.accumulate(n),this.surveyActivationStatsProvider.save(e),this.previousSurveyActivationStats=e}finally{this.storage.fileUnlock(g.SurveyActivationStats)}},e.prototype.saveSurveyEventActivityHistory=function(){this.storage.fileLock(g.SurveyEventActivityStats);try{var e=m.SurveyStatCollectionEventActivity.fromJson(this.readString(g.SurveyEventActivityStats)),t=new Date,n=new m.SurveyStatCollectionEventActivity,r=function(e){if(i.candidateSurveys.hasOwnProperty(e)){var r=new m.SurveyEventActivityStats,s=i.candidateSurveys[e];if(!s.getSurveyInfo().isActiveForDate(t))return"continue";r.ExpirationTimeUtc=s.getSurveyInfo().getExpirationTimeUtc();var o=s.getSurveyInfo().getActivationEvent().getTrackingSet(),u=[],a=[];o.getList().forEach(function(e){e&&(e.getIsAggregate()?u.push(e.getActivity()):a.push(e.getActivity()))}),r.Counts=new Array(u.length);for(var f=0;f<u.length;f++)r.Counts[f]=i.activityListener.moveSessionCountIntoBaseCount(u[f],s.getSurveyInfo().getId());for(var l=0,c=a;l<c.length;l++){var h=c[l];i.activityListener.saveSessionTrackingActivity(h)}n.addStats(s.getSurveyInfo().getId(),r)}},i=this;for(var s in this.candidateSurveys)r(s);e.accumulate(n),this.writeString(g.SurveyEventActivityStats,m.SurveyStatCollectionEventActivity.toJson(e)),this.previousSurveyEventActivityStats=e}finally{this.storage.fileUnlock(g.SurveyEventActivityStats)}},e.prototype.setPendingSurveys=function(e){if(this.candidateSurveys={},e)for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];this.launcherFactory.AcceptsSurvey(n)&&(this.candidateSurveys[t]=n)}},e.prototype.getCurrentSurveyDefinitions=function(){var t=this,n=new Array,r=this.getAllCampaignDefinitionIDs(),i=this.getAllCandidateCampaignDefinitionIDs(),s=this.surveyClient.getCampaignDefinitions(),o=function(e){if(b.isBusinessCriticalSurvey(e))return!0;var n=t.previousSurveyActivationStats.getBySurveyId(e.getId());return!(!b.isMultiLaunchSurvey(e)||b.hasSurveyReachedMaxLaunches(e,n)||b.hasSurveyReachedMaxLaunchesPerSession(e,n))||!(n||!e.isActiveForDate(new Date))};for(var u in this.candidateSurveys)if(this.candidateSurveys.hasOwnProperty(u)){var a=this.candidateSurveys[u],f=a.getSurveyInfo();if(!s[null==f?void 0:f.getBackEndId()]||!o(f))continue;if(this.surveyEventSent.indexOf(u)<0){this.surveyEventSent.push(u);var l=this.getAdditionalSurveyInfoForTelemetry(a,null,r,i);e.telemetryLogger.log_UserSelected(f.getBackEndId(),f.getId(),a.getType(),JSON.stringify(l))}n.push(a)}return n},e.prototype.getAdditionalSurveyInfoForTelemetry=function(e,t,n,r){var i,s,o,u,a=this.surveyClient.getCampaignDefinitions()[e.getCampaignId()];i=a.nominationScheme.percentageNumerator,s=a.nominationScheme.percentageDenominator,o=a.nominationScheme.nominationPeriod.asTimeIntervalSeconds(),o=w.isNOU(o)?-1:o,u=a.nominationScheme.cooldownPeriod.asTimeIntervalSeconds(),u=w.isNOU(u)?-1:u;var f=e.getSurveyInfo();return{allCampaignDefinitionIDs:n,allCandidateCampaignDefinitionIDs:r,channelType:f.getGovernedChannelType(),contextCount:t?t.length:void 0,cooldownPeriodNumber:u,nominationPeriodNumber:o,percentageDenominator:s,percentageNumerator:i,surveyLauncherType:e.getLauncherType(),businessLevel:f.getBusinessLevel(),maxLaunches:f.getMaxLaunches(),maxLaunchesPerSession:f.getMaxLaunchesPerSession()}},e.prototype.getAllCandidateCampaignDefinitionIDs=function(){var e=[];for(var t in this.candidateSurveys)if(this.candidateSurveys.hasOwnProperty(t)){var n=this.candidateSurveys[t];e.push(n.getSurveyInfo().getBackEndId())}return e},e.prototype.getAllCampaignDefinitionIDs=function(){var e=this.surveyClient.getCampaignDefinitions(),t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];t.push(r.campaignId)}return t},e.prototype.updateActivityListenerWithCurrentSurveyDefinitions=function(){for(var e=[],t=0,n=this.getCurrentSurveyDefinitions();t<n.length;t++){var r=n[t].getSurveyInfo(),i=new y.ActivityTrackingContract(r.getId(),r.getActivationEvent().getTrackingSet());e.push(i)}this.activityListener.SetActivityTrackingContracts(e,this.previousSurveyEventActivityStats)},e.prototype.setCriticalPendingSurveysAndUpdateActivityListener=function(){var e={};for(var t in this.candidateSurveys)if(this.candidateSurveys.hasOwnProperty(t)){var n=this.candidateSurveys[t];b.isCriticalSurvey(n.getSurveyInfo())&&(e[t]=n)}Object.keys(e).length>0&&(this.setPendingSurveys(e),this.updateActivityListenerWithCurrentSurveyDefinitions())},e.prototype.shouldAcceptActivity=function(e){return 3===this.initializationStatus||e===d.FloodgateStartActivityName},e.prototype.onSurveyActivated=function(t,n){for(var r,i=0,s=this.getCurrentSurveyDefinitions();i<s.length;i++){var o=s[i];if(o.getSurveyInfo().getId()===t){r=o;break}}if(w.isNOU(r))e.getTelemetryLogger().log_Error(f.TelemetryEvent.FloodgateEngine.OnSurveyActivated.SurveyNotDefined,"Survey is not defined in the current survey definitions.");else{var u=r.getSurveyInfo().getActivationEvent().getTrackingSet().getActivityTrackingInfo(this.activityListener,t),a=this.getAdditionalSurveyInfoForTelemetry(r,n,this.getAllCampaignDefinitionIDs(),this.getAllCandidateCampaignDefinitionIDs());a.governanceServiceClientState=this.governanceServiceClient.getClientState(),e.telemetryLogger.log_TriggerMet(r.getSurveyInfo().getBackEndId(),r.getSurveyInfo().getId(),r.getType(),u,JSON.stringify(a));try{var l=r.getSurveyInfo().getGovernedChannelType();this.governanceServiceClient.isEnabled(l)?(this.staleTriggeredSurveysQueue.push(r),1===this.staleTriggeredSurveysQueue.length&&this.checkGovernanceServiceAndActivateSurvey(r,l,n)):this.activateSurvey(r,l,n)}catch(t){e.telemetryLogger.log_Event(f.TelemetryEvent.FloodgateEngine.OnSurveyActivated.Error,{ErrorMessage:"Error activating survey "+(t&&t.toString()),ErrorDetails:t&&t.stack})}}},e.prototype.activateSurvey=function(t,n,r){var i=!1;if(this.candidateSurveys[t.getSurveyInfo().getId()]&&t.getSurveyInfo().isActiveForDate(new Date)){if(this.governor.refreshChannelData(),b.isCriticalSurvey(t.getSurveyInfo()))i=!0;else if(this.governor.isChannelOpen(n))if(this.surveyActivationStatsProvider.load().getBySurveyId(t.getSurveyInfo().getId()))e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.OnSurveyActivated.ActivationStatsSuppressedSurvey,{CampaignId:t.getSurveyInfo().getBackEndId(),SurveyId:t.getSurveyInfo().getId()});else if(0===Object.keys(this.launchedSurveys).length)i=!0;else{var s=Object.values(this.launchedSurveys)[0];w.isNOU(s)||e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.OnSurveyActivated.SessionSuppressedSurvey,{CampaignId:s.getSurveyInfo().getBackEndId(),SurveyId:s.getSurveyInfo().getId()})}else e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.OnSurveyActivated.ClosedChannelType,{ClosedChannelType:c.GovernedChannelType[n]});i&&(this.launchedSurveys[t.getSurveyInfo().getId()]=t)}if(this.updateSurveyActivationStats(t),this.mergeAndSave(),this.activityListener.clearSurveys(),this.staleTriggeredSurveysQueue=[],i){this.governor.startChannelCooldown(n);var o=t.getSurveyInfo(),u=!0;if(b.isBusinessCriticalSurvey(o))u=!1;else if(b.isMultiLaunchSurvey(o)){var a=this.previousSurveyActivationStats.getBySurveyId(o.getId());u=b.hasSurveyReachedMaxLaunches(o,a)}this.surveyClient.onSurveyActivated(o,u),this.launchLauncher(t,r),this.setCriticalPendingSurveysAndUpdateActivityListener()}},e.prototype.checkGovernanceServiceAndActivateSurvey=function(t,n,s){return r(this,void 0,void 0,function(){var r,o,u,a,l,c;return i(this,function(i){switch(i.label){case 0:return r=this.surveyClient.getCampaignDefinitions()[t.getCampaignId()],o=r.nominationScheme.cooldownPeriod.asTimeIntervalSeconds(),u=p.Governor.GetChannelCoolDown(n),[4,this.governanceServiceClient.checkGovernancePermitAsync(t,o,u,n)];case 1:return a=i.sent(),l=!1,e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.CheckGovernanceServiceAndActivateSurvey.GovernanceServiceClientCompleted,{Message:JSON.stringify(this.createGorvernanceResponseTelemetry(a))}),3!==this.initializationStatus?[2]:(a.error?this.governanceServiceClient.shouldForceDisplay()&&(l=!0,e.getTelemetryLogger().log_Event(f.TelemetryEvent.FloodgateEngine.CheckGovernanceServiceAndActivateSurvey.GovernanceServiceForceToDisplay,{ErrorMessage:a.errorMessage})):a.permission?l=!0:(c=a.lastTriggerSurvey,this.governor.startChannelCooldown(n,c.lastTriggerSurveyTime),this.clearSurveyWithChannel(n)),l?(this.activateSurvey(t,n,s),[2]):this.staleTriggeredSurveysQueue.length<=1?(this.staleTriggeredSurveysQueue=[],[2]):(this.staleTriggeredSurveysQueue.shift(),this.checkGovernanceServiceAndActivateSurvey(this.staleTriggeredSurveysQueue[0],n,s),[2]))}})})},e.prototype.readString=function(e){return this.storage.read(e)},e.prototype.writeString=function(e,t){this.storage.write(e,t)},e.prototype.launchLauncher=function(e,t){var n=this.launcherFactory.makeSurveyLauncher(e);n&&(this.launchedLaunchers.push(n),this.onSurveyActivatedCallback.onSurveyActivated(n,e,{contextInfo:t}))},e.prototype.clearSurveyWithChannel=function(e){var t={};for(var n in this.candidateSurveys)if(this.candidateSurveys.hasOwnProperty(n)){var r=this.candidateSurveys[n];r.getSurveyInfo().getGovernedChannelType()!==e&&(t[n]=r)}this.candidateSurveys=t,this.activityListener.UpdateActivityTrackingContracts(this.candidateSurveys)},e.prototype.createGorvernanceResponseTelemetry=function(e){return{FloodgateEngineStatus:this.initializationStatus.toString(),GovernanceServiceResult:e,StaleTriggeredSurveysQueueCount:this.staleTriggeredSurveysQueue.length-1}},e.telemetryLogger=new E,e})();t.FloodgateEngine=x},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.FileSystemCampaignDefinitionProvider=t.FilterValidCampaignDefinitions=t.CampaignDefinition=t.CampaignSurveyTemplateIntercept=t.CampaignSurveyTemplateGenericMessagingSurface=t.CampaignSurveyTemplateNps11PointStatic=t.CampaignSurveyTemplateNps5PointStatic=t.CampaignSurveyTemplateNps=t.CampaignSurveyTemplateNlqs=t.CampaignSurveyTemplateFps=t.CampaignSurveyTemplate=t.CampaignSurveyMetadata=t.CampaignSurveyContentComment=t.CampaignSurveyContentRating=t.CampaignSurveyContentIntercept=t.CampaignSurveyContentPrompt=t.CampaignSurveyContentCVSurvey=t.CampaignSurveyContentMultipleChoice=t.CampaignSurveyContent=t.CampaignSurveyEventCountedActivitySequence=t.CampaignSurveyEventCountedActivity=t.CampaignSurveyEvent=t.CampaignNominationSchemeRatioPercentage=t.CampaignNominationScheme=t.CampaignDistributionRamp=t.CampaignDistribution=t.CampaignAdditionalDataRequested=t.CampaignDurationSingleBuildChange=t.CampaignDurationTimeInterval=t.CampaignDuration=t.CampaignScopeUserFactAll=t.CampaignScopeUserFactAny=t.CampaignScopeEnvironmentCrossProduct=t.CampaignScopeAny=t.CampaignScope=t.CampaignLanguageRangeLanguageSubtag=t.CampaignLanguageRange=void 0;var s=n(14),o=n(16),u=n(20),a=n(17),f=n(10),l=n(76),c=f.getDistantFuture,h=f.isBoolean,p=f.isNOU,d=f.isNumber,v=f.isString,m=f.isUtcDatetimeString,g=f.stringToDate,y=(function(){function e(){}return e.deserialize=function(e){var t;return e&&0===e.Type&&(t=b.deserialize(e)),void 0===t?null:t},e.prototype.validate=function(){return!0},e})();t.CampaignLanguageRange=y;var b=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return e&&(n.languageSubTag=e.Value),n.validate()?n:null},t.prototype.isInRange=function(e){if(p(e))return!1;var t=f.extractLanguageSubtag(e);return!p(t)&&t.toLocaleUpperCase()===this.languageSubTag.toLocaleUpperCase()},t.prototype.validate=function(){return!(!e.prototype.validate.call(this)||p(this.languageSubTag)||!v(this.languageSubTag)||!f.isValidLanguageSubTag(this.languageSubTag))},t})(y);t.CampaignLanguageRangeLanguageSubtag=b;var w=(function(){function e(){}return e.deserialize=function(e){var t;if(p(e))return null;switch(e.Type){case 0:t=E.deserialize(e);break;case 1:t=S.deserialize(e);break;case 2:t=x.deserialize(e);break;case 3:t=T.deserialize(e)}return void 0===t?null:t},e.prototype.validate=function(){return!0},e})();t.CampaignScope=w;var E=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){return new t},t.prototype.isInScope=function(){return!0},t.prototype.validate=function(){return!!e.prototype.validate.call(this)},t})(w);t.CampaignScopeAny=E;var S=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t,r=[];if(p(e))return null;for(var i in e.Languages)if(e.Languages.hasOwnProperty(i)){var s=e.Languages[i];s&&r.push(y.deserialize(s))}return 0===r.length&&(r=null),n.languageRanges=r,n.validate()?n:null},t.prototype.setEnvironmentProvider=function(e){this.environmentProvider=e},t.prototype.isInScope=function(){if(p(this.languageRanges))return!0;if(p(this.environmentProvider)||!this.environmentProvider.getLanguage())return!1;var e=this.environmentProvider.getLanguage();for(var t in this.languageRanges)if(this.languageRanges.hasOwnProperty(t)&&this.languageRanges[t].isInRange(e))return!0;return!1},t.prototype.validate=function(){if(!e.prototype.validate.call(this))return!1;if(this.languageRanges)for(var t in this.languageRanges)if(this.languageRanges.hasOwnProperty(t)&&!this.languageRanges[t])return!1;return!0},t})(w);t.CampaignScopeEnvironmentCrossProduct=S;var x=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return n.userFacts=l.deserializeUserFacts(e),n.validate()?n:null},t.prototype.setUserFactsProvider=function(e){this.userFactsProvider=e},t.prototype.isInScope=function(){var e=this;return!!p(this.userFacts)||!!this.userFactsProvider&&this.userFacts.some(function(t){var n=e.userFactsProvider.getUserFact(t.getName());return t.isAMatch(n)})},t.prototype.validate=function(){return!!e.prototype.validate.call(this)&&l.validateUserFacts(this.userFacts)},t})(w);t.CampaignScopeUserFactAny=x;var T=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return n.userFacts=l.deserializeUserFacts(e),n.validate()?n:null},t.prototype.setUserFactsProvider=function(e){this.userFactsProvider=e},t.prototype.isInScope=function(){var e=this;if(p(this.userFacts))return!0;if(!this.userFactsProvider)return!1;var t=this.userFacts.filter(function(t){var n=e.userFactsProvider.getUserFact(t.getName());return!t.isAMatch(n)});if(t.length>0){var n=t.map(function(e){return e.getName()});return u.FloodgateEngine.getTelemetryLogger().log_Event(o.TelemetryEvent.Floodgate.UserFactsSpecIsAMatch.Summary,{Count:t.length,Message:n.toString()}),!1}return!0},t.prototype.validate=function(){return!!e.prototype.validate.call(this)&&l.validateUserFacts(this.userFacts)},t})(w);t.CampaignScopeUserFactAll=T;var N=(function(){function e(){}return e.deserialize=function(e){var t;if(p(e))return null;switch(e.Type){case 0:t=C.deserialize(e);break;case 1:t=k.deserialize(e)}return void 0===t?null:t},e.prototype.validate=function(){return!0},e})();t.CampaignDuration=N;var C=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return e&&(n.intervalSeconds=e.IntervalSeconds),n.validate()?n:null},t.prototype.asTimeIntervalSeconds=function(){return this.intervalSeconds},t.prototype.validate=function(){return!!e.prototype.validate.call(this)&&!!d(this.intervalSeconds)},t})(N);t.CampaignDurationTimeInterval=C;var k=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){return new t},t.prototype.asTimeIntervalSeconds=function(){return null},t})(N);t.CampaignDurationSingleBuildChange=k;var L=(function(){function e(){}return e.deserialize=function(t){var n=new e;if(!p(t)){n.additionalData=[];for(var r=0,i=t;r<i.length;r++)"EmailAddress"===i[r]&&n.additionalData.push(0)}return n.validate()?n:null},e.prototype.validate=function(){return!p(this.additionalData)},e})();t.CampaignAdditionalDataRequested=L;var A=(function(){function e(){}return e.deserialize=function(e){var t;return e&&0===e.Type&&(t=O.deserialize(e)),void 0===t?null:t},e.prototype.validate=function(){return!0},e})();t.CampaignDistribution=A;var O=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return e&&(n.maxDelaySeconds=e.MaxDelaySeconds,n.chunks=e.Chunks),n.validate()?n:null},t.prototype.validate=function(){return!(!e.prototype.validate.call(this)||!d(this.maxDelaySeconds)||this.maxDelaySeconds<0||!d(this.chunks)||this.chunks<0)},t})(A);t.CampaignDistributionRamp=O;var M=(function(){function e(){}return e.deserialize=function(e){var t;return e&&0===e.Type&&(t=_.deserialize(e)),void 0===t?null:t},e.prototype.getActiveSurveyTimeIntervalSeconds=function(){var e=this.nominationPeriod.asTimeIntervalSeconds();return d(e)?e:this.fallbackSurveyDurationSeconds},e.prototype.calculateSurveyStartTimeFromDate=function(e){return e||new Date},e.prototype.calculateSurveyExpirationTimeFromSurveyStartTime=function(e){return e=e||new Date,f.addSecondsWithoutOverflow(e,this.getActiveSurveyTimeIntervalSeconds())},e.prototype.getCampaignCooldown=function(e){return e?this.cooldownPeriod:this.nominationPeriod},e.prototype.validate=function(){return!(p(this.nominationPeriod)||(p(this.cooldownPeriod)&&(this.cooldownPeriod=this.nominationPeriod),!d(this.nominationPeriod.asTimeIntervalSeconds())&&(!d(this.fallbackSurveyDurationSeconds)||this.fallbackSurveyDurationSeconds<=0)))},e})();t.CampaignNominationScheme=M;var _=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return p(e)?null:(e.DistributionModel&&(n.distributionModel=A.deserialize(e.DistributionModel)),e.CooldownPeriod&&(n.cooldownPeriod=N.deserialize(e.CooldownPeriod)),e.NominationPeriod&&(n.nominationPeriod=N.deserialize(e.NominationPeriod)),n.fallbackSurveyDurationSeconds=e.FallbackSurveyDurationSeconds,n.percentageDenominator=e.PercentageDenominator,n.percentageNumerator=e.PercentageNumerator,n.validate()?n:null)},t.prototype.evaluateNominationRules=function(){var e=Math.random();return Math.floor(e*this.percentageDenominator)<this.percentageNumerator},t.prototype.validate=function(){return!(!e.prototype.validate.call(this)||!d(this.percentageDenominator)||!d(this.percentageNumerator)||this.percentageDenominator<=0||this.percentageNumerator<0||this.percentageNumerator>this.percentageDenominator)},t})(M);t.CampaignNominationSchemeRatioPercentage=_;var D=(function(){function e(){}return e.deserialize=function(e){var t;if(p(e))return null;switch(e.Type){case 0:t=P.deserialize(e);break;case 1:t=H.deserialize(e)}return void 0===t?null:t},e.prototype.validate=function(){return!0},e})();t.CampaignSurveyEvent=D;var P=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return p(e)?null:(n.activity=e.Activity,n.count=e.Count,n.isAggregate=e.IsAggregate,n.validate()?n:null)},t.prototype.validate=function(){return!(!e.prototype.validate.call(this)||p(this.activity)||!v(this.activity)||!d(this.count)||this.count<=0||!h(this.isAggregate))},t})(D);t.CampaignSurveyEventCountedActivity=P;var H=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t,r=[];if(p(e))return null;for(var i in e.Sequence)if(e.Sequence.hasOwnProperty(i)){var s=e.Sequence[i];s&&r.push(P.deserialize(s))}return 0===r.length&&(r=null),n.sequence=r,n.validate()?n:null},t.prototype.validate=function(){if(!e.prototype.validate.call(this))return!1;if(p(this.sequence))return!1;for(var t in this.sequence)if(this.sequence.hasOwnProperty(t)&&!this.sequence[t])return!1;return!0},t})(D);t.CampaignSurveyEventCountedActivitySequence=H;var B=(function(){function e(){}return e.deserialize=function(t,n){var r=new e;return p(t)?null:(r.prompt=I.deserialize(t.Prompt),r.rating=R.deserialize(t.Rating),r.comment=U.deserialize(t.Question),r.multipleChoice=j.deserialize(t.MultipleChoice),r.intercept=q.deserialize(t.Intercept),r.cvSurvey=F.deserialize(t.CVSurveyParams),r.validate(n)?r:null)},e.prototype.validate=function(e){return!(p(this.intercept)&&(p(this.prompt)||(e?p(this.rating)&&p(this.multipleChoice)&&p(this.comment):p(this.rating)||p(this.comment))))},e})();t.CampaignSurveyContent=B;var j=(function(){function e(){}return e.deserialize=function(t){var n=new e;return p(t)?null:(n.question=t.Question,n.availableOptions=t.AvailableOptions,n.minNumberOfSelectedOptions=t.MinNumberOfSelectedOptions,n.maxNumberOfSelectedOptions=t.MaxNumberOfSelectedOptions,n.validate()?n:null)},e.prototype.validate=function(){if(p(this.question)||!v(this.question)||p(this.availableOptions)||!Array.isArray(this.availableOptions)||this.availableOptions.length<2||p(this.minNumberOfSelectedOptions)||!d(this.minNumberOfSelectedOptions)||p(this.maxNumberOfSelectedOptions)||!d(this.maxNumberOfSelectedOptions))return!1;for(var e in this.availableOptions)if(this.availableOptions.hasOwnProperty(e)&&!v(this.availableOptions[e]))return!1;return!0},e})();t.CampaignSurveyContentMultipleChoice=j;var F=(function(){function e(){}return e.deserialize=function(t){var n=new e;return p(t)?null:(n.customerVoiceFormId=t.CustomerVoiceFormId,n.validate()?n:null)},e.prototype.validate=function(){return!p(this.customerVoiceFormId)&&v(this.customerVoiceFormId)},e})();t.CampaignSurveyContentCVSurvey=F;var I=(function(){function e(){}return e.deserialize=function(t){var n=new e;return p(t)?null:(n.title=t.Title,n.question=t.Question,n.yesLabel=t.YesLabel,n.noLabel=t.NoLabel,n.validate()?n:null)},e.prototype.validate=function(){return!(p(this.title)||!v(this.title)||p(this.question)||!v(this.question)||p(this.yesLabel)||!v(this.yesLabel)||p(this.noLabel)||!v(this.noLabel))},e})();t.CampaignSurveyContentPrompt=I;var q=(function(){function e(){}return e.deserialize=function(t){var n=new e;return p(t)?null:(n.title=t.Title,n.question=t.Question,n.url=t.Url,n.validate()?n:null)},e.prototype.validate=function(){return!(p(this.title)||!v(this.title)||p(this.question)||!v(this.question)||p(this.url)||!v(this.url))},e})();t.CampaignSurveyContentIntercept=q;var R=(function(){function e(){}return e.deserialize=function(t){var n=new e;return p(t)?null:(n.isZeroBased=t.IsZeroBased,n.question=t.Question,n.ratingValuesAscending=t.RatingValuesAscending,n.validate()?n:null)},e.prototype.validate=function(){if(p(this.question)||!v(this.question)||p(this.ratingValuesAscending)||!Array.isArray(this.ratingValuesAscending)||this.ratingValuesAscending.length<2||this.ratingValuesAscending.length>11)return!1;if(p(this.isZeroBased))this.isZeroBased=!1;else if(!h(this.isZeroBased))return!1;for(var e in this.ratingValuesAscending)if(this.ratingValuesAscending.hasOwnProperty(e)&&!v(this.ratingValuesAscending[e]))return!1;return!0},e})();t.CampaignSurveyContentRating=R;var U=(function(){function e(){}return e.deserialize=function(t){var n=new e;return p(t)?null:(n.question=t.Question,n.validate()?n:null)},e.prototype.validate=function(){return!(p(this.question)||!v(this.question))},e})();t.CampaignSurveyContentComment=U;var z=(function(){function e(){}return e.deserialize=function(t){if(p(t))return null;var n=new e;return n.contentMetadata=t.ContentMetadata,n.validate()?n:null},e.prototype.validate=function(){return!(p(this.contentMetadata)||!f.isObject(this.contentMetadata))},e})();t.CampaignSurveyMetadata=z;var W=(function(){function e(){}return e.deserialize=function(e){var t;if(p(e))return null;switch(e.Type){case 0:t=J.deserialize(e);break;case 1:t=K.deserialize(e);break;case 2:t=X.deserialize(e);break;case 3:t=V.deserialize(e);break;case 4:t=$.deserialize(e);break;case 22:t=Q.deserialize(e);break;case 5:t=G.deserialize(e)}return p(t)?null:t},e.prototype.validate=function(){return!p(this.activationEvent)},e})();t.CampaignSurveyTemplate=W;var X=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return p(e)?null:(n.activationEvent=D.deserialize(e.ActivationEvent),n.content=B.deserialize(e.Content,!0),n.validate()?n:null)},t.prototype.validate=function(){return!(!e.prototype.validate.call(this)||p(this.content))},t})(W);t.CampaignSurveyTemplateFps=X;var V=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return p(e)?null:(n.activationEvent=D.deserialize(e.ActivationEvent),n.content=B.deserialize(e.Content),n.validate()?n:null)},t.prototype.validate=function(){return!(!e.prototype.validate.call(this)||p(this.content))},t})(W);t.CampaignSurveyTemplateNlqs=V;var $=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return p(e)?null:(n.activationEvent=D.deserialize(e.ActivationEvent),n.content=B.deserialize(e.Content),n.validate()?n:null)},t.prototype.validate=function(){return!(!e.prototype.validate.call(this)||p(this.content))},t})(W);t.CampaignSurveyTemplateNps=$;var J=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return p(e)?null:(n.activationEvent=D.deserialize(e.ActivationEvent),n.validate()?n:null)},t.prototype.validate=function(){return!!e.prototype.validate.call(this)},t})(W);t.CampaignSurveyTemplateNps5PointStatic=J;var K=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return p(e)?null:(n.activationEvent=D.deserialize(e.ActivationEvent),n.validate()?n:null)},t.prototype.validate=function(){return!!e.prototype.validate.call(this)},t})(W);t.CampaignSurveyTemplateNps11PointStatic=K;var Q=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){if(p(e))return null;var n=new t;return n.activationEvent=D.deserialize(e.ActivationEvent),n.metadata=z.deserialize(e.Metadata),n.maxLaunches=e.MaxLaunches,n.maxLaunchesPerSession=e.MaxLaunchesPerSession,n.preferredLaunchType=e.PreferredLaunchType,n.validate()?n:null},t.prototype.validate=function(){return!(!e.prototype.validate.call(this)||p(this.metadata)||(!p(this.maxLaunches)&&(!d(this.maxLaunches)||this.maxLaunches<=0)||!p(this.maxLaunchesPerSession)&&(!d(this.maxLaunchesPerSession)||this.maxLaunchesPerSession<=0)?(u.FloodgateEngine.getTelemetryLogger().log_LocalError("Invalid Multi Launch settings",this.maxLaunches,this.maxLaunchesPerSession),1):d(this.maxLaunches)&&d(this.maxLaunchesPerSession)&&this.maxLaunchesPerSession>this.maxLaunches?(u.FloodgateEngine.getTelemetryLogger().log_LocalError("Invalid Multi launch settings",this.maxLaunches,this.maxLaunchesPerSession),1):!p(this.preferredLaunchType)&&!v(this.preferredLaunchType)&&(u.FloodgateEngine.getTelemetryLogger().log_LocalError("Invalid launcher type",this.preferredLaunchType),1)))},t})(W);t.CampaignSurveyTemplateGenericMessagingSurface=Q;var G=(function(e){function t(){return e.call(this)||this}return i(t,e),t.deserialize=function(e){var n=new t;return p(e)?null:(n.activationEvent=D.deserialize(e.ActivationEvent),n.content=B.deserialize(e.Content),n.validate()?n:null)},t.prototype.validate=function(){return!(!e.prototype.validate.call(this)||p(this.content))},t})(W);t.CampaignSurveyTemplateIntercept=G;var Y=(function(){function e(){}return e.deserialize=function(t){var n=new e;if(p(t))return null;n.campaignId=t.CampaignId,n.governedChannelType=t.GovernedChannelType,n.startTime=t.StartTimeUtc,n.endTime=t.EndTimeUtc,n.launcherType=t.LauncherType,n.primaryPriority=t.PrimaryPriority,n.tags=t.Tags;var r=L.deserialize(t.AdditionalDataRequested);return n.additionalDataRequested=r?r.additionalData:[],t.SurveyTemplate&&(n.surveyTemplate=W.deserialize(t.SurveyTemplate)),t.NominationScheme&&(n.nominationScheme=M.deserialize(t.NominationScheme)),t.Scope&&(n.scope=w.deserialize(t.Scope)),p(t.BusinessLevel)||(n.businessLevel=t.BusinessLevel),n.validate()?n:(u.FloodgateEngine.getTelemetryLogger().log_LocalError("Invalid definition",t),null)},e.prototype.validate=function(){var e,t;if(p(this.scope)&&(this.scope=new E),p(this.campaignId)||!v(this.campaignId))return!1;if(!d(this.governedChannelType)||!f.isEnumValue(this.governedChannelType,a.GovernedChannelType))return!1;if(p(this.nominationScheme))return!1;if(p(this.surveyTemplate))return!1;if(!p(this.launcherType)&&!v(this.launcherType))return!1;if("customervoice"===this.launcherType&&p(null===(t=null===(e=this.surveyTemplate.content)||void 0===e?void 0:e.cvSurvey)||void 0===t?void 0:t.customerVoiceFormId))return!1;if(!p(this.primaryPriority)&&!d(this.primaryPriority))return!1;if(this.tags&&!Array.isArray(this.tags))return!1;if(p(this.startTime))this.startTime=c();else{if(!m(this.startTime))return!1;this.startTime=g(this.startTime)}if(p(this.endTime)||"string"==typeof this.endTime&&""===this.endTime)this.endTime=c();else{if(!m(this.endTime))return!1;this.endTime=g(this.endTime)}return!0},e})();function Z(e){var t=[];if(p(e))return{result:t,error:"Empty"};if(!Array.isArray(e))return{result:t,error:"Not an array"};for(var n=[],r=0;r<e.length;r++){var i=e[r];if(i){var s=Y.deserialize(i);s?t.push(s):n.push(r)}else n.push(r)}return{result:t,error:n.length>0?"Invalid campaign definitions at indexes: "+n.toString():void 0}}t.CampaignDefinition=Y,t.FilterValidCampaignDefinitions=Z;var ee=(function(){function e(e){if(p(e))throw new Error("storage must not be null");this.storage=e}return e.prototype.load=function(){var e,t=this.storage.read(s.FileType.CampaignDefinitions);if(p(t))return[];try{e=JSON.parse(t)}catch(e){return u.FloodgateEngine.getTelemetryLogger().log_CampaignLoad_Failed(e.toString()),[]}return Z(e).result},e.prototype.loadAsync=function(){var e=this.load();return new Promise(function(t,n){t(e)})},e})();t.FileSystemCampaignDefinitionProvider=ee},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n(6),i=n(4),s=n(2),o=n(1);var u=(function(){function e(e){this.screenshot=e}return e.prototype.getContent=function(){var e;try{e=this.screenshot.toDataURL("image/jpeg").split(",")[1]}catch(t){s.b().logEvent(s.a.Shared.Screenshot.GetContent.Failed.DefaultImage.Returned.VALUE,2,{ErrorMessage:t.toString()}),e="iVBORw0KGgoAAAANSUhEUgAAAN0AAAA+AQMAAACV2ox1AAAABGdBTUEAALGPC/xhBQAAAAZQTFRFAAAA////pdmf3QAAAAlwSFlzAAAOwgAADsIBFShKgAAAAjtJREFUSMfV1M1rE0EUAHDBa5r8A9vkL6giFiI0JH+Ih9KLx8TaukkJugShHgrJzYvkVPQkUqgwSePLEELaU+zBg8JKVvSQQNydlsadwCQzziRZ82ETxYMfc3gD8+MxjzcfV8T80f0vkQ8i68tAPSMSQ0PkI6QDpEPkZBHy1Wp1/zjni2lrZq2T2uikDG17A54Hr0vsvwXIl3WXt02zeIHQBSq3DxHk7VO55zIFgLLrcmaaQBGiqCwQArBVQTbNZODNBB5Ee2EEr5eGiDG4k5mcqcy+Ksh+N8K2+bRI1Z68fRMVoV+XmcFwpQJZGohpkds1WtjppGLaq51a2b8yp310UW9/H8VfRj68CIKRsWCFPCCEM419S4bSAOmPmdb3TBrQ4lmnt9n4/Hiv5fTunsOzXbJfLR2rU3Fd5ugOe9mw0lvNOCNxyDdIHkpHCv0S3a+MS0yT+4wkAKx1gBJeVxeMRhSeNZpXJfY+zqAVl+g0mCFRJMgs6oy9+MCMrWZaJJwiWFjuWcIShf+Wk2W9e59OHu21WPdsswZNLKs9wV77mJiaMVbBQ+/1jGZDofFLuOBU/jzG6OQKnkLOZ5EvwolMX2Q19TAX9MWyy/aNarewfZptechdLn8B3TatB/YXB2j4MKw3jTHKX4AO0CbqaSddMokHUbr0PpSXmFG4O4WIu86asCVihfoM6nUmse5gGkbJOyThVesX4UI0d00LBYMr55VuIZl8MkY1uOiTy9v3c+ShuXj5+NdQdL8B+5gmw8WZuREAAAAASUVORK5CYII="}for(var t=atob(e),n=[],r=0;r<t.length;r++)n.push(t.charCodeAt(r));return new Blob([new Uint8Array(n)],{type:"image/jpeg"})},e})(),a=n(7),f=(function(){function e(e,t,n,r,i,s,o,u){this.manifestData={appId:t,application:s,clientFeedbackId:i,manifestType:e,source:"Client",submitTime:n,telemetry:o,type:l(r),web:u}}return e.prototype.getExtendedManifestData=function(){return this.manifestData.application.extendedManifestData},e.prototype.setComment=function(e){this.manifestData.comment=e},e.prototype.setEmail=function(e){this.manifestData.email=e},e.prototype.setCategory=function(e){this.manifestData.telemetry=this.manifestData.telemetry||{},this.manifestData.telemetry.featureArea=e},e.prototype.setAppData=function(e){this.manifestData.application=this.manifestData.application||{},this.manifestData.application.appData=e},e.prototype.setExtendedManifestData=function(e){this.manifestData.application=this.manifestData.application||{},this.manifestData.application.extendedManifestData=e},e.prototype.setClientFeedbackId=function(e){this.manifestData.clientFeedbackId=e},e.prototype.getClientFeedbackId=function(){return this.manifestData.clientFeedbackId},e.prototype.setValues=function(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this.manifestData.hasOwnProperty(t)?this.manifestData[t]=i.m(e[t],this.manifestData[t]):this.manifestData[t]=e[t])},e.prototype.getContent=function(){return new Blob([JSON.stringify(this.manifestData)],{type:"application/json"})},e})();function l(e){return"Survey"===e?e:a.c[e]}var c=(function(){function e(e,t,n,s,o,u,a){this.clientFeedbackId=i.i(),this.manifest=new f(t,n,(new Date).toISOString(),s,this.clientFeedbackId,Object(r.a)({},o),Object(r.a)({},u),Object(r.a)({},a)),this.environment=e}return e.prototype.getClientFeedbackId=function(){return this.clientFeedbackId},e.prototype.getExtendedManifestData=function(){return this.manifest.getExtendedManifestData()},e.prototype.setComment=function(e){this.manifest.setComment(e)},e.prototype.setEmail=function(e){this.manifest.setEmail(e)},e.prototype.setCategory=function(e){this.manifest.setCategory(e)},e.prototype.setAppData=function(e){this.manifest.setAppData(e)},e.prototype.setExtendedManifestData=function(e){this.manifest.setExtendedManifestData(e)},e.prototype.setScreenshot=function(e){this.screenshot=new u(e)},e.prototype.setClientFeedbackId=function(e){this.manifest.setClientFeedbackId(e)},e.prototype.getManifest=function(){return this.manifest},e.prototype.setManifestValues=function(e){this.manifest.setValues(e)},e.prototype.submit=function(){if(!o.get().isFeedbackSurveyEnabledByAADC())return s.b().logEvent(s.a.Shared.Upload.Prevented.VALUE,2,{Data:JSON.stringify({ageGroup:o.get().getCommonInitOptions().ageGroup,authenticationType:o.get().getCommonInitOptions().authenticationType})}),Promise.resolve();var e=this.manifest.getContent(),t=void 0,n=this.clientFeedbackId;return this.screenshot&&(t=this.screenshot.getContent()),(function(e,t,n,r){if(void 0===t)return Promise.reject(new Error("Manifest cannot be undefined"));var i,s,u,a,f,l=new FormData;return l.append("Manifest",t),n&&l.append("Screenshot",n),r&&l.append("Diagnostics",r),"POST",i=e?"https://petrol.office.microsoft.com/v1/feedback":"https://petrol-int.office.microsoft.com/v1/feedback",s=l,2,u=function(e,t,n){200!==e.status&&n(new Error("Non-200 response with status code: "+e.status+", response: "+e.responseText)),t()},a=function(e,t){return new Promise(function(n,r){var o=new XMLHttpRequest;o.open("POST",i,!0),o.timeout=t,o.onload=function(){u(o,n,r)},o.ontimeout=function(){e>0?a(e-1,2*t).then(n,r):r(new Error("Request to '"+i+"' timed out. timeout: "+o.timeout))},o.onerror=function(){e>0?a(e-1,t).then(n,r):r(new Error("Request to '"+i+"' errored. "+o.status+" - "+o.statusText+" : "+o.responseText))},o.send(s)})},f=o.get().getCommonInitOptions().petrolTimeout?o.get().getCommonInitOptions().petrolTimeout:8e3,a(2,f)})(0===this.environment,e,t).catch(function(e){o.get().getCommonInitOptions().onError("Payload submission failed: "+e.message+". ClientFeedbackId: "+n),s.b().logEvent(s.a.Shared.Upload.Failed.VALUE,2,{ErrorMessage:e.message,ClientFeedbackId:n})})},e})()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GovernanceServiceClientState=t.GovernanceServiceSurveyType=void 0,(function(e){e[e.Unknown=0]="Unknown",e[e.Feedback=1]="Feedback",e[e.Nps=2]="Nps",e[e.Psat=4]="Psat",e[e.Bps=6]="Bps",e[e.Fps=8]="Fps",e[e.Nlqs=18]="Nlqs",e[e.GenericMessagingSurface=22]="GenericMessagingSurface",e[e.Intercept=24]="Intercept"})(t.GovernanceServiceSurveyType||(t.GovernanceServiceSurveyType={})),(function(e){e[e.Disabled=0]="Disabled",e[e.InitializationFailed=1]="InitializationFailed",e[e.Enabled=2]="Enabled"})(t.GovernanceServiceClientState||(t.GovernanceServiceClientState={}))},function(e,t,n){"use strict";var r=n(18),i=n(17),s=n(35),o=n(10),u=o.getDistantFuture,a=o.getDistantPast,f=o.isNOU,l=o.isDate,c=(function(){function e(e){if(f(e))throw new Error("data must not be null");if(f(e.id)||""===e.id)throw new Error("data.id must not be null or empty");if(f(e.governedChannelType)&&(e.governedChannelType=i.GovernedChannelType.getDefault()),f(e.expirationTimeUtc)||""===e.expirationTimeUtc)throw new Error("data.expirationTimeUtc must not be null or empty");if(f(e.activationEvent))throw new Error("data.activationEvent must not be null");(f(e.backEndIdentifier)||""===e.backEndIdentifier)&&(e.backEndIdentifier=e.id),f(e.launcherType)&&(e.launcherType=r.LAUNCHER_TYPE_DEFAULT),this.data=e}return e.prototype.getId=function(){return this.data.id},e.prototype.getBackEndId=function(){return this.data.backEndIdentifier},e.prototype.getGovernedChannelType=function(){return this.data.governedChannelType},e.prototype.getRawStartTimeUtc=function(){return this.data.startTimeUtc},e.prototype.getStartTimeUtc=function(){if(f(this.data.startTimeUtc))return a();var e=new Date(this.data.startTimeUtc);return l(e)?e:u()},e.prototype.getExpirationTimeUtc=function(){if(f(this.data.expirationTimeUtc))return a();var e=new Date(this.data.expirationTimeUtc);return l(e)?e:a()},e.prototype.getRawExpirationTimeUtc=function(){return this.data.expirationTimeUtc},e.prototype.isActiveForDate=function(e){return!f(e)&&e>=this.getStartTimeUtc()&&e<=this.getExpirationTimeUtc()},e.prototype.getActivationEvent=function(){return this.data.activationEvent},e.prototype.getPreferredLaunchType=function(){return this.data.preferredLaunchType},e.prototype.isAdditionalDataRequested=function(e){if(f(this.data.additionalDataRequested))return!1;for(var t=0,n=this.data.additionalDataRequested;t<n.length;t++)if(n[t]===e)return!0;return!1},e.prototype.getLauncherType=function(){return this.data.launcherType},e.prototype.getMetadata=function(){return this.data.metadata},e.prototype.getBusinessLevel=function(){return this.data.businessLevel},e.prototype.getMaxLaunches=function(){return this.data.maxLaunches},e.prototype.getMaxLaunchesPerSession=function(){return this.data.maxLaunchesPerSession},e.prototype.getDomElements=function(e){if(!e)throw new Error("Document must not be null");var t=e.createElement(s.DOM_TYPE_TAGNAME);t.appendChild(e.createTextNode(s.DOM_TYPE_VALUE));var n=e.createElement(s.DOM_ID_TAGNAME);return n.appendChild(e.createTextNode(this.getBackEndId())),[t,n]},e.prototype.getJsonElements=function(){var e={};e[s.JSON_ID_KEYNAME]=this.getBackEndId();var t={};return t[s.JSON_SURVEY_KEYNAME]=e,t},e})();!(function(e){e.SurveyDataSourceData=function(){this.preferredLaunchType="Default"}})(c||(c={})),e.exports=c},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(6),i=n(48);function s(e,t){return i(e||document.body,Object(r.a)({background:"#ffffff"},t))}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return f});n(54);var r=n(1),i=n(8),s=n(2),o=!1,u=!1;function a(){if(!o){if(!i.a().OfficeBrowserFeedback.initOptions)throw new Error("Window.OfficeBrowserFeedback.initOptions not set");i.a().OfficeBrowserFeedback.sdkVersion="1.6.9",r.get().setCommonInitOptions(i.a().OfficeBrowserFeedback.initOptions),u=r.get().isFeedbackSurveyEnabledByAADC(),s.c(r.get().getCommonInitOptions(),"OfficeFeedbackSDK","1.6.9",r.get().getSdkSessionId(),r.get().getEventSampling()),o=!0,u||s.b().logEvent(s.a.FEEDBACK_SURVEYSDISABLED_AADC,1,{Data:JSON.stringify({ageGroup:r.get().getCommonInitOptions().ageGroup,authenticationType:r.get().getCommonInitOptions().authenticationType})})}}function f(){o=!1}i.l(function(){return u})},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return p});var r=n(5),i=n(1),s=n(8),o=n(0),u=n(25),a=n(30),f=n(4),l=n(48),c=!1;function h(){return new Promise(function(e,t){if(c)e();else{var n=i.get().getCommonInitOptions();if(n||t("initOptionsCommon is null"),(n.customResourcesSetExternally&i.CustomResources.Css)===i.CustomResources.Css){var s="#"+o.d.TPromptTitle;Object(f.a)(s)||t("Expected custom Css to be set by host but "+s+" was not found to be set.")}else Object(a.b)(n.stylesUrl);if((function(e,t){void 0===e&&(e=void 0),void 0===t&&(t=void 0),e||(e="#0167B0"),t||(t="#194789");var n=document.createElement("style");n.textContent="."+o.c.OverallAnchor+":focus { background-color: "+e+" } ."+o.c.OverallAnchor+":hover { background-color: "+t+" } ."+o.c.OverallAnchorActive+" { background-color: "+e+" } ."+o.c.SpinnerCircle+" { background-color: "+e+" } ."+o.c.ChoiceGroup+" input[type=radio]:checked+label>."+o.c.ChoiceGroupIcon+" { border-color: "+e+" } ."+o.c.ChoiceGroup+" input[type=radio]:hover+label>."+o.c.ChoiceGroupIcon+" { border-color: "+t+" } ."+o.c.ChoiceGroup+" input[type=radio]:checked+label>."+o.c.ChoiceGroupIcon+">span { background-color: "+e+" } ."+o.c.SubmitButton+" { background-color: "+e+" } ."+o.c.SubmitButton+":hover { background-color: "+t+" } ."+o.c.CancelButton+" { background-color: "+e+" } ."+o.c.CancelButton+":hover { background-color: "+t+" } ."+o.c.Link+" { color: "+e+" } ."+o.c.Link+":hover { color: "+t+" } ."+o.c.ThanksPanelTitle+" { color: "+e+" } #"+o.d.TPromptTitle+" { color: "+e+" } #"+o.d.TFormTitle+" { color: "+e+" } ",document.body.appendChild(n)})(n.primaryColour,n.secondaryColour),(n.customResourcesSetExternally&i.CustomResources.Strings)===i.CustomResources.Strings)r.a()||t("Expected custom strings to be set by host but UIStrings.getUIStrings() is null or undefined"),c=!0,e();else{var u=n.intlUrl+n.locale.toLowerCase()+"/"+n.intlFilename;Object(a.a)(u).then(function(){r.a()?(c=!0,e()):t("UiStrings were not loaded from "+u)}).catch(function(e){t("Script load failed for "+u+". "+e)})}}})}function p(){c=!1}s.n(function(e){r.b(e)}),s.d(u.a),s.a().OfficeBrowserFeedback.html2canvas=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Survey=void 0;var r=n(18),i=n(20),s=n(10),o=(function(){function e(){}return e.prototype.getCampaignId=function(){return this.getSurveyInfo().getBackEndId()},e.prototype.getLauncherType=function(){return this.getSurveyInfo().getLauncherType()},e.prototype.getClientFeedbackId=function(){return this.clientFeedbackId},e.prototype.submit=function(){var e=r.Type[this.getType()],t=i.FloodgateEngine.getTransportFactory().makeTransporter(e);t.setManifestValues(this.getJsonElements()),this.clientFeedbackId=t.getClientFeedbackId(),t.submit()},e.prototype.getPreGeneratedClientFeedbackId=function(){return this.clientFeedbackId?this.clientFeedbackId:this.clientFeedbackId=s.guid()},e})();t.Survey=o},function(e,t,n){"use strict";var r=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var s=arguments[t],o=0,u=s.length;o<u;o++,i++)r[i]=s[o];return r};Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaObject=void 0;var i=(function(){function e(t){e.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_SchemaObject"},e.getBaseTypes=function(){return[]},e.getTypeNameFor=function(e){return e&&e.H_?e.H_.T_:void 0},e.getBaseTypesFor=function(e){return e&&e.H_&&e.H_.B_?e.H_.B_:[]},e.getAllTypesFor=function(t){var n=e.getTypeNameFor(t);return n?r([n],e.getBaseTypesFor(t)):[]},e.matchesTypesFor=function(t,n){if(!Array.isArray(n)||0===n.length)return!0;for(var r=e.getTypeNameFor(t),i=t&&t.H_&&t.H_.B_?t.H_.B_:void 0,s=0,o=n;s<o.length;s++){var u=o[s];if(u===r)return!0;if(i&&i.indexOf(u)>=0)return!0}return!1},e.assign=function(e,t,n){if(n)for(var r=0,i=Object.keys(n);r<i.length;r++){var s=i[r];t[s]=n[s]}return t.H_=e.H_,t},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.SchemaObject=i},function(e,t,n){"use strict";function r(e){var t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e;var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}function i(e,t){return void 0===t&&(t=window.origin),new Promise(function(n,r){var i=document.createElement("script");i.async=!0,i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,n())}:i.onload=function(){n()},i.onerror=function(){r()},i.src=e,t&&"null"!==t&&(i.crossOrigin="anonymous");var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(i,s)})}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(0);function i(e,t){if(void 0===e.brs&&(e.brs=!0),!e.brs)return null;var n;if(e.tag||(e.tag=r.g.Div),e.tag===r.g.Svg&&(t=!0),n=t?document.createElementNS("http://www.w3.org/2000/svg",e.tag):document.createElement(e.tag),e.attributes)for(var s=void 0,o=0;o<e.attributes.length;o++)(s=e.attributes[o]).name===r.a.xlinkHref?n.setAttributeNS("http://www.w3.org/1999/xlink",r.a.HRef,s.value):n.setAttribute(s.name,s.value);if(e.id&&(n.id=e.id),e.classes){var u=e.classes.join(" ");t?n.setAttribute(r.a.Class,u):n.className=u}if(e.innerText&&!t&&(n.textContent=e.innerText),e.innerHTML&&!t&&(n.innerHTML=e.innerHTML),e.children)for(o=0;o<e.children.length;o++){var a=e.children[o];if(a){var f=i(a,t);f&&n.appendChild(f)}}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Governor=t.DEFAULT_TEACHING_MESSAGE_COOLDOWN=void 0;var r=n(17),i=n(45),s=n(10).isNOU;t.DEFAULT_TEACHING_MESSAGE_COOLDOWN=15;var o=function(e,t){this.name=e,this.cooldownSeconds=t},u=(function(){function e(e){if(this.channels=[],!e)throw new Error("channelStateProvider must not be null");this.channelStateProvider=e,this.loadChannels()}return e.GetChannelCoolDown=function(t){var n=e.defaultChannelData[t];return n?n.cooldownSeconds:0},e.SetDefaultChannelCoolDown=function(t,n){var r=e.defaultChannelData[t];r&&(r.cooldownSeconds=n)},e.prototype.refreshChannelData=function(){this.loadChannels()},e.prototype.getAvailableChannelData=function(){var e=[];for(var t in this.channels)if(this.channels.hasOwnProperty(t)){var n=this.channels[t];n.isOpen()&&e.push(n)}return e},e.prototype.isChannelOpen=function(e){if(s(e))throw new Error("type must not be null");return this.channels[e].isOpen()},e.prototype.startChannelCooldown=function(e,t){if(s(e))throw new Error("type must not be null");t=t||new Date,this.channels[e].setCooldownStartTime(t),this.saveChannelStates()},e.prototype.saveChannelStates=function(){var e=[];for(var t in this.channels)if(this.channels.hasOwnProperty(t)){var n=this.channels[t],r=new i.GovernedChannelState(n.getType(),n.getCooldownStartTime());e.push(r)}this.channelStateProvider.save(e)},e.prototype.loadChannels=function(){for(var t in this.loadChannelStatesFromProvider(),r.GovernedChannelType)if(r.GovernedChannelType.hasOwnProperty(t)){var n=Number(t);if(isNaN(n)||this.channels[n])continue;var i=e.defaultChannelData[n],s=new r.GovernedChannel(n,i.name,i.cooldownSeconds,null);this.channels[n]=s}},e.prototype.loadChannelStatesFromProvider=function(){this.channels=[];var t=this.channelStateProvider.load();for(var n in t)if(t.hasOwnProperty(n)){var i=t[n],s=i.getType(),o=e.defaultChannelData[s],u=new r.GovernedChannel(s,o.name,o.cooldownSeconds,i.getCooldownStartTime());this.channels[u.getType()]=u}},e.minute=60,e.hour=60*e.minute,e.day=24*e.hour,e.defaultChannelData=[new o(r.GovernedChannelType[r.GovernedChannelType.Standard],14*e.day),new o(r.GovernedChannelType[r.GovernedChannelType.Urgent],0),new o(r.GovernedChannelType[r.GovernedChannelType.Banner],15*e.day),new o(r.GovernedChannelType[r.GovernedChannelType.TeachingMessage],t.DEFAULT_TEACHING_MESSAGE_COOLDOWN*e.day)],e})();t.Governor=u},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(15),i=n(4),s=n(14),o=i.l,u=(function(){function e(e){this.useLocalStorage=!1,this.cachedItems={},this.initialize(e)}return e.prototype.setContentItem=function(e,t,n){var r=this.createItem(e,t,n);return this.setItem(r),r},e.prototype.getItemContent=function(e){var t=this.getItem(e);return t&&t.content},e.prototype.has=function(e){return e in this.cachedItems},e.prototype.isItemExpired=function(e){var t=this.getItem(e);return!t||!t.expiryDate||t.expiryDate<new Date},e.prototype.createItem=function(e,t,n){return{contentType:e,content:t,expiryDate:new Date(Date.now()+n),lastRetrievedDate:new Date}},e.prototype.setItem=function(e){this.cachedItems[e.contentType]=e,this.updateItemInLocalStorage(e)},e.prototype.getItem=function(e){return this.cachedItems[e]},e.prototype.initialize=function(e){this.cachedItems={},r.a.isStorageAvailable()&&(this.floodgateStorage=new r.a,this.useLocalStorage=!0,this.initCachedItemsFromLocalStorage(e))},e.prototype.initCachedItemsFromLocalStorage=function(e){if(this.useLocalStorage&&!o(e))for(var t=0,n=e;t<n.length;t++){var r=n[t],i=this.floodgateStorage.read(this.mapContentTypeToFloodgateProviderKey(r));if(!o(i)){var s=this.parseObjectFromCache(i);o(s)||(s.expiryDate="string"==typeof s.expiryDate?new Date(s.expiryDate):s.expiryDate,this.cachedItems[s.contentType]=s)}}},e.prototype.updateItemInLocalStorage=function(e){this.useLocalStorage&&this.floodgateStorage.write(this.mapContentTypeToFloodgateProviderKey(e.contentType),JSON.stringify(e))},e.prototype.parseObjectFromCache=function(e){try{return JSON.parse(e)}catch(e){return null}},e.prototype.mapContentTypeToFloodgateProviderKey=function(e){switch(e){case"CampaignContent":return s.FileType.TmsCache_CampaignContent;case"MessageMetadata":return s.FileType.TmsCache_MessageMetadata;case"UserGovernance":return s.FileType.TmsCache_UserGovernance;case"DynamicSettings":return s.FileType.Tms_DynamicSettings;case"LogLevelSettings":return s.FileType.LogLevelSettings;case"UserFacts":return s.FileType.UserFacts;default:throw new Error("Unmapped ContentType in TmsCache")}},e})()},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(0),i=n(3),s=(function(){function e(e){this.circleObjects=[],this.spinnerId=e,this.spinner=document.getElementById(this.spinnerId),this.createCirclesAndArrange(),this.initializeOpacities(),this.start(),i.l(e,!0)}return e.prototype.destroy=function(){i.l(this.spinnerId,!1),this.stop()},e.prototype.start=function(){var e=this;this.stop(),this.interval=setInterval(function(){for(var t=e.circleObjects.length;t--;)o(e.circleObjects[t])},90)},e.prototype.stop=function(){clearInterval(this.interval)},e.prototype.createCirclesAndArrange=function(){for(var e,t=0,n=2*Math.PI/8,r=8;r--;){var i=a(),s=Math.round(17+13.6*Math.cos(t)-.5*i.clientWidth)-34*.2*.5,o=Math.round(17+13.6*Math.sin(t)-.5*i.clientHeight)-34*.2*.5;this.spinner.appendChild(i),i.style.left=s+"px",i.style.top=o+"px",t+=n,e={element:i,j:r},this.circleObjects.push(e)}},e.prototype.initializeOpacities=function(){for(var e,t=0,n=1;t<8;t++)e=1/8*n++,u(this.circleObjects[t].element,e)},e})();function o(e){var t,n=(t=e.element,parseFloat(window.getComputedStyle(t).getPropertyValue("opacity"))-1/8);n<=0&&(n=1),u(e.element,n)}function u(e,t){e.style.opacity=t.toString()}function a(){var e=document.createElement("div");return e.classList.add(r.c.SpinnerCircle),e.style.width=e.style.height=34*.2+"px",e}},function(e,t,n){"use strict";var r;!(function(e){!(function(e){e[e.None=0]="None",e[e.Critical=1]="Critical"})(e.BusinessLevel||(e.BusinessLevel={})),e.DOM_TYPE_TAGNAME="Type",e.DOM_TYPE_VALUE="Survey",e.DOM_ID_TAGNAME="SurveyID",e.JSON_SURVEY_KEYNAME="survey",e.JSON_ID_KEYNAME="surveyId"})(r||(r={})),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MergeAndUpdateSurveyActivationStats=t.MergeAndUpdateCampaignStates=t.MergeAndUpdateGovernedChannelStates=t.makeSettingItemValue=t.extractSettingItemValueSubString=t.ItemCollection=void 0;var r=n(42),i=(function(){function e(){this.items={},this.itemCount=0}return e.prototype.add=function(e,t){this.items[e]||this.itemCount++,this.items[e]=t},e.prototype.find=function(e){return this.items[e]},e.prototype.remove=function(e){var t=this.items[e];return t&&(delete this.items[e],this.itemCount--),t},e.prototype.count=function(){return this.itemCount},e})();t.ItemCollection=i,t.extractSettingItemValueSubString=function(e){if(!e)return e;var t=e.indexOf(s)+s.length,n=e.indexOf(o);return t<0||n<0?e:e.substring(t,n)},t.makeSettingItemValue=function(e){return e?s+e+o:s+o},t.MergeAndUpdateGovernedChannelStates=function(e,t){var n=new i;if(!e&&!t)return n;if(!e)return n.add(0,t),n;if(!t)return n.add(0,e),n.add(1,e),n;var r=[],s=[];return e&&e.forEach(function(e){for(var n,i=-1,o=0;o<t.length;o++)if((n=t[o]).getType()===e.getType()){i=o;break}if(-1===i)return r.push(e),void s.push(e);e.getCooldownStartTime()>n.getCooldownStartTime()?(r.push(e),s.push(e)):r.push(n),t.splice(i,1)}),t&&t.forEach(function(e){r.push(e)}),n.add(0,r),s.length>0&&n.add(1,s),n},t.MergeAndUpdateCampaignStates=function(e,t){var n=new i;if(!e&&!t)return n;if(!e)return n.add(0,t),n;if(!t)return n.add(0,e),n.add(1,e),n;var r=[],s=[];return e&&e.forEach(function(e){for(var n,i=new Date,o=-1,u=0;u<t.length;u++)if((n=t[u]).CampaignId===e.CampaignId){o=u;break}return-1===o?(r.push(e),void s.push(e)):n.LastCooldownEndTimeUtc>i?(r.push(n),void t.splice(o,1)):e.LastCooldownEndTimeUtc>i?(r.push(e),s.push(e),void t.splice(o,1)):(e.getCooldownStartDate()>n.getCooldownStartDate()||e.getCooldownStartDate()===n.getCooldownStartDate()&&e.LastNominationTimeUtc>n.LastNominationTimeUtc?(r.push(e),s.push(e)):r.push(n),void t.splice(o,1))}),t&&t.forEach(function(e){r.push(e)}),n.add(0,r),s.length>0&&n.add(1,s),n},t.MergeAndUpdateSurveyActivationStats=function(e,t){var n=new i;if(!e&&!t)return n;if(!e)return n.add(0,t),n;if(!t)return n.add(0,e),n.add(1,e),n;var s=new r.SurveyStatCollectionActivation,o=new r.SurveyStatCollectionActivation,u=e.getStats(),a=t.getStats();for(var f in u)if(u.hasOwnProperty(f)){var l=a[f];if(!l){s.addStats(f,u[f]),o.addStats(f,u[f]);continue}u[f].ActivationTimeUtc>l.ActivationTimeUtc?(s.addStats(f,u[f]),o.addStats(f,u[f])):s.addStats(f,a[f]),delete a[f]}for(var f in a)a.hasOwnProperty(f)&&s.addStats(f,a[f]);n.add(0,s);var c=o.getStats();for(var h in c)if(c.hasOwnProperty(h)){n.add(1,o);break}return n};var s="<data>",o="</data>"},function(e,t,n){"use strict";var r=n(19),i=(function(){function e(e){if(!e)throw new Error("data must not be null");if(!e.question)throw new Error("data.question must not be null or empty");this.data=e,this.userComment=""}return e.make=function(t){try{return new e(t)}catch(e){return null}},e.prototype.getType=function(){return"Comment"},e.prototype.getQuestion=function(){return this.data.question},e.prototype.setSubmittedText=function(e){this.userComment=e},e.prototype.getSubmittedText=function(){return this.userComment},e.prototype.getDomElements=function(e){if(!e)throw new Error("Document must not be null");var t=e.createElement(r.DOM_COMMENT_TAGNAME);return t.appendChild(e.createTextNode(this.getSubmittedText())),[t]},e.prototype.getJsonElements=function(){var e={};return e[r.JSON_COMMENT_KEYNAME]=this.getSubmittedText(),e},e.prototype.getComponentJson=function(){var e;return(e={})[r.JSON_QUESTION_KEYNAME]=this.getQuestion(),e},e})();!(function(e){e.CommentComponentData=function(){}})(i||(i={})),e.exports=i},function(e,t,n){"use strict";var r=n(19),i=(function(){function e(e){if(!e)throw new Error("data must not be null");if(!e.question)throw new Error("data.question must not be null or empty");if(!e.title)throw new Error("data.title must not be null or empty");if(!e.yesButtonLabel)throw new Error("data.yesButtonLabel must not be null or empty");if(!e.noButtonLabel)throw new Error("data.noButtonLabel must not be null or empty");this.data=e,this.selectedButton=0}return e.make=function(t){try{return new e(t)}catch(e){return null}},e.prototype.getType=function(){return"Prompt"},e.prototype.getTitle=function(){return this.data.title},e.prototype.getQuestion=function(){return this.data.question},e.prototype.getYesButtonText=function(){return this.data.yesButtonLabel},e.prototype.getNoButtonText=function(){return this.data.noButtonLabel},e.prototype.setButtonSelected=function(e){e&&(this.selectedButton=e)},e.prototype.getButtonSelected=function(){return this.selectedButton},e.prototype.getDomElements=function(e){if(!e)throw new Error("Document must not be null");var t=e.createElement(r.DOM_PROMPT_TAGNAME);return t.appendChild(e.createTextNode(this.promptButtonToString(this.getButtonSelected()))),[t]},e.prototype.getJsonElements=function(){var e={};return e[r.JSON_PROMPT_KEYNAME]=this.promptButtonToString(this.getButtonSelected()),e},e.prototype.getComponentJson=function(){var e;return(e={})[r.JSON_TITLE_KEYNAME]=this.getTitle(),e[r.JSON_QUESTION_KEYNAME]=this.getQuestion(),e[r.JSON_PROMPTYESTEXT_KEYNAME]=this.getYesButtonText(),e[r.JSON_PROMPTNOTEXT_KEYNAME]=this.getNoButtonText(),e},e.prototype.promptButtonToString=function(e){switch(e){case 0:return"Unselected";case 1:return"Yes";case 2:return"No";default:return"Unknown"}},e})();!(function(e){e.PromptComponentData=function(){}})(i||(i={})),e.exports=i},function(e,t,n){"use strict";var r=n(19),i=(function(){function e(e){if(!e)throw new Error("data must not be null");if(!e.question)throw new Error("data.question must not be null or empty");if(!e.ratingValuesAscending||e.ratingValuesAscending.length<2)throw new Error("data.ratingValuesAscending must not be null or have less than two choices");e.ratingValuesAscending.forEach(function(e){if(!e)throw new Error("rating values must not contain null or empty")}),this.data=e,this.selectedIndex=-1}return e.make=function(t){try{return new e(t)}catch(e){return null}},e.prototype.getType=function(){return"Rating"},e.prototype.getQuestion=function(){return this.data.question},e.prototype.getRatingValuesAscending=function(){return this.data.ratingValuesAscending},e.prototype.getSelectedRating=function(){return this.isRatingIndexValid(this.selectedIndex)?this.data.ratingValuesAscending[this.selectedIndex]:""},e.prototype.setSelectedRatingIndex=function(e){this.isRatingIndexValid(e)?this.selectedIndex=e:this.selectedIndex=-1},e.prototype.getSelectedRatingIndex=function(){return this.selectedIndex},e.prototype.getDomElements=function(e){if(!e)throw new Error("Document must not be null");var t=e.createElement(r.DOM_RATING_TAGNAME);return this.isRatingIndexValid(this.getSelectedRatingIndex())?t.appendChild(e.createTextNode(this.getNormalizedRatingScore().toFixed(6))):t.appendChild(e.createTextNode("Not rated")),[t]},e.prototype.getJsonElements=function(){var e={};return this.isRatingIndexValid(this.getSelectedRatingIndex())?e[r.JSON_RATING_KEYNAME]=this.getNormalizedRatingScore():e[r.JSON_RATING_KEYNAME]="Not rated",e},e.prototype.getComponentJson=function(){var e;return(e={})[r.JSON_QUESTION_KEYNAME]=this.getQuestion(),e[r.JSON_RATINGOPTIONS_KEYNAME]=this.getRatingValuesAscending(),e},e.prototype.getNormalizedRatingScore=function(){return this.isRatingIndexValid(this.getSelectedRatingIndex())?this.data.isZeroBased?this.selectedIndex/(this.data.ratingValuesAscending.length-1):(this.selectedIndex+1)/this.data.ratingValuesAscending.length:-1},e.prototype.isRatingIndexValid=function(e){return e>=0&&e<this.data.ratingValuesAscending.length},e})();!(function(e){e.RatingComponentData=function(){}})(i||(i={})),e.exports=i},function(e,t,n){"use strict";var r=n(72),i=n(16),s=n(73),o=n(46),u=n(10),a=[],f=0,l={},c=(function(){function e(e,t){if(this.activityContext={},!e)throw new Error("callback must not be null");this.trackedActivityMap={},this.callback=e,this.loggerCallback=t}return e.resetSessionActivity=function(){l={}},e.prototype.logActivity=function(e,t,n){void 0===t&&(t=1),this.logActivity_private(e,0,t,null,n)},e.prototype.logActivityStartTime=function(e,t){this.logActivity_private(e,1,0,t,null)},e.prototype.logActivityStopTime=function(e,t){this.logActivity_private(e,2,0,t,null)},e.prototype.SetActivityTrackingContracts=function(e,t){void 0===t&&(t=new o.SurveyStatCollectionEventActivity);var n=0;if(e&&0!==e.length&&t){for(var u={},a=[],f=0,c=e;f<c.length;f++){var h=c[f],p=h.trackingSet;if(-1===a.indexOf(h.surveyId)){a.push(h.surveyId);for(var d=t.getBySurveyId(h.surveyId),v=[p.getList().length],m=new Array(p.getList().length),g=0,y=0,b=0,w=p.getList();b<w.length;b++){var E=w[b];if(v[y]=0,E.getIsAggregate()&&d&&g<d.Counts.length&&(v[y]=d.Counts[g++]),l[E.getActivity()])for(var S=0,x=l[E.getActivity()];S<x.length;S++){var T=x[S];if(T.surveyId===h.surveyId){m[y]=T;break}}y++}var N=new r(p);N.initCounts(v,m,!1);for(var C=0,k=N.generateActivityIndexList();C<k.length;C++){var L=k[C],A=new s.IndexedTracker;A.index=L.index,A.surveyId=h.surveyId,A.tracker=N,u[L.activity]||(u[L.activity]=[]),u[L.activity].push(A)}}else n++}if(n>0){var O=this.loggerCallback&&this.loggerCallback();O&&O.log_Error(i.TelemetryEvent.SurveyActivity.SetActivityTrackingContracts.DuplicateSurveyID,"Duplicate surveyId passed in activityTrackingContracts. Duplicate count: "+n)}this.copyObject(this.trackedActivityMap,u)}},e.prototype.clearSurveys=function(){var e=this;Object.getOwnPropertyNames(this.trackedActivityMap).forEach(function(t){delete e.trackedActivityMap[t]})},e.prototype.saveSessionTrackingActivity=function(e){l[e]=this.trackedActivityMap[e]},e.prototype.getCount=function(e,t){var n=this.getIndexedTracker(e,t);return n?n.tracker.getCount(n.index):0},e.prototype.getSessionCount=function(e,t){var n=this.getIndexedTracker(e,t);return n?n.tracker.getSessionCount(n.index):0},e.prototype.moveSessionCountIntoBaseCount=function(e,t){var n=this.getIndexedTracker(e,t);return n?n.tracker.moveSessionCountIntoBaseCount(n.index):0},e.prototype.getSurveyIds=function(e){if(!u.isNOU(e)){var t=this.trackedActivityMap[e];if(t)return t.map(function(e){return e.surveyId})}},e.prototype.setCallback=function(e){this.callback=e},e.prototype.UpdateActivityTrackingContracts=function(e){if(u.isNOU(e)||0===Object.keys(e).length)this.clearSurveys();else for(var t in this.trackedActivityMap)if(this.trackedActivityMap.hasOwnProperty(t))for(var n=this.trackedActivityMap[t],r=n.length-1;r>=0;--r)e.hasOwnProperty(n[r].surveyId)||n.splice(r,1)},e.prototype.getIndexedTracker=function(e,t){var n=this.trackedActivityMap[e];if(n){for(var r,i=0,s=n;i<s.length;i++){var o=s[i];if(o.surveyId===t){r=o;break}}return r}},e.prototype.resetQueuedActivities=function(){a=[]},e.prototype.logActivity_private=function(t,n,r,s,o){var u=this;if(this.callback&&!this.callback.shouldAcceptActivity(t)&&(f++,a.length<e.MaxPendingActivitiesQueueSize&&a.push({activityName:t,logType:n,increment:r,timestamp:s})),t===e.FloodgateStartActivityName){if(f>0){var l=this.loggerCallback&&this.loggerCallback();l&&l.log_Event(i.TelemetryEvent.SurveyActivity.LogActivity.EventsReprocessed,{Count:a.length,Dropped:f-a.length}),a.map(function(e){return u.logActivity_core(e.activityName,e.logType,e.increment,e.timestamp,o)})}f=0,this.resetQueuedActivities()}this.logActivity_core(t,n,r,s,o)},e.prototype.logActivity_core=function(e,t,n,r,i){var s=this.trackedActivityMap[e];if(s&&0!==s.length){var o=[];if(s.length>1){o=new Array(s.length);for(var a=0;a<o.length;a++)o[a]=a;o=u.fyShuffle(o)}else o.push(0);for(var f=0,l=o;f<l.length;f++){var c=s[l[f]];switch(t){case 1:c.tracker.startTime(c.index,r);continue;case 2:n=c.tracker.stopTime(c.index,r);case 0:break;default:continue}if(i){var h=c.surveyId;this.activityContext[h]=this.activityContext[h]||[],this.activityContext[h].push({activityName:e,context:i})}if(2===c.tracker.incrementActivity(c.index,n)){this.executeCallback(c.surveyId);break}}}},e.prototype.executeCallback=function(e){this.callback.run(e,this.activityContext[e])},e.prototype.copyObject=function(e,t){Object.keys(t).forEach(function(n){e[n]=t[n]})},e.FloodgateStartActivityName="FloodgateFirstStart",e.MaxPendingActivitiesQueueSize=100,e})();e.exports=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileBasedCampaignStateProvider=t.HostBasedCampaignStateProvider=t.CampaignStateProviderFactory=t.CampaignState=void 0;var r=n(14),i=n(16),s=n(20),o=n(36),u=n(10),a=r.FileType,f=u.getDistantPast,l=u.isBoolean,c=u.isDate,h=u.isNOU,p=u.isString,d=u.isUtcDatetimeString,v=u.stringToDate,m=(function(){function e(e,t,n,r,i,s,o,u,a,f,l,c){if(this.CampaignId=e,this.LastNominationTimeUtc=t,this.LastNominationBuildNumber=n,this.DeleteAfterSecondsWhenStale=r,this.ForceCandidacy=i,this.IsCandidate=s,this.DidCandidateTriggerSurvey=o,this.LastSurveyActivatedTimeUtc=u,this.LastSurveyId=a,this.LastSurveyStartTimeUtc=f,this.LastSurveyExpirationTimeUtc=l,this.LastCooldownEndTimeUtc=c,!this.validate())throw new Error("Constructor arguments are not valid")}return e.deserialize=function(t){var n;if(!t)return null;try{n=new e(t.CampaignId,t.LastNominationTimeUtc,t.LastNominationBuildNumber,t.DeleteAfterSecondsWhenStale,!1,t.IsCandidate,t.DidCandidateTriggerSurvey,t.LastSurveyActivatedTimeUtc,t.LastSurveyId,t.LastSurveyStartTimeUtc,t.LastSurveyExpirationTimeUtc,t.LastCooldownEndTimeUtc)}catch(e){return s.FloodgateEngine.getTelemetryLogger().log_Event(i.TelemetryEvent.CampaignState.Deserialize.Failed,{ErrorMessage:e.toString()}),null}return n},e.prototype.validate=function(){if(!this.CampaignId||!p(this.CampaignId))return!1;if(h(this.LastNominationBuildNumber)||!p(this.LastNominationBuildNumber))return!1;if(!u.isNumber(this.DeleteAfterSecondsWhenStale)||this.DeleteAfterSecondsWhenStale<0)return!1;if(!l(this.IsCandidate)||!l(this.DidCandidateTriggerSurvey))return!1;if(this.IsCandidate){if(h(this.LastSurveyStartTimeUtc)||h(this.LastSurveyExpirationTimeUtc))return!1;if(!p(this.LastSurveyId))return!1}if(this.DidCandidateTriggerSurvey&&h(this.LastSurveyActivatedTimeUtc))return!1;if(h(this.LastSurveyId))this.LastSurveyId="";else if(!p(this.LastSurveyId))return!1;if(d(this.LastNominationTimeUtc))this.LastNominationTimeUtc=v(this.LastNominationTimeUtc);else if(!c(this.LastNominationTimeUtc))return!1;if(h(this.LastSurveyActivatedTimeUtc))this.LastSurveyActivatedTimeUtc=f();else if(d(this.LastSurveyActivatedTimeUtc))this.LastSurveyActivatedTimeUtc=v(this.LastSurveyActivatedTimeUtc);else if(!c(this.LastSurveyActivatedTimeUtc))return!1;if(h(this.LastSurveyStartTimeUtc))this.LastSurveyStartTimeUtc=f();else if(d(this.LastSurveyStartTimeUtc))this.LastSurveyStartTimeUtc=v(this.LastSurveyStartTimeUtc);else if(!c(this.LastSurveyStartTimeUtc))return!1;if(h(this.LastSurveyExpirationTimeUtc))this.LastSurveyExpirationTimeUtc=f();else if(d(this.LastSurveyExpirationTimeUtc))this.LastSurveyExpirationTimeUtc=v(this.LastSurveyExpirationTimeUtc);else if(!c(this.LastSurveyExpirationTimeUtc))return!1;if(h(this.LastCooldownEndTimeUtc))this.LastCooldownEndTimeUtc=f();else if(d(this.LastCooldownEndTimeUtc))this.LastCooldownEndTimeUtc=v(this.LastCooldownEndTimeUtc);else if(!c(this.LastCooldownEndTimeUtc))return!1;return!0},e.prototype.markCurrentSurveyTakenOnDate=function(e,t,n){this.DidCandidateTriggerSurvey=n,this.LastSurveyActivatedTimeUtc=null!=e?e:new Date,this.LastCooldownEndTimeUtc=u.addSecondsWithoutOverflow(this.LastSurveyActivatedTimeUtc,t)},e.prototype.getCooldownStartDate=function(){return this.IsCandidate?this.DidCandidateTriggerSurvey?this.LastSurveyActivatedTimeUtc:this.LastSurveyStartTimeUtc:this.LastNominationTimeUtc},e})();t.CampaignState=m;var g=(function(){function e(){}return e.make=function(e,t){return t?new b(e,t):new w(e)},e})();t.CampaignStateProviderFactory=g;var y=function(){},b=(function(){function e(e,t){if(!t)throw new Error("host-based storage must not be null");this.hostBasedStorage=t,e&&(this.fileBasedStateProvider=new w(e))}return e.prototype.load=function(){var e,t=this.getStatesFromHost();return this.fileBasedStateProvider&&(e=this.fileBasedStateProvider.load()),o.MergeAndUpdateCampaignStates(e,t).find(0)},e.prototype.save=function(e){var t=this;if(e){var n=this.getStatesFromHost(),r=o.MergeAndUpdateCampaignStates(e,n),i=r.find(1),s=r.find(0);i&&i.forEach(function(e){var n=o.makeSettingItemValue(JSON.stringify(e));t.hostBasedStorage.upsertSettingItem(a[a.CampaignStates],e.CampaignId,n)}),this.fileBasedStateProvider&&this.fileBasedStateProvider.save(s)}},e.prototype.getStatesFromHost=function(){var e=[],t=this.hostBasedStorage.readSettingList(a[a.CampaignStates]);for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],u=o.extractSettingItemValueSubString(r),f={};try{f=JSON.parse(u);var l=m.deserialize(f);l&&e.push(l)}catch(e){s.FloodgateEngine.getTelemetryLogger().log_Event(i.TelemetryEvent.HostBasedCampaignStateProvider.GetStatesFromHost.Failed,{ErrorMessage:"Json parsing/deserializing failed. "+e.toString()+".  Input:"+u})}}return e},e})();t.HostBasedCampaignStateProvider=b;var w=(function(){function e(e){if(!e)throw new Error("storage must not be null");this.storage=e}return e.prototype.load=function(){var e,t=this.storage.read(a.CampaignStates);if(!t)return[];try{e=JSON.parse(t);var n=[];return e&&e.CampaignStates&&e.CampaignStates.forEach(function(e){var t=m.deserialize(e);t&&n.push(t)}),n}catch(e){return s.FloodgateEngine.getTelemetryLogger().log_Event(i.TelemetryEvent.FileBasedCampaignStateProvider.Load.Failed,{ErrorMessage:"Json parsing/deserializing failed. "+e.toString()+".  Input:"+t}),[]}},e.prototype.save=function(e){if(e){var t=new y;t.CampaignStates=e;var n=JSON.stringify(t);this.storage.write(a.CampaignStates,n)}},e})();t.FileBasedCampaignStateProvider=w},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SurveyActivationStats=t.FileBasedSurveyActivationStatsProvider=t.HostBasedSurveyActivationStatsProvider=t.SurveyActivationStatsProviderFactory=t.SurveyStatCollectionActivation=void 0;var s=n(14),o=s.FileType,u=n(18),a=n(16),f=n(20),l=n(36),c=n(43),h=n(10),p=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.fromJson=function(e){var n,r=new t;if(!e)return f.FloodgateEngine.getTelemetryLogger().log_Event(a.TelemetryEvent.SurveyStatCollectionActivation.FromJson.Failed,{ErrorMessage:"Input json is null or empty."}),r;try{n=JSON.parse(e)}catch(e){return f.FloodgateEngine.getTelemetryLogger().log_Event(a.TelemetryEvent.SurveyStatCollectionActivation.FromJson.Failed,{ErrorMessage:"Json parsing failed. "+e.toString()}),r}return r.deserialize(n)?r:new t},t.toJson=function(e){return e||(f.FloodgateEngine.getTelemetryLogger().log_Event(a.TelemetryEvent.SurveyStatCollectionActivation.ToJson.Failed,{ErrorMessage:"Input json is null or empty."}),e=new t),JSON.stringify(e)},t.prototype.accumulate=function(e){if(e){var t=e.getStats();for(var n in t)t.hasOwnProperty(n)&&this.addStats(n,t[n])}},t.prototype.deserialize=function(e){var t=e.Surveys,n=new Date;for(var r in t)if(t.hasOwnProperty(r)){var i=new g;i.deserialize(t[r])&&i.ExpirationTimeUtc>n&&this.addStats(r,i)}return this.validate()},t.prototype.validate=function(){return h.isObject(this.getStats())},t})(c.SurveyStatCollection);t.SurveyStatCollectionActivation=p;var d=(function(){function e(){}return e.make=function(e,t){return t?new v(e,t):new m(e)},e})();t.SurveyActivationStatsProviderFactory=d;var v=(function(){function e(e,t){if(!t)throw new Error("host-based storage must not be null");this.hostBasedStorage=t,e&&(this.fileBasedStorageProvider=new m(e))}return e.prototype.load=function(){var e=this.getSurveyStatsFromHost(),t=new p;return this.fileBasedStorageProvider&&(t=this.fileBasedStorageProvider.load()),l.MergeAndUpdateSurveyActivationStats(t,e).find(0)},e.prototype.save=function(e){if(e){var t=this.getSurveyStatsFromHost(),n=l.MergeAndUpdateSurveyActivationStats(e,t),r=n.find(1),i=n.find(0);if(r){var s=r.getStats();for(var u in s)if(s.hasOwnProperty(u)){var a=l.makeSettingItemValue(JSON.stringify(s[u]));this.hostBasedStorage.upsertSettingItem(o[o.SurveyActivationStats],u,a)}}this.fileBasedStorageProvider&&this.fileBasedStorageProvider.save(i)}},e.prototype.getSurveyStatsFromHost=function(){var e=new p,t=this.hostBasedStorage.readSettingList(o[o.SurveyActivationStats]),n=new Date;for(var r in t)if(t.hasOwnProperty(r)){var i=l.extractSettingItemValueSubString(t[r]),s=new g;try{var u=JSON.parse(i);s.deserialize(u)}catch(e){f.FloodgateEngine.getTelemetryLogger().log_Event(a.TelemetryEvent.HostBasedSurveyActivationStatsProvider.GetSurveyStatsFromHost.Failed,{ErrorMessage:"Json parsing/deserializing failed. "+e.toString()+".  Input:"+i})}s.ExpirationTimeUtc<=n?this.hostBasedStorage.deleteSettingItem(o[o.SurveyActivationStats],r):e.addStats(r,s)}return e},e})();t.HostBasedSurveyActivationStatsProvider=v;var m=(function(){function e(e){if(!e)throw new Error("storage must not be null");this.storage=e}return e.prototype.load=function(){var e=this.storage.read(s.FileType.SurveyActivationStats);return e?p.fromJson(e):new p},e.prototype.save=function(e){if(e){var t=p.toJson(e);this.storage.write(s.FileType.SurveyActivationStats,t)}},e})();t.FileBasedSurveyActivationStatsProvider=m;var g=(function(){function e(){this.SurveyLaunchCount=0,this.SurveyLaunchCountPerSession=0}return e.prototype.deserialize=function(e){var t,n;return this.ActivationTimeUtc=e.ActivationTimeUtc,this.ExpirationTimeUtc=e.ExpirationTimeUtc,this.Type=e.Type,this.SurveyLaunchCount=null!==(t=e.SurveyLaunchCount)&&void 0!==t?t:0,this.SurveyLaunchCountPerSession=null!==(n=e.SurveyLaunchCountPerSession)&&void 0!==n?n:0,this.validate()},e.prototype.validate=function(){return!!h.isUtcDatetimeString(this.ActivationTimeUtc)&&(this.ActivationTimeUtc=h.stringToDate(this.ActivationTimeUtc),!!h.isUtcDatetimeString(this.ExpirationTimeUtc)&&(this.ExpirationTimeUtc=h.stringToDate(this.ExpirationTimeUtc),!(!h.isNumber(this.SurveyLaunchCount)||!h.isNumber(this.SurveyLaunchCountPerSession))&&h.isEnumValue(this.Type,u.Type)))},e})();t.SurveyActivationStats=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SurveyStatCollection=void 0;var r=(function(){function e(){this.Surveys={},this.Surveys={}}return e.prototype.addStats=function(e,t){this.Surveys[e]=t},e.prototype.getBySurveyId=function(e){return this.Surveys[e]},e.prototype.getStats=function(){return this.Surveys},e})();t.SurveyStatCollection=r},function(e,t,n){"use strict";var r=n(19),i=(function(){function e(e){if(!e)throw new Error("data must not be null");if(!e.customerVoiceFormId)throw new Error("data.formID must not be null or empty");this.data=e}return e.make=function(t){try{return new e(t)}catch(e){return null}},e.prototype.getType=function(){return"CVSurvey"},e.prototype.getFormId=function(){return this.data.customerVoiceFormId},e.prototype.getDomElements=function(e){if(!e)throw new Error("Document must not be null");return[e.createElement(r.DOM_CVSURVEY_TAGNAME)]},e.prototype.getJsonElements=function(){var e={};return e[r.JSON_CVSURVEY_KEYNAME]=this.getFormId(),e},e.prototype.getComponentJson=function(){var e;return(e={})[r.JSON_CVSURVEYFORMID_KEYNAME]=this.getFormId(),e},e})();!(function(e){e.CVSurveyComponentData=function(){}})(i||(i={})),e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileBasedGovernedChannelStateProvider=t.HostBasedGovernedChannelStateProvider=t.GovernedChannelStateProviderFactory=t.GovernedChannelState=void 0;var r=n(14),i=n(16),s=n(20),o=n(17),u=n(36),a=n(10),f=r.FileType,l=(function(){function e(e,t){if(this.ChannelType=e,this.CooldownStartTimeUtc=t,!this.validate())throw new Error("Constructor arguments are not valid")}return e.deserialize=function(t){var n;if(!t)return null;try{n=new e(t.ChannelType,t.CooldownStartTimeUtc)}catch(e){return s.FloodgateEngine.getTelemetryLogger().log_Event(i.TelemetryEvent.GovernedChannelState.Deserialize.Failed,{ErrorMessage:e.toString()}),null}return n},e.prototype.validate=function(){return!!a.isEnumValue(this.ChannelType,o.GovernedChannelType)&&(a.isUtcDatetimeString(this.CooldownStartTimeUtc)?this.CooldownStartTimeUtc=a.stringToDate(this.CooldownStartTimeUtc):!a.isNOU(this.CooldownStartTimeUtc)&&a.isDate(this.CooldownStartTimeUtc)||(this.CooldownStartTimeUtc=a.getDistantPast()),!0)},e.prototype.getType=function(){return this.ChannelType},e.prototype.getCooldownStartTime=function(){return this.CooldownStartTimeUtc},e})();t.GovernedChannelState=l;var c=(function(){function e(){}return e.make=function(e,t){return t?new p(e,t):new d(e)},e})();t.GovernedChannelStateProviderFactory=c;var h=function(){},p=(function(){function e(e,t){if(!t)throw new Error("host-based storage must not be null");this.hostBasedStorage=t,e&&(this.fileBasedStateProvider=new d(e))}return e.prototype.load=function(){var e,t=this.getStatesFromHost();return this.fileBasedStateProvider&&(e=this.fileBasedStateProvider.load()),u.MergeAndUpdateGovernedChannelStates(e,t).find(0)},e.prototype.save=function(e){var t=this;if(e){var n=this.getStatesFromHost(),r=u.MergeAndUpdateGovernedChannelStates(e,n),i=r.find(1),s=r.find(0);i&&i.forEach(function(e){var n=u.makeSettingItemValue(JSON.stringify(e));t.hostBasedStorage.upsertSettingItem(f[f.GovernedChannelStates],String(e.getType()),n)}),this.fileBasedStateProvider&&this.fileBasedStateProvider.save(s)}},e.prototype.getStatesFromHost=function(){var e=[],t=this.hostBasedStorage.readSettingList(f[f.GovernedChannelStates]);for(var n in t)if(t.hasOwnProperty(n)){var r=t[n],o=u.extractSettingItemValueSubString(r),a={};try{a=JSON.parse(o);var c=l.deserialize(a);c&&e.push(c)}catch(e){s.FloodgateEngine.getTelemetryLogger().log_Event(i.TelemetryEvent.HostBasedGovernedChannelStateProvider.GetStatesFromHost.Failed,{ErrorMessage:"Json parsing/deserializing failed. "+e.toString()+".  Input:"+o})}}return e},e})();t.HostBasedGovernedChannelStateProvider=p;var d=(function(){function e(e){if(!e)throw new Error("storage must not be null");this.storage=e}return e.prototype.load=function(){var e,t=this.storage.read(f.GovernedChannelStates);if(!t)return[];try{e=JSON.parse(t);var n=[];return e&&e.ChannelStates&&e.ChannelStates.forEach(function(e){var t=l.deserialize(e);t&&n.push(t)}),n}catch(e){return s.FloodgateEngine.getTelemetryLogger().log_Event(i.TelemetryEvent.FileBasedGovernedChannelStateProvider.Load.Failed,{ErrorMessage:"Json parsing/deserializing failed. "+e.toString()+".  Input:"+t}),[]}},e.prototype.save=function(e){if(e){var t=new h;t.ChannelStates=e;var n=JSON.stringify(t);this.storage.write(f.GovernedChannelStates,n)}},e})();t.FileBasedGovernedChannelStateProvider=d},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SurveyEventActivityStats=t.SurveyStatCollectionEventActivity=void 0;var s=n(16),o=n(20),u=n(43),a=n(10),f=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.fromJson=function(e){var n,r=new t;if(!e)return r;try{n=JSON.parse(e)}catch(e){return o.FloodgateEngine.getTelemetryLogger().log_Event(s.TelemetryEvent.SurveyStatCollectionEventActivity.FromJson.Failed,{ErrorMessage:"Json parsing failed. "+e.toString()}),r}return r.deserialize(n)?r:new t},t.toJson=function(e){return e||(o.FloodgateEngine.getTelemetryLogger().log_Event(s.TelemetryEvent.SurveyStatCollectionEventActivity.ToJson.Failed,{ErrorMessage:"Input json is null or empty."}),e=new t),JSON.stringify(e)},t.prototype.accumulate=function(e){if(e){var t=e.getStats();for(var n in t)if(t.hasOwnProperty(n)){var r=this.getBySurveyId(n);if(r||((r=new l).Counts=[],this.addStats(n,r)),r.ExpirationTimeUtc=t[n].ExpirationTimeUtc,r.Counts.length<t[n].Counts.length){var i=r.Counts.slice();r.Counts=i}for(var s=0;s<t[n].Counts.length;s++)r.Counts[s]||(r.Counts[s]=0),r.Counts[s]+=t[n].Counts[s]}}},t.prototype.deserialize=function(e){var t=e.Surveys,n=new Date;for(var r in t)if(t.hasOwnProperty(r)){var i=new l;i.deserialize(t[r])&&i.ExpirationTimeUtc>n&&this.addStats(r,i)}return this.validate()},t.prototype.validate=function(){return a.isObject(this.getStats())},t})(u.SurveyStatCollection);t.SurveyStatCollectionEventActivity=f;var l=(function(){function e(){}return e.prototype.deserialize=function(e){return this.ExpirationTimeUtc=e.ExpirationTimeUtc,this.Counts=e.Counts,this.validate()},e.prototype.validate=function(){if(!this.Counts)return!1;for(var e=0;e<this.Counts.length;e++){var t=this.Counts[e];if(!a.isNumber(t))return!1;t<0&&(this.Counts[e]=0)}return!!a.isUtcDatetimeString(this.ExpirationTimeUtc)&&(this.ExpirationTimeUtc=a.stringToDate(this.ExpirationTimeUtc),!0)},e})();t.SurveyEventActivityStats=l},function(e,t){},function(e,t,n){e.exports=(function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};function t(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{a(r.next(e))}catch(e){s(e)}}function u(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,u)}a((r=r.apply(e,t||[])).next())})}function i(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(s){return function(u){return(function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}})([s,u])}}}for(var s=(function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,i){return new e(this.left+t,this.top+n,this.width+r,this.height+i)},e.fromClientRect=function(t){return new e(t.left,t.top,t.width,t.height)},e})(),o=function(e){return s.fromClientRect(e.getBoundingClientRect())},u=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var s=e.charCodeAt(n++);56320==(64512&s)?t.push(((1023&i)<<10)+(1023&s)+65536):(t.push(i),n--)}else t.push(i)}return t},a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],i=-1,s="";++i<n;){var o=e[i];o<=65535?r.push(o):(o-=65536,r.push(55296+(o>>10),o%1024+56320)),(i+1===n||r.length>16384)&&(s+=String.fromCharCode.apply(String,r),r.length=0)}return s},f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l="undefined"==typeof Uint8Array?[]:new Uint8Array(256),c=0;c<f.length;c++)l[f.charCodeAt(c)]=c;var h,p=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},d=(function(){function e(e,t,n,r,i,s){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=i,this.data=s}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),v=10,m=13,g=15,y=17,b=18,w=19,E=20,S=21,x=22,T=24,N=25,C=26,k=27,L=28,A=30,O=32,M=33,_=34,D=35,P=37,H=38,B=39,j=40,F=42,I=(function(e){var t,n,r,i=(function(e){var t,n,r,i,s,o=.75*e.length,u=e.length,a=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var f="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(o):new Array(o),c=Array.isArray(f)?f:new Uint8Array(f);for(t=0;t<u;t+=4)n=l[e.charCodeAt(t)],r=l[e.charCodeAt(t+1)],i=l[e.charCodeAt(t+2)],s=l[e.charCodeAt(t+3)],c[a++]=n<<2|r>>4,c[a++]=(15&r)<<4|i>>2,c[a++]=(3&i)<<6|63&s;return f})("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),s=Array.isArray(i)?(function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n})(i):new Uint32Array(i),o=Array.isArray(i)?(function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n})(i):new Uint16Array(i),u=p(o,12,s[4]/2),a=2===s[5]?p(o,(24+s[4])/2):(t=s,n=Math.ceil((24+s[4])/4),t.slice?t.slice(n,r):new Uint32Array(Array.prototype.slice.call(t,n,r)));return new d(s[0],s[1],s[2],s[3],u,a)})(),q=[A,36],R=[1,2,3,5],U=[v,8],z=[k,C],W=R.concat(U),X=[H,B,j,_,D],V=[g,m],$=function(e,t,n,r){var i=r[n];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var s=n;s<=r.length;){if((a=r[++s])===t)return!0;if(a!==v)break}if(i===v)for(s=n;s>0;){var o=r[--s];if(Array.isArray(e)?-1!==e.indexOf(o):e===o)for(var u=n;u<=r.length;){var a;if((a=r[++u])===t)return!0;if(a!==v)break}if(o!==v)break}return!1},J=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==v)return r;n--}return 0},K=function(e,t,n,r,i){if(0===n[r])return"×";var s=r-1;if(Array.isArray(i)&&!0===i[s])return"×";var o=s-1,u=s+1,a=t[s],f=o>=0?t[o]:0,l=t[u];if(2===a&&3===l)return"×";if(-1!==R.indexOf(a))return"!";if(-1!==R.indexOf(l))return"×";if(-1!==U.indexOf(l))return"×";if(8===J(s,t))return"÷";if(11===I.get(e[s])&&(l===P||l===O||l===M))return"×";if(7===a||7===l)return"×";if(9===a)return"×";if(-1===[v,m,g].indexOf(a)&&9===l)return"×";if(-1!==[y,b,w,T,L].indexOf(l))return"×";if(J(s,t)===x)return"×";if($(23,x,s,t))return"×";if($([y,b],S,s,t))return"×";if($(12,12,s,t))return"×";if(a===v)return"÷";if(23===a||23===l)return"×";if(16===l||16===a)return"÷";if(-1!==[m,g,S].indexOf(l)||14===a)return"×";if(36===f&&-1!==V.indexOf(a))return"×";if(a===L&&36===l)return"×";if(l===E&&-1!==q.concat(E,w,N,P,O,M).indexOf(a))return"×";if(-1!==q.indexOf(l)&&a===N||-1!==q.indexOf(a)&&l===N)return"×";if(a===k&&-1!==[P,O,M].indexOf(l)||-1!==[P,O,M].indexOf(a)&&l===C)return"×";if(-1!==q.indexOf(a)&&-1!==z.indexOf(l)||-1!==z.indexOf(a)&&-1!==q.indexOf(l))return"×";if(-1!==[k,C].indexOf(a)&&(l===N||-1!==[x,g].indexOf(l)&&t[u+1]===N)||-1!==[x,g].indexOf(a)&&l===N||a===N&&-1!==[N,L,T].indexOf(l))return"×";if(-1!==[N,L,T,y,b].indexOf(l))for(var c=s;c>=0;){if((h=t[c])===N)return"×";if(-1===[L,T].indexOf(h))break;c--}if(-1!==[k,C].indexOf(l))for(c=-1!==[y,b].indexOf(a)?o:s;c>=0;){var h;if((h=t[c])===N)return"×";if(-1===[L,T].indexOf(h))break;c--}if(H===a&&-1!==[H,B,_,D].indexOf(l)||-1!==[B,_].indexOf(a)&&-1!==[B,j].indexOf(l)||-1!==[j,D].indexOf(a)&&l===j)return"×";if(-1!==X.indexOf(a)&&-1!==[E,C].indexOf(l)||-1!==X.indexOf(l)&&a===k)return"×";if(-1!==q.indexOf(a)&&-1!==q.indexOf(l))return"×";if(a===T&&-1!==q.indexOf(l))return"×";if(-1!==q.concat(N).indexOf(a)&&l===x||-1!==q.concat(N).indexOf(l)&&a===b)return"×";if(41===a&&41===l){for(var p=n[s],d=1;p>0&&41===t[--p];)d++;if(d%2!=0)return"×"}return a===O&&l===M?"×":"÷"},Q=(function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return a.apply(void 0,this.codePoints.slice(this.start,this.end))},e})();!(function(e){e[e.STRING_TOKEN=0]="STRING_TOKEN",e[e.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",e[e.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",e[e.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",e[e.COMMA_TOKEN=4]="COMMA_TOKEN",e[e.HASH_TOKEN=5]="HASH_TOKEN",e[e.DELIM_TOKEN=6]="DELIM_TOKEN",e[e.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",e[e.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",e[e.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",e[e.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",e[e.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",e[e.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",e[e.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",e[e.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",e[e.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",e[e.NUMBER_TOKEN=17]="NUMBER_TOKEN",e[e.FUNCTION=18]="FUNCTION",e[e.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",e[e.IDENT_TOKEN=20]="IDENT_TOKEN",e[e.COLUMN_TOKEN=21]="COLUMN_TOKEN",e[e.URL_TOKEN=22]="URL_TOKEN",e[e.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",e[e.CDC_TOKEN=24]="CDC_TOKEN",e[e.CDO_TOKEN=25]="CDO_TOKEN",e[e.COLON_TOKEN=26]="COLON_TOKEN",e[e.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",e[e.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",e[e.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",e[e.EOF_TOKEN=32]="EOF_TOKEN"})(h||(h={}));var G=function(e){return e>=48&&e<=57},Y=function(e){return G(e)||e>=65&&e<=70||e>=97&&e<=102},Z=function(e){return 10===e||9===e||32===e},ee=function(e){return(function(e){return(function(e){return e>=97&&e<=122})(e)||(function(e){return e>=65&&e<=90})(e)})(e)||(function(e){return e>=128})(e)||95===e},te=function(e){return ee(e)||G(e)||45===e},ne=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},re=function(e,t){return 92===e&&10!==t},ie=function(e,t,n){return 45===e?ee(t)||re(t,n):!!ee(e)||!(92!==e||!re(e,t))},se=function(e,t,n){return 43===e||45===e?!!G(t)||46===t&&G(n):G(46===e?t:e)},oe=function(e){var t=0,n=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(n=-1),t++);for(var r=[];G(e[t]);)r.push(e[t++]);var i=r.length?parseInt(a.apply(void 0,r),10):0;46===e[t]&&t++;for(var s=[];G(e[t]);)s.push(e[t++]);var o=s.length,u=o?parseInt(a.apply(void 0,s),10):0;69!==e[t]&&101!==e[t]||t++;var f=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(f=-1),t++);for(var l=[];G(e[t]);)l.push(e[t++]);var c=l.length?parseInt(a.apply(void 0,l),10):0;return n*(i+u*Math.pow(10,-o))*Math.pow(10,f*c)},ue={type:h.LEFT_PARENTHESIS_TOKEN},ae={type:h.RIGHT_PARENTHESIS_TOKEN},fe={type:h.COMMA_TOKEN},le={type:h.SUFFIX_MATCH_TOKEN},ce={type:h.PREFIX_MATCH_TOKEN},he={type:h.COLUMN_TOKEN},pe={type:h.DASH_MATCH_TOKEN},de={type:h.INCLUDE_MATCH_TOKEN},ve={type:h.LEFT_CURLY_BRACKET_TOKEN},me={type:h.RIGHT_CURLY_BRACKET_TOKEN},ge={type:h.SUBSTRING_MATCH_TOKEN},ye={type:h.BAD_URL_TOKEN},be={type:h.BAD_STRING_TOKEN},we={type:h.CDO_TOKEN},Ee={type:h.CDC_TOKEN},Se={type:h.COLON_TOKEN},xe={type:h.SEMICOLON_TOKEN},Te={type:h.LEFT_SQUARE_BRACKET_TOKEN},Ne={type:h.RIGHT_SQUARE_BRACKET_TOKEN},Ce={type:h.WHITESPACE_TOKEN},ke={type:h.EOF_TOKEN},Le=(function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(u(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==ke;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(te(t)||re(n,r)){var i=ie(t,n,r)?2:1,s=this.consumeName();return{type:h.HASH_TOKEN,value:s,flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),le;break;case 39:return this.consumeStringToken(39);case 40:return ue;case 41:return ae;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ge;break;case 43:if(se(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return fe;case 45:var o=e,u=this.peekCodePoint(0),f=this.peekCodePoint(1);if(se(o,u,f))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ie(o,u,f))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===u&&62===f)return this.consumeCodePoint(),this.consumeCodePoint(),Ee;break;case 46:if(se(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var l=this.consumeCodePoint();if(42===l&&47===(l=this.consumeCodePoint()))return this.consumeToken();if(-1===l)return this.consumeToken()}break;case 58:return Se;case 59:return xe;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),we;break;case 64:var c=this.peekCodePoint(0),p=this.peekCodePoint(1),d=this.peekCodePoint(2);if(ie(c,p,d))return s=this.consumeName(),{type:h.AT_KEYWORD_TOKEN,value:s};break;case 91:return Te;case 92:if(re(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Ne;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ce;break;case 123:return ve;case 125:return me;case 117:case 85:var v=this.peekCodePoint(0),m=this.peekCodePoint(1);return 43!==v||!Y(m)&&63!==m||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),pe;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),he;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),de;break;case-1:return ke}return Z(e)?(this.consumeWhiteSpace(),Ce):G(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ee(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:h.DELIM_TOKEN,value:a(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Y(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(a.apply(void 0,e.map(function(e){return 63===e?48:e})),16),i=parseInt(a.apply(void 0,e.map(function(e){return 63===e?70:e})),16);return{type:h.UNICODE_RANGE_TOKEN,start:r,end:i}}var s=parseInt(a.apply(void 0,e),16);if(45===this.peekCodePoint(0)&&Y(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];Y(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();return i=parseInt(a.apply(void 0,o),16),{type:h.UNICODE_RANGE_TOKEN,start:s,end:i}}return{type:h.UNICODE_RANGE_TOKEN,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:h.FUNCTION_TOKEN,value:e}):{type:h.IDENT_TOKEN,value:e}},e.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:h.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===h.STRING_TOKEN&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),ye)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:h.URL_TOKEN,value:a.apply(void 0,e)};if(Z(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:a.apply(void 0,e)}):(this.consumeBadUrlRemnants(),ye);if(34===r||39===r||40===r||ne(r))return this.consumeBadUrlRemnants(),ye;if(92===r){if(!re(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ye;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;Z(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;re(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(6e4,e);t+=a.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(-1===r||void 0===r||r===e)return t+=this.consumeStringSlice(n),{type:h.STRING_TOKEN,value:t};if(10===r)return this._value.splice(0,n),be;if(92===r){var i=this._value[n+1];-1!==i&&void 0!==i&&(10===i?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):re(r,i)&&(t+=this.consumeStringSlice(n),t+=a(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||e.push(this.consumeCodePoint());G(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&G(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;G(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((43===r||45===r)&&G(i)||G(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;G(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[oe(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(ie(r,i,s)){var o=this.consumeName();return{type:h.DIMENSION_TOKEN,number:t,flags:n,unit:o}}return 37===r?(this.consumeCodePoint(),{type:h.PERCENTAGE_TOKEN,number:t,flags:n}):{type:h.NUMBER_TOKEN,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Y(e)){for(var t=a(e);Y(this.peekCodePoint(0))&&t.length<6;)t+=a(this.consumeCodePoint());Z(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||(function(e){return e>=55296&&e<=57343})(n)||n>1114111?65533:n}return-1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(te(t))e+=a(t);else{if(!re(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=a(this.consumeEscapedCodePoint())}}},e})(),Ae=(function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Le;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===h.WHITESPACE_TOKEN;)e=this.consumeToken();if(e.type===h.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===h.WHITESPACE_TOKEN);if(e.type===h.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===h.EOF_TOKEN)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case h.LEFT_CURLY_BRACKET_TOKEN:case h.LEFT_SQUARE_BRACKET_TOKEN:case h.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case h.FUNCTION_TOKEN:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===h.EOF_TOKEN||Fe(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:h.FUNCTION};;){var n=this.consumeToken();if(n.type===h.EOF_TOKEN||n.type===h.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?ke:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e})(),Oe=function(e){return e.type===h.DIMENSION_TOKEN},Me=function(e){return e.type===h.NUMBER_TOKEN},_e=function(e){return e.type===h.IDENT_TOKEN},De=function(e){return e.type===h.STRING_TOKEN},Pe=function(e,t){return _e(e)&&e.value===t},He=function(e){return e.type!==h.WHITESPACE_TOKEN},Be=function(e){return e.type!==h.WHITESPACE_TOKEN&&e.type!==h.COMMA_TOKEN},je=function(e){var t=[],n=[];return e.forEach(function(e){if(e.type===h.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}e.type!==h.WHITESPACE_TOKEN&&n.push(e)}),n.length&&t.push(n),t},Fe=function(e,t){return t===h.LEFT_CURLY_BRACKET_TOKEN&&e.type===h.RIGHT_CURLY_BRACKET_TOKEN||t===h.LEFT_SQUARE_BRACKET_TOKEN&&e.type===h.RIGHT_SQUARE_BRACKET_TOKEN||t===h.LEFT_PARENTHESIS_TOKEN&&e.type===h.RIGHT_PARENTHESIS_TOKEN},Ie=function(e){return e.type===h.NUMBER_TOKEN||e.type===h.DIMENSION_TOKEN},qe=function(e){return e.type===h.PERCENTAGE_TOKEN||Ie(e)},Re=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Ue={type:h.NUMBER_TOKEN,number:0,flags:4},ze={type:h.PERCENTAGE_TOKEN,number:50,flags:4},We={type:h.PERCENTAGE_TOKEN,number:100,flags:4},Xe=function(e,t,n){var r=e[0],i=e[1];return[Ve(r,t),Ve(void 0!==i?i:r,n)]},Ve=function(e,t){if(e.type===h.PERCENTAGE_TOKEN)return e.number/100*t;if(Oe(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},$e=function(e){if(e.type===h.DIMENSION_TOKEN)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},Je=function(e){return e.type===h.DIMENSION_TOKEN&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},Ke=function(e){switch(e.filter(_e).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ue,Ue];case"to top":case"bottom":return Qe(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ue,We];case"to right":case"left":return Qe(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[We,We];case"to bottom":case"top":return Qe(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[We,Ue];case"to left":case"right":return Qe(270)}return 0},Qe=function(e){return Math.PI*e/180},Ge=function(e){if(e.type===h.FUNCTION){var t=ut[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(e.values)}if(e.type===h.HASH_TOKEN){if(3===e.value.length){var n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);return et(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),1)}if(4===e.value.length){n=e.value.substring(0,1),r=e.value.substring(1,2),i=e.value.substring(2,3);var s=e.value.substring(3,4);return et(parseInt(n+n,16),parseInt(r+r,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(6===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),et(parseInt(n,16),parseInt(r,16),parseInt(i,16),1);if(8===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),i=e.value.substring(4,6),s=e.value.substring(6,8),et(parseInt(n,16),parseInt(r,16),parseInt(i,16),parseInt(s,16)/255)}if(e.type===h.IDENT_TOKEN){var o=at[e.value.toUpperCase()];if(void 0!==o)return o}return at.TRANSPARENT},Ye=function(e){return 0==(255&e)},Ze=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+r+","+n+","+t/255+")":"rgb("+i+","+r+","+n+")"},et=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r)<<0)>>>0},tt=function(e,t){if(e.type===h.NUMBER_TOKEN)return e.number;if(e.type===h.PERCENTAGE_TOKEN){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},nt=function(e){var t=e.filter(Be);if(3===t.length){var n=t.map(tt),r=n[0],i=n[1],s=n[2];return et(r,i,s,1)}if(4===t.length){var o=t.map(tt),u=(r=o[0],i=o[1],s=o[2],o[3]);return et(r,i,s,u)}return 0};function rt(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var it,st,ot=function(e){var t=e.filter(Be),n=t[0],r=t[1],i=t[2],s=t[3],o=(n.type===h.NUMBER_TOKEN?Qe(n.number):$e(n))/(2*Math.PI),u=qe(r)?r.number/100:0,a=qe(i)?i.number/100:0,f=void 0!==s&&qe(s)?Ve(s,1):1;if(0===u)return et(255*a,255*a,255*a,1);var l=a<=.5?a*(u+1):a+u-a*u,c=2*a-l,p=rt(c,l,o+1/3),d=rt(c,l,o),v=rt(c,l,o-1/3);return et(255*p,255*d,255*v,f)},ut={hsl:ot,hsla:ot,rgb:nt,rgba:nt},at={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"})(it||(it={})),(function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"})(st||(st={}));var ft,lt,ct,ht={name:"background-clip",initialValue:"border-box",prefix:!1,type:it.LIST,parse:function(e){return e.map(function(e){if(_e(e))switch(e.value){case"padding-box":return st.PADDING_BOX;case"content-box":return st.CONTENT_BOX}return st.BORDER_BOX})}},pt={name:"background-color",initialValue:"transparent",prefix:!1,type:it.TYPE_VALUE,format:"color"},dt=function(e){var t=Ge(e[0]),n=e[1];return n&&qe(n)?{color:t,stop:n}:{color:t,stop:null}},vt=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=Ue),null===r.stop&&(r.stop=We);for(var i=[],s=0,o=0;o<e.length;o++){var u=e[o].stop;if(null!==u){var a=Ve(u,t);a>s?i.push(a):i.push(s),s=a}else i.push(null)}var f=null;for(o=0;o<i.length;o++){var l=i[o];if(null===l)null===f&&(f=o);else if(null!==f){for(var c=o-f,h=(l-i[f-1])/(c+1),p=1;p<=c;p++)i[f+p-1]=h*p;f=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,i[n]/t),0)}})},mt=function(e,t){return Math.sqrt(e*e+t*t)},gt=function(e,t,n,r,i){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var s=t[0],o=t[1],u=mt(n-s,r-o);return(i?u<e.optimumDistance:u>e.optimumDistance)?{optimumCorner:t,optimumDistance:u}:e},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},yt=function(e){var t=Qe(180),n=[];return je(e).forEach(function(e,r){if(0===r){var i=e[0];if(i.type===h.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(i.value))return void(t=Ke(e));if(Je(i))return void(t=($e(i)+Qe(270))%Qe(360))}var s=dt(e);n.push(s)}),{angle:t,stops:n,type:ft.LINEAR_GRADIENT}},bt=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},wt=function(e,t,n,r,i){var s="http://www.w3.org/2000/svg",o=document.createElementNS(s,"svg"),u=document.createElementNS(s,"foreignObject");return o.setAttributeNS(null,"width",e.toString()),o.setAttributeNS(null,"height",t.toString()),u.setAttributeNS(null,"width","100%"),u.setAttributeNS(null,"height","100%"),u.setAttributeNS(null,"x",n.toString()),u.setAttributeNS(null,"y",r.toString()),u.setAttributeNS(null,"externalResourcesRequired","true"),o.appendChild(u),u.appendChild(i),o},Et=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},St={get SUPPORT_RANGE_BOUNDS(){var e=(function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),i=Math.round(r.height);if(e.body.removeChild(n),123===i)return!0}}return!1})(document);return Object.defineProperty(St,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=(function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0})(document);return Object.defineProperty(St,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?(function(e){var t=e.createElement("canvas");t.width=100,t.height=100;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var r=new Image,i=t.toDataURL();r.src=i;var s=wt(100,100,0,0,r);return n.fillStyle="red",n.fillRect(0,0,100,100),Et(s).then(function(t){n.drawImage(t,0,0);var r=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var s=e.createElement("div");return s.style.backgroundImage="url("+i+")",s.style.height="100px",bt(r)?Et(wt(100,100,0,0,s)):Promise.reject(!1)}).then(function(e){return n.drawImage(e,0,0),bt(n.getImageData(0,0,100,100).data)}).catch(function(){return!1})})(document):Promise.resolve(!1);return Object.defineProperty(St,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(St,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(St,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(St,"SUPPORT_CORS_XHR",{value:e}),e}},xt=(function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.create=function(t){e.instances[t.id]=new e(t)},e.destroy=function(t){delete e.instances[t]},e.getInstance=function(t){var n=e.instances[t];if(void 0===n)throw new Error("No logger instance found with id "+t);return n},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.instances={},e})(),Tt=(function(){function e(){}return e.create=function(t,n){return e._caches[t]=new Nt(t,n)},e.destroy=function(t){delete e._caches[t]},e.open=function(t){var n=e._caches[t];if(void 0!==n)return n;throw new Error('Cache with key "'+t+'" not found')},e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e.getInstance=function(){var t=e._current;if(null===t)throw new Error("No cache instance attached");return t},e.attachInstance=function(t){e._current=t},e.detachInstance=function(){e._current=null},e._caches={},e._origin="about:blank",e._current=null,e})(),Nt=(function(){function e(e,t){this.id=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:_t(e)||At(e)?(this._cache[e]=this.loadImage(e),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,s,o=this;return i(this,function(i){switch(i.label){case 0:return t=Tt.isSameOrigin(e),n=!Ot(e)&&!0===this._options.useCORS&&St.SUPPORT_CORS_IMAGES&&!t,r=!Ot(e)&&!t&&"string"==typeof this._options.proxy&&St.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||Ot(e)||r||n?(s=e,r?[4,this.proxy(s)]:[3,2]):[2];case 1:s=i.sent(),i.label=2;case 2:return xt.getInstance(this.id).debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Mt(s)||n)&&(r.crossOrigin="anonymous"),r.src=s,!0===r.complete&&setTimeout(function(){return e(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(i,s){var o=St.SUPPORT_RESPONSE_TYPE?"blob":"text",u=new XMLHttpRequest;if(u.onload=function(){if(200===u.status)if("text"===o)i(u.response);else{var e=new FileReader;e.addEventListener("load",function(){return i(e.result)},!1),e.addEventListener("error",function(e){return s(e)},!1),e.readAsDataURL(u.response)}else s("Failed to proxy resource "+r+" with status code "+u.status)},u.onerror=s,u.open("GET",n+"?url="+encodeURIComponent(e)+"&responseType="+o),"text"!==o&&u instanceof XMLHttpRequest&&(u.responseType=o),t._options.imageTimeout){var a=t._options.imageTimeout;u.timeout=a,u.ontimeout=function(){return s("Timed out ("+a+"ms) proxying "+r)}}u.send()})},e})(),Ct=/^data:image\/svg\+xml/i,kt=/^data:image\/.*;base64,/i,Lt=/^data:image\/.*/i,At=function(e){return St.SUPPORT_SVG_DRAWING||!Dt(e)},Ot=function(e){return Lt.test(e)},Mt=function(e){return kt.test(e)},_t=function(e){return"blob"===e.substr(0,4)},Dt=function(e){return"svg"===e.substr(-3).toLowerCase()||Ct.test(e)},Pt=function(e){var t=lt.CIRCLE,n=ct.FARTHEST_CORNER,r=[],i=[];return je(e).forEach(function(e,s){var o=!0;if(0===s?o=e.reduce(function(e,t){if(_e(t))switch(t.value){case"center":return i.push(ze),!1;case"top":case"left":return i.push(Ue),!1;case"right":case"bottom":return i.push(We),!1}else if(qe(t)||Ie(t))return i.push(t),!1;return e},o):1===s&&(o=e.reduce(function(e,r){if(_e(r))switch(r.value){case"circle":return t=lt.CIRCLE,!1;case"ellipse":return t=lt.ELLIPSE,!1;case"contain":case"closest-side":return n=ct.CLOSEST_SIDE,!1;case"farthest-side":return n=ct.FARTHEST_SIDE,!1;case"closest-corner":return n=ct.CLOSEST_CORNER,!1;case"cover":case"farthest-corner":return n=ct.FARTHEST_CORNER,!1}else if(Ie(r)||qe(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return e},o)),o){var u=dt(e);r.push(u)}}),{size:n,shape:t,stops:r,position:i,type:ft.RADIAL_GRADIENT}};!(function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"})(ft||(ft={})),(function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"})(lt||(lt={})),(function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"})(ct||(ct={}));var Ht,Bt=function(e){if(e.type===h.URL_TOKEN){var t={url:e.value,type:ft.URL};return Tt.getInstance().addImage(e.value),t}if(e.type===h.FUNCTION){var n=jt[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(e.values)}throw new Error("Unsupported image type")},jt={"linear-gradient":function(e){var t=Qe(180),n=[];return je(e).forEach(function(e,r){if(0===r){var i=e[0];if(i.type===h.IDENT_TOKEN&&"to"===i.value)return void(t=Ke(e));if(Je(i))return void(t=$e(i))}var s=dt(e);n.push(s)}),{angle:t,stops:n,type:ft.LINEAR_GRADIENT}},"-moz-linear-gradient":yt,"-ms-linear-gradient":yt,"-o-linear-gradient":yt,"-webkit-linear-gradient":yt,"radial-gradient":function(e){var t=lt.CIRCLE,n=ct.FARTHEST_CORNER,r=[],i=[];return je(e).forEach(function(e,s){var o=!0;if(0===s){var u=!1;o=e.reduce(function(e,r){if(u)if(_e(r))switch(r.value){case"center":return i.push(ze),e;case"top":case"left":return i.push(Ue),e;case"right":case"bottom":return i.push(We),e}else(qe(r)||Ie(r))&&i.push(r);else if(_e(r))switch(r.value){case"circle":return t=lt.CIRCLE,!1;case"ellipse":return t=lt.ELLIPSE,!1;case"at":return u=!0,!1;case"closest-side":return n=ct.CLOSEST_SIDE,!1;case"cover":case"farthest-side":return n=ct.FARTHEST_SIDE,!1;case"contain":case"closest-corner":return n=ct.CLOSEST_CORNER,!1;case"farthest-corner":return n=ct.FARTHEST_CORNER,!1}else if(Ie(r)||qe(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return e},o)}if(o){var a=dt(e);r.push(a)}}),{size:n,shape:t,stops:r,position:i,type:ft.RADIAL_GRADIENT}},"-moz-radial-gradient":Pt,"-ms-radial-gradient":Pt,"-o-radial-gradient":Pt,"-webkit-radial-gradient":Pt,"-webkit-gradient":function(e){var t=Qe(180),n=[],r=ft.LINEAR_GRADIENT,i=lt.CIRCLE,s=ct.FARTHEST_CORNER;return je(e).forEach(function(e,t){var i=e[0];if(0===t){if(_e(i)&&"linear"===i.value)return void(r=ft.LINEAR_GRADIENT);if(_e(i)&&"radial"===i.value)return void(r=ft.RADIAL_GRADIENT)}if(i.type===h.FUNCTION)if("from"===i.name){var s=Ge(i.values[0]);n.push({stop:Ue,color:s})}else if("to"===i.name)s=Ge(i.values[0]),n.push({stop:We,color:s});else if("color-stop"===i.name){var o=i.values.filter(Be);if(2===o.length){s=Ge(o[1]);var u=o[0];Me(u)&&n.push({stop:{type:h.PERCENTAGE_TOKEN,number:100*u.number,flags:u.flags},color:s})}}}),r===ft.LINEAR_GRADIENT?{angle:(t+Qe(180))%Qe(360),stops:n,type:r}:{size:s,shape:i,stops:n,position:[],type:r}}},Ft={name:"background-image",initialValue:"none",type:it.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===h.IDENT_TOKEN&&"none"===t.value?[]:e.filter(function(e){return Be(e)&&(function(e){return e.type!==h.FUNCTION||jt[e.name]})(e)}).map(Bt)}},It={name:"background-origin",initialValue:"border-box",prefix:!1,type:it.LIST,parse:function(e){return e.map(function(e){if(_e(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qt={name:"background-position",initialValue:"0% 0%",type:it.LIST,prefix:!1,parse:function(e){return je(e).map(function(e){return e.filter(qe)}).map(Re)}};!(function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"})(Ht||(Ht={}));var Rt,Ut={name:"background-repeat",initialValue:"repeat",prefix:!1,type:it.LIST,parse:function(e){return je(e).map(function(e){return e.filter(_e).map(function(e){return e.value}).join(" ")}).map(zt)}},zt=function(e){switch(e){case"no-repeat":return Ht.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Ht.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Ht.REPEAT_Y;case"repeat":default:return Ht.REPEAT}};!(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Rt||(Rt={}));var Wt,Xt={name:"background-size",initialValue:"0",prefix:!1,type:it.LIST,parse:function(e){return je(e).map(function(e){return e.filter(Vt)})}},Vt=function(e){return _e(e)||qe(e)},$t=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:it.TYPE_VALUE,format:"color"}},Jt=$t("top"),Kt=$t("right"),Qt=$t("bottom"),Gt=$t("left"),Yt=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:it.LIST,parse:function(e){return Re(e.filter(qe))}}},Zt=Yt("top-left"),en=Yt("top-right"),tn=Yt("bottom-right"),nn=Yt("bottom-left");!(function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID"})(Wt||(Wt={}));var rn,sn=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"none":return Wt.NONE}return Wt.SOLID}}},on=sn("top"),un=sn("right"),an=sn("bottom"),fn=sn("left"),ln=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:it.VALUE,prefix:!1,parse:function(e){return Oe(e)?e.number:0}}},cn=ln("top"),hn=ln("right"),pn=ln("bottom"),dn=ln("left"),vn={name:"color",initialValue:"transparent",prefix:!1,type:it.TYPE_VALUE,format:"color"},mn={name:"display",initialValue:"inline-block",prefix:!1,type:it.LIST,parse:function(e){return e.filter(_e).reduce(function(e,t){return e|gn(t.value)},0)}},gn=function(e){switch(e){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!(function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"})(rn||(rn={}));var yn,bn={name:"float",initialValue:"none",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"left":return rn.LEFT;case"right":return rn.RIGHT;case"inline-start":return rn.INLINE_START;case"inline-end":return rn.INLINE_END}return rn.NONE}},wn={name:"letter-spacing",initialValue:"0",prefix:!1,type:it.VALUE,parse:function(e){return e.type===h.IDENT_TOKEN&&"normal"===e.value?0:e.type===h.NUMBER_TOKEN||e.type===h.DIMENSION_TOKEN?e.number:0}};!(function(e){e.NORMAL="normal",e.STRICT="strict"})(yn||(yn={}));var En,Sn={name:"line-break",initialValue:"normal",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"strict":return yn.STRICT;case"normal":default:return yn.NORMAL}}},xn={name:"line-height",initialValue:"normal",prefix:!1,type:it.TOKEN_VALUE},Tn={name:"list-style-image",initialValue:"none",type:it.VALUE,prefix:!1,parse:function(e){return e.type===h.IDENT_TOKEN&&"none"===e.value?null:Bt(e)}};!(function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"})(En||(En={}));var Nn,Cn={name:"list-style-position",initialValue:"outside",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"inside":return En.INSIDE;case"outside":default:return En.OUTSIDE}}};!(function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECIMAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKANA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"})(Nn||(Nn={}));var kn,Ln={name:"list-style-type",initialValue:"none",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"disc":return Nn.DISC;case"circle":return Nn.CIRCLE;case"square":return Nn.SQUARE;case"decimal":return Nn.DECIMAL;case"cjk-decimal":return Nn.CJK_DECIMAL;case"decimal-leading-zero":return Nn.DECIMAL_LEADING_ZERO;case"lower-roman":return Nn.LOWER_ROMAN;case"upper-roman":return Nn.UPPER_ROMAN;case"lower-greek":return Nn.LOWER_GREEK;case"lower-alpha":return Nn.LOWER_ALPHA;case"upper-alpha":return Nn.UPPER_ALPHA;case"arabic-indic":return Nn.ARABIC_INDIC;case"armenian":return Nn.ARMENIAN;case"bengali":return Nn.BENGALI;case"cambodian":return Nn.CAMBODIAN;case"cjk-earthly-branch":return Nn.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Nn.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Nn.CJK_IDEOGRAPHIC;case"devanagari":return Nn.DEVANAGARI;case"ethiopic-numeric":return Nn.ETHIOPIC_NUMERIC;case"georgian":return Nn.GEORGIAN;case"gujarati":return Nn.GUJARATI;case"gurmukhi":return Nn.GURMUKHI;case"hebrew":return Nn.HEBREW;case"hiragana":return Nn.HIRAGANA;case"hiragana-iroha":return Nn.HIRAGANA_IROHA;case"japanese-formal":return Nn.JAPANESE_FORMAL;case"japanese-informal":return Nn.JAPANESE_INFORMAL;case"kannada":return Nn.KANNADA;case"katakana":return Nn.KATAKANA;case"katakana-iroha":return Nn.KATAKANA_IROHA;case"khmer":return Nn.KHMER;case"korean-hangul-formal":return Nn.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Nn.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Nn.KOREAN_HANJA_INFORMAL;case"lao":return Nn.LAO;case"lower-armenian":return Nn.LOWER_ARMENIAN;case"malayalam":return Nn.MALAYALAM;case"mongolian":return Nn.MONGOLIAN;case"myanmar":return Nn.MYANMAR;case"oriya":return Nn.ORIYA;case"persian":return Nn.PERSIAN;case"simp-chinese-formal":return Nn.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Nn.SIMP_CHINESE_INFORMAL;case"tamil":return Nn.TAMIL;case"telugu":return Nn.TELUGU;case"thai":return Nn.THAI;case"tibetan":return Nn.TIBETAN;case"trad-chinese-formal":return Nn.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Nn.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Nn.UPPER_ARMENIAN;case"disclosure-open":return Nn.DISCLOSURE_OPEN;case"disclosure-closed":return Nn.DISCLOSURE_CLOSED;case"none":default:return Nn.NONE}}},An=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:it.TOKEN_VALUE}},On=An("top"),Mn=An("right"),_n=An("bottom"),Dn=An("left");!(function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.AUTO=3]="AUTO"})(kn||(kn={}));var Pn,Hn={name:"overflow",initialValue:"visible",prefix:!1,type:it.LIST,parse:function(e){return e.filter(_e).map(function(e){switch(e.value){case"hidden":return kn.HIDDEN;case"scroll":return kn.SCROLL;case"auto":return kn.AUTO;case"visible":default:return kn.VISIBLE}})}};!(function(e){e.NORMAL="normal",e.BREAK_WORD="break-word"})(Pn||(Pn={}));var Bn,jn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"break-word":return Pn.BREAK_WORD;case"normal":default:return Pn.NORMAL}}},Fn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:it.TYPE_VALUE,format:"length-percentage"}},In=Fn("top"),qn=Fn("right"),Rn=Fn("bottom"),Un=Fn("left");!(function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"})(Bn||(Bn={}));var zn,Wn={name:"text-align",initialValue:"left",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"right":return Bn.RIGHT;case"center":case"justify":return Bn.CENTER;case"left":default:return Bn.LEFT}}};!(function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"})(zn||(zn={}));var Xn,Vn={name:"position",initialValue:"static",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"relative":return zn.RELATIVE;case"absolute":return zn.ABSOLUTE;case"fixed":return zn.FIXED;case"sticky":return zn.STICKY}return zn.STATIC}},$n={name:"text-shadow",initialValue:"none",type:it.LIST,prefix:!1,parse:function(e){return 1===e.length&&Pe(e[0],"none")?[]:je(e).map(function(e){for(var t={color:at.TRANSPARENT,offsetX:Ue,offsetY:Ue,blur:Ue},n=0,r=0;r<e.length;r++){var i=e[r];Ie(i)?(0===n?t.offsetX=i:1===n?t.offsetY=i:t.blur=i,n++):t.color=Ge(i)}return t})}};!(function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"})(Xn||(Xn={}));var Jn,Kn={name:"text-transform",initialValue:"none",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"uppercase":return Xn.UPPERCASE;case"lowercase":return Xn.LOWERCASE;case"capitalize":return Xn.CAPITALIZE}return Xn.NONE}},Qn={name:"transform",initialValue:"none",prefix:!0,type:it.VALUE,parse:function(e){if(e.type===h.IDENT_TOKEN&&"none"===e.value)return null;if(e.type===h.FUNCTION){var t=Gn[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},Gn={matrix:function(e){var t=e.filter(function(e){return e.type===h.NUMBER_TOKEN}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return e.type===h.NUMBER_TOKEN}).map(function(e){return e.number}),n=t[0],r=t[1],i=(t[2],t[3],t[4]),s=t[5],o=(t[6],t[7],t[8],t[9],t[10],t[11],t[12]),u=t[13];return t[14],t[15],16===t.length?[n,r,i,s,o,u]:null}},Yn={type:h.PERCENTAGE_TOKEN,number:50,flags:4},Zn=[Yn,Yn],er={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:it.LIST,parse:function(e){var t=e.filter(qe);return 2!==t.length?Zn:[t[0],t[1]]}};!(function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"})(Jn||(Jn={}));var tr,nr={name:"visible",initialValue:"none",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"hidden":return Jn.HIDDEN;case"collapse":return Jn.COLLAPSE;case"visible":default:return Jn.VISIBLE}}};!(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(tr||(tr={}));var rr,ir={name:"word-break",initialValue:"normal",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"break-all":return tr.BREAK_ALL;case"keep-all":return tr.KEEP_ALL;case"normal":default:return tr.NORMAL}}},sr={name:"z-index",initialValue:"auto",prefix:!1,type:it.VALUE,parse:function(e){if(e.type===h.IDENT_TOKEN)return{auto:!0,order:0};if(Me(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},or={name:"opacity",initialValue:"1",type:it.VALUE,prefix:!1,parse:function(e){return Me(e)?e.number:1}},ur={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:it.TYPE_VALUE,format:"color"},ar={name:"text-decoration-line",initialValue:"none",prefix:!1,type:it.LIST,parse:function(e){return e.filter(_e).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},fr={name:"font-family",initialValue:"",prefix:!1,type:it.LIST,parse:function(e){return e.filter(lr).map(function(e){return e.value})}},lr=function(e){return e.type===h.STRING_TOKEN||e.type===h.IDENT_TOKEN},cr={name:"font-size",initialValue:"0",prefix:!1,type:it.TYPE_VALUE,format:"length"},hr={name:"font-weight",initialValue:"normal",type:it.VALUE,prefix:!1,parse:function(e){if(Me(e))return e.number;if(_e(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},pr={name:"font-variant",initialValue:"none",type:it.LIST,prefix:!1,parse:function(e){return e.filter(_e).map(function(e){return e.value})}};!(function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"})(rr||(rr={}));var dr,vr={name:"font-style",initialValue:"normal",prefix:!1,type:it.IDENT_VALUE,parse:function(e){switch(e){case"oblique":return rr.OBLIQUE;case"italic":return rr.ITALIC;case"normal":default:return rr.NORMAL}}},mr=function(e,t){return 0!=(e&t)},gr={name:"content",initialValue:"none",type:it.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===h.IDENT_TOKEN&&"none"===t.value?[]:e}},yr={name:"counter-increment",initialValue:"none",prefix:!0,type:it.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===h.IDENT_TOKEN&&"none"===t.value)return null;for(var n=[],r=e.filter(He),i=0;i<r.length;i++){var s=r[i],o=r[i+1];if(s.type===h.IDENT_TOKEN){var u=o&&Me(o)?o.number:1;n.push({counter:s.value,increment:u})}}return n}},br={name:"counter-reset",initialValue:"none",prefix:!0,type:it.LIST,parse:function(e){if(0===e.length)return[];for(var t=[],n=e.filter(He),r=0;r<n.length;r++){var i=n[r],s=n[r+1];if(_e(i)&&"none"!==i.value){var o=s&&Me(s)?s.number:0;t.push({counter:i.value,reset:o})}}return t}},wr={name:"quotes",initialValue:"none",prefix:!0,type:it.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===h.IDENT_TOKEN&&"none"===t.value)return null;var n=[],r=e.filter(De);if(r.length%2!=0)return null;for(var i=0;i<r.length;i+=2){var s=r[i].value,o=r[i+1].value;n.push({open:s,close:o})}return n}},Er=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},Sr={name:"box-shadow",initialValue:"none",type:it.LIST,prefix:!1,parse:function(e){return 1===e.length&&Pe(e[0],"none")?[]:je(e).map(function(e){for(var t={color:255,offsetX:Ue,offsetY:Ue,blur:Ue,spread:Ue,inset:!1},n=0,r=0;r<e.length;r++){var i=e[r];Pe(i,"inset")?t.inset=!0:Ie(i)?(0===n?t.offsetX=i:1===n?t.offsetY=i:2===n?t.blur=i:t.spread=i,n++):t.color=Ge(i)}return t})}},xr=(function(){function e(e){this.backgroundClip=Cr(ht,e.backgroundClip),this.backgroundColor=Cr(pt,e.backgroundColor),this.backgroundImage=Cr(Ft,e.backgroundImage),this.backgroundOrigin=Cr(It,e.backgroundOrigin),this.backgroundPosition=Cr(qt,e.backgroundPosition),this.backgroundRepeat=Cr(Ut,e.backgroundRepeat),this.backgroundSize=Cr(Xt,e.backgroundSize),this.borderTopColor=Cr(Jt,e.borderTopColor),this.borderRightColor=Cr(Kt,e.borderRightColor),this.borderBottomColor=Cr(Qt,e.borderBottomColor),this.borderLeftColor=Cr(Gt,e.borderLeftColor),this.borderTopLeftRadius=Cr(Zt,e.borderTopLeftRadius),this.borderTopRightRadius=Cr(en,e.borderTopRightRadius),this.borderBottomRightRadius=Cr(tn,e.borderBottomRightRadius),this.borderBottomLeftRadius=Cr(nn,e.borderBottomLeftRadius),this.borderTopStyle=Cr(on,e.borderTopStyle),this.borderRightStyle=Cr(un,e.borderRightStyle),this.borderBottomStyle=Cr(an,e.borderBottomStyle),this.borderLeftStyle=Cr(fn,e.borderLeftStyle),this.borderTopWidth=Cr(cn,e.borderTopWidth),this.borderRightWidth=Cr(hn,e.borderRightWidth),this.borderBottomWidth=Cr(pn,e.borderBottomWidth),this.borderLeftWidth=Cr(dn,e.borderLeftWidth),this.boxShadow=Cr(Sr,e.boxShadow),this.color=Cr(vn,e.color),this.display=Cr(mn,e.display),this.float=Cr(bn,e.cssFloat),this.fontFamily=Cr(fr,e.fontFamily),this.fontSize=Cr(cr,e.fontSize),this.fontStyle=Cr(vr,e.fontStyle),this.fontVariant=Cr(pr,e.fontVariant),this.fontWeight=Cr(hr,e.fontWeight),this.letterSpacing=Cr(wn,e.letterSpacing),this.lineBreak=Cr(Sn,e.lineBreak),this.lineHeight=Cr(xn,e.lineHeight),this.listStyleImage=Cr(Tn,e.listStyleImage),this.listStylePosition=Cr(Cn,e.listStylePosition),this.listStyleType=Cr(Ln,e.listStyleType),this.marginTop=Cr(On,e.marginTop),this.marginRight=Cr(Mn,e.marginRight),this.marginBottom=Cr(_n,e.marginBottom),this.marginLeft=Cr(Dn,e.marginLeft),this.opacity=Cr(or,e.opacity);var t=Cr(Hn,e.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=Cr(jn,e.overflowWrap),this.paddingTop=Cr(In,e.paddingTop),this.paddingRight=Cr(qn,e.paddingRight),this.paddingBottom=Cr(Rn,e.paddingBottom),this.paddingLeft=Cr(Un,e.paddingLeft),this.position=Cr(Vn,e.position),this.textAlign=Cr(Wn,e.textAlign),this.textDecorationColor=Cr(ur,e.textDecorationColor||e.color),this.textDecorationLine=Cr(ar,e.textDecorationLine),this.textShadow=Cr($n,e.textShadow),this.textTransform=Cr(Kn,e.textTransform),this.transform=Cr(Qn,e.transform),this.transformOrigin=Cr(er,e.transformOrigin),this.visibility=Cr(nr,e.visibility),this.wordBreak=Cr(ir,e.wordBreak),this.zIndex=Cr(sr,e.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===Jn.VISIBLE},e.prototype.isTransparent=function(){return Ye(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==zn.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==rn.NONE},e.prototype.isInlineLevel=function(){return mr(this.display,4)||mr(this.display,33554432)||mr(this.display,268435456)||mr(this.display,536870912)||mr(this.display,67108864)||mr(this.display,134217728)},e})(),Tr=function(e){this.content=Cr(gr,e.content),this.quotes=Cr(wr,e.quotes)},Nr=function(e){this.counterIncrement=Cr(yr,e.counterIncrement),this.counterReset=Cr(br,e.counterReset)},Cr=function(e,t){var n=new Le,r=null!=t?t.toString():e.initialValue;n.write(r);var i=new Ae(n.read());switch(e.type){case it.IDENT_VALUE:var s=i.parseComponentValue();return e.parse(_e(s)?s.value:e.initialValue);case it.VALUE:return e.parse(i.parseComponentValue());case it.LIST:return e.parse(i.parseComponentValues());case it.TOKEN_VALUE:return i.parseComponentValue();case it.TYPE_VALUE:switch(e.format){case"angle":return $e(i.parseComponentValue());case"color":return Ge(i.parseComponentValue());case"image":return Bt(i.parseComponentValue());case"length":var o=i.parseComponentValue();return Ie(o)?o:Ue;case"length-percentage":var u=i.parseComponentValue();return qe(u)?u:Ue}}throw new Error("Attempting to parse unsupported css format type "+e.format)},kr=function(e){this.styles=new xr(window.getComputedStyle(e,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&ni(e)&&(e.style.transform="none"),this.bounds=o(e),this.flags=0},Lr=function(e,t){this.text=e,this.bounds=t},Ar=function(e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var i=o(n);return n.firstChild&&r.replaceChild(n.firstChild,n),i}}return new s(0,0,0,0)},Or=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(e,t),i.setEnd(e,t+n),s.fromClientRect(i.getBoundingClientRect())},Mr=function(e,t){for(var n,r=(function(e,t){var n=u(e),r=(function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=(function(e,t){void 0===t&&(t="strict");var n=[],r=[],i=[];return e.forEach(function(e,s){var o=I.get(e);if(o>50?(i.push(!0),o-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(s),n.push(16);if(4===o||11===o){if(0===s)return r.push(s),n.push(A);var u=n[s-1];return-1===W.indexOf(u)?(r.push(r[s-1]),n.push(u)):(r.push(s),n.push(A))}return r.push(s),31===o?n.push("strict"===t?S:P):o===F||29===o?n.push(A):43===o?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(P):n.push(A):void n.push(o)}),[r,n,i]})(e,t.lineBreak),r=n[0],i=n[1],s=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(i=i.map(function(e){return-1!==[N,A,F].indexOf(e)?P:e})),[r,i,"keep-all"===t.wordBreak?s.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0]})(n,t),i=r[0],s=r[1],o=r[2],a=n.length,f=0,l=0;return{next:function(){if(l>=a)return{done:!0,value:null};for(var e="×";l<a&&"×"===(e=K(n,s,i,++l,o)););if("×"!==e||l===a){var t=new Q(n,e,f,l);return f=l,{value:t,done:!1}}return{done:!0,value:null}}}})(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===Pn.BREAK_WORD?"break-word":t.wordBreak}),i=[];!(n=r.next()).done;)n.value&&i.push(n.value.slice());return i},_r=function(e,t){this.text=Dr(e.data,t.textTransform),this.textBounds=(function(e,t,n){var r=(function(e,t){return 0!==t.letterSpacing?u(e).map(function(e){return a(e)}):Mr(e,t)})(e,t),i=[],s=0;return r.forEach(function(e){if(t.textDecorationLine.length||e.trim().length>0)if(St.SUPPORT_RANGE_BOUNDS)i.push(new Lr(e,Or(n,s,e.length)));else{var r=n.splitText(e.length);i.push(new Lr(e,Ar(n))),n=r}else St.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));s+=e.length}),i})(this.text,t,e)},Dr=function(e,t){switch(t){case Xn.LOWERCASE:return e.toLowerCase();case Xn.CAPITALIZE:return e.replace(Pr,Hr);case Xn.UPPERCASE:return e.toUpperCase();default:return e}},Pr=/(^|\s|:|-|\(|\))([a-z])/g,Hr=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Br=(function(e){function n(t){var n=e.call(this,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,Tt.getInstance().addImage(n.src),n}return t(n,e),n})(kr),jr=(function(e){function n(t){var n=e.call(this,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return t(n,e),n})(kr),Fr=(function(e){function n(t){var n=e.call(this,t)||this,r=new XMLSerializer;return n.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,Tt.getInstance().addImage(n.svg),n}return t(n,e),n})(kr),Ir=(function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n})(kr),qr=(function(e){function n(t){var n=e.call(this,t)||this;return n.start=t.start,n.reversed="boolean"==typeof t.reversed&&!0===t.reversed,n}return t(n,e),n})(kr),Rr=[{type:h.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Ur=[{type:h.PERCENTAGE_TOKEN,flags:0,number:50}],zr=(function(e){function n(t){var n,r,i,o=e.call(this,t)||this;switch(o.type=t.type.toLowerCase(),o.checked=t.checked,o.value=0===(r="password"===(n=t).type?new Array(n.value.length+1).join("•"):n.value).length?n.placeholder||"":r,"checkbox"!==o.type&&"radio"!==o.type||(o.styles.backgroundColor=3739148031,o.styles.borderTopColor=o.styles.borderRightColor=o.styles.borderBottomColor=o.styles.borderLeftColor=2779096575,o.styles.borderTopWidth=o.styles.borderRightWidth=o.styles.borderBottomWidth=o.styles.borderLeftWidth=1,o.styles.borderTopStyle=o.styles.borderRightStyle=o.styles.borderBottomStyle=o.styles.borderLeftStyle=Wt.SOLID,o.styles.backgroundClip=[st.BORDER_BOX],o.styles.backgroundOrigin=[0],o.bounds=(i=o.bounds).width>i.height?new s(i.left+(i.width-i.height)/2,i.top,i.height,i.height):i.width<i.height?new s(i.left,i.top+(i.height-i.width)/2,i.width,i.width):i),o.type){case"checkbox":o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=Rr;break;case"radio":o.styles.borderTopRightRadius=o.styles.borderTopLeftRadius=o.styles.borderBottomRightRadius=o.styles.borderBottomLeftRadius=Ur}return o}return t(n,e),n})(kr),Wr=(function(e){function n(t){var n=e.call(this,t)||this,r=t.options[t.selectedIndex||0];return n.value=r&&r.text||"",n}return t(n,e),n})(kr),Xr=(function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n})(kr),Vr=function(e){return Ge(Ae.create(e).parseComponentValue())},$r=(function(e){function n(t){var n=e.call(this,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Gr(t.contentWindow.document.documentElement);var r=t.contentWindow.document.documentElement?Vr(getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):at.TRANSPARENT,i=t.contentWindow.document.body?Vr(getComputedStyle(t.contentWindow.document.body).backgroundColor):at.TRANSPARENT;n.backgroundColor=Ye(r)?Ye(i)?n.styles.backgroundColor:i:r}}catch(e){}return n}return t(n,e),n})(kr),Jr=["OL","UL","MENU"],Kr=function(e,t,n){for(var r=e.firstChild,i=void 0;r;r=i)if(i=r.nextSibling,ei(r)&&r.data.trim().length>0)t.textNodes.push(new _r(r,t.styles));else if(ti(r)){var s=Qr(r);s.styles.isVisible()&&(Yr(r,s,n)?s.flags|=4:Zr(s.styles)&&(s.flags|=2),-1!==Jr.indexOf(r.tagName)&&(s.flags|=8),t.elements.push(s),pi(r)||oi(r)||di(r)||Kr(r,s,n))}},Qr=function(e){return fi(e)?new Br(e):ai(e)?new jr(e):oi(e)?new Fr(e):ri(e)?new Ir(e):ii(e)?new qr(e):si(e)?new zr(e):di(e)?new Wr(e):pi(e)?new Xr(e):li(e)?new $r(e):new kr(e)},Gr=function(e){var t=Qr(e);return t.flags|=4,Kr(e,t,t),t},Yr=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||ui(e)&&n.styles.isTransparent()},Zr=function(e){return e.isPositioned()||e.isFloating()},ei=function(e){return e.nodeType===Node.TEXT_NODE},ti=function(e){return e.nodeType===Node.ELEMENT_NODE},ni=function(e){return void 0!==e.style},ri=function(e){return"LI"===e.tagName},ii=function(e){return"OL"===e.tagName},si=function(e){return"INPUT"===e.tagName},oi=function(e){return"svg"===e.tagName},ui=function(e){return"BODY"===e.tagName},ai=function(e){return"CANVAS"===e.tagName},fi=function(e){return"IMG"===e.tagName},li=function(e){return"IFRAME"===e.tagName},ci=function(e){return"STYLE"===e.tagName},hi=function(e){return"SCRIPT"===e.tagName},pi=function(e){return"TEXTAREA"===e.tagName},di=function(e){return"SELECT"===e.tagName},vi=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,i=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(i=!1,n[Math.max(0,n.length-1)]+=e.increment)});var s=[];return i&&r.forEach(function(e){var n=t.counters[e.counter];s.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),s},e})(),mi={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},gi={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},yi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},bi={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},wi=function(e,t,n,r,i,s){return e<t||e>n?Ni(e,i,s.length>0):r.integers.reduce(function(t,n,i){for(;e>=n;)e-=n,t+=r.values[i];return t},"")+s},Ei=function(e,t,n,r){var i="";do{n||e--,i=r(e)+i,e/=t}while(e*t>=t);return i},Si=function(e,t,n,r,i){var s=n-t+1;return(e<0?"-":"")+(Ei(Math.abs(e),s,r,function(e){return a(Math.floor(e%s)+t)})+i)},xi=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return Ei(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},Ti=function(e,t,n,r,i,s){if(e<-9999||e>9999)return Ni(e,Nn.CJK_DECIMAL,i.length>0);var o=Math.abs(e),u=i;if(0===o)return t[0]+u;for(var a=0;o>0&&a<=4;a++){var f=o%10;0===f&&mr(s,1)&&""!==u?u=t[f]+u:f>1||1===f&&0===a||1===f&&1===a&&mr(s,2)||1===f&&1===a&&mr(s,4)&&e>100||1===f&&a>1&&mr(s,8)?u=t[f]+(a>0?n[a-1]:"")+u:1===f&&a>0&&(u=n[a-1]+u),o=Math.floor(o/10)}return(e<0?r:"")+u},Ni=function(e,t,n){var r=n?". ":"",i=n?"、":"",s=n?", ":"",o=n?" ":"";switch(t){case Nn.DISC:return"•"+o;case Nn.CIRCLE:return"◦"+o;case Nn.SQUARE:return"◾"+o;case Nn.DECIMAL_LEADING_ZERO:var u=Si(e,48,57,!0,r);return u.length<4?"0"+u:u;case Nn.CJK_DECIMAL:return xi(e,"〇一二三四五六七八九",i);case Nn.LOWER_ROMAN:return wi(e,1,3999,mi,Nn.DECIMAL,r).toLowerCase();case Nn.UPPER_ROMAN:return wi(e,1,3999,mi,Nn.DECIMAL,r);case Nn.LOWER_GREEK:return Si(e,945,969,!1,r);case Nn.LOWER_ALPHA:return Si(e,97,122,!1,r);case Nn.UPPER_ALPHA:return Si(e,65,90,!1,r);case Nn.ARABIC_INDIC:return Si(e,1632,1641,!0,r);case Nn.ARMENIAN:case Nn.UPPER_ARMENIAN:return wi(e,1,9999,gi,Nn.DECIMAL,r);case Nn.LOWER_ARMENIAN:return wi(e,1,9999,gi,Nn.DECIMAL,r).toLowerCase();case Nn.BENGALI:return Si(e,2534,2543,!0,r);case Nn.CAMBODIAN:case Nn.KHMER:return Si(e,6112,6121,!0,r);case Nn.CJK_EARTHLY_BRANCH:return xi(e,"子丑寅卯辰巳午未申酉戌亥",i);case Nn.CJK_HEAVENLY_STEM:return xi(e,"甲乙丙丁戊己庚辛壬癸",i);case Nn.CJK_IDEOGRAPHIC:case Nn.TRAD_CHINESE_INFORMAL:return Ti(e,"零一二三四五六七八九","十百千萬","負",i,14);case Nn.TRAD_CHINESE_FORMAL:return Ti(e,"零壹貳參肆伍陸柒捌玖","拾佰仟萬","負",i,15);case Nn.SIMP_CHINESE_INFORMAL:return Ti(e,"零一二三四五六七八九","十百千萬","负",i,14);case Nn.SIMP_CHINESE_FORMAL:return Ti(e,"零壹贰叁肆伍陆柒捌玖","拾佰仟萬","负",i,15);case Nn.JAPANESE_INFORMAL:return Ti(e,"〇一二三四五六七八九","十百千万","マイナス",i,0);case Nn.JAPANESE_FORMAL:return Ti(e,"零壱弐参四伍六七八九","拾百千万","マイナス",i,7);case Nn.KOREAN_HANGUL_FORMAL:return Ti(e,"영일이삼사오육칠팔구","십백천만","마이너스",s,7);case Nn.KOREAN_HANJA_INFORMAL:return Ti(e,"零一二三四五六七八九","十百千萬","마이너스",s,0);case Nn.KOREAN_HANJA_FORMAL:return Ti(e,"零壹貳參四五六七八九","拾百千","마이너스",s,7);case Nn.DEVANAGARI:return Si(e,2406,2415,!0,r);case Nn.GEORGIAN:return wi(e,1,19999,bi,Nn.DECIMAL,r);case Nn.GUJARATI:return Si(e,2790,2799,!0,r);case Nn.GURMUKHI:return Si(e,2662,2671,!0,r);case Nn.HEBREW:return wi(e,1,10999,yi,Nn.DECIMAL,r);case Nn.HIRAGANA:return xi(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Nn.HIRAGANA_IROHA:return xi(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Nn.KANNADA:return Si(e,3302,3311,!0,r);case Nn.KATAKANA:return xi(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case Nn.KATAKANA_IROHA:return xi(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case Nn.LAO:return Si(e,3792,3801,!0,r);case Nn.MONGOLIAN:return Si(e,6160,6169,!0,r);case Nn.MYANMAR:return Si(e,4160,4169,!0,r);case Nn.ORIYA:return Si(e,2918,2927,!0,r);case Nn.PERSIAN:return Si(e,1776,1785,!0,r);case Nn.TAMIL:return Si(e,3046,3055,!0,r);case Nn.TELUGU:return Si(e,3174,3183,!0,r);case Nn.THAI:return Si(e,3664,3673,!0,r);case Nn.TIBETAN:return Si(e,3872,3881,!0,r);case Nn.DECIMAL:default:return Si(e,48,57,!0,r)}},Ci=(function(){function e(e,t){if(this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new vi,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var n=this,s=Li(e,t);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var o=e.defaultView.pageXOffset,u=e.defaultView.pageYOffset,a=s.contentWindow,f=a.document,l=Ai(s).then(function(){return r(n,void 0,void 0,function(){var e;return i(this,function(n){switch(n.label){case 0:return this.scrolledElements.forEach(Di),a&&(a.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||a.scrollY===t.top&&a.scrollX===t.left||(f.documentElement.style.top=-t.top+"px",f.documentElement.style.left=-t.left+"px",f.documentElement.style.position="absolute")),e=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:f.fonts&&f.fonts.ready?[4,f.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(f)}).then(function(){return s})]:[2,s]}})})});return f.open(),f.write(Mi(document.doctype)+"<html></html>"),_i(this.referenceElement.ownerDocument,o,u),f.replaceChild(f.adoptNode(this.documentElement),f.documentElement),f.close(),l},e.prototype.createElementClone=function(e){return ai(e)?this.createCanvasClone(e):ci(e)?this.createStyleClone(e):e.cloneNode(!1)},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(xt.getInstance(this.options.id).error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)},e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(e){xt.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var r=e.getContext("2d"),i=n.getContext("2d");return i&&(r?i.putImageData(r.getImageData(0,0,e.width,e.height),0,0):i.drawImage(e,0,0)),n}catch(e){}return n},e.prototype.cloneNode=function(e){if(ei(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(ni(e)&&t){var n=this.createElementClone(e),r=t.getComputedStyle(e),i=t.getComputedStyle(e,":before"),s=t.getComputedStyle(e,":after");this.referenceElement===e&&(this.clonedReferenceElement=n),ui(n)&&Bi(n);for(var o=this.counters.parse(new Nr(r)),u=this.resolvePseudoContent(e,n,i,dr.BEFORE),a=e.firstChild;a;a=a.nextSibling)ti(a)&&(hi(a)||a.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(a))||this.options.copyStyles&&ti(a)&&ci(a)||n.appendChild(this.cloneNode(a));u&&n.insertBefore(u,n.firstChild);var f=this.resolvePseudoContent(e,n,s,dr.AFTER);return f&&n.appendChild(f),this.counters.pop(o),r&&this.options.copyStyles&&!li(e)&&Oi(r,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(pi(e)||di(e))&&(pi(n)||di(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var i=this;if(n){var s=n.content,o=t.ownerDocument;if(o&&s&&"none"!==s&&"-moz-alt-content"!==s&&"none"!==n.display){this.counters.parse(new Nr(n));var u=new Tr(n),a=o.createElement("html2canvaspseudoelement");return Oi(n,a),u.content.forEach(function(t){if(t.type===h.STRING_TOKEN)a.appendChild(o.createTextNode(t.value));else if(t.type===h.URL_TOKEN){var n=o.createElement("img");n.src=t.value,n.style.opacity="1",a.appendChild(n)}else if(t.type===h.FUNCTION){if("attr"===t.name){var r=t.values.filter(_e);r.length&&a.appendChild(o.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var s=t.values.filter(Be),f=s[0],l=s[1];if(f&&_e(f)){var c=i.counters.getCounterValue(f.value),p=l&&_e(l)?Ln.parse(l.value):Nn.DECIMAL;a.appendChild(o.createTextNode(Ni(c,p,!1)))}}else if("counters"===t.name){var d=t.values.filter(Be),v=(f=d[0],d[1]);if(l=d[2],f&&_e(f)){var m=i.counters.getCounterValues(f.value),g=l&&_e(l)?Ln.parse(l.value):Nn.DECIMAL,y=v&&v.type===h.STRING_TOKEN?v.value:"",b=m.map(function(e){return Ni(e,g,!1)}).join(y);a.appendChild(o.createTextNode(b))}}}else if(t.type===h.IDENT_TOKEN)switch(t.value){case"open-quote":a.appendChild(o.createTextNode(Er(u.quotes,i.quoteDepth++,!0)));break;case"close-quote":a.appendChild(o.createTextNode(Er(u.quotes,--i.quoteDepth,!1)));break;default:a.appendChild(o.createTextNode(t.value))}}),a.className=Pi+" "+Hi,t.className+=r===dr.BEFORE?" "+Pi:" "+Hi,a}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e})();!(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(dr||(dr={}));var ki,Li=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(n),n},Ai=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=e.onload=i.onreadystatechange=function(){r.onload=e.onload=i.onreadystatechange=null;var n=setInterval(function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),t(e))},50)}})},Oi=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);"content"!==r&&t.style.setProperty(r,e.getPropertyValue(r))}return t},Mi=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},_i=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Di=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},Pi="___html2canvas___pseudoelement_before",Hi="___html2canvas___pseudoelement_after",Bi=function(e){ji(e,"."+Pi+':before{\n    content: "" !important;\n    display: none !important;\n}\n         .'+Hi+':after{\n    content: "" !important;\n    display: none !important;\n}')},ji=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}};!(function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"})(ki||(ki={}));var Fi,Ii=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},qi=(function(){function e(e,t){this.type=ki.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e})(),Ri=function(e,t,n){return new qi(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Ui=(function(){function e(e,t,n,r){this.type=ki.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=Ri(this.start,this.startControl,t),i=Ri(this.startControl,this.endControl,t),s=Ri(this.endControl,this.end,t),o=Ri(r,i,t),u=Ri(i,s,t),a=Ri(o,u,t);return n?new e(this.start,r,o,a):new e(a,u,s,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),zi=function(e){return e.type===ki.BEZIER_CURVE},Wi=function(e){var t=e.styles,n=e.bounds,r=Xe(t.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],o=Xe(t.borderTopRightRadius,n.width,n.height),u=o[0],a=o[1],f=Xe(t.borderBottomRightRadius,n.width,n.height),l=f[0],c=f[1],h=Xe(t.borderBottomLeftRadius,n.width,n.height),p=h[0],d=h[1],v=[];v.push((i+u)/n.width),v.push((p+l)/n.width),v.push((s+d)/n.height),v.push((a+c)/n.height);var m=Math.max.apply(Math,v);m>1&&(i/=m,s/=m,u/=m,a/=m,l/=m,c/=m,p/=m,d/=m);var g=n.width-u,y=n.height-c,b=n.width-l,w=n.height-d,E=t.borderTopWidth,S=t.borderRightWidth,x=t.borderBottomWidth,T=t.borderLeftWidth,N=Ve(t.paddingTop,e.bounds.width),C=Ve(t.paddingRight,e.bounds.width),k=Ve(t.paddingBottom,e.bounds.width),L=Ve(t.paddingLeft,e.bounds.width);this.topLeftBorderBox=i>0||s>0?Xi(n.left,n.top,i,s,Fi.TOP_LEFT):new qi(n.left,n.top),this.topRightBorderBox=u>0||a>0?Xi(n.left+g,n.top,u,a,Fi.TOP_RIGHT):new qi(n.left+n.width,n.top),this.bottomRightBorderBox=l>0||c>0?Xi(n.left+b,n.top+y,l,c,Fi.BOTTOM_RIGHT):new qi(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=p>0||d>0?Xi(n.left,n.top+w,p,d,Fi.BOTTOM_LEFT):new qi(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?Xi(n.left+T,n.top+E,Math.max(0,i-T),Math.max(0,s-E),Fi.TOP_LEFT):new qi(n.left+T,n.top+E),this.topRightPaddingBox=u>0||a>0?Xi(n.left+Math.min(g,n.width+T),n.top+E,g>n.width+T?0:u-T,a-E,Fi.TOP_RIGHT):new qi(n.left+n.width-S,n.top+E),this.bottomRightPaddingBox=l>0||c>0?Xi(n.left+Math.min(b,n.width-T),n.top+Math.min(y,n.height+E),Math.max(0,l-S),c-x,Fi.BOTTOM_RIGHT):new qi(n.left+n.width-S,n.top+n.height-x),this.bottomLeftPaddingBox=p>0||d>0?Xi(n.left+T,n.top+w,Math.max(0,p-T),d-x,Fi.BOTTOM_LEFT):new qi(n.left+T,n.top+n.height-x),this.topLeftContentBox=i>0||s>0?Xi(n.left+T+L,n.top+E+N,Math.max(0,i-(T+L)),Math.max(0,s-(E+N)),Fi.TOP_LEFT):new qi(n.left+T+L,n.top+E+N),this.topRightContentBox=u>0||a>0?Xi(n.left+Math.min(g,n.width+T+L),n.top+E+N,g>n.width+T+L?0:u-T+L,a-(E+N),Fi.TOP_RIGHT):new qi(n.left+n.width-(S+C),n.top+E+N),this.bottomRightContentBox=l>0||c>0?Xi(n.left+Math.min(b,n.width-(T+L)),n.top+Math.min(y,n.height+E+N),Math.max(0,l-(S+C)),c-(x+k),Fi.BOTTOM_RIGHT):new qi(n.left+n.width-(S+C),n.top+n.height-(x+k)),this.bottomLeftContentBox=p>0||d>0?Xi(n.left+T+L,n.top+w,Math.max(0,p-(T+L)),d-(x+k),Fi.BOTTOM_LEFT):new qi(n.left+T+L,n.top+n.height-(x+k))};!(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Fi||(Fi={}));var Xi=function(e,t,n,r,i){var s=(Math.sqrt(2)-1)/3*4,o=n*s,u=r*s,a=e+n,f=t+r;switch(i){case Fi.TOP_LEFT:return new Ui(new qi(e,f),new qi(e,f-u),new qi(a-o,t),new qi(a,t));case Fi.TOP_RIGHT:return new Ui(new qi(e,t),new qi(e+o,t),new qi(a,f-u),new qi(a,f));case Fi.BOTTOM_RIGHT:return new Ui(new qi(a,t),new qi(a,t+u),new qi(e+o,f),new qi(e,f));case Fi.BOTTOM_LEFT:default:return new Ui(new qi(a,f),new qi(a-o,f),new qi(e,t+u),new qi(e,t))}},Vi=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},$i=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Ji=function(e,t,n){this.type=0,this.offsetX=e,this.offsetY=t,this.matrix=n,this.target=6},Ki=function(e,t){this.type=1,this.target=t,this.path=e},Qi=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Gi=(function(){function e(e,t){if(this.container=e,this.effects=t.slice(0),this.curves=new Wi(e),null!==e.styles.transform){var n=e.bounds.left+e.styles.transformOrigin[0].number,r=e.bounds.top+e.styles.transformOrigin[1].number,i=e.styles.transform;this.effects.push(new Ji(n,r,i))}if(e.styles.overflowX!==kn.VISIBLE){var s=Vi(this.curves),o=$i(this.curves);Ii(s,o)?this.effects.push(new Ki(s,6)):(this.effects.push(new Ki(s,2)),this.effects.push(new Ki(o,4)))}}return e.prototype.getParentEffects=function(){var e=this.effects.slice(0);if(this.container.styles.overflowX!==kn.VISIBLE){var t=Vi(this.curves),n=$i(this.curves);Ii(t,n)||e.push(new Ki(n,6))}return e},e})(),Yi=function(e,t,n,r){e.container.elements.forEach(function(i){var s=mr(i.flags,4),o=mr(i.flags,2),u=new Gi(i,e.getParentEffects());mr(i.styles.display,2048)&&r.push(u);var a=mr(i.flags,8)?[]:r;if(s||o){var f=s||i.styles.isPositioned()?n:t,l=new Qi(u);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var c=i.styles.zIndex.order;if(c<0){var h=0;f.negativeZIndex.some(function(e,t){return c>e.element.container.styles.zIndex.order?(h=t,!1):h>0}),f.negativeZIndex.splice(h,0,l)}else if(c>0){var p=0;f.positiveZIndex.some(function(e,t){return c>e.element.container.styles.zIndex.order?(p=t+1,!1):p>0}),f.positiveZIndex.splice(p,0,l)}else f.zeroOrAutoZIndexOrTransformedOrOpacity.push(l)}else i.styles.isFloating()?f.nonPositionedFloats.push(l):f.nonPositionedInlineLevel.push(l);Yi(u,l,s?l:n,a)}else i.styles.isInlineLevel()?t.inlineLevel.push(u):t.nonInlineLevel.push(u),Yi(u,t,n,a);mr(i.flags,8)&&Zi(i,a)})},Zi=function(e,t){for(var n=e instanceof qr?e.start:1,r=e instanceof qr&&e.reversed,i=0;i<t.length;i++){var s=t[i];s.container instanceof Ir&&"number"==typeof s.container.value&&0!==s.container.value&&(n=s.container.value),s.listValue=Ni(n,s.container.styles.listStyleType,!0),n+=r?-1:1}},es=function(e,t,n,r){var i=[];return zi(e)?i.push(e.subdivide(.5,!1)):i.push(e),zi(n)?i.push(n.subdivide(.5,!0)):i.push(n),zi(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),zi(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},ts=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},ns=function(e){var t=e.styles,n=e.bounds,r=Ve(t.paddingLeft,n.width),i=Ve(t.paddingRight,n.width),s=Ve(t.paddingTop,n.width),o=Ve(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,s+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+i),-(t.borderTopWidth+t.borderBottomWidth+s+o))},rs=function(e,t,n){var r=(function(e,t){return 0===e?t.bounds:2===e?ns(t):ts(t)})(us(e.styles.backgroundOrigin,t),e),i=(function(e,t){return e===st.BORDER_BOX?t.bounds:e===st.CONTENT_BOX?ns(t):ts(t)})(us(e.styles.backgroundClip,t),e),s=os(us(e.styles.backgroundSize,t),n,r),o=s[0],u=s[1],a=Xe(us(e.styles.backgroundPosition,t),r.width-o,r.height-u);return[as(us(e.styles.backgroundRepeat,t),a,s,r,i),Math.round(r.left+a[0]),Math.round(r.top+a[1]),o,u]},is=function(e){return _e(e)&&e.value===Rt.AUTO},ss=function(e){return"number"==typeof e},os=function(e,t,n){var r=t[0],i=t[1],s=t[2],o=e[0],u=e[1];if(qe(o)&&u&&qe(u))return[Ve(o,n.width),Ve(u,n.height)];var a=ss(s);if(_e(o)&&(o.value===Rt.CONTAIN||o.value===Rt.COVER))return ss(s)?n.width/n.height<s!=(o.value===Rt.COVER)?[n.width,n.width/s]:[n.height*s,n.height]:[n.width,n.height];var f=ss(r),l=ss(i),c=f||l;if(is(o)&&(!u||is(u)))return f&&l?[r,i]:a||c?c&&a?[f?r:i*s,l?i:r/s]:[f?r:n.width,l?i:n.height]:[n.width,n.height];if(a){var h=0,p=0;return qe(o)?h=Ve(o,n.width):qe(u)&&(p=Ve(u,n.height)),is(o)?h=p*s:u&&!is(u)||(p=h/s),[h,p]}var d=null,v=null;if(qe(o)?d=Ve(o,n.width):u&&qe(u)&&(v=Ve(u,n.height)),null===d||u&&!is(u)||(v=f&&l?d/r*i:n.height),null!==v&&is(o)&&(d=f&&l?v/i*r:n.width),null!==d&&null!==v)return[d,v];throw new Error("Unable to calculate background-size for element")},us=function(e,t){var n=e[t];return void 0===n?e[0]:n},as=function(e,t,n,r,i){var s=t[0],o=t[1],u=n[0],a=n[1];switch(e){case Ht.REPEAT_X:return[new qi(Math.round(r.left),Math.round(r.top+o)),new qi(Math.round(r.left+r.width),Math.round(r.top+o)),new qi(Math.round(r.left+r.width),Math.round(a+r.top+o)),new qi(Math.round(r.left),Math.round(a+r.top+o))];case Ht.REPEAT_Y:return[new qi(Math.round(r.left+s),Math.round(r.top)),new qi(Math.round(r.left+s+u),Math.round(r.top)),new qi(Math.round(r.left+s+u),Math.round(r.height+r.top)),new qi(Math.round(r.left+s),Math.round(r.height+r.top))];case Ht.NO_REPEAT:return[new qi(Math.round(r.left+s),Math.round(r.top+o)),new qi(Math.round(r.left+s+u),Math.round(r.top+o)),new qi(Math.round(r.left+s+u),Math.round(r.top+o+a)),new qi(Math.round(r.left+s),Math.round(r.top+o+a))];default:return[new qi(Math.round(i.left),Math.round(i.top)),new qi(Math.round(i.left+i.width),Math.round(i.top)),new qi(Math.round(i.left+i.width),Math.round(i.height+i.top)),new qi(Math.round(i.left),Math.round(i.height+i.top))]}},fs=(function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",s.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=e,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(i),n.appendChild(r);var o=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",r.style.verticalAlign="super";var u=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:o,middle:u}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e})(),ls=(function(){function e(e){this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px"),this.fontMetrics=new fs(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],xt.getInstance(e.id).debug("Canvas renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.applyEffects=function(e,t){for(var n=this;this._activeEffects.length;)this.popEffect();e.filter(function(e){return mr(e.target,t)}).forEach(function(e){return n.applyEffect(e)})},e.prototype.applyEffect=function(e){this.ctx.save(),(function(e){return 0===e.type})(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),(function(e){return 1===e.type})(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return(t=e.element.container.styles).isVisible()?(this.ctx.globalAlpha=t.opacity,[4,this.renderStackContent(e)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(e,t){var n=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height):u(e.text).map(function(e){return a(e)}).reduce(function(t,r){return n.ctx.fillText(r,t,e.bounds.top+e.bounds.height),t+n.ctx.measureText(r).width},e.bounds.left)},e.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=e.fontFamily.join(", "),r=Oe(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},e.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,s,o,u=this;return i(this,function(i){return n=this.createFontStyle(t),r=n[0],s=n[1],o=n[2],this.ctx.font=r,e.textBounds.forEach(function(e){u.ctx.fillStyle=Ze(t.color),u.renderTextWithLetterSpacing(e,t.letterSpacing);var n=t.textShadow;n.length&&e.text.trim().length&&(n.slice(0).reverse().forEach(function(t){u.ctx.shadowColor=Ze(t.color),u.ctx.shadowOffsetX=t.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=t.offsetY.number*u.options.scale,u.ctx.shadowBlur=t.blur.number,u.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),t.textDecorationLine.length&&(u.ctx.fillStyle=Ze(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:var n=u.fontMetrics.getMetrics(s,o).baseline;u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+n),e.bounds.width,1);break;case 2:u.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:var r=u.fontMetrics.getMetrics(s,o).middle;u.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+r),e.bounds.width,1)}}))}),[2]})})},e.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=ns(e),i=$i(t);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,function(){var n,r,o,u,a,f,l,c,p,d,v,m,g,y;return i(this,function(i){switch(i.label){case 0:this.applyEffects(t.effects,4),n=t.container,r=t.curves,o=n.styles,u=0,a=n.textNodes,i.label=1;case 1:return u<a.length?(f=a[u],[4,this.renderTextNode(f,o)]):[3,4];case 2:i.sent(),i.label=3;case 3:return u++,[3,1];case 4:if(!(n instanceof Br))return[3,8];i.label=5;case 5:return i.trys.push([5,7,,8]),[4,this.options.cache.match(n.src)];case 6:return m=i.sent(),this.renderReplacedElement(n,r,m),[3,8];case 7:return i.sent(),xt.getInstance(this.options.id).error("Error loading image "+n.src),[3,8];case 8:if(n instanceof jr&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Fr))return[3,12];i.label=9;case 9:return i.trys.push([9,11,,12]),[4,this.options.cache.match(n.svg)];case 10:return m=i.sent(),this.renderReplacedElement(n,r,m),[3,12];case 11:return i.sent(),xt.getInstance(this.options.id).error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof $r&&n.tree?[4,new e({id:this.options.id,scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:n.width,height:n.height,cache:this.options.cache,windowWidth:n.width,windowHeight:n.height}).render(n.tree)]:[3,14];case 13:l=i.sent(),n.width&&n.height&&this.ctx.drawImage(l,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),i.label=14;case 14:if(n instanceof zr&&(c=Math.min(n.bounds.width,n.bounds.height),"checkbox"===n.type?n.checked&&(this.ctx.save(),this.path([new qi(n.bounds.left+.39363*c,n.bounds.top+.79*c),new qi(n.bounds.left+.16*c,n.bounds.top+.5549*c),new qi(n.bounds.left+.27347*c,n.bounds.top+.44071*c),new qi(n.bounds.left+.39694*c,n.bounds.top+.5649*c),new qi(n.bounds.left+.72983*c,n.bounds.top+.23*c),new qi(n.bounds.left+.84*c,n.bounds.top+.34085*c),new qi(n.bounds.left+.39363*c,n.bounds.top+.79*c)]),this.ctx.fillStyle=Ze(707406591),this.ctx.fill(),this.ctx.restore()):"radio"===n.type&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+c/2,n.bounds.top+c/2,c/4,0,2*Math.PI,!0),this.ctx.fillStyle=Ze(707406591),this.ctx.fill(),this.ctx.restore())),cs(n)&&n.value.length){switch(this.ctx.font=this.createFontStyle(o)[0],this.ctx.fillStyle=Ze(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign=ps(n.styles.textAlign),y=ns(n),p=0,n.styles.textAlign){case Bn.CENTER:p+=y.width/2;break;case Bn.RIGHT:p+=y.width}d=y.add(p,0,0,-y.height/2+1),this.ctx.save(),this.path([new qi(y.left,y.top),new qi(y.left+y.width,y.top),new qi(y.left+y.width,y.top+y.height),new qi(y.left,y.top+y.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Lr(n.value,d),o.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!mr(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if((v=n.styles.listStyleImage).type!==ft.URL)return[3,18];m=void 0,g=v.url,i.label=15;case 15:return i.trys.push([15,17,,18]),[4,this.options.cache.match(g)];case 16:return m=i.sent(),this.ctx.drawImage(m,n.bounds.left-(m.width+10),n.bounds.top),[3,18];case 17:return i.sent(),xt.getInstance(this.options.id).error("Error loading list-style-image "+g),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==Nn.NONE&&(this.ctx.font=this.createFontStyle(o)[0],this.ctx.fillStyle=Ze(o.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",y=new s(n.bounds.left,n.bounds.top+Ve(n.styles.paddingTop,n.bounds.width),n.bounds.width,(function(e,t){return _e(e)&&"normal"===e.value?1.2*t:e.type===h.NUMBER_TOKEN?t*e.number:qe(e)?Ve(e,t):t})(o.lineHeight,o.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Lr(t.listValue,y),o.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),i.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,s,o,u,a,f,l,c,h,p,d,v,m;return i(this,function(i){switch(i.label){case 0:return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:i.sent(),t=0,n=e.negativeZIndex,i.label=2;case 2:return t<n.length?(m=n[t],[4,this.renderStack(m)]):[3,5];case 3:i.sent(),i.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:i.sent(),r=0,s=e.nonInlineLevel,i.label=7;case 7:return r<s.length?(m=s[r],[4,this.renderNode(m)]):[3,10];case 8:i.sent(),i.label=9;case 9:return r++,[3,7];case 10:o=0,u=e.nonPositionedFloats,i.label=11;case 11:return o<u.length?(m=u[o],[4,this.renderStack(m)]):[3,14];case 12:i.sent(),i.label=13;case 13:return o++,[3,11];case 14:a=0,f=e.nonPositionedInlineLevel,i.label=15;case 15:return a<f.length?(m=f[a],[4,this.renderStack(m)]):[3,18];case 16:i.sent(),i.label=17;case 17:return a++,[3,15];case 18:l=0,c=e.inlineLevel,i.label=19;case 19:return l<c.length?(m=c[l],[4,this.renderNode(m)]):[3,22];case 20:i.sent(),i.label=21;case 21:return l++,[3,19];case 22:h=0,p=e.zeroOrAutoZIndexOrTransformedOrOpacity,i.label=23;case 23:return h<p.length?(m=p[h],[4,this.renderStack(m)]):[3,26];case 24:i.sent(),i.label=25;case 25:return h++,[3,23];case 26:d=0,v=e.positiveZIndex,i.label=27;case 27:return d<v.length?(m=v[d],[4,this.renderStack(m)]):[3,30];case 28:i.sent(),i.label=29;case 29:return d++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(e){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(e.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},e.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=zi(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),zi(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},e.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},e.prototype.resizeImage=function(e,t,n){if(e.width===t&&e.height===n)return e;var r=this.canvas.ownerDocument.createElement("canvas");return r.width=t,r.height=n,r.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),r},e.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,s,o,u;return i(this,function(a){switch(a.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H;return i(this,function(i){switch(i.label){case 0:if(n.type!==ft.URL)return[3,5];s=void 0,o=n.url,i.label=1;case 1:return i.trys.push([1,3,,4]),[4,r.options.cache.match(o)];case 2:return s=i.sent(),[3,4];case 3:return i.sent(),xt.getInstance(r.options.id).error("Error loading background-image "+o),[3,4];case 4:return s&&(u=rs(e,t,[s.width,s.height,s.width/s.height]),w=u[0],C=u[1],k=u[2],x=u[3],T=u[4],y=r.ctx.createPattern(r.resizeImage(s,x,T),"repeat"),r.renderRepeat(w,y,C,k)),[3,6];case 5:n.type===ft.LINEAR_GRADIENT?(a=rs(e,t,[null,null,null]),w=a[0],C=a[1],k=a[2],x=a[3],T=a[4],f=(function(e,t,n){var r="number"==typeof e?e:(function(e,t,n){var r=t/2,i=n/2,s=Ve(e[0],t)-r,o=i-Ve(e[1],n);return(Math.atan2(o,s)+2*Math.PI)%(2*Math.PI)})(e,t,n),i=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),s=t/2,o=n/2,u=i/2,a=Math.sin(r-Math.PI/2)*u,f=Math.cos(r-Math.PI/2)*u;return[i,s-f,s+f,o-a,o+a]})(n.angle,x,T),l=f[0],c=f[1],h=f[2],p=f[3],d=f[4],(v=document.createElement("canvas")).width=x,v.height=T,m=v.getContext("2d"),g=m.createLinearGradient(c,p,h,d),vt(n.stops,l).forEach(function(e){return g.addColorStop(e.stop,Ze(e.color))}),m.fillStyle=g,m.fillRect(0,0,x,T),x>0&&T>0&&(y=r.ctx.createPattern(v,"repeat"),r.renderRepeat(w,y,C,k))):(function(e){return e.type===ft.RADIAL_GRADIENT})(n)&&(b=rs(e,t,[null,null,null]),w=b[0],E=b[1],S=b[2],x=b[3],T=b[4],N=0===n.position.length?[ze]:n.position,C=Ve(N[0],x),k=Ve(N[N.length-1],T),L=(function(e,t,n,r,i){var s=0,o=0;switch(e.size){case ct.CLOSEST_SIDE:e.shape===lt.CIRCLE?s=o=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===lt.ELLIPSE&&(s=Math.min(Math.abs(t),Math.abs(t-r)),o=Math.min(Math.abs(n),Math.abs(n-i)));break;case ct.CLOSEST_CORNER:if(e.shape===lt.CIRCLE)s=o=Math.min(mt(t,n),mt(t,n-i),mt(t-r,n),mt(t-r,n-i));else if(e.shape===lt.ELLIPSE){var u=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(t),Math.abs(t-r)),a=gt(r,i,t,n,!0),f=a[0],l=a[1];o=u*(s=mt(f-t,(l-n)/u))}break;case ct.FARTHEST_SIDE:e.shape===lt.CIRCLE?s=o=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-i)):e.shape===lt.ELLIPSE&&(s=Math.max(Math.abs(t),Math.abs(t-r)),o=Math.max(Math.abs(n),Math.abs(n-i)));break;case ct.FARTHEST_CORNER:if(e.shape===lt.CIRCLE)s=o=Math.max(mt(t,n),mt(t,n-i),mt(t-r,n),mt(t-r,n-i));else if(e.shape===lt.ELLIPSE){u=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(t),Math.abs(t-r));var c=gt(r,i,t,n,!1);f=c[0],l=c[1],o=u*(s=mt(f-t,(l-n)/u))}}return Array.isArray(e.size)&&(s=Ve(e.size[0],r),o=2===e.size.length?Ve(e.size[1],i):s),[s,o]})(n,C,k,x,T),A=L[0],O=L[1],A>0&&A>0&&(M=r.ctx.createRadialGradient(E+C,S+k,0,E+C,S+k,A),vt(n.stops,2*A).forEach(function(e){return M.addColorStop(e.stop,Ze(e.color))}),r.path(w),r.ctx.fillStyle=M,A!==O?(_=e.bounds.left+.5*e.bounds.width,D=e.bounds.top+.5*e.bounds.height,H=1/(P=O/A),r.ctx.save(),r.ctx.translate(_,D),r.ctx.transform(1,0,0,P,0,0),r.ctx.translate(-_,-D),r.ctx.fillRect(E,H*(S-D)+D,x,T*H),r.ctx.restore()):r.ctx.fill())),i.label=6;case 6:return t--,[2]}})},r=this,s=0,o=e.styles.backgroundImage.slice(0).reverse(),a.label=1;case 1:return s<o.length?(u=o[s],[5,n(u)]):[3,4];case 2:a.sent(),a.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderBorder=function(e,t,n){return r(this,void 0,void 0,function(){return i(this,function(r){return this.path((function(e,t){switch(t){case 0:return es(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return es(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return es(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return es(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}})(n,t)),this.ctx.fillStyle=Ze(e),this.ctx.fill(),[2]})})},e.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,s,o,u,a,f,l=this;return i(this,function(i){switch(i.label){case 0:return this.applyEffects(e.effects,2),t=e.container.styles,n=!Ye(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor},{style:t.borderRightStyle,color:t.borderRightColor},{style:t.borderBottomStyle,color:t.borderBottomColor},{style:t.borderLeftStyle,color:t.borderLeftColor}],s=hs(us(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ye(t.backgroundColor)||(this.ctx.fillStyle=Ze(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:i.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){l.ctx.save();var n,r,i,s,o,u=Vi(e.curves),a=t.inset?0:1e4,f=(n=u,r=-a+(t.inset?1:-1)*t.spread.number,i=(t.inset?1:-1)*t.spread.number,s=t.spread.number*(t.inset?-2:2),o=t.spread.number*(t.inset?-2:2),n.map(function(e,t){switch(t){case 0:return e.add(r,i);case 1:return e.add(r+s,i);case 2:return e.add(r+s,i+o);case 3:return e.add(r,i+o)}return e}));t.inset?(l.path(u),l.ctx.clip(),l.mask(f)):(l.mask(u),l.ctx.clip(),l.path(f)),l.ctx.shadowOffsetX=t.offsetX.number+a,l.ctx.shadowOffsetY=t.offsetY.number,l.ctx.shadowColor=Ze(t.color),l.ctx.shadowBlur=t.blur.number,l.ctx.fillStyle=t.inset?Ze(t.color):"rgba(0,0,0,1)",l.ctx.fill(),l.ctx.restore()}),i.label=2;case 2:o=0,u=0,a=r,i.label=3;case 3:return u<a.length?(f=a[u]).style===Wt.NONE||Ye(f.color)?[3,5]:[4,this.renderBorder(f.color,o,e.curves)]:[3,7];case 4:i.sent(),i.label=5;case 5:o++,i.label=6;case 6:return u++,[3,3];case 7:return[2]}})})},e.prototype.render=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ze(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),r=new Gi(e,[]),i=new Qi(r),Yi(r,i,i,s=[]),Zi(r.container,s),t=i,[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([],2),[2,this.canvas]}var r,i,s})})},e})(),cs=function(e){return e instanceof Xr||e instanceof Wr||e instanceof zr&&"radio"!==e.type&&"checkbox"!==e.type},hs=function(e,t){switch(e){case st.BORDER_BOX:return Vi(t);case st.CONTENT_BOX:return(function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]})(t);case st.PADDING_BOX:default:return $i(t)}},ps=function(e){switch(e){case Bn.CENTER:return"center";case Bn.RIGHT:return"right";case Bn.LEFT:default:return"left"}},ds=(function(){function e(e){this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),xt.getInstance(e.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return t=wt(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,e),[4,vs(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ze(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(),vs=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},ms=function(e){return Ge(Ae.create(e).parseComponentValue())};Tt.setContext(window);return function(e,t){return void 0===t&&(t={}),(function(e,t){return r(void 0,void 0,void 0,function(){var r,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L;return i(this,function(i){switch(i.label){case 0:if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");if(!(u=r.defaultView))throw new Error("Document is not attached to a Window");return a=(Math.round(1e3*Math.random())+Date.now()).toString(16),f=ui(e)||"HTML"===e.tagName?(function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),i=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new s(0,0,r,i)})(r):o(e),l=f.width,c=f.height,h=f.left,p=f.top,d=n({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},t),v={backgroundColor:"#ffffff",cache:t.cache?t.cache:Tt.create(a,d),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:u.devicePixelRatio||1,windowWidth:u.innerWidth,windowHeight:u.innerHeight,scrollX:u.pageXOffset,scrollY:u.pageYOffset,x:h,y:p,width:Math.ceil(l),height:Math.ceil(c),id:a},m=n({},v,d,t),g=new s(m.scrollX,m.scrollY,m.windowWidth,m.windowHeight),xt.create({id:a,enabled:m.logging}),xt.getInstance(a).debug("Starting document clone"),y=new Ci(e,{id:a,onclone:m.onclone,ignoreElements:m.ignoreElements,inlineImages:m.foreignObjectRendering,copyStyles:m.foreignObjectRendering}),(b=y.clonedReferenceElement)?[4,y.toIFrame(r,g)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return w=i.sent(),E=r.documentElement?ms(getComputedStyle(r.documentElement).backgroundColor):at.TRANSPARENT,S=r.body?ms(getComputedStyle(r.body).backgroundColor):at.TRANSPARENT,x=t.backgroundColor,T="string"==typeof x?ms(x):null===x?at.TRANSPARENT:4294967295,N=e===r.documentElement?Ye(E)?Ye(S)?T:S:E:T,C={id:a,cache:m.cache,canvas:m.canvas,backgroundColor:N,scale:m.scale,x:m.x,y:m.y,scrollX:m.scrollX,scrollY:m.scrollY,width:m.width,height:m.height,windowWidth:m.windowWidth,windowHeight:m.windowHeight},m.foreignObjectRendering?(xt.getInstance(a).debug("Document cloned, using foreign object rendering"),[4,new ds(C).render(b)]):[3,3];case 2:return k=i.sent(),[3,5];case 3:return xt.getInstance(a).debug("Document cloned, using computed rendering"),Tt.attachInstance(m.cache),xt.getInstance(a).debug("Starting DOM parsing"),L=Gr(b),Tt.detachInstance(),N===L.styles.backgroundColor&&(L.styles.backgroundColor=at.TRANSPARENT),xt.getInstance(a).debug("Starting renderer"),[4,new ls(C).render(L)];case 4:k=i.sent(),i.label=5;case 5:return!0===m.removeContainer&&(Ci.destroy(w)||xt.getInstance(a).error("Cannot detach cloned iframe as it is not in the DOM anymore")),xt.getInstance(a).debug("Finished rendering"),xt.destroy(a),Tt.destroy(a),[2,k]}})})})(e,t)}})()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GATECRASH_ON_SURVEY_LOAD=t.GATECRASH_ON_SURVEY_CANCEL=t.EVENT_RESPONSE_DATA_ERROR=t.GATECRASH_ON_SURVEY_DATA_SUBMIT=t.GATECRASH_RENDER_ERROR=t.SURVEY_DIV_ID=t.RESPONSE_PAGE_IFRAME_ID=t.OVERLAY_DIV_ID=t.IFRAME_ID=t.ICON_DIV_ID=t.FORMSPRO_BASE_URL=t.DEFAULT_BASE_URL=t.DEFAULT_TEXT_CONTENT=t.DEFAULT_FRAME_CONTAINER_WIDTH=t.DEFAULT_FRAME_CONTAINER_HEIGHT=t.DEFAULT_FRAME_CONTAINER_ID=t.DEFAULT_EXPAND_HEIGHT=t.DEFAULT_COLLAPSE_HEIGHT=t.CDN_URL=t.CONTAINTER_SPAN_TEXT_ID=t.CONTAINER_BUTTON_ID=t.CLOSE_ICON_SOURCE=t.CLOSE_ICON_ID=t.CLOSE_BUTTON_ID=t.BUTTON_IFRAME_ID=t.BUTTON_CONTAINER_COLLAPSE=t.BUTTON_CONTAINER=t.ARROW_ICON_ID=void 0,t.ARROW_ICON_ID="MfpEmbed_Icon_Arrow",t.BUTTON_CONTAINER="MfpEmbed_Button_Container",t.BUTTON_CONTAINER_COLLAPSE="MfpEmbed_Button_Container_Collapse",t.BUTTON_IFRAME_ID="MfpEmbed_Button_Iframe",t.CLOSE_BUTTON_ID="closeButton",t.CLOSE_ICON_ID="MfpEmbed_CrossButton",t.CLOSE_ICON_SOURCE="cross.svg",t.CONTAINER_BUTTON_ID="MfpEmbed_Button",t.CONTAINTER_SPAN_TEXT_ID="MfpEmbed_Span",t.CDN_URL="https://mfpembedcdnwus2.azureedge.net/mfpembedcontwus2/",t.DEFAULT_COLLAPSE_HEIGHT="48px",t.DEFAULT_EXPAND_HEIGHT="480px",t.DEFAULT_FRAME_CONTAINER_ID="MfpEmbed_Popup",t.DEFAULT_FRAME_CONTAINER_HEIGHT="600px",t.DEFAULT_FRAME_CONTAINER_WIDTH="320px",t.DEFAULT_TEXT_CONTENT="Provide Feedback",t.DEFAULT_BASE_URL="https://customervoice.microsoft.com/",t.FORMSPRO_BASE_URL="https://forms.office.com/formspro/",t.ICON_DIV_ID="mfpembed_iconDiv",t.IFRAME_ID="MfpEmbed_Iframe",t.OVERLAY_DIV_ID="mfpembed_overlayDiv",t.RESPONSE_PAGE_IFRAME_ID="MfpEmbed_Popup_Iframe",t.SURVEY_DIV_ID="gatecrashSurvey",t.GATECRASH_RENDER_ERROR={name:"Gatecrash_Render_Error"},t.GATECRASH_ON_SURVEY_DATA_SUBMIT={name:"Gatecrash_On_Survey_Data_Submit"},t.EVENT_RESPONSE_DATA_ERROR={name:"Gatecrash_Event_Response_Data_Error"},t.GATECRASH_ON_SURVEY_CANCEL={name:"Gatecrash_On_Survey_Cancel"},t.GATECRASH_ON_SURVEY_LOAD={name:"Gatecrash_On_Survey_Load"}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=["af","am","ar","as","az","be","bg","bn-BD","bn-IN","bs","ca","ca-Es-VALENCIA","chr-Cher","cs","cy","da","de","el","en-GB","es","es-MX","et","eu","fa","fi","fil","fr","fr-CA","ga","gd","gl","gu","ha-Latn-NG","he","hi","hr","hu","hy","id","is","it","ja","ka","kk","km-KH","kn","ko","kok","ky","lb","lo","lt","lv","mi","mk","ml","mn","mr","ms","mt","nb-NO","ne","nl","nn-NO","or","pa","pl","prs","pt-BR","pt-PT","quz","ro","ru","sd","si","sk","sl","sq","sr-Cyrl-BA","sr-Cyrl-RS","sr-Latn-RS","sv","sw","ta","te","th","tk","tr","tt","ug","uk","ur","uz-Latn-UZ","vi","zh-Hans","zh-Hant"],i={"ZH-CN":"zh-Hans","ZH-HK":"zh-Hant","ZH-MO":"zh-Hant","ZH-SG":"zh-Hans","ZH-TW":"zh-Hant"};function s(e){var t=e.toLocaleUpperCase();if(t in i)return i[t];for(var n=0,s=r;n<s.length;n++)if((f=s[n]).toUpperCase()===t)return f;for(var o=t.split("-")[0],u=0,a=r;u<a.length;u++){var f;if((f=a[u]).toUpperCase()===o)return f}return"en"}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ItemChanges=t.ItemOperation=void 0,i(n(79),t);var s=n(80);Object.defineProperty(t,"ItemOperation",{enumerable:!0,get:function(){return s.ItemOperation}}),Object.defineProperty(t,"ItemChanges",{enumerable:!0,get:function(){return s.ItemChanges}}),i(n(81),t),i(n(82),t),i(n(83),t),i(n(84),t),i(n(29),t),i(n(85),t),i(n(86),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(87),t),i(n(88),t)},function(e,t,n){n(90),e.exports=n(91)},function(e,t,n){"use strict";e.exports=n(55).polyfill()},function(e,t,n){e.exports=(function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,r=void 0,i=void 0,s=function(e,t){h[n]=e,h[n+1]=t,2===(n+=2)&&(i?i(p):y())},o="undefined"!=typeof window?window:void 0,u=o||{},a=u.MutationObserver||u.WebKitMutationObserver,f="undefined"==typeof self&&"[object process]"==={}.toString.call(Object({})),l="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(p,1)}}var h=new Array(1e3);function p(){for(var e=0;e<n;e+=2)(0,h[e])(h[e+1]),h[e]=void 0,h[e+1]=void 0;n=0}var d,v,m,g,y=void 0;function b(e,t){var n=this,r=new this.constructor(S);void 0===r[E]&&_(r);var i=n._state;if(i){var o=arguments[i-1];s(function(){return O(i,r,o,n._result)})}else L(n,r,e,t);return r}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(S);return T(t,e),t}f?y=function(){return Object({}).nextTick(p)}:a?(v=0,m=new a(p),g=document.createTextNode(""),m.observe(g,{characterData:!0}),y=function(){g.data=v=++v%2}):l?((d=new MessageChannel).port1.onmessage=p,y=function(){return d.port2.postMessage(0)}):y=void 0===o?(function(){try{var e=Function("return this")().require("vertx");return void 0!==(r=e.runOnLoop||e.runOnContext)?function(){r(p)}:c()}catch(e){return c()}})():c();var E=Math.random().toString(36).substring(2);function S(){}function x(t,n,r){n.constructor===t.constructor&&r===b&&n.constructor.resolve===w?(function(e,t){1===t._state?C(e,t._result):2===t._state?k(e,t._result):L(t,void 0,function(t){return T(e,t)},function(t){return k(e,t)})})(t,n):void 0===r?C(t,n):e(r)?(function(e,t,n){s(function(e){var r=!1,i=(function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}})(n,t,function(n){r||(r=!0,t!==n?T(e,n):C(e,n))},function(t){r||(r=!0,k(e,t))},e._label);!r&&i&&(r=!0,k(e,i))},e)})(t,n,r):C(t,n)}function T(e,t){if(e===t)k(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)C(e,t);else{var n=void 0;try{n=t.then}catch(t){return void k(e,t)}x(e,t,n)}var r,i}function N(e){e._onerror&&e._onerror(e._result),A(e)}function C(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(A,e))}function k(e,t){void 0===e._state&&(e._state=2,e._result=t,s(N,e))}function L(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=n,i[o+2]=r,0===o&&e._state&&s(A,e)}function A(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,s=e._result,o=0;o<t.length;o+=3)r=t[o],i=t[o+n],r?O(n,r,i,s):i(s);e._subscribers.length=0}}function O(t,n,r,i){var s=e(r),o=void 0,u=void 0,a=!0;if(s){try{o=r(i)}catch(e){a=!1,u=e}if(n===o)return void k(n,new TypeError("A promises callback cannot return that same promise."))}else o=i;void 0!==n._state||(s&&a?T(n,o):!1===a?k(n,u):1===t?C(n,o):2===t&&k(n,o))}var M=0;function _(e){e[E]=M++,e._state=void 0,e._result=void 0,e._subscribers=[]}var D=(function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(S),this.promise[E]||_(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&C(this.promise,this._result))):k(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===w){var i=void 0,s=void 0,o=!1;try{i=e.then}catch(e){o=!0,s=e}if(i===b&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===P){var u=new n(S);o?k(u,s):x(u,e,i),this._willSettleAt(u,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?k(r,n):this._result[t]=n),0===this._remaining&&C(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;L(e,void 0,function(e){return n._settledAt(1,t,e)},function(e){return n._settledAt(2,t,e)})},e})(),P=(function(){function t(e){this[E]=M++,this._result=this._state=void 0,this._subscribers=[],S!==e&&("function"!=typeof e&&(function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")})(),this instanceof t?(function(e,t){try{t(function(t){T(e,t)},function(t){k(e,t)})}catch(t){k(e,t)}})(this,e):(function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")})())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}):this.then(t,t)},t})();return P.prototype.then=b,P.all=function(e){return new D(this,e).promise},P.race=function(e){var n=this;return t(e)?new n(function(t,r){for(var i=e.length,s=0;s<i;s++)n.resolve(e[s]).then(t,r)}):new n(function(e,t){return t(new TypeError("You must pass an array to race."))})},P.resolve=w,P.reject=function(e){var t=new this(S);return k(t,e),t},P._setScheduler=function(e){i=e},P._setAsap=function(e){s=e},P._asap=s,P.polyfill=function(){var e=void 0;if("undefined"!=typeof window)e=window;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=P},P.Promise=P,P})()},function(e,t,n){"use strict";var r;!(function(e){var t=(function(){function e(){}return e.AppLaunch="AppLaunch",e.AppUsageTime="AppUsageTime",e.AppResume="AppResume",e})();e.ActivityName=t})(r||(r={})),e.exports=r},function(e,t,n){"use strict";var r;!(function(e){e.RoamingSettingIdMap={CampaignStates:1258,GovernedChannelStates:1257,SurveyActivationStats:1259}})(r||(r={})),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CampaignManager=void 0;var r=n(20),i=n(10),s=n(21),o=n(41),u=n(59),a=n(16),f=n(35),l=i.getDistantFuture,c=i.getDistantPast,h=i.isArray,p=i.isNOU,d=(function(){function e(e,t,n,r,i,s,o){if(!e)throw new Error("stateProvider must not be null");if(!h(t))throw new Error("definitionProviders is either null or not an array type");if(!n)throw new Error("stringProvider must not be null");if(p(i))throw new Error("currentBuildNumber must not be null");this.campaignStates={},this.campaignDefinitions={},this.userFacts=[],this.stateProvider=e,this.definitionProviders=t,this.stringProvider=n,this.userFactsProvider=o,this.environmentProvider=r,this.currentBuildNumber=i,s=s||new Date}return e.isStateUpForNomination=function(t,n,r,i){if(!t||!n)return!1;if(r=r||new Date,t.ForceCandidacy)return!0;var s=n.nominationScheme.getCampaignCooldown(t.IsCandidate&&t.DidCandidateTriggerSurvey);return!!s&&(!!e.hasBuildChangeDurationElapsed(s,t.LastNominationBuildNumber,i)||e.hasTimeIntervalDurationElapsed(s,t.getCooldownStartDate(),r))},e.isDateInRange=function(e,t,n){return e=e||new Date,t=t||c(),n=n||l(),t.getTime()<=e.getTime()&&n.getTime()>=e.getTime()},e.hasTimeIntervalDurationElapsed=function(e,t,n){if(p(e)||!(e instanceof s.CampaignDurationTimeInterval))return!1;if(!t||!n)return!1;var r=i.addSecondsWithoutOverflow(t,e.intervalSeconds);return n.getTime()>=r.getTime()},e.hasBuildChangeDurationElapsed=function(e,t,n){return!p(e)&&e instanceof s.CampaignDurationSingleBuildChange&&(p(t)||p(n)?null===t!=(null===n):!(t===n))},e.isCampaignInScope=function(t,n,r,i){return!(!t||(n=n||new Date,!e.isDateInRangeWithDefinition(n,t)||t.scope&&((t.scope instanceof s.CampaignScopeUserFactAny||t.scope instanceof s.CampaignScopeUserFactAll)&&t.scope.setUserFactsProvider(i),t.scope instanceof s.CampaignScopeEnvironmentCrossProduct&&t.scope.setEnvironmentProvider(r),!t.scope.isInScope())))},e.isDateInRangeWithDefinition=function(t,n){return!!n&&(t=t||new Date,e.isDateInRange(t,n.startTime?n.startTime:l(),n.endTime))},e.prototype.getActiveSurveys=function(){var e={},t=this.getPrioritizedCampaigns();for(var n in this.campaignStates)if(this.campaignStates.hasOwnProperty(n)){var r=this.campaignStates[n];if(!r.IsCandidate)continue;var i=t[r.CampaignId];if(!i)continue;var s=u.CampaignSurveyFactory.makeSurvey(r,i,this.stringProvider);if(!s)continue;e[s.getSurveyInfo().getId()]=s}return e},e.prototype.onCampaignSurveyActivated=function(e,t,n){var r=this.campaignStates[e];if(r){t=t||new Date;var i=this.campaignDefinitions[e].nominationScheme.cooldownPeriod.asTimeIntervalSeconds();r.markCurrentSurveyTakenOnDate(t,i,n),this.saveCurrentState()}},e.prototype.getCampaignStates=function(){return this.campaignStates},e.prototype.getCampaignDefinitions=function(){return this.campaignDefinitions},e.prototype.getUserFacts=function(){return this.userFacts},e.prototype.onSurveyActivated=function(e,t){e&&this.onCampaignSurveyActivated(e.getBackEndId(),new Date,t)},e.prototype.refreshSurveyDefinitions=function(e,t){this.refreshSurveyDefinitionsPrivate(e,t||new Date)},e.prototype.refreshSurveyDefinitionsAsync=function(e,t){var n=this;return new Promise(function(r,i){n.refreshSurveyDefinitionsPrivateAsync(e,t||new Date).then(function(){r()}).catch(function(e){i(e)})})},e.prototype.getAppSurveys=function(){return this.getActiveSurveys()},e.prototype.saveCurrentState=function(){var e=i.makeArrayFromObjectValuesSortedByKeyString(this.campaignStates);this.stateProvider.save(e)},e.prototype.refreshSurveyDefinitionsPrivate=function(e,t){this.campaignStates={},this.campaignDefinitions={},this.userFacts=[],this.loadAndFilterCampaignData(t,e),this.evaluateCampaigns(t)},e.prototype.refreshSurveyDefinitionsPrivateAsync=function(e,t){this.campaignStates={},this.campaignDefinitions={},this.userFacts=[];var n=this;return new Promise(function(r,i){n.loadAndFilterCampaignDataAsync(t,e).then(function(){n.evaluateCampaigns(t),r()}).catch(function(e){i(e)})})},e.prototype.loadAndFilterCampaignDataAsync=function(e,t){e=e||new Date;for(var n=[],i=[],s=this.userFactsProvider&&this.userFactsProvider.loadAsync(),o=0,u=Object.keys(this.definitionProviders);o<u.length;o++){var f=u[o],l=this.definitionProviders[f],c=l&&l.loadAsync();p(c)||(c=c.catch(function(){r.FloodgateEngine.getTelemetryLogger().log_CampaignLoad_Failed("Failed to load from campaign definition provider"),Promise.resolve()}),i.push(c))}var d=this;return new Promise(function(o,u){Promise.all(i).then(function(i){for(var u=0,f=Object.keys(i);u<f.length;u++){var l=i[f[u]];h(l)&&(n=n.concat(l))}var c=function(r){d.userFacts=r||[],d.FilterCampaignData(e,t,n),o()};p(s)?c():s.then(function(e){c(e)}).catch(function(){r.FloodgateEngine.getTelemetryLogger().log_Error(a.TelemetryEvent.Floodgate.UserFactsLoad.Failed,"Failed to load from user facts provider"),c()})}).catch(function(e){r.FloodgateEngine.getTelemetryLogger().log_CampaignLoad_Failed("Failed to load from campaign definition provider")})})},e.prototype.loadAndFilterCampaignData=function(e,t){e=e||new Date;for(var n=[],i=0,s=Object.keys(this.definitionProviders);i<s.length;i++){var o=s[i];try{var u=this.definitionProviders[o]&&this.definitionProviders[o].load();h(u)&&(n=n.concat(u))}catch(e){r.FloodgateEngine.getTelemetryLogger().log_CampaignLoad_Failed("Failed to load from campaign definition provider. "+e.toString())}}try{this.userFacts=this.userFactsProvider&&this.userFactsProvider.load()||[]}catch(e){r.FloodgateEngine.getTelemetryLogger().log_Error(a.TelemetryEvent.Floodgate.UserFactsLoad.Failed,"Failed to load from user facts provider. "+e)}this.FilterCampaignData(e,t,n)},e.prototype.FilterCampaignData=function(t,n,r){var s={};for(var o in r)if(r.hasOwnProperty(o)){if(s[(c=r[o]).campaignId]=c,n&&n.indexOf(c.governedChannelType)<0&&c.businessLevel!==f.BusinessLevel.Critical)continue;if(!e.isCampaignInScope(c,t,this.environmentProvider,this.userFactsProvider))continue;this.campaignDefinitions[c.campaignId]=c}var u=this.stateProvider.load(),a=[];for(var o in u)if(u.hasOwnProperty(o)){var l=u[o];this.campaignDefinitions.hasOwnProperty(l.CampaignId)||a.push(l),this.campaignStates[l.CampaignId]=l}for(var o in a)if(a.hasOwnProperty(o)){if(!(l=a[o]))continue;var c,h=!1;(c=s[l.CampaignId])?e.isStateUpForNomination(l,c,t,this.currentBuildNumber)&&(h=!0):l.LastNominationTimeUtc.getTime()<=i.subtractSecondsWithoutOverflow(t,l.DeleteAfterSecondsWhenStale).getTime()&&(h=!0),h&&delete this.campaignStates[l.CampaignId]}},e.prototype.getPrioritizedCampaigns=function(){var e=this,t={},n={};return Object.keys(this.campaignDefinitions||[]).forEach(function(r){var i=e.campaignDefinitions[r];t[r]=i,(i.tags&&i.tags.length>0?i.tags:[""]).forEach(function(e){var t=e+"_"+i.governedChannelType;n[t]=n[t]||[],n[t].push(i)})}),Object.keys(n).forEach(function(e){var r=n[e];if(!(r.length<=1)){var i=r.reduce(function(e,t){return(t.primaryPriority||0)<(e.primaryPriority||0)?t:e},r[0]).primaryPriority;p(i)||r.forEach(function(e){var n=e.primaryPriority;!p(e.primaryPriority)&&n>i&&delete t[e.campaignId]})}}),t},e.prototype.evaluateCampaigns=function(t){for(var n in t=t||new Date,this.campaignDefinitions)if(this.campaignDefinitions.hasOwnProperty(n)){var r=this.campaignDefinitions[n],s=this.campaignStates[r.campaignId];if(!s||e.isStateUpForNomination(s,r,t,this.currentBuildNumber)){var u=s?s.LastSurveyId:"",a=s?s.LastSurveyStartTimeUtc:c(),f=s?s.LastSurveyExpirationTimeUtc:c(),l=s?s.LastSurveyActivatedTimeUtc:c(),h=s?s.LastCooldownEndTimeUtc:c(),p=s&&s.ForceCandidacy||r.nominationScheme.evaluateNominationRules();p&&(u=i.guid(),a=r.nominationScheme.calculateSurveyStartTimeFromDate(t),f=r.nominationScheme.calculateSurveyExpirationTimeFromSurveyStartTime(a));var d=new o.CampaignState(r.campaignId,t,this.currentBuildNumber,r.nominationScheme.getActiveSurveyTimeIntervalSeconds(),!1,p,!1,l,u,a,f,h);this.campaignStates[d.CampaignId]=d}else s.DidCandidateTriggerSurvey&&(s.IsCandidate=!1)}},e})();t.CampaignManager=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CampaignSurveyFactory=void 0;var r=n(18),i=n(60),s=n(63),o=n(64),u=n(66),a=n(67),f=n(69),l=n(70),c=n(24),h=n(10),p=n(21),d=h.dateToShortUtcString,v=h.isNOU,m=(function(){function e(){}return e.makeSurvey=function(t,n,r){if(!(t&&n&&n.surveyTemplate&&r))return null;var i=e.makeSurveyDataSourceData(t,n),s=n.surveyTemplate;return s instanceof p.CampaignSurveyTemplateNps5PointStatic?l.make5Point(i,r):s instanceof p.CampaignSurveyTemplateNps11PointStatic?l.make11Point(i,r):s instanceof p.CampaignSurveyTemplateFps?o.makeFps(i,r,s):s instanceof p.CampaignSurveyTemplateNlqs?f.makeNlqs(i,r,s):s instanceof p.CampaignSurveyTemplateNps?l.makeCustom(i,r,s):s instanceof p.CampaignSurveyTemplateGenericMessagingSurface?u.makeCustom(i):s instanceof p.CampaignSurveyTemplateIntercept?a.makeIntercept(i,r,s):null},e.makeSurveyDataSourceData=function(t,n){if(!t||!n||!n.surveyTemplate)return null;var i=n.surveyTemplate,s=new c.SurveyDataSourceData;return s.activationEvent=e.makeEvent(t,i.activationEvent),s.metadata=e.makeMetadata(i.metadata),s.id=t.LastSurveyId,s.backEndIdentifier=t.CampaignId,s.expirationTimeUtc=d(t.LastSurveyExpirationTimeUtc),s.governedChannelType=n.governedChannelType,s.startTimeUtc=d(t.LastSurveyStartTimeUtc),s.additionalDataRequested=n.additionalDataRequested||[],s.launcherType=n.launcherType||r.LAUNCHER_TYPE_DEFAULT,s.preferredLaunchType=n.surveyTemplate.preferredLaunchType||"Default",s.businessLevel=n.businessLevel,v(i.maxLaunches)||(s.maxLaunches=i.maxLaunches),v(i.maxLaunchesPerSession)||(s.maxLaunchesPerSession=i.maxLaunchesPerSession),s},e.makeCountedActivityEventData=function(e){if(!e)return null;var t=new i.CountedActivityEventData;return t.activity=e.activity,t.count=e.count,t.isAggregate=e.isAggregate,t},e.makeCountedActivityEvent=function(t,n){if(!t||!n)return null;var r=e.makeCountedActivityEventData(n);return r?new i.CountedActivityEvent(r):null},e.makeCountedActivitySequenceEvent=function(t,n){if(!t||!n)return null;var r=new i.CountedActivitySequenceEventData;r.sequence=[];for(var s=0,o=n.sequence;s<o.length;s++){var u=o[s],a=e.makeCountedActivityEventData(u);if(!a)return null;r.sequence.push(a)}return new i.CountedActivitySequenceEvent(r)},e.makeEvent=function(t,n){return n instanceof p.CampaignSurveyEventCountedActivity?e.makeCountedActivityEvent(t,n):n instanceof p.CampaignSurveyEventCountedActivitySequence?e.makeCountedActivitySequenceEvent(t,n):null},e.makeMetadata=function(e){if(v(e)||v(e.contentMetadata))return null;var t=new s.Metadata;return t.contentMetadata=e.contentMetadata,new s.SurveyMetadata(t)},e})();t.CampaignSurveyFactory=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountedActivitySequenceEventData=t.CountedActivitySequenceEvent=t.CountedActivityEventData=t.CountedActivityEvent=void 0;var r=n(61),i=n(62),s=(function(){function e(e){if(!e)throw new Error("data must not be null");if(e.count<=0)throw new Error("count must be greater than 0");if(!e.activity||0===e.activity.length)throw new Error("activity must not be null or an empty string");this.data=e}return e.make=function(t){try{return new e(t)}catch(e){return null}},e.prototype.getActivity=function(){return this.data.activity},e.prototype.getCount=function(){return this.data.count},e.prototype.isAggregate=function(){return this.data.isAggregate},e.prototype.getType=function(){return"CountedActivity"},e.prototype.getTrackingSet=function(){var e=new Array;return e.push(new r.ActivityTrackingData(this.data.activity,this.data.count,this.data.isAggregate)),new i.ActivityTrackingSet(!1,e)},e})();t.CountedActivityEvent=s;t.CountedActivityEventData=function(){};var o=(function(){function e(e){if(!e)throw new Error("data must not be null");if(!e.sequence)throw new Error("data.sequence must not be null");if(0===e.sequence.length)throw new Error("data.sequence size must be greater than 0");this.data=[];for(var t=0,n=e.sequence;t<n.length;t++){var r=n[t];this.data.push(new s(r))}}return e.make=function(t){try{return new e(t)}catch(e){return null}},e.prototype.getSequence=function(){return this.data},e.prototype.getType=function(){return"CountedActivitySequence"},e.prototype.getTrackingSet=function(){for(var e=new Array,t=0,n=this.data;t<n.length;t++){var s=n[t];e.push(new r.ActivityTrackingData(s.getActivity(),s.getCount(),s.isAggregate()))}return new i.ActivityTrackingSet(!0,e)},e})();t.CountedActivitySequenceEvent=o;var u=(function(){function e(){}return e.prototype.CountedActivitySequenceEventData=function(){},e})();t.CountedActivitySequenceEventData=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActivityTrackingData=void 0;var r=(function(){function e(e,t,n){this.activity=e,this.count=t,this.isAggregate=n}return e.prototype.getActivity=function(){return this.activity},e.prototype.getCount=function(){return this.count},e.prototype.setCount=function(e){this.count=e},e.prototype.getIsAggregate=function(){return this.isAggregate},e})();t.ActivityTrackingData=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActivityTrackingSet=void 0;var r=n(10),i=(function(){function e(e,t){this.isOrdered=e,this.list=t}return e.prototype.getIsOrdered=function(){return this.isOrdered},e.prototype.getList=function(){return this.list},e.prototype.getActivityTrackingInfo=function(e,t){var n;if(0===this.list.length)return n={Activities:[],IsListOrdered:this.isOrdered},JSON.stringify(n);for(var i=0,s=this.list;i<s.length;i++){var o=s[i],u=e.getCount(o.getActivity(),t),a={Activity:o.getActivity(),ActualCount:u,Count:o.getCount(),IsAggregate:o.getIsAggregate(),IsDiscrete:u%1==0};r.isNOU(n)?n={Activities:[a],IsListOrdered:this.isOrdered}:n.Activities.push(a)}return JSON.stringify(n)},e})();t.ActivityTrackingSet=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.SurveyMetadata=void 0;var r=n(10),i=(function(){function e(e){if(!e)throw new Error("data must not be null");if(!e.contentMetadata)throw new Error("content metadata must not be null");if(!r.isObject(e.contentMetadata))throw new Error("content metadata must be of object type");this.data=e}return e.make=function(t){try{return new e(t)}catch(e){return null}},e.prototype.getContentMetadata=function(){return this.data.contentMetadata},e})();t.SurveyMetadata=i;t.Metadata=function(){}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=n(18),o=n(19),u=n(37),a=n(44),f=n(65),l=n(38),c=n(39),h=n(10),p=n(28),d=n(24),v=h.isNOU,m=(function(e){function t(t){var n=e.call(this)||this;if(v(t))throw new Error("data must not be null");return n.surveyInfo=new d(t.baseData),n.prompt=new l(t.promptData),n.question=t.commentData?new u(t.commentData):null,n.rating=t.ratingData?new c(t.ratingData):null,n.multipleChoice=t.multipleChoiceData?new f(t.multipleChoiceData):null,n.cvSurvey=t.cvSurveyData?new a(t.cvSurveyData):null,n}return i(t,e),t.make=function(e){try{return new t(e)}catch(e){return null}},t.makeFps=function(e,n,r){if(v(e)||v(n)||v(r))return null;var i=[],s=[],o=r.content;if(v(o)||v(o.prompt)||v(o.rating)&&v(o.multipleChoice)&&v(o.comment))return null;var h=new t.FpsSurveyData;if(h.baseData=e,h.promptData=new l.PromptComponentData,h.promptData.title=n.getCustomString(o.prompt.title),h.promptData.question=n.getCustomString(o.prompt.question),h.promptData.yesButtonLabel=n.getCustomString(o.prompt.yesLabel),h.promptData.noButtonLabel=n.getCustomString(o.prompt.noLabel),v(h.promptData.title)||v(h.promptData.question)||v(h.promptData.yesButtonLabel)||v(h.promptData.noButtonLabel))return null;if(o.rating){h.ratingData=new c.RatingComponentData,h.ratingData.question=n.getCustomString(o.rating.question),h.ratingData.isZeroBased=o.rating.isZeroBased;for(var p=0,d=o.rating.ratingValuesAscending;p<d.length;p++){var m=d[p],g=n.getCustomString(m);if(v(g))return null;i.push(g)}if(h.ratingData.ratingValuesAscending=i,v(h.ratingData.question)||v(h.ratingData.ratingValuesAscending))return null}if(o.multipleChoice){h.multipleChoiceData=new f.MultipleChoiceComponentData,h.multipleChoiceData.question=n.getCustomString(o.multipleChoice.question),h.multipleChoiceData.minNumberOfSelectedOptions=o.multipleChoice.minNumberOfSelectedOptions,h.multipleChoiceData.maxNumberOfSelectedOptions=o.multipleChoice.maxNumberOfSelectedOptions;for(var y=0,b=o.multipleChoice.availableOptions;y<b.length;y++){m=b[y],g=n.getCustomString(m);if(v(g))return null;s.push(g)}if(h.multipleChoiceData.availableOptions=s,v(h.multipleChoiceData.question)||v(h.multipleChoiceData.availableOptions))return null}return o.comment&&(h.commentData=new u.CommentComponentData,h.commentData.question=n.getCustomString(o.comment.question),v(h.commentData.question))||o.cvSurvey&&(h.cvSurveyData=new a.CVSurveyComponentData,h.cvSurveyData.customerVoiceFormId=o.cvSurvey.customerVoiceFormId,v(h.cvSurveyData.customerVoiceFormId))?null:this.make(h)},t.prototype.getType=function(){return s.Type.Fps},t.prototype.getSurveyInfo=function(){return this.surveyInfo},t.prototype.getCommentComponent=function(){return this.question},t.prototype.getPromptComponent=function(){return this.prompt},t.prototype.getRatingComponent=function(){return this.rating},t.prototype.getMultipleChoiceComponent=function(){return this.multipleChoice},t.prototype.getCVSurveyComponent=function(){return this.cvSurvey},t.prototype.getComponent=function(e){switch(e){case"Comment":return this.getCommentComponent();case"Prompt":return this.getPromptComponent();case"Rating":return this.getRatingComponent();case"MultipleChoice":return this.getMultipleChoiceComponent();case"CVSurvey":return this.getCVSurveyComponent();default:return null}},t.prototype.getDomElements=function(e){if(v(e))throw new Error("Document must not be null");var t=e.createElement(s.DOM_FPS_TAGNAME);return this.getSurveyInfo().getDomElements(e).forEach(function(e){v(e)||t.appendChild(e)}),this.getCommentComponent().getDomElements(e).forEach(function(e){v(e)||t.appendChild(e)}),this.getRatingComponent()&&this.getRatingComponent().getDomElements(e).forEach(function(e){v(e)||t.appendChild(e)}),this.getMultipleChoiceComponent()&&this.getMultipleChoiceComponent().getDomElements(e).forEach(function(e){v(e)||t.appendChild(e)}),[t]},t.prototype.getJsonElements=function(){var e,t={};return(t=h.overrideValues(this.getSurveyInfo().getJsonElements(),t))[o.JSON_APPLICATION_KEYNAME]={},t[o.JSON_APPLICATION_KEYNAME][o.JSON_EXTENDEDMANIFESTDATA_KEYNAME]=JSON.stringify(((e={})[o.JSON_SURVEYSTRINGS_KEYNAME]=this.makeSurveyStrings(),e[o.JSON_SURVEYSPECIFICDATA_KEYNAME]=this.makeResponseString(),e)),t},t.prototype.makeResponseString=function(){var e={};return this.question&&(e[o.JSON_COMMENT_KEYNAME]=[this.getCommentComponent().getSubmittedText()]),this.multipleChoice&&(e[o.JSON_MULTIPLECHOICE_KEYNAME]=[this.getMultipleChoiceComponent().getOptionSelectedStates()]),this.rating&&(e[o.JSON_RATING_KEYNAME]=[{numberOfOptions:this.getRatingComponent().getRatingValuesAscending().length,selectedRating:this.getRatingComponent().getSelectedRatingIndex()}]),JSON.stringify(e)},t.prototype.makeSurveyStrings=function(){var e={};return this.prompt&&(e[o.JSON_PROMPT_KEYNAME]=this.prompt.getComponentJson()),this.rating&&(e[o.JSON_RATING_KEYNAME]=[this.rating.getComponentJson()]),this.question&&(e[o.JSON_COMMENT_KEYNAME]=[this.question.getComponentJson()]),this.multipleChoice&&(e[o.JSON_MULTIPLECHOICE_KEYNAME]=[this.multipleChoice.getComponentJson()]),JSON.stringify(e)},t})(p.Survey);!(function(e){e.FpsSurveyData=function(){}})(m||(m={})),e.exports=m},function(e,t,n){"use strict";var r=n(19),i=(function(){function e(e){if(!e)throw new Error("data must not be null");if(!e.question)throw new Error("data.question must not be null or empty");if(!e.availableOptions||e.availableOptions.length<2)throw new Error("data.availableOptions must not be null or have less than two choices");e.availableOptions.forEach(function(e){if(!e)throw new Error("Option values must not contain null or empty")}),this.data=e,this.optionStates=new Array(e.availableOptions.length);for(var t=0;t<this.optionStates.length;t++)this.optionStates[t]=!1}return e.make=function(t){try{return new e(t)}catch(e){return null}},e.prototype.getType=function(){return"MultipleChoice"},e.prototype.getQuestion=function(){return this.data.question},e.prototype.getAvailableOptions=function(){return this.data.availableOptions},e.prototype.getOptionSelectedStates=function(){return this.optionStates},e.prototype.getMinNumberofSelectedOptions=function(){return this.data.minNumberOfSelectedOptions},e.prototype.getMaxNumberofSelectedOptions=function(){return this.data.maxNumberOfSelectedOptions},e.prototype.setOptionSelectedStates=function(e){for(var t=0;t<e.length;t++)this.optionStates[t]=e[t]},e.prototype.ValidateMinNumberofSelectedOptions=function(){var e=0;return this.optionStates.forEach(function(t){t&&e++}),e>=this.getMinNumberofSelectedOptions()},e.prototype.ValidateMaxNumberofSelectedOptions=function(){var e=0;return this.optionStates.forEach(function(t){t&&e++}),e<=this.getMaxNumberofSelectedOptions()},e.prototype.getDomElements=function(e){if(!e)throw new Error("Document must not be null");var t=e.createElement(r.DOM_MULTIPLECHOICE_TAGNAME);return t.appendChild(e.createTextNode(this.getOptionSelectedStates().toString())),[t]},e.prototype.getJsonElements=function(){var e={};return e[r.JSON_MULTIPLECHOICE_KEYNAME]=this.getOptionSelectedStates().toString(),e},e.prototype.getComponentJson=function(){var e;return(e={})[r.JSON_QUESTION_KEYNAME]=this.getQuestion(),e[r.JSON_RATINGOPTIONS_KEYNAME]=this.getAvailableOptions(),e},e})();!(function(e){e.MultipleChoiceComponentData=function(){}})(i||(i={})),e.exports=i},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=n(18),o=n(10),u=n(28),a=n(24),f=o.isNOU,l=(function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("data must not be null");if(n.surveyInfo=new a(t.baseData),f(n.surveyInfo.getMetadata()))throw new Error("metadata must not be null");return n}return i(t,e),t.make=function(e){try{return new t(e)}catch(e){return null}},t.makeCustom=function(e){if(f(e))return null;var n=new t.GenericMessagingSurfaceSurveyData;return n.baseData=e,this.make(n)},t.prototype.getType=function(){return s.Type.GenericMessagingSurface},t.prototype.getSurveyInfo=function(){return this.surveyInfo},t.prototype.getComponent=function(e){return null},t.prototype.getDomElements=function(e){return[]},t.prototype.getJsonElements=function(){return{}},t})(u.Survey);!(function(e){e.GenericMessagingSurfaceSurveyData=function(){}})(l||(l={})),e.exports=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=n(18),o=n(68),u=n(10),a=n(28),f=n(24),l=u.isNOU,c=(function(e){function t(t){var n=e.call(this)||this;if(l(t))throw new Error("data must not be null");return n.surveyInfo=new f(t.baseData),n.intercept=new o(t.interceptData),n}return i(t,e),t.make=function(e){try{return new t(e)}catch(e){return null}},t.makeIntercept=function(e,n,r){if(l(e)||l(n)||l(r))return null;var i=r.content;if(l(i)||l(i.intercept))return null;var s=new t.InterceptSurveyData;return s.baseData=e,s.interceptData=new o.InterceptComponentData,s.interceptData.title=n.getCustomString(i.intercept.title),s.interceptData.question=n.getCustomString(i.intercept.question),s.interceptData.url=n.getCustomString(i.intercept.url),l(s.interceptData.title)||l(s.interceptData.question)||l(s.interceptData.url)?null:this.make(s)},t.prototype.getType=function(){return s.Type.Intercept},t.prototype.getSurveyInfo=function(){return this.surveyInfo},t.prototype.getInterceptComponent=function(){return this.intercept},t.prototype.getComponent=function(e){return"Intercept"===e?this.getInterceptComponent():null},t.prototype.getDomElements=function(e){return[]},t.prototype.getJsonElements=function(){return{}},t})(a.Survey);!(function(e){e.InterceptSurveyData=function(){}})(c||(c={})),e.exports=c},function(e,t,n){"use strict";var r=n(19),i=(function(){function e(e){if(!e)throw new Error("data must not be null");if(!e.question)throw new Error("data.question must not be null or empty");if(!e.title)throw new Error("data.title must not be null or empty");if(!e.url)throw new Error("data.url must not be null or empty");this.data=e}return e.make=function(t){try{return new e(t)}catch(e){return null}},e.prototype.getType=function(){return"Intercept"},e.prototype.getTitle=function(){return this.data.title},e.prototype.getQuestion=function(){return this.data.question},e.prototype.getUrl=function(){return this.data.url},e.prototype.getDomElements=function(e){if(!e)throw new Error("Document must not be null");return[e.createElement(r.DOM_INTERCEPT_TAGNAME)]},e.prototype.getJsonElements=function(){var e;return(e={})[r.JSON_INTERCEPT_KEYNAME]="",e},e.prototype.getComponentJson=function(){var e;return(e={})[r.JSON_TITLE_KEYNAME]=this.getTitle(),e[r.JSON_QUESTION_KEYNAME]=this.getQuestion(),e[r.JSON_INTERCEPTURL_KEYNAME]=this.getUrl(),e},e})();!(function(e){e.InterceptComponentData=function(){}})(i||(i={})),e.exports=i},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=n(18),o=n(37),u=n(38),a=n(39),f=n(10),l=n(28),c=n(24),h=f.isNOU,p=f.overrideValues,d=(function(e){function t(t){var n=e.call(this)||this;if(h(t))throw new Error("data must not be null");return n.surveyInfo=new c(t.baseData),n.prompt=new u(t.promptData),n.question=new o(t.commentData),n.rating=new a(t.ratingData),n}return i(t,e),t.make=function(e){try{return new t(e)}catch(e){return null}},t.makeNlqs=function(e,n,r){if(h(e)||h(n)||h(r))return null;var i=[],s=r.content;if(h(s)||h(s.comment)||h(s.prompt)||h(s.rating))return null;var f=new t.NlqsSurveyData;f.baseData=e,f.promptData=new u.PromptComponentData,f.ratingData=new a.RatingComponentData,f.commentData=new o.CommentComponentData,f.promptData.title=n.getCustomString(s.prompt.title),f.promptData.question=n.getCustomString(s.prompt.question),f.promptData.yesButtonLabel=n.getCustomString(s.prompt.yesLabel),f.promptData.noButtonLabel=n.getCustomString(s.prompt.noLabel),f.ratingData.question=n.getCustomString(s.rating.question),f.ratingData.isZeroBased=s.rating.isZeroBased,f.commentData.question=n.getCustomString(s.comment.question);for(var l=0,c=s.rating.ratingValuesAscending;l<c.length;l++){var p=c[l],d=n.getCustomString(p);if(h(d))return null;i.push(d)}return f.ratingData.ratingValuesAscending=i,h(f.ratingData.question)||h(f.commentData.question)||h(f.promptData.title)||h(f.promptData.question)||h(f.promptData.yesButtonLabel)||h(f.promptData.noButtonLabel)||h(f.ratingData.ratingValuesAscending)?null:this.make(f)},t.prototype.getType=function(){return s.Type.Nlqs},t.prototype.getSurveyInfo=function(){return this.surveyInfo},t.prototype.getCommentComponent=function(){return this.question},t.prototype.getPromptComponent=function(){return this.prompt},t.prototype.getRatingComponent=function(){return this.rating},t.prototype.getComponent=function(e){switch(e){case"Comment":return this.getCommentComponent();case"Prompt":return this.getPromptComponent();case"Rating":return this.getRatingComponent();default:return null}},t.prototype.getDomElements=function(e){if(h(e))throw new Error("Document must not be null");var t=e.createElement(s.DOM_NLQS_TAGNAME);return this.getSurveyInfo().getDomElements(e).forEach(function(e){h(e)||t.appendChild(e)}),this.getCommentComponent().getDomElements(e).forEach(function(e){h(e)||t.appendChild(e)}),this.getRatingComponent().getDomElements(e).forEach(function(e){h(e)||t.appendChild(e)}),[t]},t.prototype.getJsonElements=function(){var e={};return e=p(this.getSurveyInfo().getJsonElements(),e),e=p(this.getCommentComponent().getJsonElements(),e),p(this.getRatingComponent().getJsonElements(),e)},t})(l.Survey);!(function(e){e.NlqsSurveyData=function(){}})(d||(d={})),e.exports=d},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=n(18),o=n(19),u=n(37),a=n(44),f=n(38),l=n(39),c=n(10),h=n(28),p=n(24),d=c.isNOU,v=c.overrideValues,m=(function(e){function t(t){var n=e.call(this)||this;if(!t)throw new Error("data must not be null");return n.surveyInfo=new p(t.baseData),n.prompt=new f(t.promptData),n.question=new u(t.commentData),n.rating=new l(t.ratingData),n.cvSurvey=t.cvSurveyData?new a(t.cvSurveyData):null,n}return i(t,e),t.make=function(e){try{return new t(e)}catch(e){return null}},t.makeCustom=function(e,n,r){if(d(e)||d(n)||d(r))return null;var i=[],s=r.content;if(d(s)||d(s.comment)||d(s.prompt)||d(s.rating))return null;var o=new t.NpsSurveyData;o.baseData=e,o.promptData=new f.PromptComponentData,o.ratingData=new l.RatingComponentData,o.commentData=new u.CommentComponentData,o.promptData.title=n.getCustomString(s.prompt.title),o.promptData.question=n.getCustomString(s.prompt.question),o.promptData.yesButtonLabel=n.getCustomString(s.prompt.yesLabel),o.promptData.noButtonLabel=n.getCustomString(s.prompt.noLabel),o.ratingData.question=n.getCustomString(s.rating.question),o.ratingData.isZeroBased=s.rating.isZeroBased,o.commentData.question=n.getCustomString(s.comment.question);for(var c=0,h=s.rating.ratingValuesAscending;c<h.length;c++){var p=h[c],v=n.getCustomString(p);if(d(v))return null;i.push(v)}return o.ratingData.ratingValuesAscending=i,d(o.ratingData.question)||d(o.commentData.question)||d(o.promptData.title)||d(o.promptData.question)||d(o.promptData.yesButtonLabel)||d(o.promptData.noButtonLabel)||d(o.ratingData.ratingValuesAscending)||s.cvSurvey&&(o.cvSurveyData=new a.CVSurveyComponentData,o.cvSurveyData.customerVoiceFormId=s.cvSurvey.customerVoiceFormId,d(o.cvSurveyData.customerVoiceFormId))?null:this.make(o)},t.make5Point=function(e,n){if(!e||!n)return null;var r=new t.NpsSurveyData;r.baseData=e,r.ratingData=new l.RatingComponentData,r.ratingData.isZeroBased=!1,r.commentData=new u.CommentComponentData,r.promptData=new f.PromptComponentData,r.ratingData.question=n.loadStringResource(4),r.commentData.question=n.loadStringResource(21),r.promptData.title=n.loadStringResource(0),r.promptData.question=n.loadStringResource(1),r.promptData.yesButtonLabel=n.loadStringResource(2),r.promptData.noButtonLabel=n.loadStringResource(3);var i=new Array(5);return i[0]=n.loadStringResource(16),i[1]=n.loadStringResource(17),i[2]=n.loadStringResource(18),i[3]=n.loadStringResource(19),i[4]=n.loadStringResource(20),r.ratingData.question&&r.commentData.question&&r.promptData.title&&r.promptData.question&&r.promptData.yesButtonLabel&&r.promptData.noButtonLabel&&i[0]&&i[1]&&i[2]&&i[3]&&i[4]?(r.ratingData.ratingValuesAscending=i,this.make(r)):null},t.make11Point=function(e,n){if(!e||!n)return null;var r=new t.NpsSurveyData;r.baseData=e,r.ratingData=new l.RatingComponentData,r.ratingData.isZeroBased=!0,r.commentData=new u.CommentComponentData,r.promptData=new f.PromptComponentData,r.ratingData.question=n.loadStringResource(4),r.commentData.question=n.loadStringResource(21),r.promptData.title=n.loadStringResource(0),r.promptData.question=n.loadStringResource(1),r.promptData.yesButtonLabel=n.loadStringResource(2),r.promptData.noButtonLabel=n.loadStringResource(3);var i=new Array(11);return i[0]=n.loadStringResource(5),i[1]=n.loadStringResource(6),i[2]=n.loadStringResource(7),i[3]=n.loadStringResource(8),i[4]=n.loadStringResource(9),i[5]=n.loadStringResource(10),i[6]=n.loadStringResource(11),i[7]=n.loadStringResource(12),i[8]=n.loadStringResource(13),i[9]=n.loadStringResource(14),i[10]=n.loadStringResource(15),r.ratingData.question&&r.commentData.question&&r.promptData.title&&r.promptData.question&&r.promptData.yesButtonLabel&&r.promptData.noButtonLabel&&i[0]&&i[1]&&i[2]&&i[3]&&i[4]&&i[5]&&i[6]&&i[7]&&i[8]&&i[9]&&i[10]?(r.ratingData.ratingValuesAscending=i,this.make(r)):null},t.prototype.getType=function(){return s.Type.Nps},t.prototype.getSurveyInfo=function(){return this.surveyInfo},t.prototype.getCommentComponent=function(){return this.question},t.prototype.getPromptComponent=function(){return this.prompt},t.prototype.getRatingComponent=function(){return this.rating},t.prototype.getCVSurveyComponent=function(){return this.cvSurvey},t.prototype.getComponent=function(e){switch(e){case"Comment":return this.getCommentComponent();case"Prompt":return this.getPromptComponent();case"Rating":return this.getRatingComponent();case"CVSurvey":return this.getCVSurveyComponent();default:return null}},t.prototype.getDomElements=function(e){if(!e)throw new Error("Document must not be null");var t=e.createElement(s.DOM_NPS_TAGNAME);return this.getSurveyInfo().getDomElements(e).forEach(function(e){e&&t.appendChild(e)}),this.getCommentComponent().getDomElements(e).forEach(function(e){e&&t.appendChild(e)}),this.getRatingComponent().getDomElements(e).forEach(function(e){e&&t.appendChild(e)}),[t]},t.prototype.getJsonElements=function(){var e,t={};return t=v(this.getSurveyInfo().getJsonElements(),t),t=v(this.getCommentComponent().getJsonElements(),t),(t=v(this.getRatingComponent().getJsonElements(),t))[o.JSON_APPLICATION_KEYNAME]={},t[o.JSON_APPLICATION_KEYNAME][o.JSON_EXTENDEDMANIFESTDATA_KEYNAME]=JSON.stringify(((e={})[o.JSON_SURVEYSTRINGS_KEYNAME]=this.makeSurveyStrings(),e)),t},t.prototype.makeSurveyStrings=function(){var e={};return this.prompt&&(e[o.JSON_PROMPT_KEYNAME]=this.prompt.getComponentJson()),this.rating&&(e[o.JSON_RATING_KEYNAME]=[this.rating.getComponentJson()]),this.question&&(e[o.JSON_COMMENT_KEYNAME]=[this.question.getComponentJson()]),JSON.stringify(e)},t})(h.Survey);!(function(e){e.NpsSurveyData=function(){}})(m||(m={})),e.exports=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FloodgateSettings=void 0;var r=(function(){function e(){}return e.toJson=function(e){return JSON.stringify(e)},e.fromJson=function(e){return JSON.parse(e)},e})();t.FloodgateSettings=r},function(e,t,n){"use strict";var r=(function(){function e(e){if(!e)throw new Error("trackingSet must not be null");if(e.getList().length>32)throw new Error("trackingSet list size must be less than 32");this.isOrdered=e.getIsOrdered(),this.trackedActivities=e.getList(),this.currentIndex=0,this.activationMask=0,this.currentActivationFlags=0,this.isActivationByInitPending=!1,this.currentCounts=new Array(this.trackedActivities.length),this.currentStartTimes=new Array(this.trackedActivities.length),this.currentSessionCounts=new Array(this.trackedActivities.length);for(var t=0;t<this.trackedActivities.length;t++)this.currentCounts[t]=0,this.currentSessionCounts[t]=0;for(t=0;t<this.trackedActivities.length;t++)this.activationMask|=1<<t,this.trackedActivities[t].getCount()<1&&this.trackedActivities[t].setCount(1)}return e.prototype.getCount=function(e){return this.isValidIndex(e)?this.currentCounts[e]:0},e.prototype.getSessionCount=function(e){return this.isValidIndex(e)?this.currentSessionCounts[e]:0},e.prototype.getStartTime=function(e){return this.isValidIndex(e)?this.currentStartTimes[e]:null},e.prototype.moveSessionCountIntoBaseCount=function(e){if(!this.isValidIndex(e))return 0;var t=this.currentSessionCounts[e];return this.currentSessionCounts[e]=0,t},e.prototype.initCounts=function(e,t,n){void 0===n&&(n=!1);for(var r=0;r<this.trackedActivities.length&&!(this.isOrdered&&r>this.currentIndex);r++)r<t.length&&t[r]&&(this.currentSessionCounts[r]=this.currentCounts[r]=t[r].tracker.getSessionCount(t[r].index),this.currentStartTimes[r]=t[r].tracker.getStartTime(t[r].index)),this.trackedActivities[r].getIsAggregate()&&r<e.length&&(this.currentCounts[r]+=e[r]),this.hasCountCrossedThreshold(r)&&this.finishActivityAtIndex(r);this.isActivated()&&!n&&(this.isActivationByInitPending=!0)},e.prototype.generateActivityIndexList=function(){for(var t=new Array,n=0;n<this.trackedActivities.length;n++){var r=new e.ActivityIndex;r.activity=this.trackedActivities[n].getActivity(),r.index=n,t.push(r)}return t},e.prototype.incrementActivity=function(e,t){if(!this.isValidIndex(e))return 0;if(t<0)throw new Error("increment must be non-negative");if(this.isOrdered&&e>this.currentIndex)return 0;var n=!this.hasCountCrossedThreshold(e);return this.currentCounts[e]+=t,this.currentSessionCounts[e]+=t,this.isActivationByInitPending?this.isPermittedIndexForActivationByInit(e)?this.commitActivation():0:n&&this.hasCountCrossedThreshold(e)?(this.finishActivityAtIndex(e),this.isActivated()?this.commitActivation():1):0},e.prototype.startTime=function(e,t){this.isValidIndex(e)&&(this.currentStartTimes[e]=t||new Date)},e.prototype.stopTime=function(e,t){if(!this.isValidIndex(e))return 0;var n=this.currentStartTimes[e];if(this.currentStartTimes[e]=null,!n)return 0;if(n>(t=t||new Date))return 0;var r=(t.getTime()-n.getTime())/1e3;return r%1==0&&(r+=.001),r},e.prototype.isValidIndex=function(e){return e<this.trackedActivities.length},e.prototype.isActivated=function(){return(this.currentActivationFlags&this.activationMask)===this.activationMask},e.prototype.finishActivityAtIndex=function(e){if(!this.isValidIndex(e))throw new Error("Index is not valid");this.currentActivationFlags|=1<<e,e+1<this.trackedActivities.length&&(this.currentIndex=e+1)},e.prototype.hasCountCrossedThreshold=function(e){if(!this.isValidIndex(e))throw new Error("Index is not valid");return this.currentCounts[e]>=this.trackedActivities[e].getCount()},e.prototype.isPermittedIndexForActivationByInit=function(e){return!this.isOrdered||e+1===this.currentCounts.length},e.prototype.commitActivation=function(){return this.isActivationByInitPending=!1,2},e})();!(function(e){e.ActivityIndex=function(){}})(r||(r={})),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexedTracker=void 0;t.IndexedTracker=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActivityTrackingContract=void 0;t.ActivityTrackingContract=function(e,t){this.surveyId=e,this.trackingSet=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasSurveyReachedMaxLaunches=t.hasSurveyReachedMaxLaunchesPerSession=t.isCriticalSurvey=t.isBusinessCriticalSurvey=t.isMultiLaunchSurvey=void 0;var r=n(11),i=n(10);function s(e){var t=null==e?void 0:e.getMaxLaunches();return i.isNumber(t)&&t>1}function o(e){var t=null==e?void 0:e.getBusinessLevel();return!i.isNOU(t)&&t===r.ISurveyInfo.BusinessLevel.Critical}t.isMultiLaunchSurvey=s,t.isBusinessCriticalSurvey=o,t.isCriticalSurvey=function(e){return s(e)||o(e)},t.hasSurveyReachedMaxLaunchesPerSession=function(e,t){var n;return!s(e)||!i.isNumber(e.getMaxLaunchesPerSession())||(null!==(n=null==t?void 0:t.SurveyLaunchCountPerSession)&&void 0!==n?n:0)>=e.getMaxLaunchesPerSession()},t.hasSurveyReachedMaxLaunches=function(e,t){return!s(e)||((null==t?void 0:t.SurveyLaunchCount)||0)>=e.getMaxLaunches()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUserFacts=t.deserializeUserFacts=void 0;var r=n(77);t.deserializeUserFacts=function(e){var t=[];for(var n in e.UserFacts)if(e.UserFacts.hasOwnProperty(n)){var i=e.UserFacts[n];i&&t.push(r.UserFact.deserialize(i))}return 0===t.length&&(t=null),t},t.validateUserFacts=function(e){if(e)for(var t in e)if(e.hasOwnProperty(t)&&!e[t])return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserFact=void 0;var r=n(16),i=n(20),s=n(10),o=s.isNOU,u=s.isNumber,a=s.isArray,f=[0,1,2,3,4,5],l=(function(){function e(e){this.input=e}return e.deserialize=function(t){return this.validate(t)?new e(t):null},e.validate=function(e){if(!e)return i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecDeserialization.Failed,"Input is null or undefined for user fact"),!1;if(!e.Value&&e.Values&&(e.Value=e.Values),o(e.Name)||o(e.Type)||o(e.Value))return i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecDeserialization.Failed,"Either of the required parameters Name: "+e.Name+", Type: "+e.Type+" or Value: "+e.Value+" are not provided for the user fact"),!1;if(!this.validateUserFactType(e.Type))return i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecDeserialization.Failed,"Invalid UserFactType value "+e.Type+" is provided for user fact"),!1;if(6===e.Type)return i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecDeserialization.Failed,"Unsupported UserFactType value "+e.Type+" is provided for user fact"),!1;if(e.LatencyType&&!this.validateLatencyType(e.LatencyType))return i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecDeserialization.Failed,"Invalid LatencyType value "+e.LatencyType+" is provided for user fact of type "+e.Type),!1;if(e.LatencyType&&0!==e.LatencyType&&o(e.LatencyDurationInSeconds))return i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecDeserialization.Failed,"LatencyDurationInSeconds value "+e.LatencyDurationInSeconds+" is not provided for user fact of type "+e.Type),!1;if(e.LatencyDurationInSeconds&&!u(e.LatencyDurationInSeconds))return i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecDeserialization.Failed,"Invalid LatencyDurationInSeconds value "+e.LatencyDurationInSeconds+" is provided for user fact of type "+e.Type),!1;if(1===e.Type&&o(e.IntervalType))return i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecDeserialization.Failed,"Required parameter intervalType is not provided for user fact of type "+e.Type),!1;var t=this.getComparatorTypes(e.Type);return!(e.Comparator&&!(function(e,t){return-1!==t.indexOf(e)})(e.Comparator,t)&&(i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecIsAMatch.Failed,"Unsupported comparator type for user fact of type "+e.Type),1))},e.getComparatorTypes=function(e){switch(e){case 0:return[0,1];case 4:return[0,1,6,7,8,9];case 5:return[6,7,8,9];case 1:case 2:case 3:case 6:return f}return f},e.validateLatencyType=function(e){return 0===e||3===e||1===e||2===e},e.validateUserFactType=function(e){return 0===e||2===e||3===e||4===e||1===e||5===e||6===e},e.prototype.isAMatch=function(e){if(!e||!e.userFactValue)return!1;if(!this.isLatencyAcceptable(e))return!1;try{var t=this.getType();return 0===t?(function(e,t,n){return c(!!e,!!JSON.parse(t.userFactValue.toLowerCase()),n)})(this.getValue(),e,this.getComparator()):2===t?(function(e,t,n){var r=Date.parse(t.userFactValue);if(!p(r,t.userFactValue,t.userFactName))return!1;var i=Date.parse(e);return!!p(i,e,null,2)&&c(i,r,n)})(this.getValue(),e,this.getComparator()):3===t?(function(e,t,n){var r=parseInt(t.userFactValue,10);return!!p(r,t.userFactValue,t.userFactName)&&c(e,r,n)})(this.getValue(),e,this.getComparator()):4===t?(function(e,t,n){return c(e.toLowerCase(),t.userFactValue.toLowerCase(),n)})(this.getValue(),e,this.getComparator()):1===t?(function(e,t,n,s){var o=Date.parse(t.userFactValue);if(!p(o,t.userFactValue,t.userFactName))return!1;var u=Date.now(),a=0===s?u-o:o-u;return a<0?(i.FloodgateEngine.getTelemetryLogger().log_Event(r.TelemetryEvent.Floodgate.UserFactsSpecIsAMatch.Mismatch,{ErrorMessage:"Interval type not acceptable - { Spec: "+e+', Name: "'+t.userFactName+'" }',TimeMilliseconds:a,Type:""+s}),!1):c(864e5*e,a,n)})(this.getValue(),e,this.getComparator(),this.getIntervalType()):5===t?(function(e,t,n){return c(e,t.userFactValue,n)})(this.getValue(),e,this.getComparator()):(i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecIsAMatch.Failed,"Unsupported type of user fact was provided "+t),!1)}catch(e){return i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecIsAMatch.Failed,e),!1}},e.prototype.getType=function(){return this.input.Type},e.prototype.getName=function(){return this.input.Name},e.prototype.getValue=function(){return this.input.Value},e.prototype.getComparator=function(){return this.input.Comparator||0},e.prototype.getLatencyType=function(){return this.input.LatencyType||0},e.prototype.getLatencyDurationInSeconds=function(){return this.input.LatencyDurationInSeconds},e.prototype.getIntervalType=function(){return this.input.IntervalType},e.prototype.isLatencyAcceptable=function(e){var t=this.getType();return!(!o(this.getLatencyDurationInSeconds())&&!(function(e,t,n){var r;switch(e){case 0:break;case 1:r=n.sourceDateTime;break;case 2:r=n.storageDateTime;break;case 3:r=n.clientIngestionDateTime}if(!o(r)){var i=Date.parse(r);return Date.now()-i<=1e3*t}return!0})(this.getLatencyType(),this.getLatencyDurationInSeconds(),e)&&(i.FloodgateEngine.getTelemetryLogger().log_Event(r.TelemetryEvent.Floodgate.UserFactsSpecIsAMatch.Mismatch,{ErrorMessage:'Latency duration not acceptable - { Name: "'+e.userFactName+'" }',TimeMilliseconds:this.getLatencyDurationInSeconds(),Type:""+t}),1))},e})();function c(e,t,n){switch(n){case 0:return t===e;case 1:return t!==e;case 2:return t>e;case 3:return t>=e;case 4:return t<e;case 5:return t<=e;case 6:return h(e,t);case 7:return!h(e,t);case 8:return h(t,e);case 9:return!h(t,e)}}function h(e,t){if("string"==typeof t){var n=t.toLowerCase();if("string"==typeof e)return-1!==e.toLowerCase().indexOf(n);if(a(e))return e.some(function(e){return e&&e.toString().toLowerCase()===n})}return!!a(e)&&-1!==e.indexOf(t)}function p(e,t,n,s){if(!u(e)){var o="User fact "+n+" has invalid value "+t;return s&&(o="Invalid value "+t+" was provided for user fact of type "+s),i.FloodgateEngine.getTelemetryLogger().log_Error(r.TelemetryEvent.Floodgate.UserFactsSpecIsAMatch.Failed,o),!1}return!0}t.UserFact=l},function(e,t,n){var r;r=function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)})([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(function(){function e(e){this.low=0,this.high=0,this.low=parseInt(e,10),this.low<0&&(this.high=-1)}return e.prototype.Equals=function(t){var n=new e(t);return this.low===n.low&&this.high===n.high},e})();t.Int64=r;var i=(function(){function e(e){this.low=0,this.high=0,this.low=parseInt(e,10)}return e.prototype.Equals=function(t){var n=new e(t);return this.low===n.low&&this.high===n.high},e})();t.UInt64=i;var s=(function(){function e(){}return e.ToByte=function(e){return this.ToUInt8(e)},e.ToInt16=function(e){return 32767&e|(32768&e)<<16>>16},e.ToInt32=function(e){return 2147483647&e|2147483648&e},e.ToUInt8=function(e){return 255&e},e.ToUInt32=function(e){return 4294967295&e},e})();t.Number=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(function(e){e[e.NotSet=0]="NotSet",e[e.DistinguishedName=1]="DistinguishedName",e[e.GenericData=2]="GenericData",e[e.IPV4Address=3]="IPV4Address",e[e.IPv6Address=4]="IPv6Address",e[e.MailSubject=5]="MailSubject",e[e.PhoneNumber=6]="PhoneNumber",e[e.QueryString=7]="QueryString",e[e.SipAddress=8]="SipAddress",e[e.SmtpAddress=9]="SmtpAddress",e[e.Identity=10]="Identity",e[e.Uri=11]="Uri",e[e.Fqdn=12]="Fqdn",e[e.IPV4AddressLegacy=13]="IPV4AddressLegacy"})(t.AWTPiiKind||(t.AWTPiiKind={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(1),s=n(3),o=(function(){function e(){}return e.getPayloadBlob=function(e,t){var n=new r.IO.MemoryStream,i=new r.CompactBinaryProtocolWriter(n);return i.WriteFieldBegin(r.BondDataType.BT_MAP,3),i.WriteMapContainerBegin(t,r.BondDataType.BT_STRING,r.BondDataType.BT_LIST),Object.keys(e).forEach(function(t){i.WriteString(t);var n=e[t];i.WriteContainerBegin(1,r.BondDataType.BT_STRUCT),i.WriteFieldBegin(r.BondDataType.BT_STRING,2),i.WriteString("act_default_source"),i.WriteFieldBegin(r.BondDataType.BT_STRING,5),i.WriteString(s.newGuid()),i.WriteFieldBegin(r.BondDataType.BT_INT64,6),i.WriteInt64(s.numberToBondInt64(Date.now())),i.WriteFieldBegin(r.BondDataType.BT_LIST,8),i.WriteContainerBegin(n.length,r.BondDataType.BT_STRUCT);for(var o=0;o<n.length;++o)i.WriteBlob(n[o]);i.WriteStructEnd(!1)}),i.WriteStructEnd(!1),n.GetBuffer()},e.getEventBlob=function(e){var t=new r.IO.MemoryStream,n=new r.CompactBinaryProtocolWriter(t);n.WriteFieldBegin(r.BondDataType.BT_STRING,1),n.WriteString(e.id),n.WriteFieldBegin(r.BondDataType.BT_INT64,3),n.WriteInt64(s.numberToBondInt64(e.timestamp)),n.WriteFieldBegin(r.BondDataType.BT_STRING,5),n.WriteString(e.type),n.WriteFieldBegin(r.BondDataType.BT_STRING,6),n.WriteString(e.name);var o=[],u=[];return Object.keys(e.properties).forEach(function(t){e.properties[t].pii===i.AWTPiiKind.NotSet?o.push(t):u.push(t)}),o.length&&(n.WriteFieldBegin(r.BondDataType.BT_MAP,13),n.WriteMapContainerBegin(o.length,r.BondDataType.BT_STRING,r.BondDataType.BT_STRING),o.forEach(function(t){n.WriteString(t),n.WriteString(e.properties[t].value)})),u.length&&(n.WriteFieldBegin(r.BondDataType.BT_MAP,30),n.WriteMapContainerBegin(u.length,r.BondDataType.BT_STRING,r.BondDataType.BT_STRUCT),u.forEach(function(t){n.WriteString(t),n.WriteFieldBegin(r.BondDataType.BT_INT32,1),n.WriteInt32(1),n.WriteFieldBegin(r.BondDataType.BT_INT32,2),n.WriteInt32(e.properties[t].pii),n.WriteFieldBegin(r.BondDataType.BT_STRING,3),n.WriteString(e.properties[t].value),n.WriteStructEnd(!1)})),n.WriteStructEnd(!1),t.GetBuffer()},e.base64Encode=function(e){return r.Encoding.Base64.GetString(e)},e})();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=/[xy]/g;t.numberToBondInt64=function(e){var t=new r.Int64("0");return t.low=4294967295&e,t.high=Math.floor(e/4294967296),t},t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(i,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},t.isPii=function(e){return!isNaN(e)&&null!==e&&e>=0&&e<=13}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Version="1.2.2",t.FullVersionString="AWT-Web-CJS-"+t.Version},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.AWTPiiKind=r.AWTPiiKind;var i=n(13);t.AWT=i.default,t.AWT_COLLECTOR_URL_UNITED_STATES="https://us.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_GERMANY="https://de.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_JAPAN="https://jp.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_AUSTRALIA="https://au.pipe.aria.microsoft.com/Collector/3.0/",t.AWT_COLLECTOR_URL_EUROPE="https://eu.pipe.aria.microsoft.com/Collector/3.0/"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(function(e){e[e.BT_STOP=0]="BT_STOP",e[e.BT_STOP_BASE=1]="BT_STOP_BASE",e[e.BT_UINT8=3]="BT_UINT8",e[e.BT_UINT32=5]="BT_UINT32",e[e.BT_UINT64=6]="BT_UINT64",e[e.BT_STRING=9]="BT_STRING",e[e.BT_STRUCT=10]="BT_STRUCT",e[e.BT_LIST=11]="BT_LIST",e[e.BT_MAP=13]="BT_MAP",e[e.BT_INT32=16]="BT_INT32",e[e.BT_INT64=17]="BT_INT64",e[e.BT_UNAVAILABLE=127]="BT_UNAVAILABLE"})(t.BondDataType||(t.BondDataType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=(function(){function e(){}return e.GetBytes=function(e){for(var t=[],n=0;n<e.length;++n){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||r>=57344?t.push(224|r>>12,128|r>>6&63,128|63&r):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t},e})();t.Utf8=i;var s=(function(){function e(){}return e.GetString=function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=e.length%3,s=0,o=e.length-i;s<o;s+=3){var u=(e[s]<<16)+(e[s+1]<<8)+e[s+2];r.push([n.charAt((t=u)>>18&63),n.charAt(t>>12&63),n.charAt(t>>6&63),n.charAt(63&t)].join(""))}switch(i){case 1:u=e[e.length-1],r.push(n.charAt(u>>2)),r.push(n.charAt(u<<4&63)),r.push("==");break;case 2:var a=(e[e.length-2]<<8)+e[e.length-1];r.push(n.charAt(a>>10)),r.push(n.charAt(a>>4&63)),r.push(n.charAt(a<<2&63)),r.push("=")}return r.join("")},e})();t.Base64=s;var o=(function(){function e(){}return e.GetBytes=function(e){for(var t=[];4294967168&e;)t.push(127&e|128),e>>>=7;return t.push(127&e),t},e})();t.Varint=o;var u=(function(){function e(){}return e.GetBytes=function(e){for(var t=e.low,n=e.high,r=[];n||4294967168&t;)r.push(127&t|128),t=(127&n)<<25|t>>>7,n>>>=7;return r.push(127&t),r},e})();t.Varint64=u;var a=(function(){function e(){}return e.EncodeZigzag32=function(e){return(e=r.Number.ToInt32(e))<<1^e>>31},e.EncodeZigzag64=function(e){var t=e.low,n=e.high,i=n<<1|t>>>31,s=t<<1;2147483648&n&&(i=~i,s=~s);var o=new r.UInt64("0");return o.low=s,o.high=i,o},e})();t.Zigzag=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=(function(){function e(){this._buffer=[]}return e.prototype.WriteByte=function(e){this._buffer.push(r.Number.ToByte(e))},e.prototype.Write=function(e,t,n){for(;n--;)this.WriteByte(e[t++])},e.prototype.GetBuffer=function(){return this._buffer},e})();t.MemoryStream=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.BondDataType=r.BondDataType;var i=n(7);t.Encoding=i;var s=n(8);t.IO=s;var o=n(0);t.Int64=o.Int64,t.UInt64=o.UInt64,t.Number=o.Number;var u=(function(){function e(e){this._stream=e}return e.prototype.WriteBlob=function(e){this._stream.Write(e,0,e.length)},e.prototype.WriteContainerBegin=function(e,t){this.WriteUInt8(t),this.WriteUInt32(e)},e.prototype.WriteMapContainerBegin=function(e,t,n){this.WriteUInt8(t),this.WriteUInt8(n),this.WriteUInt32(e)},e.prototype.WriteFieldBegin=function(e,t){t<=5?this._stream.WriteByte(e|t<<5):t<=255?(this._stream.WriteByte(192|e),this._stream.WriteByte(t)):(this._stream.WriteByte(224|e),this._stream.WriteByte(t),this._stream.WriteByte(t>>8))},e.prototype.WriteInt32=function(e){e=i.Zigzag.EncodeZigzag32(e),this.WriteUInt32(e)},e.prototype.WriteInt64=function(e){this.WriteUInt64(i.Zigzag.EncodeZigzag64(e))},e.prototype.WriteString=function(e){if(""===e)this.WriteUInt32(0);else{var t=i.Utf8.GetBytes(e);this.WriteUInt32(t.length),this._stream.Write(t,0,t.length)}},e.prototype.WriteStructEnd=function(e){this.WriteUInt8(e?r.BondDataType.BT_STOP_BASE:r.BondDataType.BT_STOP)},e.prototype.WriteUInt32=function(e){var t=i.Varint.GetBytes(o.Number.ToUInt32(e));this._stream.Write(t,0,t.length)},e.prototype.WriteUInt64=function(e){var t=i.Varint64.GetBytes(e);this._stream.Write(t,0,t.length)},e.prototype.WriteUInt8=function(e){this._stream.WriteByte(o.Number.ToUInt8(e))},e})();t.CompactBinaryProtocolWriter=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(function(){function e(){this._killedTokenDictionary={}}return e.prototype.setKillSwitchTenants=function(e,t){var n=this;if(e&&t)try{var r=e.split(",");if("this-request-only"===t)return r;var i=1e3*parseInt(t,10);r.forEach(function(e){n._killedTokenDictionary[e]=Date.now()+i})}catch(e){return[]}return[]},e.prototype.isTenantKilled=function(e){return void 0!==this._killedTokenDictionary[e]&&this._killedTokenDictionary[e]>Date.now()||(delete this._killedTokenDictionary[e],!1)},e})();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=(function(){function e(e,t){this._maxRequestSize=e,this._outboundQueue=t,this._currentBatch={},this._currentBatchSize=0}return e.prototype.addEventToBatch=function(e){var t=r.default.getEventBlob(e);t.length>this._maxRequestSize||(this._currentBatchSize+t.length>this._maxRequestSize?this.flushBatch():(void 0===this._currentBatch[e.tenantToken]&&(this._currentBatch[e.tenantToken]=[]),this._currentBatch[e.tenantToken].push(t),this._currentBatchSize+=t.length))},e.prototype.flushBatch=function(){this._currentBatchSize>0&&(this._outboundQueue.push(this._currentBatch),this._currentBatch={},this._currentBatchSize=0)},e})();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(function(){function e(){}return e.shouldRetryForStatus=function(e){return!(e>=300&&e<500&&408!==e||501===e||505===e)},e.getMillisToBackoffForRetry=function(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(4,e)*n,Math.min(t,12e4)},e})();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(14),s=n(3),o=n(4),u=/^[a-zA-Z0-9]([a-zA-Z0-9]|_){2,98}[a-zA-Z0-9]$/,a=/\./g,f=/^[a-zA-Z0-9](([a-zA-Z0-9|_|\.]){0,98}[a-zA-Z0-9])?$/,l=(function(){function e(){}return e.initialize=function(e,t){if(void 0===t&&(t={}),this._isInitialized)throw"Already Initialized";this._defaultTenantToken=e,this._overrideValuesFromConfig(t),i.default.initialize(this._config),this._isInitialized=!0},e.flush=function(e){this._isInitialized&&!this._isDestroyed&&i.default.flush(e)},e.flushAndTeardown=function(){this._isInitialized&&!this._isDestroyed&&(this._isDestroyed=!0,i.default.flushAndTeardown())},e.setContext=function(e,t,n){void 0===n&&(n="allTkns"),null!==(t=this._sanitizeProperty(e,t))&&(this._contextProperties[n]||(this._contextProperties[n]={}),this._contextProperties[n][e]=t)},e.logEvent=function(e){var t=this;if(this._isInitialized){if(!e.name||!e.properties)return;e.name=e.name.toLowerCase(),e.name.replace(a,"_");var n="";if(e.type?(e.type.toLowerCase(),n="custom."):e.type="custom",!u.test(e.name)||!u.test(e.type))return;if(e.type=n+e.type,isNaN(e.timestamp)&&(e.timestamp=(new Date).getTime()),e.tenantToken||(e.tenantToken=this._defaultTenantToken),e.id=s.newGuid(),Object.keys(e.properties).forEach(function(n){e.properties[n]=t._sanitizeProperty(n,e.properties[n]),null===e.properties[n]&&delete e.properties[n]}),this._addContextIfAbsent(e,e.tenantToken),this._addContextIfAbsent(e,"allTkns"),0===Object.keys(e.properties).length)return;this._setDefaultProperty(e,"EventInfo.InitId",this._getInitId(e.tenantToken)),this._setDefaultProperty(e,"EventInfo.Sequence",this._getSequenceId(e.tenantToken)),this._setDefaultProperty(e,"EventInfo.SdkVersion",o.FullVersionString),this._setDefaultProperty(e,"EventInfo.Name",e.name),this._setDefaultProperty(e,"EventInfo.Time",new Date(e.timestamp).toISOString()),i.default.sendEvent(e)}},e._overrideValuesFromConfig=function(e){e.collectorUrl&&(this._config.collectorUrl=e.collectorUrl),e.sendingTimer>1e3&&(this._config.sendingTimer=e.sendingTimer)},e._getInitId=function(e){return void 0===this._initIdMap[e]&&(this._initIdMap[e]=s.newGuid()),this._initIdMap[e]},e._getSequenceId=function(e){return void 0===this._sequenceIdMap[e]&&(this._sequenceIdMap[e]=0),(++this._sequenceIdMap[e]).toString()},e._setDefaultProperty=function(e,t,n){e.properties[t]={value:n,pii:r.AWTPiiKind.NotSet}},e._addContextIfAbsent=function(e,t){if(this._contextProperties[t]){var n=this._contextProperties[t];Object.keys(n).forEach(function(t){e.properties[t]||(e.properties[t]=n[t])})}},e._sanitizeProperty=function(e,t){return"string"!=typeof t&&"number"!=typeof t&&"boolean"!=typeof t||(t={value:t}),f.test(e)&&null!=t&&null!==t.value&&void 0!==t.value&&""!==t.value?(void 0===t.pii&&(t.pii=r.AWTPiiKind.NotSet),t.value=t.value.toString(),s.isPii(t.pii)?t:null):null},e._isInitialized=!1,e._isDestroyed=!1,e._contextProperties={},e._sequenceIdMap={},e._initIdMap={},e._config={collectorUrl:"https://browser.pipe.aria.microsoft.com/Collector/3.0/",sendingTimer:1e3},e})();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(2),s=n(12),o=n(10),u=n(4),a=(function(){function e(){}return e.initialize=function(e){this._inboundQueues.push([]),this._recordBatcher=new r.default(2936012,this._outboundQueue),this._newEventsAllowed=!0,"undefined"==typeof Uint8Array&&(this._urlString+="&content-encoding=base64"),this._sendingTimer=e.sendingTimer,this._urlString=e.collectorUrl+this._urlString+"&x-apikey="},e.sendEvent=function(e){var t=this;this._newEventsAllowed&&(this._inboundQueues[this._inboundQueues.length-1].push(e),!this._running&&this._timeout<0&&!this._isCurrentlyFlushing&&(this._timeout=setTimeout(function(){return t._batchAndSendEvents(!1)},this._sendingTimer)))},e.flushAndTeardown=function(){this._newEventsAllowed=!1,this._batchAndSendEvents(!0)},e.flush=function(e){this._inboundQueues.push([]),this._isCurrentlyFlushing?this._flushQueue.push(e):(this._isCurrentlyFlushing=!0,this._flush(e))},e._batchAndSendEvents=function(e){for(this._running=!0;this._inboundQueues[0].length>0&&this._outboundQueue.length<1;)this._recordBatcher.addEventToBatch(this._inboundQueues[0].pop());0===this._outboundQueue.length&&this._recordBatcher.flushBatch(),this._sendRequest(this._outboundQueue.pop(),0,e)},e._retryRequestIfNeeded=function(e,t,n,r,i){var o=this,u=!0;e&&void 0!==e.status&&(this._killSwitch.setKillSwitchTenants(e.getResponseHeader("kill-tokens"),e.getResponseHeader("kill-duration-seconds")).forEach(function(e){delete t[e],n--}),(!s.default.shouldRetryForStatus(e.status)||n<=0)&&(u=!1)),u&&i<4?setTimeout(function(){return o._sendRequest(t,i+1,!1)},s.default.getMillisToBackoffForRetry(i)):this._handleRequestFinished(null)},e._sendRequest=function(e,t,n){var r=this;try{var s=new XMLHttpRequest,o=0,u="";if(Object.keys(e).forEach(function(t){r._killSwitch.isTenantKilled(t)?delete e[t]:(u.length>0&&(u+=","),u+=t,o++)}),s.open("POST",this._urlString+u,!n),n||(s.ontimeout=function(){r._retryRequestIfNeeded(s,e,o,u,t)},s.onerror=function(){r._retryRequestIfNeeded(s,e,o,u,t)},s.onload=function(){r._handleRequestFinished(s)}),o>0){var a=i.default.getPayloadBlob(e,o);"undefined"==typeof Uint8Array?s.send(i.default.base64Encode(a)):s.send(new Uint8Array(a))}else n&&this._handleRequestFinished(null)}catch(e){this._handleRequestFinished(null)}},e._handleRequestFinished=function(e){var t=this;e&&this._killSwitch.setKillSwitchTenants(e.getResponseHeader("kill-tokens"),e.getResponseHeader("kill-duration-seconds")),this._inboundQueues[0].length>0?this._timeout=setTimeout(function(){return t._batchAndSendEvents(!1)},this._sendingTimer):(this._timeout=-1,this._running=!1)},e._flush=function(e){var t=this;this._running||(this._timeout>-1&&(clearTimeout(this._timeout),this._timeout=-1),this._inboundQueues[0].length>0&&this._batchAndSendEvents(!1)),this._checkPrimaryInboundQueueEmpty(function(){t._inboundQueues.shift(),null!=e&&e(),t._flushQueue.length>0?setTimeout(function(){return t._flush(t._flushQueue.shift())},t._sendingTimer):(t._isCurrentlyFlushing=!1,t._inboundQueues[0].length>0&&(t._timeout=setTimeout(function(){return t._batchAndSendEvents(!1)},t._sendingTimer)))})},e._checkPrimaryInboundQueueEmpty=function(e){var t=this;0===this._inboundQueues[0].length?this._checkOutboundQueueEmptyAndSent(e):setTimeout(function(){return t._checkPrimaryInboundQueueEmpty(e)},250)},e._checkOutboundQueueEmptyAndSent=function(e){var t=this;this._running?setTimeout(function(){return t._checkOutboundQueueEmptyAndSent(e)},250):e()},e._outboundQueue=[],e._inboundQueues=[],e._newEventsAllowed=!1,e._killSwitch=new o.default,e._isCurrentlyFlushing=!1,e._flushQueue=[],e._running=!1,e._timeout=-1,e._urlString="?qsp=true&content-type=application%2Fbond-compact-binary&client-id=NO_AUTH&sdk-version="+u.FullVersionString,e})();t.default=a},function(e,t,n){e.exports=n(5)}])},e.exports=r()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationState=void 0,(function(e){e[e.Undefined=0]="Undefined",e[e.Created=10]="Created",e[e.Sent=20]="Sent",e[e.Duplicated=30]="Duplicated",e[e.Seen=40]="Seen",e[e.Tried=50]="Tried",e[e.Kept=60]="Kept",e[e.Rejected=70]="Rejected"})(t.AnnotationState||(t.AnnotationState={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ItemChanges=t.ItemOperation=void 0,(function(e){e[e.None=0]="None",e[e.Added=1]="Added",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"})(t.ItemOperation||(t.ItemOperation={})),(function(e){e[e.ContentChanged=0]="ContentChanged",e[e.ContentWasEmpty=1]="ContentWasEmpty"})(t.ItemChanges||(t.ItemChanges={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridConstants=t.OpenType=t.BlobRefType=void 0,(function(e){e[e.None=0]="None",e[e.HttpsGetDownloadUrl=1]="HttpsGetDownloadUrl"})(t.BlobRefType||(t.BlobRefType={})),(function(e){e[e.NewDocument=0]="NewDocument",e[e.EditDocument=1]="EditDocument",e[e.ViewOnlyDocument=2]="ViewOnlyDocument"})(t.OpenType||(t.OpenType={}));var r=(function(){function e(){}return e.lowerIndexBound=1,e.maxNumberOfRows=1048576,e.maxNumberOfColumns=16384,e.firstColumnName="A",e.lastColumnName="XFD",e})();t.GridConstants=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryClassificationAnnotation=t.Annotation=void 0;var r=n(29),i=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Core_Annotation"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.Annotation=i;var s=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return Object.defineProperty(e.prototype,"metadata",{get:function(){return this.M_},set:function(e){this.M_=e},enumerable:!1,configurable:!0}),e.getTypeName=function(){return"AugLoop_Core_BinaryClassificationAnnotation"},e.getBaseTypes=function(){return["AugLoop_Core_Annotation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.BinaryClassificationAnnotation=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignalOperation=t.MicroSyncOperation=t.DeltaUpdateOperation=t.VisibilityOperation=t.FocusOperation=t.PurgeOperation=t.DeleteOperation=t.UpdateOperation=t.UpdateAnnotationMetaDataOperation=t.MoveOperation=t.AddOperation=t.OperationWithSiblingContext=t.Operation=t.ItemChangesDelta=t.ItemDelta=void 0;var r=n(29),i=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_ItemDelta"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.ItemDelta=i;var s=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_ItemChangesDelta"},e.getBaseTypes=function(){return["AugLoop_Core_ItemDelta"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.ItemChangesDelta=s;var o=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_Operation"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.Operation=o;var u=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_OperationWithSiblingContext"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.OperationWithSiblingContext=u;var a=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_AddOperation"},e.getBaseTypes=function(){return["AugLoop_Core_OperationWithSiblingContext","AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.AddOperation=a;var f=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_MoveOperation"},e.getBaseTypes=function(){return["AugLoop_Core_OperationWithSiblingContext","AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.MoveOperation=f;var l=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_UpdateAnnotationMetaDataOperation"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.UpdateAnnotationMetaDataOperation=l;var c=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_UpdateOperation"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.UpdateOperation=c;var h=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_DeleteOperation"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.DeleteOperation=h;var p=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_PurgeOperation"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.PurgeOperation=p;var d=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_FocusOperation"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.FocusOperation=d;var v=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_VisibilityOperation"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.VisibilityOperation=v;var m=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_DeltaUpdateOperation"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.DeltaUpdateOperation=m;var g=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_MicroSyncOperation"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.MicroSyncOperation=g;var y=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Signals_SignalOperation"},e.getBaseTypes=function(){return["AugLoop_Core_Operation"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.SignalOperation=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signal=void 0;var r=n(29),i=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Signals_Signal"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.Signal=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserContextHolder=t.ContextHolder=t.DynamicContext=t.GridNeighborhoodContext=t.GridCell=t.Document=t.Session=t.TileGroup=t.Binary=t.Blob=void 0;var r=n(29),i=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_Blob"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.Blob=i;var s=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_Binary"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.Binary=s;var o=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_TileGroup"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.TileGroup=o;var u=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_Session"},e.getBaseTypes=function(){return["AugLoop_Core_TileGroup"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.Session=u;var a=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_Document"},e.getBaseTypes=function(){return["AugLoop_Core_TileGroup"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.Document=a;var f=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_GridCell"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.GridCell=f;var l=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_GridNeighborhoodContext"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.GridNeighborhoodContext=l;var c=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_DynamicContext"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.DynamicContext=c;var h=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_ContextHolder"},e.getBaseTypes=function(){return[]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.ContextHolder=h;var p=(function(){function e(t){r.SchemaObject.assign(e,this,t)}return e.getTypeName=function(){return"AugLoop_Core_UserContextHolder"},e.getBaseTypes=function(){return["AugLoop_Core_ContextHolder"]},e.H_={T_:e.getTypeName(),B_:e.getBaseTypes()},e})();t.UserContextHolder=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQuestionList=t.getPageInfo=t.renderSurvey=t.renderCVSurvey=void 0;var r=n(89),i=n(49),s=!1;function o(e){return null==e}function u(e,t,n,r,f,h){var p=null==h?void 0:h.data;if(!o(p)){if("string"==typeof p&&p.includes("ResponsePageHeight")){var d=p.split(":"),v=document.getElementById(i.IFRAME_ID);if(v&&v.style)return void(v.style.height=d[2]+"px");r({EventId:i.IFRAME_ID,CustomProperties:{Message:"IFrame element undefined or null"}})}if("ResponsePageLoaded"===p.Type){t({responseEventType:"ResponsePageLoaded",dateTime:new Date});var m=document.getElementById(f);return null==m||m.blur(),void l(s,f,e,n,t,r)}if("FormResponseCanceled"===p.Type){var g={dateTime:new Date,responseEventType:"FormResponseCanceled"};return r({EventId:i.GATECRASH_ON_SURVEY_CANCEL,CustomProperties:{Message:"gatecrash: survey cancel triggered: "+g.responseEventType}}),void a(f,e,t,n,r,g)}if("FormResponseSubmitted"===p.Type||"FormPartialResponseSubmitted"===p.Type){r({EventId:i.GATECRASH_ON_SURVEY_DATA_SUBMIT,CustomProperties:{Message:"gatecrash: onSubmitCallback has been triggered for type:  + "+p.Type}});try{n({pageInfo:c(p.Message),responseType:p.Type,formTitle:p.FormTitle})}catch(s){r({EventId:i.GATECRASH_ON_SURVEY_DATA_SUBMIT,CustomProperties:{Message:"gatecrash: Error: "+s}}),window.removeEventListener("message",u.bind(null,e,t,n,r,f))}finally{"FormResponseSubmitted"===p.Type&&l(s=!1,f,e,n,t,r)}}}}function a(e,t,n,r,f,l){e=null!=e?e:"";var c=document.getElementById(e);if((function(e,t,n){var r=document.getElementById(i.CLOSE_BUTTON_ID);r&&!o(e)&&(r.removeEventListener("mouseenter",function(){r.style.backgroundColor="lightgray"}),r.removeEventListener("mouseleave",function(){r.style.background="none"}),r.removeEventListener("click",function(){a(e,t)}),n())})(e,t,function(){n&&r&&f&&window.removeEventListener("message",u.bind(null,t,n,r,f,e))}),null==c||c.remove(),s=!1,t)if(l)t(l);else{var h={dateTime:new Date,responseEventType:"FormClosed"};t(h)}}function f(e,t,n,s){var o=!1;try{new r.SurveyEmbed(null==t?void 0:t.customerVoiceFormId,i.DEFAULT_BASE_URL).renderInline(e,t,s),o=!0}catch(e){var u=e.message;throw n({EventId:i.GATECRASH_RENDER_ERROR,CustomProperties:{ErrorMessage:null!=u?u:"gatecrash: Error thrown and could not be cast as type Error."}}),e}return o}function l(e,t,n,r,s,o){if(!e){var u={dateTime:new Date,responseEventType:"FormAutoDismissed"},f=setTimeout(function(){a(t,n,s,r,o,u)},2e4),l=document.getElementById(i.IFRAME_ID);l&&l.addEventListener("mouseover",function(){clearTimeout(f),e=!0},{once:!0})}}function c(e){if(o(e))throw new Error("Error: Submit messages are null/undefined or length of 0");for(var t=[],n=0;n<e.length;n++){var r=h(e[n].questionAnswers),i={pageType:e[n].PageType,questionAnswers:r};t.push(i)}return t}function h(e){if(o(e))throw new Error("Error: current message is null/undefined or length of 0");for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!o(r.subtitle)){var i={questionType:r.subtitle,questionId:r.questionId,questionValue:r.title,answerValue:r.answer};t.push(i)}}return t}t.renderCVSurvey=function(e,t,n,r,s,l,c){var h=document.getElementById(e);if(h){!(function(e,t,n,r,i){window.addEventListener("message",u.bind(null,n,r,t,i,e))})(e,t,n,r,s);try{f(e,l,s,c),(function(e,t,n,r,s,u){if(!o(e)&&!o(t)){var f=document.createElement("div"),l=document.createElement("button");l.id=i.CLOSE_BUTTON_ID,f.id=i.SURVEY_DIV_ID,l.innerHTML="X",f.appendChild(l),e.insertBefore(f,e.childNodes[0]),e.style.minWidth="590px",e.style.padding="0px",e.style.paddingRight="10px",e.style.paddingLeft="10px",l.setAttribute("style","float: right; background: none; border: 0px;\n    padding: 3px; margin-top: 5px; font-size: large; font-weigth: bolder"),(function(e,t,n,r,i,s){e.addEventListener("mouseenter",function(){e.style.backgroundColor="lightgray"}),e.addEventListener("mouseleave",function(){e.style.background="none"}),e.addEventListener("click",function(){a(s,t,n,r,i)})})(l,n,r,s,u,t)}})(h,e,n,r,t,s)}catch(e){var p=e.message;s({EventId:i.GATECRASH_RENDER_ERROR,CustomProperties:{ErrorMessage:null!=p?p:"gatecrash: Error thrown and could not be cast as type Error."}})}}else s({EventId:i.GATECRASH_RENDER_ERROR,CustomProperties:{Message:"Parent element with id "+e+" not found."}})},t.renderSurvey=f,t.getPageInfo=c,t.getQuestionList=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SurveyEmbed=void 0;var r=n(49),i=(function(){function e(e,t){if(this._formId=e,!this._formId)throw new Error("form_id should be provided.");this._baseUrl=t||r.DEFAULT_BASE_URL,this._compact="false"}return e.prototype.renderInline=function(e,t,n){if(!e)throw new Error("parent_element_id should be provided");var i=document.getElementById(e);if(!i)throw new Error("Parent element with id '"+e+"' not found.");var s=document.createElement("iframe");s.src=this.generateUrl(t,n),s.id=r.IFRAME_ID,s.width="100%",s.height="100%",s.style.border="none",i.innerHTML="",i.appendChild(s)},e.prototype.generateUrl=function(e,t){if(null==e)throw new Error("user_context is requred");var n=this._baseUrl+"Pages/ResponsePage.aspx?";n+=this._getQueryStringParameter("id",this._formId),n+="&"+this._getQueryStringParameter("embed","true"),this._compact&&(n+="&"+this._getQueryStringParameter("compact",this._compact));var r=JSON.stringify(e);if(r&&(n+="&"+this._getQueryStringParameter("ctx",r)),!e||!Object.prototype.hasOwnProperty.call(e,"locale"))throw new Error("locale should be provided");return(n+="&lang="+e.locale)+"&datawithevent=true&showcancel=true&embed=true&oembedocv=true&themecolor="+(t&&t.appPrimaryColor?t.appPrimaryColor:"")+"&autonavigate=true&disableresponsive=true&hostappdomain="+window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+"/"},e.prototype._getQueryStringParameter=function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)},e})();t.SurveyEmbed=i},function(e,t,n){"use strict";n.r(t),n.d(t,"getEngineStartPromise",function(){return ze}),n.d(t,"resetEngine",function(){return $e}),n.d(t,"setEngineStartPromise",function(){return Ue}),n.d(t,"start",function(){return Xe}),n.d(t,"startInternal",function(){return We}),n.d(t,"stop",function(){return Ve}),n.d(t,"initialize",function(){return Pt}),n.d(t,"showSurvey",function(){return Ht}),n.d(t,"showCustomSurvey",function(){return Bt}),n.d(t,"reset",function(){return jt}),n.d(t,"getSettingIdMap",function(){return Ft});var r=n(26),i=n(1),s=n(8),o=n(9),u=n(6),a=n(11),f=n(12),l=n(7),c=n(30),h=n(2),p=n(14),d="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==d&&d,v="URLSearchParams"in d,m="Symbol"in d&&"iterator"in Symbol,g="FileReader"in d&&"Blob"in d&&(function(){try{return new Blob,!0}catch(e){return!1}})(),y="FormData"in d,b="ArrayBuffer"in d;if(b)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],E=ArrayBuffer.isView||function(e){return e&&w.indexOf(Object.prototype.toString.call(e))>-1};function S(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function x(e){return"string"!=typeof e&&(e=String(e)),e}function T(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return m&&(t[Symbol.iterator]=function(){return t}),t}function N(e){this.map={},e instanceof N?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function C(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function k(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function L(e){var t=new FileReader,n=k(t);return t.readAsArrayBuffer(e),n}function A(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function O(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:g&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:y&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:v&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():b&&g&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=A(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):b&&(ArrayBuffer.prototype.isPrototypeOf(e)||E(e))?this._bodyArrayBuffer=A(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):v&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},g&&(this.blob=function(){var e=C(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){return C(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(L)}),this.text=function(){var e,t,n,r=C(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=k(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve((function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")})(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},y&&(this.formData=function(){return this.text().then(D)}),this.json=function(){return this.text().then(JSON.parse)},this}N.prototype.append=function(e,t){e=S(e),t=x(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},N.prototype.delete=function(e){delete this.map[S(e)]},N.prototype.get=function(e){return e=S(e),this.has(e)?this.map[e]:null},N.prototype.has=function(e){return this.map.hasOwnProperty(S(e))},N.prototype.set=function(e,t){this.map[S(e)]=x(t)},N.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},N.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),T(e)},N.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),T(e)},N.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),T(e)},m&&(N.prototype[Symbol.iterator]=N.prototype.entries);var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new N(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new N(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),M.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function D(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function P(e,t){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new N(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},O.call(_.prototype),O.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new N(this.headers),url:this.url})},P.error=function(){var e=new P(null,{status:0,statusText:""});return e.type="error",e};var H=[301,302,303,307,308];P.redirect=function(e,t){if(-1===H.indexOf(t))throw new RangeError("Invalid status code");return new P(null,{status:t,headers:{location:e}})};var B=d.DOMException;try{new B}catch(e){(B=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),B.prototype.constructor=B}function j(e,t){return new Promise(function(n,r){var i=new _(e,t);if(i.signal&&i.signal.aborted)return r(new B("Aborted","AbortError"));var s=new XMLHttpRequest;function o(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new N,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout(function(){n(new P(i,r))},0)},s.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){r(new B("Aborted","AbortError"))},0)},s.open(i.method,(function(e){try{return""===e&&d.location.href?d.location.href:e}catch(t){return e}})(i.url),!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&(g?s.responseType="blob":b&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof N?i.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(t.headers).forEach(function(e){s.setRequestHeader(e,x(t.headers[e]))}),i.signal&&(i.signal.addEventListener("abort",o),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",o)}),s.send(void 0===i._bodyInit?null:i._bodyInit)})}j.polyfill=!0,d.fetch||(d.fetch=j,d.Headers=N,d.Request=_,d.Response=P);var F=n(4),I=F.l,q=(function(){function e(e){this.sessionId=e}return e.prototype.sendGetRequest=function(e,t,n,r){return Object(u.b)(this,void 0,void 0,function(){var i;return Object(u.d)(this,function(s){return i={method:"GET",headers:this.createHeaders(t)},[2,n?this.timeoutFetch(e,i,null!=r?r:5e3):fetch(e,i)]})})},e.prototype.sendPostRequest=function(e,t,n,r,i){return Object(u.b)(this,void 0,void 0,function(){var s;return Object(u.d)(this,function(o){return s={method:"POST",headers:this.createHeaders(n),body:t},[2,r?this.timeoutFetch(e,s,null!=i?i:5e3):fetch(e,s)]})})},e.prototype.createHeaders=function(e){var t="undefined"!=typeof Headers&&new Headers;return t&&(I(e)||t.append("Authorization","Bearer "+e),t.append("X-CorrelationId",F.i()),this.sessionId&&t.append("X-UserSessionId",this.sessionId)),t},e.prototype.timeoutFetch=function(e,t,n){return void 0===t&&(t={}),new Promise(function(r,i){fetch(e,t).then(r,i),setTimeout(function(){return i(new Error("Service request timed out"))},n)})},e})();function R(e,t){void 0===t&&(t=!0);var n="";for(var r in e||[])if(e.hasOwnProperty(r)){var i=e[r];null!=i&&"object"!=typeof i&&(n+=(n?"&":"")+r+"="+(t?encodeURIComponent(i):i))}return n}var U=n(33),z=n(15),W=n(51);function X(e){return new Promise(function(t){setTimeout(t,e)})}function V(e,t){var n=e&&e[t];return n||Object.getOwnPropertyDescriptor(e,t)?n:void 0}function $(e,t){if(!e)return Promise.resolve(null);var n=V(e,t);return n?Promise.resolve(n):new Promise(function(n,r){var i;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){n(i=e)}})})}function J(e,t,n,r){return void 0===r&&(r=100),Object(u.b)(this,void 0,void 0,function(){var i;return Object(u.d)(this,function(s){switch(s.label){case 0:return(i=V(e,t))||0===n?[2,i]:[4,X(r)];case 1:return s.sent(),[2,J(e,t,n-1,r)]}})})}function K(e,t){return new Promise(function(n,r){e.activateAnnotation(t,{callback:function(e){try{var r=(e&&e.items?e.items:[]).filter(function(e){return t===W.SchemaObject.getTypeNameFor(e.body)});n(r&&r[0]&&r[0].body)}catch(e){n({error:e})}}})})}function Q(e){return void 0===e&&(e=100),Object(u.b)(this,void 0,void 0,function(){var t,n,r;return Object(u.d)(this,function(i){switch(i.label){case 0:return(t=V(window,"augLoop"))?[3,7]:(n=Object(f.a)("TulipsAugLoopPackageDelayLoad",-1))>0?[4,X(n)]:[3,2];case 1:return i.sent(),t=V(window,"augLoop"),[3,7];case 2:return r=Object(f.a)("TulipsAugLoopLoadRetryTimes",5),[4,J(window,"augLoop",r,e)];case 3:return(t=i.sent())?[3,5]:[4,$(window,"augLoop")];case 4:t=i.sent(),i.label=5;case 5:return e>0?[4,X(e)]:[3,7];case 6:i.sent(),i.label=7;case 7:return[2,t]}})})}function G(e,t,n){return void 0===n&&(n=100),Object(u.b)(this,void 0,void 0,function(){var r,i,s;return Object(u.d)(this,function(o){switch(o.label){case 0:return(i=t)?[4,t()]:[3,2];case 1:i=o.sent(),o.label=2;case 2:return(r=i)?[3,5]:[4,Q(n)];case 3:if(!o.sent())throw new Error("Unable to get AL runtime");if(!(s=window.augLoop.ALFactoryGlobal.getAugLoopRuntimeManager().getSession()))throw new Error("Unable to get AL session promise");return[4,s];case 4:if(!(r=o.sent()))throw new Error("Unable to get AL session");o.label=5;case 5:return[2,K(r,e)]}})})}var Y,Z,ee=function(){},te=(function(){function e(e,t,n,r,i,s,o,u,a,f,l,c,h,p){this.locale="en-us",this.country="US",this.locale=r,this.country=i,this.authTokenCallback=o,this.augLoopCallback=u,this.app=e,this.platform=t,this.version=n,this.sessionId=s,this.campaignFlights=a,this.campaignParameters=f,this.ageGroup=l,this.authenticationType=c;this.tmsBaseUrlPrefix=h&&-1!==["dogfood","edog","int","microsoft"].indexOf(h.toLowerCase())?"https://messaging.officeppe.com/lifecycle/":"https://messaging.office.com/lifecycle/",this.tmsgCache=this.tmsgCache||p||new U.a(["MessageMetadata","UserGovernance","CampaignContent","DynamicSettings","LogLevelSettings","UserFacts"])}return e.prototype.getContent=function(e){return Object(u.b)(this,void 0,void 0,function(){return Object(u.d)(this,function(t){switch(t.label){case 0:return this.tmsgCache.isItemExpired(e)?[4,this.refreshItemsInCacheFromTmsService([e])]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,this.retrieveCacheItemAndCreateContentResponse(e)]}})})},e.prototype.getMultipleContents=function(e){return Object(u.b)(this,void 0,void 0,function(){var t,n,r,i,s,o;return Object(u.d)(this,function(u){switch(u.label){case 0:return[4,this.refreshItemsInCacheFromTmsService(e)];case 1:for(u.sent(),t=new Array,n=new Array,r=0,i=e;r<i.length;r++)s=i[r],o=this.createCachedContentResponse(s),t.push(o);return this.refreshItemsInCacheFromTmsService(n),[2,t]}})})},e.prototype.getUserFactsContent=function(e){return Object(u.b)(this,void 0,void 0,function(){return Object(u.d)(this,function(t){switch(t.label){case 0:return[4,this.refreshItemsInCacheFromTulipsService(e)];case 1:return t.sent(),[2,this.retrieveCacheItemAndCreateContentResponse(e)]}})})},e.prototype.sendBeaconRequestToService=function(e,t,n,r,i,s,o,a){return Object(u.b)(this,void 0,void 0,function(){var c,p,d,v,m,g,y,b,w;return Object(u.d)(this,function(E){switch(E.label){case 0:return this.sessionId=o,this.authTokenCallback=a,c=Object(f.a)("TmsAppId",l.d.TMSAppID),[4,this.getAuthToken(c)];case 1:return p=E.sent(),d=void 0,p?[3,4]:(v=this.authTokenCallback.getUserPuid)?[4,this.authTokenCallback.getUserPuid()]:[3,3];case 2:v=E.sent(),E.label=3;case 3:d=v,E.label=4;case 4:m=+new Date,E.label=5;case 5:return E.trys.push([5,7,,8]),g={app:e,country:s,locale:i,platform:n,puid:d,version:r},y=JSON.stringify({actionName:t.actionName,actionUrl:t.actionUrl}),[4,this.sendRequest(g,p,"TmsActionUrl",this.tmsBaseUrlPrefix+"SetCampaignAction?",y,"POST")];case 6:return(b=E.sent())&&200===b.status?[2,!0]:(h.b().logEvent(h.a.WebSurfaces.Common.Error.VALUE,2,this.createTelemetryData(m,b,"Beacon"+t.actionName)),[2,!1]);case 7:return w=E.sent(),h.b().logEvent(h.a.WebSurfaces.Common.Error.VALUE,2,Object(u.a)({ErrorMessage:"Error fetching from TMS SetCampaignAction endpoint"+(w&&w.message?": "+w.message:"")},this.createTelemetryData(m,null,"Beacon"+t.actionName))),[2,!1];case 8:return[2]}})})},e.prototype.getCachedContent=function(e){return this.tmsgCache.getItemContent(e)},e.prototype.getAugLoopUserFactsContent=function(e){return Object(u.b)(this,void 0,void 0,function(){return Object(u.d)(this,function(t){switch(t.label){case 0:return this.tmsgCache.isItemExpired("UserFacts")?[4,this.refreshUserFactsInCacheFromAugLoop()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2,this.retrieveCacheItemAndCreateContentResponse(e)]}})})},e.prototype.refreshUserFactsInCacheFromAugLoop=function(){return Object(u.b)(this,void 0,void 0,function(){var e,t,n,r,i,s,o,a;return Object(u.d)(this,function(l){switch(l.label){case 0:if(!this.tmsgCache.isItemExpired("UserFacts"))return e=this.tmsgCache.getItemContent("UserFacts"),h.b().logEvent(h.a.UserFacts.AugLoop.Requests.VALUE,3,{Count:e?e.length:-1,Type:"AugLoopUserFactsCached",Flights:this.campaignFlights}),[2,e];t=+new Date,l.label=1;case 1:return l.trys.push([1,3,,4]),r=Object(f.a)("TulipsAugLoopAnnotationName","AugLoop_User_UserLifecycleFactsAnnotation"),i=this.augLoopCallback.getRuntimeSession,[4,G(r,i)];case 2:return(s=l.sent())&&s.userFacts?(n=this.addClientIngestionTimeAndNormalizeKeysInArray(s.userFacts),this.tmsgCache.setContentItem("UserFacts",n,864e5),h.b().logEvent(h.a.UserFacts.AugLoop.Requests.VALUE,3,Object(u.a)({Count:n?n.length:-1},this.createTelemetryData(t,null,"AugLoopUserFacts")))):(o=s&&s.error,h.b().logEvent(h.a.UserFacts.AugLoop.Error.VALUE,2,Object(u.a)({ErrorMessage:"Error getting augloop facts "+(o&&o.toString())},this.createTelemetryData(t,null,"AugLoopUserFacts")))),[3,4];case 3:return a=l.sent(),h.b().logEvent(h.a.UserFacts.AugLoop.Error.VALUE,2,Object(u.a)({ErrorMessage:"Error getting facts "+(a&&a.message)},this.createTelemetryData(t,null,"AugLoopUserFacts"))),[3,4];case 4:return[2,n]}})})},e.prototype.createTelemetryData=function(e,t,n){var r=t||{},i=r.headers,s=r.status,o=r.statusText,u=i&&i.get("X-UserSessionId"),a=i&&i.get("X-CorrelationId");return{Type:n,TimeMilliseconds:+new Date-e,SessionId:u||this.sessionId,CorrelationId:a||void 0,HttpStatusCode:s||void 0,HttpStatusText:o||void 0,Flights:this.campaignFlights}},e.prototype.sendRequest=function(e,t,n,r,i,s){this.tmsgTransport=this.tmsgTransport||new q(this.sessionId);var o=R(e),u=Object(f.a)(n,r);return"POST"===s?this.tmsgTransport.sendPostRequest(u+o,i,t):this.tmsgTransport.sendGetRequest(u+o,t)},e.prototype.retrieveCacheItemAndCreateContentResponse=function(e){var t=this.createCachedContentResponse(e);return this.tmsgCache.isItemExpired(e)&&("UserFacts"===e?this.refreshItemsInCacheFromTulipsService(e):this.refreshItemsInCacheFromTmsService([e])),t},e.prototype.createCachedContentResponse=function(e){var t=new ee;return t.content=this.tmsgCache.getItemContent(e),t.contentType=e,t},e.prototype.getAuthToken=function(e){return Object(u.b)(this,void 0,void 0,function(){var t,n,r,i,s,o=this;return Object(u.d)(this,function(u){switch(u.label){case 0:if(!this.authTokenCallback||!this.authTokenCallback.getAuthToken)return[2,null];t=+new Date,n=function(){return+new Date-t},r=function(t){return void 0===t&&(t=void 0),{ErrorMessage:t,SessionId:o.sessionId,TimeMilliseconds:n(),Type:e}},u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.authTokenCallback.getAuthToken(e)];case 2:return i=u.sent(),h.b().logEvent(h.a.WebSurfaces.Common.Info.VALUE,3,r()),[2,i];case 3:return s=u.sent(),h.b().logEvent(h.a.WebSurfaces.Common.Error.VALUE,2,r("Error getting token "+(s&&s.message?": "+s.message:""))),[3,4];case 4:return[2,null]}})})},e.prototype.refreshItemsInCacheFromTmsService=function(e){return Object(u.b)(this,void 0,void 0,function(){var t,n,r,i,s,o,a,c,d,v,m,g,y,b,w,E;return Object(u.d)(this,function(S){switch(S.label){case 0:if(0===e.length)return[2];for(t=new Array,n=0,r=e;n<r.length;n++)i=r[n],this.tmsgCache.isItemExpired(i)&&t.push(i);return 0===t.length?[2]:(-1===e.indexOf("DynamicSettings")&&e.push("DynamicSettings"),s=Object(f.a)("TmsAppId",l.d.TMSAppID),[4,this.getAuthToken(s)]);case 1:return o=S.sent(),a=void 0,o?[3,4]:(c=this.authTokenCallback.getUserPuid)?[4,this.authTokenCallback.getUserPuid()]:[3,3];case 2:c=S.sent(),S.label=3;case 3:a=c,S.label=4;case 4:d=+new Date,S.label=5;case 5:return S.trys.push([5,10,,11]),v=document&&(document.documentElement||document.getElementsByTagName("body")[0]),m={pageWidth:window.innerWidth||v.clientWidth,pageHeight:window.innerHeight||v.clientHeight,screenWidth:screen?screen.width:void 0,screenHeight:screen?screen.height:void 0,colorDepth:screen?screen.colorDepth:void 0},g=z.a.safeReadObject(p.FileType.DebugOverrides,{}),y=g.replaceTmsQueryParams||Object(u.a)(Object(u.a)({country:this.country,locale:this.locale,app:this.app,platform:this.platform,version:this.version,campaignParams:R(m)+"&more=true&"+(this.campaignParameters||""),contentType:e.join(";"),puid:a,OFC_FLIGHTS:this.campaignFlights},g.addTmsQueryParams||{}),{ageGroup:this.ageGroup,authenticationType:this.authenticationType}),[4,this.sendRequest(y,o,"TmsServiceUrl",this.tmsBaseUrlPrefix+"CampaignMetadataAggregator?")];case 6:return 200!==(b=S.sent()).status?[3,8]:[4,b.json()];case 7:return w=S.sent(),-1!==e.indexOf("MessageMetadata")&&void 0!==w.MessageMetadata&&this.tmsgCache.setContentItem("MessageMetadata",w.MessageMetadata,Object(f.a)("TmsMessageMetadataExpiry",144e5)),-1!==e.indexOf("UserGovernance")&&void 0!==w.UserGovernanceRules&&this.tmsgCache.setContentItem("UserGovernance",w.UserGovernanceRules,Object(f.a)("TmsUserGovernanceRulesExpiry",144e5)),-1!==e.indexOf("CampaignContent")&&void 0!==w.CampaignContent&&this.tmsgCache.setContentItem("CampaignContent",w.CampaignContent,Object(f.a)("TmsCampaignContentExpiry",144e5)),void 0!==w.DynamicSettings&&this.tmsgCache.setContentItem("DynamicSettings",w.DynamicSettings,Object(f.a)("TmsDynamicSettingsExpiry",144e5)),void 0!==w.LogLevelSettings&&this.tmsgCache.setContentItem("LogLevelSettings",w.LogLevelSettings,Object(f.a)("TmsLogLevelSettingsExpiry",144e5)),h.b().logEvent(h.a.WebSurfaces.Messaging.Requests.VALUE,3,this.createTelemetryData(d,b,e.join(";"))),[3,9];case 8:h.b().logEvent(h.a.WebSurfaces.Common.Error.VALUE,2,this.createTelemetryData(d,b,e.join(";"))),S.label=9;case 9:return[3,11];case 10:return E=S.sent(),h.b().logEvent(h.a.WebSurfaces.Common.Error.VALUE,2,Object(u.a)({ErrorMessage:"Error fetching from TMS"+(E&&E.message?": "+E.message:"")},this.createTelemetryData(d,null,e.join(";")))),[3,11];case 11:return[2]}})})},e.prototype.refreshItemsInCacheFromTulipsService=function(e){return Object(u.b)(this,void 0,void 0,function(){var t,n,r,i,s,o,a;return Object(u.d)(this,function(c){switch(c.label){case 0:return this.tmsgCache.isItemExpired(e)?(t=Object(f.a)("TulipsAppId",l.d.TULIPSAppID),[4,this.getAuthToken(t)]):[2];case 1:if(!(n=c.sent()))return[2];r=+new Date,c.label=2;case 2:return c.trys.push([2,7,,8]),[4,this.sendRequest({},n,"TulipsServiceUrl","https://substrate.office.com/OfficePersonalizationUserLifecycle/api/facts")];case 3:return 200!==(i=c.sent()).status&&204!==i.status?[3,5]:[4,i.json()];case 4:return s=c.sent(),-1!==e.indexOf("UserFacts")&&void 0!==s&&(o=this.addClientIngestionTimeAndNormalizeKeys(s),this.tmsgCache.setContentItem("UserFacts",o,864e5)),h.b().logEvent(h.a.UserFacts.Messaging.Requests.VALUE,3,this.createTelemetryData(r,i,e)),[3,6];case 5:h.b().logEvent(h.a.UserFacts.Common.Error.VALUE,2,this.createTelemetryData(r,i,e)),c.label=6;case 6:return[3,8];case 7:return a=c.sent(),h.b().logEvent(h.a.UserFacts.Common.Error.VALUE,2,Object(u.a)({ErrorMessage:"Error fetching from TULIPS"+(a&&a.message?": "+a.message:"")},this.createTelemetryData(r,null,e))),[3,8];case 8:return[2]}})})},e.prototype.addClientIngestionTimeAndNormalizeKeys=function(e){var t=this,n=new Date(Date.now()).toISOString();return e.map(function(e){var r=t.normalizeKeys(e);return r.clientIngestionDateTime=n,r})},e.prototype.addClientIngestionTimeAndNormalizeKeysInArray=function(e){var t=this,n=new Date(Date.now()).toISOString();return e.map(function(e){var r=t.normalizeKeys(e);return r.clientIngestionDateTime=n,r})},e.prototype.normalizeKeys=function(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t[i.charAt(0).toLowerCase()+i.substring(1)]=e[i]}return t},e})(),ne=(function(){function e(){var e;this.configuration=i.get();var t=this.configuration&&this.configuration.getFloodgateInitOptions(),n=this.configuration&&this.configuration.getCommonInitOptions(),r=t&&t.authTokenCallback;if(r&&(r.getAuthToken||r.getUserPuid)||this.isAugLoopEnabled()){var s=this.configuration.getCommonInitOptions();this.tmsgClient=new te(s.appId.toString(),"Web",s.build,s.originalLocale,this.extractCountryFromLocale(s.originalLocale),this.configuration.getSdkSessionId(),t.authTokenCallback,t.augLoopCallback,t.campaignFlights,t.campaignQueryParameters,n.ageGroup,n.authenticationType,null===(e=n.telemetryGroup)||void 0===e?void 0:e.audience)}}return e.prototype.getCampaignDefinitions=function(){var e,t=(e=z.a.safeReadObject(p.FileType.DebugOverrides,{}))&&e.tmsResponse&&e.tmsResponse.CampaignContent&&{contentType:"CampaignContent",content:e.tmsResponse.CampaignContent};return t&&t.content?Promise.resolve(t.content):this.tmsgClient?this.tmsgClient.getContent("CampaignContent").then(function(e){return e.content}):Promise.resolve(null)},e.prototype.getCachedCampaignDefinitions=function(){var e;return null===(e=this.tmsgClient)||void 0===e?void 0:e.getCachedContent("CampaignContent")},e.prototype.getUserGovernanceRules=function(){return this.tmsgClient?this.tmsgClient.getContent("UserGovernance").then(function(e){return e.content}):Promise.resolve(null)},e.prototype.getMessageMetadata=function(){return this.tmsgClient?this.tmsgClient.getContent("MessageMetadata").then(function(e){return e.content}):Promise.resolve(null)},e.prototype.getUserFacts=function(){var e,t=this,n=(e=z.a.safeReadObject(p.FileType.DebugOverrides,{}))&&e.userFactsResponse&&{contentType:"UserFacts",content:e.userFactsResponse};if(n&&n.content)return Promise.resolve(n.content);if(!this.tmsgClient)return Promise.resolve(null);if(this.isAugLoopEnabled()){var r=Object(f.a)("TulipsLoadTimeout",1e3);return Object(F.b)(r,this.getAugLoopUserFacts()).then(function(e){return e}).catch(function(){return t.getSubstrateUserFacts()})}return this.getSubstrateUserFacts()},e.prototype.getCachedUserFacts=function(){var e;return null===(e=this.tmsgClient)||void 0===e?void 0:e.getCachedContent("UserFacts")},e.prototype.setCampaignAction=function(e){if(this.tmsgClient){var t=this.configuration.getCommonInitOptions(),n=this.configuration.getFloodgateInitOptions();return this.tmsgClient.sendBeaconRequestToService(t.appId.toString(),e,"Web",t.build,t.originalLocale,this.extractCountryFromLocale(t.originalLocale),this.configuration.getSdkSessionId(),n.authTokenCallback)}},e.prototype.extractCountryFromLocale=function(e){if(e){var t=e.split("-");return 2===t.length?t[1]:void 0}},e.prototype.getSubstrateUserFacts=function(){return this.tmsgClient?this.tmsgClient.getUserFactsContent("UserFacts").then(function(e){return e.content}):Promise.resolve(null)},e.prototype.getAugLoopUserFacts=function(){return this.tmsgClient?this.tmsgClient.getAugLoopUserFactsContent("UserFacts").then(function(e){return e.content}):Promise.resolve(null)},e.prototype.isAugLoopEnabled=function(){var e,t,n;return null===(n=null===(t=null===(e=this.configuration)||void 0===e?void 0:e.getFloodgateInitOptions())||void 0===t?void 0:t.augLoopCallback)||void 0===n?void 0:n.isEnabled},e})();function re(){return Y||(Y=new ne),Y}function ie(){if(!Z){var e=Object(f.a)("WebSurfacesLink",l.a.WebSurfacesLink);Z=c.a(e,null)}}var se,oe=(function(){function e(){}return e.prototype.makeSurveyLauncher=function(e){return this.AcceptsSurvey(e)?new ue(e):null},e.prototype.AcceptsSurvey=function(t){return!Object(F.l)(t)&&t.getType()===a.ISurvey.Type.GenericMessagingSurface&&t.getLauncherType().toLocaleLowerCase()===e.LAUNCHER_TYPE},e.LAUNCHER_TYPE="coachingux",e})(),ue=(function(){function e(e){var t;this.survey=e,!Z&&e&&e.getSurveyInfo&&(null===(t=e.getSurveyInfo())||void 0===t?void 0:t.getBusinessLevel())===a.ISurveyInfo.BusinessLevel.Critical&&setTimeout(ie,1e3)}return e.prototype.launch=function(e){var t=this,n=this.survey&&this.survey.getSurveyInfo(),r=n&&n.getMetadata(),o=r&&r.getContentMetadata();if(o){var a=new Date,l=function(){var e=s.b();return e&&e.OfficeWebSurfaces},c=function(r){var i=l();r&&i.Initialize(r),i.RemoveSurface();var s=Object(u.a)(Object(u.a)({},o),{surfaceContext:{surveyForm:t.survey,surveyParams:e}});i.RenderSurface(s,null,n.getBackEndId())},p=function(e){h.b().logEvent(h.a.WebSurfaces.Common.Error.VALUE,1,{ErrorMessage:"Error loading websurfaces"+(e&&e.message?": "+e.message:""),TimeMilliseconds:Date.now()-+a})};try{if(l())return void c();ie(),Z.then(function(){var e=i.get().getCommonInitOptions(),t=i.get().getFloodgateInitOptions(),r=t&&t.onSurveyActivatedCallback,s=Object(u.a)(Object(u.a)(Object(u.a)({},e),t),{beaconCallback:function(e){if(e)return re().setCampaignAction(e)},surfaceInitTime:a,surfaceId:n.getBackEndId(),logSessionId:i.get().getSdkSessionId(),logSettings:Object(f.a)("LogLevelSettings",void 0),renderer:r,renderCallback:r&&r.onTeachingCampaignRender});c(s)}).catch(function(e){p(e)})}catch(e){p(e)}}},e})(),ae=(function(){function e(e){if(this.showPrompt=!0,this.showEmailRequest=!1,!e)throw Error("survey must not be null");if(this.survey=e,e.getType()===a.ISurvey.Type.Intercept){this.isIntercept=!0;var t=e.getComponent("Intercept");if(!t)throw Error("intercept component must not be null");this.intercept=t}else{this.isIntercept=!1;var n=e.getComponent("Prompt"),r=e.getComponent("Comment"),i=e.getComponent("Rating"),s=e.getComponent("CVSurvey");if(!n)throw Error("prompt component must not be null");if(this.prompt=n,this.showEmailRequest=e.getSurveyInfo().isAdditionalDataRequested(0),!r)throw Error("comment component must not be null");if(this.comment=r,!i)throw Error("rating component must not be null");if(this.rating=i,s&&(this.cvSurvey=s,this.getLauncherType()===l.e&&!this.getCVSurveyFormId()))throw Error("CvSurveyId should not be null")}}return e.prototype.getLauncherType=function(){return this.isIntercept?void 0:this.survey.getLauncherType()},e.prototype.getCVSurveyFormId=function(){return this.isIntercept?void 0:this.cvSurvey.getFormId()},e.prototype.getPreGeneratedClientFeedbackId=function(){return this.survey.getPreGeneratedClientFeedbackId()},e.prototype.getPromptQuestion=function(){return this.isIntercept?void 0:this.prompt.getQuestion()},e.prototype.getTitle=function(){return this.isIntercept?void 0:this.prompt.getTitle()},e.prototype.getPromptYesButtonText=function(){return this.isIntercept?void 0:this.prompt.getYesButtonText()},e.prototype.getPromptNoButtonText=function(){return this.isIntercept?void 0:this.prompt.getNoButtonText()},e.prototype.getRatingValuesAscending=function(){return this.isIntercept?void 0:this.rating.getRatingValuesAscending()},e.prototype.getRatingQuestion=function(){return this.isIntercept?void 0:this.rating.getQuestion()},e.prototype.getCommentQuestion=function(){return this.isIntercept?void 0:this.comment.getQuestion()},e.prototype.getInterceptTitle=function(){return this.isIntercept?this.intercept.getTitle():void 0},e.prototype.getInterceptQuestion=function(){return this.isIntercept?this.intercept.getQuestion():void 0},e.prototype.getInterceptUrl=function(){return this.isIntercept?this.intercept.getUrl():void 0},e.prototype.setValues=function(e,t){this.isIntercept||(this.rating.setSelectedRatingIndex(e),this.comment.setSubmittedText(t))},e.prototype.getJsonElements=function(){return this.survey.getJsonElements()},e.prototype.getSurveyType=function(){return this.survey.getType()},e.prototype.getCampaignId=function(){return this.survey.getSurveyInfo().getBackEndId()},e.prototype.getId=function(){return this.survey.getSurveyInfo().getId()},e.prototype.getGoverenedChannelType=function(){return this.survey.getSurveyInfo().getGovernedChannelType()},e})(),fe=o.Utils.isNOU,le=(function(){function e(){}return e.prototype.makeSurveyLauncher=function(e){return this.AcceptsSurvey(e)?new ce(e):null},e.prototype.AcceptsSurvey=function(e){return!fe(e)&&e.getType()!==o.Api.ISurvey.Type.GenericMessagingSurface},e.LAUNCHER_TYPE=o.Api.ISurvey.LAUNCHER_TYPE_DEFAULT,e})(),ce=(function(){function e(e){this.survey=e}return e.prototype.launch=function(){s.a().OfficeBrowserFeedback.floodgate.showSurvey(new ae(this.survey))},e})(),he=o.Utils.isNOU,pe=(function(){function e(e,t){this.rudeSurveyLauncherFactory=e,this.coachingUXLauncherFactory=t}return e.make=function(){return new e(new le,new oe)},e.prototype.makeSurveyLauncher=function(e){if(he(e))return null;switch(e.getLauncherType().toLocaleLowerCase()){case oe.LAUNCHER_TYPE:return this.makeGenericMessagingSurfaceLauncher(e);case le.LAUNCHER_TYPE:default:return this.makeRudeSurveyLauncher(e)}},e.prototype.AcceptsSurvey=function(e){if(he(e))return!1;switch(e.getType()){case o.Api.ISurvey.Type.GenericMessagingSurface:return!he(this.coachingUXLauncherFactory)&&this.coachingUXLauncherFactory.AcceptsSurvey(e);default:return i.get().checkIfSurveysEnabled()&&!he(this.rudeSurveyLauncherFactory)&&this.rudeSurveyLauncherFactory.AcceptsSurvey(e)}},e.prototype.makeGenericMessagingSurfaceLauncher=function(e){return he(this.coachingUXLauncherFactory)?null:this.coachingUXLauncherFactory.makeSurveyLauncher(e)},e.prototype.makeRudeSurveyLauncher=function(e){return he(this.rudeSurveyLauncherFactory)?null:this.rudeSurveyLauncherFactory.makeSurveyLauncher(e)},e})(),de=n(22),ve=(function(){function e(){}return e.prototype.makeTransporter=function(e){return new de.a(i.get().getCommonInitOptions().environment,e,i.get().getCommonInitOptions().appId,"Survey",i.get().getCommonInitOptions().applicationGroup,i.get().getCommonInitOptions().telemetryGroup,i.get().getCommonInitOptions().webGroup)},e})(),me=(function(){function e(){}return e.prototype.getLanguage=function(){return i.get().getCommonInitOptions().originalLocale},e})(),ge=n(5),ye=(function(){function e(){}return e.prototype.loadStringResource=function(e){var t=ge.a();switch(e){case 5:return t.Floodgate.Nps.Rating.Points11Value0;case 6:return t.Floodgate.Nps.Rating.Points11Value1;case 7:return t.Floodgate.Nps.Rating.Points11Value2;case 8:return t.Floodgate.Nps.Rating.Points11Value3;case 9:return t.Floodgate.Nps.Rating.Points11Value4;case 10:return t.Floodgate.Nps.Rating.Points11Value5;case 11:return t.Floodgate.Nps.Rating.Points11Value6;case 12:return t.Floodgate.Nps.Rating.Points11Value7;case 13:return t.Floodgate.Nps.Rating.Points11Value8;case 14:return t.Floodgate.Nps.Rating.Points11Value9;case 15:return t.Floodgate.Nps.Rating.Points11Value10;case 16:return t.Floodgate.Nps.Rating.Points5Value1;case 17:return t.Floodgate.Nps.Rating.Points5Value2;case 18:return t.Floodgate.Nps.Rating.Points5Value3;case 19:return t.Floodgate.Nps.Rating.Points5Value4;case 20:return t.Floodgate.Nps.Rating.Points5Value5;case 4:return t.Floodgate.Nps.Rating.Question;case 21:return t.Floodgate.Nps.Comment.Question;case 3:return t.Floodgate.Nps.Prompt.No;case 1:return t.Floodgate.Nps.Prompt.Question;case 0:return t.Floodgate.Nps.Prompt.Title;case 2:return t.Floodgate.Nps.Prompt.Yes;default:return""}},e.prototype.getCustomString=function(e){return i.get().getFloodgateInitOptions().uIStringGetter(e)},e})(),be=n(21),we=(function(){function e(){this.loadAsyncTriggered=!1,this.campaignDefinitions=[]}return e.prototype.load=function(){return this.loadAsyncTriggered||(this.loadAsync(),this.loadAsyncTriggered=!0),this.campaignDefinitions||[]},e.prototype.loadAsync=function(){var e=this,t=re().getCampaignDefinitions();t.then(function(t){e.loadCampaignDefinitions(t),e.loadAsyncTriggered=!0});var n=Object(f.a)("TmsLoadTimeout",1e3),r=Object(F.b)(n,t);return new Promise(function(t,n){r.then(function(n){e.loadCampaignDefinitions(n),e.loadAsyncTriggered=!0,t(e.campaignDefinitions)}).catch(function(n){e.campaignDefinitions.length<=0&&e.loadCampaignDefinitions(re().getCachedCampaignDefinitions()),t(e.campaignDefinitions)}).catch(function(n){t(e.campaignDefinitions)})})},e.prototype.loadCampaignDefinitions=function(e){var t=e&&e.campaigns;t&&(this.campaignDefinitions=Object(be.FilterValidCampaignDefinitions)(t).result)},e})();function Ee(){try{var e=document&&(document.documentElement||document.getElementsByTagName("body")[0]);return{pageWidth:(null===window||void 0===window?void 0:window.innerWidth)||(null==e?void 0:e.clientWidth),pageHeight:(null===window||void 0===window?void 0:window.innerHeight)||(null==e?void 0:e.clientHeight),pageTop:(null===window||void 0===window?void 0:window.pageYOffset)||(null==e?void 0:e.scrollTop),pageLeft:(null===window||void 0===window?void 0:window.pageXOffset)||(null==e?void 0:e.scrollLeft),screenWidth:screen?screen.width:0,screenHeight:screen?screen.height:0,colorDepth:screen?screen.colorDepth:0,userAgent:null===navigator||void 0===navigator?void 0:navigator.userAgent}}catch(e){return null}}function Se(e,t){if(!e)return null;var n=e[t];if(!n){var r=t.toLowerCase();n=e[Object.keys(e).find(function(e){return e.toLowerCase()===r})]}if(o.Utils.isNOU(n))return null;if(!o.Utils.isArray(n)&&(o.Utils.isObject(n)||o.Utils.isFunction(n)))return null;var i=(new Date).toISOString();return{userFactType:"Local",userFactName:t,userFactValue:n.toString(),sourceDateTime:i,storageDateTime:i,clientIngestionDateTime:i}}var xe=(function(){function e(){this.loadAsyncTriggered=!1,this.userFacts=[],this.nameAndUserFactMap={}}return e.prototype.load=function(){return this.loadAsyncTriggered||(this.loadAsync(),this.loadAsyncTriggered=!0),this.userFacts||[]},e.prototype.loadAsync=function(){var e=this,t=re().getUserFacts().then(function(t){e.loadUserFacts(t)}),n=Object(f.a)("TulipsLoadTimeout",1e3);return Object(F.b)(n,t).then(function(){return e.userFacts}).catch(function(){return(!e.userFacts||e.userFacts.length<=0)&&e.loadUserFacts(re().getCachedUserFacts()),e.userFacts}).catch(function(){return e.userFacts})},e.prototype.getUserFact=function(e){var t=this.nameAndUserFactMap[e];return t||this.nameAndUserFactMap.hasOwnProperty(e)?t:t=this.nameAndUserFactMap[e]=(function(e){try{if(!se){var t=i.get().getCommonInitOptions();se=[t,null==t?void 0:t.applicationSettings,null==t?void 0:t.telemetryGroup,null==t?void 0:t.applicationGroup,null==t?void 0:t.webGroup,i.get().getFloodgateInitOptions(),i.get(),Ee(),{userConsentGroup:i.get().getUserConsentGroup(),feedbackEnabledByAADC:i.get().isFeedbackSurveyEnabledByAADC()}]}var n=se.reduce(function(t,n){return t||Se(n,e)},null);return n||(n=(function(e){var t=e&&e.split("__");if(!t||t.length<=1)return null;var n=null,r=t[0],i=t.pop();if(i&&1===t.length&&(n=Se(window[r]||window,i)),!n&&i&&t.length>1){"window"===r&&t.shift();var s=t.reduce(function(e,t){return e&&e[t]},window);s&&(n=Se(s,i))}return n&&(n.userFactName=e),n})(e)),n}catch(t){return h.b().logEvent(h.a.UserFacts.LocalFact.Error.VALUE,2,{ErrorMessage:"Error getting local fact - "+e+" "+(t&&t.message?": "+t.message:"")+" "}),null}})(e)},e.prototype.loadUserFacts=function(e){var t=this;e&&(this.userFacts=e||[],this.userFacts.map(function(e){t.nameAndUserFactMap[e.userFactName]=e}),this.loadAsyncTriggered=!0,this.logUserFactInfo(this.userFacts))},e.prototype.logUserFactInfo=function(e){if(e&&!(e.length<=0)){var t=Object(f.a)("TulipsIngestionTimeInterval",864e5);if(!(t<=0)){var n;try{var r=Date.now(),i=function(e){var n=Date.parse(e);return!!isNaN(n)||r-n>t},s={Count:e.length,RefreshTime:t,IngestionTime:e[0].clientIngestionDateTime,SourcesExpired:e.filter(function(e){return e&&i(e.sourceDateTime)}).length||void 0,StoragesExpired:e.filter(function(e){return e&&i(e.storageDateTime)}).length||void 0,IngestionsExpired:e.filter(function(e){return e&&i(e.clientIngestionDateTime)}).length||void 0};n={Message:"UserFacts",Data:JSON.stringify(s)}}catch(e){n={ErrorMessage:"Error getting UserFact info"}}h.b().logEvent(h.a.UserFacts.Provider.Info.VALUE,3,n)}}},e})(),Te=n(16),Ne=n(32),Ce=n(17),ke=n(40),Le=n.n(ke),Ae=n(10),Oe=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.c)(t,e),t.prototype.postRequestWithRetry=function(e,t,n,r){var i=this;return new Promise(function(s,o){i.sendPostRequest(e,t,void 0,!0,r).then(s).catch(function(u){if(h.b().logEvent(h.a.DYNAMICTRANSPORT_POST_ERROR,2,{ErrorMessage:u.toString(),TimeMilliseconds:r,Count:n,CorrelationId:i.requestId}),n<=1)return o(u);i.postRequestWithRetry(e,t,n-1,r).then(s).catch(o)})})},t.prototype.createHeaders=function(e){var t="undefined"!=typeof Headers&&new Headers;return t&&(Object(Ae.isNOU)(e)||t.append("Authorization","Bearer "+e),this.requestId=Object(Ae.guid)(),t.append("X-Request-ID",this.requestId),t.append("Content-Type","application/json")),t},t})(q),Me=n(23),_e=new((function(){function e(){this.personalizerEnabled=!1,this.dynamicTransport=new Oe,this.personalizerSurveyInformationMap={}}return e.prototype.setup=function(e){this.personalizerEnabled=e.getFloodgateInitOptions().governanceServiceEnabled&&e.getFloodgateInitOptions().personalizerEnabled,this.personalizerEnabled&&(this.isProduction=0===e.getCommonInitOptions().environment,this.retryLimit=e.getFloodgateInitOptions().governanceServiceConfig.retry,this.timeout=e.getFloodgateInitOptions().governanceServiceConfig.timeout,this.requestUrl=this.isProduction?"https://oness.microsoft.com/api/v1.0/Reward":"https://onessppe.microsoft.com/api/v1.0/Reward")},e.prototype.setEventIdAndOverrideValueForSurveyId=function(e,t,n,r,i){if(!this.personalizerEnabled||o.Utils.isNOU(e)||o.Utils.isNOU(r))return!1;if(0!==t)return!1;var s=this.validateAndGetAutoDismissTime(n);return!o.Utils.isNOU(s)&&(this.personalizerSurveyInformationMap[r]={eventId:e,recommendedAutoDismissValue:s,userAction:void 0},!0)},e.prototype.getOverrideValueForSurveyId=function(e,t){if(this.personalizerEnabled&&!o.Utils.isNOU(t)&&this.infoExistsForSurveyId(t)&&0===e)return this.personalizerSurveyInformationMap[t].recommendedAutoDismissValue},e.prototype.logUserActionForSurveyAsync=function(e,t,n){return Object(u.b)(this,void 0,void 0,function(){var r,i,s,a,f,l;return Object(u.d)(this,function(u){switch(u.label){case 0:if(!o.Utils.isNOU(e)&&this.infoExistsForSurveyId(t)&&(this.personalizerSurveyInformationMap[t].userAction=e),r={error:!1},i=this.getValidatedActionPayloadForSurveyId(t),o.Utils.isNOU(i))return r.error=!0,r.errorMessage="Action Payload validation failed.",h.b().logEvent(h.a.PERSONALIZER_CLIENTFAILURE,1,{Message:"(PersonalizerClient.logUserActionForSurveyAsync) Error logging personalizer user action: "+r.errorMessage,CampaignId:n,SurveyId:t}),[2,r];u.label=1;case 1:return u.trys.push([1,3,,4]),a=performance.now(),[4,this.dynamicTransport.postRequestWithRetry(this.requestUrl,JSON.stringify(i),this.retryLimit,this.timeout)];case 2:return s=u.sent(),f=performance.now(),h.b().logEvent(h.a.PERSONALIZER_SERVICEREWARDRESULT,1,{TimeMilliseconds:f-a,HttpStatusCode:s.status,HttpStatusText:s.statusText,AdditionalSurveyInfo:this.buildConfigTelemetryString(),CorrelationId:this.dynamicTransport.requestId,CampaignId:n,PersonalizerUserAction:i.UserAction,PersonalizerEventId:i.EventId,SurveyId:t}),s.ok||(r.error=!0,r.errorMessage="Server Error, status: "+s.status+", status text: "+s.statusText),[2,r];case 3:return l=u.sent(),r.error=!0,r.errorMessage="Error: "+l.toString()+", Error stack: "+l.stack,h.b().logEvent(h.a.PERSONALIZER_CLIENTFAILURE,1,{Message:"(PersonalizerClient.logUserActionForSurveyAsync) Error logging personalizer user action: "+r.errorMessage,CampaignId:n,SurveyId:t,PersonalizerUserAction:i.UserAction,PersonalizerEventId:i.EventId}),[2,r];case 4:return[2]}})})},e.prototype.getEventIdForSurveyId=function(e){if(this.infoExistsForSurveyId(e))return this.personalizerSurveyInformationMap[e].eventId},e.prototype.isEnabled=function(e,t,n){return e===a.ISurvey.Type.Fps&&t!==l.e&&"customux"!==t&&n===Ce.GovernedChannelType.Standard&&this.personalizerEnabled},e.prototype.getValidatedActionPayloadForSurveyId=function(e){if(this.infoExistsForSurveyId(e)){var t=this.personalizerSurveyInformationMap[e];if(!o.Utils.isNOU(t.eventId)&&!(o.Utils.isNOU(t.userAction)||2!==t.userAction&&0!==t.userAction&&1!==t.userAction))return{UserAction:t.userAction,EventId:t.eventId}}},e.prototype.validateAndGetAutoDismissTime=function(e){if(!o.Utils.isNOU(e)&&"string"==typeof e)switch(parseInt(e,10)){case 0:return 0;case 7:return 1;case 14:return 2;case 21:return 3;case 28:return 4;case 60:return 5;case 90:return 6;case 120:return 7;case 150:return 8;default:return}},e.prototype.infoExistsForSurveyId=function(e){return!o.Utils.isNOU(e)&&!o.Utils.isNOU(this.personalizerSurveyInformationMap[e])},e.prototype.buildConfigTelemetryString=function(){var e={retry:this.retryLimit,timeout:this.timeout};return JSON.stringify(e)},e})());function De(){return _e}var Pe=new((function(){function e(){this.dynamicTransport=new Oe,this.personalizerClient=De(),this.governanceServiceEnabled=!1,this.forceServicelessSurveyDisplay=!1,this.lastSurveyFailedSync=void 0,this.clientState=Me.GovernanceServiceClientState.Disabled}return e.prototype.setup=function(e){if(this.governanceServiceEnabled=e.getFloodgateInitOptions().governanceServiceEnabled,this.governanceServiceEnabled){if(this.clientInfo={applicationId:e.getCommonInitOptions().appId.toString(),sessionId:e.getCommonInitOptions().sessionId,version:e.getCommonInitOptions().build,surveyPlatform:1,hostPlatform:6,tenantId:e.getCommonInitOptions().telemetryGroup.tenantId,deviceId:e.getCommonInitOptions().telemetryGroup.deviceId,audience:e.getCommonInitOptions().telemetryGroup.audience},this.userId=e.getCommonInitOptions().telemetryGroup.loggableUserId,Object(Ae.isNOU)(this.clientInfo.sessionId))return void(this.clientState=Me.GovernanceServiceClientState.InitializationFailed);if(Object(Ae.isNOU)(this.clientInfo.version))return void(this.clientState=Me.GovernanceServiceClientState.InitializationFailed);if(!Object(Ae.isValidUserId)(this.userId))return void(this.clientState=Me.GovernanceServiceClientState.InitializationFailed);this.forceServicelessSurveyDisplay=e.getFloodgateInitOptions().governanceServiceConfig.forceServicelessSurveyDisplay,this.retryLimit=e.getFloodgateInitOptions().governanceServiceConfig.retry,this.timeout=e.getFloodgateInitOptions().governanceServiceConfig.timeout,this.isProduction=0===e.getCommonInitOptions().environment,this.clientState=Me.GovernanceServiceClientState.Enabled}},e.prototype.isEnabled=function(e){return this.clientState===Me.GovernanceServiceClientState.Enabled&&this.governanceServiceEnabled&&e===Ce.GovernedChannelType.Standard},e.prototype.shouldForceDisplay=function(){return this.forceServicelessSurveyDisplay},e.prototype.getClientInfo=function(){return this.clientInfo},e.prototype.getClientState=function(){return this.clientState},e.prototype.getLastSurveyFailedSync=function(){return this.lastSurveyFailedSync},e.prototype.checkGovernancePermitAsync=function(e,t,n,r){return Object(u.b)(this,void 0,void 0,function(){var i,s,o,a,f,l,c,p,d,v;return Object(u.d)(this,function(u){switch(u.label){case 0:i=this.isProduction?"https://oness.microsoft.com/api/v1.0/UserSurvey":"https://onessppe.microsoft.com/api/v1.0/UserSurvey",s=this.buildSurveyInfo(e,t,r),o=this.buildBodyRequest(s,n),a={permission:!1,error:!1},u.label=1;case 1:return u.trys.push([1,4,,5]),c=performance.now(),[4,this.dynamicTransport.postRequestWithRetry(i,o,this.retryLimit,this.timeout)];case 2:return f=u.sent(),l=performance.now()-c,p=void 0,f.ok?[4,f.text()]:(this.lastSurveyFailedSync=s,a.errorMessage="Server Error, status: "+f.status+", status text: "+f.statusText,a.error=!0,h.b().logEvent(h.a.GOVERNANCE_SERVICERESULT,1,{TimeMilliseconds:l,HttpStatusCode:f.status,HttpStatusText:f.statusText,AdditionalSurveyInfo:this.buildConfigTelemetryString(),CorrelationId:this.dynamicTransport.requestId,GovernanceRequestBody:o,GovernanceResponseText:p,CampaignId:e.getCampaignId(),SurveyId:e.getSurveyInfo().getId()}),[2,a]);case 3:return p=u.sent(),h.b().logEvent(h.a.GOVERNANCE_SERVICERESULT,1,{TimeMilliseconds:l,HttpStatusCode:f.status,HttpStatusText:f.statusText,AdditionalSurveyInfo:this.buildConfigTelemetryString(),CorrelationId:this.dynamicTransport.requestId,GovernanceRequestBody:o,GovernanceResponseText:p,CampaignId:e.getCampaignId(),SurveyId:e.getSurveyInfo().getId()}),(d=JSON.parse(p)).lastTriggerSurveyTime=Object(Ae.stringToDate)(new Date(d.lastTriggerSurveyTime).toISOString()),Object(Ae.isNumber)(d.timeUntilNextSurveyAllowed)&&Object(Ae.isDate)(d.lastTriggerSurveyTime)?(0===d.timeUntilNextSurveyAllowed&&(a.permission=!0,this.personalizerClient.isEnabled(e.getType(),e.getLauncherType(),e.getSurveyInfo().getGovernedChannelType())&&this.personalizerClient.setEventIdAndOverrideValueForSurveyId(this.dynamicTransport.requestId,0,d.actionId,e.getSurveyInfo().getId(),e.getCampaignId())),a.lastTriggerSurvey=d,this.lastSurveyFailedSync=void 0):(a.errorMessage="Service Response is not formatted correctly: "+p,a.error=!0,this.lastSurveyFailedSync=s),[3,5];case 4:return v=u.sent(),this.lastSurveyFailedSync=s,h.b().logEvent(h.a.GOVERNANCE_SERVICEFAILURE,2,{ErrorMessage:v.toString(),AdditionalSurveyInfo:this.buildConfigTelemetryString(),CorrelationId:this.dynamicTransport.requestId,HttpStatusCode:null==f?void 0:f.status,HttpStatusText:null==f?void 0:f.statusText,GovernanceRequestBody:o}),a.error=!0,a.errorMessage="Error: "+v.toString()+", Error stack: "+v.stack,[3,5];case 5:return[2,a]}})})},e.prototype.buildSurveyInfo=function(e,t,n){var r=a.ISurvey.Type[e.getType()],i=Me.GovernanceServiceSurveyType[r],s=new Date,o=this.personalizerClient.isEnabled(e.getType(),e.getLauncherType(),e.getSurveyInfo().getGovernedChannelType());return{surveyId:e.getCampaignId(),surveyTriggerTime:s,surveyType:i,surveyLevelCooldown:t,surveyChannel:n,localOffsetTime:s.getTimezoneOffset(),personalizerEnabled:o}},e.prototype.buildBodyRequest=function(e,t){var n={userId:this.userId,userLevelCooldown:t,survey:e,client:this.clientInfo};return JSON.stringify(n)},e.prototype.buildConfigTelemetryString=function(){var e={retry:this.retryLimit,timeout:this.timeout};return JSON.stringify(e)},e})());function He(){return Pe}var Be,je=!1,Fe=0,Ie=null,qe=null,Re=null;function Ue(e){Ie=e}function ze(){return Ie}function We(e,t){if(void 0===t&&(t=null),Ie)return Ie;Fe++;var n=new Promise(function(n,r){var s=function(e,t){var n=o.FloodgateEngine.getTelemetryLogger();n&&n.log_Event(Te.TelemetryEvent.Floodgate.Start.Failed,{Count:Fe,ErrorMessage:e,ErrorDetails:t&&t.stack}),r(e)};try{var u=i.get().getCommonInitOptions();if(!u)return void s("Invalid floodgate common init options, state: "+je);var a=i.get().getFloodgateInitOptions();if(!a){var l=o.FloodgateEngine.getTelemetryLogger();l&&l.log_Event(Te.TelemetryEvent.Floodgate.Start.Warning,{Count:Fe,ErrorMessage:"Invalid floodgate init options, state: "+je}),i.get().setFloodgateInitOptions({}),a=i.get().getFloodgateInitOptions()}t||qe||a&&a.authTokenCallback&&(qe=new we,Re=new xe);var c=Ne.Governor.GetChannelCoolDown(Ce.GovernedChannelType.TeachingMessage),h=Object(f.a)("TeachingMessageCooldown",c);if(Ne.Governor.SetDefaultChannelCoolDown(Ce.GovernedChannelType.TeachingMessage,h),!(Be=t||o.FloodgateEngine.make(u.build||"",pe.make(),a.onSurveyActivatedCallback,new z.a,a.settingStorageCallback,new ye,new me,new ve,[qe],Re,He())))return Ue(null),void s("Failed to create floodgate engine");if(e||Fe>1)Be.start(),n();else{var p=Be.startAsync();if(!p)return Ue(null),void s("Failed to get floodgate engine");p.then(function(){n()}).catch(function(e){Ue(null),s("Failed to start floodgate engine",e)})}}catch(e){Ue(null),s("Failed to load floodgate engine: "+(e&&e.toString()),e)}});return Ue(n),n.catch(function(e){Ue(null)}),n}function Xe(e){return void 0===e&&(e=!1),We(e)}function Ve(){Be&&Be.stop(),Ue(null)}function $e(){Fe=0,Ie=null,Be=null,qe=null,Re=null}s.f(function(){return Be}),s.j(Xe),s.k(Ve);var Je,Ke,Qe,Ge=n(27),Ye=n(0),Ze=n(3),et=n(34),tt=F.l;function nt(e){!(function(){for(var e=0,t=rt;e<t.length;e++){var n=t[e];Ze.m(n.id,n.event,n.listener)}rt=[]})(),Je(e)}var rt=[];function it(e,t,n){Ze.g(e,t,n),rt.push({event:t,id:e,listener:n})}function st(e,t,n,r,s,o){var u=i.get();h.b().logEvent(e,1,{CampaignId:u.getFloodgateSurvey().getCampaignId(),SurveyId:u.getFloodgateSurvey().getId(),SurveyType:u.getFloodgateSurvey().getSurveyType(),PromptAutoDismiss:u.getFloodgateInitOptions().autoDismiss.toString(),ClientFeedbackId:t,IsEmailPolicyEnabled:n,PersonalizerUserAction:r,PersonalizerEventId:s,ActualSetAutoDismissValue:o})}function ot(e){var t=document.getElementById(Ye.d.TFormEmailCheckBox);if(t){var n=document.getElementById(Ye.d.TFormEmailTextBox);n.value=t.checked?i.get().getCommonInitOptions().userEmail:null,n.disabled=!t.checked}}function ut(e){e.keyCode===Ye.e.Esc&&(e.preventDefault(),e.stopPropagation(),nt(!1),ft())}function at(e){e.preventDefault(),e.stopPropagation(),nt(!1),ft()}function ft(){if(Ke&&dt())return De().logUserActionForSurveyAsync(0,i.get().getFloodgateSurvey().getId(),i.get().getFloodgateSurvey().getCampaignId()),void st(h.a.SURVEY_UI_PROMPT_USERCLOSED,void 0,void 0,0,De().getEventIdForSurveyId(i.get().getFloodgateSurvey().getId()),Qe);st(Ke?h.a.SURVEY_UI_PROMPT_USERCLOSED:h.a.SURVEY_UI_FORM_USERCLOSED,void 0,void 0,void 0,void 0,Qe)}function lt(e){var t,n,r;e.preventDefault(),e.stopPropagation(),i.get().getFloodgateSurvey().getSurveyType()===a.ISurvey.Type.Intercept?(t=i.get().getFloodgateSurvey().getInterceptUrl(),n=window.open(t,"_blank"),r=!tt(n)&&(n.focus(),!0),nt(!1),st(r?h.a.SURVEY_UI_PROMPT_CLICKED:h.a.SURVEY_UI_REDIRECTIONFAILURE)):ct()}function ct(){Ke=!1,Ze.l(Ye.d.TPromptContainer,!1),Ze.l(Ye.d.TFormContainer,!0),Ze.b(Ye.d.ToastContainer,Ye.c.ToastZoom),(" "+document.getElementById(Ye.d.TFormContainer).className+" ").indexOf(" "+Ye.c.Visible+" ")>-1&&document.getElementById(Ye.d.ToastContainer).setAttribute("role","");var e=document.getElementsByName(Ye.d.TFormRating);e&&e.length>0&&e[0].focus(),dt()?(De().logUserActionForSurveyAsync(2,i.get().getFloodgateSurvey().getId(),i.get().getFloodgateSurvey().getCampaignId()),st(h.a.SURVEY_UI_FORM_SHOWN,void 0,void 0,2,De().getEventIdForSurveyId(i.get().getFloodgateSurvey().getId()),Qe)):st(h.a.SURVEY_UI_FORM_SHOWN,void 0,void 0,void 0,void 0,Qe)}function ht(e){document.getElementById(Ye.d.TFormSubmitButton).disabled=!1}function pt(e){e.preventDefault(),e.stopPropagation(),Ze.l(Ye.d.TFormSubmitButton,!1);var t=new et.a(Ye.d.TFormSubmitButtonSpinner),n=new de.a(i.get().getCommonInitOptions().environment,a.ISurvey.Type[i.get().getFloodgateSurvey().getSurveyType()],i.get().getCommonInitOptions().appId,"Survey",i.get().getCommonInitOptions().applicationGroup,i.get().getCommonInitOptions().telemetryGroup,i.get().getCommonInitOptions().webGroup),r=document.getElementById(Ye.d.TFormComment),s=r&&!!r.value,o=document.querySelector('input[name="'+Ye.d.TFormRating+'"]:checked');i.get().getFloodgateSurvey().setValues(Number(o.value),s?r.value:""),n.setManifestValues(i.get().getFloodgateSurvey().getJsonElements());var u=document.getElementById(Ye.d.TFormEmailCheckBox),f=document.getElementById(Ye.d.TFormEmailTextBox);u&&u.checked&&""!==f.value&&n.setEmail(f.value),n.submit(),t.destroy(),nt(!0),st(h.a.SURVEY_UI_FORM_SUBMIT,n.getClientFeedbackId(),i.get().getFloodgateInitOptions().showEmailAddress)}function dt(){return De().isEnabled(i.get().getFloodgateSurvey().getSurveyType(),i.get().getFloodgateSurvey().getLauncherType(),i.get().getFloodgateSurvey().getGoverenedChannelType())}var vt=F.l;function mt(e,t,n){return[{attributes:[{name:Ye.a.Type,value:Ye.b.Radio},{name:Ye.a.Value,value:e},{name:Ye.a.Name,value:n}],id:e,tag:Ye.g.Input},{attributes:[{name:Ye.a.For,value:e}],children:[{children:[{tag:Ye.g.Span}],classes:[Ye.c.ChoiceGroupIcon],tag:Ye.g.Span},{classes:["obf-ChoiceGroupLabel"],innerHTML:t,tag:Ye.g.Span}],classes:[Ye.c.FontSubText],tag:Ye.g.Label}]}function gt(){for(var e,t=[],n=0,r=0,s=i.get().getFloodgateSurvey().getRatingValuesAscending();r<s.length;r++){var o=s[r];t.push([n,o]),n++}return(function(e,t,n){var r={children:[],tag:Ye.g.FieldSet};vt(t)||Array.prototype.push.apply(r.children,[{classes:[Ye.c.FontSubText],id:Ye.d.TFormRatingQuestion,innerText:t,tag:Ye.g.Legend,attributes:[{name:Ye.a.AriaLabel,value:t}]}]);for(var i=0,s=n;i<s.length;i++){var o=s[i];Array.prototype.push.apply(r.children,mt(o[0].toString(),o[1],e))}return{children:[r],classes:[Ye.c.ChoiceGroup],id:e}})(Ye.d.TFormRating,null===(e=i.get().getFloodgateSurvey().getRatingQuestion())||void 0===e?void 0:e.trim(),t.reverse())}var yt=n(31);function bt(e){var t,n,r,s;t=yt.a({attributes:[{name:Ye.a.DataHtml2CanvasIgnore,value:Ye.b.True},{name:Ye.a.Role,value:"alert"}],children:[(r=i.get().getFloodgateSurvey().getSurveyType()===a.ISurvey.Type.Intercept,s={children:[{classes:[Ye.c.FontText,Ye.c.TextAlignLeft],id:Ye.d.TPromptTitle,innerText:r?i.get().getFloodgateSurvey().getInterceptTitle():i.get().getFloodgateSurvey().getTitle()},{classes:[Ye.c.FontSubText,Ye.c.TextAlignLeft],id:Ye.d.TPromptText,innerText:r?i.get().getFloodgateSurvey().getInterceptQuestion():i.get().getFloodgateSurvey().getPromptQuestion()}],id:Ye.d.TPromptContainer,tag:Ye.g.Button},s),{attributes:[{name:Ye.a.Type,value:Ye.b.Button},{name:Ye.a.AriaLabel,value:ge.a().CloseLabel}],id:Ye.d.ToastCancel,innerHTML:'<svg viewBox="4 4 16 16" width="16px" height="16px" focusable="false"><path d="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/></svg>',tag:Ye.g.Button},i.get().getFloodgateSurvey().getSurveyType()!==a.ISurvey.Type.Intercept?(n={children:[{classes:[Ye.c.FontText,Ye.c.TextAlignLeft],id:Ye.d.TFormTitle,innerText:i.get().getFloodgateSurvey().getTitle()},gt(),{attributes:[{name:Ye.a.Placeholder,value:i.get().getFloodgateSurvey().getCommentQuestion()},{name:Ye.a.AriaLabel,value:i.get().getFloodgateSurvey().getCommentQuestion()},{name:Ye.a.MaxLength,value:Ye.b.TextAreaMaxLength}],classes:[Ye.c.FontSubText,Ye.c.TextInput],id:Ye.d.TFormComment,tag:Ye.g.TextArea},{brs:i.get().getFloodgateInitOptions().showEmailAddress&&i.get().getFloodgateSurvey().showEmailRequest,children:[{attributes:[{name:Ye.a.Type,value:Ye.b.Checkbox},{name:i.get().getCommonInitOptions().userEmailConsentDefault?Ye.b.Checked:Ye.b.Unchecked,value:""}],classes:[Ye.c.TFormEmailCheckbox,Ye.c.CheckBox],id:Ye.d.TFormEmailCheckBox,tag:Ye.g.Input},{attributes:[{name:Ye.a.For,value:Ye.d.TFormEmailCheckBox}],classes:[Ye.c.FontSubText,Ye.c.TextAlignLeft,Ye.c.TFormEmailLabel],innerText:ge.a().Form.EmailCheckBoxLabel,tag:Ye.g.Label},{attributes:[{name:Ye.a.Type,value:Ye.b.Text},{name:Ye.a.Placeholder,value:ge.a().Form.EmailPlaceholder},{name:Ye.a.AriaLabel,value:ge.a().Form.EmailPlaceholder},{name:Ye.a.Name,value:Ye.d.BasicFormEmailInput},{name:Ye.a.MaxLength,value:Ye.b.TextAreaMaxLength},{name:Ye.a.Value,value:i.get().getCommonInitOptions().userEmailConsentDefault?i.get().getCommonInitOptions().userEmail:""}],classes:[Ye.c.FontSubText,Ye.c.FormEmailInput,Ye.c.TextInput],id:Ye.d.TFormEmailTextBox,tag:Ye.g.Input}]},{children:[{attributes:[{name:Ye.a.HRef,value:Ye.h.PrivacyStatementLink},{name:Ye.a.Target,value:Ye.b.BlankWindow},{name:Ye.a.Rel,value:Ye.b.NoReferrer}],classes:[Ye.c.Link],innerText:ge.a().PrivacyStatement,tag:Ye.g.Anchor}],classes:[Ye.c.FontSubSubText,Ye.c.TextAlignLeft,Ye.c.PrivacyStatementLinkDiv]},{children:[{attributes:[{name:Ye.a.Disabled,value:Ye.b.True}],classes:[Ye.c.FontSubText,Ye.c.SubmitButton],id:Ye.d.TFormSubmitButton,innerText:ge.a().Form.Submit,tag:Ye.g.Button},{classes:[Ye.c.Spinner,Ye.c.Hidden],id:Ye.d.TFormSubmitButtonSpinner,tag:Ye.g.Div}],id:Ye.d.TFormSubmitButtonContainer}],classes:[Ye.c.Hidden],id:Ye.d.TFormContainer},n):{}],classes:[Ye.c.Toast,Ze.f()?Ye.c.Rtl:""],id:Ye.d.ToastContainer}),document.body.insertBefore(t,document.body.firstChild),Ze.l(Ye.d.ToastContainer,!0),(function(e){void 0===e&&(e=function(e){}),Je=e,Ke=!0,it(Ye.d.ToastContainer,"keyup",ut),it(Ye.d.ToastCancel,"click",at),it(Ye.d.TPromptContainer,"click",lt),it(Ye.d.TFormSubmitButton,"click",pt),it(Ye.d.TFormEmailCheckBox,"click",ot),ot();for(var t=document.querySelectorAll('input[name="'+Ye.d.TFormRating+'"]'),n=0;n<t.length;++n)Ze.h(t[n],"click",ht);var r=i.get().getFloodgateSurvey().getSurveyType()===a.ISurvey.Type.Intercept,s=i.get().getFloodgateInitOptions().autoDismiss,o=dt();switch(!0){case r:s=0;break;case o:var u=De().getOverrideValueForSurveyId(0,i.get().getFloodgateSurvey().getId());tt(u)||(s=u);break;default:s=i.get().getFloodgateInitOptions().autoDismiss}if(Qe=s,i.get().getFloodgateSurvey().showPrompt||r?st(h.a.SURVEY_UI_PROMPT_SHOWN,void 0,void 0,void 0,De().getEventIdForSurveyId(i.get().getFloodgateSurvey().getId()),s):ct(),0!==s){var f=void 0;switch(s){case 1:f=7e3;break;case 2:f=14e3;break;case 3:f=21e3;break;case 4:f=28e3;break;case 5:f=6e4;break;case 6:f=9e4;break;case 7:f=12e4;break;case 8:f=15e4}void 0!==f&&setTimeout(function(){Ke&&(nt(!1),o?(De().logUserActionForSurveyAsync(1,i.get().getFloodgateSurvey().getId(),i.get().getFloodgateSurvey().getCampaignId()),st(h.a.SURVEY_UI_PROMPT_AUTODISMISSED,void 0,void 0,1,De().getEventIdForSurveyId(i.get().getFloodgateSurvey().getId()),s)):st(h.a.SURVEY_UI_PROMPT_AUTODISMISSED,void 0,void 0,void 0,void 0,Qe))},f)}})(function(t){Ze.l(Ye.d.ToastContainer,!1),Ze.d(Ye.d.ToastContainer),i.get().getFloodgateInitOptions().onDismiss(i.get().getFloodgateSurvey().getCampaignId(),t),e()})}var wt,Et,St=n(52);function xt(e){return null==e?void 0:e.questionValue}function Tt(e){return null==e?void 0:e.answerValue[0]}function Nt(e){var t=new de.a(i.get().getCommonInitOptions().environment,a.ISurvey.Type[i.get().getFloodgateSurvey().getSurveyType()],i.get().getCommonInitOptions().appId,"Survey",i.get().getCommonInitOptions().applicationGroup,i.get().getCommonInitOptions().telemetryGroup,i.get().getCommonInitOptions().webGroup);try{var n=(function(e){var t,n,r,i,s,o;return e.pageInfo.forEach(function(u){u.questionAnswers.forEach(function(a){switch(u.pageType){case"rating":switch(null==a?void 0:a.questionType){case"rating":t=(function(e){return parseInt(null==e?void 0:e.answerValue[0],10)-1})(a),i=xt(a),"FormPartialResponseSubmitted"===e.responseType&&(Et="rating");break;case"prompt":s=xt(a)}break;case"verbatim":switch(null==a?void 0:a.questionType){case"verbatim":o=xt(a),n=Tt(a),"FormResponseSubmitted"===e.responseType&&(Et="verbatim");break;case"email":r=Tt(a)}}})}),{rating:t,ratingQuestion:i,email:r,comment:n,commentTitle:o,prompt:s}})(e),r=n.rating,s=n.comment;i.get().getFloodgateSurvey().setValues(Number(r),s||""),(function(e,t){e.setManifestValues(i.get().getFloodgateSurvey().getJsonElements()),(function(e,t){var n=JSON.parse(e.getExtendedManifestData());n.surveyStrings=JSON.stringify({prompt:{title:null==t?void 0:t.prompt,question:"",yesButtonText:"YES",noButtonText:"NO"},rating:[{question:null==t?void 0:t.ratingQuestion,options:[]}],comment:[{question:null==t?void 0:t.commentTitle}]}),e.setExtendedManifestData(JSON.stringify(n))})(e,t),t.email&&e.setEmail(t.email);var n=(function(){var e=i.get().getCommonInitOptions().applicationGroup.appData,t={additionalInfo:{SurveyDescription:l.f,Fligtht:i.get().getCVSurveyFlights()}};return Object(Ae.isNOU)(e)?JSON.stringify(t):JSON.stringify(Object.assign(JSON.parse(e),t))})();e.setAppData(n),e.setClientFeedbackId(i.get().getFloodgateSurvey().getPreGeneratedClientFeedbackId())})(t,n),t.submit(),wt(!0),At("rating"===Et?h.a.SURVEY_UI_FORM_SUBMIT:h.a.SURVEY_UI_FORM_SECONDARY_SUBMIT)}catch(e){At(h.a.SURVEY_UI_FORM_SUBMIT_ERROR)}}function Ct(e){switch(Object(Ae.isNOU)(Et)&&wt(!1),e.responseEventType){case"FormClosed":return void At(h.a.SURVEY_UI_FORM_USERCLOSED);case"FormAutoDismissed":return void At(h.a.SURVEY_UI_PROMPT_AUTODISMISSED);case"FormResponseCanceled":return void At(h.a.SURVEY_UI_FORM_USERCLOSED);default:return void At(h.a.SURVEY_UI_FORM_NO_RETURN_TYPE)}}function kt(e){document.getElementById(Ye.d.ToastContainer).style.display="inherit",At(h.a.SURVEY_UI_FORM_SHOWN)}function Lt(e){var t=i.get(),n={CampaignId:t.getFloodgateSurvey().getCampaignId(),SurveyId:t.getFloodgateSurvey().getId(),SurveyType:t.getFloodgateSurvey().getSurveyType(),ErrorMessage:e.CustomProperties.ErrorMessage?e.CustomProperties.ErrorMessage:null,Message:e.CustomProperties.Message?e.CustomProperties.Message:null};At(e.EventId,n)}function At(e,t){var n,r=i.get();n=t||{CampaignId:r.getFloodgateSurvey().getCampaignId(),SurveyId:r.getFloodgateSurvey().getId(),SurveyType:r.getFloodgateSurvey().getSurveyType(),ClientFeedbackId:i.get().getFloodgateSurvey().getPreGeneratedClientFeedbackId(),CVFormId:r.getFloodgateSurvey().getCVSurveyFormId()},h.b().logEvent(e,1,n)}var Ot=(function(){function e(e){this.comment="",this.ratingIndex=-1,this.showPrompt=e.showPrompt,this.showEmailRequest=!!F.j(e.showEmailRequest)&&e.showEmailRequest,this.survey=e}return e.prototype.getLauncherType=function(){return this.survey.launcherType},e.prototype.getCVSurveyFormId=function(){return this.survey.customerVoiceFormId},e.prototype.getPreGeneratedClientFeedbackId=function(){},e.prototype.getPromptQuestion=function(){return this.survey.promptQuestion},e.prototype.getTitle=function(){return this.survey.title},e.prototype.getPromptYesButtonText=function(){return this.survey.promptYesButtonText},e.prototype.getPromptNoButtonText=function(){return this.survey.promptNoButtonText},e.prototype.getRatingValuesAscending=function(){return this.survey.ratingValuesAscending},e.prototype.getRatingQuestion=function(){return this.survey.ratingQuestion},e.prototype.getCommentQuestion=function(){return this.survey.commentQuestion},e.prototype.getInterceptTitle=function(){},e.prototype.getInterceptQuestion=function(){},e.prototype.getInterceptUrl=function(){},e.prototype.setValues=function(e,t){this.comment=t,this.isRatingIndexValid(e)?this.ratingIndex=e:this.ratingIndex=-1},e.prototype.getJsonElements=function(){var e={};return e.comment=this.comment,e.rating=this.getNormalizedRatingScore(),e.survey={surveyId:this.getCampaignId()},e},e.prototype.getSurveyType=function(){return this.survey.surveyType},e.prototype.getCampaignId=function(){return this.survey.campaignId},e.prototype.getId=function(){return this.getCampaignId()},e.prototype.getGoverenedChannelType=function(){},e.prototype.isRatingIndexValid=function(e){return e>=0&&e<this.survey.ratingValuesAscending.length},e.prototype.getNormalizedRatingScore=function(){return this.isRatingIndexValid(this.ratingIndex)?this.survey.isZeroBased?this.ratingIndex/(this.survey.ratingValuesAscending.length-1):(this.ratingIndex+1)/this.survey.ratingValuesAscending.length:-1},e})(),Mt=(function(){function e(){this.showPrompt=!0,this.showEmailRequest=!0,this.comment=""}return e.prototype.getCVSurveyFormId=function(){return"Form ID"},e.prototype.getLauncherType=function(){return"Launcher Type"},e.prototype.getPromptQuestion=function(){return"Prompt question?"},e.prototype.getTitle=function(){return"Title"},e.prototype.getPromptYesButtonText=function(){return"Yes"},e.prototype.getPromptNoButtonText=function(){return"No"},e.prototype.getRatingValuesAscending=function(){return["worst","worse","ok","better","best"]},e.prototype.getRatingQuestion=function(){return"Rating question?"},e.prototype.getCommentQuestion=function(){return"Comment question?"},e.prototype.getInterceptTitle=function(){return"Intercept Title"},e.prototype.getInterceptQuestion=function(){return"Intercept question?"},e.prototype.getInterceptUrl=function(){return"https://example.com"},e.prototype.setValues=function(e,t){t&&(this.comment=t),F.k(e)&&e>=0&&e<=4&&(this.rating=e/4)},e.prototype.getJsonElements=function(){var e={};return this.comment&&(e.comment=this.comment),this.rating&&(e.rating=this.rating),e},e.prototype.getSurveyType=function(){return a.ISurvey.Type.Nps},e.prototype.getCampaignId=function(){return"10000000-0000-0000-0000-000000000000"},e.prototype.getId=function(){return"00000000-0000-0000-0000-000000000000"},e.prototype.getGoverenedChannelType=function(){return Ce.GovernedChannelType.Standard},e.prototype.getPreGeneratedClientFeedbackId=function(){return"00000000-0000-0000-0000-000000000000"},e})(),_t=(function(){function e(){}return e.prototype.log_TriggerMet=function(e,t,n,r,i){h.b().logEvent(h.a.SURVEY_FLOODGATE_TRIGGERMET,1,{CampaignId:e,SurveyId:t,SurveyType:n,SurveyActivityInfo:r,AdditionalSurveyInfo:i})},e.prototype.log_UserSelected=function(e,t,n,r){h.b().logEvent(h.a.SURVEY_FLOODGATE_USERSELECTED,1,{CampaignId:e,SurveyId:t,SurveyType:n,AdditionalSurveyInfo:r})},e.prototype.log_CampaignLoad_Failed=function(e){h.b().logEvent(h.a.SURVEY_FLOODGATE_CAMPAIGNLOAD_FAILED,2,{ErrorMessage:e})},e.prototype.log_Error=function(e,t){var n={name:e};h.b().logEvent(n,2,{ErrorMessage:t})},e.prototype.log_Event=function(e,t){var n={name:e};h.b().logEvent(n,1,t)},e.prototype.log_LocalError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.log_Local(2,e,t)},e.prototype.log_Local=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];h.b().logLocal(e,n)},e})(),Dt=!1;function Pt(){return new Promise(function(e,t){var n=function(e){var n=o.FloodgateEngine.getTelemetryLogger();n&&n.log_Event(Te.TelemetryEvent.Floodgate.Initialize.Failed,{ErrorMessage:e}),t(e)};if(je)e();else{try{r.a()}catch(e){t("CommonApp initialization failed: {"+e+"}")}o.FloodgateEngine.setTelemetryLogger(new _t),Ge.a().then(function(){try{!(function(){if(!z.a.isStorageAvailable())throw new Error("window.localStorage is not available.");s.a().OfficeBrowserFeedback.floodgate=s.a().OfficeBrowserFeedback.floodgate||{};var e=s.a().OfficeBrowserFeedback.floodgate.initOptions;if(void 0!==(e=e||{}).campaignDefinitions){var t=Object(be.FilterValidCampaignDefinitions)(e.campaignDefinitions);if(t.error)throw new Error("floodgate.initOptions.campaignDefinitions error: "+t.error);(new z.a).write(a.IFloodgateStorageProvider.FileType.CampaignDefinitions,JSON.stringify(e.campaignDefinitions))}var n=i.get();if(n.setFloodgateInitOptions(e),Le.a.resetSessionActivity(),De().setup(n),He().setup(n),je=!0,!n.getFloodgateInitOptions().surveyEnabled){var r=o.FloodgateEngine.getTelemetryLogger();r&&r.log_Event(Te.TelemetryEvent.Floodgate.Start.SurveysDisabled,{Count:Fe,Message:"Floodgate initialized with surveys disabled (surveyEnabled is false)"})}})()}catch(e){n("CommonFloodgate initialization failed: {"+e+"}")}e()}).catch(function(e){n("Initialization failed: {"+e+"}")})}})}function Ht(e){return new Promise(function(t,n){var r,s;if(Dt)n("Control already open");else{if(!i.get().isFeedbackSurveyEnabledByAADC())return h.b().logEvent(h.a.SURVEY_UI_DISABLED_AADC,2,{CampaignId:e.getCampaignId(),Data:JSON.stringify({ageGroup:i.get().getCommonInitOptions().ageGroup,authenticationType:i.get().getCommonInitOptions().authenticationType})}),void n("Prompt is prohibited by AADC");if(i.get().setFloodgateSurvey(e||new Mt),i.get().isCVSurveyEnabled()&&e.getLauncherType()===l.e){var o=i.get().getCVSurveyFlights(),u={customerVoiceFormId:e.getCVSurveyFormId(),flights:o,isCommercialHost:i.get().getCommonInitOptions().isCommercialHost,locale:i.get().getCommonInitOptions().locale,userEmailConsentDefault:i.get().getCommonInitOptions().userEmailConsentDefault,platform:i.get().getCommonInitOptions().telemetryGroup.platform,uiHost:i.get().getProductName()},a={},f=null!==(r=i.get().getCommonInitOptions().primaryColour)&&void 0!==r?r:"",c=null!==(s=i.get().getCommonInitOptions().secondaryColour)&&void 0!==s?s:"";return f&&(a.appPrimaryColor=f.replace("#","")),c&&(a.appSecondaryColor=c.replace("#","")),(function(e,t,n){wt=function(e){i.get().getFloodgateInitOptions().onDismiss(i.get().getFloodgateSurvey().getCampaignId(),e),Dt=!1};var r=document.createElement("div");r.id=Ye.d.ToastContainer,r.style.position="fixed",r.style.bottom="56px",r.style.right="19px",r.style.zIndex="999",document.body.appendChild(r),document.getElementById(Ye.d.ToastContainer).style.display="none",Object(St.renderCVSurvey)(Ye.d.ToastContainer,Nt,Ct,kt,Lt,e,t)})(u,a),Dt=!0,void t()}bt(function(){Dt=!1}),Dt=!0,t()}})}function Bt(e){return Ht(new Ot(e))}function jt(){r.b(),Ge.b(),je=!1,$e(),Dt=!1}function Ft(){return a.IFloodgateSettingIdMap.RoamingSettingIdMap}s.h(Bt),s.i(Ht),s.g(Pt),s.c(Ft)},function(e,t,n){"use strict";n.r(t),n.d(t,"initialize",function(){return Fe}),n.d(t,"multiFeedback",function(){return qe}),n.d(t,"singleFeedback",function(){return Re}),n.d(t,"getFeedbackStatus",function(){return Ue}),n.d(t,"reset",function(){return ze});var r={};n.r(r),n.d(r,"generate",function(){return pe}),n.d(r,"containerId",function(){return de}),n.d(r,"onSelect",function(){return ve}),n.d(r,"isEmailEnabled",function(){return me}),n.d(r,"isScreenshotEnabled",function(){return ge}),n.d(r,"type",function(){return ye});var i={};n.r(i),n.d(i,"generate",function(){return Ne}),n.d(i,"containerId",function(){return Ce}),n.d(i,"onSelect",function(){return ke}),n.d(i,"type",function(){return Le});var s={};n.r(s),n.d(s,"generate",function(){return Ae}),n.d(s,"containerId",function(){return Oe}),n.d(s,"onSelect",function(){return Me}),n.d(s,"type",function(){return _e});var o=n(26),u=n(27),a=n(1),f=n(2),l=n(7),c=n(0),h=n(22),p=n(25),d=n(34),v=n(3);function m(e){if(!e.parentElement)return!1;if(/\S/.test(e.parentElement.id)){if(e.parentElement.className.indexOf(c.c.Visible)>=0)return!0;if(e.parentElement.className.indexOf(c.c.Hidden)>=0)return!1}return m(e.parentElement)}var g,y,b,w=!1,E=!0,S=void 0,x=void 0,T=[c.d.OverallSmileAnchor,c.d.OverallFrownAnchor,c.d.OverallIdeaAnchor,c.d.OverallBugAnchor];function N(e){var t;for(t=0;t<T.length;t++)T[t]===e?v.k(T[t],c.a.AriaSelected,c.b.True):v.k(T[t],c.a.AriaSelected,c.b.False)}function C(e){v.i(window,"keyup",M),(function(){for(var e=0,t=k;e<t.length;e++){var n=t[e];v.m(n.id,n.event,n.listener)}k=[]})(),g(e)}var k=[];function L(e,t,n){v.g(e,t,n),k.push({event:t,id:e,listener:n})}function A(e){g=e,v.c(window,"keyup",M),L(c.d.OverlayBackground,"click",_),L(c.d.MainContainer,"click",D),L(c.d.MainContainer,"keyup",O),L(c.d.PrivacyStatementLink,"click",P),L(c.d.EmailCheckBox,"click",$),L(c.d.BasicFormComment,"keyup",J),L(c.d.SingleFormComment,"keyup",K),$(null)}function O(e){(e.keyCode||e.which)===c.e.Tab&&(document.activeElement.id===c.d.FirstTabbable&&e.shiftKey||document.activeElement.id===c.d.LastTabbable&&!e.shiftKey)&&(e.stopPropagation(),(function(e){var t=document.getElementById(c.d.MainContainer).querySelectorAll("a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']), select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex ='-1']), object, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]");if(e.id===c.d.LastTabbable){for(var n=0;n<t.length;n++)if((r=t[n]).id!==c.d.FirstTabbable&&m(r))return void r.focus()}else if(e.id===c.d.FirstTabbable)for(n=t.length-1;n>=0;n--){var r;if((r=t[n]).id!==c.d.LastTabbable&&m(r))return void r.focus()}})(document.activeElement))}function M(e){e.keyCode===c.e.Esc&&(e.preventDefault(),e.stopPropagation(),C(!1))}function _(e){e.preventDefault(),e.stopPropagation(),C(!1)}function D(e){e.stopPropagation()}function P(e){e.stopPropagation()}function H(e,t){if(e.preventDefault(),e.stopPropagation(),v.j(c.d.OverallSmileAnchor,c.c.OverallAnchorActive),v.j(c.d.OverallFrownAnchor,c.c.OverallAnchorActive),v.j(c.d.OverallIdeaAnchor,c.c.OverallAnchorActive),v.j(c.d.OverallBugAnchor,c.c.OverallAnchorActive),t&&v.b(t,c.c.OverallAnchorActive),f.b().logEvent(f.a.InApp.UI.Form.Shown.VALUE,1,{FeedbackType:S,PanelType:x}),void 0!==S){v.l(c.d.LeftFormContainer,!0),v.l(c.d.MiddleFormContainer,!0),v.l(c.d.LeftPanelContainer,!1);var n=y[S];R(n.containerId),E&&R(n.containerId),n.onSelect(S)}if(void 0!==x){for(var r in v.l(c.d.LeftFormContainer,!1),v.l(c.d.MiddleFormContainer,!1),v.l(c.d.LeftPanelContainer,!0),b)b.hasOwnProperty(r)&&v.l(b[r].containerId,!0);b[x].onSelect(x)}}function B(e){S=l.c.Smile,x=void 0,N(c.d.OverallSmileAnchor),v.k(c.d.MiddleFormContainer,c.a.AriaExpanded,c.b.True),v.k(c.d.MiddleFormContainer,c.a.AriaLabelledBy,c.d.OverallSmileAnchor),H(e,c.d.OverallSmileAnchor)}function j(e){S=l.c.Frown,x=void 0,N(c.d.OverallFrownAnchor),v.k(c.d.MiddleFormContainer,c.a.AriaExpanded,c.b.True),v.k(c.d.MiddleFormContainer,c.a.AriaLabelledBy,c.d.OverallFrownAnchor),H(e,c.d.OverallFrownAnchor)}function F(e){S=l.c.Idea,x=void 0,N(c.d.OverallIdeaAnchor),v.k(c.d.MiddleFormContainer,c.a.AriaExpanded,c.b.True),v.k(c.d.MiddleFormContainer,c.a.AriaLabelledBy,c.d.OverallIdeaAnchor),H(e,c.d.OverallIdeaAnchor)}function I(e){S=l.c.Bug,x=void 0,N(c.d.OverallBugAnchor),v.k(c.d.MiddleFormContainer,c.a.AriaExpanded,c.b.True),v.k(c.d.MiddleFormContainer,c.a.AriaLabelledBy,c.d.OverallBugAnchor),H(e,c.d.OverallBugAnchor)}function q(e,t){v.l(c.d.LeftFormContainer,t);for(var n=document.getElementById(c.d.MiddleFormContainer).children,r=0;r<n.length;r++)n[r].id!==e&&v.l(n[r].id,t)}function R(e){for(var t in y)y.hasOwnProperty(t)&&v.l(y[t].containerId,!1);w?(v.l(c.d.LeftFormContainer,!1),v.l(c.d.MiddleFormContainer,!0),v.l(e,!0)):(v.b(c.d.ColumnSeparatorDiv,c.c.ShowRightBorder),v.l(c.d.MiddleFormContainer,!0),v.l(e,!0),v.b(c.d.LeftFormContainer,c.c.SlideLeft),v.b(c.d.MiddleFormContainer,c.c.SlideLeft))}function U(e,t,n,r,i,s,o){return function(s){s.preventDefault(),s.stopPropagation(),v.l(e,!1);var u=new d.a(t),l=new h.a(a.get().getCommonInitOptions().environment,"Sas",a.get().getCommonInitOptions().appId,S,a.get().getCommonInitOptions().applicationGroup,a.get().getCommonInitOptions().telemetryGroup,a.get().getCommonInitOptions().webGroup),m=document.getElementById(n);m&&m.value&&l.setComment(m.value);var g=document.getElementById(c.d.EmailCheckBox),y=document.getElementById(r),b=y&&!!y.value;g&&g.checked&&b&&l.setEmail(y.value);var w=document.getElementById(i),E=w&&w.checked,T=document.getElementById(o);if(T&&T.selectedIndex>0&&l.setCategory(T.value),f.b().logEvent(f.a.InApp.UI.Form.Submit.VALUE,1,{FeedbackType:S,IsEmailIncluded:b,IsScreenshotIncluded:E}),E){var N=performance.now();p.a(document.body).then(function(e){var t=performance.now();f.b().logEvent(f.a.Shared.Screenshot.Render.Success.VALUE,1,{TimeMilliseconds:t-N}),l.setScreenshot(e),l.submit()}).catch(function(e){var t=performance.now();f.b().logEvent(f.a.Shared.Screenshot.Render.Failed.VALUE,2,{ErrorMessage:e,TimeMilliseconds:t-N}),l.submit()})}else l.submit();u.destroy(),a.get().getInAppFeedbackInitOptions().isShowThanks?(function(e){S=void 0,x=0,q(c.d.ThanksPanelContainer,!1),H(e,void 0)})(s):C(!0)}}function z(e,t){q(c.d.ThanksPanelContainer,!0),C(t)}function W(e){e.preventDefault(),e.stopPropagation(),window.open(document.getElementById(c.d.UserVoiceFormGoButton).getAttribute(c.a.Source)),C(!1)}function X(e,t){return function(n){v.a(e,t)}}function V(){C(!1)}function $(e){var t=document.getElementById(c.d.EmailCheckBox);if(t){var n=document.getElementById(c.d.SingleFormEmailInput);n||(n=document.getElementById(c.d.BasicFormEmailInput)),n.value=t.checked?a.get().getCommonInitOptions().userEmail:null,n.disabled=!t.checked}}function J(e){var t=document.getElementById(c.d.BasicFormComment),n=t&&!!t.value;document.getElementById(c.d.BasicFormSubmitButton).disabled=!n}function K(e){var t=document.getElementById(c.d.SingleFormComment),n=t&&!!t.value;document.getElementById(c.d.SingleFormSubmitButton).disabled=!n}var Q,G=n(5);function Y(e){for(var t=e||[],n=[{attributes:[{name:"selected",value:"true"}],innerText:G.a().Form.CategoryPlaceholder,tag:c.g.Option}],r=0,i=t;r<i.length;r++){var s=i[r];n.push({innerText:s,tag:c.g.Option})}return n}!(function(e){e[e.Single=0]="Single",e[e.Basic=1]="Basic",e[e.UserVoice=2]="UserVoice"})(Q||(Q={}));var Z="obf-star",ee={children:[{attributes:[{name:c.a.Id,value:Z},{name:c.a.X,value:"0"},{name:c.a.Y,value:"0"},{name:c.a.Width,value:"105"},{name:c.a.Height,value:"100"},{name:c.a.Points,value:"52.5, 80.3 84, 100 76.3, 63 105, 38 67.2, 35 52.5, 0 37.8, 35 0, 38 28.7, 63 20, 100 52.5, 80.3"}],id:Z,tag:c.g.Polygon}],tag:c.g.Defs},te={attributes:[{name:c.a.xlinkHref,value:"#"+Z}],tag:c.g.Use},ne={attributes:[{name:c.a.xlinkHref,value:"#"+Z},{name:c.a.Transform,value:"translate(105 0)"}],tag:c.g.Use},re={attributes:[{name:c.a.xlinkHref,value:"#"+Z},{name:c.a.Transform,value:"translate(210 0)"}],tag:c.g.Use},ie={attributes:[{name:c.a.xlinkHref,value:"#"+Z},{name:c.a.Transform,value:"translate(315 0)"}],tag:c.g.Use},se={attributes:[{name:c.a.xlinkHref,value:"#"+Z},{name:c.a.Transform,value:"translate(420 0)"}],tag:c.g.Use},oe={attributes:[{name:c.a.ViewBox,value:"0 0 525 100"}],children:[ee,te,ne,re,ie,se],classes:[c.c.RatingGraphic],tag:c.g.Svg},ue={attributes:[{name:c.a.ViewBox,value:"0 0 105 100"}],children:[ee,te],classes:[c.c.RatingGraphic,c.c.RatingGraphicFilled],tag:c.g.Svg},ae={attributes:[{name:c.a.ViewBox,value:"0 0 210 100"}],children:[ee,te,ne],classes:[c.c.RatingGraphic,c.c.RatingGraphicFilled],tag:c.g.Svg},fe={attributes:[{name:c.a.ViewBox,value:"0 0 315 100"}],children:[ee,te,ne,re],classes:[c.c.RatingGraphic,c.c.RatingGraphicFilled],tag:c.g.Svg},le={attributes:[{name:c.a.ViewBox,value:"0 0 420 100"}],children:[ee,te,ne,re,ie],classes:[c.c.RatingGraphic,c.c.RatingGraphicFilled],tag:c.g.Svg},ce={attributes:[{name:c.a.ViewBox,value:"0 0 525 100"}],children:[ee,te,ne,re,ie,se],classes:[c.c.RatingGraphic,c.c.RatingGraphicFilled],tag:c.g.Svg};function he(e){return{children:[oe,{attributes:[{name:c.a.Type,value:"radio"},{name:c.a.Name,value:e},{name:c.a.Value,value:"1"}],tag:c.g.Input},ue,{attributes:[{name:c.a.Type,value:"radio"},{name:c.a.Name,value:e},{name:c.a.Value,value:"2"}],tag:c.g.Input},ae,{attributes:[{name:c.a.Type,value:"radio"},{name:c.a.Name,value:e},{name:c.a.Value,value:"3"}],tag:c.g.Input},fe,{attributes:[{name:c.a.Type,value:"radio"},{name:c.a.Name,value:e},{name:c.a.Value,value:"4"}],tag:c.g.Input},le,{attributes:[{name:c.a.Type,value:"radio"},{name:c.a.Name,value:e},{name:c.a.Value,value:"5"}],tag:c.g.Input},ce],classes:[c.c.Rating],id:e,tag:c.g.Span}}function pe(){var e=a.get().getInAppFeedbackLaunchOptions().categories;return{children:[{attributes:[{name:c.a.For,value:c.d.BasicFormComment}],classes:[c.c.FontSubtitle,c.c.TextAlignLeft,c.c.FormQuestionMiddleText],id:c.d.BasicFormQuestionMiddleText,tag:c.g.Label,innerText:a.get().getInAppFeedbackInitOptions().transitionEnabled?"":G.a().SingleForm.Title},{attributes:[{name:c.a.Id,value:c.d.BasicFormCategoriesDropdown}],brs:e.show,children:Y(e?e.customCategories:null),classes:[c.c.FontSubText,c.c.FormCategoriesDropdown,c.c.TextInput],tag:c.g.Select},{attributes:[{name:c.a.Placeholder,value:G.a().Form.CommentPlaceholder},{name:c.a.MaxLength,value:c.b.TextAreaMaxLength}],classes:[c.c.FontSubText,c.c.FormComment,c.c.TextInput],id:c.d.BasicFormComment,tag:c.g.TextArea},{brs:!1,children:[{attributes:[{name:c.a.For,value:c.d.BasicFormRating}],classes:[c.c.FontText,c.c.TextAlignLeft,c.c.FormRatingLabel],innerText:G.a().Form.RatingLabel,tag:c.g.Label},he(c.d.BasicFormRating)],classes:[c.c.FormRatingContainer]},{brs:me(),children:[{attributes:[{name:c.a.Type,value:c.b.Checkbox},{name:c.b.Unchecked,value:""}],classes:[c.c.FormEmailCheckBox,c.c.CheckBox],id:c.d.EmailCheckBox,tag:c.g.Input},{attributes:[{name:c.a.For,value:c.d.EmailCheckBox}],classes:[c.c.FontSubText,c.c.TextAlignLeft,c.c.FormEmailLabel],innerText:G.a().Form.EmailCheckBoxLabel,tag:c.g.Label},{attributes:[{name:c.a.Type,value:c.b.Text},{name:c.a.Placeholder,value:G.a().Form.EmailPlaceholder},{name:c.a.AriaLabel,value:G.a().Form.EmailPlaceholder},{name:c.a.Name,value:c.d.BasicFormEmailInput},{name:c.a.MaxLength,value:c.b.TextAreaMaxLength},{name:c.a.Value,value:a.get().getInAppFeedbackInitOptions().userEmail?a.get().getInAppFeedbackInitOptions().userEmail:""}],classes:[c.c.FontSubText,c.c.FormEmailInput,c.c.TextInput],id:c.d.BasicFormEmailInput,tag:c.g.Input}],classes:[c.c.FormEmailContainer]},{children:[{attributes:[{name:c.a.Type,value:c.b.Checkbox},{name:c.a.Value,value:c.b.Unchecked}],brs:ge(),classes:[c.c.FormScreenshotCheckbox,c.c.CheckBox],id:c.d.BasicFormScreenshotCheckbox,tag:c.g.Input},{attributes:[{name:c.a.For,value:c.d.BasicFormScreenshotCheckbox}],brs:ge(),classes:[c.c.FontSubText,c.c.TextAlignLeft,c.c.FormScreenshotLabel],innerText:G.a().Form.ScreenshotLabel,tag:c.g.Label},{attributes:[{name:c.a.Preview,value:c.b.ScreenshotPreview},{name:c.a.Alt,value:G.a().Form.ScreenshotImgAltText}],brs:a.get().getInAppFeedbackInitOptions().screenshot,id:c.d.BasicFormScreenshotPreview,classes:[c.c.FormScreenshotPreview],tag:c.g.Img}],classes:[c.c.FormScreenshotContainer]},{children:[{classes:[c.c.FontSubSubText,c.c.TextAlignLeft],innerText:G.a().Form.PrivacyLabel,tag:c.g.Label},{classes:[c.c.FontSubSubText,c.c.TextAlignLeft],innerText:a.get().getCommonInitOptions().isCommercialHost?G.a().Form.PrivacyConsent+" ":"",tag:c.g.Label},{attributes:[{name:c.a.HRef,value:c.h.PrivacyStatementLink},{name:c.a.Target,value:c.b.BlankWindow},{name:c.a.Rel,value:c.b.NoReferrer}],classes:[c.c.Link],id:c.d.PrivacyStatementLink,innerText:G.a().PrivacyStatement,tag:c.g.Anchor}],classes:[c.c.FontSubSubText,c.c.TextAlignLeft,c.c.PrivacyStatementLinkDiv]},{children:[{attributes:[{name:c.a.Type,value:c.b.Button},{name:c.a.AriaLabel,value:G.a().Form.Cancel}],classes:[c.c.CancelButton],id:c.d.BasicFormCancelButton,innerText:G.a().Form.Cancel,tag:c.g.Button},{attributes:[{name:c.a.Disabled,value:c.b.True}],classes:[c.c.SubmitButton],id:c.d.BasicFormSubmitButton,innerText:G.a().Form.Submit,tag:c.g.Button},{classes:[c.c.Spinner,c.c.Hidden],id:c.d.BasicFormSubmitButtonSpinner,tag:c.g.Div}],classes:[c.c.FormSubmitButtonContainer]}],classes:[a.get().getInAppFeedbackInitOptions().transitionEnabled?c.c.Hidden:c.c.Visible,c.c.MarginLeft60px],id:de}}var de=c.d.BasicFormContainer;function ve(e){switch(e){case l.c.Smile:document.getElementById(c.d.BasicFormQuestionMiddleText).textContent=G.a().SmileForm.Title;break;case l.c.Frown:document.getElementById(c.d.BasicFormQuestionMiddleText).textContent=G.a().FrownForm.Title;break;case l.c.Idea:document.getElementById(c.d.BasicFormQuestionMiddleText).textContent=G.a().IdeaForm.Title;break;case l.c.Bug:document.getElementById(c.d.BasicFormQuestionMiddleText).textContent=G.a().BugForm.Title}document.getElementById(c.d.BasicFormComment).focus()}function me(){return!(!a.get().getInAppFeedbackInitOptions().showEmailAddress||a.get().getCommonInitOptions().isCommercialHost&&1!==a.get().getCommonInitOptions().emailPolicyValue)}function ge(){return!(!a.get().getInAppFeedbackInitOptions().screenshot||a.get().getCommonInitOptions().isCommercialHost&&1!==a.get().getCommonInitOptions().screenshotPolicyValue)}var ye=Q.Basic,be=c.d.SingleFormContainer;Q.Single;function we(e){var t={children:[]},n={};for(var r in e)e.hasOwnProperty(r)&&!(e[r].containerId in n)&&(t.children.push(e[r].generate()),n[e[r].containerId]=!0);return t.children}function Ee(e){var t={children:[]},n={};for(var r in e)e.hasOwnProperty(r)&&!(e[r].containerId in n)&&(t.children.push(e[r].generate()),n[e[r].containerId]=!0);return t.children}function Se(e){var t={children:[]};return l.c.Smile in e&&t.children.push(xe(c.d.OverallSmileAnchor,c.d.OverallSmileImage,'<svg viewBox="0 0 72 72" width="24px" height="24px" focusable="false"><path d="M36 1C16.7 1 1 16.7 1 36s15.7 35 35 35c19.3 0 35-15.7 35-35S55.3 1 36 1ZM49.3 18.3c2.3 0 4.2 2.7 4.2 6 0 3.3-1.9 6-4.2 6 -2.3 0-4.2-2.7-4.2-6C45.1 21 47 18.3 49.3 18.3ZM22.9 18.3c2.3 0 4.2 2.7 4.2 6 0 3.3-1.9 6-4.2 6 -2.3 0-4.2-2.7-4.2-6C18.7 21 20.6 18.3 22.9 18.3ZM36 58.6c-8.5 0-16-4.1-20.9-10.4l3.5-3.6c3.5 4.5 9.9 7.6 17.4 7.6 7.4 0 13.9-3.1 17.4-7.6l3.6 3.6C52.1 54.4 44.4 58.6 36 58.6Z"/></svg>',c.d.OverallSmileText,G.a().SmileForm.Anchor)),l.c.Frown in e&&t.children.push(xe(c.d.OverallFrownAnchor,c.d.OverallFrownImage,'<svg viewBox="0 0 72 72" width="24px" height="24px" focusable="false"><path d="M36 1C16.7 1 1 16.7 1 36s15.7 35 35 35c19.3 0 35-15.7 35-35S55.3 1 36 1ZM49.3 18.3c2.3 0 4.2 2.7 4.2 6 0 3.3-1.9 6-4.2 6 -2.3 0-4.2-2.7-4.2-6C45.1 21 47 18.3 49.3 18.3ZM22.9 18.3c2.3 0 4.2 2.7 4.2 6 0 3.3-1.9 6-4.2 6 -2.3 0-4.2-2.7-4.2-6C18.7 21 20.6 18.3 22.9 18.3ZM52.8 57.9c-3.3-4.4-9.6-7.3-16.7-7.3 -7.2 0-13.4 3-16.7 7.3l-3.4-3.4c4.7-6.1 11.9-10 20.1-10 8.2 0 15.5 4 20.2 10L52.8 57.9Z"/></svg>',c.d.OverallFrownText,G.a().FrownForm.Anchor)),l.c.Idea in e&&t.children.push(xe(c.d.OverallIdeaAnchor,c.d.OverallIdeaImage,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" focusable="false" viewBox="0,0,2048,2048"><path fill="#FAFAFA" fill-opacity="1.000" d="M 213 1920 v -546 l 275 -649 h 1072 l 275 649 v 546 z" /><path fill="#3A3A38" fill-opacity="1.000" d="M 1877 1365 v 598 h -1706 v -598 l 289 -682 h 288 l -41 41 l 44 44 h -239 l -248 597 h 1520 l -221 -532 l 63 -62 m 166 680 h -1536 v 426 h 1536 z" /><path fill="#FAFAFA" fill-opacity="1.000" d="M 1049 1067 l -342 -343 l 664 -664 l 482 483 l -523 524 z" /><path fill="#797774" fill-opacity="1.000" d="M 1536 649 l -271 -272 l 60 -60 l 272 271 m -211 212 l -272 -272 l 60 -60 l 272 271 m -211 211 l -272 -271 l 61 -61 l 271 272 z" /><path fill="#1E8BCD" fill-opacity="1.000" d="M 989 1067 l -343 -343 l 725 -724 l 543 543 l -524 524 h -121 l 524 -524 l -422 -422 l -604 603 l 343 343 z" /><path fill="#3A3A38" fill-opacity="1.000" d="M 1451 1109 h -854 v -85 h 854 z" /></svg>',c.d.OverallIdeaText,G.a().IdeaForm.Anchor)),l.c.Bug in e&&t.children.push(xe(c.d.OverallBugAnchor,c.d.OverallBugImage,'<svg viewBox="150 100 1748 1748" width="24px" height="24px" focusable="false"><path d="M1824 1088q0 26-19 45t-45 19h-224q0 171-67 290l208 209q19 19 19 45t-19 45q-18 19-45 19t-45-19l-198-197q-5 5-15 13t-42 28.5-65 36.5-82 29-97 13v-896h-128v896q-51 0-101.5-13.5t-87-33-66-39-43.5-32.5l-15-14-183 207q-20 21-48 21-24 0-43-16-19-18-20.5-44.5t15.5-46.5l202-227q-58-114-58-274h-224q-26 0-45-19t-19-45 19-45 45-19h224v-294l-173-173q-19-19-19-45t19-45 45-19 45 19l173 173h844l173-173q19-19 45-19t45 19 19 45-19 45l-173 173v294h224q26 0 45 19t19 45zm-480-576h-640q0-133 93.5-226.5t226.5-93.5 226.5 93.5 93.5 226.5z"/></svg>',c.d.OverallBugText,G.a().BugForm.Anchor)),t.children}function xe(e,t,n,r,i){return{attributes:[{name:c.a.Type,value:c.b.Button},{name:c.a.Role,value:c.b.Tab},{name:c.a.AriaLabel,value:i},{name:c.a.AriaSelected,value:c.b.False}],children:[{classes:[c.c.OverallImage],id:t,innerHTML:n,tag:c.g.Div},{classes:[c.c.FontSubtitle,c.c.OverallText],id:r,innerText:i}],classes:[c.c.OverallAnchor,c.c.TextAlignLeft],id:e,tag:c.g.Button}}var Te=n(31);function Ne(){var e,t,n,r,i,s,o,u=a.get().getCommonInitOptions().primaryColour;return{children:[{tag:c.g.Div,id:c.d.ThanksPanelInnerContainer,children:[{id:c.d.ThanksPanelDiscussion,innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30.4 25.3"\n\trole="presentation" alt="" tabindex="-1" focusable="false">\n\t<defs>\n\t\t<style>\n\t\t\t.cls-1,.cls-3{isolation:isolate;}\n\t\t\t.cls-2{fill:#e1dfdd;}\n\t\t\t.cls-3{fill:'+u+';opacity:0.4;}\n\t\t\t.cls-4{fill:#c8c6c4;mix-blend-mode:multiply;}\n\t\t\t.cls-5{fill:#fff;}</style>\n\t</defs>\n\t<title>commentsOffice</title>\n\t<g class="cls-1">\n\t\t<g id="Layer_1" data-name="Layer 1">\n\t\t\t<path class="cls-2" d="M17.8,0H1.2A1.216,1.216,0,0,0,0,1.2V15.3a1.1554,1.1554,0,0,0,1.2,1.2H7l.1,\n\t\t\t\t4.1L10,16.5h7.9a1.1554,1.1554,0,0,0,1.2-1.2V1.2A1.305,1.305,0,0,0,17.8,0Z"/>\n\t\t\t<path class="cls-3" d="M28.5,10.8a6.0429,6.0429,0,0,0-3.2-2,7.1943,7.1943,0,0,0-6.4,1,7.4884,\n\t\t\t\t7.4884,0,0,0-3.1,5.7,6.016,6.016,0,0,0,.9,3.7,6.9394,6.9394,0,0,0,5,3.7l2.9,2.4L24.4,23a7.8372,\n\t\t\t\t7.8372,0,0,0,3-1.3,7.4574,7.4574,0,0,0,3-4.7A7.5076,7.5076,0,0,0,28.5,10.8Z"/>\n\t\t\t<path id="Layer2_1_MEMBER_1_FILL" data-name="Layer2 1 MEMBER 1 FILL" class="cls-4" d="M11.9885,\n\t\t\t\t8.0154a.8939.8939,0,1,0,.6371-.2589.8653.8653,0,0,0-.6371.2589M6.8115,9.24A.8977.8977,0,1,0,\n\t\t\t\t5.5532,7.9589.8977.8977,0,1,0,6.8115,9.24m3.2259-1.2412a.894.894,0,1,0,.2588.637A.8653.8653,\n\t\t\t\t0,0,0,10.0374,7.9983Z"/>\n\t\t\t<path class="cls-5" d="M20.9019,16.3243a.8008.8008,0,0,0,.2586-.5659.8371.8371,0,0,\n\t\t\t\t0-.21-.5919.7693.7693,0,0,0-1.1091-.05.8379.8379,0,0,0-.2627.5706.8012.8012,0,0,0,\n\t\t\t\t.2066.5869.77.77,0,0,0,1.1167.05m1.51-.51a.8014.8014,0,0,0,.2066.5874.7695.7695,0,0,0,\n\t\t\t\t1.1127.0541.8379.8379,0,0,0,.2627-.57.8009.8009,0,0,0-.2066-.5869.7694.7694,0,0,\n\t\t\t\t0-1.1167-.05.8011.8011,0,0,0-.2587.5663m2.8279.1272a.8371.8371,0,0,0,.21.5919.7693.7693,0,0,\n\t\t\t\t0,1.1091.05.8379.8379,0,0,0,.2627-.5706.8012.8012,0,0,0-.2066-.5869.77.77,0,0,\n\t\t\t\t0-1.1167-.05A.8008.8008,0,0,0,25.24,15.9416Z"/>\n\t\t</g>\n\t</g>\n</svg>',tag:c.g.Div},{id:c.d.ThanksPanelVerticalContainer,tag:c.g.Div,children:[{classes:[c.c.FontTitle,c.c.TextAlignLeft,c.c.FormQuestionMiddleText,c.c.ThanksPanelTitle],innerText:null===(e=G.a().ThanksPanel)||void 0===e?void 0:e.Title,tag:c.g.Div},{classes:[c.c.FontSubText,c.c.TextAlignLeft,c.c.ThanksPanelMessage],innerText:null===(t=G.a().ThanksPanel)||void 0===t?void 0:t.AppreciateText,tag:c.g.Div},{classes:[c.c.SubmitButton],id:c.d.ThanksPanelCloseButton,innerText:null===(n=G.a().ThanksPanel)||void 0===n?void 0:n.Close,ariaLabel:null===(r=G.a().ThanksPanel)||void 0===r?void 0:r.Close,tag:c.g.Button,role:c.f.Button,attributes:[{name:"aria-label",value:(null===(i=G.a().ThanksPanel)||void 0===i?void 0:i.Title)+" "+(null===(s=G.a().ThanksPanel)||void 0===s?void 0:s.AppreciateText)+" "+(null===(o=G.a().ThanksPanel)||void 0===o?void 0:o.Close)},{name:"type",value:"button"}]}]}]}],classes:[c.c.Hidden],id:Ce}}var Ce=c.d.ThanksPanelContainer;function ke(e){0===e&&document.getElementById(c.d.ThanksPanelCloseButton).focus()}var Le=0;function Ae(){var e=a.get().getInAppFeedbackInitOptions().userVoice;return{children:[{classes:[c.c.FontSubtitle,c.c.TextAlignLeft,c.c.FormQuestionMiddleText],innerText:G.a().UserVoiceForm.Title},{classes:[c.c.FontText,c.c.TextAlignLeft,c.c.FormMiddleText],innerText:G.a().UserVoiceForm.Text},{children:[{children:[{attributes:[{name:c.a.Source,value:e.url}],classes:[c.c.SubmitButton],id:c.d.UserVoiceFormGoButton,innerText:G.a().UserVoiceForm.Button,tag:c.g.Button}],classes:[c.c.FormSubmitButtonContainer]}],classes:[c.c.FormBottomContainer]}],classes:[c.c.Hidden,c.c.MarginLeft60px],id:Oe}}var Oe=c.d.UserVoiceFormContainer;function Me(e){document.getElementById(c.d.UserVoiceFormGoButton).focus()}var _e=Q.UserVoice;function De(e,t){var n={};a.get().getInAppFeedbackInitOptions().isShowThanks&&(n[0]=i),Pe(Te.a((function(e){var t;return{attributes:[{name:c.a.DataHtml2CanvasIgnore,value:c.b.True}],children:[{children:[{attributes:[{name:c.a.TabIndex,value:c.b.Zero}],id:c.d.FirstTabbable},{attributes:[{name:c.a.Type,value:c.b.Button},{name:c.a.AriaLabel,value:G.a().CloseLabel}],id:c.d.CloseButton,classes:[c.c.CloseButton],innerHTML:'<svg viewBox="4 4 16 16" width="16px" height="16px" focusable="false"><path d="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/></svg>',tag:c.g.Button},{children:[{children:[(t=a.get().getInAppFeedbackLaunchOptions().categories,{children:[{attributes:[{name:c.a.For,value:c.d.SingleFormComment}],classes:[c.c.FontSubtitle,c.c.TextAlignLeft,c.c.FormQuestionMiddleText],id:c.d.SingleFormQuestionMiddleText,innerText:G.a().SingleForm.Title,tag:c.g.Label},{attributes:[{name:c.a.Id,value:c.d.SingleFormCategoriesDropdown}],brs:t.show,children:Y(t?t.customCategories:null),classes:[c.c.FontSubText,c.c.FormCategoriesDropdown,c.c.TextInput],tag:c.g.Select},{attributes:[{name:c.a.Placeholder,value:G.a().Form.CommentPlaceholder},{name:c.a.MaxLength,value:c.b.TextAreaMaxLength}],classes:[c.c.FontSubText,c.c.FormComment,c.c.TextInput],id:c.d.SingleFormComment,tag:c.g.TextArea},{brs:!1,children:[{attributes:[{name:c.a.For,value:c.d.SingleFormRating}],classes:[c.c.FontSubText,c.c.TextAlignLeft,c.c.FormRatingLabel],innerText:G.a().Form.RatingLabel,tag:c.g.Label},he(c.d.SingleFormRating)],classes:[c.c.FormRatingContainer]},{brs:me(),children:[{attributes:[{name:c.a.Type,value:c.b.Checkbox},{name:c.b.Unchecked,value:""}],classes:[c.c.FormEmailCheckBox,c.c.CheckBox],id:c.d.EmailCheckBox,tag:c.g.Input},{attributes:[{name:c.a.For,value:c.d.EmailCheckBox}],classes:[c.c.FontSubText,c.c.TextAlignLeft,c.c.FormEmailLabel],innerText:G.a().Form.EmailCheckBoxLabel,tag:c.g.Label},{attributes:[{name:c.a.Type,value:c.b.Text},{name:c.a.Placeholder,value:G.a().Form.EmailPlaceholder},{name:c.a.AriaLabel,value:G.a().Form.EmailPlaceholder},{name:c.a.Name,value:c.d.SingleFormEmailInput},{name:c.a.MaxLength,value:c.b.TextAreaMaxLength},{name:c.a.Value,value:a.get().getInAppFeedbackInitOptions().userEmail?a.get().getInAppFeedbackInitOptions().userEmail:""}],classes:[c.c.FontSubText,c.c.FormEmailInput,c.c.TextInput],id:c.d.SingleFormEmailInput,tag:c.g.Input}],classes:[c.c.FormEmailContainer]},{children:[{attributes:[{name:c.a.Type,value:c.b.Checkbox},{name:c.a.Value,value:c.b.Unchecked}],brs:ge(),classes:[c.c.FormScreenshotCheckbox,c.c.CheckBox],id:c.d.SingleFormScreenshotCheckbox,tag:c.g.Input},{attributes:[{name:c.a.For,value:c.d.SingleFormScreenshotCheckbox}],brs:ge(),classes:[c.c.FontText,c.c.TextAlignLeft,c.c.FormScreenshotLabel],innerText:G.a().Form.ScreenshotLabel,tag:c.g.Label},{attributes:[{name:c.a.Preview,value:c.b.ScreenshotPreview}],brs:a.get().getInAppFeedbackInitOptions().screenshot,id:c.d.SingleFormScreenshotPreview,classes:[c.c.FormScreenshotPreview],tag:c.g.Img}],classes:[c.c.FormScreenshotContainer]},{children:[{classes:[c.c.FontSubSubText,c.c.TextAlignLeft],innerText:G.a().Form.PrivacyLabel,tag:c.g.Label},{classes:[c.c.FontSubSubText,c.c.TextAlignLeft],innerText:a.get().getCommonInitOptions().isCommercialHost?G.a().Form.PrivacyConsent+" ":"",tag:c.g.Label},{attributes:[{name:c.a.HRef,value:c.h.PrivacyStatementLink},{name:c.a.Target,value:c.b.BlankWindow},{name:c.a.Rel,value:c.b.NoReferrer}],classes:[c.c.Link],id:c.d.PrivacyStatementLink,innerText:G.a().PrivacyStatement,tag:c.g.Anchor}],classes:[c.c.FontSubSubText,c.c.TextAlignLeft,c.c.PrivacyStatementLinkDiv]},{children:[{attributes:[{name:c.a.Type,value:c.b.Button},{name:c.a.AriaLabel,value:G.a().Form.Cancel}],classes:[c.c.CancelButton],id:c.d.SingleFormCancelButton,innerText:G.a().Form.Cancel,tag:c.g.Button},{attributes:[{name:c.a.Disabled,value:c.b.True}],classes:[c.c.SubmitButton],id:c.d.SingleFormSubmitButton,innerText:G.a().Form.Submit,tag:c.g.Button},{classes:[c.c.Spinner,c.c.Hidden],id:c.d.SingleFormSubmitButtonSpinner,tag:c.g.Div}],classes:[c.c.FormSubmitButtonContainer]}],id:be})],classes:[c.c.FormContainer],id:c.d.MiddleFormContainer}].concat(Ee(e)),classes:[c.c.Hidden],id:c.d.MainContentHolder,tag:c.g.Form},{attributes:[{name:c.a.TabIndex,value:c.b.Zero}],id:c.d.LastTabbable}],id:c.d.MainContainer}],classes:[c.c.SingleLayout,v.f()?c.c.Rtl:""],id:c.d.OverlayBackground}})(n))),(function(e,t,n){void 0===n&&(n=function(e){}),S=e,b=t,L(c.d.SingleFormSubmitButton,"click",U(c.d.SingleFormSubmitButton,c.d.SingleFormSubmitButtonSpinner,c.d.SingleFormComment,c.d.SingleFormEmailInput,c.d.SingleFormScreenshotCheckbox,c.d.SingleFormScreenshotPreview,c.d.SingleFormCategoriesDropdown)),L(c.d.SingleFormScreenshotCheckbox,"click",X(c.d.SingleFormScreenshotCheckbox,c.d.SingleFormScreenshotPreview)),L(c.d.CloseButton,"click",function(){C(!1)}),L(c.d.ThanksPanelCloseButton,"click",function(e){return z(0,!0)}),L(c.d.SingleFormCancelButton,"click",V),A(n)})(t,n,function(t){v.l(c.d.OverlayBackground,!1),v.d(c.d.OverlayBackground),a.get().getInAppFeedbackInitOptions().onDismiss(t),e()}),v.b(c.d.OverlayBackground,c.c.SingleLayout),v.a(c.d.SingleFormScreenshotCheckbox,c.d.SingleFormScreenshotPreview)}function Pe(e){document.body.insertBefore(e,document.body.firstChild),v.l(c.d.OverlayBackground,!0),v.e()>9||-1===v.e()?setTimeout(He,900):He()}function He(){v.l(c.d.MainContentHolder,!0),document.getElementById(c.d.OverallSmileAnchor)?(document.getElementById(c.d.OverallSmileAnchor).focus(),v.a(c.d.BasicFormScreenshotCheckbox,c.d.BasicFormScreenshotPreview)):document.getElementById(c.d.SingleFormComment)&&(document.getElementById(c.d.SingleFormComment).focus(),v.a(c.d.SingleFormScreenshotCheckbox,c.d.SingleFormScreenshotPreview))}var Be=n(8),je=!1;function Fe(){return new Promise(function(e,t){if(je)e();else{try{o.a()}catch(e){t("CommonApp initialization failed: {"+e+"}")}u.a().then(function(){a.get().setInAppFeedbackInitOptions(Be.a().OfficeBrowserFeedback.initOptions),je=!0,e()}).catch(function(e){t("Initialization failed: {"+e+"}")})}})}var Ie=!1;function qe(e){return new Promise(function(t,n){Ie?n("Control already open"):Fe().then(function(){a.get().setInAppFeedbackLaunchOptions(e),(function(e){var t={};a.get().getInAppFeedbackInitOptions().isShowThanks&&(t[0]=i);var n={},o=a.get().getInAppFeedbackInitOptions().transitionEnabled;n[l.c.Smile]=r,n[l.c.Frown]=r,a.get().getInAppFeedbackInitOptions().userVoice&&"en"===a.get().getCommonInitOptions().locale?n[l.c.Idea]=s:n[l.c.Idea]=r,a.get().getInAppFeedbackInitOptions().bugForm&&(n[l.c.Bug]=r),Pe(Te.a((function(e,t){return{attributes:[{name:c.a.DataHtml2CanvasIgnore,value:c.b.True}],children:[{attributes:[{name:c.a.Role,value:c.b.Dialog},{name:c.a.AriaModal,value:c.b.True}],children:[{attributes:[{name:c.a.Role,value:c.b.TabList},{name:c.a.AriaDescribedBy,value:c.d.QuestionLeftText},{name:c.a.AriaLabel,value:G.a().FeedbackSubtitle},{name:c.a.AriaOrientation,value:c.b.AriaOrientationValueVertical}],children:[{attributes:[{name:c.a.TabIndex,value:c.b.Zero}],id:c.d.FirstTabbable},{attributes:[{name:c.a.Type,value:c.b.Button},{name:c.a.AriaLabel,value:G.a().CloseLabel}],id:c.d.CloseButton,classes:[c.c.CloseButton],innerHTML:'<svg viewBox="4 4 16 16" width="16px" height="16px" focusable="false"><path d="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/></svg>',tag:c.g.Button},{children:[{classes:[c.c.FormWideContainer,c.c.Hidden],children:Ee(t),id:c.d.LeftPanelContainer,tag:c.g.Div},{children:[{classes:[c.c.FontSubtitle,c.c.TextAlignLeft],id:c.d.QuestionLeftText,innerText:G.a().FeedbackSubtitle},{children:[{children:Se(e),id:c.d.OverallAnchorsContainer}],id:c.d.ColumnSeparatorDiv}],classes:[c.c.FormContainer],id:c.d.LeftFormContainer},{children:we(e),classes:[c.c.FormContainer,a.get().getInAppFeedbackInitOptions().transitionEnabled?c.c.Hidden:c.c.Visible],attributes:[{name:c.a.Role,value:c.b.TabPanel},{name:c.a.AriaExpanded,value:c.b.False}],id:c.d.MiddleFormContainer}],classes:[c.c.Hidden],id:c.d.MainContentHolder,tag:c.g.Form},{attributes:[{name:c.a.TabIndex,value:c.b.Zero}],id:c.d.LastTabbable}],id:c.d.MainContainer}],classes:[v.f()?c.c.Rtl:""],id:c.d.OverlayBackground}]}})(n,t)));var u,f=!window.innerWidth||window.innerWidth<800;void 0===(u=function(t){v.l(c.d.OverlayBackground,!1),v.d(c.d.OverlayBackground),a.get().getInAppFeedbackInitOptions().onDismiss(t),e()})&&(u=function(e){}),w=f,y=n,b=t,E=o,L(c.d.OverallSmileAnchor,"click",B),L(c.d.OverallFrownAnchor,"click",j),L(c.d.OverallIdeaAnchor,"click",F),L(c.d.OverallBugAnchor,"click",I),L(c.d.CloseButton,"click",function(){C(!1)}),L(c.d.BasicFormSubmitButton,"click",U(c.d.BasicFormSubmitButton,c.d.BasicFormSubmitButtonSpinner,c.d.BasicFormComment,c.d.BasicFormEmailInput,c.d.BasicFormScreenshotCheckbox,c.d.BasicFormScreenshotPreview,c.d.BasicFormCategoriesDropdown)),L(c.d.BasicFormScreenshotCheckbox,"click",X(c.d.BasicFormScreenshotCheckbox,c.d.BasicFormScreenshotPreview)),L(c.d.UserVoiceFormGoButton,"click",W),L(c.d.ThanksPanelCloseButton,"click",function(e){return z(0,!0)}),L(c.d.BasicFormCancelButton,"click",V),A(u),E||(v.b(c.d.MainContentHolder,c.c.MarginLeft180px),v.b(c.d.ColumnSeparatorDiv,c.c.ShowRightBorder)),f&&v.b(c.d.OverlayBackground,c.c.NarrowLayout)})(function(){Ie=!1}),f.b().logEvent(f.a.InApp.UI.Picker.Shown.VALUE,1,{IsBugEnabled:a.get().getInAppFeedbackInitOptions().bugForm,IsIdeaEnabled:void 0!==a.get().getInAppFeedbackInitOptions().userVoice}),Ie=!0,t()}).catch(function(e){n("Initialization failed: {"+e+"}")})})}function Re(e,t){return new Promise(function(n,r){if(Ie)r("Control already open");else{var i=a.validateFeedbackType(e);Fe().then(function(){a.get().setInAppFeedbackLaunchOptions(t),De(function(){Ie=!1},i),f.b().logEvent(f.a.InApp.UI.Form.Shown.VALUE,1,{FeedbackType:i}),Ie=!0,n()}).catch(function(e){r("Initialization failed: {"+e+"}")})}})}function Ue(){return Be.a().OfficeBrowserFeedback.initOptions.isCommercialHost&&2===Be.a().OfficeBrowserFeedback.initOptions.sendFeedbackPolicyValue?l.b.DisabledByAdmin:a.get().determineAADCPolicy(Be.a().OfficeBrowserFeedback.initOptions.authenticationType,Be.a().OfficeBrowserFeedback.initOptions.ageGroup)?l.b.Enabled:l.b.DisabledByAgeGroup}function ze(){o.b(),u.b(),je=!1,Ie=!1}Be.m(qe),Be.o(Re),Be.e(Ue)}])}}]);